LEFEVRE Damien .net

< 1 2 3 4 5 6 7 8 >

Friday 23 March 2007, 13:58

Curriculum Vitae

I'm currently looking for a S60 SW development, summer trainee. Please don't hesitate to contact me.

LEFEVRE_Damien_cv1-1.pdf

-Damien

Thursday 15 March 2007, 17:26

Share HP PSC 1350 printer with cups

Today I managed to install and share my HP PSC 1350 printer on my Debian

Libs to intall:

apt-get install hpijs hp-ppds hplip hplip-data

Run

hp-setup

Then follow the instructions. You should now be able to use the scanner and everything that wasn't recognized with the generic driver that only allowed me to print.

Now if you want to share the printer with a windows XP machine, then follow these instructions (no need to play around with Samba!):

https://help.ubuntu.com/community/NetworkPrintingFromWinXP

When adding the new printer on your Windows machine, you won't find the driver for your PSC 1350, so just choose the Generic MS Publisher Color Printer driver and it will do the trick :)

And the best of all at the end: you just saved from 500 Mb to 1Gb of installation you would have need to install the printer on a Windows machine :D

Wednesday 14 February 2007, 09:34

Regular expression

Regular expression reminder

[view]

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;

< 1 2 3 4 5 6 7 8 >