Wednesday, December 31, 2008

2008就快谢幕了




敲响的是钟声
走过的是岁月
留下的是故事
带来的是希望
盼望的是美好

08年的最后一封post

08年对大家来说
肯定留下许多悲喜交集回忆
2008谢幕了 2009来临了
盼望2009年大家会更好

Saturday, December 6, 2008

兔, 猪, 狗, 鸡

兔说:'我妈妈叫我小兔兔,好听!'

小猪说:'我妈妈叫我小猪猪,也好听!'

小狗说:'我妈妈叫我小狗狗,也很好听!'

小鸡说:'你们聊,我先走了!'



小兔说:'我是兔娘养的!'

小猪说:'我是猪娘养的!'

小鸡说:'我是鸡娘养的!'

小狗说:'你们聊,我先走了!'



浪客说:'人们叫我浪人,好听!'

武士说:'人们叫我武人,也好听!

高手说:'人们叫我高人,也很好听!'

剑客说:'你们聊,我先走了!/FONT>'



李宗仁将军说:我这人,有仁!

傅作义将军说:我这人,有义!

左权将军说:我这人,有权!

霍去病将军说:你们聊,我先走了!



老张家的门是柳木做的,老张说:我家的门是木门!

老李家的门是塑料做的,老李说:我家的门是塑门!

老王家的门是砖头做的,老王说:我家的门是砖门!

老刘家的门是钢做的,老刘说:你们聊,我先走了!



师范学院的学生说:我是'师院'的!

铁道学院的学生说:我是'铁院'的!

职业学院的学生说:我是'职院'的!

技术学院的学生说:你们聊,我先走了!

Wednesday, November 5, 2008

Eclipse快捷键

Ctrl+1 快速修复(最经典的快捷键,就不用多说了)
Ctrl+D: 删除当前行
Ctrl+Alt+↓ 复制当前行到下一行(复制增加)
Ctrl+Alt+↑ 复制当前行到上一行(复制增加)

Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)
Alt+↑ 当前行和上面一行交互位置(同上)
Alt+← 前一个编辑的页面
Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)

Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性

Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)
Shift+Ctrl+Enter 在当前行插入空行(原理同上条)

Ctrl+Q 定位到最后编辑的地方
Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)
Ctrl+M 最大化当前的Edit或View (再按则反之)
Ctrl+/ 注释当前行,再按则取消注释
Ctrl+O 快速显示 OutLine
Ctrl+T 快速显示当前类的继承结构
Ctrl+W 关闭当前Editer
Ctrl+K 参照选中的Word快速定位到下一个
Ctrl+E 快速显示当前Editer的下拉列表(如果当前页面没有显示的用黑体表示)

Ctrl+/(小键盘) 折叠当前类中的所有代码

Ctrl+×(小键盘) 展开当前类中的所有代码

Ctrl+Space 代码助手完成一些代码的插入(但一般和输入法有冲突,可以修改输入法的热键,也可以暂用Alt+/来代替)

Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)

Ctrl+J 正向增量查找(按下Ctrl+J后,你所输入的每个字母编辑器都提供快速匹配定位到某个单词,如果没有,则在stutes line中显示没有找到了,查一个单词时,特别实用,这个功能Idea两年前就有了)

Ctrl+Shift+J 反向增量查找(和上条相同,只不过是从后往前查)

Ctrl+Shift+F4 关闭所有打开的Editer

Ctrl+Shift+X 把当前选中的文本全部变为大写

Ctrl+Shift+Y 把当前选中的文本全部变为小写

Ctrl+Shift+F 格式化当前代码

Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)



下面的快捷键是重构里面常用的,本人就自己喜欢且常用的整理一下(注:一般重构的快捷键都是Alt+Shift开头的了)

Alt+Shift+R 重命名 (是我自己最爱用的一个了,尤其是变量和类的Rename,比手工方法能节省很多劳动力)

Alt+Shift+M 抽取方法 (这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)

Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)

Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)

Alt+Shift+F 把Class中的local变量变为field变量 (比较实用的功能)

