...include(3, 4, 5) evaluates to: NOT( .to include(3, 4, 5) ) However, it behaves like: .to (NOT include(3) && NOT include(4) && NOT include(5) ) Warning

A convenient way to test SNS Subscription Filter Policies is using an email address as the subscription endpoint. However, for...

...hide gems from the backtrace. In such cases, log_subscriber.rb is the inner-most (i.e. "best") source in the backtrace. You probably have an initializer with this line: Rails.backtrace_cleaner.remove_silencers!

github.com

The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

makandra dev

Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...

If you want to know your public key's fingerprint, do this: ssh-keygen -lf ~/.ssh/my.key.pub This may be necessary...

When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...

...you're using Rails 4 (which brings String#indent in ActiveSupport), you'll be best of defining it yourself. This card has it for you. Gems that define String#indent...

web.archive.org

Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...

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

makandra Curriculum

...as separate commits or branches. After the review with mentor you can keep the best version and delete the others. Asking for help You're working in a team of...

MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the sql_mode option. Following you can find behavior differences which...

Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...

...no longer executed. Both are caused by the return inside of the block. This behavior is by design, just so that you can break out of a block -- and you...

...buffer { return block.call(*args) } end end This can come bite you with extremely unexpected behavior of your application, as this will mean a slightly different result of your capture:

When you have files in your .gitignore they won't be considered for changes, but still you might want to...

...your code a good manner, it can affect readability in a terrible way. The better option is to bundle your local font into an npm package and to add a...

travisonrails.com

You set a flash message and it shows up as it should. However, it is displayed again the next time...

tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example

Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...

drafts.csswg.org

...invalid calc value is ignored, so you might end up with missing or "random" behavior, depending on where you do this. The above example is valid once you use zero...