Beginner guides.
No background assumed. What a database, a domain or an environment variable actually is, and how to get an app you built with AI online and keep it there.
511 posts · page 11 of 21
"duplicate key value violates unique constraint": Causes and Fixes
Postgres refused an insert because a value that must be unique already exists. The two very different cases — a real duplicate (like an email that's taken) and an out-of-sync ID sequence after importing data — and how to fix each, including ON CONFLICT and resetting sequences.
Dockerfile Explained: Every Line of a Simple Dockerfile
A Dockerfile is the recipe Docker follows to build an image. A line-by-line walkthrough of a real Dockerfile — FROM, WORKDIR, COPY, RUN, ENV, EXPOSE, CMD — why the order matters for caching, .dockerignore, and the beginner mistakes that make images slow, huge or insecure.
Docker vs Docker Compose: What's the Difference?
Docker runs individual containers; Docker Compose describes and runs a group of containers that work together — your app, its database and a cache — from one YAML file. How they relate, the same setup with and without Compose, and the commands you'll use.
Docker "Port Is Already Allocated": How to Find and Free the Port
Docker can't publish a container's port because something on your machine already uses it — often another container, a local Postgres or a dev server. How to find what's using the port on Mac, Linux and Windows, stop it, or simply map the container to a different port.
Docker "Permission Denied While Trying to Connect to the Docker Daemon Socket": Fix
Your user isn't allowed to talk to Docker's socket at /var/run/docker.sock. The quick fix (add yourself to the docker group), why that's effectively root access, the safer rootless alternative, and the other causes: Docker not running, Docker Desktop, WSL and CI.
Docker Image vs Container: What's the Difference?
An image is a read-only template; a container is a running instance of it. The difference explained with analogies and commands, what happens to files when a container is removed, why data belongs in volumes, and how tags, registries and layers fit in.
Docker Commands Cheat Sheet: The 40 You'll Actually Use
A practical Docker cheat sheet: running and stopping containers, viewing logs, getting a shell inside, building and tagging images, volumes, networks, Docker Compose, and cleaning up disk space — with what each command does in plain English.
DNS_PROBE_FINISHED_NXDOMAIN: What It Means and How to Fix It
NXDOMAIN means DNS says the domain name doesn't exist. Fixes for visitors (typos, DNS cache, changing DNS servers) and for site owners (missing records, nameserver changes, expired domains, propagation), with the commands to check what DNS is really saying.
How to Deploy a React App (Vite): Every Option Explained
A Vite React app builds into static files, so you can host it almost anywhere. How to build it, deploy to Cloudflare, Netlify, Vercel or GitHub Pages, serve it from your own server with Nginx or Caddy, fix 404s on refresh and blank pages, and handle environment variables and an API.
How to Deploy a Node.js App to a VPS, Step by Step
From an empty Ubuntu server to your Node.js app running on your own domain with HTTPS: create a user, install Node, clone and build, keep it running with PM2 or systemd, put Caddy or Nginx in front, and set up redeploys.
How to Deploy a Flask App to Production
Flask's built-in server is for development only. How to deploy a Flask app properly: the app factory and config from environment variables, Gunicorn, a reverse proxy with HTTPS, running it as a systemd service, a Docker option, and the mistakes that cause 502s.
How to Deploy an Express.js App to Production
Getting an Express API from localhost to a real server: production settings, listening on PORT, trust proxy, security middleware, a process manager, a reverse proxy with HTTPS, Docker as an option, and the checks that prevent the usual 502s and crashes.
How to Deploy a Django App to Production (Step by Step)
Taking a Django project from runserver to production: settings for DEBUG, ALLOWED_HOSTS and secrets, Postgres, collectstatic and WhiteNoise, Gunicorn behind Nginx or Caddy, systemd, migrations on deploy, HTTPS, and the checklist Django itself gives you.
Dependabot Explained: Automatic Security and Version Updates on GitHub
Dependabot watches your project's dependencies, alerts you to known vulnerabilities and opens pull requests to update them. The three features (alerts, security updates, version updates), a dependabot.yml example with grouping and cooldowns, and how to handle the PRs without drowning.
How to Delete a Git Branch (Local and Remote)
The commands to delete a Git branch on your computer and on GitHub: git branch -d vs -D, git push origin --delete, cleaning up stale remote-tracking branches with fetch --prune, deleting merged branches in bulk, and recovering a branch you deleted by mistake.
Database Relationships Explained: One-to-One, One-to-Many, Many-to-Many
How tables connect in a relational database: one-to-many with a foreign key, many-to-many with a join table, and one-to-one. With SQL for each, how to query them with joins, how ORMs like Prisma express them, and the design mistakes AI tools commonly make.
Cursor vs GitHub Copilot: Which AI Coding Assistant Is Better for You?
Cursor is a standalone AI code editor; GitHub Copilot is an AI assistant that plugs into the editor you already use and into GitHub itself. How they compare on autocomplete, agents, models, GitHub integration and pricing — and how to pick.
Cursor Rules Explained: .cursor/rules, AGENTS.md, and CLAUDE.md
Rules files tell an AI coding tool how your project works so you don't repeat yourself every chat. How Cursor's project rules work, the rule types, what to put in them, how they compare with AGENTS.md and CLAUDE.md, and how to share one set of rules across tools.
z-index Not Working? The Real Reasons (Stacking Contexts Explained)
Set z-index: 9999 and the element is still behind something? z-index only works on positioned elements and only within its stacking context. The four common causes, how to spot a stacking context, and the fixes — including portals for modals and dropdowns.
rem vs em vs px in CSS: Which Unit Should You Use?
px is fixed, rem is relative to the root font size, em is relative to the current element's font size. What each unit means, why rem is the safe default for font sizes and spacing, where em and px still make sense, and when to reach for %, vw, vh and dvh.
CSS Position Explained: static, relative, absolute, fixed and sticky
The five CSS position values and what each does: static (normal flow), relative (nudge and anchor), absolute (place inside the nearest positioned ancestor), fixed (stick to the screen) and sticky (stick while scrolling). With examples and the reasons sticky and absolute 'don't work'.
Flexbox vs Grid: Which CSS Layout Should You Use?
Flexbox lays things out in one direction — a row or a column. Grid lays things out in two — rows and columns at once. When to use each, the handful of properties that do most of the work, and the Tailwind classes you'll see in AI-generated code.
How Much Does It Cost to Build an App in 2026?
The real cost of building an app depends far more on how you build it than on the idea. Realistic ranges for building with AI yourself, freelancers, agencies and in-house teams, the running costs most estimates leave out, and how to keep the first version cheap.
Coolify vs Dokploy: Self-Hosted PaaS Compared
Coolify and Dokploy turn your own VPS into a Heroku- or Vercel-like platform: push to Git, get a deploy with HTTPS, databases and backups. How they compare on features, architecture, multi-server support and maturity — and what you still have to look after yourself.