Sunday, December 30, 2007
Sunday, December 16, 2007
Print PDF files in black and white
Under MAC OSX, adobe reader doesn't allow you to choose whether to print in black&white or in color. Use Preview instead. The steps are as such
1. Print
2. Color Sync
3. Quatz filter: Black & White
1. Print
2. Color Sync
3. Quatz filter: Black & White
Wednesday, December 5, 2007
1. erase all configureations in Cisco routers:
erase start
reload
2. Initial configuration of Cisco routers:
2.1 no ip domain lookup and logging synchronous
2.2 set an ip address on one interface along with the vty password, so that I can telnet myself.
2.3 set "enable secret", keep enabled, telnet myself using the address configured above to test the password.
erase start
reload
2. Initial configuration of Cisco routers:
2.1 no ip domain lookup and logging synchronous
2.2 set an ip address on one interface along with the vty password, so that I can telnet myself.
2.3 set "enable secret", keep enabled, telnet myself using the address configured above to test the password.
Tuesday, December 4, 2007
position of boxes in LaTaX
Take one kind of box for example, the minipage box.
\begin{minipage}[position]{width}
There are 3 options for "position" , namely , c, t, b, meaning centre, top and bottom correspondingly.
If 'c' is chosen, the vertical center of the minipage will be aligned to the baseline of the surrounding environment.
If 't' is chosen, the vertical top of the minipage will be aligned to the baseline of the surrounding environment.
If 'b' is chosen, the vertical bottom of the minipage will be aligned to the baseline of the surrounding environment.
\begin{minipage}[position]{width}
There are 3 options for "position" , namely , c, t, b, meaning centre, top and bottom correspondingly.
If 'c' is chosen, the vertical center of the minipage will be aligned to the baseline of the surrounding environment.
If 't' is chosen, the vertical top of the minipage will be aligned to the baseline of the surrounding environment.
If 'b' is chosen, the vertical bottom of the minipage will be aligned to the baseline of the surrounding environment.
Sunday, December 2, 2007
Referencing to a float in LaTeX
With \label and \ref, you can create a reference to a float within
your text. Note that the \label command must come after the \caption
command since you want it to reference the number of the caption.
your text. Note that the \label command must come after the \caption
command since you want it to reference the number of the caption.
Saturday, December 1, 2007
Using Chinese in TeXShop
TeXShop is the mac os version of TeXLive.
Using Chinese here is different from that in CTeX. I don't know exactly what happens yet, but I do know one way to use Chinese under TeXShop environment, which is followed:
\usepackage{CJKutf8}
\begin{CJK}{UTF8}{gbsn}
...
\end{CJK}
Using Chinese here is different from that in CTeX. I don't know exactly what happens yet, but I do know one way to use Chinese under TeXShop environment, which is followed:
\usepackage{CJKutf8}
\begin{CJK}{UTF8}{gbsn}
...
\end{CJK}
Monday, November 26, 2007
copy folders in sftp
[from http://www.cae.wisc.edu/site/public/?title=linux-sftp]
Recursive Copy
If you try to copy a folder using the get or mget commands, sftp will complain that it "Cannot download non-regular file: filename". This is because the basic sftp client doesn't allow for a recursive copy. However, the program scp will allow you to do this. The scp command will not allow you to see what's on the sftp server, so the files need to be located using the sftp client.
Note: the scp command is a Unix command, and needs to be run from the Unix prompt. NOT within the SFTP client.
Usage: scp user@host:remote-path local-path
scp is like the Unix command cp and should work similarly. To copy a file from your Unix home directory and put it in the working directory, use the following command:
scp @sftp.cae.wisc.edu:~/ ./
Where is your CAE username, and is the file you wish to copy. Enter your password when scp asks for it. scp works just like a get command in sftp.
To recursively copy files or directories from your CAE account, use the -r switch.
For example, to copy the entire directory "tutorial" from my CAE Unix home directory to the home directory on your machine, the following command would be used:
ComputerName:~ # scp -r username@sftp.cae.wisc.edu:~/tutorial ~/
Where username is your CAE username.
Recursive Copy
If you try to copy a folder using the get or mget commands, sftp will complain that it "Cannot download non-regular file: filename". This is because the basic sftp client doesn't allow for a recursive copy. However, the program scp will allow you to do this. The scp command will not allow you to see what's on the sftp server, so the files need to be located using the sftp client.
Note: the scp command is a Unix command, and needs to be run from the Unix prompt. NOT within the SFTP client.
Usage: scp user@host:remote-path local-path
scp is like the Unix command cp and should work similarly. To copy a file from your Unix home directory and put it in the working directory, use the following command:
scp @sftp.cae.wisc.edu:~/ ./
Where is your CAE username, and is the file you wish to copy. Enter your password when scp asks for it. scp works just like a get command in sftp.
To recursively copy files or directories from your CAE account, use the -r switch.
For example, to copy the entire directory "tutorial" from my CAE Unix home directory to the home directory on your machine, the following command would be used:
ComputerName:~ # scp -r username@sftp.cae.wisc.edu:~/tutorial ~/
Where username is your CAE username.
Subscribe to:
Posts (Atom)