RSS feed [root] /




login:

password:

title search:




 


Thu Feb 13 22:32:16 HKT 2020



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

Mon Feb 17 20:40:19 HKT 2020 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

https://blog.antoyo.xyz/vim-tips

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

(google search) (amazon search)



Mon Feb 17 20:15:43 HKT 2020 From /weblog/languages

rust


memory management - https://blog.discordapp.com[..]s-switching-from-go-to-rust-a190bbca2b1f https://www.infoq.cn/article/0scE4VCqzm8JWc50Jzsm

Rust - http://www.infoq.com/cn/articles/rust-core-components http://kamalmarhubi.com[..]t-nix-easier-unix-systems-programming-3/


(google search) (amazon search)


Sun Feb 16 21:39:18 HKT 2020 From /weblog/java/performance

option list


-XX:+PerfDisableSharedMem , prevent locking by sharedmem in linux - http://www.evanjones.ca/jvm-mmap-pause.html

How linkedin turn the GC - http://engineering.linkedin.com[..]ughput-and-low-latency-java-applications

Using generational & concurrent GC collector - http://www.javacodegeeks.com[..]/04/ibm-jvm-tuning-gencon-gc-policy.html

Full VM option list : http://blogs.sun.com/roller/resources/watt/jvm-options-list.html, update for Java7 - http://nerds-central.blogspot.com[..]ot.com/2011/07/all-jvm-7-xx-options.html http://stas-blogspot.blogspot.com[..]ost-complete-list-of-xx-options-for.html

A simplified list for some frequency use options - http://rdafbn.blogspot.com.au[..]rbage-collector-guidelines-and-tips.html

HotSpot JVM garbage collection options cheat sheet - http://aragozin.blogspot.com[..]spot-jvm-garbage-collection-options.html http://www.oracle.com[..]va/javase/tech/vmoptions-jsp-140102.html

An example and story about effect of difference VM parameter affecting the performance - http://www.javaspecialists.eu/archive/Issue191.html

Clear the code cache automatically with -XX:+UseCodeCacheFlushing - http://blogs.amd.com[..]time-for-long-running-java-applications/

Discussion about -XX:MinHeapFreeRatio parameter - http://www.gossamer-threads.com[..]s.com/lists/lucene/java-user/44286#44286

The other detailed guide for VM parameters tuning - http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

Here is a more simple cookbook - http://java.sun.com/performance/reference/whitepapers/tuning.html

A outdated (1.4) , compehensive but still not really too detailed, overview of various GC tuning - http://www.petefreitag.com/articles/gctuning/

Some say following VM parameter is good enough
-server -Xmx -XX:+UseParallelGC
http://blogs.sun.com[..]/page/binublog?entry=java_tuning_for_xml

Some say is useful if you have huge memory
-XX:+UseLargePages
http://blogs.sun.com[..]dagastine?entry=java_se_tuning_tip_large

Some say below parameter keep GC in low pause
-XX:MaxGCPauseMillis=5000
Some say below parameter are very optimal
-XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:NewSize=1200m -XX:SurvivorRatio=16
http://www.theserverside.com[..]d.tss?thread_id=41258&ASRC=EM_NNL_347804
Some say those parameter is good
-XX:+UseConcMarkSweepGC
-XX:ParallelCMSThreads=1
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=10
http://blog.mikiobraun.de/2010/08/cassandra-gc-tuning.html

Just in case anyone is curious, the flags enabled by -XX:+AggressiveOpts in JDK 1.6.0_25 are:

-XX:+EliminateAutoBox
-XX:AutoBoxCacheMax=20000
-XX:BiasedLockingStartupDelay=500
-XX:+DoEscapeAnalysis
-XX:+OptimizeStringConcat
-XX:+OptimizeFill

Generate dump with OOME - -XX:+HeapDumpOnOutOfMemoryError

GC log sample of -XX:+UseConcMarkSweepGC -XX:PrintFLSStatistics=1 -XX:+PrintGCDetails - https://gist.github.com/1329783

A case study of tuning VM GC parameters - http://plumbr.eu[..]ld-you-trust-the-default-settings-in-jvm

Explanation for few performance related VM parameters - http://www.techpaste.com[..]ine-options-jvm-performance-improvement/

Show the exact vm flag that java using - http://matthewkwilliams.com[..]/looking-inside-a-jvm-xxprintflagsfinal/

