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: December 2008

Colin Shield

Standup 12/18/2008 Engine Yard deploy.rb request

Colin Shield
Thursday, December 18, 2008

Ask for Help

A new project would like to find a useful deploy.rb for Engine Yard. Preferably using git. There were a few suggestions from other projects to view theirs.

Interesting Things

RSpec

Do not create records in a

before(:all)

The transactional wrapper around the tests don’t apply to the before(:all).

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

Pivotal Tracker a Finalist for the Jolt Awards

Pivotal Labs
Thursday, December 18, 2008

I’m pleased to announce that Pivotal Tracker has been selected as a finalist for the 2008 Jolt Awards. Thanks to everyone on the team for putting so much care into Tracker, and making it what it is today. Winners will be announced March 11, 2009 at SD West in Santa Clara.

Wish us luck!

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Colin Shield

Standup 12/17/2008 Asset Host & Retardation Inhibitor

Colin Shield
Thursday, December 18, 2008

Ask for Help

“How can asset_host and retardation_inhibitor could work together nicely?”

ActionController::Base.asset_host

Tells your Rails application to generate external resources’ links pointing to the host of your choosing.

The general opinion was that any sophistication should be handled by asset_host configurations in the appropriate rails environment files.

This lead to the sticky problem of our CI process running the Selenium tests in the development environment rather than the test environment. The asset_host using the development environment configuration rather than the test environment.

Everyone agreed that this wasn’t the best way to run the selenium tests.

A desperate request to rename the Pivotal project “retardation_inhibitor” met with no resistance, much to the delight of the Pivot responsible for explaining it’s usefulness.

“New Relic & Desert?”

Ruby & Rails can sometimes appear to be moving so quickly that not advancing feels like standing still. A project found problems with the latest versions of New Relic and Desert.

Every page request resulted in a stack trace in the log.

The general consensus was that the latest version of New Relic would solve this problem. Of course the team had already tried this along with several other versions.

Some Pivots in New York had apparently encountered and solved similar problems. Hopefully they can help out.

Another Pivotal project had similar problems and had to upgrade to 2.7.3. They used these update steps.

http://sites.google.com/a/newrelic.com/rpm-docs/installing-the-agent.

They originally tried to just install the latest without following the steps outlined in the link above and still had problems.

Interesting Things

Look out for a public Pivotal Pulse announcement soon.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Chad Woolley

Best Remote Pairing Settings 2008

Chad Woolley
Thursday, December 18, 2008

About a year and a half ago, I made two posts on the “Best Remote Pairing Settings”.

A Remote Pair

The world has moved on, and so has the state of the art in remote pairing. I work remote 75% of the time, so this is an important topic for me. The setup we have now is working pretty good, so I wanted to describe it for the benefit of other remoties. Also, I’m only going to describe one specific setup – the one that is currently working best for me. So, here it is:

Computer and OS

Macintoshes running OS X 10.5 (Leopard) and maxed out on ram (at least 2 gig+), with a second monitor, ideally a 24″.

Pivotal uses 24″ iMacs exclusively. This lets you have your remote pair’s screen up on the second monitor, while still having the primary iMac screen available for local work (configuration, looking stuff up, temporary soloing, etc). You must be very disciplined and up-front – you should be explicit about when you are paying attention to your pair and when you are not, but that’s a whole other topic.

Also, at my home office, I have an iMac which I use for screen sharing, but I usually run the Skype audio/video on my MacBook. This takes the CPU load off of the iMac, which is important, because Skype is a CPU hog (more on that later).

Screen Sharing Software

Apple Screen Sharing which comes with Leopard.

Apple has done a nice job making the screen sharing app perform well, and the most important feature for any remote pairing screen sharing tool is performance. In my opinion, it performs better than any other VNC client on any platform, assuming you have a good connection (possibly excluding some windows native-video-hook solutions like UltraVNC or Remote Desktop, but there’s no way I would ever use Windows for development). All VNC clients which use the standard RFB Protocol can only be tweaked so much, and will only give you mediocre performance. However, there are several annoying bugs and gotchas with Apple Screen Sharing:

  • It is hard to find. Look under /System/Library/CoreServices/Screen Sharing.app. It is easiest to use Spotlight/Quicksilver or drag it to your dock. Supposedly you can start it with iChat but this never worked for me, I had to run the app directly.
  • Most of the useful features are disabled by default with no way to access them via menu or toolbar buttons. This is an amazingly annoying decision by Apple, but it is fairly easy to hack the toolbar buttons back into existence. Here is a Macworld tutorial showing two options.

