Tuesday, July 29, 2008

40 Golden Tips for Better Life - 2008

  1. Take a 10-30 minute walk every day. And while you walk, Smile. It is the ultimate anti-depressant.
  2. Sit in silence for at least 10 minutes each day. Buy a lock if you have to.
  3. Buy a DVR and tape your late night shows and get more sleep.
  4. When you wake up in the morning complete the following statement, 'My purpose is to __________ today.'
  5. Live with the 3 E's -- Energy, Enthusiasm, and Empathy.
  6. Play more games and read more books than you did in 2007.
  7. Make time to practice Meditation and prayer. They provide us with daily fuel for our busy lives.
  8. Spend time with people over the age of 70 and under the age of 6. - Appreciate their genuine nature, strength, and innocence. For real!
  9. Dream more while you are awake.
  10. Eat more foods that grow on trees and plants and eat less food that is manufactured in plants.
  11. Drink green tea and plenty of water. Eat blueberries, wild Alaskan Salmon, broccoli, almonds & walnuts.
  12. Try to make at least three people smile each day.
  13. Clear clutter from your house, your car, your desk and let new and flowing energy into your life.
  14. Don't waste your precious energy on gossip, issues of the past, negative thoughts or things you cannot control. Instead invest your energy in the positive present moment.
  15. Realize that life is a school and you are here to learn. Problems are simply part of the curriculum that appear and fade away like algebra class but the lessons you learn will last a lifetime.
  16. Eat breakfast like a king, lunch like a prince and dinner like a college kid.
  17. Smile and laugh more. It will keep the energy vampires away.
  18. Life isn't fair, but it's still good.
  19. Life is too short to waste time hating anyone.
  20. Don't take yourself so seriously. No one else does.
  21. You don't have to win every argument. Agree to disagree.
  22. Make peace with your past so it won't spoil the present.
  23. Don't compare your life to others'. You have no idea what their journey is all about.
  24. No one is in charge of your happiness except you.
  25. Frame every so-called disaster with these words: 'In five years, will this matter?'
  26. Forgive everyone for everything.
  27. What other people think of you is none of your business.
  28. Nature heals everything.
  29. However good or bad a situation is it will change.
  30. Your job won't take care of you when you are sick. Your friends will. Stay in touch.
  31. Get rid of anything that isn't useful, beautiful or joyful.
  32. Envy is a waste of time. You already have all you need.
  33. The best is yet to come.
  34. No matter how you feel, get up, dress up and show up.
  35. Do the right thing!
  36. Call your family often. (Or email them to death!!!) Hey I'm thinking of ya!
  37. Each night before you go to bed complete the following statements: I am thankful for __________. Today I accomplished _________.
  38. Remember that you are too blessed to be stressed.
  39. Enjoy the ride. Remember this is not Disney World and you certainly don't want a fast pass. You only have one ride through life so make the most of it and enjoy the ride.
  40. Please Forward this to everyone you care about.
May your troubles be less,
May your blessings be more,
May nothing but Happiness come through your door!

Tuesday, July 22, 2008

小新

媽 :「小新,你這學期撿到10次錢嗎?」
小新:「沒有,只撿到一次」
媽 :「那怎麼會有十張拾金不昧的榮譽卡?」
小新:「我把撿到的一百元換成10個銅板」


媽 :「我以為你在寫功課,竟然是在玩電動」
小新:「這又不能怪我」
媽 :「難道要怪我?」
小新:「沒錯,誰叫你走路聲音那麼輕」


爸 :「你看廿四孝的故事多感人,你做得到嗎?」
小新:「至少我能做到一樣,賣身葬父」


媽 :「小新,要你補英語是希望你不要輸在起跑點上」
小新:「我早就輸在起跑點上了」
媽 :「你輸了什麼?」
小新:「遺傳」


老師:「 小新,你的毛病就是用詞不當,現在考考你用一句
成語來形容老師很開心」
小新:「含笑九泉」


老師:「小新,請用『左右為難』來造句」
小新:「我考試時左右為難」
老師:「是題目不會答,讓你左右為難?」
小新:「不,是左右同學答案不一樣,讓我左右為難」


老師:「小新,你怎麼偷同學的橡皮擦?你做這種事,難道不
為父母想一想嗎?」
小新:「就是想過才做的。這樣就不用花父母的錢了」


小新:「媽,公園有個可憐的歐巴桑,我想幫助她」
媽 :「小新真有愛心,就給她10塊錢吧!」
媽 :「咦!你怎麼買了香腸?」
小新:「她就是賣香腸的嘛!」

Saturday, July 19, 2008

洋蔥酷樂部 - Onion Club

You will never want to miss this cool blog ever....



http://blog.roodo.com/onion_club

Tuesday, July 15, 2008

香蕉

原來熟透的香蕉 . 產生攻擊異常細胞的物質 TNF
您可能會發現不久的將來 ........ 香蕉會缺貨 !!

香蕉愈成熟即表皮上黑斑愈多,它的免疫活性也就愈高。日本人愛吃香蕉不是沒原因的, 大、小朋友們都喜歡吃香蕉 ~ 真方便,每日五蔬果,疾病遠離我喔 ........

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

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

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

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

