Archive for the ‘Articles in English’ Category.

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’ »

Ubuntu wubi.exe installation

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’ »

Install Python modules as non-root user on HPC cluster

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’ »

Multiple windows with gnuplot

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
set term wxt 0
set grid xtics ytics
plot 'prop_stat.txt' u 1:2 ti "rg" w l, \
'prop_stat.txt' u 1:3 ti "rg^2" w l, \
'prop_stat.txt' u 1:4 ti "e2e^2 " w l
set term wxt 1
set grid xtics ytics
plot 'prop_stat.txt' u 1:5 ti "/" w l

The essential point here is to use twice(or more times) “set term” commands with different window ID.

Continue reading ‘Multiple windows with gnuplot’ »

Excluding syntax for folder synchronization in Unreal Commander

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’ »

Selection of GUI toolkits

To select a toolkit for GUI programming is something like to select a bottle of wine. Only you know your favorites.  Here are mine.

Continue reading ‘Selection of GUI toolkits’ »

What do you see after Osama Bin Laden’s death

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’ »

Wii video format

Python initial script for Qtiplot

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 in depth

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.

Continue reading ‘History expansion in depth’ »