Sunday, August 26, 2007

Linux: an accelerator to download

There is a good small software in Linux to download by http/ftp. It is called as axel.

It is a XunLei-like tool. Enjoy!

Saturday, August 25, 2007

Linux:commands: how to kill jobs in background

If you have jobs running in background, you could kill them by the easier way than finding their PID and kill them. Just use the command jobs to find which job is running in background, and then pick up the job you want to kill, use kill %1 (here 1 is the job number)

Saturday, August 18, 2007

D0: code management link

This is a link to get started with D0 code management

Monday, August 13, 2007

Latex: a good link to description of commonly used Latex packages

Some commonly used LaTeX packages are described at this link (in Chinese), including the package how to create shadow effect of fonts.

Network: a problem about 'Connection reset by peer'

When I log in a remote computer by ssh from my home and if I keep it inactive for a while (for example, 10 mins), I often was kicked out with the message, for example:
=====================

Read from remote host jasper-clued0.fnal.gov: Connection reset by peer
====================

This happened probably because a firewall or other packet filtering device (such as your router) drops idle connections after a certain period of time.

------------------------------------------
A solution based on the ssh server side
can be found here (Dugan provided me with this solution):

http://www.brandonhutchinson.com/OpenSSH_ClientAliveInterval.html

Simply speaking, the solution is add a line

ClientAliveInterval 300

in the file:

/etc/ssh/sshd_config

and reload the sshd server configuration with

/sbin/service sshd reload

--------------------------------------
Another solution based on client side provided by my colleage Horst at Fermilab is:
to add

echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time

into the file /etc/rc.local

Wednesday, August 8, 2007

Latex: how to install package

Use the command mktexlsr to update the index of Latex.

latex: how to post text and graph on absolute position on one page

I copied the introduction from its home page http://nxg.me.uk/dist/textpos/ :

Textpos

Lay out text and graphics at arbitrary positions on the LaTeX page.

The textpos home page is at http://purl.org/nxg/dist/textpos

Version 1.7d, 2007 March 30.

This package facilitates placing boxes at absolute positions on the LaTeX page. There are several reasons why this might be useful, but the main one (or at least my motivating one) is to help produce a large-format conference poster. Other applications include placing material within, say, figures.

This package provides a single environment, which contains the text (or graphics, or table, or whatever) which is to be placed on the page, and which specifies where it is to be placed. The environment is accompanied by various configuration commands. See the manual (pdf).

Locations of visitors to this page