Sinax

Welcome to Sinax!

My name is Michael Anckaert and I’m a IT consultant providing freelance services under the name Sinax. I specialize in Linux and Unix consulting services and software development using Python.

Recent Posts

19
JUN
2013

Python Snippet: List comprehensions

Today’s Python Snippet is the list comprehension. A list comprehension is a Python construct that performs an action on every element of the list. When you use a list comprehension you don’t have to use a for loop to loop over all elements of the list. You can keep...
19
JUN
2013

Simple Django validators

Creating your own validators for your Django models or forms is very easy. In this post I’ll show you how to create a simple validator and apply it to your models or forms. For future reference, this post was writting using Django 1.4 A simple validator can be a Python...
17
JUN
2013

Simple Nginx load balancing

Using Nginx it’s quite simple to create a basic load balancing setup. Nginx is very popular these days as a Reverse Proxy and getting it to work is actually very simple. The configuration below tells Nginx to listen for HTTP traffic on port 80 that was sent to...
19
APR
2013

Python Snippet: Enumerate your lists

In this Python snippet we will see how to enumerate your lists. This short piece of code will help you cut down development time, remove those little counters from your code and generally make for better readable code. Like always, let’s start with an ‘bad’...