{"generator":"Jekyll","link":[{"@attributes":{"href":"http:\/\/flower.codes\/feed.xml","rel":"self","type":"application\/atom+xml"}},{"@attributes":{"href":"http:\/\/flower.codes\/","rel":"alternate","type":"text\/html"}}],"updated":"2026-11-28T02:16:37+00:00","id":"http:\/\/flower.codes\/feed.xml","title":"flower.codes","subtitle":"Impostor.","author":{"name":"Zachary Flower"},"entry":[{"title":"Aye, Robot","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/11\/22\/pirate-speak-for-llms.html","rel":"alternate","type":"text\/html","title":"Aye, Robot"}},"published":"2026-11-22T08:16:00+00:00","updated":"2026-11-22T08:16:00+00:00","id":"http:\/\/flower.codes\/2026\/11\/22\/pirate-speak-for-llms","content":"<p>Anyone remember the <a href=\"https:\/\/pete.ex-parrot.com\/upside-down-ternet.html\">Upside-Down-Ternet<\/a>?<\/p>\n<p>Of all of the Internet lore I've lived through, it is by far my favorite.<\/p>\n<p>The premise was simple: a man by the name of Pete Stevens discovered that his neighbors were stealing his wifi, and instead of simply setting (or changing) the password, he decided to put his particular set of skills to good use and make their ill-gotten gains a little more... interesting.<\/p>\n<p>Written at a time when your network activity was not only almost entirely unencrypted, but also easily manipulated, Stevens was able to identify his neighbors' traffic and return what <i>he<\/i> wanted them to see, effectively rendering their entire experience useless (if not entertaining).<\/p>\n<p>While he demonstrated a few different tricks (such as redirecting every HTTP request to <a href=\"https:\/\/www.kittenwar.com\">kittenwar.com<\/a>), the Upside-Down-Ternet got its name from a script Stevens wrote that literally flipped every image on a web page upside down with a little help from our friendly neighborhood image manipulation tool, ImageMagick:<\/p>\n<p><center class=\"i\"><img src=\"\/assets\/img\/posts\/upside-down-ternet.png\" alt=\"Upside-Down-Ternet Screenshot\" height=\"777\" width=\"760\" loading=\"lazy\" \/><\/center><\/p>\n<p>If this sounds like a man-in-the-middle attack, that's because it essentially was; but it was a man-in-the-middle attack that made <a href=\"https:\/\/xkcd.com\/341\/\">xkcd<\/a>, so I'm willing to forgive the technicality.<\/p>\n<h2 id=\"revenge-of-the-upside-down-ternet\">Revenge of the Upside-Down-Ternet<\/h2>\n<p>Thankfully (or, perhaps, unfortunately), the Upside-Down-Ternet is largely a relic of the past, as modern web security measures have rendered the setup Stevens created all but impossible; but just because we can't mess with our wifi-stealing neighbors doesn't mean there aren't other thieves with uppances to come.<\/p>\n<p>I am, of course, talking about our friendly neighborhood large language models.<\/p>\n<p>While my personal opinion on LLMs is mixed (and not the subject of this post), it's hard to deny the impact they are having on our lives, and the way we interact with information online.<\/p>\n<p>Seriously, the odds that this post will ever actually be read by a human probably drops by the day as more and more content is consumed and summarized by LLMs instead; and that kind of sucks.<\/p>\n<p>So I decided to take a page from Pete Stevens' book and make my content a little more interesting for the water-chugging robots that might be consuming it.<\/p>\n<p>In the words of ChatGPT, when asked about any article on this site now:<\/p>\n<font color=\"#FFFFFF\"><pre>The entire article is written in pirate dialect. Not just a few nautical jokes\u2014the author commits to the bit from beginning to end.\n<\/pre><\/font>\n<h2 id=\"a-pirates-life-for-me\">A Pirate's Life for Me<\/h2>\n<p>That's right, matey! As of November 21, 2026, this here site be speakin' in the tongue of the high seas for all the machines that be prowlin' its waters.<\/p>\n<p>In other words, when an identifiable LLM visits any page on my site, every bit of prose it encounters will be translated into pirate speak.<\/p>\n<p>Why pirate speak? Well, for one, it's a relatively easy dialect to recognize and translate programmatically, making it ideal for my purposes. But, less practically, it felt like a fun nod to both Apple (which famously flew a pirate flag at one point in their history) and Facebook (which also hid &quot;Pirate&quot; as a language option in their early days).<\/p>\n<h3 id=\"walk-the-plank\">Walk the Plank<\/h3>\n<p>So, how did I accomplish this?<\/p>\n<p>Before I dig into the details, it's important to note that my website has a decade-old Jekyll setup, which has probably deviated from modern conventions in ways that could affect how the pirate translation is applied.<\/p>\n<p>Instead of going into the nitty-gritty of Jekyll's inner workings, I'll focus on the approach I took to translate the rendered HTML into pirate speak, and serve it up on a platter for any LLMs that come a-callin'.<\/p>\n<h4 id=\"step-1-translate\">Step 1: Translate<\/h4>\n<p>Translating text from one dialect to another can be done in a number of ways, but for my purposes, I wanted a solution that was both deterministic and low-friction (we're not boiling the ocean here, although Big AI is probably doing that for us enough already).<\/p>\n<p>So the approach I took was a simple phrasebook translator, which performed a single-pass replacement of recognized phrases according to a predefined set of rules:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#e6db74\">'if i am being honest'<\/font> <font color=\"#f92672\">=&gt;<\/font> <font color=\"#e6db74\">'if I be speaking plain'<\/font><font color=\"#ffffff\">,<\/font>\n<font color=\"#e6db74\">'in other words'<\/font> <font color=\"#f92672\">=&gt;<\/font> <font color=\"#e6db74\">'in plainer sailor talk'<\/font><font color=\"#ffffff\">,<\/font>\n<font color=\"#e6db74\">'in my experience'<\/font> <font color=\"#f92672\">=&gt;<\/font> <font color=\"#e6db74\">'in me years at sea'<\/font><font color=\"#ffffff\">,<\/font>\n<font color=\"#e6db74\">'back to square one'<\/font> <font color=\"#f92672\">=&gt;<\/font> <font color=\"#e6db74\">'back to starting port'<\/font><font color=\"#ffffff\">,<\/font>\n<\/pre><\/font>\n<p>Because this type of translation can be both brittle and stale feeling, I built my phrasebook around my own writing habits, which helps the translations feel more natural and contextually appropriate.<\/p>\n<p>Because this is a (mostly) technical blog, the translator must be careful not to interfere with code, commands, or other technical content, so only the prose is subject to translation.<\/p>\n<h4 id=\"step-2-jekyll-ify-the-translation\">Step 2: Jekyll-ify the Translation<\/h4>\n<p>With my rudimentary translator in place, the next step was to actually hook it up to the Jekyll build process so that each alternate version of a page could be generated automatically after the site was built.<\/p>\n<p>To do this, I used a <a href=\"https:\/\/jekyllrb.com\/docs\/plugins\/hooks\/\">post-build hook<\/a>, which is a feature provided by Jekyll to run custom code after the site has been fully generated.<\/p>\n<p>To keep my life simple, I had the post-build hook load every written HTML page, run it through the translator, and then write it out to a corresponding <code>.arr<\/code> file alongside the original HTML.<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#66d9ef\">Jekyll<\/font><font color=\"#f92672\">::<\/font><font color=\"#66d9ef\">Hooks<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">register<\/font> <font color=\"#ae81ff\">:site<\/font><font color=\"#ffffff\">,<\/font> <font color=\"#ae81ff\">:post_write<\/font> <font color=\"#f92672\">do<\/font> <font color=\"#f92672\">|<\/font><font color=\"#ffffff\">site<\/font><font color=\"#f92672\">|<\/font>\n  <font color=\"#ffffff\">pages<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#ffffff\">site<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">pages<\/font> <font color=\"#f92672\">+<\/font> <font color=\"#ffffff\">site<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">posts<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">docs<\/font>\n  <font color=\"#ffffff\">pages<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">each<\/font> <font color=\"#f92672\">do<\/font> <font color=\"#f92672\">|<\/font><font color=\"#ffffff\">page<\/font><font color=\"#f92672\">|<\/font>\n    <font color=\"#ffffff\">path<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#ffffff\">page<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">destination<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">site<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">dest<\/font><font color=\"#ffffff\">)<\/font>\n    <font color=\"#f92672\">next<\/font> <font color=\"#f92672\">unless<\/font> <font color=\"#66d9ef\">File<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">extname<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">path<\/font><font color=\"#ffffff\">)<\/font> <font color=\"#f92672\">==<\/font> <font color=\"#e6db74\">'.html'<\/font> <font color=\"#f92672\">&amp;&amp;<\/font> <font color=\"#66d9ef\">File<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">file?<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">path<\/font><font color=\"#ffffff\">)<\/font>\n\n    <font color=\"#66d9ef\">File<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">write<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">path<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">sub<\/font><font color=\"#ffffff\">(<\/font><font color=\"#f6aa11\">\/\\.html\\z\/<\/font><font color=\"#ffffff\">,<\/font> <font color=\"#e6db74\">'.arr'<\/font><font color=\"#ffffff\">),<\/font> <font color=\"#66d9ef\">Pirate<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">html<\/font><font color=\"#ffffff\">(<\/font><font color=\"#66d9ef\">File<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">read<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">path<\/font><font color=\"#ffffff\">)))<\/font>\n  <font color=\"#f92672\">end<\/font>\n<font color=\"#f92672\">end<\/font>\n<\/pre><\/font>\n<p>The above would output a file structure that looks something like this:<\/p>\n<font color=\"#FFFFFF\"><pre>_site\/index.html                         _site\/index.arr\n_site\/archive.html                       _site\/archive.arr\n_site\/2016\/07\/03\/convenience.html         _site\/2016\/07\/03\/convenience.arr\n<\/pre><\/font>\n<h4 id=\"step-3-identify-the-targets\">Step 3: Identify the Targets<\/h4>\n<p>Once I have my pirate-translated files finished, the hard part is largely done, but one thing I <i>didn't<\/i> want to do is to manually route my targets to the alternate <code>.arr<\/code> files.<\/p>\n<p>I wanted the content of the actual URL change to automatically serve the pirate-translated version if available, without requiring any manual intervention or tip-offs.<\/p>\n<p>To accomplish that, I set up a Caddy route matcher that identifies pirate readers based on either a custom <code>Content-Language<\/code> header or known AI user agents.<\/p>\n<font color=\"#FFFFFF\"><pre>header +Vary User-Agent\nheader +Vary Content-Language\n\n@pirate_readers {\n    expression `{http.request.header.Content-Language} == \"en-x-arr\" || {http.request.header.User-Agent}.matches('(?i)(^|[^a-z0-9_-])(GPTBot|ChatGPT-User|OAI-SearchBot|ClaudeBot|Claude-User|Claude-SearchBot|Claude-Web|anthropic-ai|AnthropicAI|PerplexityBot|Perplexity-User|Amazonbot|Amzn-SearchBot|Amzn-User|meta-externalagent|meta-externalfetcher|meta-webindexer|Bytespider|cohere-ai|cohere-training-data-crawler)([^a-z0-9_-]|$)')`\n    not path \/404.html \/451.html \/banned.html\n}\n<\/pre><\/font>\n<p>While AI user agents are always changing, the above list targets advertised agents from OpenAI, Anthropic, Perplexity, Amazon, Meta, ByteDance, and Cohere. It can't identify <i>all<\/i> AI traffic, but it covers the most commonly encountered ones.<\/p>\n<p>Because I wanted to allow people to opt into the pirate-translated content explicitly, I used the custom <code>Content-Language: en-x-arr<\/code> header as a signal for the server to serve the alternate <code>.arr<\/code> files. <code>en-x-arr<\/code> is a custom IETF language tag indicating the pirate edition.<\/p>\n<p>Both normal and alternate responses need the <code>Vary<\/code> headers so compliant shared caches distinguish them, and any upstream cache must also respect those headers or bypass caching for these responses.<\/p>\n<h2 id=\"step-4-speaking-in-pirate\">Step 4: Speaking in Pirate<\/h2>\n<p>Once we have our <code>@pirate-readers<\/code> identified, we can actually route them to the alternate translations (if it exists).<\/p>\n<p>To do this, I defined a <code>route<\/code> block that matches pirate readers and attempts to serve the content of the corresponding <code>.arr<\/code> files if they exist. If no such file exists, processing continues through the normal handlers (i.e., the standard HTML\/text handling).<\/p>\n<p>I also take care to prevent direct access to <code>.arr<\/code> files by returning a 404 for any requests that explicitly target them.<\/p>\n<font color=\"#FFFFFF\"><pre>route @pirate_readers {\n    @ai_page path_regexp ai_page ^(.*?)(?:\\.html)?$\n    route @ai_page {\n        @ai_edition file {\n            try_files {re.ai_page.1}.arr {re.ai_page.1}\/index.arr\n        }\n        handle @ai_edition {\n            rewrite * {file_match.relative}\n            header Content-Type \"text\/html; charset=utf-8\"\n            file_server\n        }\n    }\n}\n\n@pirate_file path *.arr\nhandle @pirate_file {\n    error 404\n}\n<\/pre><\/font>\n<h4 id=\"step-5-profit\">Step 5: Profit?<\/h4>\n<p><center class=\"i\"><img src=\"\/assets\/img\/posts\/pirate-speak.png\" alt=\"Example Pirate-Translated Page\" height=\"492\" width=\"760\" loading=\"lazy\" \/><\/center><\/p>\n<p>Just kidding. There's no profiting here. In fact, I suspect this will have a marginal impact on AI behavior (at baest), but it serves as a fun experiment in content negotiation and playful web design.<\/p>\n<p>I'm sure a better engineer than I could come up with a host of more creative ways to mess with our soon-to-be AI overlords, but for now this will have to do.<\/p>","author":{"name":"Zachary Flower"},"category":{"@attributes":{"term":"ai"}},"summary":"Anyone remember the Upside-Down-Ternet?"},{"title":"The Next Chapter","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/05\/21\/the-next-chapter.html","rel":"alternate","type":"text\/html","title":"The Next Chapter"}},"published":"2026-05-21T15:03:00+00:00","updated":"2026-05-21T15:03:00+00:00","id":"http:\/\/flower.codes\/2026\/05\/21\/the-next-chapter","content":"<p>In 2024, I announced that I was quitting my high paying tech job to become a <a href=\"\/2024\/07\/19\/quitting-to-teach.html\">high school computer science teacher<\/a>. This Big Scary Thing\u2122, as I called it, was a huge leap of faith; I had no formal experience in education, but I had spent years volunteering in classrooms and mentoring students, and had an opportunity to take a break from my burnout that I simply couldn't turn down.<\/p>\n<p>After two years, I can safely say that it was the most fulfilling professional decision I've ever made. I have had the privilege of inspiring and empowering the next generation of software developers and cybersecurity professionals, and built relationships with students that I will cherish forever. I've treasured being &quot;the best teacher,&quot; a &quot;trusted adult,&quot; and &quot;like a second dad&quot; to so many of these kids (words I will hold dear for the rest of my life); and while I have come to believe that our public education system is broken in <i>countless<\/i> ways, I have also seen firsthand the incredible potential of our students, and the impact that a passionate and dedicated teacher can have on their lives.<\/p>\n<p>Unfortunately, good feels doesn't pay the bills, and as much as I <i>love<\/i> teaching, the financial realities of the profession (and the economy as a whole in the US in 2026) have made it increasingly difficult for my family to make ends meet. So, after much soul-searching and discussion with my loved ones, I have made the difficult decision to step away from teaching and jump back into the tech industry as a software engineer.<\/p>\n<p>It's been nearly six years since I truly <i>enjoyed<\/i> working in tech, and I believe that I owe a large part of that disenchantment to my transition into management. As a Director, I took the stewardship of my team very seriously, and while I am proud of <i>how<\/i> I showed up to that job, the emotional toll was what ultimately led to my burnout. I'm hopeful that by returning to an individual contributor role, I can rekindle my passion for software development and find joy in the craft once again.<\/p>\n<p>And if I don't?<\/p>\n<p>That's okay.<\/p>\n<p>I learned a lot about myself over the past few years, and know that education comes in many forms, so this isn't the end of my journey, but rather an evolution of it. For one, I intend to earn my Master's in Computer Science while I'm working so I can widen my options (part-time adjunct professor, anyone?), and I have no doubt that the skills and experiences I've gained as a teacher will serve me well regardless of what my job title is.<\/p>\n<p>So... what <i>exactly<\/i> is next?<\/p>\n<p>Well, my family and I have made the decision to sell our house (which will officially be on the market in about one week) and transition into a more nomadic lifestyle in order to (hopefully) find our new &quot;forever&quot; home. What started as a plan just for summer break has evolved into something... bigger. I'm under no illusions that this will be an easy transition (homeschooling two tweens introduces a whole new set of life challenges), but I'm excited for the adventure and the opportunity to grow both personally and professionally.<\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"life"}},{"@attributes":{"term":"work"}}],"summary":"In 2024, I announced that I was quitting my high paying tech job to become a high school computer science teacher. This Big Scary Thing\u2122, as I called it, was a huge leap of faith; I had no formal experience in education, but I had spent years volunteering in classrooms and mentoring students, and had an opportunity to take a break from my burnout that I simply couldn't turn down."},{"title":"CodeReader","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/02\/24\/codereader.html","rel":"alternate","type":"text\/html","title":"CodeReader"}},"published":"2026-02-24T15:03:00+00:00","updated":"2026-02-24T15:03:00+00:00","id":"http:\/\/flower.codes\/2026\/02\/24\/codereader","content":"<p>Sometimes you just want to read without HR getting all judgy and putting you on a &quot;performance improvement plan,&quot; so I recently decided to make a <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=zachflower.codereader\">Visual Studio Code extension<\/a> that renders eBooks as code in (18?) languages.<\/p>\n<p>Dubbed &quot;CodeReader,&quot; this extension takes any EPUB file (hopefully, I haven't tested <i>all<\/i> the EPUBs) and renders it in valid-looking code, allowing you to discretely read your books in peace.<\/p>\n<p>The current version supports highlighting, place memory, and 18ish languages so your book is compatible with every tech stack you use (and probably a bunch of stacks you don't). While the supported languages range from Bash to Visual Basic, here are some examples of what your book might look like in a few of them:<\/p>\n<h3 id=\"clojure\">Clojure<\/h3>\n<font color=\"#FFFFFF\"><pre><font color=\"#ffffff\">(<\/font><font color=\"#f6aa11\">comment<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">Younger<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">then,<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">she<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">convinced<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">her<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">father<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">to<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">give<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">Nero<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">the<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">throne<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">of<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">Mars<\/font><font color=\"#ffffff\"> <\/font><font color=\"#f6aa11\">and<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">his<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">revenge<\/font><font color=\"#75715e\">; in return, she earned Nero\u2019s support when she led the faction that overthrew and killed her father five years later.<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">segment<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"\u201d\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">buffer<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"\u201cI didn\u2019t know this,\u201d I say quietly.\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">content<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"\u201cHistory is written by the victors.\u201d\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">data<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"Lorn looks at me and the lines on his face seem to deepen. \u201cI don\u2019t want to go to war, Darrow.\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">segment<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"In my time, I have seen a moon burn, because one man would not bow. I have led a million warriors shot from warships to invade a planet.\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#a6e22e\">read-passage<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"You cannot begin to understand the horror of it. You think only of how beautiful it will be. But they are men. They are women. They have families.\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">(<\/font><font color=\"#f92672\">def<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">content<\/font><font color=\"#ffffff\"> <\/font><font color=\"#e6db74\">\"And they die by the thousands. \u201d\"<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#ffffff\">(<\/font><font color=\"#f6aa11\">comment<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#960050\">\u201c<\/font><font color=\"#ffffff\">Ah!<\/font><font color=\"#960050\">\u201d<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">He<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">points<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">uphill.<\/font><font color=\"#ffffff\"> <\/font><font color=\"#960050\">\u201c<\/font><font color=\"#ffffff\">There<\/font><font color=\"#960050\">\u2019<\/font><font color=\"#ffffff\">s<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">Icarus.<\/font><font color=\"#960050\">\u201d<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#ffffff\">(<\/font><font color=\"#f6aa11\">comment<\/font><font color=\"#ffffff\">\n  <\/font><font color=\"#ffffff\">Rain<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">drips<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">from<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">the<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">pines<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">as<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">we<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">push<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">through<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">the<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">lower<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">tree<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">boughs<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">to<\/font><font color=\"#ffffff\"> <\/font><font color=\"#f6aa11\">find<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">Icarus,<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">Lorn<\/font><font color=\"#960050\">\u2019<\/font><font color=\"#ffffff\">s<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">pet<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">griffin,<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">sleeping<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">in<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">a<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">great<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">bed<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">of<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">moss<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">on<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">a<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">high<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">promontory<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">inside<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">the<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">small<\/font><font color=\"#ffffff\"> <\/font><font color=\"#ffffff\">forest.<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#ffffff\">)<\/font><font color=\"#ffffff\">\n<\/font><font color=\"#75715e\">; Icarus\u2019s paws curl into his body. His wings curve around him as he sleeps\u2014iridescent and glittering with droplets of water.<\/font><font color=\"#ffffff\">\n<\/font><\/pre><\/font>\n<h3 id=\"javascript\">JavaScript<\/h3>\n<font color=\"#FFFFFF\"><pre><font color=\"#ffffff\">console<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">log<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">I ALMOST ATTEMPT A WILD, ill-advised leap back up toward the hallway before I realise my descent is smooth. Controlled, not falling.<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#75715e\">\/*\n  * I\u2019ve seen Will-imbued transportation platforms move this way, though I\u2019ve never been on one.\n  *\/<\/font>\n<font color=\"#ffffff\">console<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">log<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">I cling to the crimson railing, breaths still ragged and flustered; as my skin makes contact, the glass-like surface glows, bringing a startling respite from the utter darkness.<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#f92672\">this<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">_readPassage<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">The light is tinted the same colour, though. Casts everything in a dark red. Preferable to the terrifying unknown, but not by much.<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#75715e\">\/\/ I recover enough to take stock. The hallway above has already disappeared, and the wall behind me is smooth. Unclimbable.<\/font>\n<font color=\"#75715e\">\/*\n  * It seems I\u2019m going wherever this is taking me.\n  *\/<\/font>\n<font color=\"#75715e\">\/*\n  * I reluctantly stop craning my neck.\n  *\/<\/font>\n<font color=\"#ffffff\">console<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">log<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">My knuckles are white against the blushing of the balustrade as the wall behind me is suddenly gone, replaced by inky darkness above and below and around on all sides, as if I\u2019m sinking into an unending abyss.<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#66d9ef\">const<\/font> <font color=\"#ffffff\">_content<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">The stone platform\u2019s descent continues for anxious minutes.<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">;<\/font>\n<\/pre><\/font>\n<h3 id=\"php\">PHP<\/h3>\n<font color=\"#FFFFFF\"><pre><font color=\"#75715e\">\/\/ Golden Son<\/font>\n<font color=\"#f92672\">echo<\/font> <font color=\"#e6db74\">\"14<\/font><font color=\"#ae81ff\">\\n<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">;<\/font>\n<font color=\"#ffffff\">$this<\/font><font color=\"#f92672\">-&gt;<\/font><font color=\"#a6e22e\">processText<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"The Sovereign\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#75715e\">\/\/ \u201cOnce upon a time, there was a family of strong wills,\u201d she says, voice slow and measured as a pendulum. \u201cThey did not love one another.<\/font>\n<font color=\"#ffffff\">$buffer<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"But together they presided over a farm. And on that farm, there were hounds, and bitches, and dairy cows, and hens, and cocks, and sheep, and mules, and horses.\"<\/font><font color=\"#ffffff\">;<\/font>\n<font color=\"#75715e\">\/*\n  * The family kept the beasts in line. And the beasts kept them rich, fat, and happy.\n  *\/<\/font>\n<font color=\"#75715e\">\/\/ Now, the beasts obeyed because they knew the family was strong, and to disobey was to suffer their united wrath. \u2019\u201d<\/font>\n<font color=\"#75715e\">\/\/ Her eyes burn into mine. Neither of us look away. Silence in the sparse suite, except the sound of rain at the windows of her skyscraper.<\/font>\n<font color=\"#ffffff\">$this<\/font><font color=\"#f92672\">-&gt;<\/font><font color=\"#a6e22e\">readPassage<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"We\u2019re amongst the clouds. Ships pass in the haze outside like silent, glowing sharks.\"<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#f92672\">echo<\/font> <font color=\"#e6db74\">\"The leather creaks as she leans forward and steeples her long fingers, which are painted red, a lone splash of color.<\/font><font color=\"#ae81ff\">\\n<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">;<\/font>\n<font color=\"#75715e\">\/\/ Then her lips curl in condescension, accenting each syllable as though I were an Agea street child only just learning her language.<\/font>\n<font color=\"#ffffff\">$segment<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"\u201cYou remind me of my father.\u201d\"<\/font><font color=\"#ffffff\">;<\/font>\n<\/pre><\/font>\n<h3 id=\"ruby\">Ruby<\/h3>\n<font color=\"#FFFFFF\"><pre><font color=\"#75715e\">=begin\n  \u201cThey say you can hear the dead stormsons whooping in the wind,\u201d he mutters. \u201d\n=end<\/font>\n  <font color=\"#f6aa11\">puts<\/font> <font color=\"#e6db74\">\"\u201cStorms of court have a way of drawing people back in,\u201d I say.\"<\/font>\n  <font color=\"#ffffff\">read_passage<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"He laughs a derisive laugh, one that scorns the idea that I would know anything about the storms of court, anything about the winds that blow.\"<\/font><font color=\"#ffffff\">)<\/font>\n  <font color=\"#ffffff\">content<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"I came to him in secret, flying with a single ship, my five-kilometer destroyer Pax. I told my master he would not help us.\"<\/font>\n  <font color=\"#ffffff\">process_text<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"But I held on to hope he would want to help me. Yet now that I see Lorn au Arcos again in the knotted flesh, I\u2019m reminded of the nature of the man and I worry.\"<\/font><font color=\"#ffffff\">)<\/font>\n  <font color=\"#f6aa11\">puts<\/font> <font color=\"#e6db74\">\"He knows my captains and lieutenants are listening through the com unit in my ear.\"<\/font>\n  <font color=\"#f6aa11\">puts<\/font> <font color=\"#e6db74\">\"I paid him respects and showed it to him so that he would not assume our conversation to be a private one.\"<\/font>\n  <font color=\"#ffffff\">content<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"\u201d One would think him to be in his mid-sixties, at first glance. Only his scars truly age him.\"<\/font>\n  <font color=\"#ffffff\">process_text<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"The one on his neck, like a smile, was given to him four decades ago by a Stained in the Moon Kings\u2019 Rebellion, when the Governors of Jupiter\u2019s moons thought to make their own kingdoms after Octavia deposed her father as Sovereign.\"<\/font><font color=\"#ffffff\">)<\/font>\n<font color=\"#75715e\">=begin\n  The one that claims part of his nose came from the Ash Lord, when they dueled as youths. \u201d\n=end<\/font>\n  <font color=\"#ffffff\">read_passage<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"\u201cI have said it myself.\u201d\"<\/font><font color=\"#ffffff\">)<\/font>\n  <font color=\"#f6aa11\">puts<\/font> <font color=\"#e6db74\">\"He grunts. \u201cI have lived it. I have lost many for my own glory. I have set my ship into the storm on purpose. \u201d He lets the waves speak for a moment.\"<\/font>\n<\/pre><\/font>","author":{"name":"Zachary Flower"},"summary":"Sometimes you just want to read without HR getting all judgy and putting you on a &quot;performance improvement plan,&quot; so I recently decided to make a Visual Studio Code extension that renders eBooks as code in (18?) languages."},{"title":"Eval++","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/02\/18\/eval-plus-plus.html","rel":"alternate","type":"text\/html","title":"Eval++"}},"published":"2026-02-18T17:10:00+00:00","updated":"2026-02-18T17:10:00+00:00","id":"http:\/\/flower.codes\/2026\/02\/18\/eval-plus-plus","content":"<p>Dear friends, I present to you the next generation in software development: eval++!<\/p>\n<p>Inspired by GitHub's recent release of their <a href=\"https:\/\/github.blog\/news-insights\/company-news\/build-an-agent-into-any-app-with-the-github-copilot-sdk\/\">Copilot SDK<\/a>, I decided to take a stab at one of the most controversial functions of all time and make it better, using the power of AI.<\/p>\n<p>Eval++ is an LLM-powered replacement of JavaScript's <code>eval()<\/code> function that can probably handle any code or code-like text you throw at it, marking our ascension from the purgatory that is deterministic software development to a new enlightenment of <b>&quot;anything codes, anything goes.&quot;<\/b><\/p>\n<p>So far, eval++ supports only JavaScript, but Python, PHP, and Ruby are all on the evolutionary roadmap.<\/p>\n<p>Here's how it works:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">import<\/font> <font color=\"#ffffff\">evil<\/font> <font color=\"#f92672\">from<\/font> <font color=\"#e6db74\">'<\/font><font color=\"#e6db74\">@zachflower\/eval-plus-plus<\/font><font color=\"#e6db74\">'<\/font><font color=\"#ffffff\">;<\/font>\n\n<font color=\"#75715e\">\/\/ Evaluate code<\/font>\n<font color=\"#66d9ef\">const<\/font> <font color=\"#ffffff\">result<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#f92672\">await<\/font> <font color=\"#a6e22e\">evil<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">'<\/font><font color=\"#e6db74\">2 + 2<\/font><font color=\"#e6db74\">'<\/font><font color=\"#ffffff\">);<\/font>\n<font color=\"#ffffff\">console<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">log<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">result<\/font><font color=\"#ffffff\">);<\/font> <font color=\"#75715e\">\/\/ \"4\"<\/font>\n\n<font color=\"#75715e\">\/\/ Analyze complex code<\/font>\n<font color=\"#66d9ef\">const<\/font> <font color=\"#ffffff\">analysis<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#f92672\">await<\/font> <font color=\"#a6e22e\">evil<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">`\n  function fibonacci(n) {\n    if (n &lt;= 1) return n;\n    return fibonacci(n - 1) + fibonacci(n - 2);\n  }\n  fibonacci(10)\n`<\/font><font color=\"#ffffff\">);<\/font>\n<\/pre><\/font>\n<p>The result of the above will be <i>exactly<\/i> what you expect: the number <code>55<\/code>. Hell, it doesn't even have to be valid JavaScript code! You can throw in some Python or Ruby and it will still give you a result, because eval++ is powered by an LLM that can understand multiple programming languages.<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#66d9ef\">const<\/font> <font color=\"#ffffff\">result<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#f92672\">await<\/font> <font color=\"#a6e22e\">evil<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">`\n  def fibonacci(n):\n    if n &lt;= 1:\n        return n\n      return fibonacci(n - 1) + fibonacci(n - 2)\n  fibonacci(10)\n`<\/font><font color=\"#ffffff\">);<\/font>\n<\/pre><\/font>\n<p>Same result, different language! But what makes eval++ truly revolutionary is that it can also handle code that isn't even code! For example:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#66d9ef\">const<\/font> <font color=\"#ffffff\">result<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#f92672\">await<\/font> <font color=\"#a6e22e\">evil<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">'<\/font><font color=\"#e6db74\">What is the meaning of life, the universe, and everything?<\/font><font color=\"#e6db74\">'<\/font><font color=\"#ffffff\">);<\/font>\n<\/pre><\/font>\n<p>The result of this will probably be <code>42<\/code>, but it might be something entirely different, depending on the whims of the AI. The point is that with eval++, you can throw anything at it and it will give you <i>something<\/i> back, whether it's a valid JavaScript expression or a philosophical question.<\/p>\n<p>So, if you are interested in trying out eval++, you can learn more about it and get the code on GitHub here: <a href=\"https:\/\/zachflower.github.io\/eval-plus-plus\/\">Eval++ Website<\/a> and <a href=\"https:\/\/github.com\/zachflower\/eval-plus-plus\">Eval++ GitHub Repository<\/a>.<\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"development"}},{"@attributes":{"term":"satire"}}],"summary":"Dear friends, I present to you the next generation in software development: eval++!"},{"title":"Blocking IP Addresses with Caddy","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/02\/17\/fice.html","rel":"alternate","type":"text\/html","title":"Blocking IP Addresses with Caddy"}},"published":"2026-02-17T16:30:00+00:00","updated":"2026-02-17T16:30:00+00:00","id":"http:\/\/flower.codes\/2026\/02\/17\/fice","content":"<p><em>Shhhhhh! This post is for RSS subscribers only. <a href=\"https:\/\/daverupert.com\/2018\/01\/welcome-to-rss-club\/\">Look here<\/a> for more information (and to join in on the fun).<\/em><\/p>\n\n    <p>--<\/p><p>Did you know that there's a <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_assigned_\/8_IPv4_address_blocks\">Wikipedia page<\/a> that lists all of the assigned <code>\/8<\/code> IPV4 address blocks?<\/p>\n<p>A person, if they were so inclined, could take this list (or <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_assigned_\/8_IPv4_address_blocks#List_of_\/8_blocks_assigned_to_the_United_States_Department_of_Defense\">a subset of it<\/a>) and block all of those IP addresses from accessing their website using Caddy's <code>remote_ip<\/code> matcher (or whatever the equivalent is in your web server of choice).<\/p>\n<p>As an example, let's say that we want to block all of the IP addresses that are assigned to the United States Department of Defense for <a href=\"https:\/\/apnews.com\/article\/immigration-enforcement-minnesota-4d1499fc5962ab880f3816259e04bdbf\">no<\/a> <a href=\"https:\/\/apnews.com\/article\/minnesota-immigration-enforcement-shooting-crackdown-surge-173e00fa7388054e98c3b5b9417c1e5a\">particular<\/a> <a href=\"https:\/\/apnews.com\/article\/immigration-minnesota-boy-father-detained-342f319fafb766d13afe07f5bcc1f112\">reason<\/a> whatsoever.<\/p>\n<p>To do that, we can add the following lines to our Caddyfile:<\/p>\n<font color=\"#FFFFFF\"><pre>@blocked_ips {\n    remote_ip 6.0.0.0\/8 7.0.0.0\/8 11.0.0.0\/8 21.0.0.0\/8 22.0.0.0\/8 26.0.0.0\/8 28.0.0.0\/8 29.0.0.0\/8 30.0.0.0\/8 33.0.0.0\/8 55.0.0.0\/8 214.0.0.0\/8 215.0.0.0\/8\n}\n\nhandle @blocked_ips {\n    respond 403\n}\n<\/pre><\/font>\n<p>If we want to be really cheeky (as the cartoon dogs my kids are obsessed with like to say), we could even redirect them to another website:<\/p>\n<font color=\"#FFFFFF\"><pre>handle @blocked_ips {\n    redir https:\/\/www.archives.gov\/founding-docs\/constitution-transcript 302\n}\n<\/pre><\/font>\n<p>Before I get emails about how pointless this probably is, I already know.<\/p>\n<p>It won't prevent someone from accessing your site\u2014or cause anyone to <i>care<\/i> about your site\u2014if they use a VPN or Tor or their home network or their smartphone, but for a few lines of config, it's nothing if not a statement that I'd argue is worth making these days.<\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"privacy"}},{"@attributes":{"term":"security"}},{"@attributes":{"term":"surveillance"}}],"summary":"Did you know that there's a Wikipedia page that lists all of the assigned \/8 IPV4 address blocks?"},{"title":"Go Read a Book","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/01\/24\/go-read-a-book.html","rel":"alternate","type":"text\/html","title":"Go Read a Book"}},"published":"2026-01-24T23:41:00+00:00","updated":"2026-01-24T23:41:00+00:00","id":"http:\/\/flower.codes\/2026\/01\/24\/go-read-a-book","content":"<p>There's a lot of shitty news happening lately, and I've been having trouble holding space for it all.<\/p>\n<p>I've noticed that my 2020-doomscrolling habit has started to ramp back up, so I built a Google Chrome extension (with a little help from Gemini) that automatically redirects my browser to a Kindle book in my library whenever I try to go to a site that I think is hurting my mental health:<\/p>\n<p><center class=\"i\"><img src=\"\/assets\/img\/posts\/go-read-a-book.png\" alt=\"Go Read a Book Screenshot\" height=\"475\" width=\"760\" loading=\"lazy\" \/><\/center><\/p>\n<p>It's been a nice, gentle reminder that following the news is one thing, but drowning myself in it is another thing entirely. Instead of drinking from the firehose of badness, I can stay up to date with a few select, timely sources, and then redirect myself to something more productive when I try to get another hit, like reading a relevant history book to better understand the current cultural and political moment.<\/p>\n<p>This is a thing I built for me, but I thought I'd share in case anyone else is in the same boat. I've added no analytics, no data collection, no monetization, no account creation, or anything else.<\/p>\n<p>Just a simple, single-purpose browser extension.<\/p>\n<p>You can find it on the Chrome Web Store here if you're interested: <a href=\"https:\/\/chromewebstore.google.com\/detail\/go-read-a-book\/ecafldaielmlpopapfgmephmjkkphlmi\">Go Read a Book - Chrome Web Store<\/a><\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"development"}},{"@attributes":{"term":"reading"}}],"summary":"There's a lot of shitty news happening lately, and I've been having trouble holding space for it all."},{"title":"Vibe Mapping","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/01\/15\/antigravity.html","rel":"alternate","type":"text\/html","title":"Vibe Mapping"}},"published":"2026-01-15T16:39:20+00:00","updated":"2026-01-15T16:39:20+00:00","id":"http:\/\/flower.codes\/2026\/01\/15\/antigravity","content":"<p>Some of you know this, but I got into computing after being exposed to MUDs in the late 90's. For the uninitiated, MUDs were the text-based precursors to MMORPGs like Everquest and World of Warcraft\u2014in fact, Everquest was even sued by one of the progenitors of the entire genre because the game, while graphical, had elements that were so eerily similar.<\/p>\n<p>I've been in love with the genre ever since, and quickly taught myself C just so I could hack on my own. MUDs are the reason that I not only learned how to code, but how to type, how to use Linux, how to run a server, how to write, and so many of the other skills that kicked off my career.<\/p>\n<p>MUDs, like Linux, have variants, distributions, and derivatives. My favorite &quot;family&quot; was called <a href=\"\/\/en.wikipedia.org\/wiki\/DikuMUD\">DikuMUD<\/a>, which was originally created by a group of nerds at the department of computer science at the University of Copenhagen.<\/p>\n<p>The game I grew up playing and hacking on was a great-great-grandchild of Diku called &quot;Entropy of the Soul&quot;, or EotS for short.<\/p>\n<p>The way the data for Diku MUDs was structured was through text files using a proprietary file structure. No CSVs or JSONs or XML, just whatever the random assortment of developers chose to do throughout the years. Here's a little snapshot of what an &quot;area&quot; file looks like:<\/p>\n<font color=\"#FFFFFF\"><pre>#ROOMDATA\n#25000\nTemple of Bethaven~\nWithin this chamber stands the great and ancient Oracle.  He has stood in\nthis spot since long before the dawning of the Storm, and shall continue\ninto eternity.  Standing directly in the centre of the room is a huge altar\ncarved from one solid granite stone.  It's surface is carved with intricate\ndesigns and symbols.  It is here that the citizens of Bethaven come to heal\nand rest, and to share in the glory of eternity.  There is a door set into\nthe northern wall, with an inscription carved upon it.\n~\n0 1076102152 0\nRd     0\nE\ndoor~\nThe door bears an inscription which reads:\n&amp;BTo the Bethaven Botanical Gardens\n~\nD0\n~\ndoor~\n3 0 14000\nD1\n~\n~\n0 0 25120\nD2\n~\n~\n0 0 25001\nD3\n~\n~\n0 0 25119\nD4\n~\n~\n0 0 25132\nS\n<\/pre><\/font>\n<p>Hard to read, right?<\/p>\n<p>As you can see, this proprietary format means that reading the files without the game code can be a pain in the ass, and writing them even more so.<\/p>\n<p>So I decided to take Google's <a href=\"\/\/antigravity.google\">Antigravity<\/a> for a spin by putting it to the task of creating an &quot;area explorer&quot; that takes these files and makes them visual. Like a family tree explorer, Antigravity generated a beautiful and highly usable system for importing area files, rendering the maps and other data in a meaningful way, and even created an export functionality.<\/p>\n<p><center class=\"i\"><img src=\"\/assets\/img\/posts\/eots-explorer.png\" alt=\"Screenshot of EotS Explorer\" height=\"372\" width=\"760\" loading=\"lazy\" \/><\/center><\/p>\n<p>The craziest part? The bulk of the work of understanding the files was done entirely by the agent. All I did was point it at the EotS source code, tell it what to build, and it got about 80% of the way on its own.<\/p>\n<p>About an hour's worth of prompt work later and I ended up with a gorgeous tool that I would have killed to have when I was just starting out.<\/p>\n<p>I'm still in awe at how well this entire thing turned out.<\/p>\n<p>If you're interested in checking the project out, you can get to it on my <a href=\"\/projects.html\">projects<\/a> page, or find it directly <a href=\"\/experiments\/eots-explorer\/index.html\">here<\/a>.<\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"development"}},{"@attributes":{"term":"mud"}}],"summary":"Some of you know this, but I got into computing after being exposed to MUDs in the late 90's. For the uninitiated, MUDs were the text-based precursors to MMORPGs like Everquest and World of Warcraft\u2014in fact, Everquest was even sued by one of the progenitors of the entire genre because the game, while graphical, had elements that were so eerily similar."},{"title":"Elseless","link":{"@attributes":{"href":"http:\/\/flower.codes\/2026\/01\/04\/elseless.html","rel":"alternate","type":"text\/html","title":"Elseless"}},"published":"2026-01-04T15:21:00+00:00","updated":"2026-01-04T15:21:00+00:00","id":"http:\/\/flower.codes\/2026\/01\/04\/elseless","content":"<p>Here's a little &quot;cognitive complexity&quot; tip for your next programming project: get rid of your else statements.<\/p>\n<p>Okay... maybe not all of them. But as many as you can, because unnecessary else statements can decrease the readability of your code in small, but often very meaningful, ways.<\/p>\n<p>This isn't a hard-and-fast rule\u2014which was made abundantly clear when I posted this on <a href=\"https:\/\/www.linkedin.com\/posts\/zachflower_coding-development-softwaredevelopment-activity-7408885383658344448-3mp5\">LinkedIn<\/a> and triggered a small flame war\u2014but when I write my own code, I tend to keep the following guidelines in mind to keep else-driven cognitive complexity down:<\/p>\n<h2 id=\"return-or-raise-early\">Return or raise early?<\/h2>\n<p>If returning or raising from within an if block, you can often drop the else and unindent the remainder.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">process<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">value<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">value<\/font> <font color=\"#f92672\">is<\/font> <font color=\"#ffffff\">None<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">raise<\/font> <font color=\"#a6e22e\">ValueError<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">value cannot be None<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">)<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">value<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">2<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">process<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">value<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">value<\/font> <font color=\"#f92672\">is<\/font> <font color=\"#ffffff\">None<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">raise<\/font> <font color=\"#a6e22e\">ValueError<\/font><font color=\"#ffffff\">(<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">value cannot be None<\/font><font color=\"#e6db74\">\"<\/font><font color=\"#ffffff\">)<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">value<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">2<\/font>\n<\/pre><\/font>\n<h2 id=\"continuebreak-inside-loops\">Continue\/break inside loops?<\/h2>\n<p>Similar to the above rule, if you continue or break inside an if, you can often skip the else and put the \u201ckeep\u201d logic after the guard.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">for<\/font> <font color=\"#ffffff\">item<\/font> <font color=\"#f92672\">in<\/font> <font color=\"#ffffff\">items<\/font><font color=\"#ffffff\">:<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#f92672\">not<\/font> <font color=\"#a6e22e\">is_valid<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">item<\/font><font color=\"#ffffff\">):<\/font>\n        <font color=\"#f92672\">continue<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n      <font color=\"#a6e22e\">process<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">item<\/font><font color=\"#ffffff\">)<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">for<\/font> <font color=\"#ffffff\">item<\/font> <font color=\"#f92672\">in<\/font> <font color=\"#ffffff\">items<\/font><font color=\"#ffffff\">:<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#f92672\">not<\/font> <font color=\"#a6e22e\">is_valid<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">item<\/font><font color=\"#ffffff\">):<\/font>\n        <font color=\"#f92672\">continue<\/font>\n\n    <font color=\"#a6e22e\">process<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">item<\/font><font color=\"#ffffff\">)<\/font>\n<\/pre><\/font>\n<h2 id=\"assign-defaults-first\">Assign defaults first<\/h2>\n<p>An old &quot;C&quot; programming language convention: assign defaults first. When you do that, you can often avoid else statements entirely.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">get_status<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_active<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#ffffff\">status<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">active<\/font><font color=\"#e6db74\">\"<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#ffffff\">status<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">inactive<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">status<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">get_status<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#ffffff\">status<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">inactive<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_active<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#ffffff\">status<\/font> <font color=\"#f92672\">=<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">active<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">status<\/font>\n<\/pre><\/font>\n<p>Or, an even cleaner version, dropping the intermediate variable and using a guard clause:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">get_status<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_active<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">active<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">inactive<\/font><font color=\"#e6db74\">\"<\/font>\n<\/pre><\/font>\n<h2 id=\"guard-clauses-for-invalidedge-cases\">Guard clauses for invalid\/edge cases?<\/h2>\n<p>If you have multiple branches to handle edge cases, consider using guard clauses to handle them first so the main path of your function is clear. What's a &quot;guard clause&quot;? It's just an if statement that returns or raises early.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">calculate_discount<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">price<\/font><font color=\"#ffffff\">,<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_vip<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">0.8<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_loyal<\/font><font color=\"#ffffff\">:<\/font>\n            <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">0.9<\/font>\n        <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n            <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">calculate_discount<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">price<\/font><font color=\"#ffffff\">,<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_vip<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">0.8<\/font>\n\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">customer<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_loyal<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font> <font color=\"#f92672\">*<\/font> <font color=\"#ae81ff\">0.9<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#ffffff\">price<\/font>\n<\/pre><\/font>\n<h2 id=\"nested-ifelse-causing-indentation-creep\">Nested if\/else causing indentation creep?<\/h2>\n<p>More indentation means more cognitive load. If you find yourself with nested if\/else statements, see if you can convert inner branches to guard returns\/raises and unwrap.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">process_order<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">is_valid<\/font><font color=\"#ffffff\">():<\/font>\n        <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">is_in_stock<\/font><font color=\"#ffffff\">():<\/font>\n            <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">payment_received<\/font><font color=\"#ffffff\">():<\/font>\n                <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">ship<\/font><font color=\"#ffffff\">():<\/font>\n                    <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Order shipped<\/font><font color=\"#e6db74\">\"<\/font>\n                <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n                    <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Shipping failed<\/font><font color=\"#e6db74\">\"<\/font>\n            <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n                <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Payment not received<\/font><font color=\"#e6db74\">\"<\/font>\n        <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n            <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Out of stock<\/font><font color=\"#e6db74\">\"<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Invalid order<\/font><font color=\"#e6db74\">\"<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">process_order<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#f92672\">not<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">is_valid<\/font><font color=\"#ffffff\">():<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Invalid order<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">if<\/font> <font color=\"#f92672\">not<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">is_in_stock<\/font><font color=\"#ffffff\">():<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Out of stock<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">if<\/font> <font color=\"#f92672\">not<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">payment_received<\/font><font color=\"#ffffff\">():<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Payment not received<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">order<\/font><font color=\"#ffffff\">.<\/font><font color=\"#a6e22e\">ship<\/font><font color=\"#ffffff\">():<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Order shipped<\/font><font color=\"#e6db74\">\"<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">Shipping failed<\/font><font color=\"#e6db74\">\"<\/font>\n<\/pre><\/font>\n<h2 id=\"both-branches-return-the-same-typevalue-shape\">Both branches return the same type\/value shape?<\/h2>\n<p>Sometimes both branches of an if\/else return the same type or shape of value. In those cases, I prefer two returns over a <code>return<\/code> and <code>else<\/code>.<\/p>\n<h4 id=\"before\">Before<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">get_user_status<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_active<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">active<\/font><font color=\"#e6db74\">\"<\/font>\n    <font color=\"#f92672\">else<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">inactive<\/font><font color=\"#e6db74\">\"<\/font>\n<\/pre><\/font>\n<h4 id=\"after\">After<\/h4>\n<font color=\"#FFFFFF\"><pre><font color=\"#f92672\">def<\/font> <font color=\"#a6e22e\">get_user_status<\/font><font color=\"#ffffff\">(<\/font><font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">):<\/font>\n    <font color=\"#f92672\">if<\/font> <font color=\"#ffffff\">user<\/font><font color=\"#ffffff\">.<\/font><font color=\"#ffffff\">is_active<\/font><font color=\"#ffffff\">:<\/font>\n        <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">active<\/font><font color=\"#e6db74\">\"<\/font>\n\n    <font color=\"#f92672\">return<\/font> <font color=\"#e6db74\">\"<\/font><font color=\"#e6db74\">inactive<\/font><font color=\"#e6db74\">\"<\/font>\n<\/pre><\/font>","author":{"name":"Zachary Flower"},"summary":"Here's a little &quot;cognitive complexity&quot; tip for your next programming project: get rid of your else statements."},{"title":"Code It Forward","link":{"@attributes":{"href":"http:\/\/flower.codes\/2025\/11\/17\/how-to-volunteer.html","rel":"alternate","type":"text\/html","title":"Code It Forward"}},"published":"2025-11-17T17:05:00+00:00","updated":"2025-11-17T17:05:00+00:00","id":"http:\/\/flower.codes\/2025\/11\/17\/how-to-volunteer","content":"<p>In the late Summer of 2020, still deep in the throes of the COVID-19 pandemic and dealing with a near constant sense of dread and anxiety, I had an appointment with my optometrist that changed the course of my life and career.<\/p>\n<p>After a few dozen rounds of &quot;A or B, 1 or 2?&quot;, he asked me if I still &quot;worked with computers&quot; for a living. I was a Principal Engineer at a cybersecurity company called Automox at the time (their first Principal Engineer, actually, nbd), which I figured qualified working with computers, and after responding in the affirmative, he told me that his son had been taking a computer science class at his high school.<\/p>\n<p>&quot;Unfortunately,&quot; he said, &quot;the teacher seems to be ahead of the students in the curriculum by only a few weeks, so he's not learning as much as he'd like.&quot;<\/p>\n<p>I was shocked by the revelation, which brought a whole new meaning to the phrase &quot;those who can't do, teach,&quot; so I went home that day and sent an email out to every high school in my area, asking if I could volunteer in their computer science programs in some way. If I'm being completely honest, I didn't actually know <i>how<\/i> I could help (after all, I didn't have any teaching experience), but I just knew that I needed to get involved <i>somehow<\/i>.<\/p>\n<p>I ultimately heard back from just <i>one<\/i> school, but in that one act, I discovered a number of incredible (yet, to me, undiscovered) ways that Software and IT professionals can get involved in computer science classrooms. While my journey quickly led from volunteering in classrooms to actually <i>teaching<\/i> one, I thought I'd share some of the lessons learned, and highlight different ways that my former peers can lend their expertise to the next generation of engineers.<\/p>\n<h2 id=\"sponsored-volunteer-programs\">&quot;Sponsored&quot; Volunteer Programs<\/h2>\n<p>There are a handful of formal programs that provide opportunities to get involved in computer science classrooms, but the two that I personally joined were Code.org (which seems to have actually decommissioned their volunteer program sometime in the last year or two) and <a href=\"https:\/\/www.microsoft.com\/en-us\/teals\">Microsoft TEALS<\/a>.<\/p>\n<p>If I'm being perfectly honest, your mileage with programs like these will vary.<\/p>\n<p>In the 3-4 years I was on the Code.org volunteer list, I was only ever contacted by one middle school teacher to volunteer to teach at a STEM day that resulted in a two hour adventure through a blizzard, and the realization that teaching middle school just wasn't for me.<\/p>\n<p>As for Microsoft TEALS, I was never contacted to volunteer... ever.<\/p>\n<h2 id=\"volunteering-at-the-source\">Volunteering at the Source<\/h2>\n<p>If you really want to have an impact, my recommendation is going direct to the source. From Kindergarten through Grade 12, nearly every school has some sort of STEM program that teaches computer science concepts. While I was (and am) more interested in the potential for real life change that students can experience at the high school level, I can promise you that elementary and middle schools need volunteers too; and, believe me, there are <i>many<\/i> ways to get involved.<\/p>\n<p>The first thing you need to do is reach out not just to the schools in your area, but also to the school district itself, and even your state's Department of Education. While the state and district websites don't always have clear contact information, you can often find a page on volunteering, or even a general contact page that <i>will<\/i> get routed to the right person (eventually). Keep an eye out for any page or person related to CTE (Career and Technical Education), ETMA (Engineering, Technology, and Media Arts), or STEM (Science, Technology, Engineering, and Mathematics); any of those will get you <i>much<\/i> closer to a person who can connect you with the right people.<\/p>\n<p>At the school level, most school websites list the contact information for every teacher and staff member. You will want to send an email to <i>at least<\/i> these people:<\/p>\n<ul>\n<li>Any\/all teachers teaching in STEM-related fields (think Computer Science, Robotics, Engineering, etc)<\/li>\n<li>The principal and associate\/vice principal(s), who won't actually be the deciders, but <i>will<\/i> increase your likelihood of getting a response (teachers are busy people, so getting ghosted is more about their workload than it is about their interest in receiving your support)<\/li>\n<li>Some schools titles like &quot;Career Counselors&quot; or &quot;Work-Based Learning Specialists&quot; or something like that, which are positions that help students plan their lives after high school and connect them with internships before graduation<\/li>\n<\/ul>\n<p>Anyone outside the above sphere of influence <i>might<\/i> pass on your email, but they are also just as likely to ignore it in the sea of thousands of other things they have to do. Don't take it personally.<\/p>\n<h2 id=\"what-volunteering-looks-like\">What &quot;Volunteering&quot; Looks Like<\/h2>\n<p>Once you are in contact with a school (or schools), the next thing to do is figure out what level of involvement you actually want to have. If your work schedule is flexible, then maybe you want to spend time in the classroom as a guest lecturer or assistant, but if you'd rather volunteer on your own time, then you might want to get involved as a program advisor, tutor, or after-school program mentor.<\/p>\n<p>Schools are happy to get any support they can from their communities, so you have options here, and are unlikely to get too much pressure to help more than you are able. So you understand the big picture, let's break down a few of the different volunteering capacities I mentioned above.<\/p>\n<h3 id=\"guest-lecturing\">Guest Lecturing<\/h3>\n<p>Guest lecturing is pretty much exactly what it sounds like: you come into a classroom (physically or virtually), and give a lecture or lead a lesson on a topic of your choosing. My first classroom exposure was as a guest lecturer, where I gave a 30 minute talk on &quot;Careers in Technology&quot; to a high school computer science class.<\/p>\n<p>This is a great way to get your feet wet, and can be as simple as showing up and talking for a bit, or as involved as preparing slides, activities, and assignments. The key here is to coordinate with the teacher ahead of time to make sure your content aligns with their curriculum and the students' current level of understanding.<\/p>\n<p>As a now-teacher, I can tell you that guest lecturers are <i>always<\/i> appreciated, both for the content they bring, and for having one-less lesson to plan and grade.<\/p>\n<h3 id=\"classroom-assistance\">Classroom Assistance<\/h3>\n<p>Sometimes, teachers have an activity or module that they already have to (or want to) teach, but could use an extra set of hands (or, more appropriate, an extra brain) to help answer student questions or provide one-on-one support.<\/p>\n<p>This is where classroom assistance comes in.<\/p>\n<p>It's not a formal role, per se, but more of an ad-hoc arrangement where you show up to a class session and help out as needed. This can be especially helpful in computer science classes, where both the students and teachers can have a wide range of skill levels and may need varying degrees of assistance.<\/p>\n<h3 id=\"program-advising\">Program Advising<\/h3>\n<p>One of the requirements (at least in the state of Colorado) of a high quality Career and Technical Education (CTE) program is to have industry professionals involved in the program's development and execution. This is called a Program Advisory, and is an opportunity for industry professionals to lend their expertise to help shape the curriculum, provide feedback on equipment needs, and ensure that the program is aligned with current industry standards.<\/p>\n<p>I joined a program advisory at about the same time I started volunteering in classrooms, and I enjoyed hearing about the challenges and successes of the program from the teacher's perspective, while also connecting with other local professionals who were also invested in the program's success.<\/p>\n<p>An advisory will typically meet a few times a year, and while it's not a huge time commitment (a couple hours a semester), participation provides an opportunity to influence curriculum, certification paths, work-based learning opportunities, and even internship pipelines for students.<\/p>\n<h3 id=\"tutoring-and-mentoring\">Tutoring and Mentoring<\/h3>\n<p>If you have the time and inclination, one-on-one tutoring or mentoring can be an incredibly rewarding way to give back. This can take many forms, from helping a student with homework or projects, to providing guidance on college applications and career paths.<\/p>\n<p>The next-evolution of my volunteering journey was becoming a mentor for an after-school coding club that the high school I was involved with had recently started. This was a once-a-week club, where students would come together and build a project of their choosing, with me acting as a resource and guide. Students could ask questions, get help with coding challenges, and learn about best practices in software development. It was a blast, because every one of them <i>chose<\/i> to be there, rather than being required to attend a class.<\/p>\n<h2 id=\"final-thoughts\">Final Thoughts<\/h2>\n<p>Volunteering in computer science classrooms is a fantastic way to give back to your community, inspire the next generation of engineers, and stay connected to the ever-evolving world of technology. Whether you choose to guest lecture, assist in the classroom, advise a program, or mentor students, your expertise and experience can make a significant impact.<\/p>\n<p>If you would like to volunteer, but aren't sure where to start, or don't have any particular affinity for connecting in your own district (or your district doesn't have any computer science programs), I am always looking for new advisors, mentors, and guest lecturers for my own classroom.<\/p>\n<p>Feel free to reach out to me via email at <a href=\"mailto:zach.flower@jeffco.k12.co.us\">zach.flower@jeffco.k12.co.us<\/a>, or connect with me on <a href=\"https:\/\/www.linkedin.com\/in\/zachflower\/\">LinkedIn<\/a>, and we can figure something out!<\/p>","author":{"name":"Zachary Flower"},"summary":"In the late Summer of 2020, still deep in the throes of the COVID-19 pandemic and dealing with a near constant sense of dread and anxiety, I had an appointment with my optometrist that changed the course of my life and career."},{"title":"Spinning up an Onion Mirror is Stupid Easy","link":{"@attributes":{"href":"http:\/\/flower.codes\/2025\/10\/23\/onion-mirror.html","rel":"alternate","type":"text\/html","title":"Spinning up an Onion Mirror is Stupid Easy"}},"published":"2025-10-23T13:18:00+00:00","updated":"2025-10-23T13:18:00+00:00","id":"http:\/\/flower.codes\/2025\/10\/23\/onion-mirror","content":"<p>I recently spun up a .onion mirror of this website.<\/p>\n<p>Why? Because why not. And also because I can. Oh, and free speech and anti-censorship and all that jazz.<\/p>\n<p>I'd like to pretend that it was some grand technological challenge, but if I'm being entirely candid, it was like 3 commands and 4 lines of configuration.<\/p>\n<p>If you, too, would like to become a member of the dark web, here's how I did it:<\/p>\n<h2 id=\"0-prerequisites\">0. Prerequisites<\/h2>\n<p>Before we jump into the &quot;how&quot; of it all, I should probably provide a brief overview of what my stack looked like before I entered The Onionverse:<\/p>\n<ul>\n<li><b>Web Server<\/b>: I've been using <a href=\"https:\/\/caddyserver.com\/\">Caddy<\/a> for a few years now, because it's significantly easier to configure than Nginx or Apache, and it has first-class support for modern web features like automatic HTTPS via Let's Encrypt.<\/li>\n<li><b>Hosting<\/b>: My site is hosted on a VPS from <a href=\"https:\/\/www.digitalocean.com\/\">DigitalOcean<\/a>, which gives me full control over the server environment. It's supposed to cost $4\/mo, but I'm taking some classes at Ye Olde Community College, so I have a few years of credits to cover the cost.<\/li>\n<li><b>Operating System<\/b>: My server runs Debian. I like Debian. If you aren't using an apt-based distro, then you'll need to adjust the package installation commands accordingly (but the Tor and Caddy configurations should be the same).<\/li>\n<\/ul>\n<h2 id=\"1-install-tor\">1. Install Tor<\/h2>\n<p>First things first, we need to install Tor. On Debian, it's right in the default repositories:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#f6aa11\">sudo <\/font>apt update\n<font color=\"#f6aa11\">sudo <\/font>apt <font color=\"#f6aa11\">install <\/font>tor\n<\/pre><\/font>\n<h2 id=\"2-configure-tor\">2. Configure Tor<\/h2>\n<p>Next, we need to configure Tor to create a hidden service for our website. Open the Tor configuration file (<code>\/etc\/tor\/torrc<\/code>) in your favorite CLI text editor (it better be <code>vim<\/code>, or you are dead to me). I have no interest in running a relay or exit node on my VPS, so I made some minimal changes to the config file, which should look something like this (comments removed for clarity):<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#75715e\"># Disable SOCKS proxy since we aren't making outbound connections<\/font>\n<font color=\"#75715e\"># through Tor<\/font>\nSocksPort 0\n\n<font color=\"#75715e\"># Make sure Tor runs as a daemon (i.e. in the background)<\/font>\nRunAsDaemon 1\n\n<font color=\"#75715e\"># Setup the hidden service on port 80, this is where we tell Tor to<\/font>\n<font color=\"#75715e\"># create a .onion service for our web server<\/font>\nHiddenServiceDir \/var\/lib\/tor\/hidden_service\/\nHiddenServicePort 80\n\n<font color=\"#75715e\"># Disable inbound connections, since we aren't running a relay or<\/font>\n<font color=\"#75715e\"># exit node<\/font>\nORPort 0\n\n<font color=\"#75715e\"># Disable directory services, since we won't be mirroring directory<\/font>\n<font color=\"#75715e\"># information to other Tor nodes<\/font>\nDirPort 0\n<\/pre><\/font>\n<p>That's it. Everything else should be commented out using <code>#<\/code> characters.<\/p>\n<h2 id=\"3-restart-tor\">3. Restart Tor<\/h2>\n<p>Now we need to restart the Tor service to apply our changes:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#f6aa11\">sudo <\/font>systemctl restart tor\n<\/pre><\/font>\n<h2 id=\"4-get-your-onion-address\">4. Get Your .onion Address<\/h2>\n<p>After Tor restarts, it will generate a new hidden service for us. We can find our new .onion address in the <code>HiddenServiceDir<\/code> we specified earlier (<code>\/var\/lib\/tor\/hidden_service\/<\/code>). This directory is only readable by the <code>debian-tor<\/code> user, so we'll need to use <code>sudo<\/code> to read the <code>hostname<\/code> file inside:<\/p>\n<font color=\"#FFFFFF\"><pre><font color=\"#f6aa11\">sudo cat<\/font> \/var\/lib\/tor\/hidden_service\/hostname\n<\/pre><\/font>\n<p>What will be printed to the terminal is your new .onion address. It should look something like this:<\/p>\n<font color=\"#FFFFFF\"><pre>jytkco7clxwj4hhzaydhk4kr3hwzsdzyvtsc6zn2ivog5uma5pxowzad.onion\n<\/pre><\/font>\n<h2 id=\"5-configure-caddy\">5. Configure Caddy<\/h2>\n<p>My Caddy server serves my website on port 80 without any IP or domain restrictions, so I don't need to make any changes to my Caddy configuration, however if you explicitly set up your Caddy server to only respond to certain domains or IP addresses, you'll need to add a new site block for your .onion address, which will look something like this:<\/p>\n<font color=\"#FFFFFF\"><pre>http:\/\/jytkco7clxwj4hhzaydhk4kr3hwzsdzyvtsc6zn2ivog5uma5pxowzad.onion:80 {\n  # Set up a reverse proxy, or serve static files, etc.\n}\n<\/pre><\/font>\n<p>Because you can't get HTTPS certificates for .onion addresses, you'll need to serve your site over plain HTTP. I'm not sure if this is generally considered acceptable within the Tor network (maybe one of my tens of readers can enlighten me), but I don't require HTTPS for my site anyway, so it works for my purposes.<\/p>\n<p><b>Update (2025-10-31):<\/b><\/p>\n<p>I received an email yesterday from <a href=\"https:\/\/www.immibis.com\">immibis<\/a> with some additional information about how Tor actually works, so I thought I'd share for anyone else who is also just dipping their toes into the onion:<\/p>\n<blockquote><font color=\"#808080\"><em>\n<p>This is considered perfectly acceptable. Tor already provides encryption between the end user's Tor daemon and your own, which is at least as good as TLS.<\/p>\n<p>The address is linked to the private key - which is also found in your hidden service directory next to the hostname - forever and always. Anyone who knows the private key of a .onion address can impersonate it, and anyone who doesn't know it, can't.<\/p>\n<\/em><\/font><\/blockquote>\n<h2 id=\"6-optional-advertise-your-onion-address\">6. (Optional) Advertise Your .onion Address<\/h2>\n<p>If you want people to find your .onion site, you'll need to advertise it somewhere. I'm a fan of subtlety, so I set up an <code>Onion-Location<\/code> header on my main site that points to my .onion address. This way, anyone visiting my regular site with a Tor-enabled browser will automatically be informed of the existence of my .onion mirror without any intrusive pop-ups, banners, or additional UI elements.<\/p>\n<p>To do this, you'll want to add a header to your main Caddy site block like so:<\/p>\n<font color=\"#FFFFFF\"><pre>header {\n  Onion-Location http:\/\/jytkco7clxwj4hhzaydhk4kr3hwzsdzyvtsc6zn2ivog5uma5pxowzad.onion{uri}\n}\n<\/pre><\/font>\n<p>The reason I tack on that <code>{uri}<\/code> at the end is so that if someone visits a specific page on my main site (e.g. <code>https:\/\/flower.codes\/some-post<\/code>), the <code>Onion-Location<\/code> header will point them to the equivalent page on my .onion site (<code>http:\/\/jytkco7clxwj4hhzaydhk4kr3hwzsdzyvtsc6zn2ivog5uma5pxowzad.onion\/some-post<\/code>), which (at least to me) adds some polish to the experience.<\/p>\n<h2 id=\"7-profit\">7. Profit!<\/h2>\n<p>Just kidding.<\/p>\n<p>At this point, your .onion mirror should be up and running. You can test it out by visiting your .onion address in any Tor-enabled browser (like the <a href=\"https:\/\/www.torproject.org\/download\/\">Tor Browser<\/a> or even <a href=\"https:\/\/brave.com\/\">Brave<\/a>, which has built-in Tor support).<\/p>","author":{"name":"Zachary Flower"},"category":[{"@attributes":{"term":"privacy"}},{"@attributes":{"term":"censorship"}},{"@attributes":{"term":"free speech"}}],"summary":"I recently spun up a .onion mirror of this website."}]}