Python Methods As Decorators

Python function decorators (PEP 318) make it easy to modify behavior of functions (or add new functionality), without changing them. We won't introduce them here as they're documented extensively.

We're demonstrating a specific case, where we have a class and we want to to use one of ...

more ...

Skipping Tests

Sometimes a test should be skipped for a good reason (some resource is not available for a while and mocking is not an option, or tests are assumed to be impacting each other, etc.).

Most test runners support a way to mark a test to be skipped in a proper ...

more ...

Mixed DDL and DML SQL Commands in Doctrine Migrations

Doctrine is a useful library when working on a heavy DB dependent application in PHP/HackLang. It provides migrations as a tool to ease the process of applying changes to the database.

Each migration version is a class (often extends an abstract migration class provided by Doctrine), which specifies the ...

more ...

Python Virtual Environments

Date Tags python

Problem: Different applications might require different versions of the same libraries, which version of those libraries should be installed?

Problem: There are tools installed with the operation system written in Python, they require specific versions of some libraries, and the ones provided by the operating system packages are to satisfy ...

more ...

Programming

Programming is a creative and challenging process, and this makes it interesting. There is so much to learn and there is so much to do. But this is common to get lost in this ocean and forget what was the original destination. Software programs exist to solve problems and empower ...

more ...


Graphite

Graphite is an open source project to collect and graph data that changes over time. It contains three components: a network server to receive the data, a special data storage format, and a web interface to show graphs. Graphite is developed in Python programming language and is designed to be ...

more ...

Statsd

Date Tags statsd

This guide sets up a solution using statsd to collect detailed statistics from a system. For an introduction to the concept, please read "measurement with statsd". The process is to send data from within the application to statsd server. Statsd server sends data to Graphite for storage and visualization.

It ...

more ...

Measurement with statsd

Date Tags statsd

Developing and maintaining any system requires many decisions about what to do, where to invest time and energy to get the maximum benefits fast. To make correct decisions accurate information is required. It is not a valid argument (although might be common) to say "I feel our DB interaction is ...

more ...

Ntop Service On CentOS

Date Tags linux

We needed a network analysis tool and decided to use ntop. Official ntop website provides binary packages for Ubuntu and CentOS.

Ubuntu has an official package for ntop but the package is version 3 and we preferred to use the latest version, so package repositories were no good for us ...

more ...