Skip to main content

Best practices and methods on how to create a Drupal 10 patch

When working on Drupal projects, especially in a collaborative environment, it’s crucial to follow best practices for creating and managing patches. Patches are essential for contributing back to the community, applying quick fixes, or sharing custom changes with your team. In this article, we'll explore the recommended method for creating a Drupal 10 patch and discuss when it might be appropriate to use alternative approaches.

Troubleshooting PHP 8.3 mbstring issues on Ubuntu with Nginx

Maintaining a Drupal site is usually smooth sailing once the environment is properly set up. However, even in a stable environment, updates to modules can sometimes reveal underlying configuration issues that weren't apparent before. This was the case when I updated a contrib module on a Drupal 10.3 site, which suddenly started throwing errors related to the mbstring PHP extension.

 

Troubleshooting bash script errors - a guide to fixing line endings and hidden characters

If you’ve ever encountered strange errors while running a bash script, you’re not alone. Errors like : not found and Syntax error: end of file unexpected (expecting "then") can be particularly frustrating, especially when the script appears to be perfectly fine. This a situation that I had recently involving such errors and this article shows how I was able to resolve them, focusing on line endings and hidden characters.

Using Terminal shortcuts like a pro for efficient command-line navigation

Have you ever wanted to use Terminal with a more fluid style and increase your speed and efficiency? This article was inspired by watching a colleague navigate long lines of command navigation using only the arrow keys. While my pain threshold is high, seeing this during a group presentation was painful. It's time to sharpen your shortcuts for command-line navigation. Improving your understanding of Terminal can significantly boost your productivity as a developer.

How to efficiently use find and replace in VS Code

When it comes to text editing, Visual Studio Code (VS Code) is one of the most popular tools among developers. One of its powerful features is the Find and Replace function, which can save you countless hours of manual editing. In this article, we'll explore how to use this function to replace all spaces with a newline character, and then go a step further to find spaces followed by alphabetic characters (excluding numerics), and replace them with newlines.

 

Checking if a file exists using command line queries in Ubuntu with Nginx

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.

Efficiently managing large file archives in Linux: excluding directories with Zip

Managing large directories, especially those filled with a diverse mix of media such as documents and images, can quickly become cumbersome. In my latest project, dealing with a directory that totals a whopping 87GB, the need for efficient file compression and selective archiving became apparent. How can we streamline this process using the zip command, particularly when we want to exclude non-essential files and directories?

 

Understanding transaction control in MySQL: A guide to START TRANSACTION, ROLLBACK and COMMIT

Recently I came across this piece of gold when dealing with databases, particularly relational ones like MySQL, managing transactions efficiently is crucial to ensure data integrity and consistency. In MySQL, transactions are used to group several SQL commands into a single unit that either completely succeeds or completely fails, ensuring that a database remains in a consistent state.

Exploring historical memory usage monitoring with Sysstat

In the realm of system administration and monitoring, understanding memory usage trends is crucial for maintaining system health and performance. While tools like htop offer real-time insights into memory usage, they lack the capability to provide historical data. So, what if you need to analyze memory usage over the past 24 hours or even a week? Fear not, as Sysstat comes to the rescue with its powerful sar command.

 

Subscribe to iTerm2