Ingredients for a successful Ironman

August 08, 2019

After completing the Ironman Boulder, several people have asked where to start. I will share my approach to training in this post. Remember, what works for me may not work for you. Whatever path you choose, consistent training is the key. If faced…

Adding an owner to new records in Rails

July 12, 2017

Suppose you have a new rails site with the devise gem installed. For example, let's say you have a tree app. You can create, edit, and delete different types of trees. In order to create a tree, you must be logged in and you can only delete trees…

many_to_many relationships in Rails

March 11, 2015

In Rails, we have model classes or for short, models. ActiveRecord provides six associations that allow models to interact with each other by creating relationships . I will focus on two of the six associations today. belongs_to has_one has_many…

Note management in ebooks

October 13, 2014

I've always made notes in the margins of my books. When ebooks arrived on the scene, I searched for years to find the best way to sync my notes and highlights between books. I finally found a solution a few months ago. I'm kinda embarrased to share…

Integration tests with Stripe

September 18, 2014

I recently added Stripe integration to a web site and wanted to share my experience. I started with an integration test, in accordance with an outside-in TDD approach. As a good netcitizen, I wanted to refrain from hitting the Stripe servers with…

Git log cleanup with git rebase -i

August 27, 2014

Save early, save often is good advice. It's often not possible to finish a feature in one sitting or more complex features in even one day. I have two possible options when it comes to "save early, save often". git stash or git rebase git stash…