Wednesday, May 03, 2006

Preventing DDoS attacks

Article from Linux Gazette to say how to prevent DDoS attacks.


http://linuxgazette.net/126/cherian.html

Monday, March 27, 2006

真人真事:CentOS apache test page 差點驚動 FBI (news by CentOS)

http://www.centos.org/modules/news/article.php?storyid=127

這是真人真事。一日CentOS團隊收到一封政府的電郵。
某鎮政府去信centos, 說他們的website給centos的人hack了.
而政府發言人所看到的, 是centos3 apache的test page.
像這頁:
http://centos.hughesjr.com/testing/noindex_new.html
並威脅CentOS開發人員若在12小時內不修理好, 就找FBI.

http://www.centos.org/modules/news/article.php?storyid=127

世事真是無奇不有。

Saturday, March 25, 2006

SCIM

Use update-alternatives to change the xinput setting so that can use SCIM in en_GB enviroment.


# update-alternatives --install /etc/X11/xinit/xinput.d/en_GB xinput-en_GB /etc/X11/xinit/xinput.d/scim-anthy 60
# update-alternatives --install /etc/X11/xinit/xinput.d/en_GB xinput-en_GB /etc/X11/xinit/xinput.d/scim-canna 50
# update-alternatives --install /etc/X11/xinit/xinput.d/en_GB xinput-en_GB /etc/X11/xinit/xinput.d/scim-prime 50
# update-alternatives --install /etc/X11/xinit/xinput.d/en_GB xinput-en_GB /etc/X11/xinit/xinput.d/scim-skk 50
# update-alternatives --install /etc/X11/xinit/xinput.d/en_GB xinput-en_GB /etc/X11/xinit/xinput.d/none 10

Sunday, February 12, 2006

What is your Perfect Major?






 You scored as Philosophy. You should be a Philosophy major! Like the Philosopher, you are contemplative and you enjoy thinking about the purpose for humanity's existence.







































































Mathematics




 

100%
Philosophy




 

100%
Engineering




 

100%
Journalism




 

100%
Psychology




 

100%
Art




 

92%
Theater




 

92%
Sociology




 

83%
English




 

83%
Chemistry




 

83%
Biology




 

83%
Anthropology




 

75%
Dance




 

58%
Linguistics




 

58%

What is your Perfect Major? (PLEASE RATE ME!!<3)
created with QuizFarm.com

Thursday, February 09, 2006

Windows XP: Close ZIP Function

Close:
regsvr32 /u %windir%\system32\zipfldr.dll

ReOpen:
regsvr32 %windir%\system32\zipfldr.dll

http://yblog.org/archive/index.php/5913

Sunday, January 29, 2006

恭賀新禧

恭賀新禧,
祝大家龍馬精神, 心想事成, 學業進步, 步步高陞, 身體健康, 萬事勝意, 如意吉祥.

Thursday, January 05, 2006

GPG error: for apt-get

W: GPG error: ftp://www.hk.debian.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D NO_PUBKEY 010908312D230C5F
W: You may want to run apt-get update to correct these problems

Solution:
$ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F1D53D8C4F368D5D
$ gpg --armor --export F1D53D8C4F368D5D | apt-key add -
$ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 010908312D230C5F
$ gpg --armor --export 010908312D230C5F | apt-key add -
$ apt-get update

Thursday, December 29, 2005

GDM

/etc/rc2.d/S13gdm

log_action_msg->log_begin_msg
log_daemon_msg->log_begin_msg

/etc/X11/default-display-manager

Friday, December 23, 2005

MySQL

grant update, insert, delete, select on *.* to user@host identified by 'passwd';
flush privileges;

Thursday, December 22, 2005

What philosophy do you follow?








You scored as Utilitarianism. Your life is guided by the principles of Utilitarianism: You seek the greatest good for the greatest number.

�The said truth is that it is the greatest happiness of the greatest number that is the measure of right and wrong.�
--Jeremy Bentham

�Whenever the general disposition of the people is such, that each individual regards those only of his interests which are selfish, and does not dwell on, or concern himself for, his share of the general interest, in such a state of things, good government is impossible.�
--John Stuart Mill

More info at Arocoun's Wikipedia User Page...


















































Utilitarianism










80%

Hedonism










80%

Existentialism










75%

Justice (Fairness)










75%

Kantianism










75%

Strong Egoism










65%

Nihilism










55%

Apathy










30%

Divine Command










0%


What philosophy do you follow? (v1.03)
created with QuizFarm.com

Friday, December 02, 2005

Decode Base64 mail

perl -MMIME::Base64 -le '$/=undef;print decode_base64( <> )' foo

Friday, November 25, 2005

Add MIME Type

Apache - add the type in "conf/mime.types" and restart apache

thttpd - need to recompile. Add the type in "mime_types.h" and "mime_types.txt" in the source code folder.
Then, Recompile it.

Thursday, November 17, 2005

Notes for SCIM installation by source

For CentOS4.

/etc/X11/xinit/xinitrc.d/xinput.sh

#export LC_ALL="en_US.UTF-8"

export XMODIFIERS=@im=SCIM #case matters for this variable!
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

#export GTK_IM_SCIM_CONFIG_MODULE=simple
export GTK_IM_SCIM_IMENGINE_MODULES=table

Saturday, October 01, 2005

最後一天

今日是本人最後一天在英國倫敦的日子, 三年在倫敦的生活, 就此結束.
雖不捨得, 但沒有辦法, 因找不到工作, 因所有公司都需要工作證, 都是要離開.
雖visa在10月31日到期, 但早些回港可更快找到工作.
本人當然希望能在英國生活, 但已盡了力, 看看他日有沒有機會.

Friday, July 08, 2005

恐怖襲擊

要不是同學們打電話來, 都不知今日有恐怖襲擊,
本來今晩和同學餞別的說.
幸好父親昨晚離開倫敦回香港, 若是今天就麻煩了.

恐怖襲擊已預了會來, 但猜不到會在倫敦伸奧成功後第二日出現.
今日還要是她的畢業禮, 亦是七七盧溝橋事件記念日, 世事就是有那麼多巧合的出現,
希望死難者能安息.

Tuesday, July 05, 2005

畢業


今日畢業, 終於以取得First Class Honour, 完成了3年的留學生涯, 希望能在英找到工作.

Saturday, July 02, 2005

巴黎一日遊


今日和父親遊巴黎, 由於法國的房租貴, 因此只遊一日.
由London坐Eurostar到巴黎都只是3小時, 和去英國中部的時間差不多.
而價錢, 只比到中部貴些少而已.

到了巴黎, 覺得還是london的環境好得多.

巴黎的房屋感覺太高, 有5層, 而倫敦只是3層, 覺得巴黎比較密集, 而倫敦比舒服.
而且巴黎的交通比較亂, 覺得好像到了東南亞, 和英國有條理的感覺有很大的分別.

今日到了不少巴黎的名勝, 不過因時間有限, 很多都只是走馬看花就算了.

Thursday, June 30, 2005

父親來英

因為畢業, 父親特地請了一星期假來參加我的畢業禮, 並順道過來旅遊.