Miraç Deprem·1d agoCookieless Web Analytics: Counting Visitors with a Daily SaltHow to count unique visitors without cookies: the daily-salted visitor ID in Nabız, why an unsalted hash is not enough, and the price the…
Miraç Deprem·3d agoDate and Time Zone Pitfalls: Store in UTC, Show the Right TimeA Thursday that shows as Wednesday in New York, the wrong year on New Year’s Day, times compared as text: fixing date and time zone bugs in…
Miraç Deprem·5d agoHost Header Poisoning: Where Does Your Password Reset Link Point?If a reset link is built from the request’s Host header, an attacker can get a valid link to their own site sent to you. The hole I found…
Miraç Deprem·Nov 20Account Pre-Hijacking: Why My First Fix Fell ShortHow someone who signs up first with your address can take over the account: the hole I found in Seans, the first fix that fell short and…A response icon1A response icon1
Miraç Deprem·Nov 18Python subprocess Pitfalls: Running ffmpeg Safely Without HangingThe risk of shell=True, an unread pipe that freezes the program, pipes left open: what I learned running ffmpeg from Python in my video…
Miraç Deprem·Nov 16Check Then Write: Race Conditions Between Concurrent RequestsNever selling one seat twice, recording a double-clicked approval once: fixing race conditions with a partial UNIQUE index and PostgreSQL’s…A response icon1A response icon1
Miraç Deprem·Nov 13Don’t Store Money in a Float: Cents, decimal and Rounding RulesWhy 0.1 + 0.2 is not 0.3, and how that becomes an invoice bug. How I stored money as cents, decimal and Decimal across four projects.A response icon2A response icon2
Miraç Deprem·Nov 11The Birthday Paradox: Why Random Codes Collide Sooner Than ExpectedSix-character codes with 887 million values hit a 50% chance of a collision at 35 thousand codes. How the birthday paradox hit my booking…
Miraç Deprem·Nov 9The Real Client IP Behind a Proxy: X-Forwarded-For and a Rate Limit That Didn’t WorkTwo rate limits behind Render and Cloudflare failed in production: one never filled up, one fell to a fake header. Which X-Forwarded-For…
Miraç Deprem·Nov 6The Turkish I Problem: How Case Conversion Broke in Five of My ProjectsIn Turkish, lower-case I is ı and upper-case i is İ. The bugs this caused in five of my projects in Java, JavaScript, Python and C#, and…