...request: "GET /index.html HTTP/1.1", upstream: "http://198.51.100.123:80/index.html", host: "192.0.2.10:80" The cause This behaviour was caused by an application that transforms parts of the query from the URL into...
If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...
Wondering what these numbers in the mount entries in /etc/fstab are meaning? The first number fs_freq When this field...
...should see the following ([\w]+) table:?$/ do |name, expected_table| name = name.underscore table_element = begin element_at("table\##{name}") rescue Webrat::NotFoundError begin element_at("table.#{name}") rescue element_at...
...a "add new user" forms. Chrome developers say this is by design as they believe it encourages users to store more complex passwords. Recommended fix for Chrome and Firefox
For each movie in MovieDB, we want to track which other movie it was inspired by. For...
If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...
Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...
Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...
On your local system that only hosts non-critical development data and only you have access to, you can store...
...new value (be aware that you should use a secure and salted hash) or better call the the_user_to_log_out.reset_remember_token! method that does the things for you.
We recently encountered a problem with GlusterFS (7.x) when an application used the flock syscall on a GlusterFS path...
When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...
...calls html_safe if you're not escaping. FWIW, an HTML string may easily become invalid when truncated, e.g. when a closing tag gets chopped off. However, when the input...
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
Spreewald's patiently repeats the given block again and again until it either passes or times out.
Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...
CoffeeScript and JavaScript (ECMAScript) both have operators in and of. Each language use them for more than one purpose. There...
We often do some HTTP requests to fetch the data we want to check for certain criteria. Testing this in...
If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
When you have many changes, and you want to spread them across different commits, here is a way to stage...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
...what "memoize" in earlier rails versions did. There is a gem that reintroduces this behavior, but this is the essential implementation. Remember In the above example, some_expensive_calculation is...