makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...

URLs can transport key/value pairs ("parameters") using this syntax: /path?foo=bar If the value is blank, mind these subtle...

TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

stackoverflow.com

In the tab where you need it, open Chrome DevTools with F12, open settings with F1, scroll down to the...

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

makandra Operations

Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ --recursive --human-readable --summarize | tail -n2 Tail is used because...

makandra dev

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...

makandra dev

If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

If you want to get the path of a file relative to another, you can use the expand_path method...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

makandra dev
medium.com

In Ruby on Rails, all the routes of a given application can be found within the config/routes.rb file.

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

makandra dev

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...