李钊的个人主页,李钊的个人主页,李钊的个人主页,李钊的个人主页,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊,李钊于南洋理工大学获得博士学位,现就职于软件行业.

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!


Leave a message at my message board, if you want to contact with me.

Loading Blog Search...

Saturday, May 10, 2008

Google services down in Singapore?

Nothing special is at this weekend, but I cannot access google services (google search, google reader, etc.) today.
It's funny that I must revert to yahoo/msn to do search.

Thursday, November 15, 2007

Maemo Mapper 2 for n770

Maemo mapper 2 supports 770, and can download map easily. I am staying in Singapore, and the map I downloaded includes: 1. 1'28"04.66N/103'41"10.47E to 1'17"48.99N/103'52"04.18E 2. 1'25"29.74N/103'52"04.18E to 1'17"48.99N/103'58"57.12E 3. 1'17"48.99N/103'44"37.56E to 1'14"20.82N/103'54"15.55E These areas does not cover whole Singapore, but should be more than enough for me.

Saturday, November 10, 2007

N810 application is accepted

I found the email when I got up this afternoon, :D, and so glad that I haven't read the news from maemo news Web site. Otherwise, I might think my application hasn't be accepted.

For sure, it's a great deal to buy such an amazing gadgets with 99Euro, and what also makes me happy is maemo thank contributors in this way.

Thanks, maemo.

Thursday, September 20, 2007

How to create a blogger feed for a given category

Blogger publish ATOM feed for recent posts by default, including posts from all categories.
To publish a feed with only posts from a given category is also very simple. For example, in a blogger site http://blog.lizhao.net/ with category named 'maemo', the feed is:
http://blog.lizhao.net/feeds/posts/default/-/maemo
For more discussion about the format, plz refer to another article

Monday, September 17, 2007

make minimo maemo more stable

MicorB for ITOS2007HE may be on the way, but who knows when will it finally arrive. Based on the waiting experience, I decided to reinstall minimo, while waiting it.

When I tried minino 1 mth ago, it is not stable on 770, but I also heard if increase memory buffer size, it can perform much better. So, I try to set the buffer size to 4096 or 8192, according to mozilla site.

On 770, just run: vi /home/user/.mozilla/minimo/prefs.js and add one line:
user_pref("browser.cache.memory.capacity", 8192);
trying google calendar/reader/gmail for a while, yea, it is much more stable, but an annoying bug is still there.
I feel if there is unknown errors happened in rendering a page, the corresponding tab can not be closed, or refresh, and it will affect other tabs.
If anybody know how to solve this, plz tell me. :-)
try: user_pref("network.http.max-connections", 8); and user_pref("network.http.max-connections-per-server", 4);

Display Icon in Maemo Application Manager

After making a deb package for maemo platform, and depolying it to a repository recognized by Maemo application manager, it is valuable to let application manager display a interesting icon beside the package name.

There are several points need to note:

  1. encode a 26x26 png image into base64 format, this can be done by: uuencode -m xxx_26x26.png /dev/stdout . Then the encoded texts (between the 1st and the last line) will be used in package.
  2. embed the texts into debian/control, in a section named: XB-Maemo-Icon-26. There must be a space before each line in this section.
  3. run dpkg-scanpackages to generate Packages.gz, and make sure the XB-Maemo-Icon-26 section is also copied into Packages.gz
Actually, application manager display icon based on the base64 data found in Packages.gz.

However, I found dpkg-scanpackages of some versions dismiss the icon section. For these versions, here is the workaround:

change:

dpkg-scanpackages ....... > .../Packages.gz

to:

dpkg_scanpackages="/tmp/dpkg_scanpackages-$$"
cat $BIN_SCANPACKAGES | $BIN_SED -e "s/('Package',/('Package', 'Maemo-Icon-26',/" > $dpkg_scanpackages #this is for dpkg-scanpackage 1.3
cat $dpkg_scanpackages | $BIN_SED -e "s/Size MD5sum Section Priority Description))/Size MD5sum Section Priority Description Maemo-Icon-26))/" > $dpkg_scanpackages #this is for dpkg-scanpackage 1.4
chmod 755 $dpkg_scanpackages

$dpkg_scanpackages ....... > .../Packages.gz

Monday, September 03, 2007

Free Video Converter for Home DVD player

Most DVD players sold today have DivX support, I think. So, it is a good choice to convert videos to DivX and enjoy thems in sofa.

The free version of any video converter do the job quite well.

You may want to test the video converted with DivX Player before burning CDs.

Monday, August 20, 2007

SDCV for Nokia Internet Tablet

sdcv is a lightweight console version of StarDict dictionary.
Now, sdcv for maemo has a simple GUI, which can speak words, and this page is depreciated! plz visit http://sdcv.garage.maemo.org/

Releases


For all releases, please download at its maemo garage project site

Usage

After install, please execute sdcv from console (osso-xterm). type "sdcv --help" for details.
Please goto stardict dictonary page to download dictionaries, and install following its instruction.

Changes

Version 0.4.2-2
Minor bug fix based on the same version of ubuntu