关于作者

用户名:zouzhaonian
笔名:zouzhaonian
地区:

日历  

快速登录

+ 用户名:
+ 密 码:

我的博采 我的论坛 我的RSS

在线留言


留言后如果没有显示请刷新页面

访问统计:2246



Powered by BlogDriver 2.1

歪脖唠嗑-Weblogger

 

Welcome to my blog!

文章

使用vi

cited from http://blog.csdn.net/iyanglian/archive/2004/08/01/57806.aspx

windows版本:ftp://ftp.vim.org/pub/vim/pc/vim63w32.zip

VIM是一种有模式(modal)编辑器, 跟平常的Notepad之类有很大区别. 起初使用起来很不习惯, 但是熟练之后你会发现有模式的编辑器好处非常多。

这里有一本很好的讲述 VIM 的书: Vi Improved。VIM 的作者 Bram Moolenaar 写的一篇文章"Seven habits of effective text editing",他告诉你怎样高效的编辑文本。

http://vim.sourceforge.net/download.php

附:Vim 中文文档


- 作者: zouzhaonian 2005年01月8日, 星期六 08:55  回复(0) |  引用(0) 加入博采

Some useful collections on scientific paper writing

Write professionally


1.Titles of Papers 
1.1  Functioning requirements
  The expression of a title is very important since people usually judge an article by its "title". Thus any titles of a manuscripts should show the main topic, new and original, convenience of reference, with great deal of message.
1.2  Linguistic characters
Titles of papers usually are characterized in short and brief, without being hard to understand or unintelligible, no empty, general words and other redundant formula.

1.3  Examples of title composition
A preliminary study on the dynamic changes of endogenous hormones of early maturing wheats and their parents
Dynamics  of endogenous hormones  in the early maturing wheats and their parental plants
Dynamics  of endogenous hormones  in roots of the early maturing wheats and their parents
A method of isolation of ...
A new method to isolate ...
1.4 Summary: A good title may have a role of "adding the finishing touch" to the whole paper. Titles are the first part of the whole paper which is read by readers. So to every author it is necessary to spend his efforts to work out an excellent title. In addition, the proper expression of authors' affiliation is also very important.   

2. The "Introduction" of papers
2.1    Functioning Requirements
Introduction is the beginning of the main body of papers. A good introduction could attract the readers, let them continue to read the contents followed or the paper won't be read further. The history, recent advances, significance,  the present research contents and purpose or aim of the research should be briefly introduced.
2.2  Linguistic Characters
More complex and simple sentences; present, past and the present perfect tenses; passive voice.
For instance,

The role of summer pruning on growth and development of apple trees  is now well established.  
2.3  Sentences usually used in INTRODUCTION
2.3.1  Starting part
In 1970 ××× and ×××independently identified ...
One of the most important aspects of ...
The role of ...  is now well established.
As we know ...
It has been proved that ...
It was proved (reported) t hat ...
There are few communications on the effect of ... on ...
Smith et al. (2000) reported that ...
Most of the experiments were carried out  ...
It has been long know that ...
It is well documented that ...  
According to the ... theory, ...
2.3.2  Middle part (review)
It has been shown that ...
As we know, ...
As has been stated (proved) that ...
It was proved (reported) that ...
Hayman (1982) pointed out that ...
Two methods have been employed to estimate the ...
Smith et al. (2000) reported that...
Several experiments on  ...
Based on the results of...
...were (was) discussed and reviewed.
In preliminary studies using...
The experiment on ...was carried by...
In spite of the potential importance of...
We hypothesize that under conditions of...
The following questions need to be answered: ...
We have examined the effects of...on...
Although increasingly more is known about...
As... can be..., several author have investigated the role  of...
A developmental study was undertaken to describe the...
Many studies have brought out that...
Many previous studies have shown that...
Some information is also available as to ...
In the present study...was researched under conditions  of...
We are also interested in ...
In addition to our interest in understanding...In addition  to its role as a...
In contrast, the present author found previously that...
The results made by...have shown...
Recent evidence suggested that...
Recent experiments by...have suggested...
To meet this challenge, a great deal of effort focusing  on...
...is (are) needed better understand...At the present  time...
However, it is becoming increasingly clear that...
2.3.3 Ending part
To test specifically the ability of...
The primary objective of our study was to examine ...
The goal of this study was to select...and to see whether  the ...
The objective of the current study was therefore to  examine the effects of... on ...
This paper reports the growth response of...to... under  field condition in... soil.
This paper describes an experiment done to test the  effects of... on...
Our objectives were (I)..., (ii) ... ,

