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
55
results
Andrew Fletcher
•
When running python openai command, I was greeted with
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (5.2.0) doesn't match a supported version!This is because of different requests module installed by the OS and the python dependencies for your local installation.
Package Version
----------------------- --------------------
chardet 5.2.0
urllib3 1.25.8Usually this issue can be solved...
Andrew Fletcher
•
Python3
Error
ImportError: cannot import name 'soft_unicode' from 'markupsafe'...
Andrew Fletcher
•
Logging into the server, and there are packages to be updated. You know...
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
•
Post a NetSkope update, composer would fail when running any command that...
Andrew Fletcher
•
I need to generate a patch and then apply automatically to my Drupal installation.
Current path to the file: web/core/modules/views/src/Plugin/views/argument/
Orignal filename: ArgumentPluginBase.php
Adjusted filename: ArgumentPluginBase-adjusted.php
Create a Patch
A patch is used to create or override changes in another file. The command to create a patch is:
diff -u {original filename} {changed filename} > {patchfile}.patchdiff -u...
Andrew Fletcher
•
Post creating a new branch in the repo, next step was to run the checkout...
Andrew Fletcher
•
How to set the Private file path in Drupal using the following steps:
Create a...
Andrew Fletcher
•
This issue
I have a folder with about 10,000 files in it. I want to scan...
Andrew Fletcher
•
Using Homebrew for speed tests...
I'm using Speediest CLI - for more details go...
Andrew Fletcher
•
I'm in an environment where the default branch is staging and I'm attempting to run a git merge. However, in actioning this command, I'm been greeted with the following response 'not something we can merge'
❯ git merge origin/{branch}
merge: origin/{branch} - not something we can mergeTo resolve this, first I attempted to do a git checkout to the branch
But this was swiftly meet with "did not match any file(s) known to git"
git checkout {branch}
error: pathspec '{branch}' did not match...
Andrew Fletcher
•
How to count the number of files in a directory. At some point you'll have...
Andrew Fletcher
•
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
•
Recently I have been investigating one of my Linux server's speed using the...
Andrew Fletcher
•
I had generated a backup of key directories on the server - see Create a...