搜尋一下網路,不外乎移除 /etc/fonts/conf.d/49-sansserif.conf 或將裡面最後的 edit 節區中的「sans-serif」改為「sans」、「sans serif」、或「文泉驛正黑」(「WenQuanYi Zen Hei」)。
最後重開 Firefox。
5/3/2010: 10.04 也有此問題,4$ 是改 ~/.fonts.conf,有人留言改 /etc/fonts/local.conf
星期四, 2月 25, 2010
Ubuntu 安裝 acroread
由於 Ubuntu 8.04 預設的 evince 看 pdf 仍有漢文破字問題 (可能是新細明體跟標楷體字型的關係),所以安裝 acroread。
- 先加入 Medibuntu 套件庫
-
sudo apt-get install acroread
- 下載 Font packs,解開,執行
sudo CHTKIT/INSTALL
安裝
- Adobe 的產品與文化、 你的隱私與安全、 電腦教授的良知與職業道德
- evince
- okular (KDE)
星期日, 2月 21, 2010
Acceleration of Symmetric-Key Algorithms in Software
cryptographic algorithms
Symmetric-key ciphers (暗號):加解密使用同一個 security key,需要保存好不能外洩。
Symmetric-key ciphers (暗號):加解密使用同一個 security key,需要保存好不能外洩。
- IPsec 使用 symmetric-key ciphers 來作 data confidentiality.
- 最常見的 symmetric-key ciphers 包括 DES、Triple DES、及 AES:
- Data Encryption Standard (DES) (July 1977) 使用 56 bits 長度的 secret key。在當時這樣的長度足以提供適當的 security。
- Triple DES (or Triple Data Encryption Algorithm, TDEA) 是較 secure 的 DES 變種,基本上就是三個 DES 方塊的序列組合,因此實作上 DES 跟 Triple DES 幾乎是相同的。
- Advanced Encryption Standard (AES) (2002) 取代 DES 而被廣大採用,支援 128、192、及 256 bits 的 secret-key。
- 依賴 bit-manipulating 運算,最好有硬體加速,不然需要軟體最佳化以符合效能
- algorithm-level optimizations
- low-level instruction selection
- 延伸閱讀:
- DES/Triple DES 軟體最佳化:http://www.embedded.com/208800336?pgno=2
- AES 軟體最佳化:http://www.embedded.com/208800336?pgno=3
- AES 軟體最佳化:Implementation of the AES algorithm on Deeply Pipelined DSP/RISC Processor
Efficient CRC calculation
方式:
- 查表
- (bfin) 使用指令 BXOR, BXORSHIFT, 1-bit/ 2 cycles:Efficient CRC calculation with minimal memory footprint
DSP 書
DSP
- Embedded signal processing with the Micro Signal Architecture. Woon-Seng Gan, Sen M. Kuo. 2007 (使用 Blackfin) [中正圖書館 TK5102.9 G195 2007]
- http://www.dspguide.com/
- 語音訊號處理 王小川 312.98454
- Digital speech : coding for low bit rate communication systems. Kondoz, A. M.[TK7882.S65]
- Practical approaches to speech coding. Papamichalis, Panos E. [TK7882.S65]
- Digital speech transmission : enhancement, coding and error concealment. Vary, Peter./Martin, Rainer. [TK7882.S65]
AT 數據機指令
以前資料通訊是用電話線,兩端接數據機,一端撥號、另一端應答來建立連線。除了資料傳輸外,還需要對數據機下指令,包括撥號、掛斷、改變連接參數等。為了節省使用的電腦傳輸埠,資料傳輸跟指令傳輸都用同一個界面,但須要區別目前是資料模式或是指令模式。
數據機指令一般是擴充自 Hayes 數據機使用的基本指令集。
PSTN、3G 數據機命令
例如:
ATZ:reset?
ATI:information?
AT+CGDCONT=1,IP,internet:
ATD<電話號碼>:撥號
延伸閱讀:
數據機指令一般是擴充自 Hayes 數據機使用的基本指令集。
PSTN、3G 數據機命令
例如:
ATZ:reset?
ATI:information?
AT+CGDCONT=1,IP,internet:
ATD<電話號碼>:撥號
延伸閱讀:
LCD Monitor Philips 170S for Ubuntu
Model ID. 170S7FB/96 [specification]
我的解決步驟:
- Horizontal Scanning Frequency: 30 - 83 kHz
- Vertical Scanning Frequency: 56 - 76 Hz
- Maximum Resolution: 1280 x 1024 @ 75 Hz
- Optimum Resolution: 1280 x 1024 @ 60 Hz
我的解決步驟:
- Ctrl-Alt-F1 切換到虛擬終端機,登入並且變成 root
- 停掉 gdm (我是 ps aux | grep gdm,一個一個 kill 掉)
- X -config 產生 /root/xorg.conf.new,複製成 /etc/X11/xorg.conf
- 修改 /etc/X11/xorg.conf,Section "Monitor" 換成:
Section "Monitor"
Section "Screen" 的 SubSection "Display" 中 Depth 24 後新增一行,變成:
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Philips 170S"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection - reboot
星期三, 2月 03, 2010
vim 編碼
vim 選項 fileencoding 設定自動辨別哪些編碼,預設是
fileencodings=ucs-bom,utf-8,big5,default,latin1vim 會按照序嘗試偵測,如果成功就用此編碼解碼 (會再編碼成顯示的編碼 termencoding),並設定到選項 fileencoding。設定 fileencodings 的原則是嚴格的排在前面,寬鬆的排在後面。可將 big5 放到 default 前面,這樣就可以自動顯示有 big5 編碼的文字檔。
文件開啟後發現其內容是 big5 編碼,轉換 buffer 的編碼來正確顯示 (修改存檔仍是 big5 編碼):
:e ++enc=big5 %
set ts=4 "tabstop,tab 寬度設為 4 字元。
set sw=4 "shiftwidth,每一級縮排的寬度,一般設成和 tabstop 一樣。
syntax enable set smartindent set expandtab
參考來源
- hex 顯示
- http://softsmith.blogspot.tw/2009/01/vim-cscope-trace.html
- http://vim.wikia.com/wiki/File_format
- sudo apt-get install vim #原本只有 vim-tiny
cp /usr/share/vim/vimrc ~/.vimrc #加以編輯 - 更改預設的編輯器
- sudo update-alternatives --config editor 或設環境變數 (例如加在 ~/.bashrc) export EDITOR="vi"
- vim stripped the rest of the cruft
- https://codertw.com/前端開發/392417/
訂閱:
文章 (Atom)