Making a Beautiful Map of Spain in ggplot2

A few weeks ago I read an article in which Timo Grossenbacher showed how he managed to plot, in my opinion, one of the most beautiful maps I have ever seen. So I went and tried to replicate it. First of all, here is the map. As usual, you can…

How to mock http endpoints in Golang with custom ports

So I was updating the testing suite in one of Tribe's microservices. This one in particular deals with sending the postbacks to the right endpoints. If you search for testing http requests, chances are you will almost always stumble upon an example like: import ( "log" "net/http" "net/http/httptest…

HDFS vs HBase in PySpark 2.0

It's been a challenging period at Tribe. In case you don't know, I am in charge of selecting and implementing the architecture for an ad Exchange with a focus on latency and performance. As fun as it sounds, it is incredibly challenging, every decision in terms of tools not only…

Weird behavior in Class methods vs StaticMethods in Pyspark

Note, using Spark 2.0.0 with python 2.7 I just found a very weird behavior in PySpark. I will show it with an example. Who knows, maybe this can help someone else. I am processing a list of text files containing data in jsonlines format. After some fiddling…