RSS feed [root] /




login:

password:

title search:




 


Mon Aug 09 11:02:26 AEST 2021



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

Sat Jan 01 23:44:21 AEDT 2022 From /weblog/design

date


Date handling look simple but easy to fail in trap. Even worst is this is easy to have bad data which hard to fix. Here is an example - http://blogs.msdn.com/jensenh/archive/2005/11/23/496246.aspx

One tip for testing application with time dependence, treat it as random - http://googletesting.blogspot.com[..]pot.com/2008/04/tott-time-is-random.html

Explanation of issues of Joda-time, basically it still haven't map the human view of time close enough than machine view of time - http://www.jroller.com/scolebourne/entry/why_jsr_310_isn_t

Screencast of how to driven a fluent Date API - http://tedyoung.blogsome.com[..]-apis-in-java-episode-1-comparing-dates/

解读数据架构的 2021:大数据 1.0 体系基本建成,但头上仍有几朵乌云 - https://www.infoq.cn/article/gHTPkmo0vZhE7vwFAGij

(google search) (amazon search)


Sat Jan 01 23:42:44 AEDT 2022 From /weblog/design

concurrency


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

On Parallelism and Concurrency - https://inside.java/2021/11/30/on-parallelism-and-concurrency/

Solving Common Concurrency Problems - https://blog.professorbeekums.com[..]s.com/2021/solving-concurrency-problems/

(google search) (amazon search)



Fri Dec 31 18:04:45 AEDT 2021 From /gallery/AU/Sydney/Stanhope+Gardens

20211231_180443



(google search) (amazon search)


Fri Dec 31 00:00:00 AEDT 2021 From /photo/cosmos/apod

JupiterStorms_JunoGill_1024



(google search) (amazon search)


Wed Dec 29 10:45:18 AEDT 2021 From /weblog/child

toy


Why kids should not have lots of toys (and what to do if yours have too many) - https://www.zmescience.com[..]s-and-what-to-do-if-yours-have-too-many/

(google search) (amazon search)


Tue Dec 28 23:28:45 AEDT 2021 From /photo/cosmos/apod

CometJwst_Matipon_2048



(google search) (amazon search)


Tue Dec 28 18:12:30 AEDT 2021 From /gallery/Nature/macro

20211228_181229



(google search) (amazon search)


Tue Dec 28 18:12:21 AEDT 2021 From /gallery/Nature/macro

20211228_181220



(google search) (amazon search)


Tue Dec 28 01:55:27 AEDT 2021 From /weblog/java/fundamental

finalization


http://java.sun.com[..]r/technicalArticles/javase/finalization/

Pitfall and solution of implementing finalize(), if you really need it http://www.hpl.hp.com[..]ns_Boehm/misc_slides/java_finalizers.pdf

Optimization-robust finalization - http://www.open-std.org[..]C1/SC22/WG21/docs/papers/2007/n2261.html

An example showing that memory leak caused by finalize() - http://vanillajava.blogspot.com.au[..].com.au/2012/12/object-resurrection.html

Beware the Finalizer queue, and java.lang.ref.Finalizer object - https://plumbr.eu/blog/debugging-to-understand-finalizer

try { return } finally {} - https://www.pixelstech.net[..]892842-try-%7B-return-%7D-finally-%7B%7D

(google search) (amazon search)


Tue Dec 28 01:36:04 AEDT 2021 From /photo/cosmos/apod

JwstLaunch_Arianespace_1920



(google search) (amazon search)


Mon Dec 27 00:06:24 AEDT 2021 From /photo/cosmos/apod

C2021A1_211221



(google search) (amazon search)


Sun Dec 26 23:56:10 AEDT 2021 From /weblog/health

pressure


Relaxing tips - http://thehousenews.com[..]%9B%E5%A3%93%E5%B0%8F%E8%B2%BC%E5%A3%AB/


