Articles

Image upload microservice

Image upload microservice thumbnail
An image is worth a thousand words and probably even more if comparing their size in bytes. When designing my CMS, I originally intended to store images directly in the article, encoded in Base64. However, this would considerably increase the size of each article, making the whole CMS slow.
WebWIPNode.jsMongoDBProjects +1

Cashless payment system

Cashless payment system thumbnail
A company I worked for had a coffee machine for which employees could purchase coffee. However, the payment was done by putting coins in a jar. Not only did this present the obvious risk of theft, this system was also impractical for people not carrying spare change at all time. I decided to solve this issue by designing this cashless payment system.
ElectronicsProjectsIoTMongoDBNode.js +1

Divide container in equally sized divs

Let's imagine a container with three divs as content:
CSSTutorials

Python virtual environments

When working on multiple python projects, dependencies might conflict. For example, a project might use version 1.5 of Tensorflow while another uses version 2.1.
TutorialsPython

Tensorflow 1.X basics

Here are the basics steps necessary to write TensorFlow code.
PythonAI / MLTensorFlowTutorials

Force IE to use its latest version

Depending on the settings, Internet Explorer can decide to render webpages using a lower version, which can result in compatibility issues.
TutorialsHTMLWeb

Swift basics

Here are some of the basis of the Swift programming language
ProgrammingSwiftTutorials

Some C concepts

C is widely considered to be a difficult programming language. Here are various code snippets to help make some sense of it.
CTutorialsProgramming

Python list slicing

Here are a few useful features of Python when dealing with lists (Arrays):
ProgrammingTutorialsPython

Express authorization middleware

Many applications require some form of authorization mechanism to prevent users from accessing restricted content. Authenticated users are commonly in possession of a cookie containing identification data. With the authentication microservice that I designed, this cookie contains a JWT that contains the user's username. This JWT is sent in the authorization header of HTTP requests. Thus, authorization can be performed easily within each application by simply decoding the JWT. To do so, I designed this simple middleware for ExpressJS.
ProjectsSecurityNPMExpressNode.js