小提琴 Beatbox !!!
分類: 未分類
My .vimrc
set number
set hls
set ic
set ai
set enc=utf8
set incsearch
set shiftwidth=3
set nobackup
set hlsearch " highlight searches
set ignorecase " ignore case when searching
set title " show title in console title bar
set ruler
set modeline
"set tabstop=3 " length of each tab
if has("autocmd")
" Restore cursor position
au BufReadPost * if line("'"") > 0|if line("'"") <= line("$")|exe("norm '"")|else|exe "norm $"|endif|endif
" Filetypes (au = autocmd)
au FileType helpfile set nonumber " no line numbers when viewing help
au FileType helpfile nnoremap " Enter selects subject
au FileType helpfile nnoremap " Backspace to go back
" When using mutt, text width=72
au FileType mail,tex set textwidth=72
au FileType cpp,c,java,sh,pl,php,asp set autoindent
au FileType cpp,c,java,sh,pl,php,asp set smartindent
au FileType cpp,c,java,sh,pl,php,asp set cindent
"au BufRead mutt*[0-9] set tw=72
" Automatically chmod +x Shell and Perl scripts
"au BufWritePost *.sh !chmod +x %
"au BufWritePost *.pl !chmod +x %
" File formats
au BufNewFile,BufRead *.pls set syntax=dosini
au BufNewFile,BufRead modprobe.conf set syntax=modconf
endif
syntax on
人是一種矛盾的動物
今天接 AC 電源接上筆電時想到一個問題:網路上說接上 AC 電源時如果電池已經充電完畢最好取下,不然同時充電用同時放電會降低電池壽命。
記得之前課本有教過,電池放時,外電路電子移向正極;充電時,電子流方向相反。那網路上說的「同時充電同時放電」電子到底怎麼移動?假設充電與放電的比例相同 (剛好能讓電池維持在 100%),那表示電子移入和移出負極的量相同會抵銷,那樣與把電池拆下來的情況是一樣的,為什麼會減少電池的壽命?
想到這裡又想到很矛盾的地方:
- 教育部說九年國教都是基礎教育,教的都是應有的常識
- 大家都說不常用的東西很快就會忘掉
- 大家平常都把九年國教的東西給忘了
印象中之前換日光燈管時,朋友還問我要不要先把開關切掉免得觸電,當時心理就 OS:玻璃不是不導電嗎?就算是燈管兩端的金屬片,中間也用軟木和電極格開了啊,怎會觸電?
結論就是:人是一種很矛盾的動物。
包括自己在內,行動時做的事情又和自己以前說的理念不相符,實在應該檢討檢討。
相關資料:請搜尋「電子流 方向 filetype:ppt」
Google DNS
Google 最近出產品的速度真的很快,Google Chrome OS 後又推出日文輸入法、Google DNS。比起 Hinet 的 DNS 伺服器,Google DNS 實在不用花什麼大腦記憶:
- 8.8.8.8
- 8.8.4.4
不過為什麼已經有 OpenDNS 了還需要另外建議自己的 DNS 呢?OpenDNS Blog 馬上寫了一篇文章討論 Google 的企圖:
Some thoughts on Google DNS
http://blog.opendns.com/2009/12/03/opendns-google-dns/
學生都是人球
今天在 BBS 上看到別人的簽名檔,還蠻好笑的。
國小老師:這個國中會教啦
國中老師:這個高中會教啦
高中老師:這個大學會上啦
大學教授:這個問題想必大家國小就會了