There are many approaches out there how you can import data from a legacy application to a new application. Here...

You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...

ActiveRecord::RecordNotFound errors provide quite meaningful error messages that can provide some insight on application details. Consider the following:

You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...

When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...

stackoverflow.com

This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...

makandra dev
stackoverflow.com

Assuming you're wanting to undo the effects of git rm or rm followed by git add -A or something...

chris.beams.io

Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...

makandra dev

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

askubuntu.com

Luckily, this is simple. Just install three packages: sudo apt install ipheth-utils libimobiledevice-dev libimobiledevice-utils

Imagine the following HTML structure, where the scrolling container has overflow-y: scroll: +--scrolling container+-+ | | | +-child element+----+ | | | ++iframe++ | | | | | | | | | | | | | | +-----------------------+ | | | | <-- actually cut...

makandra dev

You can start vim with a read-only option. This prevents making accidentally changes in files you don't want...

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

If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...

Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

github.com

Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...

api.rubyonrails.org

Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...

We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...

To get your F12 key back for other shortcuts, stop Tilda: killall tilda To prevent Tilda from starting on boot...

makandra dev

Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...