Monthly Archives: March 2012


Tweet If you start to use python, just install ipython to ease your life by having a more interactive python shell. A nice feature in the ability to embed matplotlib plot. Start with this option:

Another great new … Continue reading

Posted in Python | 2 Comments

linux: How do I know the number of memory cards

Tweet The dmidecode command dumps lots of information about your system. The option memory gives you details about your memory card. In particular how many are installed (e.g., 2x2Gb or 1x 4Gb)

Posted in Linux | Leave a comment

VIM: switch all text to lower case

Tweet You can change the case of a character by typing ~ , however, if you want to change all text to the same case (let us say lower case here), then you should enter the visual mode. Go to … Continue reading

Posted in Linux | Tagged | Leave a comment

How to embedded data files in python using setuptools

Tweet Within a Python package, it is useful to provide data files. These files are not python modules so you do not want to place same together with your module. Let us put them in a directory share/data. Suppose you … Continue reading

Posted in Python | Tagged , | 7 Comments