Li-Zhao's HomePage


I (LI Zhao) am from School of Computer Engineering, Nanyang Technological University, working in Sybase.
This is a memory book for me, so, miscellaneous topics can be found here.
Have fun!



Loading Blog Search...

Thursday, October 05, 2006

Hotkeys for Logictech cordless desktop EX110

I set up my old IBM T23 as media center in my living room, and got the cheap Logitech Cordless Desktop EX110 as remote.


As it is running Linux, a few tricks are needed to use these multimedia keys on the keyboard. First, hotkeys should be installed and autostart when X startup. And hotkeys.conf and itouch.def should be edited.



For a ubuntu user, please edit:
/usr/share/hotkeys/itouch.def

In this file, the codes of keys are mapped to some names easy to remember. And then please edit:

/etc/hotkeys.conf

In hotkeys.conf, each key name is mapped to a command, when the key is pressed, corresponding command will be invoked.

To know what's the keycode of a key, we can run xev, and press the key, xev will print corresponding keycodes to standard output.

A easier way: as for most Logitech keyboard, the keycodes can be found at here

Some useful keycodes are (copied from 1n12, maybe is for microsoft keyboard, but most are right for my logitech, haven't tried all):
keycode 115 = SLstart
keycode 116 = SRstart
keycode 117 = Smenu
keycode 234 = Sback
keycode 233 = Sforward
keycode 232 = Sstop
keycode 231 = Srefresh
keycode 122 = Ssearch
keycode 230 = Sfavourites
keycode 130 = Swebhome
keycode 236 = Smail
keycode 160 = Smute
keycode 174 = Svolumedown
keycode 176 = Svolumeup
keycode 162 = Splaypause
keycode 164 = Sstop
keycode 144 = Sprevtrack
keycode 153 = Snexttrack
keycode 129 = Smedia
keycode 198 = Smycomputer
keycode 161 = Scalculator
keycode 223 = Ssleep

Sunday, October 01, 2006

kde input problem (scim bug?)

So far, I have gotten four laptops (DELL 610, IBM t23, TOSHIBA portege 4010, and one ancient HITACHI), although most of them are aged, they are still usable, at least they over-perform VMWare to run 2nd OS.

Now, I can install Linux, Windows seperately, and put one in each room in my flat. :-D So, I am in good mood, and decide to use Kubuntu on the IBM T23, as its Linux support is better than portege 4010 (with modem and graph accelerator).

But there is a weird and annoying problem I meet in kubuntu, i.e., when I set XMODIFIERS="@im=SCIM", and use SCIM as XIM input method, randomly, some programs in KDE cannot get keyboard input. I believe it is due to the cooperation between kubuntu and scim, as I haven't met this problem before I use kubuntu.

Sorry that I have reported the bug to neither Scim nor KDE. I just replaced scim with fcitx. Although fcitx supports only simplied chinese, it is enough for me. Hope it can work well.

Friday, September 15, 2006

Oral Defence

After LONG3 time wait (about 1 year and 3 mths), my oral defence date is finally confirmed and it is today.
I will get the certification letter first followed by the degree, which will cost another 10mths' wait. OK, hope everything goes smoothly.

Monday, September 04, 2006

Crocodile hero died in an accident

The famous austrilian "Crocodile Dundee" (Mr. Irwin) has dies in an diving accident. The news is published in BBS website today (4-Sep-2006), while the exact date has not been mentioned in the report.

http://news.bbc.co.uk/go/rss/-/2/hi/asia-pacific/5311298.stm

I love this guy, although I have no much love for wildlife like him. Mourn over him.

Thursday, August 31, 2006

Funny, IE7

Now IE7RC1 is running on my laptop, and I am writing this post using it. After using it for several hours, it is so funny to find it looks like firefox so much.

I like it, it provides more features, such as:
1. can use ctl+D to select all in url box, no matter where the focus is.
2. can use ctl+W to close current window
3. fonts are adjusted
4. can use ctl++/- to zoom in/out pages
5. integrated RSS
6. middle click can open a new tab
7. tab browsing
8. ...

Based on 1 day IE7 experience, it resembles firefox so much, as all the features above is what I like in firefox. It is also funny to find that Microsoft is pursuing usability following other companies, which seldom happened in the last decade, at least in such an important product.

Friday, August 25, 2006

Hosting Problem

Free web hosting is attractive for guys like me, but it is really a bit annony when my hosting server always down in these days.
Anyway, I will insist to use the free service, util I get enough reason to pay for my website.

Tuesday, August 15, 2006

blogger system update

Finally, blogger system is to be integrated to Google's infrastructure. Please check out at beta.blogger.com. The new blogger system provides more features, such as article category.

Friday, July 14, 2006

Our Anniversary

2005年7月12日 我们难忘地结婚了, 至于有多难忘, 请参见前帖 , 在此不再长篇累牍。

一年时间过去得嗖嗖地, 在老婆的操持下,老公的努力下, 生活那是叫个忙碌。 我们去了曼谷;玩了马六甲;然后我开始在新加坡的第一份工作;参观了美国; 老婆拿了第一份年终奖和薪水提升 ; 签了我们第一份购房协议书;改完了我的毕业论文; 筹足买房款; 完成购房; 忙装修, 搬进了新家。 真是流水无情, 日新月异。

7月11号, 老公急冲冲从印尼出差现场赶回新加坡, 完成了和老婆的共进晚餐大页,席间, 孝敬向日葵一株。 在回家摆置好该葵之后(参见左图, 位于我们的餐桌之上, 裕华国货所得瓷画之前), 我们三下五除二的以史上最快的速度收拾完7月12日的度假用品后就要准备出发了。 鉴于老婆对老公象向日葵一样成长的殷切期待,我们称之为:

向日葵之旅

说时轻松,那时紧张, 这次周年小修能够成行是真的不容易, 在之前的一个月中, 我们合计提出建议若干,计划若干,探访旅行社若干,合计久久, 无奈无奈发现两个人基本就安排不出时间一起出门超过几天。 那么如果只有一天时间, 我们可以去哪里? 答案还是很多的 ---- 洗衣服咯, 做饭咯, 打扫卫生咯, 逛街咯, 去百去百厌的新加坡旅游景点咯。 嗯, 还好, 我们最终想起了一个美妙的答案 ---- 去海边度假屋看日出吧。

事实证明, 看日出是一个可遇不可求的任务, 我们后面再说。

感谢IRC, 感谢Coast Sands Resort, 感谢老婆坚持不懈的努力, 感谢老天, 我们在11号上午终于预定到了一间IRC club合作度假村的

小屋 (本两人为该会会员), 此是前话。在我们结束这次小修的时候, 发现我们度假屋在该club的绝对地位超然, 此是后话。让我们回到主题。

小夫妻俩抗起大包小包, 在地铁上小睡了一觉共一个小时之后,辗转Taxi来到了Coast Sands Resort, 很快就安顿下来。 小屋的装饰满是浓浓的resort

风格, 每一张木凳,每一张桌子都够厚实质朴。 藤编的床沿,抽屉在时日的琢磨下有点意思。 最让我们爽到的是4米多高的屋顶,卧室到客厅的无隔断设计, 让空间显得特别放松。 我们在各自的洗漱间淋浴更衣, 之后, 小小享受了一点小酒。

眼看时间还早,经过民主决议, 我们一致同意出门走走。 走出门, 发现屋后的栅栏的一扇小门。 沿小门外是椰子, 棕榈, 波罗蜜, 暂时超出我们认知范围的种种树木, 还有草地。半夜时分, 云大都厚厚地落在了天际, 月亮分外皎洁, 在薄云后穿行。 透过月光的树影斑驳陆离地把几条海边小路装饰的蛮是漂亮。 海边!? 怎么就到海边了? 忘记交待, 我们一出小门,就发现海边原来就在我们后窗后100米, 隔开着一片草地而已, 只是可惜空调的风声遮挡了海上的风。

走不多远, 我们从草地来到沙滩, 月亮在天顶把海水吸得高高的, 把几颗孤零零的树的根淹没在水中。 陪着这些树一起吹吹海风 and signed our names in the edge of sea后, 我们打道回府, 一夜无话, 按下不表。 第二天, 我们没有起来看日出, 因为, 大雨陪我们睡到了9点多, 嗯It is Yesterday Once More

小屋外小屋外

小屋外

小屋外

小屋外

小屋外

小屋外

小屋外

小屋外

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

探险玩具

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

千米走单车

签字

签字

签字

签字

签字

签字

签字

签字

签字

签字

签字

签字

签字

签字

海滩

海滩

海滩

海滩

海滩

海滩

海滩

海滩

海滩

海滩

海滩

海滩

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

loyang港

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

主题公园

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

蜡烛

Sunday, July 09, 2006

chinese font in konqueror

I prefer to use firefox, instead of konqueror to browse Web pages. One reason is that konqueror always show wrong characters when rendering chinese Web pages.

Although I seldom use konqueror, it is a rather annoying problem, especially when I click chinese url in kopete, as it invokes konqueror window full of characters known by nobody.

This problem is caused by qt fonts manager. It will find alternatives if there is no font data for a character in current font used in the interface (I pretend that I know the reason, in fact, I am not sure, as some version qts does not have this problem). So, to display correct characters, we need to config substitutions for each font to be used.

For example, a konqueror display characters using arial fonts by default in many Web pages. So, we can add SimHei/SimSun as its substitutions. We can do this in qtconfig, or just like me, modify .qt/qtrc (for ubuntu dapper), and add a section:

[Font Substitutions]
AR PL ShanHeiSun Uni=SimHei
AR PL ZenKai Uni=SimHei
SimHei=\0
arial=SimHei
helv=SimHei
tms rmn=SimHei


Please refer to http://dot.kde.org/1075655865/1075658566/ for more discussion.

Friday, June 23, 2006

List all posts again

Google provides an AJAX version of its search service, which can be integrated into your pages seamlessly; here, integrating seamlessly means the search result will display as a part of your own Web pages. please refer to CJ's webpage: Get Google Ajax Search For Your Site UPDATE.

I like this feature, but unfortunately, the AJAX search box may mess up your Web pages, especially when your pages use complicated layout. Another problem is its blog search engine does not provide as many features as what blogsearch does. It can only restrict search result to a given Web site, instead of finer granularity such as author name.

My current blogger site is immigranted from my old blogger site. Although blog.lizhao.net contains all posts from spide.blogspot.com, some posts of it have not been indexed by blogsearch. But now, I can use blogsearch to fetch posts from both sites, by restrict author name to "Li Zhao", while the AJAX engine is unable to do this so far.

Anyway, the AJAX search box is premising, and I want blogsearch can index all my posts in blog.lizhao.net, which may help the AJAX engine to search all posts in blog.lizhao.net. So, I list all posts in the main page of blog.lizhao.net and my ATOM feed. Hope blogsearch can update the index soon.

Friday, June 16, 2006

Google's Analytics

This blog is desolated for more than one month, which has never happened before. Too busy. Now, I cannot help posting sth.

Google analytics's invitation came finally, and then I installed it into my blog. Although I hear it is not as good as measuremap, it is better than none. So far, it collected one week's data, and show really comprehensive reports to me. Due to these reports I saw, Netstats is discarded from my blog. ;-)

