Monthly Archives: February 2009

Using vim in AWN Terminal

AWN Terminal is a handy AWN applet. It comes up faster then firing up a new gnome-terminal. I prefer to use it for running some commands or doing some simple editing task.

I am a vim user. Using vim in the AWN Terminal was not possible for me. Whenever I wanted to get out of edit mode (into command mode) in vim by pressing ESC, the AWN Terminal closed.

But now, I can. Guess what, there is another way to go into command mode other then pressing ESC. CTRL+[ is the one. 🙂

Advertisements

scp file name with spaces

Just now, I was trying to scp a file from a remote machine to my laptop. The file path contains spaces (both directory name and file name). The normal way of escaping the spaces with backslash ‘\’ did not work with scp:

$  scp  guest@remote:/some\ directory/abc\ xyz.txt  ~/Desktop

Quote the whole file path also didn’t work.

$  scp  guest@remote:"/some directory/abc xyz.txt"  ~/Desktop

After some googling, finally, I found the following command that works:

$  scp  guest@remote:"\"/some directory/abc xyz.txt\""  ~/Desktop
$  scp  guest@remote:"\"/some directory\""/*.txt  ~/Desktop

AWN 0.3.2 + Metacity + Lenny

Three days ago, AWN 0.3.2 was released. Looked at the screen-shots, one thing graped my attention, the notification area applet (system tray). I was using the official Lenny deb that does not contain that applet. I really want to have that notification area applet so I decided to compile the latest release from source. Thanks to the great documentation provided (it even list out all dependent debian packages required to built it), the compilation went through smoothly.

Now, I’ve been running the self-compiled AWN for a few days and it works great! My AWN’s notification area applet is a bit ugly compare to the one below:

If anyone know how to make (configure) it look better, please let me know. 🙂

拔牙

2009年1月29日(大年初四),我到医院拔掉了一颗智慧齿。由于它老是导致牙龈发炎,所以才把它给拔掉。该牙医(还是个实习生)还算不错,不到20分钟就完成了整个小手术。

接下来的几天,真是痛到不行。止痛药吃了三天,吃完了还是痛!开车回KL当天,我又另外吃了颗止痛药。共计:吃了3天+1颗止痛药。之后就算痛也不吃,忍!!!

除了痛,就是吃东西有困难。嘴巴动一动就痛,怎么吃嘛?!所以啊,从初四开始就只能吃粥(是过年期间啊)!回到KL后就只吃麦片。就这样过了8天吃软“饭”的日子。

今天已经是第14天了。那部分的牙龈和旁边的大臼齿还有些痛、线还没掉完,咬嚼东西时还是会避开该“区域”,但一切已经好很多了。再过几天就会痊愈了吧!

Earth Hour 2009

刚从网上得知这项活动。很有意思,所以我也报名了。不报名当然也没关系,但是报个名,让大家都知道又多了一个人的参与不是很好吗? 🙂

下面的Youtube视频也感动了我哦。