should_be_valid_with_factory macro for Shoulda/factory_girl

When writing unit tests I tend to 1) use factories instead of fixtures and 2) keep my factories in synch with model validations. As such, I like to write a test to ensure that out of the box a new instance of a factory object will be valid. Here is a macro to help out with that:



class ActiveSupport::TestCase

  def self.should_be_valid_with_factory
    klass = self.name.gsub(/Test$/, '').underscore.to_sym
    should "be valid with factory" do
      assert_valid Factory.build(klass)
    end
  end

end

Put this in your ActiveSupport::TestCase definition and it will be available in all your tests. Simply call it by name with no params:


class BuildingTest < ActiveSupport::TestCase
  should_be_valid_with_factory
end

Naming for this method was inspired by a similar method in Dan Croak's Blitz plugin.

“Are you on facebook?” Is this the new “Can I have your number?”

I am in the process of reading Socialnomics by Eirk Qualman.  His books talk about how social media transforms the way we live, the business we do and the world we live in.  In Chapter 4, Social-Media = Braggadocian Behavior, he talks about how social media is changing the way people date.

If we take a look at dating over the last 10 years, people use to give out their home phone number.  Then people started giving out their e-mail address instead, which led to cell phones and text messages.  Today people just ask “Are you on Facebook, hi5, or Linked In?” or another social media network.

Qualman goes on to say, “[Today] the first date is more like a fourth date, you aren’t asking questions like, ‘Where did you go to college?’ or ‘What are your hobbies?’” Common friends, photos along with what you do, and who you work for all provide insight into their personality.  “It makes you feel more secure knowing that the other person isn’t a lunatic.”  He later states that:

1 out of 8 couples married in the U.S last year met via social media

Some say that social media is a fad, others say that is revolutionizing society.  Check out this video, Social Media Revolution, to find more facts from Qualman to form your own opinion. Whatever social media is, it is definitely interesting to say the least…

Introducing the Public Shame 2000

We are in the professional services industry and our bottom line is directly tied to accurately estimating and tracking the hours of work that our resources spend on a project. I’m sure I’m not alone in struggling with the perennial problem of getting our team to “enter their time.” We use a home-grown system called “Homefry” which is integrated with Quickbooks and helps us track everyone’s time against particular job codes.

Everyone has different habits for keeping track of their time—some people jot down their time on a notebook and enter it all in at the end of the day or end of the week. Others use virtual post-its on their desktop, and others use their outlook calendar. Most people, do not enter time as they go, and as a result most people are always behind and trying to catch up on their time entry. This makes accurately reporting on budget vs. actual for various projects very difficult.

A few years ago I heard of an agency that made people sing “I’m a little teapot” whenever someone showed up late for a meeting. In that vein, I decided it was time to implement an incentive, something from the negative reinforcement camp (I don’t think a reward for most up-to-date time would work).

Introducing the Public Shame 2000. We purchased this device from Karaoke.com a few weeks ago, and the mere threat of having to perform karaoke (sober) in front of the entire office during our Tuesday morning staff meetings has been enough to nip this problem in the bud once and for all. I’m pleased to report that everyone’s time has been consistently up-to-date since the day we introduced this machine.

We have yet to turn on this machine, however, I’m sure that day will come at the next after hours office party.

Trend Report: I have a job

I may be new to the company, but I’m not new to the neighborhood. Going on my fifth week working in Williamsburg, it occurs to me that I’m also going on my fifth year living here, and just as the neighborhood seems subject to even more scrutiny than usual, I now feel doubly obligated to defend it.

The NYTimes is trying its best to codify what young twenty-somethings have been doing for decades into a new hipster “lifestyle”, one that’s so integral to Williamsburg’s very infrastructure that you’d think we were literally watching business dry up as a result of mom and dad tightening their wallets. Gawker stalks the hipster grifter not because it’s a particularly interesting story, but because she represents that girl we’ve all met at one point or another in our lives (and no matter how they try to convince you that this girl could only exist in Williamsburg, believe me, she exists in every city on this earth). I’ve lived here for over 4 years, and sure I’ve seen a lot of hipsters hanging out at coffee shops in the middle of the day, and I’ve wondered to myself “What do these people <i>do?!</i>” I’m sure people asked the same question about me while I made my way through grad school, enjoying leisurely weekday brunches with my Powerbook. (I guess a student loan is sort of like a trust fund, except with actual responsibility.)

But you know what else I’ve seen? Successful people moving in from the city, college grads just starting out their careers and working their butts off, people like my sister, my friends, and me, who have been working for years and are finally starting to see the payoff, and lots and lots of local businesses. In a 4-block radius of my house there are three small studios, two groceries, a wine store, and a new Brazilian restaurant, all opened within the last two years. I find it really hard to believe that this was all funded by mom and dad. And as someone who lives behind that row of condos on McCarren Park, I can tell you that they are at about 30% capacity – so don’t tell me that was funded by their parents’ either. You see the truth is, there are actually a lot of really hardworking people who live here, and increasingly, hardworking people who work here too. This myth of a neighborhood inhabited by spoiled, grungy trustafarians may be fun to talk about, but it just doesn’t do the neighborhood justice.

