To share know-how, news, experience, and information regarding technology, software, hardware, programming, Python, ABAP/4, product, high-performance computing, grid, cluster, ERP, SAP R/3, SAP NetWeaver, and many more.

Generate .pot files of custom modules in Drupal

Since I developed my own modules in Drupal, now it’s time to translate them into Thai. In order to translate custom modules, I need to generate .pot files from all PHP codes. Drupal provides extractor.php in the translation templates or you may directly get it from CVS. Note that you need PHP command line interface to run extractor.php. In Ubuntu, you can install php4-cli or php5-cli which match to your installation. To generate .pot files, follow below instruction.

Ctrl Ctrl to search

Some people deployed Google Desktop but not Google Sidebar. I don’t know why because I love Google Sidebar. Anyway, it was a bit difficult to access Desktop Search when you want. Google realized that and . Whenever you want to search for anything in desktop, just simple press Ctrl key twice. You might see Quick Search Box and then press Ctrl key twice again to hide the box.

Technorati Tags:

Cluster Suite 4 and Global File System 6.1 for CentOS-4

This's old news. I found some announcement from centos offical site. The centos 4 is released Cluster Suite 4 (CS) and Global File System 6.1 (GFS) for support i386 and x86_64 architecture

You can find more information and documents in http://www.centos.org/modules/news/article.php?storyid=108

 Wink

Issues after upgrading to Drupal 4.7.0 beta 6

zendz found some problem regarding to Hall of Fame module. Its menu at the top of all pages has disappeared. I tried to directly access https://howforge.com/hof. The error message was "access denied". Fortunately, I found a patch at http://drupal.org/node/53875. Thanks chrisd and Steven for the patch of External URL support for menus broken by SA-2006-001.

How to run GDPSetup.exe

GDPSetup.exe is a file bundled with some ’s plug-ins, e.g.,  and . Usually, you don’t need to worry about install/uninstall each plug-in. However, you might be interesting to run it by yourself. There are two options; install and uninstall. To install, run it as below.

GDPSetup.exe -install

And to uninstall, see below.

GDPSetup.exe -uninstall

How to read non-English character in mailman archives using Python

I was asked to help reading e-mail with TIS-620 encoding, Thai, archived by Mailman in HTML format. Since Thai characters are above ascii range, Mailman changed all Thai characters into ascii character by running escape entity function. For example, A could be encoded to A. That means all Thai characters were converted to € - ÿ, roughly. Both IE and Firefox will display these entities in latin1 encoding no matter what I forced, e.g., TIS-620.

Fortunately, Python helps me in just a few line of code. See below.

import re
s = "ÊØ¡ÃÕ"