RSS feed [root] /




login:

password:

title search:




 


Sun Mar 16 19:10:24 HKT 2014



(google search) (amazon search)
second
download zip of files only

Thu Apr 24 14:12:59 HKT 2014 From /weblog/health

pressure


Relaxing tips - http://thehousenews.com[..]%9B%E5%A3%93%E5%B0%8F%E8%B2%BC%E5%A3%AB/


積極思考能夠緩解壓力,這一點毫不令人意外。不過明尼蘇達大學卡爾森管理學院工作及組織學教授、該報告的作者之一格隆布(Theresa Glomb)說,事實證明,積極正面的思考可能比用人單位目前采取的很多抗擊工作壓力的方法都更實用,這些方法包括提供靈活的工作安排或創建新的組織結構圖,而這實際上并沒有改變辦公室的日常生活。

寫下一天中發生的好事本身就很有價值,但格隆布說,真正的影響來自寫下為何這些事會讓你感覺良好。這樣做會凸顯出一個人在工作生活中獲得的資源和支持,比如技能、幽默感、讓你感到鼓舞的家人、或是一個富有同情心的老板。 - http://cn.wsj.com/big5/20130909/eoe073851.asp?source=rss

5 Things We Need For Sustainable Performance At Work - http://www.targetprocess.com[..]for-sustainable-performance-at-work.html

(google search) (amazon search)


Thu Apr 24 14:11:37 HKT 2014 From /weblog/science

research


Richard Hamming (inventor of, among other things, hamming codes) - http://infoproc.blogspot.com/2011/07/what-is-difference.html http://www.cs.virginia.edu/~robins/YouAndYourResearch.html

Why measurement is important - http://cn.wsj.com/big5/20130202/opn095537.asp?source=rss

石墨烯引發科學淘金熱 - http://cn.wsj.com/big5/20130926/inn072916.asp?source=rss

人工培育肌肉組織獲重大進展 - http://cn.wsj.com/big5/20140424/lif120606.asp?source=rss

(google search) (amazon search)


Thu Apr 24 14:05:43 HKT 2014 From /weblog/science

Energy


Now the richest man of China is the scientist who research on solar cell
http://hk.news.yahoo.com/060112/12/1kcl1.html

Biodiesel -
http://www.google.com/search?q=Biodiesel
http://www.google.com/search?q=glycerol+methanol+caustic+soda

菠菜發電 - http://www.google.com[..]h?q=%E8%8F%A0%E8%8F%9C%E7%99%BC%E9%9B%BB

Nuclear battery - http://www.techbabu.com/2009/10/nuclear-batteries-now-a-reailty/

如何開采頁岩油 - http://cn.wsj.com/big5/20131016/inn071427.asp?source=rss

關于可再生能源的六個謬誤 - http://cn.wsj.com/big5/20131010/inn073331.asp?source=rss

Solar plant - http://cn.wsj.com/big5/20131022/inn071828.asp?source=rss http://www.solarimpulse.com/

香港工廠如何將地溝油變廢為寶 - http://cn.wsj.com/big5/20131004/ren162826.asp?source=rss

關于輻射的真相 - http://cn.wsj.com/big5/20140424/opn104031.asp?source=rss

(google search) (amazon search)


Thu Apr 24 13:54:24 HKT 2014 From /weblog/misc

regex


Short tips of regex - http://immike.net[..]know-to-become-a-regular-expression-pro/

Let regex more readable - http://martinfowler.com/bliki/ComposedRegex.html

Useful Regular regression

