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...

Monday, August 01, 2005

[SoftwareRec] Online Bookmark

Do you have the bad experience of losing all your bookmarks when you upgrade, reinstall ur browser or sthelse?
Maybe the online bookmark services can help u. :-)
The problem is how to use these bookmarks stored in Web servers conveniently.
Yahoo! toolbar provides a web-email-alike interface to access online bookmarks, but obviously it is not as convenient as the Clipmark plugin for Firefox/IE. It add an extra bookmark menu and this menu is synchronised with the data on Web server.
Now, I am enjoy the clipmark. Good luck.

Tuesday, July 12, 2005

Out ROM Wedding

一个月以前,YI FENG和TANG JING(Y&T)在新加坡登记结婚(ROM:Register of Marriage), 如果问我对Y&T婚礼的第一回忆是什么, 我的答案就是:“我对新加坡天气的判断太准了”。

Y&T婚礼那天早上很早就醒来。 当然,早起的原因不是因为我比Y&T这对新人还要兴奋, 实在是因为雨太大了。那天, CHANG‘AN就担心地跟我说:“Y&T今天拍结婚纪念照好像很麻烦嘞”。

我哈哈一乐说:“不用担心,只有大雨过后的新加坡室外,才是适合人类拍照的室外,Y&T赶上好日子了”

真牛,这话应验了, 那天天很凉,有蓝天,空气透澈,宾主尽欢。

特牛的是,我接下来说的一句话竟然也应验了: “希望我们结婚那天也一大早就下一大雨”。

遗憾的是,当时说完这上半句愿望,忘记许下另一半愿望:
“大雨以后再天晴吧”。

今天, 2005年7月12日。 在接下来的几十年里,这一天会是我们(LI ZHAO&CHANG‘AN: L&C)的结婚周年纪念日暨相识纪念日。
今天,如我所愿,我们醒在大雨里。然后大雨过后是小雨,小雨过后是大雨。我们在平日里日头贼毒?毒的新加坡度过了一个追日躲雨的新婚日。

如果你是我们的朋友,同事,老师,学生,家长,亲戚,那么也许你有兴趣听下去,听我下面流水吧啦吧啦的新婚日记:

上至林雨堂,降至当代愤怒青年莫不对俺们伟大主国(哦,也是祖国)的公仆们头疼不已,不过说句公道话,新加坡的中国大使馆的公仆们还是蛮不错的。
(下面的他们的结婚登记服务时间表和需要材料,后来者切记:)
周一至周五
上午9:00-11:30
护照+PASS
复印件
4‘’合照4张(1张用于结婚公证,3张用于结婚登记文件)
如果要拍签字照片,请自带派克笔一只(大使馆是提供丑陋圆珠笔一支)。


跑题了,回到主题,知道大使馆9:00-11:30开放给我等,我们把闹钟定在了6:30。定在6:30的理由就是我们下面这张时间表:
6:30-7:00 洗漱
7:30-8:00 等我们的WEDDING CAR和两个摄影者朋友(展示他们作品前,先拜谢一下GONG RUIBIN&YIN MING,是他们的工作让我的日记还有点颜色)
8:30-8:30 前往化妆师工作室
8:30-10:30 化妆
10:30-10:45前往大使馆
10:45- 登记


等等等等, 你可能发现这个时间表漏了7:00-7:30。 嘘~~,我偷偷告诉你,这半个小时是留给CHANG‘AN戴眼镜的:-D(期间过程种种不堪复述,留白)。

6:30准时起床,推窗,WOW, 新婚好大雨!!!!我心里那个美,今天我可以穿西服也不怕蔫,CHANG’AN躲婚纱里也不会热了。俺们美滋滋地准时在7:30准备完毕,准备下楼迎接我们的WEDDING CAR:

