RSS feed [root] /weblog




login:

password:

title search:




 


Tue Jan 17 22:34:04 HKT 2017

weblog


log down some useful resource


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

Tue Feb 20 09:58:45 HKT 2018 From /weblog/science/animal

cat


https://list25.com/25-bizarre-cat-facts-you-need-to-know/

(google search) (amazon search)


Mon Feb 19 23:30:09 HKT 2018 From /weblog/computer+science

compiler


Bootstrapping a compiler from nothing. - http://discuss.joelonsoftware.com/default.asp?design.4.357910

ON TAIL CALL OPTIMISATION - https://codurance.com/2017/12/05/on-tail-call-optimisation/

What LLVM can do, and cannot do - https://www.infoworld.com[..]er-behind-swift-rust-clang-and-more.html

(google search) (amazon search)


Mon Feb 19 23:26:54 HKT 2018 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

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)


Sat Feb 17 23:44:47 HKT 2018 From /weblog/learning

Learn fast


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

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

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

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

http://www.businessinsider.com[..].com/how-to-learn-anything-faster-2016-8

(google search) (amazon search)



Fri Feb 16 10:05:31 HKT 2018 From /weblog/learning

stress


In other words, both groups were stressed, but one group channeled the stress as a performance challenge; the other group as a performance threat. It wasn't the stress of a difficult test that caused distress--everyone felt that. It was how subjects interpreted their stress. - http://traderfeed.blogspot.com.au[..]mbracing-stress-minimizing-distress.html

http://nautil.us/blog/do-you-actually-need-more-stress

Calming when conflict - https://hbr.org/2015/12/calming-your-brain-during-conflict

https://aeon.co[..]ks-in-the-human-body-to-make-or-break-us

A Stanford psychologist has a simple mental exercise for tackling student stress - https://qz.com[..]l-exercise-for-tackling-student-anxiety/

The 40% rule is simple: When your mind is telling you that you’re done, that you’re exhausted, that you cannot possibly go any further, you’re only actually 40% done. ( umm... not sure if it really useful all the time ) - https://www.forbes.com[..]the-40-rule-the-simple-secret-to-success

“The ideal situation for improving learning and memory would be to experience no stress and to exercise,” Edwards said. - https://www.zmescience.com/science/stress-memory-exercise

(google search) (amazon search)


Fri Feb 16 00:27:25 HKT 2018 From /weblog/learning

memory


These 3 Hacks Will Make You Remember More - https://betterhumans.coach.me[..]will-make-you-remember-more-b30a3d9b3136

When trying to memorise new material, it’s easy to assume that the more work you put in, the better you will perform. Yet taking the occasional down time – to do literally nothing – may be exactly what you need. Just dim the lights, sit back, and enjoy 10-15 minutes of quiet contemplation, and you’ll find that your memory of the facts you have just learnt is far better than if you had attempted to use that moment more productively. - http://www.bbc.com[..]effortless-way-to-strengthen-your-memory

(google search) (amazon search)


Sun Feb 11 23:34:31 HKT 2018 From /weblog/business

fund


http://thielfellowship.org/

說一個好故事,讓 Pitch 更精彩 - https://www.inside.com.tw/2014/03/11/oren-jacob-toytalk

(google search) (amazon search)



Tue Feb 06 00:00:21 HKT 2018 From /weblog/database/performance

Note of SQL performance tuning


Note of this book - http://www.ocelot.ca/tuning.htm

1) Order of "and" and "or" is matter, if no cost-base optimizer

where column1 = 'a' and column2 = 'b' -> where column2 = 'b' and column1 = 'a' if column2 'b' is less likely

2) <> is more expensive than =

3) Can force to use index if SELECT * FROM table WHERE indexed_column > 0

4) UPPER(column) might lose information, use LOWER is better

5) WHERE column = 'WORD' or column = 'word' is always faster than WHERE LOWER(column) = 'word' , even faster version is test if database if case-insensitive: WHERE column = 'WORD' or ('WORD' <> 'word' AND column = 'word')

6) 32bit integer is the fastest datatype for 32bit OS

7) column in (?, ?) is faster than column =? or column = ? for some database, and don't slow in any database

8) For aggregate functions, prevent using having, try to use fewer columns in group by and use subquery if possible

9) In fact, count(1) is not faster than count(*)

10) CAST before aggregate function: SELECT CAST(SUM(column) AS INT) -> SELECT SUM(CAST(column as INT))

11) Use constant as much as possible, e.g.: select * from t1, t2 where t1.c1 = t2.c1 and t1.c1 = 1 -> select * from t1, t2 where t1.c1=1 andn t2.c1=1

12) Information of Join vs Subqueries

