June 19, 2006
June 9, 2006
vim不能折叠,这是Ubuntu的错?
我的vim里面不能默认开启折叠,已经忍了它很久了。昨天又一次调程序,终于受不了一页页翻代码的麻烦,决定要搞定它。于是,上freenode.net的#vim去问。一位叫做tpope的老大真是热心,细细的问我各种设置。在让他失望了无数次之后,他终于这样说“你还是手动折叠好了……”。惨阿。然后有人说vim 6.x的runtime文件都有些毛病,不能正常使用折叠——我真的怀疑他的说法:难道因为有人写错了runtime文件,所有的vi用户都没有折叠用?又有人说这是Ubuntu的毛病,我还是很怀疑……
没有折叠的日子,真的挺难受的。
May 15, 2006
Linux家族系谱
在kde-look.org闲逛,发现了这个东东。毫无疑问,上面的发行版并不全,因为据说已经有300多个linux发行版了,但是上面的应该都算是名门了吧。

May 13, 2006
不能用firefox很久了,原来是scim在作怪
我已经用上了Firefox,主要是SCIM输入法问题:请删掉旧版本,然后用以下任何方法编辑一下
1.重新编译 SCIM;
2.编辑该文件:vi gtk.immodules
把下面的语句注释掉:
代码:
#"/usr/lib/gtk-2.0/immodules/im-scim.so"
#"scim" "SCIM Input Method" "scim" "/usr/share/locale" "*"
3.换用 fcitx。
4.将用户目录下的.i18n文件内的GTK_IM_MODULE=scim条目注释掉,也就是在前面加"#"。
我推荐第二个方法。简单,省事。
April 17, 2006
how to install intel fortran compiler under ubuntu linux
The solutions on the ubuntuforum.org seem not working for my box correctly, here is my solution.
1. download the intel fortran compiler from intel’s ftp. If you do not know where to go, search for it on google. The complete package has a size of 128MB, and after unzipping, you will find some rpm files.
select the proper rpm for you computer, For Pentium 32bit processors, you can choose intel-ifort9-9.0-031.i386.rpm. Convert it to deb package with alien. I used -k to reserve the version number.
sudo alien -k intel-ifort9-9.0-031.i386.rpm
2. install the deb package.
sudo dpkg -i intel-ifort9*.deb
3. go to the default installtion directory, which is, normally, /opt/intel. Change the permission of the directory and its subs with chmod so that every user can access it.
sudo chmod 755 -R intel/
4. add the following code to your .bashrc.
# add Intel Compiler environment variables
#INSTALLDIR is /opt/intel/fc/9.0/
if [ -z "${PATH}" ]
then
PATH="/opt/intel/fc/9.0/bin"; export PATH
else
PATH="/opt/intel/fc/9.0/bin:$PATH"; export PATH
fi
if [ -z "${LD_LIBRARY_PATH}" ]
then
LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib"; export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
fi
if [ -z "${MANPATH}" ]
then
MANPATH="/opt/intel/fc/9.0/man":$(manpath); export MANPATH
else
MANPATH="/opt/intel/fc/9.0/man:${MANPATH}"; export MANPATH
fi
if [ -z "${INTEL_LICENSE_FILE}" ]
then
INTEL_LICENSE_FILE="/opt/intel/fc/9.0/licenses:/opt/intel/licenses:${HOME}/intel/licenses"; export INTEL_LICENSE_FILE
else
INTEL_LICENSE_FILE="${INTEL_LICENSE_FILE}:/opt/intel/fc/9.0/licenses:/opt/intel/licenses: ${HOME}/intel/licenses"; export INTEL_LICENSE_FILE
fi
5. reboot your computer and use ifort to compile your source code. Intel fortran compiler can compile much faster fortran programs on Pentium computers than g95 and gfortran. Enjoy!
February 14, 2006
Amarok实在是太棒了
Bizarre name, amazing application——洋人们是这样说这个在Inuit语中代表gaint wolf的奇怪的音?播放器的。
第一次?到这个软件的时候,看到它没有xmms或者winamp?巧的界?,我就没有太把它当一回事。直到昨天?然?现它?以扫??硬盘里?的媒体编辑?库而且能够自动按照歌手和专辑分类的时候,我终于?现了它的与众??。虽然节目?是太?巧,但是功能?对够?丽。它能够仅仅就留个图标在系统托盘照样播放,能够从amazon.com下载专辑的??,更?歌曲的时候有漂亮的on screen display,退出的时候甚至有声音?弱功能……还有一大堆我没有?掘出?的东西。一个?,?丽?
December 12, 2005
关于thinkpad装Linux的调教系列HOWTO
Ubuntu Linux 5.10 Breezy Badger on an IBM Thinkpad T42
http://www.columbia.edu/~em36/ubuntubreezythinkpadt42.html

