Thursday, July 16, 2009

養不起的未來

日本的諷刺明星兼導演北原武不久前又獲得一個電影的國際獎。
幾年前他的母親去世,他回故鄉去奔喪,他一直不喜歡母親,

因為她一直不斷向這一個兒子要錢,只要他一個月沒有寄錢回家,

母親就打電話給他破口大罵,真是所謂的死要錢,而且北原武越出名,她索取的錢越多。

回到家之後,他還是忍不住大哭一場,

想到他一直在外,沒有好好供養媽媽,

雖然是死要錢的媽媽,他還是覺得虧待母親。

等辦完喪事,北原武正要離開家的時候,

他的大哥把一個小包袱給了他說:

這是媽媽叫我一定要交給你的。

北原武小心翼翼地打開小包袱看到一本存摺與一封信,存款是用他的名義開戶,存款金
額高達數千萬日幣,信中母親寫道:

“武兒,在這幾個兒女當中,我最擔憂的就是你,

你從小就不喜歡唸書,又亂花錢,對朋友太慷慨,

當你說要去東京打拼時,我就很擔心你會變成一個落魄的窮光蛋,

因此我每月從不間斷地要你寄錢回家,

一方面可以刺激你去賺更多的錢,

另一方面也為了替你儲蓄;你給我的錢,

我一毛都沒有花,你大哥一家把我養得好好的, 你的錢就是你的錢,現在就拿去好好利用吧!” 看完了信,北原武哭倒在地上,久久站不起來...



王永慶曾經說過一句話:
你賺的一塊錢不是你的一塊錢,你存的一塊錢才是你的一塊錢。

現在的經濟景氣越來越差,全世界都進入了二低一高的時代低成長、低利率、高通膨;
不要小看你隨手花掉的小錢:
一杯咖啡、一包香煙、一件衣服...

省下它,就有可能改變你的一生,

如果你身邊也有存不了錢的朋友,

告訴他北原武的故事,你就有可能成為他這輩子的貴人!



養不起的未來 --不是收入太少,而是開銷太大

Tuesday, July 7, 2009

音乐是不需语言的 - 天籁之音

在youtube 看到这小片段,他她们的音乐太迷人了,大家不妨细心欣赏一下。

Monday, June 29, 2009

两岁半孩子开榴莲

我家两岁半孩子挑战开榴莲。哈哈,竟然给他成功了。

Thursday, June 25, 2009

HDR effect with Panasonic Lumix FZ28 (照片 HDR 后期制作 )

High Dynamic Range (HDR) - Here are some photo that taken with my Panasonic Lumix FZ-28, and processed with Photomatrix for HDR after effect. It was really fun and the outcome seems awesome.
To produce HDR with Panasonic Lumix FZ28, the photo must be taken in RAW format, and then use SilkyPix Developer Studio(photo manipulation software that come with the camera) to develop 3 jpeg photos with following EV setting: -2EV, 0EV, +2EV . After that, you need to use the Photomatrix software to Merge these 3 photo to produce the final HDR photo.

最近从同事那里学会了玩 HDR, 特地放几张照片来和大家分享一下。制作 HDR 一点也不难,首先必须使用RAW 格式来拍摄,然后使用SilkyPix Developer Studio(随机附送的软件)制成3张照片,照片设置为 -2EV, 0EV, +2EV。 过后使用 Photomatrix 来进行结合,就能制成 HDR了。
Normal /HDR


 


Normal/HDR



Normal/HDR



Normal/HDR

Thursday, June 18, 2009

KLSE - Short Term Trading

After a lunch with Allen, here are some KLSE short-term trading information that collected and let's share it.
There are 5 graphs that we need to monitor in order for short term trading,there are
1) Moving Average ( 5 days, 15 days, 30 days)
---MA mostly useful for mid and long term investment.
---Look for the Golden Cross for indication
2) Candle Stick
3) ADX(Seller and Buyer)
---When Buyer(green line) going down, cross over the Seller(red line), good signal. If above the Zero line, even better.
4) MACD
---When the solid line moving up and cross over the the dash line, good sign.
5) Stochastic

All of the above graphs must be supported by a large trading volumn, if trading volumn is small, the above graph will be meaningless.

There are some good counter for short-term trading in KLSE, there are:
Steel Industry
1) Annjoo
2) Lionind (fast)
3) Lioncorp (fast)
4) Masteel
5) Ssteel

Property
1) E&O
2) Spsetia
3) DNP
4) Suncity
5) Ijmland

Oil Industry
1) Kencana
2) Sapcres
3) Petra
4) Penergy
5) Knm
6) Waseong

