Selenium may break with ChromeDriver 75+

Posted Almost 5 years ago by Jakob Scholz.

When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.

cucumber_factory: How to keep using Cucumber 2 Transforms in Cucumber 3

Posted Almost 5 years ago by Michael Leimstädtner.

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

no passenger served applications running error when deploying via capistrano

Posted Almost 5 years ago by Claus-Theodor Riegg.

When deploying with capistrano it's possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served...

Heads up: Capybara 3's text matchers no longer squish whitespace by default

Posted Almost 5 years ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Events triggered by jQuery cannot be observed by native event listeners

Posted Almost 5 years ago by Henning Koch.

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

Webpack: How to split your bundles

Posted Almost 5 years ago by Tobias Kraze.

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Capybara: Testing file downloads

Posted Almost 5 years ago by Emanuel.

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

SameSite cookies

Posted Almost 5 years ago by Dominik Schöler.

TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...

Ruby: Using named groups in Regex

Posted About 5 years ago by Emanuel.

An alternative of using a multiple assignment for a Regex are named groups. Especially when your Regex becomes more complicates...

Vortrag: Elasticsearch Grundlagen und Rails-Integration mit searchkick

Posted About 5 years ago by Tobias Kraze.

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

How to test Autoprefixer and CSSnext in PostCSS

Posted About 5 years ago by Emanuel.

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

Webpack: How to avoid multiple versions of jQuery

Posted About 5 years ago by Emanuel.

To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...

When reading model columns during class definition, you must handle a missing/empty database

Posted About 5 years ago by Arne Hartherz.

When doing some meta-programming magic and you want to do something for all attributes of a class, you may...

Migration from the Asset Pipeline to Webpacker

Posted About 5 years ago by Emanuel.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

ActionMailer: Previewing mails directly in your email client

Posted About 5 years ago by Michael Leimstädtner.

In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',

During deployment: "You are trying to install in deployment mode after changing your Gemfile"

Posted About 5 years ago by Thomas Eisenbarth.

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

Why you can't use timezone codes like "PST" or "BST" for Time objects

Posted About 5 years ago by Arne Hartherz.

Rails' ActiveSupport::TimeWithZone objects have both a timezone code and offset, e.g. Thu, 28 Mar 2019 16:00:00 CET...

Using local fonts with Webpack / Webpacker

Posted About 5 years ago by Jakob Scholz.

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

Bootstrap 4 skin for the Rome datepicker

Posted About 5 years ago by Arne Hartherz.

Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...

RSpec: How to aggregate failures

Posted About 5 years ago by Jakob Scholz.

RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...

Trigram indexing as an alternative to PostgreSQL fulltext search

Posted Over 5 years ago by Tobias Kraze.

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

JavaScript without jQuery (presentation from 2019-01-21)

Posted Over 5 years ago by Henning Koch.

We want to move away from jQuery in future projects Motivations are performance, bundle size and general trends for...

How not to turn your application into a spam relay

Posted Over 5 years ago by Tobias Kraze.

Spammers have started abusing other application to send their spam. This works like this: The application has some form that...

Auto-generating plain-text bodies for HTML e-mails in Rails apps

Posted Over 5 years ago by Arne Hartherz.

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...