looking for a way to url_encode a string in ruby? Use
CGI.escape
looking for a way to url_encode a string in ruby? Use
CGI.escape
Creating my first ruby module using setup.rb. Seen in the documentation :
"I do not assure any backward compatibility for the setup.rb. If you'd like old behavior, just use old version.It seems a bit unpleasant, like something that'll hit you in the back in the future.
Do you want to learn rake (ruby equivalent of make) ? then this tutorial is for you.
Finally, I found time to publish the photos of FOSDEM 2006. Among other bad pictures, a bunch of gentoo devs, with their name written by them :)
here it is.
Since I'm working with ruby, and I'm quite new to it, I'll post some interesting stuff I learned. It's for now very newbish, but it'll eventually raise in quality
ruby stuff :
That code works :
class A
def A.class_method
puts "foo"
end
end
class A::B::C
def A::B::C.class_method
puts "foo"
end
end
class A::B::C
def (A::B::C).class_method
puts "foo"
end
end
Going back to old school blogging : Advogato !
It's been some weeks since I stopped my last blogs, so there is a lot to say !
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!