山姆的編程實作分享。。。

Sam Blog, Sam Sharing, Sam Studio

2014年8月21日

2014年8月13日

Swift Programming – Resource



Apple Swift 官網 :
https://developer.apple.com/swift/

Apple Swift Blog :
https://developer.apple.com/swift/blog/

Xcode 6 beta version download :
https://developer.apple.com/swift/resources/

Swift presentation, Docs and Sample code :
https://developer.apple.com/swift/resources/

The Swift Programming Language 中文翻譯版本 :
http://tommy60703.gitbooks.io/swift-language-traditional-chinese/



2014年7月17日

2014年7月9日

Learning Cocos2D - Install Cocos2D and make first Cocos2D project


Step1:  Download Cocos2D installer from below link

              http://www.cocos2d-swift.org/get-started

Step2: After installed Cocos2D framework, the Cocos2D template will exist in Xcode.
Press File -> New -> Project.., you will see below figure


Step3: Like iOS first simplest application - Hello World; You can follow step4 - Step7 to create your first Cocos2D application without input any code, just using Cocos2D template.

Step4: Continues Step2, select cocos2d as template then press "Next"

Step5: Input Product/Project Name as you want, here i input CCHelloWorld.

Step6: Select project folder then press "Create", the Cocos2D Hello World project will be created as below


Step7: Press "RUN"

Step8: Below pictures are the Cocos2D Hello World screen shot



2014年6月30日

解決 Chrome 瀏覽器被 Sweet-Page 綁架首頁的方法 (How to remove sweet-page from Chrome)


今天䦕啟Chrome, 發現首頁多個一個 Sweet-Page 首頁, 唉... 又來一個這種綁架爛招...

搜尋&使用多種方法後, 還是無法順利移除討人厭的首頁, 看來是隻 "變形蟲", 網路提供的方法似乎已過時,必須尋找新方向.

經多次嘗試後,發現以下的方法可順利移除.

Step1: 開啓 Chrome, 進入Chrome 的設定頁面, 然後依下圖點選 "設定網頁"


Step2:  點選 "設定網頁" 後, 你應該會看到下面的畫面
              且發現Chrome 的首頁設定並沒有跑掉ㄚ,為何會跑出 sweet-page 首頁?
              不急, 請依圖點選 "使用目前的網頁"




Step3: 嘿嘿, 狐狸尾巴露出來了, 請依圖大膽點選 "X" 把 "sweet-page" 這起始網頁刪除, 然後按確定做儲存


Step4: 關閉Chrome, 然後再重啟Chrome, 這時Chrome應該就不再有Sweet-Page 首頁了!




2014年6月27日

iOS 支援多國語系


iOS App 支援多國語系APIs


  • NSString *NSLocalizedString( NSString *key, NSString *comment );

  • NSString *NSLocalizedStringFromTable( NSString *key, NSString *tableName, NSString *comment );


兩者的差異在於 "NSLocalizedStringFromTable" API 必須指定字串檔案名稱,
而 "NSLocalizedString" API 則必須使用預定的字串檔案名稱 "Localizable.strings"

2014年6月21日

遠端桌面連線 Mac to Ubuntu by VNC ( Remote Desktop Control Mac to Ubuntu )


Ubuntu Side

Step1: Enable desktop sharing at Ubuntu side and setup the password for Desktop sharing connection




Step2: Check Ubuntu IP address, in my test, my IP address of IBM NB is 10.0.1.28



Step3: Ubuntu side is done


iMac Side

Step1: install VNC Viewer for Google Chrome from Chrome store



Step2: after installed, open it then

  1. input IP address of Ubuntu side
  2. input password that you set at Ubuntu step1 




Step3: if everything is correct, you will see the Ubuntu desktop in your iMac  :-)


熱門文章