2012年3月31日 星期六

OSX Lion 裝載 ext2/ext3 格式磁碟

根據這篇:
http://techiezone.rottigni.net/2012/01/ext2ext3-support-on-mac-os-x-lion/

安裝 OSXFUSE :
http://osxfuse.github.com/

安裝時,要勾選最後一項 MacFUSE相容層 。

2012年1月8日 星期日

Aptana 安裝 JDT 跟 Processing

根據:
  1. https://aptanastudio.tenderapp.com/discussions/problems/2426-aptana-and-ant 
  2. http://code.google.com/p/proclipsing/wiki/GettingStarted
  3. http://processing.org/tutorials/eclipse/
安裝 JDT
  1. Help 選單選 Install New Software... 
  2. 按 Add 鈕,加入 http://download.eclipse.org/releases/helios/ http://download.eclipse.org/releases/indigo (Aptana 3.4 為 Eclipse indigo)
  3. Work with 選 http://download.eclipse.org/releases/helios/ http://download.eclipse.org/releases/indigo 
  4. Programming Languages 下勾選 Eclipse Java Develpment Tools 
  5. 按下 Finish 開始安裝 JDT ~ 
安裝 Proclipsing
  1. 回到步驟2. ,Name 輸入 proclipsing,Location 加入
    http://proclipsing.googlecode.com/svn/tags/current_releases/proclipsingSite/然後按下 OK
  2. 勾選 core 與 export ,按 Next> 開始安裝~
安裝 Processing Plug-In (http://wiki.processing.org/w/Eclipse_Plug_In)
  1. 回到步驟2. 加入 http://eclipse.processing.org/plugin/site.xml 
    https://raw.github.com/processing/processing-eclipse/master/processing.plugin.updateSite/site.xml
  2. 勾選 Processing Plug-In for Eclipse 
  3. 按下 Finish 開始安裝 ~
http://web.archive.org/web/20120118072336/http://www.creativecoding.org/en/beyond/p5/eclipse_as_editor

2011年12月25日 星期日

PHPUnit 與 Selenium 整合

PHPUnit 與 selenium 整合,必須先用 pear 下載 phpunit/PHPUnit_Selenium 套件,否則無法連動。
  1. 切換到MAMP 2.0的/bin/php/php5.3.6/bin檔案夾,用pear下載 phpunit/PHPUnit_Selenium :
    cd /Applications/MAMP/bin/php/php5.3.6/bin
    sudo ./pear install phpunit/PHPUnit_Selenium
    Password:
  2. 輸入管理員密碼後,會自動安裝好 phpunit/PHPUnit_Selenium 套件:
    downloading PHPUnit_Selenium-1.1.3.tgz ...
    Starting to download PHPUnit_Selenium-1.1.3.tgz (17,425 bytes)
    ......done: 17,425 bytes
    install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.1.3
  3. 從http://seleniumhq.org/download/網站下載Selenium RC Server。目前是2.15.0版。解壓縮後,會得到 selenium-server-standalone-2.15.0.jar ,將檔案移到任何目錄都可以,例如 ~/Applications
  4. 打開終端機(不要用Aptana的Terminal),切換到 ~/Applications ,然後用Java執行:
    cd ~/Applications
    java -jar selenium-server-standalone-2.15.0.jar
    
  5. Selenium RC Server執行後,終端機會出現以下提示。
    2011/12/25 ?W?? 09:17:17 org.openqa.grid.selenium.GridLauncher main
    ??T: Launching a standalone server
    09:17:22.613 INFO - Java: Apple Inc. 20.4-b02-402
    09:17:22.615 INFO - OS: Mac OS X 10.7.2 x86_64
    09:17:22.626 INFO - v2.15.0, with Core v2.15.0. Built from revision 15105
    09:17:22.827 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
    09:17:22.828 INFO - Version Jetty/5.1.x
    09:17:22.828 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
    09:17:22.829 INFO - Started HttpContext[/selenium-server,/selenium-server]
    09:17:22.829 INFO - Started HttpContext[/,/]
    09:17:22.874 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@13f6ba0f
    09:17:22.875 INFO - Started HttpContext[/wd,/wd]
    09:17:22.884 INFO - Started SocketListener on 0.0.0.0:4444
    09:17:22.884 INFO - Started org.openqa.jetty.jetty.Server@4ee1d5ea
    
  6. 關閉終端機視窗就可以結束Selenium RC Server