RSS feed [root] /weblog



title search:


Tue Jan 17 22:34:04 HKT 2017


log down some useful resource

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

Sat Nov 11 11:54:29 HKT 2017 From /weblog/health/food


嚴說養生 立夏吃雞蛋 -

烹制雞蛋美食的四種方法 -

More ways of cooking egg -

二十文錢劏房飯:仿西班牙蛋餅 -[..]%BF%E7%8F%AD%E7%89%99%E8%9B%8B%E9%A4%85/

(google search) (amazon search)

Sat Nov 11 11:02:22 HKT 2017 From /weblog/health/food


(google search) (amazon search)

Sat Nov 11 10:51:34 HKT 2017 From /weblog/health/food


美國人出書向世界介紹中國白酒 -[..]e/drinking-alcohol-cancer-risk-10112017/

(google search) (amazon search)

Fri Nov 10 00:06:22 HKT 2017 From /weblog/learning


(google search) (amazon search)

Wed Nov 08 00:48:02 HKT 2017 From /weblog/design/examples


(google search) (amazon search)

Tue Nov 07 16:01:37 HKT 2017 From /weblog/java/performance


A case showing java is faster than C++ -[..]mgroups#!topic/comp.lang.c++/7aNw3PzPvMI

Case show how to improve GC time spend on a java application -[..]11/java-vm-beware-of-younggen-space.html

A case study of solving thread contention -[..]fighting-thread-contention-in-your-code/[..]-of-java-application-performance-tuning/

Notes about measuring map performance -[..]ronicle-map-and-yahoo-cloud-service.html

High Performance Java - Binary instead of Objects - John Davies -

jemalloc, look like a really nice tool -[..]c-to-get-to-the-bottom-of-a-memory-leak/

story of finding why there is so many GC -[..]horough-jvm-thorough-analysis-ygc-part01

GC thread blocked by system call -

We always need benchmark -[..]2017/06/15/forward-vs-backward-loop.html

Investigation and solutions of performance issue caused by GC log -[..]c-pauses-caused-by-background-io-traffic

(google search) (amazon search)

Fri Nov 03 09:41:42 HKT 2017 From /weblog/database/performance


(google search) (amazon search)

Fri Nov 03 00:32:07 HKT 2017 From /weblog/trip/travelling


遊記分享 - 詩巴丹神山十二日瘋狂之旅 (更新左最美的神山16/3) -[..]t=0&sid=af04440b821a247a2384f9f4e5ec15e1 need to go this place once -[..]2/pangrango-national-park-indonesia.html

Really need to go this place once -[..]2/pangrango-national-park-indonesia.html

【印尼】峇里島十大必去景點和體驗 -

(google search) (amazon search)

Thu Nov 02 23:27:00 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

This will work, I believe, but really not easy -[..]e-your-life-in-just-a-month-eed6c90ee6c4

(google search) (amazon search)

Thu Nov 02 23:19:18 HKT 2017 From /weblog/learning


智能手機時代的速讀技術 -

Fun testing -

Fun information, text layout related to speed of reading:

Martin fowler discuss about the skill of how to read/write a big big book , more discussion -

關掉手機 享受慢閱讀的樂趣 -

这里有一个原则同学们要记住:不重要的学术作品大可不读,但重要的要反复重读,读多遍。不要相信重要作品的简化阐释,因为作者究竟怎样想我们不可能从简化的阐释中学到。 -

Rarely will I get through every section of every book.  The idea is to create a kind of dialogue among the authors, identifying points of overlap and difference.  Very often, the ideas from one book will trigger ideas that have you scouring the other books for elaboration.  The mixture of ideas from several books will lead to a thought that is not contained in any of the books.  When you read in parallel, it's like being in the room while the authors are conversing.  The intersecting of ideas almost always stimulates fresh ways of thinking about (and applying) the topic at hand. -[..]ding-in-parallel-becoming-better-at.html

Read for communication -[..]this-year-according-to-harvard-research/

在第一遍阅读时,你并不需要理解一个冗长计算的所有步骤。相反,默认它们是正确的,跳过它们,深入阅读关键的步骤。读公式之间的文字描述,读实验结果,读结论。当你大致明白了文章所谈论的东西之后,你再决定是否把时间花费在代数部分。不要在看不懂的步骤上花太多时间。当你以后有空时,可以重复阅读来慢慢理解它们。 -[..]/2017/08/how-Read-machine-earning-papers[..]achine_learning/?st=j6lm438g&sh=b1d9eba7

