Sunday, August 19, 2007

未来の二人に

未来の二人に

詞:工藤哲雄
曲:都志見隆
編:CHOKKAKU
唄:米倉千尋




朝やけをみつめてるあなたを 私は見てた
Two of us二人に 足りないものを数えたら
何だか可笑しくなって 声をあげて笑った



悩んだ日々の答えなんて
歩きだすことしかないよね



かさねあう寂しさは ぬくもりを教えてくれた
抱きあえば涙さえ 訳もなく いとしい



未来の二人に
今を笑われないように
ねぇ 夢をみようよ



忙しく動き出す街より ゆっくり歩こう
Smile on meすべてを 叶わぬものとあきらめたら
心が風邪をひくから 元気なんか出ないよ



迷った夜の吐息さえも
いつの日か思い出になるよ



重ねあうくちびるの ぬくもりを信じていたい
抱きしめたせつなさが いつだって始まり



かさねあう寂しさは ぬくもりを教えてくれた
抱きあえば涙さえ 訳もなく いとしい



未来の二人に
今を笑われないように
ねぇ 夢をみようよ

Thursday, August 16, 2007

水仙

話說今日和同事去什麼山莊吃午飯,

茶博士: 喝什麼?
同事: 水仙

良久

茶博士先送了壺水 (水先) , 之後再送上一壺普洱 和 一壺香片.

熱烈慶祝中國抗日勝利62週年

今日是8月15日. 日本在1945年的今日宣佈投降, 結束了對中國以及亞洲各國的侵略, 2次世界大戰正式結束.

可惜是時至今日, 日本仍不承認其對中國, 以及亞洲各國在侵略戰爭中, 所用的不人道手段, 並企圖改寫歷史, 以掩飾所犯過的戰爭罪行.

但日本有今日的行動, 很大程度上, 和戰後中國內亂, 2岸互不相認和國內政治動盪, 以及國共互相否認對方在抗日戰爭上的貢獻有關, 讓國人不能有一個清楚的抗日歷史.

國人不能有一個清楚的抗日歷史, 更何況外人,

那外人當然可以大條道理地, 對中國抗日歷史有所質疑, 甚至否定的舉動.

抗日勝利至今已62年, 今日中國和平崛起, 成為世界其中一個舉足輕重的國家,

不論是共產黨也好, 國民黨也好, 是時候還我們一個正確的歷史,

讓我們以及其他人知道, 中國在抗戰時期雖然很慘, 但中國的抗戰是光榮的,

中國以一個落後國家的身分, 和身為強國的日本打到差不多平手 (有不少戰事是我軍大勝日本軍),

並牽制日本軍力, 對太平洋戰事起了一定的作用, 讓中國在戰勝後,

能爭取到聯合國安全理事會的否決權.

希望世人(包括中國人自己)能還我們一個正確的歷史。

Tuesday, August 14, 2007

SCO的黑暗日子

這個是舊聞, 本人是在8月11日lwn上得知這個消息, 現在筆錄一下.

SCO和IBM 為了unix 版權問題的官司,

法官最後得出結論是, novell 沒有轉移任何unix及unixware 的版權給SCO,

因此判SCO敗訴.

詳細新聞: http://lwn.net/Articles/245202/

Team相

話說星期五last day, HR那邊原本是下午幫我辦理完成離職的手續, 但那日下午8號波, 人人收工,

因此要今日回舊公司完成那些手續, 看看他們有沒有計少錢.

亦因8號波關係, 那日不夠時間照team相, 於是補拍.

可惜仍遺忘了一位同事漢斯, 沒有照進相中. 不過舊公司傳奇人物就在相中.


Monday, August 13, 2007

九型人格?







































第一型完美主義者、完美型、改革者、改進型、秩序大使

14%


第六型忠誠型、忠誠型、尋找安全者、謹慎型

12%


第二型助人者、全愛型、助人型、成就他人者、博愛型

12%