Alt+Shift+I 合并变量(可能这样说有点不妥Inline)
Alt+Shift+V 移动函数和变量(不怎么常用)
Alt+Shift+Z 重构的后悔药(Undo)

Thursday, October 30, 2008

迷惘

迷惘...
最近常常带着迷惘的心情
思考未来的路 该这么走下去
有时 不时在想
当一个买经济饭老板 甚至 买水果的小贩都很好
这些人 都无忧无虑 不用整天想着如何编程电脑系统
生活简单 一点都不像电脑工程师 想到天昏地暗 都要宁死不屈想到如何编程
不然 那些不简单的高层 又整天想着自己的利益 要你屈服于它们
我当然知道 做高层一样不容易 但它们不是拿着高薪 不是吗?
它们宁死也要你冤死 也许 你觉得我的想法很极端吧
以上的他们被改成“它们” 是因为不想屈服于它们 狠狠踩他们一下

最近 这些日子里 好多朋友返回家乡
有些 回去帮家人打工 有些则回亲戚公司帮手
这些怎么都好过帮别人打工吧 不用看人家的眼色做事 生活也没那么复杂吧
说到底 都好过帮外头的公司打工

也许我必须安下心来 慎重的考虑我的将来
未来的路 真的就这么的模糊不清 徘徊不定
迷惘的心 渐渐的迷失了 弥漫着我的将来

Wednesday, October 29, 2008

热疯了




最近这几天总觉得好热,简直热疯了

晚上睡觉都睡不着 偶尔又流汗

热得想哭.. 从内脏热到汗毛,连脚趾头都觉得热.

闷,像是快要喘不过气了

真是闲...

风吹在身上可是热风啊,简直是杀人啊...

真希望有台冷氣機在旁邊吹著...



Monday, October 20, 2008





"The former head of the US Reserve System, Alan Greenspan, described the current financial crisis as an even that occurs once in 100 years. Indeed, the world has not witnessed such a massive financial collapse for a very long time already. The bankruptcy of Lehman Brothers will become the largest bankruptcy in the corporate history of the United States. USA’s largest insurance company, AIG, also stands on the brink of collapse. The market remains in a state of shock, being unable to realize and cope with all consequences of the recent events, The Vremya Novostei newspaper wrote. "


U.S.? The economic crisis maker. What happens in the United States will affect the entire world and, above all, small countries like ours, Malaysia. I stil remember last time July 2007, George Soros causing the Asia country economic crisis. US goverment stil laughing at Asia country as one George Soros also make Asia economic crisis. This is ridiculous. But what happens to them now? Shame on them who causing the current worst financial crisis since the 1930s.




Saturday, August 23, 2008

慢慢的安静。。。

好久没有来这里了
最近公司太多事务要去理
所以好每有时间上来这里了
好累 好累

Wednesday, August 13, 2008

Why We Should Go Home On Time?

" LOVE YOUR JOB, BUT NEVER FALL IN LOVE WITH YOUR COMPANY BECAUSE YOU NEVER KNOW WHEN THE COMPANY STOPS LOVING YOU " - Narayana Murthy

Mr. Narayana Murthy is undoubtedly one of the most famous persons from Karnataka. He is known not just for building the biggest IT Empire in India but also for his simplicity. Almost every important dignitary visits InfoSys campus. He delivered an interesting speech during an employee session with another IT company in India. He is incidentally, one of the top 50 influential people of Asia according to an Asiaweek publication and also the new IT Advisor to the Thailand Prime Minister.

Extract of Mr. Narayana Murthy's Speech during Mentor Session:

I know people who work 12 hours a day, six days a week, or more. Some people do so because of a work emergency where the long hours are only temporary. Other people I know have put in these hours for years. I do not know if they are working all these hours, but I do know they are in the office this long. Others put in long office hours because they are addicted to the workplace. Whatever the reason for putting in overtime, working long hours over the long term is harmful to the person and to the organization. There are things managers can do to change this for everyone's benefit.

