When writing XLSX files, there are gems like rubyXL or axlsx. While they do offer features like formatting or graphs...
PostgreSQL supports the SQL OVERLAPS operator. You can use it to test if two date ranges overlap: => SELECT ('2001-02...
When attempting to update RubyGems, depending on updates your previously performed, you might run into an error ERROR: While executing...
A common pattern in Ruby is to to require all files in a specific diretory, using something like Dir.glob(Rails.root.join...
Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...
RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...
If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.
If you use awesome and make a Slack call, you'll constantly have an overlay window pop up taking over...
When an Rspec example fails, I usually investigate by running that example again using rspec . However, this does not work...
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
Download the dictionary from http://www.winedt.org/dict.html, e.g. http://www.winedt.org/dict/de_neu.zip unzip de_neu.zip mkdir ~/Documents/dic iconv -f UTF-16 -t...
You need to set the :inverse_of option manually for relations that have an association to a polymorphic model. Otherwise...
When you want to group rails models of a logical context, namespaces are your friend. However, if you have a...
RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...
FactoryBot allows a :class option to its factory definitions, to set the class to construct. However, this option is not...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...
...} can not be...
If another session is accessing your database you are trying to reset or drop you might have seen the following...
You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...
Use return to return from a method. return accepts a value that will be the return value of the...
I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...
before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...