13) Information of optimum column type (VARCHAR, TIMESTAMP, WORD size INT and CHAR(1) usually better), shift effect for page

14) prevent NULL for porting issue

15) Low level table physical information

Some related links - http://www.techartifact.com[..]9/12/sql-optimization-tipsquestions.html

16) Prevent database level transaction, prevent joining, prevent locking ( like auto increment key ), pretty good suggestion - http://www.aviransplace.com/2015/08/12/mysql-is-a-great-nosql/

17) Reduce dataset for aggregation - https://www.periscopedata.com[..]-subqueries-to-count-distinct-50x-faster

Few good tips, like avoid cursors - http://www.javaworld.com[..]ent/21-rules-for-faster-sql-queries.html

(google search) (amazon search)


Mon Feb 05 18:14:08 HKT 2018 From /weblog/entertainment

music


Prince - http://list25.com[..]-the-artist-you-knew-as-prince/?view=all

elvis-presley - http://list25.com[..]ting-facts-about-elvis-presley/?view=all

george-michael - http://list25.com[..]-not-know-about-george-michael/?view=all

【傾聽音樂】中世紀音樂是宗教的奴僕,還是高貴的婢女 - https://thestandnews.com[..]%98%E8%B2%B4%E7%9A%84%E5%A9%A2%E5%A5%B3/

不曾用西洋曲式寫流行曲的-創作歌手-朱頂鶴 - https://thestandnews.com/culture/不曾用西洋曲式寫流行曲的-創作歌手-朱頂鶴/

(google search) (amazon search)


Fri Feb 02 10:19:00 HKT 2018 From /weblog/design/interview

wechat


http://www.infoq.com/cn/articles/wechat-video-call

(google search) (amazon search)




Tue Jan 30 14:16:18 HKT 2018 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[..]al-math-tricks-that-will-blow-your-mind/

(google search) (amazon search)


Tue Jan 30 10:03:38 HKT 2018 From /weblog/trip/travelling

Japan


Travler pass - http://www.tokyotopia.com/japan-rail-pass.html

Introduction of http://www.jorudan.co.jp/ http://www.jorudan.co.jp/english/ about how to figure out the public transport at Tokyo - http://digiphoto.techbang.com/posts/3732

遊日別錯過:南阿爾卑斯, 橫跨山梨、長野、靜岡三縣的「南阿爾卑斯山脈」以及和福島縣的「只見」為新的生物圈保護區,其中別名為「赤石山脈」的「南阿爾卑斯山脈」風光如畫,山腳有溫泉景點,吸引不少遊客到此遠足或露營。 - http://hk.apple.nextmedia.com[..]realtime/international/20140617/52582650

【岐阜】二訪世界文化遺產︰白川鄉的初夏極緻 - http://www.dcfever.com/travel/readtravelogue.php?id=36264

平住東京3大文青旅館 $300 有找! - http://www.dcfever.com/travel/deal.php?id=13896&link=guid

日本的絕景秘境 - http://thehousenewsbloggers.net[..]%89%EF%BC%8F%E5%81%87%E6%89%8D%E5%AD%90/ http://thehousenewsbloggers.net[..]%AD%EF%BC%8F%E5%81%87%E6%89%8D%E5%AD%90/

spectacular-railways - http://list25.com[..]railways-you-should-ride-before-you-die/

The “Venice of Japan” in Kyoto: a secret destination tourists don’t know about yet - http://en.rocketnews24.com[..]estination-tourists-dont-know-about-yet/

【日本世界遺產】日本人心中的TOP 10 你都去過了嗎? - http://blog.kkday.com/2016/05/JapanTopTen.html

登上富士山,其實唔難 - http://www.dcfever.com/travel/article.php?id=4072 http://www.fujiyama-navi.jp/ http://tw.mtfuji-cn.com/ http://www.fujisanguide.com[..]/forms/menutop/menutop.aspx?menu_id=1650

夏末東日本之旅(二)、新潟.白山 - http://redefined0307.wixsite.com[..]6%B0%E6%BD%9F%EF%BC%8E%E7%99%BD%E5%B1%B1

The best 50 things to do in Tokyo - https://www.youcouldtravel.com[..]l-blog/the-best-50-things-to-do-in-tokyo

5 Must See Spots in Japan - http://frame.bloglovin.com[..]5862927717&blog=13214417&frame_type=none

National museum of nature and science, Tokyo - http://www.kahaku.go.jp/english/

八丈島 - http://blog.kkday.com/2017/11/Hachijo-jima.html

【夢想之旅】登上日本第一高峯:富士山登山指南
- https://hk.lifestyle.appledaily.com[..]style/realtime/article/20180104/57660736

