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 May 23 12:56:50 HKT 2017 From /weblog/misc

infrastructure


Why we need tools design for provisioning - https://www.thoughtworks.com[..]anagement-and-provisioning-are-different

Cloud or not? http://www.infoq.com[..]/why-does-gitlab-persist-in-using-clouds https://about.gitlab.com[..]/03/02/why-we-are-not-leaving-the-cloud/

(google search) (amazon search)


Sun May 21 01:00:36 HKT 2017 From /weblog/health/food

snack


benefits-of-nuts - http://www.mr-sport.com.tw/post/benefits-of-nuts.html

女士要學會聰明吃零食-7種美味解毒又防頑症 - http://www.healthcare-kingdom.com[..]F%92%E5%8F%88%E9%98%B2%E9%A0%91%E7%97%87

Look like quite a lot of problem of gum - http://list25.com/25-fun-facts-about-bubblegum/

(google search) (amazon search)


Thu May 18 10:29:03 HKT 2017 From /weblog/java/concurrency

tutorial


Another nice tutorial set of concurrency framework - http://www.javacodegeeks.com/search/label/Concurrency

Java concurrency, Building and testing concurrent applications for the Java platform - http://www.ibm.com[..]/training/kp/j-kp-concurrency/index.html

JVM concurrency: Java and Scala concurrency basics - http://www.ibm.com[..]/java/library/j-jvmc1/index.html?ca=drs-

http://javarevisited.blogspot.com.au[..]reading-interview-questions-answers.html

5 things you didn't know about ... Multithreaded Java programming - https://www.ibm.com/developerworks/library/j-5things15

(google search) (amazon search)


Thu May 18 10:28:15 HKT 2017 From /weblog/java/features

jdbc


5 things you didn't know about ... Java Database Connectivity - https://www.ibm.com/developerworks/library/j-5things10/index.html

(google search) (amazon search)


Wed May 17 10:27:49 HKT 2017 From /weblog/java/tools

monitoring


Java Flight Recorder, a tool to record all detail of how the API work for undo and replay and detail profiling - http://docs.oracle.com/cd/E15289_01/doc.40/e15070/toc.htm

Creating Custom JFR Events - http://hirt.se/blog/?p=444

Java Mission Control - http://blog.eisele.net[..]-mission-control-52-is-finally-here.html http://hirt.se/blog/?p=343 http://hirt.se/blog/?p=364&cpage=1#comment-98 https://www.infoq.com/news/2016/10/Java-Flight-Recorder-Mission

Support of JMX from common java library - http://www.javacodegeeks.com[..]ling-jmx-in-hibernate-ehcache-qurtz.html

sample code show how to get vm info at jmx - http://blogs.sun.com/jmxetc/entry/how_to_retrieve_remote_jvm

An excellent short tutorial of JMX - http://java.sun.com/developer/technicalArticles/J2SE/jmx.html

Monitoring all tomcat 5 JMX information, with free tools and java startup config - http://jroller.com[..]illiams/20050202#monitoring_tomcat_5_5_x

Task manager like jconsole plugin - http://blog.luminis.nl[..]is/entry/top_threads_plugin_for_jconsole

Performance cost of JMX - http://weblogs.java.net[..]nus/archive/2006/07/how_much_does_i.html

Monitoring Local and Remote Applications Using JMX 1.2 and JConsole - http://onjava.com/lpt/a/5226

Collections of tools - http://www.javacodegeeks.com[..]/client-side-server-monitoring-with.html

remote conenction with ssh - http://theholyjava.wordpress.com[..]nitoring-remote-jvm-over-ssh-jmx-or-not/

IBM healthcare API - http://www.ibm.com[..]rary/j-healthcareapi1/index.html?ca=drs- http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/

JVM Statistics with jstat - http://marxsoftware.blogspot.hk[..]k/2017/05/jvm-statistics-with-jstat.html

(google search) (amazon search)


