RSS feed [root] /



title search:


Sun Jul 23 22:00:11 HKT 2017

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

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


Having functional program in java?

Functional programming in old java, with eclipse template -[..]functional-programming-with-map-and.html

Functional Programming For The Rest of Us -

collection-pipeline -

Make code composable -[..]ical-functional-programming-6d7932abc58b

(google search) (amazon search)

Sat Nov 18 16:29:46 HKT 2017 From /weblog/java/performance


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

More heap, GC will get slower -[..]ing-heap-size-beware-of-the-cobra-effect

Collection of tools to analysis GC activities -

Another presentation of performance hint for hotspot or memory -

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

Discussion and comparison of difference GC at Java 1.7 -[..]7/java-garbage-collection-distilled.html . And here is the detail experiment among those difference GC, look like G1 is quite promising -[..]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 -

Introduction to metaspace -[..]optimising-memory-consumption-first.html

Some comments about System.gc() -[..]om/2015/12/why-i-dont-like-systemgc.html[..]ng-your-java-garbage-collection-overhead

Logging stop-the-world pauses in JVM -[..]log/logging-stop-the-world-pauses-in-jvm

Why we should put difference app in same VM -[..]0/generational-disparity-in-garbage.html

Atlassian GC tuning guide -[..]ollection-gc-tuning-guide-461504616.html

Using jemalloc to get to the bottom of a memory leak -[..]c-to-get-to-the-bottom-of-a-memory-leak/

Troubleshooting-Java-Memory-Issues -

Shenandoah Garbage Collector look good -[..]emory-usage-right-garbage-collector.html

(google search) (amazon search)

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


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

GPUs don’t support interrupts and exception, and less branches -

Example of running stuff at GPU -[..]icles/which-gpu-to-get-for-deep-learning[..]mplicit-matrix-factorization-on-the-gpu/

(google search) (amazon search)

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


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[..]007/03/making-classes-unit-testable.html , and[..]Parent=7972&ixDiscussGroup=3&cReplies=29

Parameter passing vs static accessor: Should I press things around or get from public static instance? -

Reason of static method is not overrided -[..]thread/ec8b924d60dd4734/99b488aa1f8106c9

Another example of thread problem with static member -[..]=calendar_dateformat_and_multi_threading

How to mock static method code for testing -[..]ic-methods-are-death-to-testability.html

Factory is bad? -

(google search) (amazon search)

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


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 -

Code review Doom -

Story of Game development on NES -

Fast Approximate Anti-Aliasing (FXAA) -[..]fast-approximate-anti-aliasing-fxaa.html

Free book -[..]-graphics-from-scratch/introduction.html

(google search) (amazon search)

Tue Nov 14 19:26:33 HKT 2017 From /weblog/unix


Web base vim as tutorials -

History of VIM -[..]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. -[..]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

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

How to regex with line number -

cheat sheet of jumping around source code -[..]inux-HOWTO/C-editing-with-VIM-HOWTO.html

Nice analysis of good programming environment -[..]why-i-switched-from-textmate-to-vim.html

Creating macros in vim - <- 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.[..]com/2016/04/19/vim-commands-cheat-sheet/

ctrl+w, ctrl+w , vimdiff switch folder -

tutorial -[..]editor-in-unix-example-tutorial-and.html[..]s/3mfvdg/how_do_i_go_about_learning_vim/

Compilation plugin -

Highlight multiple searches at the same time, each with a different color. -

C/C++ IDE -[..]10/vim-plugin-for-navigating-c-with.html

Evil, putting vi in emacs -

Fixing syntax at solaris, "export TERM=xtermc", ":syntax enable" -

Graph your Vim undo tree in style. -

Introduction to Selecta and Command-T, tool for fuzzy mapping and open files easier -[..]d-the-vimrc-file-be-located-on-windows-7

Open Visual Studio config as XML -!topic/vim_use/HzVM9tjJP08

Snippert library ( e.g. function template ) -[..]3h7lca/which_snippet_library_do_you_use/[..]t_are_your_musthave_configs_and_plugins/[..]mments/2w22gf/edit_google_docs_with_vim/[..]nts/3ijsi2/original_post_a_vimrc_primer/[..]an_autocomplete_plugin_if_yes_which_one/

gUU to turn whole line upper case, and guu to turn whole line lower case -[..]_guu_makes_an_entire_line_lowercase_and/

