Items filtered by date: December 2015

In VMWare the option to mount an IDE physical disk as a virtual disk is not obvious and not directely supported. All physical disks are mounted as SCSI. This is very unhelpful. Below is a work around to allow you to add an IDE physical drive as a virtual drive in VMWare.


  • Create you virtual machine as normal
  • mount the physical disk as normal (SCSI will be selected)
  • Close and save the virtual machine
  • edit the .vmdk file for the raw disk and changed ddb.adapterType to "ide".
  • in .vmx file replace all occurences of "scsi0:0" with "ide0:0"

The physical drive can now be accessed from within VMWare as an ide drive.

Published in Virtual Machines
Wednesday, 14 October 2009 18:31

XP Installation hangs at 34 minutes

You want to install XP professional and suddenly you realize that it freezes up at the mention of 34 minutes remaining! You try all your efforts to make it running but nothing seems to be working to your dismay. You try checking your RAM, checking for any bad sectors in your hard drive, even your motherboard (as I have done) but cannot make a conclusion as to what’s the answer to your woes.

So what is the solution to the defamed 34 minute XP installation hang problem?
 


Its as simple as deleting a single file which caused the installation to freeze.

  • Let the XP hang at 34 minutes remaining for the first time
  • Remove the CD from the CD-ROM
  • Reboot the PC by pressing the hardware reset button
  • Don't enter the CD when the installation asks for it
  • Open the DOS prompt (Shift + F10)
  • Goto C:\Windows
    • Type setupapi.log
    • Hit enter
  • The setupapi.log file will open in notepad
    • Scroll to the very last few lines in the file and search for the .inf
    • You will notice that in the last few moments the installation created a file with the extension .inf before dying out (in my case it was the faulty modem for which XP created the file mdmcxpt.inf).
    • It means that the device mentioned in the last few lines is faulty and you have to make the XP installation skip it to complete successfully.
    • Close the notepad
  • Goto the folder C:\Windows\inf in command prompt
    • Browse through the files to find the .inf belonging to the faulty device.
    • Straight away delete the inf file (eg: del mdmcxpt.inf) or move it somewhere safe for later (not the /inf/ folder)
  • Now put in the XP installation CD and Continue the installation

It will now not put in the drivers related to the faulty device and so it wont freeze this time !!
 

Published in Windows XP
  • When i choose tools -> folder options -> view, then
  • I checked "Show hidden files and folders " radio box,
  • then i clicked the Apply button and then Ok.
  • When I open the same window again it shows that "Show hidden files and folders"radio box is unchecked.

You might also experience this problem but instead of descriptions you see a load of ??????

These issues are usually caused by active viruses. The viruses use this method to prevent removal.


To prevent the issue arising again a full spyware and virus scan is needed to remove the offender.

Run the registry code below and it will allow you to show hidden files again.

 

{code class="brush: powershell"}Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden] "Text"="@shell32.dll,-30499" "Type"="group" "Bitmap"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,\ 48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,34,00,00,\ 00 "HelpID"="shell.hlp#51131" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN] "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" "Text"="@shell32.dll,-30501" "Type"="radio" "CheckedValue"=dword:00000002 "ValueName"="Hidden" "DefaultValue"=dword:00000002 "HKeyRoot"=dword:80000001 "HelpID"="shell.hlp#51104" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL] "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" "Text"="@shell32.dll,-30500" "Type"="radio" "CheckedValue"=dword:00000001 "ValueName"="Hidden" "DefaultValue"=dword:00000002 "HKeyRoot"=dword:80000001 "HelpID"="shell.hlp#51105" {/code}
Published in Windows Family

Every time I click on a folder and sometimes even icons on the desktop, windows installer starts and then tries to install Symantec Antivirus, which isn't even on my system anymore. If I click "cancel", my normal right click menu of choices appears.


Download the MSI clean up utility from HERE
Double-click the file to install the utility.

On the Windows taskbar, click Start > Programs > Windows Installer CleanUp Utility to run the utility

For each entry that begins with "CC," "cc," "Norton," "Symantec," "Sym," or "MSRedist," click the entry, and then click Remove.

Reboot - done

Published in Windows XP
Wednesday, 14 October 2009 16:41

How to install Mod_Security on XAMMP

Original Article Here

Apache Mod_Security and XAMPP

終於安裝了mod security!

In order to secure my Apache using XAMPP, I have install the mod_security and disable some php function:

