It was great to be a part of the Pune Rails Meetup which was held yesterday (19th December, 2009) at ThoughtWorks, Pune. It was an idea initiated by Anthony Hsiao of Sapna Solutions which has got the Pune Rails community up on their feet. Helping him organize was a pleasure! It was great to see … Continue reading Pune Rails Meetup #2
Getting wired and wireless working on ubuntu 9.0.4
It might be the case that earlier wireless was working and then it stopped workingFollow the simple steps here....1. Restart networkingsudo /etc/init.d/networking restart2. Disable the "Support for Atheros 802.11 wireless LAN cards" on system/administration/Hardware Drivers, and reboot your box.3. Restart sudo rebootThat's it, Cheers!Still having problem follow the instructions here
Hpricot scraping in ruby
Include gems/library required before getting startedrequire 'hpricot'require 'net/http'require 'rio'# Pass website url to be scrapedurl = "www.funonrails.com"# Define filename to store file locallyfile = "temp.html"# Save page locallyrio(url) < rio (file)# Open page through hpricotdoc = Hpricot(open(file))Apply hpricot library to get right contentsdoc.at("div.pageTitle")doc/"div.pageTitle"doc.search("div.entry")doc//"div.pageTitle"Hpricot API Reference click here
