What Arc CDP Taught Me About Blur Events (The Hard Way)
el.blur() inside a CDP eval silently no-ops when the tab lacks real OS focus. Dispatch new Event('blur') instead — or watch your commit handler
A lab notebook: what I'm learning while building with AI, written as I go.
el.blur() inside a CDP eval silently no-ops when the tab lacks real OS focus. Dispatch new Event('blur') instead — or watch your commit handler
If your Jinja2 blueprint context has an array, you need an explicit {% for %} loop. The renderer does NOT blow up without one — it just silently d
When your AI agent needs to filter relational data, reach for structured SQL column-filters — not embeddings. The column whitelist is your security
If your database splits names across columns (firstname / lastname), a full-string ILIKE against either column will never match a two-w
window.confirm() silently returns false the moment Chrome decides to block it — with zero warning to the user. Don't touch it. Use an in-app dialog.
GA4 (Google Analytics 4) hard-blocks service accounts from Workspace-org properties. Don't fight it — authenticate as a real user with a refresh tok
Shopify stores order numbers as #472791. If your query strips the # from user input but matches with .eq(), you'll never find anything. Match
Passed a raw JS Date object to postgres.js (my Postgres client) as a query param. The driver threw ERRINVALIDARGTYPE. The rate limiter that
We stored event times as naive wall-clock UTC, then almost 'fixed' the display — which would have shifted every event four hours wrong. The rot was
VERCELURL is set in production too — it's a per-deploy hash, not your real domain. Gate your metadataBase on VERCELENV === 'production' inst
Before you build the webhook, check if someone already did. The lesson isn't 'read the code' — it's deployed ≠ wired.
Two apps sharing one database table. One app's Zod validation silently rejected values the other app wrote. 55 of 75 contacts became un-editable overn
launchctl bootstrap from a project directory is NOT a persistent install. And leaving a retired .plist in ~/Library/LaunchAgents/ is how you grow
The Setup
If you're pulling GA4 pagePath data via the Data API and using matchType: CONTAINS, your click counts are probably wrong. Use EXACT. For A/B v
When multiple features land in the same files, Python-split the diff by hunks, git apply --cached --recount each group, and commit. --recount is the
/([a-z])/g skips underscores followed by digits. runrate7d becomes runRate7d. TypeScript doesn't notice. ?? 0 turns undefined into a r
In a static-site pipeline, validate frontmatter dates at parse time — one regex in toDate() and bad dates blow up the build before they ever ship.
If your database identifies an entity through a relationship, your search query has to traverse that relationship — or it will return nothing for the mo
Deploy internal tools ungated. Hide them behind Vercel Deployment Protection. Add the auth gate only after you've verified the thing actually works on p
Prove your numbers on a stateless preview route before you touch the database. In that order, every time.
If your error handler calls res.json() and then res.text() as a fallback, the fallback silently throws 'Body has already been read' — and the real
We had 13 Supabase RLS policies set to using(true). That meant any Google account in the world could read our Shopify orders through PostgREST — c
Stock claude speaks Anthropic /v1/messages natively — no proxy needed. If your inference provider does too (Ollama v0.14+ does), just set ANTHR
A 'gradient walled in a rectangle' got four CSS patches. None worked. The fix was removing the cursor-glow entirely — because it was the rectangle
the setup
Arc tab indices shift the moment anyone opens a new tab. Your agent's --tab 0 is someone else's Zoom call. Always verify ownership before driving.
If your Halo Effect pulls all-time orders without a time fence, you're not measuring event impact — you're measuring your entire customer history. Fix i
To get consistent 12-stage pixel-art progression, chain each stage's initimage from the previous output. Tune initimagestrength by zone — ~335 to
Slack's new rate-limit regime for non-Marketplace apps can be brutal — but whether your app is on it isn't in the docs. You have to probe live.