RSS feed [root] /



title search:


Sun Jul 23 22:00:11 HKT 2017

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

Thu Aug 17 14:26:19 HKT 2017 From /weblog/science


蓋亞假說:美麗的神話 -[..]%8E%E9%BA%97%E7%9A%84%E7%A5%9E%E8%A9%B1/

色彩斑斕的動物 -

地球上仍存活的最古老生物 -

deep-sea-mysteries-and-oddities-that-will-leave-you-baffled -[..]nd-oddities-that-will-leave-you-baffled/

rare-flowers-that-are-stunning-to-look-at -

earth-facts-that-might-surprise-you -

north-pole-facts-most-people-are-not-aware-of -[..]s-most-people-are-not-aware-of/?view=all

earth-facts-you-probably-have-not-considered -[..]u-probably-have-not-considered/?view=all

amazon -[..]he-most-unique-places-on-earth/?view=all

25 Interesting Tidbits About Deserts That Will Make You Glad For Rain -[..]at-will-make-you-glad-for-rain/?view=all

Antarctica is one of the coldest, most desolate places in the world, and today you're going to learn all about it. -[..]interesting-facts-that-you-probably.html

great-barrier-reef -[..]-reef-facts-youll-want-to-hear/?view=all

Types of mountains -[..]st/main-types-mountains-earths-ups-downs

bizarre-ocean-phenomena -[..]ean-phenomena-you-wont-believe-are-real/[..]ology/animals-ecology/animal-speed-limit

Ocean -[..]ising-ocean-facts-most-people-dont-know/

(google search) (amazon search)

Wed Aug 16 23:27:19 HKT 2017 From /weblog/science


psychology-tells-you-about-yourself -[..]ology-tells-you-about-yourself/?view=all

body-hacks-life-is-trying-to-hide-from-you -[..]ife-is-trying-to-hide-from-you/?view=all

causes-dark-circles-eyes-sleeping-people-really-tired -[..]s-sleeping-people-really-tired/?view=all

facts-about-the-human-body-you-may-not-be-aware-of -[..]n-body-you-may-not-be-aware-of/?view=all

blood -[..]you-might-not-know-about-blood/?view=all

misconceptions-about-your-body -[..]bout-your-body-that-arent-true/?view=all

pregnancy -[..]nge-the-way-you-view-pregnancy/?view=all

blindness -[..]you-didnt-know-about-blindness/?view=all

【趣味科普】同理心等於同情心?可以後天鍛鍊嗎? -[..]om/realtime/supplement/20160712/55345201

happen-to-your-body-after-you-die -[..]pen-to-your-body-after-you-die/?view=all

your-body-is-weirder-than-you-think -[..]body-is-weirder-than-you-think/?view=all[..]-that-make-absolutely-no-sense/?view=all

DNA -[..]l-help-you-understand-yourself/?view=all[..]-genetics-and-the-human-genome/?view=all

「人體農場」:聽屍體說話 -[..]%BD%E5%B1%8D%E9%AB%94%E8%AA%AA%E8%A9%B1/[..]8%82%89%E9%AA%A8%E6%9F%A5-q-a-episode-4/

Lie/Cheat -[..]o-know-someone-is-lying-to-you/?view=all

Albinism -

人腦越來越小 又關facebook事? -[..]om/realtime/supplement/20160705/55315802

為什麼人類的耳朵長成這樣 -

oxytocin -[..]us-facts-about-oxytocin-that-youll-love/

About vaginas -

Almost everything we know about salt may be wrong. Eating salt actually makes you less thirsty but hungrier -[..]ence/salt-makes-you-less-thirsty-423432/

Brain -

從進化的角度來看,幼年就是一段專門為了學習而存在的時期。在成人的庇護下,幼兒唯一的任務就是學習,他們無需操心是否要真的做出點成就來。而成人更注重的則是利用現有知識,快速有效地行動。抑制性化學物質對這一趨勢可能是有利的。自然之道的運行自有其信條:“沒壞就不用修。”既然如此,那麼大腦工作得順順當當,自然也就沒必要去改變它。 -

