Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...
A flat folder structure can be cool if you have only a few folders but can be painful for huge...
If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...
A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...
This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.
As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...
MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the...
Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Tod is a gem for working with daytimes. That's a tuple of (hour, minute second) without a day, month...
When doing some meta-programming magic and you want to do something for all attributes of a class, you may...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...
Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...
Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...
geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...
You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...
MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
On your local system that only hosts non-critical development data and only you have access to, you can store...