Thursday, May 29, 2008

How to install google-gadgets-for-linux

Download adress:
http://code.google.com/p/google-gadgets-for-linux/

suzhe says
我装了以下包:
--I installed the followed packages:

If you lost some packages, the installation can probably be done. But It can not be run because losing the extensions.

libmozjs-dev
libxul-dev
libcurl4-openssl-dev
libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev
libdbus-1-dev
librsvg2-dev

另外还有 gtk 相关的开发包。
and the gtk relative packages.

Acturally I installed more than that coz I didn't really find out the package from configure file.

I use gtk, so I can disable qt-xml-http-request
./configure --disable-qt-xml-http-request
Good luck! It's really cool!!!!

Friday, May 23, 2008

vim token regular expression

When you use the regular expression in Vim, you probably want to cite the search results in the replaced pattern. Followed is one of the solution.

%s/\(\n\d\+\n\)/^M\1/g
\1 represent the searching content in (), you can put the second () after the first one.