caniuse.com

Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

bugs.launchpad.net

Terminator has a cool feature that allows you to split your terminal into many panels and type in all of...

stackoverflow.com

Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.

Fix Ensure your step definition cannot generate invalid selectors and instead prints better error messages. Adding field.should be_present might help, Note This error may be caused when...

Keep in mind Swap is not evil by definition. Some bytes per process beeing put to Swap will not have that much of performance influence. If you want the...

Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...

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

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

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