Sat May 06 14:13:47 HKT 2017 From /weblog/java/features

java8


Introduction of Lambdas expression in Java - http://zeroturnaround.com/labs/java-8-the-first-taste-of-lambdas/ , an example show how lambdas help to clean up the duplication - http://www.nurkiewicz.com[..]mplifying-readwritelock-with-java-8.html

Another article about Java8 change, where Lambdas is the highlight - http://www.infoq.com/news/2013/08/everything-about-java-8 http://www.shaunabram.com/java8/

Nice tutorial - http://www.dreamsyssoft.com/java-8-lambda-tutorial/index.php

Huge list of articles - http://www.baeldung.com/java8

Use lambdas to replace for-loop - http://saltnlight5.blogspot.com.au[..]creating-your-own-loop-structure-in.html https://www.ibm.com/developerworks/library/j-java8idioms3

Overview for new Date/Time library - http://www.infoq.com/articles/java.time

http://www.javacodegeeks.com[..]om/2014/05/java-8-features-tutorial.html

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

Convert SQL feature to stream - http://blog.jooq.org[..]and-their-equivalents-in-java-8-streams/

(google search) (amazon search)


Fri May 05 11:31:29 HKT 2017 From /weblog/%E6%97%A5%E5%B8%B8%E7%94%9F%E6%B4%BB

kitchen


http://www.damncoolpictures.com/2014/04/microwave-hacks.html

http://list25.com/25-genius-microwave-cooking-tips/?view=all

【開鑊tips】生鐵鑊開鑊孖寶︰豬油+韭菜 - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20170505/56648460

【用鑊tips】不銹鋼鑊不黐底秘訣 一粒水珠幫到你 - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20170505/56648464

(google search) (amazon search)


Mon Apr 24 22:46:26 HKT 2017 From /weblog/learning

creativity


Following the curiosity - http://michael.nona.name[..]chives/how-i-learn-1-follow-curiousness/

Creativity is often about 'Synthesis' - http://cipher-quaker.blogspot.com[..]9/12/what-avatar-can-teach-us-about.html

How to improve creativitiy? http://cn.wsj.com/big5/20120323/TRV113225.asp?source=rss

最成功的人,多少都帶點率性,都忠於自己。不是嗎?天天做著不喜歡的事,又怎能出類拔萃?有 Passion,自然就投入,就有幹勁。 http://thehousenews.com[..]%AD%E5%8A%9B%E7%9A%84%E4%BA%BA%E6%89%8D/

Analysis
Synthesis
Implementation

http://www.forbes.com[..]ity-the-hard-work-of-combinatorial-play/

Too much structured knowledge hurts creativity, shows study - https://www.sciencedaily.com/releases/2017/03/170322152736.htm

(google search) (amazon search)


Mon Apr 24 18:09:36 HKT 2017 From /weblog/microsoft

development


Check why process take a lot of CPU - http://javaeesupportpatterns.blogspot.ca[..]java-thread-cpu-analysis-on-windows.html

Creating Windows Runtime Components in C++ - http://msdn.microsoft.com[..]rary/windows/apps/hh441569(v=VS.85).aspx

dbg_x86 - Offical Windows debugger - http://www.google.com.hk[..]0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=en
ntsd - Symbolic Debugger for Windows - http://www.google.com.hk[..]0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=en
symchk - verify the .pdb matched your dll - http://www.google.com.hk[..]0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=en
windbg - interface from dbg - http://www.google.com.hk[..]0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=en

Run windbg.exe and open memory.dmp into windbg (File->Open Crash Dump)

Memory limits of windows applications - http://software.intel.com[..]icles/memory-limits-applications-windows

http://programmers.stackexchange.com[..]s-that-every-developer-should-know-about

Code for creating ISO Image - http://dotnet-snippets.com[..]/create-iso-image-from-cddvd-SID641.aspx