该接车了。别急,请慢慢陪我们等一个小时,因为8:30我们才真正见到她。车主从东海岸送车过来(这个送车路线基本很难,如果想知道,在新加坡地图上画一个最长的直径就差不太多了)。老天爷很体贴的继续下着雨,让大家都小心驾驶,不要太快。这直接导致车主游车河时间超过一个小时。在这一个小时内,我们又把礼服(3GOWNS+1SUIT)给拆开,包上若干次,把摄影师朋友从地铁站接到家里一次,把礼服搬下楼一次,买饮料12盒,打催车电话若干,讨论摄影器材若干。

终于,8:30, LOOK, OUR WEDDING CAR ARRIVE FINALLY:



呵呵,什么? 你要告我无照驾驶? 嘿嘿,告不到我的。 这照片我就是摆摆样子。DRIVER在旁边躲着呢。

上帝保佑你,ZHANG,虽然我是很感谢你把车借给我们用,可是当9:10还没有看到化妆室的影子的时候,不知道你有没有听到我磨牙的声音? 9:10, 在绕了无数弯之后,ZHANG说,快了,5分钟就到了,前面一转弯就到了,果然,9:20到达化妆室。



期间开始化妆种种,按下不表(如上图示),调试摄影器材种种,按下不表,在漫长的化妆过程中,CHANG‘AN大人特批我们几位去旁边街角旮旯的幸福饮茶酒楼吃早茶。 我们欣然前往,找寻15分钟后悠哉悠哉落座下单买点心,刚准备开始享用茶水,CHANG’AN领导急电,化妆以近尾声,立即回朝,我们三口两口吃掉花生米,点心还没看到影子就又回到了化妆室。 此时已经日快中午10:50。

ZHANG开车又开始晕绕,终于在11:10, ZHANG又说(为什么说‘又’?),快了,5分钟就到了,前面一转弯就到了,话音刚落,只听“嘭”的一声,好像车子方了一个P,跳了一下屁股。我还以为车子也不满意这么拿她溜弯想罢工, 旁边GONG说,“被车撞了”。回头一看, 果不其然,我看见后面车的司机贴着我们车窗对我们乐。

雨一直下。

有一点点黑线从我脑门开始往下,旁白:“见过斑马跑,还真没吃过斑马肉”, 电视上见多了,没见过现实版的, 你是不是问问现实版的啥?

那就是, 我拉着盛装的CHANG‘AN和YIN MING,开始冒雨狂奔,冲过马路,拦TAXI。GONG&ZHANG留下来处理事故。

还好11:20,我们终于在大使馆门关到一半的时候,雄赳赳气昂昂地跨进了这一小块位于新加坡的中国领土。

Sunday, July 10, 2005

Breaking News: European Software Patent Law Rejected

In the past year, many open source Web sites use the 'anti-patent-law' page as their homepage. Now they win.
In a 648-14 vote (with 18 abstentions), the European Parliament has voted against the controversial 'Computer-implemented Inventions Directive' on its second reading.
EU lawmakers stated that software patents could limit innovation, cause difficulties for businesses and that human knowledge cannot be patented.
Read More...

[SoftwareRec] testingfaqs.org - an information resource for software testers

Add or update a listing: Tools, Contractors and Consultants, Courses.

Monday, June 13, 2005

C++ portability guide

What follows is a set of rules, guidelines, and tips that we have found to be useful in making C++ code portable across many machines and compilers. This information is the result of porting large amounts of code across about 25 different machines, and at least a dozen different C++ compilers. Some of these things will frustrate you and make you want to throw your hands up and say, ``well, that's just a stupid compiler if it doesn't do .'' But this is the reality of portable code. If you play by the rules, your code will seamlessly work on all of the Mozilla platforms and will be easy to port to newer machines. We will endeavor to keep the information up to date (for example, sometimes a new compiler revision will lift a restriction). If you have updates on any of these tips, more information, more ideas, please forward them to Christopher Blizzard, Scott Collins, or David Baron. Read More ...

Saturday, June 11, 2005

Tips to make ur pdf more clear

