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
Ken Mayer

Standup 2010-11-18

Ken Mayer
Thursday, November 18, 2010

Helps

  • Bundler + Heroku gotcha: Deploys to Heroku can break if you are using Bundler v1.0.6 in your local development environment (as of this writing, Heroku is using v1.0.3). Apparently the --deployment switch is being stripped off and Gemfile.lock is rebuilt. If the file differs from what’s in the git repository, the deploy will fail with a somewhat mysterious error message. Work-around: Specify the bundler gem version to v1.0.3 (perhaps even up to v1.0.5) in your Gemfile.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

Standup 2010-11-17

Ken Mayer
Wednesday, November 17, 2010

Interesting Things

  • nginx may write temporary files to local disk, especially for large files (>64K). You should make sure that proxy_temp_path is writable. You can also control the size when this happens by adjusting proxy_temp_file_write_size. The more interesting thing is that if the directory is not writable, you won’t see an error message in the logs, but strace is still your friend.

Helps

“Should I include Gemfile.lock in a repository for a gem?”

  • Yes, but don’t include it in the gemspec, that way it won’t be distributed with the gem.
  • Bundler doesn’t look at lock files in dependent gems anyway.
  • It makes less sense for a gem since you wouldn’t want to lock down the environment for all of your gem’s users.

“What library should I use for GUIDs?”

  • uuidtools
  • universally unique identifiers may have trouble in other universes, please use caution when crossing these boundaries ;-)
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

Standup 2010-11-16

Ken Mayer
Tuesday, November 16, 2010

Interesting Things

  • Project Sprouts from Luke Bayes “an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3, Adobe AIR Flash and Flex projects”

“Project Sprouts was originally designed (as AsProject) to solve a specific set of problems and was later entirely refactored to become a modular set of libraries that are built on top of Ruby, RubyGems and Rake.” — Luke Bayes

  • Sencha Touch 1.0 Ships – Now Free!

“So how will Sencha monetize? The company plans to sell its tools, like Sencha Animator, at a premium. It’ll also offer premium support plans.” — Tech Crunch

Helps

“Does anyone have experience with (slower) performance on EC2 compared to Heroku”

Some suggestions:

  • Test network lag
  • The small instance, the default, is just too wimpy to run as an application server
  • Make sure your database instance is big enough, and has enough memory
  • Any experience with RDS?

“Can you run cucumber with its own database instance?”

Responses:

  • By default, Cuke creates its own environment, but piggy-backs on the test database
...
cucumber:
  <<: *TEST
...
  • rake db:test:prepare is wired to :test and won’t support a :cucumber in the database.yml without extra rake tasks that have continuing maintenance costs
  • I’ve used the parallel_tests gem in the past, which has managed to retrofit db:test:prepare to work with multiple test databases, but it did require an extra step after each migration (and it didn’t play well with postgres text indexes).
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Ken Mayer

Standup 2010-11-15: Post-RubyConf edition

Ken Mayer
Monday, November 15, 2010

Interesting Things

  • Current total: $2,109 toward our $10,000 goal. The SF office is ahead on donations per moustache, but not by much. Pivotal Labs Movember Mospace
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Alexander Murmann

Standup 11/12/2010

Alexander Murmann
Sunday, November 14, 2010

Interesting – Local Search API deprecation confusion

Google deprecated their Local Search API and suggest to use the Maps API GoogleBar instead. However, as it turns out, the API GoogleBar is just a wrapper around the Local Search API, that was just deprecated. You could use the Google Places API instead, but that one is currently in developer preview only. What are we supposed to do Google? Googling it did not reveal any fully satisfying answer…

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Alexander Murmann

Standup 11/11/2010

Alexander Murmann
Thursday, November 11, 2010

Interesting – Attaching JQuery UI Datepicker

When attaching JQuery UI’s datepicker you should not use the class hasDatepicker since JQuery UI uses this class to mark DOM objects that already have a datepicker attached. So it won’t attach a datepicker to elements with that class.

Interesting – Solr score sort

It is possible to sort results in Solr using any criteria you want and use the Solr score for a secondary sort. Some people thought that you were only able to use the Solr score as your primary sorting criteria.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Alexander Murmann

