lorenzo bolla’s blog

January 31, 2009

wordpress.com and text based web browsers

Filed under: personal, tech — Tags: , , — lbolla @ 11:07 pm

today, I was appreciating how well wordpress.com renders on text based web browsers (using elinks).

unfortunately, even if reading posts looks great, posting does not. actually, I’ve been able to delete one of my posts, while searching to edit it. completely wiped out. luckily, google cache saved my time and promptly found an older copy.

beware!

command line html validator

Filed under: programming — Tags: , , — lbolla @ 11:00 pm

valid HTML is something we should strive to achieve.

W3C Validator is an invaluable tool to do just that.
unfortunately, validating a local file you are working on can be annoying after the 100th time you’ve uploaded it to the W3C website.

Here you can find a command line HTML validator that simply uploads anything passed to it from stdin to the W3C Validator.

The basic syntax is:
$> python validate.py < file_to_validate.html

enjoy!

Note: before using the file, rename it from validatepy.pdf to validate.py. unfortunately, I’m not allowed to post .py files on this website…

Blog at WordPress.com.