Sunday, February 19, 2012

Configure Japanese Locale in Debian

I'm using CrunchBang (#!) and I find Japanese fonts missing. To configure Japanese locale in Debian do the following.
1. Install the following:
sudo apt-get install ttf-kochi-gothic ttf-kochi-mincho ttf-sazanami-mincho xfonts-intl-japanese
2. Now you need to reconfigure the locale.
sudo dpkg-reconfigure locales
In the 'locales to be generated' dialog box, choose "ja_JP.UTF-8 UTF-8". If you use English, choose "en_GB.UTF-8 UTF-8" or "en_US.UTF-8 UTF-8", which ever is appropriate and click Ok. Next choose you default locale.
3. Reboot (or logout session, which ever works).

Tuesday, February 7, 2012

Pyramid - ImportError: No module named config

'ImportError: No module named config' error occurs due to the naming conflict. If you named your test file as pyramid.py, then you are most like to get this error when you try out the pyramid web framework examples. Simply use a different name for your file.