If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...
When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...
Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...
If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. Firefox will not...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...
Just install the texlive-xetex package: sudo apt-get install texlive-xetex Running integration tests without texlive-xetex will produce...
JavaScript's NaN ("Not a Number") is hard to compare against. It never equals anything, not even itself:
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...
bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...
JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };
Creating records in specs can be so fast that two records created instantly after one another might have the same...
This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...
This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...
Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...
Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...
When your system is not running on English, you may sometimes want to run some applications and not use your...
Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...