【東北溫泉】乳頭溫泉鄉 冬天不營業的秘湯
- https://hk.lifestyle.appledaily.com[..]style/realtime/article/20180130/57768751

(google search) (amazon search)


Sat Jan 27 23:43:42 HKT 2018 From /weblog/misc

boardcast


https://medium.freecodecamp.org[..]ar-of-live-coding-on-twitch-41a32e2f41c1

(google search) (amazon search)


Sat Jan 27 10:29:51 HKT 2018 From /weblog/security

TLS


A list of diagrams to show how TLS work

Understanding TLS protocol -- handshaking kickoff - http://blogs.sun.com/xuelei/entry/understanding_tls_protocol_1
Understanding TLS protocol -- connection states - http://blogs.sun.com[..]rstanding_tls_protocol_connection_states
Understanding TLS protocol -- handshaking renew - http://blogs.sun.com[..]rstanding_tls_protocol_handshaking_renew
Understanding TLS protocol -- handshaking resume - http://blogs.sun.com[..]standing_tls_protocol_handshaking_resume

Another reading, about the handshaking for HTTP protocol - http://www.moserware.com[..]/06/first-few-milliseconds-of-https.html

How to get HTTPs working - https://medium.freecodecamp.org[..]nt-environment-in-5-minutes-7af615770eec

(google search) (amazon search)


Thu Jan 25 23:51:57 HKT 2018 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

(google search) (amazon search)


Thu Jan 25 23:41:52 HKT 2018 From /weblog/finance

quant


sources for equity quantitative research - http://quant.stackexchange.com[..]sources-for-equity-quantitative-research http://quantivity.wordpress.com[..]com/2011/03/06/people-of-quant-research/

http://quant.stackexchange.com[..]ive-strategy-development-process/150#150

Homepage of a guy using Haskell for Quant - http://arbitrary.name/index.html

http://traderfeed.blogspot.hk[..]/2014/07/quantitative-resources-for.html

(google search) (amazon search)


Thu Jan 25 23:36:20 HKT 2018 From /weblog/science

pollution


https://motherboard.vice.com[..]e-sailboats-could-scoop-up-ocean-plastic

(google search) (amazon search)


Thu Jan 25 00:36:20 HKT 2018 From /weblog/science/animal

dog


about-search-and-rescue-dogs - http://list25.com[..]arch-and-rescue-dogs-youll-want-to-know/

https://list25.com/25-bizarre-dog-facts-you-need-to-know/

(google search) (amazon search)


Wed Jan 24 15:45:50 HKT 2018 From /weblog/science

misc


http://list25.com[..]phics-that-will-blow-your-mind/?view=all

http://list25.com[..]n-that-actually-occur-on-earth/?view=all

http://list25.com[..]ieved-that-actually-arent-true/?view=all

misconceptions - http://list25.com[..]-everyone-wants-you-to-believe/?view=all

Biology-mysteries - http://list25.com[..]manity-has-not-figured-out-yet/?view=all

Inventions - http://list25.com[..]-that-revolutionized-our-world/?view=all

Water - http://list25.com/25-odd-facts-about-water/?view=all

River - http://list25.com[..]that-you-probably-did-not-know/?view=all

statistics-about-life-and-living - http://list25.com[..]atistics-about-life-and-living/?view=all

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

time - http://list25.com[..]-mess-up-your-biological-clock/?view=all

Gold - http://list25.com[..]gold-that-might-just-amaze-you/?view=all

Colour - http://list25.com[..]lors-that-you-never-saw-coming/?view=all

Richard Feynman - https://thestandnews.com[..]%8C%E4%B8%8D%E7%A2%BA%E5%AE%9A%E6%80%A7/

About palm-oil - http://list25.com[..]g-and-sad-facts-about-palm-oil/?view=all

How name related to face - http://www.zmescience.com/science/persons-name-and-face-matching/

biggest-scientific-discoveries - http://list25.com[..]tific-discoveries-in-history-of-mankind/

weird-science-facts-you-may-not-know - http://list25.com/25-weird-science-facts-you-may-not-know/

Diamond - http://list25.com/25-stunning-diamond-facts-youll-want-to-know/

Why cloud don't fall - http://www.zmescience.com/science/physics/why-clouds-dont-fall

michael-faraday - https://phycat.wordpress.com/2016/12/01/michael-faraday/

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

The LeverAxe uses physics to finally bring splitting wood to the 21st century - http://www.zmescience.com/science/leveraxe-wood-chopping-423534/

If virus alive? http://www.zmescience.com/medicine/are-viruses-alive/

Science of Mona Lisa - https://www.theatlantic.com[..]eonardo-da-vinci-mona-lisa-smile/540636/

https://www.zmescience.com[..]s/hidden-shortage-world-running-low-sand

