bijesh.net

Hey! I'm Bijesh. This is where I dump my thoughts, updates, photos and stuff that I find on the web.
Jun 10
Permalink

Enable HTTP Compression on IIS for ASP.Net

If you enable HTTP compression on IIS, it does not enable compression for aspx files by default. You will have to edit the metabase or run the following commands and they will do it for you.

Important step: Make a backup of the file %windir%\System32\inetsrv\MetaBase.xml. If something goes wrong, then copy the original file back and restart the iis server.

Open a command prompt (cmd) and CD to the directory \Inetpub\AdminScripts.

Execute the following commands one at a time and verify that there are no errors.

net stop iisadmin

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions “htm” “html” “txt” “ppt” “xls” “xml” “pdf” “xslt” “doc” “xsl” “htc” “js” “css”

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions “htm” “html” “txt” “ppt” “xls” “xml” “pdf” “xslt” “doc” “xsl” “htc” “js” “css”

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions “asp” “dll” “exe” “aspx” “asmx” “ashx”

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions “asp” “dll” “exe” “aspx” “asmx” “ashx”

net start w3svc

Done.

One of our web pages was about 3MB size and after compressing it, the page is only 170KB. That was about 30s improvement in page load time.

May 13
Permalink
May 12
Permalink
Mac OS X 10.5.7 update
Mac OS X 10.5.7 update
May 10
Permalink

Perfect Scrambled Eggs

This recipe serves 2 hungry people.

6 large eggs
6 tablespoons low-fat milk
1 Tablespoon butter

Salt and pepper


Heat a large non-stick frying pan to a setting below medium.

Do not whisk or blend the eggs. Just pour the eggs with yolk intact into the pan. Do not add salt yet.

Break the yolk and stir fast. Add the butter and let it melt. Once the egg is really blended, stop stirring.

Stop stirring until the first hint of setting begins. Using a spatula or a flat wooden spoon, push eggs toward center while tilting skillet to distribute runny parts.

Continue this motion as the eggs continue to set. When the push-to-center technique is no longer cooking runny parts of the egg, flip over all the eggs. Allow the eggs to cook half a minute longer. Remove the pan from the stove and transfer eggs to serving plates. Add salt and pepper to taste.

May 09
Permalink
DC Talk - Colored People (via forefrontrecords)
May 08
Permalink
May 07
Permalink
Adit
Nikon F3, Nikkor 50mm f/1.2, Kodak Ektachrome 200 E200

Adit

Nikon F3, Nikkor 50mm f/1.2, Kodak Ektachrome 200 E200

Permalink
Aman
Nikon F3HP, Nikkor 55mm f/2.8 Micro, Kodak Ektachrome E200

Aman

Nikon F3HP, Nikkor 55mm f/2.8 Micro, Kodak Ektachrome E200

Permalink

New theme

Updated the theme of the site to a built-in theme of tumblr.
May 06
Permalink
Current swine flu map.
Current swine flu map.
May 05
Permalink
May 04
Permalink
May 03
Permalink
Permalink
May 02
Permalink
H1N1 flu virus
H1N1 flu virus