46
results
Andrew Fletcher
•
On a server directory with over 100,000 PDF files, I needed to verify the existence of specific documents. Whether there are a few hundred or whatever the number of files, this article explores the practical use of command-line tools to quickly ascertain whether a file is present. In the area of server management or application development, especially on systems like Ubuntu equipped with Nginx, it's crucial to perform routine checks to ensure that all necessary files are in place. Whether it's...
Andrew Fletcher
•
When attempting to install python libraries on my OSX
pip3 install pandas,...
Andrew Fletcher
•
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial...
Andrew Fletcher
•
In many terminal text editors, you use find command as reference in Terminal...
Andrew Fletcher
•
The "Too many open files" error in Python typically occurs when your program has...
Andrew Fletcher
•
You can use the pip list --outdated command to view a list of installed Python packages that have newer versions available. This command will show you which packages are outdated and can be updated to the latest versions.
Here's how you can use it
pip list --outdatedThis command will display a list of installed packages along with their current version and the latest version available. If there is an update available for a package, it will be listed in the output.
To update a specific package,...
Andrew Fletcher
•
In an environment that is running
Ubuntu 20.02
Nginx
Solr
The default...
Andrew Fletcher
•
Snapshot of the error
File...
Andrew Fletcher
•
To begin, note that Lando is often used for web development and it may not be...
Andrew Fletcher
•
Finalising a deployment to Drupal 10 and reviewing the latest log...
Andrew Fletcher
•
Lando is a development environment tool that makes it easier to set up and manage local development environments for web applications. To use Python within a Lando-based development environment, you can follow these general steps:
Create a Lando Configuration File
Make sure you have a Lando configuration file (e.g., .lando.yml) in your project's root directory. If you don't have one, you can create it. Here's a basic example:
name: py-ai
recipe: drupal10
config:
webroot: web
php:...
Andrew Fletcher
•
The error message "RuntimeError: Directory 'static/' does not exist" typically...
Andrew Fletcher
•
It seems like you're using the CharacterTextSplitter class from the tiktoken...
Andrew Fletcher
•
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first...
Andrew Fletcher
•
The os.makedirs(directory_path) function in Python can be used with both...