Some notes on linux, software development, and other things - also available as Atom Feed.
Performance of scipy.signal.medfilter
The median filter in scipy.signal is not optimal. Following
discussion, there are much faster implementations, even in pure python. However, the fastest method
running_median_insort, is not a drop-in replacement for
scipy.signal.medfilt as it does not calculate the central median but the
right sided median. However, by zero-padding as in the code below the behavior of the
scipy implementation is exactly reproduced.
Encrypt mails send by cron
Sometimes the status mails of cron jobs may contain sensitive information like filenames that are transmitted unencrypted via email. To encrypt the cron output with gpg to you and you admin, you can add the following to your crontab.Read more ...
Convenient ssh tunnel+proxy to use library access to journal pages
Using a ssh tunnel and local socks proxy in a browser is a convenient way to access journal pages that check for the IP range of the university. This script opens a ssh tunnel and launches a chromium session with the according proxy sessions.Read more ...
Histogram container for matplotlib
Histograming of data in multiple containers, or data that doesn’t fit into computer memory is inconveniant with standard numpy/matplotlib. To work around this, I created a small container class to use histograms as in CERN ROOT style:Read more ...
Moving this page to jekyll