makandra dev
github.com

Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...

When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...

makandra dev

RSpec::Matchers.define :be_naturally_sorted do match do |array| array == array.natural_sort end end See RSpec: Where to put custom...

This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|

It might happen that your Sidekiq queue gets stuck, hanging at 0% CPU load. When we inspected the process using...

The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...

When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...

dmitrybaranovskiy.github.io

Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want...

makandra dev
tom.preston-werner.com

A perfect implementation of the wrong specification is worthless. By the same principle a beautifully crafted library with no documentation...

Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...

Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...

Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...

If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...

makandra dev
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

github.com

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 is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...

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

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

List flavors to show the ID and name, the amount of memory, the amount of disk space for the root...

Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...