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