Monthly Archives: January 2010

Indenting in PyDev

Mark the line, press TAB or Shift-TAB!

Posted in eclipse, python | Leave a comment

Counting PDF pages with python only

Found this recipe – nice and lightweight: import re rxcountpages = re.compile(r"$\s*/Type\s*/Page[/\s]", re.MULTILINE|re.DOTALL) def countPages(filename):     data = file(filename,"rb").read()     return len(rxcountpages.findall(data)) if __name__=="__main__":     print "Number of pages in PDF File:", countPages("test.pdf")

Posted in python | Leave a comment

Nice for learning reStructuredText

An online reST-Editor – give it a try.

Posted in Uncategorized | Leave a comment

Django Developer Toolbar

A really nice tool for everyone developing Django. Together with virtual-env, django-evolution, fabric, pip and pydev it’s a pretty nice development environment. Get it here. Well – pydev is currently living a dangerous life – spent my whole afternoon hunting … Continue reading

Posted in complaining, python, redirecting your attention | Leave a comment

Google AJAX Libraries API (good or evil)

Just stumbled across Google AJAX Libraries API and I’m really tempted to use it. This leaves me with the question: Should I? At first it’s a really nice thing to be able to host less “stuff” – hosting less is … Continue reading

Posted in Google | Leave a comment