RSS feed [root] /weblog




login:

password:

title search:




 


Tue Jan 17 22:34:04 HKT 2017

weblog


log down some useful resource


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

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

desktop


Some useful tools - https://nicolas.perriault.net/code/2016/from-osx-to-ubuntu/

Tuning - http://www.akitaonrails.com[..]1/17/optimizing-linux-for-slow-computers

(google search) (amazon search)


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

sugar


糖會要了我們的命? - http://cn.wsj.com/big5/20161227/LIF161227.asp

http://www.vox.com[..]ary-nutrition-science?curator=MediaREDEF

(google search) (amazon search)


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

react


How to react to information leak - https://www.inside.com.tw[..]ns-from-37-minutes-in-an-amazon-war-room

(google search) (amazon search)


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

gc


https://blog.plan99.net[..]rbage-collection-911ef4f8bd8e#.wr03zaasu

(google search) (amazon search)


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

cache


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

How hibernate design the cache - http://www.javalobby.org/java/forums/t48846.html

Consider to do more careful update, not just update DB and dirty cache, but update DB and cache in a same time - http://dormando.livejournal.com/495593.html

Caching can be architectural smell, some hint and some alternative - http://www.codingthearchitecture.com[..]2/is_caching_an_architectural_smell.html

General caching discussion - http://tutorials.jenkov.com[..]are-architecture/caching-techniques.html http://www.infoq.com/cn/news/2017/01/Program-design-how-cache

http://highscalability.com[..]10-program-busting-caching-mistakes.html http://www.codeproject.com[..]B/web-cache/cachingmistakes.aspx?azid=74

(google search) (amazon search)


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

amazon


Amazon Introduces Rekognition for Image Analysis - https://www.infoq.com/news/2017/01/AWS-Rekognition

(google search) (amazon search)


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

cryptocurrency


https://www.infoq.com/articles/blockchain-middleware

揭秘比特币和区块链(五):深入理解比特币交易的脚本- http://www.infoq.com[..]erstanding-of-bitcoin-transaction-script

(google search) (amazon search)



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

communication


Discussion toolkit - http://www.stickyminds.com[..]YCOLUMN&ObjectId=12875&objecttype=ARTCOL

Other tips - http://www.infoq.com/articles/satir-communication-model-teams

Appreciation inquiry, a communication tool helping adopting new thing - http://www.threeriversinstitute.org/AppreciatingYourWayToXP.htm

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

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

Benefit of whiteboard over software, communication! - http://www.iamhukai.com/?p=422

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.'"

http://pagilista.blogspot.com[..]/03/rich-communication-in-real-life.html

How to handle tough discussion - http://www.markhneedham.com[..]iscussing-the-undiscussable-book-review/

Good message structure underlies all forms of effective workplace communication - http://jchyip.blogspot.com[..]ood-message-structure-underlies-all.html

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

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

Slack is good? - https://engineering.policygenius.com[..]per-day-on-slack-29f8b08c0d82#.l27wrcft0

(google search) (amazon search)


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

development


How to submit application - http://mobile.tutsplus.com[..]ting-your-application-to-android-market/

How to use Market to install dependence at emulator - http://piotrbuda.eu[..]ing-google-play-on-android-emulator.html

Sync with google account from your app - http://www.androidhub4you.com[..]ogle-account-integration-in-android.html

How Andorid improve performance - http://zeroturnaround.com[..]re-dynamic-with-runtime-code-generation/

Tips for Android studio, like common key-binding - http://www.infoq.com[..]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 - http://en.wikipedia.org[..]rison_of_SQL_database_management_systems

Somebody comment that postgresql is less competency than MSSQL, see the comment
http://www.baubels.net/blog/?p=88

Alternative DBMS - http://www.webresourcesdepot.com[..]ternative-open-source-databases-engines/

http://blog.jooq.org[..]0-most-popular-db-engines-sql-and-nosql/

http://www.xaprb.com[..]2015/05/25/what-makes-a-solution-mature/