According to scientists, these are the three kinds of smile -

alleles -

(google search) (amazon search)

Wed Aug 16 17:07:52 HKT 2017 From /weblog/science


mushrooms -

dangerous-plants -[..]us-plants-that-could-seriously-hurt-you/

Amber -

Rock -[..]her/feature-post/rock-cycle-geoloby-abc/

What is the Wilson Cycle, builder and slayer of supercontinents? -

clouds -

What is THC: the main psychoactive ingredient in marijuana -

oldest tree -

(google search) (amazon search)

Tue Aug 15 23:21:02 HKT 2017 From /weblog/learning


How habit affecting you -[..]2012/02/poor-study-habit-and-remedy.html

How to change habit -

How to quit bad habit -[..]028&elq=2220804c77864d95acba08b4a6f21c23

好奇心,细节 -

The most interesting things I've learnt about learning -[..]-most-interesting-things-ive-learnt.html

The most interesting things I've learned about improvement -[..]t-interesting-things-ive-learned_14.html

* Increase your exposure to new and different ideas
* Spend as much time learning from your trading as you actually spend trading
* Manage yourself, not just your risk and your positions[..]hree-best-practices-of-best-traders.html[..]/energy-well-being-and-success-four.html

直覺的奧妙 — Blink -[..]%A6%BA%E7%9A%84%E5%A5%A7%E5%A6%99-blink/

1)  How does the person spend his or her free time?  Per Ayn Rand's observation above, what does he or she do for enjoyment?  

2)  How does the person respond to your successes?  Many people are willing to commiserate with you when you're down and elevate themselves in the process.  A person of genuine goodwill celebrates your successes and is happy for your happiness.

3)  What strong beliefs does the person voice and live through their actions?  Character means standing for what you believe in and living your beliefs.  Go along and get along might be comfortable, but commitment is what powers effective action in the world.[..]hree-powerful-measures-of-character.html

Ask as a habit -[..]%83%E9%80%99%E5%80%8B%E5%95%8F%E9%A1%8C/

practice consistently, stay warm -[..]brain/halo-starcraft-practice-excellence

Wake up early -[..]e-guide-for-waking-up-early-a750c011eb07

(google search) (amazon search)

Mon Aug 14 21:30:59 HKT 2017 From /weblog/learning


How to learn maths? Make a story about it -[..]not-to-memorise-mathematics-98fef71aefcf

(google search) (amazon search)

Mon Aug 14 14:35:13 HKT 2017 From /weblog/database


(google search) (amazon search)

Sun Aug 13 17:30:10 HKT 2017 From /weblog/history


(google search) (amazon search)

Wed Aug 09 11:37:20 HKT 2017 From /weblog/design


Use present and absent rather than NULL -

Propose of enhancement, null handelers and null reference -[..]01/null-handelers-and-null-refere-1.html

How null breaks polymorphism -[..]s-polymorphism-or-the-problem-with-null/[..]orphism-or-the-problem-with-null-part-2/

Discussion about forbid NULL as parameter and return -[..]5/07/null-parameters-and-returning-null/

Default object in C# -[..]t/2012/09/25/Default-Objects-with-C.aspx

Discussion about using optional -

Some suggest about do something better than use null -

(google search) (amazon search)

Wed Aug 09 00:23:01 HKT 2017 From /weblog/career


Links of tips of how to be a productivity person -[..]-read-productivity-tips-for-freelancers/

Ten ways to ensure that you finish work on time

1. Ensure that you learn from your calls
2. Make sure that you complete an entry for the knowledge base
3. Make sure that the users understand the help desk opening hours.
4. Ensure that you deal with calls effectively.
5. Cut out the unnecessary chatter.
6. Don’t feel guilty about finishing at your appointed time.
7. Organize your day so that the urgent stuff gets done first,
8. Start on time.
9. Some people think that the boss will be impressed by seeing you stay late. A good boss will not be fooled by this
10. A recent survey showed that the longer you stay at work the more your efficiency declines.


Don't denial what really happening -[..]blog/2015/08/why-denial-doesnt-work.html