can use :TOhtml to turn a text file to HTML -

set encoding=utf-8 -[..]how_to_reliably_switch_to_using_utf8_by/

If you like to test the regex for vi, can refer to this -[..]/blog/vim-creator-champions-charityware/

Another blog about using vim as IDE -

(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 -[..]

Design tips:[..]gView?showComments=true&entry=3258158706[..]its-of-highly-profitable-developers.html

About Compatibility issues

A blog of using interfaces-vs-abstract-classes[..]6/04/interfaces-vs-abstract-classes.html

XOM design overview -

You need to identify the business value but not pick any tools/design just because it is cool -

A lot of links here -

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


Discussion of why getting feedback quick is important -[..]u-dont-know-until-you-take-the-next-step

Someone saying that routines is the greatest invention in CS, I agree -

New way of modeling system then layering, The Onion Architecture -

SOLID -[..]of-the-month-march-solid-principles.aspx <-- very good picture!

Idempotent, Orthogonality, Immutability -

Some example of how to driven good API -[..]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.[..]MichaelFeathers.TheGoldenRuleOfApiDesign

Active interface vs. Passive interface, for me this is another way to under "Tell, don't ask" -[..]-on-api-design-call-stack-as-source.html

The Principles of Good Programming -[..]software-principles-you-must-understand/

Difference choice of how API evolute with change -[..]sive-api-evolution-with-java-interfaces/

JUnit's evolving structure. -

API performance contract -

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:[..]are-like-parenting/#sthash.Ux1LHMNU.dpuf[..]ake-this-mistake-when-developing-an-spi/

Guideline for webapi -

(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)[..]ng-that-most-people-have-never-heard-of/

用 6 個步驟,熟悉一個產業 -[..]g-domain-expertise-in-a-complex-industry[..]-like-the-best-in-the-world-555fa4de5010

(google search) (amazon search)

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


The sale strategy of facebook -[..]ding-the-facebook-algorithm-e106dc2f7d15

(google search) (amazon search)

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


嚴說養生 立夏吃雞蛋 -

烹制雞蛋美食的四種方法 -

More ways of cooking egg -

二十文錢劏房飯:仿西班牙蛋餅 -[..]%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


(google search) (amazon search)

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


美國人出書向世界介紹中國白酒 -[..]e/drinking-alcohol-cancer-risk-10112017/

(google search) (amazon search)

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


(google search) (amazon search)

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


(google search) (amazon search)

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


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

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

A case study of solving thread contention -[..]fighting-thread-contention-in-your-code/[..]-of-java-application-performance-tuning/

Notes about measuring map performance -[..]ronicle-map-and-yahoo-cloud-service.html

High Performance Java - Binary instead of Objects - John Davies -

jemalloc, look like a really nice tool -[..]c-to-get-to-the-bottom-of-a-memory-leak/

story of finding why there is so many GC -[..]horough-jvm-thorough-analysis-ygc-part01

GC thread blocked by system call -

We always need benchmark -[..]2017/06/15/forward-vs-backward-loop.html

Investigation and solutions of performance issue caused by GC log -[..]c-pauses-caused-by-background-io-traffic

(google search) (amazon search)

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


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

色彩斑斕的動物 -

地球上仍存活的最古老生物 -

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

rare-flowers-that-are-stunning-to-look-at -

earth-facts-that-might-surprise-you -

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

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

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

25 Interesting Tidbits About Deserts That Will Make You Glad For Rain -[..]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. -[..]interesting-facts-that-you-probably.html

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

Types of mountains -[..]st/main-types-mountains-earths-ups-downs

bizarre-ocean-phenomena -[..]ean-phenomena-you-wont-believe-are-real/[..]ology/animals-ecology/animal-speed-limit

Ocean -[..]ising-ocean-facts-most-people-dont-know/

Earth -

sinkholes -[..]other/science-abc/science-abc-sinkholes/

(google search) (amazon search)

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


Pros and cons of opening the salary -

Not providing a psychologically safe environment is how organizations fire smart people. -[..]no-one-would-ever-get-fired-827601fb8af1[..]utive-hires-at-your-startup-5531d8cb770d

(google search) (amazon search)

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


(google search) (amazon search)

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


(google search) (amazon search)

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


(google search) (amazon search)