RSS feed [root] /




login:

password:

title search:




 


Wed Feb 17 21:56:00 HKT 2021



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

Mon Jun 15 15:10:52 HKT 2020 From /weblog/health/food

handle


food-freshness-tricks - https://www.webmd.com[..]ss/slideshow-food-freshness-tricks-hacks

(google search) (amazon search)


Fri Jun 12 15:55:40 HKT 2020 From /weblog/computer+science

photography


https://www.dpreview.com[..]mputational-photography-trilogy-june2020

(google search) (amazon search)


Fri Jun 12 08:27:22 HKT 2020 From /weblog/trip/camping

animal


How to stay safe around wild animals - https://www.nationalgeographic.com[..]animals-wildlife-attacks-national-parks/

How to Not Get Attacked by a Bear - https://www.nationalgeographic.com[..]animals-science-north-america-grizzlies/


(google search) (amazon search)


Tue Jun 09 00:02:20 HKT 2020 From /weblog/java/discussion

books


http://www.javalobby.org/articles/5books/

https://handwiki.org/wiki/Book:ThinkJava

(google search) (amazon search)


Sat Jun 06 23:02:08 HKT 2020 From /weblog/hardware

cpu


Memory Ordering in Modern Microprocessors - http://www.linuxjournal.com/article/8211 http://www.linuxjournal.com/article/8212

http://spectrum.ieee.org[..]ors/25-microchips-that-shook-the-world/0

FPGA CPUs, how to turn a FPGA to a working CPU? - http://dobbscodetalk.com[..]com_myblog&show=FPGA-CPUs.html&Itemid=29

If according this article, GPU easier to have more cores is required code to be very regular fashion with no branches and inter-thread communication - http://www.javacodegeeks.com/2011/09/cpu-vs-gpgpu.html

CPU DB: Recording Microprocessor History - http://queue.acm.org/detail.cfm?id=2181798&ref=fullrss

Difference CPU comparing - http://randomascii.wordpress.com[..]12/03/28/fractal-and-crypto-performance/

Detail about how CPU caching work - http://mechanical-sympathy.blogspot.gr[..]/2013/02/cpu-cache-flushing-fallacy.html

CPU design on paper - http://www.drdobbs.com[..]0_h&elq=891e5022435b400e89040e1342c10b72

http://vanillajava.blogspot.hk[..]rdware-transactional-memory-in-java.html

Interview about TSX - https://www.infoq.com[..]views/tene-hardware-transactional-memory

quantum - http://www.zmescience.com[..]ience/flip-flop-quantum-computer-043242/

meltdown - https://hackaday.com[..]15/spectre-and-meltdown-how-cache-works/

https://www.freecodecamp.org/news/how-does-a-cpu-work/

缓存与存储的一致性策略:从 CPU 到分布式系统 - https://xie.infoq.cn/article/fa1f0f9ac1cfee7845f7b29fe

(google search) (amazon search)


Fri Jun 05 08:17:50 HKT 2020 From /weblog/learning

personality


A prioritized list of desired traits:

Character
Critical thinking
Motivation
Creativity
Business knowledge
Technical knowledge

My only suspect is Technical knowledge is lower than Business knowledge, what will you think about this? - http://www.davenicolette.net/agile/index.blog?entry_id=1220879

Difference type of employee - http://headrush.typepad.com[..]onate_users/2007/03/is_your_app_an_.html

The Power of Introverts: A Manifesto for Quiet Brilliance - http://www.scientificamerican.com[..]fm?id=the-power-of-introverts&print=true http://h30565.www3.hp.com[..]How-to-Succeed-as-an-Introvert/ba-p/1522

Honesty - http://www.michelemmartin.com[..]elf-and-starting-from-where-you-are.html


23 Signs You’re Emotionally Intelligent & Destined for Success:

The ability to listen and to speak to the “human needs” of coworkers and customers and make them feel understood and respected
Ability to build relationships and connect with others on a deep level
Good conversation skills
The ability to propose solutions to problems, not just talk about problems
Meaningfully contribute to brainstorming
Ability to write well
Problem-solving skills
Being a team player
Being likeable
Self-confidence
Strong work ethic
Optimism/positive attitude
Good communication skills
Storytelling abilities for presentations
Time management abilities
Being good at “reading” people
Exercise tact when delivering a message

