RSS feed [root] /




login:

password:

title search:




 


Thu Jun 30 11:18:51 HKT 2016



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

Thu Jul 21 19:29:09 HKT 2016 From /weblog/design/distribute

scalability


There are two key primary ways of scaling web applications which is in practice today.
1) “Vertical Scalability” - Adding resource within the same logical unit to increase capacity. An example of this would be to add CPUs to an existing server, or expanding storage by adding hard drive on an existing RAID/SAN storage.
2) “Horizontal Scalability” - Adding multiple logical units of resources and making them work as a single unit. Most clustering solutions, distributed file systems, load-balancers help you with horizontal scalability.

Scalability can be further sub-classified based on the “scalability factor”.
1) If the scalability factor stays constant as you scale. This is called “linear scalability“.
2) But chances are that some components may not scale as well as others. A scalability factor below 1.0 is called “sub-linear scalability“.
3) Though rare, its possible to get better performance (scalability factor) just by adding more components (i/o across multiple disk spindles in a RAID gets better with more spindles). This is called “supra-linear scalability“.
4) If the application is not designed for scalability, its possible that things can actually get worse as it scales. This is called “negative scalability“.

http://www.royans.net/arch/2007/09/22/what-is-scalability/

Report of building web application with 55k pageload with rail - http://shanti.railsblog.com[..]mongrels-handled-a-550k-pageview-digging

XMPP a IM protocol about scalability - http://www.process-one.net[..]icle/the_aol_xmpp_scalability_challenge/

Presentation and resources of making you website more scalable - http://www.scribd.com[..]9/Real-World-Web-Performance-Scalability http://www.theserverside.com[..]lications&asrc=EM_NLN_3990118&uid=703565 http://www.theserverside.com[..]ionsPart2&asrc=EM_NLN_3990119&uid=703565

Brian Zimmer, architect at travel startup Yapta, highlights some worst practices jeopardizing the growth and scalability of a system:
* The Golden Hammer. Forcing a particular technology to work in ways it was not intended is sometimes counter-productive. Using a database to store key-value pairs is one example. Another example is using threads to program for concurrency.
* Resource Abuse. Manage the availability of shared resources because when they fail, by definition, their failure is experienced pervasively rather than in isolation. For example, connection management to the database through a thread pool.
* Big Ball of Mud. Failure to manage dependencies inhibits agility and scalability.
* Everything or Something. In both code and application dependency management, the worst practice is not understanding the relationships and formulating a model to facilitate their management. Failure to enforce diligent control is a contributing scalability inhibiter.
* Forgetting to check the time. To properly scale a system it is imperative to manage the time alloted for requests to be handled.
* Hero Pattern. One popular solution to the operation issue is a Hero who can and often will manage the bulk of the operational needs. For a large system of many components this approach does not scale, yet it is one of the most frequently-deployed solutions.
* Not automating. A system too dependent on human intervention, frequently the result of having a Hero, is dangerously exposed to issues of reproducibility and hit-by-a-bus syndrome.
* Monitoring. Monitoring, like testing, is often one of the first items sacrificed when time is tight.

http://highscalability.com/scalability-worst-practices

Useful Corporate Blogs that Talk About Scalability - http://highscalability.com[..]l-corporate-blogs-talk-about-scalability

Overview of mapreduce and how it compare with other distributed programming model -http://natishalom.typepad.com[..]0/is-mapreduce-going-to-main-stream.html

Paper of data store at amazon http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html

Discuss how haven't sync can cause performance issue - http://www.theserverside.com[..]lications&asrc=EM_NLN_6273194&uid=703565 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6423457

Discussion about Cloud Based Memory Architectures - http://highscalability.com[..]ased-memory-architectures-next-big-thing

http://highscalability.com[..]alability-and-performance-best-practices

Interview with google engineer - http://www.zdnet.co.uk[..]gle-at-scale-everything-breaks-40093061/

Surprisingly youtube is blocking - http://highscalability.com[..]e-scalability-lessons-in-30-minutes.html

If we are seeing a sustained arrival rate of requests, greater than our system is capable of processing, then something has to give. Having the entire system degrade is not the ideal service we want to give our customers. A better approach would be to process transactions at our systems maximum possible throughput rate, while maintaining a good response time, and rejecting requests above this arrival rate. - http://mechanical-sympathy.blogspot.com.au[..]apply-back-pressure-when-overloaded.html

