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

Tue Jan 03 09:45:40 HKT 2017 From /weblog/java/concurrency


Similar to Barrier -

An example, show how to coordinate producer and consumer with Phaser -[..]08/java-7s-jucphaser-short-tutorial.html

When to use CountDownLatch, Semaphore, CyclicBarrier, Exchanger and Phaser -

(google search) (amazon search)

Tue Jan 03 09:42:59 HKT 2017 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

(google search) (amazon search)

Fri Dec 30 11:59:27 HKT 2016 From /weblog/learning


A prioritized list of desired traits:

Critical thinking
Business knowledge
Technical knowledge

My only suspect is Technical knowledge is lower than Business knowledge, what will you think about this? -

Difference type of employee -[..]onate_users/2007/03/is_your_app_an_.html

The Power of Introverts: A Manifesto for Quiet Brilliance -[..]fm?id=the-power-of-introverts&print=true[..]How-to-Succeed-as-an-Introvert/ba-p/1522

Honesty -[..]elf-and-starting-from-where-you-are.html

23 Signs You’re Emotionally Intelligent & Destined for Success:

The ability to listen and to speak to the “human needs” of coworkers and customers and make them feel understood and respected
Ability to build relationships and connect with others on a deep level
Good conversation skills
The ability to propose solutions to problems, not just talk about problems
Meaningfully contribute to brainstorming
Ability to write well
Problem-solving skills
Being a team player
Being likeable
Strong work ethic
Optimism/positive attitude
Good communication skills
Storytelling abilities for presentations
Time management abilities
Being good at “reading” people
Exercise tact when delivering a message[..]onally-intelligent-destined-for-success/

What Makes Good Traders Great Entrepreneurs

* An intense drive to succeed;
* The ability to adapt to changing circumstances;
* Decisiveness
* Energy
* Perseverance and determination
* Risk tolerance
* Strong self-confidence[..]14/03/what-makes-good-traders-great.html

What is professional -

How to change your character: 索托說:“你應該從改變行為做起,接下來,如果你能長期保持這種新行為,這種行為就會被鎖定下來。 -

If I say just trust me and I’m wrong, I’m untrustworthy. If I say here’s my work and it’s wrong, I’m honest, human, and serving scientific progress. -

(google search) (amazon search)

Tue Dec 27 00:56:08 HKT 2016 From /weblog/health


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

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

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

5 Things We Need For Sustainable Performance At Work -[..]for-sustainable-performance-at-work.html

什么時候說“不”? -

界(刀)手 -[..]%92%E5%BA%A6%E4%BD%9C%E6%8E%A2%E8%A8%8E/

【朝朝正能量】七招減壓秘技讓你活在當下 -[..]realtime/international/20140724/52721787

【健康online】deadline趕到無氣抖 上班族5招踢走工作壓力 -

(google search) (amazon search)

Sun Dec 25 22:44:07 HKT 2016 From /weblog/health


Scarpa Hiking Shoes -


應付沙蚤 -

Tips of choosing hiking shoes -


(google search) (amazon search)

Thu Dec 22 15:47:37 HKT 2016 From /weblog/java/fundamental


Detailed decision of arraylist and linkedlist, consist of a lot benchmark results, take a look if interested:

One bug from java HashMap explaining it can be difficult to achieve fail-fast -

Performance difference of difference collection -[..]0/12/what-is-faster-jvm-performance.html[..]/2011/07/14/java-collection-performance/

A treelist implementation -

Implement LRU cache using LinkedHashMap -[..]11/06/java-secret-lru-cache-in-java.html

Problem of using soft-reference for automate cache clean up -[..]

if it claims that an element is contained in it, this might be in error, but if it claims that an element is not contained in it, then this is definitely true. -

Comment of various collections library -

List of FAQ of Java collections -[..]lections-interview-questions-and-answers

Java Collections – Performance (Time Complexity) -[..]1/java-collections-performance-time.html

Performance improvement for HashMap for Java8 -[..]hashmap-performance-improvements-in.html

Introduction to GS collection -[..]s/gs-collections-examples-tutorial-part1[..]s/gs-collections-examples-tutorial-part2

removeEldestEntry, interesting function of linkedhashmap -[..]/prevent-your-caches-from-exploding.html

(google search) (amazon search)

Sat Dec 17 21:37:44 HKT 2016 From /weblog/child


Discussion about using monday as prize -

bullying -[..]-about-bullying-you-probably-didnt-know/

(google search) (amazon search)

Thu Dec 15 23:54:14 HKT 2016 From /weblog/misc


(google search) (amazon search)

Thu Dec 15 23:38:28 HKT 2016 From /weblog/trip


(google search) (amazon search)