Plantation
1) IOI
2) Rsawit
3) KLK
4) Ijmplnt
5) Sime

Medical Glove
1) Kossan
2) Supermax
3) Topglove

Telecommuncation
1) Axiata
2) TM

Construction
1) Muhibbah
2) WCT
3) LCL

Corporation
1) YTL
2) MMCCorp
3) MRCB
4) DRBHCOM
5) Zelan
6) Sunway

Cement
1) Lmcement
2) Ytlcement

Pipe
1) Jaks
2) KPS
3) Puncak

Finance
1) Commerce
2) Maybank

Electronic
1) Unisem
2) ENG
3) Gtronic

Friday, June 5, 2009

How to Create DOM Element with Javascript

To create a DOM element with Javascript is very simple, look as the following example you will find it is just a piece of cake.

<script>
function addTR(tableid)
{
var atr=document.createElement('TR');
atr.setAttribute('id','tr4');
document.getElementById(tableid).appendChild(atr);
addTD('tr4');

}
function addTD(trid)
{
var atd=document.createElement('TD');
var atr=document.getElementById(trid);
atd.innerHTML='TD created by JS';
atr.appendChild(atd);
}
function addInputButton(parentId)
{
var abut=document.createElement('INPUT');
abut.setAttribute('type','button');
abut.setAttribute('name','buttybutton');
abut.setAttribute('value','Butty Button');
document.getElementById(parentId).appendChild(abut);
}
function addInput(parentId,type,inputname,inputvalue)
{
var aInput=document.createElement('INPUT');
aInput.setAttribute('type',type);
aInput.setAttribute('name',inputname);
aInput.setAttribute('value',inputvalue);
document.getElementById(parentId).appendChild(aInput);
}
</script>

<table name='t1' id='t1'>
<tr id='tr1'>
<td>
<input type=button onclick="addTR('t1');" value='Add TR'>
<input type=button onclick="addTD('tr2');" value='Add TD'>
<input type=button onclick="addInputButton('butbox');" value='Add Button'>
<input type=button onclick="addInput('butbox','text','textbox1','Wow Dynamic');" value='Add Textbox'>
</td>
</tr>
<tr id='tr2'></tr>
<tr id='tr3'><td>Hello</td></tr>
<tr id='tr5'><td id='butbox'></td></tr>
</table>

Tuesday, May 19, 2009

How to break website with right mouse click disabled

How to break website with right mouse click disabled

There are many websites toggled off the right click for the purpose of securing the website content copyright. While surfing these kind of website, i feel this is very much annoying because i used to do right-click a lot.
These websites are using javascript to disable the mouse right click, if you need to release your right mouse click/enable your right mouse click, all you need to do is to stop javascript to work in that website.

There are 2 ways to release your right click,
1) The best way will be the following technique:
while visiting the website, go to your browser URL field, and enter the following code and press "Enter" key. This will disabled the javascript on that particular web page,
javascript:void(document.oncontextmenu=null)

2) Go to your setting and disable the javascipt, then it is done :)

Tuesday, May 12, 2009

facebook hidden trick (special effect) FACEBOOK 的隐藏特别效果

Login into your facebook, then press the following keys in sequence, you will trigger the hidden trick with a special effect

up key, up key, down key, down key, left key, right key, left key, right key,
press b, press a, press ENTER key,
simply click mouse on the screen

登录 facebook 后,输入以上的键, 你将激活 facebook 隐藏的特别效果

三十六件騙了你很久的事

三十六件騙了你很久的事

1.從太空中可以看到地球的唯一建築物是長城

歐洲航天局官方網站04年展示一幅衛星拍攝的據稱是「中國長城」的太空照片,引起了包括中國科學家在內的國際上眾多專家的質疑。歐航局之後發佈更正,確認原照片中被誤認作長城的帶狀物其實是「一條流入密雲水庫的河流」。
中國科學院一科研團隊去年完成的一項研究進一步確認:太空中肉眼無法看到長城,只有達到一定空間分辨率的衛星遙感才能獲得長城影像。即使在通視條件極佳情況下,常人能看到十米大小的物體,形成平面「形覺」的極限距離約三十六公里,遠低於一般公認為距地一百公里為起點的太空高度。而長城寬度基本為兩米左右,除大的關隘城樓外,一般城台(烽火台)寬度也僅五至六米,由此可以斷定,太空人在太空不可能僅憑肉眼就能看到長城。

2、幾個科學家小時候的故事

牛頓和蘋果的故事

——關於牛頓和他的蘋果是伏爾泰編的,據說他是聽牛頓的侄女說的,當然牛頓的所有手稿裡沒提到那只蘋果。