Being in the office long hours, over long periods of time, makes way for potential errors. My colleagues who are in the office long hours frequently make mistakes caused by fatigue. Correcting these mistakes requires their time as well as the time and energy of others. I have seen people work Tuesday through Friday to correct mistakes made after 5 PM on Monday. Another problem is that people who are in the office long hours are not pleasant company. They often complain about other people (who are not working as hard); they are irritable, or cranky, or even angry. Other people avoid them. Such behaviour poses problems, where work goes much better when people work together instead of avoiding one another. As Managers, there are things we can do to help people leave the office.

First and foremost is to set the example and go home ourselves. I work with a manager who chides people for working long hours. His words quickly lose their meaning when he sends these chiding group e-mails with a time-stamp of 2 AM, Sunday. Second is to encourage people to put some balance in their lives.

For instance, here is a guideline I find helpful:
1. Wake up, eat a good breakfast, and go to work.
2. Work hard and smart for eight or nine hours.
3. Go home.
4. Read the books/comics, watch a funny movie, dig in the dirt, play with your kids, etc.
5. Eat well and sleep well. This is called recreating.

Doing steps 1, 3, 4, and 5 enable step 2. Working regular hours and recreating daily are simple concepts. They are hard for some of us because that requires 'personal change'. They are possible since we all have the power to choose to do them. In considering the issue of overtime, I am reminded of my oldest son. When he was a toddler, if people were visiting the apartment, he would not fall asleep no matter how long the visit was, and no matter what time of day it was. He would fight off sleep until the visitors left. It was as if he was afraid that he would miss some thing. Once our visitors' left, he would go to sleep.

By this time, however, he was over tired and would scream through half the night with nightmares. He, my wife, and I, all paid the price for his fear of missing out. Perhaps some people put in such long hours because they do not want to miss anything when they leave the office. The trouble with this is that events will never stop happening. That is life! Things happen 24 hours a day. Allowing for little rest is not ultimately practical. So, take a nap. Things will happen while you are asleep, but you will have the energy to catch up when you wake.

Tuesday, August 5, 2008

好累..



这几天总觉得好累。
今天上班半天就请假回家休息了。
好累。

Friday, June 13, 2008

4及5月更新路稅者14日起可申領‧現金回扣只需大馬卡


已在4及5月間更新路稅的車主,包括新車主,可從6月14日起,在全馬683間有電腦連線的郵政局申請現金回扣,直到明年3月31日。
至於那些從今年6月起繳付路稅的私家車車主,則可從7月1日起,在有關郵政局申請現金回扣。
大馬郵政公司代董事經理兼首席執行員拿督阿布胡萊拉今日(週四,12日)召開新聞發佈會,公佈現金回扣詳情。
凡私家車引擎容積不超過2000cc、小型卡車(pick-up truck)或吉普車引擎容積不超過2500cc,及電單車不超過250cc的車主,皆可申請現金回扣;車輛的回扣數額是625令吉,而電單車的回扣為150令吉。


車主領取回扣程序

選擇一:(當天領取現金回扣)
1)車主本身攜帶正本證件如身份證或軍警證前往郵政局。
2)填寫申請表格,所需資料包括車主姓名、身份證或軍警證號碼及車牌號碼。(不需攜帶車卡)
3)填妥表格後交上服務櫃檯,櫃檯職員將與陸路交通局的系統資料庫查證車主資料。
4)經查證後,如果客戶符合資格,櫃檯職員將處理領取現金回扣;如果不符合資格,職員將告知客戶。
5)櫃檯職員將把符合資格者的資料輸入系統,存檔在郵政局資料庫。
6)通過首階段審核後,車主必須在表格上蓋指模核對身份以領取現金回扣。
7)職員將根據車主所擁有的交通工具數量(最多5輛)支付現金回扣。

選擇二:(7天之內領取匯票)
1)對於忙碌或不願在郵政局久候以領取現金回扣的車主,可在填寫表格後置入郵政局的特設箱子以待處理。
2)表格除了同樣需要填寫車主姓名、身份證或軍警證號碼及車牌號碼,也需填寫車主的最新郵寄地址及聯絡電話。(以防郵政局職員無法閱讀所填寫資料時可聯絡車主)
3)把表格置入特設箱子前,車主必需保存表格下方的“客戶存底”部份作為記錄。
4)郵政局職員在工作天結束前會處理置入特設箱子的申請表格,審核車主資料。
5)如果符合條件,職員將把表格上的資料輸入系統的資料庫,並把匯票郵寄至車主所填寫的郵寄地址,整個過程不會超過7天;如果不符合條件,職員將通知車主。
6)一旦接到匯票,車主可選擇前往郵政局兌現或前往銀行存入本身戶頭。

