Roll up.. roll up! Welcome everybody to this weeks one and only dev newsletter. First up this week its time to celebrate… it is Friday after all!

Ruby 2.0.0 is out! - Matt P

..and by the looks of things, the incompatibility list is quite small.

..and a shameless plug for Ruby Manor 4 - Murray S

Ruby Manor 4: CFP closes Monday 4th, Voting starts shortly after.

The ruby conference I'm co-organising might be sold out, but that doesn't mean you can't get in! All our speakers will be given a ticket if they don't have one. The CFP closes on Monday 4th, so there's still time to propose a talk: The CFP is completely open and anonymous, so even if you're not going to propose something, you should sign up and leave some comments. In a few days time we'll open up voting and let the community pick the talks they want to see on the day. If you don't have a ticket, you can still get involved and vote as we film all the talks and release them to the world, so your opinions are still valid.

ActiveSupport::MethodOfTheWeek - Andrew M

Do you find yourself regularly repeating specific sets of options when you are writing your code. with_options might help make things a little more dry and a little easier to read.

class Person < ActiveRecord::Base
  has_many :comments,   dependent: :destroy
  has_many :posts,      dependent: :destroy

The above can be refactored to the below example. It's a little contrived but over a large set of associations it can be a pain to keep writing the same stuff again and again.

class Person < ActiveRecord::Base
  with_options { dependent: :destroy } do |association|
    association.has_many :comments
    association.has_many :posts

CSS: Damn it! I am doing it in tables -Rob P

These days devs use CSS preprocessors and Source Mapping for debugging. However there are others, who want to go back to the stone age and simply use tables. Crazy world...

Use source maps in Chrome inspector to make your SASS debugging an easy job - Rob

I love using Compass (which is basically awesomified™ SASS) either for Rails or simple HTML projects. With the experimental Source Mapping feature and the support of SASS in Chrome developers now can much easier track down the origin of each style definition with line per file accuracy.

There is one thing we've realised today, which is when source maps used without Compass in a Rails 3 project, you will need to //=require the sass files instead of importing them, otherwise SASS won't generate the debug info with the correct syntax. On the other hand with Compass you don't have to worry about this, as you can just use @imports.

Read on:

Pipe Viewer - Will T

Having to load up a large sql file? Want to know how long it's going to take? So... you've got two options when loading a dump - Either run mysql as per usual with no output whatsoever or run it with the --verbose flag and get so much output the only effect it has is to inform you that it's still running. I came across a nifty little utility today called pipe viewer.

brew install pv

Then instead of running

mysql -blahblahblah database_name < dump.sql


pv dump.sql | mysql -blahblahblah database_name

And then you get this:

> 715MiB 0:02:10 [4.83MiB/s][=========>       ] 55% ETA 0:01:45

Instead of this:


Every last drop - keep scrolling please - Rob P

A really cute edutaining site that keeps you scrolling for a long time, whilst telling you about how expensive clean water is and what you can do for sustainable water use.

Steve's Hot Link Action

Psychology Corner

A blog accompanying the pocket ebook from Five Simple Steps. Two choice links from the book:

Provoking discussion about the role of ethics in web design.

The Behavior Wizard can help you design for successful behavior change.

Food for thought corner

Play by your own rules.

A tip for effective meetings: Always be capturing.

Observations on use of mobile devices at airports and train stations

Innovation is connection, and a culture of innovation is a culture built through connecting.

Design and Dev Corner

Search for inspiration.

Typeplate is a “typographic starter kit”.

Redacted: A Font for Web and Desktop. Keep your wireframes free of distracting Lorem Ipsum.

A blog with the intention of motivating, encouraging, and helping people begin speaking at conferences.

Um, what? Corner (aka Cat Corner) - Steve B

Um, What? - Matt P - Matt P

Read the name of this site carefully. Visit it, sure, but do not leave it open in a tab unless you're using Firefox. OK, now that the warnings are out of the way I shall explain a little bit more. It's a site which gives an endless stream of cats (who doesn't love such sites?) using the HTML 5 localStorage. There are problems with the implementations of many popular browsers meaning that this storage can be abused. More details explained on the site. Dare you click?