愛因斯坦同學和小凳子的故事

——愛因斯坦小時候成績還行,就是有點偏科,幹嘛非說人家小時候傻呢……

華盛頓和櫻桃樹的故事

——華盛頓和他老爸的櫻桃樹是某美國出版商製造出來的兒童文學……

3、瓦特看見水壺燒開產生靈感發明蒸汽機——蒸汽機在瓦特出生前有,他只不過改良了而已……

4、菠菜富含鐵元素——菠菜鐵元素確實比其他蔬菜高那麼一點點,關鍵是當初科學家點錯小數點,所以才有了大力水手的動畫片。

5、兔子應該吃胡蘿蔔——養過兔子的都知道,兔子根本就不愛吃胡蘿蔔。

6、魚翅燕窩營養豐富——居然真的會有人相信鯊魚鰭和鳥口水有什麼營養價值……燕窩除了鳥口水之外,或者還有半消化狀態的魚蝦,實際營養不如粉條和木耳!

7、懷孕不能養貓,有弓型蟲——只要去寵物醫院做次排蟲測試就成,醫生為圖省事說的,不只是貓、豬牛羊等觸類都能感染弓型蟲。而且比例上來講比貓不知道高多少……而且貓一生也只感染一次弓型蟲。絕大多數感染過弓型蟲的人一輩子都沒養過貓。

8、鋰電池前三次充電要滿12小時——以前的電池是需要充分充電,用來激活,現在都是鋰電池了,是不需要這樣做的。

9、電視電影裡常見的,某B社會「專家」拿根手指蘸掉白色粉末嘗嘗就知道是毒品

——如果真這樣做……那是找死,純度越高死的越快。

10、天才就是99%的汗水1%的靈感

——原話是「天才就是99%的汗水1%的靈感,但這1%的靈感遠遠比99%的汗水重要」。

11、老師常用『吾生有崖,而知無崖』教育我們要好好讀書

——其實……原文是「吾生有崖,而知無崖,以有崖求無崖,殆哉矣」……完全相反。

12、感冒是由感冒病毒引起的,吃消炎藥可以治感冒

——感冒藥並不能清除感冒病毒,只是緩解了咳嗽、鼻塞等症狀。

13、1999年7月……恐怖大王從天而降

——這個不用證明了吧……

14、「世界上最遙遠的距離不是生與死,而是我站在你面前,你卻不知道—我愛你。」是泰戈爾大師寫的

——是張小嫻女士的傑作。

15、解放黑奴是美國內戰的起因

美國內戰的根本原因在於南方和北方有著不同的經濟體系。當南方希望他們的農產品有個自由市場時,北方各州則要求為正在興起的本地工業產品實施保護關稅措施。於是1860到61年的冬天,南部各州退出聯邦,這不是因為他們害怕新任總統林肯會禁止蓄奴,而是因為林肯的整個政治主張都是為北方的利益效勞,即使在新開發區也是北方優先,南方各州因而擔憂,不久後他們在表決時就會完全處於劣勢了。

16、太晚吃飯並不健康,而且會使人發胖?

如果是這樣的話,地中海地區的人就慘了。並沒有證據指出,吃飽飽會讓人睡不好,也沒有人可以證明晚6點以後才吃進去的熱量特別容易讓人發胖,飲食習慣很重要,這才是正確的觀念。

17、愛斯基摩人傳統上是住在圓頂的冰屋裡

我們俗稱的愛斯基摩人比較喜歡別人以他們自己的名字「因努特人」來稱呼他們。撇開這一點不談的話,他們以前通常也是住在小屋和帳篷裡的,只有當他們在冰上打獵的期間需要過夜時,他們才會建造圓頂冰屋。

18、塑膠比木材衛生

科學實驗證明,木頭上會致病的細菌,如沙門桿菌或是大腸桿菌,很快就會死亡了,然而塑膠籃表面的細菌反而可以存活下來,甚至有一部分還會繼續繁殖呢!

19、夢境只會持續幾秒鐘

過去有很長一段時間,研究睡眠的專家相信每個夢都只維持幾秒鐘而已,即使做夢的人覺得好像做了一個長夢。事實上,人們在打個小盹時常常都像是讀了一本長篇小說一樣。不過現在我們已經確定,有些夢可以有30分鐘這麼長。接近清晨時做的夢,通常會比剛入睡時做的夢來得長。此外,每個人都會做夢─即使他自己根本什麼也不記得。

20、哥倫布時代的人仍然相信地球是一塊平面

