Sometimes you want to load code on demand. For instance, when a a large library is only used on a...
Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...
When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...
json is part of the standard library of Ruby and deals with JSON, obviously. As you know, JSON is the...
5.4.0 2021-02-01 Compatible changes Add geordi branch command that checks out a feature branch based on a story...
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...
CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...
When loading a database dump created with pg_dump into your database, you might run into an error like
There is a common view that extracting text from a PDF document should not be too difficult. After all, the...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.
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...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
One of the earliest pieces of wisdom we are given as programmers is to not write duplicate code: Don’t...
Embedding videos on a website is very easy, add a tag to your source code and it just works...
Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...
TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...