Monthly Archives: June 2010

Testing if a Point is Inside a Polygon in Python

Finally got around to find this out by Googling.  It’s a useful function so I reproduce it here for copy & paste: def inside_polygon(x, y, points): “”” Return True if a coordinate (x, y) is inside a polygon defined by … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Installing STSCI_PYTHON on Debian Squeeze

The version I use is 2.10. First, install IRAF, tables, and stsdas following this article. $ sudo aptitude install python-tk python-numpy python-pmw python-urwid $ sudo aptitude install libreadline6-dev python-matplotlib ipython $ wget http://stsdas.stsci.edu/download/stsci_python_2.10/stsci_python_2.10.tar.gz $ tar -xvzf stsci_python_2.10.tar.gz $ cd stsci_python_2.10 … Continue reading

Posted in Debian, Linux, Research, Squeeze | Tagged , , , , , , | Leave a comment

Installing IRAF on Debian Squeeze

IRAF doesn’t have a standard installation procedure using make tools, so it is no fun to install in any system.  One solution is to go for Scisoft, but I don’t necessarily want to install a whole bunch of software that … Continue reading

Posted in Debian, Linux, Research, Squeeze | 1 Comment

Installing Evernote for Windows on Debian Squeeze

No Linux version!  Lame! First, install Wine as usual. Then download version 3.1 of Evernote for Windows (no, version 3.5 does not install due to its .Net requirement), and run the installer: $ wine Evernote_3.1.0.1225.exe That’s it.

Posted in Debian, Linux, Squeeze | 4 Comments

Installing KeePass on Debian Squeeze

$ sudo aptitude install keepassx This is my favorite username & password manager.

Posted in Debian, Linux, Squeeze | Tagged , , , , | 1 Comment

PDF Viewing on Debian Squeeze

I find Okular to be a superb PDF reader.  Yes, you can even annotate directly onto PDF documents! $ sudo apt-get install okular poppler-data The last module is necessary to view Japanese PDF documents.

Posted in Debian, Linux, Squeeze | Leave a comment

Installing Skype on Debian Squeeze

To install Skype under /usr/local on Squeeze (AMD64), do: $ sudo apt-get install ia32-libs ia32-libs-gtk … download Skype source (static version) … $ bunzip2 -c skype_static-2.1.0.81.tar.bz2 | tar xvf – $ sudo mv skype_static-2.1.0.81 /usr/local $ cd /usr/local/bin $ sudo … Continue reading

Posted in Debian, Linux, Squeeze | Leave a comment

Installing Kindle for PC on Debian Squeeze

I sometimes want to run Kindle for PC on Wine.  Amazon is so lame that they don’t even bother making a native Linux version of this software! Here is the procedure.  Move to a temporary directory and do: $ sudo … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 36 Comments

High-performance Computing Tips

A nice thing about my current institution is that it has access to high-performance computing (HPC) facility.  I get to use so-called supercomputers.  This is a cheat sheet for myself. Reserving your job: Show the information about a job with … Continue reading

Posted in HPC, Linux | Leave a comment

Securely Erasing Hard Disk

Like when you need to sell your old computer, sometimes you wish to wipe clean a hard disk drive in a secure manner (i.e., not just removing reference to data). Here, /dev/sdb is the disk to be erased. Takes a … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment