Category: Geek Stuff » Ruby, The Geek Enabler

| | Comments (0)

Jakki and I are both waiting with bated breath for the results of her nursing boards. As a Geek, I grew weary of manually refreshing the Dept. of Health website. Enter Ruby. Without Rails, Ruby is still a fantastically useful scripting language. In about thirty minutes, I was able to write a script that grabbed the DOH page, parsed it with a handy rubygem called hpricot, checked to see if the status has changed, and if not, it goes to sleep for 5 minutes. When the the status does change, the script will launch FireFox and browse to the page. Maybe I’ll make it send me an email or a text-message too. Right now it’s a whopping seven lines of code.

Leave a comment

Our Photo Album

Mouse-over a thumbnail to see album name

Archives

Content Licensing

Creative Commons License
This weblog is licensed under a Creative Commons License.

September 2008

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

What I'm Reading