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…

Raspberry reminder

Tired of realizing at 4 am that I was supposed to go to bed at midnight, I took my raspberry pi from it box and finally gave it a good use. I made a small app that allows you to send reminders to the raspberry headphone from your main computer…

Install CUDA on Ubuntu 16.04

For the record, my graphic card is a GTX 870M. Install Nvidia recommended drivers. You can find it out by using the command ubuntu-devices drivers. It will tell you the recommended driver you should install via apt-get (I installed nvidia-361). 2.Restart 3.Download CUDA Toolkit from here or Direct…