2005年03月22日


在正确定安装KDE中文桌面环境的前提下,具体的操作方式请参见上面的相关内容。在/etc/X11/Xsession.d/目录下新建一个文件92fcitx,内容如下:

export LANG=”zh_CN.UTF-8″ #设置中文locales,如果不设,fcitx启动后乱码,不能使用。
export XIM_PROGRAM=fcitx
export XIM=fcitx
export XMODIFIERS=”@im=fcitx”
fcitx&

[注释]
在kdm中好象不能像GDM一样设置locales,所以需手动用export设置。

在/etc/X11/Xsession.d/ 目录下的所有配置文件在X启动时都会被自动执行。所以我就利用了这个特性,在该目录下新建了一个92fcitx文件,用以启动fcitx。类似于 gnome环境下的/etc/X11/Xsession.d/55gnome-session_gnomerc文件的作用。注意,这不是唯一的方法,因为在x启动过程中会自动运行很多个脚本,所以在这些脚本中插入fcitx的启动脚本也是可行的。这就是linux高可配置的体现。

2005年02月15日


The Vulcan Logic Disassembler hooks into the Zend Engine and dumps all
the opcodes (execution units) of a script. It was written as as a
beginning of an encoder, but I never got the time for that. It can be
used to see what is going on in the Zend Engine.



New Features in 0.8

  • PHP 5.0 / PHP 5.1 support.
  • vld will only show opcodes if the setting vld.active is set to 1.





New Features in 0.6

  • Class methods info is only dumped if they contain some user defined functions.
  • Clean up the framework for better opcode display.
  • Print extended value for function calls (# of args in that case).
  • Op code elements are only printed when they are actually used.





Download and Installation Instructions

The extension is not totally finished yet, but it works fine for me. If
you have questions, feel free to send me an e-mail (but read this first) at derick at php dot net. If you like this piece of software, feel free to checkout my wishlist or Andrei’s. This improves chances that we will be continuing developing VLD.



You can download the source here
or get it from CVS. The CVS root is
“srmread@cvs.vl-srm.net:/repository”, the module is “vle” (not “vld”)
and the password is “srmread”.



It’s not hard to use this extension, but it might not work with all PHP versions. Here are the instructions to get it to work:

  1. Unpack the tarball: tar -xzf vld-0.8.0.tgz.
  2. cd into the newly created directory.
  3. Create the configure script: phpize
  4. Now run “./configure” followed by “make install”.



That’s it, if you now run PHP from the command line and add the -dvld.active=1 parameter VLD will spit out the opcodes:

php -dvld.active=1 program.php



Download:http://pecl.php.net/package/vld/0.8.0





Source:Derick Rethans


补充:

  1. #tar -xzf vld-0.6.0.tgz //解压
  2. #mv vld-0.6.0 vld    //重命名
  3. #cd -R vld ../php-4.3.8/ext    //拷贝vld目录到php的解压目录下的ext中
  4. #cd php-4.3.8    
  5. #rm configure    //删除configure,因为下面的buildconf会重新生成新的configure
  6. #./buildconf    //如果出现错误,就按提示加上相应的参数.
  7. #./configure –with-mysql –with-apxs2=/usr/www/bin/apxs –enable-vld    重新检查php
  8. #make    编译
  9. #make install    安装
  10. 运行Zend后的文件,查看源代码就可以看到了.
  11.  
  12. :服务器得先安装ZendOptimizer
2005年01月21日

昨晚我终于在我一台旧机子上装上了传说中的Debian,当那个界面优美的X-Windows系统出现在眼前拾,心情特别舒畅,安装过程中的焦虑和忐忑一扫而走,如今我开始全面体会Debian给我带来的享受生活。

Debian全球开发社群