Setting up a Virtual Host in OS X

Setting up a Virtual Host is useful during web development so that you can easily access a running project via a custom, root level domain in your browser.

Insertion Sort in Ruby

Insertion is a very simple and common sense approach to the sorting problem. It is stable, in-place, online, and efficient for small data sets and data sets that are already mostly sorted. Here we examine Insertion Sort in Ruby.

Syncing a Postgres Database from Heroku to Local

Quick guide to setting up a Ruby on Rails and PHP web development environment on OSX 10.9

This tutorial is a step by step guide to setting up a basic Ruby/Rails and PHP web development environment from a fresh install of OSX 10.9 Mavericks.

Merge Sort in Ruby

Merge is a divide and conquer algorithm for sorting which is generally stable. Its average and worst case performance is O(n log n), which makes it more efficient than Insertion for most sets.

Solving the 0-1 Knapsack Problem with a Genetic Algorithm in Ruby

The Knapsack Problem is an NP combinatorial optimization problem in which items that have both value and weight are placed into a "knapsack" with a weight limit. Here a genetic algorithm is used to evolve good solutions.