Mon Dec 12 00:37:16 HKT 2016 From /weblog/finance

cas study

How GF Securities do realtime event processing -[..]-event-processing-engine-based-on-Lambda

Future of fintech? -[..]/blog/fintech-threat-financial-orthodoxy

(google search) (amazon search)

Wed Dec 07 18:48:22 HKT 2016 From /weblog/design

work with legacy

Simple ways to improve legacy code -

One approach to work with legacy code, instead of phrase by phrase or part by part, identify and improve the domain part first -[..]-efforts-to-replace-legacy-systems-fail/[..]egacy-applications-tests-modularization/

Note of common point for refactoring with legacy application -[..]/2016/10/unintentionally-obfuscated.html

(google search) (amazon search)

Wed Dec 07 17:16:48 HKT 2016 From /weblog/learning


‘Trust me, this phone doesn’t need the first hundred pages.’ -[..]atts-bet-on-apple-mobilized-the-company/

'You've got to find what you love,' Jobs says -

Story about how Steve Job / Any Lee overcome the downturn -[..]6/12/07/stevejobs-anglee-believeyourself

(google search) (amazon search)

Sat Dec 03 09:41:11 HKT 2016 From /weblog/java/libraries

code generation

DSL of code generation -[..]e-codemodel-to-generate-java-source.html

jannocessor/ -[..]8/java-code-generation-with-jannocessor/

Living in the Matrix with Bytecode Manipulation -[..]cles/Living-Matrix-Bytecode-Manipulation[..]cles/Living-Matrix-Bytecode-Manipulation

(google search) (amazon search)

Wed Nov 30 23:41:13 HKT 2016 From /weblog/history


Childhood memories of 1920s Hong Kong -

《 香港老字號:廖同合荳品廠 》 -

《 香港老字號:「慈善遮王」何希記造遮 》 -

Tram -

Inside Kowloon walled city -

1957-8: Andrew Suddaby's photos -

一樓一古:宅在摩星嶺文物屋 -[..]supplement/culture/art/20130527/18272607

Tong Lau / 唐樓, the Hong Kong shophouse -

Some old color photos -

【動畫●橫瀾島牛奶叔】最後的燈塔守護者 28年自給自足最開心 -[..]om/realtime/supplement/20161125/55956449

(google search) (amazon search)

Wed Nov 30 22:12:09 HKT 2016 From /weblog/nature


☆ HKWildlife Library ☆ -

(google search) (amazon search)

Wed Nov 30 12:57:15 HKT 2016 From /weblog/unix


25 years old bug -

The problem of copying to other machine and screw up the permission -[..]nix-horror-stories-good-thing-about.html

(google search) (amazon search)

Tue Nov 29 23:29:22 HKT 2016 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)

Tue Nov 29 23:23:39 HKT 2016 From /weblog/quote


PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase their population by 263,000 - Konstantin Ignatyev

James Lovelock - "Sadly, it's much easier to create a desert than a forest."

George Bernard Shaw - "The best place to find God is in a garden. You can dig for him there."

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

(google search) (amazon search)

Tue Nov 29 23:17:21 HKT 2016 From /weblog/trip/travelling


Lakes -

一定要去!世上 15 個最美湖泊 -[..]-in-the-world-a-photographers-wish-list/

五大人生必到之湖 -[..]realtime/international/20140730/52742210

(google search) (amazon search)

Tue Nov 29 23:15:40 HKT 2016 From /weblog/trip/travelling


全球 4 座賣萌的動物島嶼 -
Beautiful Islands -[..]s-you-might-not-know-who-they-belong-to/
小島在呼救 -[..]ernational-day-for-biological-diversity/

(google search) (amazon search)

Tue Nov 29 11:43:01 HKT 2016 From /weblog/java/features


We can link java source in javadoc page:[..]amere/Weblog/cool_javadoc_trick#comments[..]/inheriting-javadoc-method-comments.html

(google search) (amazon search)

Tue Nov 29 00:12:57 HKT 2016 From /weblog/design/interview


"They build their own infrastructure for performance, reliability, and cost control reasons. By building it themselves they never have to say Amazon went down because it was company X's fault. Their software may not be more reliable than others, but they can fix, debug, and deployment much quicker than when working with a 3rd party."

Shel Kaphan -

(google search) (amazon search)

Tue Nov 29 00:10:37 HKT 2016 From /weblog/software_engineering


“Introduction of Lean Project Management” -

Applying Kanban -[..]s/applying-kanban-to-it-processes-part-2[..]-and-kanban-for-it-operation-kanban.html

Deming’s 14 Points, obvious and theoric, but still a good reading -[..]ng-lean-thinking-to-software-development

Free Online Kanban Tools -

(google search) (amazon search)