2014 美津濃香港半馬錦標賽
Water
|
01/13/2014
|

上星期跑了美津濃香港半馬錦標賽。這其實是我的第一個半馬比賽,主要是為了渣打馬拉松作為長課練習的。我之前基本上也只是參加 10km 的 fun run,今次這個比賽的水準相對地高了很多,所以也不期望有很好的成績,正常地發揮便可以了。

Continue Reading

2014美津濃香港半馬拉松錦標賽相片
Water
|
01/08/2014
|
Nginx setting to force PDF file to be downloaded instead of viewing in the browser
Water
|
01/08/2014
|

In nginx, when user click on a PDF link, if you want the file to be downloaded instead of showing directly on the web browser, we have to default the MIME type of the pdf files from application/pdf to application/octet-stream. So you can add the following lines in your nginx settings:

# force pdf files to be downloaded
location ~* (.*\.pdf) {
    types { application/octet-stream .pdf; }
    defa

Continue Reading

PLAY Issue 16: 2013 跑鞋年鑑
Water
|
01/08/2014
|
Prevent brackets.io from using discrete graphics card
Water
|
01/06/2014
|

brackets.io is a brilliant open source code editor by Adobe. The editor is completely written using Javascript. Although sometimes I feel it a little bit slow, it is very powerful as a code editor for web development.

The only thing that annoys me is that the editor will trigger the discrete graphics card on my MacBook Pro Retina that will shorten the battery life of the computer. To solve this

Continue Reading