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

Wed Nov 16 23:37:49 HKT 2016 From /weblog/health

time


http://www.webmd.com/balance/ss/slideshow-best-time

(google search) (amazon search)


Tue Nov 15 16:56:18 HKT 2016 From /weblog/software_engineering/testing

tester


Being proactive! - http://xndev.blogspot.com[..]to-be-first-class-citizen-as-tester.html

http://blog.codinghorror.com/doing-terrible-things-to-your-code/

Well, of course it say yes...... - http://testinggeek.com[..]6/27/software-testers-need-learn-coding/

(google search) (amazon search)


Tue Nov 15 10:53:50 HKT 2016 From /weblog/design

value object


Discussion of DTO - http://mrpmorris.blogspot.com/2009/01/data-transfer-objects.html

Discussion of value object - http://blog.joda.org/2014/03/valjos-value-java-objects.html http://martinfowler.com/bliki/ValueObject.html http://martinfowler.com/bliki/AliasingBug.html

(google search) (amazon search)


Tue Nov 15 10:49:25 HKT 2016 From /weblog/design/concurrency

concurrency


How to write safer concurrency code - http://www.artima.com/forums/flat.jsp?forum=276&thread=178345

reentrant and thread safe functions - http://kevinrodrigues.com[..]/31/reentrant-and-thread-safe-functions/

Libraries / toolkits for multicore process - http://www.ddj.com[..]intableArticle.jhtml?articleID=212900103

Introduction - http://www.ddj.com[..]QQSNDLRSKHSCJUNN2JVN?articleID=212903586 http://www.ddj.com[..]CQSNDLRSKHSCJUNN2JVN?articleID=213001517

Collections of links - http://dobbscodetalk.com[..]rallel-Or-Get-Left-Behind.html&Itemid=29

Briefing of difference modeling of threading system - http://www.ddj.com[..]intableArticle.jhtml?articleID=215900465 http://software.intel.com[..]inners-guide-to-multithreaded-libraries/

http://natishalom.typepad.com[..]haloms_blog/2010/08/concurrency-101.html

Saving the Failwhale: The Art of Concurrency (Page last updated December 2012, Added 2012-12-26, Author Dhanji R. Prasanna, Publisher informit). Tips:

1) Contention is unavoidable - some resources are just slower, and you must wait for them. The secrets to good concurrency are 1) ensuring that these slower resources are rarely used, and 2) during such waiting periods, giving the faster tiers other work to do so that they continue to be utilized well.
2) Overuse of synchronization constructs such as locks and mutexes leads to systems that perform poorly under load.
3) ConcurrentHashMap is an efficient thread-safe map while HashMap is not thread-safe.
4) ConcurrentHashMap doesn't do away with locks, it still uses them but it uses more than the single global lock, so that threads gain some measure of concurrency. It uses separate locks for partitions, so that multiple threads writing to the map are likely to access different partitions, using separate locks and therefore process their data simultaneously. This technique is known as lock-striping. Efficient striping uses a number of locks proportional to the number of CPU cores in a system.
5) The asynchronous processing model smooths resource spikes by adding requests to a queue which is serviced by a pool of workers - spikes in requests make the queue grow rather than overloading the workers. (The ExecutorService is essentially a thread pool accompanied by a task queue.)

http://www.informit.com/articles/article.aspx?p=1994789

Discussion of using difference model for concurrency - http://highscalability.com[..]cks-application-architecture-pros-a.html

Concurrency vs Parallelism - http://concurrencyfreaks.blogspot.hk[..]/2013/12/concurrency-vs-parallelism.html

Compare between Actors, CSP, Disruptor and raw Threads - http://java-is-the-new-c.blogspot.com.au[..]omparision-of-different-concurrency.html

Few coding tips that should be useful for most languages - http://www.javacodegeeks.com[..]erformance-scalability-and-liveness.html http://www.javacodegeeks.com[..]2015/09/java-concurrency-essentials.html

