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
24
results
Andrew Fletcher
•
By default the maximum file upload size is set to 2MB. It is not a Drupal issue, instead a php issue as upload_max_filesize is set in your php configuration (php.ini file). Therefore it is a server-side configuration. If you have access to the php configuration file, I would recommend to make the changes directly in it. Yet, on some occasions you cannot access the server configuration (on a shared hosting, for instance) and if you wish to alter some of your server...
Andrew Fletcher
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my...
Andrew Fletcher
•
The challenge I was facing, I had written a script to scan barcodes and use...
Andrew Fletcher
•
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS....
Andrew Fletcher
•
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...
Andrew Fletcher
•
How do you generate a .pem file from an existing .ppk key?
Is putty on your mac?
Check by running the command
puttygen -VWhich will generate a response similar to
puttygen: Release 0.76
Build platform: 64-bit Unix
Compiler: clang 12.0.5 (clang-1205.0.22.9)
Source commit: 1fd7baa7344bb....Don't have Putty, well easily fixed with homebrew.
brew install putty
Generate the key
We will use puttygen to generate the key.
puttygen key.ppk -O private-openssh -o key.pem
key.ppk
the...
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...