In general, it seems that the best remote-control tools are those with some sort of native/low-level GUI integration: Leopard Screen Sharing, NoMachine NX, UltraVNC, Windows Remote Desktop, etc. Higher-level platform agnostic tools (like standard VNC/RFB protocol) just don’t perform as well – no matter how much you tweak the available color/depth/etc settings.

Audio/Video Hardware

Plantronics GamePro USB Headset

This is a great headset, and you need a really good headset if you are going to wear it all day, every day. Cloth earpieces, mic cover, very long cord, and I believe it also has some echo cancellation built in (there’s a huge box inline in the cord that does something). Unfortunately, I don’t see the exact model on the Plantronics website anymore. It may be replaced by the “GameCom” model, but I haven’t tried this.

Built-in iMac Microphone/Speaker

The built-in microphone and speaker on iMacs is really good. If you want to talk to a group of people remotely (for example, project standup), this is the way to do it. However, if the ambient noise gets too much, you can switch back to the headset.

You can even combine the two. For example, if you want to hear the surrounding conversations, but your pair is having trouble hearing you over the noise, then can wear the headset, but still keep the input set to the built-in iMac mic.

Sometimes you will need to adjust the input/output levels to reduce echo, and the remote pair should handle this themselves – they know what it sounds like.

Built-in iMac camera

Just like the built-in iMac mic and speaker, the iSight is a great camera. A detached iSight is just as good, if you want to be able to move it around or aim it without moving the computer.

Audio/Video Software

Skype

Skype is the best I’ve found. It does have drawbacks: it crashes rather frequently, it sucks a lot of CPU, it can do bad things to your network if you become a supernode, and it doesn’t support video in conferences.

However, it has great echo cancellation, it is free, and easy to use. The echo cancellation is really the most important thing – all other audio conferencing tools I’ve tried seem to have much more issues with echoes – even when you are using echo-cancelling hardware devices or speakerphones.

Some people seem to like iChat, but I have not had good luck with it. It takes longer than Skype to connect, the echo cancellation is not as good (sometimes it is, sometimes not), and most annoyingly, it doesn’t always close. I often end up having to force quit it – which is even more annoying when it is stuck on a freeze-frame of me making a stupid face or scratching my nose. Skype never does this – video always goes away when you shut your video or kill the call.

iChat has video conferencing, though, which is a benefit. You can sort of work around this by putting up the video preview in iChat, and having multiple remote people connect to view it via screen sharing, if you only want to see video for one of the participants (e.g. a couple of remote people calling in to a company meeting).

Network, Network, Network

This is the last but most important component to usable remote pairing. A fast, low-latency network connection is critical. I don’t have any numbers, but I believe that low latency is at least as important as high bandwidth. I also (without proof) believe that ping is not necessarily a good indicator of latency – I bet it is possible to have a good ping (ICMP) but still have issues with TCP/UDP latency. Who knows what’s going on in the tubes between you and your pair? Any data, tools, or insight on this would be very welcome.

As empirical evidence, for the first year or two at Pivotal I had DSL, which was pretty fast with low ping, but had continual problems with performance. Then, I switched to corporate-grade cable with a significantly higher bandwidth limit. My experience improved dramatically and my problems decreased greatly. This was about the same time I switched to Leopard screen sharing, so I think that had something to do with it, but the better connection definitely made a huge difference. Again, sorry I don’t have more concrete numbers, but I will guarantee that the better your connection, the better your experience will be.

Also, if you are in a corporate network, this may cause you problems. Even if there is a big pipe to your location, there may be saturation on your local LANs or intranet. Again, no hard data, but this is backed up by experiences of having consistently better performance when connecting to another remote at-home pair with a good connection as opposed to connecting to the Pivotal office which has a much larger pipe.

Remote Pairing Presentation at RailsConf 2008

  • At RailsConf 2008, Michael Buffington and Joe O’Brien did a good presentation on Remote Pairing. This is a very good presentation which covered many important aspects of remote pairing, as well as presenting some innovative ideas. Unfortunately, I don’t see a link to the preso, please post one in the comments if you have it.

Summary

This isn’t meant to be the be-all, end-all set of recommendations, it’s just what is working pretty well for me now. By “pretty well”, I mean that I can be an efficient pair, even when I’m driving the remote machine.