http://www.thepowerofintroverts.com[..]onally-intelligent-destined-for-success/


What Makes Good Traders Great Entrepreneurs

* An intense drive to succeed;
* The ability to adapt to changing circumstances;
* Decisiveness
* Energy
* Perseverance and determination
* Risk tolerance
* Strong self-confidence

http://traderfeed.blogspot.com.au[..]14/03/what-makes-good-traders-great.html

What is professional - http://cn.wsj.com/big5/20140513/DJL071521.asp?source=rss

How to change your character: 索托說:“你應該從改變行為做起,接下來,如果你能長期保持這種新行為,這種行為就會被鎖定下來。 - http://cn.wsj.com/big5/20140502/lif114051.asp?source=rss

If I say just trust me and I’m wrong, I’m untrustworthy. If I say here’s my work and it’s wrong, I’m honest, human, and serving scientific progress. - http://simplystatistics.org/2016/12/29/some-stress-reducers/

I Used To Be Shy. This Is How I Became Confident - https://medium.com[..]s-is-how-i-became-confident-f0b1d0ab5e29

Confidence is, in fact, a product of repetition … but not a product of success — it’s a product of failure. - https://psiloveyou.xyz/where-confidence-comes-from-785df9139d83

Everyone is given the exact fuel they need to succeed. But few use it. - https://medium.com[..]ess-you-need-to-become-more-6d0781b464c3

You Seek Money and Titles, Not Experience and Transformation - https://medium.com[..]e-will-remain-in-mediocrity-6c7e24c48d12

堅韌意志的秘密 - http://cn.wsj.com/big5/20171124/OPN165323.asp

如何培養懂得感恩的孩子? - http://cn.wsj.com/BIG5/20180309/OPN174053.asp

Conscientiousness
Adjustment
Ambiguity acceptance
Curiosity
Risk approach (or courage)
Competitiveness
http://www.bbc.com[..]ecrets-of-the-high-potential-personality

Be Aware of the Quiet Ones like Keanu Reeves — They Are the Ones That Actually Make You Think - https://medium.com[..]hat-actually-make-you-think-de7c8f814d04

(google search) (amazon search)


Wed Jun 03 15:55:56 HKT 2020 From /weblog/java/discussion

VM


How to write a (toy) JVM - https://zserge.com/posts/jvm/

(google search) (amazon search)


Wed Jun 03 08:20:56 HKT 2020 From /weblog/learning

focus


How to train focus - https://www.infoq.com/news/2017/01/attention-awareness-teams http://www.infoq.com/cn/news/2017/01/attention-awareness-teams

Once you build self-control through a chosen activity, you do a better job exerting self-control in other situations. - https://qz.com[..]r-thanks-to-the-science-of-self-control/

17 yrs don't speak... - https://dq.yam.com/post.php?id=7898

5 hours rule, every day spend an hour to read/reflect/experience, 5 times a week - http://www.businessinsider.com[..]and-oprah-all-use-the-5-hour-rule-2017-7 https://medium.com[..]-all-embrace-the-5-hour-rule-8836f554da1

Why focusing is important - https://www.theverge.com[..]-practice-training-neuroscience-research

How To Dramatically Sharpen Your Attention And Focus = https://medium.com[..]en-your-attention-and-focus-416444802997

How to due with information overload - https://betterhumans.coach.me[..]-hurts-us-and-how-to-escape-4a2924800e16

獨自練習(反覆針對問題點,進行大量重複聚焦式的練習。)
全神貫注(因為很容易累,要搭配充足睡眠。)
保持覺察(不要讓自己在練習時,因為習慣了就開始不思考。隨時抓出關鍵轉折點,然後針對問題,重點密集的練習克服。)
拆解專家的技術,去分析其心智模型(不斷討論,思考他為何要這麼做?)
接受專家高質量針對性的回饋(後期可以透過心智模型自我回饋) - https://www.inside.com.tw[..]ecrets-from-the-new-science-of-expertise

