Remember the path of last login
create ~/.bash_logout
with the following contents:
1 2 | t=`readlink -f \`pwd\`` ln -sfn $t ~/lastdir |
Continue reading ‘Remember the path of last login’ »
Molecular modeling in Materials Sciences Web development Programming IT
Archive for the ‘Articles in English’ Category.
create ~/.bash_logout
with the following contents:
1 2 | t=`readlink -f \`pwd\`` ln -sfn $t ~/lastdir |
Continue reading ‘Remember the path of last login’ »
The Ubuntu CD contents look like these:
There is an executable named “wubi.exe”, which allows you installing Ubuntu alongside with an existing Windows system (dual-boot). However, many people experienced “no response” problem after double clicking the wubi.exe. Some say this is because some of your drives contains non-English labels. However, this is not always the case. On my Windows I have all drives with English names, but I couldn’t get wubi.exe run.
Continue reading ‘Ubuntu wubi.exe installation’ »
The key steps
1. Create a folder named “~/python-packages”, then create a path “~/python-packages/lib/python2.6/site-packages/” with
1 | mkdir -p python-packages/lib/python2.6/site-packages/ |
The above path containing the version number of Python should be adjust accordingly base on the actual Python version you are using.
This step sets up a directory structure that is needed by python modules.
Continue reading ‘Install Python modules as non-root user on HPC cluster’ »
To create more than one window in a gnuplot script could be necessary if you have many data series to plot. The following code snippet shows how:
1 2 3 4 5 6 7 8 |
The essential point here is to use twice(or more times) “set term” commands with different window ID.
Unreal Commander is one of the best file manager software which is free of charge. When you want to synchronize two directories with considering only the specified file types, you will need to define filter string. “*.*” means to compare all files; “*.txt” means to compare also the text file. However, how can you compare any file except for “*.exe”?
Easy! Just add a “|” before the file types you want to exclude as show in the following picture.
Continue reading ‘Excluding syntax for folder synchronization in Unreal Commander’ »
To select a toolkit for GUI programming is something like to select a bottle of wine. Only you know your favorites. Here are mine.
He, the most wanted one, was killed by US army yesterday. It’s said ‘Justice was finally done’.
I saw American people celebrated on squares and in stadiums, releasing their joy of killing an enemy or the fulfilled justice.
Continue reading ‘What do you see after Osama Bin Laden’s death’ »
OK, even after reading the handbook a few times, it is not very clear which python file is the initial script for Qtiplot. It is important to know if you want to extend Qtiplot with python. After checking all the default python files in the Qtiplot installation path, I found qtiplotrc.py should be the one, although a smarter guy would have realized this from its name. You could import your own Python module in this startup file and enjoy them right after entering Qtiplot.
History Expansion
History expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly.