Advent Of Code - Day 2

Advent Of Code - Day 2 Here we go for day 2! These first couple of problems prepare you on how to deal with input mainly. Learn and get used to parsing lines, and get comfortable with data structures. Day 2 - Part 1 We continue the story of Santa and the submarine. This time, he has the task of trying to steer the thing. The task is straightforward. You get a couple of instructions and based on a value you increase or decrease a positions. ...

December 2, 2021 · 5 min · hannibal

Advent Of Code - Day 1

Advent Of Code - Day 1 Since 2015, Advent Of Code has been a part of my life. I’ve done various posts on it already, but this year will be different. I’m going to blog every day every solution, why and how I’ve gotten to that solution. This isn’t going to be ever December, because I’m usually unable to solve a problem on a single day in the later days from day 10 or so. It takes more time then I have. But I will solve all of them. At the time of this writing, I have completed almost all puzzles except for year 2019 which I didn’t much enjoy to be honest. ...

December 1, 2021 · 7 min · hannibal

Summary of Programmer's Brain

Prologue Hello all. This is a summary of the book Programmer’s Brain. Let me begin by saying the book is fantastic and you should definitely read it. The research put into it is phenomenal, and the many linked notes, data and reference make for an amazing and compelling read! Not to mention that it is fantastic that someone put actual effort and data into finding out how programmers operate, think and behave. And most of all, how our code behaves and reading, and dealing with code is not just about understanding algorithms and finding the best possible and most optimized code ever. ...

November 27, 2021 · 23 min · hannibal

Reader's Digest 2021-07

Reader’s Digest I thought it would a cool idea if I kept a summary of the things I’ve read or listened to on a monthly basis. Here is July of 2021 so far. Enjoy. Ultimate Go This book is a culmination of Bill Kennedy’s Ultimate Go course and notes which were spawned from them by Hoanh An. Bill Kennedy set out to put everything together and create a notebook which can be read and followed like the personal notes of a student. ...

July 31, 2021 · 4 min · hannibal

Reader's Digest 2021-06

Reader’s Digest I thought it would a cool idea if I kept a summary of the things I’ve read or listened to on a monthly basis. Here is June of 2021 so far. Enjoy. Hell Divers 6: Allegiance I love the Hell Divers series. I listened to this one on audible as always and it was fantastic, as always. King Xavier Rodriguez. That sounds as bad ass as it is. We follow King Xavier and Rhino, his trusted subordinate into battle with a new threat called Skin Walkers and of course the machines, the defectors which are trying to kill everyone. Also, there is now a signal from a possible group of people who are surviving on the surface for more than 200 years! Xavier hates being king but does anything to keep the peace and humanity alive. Sadly, not all of his people agree to that especially not after what they did to their people. The people of the metal island, the cannibals are harsh people. And they don’t get along nicely all the time. ...

June 30, 2021 · 6 min · hannibal

Blog refactor

Blog Refactor Finally, I went back and fixed a lot of old posts and old code entries. I tried to fix and repair links and images, but some are lost forever on some obscure WordPress blog which I used to use. I’m glad though that the code is intact and I could re-read a lot of my old stuff. It’s interesting to see how much I evolved, how much my writing evolved. I used to write a lot of groovy and python and java and bash and ruby. ...

May 25, 2021 · 2 min · hannibal

Reader's Digest 2021-04

Reader’s Digest I thought it would a cool idea if I kept a summary of the things I’ve read or listened to on a monthly basis. Here is April of 2021 so far. Enjoy. Invincible After seeing it air on Amazon Prime, I had to go and read the comic. It’s quite a lot, but I assure you it’s worth it. Some spoiler alerts… Okay, so we follow this guy, Mark Grayson. He’s Invincible. He is also and alien, called a Viltrumite. I can hardly summaries over 3000 pages of comic books so I’ll try to be brief. ...

April 21, 2021 · 3 min · hannibal

Reader's Digest 2021-03

Reader’s Digest I thought it would a cool idea if I kept a summary of the things I’ve read or listened to on a monthly basis. Here is March of 2021 so far. Enjoy. The Aurora Database paper The paper about Aurora database from AWS can be found here: Paper. It details the design decision taken to support a highly available, fault tolerant, fast replicating database. They take the following approach… They modified mysql database such as that they only send around the redo log and the redo log is enough to recover / replicate in order to achieve write and read consistency. They separate the data into Protected Groups and speed up terabytes of recovery by doing 10 Gigabyte segments in parallel. The database IS the logs. By only replicating the log instead of the data and the data page, they save millions in networks costs. The main gain however, is that the storage was modified to understand the application. Instead of using General store they use a storage which understand the data. In this case, decoupling storage from the database, as so many do, was actually a drawback. ...

March 23, 2021 · 7 min · hannibal

Reader's Digest 2021-01

Reader’s Digest I thought it would a cool idea if I kept a summary of the things I’ve read or listened to on a monthly basis. Here is January of 2021 so far. Enjoy. All systems red - Murderbot This book is SHORT. It’s little over 3 hours of listening time. I’m listening at 1.30 so it’s just short of 2 hours. But it’s entertaining. The murderbot series is following a rouge security bot which hacked its own governor module and is self aware and free. But… it kind of hates humans and interacting with them. It just calls itself murderbot but has no intention of killing all humans. Instead, all its wants to do is basically… watch movies and various series on something called a Feed. In the first book of the series, this one, we follow Murderbot protect a few humans that it gets to short of like after an attempt on their lives. ...

February 1, 2021 · 4 min · hannibal

How to deploy a Go (Golang) backend with a React frontend separately on Kubernetes - Part One

Intro Welcome. This is a longer post about how to deploy a Go backend with a React frontend on Kubernetes as separate entities. Instead of the usual compiled together single binary Go application, we are going to separate the two. Why? Because usually a React frontend is just a “static” SPA app with very little requirements in terms of resources, while the Go backend does most of the leg work, requiring a lot more resources. ...

July 23, 2020 · 14 min · hannibal