Skip to content →

Category: Blog

Privilege given up

I’ve given up the privilege to enter graduate school without examinations. Yeah, to many of my fellow students I’m a little too bald. After all, I may get into a top graduate school in China.

Then what? I would get a master’s degree and then apply abroad grad schools? It’s true that if I choose to stay home, now I shall be rather relaxed instead of worrying about how many scores I may get in the GRE and TOEFL, or what should be added into my PS and resume, or, what’s the possibility that I can get into a top group. But if I am easy now, two or three years later I may well go through all the difficulties and barriers that I’m faced with today. So why not fight today for a better tomorrow?

Besides, I do not see any grad school in China interests me. From my point of view, there’s little difference between undergraduate and graduate education in China. A lot of postgraduates crowd in the lab and doing what they do not want to do, with little, if any, help or directions from their supervisors. That’s not what I want to do for the next two or three years.

I believe action makes differences. Still I believe my efforts will pay off.

Life is mysterious; future is unknown; I shall just go.




Traveling is one of the best ways to learn. You can experience what you have not experienced before. You can visit majestic buildings. You can taste marvelous foods. You can make friends with all kinds of people. You can learn the people, the language, the culture, and the history. Thanks to the diversity and magnificence of the world, by traveling you can broaden your horizons and open your eyes to the world.

Traveling is good for your health, too. From one aspect, it is refreshing. With all kinds of magnificent scenery, you will just forget the trifles and pressure in your mind. From another, you will exercise a lot when you are on the go. For example, when you climb the mountains, you are just doing sports. So if you want to keep fit, just go and travel!

But traveling is for the brave ones, for to travel means to explore. You have no idea with what is going to happen and what you are going to see and feel. There are always surprises. You are likely to see the scenery you have not expected. Sometimes it is quite magnificent. But on other occasions it could be rather unattractive, which you have to bear with all your efforts.

Anyway, traveling is becoming more and more popular. It benefits us a lot. So why not?


Leave a Comment

The Bucket List

Today I saw the movie The Bucket List directed by Rob Reiner, in which Jack Nicholson and Morgan Freeman acted as two patients who had been diagnosed with cancer. Knowing their approximate day of dying, they wrote their “bucket list” – the wishes they wanted to realize before kicking the bucket but had not yet been carried out. The list reads:

1. Help a complete stranger for the good.

2. Laugh until I cry.

3. Witness something that is majestic.

4. Sky diving.

5. Kiss the most beautiful girl in the world.

6. Get a tattoo.

7. Drive a Shelby.


They went and gave it a shot. They realized most of the wishes on the list.

Then I begin to think, what if I were told to be dying in a couple of months? What will be my bucket list? That is a really tough question. It is said in the movie that 96 percent of people do not want to know their day of dying. But it is a realistic question that everyone may be faced with. So here goes my “bucket list”:

1. Find the most innocent kid in the world and look deep into his eyes.

2. Apologize with all my heart and soul to whom I have ever broken their hearts.

3. Spent a whole day alone, thinking about my whole life.

4. Talk with my family. Tell my childhood memories to my children.

5. Go to the forest and appreciate every creature with gratefulness.

6. Find a place extremely quiet and listen to the sound of silence.

People always talk about what are really important in life. But they seldom pursue them. Everyday we are concerning about how much money we are making, how large out house could be. However, we care little about love for another and our health.

May be it is high time that we settled out finding the essence of life.


Leave a Comment

Think before you speak

It cost me ¥1 to learn this proverb. I should have learned it before, but I hope it’s the last time I pay the tuition.

Rocky is the foreign teacher today in the English corner, and he is surely a shrewd one. “I can do two to three hundred push-ups in four minutes. You give me one Yuan and if I lose, I’ll return you two Yuan.” Considering his size, I said “I’m in!” and gave him one Yuan. He is 180 kilograms, how could he do 200 push-ups in 4 minutes? There it goes. He did three push-ups and then stand up, looking at us seriously, “You lose.” “Why?”

“I’ve told you to think before you speak, I just said I could do 2 to 300 push-ups in four minutes, so I win!”


“So these are mine!” Holding a handful of one-Yuan notes, he said happily. For some other guys also joined the game, one of them even bet two Yuan for it.

Well, there my money goes, but besides, I’ve learnt something more, such as “adidas” means “All Day I Dream About Sex”.

But I should have been more careful. I thought I was a boy of principle. I never gamble and I hate it. But today I couldn’t help betting with Rocky, why? Why I’m always lured by some minor benefit? I could never be too careful.


Leave a Comment


