RSS feed [root] /




login:

password:

title search:




 


Sun Jul 23 22:00:11 HKT 2017



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

Wed Nov 22 00:28:10 HKT 2017 From /weblog/design

functional


Having functional program in java? http://codemonkeyism.com/functional-programming/

Functional programming in old java, with eclipse template - http://www.javacodegeeks.com[..]functional-programming-with-map-and.html

Functional Programming For The Rest of Us - http://www.defmacro.org/ramblings/fp.html?

collection-pipeline - http://martinfowler.com/articles/collection-pipeline/

Make code composable - https://hackernoon.com[..]ical-functional-programming-6d7932abc58b

(google search) (amazon search)



Sat Nov 18 16:29:46 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

Shenandoah Garbage Collector look good - https://www.javacodegeeks.com[..]emory-usage-right-garbage-collector.html

(google search) (amazon search)



Thu Nov 16 15:20:44 HKT 2017 From /weblog/hardware

gpu


Inside Fermi: Nvidia's HPC Push - http://www.realworldtech.com[..]m/page.cfm?ArticleID=RWT093009110932&p=1

GPUs don’t support interrupts and exception, and less branches - http://www.futurechips.org/chip-design-for-all/cpu-vs-gpgpu.html

Example of running stuff at GPU - http://fastml.com/running-things-on-a-gpu/

http://www.infoq.com[..]icles/which-gpu-to-get-for-deep-learning

http://www.benfrederickson.com[..]mplicit-matrix-factorization-on-the-gpu/

(google search) (amazon search)


Thu Nov 16 09:55:26 HKT 2017 From /weblog/design

static


I will prefer using static method as less as possible... there is some
side effect you are not expected, like, are you sure it thread safe? static
method easier to have thread problem.

You may take a look at http://debasishg.blogspot.com[..]007/03/making-classes-unit-testable.html , http://www.beust.com/weblog/archives/000173.html and http://discuss.joelonsoftware.com[..]Parent=7972&ixDiscussGroup=3&cReplies=29

Parameter passing vs static accessor: Should I press things around or get from public static instance? - http://groups.yahoo.com/group/refactoring/message/3342

Reason of static method is not overrided - http://groups.google.com[..]thread/ec8b924d60dd4734/99b488aa1f8106c9

Another example of thread problem with static member - http://jroller.com[..]=calendar_dateformat_and_multi_threading

How to mock static method code for testing - http://blog.xebia.com/2007/06/21/mocking-static-calls/

http://googletesting.blogspot.com[..]ic-methods-are-death-to-testability.html

Factory is bad? - http://www.yegor256.com/2017/11/14/static-factory-methods.html

(google search) (amazon search)


Wed Nov 15 11:00:37 HKT 2017 From /weblog/computer+science

CG


smallpt is a global illumination renderer. It is 99 lines of C++, is open source, and renders the above scene using unbiased Monte Carlo path tracing - http://www.kevinbeason.com/smallpt/

Code review Doom - http://fabiensanglard.net/doomIphone/doomClassicRenderer.php

Story of Game development on NES - http://games.greggman.com/game/programming_m_c__kids/

Fast Approximate Anti-Aliasing (FXAA) - http://www.codinghorror.com[..]fast-approximate-anti-aliasing-fxaa.html

Free book - http://www.gabrielgambetta.com[..]-graphics-from-scratch/introduction.html

(google search) (amazon search)



Tue Nov 14 19:26:33 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

http://vimsheet.com

(google search) (amazon search)


Mon Nov 13 00:44:30 HKT 2017 From /weblog/design

API design guideline


This is a message from a management blog, but I think the arguement is also apply API design. In fact, I think most critical difference of good and bad API is knowing which small detail is important and which is not - http://www.goodproductmanager.com[..]er.com/2007/11/08/sweat-the-small-stuff/

Design tips:
http://www.artima.com/weblogs/viewpost.jsp?thread=142428
http://openide.netbeans.org/tutorial/api-design.html
http://www.cincomsmalltalk.com[..]gView?showComments=true&entry=3258158706
http://today.java.net[..]its-of-highly-profitable-developers.html
http://www.infoq.com/news/2007/08/why-api-design-matters
http://www.infoq.com/presentations/effective-api-design
http://neuroning.com/2006/11/19/on-api-design-guidelines

About Compatibility issues
http://wiki.eclipse.org/Evolving_Java-based_APIs

A blog of using interfaces-vs-abstract-classes
http://hoskinator.blogspot.com[..]6/04/interfaces-vs-abstract-classes.html

XOM design overview - http://www.xom.nu/designprinciples.xhtml#d0e309

You need to identify the business value but not pick any tools/design just because it is cool - http://myarch.com/what-is-good-soa

A lot of links here - http://kasparov.skife.org/blog-live/src/api-design-refs.writeback http://discuss.joelonsoftware.com/default.asp?design.4.527465

An introduction of good OSS project to study their source - http://techkriti.wordpress.com[..]com/2007/06/28/learning-from-the-source/

