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
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker
Joseph Palermo

[Standup][SF] 08/28/12: They at least strongly dislike each other

Joseph Palermo
Tuesday, August 28, 2012

Helps

  • Recommendations for static site generators for Heroku?

It looks like there’s a lot of them – does anyone have any personal recommendations?

Interestings

  • Draper and CI Reporter hate each other

This goes back to the Help a couple of weeks ago re: JSON being undefined. We blame Draper & its RSpec integration, but don’t yet have a solution.

  • eager_load and rake tasks

Eager loading doesn’t happen from rake tasks. This causes a problem if you are running in thread safe mode and dependency loading is disabled.

This has been fixed in master.

But until that is released, you can possibly branch your thread safe declaration on the existence of the $rails_rake_task global.

Events

  • eXtreme Tuesday

Come and talk about programming, and other aspects of XP. 6:30pm

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Jesse Smith

Standup 08/27/2012: Matthew Kocher has Interests

Jesse Smith
Monday, August 27, 2012

Interestings

  • git clone –recursive

Clones and inits and updates all the submodules.

  • Chrome debugger gem

https://github.com/conversation/chrome_debugger seems like it will be useful for something.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Whitney Schaefer

[Standup][SF] 08/24/12

Whitney Schaefer
Friday, August 24, 2012

Helps

  • Using asset pipeline outside rails

Correlating debugging errors to source files.

Currently using Sprockets template name in-lined. Any better solutions?

Suggestions:

  • Look at head repo of asset pipline
  • Middleman gem
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Whitney Schaefer

[Standup][SF] 08/23/12: Resqued!

Whitney Schaefer
Thursday, August 23, 2012

Helps

  • Alternatives to css :contains() selector

We use this selector in many tests, for example the ones that require to click on the link of a specific table row:

within "tr:contains('My Line')" do
    click_link "Edit"
end

This selector however is deprecated, and didn’t make it to css3.

Thus, is it safe to use it in tests?

Suggestions

  • Iterate over all the links
  • Put an id on the link
  • Probably not going away (and contains back in if it breaks)
  • Data attribute
  • Xpath – last resort
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Whitney Schaefer

Standup SF 8/22/12 – Database Backup Fun

Whitney Schaefer
Wednesday, August 22, 2012

Helps

  • ActiveRecord::UnknownPrimaryKey error when restoring backup on Heroku

Suggestions:

  • Check foreign key constraints
  • Use pgbackup

  • Taps Server Error: PGError: ERROR: time zone displacement out of range:

Taps Server Error: PGError: ERROR: time zone displacement out of range: “1970-01-01 12:00:00.000000+5857411200″

Suggestions:

  • Use pgbackup
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Jeff Hui

[SF] Standup 7/21/12

Jeff Hui
Tuesday, August 21, 2012

Interestings

  • Always call jasmine.Clock.useMock() after anything that uses setTimeout or setInterval (e.g. _.throttle)

This is smallest example that reproduces the problem we saw in our codebase:

describe(”underscore”, function() {
var foo, throttledFoo;

beforeEach(function() {
jasmine.Clock.useMock(); // bad!

var Mod = Backbone.RelationalModel.extend({});
var Col = Backbone.Collection.extend({model: Mod});
new Col([{selected: false, trashed: false}]);

foo = jasmine.createSpy();
throttledFoo = _.throttle(foo, 500);

// jasmine.Clock.useMock(); // good!
});

it(”should 1″, function() {
throttledFoo();
});

it(”should 2″, function() {
throttledFoo();
});

it(”should 3″, function() {
});

it(”should 4″, function() {
});

it(”should consistently pass but doesn’t”, function() {
expect(foo.calls.length).toEqual(0);
throttledFoo();

expect(foo.calls.length).toEqual(1);

throttledFoo();

expect(foo.calls.length).toEqual(1);

jasmine.Clock.tick(501);

expect(foo.calls.length).toEqual(2);

});
});

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Whitney Schaefer

[Standup][SF] 08/20/12

Whitney Schaefer
Monday, August 20, 2012

Interestings

  • Capybara/Selenium wait_for_ajax is your friend

A good generic wait until the last AJAX call has returned before moving on to your next assertion. Solved a lot of unstable-in-ci Capybara specs for us

http://agilesoftwaretesting.com/selenium-wait-for-ajax-the-right-way/

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Matt Royal

And that’s the week!

Matt Royal
Friday, August 17, 2012

Interestings

  • http://www.realtime.co

Cloud realtime messaging, simple javascript API.

Many fancy demos like realtime mouse [1]. 1 Dollar per 1 Million messages after surpassing the free 1 Million.

[1] http://www.realtime.co/business/demos/demo/mouselive

  • Factory Girl Traits

They are awesome, check them out.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ryan Spore

Please sir, I want some more pizza

Ryan Spore
Thursday, August 16, 2012

Interestings

  • Where’s my last bit?

    1.9.3p194 :019 > (2**62).class.name
    => “Bignum”
    1.9.3p194 :020 > (2**62 – 1).class.name
    => “Fixnum”

Q: Why is this not 2**63?
A: Fixnum object ids are the odd numbers, eg, 2.object_id = 5. This means you run out of bits one bit early.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Matt Royal

He’s coming to the party?!

Matt Royal
Wednesday, August 15, 2012

Helps

  • Jasmine Gem HEAD and undefined JSON

We’re trying to use the latest jasmine with ci_reporter, and jasmine complains that json is undefined. We’re unclear why it would disappear with an additional task being loaded?

Anyone seen this before?

Running “rake && rake jasmine:ci” should fix this

  • Anyone have experience writing FFI in Ruby?

crickets

Interestings

  • Capybara Webkit on Lobot

If you’ve successfully installed Qt >= 4.6 on CI, Jenkins might fail because bundler is unable to build capybara-webkit, raising the following error in the log:

[code]
Installing capybara-webkit (0.12.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
[/code]

If this happens, ensure that you have qmake in your PATH, since it is needed by the capybara-webkit build script.

  • Version 1.2.1 of the Jasmine gem is out
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (778)
  • rails (113)
  • testing (86)
  • ruby (83)
  • ruby on rails (70)
  • jobs (62)
  • javascript (54)
  • techtalk (44)
  • rspec (38)
  • activerecord (29)
  • productivity (29)
  • gogaruco (29)
  • ironblogger (29)
  • git (28)
  • nyc (27)
  • rubymine (25)
  • mobile (22)
  • bloggerdome (20)
  • cucumber (20)
  • process (19)
  • pivotal tracker (19)
  • jasmine (19)
  • design (18)
  • ios (18)
  • webos (17)
  • objective-c (17)
  • android (16)
  • palm (16)
  • "soft" ware (16)
  • fun (15)
  • tracker ecosystem (15)
  • ci (15)
  • cedar (15)
  • rails3 (14)
  • performance (14)
  • bdd (14)
  • gem (13)
  • selenium (12)
  • css (12)
  • goruco (12)
  • bundler (12)
  • tdd (12)
  • meetup (11)
  • railsconf (11)
  • nyc-standup (11)
  • capybara (10)
  • mac (10)
  • mojo (10)
  • chef (10)
  • rubygems (9)
Subscribe to agile Feed
  1. ←
  2. 1
  3. ...
  4. 6
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. ...
  12. 78
  13. →
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • 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 >