Chuzzle on Yahoo! Games

From the makers of Bejeweled and Zuma comes Chuzzle, the next puzzle sensation to sweep the nation! Chuzzles are googly-eyed little balls of fur that giggle, squeak, and sneeze as you poke and push them across the board. Free them by forming groups of three, but watch out for dangerous puzzle locks! Explore four different game modes as you earn trophies, unlock secret games, and more! Once you start popping Chuzzles you might not be able to stop!






Download

Thursday, July 10, 2008

Ruby - Build My Own Dictionary

One day, I got an idea suddenly which is try to build out my own English dictionary. To make a dictionary, I need a source of dictionary for my database of words and the source must be in convenient form to be manipulated later. So, after I searched through the internet and I found one website is suitable to be the source of my database - http://www.synonym.com/.

That website provides a search engine for Synonyms, Antonyms, and Definitions. Besides that, user can browses through list of words which are categorized alphabetically.

After study how the website works, I manage to come out 3 steps to build my own dictionary by using Ruby.

Step #1: Generate a list of words

The website contains a browse webpage for the words which are categorized alphabetically. The alphabet starts from "AA" until "ZZ". The URLs for the browse web page shown at below:
http://www.synonym.com/synonyms/
http://www.synonym.com/antonym/
http://www.synonym.com/definition/

The URLs for alphabets are straight forward. Example, synonym words starting with AA are listed inside web page with URL:
http://www.synonym.com/synonyms/browse/AA
And the same rule also applied to the Antonym and Definition.

By looping through "AA" until "ZZ", finally I manage to list out all the words that available in that website. The total of words is 145291. Hmm...quite a big size of database. How long the Ruby can build up the database completely?


Step #2: Retrieve each word's definition, synonym and antonym to build a database

After generate the words list, I need to retrieve the information about each word, such as synonym, antonym, and definition. The way to retrieve those information are straight forward too. Example, word "account" and "account for" of definition are inside web page with URLs below respectively:
http://www.synonym.com/definition/account/
http://www.synonym.com/definition/account%20for/

I estimated need at least 160 hours (8 hours * 20 days) to finish the retrieving information process. But, if I split out the word list into number of small word lists, then the retrieving process will be finished more quickly. For example, 20 small word lists are estimated need 8 hours (or 1 days) only to finish.


Step #3: Post-Processing the database to suit my own needs.

After I have the "raw" database of all words, I need to perform some manipulations, filtering, transformations, and categorizing processes onto each word to have the style and format that I want to. In this step, Ruby done a great job!


Some interest information from http://www.synonym.com/

  • The longest word is tetrabromo-phenolsulfonephthalein (without space), or
    blood-oxygenation level dependent functional magnetic resonance imaging (with space).
  • Most words are start with alphabet 'S' (15700), followed by 'C' (14038) and 'P' (11319). And the least words are starts with 'X' (174), followed by 'Z' (390) and 'Y' (503).
  • Nouns (75.61%), adjectives (13.90%), verbs (7.58%) and adverbs (2.91%).

Tuesday, July 8, 2008

GOD 'Why me?'

Arthur Ashe, the legendary Wimbledon player was dying of AIDS which he got due to infected blood he received during a heart surgery in 1983. From world over, he received letters from his fans, one of which conveyed: 'Why does GOD have to select you for such a bad disease'? To this Arthur Ashe replied: 'The world over -- 50 million children start playing tennis, 5 million learn to play tennis, 500,000 learn professional tennis, 50,000 come to the circuit, 5000 reach the grand slam, 50 reach Wimbledon, 4 to semi final, 2 to the finals,

when I was holding a cup I never asked GOD 'Why me?'.

And today in pain I should not be asking GOD 'Why me?'

Happiness keeps you Sweet,
Trials keep you Strong,
Sorrow keeps you Human,
Failure keeps you humble and
Success keeps you glowing, but only
Faith & Attitude Keeps you going...

Monday, July 7, 2008

Saturday, July 5, 2008

先有鸡还是先有蛋难题 - 破解!