Code for creating virtual drive - http://dotnet-snippets.com/dns/create-a-virtual-drive-SID632.aspx

UnitTest framework for .NET - http://blog.dotnetdude.net/2012/09/net-testing-frameworks.html

Complete example of building a REST base service and GUI on Win8 device - http://www.drdobbs.com[..]icleId=240144594&siteSectionName=windows

Use msvsmon for remote debugging - https://www.google.com/search?q=msvsmon

C# chart library comparison - http://quant.stackexchange.com[..]reate-charts-in-wpf-finance-applications

CLR profiler - http://www.microsoft.com/en-us/download/details.aspx?id=16273

Debugging multi-thread program in VS - http://www.drdobbs.com[..]icleId=240158201&siteSectionName=testing

Walk through the DLL dependence - http://www.dependencywalker.com/

Debugging windows service - http://www.drdobbs.com[..]042?elq=debf26dfe54f4342a26157cc533d8209

How to skip the default init for windows programs - http://www.bigmessowires.com/2015/10/02/what-happens-before-main/

Create executable file by hand - http://www.bigmessowires.com[..]m/2015/10/08/a-handmade-executable-file/

Using var maybe costly - http://www.nimaara.com[..]6/beware-of-the-idictionary-tkey-tvalue/

Performance tuning - https://alexandrnikitin.github.io[..]blog/high-performance-dotnet-by-example/

(google search) (amazon search)


Mon Apr 24 10:13:29 HKT 2017 From /weblog/computer+science

parsing


ANTLR tutorial, look simple enough, however hard for me to find a use case that need to write a parser myself, any recommendation?

http://www.alittlemadness.com/?p=23

https://tomassetti.me/resources-create-programming-languages/

(google search) (amazon search)


Sun Apr 23 17:16:05 HKT 2017 From /weblog/learning

Thinking


How to develop imagination - http://blog.sina.com.cn/s/blog_47841af70100ca7r.html

7 Important Creative Thinking Skills - http://www.business-strategy-innovation.com[..]06/7-important-creative-thinking-skills/

Are you interested to be genius? - http://www.studygs.net/genius.htm

4 ways of treating problems
Absolution: Ignore the problem and hope it either fixes itself or someone else solves it. Default.
Resolution: Either look to the past for previous solutions to the same problem OR identify and remove the causes of the problem. Satisfice.
Solution: Analyse using quantitative methods and / or experimentation to try to yield the best possible outcome. Optimise.
Dissolution: Eliminate the problem and prevent it from arising again by redesigning the system that has the problem or its containing system. Idealise.

http://jchyip.blogspot.hk[..]2012/06/4-ways-of-treating-problems.html

言语的非连贯性, 偏重例子, 一图抵千言,提问,回答。 http://blogs.exmertec.com/elvis/entry/5

http://www.inside.com.tw[..]014/03/05/25-things-ive-learn-about-life

阿师看世界永远像小孩子那样看,对琐碎事物的提问永远本着小孩子的好奇心,提出的问题永远是浅得像一个脑子没有发育得好的人。我是因为答不出他的浅问题而知道做学问要从最简单的层面入手,然后一层一层地加上变化。
一九六九年起我不再读他家之作。这行为八二年回港任教后多受批评,反映着中、西为学之道有别。在此之前的西雅图华大,诺斯、麦基、巴泽尔等人知道我选择不读不仅同意,且往往鼓励。他们知道传统的经济理论有很多问题,认为我是个可以全面革新该传统的人选。我自己当时的想法,是书永远读之无尽,求学有读书的时候,也有思想的时候,思想时可以不读最好不读。
http://blog.sina.com.cn/s/blog_47841af70102uxvx.html

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

我自己当时的想法,是书永远读之无尽,求学有读书的时候,也有思想的时候,思想时可以不读最好不读。- http://blog.sina.com.cn/s/blog_47841af70102uxvx.html

培養孩子的創業精神 - http://cn.wsj.com/big5/20140429/lif110851.asp?source=rss

