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

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...
Showing posts with label Software Tips. Show all posts
Showing posts with label Software Tips. Show all posts

Sunday, March 11, 2007

How to install chinese fonts for Damn Small Linux DSL 中文支持

I have a very old laptop with PII 300Mhz CPU. I managed to install Gentoo Linux before, but seldom use it. Today, When I was cleaning my desktop, found it, but I forgot almost everything about Gentoo when I want to install sth.
It is burdonsome to install anything on such a old Gentoo box, so, it is the time shift to a light Linux distribution, such as DSL and puppy.
After spend 10mins to download DSL 3.3 RC2, it bootup the PII in 1 min. Wow, it really rocks on my ancient machine. Unfortunately, it does not support Chinese. However, by studying mydslPanel (the tools to install software on DSL) for half an hour, my Firefox can display Chinese fonts properly already.
To install chinese fonts, please do:

  1. Install japanese-fonts using mydslPanel on desktop, it will download japanese-fonts.tar.gz to /tmp by default.
  2. copy /tmp/usr /usr
  3. copy some fonts file from another Linux system supporting Chinese. I am running Ubuntu on another laptop, so, I copy all /usr/share/fonts/X11/misc/* from the Ubuntu to /usr/X11R6/lib/X11/fonts/misc
  4. run /usr/bin/japanese-install.sh
Now, your DSL is chinese-awared.

Sunday, March 04, 2007

JAVA Chinese fonts on Ubuntu

These days, I am trying to write a crossplatform tools (https://sourceforge.net/projects/bloghub) using JAVA, on a Kubuntu laptop. Although I expected that Linux JAVA chinese support could be much better than 5 years, when I use JAVA to do development, I am so disappointed that my JAVA system just show all Chinese characters as blank boxes.

Fortunately, the solution is quite simple:

  1. Search where is your system chinese fonts are, e.g., I use simhei&simsun from M$, at /usr/local/share/fonts.
  2. cd $JAVA_HOME/jre/lib/fonts
  3. ln -s /usr/local/share/fonts fallback
Is it simple? Sure we can adjust the fonts to display better, but that's enough for me. Good luck!

Tuesday, November 07, 2006

Desktop Search for Source Analysis

Now, there are always Gigas source codes for me to pass. Without source analysis tools like source insight or source navigator, it really can be a big trouble sometimes.

Unfortunately, source insight is a bit expensive to deploy into all my PCs. On the freeware side, source navigator does not support c# so far (even worse, it failed several times when I try to add Gigas c++ files to a project).

Consider that the main feature I use in source insight is to search reference, caller, definition, etc. of a given entity, can we use a desktop search engine to do these work. Of cause, we stand a little chance to get such a desktop search engine.

But after I tried some engines, I feel they can help much, when I have no source insight installed. What's better is they usually do search much faster than source insight.

There are lots desktop search engine today. I have no time to try them all. So, I selected three for reference.

  • Microsoft Index Services (MIS)
  • Google Desktop Search (GDS)
  • Copernic Desktop Search (CDS)

    As MIS is integrated in windows, it is attractive that I donnot need to download and install anything, if it can be used. But I found it is slow, in terms of both indexing and searching. BTW: I use a wiki system based on MIS --- Perspective Wiki.

    Then I tried GDS, it provides search interface integrated into google search page. Maybe it is attractive for thoese google fans, but I guess they will be disappeared when they found GDS almost cannot refine search result, difficult to configure search for each folder, etc.

    After some googling, I found CDS. Its rate is quick good in some reviews. Another reason I select it is I recalled that I used to use another search product from Copernic around 2000. :-)

    Based on 1 hour experience, I think CDS is quite good for me to analyze source codes. It can easily start search inside a folder, restrict file name, date in a standalone native program.

    Maybe we can improve source navigator based on these open source desktop search enigne? :-D

  • 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