Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Joseph Palermo

Posts By

LABS
Rails Associations With Multiple Foreign Keys

Recently we had a situation where we inherited a schema and two of the models were joined using multiple foreign keys. The Rails associations API doesn’t appear to offer any good solutions to this problem. You can specify a single foreign_key and a single primary_key, but nothing really for multiple keys.

Read more »

LABS
Why Pivots don't do their best work at night

There is an interesting article by Swizec Teller over at Business Insider talking about why programmers do their best work late at night.

This is not the case at Pivotal.  Generally when we have clients committing code late at night, the team ends up having to refactor it and get tests around it the next day.  

Read more »

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

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

PIVOTAL LABS
06/26/12: Headless is fine, double headless is trouble

Interestings

  • Don't Lose Your Head (twice)

Using rake ci:headless[...] AND having an around filter in your spec_helper to run your capybara JS specs headlessly is not a winning combo. Pick one.

PIVOTAL LABS
06/25/12: capybara-webkit on Centos?

Helps

  • capybara-webkit and Centos

Capybara webkit works with one app using lobot with a trivial spec. With another app, it fails with a Errno::EPIPE: Broken pipe every time. It seems this error message means "something went wrong" which isn't particularly helpful. We're wondering if anyone else is using capybara webkit on centos with success?

Some talk of font differences and CSS selectors was mentioned.

Interestings

  • filepicker.io

The guys from filepicker dropped by the SFDevOps hack day on Sunday, and it looks like it could be an interesting way to handle file uploads. They have various integrations, and your user can chose to "upload" a file from dropbox/box/facbook and gives you back a url for your app to grab it from. Haven't tried it, but it seems like it could be a quick win.

Events

  • eXtreme Tuesday Club

We meet each Tuesday to discuss TDD, XP and architecture over pizza and Tuesday lunch's leftovers.

See the meetup.com page for more information.

PIVOTAL LABS
Standup 01/13/2012: Will the real 13th please stand up

Ask for Help

"When using the wkhtmltopdf library via the PDFKit gem, if you use an HTML snippet that does not have a height defined, it generates a PDF that appears to only be an image, the text is not searchable or selectable. If you give your element a height however, it behaves as you would expect. Both PDF documents visually look the same though."

PIVOTAL LABS
Standup 01/13/2012: I certainly don't have a branch named "-"

Ask for Help

"Trying to write a custom Rails I18n exception handler to catch MissingTranslationData exceptions"

The API didn't seem to do what it claimed it should.

"RubyMine EAP undo behavior seems broken, it only wants to undo a file deletion, and then go back no farther in history."

It was suggested that RubyMine undo is context sensitive, and having focus on the file browser has a different undo stack from the editor window.

"mysql2 gem on Lion is giving us an error: "Library not loaded... Image not found" and then a path pointing down into our RVM directory."

Building the gem with options pointing to your mysql directory was suggested.

Interesting Things

"git checkout -" will toggle you between your last two checkouts (branches or just plain SHA's). Handy if you are switching back and forth. Can't seem to find it mentioned anywhere in the docs though.

PIVOTAL LABS
SF Standup 06/16/2011: Instantiate Paperclip model?

Ask for Help

"I have paperclip columns from a custom sql query. Is there any way to instantiate the associated objects just to generate the paperclip urls for those attachments?"

Calling new on the base class and passing in the data does not seem to work.

Interesting Things

The script tab of the webkit inspector has breakpoints for all kinds of events. Is a click event not behaving like you think it should? You can easily check a box and have all click events open the debugger.

PIVOTAL LABS
SF Standup 06/14/2011: Case Sensitive File System

Ask for Help

"Why do NULL values get inserted as strings when using mysql LOAD DATA INFILE after dumping the data with mysql -e"

Unfortunately this team only has control over the import, not the existing export. Their only option found was to replace occurrences of NULL with N after getting the import file.

Interesting Things

A team again reminds us to be aware that the default file system in OSX is case insensitive. They thought this was the reason git would not commit a lowercase file rename for them. However, this setting was later found for your .git/config file.

[core]
ignorecase = false

PIVOTAL LABS
Standup 11/23/2010: Cucumber eating sessions

Ask for Help

"Why is Cucumber clearing our sessions between requests?"

A team is doing Cucumber/WebRat tests of a SAML authentication flow using Devise. No matter what they do, their session seem to be getting cleared between requests. It was suggested to write a vanilla Rails integration test to see if the problem is in Cucumber or the App.

"Any recommendations for a CMS to use with Rails?"

The textarea backed by a single model just isn't cutting it anymore and we probably don't want to end up building our own. Any success or horror stories?