Isolation, Bimodal, habit and rest -[..]roduce-deep-meaningful-work-d9aafc3d32e3

Count 5 second before start -[..]done-with-the-5-second-rule-b7abea890087

(google search) (amazon search)

Tue Aug 08 22:57:56 HKT 2017 From /weblog/software_engineering/SCM


Why merge often -[..]/cgi-bin/cmwiki/view/CM/BranchYesMergeNo

A lot of resource here -[..]i-bin/cmwiki/view/CM/BranchingAndMerging

At my company, we tag each CVS module and we use those tags to build releases. That way, we know exactly which code versions each deployment has. Also, developers can check in code at any point while controlling when they release it.

Branches are a major headache, which I avoid whenever possible. You have to worry about maintaining and testing each branch, along with merging changes. I prefer to release the latest and greatest code to each customer. If different customers require different behavior, if statements and configuration files are a lot better than CVS branches.

Branches do make sense if you want to release a minor change to an old release, but upgrading the entire code base is risky. However, high-quality code and testing should reduce that risk.[..]arent=16312&ixDiscussGroup=3&cReplies=11

Subversion branching technique and tips -[..]version-best-practices-branching_01.html[..]version_tips_dealing_with_branches.html/

Another discussion -

Branch visualization -[..]07/05/linus-torvalds-on-git-and-scm.html

One way of manage branching and merging, the summary is, frequency create new branch for pre-merge instead of one time big merge -[..]old-you-about-svn-branching-and-merging/ My colleagues suggest subversion merge tracking can solve the problem without that pre-merge, but I am not sure how that can work...

No branch?[..]-of-code-in-a-single-repository/fulltext[..]s/2017/08/How-Google-build-Web-framework

(google search) (amazon search)

Tue Aug 08 18:12:08 HKT 2017 From /weblog/design/distribute


Event Bus Implementation(s) -[..]2017/08/Summary-event-bus-implementation

(google search) (amazon search)

Tue Aug 08 09:54:14 HKT 2017 From /weblog/security


How to use basic UNIX tool to steal other facebook identity -

More on BGP Attacks -

Discussion of crack protection - , introduce tools -

Ten Immutable Laws of Security
Law #1: If a bad guy can persuade you to run his program on your computer, it's not your computer anymore
Law #2: If a bad guy can alter the operating system on your computer, it's not your computer anymore
Law #3: If a bad guy has unrestricted physical access to your computer, it's not your computer anymore
Law #4: If you allow a bad guy to upload programs to your website, it's not your website any more
Law #5: Weak passwords trump strong security
Law #6: A computer is only as secure as the administrator is trustworthy
Law #7: Encrypted data is only as secure as the decryption key
Law #8: An out of date virus scanner is only marginally better than no virus scanner at all
Law #9: Absolute anonymity isn't practical, in real life or on the Web
Law #10: Technology is not a panacea[..]s/security/essays/10imlaws.mspx?mfr=true

An example of buffer overflow attack -

hack yourself! -

(google search) (amazon search)

Mon Aug 07 10:29:29 HKT 2017 From /weblog/design


Comment about the java document of jdk8 -[..]14/03/illuminating-javadoc-of-jdk-8.html

Thoughts On Comments -[..]ques/documentation/thoughts-on-comments/

The Art of Crafting Architectural Diagrams -

(google search) (amazon search)

Sun Aug 06 17:21:16 HKT 2017 From /weblog/unix/script


10 awk tips -

8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FILENAME, FNR -[..]iables-fs-ofs-rs-ors-nr-nf-filename-fnr/

Tutorial of text editing commands -[..]works/aix/library/au-unixtext/index.html

wc and nl tutorial -

tips for uniq, like show only items have duplications -

Tips of "cat", include display by column and by delimiter -

Using lynx to convert HTML to text -

(google search) (amazon search)

Sun Aug 06 17:20:16 HKT 2017 From /weblog/unix/script


Various ways to working with file -

Use truncate to pad the file size up -

Making a file unalterable with chattr -

(google search) (amazon search)

