When you need to check a value for presence, don't rely on JavaScript since it considers 0 or "0...

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

Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...

github.com

JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...

In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

youtube.com

Great introduction to React.js and the ideas behind it.

Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...

makandra dev
github.com

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

blog.mailgun.com

Styling HTML email is painful. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers...

Nearly all jQuery traversal functions ignore elements that are not HTML tags. To work with other type of nodes (like...

github.com

Restmod creates objects that you can use from within Angular to interact with your RESTful API.

zerosixthree.se

See attached link. The gist is: .element { position: relative; top: 50%; transform: translateY(-50%); } Works in all web browsers and...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...

Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...

The adjust-hue function of Sass allows you to change a color's hue, but only relative to its current...

makandra dev
plugins.jquery.com

SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...

When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...

github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...