積極思考能夠緩解壓力,這一點毫不令人意外。不過明尼蘇達大學卡爾森管理學院工作及組織學教授、該報告的作者之一格隆布(Theresa Glomb)說,事實證明,積極正面的思考可能比用人單位目前采取的很多抗擊工作壓力的方法都更實用,這些方法包括提供靈活的工作安排或創建新的組織結構圖,而這實際上并沒有改變辦公室的日常生活。

寫下一天中發生的好事本身就很有價值,但格隆布說,真正的影響來自寫下為何這些事會讓你感覺良好。這樣做會凸顯出一個人在工作生活中獲得的資源和支持,比如技能、幽默感、讓你感到鼓舞的家人、或是一個富有同情心的老板。 - http://cn.wsj.com/big5/20130909/eoe073851.asp?source=rss

5 Things We Need For Sustainable Performance At Work - http://www.targetprocess.com[..]for-sustainable-performance-at-work.html

什么時候說“不”? - http://cn.wsj.com/big5/20140528/lif112842.asp?source=rss

界(刀)手 - http://thehousenews.com[..]%92%E5%BA%A6%E4%BD%9C%E6%8E%A2%E8%A8%8E/


【朝朝正能量】七招減壓秘技讓你活在當下 - http://hk.apple.nextmedia.com[..]realtime/international/20140724/52721787

【健康online】deadline趕到無氣抖 上班族5招踢走工作壓力 - http://hk.apple.nextmedia.com/realtime/news/20161227/56084029

Burnout - https://www.psychologytoday.com/au/basics/burnout https://lifelabs.psychologies.co.uk[..]u-can-do-to-replenish-your-mental-energy https://codingsans.com/blog/developer-burnout

“In many ways, anxiety is the experiential component of stress, and it’s dependent on how a person perceives that external source of stress,” - https://elemental.medium.com[..]-between-stress-and-anxiety-dc0f24a9ab0d

Short, 10-minute periods of massage or rest can help ease stress - https://www.zmescience.com[..]t-massage-rest-relaxation-stress-262452/

How to be resilient - https://psyche.co[..]-muscle-build-it-up-when-life-pulls-down

Feeling stressed? It’s ‘a bit weird’, but tapping helps – and it’s easy to learn - https://www.zmescience.com[..]but-tapping-helps-and-its-easy-to-learn/

(google search) (amazon search)


Sat Dec 25 22:41:45 AEDT 2021 From /photo/cosmos/apod

Sherick_M1_SHOLRGB_12-5-21a



(google search) (amazon search)


Fri Dec 24 23:26:06 AEDT 2021 From /weblog/security

crack


How to use basic UNIX tool to steal other facebook identity - http://blog.mostof.it/how-to-steal-a-facebook-identity/

More on BGP Attacks - http://blog.wired.com/27bstroke6/2008/08/how-to-intercep.html

Discussion of crack protection - http://discuss.joelonsoftware.com/default.asp?design.4.579670 http://www.focusoncode.com/exe-packers-crypters-and-compressors/ , introduce tools - http://www.pelock.com/

Ten Immutable Laws of Security
Law #1: If a bad guy can persuade you to run his program on your computer, it's not your computer anymore
Law #2: If a bad guy can alter the operating system on your computer, it's not your computer anymore
Law #3: If a bad guy has unrestricted physical access to your computer, it's not your computer anymore
Law #4: If you allow a bad guy to upload programs to your website, it's not your website any more
Law #5: Weak passwords trump strong security
Law #6: A computer is only as secure as the administrator is trustworthy
Law #7: Encrypted data is only as secure as the decryption key
Law #8: An out of date virus scanner is only marginally better than no virus scanner at all
Law #9: Absolute anonymity isn't practical, in real life or on the Web
Law #10: Technology is not a panacea

http://www.microsoft.com[..]s/security/essays/10imlaws.mspx?mfr=true

An example of buffer overflow attack - http://www.thegeekstuff.com/2013/06/buffer-overflow/

hack yourself! - https://blog.codinghorror.com/hacker-hack-thyself/

How I Hacked Google App Engine: Anatomy of a Java Bytecode Exploit - https://blog.polybdenum.com[..]-anatomy-of-a-java-bytecode-exploit.html

