...a convenience method on Strings (you may need to require 'whatlanguage/string'). >> 'Wir entwickeln und betreiben anspruchsvolle Webanwendungen'.language => :german Depending on your users' input, consider using less languages for better...
If you use the Better Errors gem, you will sometimes notice that it can be very slow. This is because it sometimes renders a huge amount of data that will...
You can significantly improve performance by adding this to config/initializers/better_errors: if defined?(BetterErrors) && Rails.env.development? module BetterErrorsHugeInspectWarning def inspect_value(obj) inspected = obj.inspect if inspected.size > 20_000 inspected = "Object...
Webpacker can automatically create an icon font from SVG files, which is really handy. When you're using the asset...
To avoid sending e-mails containing sensitive data unencrypted I strongly suggest you enable a confirmation dialog. Enigmail can show...
If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.
Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be...
From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...
...this global option, and use the :visible option when calling page.find(...). This way the behavior is only changed for this one find and your step doesn't have confusing side...
Capybara has an option (Capybara.ignore_hidden_elements) to configure the default query behavior of finding nodes within the DOM. It's default value is false. That means that...
...directory like ~/bin/rubymine, and update that link whenever you update RubyMine. This has many benefits: A launcher pointing to ~/bin/rubymine/bin/rubymine.sh runs the recent version. No need to touch it.
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
How do HTTP requests and responses look like? What are HTTP headers? What are they used for?
...layout since such things are part of your application's logic -- and thus they belong into the corresponding model. How to Do it like this: In your migration, after adding...
...edit string fields, you probably want to strip the entered values (remove whitespace from beginning and end). The reason is that your users will copy + paste values from unholy places...
For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at the bottom of the HTML. This way, the page can...
You will need to look here and find your own device. Look for the "bootable CD" download, which will give...
For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...
The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...
When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests. For example, reading the browser console for errors no longer works, and...
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...
When you style multiple adjacent block elements with float: left, they will be rendered next to each other similar to...
...that method now no longer returns a scope but its loaded target array. The best solution is to use the Memoizer gem instead. A workaround is to roll your own...
Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...
No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...