For G1GC - https://dzone.com[..]e-first-garbage-collector-tuning-flags-1

https://ionutbalosin.com[..]otspot-jvm-performance-tuning-guidelines

(google search) (amazon search)


Sun Feb 16 21:37:24 HKT 2020 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

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

http://clojure-goes-fast.com/blog/shenandoah-in-production/

Parallel Collection Processing: Leveraging Batching - https://4comprehension.com/parallel-collection-processing-2/

Maybe good to careful about collection initalization - http://blog.pitest.org[..]ars-with-a-single-character-code-change/

(google search) (amazon search)


Sun Feb 16 21:20:58 HKT 2020 From /weblog/misc

communities


http://www.visakanv.com/blog/communities/

(google search) (amazon search)


Sat Feb 15 22:01:45 HKT 2020 From /weblog/design

refactoring


http://c2.com/cgi/wiki?RefactoringLanguage

Refactoring to Patterns Catalog - http://www.industriallogic.com/xp/refactoring/catalog.html

Article talk about the book: http://www.oreillynet.com/ruby/blog/2006/03/transformation.html

Catagories smell into "smell in class" and "smell between class" - http://www.codinghorror.com/blog/archives/000589.html

Known but good to remind http://www.thecodejunkie.com[..]10/01/6-steps-to-master-refactoring.html

An experience sharing - http://www.javacodegeeks.com[..]m/2011/05/refactor-hudson-god-class.html http://www.peterprovost.org[..]treme-Refactoring-with-Brian-Button.aspx

Refactoring should not introduce bug... - http://jchyip.blogspot.com[..]01/so-why-are-you-refactoring-again.html

A way to have formal refactoring, through Feature Clustering, Rapid Scratch Refactoring and Twisting Classes - http://www.thekua.com[..]rom-michael-feathers-brutal-refactoring/

Not all code change is refactoring - http://parlezuml.com/blog/?postid=850 , and

Some common issues about refactoring code in a team - http://www.rickylui.com[..]/2008/01/28/dont-be-a-refactoring-bigot/ http://blog.joepoon.com[..]01/dangers-of-premature-refactoring.html , beware taking the balance - http://www.makinggoodsoftware.com[..]ith-beautiful-code-the-refactor-syndrome

Refactory if needed - http://dreamhead.blogbus.com/logs/24874404.html

Refactoring, when start, when stop? - http://martinfowler.com/bliki/OpportunisticRefactoring.html

Refactoring metric - http://www.grahambrooks.com[..]rics-based-refactoring-for-cleaner-code/

Getting rid of util class
1) If the family of methods uses different parameters, depending on optional input or representations of the same input, then consider transforming the Helper via a fluent interface using the Builder pattern: from a collection of static methods like Helper.calculate(x), calculate(x, y), calculate(x, z), calculate(y, z) we could easily get to something like newBuilder().with(x).with(y).calculate(). The helper class would then offer behaviours, reduce its list of business methods and provide more flexibility for future extensions. Callers would then use it as internal field for reuse or instantiate it where needed. The helper class (as we knew it) disappeared.
2) If the helper class provides methods which are actually actions for different inputs (but, at this point, for the same domain), consider applying the Command pattern: the caller will actually create the required command (which will handle the necessary input and offer a behaviour) and an invoker will execute it within a certain context. You may get a command implementation for each static method and your code would move from an Helper.calculate(x, y), calculate(z) to something like invoker.calculate(new Action(x, y)). Bye bye helper class.
3) If the helper class provides methods for the same input but different logics, consider applying the Strategy pattern: each static method may easily become a strategy implementation, vanishing the need of its original helper class (replaced by a context component then).
4) If the given set of static methods concerns a certain class hierarchy or a defined collection of components, then consider applying the Visitor pattern: you may get several visitor implementations providing different visit methods which would probably replace partially or entirely the previously existing static methods.
5) If none of the above cases met your criteria, then apply the three most important indicators: your experience, your competences in the given project and common sense.

http://www.refactoringideas.com[..]-to-get-rid-of-helper-and-utils-classes/

Converting forloop to streaming - http://martinfowler.com/articles/refactoring-pipelines.html

Refactoring JavaScript from Sync to Async in Safe Baby-Steps - http://www.natpryce.com/articles/000812.html

code-refactoring-dos-donts - https://jaxenter.com/code-refactoring-dos-donts-135960.html

