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
42
results
Andrew Fletcher
•
Working from the bases that .DS_Store has not been added to your git repository, then you can add it to your .gitignore file.
touch .gitignoreIn the .gitignore file add the following
# Hide the DS_Store files
**/.DS_StoreHowever, if it's already there, then in Terminal you will need to write:
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatchFinally commit to repo
git commit -m "Remove .DS_Store"
git push origin...
Andrew Fletcher
•
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
•
Adding git tag to your actions.
The regular process that I work to is
git add...
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
•
Oh the treasure of a client coming to you with a site they have removed the previous dev on... treasure hunt. Not.
Anyway, gaining access to an old site, working through the errors I came across this deprecated code
Deprecated function: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in common_check_language() (line 306 of /path/to/file).
What has happened and options available
array_key_exists() became deprecated in...
Andrew Fletcher
•
If you edit a Drupal contrib module, the next time the module is updated those...
Andrew Fletcher
•
I installed Lando 3.6.2 and Laravel 9. When I visit the web page, I...
Andrew Fletcher
•
Changing git push from passphrase? There are several ways to tackle this...
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function:...
Andrew Fletcher
•
Running Docker
Dangerous word... I'm assuming that Docker is installed. Don't know how to check? Using Terminal (I prefer iTerm2), run the following command
docker -D info
The set-up
Go to your project directory, and create a docker folder and a “docker-compose.yml” file:
mkdir/Users/{your_name}/Sites/{your_directory}
cd /Users/{your_name}/Sites/{your_directory}
mkdir docker
cd docker
vim docker-compose.ymlCopy following code and add it in to the docker-compse.yml...
Andrew Fletcher
•
A recent attempt to run an update composer (regular activity for many of...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
A bug bear that I have had for a while with Drupal content is how come the...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...