SwiftUI - initialiser without initialising and binding parameters errors
Whilst working through an edit person view in a SwiftUI project, I experienced the following two errors:
ls commands in Apache / Linux
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:
Installing Laravel on Apache
Installing Laravel on an Apache server was going to be a no fuss process said no developer! Research done. Documentation looks good and easy to follow. Time to load Laravel.
The set-up
The install notes on Laravel are easy to follow. Beginning with checking that your server is able to install Laravel.
PHP version on Apache Centos 7
I need to set the default php-version of a subscription to php7.3. The current server php version is PHP 7.1.33 (cli) (built: Oct 25 2019 11:33:58) ( NTS ).
Using a shell program (I used Terminal) from the home directory I ran:
export PATH=/opt/plesk/php/7.3/bin:$PATH;
centos 6 use
service httpd restart
centos 7 use
Solution: (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Set up:
- Plesk Obsidian 18.0.28
- Centos 7
Like any error that pops up, the real check is how do you react?
Adding time to read to a Drupal article
Time is essential to all of us... and if you are like me there is never enough of it! Anyway, the amount of time to read a piece of content can persuade someone whether to read on further... or swipe it away. When on the verge of flipping an article as the title and /or teaser text hasn't got me across the line, the time to read is a handy reference for me. This handy feature is becoming more common across any decent article publisher.
SwiftUI String to Binding<String> error
After creating a new view with a @Binding string as follows
struct EditRival: View {
@Environment(\.presentationMode) var presentationMode
@EnvironmentObject var realmPerson: RealmPersons
@Binding var uid: String
The previews struct had an error with the var previews
Performance testing your Drupal website
Load testing verifies the system performance under the expected peak load. The peak load needs to set by a series of parameters that you have benchmarked targets. For example, these parameters could include:
Validating email in Swift or SwiftUI
I'm currently working on a project that requires login, register, forget password functionality in SwiftUI. As I'm developing the code, I came across a great resource for validating an email address with Regex:
Contact list showing known contacts and the contacts in my phone
Building a contact list using SwiftUI has many challenges.
One challenge is having multiple lists displayed on the one screen. For example, known contacts using your app against contacts on the phone. Initially, I tried the following code