【upnp】 monitor


目前還是使用 intel 建議的 upnpspy
Intel® Tools for UPnP* Technology
http://software.intel.com/en-us/forums/intel-tools-for-upnp-technology/

參考

  • UPnP Actoin Invoke
    http://qrtt1.blogspot.com/2009/07/upnp-actoin-invoke.html

【Mac】 光碟退出


開機時長按Option,進入開機選單。就可強制退出DVD。

參考

  • Mac - 幾個常用的快捷鍵
    http://chowchow1678.pixnet.net/blog/post/26004544

【SVN】smartGit and smartSvn


SmartGit/Svn http://www.syntevo.com/

方便在mac底下查看更改的地方(因為有時可能不只一個檔案)來決定要將那些檔案 commit/push

  • utf8 setting for smartSvn6.6
    Project/Setting/Text file encoding/ set to UTF8
  • utf8 setting for smartGit
    still no solution

【Eclipse】Plugin: jgit with Github


【環境】

  • Eclipse for windows

【目的】

  • 透過 Eclipse 的 plugin(jgit) 來存取 Github 所提供的服務。

【Pre-requisites】

  • 請先行安裝好 Eclipse for Windows
  • 準備好 Git on Windows
  • 先行註冊好你的 GitHub account(http://github.com/)

【步驟】

  1. Install jGit
    1. Navigate to Help | Install new software
      Press Add
      * Name:Git
      * Location: http://www.jgit.org/update-site
    2. Press Ok
  2. RSA key generation
    1. Download and Install utility - "Git on Windows"
      * Select "Use Git Bash only"
      * http://msysgit.googlecode.com/files/Git-1.6.4-preview20090730.exe
    2. Navigate to Start | Git | GitBash
      * key generation
      $ cd ~/.ssh
      $ ssh-keygen -t rsa -C "your_email@where.com"

      * Press "Enter" to left empty passphrase
      * Press "Enter" again
    3. Copy your key to the ssh fle dirory
      (Skip this step, 如果你的eclipse ssh key檔和 ~/.ssh 是一樣的)
      * for example
      $ cp * ~/ssh
    4. Add your rsa key to github
      * IE讀取 github網頁有點問題,建議用 Mozilla Firefox
      * 可參考 http://help.github.com/msysgit-key-setup/
    5. Restart Eclipse(must)
    6. Debug, 用git帳號探測
      $ ssh git@github.com 
  3. Import Project/Files to Eclipse from GitHub
    1. Navigate to File | Import | Git | Git Repository
      * Press "Next"
    2. Fill in your github information
      * Location git@...
      * Protocal: git+ssh
      * User: git
      Press "Next"
    3. Disable radio button "Import projects after clone"
      Press "Finish"
  4. Create a new project
    1. File | New | Project | General | Project...
    2. 把之前import 的檔案放在Project下
  5. Commit to Local/GitHub
    1. Navigate to Team | share project
    2. 先commit到local
      * Team | Add
      * Team | Commit
    3. commit 到github要用push to
      * Select Project
      * Team | Push to | Next
      * Select "Configured remote repository", Press "Next"
      * Press "Add all branches spec"
      * Press "Finish"
      * 成功的話會有一個 Status Repo
  6. 參考
    1. http://itcontent.blogspot.com/2009/04/windowseclipse-git.html
    2. authfail 參考: http://www.chengyunfeng.com/tag/git
    3. Generating SSH keys (Linux) http://help.github.com/linux-key-setup/

[iSync] 同步 5130c 通訊錄


參考 Nokia 5130 iSync Plugin Snow Leopard
http://willstips.blogspot.com/2009/11/nokia-5130-isync-plugin-snow-leopard.html

該作者已有打包成 pkg 直接下載 Full Version 執行即可安裝
之後透過 isync 即可和 Mac上的通訊錄同步

另外若需三地同步(gmail/imac/5130c)的話, 先將通訊錄的 gmail 同步打勾
(通訊錄/偏好設定/帳號/ 與gmail同步)
這樣就能把gmail/mac/nokia 5130 作一貫化的同步了

[Spy++] Visual Studio Spy++


Ref
  • Visual Studio Tools - Spy++
    http://ys25.blogspot.com/2007/08/visual-studio-tools-spy.html

[HotKey] Win7 hotkey


Ref
  • [快速鍵]Windows 7的快速鍵總整理 http://windows7.cool3c.com/article/9947

【Apple】AirPort express


主要是透過 Airport工具程式 作控制,對小家庭而言功能,以下的功能特別令人欣賞
  • 無線列印,但沒有針對目前常用的事務機作無線掃描。
  • 音樂共享,只需要由 iTunes 選定要輸出的裝置,就能將音樂串流輸出到該裝置。

在 MacOS要設定的話, 可直接由Spotlight叫出AirPort工具程式.


【參考】

【Araxis Merge】Tab key adjustment


  • Tab Key adjustment
    這是之前的同事教的。
    Araxis Merge 有一個比較雞婆的地方是,會把Tab內定設成用來作兩個視窗間的切換,導致在作coding conversion調整的時候會覺得非常不順手,可以使用下列選項來把tab改回原本的功能。由與手邊只有中文版,以中文版作範例。
    • 所有比較/ 忽略在每一行結束字元的相異處 (打勾取消)
    • 檔案比較/ 顯示尾部 CR LF 字元 (打勾)
    • 檔案比較/ 編輯/ 按 Tab鍵為插入字元非切換視窗 (打勾)
      image
  • Filter
    可以用來擋掉一些不想比對的檔案,如龐大的svn的log檔.
    1. 選擇 View/Options/Filter
    2. 新增 Exclude patterns 將 .svn 的 folder 全濾掉
       image

【Google Code】線上版本控制器


Google code http://code.google.com/intl/zh-TW/

【使用】
這邊記一下我常會忘記的東西。

  • 申請方式
    1. 先將網頁連到 http://code.google.com/hosting/ 。 選擇 Create a new project。
      image
    2. 接下來需要的就是填寫專案的名稱與說明。授權方面,如要要其他人(拿你的程式去再製的人)也要開放原始碼的話,可以先選擇GPLv2,填完了之後就選下面的 Create project。
      image
    3. 如果有更需要對此專案做更詳細的說明與進階設定(如增加更多關鍵字讓其他人更容易找到或搭配Google Analytics)的話,就選 Administer。進入之後把該填的填一填。
      image
  • 使用方式
    • 首先連到 Source 這一頁先記一下申請的 Svn server address。如果我沒有誤解的話,上面的是給開發者 check-out 用的,而下面是給其他人/使用者用的。
       image
    • 當然密碼也是必須的。在Google code 裡面的密碼和一般在用的Google密碼是不一樣的。進入下面的截圖中的 googlecode.com password 裡面就是密碼。
      image 
    • Svn checkout 有許多方式,用command-line是最迅速方便的方式。不過在Windows環境,搭配 TortoiseSVN 也是一個方式。以下為此方式說明。 首先在桌面按右鍵選擇 SVN Checkout。
       image
    • 將準備好的 svn server address 填到 URL of repository。按 OK。
       image
    • 這時候桌面就多了跟專案名稱一樣的目錄了。
  • Initial/Commit Document
    • 要寫程式之前,先寫文件勾勒一下專案的用途。
    • 專案最主要的有幾個重點文件。
      • README.TXT 概略說明專案用途。
      • CHANGELOG.TXT/HISTORY.TXT/RELEASENOTE.TXT 更新狀態。
      • INSTALL.TXT 如何安裝。
    • 先在專案目錄新增一個 README.TXT,裡面說明一下專案的用途。
    • 在 README.TXT 使用滑鼠右鍵,選 Add 加入 README.TXT。
      image
    • 接下來就可以用 SVN Commit 將檔案加入。
      image 
    • 可以把Save authentication 打勾。省掉下次還要在輸入的麻煩。
      image
  • Commit Source code
    • 方式和上面類似,這邊只是提醒,如果專案有需要跨平台的話,建議使用下面目錄將source code 分開(如 Qt create 在不同平台,可能會有不同的檔案管理/分類方式)
      • ubuntu: 給 ubuntu/linux 用的
      • win32vc: 給 windows 配合 visual studio用的。
      • macos:給Apple MacOs用的
    • 老實說這種分類方式不是很好,也是目前我比較頭疼的部份。我還在尋找比較好的方式來處理跨平台的source code 管理。如切 branch…
    • 20100611更新: 會有上面的問題是因為我在Windows底下使用VC add-in for Qt,而在Ubuntu是用Qt Creator,目前都改用Qt Creator 之後目前這問題看起來已經不重要了。
  • 網頁維護方式
    • 為了讓大家更了解你所正在做的事,專案網頁上的解說文件也非常重要。
    • Wiki/Issue 寫作方式建議參考別人的專案(可參考 qwit http://code.google.com/p/qwit/)。
  • Source code 維護方式
    • Release/Version tag
  • 其它
    • 只下載所需要目錄之檔案
      • 先由 ls 來查看目前目錄下的檔案
        $ svn ls svn://192.168.0.1/home/svn/z1
        trunk
      • 再透過 co 來抓取檔案
        $ svn co –R vn://192.168.0.1/home/svn/z1/trunk

【參考】

 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com