Archive for May, 2007

Hpricot - HTML parser for Ruby

May 27th, 2007

Hpricot is a very interesting lib to parse HTML. I’ll post here the example, just to check on the beauty of it from time to time…

require ‘hpricot’
require ‘open-uri’
# load the RedHanded home page
doc = Hpricot(open(”http://redhanded.hobix.com/index.html”))
# change the CSS class on links
(doc/”span.entryPermalink”).set(”class”, “newLinks”)
# remove the sidebar
(doc/”#sidebar”).remove
# print the altered HTML
puts doc

The lib is evolving, being added […]


MTA Comparison

May 17th, 2007

… this page is a good and simple comparison page for different MTA’s like Exim, Postfix, qmail and Sendmail.
“One scenario is to use Postfix and Exim. The logic for Postfix is that an MTA facing the Internet needs to be as secure as possible it must perform as few functions as possible. For Exim, an […]


Blogging from Vim

May 11th, 2007

… i finally set up the page for the download of the vimblog.vim vim-ruby script. It will allow you to manage your blog posts from *the* editor VIM, very easilly. Learn one single command and, at maximum, seven simple parameters. So go ahead and blog with vim.