{"id":"https:\/\/koaning.io\/","title":"koaning.io - Recent Posts","updated":"2026-11-24T00:00:00+01:00","author":{"name":"Vincent D. Warmerdam"},"link":[{"@attributes":{"href":"https:\/\/koaning.io","rel":"alternate"}},{"@attributes":{"href":"https:\/\/koaning.io\/feed.xml","rel":"self"}}],"generator":"python-feedgen","icon":"https:\/\/koaning.io\/static\/favicon_io\/favicon-32x32.png","logo":"https:\/\/koaning.io\/static\/favicon_io\/apple-touch-icon.png","subtitle":"Blog of a data person","entry":[{"id":"https:\/\/koaning.io\/posts\/trilateration","title":"drag the beacons","updated":"2026-11-24T00:00:00+01:00","content":"<p><em>This post has interactive elements that only work on the site: <a href=\"https:\/\/koaning.io\/posts\/trilateration\/\">view it on koaning.io<\/a>.<\/em><\/p>\n<p>Let's see if I can make you wonder about <a href=\"https:\/\/en.wikipedia.org\/wiki\/Trilateration\">trilateration<\/a> a little bit.<\/p>\n\n<p>Beacons each measure how far away you are. Each range is a bit off, and the further the beacon, the more it's off. Drag the beacons and yourself around and watch where 2,000 noisy fixes land. Double-click an empty spot to add a beacon, or a beacon to remove it (at least three stay).<\/p>\n<p><t-var max=\"90\" min=\"-90\" name=\"px\" value=\"15\"><\/t-var>\n<t-var max=\"90\" min=\"-90\" name=\"py\" value=\"5\"><\/t-var>\n<t-let expr=\"(beacons ?? []).map(([bx, by]) =&gt; Math.hypot(px - bx, py - by))\" name=\"dist\"><\/t-let>\n<t-let expr=\"dist.map((d) =&gt; 1 + d \/ 50)\" name=\"grow\"><\/t-let><\/p>\n<div class=\"trilateration\">\n<t-jsxgraph x=\"-100 100\" y=\"-100 100\">\n\n<\/t-jsxgraph>\n<t-obsplot>\n\n<\/t-obsplot>\n<\/div>\n<h3>The noise<\/h3>\n<p>Range noise \u00b1 <t-num max=\"20\" min=\"0\" name=\"noise\">4<\/t-num> m: 95% of the fixes land within <t-out expr=\"r95\" format=\"%.1f\"><\/t-out> m of you.<\/p>\n<p>Each beacon measures its range with the function below, feel free to change it. Besides <code>noise<\/code>, you can use the seeded <code>gauss()<\/code> (a standard normal draw) and <code>random()<\/code> (uniform between 0 and 1).<\/p>\n<t-codecell lang=\"ranges\" name=\"rangeNoise\">\n\n<\/t-codecell>\n<p><t-let expr=\"typeof rangeNoise === 'function' ? sampleRanges(rangeNoise, dist) : null\" name=\"ranges\"><\/t-let>\n<t-let expr=\"(() =&gt; {\nif (!Array.isArray(ranges) || !beacons || beacons.length &lt; 3) return null;\nconst [x0, y0] = beacons[0];\nconst out = [];\nfor (const r of ranges) {\nlet saa = 0, sab = 0, sbb = 0, sac = 0, sbc = 0;\nfor (let k = 1; k &lt; beacons.length; k++) {\nconst [xk, yk] = beacons[k];\nconst a = 2 * (xk - x0), b = 2 * (yk - y0);\nconst c = r[0] ** 2 - r[k] ** 2 + xk ** 2 - x0 ** 2 + yk ** 2 - y0 ** 2;\nsaa += a * a; sab += a * b; sbb += b * b; sac += a * c; sbc += b * c;\n}\nconst det = saa * sbb - sab * sab;\nlet x = (sac * sbb - sab * sbc) \/ det;\nlet y = (saa * sbc - sab * sac) \/ det;\nfor (let step = 0; step &lt; 6; step++) {\nlet hxx = 0, hxy = 0, hyy = 0, gx = 0, gy = 0;\nbeacons.forEach(([bx, by], j) =&gt; {\nconst len = Math.hypot(x - bx, y - by) || 1e-9;\nconst ux = (x - bx) \/ len, uy = (y - by) \/ len;\nconst w = 1 \/ grow[j] ** 2, miss = r[j] - len;\nhxx += w * ux * ux; hxy += w * ux * uy; hyy += w * uy * uy;\ngx += w * ux * miss; gy += w * uy * miss;\n});\nconst D = hxx * hyy - hxy * hxy;\nx += (hyy * gx - hxy * gy) \/ D;\ny += (hxx * gy - hxy * gx) \/ D;\n}\nif (Number.isFinite(x) &amp;&amp; Number.isFinite(y)) out.push({ x, y });\n}\nreturn out;\n})()\" name=\"fixes\"><\/t-let>\n<t-let expr=\"fixes &amp;&amp; fixes.length ? fixes.map((p) =&gt; Math.hypot(p.x - px, p.y - py)).sort((a, b) =&gt; a - b)[Math.floor(fixes.length * 0.95)] : NaN\" name=\"r95\"><\/t-let><\/p>\n\n<p>Seriously, play around with it. You might see things that you don't expect at first.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/trilateration\/"}},"summary":"An interactive trilateration notebook. Drag the beacons and watch 2,000 noisy fixes land.","published":"2026-11-24T00:00:00+01:00"},{"id":"https:\/\/koaning.io\/posts\/vangle","title":"vangle","updated":"2026-10-19T00:00:00+02:00","content":"<p><em>This post has interactive elements that only work on the site: <a href=\"https:\/\/koaning.io\/posts\/vangle\/\">view it on koaning.io<\/a>.<\/em><\/p>\n<p>Back in 2011 Bret Victor released <a href=\"https:\/\/worrydream.com\/Tangle\/\">Tangle<\/a>, a small library for \"reactive documents\". The idea is that you can drag a number in a paragraph and watch the rest of the text update with it. I've always loved that idea, so I made a modern take on it called <a href=\"https:\/\/github.com\/koaning\/vangle\">vangle<\/a>.<\/p>\n<p>It's one ES module and one stylesheet. There is no build step and there are no dependencies. You write plain HTML with a few custom elements, and you never write an <code>update()<\/code> function because a small signals core recomputes everything for you.<\/p>\n<p>It is great for small explainers on a simple static blog like mine, but it also turns out to be \"just enough\" to make an HTML explainer feel less like slop. Something about defining the building blocks and pointing an agent at it makes the final artifact a lot more fun to play with.<\/p>\n<h2>Basic Example<\/h2>\n<t-scope class=\"example\">\n<p>When you eat <t-num max=\"20\" min=\"0\" name=\"cookies\">3<\/t-num> cookies, you consume <t-out expr=\"calories\"><\/t-out> calories. That's <t-out expr=\"calories \/ 2000 * 100\" format=\"%.1f\"><\/t-out>% of a 2000 calorie diet.<\/p>\n<t-let expr=\"cookies * 50\" name=\"calories\"><\/t-let>\n<\/t-scope>\n<p>That's the classic Tangle example, and this is all the HTML it takes:<\/p>\n<pre><code class=\"language-html\">&lt;p&gt;When you eat &lt;t-num name=\"cookies\" min=\"0\" max=\"20\"&gt;3&lt;\/t-num&gt; cookies,\n   you consume &lt;t-out expr=\"calories\"&gt;&lt;\/t-out&gt; calories.&lt;\/p&gt;\n&lt;t-let name=\"calories\" expr=\"cookies * 50\"&gt;&lt;\/t-let&gt;\n<\/code><\/pre>\n<p>A <code>&lt;t-num&gt;<\/code> is a draggable number, a <code>&lt;t-let&gt;<\/code> is a computed value and a <code>&lt;t-out&gt;<\/code> shows the result of an expression. The text inside the <code>&lt;t-num&gt;<\/code> is its starting value, which is also what you see without JavaScript, so an RSS reader still gets a sensible sentence.<\/p>\n<h2>Click to choose<\/h2>\n<p>Not everything is a number. A <code>&lt;t-choice&gt;<\/code> cycles through options when you click it.<\/p>\n<t-scope class=\"example\">\n<p>Saving <t-num max=\"2000\" min=\"0\" name=\"amount\" step=\"10\">200<\/t-num> euro <t-choice name=\"per\" options=\"per week:52, per month:12, per year:1\">per month<\/t-choice> adds up to <t-out expr=\"amount * per\" format=\"%,d\"><\/t-out> euro a year.<\/p>\n<\/t-scope>\n<pre><code class=\"language-html\">&lt;t-choice name=\"per\" options=\"per week:52, per month:12, per year:1\"&gt;per month&lt;\/t-choice&gt;\n<\/code><\/pre>\n<h2>Formulas you can drag<\/h2>\n<p>This is the part I'm most excited about. A <code>&lt;t-math&gt;<\/code> is a KaTeX formula with live markers in it. <code>\\tangle{r}<\/code> shows a variable that you can drag, and <code>\\val{...}<\/code> shows a computed result. The chart underneath reads the same variables, so it grows along with the formula.<\/p>\n<t-scope class=\"example\">\n<t-var format=\"%,d\" max=\"10000\" min=\"0\" name=\"P\" step=\"100\" value=\"1000\"><\/t-var>\n<t-var color=\"#b45b1b #ffad66\" max=\"15\" min=\"0\" name=\"r\" step=\"0.5\" value=\"5\"><\/t-var>\n<t-var color=\"#147a68 #5ed5bd\" max=\"40\" min=\"1\" name=\"t\" value=\"10\"><\/t-var>\n<t-let expr=\"Array.from({ length: t + 1 }, (_, year) =&gt; ({ year, balance: P * (1 + r \/ 100) ** year }))\" name=\"growth\"><\/t-let>\n<t-math display=\"\">\n\\tangle{P} \\cdot \\left(1 + \\frac{\\tangle{r}}{100}\\right)^{\\tangle{t}} = \\val[%,.2f]{P * (1 + r \/ 100) ** t}\n<\/t-math>\n<t-vega>\n\n<\/t-vega>\n<\/t-scope>\n<pre><code class=\"language-html\">&lt;t-var name=\"P\" value=\"1000\" min=\"0\" max=\"10000\" step=\"100\" format=\"%,d\"&gt;&lt;\/t-var&gt;\n&lt;t-var name=\"r\" value=\"5\" min=\"0\" max=\"15\" step=\"0.5\"&gt;&lt;\/t-var&gt;\n&lt;t-var name=\"t\" value=\"10\" min=\"1\" max=\"40\"&gt;&lt;\/t-var&gt;\n&lt;t-math display&gt;\n  \\tangle{P} \\cdot \\left(1 + \\frac{\\tangle{r}}{100}\\right)^{\\tangle{t}}\n    = \\val[%,.2f]{P * (1 + r \/ 100) ** t}\n&lt;\/t-math&gt;\n<\/code><\/pre>\n<p>The chart is a <code>&lt;t-vega&gt;<\/code> with a <a href=\"https:\/\/vega.github.io\/vega-lite\/\">Vega-Lite<\/a> spec inside. Its data source is called <code>growth<\/code>, and so is a <code>&lt;t-let&gt;<\/code> that computes one row per year, which is all it takes to link them.<\/p>\n<p>Formulas also work inline. A pendulum of length <t-num format=\"%.1f m\" max=\"5\" min=\"0.1\" name=\"L\" step=\"0.1\">1<\/t-num> swings with a period of <t-math tex=\"T = 2\\pi\\sqrt{L\/g} = \\val[%.2f]{2 * Math.PI * Math.sqrt(L \/ 9.81)}\\,\\text{s}\"><\/t-math>.<\/p>\n<h2>Everything is connected<\/h2>\n<p>A variable can show up in as many places as you like, and they all stay in sync. Below, <code>a<\/code>, <code>b<\/code> and <code>c<\/code> appear in the formula, in the sentence, in the roots and in the chart. Drag any of them, anywhere, and watch the rest follow. The letters in the formula turn into numbers while you drag them.<\/p>\n<t-scope class=\"example\">\n<t-var color=\"#246bce #75a7ff\" max=\"3\" min=\"-3\" name=\"a\" step=\"0.1\" value=\"1\"><\/t-var>\n<t-var color=\"#b45b1b #ffad66\" max=\"6\" min=\"-6\" name=\"b\" step=\"0.2\" value=\"-1\"><\/t-var>\n<t-var color=\"#147a68 #5ed5bd\" max=\"6\" min=\"-6\" name=\"c\" step=\"0.2\" value=\"-2\"><\/t-var>\n<t-let expr=\"b * b - 4 * a * c\" name=\"disc\"><\/t-let>\n<t-let expr=\"a === 0 || disc &lt; 0 ? [] : disc === 0 ? [-b \/ (2 * a)] : [(-b - Math.sqrt(disc)) \/ (2 * a), (-b + Math.sqrt(disc)) \/ (2 * a)]\" name=\"roots\"><\/t-let>\n<t-math display=\"\">f(x) = \\tangle[a]{a}\\,x^2 + \\tangle[b]{b}\\,x + \\tangle[c]{c}<\/t-math>\n<p>With <t-num name=\"a\"><\/t-num>, <t-num name=\"b\"><\/t-num> and <t-num name=\"c\"><\/t-num> the parabola opens <t-out expr=\"a &gt; 0 ? 'upward' : a &lt; 0 ? 'downward' : 'not at all, because it is a line'\"><\/t-out> and has <t-out expr=\"disc &gt; 0 ? 'two real roots' : disc === 0 ? 'one real root' : 'no real roots'\"><\/t-out>.<\/p>\n<t-math display=\"\">\nx = \\frac{-(\\tangle{b}) \\pm \\sqrt{\\val[%.2f]{disc}}}{2 \\cdot \\tangle{a}}\n\\quad\\Rightarrow\\quad\nx_1 = \\val[%.2f]{(-b - Math.sqrt(disc)) \/ (2 * a)}, \\;\nx_2 = \\val[%.2f]{(-b + Math.sqrt(disc)) \/ (2 * a)}\n<\/t-math>\n<t-obsplot>\n\n<\/t-obsplot>\n<\/t-scope>\n<p>There's no glue code here. The chart is a <code>&lt;t-obsplot&gt;<\/code> holding an <a href=\"https:\/\/observablehq.com\/plot\/\">Observable Plot<\/a> expression that reads <code>a<\/code>, <code>b<\/code>, <code>c<\/code> and <code>roots<\/code>, and vangle redraws it whenever one of them changes:<\/p>\n<pre><code class=\"language-html\">&lt;t-obsplot&gt;\n  &lt;script type=\"text\/plain\"&gt;\n  {\n    y: { domain: [-8, 8], grid: true },\n    marks: [\n      Plot.line(d3.range(-5, 5.001, 0.05), {\n        x: (x) =&gt; x,\n        y: (x) =&gt; a * x * x + b * x + c\n      }),\n      Plot.dot(roots, { x: (x) =&gt; x, y: 0 })\n    ]\n  }\n  &lt;\/script&gt;\n&lt;\/t-obsplot&gt;\n<\/code><\/pre>\n<h2>Only what changed recomputes<\/h2>\n<p>A change doesn't redraw the whole page. Each value remembers which variables it read, and only the values that read a changed variable run again. To make that visible, the two values below go through a small <code>count<\/code> function that keeps a tally of how often each one runs.<\/p>\n<t-scope class=\"example\" id=\"recompute\">\n<t-let expr=\"count('sum', a + b)\" name=\"sum\"><\/t-let>\n<t-let expr=\"count('product', sum * c)\" name=\"product\"><\/t-let>\n<p><t-num max=\"10\" min=\"0\" name=\"a\">1<\/t-num> + <t-num max=\"10\" min=\"0\" name=\"b\">2<\/t-num> = <t-out expr=\"sum\"><\/t-out>, which ran <t-out expr=\"sumRuns\" format=\"%d\u00d7\"><\/t-out><\/p>\n<p><t-out expr=\"sum\"><\/t-out> \u00d7 <t-num max=\"10\" min=\"0\" name=\"c\">3<\/t-num> = <t-out expr=\"product\"><\/t-out>, which ran <t-out expr=\"productRuns\" format=\"%d\u00d7\"><\/t-out><\/p>\n<\/t-scope>\n\n<p>Some things to try:<\/p>\n<ul>\n<li><strong>Change <code>c<\/code>.<\/strong> Only <code>product<\/code> runs. <code>sum<\/code> doesn't read <code>c<\/code>, so its tally stays put.<\/li>\n<li><strong>Change <code>a<\/code> or <code>b<\/code>.<\/strong> Both run, because <code>sum<\/code> reads them and <code>product<\/code> reads <code>sum<\/code>.<\/li>\n<li><strong>Count the reads.<\/strong> <code>sum<\/code> is shown twice and read by <code>product<\/code>, yet it runs once per change. The first read computes it and the others get the cached value.<\/li>\n<\/ul>\n<p>The <code>count<\/code> function is the only JavaScript on this page. It's a registered function, which is how you hand your own JavaScript to vangle's expressions:<\/p>\n<pre><code class=\"language-html\">&lt;script type=\"module\"&gt;\nimport { registerFunction, scopeOf } from \"tangle.js\";\n\nconst scope = scopeOf(document.querySelector(\"#recompute\"));\nregisterFunction(\"count\", (name, value) =&gt; {\n  scope.set(`${name}Runs`, (scope.peek(`${name}Runs`) ?? 0) + 1);\n  return value;\n});\n&lt;\/script&gt;\n<\/code><\/pre>\n<h2>Using it<\/h2>\n<p>To learn more, you can check the <a href=\"https:\/\/koaning.github.io\/vangle\/\">docs<\/a>. It's designed to be agent friendly and I have found it to be a missing piece to write good html explainers.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/vangle\/"}},"summary":"Reactive documents for static HTML. A modern take on Bret Victor's Tangle, with formulas you can drag.","published":"2026-10-19T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/best-youtube-advice","title":"best youtube advice","updated":"2026-10-07T00:00:00+02:00","content":"<p>Chris Spargo may have given the best YouTube advice ever <a href=\"https:\/\/www.youtube.com\/watch?v=7MKQNejUkA4\">here<\/a>.<\/p>\n<blockquote>\n<p>And history has shown that we really like stories, we really like a good story. That's why marketing uses stories so much.<\/p>\n<p>I just definitely have watched videos from small YouTubers where like the first 30 seconds has a really good hook, but then like a minute later, it's kind of lost me or I've kind of just, it's not really taking me on a journey or I'm not really following why we're learning about a certain particular thing.<\/p>\n<p>And so the most helpful thing I've been able to come up with so far is that, I think, maybe in the YouTube world, we should talk more about story structure.<\/p>\n<\/blockquote>\n<p>Total agreement on my end. Hooks only get you so far, just worry more about the story. You can decide to focus on being more interesting instead!<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/best-youtube-advice\/"}},"summary":"Chris Spargo may have given the best YouTube advice ever here. And history has shown that we really like stories, we really like a good story.","published":"2026-10-07T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/demo-that-lands","title":"demos that land","updated":"2026-10-06T00:00:00+02:00","content":"<p>People still underestimate YouTube, so I figured I'd share a data point.<\/p>\n<p>Below is a video that did pretty well. It has 77K views at the time of writing this.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=5qUwzp1CsgU\"><img alt=\"Watch on YouTube\" src=\"https:\/\/i.ytimg.com\/vi\/5qUwzp1CsgU\/hqdefault.jpg\"\/><\/a><\/p>\n<p>That 77K views is cool, but it's not the thing that's interesting. The video is about a library that I maintain ,<a href=\"https:\/\/koaning.github.io\/wigglystuff\/\">wigglystuff<\/a>, and here are the download numbers for that video.<\/p>\n<figure>\n<img alt=\"CleanShot 2026-10-07 at 15.47.53@2x\" src=\"https:\/\/koaning.io\/posts\/demo-that-lands\/cleanshot-20261007-at-1547532x-d5be80.webp\"\/>\n<figcaption>That's a spike for sure.<\/figcaption>\n<\/figure>\n<p>The week before the video I had 5.7K downloads and the weeks after the video were around 9-10K downloads.<\/p>\n<p>Do with this datapoint what you will, but I would advise anyone in developer relations not to ignore the power of a good YouTube video.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/demo-that-lands\/"}},"summary":"People still underestimate YouTube, so I figured I'd share a data point. Below is a video that did pretty well.","published":"2026-10-06T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/rollercoaster-tycoon-css","title":"rollercoaster tycoon css","updated":"2026-08-23T00:00:00+02:00","content":"<p>I vibed a small CSS framework styled after <a href=\"https:\/\/store.steampowered.com\/app\/285310\/RollerCoaster_Tycoon_Deluxe\/\">RollerCoaster Tycoon<\/a>: <a href=\"https:\/\/koaning.github.io\/rct-css\/\">rct-css<\/a>. It includes bespoke scroll bars, color schemes inspired by the game, and support for elements like modals tand native details tags.<\/p>\n<p>You can pull it in via a CDN or grab it directly from the site. It is just a fun little project if you want to give a web page a nostalgic retro theme park feel.<\/p>\n<h2>Shoutout<\/h2>\n<p>If you grew up with this video-game like me, you might enjoy <a href=\"https:\/\/www.youtube.com\/marcelvos\">the RCT dedicated Marcel Vos YouTube Channel<\/a>.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/rollercoaster-tycoon-css\/"}},"summary":"I vibed a small CSS framework styled after RollerCoaster Tycoon: rct-css. It includes bespoke scroll bars, color schemes inspired by the game, and support for elements like modals tand native details tags.","published":"2026-08-23T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/ranking-3d-scenes","title":"ranking 3d scenes","updated":"2026-08-23T00:00:00+02:00","content":"<p>I found a public eval for <a href=\"https:\/\/threejs.org\">three.js<\/a> over at <a href=\"https:\/\/threejseval.com\">threejseval.com<\/a>. It gives you two generated scenes side by side based on a prompt, and you can interact with them and vote on which one looks better. Over time, the votes build up a ranking showing how well different models handle 3D scene generation. I've been <em>very<\/em> impressed with what some of these models can produce.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/ranking-3d-scenes\/"}},"summary":"I found a public eval for three.js over at threejseval.com. It gives you two generated scenes side by side based on a prompt, and you can interact with them and vote on which one looks better.","published":"2026-08-23T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/scrape-permissions","title":"scrape permissions","updated":"2026-07-21T00:00:00+02:00","content":"<p><a href=\"https:\/\/www.youtube.com\/watch?v=2CjA-03yK8I\">git-scraping<\/a> is awesome. It let's you re-use CI as a pattern to scrape data from the internet and store it publicly in your repository. Here's an example:<\/p>\n<pre><code class=\"language-yml\">name: scrape\non:\n  schedule:\n    - cron: '0 * * * *'   # hourly\n  workflow_dispatch:\npermissions:\n  contents: write         # needed to push the data back\njobs:\n  scrape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v4\n      - run: curl -s https:\/\/example.com\/data.json &gt; data.json\n      - run: |\n          git config user.name \"Automated\"\n          git config user.email \"actions@users.noreply.github.com\"\n          git add -A\n          git commit -m \"Latest data: $(date -u)\" || exit 0\n          git push\n<\/code><\/pre>\n<p>The best part of this is that you only need Git. Everyone already has access to Git. And it also means that everyone can have access to important analytics. No need to add another tool! Not to mention the fact that integrating with a GitHub account is dead simple compared to integrating with any analytics tool.<\/p>\n<h2>permissions<\/h2>\n<p>One small tip if you do this at a company: don't forget about the permission flag. At some point security will, rightfully, be hardened. And you typically don't want CI jobs to make extra merge requests to your repo. So you'll need to do this:<\/p>\n<pre><code class=\"language-yml\">name: scrape\non:\n  schedule:\n    - cron: '0 * * * *'\n  workflow_dispatch:\npermissions:\n  contents: write         # this part!\njobs:\n  scrape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v4\n      - run: curl -s https:\/\/example.com\/data.json &gt; data.json\n      - run: |\n          git config user.name \"Automated\"\n          git config user.email \"actions@users.noreply.github.com\"\n          git add -A\n          git commit -m \"Latest data: $(date -u)\" || exit 0\n          git push\n<\/code><\/pre>\n<p>Without that permission, jobs may fail in the future.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/scrape-permissions\/"}},"summary":"git-scraping is awesome. It let's you re-use CI as a pattern to scrape data from the internet and store it publicly in your repository.","published":"2026-07-21T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/worthy-of-study","title":"worthy of study","updated":"2026-07-17T00:00:00+02:00","content":"<p><em>This post has interactive elements that only work on the site: <a href=\"https:\/\/koaning.io\/posts\/worthy-of-study\/\">view it on koaning.io<\/a>.<\/em><\/p>\n<p>I was working with an agent to produce <a href=\"https:\/\/github.com\/koaning\/wigglystuff\">a new widget<\/a>. I gave it a research task, gave it a direction, and when it came back I immediately stopped prompting it further to investigate what it did. The artifact that was generated wasn't merely functional, it did something that I did not understand and was therefore <strong>worthy of study<\/strong>.<\/p>\n<p>It's an important moment that people show not ignore. But to help explain the situation, try playing with the widget below:<\/p>\n\n\n\n<body>\n<p class=\"hint\">Drag left\/right to scrub a value. Works for touch, mouse, and pen.<\/p>\n<div class=\"formula\" id=\"host\"><\/div>\n<pre class=\"readout\" id=\"readout\">f(0) = ?<\/pre>\n\n<p>That's interesting, right? It feels like you're able to interact with Latex on the web. But how does this work? <a href=\"https:\/\/www.mathjax.org\/\">Mathjax<\/a> puts the entire rendered latex in a single <code>&lt;svg&gt;<\/code> element. So that's impossible to bind events on that, even in hindsight.<\/p>\n<p>So how does the widget work?<\/p>\n<h2>Details of Katex<\/h2>\n<p>The trick is to use a small, nearly hidden, feature of <a href=\"https:\/\/katex.org\/\">katex<\/a> instead.<\/p>\n<p>$$ f(x) = \\frac{1}{\\sigma\\sqrt{2\\pi}} e^{\\frac{(x - \\mu)^2}{2\\sigma}} $$<\/p>\n<p>See that math, this is the latex that generated it.<\/p>\n<pre><code class=\"language-\">$$ f(x) = \\frac{1}{\\sigma\\sqrt{2\\pi}} e^{\\frac{(x - \\mu)^2}{2\\sigma}} $$\n<\/code><\/pre>\n<p>But in Katex you're able to add more information! You could do something like below around $e$.<\/p>\n<pre><code class=\"language-\">\\htmlData{param=mu}{e}\n<\/code><\/pre>\n<p>This isn't standard latex, and it requires adding some extra katex settings.<\/p>\n<pre><code class=\"language-js\">katex.render(expandTemplate(), host, {\n  displayMode: true,\n  throwOnError: true,\n  trust: (ctx) =&gt; ctx.command === \"\\\\htmlData\",\n  strict: (err) =&gt; (err === \"htmlExtension\" ? \"ignore\" : \"warn\"),\n});\n<\/code><\/pre>\n<p>Now, if you look at how $e$ is actually rendered, you'll notice this:<\/p>\n<pre><code class=\"language-html\">&lt;span class=\"enclosing mtight\" data-param=\"mu\"&gt;\n    &lt;span class=\"mord mtight\"&gt;e&lt;\/span&gt;\n&lt;\/span&gt;\n<\/code><\/pre>\n<p>See that? Two things:<\/p>\n<ol>\n<li>Katex renders every element in it's own <code>span<\/code> instead of everything in a single <code>svg<\/code><\/li>\n<li>On top of that katex also provides a mechanism to add data params to the span object. And <em>that<\/em> let's you bind events!<\/li>\n<\/ol>\n<h2>Meta observation<\/h2>\n<p>To be clear, I used an agent to build this widget. But while it was clanking I took a moment to step back and to recognize that the generated code <strong>was worthy of study<\/strong>. It was a moment <strong>worthy of pause<\/strong>.<\/p>\n<p>Not because the coding quality was amazing, but because it reveiled a pattern that I was completely unaware of. And <strong>understanding that pattern<\/strong> is going to help me longer term.<\/p>\n<p>It's allmost like the coding agents makes you a wizard but you still need to understand what spells you're able to cast. And after doing a small deep dive, by recognizing that something was worthy of study, it feels like I gained a new spell that I can cast in the future. You can do a lot of cool things with maths\/animations using this API!<\/p>\n<\/body>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/worthy-of-study\/"}},"summary":"I was working with an agent to produce a new widget. I gave it a research task, gave it a direction, and when it came back I immediately stopped prompting it further to investigate what it did.","published":"2026-07-17T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/vonoroi-keycaps","title":"vonoroi keycaps","updated":"2026-07-04T00:00:00+02:00","content":"<p>Found a little gem on <a href=\"https:\/\/www.reddit.com\/r\/keycapdesigners\/comments\/1uh989j\/voronoi_on_wooting\/\">Reddit<\/a>.<\/p>\n<figure>\n<img alt=\"Uploaded image\" src=\"https:\/\/koaning.io\/posts\/vonoroi-keycaps\/9b827b15-da5a-41bb-8462-a22acdfa046b.jpeg\"\/>\n<figcaption>I mean, I don't know if this is fun to actually type on, and the spacebar doesn't actually follow a vonoroi ... but still!<\/figcaption>\n<\/figure>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/vonoroi-keycaps\/"}},"summary":"Found a little gem on Reddit. I mean, I don't know if this is fun to actually type on, and the spacebar doesn't actually follow a vonoroi ...","published":"2026-07-04T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/mossballs","title":"mossballs","updated":"2026-07-02T00:00:00+02:00","content":"<p><em>This post has interactive elements that only work on the site: <a href=\"https:\/\/koaning.io\/posts\/mossballs\/\">view it on koaning.io<\/a>.<\/em><\/p>\n<p>I been toying with a tiny game made with <a href=\"https:\/\/www.lexaloffle.com\/pico-8.php\">PICO-8<\/a>. You can play it below.<\/p>\n<p><a href=\"https:\/\/koaning.io\/posts\/mossballs\/mossballs.html\">View the embedded content<\/a><\/p>\n<p>Few fun facts about it.<\/p>\n<ul>\n<li>pico8 is a png format that can contain constrained games (up to 65,536 characters, and up to 8,192 tokens). You are capped at how big the game can be and there's an awesome community of folks making mini-games with it.<\/li>\n<li>You can against an AI in this game. Alpha-zero kinds of algorithms will never fit on the small cartridge so I needed a heuristic. I ended up running an auto-research loop for it but it sort-of failed without a lot of manual steering. Part of the story here is that auto-researh excells when the signal isn't noisy. But game simulations are just that.<\/li>\n<\/ul>\n<p>You can also download the cartridge if you want to play on your own device locally.<\/p>\n<p style=\"text-align: center;\">\n<a download=\"\" href=\"https:\/\/koaning.io\/posts\/mossballs\/mossballs.p8.png\" style=\"display: inline-block; margin-top: 1rem; padding: 0.5rem 1rem; border: 1px solid currentColor; border-radius: 4px; text-decoration: none;\">Download the cartridge<\/a>\n<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/mossballs\/"}},"summary":"A tiny game made with PICO-8","published":"2026-07-02T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/lucide-icons","title":"lucide icons","updated":"2026-06-30T00:00:00+02:00","content":"<p><a href=\"https:\/\/lucide.dev\/icons\/\">Lucide<\/a> is a fantastic resource for icons. Just wanted to make a note for myself because I keep forgetting the name.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/lucide-icons\/"}},"summary":"Lucide is a fantastic resource for icons. Just wanted to make a note for myself because I keep forgetting the name.","published":"2026-06-30T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/gmk-mtnu-granite","title":"GMK MTNU Granite","updated":"2026-06-29T00:00:00+02:00","content":"<p>Just some keycap inspiration. The <a href=\"https:\/\/oblotzky.industries\/products\/gmk-mtnu-granite\">GMK MTNU Granite<\/a> set.<\/p>\n<figure>\n<img alt=\"GMK MTNU Granite keycaps, top-down view\" src=\"https:\/\/koaning.io\/posts\/gmk-mtnu-granite\/granite-1.webp\" style=\"margin: 0 auto; display: block;\"\/>\n<\/figure>\n<figure>\n<img alt=\"GMK MTNU Granite keycaps, angled view\" src=\"https:\/\/koaning.io\/posts\/gmk-mtnu-granite\/granite-2.webp\" style=\"margin: 0 auto; display: block;\"\/>\n<\/figure>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/gmk-mtnu-granite\/"}},"summary":"Just some keycap inspiration","published":"2026-06-29T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/google-trends-for-hacker-news","title":"google trends for hacker news","updated":"2026-06-29T00:00:00+02:00","content":"<p>Someone <a href=\"https:\/\/news.ycombinator.com\/item?id=48673671\">made Google Trends for Hacker News<\/a> by indexing 18 years of comments. The tool lives at <a href=\"https:\/\/hackernewstrends.com\">hackernewstrends.com<\/a> and lets you overlay how often terms show up over time. Mostly bookmarking this for myself, but it's a fun way to confirm hunches about when a topic actually took off.<\/p>\n<figure>\n<img alt=\"hackernewstrends.com comparing how often openai and anthropic appear in Hacker News comments over time\" src=\"https:\/\/koaning.io\/posts\/google-trends-for-hacker-news\/00fe9d5c-20be-467f-aa29-5a6752917bfa.webp\"\/>\n<figcaption>openai vs. anthropic, as told by HN comments.<\/figcaption>\n<\/figure>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/google-trends-for-hacker-news\/"}},"summary":"Someone made Google Trends for Hacker News by indexing 18 years of comments. The tool lives at hackernewstrends.com and lets you overlay how often terms show up over time.","published":"2026-06-29T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/fixed-your-headline","title":"fixed your headline","updated":"2026-06-29T00:00:00+02:00","content":"<p>A Billboard chart headline made the rounds: \"Olivia Rodrigo becomes the first woman in history to debut her first ten top 10 Hot 100 hits in the top 10.\"<\/p>\n<p><a href=\"https:\/\/bsky.app\/profile\/chordbug.bsky.social\/post\/3mp24yja3b223\">Lynn<\/a> quote-posted it a theorem that certainly made me giggle.<\/p>\n<blockquote>\n<p>A hit song on the Billboard 100 charts is termed $k$-good if it is <em>ever<\/em> in a weekly top-$k$, and $k$-immediate if it <em>debuts<\/em> in the top-$k$. An artist is $(n,k)$-Olivian if their $n$ first $k$-good hits are all also $k$-immediate.<\/p>\n<p><strong>Headline 1.<\/strong> Olivia Rodrigo is the first $(10,10)$-Olivian woman.<\/p>\n<\/blockquote>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/fixed-your-headline\/"}},"summary":"A Billboard chart headline made the rounds: \"Olivia Rodrigo becomes the first woman in history to debut her first ten top 10 Hot 100 hits in the top 10.\" Lynn quote-posted it a theorem that certainly made me giggle.","published":"2026-06-29T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/graduate-before-you-abandon","title":"graduate before you abandon","updated":"2026-05-15T00:00:00+02:00","content":"<p>I made this YouTube video the other day about how all code, eventually, is abandoned. It doesn't die, because it still exists, but it simply won't have people working on it anymore.<\/p>\n<p>But there's one thing that can prevent it, the code can graduate! It can be that you had an idea so useful that another project, a much larger one, will grab it to run with it.<\/p>\n<p>It's happened twice to me. A few widgets from <a href=\"https:\/\/github.com\/koaning\/wigglystuff\">wigglystuff<\/a> just got ported to <a href=\"https:\/\/marimo.io\/gallery\">marimo<\/a> just like how a few <a href=\"https:\/\/github.com\/koaning\/scikit-lego\">scikit-lego<\/a> components (or at least their spirit) have found their way into <a href=\"https:\/\/scikit-learn.org\/stable\/\">scikit-learn<\/a>.<\/p>\n<p>I wish it could happen to more people because this kind of pollination across projects is exactly what keeps the creativity alive.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=xwuQTYnZo7c\"><img alt=\"Watch on YouTube\" src=\"https:\/\/i.ytimg.com\/vi\/xwuQTYnZo7c\/hqdefault.jpg\"\/><\/a><\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/graduate-before-you-abandon\/"}},"summary":"I made this YouTube video the other day about how all code, eventually, is abandoned. It doesn't die, because it still exists, but it simply won't have people working on it anymore.","published":"2026-05-15T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/redirector","title":"redirector","updated":"2026-05-14T00:00:00+02:00","content":"<p>I work with YouTube for my job and I'm happy to announce that I found a remedy for the extremely distracting landing page. It's a Chrome extension called <a href=\"https:\/\/chromewebstore.google.com\/detail\/redirector\/lioaeidejmlpffbndjhaameocfldlhin?hl=en\">redirector<\/a> that lets you add redirect rules to the browser by hand.<\/p>\n<p>Whenever you'd go to the YouTube landing page it'll redirect you to another page. In my case, I make it go to my YouTube subscriptions. Those are way less distracting and typically show me stuff that I've already seen anyway. Much better!<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/redirector\/"}},"summary":"I work with YouTube for my job and I'm happy to announce that I found a remedy for the extremely distracting landing page. It's a Chrome extension called redirector that lets you add redirect rules to the browser by hand.","published":"2026-05-14T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/the-inversion","title":"the inversion","updated":"2026-05-11T00:00:00+02:00","content":"<p>Been thinking about a quote lately. The quote is from the final episode of the first season of <a href=\"https:\/\/www.shellgame.co\/\">Shell Game<\/a>, which is a great podcast.<\/p>\n<blockquote>\n<p>As far back as 2013, a team of engineers at YouTube hit upon a phenomenon it called \u201cthe inversion\u201d: the point at which the fake content we encounter on the internet outstrips the real. The engineers were developing algorithms to distinguish between authentic human views and manufactured web traffic \u2014 bought-and-paid-for views from bots or \u201cclick farms.\u201d Like the discriminator in a GAN, the team\u2019s algorithms studied the traffic data and tried to understand the difference between normal visitors and bogus ones.<\/p>\n<p>Blake Livingston, an engineer who led the team at the time, told me the algorithm was working from a key assumption: \u201cthat the majority of traffic was normal.\u201d But sometime in 2013, the YouTube engineers realized bot traffic was growing so rapidly that it could soon surpass the human views. When it did, the team\u2019s algorithm might flip and start identifying the bot traffic as real and the human traffic as fake.<\/p>\n<\/blockquote>\n<p>It's something to worry about but it's also an epic nerd snipe for the algorithm designer part of my brain. You need a new breed of algorithm. Not quite classifier, not quite outlier detector and not quite clusterer. Something different.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/the-inversion\/"}},"summary":"Been thinking about a quote lately. The quote is from the final episode of the first season of Shell Game, which is a great podcast.","published":"2026-05-11T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/marketing-niche","title":"marketing niche","updated":"2026-05-03T00:00:00+02:00","content":"<p><a href=\"https:\/\/www.youtube.com\/watch?v=NDaZ8sqRnZM\">From this interview<\/a> I learned about the marketing around <a href=\"https:\/\/niche-game.com\/\">Niche<\/a>. What's interesting here isn't just how the game got developed but also how it eventually got marketed.<\/p>\n<p>It's an indie game and these kinds of games are usually promoted by going to the video gaming YouTubers and getting them to demo\/talk about it. This particular game is about genetics though, so the team also reached out to some science channels.<\/p>\n<p>They should be happy they did because it actually turned out that science\/education YouTube channels picked it up <em>way<\/em> more. It also makes some sense when you think about it. There are <em>so<\/em> many video games out there that the video game YouTubers get to be picky. But those that do science\/genetics may not only be more receptive to over it, they will also likely have an audience that the other channels may never reach. Double win!<\/p>\n<p>Feels like a nice marketing reminder. There's usually more than one niche that you can try to appeal to. And the less obvious ones might end up being more meaningful.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/marketing-niche\/"}},"summary":"From this interview I learned about the marketing around Niche. What's interesting here isn't just how the game got developed but also how it eventually got marketed.","published":"2026-05-03T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/all-the-books-in-the-library","title":"all the books in the library","updated":"2026-04-30T00:00:00+02:00","content":"<p>Carl Sagan has a nice quote about books.<\/p>\n<blockquote>\n<p>\u201cIf I finish a book a week, I will read only a few thousand books in my lifetime, about a tenth of a percent of the contents of the greatest libraries of our time. The trick is to know which books to read.\u201d<\/p>\n<\/blockquote>\n<p>The beauty of the quote is that it holds for many things, not just books. It also holds for languages, tools, frameworks and <em>any<\/em> skill you want to have. It also means that you have to say \"no\" to a lot of books and that you need to invest in your own mechanism to pick the right book.<\/p>\n<p>It also holds true with LLMs. You will never deplete it, and you can't hope to read\/use all of the output that it could produce.<\/p>\n<p>The trick, just like with books, is to know which things to ask for.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/all-the-books-in-the-library\/"}},"summary":"Carl Sagan has a nice quote about books. \u201cIf I finish a book a week, I will read only a few thousand books in my lifetime, about a tenth of a percent of the contents of the greatest libraries of our time.","published":"2026-04-30T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/til-uvx-deno","title":"til uvx deno","updated":"2026-04-24T00:00:00+02:00","content":"<p><a href=\"https:\/\/deno.com\/\">deno<\/a> is a modern Javascript runtime that can run Javascript and Typescript natively. But it is also something that's available to all Python users without the need to install node. Thanks to <a href=\"https:\/\/docs.astral.sh\/uv\/\">uv<\/a>, just run <code>uvx deno<\/code> and you're all set!<\/p>\n<p>I've used it in a project where I want to have some simple unit tests for Javascript via <a href=\"https:\/\/github.com\/capricorn86\/happy-dom\/wiki\/Getting-started\">happy-dom<\/a> but it's also usable as a task runner via <code>uvx deno task build<\/code>. It effectively let's you skip the node toolchain for a bunch of simple use-cases, it's great!<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/til-uvx-deno\/"}},"summary":"deno is a modern Javascript runtime that can run Javascript and Typescript natively. But it is also something that's available to all Python users without the need to install node.","published":"2026-04-24T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/til-flock","title":"til flock","updated":"2026-04-21T00:00:00+02:00","content":"<p>When you auto-deploy with a bash script from cron, the naive setup is something like this:<\/p>\n<pre><code class=\"language-\">* * * * * \/path\/to\/deploy.sh\n<\/code><\/pre>\n<p>This <code>deploy.sh<\/code> script checks if the current git hash is up to date with the main repo. If not, we want to trigger a new build locally and redeploy.<\/p>\n<p>But this has an issue. Cron fires every minute, but <code>docker build<\/code> might a fair bit longer. Before you know it the second run starts while the first is still building, and now you've got two two builds getting into each-other.<\/p>\n<p>It turns out there's a fix: wrap it in <code>flock<\/code>.<\/p>\n<pre><code class=\"language-\">* * * * * flock -n \/tmp\/marimo-deploy.lock \/path\/to\/deploy.sh\n<\/code><\/pre>\n<p>What <code>flock<\/code> does:<\/p>\n<ul>\n<li>It grabs an exclusive lock on the file <code>\/tmp\/marimo-deploy.lock<\/code>.<\/li>\n<li>It runs the command while holding it.<\/li>\n<li>Next, it releases the lock when the command exits.<\/li>\n<\/ul>\n<p>The <code>-n<\/code> (non-blocking) flag is the key bit: if the lock is already held, <code>flock<\/code> exits immediately instead of queueing up. So if a build is still running when the next cron tick fires, the second invocation doesn't run.<\/p>\n<p>One issue with the setup is that the deploy script could hang for whatever reason. So it's best to always add a timeout for this as well.<\/p>\n<pre><code class=\"language-\">* * * * * flock -n \/tmp\/marimo-deploy.lock timeout 10m \/path\/to\/deploy.sh\n<\/code><\/pre>\n<p>Feels like a nice pattern for those homelab moments where you don't want a webhook to push into your machine and you want to pull from GitHub on occasion instead.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/til-flock\/"}},"summary":"When you auto-deploy with a bash script from cron, the naive setup is something like this: ``` * * * * * \/path\/to\/deploy.sh ``` This `deploy.sh` script checks if the current git hash is up to date with the main repo.","published":"2026-04-21T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/you-win-while-training","title":"you win while training","updated":"2026-04-10T00:00:00+02:00","content":"<p>Back when I was rowing in college a teammate said an incredibly memorable thing:<\/p>\n<blockquote>\n<p>You don't win a rowing match during the match, you win it during the training.<\/p>\n<\/blockquote>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/you-win-while-training\/"}},"summary":"Back when I was rowing in college a teammate said an incredibly memorable thing:  You don't win a rowing match during the match, you win it during the training.","published":"2026-04-10T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/legos-vs-3d-printers","title":"legos vs 3d printers","updated":"2026-04-09T00:00:00+02:00","content":"<p>Let's say, as a dad, that there are two cool kinds of creative toys you could make with your kid.<\/p>\n<ol>\n<li>You buy a 3d printer, and print what-ever creative thing you two can come up with.<\/li>\n<li>You buy lego, and take things apart together when you want to make an adjustment.<\/li>\n<\/ol>\n<p>The 3d printer is way more flexible in what shapes it can create. But once it's created, you cannot change it anymore. The only thing you can do is to put down the shape, walk to the computer and then re-design. Then, you have to wait for the 3d printer to print the new shape and hope for the best because there is a disconnect between holding something in your hand and seeing a design plan on a screen.<\/p>\n<p>Lego is different. Don't like a part? Take it out, and swap it. Not only is this fun, but you are actively using your hands the whole time! By interacting with the shape, you also become better at creating it. It's a super direct feedback mechanism, very different to the 3d printer.<\/p>\n<p>The reason I bring up this story is because it describes why I still like to code, be it manually or agentically, in Python notebooks. It allows me to think more about the pieces of legos that I want to have and how they are going to click together. This lets me play and understand the problem I am trying to solve much better. And it also gives me the ability to quickly iterate on my ideas. Even when I decide to drop a lego-piece for now, I can still easily pick it up again later. It's also a lot easier to explain what the code is doing to a 3rd party when you have the right widgets\/elements.<\/p>\n<p>I've met peers who prefer to fully vibe code an app for each and every use-case. There's a place and a time for that. But that feels too much like a 3d-printer to me and sometimes I want software that's just more like legos.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/legos-vs-3d-printers\/"}},"summary":"Let's say, as a dad, that there are two cool kinds of creative toys you could make with your kid. You buy a 3d printer, and print what-ever creative thing you two can come up with.","published":"2026-04-09T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/the-light-of-a-cpu","title":"the light of a CPU","updated":"2026-04-08T00:00:00+02:00","content":"<p>Just <a href=\"https:\/\/x.com\/ThePrimeagen\/status\/2040120066465767897\">quoting this tweet<\/a>.<\/p>\n<blockquote>\n<p>I would like to make my apologies for defending M$, but I must from time to time. I have to put respect on github for handling the amount of shit code that has been added over the last 3 months. literally 10s of billions of lines of code that will never see the light of a CPU<\/p>\n<\/blockquote>\n<p>It does a good job of describing something that I've been wondering. How many of those lines of code are written only to never ever run anywhere?<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/the-light-of-a-cpu\/"}},"summary":"Just quoting this tweet. I would like to make my apologies for defending M$, but I must from time to time.","published":"2026-04-08T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/video-game-write-offs","title":"video game write-offs","updated":"2026-04-08T00:00:00+02:00","content":"<p>It seems that companies might have very good reasons to hang on to a video game IP even if they have no intention of using it. I imagined this would mainly be to prevent another company from using the IP, but <a href=\"https:\/\/www.youtube.com\/watch?v=GGIHmX4uDfE\">Michael Cain<\/a>, a developer on <a href=\"https:\/\/en.wikipedia.org\/wiki\/Arcanum:_Of_Steamworks_and_Magick_Obscura\">Arcanum<\/a>, has another reason: taxes!<\/p>\n<p>When Microsoft bought Activision, they had to assign a dollar value to every \"dead\" IP they acquired\u2014including Arcanum. Let\u2019s say they assigned it a value of $5 million.<\/p>\n<p>If Microsoft decides they will never make Arcanum 2, they can write that $5 million off as a total loss to lower their tax bill.<\/p>\n<p>So that means that if anyone wants to buy the IP, even if Microsoft is never planning on doing something with it, it can still be more valuable to sit on it. It's worth more as a tax-shield than a source of revenue.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/video-game-write-offs\/"}},"summary":"It seems that companies might have very good reasons to hang on to a video game IP even if they have no intention of using it. I imagined this would mainly be to prevent another company from using the IP, but Michael Cain, a developer on Arcanum, ...","published":"2026-04-08T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/once-the-ball-is-rolling","title":"once the ball is rolling","updated":"2026-04-07T00:00:00+02:00","content":"<p>It can be hard to go from 0 to 1. But once you're there, it's much easier to go from 1 to 2.<\/p>\n<p>I was reminded of this today when I looked at the YT stats for the marimo channel. It took 6 months to get our first 500,000 views. But it only took 3 months to go from 1,000,000 to 1,500,000.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/once-the-ball-is-rolling\/"}},"summary":"It can be hard to go from 0 to 1. But once you're there, it's much easier to go from 1 to 2.","published":"2026-04-07T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/dice-problems","title":"dice problems","updated":"2026-04-03T00:00:00+02:00","content":"<p>If you want to dive into a few fun math practice problems, you might like <a href=\"https:\/\/www.karlin.mff.cuni.cz\/~nagy\/NMSA202\/dice1.pdf\">this collection of dice problems<\/a>. It's remarkable how deep you can go with a few dice.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/dice-problems\/"}},"summary":"If you want to dive into a few fun math practice problems, you might like this collection of dice problems. It's remarkable how deep you can go with a few dice.","published":"2026-04-03T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/notes-on-youtube-and-devrel","title":"notes on youtube and devrel","updated":"2026-04-01T00:00:00+02:00","content":"<p>I've been doing developer relations for over five years now, and YouTube has been a big part of that. The <a href=\"https:\/\/www.youtube.com\/@marimo-team\">marimo channel<\/a> sits around 1.5 million views and 10k subscribers after a year, so I like to think I've learned a thing of two that others might learn from.<\/p>\n<p>I'm writing this for DevRel people who might be curious to upload videos to share their (hopefully good) ideas.<\/p>\n<ul>\n<li><strong>YouTube is a huge.<\/strong> It stands as one of the largest search engines ever now. If you have a tool that's worth knowing about, odds are people are going to learn from it by searching on YouTube as opposed to Google. That means that either you put a video there such that you can own the message, or you're going to have to accept the voice of some influencer to do this for you.<\/li>\n<li><strong>Thumbnails and titles are important.<\/strong> People click before they watch something. As always in life, try to keep things simple. You can overdo it with thumbnails. But a small pro tip. Try to go for a background that's common across all the videos. That way if someone likes your content, your background is a thing that they will recognize.<\/li>\n<li><strong>Hooks matters less than story.<\/strong> Grabbing a hook to pull someone's attention tends to be common advice, but it will only get you so far. If you overpromise, people will remember and it's your job to stand out as a reliable source of information. So instead of worrying about the introduction, maybe you should worry about the full story of the video first. Once the story is solid, making the introduction is going to be a lot easier.<\/li>\n<li><strong>Short form content is increasingly becoming the norm.<\/strong> It's content that's easier to make, easier to get high view numbers for, but it's also content that shows up much less when users search for you.<\/li>\n<li><strong>Subscribers matter way less than they used to.<\/strong> It used to be the case that the algorithm would favor a high subscriber count. It feels that that's less the case. It's more preferred that you have a video that is watched till the end.<\/li>\n<li><strong>Resist the views temptation.<\/strong> Views, that's the thing that's measurable. But that's also a distraction. Remember that anything you do on YouTube is meant to be a funnel for \"another thing\" you're trying to promote. Views matter less than that \"other thing\". It's not necessarily the case that download numbers correlate with view counts on YouTube. So you want people to see your video, sure, but the video should also convince people to do something after they see it. Influencers might care more about viewcounts for their sponsors, but you should care<\/li>\n<li><strong>Analytics are deceiving.<\/strong> A view doesn't imply a single person saw one video. If it's a YouTube short a view is counted twice, or even three times, if the video loops back to the start. More important metrics exist, like number of (new) viewers, but these require a drill down in analytics.<\/li>\n<li><strong>Show don't tell.<\/strong> Too many videos don't take the actual efforts to even run a line of code. When you're doing developer relations, you're talking to adults here. So why would you repeat what's listed on the documentation page? Go a step further. Be enthusiastic. Show that you care!<\/li>\n<li><strong>Having a popular channel is very valuable.<\/strong> When the channel was small, it was hard for us to find guests who might want to appear on a livestream. Now that the channel is bigger, there's a lot more inbound for this. Sure, it might take a year before you get there, but do consider it's an investment. One that can pay off well.<\/li>\n<li><strong>Buy decent gear.<\/strong> The camera matters less than the microphone. But you can't expect to get people to take your video serious with a potato quality video.<\/li>\n<\/ul>\n<p>Just some points, feel free to take a lesson out of it. I also have <a href=\"https:\/\/www.youtube.com\/watch?v=kPXgh_2VJxY\">this video<\/a> and <a href=\"https:\/\/www.youtube.com\/watch?v=QlAXtCzVaiM\">this video<\/a> on my recording setup for extra details.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/notes-on-youtube-and-devrel\/"}},"summary":"I've been doing developer relations for over five years now, and YouTube has been a big part of that. The marimo channel sits around 1.5 million views and 10k subscribers after a year, so I like to think I've learned a thing of two that others mig...","published":"2026-04-01T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/prune-early-and-often","title":"prune early and often","updated":"2026-03-31T00:00:00+02:00","content":"<p><a href=\"https:\/\/docs.astral.sh\/uv\/\">uv<\/a> is amazing but it does come with a sneeky little downside. Every time and you create a cache there's a good chance that it will stick around for-ever. Especially if you create many demo projects with their own environment.<\/p>\n<p>That's why, like flossing, you'll want to frequently do this:<\/p>\n<pre><code class=\"language-\">uv cache prune \n<\/code><\/pre>\n<p>Just today this saved 168.2Gb from my drive!<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/prune-early-and-often\/"}},"summary":"uv is amazing but it does come with a sneeky little downside. Every time and you create a cache there's a good chance that it will stick around for-ever.","published":"2026-03-31T00:00:00+02:00"},{"id":"https:\/\/koaning.io\/posts\/marathon-data","title":"marathon data","updated":"2026-03-27T00:00:00+01:00","content":"<p><a href=\"https:\/\/www.researchgate.net\/publication\/301571201_Reference-Dependent_Preferences_Evidence_from_Marathon_Runners\">This paper<\/a> had an interesting chart:<\/p>\n<figure>\n<img alt=\"Uploaded image\" src=\"https:\/\/koaning.io\/posts\/marathon-data\/7155447f-69a6-44e2-b97b-7e94de8b61b2.webp\"\/>\n<figcaption>The time it took for a large group of people to finish a marathon.<\/figcaption>\n<\/figure>\n<p>Notice how this marathon chart has spikes at precise half-hour marks? These numbers are self reported and they also serve as an interesting reminder not to trust data at face value.<\/p>","link":{"@attributes":{"href":"https:\/\/koaning.io\/posts\/marathon-data\/"}},"summary":"This paper had an interesting chart:           The time it took for a large group of people to finish a marathon. Notice how this marathon chart has spikes at precise half-hour marks?","published":"2026-03-27T00:00:00+01:00"}]}