01.1.取得和設置當前目錄(即該進程從中啟動的目錄)的完全限定路徑。
02.stringstr = System.Environment.CurrentDirectory;
03.結果: C:\xxx\xxx
04.
05.2.取得啟動了應用程序的可執行文件的路徑,不包括可執行文件的名稱。

Allen 發表在 痞客邦 留言(0) 人氣()

        enum color { red, blue, green };
        enum bdc { yellow, black , blue };
        public Form1()
        {
            InitializeComponent();

Allen 發表在 痞客邦 留言(0) 人氣()

以 tab 為分隔符 

sort -t '$\t' -k 1 

argument 'k' is sort by field

Allen 發表在 痞客邦 留言(0) 人氣()

更改.bashrc 

完成後,執行source .bashrc

即可更新,不需重開機。

Allen 發表在 痞客邦 留言(0) 人氣()

use command : mktemp 

this command can create a temp file for you ,then delete after the program end.

Allen 發表在 痞客邦 留言(0) 人氣()

git config --global user.email "$mail"

git congit --global user.name "$name"

git remote add $git server:$projectName

git config --list -> for check above infomation.

Allen 發表在 痞客邦 留言(0) 人氣()

gitosis_conf

若要新增progect ,

方法一 : 1. 可以直接在"管理機器"上 , 編輯gitosis-admin/gitosis.conf  , 新增project 資料 , 如下

2. 設定好權限之後,到 擁有clone權限的電腦上,clone project ,就會clone 下個empty repo.接下來正常編輯即可.

方法二: 1.   如"方法一 : 1." , 步驟設定

2.到擁有clone權限的電腦上,創建一個資料夾(名稱不一定要與project相同) , 進入資料夾 , 下 "git init" , 接著設定 git remote , 與 git --global config user.email & user.name .

Allen 發表在 痞客邦 留言(0) 人氣()

1.

apt-get install wine

2.

wine sourceInSight.exe

3.

Allen 發表在 痞客邦 留言(0) 人氣()

https://github.com/yangyangwithgnu/use_vim_as_ide/blob/master/README.md#0.1

Allen 發表在 痞客邦 留言(0) 人氣()

smbmount //IP/分享資源 /掛載點 [-o options]
參數:
-o 後面接的參數 (options) 常用的有底下這些:
username=你的登入帳號:例如 username=dmtsai
password=你的登入密碼:需要與上面 username 相對應啊!

Allen 發表在 痞客邦 留言(0) 人氣()

user : nlp

vi  ~/.bashrc

add

alias mosesP='/home/nlp/moses-PBLM/bjam --with-irstlm=/home/nlp/irstlm-5.80.01'

Allen 發表在 痞客邦 留言(0) 人氣()

vi .bashrc

add 

alias  mosesCompiler='/home/nlp/mosesdecoder/bjam --with-irstlm=/home/nlp/irstlm-5.80.01'

Allen 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。