Match username - /^[a-zA-Z0-9_]{3,16}$/
Matching an XHTML/XML tag - {]*>(.*?)}
Matching an XHTML/XML tag with a certain attribute value (e.g. class or tag) - {]*attribute\\s*=\\s*(["'])value\\\\1[^>]*>(.*?)}
Matching a URL - (a very long one... refer to article...)

http://immike.net[..]ssions-every-web-programmer-should-know/

The danger of bad regex - http://andreas.haufler.info[..]o-kill-java-with-regular-expression.html http://www.regular-expressions.info/catastrophic.html http://vladmihalcea.com/2014/02/24/the-regex-that-broke-a-server/

You have a string “BEFOREAFTER”. If this string has a ‘x’ in it, you want to capture everything before the ‘x’, else you want to capture the whole string. So,
”BEFOREAFTER” gives “BEFOREAFTER”
”BEFORExAFTER” gives “BEFORE”
http://octodecillion.com[..]apture-with-optional-delimeter/#solution

(google search) (amazon search)


Tue Apr 22 21:28:19 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1239



(google search) (amazon search)


Tue Apr 22 21:28:18 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1237



(google search) (amazon search)


Tue Apr 22 21:28:16 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1235



(google search) (amazon search)


Tue Apr 22 21:28:14 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1223



(google search) (amazon search)


Tue Apr 22 21:28:13 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1222



(google search) (amazon search)


Tue Apr 22 21:28:11 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1221



(google search) (amazon search)


Tue Apr 22 21:28:10 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1219



(google search) (amazon search)


Tue Apr 22 21:28:08 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1214



(google search) (amazon search)


Tue Apr 22 21:28:06 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1208



(google search) (amazon search)


Tue Apr 22 21:28:05 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1207



(google search) (amazon search)


Tue Apr 22 21:28:04 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1206



(google search) (amazon search)


Tue Apr 22 21:28:02 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1205



(google search) (amazon search)


Tue Apr 22 21:28:01 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1203



(google search) (amazon search)


Tue Apr 22 21:27:59 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1202



(google search) (amazon search)


Tue Apr 22 21:27:57 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1201



(google search) (amazon search)


Tue Apr 22 21:27:56 HKT 2014 From /gallery/Day+Trip/Tai+O

DSC_1200



(google search) (amazon search)


Tue Apr 22 21:27:55 HKT 2014 From /gallery/City+Snapshot/Kowloon+West

DSC_1198



(google search) (amazon search)


Tue Apr 22 21:27:53 HKT 2014 From /gallery/City+Snapshot/Kowloon+West

DSC_1197



(google search) (amazon search)


Tue Apr 22 21:27:52 HKT 2014 From /gallery/City+Snapshot/Kowloon+West

DSC_1193



(google search) (amazon search)


Tue Apr 22 13:32:11 HKT 2014 From /weblog/quote

inspiration


複雜的事情要簡單做。 簡單的事情要認真做。 認真的事情要重複做。 重複的事情要創造性地做。

Franklin D. Roosevelt - "Men are not prisoners of fate, but only prisoners of their own minds."

Given all that fear and panic, it's no surprise that otherwise rational people sometimes (often!) ignore rational arguments.

"Women who seek to be equal with men lack ambition."

"It's not that I'm so smart, it's just that I stay with problems longer." --Albert Einstein

Friedrich Nietzsche - "It is not a lack of love, but a lack of friendship that makes unhappy marriages."

Denzel Washington - "You pray for rain, you gotta deal with the mud too. That's a part of it."

James Thurber - "Women are wiser than men because they know less and understand more."

Henry David Thoreau - "The price of anything is the amount of life you exchange for it."

Francis Bacon - "A wise man will make more opportunities than he finds."

George Burns - "You can't help getting older, but you don't have to get old."

"You're not your job. You're not how much money you have in the bank. You're not the car you drive." - http://johnhaller.com/jh/

"In theory there is no difference between theory and practice - in practice there is." - http://tomicic.de/BlogQuotationOfTheWeek.aspx

“At twenty we worry about what others think of us; at forty we don't care about what others think of us; at sixty we discover they haven't been thinking about us at all.”

John Ruskin - "All books are divisible into two classes, the books of the hour, and the books of all time."

Winston Churchill - "this paper by its very length defends itself against the chance of being read".

Niccolo Machiavelli - It is much more secure to be feared than to be loved.

"True love is like ghosts, which everyone talks about and few have seen."

"The only place success comes before work is in the dictionary." - Vince Lombardi

"The past is a ghost, the future a dream, and all we ever have is now." - Bill Cosby

Victor Hugo - "There is nothing like a dream to create the future."

Robert Benchley - "A dog teaches a boy fidelity, perseverance, and to turn around three
times before lying down."

Plato - "There are three classes of men; lovers of wisdom, lovers of honor, and lovers of gain."

Christopher Marlowe - "Money can't buy love, but it improves your bargaining position."

Satchel Paige - "Don't pray when it rains if you don't pray when the sun shines."

Robert Half - "When one teaches, two learn."

Abigail Van Buren - "The less you talk, the more you're listened to."

Eric Butterworth - "Don't go through life, grow through life."

Oswald Chambers - "The whole point of getting things done is knowing what to leave undone."

If you keep talking… You miss the valuable things that other people have to say. Listen, reflect, and then comment. Not before. - http://www.thekua.com/atwork/2007/10/23/if-you-keep-talking/

Paul Tournier - "Sooner or later, those who win are those who think they can."

Managers manage resources... , People are not resources. http://digerati-illuminatus.blogspot.com[..]m/2006/12/managers-manage-resources.html

"Education is the ability to listen to almost anything without losing your temper or your self-confidence." --Robert Frost

Everyone at these conferences focus on tools like value stream mapping and 5S. But the tools are only 25% of the story. Lean is about people, not about waste. Focus on the employees -- all other benefits are just by-products. - http://jchyip.blogspot.com[..]ean-is-about-people-not-about-waste.html

"Shoot for the moon. Even if you miss, you'll land among the stars." - Les Brown

“Your attitude has been affecting other departments”, he said. “And I want to thank you for it.” - http://blog.objectmentor.com[..]-attitude-is-affecting-other-departments

Defeat is not the worst of failures. Not to have tried is the true failure. - George Edward Woodberry

"Leadership cannot really be taught. It can only be learned." - Harold S. Geneen

"Doubt isn't the opposite of faith; it is an element of faith." - Paul Tillich

所以我认为同学们不要妄自菲薄,见到自己不懂的,或似懂非懂的,就认为是高深学问,畏而敬之。更不要骗自己,不懂却认为是懂。同学要问︰皇帝何来新衣了?不久前一位同学问及他高举的诺斯的某术语何解。我说不懂。我怎会不懂诺斯呢?同事十三年,好几个学期他旁听我的课。诺斯对问题重要性的感受好,这是天赋,是他的本钱,创造术语只不过是他的成名玩意,而这种颇为流行的玩意他的本领只是一般。是的,经济学行内有走不同路线的人,本领各各不同,有些成名,有些被认为是笨蛋。同学不要管这些。要管的是分析,因为这是脑子的操练,对整生的任何一方面都有好处。论分析,其中一个要点是任何术语,甚至任何一个字,其意思或理解都不要放过。坚持要知道,要明白。这样,三几年后同学会体会到学问有真假之分。是的,做学问要执着。 - http://blog.sina.com.cn/s/blog_47841af70100cw6c.html

Tough times never last, but tough people do. - Robert H. Schuller

Emile Zola - "The artist is nothing without the gift, but the gift is nothing without work."

Vivien Leigh - "Life is too short to work so hard."

Plautus - "The day, water, sun, moon, night - I do not have to purchase these things with money."

Benjamin Franklin - "Tell me and I forget. Teach me and I remember. Involve me and I learn."

Pierre Teilhard de Chardin - "The world is round so that friendship may encircle it."

Paulo Coelho - "Be brave. Take risks. Nothing can substitute experience."

‘To achieve great things, two things are needed, a plan and not quite enough time.’ — Leonard Bernstein

Edward G. Bulwer-Lytton - "Talent does what it can; genius does what it must."

Vash Young - "Any experience can be transformed into something of value."

Dwight L. Moody - "If I take care of my character, my reputation will take care of me."

Eric Hoffer "It is easier to love humanity as a whole than to love one's neighbor."

Jose Ortega y Gasset "I am I plus my circumstances."

Jean-Jacques Rousseau "The world of reality has its limits; the world of imagination is boundless."

“An expert is [someone] who has made all the mistakes which can be made, in a narrow field” – Niels Bohr

Robert Lynd - "Knowledge is power only if man knows what facts not to bother with."

Auguste Rodin "I invent nothing, I rediscover."

Ethel Waters "We are all gifted. That is our inheritance."

May Sarton - "Most people have to talk so they won't hear."

Francis Beaumont - "The true way to gain much, is never to desire to gain too much."

Jean Ingelow "I have lived to thank God that all my prayers have not been answered."

Right. Therefore the team must improve from the inside, not from the outside. - http://tech.groups.yahoo.com[..]/group/extremeprogramming/message/157111

Will Durant - "Education is a progressive discovery of our own ignorance."

Elbert Hubbard - "Do not take life too seriously. You will never get out of it alive."

Thomas Sowell - "It takes considerable knowledge just to realize the extent of your own ignorance."

Joseph Conrad - "Facing it, always facing it, that's the way to get through. Face it."

James A. Garfield - "The truth will set you free, but first it will make you miserable."

John D. Rockefeller - "Don't be afraid to give up the good to go for the great."

Pablo Neruda - "Love is so short, forgetting is so long."

Edwin Land - "It's not that we need new ideas, but we need to stop having old ideas."

Dwight L. Moody - "If I take care of my character, my reputation will take care of me."

Aristotle - "Hope is the dream of a waking man."

Eleanor Roosevelt - "No one can make you feel inferior without your consent."

Jean-Jacques Rousseau - "What wisdom can you find that is greater than kindness?"

Benjamin Franklin - "Well done is better than well said."

Abraham Lincoln - "Always bear in mind that your own resolution to succeed is more important than any other."

Voltaire - "Judge a man by his questions rather than his answers."

Rudyard Kipling - "All the people like us are we, and everyone else is They."

H. L. Mencken - "Democracy is the art and science of running the circus from the monkey cage."

Carl Sandburg - "Nothing happens unless first we dream."

M. C. Escher - "We adore chaos because we love to produce order."

Jim Rohn - "Either you run the day or the day runs you."

Franklin D. Roosevelt - "There are many ways of going forward, but only one way of standing still."

Will Durant - "Education is a progressive discovery of our own ignorance."

Agatha Christie - "Good advice is always certain to be ignored, but that's no reason not to give it."

Kin Hubbard - "Some folks can look so busy doing nothing that they seem indispensable."

Saul Bellow - "When we ask for advice, we are usually looking for an accomplice."

Dick Cavett - "It's a rare person who wants to hear what he doesn't want to hear."

James Dean - "Dream as if you'll live forever. Live as if you'll die today."

Galileo Galilei - "We cannot teach people anything; we can only help them discover it within themselves."

Pablo Picasso - "Action is the foundational key to all success."

Walt Whitman - "Keep your face always toward the sunshine - and shadows will fall behind you."

Edith Wharton - "There are two ways of spreading light: to be the candle or the mirror that reflects it."

Aldo Leopold - "Conservation is a state of harmony between men and land."

Paulo Coelho - "Be brave. Take risks. Nothing can substitute experience."

Hal Borland - "Knowing trees, I understand the meaning of patience. Knowing grass, I can appreciate persistence."

Don Marquis - "Ideas pull the trigger, but instinct loads the gun."

Johann Wolfgang von Goethe - "In art the best is good enough."

Alfred Lord Tennyson - "Knowledge comes, but wisdom lingers."

Alfred Austin - "Public opinion is no more than this: what people think that other people think."

Norman Cousins - "Life is an adventure in forgiveness."

Swami Sivananda - "Desire nothing, give up all desires and be happy."

Richard M. Nixon - "The finest steel has to go through the hottest fire."

Ernest Hemingway - "I like to listen. I have learned a great deal from listening carefully. Most people never listen."

http://www.thepowerofintroverts.com[..]rtance-of-quiet-to-the-creative-process/

Charles Lindbergh - "Living in dreams of yesterday, we find ourselves still dreaming of impossible future conquests."

Kin Hubbard - "A bee is never as busy as it seems; it's just that it can't buzz any slower."

C. S. Lewis - "You are never too old to set another goal or to dream a new dream."

Theodore Dreiser - "In order to have wisdom we must have ignorance."

Joseph Joubert - "Imagination is the eye of the soul."

John Henry Newman - "Growth is the only evidence of life."

Blaise Pascal - "Kind words do not cost much. Yet they accomplish much."

May Sarton - "Most people have to talk so they won't hear."

Josiah Gilbert Holland - "Joys divided are increased."

Robert W. Service - "A promise made is a debt unpaid."

William Gaddis - "Power doesn't corrupt people, people corrupt power."

Michael Korda - "Art teaches nothing, except the significance of life."

Joseph Wood Krutch - "If we do not permit the earth to produce beauty and joy, it will in the end not produce food, either."

Sidney Sheldon - "Try to leave the Earth a better place than when you arrived."

A. P. J. Abdul Kalam - "You have to dream before your dreams can come true."

Edwin Hubbel Chapin - "Every action of your life touches on some chord that will vibrate in eternity."


(google search) (amazon search)


Tue Apr 22 13:08:26 HKT 2014 From /weblog/java/fundamental

type


Nice instanceof replacement - http://nurkiewicz.blogspot.com.au[..]anceof-operator-and-visitor-pattern.html https://github.com/nurkiewicz/typeof

http://interviewquestionjava.blogspot.hk[..]01/java-data-types-conversion-chart.html

How to use reflection to get the size of Primitive - http://marxsoftware.blogspot.com.au[..]rogrammatic-access-java-types-sizes.html

(google search) (amazon search)