If you try to listen to events on elements that are nested inside a , Firefox will stop event propagation once...
Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...
...as root for even more information and optionally also make use of stress for benchmarking, those methods did not provide any additional useful information for the current problem.
To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...
...write <<EOT. If you do this, your terminating sequence must be at the very beginning of the line. It's less pretty and there is rarely a reason to use...
...it and just builds a framework for concrete implementations. This is were another gem becomes important: database_cleaner-active_record. It provides the default ActiveRecord cleaner instance and is also...
...second database just once by using DatabaseCleaner[:active_record, db: MigrationRecord], but it's better readable and more convenient in case you want to change a strategy in the future...
tl;dr The strict-dynamic source list keyword allows you to simplify your CSP policy by favoring hashes and nonces...
...PNG with a decent resolution (72 dpi). However, in my experience the result is better, if you set the density to a higher value and then resize to the desired...
...size. But you can just toy with those values and see what works best for you. convert -density 1200 -resize 96x96 input.svg output.png Transparency By default, your target image is...
New versions of wkhtmltopdf dissallow file:// URLs by default. You can allow them by passing --enable-local-file-access.
...as the developer of the website) to do it properly, but wants to have better proof. To this end, the advertising network (e.g. "Google Advertising Products") will register with the...
"vendor X is allowed to serve personalized advertising based on user behavior", or "vendor X is allowed to use user data to improve its algorithm" etc.
We generally use multiple application servers (at least two) and you have to search on all of them if you...
...one to blame when the SEO folks complain about an empty . To avoid said behavior, use Nokogiri::XML instead of Nokogiri::HTML when parsing your HTML string. As long as...
...the input HTML contains a line break (somewhere inside the document, not at the beginning or end), the behavior of to_s magically changes to the above. >> Nokogiri::XML.fragment(" foo...
...be slightly off their original value. Consider using DECIMAL instead. Decimals have well-defined behavior for rounding and range overflows...
When debugging your application, you will come across objects created by some gem or framework. You don't have the...
Authentication is all about being able to verify the identity of a user in the context of our application.
You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...
...the class including the trait. While this may seem unproblematic at first glance, it becomes a problem when including traits in multiple classes, especially when using parameterized traits.
...you are actually defining ExampleTrait::HELLO. If you want to define a constant that belongs to a trait module, you can do that, and there a valid reasons to do...
If you are using git submodules in Gitlab CI, you might run into a "The project you were looking for...
...page that you want to test for with its debug page. To turn this behaviour off you can use the code from Eliot Sykes' blog post I renamed the key...
...realistic_error_responses to true_404s for my projects. You can then activate the behaviour like this: describe "Admin Authorization", type: :request do describe "GET /admin_panel", :true_404s do
Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...
The puppet server caches custom functions. If you edit an existing function (e.g. while you’re developing it), you’ll...
PostgreSQL uses the C library's locale facilities for sorting strings: First, all the letters are compared, ignoring spaces and...
Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...
Recent rails security updates have shown that people make incorrect assumptions about the possible contents of the params hash.