Nine Rivers

Molecular modeling in Materials Sciences Web development Programming IT

Entries for February, 2010

Handy ‘which’ command on Windows

VERY handy! 12345678910 @echo off rem ——————————————————– rem File: which.cmd rem Description: Windows equivalent of Unix which command rem Author: Pankaj Kumar rem Copyright 2004 Pankaj Kumar. All Rights Reserved. rem License: This software is available under GPL (http://www.gnu.org/licenses/gpl.html) rem ——————————————————— setlocal if "%1" == "" goto noArg

Firefox和ThunderBird自动优化内存使用

下面的方法对Firefox和ThunderBird都有效: 在Firefox地址栏输入about:config或ThunderBird的工具-》高级-》配置编辑器中, 增加布尔变量config.trim_on_minimize为true。

Print directory tree on Windows and Linux using tree, sed, awk or Python

Windows: there is ‘tree.com‘ command showing the directory structure. http://chxkyy.javaeye.com/blog/213864

SSH tunneling and example Python client-server codes

This document demonstrates how we could run client-server software via SSH. The main purpose of using this technique relies on that on most HPC servers most of the IP ports are nromally blocked except for the SSH port 22. SSH tunneling settings in PuTTY In this case, the server port 8888 is mapped to the [...]

Formlayout – an user-friendly way to interact

Bash: exit codes for background jobs

Useful commands: wait <pid>: wait the background job with specified pid to be finished and return the exit code ( hint: stored in $? ) jobs -p: list the pids of all the background jobs (hint: use for statement of bash to loop over each process) ( sleep 30s; /bin/false ) & : generate a [...]

LAMMPS has no API document

According to this thread, LAMMPS has no API document available for developers, which is a pity! Similar discuss can be found for Gromacs here, which tells there is no API document neither. Both of them are powerful simulation codes and can be used as libraries, but apparently this is not the encouraged usage. Although in [...]

umount: device is busy

Sometimes after mounting some nfs devices, you cannot easily un-mount them. You get some error: “device is busy”. I often get this error when I want to un-mount some shared folders like ‘/home’ and ‘/usr’.The reason is simple: the devices you are un-mouting are busy;) That’s to say some files on the mouted devices are [...]

  

Your Name (required)

Your Email (required)

Subject

Your Message

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

captcha

Enter the validation code here: