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

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)


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

personality


A prioritized list of desired traits:

Character
Critical thinking
Motivation
Creativity
Business knowledge
Technical knowledge

My only suspect is Technical knowledge is lower than Business knowledge, what will you think about this? - http://www.davenicolette.net/agile/index.blog?entry_id=1220879

Difference type of employee - http://headrush.typepad.com[..]onate_users/2007/03/is_your_app_an_.html

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

Honesty - http://www.michelemmartin.com[..]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
Self-confidence
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

http://www.thepowerofintroverts.com[..]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

http://traderfeed.blogspot.com.au[..]14/03/what-makes-good-traders-great.html

What is professional - http://cn.wsj.com/big5/20140513/DJL071521.asp?source=rss

How to change your character: 索托說:“你應該從改變行為做起,接下來,如果你能長期保持這種新行為,這種行為就會被鎖定下來。 - http://cn.wsj.com/big5/20140502/lif114051.asp?source=rss

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. - http://simplystatistics.org/2016/12/29/some-stress-reducers/

(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)



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

hongkong


Childhood memories of 1920s Hong Kong - http://gwulo.com/node/17419

《 香港老字號:廖同合荳品廠 》 - http://www.dcfever.com/column/read.php?id=2095

《 香港老字號:「慈善遮王」何希記造遮 》 - http://www.dcfever.com/column/read.php?id=1975

Tram - gwulo.com/node/19084

Inside Kowloon walled city - http://projects.wsj.com/kwc/#chapter=intro

1957-8: Andrew Suddaby's photos - http://gwulo.com/node/28655

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

Tong Lau / 唐樓, the Hong Kong shophouse - http://gwulo.com/node/34384

Some old color photos - http://gwulo.com/node/34665

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

(google search) (amazon search)


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

book



☆ HKWildlife Library ☆ - http://www.hkwildlife.net/Forum/viewthread.php?tid=51440

(google search) (amazon search)


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

bug


25 years old bug - http://www.osnews.com/story/19731/The-25-Year-Old-UNIX-Bug

The problem of copying to other machine and screw up the permission - http://unixhorrorstories.blogspot.hk[..]nix-horror-stories-good-thing-about.html

(google search) (amazon search)


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

Indonesia


遊記分享 - 詩巴丹神山十二日瘋狂之旅 (更新左最美的神山16/3) - http://go2nature.net[..]t=0&sid=af04440b821a247a2384f9f4e5ec15e1

http://martinfowler.com/bliki/Saba.htmlReally need to go this place once - http://thenatureoftheworlds.blogspot.hk[..]2/pangrango-national-park-indonesia.html

Really need to go this place once - http://thenatureoftheworlds.blogspot.hk[..]2/pangrango-national-park-indonesia.html

【印尼】峇里島十大必去景點和體驗 - http://blog.kkday.com/2016/11/Bali10mustdo.html

(google search) (amazon search)


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

environment


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

lake



Lakes - http://list25.com/25-largest-lakes-in-the-world/?view=all

一定要去!世上 15 個最美湖泊 - http://www.dcfever.com/news/readnews.php?id=15776&link=guid https://iso.500px.com[..]-in-the-world-a-photographers-wish-list/

五大人生必到之湖 - http://hk.apple.nextmedia.com[..]realtime/international/20140730/52742210


(google search) (amazon search)


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

island



全球 4 座賣萌的動物島嶼 - http://www.dcfever.com/travel/deal.php?id=17278&link=guid
Beautiful Islands - http://list25.com[..]s-you-might-not-know-who-they-belong-to/
小島在呼救 - http://www.greenpeace.org[..]ernational-day-for-biological-diversity/



(google search) (amazon search)


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

javadoc


We can link java source in javadoc page: http://blogs.sun.com[..]amere/Weblog/cool_javadoc_trick#comments

http://marxsoftware.blogspot.hk[..]/inheriting-javadoc-method-comments.html

(google search) (amazon search)


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

Amazon


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

http://highscalability.com/amazon-architecture

Shel Kaphan - http://www.infoq.com/cn/articles/talk-with-amazon-shel-kaphan

(google search) (amazon search)


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

lean


“Introduction of Lean Project Management” - http://blog.aaladdin.com/?p=29

Applying Kanban - http://blogs.lessthandot.com[..]s/applying-kanban-to-it-processes-part-2 http://jchyip.blogspot.com[..]-and-kanban-for-it-operation-kanban.html

Deming’s 14 Points, obvious and theoric, but still a good reading - http://leanandkanban.wordpress.com/2011/07/15/demings-14-points/

http://www.infoq.com[..]ng-lean-thinking-to-software-development

Free Online Kanban Tools - http://www.scrumexpert.com/tools/free-online-kanban-tools/

(google search) (amazon search)