Log Message
Note to self: when you get time, figure out how to do logging, as a general practice: here is a nice link to get you started.
Note to self: when you get time, figure out how to do logging, as a general practice: here is a nice link to get you started.
Note to self: when you get time, figure out how to do logging, as a general practice: here is a nice link to get you started.
Sometimes, a python script just gives up and hangs. Even Ctrl-C does not exit the program. You do not have to have a loop with a catch-all except command or ...
To better visualize the call tree after profiling a python script, first save your output from cProfile using python -m cProfile -o <myscript.profile> ...
If you want to export from vim to a pdf file with syntax highlighting, hardcopy does not seem to use the correct syntax highlighting file. Or rather, it uses...
To make vim display italicised text, see this wonderful blog entry. Essentially, we need to manually map the escape sequences to the keywords sitm and ritm, ...
Installation instructions for vtk are terribly hard to find. Here they are: from the public wiki.
For an introduction to extending python using C, via PyObject and the like, take a look at this tutorial.
The which program used by Fedora/CentOS/RHEL is far more advanced than that used by Debian/Ubuntu. Get the Fedora version here. I have also created an alias ...
Get ls to sort by file extension using ls -X. I have added this to .bashrc so this is now the default. If you want the usual directory listing, for instance ...
For more general info on making and installing your own packages, take a look at this page.
To make virtualenv find your user-defined module, assuming you are using virtualenvwrapper, you can simply use the add2virtualenv command.
To make a user-defined python module that you can import in many scripts, you must place your module in one of the site-packages directories in sys.path. If ...
Take a look at this for a nice, short tutorial on screen. Be warned: screen and my shortcuts in vim do not seem to interact very well.
To convert a pdf document into one containing two pages per side, simply man pdfnup. This is a convenient frontend to the more complex pdfjam. For most purpo...