RSS feed [root] /



title search:


Sun Mar 16 19:10:24 HKT 2014

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

Thu Apr 17 15:49:36 HKT 2014 From /weblog/quote

fun quote

What is the difference of software architect from software designer? About 30k

The law of conservation of energy - If there is no work, sleep.

Money is not everything. There's Mastercard & Visa.

One should love animals. They are so tasty.

Save water. Shower with your girlfriend.

Love the neighbor. But don?t get caught.

Behind every successful man, there is a man. And behind every unsuccessful man, there are two.

Every man should marry. After all, happiness is not the only thing in life.

The wise never marry, And when they marry they become otherwise.

Success is a relative term. It brings so many relatives.

Never put off the work till tomorrow what you can put off today.

Love is photogenic. It needs darkness to develop.

Children in backseats cause accidents. Accidents in backseats cause children.

Your future depends on your dreams.? So go to sleep.

There should be a better way to start a day than waking up every morning.

Hard work never killed anybody.? But why take the risk?

Work fascinates me.? I can look at it for hours!

God made relatives; Thank God we can choose our friends.

When two?s company, three?s the result!

A dress is like a barbed fence. It protects the premises without restricting the view.

The more you learn, the more you know, The more you know, the more you forget. The more you forget, the less you know. So why bother to learn.

Edward Abbey "Our culture runs on coffee and gasoline, the first often tasting like the second."

Ashley Montagu "The idea is to die young as late as possible."

Richard Roeper - "Even though we're a week and a half away from Thanksgiving, it's beginning to look a lot like Christmas."

Wendy Liebman - "I've been on so many blind dates, I should get a free dog."

Kin Hubbard - "A good listener is usually thinking about something else."

Joseph Conrad - "Gossip is what no one claims to like, but everybody enjoys."

J. P. Morgan - "A man always has two reasons for doing anything: a good reason and the real reason."

William Feather - "The reward of energy, enterprise and thrift is taxes."

Billy Wilder - "He has Van Gogh's ear for music."

Charles M. Schulz - "I love mankind; it's people I can't stand."

Zsa Zsa Gabor - "I'm a great housekeeper. I get divorced. I keep the house."

Jules Renard - "Laziness is nothing more than the habit of resting before you get tired."

Dan Quisenberry - "The future is much like the present, only longer."

Victor Borge - "Santa Claus has the right idea - visit people only once a year."

James Whistler - "If other people are going to talk, conversation becomes impossible."

Mark Twain - "Climate is what we expect, weather is what we get."

Natalie Wood - "The only time a woman really succeeds in changing a man is when he is a baby."

Bill Vaughan - "The tax collector must love poor people, he's creating so many of them."

J. P. Morgan - "A man always has two reasons for doing anything: a good reason and the real reason."

Howard Nemerov - "The secrets of success are a good wife and a steady job. My wife told me."

(google search) (amazon search)

Wed Apr 16 18:26:28 HKT 2014 From /weblog/finance


sources for equity quantitative research -[..]sources-for-equity-quantitative-research[..]com/2011/03/06/people-of-quant-research/[..]ive-strategy-development-process/150#150

Homepage of a guy using Haskell for Quant -

(google search) (amazon search)

Wed Apr 16 16:27:30 HKT 2014 From /weblog/trip/travelling


A nice place to visit -[..]/04/mont-saint-michel-castle-france.html

巴黎美味牛角面包何處尋? -

(google search) (amazon search)

Wed Apr 16 16:21:32 HKT 2014 From /weblog/health/food


(google search) (amazon search)

Wed Apr 16 08:34:46 HKT 2014 From /weblog/user+interface


Forum should not present like a tree -[..]2/12/web-discussions-flat-by-design.html

How Google change their UI -[..]rry-page-engineered-beautiful-revolution

挑剔的老闆與 Square Cash 背後的設計故事[..]designed-a-product-with-no-design-at-all

In other words, a feeling of affinity with others. -[..]/blog/2013/11/ux-the-art-of-empathy.html

(google search) (amazon search)

Tue Apr 15 17:50:43 HKT 2014 From /weblog/software_engineering/testing

best practices

Isolation -[..]/2012/04/is-your-unit-test-isolated.html

Tips of keeping unit tests running fast -

Testing Patterns -

