This is a project from TFY4190 Instrumentering at NTNU.

Here is the report: Shy Robot-Arve Seljebu and Joakim Larsen

And a video: Arduino Shy Robot with IR proximity sensors

# Category: school

## Changing margin in the middle of Latex-document

Linux Mint 10 includes geometry.sty version 4.2. In geometry.sty version 5, you get some extra snacks, like changing page layout mid-way.

Install the latest version:

wget ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/geometry/geometry.dtx

wget ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/geometry/geometry.ins

tex geometry.dtx

tex geometry.ins

sudo mv /usr/share/texmf-texlive/tex/latex/geometry/geometry.sty /usr/share/texmf-texlive/tex/latex/geometry/geometry.sty.old

sudo cp geometry.sty /usr/share/texmf-texlive/tex/latex/geometry

Latex code:

newgeometry{margin=2cm}

something

restoregeometry

## matlab and Linux Mint 10

Matlab 7.11(R2010b) did not play well with my Linux Mint. First off, it would not recognize special characters in my language (æøå – Norwegian). This is because Matlab does not recognize utf8 in small caps. http://www.anders.bennehag.com/blog/2010/matlab-and-ubuntu-10-04/

Solution

`LANG=nb_NO.UTF-8 matlab`

Second, Matlab would not start from a desktop shortcut. Found solution here: http://ubuntuforums.org/showthread.php?t=483965&highlight=matlab

`LANG=nb_NO.UTF-8 matlab -desktop`

Or put it in a file and make it executable:

sudo su

echo -e '#!/bin/bashnLANG=nb_NO.UTF-8n/opt/MATLAB/R2010b/bin/matlab -desktop' > /usr/local/bin/matlab

chmod +x /usr/local/bin/matlab

exit