原创 unity around common good offers hope for future

By Greg Cusack from  http://www.shanghaidaily.com/opinion/foreign-perspectives/Unity-around-common-good-offers-hope-for

原创 vi 全局替換命令等

轉載來源: http://socol.iteye.com/blog/518854 全局替換命令 語法爲 :[addr]s/源字符串/目的字符串/[option] 全局替換命令爲::%s/源字符串/目的字符串/g     [addr]

原创 linux 環境常用命令

#創建patch #可以使用 -x 選項去排除某個文件或者某一類文件 diff  -uNr orig_dir new_dir > patchname.diff #查詢路徑dir_path下面 每個子目錄佔用的空間大小 du  -h

原创 About Refactoring

    I have ever heard that C++ programmers can be devided into two camps. One camp has read 《Effective

原创 二層交換機地址學習

CCNA考題分析:二層交換機地址學習 (轉貼)    例題:   Refer to the exhibit. Switch1 has just been restarted and has passed the POST routine.

原创 git 常用操作

6. 撤銷改動 7. 刪除一個commit 8. 修改最近的一個commit 9.顯示所做的改動 9.顯示所做的改動   1)git diff   2)git annotate/blame轉載來源 http://blog.csdn.ne

原创 composite 模式

把單一對象和對象容器統一處理,使得客戶代碼不需要知道對象容器的的組成方式。做法:爲單一對象和對象容器提供統一接口。   常見做法是爲兩者寫一個共用的抽象父類。把兩者原本的接口都組合在這個抽象父類中問題是兩者

原创 定時器,tasklet,工作隊列

1 定時器和tasklet  Tasklets resemble kernel timers in 3 ways.       1)They are always run at interrupt time

原创 在內核中添加函數

在內核中添加函數,自己用的一個比較簡單的。1)在linux/kernel/sched.c中添加函數    long my_sched_setscheduler(pid_t pid, int policy,

原创 read Item 25 of《More Effective C++》

Item 25 Virtualizing Constructors and Non-Member FunctionsYou call a virtual function to achieve type-s