Definitely worth a listen:
Soviet Afghan War Veteran
The end of Canada’s combat mission in Afghanistan is creeping ever closer. Canadians of all stripes continue to debate the wisdom of the mission and the sacrifices being made by Canadian soldiers.
Nikolai Lanine has an interesting perspective on that debate. He’s a Canadian … a public health nurse who lives in Victoria. But he was born and raised in the former USSR. And in 1987, he was drafted into the Soviet Army and sent to Afghanistan. He spent 16 months fighting there.
CBC Radio Producer, Steve Wadhams spent some time with Nikolai Lanine. He joined Piya in our Toronto studio to tell us more.
There’s a post up on HackerNews about how awesome HTML parsing and manipulation in Node.js + jQuery is. It also mentions in passing hpricot, and asserts “The challenge with using these libraries is that they all have their own quirks that can make working with HTML, CSS and Javascript challenging.”
Well, nokogiri queries with CSS3 selectors or XPath if you need to get crazy, so beats the hell out of me what they’re talking about. Anyway, lets fix their post for them:
require 'nokogiri'
require 'open-uri'
page = Nokogiri::HTML(open("http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs))
ruby_xml_link = page.css("a").select{ |a| a.text == "hpricot" }.first
ruby_xml_link.attributes['href'] = "http://nokogiri.org"
ruby_xml_link.content = "nokogiri (鋸)"
puts page
Here are my slides for my presentation at RubyKaigi 2010.
A nice summary in slideshow format of cross domain issues on the interwebs. Interesting stuff.