How to concentrate - https://medium.com[..]-no-such-thing-as-motivation-e02edd7de30

https://markmanson.net/attention-diet

https://getpocket.com[..]-focus-and-get-more-meaningful-work-done

Ignoring distractions or temptation is harder when you’re tired, stressed, or trying to remember something - https://www.zmescience.com[..]ognitive-control-ignoring-cues-925346345

唐鳳愛用番茄鐘工作法是什麼?教你提高專注力、重新奪回生產力 - https://www.inside.com.tw[..]icle/19127-how-to-use-pomodoro-technique

https://kevinabdulrahman.org/stay-focused-at-work/ https://www.webmd.com[..]d/ss/slideshow-top-concentration-killers https://www.webmd.com/add-adhd/ss/slideshow-stop-wasting-time


(google search) (amazon search)


Tue Jun 02 17:50:40 HKT 2020 From /weblog/java/fundamental

garbage


Some overview articles - http://javarevisited.blogspot.com[..]/2011/04/garbage-collection-in-java.html http://jeremymanson.blogspot.com[..]10/01/garbage-collection-references.html http://www.oracle.com[..]work/java/javase/gc-tuning-6-140523.html https://www.infoq.com[..]derstand-classic-java-garbage-collection

Interview with Azul, about the pauseless GC - http://www.infoq.com/interviews/gil-tene-azul-zing

A story of how to tune GC - http://kirk.blog-city.com/why_do_i_have_this_long_gc_pause.htm

NewRatio ( XX:MaxNewSize ) is important, but usually ignored - http://blogs.oracle.com[..]ector/entry/the_second_most_important_gc

Java memory configuration and monitoring - http://blog.codecentric.de[..]ry-configuration-and-monitoring-3rd-act/

How Garbage Collection differs in the three big JVMs - http://blog.dynatrace.com[..]ollection-differs-in-the-three-big-jvms/

Garbage Collection Bootcamp 1.0 - http://www.lucidimagination.com[..]1/03/27/garbage-collection-bootcamp-1-0/

http://javarevisited.blogspot.sg[..]ollection-interview-question-answer.html

How CMS work - https://blogs.oracle.com[..]thecollector/entry/hey_joe_phases_of_cms

Compare between difference VM - http://www.optaplanner.org[..]IsTheFastestGarbageCollectorInJava8.html

GC handbook - https://plumbr.eu/java-garbage-collection-handbook

Check what GC you are using - http://marxsoftware.blogspot.hk[..]16/04/determining-garbage-collector.html

About G1 Java Garbage Collector - http://dobbscodetalk.com[..]G1-Java-Garbage-Collector.html&Itemid=29

Tools to visualize GC - http://gceasy.io/

Visualizing difference algorithm - https://spin.atomicobject.com[..]sualizing-garbage-collection-algorithms/

safepoints - http://performantcode.com/gc/safepoints/

Few new GCs for huge heap - https://dzone.com/articles/java-garbage-collection-3

Objects are allocated with extra space for an indirection pointer. When the Java threads access the object, they first read the indirection pointer to see whether the object has moved. When the garbage collector moves an object, it updates the indirection pointer to point to the new location. New objects are allocated with an indirection pointer that points to themselves. Only when an object is copied during GC will the indirection pointer point to somewhere else. - https://blogs.oracle.com[..]agazine/understanding-garbage-collectors

JVM Pauses - It's more than GC - https://blanco.io/blog/jvm-safepoint-pauses/

(google search) (amazon search)


Tue Jun 02 10:14:53 HKT 2020 From /weblog/java/fundamental

collections


Detailed decision of arraylist and linkedlist, consist of a lot benchmark results, take a look if interested: http://javachaos.crazyredpanda.com/?p=99

One bug from java HashMap explaining it can be difficult to achieve fail-fast - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6625725 http://java.dzone.com/articles/do-your-iterators-always-fail

Performance difference of difference collection - http://java-persistence-performance.blogspot.com[..]0/12/what-is-faster-jvm-performance.html http://leolewis.website.org[..]/2011/07/14/java-collection-performance/

