2012年9月27日 星期四

Titanium設定suds 編碼

suds 0.39前版本預設無使用utf - 8的版本

若要使用UTF-8的話

在 xhr.setRequestHeader('Content-Type','text/xml;cahrset=UTF-8'); 加入即可。

titanium降階發佈ios sdk 4.3以下版本

ios6剛出來

xcode也升級到4.5版本 ios sdk到6的版本

使用titanium studio升級之後就無法選擇sdk 4.3版本了

若要使用sdk 4.3版本需要到 titanium studio -> preferences -> Aptana Studio->Titanium

去設定ios SDK Home的路徑,

但會發現無法選擇路徑

需開啟mac的終端機

使用 sudo xcode-select -switch /Developer

(要改回來就下


sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

)  -> for xcode 4.3


會要求輸入root的密碼

若使用者帳戶未設密碼請輸入一個使用者帳號的密碼才可以用sudo指令

此時按下設定後 在titanium內就可以選擇 4.3以下的sdk版本對iphone3來進行模擬測試

reference:
http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Configuring_XCode_inside_Titanium_Studio

2012年9月19日 星期三

推薦Bare Tail小工具

推薦一個好用的小工具

叫做  Bare Tail

幫助我們觀看Log檔的時候,

有即時更新資料不需關閉log檔重開即可立即顯示。

視個非昌方變得小工具

除此之外

在Preferences->Highlighting內可以設定自己想要的格式色彩

讚!


reference:

http://www.baremetalsoft.com/baretail/index.php

http://www.cnblogs.com/greenerycn/archive/2010/07/15/windows_log_viewer_baretail.html

2012年9月2日 星期日

eclipse常用熱鍵


自動排版:ctrl+shift+f
自動完成:alt+/
Debug提示:F2
•自動import:ctrl + shift + o
•add unimplement: ctrl + 1
•註解:ctrl + /
•複製同一行:ctrl + alt + down