Install mod security on windows:


1. download mod_security2.so at http://www.apachelounge.com/ (a binary package)
2. unzip the package and you will get mod_security2.so and a libxml2.dll
3. read the readme.txt
4. create a folder .../apache2/modules/mod_security2
5. and copy mod_security2.so and libxml2.dll to this folder
6. Install the Visual C++ 2008 Redistributable Package (Since this binary is make my VC++2008)
7. At httpd.conf:
- LoadModule security2_module modules/mod_security2/mod_security2.so
- LoadModule unique_id_module modules/mod_unique_id.so
8. You can using Include directive to include the mod_security configure file,
(you can take a look on this website.)

but I put all the things under httpd.conf , my configure file is found from the package downloaded - mod_security2.conf-minimal
Like this (under httpd.conf):

### Start Mod_Security ###
LoadModule security2_module modules/mod_security2/mod_security2.so


# Basic configuration options
SecRuleEngine On
SecRequestBodyAccess On
SecResponseBodyAccess Off

# Handling of file uploads
# TODO Choose a folder private to Apache.
# SecUploadDir /opt/apache-frontend/tmp/
SecUploadKeepFiles Off
..........
..........


9. Start and stop the Apache and look at the phpinfo and see it loaded or not.


Disable PHP function:

1. go to php.ini (xampp located at c:\xammp\apache\bin\ )and do the following:
disable_functions = "phpinfo,dir,readfile,shell_exec,exec,virtual,passthru,
proc_close,proc_get_status,proc_open,proc_terminate,system"

2. Besides, open safe mode

3. open_basedir = C:\ foo\bar

Published in Windows XP

I am looking for a shortcut to align the the text of layer B to the image on the background layer.

I currently eyeball this by using the rulers and grid, but feel there must be an easier or already defined solution to this.


If you have a selection you can hit 'v' to activate the move tool and then use any of the 'Align' buttons in the tool options bar to align your selected layer to the selection (http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-78c2a.html).

If you select the entire canvas (select all, cmd+a or ctrl+a on PC) before doing this then you can easily center a layer in the canvas. If you need a layer centered to another layer you can hold cmd (ctrl on PC) and click the layer to make a selection from the layer bounds and then use the above technique.

Published in Applications
Wednesday, 14 October 2009 16:21

Cannot Re-Install AVG

im trying to re-install avg and i get this error


Local machine: installation failed
Installation:
Error: Action failed for registry key HKLM\SOFTWARE\Classes\AvgDiagFile\DefaultIcon: creating registry key....
Access is denied. (5)
 


Go to the specific reg key and put permission to admin full and i delete it

Published in Security

Use this microsoft registry file taken from this link. There are also other options and an autofix link. This registry file will not work for Windows 7.

{code class="brush: powershell"}Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] "{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu] "{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000{/code}

or

  • Goto Add and Remove programs look for the Set Program Access and Defaults
  • Select custom choice and at the top click the Internet Explorer option
  • The IE icon is now back on the desktop.
Published in Windows General
Wednesday, 14 October 2009 16:03

New text document option missing

When I right click on my desktop to start a new "Text Document" the option to start a new text document does not appear. Several solutions below


  1. Try kellys korner for your fix... Line #153 (on the left)
     
  2. Check that this key exists

    HKEY_CLASSES_ROOT\.txt\ShellNew\NullFile

    If it doesn`t exist,create it.

    Right click in the right hand pane of the ShellNew key,
    Select New/String value
    then type: NullFile - Similar ideas HERE
     
  3. Goto c:\windows\shellnew and copy in a text file, access the right click menu and see if New Text Document is back and does not matter if you leave it or delete it after this.
Published in Linux
Wednesday, 14 October 2009 15:26

Digila camera recognised but no autoplay

I've got a Canon EOS 300D Digital Rebel. I've loaded the latest Canon Windows XP WIA Driver (5.2.0) - there is no Vista driver listed on the Canon site.

I don't get the "Import using Windows" dialog when I connect the camera, and Windows Photo Gallery doesn't list the camera in the import list (although my Canon scanner is listed).


I have the 350D, and it works just fine, without using any additional drivers, just the built in Vista stuff.However, you do need to change the way the camera communicates with the PC (Twain and WPA).

On the Setup 2 screen, change the Communication setting to the other option (I forget which way round they are).
 

Published in Windows XP
Page 88 of 96