A treelist implementation - http://binkley.blogspot.com/2007_02_01_archive.html

Implement LRU cache using LinkedHashMap - http://vanillajava.blogspot.com[..]11/06/java-secret-lru-cache-in-java.html

Problem of using soft-reference for automate cache clean up - http://comments.gmane.org[..]gmane.comp.java.jsr.166-concurrency/7982

if it claims that an element is contained in it, this might be in error, but if it claims that an element is not contained in it, then this is definitely true. - http://codingjunkie.net/guava-bloomfilter/

Comment of various collections library - http://plumbr.eu/blog/selecting-your-collections-library

List of FAQ of Java collections - http://www.journaldev.com[..]lections-interview-questions-and-answers

Java Collections – Performance (Time Complexity) - http://infotechgems.blogspot.com.br[..]1/java-collections-performance-time.html

Performance improvement for HashMap for Java8 - http://www.nurkiewicz.com[..]hashmap-performance-improvements-in.html

Introduction to GS collection - http://www.infoq.com[..]s/gs-collections-examples-tutorial-part1 http://www.infoq.com[..]s/gs-collections-examples-tutorial-part2

removeEldestEntry, interesting function of linkedhashmap - http://www.ageofjava.com[..]/prevent-your-caches-from-exploding.html

How new version of java help immutable style - https://dzone.com/articles/java-collections-are-evolving

https://blog.frankel.ch/map-merge-compute

(google search) (amazon search)


Tue Jun 02 10:14:05 HKT 2020 From /weblog/java/libraries

math


Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating real/complex/dense/sparse matrices. Its design goals are; 1) to be as computationally and memory efficient as possible for both small and large matrices, and 2) to be accessible to both novices and experts. These goals are accomplished by dynamically selecting the best algorithms to use at runtime, clean API, and multiple interfaces. EJML is free, written in 100% Java and has been released under an Apache v2.0 license. - http://ejml.org/wiki/index.php?title=Main_Page

https://mkyong.com/java/java-mod-examples

(google search) (amazon search)


Tue Jun 02 08:58:22 HKT 2020 From /weblog/software_engineering/team

efficiency


Cool diagram showing what slow us down - http://www.targetprocess.com[..]m/blog/2012/01/faster-faster-faster.html

Usually, not a good idea to grow a team too big too soon - http://martinfowler.com/bliki/PrematureRampUp.html

