Skip to main content
298
results
Andrew Fletcher
09 Jul 2022
Creating a bash script Bash scripts are files containing code that tell your computer to do something.  In this instance, I want to rename a batch files in a directory.  Such as changing:   37351001 - BlueSpotted.jpg 37351008 -SpangledEmporer _ 0133A.jpg 37353003 -Black-Bream_3481 .jpg 37353004   -35 - Yellowfin.jpg Instead having these files appear as: 37351001.jpg 37351008.jpg 37353003.jpg 37353004.jpg However, I don't have four files.  Wouldn't be worth my time writing the script.  But...
Andrew Fletcher
07 Jul 2022
Accessing a remote server using PEM key, and I had the following...
Andrew Fletcher
05 Jul 2022
Working hard developing your app and now it's time to let others begin testing...
Andrew Fletcher
04 Jul 2022
My goal was to get the base URL and compare it with the URL of the link.  Was it...
Andrew Fletcher
01 Jul 2022
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
24 Jun 2022
Whilst I had regularly used HAL to upload files through REST API, this is no longer an option given Hal is now deprecated and will be dropped in Drupal 10.  Time to explore JSON:API. Drupal modules to be installed You will need to install JSON:API Media Configuration for JSON:API Alter the JSON:API to accept all: Path: Administration > Configuration > Web services > JSON:API Select: Accept all JSON:API create, read, update, and delete operations. Configuration for Media Path:...
Andrew Fletcher
23 Jun 2022
How do you retrieve a taxonomy term tid value from it's name? In this...
Andrew Fletcher
23 Jun 2022
If you are like me, almost every view I have will have this filter.  So I...
Andrew Fletcher
22 Jun 2022
Have you come across the following Drupal error message: Mismatched entity...
Andrew Fletcher
21 Jun 2022
Working on a decoupled React / Drupal 9 site. Aim: Adjust the output of curated...
Andrew Fletcher
21 Jun 2022
How to make React calls on a Drupal 9 backend site using the search functionality Tools Drupal 9.4 React     The sample sent through from the front-end is as follows: https://localhost/search?keyword=&sort=changed&type=%20Commissioner However, to run requests, the keyword requires a string.  Such as searching the word 'committee'. https://localhost:8006/search?keyword=committee If no keyword is entered, the response will be empty. No results found for "". How to...
Andrew Fletcher
20 Jun 2022
In this instance, I'll check the beginning of the string.  I want to focus on...
Andrew Fletcher
20 Jun 2022
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS....
Andrew Fletcher
18 Jun 2022
 ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...
Andrew Fletcher
17 Jun 2022
When attempting to do a git push, are you getting the following...