Month: 七月, 2006

emacs的nxml-mode设置

31 七月, 2006 (16:29) | emacs, Web Design

现在我用nxml-mode来编辑html文档,debian源里面有这个包,安装很方便,为了设置为默认的html的编辑方式,在.emacs配置文件里面加上下面的的文字:
(setq auto-mode-alist
(cons ‘(”.(xm...

Debian etch and Ubuntu edgy

26 七月, 2006 (14:32) | ubuntu, linux, news

This maybe an older news, but i am very excited and eager to wating for those upcoming new release of both excellent linux distribution, debian and ubuntu.
Here is the news of debian new release(etch) , as it said, etch will be released at Decem...

pwgen: a handy tool to generate pronounceable passwords

11 七月, 2006 (22:44) | linux

I got this useful tool from the mail of our sys admin Darren, he wants us to change our workstations’ password to protect against rsiky attack.
It is very straightforward, unser shell type pwgen, it will generate many passwords, and you ca...

show the same lines of two files under linux

11 七月, 2006 (13:35) | linux

I know that diff can show difference between two files, but how to know the same part of the two files, I saw this post, using “comm” command:
comm -12 file1 file2

...

How to find which port is in use under linux

11 七月, 2006 (10:51) | linux

I saw this from this post,quite simple command:
netstat -ntlp

...

group by

5 七月, 2006 (13:00) | postgresql

Assume we have a table named revisions, which only has two fields: id(primary key), and contract_id(foreign key reference to another table contracts), I want to find all contract’s newest revisions, using sql can acieve this quite easily:
...

some notes about mod-security and trac

5 七月, 2006 (00:14) | ubuntu, apache, linux

Last night I tried to install trac on my ubuntu system. I have installed apache2 before, following this post on Ubuntu China Forum (基本Apache服务). As the post said, I installed mod-security, and all seems work ok.
I followed the guide on t...