第五型智慧型、觀察者、思想型、理性分析者、思考型

11%


第九型和平型、和平者、和諧型、維持和諧者

11%


第三型成就者、事業型、成就型、實踐型

11%


第七型快樂主義型、豐富型、活躍型、創造可能者、享樂型

11%


第四型藝術型、浪漫者、自我型、憑感覺者

10%


第八型領袖型、能力型、挑戰者、保護者、權威型

8%



我的九型人格分析?

火狗告急!まだ逆境か?夢をあきらめないで!

http://firedog.hk/blog/2007/08/08/end-of-firedog/

火狗工房, 一間香港原創遊戲開發公司, 在他的的開發blog中,

宣佈若沒有資金的話, 將會結業.

愛神餐館, 一隻能成功打入日本市場的遊戲,

火狗的成功, 雖然蝕足八年,

但正如他們的blog所說

"能夠創作原創的動畫、漫畫和遊戲,就是我的夢想,就是火狗全體成員的夢想",

這不只是火狗全體成員的夢想,

亦是我們軟體開發員的夢想,

亦證明香港是有能力開發出好的遊戲.

在此只能衷心希望火狗能支持下去,

繼續出好game.

就算不能支持下去, 亦希望其最後作品是一個成功的作品.

若真的結業,

真香港的損失, 香港又失去一間能開發出高質素遊戲的公司.

唉, 在comic world排隊去買火狗週邊產品及遊戲的情景可能不復存在......可惜可惜.

Sunday, May 27, 2007

司令台正名為表演台?

有留意新聞的話,

會知道民國政府的教育部, 把中正記念堂"正名"為台灣民主記念館.

這個改名的動作, 浪費人力物力, 而且沒有實際用途, 還會破壞很多人去台灣旅行的其中一個旅遊境點.

(不過改成台灣民主記念館, 那地方正是記念蔣介石, 蔣介石終於得到綠派認同為台灣民主鬥士, 非常感動.)

還想等到民國100年去台灣看看, 看看民國慶祝成立100年的大典, 看中正記念堂的換班, 在蔣介石的銅像前照想, 照一些青天白日滿地紅旗海照什麼的. 現在看民國能否過100年也成一個問題.

看新聞, 發現教育部還有更白痴的舉動, 就是把司令台, "正名"為表演台,

一個由新文化運動後就開始用的名, 司令台, 意指為發號司令的台,

本人看不出有什麼根據可把司令台"正名"為表演台. 但教育部說因學校不是軍事單位, 所以"不需要"司令, 因此"不需要"司令台.

當時聽新聞時, 就聯想起陸運會, 大會叫各運動員到司令台招集的情形,

大會司儀在叫"請各參加xxx比賽的參加者, 到司令台招集" 這句, 將要改成"請各參加xxx比賽的參加者, 到表演台招集" 這一句趣怪的句子.

有部份台南的學校, 不用教育部"正名", 自己已把司令台"正名"為頒獎台.

但這句若用在陸運會的例子, 就會成為"請各參加xxx比賽的參加者, 到頒獎台招集"一句更有趣的句子, 還沒比賽, 就到頒獎台, 真是對各運動健兒的"一大鼓勵".

就香港而言, 頒獎台和司令台通常是在2個不同的地方, 參加者可能因而不能報到, 而錯失出賽的機會.

若改名只因蔣介石做過司令, 那就請教育部一併把"校長", "委員長", "總裁", "總統" 等全部正名, 不要只改一些, 而不改另一些那樣不倫不類.

國家將亡, 必有妖孽. 民國能否過100年, 還看台灣同胞的努力.

Tuesday, May 22, 2007

Enable Quota on FreeBSD 6.2

Need to recompile kernel.

cd /usr/src/sys/i386/conf

cp GENERIC MYKERNEL

Edit the file MYKERNEL and add the line

options QUOTA

Then run the following commands:

/usr/sbin/config MYKERNEL

