Nine Rivers

Molecular modeling in Materials Sciences Web development Programming IT

Entries for the ‘Articles in English’ Category

Internal overflow compressing coordinates

I occasionally got this error while running some mpi programs. I could not find the exact reason. Even when I google it, it seems no relevant explanation of it. By investigating the codes with debugger, I notices some data in the memory are huge, when I correct them, the error information was gone too. Therefore [...]

An MPI implementation I didn’t know before

DeinoMPI is an implementation of MPI-2 for Microsoft Windows. DeinoMPI is a derived work from MPICH2 provided by Argonne National Lab.  By starting with the MPICH2 code base DeinoMPI inherits a stable and complete implementation of the MPI-2 standard.  DeinoMPI heavily modifies the original code base and does not rely on anything from Argonne National [...]

Mount Windows shared folders automatically with fstab

A Windows shared folder can be mounted automatically with correct setting in /etc/fstab. The method introduced in this post allows Samba mounting with logon credentials but only visible to the root and specified user.

Add menu item to Mantis

Modify config_inc.php and add 12345678$g_enable_project_documentation = ON; $g_smtp_host = ‘localhost’; $g_window_title = ‘SimuWorld Bugtracker’; $g_logo_image = ‘images/mantis_logo.gif’; $g_favicon_image = ‘images/favicon.ico’; //The following line add two custom menu items with different access level controls //The contants used here can be found in ./core/constant_inc.php, e.g. DEVELOPER, ANYBODY etc. $g_main_menu_custom_options = array( array( "WebSVN",DEVELOPER,’url_to_websvn’ ),array( "test", ADMINISTRATOR,” ) [...]

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.

Sound for non-root users on Debian

After a fresh installation everything seems work fine on my Debian. But for a non-root user, the volume control widget on the gnome desktop shows a little red cross, and there is no sound. It’s good if you hate playing music while you are working. However, in case you want it, there is a simple [...]

Where to download xulrunner-1.8.1.3 (or older version)?

The download link of this version on the Mozilla webpage has broken. But you can find it here.

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

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

Your Name (required)

Your Email (required)

Subject

Your Message

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

captcha

Enter the validation code here: