RSS feed [root] /



title search:


Tue Jun 05 10:22:22 HKT 2018

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

Mon Feb 26 23:45:40 HKT 2018 From /weblog/java/fundamental


Execute and manage an external process from within Java -[..]cuting-command-line-executable-from.html[..]/java-9-enhancements-to-process-api.html

(google search) (amazon search)

Sun Feb 25 23:42:16 HKT 2018 From /weblog/software_engineering/testing

best practices

Consider the risk of not being tested -[..]sting-on-toilet-risk-driven-testing.html

Fidelity, Resilience, Precision -[..]testing-on-toilet-effective-testing.html

Attributes that unit test should have: Functionality, Accuracy, Instant, Locator -

Isolation -[..]/2012/04/is-your-unit-test-isolated.html

Tips of keeping unit tests running fast -

Testing Patterns -

Continuously to break thing so that we know our system is solid -[..]11/04/working-with-the-chaos-monkey.html

First rule -[..]08/10/01/nothing_is_too_trivial_to_test/

Test first/last is not important? Unit test either? What do you think?

* The name of the test should describe the requirement of the code
* There should be at least one test for each requirement of the code. Each possible path through of the code is a different requirement#
* Test the goal of the code, not the implementation[..]AppQuality&asrc=EM_NLN_761453&uid=703565[..]og/2007/08/how-not-to-run-beta-test.html

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. -[..]es/2007/08/02/not-a-task-but-an-approach

