Maxime Daisy - Lecturer (ATER)

What's new ?

I am now a PhD

I defended my thesis the 2 of december. Now I am an assistant professor at GREYC laboratory and IUT Cherbourg-Manche, site of Saint-Lô.

Random publication

[ 5 ]  Maxime Daisy, Pierre Buyssens, David Tschumperlé, Olivier Lézoray,
A Smarter Exemplar-based Inpainting Algorithm Using Local and Global Heuristics for more Geometric Coherence , International Conference on Image Processing (ICIP) , pp. 4622-4626, 2014
Ranked one of the 10% best papers w.r.t. the reviewers scores and comments

Tips & Tricks

"! LaTeX Error: Too many unprocessed floats."
There are to many floatting object that are not placed on the document pages.
To solve this problem use:
\clearpage
It will print all figures until the current page, and start a new page.
source: tex.stackexchange
Reset subfigure numbering
Before each:
\begin{figure}
put the following:
\setcounter{subfigure}{0}
Changing algorithm font size
\begingroup
\fontsize{@fontsize@}{@lineheight@}\selectfont
\begin{verbatim}
...
\end{verbatim}
\endgroup
where @fontsize@ is the font size, and @lineheight@ is the line spacing. source: StackOverflow
Reducing paragraph gap between items
\newenvironment{enumerate*}
{\begin{enumerate}%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}}%
{\end{enumerate}}
source: //Safiqul//
Changing a single page geometry
In the premble put:
\usepackage{geometry}
In the document, use this:
\newgeometry{ ... }
% My page content ...
\restoregeometry
{minipage} with a fixed height
\begin{minipage}[t][@height@][t]{\textwidth}
% minipage content ...
\end{minipage}
where @height@ must be replaced with the minipage height. source: StackOverflow
Adding a header dependency to a source file
I have experienced that my program does not compile again when I modify only a header file. This is the way I found in the internet: adding the following line to your CMakeLists.txt.
set_property(SOURCE mysourcefile.cpp APPEND PROPERTY OBJECT_DEPENDS "myheader.h")
source: Stackoverflow
Convert video from a format / container to another using same quality
ffmpeg -i [input] -q:v 0 [output]
Encapsulation

This concept is a good practice in programming. In fact, it allows the dependencies of your modules to be reduced. Javascript language is not a object oriented, and do not provide visibility keyword like "public" or "private" in Java. However, it is possible to encapsulate data inside a module by wrapping the code of the latter inside a an anonymous function as follows:

//
//  This is my super javascript module.
//
var MyModule = (function()
{
    // This will be acessible only within "MyModule"
    const HELLO = 'Hello world !';

    //  This will define the public interface of
    //  your module "MyModule"
    return {
        sayHello        : function()
        {
            alert(HELLO);
        }
    };
})();//<-- do not forget this !

MyModule.sayHello(); // [Hello world !]

Merge several pdf in one pdf
pdftk *.pdf cat output myfile.pdf
Use french dictionnary with ispell
Install aspell-fr unix package.
source: Stackoverflow
Replace spaces by underscores for each filename in a directory
ls | while read -r FILE
do
    neo=`echo $FILE | tr ' ' '_' `
    if [ ! -f $neo ];
    then
	   mv -v "$FILE" $neo
    fi
done
source: AskUbuntu
Check whether a sofware is installed or not
command -v foosoftware >/dev/null 2>&1 || { \
    echo >&2 "I require foosoftware but it's not installed.  Aborting."; \
    exit 1;
}
source: Stackoverflow