December 2007

Ruby memcache-client reconnect and retry-once patch

A big problem we hit with the Ruby memcache-client library (1.5.0) is that if the memcache server connection dies, it leaves the mongrel permanently broken. I've written a big patch to refactor it to reconnect properly and also retry the request (once) to give it a fresh start.

Posted Fri 21 December 2007 16:14 (+1300)

Fixing the postgresql initdb fatal shared memory error on Leopard

When doing the post-install setup of postgresql default database using initdb, you may hit a fatal error due to the shared memory sysctl limits being too low by default.

Posted Tue 18 December 2007 11:55 (+1300)

Results of consequence-free environments

ABC News carries this disturbing report of drugging and gang rape, followed by willful destruction of evidence, borderline kidnapping, and legal protection of in-house perps, in Iraq contractor KBR.

Posted Mon 17 December 2007 11:52 (+1300)

Geeky and shameless

Some dudes made a giant Settlers of Catan set for Burning Man in September. We wants :).

Posted Fri 14 December 2007 01:06 (+1300)

Costume parties

So, turns out, there has been a second costume party worth going to :). Love the Sharbat Gula prop…

Posted Thu 13 December 2007 22:56 (+1300)

UE aboard SS Independence/Oceanic

Brett steers me towards a great set of nighttime photos from a urban explorer onboard SS Independence/Oceanic, a derelict cruise liner tied up at SF.

Posted Thu 13 December 2007 20:43 (+1300)


Meg, who needs a blog, brings us this alpaca song by Saleem.

Posted Tue 11 December 2007 23:09 (+1300)

Shops now txt

When I ordered an xmas pressie in at a shop yesterday, they asked specifically for a cellphone number – didn't understand why at the time, but they just TXTd me to let me know it's arrived. Sign of the times :).

Posted Tue 11 December 2007 15:26 (+1300)

Porcelain cans

Think that's enough bad news for one night (working down my ‘things to blog’ folder). Check out these very cool bone china cans by Chinese artist Lei Xue.

Posted Mon 10 December 2007 01:17 (+1300)

TV journalist/human rights activist?

Kidnapped by masked men? Beaten and left in a field? That's an arrestin'. (Moscow, Russia)

Posted Mon 10 December 2007 01:03 (+1300)

Meeting with a man?

Saudi? Gang raped? That's a jailin'. (Saudi Arabia)

Posted Mon 10 December 2007 00:59 (+1300)


On a bus? In a coma? That's a tazin'. (Leeds, UK)

Posted Mon 10 December 2007 00:42 (+1300)

Installing ruby postgres and mysql gems on Leopard

Leopard comes with ruby preinstalled. Most of us use macports to install postgresql & mysql for use with rails, but if you use macports to install their ruby bindings then it will build it's own ruby too. That works, but here's how to compile them if you'd prefer to stick to the stock Leopard ruby.

Posted Wed 05 December 2007 20:20 (+1300)

Peak milk?

Peak oil is so last year. Milk is the new oil. And while that means more money for NZ farmers, it will also accelerate a problematic trend.

Posted Wed 05 December 2007 13:07 (+1300)

Macports FreeImage patch for Leopard

Mac OS X open-source suffers from a lot of users and not a lot of contributers. You can whine about it, or you can help :). I've created a simple patch for the problems compiling the FreeImage macport on leopard, removing the need for the workarounds.

Posted Tue 04 December 2007 18:22 (+1300)

Setting the PATH variable the Mac OS X way

Mac OS X has a nice extensible way to add things to your PATH environment variable using /etc/paths.d.

Posted Mon 03 December 2007 20:33 (+1300)

Beatbox cooker

Meg, who spends her evenings digging for tasty, nutritious tubers in the soft, lifegiving earth of Youtube, brings us these excellent video…

Posted Sun 02 December 2007 23:10 (+1300)

About me

I'm a Wellington, New Zealand-based software consultant.

Need to get in touch? Try me at my public email address.