Its geo-map provides info that is much more detailed than the one I am using in my right panel. Regretful, it cannot be integrated into the webpage.

Sunday, April 23, 2006

Dapper Drake on Acer Travelmate 3002 WTCi

To install Ubuntu 5.04/5.10 on Acer Travelmate 3000 series laptop is definitely painful. I have a long article of how to patch kernel, modify DSDT, etc. to make ubuntu run on my Acer. I wonder whether it is worth the time to hack all these for most guys.

Now, Dapper Drake beta is coming, although its version now is 6.06, instead of 6.04 in the original plan, due to the 2 mths delay of final release. But I donnot need all these features causing the delay, so, I planned to use another weekend to struggle to install it on the Acer.

From its Web site, I was glad to find it provides an live installer like the on in Mepis, I then decided to test how lucky I am this time to pass the install using the live installer, and downloaded the live CD.

After 2 hours downloading, I bootup my Acer 3002 WTCi from the live CD, and at the first glance, I was so execited to find the laptop just run, without any modification, except the resolution is still 1024x768 by default. Does that mean I can save the weekend to prepare paiting my new house? Maybe, if I can install it to my harddisk.

So, I clicked the install icons on desktop, following its instruction then. You know how sad I was when the installer exited at step6 (totoally 7 steps) without any notice. I tried two more times, and failed both times. Regret I can only throw the live CD away and download the installer CD now. Due to the good experience based on live CD, I expected I do not need 2 days to install it.