What’s the difference between diffusion and osmosis - https://www.zmescience.com[..]ence/difference-diffusion-osmosis-043243

http://list25.com/25-strongest-materials-known-to-man/

https://www.zmescience.com/medicine/unbelievable-bacteria-facts

調查:「藍色星期一」最有生產力 - https://dq.yam.com/post.php?id=8645

Sound - https://list25.com/25-randomly-cool-facts-about-sound/

(google search) (amazon search)


Tue Jan 23 00:14:32 HKT 2018 From /weblog/trip

hongkong_food


尋訪香港最好的茶餐廳 - http://cn.wsj.com/big5/20120320/trv080845.asp?source=forward

《米芝蓮港澳2013》 - http://www.ufood.com.hk[..]in2013/index.html?src=edm-ufood-20121219

寫在沙中線通車前幾年,我最喜愛的土瓜灣十間食肆 - http://foodie-smashingpumkins.blogspot.hk[..]ns.blogspot.hk/2015/06/blog-post_13.html

速報:2018米芝蓮星級食店名單 - http://foodie-smashingpumkins.blogspot.hk/2017/11/2018.html

(google search) (amazon search)


Tue Jan 23 00:10:23 HKT 2018 From /weblog/entertainment

movie


http://www.damncoolpictures.com[..]0-actors-who-turned-down-james-bond.html

讓我狠狠想你——王家衛電影的思念與愛情 - http://thehousenews.com[..]%9D%E5%BF%B5%E8%88%87%E6%84%9B%E6%83%85/ http://hypesphere.com/archives/33810

十大最浪漫電影 - http://thehousenews.com[..]A3%E5%B9%B4%E8%8F%AF-%E4%B8%8A%E6%A6%9C/

不按牌理出牌!影史10大即興演出 - http://hypesphere.com/?p=27716

http://www.damncoolpictures.com[..]02/top-10-deadliest-horror-villains.html

歎為觀止的一鏡到底!影史著名12顆長鏡頭畫面 - http://hypesphere.com/?p=29221 http://hypesphere.com/?p=29346

你是動作科幻迷嗎?影史40把知名槍械大集合! - http://hypesphere.com/?p=28705

「我要打十個!」 回顧甄子丹7場精彩武打場面 - http://hypesphere.com/?p=42023

喜劇之外:班史堤勒 - http://hypesphere.com/?p=42406 http://www.hypesphere.com/archives/48096

中土世界的魔法師:彼得傑克森 - http://hypesphere.com/?p=42229

Famous robots - http://hypesphere.com/?p=42483

Robin Williams - http://list25.com[..]-actor-and-comedy-genius-robin-williams/ http://hypesphere.com/?p=35616 http://hypesphere.com/?p=35671 http://www.damncoolpictures.com[..]ilarious-stand-up-comedy-jokes-from.html

鈕承澤 - http://hypesphere.com/?p=35238

Matrix - http://www.damncoolpictures.com[..]hings-you-probably-didnt-know-about.html http://www.inside.com.tw[..]/what-does-an-engineer-see-in-the-matrix http://www.hypesphere.com/archives/66843

http://backtothefuture.wikia.com/wiki/Main_Page

http://marvel.wikia.com/Main_Page

[專題] 從黑澤明的《七武士》淺談剪接在電影發展裡的奧祕 - http://www.hypesphere.com/archives/52080

About Pulp Fiction - http://www.hypesphere.com/archives/57933

Johnny Deep - http://www.hypesphere.com/archives/55863

Inception - http://www.hypesphere.com/archives/55749/3

Evolution of sound in movie - http://www.hypesphere.com/archives/57396

聽到聲就知影!8 首知名角色登場配樂! - http://www.hypesphere.com/archives/57398

[專題] 跟著老師動疵動!十部你不能錯過的歌舞電影 - http://www.hypesphere.com/archives/56366

[專題] 最熟悉的陌生人:六位你一定要認識的電影片頭設計大師 - http://www.hypesphere.com/archives/59498

傑克葛倫霍, Jake Gyllenhaal - http://www.hypesphere.com/archives/60496

About "Back to the future" - http://www.damncoolpictures.com[..]facts-you-probably-never-knew-about.html

Star war fact - http://list25.com[..]s-to-bring-out-your-inner-jedi/?view=all

Alan Rickman - http://list25.com[..]should-know-about-alan-rickman/?view=all

10 個不露骨卻讓人臉紅心跳的床戲- http://www.hypesphere.com/archives/85160

[新聞] 亞洲電影大師之作!釜山國際影展評選出影史最佳亞洲電影前十名 - http://www.hypesphere.com/archives/58312

(google search) (amazon search)