This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...
#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.
If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see this error running usual git commands like git pull, git...
...rc1) must be separated by a dash, like this: 1.0.0-rc1 2.3.0-alpha2 3.0.0-beta3 Publishing to a pre-release tag npm packages have multiple "current" releases, identified by "tags...
Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
Sometimes you want to load code on demand. For instance, when a a large library is only used on a...
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...
Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...
...user@example.com'.split(/([@\.])/) => ["user", "@", "example", ".", "com"] Or, you can use a capture group with look-behind to keep them with the resulting substrings: >> 'user@example.com'.split(/(?<=[@\.])/) => ["user@", "example.", "com"] An example use...
Browsers usually cache website content in order to provide the user with faster responses. Examples are returning to a website...
...bug is fixed, you forget to take out that debug information. There is a better way. By copying one of the attached initializers into config/initializers, your forms will always render...
...about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be used appropriately based on the situation. The majority of examples on rspec...
You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...
I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
...shared and writable by threads. If incorrectly coordinated, those threads can lead to unexpected behaviors...
6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...
We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...
In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of multiple flags like "STRICT_TRANS_TABLES, NO_ZERO_IN_DATE...
...Each flag activates or disables a particular behavior. The default SQL mode varies widly between versions of MySQL and MariaDB. In general, more recent versions of MySQL and MariaDB have...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...