Service Design
Do one thing, do it well
No shared operational state
Bound your queues
Name custom thread pools and register an UncaughtExceptionHandler
Prefer immutable data objects over mutable state
http://highscalability.com[..]-to-25-billion-notifications-during.html

(google search) (amazon search)


Sun Nov 13 22:10:09 HKT 2016 From /weblog/health/sport

stretching


首次公开拉筋术,俗话说:筋长一寸,寿长十年! - http://mp.weixin.qq.com[..]type=android-17&version=25000338&lang=en

http://www.mr-sport.com.tw[..]/use-five-movements-do-dynamic-warm.html

http://www.mr-sport.com.tw/post/stretch-after-workouts.html

https://www.mr-sport.com.tw[..]h-life/six-poses-for-a-better-sleep.html

床上懶人拉筋8式-助眠改善下背痛 - http://www.weekendhk.com[..]b-%e5%8a%a9%e7%9c%a0-%e8%83%8c%e7%97%9b/

5 simple morning stretching - https://www.mr-sport.com.tw[..]ute-morning-routine-feel-better-day.html

(google search) (amazon search)


Sat Nov 12 00:32:58 HKT 2016 From /weblog/learning

programmer


It takes time
It takes practice
It takes motivation
It takes inspiration
It takes discipline
It takes courage
It takes effort
It takes concentration
It takes perseveration
It takes education

http://www.brianonsoftware.com[..]become-a-valuable-software-professional/

Other articles about this topic - http://www.softwarebyrob.com[..]dvice_on_How_to_Become_a_Programmer.aspx

I love the following sentence a lot:

"Programmers are problem solvers. Programmers are logical thinkers. Programmers can figure out why it doesn't work. Programmers like to build new things and make old things work better.
Perhaps some folks think that limits programming to young folks, but I respectfully disagree. "

http://weblogs.java.net[..]lds/archive/2004/12/too_old_to_prog.html http://java.dzone.com/articles/10-effective-ways-become-good

In constrast - http://www.yacoset.com/Home/signs-that-you-re-a-bad-programmer

How to be a Programmer: A Short, Comprehensive, and Personal Summary - http://samizdat.mines.edu/howto/HowToBeAProgrammer.html http://assarconsulting.blogspot.gr[..]ways-to-think-wisely-in-development.html

Problem solving analysis - http://simpleprogrammer.com[..]01/08/solving-problems-breaking-it-down/

How to improve yourself - http://www.codinghorror.com[..]blog/2008/06/the-ultimate-code-kata.html , also, those task replicating add up bit by bit and comsuming time - http://rdegges.com/freeing-up-your-time

being-a-developer-after-40 - https://medium.freecodecamp.com[..]veloper-after-40-3c5dd112210c#.rgkhc7zba

Don't let failure limit yourself - https://blog.prototypr.io[..]-94081bb66bec?gi=be728cf1cf03#.2kt2xkvoj

(google search) (amazon search)


Fri Nov 11 14:47:24 HKT 2016 From /weblog/health/food

chocolate


http://www.list25.com[..]cts-you-wont-be-able-to-resist/?view=all

解癮御用 黑巧克力 - http://www.mr-sport.com.tw[..]ews/black-chocolate-is-good-for-you.html

benefits-to-eating-chocolate - http://list25.com[..]late-that-will-ease-your-guilt/?view=all

(google search) (amazon search)



Wed Nov 09 15:36:35 HKT 2016 From /weblog/hack+and+faq

git


Solve "unable to get local issuer certificate”, git config --global http.sslVerify false - http://stackoverflow.com[..]-issuer-certificate-using-git-on-windows

(google search) (amazon search)


Tue Nov 08 10:36:03 HKT 2016 From /weblog/copyright

licences


A nice table show the difference between difference type of opensource licence

http://www.petefreitag.com/item/533.cfm
http://blogs.zdnet.com/Burnette/?p=131
http://www.codinghorror.com/blog/archives/000833.html
http://onlamp.com/lpt/a/5330

A more detail look of GPL: http://blogs.zdnet.com/BTL/?p=2463&part=rss&tag=feed&subj=zdblog

