Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...

stackoverflow.com

Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...

conversionxl.com

We all struggle with pricing. Here is some interesting information that helps you with your pricing decisions.

When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...

coding.smashingmagazine.com

Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print

Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...

Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.

So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch

makandra dev
github.com

Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...

This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...

w3.org

You probably know that you can use CSS selectors to match against elements and their attributes, such as:

You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...

stritar.net

Since I'm a software architect and a web developer, I get often approached by people with their new ideas...

kalzumeus.com

January has been a very bad month for Ruby on Rails developers, with two high-severity security bugs permitting remote...

Defining one callback several times in the same class behaves different in ActiveRecord and ResourceController. While in ActiveRecord the callbacks...

github.com

Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...

ruby-doc.org

If you use Tempfile and pass your own filename containing an extension, it will just be consumed by the Tempfile...

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

makandra dev

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

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