Skip to main content
161
results
Andrew Fletcher
This issue I have a folder with about 10,000 files in it.  I want to scan through the directories and isolate files that are different from what sits in the database.  How do you generate a list of file names of all the files into a single txt file?   Solution One option is using the list command ls > filename-list.txtHowever, this option will generate a list of the current directory, listing directories by name only and therefore not including file from each of the directories...
Andrew Fletcher
If your Composer project doesn't have Drush listed as a dependency, you can...
Andrew Fletcher
Using CK Editor 5, I needed to add instructions to a page that held FontAwesome...
Andrew Fletcher
I've been working on a problem where a font and image tag aren't appearing on...
Andrew Fletcher
Using Homebrew for speed tests... I'm using Speediest CLI - for more details go...
Andrew Fletcher
In a site I'm working at the moment, we need to download high resolution images for media groups.  How do you force a href to download rather than the default display in the browser? The code I've written to manage the paragraph is {% block paragraph %} <div{{attributes.addClass(classes)}}> {% block content %} <div class="g-0"> <div class="row align-items-top g-10"> <div class="d-none d-sm-block"> {% set media_image =...
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
Whilst attempting to download the latest config.zip file for Solr, I was greeted...
Andrew Fletcher
Having a situation where I'm running a sub theme based on Bootstrap Barrio, but...
Andrew Fletcher
This guide has been compiled as a reference tool on how to access field values...
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have a directory or directories that you need to know the number of files in them.  On Linux, the list command (ls) is piped with the wc -l command. ls | wc -lThis command works great if all the files are located in one directory.  What about if you have multiple directories.  Then you will need to use the find command piped with the wc command find <directory> -type f | wc -lThis command only...
Andrew Fletcher
Running Docker, I deleted the images and containers they had been built to date....
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
A recent upgrade to PHP 8.1, has highlighted an error that hadn't been appearing...
Andrew Fletcher
Working in Drupal 9.5 and I'm now getting the following cache tag error The...