http://www.javacodegeeks.com/2015/07/mysql-vs-mongodb.html

Comparing major RDBMS - http://www.infoq.com[..]elect-the-appropriate-rdmbs-for-the-oltp

(google search) (amazon search)


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

synchronisers


Similar to Barrier - http://tech.puredanger.com/2008/07/08/java7-phasers/

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

When to use CountDownLatch, Semaphore, CyclicBarrier, Exchanger and Phaser - https://codurance.com/2016/08/24/the-java-synchronisers/

(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 - http://www.evanjones.ca/jvm-mmap-pause.html

How linkedin turn the GC - http://engineering.linkedin.com[..]ughput-and-low-latency-java-applications

Using generational & concurrent GC collector - http://www.javacodegeeks.com[..]/04/ibm-jvm-tuning-gencon-gc-policy.html

Full VM option list : http://blogs.sun.com/roller/resources/watt/jvm-options-list.html, update for Java7 - http://nerds-central.blogspot.com[..]ot.com/2011/07/all-jvm-7-xx-options.html http://stas-blogspot.blogspot.com[..]ost-complete-list-of-xx-options-for.html

A simplified list for some frequency use options - http://rdafbn.blogspot.com.au[..]rbage-collector-guidelines-and-tips.html

HotSpot JVM garbage collection options cheat sheet - http://aragozin.blogspot.com[..]spot-jvm-garbage-collection-options.html http://www.oracle.com[..]va/javase/tech/vmoptions-jsp-140102.html

An example and story about effect of difference VM parameter affecting the performance - http://www.javaspecialists.eu/archive/Issue191.html

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

Discussion about -XX:MinHeapFreeRatio parameter - http://www.gossamer-threads.com[..]s.com/lists/lucene/java-user/44286#44286

The other detailed guide for VM parameters tuning - http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

Here is a more simple cookbook - http://java.sun.com/performance/reference/whitepapers/tuning.html

A outdated (1.4) , compehensive but still not really too detailed, overview of various GC tuning - http://www.petefreitag.com/articles/gctuning/

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

Some say is useful if you have huge memory
-XX:+UseLargePages
http://blogs.sun.com[..]dagastine?entry=java_se_tuning_tip_large

Some say below parameter keep GC in low pause
-XX:MaxGCPauseMillis=5000
Some say below parameter are very optimal
-XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:NewSize=1200m -XX:SurvivorRatio=16
http://www.theserverside.com[..]d.tss?thread_id=41258&ASRC=EM_NNL_347804
Some say those parameter is good
-XX:+UseConcMarkSweepGC
-XX:ParallelCMSThreads=1
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=10
http://blog.mikiobraun.de/2010/08/cassandra-gc-tuning.html

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

-XX:+EliminateAutoBox
-XX:AutoBoxCacheMax=20000
-XX:BiasedLockingStartupDelay=500
-XX:+DoEscapeAnalysis
-XX:+OptimizeStringConcat
-XX:+OptimizeFill

Generate dump with OOME - -XX:+HeapDumpOnOutOfMemoryError

GC log sample of -XX:+UseConcMarkSweepGC -XX:PrintFLSStatistics=1 -XX:+PrintGCDetails - https://gist.github.com/1329783

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

Explanation for few performance related VM parameters - http://www.techpaste.com[..]ine-options-jvm-performance-improvement/

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

For G1GC - https://dzone.com[..]e-first-garbage-collector-tuning-flags-1

(google search) (amazon search)


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

pressure


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


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

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

5 Things We Need For Sustainable Performance At Work - http://www.targetprocess.com[..]for-sustainable-performance-at-work.html

什么時候說“不”? - http://cn.wsj.com/big5/20140528/lif112842.asp?source=rss

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


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

【健康online】deadline趕到無氣抖 上班族5招踢走工作壓力 - http://hk.apple.nextmedia.com/realtime/news/20161227/56084029

(google search) (amazon search)


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

hiking


Scarpa Hiking Shoes - http://go2nature.net/forum/viewtopic.php?p=1066141#1066141

中暑之後怎麼辦?- http://cn.wsj.com/big5/20110815/hea073758.asp

應付沙蚤 - http://go2nature.net/forum/viewtopic.php?p=1179333#1179333

Tips of choosing hiking shoes - http://blog.comefromhk.com/2014/01/2705/

蟹行- http://hk.apple.nextmedia.com/realtime/news/20161222/56012348

(google search) (amazon search)



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

collections


Detailed decision of arraylist and linkedlist, consist of a lot benchmark results, take a look if interested: http://javachaos.crazyredpanda.com/?p=99

One bug from java HashMap explaining it can be difficult to achieve fail-fast - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6625725 http://java.dzone.com/articles/do-your-iterators-always-fail

Performance difference of difference collection - http://java-persistence-performance.blogspot.com[..]0/12/what-is-faster-jvm-performance.html http://leolewis.website.org[..]/2011/07/14/java-collection-performance/

A treelist implementation - http://binkley.blogspot.com/2007_02_01_archive.html

Implement LRU cache using LinkedHashMap - http://vanillajava.blogspot.com[..]11/06/java-secret-lru-cache-in-java.html

Problem of using soft-reference for automate cache clean up - http://comments.gmane.org[..]gmane.comp.java.jsr.166-concurrency/7982

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. - http://codingjunkie.net/guava-bloomfilter/

Comment of various collections library - http://plumbr.eu/blog/selecting-your-collections-library

List of FAQ of Java collections - http://www.journaldev.com[..]lections-interview-questions-and-answers

Java Collections – Performance (Time Complexity) - http://infotechgems.blogspot.com.br[..]1/java-collections-performance-time.html

Performance improvement for HashMap for Java8 - http://www.nurkiewicz.com[..]hashmap-performance-improvements-in.html

Introduction to GS collection - http://www.infoq.com[..]s/gs-collections-examples-tutorial-part1 http://www.infoq.com[..]s/gs-collections-examples-tutorial-part2

removeEldestEntry, interesting function of linkedhashmap - http://www.ageofjava.com[..]/prevent-your-caches-from-exploding.html

(google search) (amazon search)


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

education


Discussion about using monday as prize - http://cn.wsj.com/big5/20121228/inv072631.asp?source=rss

bullying - http://list25.com[..]-about-bullying-you-probably-didnt-know/

(google search) (amazon search)


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

IOT


http://www.instructables.com[..]om/id/Uber-Home-Automation-w-Arduino-Pi/

(google search) (amazon search)


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

hk_camp


http://welcomebeach.com.hk/

(google search) (amazon search)


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

cas study


How GF Securities do realtime event processing - http://www.infoq.com[..]-event-processing-engine-based-on-Lambda

Future of fintech? - https://www.thoughtworks.com[..]/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 - http://www.onjava.com/lpt/a/4805

One approach to work with legacy code, instead of phrase by phrase or part by part, identify and improve the domain part first - http://gojko.net[..]-efforts-to-replace-legacy-systems-fail/

http://arne-mertz.de[..]egacy-applications-tests-modularization/

Note of common point for refactoring with legacy application - http://marxsoftware.blogspot.hk[..]/2016/10/unintentionally-obfuscated.html

(google search) (amazon search)


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

Steve


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

'You've got to find what you love,' Jobs says - http://news.stanford.edu/news/2005/june15/jobs-061505.html

Story about how Steve Job / Any Lee overcome the downturn - https://www.inside.com.tw[..]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 - http://namanmehta.blogspot.com.au[..]e-codemodel-to-generate-java-source.html

jannocessor/ - http://maciejwalkowiak.pl[..]8/java-code-generation-with-jannocessor/

Living in the Matrix with Bytecode Manipulation - https://www.infoq.com[..]cles/Living-Matrix-Bytecode-Manipulation http://www.infoq.com[..]cles/Living-Matrix-Bytecode-Manipulation

(google search) (amazon search)