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
26
results
Andrew Fletcher
•
If the Android app icon is not changing from the default icon (in my situation this was the Capacitor icon), here are some steps to troubleshoot and resolve the issue:
Check the Icon Files
Ensure that you have provided the correct icon files in the appropriate directory. In a Capacitor project, the Android app icon should be placed in the res directory under various density-specific folders (e.g., mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi, etc.).
Verify File Names
Check that the icon...
Andrew Fletcher
•
Update Ubuntu 20.04
To begin update the server using the command
sudo apt update...
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
•
Android Studio error
Installation did not succeed.
The application could not be...
Andrew Fletcher
•
Android Studio error
error: package android.support.v4.content does not existThis is a problem with plugins using old Android support dependencies instead of the AndroidX equivalent. As it's a dependency issue, to resolve add jetifier. I know yet another package...
npm install jetifier
npx jetify
npx cap sync
Tools
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.0
...
Andrew Fletcher
•
Android Studio build errors
Build failed error: cannot find symbol if...
Andrew Fletcher
•
Initialise your Capacitor config
To initialise Capacitor use the CLI...
Andrew Fletcher
•
Run the NPX commands to update the app
npm run build && npx cap syncRun...
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...