RSS feed
Subscribe in your feed reader to get new posts as they’re published.
Articles in this feed
- PostgreSQL row-level security for reads and writes
See how grants and row policies work together, from filtering reads to checking the row an update would save.
- Whose permissions does a PostgreSQL view use?
Compare an ordinary view and a security invoker view to see whose table privileges and row policies apply. Then expose just two columns to support.
- Idempotent inserts in PostgreSQL
Use a unique key and ON CONFLICT to deduplicate retries. See what the app can return after a lost reply or a concurrent insert.
- The transactional outbox in PostgreSQL
Commit application data and a queued job together so the worker can find pending work after a crash, restart or missed notification.
- Partial indexes for PostgreSQL job queues
See when a partial index can save work in a job queue, using two query plans and the position of the first pending job.
- How Postgres wakes a worker with LISTEN and NOTIFY
Use three database sessions to see when PostgreSQL delivers a notification, what two listeners receive, and how a worker recovers jobs on reconnect.
- Wait, you can put functions in Postgres?
Write a PostgreSQL function and call it with SELECT. Follow a job queue example to see what happens when two workers call it together.
- What Happens to the Frontend When Agents Use the Web?
Browser Run lets artificial intelligence agents operate the web we already have. WebMCP gives websites another option: expose their actions directly.
- How Tor Works, from the First Relay to an Onion Service
Follow a request through Tor, then see what changes for an onion service, a blocked connection, and an observer watching the network.
- What a Tor Bridge Changes
A bridge changes the relay the client contacts first. A pluggable transport changes what that first connection looks like.
- How Tor Finds an Onion Service
An onion address gives Tor the service's identity. A rotating directory lookup gives it a way to send the first message.
- What a Tor Circuit Actually Carries
Follow a stream to example.com, from the first relay cell to the separate connection the exit opens to the site.
- How Tor Verifies Its First Network Map
A fresh Tor client can download the list of relays from a mirror and verify it against identities that came with the software.
- How Two Tor Circuits Meet at a Rendezvous
Follow the introduction, the matching cookie and the handshake that lets a Tor client and an onion service exchange data.
- Why Tor Picks the Exit Before the Guard
A new Tor exit circuit is chosen in one order and built in another. Follow a request to port 443 to see why.
- Who Can See What When You Use Tor?
Trace the same request from the guard, exit, website and both ends of the path to see what each observer can know or infer.
- What a Feed-Forward Network Does Inside a Transformer
Follow one contextualized token through expansion, activation, contraction, and a residual path, then see why Transformer FFNs hold so many parameters.
- How a 120B Mixture of Experts Activates 5.1B Parameters
A token-level look at expert routing, sparse computation, load balancing, and why fewer active parameters do not remove memory and communication costs.
- Ray Marching in GLSL, One Distance at a Time
Three interactive GLSL labs reveal how signed distances steer a ray, assemble a scene, recover surface normals, and fail when the distance bound lies.
- Can hidden data survive image compression?
Why repeating fragile pixel bits is not enough, and how a robust hidden channel must match its signal, redundancy, and synchronization to the damage it will face.
- execSync vs execFileSync: the shell is the security boundary
Why execSync can turn untrusted text into shell syntax, why execFileSync usually cannot, and where command-injection risk still remains.
- How a working website fits inside a PNG image
Recover a working light switch from an ordinary-looking PNG, then follow one hidden bit through a lossless save and a JPEG conversion.
- How JPEG turns pixels into frequencies
Follow one image block as JPEG turns visible detail into frequency weights, rounds some of them away, and reconstructs pixels that look right but are no longer exact.
- How PNG compresses pixels without changing them
See how PNG exposes the repetition between neighboring pixels, compresses those differences, and still keeps an exact route back to every original sample.
- Why WebP can be lossy or lossless
Why two files called WebP can make opposite promises: one quantizes a predicted image, while the other keeps every transform reversible.
- A File Doesn't Know What Kind of File It Is
Rename a JPEG to .zip and its bytes stay unchanged. See how file extensions, media types, magic bytes, and parsers identify files—and where they disagree.
- How Does a Batteryless Contactless Card Prove a Payment Is Real?
How contactless card payments use wireless power and a fresh cryptogram, why copying a tap fails, and why a relay attack can still work.
- Why JavaScript thinks 7 is an emoji
A Unicode regex says 7 is an emoji. The reason reveals the difference between a character property, visual presentation and a complete emoji sequence.
- Why JavaScript says this emoji is 11 characters long
Why one family emoji counts as 11 UTF-16 units—and how code points, grapheme clusters and bytes answer different questions.
- Expo vs Capacitor: Performance, SEO, and Native UX (2026)
Expo vs Capacitor compared across 7 factors: mobile performance, web SEO, native APIs, code sharing, Solito, releases and migration cost for your app.
- Sparse Attention Guide: What Should an LLM Ignore?
Sparse attention cuts full attention's n^2 graph, but every missing edge changes what an LLM can remember, route, cache, and safely ignore in long contexts.
- The Brain May Have Spoken a Dead Language. DMT Is Trying to Translate It.
Andrew Gallimore's 2013 paper proposes DMT is not another psychedelic but an endogenous neuromodulator that once built parallel brain connectivities. What happens when the brain switches languages.
- Beyond the Lock: How Messaging Security Actually Works (and Fails)
Encryption is not a magic shield. The real vulnerabilities in your messaging stack are at the endpoint: your phone, your metadata, and the governance of the apps you trust. Here is how to actually evaluate your privacy.
- How Browser Fingerprinting Works Without JavaScript
CSS alone leaks your installed fonts to any site, no JavaScript needed. Why a 1-in-15,000 fingerprint survives VPN and incognito, and which browser fixes it.
- The Phase Shift Attack: How Fourier Math Strips an AI Watermark
How a Fourier transform exposes an AI watermark's frequencies, and how a phase shift drops SynthID detection by 91% at 43 dB PSNR.
- Astro Deep-Link Highlight: Search Results That Jump to the Word
Astro deep-link highlight in ~75 lines: click a search result, land on the exact word with a yellow flash. Why URL Text Fragments lost the fight with ClientRouter.
- Astro FlexSearch: Build a Fast Offline Search Index for Your Blog
Index 35 posts in under 100ms. Prerender one JSON file at build time, fetch lazily on Cmd+K, query with FlexSearch in the browser. Zero server cost.
- Build a Custom Claude Code Statusline (with Rate Limits and a Bell on Done)
The default Claude Code statusline shows the model and the cwd. I wanted seven fields and a terminal bell on every render. Here's the bash script, the settings.json wiring, and the JSON payload Claude Code pipes into the script.
- 4 Buttons on 1 Analog Pin: The Voltage Divider Trick for Arduino
Wire four push buttons to a single analog pin using a binary-weighted resistor ladder. Each button (and combination) produces a unique voltage the microcontroller can map back to the right key. Includes the schematic, the math, and the Arduino sketch.
- Talkie-1930: An LLM That Has Never Heard of Computers Just Learned to Code
Talkie-1930 is a 13B language model trained only on text published before 1931. It has never seen a computer. Given a few Python examples, it writes code anyway. Here is what that means for the reasoning vs memorization debate.
- Three.js Static Shadow Baking: One Flag That Saves 20-40% GPU
I posted a Three.js perf thread and got a sharp question back about whether 'baking' was even the right word. The source code said yes and no. Here is what the exchange taught me about `autoUpdate = false`, runtime caching, and a 20-40% GPU win.
- How I Turned 4 Sites and a Shared Lib Into One pnpm Workspace
A first-person walkthrough of converting four separate Astro repositories and a shared components library into a single pnpm workspace. Real layout, real gotchas, and the five traps that cost me the most time.
- Run a 1-Bit LLM on Your Mac with bitnet.cpp
A first-person walkthrough of running BitNet b1.58 on an M1 Pro: real benchmarks (22.5 tok/s), five real gotchas, a 3B model in under 1 GB of RAM, and the GPU never touched.
- How SynthID Was Broken: Three Attacks That Defeated Google's AI Watermark
Researchers broke Google's SynthID watermark 3 ways. Spectral analysis drops detection by 91.4%, diffusion re-nosing overwrites it, and synonym swaps defeat text marking.
- Remote Terminal: iPhone to Mac via Tailscale
Set up a secure remote terminal from your iPhone to your Mac using Tailscale and Remobi. No port forwarding, no SSH keys, zero internet exposure. Takes five minutes.
- BitNet b1.58: The 1-Bit LLM That Matches Full-Precision Models
BitNet b1.58 replaces every Transformer weight with -1, 0, or 1, cutting energy use by 71.4x while matching FP16 quality at 3B+ parameters. Here is how.
- JSON-LD Structured Data for Blogs: A Real Implementation
Pages with structured data are 2.3x more likely to appear in AI Overviews. Here is how I added BlogPosting JSON-LD to my Astro blog with real code.
- Running SQLite in the Browser with OPFS and Web Workers
Discover how to set up SQLite in the browser using the Origin Private File System (OPFS) and Web Workers. Build high-performance, local-first applications with relational power and zero server costs.
- LinkPreview AI: The Privacy-First, Client-Side QR Code Generator
Most QR code generators track you. LinkPreview AI enables zero-knowledge, client-side QR generation with no database. Here is how it works.
- isemailok.com: The Silent API
A story of a perfectly working Redis-backed micro-SaaS that died in silence. Why building isn't enough.
- EasyPageGo: The Rube Goldberg Website Builder
How I engineered a Docker-based website builder that solved a problem no one had. A post-mortem of over-engineering, market misreading, and the pre-ChatGPT struggle.
- The Evolution of Password Security: From Basic Storage to Argon2
A level-by-level journey into password security. Discover why a simple hash isn't enough and how to defend your users from hackers and data leaks, from salt and pepper to Argon2.
- Automatic Subtitles with Whisper and Remotion: A Complete Guide
Discover how to generate automatic subtitles (and translations) for your videos. A step-by-step guide to the workflow with AI Whisper, Remotion, and ffmpeg to save time.
- Animated Transitions in MPAs with the View Transitions API
Enjoy your Multi-Page Application (MPA) without giving up smooth, SPA-like page transitions using the View Transitions API. A practical guide with code examples to implement professional animations with just a few lines of CSS, enhancing the user experience through progressive enhancement.
- SHA256 and the Length Extension Attack
SHA-256 is a cornerstone of security, but it's not invincible. Discover how its internal structure opens the door to the feared length extension attack and why HMAC is the fundamental solution.
- Intersection Observer: Smooth Animations Without Blocking the Page
Stop using the scroll event for your animations. Discover how Intersection Observer improves performance easily and quickly.
- Run n8n and SearXNG Locally with Docker: Build Your Own No-Code AI Playground
Discover how to set up n8n and SearxNG to build a private AI agent for web searches. You'll have an AI agent that fetches information online without tracking your data. Ideal for those interested in automation and privacy!
- Free Online Text to Speech Generator - SpeechStudio.ai
Check out SpeechStudio.ai, a free and powerful text-to-speech tool that provides natural-sounding voices and supports multiple speakers. It's perfect for podcasts, presentations, and creative projects, all without any costs or signups.
- Throttling Explained: A Guide to Managing API Request Limits
Learn how to implement a simple and effective throttling system in TypeScript to protect your APIs from overload. This guide covers rate-limiting strategies, IP tracking, and periodic cleanup to manage stale records and optimize performance.
- Optimize Three.js: 4 Key Techniques
Practical tips for improving performance when working with Three.js scenes in real-world projects.
- Cache-Control max-age, stale-while-revalidate
Until now, thanks to Last-Modified/If-Modified-Since or ETag/If-None-Match we mainly saved on bandwidth. However, the server always had to process each request.
- ETag/If-None-Match
we explored the usefulness of the Last-Modified Response Header and If-Modified-Since Request Header. They work really well when dealing with an endpoint returning a file. What about data retrieved from a database or assembled from different sources?
- Last-Modified / If-Modified-Since
Less load on the server and less bandwidth usage for the same result? Where should I sign up? Nowhere, you just need to know the right headers.
- How to Use a Reverse Trie for Fast Disposable Email Domain Detection
Learn how to use a reverse Trie to efficiently detect disposable email domains. Optimize your domain lookups with a scalable, memory-efficient solution tailored for fast and precise results.
- How to Safely Delete All Local Git Branches
Learn how to quickly and safely remove all local Git branches except the ones you choose (like dev and main) using a simple one-liner command. This guide breaks down each part of the command, provides examples, and tips for a tidier Git workflow.
- GitHub App and OAuth ~ Disjointed flow
Discover how to integrate GitHub App functionality into an existing OAuth-based authentication system. This guide explains how to authenticate as a GitHub App using JWT, retrieve installation IDs, and access repositories associated with the app.
- OAuth popup ~ Practical Guide
Enhance your GitHub OAuth implementation by using a popup approach for authentication in single-page applications (SPAs). This guide walks you through the process of spawning a popup for user authentication and securely handling the access token.
- Headers for large files
HTTP headers Content-Length, Content-Encoding, and Transfer-Encoding impact the transmission of large files in web applications. With a practical Node.js server example, learn about header combinations and the importance of the Content-Length header and gzip compression for optimizing web performance.
- GitHub App and OAuth ~ Practical Kick-Starter
Learn how to build an interface that allows GitHub-authenticated users to view which repositories have a specific GitHub App installed. This guide covers creating a GitHub App, implementing OAuth authentication, and querying the GitHub REST API for installations and repositories.
- CORS, Preflight request and OPTIONS Method
This post is intended to be a light reading with the purpose to give a minimum of context and instill some curiosity towards a topic often considered opaque - CORS are a simple HTTP-header mechanism that every web developer can easily understand.
- Penetration and Security in JavaScript
Are you sure you are ensuring your code to be used as intended? Are you preventing it from beeing used in a malicious way? If what comes your way is putting guards in your functions, this post will open up a world for you. Using checks is not enough.
- Built-in-like Range in JavaScript
Make it possible to generate any range of integers with built-in-like syntax.