Let clean code guide you. Then let it go. - https://overreacted.io/goodbye-clean-code/ https://www.infoq.cn/article/dNO484YEeumvC6b6ZNWL

(google search) (amazon search)


Thu Feb 13 21:53:47 HKT 2020 From /weblog/science

cosmos


http://list25.com/25-most-puzzling-mysteries-of-the-universe/

http://list25.com/25-awesome-facts-about-mars/

http://list25.com[..]d-stunning-pictures-about-saturns-rings/

http://list25.com/25-images-that-capture-the-vastness-of-space/

http://list25.com[..]ce-that-you-can-see-with-your-naked-eye/

http://list25.com[..]ill-both-terrify-and-amaze-you/?view=all

http://list25.com[..]ut-space-and-space-exploration/?view=all

我們現在看到的星星早已死亡了嗎? - http://thestandnews.com[..]%B2%E6%AD%BB%E4%BA%A1%E4%BA%86%E5%97%8E/

相對論、量子力學、黑洞和反物質 - https://phycat.wordpress.com[..]uantum-mechanics-black-hole-anti-matter/

http://list25.com[..]t-things-in-the-known-universe/?view=all

http://list25.com/25-space-facts-youve-always-wanted-to-know/

http://list25.com[..]o-probe-images-that-will-blow-your-mind/

https://medium.com[..]sics-allowed-earth-to-exist-195ecc0da9ca

https://medium.com[..]ear-older-than-the-universe-71bee462c6be

http://www.zmescience.com[..]ophysics-space/big-bang-history-15092017

5 questions you were too embarrassed to ask about the expanding Universe - https://medium.com[..]bout-the-expanding-universe-9433c4906a29

Are Space, Time, And Gravity All Just Illusions? - https://medium.com[..]-gravity-all-just-illusions-d1d088df6150

http://list25.com[..]-the-big-bang-theory-you-might-not-know/

http://list25.com/25-sneaky-lies-you-were-told-about-space/

black hole - https://www.zmescience.com[..]c/science-abc-going-inside-a-black-hole/ https://www.zmescience.com[..]/space/supermassive-black-hole-07122017/

https://list25.com/25-most-bizarre-stars-in-the-universe/

https://list25.com[..]s-in-outer-space-that-cant-be-explained/

Really interesting - https://www.zmescience.com[..]ence/news-science/why-solar-system-flat/

prehistoric-people-astronomers - https://www.zmescience.com[..]/prehistoric-people-astronomers-0432423/

https://list25.com/25-crazy-facts-about-the-universe/

The Scale of the Universe - Interactive - https://apod.nasa.gov/apod/ap181007.html

Is the universe infinite? - https://www.zmescience.com[..]er/feature-post/is-the-universe-infinite

https://www.zmescience.com/science/what-are-dwarf-planets/

(google search) (amazon search)



Tue Feb 11 07:05:49 HKT 2020 From /weblog/java/fundamental

time


How difference platform implement nanoTime() - http://www.javacodegeeks.com[..]12/02/what-is-behind-systemnanotime.html http://stackoverflow.com[..]62/is-system-nanotime-completely-useless

Java timezone ID reference - http://david.uebelacker.ch[..]etrive-locale-and-timezone-from-request/ http://tutorials.jenkov.com[..]m/java-date-time/java-util-timezone.html

setTimeZone affects calls to set(), but doesn’t change the existing Calendar time? So if we wanted to change the time zone we are working with, we have to adjust all the time fields too…but a SimpleDateFormatter still would show it as the current time zone. - http://keyholesoftware.wordpress.com[..]1/joda-time-the-future-of-java-datetime/

http://blog.joda.org[..]va-time-jsr-310-enhancements-java-9.html

deep dive into measuring time in Java - dihttps:[..]g-time-from-java-to-kernel-and-back.html

CronScheduler - https://medium.com[..]r-for-external-interactions-cb7ce4a4f2cd

(google search) (amazon search)



Wed Feb 05 19:22:00 HKT 2020 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

Napoleon was the Best General Ever, and the Math Proves it. - https://towardsdatascience.com[..]ever-and-the-math-proves-it-86efed303eeb

https://list25.com[..]tal-math-tricks-that-will-blow-your-mind

The mind-bendy weirdness of the number zero, explained - https://www.vox.com[..]/7/5/17500782/zero-number-math-explained

幾何世界新成員:scutoid - https://dq.yam.com/post.php?id=9695