Reading to Learn: Why You Shouldn’t Read Beginning-to-End and What to do Instead -[..]-end-and-what-to-do-instead-4ab613e9a41d

I divided the day into four four-hour periods, of which I would be reading in three of the four-hour periods, and free one of them -[..]of-my-scholarship-and-study-68d1c35dd0d5

(google search) (amazon search)

Wed Nov 01 23:52:07 HKT 2017 From /weblog/trip/travelling


19 Stunning Things To See And Do Across Ireland -[..]=5824984083&blog=4289795&frame_type=none

The Ultimate Trip To Game Of Thrones Locations In Northern Ireland -

Scotland castle -[..]m/2013/12/dunnottar-castle-scotland.html[..]autiful-road-scotland-youve-never-heard/

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

(google search) (amazon search)

Wed Nov 01 23:36:13 HKT 2017 From /weblog/trip/travelling


(google search) (amazon search)

Tue Oct 31 10:18:25 HKT 2017 From /weblog/java/fundamental


Overview of weak, soft and Phantom References
Second, PhantomReferences avoid a fundamental problem with finalization: finalize() methods can "resurrect" objects by creating new strong references to them. So what, you say? Well, the problem is that an object which overrides finalize() must now be determined to be garbage in at least two separate garbage collection cycles in order to be collected. When the first cycle determines that it is garbage, it becomes eligible for finalization. Because of the (slim, but unfortunately real) possibility that the object was "resurrected" during finalization, the garbage collector has to run again before the object can actually be removed. And because finalization might not have happened in a timely fashion, an arbitrary number of garbage collection cycles might have happened while the object was waiting for finalization. This can mean serious delays in actually cleaning up garbage objects, and is why you can get OutOfMemoryErrors even when most of the heap is garbage.

