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.
Search
Tag Cloud
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 |

» Ruby, The Geek Enabler
(0)
Diet (9)
Fambly (37)
Geek Stuff (56)
Music (13)
Net Junk (84)
News (107)
Leave a comment