cd ../compile/MYKERNEL

make depend

make

make install

------

To Enable Quota

Edit the file /etc/fstab and look for the entry, in which the directory /home is mentioned, e.g.

/dev/ad0s1d /home ufs rw 2 2

Add the words userquota and groupquota as follows:

/dev/ad0s1d /home ufs rw,userquota,groupquota 2 2

To enable quota at boot time you have to add the following lines to /etc/rc.conf:

quota_enable="YES"

check_quotas="YES"

Reboot the system:

shutdown -r now

After the reboot run the following commands:

quotacheck -a

quotaon -a

Install the setquota-Tool at last:

pkg_add -r setquota

Thursday, May 10, 2007

涙が出るのは悲しみだけじゃなくて

涙が出るのは悲しみだけじゃなくて

詞:国分友里惠
曲:岩本正樹
唄:金月真美

涙が出るのは 悲しみだけじゃなくて
鮮やかに時を越えて
同じ空を見て 走り抜けた季節が
赤いフレームの中で 今も輝くから

不思議だね 心の傷を
探してるのに見つからない
悲しみはどんなに深くても
いつか遠くへ消えるものなの

朝が来るたび生まれ変われる
そんな気持ちが好きだから

涙が出るのは 悲しみだけじゃなくて
言葉じゃ上手く言えない
空を見ていると 心の色がわかる
君も同じ空のした あの日の君でいて

最後までガンバルことが
大切だって キレイだって
転んでも 痛みが優しさに
変えられるなら 悪くないでしょう

愛があふれて 力強くて
そんな明日を 走りたい

涙が出るのは 悲しみだけじゃなくて
思いが溢れ出すから
引き出しにそっと しまっておいた写真
夕日を照り返してる キミが笑ってるよ

涙が出るのは 悲しみだけじゃなくて
言葉しゃ上手く言えない
空を見ていると 心の色がわかる
君も同じ空のした あの日の君でいて

Wednesday, May 09, 2007

序言書室

最近旺角新開了一間樓上書店, 其名為序言書室.

星期一在明報看到有報導介紹, 於是在當日下班去看一看.

那是一間專賣政治, 文化, 歷史和哲學書的書店, 以英文書為主,

而且所賣的書在香港比較難找.

環境不錯, 很優雅, 亦很有書卷味.

Tuesday, May 08, 2007

逆境ナイン

わかった...わかったぞ

飛行機があれだけ高く飛べるのは

すさまじいばかりの空気の抵抗があるからこそなのだ


一句很有深度的經典名句.

人種的測驗

http://www.mathsking.net/test/question.htm

You have 37 points. 你是第四種. 你是個充滿愛的人. 浪漫, 花和洒是你用來享受人生必要的東西. 你對承諾十分認真. 你是個很有家庭氣息的人, 你每個星期天都會打電話給你媽媽, 你永遠也不會忘記生日的日子. 不要讓你對浪漫的熱情與現實所發生的混淆一起.

変ですね!!!

Saturday, May 05, 2007

夢をあきらめないで

夢をあきらめないで

詞、曲:岡村孝子

乾いた空に続く坂道
後姿が小さくなる
優しい言葉 探せないまま
冷えたその手を 振り続けた


いつかは 皆 旅立つ
それぞれの道を歩いていく


あなたの夢を あきらめないで
熱く生きる瞳が好きだわ
負けないように 悔やまぬように
あなたらしく 輝いてね


苦しいことに つまづく時も
きっと 上手に 越えて行ける
心配なんて ずっと しないで
似てる誰かを愛せるから


切なく残る痛みは
繰り返すたびに 薄れていく


あなたの夢を あきらめないで
熱く生きる瞳が好きだわ
あなたが選ぶ全てのものを
遠くにいて信じている


あなたの夢を あきらめないで
遠くにいて信じている

Thursday, April 26, 2007

Xen 3.0.3 on Debian 4.0 Etch

