Friday, March 14, 2014

Sudo a shell script

$ sudo /full_path/script.sh

Saturday, March 8, 2014

Common Errors in Technical Writing

See:

http://www.ece.ucdavis.edu/~jowens/commonerrors.html

Wednesday, February 26, 2014

How to Make Your Computer’s Browser Use Less Data When Tethering

See:
http://www.howtogeek.com/138658/how-to-make-your-computers-browser-use-less-data-while-tethering/

Thursday, February 13, 2014

Transferring files over SSH

Generally, if you want to download, it will go:
scp user@remote_host:remote_file local_file
where local_file might actually be a directory to put the file you're copying in. To upload, it's the opposite:
scp local_file user@remote_host:remote_file
If you want to copy a whole directory, you will need -r. Think of scp as like cp, except you can specify a file with user@remote_host:file as well as just local files.
Edit: As noted in a comment, if the usernames on the local and remote hosts are the same, then the user can be omitted when specifying a remote file.

Source: http://stackoverflow.com/questions/343711/transferring-files-over-ssh

Friday, February 7, 2014

Single-columned Table or Figure after two-columned Text

Use * suffix for the floating element.

 ex:

text text ...................
text text ...................
\begin{table*}[htb]
\caption{}
\begin{tabular}{C{2cm} C{2cm} C{2cm} C{2cm} C{2.1cm} C{2.4cm}}
..........
..........
\end{tabular}
\end{table*
}


 Source: http://www.latex-community.org/forum/viewtopic.php?f=35&t=22525

Thursday, January 9, 2014

Title page with the LaTeX article class

Use the titlepage class option.
\documentclass[titlepage]{article}

\usepackage{lipsum}

\begin{document}

\title{(title)}
\author{(author)}
\maketitle

\begin{abstract}
\lipsum[1]
\end{abstract}

\lipsum[1]

\end{document}
 
http://tex.stackexchange.com/questions/36929/how-can-i-get-a-title-page-with-the-latex-article-class 

Thursday, January 2, 2014

One bibliography from multiple .bib files

The correct way to load multiple bib files is to use

\bibliography{file1,file2}
 
Note the lack of space between the comma and the files!

Src: http://tex.stackexchange.com/questions/84099/bibliographies-from-multiple-bib-files