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
•
Update Ubuntu 20.04
To begin update the server using the command
sudo apt update && sudo apt upgrade -yFor more details about this process see How To Update All Packages Linux.
PHP version
Check the current PHP version using
php -vThe response I had was
PHP 7.4.3 (cli) (built: Nov 2 2022 09:53:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
Install...
Andrew Fletcher
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my...
Andrew Fletcher
•
An approach to generating a backup server is using a shell script. A...
Andrew Fletcher
•
It appears that the plugin or file path is not working how it used to be on...
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes:...
Andrew Fletcher
•
In this instance, I'll check the beginning of the string. I want to focus on the href's that start with /node/. Which has been added using the variable $catchPhrase.
Using the Drupal service path_alias to return the node.nid as follows:
/**
* Load the node nid from the URL alias.
*
* @param string $url URL string.
*
* @return any
*/
public function getNodeNidFromAlias($url, $phrase)
{
// Default values.
$nid = null;
...
Andrew Fletcher
•
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
•
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
•
phpcs issue in Visual Studio Code, I'm receiving this warning in VS...
Andrew Fletcher
•
Had the situation where you are running composer however, the scripts stops with...
Andrew Fletcher
•
This article references some of the common commands via CLI (command-line interface) in running a Cordova app.
Platforms
Platforms are the environment(s) that you want to run your app on. We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json files.
To add a platform use the following command:
cordova platform add {platform}Therefore, to add ios and android run:
cordova platform add ios
cordova platform add androidTo get a list...
Andrew Fletcher
•
How can you find out if the Cordova plugins have been loaded?
Begin by running...
Andrew Fletcher
•
Updating the Cordova plugins... there are two locations to manage the...
Andrew Fletcher
•
Oh the treasure of a client coming to you with a site they have removed the...
Andrew Fletcher
•
I installed Lando 3.6.2 and Laravel 9. When I visit the web page, I...