Random GraphQL

I went through a bunch of videos today on my graphql refresher journey. Half the videos deal with graphql and ruby and the other are from a series that uses graphql with meteor. I’m finding Apollo client 2.0 particularly interesting. GraphQL in Ruby introduction Your browser does not support iframes. Introduction to GraphQL implementation in…

I Didn’t Attend React.js Conf

Unfortunately, I wasn’t one of the lucky ones to win the React.js conf ticket lottery which means I didn’t get a chance to rub shoulders with some of the most brilliant minds in Javascript. I’m not bitter or anything. Jimmy Buffet once said, “I can go to movies and see it all there just the…

Haulin’ Balls

We’re driving across the California desert right now. The thermometer says it’s 110 degrees Fahrenheit. Every time we have to stop and get out of the car the kids tell me the heat is “hurting them”. Pioneer children they are not. The biggest dilemma facing us as we cross the long, arid, punishing desert is…

I Have One Quadrillion Dollars

Zimbabwe was the first country to issue a 100 Trillion dollar bill. I have ten which makes me a Quadrillionaire: Each bill is about 15 x 7.5 centimeters so 112.5 sq centimeters. That’s 1.12500 × 10 16 square nanometers (NM). The diameter of a gold atom is .288 nanometers so it would take 3.90625 x…

increment! and Mysql::Error: Lock

On a site I’m working on I started noticed a lot of production errors like this: ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE users SET counter = 2, updated_at = ‘2010-08-05 20:54:26’ WHERE id = 1234 I traced the error back to a call in the user model: update_attribute(:start_time, DateTime.now) increment!(:counter) </pre>…