3.Materials and Methods
This part is relatively easy to write comparing to INTRODUCTION and DISCUSSION. However, authors should pay great attention to the Correctness of the English and scientific description.

- 作者: zouzhaonian 2005年01月5日, 星期三 23:30  回复(0) |  引用(0) 加入博采

NP问题的力量
昨天我们讨论Bayesian网和规则集的转换,其间说到Bayesian网的推理是一个NP问题,刚说到这里,我同学小于从凳子上跌落下来。大家大笑,说"NP问题的力量太大了"。

- 作者: zouzhaonian 2004年12月24日, 星期五 10:50  回复(0) |  引用(0) 加入博采

Thinking & Reading
今天下午听了一个校友的报告,他现在是悉尼科技大学的教授,在学术上很有建树。他的报告很精彩不仅介绍了他现在的研究焦点还告诉我们如何从事研究,如何完成Ph.D的研究工作。其中的关于Thinking和reading的辩证关系是我受益最深的。

想一想搞科研,的确不外乎几件日常工作,thinking, reading 和 writing,当然了他的汇报不是教我们如何写作,因此自然不会提到writing。的确我们在没有Idea的时候常常更需要thinking & reading。但是两者的顺序确实是一个很具科学意义的,许久以来在网上看到phd们都说reading,reading, and reading然后你就会有idea了,似乎他们是在说先读后想,这有点孔子的温故而知新的意味。而今天我获得了一个新的思想,那就是先thinking后reading,毕竟reading是知识的积累,但是真正对于我们有意义的是自己的思想,通过reading来验证自己的thinking是否有缺陷,如果有,那么很好取长补短,如果没有在reading中找到类似的工作,那么我就得到了一篇论文。而先reading就会让自己身陷一片文字的流沙之中,如果缺乏对自我的把握,就会迷失了自己的方向,甚至搞不出一点思维的火花了。

所以先thinking而后reading。

- 作者: zouzhaonian 2004年12月17日, 星期五 21:22  回复(1) |  引用(0) 加入博采

讲了cygwin的安装,vi的使用,gcc,g++的使用(初级)

从windows到linux -- 编程篇 -- cygwin,在win中开发linux程序

从windows到linux -- 编程篇 -- cygwin,在win中开发linux程序
    乾坤一笑[smileonce]    smileonce@126.com   2004-7-23
    版权所有 转载请注明出处  http://blog.csdn.net/smileonce


从windows到linux -- 编程篇 -- cygwin,在win中开发linux程序

从windows到linux -- 编程篇 -- cygwin,在win中开发linux程序
    乾坤一笑[smileonce]    smileonce@126.com   2004-7-23
    版权所有 转载请注明出处  http://blog.csdn.net/smileonce

    很多用windows的朋友不习惯于用linux的开发环境。虽然很乐意尝试一下,但是往往怕linux系统打乱了自己的正常生活:1〉装linux系统把windows系统给搞坏了,导致自己无法正常生活;2>linux开发上手太难,写出第一个helloworld不亚于java的难度,环境配置摸不着头脑。 对于此,我的看法是:路不管平还是陡,终归你要走的,如果你愿意投入到linux开发的社群中来,不会安装linux系统,不会配置工作环境是不能想象的。(事实上,确实要了解很多东西的原理,不然很难排错:诸如,硬盘引导器的引导原理、分区结构原理及linux分区结构和文件系统、环境变量的设置、种类繁多的压缩包安装包的解压安装方法、用户管理权限管理等常用命令、以至于驱动安装系统中文化等等异常琐碎的东东)。