Thursday, June 12, 2008

四川灾难




山河崩裂,大地無色,無數生靈被大自然塗炭於瞬間,
四川劫後的災民是超過千萬計,境況令人擔憂。

Sunday, June 8, 2008

bored...




tomorrow need work again.
monday again..
why this world got seven days.
why not friday, saturday and sunday..
aiks...bored..
just now go to Petronas petrol station fill car petrol,
usually i fill RM30 can raise two level already
but just now need RM50 to fill up two level
everything is raise...
haih...

EURO 2008



Tonight is the EURO 2008 Cup Opening match,
I watch the first match between Swiss and Czech alone at Kayu.
Such a bored match and i leave at the half of the game.
After match finish, i check from the score board,
Czech steal 1-0 win over Swiss.
bored...
haiz..tomorrow stil need go office to rush projects.
So many things stil need to do tomorrow..

Sunday, May 25, 2008

Bar Celona



Last night, my friends invite me to join friend Birthday Party.
So I just follow my friends to celebrate birthday party.
We go eat at Puchong 大长今。
We order so much foods together to eat,
the foods is so nice and different from others restoran foods as the foods here is all korean style foods. The foods here is quite expensive.

After that some of my friends suggest to go to Bar Celona. At first, i thought how come the bar is same name as Spain Football Club, Barcelona. But after i reach there, i only realize the name of bar is Bar Celona not Barcelona.

We drink a lot beer inside and only to leave around 2am. It is a quite new experience to me as i never celebrate friends birthday party at Bar before.


Thursday, May 22, 2008

Report: United 1 Chelsea 1 (6-5 on pens)


United are celebrating after winning a third European Cup
in the most dramatic fashion - sudden death penalties
in the pouring rain at the Luzhniki Stadium in Moscow.
The crucial spot-kick - Chelsea's seventh - was saved by
Reds keeper Edwin van der Sar to seal an epic victory.

Wednesday, May 21, 2008

曼联公布欧冠24人名单 鲁尼C罗领衔



希望大家千万不要错过欧冠杯决赛,曼联对垒切尔西。
时间 :22/5/2008 (Thursday) 2.45am.

曼联欧冠决赛24人大名
门将:范德萨、库兹萨克、希顿
后卫:费迪南德、维迪奇、埃弗拉、布朗、加里-内维尔、奥谢、
希尔维斯特、皮奎
前卫:斯科尔斯、卡里克、吉格斯、哈格里夫斯、安德森、
弗莱彻、朴智星、纳尼
前锋:C-罗、鲁尼、特维斯、萨哈、维尔贝克

Sunday, May 18, 2008

汤杯半决赛 中国险胜马来西亚 大馬人再度失望





东方网5月16日消息:5月16日下午,2008年汤尤杯羽毛球赛结束首场半决赛争夺。中国队3比2险胜击败马来西亚,终结了汤杯上16年不胜对手的纪录.


haih, 。怎么没次都输了。喜愛羽球運動的大馬人再度失望。


自1992年最後一次捧杯後,從1994年至今為止,大馬都沒有再勝過湯杯賽。大馬球迷、全國上下都希望大馬羽球隊,能在今屆的湯杯決賽創奇蹟,重奪久違的湯杯。


但是,最終的結果令國人失望,哈菲兹輸掉了比賽,大馬也因此無法殺進決賽,捧杯夢再度粉碎。 高姿態出戰的大馬羽球隊,給愛戴羽球運動的球迷、國人很大的期望,不過到頭來還是失望一場。失去這次的機會,大馬隊還要再等兩年,國人也還要再等兩年。


好在首场比赛中,状态全无的林丹0比2完败于大马一号男单李宗伟, 还挽回了一些面子。古建杰/陈文宏又让国人再度失望。希望国羽能在北京奥运会杀出重围,赢下一些金牌。