How twitter scaling - http://www.infoq.com/presentations/Twitter-Analytics

How Reddit scaling - http://www.infoq.com/presentations/scaling-reddit

How Hotjar scaling - https://www.hotjar.com[..]-while-scaling-hotjars-tech-architecture

How infiniteDB prevent locking and IO - http://highscalability.com[..]-scalable-relational-database-manag.html

http://highscalability.com[..]ard-way-about-scaling-a-million-use.html http://martin.kleppmann.com[..]2014/03/26/six-things-about-scaling.html

The experiences of various big companies, about network issues - http://aphyr.com/posts/288-the-network-is-reliable

Stackoverflow, scale without cloud - http://highscalability.com[..]nth-25-servers-and-i.html?SSLoginOk=true

(google search) (amazon search)



Mon Jul 18 00:08:29 HKT 2016 From /christianity

eco-religion


http://digital.lib.hkbu.edu.hk/eco-religion/

(google search) (amazon search)



Sat Jul 16 11:23:51 HKT 2016 From /weblog/science

human


psychology-tells-you-about-yourself - http://list25.com[..]ology-tells-you-about-yourself/?view=all

body-hacks-life-is-trying-to-hide-from-you - http://list25.com[..]ife-is-trying-to-hide-from-you/?view=all

causes-dark-circles-eyes-sleeping-people-really-tired - http://www.todayifoundout.com[..]s-sleeping-people-really-tired/?view=all

facts-about-the-human-body-you-may-not-be-aware-of - http://list25.com[..]n-body-you-may-not-be-aware-of/?view=all

blood - http://list25.com[..]you-might-not-know-about-blood/?view=all

misconceptions-about-your-body - http://list25.com[..]bout-your-body-that-arent-true/?view=all

pregnancy - http://list25.com[..]nge-the-way-you-view-pregnancy/?view=all

blindness - http://list25.com[..]you-didnt-know-about-blindness/?view=all

【趣味科普】同理心等於同情心?可以後天鍛鍊嗎? - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20160712/55345201

happen-to-your-body-after-you-die - http://list25.com[..]pen-to-your-body-after-you-die/?view=all

your-body-is-weirder-than-you-think - http://list25.com[..]body-is-weirder-than-you-think/?view=all http://list25.com[..]-that-make-absolutely-no-sense/?view=all

DNA - http://list25.com[..]l-help-you-understand-yourself/?view=all http://list25.com[..]-genetics-and-the-human-genome/?view=all

「人體農場」:聽屍體說話 - http://thestandnews.com[..]%BD%E5%B1%8D%E9%AB%94%E8%AA%AA%E8%A9%B1/ http://thestandnews.com[..]8%82%89%E9%AA%A8%E6%9F%A5-q-a-episode-4/

Lie/Cheat - http://list25.com/25-scientific-facts-about-cheating/?view=all http://list25.com[..]o-know-someone-is-lying-to-you/?view=all

Albinism - http://list25.com/25-facts-about-people-with-albinism/?view=all

人腦越來越小 又關facebook事? - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20160705/55315802

(google search) (amazon search)


Sat Jul 16 11:20:49 HKT 2016 From /weblog/learning

language


How to learn language in 30 days - http://www.fourhourworkweek.com[..]k.com/blog/2009/01/20/learning-language/

http://www.articlesbase.com[..]power-of-daily-positive-words-15115.html

Language make the difference - http://www.chinahush.com[..]shocked-by-chinese-multiplication-table/

crazy-facts-about-languages - http://list25.com/25-crazy-facts-about-languages/?view=all

http://list25.com[..]nguage-fluently-quickly-and-efficiently/

5 tips for learning Mandarin - http://www.chinahush.com[..]-great-advice-from-a-variety-of-experts/

Resource of learning a lot difference languages - http://learn101.org/

(google search) (amazon search)


Wed Jul 13 16:54:33 HKT 2016 From /weblog/unix

reference


A very nice sectioned list of unix command - http://en.wikipedia.org/wiki/List_of_Unix_programs

Backup a list of directories - http://linuxintegrators.com/acoliver/code/?permalink=x-0272.html

A quick reference - http://www.cs.usfca.edu/~parrt/course/601/lectures/unix.util.html

Tuning cheat sheet - http://www.performancewiki.com/linux-tuning.html

Common and difference between systems - http://www.thegeekstuff.com/2012/01/linux-unix-kernel/

BSD for linux user - http://www.over-yonder.net/~fullermd/rants/bsd4linux/01

