enscript, psnup, pdfnup

The three programs mentioned in the title of this post are quite useful for manipulating all kinds of documents. Here’s an example:

enscript -E -o cfile_pretty.ps cfile.c
psnup -2 cfile_pretty.ps cfile_pretty-1x2.ps

The first command will take cfile.c and generate a postscript file containing the C source code complete with syntax highlighting. I tend to print a good bit of source code, only to discover that the part I care about and continually refer back to is relatively small. Thus, I like having the ability to print more than one “page” of enscript output on a single page of paper.

The commands above will help make that happen. I had more trouble finding this information on the web than I expected; hence this post.

% dpkg -S /usr/bin/pdfnup
pdfjam: /usr/bin/pdfnup
% dpkg -S /usr/bin/psnup
psutils: /usr/bin/psnup
% dpkg -S /usr/bin/enscript
enscript: /usr/bin/enscript

Advertisements

NFS is your friend

I have a fast computer and a slow computer. I want to build software on the fast computer and install it on the slow computer. Rather than deal with excessive amounts of tar-ing and gzip-ing, I setup an NFS share. This page presents a nice tutorial for doing so under Debian. It worked great for me.

blog moved!

I moved this blog today from yao.ece.cmu.edu to its new home at mccune.ece.cmu.edu. This was much more painful than it should have been, solely because I had a tough time configuring the MySQL user for the blog. Suffice it to say that one should read the MySQL manual for the version of MySQL which one has installed. Grrr….