什麼是思考方法? - http://chit-chit-philosophy.blogspot.hk/2015/12/blog-post.html
思考的必要態度:同情理解原則 - http://chit-chit-philosophy.blogspot.hk/2015/12/blog-post_7.html

Critical thinking is an unnatural act. We evolved to survive in a cruel world, not to play around with our hacks. To make things worse, we evolved in a herd, which means that we intuitively respect the authority of the leader. But we also have to be creative, so we have to respect ourselves first. Finding the right dose of self-respect is a crucial thing in creative work. Too little self-respect could destroy our motivation and creativity, and too much will interfere with our ability to estimate the value of our ideas, and can easily result in investing time, money and effort in worthless projects.

Noone is born a critical thinker, but almost anyone can become one. Think about what [Edward de Bono] said:

“The need to be right all the time is the biggest bar to new ideas. It is better to have enough ideas for some of them to be wrong than to be always right by having no ideas”.

http://hackaday.com[..]and-creative-thinking-in-a-hackers-work/

转谈艺术。艺术当然要讲技术,不容易,要多下功夫。论技术,我认为艺术比科学重要。一位技术超凡的画家,想象力不足道,其作品可以卖得起钱。有大成的艺术家呢?单凭技术不足够,加上想象力超凡也不足够——不可或缺的是感情的表达。后者是艺术的主要困难所在。科学是不需要表达感情的。 - http://blog.sina.com.cn/s/blog_47841af70102wca6.html

http://concurrencyfreaks.blogspot.hk[..]/dope-i-should-have-thought-of-that.html

why-facts-dont-change-our-minds - http://www.newyorker.com[..]17/02/27/why-facts-dont-change-our-minds

What is the scientific method: definition, steps, and pitfalls - http://www.zmescience.com/science/scientific-method-steps

(google search) (amazon search)


Sat Apr 01 23:22:46 HKT 2017 From /weblog/science

math


About PI - http://thestandnews.com[..]i-%E6%98%AF%E6%B0%B8%E6%81%86-%E4%BA%8C/

Interesting maths - http://list25.com[..]math-principles-to-challenge-your-brain/

(google search) (amazon search)


Fri Mar 31 16:56:44 HKT 2017 From /weblog/ai

packages


https://algorithmia.com/

(google search) (amazon search)


Thu Mar 30 14:48:57 HKT 2017 From /weblog/java/performance

memory


Will you get any performance improvement if you manage memory yourself? - http://mentablog.soliveirajr.com[..]ne-is-faster-java-heap-or-native-memory/

More heap, GC will get slower - http://plumbr.eu[..]ing-heap-size-beware-of-the-cobra-effect

Collection of tools to analysis GC activities - http://www.fasterj.com/tools/gcloganalysers.shtml

Another presentation of performance hint for hotspot or memory - http://www.infoq.com/presentations/Extreme-Performance-Java

Show how to enable and analyze the verbose:gc out data - http://javaeesupportpatterns.blogspot.com.au[..]3/01/java-verbose-gc-tutorial-video.html

Discussion and comparison of difference GC at Java 1.7 - http://mechanical-sympathy.blogspot.com.au[..]7/java-garbage-collection-distilled.html . And here is the detail experiment among those difference GC, look like G1 is quite promising - http://java-is-the-new-c.blogspot.com.au[..]ng-and-benchmarking-java-7s-garbage.html

Memory is not allocate to single block, thus even you allocate enough memory in term of size, it may not enough to held individual object - https://plumbr.eu/blog/outofmemoryerror-on-overprovisioned-heap

Introduction to metaspace - http://www.infoq.com/articles/Java-PERMGEN-Removed

http://vanillajava.blogspot.com.au[..]optimising-memory-consumption-first.html

Some comments about System.gc() - http://jeremymanson.blogspot.com[..]om/2015/12/why-i-dont-like-systemgc.html

