網路上看到一段話寫著:
SVN 的設計原則就是鼓勵程序員瘋狂 commit,不用怕 commit 有 bug 的程式碼,SVN 記錄整個專案的變動歷程,而不是單一程式碼的變動,所以他的版次是整個專案在計算的。因此在版次之間的切換很方便,今天改錯了,那就回到先前沒錯的版本就 好。也就是因為這樣,他的 check-in check-out 速度飛快無比。為什麼要瘋狂 commit 呢,
Merge early, Merge often, Merge always…
寫了 code 就 commit,改得越少,Merge 越自動,比兩個人坐在隔壁寫程式還要寫得快。而且可以一起改同一支程式,而不用 Lock 程式。這是 SVN 的基本設計理念。如果要把某個時間點的程式碼狀態記下來,那就做一個標註(Tag) 在某個版號上就可以了。===================
回到主題,話雖如此,但應該不少朋友沒親自做過version rollback的動作
這邊分享一下,下回可以試試看:
假設新的版本是888,舊的版本是777
可以下 svn merge -r 888:777
就可以rollback到777版本了
有人或許會聯想到,這和svn up -r 777不同的是???
用merge的方式,會連888版本的log history都保留,因為你想做的是commit之後會是889之類
但如果你是直接update成777版本,這個時候你的local copy是777,且log history也是777
這個時候即使你想要commit,server應該也會報錯的喔~
2010年6月1日 星期二
要記得errno的存在!!
不知道是沒睡醒還是在恍神
compile總是出現warning
直說我的func_xxx不是prototype
突然看到密密麻麻的func param當中出現了一個很閃的字眼 errno
OMG....趕快改掉吧 XD
compile總是出現warning
直說我的func_xxx不是prototype
突然看到密密麻麻的func param當中出現了一個很閃的字眼 errno
OMG....趕快改掉吧 XD
2010年5月27日 星期四
165反詐騙網站的daily report
不想接某些電話的時候
可以順便search一下是不是已經出現在報表裡頭了
話說這幾天常常被同一支號碼煩
查了一下,竟然是最近被檢舉次數第一名的門號,還真有點準.....
報表網址:http://net165.erufa.com/outtext.php
可以順便search一下是不是已經出現在報表裡頭了
話說這幾天常常被同一支號碼煩
查了一下,竟然是最近被檢舉次數第一名的門號,還真有點準.....
報表網址:http://net165.erufa.com/outtext.php
2010年5月26日 星期三
Test harness/Test stubs/Test instrumentation的區別
* Test harness " a contrived code that executes the test cases which are invented to test the unit under test
* Test stubs " optional functions (or macros) created to replace functions (or macros) called from the unit under test (UUT) to abstract from the actual behaviors of the real functions.
* Test instrumentation " code plugged into the UUT to expose its behaviors normally not visible from the outside and to output "documentable" traces of execution.
參考文章:http://www.embedded.com/design/201805598
=================================================
In software testing, a test harness or automated test framework is a collection of software and test data configured to test a program unit by running it under varying conditions and monitoring its behavior and outputs.It has two main parts: the Test execution engine and the Test script repository.
DUT, UUT, SUT的區別
DUT: device under test
UUT: unit under test
SUT: system under test
Device under test (DUT), also known as unit under test (UUT), is a term commonly used to refer to a manufactured product undergoing testing.
System under test (SUT) refers to a system that is being tested for correct operation. The term is used mostly in software testing. The term SUT means also a stage of maturity of the software, because a system test is the successor of integration test in the testing cycle.
UUT: unit under test
SUT: system under test
Device under test (DUT), also known as unit under test (UUT), is a term commonly used to refer to a manufactured product undergoing testing.
System under test (SUT) refers to a system that is being tested for correct operation. The term is used mostly in software testing. The term SUT means also a stage of maturity of the software, because a system test is the successor of integration test in the testing cycle.
2010年5月20日 星期四
Word也可以用滑鼠放大縮小頁面比例
剛剛無意中發現
慣用了MAC的滑鼠放大縮小功能
在Word上也可以
很簡單,按著CTRL再滾動滑鼠滾輪就可以了
一個方向是比例放大
另一個方向是縮小,到後來是變成一個螢幕show出多張page
對我來說還蠻方便的
慣用了MAC的滑鼠放大縮小功能
在Word上也可以
很簡單,按著CTRL再滾動滑鼠滾輪就可以了
一個方向是比例放大
另一個方向是縮小,到後來是變成一個螢幕show出多張page
對我來說還蠻方便的
2010年5月7日 星期五
[MAC] 常常滑到Expose設定的四個角落怎辦?
Expose很好用很實用
但....有些時候滑鼠太靈活會不小心滑到四個角落
而造成工作突然中斷一下也不是很好
後來發現....
Expose的設定是可以加上特定按鍵的
譬如說,可以在進行Expose設定的同時
先按住command,再去下拉式選單選擇你想要的功能即可
[MAC] 如何快速關閉螢幕
快速關閉螢幕 Shift + Control + Eject
快速進入睡眠 Option + Command + Eject
快速進行關機 Control + Option + Command + Eject
另外
如果離開座位有習慣鎖定螢幕的朋友
可以先在System Preference --> Security --> General去設定
然後可以用快速關閉螢幕 or Expose去做鎖定
訂閱:
文章 (Atom)