Générer le code LaTeX/chemfig d'une réaction chimique avec Zyme

Posted on Sun 02 October 2022 in chemie • Tagged with chemie, python, latex

Durant les trois années de licence bioinformatique, nous avons des cours de biochimie, et ceux ci viennent avec leur lots de structure chimiques à connaître.

En L1, j'avais réalisé un document pdf avec LaTeX/chemfig des acides aminées protéinogènes en représentation de FISCHER, et j'avais trouvé ça plutôt sympa, bien …

Continue reading

Faire tourner Stable Diffusion sur Google Colab

Posted on Sat 01 October 2022 in art • Tagged with ia, machine learning, python, notebook


Stable Diffusion est un modèle de deep learning permettant de générer des images photoréalistes à partir d'un prompt texte

J'ai récemment découver ce modèle via lexica.art, après avoir entendu parler des concurents DALL-E, Imagen et consorts.

Stable Diffusion a l'avantage d'être open source: tout le monde peut l'utiliser …

Continue reading

How to mount a shared folder between Linux KVM Host and Guests

Posted on Tue 21 June 2022 in linux • Tagged with qemu, kvm, linux

Sharing folder between KVM virtual machines and host, may be useful. Here is a way found in fedora forum.


Change vm to your vm hostname.

sudo mkdir -p /mnt/shared
sudo chmod -R a+rwX /mnt/shared
sudo semanage fcontext -a -t svirt_home_t "/mnt/shared(/.*)?"
sudo restorecon …

Continue reading

Install Gephi on Linux

Posted on Sun 19 June 2022 in linux • Tagged with graph, visualization, linux

Gephi is a software package for graph visualization. Let's install it on Linux.

Install Gephi

su - # Switch to root
cd /opt/
wget https://github.com/gephi/gephi/releases/download/v0.9.5/gephi-0.9.5-linux-x64.tar.gz -o
tar -xzf gephi-0.9.5-linux-x64.tar.gz
rm gephi-0.9.5-linux-x64.tar …

Continue reading

How to use virtual environments

Posted on Sun 19 June 2022 in code • Tagged with python, R, julia

To not interfere with your os configuration and keep your project reproducible, you should use a virtual environment as long as possible.

Virtual environment are a way to isolate your project from the rest of the system, and to avoid dependencies conflicts.

Python Virtualenv

Lets start by installing the virtualenv …

Continue reading

How to make automatic documentation using Doxygen, breathe and Sphinx

Posted on Wed 15 June 2022 in documentation • Tagged with C++, Doxygen, Sphinx

Doing documentation is required, to allow people to use your project. Here I present a rather easy solution.

Continue reading

How to render LaTeX formula in Pelican

Posted on Tue 14 June 2022 in math • Tagged with math, latex, pelican

Rendering \(\LaTeX\) formulas in Pelican is easy.

Firstly import the pelican plugin in the proper python environment:

pip install pelican-render-math

Add render_math to PLUGINS list in your pelicanconf.py file:

PLUGINS = ['render_math']

Then type formula in your blog post markdown documents:

$$ \frac{1}{2} $$

And …

Continue reading

Compute the inverse of a matrix

Posted on Tue 14 June 2022 in math • Tagged with math, python

I faced recently the issue of computing the inverse of a matrix, when I wrote the Algae library code. I finally found a solution, and here it is.

Continue reading

Draw a Plot in C with GNU plotutils

Posted on Sun 12 June 2022 in math • Tagged with c

Install plotutils


$ sudo apt-get install plotutils-dev


$ sudo dnf install plotutils-devel

Use PlotUtils to plot a graph

Let us draw the \(sin(x)\) function using math library.

#include <stdio.h>
#include <math.h>

#define RANGE 100

// Export data to stdout
void plot(double *x, double *y, size_t len …

Continue reading

Analyse Sound on GNU/Linux using Wine

Posted on Thu 25 March 2021 in audio • Tagged with bat, bird, ultrasound, syrinx, batsound

After recording bats, orthoptera or birds, it is often necesserary to see the spectrograms of the sounds, for instance while analysing Vigie-Chiro Program bat records

The software needed to do so are often only for Windows, in the present article, we will learn how to install these softwares (i.e …

Continue reading