However, I’ve learned to cope with a lot, and adapted my work habits. It has forced me to become much better at communication, and describing what, why, and how I am programming. In general, though, I believe that remote pairing is physically, emotionally, and intellectually taxing. Regardless, I personally deal with it because Pivotal is such an awesome place to work and Pivots are such incredible developers. Most importantly, I come out in person for a week every month, attend retrospectives and brownbags, have some beers, and generally stay “entangled” with the rest of the team in person. If I was 100% remote, I don’t think I could handle it long-term.

So, I hope this helps out all the other remoties out there. Please let me know what you think, your experiences, and what works well for you.

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

Unjury Duty

Pivotal Labs
Wednesday, December 17, 2008

Recently, one of the Pivots was called out for that civil duty of jurification. That is, he was called to sit and decide on trial.

Now, my only interaction with juries thus far has been to watch depictions of them in media, but while many seem to speak about trying to get out of this duty, I think I’d consider it an honor. It seems to me that being the victim or accused in a crime is a time of extreme need – we know that it has happened that the wrongly accused have been found guilty, and likewise, that guilty have gone free – and while no system is perfect, one of the few protections against these outcomes is the presence of a discerning, unbiased jury.

As such, I’m glad to know that a Pivot was out there, doing their civic duty, and I’ll be happy to do the same if the occasion arises. But the interesting thing which came out of this were his requests at Standup one morning: that there’s a duty non-jurors have to jurors over the time of the trial. Which is,

  • not to ask about the trial: Jurors are asked not to speak about a trial to protect the decision-making process from undue influence. There are strict rules about what evidence is admissible in a court-room, to protect one side or the other from presenting faulty evidence such as hear-say. Discussing the trial introduces the risk of improper influence, and it’s best to respect the process by leaving the subject aside.

  • not to joke about the trial: Trials range from the frivolous to the truly weighty, and jurors are sometimes asked to shoulder an intimate knowledge of event not discussed in polite company. Also, the consequences of a jurors decision are serious and not to be belittled. It’s best to avoid making light of the situation.

So keep these in mind, the next time a friend or colleague serves on a jury; it’s a serious act for which they deserve your deference and respect.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Edward Hieatt

Back in the land of the living (or: How RubyMine makes me happy)

Edward Hieatt
Wednesday, December 17, 2008

How my outlook on coding in Rails has changed over the past few months!

When I made the switch from Java to Rails a few years back, I, like many of my fellow Pivots making that same well-chronicled transition, delighted in the ease with which we could suddenly knock out a web app. How we cheered when our object-relational mapping took zero lines of code! How we applauded when we declared our model object validations in near-English! How we roared with laughter when convention viciously slapped the face of configuration! And how we shook our heads in dismay when we realized that our new development environment appeared to be from the mid-, if not early, nineties.

For, while we had arrived in a brave new world of minimalist declarative meta-programming, rapid prototyping, and an new-found sense of productivity that made even the most nimble forms of Java development look like wading through a morass of slimy boilerplate code and endless XML, we soon realized that the IDE situation was less than awesome. Our productivity was overall much improved, but we had taken a huge step backwards when it came to the act of writing – and especially changing – code and tests. Overnight, we went from living it up in a paradise of automated refactorings, seamlessly inbuilt test runners and powerful debuggers to roughing it with a text editor that, to our spoilt eyes, appeared to offer barely more than code highlighting and support for homemade macros.

Not only didn’t our favorite Java IDE, IntelliJ, not function well with Ruby, but nor did Eclipse, and nor did NetBeans. Early on, each had some nominal support for Ruby, it’s true, but it was mostly just code highlighting and some basic navigation. If we wanted to run a test, we had to (horror of horrors) leave our IDE, go to a shell and run a command (mapping a key to an “external tool” was cold comfort, it seemed to me). If we wanted to rename a variable, we had to do it manually. And if we wanted to debug something, well, the only option was to use a tool that appeared so prehistoric that we simply didn’t do it.

In fact, things were so bad that if we were honest with ourselves, TextMate sometimes looked like a better option that the IDE we knew and loved. We pleaded with Pivots who didn’t come from the world of Java to use IntelliJ, if only (for them) for its awesome global search, and if only (for us) to make ourselves feel comfortable in the new world of Rails. But IntelliJ had been rendered so impotent by its Ruby Kryptonite that it felt at times as if we were simply dragging around a comfort pillow that had lost its stuffing. All the progress that had been made in the world of Java IDEs for so many years seemed to have been lost. Woe was certainly us.

