Riley Mills
Posted by Riley Mills
November 2, 2016

How to Fix Major Version Mismatch Warnings in Gradle

When you see something like the below, what do you do?

major version 51 is newer than 50, the highest major version supported by this compiler.

Read More
Riley Mills
Posted by Riley Mills
May 1, 2015

How to add Emoji support in Rails 4+ and MySQL 5.5+

You need to add Emoji storage support to your Rails application, but the DB either rejects the data or mangles the Emoji.

 

Read More
Riley Mills
Posted by Riley Mills
February 18, 2015

How to Enable Swapfile on Ubuntu AWS Instances

AWS EC2 instances do not come preconfigured with a swapfile. This means that if your application runs out of free memory something's probably gonna crash.

Read More
Riley Mills
Posted by Riley Mills
January 15, 2015

How to Add Password Validation to Your Devise Models

Devise does do some password validation on its own, but that's mostly front-end or controller-based, not on the model itself. If you want to add additional password validation to your Devise models you have to be careful to add it in a way that accommodates how Devise stores and processes passwords. To wit: Devise never actually stores the raw password on the model, even though there's a field for it. That's because as soon as your model is saved with something in the password field Devise takes it out, encrypts it, and then stores it in the encrypted_password field.

Read More
Riley Mills
Posted by Riley Mills
August 27, 2014

How to Fix GC Overhead Limit Exceeded when Dexing

java.lang.OutOfMemoryError: GC overhead limit exceeded when dexing

This is relevant if your builds are crashing due to something like:

Read More
We use cookies to give you the best experience.