2010年8月16日

stdout stderr

1 - denotes stdout ( standard output )
2 - denotes stderr ( standard error )
/dev/null . apparently is null , nothing , empty , zero etc , etc .

2>/dev/null - redirect stderr to nothing , it turns stderr off.

>/dev/null 2>&1 also can write as 1>/dev/null 2>&1 - stdout redirect to /dev/null (no stdout) ,and redirect stderr to stdout (stderr gone as well) . end up it turns both stderr and stdout off

a little practice may help to undstand above .
#ls /usr /nothing
#ls /usr /nothing 2>/dev/null
#ls /usr /nothing >/dev/null 2>&1

2010年3月7日

WinXP 網芳 密碼

刪除
net use * /del /y
管理
control userpasswords2

2010年2月10日

CVS Command

Root:
#export CVSROOT=:pserver:[user name]@[server]:/share/service/cvs

Checkout:
#cvs checkout -d [folder name] -r [tag] "[server code path]"

Commit:
#cvs commit -m "[log]"

Branch:
#cvs tag -b [branch name]

Checkout Branch:
#cvs checkout -d [folder name] -r [branch name] "[server code path]"

Look Up Version:
#cvs status -v

Look Up Log:
#cvs log -S -d "2005/10/1<2005/10/3">
/*To show the headers of files in the current directory created after October 1, 2005 through the present time*/

Add Tag:
#cvs tag tag_name

checkout by tag:
#cvs co -r tag_name output_path

checkout by date:
#cvs checkout -D "mm/dd/yyyy hh:mm" -d [folder name] "[server code path]"

look changelog
#cvs2cl.pl -r
#vim ChangeLog

UBOOT-gd

gd指標在需要使用它的函數中定義(用DECLARE_GLOBAL_DATA_PTR)為一各區域變數
因為在uboot中用一個固定的暫存器來存放這個指標,所以即使是區域變數,但是他再所有使用到他的地方都是一樣的值,這個值在board_init_f中初始化,指向CFG_GBL_DATA_ADDR

2009年11月12日

Inter Integrated Circuit ( I2C )

http://tw.knowledge.yahoo.com/question/question?qid=1506122504420
http://tw.knowledge.yahoo.com/question/question?qid=1306033007425
http://www.ti.com.tw/articles/detail.asp?sno=74

2009年10月29日

checksum

http://gd.tuwien.ac.at/languages/c/cref-mleslie/CONTRIB/SNIP/checksum.c

Point to Function, size_t

http://bbs2.nchu.edu.tw:8000/gemmore/programming&F0TASFN1&4