Cette page appartient aux archives web de l'EPFL et n'est plus tenue à jour.
This page belongs to EPFL's web archive and is no longer updated.

Asl3

internet with a netopia cayman usb modem in linux
I succeeded in connecting to the internet with a usb modem from kubuntu 7.10 (gutsy) on my dell laptop.

I followed the instructions given here: http://ubuntuforums.org/showthread.php?p=2652714

The difficult part was that the modem installation cd given by my provider (bluewin) did not contain any file called 'CnxEtU.sys'.
So I looked for one on the internet and I finally found this cxacru-fw.bin which worked for my netopia cayman 3342 usb modem.
Posted by Micha Hersch at 12:58
Having latex math in ps figures.
If you want to have nice math display in the figures of your latex-generated document use the latex psfrag package.

Let's say you want to include an equation '\theta = 1' in your figure.

1. Generate the figure using your favorite figure-generating program (matlab, illustrator, xfig, or whatever)

2. place some reference text for, for exampe 'my_equation' where you want to put the maths

3. export your figure as .eps

4. In the .tex file use \psfrag right after inserting the figure (in the figure environment)
Use psfrag like this: \psfrag[c][c]{my_equation}{\Large$\theta=1$}
The two [c] arguments means you want to match the centers of of 'my_equation' and '$theta=1. 'You can also use l (for left) or r (right) instead.

5. the ps generated file will have your latex equation instead of 'my_equation' on the figure. You may have to have a \use{psfrag} command in your .tex file.


See http://www.usq.edu.au/users/leis/notes/latex/psfrag.html for a maybe better explanation.
Posted by Micha Hersch at 9:43
How to edit LATEX math symbols with Adobe Illustrator under Windows
1) Download the "pc" version of the Computer Modern and AMS math fonts:

ftp://ftp.ams.org/pub/tex/psfonts/cm/
ftp://ftp.ams.org/pub/tex/psfonts/ams/

2) Install all the pfm files to the windows fonts directory

3) Run Illustrator and load the ps file to modify
Posted by Sylvain Calinon at 15:15
embedded and subsetted font using latex
Here is how I managed to embed and subset all fonts for my paper (as required by IEEE).

latex paper.tex
dvips paper.dvi -Ppdf -G0 -tletter -o paper.ps
ps2pdf -dCompatibilityLevel=1.3 -dMAxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=letter paper.ps


I got those commands from this site:

http://www.paperplaza.net/support/tex.php

Checking that the fonts are subsetted and embedded can be done on linux using the pdffonts command. Just type

pdffonts paper.pdf

Otherwise it is also possible to check it on Acrobat Rreader on windows. Go to
File->Document Properties ->Fonts

For all this to work, I had to make sure that all figures I included have embedded and subsetted font. And here is the tricky thing: when producing a figure with xfig 3.2-4 the character '-' (minus) in the default font (minus) produces fonts that cannot be embedded and subsetted. Thus I had to change all minus characters and write them in the Symbol (Greek) font. Then it worked! Vive l'informatique...
Posted by Micha Hersch at 18:22
Howto: Matlab7 and serial port permissions with Fedora
MATLAB7
**************************************************
Si la version linux de matlab7 en version tar.gz de démarre pas sous Fedora:
- passer en root
- aller dans /usr/local/matlab
- et taper
> chcon -c -v -R -u system_u -r object_r -t lib_t PATH_TO_PROBLEMATIC_LIBS

Pour plus d'infos:
http://support.wolfram.com/mathematica/systems/linux/general/selinux.html


PORT SERIE et PERMISSIONS
**************************************************
Si les permissions du port série changent au redémarage, c'est qu'il y a un fichier qui est chargé au démarrage et qui met des permissions par défaut pour les devices (/dev)
- passer en root et éditer le fichier
/etc/udev/permissions.d/50-udev.permissions

Pour plus d'infos:
> man udev
Posted by Eric Sauser at 0:35
how to install openCV 3.0
- Install opencv 3.0
- Compile all the libraries
- Go to the "Apps" directory and compile an example
- Place the "Lab" directory with the 2 c examples at the same level that "Apps".
(highgui.dll should be copied to the examples folders, too)

If "streams.h" does not exist:
(when compiling cvcam in other_libs directory, for example)

- Install DirectX-SDK
- Add 3 paths to VC++ (see cvstreams.h for more details)
Attention: if you make the link in Administrator mode, the others
will not have the paths addec to their VC++

- if there is linking error during compilation, check if all the .lib have been put in the project settings
- run RegisterAll.bat in openCV/bin, as Administrator, to register the libs.
- Settings->control panel->system->advanced->environment variables, and add a variabvle PATH= %PATH% "c:/openCV/bin/"


If tou want to use CVCam with 2 cameras:

-Compile library of baseclass direct show (C:\DX90SDK\Samples\C++\DirectShow\BaseClasses) in debug and release mode
-Put the lib in openCV lib folder (or create new paths in VC++)
-compile syncfilter
Posted by Sylvain Calinon at 15:32
Howto log automatically using ssh
1) Créer la pair de clés chez celui qui veut se connecter

ssh-keygen -t rsa

2) Copier la clé publique dans le .ssh/ de celui vers qui on veut se connecter

scp .ssh/id_rsa.pub ......

3) Le mettre à la fin du fichier authorized_keys

cat id_rsa.pub >> .ssh/authorized_keys


4) Vérifier les droits d'accès des répertoires
(p.ex pour le user sylvain)
/home/syvain/.ssh ainsi que /home/sylvain

ça doit ressembler à ça, sinon ça marche pas.

> ls -al /home/sylvain/.ssh

drwx------ 2 sylvain sylvain 4096 Mar 22 14:12 .
drwx------ 27 sylvain sylvain 4096 Mar 22 12:37 ..
-rw------- 1 sylvain sylvain 233 Mar 22 14:05 authorized_keys
-rw------- 1 sylvain sylvain 887 Mar 22 12:38 id_rsa
-rw-r--r-- 1 sylvain sylvain 226 Mar 22 12:38 id_rsa.pub
-rw-r--r-- 1 sylvain sylvain 241 Mar 22 14:12 known_hosts

5) T'as gagné...
Posted by Eric Sauser at 14:17
Linux NTFS RPM
http://linux-ntfs.sourceforge.net/rpm/redhat9.html
(type 'less /proc/version' to know the linux version, and download this version)
Posted by Sylvain Calinon at 11:32
Commandes Emacs
http://www.math.utah.edu/computing/unix/emacs.html

GNU Emacs Reference Card
************************************************
http://www.refcards.com/refcards/gnu-emacs/emacs-refcard-fullpage.pdf
Posted by Sylvain Calinon at 11:22
Comments (1)
Tutorial Linux
http://ligwww.epfl.ch/~boulic/C_MicroTechnique/welcome.html
Posted by Sylvain Calinon at 11:20