本文试图跳过这个难走的步骤,启用一个win环境下的linux仿真器(和linux下面的命令行开发环境基本一致),用短短的20分钟的时间,教你做出一个纯正的linux下gcc编译的helloworld。就象是买点心前先尝尝味道,不也是一件很愉快的事情么?(注:cygwin事实上不仅有此模拟功能,它也是移植unix<-->win程序的一个很有效的工具,也有人用它来做嵌入式系统开发)

一、cygwin是什么?
   这个问题你最好google一下"cygwin的历史",或许能够获得更为详尽的答案。简而言之,cygwin是一个在windows平台上运行的linux模拟环境,是cygnus solutions公司开发的自由软件(该公司开发了很多好东西,著名的还有eCos,不过现已被Redhat收购)。插一句废话,很多朋友不明白linux和unix的区别和联系,在此也简要介绍一下。UNIX是一个注册商标,是要满足一大堆条件并且支付可观费用才能够被授权使用的一个操作系统;linux是unix的克隆版本,是由其创始人Linus和诸多世界知名的黑客手工打造的一个操作系统。为什么linux和unix之间有很多软件可以很轻松的移植?因为linux也满足POSIX规范,所以在运行机制上跟unix相近。  
   以下引用网上的一段话(出处:http://blog.csdn.net/glock18/archive/2004/07/10/38275.aspx),
用于说明cygwin的工作机制:cygnus当初首先把gcc,gdb,gas等开发工具进行了改进,使他们能够生成并解释win32的目标文件。然后,他们要把这些工具移植到windows平台上去。一种方案是基于win32 api对这些工具的源代码进行大幅修改,这样做显然需要大量工作。因此,他们采取了一种不同的方法——他们写了一个共享库(就是cygwin dll),把win32 api中没有的unix风格的调用(如fork,spawn,signals,select,sockets等)封装在里面,也就是说,他们基于win32 api写了一个unix系统库的模拟层。这样,只要把这些工具的源代码和这个共享库连接到一起,就可以使用unix主机上的交叉编译器来生成可以在windows平台上运行的工具集。以这些移植到windows平台上的开发工具为基础,cygnus又逐步把其他的工具(几乎不需要对源代码进行修改,只需要修改他们的配置脚本)软件移植到windows上来。这样,在windows平台上运行bash和开发工具、用户工具,感觉好像在unix上工作。关于cygwin实现的更详细描述,请参考http://cygwin.com/cygwin-ug-net/highlights.html

二、cygwin的安装。
  cygwin的安装文件很容易通过google找到。目前国内的网站上有"网络安装版"和"本地安装版"两种。标准的发行版应该是  网络安装版。两者并无大不同,下面介绍一下安装的过程。

  step1. 下载后,点击安装文件(setup.exe)进行安装,第一个画面是GNU版权说明,点"下一步(N)—>",
进入安装模式选择画面。

  step2. 安装模式有"Install from Internet"、"Download form Internet"、
"Install from Local Directory" 三种。"Install form Internet"就是直接从internet上装,适用于网速较快的情况。如果你和我一样网速不是很快,或者说装过之后想把下载的安装文件保存起来,下次不再下载了直接安装,就应该选择"Download form Internet",下载安装的文件(大约40M左右)。
事实上,所谓的"本地安装版",也是别人从网上下载全部文件后打的包(适用于中国国情嘛^_^)
 
  step3. 接下来是选择安装目的路径和安装源文件所在的路径,之后就进入了选择安装包所在的路径。
注意了阿,这里可是重头戏。我第一安装的时候就是没有看清这一步,结果没有把gcc装进去,导致没法编译文件。
   + All  Default
      + Admin Default
       ....
      + Devel   Default
      + Editors Default
      ....
如上图所示,你在这个TreeView的某个节点上双击,就可以改变它的状态,如Default、Install、Uninstall、Reinstall四种状态。默认的都是Default状态,很多工具的默认状态都是不安装。
在这里我选择了在All这一行上后面的Default上点Install,全部安装,以免后患。(注意:这里的树形控件和win下面的不同,你试试点在All上点 和 在All这一行后面的Default上点,会有不同的响应)

  step4. 点下一步,安装成功。它会自动在你的桌面上建立一个快捷方式。

 

  好了,下面就开始我的linux旅程了。双击cygwin的快捷方式进入系统。
首先介绍几个简单的linux命令。
pwd   显示当前的路径
cd    改变当前路径,无参数时进入对应用户的home目录
ls    列出当前目录下的文件。此命令有N多参数,比如ls -al
ps    列出当前系统进程
kill  杀死某个进程
mkdir 建立目录
rmdir 删除目录
rm    删除文件
mv    文件改名或目录改名
man   联机帮助
less  显示文件的最末几行

由于linux下面的命令大多都有很多参数,可以组合使用。所以,每当你不会或者记不清楚改用那个参数,那个开关的时候,可以用man来查找,比如,我想查找ls怎么使用,可以键入
$  man ls
系统回显信息如下:
LS(1)                          FSF                          LS(1)
NAME
       ls - list directory contents
SYNOPSIS
       ls [OPTION]... [FILE]...
DESCRIPTION
       List information about the FILEs (the current directory by
       default).  Sort entries alphabetically if none of -cftuSUX
       nor --sort.
       -a, --all
             do not hide entries starting with .
       -A, --almost-all
             do not list implied . and ..
       -b, --escape
             print octal escapes for nongraphic characters
       --block-size=SIZE
             use SIZE-byte blocks
:
很全是吧,嘿嘿。

好了,多说无意,让我们来写一个hello world程序。
# cd
  进入了/home/administrator目录,我当前的登陆帐号是administrator

# mkdir source
  建立一个叫做source的子目录

# cd source
  进入 /home/administrator/source

# vim hello.c

   启动vim编辑器,来编写程序。好了,现在有必要简要介绍一下vim。
在linux界,有两大编辑器最有历史。其一是vi,其二是emacs。vi现在已经演化成了vim,比当前的vi更为强大。vim和emacs是两种截然不同的东西,vim强调用简洁的命令来完成功能,无论是查找、替换、
正则表达式匹配、编译、链接、排错、函数间跳转等等等等都在命令行中完成,并且它把方向键也集成在了hjkl四个键之上,可以说,用了vim基本上可以不用鼠标了:p  emacs则是在功能强大上做文章,版本控制、模拟多种编辑环境、对文本进行各种操作,可谓之一个强大的文本处理系统。emacs是用诸如Ctrl+Alt+K 之类的组合键来控制的;vim则是用se(set 的缩写)等简洁命令来控制的。
   由于cygwin中只提供了vim(能不能自己装emacs我还没有试过),我们就先体验一下vim吧:p
vim加载文本文件后分为命令模式和插入模式两种。插入模式,顾名思义就是输入编辑文本;命令模式,则是输入各种vim的控制命令,常用的有:
   i  进入编辑模式
   h  左移
   j  下移
   k  上移
   l  右移
   w  存盘
   q  退出
   ! 强调执行

有些命令是可以组合使用的,如果你修改了某个文件,想存盘退出,则可以使用wq;如果你想放弃存盘,直接退出则可以使用q!  好了大家体验一下吧,记住:从编辑模式退回命令模式按"Esc",再按":",在输入指令,从命令模式进入编辑模式用i,初次使用vim肯定很难受,嘿嘿,不过用多了就习惯了,确实很省劲。

我们编辑hello.c文件,输入:
#include

int main(void) {
  printf( "Hello World!");
}
然后,输入wq命令退到命令行。
输入编译指令:
# gcc hello.c -o hello
编译成功后可以看一下
# ls
看到hello.exe了吧,嘿嘿。
好,让我们运行看看。
# ./hello
效果如何?不错吧? :)

