Monthly Archives: January 2010
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")
Nice for learning reStructuredText
An online reST-Editor – give it a try.
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
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