RSS feed [root] /



title search:


Tue Jun 05 10:22:22 HKT 2018

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

Sun Apr 28 00:45:21 HKT 2019 From /weblog/design/examples


ZeroMQ: The Design of Messaging Middleware -[..]&siteSectionName=architecture-and-design

When NOT to use a message queue -

现代IM系统中的消息系统架构 - 架构篇 -

(google search) (amazon search)

Sat Apr 20 01:13:56 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

(google search) (amazon search)

Wed Apr 17 00:13:12 HKT 2019 From /weblog/learning


焦慮能讓你表現更出眾 -

Importance of finding out your Signature Strengths -[..]ature-strengths-and-trading-success.html

那么,你應該從哪做起呢?加州德爾馬(Del Mar)的心理學家理查德‧萊瓦克(Richard Levak)表示:“首先,我們必須認識到性格中有哪些因素對我們構成了影響。如果我愛發牢騷,好爭辯,還有點多疑,我總是因為跟同事吵架,老是責怪別人而被解雇,那我就必須意識到得改變一下。”

How you can use your negative emotion -[..]reat-depression/304247/?single_page=true

Performance improvements… or experiments? -[..]ormance-improvements-or-experiments.html[..]e-you-operating-in-peak-performance.html

This, I find, is the single greatest impediment to pursuit of excellence: Most of us are simply too busy doing our jobs well to become truly world class at what we do. I occasionally ask traders to go back to old journal entries and tell me how much time they spent reviewing those entries and assessing their progress over the past week. In the great majority of instances, the journal entries are never revisited! -[..]ndar-into-a-peak-performance-tool/print/

10-questions-can-dramatically-change-life and business (I don't think so, but anyway a good reading) -[..]ns-can-dramatically-change-life-business

零成本提升工作和健身效率之道:科學擇時 -

Another article about why it is important to do thing at right timing -[..]dont-i-trade-my-plan-when-i-plan-my.html

a) Using a Calendar
b) Working in Shorter, Uninterrupted Segments
c) Mindfulness
d) Self-Reminders[..]cognitive-behavioral-techniques-for.html[..]els-i-find-repeatedly-useful-936f1cc405d

The point is finding the prime time -[..]m-won-t-make-you-successful-b3c77921d9fd[..]wer-of-doing-nothing-at-all-73eeea488b8b[..]-evolved-and-its-benefits-versus-modesty[..]y-changing-your-environment-270ce4f141e9

Slow and steady wins the race -[..]cience/short-breaks-memory-skill-2363625

(google search) (amazon search)

Fri Apr 12 00:46:57 HKT 2019 From /weblog/learning


These 3 Hacks Will Make You Remember More -[..]will-make-you-remember-more-b30a3d9b3136

When trying to memorise new material, it’s easy to assume that the more work you put in, the better you will perform. Yet taking the occasional down time – to do literally nothing – may be exactly what you need. Just dim the lights, sit back, and enjoy 10-15 minutes of quiet contemplation, and you’ll find that your memory of the facts you have just learnt is far better than if you had attempted to use that moment more productively. -[..]effortless-way-to-strengthen-your-memory

This one is funny: "Distract yourself. You might feel like you’re being super productive and focused by sticking to your work, but you’re less likely to recall it later." -[..]-and-it-can-actually-be-fun-99a9c9b95d5b[..]proof-techniques-to-enhance-your-memory/[..]-make-you-smarter?ocid=global_future_rss

Drawing something makes it easier to remember than writing it down -[..]drawing-better-than-writting-memory-0432[..]s-your-memory-is-stranger-than-you-think

Frustrated at forgetting stuff? Some simple tricks could have dramatic positive effects.
1) Walk backwards
2) Do a drawing
3) Do some exercise, but get the timing right
4) Do nothing
5) Take a nap[..]-ways-you-could-become-a-memory-champion

(google search) (amazon search)

Fri Apr 12 00:44:19 HKT 2019 From /weblog/design


Nothing specific, mostly code clean up, refactoring and simplification, the performance boost was a surprise. <- This is a good one -[..]12/07/disruptor-v3-faster-hopefully.html

Is there anything we can do about this when designing algorithms and data-structures? Yes there is a lot we can do. If we perform chunks of work on data that is co-located, and we stride around memory in a predictable fashion, then our algorithms can be many times faster. For example rather than using bucket and chain hash tables, like in the JDK, we can employ hash tables using open-addressing with linear-probing. Rather than using linked-lists or trees with single items in each node, we can store an array of many items in each node. -[..]emory-access-patterns-are-important.html

