Archive for the 'Code' Category

How to force UTF-8 encoding in mail.app

Posted on June 4th, 2007 in Asides, Code

Just open up the terminal and type:

defaults write com.apple.mail NSPreferredMailCharset “UTF-8″

It was that easy. Not everyone has to do that I guess, but if you, like me, have had a problem with Outlook users asking you why you’re writing to them in Chinese, this might help get them off your back

Upgraded.

Posted on January 25th, 2007 in Journal, WordPress

Just upgraded to WordPress 2.1. All in all, it was quite a smooth experience. Congrats to the WordPress team for an impressive update!

Update: if you’re using the Feedburner plugin for managing different flavours of RSS, be sure to update that, and change your settings accordingly. I didn’t, but now I have…

Howto kill lookupd after editing the hosts file on OS X

Posted on November 9th, 2006 in Asides, Code

After editing the hosts file (mate /etc/hosts), instead of restarting the computer or logging out, this line will restart lookupd:

sudo kill -HUP `cat /var/run/lookupd.pid`

Using the terminal with MAMP on OS X

Posted on November 8th, 2006 in Asides, Code

Recently I was going to take the promising Symfony PHP framework out for a quick test drive, but ran into trouble in the very beginning of the tutorial. I’m running MAMP for local PHP development, but the terminal is using the built-in PHP version for its command line scripting. And Symfony is all about generating [...]