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

Standup 2010.06.17 Bagel Thursday Edition

Davis W. Frank
Thursday, June 17, 2010

Ask for Help

“What are people using in Rails apps for authentication via Facebook Connect?”

  • Devise
  • Janrain if you want something that can use many different social websites authentication; it also hooks up sharing, etc.

“There seems to be a bias against Rails Observers. Anyone know why?”

I want to use them, but whenever I look around people seem to say they don’t like them any more. Anyone know why?

“Is Pivotal Tracker crashing for you in Safari??”

This is a known issue but we’re having a bear of a time reproducing. We’re accepting Safari stack traces over email, with bonus points for figuring out how to send us Session cookies post-crash.

Interesting Things

  • When using Passenger in spawn mode (to fork your workers), post-fork you MUST reopen any outbound sockets for things like Redis, Memcache, etc. Otherwise all your other connections will use the same socket. And you won’t notice it until oddness starts to happen when under load and processes get the wrong responses.

  • For some time now, Google Chrome has been happily giving stack traces when using Jasmine! Firefox has always done this. If you’re keeping score, only Safari refuses to give you stack traces in your failing Jasmine specs.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

3 Comments

  1. Bruce Krysiak says:

    Hmmm, github seems to think redis sockets are ok (at least under unicorn – the forking should be the same w/unicorn, no?):

    from http://github.com/blog/517-unicorn :

    after_fork do |server, worker|
    [...]
    # Redis and Memcached would go here but their connections are established
    # on demand, so the master never opens a socket

    We were having issues with mongo and mongo_mapper gems in our Gemfile even though they were never loaded as far as we could tell – had to comment them out entirely to fix it… Then we moved over to unicorn since we were still having weird issues, now things seem super stable (last 24 hours at least ;-)

    June 17, 2010 at 7:00 pm

  2. Sam Pierson says:

    Redis and memcache-client do indeed connect to their respective servers on first request. The question is, does this first request happen before you fork or after? If you boot the Rails stack before you fork, and your boot up process accesses memcache (ours does), you may experience this problem.

    June 18, 2010 at 7:30 am

  3. Scott Windsor says:

    On observers – at first they seem like a good idea, but as you have a larger code base, they are easy to overlook. Have the before/after save logic outside your model makes you forget that it’s even there. Also, enabling/disabling observers in config has also been very odd as well. I’d much rather prefer something on the ActiveModel class to say which class observers it. This might allow for more flexibility for common observers to share code.

    June 19, 2010 at 12:48 pm

Add New Comment Cancel reply

Your email address will not be published.

Davis W. Frank

Davis W. Frank
San Francisco

Recent Posts

  • An Entirely Late Movember Wrap-Up
  • Mid-ish Movember
  • Getting Involved with Movember
Subscribe to Davis W.'s Feed

Author Topics

movember (2)
rails (16)
palm (6)
agile (14)
  • 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 >