(google search) (amazon search)


Wed Jul 13 10:39:49 HKT 2016 From /weblog/career

CV


First, don't lie at the CV....

http://discuss.joelonsoftware.com/default.asp?joel.3.357394

Some useful information from the thread:
online learning listing: http://www.n-d-l-a-c.com/pages/1/index.htm
uk university listing: http://www.ucas.com/instit/index.html

The other useful resource of writing CV
http://www.eweek.com/print_article2/0,1217,a=182353,00.asp

Number 1: The overblown objective
Number 2: The poorly executed bluff
Number 3: The mug shot
Number 4: The block party
Number 5: Wallflower skills
http://www.linkive.com[..]/Avoid%20these%20five%20resume%20killers

"Edit your resume so it sounds like you are talking to someone." - http://www.jrothman.com[..]3/four-tips-for-defining-your-value.html

It look like tips for writing cover letter, but maybe good to include in customized CV also - http://jobtipsforgeeks.com/2014/02/10/apply/

How boss spend 6 seconds to read your CV - http://thehousenews.com[..]%A0%E7%9A%84%E5%B1%A5%E6%AD%B7%E8%A1%A8/

https://jobtipsforgeeks.com/2016/07/12/perfectresume/

(google search) (amazon search)


Tue Jul 12 12:02:07 HKT 2016 From /weblog/database/sql

misc


How to do limit resultset correctly - http://blog.jooq.org[..]ination-with-your-in-house-db-framework/

Using function result as table - http://blog.jooq.org[..]7/07/postgresqls-table-valued-functions/

Sample of using pivot - http://blog.jooq.org[..]/are-you-using-sql-pivot-yet-you-should/ and unpivot - http://blog.jooq.org[..]ess-your-coworkers-by-using-sql-unpivot/

Sample of using intersect - http://blog.jooq.org[..]the-underestimated-two-way-in-predicate/

Using temp table, rownum, and CTE - http://javarevisited.blogspot.hk[..]licate-rows-from-table-SQL-database.html

http://www.sohamkamani.com[..]log/2016/07/07/a-beginners-guide-to-sql/

(google search) (amazon search)


Mon Jul 11 14:54:49 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160711-WA0011



(google search) (amazon search)



Tue Jul 05 16:29:21 HKT 2016 From /weblog/java/concurrency

race


http://vmlens.com[..]-or-how-to-find-an-irreproducable-bug-2/
http://vmlens.com[..]-java-race-conditions-with-tests-part-2/

(google search) (amazon search)


Tue Jul 05 15:09:28 HKT 2016 From /weblog/trip

tips


May not really useful

【飲食男女】飛機中伏位|走廊多菌 座位要識揀 - http://hk.apple.nextmedia.com/realtime/magazine/20160705/55314899
【飲食男女】飛機中伏位|摺枱加料 尿片飛機餐 - http://hk.apple.nextmedia.com/realtime/magazine/20160705/55314457
【飲食男女】飛機中伏位|飛機餐陳年生果 小心為上 - http://hk.apple.nextmedia.com/realtime/magazine/20160705/55315428

(google search) (amazon search)


Sat Jul 02 23:40:03 HKT 2016 From /weblog/languages

scala


Prevent NPE from scala - http://gabrielsw.blogspot.com[..]es-virginia-scala-can-save-you-from.html

Map scala function to java - http://blogs.sun.com[..]rarajan/entry/scala_for_java_programmers
Examples to show good points of Scala - http://edouard.decastro.name/notes/view/1608

Var and Val - http://fruzenshtein.com/scala-variables-values/

Pattern in scala - http://www.scala-lang.org[..]d/sites/default/files/FrederikThesis.pdf

(google search) (amazon search)


Thu Jun 30 21:56:43 HKT 2016 From /weblog/computer+science

people


John Von Neumann - http://infoproc.blogspot.com.au[..]012/12/john-von-neumann-documentary.html

Bill Gate - http://www.damncoolpictures.com[..]/interesting-facts-about-bill-gates.html

(google search) (amazon search)


Thu Jun 30 11:30:07 HKT 2016 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

(google search) (amazon search)


Thu Jun 30 11:21:18 HKT 2016 From /weblog/hardware

SSD


Discuss at SDD about performance characteristic and reliablity - http://acmqueue.com/modules.php?name=Content&pa=showpage&pid=548

SSD and Log file system - http://lwn.net/Articles/353411/

