Articles - tools

Install the vmod_header Varnish Module for Varnish 4.0 on Centos 7.1

If you are using Varnish and need to access headers which appear more than once (i.e. multiple set-cookie headers) then you'll have to install the vmod_header Varnish Module.

Filed under: web, tools

Utilities for Git and the Netdna CDN API in ruby

This is the ruby script that we use to obtain information on the account or the zones that we have configured in the Netdna CDN and, when necessary, to invalidate all objects in the CDN or a subset of them based on the difference between selected commits in the local git history for a particular project. As always the best way to see how this works is to read the code !

Filed under: tools

A simple ruby script to check the HTTP response / redirect for multiple urls

This is a simple script that we use as a resource and protocol check to make sure that the status codes and any redirects are as expected. If a redirect is returned then this URL is also checked to make sure that it exists (i.e. status = 200). As always the best way to see how this works is to read the code !

Filed under: tools

Distributed source code management resources

A list of the resources for Mercurial, Git and Bazaar that I put together when researching my talk for the PHP Barcelona Conference.

Filed under: tools

Install and test the PostgreSQL gem with Ruby Version Manager

How to go about installing and testing the PostgreSQL gem using Ruby Version Manager, Ruby 1.9.2., Mac OS X 10.5.8 and Xcode 3.1.1.

Filed under: languages, tools

Compile and configure PostgreSQL on Mac OS X

The steps that I followed to compile, install and configure PostgreSQL 8.4.4 on Mac OS X 10.5.8 with Xcode 3.1.1.

Filed under: tools

LaTeX custom commands and figure inclusion

One of the most compelling aspects of LaTeX is it's resemblance to a programming language. Here we demonstrate how to take advantage of LaTeX command definition in order to include figures in our documents and reuse code.

Filed under: tools

Install and configure Ruby Version Manager on Mac OS X

How to go about installing and configuring Ruby Version Manager on OS X version 10.5.8.

Filed under: tools

RegExp - keeping parts of a pattern in sed

Non-trivial use of regular expressions for pattern substitution often requires that a part of the pattern be kept after the substitution. The following sed examples show the basic usage of "variables" in regular expressions.

Filed under: languages, tools

Filtering lines in awk

The awk pattern scanning and processing language is frequently used in order to process lines that match a given criteria. Here we present several approaches to filtering with criteria.

Filed under: languages, tools