今天帮硕哥装了GNU/Debian Linux,没有安装盘,所以还是像以前一样通过网络安装,最开始装WinGrub是不能将Grub装到MBR上,捣鼓了一阵子之后还是不知道怎么回事,后来重启无意发现他的机器装了矮人工具箱,它是利用Grub引导的,于是就直接进命令行,输入启动参数,启动,开始下载安装。但是不知道是校园网慢还是硕哥的网络慢,装了一个多小时才装好。装好基本系统后又帮他配置了Java,还下了LumaQQ。然后进Windows,将剩余的硬盘分区重新划给Windows,大功告成,上楼看书。

不一会儿,硕哥又来找我了,说进不去系统了。我下去一看,Grub error 17,凭我装系统的经验(汗一个,为自己的硬盘默哀一秒钟)判断,应该是分区表损坏,于是,拿上Hiweed光盘,进系统,准备重装Grub:

grub>root (hd0, 5)

提示不能找到此分区,faint,退出Grub,运行 sudo fdisk -l ,不有这个分区吗?Grub凭什么找不到?


重新运行grub,不过用的是超级用户权限, sudo grub:

grub>root (hd0,5)

grub>setup (hd0)


再更改fstab,Grub的menu list,搞定。




Leave a Comment

VIM C++ (全能)自动补全: OmniCppComplete


1.把下载的 解压到 ~/.vim 中

2.建立 tags:
[email protected]:/home/rok# cd /usr/local/share/
[email protected]:/usr/local/share# mkdir tags
[email protected]:/usr/local/share# cd tags/
[email protected]:/usr/local/share/tags# ctags -R –c++-kinds=+p –fields=+iaS –extra=+q /usr/include/c++/4.1.2/

3.在 .vimrc 中添加:
set nocp
filetype plugin on
filetype indent on
set tags+=/usr/local/share/tags/tags
au BufWritePost *.c,*.cpp,*.cc,*.h !ctags -R –c++-kinds=+p –fields=+iaS –extra=+q .

Leave a Comment

终于搞定 Slackware 12.0 挂载的乱码问题了


/dev/hda2 swap swap defaults 0 0
/dev/hda1 / ext3 defaults 1 1
/dev/hda5 /home ext3 defaults 1 0
/dev/hda3 /win vfat defaults,codepage=936,iocharset=utf8,umask=000 1 0
/dev/sda1 /mnt/usb1 auto
noauto,codepage=936,iocharset=utf8,user,umask=000 0 0
/dev/sda /mnt/usb auto noauto,codepage=936,iocharset=utf8,user,umask=000 0 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


Leave a Comment

Mother’s Day: What I have done and What I should have done for my Mother

It’s Mother’s Day today. I’ve never celebrated Mother’s Day anyway. But, I think it’s time to express my gratitude and my deep feelings; and we shall always learn to express our feelings, gratitude, regret, etc.

I’m not going to ‘celebrate’ Mother’s Day though; instead, I don’t think Mother’s Day should only be celebrated on this particular day. In fact, I do think that everyday may be the same; and we should ‘celebrate’ Mother’s Day EVERYDAY!

Well, my mother has nothing in particular indeed; she is much like every the other mother in the world. She gave me my life; she taught me to walk, to speak, and to be a man with responsibility; she has been loving her son ever since I was born.

Then what I have done?

Well, if I think hard, I do realize something I’ve done sometimes. I have been getting along very well thanks to my family; I have been working very hard towards my destination; and above all, I’ve been living, safe and sound.

But I did make make mistakes. Some of them even made my mother rather sad at times. There was a time when I don’t want live in this world any more owing to the heavy stress of school work. This dangerous and ridiculous idea really scared my mother. She got heartbroken and extremely angry. Fortunately I realized my fault and, very fortunately again, I did very well in the Senior Middle School Entrance Examination.

And what I should have?

Actually I having been thinking about questions like this every single day. And I believe that as long as I’m living soundly, my mother should be quite happy. So, keep in good health and work hard to realize my dreams, that’s all I should have done; and that’s what I have done.

So, on this particular day, I have a clear conscience. And I believe it will be the same for me as well tomorrow and the day after tomorrow.


Leave a Comment












Leave a Comment









Leave a Comment

Experience of Geany — A lightweighted IDE

Geany’s homepage:

Well, since it’s lightweighted, it’s small and, above all, FAST. For personal user, I think it’s much faster than eclipse, and much easier to use than emacs.

It’s basic features:

syntax highlighting
code folding
code completion
auto completion of often used constructs like if, for and while
auto completion of XML and HTML tags
call tips
many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
symbol lists

It’s code completion function is of great help, and will help us a lot!

But there are problems. I’ve used this IDE for only a day, but the auto
indentation function can’t work correctly. For example:

for(i=0;i<10;i++) [press enter here]
[it should be indented like this]
[but not this]

or maybe it’s my problem.

If anyone works this problem out, please email me! Thanks.


Leave a Comment


