Nine Rivers

Molecular modeling in Materials Sciences Web development Programming IT

Entries for the ‘中文文章’ Category

Compile gromacs on Cygwin

Just some notes: 1. manually download and install fftw3. Do not use the cgywin package, or the path will not be recognized by Gromacs. 2. Needed Cygwin packages: lapack, gcc, g77, make and nasm. nasm is required for both fftw and Gromacs in order to compile the assembly codes.

Print view for any web page with firefox web developer plugin

Not all websites have links to “printable version” like wikipedia. Although many websites have stunning  look, it is really ugly when you try to print them. Some parts of the pages will be missing or the format is totally a mess. Instead of waiting the website owner realize this and prepare printer friendly pages for [...]

Change Pidgin theme on Windows

I’m using Pidgin v2.7 and Windows XP. I’ve tried most of the methods flying on the internet about changing themes for Pidgin, but none of them works. These include using the gtkthemeselector.exe. I noticed the latest Pidgin using a  “%APPDATA%\.purple\gtkrc-2.0″ to control the look and feel once the “GTK+ theme control” plugin is enabled. The [...]

Nonbond interactions in Materials Studio and unit conversion

1. by default, while using cff91, 1-2, 1-3 pairs are excluded. But 1-4 pair is considered as nonbond pairs. This is valid for both vdW and electrostatic interactions.

Subversion+websvn on Debian

To get subversion+apache2 work on Debian is not very difficult. Basically including the following steps (ref: this post):

通过Samba在VirtualBox的guest和host间共享目录

Virtualbox支持客户机和宿主机之间共享目录,但是根据版本不同,会有些问题。例如对于3.1.x版本,windows XP host和Debian guest组合下,VBox自己的共享目录(写入)性能极差甚至报错(本人遇到)。其实,在客户机和宿主机之间共享文件的还有一些其他方式,例如可以通过ftp或samba,二者都支持所有操作系统下的共享,但是相比之下samba更具优点,因为在Windows和Linux下都可以把Samba共享目录映射为本地磁盘目录。

Copy/paste in gnome-terminal

1. Change the default keyboard shortcuts to ctrl+c and ctrl+v. They are more common shortcuts on most OS. 2. Highlighting texts and Middle mouse button clicking will do copy/paste. These are similar to the operation in PuTTY where right mouse button click is used.

为了环保也要提高代码效率!

目前全球有约10亿台计算机,每台按100Wh实际功率计算,总功率为1亿千瓦时。也就是说每小时耗电量为1亿千瓦。按计算机一天工作10小时计算,一天全球消耗总电量为10亿千瓦时。世界超大型水电站(如三峡电站)在汛期全部机组开动发电量不过4亿千瓦时(参见)。意味着我们需要2-3个这样的超大水电站全负荷供电才能满足基本需求。我们知道,建设一个这样的电站要耗费数以亿计的金钱和数十年的人工。但是,如果作为程序员,往往可以轻易地提高编码质量和运行效率以达到节省计算时间的目的,变相地节约了宝贵的能源,有利于保护地球环境。我觉得如果所有程序员都朝这个方向努力,每天节省一个三峡电站的电量是完全可能的。

Bash下的目录回退

Bash下可以使用”cd -”来实现在当前目录和上一次访问的路径间切换。 如果我们需要回退多级目录怎么实现呢?

Control file extensions of Notepad2

By default Notepad2 add a .txt extension to the file name when you save a newly created file. For files already having extensions, this will not be done. However, this is sometimes annoying if you often create files which do not use txt as extension although they are actually plain text files. I think this [...]

Your Name (required)

Your Email (required)

Subject

Your Message

留言类型: 一般留言 交换链接

captcha

Enter the validation code here: