After running Code Enigma's Drupal training services for the best part of five delightful years, I'm leaving the nest to kick off Pathway Education, a startup dedicated to open source technology training and educational tools.
Personal reminder: how to log in to MySQL on a unix system, create a database, create a user, and grant that user all privileges to that new database.
Log in as a privileged user. I use a config file to store my credentials:
When you're importing a large database into a new Drupal development environment using ddev, you might encounter the following error:
Entity validation refers to specifying criteria (constraints) which must be met before an entity can be saved (created or updated).
Say you're working in a git version controlled project and deleted a file or directory ages ago.
You now realise you need the deleted file/directory back.
There are many ways to do this in git. Here's a straightforward one on Linux, using zsh.
Syntax may differ slightly on other systems.
Cristina started an interesting discussion on drupal.org: What could Drupal implement from other CMS or content editors to improve its Admin Interface?
Like many of you I've not been at ease with how the free and open web has been devolving into a set of walled gardens.
Because I keep forgetting: here's a one-liner to immediately compress drush sql-dump output with bzip2. This'll work for any command that generates output, such as mysqldump and tar.
$ drush sql-dump | bzip2 > filename.bz2
If no option is provided, bzip2 assumes -c (compress).
Now, to decompress:
I needed a way to fetch and parse various system logs, including the NGINX access and error logs.
Here's an example log entry that I needed to parse into an array:
Here's a a quick and easy snippet to add alternating class names to your views rows, also referred to as 'zebra' tables or 'striped backgrounds'.
1. Copy
/core/modules/views/templates/views-view-unformatted.html.twig
to