感謝 ubuntu-tw 論壇的 peterho
Ident 在此文 10.10 中文輸入問題
提到的解決方法
修改 /usr/share/ibus-table/engine/table.py
在 96-106 行可以看到透過 get_chinese_mode() 決定預設語系
做法是從 LC_CTYPE 或 LANG 來判斷
smalldd 發表在 痞客邦 留言(1) 人氣(2,323)
一直以來覺得奇怪,為什麼vmware player上裝的OS其3D acceleration功能都不會動
直到最近才知道原因
原來vmware player支援3D acceleration的前題是顯示晶片必須支援OpenGL的S3TC (S3 Texture compression)功能
相關資訊: VMware and 3D acceleration on Intel graphics
smalldd 發表在 痞客邦 留言(0) 人氣(1,159)
原來windows上好用的免空下載器JDownloader也有PPA repository可用
JDownloader 官網
PPA repository
可用下列命令增加此套件庫
>sudo add-apt-repository ppa:jd-team/jdownloader
smalldd 發表在 痞客邦 留言(0) 人氣(915)
使用fopen開啟檔案時
有時會發生無法開啟的錯誤
此時可以在程式碼中加入
extern int errno;
取得開檔之錯誤代碼
smalldd 發表在 痞客邦 留言(1) 人氣(2,384)
通常在 Open Source 的原始碼資料夾下會看到 AAAA.5 BBBB.8
副檔名1~8代表的意義可查詢 man 的說明檔得到
>man man
若要直接讀取說明檔檔案
>man -l <file>
例:
>man -l AAAA.5
smalldd 發表在 痞客邦 留言(1) 人氣(308)
PSI = lb/in2
1 kg = 2.204622622 lb
0.45359237 kg = 1 lb
1 in = 2.54 cm
0.3937 in = 1 cm
smalldd 發表在 痞客邦 留言(0) 人氣(1,060)
1 噸 = 3024 kcal =12000 BTU = 3.517 kW
1 kW = 860 kcal
smalldd 發表在 痞客邦 留言(1) 人氣(65,273)
1.
引用標頭檔 linux/ioctl.h
#include <linux/ioctl.h>
若 kernel 內有定義 CONFIG_COMPAT 這 defined constant
表示 ioctl 在 相容模式 (compatibility mode)
要多引用 linux/compat.h
#include <linux/compat.h>
smalldd 發表在 痞客邦 留言(0) 人氣(6,683)
1.
修改 /etc/gdm/gdm.conf
>sudo vi /etc/gdm/gdm.conf
找到 AllowRoot=false
把 false 改成 true
smalldd 發表在 痞客邦 留言(0) 人氣(575)
假設寫了一支 smalldd 的程式是一支以網路核心功能開發的程式
1.
把 smalldd.h 檔放到 include/net/ 下
smalldd 發表在 痞客邦 留言(0) 人氣(5,258)