developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
479
results
Andrew Fletcher
•
If your Composer project doesn't have Drush listed as a dependency, you can install Drush from command line as follows:
composer require drush/drushTo check your version of Drush, use
drush --version
Status check
drush statusWill output something similar to
Drupal version : 10.1.1
Site URI : http://default
DB driver : mysql
DB hostname : mysql
DB port ...
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...
Andrew Fletcher
•
I'm in an environment where the default branch is staging and I'm attempting to run a git merge. However, in actioning this command, I'm been greeted with the following response 'not something we can merge'
❯ git merge origin/{branch}
merge: origin/{branch} - not something we can mergeTo resolve this, first I attempted to do a git checkout to the branch
But this was swiftly meet with "did not match any file(s) known to git"
git checkout {branch}
error: pathspec '{branch}' did not match...
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
•
Creating a foreach loop such as
var maxDigits: Int = 5
private var...
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
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my...
Andrew Fletcher
•
A recent upgrade to PHP 8.1, has highlighted an error that hadn't been appearing...