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
190
results
Andrew Fletcher
•
Create a Lando setup running Drupal 10.
The command you provided appears to be a Lando configuration command for initialising a new Lando environment for a Drupal 10 project. Following is a breakdown of the command and what it does:
# Initialize a new lando drupal using a vanilla Drupal 10 installation
lando init \
--source remote \
--remote-url https://www.drupal.org/download-latest/tar.gz \
--remote-options="--strip-components 1" \
--recipe drupal10 \
--webroot web \
--name...
Andrew Fletcher
•
Permission error
Traceback (most recent call last):
File...
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
•
Ubuntu 20.04 comes with Python 3.8 installed. If you run the update script, you'll be informed that the latest version of Python is running. But here is the kicker, the actual latest version is currently 3.11.6... see https://www.python.org/downloads/source/
Use the following commands to download the Python 3.11.6 source code
Download the latest version
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
Extract archive
Once the download is...
Andrew Fletcher
•
Update Drupal to 10.1.x and I'm receiving the following...
Andrew Fletcher
•
Adding an SSL wildcard certificate to an Ubuntu server involves several steps....
Andrew Fletcher
•
When logging into Ubuntu server you will see a response similar to
Welcome to...
Andrew Fletcher
•
Forcing https and www or non-www is a process that I was a custom to through...
Andrew Fletcher
•
While the default version on Ubuntu 20.04 for Python is 3.8, I've added Python 3.11.5 (latest version).
Errors
GPTSimpleVectorIndex is deprecated
Attempting to run python3.11 model-ai.py and I'm seeing the following response
/home/{user}/.local/lib/python3.11/site-packages/langchain/__init__.py:40: UserWarning: Importing BasePromptTemplate from langchain root module is no longer supported.
warnings.warn(
/home/{user}/.local/lib/python3.11/site-packages/langchain/__init__.py:40: UserWarning:...
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
•
Update Ubuntu 20.04
To begin update the server using the command
sudo apt update...
Andrew Fletcher
•
Install the CKAN package
Begin by cleaning up your server environment....