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 and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...
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...
Getting rid of your old LibreOffice Remove your old LibreOffice: sudo apt-get remove libreoffice* You probably also want to...
Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...
Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...
When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...