本文作者的部落格地址:http://blog.sina.com.cn/samzhen1977作者:Sam (甄峰)sam_code@hotmail.com 在寫Bluetooth程式時,常常需要得到Bluetooth包是否發送以及內容是怎樣。這就和寫網路程式時需要抓包相同。但與網路程式(使用Ethereal)不同的是,bluetooth是無線傳輸的,所以需要藉助BluetoothProtocol Analyger(藍芽分析儀)。Sam當前使用的是Merlin II Bluetooth
/proc/sys/vm/drop_caches (since Linux 2.6.16)Writing to this file causes the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.To free pagecache, use echo 1 > /proc/sys/vm/drop_cachesto free dentries
Video4Linux2 part 2: registration and open()V4L2 第二部分:註冊和開啟This is the second article in the LWN series on writing drivers for the Video4Linux2 kernel interface; those who have not yet seen the introductory articlemay wish to start there. This
Video4Linux2 part 3: Basic ioctl() handlingV4L2 第三部分:基本ioctl()處理Anybody who has spent any amount of time working through the Video4Linux2 API specification will have certainly noted that V4L2 makes heavy use of the ioctl() interface. Perhaps more
Video4Linux2 part 4: inputs and outputsV4L2 第四部分:輸入輸出This is the fourth article in the irregular LWN series on writing video drivers for Linux. Those who have not yet read the introductory article may want to start there. This week's episode
轉自:http://blog.163.com/m_cu/blog/static/2835157820084611151913/ QString QString::number ( long n, int base = 10 ) [靜態] 一個把數字n轉換為字串的方便函數,n被基於base表示,預設為10,並且必須在2到36之間。 long a = 63; QString str = QString::number( a, 16 ); // str == "3f"
//content from www.sqlite.org/sqlite.html sqlite3: A command-line access program for SQLite databasesThe SQLite library includes a simple command-line utility named sqlite3 that allows the user to manually enter and execute SQL commands against an