Pattern of prime - https://www.zmescience.com[..]h/prime-numbers-crystal-lattice-17092018

莫比烏斯環 (Möbius strip或Möbius band) - https://dq.yam.com/post.php?id=10248

The most beautiful and important mathematical equations - https://www.zmescience.com[..]athematical-equations-beautiful-30112018

https://getpocket.com[..]/the-man-who-invented-modern-probability

https://www.zmescience.com/science/types-of-triangles-feature/

(google search) (amazon search)




Tue Jan 28 18:49:05 HKT 2020 From /weblog/health/food

vegi


Pros and Cons for vegi - http://thehousenews.com[..]84%E5%BC%8A%E8%88%87%E5%88%A9-%E4%B8%80/

B12 is important - http://www.yimho.com/1821.html

熟吃損失多少維生素? - http://www.healthcare-kingdom.com[..]0%91%E7%B6%AD%E7%94%9F%E7%B4%A0%EF%BC%9F

中國城市人的香椿情結 - http://cn.wsj.com/big5/20140418/rcu180822.asp?source=rss

西蘭花如何幫助身體應對空氣污染 - http://cn.wsj.com/big5/20140613/ren161006.asp?source=rss

13 Easy Ways to Eat More Greens - http://www.webmd.com/food-recipes/ss/slideshow-greens

Recipes that use veggies from garden - http://list25.com[..]s-and-veggies-from-your-garden/?view=all

lutein-veggies-cognitive-protection - http://www.zmescience.com[..]n-veggies-cognitive-protection-01082018/

“If we wait to the point where we are beyond a shadow of a doubt, with double-blind studies translated to regulations, we’re going to be waiting decades,” Sonnenburg told me. “But right now, all the arrows are pointing in the same direction, toward fiber.” - https://getpocket.com[..]-western-diet-has-derailed-our-evolution

Becoming a Vegetarian - https://www.webmd.com/diet/ss/slideshow-vegetarian-diet

“Without question, veganism can cause B12 and iron deficiencies, and without question they affect your intelligence,” he says. - https://www.bbc.com[..]your-intelligence?ocid=global_future_rss

(google search) (amazon search)


Tue Jan 28 18:48:00 HKT 2020 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

266Threading Questions in Job Interviews (2/2) - https://www.javaspecialists.eu/archive/Issue266.html

Parallel Collection Processing: Without Parallel Streams - https://4comprehension.com/parallel-collection-processing-1/

(google search) (amazon search)


Thu Jan 23 21:22:05 HKT 2020 From /weblog/science

language


https://www.zmescience.com[..]cience/sign-language-evolution-21012020/

(google search) (amazon search)


Thu Jan 23 07:59:58 HKT 2020 From /weblog/ai

data


https://towardsdatascience.com[..]ways-to-impute-missing-data-690481c6cb2b

(google search) (amazon search)


Wed Jan 22 20:38:44 HKT 2020 From /weblog/business

marketing


P2P filesharing can actually helping music sell, according to this article, if there is large amount of people download, this is a very good marketing tools - https://theecommmanager.com/what-happened-long-tail/

After you spend so much effort of promoting your product, may be you miss promoting your product to YOU?? And there are millions of YOU all over the earth? http://software.ericsink.com/entries/Note_to_self.html

promotion, mix with free service and love - http://blogs.zdnet.com/ip-telephony/?p=1588

Name is important - http://www.goodproductmanager.com[..]4/pick-the-right-name-for-your-projects/

Sometime, it would be a nice promotion of comment your product in negative way, some how - http://www.codinghorror.com/blog/archives/000971.html?r=11182

The official definition is that marketing creates demand, while sales fulfils demand, how Joel demo software - http://www.joelonsoftware.com/items/2007/11/16.html

First to release may be worst than the 2nd one - http://www.goodproductmanager.com[..]window-as-part-of-your-product-strategy/ Timing is VERY important

Guessing if we have short and frequency release, we don't need to save any features. However, in case if our release cycle still long and big, this may be a good idea. - http://www.goodproductmanager.com[..]2009/11/10/save-some-features-for-later/

Learning US. style of marketing - http://cn.wsj.com/big5/20131204/eoe072653.asp?source=rss

Analysis why ice-bucket-challenge can be so popular - http://www.inside.com.tw[..]/26/ice-bucket-challenge-viral-marketing

(google search) (amazon search)