Summary of some key point of typical business licence - http://www.codinghorror.com/blog/archives/000892.html

Free book about it - http://www.oreilly.com/catalog/osfreesoft/toc.html

Another discussion about choosing open source licence using - http://blog.jooq.org[..]stimates-contributor-license-agreements/

Cost of GPL - http://bitsplitting.org/2016/10/30/the-price-of-gpl/

(google search) (amazon search)


Fri Nov 04 17:35:55 HKT 2016 From /weblog/history

China


找個理由不革命--黎元洪們的第一選擇 - http://cn.wsj.com/big5/20120829/YMA082402.asp?source=rss http://cn.wsj.com/big5/20120910/YMA072242.asp?source=rss

解除黨禁:大政治家的無奈與膽識 - http://cn.wsj.com/big5/20130926/YMA071220.asp?source=rss

http://hk.apple.nextmedia.com/culturalrevolution

China: The Virtues of the Awful Convulsion - http://www.nybooks.com[..]ina-the-virtues-of-the-awful-convulsion/

(google search) (amazon search)


Wed Nov 02 16:14:20 HKT 2016 From /weblog/design/pattern

retry


understanding-retry-pattern-with-exponential-back-off-and-circuit-breaker-pattern - http://rahulrajatsingh.com[..]al-back-off-and-circuit-breaker-pattern/

(google search) (amazon search)


Wed Nov 02 16:13:31 HKT 2016 From /weblog/design/concurrency

lock


10-ways-to-reduce-lock-contention-in-threaded-programs - http://www.thinkingparallel.com[..]ce-lock-contention-in-threaded-programs/

Discussion about lock the form and prevent 2 user edit it in the same time and currupt the object, what is the possible drawback. - http://www.dcmanges.com[..]-optimistic-locking-isnt-a-silver-bullet

futexes - http://en.wikipedia.org/wiki/Futex http://groups.google.com[..]ds/browse_thread/thread/3c3608a779dc6731

Spinning - http://www.1024cores.net[..]ome/lock-free-algorithms/tricks/spinning

Locks for rarely changed data, sound like good suggestion - https://groups.google.com[..]pic/comp.programming.threads/dyrbRKsj4gw

Try to use non-blocking approach if possible - http://mechanical-sympathy.blogspot.com[..]1/locks-condition-variables-latency.html

Concurrency without lock, and even without correctness? - http://splashcon.org/2011/program/dls/245-invited-talk-2

Single write principle - http://mechanical-sympathy.blogspot.com.au[..].au/2011/09/single-writer-principle.html

Comparing difference kind of locks again - http://concurrencyfreaks.blogspot.com.au[..]11/stampedlocktryoptimisticread-and.html

10-ways-to-reduce-lock-contention-in-threaded-programs - http://www.thinkingparallel.com[..]ce-lock-contention-in-threaded-programs/

(google search) (amazon search)


Thu Oct 27 00:28:55 HKT 2016 From /weblog/misc

tools


http://en.wikipedia.org[..]i/List_of_tools_for_static_code_analysis

Project template for quicker start a project - http://www.petrikainulainen.net[..]-a-software-project-as-fast-as-possible/ http://jhipster.github.io/

LaTeX - http://marxsoftware.blogspot.com.au[..]o-begin-learning-and-applying-latex.html

Online tool to convert word document to good HTML - http://www.html-cleaner.com/

Online IDE - https://code.sololearn.com/#java

(google search) (amazon search)


Wed Oct 26 18:57:16 HKT 2016 From /weblog/hack+and+faq

webservice


Generating stub for .NET webservices from wsimport

java -Djavax.xml.accessExternalDTD=all -Djavax.xml.accessExternalSchema=all -Dhttp.proxyHost=proxyhost -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts="10.0.0.0|*.pc.internal.xxx.com" -classpath "c:\Program Files\Java\jdk1.8.0_102\lib\tools.jar" com.sun.tools.internal.ws.WsImport -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb http://xxx.com/service?wsdl

(google search) (amazon search)


