Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...
If you have this problem when you update your FreeBSD Ports: ===>>> Launching child to update ruby19-iconv-1.9.3.547,1 to...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
JavaScript's NaN ("Not a Number") is hard to compare against. It never equals anything, not even itself:
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Simply use one(...) instead of on(...). It takes the same arguments.
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' };
A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...
Creating records in specs can be so fast that two records created instantly after one another might have the same...
Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...
p ActiveRecord::Base.connection.indexes(:table_name)
This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
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...
Have you tried the Search everywhere dialog? You can open it by pressing Shift twice.
A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...
Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...
You need to copy an entire website? Use wget like this: wget -kr http://host.tld/ This will fetch all content...
If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...