15世紀時只要受過點教育的人,或者隨便一名水手,都不再有人會認為地球是一塊平面了。哥倫布西行航向印度的計畫,一開始會到處碰壁找不到資助,完全是因為別的理由。因為當時哥倫布算出的地球圓周只有2萬8千公里,然而葡萄牙國王的顧問群卻推算到4萬公里─事實上這是相對符合實際的數據。此外,可能他的態度舉止,還有經濟贊助的要求,都讓人沒什麼好感。

21、馬站著睡覺

馬是可以站著睡,但是如果牠們感覺安全,而且地方寬裕,那麼牠們倒是很樂於躺下來睡的。養馬專家可是說得信誓旦旦,一群馬或是一個馬廄裡面,絕對不會所有的馬都同時躺下來睡的,永遠都會有一隻站著而且守衛著!

22、只有天才才能把肖像畫得讓觀者覺得一直被盯著看

不管是從哪個角度來看《蒙娜麗莎》,她看起來就像直視著觀者的眼睛一樣。可是這裡面並沒有什麼魔法,而且也不需要像達文西這麼天才才能畫出這種效果。基本上這只是個很簡單的把戲:將畫中人的一隻眼睛畫在一條把整幅畫垂直平分的直線上即可。

23、非洲的最南端就是好望角

非洲最南端的點是厄加勒斯角(KapAgulhas,意為「針角」),它位於好望角東邊大約150公里處,而且還要再往南延伸差不多65公里。狄亞斯(BartholomeuDiaz)在1488年成為第一個繞過這兩個岬角的人,當時他說了一句話:「波濤洶湧的岬角。」但他所指的還有測量的是哪一個角,我們並不清楚。不論如何,對航海的人而言,好望角是一個很明顯的陸標;好望角的名字應該是葡萄牙國王取的,他希望當時就可以找出一條通往印度的海路。

24、過酸的食物會造成胃穿孔?

對於想阻止小孩食用太多汽水和其他亂七八糟甜食但卻束手無策的家長而言,這是個很常用的恐怖童話。人類的胃裡本來就含有消化食物的胃酸,因此我們的胃並不會因為酸性物質而受到傷害。

25、阿拉伯數字是阿拉伯人發明的

大家平常在用的阿拉伯數字,是哪一國人發明的呢?答案不是阿拉伯人喔,是印度人!我們所謂的阿拉伯數字,是西元10世紀的時候阿拉伯人從印度引進的,後來歐洲人在14世紀的時候從阿拉伯人那邊學到了0到9的數字寫法,取代了羅馬字母,而大家也就把這些數字稱為是「阿拉伯數字」。

26、民可使由之,不可使知之——孔子

——其實是『民可,使由之;不可,使知之』,「民可,使由之;不可,使知之。」也就是民可,則使由之;不可,則使知之。

人民能做的事,由他們去做;不能做的事,要讓他們知道不能做的原因。古代沒標點害人啊……

27、梁山伯與祝英台

——文學創作果然是神奇的……梁山伯其實是明朝的清官……,祝英台南北朝魏國的女俠……兩朝代相差700多年,只是被埋的近而已……還有種說法是,埋梁的時候那地裡挖到祝的碑,就埋一起,冥婚??

28、陳世美拋妻棄子,武大郎的身高,楊門女將,楊家將——楊業就一個兒子,楊延昭,也就是俗稱的楊六郎。所謂楊家七個兒子是假的。陳世美的朝代比包公早很多,是個非常好的清官,得罪了權貴被傳成了一個負心漢遭後世唾罵。(可憐的人)陳世美不是負心郎包拯從未當宰相。

29、周瑜被諸葛亮氣得吐血,空城計

——三國演義裡周瑜被諸葛亮氣得吐血而死是羅貫中胡扯的,原因在於羅屢試不第並遷怒於某周瑜的後人,故在書裡意淫洩憤。事實上現在周瑜的族人還有族譜,證實此說純粹造謠。

諸葛亮根本沒做這回事,但是據說曹操曾有類似演出,引易中天一句話,難道司馬懿那麼蠢不會叫個弓箭手把諸葛亮射下來嗎?

30、李時珍畫像(一慈眉善目老爺爺)

——其實是現代畫家根據李時珍遺物意淫的,據考證李時珍相貌兇惡滿臉絡腮鬍身材魁梧大概和張飛李逵差不多形象……

31、以德報怨

原句:「或曰:『以德報怨,何如?』子曰:「何以報德?以直報怨,以德報德」

——《論語憲問》

以德報怨,是我們常聽到的一句話了,人們通常理解的「以德報怨」什麼意思呢?就是說:孔老夫子教我們,別人欺負你了,你要忍,被打碎牙齒也要往肚子裡吞,別人來欺負你,你反而應該對他更好,要用你的愛心去感化他,用你的胸懷去感動他。

