developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
34
results
Andrew Fletcher
•
Setting up the mail configuration in October CMS is a quick progress. Depending on which mail method you use there are up to eight fields to complete:
Sender name;
Sender email;
Mail method: (PHP mail, Sendmail, SMTP, etc...). I elected to go with SMTP;
SMTP address - such as smtp.your-domain.com or mail.your-domain.com;
SMTP port - 587;
SMTP encryption protocol - TLS or SSL;
Authorization required - boolean response;
Username - email account; and
Password -...
Andrew Fletcher
•
To connect to your CPanel hosted server via SSH OSX, please follow...
Andrew Fletcher
•
The purple warning notification of annoyance recently came my way! I...
Andrew Fletcher
•
I'm currently working on a project that requires login, register, forget...
Andrew Fletcher
•
iOS localization on the fly
If you have added languages to your app......
Andrew Fletcher
•
Common commands
Themes and plugins have similar command lines. So rather than note them individually and miss clarity, the reference {type} can be replaced with the term plugin or theme.
install
php artisan {type}:install AuthorName.PluginName
list
php artisan {type}:list
refresh plugins
php artisan plugin:refresh AuthorName.PluginName
Utility references
Clear cache
php artisan cache:clear
Clear config
php artisan config:clear
Restart...
Andrew Fletcher
•
Updating Realm and RealmSwift from 5.5.x to 10.0.0 brought in the following...
Andrew Fletcher
•
At times while developing in October CMS, you will perform a step that kills the...
Andrew Fletcher
•
Using October CMS to migrate your site and update the tables with the plugins...
Andrew Fletcher
•
After creating a new view with a @Binding string as follows
struct EditRival:...
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
•
Today while in Terminal, I ran a regular script pod update. However, this...
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...