Here's another shoulda backport I added recently. If you're still stuck using a legacy Rails system, this backport will let you use "in_array" in the " ensures inclusion of" Matcher.
Save it into something like: config/initializers/shoulda_monkeypatches.rb , then use it like this: should ensure_inclusion_of(:widget_status).in_array(Widget::VALID_STATUSES).allow_blank.with_message(:is_invalid).use_integer_test_value # backport the "in_array" method for …
Gah - I've been computer-free for the past week, and not by choice.
My ageing macbook suddenly started to switch off... at random. This was ok for a while... but when it took four times for it to even get through the boot process - I had to take it into the Apple shop. meanwhile I finally set about getting a new desktop, and work gave me a new macbook to try and use.
I couldn't get the monitor to work on the desktop, and the macbook is too new to run the current ubuntu LTS (though …
For some time now my ageing (and now quite flaky) Macbook Pro has been running Lucid Lynx (an older version of Ubuntu). I've been biding my time and avoiding upgrading since, well, April 2010, I guess.
For most of the time it was because upgrading your only machine that you rely on for 100% of your income, to a potentially unstable, non long-term release version is generally a bad idea; but then, when I went to a new employer, I tried a new install of the new long term release... …
The reason it's been so quiet around here this month is that I've been crazy busy in my main hobby due to our major event for the year (run by our local group).
Rowany Festival is the largest Medieval re-enactment event in the Southern Hemisphere. I've heard it described as "kind of like but with a medieval theme" - we prepare all year for this!
This year 800 of us all got together at Peats Ridge and camped medieval-style, fought wars, sang, …
This is a great article describing the way that Why Yammer believes the traditional engineering organizational structure is deadhas set up its organisational structure to be nimble and effective.
Highlights for me: Yammer's biggest rule of thumb is "2 to 10 people, 2 to 10 weeks," ... If you employ the "2 to 10″ rule, it'll also force you to release often, test your assumptions, and not over-invest in mistakes.
that is all...
So, there's this big discussion going on for my hobby group at the moment, and the main discussion has been going on in facebook - mainly because that's where I was first asked to set up a discussion and it took all of five minutes to get the page up and running.
However - now that discussions are progressing, there are a number of people *outside* the facebookiverse who have raised quite reasonable objections to the discussion happening there. not everyone is on facebook, …
If you hadn't already heard, security vulnerability that affects all versions of Rails. This one is about XML-parsing of strings.has a
This was followed by a second vulnerability in the - again of YAML-parsed code. parser
So what does this all mean for all of us runningsystems? Is this just a flash-in-the-pan issue that will fade away the moment it's out of the public eye? or is it a herald of the coming apocalypse?
Earlier I mentioned the Serious that affects all versions of Rails for the last six years. vulnerability
A fix has been put into the latest versions of Rails 2 and 3. but it requires you to upgrade to the latest version.
If you have an older version of rails and can't upgrade for various reasons (eg we are still stuck on v 2.3.2 due to some legacy code), there's a better fix for the *link*parsing error than the workarounds on offer (which tend to switch off your ability to parse XML).