Sometimes, you may find fonts in your pdf files are too ugly to read. High probably it is bcz you included type 3 font (bitmap font) into your pdf documents. To check whether there r type 3 fonts in ur documents, you can see the list fonts embedded using acrobat reader (file -> document properties -> fonts), or use pdffonts tools from xpdf package. When there r type3 fonts, and the documents is very large, you may wonder how to get the exact places type3 fonts appear. No worry, you can use -f option in pdffonts: pdffonts xxx.pdf -f pagenumber For more info, plz refer to here

Tuesday, June 07, 2005

Apple's move to Intel

Steve Jobs' announcement Monday will be analyzed to death by the likes of me and every technology watcher and blogger out there.
Most of the analysis will focus on the future of Apple and whether this Intel decision is a benefit or a disaster.
I'm on the side of benefit as Apple can now champion its design and aesthetic strategies in the world of Intel and allow people who prefer the Windows OS to actually buy a Macintosh for its design and run Windows on it. Nobody in the Mac community would suspect this, of course, but it is one of many foreseeable but unintended consequences of this announcement.
Read More...

Wednesday, May 25, 2005

How much power you can save (debian +mac mini/peplink manga/...?

Do you believe you can get a 3watts debian box? Those power saving 'geeks' show how amazing you can do with equipments on hand, as drawn in following lines:
Peplink Manga (integrated) 3.1 2.3 kWh /month
x86 laptop plus Linksys switch 24.3 ~ 17.8 kWh /month
Debian Mac Mini plus Manga switch 15.2 11.1 kWh /month
For more detailed info, refer to here

Sunday, May 22, 2005

[UtilRec]: Metric Conversion Tables

I always forgot the how to convert from metric to imperial measurement, as I seldom use imperial or US measurement. The tables below may help when you forget it.


US/Metric Conversion Tables
Area Conversions

Multiply By This Number To Convert to:
hectares 2.47 acres
square kilometers 0.3861 squaremiles
square meters 1.196 square yards
acres 0.4047 hectares
square feet 0.09290394 square meters
square inches 0.00064516 square meters
square miles 2.59 square kilometers
square yards 0.83612736 square meters

Length Conversions

Multiply By This Number To Convert to:
centimeters 0.03281 feet
centimeters 0.393700787401575 inches
cubic meters 35.3145 cubic feet
kilometers 0.62 miles
meters 3.2808 feet
meters 39.3700787401575 inches
meters 0.0006214 miles
meters 1.0936 yards
millimeters 0.0393700787401575 inches
feet 0.3048 meters
inches 2.54 centimeters
inches 25.4 millimeters
miles 1.609347 kilometers
yards 0.9144 meters

Mass (weight) Conversions

Multiply By This Number To Convert to:
grains 0.0648 grams
grams 0.002205 pounds
metric tons 0.9842 tons (long 2240lb)
metric tons 1.1023 tons (short 2000lb)
grains 0.0000648 kilograms
grams 15.4324 grains
pounds 0.4535925 kilograms
tons (long 2240lb) 1.016 metric tons
tons (short 2000lb) 907.1848 kilograms
tons (short 2000lb) 0.9072 metric tons

Temperature Conversions

To Convert Do This Results in:
Fahrenheit (ºF - 32)/1.8 Celsius
Celsius ( ºC * 1.8) + 32 Fahrenheit
Celsius Add 273.15 Kelvin
Kelvin Subtract 273.15 Celsius

Power(Energy) Conversions

Multiply By This Number To Convert to:
British thermal units 1055.056 joules
calories 4.1868 joules
kilowatt-hours 3600000 joules

Volume Conversions

Multiply By This Number To Convert to:
Canadian Gallons 4.5461 liters
hectoliters 2.8378 U.S. bushels
liters 0.2642 gallons
liters 0.1135 pecks
liters 1.8162 pints (dry)
liters 2.1134 pints (liquid)
liters 0.908 quarts
liters 0.9081 quarts (dry)
liters 1.0567 quarts (liquid)
cubic feet 0.02831685 cubic meters
cubic inches 0.00001639 cubic meters
cubic yards 0.7645549 cubic meters
fluid ounces 0.00002957 cubic meters
fluid ounces 29.57353 milliliters
gallons 0.00378541 cubic meters
gallons 3.7853 liters
pecks 8.8096 liters
pints (dry) 0.5506 liters
pints (liquid) 0.4732 liters
quarts (dry) 1.1012 liters
quarts (liquid) 0.9463 liters
U.S. bushels 0.3524 hectoliters

Another interesting metric conversion table for cooking is below:

Conversion Table for Cooking


U.S. to Metric
Capacity
1/5 teaspoon = 1 ml
1 teaspoon = 5 ml
1 tablespoon = 15 ml
1 fluid oz. = 30 ml
1/5 cup = 50 ml
1 cup = 240 ml
2 cups (1 pint) = 470 ml
4 cups (1 quart) = .95 liter
4 quarts (1 gal.) = 3.8 liters
Weight
1 oz. = 28 grams
1 pound = 454 grams

Metric to U.S.
Capacity
1 militers = 1/5 teaspoon
5 ml = 1 teaspoon
15 ml = 1 tablespoon
30 ml = 1 fluid oz.
100 ml = 3.4 fluid oz.
240 ml = 1 cup
1 liter = 34 fluid oz.
1 liter = 4.2 cups
1 liter = 2.1 pints
1 liter = 1.06 quarts
1 liter = .26 gallon
Weight
1 gram = .035 ounce
100 grams = 3.5 ounces
500 grams = 1.10 pounds
1 kilogram = 2.205 pounds
1 kilogram = 35 oz.

Cooking Measurement Equivalents
16 tablespoons = 1 cup
12 tablespoons = 3/4 cup
10 tablespoons + 2 teaspoons = 2/3 cup
8 tablespoons = 1/2 cup
6 tablespoons = 3/8 cup
5 tablespoons + 1 teaspoon = 1/3 cup
4 tablespoons = 1/4 cup
2 tablespoons = 1/8 cup
2 tablespoons + 2 teaspoons = 1/6 cup
1 tablespoon = 1/16 cup
2 cups = 1 pint
2 pints = 1 quart
3 teaspoons = 1 tablespoon
48 teaspoons = 1 cup

stardict on debian (voice problem)

My stardict on debian has never output any voice util 10 mins ago. You can see the problem here > > >
> > >
> > > On Fri, 2004-10-22 at 11:31 +0800, Zhao Li wrote:
> > > > hello,
> > > > i'm a newone of debian. moved from fedora just now.
> > > > and now i met a problem about audio.
> > > > i installed kernel 2.6 and enabled alsa modules.
> > > > seems everything is ok before i try stardict, i.e., i can use aplay,
> > > > alsaplayer, active arts based on alsa, etc.

(gnome-sound-recorder does > > > > not work, i think it is normal, as i start arts, right?)
> > > > i installed voice files for stardict, however, i cannot hear any
> > > > voice from it, while i can use artsplay to play these .wav files. ( i
> > > > can hear voice from stardict under fedora core 1-2 with alsa+arts)
> > > >
> > > > who can help me, highly appreciate.
.................
I ask the author of stardict-ed () why?
Thank him so much, the reason is quite simple.

stardict use two methods for playing wav files:
on Windows it use PlaySound (WIN32 API)
on Linux gnome_sound_play (Gnome API).
So if you not use Gnome and use Window Manager/Desktop Environment which
have its own API for work with sound, may be some problems with sound
output. For example, if you use KDE it blocks /dev/dsp, so
gnome_sound_play didn't work.

stardict-ed use three methods for playing wav files:
all that use stardict +
if it compiled without gnome support for play wav files
((./configure --disable-gnome-support))
it execute "play" utility ("play" utility is part of sox package).
You can change play command for whatever you want,
just change in preference dialog appropriate value,
but before doing make certain that it play wav file,
if you call it with wav file as argument.
For example in KDE "play" command didn't work:

$play /usr/share/stardict/sounds/buttonactive.wav
sox: Can't open output file '/dev/dsp': Device or resource busy

Thursday, May 12, 2005

Self-replicating Robots

From http://abc.net.au/science/news/tech/InnovationRepublish_1365242.htm
Engineers in the US have created a machine out of intelligent cubes that can make copies of itself.

They say it is a small step towards developing robots that can repair and replicate themselves in space or hazardous environments where it is difficult for humans to venture.

Assistant Professor Hod Lipson of Cornell University led a team that reports the research in today's issue of the journal Nature.

"Self-reproduction is central to biological life for long-term sustainability and evolutionary adaptation," say the researchers.

"Although these traits would also be desirable in many engineered systems, the principles of self-reproduction have not been exploited in machine design."

The machine Lipson's team developed is made up of a set of modular cubes, called molecubes, which each contain the machinery and a computer program necessary for self-replication.

The 10-centimetre cubes use electromagnets on their faces to selectively connect and disconnect from each other and they draw power through contacts on the surface of the table they sit on.

Each cube is divided in half along its diagonal and this enables a robot made of a number of the cubes to bend and move its own, and other, cubes around.

The researchers have shown how a robot made of a stack of cubes can replicate itself.

camera For a video of the replication process, click here (requires Windows Media Player).

"A three-module robot is able to self-reproduce in just over 1 minute," say the researchers.

The robot bends around, moving its own cubes and new cubes 'fed' to it by the researchers. Because it is not possible for the original robot to reach across another robot of the same height, the new robot must assist in completing its own construction.

"Although the machines we have created are still simple compared with biological systems, they demonstrate that mechanical self-reproduction is possible and not unique to biology," the researchers say.

"The design concept could be useful for long-term, self-sustaining robotic systems in emerging areas such as space exploration and operation in hazardous environments, where conventional approaches to maintenance are impractical."

Imitating life Australian robotics expert, Associate Professor Richard Willgoss of the University of New South Wales, says mechanical replication provides building blocks towards doing a lot of other things that biological systems do, albeit at a much larger scale.

"If biology does it so well, why can't we do it too."

Willgoss, who is working on a modular robotic arm, says intelligent modules can communicate with each other, as cells in the immune system do.

He says such developments could lead to robotic systems that provide "tool kits" capable of, for example, making a vehicle one day and a bridge the next.

The idea is that if a module breaks down the robot can repair it, or perhaps a whole entire new robot can be built.

"If we can make robots that have distributed intelligence, we can perhaps give them a global request and they'll do the rest for us. It's very fanciful but you have to start somewhere," says Willgoss.

Grey goo from nano-robots While these self-replicating robots are 10 centimetres across, some scientists have discussed the idea of self-replicating robots the size of molecules.

This has led to the nightmare scenario of self-replicating nano-robots, or nanobots, reducing the Earth to a mass of seething "grey goo".

So do the new developments make this more likely?

"The intelligence behind making that assembly could easily be taken down to the nano scale but the practicality of making the unit is a different matter," he says.

"We've gone to the micro scale where we're making tiny little cogs in wheels on a substrate with integrated circuits but nanotech involves the atomic scale and that requires very specialised equipment to do that."

Tuesday, May 03, 2005

Tips: Categorize Blogger Posts (version2)

In a previous post, a tip to build blogger category list is given. It is a trick based on a site search engine --- pico. The idea is simple: for a post belonging to a category, insert a keyword that appears only in this category, and provide a list, where each entry links to a search result of 'pico'.
The reseaon to use pico is for it can rebuild index when u want, and it can index words in very detail.
The shortcoming of pico is that it can only rebuild index on demand, it will never index automatically. Now, I shift from pico to blogdigger, a very nice blog search engine. You can see the effect of blogdigger in the right panel's category list. Most parts are the same as the previous post.

Monday, May 02, 2005

Changing of site search

I want to change my site search engine to blogdigger. Seems it only index the rss/atom, and does not crawl history posts, so, I ask blogger to list all posts I made, hope blogdigger can work properly.

Sunday, May 01, 2005

Blogdigger + Ping-o-Matic

To increase visibility of your blog, to send a XML-RPC ping to those blog search engine is a good idea. Ping-o-Matic thus is a super idea that let u ping multiple engines in one click. Even you can just bookmark pingomatic and ping engines by access this bookmark only.
Maybe u think to ping those engines is not important at all, as they will crawl ur site soon or later. I also think so until today.
Now, I found blogdigger is another super sevice i love so much. It provides search features like those of PICO, i.e.; it can index all details in ur blog, unlike google search that only do very rough indexing. After each time u post on blog, and ping blogdigger, it will reindex ur blog, thus, research results of ur blog will be updated automatically.
What a goodie.
However, blogger cannot ping blogdigger itself, i doubt. So, after u post on blogger, just by one click on ur ping-o-matic bookmark, then u can get up-on-date index provided blogdigger. Is that attractive?
Good luck

Thursday, April 28, 2005

Running Microsoft Windows inside Debian: qemu

There are many legitimate reasons for a Debian GNU/Linux user to wish to run Microsoft Windows applications. One approach involves using the wine program to run a single Windows executable in a fake Windows environment. An alternative is to run an entire Windows operating system within a Debian host. Qemu is a procesor emulator and virtualization program which allows you to do just that.
Qemu is (read more...)
Qemu is a really cool project developed by several ppls, imagine how big vmware co. is. Of cz, qemu cannot match VMWare in term of performance, as VMWare spent lots of money and time to improve speed. We cannot expect the several qemu geniuses produce the same in a short time. Anyway, they are on the promise road, i think. Screenshots...

Thursday, April 21, 2005

NDISWRAPPER struggles to support WUSB54G V4

just now found ndiswrapper 1.2rc1 is struggling to support WUSB54Gv4, it's a good news for me, as I have a linksys wusb54gv4. too busy right now to try compiling and installing it. anyway, glad to hear this. I will installed after ndiswrapper 1.2 debian pkg is available, if wusb54gv4 is finally supported. Here is some info for native driver support, seems no usb support yet.

Wednesday, April 13, 2005

APM Or ACPI

ACTUALLY, i dun what are APM and ACPI. but misconfig will make my debian of laptop dun how many power left in battery. so, record the tip here.
after u update ur kernel, donnot forget to append "acpi=off apm=on" to ur kernel parameter line in /boot/grub/menu.list
this tip is for debian with kernel 2.6+

Tuesday, April 12, 2005

Photo Album Software

Just now, found albumshaper from kde-apps.org, which can generate HTML album and then share ur photos. Seems there is lack of enough template for album generated, compared with those commercial counterparts, e.g., mosaic.
Anyway, it is not too bad, worth trying.
there is a list of similar softs, haven't tried them, if u know, u can put ur review here. :-D
ImgSeek - http://imgseek.sourceforge.net/
AlbumShaper - http://albumshaper.sourceforge.net/
gthumb - http://gthumb.sourceforge.net/
kphotobook - http://kphotobook.berlios.de/
CategorySoft

Saturday, April 02, 2005

DV encoder for linux or windows?

As i know so far, non-free tmpgenc on windows performs much better than ffmpeg and mpeg2enc on linux, especially with low bitrate. Achurch gives a rough comparison among them.
Anyway, if u stick on linux to encode DV, seems mpeg2enc has not too bad quality and ttmpeg is definitely much faster.
As i am a beginner (actually, have been a beginner for years, maybe forever. :-) ), i donnot care more, CategoryLife To edit video on linux, here is a more complete reference, and a very long discussion is here. there is a list of great softwares on linux for movie production.