但事實上,我們根本曲解了孔子的原意,我當初,也萬萬沒想到原來在孔子這句「以德報怨」的後邊還跟著另外一段話,什麼話呢?子曰:「以德抱怨,何以報德?以直報怨,以德報德!」看完以後,幡然醒悟,原來我們都被某個斷章取義的孔子FANS給玩了一把!當時的真實情況是怎麼樣的呢?孔子的一個弟子問他說:師傅,別人打我了,我不打他,我反而要對他好,用我的道德和教養羞死他,讓他悔悟,好不好?孔子就說了,你以德抱怨,那「何以報德?」別人以德來待你的時候,你才需要以德來回報別人。可是現在別人打了你,你就應該「以直抱怨」,拿起板磚扁他!看!就因為被人故意省略了一句話,剛烈如火的孔老夫子一下就被扭曲成了現在這個溫婉的受氣包形象。

32、無毒不丈夫

原句:量小非君子,無度不丈夫。

——民間諺語聯對

原來,這句來自民間的諺語本來應該是「量小非君子,無度不丈夫」,這本來是個很好的句子,裡邊充分運用了對仗。顯示出了一份陽剛有力的氣魄,一個胸懷坦蕩的男人形象就躍然於紙上,可惜勞動人民口耳相傳的這一句話,到了朝廷上那些所謂的學高八斗的「君子」嘴裡就變了個味。為什麼呢?這要從古時候文人的習性說起,在這副對聯式的諺語裡,「度」為仄聲字,犯了孤平,念著彆扭,很容易讀為平聲字「毒」,那些對音律美感要求甚高的學者們某天吃飽了沒事兒干,便發揮他們的專長自做主張,把這句改為「無毒不丈夫」了

33、天地不仁,以萬物為芻狗

原句:天地不仁,以萬物為芻狗,聖人不仁,以百姓為芻狗——《道德經》

要說起這句話,大半的憤青都會告訴你,這話的意思是說:「天地殘暴不仁,把萬物都當成低賤的豬狗來看待,而那些高高在上的所謂聖人們也沒兩樣,還不是把我們老百姓也當成豬狗不如的東西!」

其實這句話的真正意思是說,天地不情感用事,對萬物一視同仁,聖人不情感用事,對百姓一視同仁

34、綜合維他命有益健康?

不少營養專家提醒大家,維他命不是多吃多補,所以不要去吃單劑補充品,如維他命E、鈣片等,但每天可以吃一顆綜合維他命,安全又實際。
不過,現在卻又有專家警告,連每天吃一顆綜合維他命都可能出問題。
因為,某些綜合維他命裡的維生素、礦物質劑量,高到超過了安全值,而且愈來愈多研究也指出,高劑量的維他命對健康及預防疾病沒好處,反而會增加某些疾病的風險。
例如,最近幾個國外大型研究指出,血液中維生素A濃度高的人,罹患骨質疏鬆症的風險也比較高。另外有研究發現,攝取過量維生素A,會增加2倍的骨折風險。而且,我們攝取的維生素A會累積在體內,不像水溶性維生素(如B群、C)能隨尿液排出體外。

35、重要資料要燒錄到光碟裡面就安心了

一般人以為光碟片燒錄的資料可以放永久,其實不然,一般的光碟片頂多只有20年壽命,特殊的高價片才可能達數十年,若無好好保存,幾年內也會出問題,dvd燒錄片的壽命則更低,很差的燒錄片可能不到一年,光碟片上的染料就會稍微變質,使得資料發生錯誤。

36、喝酒可以禦寒,雪地遇難時要趕快拿酒來喝

喝酒是不能禦寒的。不只不能禦寒,反而還是造成失溫的元兇。酒一入肚,最先造成的是微血管擴張,體內血液大量湧入身體表層,是這一段期間讓我們覺得全身溫暖(並且滿臉通紅),可惜這只是表象,隨著血液從體內深處循環到表層,體內溫度也快速從深層流到體表散失。
如果喝酒過量,大腦的中樞神經還會進一步喪失功能,不只思考力、行動力會失控,連體溫調節功能也可能停擺。失溫情況無法改善,導致最後無維持體溫而喪生。

Wednesday, April 29, 2009

PHP - How to prevent/disable caching by proxy server

Add the following code into the very top of your php script.


header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s", time() + 300) . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");


Hope this help :)

Monday, April 27, 2009

How to Stop Skype using Port 80, IIS, Apache Web server cannot start

