Category Archives: Programming Skill

Error “join: multi-character tab `\\t’” for using join tab

The default separator for linux join is whitespace, when I try to use “t” to instead of whitespace with the command “join file1 file2 -t “t””, following error occurred: join: multi-character tab `\t Here is the resolved method is found … Continue reading

Posted in Programming Skill | Tagged , , | Leave a comment

Two methods to redirect output for “set -x”

I found that the standard direct cannot redirect the output of the “set -x”, following is two methods to redirect output for “set -x” by google and my co-worker: 1: ./test.sh > test.log 2>&1 2: test.sh 2>&1 | tee -a … Continue reading

Posted in Programming Skill | Tagged , , , , | Leave a comment

“set -x”: Prints executed commands and their arguments

I wrote a shell script and every time when I want print the executed commands and arguments I used the “echo” to echo the executed commands, this is not convenient. At the same time I use my co-worker’s shell script, … Continue reading

Posted in Programming Skill | Tagged , , , , | Leave a comment

How to start new process or run shell commands within python?

Starting new process or running shell commands is a common task in python and there are many ways to excute this process. After google the problem in the web, I found the summary of the “start new process or run … Continue reading

Posted in Programming Skill | Tagged , , , , , | 2 Comments

“Nohup” and “Screen”

“Nohup” and “Screen” can be used to run a command even if the session is disconnected or the user logs out. I use them both, but “Screen” is better. What is nohup? As the man page states: “nohup – run … Continue reading

Posted in Programming Skill | Tagged , , , | Leave a comment

Reference of Scheme or Lisp

This is the reference of scheme or lisp which recommended by Dr. Wang: 1. The Origin of Scheme programming language: http://groups.csail.mit.edu/mac/projects/scheme/ 2. Compiler and Interpreter http://www.gnu.org/software/mit-scheme/ 3. Learning Materials http://www.scheme.com/tspl3/ 4. The Mathematical Model behind the Lisp Language http://www.inf.fu-berlin.de/lehre/WS03/alpi/lambda.pdf About … Continue reading

Posted in Programming Skill | Tagged , , | Leave a comment

Google’s Protocol Buffers: Beautiful and Easy

I met a problem when I want put “vector<int>” as data into the Berkeley DB, Dr. Wang told me Protocol Buffers may be one of the best choices. Before that time, Protocol Buffers for me like a stranger, cause I … Continue reading

Posted in Programming Skill | Tagged , , , , , | Leave a comment