Skip to main content
115
results
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...
Andrew Fletcher
Attempting to load changes in a staging site and the bountiful error page of Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log.Looking through the error log, I had two messages...
Andrew Fletcher
Working through migration on a new Centos 7 server, the default mailbox size is...
Andrew Fletcher
Running a common composer command, post an upgrade on the server to Centos 7 and...
Andrew Fletcher
To add ejabberd and run MYSQL to the server I needed to update the server...
Andrew Fletcher
I'm receiving a server not found when logging in to Plesk from shell or...
Andrew Fletcher
This page shows a growing list of common commands for viewing and managing your Centos server. ls syntax $ ls [options] [file|dir] ls command main options: ls -a list all files including hidden file starting with '.' ls --color colored list [=always/never/auto] ls -d list directories - with ' */' ls -F add one char of */=>@| to enteries ls -i list file's inode index number ls -l list with long format - show permissions ls -la list long format including hidden files ls...
Andrew Fletcher
Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I...
Andrew Fletcher
For what reason would you need to find the identity of the current user? You are...
Andrew Fletcher
I started out with a simple task... install Tailwindcss.  What unfolded is...
Andrew Fletcher
Blocks are a great way to add pieces or chunks of content to your Drupal site....