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
11
results
Andrew Fletcher
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my applications I need to run 8.1.x. How do you switch the current PHP version?
Current version
Check the current PHP version by executing the command
php -vResponse:
PHP 8.2.2 (cli) (built: Feb 5 2023 12:38:16) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.2, Copyright (c) Zend Technologies
with Zend OPcache v8.2.2, Copyright (c), by Zend Technologies
Unlink PHP
To change your PHP version, begin...
Andrew Fletcher
•
Tailwind CSS is a highly customisable framework that delivers developers the...
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes:...
Andrew Fletcher
•
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS....
Andrew Fletcher
•
How do you generate a .pem file from an existing .ppk key?
Is putty on your...
Andrew Fletcher
•
Creating a new account in Mail on OSX Big Sur (11.2) and complete the required information for:
Email
Username
Password
Account type: IMAP
Incoming mail server
Outgoing mail server
I receive a message "Unable to verify account name or password."
Note: before you follow these steps, ensure that you know / note down all of your account passwords. This is because the saved passwords will be deleted during this process.
The steps that worked for me:
Open the Keychain Access...
Andrew Fletcher
•
The magically descriptive error 401 Forbidden "message": "Access...
Andrew Fletcher
•
If you are like me you probably have searched for clues to and found little......
Andrew Fletcher
•
In Drupal 8.x hiding the subject line is a quick task.
In the admin area of your...
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 struggling... in particular assigning the correct user to the comment - this is how I achieved the correct outcome.
The outline below is for usage via Postman and DHC (Restlec Client)... once working here then testing done and ready to apply to your app or however you are using this.
Set up
Set accept to hal+json
sample:
POST request
url: http://example.com/entity/comment?_format=hal_json
Authorization Type: Basic {then...