Using Regex and The Rails Framework I have been working on this post for months. One of Ruby's strengths is it string handling but working on a live system which processes lots of string inputs of varying types, requirements and potential pitfalls. Part 1 - String ParsingThe first part of…
The problem was iterating over a large amount of time series data. I figured generating a series of time chunks within certain start and end parameters, and of a certain time interval size could help scan through this data.I wrote the following method to help generate these chunks of…
This is a fairly simple problem but I keep finding myself looking this up and coming to a similar solution so I thought I would post this quick trick here. In Ruby its really easy to find a uniq collection by using Array.uniq or if you have Rails / ActiveRecord…
This blog has had a few migrations to different technologies. In most cases I found a lot of friction to writing new posts which led me to move onto some other technology.From the beginning I wanted to host this blog on GitHub pages. That is where my homepage is…
This post is about an issue I discovered whilst trying to debug an issue with a JSON request to a third party service. This request contained a JSON body where one of the fields was an array of strings but when querying the service to see what was sent -…