The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different effects. robots.txt Marking a URL path as "disallowed" in robots.txt...
Since I use this a lot in my daily work and there were no scripts working properly for me, I...
Hint This applies only to distributions based on Debian. Requirement You need to setup the PostgreSQL Apt Repository first.
To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...
...index: true option. Use it only inside create_table or for add_reference (= add_belongs_to) statements, and use add_index for other cases. Never use index: true but only...
Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for more advanced plots, e.g. for academic concerns. Then using Gnuplot...
...where each array holds the data for x-, y- or z-axis. The major benefit of numo-gnuplot is that it supports advanced numpy like array operations, like multi array...
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...
TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.
...all Unpoly updates work using AJAX requests, you won't get the more detailled better_errors page with the interactive REPL. Below is an event listener that automatically repeats the...
...full CSS and JavaScript. The code assumes you are using Ruby on Rails with better_errors, which is the default error view that modern Rails versions employ. If you are...
There is a common view that extracting text from a PDF document should not be too difficult. After all, the...
Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...
When using tmux, selecting and copying multiple lines of text can be a hassle, especially when using splits (highlighting lines...
Investigate why mails are frozen The exim documentation says: Freezing occurs when a bounce message encounters a permanent failure because...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
...follow redirects to get the desired response. This is supported but not the default behavior. You can do so by using the .follow method. This follows redirects for the following...
The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...
...often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs desktop navigation menus). Since you want your integration tests to behave...
...metrics". This allows you to configure dimensions larger than your display and enable/disable touch behavior. Simply use register_driver to set up a driver that you then connect to Capybara...
When giving a presentation where you do some coding, the font size you usually use is probably a bit too...
When setting up cronjobs, commands somtimes output something every time. If these commands don't support limiting their output to...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...
Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...