Wednesday, February 18, 2009

Tuesday, February 17, 2009

ころす

Saturday, February 14, 2009



Happy Valentine's Day

Thursday, February 12, 2009

Wednesday, February 11, 2009

echo date("D M j G:i:s Y", 1234567890);

Friday, February 6, 2009

說回那兩個程式

1)num = (num - (num%2))/2
why don't num/2
it is so strange -_________________-

2)for (int i = 0; i <= ch.length() -1; i++)
why I start from the first character?
the question ask "the last occurrence", why i don't search form the end
and once 'x' is found, return the position
then everything is done.

actually, i never think in this way.
-_____________________________-

Wednesday, February 4, 2009


昨天去了見工,除去兩次見暑期工的經驗外,
第一次真正好formal咁面試,
表現......麻麻-_-

期實直頭可以話係差添-__-
一開始,筆試:
第一版,程式語言的知識
詳列十多種程式語言剔熟練程度1-5
Very familiarize: None
familiarize:C++
OK:Java
not familiarize:
Basic,SQL
no knowledge:others not above, such as API,J2EE,Oracle,UML,etc
第二版,寫程式,兩題
1)given a decimal number, write a function to count the number of bits in binary representation
MY ANS:
int binary_bits(int num)
{
int no_bits=0;
while (num != 0)
{
num = (num - (num%2))/2;
no_bits++;
};
return no_bits+1;
}
2)given a array of character, write a function to find the position of 'x' in the array
MY ANS:
int find_position(char * ch)
{
int position = -1;
char * head = ch;
for (int i=0; i <= ch.length()-1;i++) { if (*head == 'x') position = head - ch; head++; }; return position; } 回答完後,覆了一次,按電話通知那人說"我搞定了"(我可不知他姓什名誰,他也沒自我介紹) 他進來,看了一次,中途另一人拿了部notebook進來並坐下工作 他看後唸唸有詞地說,"這樣做?" 接著把答卷給了另一人看 接著便開始發問了 "先介紹下你自己" my mine blank a second 接著我開始自我介紹... "你為什麼應徵這份工" 我答... "EIE 讀什麼的" 我答... "不如你解釋下這兩個程式" 我解... 接著他介紹了一下他們公司 說這是第一輪面試 問我有沒有問題 我答-暫時沒有 接著握手後便送了我出去了

************
老實說
我介紹自己時甚麼也沒說,只說了讀甚麼系
應徵的理由是我circuit比programming差
EIE讀甚麼也是胡說一通甚麼circuit design, analysis, product development, OO programming

大概我本身連應徵的資格也欠奉

最慘是他說"你A-level成績唔太好wo"{5E}
"會考都麻麻咋wo"{5C2D}

由婉轉到直接

-________________-


Friday, January 30, 2009

「 我把世界當成一本書,然後如飢似渴地去閱讀這本書。」

motion controlled MP3 player

link

Monday, January 26, 2009

新年進步,如意吉祥!

本網誌初五啟市。

Friday, January 23, 2009

Every survival kit should include a sense of humor!

Sunday, January 18, 2009

Saturday, January 17, 2009

Wednesday, January 14, 2009

La vie en rose

名言

蘇格拉底:『The only thing I know, is I know nothing.』
邱吉爾:『If you're going through hell, keep going.』
Someone:『It was the spring of hope,it was the winter of despair。』

Monday, December 29, 2008

Wednesday, December 24, 2008



Merry Christmas to all!

#Music:Trans-Siberian Orchestra "Wizards of Winter"

Thursday, December 18, 2008

Wednesday, December 17, 2008

Bride War

Sunday, December 14, 2008

I don't believe what's happening to me
My hopes, my dreams, my fantasies

Thursday, December 4, 2008

為你創造牽手機會的筆




人體大約是2000000歐姆,鉛筆裡石墨畫出的線大約是每英尺1歐姆,
當鉛筆在不斷塗鴉的時候,人體和畫出的圖案組合成的電阻就在不斷變化。
所以,玩這個筆有兩個要點:1)人體的一部分要接觸紙上已有的圖案,
2)筆必須在人接觸的那個圖案上繼續畫。
滿足這兩點,這只筆才會發音。
source

well, i just want to say, this is Engineering.
simple but interesting.