Tue Jan 21 21:08:00 HKT 2020 From /weblog/business

starting business


Starting business at rentaroder, do you think this true o false ? http://solarianprogrammer.com[..]/2011/10/24/my-life-freelancer/#more-750

Speed of deliver rule - http://steveblank.com[..]up-suicide-%E2%80%93-rewriting-the-code/ http://laurentk.posterous.com/beating-startups-dead-horse

My boss say that it brilliant, see if it good - http://www.paulgraham.com/start.html

The other reference - http://evhead.com/2005/11/ten-rules-for-web-startups.asp

Joey recommendation - http://www.joelonsoftware.com/articles/fog0000000056.html

And how to set price - http://www.richardrodger.com[..]rd/Weblog/demand_curve_for_java_software

Successful case of home made game - http://www.codinghorror.com/blog/archives/000872.html

"You want to do your best, or you want to do the best of this world?" - http://sethgodin.typepad.com/the_dip/2007/05/but_are_you_rea.html

The cost and risk of starting business, may be as high as you thought - http://manincentral.blogspot.com/2008/04/blog-post_16.html ; meanwhile, as an high paid employee may not that nice - http://manincentral.blogspot.com/2008/04/blog-post_30.html

Fire startup staff??? - http://mikemason.ca/blog/?p=19

http://pankap.com[..]tartup-lessons-i-learnt-at-protoinday-1/

How to parening software product and team? http://www.ericsink.com/articles/Product_Parenting.html

Ideas are nice, but technical is still the key - http://mailinator.blogspot.com[..]linator-and-not-death-by-popularity.html

Comment mistakes - http://cn.wsj.com/big5/20100910/ffe093505.asp?source=rss

Haha, very true: 有一個重點我想說, 必須要有人願意付錢給你做你喜歡做的事情 - http://enochng.mysinablog.com[..]dex.php?op=ViewArticle&articleId=2862620

Few examples of teen starting their own business - http://cn.wsj.com/big5/20110328/wvh072822.asp?source=rss

http://www.inside.com.tw[..]ive-learned-from-founding-4-technology-2 http://www.inside.com.tw[..]ive-learned-from-founding-4-technology-b http://www.freewebsite.com/blog/how-to-build-your-brand-online/ http://zeroturnaround.com[..]y/feeding-a-startup-your-next-500-ideas/

Build something that do something you don't want to do - http://paulgraham.com/startupideas.html http://www.inside.com.tw[..]2/paul-graham-how-to-get-startup-ideas-c

Confidence - http://www.inside.com.tw[..]ence-is-the-pass-badge-for-entrepreneurs

http://www.quora.com[..]efore-starting-their-very-first-business

Suggestion about starting business - http://thenextweb.com[..]ting-meaningful-work/?fromcat=all#!sxLsH http://www.inside.com.tw[..]e-learned-about-creating-meaningful-work http://www.inside.com.tw[..]t-fab-ceo-learned-from-operating-company http://www.inside.com.tw[..]014/01/21/success_entrepreneur_qualities http://cn.wsj.com/big5/20140415/eoe123534.asp?source=rss

http://www.michelemmartin.com[..]o-start-talking-about-what-you-want.html

Story of starting business in Japan - http://www.inside.com.tw/2014/12/12/danny-choo-culture-japan-a

http://www.inside.com.tw/2014/11/24/how-to-start-a-startup-13

*最棒的需求,往往是在我們身邊發現的
*TA 就在身邊的好處,是可以快速 Iterate,更快找到PMF
*需要教育市場的新產品,要善用YouTube 的力量
*最初的合作通路,要選針對早期熱衷者的那種
*打開通路的關鍵是贏得店主人的推薦
*與其佔很多店的一小部分營收,不如佔很少店的一大部分營收
*就算產品再好,進入市場後,也要一段時間的醞釀
*向下相容很重要 (美國小孩間本就有編織友誼手鍊互送的習俗)
*正向力量很重要 (與其打電動,父母更希望孩子動手)
*一旦打開,小孩市場的傳染力非常強有了初期成功後,還要不斷演進,才能維持顧客的興奮與市場的領先
http://www.wired.tw/posts/2803

http://www.inside.com.tw[..]5/26/distraction-would-kill-your-startup

http://www.inside.com.tw[..]paul-graham-on-how-to-start-your-startup

http://www.infoq.com[..]les/how-to-turn-your-app-into-a-business

