Bringing Serverless to a webpage near you with Hugo & Kubernetes

Today I’m going to show how you can get a Netlify-like experience for deploying your static sites with two great tools: Hugo and OpenFaaS. In a future blog post we will be discussing about the JAMstack and how you can integrate existing tools with OpenFaaS. Pre-req Kubernetes You need to have a Kubernetes cluster up & running. I recommend DigitalOcean, it’s cost-efficient and very easy to set-up.
Read more

Writing a face detection function for OpenFaaS

There is a new term in town that has been making its way to all of us for a couple of years now: Serverless. When I first heard this I was kind of confused as to what it meant. Everybody seemed to have an opinion about it but there were no real answers. The following definition from serverless-stack helped me clarify a bit: Serverless computing (or serverless for short), is an execution model where the cloud provider is responsible for executing a piece of code by dynamically allocating the resources.
Read more

Tracking color objects with GoCV

Disclaimer: this blog post is just a port of Adrian’s tutorial at pyimagesearch where he shows how to track a ball using Python and OpenCV. I only changed a few things here and there and rewrote it using Go and GoCV. So all the credit should go to him I always prefer to start by showing what you’ll get if you stick to the end, so here it goes:
Read more

Motion tracking turret with Gobot and GoCV - Part 1

The title says it, motion tracking turret using only Go, ready to have some func? This blog post will be divided into three main parts: Motion detection with GoCV, Controlling servo motors with Gobot and Putting it all together. In the first part, we build a lightweight motion detection algorithm that can run on low-power devices such as the RPi. In the second part we will show how to control servo motors with Gobot from the Raspberry Pi and in the last part we’ll explain how to go from detecting an object on an image to telling exactly the angles in which the servos need to move in order to track it.
Read more

Deploying Gogs to a DigitalOcean Kubernetes cluster

In this post I will show step by step how to create a Kubernetes cluster on DigitalOcean and then deploy Gogs to the cluster using a set of tools that automate all this. Creating the Cluster Choosing the Cloud Provider I chose DigitalOcean as the cloud provider since it’s the cheapest I could find and it has worked really well for me in the past, plus I was already familiar with a few of their products.
Read more