Node.js 20 upgrade: a Journey through unexpected HEAP issues with kubernetes
- 13 minutes read - post - Node.js - Tech - Kubernetes - Proofread by humansThe journey to an high availability NodeJS upgrade (18 to 20) and the unexpected consequences induced by Kubernetes best practices. Hop in!
Custom package name for go libraries
- 3 minutes read - post - Tech - Go - Proofread by an LLMI recently released a small project called poulpe.ztec.fr. I personally use this repository as a library in one of my other projects. When I do so, my import statement looks like this: // main.go import git2.riper.fr/ztec/poulpe I have two issues with this approach: It’s ugly, right ? If I ever change the location of my library, the import statement will break. (You may have already noticed the ‘2’ in the name. […]
poulpe.ztec.fr - The emoji search engine open-sourced
- 1 minutes read - post - Tech - Go - Emoji - ProjectsI talked about it in my previous post, I made an emoji search engine. It is integrated into my systems. But as I had sometimes, and it was quite fun to do it, I made a standalone version that I published online Now, you can test it and see the code by yourself. The preview: https://poulpe.ztec.fr The code: https://git2.riper.fr/ztec/poulpe or https://github.com/ztec/poulpe Search result for the query love displaying some emoji related to love Thank you reading this, […]
🐙 Search engine for emoji in go
- 12 minutes read - post - Tech - Go - Emoji - Proofread by an LLMFor a project of mine, I had to handle emojis. The goal was to create a search engine to find emojis. I am not starting from scratch and have to include my code into an already existing Go program. So, let’s see how to build a little search engine for emojis in Go. TL;DR: The full result is available here: git2.riper.fr/ztec/emoji-search-engine-go You can also test and see the final result. All details here: poulpe. […]
Webcam on = Lights on (Philips Hue)
- 5 minutes read - post - Linux - Philips-Hue - Tech - Bash - Proofread by an LLMOn my desk at home, while working remotely and doing a video call, I turn on my webcam. I find it more pleasant for others to be able to see me. I also appreciate it when others do the same, but everyone has their preferences on this subject. To ensure that my image is clear and clean, I installed a lamp that shines a lot of lumens on my face. This way, I’m sure I’m visible! […]
One command to win 1.2To of free space
- 3 minutes read - post - Linux - Ext4 - TechTL;DR: Ext4 partitions reserve 5% of the volume to ensure enough free space is always available. I have tuned my ext4 filesystem to reduce reserved space from 5% to 0.05% to maximise usage on a multi Terabytes volume. For that I use the following command sudo tune2fs -m 0.05 /dev/vda I have NAS I have a personal NAS that I manage myself. No TrueNAS or anything pre-made. I manage it myself on a computer. […]
Go Library to Parse EDF Teleinfo Data
- 5 minutes read - post - Tech - Go - Raspberry pi - Data hoardingTL;DR: I just released a library to read and parse data from french electronic energy meters (linky or older models). https://git2.riper.fr/ztec/go_edf_teleinfo also on github Once upon a time Since 2018, I have a raspberry-pi hanging near my EDF energy meter. Following some tutorials back then, I have connected them to follow my energy consumption in real time. Without going into the details, EDF electronic meter (even before the ugly linky was imposed) have 3 connector on the right lower hand side. […]
Kafka: Must know
- 10 minutes read - post - Kafka - TechLogo of Apache Kafka You are a developer, and you heard of Apache Kafka, the message broker, and you find it probably complex and difficult to work with. Today, I will try to give you the basic knowledge about kafka you need to know to be able to work with it on a daily basis. This page is what I compiled over the years as my simplified view of Kafka and I often use it to explain Kafka to my pairs. […]
Backup with Borg
- 9 minutes read - post - Linux - Raspberry pi - TechYou probably already heard of the OVH’s recent fire. It was a hard reminder for many people and companies. Many websites and services had big outage consequently and some lost everything in the fire Picture of OVH’s strasbourg datacenter burning Most website went down for few hours. Avoiding service interruption when a whole datacenter disappear is not something easy. Some already had everything in place for this kind of scenario. I won’t talk about that today. […]