Log4j MEGATHREAD - https://www.reddit.com/r/java/comments/rhywh5/log4j_megathread/

How to Find Dangerous Log4j Libraries - https://thenewstack.io/how-to-find-dangerous-log4j-libraries/

(google search) (amazon search)


Fri Dec 24 23:11:23 AEDT 2021 From /photo/cosmos/apod

20211221Tezel



(google search) (amazon search)


Fri Dec 24 10:29:23 AEDT 2021 From /weblog/society

misc


用軀體代替言語,傳承知識 http://hk.apple.nextmedia.com/news/art/20130402/18214454

回收家具再低價出售 http://hk.apple.nextmedia.com/news/art/20130402/18214461 http://www.green-dot-home.com.hk/startup.html

【奇趣史話】「鹹濕」呢個詞 原來嚟自火腿店? - http://hk.apple.nextmedia.com/realtime/china/20151231/54592778

https://getpocket.com[..]d-don-ts-of-gift-giving-around-the-world

What is globalization: how goods and people move across an ever-smaller world - https://www.zmescience.com[..]ce/globalization-history-causes-feature/

Extraordinarily, the effects of the Spanish Inquisition linger to this day - https://www.zmescience.com[..]-spanish-inquisition-linger-to-this-day/

(google search) (amazon search)


Fri Dec 24 00:39:31 AEDT 2021 From /photo/cosmos/apod

IxpeLaunch_Sirokie_1875



(google search) (amazon search)


Thu Dec 23 00:25:19 AEDT 2021 From /weblog/software_engineering/testing

classification


There is a lot of discussion about this blog - http://www.artima.com/weblogs/viewpost.jsp?thread=126923

Which talk about classification of functional test and unit test. Nice to read. You can also refer to the following article:

http://beust.com/weblog/archives/000319.html
http://www.magpiebrain.com/archives/2005/09/18/unit_tests

Checking vs. testing - http://www.developsense.com/2009/08/testing-vs-checking.html

Focusing on testing - http://fabiopereira.me[..]012/03/18/introducing-depth-of-test-dot/

Verification and Validation in Testing - https://www.pcloudy.com[..]/verification-and-validation-in-testing/

(google search) (amazon search)


Wed Dec 22 23:29:42 AEDT 2021 From /photo/cosmos/apod

WinterSolsticeMW_Seip_2980



(google search) (amazon search)


Wed Dec 22 00:09:01 AEDT 2021 From /weblog/child

friend


Forming healthy friendships is often seen as a crucial skill for a child – but one that's rarely explicitly taught. Here's what science can tell us about those vital bonds. - https://www.bbc.com[..]117-how-do-children-choose-a-best-friend

(google search) (amazon search)


Wed Dec 22 00:08:18 AEDT 2021 From /weblog/child

rising


美国人带孩子的17个秘笈 - http://www.kankanews.com/ICstudent/news/2014-06-03/4883286.shtml http://www.life.com.tw/?app=view&no=177508

How to Motivate Your Kids (Without Bribery!) - https://www.webmd.com/parenting/ss/slideshow-motivate-your-kids

(google search) (amazon search)


Wed Dec 22 00:07:25 AEDT 2021 From /weblog/science

plant


mushrooms - http://list25.com/25-most-bizarre-mushrooms-you-need-to-see/

【Gene 愛聊科學】食蟲植物讓獵物滑進瓶口的密技,成為對抗貽貝附著的無毒塗料:SLIPS - https://www.inside.com.tw/2017/08/23/slips

plants - http://list25.com[..]ique-plants-you-have-ever-seen/?view=all

dangerous-plants - http://list25.com[..]us-plants-that-could-seriously-hurt-you/

Amber - http://www.zmescience.com/science/long-process-amber-creation

Rock - http://www.zmescience.com[..]her/feature-post/rock-cycle-geoloby-abc/

What is the Wilson Cycle, builder and slayer of supercontinents? - http://www.zmescience.com/science/what-is-wilson-cycle/

clouds - http://www.zmescience.com/science/types-of-clouds/

