Skip to main content
23
results
Andrew Fletcher
Goal: Restrict content access through username and password entry on an Nginx server. 1: Apache Utilities Package First, update your server’s package index: sudo apt updateCheck if the utilities package exists in your environment by executing the command dpkg --get-selections | grep apacheResponse: apache2-utils install libapache-pom-java installSo it exists.  But what do you do if it doesn't exist? How come I need to install apache-utils?  To restrict access you will be using...
Andrew Fletcher
The challenge I was facing, I had written a script to scan barcodes and use...
Andrew Fletcher
Goal: Restrict content access through username and password entry. 1: Apache...
Andrew Fletcher
Working on a decoupled React / Drupal 9 site. Aim: Adjust the output of curated...
Andrew Fletcher
How to make React calls on a Drupal 9 backend site using the search...
Andrew Fletcher
This code is from Drupal 9 back-end for a React front-end via REST API. Working through the output for recently viewed pages... the code structure: <?php namespace Drupal\custom\Plugin\GetData\paragraph; use Drupal\custom\Plugin\GetData\ContentBase; use Drupal\custom\Plugin\GetData\ParagraphTrait; use Drupal\node\Entity\Node; /** * Provides Recent view pages data. * * @GetData( * id = "recent_view_pages", * title = @Translation("Recent view pages Data"), * ) */ class...
Andrew Fletcher
Whilst working through an edit person view in a SwiftUI project, I experienced...
Andrew Fletcher
When managing a navigation title in Swift, you will have trodden down the path....
Andrew Fletcher
Struggling to hide the SwiftUI separators in a List or Form?    The...
Andrew Fletcher
Core Data - customising our data model When you are using Core Data, and let's...
Andrew Fletcher
In SwiftUI, has made creating a list of item very easy.  If you have an array containing the names of customers, these names can be displayed through the following code: struct ContentView: View { let customers = ["Sarah","Vinodh","Dimitry","Lata"] var body: some View { List(customers){customer in Text(customer) } } }As you will have noticed, this is a static list.  Meaning that any changes to the customers array will not cause...
Andrew Fletcher
I attempted the run command and the response I had was succeeded, but then...
Andrew Fletcher
Working with buttons To begin, what is a button in SwiftUI? struct MainView:...
Andrew Fletcher
When those simple annoyances are too frustrating!  Yes we have all been...
Andrew Fletcher
The purple warning notification of annoyance recently came my way!  I...