Hey! My IIS, Apache Web server cannot start, port 80 used by some other application..
I believe many of you might face the problem where Port 80 being used, while trying to
1) Run IIS
2) Run Apache
or
3) Xampp installation - for Xampp user, you can try to run xampp-portcheck.exe to check what application is utilising the port 80.

One of the main reason is due to the Skype utilising the port 80 as its communication channel.
So, let's stop it from using this port
Here the steps to stop Skype from using port 80.
Steps:
1) Open skype, follow the following instructions
2) Goto menu tools==> options ==> connections
3) uncheck the "use port 80 & 433" and save it.

If you don't have Skype installed, the try following steps to indentify what application is using your port 80
1) click "Start"
2) select "Run"
3) type "cmd" to open the console
4) type command
-----"netstat -n -a" for Windows 2000 users, you will be able to check whether your port 80 is being used or not.
-----"netstat -o" for Windows XP and above users, with "-o", it will show the process id - PID, and based on the pid, you will be able to identify what exactly the application is running on your port 80.

Beside, Windows firewall might be the other reason that blocking your port 80. Try to turn it off if you have not other way to tackle this issue.
Hope this help you all :)

Wednesday, April 22, 2009

My baby girl - 黃心月

After months of waiting, at last she was born. With the same birthday of myself, 18th Apr.
等了这么多个月,终于我的小宝贝女儿出世了,4月18日,和我同一天生日。


Monday, April 13, 2009

FZ28 Photo: KL PC Fair 2009 - Pretty Girls 美女魔豆

Went to buy Asus Netbook during this PC Fair 2009, here are some photo I toke with my Panasonic FZ28.These models were very friendly and show the sweetest smile in front of the camera :)
今届的 KL PC Fair 2009, 美女魔豆都很友善大方,一看见镜头就摆出了她们最甜美的笑容。







Tuesday, April 7, 2009

Panasonic FZ28 Photo: Petronas Twin Tower Night Scene 马来西亚国油双峰塔 夜景

Panasonic FZ28 photo : Petronas Twin Tower Night Scene
Please click to enlarge for better viewing pleasure.
马来西亚国油双峰塔 夜景
请点击以便放大以下照片。

Monday, April 6, 2009

香蕉。香蕉。我爱你


原來熟透的香蕉 . 產生攻擊異常細胞的物質 TNF
您可能會發現不久的將來
........ 香蕉會缺貨 !!
《网络文摘》
香蕉愈成熟即表皮上黑斑愈多,它的免疫活性也就愈高。日本人愛吃香蕉不是沒原因的,
大、小朋友們都喜歡吃香蕉 ~ 真方便,每日五蔬果,疾病遠離我喔 ........

根據日本科學家的研究發現,香蕉中具有抗癌作用的物質
TNF 。


而且,香蕉愈成熟其抗癌效果愈高。日本東京大學教授山崎正利利用動物試驗,比較了香蕉、葡萄、蘋果、西瓜、菠蘿、梨子、柿子等多種水果的免疫活性,結果證實其中以香蕉的效果最好,能夠增加白血球,改善免疫系統的功能,還會產生攻擊異常細胞的物質
TNF 。

山崎教授的試驗也發現,香蕉愈成熟即表皮上黑斑愈多,它的免疫活性也就愈高。所以從現在開始要吃熟一點的香蕉唷!
香蕉不會使白血球盲目增長只有在數量少的時候才會大幅度增加。
因此,專家們研究認為,香蕉具有的免疫激活作用比較溫和 , 在人體狀態健康時並不會使免疫力異常升高
. 但對病人、老人和抵抗力差的體弱者則很有效果。


因此,在日常生活中,我們不妨每天吃1~2根香蕉,透過提升身體的抗病能力來預防感染,特別是預防感冒和流感等病毒的侵襲。山崎教授指出,在黃色表皮上出現黑色斑點的香蕉,其增加白血球的能力
......... 要比表皮發青綠的香蕉強8倍。

Sunday, April 5, 2009

.htaccess Rewrite Engine Tutorial Guide

Found this .htaccess rewrite engine tutorial very useful from netfirms.com
Keep this as a reference for myself, it might be useful to you too.

How do I configure URL forwarding using mod_rewrite?

To configure URL forwarding using mod_rewrite:

I. ENABLE .HTACCESS
  1. Login to the Netfirms Control Panel at https://controlpanel.netfirms.com
  2. Click Site Tools
  3. Click .htaccess
  4. Enable .htaccess
II. CONFIGURE YOUR .HTACCESS FILE USING REWRITE ENGINE (mod_rewrite)

Example #1:
The following converts http://yourdomain.com/xyz.html into http://yourdomain.com/index.php?xyz):