if [ -L “$0” ]; then
PREFIX=readlink -f $0
if [ $? -eq 0 ]; then
PREFIX=file $0
PREFIX=${PREFIX##*symbolic link to }
PREFIX=dirname $0
case $PREFIX in
if [ ! -e $HOME/.lumaqq ]; then
mkdir $HOME/.lumaqq
cd $HOME/.lumaqq
ln -sf $PREFIX/ $HOME/.lumaqq/
ln -sf $PREFIX/xml
ln -sf $PREFIX/sound
ln -sf $PREFIX/QQWry.dat $HOME/.lumaqq/QQWry.dat
for i in $PREFIX/lib/*.jar; do
/soft/jdk1.5.0_08/bin/java -Djava.library.path=$PREFIX/swt -classpath $cp
edu.tsinghua.lumaqq.LumaQQ “$HOME/.lumaqq” &
#注意:/soft/jdk1.5.0_08/bin/java 为java路径



Leave a Comment















Leave a Comment

第一次成功优化Slackware Linux




Step1 字体以及中文的显示问题

1. 更改英文为中文:修改 /etc/profile.d/ 找到一行是: export LANG=C 在它前面加#注释掉,然后增加一行: export LANG=zh_CN.gbk

2. 复制字体:创建/usr/share/fonts/;复制windows下面的simsun.ttf, tahoma*.ttf等字体到/usr/share/fonts/目录下

修改XF86Config配置文件:修改/etc/X11/XF86Config 文件,加入路径: FontPath “/usr/share/fonts/” Section “Module” … Load “freetype” #<—– 这一行前面如果有#,应删除 Load “xtt” #<—– 这一行前面如果有#,应删除;如果没有这一行,自己加到文件里 Load “type1″ … EndSection

4. 下载或复制一些中文的ttf字体到 /usr/X11R6/lib/X11/fonts/TTF下

Step2 使用鼠标滚轮

改/etc/X11/xorg.conf。在mouse段的Option里,”protocol”设为“imps/2″,再加两行,最后成为: Option
“Protocol” “imps/2″ Option “Buttons” “5″ Option “ZAxisMapping” “4 5″ 或者另外一种说法: Section “InputDevice” # Identifier and driverIdentifier “Mouse1″Driver “mouse” Option “Protocol” “IMPS/2″ <==修改这里 Option “Device” “/dev/mouse” Option “Buttons” “5″ <==添加这里 Option “ZAxisMapping” “4 5″ <==添加这里

Step3 安装fcitx输入法

1.下载fcitx3.3 2.tar jxvf fcitx-3.3.tar.bz2 fcitx-3.3 4../configure 5.make 6.make install 7.make clean


1.下载LumaQQ2005,解压 2.下载patch

Step5 slackware 9 普通用户不能访问mount的分区问题

更改/etc/fstab文件:/dev/hda10 swap swap defaults 0 0/dev/hda3 / ext3 defaults 1 1/dev/hda9 /boot ext3 defaults 1 2/dev/hda1 /mnt/winC vfat defaults,iocharset=gb2312,umask=022 1 0/dev/hda5 /mnt/winD vfat defaults,iocharset=gb2312,umask=022 1 0/dev/hda6 /mnt/winE vfat defaults,iocharset=gb2312,umask=022 1 0/dev/hda7 /mnt/winF vfat
defaults,iocharset=gb2312,umask=022 1 0/dev/hda8 /mnt/winG vfat defaults,iocharset=gb2312,umask=022 1 0/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0/dev/fd0 /mnt/floppy auto noauto,owner 0 0devpts /dev/pts devpts gid=5,mode=620 0 0proc /proc proc defaults 0 0###########/dev/hda7 /mnt/win vfat defaults,iocharset=gb2312,umask=022 1 0###########我改了winC-winD的defaults,原来是defaults


1.j2sdk-1.4.2-nb-3.5-bin-linux.bin2.在~/bash_profile中加入JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2/PATH=.:$JAVA_HOME/bin:$PATHexport CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:.export JAVA_HOME PATH3.eclipse-SDK-3.3M1-linux-gtk.tar.gz4.在/usr/local/bin中新建!/bin/bash## 执行 eclipse 2.1.1#export Java_HOME=/opt/j2sdk_nb/j2sdk1.4.2export CLASSPATH=/opt/j2sdk_nb/j2sdk1.4.2/lib/opt/eclipse/eclipse -vm /opt/j2sdk_nb/j2sdk1.4.2/bin/java -data
/home/workspace &# -vm 参数用以指定使用哪一个 jvm 来执行Eclipse,# -date参数用以指定Eclipse的数据目录。在此指定其存在用户根目录(~)下的workspace目录中#将脚本保存到/usr/local/bin中,叫,并给runeclipse.sh分配755权限 ************************chmod -R 777 /home/workspace**************************

经过以上优化,系统基本可用了。以上优化对我的机器有效:联想旭日125F,Slackware9.0。本人 接触Linux的时间不长,上述方法如有不妥,请不吝赐教!


Leave a Comment