Taken from Interview of Charles Simonyi ( http://www.shamit.org/charles_simonyi.htm ) , both the interview and the discussion are nice to read: http://discuss.joelonsoftware.com/default.asp?joel.3.341396 , However, I will think if team work effective, 1+1 > 2

What we should really care about is effectiveness and not efficiency. and effectiveness is often inefficient - http://www.markhneedham.com[..]our-obsession-with-efficiency-dan-north/

Handling emergencies or crisis situations
Handling work stress
Solving problems creatively
Dealing with uncertain and unpredictable work situations
Learning work tasks, technologies, and procedures
Demonstrating interpersonal adaptability
Demonstrating cultural adaptability
Demonstrating physical-oriented adaptability
- http://jchyip.blogspot.com[..]2010/12/8-behavioural-dimensions-of.html

http://www.funretrospectives.com/anchors-and-engine/ <- a simple way to check what make team move faster, and things that slow team down.

http://www.targetprocess.com[..]icles/speed-in-software-development.html

The emergency team, in our understanding, was supposed to work as a point of entry for new developers, so they could know the codebase better. However, we didn’t get into account that newcomers needed to check on some things with the “old” developers. That hindered the work, and we eventually switched back to ~1 month rotation principle. - http://www.targetprocess.com[..]/how-we-handle-bug-fixes-and-rework.html

Your team’s strength is not a function of the talent of individual members. It’s a function of their collaboration, tenacity, and mutual respect. - https://medium.freecodecamp.org[..]-best-decision-we-ever-made-4c0a99728fde

https://ronjeffries.com/articles/019-01ff/kate-red-threads/

http://testobsessed.com/2020/02/momentum-urgency

(google search) (amazon search)


Tue Jun 02 08:56:24 HKT 2020 From /weblog/business

communication


溝通的最高境界,如何像律師一樣爭論 - https://dq.yam.com/post.php?id=10077

Stick to one theme--one number--per slide. Your audience will thank you. - https://www.inc.com[..]ke-their-slides-instantly-memorable.html

The Tricks to Make Yourself Effortlessly Charming - https://getpocket.com[..]s-to-make-yourself-effortlessly-charming

https://hbr.org/2016/01/collaborative-overload

(google search) (amazon search)


Tue Jun 02 08:55:15 HKT 2020 From /weblog/business

diverse


https://hbr.org/2016/11/why-diverse-teams-are-smarter

(google search) (amazon search)


Tue Jun 02 08:32:20 HKT 2020 From /weblog/java/features

java14


http://cr.openjdk.java.net[..]jlaskey/Strings/TextBlocksGuide_v10.html

https://ondro.inginea.eu[..]new-features-between-java-8-and-java-14/

JDK 14 Foreign-Memory Access API Overview - https://medium.com[..]-memory-access-api-overview-70951fe221c9

Pattern Matching for instanceof in Java 14 - https://blogs.oracle.com[..]ttern-matching-for-instanceof-in-java-14

(google search) (amazon search)


Tue Jun 02 08:30:26 HKT 2020 From /weblog/java/features

unsafe


The infamous sun.misc.Unsafe explained: object creation, native memory allocation, native concurrency - http://mydailyjava.blogspot.hk/2013/12/sunmiscunsafe.html

Features that help for writing low latency application - http://vanillajava.blogspot.com[..]1/sunmiscunsafe-and-off-heap-memory.html

Tips of using unsafe - http://vanillajava.blogspot.com.au[..].com.au/2014/06/making-unsafe-safer.html

An overview of it - http://www.infoq.com[..]A-Post-Apocalyptic-sun.misc.Unsafe-World https://blogs.oracle.com[..]ine/the-unsafe-class-unsafe-at-any-speed

(google search) (amazon search)


Tue Jun 02 08:28:50 HKT 2020 From /weblog/java/features

IO


Watch service, watch if directory changed - http://www.javacodegeeks.com/2012/02/java-7-watchservice.html

Tips of using bytebuffer - http://worldmodscode.wordpress.com[..]2/14/the-java-bytebuffer-a-crash-course/

path : ..\.\Java.txt
absolute path : C:\Users\WINDOWS 8\workspace\Demo\..\.\Java.txt
canonical path : C:\Users\WINDOWS 8\workspace\Java.txt

Read more: http://javarevisited.blogspot.com[..]getcanonicalpath-java.html#ixzz3A8Zya6YG

Jump to a position of a file, inputstream.skip() is faster than reader.skip(), and reader.skip() is faster than randomAccessFile.

Java & Files: An Introduction - https://www.marcobehler.com/guides/java-files

(google search) (amazon search)


Tue Jun 02 08:23:00 HKT 2020 From /weblog/design

Implementation


Tired with duplicating Try-Catch for resource acquisition? Can try to create proxy method - http://hamletdarcy.blogspot.com[..]clarative-synchronization-with-java.html

Discussion of naming of if block - http://blog.objectmentor.com/articles/2008/09/26/if-methods-redux

Factors for choosing a strategic technology stack, runtime performance is not a factor for him, probably good idea - http://jchyip.blogspot.com[..]1/04/factors-for-choosing-strategic.html

Don't think , stay focus - http://www.threeriversinstitute.org/blog/?p=594

Using class name as variable name is a bad thing? I doubt about it, but interesting idea - http://www.warski.org/blog/2013/01/dry-parameter-names/

The problem of using generic name - http://martinfowler.com/bliki/TransparentCompilation.html

Beware of where memory allocated, sometime there is no off side for lazy initalization - http://plumbr.eu[..]ou-dare-to-change-hashmap-implementation

Some suggestion of how to code in order to prevent unreproducible bugs - http://googletesting.blogspot.hk[..]4/02/minimizing-unreproducible-bugs.html

More careful to check null - http://blog.jooq.org[..]et-paranoid-java-programming-techniques/

http://www.infoq.com/cn/articles/wisdom-of-programming

The fewer conditions you test for, the better your code “tastes”. - https://medium.com[..]ding-requirement-99749f37684a#.1glkhe7np

Think twice before running a loop - https://blog.jetbrains.com/idea/2017/08/code-smells-iteration

Example of how to remove mutation status - https://blog.jetbrains.com/idea/2017/08/code-smells-mutation

The Best Algorithm No One Knows About, linear randomization - https://getkerf.wordpress.com[..]0/the-best-algorithm-no-one-knows-about/

Small change can make big difference - https://blog.pitest.org[..]ars-with-a-single-character-code-change/

Eager is Easy, Lazy is Labyrinthine - https://medium.com[..]s-easy-lazy-is-labyrinthine-b12605f13048

(google search) (amazon search)


Mon Jun 01 21:39:18 HKT 2020 From /weblog/photographic/tutorial

misc


About marco photograhy - http://www.dpreview.com[..]7237/depth-of-field-in-macro-photography https://www.wildcreatureshongkong.org[..]018/08/22/Macro-photography-in-the-field

動 態 攝 影 分 享 - http://www.dchome.net/viewthread.php?tid=432312 http://patricklenz.com[..]ts/gymnastics-fundraiser-portfolio-shoot http://www.dcfever.com/news/readnews.php?id=14264&link=guid

世盃攝影師落場 三機三鏡是基本 - http://worldcup2014.appledaily.com[..]om/realtime/all/latest/20140624/52618252

Street photographic - http://www.dchome.net/viewthread.php?tid=819443 http://www.dcfever.com/column/read.php?id=1562 , 呈圓狀, 二等分, 重覆式, 同形狀

What is the real meaning of Aperture in zoom len - http://digitaljournalist.org/issue0909/tech-tips.html

How to take building photo look proper vertically - http://www.dchome.net/viewthread.php?tid=833344

How to take a good photo - http://www.dpreview.com/articles/4491391950/evolution-of-an-image

Think about composition rule - http://www.dpreview.com/articles/1304360703/breaking-the-rules

http://www.petapixel.com[..]or-beautiful-light-painting-photographs/

Using shifted len to create landscape photo - http://www.dpreview.com/articles/9496515776/the-dslr-field-camera

http://erickimphotography.com[..]-can-teach-you-about-street-photography/

Tutorial about using DSLR to take good movie - http://www.dcfever.com/news/readnews.php?id=9500&link=guid

進階對焦技巧 – 快門對焦分開處理 - http://wlcreative.com[..]%A6%E5%88%86%E9%96%8B%E8%99%95%E7%90%86/

http://petapixel.com[..]active-photography-skill-tree-beginners/

Zone system - http://www.mobile01.com/topicdetail.php?f=257&t=2487912

How to use flash in studio - http://www.dcfever.com/fillens/read.php?id=308

Tips of taking photo for wildlife - http://cn.wsj.com/big5/20150601/PHO101044.asp https://digiphoto.techbang.com[..]ecipes-to-take-note-of-wildlife-shooting

用小電筒照出静物「封面相」 - http://www.dcfever.com/column/read.php?id=3937

How to find your vision? practice, practice, practice - http://www.mikkolagerstedt.com[..]3/how-to-find-your-vision-in-photography

How to show dimension - http://digiphoto.techbang.com[..]the-construction-of-space-in-photography

How to take food photo - http://letsfilm.org/archives/320676

How to tone color - http://digiphoto.techbang.com[..]gh-ideas-learn-to-tone-and-color-control

想拍好出照片,不懂色彩怎麼行! - https://digiphoto.techbang.com[..]re-do-not-understand-the-color-how-to-do

Common shutter speed - http://digiphoto.techbang.com[..]professional-photographers-shutter-speed

想拍漂亮的散景靜物嗎?6步驟DIY一個超絢麗散景牆, with 鋁箔或銀色包裝紙 - http://digiphoto.techbang.com[..]steps-to-a-super-gorgeous-diy-bokeh-wall

3D photographic technique - http://www.dchome.net/viewthread.php?tid=266665&extra=page%3D1

相機帶「拍攝術」 - http://www.dcfever.com/news/readnews.php?id=21934&link=guid

【不用 PS 不用水氹】利用電話屏幕,拍攝類似「天空之鏡」效果照片 - https://www.dcfever.com/news/readnews.php?id=22458&link=guid

Effect of different focal length - https://digiphoto.techbang.com[..]t-shot-for-a-portrait-four-shot-pro-test

PHOTOGRAPHY COMPOSITION: THE DEFINITIVE GUIDE - https://antongorlin.com[..]hotography-composition-definitive-guide/

3種構圖手段,讓你的照片更突出- https://digiphoto.techbang.com[..]-ways-to-make-your-photos-more-prominent

一個好背景,能決定拍攝者的功力 - https://digiphoto.techbang.com[..]und-to-determine-the-photographers-skill

在拍極簡攝影之前,你得先了解負空間 - https://digiphoto.techbang.com[..]ou-have-to-understand-the-negative-space

簡單圖解讓您立刻學會拍螢火蟲 - https://digiphoto.techbang.com[..]-you-learn-to-shoot-fireflies-right-away

長鏡用家必學!高速鎖定目標有秘訣 - https://www.dcfever.com/news/readnews.php?id=25907&link=guid

https://www.zmescience.com[..]y/how-to-get-started-with-birding-05232/

提升攝影水平的44個小建議 - https://digiphoto.techbang.com[..]sts/10251-44-tips-for-lifting-the-camera

How to photograph minimalist landscapes? - https://www.mikkolagerstedt.com[..]/how-to-photograph-minimalist-landscapes

告別手震!6個手持穩定相機的方式,你都學會了?? - https://digiphoto.techbang.com[..]our-hands-6-ways-to-hold-a-stable-camera

(google search) (amazon search)



Thu May 28 21:44:28 HKT 2020 From /weblog/misc

aws


AWS services explained in one line each (adayinthelifeof.nl) - https://adayinthelifeof.nl/2020/05/20/aws.html

(google search) (amazon search)


Mon May 25 23:29:39 HKT 2020 From /weblog/history

Taiwan


羽化成蝶的寄生蟲,「臺灣山林王」的一頁傳奇 - https://guavanthropology.tw/article/6815

(google search) (amazon search)


Sat May 23 12:22:23 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

https://martinfowler.com/articles/class-too-large.html

(google search) (amazon search)



Mon May 18 11:41:19 HKT 2020 From /weblog/unix

filesystem


Advisory Locking and Mandatory Locking - http://www.thegeekstuff.com/2012/04/linux-file-locking-types/

Basic info of inode - http://www.thegeekstuff.com/2012/01/linux-inodes/

Explanation of /proc filesystem - http://www.redhat.com[..]anual/ref-guide/s1-proc-directories.html

Linux file system structure - http://www.thegeekstuff.com/2010/09/linux-file-system-structure/

File system for archive files - http://linuxtoy.org/archives/avfs.html

BeOS file system, other than discuss about BeOS FS, also discussing about evolution of design of file system - http://arstechnica.com[..]rce/news/2010/06/the-beos-filesystem.ars http://arstechnica.com[..]03/past-present-future-file-systems.ars/

ZFS - http://www.thegeekstuff.com/2015/07/zfs-on-linux-zpool/ https://clusterhq.com/2014/09/11/file-systems-data-loss-zfs/ http://www.linuxjournal.com/content/zfs-linux https://arstechnica.com[..]derstanding-zfs-storage-and-performance/

The file size of command "df" return is compressed data, raw disk usage
If we want compress amount, we need to get the compressratio using /usr/sbin/zfs
We can get more system detail via perl package Sun::Solaris::Kstat , we can google "arc_summary.pl" as an example

Using ZFS as version control - http://zef.me/blog/6023/who-needs-git-when-you-got-zfs


(google search) (amazon search)