http://blog.takipi.com[..]ng-your-java-garbage-collection-overhead

Logging stop-the-world pauses in JVM - https://plumbr.eu[..]log/logging-stop-the-world-pauses-in-jvm

Why we should put difference app in same VM - http://mydailyjava.blogspot.hk[..]0/generational-disparity-in-garbage.html

Atlassian GC tuning guide - https://confluence.atlassian.com[..]ollection-gc-tuning-guide-461504616.html

Using jemalloc to get to the bottom of a memory leak - https://gdstechnology.blog.gov.uk[..]c-to-get-to-the-bottom-of-a-memory-leak/

Troubleshooting-Java-Memory-Issues - https://www.infoq.com/articles/Troubleshooting-Java-Memory-Issues

(google search) (amazon search)


Thu Mar 30 14:47:41 HKT 2017 From /weblog/software_engineering/testing

test data


Suggestion of how to manage the test datas - http://jchyip.blogspot.com[..]citcon-melbourne-2008-managing-test.html

Difference Pattern of managing test datas - http://adrianmowat.blogspot.com[..]damentals-of-data-testing-setup-and.html

How to get the data feed and design automated test trading system - http://howtohft.wordpress.com[..]m/2011/02/16/trading-system-testability/

False assumption about time - http://infiniteundo.com[..]alsehoods-programmers-believe-about-time

Create your own clock - http://ducktypo.blogspot.hk[..]3/12/the-virtual-clock-test-pattern.html

Just change the return of Calendar - http://octodecillion.com/blog/mock-date-time-using-jmockit/

Discussion about creating test data - http://blog.codeleak.pl[..]est-data-builders-and-object-mother.html

http://www.petrikainulainen.net[..]r-data-access-code-unit-tests-are-waste/

Dummy, fake, stub, spy and mock - http://letstalkaboutjava.blogspot.hk[..]pot.hk/2015/09/test-double-patterns.html http://www.shaunabram.com/test-doubles/

Generation of test data - http://filldb.info/ http://www.softwaretestingmagazine.com[..]/tools/open-source-test-data-generators/

Using test container, and compare it with other test data solution - http://www.objectify.be[..]28/database-testing-with-testcontainers/ https://www.testcontainers.org/

(google search) (amazon search)



Mon Mar 27 10:38:42 HKT 2017 From /weblog/java/features

reflection


Good : dynamic, generic
Bad: slow, don't work with Obfuscators and most searching and refactoring tools

http://jroller.com/page/ie?entry=time_to_reconsider_reflection

A very nice tool to get parameter name - http://paranamer.codehaus.org/ (e.g.: user of getUser(User user))

How to improve the performance - http://coding-masters.blogspot.com[..]-reflection-as-fast-as-direct-calls.html

The problem of using reflection to modify final field - http://www.azulsystems.com[..]7-writing-to-final-fields-via-reflection

Using reflection for using test - http://www.javaadvent.com[..]f-hacking-enums-and-modifying-final.html

Sharing about using invokedynamic - http://www.infoq.com/presentations/invokedynamic http://www.infoq.com[..]ticles/Invokedynamic-Javas-secret-weapon https://www.infoq.com/articles/Invokedynamic-Javas-secret-weapon

(google search) (amazon search)


Sun Mar 26 00:09:52 HKT 2017 From /weblog/java/string

regex


Introduction to a library which support faster regular expression processing: http://weblogs.java.net[..]ite/archive/2006/03/a_faster_java_r.html http://www.javaadvent.com[..]-expression-library-benchmarks-2015.html

Regex helper - https://github.com/VerbalExpressions/JavaVerbalExpressions

java-regular-expressions-cheat-sheet - https://zeroturnaround.com[..]abs/java-regular-expressions-cheat-sheet

(google search) (amazon search)



Wed Mar 22 00:08:56 HKT 2017 From /weblog/business

meeting


