Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...
In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...
When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...
Some pseudo-elements need to be addressed with vendor prefixes. E.g. ::selection is not supported by Firefox, you need to...
Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...
For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
Just dumping this in case somebody might need it. When you need a CSS value (a padding, margin, height etc...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...
Using the dialog command you can launch ASCII-art dialogs from your shell scripts. Check out man dialog for a...
The pages listed here contain tests and experiments about features, possibilities, browsers’ bugs concerning CSS. That is, over 200 experiments...
Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...
If the application under test makes sound, you probably want to disable this during integration testing. You can use the...