Jabber Notification 4

Posted by Kerry 21/03/2009 at 19h24

A variation on the Gnome Notification theme with some jabber.

This time with some ruby:

  require 'rubygems'
  require 'xmpp4r/client'
rescue LoadError
  puts "Couldn't load xmpp4r, you probably need to install it.  Try gem install xmpp4r"

include Jabber
jid = JID::new('your_user@example.com')
password = 'xxx'
cl = Client::new(jid)
to = "your_user@example.com"
subject = "Notification from `$USER`"
ARGV.each do | message |
   m = Message::new(to, message).set_type(:normal).set_id('1').set_subject(subject)
   cl.send m

Run it like:

emerge something_that_takes_ages; notify.rb "Emerge Done"

You’ll need ruby, ruby gems, and the xmpp4r gem.


Prelude 1

Posted by Kerry 05/01/2009 at 21h09

Prelude, a Metacity Theme which has minimal window decoration. Great for small screens such as the Dell Mini 9.

Prelude Screenshot

New Zealand, 1843

Posted by Kerry 15/05/2008 at 09h23

Very cool(for me anyway) map of New Zealand from 1843. A couple of noticeable name differences are:

  • New Ulster, New Munster, and New Leinster are the North, South and Stewart Islands respectively.
  • Tasman Bay is known as Blind Bay(Tasman Bay of D’Urville).

This comes from the David Rumsey Historical Map Collection which has plenty of other cool maps to checkout.

Gin, Television, and Social Surplus 2

Posted by Kerry 28/04/2008 at 21h42

Clay Shirky: Gin, Television, and Social Software

“And television watching? Two hundred billion hours, in the U.S. alone, every year. Put another way, now that we have a unit, that’s 2,000 Wikipedia projects a year spent watching television.”

I found it hard to pull just a single quote of this piece out, it’s a quick read that just makes you start thinking. If the calculation of how much effort has gone into Wikipedia is even close, this is an amazing way to look at it.

My consumption to production ratio is so low it’s embarrassing.

Internet Asshattery

Posted by Kerry 26/04/2008 at 11h43

Leonard Lin: Internet Asshattery, Armchair Scaling Experts Edition

iPlayer hacked again

Posted by Kerry 16/03/2008 at 18h37

The hack for the iPlayer from last week was closed by the BBC, but only by more obsfucation. Therefore, there is a patch for last weeks script which fixes the problem.

Reading the comments there are a few people out there working on making this better, and it looks like there is a script to generate an RSS feed for the iplayer website.

New London Architecture

Posted by Kerry 16/03/2008 at 17h36

Went and saw the Underground: Londons Hidden Architecture at New London Architecture this weekend.

They had a big model of central London which was pretty cool.

London Model

Command line Gnome Notification 2

Posted by Kerry 10/03/2008 at 21h38

From the “it’s almost certainly been done better somewhere else” department, here is my script to fire off a Gnome Notification after a shell command finishes.

a python script:

from pynotify import *
import sys

def notify(message=""):
    n = Notification("Command Line Completed", message)

init("cli notify")
if len(sys.argv) > 1:

Then just add it to your path and you can append it onto some command:

echo monkey && mynotify.py "some message"

You then get a notification like so:


BBC iPlayer downloads for Linux

Posted by Kerry 09/03/2008 at 08h59

BBC’s iPlayer is good, but this makes it better.

Found via

Thinking about scalable systems

Posted by Kerry 23/07/2007 at 10h38

Joe Armstrong: Scalable fault-tolerant upgradable systems, part 1.

A system that is fault-tolerant can easily be made scalable and easily made so that we can do in-service upgrade.

Part 1, cool. Looking forward to the rest of this.