LEFEVRE Damien .net

Tuesday 23 January 2007, 10:51

Abbreviations and Acronyms

To make a list of acronyms use the following package in the preamble:

\usepackage{acronym}

Then you add the list where on want in your document, usually at the end. For example:

\section{Acronyms}
\begin{acronym}[TDMA]
\acro{CDMA}{Code Division Multiple Access}
\acro{GSM}{Global System for Mobile communication}
\acro{NA}[\ensuremath{N_{\mathrm A}}]
{Number of Avogadro\acroextra{ (see \S\ref{Chem})}}
\acro{NAD+}[NAD\textsuperscript{+}]{Nicotinamide Adenine Dinucleotide}

\acro{NUA}{Not Used Acronym}
\acro{TDMA}{Time Division Multiple Access}
\acro{UA}{Used Acronym}
\acro{API}{Application Programming Interface}
\acro{lox}[\ensuremath{LOX}]{Liquid Oxygen}%
\acro{lh2}[\ensuremath{LH_2}]{Liquid Hydrogen}%
\end{acronym}

Now the tags \ac, \acf, \acs, \acl

  • "The \ac{API} provides all methods for the client." gives the following output:
The Application Programming Interface (API) provides all methods for the client.
  • "The \acf{API} provides all methods for the client." gives the following output:
The Application Programming Interface (API) provides all methods for the client.
  • "The \acs{API} provides all methods for the client." gives the following output:
The API provides all methods for the client.
  • "The \acl{API} provides all methods for the client." gives the following output:
The Application Programming Interface provides all methods for the client.

If you get, let's take only the first example, API!:

The API! (API!) provides all methods for the client.

the reason is that you have not give the description for this abbreviation. The second reason could also be that you need to compile twice your report since the first time will updates the files and the second will actually print the proper result.

Monday 15 January 2007, 21:18

Syntax highlighter source code

Comand to run:

  • Full document ready to compile:
pygmentize -f latex -l python -O full -o viewFinder.tex viewFinder.py
  • Part of document to import in a main document:
pygmentize -f latex -l python -o viewFinder.tex viewFinder.py

Friday 12 January 2007, 20:21

Installing Debian on my laptop

I have a old Toshiba laptop with broken a cd player and no other possiblilites to boot an install but the net. I'll make a note later on the netboot server install.

After installing I got an error:

(II)LoadModule "kbd"
(WW)Warning couldn't open module kdb
(II)UnloadModule "kdb"
(EE)Failed to load module "kdb" (module does not exist, 0)
(II)LoadModule "mouse"
(WW)Warning couldn't open module mouse
(II)UnloadModule "mouse"
(EE)Failed to load module "mouse" (module does not exist, 0)

2 packages were missing:

apt-get install xserver-xorg-input-all xserver-xorg-video-all

I'll make a list of the other installed packages later

Thursday 11 January 2007, 10:15

Making and restoring dump file of a database

Here is a memo for the mysqldump command:

  • Making a dump file (b.sql is the file name you want to have for the dump file):
...>mysqldump -hHostAddress -uUserName -pUserPsswd dbName > b.sql;
  • To restore the data go to the directory where b.sql is stored and:
...>mysqldump -hHostAddress -uUserName -pUserPsswd dbName < b.sql;

Thursday 4 January 2007, 18:46

Customize Live messenger

If like me you are forced to use Live messenger on a machine and you are pissed with the crapy GUI advertisement that gives headache... There's a patch that can make thing just a little bit better even if it's still no that...

Here is the link http://apatch.ikhost.com/downloads.php