Continuously to break thing so that we know our system is solid -[..]11/04/working-with-the-chaos-monkey.html

First rule -[..]08/10/01/nothing_is_too_trivial_to_test/

Test first/last is not important? Unit test either? What do you think?

* The name of the test should describe the requirement of the code
* There should be at least one test for each requirement of the code. Each possible path through of the code is a different requirement#
* Test the goal of the code, not the implementation[..]AppQuality&asrc=EM_NLN_761453&uid=703565[..]og/2007/08/how-not-to-run-beta-test.html

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. -[..]es/2007/08/02/not-a-task-but-an-approach

Corner cases -[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding -[..]e-code-is-about-managing-complexity.aspx

Design for unit test -[..]es/content/DesigntoUnitTest/article.html

Push and Pull approach -

When not to test -

Test the story, rather than the implementation -[..]ving-to-scenario-based-unit-testing.html

Test the configuration -[..]TSS10ctqa&asrc=EM_NLN_8746433&uid=703565

Feel the deep synergy of design and test constraint -[..]athers_blog/2007/09/the-deep-synerg.html

Another set of principles for automated testing -[..]of-principles-for-automated-testing.html

Priority for tester -[..]

A lot of links -[..]-links-biased-toward-exploratory-testing[..]nit-tests-5-principles-for-unit-testing/

Some information and suggestion about setting up a local integrated testing environment -[..]

Virtual Panel: Code-to-Test Ratios, TDD and BDD -

A test is complete when its body contains all of the information you need to understand it, and concise when it doesn't contain any other distracting information. -[..]ting-on-toilet-what-makes-good-test.html

Discussion about naming the tests -[..]14/03/17/getting-junit-test-names-right/[..]esting-on-toilet-test-behaviors-not.html <- Test behaviour, not method. This will make your tests more resilient since adding new behaviors is unlikely to break the existing tests, and clearer since each test contains code to exercise only one behavior.

(google search) (amazon search)

Tue Apr 15 17:49:31 HKT 2014 From /weblog/business

starting business

Starting business at rentaroder, do you think this true o false ?[..]/2011/10/24/my-life-freelancer/#more-750

Speed of deliver rule -[..]up-suicide-%E2%80%93-rewriting-the-code/

My boss say that it brilliant, see if it good -

The other reference -

Joey recommendation -

And how to set price -[..]rd/Weblog/demand_curve_for_java_software

Successful case of home made game -

"You want to do your best, or you want to do the best of this world?" -

The cost and risk of starting business, may be as high as you thought - ; meanwhile, as an high paid employee may not that nice -

Fire startup staff??? -[..]tartup-lessons-i-learnt-at-protoinday-1/

How to parening software product and team?

Ideas are nice, but technical is still the key -[..]linator-and-not-death-by-popularity.html

Comment mistakes -

Haha, very true: 有一個重點我想說, 必須要有人願意付錢給你做你喜歡做的事情 -[..]dex.php?op=ViewArticle&articleId=2862620

Few examples of teen starting their own business -[..]ive-learned-from-founding-4-technology-2[..]ive-learned-from-founding-4-technology-b[..]y/feeding-a-startup-your-next-500-ideas/

Build something that do something you don't want to do -[..]2/paul-graham-how-to-get-startup-ideas-c

Confidence -[..]ence-is-the-pass-badge-for-entrepreneurs[..]efore-starting-their-very-first-business

Suggestion about starting business -[..]ting-meaningful-work/?fromcat=all#!sxLsH[..]e-learned-about-creating-meaningful-work[..]t-fab-ceo-learned-from-operating-company[..]014/01/21/success_entrepreneur_qualities

(google search) (amazon search)

Tue Apr 15 17:38:26 HKT 2014 From /weblog/learning


10 flagran grammer mistake -[..]m/5100-10881_11-6075621.html?tag=fdlead1

How to learn language in 30 days -[..][..]power-of-daily-positive-words-15115.html

Thousands character article -

Use "Nothing beats xxx", "mindful of" to replace "remember" and "dismiss the idea" -[..]%AB%E5%8D%81%E5%BE%8C%E5%AF%AB%E7%A5%9E/

Language make the difference -[..]shocked-by-chinese-multiplication-table/

讓英語會話突飛猛進的33種方法 -[..]k-better-english-without-taking-classes/[..]2%E7%9A%8433%E7%A8%AE%E6%96%B9%E6%B3%95/

(google search) (amazon search)

Tue Apr 15 15:58:48 HKT 2014 From /weblog/entertainment


專訪盧宛茵 -[..]%88%E8%A8%AA%E7%9B%A7%E5%A9%89%E8%8C%B5/

(google search) (amazon search)

Tue Apr 15 15:55:36 HKT 2014 From /weblog/clothes


男士須知:十個穿西裝秘訣 -[..]%BF%E8%A5%BF%E8%A3%9D%E7%A7%98%E8%A8%A3/

(google search) (amazon search)

Tue Apr 15 15:29:17 HKT 2014 From /weblog/health/food


醫書上說:白蘿蔔入肺,性甘平辛,歸肺脾經,下氣、消食、除疾潤肺、解毒生津,利尿通便。主治肺痿(肺的功能弱)、肺熱、便秘、吐血、氣脹、食滯、消化不 良、痰多、大小便不通暢。經常乾咳、或者痰濕但咳不出來,經常吃白蘿蔔會改善,脾胃虛寒的人要煮熟了才吃。白蘿蔔可以改善便秘。口腔潰瘍,用白蘿蔔榨汁漱 口。
用白蘿蔔和麥片煮湯可以去身上臉上的水腫!皮膚粗糙、有粉刺怎麼辦?用蘿蔔的葉子煮水,方法:把蘿蔔葉清洗乾淨,晾曬3至4天,將30克曬成的白蘿蔔葉放 入1升水中煮,燒開以後改成中火,再煮幾分鐘,過濾後就可以喝了,可以加一點蜜糖。如果找不到蘿蔔葉,只用白蘿蔔煮水喝,還可以改進消化,又養胃。白蘿蔔 含有木質素,能提高巨噬細胞的活力,吞噬癌細胞。白蘿蔔治急慢性咽炎,臨床發現,有些小孩經常隔幾個月就感冒、發燒,咽痛,其實是肺胃熱、毒壅在咽喉,西 醫說是慢性扁桃腺炎,經常服用這個湯可以清利咽喉把熱毒散開。我小時候因為這個問題經常扁桃腺發炎、感冒。

(google search) (amazon search)

Tue Apr 15 15:27:58 HKT 2014 From /weblog/health/food



(google search) (amazon search)

Tue Apr 15 15:19:53 HKT 2014 From /weblog/learning


焦慮能讓你表現更出眾 -

Importance of finding out your Signature Strengths -[..]ature-strengths-and-trading-success.html

(google search) (amazon search)

Tue Apr 15 11:16:31 HKT 2014 From /weblog/copyright


A nice table show the difference between difference type of opensource licence

A more detail look of GPL:

Summary of some key point of typical business licence -

Free book about it -

Another discussion about choosing open source licence using -[..]stimates-contributor-license-agreements/

(google search) (amazon search)

Tue Apr 15 11:15:09 HKT 2014 From /weblog/copyright


Copyleft -

Steven N.S. Cheung comment about copyright -

(google search) (amazon search)

Tue Apr 15 10:47:31 HKT 2014 From /weblog/design


(google search) (amazon search)

Tue Apr 15 10:43:36 HKT 2014 From /weblog/database/vendor


PostgreSQL schema is way fast and easy to change than MySQL, although maybe slower -[..]grating-from-mysql-to-postgresql-slides/

(google search) (amazon search)

Tue Apr 15 08:13:15 HKT 2014 From /weblog/java/concurrency


putall can cause ConcurrentModifcationException -[..]ses/sun/management/

Note on writing CopyOnWrite wrapper -[..]

Sometime this is a bit difficult for Chinese to be a good programmer, recently some colleague and me discuss about the behaviour of this class and look like we have difficult understanding

A: ConcurrentHashMap support for locking as this is thread-safe
B: ConcurrentHashMap is thread safe for read but not for write because there is no lock, we still need to have external lock to keep it thread safe. By the way, I get ConcurrentModificationException from this before.
C: ConcurrentHashMap don't support for locking but they still thread safe for all operations, which is how "This class is fully interoperable with Hashtable in programs that rely on its thread safety but not on its synchronization details." mentioned.

Too good that we can actually take a look at the source code to see what going on nowadays rather than just guessing -[..]HashMap&sourceid=opera&ie=utf-8&oe=utf-8 By the way, this constructor is useful for a lot of concurrency access but actually not many developer notice about this -[..]rrentHashMap.html#ConcurrentHashMap(int, float, int)

Lazy initialization of map values -[..]

HashMap.get() can cause infinite loop -[..]5/07/hashmapget_can_cause_an_infini.html

Discussing the effect of initCapacity() of HashMap in Java -[..]ltimatebb.cgi?ubb=get_topic&f=1&t=021171

OpenJDK and HashMap …. Safely Teaching an Old Dog New (Off-Heap!) Tricks -

(google search) (amazon search)

Mon Apr 14 12:11:00 HKT 2014 From /weblog/entertainment


Thanos -

(google search) (amazon search)

Mon Apr 14 11:43:47 HKT 2014 From /weblog/design/distribute


MapReduce patterns

Basic MapReduce Patterns
Counting and Summing
Filtering (“Grepping”), Parsing, and Validation
Distributed Task Execution
Not-So-Basic MapReduce Patterns
Iterative Message Passing (Graph Processing)
Distinct Values (Unique Items Counting)
Relational MapReduce Patterns
GroupBy and Aggregation


Showing that map reduce can support real time transaction processing -[..]09/12/relevance-meets-real-time-web.html

Using map-reduce in cloud -

Papers of using mapreduce -[..]thms-in-academic-papers-may-2010-update/

mapreduce experiment -

Pattern and anti-pattern -[..]/2010/08/apache_hadoop_best_practices_a/[..]bout-the-performance-of-map-reduce-jobs/

(google search) (amazon search)

Mon Apr 14 11:42:32 HKT 2014 From /weblog/java/discussion


(google search) (amazon search)

Mon Apr 14 11:27:39 HKT 2014 From /weblog/business

Time management

Are you really as busy as you think? -[..]24052970203358704577237603853394654.html

Priority -[..]07/06/how-to-prioritise-quickly-and.html[..]/how-to-easily-optimize-task-management/[..]ment-is-more-than-prioritizing-features/[..]/how-to-easily-optimize-task-management/

Choose a task to be accomplished
Set the Pomodoro to 25 minutes (the Pomodoro is the timer)
Work on the task until the Pomodoro rings, then put a check on your sheet of paper
Take a short break (5 minutes is OK)
Every 4 Pomodoros take a longer break -

Try not spend time on admin work -

Defer reply email -[..]6%86email-%E8%A6%86email-%E8%A6%86email/

(google search) (amazon search)

Mon Apr 14 10:51:22 HKT 2014 From /weblog/photographic/collections


Cesky Krumlov -

Stream -

Various competition from Canon -

海 . 市 . 晨 . 流 - 大帽山 -

Lautau Peak -[..]/11/lost-city-found-underwater-in-china/

望「天空」談攝影說未來 -[..]%9D%E5%BD%B1%E8%AA%AA%E6%9C%AA%E4%BE%86/

(google search) (amazon search)

Fri Apr 11 16:26:11 HKT 2014 From /weblog/design/distribute


1. Use Cloud for Scaling
2. Use Cloud for Multi-tenancy
3. Use Cloud for Batch processing
4. Use Cloud for Storage
5. Use Cloud for Communication

Database in cloud -[..]int?articleId=218900502&siteSectionName=

An overview of the Hadoop/MapReduce/HBase framework and its current applications in bioinformatics -

The architecture that survived when amazon outage -

Introduction of few tools for cloud development -[..]/01/best-development-tools-in-the-cloud/[..]/07/developing-and-testing-in-cloud.html

Google Finds: Centralized Control, Distributed Data Architectures Work Better than Fully Decentralized Architectures -[..]control-distributed-data-architectu.html

(google search) (amazon search)

Fri Apr 11 10:13:28 HKT 2014 From /weblog/health


How bolt training -[..]/othersports/fastest-man-usain-bolt.html

Better run and weight training on difference day -[..]ch-one-first-run-or-weight-training.html

Exercise to help keep balance -[..]year-old-mother-20-minutes-training.html

More training doesn't mean you can eat whatever you want -

(google search) (amazon search)