RSS feed [root] /




login:

password:

title search:




 


Wed Apr 15 10:18:54 HKT 2020



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

Fri Sep 06 20:59:19 HKT 2019 From /weblog/misc

document


How to write good user guide? http://headrush.typepad.com[..]onate_users/2007/03/the_best_user_t.html

Ron Jeffries' opinions of documentation in XP - http://xprogramming.com/xpmag/Ferlazzo.htm

http://www.jankoatwarpspeed.com[..]s-for-writing-an-effective-tutorial.aspx

https://herbertograca.com[..]/08/12/documenting-software-architecture

(google search) (amazon search)


Fri Sep 06 20:56:50 HKT 2019 From /weblog/misc

regex


Short tips of regex - http://immike.net[..]know-to-become-a-regular-expression-pro/

Let regex more readable - http://martinfowler.com/bliki/ComposedRegex.html

Useful Regular regression

Match username - /^[a-zA-Z0-9_]{3,16}$/
Matching an XHTML/XML tag - {]*>(.*?)}
Matching an XHTML/XML tag with a certain attribute value (e.g. class or tag) - {]*attribute\\s*=\\s*(["'])value\\\\1[^>]*>(.*?)}
Matching a URL - (a very long one... refer to article...)

http://immike.net[..]ssions-every-web-programmer-should-know/

The danger of bad regex - http://andreas.haufler.info[..]o-kill-java-with-regular-expression.html http://www.regular-expressions.info/catastrophic.html http://vladmihalcea.com/2014/02/24/the-regex-that-broke-a-server/

You have a string “BEFOREAFTER”. If this string has a ‘x’ in it, you want to capture everything before the ‘x’, else you want to capture the whole string. So,
”BEFOREAFTER” gives “BEFOREAFTER”
”BEFORExAFTER” gives “BEFORE”
http://octodecillion.com[..]apture-with-optional-delimeter/#solution

http://www.infoq.com[..]/regular-expressions-introduction-part01

https://www.guru99.com/linux-regular-expressions.html

https://www.janmeppe.com/blog/regex-for-noobs/

(google search) (amazon search)


Fri Sep 06 20:54:59 HKT 2019 From /weblog/design/examples

Serialization


What serialization is bad - http://cr.openjdk.java.net/~briangoetz/amber/serialization.html

(google search) (amazon search)


Tue Sep 03 22:11:35 HKT 2019 From /weblog/health

skin


https://www.webmd.com[..]treatments/ss/slideshow-scalp-conditions

Aloe - https://www.webmd.com[..]reatments/ss/slideshow-aloe-uses-dangers

(google search) (amazon search)


Sun Sep 01 21:11:09 HKT 2019 From /weblog/trip/travelling

Indonesia


遊記分享 - 詩巴丹神山十二日瘋狂之旅 (更新左最美的神山16/3) - http://go2nature.net[..]t=0&sid=af04440b821a247a2384f9f4e5ec15e1

http://martinfowler.com/bliki/Saba.htmlReally need to go this place once - http://thenatureoftheworlds.blogspot.hk[..]2/pangrango-national-park-indonesia.html

Really need to go this place once - http://thenatureoftheworlds.blogspot.hk[..]2/pangrango-national-park-indonesia.html

【印尼】峇里島十大必去景點和體驗 - http://blog.kkday.com/2016/11/Bali10mustdo.html

http://www.travelettes.net/hidden-paradise-in-indonesia/

【隱世天堂推介】吉利群島海天一色 峇里都要企埋一邊 - https://hk.lifestyle.appledaily.com[..]style/realtime/article/20190829/59983709

(google search) (amazon search)


Thu Aug 22 08:00:00 HKT 2019 From /weblog/software_engineering/testing

antipattern


The evil test:

1. Evil tests create a lock on how the code is implemented.
2. Cause duplication.
3. Builds uncertainty on the tests (red is meaningless).
4. Decrease productivity.
5. Discourage change.

http://www.makinggoodsoftware.com/2012/01/27/the-evil-unit-test

use thread in junit - http://softwareintegrityblog.com[..]blog/2007/11/05/false-positives-in-junit

Don't try to test everything - http://www.nearinfinity.com[..]ay?entry=unit_testing_avoiding_extremism

Why TDD fail? Because test is too complicate to write - http://agile.dzone.com/news/why-you-fail-tdd ( I agree it a lot )

Hard to test something? Unreadable tests? Slow running tests? It takes too long to write a test? Some solution suggested - http://www.stephenchu.com[..]/last-d-in-tdd-means-more-than-just.html

Comment out test so that the code compile - http://martinfowler.com/bliki/TestCancer.html

A list of TDD antipattern - http://blog.james-carr.org/?p=44 http://www.exubero.com/junit/antipatterns.html

And the long discussion using random in unittest - http://tech.groups.yahoo.com[..]rivendevelopment/message/20458?var=1&l=1
Here is an example of using random in unittest, it actually same for every new instance! - http://www.skizz.biz/archives/000568.html

Test abstraction smells - http://agileinaflash.blogspot.com[..]com/2011/11/test-abstraction-smells.html

Basically, we should keep it simple, and driven the development rather than post test - http://blogs.telerik.com[..]stteam/Posts/13-01-24/top-5-tdd-mistakes

A good list of anti-pattern - https://techblog.betclicgroup.com[..]2014/05/06/getting-unit-testing-to-fail/
Test rely on shell script return is difficult to maintain, say the script running at background can cause problem - http://stuartmarks.wordpress.com[..]m/2014/01/10/another-shell-test-pitfall/

Six Things That Go Wrong With Discussions About Testing - http://www.satisfice.com/blog/archives/1728

https://codurance.com/2019/08/21/seven-testing-sins/

(google search) (amazon search)


Wed Aug 21 21:47:54 HKT 2019 From /weblog/health

legs


Slideshow: Knee Exercises - http://www.webmd.com[..]nt/knee-pain/ss/slideshow-knee-exercises

knee-pain-dos-and-donts - https://www.webmd.com[..]gement/knee-pain/knee-pain-dos-and-donts

換關節要三思(一) - http://www.yimho.com/1546.html

半月板 - http://cn.wsj.com/big5/20120412/hea080241.asp?source=rss

*簡單的說:** **就是《氣血不通、不活絡順暢、阻塞了**....**》** *

*《就像都市裡的下水道、使用久了、淤塞了、 不通了。》*

*所以要保健膝蓋、就是要活絡這個部位的氣血**..*

*每天只要**10**分鐘、就能保健您的膝蓋:*

*1.**使用手掌拍打膝蓋的外側、內側各**2**分鐘。*

*? q這樣子就可以活絡腳上外側的膽經、胃經、以及內側的脾經、肝經、腎經〉。*

*2.**再來、拍打後膝窩的部位** 2**分鐘、〈活絡膀胱經〉。*

*3.**再搓揉膝蓋** 2 **分鐘。** **最後:跪膝** 2**分鐘。*

*貼心叮嚀** :*

*1.**一定要每天做、運動之前要先做、如果不方便做跪膝動作、那麼就拍打後膝窩**4**分鐘。*

*2.**千萬千萬不要跑步**....**有了年紀、跑步是最傷害膝蓋無知的動作、可以改用:快走的活動。*

*3.**登**山活動可以參加、但是下坡時、一定要以《整個腳板著地踩下的姿勢來走下坡路》** *

*千萬不能以腳尖先著地的踩下姿勢走下坡路段、這樣的走法、全身的重量經由腳尖全部卡在膝蓋上**!!*

*也就是說:你是以膝蓋來支撐下坡時全身的重量。*

http://www.wretch.cc/blog/Alfiefie/33329875




10個令腿粗的原因:

10步骤让大粗腿立刻变细腿

腿粗原因

 1。飯後經常坐

 2。喜歡翹腳

 3。不喜歡做運動或討厭走路的人

4。站一整天后沒有適時按摩小腿

 5。每天用淋浴洗澡

 6。愛喝凍飲

7。常穿不合腳的鞋走路

 8。喜歡吃濃味食物

9。站姿不正確,例如側重一邊

10。有便秘困擾

這是糾正你的壞習慣的好方法!

10步骤让大粗腿立刻变细腿

糾正你的壞習慣

1。良好的生活習慣是基礎,更搭配合理的早餐,能讓你一天都精神充沛,幹勁十足。

2。踝關節,膝關節,股關節都要用力才是正確的走路方法,這也是打造美腿的關鍵了。

3。在搭乘電車時,正好可以為肌肉做牽拉運動,堅持一段時間後,就能出現明顯的效果了

4。有效的散步,這是最簡單有效的燃脂有氧運動了,要點是:首先走姿一定要正確,其次時間要長。

5。保持正確的坐姿,雙腿靠攏,背部挺直,養成良好的習慣後,慢慢你就會發現這樣坐姿會令身資變得更加挺拔。

6。伸展運動,長久坐或站時,要適時地伸展一下肢體,讓肌肉和關節放鬆一下,對美體很有功效哦!

7。每天舒適的泡澡,每日泡澡非常有益健康哦。這樣不僅可以消除疲勞,還能加速新陳代謝,起到減肥功效。

 8。腿部的按摩,另外告訴你一個小貼示:在泡過澡後進行腿部按摩可以消除浮腫,而且會事半功倍哦!

http://forward.hkwebs.net/archives/7345

Leg issue can affect other parts of body, choose fit shoes - http://cn.wsj.com/big5/20130930/hea074555.asp?source=rss

膝蓋能預報天氣? - http://cn.wsj.com/big5/20131029/hea074911.asp?source=rss

(google search) (amazon search)


Thu Aug 08 21:01:58 HKT 2019 From /weblog/health/food

oil


http://www.mr-sport.com.tw/post/oil.html

https://www.zmescience.com[..]ealthiest-oils-to-cook-with-an-explainer

(google search) (amazon search)


Tue Aug 06 09:53:05 HKT 2019 From /weblog/love

relationship


https://getpocket.com[..]t-great-listeners-actually-do-1350613081

http://www.bbc.com[..]05-the-benefits-of-being-blinded-by-love

(google search) (amazon search)



Tue Jul 23 13:26:02 HKT 2019 From /weblog/google

how google work


http://www.googleguide.com/google_works.html

search hint - http://www.google.com/help/refinesearch.html

insights-into-the-world-of-the-google - http://list25.com[..]hts-into-the-world-of-the-google-empire/

google-maps-101-how-we-map-world - https://www.blog.google[..]s/maps/google-maps-101-how-we-map-world/

(google search) (amazon search)


Thu Jul 04 21:40:40 HKT 2019 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

Classic movies - https://archive.org[..]d%5B%5D=collection%3A%22feature_films%22

(google search) (amazon search)




Thu Jul 04 20:55:41 HKT 2019 From /weblog/java/features

java12


https://www.azul.com/39-new-features-and-apis-in-jdk-12/

(google search) (amazon search)


Wed Jul 03 21:01:06 HKT 2019 From /weblog/google/development

misc


Google + API - http://developers.google.com/

google sso - http://dystopics.dump.be[..]es-of-x-google-token-and-why-it-matters/

google ajax server api - http://blogs.cocoondev.org/dims/archives/004722.html

Tips of google chat api - http://www.diegoparrilla.com[..]g-google-chart-api-from-server-side.html http://googlemapsapi.blogspot.com[..]ing-chart-api-in-kml-for-quick-data.html


String s = URLEncoder.encode("Há tantos burros mandando em homens de inteligência, que, às vezes, fico pensando que a burrice é uma Ciência", "UTF-8");
URL url = new URL("http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q="+s);
JSONObject obj = (JSONObject) ((JSONObject)JSONValue.parse(url.getContentAsString())).get("responseData");
System.out.println(obj.get("language"));
System.out.println(obj.get("confidence"));

- http://blog.furiousbob.com[..]2009/07/06/automatic-language-detection/

http://blog.0x1fff.com[..]oogle-open-source-projects-that-you.html

Google cloud platform - https://cloud.google.com/products/compute-engine/

Google JSON library articles - http://blog.ajduke.in/tag/gson/

AI api - https://cloud.google.com/products/machine-learning/

GRPC - http://www.infoq.com/cn/articles/tidb-and-grpc https://www.alluxio.io[..]rift-to-grpc-a-perspective-from-alluxio/

Getting fix password for APP - https://myaccount.google.com/apppasswords

(google search) (amazon search)


Tue Jul 02 21:44:37 HKT 2019 From /weblog/photographic

From forums


Collections of nice photos

http://www.pbase.com/anguslau/taiwan0806&view=slideshow
http://www.trekearth.com/gallery/Asia/China
http://www.visualgui.com/motion/BonjourVietnam.html
http://www.visualgui.com/motion.php
http://www.dchome.net/viewthread.php?tid=377324
http://www.dickyleung.com/flashbook/hkimpression/
http://flickr.com/photos/jamesjordan

http://www.fotop.net/Henrylam/hiker13
http://www.dchome.net/viewthread.php?tid=421137
http://www.dchome.net/viewthread.php?tid=421235
http://www.dchome.net/viewthread.php?tid=421054
http://www.dchome.net/viewthread.php?tid=421053
http://www.dchome.net/viewthread.php?tid=429187&extra=page%3D1
http://www.dchome.net/viewthread.php?tid=450617

http://www.dchome.net/viewthread.php?tid=421060
http://www.fotop.net/ultraman/tibet2007
http://www.dchome.net/viewthread.php?tid=401226
http://www.fotop.net/jeffreystranger/landscape
http://www.dchome.net/viewthread.php?tid=344697&extra=page%3D1
http://www.fotop.net/me02ymt/Shan
http://outdoors.webshots.com/slideshow/90463005sfOFNo
http://hk.myblog.yahoo.com/Aseries-benedictng
http://www.fotop.net/shun/shun01
http://www.fotogb.com/albertintravel
http://www.dchome.net/viewthread.php?tid=303006
http://spthk.com/viewtopic.php?p=43234#43234
http://s6.photobucket.com[..]bums/y246/photosilicone/Xinjiang%202007/
http://dcfever.com/photosharing/viewphoto.php?photoID=468764

http://www.dchome.net/viewthread.php?tid=416472
http://www.dchome.net/viewthread.php?tid=417941&extra=page%3D1
http://www.dchome.net/viewthread.php?tid=416594
http://www.xanga.com/kyfung01/617618639/item.html
http://ed-merks.blogspot.com[..]/world-reflected-in-eyes-of-another.html
http://www.fotop.net/QA/xinjiangjuly07
http://www.dchome.net/viewthread.php?tid=401303
http://www.dchome.net/viewthread.php?tid=401442
http://www.dchome.net/viewthread.php?tid=401458
http://www.dchome.net/viewthread.php?tid=401160
http://www.dchome.net/viewthread.php?tid=400597
http://www.dchome.net/viewthread.php?tid=400984
http://www.dchome.net/viewthread.php?tid=400361
http://www.dchome.net/viewthread.php?tid=400213
http://www.dchome.net/viewthread.php?tid=397653
http://www.dchome.net/viewthread.php?tid=392074
http://www.dchome.net/viewthread.php?tid=391521
http://www.dchome.net/viewthread.php?tid=390465
http://www.dchome.net/viewthread.php?tid=376305
http://www.dchome.net/viewthread.php?tid=374762
http://www.dchome.net/viewthread.php?tid=374288
http://www.dchome.net/viewthread.php?tid=332046
http://www.dchome.net/viewthread.php?tid=332022
http://www.dchome.net/viewthread.php?tid=233654
http://www.dchome.net/viewthread.php?tid=326195
http://www.dchome.net/viewthread.php?tid=326115
http://www.dchome.net/viewthread.php?tid=325154
http://www.dchome.net/viewthread.php?tid=324284
http://www.dchome.net/viewthread.php?tid=321401
http://www.dchome.net/viewthread.php?tid=290738
http://www.dchome.net/viewthread.php?tid=290866
http://www.dchome.net/viewthread.php?tid=291548
http://www.dchome.net/viewthread.php?tid=291542
http://www.dchome.net/viewthread.php?tid=301880
http://www.dchome.net/viewthread.php?tid=302046
http://www.hkwildlife.net/viewthread.php?tid=7515&highlight=
http://www.fotoc.com/studio/dado/macau/welovemacau/
http://blog.yam.com/wugu9999/article/5920813
http://www.flickr.com/photos/bocavermelha/
http://www.dchome.net/viewthread.php?tid=759614

(google search) (amazon search)


Sat Jun 22 09:23:22 HKT 2019 From /weblog/design

microservice


The Hidden Dividends of Microservices - http://queue.acm.org/detail.cfm?ref=rss&id=2956643

Best practices - http://www.infoq.com[..]constructing-micro-service-system-part03

http://basho.com/posts/technical/microservices-please-dont/

Compare using library / service - http://blog.jessitron.com/2017/01/dependencies.html http://www.infoq.com[..]cy-management-whether-library-or-service

What We Got Wrong: Lessons from the Birth of Microservices - https://www.infoq.com/presentations/google-microservices/ https://www.infoq.cn/article/L*bT1UfuVoj1I6NRNM3U

(google search) (amazon search)


Tue Jun 18 08:30:03 HKT 2019 From /weblog/entertainment

drama


六四舞台莊梅岩:我們不能不做,香港人不會習慣那種沒自由的生活方 - https://theinitium.com/article/20190602-hongkong-6430-stage64/

(google search) (amazon search)


Mon Jun 17 08:30:14 HKT 2019 From /weblog/database/sql

join


http://www.codeproject.com[..]33052/Visual-Representation-of-SQL-Joins http://nosql.mypopescu.com/post/51770099382/sql-joins-visualized

With IN and subquery / or "top" like keywords - http://javarevisited.blogspot.com.au[..]econd-highest-or-maximum-salary-sql.html

Top 5 Online Courses to Learn SQL and Database for Beginners - Best of Lot
- https://dev.to[..]-database-for-beginners-best-of-lot-5533

(google search) (amazon search)


Sat Jun 15 22:04:26 HKT 2019 From /weblog/trip

story


大雪過後,歸來的人 - https://theinitium.com[..]814-international-survival-47days-liang/ https://theinitium.com[..]815-international-survival-47days-liang/ https://theinitium.com[..]816-international-survival-47days-liang/

【果籽人話】跑得仲快過選手!山跑攝影師跑勻世界名山「最美是香港」 - https://hk.lifestyle.appledaily.com[..]style/realtime/article/20190527/59637748

https://getpocket.com[..]e-are-the-most-secluded-hikes-in-the-u-s

(google search) (amazon search)


Wed Jun 12 07:45:55 HKT 2019 From /weblog/misc

construction


http://www.bbc.com[..]o-build-something-that-lasts-10000-years

(google search) (amazon search)


Mon Jun 10 20:13:52 HKT 2019 From /weblog/java/fundamental

string


Substring no longer just change offset - http://www.javaadvent.com[..]hanges-to-stringsubstring-in-java-7.html

https://cl4es.github.io/2019/05/14/String-Concat-Redux.html

(google search) (amazon search)


Fri Jun 07 22:10:25 HKT 2019 From /weblog/science

water


The temperature-driven change in the mobility of water molecules on the surface perfectly matches how ice’s friction coefficient changes with temperature — the more mobility at the surface, the lower the friction. - https://www.zmescience.com/science/ice-slippery-h-bonds-8731058/

“As the physicist Richard Feynman predicted, the solution was not to be found in new equations, but rather within the equation that was already available to us,” explained Tobias Schneider, author of the new study. “Until now, researchers didn’t have powerful enough mathematical tools to verify this.”- https://www.zmescience.com[..]ws-science/turbulent-fluid-flow-28052019

(google search) (amazon search)