Skip to main content

Going barefoot

Every body has unbalanced legs

Humans are not symetric. As a result the legs are not exactly the same size. For some the size diffence leads to pathologies particularly for sportsmen. Thurty percent of running people have the iliotibial band syndrome which is a consequence of such unbalenced body. As a chronic disease it is complicated to heal and sometimes changing shoes or environment is sufficient to relapse and a podiastrist treatment is often necessary.

Read more…

Earth sana in corpore sano

Society produces more and more Energy

Human have gradualy been less and less physical: hunter/trapper, farmer, workers and novadays digitalized works. In the meantime, it turns out food has been more and more easy to get. We saturate of energy.

Read more…

Concatenating pdf

The command below is great to concat multiple pdf together. I had some problem with pdftk.

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf mine1.pdf mine2.pdf

Also this command allows to compress a large pdf into something smaller:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf

It is also possible to split pdf with pdfbox:

java -jar /app/edsr/script/java/pdfbox-app-2.0.0-SNAPSHOT.jar PDFSplit ./authorisation-inscription.pdf

Jupyter Notebooks and Conda

After creating a environment with conda and installing packages, the jupyter notebook environment may not see them. The method below adds a new kernel based on the later environment and allow to benefit from conda:

conda activate my-env
conda  create -n my-env pip setuptools ipykernel python=3.5
python -m ipykernel install --user --name my-env --display-name "Python (my-env)"

Loading Postgres from Sqoop

PostgreSQL and Hadoop are complementary technologies. PostgreSQL outperforms Hadoop to retrieve small amount of information from multiple tables. Hadoop outperforms PostgreSQL to transform multiple tables into simplfied and aggregated tables. So, how to load PostgreSQL efficiently from Hadoop ?

Read more…

Deploying Nikola with Githup Pages

The simple way

Its about using the docs github pages method.

  1. create a new github repository
  2. create a /docs/ folder with the website in it
  3. enable github pages and specify the docs folder as html source

Why the simple way

The alternate way is to use a gh-pages branch to store the website. The main problem is the method leads to highly complex deployment method with git subtree or other way

A second problem is this method make either duplicate website source code, or makes building the website for each post.