When playing the video, we can use button "v" to enable/disable subtitle.
We can also use "z" and "x" to control the delay of subtitle.
2011年12月26日 星期一
2011年12月22日 星期四
[Linux][Ubuntu][GCC -save-temps & -fsyntax-only]
假設今天有個檔案叫 test.c。
今天我執行 gcc -save-temps test.c 後,會產生底下幾個檔案:
test.i test.o test.s 和 a.out。
就不用費神的去輸入 gcc -S 得 test.s 之類的。
而 gcc -fsyntax-only 則只會檢查語法而已,像是少打個 ; 或之類的。
不會做 pre-processing,assembling,compiling 或 linking。
至於 function name 打錯那一類的他不會有反應。
Reference:
O'Reilly.
今天我執行 gcc -save-temps test.c 後,會產生底下幾個檔案:
test.i test.o test.s 和 a.out。
就不用費神的去輸入 gcc -S 得 test.s 之類的。
而 gcc -fsyntax-only 則只會檢查語法而已,像是少打個 ; 或之類的。
不會做 pre-processing,assembling,compiling 或 linking。
至於 function name 打錯那一類的他不會有反應。
Reference:
O'Reilly
2011年12月10日 星期六
[Windows][查看系統安裝時間 - systeminfo]
有些授權軟體挺囉嗦的,會要求使用者一段時間後再一次進行重新驗証。
今天想看系統安裝的時間,可以用 cmd.exe 輸入 systeminfo 後按 enter。
會跑一小段時間以 load 各種資訊。
像是 Host Name、OS Name、Version、Product ID、Original Install Date、System Boot Time 一類的。
挺方便的。
今天想看系統安裝的時間,可以用 cmd.exe 輸入 systeminfo 後按 enter。
會跑一小段時間以 load 各種資訊。
像是 Host Name、OS Name、Version、Product ID、Original Install Date、System Boot Time 一類的。
挺方便的。
標籤:
systeminfo,
Windows
2011年12月5日 星期一
[Linux][Ubuntu][zip update]
有個目錄名為 Directory, 裡頭有 Sub1 Sub2 兩個目錄.
之前已經對 Directory 做個 zip -r 名為 Compression.zip 的壓縮檔.
今天在 Directory 中新增了 Sub3 以及 Sub3 中的檔案.
要更新 Compression.zip 中的內容使其包含新的 Sub3.
指令為 zip -u -r Compression.zip Directory
之前已經對 Directory 做個 zip -r 名為 Compression.zip 的壓縮檔.
今天在 Directory 中新增了 Sub3 以及 Sub3 中的檔案.
要更新 Compression.zip 中的內容使其包含新的 Sub3.
指令為 zip -u -r Compression.zip Directory
[Linux][Ubuntu][Gcin 下打中文的注音符號]
之前有說過用 ctrl 可以打出全形的,。?、;, 全形的冒號就用 shift+:.
但是其他的還是找不到方法, 不過也沒有什麼太大問題.
今天誤打誤撞試出來了.
在中文輸入法時按 [ 會有個選單選說要什麼樣的括號.
像是()<>{}《》「」『』【】().
Good!!
但是其他的還是找不到方法, 不過也沒有什麼太大問題.
今天誤打誤撞試出來了.
在中文輸入法時按 [ 會有個選單選說要什麼樣的括號.
像是()<>{}《》「」『』【】().
Good!!
2011年12月3日 星期六
[Linux][Ubuntu][Vim expandtab for Makefile]
因為 Makefile 的 commands 需要有個 tab, 而現在流行的 vim 規則是使用 expandtab.
也就是把 tab 以空白取代.
但 Makefile 就是沒辦法, 一定要是 tab 而非 space.
所以就多加一行在 .vimrc 中.
autocmd FileType make setlocal noexpandtab
這樣子當用 Vim 開 Makefile 時, Vim 就不會開啟 expandtab 的功能.
Reference:
http://vim.wikia.com/wiki/Converting_tabs_to_spaces
也就是把 tab 以空白取代.
但 Makefile 就是沒辦法, 一定要是 tab 而非 space.
所以就多加一行在 .vimrc 中.
autocmd FileType make setlocal noexpandtab
這樣子當用 Vim 開 Makefile 時, Vim 就不會開啟 expandtab 的功能.
Reference:
http://vim.wikia.com/wiki/Converting_tabs_to_spaces
2011年12月1日 星期四
[Linux][Ubuntu][Repeat in Mplayer]
mplayer -loop number file
mplayer will play file for number times.
If number = 0, it will be infinite loop.
mplayer will play file for number times.
If number = 0, it will be infinite loop.
訂閱:
文章 (Atom)