But then came some signs of life. NetBeans and Eclipse (in its various forms) were making progress in Ruby-land: they had test runner integration and debuggers that worked. Big steps forward indeed. While I suspected that I would probably miss IntelliJ, I nevertheless gallantly tried to commit to one of them: if they were going to offer me something even close to the power I used to have in my Java IDE, I was willing to put up with a lot. But despite my best attempts to be patient, I was disappointed time and time again. Eclipse still felt clunky compared to IntelliJ. NetBeans still suffered from a problematic global search and less-than-perfect VCS integration. They are gallant attempts, and they deserve credit. They’re both great products and they both serve communities that no doubt find them invaluable. But in that very unquantifiable, personal, emotional way, they weren’t what I really wanted. I wanted that IntelliJ feel.

So where was JetBrains on this? There was the Ruby plugin for IntelliJ, which was making some great strides forward, but that always felt like a bolt-on solution at best. What was more, it often didn’t work with new IntelliJ updates.

Imagine my surprise and delight, then, when Christmas came several months early this year. Suddenly, in late 2008, we are quietly presented with RubyMine. IntelliJ for Ruby? Surely not! I dared not hope for too much when with some trepidation I downloaded an early pre-EAP candidate a few months ago. But, joy of joys, it turned out that it was, or rather, is gradually becoming, (almost) all I was hoping for. Built-in test runner, debugger, pretty good refactorings – all things that other IDEs provide, but in that special JetBrains way that is so much more intuitive. Great success!

Now, I realize that all this probably sounds like a gush of praise that is not yet due, and perhaps that’s true. It’s certainly true that there’s a long way to go: RubyMine is lacking in many ways. But the signs are there that things are moving hastily in the right direction. Recently, each build that has come out has been noticeably better to me than the last (additional useful features, stability, performance). But more importantly, I feel like JetBrains is on the right trajectory with RubyMine. We now have a path towards a great IDE for Rails. I think we’re back in the land of the living, and I’m hopeful that between Rails and RubyMine our productivity will soon jump higher than we could have imagined just a few years ago.

OK, start the “All you need is Emacs”, “VIM is the best thing ever”, and “TextMate rocks, what’s this IDE nonsense?” comments below :)

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Colin Shield

Standup 12/16/2008 Google Gadget Regression Testing

Colin Shield
Tuesday, December 16, 2008

A google gadget is built, tested and deployed to the target environment. What about regression testing that google gadget? Things change that could cause the gadget to start to fail.
The suggestion made was to fake out a test to look like a browser. If the test is faked out enough, google will think the gadget is running in a browser.

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

Pivotal Tech Talks now available on iTunes

Pivotal Labs
Tuesday, December 16, 2008

For the last year or so, we’ve been inviting speakers to come visit us and talk about interesting things in the Ruby/Rails space, the agile space, and on topics related to software development in general. We see it as a great way to keep our developers on the cutting edge, and a number of speakers have used it as an opportunity to gather early feedback from our team. We’ve found the talks we’ve had to be very valuable to us, and are pleased to share them with the larger community.

To that end, we’ve posted a selection of our talks to our talks page, and also made them available via the Podcast section of the iTunes Store in both audio and video format.

We’ve also had a number of panel discussions in our Project Startup and are posting those talks as well.

We’ll keep posting talks as we have them. If there are topics you’d like to see, or topics you’d like to present, please email us!

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

MagLev

Monday, December 15, 2008 | Run time: 59:33

Martin McClure of GemStone answers questions and gathers audience feedback about MagLev, a Ruby implementation based on the GemStone persistence engine.

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

Recent Peer-to-Patent mentions

Pivotal Labs
Wednesday, December 10, 2008

Craig Newmark: Peer To Patent: government using social networking

“Peer To Patent is Washington’s first social networking iniative, using a network of volunteers to help figure out if an invention deserves to be patented. The volunteers, normally scientists and technologies, connect with patent examiners, and like Obama says, this “taps the intelligence” of the American public. “

Google CEO touts green energy shock doctrine

Pressing a theme popular with Barack Obama’s tech surrogates, Schmidt also waxed enthusiastic about the power of network technology to create a more transparent and participatory politics. “Government has not embraced, generically, the tools we all use every day,” said Schmidt. “It’s time.” Pointing to the Patent Office’s Peer-to-Patent program for crowdsourcing patent application analysis, Schmidt asked “why is that not true of every branch of government?” The same “police of the Internet” who debunked political rumors during the campaign could be turned on key legislative and regulatory issues. “A lot of people care passionately about them,” joked Schmidt, “and they obviously have a lot of free time.”

More Pivotal clients and partners.

  • 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 Community Feed
  1. ←
  2. 1
  3. 2
  4. 3
  5. 4
  6. →
  • 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 >