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

Meanwhile, over in Objective-C land

Andrew Kitchen
Friday, July 1, 2011

Two new interesting open-source Objective-C frameworks bookended our week this week:

First, Peter Kim sent a message to the Cedar-discuss mailing list to introduce us to his new matcher framework Expecta. Now, instead of OCHamcrest’s assertThatBool(maybe, equalToBool(NO)) shenanigans one can simply expect(2+2).toEqual(4); There’s also a nice DSL for implementing custom matchers for objects.

Excited about the possibilities, Kurtis and I spiked on implementing a set of custom matchers for commonly-used Cocoa structs such as CGPoint, something we have found lacking in current tools and testing patterns. Our entire project team looks forward to writing more tests using Expecta.

Also, Twitter Engineering just announced TwUI, a new Core Animation-based UI framework for OS X. Fun times.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 5/19/2011: Down on the form

Andrew Kitchen
Thursday, May 19, 2011

Help

“What does it take to get formtastic and paperclip working together out of the box?”

An enquiring Pivot would like to know.

Interesting

*”Did you know Skype history is regex-aware?”

Now go ahead and correct yourself before resending that message…

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 5/17/2011 — You can't un-ring the bell

Andrew Kitchen
Tuesday, May 17, 2011

Help!

heroku_san + autotagger >>> anyone? anyone? Ken wants to talk to you.

Half help, half interesting

versions in .rvmrc — use them. If you’re simply using ree@gemset things might fall apart after an upgrade. A better practice would be to use bundler, which will be more reliable in reinstalling your required gems if your ruby is upgraded.

Totally interesting

Pair eXchange at Pivotal SF tonight. Bring your side project and your thinking brain, and look forward to some fun pair programming!

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Open Source Development Workshop — Thursday, October 28 at 6:30PM

Andrew Kitchen
Wednesday, October 27, 2010

Open Source Development Workshop

Thursday, October 28 at 6:30PM

Pivotal Labs is hosting and our own Sarah Mei is leading an open source workshop for developers interested in learning about contributing to open source projects. Sarah will be using the Diaspora project as an example, and the Diaspora team will be on hand to assist. Email Sarah at sarahmei at pivotallabs dot com for more info, or view the meetup page here

Standup 2010-10-26 and 2010-10-27

Help!

“How do I use RVM on the server?”

RVM on the server can be fraught with peril. Be sure that your (or your process’s) shell is being invoked in a way which plays nice with RVM, for instance bash -lc or bash -ic in cron.

“Why does Google Street View give me a grey dead area instead of a picture of some dude’s house?”

Most likely this is due to having requested a view for an area where none is available. The Google docs have been found to be a bit misleading on this, however there is an api call to see if there is an available street view for a given radius — try increasing this radius near your lat & long until you get success in order to avoid a useless response.

Interesting

  • Running MySql in ramdisk does not yield any discernable performance boost for small to medium-sized rails projects, for test suites or the app itself. This is probably due to the fact that most projects’ code and data are already small enough to fit in cache.
  • Looking for a real perf boost? Try REE with the Twitter GC tweaks
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 2010-10-25 — Rails 3-related helps and interestings

Andrew Kitchen
Monday, October 25, 2010

Help

  • Edit: followup to delayed_job job logging failures

Switching to resque might help, but not without first rewriting the jobs.

More research yielded the fact that delayed_job reopens all files (including the log files) when it spins up. Under Ruby 1.8, File#reopen defaults file mode to last set, while 1.9 defaults to read only. This could easily cause logging failures. (with a nod to Davis W. Frank for the followup info)

Interesting

  • Calling .destroy on a has_one relationship does not update the record association to nil, which can cause problems when the relationship is subsequently updated. It was suggested that calling .clear on the association might help work around the issue.

  • Rails 3 request helper methods in ActionController::TestCase::Behavior take the session and flash hashes as parameters, as opposed to setting them explicitly before making a normal get request. Compare http://api.rubyonrails.org/classes/ActionController/TestCase/Behavior.html#method-i-get with http://api.rubyonrails.org/classes/ActionDispatch/Integration/RequestHelpers.html#method-i-get for more detail

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Andrew Kitchen

Andrew Kitchen
San Francisco

Subscribe to Andrew's Feed

Author Topics

cedar (1)
objective-c (1)
twui (1)
agile (4)
  • 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 >