Wed Oct 19 01:41:16 HKT 2016 From /weblog/database/vendor

pgsql


http://www.javacodegeeks.com[..]0/introduction-to-postgresql-pljava.html

PostgreSQL schema is way fast and easy to change than MySQL, although maybe slower - https://www.pgrs.net[..]grating-from-mysql-to-postgresql-slides/

Subindexes that can save you space and make updates faster by reusing an existing multi-column index.
Expression indexes that speed up queries with WHERE clauses matching a function of the columns instead of raw values.
Partial indexes that are much smaller than a complete index because they don't contain data that the app doesn't care about.
http://blog.scoutapp.com[..]l-indexing-tricks-that-surprise-everyone

Experience sharing, stored proc is better? http://www.infoq.com/cn/news/2016/10/postgres-and-financial-arch

(google search) (amazon search)


Sun Oct 16 01:52:15 HKT 2016 From /weblog/design/interview

yahoo


How yahoo use Hadoop for machine learning - https://www.infoq.com/articles/peter-cnudde-yahoo-big-data

(google search) (amazon search)


Sun Oct 16 00:41:46 HKT 2016 From /weblog/trip/travelling

Iceland


{北歐冰島三天追光之旅} (冰島) - http://travel.openrice.com/traveller/blogdetail.htm?blogid=3380

http://www.adme.ru[..]nd-photography/hochu-v-islandiyu-682755/

永晝現象 - http://thehousenews.com[..]%B7%E4%BE%86%E7%9A%84%E8%89%AF%E8%97%A5/

http://list25.com[..]eathtaking-photos-from-iceland/?view=all

冰島北挪威自駕遊行程概覽 - http://sealandskyworldtravel.blogspot.hk[..]10/iceland-lofoten-island-itinerary.html

(google search) (amazon search)


Thu Oct 13 08:33:54 HKT 2016 From /weblog/database

reading


Berkeley CS286: Implementation of Database Systems, Fall 2014‎ > ‎http://www.cs286.net/home/reading-list

Disambiguating Databases, explaining various aspects of difference datastore approach - http://queue.acm.org/detail.cfm?ref=rss&id=2696453

Basic - http://ithare.com[..]action-isolation-levels-and-concurrency/


(google search) (amazon search)


Thu Oct 13 08:09:58 HKT 2016 From /weblog/business

boss


Donald Trump is Blogging - http://www.micropersuasion.com/2005/08/donald_trump_is.html

Bad boss? http://blog.guykawasaki.com/2007/02/is_your_boss_an.html http://manincentral.blogspot.com/2009/05/blog-post.html

The problem with Japan business leader handle crisis, some root from their culture - http://cn.wsj.com/big5/20100208/opn163651.asp?source=rss http://thehousenews.com[..]%8C%E7%82%BA%E6%98%AF%E4%BA%BA%E6%80%A7/

「CK,千祈唔好睇少一個人身邊團隊既影響力呀。你話係佢向role model學習又得,你話係peer pressure又得。之但係,身邊冇人就九成九都唔得。」 - http://manincentral.blogspot.com/2011/12/blog-post_26.html

禁用“回復所有人”功能
迎難而上
說服的力量
學會“折磨”別人
重新制訂“待辦事項表”
http://cn.wsj.com/big5/20130115/eoe072217.asp?source=rss

1. 及時提供反饋意見。
2. 教導員工如何在組織構架中獲得成功。
3. 提供挑戰和機會。
4. 創造一個可以促進團隊成長的環境。
5. 幫助下屬從錯誤中吸取教訓。
6. 積極地在高級管理層面前表揚自己的直接下屬。
http://cn.wsj.com/big5/20120104/eoe074113.asp?source=rss

When you say, “Don’t bring me a problem. Bring me a solution” you say, “I’m not going to make the hard choices. You are.” But you’re the manager. You get paid to make the difficult choices. - http://www.jrothman.com[..]ourage-people-to-bring-you-problems.html

A good CEO, vision, people, financial control - http://www.inside.com.tw/2016/02/29/good-ceos-do-just-3-things