How stock option work - http://jvns.ca/blog/2015/12/30/do-the-math-on-your-stock-options/

A Complete Guide to Startup Advisors and Mentors - https://medium.com[..]tartup-advisors-and-mentors-5d5704dc7e84

8 Brutal Questions to Ask Before Quitting Your Job to Become an Entrepreneur - https://medium.com[..]b-to-become-an-entrepreneur-396936cdfbe3

Startups go from Search to Build to Scale - https://thinkgrowth.org[..]ups-stumble-at-40-employees-66312ac70fba

About how to validate and build idea - https://hackernoon.com[..]ounders-need-to-be-aware-of-3a5f8c3acb76

burn-rate-101 - https://medium.com[..]rtups-a-15-min-introduction-6755936efc88

https://medium.com[..]ing-i-learned-from-startups-5c27146ef0e1

https://medium.com[..]torytelling-in-your-startup-d8b57db375fd

entrepreneurship is a calling - https://thinkgrowth.org[..]nnovators-and-entrepreneurs-a430602ff8ea

Why I chose customer-funded growth over taking VC money - https://medium.com[..]growth-over-taking-vc-money-f1eba37e44a4

https://medium.com[..]ings-to-do-as-a-startup-ceo-a22a0caec41f

他如何靠 15000 元卡債,建立市值 7 億的咖啡品牌?藍瓶咖啡的故事 - https://tw.news.yahoo.com[..]7%9A%84%E6%95%85%E4%BA%8B-061200433.html

https://marker.medium.com[..]ld-a-billion-dollar-company-b0c31d7db0e7

https://www.inside.com.tw[..]article/18245-5-suggestions-for-startups

https://medium.com[..]-from-experts-entrepreneurs-f6862778bee1

(google search) (amazon search)


Tue Jan 21 08:00:48 HKT 2020 From /weblog/software_engineering/testing

TDD


If you write the test after you've written the code, it's much more likely that you'll write the tests that will pass what you've written.

That's just how our brains work.

If you determine the criteria for whether a decision is good after you've already made the decision, it's much more likely that you'll create criteria that justifies the decision that was just made.

That's just how our brains work.

Determine how to assess whether something is good before you implement it and/or before you make a decision. Otherwise, you will tend to be emotionally attached to what you just did, what you just decided.

http://jchyip.blogspot.com/2011/09/criteria-first.html

My Top 5 ways to reproduce a "Hard to Reproduce" Bug! - http://software-testing-zone.blogspot.com[..]/my-top-5-ways-to-reproduce-hard-to.html

Common TDD issue and suggested solution - http://www.agileadvisor.com[..]utomated-test-problems-address-root.html

http://biblio.gdinwiddie.com[..]om/biblio/StudiesOfTestDrivenDevelopment

http://www.notesfromatooluser.com[..]ptions-with-test-driven-development.html

http://blog.goyello.com/2011/08/29/what-does-tdd-mean/

https://juristr.com[..]014/05/told-you-that-testing-is-a-waste/

https://www.thoughtworks.com[..]-best-thing-has-happened-software-design

https://itnext.io[..]evelopment-is-dumb-fight-me-a38b3033280c

Does this mean I think you should skip TDD for programs you’re going to run once and then throw them away?

Well, I’m closer to OK with that than I am to the other cases here, but I often spend enough time editing and rerunning to make me think there was probably a central bit of the program that would have benefited from some TDD.
https://ronjeffries.com/articles/020-01ff/when-not-to-tdd/

(google search) (amazon search)


Thu Jan 16 08:13:43 HKT 2020 From /weblog/software_engineering/team

pair programming


https://martinfowler.com/articles/on-pair-programming.html

How work alone might be better than pairing - http://techcrunch.com[..]/03/pair-programming-considered-harmful/

When to pair, when not to - http://www.markhneedham.com[..]ramming-the-disadvantages-of-100-pairing

This is an excellent arguement -

It's only worth pairing on complex code, rote code yields no advantage.

I think there is a point to this - pairing is about improving design and minimizing mistakes. Rote code that's simple to write yields little opportunities for pairing to make a difference.

Except this: writing boring rote code is a smell. If I'm writing boring repetitive code it's usually a sign that I've missed an important abstraction, one that will drastically reduce the amount of rote code to write. Pairing will help you find that abstraction.


http://martinfowler.com/bliki/PairProgrammingMisconceptions.html