Skip lists are used instead of b-trees because b-trees don’t scale. -[..]ast-mvcc-inmem-lockfree-codegen-and.html

Beware about the performance issue of static initalization -[..]-cause-problems-with-multi-threading-how

Experiment show why arraylist is better in most cases -

How to design low latency application in java -[..]5/chronicle-and-low-latency-in-java.html[..]ciples-of-high-performance-programs.html[..]principles-of-high-performance-programs/

Suggestion about how to determine number of thread pool -[..]rmine-Web-Applications-Thread-Poll-Size/

Beware the performance penalty of logging -

Keep thing dynamic -[..]ciples-of-high-performance-programs.html[..]st-rule-of-performance-optimisation.html[..]u/~rcs/research/interactive_latency.html[..]aling-data-platforms.html?SSLoginOk=true

Discuss about developing low latency financial application -

Discussion of object pooling -[..]-but-forgotten-trick-object-pooling.html[..]m_performance_part_1_object_pooling.html

Efficiency - the amount of work you need to do.
Performance - how fast you can do that work
Efficiency - governed by your algorithm
Performance - governed by your data structures.[..]e-difference-between-efficiency-and.html

Turning off power save mode on the CPU reduced brought the max latency from 11 msec down to 8 msec.
Guaranteeing threads will always have CPU resources using CPU isolation and thread affinity brought the maximum latency down to 14 microseconds.[..]eduler-jitter-using-cpu-isolation-a.html[..]

About design for performance for webapi -[..]y-decision-as-a-service-design-patterns/

check list -[..]ery-software-development-team-should-ask

Beware if system utilization over 80% -[..]/20/service-latency-and-utilisation.html

scalable-io-events-vs-multithreading-based -[..]lable-io-events-vs-multithreading-based/

How to find out bottleneck -[..]entile-latencies-in-Chronicle-Queue.html

Compiler Performance and LLVM -

(google search) (amazon search)

Fri Apr 12 00:43:30 HKT 2019 From /weblog/science


Now the richest man of China is the scientist who research on solar cell

Biodiesel -

菠菜發電 -[..]h?q=%E8%8F%A0%E8%8F%9C%E7%99%BC%E9%9B%BB

Nuclear battery -

如何開采頁岩油 -[..]ics-environmental-risk-fracking-18052018

關于可再生能源的六個謬誤 -

Solar plant -

香港工廠如何將地溝油變廢為寶 -

Energy facts -[..]-energy-that-will-surprise-you/?view=all

About gas and oil -[..]y-didnt-know-about-gas-and-oil/?view=all

petroleum -

Transparent solar technology could provide 40% of US power if deployed across all glass surfaces -[..]ology/transparent-solar-us-poewr-0432432

electricity hum -[..]ature-post/why-electricity-hum-07112017/

How quick charge work -[..]science/physics/microwave-oven-from-ww2/

沒停電不代表系統穩定:台灣電力調度 -[..]16068-electricity-power-system-in-Taiwan

(google search) (amazon search)

Wed Apr 10 17:06:39 HKT 2019 From /weblog/java/performance


Improvement from io -> nio, then -> MappedByteBuffer -[..]blog&show=File-IO-in-Java.html&Itemid=29

How to improve performance by tuning the IO -[..]enefits-of-stream-buffering-in-Java.html

(google search) (amazon search)

Tue Apr 09 18:38:55 HKT 2019 From /weblog/software_engineering/testing


Yet other discussion of Stubs, Fakes, and Mock Objects -

While reviewing this article, Marty Andrews pointed out an important insight: there are two ways to use a mock object, either as a testing technique or as a design technique, and the intended use helps shape the available choices.

Someone post some arguement that using mock probably a bad idea , which look like a endless arguement... -[..]xRuiz?entry=mocks_for_concrete_class_can

Alberto Savoia on Testing the Untestable, raise a point that mocking make testing more portable, it probably true, but database setup may be not that difficult to port. -[..]ut-isolation-but-about-responsibilities/[..]ing-the-invasion-of-dots-and-parentheses

Fakes should have their own tests -[..]/testing-on-toilet-fake-your-way-to.html

Again, other post on pros and cons for difference approach -

(google search) (amazon search)

Sat Apr 06 00:15:46 HKT 2019 From /weblog/software_engineering/team

Team work

Building trust for team -[..]nity-of-practice-and-trust-building.html

One nice article about teamwork:

Directing (hi directive + lo supportive, for "enthusiastic beginners")
Supporting (hi directive + hi supportive, for "disillusioned learners")
Coaching (lo directive + hi supportive, for "reluctant contributors")
Delegating (lo directive + lo supportive, for "peak performers")[..]bbthreads/showflat.php?Cat=&Number=64809

