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

Monthly Archives: February 2007

Joe Moore

Standup 02/15/2007

Joe Moore
Thursday, February 15, 2007

Interesting Things

  • Subversion Tip: We were reminded of a handy tip: when saving shell scripts in subversion, you can save them as both executable and also in a ‘native’ end-of-line style, which will run on any platform.
<code>
   $> svn propset svn:executable ON somescript.sh
   $> svn propset svn:eol-style native somescript.sh
</code>
  • If you want some easy but very effective charts, check out WebFX’s Chart Javascript library. Clients love them! Chart the number of users signed-up per day, etc.
  • Another handy plugin we’ve used many times: QueryTrace. It helps you find slow database queries, but it really floods your logs with data, so make sure to turn it off in production!
  • We’re using appable_plugins for several projects but having problems with dependencies between the plugins, especially in fixtures. This might be caused by our fancy-dancy fixture loading extensions.

Ask for Help

  • One project is doing another round of profiling and is looking at the the latest profiling tools for Ruby and Javascript. They are checking out Firebug’s JS profiler, ruby -r profile, and our own custom ruby test benchmarker, amongst others.
  • One project is seeing a very strange memory leak that causes 100MB of memory loss per second (guh! guh!). It started when they begin using ActiveRecord.connection.execute("some sql") to build some reporting statistics, but it seems too early to blame that. Coincidental, though.

Brown Bag Lunch Topic: Rails 1.2 features, ideas, and gotchas.

Total Stand-up Meeting Time: 25:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/14/2007

Joe Moore
Thursday, February 15, 2007

Interesting Things

  • We’ll be sending 6 people to RailsConf, so say ‘hi’ if you see the Pivots!
  • We have a fix to our Amazon S3-causing-mongrel-to-hang problem: you can tell the connection not to be persistent by passing in :persistent => false:
<code>
    AWS::S3::Base.establish_connection!(
        :access_key_id => access_key,
        :secret_access_key => access_key,
        :persistent => false
    )
</code>

Ask for Help

  • From the community: the JRuby team is putting out a cry for help for everyone to get JRuby running Rails 100%.

Total Stand-up Meeting Time: 14:00 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/13/2007

Joe Moore
Tuesday, February 13, 2007

Not much of interest today beyond project updates.

Total Stand-up Meeting Time: 17:00

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/12/2007

Joe Moore
Monday, February 12, 2007

Interesting Things

  • Jetbrains has released their official Ruby and Ruby on Rails plugin for IntelliJ IDEA. Many of us have been using this and it has some nice features: structure view, code completion, open class/symbol, and other Java-IDE style features. Now if they only had a fast debugger… oh sweet, sweet debuggers…

Ask for Help

  • RMagick: One project is having new RMagick problems. Some image uploading and transformations are hanging the Mongrel process. Some are suggesting explicitly calling GC.start after heavy RMagick use. We’ll also check the version and insure that it’s 1.13.

    Follow-up: Actually it looks like we were hanging connecting to Amazon’s S3 service.. Once we figure out the details we’ll let you know what the problem was.

    Total Stand-up Meeting Time: About 19 minutes.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

less color is more color

Alex Chaffee
Saturday, February 10, 2007

Ever do “less log/development.log” and see the following?

