Colin Percival's code for hacker-daily: http://www.daemonology.net/hn-daily/