Is it a people problem or process problem -[..]01/21/people-problem-or-process-problem/

importance of teamwork -[..]leS.MichaelFeathers.ProgrammingOnYourOwn

5 Dysfunctions of a Team -

A Leaner Start: Reducing Team Setup Times - , I think article "letting-go" is really insightful -[..]007/09/24/onboarding-strategy-letting-go

A good explanation of what is courage, and the result of didn't have courage. It also mention a bit of how to bulit courage within the team, but not much about it -

A potential issue of focus too much on people, rely on few heros -[..]12/people-over-process-misses-point.html

Our agile process requires people to spend the effort to listen and talk to each other, working closely. You have to be a people person to like it. It doesn't suit sociopaths. Accidently hiring a sociopath is going to make XP impossible. Trust me, I know. To me this is XP's fundamental weakness.[..]12/extreme-programmings-fundamental.html

What important is team but not idea -[..]g/2010/01/cultivate-teams-not-ideas.html

A Measure of Your Team’s Health: How You Treat Your “Idiot” -[..]r-teams-health-how-you-treat-your-idiot/[..]ur-teams-health-how-you-treat-your-idiot

How to Create a Great Team Culture (and Why It Matters) -

(google search) (amazon search)

Sat Mar 09 23:33:41 HKT 2019 From /weblog/java/concurrency


(google search) (amazon search)

Sat Mar 09 23:32:04 HKT 2019 From /weblog/java/performance


(google search) (amazon search)

Thu Feb 28 12:47:16 HKT 2019 From /weblog/design/examples


Experience of using AWS Redshift -[..]on-events-a-day-the-shift-to-redshi.html

(google search) (amazon search)

Tue Feb 26 00:02:36 HKT 2019 From /weblog/trip/travelling


蘇丹之旅 -

博茨瓦纳乔贝国家公园之行 -

莫桑比克的魅力 -

遊搜好行:遊在最前 塞舌爾 -[..]/supplement/travel/art/20130322/18202846

The Complete Guide Of Things To See, Do And Eat In Madeira -[..]-of-things-to-see-do-and-eat-in-madeira/

走過500多年 奈及利亞傳統染坑等待復興 -

(google search) (amazon search)

Sat Feb 23 01:24:19 HKT 2019 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

中環卅間唐樓-鬧市中的迷樣建築群 -中環卅間唐樓-鬧市中的迷樣建築群/

Tokwawan -[..]%96%E7%95%8C%E7%9A%84%E5%85%A8%E9%83%A8/

當銀行計劃書變成獨立宣言-滙豐銀行的建立與香港金融民族主義 -[..]%8D%E6%B0%91%E6%97%8F%E4%B8%BB%E7%BE%A9/

(google search) (amazon search)

Sat Feb 23 01:09:17 HKT 2019 From /weblog/health


(google search) (amazon search)

Thu Feb 21 00:30:42 HKT 2019 From /weblog/learning


It's never too late to reinvent yourself.txt -[..]ing_passionate_users/2005/01/you_20.html

Related interview -[..]/06/16/jill-abramson-commencement-speech[..]sons-commencement-speech-at-wake-forest/

How to improve yourself -[..]w-to-impress-an-interviewer-c210d9d8e84a

1. Connect to Your Emotions
2. Email Prompts and Reminders to Yourself
3. Get an Accountability Partner
4. Start a Mastermind Group[..]ccountable-for-achieving-your-goals.html

Don't set the goal too high -https:/[..]%88%E8%A8%82%E5%BE%97%E5%A4%A0%E4%BD%8E/

vision. A powerful vision has three elements: a significant purpose, a picture of the future, and a clear set of values. Goals speak to our brains, telling us what to do when. Vision speaks to our hearts, pulling us forward through a compelling sense of what can A powerful vision has three elements: a significant purpose, a picture of the future, and a clear set of values. Goals speak to our brains, telling us what to do when. Vision speaks to our hearts, pulling us forward through a compelling sense of what can be. -[..]by-truly-leading-your-life/#54bc6cba7ea0

Setting attainable goals makes us happier, even if we fail -[..]ience/attainable-goals-happiness-9536354

(google search) (amazon search)

Wed Feb 20 11:22:20 HKT 2019 From /weblog/design/distribute


Basically, cache as much as you can, limit the bandwidth as much as you can -[..]2009/08/skinny-straw-in-cloud-shake.html[..]ry/cassandra_compression_is_like_getting

Compression usually very useful -[..]observations-on-big-data-for-retail.html