With PhantomReference, this situation is impossible -- when a PhantomReference is enqueued, there is absolutely no way to get a pointer to the now-dead object (which is good, because it isn't in memory any longer). Because PhantomReference cannot be used to resurrect an object, the object can be instantly cleaned up during the first garbage collection cycle in which it is found to be phantomly reachable. You can then dispose whatever resources you need to at your convenience.

Arguably, the finalize() method should never have been provided in the first place. PhantomReferences are definitely safer and more efficient to use, and eliminating finalize() would have made parts of the VM considerably simpler. But, they're also more work to implement, so I confess to still using finalize() most of the time. The good news is that at least you have a choice.[..]las/archive/2006/05/understanding_w.html

The other valuable reference about object life cycle -[..]ormance/1st_edition/html/

Incorrect use of reference can cause GC issue -

fews more related blog -[..]garbage-collector-and-reference-objects/[..]in-java-and-why-they-matter-c04bfc9dc792

(google search) (amazon search)

Mon Oct 30 00:52:13 HKT 2017 From /weblog/health


depression -[..]pression-and-improve-your-mood/?view=all

【壹週刊健康】認識ADHD》腦裡有嘭嘭聲乜都喊 -

鍛煉能改善孤僻和拖延? -

By the time Kiesel was 14, she says she suffered from daily panic attacks, OCD, and depression. It wasn’t until she was older, she says, that she began to understand the connection between her childhood experiences and numerous chronic illnesses. -[..]iblings-it-affects-them-for-life/543975/

(google search) (amazon search)

Mon Oct 23 23:39:44 HKT 2017 From /weblog/business


Using game as training - , and drawing for communication -

No control, but empower -[..]01/some-thoughts-on-managing-people.html

10 rules of success, not really very insighful ideas but still nice to take a look:

Another 10 tips for product manager -

An interesting example of how people gaming the reward system -

Interview of Jeff Bezos and learn about his management style -

Dos and Don'ts for line manager -

8 elements of dysfunctional management -[..]lements-of-dysfunctional-management.html

Talk verse Action:
All Talk and No Action -[..]ectives-go-wrong-all-talk-and-no-action/
All Action and No Talk -[..]ectives-go-wrong-all-action-and-no-talk/
A suggestion of taking the balance -

Discussion about issues of managing remote teams -

Team building with the way of "pointy haired boss" ?? -

Promote the problem maker to make them better?? Is that work? - May be it is true that problem maker are innovator, give them more work and reward can change their negative performance to more than expected positive performance.

The most consistent and intense complaint from team members was that their team leaders were unwilling to confront and resolve problems associated with poor performance by individual team members.

Manage to learn -[..]dd-80e9-0000779fd18c.html?nclick_check=1

Suggestion about how to delegate to other, spend time to explain to vision -[..]E6%88%96%E8%80%85%E5%B4%A9%E6%BD%B0.html

Allocate free time to employee is good for company -[..]12/08/today-is-goof-off-at-work-day.html

What management should be -[..]-people-can-you-manage-as-a-manager.html

1. 清楚意識到您的創新意圖
2. 為彈性的工作時間設計一個架構
4. 測量什麼是有意義的
5. 給予「無實質價值」的報酬
6. 象徵化
7. 不是標準化地複製他人的創新行為[..]6-ways-to-create-a-culture-of-innovation

1. 在公司裡跟別人吐露的心事越少,對你越好。你以為是無傷大雅的閑聊,其實有可能會造成嚴重傷害。把你的猜測和擔憂都埋在心裡吧。

2. 務必管理好和下屬的關系。花時間和公司裡的較低層員工在一起,盡量對他們友好。對電梯操作員禮貌問候,對郵遞員表示感謝,對助理說句友善的話,這些都會得到讚賞。打造名譽要從基層做起。同樣的,碰到不爽的事情,要自己消化情緒,不要在別人面前發泄。

3. 做領導是一份全職工作,職責的時鐘永不停止。每個微小的跡象都會被解讀,你的不耐煩、失望或不安全感都會被那些解讀你的人放大。不應做出隨意、毫無準備的坦白,信息必須經過深思熟慮才能發出。要特別小心書面的東西,尤其是電子郵件──它們永遠都不會消失。

4. 保持聆聽並索取建議。每周至少在公司餐廳吃一次午飯,或者時不時在咖啡機旁逗留,聽聽其他人都在聊些什麼。如果有人想跟你說話,那就沒有理由不聽。如果有人批評,即使你不讚同也要花時間仔細回應。

5. 你覺得很風趣的俏皮話通常並不風趣。你的幽默感很容易被解讀為自傲和笨拙。如果你仍然以為講笑話或引用某個幽默故事對陳述觀點很重要,那麼請先跟你的配偶或信任的朋友演練一遍。幽默是有風險的。千萬不要拿嚴肅的事情開玩笑。

6. 很重要的一點是,保証重要事務的重要性。應該經常解釋你的戰略,可以換個措辭,但要反復強調。

7. 絕不要抱怨和解釋,沒有人會聽。出了差錯就承擔責任。不要把錯誤怪到前幾屆管理層、天氣、運氣不好或競爭對手身上。但也不要露出防御姿態。向前看──除非上級要求你辭職。

8. 信任你的專業顧問,接受他們的專業意見。不要對市場做過多猜測。沒有所謂的完美數據。做出決策,往前走。

9. 謹慎使用“平均”這個詞──平均深度為6英寸河也可能淹死人。欣然接受“平均”,只會獲得虛假的安全感。假設最糟糕的情況會發生,因為通常就是如此。

10. 最後這條是陳詞濫調,但卻是至理真言:絕不要做或說你不希望在報紙頭條看到的事情。和媒體打交道時,不要回答假設性的問題,謹記麥克風永遠不會真正關閉,絕不要同意“私下”談。對一場危機唯一值得做的公開回應是誠實。[..]0001424052702303519404579353060931625306

給新手高管的10條建議 -[..]/causes-and-solutions-for-bystander.html

以競爭激發員工潛力有其道理,但就我過往所見,鼓催互鬥文化往往淪為非實力較量,最後變成內部互搞小動作放毒箭,對公司產生最嚴重的破壞 - 內耗。 -[..]%84%EF%BC%9F%EF%BC%8F%E5%BE%90%E7%B7%A3/

Good developer cannot be good manager? -

Manager guide in google -

Every person is a vector — add them all up, and you know how much progress your company is going to make. -[..]me-about-growing-a-business-c2c173f5bff3

(google search) (amazon search)

Fri Oct 20 16:18:26 HKT 2017 From /weblog/software_engineering/testing


A nice example of convert dbunit from using junit to testng -[..]h/blog.php?name=philzoio&mydate=20050826

redirect junit output to a file -

invokeNCopiesWithTimeout, run a test ( in runnable() ) for n times and see if it ok for multi-thread likely or not -[..]/running-n-foreground-tasks-in-java.html

Use theories to execute test with a lot difference input, probably possible for all cases -[..]010/01/31/new-feature-of-junit-theories/[..]using-junit-4-theories-to-test-contracts

The other features, rule, perform some rule on test cases -

Adding timeout -

Testing exceptions at Junit -[..]ting-expected-exceptions-with-junit.html[..]ays-of-handling-exceptions-in-junit.html[..]-java-unit-testing-frameworks-tools.html

Skip test for some cases, or create test only for some cases -[..]unit-rule-to-conditionally-ignore-tests/

What new in junit5 -[..]it-5-next-generation-testing-on-the-jvm/

(google search) (amazon search)

Thu Oct 19 23:05:11 HKT 2017 From /weblog/investment


Look like sharp ratio is best -[..]ML_anet_qa_ttle-cDhOon0JumNFomgJt7dBpSBA


如果你真的希望像億萬富豪那樣思考和行動,那就將你的創業活力集中在生產世界需要的產品上吧。在你發達之后,就可以去股市投資了。 -

Cycle -[..]k/2017/01/how-to-read-market-cycles.html

5. You tend to overreact to bad news — and underreact to good news -[..]rom-the-2017-economic-nobel-prize-winner

(google search) (amazon search)

Thu Oct 19 22:44:27 HKT 2017 From /weblog/computer+science


量子比特(qubit)利用疊加同時以兩種狀態存在——實際是就是同時以1和0存在。在經典計算機中,比特就像是硬幣,要麼顯示正面要麼顯示背面。而量子比特則像是被拋在空中的、不斷旋轉的硬幣,同時顯示正反面。 -

(google search) (amazon search)

Wed Oct 18 01:48:44 HKT 2017 From /weblog/science


Radiation fact -[..]s-about-radiation-and-its-crazy-effects/

關于輻射的真相 -

Chernobyl -[..]ar-meltdown-on-the-environment/?view=all

The different types of electromagnetic radiation -[..]ifferent-types-electromagnetic-radiation

(google search) (amazon search)

Tue Oct 17 09:44:46 HKT 2017 From /weblog/society


(google search) (amazon search)

Sun Oct 15 13:26:02 HKT 2017 From /weblog/software_engineering/team


Cool diagram showing what slow us down -[..]m/blog/2012/01/faster-faster-faster.html

Usually, not a good idea to grow a team too big too soon -

Taken from Interview of Charles Simonyi ( ) , both the interview and the discussion are nice to read: , However, I will think if team work effective, 1+1 > 2

What we should really care about is effectiveness and not efficiency. and effectiveness is often inefficient -[..]our-obsession-with-efficiency-dan-north/

Handling emergencies or crisis situations
Handling work stress
Solving problems creatively
Dealing with uncertain and unpredictable work situations
Learning work tasks, technologies, and procedures
Demonstrating interpersonal adaptability
Demonstrating cultural adaptability
Demonstrating physical-oriented adaptability
-[..]2010/12/8-behavioural-dimensions-of.html <- a simple way to check what make team move faster, and things that slow team down.[..]icles/speed-in-software-development.html

The emergency team, in our understanding, was supposed to work as a point of entry for new developers, so they could know the codebase better. However, we didn’t get into account that newcomers needed to check on some things with the “old” developers. That hindered the work, and we eventually switched back to ~1 month rotation principle. -[..]/how-we-handle-bug-fixes-and-rework.html

Your team’s strength is not a function of the talent of individual members. It’s a function of their collaboration, tenacity, and mutual respect. -[..]-best-decision-we-ever-made-4c0a99728fde

(google search) (amazon search)

Thu Oct 05 00:28:06 HKT 2017 From /weblog/software_engineering/team

program manager

Sharing from a PM -

It sound interesting but I don't exactly sure what is the difference with traditional approach -[..]on-agile-enterprise#.WdUFF3Lq9qE.twitter[..]omputest-transformation-agile-enterprise

(google search) (amazon search)

Wed Oct 04 23:02:13 HKT 2017 From /weblog/trip/travelling


印度的天然登山資源 -

(google search) (amazon search)