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
•
The error message "Attempting to re-run cron while it is already running" in Drupal typically indicates that another instance of the cron job is still running when the system tries to start a new one. Cron is a process that performs various tasks for Drupal, such as indexing content, checking for updates, and performing other scheduled tasks.
Some potential causes and solutions for this issue
Long-Running Cron Jobs
If a cron job takes longer to complete than the interval between cron runs, it...
Andrew Fletcher
•
Loading the code in a platform - in this article, I'll be focusing on Android...
Andrew Fletcher
•
The challenge I was facing, I had written a script to scan barcodes and use...
Andrew Fletcher
•
It appears that the plugin or file path is not working how it used to be on...
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. Previously you have entered something like
.navigationTitle("Title")If you wanted to alter the font used for the navigation area, alter the init() in the view:
struct YourView: View {
// ... code ... //
init() {
// Use this if NavigationBarTitle is with large font
UINavigationBar.appearance().largeTitleTextAttributes = [.font : UIFont(name: "Georgia-Bold", size: 20)!]
}
...
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...
Andrew Fletcher
•
I attempted the run command and the response I had was succeeded, but then...
Andrew Fletcher
•
Working in Laravel, I needed to loop through an array and know whether the current loop was odd or even row. To do this add the expression to your Twig file:
{% set direction = loop.index0 is odd ? 'left' : 'right' %}In the call above, the variable direction is set to either left or right depending on the value of the position of the loop row (loop.index0). I then used the left or right value in a div class adding to a series of tailwind css definitions. Such...
Andrew Fletcher
•
Working with buttons
To begin, what is a button in SwiftUI?
struct MainView:...
Andrew Fletcher
•
Setting up the mail configuration in October CMS is a quick progress....
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...