18 April 2014

The Ruby Reflector

Topic

Taryn

  Source Favicon
By Taryn of Ruby-coloured glasses 11 months ago.
Email

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 …

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 12 months ago.
Email

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 …

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn East of Ruby-coloured glasses 12 months ago.
Email

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... …

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 1 year ago.
Email

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 Burning Man 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, …

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn East of Ruby-coloured glasses 1 year ago.
Email

This is a great article describing the way that Yammer has set up its organisational structure to be nimble and effective. Why Yammer believes the traditional engineering organizational structure is dead

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.

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn East of Ruby-coloured glasses 1 year ago.
Email

that is all...

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 1 year ago.
Email

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, …

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 1 year ago.
Email

If you hadn't already heard, Rails has a security vulnerability that affects all versions of Rails. This one is about XML-parsing of YAML strings.

This was followed by a second vulnerability in the JSON parser - again of YAML-parsed code.

So what does this all mean for all of us running Rails-based systems? 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?

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 1 year ago.
Email

Here's a great post on the ubiquitous " Help Vampire" who drains the life out of helpful communities...

Help Vampires: A Spotter's Guide gives tips on how to spot, avoid and reform them for the future benefit of humanity...

rubyglasses.blogspot.com Read
  Source Favicon
By Taryn of Ruby-coloured glasses 1 year ago.
Email

Earlier I mentioned the Serious Rails vulnerability that affects all versions of Rails for the last six years.

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* xml parsing error than the workarounds on offer (which tend to switch off your ability to parse XML).

rubyglasses.blogspot.com Read