Here is the instruction for running XEN on Debian Etch on Core2Duo 6300 with 2GB Ram.

First, install all the packages that related to XEN.

apt-get install libc6-xen linux-headers-2.6-xen-686
linux-headers-2.6-xen-vserver-686 linux-headers-2.6.18-4-xen
linux-headers-2.6.18-4-xen-686 linux-headers-2.6.18-4-xen-vserver
linux-headers-2.6.18-4-xen-vserver-686 linux-image-2.6-xen-686
linux-image-2.6-xen-vserver-686 linux-image-2.6.18-4-xen-686
linux-image-2.6.18-4-xen-vserver-686 linux-image-xen-686
linux-image-xen-vserver-686 linux-modules-2.6.18-4-xen-686
linux-modules-2.6.18-4-xen-vserver-686 xen-hypervisor-3.0.3-1-i386
xen-hypervisor-3.0.3-1-i386-pae xen-ioemu-3.0.3-1 xen-tools
xen-utils-3.0.3-1 xen-utils-common bridge-utils iproute sysfsutils

Then, boot reboot the machine and choose the pae kernel to boot.

Next, add the following into /etc/network/interface for the Xen Bridge neteork.

auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0
# optional
bridge_maxwait 0

To build a new debian domain:

Configurature /etc/xen-tools/xen-tools.conf collectly such as kernel version and initrd.

Then, run
xen-create-image --hostname=<name_of_DomU> --dir /home/xen/images/debian

Next, configurature
/etc/xen/<name_of_DomU>.cfg

to make sure all the Tag are correct.

Finally, run
xm create test.cfg -c

to run the VM.

As Core2Duo 6300 support VT, we could run Windows under Xen.

To run Windows in Xen,

first, build an image file for windows.
dd if=/dev/zero of=/home/xen/images/WinXP.img bs=1M count=4096

Next, copy the Windows XP install CD in to an iso format
dd if=/dev/cdrom of=/home/xen/cds/winxp.iso

Then, build a winxp config file in /etc/xen as the following. eg:
vi /etc/xen/winxp


kernel = "hvmloader"
builder='hvm'
memory = 512
name = "winxp"
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'file:/home/xen/images/WinXP.img,ioemu:hda,w',
'file:/home/xen/cds/winxp.iso,hdc:cdrom,r' ]
#cdrom = '/dev/hda'
device_model = 'qemu-dm'
boot="dc"
sdl=1
vnc=0
nographic=0
localtime=1

Run
xm create winxp -c

to boot up the VM and install XP.

After finished installing the XP, turn off the VM and

change the
boot="dc"

to
boot="c"

in
/etc/xen/winxp



xen1xen2xen3


xen4xen5

Tuesday, April 17, 2007

How to generate a self-signed certificate for apache2 in Debian

While the Debian apache2 package was in Apache version 2.0, there was a tool called "apache2-ssl-certificate" for the users to use that script to gererate their own self-signed cert themselves. However, the script was removed since the apache2 package had been upgraded to Apache v2.2.

I had modified the old script so that it can generate a suitable self-signed cert for the new apache2(Apache v2.2) in Debain.

Here is the code:


#!/bin/sh -e

DAYS="365"
CERTPATH="/etc/apache2/ssl"
CERTNAME="apache"
KEYBIT="1024"
FORCE="0";

usage(){
echo "This is a program for the users to gernate their own self-signed certificate."
echo
echo "Usage: $0 [[OPTION] [VALUE]]..."
echo
echo "OPTIONS:"
echo " -h | -help | --help -- To Show This Help"
echo " -f | --force -- Force to generate the cert"
echo " -d | -days | --days -- cert to expire after x days, default is 365"
echo " -p | -path | --path -- Path of the cert will be stored,"
echo " default is /etc/apache/ssl"
echo " -n | -name | --name -- the name of the cert, default is apache"
echo " -b | -bit | --bit -- length of the key, default is 1024"
echo
}

