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
David Goudreau

Standup 4/1/2011: April Fool's edition

David Goudreau
Friday, April 1, 2011

Ask for Help

“Paperclip and fixture builder – we’re getting some strange errors that for some reason are fixed when you rerun fixture builder – any ideas?”

No one has run into this specifically, but a few people said to make sure you’re mocking out Paperclip.

“Fakeweb, Webmock, VCR, artifice – what’s a good Ruby/Rails developer to use?”

It was mentioned that Artifice is good for Selenium tests while Fakeweb and Webmock are good for rSpec tests. VCR’s got some fans as well. Sounds like you can’t go all that wrong whatever you choose.

Interesting-y

  • GoGaRuCo – This year it will be September 16th & 17th. A call for proposals will be going out sometime in the near future.

  • Unicorn – it turns out that Unicorn doesn’t reopen logs after a log rotation unless the path to the log in Unicorn is absolute – so don’t use relative paths!

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

Standup 3/31/2011: Process.spawn pwns all yer codez!

David Goudreau
Thursday, March 31, 2011

Interestings

Get your Rails mentoring on at RailsBridge this April 8th & 9th @ the Modcloth offices in downtown SF. It’s very rewarding.

If you have nested_attributes updating an attribute that is NOT in your attr_accessible attribute list on your ActiveRecord model you won’t get an exception – it will just silently fail. It will, however, output a warning line to your Rails log file. Fun for the whole family.

Using popen to open a process actually calls ‘sh -c’ to open your process, so the process you just ran is actually the child of the ‘sh -c’ process you just ran. This makes tracking down PIDs simply wonderful. :-) You can use ‘exec’ instead and your process will be the parent process. But if you’re using the new hotness you can instead use Process.spawn in Ruby 1.9.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

NYC Standup 2011-03-30

Pivotal Labs
Wednesday, March 30, 2011

Helps

Floating an image to the bottom right of an element and having text flow around it. Is there a pure CSS solution to this or is Javascript required?

Interestings

Adam wanted an easy command to run during deployment to get the remote master SHA1 of a git submodule.
The command he was interested in was:
git show origin master -- vendor/your-submodule-here

Josh mentioned that Capybara has a new DSL that makes steak unneeded. There’s a good post here on how to get started with it.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 03/30/2011

Pivotal Labs
Wednesday, March 30, 2011

Ask for Help

We have an html table with rows that correspond to
database rows. We’d like an easy way to implement per- > row editing of this data, but <TR>s are not happy to be
wrapped in a <FORM>. How fix?

  • use javascript to copy the data to a form element or do a straight AJAX post
  • Backbone.js has the ability to link html elements to server-backed data models, might be handy here
  • put forms around individual <TBODY> elements for the individual rows

We’re using ActiveResource as a foundation for our API client, but it doesn’t process JSON errors correctly. How fix?

This has been in the issues tracker for ActiveResource for over a year and is marked low priority. HttpParty was suggested as an alternative, anyone else have something they like?

Interesting Things

Some folks are using HTML5 Canvas and are taking IE9′s canvas support for a spin. Turns out that if you apply some font settings to text on a canvas and then rotate it, IE9 will actually shift the center point of the text, creating a surprising jump, diagonal in this case. If you don’t want your text to hopscotch across the page, you have to rotate it first, then apply the font.

Webrat used with selenium doesn’t follow redirects with Rails 2.3 on Mongrel. One team used thin instead of mongrel, which solves this problem. Using webrat with thin requires a patch

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

Standup 3/29/2011: Git it!

David Goudreau
Tuesday, March 29, 2011

Ask for Help

“Is there a better way to work on a feature, set that feature set aside, do a small change, check that small change in, then resume work on the feature, all using Git?”

git stash was originally used. There were also suggestions to use a feature branch or use one of the Git GUI tools (gitx, tower, smartgit, gitti) that let you partially stage your changes then check in. Or git-friendly workflow scripts or the ol’ reliable git cherry-pick.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 03/28/2011: It's over -10,000!

Pivotal Labs
Monday, March 28, 2011

