Weeklog #2036
Tech
I've started to work again on an old project of mine : the wall framed e-calendar. It's not framed yet, and certainly not on the wall, but I've started playing around with the ESP32 and the e-ink waveshare screen that I have sitting there for at least 2 years
Comics and Books
No comic book this time, but we've finished the reading of Charles 1943 with the kids. Aidan definitely didn't find it interesting whatsoever, he was mainly drawing on his desk or looking at another book while I was reading it to his elder brother, but Noah did enjoy the story.
We went to the public library on Saturday and we chose Coup de foudre by Nicolas Ancion. I've read one of his book when I was a teenager and his name caught my attention.
Interesting things online
- A quoi ça sert, un père?, Arte Twist (Archive)
- Miller, a command-line tool for querying, shaping, and reformatting data files in various formats including CSV, TSV, JSON, and JSON Lines.
Weeklog #2035
Family
Noah had a kung-fu practice with a teacher coming for the main school in Brussels this Saturday - he did great and was proud of himself after the two trainings he had.
Saint-Nicolas was this Sunday - The kids received a lot of books, Lego, toys and chocolate. I try to make as much memories of those sweet days while they are little, time goes by so fast.
Tech
I've started to try LinkWarden along with Floccus to manage my bookmarks and overcome my fear of the link rot (see weeklog #2033 for context)
I've decided to host in on miaw.be at least for now, the only problem being that the Docker version has a known problem that prevent to preserve a local version of the links - which I guess goes against my purpose here - but there's an open PR that solves it, hopefully it will be merged soon.
On another topic, at work this week, I needed to merge two CSV files based on one column. Being a Ruby developer, I started to quickly write some code to handle that, but the time to process the files (which are both in the 100000+ lines) was taking forever. I ended up writing a bash script based on join
, cat
, tail
and sort
that is barely taking 1 second to complete. It's unlikely that it would serve anyone in the future, but for the beauty of it, here goes :
sh
join -t, -a1 -a2 -o 1.2,1.5,1.4,2.2,2.4,2.14,2.15 -1 4 -2 2 -e "NULL" --header <(cat $1 | tail -n +2 | sort -t, -k4,4) <(cat $2 | tail -n +2 | sort -t, -k2,2) > $3
Comics and Books
- Thorgal #42, Özurr le Varègue - it's meh. The story in itself is OK, but the writer seem to feel like he has to give context in the dialogues, which makes the conversation between the characters very unlikely. The drawnings are really impressive though, I really liked them.
- Finished Salem's Lot - It was a long one, I started the book 6 weeks ago and I was struggling to find the motivation to read it. In the end it seems like nothing really happened and the story goes exactly where I was expecting, which is a bit disappointing.
- Started and finished reading Eviter les péages, by Jérôme Colin - This one, on the other hand, I couldn't let go off. I finished it in 2 days. This book moved me, a bit like the other 2 novels of Jérôme Colin that I read already.
Interesting readings online
Tags: weeklog, comics, bash, ruby, dad-life
Weeklog #2034
This week has been uneventful, with the noticeable exception of my birthday that happened this Friday.
I realized that I love being a beginner at something - The excitement of discovering a new topic and the depth of what I don't know about something is intoxicating. I love challenging myself and finding solution to a problem, but I quickly loose interest when it's done. I had that kind of experience with 3D printing (my Prusa is waiting to be repaired for month now), with sewing (I sewed a few hoodies for me and the boys, now the sewing machine gathers dust), with woodworking, and so many other topics.
Tech
I wrote a fun little script to extract data from my BDGest Collection and build HTML pages out of it
- Source : BDGest Exporter
- Demo : My collection
I scratched my own itch here : me and my 2 sons have our own collection of (Belgian) comic books - and it happens every so often that I'm asked what album or what series either one of my son is missing.
Since BDGest doesn't provide a way to publicly share one's collection, but does provide with a CSV export, I wrote two script to :
- Automatically export my collections in CSV files (essentially a web scraper coded in Ruby)
- A bash script that parses the CSV files and build an HTML page out of it
Now I have a handy link to share with family and friends when they ask what gift would make my boys happy.
Music and Movies
Good things Go, Linkin Park
I've watched Flubber with the kids - they loved it. It's funny how Weebo's video reaction made me think of animated gifs before they were a thing
Sport
I had an extra kung-fu class on Sunday. We studied the first Po Chi, in it's lu and tao form (Po Chi Ti I Lu and Po Chi Ti I Tao)
Interesting readings online
- Loving a Cold Misty Morning - Archive
- The one app to read them all already exists, and it’s called RSS - Archive
Tags: weeklog
YunoHost ne supprime pas tous les dossier quand on désinstalle une app
J'ai récupéré environ 5Go de stockage sur mon VPS en faisant un peu de nettoyage : les fichiers media de Synapse et l'entièreté de mes données NextCloud avaient été conservées après la désinstallation.
Tags: yunohost, auto-hébergement
Weeklog #2033
Don't look for the first 2032 weeklogs, there are nowhere to be found.
In my recent nostalgia-based research of small web capsules, I've stumbled upon a blog where the author posts weekly updates : movies he watched, things he's done, updates on his project, all that kind of stuff.
I've decided that I would give it a try, but there's a chance that weeklog #2034 will never be published. Oh well ¯\(ツ)/¯
Anyways, this week I've been increasingly worried about loosing track of what I want to read, learn, or do. I've been searching and testing multiple bookmark / archive tools such as ArchiveBox or LinkWarden, but none of them stuck :
- ArchiveBox seems like a heavy machine, it misses a quick way to add links through a browser extension, and it lacks integration with my Miniflux instance;
- LinkWarden I only tested it locally for now, because for some reason my Internet Access Provider decided that from now on, ports 80/443 should be activated only through their online portal which I don't have access to right now. This wouldn't be a problem since I access my homelab exclusively through my VPN, but I can't set up the SSL certificate with Let's Encrypt without opening them. Also not a fan of the UI.
- LinkAce : Not tested yet
- LinkDing (Good luck with having a good SEO with this name, LinkedIn hijacks the top page every time I try to find it, plus it's hard to pronounce) : Not tested yet
I'm still on the fence when it come to hosting : I'm not sure if I want this tool hosted on miaw.be or if I want to keep it private behind my VPN. If i host it publicly, I could use it to future-proof the link that I share on this blog by sharing both the original resource and the archive version.
What I do want is a tool that :
- Allows me to centralize my bookmarks
- Save a local copy to prevent link rot
- Has a browser extension
- Integrates with Miniflux
Books and movies
- I started to listen to the Green Mile (La ligne verte) audiobook in French - I've read the novel years ago and I really loved it. The fact that the french version is being read by the actor that usually dub Tom Hanks voice is the cherry on the top.
- I'm still reading Salem's Lot by Stephen King (in French, too). I've started it weeks ago and while I want to finish it I'm struggling to connect with the story for some reason.
- I'm re-watching season 1 of Outlander
Misc
- I've learn how to use spell checking with LazyVim :
z=
to the rescue - I've completely dyed the cabinet I'm working on (more on that later) - I'm not 100% convinced, but we'll see
Tags: weeklog
Les mascottes de l'école
C'est la deuxième année maintenant que l'institutrice de Noah propose des mascottes en classe. Elles sont au nombre de 4 ou 5, et passent de mains en mains de weekend en weekend. Les enfants sont encouragés à les emmener avec eux pendant leurs activités et de prendre des photos pour les présenter le lundi matin.
Noah est toujours à la fête quand il revient avec une mascotte à la maison, mais cette fois ci, il est encore plus enthousiaste que les fois précédentes.
Ils étudient Le livre de la jungle, de Rudyard Kipling, et de fait, les mascottes sont à l'effigie du roman. Hier, Noah est donc rentré avec Kaa à la maison, et depuis, Kaa ne le quitte plus : il l'a aidé à faire ses devoir jeudi soir, il a été installé sur un petit coussin dans le lit de Noah pour la nuit, et cette après-midi, il est venu assister au cours de natation.
Tags: dad-life
Accepter la simplicité
J'ai retrouvé récemment de l'intérêt pour ce blog et pour ce qu'il peut m'apporter. Puisque ce n'est pas la première fois que ça m'arrive, je me suis demandé pourquoi ça avait échoué les fois précédentes.
Une des raisons principales était que ce blog était sous WordPress, ce qui me contrariait fortement, dans la mesure ou chaque fois que je voulais commencer une note, il fallait ouvrir mon navigateur, me connecter, charger une page, tout ça avant même de rédiger le moindre mot.
Or j'ai appris il y a bien longtemps que plus il y a de friction, moins il y a de chance que je passe de l'intention à l'action.
J'ai donc pris la décision de migrer ce blog vers BashBlog, pour plusieurs raison :
- Ça me permet d'utiliser Vim comme éditeur de texte;
- C'est léger;
- C'est suffisamment configurable pour mes besoins, mais pas suffisamment facilement pour que ça deviennent une obsession de perfection
Puis s'est posée la question de la mise en ligne du site. Pour WordPress, je l'avais tout simplement installé sur mon instance YunoHost, et basta. Ici, pour je ne sais quelle raison, je tentais de me compliquer la tâche.
J'ai donc recontacté Nico, qui a été mon inspiration pour cette migration.
Merci! J'ai réussi à sortir un script bash pas trop dégueulasse pour importer mes posts depuis mon flux RSS :-)
Pour ce qui est de la mise en ligne, comment t'y prends tu? Tu héberges sur github?
Je n'aimais pas la supposition que je faisais ici. Je voulais m'auto-héberger et c'est peut être bien ça qui me bloquait dans cette étape. Sa réponse m'a laissé perplexe de simplicité :
Cool!
Non, je fais du scp des fichiers html vers mon serveur web =)
Depuis quelques années, en informatique en tout cas, j'ai l'impression d'avoir perdu cette capacité d'embrasser la simplicité : il faut utiliser tel framework, mettre en place un CI/CD, optimiser la base de donnée, les images, les assets, etc.
Ici j'ai décidé de l'accepter, cette simplicité.
Les mises à jour seront envoyées par scp.
Les images ne seront pas frocément optimisées.
J'ai écrit du CSS bête et méchant pour les deux ou trois modifications que j'ai voulu apporter.
La navigation a été copiée et collée de page en page. Je risque un jour d'en oublier une? La navigation ne sera pas fluide? Tant pis. C'est mon espace sur le web, et même si je travaille profesionnelement dans le web depuis plus de 15 ans, ce site n'est pas une vitrine de mon savoir-faire ni un CV, c'est juste mon terrain de jeu.
Il sera simple, et imparfait.
J'ai migré ce blog vers BashBlog
Je viens de migrer ce blog depuis Wordpress vers BashBlog.
Héberger un site sur YunoHost
Pour héberger ce site sur mon instance YunoHost, j'ai installé l'application my_webapp
sur le
sous-domaine
cedric.dkmp.be
.
Pour le mettre en ligne, j'utilise un petit script bash basé sur scp
Télécharger les images
sed -n '/<img /s/.*src=\([^ ]*\).*/\1/p' *.html | grep 'cedric.dkmp.be' | sed -e 's/cedric/cedric-wp/g' | xargs wget -P
./images/
Ré-écrire l'attribut src
des tags
img
existants
grep -l "https://cedric.dkmp.be/wp-content"
*.html | xargs sed -i "s/wp-content\/uploads\/\([0-9]\{4\}\)\/\([0-9]\{2\}\)/images/g"