1. 開啟 VisualSVN Server Manager
2. 點選你要設定的 Repository 開啟 properties
3. 點選 HOOKs 的 TAB
4. 點選 Revision property change 底下的 Pre-revision property change hook,加上以下內容
SET REPOS="%1"
- Oct 08 Mon 2012 09:35
設定允許編輯 SVN 的 LOG
- Sep 28 Fri 2012 15:47
[PHP] preg_match_all() [function.preg-match-all]: Delimiter must not be alphanumeric or backslash
程式
<? $str = "This is the [*worst*] day [*of*] my life."; preg_match_all("[*([^*]+)*]", $str, $out, PREG_PATTERN_ORDER); echo "str = '$str' <br>"; echo "<pre>" . print_r($out, true) . "</pre>"; ?>
錯誤訊息
- Sep 20 Thu 2012 12:43
Android 4.0 安裝 flash player
由於 google play 商店已經停止 flash player 的下載,所以請到以下網址下載並安裝 apk 檔
http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html#main_Archived_versions
- Sep 12 Wed 2012 13:34
windows 環境底下使用 php preg_match 時字串太長會造成 apache 重開
今天聽同事提到的,還沒測試,不過先記錄下來
要設定 httpd.conf 的 ThreadStackSize 值調大
- Sep 12 Wed 2012 10:56
我的 Windows 常用快速鍵
視窗放到最大
ALT + 空白鍵 + X
視窗大小復原
ALT + 空白鍵 + R
- Sep 11 Tue 2012 16:42
Linux 常用命令
wc -l test.txt
計算行數
passwd
修改密碼
- Sep 11 Tue 2012 11:14
我的 vim 常用設定
" 開啟語法顏色
syntax on
" 設定 TAB 鍵的寬度
set tabstop=4
- Sep 10 Mon 2012 00:14
[ACM] 11479 Is this the easiest problem?
中文題目:
http://luckycat.kshs.kh.edu.tw/homework/q11479.htm
#include <stdio.h> int main() { int i, n; long long int x, y, z; fscanf(stdin, "%d", &n); for (i=0; i<n; i++) { fscanf(stdin, "%lld %lld %lld", &x, &y, &z); if (x >= y+z) { printf("Case %d: Invalid\n", i+1); continue; } if (y >= x+z) { printf("Case %d: Invalid\n", i+1); continue; } if (z >= x+y) { printf("Case %d: Invalid\n", i+1); continue; } if (x == y && y == z) { printf("Case %d: Equilateral\n", i+1); continue; } if (x == y || y == z || x == z) { printf("Case %d: Isosceles\n", i+1); continue; } printf("Case %d: Scalene\n", i+1); } return 0; }
- Sep 10 Mon 2012 00:12
[ACM] 11494 Queen
中文題目:
http://luckycat.kshs.kh.edu.tw/homework/q11494.htm
#include <stdio.h> #include <math.h> int main () { int x1, y1, x2, y2, d1, d2; while (fscanf(stdin, "%d %d %d %d", &x1, &y1, &x2, &y2)) { if (x1 == 0 && y1 == 0 && x2 == 0 && y2 == 0) break; d1 = abs(x1-x2); d2 = abs(y1-y2); if (d1 == 0 && d2 == 0) printf("0\n"); else if (d1 == d2 || d1 == 0 || d2 == 0) printf("1\n"); else printf("2\n"); } return 0; }
- Sep 10 Mon 2012 00:11
[ACM] 11498 Division of Nlogonia
中文題目:
http://luckycat.kshs.kh.edu.tw/homework/q11498.htm
#include <stdio.h> int main() { int k, n, m, x, y, i; while (fscanf(stdin, "%d", &k), k>0) { fscanf(stdin, "%d %d", &n, &m); for (i=0; i<k; i++) { fscanf(stdin, "%d %d", &x, &y); if (n == x || m == y) printf("divisa\n"); else if (x<n && y>m) printf("NO\n"); else if (x>n && y>m) printf("NE\n"); else if (x<n && y<m) printf("SO\n"); else if (x>n && y<m) printf("SE\n"); } } return 0; }