How to easily deaggregate an IP address range

A few days ago I needed to nullroute an address range, so I found myself with the incredibly tedious task of de-aggregating IP ranges.

Read on →

Bloom filters: when data structures get smart

Keeping up with my quest on exploring probabilistic data structures, today I am going to present you Bloom filters, an ingenious idea that allows us to quickly verify membership within a set.

As usual, I sound awful when using grown-up words: filters? Membership? Verification? Just bear with me for a few minutes as we’re about to delve into one of the most ingenious ideas in the world of computer science, one that was born almost 50 years ago.

Read on →

My favorite algorithm (and data structure): HyperLogLog

Every now and then I bump into a concept that’s so simple and powerful that I want to stab my brain for missing out on such an incredible and beautiful idea.

I discovered HyperLogLog (HLL) a couple years ago and fell in love with it right after reading how redis decided to add a HLL data structure: the idea behind HLL is devastatingly simple but extremely powerful, and it’s what makes it such a widespread algorithm, used by giants of the internet such as Google and Reddit.

Read on →

Running out of space because of docker containers / images?

Almost 3 years ago I published a much-needed post around cleaning up space taken by docker (it’s been one of the most popular posts on this blog according to Google Analytics), but since a year or so there’s a much better way to achieve the same.

Read on →

Probabilistic data structures: an introduction

In the past few years I’ve got more and more accustomed to computer science concepts that were foreign to me earlier in my career: one of the most interesting aspects that I’ve focused on is probabilistic data structures, which I want to cover with a few posts in the upcoming months.

My excitement around these structures come from the fact that they enable us to accomplish tasks that were impractical before, and can really influence the way we design software — for example, Reddit counts unique views with a probabilistic data structure as it lets them scale more efficiently.

Read on →

A little bit of strace doesn’t hurt

strace(1) is an amazing tool that you can use to debug processes that went south when nothing else helps.

Read on →

I trolled a digital salesman because their tactics are simply unethical

I don’t know about you but, for me, since I got VP / CXO in my designation the amount of cold emails I receive from salespeople at random companies has spiked up quite substantially — every day I need to go through countless of “Just the right thing to start the week” or “Alex, you will not regret this”, which is quite annoying to say the least.

Fair game, though, as I can filter most of them out through amazing tools like SaneBox. But this week I received one of those emails that are plain scam, blatantly unethical, and I wanted to share my experience with you because, yes, I didn’t let this one go unnoticed.

Read on →

Cross-posting on Medium

Just a heads up: I’ve decided to follow a friend’s advice and start cross-posting the contents of this blog on Medium.

All new content will be published both here (I like my data!) and there, with the goal of reaching a broader community. I also got fed up with the Disqus comments (they mostly show freaking clickbait links) and wanted to find an alternative, so I will be shutting down comments on my blog shortly and instead point people to Medium.

Here’s my profile and a link to my latest medium-ized post :)

Unix goodies to the rescue - Vol.2

A couple years ago I wrote a post presenting a few unix commands that save me on a daily basis, and I thought it’s probably time to expand on that lists and add stuff I’ve grown fond of over the past few years.

Read on →

Intro to React for busy people

In order to get our backend team to familiarize with React, I ran a quick intro to the library, based on “evolving” a JSFiddle from a single, static component to adding UI interactions, using props / state and so on. Nothing groundbreaking but something that covers the most important bits of React.

I summarized my intro in a repo called “React in 1000 words” and wanted to share it here as well, in case anyone finds it useful.

Read on →