howto Set up Ghost with Podman on a VPS I recently moved this website / blog from Jekyll to Ghost, just to try it out after hearing quite a lot of nice buzz about it lately. I had this small personal VPS at hand, so I decided to give it some space there, and use Podman (and its quadlets feature)
activerecord Featured An introduction to Barley, the fast model serializer I have published a simple ActiveModel serializer called Barley. It is very, very fast, easy to use, and it comes with caching and type-checking baked in. Here is a little introduction.
estimates Working For Your Manager’s Success It’s one thing to give an estimate, but it’s another to commit to a date, knowing the challenges that lie ahead. It is this commitment, rather than just an estimate, that we, as software developers, must learn to master.
adhd From Chaos to Clarity: My Journey with ADHD, TickTick, and PARA I have ADHD. If you want to learn more about what it is, check out this video. The TL;DR is that my attention doesn’t work like most people’s. It’s either scattered in a thousand directions or laser-focused on one topic. I’m the guy who goes
rails Track and debug your ActiveRecord SQL queries with annotations I recently discovered a handy feature introduced in Rails 6. This feature allows you to annotate your SQL queries with comments directly embedded in the query itself. I know, I’m a bit late to the party, but I suspect I’m not the only one, so here’s a
development Reach your Ruby Zen The Ruby community is full of great resources to learn the specifics of the language. One small tool I regularly return to and recommend to all junior devs looking to discover Ruby is Ruby Koans. A Koan, in Zen philosophy, is an exchange between a master and their disciple that
development Ruby Best Practices - Method Arguments To write readable and maintainable code, follow a few simple rules about argument ordering. Tip 1: Optional arguments go last When a method takes several arguments, and some of them have default values, make sure to put the optional ones at the end. Take this method definition: def foo(a,
development Love your error messages as thyself Learn to hate, then love error messages. Stack Overflow overflow I have lost so much time on Stack Overflow. I mean Stack Overflow is great, and software development knowledge would not be so advanced and so widespread without its great influence. What I mean is that I have often found
development Writing code for your future self We all write bad code. Let’s face it. Even if we do our best at writing the most efficient and well-designed code, we all happen to write this dirty method we don’t feel so proud of and dread having to debug next month, or next year. I’m
kubernetes Lessons learned after migrating from Heroku to a kubernetes cluster Part of the mission I was given when I arrived at my now workplace was the complete migration of our rails hosting from a Heroku service to a kubernetes solution. This was my first experience migrating a production stack, and my first experience with kubernetes as well. And just in
activerecord An alternative to the ActiveRecord after_initialize callback I was playing with dynamic nested forms with Stimulus today and I stumbled upon a void left by Rails’ ActiveRecord callbacks. I have this Caregiver model within a nested form and I need to create it along with a User entity in my form, to be able to populate the
regular Chaining conditions in regular expressions I recently had to make a semi-complex check on a string to validate it. Basically, I have this model method which produces a serial number based on the ID of the object. Valid returned values for this method are L00000002, L00000587 or L00014522. In short, they should be constituted of
carrière A Leap Into the Unknown As I mentioned in a previous post, I’ve started the journey of a career change. After two failed attempts, I’ve finally landed a job as a fullstack developer at a really great company in the Poitiers area. The leave request was sent out yesterday, all my colleagues are
ruby Prevent Devise from sending confirmation emails I am about to release a huge rails project I have been working on for quite a while. This project is meant to replace an old app that manages a database of customers with emails. The new rails project uses Devise for authentication. Before we push the final update to
reconversion Genesis of a Career Change "It’s about time!", my friends will probably say. If I stayed a teacher in the French National Education system for so long, it's because I never really listened to them. Since the goal of this post isn’t to share my 19 years of fascinating
languages Crystal, l'avenir de Ruby Cela fait quelques mois que je suis de près le développement d’un langage informatique qui a fait son apparition il y a quelques années déjà : Crystal. Je suis vraiment un grand fan de code. Au point parfois de regarder mon IDE en me disant : “c’est beauuuuu…” Mais du
wallpaper First, I drink the coffee... …Then, I do the things. Here is a wallpaper I made. Feel free to download… Here it is in 1080x1920 resolution :
dde Deepin, ça a de la Gueule (mais pas que) ! Ca fait maintenant un petit moment que je me suis tourné vers un nouvel environnement de travail sous Linux appelé Deepin Desktop Environment. Ce petit bijou esthétique est l’émanation d’une distribution Chinoise appelée tout simplement ‘Deepin’ basée sur Debian. Pour autant, Deepin en tant qu’environnement est disponible
musique De quoi être fier... Quand Jean-Luc gadreau m'a demandé si j'étais d'accord de composer et d'arranger son prochain album de slam, j'ai tout de suite dit oui. Jean-Luc fait partie de ces gens qui sont très ouverts musicalement et qui n'ont pas
coda Un plugin Coda pour Symfony2 (English below) J'ai créé un petit plugin Coda pour lancer les commandes Symfony2 les plus courantes. C'est un travail en cours, pour l'instant très basique. Mais on peut installer Symfony directement depuis Coda, sans toucher à une ligne de code, pourvu que Git soit
php On démarre avec Symfony2 J’ai décidé de créer un projet avec Symfony 2. Je vais donc en profiter pour mettre quelques notes à ce sujet sur ce blog, au fur et à mesure des bugs que j’ai rencontré. Cela fait trop longtemps que je corrige des bugs, et que, une fois confronté
css CSS et Javascript au régime avec Smaller L'une des étapes de la création d'un site web qui s'avère assez cruciale est l'optimisation du contenu afin de permettre un chargement rapide des pages dans les navigateurs. Un site qui se charge rapidement est aussi un site qui fera plaisir à
mongo MongoDB, l'avènement du noSQL La mise en place d'une base de données relationnelle peut être un vrai casse-tête. Si on s'est déjà lancé dans un projet d'envergure, on se rend vite compte que non seulement la période de planification du projet est primordiale, mais surtout que dès qu&