okey,现在玩一个C++的hello world,
# vim world.cpp
输入:
#include
using namespace std;

void main() {
  cout << "Hello World!";
}
编译C++程序要用g++
# g++ world.cpp -o world
运行一下哈,
# ./world

如何,效果不错吧?诸位都是高手,走到这步应该编些简单程序都不成问题了吧:p
好了,关于如何编写makefile文件,如何用gdb下次再说了。

- 作者: zouzhaonian 2004年12月16日, 星期四 16:41  回复(0) |  引用(0) 加入博采

关于cygwin的一些资料(初级)
今天要在windows2000下安装xfig(http://www.xfig.org)引出来安装cygwin(http://cygwin.com)的问题。以前从来没接触过UNIX现在觉得好挠头。

cygwin的安装

cygwin的安装过程比较特别。先在http://cygwin.com下载setup.exe, 然后运行它。有3个选项:
Install from Internet/Download from Internet/Install from local directory,在前
两项中选一个,会问你下载到什么地方,安装到什么地方,只给你一个人用还是所有用户
都可以用以及文本文件的类型(UNIX/DOS),下载时直接连接还是用IE的设置或通过代理,
请按实际情况选择。setup.exe会连接存放cygwin的相应网站并给出网站列表,这段时间也
许比较长。请在列表中选择一个,或者自己输入一个网址。连通以后setup会给出一个软件
包列表。注意:默认情况是default,不会安装XFree86.如果想使用图形界面,必须把XFre
e86由default改成install
,如果速度足够快,可以把列表的第一项,也就是All由defaul
t改成install,如果对UNIX或Linux比较熟悉,可以点击加号,展开每一项进行定制。确定
以后开始安装或下载。假设你首先选择了Download from Internet,下载结束以后要再次
运行setup.exe选择Install from local directory进行安装,注意由default改成instal
l。完全安装需要600~700兆空间。cygwin不含大家比较熟悉的KDE,如果你喜欢它,请到w
ww.sourceforge.net搜索kde on cygwin并下载cygipc-1.09-2-bin.tar.bz2
cygwin-1.3.2-1p1.tar.bz2
kdebase-1.1.2-b1.tar.bz2
kdegames-1.1.2-b1.tar.bz2
kdelibs-1.1.2-b1.tar.bz2
kdemisc-1.1.2-b1.tar.bz2
kdesupport-1.1.2-b1.tar.bz2
kdeutils-1.1.2-b1.tar.bz2
qt-1.45-b1.tar.bz2
setup.ini,把它们放在同一目录下,运行前面提到的setup.exe,输入kde的路径,选择a
ll,进行安装。安装方法实际在kde-1.1.2-b1.README中。kde也许运行得不会很好。不如W
indowMaker.

如何启动图形界面?

键入startx启动x-windows

cygwin下面可以使用rpm吗?

cygwin下面可以用dpkg, 这个在offcial里面就有, 而且原来还有一个Debian/Cygwin
计划

- 作者: zouzhaonian 2004年12月15日, 星期三 01:16  回复(0) |  引用(0) 加入博采

一个索要文章全文的模板

Dear Dr. (author name) 
  
I would appreciate receiving a reprint of your article: ********(????),??? . 
However, this Journal is not available in our library. 
Thank you very much for your consideration. 
Respectfully yours, 


Yourself name 

写得还可以哈


- 作者: zouzhaonian 2004年12月6日, 星期一 00:01  回复(0) |  引用(0) 加入博采

歪脖唠嗑开张

今天是小店"歪脖唠嗑"开张的日子!名字有些怪异实属无奈,谁让想好的名字让他人捷足先登了呢!不过还好,给我剩下了一个weblogger的构思,遂取名"歪脖唠嗑";-)


- 作者: zouzhaonian 2004年11月24日, 星期三 11:57  回复(0) |  引用(0) 加入博采