...of time, but it will always be retried at least a second time. This behavior allows with_scope to be patient, and it must be patient, as explained below.
I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:
I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...
...Use the attached Modularity below to add such a magical array to your model. Besides using the trait, you will need to implement two methods to synchronize the string array...
Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
Large Rails projects tend to define multiple custom ways to format Dates or DateTimes. This often leads to duplicated format...
...Normalize characters in Ruby". Specs (for nerds) Here are some specs that describe the behavior of #to_sort_atoms: describe String do describe '#to_sort_atoms' do it 'should return...
Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead. ActiveRecord models have with a method becomes(klass) which you can...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...
OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
Ctrl + Alt + S > search "rubocop on save" Under "Inspections", check the highlighted box on rubocop -a Caveat: This adds a...
...its mount path. It starts with /media/. Open a terminal and sudo su to become root. We require root for everything. Use dd to create an image of your encrypted...
...hosts. With the large number the puppet run on the Nagios server will become quite slow. In the end it took 10 minutes to complete. Make it fast
...Nagios server takes 65 seconds. References Eric Holzbach - Automating Nagios with Puppet and Puppetdb Ben Hartshorne - Puppet Perfomance Investigation Pieter Barrezeele - Puppet and Nagios
...which point the exception was thrown. def self.search_solr_with_exception_handling(*types, &block) begin search_solr_without_exception_handling(*types, &block) rescue Errno::ECONNREFUSED, Timeout::Error => e message = "Verbindung...
The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...
Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...
If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...
Sometimes you might need to do some task in GitLab which would be tedious if you'd have to do...
It is quite easy to migrate from CoffeeScript to ES6. You can use decaffeinate to convert your CoffeeScript source to...
Field error steps Spreewald's The...
...field should have an error and The...
...field should have the error...
...steps now...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...