Turns out there’s a hidden “feature” in jQuery’s .animate method. If your starting point for an animation is less than -10,000 px, it sets it to 0. Meaning your -10000 to -12000 animation is going to move a surprising 12000 pixels. There, fixed that for ya!

The -10,000px limit is hard-coded deep in the jQuery animate code, we speculate that it may resolve an issue in one browser or another. So before you start creating Ken Burns-style photo pans with your gigapixel images, make sure you have a plan to dodge this limit.

We’re committed to providing clients with license information for all the libraries we use on each project. To that end, some Pivots have created LicenseFinder, a command line tool which scans your project for Rubygems and summarizes the license data it can recognize. It’s recently had some upgrades. [Check it out].(https://github.com/pivotal/LicenseFinder)

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 3.25.2011:

Pivotal Labs
Friday, March 25, 2011

Help

  • fonts.com is giving 404s, it appears their CDN is down
  • How do you style a File Input? There are several jQuery plugins that do this, one that worked well (and includes drag & drop support) is jQuery-File-Upload
  • Selenium + Webrat, oh my: If you try adding selenium tests to an existing test suite you may find that your test database data gets blown away. A good solution to this is to separate your selenium tests into another test suite and run them separately

Interesting

  • assert_template is just doing a regex, which means that it may incorrectly be passing if you are asserting on a string that is a substring of the actual template name you expect
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 3/24/2011: Spork and debugging

Jesse Toth
Thursday, March 24, 2011

Helps

“Chrome 11 + Webdriver + Java applets – Chrome 11 has changed the always allow Java plugins setting so that it is no longer global, and must be allowed for each applet. When running tests, Webdriver deletes the profile that stores this setting after each test run, causing specs to fail since a new dialog asking whether to allow the plugin pops up every time. Any ideas?”

The current fix seems to be to downgrade to Chrome 10.

“Does anyone know why using Spork + the ruby debugger just outputs ‘disconnected’ and doesn’t break at any breakpoints?”

The general consensus is to run tests on Spork and print out Spork when you want to debug.

Interesting Things

  • You should try Spork if you’re using Rails 3 and your tests are running slowly.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 3.23.2011: update your rvm, bundler 1.0.10 fix, autofocus in WebKit

Pivotal Labs
Wednesday, March 23, 2011

Interesting things

  • Until yesterday rvm had bugs with double slashes in paths when doing an automatic install of a specific ruby when you cd to a directory. Grab the latest off github if you need this fix.

  • Updating Bundler 1.0.10 may result in parse errors if your yaml contains symbols. See this post for details: https://rails.lighthouseapp.com/projects/8994/tickets/6354-psych-does-not-handle-symbols- and try this in your config/boot.rb:

require 'yaml'
YAML::ENGINE.yamler= 'syck'
  • autofocus attribute + hover css rule in WebKit may not play nicely with each other
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 3/22/2011: jQuery conference 2011

Jesse Toth
Tuesday, March 22, 2011

Interesting Things

  • jQuery conference 2011 San Francisco will be April 16-17. More info here
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (780)
  • rails (113)
  • testing (88)
  • ruby (83)
  • ruby on rails (70)
  • jobs (62)
  • javascript (55)
  • techtalk (44)
  • rspec (38)
  • ironblogger (32)
  • productivity (30)
  • activerecord (29)
  • gogaruco (29)
  • git (28)
  • nyc (27)
  • rubymine (26)
  • bloggerdome (23)
  • mobile (22)
  • process (21)
  • pivotal tracker (20)
  • cucumber (20)
  • 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)
  • css (13)
  • tdd (13)
  • selenium (12)
  • goruco (12)
  • bundler (12)
  • meetup (11)
  • railsconf (11)
  • nyc-standup (11)
  • capybara (10)
  • mac (10)
  • mojo (10)
  • chef (10)
  • api (10)
Subscribe to agile Feed
  1. ←
  2. 1
  3. ...
  4. 25
  5. 26
  6. 27
  7. 28
  8. 29
  9. 30
  10. 31
  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 >