Saturday, August 4, 2012

Skim and skimpdf

I've been using skim to read pdfs instead of preview. Preview on OS X Lion annoyed me because of huge startup times and some other really annoying behavior of windows and grouping.

However, I missed being able to merge multiple pdfs which was quite easy with preview. Then I discovered that skim supplies a command line tool called skimpdf that allows us to do this! It is located in Skim.app/Contents/SharedSupport/skimpdf

Thursday, August 2, 2012

Setting numpy (pylab) printing options

Numpy (and pylab which uses numpy) can be instructed to change how it prints out arrays and other objects. The one I find most useful is:

pylab.set_printoptions(threshold=5)

If there are more than threshold elements in an array then pylab/numpy will use the ... (elipses) notation to print, which reduces clutter.