Posts

Showing posts from March, 2025

A Triumph Over Adversity: The WordPress IONOS Hosting User’s Guide to Redirecting .aspx Files

Image
Redirecting a URL should be straightforward, correct? That’s what we thought, too. However, as we discovered, redirecting a specific .aspx path to an external URL in a WordPress site hosted on IONOS proved to be more of a trial by fire than anticipated. This article describes the frustrating—but ultimately successful—journey of making the redirect work. The Goal We wanted a basic redirect: https://example.com/stub/example.aspx to send visitors to: https://www.foobar.com/stub/example.aspx That’s it. A one-line change, right? Well… no. Attempt 1: The Obvious .htaccess Redirect We started with the simplest approach: Redirect 301 /stub/example.aspx https://www.foobar.com/stub/example.aspx Placed neatly above the WordPress block in .htaccess. Result: Didn’t work. The browser tried to download the .aspx file instead. Attempt 2: mod_rewrite to the Rescue We escalated to Apache’s rewrite rules: RewriteEngi...

How to implement Job Queuing in Spring Boot with RabbitMQ

Image
RabbitMQ’s Springboot usage code and RabbitMQ Admin Panel side by side While working on a microservice in my current organization I noticed that I had the need to do some very large jobs in queues. This was because the jobs that I was attempting to perform were sometimes taking a long time and blocking the system. Hence, to increase its responsiveness and to ensure future scalability I decided that I needed to implement a queueing system. So, I looked at the web and decided on RabbitMQ because of its free and open-source nature and also because of its easy integration with Linux since ultimately, I host my microservice on Nginx on Ubuntu. So, here are some steps which I followed and which you can also roughly follow in order to implement a queuing system. Installing RabbitMQ on Ubuntu The following steps will be able to install RabbitMQ: 1.      Update the package list: sudo apt update -y 2.      Install Erlang (this is required for RabbitMQ): sudo ap...

How to Use Google Apps Script to Automate Google Sheets

Image
Google Apps Script (GAS) is a powerful tool for automating, customizing, and enhancing Google Sheets.  Recently, I investigated various automation techniques using GAS, and I am sharing a step-by-step guide to help others use it for their own projects.Whether you are a developer or new to scripting, this guide will walk you through basic automation to UI enhancements. Why Use Google Apps Script? Automate repetitive tasks in Google Sheets Improve data processing efficiency Create custom functions and triggers Enhance user experience with UI elements like modals and loaders Getting Started: Writing Your First Google Apps Script How to Access Google Apps Script Open  Google Sheets . Click on  Extensions > Apps Script . The above command opens the  apps script editor , where you can start coding. Writing Your First Script Try this simple script to write “Hello, World!” into a cell: function writeHelloWorld() { var sheet = Spread...