Install Android Studio on plain new MacOSX Yosemite
Water
|
12/31/2014
|

MacOSX Yosemite doesn't pre-install java, so when you installed Android Studio, you will get error:

mac no java runtime present

So you have to download java JRE (or SDK) from Oracle Website. But this is java 1.8 and Android Studio require java 1.6.

To fix it, you can edit:

/Applications/Android Studio.app/Contents/Info.plist

and change:

<key>JVMVersion</key>
<string>1.6*</s

Continue Reading

CasperJS won't load https page
Water
|
10/20/2014
|

Recently I found that casperJS won't load https page as before, --ignore-ssl-errors flag is already set:

    casperjs --ignore-ssl-errors=yes file.js

It turns out that it caused by the recent SSLv3 vulnerability that SSLv3 transport is disabled in most web server, and phantomJS use SSLv3 by default. To fix it, add one more options:

    casperjs --ignore-ssl-errors=yes --ssl-protocol=tlsv1 file.j

Continue Reading

Hyperlapse from Instagram
Water
|
08/27/2014
|

我好少推介app,尤其是我最憎的 facebook。但今次呢個 app 真係好用,佢就係Hyperlapse from Instagram。

img1

Continue Reading

XtremeMac Tango Bar 開箱文
Water
|
07/19/2014
|

iMac 的 sound card 壞了,有兩個解決方法。1. 花幾千元換 logic board, 2. 加一個外置 sound card (USB)。 於是買了這個 XtremeMac Tango Bar:

  • 內置 USB sound chip
  • USB 供電,即只要插上 USB 線已經可以運作。
  • 外觀不會太難看。

XtremeMac Closeup

Continue Reading

解決 MacOS 不能正常 sleep 的方法
Water
|
07/07/2014
|

有沒有發覺,有時把 MacOSX idle 了一會,它不懂得 sleep? 用 MacBook 可能不會那麼在意,如果用 iMac 回來時發範 iMac 仍然在發熱的確不好受。 通常這問題都是因為執行了某些 app 才會發生,要解決問題,可以在 terminal 上行:

pmset -g assertionslog

system 就會 realtime 顯示 sleep 我狀況:

Assertion status system-wide:
   BackgroundTask                 0
   PreventDiskIdle                0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep

Continue Reading