Archive for June, 2008

OpenSSL::SSL::SSLError: certificate verify failed open-uri
June 10, 2008

I wrote a web-crawler today for one of my other projects, and ran into the above problem “OpenSSL::SSL::SSLError: certificate verify failed”, well I was just collecting websites and didn’t really care about the validity of SSL certificates, so I just wanted a quick fix.
Here it is:
require ‘openssl’
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
Essentially, I just change the constant for [...]

Take Screenshots of a website from the command line
June 4, 2008

I don’t feel like rehashing the hours I spent today trying to get various methods of taking command line screen shots of web-pages to work, but I’ll pull out a few useful pointers here.
There are 2 ways of doing this for free. (That is, if you value your time at $0 an hour)
First: khtml2png

http://khtml2png.sourceforge.net
khtml2png2 [...]