Geek Crafts

Haven’t fully finished tweaking the theme yet, but check out my latest site: GeekCrafts.com. I’ve got a great writer named Shayne that’s gonna be writing for it. We kick it off in earnest this weekend.

[tags]geek, craft, crafts, scifi, geeky, nerdy, nerd, diy, make[/tags]

How to get all links on a page with Hpricot

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

New Compaq laptop and OfficeMax

compaq laptop

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[/tags]