Author Archives: Chad Lung

Setting up OpenStack (Havana) Keystone in ten easy steps on Ubuntu 12.04 LTS

I’m going to go through the steps required to setup OpenStack’s Identity Service Keystone on Ubuntu 12.04. I’ll assume you already have Ubuntu 12.04 LTS up and running.

Posted in Open Source, OpenStack, Python | Leave a comment

Running a Python (or almost anything) as a service with automatic restart via Upstart

Pretty often I run into a situation where I’d like a Linux application I’ve created to run as a service. Basically, run my Python, Go (GoLang), Ruby, etc. application on start-up and respawn it if it gets any kind of … Continue reading

Posted in Open Source, Python, Tornado, Ubuntu | Leave a comment

Learn how to create and use Python Decorators

Python is an amazing language to program in. Its easy to get started and you can dig as deep as you want. Today I’m going to show you how to use Python Decorators.

Posted in Open Source, Python | Leave a comment

Working with the Python Keystone Client with OpenStack Keystone

Keystone is an OpenStack project that provides Identity, Token, Catalog and Policy services for use specifically by projects in the OpenStack family. For the python-keystoneclient there’s a Python API (the keystoneclient module), and a command-line script (keystone). I’m going to … Continue reading

Posted in Open Source, OpenStack, Python, Ubuntu | Leave a comment

Tutorial: Go (Golang) Pointers in 5 Minutes

In my previous Go articles I showed you how to setup Go on Ubuntu as well as how to create a couple different REST projects (here and here). Today, I’m going to go over how to use pointers and references … Continue reading

Posted in Go, Open Source | 2 Comments

Tutorial: Building Middleware in Python with WebOb and Paste

Roaming about the Internet looking at OpenStack information I stumbled upon a slideshow that has some good starter code for a simple Python WSGI application using WebOb and Paste. I decided to take what the author started there and turn … Continue reading

Posted in Open Source, Python | Leave a comment

Pynsive: A Simple Plugin Library for Python – A Second Look

In my last article on Pynsive I showed you an easy way to get started using Pynsive. Pynsive is a simple plugin library that follows PEP 302. Today I’m going to show you step-by-step how to create and use a … Continue reading

Posted in Open Source, Python | 1 Comment

Using SO_REUSEPORT with Python on Ubuntu 13.04

The Linux Kernel 3.9 introduced a new feature that allows you to bind multiple socket listeners (servers) to the same port on the same host. What this means is you can build servers that all listen on the same port … Continue reading

Posted in Open Source, Python, Socket Server, Ubuntu | Leave a comment

Creating a REST API using Go (GoLang) and Goweb

In my last article I showed you how to create a simple REST project using JAS. Today, I’ll show you how to use another Go REST framework called: Goweb.

Posted in Go, Open Source, REST | 2 Comments

Creating a REST API using Go (GoLang) and JAS (JSON API Server)

In a previous article I showed you how to get Go up and running on an Ubuntu 13.04 Desktop system. Today, I’ll show you how to build a simple REST API using Go. In particular, I’ll be using JAS (JSON … Continue reading

Posted in Go, Open Source, REST | 1 Comment