I have just downloaded the text install CD from Web site, and now I am trying to install it. After reboot, the install CD also startup without any problem. The interface remains the same as previous ubuntu/kubuntu. Now the progress bar passed 50% just now. Hopefully, Dapper Drake can run smoothly on the Acer model.

Conclusion:
Based on experience so far, Dapper Drake is so good (bluetooth, wireless, and hot buttons work), except:
1. Live installer in live CD failed on Acer Travelmate 3002WTCi.
2. Resolution is 1024x768 by default, and need 915resolution's help
3. kcontrol crashed when I am doing hotkey setting.

I will try more, and record the problems, if I can find more.

Friday, April 14, 2006

Writely Invitation Available Now

In another post, I introduced some online writers. Today, I got invitation from writely finally.

Now, this is the 1st post I write using writely. From the toolbar, I can see it supports to post to blogger from writely. So, I first try to create some complicated format here, and publish to blogger to see effects.

1. A table:
this is 70% width table with size of 3x3
The 1st
how about it?
good
it is easy to set all format
i like it
do u?

not bad, just like word


ok, seems table is easy to create and modify, then let's try to upload image:

2. image

I upload an image from my PC, very easy huh. Then I put it to the right part of this post.

I do not know where this image will be stored, if I publish this post to blogger. If writely can host the image, wow, I will love writely more. ;-)


