Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Dirk Kelly

Posts By

LABS
Rails and SQL Views – Part 2 – Migrations

Last week I introduced that my pair and I have started using SQL Views more often in our project. This week I was going to discuss finer points on implementation, thankfully I found Josh Davis’ has_one view post at HashRocket.

The rocket example I discussed covered an activity log of all the rocket’s states RocketActivity, with a custom view being used to return the most recent of these RocketCurrentActivity.

Read more »

LABS
Rails and SQL Views – Part 1

The project we’re currently working on has a fairly system wide requirement to have objects in different “states” as a result of user actions.

The client wanted to be able to see both the current status, and a history of all the statuses each object has been in.

Read more »

LABS
What's Your Snow Trip Bus Count?

Our project’s bus count was two, until I broke my wrist on a snowboarding trip. I was left needing someone to help me with life’s basic necessities: putting my coat on, opening a bottle of red, and typing on a computer.

Read more »

PIVOTAL LABS
Standup 06/08/2012: Awkwardly Unprofessional

Interesting Things

  • ObjectSpace is a class in Ruby which stores information about all instantiated objects. Great stuff for debugging, but don't go using it in your code.

PIVOTAL LABS
Standup 06/06/2012: Two Strings

Ask for Help

"Capistrano is not using our ssh-config correctly, it seems the net-ssh library behaves differently to standard ssh"

Some pivots are going to dive into figuring out whether this is the case and how to get it fixed. Stay tuned!

Interesting Things

  • Ruby sort is not stable, this means that two elements which would have the same sort priority won't always be returned in the same order. Short of implementing your own merge sort you can get around this with sort_by{ |x| n+=1; [x,n] }.
  • Selenium does not clear all sessions after a suite run, it only clears out the current domain. If you're driving actions on multiple sites you will need to configure an after run action to visit those domains and clear session information. For what it's worth one of our pivots has a pull request on capybara-webkit which fixes this behavior by clearing all domain information by default.
  • A couple of pivots are using github's KSS library on their project to keep a maintainable styleguide and set of stylesheets. There is a kss-rails gem if that's your preferred flavor.

ctrl+z

Earlier this week we mentioned to_string and its differences to to_s and to_str. Turns out there is no to_string in Ruby, so it really is only something for you Java developers out there. Grant has explained the differences in a comment on another blog.

PIVOTAL LABS
Standup 06/04/2012: Six Point on Tap

Events

  • Brown Bag tomorrow at 12:30 with Shane Welch, founder of Six Point Brewery in Brooklyn. He will be joining us to share his stories of bootstrapping his business, creating his brand and engineering his beer. Interested? Sign up to the Meetup!

PIVOTAL LABS
Standup 03/29/2012: Virtual Foreign Keys?

Interesting

  • Active Record belongs_to will not raise an exception if you haven't run a migration to create the foreign record column. Instead it will assign a virtual attribute that persists through object reloads, but obviously not a fetch. Watch out!
  • RSpec was not raising an exception when some of our pivots were calling update_attributes with an attribute that didn't exist. Debugging inline and using the command line will raise exceptions. So again, watch out!
  • The first parameter on an RSpec double is arbitrary in nature, but helps other developers understand what you're thinking. Keep everyone happy by naming it something useful.
  • Our Pivots dominated at dodgeball last night, with Cathy taking out the other team in a sudden death gladiator round. We'll be keeping the dream alive Monday next week.

Help

  • Some pivots need after deploy tasks to run on their heroku instances. Suggestions were to check out heroku_san which has support for additional tasks and great hooks (it's also well tested!)
  • One of the projects is having trouble setting up firesass with the Rails 3.2 asset pipeline and bootstrap-sass gem

PIVOTAL LABS
Standup 03/28/2012: Browser Quest

Interesting

Help

  • How does git figure out which gitconfig file to use? If we change the environments HOME variable git doesn't look for the gitconfig in that new location.

PIVOTAL LABS
Standup 03/27/2012: Talk like a boss

Help

  • Zabes has noticed that stub_model is not working correctly in rails 3.2, even after applying the rspec fix. The problem is that stubbed objects aren't returning valid.

Events

  • Brownbag today in the common area, Kris Hicks will be teaching us how to git rebase like a boss, this is an open event so feel free to invite your friends.

PIVOTAL LABS
Standup 01/30/2012: Assigning IDs

Interesting

  • Assigning a collection with an = operator will not set the id on the parent object, to do this use <<.

Events

  • This weeks brown bag will be on SQL, three of our Australian pivots will be presenting it. You can join our meetup group to find out more information.