\usepackage{amsmath} % for underset
\newcommand{\aggregate}[2]{\underset{#2}{\operatornamewithlimits{#1\ }}}
\begin{equation}
x^{*}=\aggregate{argmax}{x\in\mathbf{\mathcal{X}}} f(x)-g(x)
\label{foo.eq}
\end{equation}
Looks like:

A repository of notes; by noto, for noto. Made public so noto can read it from anywhere. It won't make any sense to you.
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf source1.pdf source2.pdf source3.pdf
Prereq:
Install dvdbackup
from http://dvdbackup.sourceforge.net
. Note that this requires libraries (i) libdvdread
and (possibly, ii) libdvdcss
. Download and install the libraries, then dvdbackup
(all are ./configure,make,sudo make install). Additional note: I installed libdvdread via mac ports, but dvdbackup
failed to configure because it required a different version. I then downloaded and installed version 0.9.7 separately, then ./configure worked (I also downloaded and installed libdvdcss--not sure if that matters.)
To backup a DVD:
dvdbackup -v -i /dev/disk1 -n NAME -Mwhere /dev/disk1 should be replaced with the device currently associated with the inserted disc, and NAME is whatever name you want to assign to the project. It turns out, the -n option is necessary. Without more options,
dvdbackup
creates a similarly-named directory and writes the files there (the -v
option is just for verbosity--use dvdbackup --help
) hdiutil makehybrid -udf -o NAME.iso path-to-FOLDERwhere NAME is again up to you, but path-to-FOLDER must contain the VIDEO_TS directory created by dvdbackup (it must not be the VIDEO_TS directory itself). Typically, this will be the directory created by
dvdbackup
. hdiutil burn NAME.isoThis, apparently, finds your DVD device, writes and ejects it.
gg=G
=
, the indent command can take motions. So, gg
to get the start of the file, =
to indent, G
to the end of the file, gg=G
..flv
extension. The file will be in location with randomly chosen directory names, e.g., /private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0
.$ sudo find /private/var/folders -name 'FlashTmp*'
/private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0
$ sudo cp /private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0 ~/Desktop/movie.flv
$ sudo chmod 644 ~/Desktop/movie.flv