HTML5: Simple 3D carousel using canvas with three.js
2013年9月9日 星期一
2013年8月29日 星期四
Create a static library(framework) on ios
Create a static library(framework) on ios
如何在 xcode 上建立自己的 ios framework,
目前有好幾種解法,下列方法是我覺得目前問題最少且最有效率的方式。
如何在 xcode 上建立自己的 ios framework,
目前有好幾種解法,下列方法是我覺得目前問題最少且最有效率的方式。
2013年8月15日 星期四
Switching from bash to zsh on OSX
How to stop a launchd process
osx 啟動服務都是由 launchd 來管理,
開機時會啟動下列目錄內的 plist
/System/Library/LaunchDaemons
/Library/LaunchDaemons
使用者登入後會啟動下列目錄內的 plist
/System/Library/LaunchAgents
/Library/LaunchAgents
~/Library/LaunchAgents
移除某個 service 可以用 launchctl 來控制 launchd
launchctl list
launchctl remove com.google.keystone.user.agent
這種做法重開機後,就失效,
解決辦法直接編輯 plist 加入
<key>Disabled</key>
<true/>
開機時會啟動下列目錄內的 plist
/System/Library/LaunchDaemons
/Library/LaunchDaemons
使用者登入後會啟動下列目錄內的 plist
/System/Library/LaunchAgents
/Library/LaunchAgents
~/Library/LaunchAgents
移除某個 service 可以用 launchctl 來控制 launchd
launchctl list
launchctl remove com.google.keystone.user.agent
這種做法重開機後,就失效,
解決辦法直接編輯 plist 加入
<key>Disabled</key>
<true/>
enjoy it~~
2013年5月3日 星期五
Convert mkv to mp4 for Apple TV
Install ffmpeg and MKVToolNix.
Check mkv tracks info.
mkvinfo -g
Result:
video: H264
audio: dts
subtitle: srt1
subtitle: srt2
Check mkv tracks info.
mkvinfo -g
Result:
video: H264
audio: dts
subtitle: srt1
subtitle: srt2
2013年4月15日 星期一
mp4box: Adding Subtitles to mp4 Movies for Apple TV
2. mp4box -ttxt origin.srt
4. mp4box -add origin.ttxt:hdlr=sbtl:lang=eng -add origin.mp4 output.m4v
enjoy it...:)
2013年4月11日 星期四
FlashDevelop: getDefinitionByName ReferenceError: Error #1065: Variable ... is not defined.
When I was using getDefinitionByName to create dynamic class.
var myClass:Class = getDefinitionByName('Item1') as Class;
I usually got this error:
[Fault] exception, information=ReferenceError: Error #1065: Variable Item1 is not defined.
Fixed: just including complete library
assets.swf -> Add To Library -> Options -> Included library(include completely)
[ref]
http://www.flashdevelop.org/community/viewtopic.php?p=27575
var myClass:Class = getDefinitionByName('Item1') as Class;
I usually got this error:
[Fault] exception, information=ReferenceError: Error #1065: Variable Item1 is not defined.
Fixed: just including complete library
assets.swf -> Add To Library -> Options -> Included library(include completely)
[ref]
http://www.flashdevelop.org/community/viewtopic.php?p=27575
訂閱:
文章 (Atom)
