RSS feed [root] /



title search:


Mon Aug 31 21:18:32 HKT 2020

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

Sat Feb 29 20:50:29 HKT 2020 From /weblog/software_engineering


Release at fix time or release at fix features?

Launch early and learn from it, but will we lose customer because of it?? -

A method to determine which label to deploy, look a bit obvious -[..]so-er-which-build-label-do-i-deploy.html

A sample procedure of zero downtime deployment -[..]

Knightmare: A DevOps Cautionary Tale -[..]/17/knightmare-a-devops-cautionary-tale/

(google search) (amazon search)

Thu Feb 27 11:42:06 HKT 2020 From /weblog/google/development


(google search) (amazon search)

Thu Feb 27 11:40:17 HKT 2020 From /weblog/trip


May not really useful

【飲食男女】飛機中伏位|走廊多菌 座位要識揀 -
【飲食男女】飛機中伏位|摺枱加料 尿片飛機餐 -
【飲食男女】飛機中伏位|飛機餐陳年生果 小心為上 -

【亞洲航點總整理】臨時找機票的你,知道日本、韓國、東南亞有哪些廉價航班可以選擇嗎? -

【旅行祕笈】用廉價航空玩歐洲竟然這麼便宜?! 購買歐洲廉航的3大技巧! -

TRAVELING WITH A TODDLER CHECKLIST -[..]=5828583385&blog=3512968&frame_type=none

how-to-survive-in-the-extreme-cold -[..]00226-how-to-survive-in-the-extreme-cold

(google search) (amazon search)

Mon Feb 17 20:15:32 HKT 2020 From /weblog/languages

other languages