createcert() {
if [ "$FORCE" != "1" -a -f $CERTPATH/$CERTNAME.pem ]; then
echo "$CERTPATH/$CERTNAME.pem exists! Use \"$0 --force.\""
exit 0
fi
echo
echo creating selfsigned certificate
echo "replace it with one signed by a certification authority (CA)"
echo
echo enter your ServerName at the Common Name prompt
echo
echo If you want your certificate to expire after x days call this programm
echo with "--days x"

mkdir -p "$CERTPATH/"

export RANDFILE=/dev/random
openssl req $@ -new -x509 -days $DAYS -nodes
-newkey rsa:$KEYBIT
-out $CERTPATH/$CERTNAME.pem
-keyout $CERTPATH/$CERTNAME.pem
chmod 600 $CERTPATH/$CERTNAME.pem
}

case $1 in
-h|help|--help)
usage
exit 0
;;
esac

until [ -z "$1" ] # Until all parameters used up . . .
do
case $1 in
--force|-f|-force)
FORCE="1"
shift
;;
--days|-d|-days)
DAYS=$2
shift
shift
;;
--path|-p|-path)
CERTPATH=$2
shift
shift
;;
--name|-n|-name)
CERTNAME=$2
shift
shift
;;
--bit|-n|-bit)
KEYBIT=$2
shift
shift
;;
*)
usage
exit 0
;;
esac
done
createcert



Here is the file.
apache2-ssl-certificate.tar.gz

MD5SUM: 6fb69eb0d63a683e73461f4f682e13e5

Monday, April 16, 2007

Debian 香港聚會

為慶祝DEBIAN 4.0 released,Debian HK今日下午3時在又一城辦了一個聚會,

本人今日有幸能抽空出席。在聚會中,認識了不少LINUX的愛好者,

大家彼此交流了不少LINUX的經驗和知識, 是一個很好的聚會。

Saturday, April 14, 2007

上邪

漢樂府 上邪

上邪,

我欲與君相知.長命無絕衰.

山無陵,江水為竭,

冬雷震震夏雨雪,

天地合,乃敢與君絕.

Tuesday, April 10, 2007

Debian GNU/Linux 4.0 released

Debian Etch finally released on 8th April, 2007.
Here is the notice from debian-announce@lists.debian.org.
Debian GNU/Linux 4.0 released

The Debian Project is pleased to announce the official release of Debian
GNU/Linux version 4.0, codenamed "etch", after 21 months of constant
development. Debian GNU/Linux is a free operating system which supports
a total of eleven processor architectures and includes the KDE, GNOME
and Xfce desktop environments. It also features cryptographic software
and compatibility with the FHS v2.3 and software developed for version
3.1 of the LSB.

Using a now fully integrated installation process, Debian GNU/Linux 4.0
comes with out-of-the-box support for encrypted partitions. This
release introduces a newly developed graphical frontend to the
installation system supporting scripts using composed characters and
complex languages; the installation system for Debian GNU/Linux has now
been translated to 58 languages.

Also beginning with Debian GNU/Linux 4.0, the package management system
has been improved regarding security and efficiency. Secure APT allows
the verification of the integrity of packages downloaded from a mirror.
Updated package indices won't be downloaded in their entirety, but
instead patched with smaller files containing only differences from
earlier versions.

Debian GNU/Linux runs on computers ranging from palmtops and handheld
systems to supercomputers, and on nearly everything in between. A total
of eleven architectures are supported including: Sun SPARC (sparc), HP
Alpha (alpha), Motorola/IBM PowerPC (powerpc), Intel IA-32 (i386) and
IA-64 (ia64), HP PA-RISC (hppa), MIPS (mips, mipsel), ARM (arm), IBM
S/390 (s390) and -- newly introduced with Debian GNU/Linux 4.0 -- AMD64
and Intel EM64T (amd64).