3. font
Try some font effects here.
Bold, Italy and Underline
Good, so simple.

Now, let's try what fonts are supported by Writely.
FOnt1, Font1, Font2,

Ok, lots of fonts (about 15) are there. I only wonder what are the real effects in Web browser.

Let's publish the post now. Good luck to me and all writely users.
:D
I add the following comments in blogger, instead of writely.
1. writely hosts all pictures you uploaded. great
2. How to change corresponding HTML CSS style in writely is left to study
3. the HTML codes generated is ugly
4. if want to modify more, can only in blogger, I think

If you like the effect of easiness of writely, u can ask invitation from me now, if more invitations are left for my account. Good luck

Tuesday, March 28, 2006

How to add calendar to your blogger site in 4 steps

blogcat service is down now, do not try anymore! Before try to add calendar using blogcat, please register an account at blogcat. After getting an account from blogcat, there are 4 steps only to add a calendar with the following features:

  1. Date is highlighted corresponding to all your blogger posts.
  2. Update automatically when you browse a certain page.
  3. Show post title when you move your mouse over the calendar date.
  4. Load fast (compared with those javascript solution).
If you are interested in these features, try to follow the steps below:

1. Set blogger information

Select 'Blogger Configuration' in sidebar. Input your blogger ID and password, and then blogcat will ask you which blog you want to add calendar.

2. Fetch posts

Select 'Post List' in sidebar. Click 'Reload posts from Blogger!', then posts from blogger will be listed. In this screen, you can even assign a category for each post, and blogcat can generate a category list for you automatically.

3. Generate calendar

Select 'Build Calendar' in sidebar. Then there is a calendar generated corresponding to each month you logged.

4. Add codes to blogger template

Select 'Get Template Codes' in sidebar. Add the codes shown to your blogger template. That's all you need to do to add the calendar. After you create a new post in blogger, you can regenerate the calendar by browse: http://lizhao.net/blogcat/autobuildcal.php?u=USERNAME where USERNAME is your blogcat account name.

Monday, March 27, 2006

AJAX (Asynchronous JavaScript And XML) and word processor

