原创 vim + ctags/cscope 大型工程代碼閱讀
vi+ctags筆記: 1. 生成tags索引文件. $ cd $CODE_DIR && ctags -R * ### "-R" 表示遞歸當前目錄 $ ctags -R --languages=+C,+C++,+Asm
原创 虛擬機下Linux單擊變雙擊問題的解決辦法
已測試環境爲(Vmware 6.0 + Fedora 9) a. 編輯文件xorg.conf $ vi /etc/X11/xorg.conf b. 增加如下內容 Section "ServerFlags"
原创 shell腳本重要的常識
以下操作對應bash. 1. set -v :在每行腳本命令執行前,先在終端顯示出來. sed +v: 關閉. set -x :類似set -v, 但已經對命令做了解析. sed +x: 關閉. 2. pushd/po
原创 巧虎DVD光盤播放花屏問題解決
巧虎DVD光盤的VOB文件在電腦或電視上播放,有嚴重的花屏現象? 解決辦法:使用DVD Decrypter工具提取VOB文件,即可正常播放,無花屏。 巧虎DVD提取後有多個VOB文件,如何按指定順序合併爲一個單VOB文件? 解決辦法:使
原创 工行紙黃金收益及收益率計算工具
工行紙黃金不同於股票交易賬戶, 它直接和銀行賬戶綁定.在進行多次不同重量的買入和賣出後, 統計一段時間的收益和收益率變得比較困難. 下面的這個程序可以對工行的導出純文本進行自動分析得到收益值和收益率, 並可以對時間有序的多數據文本文件進
原创 如何真正清空Linux終端的已顯示Buffer
把代碼先貼上來先. 參考ncurses-5.9/progs/tset.c簡化, 能實現和"reset"命令一樣的功能. ncurses包位置: http://www.gnu.org/software/ncurses/ #include
原创 Gradle learning - Task
1. Download Gradle binary from link https://gradle.org/gradle-download/ , copy it to linux,and put gradle relative path
原创 字符型至整型的轉換[toascii]
#include <stdio.h> #include <string.h> /* strlen */ #include <ctype.h> /* toascii */ void usage() { printf("Usag
原创 gstreamer的使用
1. identity element的回調. static void my_handoff(GstElement *identity, GstBuffer *buffer, GstPad *pad, gpointer user
原创 [Linux設備驅動第三版]小記 [1-3章]
Chapter 1: Device drivers are distinct “black boxes” that make a particular piece of hardware respond to a well-defined
原创 mysql使用筆記
1. 如何安裝? 設置和更改密碼? 登錄? 安裝: $ sudo apt-get install mysql-server mysql-common mysql-client 設置密碼: $ mysqladmin -u r
原创 C基本庫函數實現
#include <stdio.h> #include <stdbool.h> #include <assert.h> #include <stdlib.h> #include <string.h> // memset #defin
原创 [Linux設備驅動第三版]小記 [4-6章]
Placeholder, add in soon...
原创 Linux下編譯相關
1. configure中的--build, --host, --target含義. Basically, $build* refer to the system compilation is being performed on,$ho
原创 WES7相關雜記
DirectShow: DirectShow (sometimes abbreviated as DS or DShow), codename Quartz, is a multimedia framework and API produ