CCCCDPIPE - http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Discussion of why getting feedback quick is important - http://blog.objectmentor.com[..]u-dont-know-until-you-take-the-next-step

Someone saying that routines is the greatest invention in CS, I agree - http://www.codinghorror.com/blog/archives/001129.html

New way of modeling system then layering, The Onion Architecture - http://jeffreypalermo.com/blog/the-onion-architecture-part-1/

SOLID - http://www.lostechies.com[..]of-the-month-march-solid-principles.aspx http://dotnet.dzone.com/news/solid-software-works <-- very good picture! http://www.blackwasp.co.uk/SOLIDPrinciples.aspx

Idempotent, Orthogonality, Immutability - http://www.codinghorror.com/blog/archives/001244.html

Some example of how to driven good API - http://jdegoes.squarespace.com[..]al/2009/5/11/good-api-design-part-3.html

It's not enough to write tests for an API you develop, you have to write unit tests for code that uses your API. When you do, you learn first-hand the hurdles that your users will have to overcome when they try to test their code independently. http://butunclebob.com[..]MichaelFeathers.TheGoldenRuleOfApiDesign

Active interface vs. Passive interface, for me this is another way to under "Tell, don't ask" - http://code-o-matic.blogspot.com[..]-on-api-design-call-stack-as-source.html

The Principles of Good Programming - http://www.artima.com/weblogs/viewpost.jsp?thread=331531

http://net.tutsplus.com[..]software-principles-you-must-understand/

Difference choice of how API evolute with change - http://blog.jooq.org[..]sive-api-evolution-with-java-interfaces/

JUnit's evolving structure. - http://edmundkirwan.com/general/junit.html

API performance contract - http://queue.acm.org/detail.cfm?ref=rss&id=2576968

Consistent naming conventions
Standard terminology
Uniform error responses
Attention to detail (that’s the love part for APIs)
REST APIs that work with only 2 resources and use 4 HTTP verbs (oh, there is so much more to talk about here…)
Avoid API design by way of method-driven approach – that leads you down a slippery slope
- See more at: http://blogs.ancestry.com[..]are-like-parenting/#sthash.Ux1LHMNU.dpuf

http://blog.jooq.org[..]ake-this-mistake-when-developing-an-spi/

Guideline for webapi - https://cloud.google.com/apis/design/

(google search) (amazon search)


Sat Nov 11 12:05:44 HKT 2017 From /weblog/learning

Learn fast


#1 – Pegging (or How Mental Magicians can Perfectly Recall Hundreds of Numbers)
#2 – Metaphor (Juliet is the sun… or is she a chemical formula?)
#3 – Total Immersion (Or How a Guy Can Become Fluent in 8 Languages)
#4 – Visceralization (What does a derivative look like?)
#5 – Linking (Or How to Remember a Grocery List Without the Paper)
#6 – The 5-Year Old Method (Try explaining quantum physics to a first grader)
#7 – Ambiance Catalysts (Or How Drinking a Pint Can Improve Your Studying)
#8 – Diagrams (Who said doodling in class was wrong?)
#9 – Speed Reading (Or How to Read 70 Books in a Year)

http://www.scotthyoung.com[..]ng-that-most-people-have-never-heard-of/

用 6 個步驟,熟悉一個產業 - http://www.inside.com.tw[..]g-domain-expertise-in-a-complex-industry

https://medium.com[..]-like-the-best-in-the-world-555fa4de5010

(google search) (amazon search)


Sat Nov 11 11:59:17 HKT 2017 From /weblog/business

facebook


The sale strategy of facebook - http://cn.wsj.com/big5/20120203/atc125226.asp?source=rss

https://medium.com[..]ding-the-facebook-algorithm-e106dc2f7d15

(google search) (amazon search)


Sat Nov 11 11:54:29 HKT 2017 From /weblog/health/food

egg


嚴說養生 立夏吃雞蛋 - http://www.yimho.com/1443.html

烹制雞蛋美食的四種方法 - http://cn.wsj.com/big5/20140513/DJL071521.asp?source=rss

More ways of cooking egg - http://www.buzzhand.com/post_282334.html

http://list25.com/25-awesome-egg-facts-you-might-not-know/

二十文錢劏房飯:仿西班牙蛋餅 - https://thestandnews.com[..]%BF%E7%8F%AD%E7%89%99%E8%9B%8B%E9%A4%85/

(google search) (amazon search)


Sat Nov 11 11:02:22 HKT 2017 From /weblog/health/food

mushrooms


https://www.zmescience.com[..]on-medicine/mushrooms-antioxidants-rich/

(google search) (amazon search)


Sat Nov 11 10:51:34 HKT 2017 From /weblog/health/food

alcohol


美國人出書向世界介紹中國白酒 - http://cn.wsj.com/big5/20140311/bog144857.asp?source=rss

https://www.zmescience.com[..]e/drinking-alcohol-cancer-risk-10112017/

(google search) (amazon search)


Fri Nov 10 00:06:22 HKT 2017 From /weblog/learning

communication


