Python's IMAPv4 client library imaplib is a really light-weight wrapper over the IMAP4 protocol. As such, it isn't that intuitive to use. The best reference I've found on it is a cheat-sheet over here.
Getting iTunes to recognise tracks as belonging to one Album
I have just been importing some music into iTunes from an external drive. Sometimes iTunes doesn't recognise songs as belonging to the same album, even if they have the same Album name. (Bad iTunes!)
Continue reading “Getting iTunes to recognise tracks as belonging to one Album”
Bio-Monitoring and the Jawbone UP
I just picked up my Jawbone UP from the Post Office last night, so thought I'd post my first impressions.
Rewiring the Brain
There is an absolutely awesome bit of Neal Stephenson's book Reamde, that goes like this: The brain "was sort of like the electrical system of Mogadishu. A whole lot was going on in Mogadishu that required copper wire for conveyance of power and information, but there was only so much copper to go around, and so what wasn't being actively used tended to get pulled down by militias and taken crosstown to beef up some power-hungry warlord's private, improvised power network. As with copper in Mogadishu, so with neurons in the brain. The brains of people who did unbelievably boring shit for a living showed dark patches in the zones responsible for job-related processes, since all those almost-never-exercised neurons got pulled down and trucked somewhere else and used to beef up the circuits used to keep track of NCAA tournament brackets and celebrity makeovers."
Were the Luddites Right?
The Luddites were a 19th century anti-industrialisation movement (and militia), who believed that their jobs were at risk because of the industrialisation of manufacturing. They proceeded to try and destroy mechanical looms in a vain attempt to turn back the rising tide of industrialisation. These days anyone seen as a "Luddite" is perceived to be backward and anti-technology.
Race Against The Machine
I just finished reading the Kindle book Race Against The Machine, a book I thoroughly recommend. This was the driver of the NPR article I blogged about recently. The book is mostly oriented towards the US, although the issues they discuss seem to be prevalent across all major economies. The authors make the case that technological improvements are severely impacting every job market except those for highly-skilled individuals.
Written by Robot
I've just read two blog posts on creating written content programatically. The first was the article How I automated my writing career by Robbie Allen. This article gives a brief description of how the author's company generates web-site content automatically using the quantitative analysis of data.
How Disqus does scaling
Here is a great presentation given by Jason Yan and David Cramer of Disqus fame about how their site was architected in order to scale to handle 75 million comments.
My iRex iLiad
Using gpg to encrypt files on a web server
- Obtain gpg and generate a public/private key if you don't already have one (gpg --gen-key)
- Export your public key to a file (gpg -a --export > pubkey.txt)
- Upload the pubkey.txt file to your server
- Create a directory accessible to the webserver (apache) process
- Create a public keyring in this directory (gpg --no-default-keyring --keyring /path/to/pubring.gpg --import pubkey.txt)
- Make sure that this file is readable by your webserver process
- You may now encrypt files using the command line "gpg -q --batch --no-options --no-default-keyring --keyring /path/to/pubring.gpg -r brett --always-trust --output encrypted.enc --encrypt unencrypted.txt".