1. Download RP-PPPoE.
http://www.roaringpenguin.com/products/pppoe
2. Compile the package.
3. Setup
> pppoe-setup
Seednet DNS servers:
139.175.55.244
139.175.252.16
4. Start ADSL
> pppoe-start
5. Stop ADSL
> pppoe-stop
Thursday, August 27, 2009
Tuesday, August 25, 2009
My X Window Applications
X Server on Win32 => Xming
SlickEdit => KScope
/usr/bin/kscope
UltraEdit => Kate
/usr/bin/kate
WinMerge => Meld
/opt/meld-1.3.1/meld
SVN Client => kdesvn
/usr/local/bin/kdesvn
SlickEdit => KScope
/usr/bin/kscope
UltraEdit => Kate
/usr/bin/kate
WinMerge => Meld
/opt/meld-1.3.1/meld
SVN Client => kdesvn
/usr/local/bin/kdesvn
Sunday, August 23, 2009
Vim Cscope
1. Generate filelist
> find -name '*.c' > cscope.files
> find -name '*.h' >> cscope.files
> find -name '*.cc' >> cscope.files
> find -name '*.cpp' >> cscope.files
2. Build Cscope database
> cscope -b -q -k
3. Use Vim to open source file. It's possible to use Cscope inside Vim.
: cs (help)
: cs find c aim_config_set_int (find all functions that call aim_config_set_int)
> find -name '*.c' > cscope.files
> find -name '*.h' >> cscope.files
> find -name '*.cc' >> cscope.files
> find -name '*.cpp' >> cscope.files
2. Build Cscope database
> cscope -b -q -k
3. Use Vim to open source file. It's possible to use Cscope inside Vim.
: cs (help)
: cs find c aim_config_set_int (find all functions that call aim_config_set_int)
Vim Function List
[Source]
ShowFunc.vim : Creates a list of all tags / functions from a window, all windows or buffers.
Default Key Mappings:
Run scan and open cwindow.
To reassign add the following to your .vimrc:
map NewKeyShowFunc
map! NewKeyShowFunc
For example to change the mapping to
map ShowFunc
map! ShowFunc
ShowFunc Window commands:
c Close cwindow.
h Display help dialog.
r Refresh.
s Change file sort, results will appear in either alphabetical or file order. (Default: file order)
t Change scan type, results will be from either the current file, all open windows or all open buffers. (Default: all open buffers)
install details
Put this file in the vim plugins directory (~/.vim/plugin/) to load it automatically, or load it with :so ShowFunc.vim.
ShowFunc.vim : Creates a list of all tags / functions from a window, all windows or buffers.
Default Key Mappings:
To reassign add the following to your .vimrc:
map NewKey
map! NewKey
For example to change the
map
map!
ShowFunc Window commands:
c Close cwindow.
h Display help dialog.
r Refresh.
s Change file sort, results will appear in either alphabetical or file order. (Default: file order)
t Change scan type, results will be from either the current file, all open windows or all open buffers. (Default: all open buffers)
install details
Put this file in the vim plugins directory (~/.vim/plugin/) to load it automatically, or load it with :so ShowFunc.vim.
Vim CTags
[Source]
[建立 tag 檔]
在所解開的 source code 目錄下,下以下指令:
> ctags -R *
[一般的 tag 使用]
如果就照上一節的方式產生 tag files,那麼只要在 source code 目錄下由 vim 去開啟檔案的話,會自動載入 tags 這個檔案,無需另行載入,否則要由 :set tags=your.tags 來指定 tags 檔。然後就是照一般使用 Vim 線上說明一樣,游標移到識別字或函數名上,按 Ctrl+],要回到原處就按 Ctrl+T。
請注意,Vim 啟動時,工作目錄(vim 啟動時的所在目錄)名為 tags 的檔案會自動載入,$VIMRUNTIME/doc 及 $HOME/.vim/doc 目錄下的 tags 檔也會自動載入。而且,凡是載入的 tags 檔裡頭所有標誌文字都可以使用補全鍵來補全,別忘了這個好用的功能。
[建立 tag 檔]
在所解開的 source code 目錄下,下以下指令:
> ctags -R *
[一般的 tag 使用]
如果就照上一節的方式產生 tag files,那麼只要在 source code 目錄下由 vim 去開啟檔案的話,會自動載入 tags 這個檔案,無需另行載入,否則要由 :set tags=your.tags 來指定 tags 檔。然後就是照一般使用 Vim 線上說明一樣,游標移到識別字或函數名上,按 Ctrl+],要回到原處就按 Ctrl+T。
請注意,Vim 啟動時,工作目錄(vim 啟動時的所在目錄)名為 tags 的檔案會自動載入,$VIMRUNTIME/doc 及 $HOME/.vim/doc 目錄下的 tags 檔也會自動載入。而且,凡是載入的 tags 檔裡頭所有標誌文字都可以使用補全鍵來補全,別忘了這個好用的功能。
Subscribe to:
Posts (Atom)