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
236
results
Andrew Fletcher
•
Permission error
Traceback (most recent call last):
File "/var/www/html/open-ai/summarise-ai.py", line 144, in <module>
getfiles()
File "/var/www/html/open-ai/summarise-ai.py", line 26, in getfiles
summarise(filename)
File "/var/www/html/open-ai/summarise-ai.py", line 105, in summarise
savedata(filename, refine_outputs['output_text'])
File "/var/www/html/open-ai/summarise-ai.py", line 118, in savedata
with open(file_name, 'w') as json_file:
...
Andrew Fletcher
•
You can move a file from one directory to another in Python using the shutil...
Andrew Fletcher
•
In Drupal, the Watchdog module (or the logging system) is responsible for...
Andrew Fletcher
•
To set an environment variable on Ubuntu, can be achieved via a few options....
Andrew Fletcher
•
Whilst installing Python 3.11.6 and running the command 'sudo make altinstall',...
Andrew Fletcher
•
Visual Studio Code (VS Code) allows you to manage extensions using the VS Code Command Line Interface (CLI) called code. With the code CLI, you can install, list, uninstall, and manage extensions from the command line.
To check you have the code prompt running, run
code --versionResponse you're looking for is
1.83.0
d3a019177ff8833cf320e334265dfea540098a3a
arm64If not, to install, in VS Code press command + shift + p to open the command palette, then type "install code", click Shell...
Andrew Fletcher
•
Update Drupal to 10.1.x and I'm receiving the following...
Andrew Fletcher
•
A summary of Node package commands
Short cut commands
npm install...
Andrew Fletcher
•
Set up your server
Begin by cleaning up your server environment. Do...
Andrew Fletcher
•
Logging into the server, and there are packages to be updated. You know...
Andrew Fletcher
•
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously delivered the following error
fatal: could not create work tree dir '{project}': Permission deniedMy initial thought was the error due to server permission... being sudo. This was tested by running the command
sudo git clone git@bitbucket.{username}/{repo}.git
Which generated the error
Cloning into 'repo'...
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make...
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
•
By default the maximum file upload size is set to 2MB. It is not a...
Andrew Fletcher
•
Twig error
Twig\Error\SyntaxError: Unknown "filter" tag. in...