2008-12-20

Default language at Windows Vista logon screen

If you are bothered by the fact that you need to change language every time you start Windows to be able to access some symbols used in your password, you can change this by adjusting some settings in control panel.

Open your Control Panel
Go to Regional and Language Options
Select Keyboards and Languages tab
Click on Change keyboards... button
Change your Default input language and keyboard layout to suit your needs.
Click OK (screenshot)
Go to Administrative tab
Click on Copy to reserved accounts...
Select the checkboxes and click OK (screenshot)

Links:
http://www.vistax64.com/vista-account-administration/133455-language-logon-screen.html

2008-12-14

Enabling HTTP Compression in IIS 6.0

To enable HTTP compression in IIS 6.0

1. Open IIS Manager.
2. Right click Web Sites node and choose Properties.
3. Select Service tab.
4. Check Compress application files to enable dynamic compression.
5. Check Compress static files to enable static compression.
6. Click Browse next to Temporary directory: field and navigate to the folder where you will keep compressed files.
7. Choose whether you will be limiting temporary files directory size or not and click OK. (screenshot)
8. Go to Web Services Extension node and click Add new Web service extension..
9. Enter Extension name for example "HTTP Compression" click Add then in the Add file window click Browse and navigate to "C:\windows\system32\intetsrv" find gzip.dll select it and click Open. Click OK and OK again.
10. In the Web Service Extension list select "HTTP Compression" you've just added change its status to Allowed by clicking Allow button found on the left. (screenshot)
11. In IIS Manager right click your server node and choose Properties.
12. Check Enable Direct Metabase Edit and click OK. (screenshot)
13. Open Explorer and navigate to "C:\Windows\System32\inetsrv" find Metabase.xml file and before modifying it make a backup copy.
14. Open Metabase.xml in text editor and find string:
Location ="/LM/W3SVC/Filters/Compression/gzip"
15. Config values to suit your needs:

HcDoDynamicCompression="TRUE" (to enable compression of dynamic content)
HcDoOnDemandCompression="TRUE" (to enable compression of static files that are not compressed yet)
HcDoStaticCompression="TRUE" (to enable compression of static content)
HcDynamicCompressionLevel="10" (level of dynamic compression. Higher level equals better compression rate, but requires more CPU resources)
HcFileExtensions="htm
html
txt"
(file types to include in static compression, one per line)
HcOnDemandCompLevel="10" (level of OnDemandCompression)
HcPriority="1"
HcScriptFileExtensions="asp
dll
aspx
cs
exe
pdf"
(file types to include in dynamic compression, one per line)

16. Save and close Metabase.xml and restart IIS server by right clicking your server node in IIS Manager and choosing All Tasks->Restart IIS... (screenshot)
17. Check if compression is working
go to http://www.seoconsultants.com/tools/compression.asp enter your URL and press the Check Compression button. If your site is compressed you'll see Compression status: Compressed (gzip). (screenshot)

Now you might want to disable compression for some sites, to do this you need to run the following command in the command prompt:

adsutil set w3svc/1690634459/DoDynamicDompression false


Or if you want to disable compression on specific folder or file in the site you would type this:

adsutil set w3svc/1690634459/root/forum/DoDynamicCompression false


Replace 1690634459 with the ID of your website which can be found in IIS Manager, Web Sites node "Identifier" column.
If you want to disable Static Compression for specific site replace "DoDynamicCompression" with "DoStaticCompression".

If you want disable compression for All sites but one, you can do this in the following way:
First disable compression for all sites by running command in the command prompt:
adsutil set w3svc/filters/compression/parameters/HcDoStaticCompression false

Then enable compression for one or multiple sites of your choice:
adsutil set w3svc/1690634459/DoStaticCompression true

Links:
http://www.dotnetjunkies.com/Article/16267D49-4C6E-4063-AB12-853761D31E66.dcik
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/502ef631-3695-4616-b268-cbe7cf1351ce.mspx?mfr=true

Windows Vista not displaying desktop icons

When Windows boots there is no icons on desktop until you right click desktop and choose View->Show Desktop Icons. You have to do this every time your computer reboots.

It seems pretty illogical, but to fix this try changing you Power Options between different power plans and see if it helps.

How to disable Hibernate on Windows Vista

For some space saving on your hard drive or maybe some other reason, you might want to disable hibernate functionality on your PC.
To do this:

Open cmd with administrator privileges (navigate to C:\windows\system32\ find cmd.exe, right click it and choose Run as Administrator)
Enter command "powercfg -h off" and hit Enter (screenshot)

Links:
http://www.windowsnetworking.com/kbase/WindowsTips/WindowsVista/AdminTips/Misc/Disablehibernation.html

2008-12-09

Can not open SQL Server Management Studio

When trying to open SQL Server Management Studio for SQL Server 2005, I get error message:
Package 'Microsoft SQL Management Studio Package' failed to load.

Fixed this by reinstalling .Net Framework 2.0.

Downloads:
.Net Framework 2.0

Links:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4224101&SiteID=1&mode=1