RewriteEngine on
RewriteBase /
RewriteRule ^([a-z]+).html$ /index.php?$1 [R,L]

NOTE: The RewriteBase cannot be empty. It must indidcate the base directory or a referring directory.

Example #2:
The following converts http://yourdomain.com/directory/xyz.html into http://yourdomain.com/directory/index.php?xyz):

RewriteEngine on
RewriteBase /directory
RewriteRule ^([a-z]+).html$ /index.php?$1 [R,L]

Example #3:

RewriteEngine On
RewriteRule ^tutorials/(.*)/(.*).php /tutorials.php?req=tutorial&tut_id=$1&page=$2

Example #4:
The following will display contents in newpage.html when visitor browses to oldpage.html:

RewriteEngine on
RewriteRule ^oldpage.html$ /newpage.html

Example #5:
The following will rewrite the URL to
http://yourdomain.com/directory/newpage.html when visitors browse to http://yourdomain.com/anypage.html

RewriteEngine on
RewriteRule ^([a-z]+).html$ /directory/newpage.html [R,NC,L]

The following will display contents of http://yourdomain.com/folder1/folder2/folder3/index.php when visitors browse to http://yourdomain.com/folder1/index.php (while maintaining http://yourdomain.com/folder1/index.php in the address bar of the browser)


RewriteEngine On
RewriteBase /folder2/folder3/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index.php
RewriteRule (.*) /index.php/$1 [L]
RewriteRule ^$ /$1 [L]

Example #6:
The following example will forward a visitor coming from a specified IP address (eg. 123.45.67.8) to another location (eg. /):

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^123.45.67.8$
RewriteRule ^.*$ - [F]

The following example will forward a visitor coming from a specified IP address (eg. 123.45.67.8) to another location (eg. /) if they try to access any .php files:

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^123.45.67.8$
RewriteRule .php$ - [F]

Another example of a similar .htaccess file using ip blocking in RewriteCond directive will forward user to http://www.yahoo.com URL if they come from a specified IP address (eg. 123.45.67.8):

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^123.45.67.8$
RewriteRule ^(.*)$
http://www.yahoo.com [L]

Example #7:
Hot linking (ie. bandwidth stealing) happens when people link to files and images on a different server, display them on their website and the bandwidth is at the other website owner's expense. The following example can prevent hot linking to your website:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?yourdomain/.*$ [NC]
RewriteRule .(gif|jpg)$
http://yourdomain.com/image.gif [R,L]

Other Examples of .htaccess configurations:

Example #8:
If you have problems with certain visitors to your website, you can ban them. There are two different ways to ban visitors: (1) using their IP address they came from or (2) using the domain name which they came from.

The following example denies a visitor coming from IP address 123.45.67.8:

order allow,deny
deny from 123.45.67.8
allow from all

The following example denies visitors coming from a block of IP addresses coming from 123.45.67.0 to 123.45.67.255

order allow,deny
deny from 123.45.67.
allow from all

The following example denies a user by the domain name from which they came from:

order allow,deny
deny from www.theirdomain.com
allow from all

The following example denies a visitor from a domain name and all subdomains within the domain name:

order allow,deny
deny from .theirdomain.com
allow from all

The following example denies all visitors except your own IP address assigned to you by your ISP (Internet Service Provider):

Order deny,allow
Deny from all
Allow from youripaddress

Example #9:

The following example denies access to all files if the visitor is browsing from IP address 123.45.67.8:


Order allow,deny
Deny from 123.45.67.8
Satisfy All

Example #10:
You can configure .htaccess to redirect a visitor visiting a non-existing asp page to a custom error page as long as your hosting plan supports Windows hosting (eg. Business hosting plans and higher). Since our webservers are Windows aware, it tries to process the asp script before making a determination whether the asp file exists or not. As such, using htaccess will not work to redirect them to a custom error page because it will simply err with Service Unavailable (on ADV plan, ASP is not supported). That is, the redirection will not work if the (asp) file does not exist. However if on a plan with Windows support the redirection will work with the following similar coding in .htaccess file:

RewriteEngine on
RewriteBase /
RewriteRule ^([a-z]+).asp$ /directory/customerrorpage.html [R,NC,L]

Example #11:
The following example will redirect a user browsing to yourdomain.com to www.yourdomain.com:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule ^(.*)$ http://www.yourdomain.com [R=permanent,L]

Example #12:
The following example redirects all requests to the new domain saving the URI in the variable and passing it through to the new domain:

RewriteEngine ON
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]


Note: Once your .htaccess file has been created you may upload it to the remote server via FTP. Please ensure that the .htaccess is uploaded in ASCII mode if your are using an FTP client such as filezilla or wsftp.

