ADT failed to launch after updating Android SDK
Water
|
03/24/2014
|

Android SDK 22.6

Just trying to update Android Developer Tool(ADT) and Android SDK. After updated Android SDK to 22.6, ADT failed to launch:

Android SDK 22.6

Continue Reading

Block, weakSelf and strongSelf
Water
|
02/26/2014
|

Block is powerful in Objective-C. But there is a very stupid problem called cyclic retention pitfall, that a block locked an object so that the object will never be release.

For example, in the function:

NSBlockOperation *op = [[[NSBlockOperation alloc] init] autorelease];
[ op addExecutionBlock:^ {
    [self doSomething];
    [self doMoreThing];
} ];
[someOperationQueue addOperation:op];

When t

Continue Reading

10400 小米行動電源開箱報告
Water
|
02/21/2014
|

買這個 10400 小米行動電源 唯一原因只是價錢平。以前多數都是買lipo電,主要是因為比較輕身和安全,但 5000mAH 容量的也要幾百。近年大陸就大量用回 18650 電芯的尿袋,因為成本平很多,於是你會看到10000mAH的尿袋也只要百多元,

18650 其實即是鋰電的筆芯電版,原本經常用於要用充電的器材如遙控模型和電筒。兩種電比較:

18650電:

  • 易走電
  • 充電次數比較少

LiPo電:

  • 比18650發熱比較少,也比較安全(爆炸機會少一點)

所以,理論上 LiPo 電是完勝18650電的,但當加入價錢因數,18650的尿袋就變得很有競爭力。順帶一提雖然 18650 都是同一個大小,但是不同牌子和.型號容量會有很大差別。 而這粒小米電聲稱用了4粒 2600mAH 的 LG/三星 18650,老實講以HK$89價錢去淘寶買四粒電芯也不是太可能。

用後感:

  • 鋁殼感覺不

Continue Reading

香港渣打馬拉松 2014 相片收集區
Water
|
02/17/2014
|
HD quality of YouTube vs Vimeo
Water
|
02/09/2014
|

Testing uploading a 1080p video clip from GoPro to two famous video sites, YouTube and Vimeo.

Although YouTube supports both 720p and 1080p, but the HD video quality is unacceptable. It is due to YouTube's bitrate is limited to 3Mbps for 720p and 6Mbps for 1080p. If you upload a high bitrate video, YouTube will re-encode for you and the result is very bad. So if you are going to use YouTube for

Continue Reading