ESC[4;35;1mSQL (0.001084)ESC[0m ESC[0mSET character_set_results = utf8;ESC[0m
ESC[4;36;1mSQL (0.001792)ESC[0m ESC[0;1mSHOW TABLESESC[0m

Wouldn’t it be nicer to see the colorization like when you’re tailing the log with tail -f? Try using -R:

less -R log/development.log

Then you’ll see

SQL (0.001084) SET character_set_results = utf8;
SQL (0.001792) SHOW TABLES

A bit more legible, eh wot old chaps?

Works on Mac and Cygwin too.

And -X makes it not clear the screen when you stop less, so you get to keep seeing what you were just seeing.

So that means you may want to put

alias less="less -RX"

or

export LESS="-RX"

in your .bash_profile.

Also, if you don’t want the fancy colors at all, specify

ActiveRecord::Base.colorize_logging = false

in your environment file (e.g. test.rb.) We’re doing that in our test.rb so we can more clearly read the output from our CruiseControl build.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

My pair the be-whiskered

Pivotal Labs
Friday, February 9, 2007

Pair Programming for Ailurophiles

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/09/2007

Joe Moore
Friday, February 9, 2007

Brief project reports, and that’s it!

Total Stand-up Meeting Time: 9:30 (a new record!)

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/08/2007

Joe Moore
Thursday, February 8, 2007

Interesting Things

  • Trac is up and running, so hammer away at it. It’s a candidate replacement for Twiki. If you have experience making the switch, feel free to let us know how it went.
  • We’ve compiled some amazing ActiveRecord benchmarks. Stay tuned, we might post them here soon!
  • We discovered a bug with RMagick v.1.13 on Linux: Image::change_geometry(geometry_string). In a nutshell, you can perform complex image transformations my passing change_geometry a string; for example, my_image.change_geometry("50x50>") will change my_image to a 50×50 pixel image, but only if it’s larger than 50×50. For us, this exact line turned our 600×600 image into a 50x38 image. Weird. Only on Linux.

Ask for Help

  • None today!

Total Stand-up Meeting Time: 19:30

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

My pair the Dvorak user

Pivotal Labs
Thursday, February 8, 2007

Something interesting I’ve noticed about paired programming — the Vulcan Mind Meld. I can’t really describe it any other way. It’s like your brain, and your pair’s brain are the same brain. And after finishing a feature, I can never remember who did what.

How does this work? Latent psychic powers? Olfactory hormone sensors? I have no idea.

Last week, however, I got some insight into part of what’s going on.

I was pairing with Damon, a bad-ass in his own right, who happens to be a Dvorak keyboard user. It’s not just a normal Dvorak either, it’s one of those crazy Kinesis brands where you do everything with your thumbs. And he’s pretty damn fast on it.

After a little while pairing with him we started to get into The Zone. I noticed I felt kind of weird when he was driving (that means he’s the one using the mouse and keyboard for all you non-agilites out there).

It was like I was playing Counter Strike on a laggy connection; he’d change tabs in the IDE or go to the end of a file and it’d take me an extra moment to figure out what just happened. Even when he was coding, I felt this lag in my uptake of the situation. Lines of code I felt sure were about to be deleted would instead be duplicated by Damon and his crazy keyboard.

And that’s when it hit me: crazy keyboard.

I realized that one thing I do to stay in sync with my pair is watch their keyboard out of the corner of my eye. I don’t do it on purpose, in fact I’m never even aware of it. But when my subconscious peripheral vision notices my pair’s finger movement before the keys are actually pressed, it gives my mind that extra coupled milliseconds to figure out what’s about to happen.

Personally, I think this is crazy and has crazy implications. And I’ll talk about these more later.

But for now, I’d guess that for all you aspiring Dvorak users out there, a great way to get good fast would be to sit down and pair with someone who’s already a Dvorak user.

I wonder what other cues, physical or not, contribute to that feeling of one-ness while pair programming…

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Joe Moore

Interesting/Ask for Help for 02/07/2007

Joe Moore
Thursday, February 8, 2007

Interesting/Ask for Help for 02/07/2007

Interesting Things

  • We need to check out the differences between RMagick 1.13.0 and 1.15.2. Word on the street is that 1.14.x was wonky and required ruby 1.85.
  • Brown bag lunch today: Ruby caching and our own extensions to it.
  • Dealing with time zones have been a reoccurring problem for teams. One developer suggested checking out the tzinfo-timezone plugin, which works with (and requires) TZinfo

Ask for Help

  • CI can’t find rmagick!: One project kept getting a gem error for rmagick
    • require rmagick won’t work because the require statement case-sensitive. It has to be require RMagick, but neither the PC or Mac complained, only Linux.
  • Please keep all of the appropriate people informed about CI environment changes.
  • One team requested all of the JavaScript caching experts.
  • Brown bag lunch today… someone order lunch!

Total Stand-up Meeting Time: 22 minutes

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (781)
  • rails (114)
  • testing (88)
  • ruby (84)
  • ruby on rails (70)
  • jobs (62)
  • javascript (56)
  • techtalk (44)
  • rspec (38)
  • ironblogger (32)
  • productivity (30)
  • activerecord (29)
  • gogaruco (29)
  • git (28)
  • nyc (27)
  • rubymine (26)
  • bloggerdome (24)
  • mobile (22)
  • process (21)
  • pivotal tracker (21)
  • cucumber (20)
  • design (19)
  • jasmine (19)
  • ios (18)
  • webos (17)
  • objective-c (17)
  • android (16)
  • tracker ecosystem (16)
  • palm (16)
  • "soft" ware (16)
  • fun (15)
  • ci (15)
  • cedar (15)
  • rails3 (14)
  • performance (14)
  • bdd (14)
  • tdd (14)
  • gem (13)
  • css (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 Community Feed
  1. ←
  2. 1
  3. 2
  4. 3
  5. →
  • 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 >