cvs 合併 branch 回 trunk

cvs 將 branch 合併回 trunk 的做法,(cvs建分支的做法 可參考 "cvs 建分支 branch")

  1. cvs checkout trunk # 先把 trunk checkout 出來.
  2. cd trunk # 進入 trunk 的目錄中

先把書上的其它做法記一下, (可參考CVS Branch and Merge example)

  • # merge from branch to trunk
  • cvs update -j branchbasetag -j branchname
  • # merging a branch to the trunk
  • cvs update -j lastmergetag -j branchname
  • ex: cvs update -j beta_0-1_branck_root -j beta_0-1_branch
  • # merge from trunk to branch
  • cvs update -j beta_0-1_branch_root -j HEAD
  • # merging from branch to branch
  • cvs update -j branchbasetag -j otherbranch

閱讀全文〈cvs 合併 branch 回 trunk〉

PHP magic.mime WARNING

Debian testing 的環境

php 的環境出現以下錯誤訊息

PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0

已經在 Debian 有看到 Bug Report. 但是還是要先有解決辦法, 不然 Command line 的程式大多都有問題.

暫時的解決方法:

  1. vi /usr/share/file/magic.mime
  2. 找到大約 273 行 (搜尋 "space" 就可以找到 Warning 的字)
  3. 把那行先 # 掉就可以了

閱讀全文〈PHP magic.mime WARNING〉

Oracle 常用命令

Oracle 常用的指令簡單以 FAQ 的方式記錄一下:

查看 有哪些 DB(show databases)
select * from v$dbfile
查看有哪些 Table(show tables)
select * from v$tablespace
建立 DB(Tablespace)
create tablespace NAME datafile 'FILENAME.dbf' size 20M; (Create DB)
建立一個新的 USER, 並授權可連線, 建 table 等
  • create user USERNAME identified by PASSWORD;
  • grant connect to USERNAME;
  • grant resource to USERNAME;
  • conn USERNAME/PASSWOD;
  • create table t1 (c1 int);
  • insert into t1 values(1);
  • commit;

其它的等遇到問題再來做記錄囉~

閱讀全文〈Oracle 常用命令〉