I've always valued simplicity in all the code I write, and in every bit of infrastructure I maintain. As such I've always favoured monolithic software architecture. So why and how have I recently split out two microservices from our monolith?
With Mastodon 4.2.0 proper full text search has finally arrived. This post runs through the server requirements and setup of Elasticsearch for mastodon 4.2.x.
I had to increase Postgres' max_connections settings to resolve issues with my Mastodon instance.
You can use the CloudFlare API and a simple bash script on your Raspberry Pi, to use CloudFlare as a Dynamic DNS service.
Sharing a local development site over the internet is quite simple using a CloudFlare Tunnel. The Tunnel can even use your own domain, which looks much nicer and more professional, and makes it suitable even for production use.
Applying common sense, when aiming for 100 Lighthouse scores.
FediFetcher now has multi user support. This is great for admins of instances with a very small number of users, who want to run FediFetcher for several of their users.
FediFetcher can now backfill the profiles of anyone who is mentioned in your notifications.
mastodon_get_replies has always been a pain to both say and type, and also now only covers about 50% of the functionality of the script, so please meet FediFetcher!
My blog is run on omg.lol's weblog.lol service. In this blog post I want to show how I'm using a GitHub action and the weblog.lol API to manage my blog in Git, rather than through their web interface.
Since v3.0.0 of FediFetcher you can backfill remote accounts, after you have begun following them. This post explains how.
Disabling form buttons on load, and only enabling them when the form is valid, is poor UX. Validate the input when the user attempts to submit the form, and show error messages where relevant, instead.
Mastodon does not always pull responses to posts from other instances through to your own instance. This means that if you read a post from another server, you may not see all replies. This post provides a GitHub Action that can help push remote replies into your home instance.
This post explains a few options on testing your email setup, as well as for continuous monitoring, to ensure SPF, DKIM and DMARC are all configured correctly.
If you own a successful brand, some miscreants will eventually abuse your domain to send spam pretending to be from you. Make sure you configure SPF, DKIM and DMARC to protect your email brand.
If you have forked an open source project you sometimes want to apply changes from another fork to your own. This post shows how to merge branches from another fork using either GitHub or the command line.
Full-text search support on Mastodon is severely lacking. But you can either use google or install a patch on your own Mastodon instance to significantly improve your search experience.
Mastodon supports DeepL as well as LibreTranslate for translating posts. This post compares LibreTranslate and DeepL, and how they work with Mastodon.
Adding mastodon-powered comments to your blog - how to create a dependency free solution to add comments to your blog using the Mastodon API.
A composer package to use the OpenAI API to show AI-powered fixes for errors in your Laravel application.
Use the OpenAI API together with Laravel Ignition's Suggestions to show AI-powered fixes for errors in your Laravel application.
Removing unwanted content from your mastodon instance, that may have been pushed to your server through federated instances.
Dealing with money and multi-currencies in Laravel and SQL the easy way.
Using the URL API to modify a URL is both easier and more reliable than simple string manipulation.
Several optimisations and changes I've made to my single user mastodon instance.