Example #13:
The following example redirects all http:// requests to https:// assuming a dedicated SSL certificate has been installed and activated:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} foldername
RewriteRule ^(.*)$ https://www.domain.com/foldername/$1 [R,L]

Example #14:
The following example allows visitors to browse to .html pages and parse them as PHP pages (.html will be retained in the URL):

RewriteEngine On
Rewritebase /
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*).html $1.php [QSA,L]

Example #15:

The following example will allow all of files in .php extension to be accessed using .html or .htm extension:

RewriteEngine On
RewriteRule (.*).htm$ $1.php [NC,L]


TROUBLESHOOTING:
We recommend that you make small changes to .htaccess saving frequently, and testing your site. That way, you'll know when you've made a mistake, and will be able to quickly roll the change back. If after you configure an .htaccess file your website displays a 500 Internal Server Error, please review your newly created .htaccess file to ensure that you have followed the above instructions properly.

For further instructions on how to configure .htaccess with the above supported commands, we recommend browsing to www.apache.org or httpd.apache.org/docs/misc/rewriteguide.html

FZ28 Photo: F1 2009 Malaysia KLCC roadshow - Crystal Race Car

This is the crystal race car for F1 2009 Malaysia Sepang in KLCC.
Please click on the photo to enlarge for better viewing presure.
这是 F1 2009 马来西亚 雪邦赛事 在 KLCC 的展览。
透明水晶赛车。

大上海天-最著名的特色甜品 榴莲pancake

这就是 吉隆坡 Avenue.K 最著名的特色甜品 榴莲pancake。
喜欢吃榴莲的朋友,来到了吉隆坡大上海天餐馆,一定要记得点上这 著名的特色甜品 榴莲pancake哦!

Saturday, April 4, 2009

Canon 5d Mark II USB 隨身硬碟

最近在网上看到一则报道,有关 Canon 推出了 Canon 5d Mark II USB 隨身硬碟,看了照片候,觉得蛮可爱和特别。由于 Canon 5d Mark II 是许多摄影爱好者的梦想相机,价钱约马币14千元,买的起的人不多,对于一般的市民,只好买一个 Canon 5d Mark II USB 隨身硬碟来望梅止渴了 :)
据说价钱是约新币28元



Canon 450D 隨身硬碟

Wednesday, April 1, 2009

上海红烧肉 - 大上海天餐馆 Avenue K

肥的部分入口即溶,瘦的部分松软可口,太好吃了。

Tuesday, March 31, 2009

Part 2: Photo I toke with Panasonic Lumix Fz28 摄影作品

Please click to enlarge the photo for better viewing pleasure :)
请点击以下图片以作放大观赏。



Sunday, March 29, 2009

Some Photo I toke with Panasonic Lumix Fz28 摄影作品

Please click to enlarge the photo for better viewing pleasure :)
请点击以下图片以作放大观赏。




Thursday, March 26, 2009

Candiru 牙签鱼 - 比吃人鱼更恐怖

Candiru (英语和葡萄牙语)或candirú (西班牙文) ,也被称为canero或牙签鱼,是寄生在淡水鲶鱼属的一些家庭中的Trichomycteridae 。这种牙签鱼主要出没于亚马逊河流域一带, 有着半透明的身体,使它们几乎在水中隐形,最长能长到15cm。活在亚马逊河流域一带的人对这种鱼的提防远远的胜过于臭名远播的亚马逊吃人鱼。那么到底它们又有什么那么的令人对它畏惧呢?

其实牙签鱼是一种寄生鱼,平时多藏于水的石头底下,当有体型较大的鱼类经过时,牙签鱼就会以高速度游到大鱼的鳃里,用它锐利的牙齿鱼咬住鱼鳃,从而吸食大鱼的血液。
也就是因为这种生态,每当有人在牙签鱼出没的地方戏水或小便时,牙签鱼就会跟着尿液的流向,逆游而上,然后鑚进人类的尿道。这下问题可严重了,因为人类的尿道狭窄,不像鱼鳃那样,当牙齿鱼进入了尿道后,他的鱼鳍就像是倒钩一样把他牢牢的锁在尿道内,只能进不能出。这时后,唯一的解决方法是动开刀手术了。
图片:尿道中取出来的牙齿鱼

在亚马逊河一带,除了不可在水中小便,连在岸边往河小便也是禁止的,因为曾经发生过好几个个案,小体积的牙签鱼境然能够高速度的在尿液中逆游鑽进排尿者的尿道。 女生小水时更加的要加倍小心防范,由于女身体结构的关系,很容易就成为牙签鱼的攻击对象。