Collective Idea

Collective Idea Logo

Recent Posts

Bi-Directional and Self-Referential Associations in Rails

I’ve been working on an application that works to match users together based on a complex set of criteria (read: big slow database query and in-memory processing). The core usage of the application revolves around these user matches, so I want to make sure that either the algorithm will run very fast or can be cached so that it’s not run every time a user visits their matches page.

The most important requirement for our matches is reciprocation. To solve this problem and meet all of the requirements, we can create a bi-directional, self-referential, self-syncing, many-to-many association between users using a has_many :through association with a join model to keep track of a user’s matches.

Read More…

0 Comments – By Josh Kovach on July 30, 2015

Rewriting History With Git Rebase, Reset, and Amend

Editing an existing commit in history with an interactive rebase, reset, and amend.

Read More…

1 Comment – By Eric Milford on July 23, 2015

Quick Setup for Your Rails Apps

We need to make getting up and running with our Rails apps easier. Here’s my attempt.

Read More…

0 Comments – By Daniel Morrison on July 08, 2015

5 Timesaving KISSmetrics Tips I Wish I Knew About

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.

Read More…

0 Comments – By Spencer Toth on July 01, 2015

Tracking KISSmetrics Events Using Query Parameters

Accurately tracking new signups, upgrades, and downgrades for a SaaS is extremely important. When our JavaScript Events broke and Google Analytics was no longer reliable, I moved all conversion tracking to KISSmetrics. Query parameters proved to be the simplest and most reliable way to accurately track Events in KISSMetrics.

Read More…

0 Comments – By Spencer Toth on July 01, 2015

Testing for Android Intents Using Espresso

Using espresso-intents for testing Android Activity Intents

Read More…

0 Comments – By Victoria Gonda on June 11, 2015

How To Get Alerts When a Sidekiq Instance Goes Down

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 sidekiq_snitch gem.

Read More…

0 Comments – By Jon Stokes on June 02, 2015

How to Pluck Like a Rails Pro

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.

Read More…

0 Comments – By Eric Milford on May 29, 2015

Fixing Intermittent Failing Tests

Some tricks to help you fix tests that sometimes fail.

Read More…

1 Comment – By Daniel Morrison on May 26, 2015

Scheduling Crowd-Sourced Entropy with Webhooks

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.

Read More…

0 Comments – By Steve Richert on May 13, 2015

Archives by Month

Contact Us

Find us on Google Maps
Collective Idea
44 East 8th Street, Suite 410
Holland, Michigan 49423 USA 42.790334-86.105251


Follow us on the Interwebs

We are currently available for medium and long term projects. Please get in touch if we can be of service.