Archive for the 'Code' Category

quick note on meta name viewport and android

Posted on June 20th, 2011 in Code,mobile

If omitting width=device-width from the viewport meta tag, css3 flex-box layouts no longer respect overflow:hidden and text-overflow:ellipsis for wider-than-page content. <meta name=”viewport” content=”width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0″ />

when webkit css animations causes flicker

Posted on June 19th, 2011 in Code,mobile

sometimes when using -webkit-transform:translate3d; or -webkit-transform:translate; on elements visible on the page, it causes the screen to flicker. In my particular case I had a menu that opened as an overlay, and whenever an element with translate3d was on the page, the menu flickered badly when fading in. The solution seems to be to set [...]

Installing latest MacPorts for OS X 10.6

Posted on February 16th, 2011 in Code,Journal

I was just about to install MacPorts on my OS X 10.6 system, and downloaded the latest package (1.9.1) from macports.org, only to get a dialog saying my MacPorts version was too old to update, and that I first needed to upgrade to 1.7.1. That didn’t install at all, but I found this snippet while [...]

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 [...]