Notes, fixes and guides.
Sixteen years of working notes — Linux and networking, Django and Laravel deployment, SwiftUI, AWS. Written down mostly so I can find them again.
wp cache flush doesn’t flush what your site is actually serving
Three times in one week I changed something on this site, verified the change, and watched the old version keep going out. Each time the change was correct. Each time a different cache was holding it — and the command I used to check was quietly testing a layer that wasn't the problem.
edge-tts won’t give you WordBoundary events until you ask
One keyword argument, and it's keyword-only, and it's not in most of the tutorials — and then two things about ASS that cost me considerably longer than the keyword did.
Never run django.template.Template() on HTML you didn’t write
A single stored record took an endpoint down for a week. It contained valid, working markup — for a different template language. Django compiled it anyway, because that is what you asked it to do.
Fix Gunicorn’s TimeoutError: [Errno 110] Connection timed out in sock.sendall()
Your view already finished. The worker got stuck handing the response over - and raising --timeout, the usual first move, makes it last longer instead of fixing it.
SwiftUI: Create a Custom Navigation Bar
In this article we are not customizing a navigation view or a navigation stack. We are simply creating a custom View to be used as a navigation bar.
How to Use msmtp with PHP’s mail() Function to Send Email
In this guide, let's explore how to set up PHP to use msmtp, a lightweight SMTP client, as its MTA.
How To Deploy a Django project on an Ubuntu server with Nginx
Here's a general outline of How to Deploy a Django project on an Ubuntu server with Nginx: Server Setup: Start by setting up an Ubuntu server. SSH into…
How To Mount an AWS S3 bucket on an Ubuntu Server
To mount an AWS S3 bucket on Ubuntu, you can use a tool called "s3fs." S3fs allows you to access your AWS S3 bucket as if it were…
How To Mount a Remote hard drive on an Ubuntu server
If you want to mount a remote hard drive on an AWS Ubuntu instance, you can use the SSHFS (SSH File System) utility. SSHFS allows you to mount…
WordPress: How to Fix the “Missing a temporary folder” Error
The "Missing a temporary folder" error typically stems from incorrect server configurations. When WordPress attempts to upload files or carry out temporary operations, it requires access to a temporary folder.
Stripe Fee Calculator and Formula with custom rates
Stripe Fee Calculator and Formula with custom rates. To calculate Stripe fees for a transaction, you can use the following formula: Total Fee = (Transaction Amount * Fee Percentage) + Fixed Fee. To calculate the amount to ask for with the stripe fee included, you can use the following formula: Ask For = (Transaction Amount + Fixed Fee) / (1 - (Fee Percentage / 100)).
Find the expiry of a Certificate that was used to sign an .ipa App file
Extract the ipa file: $ unzip -q App.ipa Extract Certificates: $ codesign -d --extract-certificates Payload/*.app $ openssl x509 -inform DER -in codesign0 -out codesign0.pem $ openssl x509 -inform…