Skip to main content
108
results
Andrew Fletcher
The generally accepted answer to a mysqldump is: mysqldump -h [host] -u [user] -p [database_name] [table_name] > [file].sqlOr a variant there of...  Of course if you are logged in to the server and working from it you don't need to express the -h [host] mysqldump -u [user] -p [database_name] [table_name] > [file].sql  But no not for me.  I wasn't seeing the success story of a downloaded database file.  Instead I was warmly embraced by error land: mysqldump: Got...
Andrew Fletcher
Working in Twig, I had to add classes to a pre-existing array.  Whilst I've...
Andrew Fletcher
Wanting to create a new repository on GitHub, add in a few of the available...
Andrew Fletcher
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
I needed the check if a file existed in a directory as the migrate script wasn't...
Andrew Fletcher
Joining a new company / team there is always a lot of new items to do, install and familiarise yourself.  Below is a working list: Products URL / install path Notes Homebrew https://brew.sh /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"   Docker https://docs.docker.com/docker-for-mac/install/   Visual Studio Code https://code.visualstudio.com   Sequel Ace   App Store 1Password   App...
Andrew Fletcher
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change...
Andrew Fletcher
As outlined in an earlier article composer php version, when installing the...
Andrew Fletcher
I had been running a few Centos 6 servers just past their EOL (30th November...
Andrew Fletcher
Regular expressions (regex) are extremely useful in extracting information from...
Andrew Fletcher
Working in Laravel, I needed to loop through an array and know whether the current loop was odd or even row.  To do this add the expression to your Twig file: {% set direction = loop.index0 is odd ? 'left' : 'right' %}In the call above, the variable direction is set to either left or right depending on the value of the position of the loop row (loop.index0).  I then used the left or right value in a div class adding to a series of tailwind css definitions.  Such...
Andrew Fletcher
I need to set the default php-version of a subscription to php7.3.  The...
Andrew Fletcher
Don't worry this is an issue that many Drupal developers have come across....
Andrew Fletcher
Working on a new CentOS 7 server, Node wasn't installed.  You can...
Andrew Fletcher
Using a Centos 6 or 7 server, how to check the current version of Apache? httpd...