Funniest words

Did a small coding excercise in Clojure. It was a competiton by a finnish company named Wunderdog. Didn't notice the competition until now so didn't enter my solution. :) But kept myself from peeking the example solutions before I made mine.

Link to the competition

CMS Trap

Most importantly, don’t get yourself tangled in too much speculation, let the story unfold naturally.

Great read about web app architecture design.

VirtualBox error in OS X Mavericks *

After upgrading to OS X Mavericks I was experiencing strange errors when trying to start a VirtualBox VM. e.g.

Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage ...

Viewing disk usage on Linux / BSD

How to sort human readable output of du on Mac OS X command line. Strange that the sort command in BSDs doesn't support the -h flag.

for i in G M K; do du -sh * | grep [0-9]$i | sort -nr -k 1; done