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
36
results
Andrew Fletcher
•
phpcs issue in Visual Studio Code, I'm receiving this warning in VS Code:
phpcs: Unable to locate phpcs. Please add phpcs to your global path or use composer decency manager to install it in your project locally.
How to fix
You can install phpcs by using composer global command:
composer global require squizlabs/php_codesnifferThen in VS Code, go to
Click Code -> Preferences -> Settings
Select User Settings and locate 'PHP CodeSniffer', or in the Search settings enter...
Andrew Fletcher
•
In Xcode attempting to build or run an app, I receiving a framework...
Andrew Fletcher
•
Working through an app project I inherited using Ionic, Angular and ngx-leaflet...
Andrew Fletcher
•
How can you find out if the Cordova plugins have been loaded?
Begin by running...
Andrew Fletcher
•
While loading an ionic project, in Xcode when performing a run routine I had the...
Andrew Fletcher
•
Updating the Cordova plugins... there are two locations to manage the plugins
config.xml
package.json
I was finding some Cordova functionality was not coming through... through further investigation the two files above had conflicting data.
Review the data
package.json
"cordova-browser": "6.0.0",
"cordova-plugin-advanced-http": "3.3.1",
"cordova-plugin-android-permissions": "^1.1.3",
"cordova-plugin-device": "2.1.0",
"cordova-plugin-file": "^7.0.0",
...
Andrew Fletcher
•
The issue
Text through the app is being rendered as
<p>Depletion...
Andrew Fletcher
•
If you have upgraded Ionic to 5 or 6 you will have experienced that the padding...
Andrew Fletcher
•
How do you get the version of ionic framework?
ionic versionor
ionic -vThe...
Andrew Fletcher
•
I recently received an ionic app that hasn't been updated for quite some time....
Andrew Fletcher
•
A recent attempt to run an update composer (regular activity for many of us), I had a memory limit issue. This was surprising because the memory setting via Plesk is set to 2G. Yet through Terminal it was showing only 128MB. What gives??
The error I was seeing:
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/lib64/plesk-9.0/composer.phar/src/Composer/DependencyResolver/Pool.php on line...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
Setting up a new project in Docker and VS Code.
Using Terminal, go to your...
Andrew Fletcher
•
Core Data - customising our data model
When you are using Core Data, and let's...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...