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”功能。
- php_value xdebug.profiler_output_dir /tmp
- php_value xdebug.profiler_output_name timestamp
- php_value xdebug.profiler_enable 1
现在打开出现在/tmp目录下的输出文件…
WinCacheGrind
WinCacheGrind是从输出文件获取有用信息最简单的办法。它提供一个简单的树图展示了PHP执行中用到的class、function和filenames。最终要的是,它能告诉你每个function执行的时间。
Ref: http://easyid.cn/?p=36
(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
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
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
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