Sun Aug 06 16:15:20 HKT 2017 From /weblog/trip


周末熱辣辣 落水消暑! 11個環保署評定「一級」靚水質 香港沙灘 -[..]%E7%B4%9A-%E7%92%B0%E4%BF%9D%E7%BD%B2/2/

(google search) (amazon search)

Sun Aug 06 09:48:02 HKT 2017 From /weblog/trip/travelling


Europe at autumn -

Scotland castle -[..]m/2013/12/dunnottar-castle-scotland.html

西班牙北部雄偉歐羅巴山(Picos de Europa)徒步探險 -

amazing-things-unique-about-scotland -[..]g-things-unique-about-scotland/?view=all

Coldest city! -[..]tsk-in-russia-coldest-city-in-world.html

fascinating-facts-about-modern-greece -[..]ting-facts-about-modern-greece/?view=all

things-that-will-make-you-want-to-visit-greenland -[..]ke-you-want-to-visit-greenland/?view=all

If you've never been to Norway, this is what you've been missing out on. -[..]yone-needs-to-visit-norway-at-least.html

Great church -

Tips -

「世界最美海灘」的Navagio -[..]realtime/international/20140709/52671530

【夏日芬蘭】落水玩漂浮 氹氹轉望藍天 -[..]om/realtime/supplement/20140624/52619256

ALPS -[..]ns-you-should-definitely-visit-the-alps/

巴爾幹醉人風景 -

european-places-so-beautiful-you-might-cry -[..]ces-so-beautiful-you-might-cry/?view=all

In the mountains of the Czech Republic lies a 55 meter observation deck with a gigantic slide. Franek Company Architects built the slide in collaboration with Taros Nova and it stands at 1116 meters above sea level. -[..]-czech-republic-has-giant-slide-and.html

canary-islands -[..]-should-be-on-your-bucket-list/?view=all

Parthenon at Greek -[..]ting-facts-about-the-parthenon/?view=all

Alps -

prague -[..]ng-in-prague-is-not-a-bad-idea/?view=all

【托斯卡尼】Arezzo 阿雷佐・踏進電影《美麗人生》的山城場景 -

巴爾幹半島路線圖 - 實用篇 -

exotic-places-in-eastern-europe -[..]ces-in-eastern-europe-you-have-to-visit/

西伯利亞鐵路 2017, Travel to Russia with Train -[..]%259E%25E9%2590%25B5%25E8%25B7%25AF-2017

(google search) (amazon search)

Sun Aug 06 09:37:23 HKT 2017 From /weblog/database/transaction


Transaction, same as all the concept in computing, is an approach and trade-off -[..]

Transaction file system -

Explanation about database isolation level -[..]-and-their-effects-on-performance-a.html[..]08-01-practical-guide-sql-isolation.html

A nice article explain about transaction process -[..]Nuts-and-Bolts-of-Transaction-Processing[..]guide-to-acid-and-database-transactions/

(google search) (amazon search)

Sun Aug 06 09:27:02 HKT 2017 From /weblog/learning


Positive Professional Development: Insights Into Action -[..]ctblog/2011/07/insights-into-action.html

50 Productive Things To Do to Organize Your Life -

Pay to you children to teach you -

Tips on say no -

the-overthinkers-guide-for-taking-action -[..]ers-guide-for-taking-action-4670ca1f1b6d

(google search) (amazon search)

Sat Aug 05 00:18:58 HKT 2017 From /weblog/entertainment


Prince -[..]-the-artist-you-knew-as-prince/?view=all

elvis-presley -[..]ting-facts-about-elvis-presley/?view=all

george-michael -[..]-not-know-about-george-michael/?view=all

【傾聽音樂】中世紀音樂是宗教的奴僕,還是高貴的婢女 -[..]%98%E8%B2%B4%E7%9A%84%E5%A9%A2%E5%A5%B3/

(google search) (amazon search)

Sat Aug 05 00:03:09 HKT 2017 From /weblog/learning