http://www.pallab.net[..]ragged-windows-8-optimize-defragment-ssd

http://codecapsule.com[..]rt-1-introduction-and-table-of-contents/

http://blog.cloudera.com[..]uth-about-mapreduce-performance-on-ssds/

设计SSD友好的应用 - http://www.infoq.com/cn/articles/design-ssd-friendly-application

(google search) (amazon search)


Wed Jun 29 09:00:44 HKT 2016 From /weblog/photographic

star


星軌拍攝技巧 數問 -

1).數碼機因hot pixel而唔適合曝得耐...最好分開影影夠幾個鐘...咁每張間隔之間都要俾CMOS斗下氣?
有師兄 教過 分十幾張 每張 10-20min 再合成 好過 一野 暴 幾粒鐘, (菲林 令計)

2).數碼機有D人話用ISO 100、有人話用ISO 400-800好...如果用合成方法...其實係咪都係就番光害而定...定係關雜訊事?
睇天氣 , 小弟 用 o個次 用 iso 100

5).北極星仰角澳門係23度,咁香港一樣??
4季 都唔同 位置, 用星座 搵 會準確 d, e+ 係 冬季, 北極星 位置 係 獵戶座 (lei 個最易 認, 唔會 搵唔倒 ... ) 頭頂 (腰帶 致 頭頂 距離 再過 5倍左右)

附圖 係 舊年 去雲南 香格里拉 時影, 本泥想 長暴, 不過 o個晚 太涷 個人 頂唔順 要收皮 反酒店

http://www.dchome.net/viewthread.php?tid=798154

With a lot of information, 香港的星空 — 觀測及拍攝資訊 - http://www.dcfever.com/column/read.php?id=1829

Herman's articles at dcfever - http://www.dcfever.com/column/info.php?id=185

500px tutorial - http://500px.com/blog/738/tutorial-photograph-the-night-sky

About Comet - http://www.dcfever.com/column/read.php?id=2193

Atmospheric optical phenomena 大氣光學現象 - http://matthew-chin.blogspot.hk[..]16/06/atmospheric-optical-phenomena.html

=====
這張是11月15日凌晨拍攝的M42獵戶座星雲, 大埔的光害較嚴重, 所以要加上IDAS V4濾鏡作長時間曝光, 分三段不同時間曝光及作Layer Masking 處理, 把動態範圍拉闊. 在月光的影下算是滿意, 希望之後可以分數晚作10小時以上的曝光並加長每一張frame 的曝光時間 (現在是5分鐘一張), 使到暗位的表現進一步改善.

Place: Tai Po
Date: 14 Nov, 2013 (UT)
Camera: Canon 20Da
Lens: Canon EF-600 F4L
Mount: Vixen Sphinx with Star Book
Filter: IDAS V4
Exposure: 10 sec x 10, 30 sec x 10, 300sec x 26
ISO: 800
Guiding: Borg 60mm telescope, AIS120MM, PHD guiding.
Image calibration: Dark x 20 (average) for each exposure, Bias x 16 (Median), Dark subtracted Flat field x 20 (Median)
Processing: DSS, PS: layer Mask, Cropped, curve, colour adjusted.

http://forum.hkas.org.hk/viewthread.php?tid=8009
=====

http://list25.com[..]resemble-things-found-on-earth/?view=all

how-to-find-the-milky-way - http://goldpaintphotography.com[..]om/2015/07/24/how-to-find-the-milky-way/

how-to-capture-sharp-star-photographs - http://www.mikkolagerstedt.com[..]10/how-to-capture-sharp-star-photographs

銀河 - 觀測和拍攝 - http://matthew-chin.blogspot.hk/2016/06/blog-post.html

(google search) (amazon search)


Mon Jun 27 14:21:19 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160627-WA0008



(google search) (amazon search)


Sun Jun 26 21:07:19 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160626-WA0013



(google search) (amazon search)


Sun Jun 26 21:07:06 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160626-WA0012



(google search) (amazon search)


Sat Jun 25 07:22:00 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160625-WA0001



(google search) (amazon search)


Sat Jun 25 07:12:15 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160625-WA0000



(google search) (amazon search)


Fri Jun 24 13:13:13 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160624-WA0002



(google search) (amazon search)


Thu Jun 23 21:28:57 HKT 2016 From /gallery/Home/YimKan/whatapp

VID-20160623-WA0005



(google search) (amazon search)