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

Mon Mar 13 23:20:23 HKT 2017 From /weblog/health/food

Health Meal


Fix muscle with good food - https://www.mr-sport.com.tw[..]life/food/fix-your-muscle-with-food.html

要動不要痛—調整飲食,擊退運動傷害! - https://www.mr-sport.com.tw[..]eat-when-you-get-hurt-from-exercise.html

【動畫●每日健康】新超級食物苔麩代替麵粉 多吃腸胃更暢通 - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20161012/55761307

http://list25.com[..]at-makes-eating-healthier-easy/?view=all

豐富健康食譜 - http://www.yimho.com/2086.html

Eating for health, not weight - http://www.nytimes.com[..]y/the-optimal-diet.html?_r=2&ref=opinion

健康飲食還需多吃“苦” - http://cn.wsj.com/big5/20120607/lif075953.asp?source=rss

我續說︰「我建議你一個兩天的開心全餐,希望對囡囡有幫助。第一天早餐有全麥多士及低脂乳酪1杯;午餐有瘦肉粥、灼芥蘭、香蕉1條;小食有小魚乾;晚餐洋葱炒肉片、白飯、藍莓一杯。第二天早餐番茄芝士三文治及脫脂奶1盒;午餐有三文魚壽司、綠茶及奇異果1個;小食有香蕉乾;晚餐有白飯、西芹炒雞丁及木瓜半個。」- http://www.yimho.com/1450.html

1.【 想要膽固醇聽話? 每天三杯柳橙汁OK!! < http://www.sjps.kh.edu.tw/grace/home/01.htm >】

2.【 要長壽別忘蕃茄 < http://www.sjps.kh.edu.tw/grace/home/02.htm >】

3.【 喝杯水再睡_喝適量的水有益健康! < http://www.sjps.kh.edu.tw/grace/home/03.htm >】

4.【 喝下重覆煮沸的開水會致癌 < http://www.sjps.kh.edu.tw/grace/home/04.htm >】

5.【 喜歡吃冷凍水餃的人請小心 < http://www.sjps.kh.edu.tw/grace/home/05.htm >】

6.【 小心衛生筷子 < http://www.sjps.kh.edu.tw/grace/home/06.htm >】

7.【 豆漿, 請多告訴你身旁的女性朋友 < http://www.sjps.kh.edu.tw/grace/home/07.htm >】

8.【 操作電腦時要多喝茶 < http://www.sjps.kh.edu.tw/grace/home/08.htm >】

9.【 老醫之家:一個不錯的中文醫療資訊網站 < http://www.sjps.kh.edu.tw/grace/home/09.htm >】

10.【 建議大家最近別吃生魚片及去海邊玩! < http://www.sjps.kh.edu.tw/grace/home/10.htm >】

11.【 養肺的季節--養肺食譜 < http://www.sjps.kh.edu.tw/grace/home/11.htm >】

12.【 聽過喝咖啡減肥? < http://www.sjps.kh.edu.tw/grace/home/12.htm >】

13.【 幫助皮膚健康的維生素 < http://www.sjps.kh.edu.tw/grace/home/13.htm >】

14.【 造成身材浮腫的殺手食物報告出爐 < http://www.sjps.kh.edu.tw/grace/home/14.htm >】

15.【 喝雞湯 細菌黏液最快排出 < http://www.sjps.kh.edu.tw/grace/home/15.htm >】

16.【 15種吃了腿會變瘦、變美的食物 < http://www.sjps.kh.edu.tw/grace/home/16.htm >】

17.【 早餐吃熱食,才能保護胃氣 < http://www.sjps.kh.edu.tw/grace/home/17.htm >】

18.【 五種食物,讓你百毒不侵 < http://www.sjps.kh.edu.tw/grace/home/18.htm >】

19.【 不要太常吃冰 < http://www.sjps.kh.edu.tw/grace/home/19.htm >】

20.【 喝太多鋁箔包飲料容易導致老年癡呆症 < http://www.sjps.kh.edu.tw/grace/home/20.htm >】

21.【 黑糖薑茶(女人一定要看) < http://www.sjps.kh.edu.tw/grace/home/21.htm >】



健康生活篇

1.【 午餐後趴睡是健康的殺手 < http://www.sjps.kh.edu.tw/grace/home/午睡是健康的殺手.htm >】

2.【 失眠、生物電和橡皮鞋底! < http://www.sjps.kh.edu.tw/grace/home/B02.htm >】

3.【 有午睡習慣的人比較不會老 < http://www.sjps.kh.edu.tw/grace/home/B03.htm >】

4.【 睡眠不足 小心變笨 < http://www.sjps.kh.edu.tw/grace/home/B04.htm >】

5.【 深夜開燈睡易致癌 < http://www.sjps.kh.edu.tw/grace/home/b05.htm >】

6.【 用微波爐加熱水請小心 < http://www.sjps.kh.edu.tw/grace/home/b06.htm >】

7.【 杜絕感冒的六大法則 < http://www.sjps.kh.edu.tw/grace/home/b07.htm >】

8.【 每天更健康 < http://www.sjps.kh.edu.tw/grace/home/b08.htm >】

9.【 小心!看不見的「波」可能讓你致癌 < http://www.sjps.kh.edu.tw/grace/home/b09.htm >】


蒜頭飯 - 閱後傳知他人,添福添壽

一位朋友每天吃蒜頭蒸飯,晚餐用一把蒜頭切碎煮飯, 半年之後高血壓消失了,痛風症消失了,坐骨神經痛亦消失了。 對於目前流行的非典型肺炎,他認為吃蒜頭是增強免疫力的方法, 因為蒜頭是「窮人靈芝」,通血管及清除毒素,以前美軍 亦用作隨身解毒劑。

蒜頭炒飯:
蒜頭越多越香,拍碎,用油鍋炒香蒜頭放入鹽及煮好的飯,加葫 椒鹽拌炒起鍋。 ( 菲律賓人的早餐都是這道主食 )

