5月 29
CRT Monitor 的真正用法!
icon1 ken666 | icon2 未分類 | icon4 05 29th, 2008 @ 05:05 am| icon3沒有留言 »


5月 25
Ubuntu Fix MP3 random code tag
icon1 ken666 | icon2 未分類 | icon4 05 25th, 2008 @ 09:05 am| icon3沒有留言 »

sudo apt-get >install python-mutagen

find . -iname “*.mp3″ -execdir mid3iconv -e UTF8 {} \;

5月 25
Ubuntu 7.10 Mic Sound volume
icon1 ken666 | icon2 未分類 | icon4 05 25th, 2008 @ 09:05 am| icon3沒有留言 »

alsamixer can fix

5月 23

Xdebug - 一個字! 強 !!!

Xdebug 2 (当前还是 beta—我在用 2.0.0RC3) 是一个独立的 PHP extension。 它为在测试环境中调试和分析代码提供了多种方法。这里,我们关心的是PHP脚本的概要分析(profiling)信息。

在你的apache/php开发环境上安装Xdebug已经超出了我们文章的范围。但是我只是简单的用’sudo pecl install xdebug-beta’,然后在php.ini中添加一行代码就在我的Ubuntu 6.10 虚拟机上安装好了它。

一旦你安装好Xdebug2,下边的代码将为所以PHP接管的请求开启“auto profiling”功能。

  1. php_value xdebug.profiler_output_dir /tmp
  2. php_value xdebug.profiler_output_name timestamp
  3. php_value xdebug.profiler_enable 1

现在打开出现在/tmp目录下的输出文件…

WinCacheGrind

WinCacheGrind是从输出文件获取有用信息最简单的办法。它提供一个简单的树图展示了PHP执行中用到的class、function和filenames。最终要的是,它能告诉你每个function执行的时间。

 Ref:  http://easyid.cn/?p=36

5月 19

(a) Set scim not to start automatically (because it’s useless to change the configuration file when scim is running)
using the command “im-switch -s none”. Log out and re-login.
(b) Edit your ~/.scim/config configuration file, change the /FrontEnd/X11/Dynamic option to true.
(c) Reset scim to start automatically with command “im-switch -s scim”. Log out and re-login.

Ref: http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SkypeHowto&variant=zh-tw

5月 10

NTP need two way connections!

Som if you cannot sync time to stdtime.gov.hk (203.129.68.14) ,

try add a run like the following to your iptables.

I works for me !

Remember to restart iptables…..

-A INPUT_N_FORWARD -m udp -p udp -s 203.129.68.14 –sport 123 -d 0/0 –dport 123 -j ACCEPT

5月 7
How to make deb packages?
icon1 ken666 | icon2 未分類 | icon4 05 7th, 2008 @ 03:05 am| icon3沒有留言 »

Very Long stroy.

Read: http://www.linuxdevices.com/articles/AT8047723203.html

More Ref:

http://wiki.freegeek.org/index.php/Basic_Debian_Packaging

https://wiki.ubuntu.com/PackagingGuide/Basic?action=show&redirect=HowToBuildDebianPackagesFromScratch

5月 4
Ubuntu 完美中文字形 !
icon1 ken666 | icon2 未分類 | icon4 05 4th, 2008 @ 11:05 am| icon3沒有留言 »

CJKUnifonts

CJKUnifonts 計畫包含了文鼎

PL上海宋Uni (AR PL ShanHeiSun Uni) 以及 文鼎

PL中楷Uni (AR PL ZenKai Uni)。 (I use this one)

# apt-get install ttf-arphic-uming
# apt-get install ttf-arphic-ukai
sudo fc-cache -v

Preference -> Appearance-> Fonts -> select AR PL ZenKai Uni or other fonts you like :)

Ref: http://wiki.ubuntu.org.tw/index.php/UbuntuL10n