<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>haze&#39;s web page!</title>
  <link>https://haz.ee/</link>
  <description>software engineer @ netflix</description>
  <language>en</language>
  <managingEditor>isnt@haze.cool (Haze Booth)</managingEditor>
  <lastBuildDate>Sat, 15 Aug 2026 00:00:00 +0000</lastBuildDate>
  <atom:link href="https://haz.ee/feed.xml" rel="self" type="application/rss+xml" />
  <item>
    <title>my table</title>
    <link>https://haz.ee/posts/my-table-2026-08-15.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/my-table-2026-08-15.html</guid>
    <pubDate>Sat, 15 Aug 2026 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Journal entry: the three-legged table of career, family and friends, and how a missing leg drains the enthusiasm out of everything else.</description>
    <content:encoded><![CDATA[<p>
<a href="https://www.youtube.com/watch?v=9IDhiGxaS2A">associated music</a>
</p>

<p>
lately ive been encouraged to "enjoy my own time". this is interesting to me because, i already enjoy my own time. i don't have a souring opinion of myself, and i know what i enjoy. i like tinkering with things, watching tech talks / lectures, reading textbooks, etc.
</p>

<p>
i feel like ive been prompted for this so much that i must visually illustrate how i operate. i typically visualize my enjoyment as a table. the table can have N legs and when all of those legs stand rigid, fun can ensue. 
</p>

<div class="captioned-image">
  
    
    
    <img src="https://haz.ee/static/img/three-legged-table-400.png" width="400" height="400"
         alt="a three legged table. the legs are 'career', 'family', and 'friends'. atop sits a gold bar titled 'fun'" >
  
  <small>
    the three-legged table of needs
  </small>
</div>

<p>
i like this visualization because if a table is missing a leg, it's wobbly. it'll fall over. and in my case, the gold bar of fun falls. this is what i mean when i say it's difficult to enjoy my own time (which is the fun in this context.)
</p>

<p>
during high school, my table was as illustrated. career (professional life), family, and friends. growing up i had ample paid and unpaid opportunities to teach, learn, and create. my sister and i were still in school and lived at home with our parents, and i had a tight knit friend group both inside my school and out.
</p>

<p>
further along down the line of high school, i found romance, and went in and out of dating. this introduces a new leg, a romantic partner. while i definitely think im on the aromantic spectrum, i found that having a partner changes the joy equation. the ceiling for happiness is much higher. relative to what i had before, having a partner gives you that extra 25% extra on top of everything. this is kind of like listening to expensive audio equipment and hearing something you hadn't before in a song you're familiar with, or looking at a high refresh rate monitor or OLED TV. you can't go back. now that you know it CAN get this good, your standards have changed.
</p>

<p>
being aromantic also does not mean that a partner is totally out of the question. i think for me it manifests as muted enthusiasm. for example, my desire for explicit, exclusive time with a partner, isn't nearly as strong as my friends'. i dont think im odd for feeling this way, but it's definitely something i have to communicate with people beforehand.
</p>

<p>
it's not difficult to do said things that were traditionally fun. i have so much freedom. i can go out to eat wherever i want, i can spend my time however i want, read any book, watch any lecture, program, thinker with anything. there really isnt much in my way. and despite that, there is no enthusiasm behind it. excuse the morbid picture but it's like trying to get back into painting when your door was blown off its hinges and lying in pieces on the floor. something a little more important is tugging at your attention, lol. a leg that is missing is impeding in me really enjoying what i explored as a kid.
</p>

<p>
it also feels awkward to distract myself with my hobbies and interests. it's not like facing away from the shrapnel on the floor is going to magically place the door back where it was. i feel like my table legs are more important than things like credit card balances (that can be managed with auto pay) or dirty dishes (which don't harm anyone until you need a dish.)
</p>

<p>
so when you tell me "find out how to enjoy your own time" recognize that this is exceptionally difficult for me and even if i do force myself into isolation to "enjoy" my own time, it won't be a good use of my time. i really care about spending my time wisely.
</p>
</div>]]></content:encoded>
  </item>
  <item>
    <title>my stuff (2026)</title>
    <link>https://haz.ee/posts/stuff-2026.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/stuff-2026.html</guid>
    <pubDate>Fri, 19 Jun 2026 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Things I bought and actually used in 2026, after the move from macOS to NixOS, with notes on what each one is like.</description>
    <content:encoded><![CDATA[<p>
its 2026 and i've made big changes to my setup (if you have an eagle eye you should've noticed the transition from the macOS badge to the NixOS badge on the home page)
</p>

<p>
yes i switched to linux from macOS. yes it was tahoe's fault. yes, it's insane that to <a href="https://www.caldigit.com/ts5-plus-and-element-5-hub-macos-firmware-update-procedures/">update the firmware on a thunderbolt dock</a>, you have to play peek-a-boo with a notification and pray the process completes (because when has updating firmware been easy and foolproof?) im sick of it. i wanted to enjoy my computer, and tahoe was the haybale that broke the camels back on that front. i still think the hardware is excellent, but i care less about that now.
</p>

<p>
in any case this is the list of things that could be sold from a home invasion for a pretty penny (please dont rob me my come up is legit)
</p>
<div id="outline-container-orgcc86c3b" class="outline-2">
<h2 id="orgcc86c3b"><a href="https://haz.ee/posts/stuff-2026.html#orgcc86c3b">computers</a></h2>
<div class="outline-text-2" id="text-orgcc86c3b">
<p>
ive got a bunch of computers. i use a 4x4 kvm from <a href="https://www.store.level1techs.com/products/kvm">level1techs</a> to hook everything up. i often only switch between the linux desktop and the gaming pc during the day. i use the other two when i need to get wired access to the mac studio or framework desktop, if for some reason im unable to do something over the network via ssh or vnc.
</p>

<section class="table-wrapper" tabindex="0" aria-labelledby="tbl-1">
<table class="hardware-table">
<caption id="tbl-1" class="t-above"><span class="table-number">Table 1:</span> the machines, and what is in them</caption>

<colgroup>
<col  class="org-left">

<col  class="org-left">

<col  class="org-left">

<col  class="org-left">

<col  class="org-left">
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">name</th>
<th scope="col" class="org-left">cpu</th>
<th scope="col" class="org-left">graphics</th>
<th scope="col" class="org-left">memory</th>
<th scope="col" class="org-left">notes</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left">linux desktop</td>
<td class="org-left">9950x3d</td>
<td class="org-left">7900 xt</td>
<td class="org-left">128 gb</td>
<td class="org-left">i use this for both home and work. i swap between two nvmes</td>
</tr>

<tr>
<td class="org-left">gaming pc</td>
<td class="org-left">9950x3d</td>
<td class="org-left">4090 fe</td>
<td class="org-left">128 gb</td>
<td class="org-left">personal pc. used to be windows for games with anticheat (riot) but ive since wiped and put linux on</td>
</tr>

<tr>
<td class="org-left">framework desktop</td>
<td class="org-left">ryzen ai max 395+</td>
<td class="org-left">ai max 395+ + rtx 6000 pro blackwell</td>
<td class="org-left">128 gb</td>
<td class="org-left">home server, hosts git, jellyfin, llms, etc.</td>
</tr>

<tr>
<td class="org-left">framework 13</td>
<td class="org-left">ai 9 hx 370</td>
<td class="org-left">ai 9 hx 370</td>
<td class="org-left">96 gb</td>
<td class="org-left">personal laptop, living room coding</td>
</tr>

<tr>
<td class="org-left">framework 13</td>
<td class="org-left">ai 9 hx 370</td>
<td class="org-left">ai 9 hx 370</td>
<td class="org-left">96 gb</td>
<td class="org-left">work laptop, for onsites in los gatos and ny office</td>
</tr>

<tr>
<td class="org-left">mac studio</td>
<td class="org-left">m1 ultra</td>
<td class="org-left">m1 ultra</td>
<td class="org-left">128 gb</td>
<td class="org-left">old main computer, used for ai until i got the blackwell</td>
</tr>

<tr>
<td class="org-left">mbo 2023</td>
<td class="org-left">m3 max</td>
<td class="org-left">m3 max</td>
<td class="org-left">48 gb</td>
<td class="org-left">old personal laptop, used for iOS / macOS development</td>
</tr>

<tr>
<td class="org-left">mbp 2024</td>
<td class="org-left">m4 max</td>
<td class="org-left">m4 max</td>
<td class="org-left">128 gb</td>
<td class="org-left">desginated macbook for work, rarely used</td>
</tr>

<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
<div id="outline-container-org59d2650" class="outline-2">
<h2 id="org59d2650"><a href="https://haz.ee/posts/stuff-2026.html#org59d2650">peripherals</a></h2>
<div class="outline-text-2" id="text-org59d2650">
<p>
bear with me. just like how i use multiple computers, i use multiple mice and keyboards. switching things out keeps the experiences new and fresh. when your job is sitting in a chair all day, anything to spice it up (even a new desktop background) helps.
</p>

<section class="table-wrapper" tabindex="0" aria-labelledby="tbl-2">
<table class="desk-table">
<caption id="tbl-2" class="t-above"><span class="table-number">Table 2:</span> what is on the desk</caption>

<colgroup>
<col  class="org-left">

<col  class="org-left">
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">item</th>
<th scope="col" class="org-left">use / notes</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><a href="https://www.genelec.com/8040b">genelec 8040b pair</a></td>
<td class="org-left">studio monitors for desk. these are awesome and let you focus on the music.</td>
</tr>

<tr>
<td class="org-left">sway 72" walnut desk</td>
<td class="org-left">older startup purchased this. i would not otherwise buy a $2000 desk.</td>
</tr>

<tr>
<td class="org-left"><a href="https://electronics.sony.com/imaging/interchangeable-lens-cameras/aps-c/p/zve10m2b">sony zv-e10 ii</a><sup><a id="fnr.1" class="footref" href="https://haz.ee/posts/stuff-2026.html#fn.1" role="doc-backlink">1</a></sup></td>
<td class="org-left">uvc (works over usb-c on linux) webcam. paired with <a href="https://viltrox.com/products/af-9mm-f2-8-e">viltrox 9mm f2.8</a> so you can see everything</td>
</tr>

<tr>
<td class="org-left">ergotron lx pro</td>
<td class="org-left">holds up my monitor. works. i want to 3d print a webcam mount for it but i keep giving away my printers</td>
</tr>

<tr>
<td class="org-left">2x <a href="https://rog.asus.com/us/monitors/27-to-31-5-inches/rog-swift-oled-pg27ucdm/">rog pg27ucdm</a></td>
<td class="org-left">27", 4k 240HZ tandem qd-oled. it doesn't get better than this. just buy this and stop worrying.<sup><a id="fnr.2" class="footref" href="https://haz.ee/posts/stuff-2026.html#fn.2" role="doc-backlink">2</a></sup></td>
</tr>

<tr>
<td class="org-left">finalmouse ulx prophecy clix</td>
<td class="org-left">38g gaming mouse. super light and my preferred choice for aim games.</td>
</tr>

<tr>
<td class="org-left">hitscan hyperlight</td>
<td class="org-left">excellent clicks, great wireless mouse for every day use</td>
</tr>

<tr>
<td class="org-left"><a href="https://zaunkoenig.co/m3k">zaunkoenig m3k</a></td>
<td class="org-left">new fingertip mouse im trying out. i really like it so far. havent swapped the skates but its super smooth on the wallhack</td>
</tr>

<tr>
<td class="org-left">endgame gear op 1 8k v2</td>
<td class="org-left">excellent clicks, great wired mouse for every day use (aka when im pissed the hyperlight is dead)</td>
</tr>

<tr>
<td class="org-left">new ibm model f62</td>
<td class="org-left">what this post is being conjured on. excellent clicks.</td>
</tr>

<tr>
<td class="org-left">round 1 brand new ibm beamspring</td>
<td class="org-left">unique exquisite clicks. soft yet tactile, an excellent experience. im waiting for a smaller variant to arrive.</td>
</tr>

<tr>
<td class="org-left"><a href="https://youtu.be/qU-2FAYUxwo">evija hg 1/10</a></td>
<td class="org-left">a one of a kind special heavyweight hhkb. my weapon of choice for intruders.</td>
</tr>

<tr>
<td class="org-left">a ton more other custom keyboards</td>
<td class="org-left">i have big plans (and a ton of unsoldered hardware) for the rest of my keyboard collection. stay tuned</td>
</tr>

<tr>
<td class="org-left">oneplus 15</td>
<td class="org-left">personal android. i use it for watching the wire. experimenting with lineage os</td>
</tr>

<tr>
<td class="org-left">google pixel 10 pro fold</td>
<td class="org-left">work phone (remove slack from your personal phone you'll sleep better)</td>
</tr>

<tr>
<td class="org-left">iphone 17 pro max</td>
<td class="org-left">imessage</td>
</tr>

<tr>
<td class="org-left"><a href="https://mjolnir-audio.com/electrostatic-amps/">mjolnir audio kgsshv</a></td>
<td class="org-left">big ass hot amplifier for my electrostatic headphones. sounds great, solid state</td>
</tr>

<tr>
<td class="org-left"><a href="https://staxaudio.com/earspeaker/sr-x9000">stax srx9000</a></td>
<td class="org-left">my first ever big boy purchase ($10,000+ with the amplifier!) couple months of financial anxiety! worth it, these sound euphoric.</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
<div id="outline-container-orgfb77d69" class="outline-2">
<h2 id="orgfb77d69"><a href="https://haz.ee/posts/stuff-2026.html#orgfb77d69">audio</a></h2>
<div class="outline-text-2" id="text-orgfb77d69">
<p>
i adore my audio setup. i keep buying more speakers, but everything on my desk is final. half because it cost an arm and a leg and i only have four of those in total, but also because i dont believe the next tier of equipment is worth the <del>bezos</del> elon i'd have to kill to get 'em.
</p>

<p>
if you were wondering where to start, id encourage you to find a local audio equipment place (could be guitar center, b&amp;h, etc.) and just listen around. more often than not the attendants work there for a reason (perhaps partially because they LIKE audio, crazy to think about, right?) and would be happy to help you nail a purchase for a sound you love. i've done this twice, once with <a href="https://bsky.app/profile/1999.nyc">veritas</a>.
</p>

<p>
what drove me to dive into electrostatic headphones was simply the technology. before estats, i was a die hard planar magnetic fan. of course, because of the tech there too. it was just too damn interesting how theres different kinds of transducers for audio. dynamic drivers work yeah they're bassy thumpy yup, but seeing ribbon tweeters or thin ass sheets of metal that produce the same sound is just, awesome.
</p>

<div class="captioned-image">
  
    
    
    <img src="https://haz.ee/static/img/transar-400.jpeg" width="400" height="533"
         alt="ess transar speakers" >
  
  <small>
  the <a href="https://positive-feedback.com/reviews/hardware-reviews/ess-laboratories-12-amt-series-loudspeakers/">ess transar</a>. 
  </small>
</div>

<p>
like, what even is that. how does it work. how is this a speaker. this pushes air and makes sound? it sounds good? i have no clue. but this is what drives me to my random purchases. this is my vice.
</p>

<p>
the other crazy thing i do with audio is route it over ip. i dont have a usb connection that routes audio. that means that if my switch dies, my audio goes out. that is a con im willing to put up with considering its a unmanaged switch thats a foot away from me&#x2026; worthy tradeoff to have audio routed to and from multiple computers. instead of large mixer boards with analog routing, we have&#x2026; technology. the mt48 i mentioned earlier has software that lets you click and define on a matrix routes. e.g route mic to pcs 1 and 2, then to fx input 1, and then fx input 1 to pcs 3 and 4. route all input from pcs into analog outs 1/2 and 3/4, which are headphones and speakers.
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/aneman-400.jpeg" width="400" height="550"
         alt="aneman software" >
  
  <small>
  aneman software for audio routing w/ aes67
  </small>
</div>

<p>
the best part is, there are web apps to control this. aes67 is built into the linux kernel (thank you MERGING!) and drivers for windows and macOS (which were operating systems i used at the time of purchase.) i can tap in from my phone across the room in bed and mute a route or change the interface volume, its awesome lol. the interface on the device im pretty sure is actually the website you visit anyways, so nothing is confusing either.
</p>

<p>
if i think of anything else i have that i didnt write about (or if you're curious about) ill likely add it here after a ping somewhere. been sitting on this for far too long and i want to write other things.
</p>
</div>
</div>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">

<div class="footdef"><sup><a id="fn.1" class="footnum" href="https://haz.ee/posts/stuff-2026.html#fnr.1" role="doc-backlink">1</a></sup> <div class="footpara" role="doc-footnote"><p class="footpara">
<a href="https://diiorio.me/posts/uvc-cameras/">more uvc mirrorless cameras</a> 
</p></div></div>

<div class="footdef"><sup><a id="fn.2" class="footnum" href="https://haz.ee/posts/stuff-2026.html#fnr.2" role="doc-backlink">2</a></sup> <div class="footpara" role="doc-footnote"><p class="footpara">
i actually bought the lg evo equivalent of the new studio display monitors from apple and they're&#x2026; okay&#x2026; but not OLED. it's the same with going to 240hz from 60hz. its practically impossible to go back, you notice too many faults.
</p></div></div>


</div>
</div></div>]]></content:encoded>
  </item>
  <item>
    <title>quickhack for common lisp</title>
    <link>https://haz.ee/posts/quickhack-for-common-lisp.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/quickhack-for-common-lisp.html</guid>
    <pubDate>Mon, 13 Jan 2025 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>quickhack: digging into the internals of Common Lisp libraries the way you peek into node_modules, for breakpoints, logpoints and source.</description>
    <content:encoded><![CDATA[<p>
coming from rust and javascript, i often want to dig into the internals of the libraries im using to develop my application. usually the goal is to tweak some behavior, add an extra configuration option, add breakpoints or logpoints, or get a fuller picture of whats going on under the hood. with javascript, those tasks are easily accomplished by peeking into <code>node_modules/</code>. in that folder are the build outputs (the literal javascript) that my application is loading and running. with rust, it's more or less the same game, but you have to manually clear the binary cache with <code>cargo clean -p crate</code> and modify the source within the crates.io index. this also means you modify it for other dependencies, but when hacking on something temporarily, that's not the end of the world.
</p>

<p>
what does that look like for common lisp? coming from the typical editor and terminal tab switch workflow, things like a sophisticated repl are somewhat difficult to reach for when in a flow state. i know you can easily evaluate <code>(in-package :external-package)</code> and (re-)define things there, but you miss out on having the context of the source by your side (local tools, jump to definition, etc). i think a slightly less daunting approach follows, which i've dropped into my <code>~/.sbclrc</code> which is loaded for every interactive lisp session:
</p>

<div class="org-src-container">
<pre>(defpackage haze
  (:use :cl)
  (:export #:ql-hack-on))
(in-package :haze)

(defun ql-hack-on (identifier)
  "Copy the 'ql:quickloaded' result of IDENTIFIER to '(FIRST QL:*LOCAL-PROJECT-DIRECTORIES*)' for easy modifications."
  (let* ((release (ql-dist:find-release identifier))
         (archive (ql-dist:ensure-local-archive-file release))
         (local-projects (first ql:*local-project-directories*)))
    (ql-util:with-temporary-file (tar "hackable-release-install.tar")
      (ql-gunzipper:gunzip archive tar)
      (ql-minitar:unpack-tarball tar :directory local-projects)
      (let ((output (merge-pathnames (pathname-name archive) local-projects)))
        output))))

(in-package :cl-user)
</pre>
</div>

<p>
what this does is define a package <code>haze</code> that has one exported function, <code>ql-hack-on</code>. in an interactive lisp session, if i want to "hack on" a package such as <code>filesystem-utils</code> (to say <a href="https://github.com/Shinmera/filesystem-utils/issues/3">prototype hardlink support</a>) i can evaluate <code>(haze:ql-hack-on "filesystem-utils")</code> and have the latest release from the preferred quicklisp distribution is placed within one of <code>ql:*local-project-directories*</code>, which happens to be <code>$HOME/quicklisp/local-projects</code>.
</p>

<p>
from there, subsequent loads (<code>(ql:quickload "filesystem-utils")</code>) of <code>filesystem-utils</code> will read from my local copy, and i can hack away. this is great for quickly prototyping additions and im glad i can find a familiar workflow with a new language. i am also interesting in how other tenured lisp programmers go by modifying quicklisp libraries, so please comment on your preferred link aggregator!
</p>

<small> this is entry <code class="writing-entry">1/52</code> in my quest to write one piece per week of 2025. </small>
</div>]]></content:encoded>
  </item>
  <item>
    <title>creating the aetheryte radio</title>
    <link>https://haz.ee/posts/aetheryte-radio.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/aetheryte-radio.html</guid>
    <pubDate>Tue, 17 Sep 2024 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Building aetheryte.haze.cool, a 24/7 stream of FFXIV aetheryte ambience: the source assets, the audio graph, and the browser autoplay gotchas.</description>
    <content:encoded><![CDATA[<p>
sometimes when i work i like to listen to ambiance. one video in
particular is the <a href="https://www.youtube.com/watch?v=H-P2VkIjOGw">"aetheryte asmr"</a>, which is an in game recording of
the <a href="https://ffxiv.consolegameswiki.com/wiki/Aetheryte">aetheryte crystal</a>. for the past <i>6 years</i> i've been listening to
the same youtube video on repeat. there are a number of problems with
this approach:
</p>

<ol class="org-ol">
<li>the youtube player's "loop" functionality doesn't always work. it
might loop 20 or 200 times before failing(?) and auto-playing
another video. this is jarring.</li>
<li>the audio in the video is a ~7 minute recording, but the loop isn't
seamless (i spent far too long re-architecting my music player's
internals to support gapless playback), and while it's long enough
that i don't care when it cuts and loops, it would be nice if it
were seamless.</li>
<li>of course i can't keep the game open.. that's far too resource
intensive, other players (ffxiv is an mmorpg) could approach nearby
and create noise and ruin the effect, etc.</li>
</ol>

<p>
none of these were deal breakers for me. 6 years is a pretty long time
to go facing some struggles before sitting down and deciding to tackle
a problem.
</p>

<p>
nevertheless, one day i finally sat down and thought to myself.. "how
can i get the best experience for the ambience without sacrifice?"
</p>

<p>
the first answer is that i needed to get the game assets. whatever the
game was using to play the noise, i needed to extract. with those in hand,
i could recreate or play with them in whichever way i wanted.
</p>
<div id="outline-container-org304bf8e" class="outline-2">
<h2 id="org304bf8e"><a href="https://haz.ee/posts/aetheryte-radio.html#org304bf8e">getting the source assets</a></h2>
<div class="outline-text-2" id="text-org304bf8e">
<p>
ffxiv isn't a super well protected game (at least i don't think.) if
you web search "ffxiv data explorer" there are old java apps that load
up the asset packages from the games install directory and let you
export (presumably) compressed assets. i don't remember which fork i
used, but i do know that it came with a hash table that mapped the
file to an english file name.
</p>

<p>
you're going to laugh at me (and honestly that's ok.) i spent 4 hours
coming through <b>4000</b> audio assets trying to find the audio assets. i
literally ctrl+a'd all 4000 .wav files and pressed the left and right
arrow keys to move back and forth within the large mpv playlist,
looking for the aetheryte noise. the funny part is that i didn't find
them, and had to go to sleep at 3am.
</p>

<p>
i'm an engineer though, right? work smarter, not harder (why didn't i
do this before doing the tedious work? idk.) was there any <i>better</i>
way to get the sound? did i miss it during my 3am comb over? (hint. i
did.) turns out, there is! ffxiv has an extensive modding community
and platform, and while i don't play the game much anymore, it was
exhilarating to see how much effort people put into customizing their
experience.
</p>
</div>
<div id="outline-container-org4e91f6d" class="outline-3">
<h3 id="org4e91f6d"><a href="https://haz.ee/posts/aetheryte-radio.html#org4e91f6d">xivlauncher, vfxeditor, and soundfilter</a></h3>
<div class="outline-text-3" id="text-org4e91f6d">
<p>
if you boot ffxiv using <a href="https://goatcorp.github.io">xivlauncher</a> (endorsed by my roommate who has
180 days of play time) you can load up plugins. one plugin of interest was
<a href="https://git.anna.lgbt/anna/SoundFilter/src/branch/main/SoundFilter">soundfilter</a>. i know the name is a bit misleading, but it has the
ability to <b>display the names of now playing assets</b>. this helped a
ton because i was able to teleport to a new area in the game (the
aetherytes are basically waypoint / teleport crystals) and figure out
which sound was being played. quickly after i found that the asset i
was looking for was
<code>bgcommon/sound/fst/placednpc_ethelight_big_loop.scd/0</code>. i quickly
exported said asset and was on my way.
</p>

<p>
an interesting note about that asset is the <code>/0</code> at the end. i'm
pretty sure the sound "asset" contains multiple sounds (i think they
were called tracks in game.) 0 was simply the "hum" or the low
frequency of ambiance.
</p>

<div id="aetheryte-audio-preview">
  <span>you can preview the assets here</span>
  <span><strong>beware!</strong> these are loud. i did not normalize these to preserve integrity</span>
  <!-- each player is named by the label beside it. without aria-labelledby a
       screen reader announces three identical, anonymous "audio" controls and
       the only thing telling them apart is a word nobody hears. loading=lazy is
       chrome/edge only and harmless elsewhere: preload=none already holds the
       bytes back, this also holds back the player's own requests until the row
       is near the viewport. -->
  <div>
    <span id="preview-hum">hum</span>
    <audio controls preload="none"  aria-labelledby="preview-hum" src="https://haz.ee/static/aetheryte/hum.m4a"></audio>
  </div>
  <div>
    <span id="preview-whir-1">whir 1</span>
    <audio controls preload="none"  aria-labelledby="preview-whir-1" src="https://haz.ee/static/aetheryte/whir1.m4a"></audio>
  </div>
  <div>
    <span id="preview-whir-2">whir 2</span>
    <audio controls preload="none"  aria-labelledby="preview-whir-2" src="https://haz.ee/static/aetheryte/whir2.m4a"></audio>
  </div>
</div>

<p>
sadly, getting the actual ambiance would require a bit more elbow
grease. i <b>could</b> have just thrown these together in <a href="https://www.apple.com/logic-pro/">logic pro</a> and
called it a day, but where's the fun in that? plus, i'd have to create
an excessively long track. i didn't want to be subconsciously aware of
when the loop repeats. i wasn't too worried about this though, as i
had the right tools up my sleeve to solve my first world made up
problem.
</p>
</div>
</div>
<div id="outline-container-org050f0c3" class="outline-3">
<h3 id="org050f0c3"><a href="https://haz.ee/posts/aetheryte-radio.html#org050f0c3">web audio api</a></h3>
<div class="outline-text-3" id="text-org050f0c3">
<p>
enter the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API">web audio api</a>. im not sure who (or what) did it first, but
av processing tends to converge on the idea of "nodes" that produce,
transmute, or consume samples. i'm pretty sure this comes from the
status quo before large investments in pro-av workflows on computers,
which i'd guess would be modular synths.
</p>
</div>
<div id="outline-container-orgf82760a" class="outline-4">
<h4 id="orgf82760a"><a href="https://haz.ee/posts/aetheryte-radio.html#orgf82760a">the hum</a></h4>
<div class="outline-text-4" id="text-orgf82760a">
<p>
i didn't do much analysis on this asset in particular. i assumed (and
was correct) that the loop is <i>mostly</i> a perfect loop. a friend of
mine helped get it sample correct so that it'd loop without a click
when playing with web audio api (you can instruct a "sink" node to
continue supplying samples by resetting it's offset), but there wasn't
any other post processing on that asset. the audio node graph is
pretty simple at this point: <code>source node (hum.wav) -&gt; gain node
(-25db) -&gt; output node</code>. the gain node is there to match the volume
adjustment made in game. the interesting (but only relatively) part of
the graph however is the whir nodes.
</p>
</div>
</div>
<div id="outline-container-org7bc09d4" class="outline-4">
<h4 id="org7bc09d4"><a href="https://haz.ee/posts/aetheryte-radio.html#org7bc09d4">the whirs</a></h4>
<div class="outline-text-4" id="text-org7bc09d4">
<p>
ffxiv plays the whirs at random intervals, pitches, and gain (volume).
these are all added to create an illusion of life(?) that make it
harder to detect when an asset is repeating. thankfully, ffxiv also
provided values that gave the min and max values for each of the
random parameters, so it was easy to translate into javascript:
</p>

<div class="org-src-container">
<pre>// select a random whir
const whirIndex = Math.floor(Math.random() * whirs.length);
// select a random pitch
const whirPlaybackRate = Math.random() * (1 - 0.794) + 0.794;
// select a random volume
whirGainNode.gain.value = Math.random() * (1 - 0.6) + 0.6;
</pre>
</div>

<p>
if you've ever built a graph by hand the flow is usually something
like: allocate a node, set metadata, and connect. i do the following
to setup the hum:
</p>

<div class="org-src-container">
<pre>const humSource = audioContext.createBufferSource();
humSource.buffer = await loadSample(
    audioContext,
    isSafari ? "assets/hum.wav.opus.aac" : "assets/hum.wav.opus",
);
humSource.playbackRate.value = 0.63;
humSource.connect(humGainNode);
humSource.loop = true;
humSource.start(0);
</pre>
</div>

<p>
it's actually ok that i connect the node before i set loop, because
the node doesn't produce samples until i call <code>start</code>.
</p>

<p>
the other part of the ceremony is the whir loop. it's not actually a
loop using conventional loop control flow. instead of using a <code>while
(true)</code> with a random "sleep" in between, i instead use <code>setTimeout</code> to
schedule the next whir at a random interval.
</p>

<div class="org-src-container">
<pre>function chooseWhir() {
    const whirSource = audioContext.createBufferSource();
    const whirIndex = Math.floor(Math.random() * whirs.length);
    const whirPlaybackRate = Math.random() * (1 - 0.794) + 0.794;
    whirGainNode.gain.value = Math.random() * (1 - 0.6) + 0.6;
    whirSource.buffer = whirs[whirIndex];
    whirSource.playbackRate.value = whirPlaybackRate;
    whirSource.connect(whirGainNode);
    whirSource.start(0);

    whirSource.onended = () =&gt; {
        // disconnect self and re-queue another whir
        whirSource.disconnect(whirGainNode);
        const nextWhirDelay = Math.floor(Math.random() * 2001);
        setTimeout(chooseWhir, nextWhirDelay);
    };
}
</pre>
</div>

<p>
same deal here: create a source node, select a random asset, playback
rate (pitch), gain (volume), and connect it to the gain node (which
stays constant in this process and only has it's value changed.) the
key here is that when the source asset ends, instead of looping, we
remove that node from the graph and add a new one (by calling
<code>chooseWhir</code> again.) because there is an expected delay before the
next whir, i'm ok with adding whatever latency is added by doing the
random calculation, it's likely marginal.
</p>
</div>
</div>
</div>
<div id="outline-container-orgf949f84" class="outline-3">
<h3 id="orgf949f84"><a href="https://haz.ee/posts/aetheryte-radio.html#orgf949f84">conclusion</a></h3>
<div class="outline-text-3" id="text-orgf949f84">
<p>
this was a fun project to work on. you can demo the final result at <a href="https://aetheryte.haze.cool">aetheryte.haze.cool</a>.
because we've ruined playing audio in browsers you need to interact
with the page first before you can hear anything, so make sure you
unmute both the whir and the hum and click "connect" to listen.
</p>
</div>
<div id="outline-container-org1d3b5c3" class="outline-4">
<h4 id="org1d3b5c3"><a href="https://haz.ee/posts/aetheryte-radio.html#org1d3b5c3">vanilla js</a></h4>
<div class="outline-text-4" id="text-org1d3b5c3">
<p>
growing up as an engineer i didn't care too much about the web or web
technologies. i was more focused on systems applications, games, and
networking. im not sure where i learned to interact with the web or
build web apps, but it sure wasn't the bog standard npm + react +
jsx/tsx dance we have today. im not building enterprise grade web apps
meant for collaboration between 100+ devs, it's just me. i didn't mind
creating static elements and using <code>document.getElemenyById</code>. it
greatly simplified the creation process and let me move quicker and
care about the project at hand. no frustrations with transpilation or
jsx, my project wasn't that complicated. 
</p>
</div>
</div>
</div>
</div>
</div>]]></content:encoded>
  </item>
  <item>
    <title>component over scart</title>
    <link>https://haz.ee/posts/component-over-scart.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/component-over-scart.html</guid>
    <pubDate>Tue, 17 Sep 2024 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Modding a composite-to-SCART adapter to take RGB component input: which SCART pins to bridge, the desoldering, and the CRT it was tested on.</description>
    <content:encoded><![CDATA[<div id="outline-container-org5de6a86" class="outline-2">
<h2 id="org5de6a86"><a href="https://haz.ee/posts/component-over-scart.html#org5de6a86">context backstory etc yada yada</a></h2>
<div class="outline-text-2" id="text-org5de6a86">
<p>
lately ive been diving deep intro retro gaming. i picked up a <a href="https://crtdatabase.com/crts/sony/sony-pvm-20m2u">pvm
20m2u</a> and started collecting retro video game consoles. one
interesting thing about this crt is its input capabilities.
thankfully, it supports a number of input formats (albeit through BNC
for most), such as composite (yuck), s-video (meh), component (yay),
and rgb (yay). to get the best picture out of your retro consoles,
it's best to use component or rgb. the only difference is region:
component was mainly used in NTSC region and RGB in PAL. i won't go
into detail about why, there are tons of blogs and comparisons images
online a search away.
</p>

<p>
i have this cool switcher (think KVM) that automatically switches the
input to an active source and outputs over one output, so i never have
to change the cables in the back of the crt. it also doesn't help that
the pvm only has one set of BNC inputs for RGB/component. for most
consoles, it's been as easy as ordering a &lt;x console&gt; to SCART
adapter. i currently have a MiSTer, japanese PS2, og xbox, and a
gamecube. the problem comes with the gamecube. i dont know if im super
unlucky or what, but the one gamecube i buy (which is japanese)
follows the NTSC convention of offering component over it's DIGITAL
port (???), instead of the analog variant. to get a non s-video /
composite signal, i have to use the digital to component cable. this
is fine and dandy, but the only one on amazon is through rca and not
scart (which is fine.) this poses a problem, i can't use my special
switcher! heres where the fun comes in
</p>

<p>
scart is just an interconnect; it provides a different form factor for
sending electrical signals. there isn't anything special about the
signal that it needs or does, so in theory, i could put the same
analog signals that component is carrying over rca in it. an example
of that cable would look something like this
</p>


<div class="captioned-image">
  
    
    
    <img src="https://haz.ee/static/img/component-over-scart/desired-converter-400.jpeg" width="400" height="333"
         alt="a 3 rca r/g/b to scart converter" >
  
  <small>
    a 3 rca r/g/b to scart converter
  </small>
</div>

<p>
i can't find this thing anywhere online. whatever, i'll make my own.
</p>
</div>
</div>
<div id="outline-container-orgfb2cf51" class="outline-2">
<h2 id="orgfb2cf51"><a href="https://haz.ee/posts/component-over-scart.html#orgfb2cf51">making my own</a></h2>
<div class="outline-text-2" id="text-orgfb2cf51">
<p>
i bought some random composite to scart adapter online and tore it
apart.
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/scart-breakdown-400.jpeg" width="400" height="533"
         alt="the innards of the composite to scart thing" >
  
  <small>
    the innards of the composite to scart thing
  </small>
</div>

<p>
there was a switch inside that i just removed because i dont need to
go back and forth, the scart end will only be the output. this all
looked pretty standard though, i just need to hook up some rca
receivers to the pins and i should be good to go. heres the pinout for
scart
</p>


<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/scart-pinout-400.jpeg" width="400" height="414"
         alt="scart pinout" >
  
  <small>
    scart pinout
  </small>
</div>

<p>
the pins are actually super easy to remove. you can push them through from the exposed side.
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/scart-with-pins-removed-400.jpeg" width="400" height="533"
         alt="close up of scart connector with some pins removed" >
  
  <small>
    close up of scart connector with some pins removed
  </small>
</div>

<p>
heres my setup for doing this. it's just my iphone with the magnifier
open and the flash turned on. i've done a bunch of soldering before
and only realized now that i could buy a scope. it doesn't help that
im blind as a bat, but this made do. yes, i am soldering on the table.
no i do not care. yes the table was donated.
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/setup-400.jpeg" width="400" height="533"
         alt="my janky soldering setup" >
  
  <small>
    my janky soldering setup
  </small>
</div>

<p>
for the first test i soldered the ground (black) of a rca input to
audio in (ground) and red to the left channel input line. i don't
really know what to call it, and i don't remember how i know red
<i>isn't</i> ground. i thought it was interesting that for audio in, both
the left and right channel share the same ground. i need to read up
more on why this is acceptible and why it's not for the color channels.
</p>

<p>
after like, 5 minutes i was ready to test on the actual console
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/left-audio-test-400.jpeg" width="400" height="300"
         alt="the gamecube component adapter's left audio rca hooked up to the scart head" >
  
  <small>
    the gamecube component adapter's left audio rca hooked up to the scart head
  </small>
</div>

<p>
lo and behold it worked! awesome! i didn't overlook anything and im
not an idiot! that feeling was great but it lasted all of 5 seconds
befor realizing i had to do 8 more solders.
</p>

<p>
after (literally) 15 minutes i had them all done (i grossly
overestimated how long it would take) and labeled, heres the finished
product.
</p>

<div class="captioned-image">
  
    
    
    <img  src="https://haz.ee/static/img/component-over-scart/finished-400.jpeg" width="400" height="533"
         alt="finished component to scart adapter" >
  
  <small>
    finished component to scart adapter
  </small>
</div>

<p>
no surprises here, it worked! i was finally able to hook my gamecube up to the scart switcher and play some melee.
</p>
</div>
</div>
<div id="outline-container-org6921be5" class="outline-2">
<h2 id="org6921be5"><a href="https://haz.ee/posts/component-over-scart.html#org6921be5">reflection</a></h2>
<div class="outline-text-2" id="text-org6921be5">
<p>
i need to 3d print a different case. the original opening allowed for
3 slim input wires, but 5 is pushing it, and i barely was able to
close it. at some point, i should measure the dimensions and just
print a new one. i don't have any experience designing joints for
resin printing, so i'll have to ask around for pointers there.
</p>

<p>
its good to know that component does its sync over green rather than
composite like rgb, less cables ftw!.
</p>
</div>
</div>
</div>]]></content:encoded>
  </item>
  <item>
    <title>new blog</title>
    <link>https://haz.ee/posts/new-blog.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/new-blog.html</guid>
    <pubDate>Tue, 17 Sep 2024 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Rewriting this blog again: what the Astro iteration got right about speed and accessibility, and why the new one is Emacs org-mode publishing to S3 with no JavaScript.</description>
    <content:encoded><![CDATA[<p>
every engineer has the ever-lasting desire to rewrite their blog using
some new language or technology. i am not an exception.
</p>
<div id="outline-container-orgf64a61f" class="outline-2">
<h2 id="orgf64a61f"><a href="https://haz.ee/posts/new-blog.html#orgf64a61f">astro</a></h2>
<div class="outline-text-2" id="text-orgf64a61f">
<p>
the last iteration of this blog i focused on making the web site as
fast and accessible as possible. as an extra challenge, i wanted to
accomplish this without being too heavy handed into neglecting
frameworks. the previous iteration used <a href="http://astro.build">astro</a>. i don't have too many
opinions on web tech, but i think it was <b>okay</b>, nothing spectacular.
i figured it appealed to other web developers who had more experience
with larger applications and needed components. i found myself out of
place because my web sites are usually so simple they don't need that
kind of abstraction and tooling. however, i did enjoy creating a
<a href="https://github.com/rehypejs/rehype">rehype</a> plugin to syntax highlight the code blocks on my websute using
<a href="http://tree-sitter.github.io">tree-sitter</a>. i love when tools i use give me the freedom to make
things the way i see fit, i'll never get bored or tired of computers.
</p>
</div>
</div>
<div id="outline-container-org220fbbd" class="outline-2">
<h2 id="org220fbbd"><a href="https://haz.ee/posts/new-blog.html#org220fbbd">emacs</a></h2>
<div class="outline-text-2" id="text-org220fbbd">
<p>
i've recently fallen in love with emacs. initially i was curious about
lisp and how <i>apparently</i> lisp had everything 50 years before other
mainstream programming languages. emacs is the go-to editor for lisp,
but i've also fell in love with configuring (extending&#x2026;) my editor
in lisp. i love the interopability, i love the introspection
capabilities. i love having a fuzzy searchable menu of all functions
and variables in use of the editor. i love click on entries and being
served the literal source code for how those functions or variables
are defined or used. i love being able to just tap in and use them for
my own extensions. try doing that with vscode. (i'm currently doing
that for work and it's a pain in the ass.)
</p>
</div>
</div>
<div id="outline-container-orgf42757f" class="outline-2">
<h2 id="orgf42757f"><a href="https://haz.ee/posts/new-blog.html#orgf42757f">org</a></h2>
<div class="outline-text-2" id="text-orgf42757f">
<p>
i'm not a huge org mode fan. i don't care about note taking or linked
documents or having a wiki. i can't even keep a simple todo list. i
just dm myself tasks / relevant info to myself in slack for work. i've
tried using things like <a href="https://linear.app">linear</a> and such for project management, and
it's just not my vibe. oddly enough i work best by default, i don't
really lose track of things (they stay in my head.)
</p>

<p>
this site is generated using org mode. i don't have anything fancy
other than the html exporter and some custom CSS.
</p>
</div>
</div>
<div id="outline-container-orgfed6707" class="outline-2">
<h2 id="orgfed6707"><a href="https://haz.ee/posts/new-blog.html#orgfed6707">geocities inspiration</a></h2>
<div class="outline-text-2" id="text-orgfed6707">
<p>
the style of this web site is inspired by <a href="https://en.wikipedia.org/wiki/GeoCities">geocities</a>, and in general
older web sites (late 90s early 2000s.) i have tried to replicate
certain design motifs with a modern feel (mobile awareness) so that
the look is preserved while the usability isn't. i really liked the
tiled space backgrounds. i even figured out how to create my own that
don't look too jarring. (try and find my signature in the tiled
texture of the site home!)
</p>
</div>
</div>
</div>]]></content:encoded>
  </item>
  <item>
    <title>ripping &amp; processing vinyl</title>
    <link>https://haz.ee/posts/vinyl-processing.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/vinyl-processing.html</guid>
    <pubDate>Tue, 17 Sep 2024 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Ripping and processing vinyl for a 90s drum-and-bass collection: the turntable, the amplifier, and the pipeline from record to usable files.</description>
    <content:encoded><![CDATA[<p>
lately, i've been super into old 90s drum-and-bass (namely jungle) and
have difficulty finding good copies of the songs i like online. aside
from dubplates existing in invite-only communities, compilations and
youtube videos are the only mediums for finding new tracks. getting
good copies of music usually means ripping the cd, but many of these
older jungle releases are only available on vinyl, with minimal
quantity. the first step to getting a clean, crisp copy of a song i
like is ordering it. so far, i've had varying (but positive) success
with discogs. most of the releases i'm after are coming from the uk,
so shipping time usually includes the seller processing time +
customs. they mostly arrive in under four weeks and, at the best, one
week.
</p>

<p>
once i have the record, the next step is getting the signal off of the
plate. remember that vinyl is an analog audio medium; there are no 1s
and 0s. we need to pass this signal through an analog to digital
converter. converter is the technical name for the devices because
they (try their best to) convert analog signal into digital samples
and convert digital samples into an analog signal for playback on
listening devices. remember, speaker mediums are diaphragms, and an
analog signal usually drives their movement. in my case, i use a
focusrite scarlett 18i20 (but i'm eyeing up the rme fireface ufx ii if
anyone with a fat wallet wants to gift me something.)
</p>

<p>
having an audio interface is cool, but how do we go from record to
digital samples on my computer? first, we must find a playback medium
(a turntable/record player). my dad is an even bigger audio nerd than
me and is, among many other things, a dj (disc jockey, if you didn't
know), and he happened to have an extra turntable i could borrow. if
you're looking for a good direct drive (the platter the record sits on
is connected directly to the motor, as opposed to belt-driven
turntables), then the technics sl-1200 series is excellent. i have an
sl-1200 m3d (older than me!) even with just the record on the
turntable, we need a way to interpret the signal. now is where the
needle comes in. i'm still not 100% on the makeup of the actual
pickup, but most come in two parts, the cartridge and the stylus. the
stylus is the actual needle that moves along the record's grooves, and
the cartridge is the housing that the stylus sits inside. it's crucial
to balance the needle so that there isn't any drift and that it's
weighted correctly for smooth playback.
</p>

<p>
just because we have the needle on the record doesn't mean we get a
good signal. the music is far too quiet, and we need an amplifier to
boost the signal to audible levels directly out of the turntable. i
use the yamaha a-s501 with the pure direct option on (to bypass any of
the settings on the amplifier.) now that we have a signal coming into
our interface, we can use any recording program to get a file full of
digital samples. i use logic pro, but there isn't any difference
between that and audacity aside from processing with plugins. now that
we are recording, we can place the needle on the record and hit play!
my interface also allows me to monitor the analog signal in real-time,
so usually, i switch over to give myself something to do while it
records. after the recording completes, it's up to me to splice the
track for the beginning, end, and post-process.
</p>

<p>
i've heard vinyl rips with zero post-processing and some with a ton,
but i like to keep it simple. i use izotope rx 9 to remove clicks and
other annoyances from the signal. remember, these records are usually
~10 years older than me, so they aren't in the best condition. the
best i can do to fight against a poor signal is clean the record and
post-process, but it's not like i'd ever own the original master the
producer made.
</p>

<p>
for post-processing, i normalize the signal to -0.1db (for some
headroom with distorted signals) and manually remove clicks, pops, and
hum with izotope. then i encode the wav into flac (using the best
compression level) and downsample from 192 khz 24 bit to 48 khz 16 bit
(this results in much smaller files!) after that, i package the
release with scans of the label (either from my phone or from discogs)
and include a lineage file that documents the signal's journey. below
is a picture of the recording setup minus my interface and computer.
</p>

<div class="captioned-image">
  
    
    
    <img src="https://haz.ee/static/img/ripping_setup-400.jpeg" width="400" height="711"
         alt="my 'fallen angels - hello lover ep' record on top of the aforementioned turntable and amplifier" >
  
  <small>
    my 'fallen angels - hello lover ep' record on top of the aforementioned turntable and amplifier
  </small>
</div>


<p>
so far, i've only ripped two records, and i'm learning new ways to get
a cleaner signal. if you have any tips or tricks, please don't
hesitate to let me know! i do this partly with an archivists lens, so
purity is extra important!
</p>
</div>]]></content:encoded>
  </item>
  <item>
    <title>ddns + curl + launchd = ❤️</title>
    <link>https://haz.ee/posts/ddns.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/ddns.html</guid>
    <pubDate>Sat, 30 Sep 2023 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>Dynamic DNS for a home server without a DDNS client: a launchd job that curls the current IP and updates the record.</description>
    <content:encoded><![CDATA[<p>
as someone who opts for home hosting services and websites, having a
dynamic ip assigned from my isp is quite troublesome. dynamic dns
helps solve the headache of a non-static (frequently changing) ip
address by allowing immediate updating of dns records. fortunately,
many services like dyndns and no-ip have software integrated into
routers to perform these updates as the ip address changes.
unfortunately, i use google domains as my registrar, and their dynamic
dns service is not available as an endpoint for my router. however,
dynamic dns is super simple, and we don't need any specialized
software to perform these updates.
</p>

<p>
google domains has a simple http api that lets you update the ip
address for dns records. the format is as follows:
<code>https://username:password@domains.google.com/nic/update?hostname=subdomain.yourdomain.com&amp;myip=1.2.3.4</code>
</p>

<p>
this is where launchd comes in. if i can easily update my dns records
with a simple curl, i can replace the recommended programs (ddclient
and inadyn) with building blocks my operating system comes with.
</p>

<strong><small>launchd manifest</small></strong>

<div class="org-src-container">
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
  &lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;update-dyndns&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
          &lt;string&gt;/usr/bin/env&lt;/string&gt;
          &lt;string&gt;/Users/haze/dyndns/update.sh&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;StartInterval&lt;/key&gt;
        &lt;integer&gt;600&lt;/integer&gt;
  &lt;/dict&gt;
&lt;/plist&gt;
</pre>
</div>

<strong><small>dynamic dns update script</small></strong>

<div class="org-src-container">
<pre>#!/bin/sh
IP=`curl -s ifconfig.me`
curl -v "https://username:password@domains.google.com/nic/update?hostname=@.worldpeace.social&amp;myip=$IP"
curl -v "https://username:password@domains.google.com/nic/update?hostname=dynamic.haze.cool&amp;myip=$IP"
curl -v "https://username:password@domains.google.com/nic/update?hostname=server.haze.cool&amp;myip=$IP"
curl -v "https://username:password@domains.google.com/nic/update?hostname=music.haze.cool&amp;myip=$IP"
</pre>
</div>
</div>]]></content:encoded>
  </item>
  <item>
    <title>rehype-tree-sitter</title>
    <link>https://haz.ee/posts/rehype-tree-sitter.html</link>
    <guid isPermaLink="true">https://haz.ee/posts/rehype-tree-sitter.html</guid>
    <pubDate>Mon, 24 Jul 2023 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>posts</category>
    <description>rehype-tree-sitter: the tree-sitter based syntax highlighting plugin I wrote for Astro, after shiki and prism both fell short.</description>
    <content:encoded><![CDATA[<p>
during the migration of my blog from handwritten html to a fancier web
framework, i noticed that there weren't many code block highlighting
options to choose from. in terms of <a href="https://astro.build">astro</a>, there are only two plugins
that are capable of syntax highlighting: <a href="https://github.com/shikijs/shiki">shiki</a> and <a href="https://github.com/prismjs">prismjs</a>. shiki uses
textmate grammars. i'm not the hugest fan of regex-based syntax
highlighting engines and i've spent way too much time creating custom
grammars for new languages before, only to be met with a buggy mess in
the end. (skill issue?) prism <a href="https://github.com/prismjs/prism/blob/master/components/prism-c.js">also uses regex</a> rules to do its
highlighting, so that's also not an option.
</p>

<p>
in my opinion, <a href="https://tree-sitter.github.io/tree-sitter/">tree-sitter</a> is currently the best option for
highlighting source code. there's no contest. not only is it
performant, but the dsl is much easier to wrap your head around. i
knew right away that this was the tool i wanted to use to power the
pretty little colors on my website. the real question was figuring out
<b><b>how</b></b>.
</p>

<p>
after searching around, i discovered that astro uses <a href="https://unifiedjs.com">unified</a> as its
underlying engine for working with html and markdown/mdx. to get what
i want, i'd have to create a plugin that fits somewhere in-between
these conversion steps and produces the correct output.
</p>
<div id="outline-container-org6d6bcda" class="outline-2">
<h2 id="org6d6bcda"><a href="https://haz.ee/posts/rehype-tree-sitter.html#org6d6bcda">iteration one &#x2013; command line interface</a></h2>
<div class="outline-text-2" id="text-org6d6bcda">
<p>
in the beginning, i had a hard time deciding on which part of the
html/markdown processing chain i wanted to inject my logic into.
<code>rehype</code> is responsible for transforming and working with html syntax
trees (which they call <code>hast</code>). <code>remark</code> is the same, but for markdown
(<code>mast</code>). in the end i decided upon <code>rehype</code>, because to get an mvp
out, i wanted to use the tree-sitters built-in <a href="https://github.com/tree-sitter/tree-sitter/blob/master/cli/src/highlight.rs">html highlight</a>
functionality.
</p>

<p>
to create a <code>rehype</code> plugin, i first needed to create a node package
that will export the function responsible for transforming the
relevant syntax tree.
</p>

<div class="org-src-container">
<pre>import { visit } from "unist-util-visit";
import { rehype } from "rehype";

const isCodeBlockElement = (node) =&gt; node.tagName === "code";
export function rehypeTreeSitter(options) {
  return function (tree) {
    visit(tree, isCodeBlockElement, (node, index, parent) =&gt; {
      console.log(tree);
    });
  };
}
</pre>
</div>

<p>
before messing around with astro and real data, i created a
[jest](<a href="https://jestjs.io">https://jestjs.io</a>) test to make sure my code was correct. this
also allows for faster iteration speed, since we only execute code we
care about.
</p>

<div class="org-src-container">
<pre>import { rehypeTreeSitter } from "./index.js";
import { rehype } from "rehype";

test("basic math", () =&gt; {
  expect(2 + 2).toBe(4);
});
</pre>
</div>

<p>
now that i had some tooling in place, i could begin coding. i knew
that if i executed <code>tree-sitter highlight -h code.js</code>, it'd spit some
html out like below.
</p>

<div class="org-src-container">
<pre>&lt;body&gt;
  &lt;table&gt;
    &lt;tr&gt;
      &lt;td class="line-number"&gt;1&lt;/td&gt;
      &lt;td class="line"&gt;
        &lt;span style="color: #5f00d7"&gt;function&lt;/span&gt;
        &lt;span style="color: #005fd7"&gt;sum&lt;/span&gt;&lt;span style="color: #4e4e4e"&gt;(&lt;/span&gt;
        &lt;span style="text-decoration: underline;"&gt;a&lt;/span&gt;&lt;span style="color: #4e4e4e"&gt;,&lt;/span&gt;
        &lt;span style="text-decoration: underline;"&gt;b&lt;/span&gt;&lt;span style="color: #4e4e4e"&gt;)&lt;/span&gt;
        &lt;span style="color: #4e4e4e"&gt;{&lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="line-number"&gt;2&lt;/td&gt;
      &lt;td class="line"&gt;
        &lt;span style="color: #5f00d7"&gt;return&lt;/span&gt;
        &lt;span style="text-decoration: underline;"&gt;a&lt;/span&gt;
        &lt;span style="font-weight: bold;color: #4e4e4e"&gt;+&lt;/span&gt;
        &lt;span style="text-decoration: underline;"&gt;b&lt;/span&gt;
        &lt;span style="color: #4e4e4e"&gt;;&lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="line-number"&gt;3&lt;/td&gt;
      &lt;td class="line"&gt;&lt;span style="color: #4e4e4e"&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/body&gt;
</pre>
</div>


<p>
barring my initial concerns with the per-element styling, this looked
workable! in my mind, i simply had to re-use whatever facilities
unified has for parsing html into <code>hast</code>, and replace the <code>code</code> block
in the original <code>hast</code> with the tree-sitter version. this ended up
looking like this:
</p>


<div class="org-src-container">
<pre>const exampleScopeMap = {
  "language-javascript": "source.js",
  "language-sh": "source.bash",
  "language-xml": "source.xml",
};

function doesNodeHaveChildTable(node) {
  for (const child of node.children) {
    if (child.tagName === "table") return true;
  }
  return false;
}

export function rehypeTreeSitter(options) {
  return function (tree) {
    visit(tree, isCodeBlockElement, (node, index, parent) =&gt; {
      if (Object.keys(node.properties).length === 0) return;
      const code = node.children[0].value;
      const language = node.properties.className[0];
      if (!(language in exampleScopeMap)) return;
      const temporarySourceFile = temporaryFile();
      writeFileSync(temporarySourceFile, code);
      try {
        const result = execSync(
          `tree-sitter highlight --scope ${exampleScopeMap[language]} -H ${temporarySourceFile}`
        ).toString();
        const resultTree = rehype().parse(result);
        const resultBody = resultTree.children[1].children[2];
        if (!doesNodeHaveChildTable(resultBody)) {
          console.error(`No 'highlights.scm' found for ${language}`);
          return;
        }
        const codeTable = resultTree.children[1].children[2].children[1];
        parent.children[0].children = [codeTable];
      } catch (error) {
        console.error(error);
      }
      unlinkSync(temporarySourceFile);
    });
  };
}
</pre>
</div>


<p>
here's a high-level breakdown of the process.
</p>

<ol class="org-ol">
<li>create a temporary file to store the source code in</li>
<li>execute <code>tree-sitter highlight --scope &lt;language&gt; -h &lt;temporary
   file location&gt;</code> to get the html</li>
<li>reparse the html into <code>hast</code> (with some safety checks)</li>
<li>set the parent's child to contain the code table</li>
</ol>

<p>
this code works, and for a couple of hours of work, produces stellar
results.
</p>


  
  
  <img src="https://haz.ee/static/img/rehype-tree-sitter-1-400.jpeg" width="400" height="243"
       alt="tree-sitter built-in HTML highlighter" >


<p>
however, there were a couple bugs that i encountered that made this
approach unacceptable.
</p>

<ol class="org-ol">
<li>whatever was converting the final <code>hast</code> into html inserted as many
newlines into the <code>pre</code> element as there were lines of code in the
original source block. this took a while to diagnose, and even
longer to fix. <sup><a id="fnr.1" class="footref" href="https://haz.ee/posts/rehype-tree-sitter.html#fn.1" role="doc-backlink">1</a></sup></li>
<li>the colors were determined by an external tool (the tree-sitter
configuration). this made it difficult to customize and control. i
also wanted to have css change the color scheme based on the user's
system appearance.</li>
<li>the produced code utilized a table to get the lines of code to
match up with their line number. while this did work, i had
suspicions that it wasn't the correct approach for supporting line
numbers.</li>
</ol>

<p>
wanting more flexibility, i decided it was time to dig deeper into the
underlying code. having studied how that exact command line invocation
worked, i now knew that tree-sitter ships libraries that give you more
control over the process. notably, <a href="http://docs.rs/tree-sitter-highlight"><code>tree-sitter-highlight</code></a> which gives
you an iterator over your code annotating spans with their highlight,
and <a href="https://docs.rs/tree-sitter-loader/latest/tree_sitter_loader/"><code>tree-sitter-loader</code></a>, which handles compilation behind the scenes
when supplying grammars.
</p>
</div>
</div>
<div id="outline-container-org5772e8a" class="outline-2">
<h2 id="org5772e8a"><a href="https://haz.ee/posts/rehype-tree-sitter.html#org5772e8a">iteration two &#x2013; native rust node plugin</a></h2>
<div class="outline-text-2" id="text-org5772e8a">
<p>
the big question (again) is <b><b>how</b></b>. how can i execute some rust code
from within the node process? the answer is the <a href="https://nodejs.org/api/n-api.html">node-api</a> the node-api
lets you create c/c++ add-ons, which you can import into your
javascript code and call like normal. knowing this, i began working on
the rust code first.
</p>

<p>
here's the test program i used for verifying everything worked before
attempting to port it to the node-api.
</p>

<div class="org-src-container">
<pre>fn main() -&gt; Result&lt;(), Box&lt;dyn std::error::Error&gt;&gt; {
  let language_root_path = std::env::var("TREE_SITTER_LANGUAGE_ROOT")?;
  let mut loader = tree_sitter_loader::Loader::new()?;
  loader.find_all_languages(&amp;tree_sitter_loader::Config {
    parser_directories: {
      let mut vec = Vec::new();
      vec.push(PathBuf::from(language_root_path));
      vec
    },
    ..Default::default()
  })?;

  let mut process_arg_iter = std::env::args().skip(1);
  let root_scope = format!(
    "source.{}",
    process_arg_iter.next().ok_or(Error::NoScopeProvided)?
  );
  let source = std::io::read_to_string(std::io::stdin())?;
  let (language, language_configuration) = loader
    .language_configuration_for_scope(&amp;*root_scope)?
    .ok_or(Error::MissingLanguageConfiguration)?;
  let highlight_config = language_configuration
    .highlight_config(language)?
    .ok_or(Error::MissingHighlightConfiguration)?
    .clone();
  let mut highlighter = Highlighter::new();
  let mut highlight_iter =
    highlighter.highlight(highlight_config, source.as_bytes(), None, |_| None)?;
  while let Some(Ok(event)) = highlight_iter.next() {
    match event {
      tree_sitter_highlight::HighlightEvent::Source { start, end } =&gt; {
        print!("{}", &amp;source[start..end])
      }
      tree_sitter_highlight::HighlightEvent::HighlightStart(_) |
      tree_sitter_highlight::HighlightEvent::HighlightEnd =&gt; {}
    }
  }
  println!("");
  Ok(())
}
</pre>
</div>

<p>
the real meat of the function is near the end. using <code>while let</code> i'm
able to extract the <code>HighlightEvent</code>'s from that particular session
and act accordingly. i don't translate any of the highlight calls, but
being able to recreate the text from the indices is a good start. now
that i can react to each 'chunk' of data produced by tree-sitter, it's
time to port this to node.
</p>

<p>
<a href="https://github.com/infinyon/node-bindgen"><code>node-bindgen</code></a> is an excellent package for this. It allows me to
simply annotate a function with a decorator (<code>proc-macro</code>) and use the
resulting binary in my node project. Below is all the code I needed to
change.
</p>

<div class="org-src-container">
<pre>#[node_bindgen]
fn driver&lt;F: Fn(SerializableHighlightEvent)&gt;(
        language_root_path: String,
        root_scope: String,
        source: String,
        callback: F,
) -&gt; Result&lt;(), NjError&gt; {
        // ...
}
</pre>
</div>

<p>
i could then <code>require</code> my <code>dylib</code> and call <code>driver</code>. awesome!
</p>

<p>
you might be wondering what <code>callback</code> is doing there. the general
idea behind this approach is that node hands control over the
highlighting process to rust. rust is responsible for executing the
code that parses the incoming text, but the business logic is
determined by the <code>callback</code>. in <code>rehype-tree-sitter</code>'s case, it needs
to react to the event and modify the <code>hast</code> tree accordingly. let's
jump back to the plugin.
</p>

<div class="org-src-container">
<pre>export default function rehypeTreeSitter(options) {
  if (options === undefined) throw new Error("Need to provide `options.treeSitterGrammarRoot`");
  if (options.treeSitterGrammarRoot === undefined)
    throw new Error("Need to provide `options.treeSitterGrammarRoot`");
  return function (tree) {
    visit(tree, isCodeBlockElement, (node, index, parent) =&gt; {
      if (Object.keys(node.properties).length === 0) return;
      const code = node.children[0].value;
      const language = node.properties.className[0];
      if (!(language in (options.scopeMap || exampleScopeMap))) return;
      node.children = [];
      const highlightStack = [];
      core.driver(
        options.treeSitterGrammarRoot,
        (options.scopeMap || exampleScopeMap)[language],
        code,
        (event) =&gt; {
          if (event.source !== undefined) {
            const sourceChunk = stringByteSlice(
              code,
              Number(event.source.start),
              Number(event.source.end)
            );
            if (highlightStack.length === 0) {
              node.children.push({ type: "text", value: sourceChunk });
            } else {
              node.children.push(h("span", { class: highlightStack.join(" ") }, sourceChunk));
            }
          } else if (event.highlightStart !== undefined) {
            highlightStack.push(event.highlightStart.highlightName);
          } else if (event === "HighlightEnd") {
            highlightStack.pop();
          }
        }
      );
    });
  };
}
</pre>
</div>

<p>
there's a bunch of extra functionality that wasn't here before.
</p>

<ol class="org-ol">
<li><code>options.treeSitterGrammarRoot</code>: this lets the consumer specify
which directory <code>tree-sitter-loader</code> should load and compile its
grammars from.</li>
<li><code>options.scopeMap</code>: this option lets consumers specify a mapping
between the language class markdown parsers insert into the <code>code</code>
element and the tree-sitter scope. this is how we communicate to
tree-sitter which grammar to use.</li>
<li><code>highlightStack</code> keeps track of the highlight classes. this is
helpful for denoting tokens that belong to more than one class.</li>
<li><code>stringByteSlice</code>: originally, i used <code>source.splice()</code>, but that
broke on utf-8 code. this was because javascript strings are
encoded in utf-16, which means that the byte indices tree-sitter
gives us are incompatible with the code point nature of <code>splice</code>.</li>
</ol>

<p>
aside from some packaging work<sup><a id="fnr.2" class="footref" href="https://haz.ee/posts/rehype-tree-sitter.html#fn.2" role="doc-backlink">2</a></sup>, this was all that i needed to get
comprehensive syntax highlighting suitable for static site generators.
i'm not quite sure (but curious) about server-side rendered
components. in theory, if whatever is producing the html has access to
the tree-sitter grammars, then it should work there as well. the code
snippets you've been reading have been produced by this plugin. try
changing your desktop color scheme! 🤩
</p>
</div>
</div>
<div id="outline-container-org284c2c2" class="outline-2">
<h2 id="org284c2c2"><a href="https://haz.ee/posts/rehype-tree-sitter.html#org284c2c2">how to use <code>rehype-tree-sitter</code> in your astro project</a></h2>
<div class="outline-text-2" id="text-org284c2c2">
<p>
to use <code>rehype-tree-sitter</code>, install it through <code>npm</code>:
</p>

<div class="org-src-container">
<pre>npm install --save rehype-tree-sitter
</pre>
</div>

<p>
once you have the plugin installed, add it to your astro config.
</p>

<div class="org-src-container">
<pre>import { defineConfig } from "astro/config";
import rehypeTreeSitter from "rehype-tree-sitter";

// https://astro.build/config
export default defineConfig({
  markdown: {
    syntaxHighlight: false,
    rehypePlugins: [
      [
        rehypeTreeSitter,
        {
          treeSitterGrammarRoot: "/Users/haze/tsg",
          scopeMap: {
            "language-javascript": "source.js",
            "language-sh": "source.bash",
            "language-xml": "source.xml",
            "language-rust": "source.rust",
            "language-html": "text.html.basic",
          },
        },
      ],
    ],
  },
});
</pre>
</div>
</div>
<div id="outline-container-orgb33a1d2" class="outline-3">
<h3 id="orgb33a1d2"><a href="https://haz.ee/posts/rehype-tree-sitter.html#orgb33a1d2">things i learned when publishing my first <code>npm</code> package</a></h3>
<div class="outline-text-3" id="text-orgb33a1d2">
<ol class="org-ol">
<li>don't delete your package if you push garbage. i did this and had
to wait a day to re-publish. (i got a 403 unauthorized when
attempting to publish the fixed variant.)</li>
<li>i was able to get away with a <code>cjs</code> style <code>require</code> in a <code>esm</code>
project. i had to use <code>createImport</code> which <a href="https://nodejs.org/api/module.html#modulecreaterequirefilename">the docs</a> suck for.</li>
<li>using rust code from node is way easier than i thought.</li>
<li>this technique is powerful. i can control the css for every token,
with extreme granularity, <b><b>for every language</b></b>. for some
languages (like <a href="https://harelang.org">hare</a> or html) the syntax is pretty simple, and the
theme can be relatively simple as well. for languages like rust, it
helps to have more colors distinguishing things like lifetimes and
loop labels.</li>
</ol>
</div>
<div id="outline-container-orgd4743ec" class="outline-4">
<h4 id="orgd4743ec"><a href="https://haz.ee/posts/rehype-tree-sitter.html#orgd4743ec">special thanks</a></h4>
<div class="outline-text-4" id="text-orgd4743ec">
<p>
i'd like to extend a warm thank you to <a href="https://twitter.com/blastbots">veritas</a> and <a href="https://github.com/dogpatch626">danny</a>. their help
was instrumental to my success. they assisted me with creating a node
package, publishing it to <code>npm</code>, debugging, and testing. i'd also like
to thank my wonderful girlfriend katherine for proofreading.
</p>
</div>
</div>
</div>
</div>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">

<div class="footdef"><sup><a id="fn.1" class="footnum" href="https://haz.ee/posts/rehype-tree-sitter.html#fnr.1" role="doc-backlink">1</a></sup> <div class="footpara" role="doc-footnote"><p class="footpara">
i hacked around this in a couple ways. one way was disabling the
usage of <a href="https://github.com/rehypejs/rehype-raw"><code>rehype-raw</code></a> internally. you could dig even deeper into
<a href="https://github.com/syntax-tree/hast-util-to-html"><code>hast-util-to-html</code></a> and edit the <code>text</code> callback to stop from
inserting newlines, but this is clearly not the solution, and will
break other things.
</p></div></div>

<div class="footdef"><sup><a id="fn.2" class="footnum" href="https://haz.ee/posts/rehype-tree-sitter.html#fnr.2" role="doc-backlink">2</a></sup> <div class="footpara" role="doc-footnote"><p class="footpara">
i had to figure out how to execute some commands to compile the
rust library. i learned about the beauties and dangers of
<code>postinstall</code> npm scripts.
</p></div></div>


</div>
</div></div>]]></content:encoded>
  </item>
  <item>
    <title>alyssum mound</title>
    <link>https://haz.ee/literature/alyssum-mound.html</link>
    <guid isPermaLink="true">https://haz.ee/literature/alyssum-mound.html</guid>
    <pubDate>Sun, 25 Jul 2021 00:00:00 +0000</pubDate>
    <author>isnt@haze.cool (Haze Booth)</author>
    <dc:creator>Haze Booth</dc:creator>
    <category>literature</category>
    <description>Alyssum Mound, a piece of writing from haz.ee.</description>
    <content:encoded><![CDATA[<p>
You aren’t sure what you noticed first. Every thought floating around
in your head seemed devoid of a source in time. It was as if your
brain had been processing them before your consciousness awoke. The
sounds of rolling water surrounded you; the rhythm of the inhale and
exhale of the waves helped you pace your thoughts and group them into
more digestible, narrow observations. The fine sand beneath drained
the remaining heat from your body; the conjured osmosis wasn’t enough
to keep you sated temperature-wise. That, combined with the fragrant,
salty breeze, forced your body awake, a jolt you hardly had enough
energy for. The axiomatic nature of your environment felt like a harsh
Mandela effect. Usually, when you’re on the beach, the blazing sun
warps the sand into hot coals. This light, however, sat on the zenith,
letting the milky microscopic white stones glow as if you perceived
its aura. Everything seemed off about your surroundings, and as your
senses processed more information, the less it made sense to you. If
the ground was glaring, why was it so frigid and numbing? The sun was
clearly visible, yet the heat from the rays was gentle. Instead of
staring straight up, straining your eyes at the skies for a crumb of
information, you look around.
</p>

<p>
You stood atop an almond-shaped landmass, consisting solely of fine
sand that spat out dust at the slightest movement, filling in the
holes around your toes. The air danced around you and inside your
garments, frictionless. Pacing around didn’t help much either, and the
haze-masked horizon isn’t very forgiving to your horrible vision. All
you can see in the molten glass ocean around you is the sun’s glimmer
in the waves. Beneath that, there isn’t much until the light refuses
to penetrate any further. Still, for whatever reason, your gut feeling
is that it’s the same powdery sand all the way down.
</p>

<p>
Assessing yourself, you have on pearl-colored garments that flapped in
the breeze but moved swiftly and contrasted gorgeously against your
chocolate skin. There wasn’t any abrasion, and the lightness helped
imbue the idea that you were at your nimblest peak. Simple, almost
primitive clothes that aren’t necessarily tailored for any body size
or shape. “As long as it has four holes” is what you presume whoever
(or whatever) made this garment was thinking. Turning over your hands
and calves revealed few marks beyond what was a common variance
between humans. Beauty marks, cuts, and scratches who’ve lost their
tale to time, and springy, curl hair all coexisted on your bountiful
body.
</p>

<p>
No pockets or complexities within the clothing left you feeling bored,
nothing to fidget with or prod for more information. Internally in
your mind, neurons were fighting over whether to flood the body with
trepidation or to relax and empty itself of false positives. Without
taking your shirt off, you slide your arms inside and flip the shirt
around. You’d rather have kept it on than taking it off entirely, as
the heat generated by your body rarely lasted for more than a couple
of minutes before the gusts whisked it away. Where a manufacturer’s
tag would typically be, lay a printed rainbow spiral and nothing else.
Having never recognized this logo before, you flip your shirt around
again and puff your chest out for a breathing exercise. Straightening
your posture and controlling the most straightforward action has
always helped you relax. Given the serene environment, it seemed like
the ideal spot.
</p>

<p>
After what seemed like half an hour of sandblasting your thoughts away
and following different geometric shapes with breathing patterns in
your mind, your curiosity poses a question: Have you really ingested
all possible information about your surroundings? It takes a second
for you to realize, but you haven’t actually checked beneath the sand.
Because it was so cold, you avoided doing so, but that judgment
clouded your progression. You knew there had to be more because it was
all too simple for your reality. There was more to what you saw than
what met the eye.
</p>

<p>
Digging around in the sand felt excruciatingly inefficient. At first,
you tried scooping handfuls of the snowlike crystal amalgam, but the
seemingly infinite supply stifled your progress quickly. Watching the
sand pour back into the spot you had just caved out before you could
even dump your hand nearby shuffled doubt into your mind. You didn’t
have any tools that could help. However, you’re a strong-willed
person, and a tiny setback won’t obstruct your advances. The next
attempt consisted of drilling your feet into the sand. As long as you
could get your feet within the sand and gather information, it didn’t
matter if the sand replaced the void space, as you still had a tendril
beneath it. Working in a spiral-like pattern from the outskirt of the
island inwards, you encountered what felt like a curved, smooth
stone-like surface. You think to yourself, “Really? An ice-cold
structure beneath the sand?” before thanking the higher echelon of
reality for guiding you.
</p>

<p>
While it was exciting to find something new, the original problem of
unearthing anything from the fast-falling sand arose. Instead of
attempting to mine it, you poke around it some more by sitting down
and getting both legs underneath. Despite the sheer amount of sand,
you can move your legs relatively quickly through it. Utilizing the
curves in your feet, discern the harsh edges of the object. It was
easy to picture in your head once you covered every corner of it, but
it wasn’t anything you could pattern match it against that you’ve seen
before. It had a flat base, sitting atop something that you couldn’t
reach to feel, and had a large, foot-wide top. The closest
approximation shape-wise is an English comma. With that in mind, you
positioned yourself behind the thicker part and pushed along the top
end. Instead of moving the object, you instead pushed yourself away
from the sand, flopping backward. You should have gradually applied
pressure instead of all at once, but you live, and you learn, right?
Flipping around and performing the same maneuver yielded more
desirable results. Your legs sank deeper into the sand, and your groin
quickly filled with tiny ice beads.
</p>

<p>
With 40% of your body underground, the feeling sensation of friction
hits you before the sound. The vast amount of sand that is being
displaced due to your action worries you, and you quickly extract
yourself from the switch, fearing that it might drag you down further.
You scurry far away enough that you’d have time to escape if anything
drastic did happen. Fortunately, the change was purely underground.
Out of the corner of your eye, you notice a sequoia-colored octagon
rise from the sand. You pace your steps to the speed of the monument’s
arrival. Eight pillars held up the fire red, pointed roof. When you
arrived, you felt a loud thud a couple of feet away, which you assumed
was the switch locking back into its original position. You’re wary of
the structure; your safety is critical when exploring. Still, you
wondered why this sense of urgency for your security wasn’t present
when you woke up. Sand littered the dark gray tiled deck. The grout
lines were fresh and clean as if they’ve never had pressure exerted
upon them. The marbling in the rails reached only up to your waist. It
was probably there supplementarily to the design’s form rather than
its function.
</p>

<p>
Shockingly, the floor was warm beneath you. Your best guess as to why
was that the structure was far enough underground that the pressure
and distance to the Earth’s core created enough heat to keep it warmer
than the surface sand. Standing in the middle of the structure, you
turned 360 degrees around, searching for anything more interesting
than the gazebo itself. You spot two hooks hanging from opposite ends
of the ceiling. They weren’t sharp or anything, so they posed no
immediate threat to you. Taking a couple of steps back to garner the
distance between them, you nearly slip on a thrice folded cloth.
Picking it up didn’t shake all the sand and dust off, but violently
swinging it around in the air did. This wasn’t a problem because there
was already sand around you; it just didn’t need to be on the sheet.
After unraveling the cloth, you notice two stretchy ends, like the
corners of a typical bedsheet. Connecting one and two together, you
stretch each scrunched up end onto a hook and revel in your
intelligence. Surely nobody else in the same scenario would have
thought to do that, you believe daftly.
</p>

<p>
Sitting in the hammock, you stare at the wicked gradient the sunset
has created in the sky. The cacophony of colors is breathtaking;
colors gain adjectives that don’t necessarily pertain to color alone,
but deep down inside, you feel like they match up. Mystic blues, royal
purples, and obnoxious oranges fight for space in the sky as the sun
shines behind them all, leaving a mirror image significantly distorted
beyond its original, compact identity. Of course, in actuality, the
sun was a gas giant, but without the glare in your eyes, it was as big
as the moon, a brilliant illusion. Picking out the colors in the sky
has exhausted the last bit of energy. You begin to lie back in the
sheets, wrapping yourself in cotton hugs finally brings you the warmth
you longed for, and with that, you rest your eyes.
</p>
</div>]]></content:encoded>
  </item>
</channel>
</rss>