Corner cases -[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding -[..]e-code-is-about-managing-complexity.aspx

Design for unit test -[..]es/content/DesigntoUnitTest/article.html

Push and Pull approach -

When not to test -

Test the story, rather than the implementation -[..]ving-to-scenario-based-unit-testing.html

Test the configuration -[..]TSS10ctqa&asrc=EM_NLN_8746433&uid=703565

Feel the deep synergy of design and test constraint -[..]athers_blog/2007/09/the-deep-synerg.html

Another set of principles for automated testing -[..]of-principles-for-automated-testing.html

Priority for tester -[..]

A lot of links -[..]-links-biased-toward-exploratory-testing[..]nit-tests-5-principles-for-unit-testing/

Some information and suggestion about setting up a local integrated testing environment -[..]

Virtual Panel: Code-to-Test Ratios, TDD and BDD -

A test is complete when its body contains all of the information you need to understand it, and concise when it doesn't contain any other distracting information. -[..]ting-on-toilet-what-makes-good-test.html

Discussion about naming the tests -[..]14/03/17/getting-junit-test-names-right/[..]ting/writing-clean-tests-naming-matters/[..]esting-on-toilet-test-behaviors-not.html <- Test behaviour, not method. This will make your tests more resilient since adding new behaviors is unlikely to break the existing tests, and clearer since each test contains code to exercise only one behavior.

Tips on having better assertion or cleaner test -[..]ur-test-code-with-custom-assertions.html[..]-friday-most-internal-dsls-are-outdated/[..]ertions-with-a-domain-specific-language/

Good to prevent setup and tearDown?

#1 Treat Test Code as Production Code
#2 Use Test Patterns to achieve great readability
#3 Avoid Unreliable Tests
#4 Test at The Appropriate Level
#5 Do Use Test Doubles[..]insights/blog/write-better-tests-5-steps[..]om/core-java/junit/junit-best-practices/

Document ‘Why’, specify ‘What’, automate ‘How’ -[..]/agile/2016/05/24/large-test-suites.html

Good typing to prevent un-necessary test -[..]com/2014/12/09/typed-language-tdd-part1/

(google search) (amazon search)

Sun Feb 25 23:08:19 HKT 2018 From /weblog/learning


1. Create a structure for requesting feedback.
2. Get specific.
3. Act and report back.[..]ee-tips-for-getting-better-feedback.html

3 Undisclosed Tips for Digital Creatives, 2 are getting feedback -[..]isclosed-tips-for-digital-creatives.html

5 tips of getting feedback quicker -[..]/04/02/5-tips-for-getting-replies-faster

Negative feedback antipatterns -[..]942984306/negative-feedback-antipatterns

How to give feedback -

孩子衝動易怒怎麼辦?玩這種遊戲有望快速學會冷靜 -

Asking for feedback isn’t the distraction — pretending that your employees don’t have feedback is. -

As a startup CEO, it is hard to take time to step back, reflect, and learn. But making it a mandatory routine — and actually calling it a captain’s log — has imbued the practice with power and meaning, both for me and the company I run.


Let's people complaint -

(google search) (amazon search)

Sun Feb 25 00:41:58 HKT 2018 From /weblog/trip/travelling


Europe at autumn -

Coldest city! -[..]tsk-in-russia-coldest-city-in-world.html

fascinating-facts-about-modern-greece -[..]ting-facts-about-modern-greece/?view=all

things-that-will-make-you-want-to-visit-greenland -[..]ke-you-want-to-visit-greenland/?view=all

If you've never been to Norway, this is what you've been missing out on. -[..]yone-needs-to-visit-norway-at-least.html

Great church -

Tips -

「世界最美海灘」的Navagio -[..]realtime/international/20140709/52671530

【夏日芬蘭】落水玩漂浮 氹氹轉望藍天 -[..]om/realtime/supplement/20140624/52619256

芬蘭的隱世桃源-在千湖之國尋找傳說中的姆明谷 -芬蘭的隱世桃源-在千湖之國尋找傳說中的姆明谷/

ALPS -[..]ns-you-should-definitely-visit-the-alps/

european-places-so-beautiful-you-might-cry -[..]ces-so-beautiful-you-might-cry/?view=all

In the mountains of the Czech Republic lies a 55 meter observation deck with a gigantic slide. Franek Company Architects built the slide in collaboration with Taros Nova and it stands at 1116 meters above sea level. -[..]-czech-republic-has-giant-slide-and.html

canary-islands -[..]-should-be-on-your-bucket-list/?view=all

Parthenon at Greek -[..]ting-facts-about-the-parthenon/?view=all

Alps -

prague -[..]ng-in-prague-is-not-a-bad-idea/?view=all

【托斯卡尼】Arezzo 阿雷佐・踏進電影《美麗人生》的山城場景 -

exotic-places-in-eastern-europe -[..]ces-in-eastern-europe-you-have-to-visit/

西伯利亞鐵路 2017, Travel to Russia with Train -[..]%259E%25E9%2590%25B5%25E8%25B7%25AF-2017

巴爾幹半島路線圖 - 實用篇 -

巴爾幹醉人風景 -

Best Fall Destinations To Visit in Europe -[..]5826429103&blog=12905715&frame_type=none

HIKING UP TO HIDDEN URSA BEACH – PORTUGAL -[..]5835773213&blog=11713667&frame_type=none

博物館化之斯德哥爾摩 -博物館化之斯德哥爾摩/

croatia -[..]s-about-croatia-you-probably-didnt-know/

(google search) (amazon search)

Sun Feb 25 00:23:55 HKT 2018 From /weblog/software_engineering/team


No problem is a big problem, So we want to actually encourage conflict in the sense of encouraging openness about disagreement, which in turn suggests that it is essential that we are prepared to resolve conflict -[..]0/conflict-will-and-should-occur-be.html

Should DEV work in prod? -[..]developers-working-in-production-of.html

(google search) (amazon search)

Sun Feb 25 00:04:28 HKT 2018 From /weblog/google


Get back your data in google -

(google search) (amazon search)

Sat Feb 24 23:58:47 HKT 2018 From /weblog/google/development


Google + API -

google sso -[..]es-of-x-google-token-and-why-it-matters/

google ajax server api -

Tips of google chat api -[..]g-google-chart-api-from-server-side.html[..]ing-chart-api-in-kml-for-quick-data.html

String s = URLEncoder.encode("Há tantos burros mandando em homens de inteligência, que, às vezes, fico pensando que a burrice é uma Ciência", "UTF-8");
URL url = new URL(""+s);
JSONObject obj = (JSONObject) ((JSONObject)JSONValue.parse(url.getContentAsString())).get("responseData");


Google cloud platform -

Google JSON library articles -

AI api -

Case study of grpc from tidb -

Getting fix password for APP -

(google search) (amazon search)

Sat Feb 24 23:51:49 HKT 2018 From /weblog/trip


** 欣賞好風景, 就在花瓶頂 ** -

野外美食餐單大交流! -

(9:15)錦英>雁谷>靈猿守谷>猿頭>吊手岩>雁谷>110礦洞>耀安(12:30) -

路線:沙頭角公路→紅花嶺→礦山→紅花嶺→沙頭角公路 -

路線:落馬洲→鐵坑山→鳳崗 -

迪士尼後面山頭 -

紅花秘洞 -

丫髻穿鼻 -

石芽北脊 -

路線:警校道→南朗山北橫山徑→海馬→南朗山頂→南朗山南脊→南朗山路→黃竹坑 -

龍園 -> 外環單車徑 -> 流浮山老街 -> 蠔塚 -> 沙江天后廟 -[..]content=main&utm_campaign=weekend-120201

Valentino Chocolatier -> 半月灣 -> 橋咀洲地質景區 -> 吉光片羽 -[..]content=main&utm_campaign=weekend-120606

西貢街渡協會(9080 5794 / 9082 2057)

松柏 鶴嘴遊 -[..]22/albums/5764282192850561249?banner=pwa

路線:貝澳→十塱→芝麻灣監獄→長沙灣→61山頭→蝦鬚排→正生書院→芝麻灣郊遊徑→水塘→十塱→貝澳 -

青衣自然徑 城門水塘 鶴藪至鳳園 荔枝窩 青山寺 -

深涌野營 -

潛龍 -

全港五大長跑徑推介 -

石硤尾主教山 -[..]1%A4%E5%B0%BE%E4%B8%BB%E6%95%99%E5%B1%B1

屯門老虎坑 -

白燕岩 -

觀音石河 -

鶴咀 海角回憶1 -[..]/supplement/travel/art/20131013/18461339

花山 -[..]%B1%E5%B1%B1%E8%97%8F%E8%90%AC%E6%9F%B1/

長梯級路線 -

《衛奕信徑全征系列》第五、六段-沙田坳、九龍水塘及城門水塘[計劃出發中] -

米粉咀 -

火石洲上山下海之旅 -

Google Map 終於有遠足徑街景!你我都可以做 Map Maker -

由耀安邨出發,走半坳嶺北脊上馬鞍山村,跟著礦場脊上馬頷峽,落樹帶棧道,走至象門,so far so good…

維多利亞城界石尋寶遊 / 戴緻賢 -[..]B6%E9%81%8A-%E6%88%B4%E7%B7%BB%E8%B3%A2/

新界西北區水塘系列 -

下花山看荃青全景 -

Tunnels at High West -

十個你不知道的鳳凰山秘境 -[..]B1%E7%A7%98%E5%A2%83-%E5%BE%8C%E7%AF%87/

【假日親子遊】閒遊西貢橋咀島 -

鳳凰徑全征系列 -

(google search) (amazon search)

Sat Feb 24 23:42:46 HKT 2018 From /weblog/design/interview


Do the simple thing first.
Do fewer things better.
Upfront work but can pay huge dividends.
Don’t reinvent the wheel.
Nothing lasts forever.[..]-from-5-years-of-building-instagram.html

(google search) (amazon search)

Sat Feb 24 23:27:05 HKT 2018 From /weblog/fun

computer geek

Some attribute of computer geek -

Things to say when you're losing a technical argument -[..]s/srinivas/Weblog/things_to_say_when_you

Great posts! -[..]tertaining-posts-from-stackoverflow.html

gif for various issues -

(google search) (amazon search)

Fri Feb 23 00:27:45 HKT 2018 From /weblog/learning

positive[..]stions-for-professional-development.html <- write it down, make it a story, visualize it.[..]-that-can-make-you-much-more-impressive/ <- The only change was this semester he presented more enthusiastically, gesturing with his hands and modulating his voice.[..]ing-by-asking-the-right-questions/print/ <- Appreciative inquiry (AI) has two important elements: becoming mindful of the questions we ask and directing those questions toward strengths and positive outcomes.

要做到「自我關懷」,我們要接受自己會做錯,偶爾偷懶讓自己休息一下,就像對待你身邊的好友。 -[..]om/realtime/supplement/20160419/55001749

As outlined by recent research, it all seems as though confidence doesn't necessarily breed success. Interestingly, the self-reported writing skills of college freshmen has been going up over decades, while actual writing ability has dropped. Students rate themselves much higher in drive to succeed now than two or three decades ago, but the average time they spend studying has dropped meaningfully. -[..]k/2014/03/the-limits-of-self-belief.html

五萬隻鳥蛋的故事告訴我們,即使遇到一些普通如一隻鳥蛋那樣熟悉的事物,我們仍可在當中發掘新的知識,並需要勇氣挑戰舊的假設。 -[..]B4%E4%BD%A0%E7%94%9A%E9%BA%BC-%E4%B8%8B/

Use negative emotion as an catalyst to success -[..]awareness-and-acceptance-in-trading.html

It's really true: confidence doesn't come from success alone, but rather from facing failure and moving beyond it. -[..]-most-important-reason-traders-cant.html

(google search) (amazon search)

Thu Feb 22 23:56:29 HKT 2018 From /weblog/software_engineering/testing


If you write the test after you've written the code, it's much more likely that you'll write the tests that will pass what you've written.

That's just how our brains work.

If you determine the criteria for whether a decision is good after you've already made the decision, it's much more likely that you'll create criteria that justifies the decision that was just made.

That's just how our brains work.

Determine how to assess whether something is good before you implement it and/or before you make a decision. Otherwise, you will tend to be emotionally attached to what you just did, what you just decided.

My Top 5 ways to reproduce a "Hard to Reproduce" Bug! -[..]/my-top-5-ways-to-reproduce-hard-to.html

Common TDD issue and suggested solution -[..]utomated-test-problems-address-root.html[..]om/biblio/StudiesOfTestDrivenDevelopment[..]ptions-with-test-driven-development.html[..]014/05/told-you-that-testing-is-a-waste/

(google search) (amazon search)

Thu Feb 22 23:45:49 HKT 2018 From /weblog/learning


Connecting difference thing -[..]/connecting-dots-how-to-become-more.html

(google search) (amazon search)

Tue Feb 20 23:39:39 HKT 2018 From /weblog/photographic


Good use of night make everthing change -

Tutorial: How to shoot a martini splash photo using only speedlights -[..]ly-speedlights?ref_=pe_1674010_132618830

An ok book that introduce how to setup lighting for indoor portrait -

(google search) (amazon search)

Tue Feb 20 09:58:45 HKT 2018 From /weblog/science/animal


(google search) (amazon search)

Mon Feb 19 23:30:09 HKT 2018 From /weblog/computer+science


Bootstrapping a compiler from nothing. -


What LLVM can do, and cannot do -[..]er-behind-swift-rust-clang-and-more.html

(google search) (amazon search)

Mon Feb 19 23:26:54 HKT 2018 From /weblog/unix


Advisory Locking and Mandatory Locking -

Basic info of inode -

Explanation of /proc filesystem -[..]anual/ref-guide/s1-proc-directories.html

Linux file system structure -

File system for archive files -

BeOS file system, other than discuss about BeOS FS, also discussing about evolution of design of file system -[..]rce/news/2010/06/the-beos-filesystem.ars[..]03/past-present-future-file-systems.ars/


The file size of command "df" return is compressed data, raw disk usage
If we want compress amount, we need to get the compressratio using /usr/sbin/zfs
We can get more system detail via perl package Sun::Solaris::Kstat , we can google "" as an example

Using ZFS as version control -

(google search) (amazon search)

Mon Feb 19 22:29:04 HKT 2018 From /gallery/Day+Trip/%E9%BE%8D%E9%96%80%E9%83%8A%E9%81%8A%E5%BE%91


(google search) (amazon search)

Mon Feb 19 22:28:58 HKT 2018 From /gallery/Day+Trip/%E9%BE%8D%E9%96%80%E9%83%8A%E9%81%8A%E5%BE%91


(google search) (amazon search)

Mon Feb 19 22:28:57 HKT 2018 From /gallery/Day+Trip/%E9%BE%8D%E9%96%80%E9%83%8A%E9%81%8A%E5%BE%91


(google search) (amazon search)

Mon Feb 19 22:28:53 HKT 2018 From /gallery/Day+Trip/%E9%BE%8D%E9%96%80%E9%83%8A%E9%81%8A%E5%BE%91


(google search) (amazon search)