Tuesday, November 18, 2008

HTML Helper Mode and Indentation

This is my third post for the day. I blogged about this and this earlier today. Writing smaller pieces regularly works much better than waiting for the big post. Commenters, do let me know if you like this style better.

I am really irritated with the html-helper-mode's indentation. It flattens the code rather than indenting it. I missed my tidy command from yesteryears when I did not use emacs. But I am coding on emacs now. I do not have to miss anything from within emacs. So, I added a tidy-html function to format the html as properly indented XHTML.



And I absolutely love Gist. It has solved all the quirks involved with posting code on a blog.

Meetings and Boredom continue

I am sitting on yet another boring meeting and have written a script to write it to a PDF. Its not a pretty one but I got it done in 30 mins. That has to count for something. You would need ReportLab and PIL for this.



Beautiful Soup and ReportLab rock.

Meetings and Boredom

I am sitting in a really boring meeting. I was browsing reddit and found a very interesting dilbert script. I am a huge fan of Dilbert and wanted to download Dilbert strips for offline viewing. I know its not entirely ethical but what the hell. I wrote a small python screen scraper to do that. This requires you to download Beautiful Soup. If I am too bored, I will write a script to compose it as a PDF.