如何用肢體語言告訴別人你是領導 - http://cn.wsj.com/big5/20161012/LIF155203.asp?source=rss

(google search) (amazon search)


Wed Oct 12 00:09:13 HKT 2016 From /weblog/business

example


最失敗的好產品 ─ Everpix 倒閉的啟發 - http://wired.tw[..]89%E7%9A%84%E5%95%9F%E7%99%BC/index.html http://www.theverge.com[..]ath-inside-the-worlds-best-photo-startup

HTC 十七年興衰史 - http://www.inside.com.tw/2014/03/25/htc-17-years-a http://www.inside.com.tw/2014/03/25/htc-17-years-b

IKEA - http://list25.com/25-ikea-facts-that-need-no-assembly/

(google search) (amazon search)


Tue Oct 11 15:39:49 HKT 2016 From /weblog/learning

Learning stages


In short:
I. Unconscious incompetence - I don't know why I cannot done that
II. Conscious incompetence - I know why I cannot done that
III. Conscious competence - I know why I can done that
IV. Unconscious competence - I don't know why I can done that

http://www.trainer.org.uk[..]rs/theory/process/stages_of_learning.htm
http://www.trainer.org.uk/resources.htm

What you know may not be what you do - http://www.markhneedham.com[..]yris-espoused-theory-vs-theory-in-action

隨筆:科研新手的煩惱 - https://lunjian.wordpress.com[..]%B0%E6%89%8B%E7%9A%84%E7%85%A9%E6%83%B1/

This approach—which focused on fluency instead of simple understanding—put me at the top of the class. - http://nautil.us[..]red-my-brain-to-become-fluent-in-math-rp

(google search) (amazon search)


Tue Oct 11 00:24:40 HKT 2016 From /weblog/java/libraries

log


Good thing about LogBack - http://www.infoq.com/news/2007/08/logback

http://blog.takipi.com[..]your-java-logging-with-7-logback-tweaks/

Configuring how exception stack traces appear in log entries using Log4J2 - https://medium.com[..]ies-using-log4j2-e3a3dc5e48bc#.vfx1l1jlr

(google search) (amazon search)


Mon Oct 10 00:25:13 HKT 2016 From /weblog/software_engineering

schedule


https://www.infoq.com/articles/volcano-prioritize-work

(google search) (amazon search)


Thu Oct 06 23:58:24 HKT 2016 From /weblog/java/concurrency

Lock


ReentrantReadWriteLock - http://www-128.ibm.com[..]loperworks/library/j-jtp10264/index.html

why it suppose to be faster than VM level lock - http://osdir.com[..]sr.166-concurrency/2005-02/msg00031.html and a test about it - http://mechanical-sympathy.blogspot.gr[..]r/2011/11/java-lock-implementations.html

Samples of how to use it, and how to write test cases about it - http://www.javaspecialists.eu/archive/Issue152.html

Some useful VM parameter to tune the locks: -XX:+EliminateLocks , -XX:+DoEscapeAnalysis , -XX:+UseBiasedLocking - http://work.tinou.com[..]locking-escape-analysis-for-dummies.html

Discuss about 3 difference lock for Java, bias, thin and fat - http://www.javacodegeeks.com/2011/05/how-jvm-handle-locks.html

Why using the read lock will make lock detector fail - http://javaeesupportpatterns.blogspot.com.au[..]concurrency-hidden-thread-deadlocks.html

Basic of synchronization and locking - http://www.takipiblog.com[..]about-synchronization-in-java-and-scala/

Better semaphore with striped api - http://codingjunkie.net/striped-concurrency/

Comparing and discuss difference locking approach - http://www.javaspecialists.eu/archive/Issue215.html

Compare performance behavior of RWLock, StampedLock and Optimistic lock - http://www.takipiblog.com[..]ocks-vs-readwritelocks-and-synchronized/

Comparing sync and lock - http://www.rationaljava.com[..]ase-study-in-analysing-latency-lock.html

http://vmlens.com/articles/reentrant-lock-cheat-sheet/

(google search) (amazon search)