Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Tools
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Monthly Archives: November 2010

Ken Mayer

rails 3.0.2 + jasmine 1.0.1.1 + json_pure == dll_hell.rb

Ken Mayer
Tuesday, November 23, 2010

The 3.0.2 update to rails made a change in active support that creates an interference pattern failure in the jasmine-gem. Not jasmine, itself, mind you, just the standalone server that runs the jasmine tests, and not the server, but just the report runner. Thus, your tests are all green, but the jasmine suite fails anyway. You might see this error:

undefined method `merge' for #<JSON::Pure::Generator::State:0x102181890> (NoMethodError)

The selenium driver inside the jasmine gem is loadingjson_pureunless it can find an already loaded JSON class. json_pure was hacked by rails for other reasons, but it breaks JSON.generate. Madness ensues.

To fix this, you need to use something other than json_pure, at least in your test suite. The fix, fortunately, is pretty simple. Add the following line to your Gemfile

gem "json", "1.4.6"

This will load the json gem built with native extensions. The version number is not necessary to fix this problem, but we try to lock down versions as a standard practice.

This was maddeningly painful to pinpoint. I’m not sure if there’s a long term solution to the problem either. You need a JSON library, but so do many others. Monkey patching the class seems really handy, but is prone to break behaviors.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joseph Palermo

Standup 11/23/2010: Cucumber eating sessions

Joseph Palermo
Tuesday, November 23, 2010

Ask for Help

“Why is Cucumber clearing our sessions between requests?”

A team is doing Cucumber/WebRat tests of a SAML authentication flow using Devise. No matter what they do, their session seem to be getting cleared between requests. It was suggested to write a vanilla Rails integration test to see if the problem is in Cucumber or the App.

“Any recommendations for a CMS to use with Rails?”

The textarea backed by a single model just isn’t cutting it anymore and we probably don’t want to end up building our own. Any success or horror stories?

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
David Stevenson

Standup 11/22/2010: How can a rails engine provide migrations?

David Stevenson
Monday, November 22, 2010

Ask for help

  • We just upgraded one project from Devise 1.1 to Devise 1.2 and reported “many problems which blew up all sorts of stuff”. It was bad enough we had to rollback. Are there others with failure or success stories for this upgrade?
  • Can you rate limit EC2 nodes using an Elastic Load Balancer? We’d like to cap the amount of traffic that can be sent to an app instance. I’m thinking advanced use cases like this are probably why you run your own haproxy instead of using ELBs.
  • How are people running database migrations in their engine gems? I know rails 3.1 promises to bring this to the table, but is there a backport gem we can use?

Interesting

  • iOS 4.2 is out! We’re looking forward to trying it on the iPad (finally).
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Sean Beckett

New Tech Talk: Qualitative Research – Tips for Getting Started Talking to Users

Sean Beckett
Friday, November 19, 2010

Talking to users is a good idea but where to begin? Qualitative Research expert Laura Klein gets you started garnering valuable feedback from current and potential users. She covers appropriate research for the various stages of the development cycle and what questions qualitative research can answer effectively. The talk features practical tips on screening and recruiting users for feedback, moderating the sessions, and analyzing your data.

See all our talks at http://pivotallabs.com/talks

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Sean Beckett

New Tech Talk: Introduction to Riak

Sean Beckett
Friday, November 19, 2010

Riak is a fault tolerant, highly-scalable key/value store being used by companies like Mozilla, Mochi Media, Comcast and Vibrant Media. This talk focuses on the origins of Riak, the high level architecture decisions, the problems it solves and what to think about when using it to build applications.

See all our talks at http://pivotallabs.com/talks

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

Standup 2010-11-19: TGIF

Ken Mayer
Friday, November 19, 2010

Helps

What options exist for mobile application development?

  • Titanium
  • Sencha Touch
  • WebView
  • PhoneGap
  • jQuery Mobile
  • … many others …

The general consensus seems to be that many of these frameworks work fine for simple applications, but quickly run into walls, bugs, and fails once things are less than straightforward. If you’re writing a simple application, it probably falls in the mobile web application category and then all you need is a web view. YMMV, but know what you want your application to do before making a choice. Most likely, you have to write a native application for each platform.

Interestings

  • jQuery 1.4.4 Released Read the blog entry for details; if you’re having issues, they might be solved in this release.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

When to do User Acceptance Testing?

Ken Mayer
Thursday, November 18, 2010

A former client asked:

“What does Scrum say about User Acceptance Testing? I am wondering if it should best be done within 24 hours of delivery, or at the end of a sprint…“

I’ll dodge scrum, but answer how we do it here by framing this in terms of risk and velocity:

We prefer to get acceptance as soon as a story can be delivered to the acceptance/demo server. Intra-day is the best, but certainly within the same sprint when the work is done so as not to muddy velocity measures (a story isn’t done until it is accepted, so there’s incentive on all sides).

The longer a story sits out there (waiting to be accepted), the bigger the risk that it is “wrong” and needs re-work. Since the code base continues to evolve, fixes are harder the further they are away (in terms of commits) from the original change-set. This can slow down velocity. We want to reduce risk and maintain a steady velocity. Thus, the sooner a story is accepted by the stake holder, the better.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

Standup 2010-11-18

Ken Mayer
Thursday, November 18, 2010

Helps

  • Bundler + Heroku gotcha: Deploys to Heroku can break if you are using Bundler v1.0.6 in your local development environment (as of this writing, Heroku is using v1.0.3). Apparently the --deployment switch is being stripped off and Gemfile.lock is rebuilt. If the file differs from what’s in the git repository, the deploy will fail with a somewhat mysterious error message. Work-around: Specify the bundler gem version to v1.0.3 (perhaps even up to v1.0.5) in your Gemfile.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Introdution to Riak

Wednesday, November 17, 2010 | Run time: 54:54

Riak is a fault tolerant, highly-scalable key/value store. This talk focuses on the origins of Riak, the high level architecture decisions, the problems it solves, and what to consider when using it to build applications.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Qualitative Research

Wednesday, November 17, 2010 | Run time: 55:39

Qualitative Research expert Laura Klein helps you garner valuable feedback from current and potential users. She covers appropriate research for the various stages of the development cycle and what questions qualitative research can answer effectively.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (783)
  • rails (117)
  • testing (90)
  • ruby (86)
  • ruby on rails (71)
  • jobs (62)
  • javascript (59)
  • techtalk (44)
  • ironblogger (42)
  • rspec (39)
  • bloggerdome (34)
  • productivity (34)
  • activerecord (30)
  • rubymine (30)
  • git (29)
  • gogaruco (29)
  • nyc (27)
  • design (24)
  • mobile (23)
  • pivotal tracker (22)
  • process (21)
  • cucumber (21)
  • jasmine (19)
  • ios (18)
  • tracker ecosystem (17)
  • webos (17)
  • objective-c (17)
  • fun (16)
  • android (16)
  • palm (16)
  • ci (16)
  • "soft" ware (16)
  • bdd (15)
  • tdd (15)
  • cedar (15)
  • rails3 (14)
  • performance (14)
  • css (14)
  • gem (13)
  • mouse-free development (12)
  • selenium (12)
  • goruco (12)
  • bundler (12)
  • api (12)
  • keyboard (11)
  • meetup (11)
  • railsconf (11)
  • nyc-standup (11)
  • capybara (10)
  • mac (10)
Subscribe to Community Feed
  1. 1
  2. 2
  3. 3
  4. 4
  5. →
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Tools
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >