First, make sure that you have visited David Fanning's website
and have looked at most (if not all) of his tips and tricks. I
will try to put things in here that (I think) are not on Fanning's
website. The following are arranged in the order that they
came to my mind and are probably only applicable to IDL on linux.
All of these compile_opt statements need to be put in *every*
program that you ever write; otherwise, the default behaviour of IDL will be
in effect. The compile_opt options in your startup file only affects your
command-line environment.
Misc. Tips & Tricks
Changing the volume on mplayer
The default behaviour of mplayer is to change
the volume level by 3% and you achieve this by using the "/"
and "*" keys to decrease and increase the volume respectively. However,
at least on my system, 3% level is too loud for me and 0% is too
*silent* ! If you have this problem, you can invoke mplayer with the
command line option "-volstep 1" and change your increment to 1%. Ohh
and you should invoke mplayer with the additional command line parameter "-af volume=-20"
where the number is the amount of (negative) gain you want for your audio level.
Wrong figure numbers while using Fig~\ref{identifier} in LaTeX
You probably have your "\label" right after your
\begin{figure}. Switch the label to just before \end{figure} and you
will get the correct numbering. In the previous (wrong) mode, latex
thinks that the (sub)section number is actually your figure (this is probably
true for all floating environments, but I havent checked).
The booktabs tabular package in LaTeX
Have you ever been in a situation where you want to
do a \cline but the neighbouring \cline's join and produce one continuous
line. If so, the booktabs package is the solution. Here is the
pdf for the
booktabs manual
Unit conversion in linux (not google calculator)
There is very nifty command line unit conversion tool - units (!)
that is available on linux. It will convert all those astrophysical standard units into
any thing you fancy. Hubble parameter in units of "/s", "km/s" to "megaparsec/myr" ..etc.
Google calculator does a decent job of normal conversion tasks but units has a
larger base system of units. (Cygwin also has "units" -- in case you have
a Windows laptop)
Wrapping long commands in bash
I had a big problem in bash where commands extending beyond
the line would not wrap and start over-writing the front of the line (i.e., the
PROMPT and so on..). The fix for this situation is:
set horizontal-scroll-mode on
Copying hidden files with scp (on linux)
If you are copying files with scp, the typical usage
scp -pr source/* dest
will only copy he normal files and ignore the hidden files. If you want to copy
those hidden files/directories as well, you will need to use this
command instead:
scp -pr source/. dest
(And yes, I/you should really be using rsnync instead)