今天是湯杯決賽,換換心情,轉向支持韩國,希望韩国狠取中國!哈哈!(報復心態,希望中國輸掉,嘻嘻。)


Tuesday, May 6, 2008

my F@rewell at Prince Cafe

I forget to post this farewell photo for so around one week liao.
Last wednesday 30th April 2008 is my f@rewell at Vida Sprint Sdn Bhd. So i have take lunch with my Vida Sprint colleagues. But the all photo is take by my collegues. So i did'nt have my own personal photo at following. Just got half my face appearances.lol +:)

~ two years liao, its time to said goodbye.. ~

Thanks to all who treat me lunch..









Thursday, May 1, 2008

啥子追求?去球!算球罗

如果说弗格森爵士在一年前带领曼联队同AC米兰的两回合比赛里,是满怀豪情立志于技术流控制球的现代派足球,从而与安切洛蒂的红黑军团联袂上演了两场经典比赛的话,在今年的两回合半决赛面对巴萨时,他已经完成了自己教练生涯晚期的又一次转变。在今天凌晨的比赛里,在老特拉福德,他指挥帐下众弟子,踢了一场过程难看结果好受的比赛;他放弃了追求,让唯美足球“去球”了,于是他赢球了;他的队伍不要姿势了,于是,他们舒适了、“巴实”了。

人在现实面前,有时不得不低头,而一旦舍得姿态,低一次头,结果往往不坏。一年之间的两次半决赛,曼联的足球哲理的转变,给我们这样无奈的启示。

巴萨这样的球队正相反。无论人员状态如何,自从克鲁伊夫执掌之后,永远的、从下到上的,都是一个踢法,很精致很好看的踢法。这种踢法里似乎有荷兰人那天生的几乎变态的完美主义,好像梵高会割掉自己的耳朵一样,荷兰人的足球理念一旦扎根于加泰罗尼亚,宁肯用最好看的姿势去跳崖,也不肯为了逃生连滚带爬。

其实,巅峰状态的巴萨的踢法也许真的是世界上最好看的最完美的足球,完美到接近于实况超级玩家操作出来的场面。但是,这样的完美建立在每一个角色的完美基础上,每一个人,都必须是按照巴萨的足球理想生产设计或者开发出来的标准组合件,任何一个环节都是按照设计最大功能连续运转,才能实现那种令人心旷神怡的足球。

现在的巴萨根本达不到设计要求,硬挂最高档强踩油门长距离冲刺,只能爆缸了。
该换发动机了。还有其他零件。也许包括司机。

有追求的队伍坚持不懈精诚所至金石为开,总有机会达到目标,让别人看到唯美的足球、艺术的足球,展现酣畅淋漓荡气回肠的进攻。

能变化的队伍审时度势机动灵活能屈能伸,也可以取得好成绩,给自己赢得尊重,为实用主义正名,体现足球的多样性。

足球就是这样,人生恐怕也如此。你是做巴萨还是做昨夜的曼联呢?

Friday, April 25, 2008

Matching a Backslash in Java

I've done it a million times in the past but for whatever reason I keep screwing up how to properly write a backslash (\) in a regular expression. Sometimes i spent a little time to solve it but the problems is i simply forget it at next times. It is wasting times trying to figure out why the character class in this

