2011年10月27日

[轉] Useful Eclipse Plugins

http://tonychou.posterous.com/useful-eclipse-plugins

很棒的 tutorial & sample code 網站

包含 Java / Android / C# / C++ / …
陸續更新
大陸很多blog或論壇都有很豐富的資料唷,不過不見得有RSS,只能用Google大神了

Android / Java
Python
  • http://wiki.pastwind.org/home/python-cheng-shi-yu-yan

C# Design pattern:
  • http://www.dotnetfunda.com/articles/article889-design-pattern-implementation-using-csharp.aspx
  • http://www.dofactory.com/Patterns/Patterns.aspx
  • http://dotnetframework.blogspot.com/2005/03/c23design-pattern.html
  • http://en.csharp-online.net/CSharp_Design_Patterns_Made_Simple

2011年10月21日

[轉] Android Browser Testing with Selenium

雖然有 Robotium,但是這位部落客寫的 Selenium 方法也算是一絕
特別留念

另外 Selenium 已經更新成 WebDriver 版本了 (2.0)
所以也可以直接測 Android devices
可以參考這個 Youtube: http://www.youtube.com/watch?v=IUUcEIfkOEY

Android screencast and capture / Android 螢幕錄製與抓圖

Some need ROOT privilege

1. On Android phone:
  • Drocap2
  • Screen capture
  • Screen capture shortcut free
  • Screencast
  • Screenshot
  • WebPage snapshot
  • (Remote control...)

2. On PC:
  • ASM (Android Screen Monitor)
  • droidAtScreen-0.5.1.jar
  • AndroidScreenCapureSetup.v1.1.exe
  • QTADB
  • androidscreencast.jnlp
  • MyPhoneExplorer_Setup_1.8.2.exe
  • (Remote control...)
  • DDMS

2011年10月20日

[轉] GUI Programming in Python

http://wiki.python.org/moin/GuiProgramming
http://www.oschina.net/project/tag/178/gui?lang=25&sort=view
http://pyclassroom.appspot.com/2009/06/20/python-gui.html
http://pydev.sourceforge.net/updates/


2011年10月19日

[轉] Google Chrome browser 的 12 個有用命令

http://blog.netoearth.com/html/201110/%E7%94%A8%E5%A5%BD%E8%B0%B7%E6%AD%8C%E6%B5%8F%E8%A7%88%E5%99%A8%E7%9A%8412%E4%B8%AA%E6%9C%89%E7%94%A8%E5%91%BD%E4%BB%A4.htm

2011年10月13日

[轉] iThome 好文章 - 私有雲實踐術

http://www.ithome.com.tw/itadm/article.php?c=67822

2011年10月12日

Powershell IDE

PowerShellIDE
PowerGUI
Powershell Plus
ISE
SAPIEN PrimalScript
PowerShell Analyzer
Admin Script Editor
PowerWF Studio
Graphical PowerShell

2011年10月11日

[轉] 網站建置不是件簡單的事 @ 打造網站的步驟

http://blog.miniasp.com/post/2011/09/28/Building-Website-is-not-that-easy-the-SOP.aspx

[轉] 山道具屋-戶外登山服飾倉庫成立

http://www.ptt.cc/bbs/outdoorgear/M.1317624129.A.4D4.html

2011年10月7日

[轉] 利用 WebMatrix 打造低成本高效益的完美網站 (簡報檔下載)

http://blog.miniasp.com/post/2011/05/13/Using-Microsoft-WebMatrix-build-low-cost-high-value-websites.aspx

2011年10月5日

Android CTS run a singple test case / Android CTS 只執行單一或特定 test case

Android CTS 測試案例的階層: PlanName(Plans) -> Package -> TestCaseName(Test cases)

# Plans 的位置
$CTS_ROOT/repository/plans/xxx.xml

# Test name 的位置
$CTS_ROOT/repository/testcases/xxx.xml

# 顯示所有 plans
cts_host > ls --plan

# 顯示所有 Packages
cts_host > ls -p

# 顯示 Performance plan 的 Packages 與子 Packages。與 repository/plans/Performance.xml 對應
cts_host > ls --plan Performance
cts_host > ls -p android.performance
cts_host > ls -p android.performance2

# 執行全部 plans
cts_host > start --plan CTS

# 執行特定 plan, 例如 Java
cts_host > start --plan Java

# 執行特定 plan 中特定的 Package。Package 的資訊可以從 repository/plans/xxx.xml 中取得
cts_host > start --plan Performance -p android.performance4

# 執行特定 plan 中特定的 Package 中特定的 test case。
# -p android.app => 可以從 ls --plan Android 中取得
# -t android.app.cts.AlertDialogTest#testAlertDialog。
# 其中 andorid.app.cts 對應到 testcases 裡面 xxx.xml 裡的 TestSuite name
# 其中 AlertDialogTest 對應到 xxx.xml 裡的 TestCase name
# 其中 testAlertDialog 對應到 xxx.xml 裡的 Test name
cts_host > start --plan Android -p android.app -t android.app.cts.AlertDialogTest#testAlertDialog

# 透過 Instrumentation 方式執行。一樣可對應到 CTS 中 Packet / Test case 的名稱
$ adb shell pm list instrumentation         
$ adb shell am instrument -w com.android.cts.app/android.test.InstrumentationCtsTestRunner           
$ adb shell am instrument -e class android.app.cts.AlertDialogTest#testAlertDialog -w com.android.cts.app/android.test.InstrumentationCtsTestRunner

# 重跑 NonExecuted case
修改 repository/testResult.xml,將 failed 改成 nonexecuted 重跑 => 尚未驗證

2011年10月4日

Setup Android USB connection on AMD-64bit Ubuntu10.04 / AMD-64bit Ubuntu10.04 設定 Android USB / ADB

照著 Android developer 的設定不成功
同事告訴一個方法,可能只是特例,但是卻成功了

先用
$lsusb => 找出產品的 idVendor (aaaa:bbbb),前面的那組

$cd ~
$cd .android/
$echo "0xaaaa" > adb_usb.ini
$sudo ./adb kill-server
$sudo ./adb devices

真的找到了

然後就發覺每次進去都要用 sudo 去 kill-server & start-server
後來還是把 /etc/udev/rules.d/51-android.rules 補起來,就不用 sudo 了

所以整個流程為:
1. 增加 adb 路徑到 .bashrc 裡面的 PATH
2. 增加 51-android.rules
3. 增加 adb_usb.ini