Stream your Last.fm updates to Twitter

Imagine if you will the following conundrum...

You have impeccable taste in music. So much so that you have no misgivings about sharing your taste in music with the world at large via your favourite Web2.0 music site Last.fm.

In addition to being a hip young thing with impeccable musical nous, you are ambiently connected to the continuous partial attention stream known as twitter.

The problem is how do you let your generation Y chummies know that right now you are listening to the most blissful zeitgeisty tune without being a completely obnoxious musical bore?

The solution I present is straightforward enough though it will require a little computer programming experience (if you don't have the coding chops, one of your geek buddies on twitter will surely help). Just follow these simple steps and your exhibitionist impulses will soon be satisfied...

  1. If you are running Windows, install perl. (Yes - I know - perl is dying and all the cool kids are using Ruby these days. I don't care. Perl is good. Larry Wall is god. I know stuff. You will listen to me.)
  2. Copy and paste the code below into a text file and call it 'twitter_fm.pl'
  3. Change the $twitter_username and $twitter_password variables to match your own twitter credentials.
  4. Change the $lastfm_id variable to match your last.fm username.
  5. Run the script as follows...
    perl twitter_fm.pl
    or better still, if you have root access, put the above command in a .sh file located in your rc.d directory.
  6. You're done. You can commence sharing your unassailable taste in music with your twitter chums. Happy listening.

Hey Kids! You didn't think I'd leave you wondering what the creator of this wonderful script likes to listen to?