Moving our SaaS conversion tracking from Google Analytics to KISSmetrics was a great decision, but there were a few things I learned that I wish I would have known before jumping in that would have saved time.
Using espresso-intents for testing Android Activity Intents
For those of us who use the popular distributed job queueing system Sidekiq, it’s a common problem: a Sidekiq instance containing a pool of workers dies, and the only way you find out about the problem is by checking the Sidekiq dashboard and seeing that you’ve got a ton of jobs backed up and fewer busy workers than expected. Luckily, there’s an easy way to get email alerts when one of your instances goes down, using Dead Man’s Snitch and a little bit of code inspired by the
The pluck method is a performant option to query columns from one or more tables. The ability to pass valid SQL directly makes it all the more handy.
I love writing gems. Lately, I’ve been particularly interested in tackling the big, important problems in math, like how can a computer generate a truly random number. I took this challenge head-on when I developed the fair_dice_roll gem.
Running routine tasks like a server health check often sends an email every time it returns healthy. Overtime, they’re easy to ignore. But, what you really need to know is when these email stop sending. Using a new Dead Man’s Snitch feature, you can now easily monitor when an email isn’t sent and DMS will alert you.
Need to round to the nearest 30 minutes or up to the next 250 or some other fun rounding case? Ruby’s build-in
ceil won’t help you, but the Rounding gem will.