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
Joe Moore

Standup 03/20/2007

Joe Moore
Tuesday, March 20, 2007

Interesting Things

  • An internal project has migrated to Ruby 1.86 and Mongrel 1.0.1 with no ill affects, with the bonus that this combo fixes a known memory leak in Mongrel.
  • Ruby Fu: it was pointed out that Ruby method argument defaults can refer to other arguments to that same method:
<code>
def wrangle_monkey(x, y = x + 1)
  # Above, `x + 1` refers to to method argument `x`
end
</code>
  • One project wrote a super-cool rake task that helps manage JSUnit servers and test runs. Talk to A.C. if you are interested.
  • Rails Helpers and template’s use of erb is…weird. Details are blurry and the developers who discovered the issues should post the heavy stuff on this blog, but suffice to say don’t be surprised if you have trouble working with the erb output stream in your helpers.

Ask for Help

  • The Men’s room key is missing, and one team needs CSS help… hopefully these are not related.

Total Stand-up Meeting Time: 16:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/19/2007

Joe Moore
Monday, March 19, 2007

Interesting Things

  • Markaby: while Rails helpers are available when using Markaby to generate HTML, some of those Rails helpers do not return strings of HTML, but instead add content directly to the ERB output stream, which won’t help you. You can capture this ERB output by using the Rails helper capture().
  • The appable_plugins folks fixed the Class non-reloading issue we talked about earlier. Thanks guys for fixing Bug 7!
  • Adobe just released their Apollo framework, which allows web applications access to a computer’s local file system, amongst may other features.

Ask for Help

  • Please save us from… PS2 keyboards! We’re flooded with them. Perhaps we can use them in an art project.

Total Stand-up Meeting Time: 14:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/16/2007

Joe Moore
Friday, March 16, 2007

Interesting Things

  • Selenium: one team is experimenting with running multiple Selenium tests at the same time and getting major performance boosts without any database collisions. They’ll keep us posted and roll this out to the rest of us if it’s successful.
  • cc.rb – we’re still looking at it and will provide updates when we have some results.
  • Markaby: +1 vote. More and more people seem to like Why’s HTML/XML parsing library.

Ask for Help

  • Does anyone know if you can use URL sub-domain information in Rails’ routes.rb?
    • We don’t think so. Most teams launch multiple instances of their application and use this information in their routes.rb to dictate routings, or Apache URL rewriting or redirects.

Total Stand-up Meeting Time: 15:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/15/2007

Joe Moore
Thursday, March 15, 2007

Interesting Things

  • Note that the Rails testing framework might be the only place that performs a require for classes and libraries that are needed by your application. End result: your tests pass, but your application doesn’t work. For all the testing frameworks and methodologies, nothing beats the ol’ “click through” for peace of mind.

  • Flexmock: When using Flexmock, you are must specify that the mock is called at least once, or your assertions might erroneously pass. Example:

<code>
    # Will pass even if :monkey is never called!
    my_flex_mock.should_receive(:monkey!)

    # Will fail if :monkey is not called once
    my_flex_mock.should_receive(:monkey!).once
</code>
  • Rspec syntax: old vs. new — the new style for should assertions is a “multi word” style rather than “under_score_word”. Example:
<code>
    # Old style: underscored word
    monkey.should_be_nil

    # New style: multi word, multi method
    monkey.should be_nil
</code>
  • has_many gotcha: Many already know this, but for a has_many relationship, the append method (<<) performs a save if the subject exists in the database already. In a test, you might need to perform a monkey_wrangler.reload to pick up all of the changes after a monkey_wrangler.monkeys << baboon
  • We are developing a Rails + AJAX wizard framework. Stay tuned!

Ask for Help

  • Any concerns or issues regarding performing many AJAX requests over HTTPS?
    • The main concern shared by the group was performance. Any other issues that people know of?

ctrl+z

  • It turns out that the has_many :through order dependency issue we described was our fault.

Total Stand-up Meeting Time: 23:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/14/2007

Joe Moore
Wednesday, March 14, 2007

