Kelly Felkins's blog
I apologize for posting this 2 days late.
Help
Are there any open services like the Music Genome Project? Our project needs to calculate distance between 2 songs.
Some people think the Music Genome Project is open. Related, but not directly answering the question is MusicBrainz, an open system for identifying music via accoustic fingerprint.
Interesting
- There was a SF SproutCore Meetup on Tuesday.
Help
What are projects using for file upload? Paperclip? Carrierwave?
Most continue to use Paperclip, though a few projects have successfully used Carrierwave. Carrierwave apparently has better mongo support.
I tried to setup ruby and rails, and installed the latest mysql gem and I get warning messages about the mysql gem.
Others have experienced this too and offered to help. The main answer seemed to be "the warnings are lies, it will work."
Interesting
- Checkout Pry. It's an irb replacement that includes tab completion and cd and ls for navigating scopes.
Ask for Help
"What do you recommend for Devise user invitations?"
Interesting Things
- Did you know that Rubymine can search files found with a previous search? Do cmd-shift-f and do a search. Do cmd-shift-f again. In the dialog, select 'custom'. In the drop down list is 'Files in Previous Search Result'
- Former Pivot Alex Chaffee is teaching a javascript class, and there are still a few openings.
Ask for Help
"Any suggestions for analytics on iPad events?"
Questions like, how many times has this video been played or how many times has this object been tapped.
One suggestion was to hit a web server somewhere with some details and use splunk to analyze it.
"Any experience using a flag to indicate an administrator in Devise?"
Some indicated that this is difficult to do with Devise, and recommended against it. Someone else pointed out that the Device site actually includes this as an example.
Ask for Help
"Anyone using Selenium 2 and Webdriver?"
One of our internal projects is using it.
"How to stop time in Jasmine?"
There were a couple suggestions:
- use a global function, such as 'now'
- send in your own clock object
"Whurl standalone, or more dynos?"
Apparently Whurl is running on a single dyno at Heroku, so a single bad request can tie up Whurl until the request times out. Where are you TildeWill?
"What's this called?"
Imagin these are records in a relational database, with the records on the left having a one to many relationship with the records on the right. How would you google this?

Interesting Things
RubyMine 2.0.2, refactor => extract partial == FAIL. If you select multiple divs and perform extract partial, the selected region is removed, but only the first complete div is included in the new partial.
Rspec/Rubymine focused tests. Rubymine attempts to run focused tests using the
--example 'text'option. Rspec apparently finds the example group, and runs the examples that are directly a part of that example group, but does not include descendent example groups -- *which can lead you to think examples are passing that were not actually run*. Apparently this is fixed in rspec 2.
Ask for Help
"Display of time is off by an hour, presumably due to Daylight Saving Time"
The team is displaying time stored as utc in the database, using strftime, and the time is off by an hour.
"Binding Click to Checkbox with Jquery"
A team was trying to check the value of a checkbox during the click event, but getting the opposite value. They worked through it but was hoping to find a better solution.
"Why is there a new default for include_root_in_json for rails 3?"
Just curious.
"Fakeweb, Capybara w/Selenium Webdriver == end of file?"
Getting "end of file" failure on CI. There were a few suggestions:
- There is a fork of fakeweb that allows it to ignore localhost.
- Consider using Webmock instead of fakeweb.
Ask for Help
"mp4s do not play during download in chrome"
Talks at Pivotal are recorded and published in various formats. Our talks page has an embedded viewer so that people can watch the video without downloading. We also offer a downloadable version in mp4. Most browsers will play the video as it is downloading. Google Chrome does not. Are we doing something wrong?

Interesting Things
Beware: has_many associated objects are saved before has_one associated objects.
update_attribute of foreign_key value on belongs_to association does not save...when object was created by factory girl?
This is pretty specific, but perhaps not enough to be useful. The team tried to do an update_attribute on an object generated by factory girl, changing the belongs_to column value. However, no database update would occur. They later resolved this by doing a reload on the object before the update_attribute.
"Update_attribute is almost never the right thing to do" --anon
Ask for Help
"Our demo site is running on nginx and protected by basic auth. Flash doesn't do basic auth. What do do?"
"Any suggestions for using ActiveResource to access nested resources?" One team was trying to use ActiveResource to access a nested restful web service and found the documentation lacking.
Interesting Things
- RSOC (Ruby Summer of Code) is looking for mentors. Pivotal is a sponsor and in addition will be providing desk space for some RSOC participants.
- Neo4j meetup at Twitter HQ tonight! Details on the neo4j blog
Ask for Help
"Do you have to use to_param in functional tests?"
In the past you could simply provide an object in a param list in functional tests and the to_param for the object would be called to get the proper value for the parameter. This is now broken, forcing you to use object.to_param every time.
Perhaps not helpful for existing projects but I recommend you use cucumber, webrat, or even selenium rather than Rails functional tests. Rails functional tests require that you specify parameters and specify them correctly. If you get them wrong your functional tests might continue to pass for the wrong reason. Here's another "bad params in functional tests" post.
Interesting Things
- Rubyconf program should be available today on their website