In a previous post, I mentioned Writely, which is bought by google. It is an online word processor. I feel so interesting what can Web do right now.
Actually, the important technique supporting writly is AJAX (Asynchronous JavaScript And XML), and if you google AJAX, you will get bunch of results from google. I remember when i pursuing my master degree years ago, we can only exploit ActiveX, Corba to obtain similar results, with much higher complexity.
Now, AJAX is a hot techniques, and I found several online word processor online now:

  1. Ajaxwrite
  2. Zoho Writer
  3. Writely

Saturday, March 18, 2006

牛尾浓汤 Beef tail soup

Today, it is the first time I try to cook western food --- beef tail soup. It is as delicious as I expected, thus, record the recipe I used for future reference. Materials:

  1. beef tail, 1 (I used about 600G) 牛尾
  2. onion, 1 (I used 3 middle size onions)洋葱
  3. carrot, 1 (I used about 180G)胡萝卜
  4. Celery, 2 (I used one potato to replace it)芹菜
  5. beef lard, 1spoon牛油
  6. Bay Leaves, 1 piece香叶
  7. tomato sauce, 2spoons番茄酱
  8. fried flour. 2spoons.油炸粉
  9. pea, salt, pepper.豌豆,盐,胡椒粉。
Ways:
  1. clear beef tail
  2. cut onion, carrot, celery to cubes, put them togther with beef tail into cold water to boil for 3 hours.
  3. filter the soup, and then fish out tail, separate meat and bone.
  4. saute bay leave, beef tail meat, beef lard, tomato sauce together
  5. put fried tail meat, fried flour back to soup and boil again
  6. add pea, salt, peepr
I also add some red wine. :-), Wow, it is really great, and if you feed a puppy, then you donnot need to wash your disks. :-D

RFID electronic door lock

I will move into my new home soon, which is the first flat we own. That is why the idea to DIY a RFID electronic door lock is attractive for me at the 1st glance.
But after reading all pages of the DIY instruction, I feel a bit frustrated, as I donnot know when will I be free to do all such work. Anyway, keep the link in the blog, maybe you are interested in it, or I will finally be free to do it. :-D

Wednesday, March 15, 2006

Post blog via email

I decided to be used to post blog posts via email from now on. Thus, I can post to several blogs at the same time.<br/>
One important benefit is I can post to MSN space, thus, most guys can read the blog.

Most popular pages

I wrote a page counter yesterday to count clicks to each page, the result is: http://blog.lizhao.net/2005/08/softwarerec-install-ubuntu-on-acer.html 65
http://blog.lizhao.net/2004/10/tips-about-blogger-archives-drop-down.html 11
http://blog.lizhao.net/2004/09/tips-categorize-blogger-posts.html 5
http://blog.lizhao.net/ 19 http://blog.lizhao.net/2004/10/another-blogger-tool-i-like-it.html 1
http://blog.lizhao.net/2006/03/googles-appetite_13.html 1
http://blog.lizhao.net/2005/01/c-implementation-of-ukkonens-suffix.html 2
http://blog.lizhao.net/2006/03/bloglendar-back_09.html 10
http://lizhao.net/ 16
http://blog.lizhao.net/2004/09/liferec-diary-cartoon-enjoy-it.html 1
http://www.lizhao.net/ 1
http://blog.lizhao.net/2004/12/blogger-chinese-version-of-how-to-add.html 1
http://blog.lizhao.net/2004/08/my-calendar_25.html 2
http://blog.lizhao.net/2006/03/problem-of-css-float-in-ie_09.html 2
http://blog.lizhao.net/2005/08/comparison-six-models-of-sonoma.html 1
I am astonished to find most clicks point to the same page. It is a trouble shoot article, recording what I met during install linux on a weird but hot laptop.
What matters a page is how much it can help other guys, at least in my site.

Monday, March 13, 2006

Google's appetite

Measure Map is a service like technorati; Writely is an online word processor. They are totally different from each other and have no relationship at all, right?

It is true a month ago, util Google bought both of them. And now, there is a tag appearing in both site:
"that's now part of Google."
Another common point shared by them is they are both in immigration process to Google system, and does not open registration now.
But they allow you to leave your email address to book a position when they open registration. Yes, this is what we met when gmail come.
What is the next one Google will take a fancy to?