Nice thing of Lua -[..]a-scripting-is-badass?5ec266c0?8b310bf0`

a lot of quick start cookbooks of various languages - and here is video tutorials -[..]ucation-lectures.html?search=programming

Yet other JVM base language, it is very erlang like -[..]vuI1Vhhmpjq_tXqhHSmIzvYz_Xjy5kXSYlvYYdgY[..]2/the-10-weirdest-programming-languages/

Javascript quick note -

(google search) (amazon search)

Sun Feb 16 21:39:18 HKT 2020 From /weblog/java/performance

option list

-XX:+PerfDisableSharedMem , prevent locking by sharedmem in linux -

How linkedin turn the GC -[..]ughput-and-low-latency-java-applications

Using generational & concurrent GC collector -[..]/04/ibm-jvm-tuning-gencon-gc-policy.html

Full VM option list :, update for Java7 -[..][..]ost-complete-list-of-xx-options-for.html

A simplified list for some frequency use options -[..]rbage-collector-guidelines-and-tips.html

HotSpot JVM garbage collection options cheat sheet -[..]spot-jvm-garbage-collection-options.html[..]va/javase/tech/vmoptions-jsp-140102.html

An example and story about effect of difference VM parameter affecting the performance -

Clear the code cache automatically with -XX:+UseCodeCacheFlushing -[..]time-for-long-running-java-applications/

Discussion about -XX:MinHeapFreeRatio parameter -[..]

The other detailed guide for VM parameters tuning -

Here is a more simple cookbook -

A outdated (1.4) , compehensive but still not really too detailed, overview of various GC tuning -

Some say following VM parameter is good enough
-server -Xmx -XX:+UseParallelGC[..]/page/binublog?entry=java_tuning_for_xml

Some say is useful if you have huge memory

Some say below parameter keep GC in low pause
Some say below parameter are very optimal
-XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:NewSize=1200m -XX:SurvivorRatio=16[..]d.tss?thread_id=41258&ASRC=EM_NNL_347804
Some say those parameter is good

Just in case anyone is curious, the flags enabled by -XX:+AggressiveOpts in JDK 1.6.0_25 are:


Generate dump with OOME - -XX:+HeapDumpOnOutOfMemoryError

GC log sample of -XX:+UseConcMarkSweepGC -XX:PrintFLSStatistics=1 -XX:+PrintGCDetails -

A case study of tuning VM GC parameters -[..]ld-you-trust-the-default-settings-in-jvm

Explanation for few performance related VM parameters -[..]ine-options-jvm-performance-improvement/

Show the exact vm flag that java using -[..]/looking-inside-a-jvm-xxprintflagsfinal/

For G1GC -[..]e-first-garbage-collector-tuning-flags-1[..]otspot-jvm-performance-tuning-guidelines

(google search) (amazon search)

Sun Feb 16 21:20:58 HKT 2020 From /weblog/misc


(google search) (amazon search)

Tue Feb 11 07:05:49 HKT 2020 From /weblog/java/fundamental


How difference platform implement nanoTime() -[..]12/02/what-is-behind-systemnanotime.html[..]62/is-system-nanotime-completely-useless

Java timezone ID reference -[..]etrive-locale-and-timezone-from-request/[..]m/java-date-time/java-util-timezone.html

setTimeZone affects calls to set(), but doesn’t change the existing Calendar time? So if we wanted to change the time zone we are working with, we have to adjust all the time fields too…but a SimpleDateFormatter still would show it as the current time zone. -[..]1/joda-time-the-future-of-java-datetime/[..]va-time-jsr-310-enhancements-java-9.html

deep dive into measuring time in Java - dihttps:[..]g-time-from-java-to-kernel-and-back.html

CronScheduler -[..]r-for-external-interactions-cb7ce4a4f2cd

(google search) (amazon search)

Tue Jan 28 18:49:05 HKT 2020 From /weblog/health/food


Pros and Cons for vegi -[..]84%E5%BC%8A%E8%88%87%E5%88%A9-%E4%B8%80/

B12 is important -

熟吃損失多少維生素? -[..]0%91%E7%B6%AD%E7%94%9F%E7%B4%A0%EF%BC%9F

中國城市人的香椿情結 -

西蘭花如何幫助身體應對空氣污染 -

13 Easy Ways to Eat More Greens -

Recipes that use veggies from garden -[..]s-and-veggies-from-your-garden/?view=all

lutein-veggies-cognitive-protection -[..]n-veggies-cognitive-protection-01082018/

“If we wait to the point where we are beyond a shadow of a doubt, with double-blind studies translated to regulations, we’re going to be waiting decades,” Sonnenburg told me. “But right now, all the arrows are pointing in the same direction, toward fiber.” -[..]-western-diet-has-derailed-our-evolution

Becoming a Vegetarian -

“Without question, veganism can cause B12 and iron deficiencies, and without question they affect your intelligence,” he says. -[..]your-intelligence?ocid=global_future_rss

(google search) (amazon search)

Tue Jan 28 18:48:00 HKT 2020 From /weblog/java/concurrency


Another nice tutorial set of concurrency framework -

Java concurrency, Building and testing concurrent applications for the Java platform -[..]/training/kp/j-kp-concurrency/index.html

JVM concurrency: Java and Scala concurrency basics -[..]/java/library/j-jvmc1/index.html?ca=drs-[..]reading-interview-questions-answers.html

5 things you didn't know about ... Multithreaded Java programming -

266Threading Questions in Job Interviews (2/2) -

Parallel Collection Processing: Without Parallel Streams -

(google search) (amazon search)

Thu Jan 23 21:22:05 HKT 2020 From /weblog/science


(google search) (amazon search)

Thu Jan 23 07:59:58 HKT 2020 From /weblog/ai


(google search) (amazon search)

Wed Jan 22 20:38:44 HKT 2020 From /weblog/business


P2P filesharing can actually helping music sell, according to this article, if there is large amount of people download, this is a very good marketing tools -

After you spend so much effort of promoting your product, may be you miss promoting your product to YOU?? And there are millions of YOU all over the earth?

promotion, mix with free service and love -

Name is important -[..]4/pick-the-right-name-for-your-projects/

Sometime, it would be a nice promotion of comment your product in negative way, some how -

The official definition is that marketing creates demand, while sales fulfils demand, how Joel demo software -

First to release may be worst than the 2nd one -[..]window-as-part-of-your-product-strategy/ Timing is VERY important

Guessing if we have short and frequency release, we don't need to save any features. However, in case if our release cycle still long and big, this may be a good idea. -[..]2009/11/10/save-some-features-for-later/

Learning US. style of marketing -

Analysis why ice-bucket-challenge can be so popular -[..]/26/ice-bucket-challenge-viral-marketing

(google search) (amazon search)

Tue Jan 21 08:00:48 HKT 2020 From /weblog/software_engineering/testing


If you write the test after you've written the code, it's much more likely that you'll write the tests that will pass what you've written.

That's just how our brains work.

If you determine the criteria for whether a decision is good after you've already made the decision, it's much more likely that you'll create criteria that justifies the decision that was just made.

That's just how our brains work.

Determine how to assess whether something is good before you implement it and/or before you make a decision. Otherwise, you will tend to be emotionally attached to what you just did, what you just decided.

My Top 5 ways to reproduce a "Hard to Reproduce" Bug! -[..]/my-top-5-ways-to-reproduce-hard-to.html

Common TDD issue and suggested solution -[..]utomated-test-problems-address-root.html[..]om/biblio/StudiesOfTestDrivenDevelopment[..]ptions-with-test-driven-development.html[..]014/05/told-you-that-testing-is-a-waste/[..]-best-thing-has-happened-software-design[..]evelopment-is-dumb-fight-me-a38b3033280c

Does this mean I think you should skip TDD for programs you’re going to run once and then throw them away?

Well, I’m closer to OK with that than I am to the other cases here, but I often spend enough time editing and rerunning to make me think there was probably a central bit of the program that would have benefited from some TDD.

(google search) (amazon search)

Thu Jan 16 08:13:43 HKT 2020 From /weblog/software_engineering/team

pair programming

How work alone might be better than pairing -[..]/03/pair-programming-considered-harmful/

When to pair, when not to -[..]ramming-the-disadvantages-of-100-pairing

This is an excellent arguement -

It's only worth pairing on complex code, rote code yields no advantage.

I think there is a point to this - pairing is about improving design and minimizing mistakes. Rote code that's simple to write yields little opportunities for pairing to make a difference.

Except this: writing boring rote code is a smell. If I'm writing boring repetitive code it's usually a sign that I've missed an important abstraction, one that will drastically reduce the amount of rote code to write. Pairing will help you find that abstraction.

Common pitfall of pairing

Look like a good way to start pair programming[..]02/13/pairing-pattern-ping-pong-pairing/

Discussing pair programming -

Experience sharing of working with expert - here is the disclaimer of the blog

Why pairing -[..]n/opinion-on-the-technion/#why_pair_wise

Pair Programming smells
- Unequal access
- Keyboard domination
- Pair marriage
- Worker/Rester
- Second Computer
- "Everyone does their own work"
- 90% of work 90% done
- People who can't stand to program together
- Debates lasting more than 10 minutes without producing new code
Pair-programming smalls -[..]com/2009/02/pair-programming-smells.html[..]ir-programming-disadvantages-of-100.html[..]012/08/08/in-praise-of-pair-programming/

Programmer Pairing with a Tester -

Showing how pair programming is better than traditional code review -[..]ment/design/code-reviews-with-five-whys/

(google search) (amazon search)

Wed Jan 15 19:29:13 HKT 2020 From /weblog/ai


(google search) (amazon search)

Thu Jan 09 21:25:01 HKT 2020 From /weblog/love


Proactive Advice for Dealing With Grief: Seek Out New Experiences -[..]0001424052702304610404579402940770172268

應對悲傷之方:尋求新體驗 -

不幸發生後,如何平靜溝通 -

Helping others helps your brain feel less pain -[..]-others-helps-your-brain-feel-less-pain/

(google search) (amazon search)

Sun Jan 05 20:05:34 HKT 2020 From /weblog/software_engineering/testing


WatiN, alternative of selenium -[..]2/how-to-unit-test-watin-mbunit-and.html another person saying this is better -

And someone work hard on make FITness and Selenium work together, more information can be found at[..]m/2006/09/fitnesse-selenium-wrapper.html[..]ng-web-tests-with-fitnesse-and-selenium/

A story of how to overcome various issues of applying selenium in acceptance testing -[..]07/08/selenium_is_the_pain_worth_it.html[..]9/webtest-vs-selenium-webtest-wins-13-5/ Why the functional test is important

How many resources should put in a functional test?

Kent discuss about how to balance low level unit test and high-level functional test -

(google search) (amazon search)

Thu Jan 02 20:23:21 HKT 2020 From /weblog/computer+science


algorithm dictionary -[..]5/is-there-an-encyclopedia-of-algorithms

How to answer algorithm question -[..]/26/how-to-rock-an-algorithms-interview/

List of algorithm -

Huffman encoding -[..]50-an-in-depth-look-at-huffman-encoding/

Discussion of using difference algorithm to get Fibonacci number, the matrix modeling is really nice -[..]/04/29/the-worst-algorithm-in-the-world/

What O(log n ) mean -[..]log/2010/01/06/analysis-of-an-algorithm/

Introduction to Dynamic Programming -[..]/06/introduction-to-dynamic-programming/

Introduction to pagerank -

Introduction to B+ tree -[..]indexes-and-how-they-impact-performance/

Text Editors: Algorithms and Architectures -[..]&siteSectionName=architecture-and-design

Matching Wildcards: An Algorithm -[..]888?elq=1dd35f241fda4e7e816c3d5e4d5451c2[..]everyday-algorithms-elevator-allocation/[..]ructure-and-algorithm-books-in-java.html

一致性算法 -[..]ki/download/attachments/6586375/raft.pdf[..]t-important-algorithms-of-graph-and.html[..]-is-algorithm-algorithm-is-any-well.html

Deep Dive Through A Graph: DFS Traversal -[..]rough-a-graph-dfs-traversal-8177df5d0f13

Queue theory -[..]1/what-happens-when-you-add-a-new-teller

(google search) (amazon search)

Tue Dec 17 21:29:53 HKT 2019 From /weblog/%E6%97%A5%E5%B8%B8%E7%94%9F%E6%B4%BB


Used Car Inspection Worksheet -

(google search) (amazon search)

Mon Dec 16 20:35:45 HKT 2019 From /weblog/business/stock


Oil price resource -

Lessons learned building an ML trading system that turned $5k into $200k -[..]trading-system-that-turned-5k-into-200k/

(google search) (amazon search)

Mon Dec 16 20:32:41 HKT 2019 From /weblog/trip/camping


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



How to Start a Fire, Plus 15 Other Outdoor Skills That Aren’t Complicated -[..]r-outdoor-skills-that-aren-t-complicated

(google search) (amazon search)

Mon Dec 16 12:45:02 HKT 2019 From /weblog/photographic/tools


If you using mac and like to have post editing of digital photo, Definitely worth to try:[..]n/entitlement/index.cfm?e=labs_lightroom

A free (until beta period finish) competitor of Aperture. The auto tuning work excellent. However, there is no plugin yet and require highend machine to work smooth. It take 400MB RAM for just a few RAW photo and it work like a dog on my poor mac mini. This is the first time of this 5 years I wish to have a better machine


Lightroom教學: 進階設定七件事 -[..]%AD%E5%AE%9A%E4%B8%83%E4%BB%B6%E4%BA%8B/

裁剪與校正 -[..]ching-lightroom-late-foundation-lesson-6

如何用自然光拍攝有溫度的逆光照片? -[..]klight-photo-6-big-questions-once-solved[..]ure-backlight-photo-post-processing-next

輕鬆搞定大光比,8步驟打造青海經幡唯美人像 -[..]the-qinghai-sutra-fan-beautiful-portrait[..]to-pull-out-a-nice-black-and-white-photo

讓後製處理效率事半功倍的快捷鍵 -[..]ing-more-efficient-and-do-more-with-less

(google search) (amazon search)

Mon Dec 09 21:21:19 HKT 2019 From /weblog/society


Old HK -[..]sfth6vHgTpNZZSEwcydt&bctid=1458384818001

History of HK economic growth -

Taiwanese view of 一國兩制與香港價值的流失 -

(google search) (amazon search)