I followed the admin option “General Options” -> “Blog address (URI)” and found it doesn’t work for me. So I copied the index.php from wordpress to root and edited as follow. Then it worked. The modified index.php is as follow.

< ?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wordpress/wp-blog-header.php’);
?>

Zizhu Map图例说明:
示意图中用绿色表示上行站点,橙色表示下行。线路起迄站用矩形框表示。一般规定:由南向北、由西向东为上行方向,反之为下行。对于图中各条郊区文字线路,一般规定:从郊区向市区、远郊向近郊为上行方向。

Marriage gift from NatalieToday I received my marriage gift from Natalie D’Anna - my best friend in Houston. I’m very happy thus I take the photo.

trainingI delivered a Linux device driver training in SJTU software college building to faculties from 9 universities of Eastern China (see below) this weekend (11/19~11/20 2005). You can find the sample code from http://kernel.org/pub/linux/kernel/people/chuyee/sample_code



* Shanghai Jiaotong Univ.
* Fudan Univ.
* Zejiang Univ.
* Nanjing Univ.
* Univ. of Sci. & Tech.
* Southeast Univ.,
* Tongji Univ.
* Shandong Univ.
* Eastern China Univ. of Sci & Tech.

I used GNU/Debian with en_US locale and used SCIM for Chinese input. Everything is fine until I upgraded it today. I synced every packages up to date. Then I found SCIM is broken! The scim daemon is not run by default. Even if I run it manually, I cannot switch to the Chinese Pinyin input method.

After several hours of fail and retry and google searching, I found a workaround. That is, install below packages which are marked “optional” from dselect or aptitude:

scim-chinese 0.5.0-1
scim-gtk2-immodule 1.4.1-1

Done. Everything goes back to normal now.

I am in the States from Dec 04 to Dec 16 2005. Photos keep uploading during this period… view

Demetrio AlbertiniAlbertini, who was the best midfielder in the world I believe since the first time I watched football in 1990’s retired on March 15th 2006. His career came to an end at San Siro Stadium – the place where it all began in 1989…

If there is a url link in an email, I cannot open it directly under Evolution. This was a PITA for me for a long time. Today I started evolution under a terminal and finally was able to get some debugging message from it. The reason is the default Gnome browser is not set up correctly.

To fix it, run gnome-control-center, select “Preferred Applications” -> “Web Browser “-> “Select Firefox”

Done. nice! ;-)

Before configuring the printer, CUPs and samba need to be installed. Printer can be configured with a GUI tool under Gnome — gnome-cups-manager. Select “Network Printer” and “Windows Printer (SMB)”. Then enter the correct host and printer name. If you have domain name, it should be added to your username. For example, ccr\yzhu. Next step is to select the printer driver. If you cannot find your printer from its list, you need to provide the driver yourself. Fortunately, Linuxprinting.org provides most of the printer drivers nowadays. Since my office uses the Xerox Document Centre 405 printer, I downloaded the closest Xerox Document Centre 400 driver. Click done. It works like a charm.

BTW, my office doesn’t support the CUPS or UNIX print protocol. So SMB printing is the one choice for me. Otherwise life could be much easier. The only inconvenient thing so far is I have to switch the password from time to time after I change my Windwos login password.

Reference:
1. Debian and Windows Shared Printing mini-HOWTO
2. LinuxPrinting.org

I often receive some emails with MS word or powerpoint format attachments. But I find I could not open it directly with the “open in openoffice.org” option in the Evolution. When this happens, I have to save the attachment to local disk with an English name and reopen the renamed file with openoffice. This is not so convenient.

This is certainly an openoffice problem because other programs like Abiword can open it correctly. After playing with LC_CTYPE for a while, I found openoffice (version 2.0.2 as this is writing) doesn’t support setting LC_CTYPE to zh_CN.GBK, zh_CN.GB2312 or zh_CN.GB18030. If LC_CTYPE is set to “C” or en_US, etc, the Chinese named file can be opened without any problem. But the LC_CTYPE has to be set to something indicating Chinese for me because I need to use SCIM to input Chinese (If LC_CTYPE is set to en_US like, SCIM won’t list the pinyin input method). Finally I found zh_CN.UTF-8 plays the trick. After export LC_CTYPE=zh_CN.UTF-8 in my .bashrc, openoffice is able to open Chinese filename (within Evolution) correctly and I can still use SCIM to input Chinese.

Next Page »