2011年12月8日 星期四

MDI/MDI-X 與跳線

網卡的MDI/MDI-X介紹

MDI (X) - Medium Dependent Interface (Crossover)

Wiki
友旺
另一篇

----
在找要如何讓兩台電腦透過網路線直接互連時找到的相關資料...

另外,找到的資料裡也提到
較新的網卡(通常指GbE)已經有把MDI-X實做在硬體上
所以會自動偵測Tx/Rx,不需要再特地使用跳線

2011年12月2日 星期五

#pragma

#pragma 用法

C 語言中的編譯指示 (Pragma) 


#pragma 預處理指令 

----
#pragma message("......") 
=> compile時將訊息輸出

2011年10月5日 星期三

write-through vs. write-back (cache)

What are "write-through" and "write-back"?  (about cache)

Wiki
Benjr.tw

----
感覺像是N年前出現在恐龍本或白算盤裡面的內容... XD

2011年9月3日 星期六

EFI - handle and protocol

EFI的"handle"及"protocol",看了些資料還是沒什麼感覺...
在網路上找資料當做參考

http://blog.yam.com/wttmama/article/33757450
http://biosengineer.blogspot.com/2007/05/efi-protocol.html
http://matt.tlf.jp/2010/06/efi.html
http://blog.sina.com.cn/s/blog_77f624ae0100q38e.html 

----
看了大家的經驗,可能還是要自己寫過相關的code之後才會比較有感覺吧 @@

2011年8月29日 星期一

callback function & function pointer

callback function

http://squall.cs.ntou.edu.tw/cpp/94spring/lab03/Lab3-2.html

2011年8月24日 星期三

Vim -- "swap" file and "backup" file

使用Vim編輯時, 若不想讓它產生系統暫存檔 (swap file),
或是有更動後存檔時的備份檔 (backup file), 可用以下指令:

set nobackup
set nowritebackup
set noswapfile

但不建議如此做, 因為在發生不正常情況時就無法recover
如果只是為了讓工作目錄更乾淨, 可以更改swap file及backup file產生的目錄
指令如下

if has("win32") 

    set directory=c:\\tmp,c:\\temp 
    set backupdir=c:\\tmp,c:\\temp 
elseif has("unix") 
    set directory=/tmp 
    set backupdir=/tmp