Jan 19
I couldn’t find a good simple explanation of this online, I had to look at some examples and figure it out so I thought I’d post this for myself and others. Here is how to get all links on a page using Hpricot:
def get_links(doc)
urls = []
unfiltered_links = (doc/"a")
unfiltered_links.each { |alink|
urls < < alink.attributes['href']
}
return urls
end
Tags: ruby, Hpricot, programming, coding
Jan 12

On December 30, I bought a Compaq Presario F732NR laptop from Officemax for $549. My desktop had died a few months ago and I was tired of using my work laptop at home (it SUCKS). 3 days ago, I saw that it was now on sale at OfficeMax for $499. I took my receipt to OfficeMax on the 14th day after I bought it and they happily refunded $50 to me. I was amazed. No trouble, no problem. Just $50 back. (It’s $679.99 now) Thanks, OfficeMax!
So far, I am happy with the laptop, I just need to get rid of Vista…. I have found other people that successfully installed XP on it. I’ll probably make it a dual boot XP and linux machine.
Tags: Officemax, Compaq, customer service
Jan 09

These should be so easy to make. I might try it this weekend. Would look great in my cube and would make a great gift.
Buy it at ThinkGeek (they are out of stock) or wait for my instructions to build your own :)
Tags: mario, mushroom, diy