In the tab where you need it, open Chrome DevTools with F12, open settings with F1, scroll down to the...
This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...
Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ --recursive --human-readable --summarize | tail -n2 Tail is used because...
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...
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...
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...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...