Discussion of design of Aeron, a new messaging system -[..]eally-need-another-messaging-system.html

How BBG use Hadoop, and tune it -[..]2/17/the-big-problem-is-medium-data.html

Benefits of single-threaded design -

(google search) (amazon search)

Tue Feb 19 00:44:00 HKT 2019 From /weblog/java/features


Introduction of Lambdas expression in Java - , an example show how lambdas help to clean up the duplication -[..]mplifying-readwritelock-with-java-8.html

Another article about Java8 change, where Lambdas is the highlight -

Nice tutorial -

Huge list of articles -

Use lambdas to replace for-loop -[..]creating-your-own-loop-structure-in.html

Overview for new Date/Time library -[..]/02/java-date-time-timezone-formats.html[..]om/2014/05/java-8-features-tutorial.html

Grouping and partitioning with stream -[..]/11/java-8-streams-api-grouping-and.html
In a nutshell, make sure to never override a default method in another interface -[..]va-8-default-methods-can-break-your.html

Convert SQL feature to stream -[..]and-their-equivalents-in-java-8-streams/

(google search) (amazon search)

Sun Feb 17 01:15:24 HKT 2019 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) -

(google search) (amazon search)

Sun Feb 10 22:48:50 HKT 2019 From /weblog/learning


智能手機時代的速讀技術 -

Fun testing -

Fun information, text layout related to speed of reading:

Martin fowler discuss about the skill of how to read/write a big big book , more discussion -

關掉手機 享受慢閱讀的樂趣 -

这里有一个原则同学们要记住:不重要的学术作品大可不读,但重要的要反复重读,读多遍。不要相信重要作品的简化阐释,因为作者究竟怎样想我们不可能从简化的阐释中学到。 -

Rarely will I get through every section of every book.  The idea is to create a kind of dialogue among the authors, identifying points of overlap and difference.  Very often, the ideas from one book will trigger ideas that have you scouring the other books for elaboration.  The mixture of ideas from several books will lead to a thought that is not contained in any of the books.  When you read in parallel, it's like being in the room while the authors are conversing.  The intersecting of ideas almost always stimulates fresh ways of thinking about (and applying) the topic at hand. -[..]ding-in-parallel-becoming-better-at.html

Read for communication -[..]this-year-according-to-harvard-research/

在第一遍阅读时,你并不需要理解一个冗长计算的所有步骤。相反,默认它们是正确的,跳过它们,深入阅读关键的步骤。读公式之间的文字描述,读实验结果,读结论。当你大致明白了文章所谈论的东西之后,你再决定是否把时间花费在代数部分。不要在看不懂的步骤上花太多时间。当你以后有空时,可以重复阅读来慢慢理解它们。 -[..]/2017/08/how-Read-machine-earning-papers[..]achine_learning/?st=j6lm438g&sh=b1d9eba7

Reading to Learn: Why You Shouldn’t Read Beginning-to-End and What to do Instead -[..]-end-and-what-to-do-instead-4ab613e9a41d

I divided the day into four four-hour periods, of which I would be reading in three of the four-hour periods, and free one of them -[..]of-my-scholarship-and-study-68d1c35dd0d5

How And Why To Keep A “Commonplace Book” -

(google search) (amazon search)

Sat Feb 09 23:18:42 HKT 2019 From /weblog/science


我們現在看到的星星早已死亡了嗎? -[..]%B2%E6%AD%BB%E4%BA%A1%E4%BA%86%E5%97%8E/

相對論、量子力學、黑洞和反物質 -[..]uantum-mechanics-black-hole-anti-matter/[..]t-things-in-the-known-universe/?view=all[..]o-probe-images-that-will-blow-your-mind/[..]sics-allowed-earth-to-exist-195ecc0da9ca[..]ear-older-than-the-universe-71bee462c6be[..]ophysics-space/big-bang-history-15092017

5 questions you were too embarrassed to ask about the expanding Universe -[..]bout-the-expanding-universe-9433c4906a29

Are Space, Time, And Gravity All Just Illusions? -[..]-gravity-all-just-illusions-d1d088df6150[..]-the-big-bang-theory-you-might-not-know/

black hole -[..]c/science-abc-going-inside-a-black-hole/[..]/space/supermassive-black-hole-07122017/[..]s-in-outer-space-that-cant-be-explained/

Really interesting -[..]ence/news-science/why-solar-system-flat/

prehistoric-people-astronomers -[..]/prehistoric-people-astronomers-0432423/

The Scale of the Universe - Interactive -

Is the universe infinite? -[..]er/feature-post/is-the-universe-infinite

(google search) (amazon search)