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

Fri Jan 20 11:52:35 HKT 2017 From /weblog/unix


Some useful tools -

Tuning -[..]1/17/optimizing-linux-for-slow-computers

(google search) (amazon search)

Thu Jan 19 22:46:27 HKT 2017 From /weblog/health/food


糖會要了我們的命? -[..]ary-nutrition-science?curator=MediaREDEF

(google search) (amazon search)

Tue Jan 17 23:43:05 HKT 2017 From /weblog/business


How to react to information leak -[..]ns-from-37-minutes-in-an-amazon-war-room

(google search) (amazon search)

Tue Jan 17 23:09:08 HKT 2017 From /weblog/design


(google search) (amazon search)

Tue Jan 17 22:58:18 HKT 2017 From /weblog/design


5 Hints You're Using A Map When You Should Be Using a Cache? -[..]ints-your-using-map-when-you-should.html

How hibernate design the cache -

Consider to do more careful update, not just update DB and dirty cache, but update DB and cache in a same time -

Caching can be architectural smell, some hint and some alternative -[..]2/is_caching_an_architectural_smell.html

General caching discussion -[..]are-architecture/caching-techniques.html[..]10-program-busting-caching-mistakes.html[..]B/web-cache/cachingmistakes.aspx?azid=74

(google search) (amazon search)

Tue Jan 17 22:36:35 HKT 2017 From /weblog/ai


Amazon Introduces Rekognition for Image Analysis -

(google search) (amazon search)

Thu Jan 12 22:52:17 HKT 2017 From /weblog/computer+science



(google search) (amazon search)

Fri Jan 06 22:08:55 HKT 2017 From /weblog/software_engineering/team


Discussion toolkit -[..]YCOLUMN&ObjectId=12875&objecttype=ARTCOL

Other tips -

Appreciation inquiry, a communication tool helping adopting new thing -

A lot of engineer will silence when under stress, how do you communicate with them that time? Here are some suggestions -[..]048&elq=1C1DC5420DC8451CB08AEBA44D4F6BC7

There are five dangerous faults, which may effect to a software engineer:[..]/the-five-faults-of-a-software-engineer/

Benefit of whiteboard over software, communication! -

How to communicate with difference type of learners
Active versus reflective learners: "Active learners tend to retain and understand information best by doing something active with it--discussing or applying it or explaining it to others. Reflective learners prefer to think about it quietly first."
Sensing versus intuitive learners: "Sensors often like solving problems by well-established methods and dislike complications and surprises; intuitors like innovation and dislike repetition."
Visual versus verbal learners: "Visual learners remember best what they see--pictures, diagrams, flow charts, time lines, films, and demonstrations. Verbal learners get more out of words--written and spoken explanations. Everyone learns more when information is presented both visually and verbally."
Sequential versus global learners: "Sequential learners tend to gain understanding in linear steps, with each step following logically from the previous one. Global learners tend to learn in large jumps, absorbing material almost randomly without seeing connections, and then suddenly 'getting it.'"[..]/03/rich-communication-in-real-life.html

How to handle tough discussion -[..]iscussing-the-undiscussable-book-review/

Good message structure underlies all forms of effective workplace communication -[..]ood-message-structure-underlies-all.html

A methodology to test the feeling of the team -[..]2/12/web-discussions-flat-by-design.html

It is the most important skill for programmer -[..]/the-most-important-skill-of-programmer/ and also there are pointer of how to improve your communication skill

Slack is good? -[..]per-day-on-slack-29f8b08c0d82#.l27wrcft0

(google search) (amazon search)

Wed Jan 04 15:39:48 HKT 2017 From /weblog/google/android


How to submit application -[..]ting-your-application-to-android-market/

How to use Market to install dependence at emulator -[..]ing-google-play-on-android-emulator.html

Sync with google account from your app -[..]ogle-account-integration-in-android.html

How Andorid improve performance -[..]re-dynamic-with-runtime-code-generation/

Tips for Android studio, like common key-binding -[..]d-resources-android-developers-must-know

(google search) (amazon search)

Tue Jan 03 09:58:28 HKT 2017 From /weblog/database

database comparison

Wiki of common DBMS comparison -[..]rison_of_SQL_database_management_systems

Somebody comment that postgresql is less competency than MSSQL, see the comment

Alternative DBMS -[..]ternative-open-source-databases-engines/[..]0-most-popular-db-engines-sql-and-nosql/[..]2015/05/25/what-makes-a-solution-mature/

Comparing major RDBMS -[..]elect-the-appropriate-rdmbs-for-the-oltp

(google search) (amazon search)

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)

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)