# linux

24 November, 2006 - 10:43
Categories:

Remainder mainly to myself: short list of useful options of wget for recursive downloading of dynamic (PHP, ASP, ...) webpages (because wget's man page is too long):

• --html-extension: append extension .html to webpages of which the URL does not end on .html or .htm but with things like .php or .php?q=boo&bar=4.
• --level=3: set the recursion depth.
• --no-parent: do not ascend to parent directory of the given URL while recursively retrieving.

## Using custom LaTeX document classes in LyX

21 September, 2006 - 10:23
Categories:

For writing with LaTeX I prefer using LyX because it hides the ugliness of LaTeX source code behind a pseudo-WYSIWYG frontend (the developers call it WYSIWYM: what you see is what you mean). Including mathematical expressions, however, is very LaTeX minded and comfortable: you type LaTeX math constructs (stuff with _, ^, \sum, ...) and LyX directly visualises it as a pretty printed formula. For the advanced LaTeX constructions not available in LyX's interface one can always fall back om "raw LaTeX" input fields. In short, I think LyX is a very handy compromise between the power of LaTeX and the user friendliness of a WYSIWYG system.

Sometimes, for example when writing an article for a conference, one need to use a custom LaTeX document class, recommended by the conference author guidelines. The procedure to make LyX using this custom document class is non obvious and a bit involved. It is broadly explained in the LyX manual (Part Customization, Chapter 5 Installing New Document Classes, Layouts, and Templates), but here is the short version (for teTeX on Linux or related systems, I don't know about Windows):

## Making a video from frames with transcode

20 August, 2006 - 11:51
Categories:

Making a video from a set of frames can be done with transcode as follows.
Disclaimer: this is mainly a reminder to myself, based on these instructions for making animations from frames, with some extra's.

First make a file with the filenames of the individual frames (in the right order of course). E.g. if the frames are named /tmp/0001.png, /tmp/0002.png, ..., /tmp/0100.png:

$> ls /tmp/0*.png > framelist.txt Also, indentify the size of the input frames. E.g. with ImageMagick's identify:$> identify /tmp/0001.png
/tmp/0001.png PNG 400x300 400x300+0+0 DirectClass 65kb

Then invoke transcode with the frame list as input: