Skip to content

Category

Web Application Development

Web application development: choosing a tech stack, React vs Angular, custom web apps for business growth and how AI is changing web development.

Four steps for a Git detached HEAD: check where HEAD points with git status and git branch --contains HEAD, save new commits with git switch -c before leaving, rescue commits after leaving with git reflog and git branch, and finish or abort a stopped rebase or bisect

11/3/2026

How to Fix Git Detached HEAD State

A fleet-app hotfix vanished after a developer committed on an old release tag and switched back to main. Why HEAD detaches, how to keep those commits, and how git reflog brings them back.

By Muhammad Wilayat Shah

Read
Four steps to fix certbot certificate renewal failures: run certbot renew --dry-run, read the Type and Detail lines for 404, 403, connection refused or port bind errors, fix that layer in the nginx location, webroot, port 80 or DNS, then reload nginx with a renew hook and monitor the served expiry date

11/3/2026

How to Fix Certbot Certificate Renewal Failures

After we moved a portal's front end to Next.js behind nginx, every certbot renewal quietly failed with a 404 until the certificate had a week left. Here is how I read the dry-run output and fix each cause.

By Muhammad Wilayat Shah

Read
How to Fix Nginx Permission Denied Errors

11/3/2026

How to Fix Nginx Permission Denied Errors

Nginx permission denied (13) causing 403 or 502 errors? Find the blocked path with namei and fix ownership, directory modes, PHP-FPM sockets and SELinux.

By Muhammad Wilayat Shah

Read
Four steps to fix a failed Docker build: rerun with --progress=plain, read the failing step and the Dockerfile line marked with arrows, fix the cause such as the build context, lockfile, missing tool or image tag, then verify with --no-cache and by running the image

11/2/2026

Docker Build Failed: Common Causes and Solutions

A one-line .dockerignore change broke our release build with failed to compute cache key. Here is how I find the failing step in a Docker build and fix each common cause, with real BuildKit output.

By Muhammad Wilayat Shah

Read
Four steps for a rejected Git push: fetch and compare HEAD..origin/main with origin/main..HEAD, integrate a shared branch with git pull --rebase or merge, use push --force-with-lease --force-if-includes only on your own rewritten branch, and open a pull request when the remote rejects a protected branch

11/2/2026

How to Fix Git Push Rejected Non-Fast-Forward

The night before an ERP demo a teammate pushed first and my push was rejected. What fetch first, non-fast-forward, stale info and remote rejected each mean, and the safe fix for each.

By Muhammad Wilayat Shah

Read