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

父親來英

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

Tuesday, May 24, 2005

What's Your Personality Type?



















Your #1 Match: INTP




The Thinker

You are analytical and logical - and on a quest to learn everything you can.
Smart and complex, you always love a new intellectual challenge.
Your biggest pet peeve is people who slow you down with trivial chit chat.
A quiet maverick, you tend to ignore rules and authority whenever you feel like it.

You would make an excellent mathematician, programmer, or professor.


Your #2 Match: ENTP




The Visionary

You are charming, outgoing, friendly. You make a good first impression.
You possess good negotiating skills and can convince anyone of anything.
Happy to be the center of attention, you love to tell stories and show off.
You're very clever, but not disciplined enough to do well in structured environments.

You would make a great entrpreneur, marketing executive, or actor.


Your #3 Match: INFP




The Idealist

You are creative with a great imagination, living in your own inner world.
Open minded and accepting, you strive for harmony in your important relationships.
It takes a long time for people to get to know you. You are hesitant to let people get close.
But once you care for someone, you do everything you can to help them grow and develop.

You would make an excellent writer, psychologist, or artist.


Your #4 Match: INTJ




The Scientist

You have a head for ideas - and you are good at improving systems.
Logical and strategic, you prefer for everything in your life to be organized.
You tend to be a bit skeptical. You're both critical of yourself and of others.
Independent and stubborn, you tend to only befriend those who are a lot like you.

You would make an excellent scientist, engineer, or programmer.


Your #5 Match: ISTP




The Mechanic

You are calm and collected, even in the most difficult of situations.
A person of action and self-direction, you love being independent.
To outsiders yous eem impulsive, surprising, and unpredictable.
You are good at understanding how all things work, except for people.

You would make an excellent pilot, forensic pathologist, or athlete.


Monday, May 02, 2005

還有4科……

還有4科就考完試了。今年是本人最後一年的大學生活,但好像一樣沒有什麼特別。本人應該選擇繼續留英,還是回港呢?

Sunday, March 13, 2005

愈來愈愛用DEBIAN

最近寫畢業論文,發現LINUX真的非常方便。
第一次在LINUX上寫文,
發現有DIA這一個繪圖工具,
這工具對本人論文中的插圖,幫助非常大。

以前在M$ WINDOWS中,寫報告,要畫圖時,會很麻煩,
因為繪圖,而去買昂貴,而又對本人沒有什麼實際用途的繪圖軟體,
是不可能,小畫家繪圖又太過麻煩。
因此會用M$ WORD中的繪圖工具,
在M$ WORD中畫插圖,
問題是當圖愈多,出現死機的情況會愈多。
更試過一次不知什麼問題,開不回檔案。

最初在LINUX中,用OPEN OFFICE寫論文時,
仍不知有DIA這個軟體,
而GIMP中,本人又找不到繪四方形的工具,
因此最初是用OPEN OFFICE入面的繪圖工具,先畫了2個圖試試,
但問題,亦是和在M$ WORD中的一樣。

之後,本人覺得LINUX作為自由軟體,
應會有一些同好,寫一些方便自己及他人的軟體。
於是就以“不信邪”的心態,慢慢試一些在GRAPHIC入面的軟體。
之後發現原來本人早就裝了DIA這一個專用來繪DIAGRAM的軟體。
DIA,簡單又易用,而且功能足夠本人繪圖,
真是一個好軟體。

LINUX,真是方便。

另一個愛用LINUX的原因,
是本人寫PORGRAM時,不用另買COMPLIER,
GCC的功能,己足夠本人做功課用。

之前這些,REDHAT(FEDORA)的都有同樣功能。

至於為何愛用DEBIAN,
是因為其自由度比REDHAT的大,
桌面的設定,軟體的安裝等,
都比FEDORA的限制少。
像SUGA,CEDEGA等程式,
在FEDORA時,經過修改後,有時仍不能正常運作。
反觀DEBIAN,不需什麼大修改,就能正常運作。

唯一是SERVER上,本人仍對REDHAT信心比DEBIAN多一點。
DEBIAN仍有太多要自己一手一腳設定,
因此本人對安全方面不太有信心,因為不知自己的設定,會有什麼漏洞出現。
現時仍覺功力不足,用人家的比較安心。

Wednesday, March 02, 2005

開機磁片

GRUB開機磁片

mkfs /dev/fd0
mount /media/floppy/
mkdir -p /media/floppy/boot/grub
cp /boot/grub/stage1 /boot/grub/stage2 /boot/grub/menu.lst /media/floppy/boot/grub/
umount /media/floppy/

/sbin/grub --batch --device-map=/dev/null <

http://www.debian.org.hk/blog-entry-17 

Thursday, February 03, 2005

奇怪的GNOME MENU#2

之前有網友指出,
GNOME MENU沒法顯示自行加入SHORTCUT的功能,

是因為libglib 2.0 是升級到2.6.1-3的問題。

本人不見了GNOME MENU ICON是在UPGRADE到2.6.1-2時,

之後升級到2.6.1-3,是仍不能顯示,
但沒有做DOWNGRADE去回復。之後做了全系統UPDATE,就尤MENU沒有ICON。

今日,幫系統做全UPGRADE,GNOME MENU的所有SHORTCUT全部顯示回來了。

但查過libglib2.0,仍是VERSION 2.6.1-3。

因此,GNOME MENU出問題,應不是libglib的問題,
而是其他問題。

因此,到現時為止,本人仍不知道有什麼問題,
令到GNOME MENU顯示不到自行加入的SHORTCUT。