Common pitfall of pairing
http://blog.jayfields.com/2007/09/distracted-pair.html
http://blog.jayfields.com/2007/09/uninterested-pair.html
http://blog.jayfields.com/2007/08/spellchecking-pair.html

Look like a good way to start pair programming
http://magpiebrain.com[..]02/13/pairing-pattern-ping-pong-pairing/
http://c2.com/cgi/wiki?PairProgrammingPingPongPattern

Discussing pair programming - http://www.codinghorror.com/blog/archives/000999.html

Experience sharing of working with expert - http://dreamhead.blogbus.com/logs/13258146.html here is the disclaimer of the blog http://dreamhead.blogbus.com/logs/13258146.html

Why pairing - http://www.shlomifish.org[..]n/opinion-on-the-technion/#why_pair_wise

Pair Programming smells
- Unequal access
- Keyboard domination
- Pair marriage
- Worker/Rester
- Second Computer
- "Everyone does their own work"
- 90% of work 90% done
- People who can't stand to program together
- Debates lasting more than 10 minutes without producing new code
-
Pair-programming smalls - http://agileinaflash.blogspot.com[..]com/2009/02/pair-programming-smells.html http://www.javacodegeeks.com[..]ir-programming-disadvantages-of-100.html

http://kfzhang.thoughtworkers.org/2011/04/open-mind-in-pair/

http://spin.atomicobject.com[..]012/08/08/in-praise-of-pair-programming/

http://pragprog.com/magazines/2011-07/pair-programming-benefits

Programmer Pairing with a Tester - http://www.satisfice.com/blog/archives/852

Showing how pair programming is better than traditional code review - http://www.petrikainulainen.net[..]ment/design/code-reviews-with-five-whys/

(google search) (amazon search)


Wed Jan 15 19:29:13 HKT 2020 From /weblog/ai

learning


https://towardsdatascience.com[..]ature-engineering-in-python-99baf11cc219

https://medium.freecodecamp.org[..]n-to-reinforcement-learning-4339519de419

https://www.courseduck.com/programming/machine-learning/

(google search) (amazon search)


Sat Jan 11 20:17:16 HKT 2020 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 guide in google - https://www.infoq.com/news/2017/02/google-managers

Every person is a vector — add them all up, and you know how much progress your company is going to make. - https://thinkgrowth.org[..]me-about-growing-a-business-c2c173f5bff3

The Seven Habits of One Highly Effective Manager of Managers: Things I Learned from Charity Majors - https://honkathon.com/2019-12-19-seven-habits

(google search) (amazon search)


Fri Jan 10 20:22:46 HKT 2020 From /weblog/java/concurrency

collections


Even though

private List synchList = Collections.synchronizedList(new LinkedList());

is thread safe, serialize sync List is NOT thread safe for sure. The story is, if you only synchronized the collection, and if we try to get the iterator in concurrent access environment, it will throws currencymodificationexception .

For collection is small, may be making defensive copy http://www.javapractices.com/Topic15.cjp is good. Otherwise, in java5, there is concurrency collection.

reference:
http://jroller.com[..]ntry=collections_synchronizedlist_broken
http://jroller.com/page/ctarrington?entry=java_collections_trivia

Map operation, include use of FutureTask and putIfAbsent() method from ConcurrentMap. - http://www.javaspecialists.co.za/archive/newsletter.do?issue=125

Other then lterate through the elements, adding and removing elements can also be problem, this article document a few good cases about that - http://rayfd.wordpress.com[..]en-a-synchronized-class-isnt-threadsafe/

Samples of using Queue.drainTo() - http://binkley.blogspot.com[..]rforming-fixed-amounts-of-work-with.html

http://tech.puredanger.com/2009/02/28/java-7-transferqueue/

Overview of blockingqueue - http://tutorials.jenkov.com[..]/java-util-concurrent/blockingqueue.html

Simple benchmark - http://java-persistence-performance.blogspot.com[..]jvm-performance-part-iii-concurrent.html

Multi-thread behaviour - http://vanillajava.blogspot.com[..]hread-safety-issues-with-vector-and.html

java.util.concurrent.ConcurrentHashMap VS openhft.collections.SharedHashMap - http://openhft.blogspot.co.uk[..]autilconcurrentconcurrenthashmap-vs.html

Why are there so many concurrent queues implementations in Java? - https://vmlens.com/articles/cp/why_so_many_queues/

(google search) (amazon search)