The slow repondence of emacs saving files is really conspicuious when trackerd(tracker's daemon) is running in the background. After I kill the trackerd with the command "killall -9 trackerd", emacs just acts so briskly.
I think the possible reason is that trackerd is watching the files I'm editing in emacs. Thus, when I try to save the files I've updated, tracerd tries to update its index, and thus takes the computing resources, lackness of which makes emacs to stop respond(In compiz fusion, emacs would just turn into gray and can't be operated).
I have not taken the time to view how this part of trackerd's code is written. and I've not tested trackerd and emacs on other versions of ubuntu or other distroes yet.
2007-09-27
2007-09-26
2 interesting command line commands
from http://ubuntuforums.org/showpost.php?p=2540421&postcount=1
Show information about the computer users
Code:
finger -l
Show current Ubuntu version
Code:
cat /etc/issue
Show information about the computer users
Code:
finger -l
Show current Ubuntu version
Code:
cat /etc/issue
2007-09-24
字符集(charset)和字符编码(character encoding)的区别
from this post: http://www.thescripts.com/forum/thread214891.html
It's important to distinquish between characters (or charsets) and
character encodings. They are two different things. A charset is a map
that defines which numeric value represents a particular glyph. A
character encoding defines how numeric values are serialized into a
stream of bytes. For example Unicode can be encoded as UTF-8 which which
is space effecient and provides compatibility with the ASCII and ISO-8859-1
charsets. Or it could be encoded as UCS4-LE which is not space effient
but it can be easier to do heavy text processing with it.
Here's a nice link about programming with extended charsets although it
is a little UTF-8/*nix centric:
http://www.cl.cam.ac.uk/~mgk25/unicode.html
It's important to distinquish between characters (or charsets) and
character encodings. They are two different things. A charset is a map
that defines which numeric value represents a particular glyph. A
character encoding defines how numeric values are serialized into a
stream of bytes. For example Unicode can be encoded as UTF-8 which which
is space effecient and provides compatibility with the ASCII and ISO-8859-1
charsets. Or it could be encoded as UCS4-LE which is not space effient
but it can be easier to do heavy text processing with it.
Here's a nice link about programming with extended charsets although it
is a little UTF-8/*nix centric:
http://www.cl.cam.ac.uk/~mgk25/unicode.html
2007-09-23
[howto] gnome's file association
According to this post at http://forums.fedoraforum.org/showthread.php?t=26875 , sereral files affect the file associations.
Though that post targets gnome 2.8, I find that it's still the same for the newest gnome, that is gnome 2.20, after checking these files.
-> /usr/share/applications/defaults.list
This file contains the applications which cause a double-click success. All Mime types will point to a desktop file.
-> /usr/share/applications/[application_name].desktop
This is the file where "defaults.list" will point to. One of the most important things inside this file is the entry "MimeType=".
-> /usr/share/applications/mimeinfo.cache
Contains information in similar form shown for file "defaults.list" in same directory. This file contains ALL associations given to a mime type. There is no need for a specified order of desktop files (see XMMS example lateron)
-> /usr/share/mime (Directory)
This directory contains several information. The sub-directories - excluding packages - contain information about given mime types. You'll see that many mime types already exist.
The packages directory contains the DATABASE calles freedesktop.org.xml!
-> /usr/share/mime/globs
This file contains the file extensions, associated to the mime-types.
Though that post targets gnome 2.8, I find that it's still the same for the newest gnome, that is gnome 2.20, after checking these files.
-> /usr/share/applications/defaults.list
This file contains the applications which cause a double-click success. All Mime types will point to a desktop file.
-> /usr/share/applications/[application_name].desktop
This is the file where "defaults.list" will point to. One of the most important things inside this file is the entry "MimeType=".
-> /usr/share/applications/mimeinfo.cache
Contains information in similar form shown for file "defaults.list" in same directory. This file contains ALL associations given to a mime type. There is no need for a specified order of desktop files (see XMMS example lateron)
-> /usr/share/mime (Directory)
This directory contains several information. The sub-directories - excluding packages - contain information about given mime types. You'll see that many mime types already exist.
The packages directory contains the DATABASE calles freedesktop.org.xml!
-> /usr/share/mime/globs
This file contains the file extensions, associated to the mime-types.
2007-09-22
2007-09-05
终于知道为什么install-keymap不行了
关键字:/etc/console/boottime.kmap.gz
我重新映射更改console(/dev/tty*)的ctrl和caps,于是按照install-keymap来弄,但是不行。
在配置文件里digg半天以后,发现ubuntu默认用的是console-setup,于是上面的boottime.kmap.gz是不会起作用的(即使用install-keymap)来更新。然后去看/etc/default/console-setup这个文件,发现我成功remap了ctrl和caps的机器上的配置是:
XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="ctrl:swapcaps"
而没有成功的机器上的是
XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
这就是问题了。。
我重新映射更改console(/dev/tty*)的ctrl和caps,于是按照install-keymap来弄,但是不行。
在配置文件里digg半天以后,发现ubuntu默认用的是console-setup,于是上面的boottime.kmap.gz是不会起作用的(即使用install-keymap)来更新。然后去看/etc/default/console-setup这个文件,发现我成功remap了ctrl和caps的机器上的配置是:
XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="ctrl:swapcaps"
而没有成功的机器上的是
XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
这就是问题了。。
2007-09-04
生活目标
能够生存->健康->开朗->有信心有目标
不能活得没有追求。那样的生活估计一点味道都没有。
追求,可以是很多方面的,比如生活上幸福愉快,事业上至少能够给家人支持。
还有,更不能逃避问题,该面对的就勇敢面对(我以前不是这样的;以后也不要这样了)。
不能活得没有追求。那样的生活估计一点味道都没有。
追求,可以是很多方面的,比如生活上幸福愉快,事业上至少能够给家人支持。
还有,更不能逃避问题,该面对的就勇敢面对(我以前不是这样的;以后也不要这样了)。
2007-09-02
mutt怎么设置在转发邮件的时候把附件也捎上?
发信人: Madsen (塞翁失马), 信区: LinuxApp
标 题: Re: mutt怎么设置在转发邮件的时候把附件也捎上?
发信站: 水木社区 (Tue Aug 28 14:37:47 2007), 站内
现在找到三个方法
一个是bounce-message,不过这个方法不能编辑邮件;相当于把要转发的邮件作为一个整体发出去
第二个是,进入要转发的邮件的附件列表,用t来tag要转发的附件;然后按;f ,对的,一个分号加f,然后就可以编辑邮件的文本部分,之后和发送普通邮件一样
第三个,在要转发的邮件上按ESC-e,和第二方法一样,允许编辑文本部分,之后和发送普通邮件一样
【 在 Madsen (欢迎使用RedHat<=9.0作为桌面操作系统!) 的大作中提到: 】
--
我不同意你的观点,但是我誓死捍卫你说话的权利。
※ 来源:·水木社区 newsmth.net·[FROM: 159.226.43.*]
标 题: Re: mutt怎么设置在转发邮件的时候把附件也捎上?
发信站: 水木社区 (Tue Aug 28 14:37:47 2007), 站内
现在找到三个方法
一个是bounce-message,不过这个方法不能编辑邮件;相当于把要转发的邮件作为一个整体发出去
第二个是,进入要转发的邮件的附件列表,用t来tag要转发的附件;然后按;f ,对的,一个分号加f,然后就可以编辑邮件的文本部分,之后和发送普通邮件一样
第三个,在要转发的邮件上按ESC-e,和第二方法一样,允许编辑文本部分,之后和发送普通邮件一样
【 在 Madsen (欢迎使用RedHat<=9.0作为桌面操作系统!) 的大作中提到: 】
--
我不同意你的观点,但是我誓死捍卫你说话的权利。
※ 来源:·水木社区 newsmth.net·[FROM: 159.226.43.*]
订阅:
博文 (Atom)