Tag Archives: programming

Running Tornado on dotCloud

To brush up my web development skills, I decided to try Tornado. I also wanted to find a hosting service of some sort for my projects, which must be cheap and developer friendly. There, dotCloud seemed very nice and I … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Repeating Failed Linux Command on Bash

I was in need of backing up a lot of data in a hurry.  I used rsync between the file server and a locally mounted USB drive, but for some reason the command kept failing.  It had something to do … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

Using Linux Shell Command within Python

If you just want to do some simple task, this would do:

Posted in Uncategorized | Tagged , , , | Leave a comment

SciPy Weave Bug in Debian Squeeze

I was trying to remove a bottleneck by converting a portion of Python code into C++ via scipy.weave.inline, and encountered a bug. Here is my code: And this is what I get: Fortunately there is a fix: The fix for … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Comparing the Efficiencies of Gaussian Convolution Routines

These days I quite often need to convolve (i.e., smooth) 2D images by some Gaussian. There are quite a few routines that can do this with varying efficiencies. So I compared a couple of them. On my laptop, this script … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Suppressing Warnings in PyFITS

PyFITS is obviously a great Python package if you ever need to deal with data in astronomy. One thing that consistently annoyed me however was their use of warning messages.  For example, whenever you overwrite an existing FITS file, the … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

Using Some Python 3 in Python 2.6.x

This is just a note for myself to start getting used to the Python 3 coding practices. In order to use some Python 3 features in Python 2.6.x, use this statement in my script: It’s not a very good idea … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment