Along with a number of other cool new features and performance improvements, Ruby 2.6 added function composition to the Proc...
Some older Node modules rely on window.jQuery to be present. One suggested solution is to use this config in the...
To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...
While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...
Rails' ActiveSupport::TimeWithZone objects have both a timezone code and offset, e.g. Thu, 28 Mar 2019 16:00:00 CET...
This is not encouraged because this change is easily forgotten. We recommend using this only if you know what you...
min-width is known as a CSS property that can be set to define a least width for an element...
Fixed bugs where calling valid? would change the record's state.
If a systemd service unit is blocked by rate limiting (see in documentation) you can reset the failcounter via:
You can use .ids on an ActiveRecord scope to pluck all the ids of the relation: # Modern Rails User.where("users.name...
From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...
In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first.
Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...
Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action...
If you have a PostgreSQL dump in the custom format you can can view the text format dump (plain SQL...
Today's cameras create huge images, some beyond 50MB. Unless you need to offer this large files, you should always...
See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...
Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them...
...get no results (-01-23 would have worked). Serial numbers (one case was s7-1500) pose similar problems. Potential solution One possibility is to use plain old LIKE queries:
Spammers have started abusing other application to send their spam. This works like this: The application has some form that...
When restoring a PostgreSQL dump using pg_restore, you usually add the --clean flag to remove any existing data from...
When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...