;; global set key (global-set-key [f4] `kill-buffer) (global-set-key [f5] `compile) (global-set-key [C-return] `set-mark-command) (windmove-default-keybindings)
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(c-default-style (quote ((c-mode . "stroustrup") (java-mode . "java") (awk-mode . "awk") (other . "gnu")))) '(current-language-environment "Chinese-BIG5") '(default-major-mode (quote text-mode)) '(initial-frame-alist (quote ((width . 80) (height . 60)))) '(prolog-system (quote gnu)) '(scroll-bar-mode (quote right)) '(server-mode t) '(show-paren-mode t) '(tool-bar-mode nil) '(user-mail-address "cylee@programmer.net") '(winner-mode t nil (winner))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "black" :foreground "grey" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 105 :width normal :family "adobe-courier")))))
Repository:
Visit http://shame.tuxfamily.org/repo/
I use debian testing (lenny), compiz unstable repo. You need compiz-gnome (or compiz-kde). You might need compiz-manager if you want to make compiz your default window manager.
I wrote several posts about the Linux support on Toshiba Protege 2000.[1][2][3][4] Actually I’m still using this elegant laptop to write this article now. It turns out Ubuntu has done quite a impressive work to support laptops. After I installed Debian to replace Ubuntu, the function keys stopped working because no ACPI events will be generated by key pressing. I traced acpid, hal and toshiba-acpi module in kernel space trying to solve this, and finally I found out Ubuntu patched toshiba-acpi in their kernel to support Toshiba specific hotkeys. So, right now I’m putting the patch into my Debian kernel source and re-building it. We will see if it works later.
Update:
The patch works. Now my debian system could support every hotkey on Protege 2000.
To put the story even shorter, the GNU GLOBAL will not treat C struct as definition, but as other symbol' . This means you may only find a struct withglobal -s`, which will give you lots of irrelevant results.
This feature is in the GLOBAL plans for the future already, which means it might be implemented sometime in the future. For now, it’s better to use GLOBAL to trace how the program runs, the relationship between functions, rather then finding the semantic details. For the semantic side, the ctags or etags is still my first choice.
PIL stands for Python Imaging Library. It is fairly useful when it comes to handling images under python. However, it comes with a pet peeve to me: the show() method of a Image object will execute sh xv <imagefile>I don’t have xv installed on my system, neither do I want to since it’s shareware.
Now I really don’t know why I haven’t came out with this idea before: simply create a symbolic link /usr/local/bin/xv and link it to the display utility that comes with the common image handling package imagemagick then everything will work just fine.
假如用免費的 mailbox,目前網路上提供最大的 gmail 是將近 3GB 左右,若是主要存文件檔,足夠了。而且考慮到 Google 有其他 PIM (personal information management) 相關的功能如 contacts, calander,事實上已經可以做為相當好的選擇。
但實際生活中,經常 mail 都有附件,以個人經驗來講,從 1998 年至今,大部分附加檔能刪就刪的結果,也有個 1.x GB,如果不刪,3 GB 可能還不夠。考慮到現在硬碟這麼便宜,很多人其實還是希望把信件下載,放到自己的電腦中。這方法有兩個問題:
其一是,必須選擇好的郵件處理程式。如果存 Outlook,我們知道 Outlook 以及 Outlook Express 在處理大檔案上都有些問題,mail 存量一多,速度以及穩定性就會減低。更何況我必須持續使用要付費的 Microsoft 軟體,才能看到我自己的信件。病毒、垃圾信等等問題也很困擾。
比較免費 Webmail 與 收信程式 (MUA)
Webmail
本地端
容量
受限制,2.8G左右
只受硬碟限制
防毒
有
需自備軟體
防垃圾信
有
需自備軟體
問題二是,如此會造成所有 mail 存在同一台機器,無法在各處存取,少了 web 的方便性。
在 Linux 下(正確的說,是 Unix-like 系統下),對此問題其實有現成的解法。大概的架構是這樣的:
利用 fetchmail 把各地方的個人信件集中收下來 -> 傳遞給 linux server 的 MTA (mail transfer agent) -> MTA 投遞到對應的使用者的 Maildir/mbox -> 前端處理:病毒、垃圾信、過濾分類等等 -> 使用者用自己的帳號連到 linux server 的 imap server,讀取信件。