Skip to main content
227
results
Andrew Fletcher
The issue of over 300 simultaneous database connections in the context of AWS and Drupal can have several potential causes. Here are some common factors to consider: Server Configuration Check your server configuration to ensure it can handle the expected number of simultaneous connections. This includes parameters like max_connections in your database server configuration. Traffic or Load Spike A sudden increase in traffic or load on your Drupal site can lead to more simultaneous database...
Andrew Fletcher
Finalising a deployment to Drupal 10 and reviewing the latest log...
Andrew Fletcher
The error message "Attempting to re-run cron while it is already running" in...
Andrew Fletcher
Lando is a development environment tool that makes it easier to set up and...
Andrew Fletcher
In Drupal Twig templates, you can set a variable like paragraph_parent to the...
Andrew Fletcher
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first need to extract the text from the PDF and then send it to the OpenAI API for summarisation.   Preparation   Set-up pip install python-dotenv langchain openai tiktoken pypdf pymupdf  Code The current code is on my Summaries GitHub page.   Elements Adjusting the parameters - you can adjust the max_tokens and temperature parameters in the summarize_with_openai function to control the length and...
Andrew Fletcher
The "keystore password was incorrect" error in keytool indicates that the...
Andrew Fletcher
In Vim, following is an outline of the vi(m) functions you can utilise whilst in...
Andrew Fletcher
In the Drupal Status report, I'm seeing the following message Not set This...
Andrew Fletcher
Create a Lando setup running Drupal 10. The command you provided appears to be a...
Andrew Fletcher
The os.makedirs(directory_path) function in Python can be used with both absolute and relative paths. Whether you should use an absolute or relative path depends on your specific use case and the location where you want to create the directory:   Absolute Path Use an absolute path when you want to specify the exact location in the file system, starting from the root directory (e.g., /path/to/new/directory). It ensures that the directory is created at the specified location, regardless of...
Andrew Fletcher
Permission error Traceback (most recent call last): 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....