What is THC: the main psychoactive ingredient in marijuana - http://www.zmescience.com/science/what-is-thc-433/

different-types-plants-world - https://www.zmescience.com[..]nce/biology/different-types-plants-world

oldest tree - http://www.zmescience.com/science/old-oldest-tree

Sugar - https://www.zmescience.com[..]her/feature-post/sugar-history-00432432/

淺談水龍捲 - https://thestandnews.com[..]%BA%E8%AB%87%E6%B0%B4%E9%BE%8D%E6%8D%B2/

The science behind why leaves change color in autumn - https://www.zmescience.com/ecology/autumn-leaves-color-432432/

螞蟻與植物竟然共同演化,原來為了… - https://thestandnews.com[..]96-%E5%8E%9F%E4%BE%86%E7%82%BA%E4%BA%86/

https://www.zmescience.com[..]e/gingko-biloba-immortal-lifespan-05264/

https://www.biodiversitylibrary.org/

受盡威脅,也要幫這些台灣植物活下去:走訪福山植物園 - https://theinitium.com[..]00605-culture-botanical-garden-taiwan-1/

Some trees may 'social distance' to avoid disease - https://www.nationalgeographic.com[..]020/07/tree-crown-shyness-forest-canopy/

https://www.zmescience.com[..]her/feature-post/why-is-the-ocean-salty/

The rare plants that ‘bleed’ nickel - https://www.bbc.com[..]ia-the-plants-that-mine-poisonous-metals

Deepest Dive Ever Under Antarctica Reveals a Shockingly Vibrant World - https://www.nationalgeographic.com[..]-frozen-beauty-exotic-creatures-penguins

As the Antarctic Peninsula heats up, the rules of life there are being ripped apart. Alarmed scientists aren’t sure what all the change means for the future. - https://www.nationalgeographic.com[..]ula-ice-melt-krill-penguin-leopard-seal/

why-leaves-fall-down-and-why-it-happens-during-autumn - https://www.zmescience.com[..]l-down-and-why-it-happens-during-autumn/

http://www.plantsoftheworldonline.org/

What is gympie-gympie: the poisonous plant whose painful sting can last for years and drive people to suicide - https://www.zmescience.com/science/what-is-gympie-gympie/

The tallest tree in the world is higher than the Statue of Liberty - https://www.zmescience.com[..]er/feature-post/tallest-tree-world-0423/

許多植物已被細菌“天然轉基因” - https://www.zmescience.com[..]ts-have-been-naturally-gmod-by-bacteria/

Here are the world’s most favorite fruits — judging by production figures, at least - https://www.zmescience.com[..]ence/worlds-most-produced-fruit-feature/

These ‘supertrees’ are engineered to capture more carbon - https://www.fastcompany.com[..]es-are-engineered-to-capture-more-carbon

How the cauliflower got its mesmerizing fractals - https://www.zmescience.com[..]auliflower-got-its-mesmerizing-fractals/

The lost generation of ancient trees - https://www.bbc.com[..]908-the-lost-generation-of-ancient-trees

This natural chemical could keep fruits and vegetables fresh for longer - https://www.zmescience.com[..]mistry/natural-chemical-fruits-25112021/

The odd history of the Osage orange tree - https://www.nationalgeographic.com[..]ge-apple-osage-orange-ghost-of-evolution

(google search) (amazon search)


Tue Dec 21 22:54:22 AEDT 2021 From /weblog/science

ill


Resistance is futile: what viruses are, and why we’ll never ‘beat’ them - https://www.zmescience.com[..]/science/viruses-structure-life-feature/

How Long COVID Keeps Us Sick - https://www.quantamagazine.org[..]ong-covid-how-it-keeps-us-sick-20210701/

Babies’ immune systems are probably stronger than we give them credit for - https://www.zmescience.com[..]medicine/babies-immune-systems-16122021/

(google search) (amazon search)


Tue Dec 21 16:19:06 AEDT 2021 From /photo/cosmos/apod

LeonardMeteor_Poole_2250



(google search) (amazon search)