Wednesday, June 28, 2006

500GHz! Developed by IBM

An unbelievable speed of 500GHz!!!

When cooled to -268.5C, using liquid helium, it is able to perform a speed of 500 GHz! Even at room temperature they can be running at 350 GHz.

Other than standard silicon chips, these chips are manufactured using Si-Ge technology.

Germanium is already added to the silicon chips used in mobile phones to make them operate more efficiently.

Adding the element allows chips to run faster and use less power. Importantly, they can also be fabricated using existing silicon techniques.

The team believes it is possible to make chips run at 1,000 Ghz, or one Terahertz, at room temperature.

OK. After some digging. This is a transistor which can be switched at 500GHz. It could probably be used in RF usage. The largest advantage is it uses SiGe. This technology is relative cheaper than others in high frequency transistor.

Related Links:
http://news.bbc.co.uk/1/hi/technology/5099584.stm

del.icio.us Tags:

Sunday, June 18, 2006

Strange fontset for Emacs23

奇怪的Emacs23字体设置

sourceforge
下载了最新的预编译Emacs23 for Windows。这个版本应该是支持Unicode,中文GBK字库。但是用了原先Emacs22的设置,却不能显示所有的GBK汉字,比如“镕”,显示为一个方框。
后来在newsmth上找了一下,必须把中文字体设置为新宋体,用以下代码:

(create-fontset-from-fontset-spec
"-outline-Courier New-normal-r-*-*-17-97-96-96-c-*-fontset-chinese")
(set-fontset-font
"fontset-default" nil
"-outline-新宋体-*-r-*-*-20-*-96-96-c-*-iso10646-1" nil 'prepend)
(set-fontset-font
"fontset-chinese" 'kana
"-outline-新宋体-*-r-*-*-20-*-96-96-c-*-iso10646-1" nil 'prepend)
(set-fontset-font
"fontset-chinese" 'han
"-outline-新宋体-*-r-*-*-20-*-96-96-c-*-iso10646-1" nil 'prepend)
(set-fontset-font
"fontset-chinese" 'cjk-misc
"-outline-新宋体-*-r-*-*-20-*-96-96-c-*-iso10646-1" nil 'prepend)
(set-fontset-font
"fontset-chinese" 'symbol
"-outline-新宋体-*-r-*-*-20-*-96-96-c-*-iso10646-1" nil 'prepend)
(set-default-font "fontset-chinese")

但是发现直接把这段写在.emacs里不起作用,启动后必须重新编译这段代码才行。相当诡异,因为其他人只要直接这样设置就可以了。难道是因为XP英文系统就不行吗?

后来再次试了一下,把这段字体设置写入fontset.el,然后在.emacs里load就可以了,需要注意的是,必须在设置了语言环境之后再load。有可能XP中文的默认语言环境已经是chinese-gbk了,所以就可以直接设置字体?


(add-to-list 'load-path "~/emacs.configuration")
(setq w32-charset-info-alist
(cons
'("gbk" w32-charset-gb2312 . 936) w32-charset-info-alist))
(set-w32-system-coding-system 'chinese-gbk)
(set-keyboard-coding-system 'chinese-gbk)
(set-language-environment 'chinese-gbk)
(setq locale-coding-system 'chinese-gbk)
(setq current-language-environment "Chinese-GBK")
(set-selection-coding-system 'chinese-gbk)
(set-language-environment 'chinese-gbk)
(setq current-language-environment "Chinese-GBK")

(load "fontset")

使用Courier New 17号和新宋体20号,字体看起来都比较大,不费眼力,而且汉字的宽度正好是字母的两倍。

相关链接:


del.icio.us Tags:

improvement for dired-single

改进一下dired-single返回上层目录的功能

Improvement for going back to parent directory (using dired-single).

在.emacs里改一下dired-single设置代码:
(require 'dired-single)
(define-key dired-mode-map (kbd "RET") 'joc-dired-single-buffer)
(define-key dired-mode-map (kbd ".")
;; type . to go back to the parent directory
'(lambda ()
(interactive)
(let ((current-dir (dired-current-directory)))
(joc-dired-single-buffer "..")
(dired-goto-file current-dir))))

按.返回上层目录,光标停留在原先的目录名上。
del.icio.us Tags:

Monday, June 12, 2006

Emacs ido.el

The ido.el is now a default elisp package in Emacs 23. You can get the newest version from CVS.
Use following elisp to enable ido-mode:

(require 'ido)
(ido-mode t)


Typing C-x C-f will run ido-find-file. There are some advantages, the files can be found more quickly. However, the ido-cache will not be refreshed automatically when directories are modified. There are some useful commands.
C-d to enter dired.
C-l to run ido-reread-directory to refresh the current work directory.
C-j to stop automatically completing file names. For example, you have "test.01" and "test.02" in your work directory, but you want to create a new file "test" instead of finding "test.01" or "test.02". Then you should type C-j after inputting "test", to run ido-select-text.
Or C-f to return to normal find-file.
Tab or ? to show completion help.

Don't use ido-mode to find files on ftp server, since that is quite slow and requires to type user name and password. And similarly don't search files in other directories. Add following codes into .emacs :


;; use normal find-file function for ftp files
(setq ido-slow-ftp-host-regexps '(".*"))
;; don't search files in other directories
(setq ido-work-directory-list-ignore-regexps '(".*"))


del.icio.us Tags: