IIS only GZIPs some assets and only sometimes

I had an issue on a server running IIS 8 not consistently compressing my .js, .css and other files. It turned out the issue had something to do with the CPU load.

To this issue the solution was to open the applicationHost.config file (C:WindowsSystem32inetsrvconfig – remember to backup this file!). Remeber to open this in a 64 bit text editor like notepad.

In the  <httpCompression directory=”%SystemDrive%inetpubtempIIS Temporary Compressed Files”>  section I added staticCompressionDisableCpuUsage=”100″ staticCompressionEnableCpuUsage=”100″

This tells the server to not disable the compression of static assets.

Read more

Set up Windows Hosts file to redirect to other domain

To redirect example.com to new-example.com on your local machine first open the hosts file in a text editor

%WINDIR%SYSTEM32DRIVERSETCHOSTS

find the IP address of new-example.com (via cmd or https://www.dnswatch.info/) and paste it followed by the example.com domain so it looks like this

12.345.678.910 example.com

Save the file.

Now if you request example.com in your browser you will see the content of the IP 12.345.678.910.

Read more

MTNS – Electronic pop when it is best

I just stumbled upon this Australian trio on Google Play Music while listening to Slow Magic radio station (yes, you should check out Slow Magic as well).

[soundcloud url=”https://api.soundcloud.com/playlists/14974095″ params=”auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true” width=”100%” height=”450″ iframe=”true” /]

Read more