If you get requests with values for formats like this: {:locale=>[:de], :formats=>["../../../../../../../../../../etc/services{{"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby...

stackoverflow.com

Set up a package root in your homedir to hold the Node "global" packages: $ NPM_PACKAGES="$HOME/.npm-packages"

Webpacker can automatically create an icon font from SVG files, which is really handy. When you're using the asset...

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

If you get e.g. this error message when you try to run puppet agent: Error: Failed to apply catalog: undefined...

It is quite easy to migrate from CoffeeScript to ES6. You can use decaffeinate to convert your CoffeeScript source to...

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

We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...

If you struggle with a /boot partition that is too small for updates, and you are too intimidated by the...

makandra dev

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

makandra dev
thoughtbot.com

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...

makandra dev

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:

github.com

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...

tools.ietf.org

In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first.