Quotation marks and escape characters in Ruby

One of the most frustrating problems I’ve encountered while learning Ruby is how single and double quotation marks are treated differently. It seems that single-quoted strings are handled quite literally, so no logic occurs within the string. On the other hand, double-quoted strings have logic applied to them. I learned very quickly that this is […]

Installing Chef Server on Ubuntu Server 12.04

Chef is an automation tool that allows you to design and deploy an entire system with only a few Ruby scripts. Deployment instructions are divided into cookbooks, which contain recipes. There are three components to setting up a Chef environment: Chef Server – Stores and deploys the configurations. Chef Client – Lives in two locations: […]

Date formatting issues

Since the client side application was written entirely in javascript, the dates being sent from the server had to be changed to a more friendly format. The javascript Date function accepts a UNIX timestamp, so the output from the server was changed to this format. The MySQL date format was also returned in the formatted_date […]

Loading news articles into the database

Another member of the group was responsible for sourcing news articles for the application. The articles were sourced from a local news agency via their RSS feed. The formatting was then stripped from each article and an algorithm was used to compare each article, including previously saved articles, to find articles that are relevant to […]

Implementing the server with CakePHP

The server code has been implemented with CakePHP. PHP is a language that I am very familiar with, so this is a logical choice. Using CakePHP has also reduced the time spent on core server functionality, allowing more time to be spent on features that are specific to this group project. The first step to […]