Step 1 : install XDebug
[xdebug]
zend_extension = /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /tmp/xdebug
xdebug.profiler_enable_trigger =1
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
Step 2 : Setup PHPUnit in /path/to/htdocs/PHPUnit
Step 3 : Setup ZendStudio
Run as icon -> Run configuration -> add [PHP CLI Application]
add [PHPUnit]
2012年3月18日 星期日
2012年3月10日 星期六
How to set Bitbucket for Multiple Accounts
Just found the solution for adding multiple accounts to Bitbucket. The reason why it is not so straight forward is because one SSH key only can link up to one account. So if there is more than one account the method will be slightly different.
Here is how the step to resolve it.
After id_rsa and id_rsa.pub is used to assigned account A. For account B, I need to create another set of public and private key.
After that you need to go to ~/.ssh/config to give ssh client further instruction when connect to the same bitbucket.org server but knowing when to use which private key.
So, after setting up when you want to use the account B key, you need to change the url to something such as below:
For account A, you still can use the original ssh url to do so.
If you are using SmartGit, better to choose the System SSH in your preference. If not, you will still getting error.
PS: ssh-add ~/.ssh/newaccB might be adding behind after modify ~/.ssh/config
reference : http://paikialog.wordpress.com/2011/10/14/how-to-set-bitbucket-for-multiple-accounts/
Here is how the step to resolve it.
After id_rsa and id_rsa.pub is used to assigned account A. For account B, I need to create another set of public and private key.
$ssh-keygen -t dsa -f ~/.ssh/newaccB -C ""
$chmod 600 ~/.ssh/newaccB*
$ssh-add ~/.ssh/newaccB
After that you need to go to ~/.ssh/config to give ssh client further instruction when connect to the same bitbucket.org server but knowing when to use which private key.
Host bitbucket.org
Hostname bitbucket.org
User git
IdentityFile /Users//.ssh/id_rsa
Host bitbucket-accountB
Hostname bitbucket.org
User git
IdentityFile /Users//.ssh/newaccB
So, after setting up when you want to use the account B key, you need to change the url to something such as below:
$git clone git@bitbucket-accountB:/.git
For account A, you still can use the original ssh url to do so.
If you are using SmartGit, better to choose the System SSH in your preference. If not, you will still getting error.
PS: ssh-add ~/.ssh/newaccB might be adding behind after modify ~/.ssh/config
reference : http://paikialog.wordpress.com/2011/10/14/how-to-set-bitbucket-for-multiple-accounts/
2012年3月9日 星期五
Mac 更換資料夾圖示的方法
最近想把 Mac 裡一些常用的資料夾換個圖示,找到的步驟如下:
選取資料夾,開啟該資料夾的「簡介」視窗。
將下載好的 .icns 圖示檔拉到「簡介」視窗最上方的小圖示上,就可以換掉原有圖示了。
我照了這個方法作,不過從網路上下載的 .icns 圖示檔,有些拉上去後可以成功更換資料夾圖示,有些卻不行。研究了半天也搞不清楚為什麼有些成功有些不行。後來找到了另外一個換圖示的方法,不僅更簡單,而且除了 .icns 檔案外,也適用於任何圖檔。方法如下:
用「預覽程式」開啟你要用來當資料夾圖示的 .icns 檔,或其他圖檔。當然,尺寸最好是 512x512。
開啟後,依序按下⌘A(全選),⌘C(複製)。
然後選取想要更換圖示的資料夾,開啟該資料夾的「簡介」視窗。
點選「簡介」視窗最上方的小圖示,按下⌘V(貼上),大功告成!
這個方法除了資料夾外,也可以用來更改磁碟映像檔的圖示。
reference : http://coder.aqualuna.me/2012/02/mac.html
選取資料夾,開啟該資料夾的「簡介」視窗。
將下載好的 .icns 圖示檔拉到「簡介」視窗最上方的小圖示上,就可以換掉原有圖示了。
我照了這個方法作,不過從網路上下載的 .icns 圖示檔,有些拉上去後可以成功更換資料夾圖示,有些卻不行。研究了半天也搞不清楚為什麼有些成功有些不行。後來找到了另外一個換圖示的方法,不僅更簡單,而且除了 .icns 檔案外,也適用於任何圖檔。方法如下:
用「預覽程式」開啟你要用來當資料夾圖示的 .icns 檔,或其他圖檔。當然,尺寸最好是 512x512。
開啟後,依序按下⌘A(全選),⌘C(複製)。
然後選取想要更換圖示的資料夾,開啟該資料夾的「簡介」視窗。
點選「簡介」視窗最上方的小圖示,按下⌘V(貼上),大功告成!
這個方法除了資料夾外,也可以用來更改磁碟映像檔的圖示。
reference : http://coder.aqualuna.me/2012/02/mac.html
2012年3月2日 星期五
Benchmark code of JavaScript Time
var start = (new Date).getTime();
/* Run a test. */
var diff = (new Date).getTime() - start;
reference : http://ejohn.org/blog/accuracy-of-javascript-time/
2012年3月1日 星期四
Kanban Tools : TargetProcess
Agile Project Management Software for Scrum or Kanban
website : http://www.targetprocess.com/
website : http://www.targetprocess.com/
訂閱:
文章 (Atom)