Windows :Enable Hibernate Option of Windows XP
Monday, June 30th, 20081. Go to [Start] -> [Settings] -> [Control Panel] -> [Power Options]
2. Select the ‘Hibernate tab’
3. Check the ‘Enable hibernation’ box
4. Click Click OK
1. Go to [Start] -> [Settings] -> [Control Panel] -> [Power Options]
2. Select the ‘Hibernate tab’
3. Check the ‘Enable hibernation’ box
4. Click Click OK
Enable Apache to bind port 81 or other non-standard port under Redhat SELinux
login as root
Add a port
[root@acer ~]# semanage port -a -t http_port_t -p tcp 81
Remove a port
[root@acer ~]# semanage port -d -t http_port_t -p tcp 81
List all enabled http ports
[root@acer ~]# semanage port -l | grep http
Paste following code as the beggining in your config file in order compression to be applied to all files.
<?php
ob_start( ‘ob_gzhandler’ );
?>
// enable command line buffering
php -doutput_buffering=1 console_app.php
// disable command line buffering
php -doutput_buffering=0 console_app.php
// console_app.php code
<?php
for ( $i=1; $i<=100;$i++)
{
print “$i]hin”;
sleep( 1 );
}
?>
Do the following …
Start the registry editor (regedit.exe)
Move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon
Double click on DisableCAD (create of type REG_DWORD if it does not exist)
Set to 1 if you don’t want to have to press Ctrl-Alt-Del, and set to 0 if you do. Click OK
Close the registry editor
Reboot the machine
In windows XP you can enjoy a good feature to run CD or DVD automatically when you loaded it into you CD drives on your computer. This is a defaults feature in windows XP but you can disable and enable it according to your nature of work. In user interface mode there is no option to disable or enable this feature, you must edit the registry of windows and be careful to work registry.
Click Start button then type regedit in Run option then press Enter for next.
Here locate the location to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
Here you can disable or enable automatically running your CD. Change the value of Autorun to 0 for disable and change the value to 1 for enable. At the end restart your computer for this change.