{"@attributes":{"version":"2.0"},"channel":{"title":"Josh Brody","description":"Federal prison alumnus, product engineer, and writer when I have something to say. These are all related.","link":"\/","lastBuildDate":"Wed, 25 Nov 2026 13:34:40 -0600","item":[{"title":"PostgreSQL internals explained for developers: Understanding SELECT","link":"\/posts\/postgres-internals-explained-for-developers-understanding-select\/","pubDate":"Sun, 22 Nov 2026 00:00:00 -0600","guid":"\/posts\/postgres-internals-explained-for-developers-understanding-select\/","description":"I\u2019ll build a small Ruby model (heap pages, a B-tree, shared buffers, a catalog), run it to make sure the output is real, then write the section around it. Finding Peppa: what happens after the SQL is gone By the time Postgres actually goes looking for your row, the SQL is long gone. The parser and planner have already turned SELECT * FROM people WHERE id = 1 into a plan, and that plan basically says \u201cuse the index on id, find 1, go get the row.\u201d That\u2019s the part we care about, so we\u2019ll skip straight to it. Four..."},{"title":"Just give it credit.","link":"\/posts\/just-give-it-credit\/","pubDate":"Fri, 23 Oct 2026 00:00:00 -0500","guid":"\/posts\/just-give-it-credit\/","description":"If you\u2019re going to use generative AI for your content or your code, attribute it. Don\u2019t pass it off as your own, and when nobody asks where it came from, don\u2019t take the credit in the moment anyway. And if somebody does ask, don\u2019t dodge it. (Somebody is going to ask. I\u2019ve started asking.) I\u2019m aware that a guy who ran a piracy site for five years lecturing people about credit is a little rich\u2014though, for the record, I did give credit: \u201call the feeds come straight from the providers.\u201d In my defense, I don\u2019t think piracy has ever had..."},{"title":"Why are my users not converting?","link":"\/posts\/why-are-my-users-not-converting\/","pubDate":"Fri, 25 Sep 2026 00:00:00 -0500","guid":"\/posts\/why-are-my-users-not-converting\/","description":"Since early 2025, my once-beloved subreddits that were only kind-of-filled-with-self-promoting stuff have turned into mostly self-promoting-stuff, with the occasional \u201cwhy aren\u2019t my users converting\u201d questions. Seldom do I see reasonable content.\n\nThe advent of AI has turned everyone with an idea into hey-I-built-this-they-will-come. Suddenly everyone thinks that once they click deploy and make a single post, they will be an overnight sensation.\n\nTo those who finally ask \u201cwhy aren\u2019t my users converting\u201d (or some variation of it), I usually reply with \u201chave you asked them?\u201d\n"},{"title":"Nobody knocked","link":"\/posts\/nobody-knocked\/","pubDate":"Mon, 17 Aug 2026 00:00:00 -0500","guid":"\/posts\/nobody-knocked\/","description":"My history of cybercrime is typical: the usual shithead tour of carding, account takeover, game cheats, denial of service. All of it more than fifteen years removed. In early August I spoke at the 2026 National Cybercrime Prevention Forum in Sydney (the accents are wild). It was a room of law enforcement, government, industry, and academics, and I was there to give my opinion on what gets a person off the shithead path. Before that I\u2019d been asked to review some prevention material written by academics and researchers. I won\u2019t say whose and I won\u2019t quote it\u2014I\u2019m not here to...","category":"cyber"},{"title":"Reflections on presenting at InterCOP, hosted by INTERPOL","link":"\/posts\/reflections-on-presenting-at-intercop-hosted-by-interpol\/","pubDate":"Sat, 18 Jul 2026 00:00:00 -0500","guid":"\/posts\/reflections-on-presenting-at-intercop-hosted-by-interpol\/","description":"Reflections on Presenting at InterCOP hosted by INTERPOL In July 2026 I presented at the 7th International Cyber Offender Prevention conference: InterCOP, hosted by INTERPOL in Lyon, France. Speakers talked about one very specific premise: the cyber threat is getting younger and faster, and we need better ways to stop kids before they become cases. Prevention and interception. Translated out of conference-speak: \u201clet\u2019s get ahead of the thing instead of cleaning up after it.\u201d It\u2019s a good premise. All speakers delivered on it. There was one notable missing delegation: mine. Edit: Even more damning, between my well-connected co-presenter and me,...","category":"cyber"},{"title":"Behavior","link":"\/posts\/hard-determinism-as-religion\/","pubDate":"Wed, 17 Jun 2026 00:00:00 -0500","guid":"\/posts\/hard-determinism-as-religion\/","description":"Robert Sapolsky\u2019s Determined changed how I think about human behavior. Human behavior has largely been shaped by religion: its preaching and lore, its holy books, and its answers for whatever science hadn\u2019t gotten around to explaining yet. If every thought, choice, and action is the inevitable product of prior causes\u2014genes, hormones, childhood, culture, the neuron that fired before you had any say over it, your conception, which you didn\u2019t author, and its snowballing effect, the millennia of history that shaped all of it\u2014then there is no uncaused causer. Nothing in the brain steps outside the chain. The soul is supposed...","category":"personal"},{"title":"We're all just a passphrase","link":"\/posts\/we-have-all-been-reduced-to-a-passphrase\/","pubDate":"Sat, 30 May 2026 00:00:00 -0500","guid":"\/posts\/we-have-all-been-reduced-to-a-passphrase\/","description":"What Passphrase Are You? I went to prison. I don\u2019t hide this. The shame has passed. While I was gone, someone stole everything I owned in the physical world and then, for good measure, changed the passwords on most of my digital life. That included my GitHub account, my domain name (which they moved across three registrars), the Google Workspace account tied to that domain name (as it had been for 13 years), and my 2FA keys\u2014you know, just about everything. I\u2019ve gotten most of my digital accounts back\u2014I\u2019ve lawyered up for the personal stuff (some of which has been...","category":"personal"},{"title":"The moat was never the code","link":"\/posts\/the-moat-was-never-the-code\/","pubDate":"Thu, 21 May 2026 00:00:00 -0500","guid":"\/posts\/the-moat-was-never-the-code\/","description":"The moat was never the code I ran an unauthorized sports streaming service from 2016 to 2021. It was called HeheStreams. I charged $125 a year, or $100 if you paid for the year up front. My infrastructure cost was $75 a month. HeheStreams didn\u2019t re-encode or re-broadcast streams. My users consumed them directly from licensed platforms\u2014using the same CDN and DRM as the platform\u2019s paying users. I implemented more than a dozen different platforms in the name of feature parity across each sport. People who know the technical side assume that was the hard part. It was hard. It...","category":"startups"},{"title":"statement_timeout 0: Dirty plates, dead cooks, and kitchen fires","link":"\/posts\/statement-timeout-0-casually\/","pubDate":"Thu, 14 May 2026 00:00:00 -0500","guid":"\/posts\/statement-timeout-0-casually\/","description":"so you got tired of alerts that your queries were timing out and set statement_timeout to zero. that\u2019s bad because alerts are good even though nobody likes the alerts. my mom didn\u2019t like acknowledging she might have cancer either so she just ignored the headaches and vertigo and balance issues and then it was like ope stage IV brain cancer. the name makes it sound like a fix. it\u2019s not. removing the timeout doesn\u2019t make the slow queries faster, it just lets them run forever, and \u201cforever\u201d on a 1tb db with bad queries is how you lose the restaurant....","category":"engineering"},{"title":"We made this hard: over-engineering the web","link":"\/posts\/we-made-this-hard\/","pubDate":"Tue, 28 Apr 2026 00:00:00 -0500","guid":"\/posts\/we-made-this-hard\/","description":"We made this hard The job hasn\u2019t changed in thirty years. A request comes in. You return some HTML. The browser draws it. Maybe you sprinkle some CSS on top so it doesn\u2019t look like a 1996 GeoCities fever dream, or maybe you do so it does. That\u2019s the whole gig. Somewhere along the way we convinced ourselves this is hard. It isn\u2019t. It really, really isn\u2019t. And the people paying for our confusion are the ones who can least afford it: the restaurant owner who just wants a menu online, the babysitter trying to put up a contact form,...","category":"engineering"},{"title":"How Postgres works at scale","link":"\/posts\/how-postgres-works-at-scale\/","pubDate":"Sat, 11 Apr 2026 00:00:00 -0500","guid":"\/posts\/how-postgres-works-at-scale\/","description":"A single idle-in-transaction connection can starve every table in your database. Most senior Rails devs don\u2019t know that. You learned MVCC the way most of us did\u2014\u201dwriters don\u2019t block readers,\u201d concurrent transactions get isolated snapshots, UPDATE doesn\u2019t lock the table. That\u2019s marketing copy. The operational reality is that those snapshots have a cost, and the cost compounds across every table at once if one connection gets stuck. I\u2019m going to try to translate the mental model I picked up building and operating a Rails-based data pipeline that handles 10TB\/day. You\u2019ve heard of MVCC, so this is mostly about its consequences....","category":"postgres"},{"title":"Your README is a landing page, you just don't know it yet","link":"\/posts\/landing-pages-for-open-source-maintainers\/","pubDate":"Tue, 24 Mar 2026 00:00:00 -0500","guid":"\/posts\/landing-pages-for-open-source-maintainers\/","description":"I have a few open-source libraries that you could call popular. I use a lot of others. The README is the cheapest marketing a developer has. A marketer opens your README the same way they\u2019d open a landing page, because that\u2019s what it is. If you wrote it like internal documentation\u2014the stuff developers wade through all day\u2014it\u2019s going to be an eyesore. The marketing-brain version treats the README as a conversion funnel where the conversion is \u201cdeveloper tries this and tells a friend.\u201d You spent six months on the library and four minutes on the thing 99% of people will...","category":["open-source","writing"]},{"title":"Wide tables and query validation","link":"\/posts\/wide-tables-and-query-validation\/","pubDate":"Sat, 03 Jan 2026 00:00:00 -0600","guid":"\/posts\/wide-tables-and-query-validation\/","description":"I\u2019m building an ETL system that imports billions of person records from data vendors. Each vendor sends different attributes\u2014household income, automotive interests, education level, charitable donor status\u2014in their own formats with their own column names. The system normalizes everything into one internal schema and exposes a query interface for building audiences. The obvious choice for storing hundreds of optional attributes is JSONB or EAV. Flexible, no migrations needed, handles sparse data well. I went with wide tables instead: every queryable attribute is a column on the people table. This sounds like a 2005 decision. But Postgres handles wide tables fine\u2014you...","category":"ruby"},{"title":"I got out of federal prison and couldn't log into my GitHub","link":"\/posts\/i-got-out-of-federal-prison-and-couldnt-log-into-my-github\/","pubDate":"Sun, 28 Dec 2025 00:00:00 -0600","guid":"\/posts\/i-got-out-of-federal-prison-and-couldnt-log-into-my-github\/","description":"I got out of prison and couldn\u2019t log into my GitHub. The password while I was gone. The phone number tied to the account got transferred to another carrier. The device with my two-factor authentication codes\u2014gone. Eighteen months away, and I came back to find myself locked out of my own account. GitHub, for those unfamiliar, is where programmers store and share code. It\u2019s the largest platform of its kind. Your GitHub account is your professional identity if you work in software: portfolio and proof of work in one place. Mine had twelve years of contributions on it. The obvious...","category":"personal"},{"title":"Interactive Rails playgrounds","link":"\/posts\/interactive-rails-playgrounds\/","pubDate":"Mon, 01 Dec 2025 00:00:00 -0600","guid":"\/posts\/interactive-rails-playgrounds\/","description":"I built a WASM-compatible Rails playground that runs entirely in your browser. No server, no setup, just Rails. This is built on the backs of people much smarter than me. Try it out below. The VM takes a few seconds to load, but once it\u2019s ready you can run any Active Record code against a real SQLite database. -- examples -- Post.published.map(&amp;:title) This does not play nicely with iOS. Run Reset loads ~76MB Rails environment Post Load (0.0ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"published\" = 1 =&gt; [\"Getting Started with Ruby\", \"Rails is Magic\"] The stack The playground runs wasmify-rails,...","category":"ruby"},{"title":"How to get a job as a felon","link":"\/posts\/how-to-get-a-job-as-a-felon\/","pubDate":"Thu, 20 Nov 2025 00:00:00 -0600","guid":"\/posts\/how-to-get-a-job-as-a-felon\/","description":"Hi, I\u2019m Josh. I was inmate number 71690-509. I went to federal prison. I got a job after. Here\u2019s what I observed. This isn\u2019t motivational. I\u2019m not going to tell you to \u201cstay positive\u201d or that \u201ceverything happens for a reason.\u201d If you\u2019re reading this, you\u2019ve probably already waded through that garbage. You want to know what actually works. Fair warning: my crime was running a sports streaming website. That\u2019s a \u201ccool\u201d crime in comparison to many. People hear it and go \u201coh, what?!\u201d rather than recoiling. If you\u2019re reading this with an assault conviction or something involving theft, your...","category":"personal"},{"title":"When you don't look autistic","link":"\/posts\/when-you-dont-look-autistic\/","pubDate":"Tue, 14 Oct 2025 00:00:00 -0500","guid":"\/posts\/when-you-dont-look-autistic\/","description":"I get this a lot. \u201cYou don\u2019t look autistic.\u201d It\u2019s meant as a compliment, I think. Like I\u2019ve done a good job of hiding it. Gold star for passing. Or it\u2019s a remark that implies I don\u2019t have autism because I don\u2019t visibly struggle. You know, like you can\u2019t have COVID if you don\u2019t get tested. Or you don\u2019t look like you have cancer\u2014is that one? What I want to ask\u2014but don\u2019t, because that would be rude and I\u2019ve learned not to be rude in ways that upset people\u2014is: what does autistic look like? What they expect Based on the...","category":"personal"},{"title":"Going to federal prison for piracy","link":"\/posts\/going-to-federal-prison-for-piracy\/","pubDate":"Thu, 18 Sep 2025 00:00:00 -0500","guid":"\/posts\/going-to-federal-prison-for-piracy\/","description":"Here\u2019s something I\u2019ve been putting off writing: I spent eighteen months in federal prison. The charge was computer fraud. The context is weirder. In 2016, I built a website called HeheStreams. It started as a joke\u2014a proof of concept I posted on Reddit after BallStreams, my beloved NBA streaming site, vanished overnight (longer version here). Nobody picked it up, so I kept working on it, and eventually I put a paywall on it, sure that nobody in their right mind would pay for it. People paid for it anyway. What HeheStreams actually was HeheStreams let users watch live sports from...","category":"personal"},{"title":"HTTP 451","link":"\/451\/","pubDate":"Tue, 31 Dec 2024 00:00:00 -0600","guid":"\/451\/","description":"SEALED Case No. 22-cr-00350 (S.D.N.Y.) 451 Unavailable For Legal Reasons The content you are attempting to access has been restricted due to a legal demand. FCI Thomson Inspected Hey. So I'm in federal prison now. Long story. Actually it's not that long, it's just \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588. Shit happens. Anyway. I've been reading a lot. The library here has exactly one book I care about: HTML for the World Wide Web from 1999. There's a chapter on \"publishing your web page to GeoCities.\" I've read it four times. It's the closest thing to a religious experience I can have in here. My...","category":"personal"},{"title":"Gem configuration patterns","link":"\/posts\/gem-configuration-patterns\/","pubDate":"Sat, 12 Aug 2023 00:00:00 -0500","guid":"\/posts\/gem-configuration-patterns\/","description":"Configuration is often the first thing users interact with in your gem. It\u2019s also the part most gem authors spend the least time thinking about\u2014which explains a lot. Module accessors The simplest possible approach. You expose a few attributes on your gem\u2019s main module and call it a day. module MyGem class &lt;&lt; self attr_accessor :api_key, :timeout, :debug end self.timeout = 30 self.debug = false end MyGem.api_key = \"sk-123\" MyGem.timeout = 60 puts \"api_key: #{MyGem.api_key}\" puts \"timeout: #{MyGem.timeout}\" puts \"debug: #{MyGem.debug}\" Run Reset loads ~35MB Ruby environment api_key: sk-123 timeout: 60 debug: false This works for gems with one or...","category":"ruby"}]}}