First ruby script

Well technically not my first, but the first ive written from scratch. Its just a simple hello world example. Im going to try to extend it to do more now.
Heres what it currently looks like.

#!/usr/bin/ruby
# first cut of a ruby script
require ‘cgi’

# create a cgi object of type html 4
cgi = CGI.new(“html4”)
cgi.out {
cgi.html {
cgi.body {
cgi.h1 { “Hello Ruby!” }
}
}
}

And here is what it does.

Ajaxterm

Ive been playing with Ajaxterm today. Its really kinda cool, I have it running behind some password auth and over ssl now. Which is good, it means that in places where they have an aggresive outbound firewall stance I can still get to a terminal on my machine and ssh from there.

Long Weekend

It started with a late finish from work on Friday, we didn’t get back to Wellington until about 7.30pm. I then met up with Laurel at Melissa’s farewell drinks at the Good Luck Bar.

But then when I got home at 11pm I still had some work to do for the library. Plus some work for the Horowhenua Library Trust also. So I went to bed around 1am.

I was up again at 7am to be ready for the library to open and keep an eye on how they went on their first day of using Koha fulltime. It went pretty well, so by 1pm I decided it was safe to stop watching.

That evening I went down to Waitangi park to watch the Matariki concert. It was a great line up, The Maori Volcanics, Whirimako Black, and finishing up with Katchafire. It was freezing but there was fry bread, soup, hangi and coffee to keep yourself warm with.

Then it was off to Matt’s for their midwinter Christmas party which was a lot of fun. Got home from that around 12.

And this morning I was up at 6.30am to head to the Hope Brothers pub to watch the Brazil vs France football match with Jeremy.

Consequently I’m pretty knackered now. Early night I think.

Working on site

Although I spend 90% of my working life in my office at home, occasionally I need to work on site.

Sometimes you can’t beat being there and person and face to face. For example today I spent about 5.5 hours on site and got quite a lot done. It would have still been about 5.5 hours work, but it would have taken me at least 10 hours to do.