[ Content | Sidebar ]

Posts tagged hack

Adding similar songs from LastFM to your MPD queue

Here’s a cute hack which uses LastFM to find songs similar to the one currently playing in MPD and add them to your playlist: more-like-this.rb. To use it just run more-like-this while MPD is playing and 10 similar songs will be appended to the playlist. Give it a numeric argument to add a different number. […]

An alternative application of xcowsay

Recently I had a flirtation with removing all the non-free software from my Debian installs. This didn’t last very long: I got annoyed that I couldn’t watch iplayer with gnash, and blodgett reminded me that I had a copy of Vista running in VirtualBox. Ooops. However, upon reinstating the non-free repository I installed the vrms […]

Samsung Q320 Fn-key release hack update

Earlier I posted a hack to get the Linux kernel to send synthetic key release events for the Fn-keys on a Samsung Q320. But I forgot about actually submitting the patch to the kernel developers until today. However, it looks like this hack will be unnecessary as of 2.6.32: Hi Nick, On Sep 19, 2009, […]

Self-signed certificates on Nokia S40 phones

I’ve been having a problem for a while with my Nokia 6300 phone not accepting the self-signed SSL certificate I use on my IMAP server (dovecot). This is a bit annoying because I can’t read emails on my phone. Various Nokia forums suggest that you need to download the certificate over HTTP to install it. […]

Shutting down and rebooting via HAL

You know how GNOME/KDE have “shutdown” and “reboot” buttons that normal users can use to turn off the computer? Rather than using sudo or making /sbin/shutdown setuid, they use HAL which provides a nice power management interface. Turns out this is pretty easy to call from the command line so you can use it in […]


Attention Web 2.0 fans! The MECHANICAL PIG is now Twitter-enabled! You can follow its progress here: http://twitter.com/MECHANICALPIG More to follow!