A Code Monkey's Blog

Midnight commander's new user data directory

It seems that the user-specific data/config directory of midnight commander 4.8.x is under $HOME/.local/share/mc and $HOME/.config/mc. However the previous version(4.7.x) is looking for $HOME/.mc. You can verify that by typing

mc -F

Personally I don't like this ...

Gnuplot: how to skip the first line in the data file

It is very likely that the data file you are going to visualize has a one line header at the first line. Use 'every' keyword to skip the first line like this.

plot "foo.dat" every ::1 using 1:2 with lines

Similarly you can skip 2 or 3 or ...

Octave plot legend fontsize?

I wanted to create a line plot in Octave today and saved it as a eps file. But no matter how hard I tried I simply couldn't change the font size of the plot legend. It was too small in my document. There is already much discussion about it ...

GNU Parallell, make best use of your multicore computer

In my research work, I have to run many many times of the same program with different parameters. I wrote bash files to make my life easier. But single process of bash is very slow considering I have a decent computer with 24 cpu cores. My old way to make ...