Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
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' };
A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...
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...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
Getting rid of your old LibreOffice Remove your old LibreOffice: sudo apt-get remove libreoffice* You probably also want to...
By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...
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...
Styling HTML email is painful. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers...
Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...
The The U.S. Digital Services Playbook is pretty amazing (context).
Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...
So you erased a whole day's work? There is hope! The linked article tells how to recover from an...
Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...
When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...
Automagically makes XHR requests work cross-domain by tunneling all communications through an IFRAME on your page.
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...