Interesting Things

  • Another IE6 issue: CSS selectors. A div can have multiple classes, such as <div class="grey box"></div>, and there are multiple CSS selectors for this, only one of which works with IE6:
<code>
/* Works fine with IE6 */
.grey .box {
    border: 1px solid black;
}

/* DOES NOT WORK with IE6 */
.grey.box { /* Note the lack of space! */
    border: 1px solid black;
}
</code>
  • In Rails, It is possible to declare a “white list” and a “black list” of attributes that can be mass-assigned in an ActiveRecord model: Note that these cannot both be used in the same class!
    • attr_accessible (white list) – only attributes in this list can be mass-assigned.
    • attr_protected (black list) – as long as an attribute is not in this list, it can be mass-assigned.
  • Rspec redirect assertions now work! Use this in your controller specs:
<code>
response.should redirect_to(:controller => "my_controller", :action => :an_action)
</code>
  • alias_method_chain is an extremely handy new method in Rails, which encapulates a common pattern. Much of Rails and appable_plugins is built on this.
  • And most importantly: Taqueria Cancun now has carnitas!!!.

Ask for Help

  • Has anyone had problems with IE6 failing to send Ajax requests?

Total Stand-up Meeting Time: 18:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/13/2007

Joe Moore
Tuesday, March 13, 2007

Interesting Things

  • svn:keywords: if you want to use svn:keywords in files checked-in to SVN, you have to do more than just put those keywords in your file — you have to explicitly list the keywords in a property, such as:
<code>
$ svn propset svn:keywords "LastChangedDate" weather.txt
property 'svn:keywords' set on 'weather.txt'
$
</code>

Then, weather.txt can display the date with the following: can have the following:

The weather on $LastChangedDate$ was good!

Total Stand-up Meeting Time: 10:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/12/2007

Joe Moore
Monday, March 12, 2007

Interesting Things

  • Mac OS X: Having trouble getting Ruby or MySQL ot work from within programs such as Intellij IDEA? Try setting environment variables in ~/.MacOSX/environment.plist.

Total Stand-up Meeting Time: 10:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/09/2007

Joe Moore
Friday, March 9, 2007

Just project updates today!

Total Stand-up Meeting Time: 13:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/08/2007

Joe Moore
Thursday, March 8, 2007

Interesting Things

  • We created a complete Ruby on Rails setup script for Mac OS X. Give it a try if you are bootstrapping a Mac for Rails.
  • If you are having problems with Hpricot, update your gem to 0.5, which has improvements.

Ask for Help

  • One project is looking for menu system suggestions, so feel free to mention your favorites.
  • We had quite a conversation about saving URLs in model objects. For example, what if you have an internal mail/message system on a site, and you want the system to embed links such as “click here to view the sender’s profile.” As the system is refactored, the target of those links might change and we’d prefer not to have to search for URLs in the database and change them. As we implement a solution perhaps we’ll post it here.

Total Stand-up Meeting Time: 13:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Standup 03/07/2007

Joe Moore
Wednesday, March 7, 2007

Interesting Things

  • Watch out for this This Rails bug: find :conditions => ‘id is null’ returns a record with a non-null id
  • We experimented with using the :after CSS float-clearing method after reading this Contained Float article. Though interesting, its seems very fragile, especially for IE.
  • It looks like the Rspec problem with Controller tests is a combination of Rails 1.2 and out own custom code.
  • We’re going to try out CruiseControl.rb on an internal project. We’ll keep you posted.

Total Stand-up Meeting Time: 18:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (781)
  • 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 (21)
  • cucumber (20)
  • design (19)
  • jasmine (19)
  • ios (18)
  • webos (17)
  • objective-c (17)
  • android (16)
  • tracker ecosystem (16)
  • palm (16)
  • "soft" ware (16)
  • fun (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 Standup Feed
  1. ←
  2. 1
  3. ...
  4. 83
  5. 84
  6. 85
  7. 86
  8. 87
  9. 88
  10. 89
  11. 90
  12. →
  • 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 >