雖然同事一般都用securecrt,不過我機器上securecrt在utf-8編輯設定下不正常,於是還是換回putty。
支援滾屏、滑鼠的配置的關鍵之處是:.bash_profile中export term=xterm,.screenrc中termcapinfo xterm ti@:te@,.vimrc中set ttymouse=xterm2。
另外,vim+cscope確實好用。下面是cscope方面的設定:
if has("cscope")
set nocsverb
if $cscope_db != ""
cs add $cscope_db
let g:cscopeout=$cscope_db
elseif filereadable("cscope.out")
cs add cscope.out
let g:cscopeout="cscope.out"
elseif filereadable("../cscope.out")
cs add ../cscope.out ..
let g:cscopeout="../cscope.out"
elseif filereadable("../../cscope.out")
cs add ../../cscope.out ../..
let g:cscopeout="../../cscope.out"
elseif filereadable("../../../cscope.out")
cs add ../../../cscope.out ../../..
let g:cscopeout="../../../cscope.out"
elseif filereadable("../../../../cscope.out")
cs add ../../../../cscope.out ../../../..
let g:cscopeout="../../../../cscope.out"
elseif filereadable("../../../../../cscope.out")
cs add ../../../../../cscope.out ../../../../..
let g:cscopeout="../../../../../cscope.out"
elseif filereadable("../../../../../../cscope.out")
cs add ../../../../../../cscope.out ../../../../../..
let g:cscopeout="../../../../../../cscope.out"
else
let g:cscopeout=""
endif
set csverb
nmap :cs find 3 =expand("")
nmap g:cstag =expand("")
nmap g:cs find 0 =expand("")
vmap g"zy:cs find 4 z
function! myadd_csup(findpath)
if g:cscopeout == ""
return
endif
if cscope_connection(4, g:cscopeout, substitute(g:cscopeout, "/[^/]*$", "", "")) || cscope_connection(4, g:cscopeout)
exec "cs kill " . g:cscopeout
if a:findpath == ""
if g:findpath != ""
let s:findpath = g:findpath
else
let s:findpath = substitute(g:cscopeout, "/[^/]*$", "", "")
endif
else
let s:findpath = a:findpath
endif
echo "finding.."
let s:temp=system("find " . s:findpath . " -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.cc' >" . substitute(g:cscopeout, "out$", "files", ""))
echo "sorting.."
let s:temp=system("~/.bin/rmdupcsfile " . substitute(g:cscopeout, "out$", "files", ""))
echo "building.."
let s:temp=system("cscope -b -i " . substitute(g:cscopeout, "out$", "files", "") . " -f " . g:cscopeout)
exec "cs add " . g:cscopeout . " " . substitute(g:cscopeout, "/[^/]*$", "", "")
else
echo "cscope update failed"
endif
endfunction
command! upcs call myadd_csup("")
endif
其他的就懶得貼了。
遠心鏡頭的遠心度
不同廠家的遠心鏡頭消除透視誤差的能力也有差異,這是因為遠心度不同。遠心度定義為主光線與光軸間的夾角 如圖所示。另外,大多數工程師對景深和遠心度有誤解,認為遠心鏡頭的景深比普通鏡頭大。但前幾期我們專門討論過景深,知道景深只與瀰散斑直徑 鏡頭fno.放大倍率相關,與遠心度無關。遠心鏡頭優點 1 最突出特...
《方與圓》 丁遠峙
方與圓 丁遠峙 2012年01月15日 全國最暢銷的人文書之一 方 就是做人的正氣,具備優秀的品質。圓 就是處事老練,圓通,善用技巧。做人就必須方外有圓,圓中有方,外圓而內方。乙個人要幹出一番事業,要真正懂得為人處世,要取得生活快樂,最重要的首先要具備優秀的品質。乙個人的成功主要依靠什麼?往往很大程...
Socket與ServerSocket遠端桌面
目的 通過socket與socketserver的通訊實現遠端監控 首先,在serversocket 被監控端 一直截圖傳送到socket。再到socket 客戶端 中不斷接收截圖內容並展示出來。如下 伺服器 public class remoteserver catch ioexception e...