Programming/misc
Google Analytics : 自定特殊統計 tag sample
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
<script>
…….
ga(‘create’, ‘UA-xxxxxxxx-1’, ‘xxxx.com’);
ga(‘send’, ‘pageview’);
ga(‘send’, ‘event’, ‘分類瀏覽數’, ‘xxx’);
ga(‘send’, ‘event’, ‘分類瀏覽數’, ‘yyy’);
ga(‘send’, ‘event’, ‘小計瀏覽數’, ‘zzz’);
</script>
Turn Dropbox into subversion repository storage / 把 Dropbox 拿來做 svn 的儲存空間
steps:
- ENV: Ubuntu server , home directory 下裝好 Dropbox
- 在 dropbox dir tree 下建好 svn 的 repo. tree —–> ex: file:///home/rimmon/Dropbox/SVN
- 用這個 CHECKOUT COMMAND 把 source checkout 出來
svn co file:///home/rimmon/Dropbox/SVN _SRC_IOS - 這樣做好處是 dropbox 的同步機制可以幫忙把檔案 跟 repo. 複製到其他地方去(算是共用/備份)
- maintain source 時 … 需要用 ssh 進去 ubuntu server , 下 svn command
linux 開機時顯示 IP address script
有時需要用 vm 模擬一堆 server 的環境 , 開了 guest vm (linux) , 但是就是要進 console 後才能知道 IP address , 有些麻煩
這個 script 可以幫助一下, 把 該 server 取得的 IP address 顯示在 console 上, 把它寫成一個 bash 或加到 /etc/rc.local 去
IPADD=`/sbin/ifconfig | sed '/Bcast/!d' | awk '{print $2}'| awk '{print $2}' FS=":"` echo " $IPADD" >> /etc/issue
Use subversion on Dropbox steps
這麼一來, 可以用 Dropbox 的地方就可以輕鬆的 check out code 了
svn checkout command
svn co file:///Users/rimmon/Dropbox/SVN
ebay token usage
這邊有個圖, 跟 ebay API 串接時的 token / session id 等動作說明得很清楚
[URL] iPhone programming bookmarks / reference
★ Your First iOS Application
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhone101/Articles/00_Introduction.html
中文 : http://icodeblog.com/category/iphone-programming-tutorials/
★★ iOS Reference Library : http://developer.apple.com/iphone/library/navigation/index.html
iPhone Dev Center : http://developer.apple.com/iphone/index.action
iPhone Human Interface Guidelines : http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/Introduction/Introduction.html
objective-c 的基本認識 , 參考 URL : http://www.otierney.net/objective-c.html.zh-tw.big5
有趣的 iPad iPhone development video 教學 : http://www.rorylewis.com/docs/02_iPad_iPhone/05_iPhoneTutorials.htm
給初接觸 objective-c 的介紹 : http://maciku.blogspot.com/2009/12/iphone-objective-c.html
包裝好給 iPhone 用的 http 元件/framework – ASIHTTPRequest
http://allseeing-i.com/ASIHTTPRequest/
—-
7/31 iPhone dev 課程 outline :
iPhone spec. / Objective-c intro.
intro. xcode / iPhone 開發限制 / 應用軟體架構 / 記憶體管理
first App. – HelloWorld
程式語法 – simple
Interface Builder基本操作
字串與資料結構 / UI Catalog
second App. – Location base App.
upload to real iPhone – use Apple
★ init , copy , retain 要記得 release memory
★ didReceiveMemoryWarning , viewDidUnload 暫時釋放 memmory
★ IBOutlet 引用到的 InterfaceBuilder 元件建議作 release , 但要注意到不要重覆 release
★ InterfaceBuilder : 事件與程式碼配合 – IBAction , 物件關聯 – IBOutlet , Delegate 指定.