蛋炒飯,起鍋前撒上一些蒜粉,保證您炒的不夠吃,太香太好吃了。

另一位朋友提醒要多食維他命 C,以增強抵抗力,並切忌吃煎炸熱氣食物,免引致喉嚨發
炎,病毒就由此攻入。

薑湯做法:
1. 約十公克的薑磨成糊狀。
2. 把薑糊放入玻璃杯裡。
3. 注入滾燙的熱開水。
4. 加入一匙蜂蜜,拌勻後飲用。

男女老少都適合飲用。
老薑切片或拍碎煮黑糖功效一樣 , 連續喝兩個月(每天早晚各喝一次 )據書本 記載的見證:
1. 身體變溫暖,手腳冰冷的『怕冷症』體質明顯改善。
2. 體重可減輕約十公斤。
3. 皮膚變得細嫩。
4. 去掉多餘贅肉,腰圍變細。

薑對身體很有益處,愛美又想要健康的人,不妨試試看吧!
祝身體健康!

熱門瘦身食譜排行榜Top5 - http://forward.hkwebs.net/archives/7721

冬天多吃莓果養顏排毒又減肥 (strawberry) - http://forward.hkwebs.net/archives/7818

長期食素加速衰老 - http://forward.hkwebs.net/archives/7816

Food good for slim and skin - http://forward.hkwebs.net/archives/7912

10 good food... - http://forward.hkwebs.net/archives/8043

Food to help hair - http://www.yimho.com/1425.html

地中海膳食模式——一种富于水果、蔬菜、坚果、全谷物和富含不饱和脂肪酸的鱼类的膳食, 食用三文鱼, 水果,击退中风, 放下苏打,端起咖啡, 酒精:始终都要节制, 巧克力——更多时候依然视为氧化剂, 什么不能吃:限制碳水化合物, 红肉 - http://neuro.dxy.cn/article/45615

日日食花生 更健康更長命 - http://thehousenews.com[..]%A5%E5%BA%B7%E6%9B%B4%E9%95%B7%E5%91%BD/

busy-students-eat-healthier - http://list25.com[..]lp-busy-students-eat-healthier/?view=all

(google search) (amazon search)


Fri Mar 10 17:49:16 HKT 2017 From /weblog/java/concurrency

Map


putall can cause ConcurrentModifcationException - http://cr.openjdk.java.net[..]ses/sun/management/Agent.java.sdiff.html

Note on writing CopyOnWrite wrapper - http://flyingspaniel.blogspot.com[..]ot.com/2010/12/copyonwrite-wrappers.html

Sometime this is a bit difficult for Chinese to be a good programmer, recently some colleague and me discuss about the behaviour of this class and look like we have difficult understanding

A: ConcurrentHashMap support for locking as this is thread-safe
B: ConcurrentHashMap is thread safe for read but not for write because there is no lock, we still need to have external lock to keep it thread safe. By the way, I get ConcurrentModificationException from this before.
C: ConcurrentHashMap don't support for locking but they still thread safe for all operations, which is how "This class is fully interoperable with Hashtable in programs that rely on its thread safety but not on its synchronization details." mentioned.

Too good that we can actually take a look at the source code to see what going on nowadays rather than just guessing - http://www.google.com[..]HashMap&sourceid=opera&ie=utf-8&oe=utf-8 By the way, this constructor is useful for a lot of concurrency access but actually not many developer notice about this - http://java.sun.com[..]rrentHashMap.html#ConcurrentHashMap(int, float, int)

Lazy initialization of map values - http://artisans-serverintellect-com.si-eioswww6.com[..]ect-com.si-eioswww6.com/default.asp?W122

HashMap.get() can cause infinite loop - http://lightbody.net[..]5/07/hashmapget_can_cause_an_infini.html

Discussing the effect of initCapacity() of HashMap in Java - http://saloon.javaranch.com[..]ltimatebb.cgi?ubb=get_topic&f=1&t=021171

OpenJDK and HashMap …. Safely Teaching an Old Dog New (Off-Heap!) Tricks - http://www.infoq.com/articles/Open-JDK-and-HashMap-Off-Heap

We can run search in ConcurrenctHashMap - https://dzone.com/articles/concurrenthashmap-in-java8

(google search) (amazon search)


Fri Mar 10 17:39:38 HKT 2017 From /weblog/computer+science

Algorithm


algorithm dictionary - http://programmers.stackexchange.com[..]5/is-there-an-encyclopedia-of-algorithms https://xlinux.nist.gov/dads

How to answer algorithm question - http://blog.palantir.com[..]/26/how-to-rock-an-algorithms-interview/

List of algorithm - http://en.wikipedia.org/wiki/List_of_algorithms

Huffman encoding - http://www.dreamincode.net[..]50-an-in-depth-look-at-huffman-encoding/

Discussion of using difference algorithm to get Fibonacci number, the matrix modeling is really nice - http://bosker.wordpress.com[..]/04/29/the-worst-algorithm-in-the-world/

What O(log n ) mean - http://kevinrodrigues.com[..]log/2010/01/06/analysis-of-an-algorithm/

Introduction to pagerank - http://css.dzone.com/articles/pagerank-5-minutes

Introduction to B+ tree - http://www.ovaistariq.net[..]indexes-and-how-they-impact-performance/

Text Editors: Algorithms and Architectures - http://www.drdobbs.com[..]&siteSectionName=architecture-and-design

Matching Wildcards: An Algorithm - http://www.drdobbs.com[..]888?elq=1dd35f241fda4e7e816c3d5e4d5451c2

http://austingwalters.com[..]everyday-algorithms-elevator-allocation/

http://javarevisited.blogspot.hk[..]ructure-and-algorithm-books-in-java.html

http://www.bigocheatsheet.com/

一致性算法 - https://en.wikipedia.org/wiki/Paxos_(computer_science) http://www.infoq.com/cn/articles/raft-paper https://ramcloud.atlassian.net[..]ki/download/attachments/6586375/raft.pdf