[\";:()\\[\\]<>@.\\,]

regular expression wouldn't match strings containing commas. I'm blogging the solution so I'll have a permanent record and hopefully, I'll once and for all stop screwing it up!

Solution:
[\";:()\\[\\]<>@.\\\\,]

notes: character '/' is treat as normal string "/", and character '\' as character '\\'

Wednesday, April 23, 2008

BARCA-MAN UTD: Top of The World


CHAMPION LEAGUE SEMI FINAL FIRST ROUND

BARCELONA VS MANCHESTER UNITED
NOU CAMP, BARCELONA
kick-off 19:45 BST

DONT MISS IT!!!


CHRISTINAO RONALDO VS LIONEL MESSI
...WHO IS THE BEST OF THE BEST...

VS

Windows XP keyboard Useful shortcuts

General keyboard shortcuts
• F2 key (Rename the selected item)
• F3 key (Search for a file or a folder)
• ALT+ENTER (View the properties for the selected item)
• ALT+F4 (Close the active item, or quit the active program)
• ALT+ENTER (Display the properties of the selected object)
• ALT+SPACEBAR (Open the shortcut menu for the active window)
• ALT+ESC (Cycle through items in the order that they had been opened)
• SHIFT+F10 (Display the shortcut menu for the selected item)
• ALT+SPACEBAR (Display the System menu for the active window)
• CTRL+ESC (Display the Start menu)
• F10 key (Activate the menu bar in the active program)
• SHIFT when you insert a CD-ROM into the CD-ROM drive
(Prevent the CD-ROM from automatically playing)
• CTRL+SHIFT+ESC (Open Task Manager)

Microsoft natural keyboard shortcuts
• Windows Logo (Display or hide the Start menu)
• Windows Logo+BREAK (Display the System Properties dialog box)
• Windows Logo+D (Display the desktop)
• Windows Logo+M (Minimize all of the windows)
• Windows Logo+SHIFT+M (Restore the minimized windows)
• Windows Logo+E (Open My Computer)
• Windows Logo+F (Search for a file or a folder)
• CTRL+Windows Logo+F (Search for computers)
• Windows Logo+F1 (Display Windows Help)
• Windows Logo+ L (Lock the keyboard)
• Windows Logo+R (Open the Run dialog box)
• Windows Logo+U (Open Utility Manager)

Microsoft Internet Explorer navigation
• CTRL+B (Open the Organize Favorites dialog box)
• CTRL+E (Open the Search bar)
• CTRL+F (Start the Find utility)
• CTRL+H (Open the History bar)
• CTRL+I (Open the Favorites bar)
• CTRL+L (Open the Open dialog box)
• CTRL+N (Start another instance of the browser with the same Web address)
• CTRL+O (Open the Open dialog box, the same as CTRL+L)
• CTRL+P (Open the Print dialog box)
• CTRL+R (Update the current Web page)
• CTRL+W (Close the current window)

Monday, April 14, 2008

Manchester 2 Arsenal 1

Didn't really expect such a close win from Man Utd... Heh heh..
1 goal from Ronaldo spotkick and one sneaky freekick is really on fire.
No wonder there are so many jealous haters :)

Thanks to the Van Der Sar, manchester save alot dangerous shoot and pass from arsenal..InTerEsTinG game from both sides.

PROPER WAY TO USE THE MEDICAL CARD

PROPER WAY TO USE THE MEDICAL CARD
IN CASE OF EMERGENCY!!!
In cases of Emergency, a matter of LIFE & DEATH (eg Heart-attack, Strokes, Accidents) NEVER.. NEVER.. NEVER use a medical card! Why?....

1. In the emergency room, you will be asked to register and make a 'Deposit' BEFORE the patient is TREATED!

2. When you show the medical card….the doctor MUST complete the claim form and fax to the insurance company BEFORE they can treat the patient. The hospital MUST wait until the insurance company Confirms coverage & limit of policy.

3. ALL these procedures may take 1-2 HOURS!! By this time the patient may have lapsed into a coma!!

4. Use your credit card or Cash FIRST. AFTER the patient has been treated & attended by the doctor, then show the admission counter nurse the medical card. She will then liaise with the insurance company directly for the approvals. She will tear the earlier credit card deposit once the insurance company has approved.

5. By now the patient would have been wheeled into the room to rest or to the surgery room for immediate surgery. Sincerely we pray no one has to go through such an ordeal. Share this info with your loved ones, your colleague & friends.

Friday, March 21, 2008

Paint picture


I took this picture from someone who drew this picture and put at the blog,
so artistic.
I so like this picture..Soi put this picture at my blog.

It took around the owner three hours to finish drew this picture.

Friends


A friend is an Inspiration...
One who inspires us to spread our wings to fly or dream and dare to achieve.

Man Utd's next generation of wonderkids

Manchester United have set off on their pre-season United States tour with a number of young stars involved, but some other talents have lef...