makandra dev

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

...file_inside' do let(:path) { '/opt/invoices/' } it 'should send a requested file that lives beneath the given directory' do subject.should_receive(:send_file).with('/opt/invoices/123.pdf', {}) subject.send :send_file_inside, path...

For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...

I have a form with a dynamic number of fields. Submitting it worked fine until I tried out a very...

makandra dev

...willy@astor.de" And I follow "Cancel account" Then I should see "Account canceled" By going beyond the single line descriptions we've accustomed to, we can provide all the information that...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...

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

When you use a belongs_to or has_many macro you might be surprised that the methods that it generates does not override a method with the same name. Take...

class Project < ActiveRecord::Base def user "foo" end belongs_to :user end Project.new.user still returns "foo". The reason for this is that what belongs_to does is actually...

...existing bash script to work for commits that are referencing Linear IDs. A core benefit of our convention to prefix commits by their corresponding issue ID is that we can...

...easily detect commits that belong to the same issue. You can either do that manually or use the bash script below. It can either be placed in your .bashrc or...

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...

atlassian.com

Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...

Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...

...Normalize characters in Ruby". Specs (for nerds) Here are some specs that describe the behavior of #to_sort_atoms: describe String do describe '#to_sort_atoms' do it 'should return...

Large Rails projects tend to define multiple custom ways to format Dates or DateTimes. This often leads to duplicated format...

makandra dev

Field error steps Spreewald's The...

...field should have an error and The...

...field should have the error...

...steps now...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...