developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
491
results
Andrew Fletcher
•
Building a resilient web server
Early in the year, we encountered a number of challenges, one of the most disruptive was a sustained wave of automated attacks hammering several of the web servers we manage. The volume of traffic overwhelmed server resources, slowing websites to a crawl and frequently triggering 504 Gateway Timeout errors. With uptime and user experience at risk, we needed a robust solution to detect and block malicious traffic in real time, before it could do further...
Andrew Fletcher
•
Across every industry, the operational risks of cyber threats are escalating....
Andrew Fletcher
•
When working with Git, the .gitignore file plays a critical role in controlling...
Andrew Fletcher
•
Upgrading to Drupal 10.4+ you might have noticed a warning in their code editor...
Andrew Fletcher
•
The upgrade from PHP 8.3.14 to PHP 8.4.4 presents challenges for Drupal 10.4...
Andrew Fletcher
•
Introduction
Data extraction and filtering are crucial for developers working with large research datasets. Whether you're working on government archives, industry reports, or academic research projects, extracting meaningful insights efficiently can be challenging.
I'm going to explore how we tackled a problem—filtering and extracting research project records based on species names from structured JSON data. We started with regular expressions (regex), ran into limitations, and...
Andrew Fletcher
•
Duplicate records in Drupal can cause significant issues, particularly when they...
Andrew Fletcher
•
When working on Drupal migrations, developers often assume that adding a new...
Andrew Fletcher
•
When deploying a Python project from a User Acceptance Testing (UAT) environment...
Andrew Fletcher
•
The Drupal theme configuration has undergone recent changes made to the Webpack...
Andrew Fletcher
•
Accessibility is a fundamental aspect that ensures experiences are inclusive for all users, including those relying on assistive technologies. One crucial accessibility feature is the use of `aria-label` attributes to provide contextual information for form inputs. In Drupal, we can dynamically set `aria-label` attributes using Twig within the `input.html.twig` template.
Why aria-label is important
Screen readers use `aria-label` to announce the purpose of form elements to users who...
Andrew Fletcher
•
Occasionally, a Drupal site may display a warning about a module being "Missing...
Andrew Fletcher
•
When troubleshooting network issues or configuring devices, knowing your IP...
Andrew Fletcher
•
DDEV has become a popular tool for local web development, offering a streamlined...
Andrew Fletcher
•
The release of Drupal 10.4.0 sees stricter validation rules being applied to...