https://newnxa.blogspot.hk[..]t-important-algorithms-of-graph-and.html
https://newnxa.blogspot.hk[..]-is-algorithm-algorithm-is-any-well.html

(google search) (amazon search)


Thu Mar 09 23:13:09 HKT 2017 From /weblog/design

visibility


Someone saying that having private method is anti-pattern, here is the discussion - http://www.infoq.com/news/2008/01/private-methods-tdd-design

Discussion of encapsulation - http://niket-this.blogspot.com[..]/encapsulation-does-it-really-exist.html

My view on this is that most of the time there's little value in self-encapsulation. The value of encapsulation is proportional to the scope of the data access. Classes are usually small (at least mine are) so direct access isn't going to be an issue within that scope. Most accessors are simple assignments for the setter and retrieval for the getter, so there's little value in using them internally. - https://martinfowler.com/bliki/SelfEncapsulation.html

(google search) (amazon search)


Tue Mar 07 22:50:23 HKT 2017 From /weblog/computer+science

Linguistics


Introduction of various java linguistics tools:

Lingpipe
OpenNLP
opennlp.maxent
Inflector

http://www.devx.com[..]/Article/35088/1954?pf=true#codeitemarea

Authors homepage - http://www.rodcoffin.com/ http://netsmith.blogspot.com/

Some other Natural Language Processing links - http://www.markhneedham.com[..]-attempt-at-natural-language-processing/

How google improve the translation - https://research.googleblog.com[..]016/09/a-neural-network-for-machine.html

(google search) (amazon search)


Wed Mar 01 00:26:23 HKT 2017 From /weblog/house

medical


free to ask medical advice:

http://www.netdoctor.co.uk/
http://www.healthcentral.com/
http://www.healthy.net/
https://www.verywell.com/

if you English is good

If not:
http://www.24drs.com/
http://www.lt3000.com/big5/index.html



(google search) (amazon search)


Tue Feb 28 17:10:49 HKT 2017 From /weblog/java/fundamental

java.lang.ref


Overview of weak, soft and Phantom References
Second, PhantomReferences avoid a fundamental problem with finalization: finalize() methods can "resurrect" objects by creating new strong references to them. So what, you say? Well, the problem is that an object which overrides finalize() must now be determined to be garbage in at least two separate garbage collection cycles in order to be collected. When the first cycle determines that it is garbage, it becomes eligible for finalization. Because of the (slim, but unfortunately real) possibility that the object was "resurrected" during finalization, the garbage collector has to run again before the object can actually be removed. And because finalization might not have happened in a timely fashion, an arbitrary number of garbage collection cycles might have happened while the object was waiting for finalization. This can mean serious delays in actually cleaning up garbage objects, and is why you can get OutOfMemoryErrors even when most of the heap is garbage.