When I first heard of Blenderbox, it was because they had just won a web award for their agency site. An interactive agency in the Burg! It made so much sense. While some of my friends and classmates were still laboring under the delusion that Williamsburg was a place where only the uber-cool, fashion-conscious, trendy hipster could hang out, I was starting to see the truth. This neighborhood is full of interesting people who are actually doing and making really cool things. They’re artists and techies and designers and entrepreneurs. They work hard, they make a living, they start their own businesses. Blenderbox was just one example of what I was seeing all over the neighborhood. I bookmarked the site and saved it for later. That was two years ago.

Is it just me?

Or are there striking similarities between odopod’s and big spaceship’s new websites? From the ubiquitous gallery slideshow to the portfolio thumbnails. Or perhaps it’s a case of great minds think alike?
You be the judge.

The best thing about my new job…

I started working at Blenderbox a couple months ago.  Yet, it is only recently that people have started to ask me, “What is the best thing about your new job?”  This seems rather ironic to me, as I knew the answer before I even began at Blenderbox.

I moved across the country to work here.  I had never lived in the New York area before, and had no idea if I wanted to live in Brooklyn, Manhattan or somewhere in the neighboring New Jersey cities.  Before I had even met anyone at Blenderbox, they were sending me apartment listing with descriptions of the neighborhoods, and writing to me what it was like in their neighborhood.  It is the people I work with and company culture that are best parts.

Blenderbox Named IMA Top 10 Agency of the Year

Blenderbox is thrilled to announce our recent selection as one of the Interactive Media Awards’ Top 10 Agencies of 2008.

The IMA Top 10 Agencies represent organizations that consistently uphold the highest standards of excellence in web design and development, and of the 500 agencies that submitted their best work to the IMAs in 2008, the ten agencies with the highest scoring evaluations were selected for this honor.

To see the full list of recognized agencies, visit the Interactive Media Awards website.

The Cryptic Canvas

Empire magazine is celebrating their 20th anniversary with a pretty cool flash based application. I have seen similar things like this before, but this in particular is very well executed. Try to find all 50 movies hidden within this painting

Cryptic Canvas

My favorite so far is Liar Liar. See if you can find that one.

Founder Jason Jeffries speaks at Brooklyn Business Summit

Earlier this week, Blenderbox CEO and Co-Founder Jason Jeffries presented at the Brooklyn Business Summit on the importance of good customer relations.

Created by the Brooklyn Business Center, the Brooklyn Business Summit is dedicated to providing a “progressive venue and agenda for small business owners and entrepreneurs looking to become small business owners”. After building three successful businesses, Jason has gained extensive insight into creating and maintaining quality relationships with his clients and customers, insight that he shared with 50 small business owners at Wednesday’s Customer Satisfaction & Retention workshop.

Cutting through the traditional Customer Relation jargon, Jason mapped out a simple and effective guide to securing customer satisfaction using a modified version of the “Blenderbox method” — Listen, Think, Create, Deliver.  By listening to your customer’s needs and desires, making your service memorable, and maintaining a personal involvement in your company’s client relationships, you can positively shape the perception of your company and generate quality business leads.

The message is simple, should business owners wish to embrace it:  listening to what your clients have to say about your methods and addressing these critiques in your process is always the most effective way to keep your clients happy and your business booming.

While the next Brooklyn Business Summit has yet to be scheduled, video of Jason’s presentation will be available on their site soon, so keep checking back for more details.

Blendercise!

One of the great things about working at Blenderbox is being surrounded by people that are constantly trying to better themselves in one way or another.  Blenderboxers are a curious bunch, always looking to do more, learn more, and create more, and in no instance is this more apparent than during the semi-annual celebration of knowledge known fondly as the Blendercise.

Blendercises are our own particular brand of continuing education; an opportunity for designers to teach us some of the finer points of Photoshop, for developers and information architects to teach us the best SEO techniques, or for project managers to provide tips on organization that might help us in our constant struggle to keep our time sheets up to date.  They’re a way for each department to learn more about the day-to-day work of others and to take away valuable information that makes us stronger individually and as a team.

Anyone can suggest a topic for a Blendercise, and with the constant stream of innovations in web technology, we’re never at a loss for new material.  Previous Blendercises have covered a diverse range of subjects, from SEO and Google Analytics to Photoshop and Web Form Design, and many more are yet to come.

Currently scheduled Blendercises include sessions on InDesign and Sitecore, but with an increased interest in projects requiring open-source development and a variety of opportunities for professional development outside of the Blenderbox office, 2009 may be our biggest year yet for tech-centric Blendercises.