Author Archives: Chad Lung

Python Multiprocessing: A Second Look

A while back I blogged about Python’s multiprocessing. I was talking with a friend the other day and was looking over his team’s Github repos and came across an interesting use of the multiprocessing package. I broke the original code … Continue reading

Posted in Open Source, Python | Leave a comment

Clustering Graphite – The Easy Way

Graphite is used extensively by many companies. Right now, I’m working on a large Cloud based project that collects metering/billing data from several sources like EMC ViPR, OpenStack, etc. In order to quickly generate reports we cache some of the … Continue reading

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

The two minute guide to using Viper – configuration management with Go (golang)

A per the website “Viper is a complete configuration solution. Designed to work within an application to handle file based configuration and seamlessly marry that with command line flags which can also be used to control application behavior”. You can … Continue reading

Posted in Go, Open Source | Leave a comment

Getting started with etcd and Python

In a nutshell etcd is an open-source distributed key value store and is written in Go. You can run a single instance but it really shines when you set it up in a cluster and it will gracefully handle master … Continue reading

Posted in Docker, Open Source, Python, Ubuntu | 1 Comment

Isolating your Ruby gems to a local project folder with a sample Sinatra app

In my previous blog post I wrote about installing rbenv on OS X 10.9 (Mavericks) to manage multiple Ruby installations easily. Today, I’m going to go over how I setup an initial Sinatra application while keeping the installed gems in … Continue reading

Posted in Open Source, Ruby | Leave a comment

Installing rbenv on OS X 10.9 (Mavericks) to manage multiple Ruby installations easily

I’m a big fan of pyenv so rbenv was a natural fit for the style of how I like to setup my development environments (on numerous computers). This allows me to easily switch between versions of Ruby depending on which … Continue reading

Posted in Open Source, Ruby | 1 Comment

The 10 Minute Guide to the Observer Pattern in Python

Today I want to cover the Observer Pattern in Python. I’ll be using Python 3 but this should work equally well with Python 2.6.x and newer. According to Wikipedia the Observer Pattern is: A software design pattern in which an … Continue reading

Posted in Design Patterns, Open Source, Python | 4 Comments

Review: Developing Responsive Web Applications with AJAX and jQuery

On a recent business trip I read the recently published book “Developing Responsive Web Applications with AJAX and jQuery” by Packtpub and authored by Sandeep Kumar Patel. Today I’m going to do a quick review on the book.

Posted in Apache Tomcat, HTML5, Java, Mobile, Reviews | Leave a comment

How I configure my envrionment for Python development

Everyone has their own way of setting up their development environments and I’m no exception. In this article I’m going to go over the steps I take to setup a new Python development environment on OS X and with a … Continue reading

Posted in Open Source, Python | 7 Comments

Tutorial: Learning Salt with Vagrant (Ubuntu 14.04) – Part 2 – Using salt-ssh

In my previous Salt tutorial I showed you how to get a Salt master and a single minion setup and run a few commands. Today, I’m going to cover salt-ssh which is a very new package (alpha quality as of … Continue reading

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