positive[..]stions-for-professional-development.html <- write it down, make it a story, visualize it.[..]-that-can-make-you-much-more-impressive/ <- The only change was this semester he presented more enthusiastically, gesturing with his hands and modulating his voice.[..]ing-by-asking-the-right-questions/print/ <- Appreciative inquiry (AI) has two important elements: becoming mindful of the questions we ask and directing those questions toward strengths and positive outcomes.


五萬隻鳥蛋的故事告訴我們,即使遇到一些普通如一隻鳥蛋那樣熟悉的事物,我們仍可在當中發掘新的知識,並需要勇氣挑戰舊的假設。 -[..]B4%E4%BD%A0%E7%94%9A%E9%BA%BC-%E4%B8%8B/

(google search) (amazon search)

Fri Aug 04 23:45:53 HKT 2017 From /weblog/trip/camping


8字結 -[..]ke-your-weekend-more-enjoyable/?view=all



(google search) (amazon search)

Thu Aug 03 18:22:14 HKT 2017 From /weblog/design


Refactoring to Patterns Catalog -

Article talk about the book:

Catagories smell into "smell in class" and "smell between class" -

Known but good to remind[..]10/01/6-steps-to-master-refactoring.html

An experience sharing -[..]m/2011/05/refactor-hudson-god-class.html[..]treme-Refactoring-with-Brian-Button.aspx

Refactoring should not introduce bug... -[..]01/so-why-are-you-refactoring-again.html

A way to have formal refactoring, through Feature Clustering, Rapid Scratch Refactoring and Twisting Classes -[..]rom-michael-feathers-brutal-refactoring/

Not all code change is refactoring - , and

Some common issues about refactoring code in a team -[..]/2008/01/28/dont-be-a-refactoring-bigot/[..]01/dangers-of-premature-refactoring.html , beware taking the balance -[..]ith-beautiful-code-the-refactor-syndrome

Refactory if needed -

Refactoring, when start, when stop? -

Refactoring metric -[..]rics-based-refactoring-for-cleaner-code/

Getting rid of util class
1) If the family of methods uses different parameters, depending on optional input or representations of the same input, then consider transforming the Helper via a fluent interface using the Builder pattern: from a collection of static methods like Helper.calculate(x), calculate(x, y), calculate(x, z), calculate(y, z) we could easily get to something like newBuilder().with(x).with(y).calculate(). The helper class would then offer behaviours, reduce its list of business methods and provide more flexibility for future extensions. Callers would then use it as internal field for reuse or instantiate it where needed. The helper class (as we knew it) disappeared.
2) If the helper class provides methods which are actually actions for different inputs (but, at this point, for the same domain), consider applying the Command pattern: the caller will actually create the required command (which will handle the necessary input and offer a behaviour) and an invoker will execute it within a certain context. You may get a command implementation for each static method and your code would move from an Helper.calculate(x, y), calculate(z) to something like invoker.calculate(new Action(x, y)). Bye bye helper class.
3) If the helper class provides methods for the same input but different logics, consider applying the Strategy pattern: each static method may easily become a strategy implementation, vanishing the need of its original helper class (replaced by a context component then).
4) If the given set of static methods concerns a certain class hierarchy or a defined collection of components, then consider applying the Visitor pattern: you may get several visitor implementations providing different visit methods which would probably replace partially or entirely the previously existing static methods.
5) If none of the above cases met your criteria, then apply the three most important indicators: your experience, your competences in the given project and common sense.[..]-to-get-rid-of-helper-and-utils-classes/

Converting forloop to streaming -

Refactoring JavaScript from Sync to Async in Safe Baby-Steps -

code-refactoring-dos-donts -

(google search) (amazon search)

Thu Aug 03 00:41:23 HKT 2017 From /weblog/learning


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

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

crazy-facts-about-languages -[..]nguage-fluently-quickly-and-efficiently/

5 tips for learning Mandarin -[..]-great-advice-from-a-variety-of-experts/

Choice other than "Regards" -[..]/email-sign-offs-for-every-occasion.html

Resource of learning a lot difference languages -

Bubble physics can explain why dialects appear and how they evolve -

(google search) (amazon search)