Debian GNU/Linux can be installed from various installation media such
as DVDs, CDs, USB sticks and floppies, or from the network. GNOME is
the default desktop environment and is contained on the first CD. The K
Desktop Environment (KDE) and the Xfce desktop can be installed through
two new alternative CD images. Also newly available with Debian
GNU/Linux 4.0 are multi-arch CDs and DVDs supporting installation of
multiple architectures from a single disc.

Debian GNU/Linux can be downloaded right now via bittorent (the
recommended way), jigdo or HTTP; see <http://www.debian.org/CD/> for
further information. It will soon be available on DVD and CD-ROM from
numerous vendors <http://www.debian.org/CD/vendors/>, too.

This release includes a number of updated software packages, such as the
K Desktop Environment 3.5 (KDE), an updated version of the GNOME desktop
environment 2.14, the Xfce 4.4 desktop environment, the GNUstep desktop
5.2, X.Org 7.1, OpenOffice.org 2.0.4a, GIMP 2.2.13, Iceweasel (an
unbranded version of Mozilla Firefox 2.0.0.3), Icedove (an unbranded
version of Mozilla Thunderbird 1.5), Iceape (an unbranded version of
Mozilla Seamonkey 1.0.8), PostgreSQL 8.1.8, MySQL 5.0.32, GNU Compiler
Collection 4.1.1, Linux kernel version 2.6.18, Apache 2.2.3, Samba
3.0.24, Python 2.4.4 and 2.5, Perl 5.8.8, PHP 4.4.4 and 5.2.0, Asterisk
1.2.13, and more than 18,000 other ready to use software packages.

Upgrades to Debian GNU/Linux 4.0 from the previous release, Debian
GNU/Linux 3.1 codenamed "sarge", are automatically handled by the
aptitude package management tool for most configurations, and to a
certain degree also by the apt-get package management tool. As always,
Debian GNU/Linux systems can be upgraded quite painlessly, in place,
without any forced downtime, but it is strongly recommended to read the
release notes for possible issues. For detailed instructions about
installing and upgrading Debian GNU/Linux, please see the release notes
<http://www.debian.org/releases/etch/releasenotes>. Please note that
the release notes will be further improved and translated to additional
languages in the coming weeks.

About Debian
------------

Debian GNU/Linux is a free operating system, developed by more than
a thousand volunteers from all over the world who collaborate via the
Internet. Debian's dedication to Free Software, its non-profit nature,
and its open development model make it unique among GNU/Linux
distributions.

The Debian project's key strengths are its volunteer base, its dedication
to the Debian Social Contract, and its commitment to provide the best
operating system possible. Debian 4.0 is another important step in that
direction.

Contact Information
-------------------

For further information, please visit the Debian web pages at
<http://www.debian.org/> or send mail to <press@debian.org>.

Wednesday, April 04, 2007

hesitation

hesitation


歌:林原めぐみ
詞:MEGUMI
曲:矢吹俊郎


うれしい時には 君が笑ってて
悲しいときいつでも 僕がそばにいて

沢山の経験 重ねていく度
理想と現実との 距離が近付く

いつか君は 教えてくれた
思いやりと 涙のわけを

振り向けば君はそこにいて
受けとめてくれた
今度は誰かに
この気持ちかえそう
何もできないなんて言わない
何か出来ること
ひとつでもいいから
手をのばすんだ
届く日まで



悩んでる君に 何が出来るだろう
立ち尽くしてしまうよ 言葉届かずに

信じているけど とても苦しくて
希望と絶望とが 交差している

君自身が 君の力で
歩けるまで 待っていなくちゃ

素直とわがままは全然 違うものなのに
なぜだろう時々 わからなくなるんだ
抱きしめたい気持ち押さえて
黙って見ている 切ない勇気で
少しでもいい 近付きたい


振り向けば君はそこにいて
受けとめてくれた
今度は誰かに
この気持ちかえそう
何もできないなんて言わない
何か出来ること
ひとつでもいいから
手をのばすんだ
届く日まで