Standup 11/10/2010

Alexander Murmann
Wednesday, November 10, 2010

Help – Request for PNG not working in IE7

We request a PNG via IE7 from inside Parallels, but the file doesn’t get returned. The Nginx log just shows an empty line for the request.
Suggestion: Look also in Nginx’s error.log for the failing request. The request might be logged here and help find out what actually went wrong.

Interesting – Google Maps suggest canoeing and jet ski routes if your destination is across the ocean.

Jet ski from Shanghai, China to Kagoshima, Japan

San Francisco to Honolulu via kayak

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Alexander Murmann

Standup 11/9/2010

Alexander Murmann
Tuesday, November 9, 2010

Interesting – Making “.*” in regular expressions less greedy

Sometimes .* in regular expressions matches more than we would like it too. Let’s say you have a string that includes some numbers you want to extract from a string. Our string might look like this:

some text 123 more text

now we might try to use the following regular expression to get the 123.

.*([d]+)

However, this will only get us the 3. This happens because .* will match as match as possible. Adding a ? will change this to only match what is needed.

.*?([d]+)

Now we get the 123 as desired.

A nice toll to experiment with regular expressions is rubular.com. Rubular allows you to see the effects of your regex in combination with an example string instantly.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Alexander Murmann

Standup 11/8/2010

Alexander Murmann
Monday, November 8, 2010

Help – Running my own gem server

Sarah will give a Ruby introduction class for kids at RubyConf. However, there won’t be any Internet connection available, but the participants will need to install several gems.
A solution to this problem is the gem geminabox which allows you to run a server providing gems. Other users who have geminabox installed then are able to install gems from that server.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Sarah Mei

Standup 11/5/2010: Happy Friday Edition

Sarah Mei
Friday, November 5, 2010

Interesting:

  • bundle install --without test excludes the test group in your Gemfile from the install. It works well for reducing the size of your Heroku slug. However, there’s a glitch with this option on Heroku — when you specify it, Heroku reinstalls every included gem every time you deploy. It does respect your Gemfile.lock, so you’re trading a smaller slug for a longer deploy.

  • Pivotal’s open source CIMonitor project now supports OpenID! Thanks Tyler and Josh.

  • Arel has a bug that makes it difficult to use in rails console. Every time you add a predicate, the number of internal objects in the Arel result increases exponentially. So, by the time you have 5 or 6 predicates, the console finishes generating the expression more or less instantly, and then spends 15+ minutes calling to_s on the resulting Arel object in order to display it to you. tl;dr: when you’re playing with Arel in rails console, end every line with ; nil to avoid having it print out the result. The exponential object explosion will be fixed in Rails 3.1.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (780)
  • rails (113)
  • testing (88)
  • ruby (83)
  • ruby on rails (70)
  • jobs (62)
  • javascript (55)
  • techtalk (44)
  • rspec (38)
  • ironblogger (32)
  • productivity (30)
  • activerecord (29)
  • gogaruco (29)
  • git (28)
  • nyc (27)
  • rubymine (26)
  • bloggerdome (23)
  • mobile (22)
  • process (21)
  • pivotal tracker (20)
  • cucumber (20)
  • jasmine (19)
  • design (18)
  • ios (18)
  • webos (17)
  • objective-c (17)
  • android (16)
  • palm (16)
  • "soft" ware (16)
  • fun (15)
  • tracker ecosystem (15)
  • ci (15)
  • cedar (15)
  • rails3 (14)
  • performance (14)
  • bdd (14)
  • gem (13)
  • css (13)
  • tdd (13)
  • selenium (12)
  • goruco (12)
  • bundler (12)
  • meetup (11)
  • railsconf (11)
  • nyc-standup (11)
  • capybara (10)
  • mac (10)
  • mojo (10)
  • chef (10)
  • api (10)
Subscribe to agile Feed
  1. ←
  2. 1
  3. ...
  4. 31
  5. 32
  6. 33
  7. 34
  8. 35
  9. 36
  10. 37
  11. ...
  12. 78
  13. →
  • 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 >