發表文章

目前顯示的是 7月, 2011的文章

字元轉碼軟體 iconv

使用這個軟體大部分的機會就是~影片字幕的編碼轉換。 常見的編碼: gb2312、big5、utf8 使用方式: iconv [參數...] [FILE...] 從給定的檔案的字元編碼轉換到另一個  輸入/輸出格式設定:   -f, --from-code=名稱     原始文字的編碼   -t, --to-code=名稱       用來輸出的編碼  資料:   -l, --list                 列出所有已知的編碼字元集  輸出控制:   -c                         省略無效字元的輸出   -o, --output=FILE          輸出檔案   -s, --silent               停止輸出警告訊息       --verbose              印出程序相關資訊   -?, --help                 給出這個使用方式列表       --usage                給出簡短的使用訊息   -V, --version              印出程式版本 長選項的必須或可選用的引數也是相對應短選項的必須或可選用的引數。 For bug reporting instructions, please see: .

Tux 福音 ~ The Gospel of Tux

這當然不是我寫的,是在網路上看到的。覺得很有趣,所以把它放上來囉。雖然網路上也有中文翻譯,不過 ... 缺乏聖經的味道,有空我在自己來翻翻看。 Every generation has a mythology. Every millenium has a doomsday cult. Every legend gets the distortion knob wound up until the speaker melts. Archeologists at the University of Helsinki today uncovered what could be the earliest known writings from the Cult of Tux, a fanatical religious sect that flourished during the early Silicon Age, just before the dawn of the third millenium AD... The Gospel of Tux (v1.0) In the beginning Turing created the Machine. 起初, Turing 創造機器。 And the Machine was crufty and bodacious, existing in theory only. And von Neumann looked upon the Machine, and saw that it was crufty. He divided the Machine into two Abstractions, the Data and the Code, and yet the two were one Architecture. This is a great Mystery, and the beginning of wisdom. And von Neumann spoke unto the Architecture, and blessed it, saying, "Go forth and replicate, freely exchanging data and code, and

joe 的 C/C++ 語法高亮設定

Well ... 大部分入門 Linux 的人,第一套文字編輯器應該都是 vi 吧(因為大部分的書都是教這一套),其實我也是啦。不過自從研究所遇到一個自稱不會用 vi 的高手,在他的慫恿下我也嘗試了另外一套文字編輯器,然後就 ... 跳槽了 :p joe,全名為 Joe's Own Editor ,是一套相當輕巧的瀏覽器,和 vi 比起來相當直覺好用(沒有什麼模式之間的切換)。但是我對它預設的語法高亮的設定相當不滿,看起來就是死氣沉沉的樣子。相較起來,vi 預設的顏色就漂亮多了。所以將自己目前的顏色設定給紀錄起來,方便以後換電腦的時候還能夠找得到。 /usr/share/joe/syntax/c.jsf =Bad            bold red =Preproc      blue =Define        magenta =Comment   blue =IncLocal      red =IncSystem   bold red =Constant     red =Escape        bold cyan =Type            green =Keyword      yellow =CppKeyword     yellow =Brace          magenta