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 07/09/2010: Jumbo Edition

Joe Moore
Friday, July 9, 2010

HELP!

“Any recommendations for a recurring-payment system that has to support charge amounts that change?”

Check out Active Merchant, PayPal API, Chargify, or simply rolling your own and charging the credit cards directly.

“I’m having a hard time debugging jQuery live events…”

Check out FireQuery. You can also look at the data attributes attached to the target DOM elements.

“Sometimes our S3 assets download incompletely when using Net::HTTP.”

Things to try include:

  • Save a checksum for all assets and compare that after download to detect incomplete downloads.
  • Check the Content-Length header against the actual content length of the asset.
  • Did you set the Content-Type header? Maybe Net::HTTP is confused.
  • Try witching from Net::HTTP to the S3 gem.

“How can we prevent users from printing the web page?”

Though nothing can prevent users from making a screen shot, deterrents might include:

  • A custom print.css.
  • Some printers will not print the EURion constellation. Try embedding it in the image.

“Our Solr commits have sloooooooooooooooowed doooooooooooooooooooooooown.”

As Solr commits increase the warmers might take longer to spin up. You might need to add more servers or space our your commits.

Interesting Things

  • Pivotal is trying to retire our saucelabs-adapter for Sauce Labs. Sauce has improved their adapters — if you are having problems with them, let Sauce (and us) know!
  • MySQL Partial Indexes can be super handy.
  • YouTube announced a while back that they are changing their URL format for videos. In a nutshell they are moving away from query parameters, changing the “?” to “#!”, so http://www.youtube.com/watch?v=ylLzyHk54Z0 changes to http://www.youtube.com/watch#!v=ylLzyHk54Z0.
  • My Tether turns your Palm Pre into a WiFi hotspot. Sprint only!
  • RubyMine blah blah Rspec blah blah… check out this blog post to find out how to fix Rspec stack traces.
  • SproutCore Founder Leaves Apple to Build HTML5 iPad Apps
  • Don’t use Ruby’s split() method to parse tab-delimited files — you might lose the extra white space at the end of the file when you have empty columns:
  irb> "Mr.tBobtSmith".split("t")
  => ["Mr.", "Bob", "Smith"]
  irb> "Princett".split("t")
  => ["Prince"]
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

3 Comments

  1. Joseph Palermo says:

    With regards to `split`, it takes a second parameter that limits the number of fields returned.

    If the second parameter is negative, there is no limit to the number of fields returned, and it won’t eat trailing white space at the end.

    irb> “Princett”.split(“t”, -1)
    => ["Prince", "", ""]

    July 9, 2010 at 11:31 pm

  2. Joseph Palermo says:

    With regards to Solr commits being slow. If you are using a library that does a commit after every save/delete, I’ve found it best to turn this behavior off because the `commit`call is done as a blocking call which will kill your app’s performance.

    You can then rely on the [autoCommit](http://wiki.apache.org/solr/SolrConfigXml#Update_Handler_Section) config option for all of your commits so they don’t block your app.

    You may still need to manually force a `commit` from your app in rare situations where the user is performing an update/delete and being redirect back to search results where they would expect the results to be updated.

    July 9, 2010 at 11:49 pm

  3. Benjamin Curtis says:

    Regarding a recurring billing system that can charge amounts that change… the SaaS Rails Kit (http://railskits.com/saas/) does exactly that. :)

    July 10, 2010 at 7:44 am

Add New Comment Cancel reply

Your email address will not be published.

Joe Moore

Joe Moore
New York

Recent Posts

  • How We Use tmux for Remote Pair Programming
  • Integrating Remote Developers: Intuitive, Flexible Video Conferencing
  • Pair Programming Matrix
Subscribe to Joe's Feed

Author Topics

agile (117)
pair programming (6)
remote (4)
remote pair programming (3)
tmux (1)
android (10)
mobile (10)
robolectric (4)
java (4)
c2dm (2)
testing (8)
apple (1)
ipad (1)
pivotal tracker (6)
sf.tug (2)
desert (2)
ruby on rails (13)
javascript (2)
capistrano (1)
palmpre (1)
active record (3)
activerecord (6)
mysql (1)
rubymine (1)
fun (4)
acts_as_fu (1)
rspec (2)
xp (1)
flash (1)
  • 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 >