The Captain's Log

Tales of achievement, bewilderment, and a surly relationship with a computer.
The little moments
I know this gif is a really lame example of a game, but after 10 years of working in web development it feels pretty cool to be able to control this little gumby man. Gotta start somewhere.
Restoring a lost scene in Unity
FYI - This mostly applies to folks using Macs. Well shit. Losing progress on a project is bound to happen to you at some point in your career. Whether the application hangs and you have to restart or the power goes out, you're bound to experience...
Dealing with Unity versions
I recently got a MacBook Air to serve as a mobile-friendly companion to my iMac and it got me thinking about how to deal with Unity installs. I had primarily been working on a single machine without any team members to worry about. Therefore my on...
Gitignore update in Github for Unity plugin
This is a quick update on this previous post. I took the advice of the folks over at @thoughtbot to get a good default .gitignore file established when setting up Github for Unity. It appears that is now an unneeded step as of 1.0.3. I recently ...
Unity and Git
Well, it's been a fun couple days. I'm basically splashing around the pool trying to figure out how to swim. One of the first things I felt like I needed to do was get Git up and running so that as I work through practice projects I have the repos...
Let's build a game
It's time to scratch the itch. Building a game has always been a romantic daydream, but never in the cards. I've been building websites since college and keeping up with the ever-changing web ecosystem has consumed all the time I allocated to lea...
Cancer can go fuck off
After 9 wonderful years we lost Leia to lung cancer. She loved nothing more than getting to sprint through the snow and chase her humans. Life is too damn short.
A gotcha with Active Storage and Cloudflare
Rails 5.2 introduced Active Storage and it's pretty awesome. I'd used paperclip from the @thoughtbot folks for a long time, but file uploading is a requirement for just about any site these days so it might as well be part of the core. Now it is. ...
Categories in a Rails App
Categorizing things in a Rails app is a common need, but it's a non-trivial lift to get it all implemented. Database relationships need to be right. How in the world should you set up your forms? What's going on in my controllers? I'm going to do ...
Deleting Facebook
I deleted Facebook for good a few weeks back. With the #DeleteFacebook hashtag trending and looming figures like Woz deciding to leave I figured I'd add my two cents. Leaving Facebook is a two part story. For years I have been absent from Facebo...
Debugging in RubyMine with Rails 5.2
If you've upgraded to Rails 5.2 and are using RubyMine's debugger you might notice that breakpoints aren't working as they should. For me, they would only work in views, but controllers and models wouldn't stop anything. Turns out the problem is ...
Getting rid of Time Machine backup folder
Okay, wow. Have you been pulling your hair out trying to get rid of some old Time Machine backup files that simply won't delete? Well, if you've tried a hundred things and ended up here I just might be able to help because I just dealt with the sa...
Custom Validation in Rails
Here's a little trick I like to do when I'm addressing validations in my models. Let's say you have a standard Post model. It might look something like the following. If you're like me and prone to ideas popping into your head at inopportune time...
System Tests with RSpec, Rails, Capybara, and Devise
Since the release of RSpec 3.7 we've been able to take advantage of system tests which are new as of Rails 5.1. If you've been using RSpec for a while you're already likely familiar with feature tests using Capybara. For those new to these types o...
Bootstrap 4 Cheat Sheet
Get your Bootstrap 4 documentation faster! This got posted on Hacker News the other day. It's fantastic. It's much quicker and cleaner than Bootstrap's documentation. It's not going to be as verbose, but if you've been using Bootstrap for a whil...
ActionMailer SMTP settings for SendGrid (Rails)
Okay, I got no Google hits for this. Here's a tip if you're using SendGrid in a Rails app for your transactional emails. A while back you needed to provide your SendGrid username and password (hopefully via environment variables), but now you can ...
Setting Up Goto Declaration in Atom
I'll leave everything below for someone who loves using Atom and is okay have having partial support for goto functionality. I basically want the following (ST3), but can't achieve it in Atom. I've tried a million different tweaks and used every...
The Comcast Experience
I'm going to use this post to chronicle my experience of transferring Comcast's Xfinity TV and internet service over to a new (to me) house. Let's face it, they've pumped a ton of ad dollars into campaigns stating they'll be the one friend who wil...
Completing Our Move to Seattle
We started our move to Seattle from Salt Lake City in November of 2015 and are now days away from completing that journey as we move into our new-to-us house. The Seattle housing market is insane and we knew we were going to get killed. Moving her...
Developer folder on your Mac
I've had a directory under my user folder called Development for ages. Probably since I started coding. Somehow, for the very first time, I saw someone using a Developer folder and, damnit, they got a pretty icon on their folder. I've been getti...
Heroku defaults to Puma for Rails 5
It's now going to be easier than ever to kick off a new Rails project and deploy to Heroku. WEBrick is no longer the default server with Rails 5. If you don't provide a Procfile Heroku is going to help you out and set you up with Puma. Production ...
How to Create a Contact Form Using Rails and Mandrill
Let's build a simple contact form for your Rails driven website that uses Mandrill as the desired email server. Mandrill lets us offload the management of setting up and running an email server ourselves and, therefore, relieving ourselves of a ma...
Syntax Highlighting in Rails
Your Rails driven website has the need to display some code. It's not good enough to just get proper indentation, you'd like to have some decent syntax highlighting. Maybe something like following. There's a great ruby gem called Rouge that makes...
Respect the past. Don't immortalize it.
For the love of god. That travel shampoo from your hotel stay on your honeymoon is not the embodiment of your marriage. You can throw it away, I promise. I want to talk about stuff. Specifically, the crap you hold on to because it reminds you of ...
Editing a form using fields_for in Rails
Let's say you'd like to successfully create or update a nested form using fields_for. Our 'parent' will be a Post model and our 'child' will be a Tag model. It's not hard, but there's a bit of a gotcha that I found most other resources out there w...