Rails 3.0 on Heroku after trying Rails 3.2

So I was playing with Rails this weekend making all sorts of progress until I tried to get it running on Heroku. Everything worked fine locally but a variety of errors plagued me up on the servers.

I figured out 4 main issues i was having

  • Bamboo stack instead of Cedar
  • Rails 3.2 instead of 3.0
  • Forcing a push to Github
  • sqlite3 instead of pg

First off I had updated to the latest Rails version but it seems you need to jump through hoops on Heroku if you want to use the latest and greatest. I also looked at using 3.1 on Heroku but this also wasn’t out of the box. So I opted for the tried and true Rails 3.0 on Heroku/Cedar.

Bamboo stack instead of Cedar

Continue reading “Rails 3.0 on Heroku after trying Rails 3.2”

Advertisements
Rails 3.0 on Heroku after trying Rails 3.2

Creating a Vision – An Analogy

visionAnalogyI’m a big fan of vision and mission statements. Many people think they’re fluff but I truly believe they are valuable tools. I think vision and mission statements are misunderstood, and are really much more difficult to write than one might think. For example should a vision change yearly? When you communicate your vision are you really communicating a road map of activities?

Here are two analogies I thought of that calls out the difference between a roadmap and a vision. Continue reading “Creating a Vision – An Analogy”

Creating a Vision – An Analogy

Reward the effort not just the outcome

I came across this again recently and was reminded how important the concept is. It’s easy to call out achievements and successes we see, and of course the bigger the success the more likely we praise. However, we need to also focus on praising the effort in addition to the outcome.

Kaizen is a successful philosophy of Continuous Improvement touted by many business leaders and publications. By recognizing the effort an not just the outcome, individuals are more motivated to improve all aspects of the organization, from rolling out multimillion dollar cash cows, to posting a sign reminding people to not put metal in the microwave.

Often good intentions go unnoticed simply because the outcome isn’t clear. For example when a developer refactors a method, the outcome is typically just that it’s easier for other developers to work with. There is no functional change and therefore its difficult to call out. However these small efforts that continually improve our business are just as important, if not more, and should be recognized just the same.

Praise is infinitely divisible, hand it out and you’ll always have more. You can say Good Job all day and never run out.

So take time this week to recognize the efforts within your teams not just the outcomes.

Reward the effort not just the outcome

There’s no emotion in business

In the 1992 movie A league of their own, Tom Hanks (the coach) emphatically berates one of the female baseball players saying “There’s no crying in baseball!”.  I can almost hear him saying that about business too, “There’s no emotion in business!”.

I’ve always been fascinated at how the professional world is founded on vulcan like logic where there is little room for emotion. Early in my career I was very passionate about my profession and, being green, that translated to emotional driven conversations, and poorly chosen wording to the wrong people. Over time I’ve worked hard to maintain the passion but curtail the emotion. I’ve read communication books, reviewed my distribution list, paused before clicking “send” and have made decent strides over the years to remove the emotion from my professional communications.

Continue reading “There’s no emotion in business”

There’s no emotion in business

Spike: Unit Testing Static Methods

Previously we began discussing how great it is to use mocks and stubs. We showed how you can use dependency injection to set a stubbed out service instead of the real one. We also reviewed how you can use mocks to verify methods were acted upon from withing the method under test.  However you may come along a scenario where you need to test a method that requires you to call a static method on some other object. Regular mocking won’t suffice. Now it’s time for PowerMock

PowerMock is a nice add on to Mockito (and others) that supercharges what you can do with your tests. Continue reading “Spike: Unit Testing Static Methods”

Spike: Unit Testing Static Methods