https://medium.com[..]ers-i-learned-from-bartending-6a5f36829b

(google search) (amazon search)


Wed Nov 08 00:48:02 HKT 2017 From /weblog/design/examples

netflix


https://medium.com[..]ens-every-time-you-hit-play-3a40c9be254b

(google search) (amazon search)


Tue Nov 07 16:01:37 HKT 2017 From /weblog/java/performance

cases


A case showing java is faster than C++ - https://groups.google.com[..]mgroups#!topic/comp.lang.c++/7aNw3PzPvMI

Case show how to improve GC time spend on a java application - http://javaeesupportpatterns.blogspot.com.au[..]11/java-vm-beware-of-younggen-space.html

A case study of solving thread contention - http://blogs.mulesoft.org[..]fighting-thread-contention-in-your-code/

http://www.cubrid.org[..]-of-java-application-performance-tuning/

Notes about measuring map performance - http://vanillajava.blogspot.com.au[..]ronicle-map-and-yahoo-cloud-service.html

High Performance Java - Binary instead of Objects - John Davies - https://vimeo.com/138956045 http://www.infoq.com/presentations/java-low-latency

jemalloc, look like a really nice tool - https://gdstechnology.blog.gov.uk[..]c-to-get-to-the-bottom-of-a-memory-leak/

story of finding why there is so many GC - http://www.infoq.com[..]horough-jvm-thorough-analysis-ygc-part01

GC thread blocked by system call - http://www.infoq.com/cn/articles/GC-Log-Uncovers-Pause https://www.infoq.com/articles/GC-Log-Uncovers-Pause

We always need benchmark - https://arnaudroger.github.io[..]2017/06/15/forward-vs-backward-loop.html

Investigation and solutions of performance issue caused by GC log - https://engineering.linkedin.com[..]c-pauses-caused-by-background-io-traffic

(google search) (amazon search)




Sun Nov 05 01:19:04 HKT 2017 From /weblog/science

nature


蓋亞假說:美麗的神話 - http://thehousenews.com[..]%8E%E9%BA%97%E7%9A%84%E7%A5%9E%E8%A9%B1/

色彩斑斕的動物 - http://cn.wsj.com/big5/20131203/PHO101146.asp?source=rss

地球上仍存活的最古老生物 - http://cn.wsj.com/big5/20140430/PHO082434.asp?source=rss

deep-sea-mysteries-and-oddities-that-will-leave-you-baffled - http://list25.com[..]nd-oddities-that-will-leave-you-baffled/

rare-flowers-that-are-stunning-to-look-at - http://list25.com/25-rare-flowers-that-are-stunning-to-look-at/

earth-facts-that-might-surprise-you - http://list25.com/25-earth-facts-that-might-surprise-you/

north-pole-facts-most-people-are-not-aware-of - http://list25.com[..]s-most-people-are-not-aware-of/?view=all

earth-facts-you-probably-have-not-considered - http://list25.com[..]u-probably-have-not-considered/?view=all

http://www.attenboroughsreef.com/

amazon - http://list25.com[..]he-most-unique-places-on-earth/?view=all

25 Interesting Tidbits About Deserts That Will Make You Glad For Rain - http://list25.com[..]at-will-make-you-glad-for-rain/?view=all

Antarctica is one of the coldest, most desolate places in the world, and today you're going to learn all about it. - http://www.damncoolpictures.com[..]interesting-facts-that-you-probably.html

great-barrier-reef - http://list25.com[..]-reef-facts-youll-want-to-hear/?view=all

Types of mountains - http://www.zmescience.com[..]st/main-types-mountains-earths-ups-downs

bizarre-ocean-phenomena - http://list25.com[..]ean-phenomena-you-wont-believe-are-real/

http://www.zmescience.com[..]ology/animals-ecology/animal-speed-limit

Ocean - http://list25.com[..]ising-ocean-facts-most-people-dont-know/

Earth - http://list25.com/25-shocking-facts-you-never-knew-about-earth/

sinkholes - https://www.zmescience.com[..]other/science-abc/science-abc-sinkholes/

(google search) (amazon search)


Sat Nov 04 18:09:49 HKT 2017 From /weblog/business

people


http://www.infoq.com/news/2012/11/mindset-focus-people

Pros and cons of opening the salary - http://cn.wsj.com/big5/20130219/eoe080851.asp

Not providing a psychologically safe environment is how organizations fire smart people. - https://blog.liberationist.org[..]no-one-would-ever-get-fired-827601fb8af1

https://thinkgrowth.org[..]utive-hires-at-your-startup-5531d8cb770d

(google search) (amazon search)


Sat Nov 04 18:03:54 HKT 2017 From /gallery/Home/YimKan/htc

IMG_20171104_180342



(google search) (amazon search)


Sat Nov 04 18:03:52 HKT 2017 From /gallery/Home/YimKan/htc

IMG_20171104_180349



(google search) (amazon search)


Sat Nov 04 18:03:21 HKT 2017 From /gallery/Home/YimKan/htc

IMG_20171104_180256



(google search) (amazon search)