With PhantomReference, this situation is impossible -- when a PhantomReference is enqueued, there is absolutely no way to get a pointer to the now-dead object (which is good, because it isn't in memory any longer). Because PhantomReference cannot be used to resurrect an object, the object can be instantly cleaned up during the first garbage collection cycle in which it is found to be phantomly reachable. You can then dispose whatever resources you need to at your convenience.

Arguably, the finalize() method should never have been provided in the first place. PhantomReferences are definitely safer and more efficient to use, and eliminating finalize() would have made parts of the VM considerably simpler. But, they're also more work to implement, so I confess to still using finalize() most of the time. The good news is that at least you have a choice.

http://weblogs.java.net[..]las/archive/2006/05/understanding_w.html

The other valuable reference about object life cycle - http://java.sun.com[..]ormance/1st_edition/html/JPAppGC.fm.html

Incorrect use of reference can cause GC issue - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4405807

one more related blog - http://www.egimaben.com[..]garbage-collector-and-reference-objects/

(google search) (amazon search)


Tue Feb 28 16:39:40 HKT 2017 From /weblog/java/performance

tools


Free online GC log Analyzer - http://gceasy.io/

Free online thread analyzer - http://fastthread.io/

https://dzone.com[..]y-and-cpu-monitoring-tools-and-technique

(google search) (amazon search)


Tue Feb 28 00:03:14 HKT 2017 From /weblog/science/animal

dog


about-search-and-rescue-dogs - http://list25.com[..]arch-and-rescue-dogs-youll-want-to-know/

(google search) (amazon search)


Sat Feb 25 18:26:46 HKT 2017 From /weblog/software_engineering/testing

best practices


Consider the risk of not being tested - http://googletesting.blogspot.com.au[..]sting-on-toilet-risk-driven-testing.html

Fidelity, Resilience, Precision - http://googletesting.blogspot.com.au[..]testing-on-toilet-effective-testing.html

Attributes that unit test should have: Functionality, Accuracy, Instant, Locator - http://www.gilzilberfeld.com/2014/04/what-is-unit-test.html

Isolation - http://agileinaflash.blogspot.com[..]/2012/04/is-your-unit-test-isolated.html

Tips of keeping unit tests running fast - http://www.java-tv.com/2012/03/06/speeding-up-java-test-code/

Testing Patterns - http://c2.com/cgi/wiki?TestingPatterns

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

First rule - http://fishbowl.pastiche.org[..]08/10/01/nothing_is_too_trivial_to_test/

Test first/last is not important? Unit test either? What do you think? http://beust.com/weblog/archives/000477.html

* 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

http://xprogramming.com/xpmag/testFirstGuidelines.htm http://www.theserverside.com[..]AppQuality&asrc=EM_NLN_761453&uid=703565 http://www.coopercode.net[..]og/2007/08/how-not-to-run-beta-test.html

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. - http://blog.objectmentor.com[..]es/2007/08/02/not-a-task-but-an-approach http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Corner cases - http://testobsessed.com[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding - http://haacked.com[..]e-code-is-about-managing-complexity.aspx

Design for unit test - http://www.theserverside.com[..]es/content/DesigntoUnitTest/article.html http://openmymind.net/A-Decade-Of-Unit-Testing/

Push and Pull approach -
http://www.richarddurnall.com/?p=10
http://www.richarddurnall.com/?p=15
http://www.richarddurnall.com/?p=31

When not to test - http://www.junitmax.com/blog/?p=187

http://www.infoq.com/news/2009/06/love_agile_testing

Test the story, rather than the implementation - http://www.davesquared.net[..]ving-to-scenario-based-unit-testing.html

Test the configuration - http://searchsoftwarequality.techtarget.com[..]TSS10ctqa&asrc=EM_NLN_8746433&uid=703565

Feel the deep synergy of design and test constraint - http://michaelfeathers.typepad.com[..]athers_blog/2007/09/the-deep-synerg.html

Another set of principles for automated testing - http://a-sisyphean-task.blogspot.com[..]of-principles-for-automated-testing.html

Priority for tester - http://googletesting.blogspot.com[..]t.com/2011/01/new-years-resolutions.html

A lot of links - http://it-techexperts.com/tutorials/tutorials.asp http://testingspot.net/ http://www.exampler.com[..]-links-biased-toward-exploratory-testing

http://www.makinggoodsoftware.com[..]nit-tests-5-principles-for-unit-testing/

Some information and suggestion about setting up a local integrated testing environment - http://googletesting.blogspot.com.au[..]pot.com.au/2012/10/hermetic-servers.html

Virtual Panel: Code-to-Test Ratios, TDD and BDD - http://www.infoq.com/articles/virtual-panel-tdd-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. - http://googletesting.blogspot.com.au[..]ting-on-toilet-what-makes-good-test.html

Discussion about naming the tests - http://www.codeaffine.com[..]14/03/17/getting-junit-test-names-right/ http://www.petrikainulainen.net[..]ting/writing-clean-tests-naming-matters/

http://googletesting.blogspot.com.au[..]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 - http://blog.codeleak.pl[..]ur-test-code-with-custom-assertions.html http://blog.jooq.org[..]-friday-most-internal-dsls-are-outdated/ http://www.petrikainulainen.net[..]ertions-with-a-domain-specific-language/

Good to prevent setup and tearDown? http://www.yegor256.com/2015/05/25/unit-test-scaffolding.html

#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
http://www.thoughtworks.com[..]insights/blog/write-better-tests-5-steps

http://examples.javacodegeeks.com[..]om/core-java/junit/junit-best-practices/

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

(google search) (amazon search)


Thu Feb 23 18:39:36 HKT 2017 From /weblog/misc

book


https://github.com/vhf/free-programming-books

http://www.oreilly.com/programming/free/

https://97-things-every-x-should-know.gitbooks.io[..]rammer-should-know/content/en/index.html

(google search) (amazon search)


Thu Feb 23 16:14:03 HKT 2017 From /weblog/design/interview

data


Interview with JOOQ founder - https://www.infoq.com/news/2017/02/data-geekery-releases-jooq-3-9

(google search) (amazon search)


Thu Feb 23 00:47:01 HKT 2017 From /weblog/learning

goal


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

Related interview - http://www.inside.com.tw[..]/06/16/jill-abramson-commencement-speech http://www.washingtonpost.com[..]sons-commencement-speech-at-wake-forest/

How to improve yourself - https://medium.com[..]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
http://www.michelemmartin.com[..]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/

(google search) (amazon search)


Wed Feb 22 15:10:51 HKT 2017 From /weblog/database/vendor

misc


Few distributed SQL DB vendor information - http://www.infoq.com/news/2013/11/sql-newsql-nosql

Approximation DB - http://highscalability.com[..]e-200x-faster-without-having-to-pay.html

Discuss and compare difference technology of querying journey(log) data - http://www.infoq.com[..]on-log-and-data-storage-query-techniques

(google search) (amazon search)


Tue Feb 21 17:44:20 HKT 2017 From /weblog/design

dsl


A paper show the evolution of a DSL - http://www.mockobjects.com/files/evolving_an_edsl.ooplsa2006.pdf

A stock trading order example of DSL - http://debasishg.blogspot.com[..]05/designing-internal-dsls-in-scala.html

What is the difference between API / DSL if we don't write a parser for our language? From Martin Fowler's blog - http://martinfowler.com/bliki/DslReadings.html , it is mentioned:
Piers Cawley makes the point that a key characteristic of DSLs is their narrow focus on a domain.
I think this is a very good summary, usually if most of the APIs are getXXX() , setXXX(), loadXXX() , createXXX() ........ Then we mostly design APIs that expose low level detail to the API user to work on, which, is work but user probably work nicer if we can come up with language like API that allow users to do their work in more descriptive level.

I think if API design like that usually it will reduce the code duplication, what ever real duplication or conceptual duplication. It probably already apply "Tell, don't ask" style - http://c2.com/cgi/wiki?TellDontAsk

A discussion about applying "Tell, don't ask" which lead to message passing architecture - http://beautifulcode.oreillynet.com[..]07/10/do_messages_want_to_be_asynchr.php

And other discussion about "Tell, don't ask"
http://sriramnarayan.blogspot.com[..]/2008/11/demeters-law-tell-dont-ask.html
http://sriramnarayan.blogspot.com[..]part-two-demeters-law-tell-dont-ask.html
http://sriramnarayan.blogspot.com[..]rt-three-demeters-law-tell-dont-ask.html

One good sample with explaination -
http://hamletdarcy.blogspot.com[..]-it-really-domain-specific-language.html
http://nat.truemesh.com/archives/000727.html

Few links - http://dreamhead.blogbus.com/logs/17667876.html

From CRUD to DDD - http://www.udidahan.com[..]2/15/from-crud-to-domain-driven-fluency/

I like this: "XML abuse reduction (conducting an “XML Intervention”)" - http://www.lostechies.com[..]ps-internal-dsl-draft-outline-notes.aspx

DSL maybe the result of encapsulation - http://dreamhead.blogbus.com/logs/214225975.html

Excellent implementation of extending java yourself - http://www.infoq.com/presentations/JetBrains-MPS-DSL http://www.infoq.com/presentations/JetBrains-MPS-DSL-2

How DSL method named - http://tech.pro[..]he-java-fluent-api-designer-crash-course

https://tomassetti.me/domain-specific-languages/

(google search) (amazon search)


Tue Feb 21 17:42:46 HKT 2017 From /weblog/software_engineering/team

leadership


Servant Leadership - http://www.inc.com[..]t-be-my-style-of-servant-leadership.html , similarly, what a leader should do is helping other to do better, not to be the best of the team - http://blog.vincentx.info[..]/03/onthings-manga-taught-me-leadership/ http://www.infoq.com[..]what-do-you-look-for-in-a-servant-leader

Mentorship - http://www.javacodegeeks.com[..]entorship-in-software-craftsmanship.html

Keep focus, or lose - http://googlesystem.blogspot.com[..]0/how-steve-jobs-influenced-googles.html

The anti-pattern and suggestion about new joiner - http://5whys.com[..]-you-will-face-as-a-software-team-l.html

Believe me, the objective was not to make decisions, but to create the right environment so that the right decision would be made. http://tech.groups.yahoo.com/group/leandevelopment/message/1952

A nice set of questions to ask for a leader - http://jchyip.blogspot.com[..]3/questions-on-influence-and-growth.html

In short, don't put your shoes on others' foot - http://www.inc.com[..]earned-in-the-army_Printer_Friendly.html

4 types of leadership style, well, I think he model leadership a little too simple - http://softwarecreation.org[..]s-the-best-leader-for-the-software-team/

Your experts are spending all their time mentoring novices. Therefore:

Put one expert in charge of all the novices, let the others develop the system. - http://gigix.agilechina.net[..]010/2/25/organizational-pattern-day-care

What is the key Characteristics of great team - http://www.infoq.com/news/2011/01/characteristics-agile-org

This is very insightful obversation, in many time we look into something work in short term but not really solve the problem, a discussion about why so many people like micromanagement even if they know it is bad - http://www.thoughtclusters.com[..]m/2011/01/programmers-and-micromanaging/

http://www.adoptionofagile.com[..]best-thing-you-can-do-for-your-team.html <- is provide required information, probably more transparent.

Don't make me think... but you have no business not allowing me to think if I choose to. - http://jchyip.blogspot.com[..]allow-me-to-think-just-dont-make-me.html

How To Lead Clever People, actually I am double about this, let's see - http://business.in.com/printcontent/28632 http://business.in.com/media/images/2011/Sep/img_56852_wise.jpg

How to grow the leadership - http://www.jrothman.com[..]og/mpd/2012/11/nurturing-leadership.html

他在公司的名言是「When you give, you get」。他在上海成立科研中心,大方讓上汽參與,他認為各懷鬼貽的氣氛不可能做出成績。合資公司理論上是獨立個體,合資公司員工應把合資公司利益放到最前,而不是自己原屬公司的利益,但很少人做得到。慢慢下來,上汽也逐漸對墨菲產生尊重。

在美國和上海工作過的GM員工,指上海GM的工作氣氛跟美國截然不同,甚至認為上海GM形成一套自己的文化,這套文化建基於信任。墨菲跟員工打成一片,工餘在家中安排活動,中美關係罕有地融洽。 http://www.thehousenews.com/finance/由傲慢製造的優秀企業/



10. 永遠記得,做出決定前要先綜觀全局。

9. 否定別人跟切換開關一樣容易。但你最好拼死抵抗這種衝動,因為你也曾經做過蠢事。你做過爛決定,然後學習、成長,別人也一樣。

8. 掃地、擦桌、關燈。哪裡有漏洞要補就去補——即便那很瑣碎、沒人會注意。你必須做這些事去造福你的產品、你的公司,以及所有你們團隊共同打造的,令眾人驚艷、神奇的事物。

7. 你無法做所有的事。閉上眼睛,向後仰倒,學會信任。

6. 顯然有某種更為有效的方法能處理你正在做的事。是什麼呢?在每天回家的路上反覆思考吧。

5. 找出總是在依賴你的人,想想要怎麼做才能協助他們,讓他們自力更生。或許你覺得當個壟斷市場的鮭魚供應商很重要,但如果小鎮的所有人都學會捕魚,便能將你解放出來去做別的事。像是學習種小麥,或是如何馴服那些可愛的小狼。

4. 別說任何對當下討論沒有貢獻的話。你的聲音並非悠揚到絕對必須被聽見。

3. 做得出最好的決定比不上處在得以確保做出更多最佳決定的流程。

2. 就像你經常發表意見那樣,多說感謝和鼓勵的話語。

1. 最重要的是:永遠要掃除障礙物。那怕只是玩玩手指、看看窗外的雲,也別讓你那愚蠢、幼稚的自我阻礙團隊前進的腳步。

http://www.inside.com.tw/2013/02/04/a-manager-s-maifesto

http://joeduffyblog.com[..]oftware-leadership-6-read-every-checkin/

http://www.engineeringandcareering.co.uk[..]o.uk/2014/10/leading-and-delegating.html

https://www.thekua.com[..]op-5-mistakes-for-first-time-tech-leads/

http://www.yegor256.com/2015/01/08/morning-standup-meetings.html

How to lead with diplomatic - http://www.crucialskills.com[..]how-to-be-both-assertive-and-diplomatic/

Dr. Nico Rose cites research that finds that happy people tend to be more effective leaders. - http://www.forbes.com[..]-your-money-managing-your-life-part-one/

https://www.infoq.com/news/2017/02/humility-positive-trait

(google search) (amazon search)


Thu Feb 16 22:45:06 HKT 2017 From /weblog/languages/c

book


https://www.ossblog.org[..]ming-with-9-excellent-open-source-books/

https://www.ossblog.org[..]er-c-programming-with-open-source-books/

(google search) (amazon search)


Thu Feb 16 10:04:23 HKT 2017 From /weblog/database/vendor

mssql


SQL 2005 JDBC fix the resultset re-read throws exception problem. However, you need to use executeUpdate() for insert,update and delete instead of execute() for SQL 2005 JDBC, otherwise will throw exception on this.

Other that, statement.executeBatch() will throws exception: http://lab.msdn.microsoft.com[..]kid=e13a8009-7466-4803-ba19-6bfd4b5f8966

Update of newer version - http://www.infoq.com/news/2012/03/T-SQL-2012

New function of SQL server 2014, In-Memory Optimization tables, suppose to be faster? - http://www.infoq.com/news/2013/09/MOT-Indexes MOT table also support native compiled query - http://www.infoq.com/news/2013/09/Compiled-Queries , and lock free write? http://www.infoq.com/news/2013/09/Lock-Free-Writes

From microsoft, Use the columnstore index to achieve up to 10x query performance gains over traditional row-oriented storage, and up to 7x data compression over the uncompressed data size. - http://www.infoq.com/news/2013/09/Clustered-Columnstore

A tool from M$ to help sql server user to manage change of database: http://msdn.microsoft.com/vstudio/teamsystem/products/dbpro/ . Other similar product is DBGhost, also only work for SQL server http://www.innovartis.co.uk/home.aspx

There is a free version of SQL server 2005 call SQL server express, which just like MSDE http://www.microsoft.com/sql/editions/express/redistregister.mspx

Here is a comparison: http://www.sqlmag.com[..]le/ArticleID/49618/sql_server_49618.html , may be we can use that instead of MSDE 2005 and discoutinue support of SQL server 2000 so that we can test one thing less?

Import CSV to SQL server - http://www.sqlservercurry.com[..]oad-comma-delimited-file-csv-in-sql.html

Shriking DB cause performance problem... not sure how long this finding is hold - http://blog.sqlauthority.com[..]eases-fragmentation-reduces-performance/

http://beyondrelational.com[..]ver-storage-internals-part-1-basics.aspx

Get the metadata - http://gigi.nullneuron.net[..]-metadata-from-sql-server-catalog-views/

Date functions - http://www.essentialsql.com[..]roduction-to-sql-servers-date-functions/

Enhancement of 2016 - https://www.infoq.com/news/2016/06/SQl-Server-2016-Performance

Tool to rescue sql server - https://www.infoq.com/news/2017/02/SQL-First-Responder https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit http://firstresponderkit.org/

(google search) (amazon search)


Thu Feb 16 00:11:57 HKT 2017 From /weblog/political

leadership


羅斯福 (Franklin D. Roosevelt, 1882-1945) - http://thehousenews.com[..]%9A%E5%B0%8D%E4%BA%86%E4%BB%80%E9%BA%BC/

Michael Bloomberg - http://cn.wsj.com/big5/20131022/DJF065929.asp?source=rss

Many leaders are the opposite—forceful and even dogmatic. And yet, they are very successful - https://www.vitalsmarts.com[..]from-using-crucial-conversations-skills/

(google search) (amazon search)


Thu Feb 16 00:03:22 HKT 2017 From /weblog/design/pattern

reactive


https://realm.io[..]ation-hugo-visser-rxjava-for-rest-of-us/

(google search) (amazon search)


Wed Feb 15 17:35:52 HKT 2017 From /weblog/java/libraries

mapper


Discussion of difference Java base object to object mapper - http://halyph.blogspot.com.au[..]013/10/java-object-to-object-mapper.html

Some information about JOOQ - https://www.infoq.com/news/2017/02/data-geekery-releases-jooq-3-9

(google search) (amazon search)


Mon Feb 13 14:38:25 HKT 2017 From /weblog/unix

vim


Web base vim as tutorials - http://www.knowvim.com/ http://www.openvim.com/tutorial.html

History of VIM - http://arstechnica.com[..]f-productivity-vims-20th-anniversary.ars

Guide for editing text object, most already familiar with using 'w' for word editing, this blog discuss more about using 'p' for paragrahy and other related stuff. - http://blog.carbonfive.com[..]7/vim-text-objects-the-definitive-guide/

Seven habits of effective text editing , a lot of nice tip of using vim, like hlsearch , omni-completion

http://www.moolenaar.net/habits.pdf
http://video.google.com/videoplay?docid=2538831956647446078

vimdiff tips - http://blog.objectmentor.com[..]cles/2008/04/30/vim-as-a-diff-merge-tool http://gcody.blog.ccidnet.com[..]9899-uid-36931-do-showone-type-blog.html

How to regex with line number - http://vim.wikia.com/wiki/Insert_line_numbers_2

cheat sheet of jumping around source code - http://www.faqs.org[..]inux-HOWTO/C-editing-with-VIM-HOWTO.html

Nice analysis of good programming environment - http://www.benrady.com[..]why-i-switched-from-textmate-to-vim.html

Creating macros in vim - http://smartic.us/2010/02/03/creating-macros-in-vim

http://www.markhneedham.com/blog/2010/12/27/vim-learnings-so-far/ <- introduction to Command-T and FuzzyFinder

Some VIM tips:

Essential Vim editor navigation commands
Vim search and replace – 12 powerful find and replace examples.
How To add bookmarks inside the Vim editor
How To record and play inside the Vim editor
Correct spelling mistakes automatically inside the Vim Editor
Automatic word completion using Ctrl-X
Enable thesaurus option in the Vim editor
Vim autocommand magic. Add custom header to your files automatically.
Convert Vim editor to a beautiful source code browser.
Use the Vim editor as a bash IDE, or C/C++ IDE, or Perl IDE.

http://www.thegeekstuff.com/2010/04/vim-editor-tutorial/ https://spin.atomicobject.com[..]com/2016/04/19/vim-commands-cheat-sheet/

ctrl+w, ctrl+w , vimdiff switch folder - hack2live.blogspot.com/2009/02/vimdiff-shortcut-keys.html

tutorial - http://javarevisited.blogspot.com[..]editor-in-unix-example-tutorial-and.html https://danielmiessler.com/study/vim/ https://www.reddit.com[..]s/3mfvdg/how_do_i_go_about_learning_vim/

Compilation plugin - http://www.vim.org/scripts/script.php?script_id=3115#2.9.3

Highlight multiple searches at the same time, each with a different color. - http://www.vim.org/scripts/script.php?script_id=479 http://www.vim.org/scripts/script.php?script_id=2666#2.6.0

C/C++ IDE - http://www.vim.org/scripts/script.php?script_id=213 http://blog.wuwon.id.au[..]10/vim-plugin-for-navigating-c-with.html

Evil, putting vi in emacs - http://spin.atomicobject.com/2013/02/28/emacs-or-vim-evil/

Fixing syntax at solaris, "export TERM=xtermc", ":syntax enable" - http://kdl.nobugware.com/post/2006/12/01/23-xterm-color-on-unix

Graph your Vim undo tree in style. - http://sjl.bitbucket.org/gundo.vim/

Introduction to Selecta and Command-T, tool for fuzzy mapping and open files easier - http://marcovaltas.com/2013/12/27/selecta-on-vim-wildignore.html

http://superuser.com[..]d-the-vimrc-file-be-located-on-windows-7

Open Visual Studio config as XML - https://groups.google.com/forum/#!topic/vim_use/HzVM9tjJP08

Snippert library ( e.g. function template ) - https://www.reddit.com[..]3h7lca/which_snippet_library_do_you_use/

https://www.reddit.com[..]t_are_your_musthave_configs_and_plugins/

https://www.reddit.com[..]mments/2w22gf/edit_google_docs_with_vim/

https://www.reddit.com[..]nts/3ijsi2/original_post_a_vimrc_primer/

https://www.reddit.com[..]an_autocomplete_plugin_if_yes_which_one/

gUU to turn whole line upper case, and guu to turn whole line lower case - https://www.reddit.com[..]_guu_makes_an_entire_line_lowercase_and/

can use :TOhtml to turn a text file to HTML - http://jezenthomas.com/how-i-write-invoices-in-vim/

set encoding=utf-8 - https://www.reddit.com[..]how_to_reliably_switch_to_using_utf8_by/

If you like to test the regex for vi, can refer to this - http://www.virex.org/

http://www.hostingadvice.com[..]/blog/vim-creator-champions-charityware/

Another blog about using vim as IDE - https://spacevim.org/2017/02/11/use-vim-as-a-java-ide

(google search) (amazon search)


Sat Feb 11 22:53:30 HKT 2017 From /weblog/entertainment

movie


http://www.damncoolpictures.com[..]0-actors-who-turned-down-james-bond.html

讓我狠狠想你——王家衛電影的思念與愛情 - http://thehousenews.com[..]%9D%E5%BF%B5%E8%88%87%E6%84%9B%E6%83%85/ http://hypesphere.com/archives/33810

十大最浪漫電影 - http://thehousenews.com[..]A3%E5%B9%B4%E8%8F%AF-%E4%B8%8A%E6%A6%9C/

不按牌理出牌!影史10大即興演出 - http://hypesphere.com/?p=27716

http://www.damncoolpictures.com[..]02/top-10-deadliest-horror-villains.html

歎為觀止的一鏡到底!影史著名12顆長鏡頭畫面 - http://hypesphere.com/?p=29221 http://hypesphere.com/?p=29346

你是動作科幻迷嗎?影史40把知名槍械大集合! - http://hypesphere.com/?p=28705

「我要打十個!」 回顧甄子丹7場精彩武打場面 - http://hypesphere.com/?p=42023

喜劇之外:班史堤勒 - http://hypesphere.com/?p=42406 http://www.hypesphere.com/archives/48096

中土世界的魔法師:彼得傑克森 - http://hypesphere.com/?p=42229

Famous robots - http://hypesphere.com/?p=42483

Robin Williams - http://list25.com[..]-actor-and-comedy-genius-robin-williams/ http://hypesphere.com/?p=35616 http://hypesphere.com/?p=35671 http://www.damncoolpictures.com[..]ilarious-stand-up-comedy-jokes-from.html

鈕承澤 - http://hypesphere.com/?p=35238

Matrix - http://www.damncoolpictures.com[..]hings-you-probably-didnt-know-about.html http://www.inside.com.tw[..]/what-does-an-engineer-see-in-the-matrix http://www.hypesphere.com/archives/66843

http://backtothefuture.wikia.com/wiki/Main_Page

http://marvel.wikia.com/Main_Page

[專題] 從黑澤明的《七武士》淺談剪接在電影發展裡的奧祕 - http://www.hypesphere.com/archives/52080

About Pulp Fiction - http://www.hypesphere.com/archives/57933

Johnny Deep - http://www.hypesphere.com/archives/55863

Inception - http://www.hypesphere.com/archives/55749/3

Evolution of sound in movie - http://www.hypesphere.com/archives/57396

聽到聲就知影!8 首知名角色登場配樂! - http://www.hypesphere.com/archives/57398

[專題] 跟著老師動疵動!十部你不能錯過的歌舞電影 - http://www.hypesphere.com/archives/56366

[專題] 最熟悉的陌生人:六位你一定要認識的電影片頭設計大師 - http://www.hypesphere.com/archives/59498

傑克葛倫霍, Jake Gyllenhaal - http://www.hypesphere.com/archives/60496

About "Back to the future" - http://www.damncoolpictures.com[..]facts-you-probably-never-knew-about.html

Star war fact - http://list25.com[..]s-to-bring-out-your-inner-jedi/?view=all

Alan Rickman - http://list25.com[..]should-know-about-alan-rickman/?view=all

10 個不露骨卻讓人臉紅心跳的床戲- http://www.hypesphere.com/archives/85160


(google search) (amazon search)


Sat Feb 11 22:01:54 HKT 2017 From /weblog/business

management


Using game as training - http://cn.wsj.com/big5/20120514/eoe080717.asp?source=rss , and drawing for communication - http://cn.wsj.com/big5/20120514/eoe082405.asp?source=rss

No control, but empower - http://www.michelemmartin.com[..]01/some-thoughts-on-managing-people.html

10 rules of success, not really very insighful ideas but still nice to take a look: http://draginol.joeuser.com/articles.asp?c=1&AID=114319

Another 10 tips for product manager - http://www.brainmates.com.au/?p=109

An interesting example of how people gaming the reward system - http://www.joelonsoftware.com/items/2007/05/10.html

Interview of Jeff Bezos and learn about his management style - http://www.fastcompany.com/magazine/85/bezos_4.html

Dos and Don'ts for line manager - http://blog.jezhumble.net/?p=29

8 elements of dysfunctional management - http://jchyip.blogspot.com[..]lements-of-dysfunctional-management.html

Talk verse Action:
All Talk and No Action - http://www.thekua.com[..]ectives-go-wrong-all-talk-and-no-action/
All Action and No Talk - http://www.thekua.com[..]ectives-go-wrong-all-action-and-no-talk/
A suggestion of taking the balance - http://www.scrumalliance.org/articles/61

Discussion about issues of managing remote teams - http://inhumanresources.blogspot.com/2008/01/1.html

Team building with the way of "pointy haired boss" ?? - http://manincentral.blogspot.com/2008/02/blog-post_12.html

Promote the problem maker to make them better?? Is that work? - http://manincentral.blogspot.com/2008/02/blog-post_16.html May be it is true that problem maker are innovator, give them more work and reward can change their negative performance to more than expected positive performance.

The most consistent and intense complaint from team members was that their team leaders were unwilling to confront and resolve problems associated with poor performance by individual team members. http://www.codinghorror.com/blog/archives/001154.html

Manage to learn - http://www.ft.com[..]dd-80e9-0000779fd18c.html?nclick_check=1

Suggestion about how to delegate to other, spend time to explain to vision - http://www.kui.name[..]E6%88%96%E8%80%85%E5%B4%A9%E6%BD%B0.html

Allocate free time to employee is good for company - http://www.codinghorror.com[..]12/08/today-is-goof-off-at-work-day.html

What management should be - http://www.jrothman.com[..]-people-can-you-manage-as-a-manager.html

1. 清楚意識到您的創新意圖
2. 為彈性的工作時間設計一個架構
3、涉入,然後再把手收回去
4. 測量什麼是有意義的
5. 給予「無實質價值」的報酬
6. 象徵化
7. 不是標準化地複製他人的創新行為

http://www.inside.com.tw/2014/01/15/6-way-innovation-culture http://www.fastcodesign.com[..]6-ways-to-create-a-culture-of-innovation


1. 在公司裡跟別人吐露的心事越少,對你越好。你以為是無傷大雅的閑聊,其實有可能會造成嚴重傷害。把你的猜測和擔憂都埋在心裡吧。

2. 務必管理好和下屬的關系。花時間和公司裡的較低層員工在一起,盡量對他們友好。對電梯操作員禮貌問候,對郵遞員表示感謝,對助理說句友善的話,這些都會得到讚賞。打造名譽要從基層做起。同樣的,碰到不爽的事情,要自己消化情緒,不要在別人面前發泄。

3. 做領導是一份全職工作,職責的時鐘永不停止。每個微小的跡象都會被解讀,你的不耐煩、失望或不安全感都會被那些解讀你的人放大。不應做出隨意、毫無準備的坦白,信息必須經過深思熟慮才能發出。要特別小心書面的東西,尤其是電子郵件──它們永遠都不會消失。

4. 保持聆聽並索取建議。每周至少在公司餐廳吃一次午飯,或者時不時在咖啡機旁逗留,聽聽其他人都在聊些什麼。如果有人想跟你說話,那就沒有理由不聽。如果有人批評,即使你不讚同也要花時間仔細回應。

5. 你覺得很風趣的俏皮話通常並不風趣。你的幽默感很容易被解讀為自傲和笨拙。如果你仍然以為講笑話或引用某個幽默故事對陳述觀點很重要,那麼請先跟你的配偶或信任的朋友演練一遍。幽默是有風險的。千萬不要拿嚴肅的事情開玩笑。

6. 很重要的一點是,保証重要事務的重要性。應該經常解釋你的戰略,可以換個措辭,但要反復強調。

7. 絕不要抱怨和解釋,沒有人會聽。出了差錯就承擔責任。不要把錯誤怪到前幾屆管理層、天氣、運氣不好或競爭對手身上。但也不要露出防御姿態。向前看──除非上級要求你辭職。

8. 信任你的專業顧問,接受他們的專業意見。不要對市場做過多猜測。沒有所謂的完美數據。做出決策,往前走。

9. 謹慎使用“平均”這個詞──平均深度為6英寸河也可能淹死人。欣然接受“平均”,只會獲得虛假的安全感。假設最糟糕的情況會發生,因為通常就是如此。

10. 最後這條是陳詞濫調,但卻是至理真言:絕不要做或說你不希望在報紙頭條看到的事情。和媒體打交道時,不要回答假設性的問題,謹記麥克風永遠不會真正關閉,絕不要同意“私下”談。對一場危機唯一值得做的公開回應是誠實。

http://cn.wsj.com/big5/20140318/eoe074616.asp?source=rss http://online.wsj.com[..]0001424052702303519404579353060931625306

給新手高管的10條建議 - http://cn.wsj.com/big5/20140318/eoe074616.asp?source=rss

http://jchyip.blogspot.com[..]/causes-and-solutions-for-bystander.html

以競爭激發員工潛力有其道理,但就我過往所見,鼓催互鬥文化往往淪為非實力較量,最後變成內部互搞小動作放毒箭,對公司產生最嚴重的破壞 - 內耗。 - http://thehousenewsbloggers.net[..]%84%EF%BC%9F%EF%BC%8F%E5%BE%90%E7%B7%A3/

Good developer cannot be good manager? - http://discuss.joelonsoftware.com/default.asp?joel.3.172310

Manager guid in google - https://www.infoq.com/news/2017/02/google-managers

(google search) (amazon search)