About Kelley Reynolds

A full-stack software engineer, an avid trail runner, and a bassoonist. Kelley occasionally writes about one of his many projects on this blog.

Author Archive | Kelley Reynolds

Using Ruby with MiOS from Mi Casa Verde

Vera LiteMi Casa Verde. You can read the specifications of the devices for yourself but I like them because they are inexpensive, have low-power requirements, are capable of interfacing with a number of different kind of home automation systems, and most importantly, have a documented JSON/XML API. Coincidentally, they also have a developer special program and lack a ruby gem, so another rainy day project is born!

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

Being Classy with HTTParty

I recently has a use for HTTParty in a project that potentially required multiple base_uri references at the same time. Just changing the base_uri isn’t thread-safe so you can’t do that so the most common way around this with HTTParty is to make an instance variable and pass that around to all of the calls to get/post/etc. I find that a little cumbersome so instead I made use of dynamic classes to hide all of that nonsense.

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

Cassandra-CQL 1.1.0

It’s been a while since the last release of the cassandra-cql gem, and this version fixes a few long-standing encoding and data-access bugs as well as support for CQL3. The driver now also uses Travis for continuous integration.

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

The Cassandra Data Model – Another Gratuitous Introduction

I recently had a conversation in #cassandra about the Data Model that I thought might be useful to try to distill into a few lines. These few lines ignore all of the implementation details to make it work in practice but it gives you the starting point. It looks a little something like this …

Continue Reading →

Bookmark and Share
Read full story · Comments { 0 }

Cassandra-cql ruby gem for Cassandra 1.0

Cassandra-cql has been updated for the latest version of cassandra. It supports all of the datatypes and has proper encoding support for ruby 1.9. It is also now published as a gem so a simple ‘gem install cassandra-cql’ should get you ready to roll with Ruby and Cassandra.

The official location for the code is now Google Code but I also use the Cassandra-CQL github repo if you want to participate that way. For a quick introduction on usage, check out the Google Code Wiki.

Enjoy!

Bookmark and Share
Read full story · Comments { 0 }