rspec.info

You can define methods in any example group using Ruby's def keyword or define_method method: describe "example" do...

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...

creativecouple.github.com

jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...

As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...

I was unsatisfied with the existing memory status applets for the Xfce panel, so I wrote a little shell script...

makandra dev

The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your...

stackoverflow.com

This works in all relevant browsers: document.activeElement You can use this in your Selenium steps, for example, to assert that...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

Static error pages To add a few basic styles to the default error pages in Rails, just edit the default...

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...

blog.alexmaccaw.com

Over the next year, there are a number of technologies coming down the pipeline that have the potential to radically...

You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...

darwinweb.net

Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

Xfce gives you a million options to configure your panels. Together with Xfce's sometimes arcane configuration UI, this can...

When your file manager sorts file case-sensitively after a distribution upgrade, you probably need to reconfigure your locale settings...

If you have a PNG and want to know a pixel's alpha channel value, you can use Gimp:

github.com

As the title says: this jQuery plugin creates bar charts from HTML tables. It comes in some different flavors.

makandra dev
github.com

The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...

The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...

When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...

coding.smashingmagazine.com

JavaScript engines such as Google’s V8 (Chrome, Node) are specifically designed for the fast execution of large JavaScript applications...