终于破解了“先有鸡还是先有蛋”这个世界难题!!!
  首先申明一句:请大家本着严肃活泼的态度来共同交流和讨论这个问题,在解决鸡和蛋的问题之前,我们先来看另一个问题,题目如下:
  
  有3个人出去外面玩,住旅店,开了一间普通房30元.每人要付10块钱.哪知道老板当天搞促销,普通房25元,于是让服务员退5块钱给这3个人,服务员贪心,偷偷的扣下了2块钱,那么,3个人共付出的就是9*3=27块钱..27+2=29.那另外的一块钱呢?
  
  以上是一个典型的误导型题目,为什么说它误导,其实如果你在现实中去开普通房标价30元,打折后你花了27元,其中包括服务员的2元小费,整个费用付完以后不会出现任何问题,你只管你总共付了27元就行了,至于那27元服务员和店老板怎么分不关你事,更不关那标价30元任何事!所以说上述题目中最后的那一问“那另外的一块钱呢”纯粹是一种误导,通俗点说就是忽悠,它的本质跟赵本山忽悠范伟卖拐是一样的:让别人顺着你的思路一步步往里套,最后导致逻辑错误!
  
  好了,言归正传,现在来说“先有鸡还是先有蛋”的问题,其实这个问题的本质和上面问题的本质是一样的,也是误导加忽悠!所以一句话:根本不存在这个问题!当然这是最后的结论,至于如何得出这个结论,我有必要阐述清楚,因为这个问题虽然也是误导的本质,但它隐藏的更深,更高明,一般人很容易被忽悠!整个问题只有一句话:先有鸡还是先有蛋? 这句话本身就是一个误导,先入为主的给你设一个套,类似上面第一个问题最后的那句“那另外的一块钱呢”。
  
  再问大家一个问题:先有你妈还是先有你? (拒绝傻子回答这个问题)
  
  A:先有妈
  B:先有我
  C:我妈和我同时有
  D:不知道
  E:先有爸
  
  如果你的回答是B,C,D或者E,请马上离开这个主题,我拒绝你往下看:一是为了保证能和思维正常的人交谈;二是为了不浪费你的宝贵时间;另外建议你去非正常人类研究中心做做很有前途的研究工作!
  
  如果你的回答是A,欢迎继续往下看:
  相信正常人都能非常容易且肯定的回答我提出的这个问题,那就是你妈比你先来到这个世上;而“先有鸡还是先有蛋”这个问题本质就是“先有你妈还是先有你”这个问题,只不过它被披上了很多迷惑的伪装,下面我开始给这句话逐步剥皮,褪去它的伪装,露出它本来的面目:
  
  先有鸡还是先有蛋======褪皮======>先有你妈还是先有你
  
  鸡1--->蛋1--->鸡2--->蛋2--->鸡3--->蛋3--->......
  
  你妈--->你--->你孩子--->你孩孩子--->你孩孩孩子--->......
  
  在没有涉及到本原探讨的时候至少我们现在清楚现在的蛋都是由鸡孵化出来的,所以上面的鸡1产生蛋1,蛋1孵出鸡2并不违规。鸡采用的生育方式是卵生,以排出受精卵加孵化的方式来产生下一代;而类比人类,生育方式采用的是胎生,即下一代先在母体中形成完整的生命个体然后再排出体外产生下一代。下面我们来分析两种生殖方式基本保持一样。再把鸡和人做类比:
  
   鸡 <----->人
  鸡蛋<----->人蛋
  小鸡<----->小孩
  
  通过上面的类比可以知道两者的生殖方式的本质--->受精卵产生下一代。 既然本质不变,所以对中间催化条件的改变是可行合理的。到这一步,我们就可以把原问题进行转化:
  
  鸡通过鸡蛋产生小鸡-->鸡生鸡蛋,鸡蛋生鸡,鸡生鸡蛋...-->到底先有鸡还是先有鸡蛋?
  人通过人蛋产生小孩-->人生人蛋,人蛋生人,人生人蛋...-->到底先有人还是先有人蛋?
  
  上面两个问题本质完全一样,好,到此为止,我们已经成功的把问题进行了转化:到底先有人还是先有人蛋? 下面我们用数学方法来解答这个问题:
  
   已知: 人蛋=受精卵,你妈=人,你妈的受精卵=你,问到底先有人还是先有人蛋?
  
   解:因为你妈=人,人蛋=受精卵,所以把上面问题中的“人蛋”用“受精卵”代入,“人”用“你妈”代入,问题转化为:到底先有你妈还是先有你妈的受精卵?,又根据已知条件:你妈的受精卵=你,所以把“你妈的受精卵”用“你”代入,问题转化为:到底先有你妈还是先有你?
   得出:到底先有人还是先有人蛋?可以成功的转化为:到底先有你妈还是先有你?
   又因为“到底先有人还是先有人蛋”和“到底先有鸡还是先有鸡蛋”是两个本质一样的问题,因此两个问题都可以转化为问题“到底先有你妈还是先有你”,最后我们得出:
  
   如果需要解答“到底先有鸡还是先有鸡蛋”,我们只需要解答“到底先有你妈还是先有你”就可以了。而对于后面这个问题根据常识和前面的回答可以得出正常人都会回答“先有妈”,即选A,选BCDE的人都已经去了非正常人类研究中心,并且只有选A的人才会看到这。

Thursday, July 3, 2008

数学的魔力

“62-63=1” 是个错误的等式,能不能移动一个数字使得等式成立。

这是复旦大学计算机博士入学考试的题目,当时一个人也没有做出来。
出题的导师说这是个很有魔力? 的题目,男的做出来了就能找到他心爱的女孩,女的做出来了就能找到她的白马王子。一般来说,结了婚的人是做不出来的。

注意:只能移动一个数字,而且必须是数字

Tuesday, July 1, 2008

The World Without Engineers

Ground Transportation
Music
Air Transportation
Civil Engineering
Communications
Computers
Entertainment