Tips for getting the most from meeting - http://cn.wsj.com/big5/20120224/eoe082439.asp?source=rss

No meeting should ever be more than an hour, under penalty of death.
Every meeting should have a clearly defined mission statement.
Do your homework before the meeting.
Make it optional.
Summarize to-dos at the end of the meeting.

http://www.codinghorror.com[..]/02/meetings-where-work-goes-to-die.html

Good and bad thing from meeting - http://www.targetprocess.com/blog/2013/01/meetings-are.html

「兩個披薩」和「六頁備忘錄」, meeting attendant should not eat more than 2 plazas and the discussion item should not more than 6 pages - http://www.businessinsider.com.au[..]zza-rule-for-productive-meetings-2013-10 http://www.inside.com.tw[..]zza-rule-for-productive-meetings-2013-10

http://softwaredevelopmenttoday.blogspot.ch[..]ve-signs-your-meetings-are-waste-of.html <- I like this one: "Sign 4: Someone asks: "who will document the results of this meeting?""

上班族必學-在會議中教人刮目相看的十招, I double if it working...... - http://thehousenews.com[..]%B8%E7%9C%8B%E7%9A%84%E5%8D%81%E6%8B%9B/

http://www.yegor256.com[..]7/13/meetings-are-legalized-robbery.html

A team might agree around the conference table, but then express doubts in the “safer” environment of the hallway or coffee shop. - https://marketoonist.com[..]14/03/the-meeting-after-the-meeting.html

(google search) (amazon search)


Tue Mar 21 14:31:55 HKT 2017 From /weblog/software_engineering/team

offshore


Recently I help the company offshore some work to CN developers, many difficulty I've encounter, most difficult one is it is hard to share the vision and big picture to CN developers.

This article mention a few good notes http://martinfowler.com/articles/agileOffshore.html , the one I think I am lacking is having short meeting with them often. I will see if we can have video conferencing so that we are easier to meet.

The other tips here - http://www.theserverside.com[..]_id=45367&asrc=EM_NLN_1439070&uid=703565 but I think the tips list is too long and probably only apply to large enterprise

Tips of communication with offshore team - http://www.acceptic.com[..]on-in-software-development-projects.html

http://martinfowler.com/articles/remote-or-co-located.html

https://www.infoq.com/articles/top5-problems-distributed

https://www.infoq.com/articles/be-agile-distributed-teams http://www.infoq.com/cn/articles/be-agile-distributed-teams

(google search) (amazon search)


Tue Mar 21 14:30:43 HKT 2017 From /weblog/security

fundamental


Introduction to Cryptography Basic Principles - http://www.thegeekstuff.com/2012/07/cryptography-basics/

http://www.thegeekstuff.com[..]01/diffie-hellman-key-exchange-algorithm

http://meri-stuff.blogspot.hk[..]tography-theory-1-meaning-of-secure.html

getting-a-list-of-available-cryptographic-algorithms - http://invariantproperties.com[..]t-of-available-cryptographic-algorithms/

Differential privacy - http://www.infoq.com/cn/articles/differential-privacy-intro https://www.infoq.com/articles/differential-privacy-intro

(google search) (amazon search)


Sun Mar 19 10:25:58 HKT 2017 From /weblog/design

microservice


The Hidden Dividends of Microservices - http://queue.acm.org/detail.cfm?ref=rss&id=2956643

Best practices - http://www.infoq.com[..]constructing-micro-service-system-part03

http://basho.com/posts/technical/microservices-please-dont/

Compare using library / service - http://blog.jessitron.com/2017/01/dependencies.html http://www.infoq.com[..]cy-management-whether-library-or-service

(google search) (amazon search)



Tue Mar 14 23:52:20 HKT 2017 From /weblog/learning

code


http://www.infoq.com/articles/kids-enthusiasm-coding

How to teach kid love coding - http://cn.wsj.com/big5/20170314/LIF170612.asp

(google search) (amazon search)