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
this
discussion, there are much faster implementations, even in pure python. However, the fastest method
used here, 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
as this page is basically static, it makes no sense to use a dynamic content management system as wordpress for it. So as of now I am using a static website generator jekyll to generate this page from markdown and plain html sites using few jekyll plugins and some javascript.
Read more ...