Emacs学习笔记:常用快捷键,中文支持。
1. 光标移动
下翻页
ctrl + v
上翻页
alt + v
本行显示在屏幕中心
ctrl + l
上移1行
ctrl + p
下移1行
ctrl + n
左移1字符
ctrl + b
右移1字符
ctrl + f
左移1单词
alt + b
右移1单词
alt + f
移至行始
ctrl + a
移至行末
ctrl + e
移至句始
alt + a
移至名末
alt + e
移至文章的最前面
alt + shift + ,
移至文章的最后面
alt + shift + .
2. 中文支持
Ubuntu的repository带的是emacs 21版,对中文支持不好。建议使用最新版本的emacs 23。下面的网址下载:
http://mail.ustc.edu.cn/~abxeeled/edgy/emacs_23.0.0.1-2_i386.deb
sudo dpkg -i emacs_23.0.0.1-2_i386.deb
参考文章:
1. Emacs Tutorial,
启动Emacs,下面命令即可打开Tutorial
ctrl + h, t
2. cvs20070127 的 emacs23 deb 包
http://forum.ubuntu.org.cn/viewtopic.php?t=40210
2007-05-11
FreeNode IRC 边学边用
对于常在FreeNode上朋友,看了以下的常用命令,可以让你聊天更畅快。:smile:
在什么地方输入命令?
就在你聊天的窗口。
1. 注册呢称
/msg nickserv
2. 设置你的email
/msg nickserv set email
隐藏你的email地址
/msg nickserv set hide email on
3. 将你的另一个呢称,链接到注册的呢称。
/msg nickserv link
To be continued...
参考文章:
FreeNode FAQ:
http://freenode.net/faq.shtml#projectfreenode
在什么地方输入命令?
就在你聊天的窗口。
1. 注册呢称
/msg nickserv
2. 设置你的email
/msg nickserv set email
隐藏你的email地址
/msg nickserv set hide email on
3. 将你的另一个呢称,链接到注册的呢称。
/msg nickserv link
To be continued...
参考文章:
FreeNode FAQ:
http://freenode.net/faq.shtml#projectfreenode
2007-05-08
Mplayer Installation
Mplayer is supposed to be ultimate media player on Linux platform. This post introduces how to install pre-build Mplayer on Ubuntu/Kubuntu. Moreover, all-codecs package will be added to support varied media format.
1. Install Mplayer
sudo aptitude install mplayer
2. Install codecs
In order to play a variety of media, all-codecs package is strongly recommended. All-codecs package for different platform can be found:
http://www.mplayerhq.hu/MPlayer/releases/codecs/
I'm using Intel platform, so I download all-20061022.tar.bz2.
tar -xvjf all-20061022.tar.bz2
sudo cp all-20061022/*.* /usr/lib/codecs/
3. Configure
I change video output to xv (X11/Xv) in Preferences->Video, but this configure may not apply to you. Just have a try if it pops video output error message.
1. Install Mplayer
sudo aptitude install mplayer
2. Install codecs
In order to play a variety of media, all-codecs package is strongly recommended. All-codecs package for different platform can be found:
http://www.mplayerhq.hu/MPlayer/releases/codecs/
I'm using Intel platform, so I download all-20061022.tar.bz2.
tar -xvjf all-20061022.tar.bz2
sudo cp all-20061022/*.* /usr/lib/codecs/
3. Configure
I change video output to xv (X11/Xv) in Preferences->Video, but this configure may not apply to you. Just have a try if it pops video output error message.
水平型微指令/垂直型微指令
水平型微指令和垂直型微指令的特点:
(1)水平型微指令并行操作能力强,效率高,灵活性强,垂直型微指令则较差。
(2)水平型微指令执行一条指令的时间短,垂直型微指令执行时间长。
(3)由水平型微指令解释指令的微程序,有微指令字较长而微程序短的特点。垂直型微指令则相反。
(4)水平型微指令用户难以掌握,而垂直型微指令与指令比较相似,相对来说,比较容易掌握。
微指令的编译方法是决定微指令格式的主要因素。
微指令的格式大体分成两类:水平型微指令和垂直型微指令。
1.水平型微指令
一次能定义并执行多个并行操作微命令的微指令,叫做水平型微指令。 其一般格式如下:

按照控制字段的编码方法不同,水平型微指令又分为三种:全水平型(不译法)微指令,字段译码法水平型微指令,以及直接和译码相混合的水平型微指令。
2.垂直型微指令
微指令中设置微操作码字段,采用微操作码编译法,由微操作码规定微指令的功能 ,称为垂直型微指令。
其结构类似于机器指令的结构。它有操作码,在一条微指令中只有1—2个微操作命令,每条微指令的功能简单,因此,实现一条机器指令的微程序要比水平型微指令编写的微程序长得多。它是采用较长的微程序结构去换取较短的微指令结构。
下面举4条垂直型微指令的微指令格式加以说明。设微指令字长为16位,微操作码3位。
(1)寄存器-寄存器传送型微指令

其功能是把源寄存器数据送目标寄存器。13—15位为微操作码(下同),源寄存器和目标寄存器编址各5位,可指定31个寄存器。
(2)运算控制型微指令

其功能是选择ALU的左、右两输入源信息,按ALU字段所指定的运算功能(8种操作)进行处理,并将结果送入暂存器中。左、右输入源编址可指定31种信息源之一。
(3)访问主存微指令

其功能是将主存中一个单元的信息送入寄存器或者将寄存器的数据送往主存。存储器编址是指按规定的寻址方式进行编址。第1,2位指定读操作或写操作(取其之一)。
(4)条件转移微指令

其功能是根据测试对象的状态决定是转移到D所指定的微地址单元,还是顺序执行下一条微指令。9位D字段不足以表示一个完整的微地址,但可以用来替代现行μPC的低位地址。 测试条件字段有4位,可规定16种测试条件。
3.水平型微指令与垂直型微指令的比较
(1)水平型微指令并行操作能力强,效率高,灵活性强,垂直型微指令则较差。
(2)水平型微指令执行一条指令的时间短,垂直型微指令执行时间长。
(3)由水平型微指令解释指令的微程序,有微指令字较长而微程序短的特点。垂直型微指令则相反。
(4)水平型微指令用户难以掌握,而垂直型微指令与指令比较相似,相对来说,比较容易掌握。
转自:
http://teach.jwc.bupt.cn:4213/jsjzcyl/pan1/Chap05/5.5.3.htm
(1)水平型微指令并行操作能力强,效率高,灵活性强,垂直型微指令则较差。
(2)水平型微指令执行一条指令的时间短,垂直型微指令执行时间长。
(3)由水平型微指令解释指令的微程序,有微指令字较长而微程序短的特点。垂直型微指令则相反。
(4)水平型微指令用户难以掌握,而垂直型微指令与指令比较相似,相对来说,比较容易掌握。
微指令的编译方法是决定微指令格式的主要因素。
微指令的格式大体分成两类:水平型微指令和垂直型微指令。
1.水平型微指令
一次能定义并执行多个并行操作微命令的微指令,叫做水平型微指令。 其一般格式如下:
按照控制字段的编码方法不同,水平型微指令又分为三种:全水平型(不译法)微指令,字段译码法水平型微指令,以及直接和译码相混合的水平型微指令。
2.垂直型微指令
微指令中设置微操作码字段,采用微操作码编译法,由微操作码规定微指令的功能 ,称为垂直型微指令。
其结构类似于机器指令的结构。它有操作码,在一条微指令中只有1—2个微操作命令,每条微指令的功能简单,因此,实现一条机器指令的微程序要比水平型微指令编写的微程序长得多。它是采用较长的微程序结构去换取较短的微指令结构。
下面举4条垂直型微指令的微指令格式加以说明。设微指令字长为16位,微操作码3位。
(1)寄存器-寄存器传送型微指令
其功能是把源寄存器数据送目标寄存器。13—15位为微操作码(下同),源寄存器和目标寄存器编址各5位,可指定31个寄存器。
(2)运算控制型微指令
其功能是选择ALU的左、右两输入源信息,按ALU字段所指定的运算功能(8种操作)进行处理,并将结果送入暂存器中。左、右输入源编址可指定31种信息源之一。
(3)访问主存微指令
其功能是将主存中一个单元的信息送入寄存器或者将寄存器的数据送往主存。存储器编址是指按规定的寻址方式进行编址。第1,2位指定读操作或写操作(取其之一)。
(4)条件转移微指令
其功能是根据测试对象的状态决定是转移到D所指定的微地址单元,还是顺序执行下一条微指令。9位D字段不足以表示一个完整的微地址,但可以用来替代现行μPC的低位地址。 测试条件字段有4位,可规定16种测试条件。
3.水平型微指令与垂直型微指令的比较
(1)水平型微指令并行操作能力强,效率高,灵活性强,垂直型微指令则较差。
(2)水平型微指令执行一条指令的时间短,垂直型微指令执行时间长。
(3)由水平型微指令解释指令的微程序,有微指令字较长而微程序短的特点。垂直型微指令则相反。
(4)水平型微指令用户难以掌握,而垂直型微指令与指令比较相似,相对来说,比较容易掌握。
转自:
http://teach.jwc.bupt.cn:4213/jsjzcyl/pan1/Chap05/5.5.3.htm
2007-05-07
解决KTorrent在Kubuntu Feisty崩溃的问题
听fdoving说是DHT的Bug引起的问题。
解决方法:
下载 ktorrent_2.1.4~0jdong1~7.04prevu1_i386.deb 文件,安装即可(sudo dpkg -i...)
这个链接可以下载到:
http://buntudot.org/people/~jdong/ktorrent/2.1.4/feisty/
解决方法:
下载 ktorrent_2.1.4~0jdong1~7.04prevu1_i386.deb 文件,安装即可(sudo dpkg -i...)
这个链接可以下载到:
http://buntudot.org/people/~jdong/ktorrent/2.1.4/feisty/
Rear Window - 后窗
2007-05-02
First Blood - 第一滴血
2007-05-01
IE4Linux和网上银行
国内的网上银行大多只能在Internet Experlorer下工作,不支持Linux下常用的浏览器如:Firefox,Opera等。在Linux下通过Wine安装IE,可以实现网上银行交易。
IE4Linux可以让你的Linux拥有微软的Internet Explorer。整个安装过程只需要回答几个问题即完成。下面以Kubuntu Fesity Fawn为例,来安装IE4Linux。
1. 修改源
打开/etc/apt/sources.list文件:
sudo kwrite /etc/apt/sources.list
将下删除或标为注释
deb http://us.archive.ubuntu.com/ubuntu edgy universe
添加下行
deb http://wine.budgetdedicated.com/apt edgy main
关闭并保存sources.list文件。
2. 安装wine和cabextract
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install wine cabextract
3. 下载安装IE4Linux
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
4. 安装过程
Welcome, ***! I'm IEs4Linux.
I can install IE 6, 5.5 and 5.0 for you easily and quickly.
You are just four 'enter's away from your IEs.
I'll ask you some questions now. Just answer y or n (default answer is the bold one)
IE 6 will be installed automatically.
Do you want to install IE 5.5 SP2 too? [ y / n ] <-- y-如果你想安装IE5.5 SP2
And do you want to install IE 5.01 SP2? [ y / n ] <-- y-如果你想安装IE5.01 SP2
IEs can be installed using one of the following locales:
EN-US PT-BR DE FR ES IT NL SV JA KO NO
DA CN TW FI PL HU AR HE CS PT RU EL TR
Default is EN-US. Hit enter to keep it or choose a different one: <-- 指定语言,回车即为的英文
By default, I will install everything at /home/aaron/.ies4linux
I will also install Flash 9 plugin and create Desktop shortcuts.
Is that ok for you? (To configure advanced options type n) [ y / n ] <-- y - 安装Flash 9 plugin
Next a few files will be downloaded, and the three Internet Explorer versions will be installed:
[...]
Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Processing inf file
Installing IE 6
Installing TTF Fonts
Installing RICHED20
Installing ActiveX MFC40
Installing DCOM98
Installing registry
Finalizing
[ OK ]
Installing Flash Player 9
Extracting files
Installing flash on ie6
[ OK ]
Installing IE 5.5
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]
Installing IE 5.0
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]
IEs 4 Linux installations finished!
To run your IEs, type:
/home/falko/bin/ie6
/home/falko/bin/ie55
/home/falko/bin/ie5
If you have 5 minutes, help me translating IEs4Linux to your language.
Visit: http://tatanka.com.br/ies4linux/forum/viewtopic.php?p=2
That's it already.
参考文章:
1. IE4Linux install Ubuntu/Kubuntu/Xubuntu
http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu
如果你是Ubuntu/Kubuntu/Xubuntu的其它版本(如:Edgy,Dapper等),也请参考这篇文章。
2.How To Install Internet Explorer On Ubuntu (Feisty Fawn, Edgy Eft And Dapper Drake)
http://www.howtoforge.com/ubuntu_internet_explorer
如果你的Linux是Fedora、Gentoo、Debian或者其它,请参考IE4Linux官方安装帮助。
http://www.howtoforge.com/ubuntu_internet_explorer
IE4Linux可以让你的Linux拥有微软的Internet Explorer。整个安装过程只需要回答几个问题即完成。下面以Kubuntu Fesity Fawn为例,来安装IE4Linux。
1. 修改源
打开/etc/apt/sources.list文件:
sudo kwrite /etc/apt/sources.list
将下删除或标为注释
deb http://us.archive.ubuntu.com/ubuntu edgy universe
添加下行
deb http://wine.budgetdedicated.com/apt edgy main
关闭并保存sources.list文件。
2. 安装wine和cabextract
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install wine cabextract
3. 下载安装IE4Linux
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
4. 安装过程
Welcome, ***! I'm IEs4Linux.
I can install IE 6, 5.5 and 5.0 for you easily and quickly.
You are just four 'enter's away from your IEs.
I'll ask you some questions now. Just answer y or n (default answer is the bold one)
IE 6 will be installed automatically.
Do you want to install IE 5.5 SP2 too? [ y / n ] <-- y-如果你想安装IE5.5 SP2
And do you want to install IE 5.01 SP2? [ y / n ] <-- y-如果你想安装IE5.01 SP2
IEs can be installed using one of the following locales:
EN-US PT-BR DE FR ES IT NL SV JA KO NO
DA CN TW FI PL HU AR HE CS PT RU EL TR
Default is EN-US. Hit enter to keep it or choose a different one: <-- 指定语言,回车即为的英文
By default, I will install everything at /home/aaron/.ies4linux
I will also install Flash 9 plugin and create Desktop shortcuts.
Is that ok for you? (To configure advanced options type n) [ y / n ] <-- y - 安装Flash 9 plugin
Next a few files will be downloaded, and the three Internet Explorer versions will be installed:
[...]
Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Processing inf file
Installing IE 6
Installing TTF Fonts
Installing RICHED20
Installing ActiveX MFC40
Installing DCOM98
Installing registry
Finalizing
[ OK ]
Installing Flash Player 9
Extracting files
Installing flash on ie6
[ OK ]
Installing IE 5.5
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]
Installing IE 5.0
Copying ie6 installation
Extracting files
Installing registry
Finalizing
[ OK ]
IEs 4 Linux installations finished!
To run your IEs, type:
/home/falko/bin/ie6
/home/falko/bin/ie55
/home/falko/bin/ie5
If you have 5 minutes, help me translating IEs4Linux to your language.
Visit: http://tatanka.com.br/ies4linux/forum/viewtopic.php?p=2
That's it already.
参考文章:
1. IE4Linux install Ubuntu/Kubuntu/Xubuntu
http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu
如果你是Ubuntu/Kubuntu/Xubuntu的其它版本(如:Edgy,Dapper等),也请参考这篇文章。
2.How To Install Internet Explorer On Ubuntu (Feisty Fawn, Edgy Eft And Dapper Drake)
http://www.howtoforge.com/ubuntu_internet_explorer
如果你的Linux是Fedora、Gentoo、Debian或者其它,请参考IE4Linux官方安装帮助。
http://www.howtoforge.com/ubuntu_internet_explorer
Subscribe to:
Posts (Atom)