You’re visiting the personal website of Joost Schuttelaar.

Take a look


You can e-mail me at jelephants @ jstsch.com (anti-spam: please remove the mammal with the big snout).

Twitter feed @jstsch

Sorry, feed is gone. API has been killed by Twitter.

Go dark to fight SOPA with a simple .htaccess rewriterule

Sunday January 15 2012

Simple piece of code to put in your .htaccess if you want to join in the protest against SOPA:

# RewriteEngine on (enable if you don't have it yet)
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} ^20120118$
RewriteCond %{TIME_HOUR} >7
RewriteCond %{TIME_HOUR} <20
RewriteRule ^(.*)$ http://reddit.com/r/sopa [L]

This will redirect any request, to your protest site of choice on Jan 18th, between 08:00 and 20:00 (local webserver time). Assuming Apache of course!

Permanently kill IE's compatibility view – server side

Thursday September 29 2011

A small moment of triumph today. After a company-wide rollout of IE9, some internal apps seemed to break. What actually was happening that people were pushing the Compatibility View button for some reason.

Fretting over having to update dozens of sites and apps with a set of meta tags to prevent Compatibility View, a better solution appeared. Why not serve this meta tag as a HTTP header? It works! Simply add the following lines to your Apache configuration (for instance apache2.conf or httpd.conf) and you’ll be permanently freed from users triggering IE7-mode on you…

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header add X-UA-Compatible "IE=Edge,chrome=1" env=ie

Make sure you have both modules installed and enabled. On Ubuntu simply fire off a2enmod headers to enable the headers module. As an added bonus, the above headers will trigger Google Chrome Frame as well, if available…

Improve OSX internal audio output quality

Saturday August 13 2011

For years something has been nagging me on my machine. When playing back audio at low levels from the internal audio device, for instance on headphones, I could distinctly hear a lack of dithering on the volume control. Especially noticeable on fade-outs, where all these nice high aliasing frequencies were introduced.

I couldn’t believe that Apple, a company focused on details, would have such an oversight in their audio drivers. Volume control without dithering? That’s crazy. But it was there, really.

Continue reading Improve OSX internal audio output quality