Skip to main content
58
results
Andrew Fletcher
What to do when you want to filter a Realm object, using NSPredicate in SwiftUI or in Swift.   Applying the filter to a simple condition in one line let exists = realm.objects(ExampleObj.self).filter(NSPredicate(format: "uid = %ld", uid))Creating a variable predicate that will be injected as a condition let predicate = NSPredicate(format: "uid = %ld AND nid = %ld",uid,nid) let exists = realm.objects(ExampleObj.self).filter(predicate)Finally, managing the predicate as an array by...
Andrew Fletcher
I had an instance where I needed to move content from a plist to the server...
Andrew Fletcher
Registering a user via REST is an important process particularly when the...
Andrew Fletcher
I'm going to take you on a journey about adding a gradient tint to a...
Andrew Fletcher
Creating a new SwiftUI project is a quick process.  There are already...
Andrew Fletcher
Overview To update ejabberd you need to remove it, then re-install with the latest version.  However, do check for database changes before initiating this process from the ejabberd documentation site (https://docs.ejabberd.im/admin/upgrade/). Preparation Before you begin this process you first need to create a copy of the config file.  Not sure where this file is located?  Then in shell run  ejabberdctl helpWhen I run this command the output received is  Commands...
Andrew Fletcher
The starting point is to read through and follow the notes outlined on the...
Andrew Fletcher
To add Erlang repository that also includes the public key for verifying signed...
Andrew Fletcher
Adding a pem file to secure ejabbered on the server for chat connection. Getting...
Andrew Fletcher
To access the ejabberd log files, I found them located at the following...
Andrew Fletcher
While I have posted an article about how to POST an image using REST in Drupal 8... the journey there can be slow.  Crawling through the errors to eventually spot the missing link.  For me the how to is as important as the solution. On the journey I did receive the following 404 Not Found error: GuzzleHttp\Exception\ClientException: Client error: `GET https://yourdomain.com/sites/default/files/pictures/imagename01.jpg` resulted in a `404 Not Found` response: <!DOCTYPE...
Andrew Fletcher
You have been working hard on getting comments being added (POST) through REST...
Andrew Fletcher
For others that have spent countless hours getting this to work and are...