Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...

TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...

smashingmagazine.com

A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...

So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...

This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

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

api.rubyonrails.org

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

makandra dev

Knowing when to refactor Just feeling like refactoring is not a good reason to do it. Make an educated decision...

api.rubyonrails.org

When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...

You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...

If you want to find the commits that touched a specific text in a file, use git log -S 'text...

Using the -U parameter you can change how many lines are shown above and below a changed section.

linuxquestions.org

Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...

makandra dev
icomoon.io

Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...

davidverhasselt.com

Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

blog.johnnovak.net

Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need...

blog.bigbinary.com

Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.