<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://thzinc.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://thzinc.com/" rel="alternate" type="text/html" /><updated>2026-11-17T12:08:58-08:00</updated><id>https://thzinc.com/feed.xml</id><title type="html">thzinc</title><subtitle>I&apos;m Daniel James. I write things here when I feel like it.</subtitle><author><name>Daniel James</name></author><entry><title type="html">findJoeys – Interview question of the week from rendezvous with cassidoo</title><link href="https://thzinc.com/2026/11/17/find-joeys-interview-question-of-the-week-from-rendezvous-with-cassidoo.html" rel="alternate" type="text/html" title="findJoeys – Interview question of the week from rendezvous with cassidoo" /><published>2026-11-17T00:00:00-08:00</published><updated>2026-11-17T00:00:00-08:00</updated><id>https://thzinc.com/2026/11/17/find-joeys-interview-question-of-the-week-from-rendezvous-with-cassidoo</id><content type="html" xml:base="https://thzinc.com/2026/11/17/find-joeys-interview-question-of-the-week-from-rendezvous-with-cassidoo.html"><![CDATA[<p>I needed a little <a href="/tags/code_kata">code kata</a> to jumpstart my brain today.</p>

<blockquote>
  <h2 id="interview-question-of-the-week">Interview question of the week</h2>

  <p>This week’s question:
A kangaroo word contains a shorter synonym (its “joey”) whose letters appear in order, but not necessarily consecutively. Given a lowercase word and a list of its synonyms (non-empty), return all the joeys in the list’s original order. The synonyms are provided, you don’t need to determine whether two words mean the same thing. Unless you really want to.</p>

  <p>Examples:</p>

  <div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nx">findJoeys</span><span class="p">(</span><span class="dl">"</span><span class="s2">blossom</span><span class="dl">"</span><span class="p">,</span> <span class="p">[</span><span class="dl">"</span><span class="s2">flower</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">bloom</span><span class="dl">"</span><span class="p">]);</span>
<span class="c1">// ["bloom"]</span>

<span class="nx">findJoeys</span><span class="p">(</span><span class="dl">"</span><span class="s2">chocolate</span><span class="dl">"</span><span class="p">,</span> <span class="p">[</span><span class="dl">"</span><span class="s2">cocoa</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">candy</span><span class="dl">"</span><span class="p">]);</span>
<span class="c1">// ["cocoa"]</span>

<span class="nx">findJoeys</span><span class="p">(</span><span class="dl">"</span><span class="s2">cat</span><span class="dl">"</span><span class="p">,</span> <span class="p">[</span><span class="dl">"</span><span class="s2">feline</span><span class="dl">"</span><span class="p">]);</span>
<span class="c1">// []</span>
</code></pre></div>  </div>
</blockquote>

<p>This is a nice exercise to iterate through the <code class="language-plaintext highlighter-rouge">kangaroo</code> word looking while looking for the next letter in the <code class="language-plaintext highlighter-rouge">joey</code> word. As soon as the last character of the <code class="language-plaintext highlighter-rouge">joey</code> word is found, it pushes the word to a result array and chooses the next word.</p>

<p>This solution does require iterating through each letter of the <code class="language-plaintext highlighter-rouge">kangaroo</code> word for each <code class="language-plaintext highlighter-rouge">joey</code> word given. I did add a small optimization to break early if there are not enough characters in the <code class="language-plaintext highlighter-rouge">kangaroo</code> word to satisfy the remainder of the <code class="language-plaintext highlighter-rouge">joey</code> word.</p>

<div class="codepen" data-height="400" data-default-tab="js,result" data-editable="true" data-user="thzinc" data-prefill="{
  &quot;scripts&quot;: [
    &quot;https://cdnjs.cloudflare.com/ajax/libs/mocha/3.1.0/mocha.min.js&quot;,
    &quot;https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.min.js&quot;
  ],
  &quot;stylesheets&quot;: [
    &quot;https://cdnjs.cloudflare.com/ajax/libs/mocha/3.1.0/mocha.min.css&quot;
  ]
}
">
<pre data-lang="haml">
#mocha</pre>
  <pre data-lang="css">
</pre>
  <pre data-lang="js">

function findJoeys(kangaroo = &quot;&quot;, joeys = []) {
  const results = [];

  for (const joey of joeys) {
    let j = 0;
    for (
      let k = 0;
      k &lt; kangaroo.length &amp;&amp; kangaroo.length - k &gt; joey.length - j;
      k++
    ) {
      if (kangaroo[k] === joey[j]) {
        j++;
        if (j === joey.length) {
          results.push(joey);
          break;
        }
      }
    }
  }

  return results;
}

mocha.setup(&quot;bdd&quot;);
const assert = chai.assert;
const expect = chai.expect;
const should = chai.should();

describe(&quot;Given the examples from the question&quot;, () =&gt; {
  const expectations = [
    {
      input: [&quot;blossom&quot;, [&quot;flower&quot;, &quot;bloom&quot;]],
      output: [&quot;bloom&quot;],
    },
    {
      input: [&quot;chocolate&quot;, [&quot;cocoa&quot;, &quot;candy&quot;]],
      output: [&quot;cocoa&quot;],
    },
    {
      input: [&quot;cat&quot;, [&quot;feline&quot;]],
      output: [],
    },
  ];
  expectations.forEach(({ input, output }) =&gt; {
    it(`should return ${output} for the input ${input}`, () =&gt; {
      findJoeys(...input).should.deep.equal(output);
    });
  });
});

mocha.run();

</pre>
</div>
<script async="" src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>]]></content><author><name>Daniel James</name></author><category term="programming" /><category term="code_kata" /><summary type="html"><![CDATA[I needed a little code kata to jumpstart my brain today.]]></summary></entry><entry><title type="html">Hackaday Superconference 2026 – Day 3 – HTTP Poller</title><link href="https://thzinc.com/2026/11/09/hackaday-superconference-2026-day-3-http-poller.html" rel="alternate" type="text/html" title="Hackaday Superconference 2026 – Day 3 – HTTP Poller" /><published>2026-11-09T00:00:00-08:00</published><updated>2026-11-09T00:00:00-08:00</updated><id>https://thzinc.com/2026/11/09/hackaday-superconference-2026-day-3-http-poller</id><content type="html" xml:base="https://thzinc.com/2026/11/09/hackaday-superconference-2026-day-3-http-poller.html"><![CDATA[<p>While thinking about what I could do with the Billboard Badge, so many of my thoughts tended toward showing something via image that was downloaded from the internet. I initially started making a utility for myself, but decided to contribute a user app I called “HTTP Poller” to periodically wake up, connect to via WiFi, and download an image from a URL.</p>

<p>My demo was underwhelming, but I hope others who wanted to do the same benefit from a useful starting point.</p>

<div style="position: relative; width: 100%; height: 0; padding-bottom: 56.25%">
<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/vBm6rrpGbls?si=xluGkIuJIpvYqEdf&amp;start=5398" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>
</div>]]></content><author><name>Daniel James</name></author><category term="programming" /><category term="microcontrollers" /><summary type="html"><![CDATA[While thinking about what I could do with the Billboard Badge, so many of my thoughts tended toward showing something via image that was downloaded from the internet. I initially started making a utility for myself, but decided to contribute a user app I called “HTTP Poller” to periodically wake up, connect to via WiFi, and download an image from a URL.]]></summary></entry><entry><title type="html">Hackaday Superconference 2026 – Days 1-2 – Billboard Badge Case</title><link href="https://thzinc.com/2026/11/09/hackaday-superconference-2026-days-1-2-billboard-badge-case.html" rel="alternate" type="text/html" title="Hackaday Superconference 2026 – Days 1-2 – Billboard Badge Case" /><published>2026-11-09T00:00:00-08:00</published><updated>2026-11-09T00:00:00-08:00</updated><id>https://thzinc.com/2026/11/09/hackaday-superconference-2026-days-1-2-billboard-badge-case</id><content type="html" xml:base="https://thzinc.com/2026/11/09/hackaday-superconference-2026-days-1-2-billboard-badge-case.html"><![CDATA[<p>We didn’t get a preview of the <a href="https://hackaday.io/superconference/">Supercon</a> badge before attendees were handed a 10-inch tablet called the Billboard Badge. As the story went, the main unique feature of the badge was a reclaimed e-ink display from a defunct German retailer’s price tag system. The displays are <em>nominally</em> black, white, and red with a respectable 960x672 resolution.</p>

<p><img src="/assets/supercon2026/badge-front.jpg" alt="Photo of the Billboard Badge; the size and format is somewhere between an A4 and US Letter sheet of paper with three SAO connectors at the top and a row of eight LEDs" /></p>

<p>The back of the badge revealed quite a simple layout: four buttons, an ESP-32, USB-C port, and a LiPo battery pack taped to the back of the e-ink panel. I didn’t feel terribly comfortable having the LiPo battery snagging on my shirt, bouncing around, and generally clinging to the badge unprotected.</p>

<p><img src="/assets/supercon2026/badge-back.jpg" alt="Photo of back of badge, showing the unprotected LiPo battery pouch" /></p>

<p>The hardware info—along with <a href="https://github.com/Hack-a-Day/2026-Billboard_Badge/blob/main/hardware/billboard_mockup-Frame.step">a 3D model of the included front bezel</a>—were pushed to GitHub on the first day, so I used that as the basis for a case design that included a solid back cover.</p>

<p><img src="/assets/supercon2026/case-rendering.png" alt="Rendering of case design from the front looking through an empty bezel, showing a half-circle cut out allowance in the back cover for the USB-C connector" /></p>

<p>The e-ink panel is mounted to center the image on the badge, but the carrier board is offset to accommodate headers around the left and top of the board, so there was not sufficient space to place a fourth fastener to secure the bezel to the back case. I decided to split the case into three parts: bezel, back cover, and left end cap.</p>

<p><img src="/assets/supercon2026/case-schematic.png" alt="Schematic showing a closeup of the end cap designed to retain both the bezel and the back cover with a zig-zag shape" class="invertible" /></p>

<p>Printing the back cover took about 6 hours, which I started on the evening of day 1. In the morning of day 2, I started printing the bezel and end cap before I left for the conference. I came home to a finished print that fit surprisingly well for having designed it with only a few measurements and no intermediate fit tests.</p>

<p><img src="/assets/supercon2026/case-back.jpg" alt="Photo of back of case installed on the badge, printed in translucent green; three bolt heads are visible at three of the corners, and the half-circle allowance is positioned well for access to the USB-C port" /></p>

<p>The design was not perfect, however. I overestimated how snugly I could make the end cap fit, and it did not adequately retain the top-left corner of the bezel. I ended up using some blue painter’s tape to keep it from rattling. However, even this did not affect the protective fit of the case, which was still secured by the rest of the design.</p>

<p><img src="/assets/supercon2026/case-joint-closeup.jpg" alt="Closeup photo of end cap not reaching the wedge of the bezel in order to secure it to the front face" /></p>

<p>I wore the badge to day 3 and felt significantly more comfortable knowing that the battery was behind ~1.2mm of rigid PLA. As a bonus, the design included a flat bottom intended to allow the badge to stand on its own!</p>

<p><img src="/assets/supercon2026/case-front.jpg" alt="Photo of front of badge in the printed case; a strip of blue painter's tape is visible on the left bezel, tucked into the end cap" /></p>]]></content><author><name>Daniel James</name></author><category term="3d_printing" /><summary type="html"><![CDATA[We didn’t get a preview of the Supercon badge before attendees were handed a 10-inch tablet called the Billboard Badge. As the story went, the main unique feature of the badge was a reclaimed e-ink display from a defunct German retailer’s price tag system. The displays are nominally black, white, and red with a respectable 960x672 resolution.]]></summary></entry><entry><title type="html">Hackaday Superconference 2026 – Day -1 – Supercon Scheduler</title><link href="https://thzinc.com/2026/11/05/hackaday-superconference-2026-day-1-supercon-scheduler.html" rel="alternate" type="text/html" title="Hackaday Superconference 2026 – Day -1 – Supercon Scheduler" /><published>2026-11-05T00:00:00-08:00</published><updated>2026-11-05T00:00:00-08:00</updated><id>https://thzinc.com/2026/11/05/hackaday-superconference-2026-day-1-supercon-scheduler</id><content type="html" xml:base="https://thzinc.com/2026/11/05/hackaday-superconference-2026-day-1-supercon-scheduler.html"><![CDATA[<p>It seems like a lot of schedules for conferences I’ve attended advertise their schedules in a visually-appealing way, but don’t offer any integration with the tools I rely on for scheduling anything else. I don’t enjoy having to navigate a table with multiple conference tracks and multiple days’ worth of sessions to figure out where I want to go next. I just want it on my calendar where I schedule everything else.</p>

<p>I am excited about the lineup of speakers at <a href="https://hackaday.io/superconference/">this year’s Supercon</a> and decided to solve my own problem with a quick web app: <a href="https://supercon.thzinc.dev/">supercon.thzinc.dev</a>.</p>

<p><img src="/assets/supercon-scheduler-screenshot.png" alt="Screenshot of the Supercon Scheduler showing the selection of &quot;Registration &amp; badge hacking&quot; on Friday 2026-11-06 among other events on the same day" /></p>

<p>The web app pulls the latest schedule information from the two JavaScript assets loaded on its page, then assembles them into a list of checkboxes to pick and choose a customized schedule. Then you can download an <code class="language-plaintext highlighter-rouge">.ics</code> file (VCalendar format, used by most calendar software) and move on with life.</p>]]></content><author><name>Daniel James</name></author><category term="programming" /><category term="javascript" /><summary type="html"><![CDATA[It seems like a lot of schedules for conferences I’ve attended advertise their schedules in a visually-appealing way, but don’t offer any integration with the tools I rely on for scheduling anything else. I don’t enjoy having to navigate a table with multiple conference tracks and multiple days’ worth of sessions to figure out where I want to go next. I just want it on my calendar where I schedule everything else.]]></summary></entry><entry><title type="html">Adjustable stand for 7mm USB endoscope</title><link href="https://thzinc.com/2026/10/07/adjustable-stand-for-7mm-usb-endoscope.html" rel="alternate" type="text/html" title="Adjustable stand for 7mm USB endoscope" /><published>2026-10-07T00:00:00-07:00</published><updated>2026-10-07T00:00:00-07:00</updated><id>https://thzinc.com/2026/10/07/adjustable-stand-for-7mm-usb-endoscope</id><content type="html" xml:base="https://thzinc.com/2026/10/07/adjustable-stand-for-7mm-usb-endoscope.html"><![CDATA[<p>I recently picked up an <a href="https://www.aliexpress.us/item/3256806796598290.html">inexpensive USB endoscope camera</a> and realized its focal length and magnification were reasonable enough for magnification while soldering and other light “digital microscopy” uses. I designed a quick adjustable stand around a 62mm M6 bolt.</p>

<p><img src="/assets/endoscope-stand/rendering.png" alt="Rendering of microscope-style adjustable stand; the foot is a 270° arc ~10cm in diameter with a square vertical support with an internal rod; an arm extends from the support with a flexure clamp at the end such that the scope is centered above the base's centerpoint; a 3cm knob is attached to the rod at the top of the vertical support" /></p>

<p>I designed the model to print in four parts: the base, the support, the arm, and the knob.</p>

<p>The base features a 20mm square socket that fits the support with a two-pronged friction-fit plug. The 62mm M6 bolt is threaded through the support with the bolt head nestled between the two-pronged plug.</p>

<p>The arm features a heat-set brass insert to allow the arm to ride along the bolt with the walls of the support to prevent the arm from rotating. The flexure at the end of the arm features a smaller heat-set brass insert for an M4 bolt to clamp the endoscope in place.</p>

<p>The knob also features a heat-set brass insert to fasten to to the top of the bolt. I used Loctite to lock the knob to the bolt so that rotating the knob turns the bolt and moves the arm un and down the support.</p>

<p><img src="/assets/endoscope-stand/completed.jpg" alt="Photo of completed stand with endoscope clamped in arm looking at a small circuit board" /></p>

<p>I’m able to use my iPad as a mobile viewing screen for my endoscope, freeing me to use the scope in a wide variety of places. While the quality is not superb, it is certainly usable for comfortable magnified work.</p>

<p><img src="/assets/endoscope-stand/magnification.jpg" alt="Photo of circuit board from directly above showing magnification of a MEDIATEK-branded IC&quot;" /></p>]]></content><author><name>Daniel James</name></author><category term="3d_printing" /><summary type="html"><![CDATA[I recently picked up an inexpensive USB endoscope camera and realized its focal length and magnification were reasonable enough for magnification while soldering and other light “digital microscopy” uses. I designed a quick adjustable stand around a 62mm M6 bolt.]]></summary></entry><entry><title type="html">A laser printer and a 3D printer share a sheet of transparency to make business cards</title><link href="https://thzinc.com/2026/09/11/a-laser-printer-and-a-3-d-printer-share-a-sheet-of-transparency-to-make-business-cards.html" rel="alternate" type="text/html" title="A laser printer and a 3D printer share a sheet of transparency to make business cards" /><published>2026-09-11T00:00:00-07:00</published><updated>2026-09-11T00:00:00-07:00</updated><id>https://thzinc.com/2026/09/11/a-laser-printer-and-a-3-d-printer-share-a-sheet-of-transparency-to-make-business-cards</id><content type="html" xml:base="https://thzinc.com/2026/09/11/a-laser-printer-and-a-3-d-printer-share-a-sheet-of-transparency-to-make-business-cards.html"><![CDATA[<p>Last year, <a href="/2025/10/06/close-but-not-quite-an-attempt-at-3-d-printed-business-cards.html">I made several attempts to 3D print a business card</a> that failed to print cleanly and repeatably. I was trying to push a 0.2mm nozzle to its limit, and my printer was just struggling to print with sufficient resolution while also making material changes cleanly.</p>

<p>In the meantime, I acquired a (color) laser printer. I had been aware of—and in awe of—<a href="https://www.thingiverse.com/thing:4781088">Coverton’s toner transfer method</a> (via <a href="https://hackaday.com/2022/09/27/add-full-color-images-to-your-3d-prints-with-toner-transfer/">Hackaday</a>) and wanted to revisit my business card idea.</p>

<p>After a test print that transferred a graphic really well, I had a spate of failures until I worked out a few tweaks. Ultimately, I ended up with a repeatable process that I will use for my cards–and more to come!</p>

<h2 id="the-failures">The failures</h2>

<p>I printed the following 3x3 contact sheet to a transparency sheet, mirrored so the printed surface read backwards but transfers corrected to the bottom of the print.</p>

<p><img src="/assets/3d-printed-business-cards-take-2/monotone-sheet.png" alt="Three rows of three cards with the &quot;find me&quot; design: a diagram of daniel@thzinc.com with &quot;me&quot;, &quot;me, online&quot;, &quot;website&quot;, and &quot;email&quot; labels; the middle row is inversed from the other two rows" /></p>

<p>I made several prints to test the toner transfer with my typical extruder and bed temperature, and I removed the finished prints from the transparency while the print was still warm.</p>

<p><img src="/assets/3d-printed-business-cards-take-2/card-01.jpg" alt="a print of the inversed design with diagonal stripes visible" />
<img src="/assets/3d-printed-business-cards-take-2/card-02.jpg" alt="a print of the inversed design with concentric rectangles and large patches of white where toner did not transfer" />
<img src="/assets/3d-printed-business-cards-take-2/card-03.jpg" alt="a print of the regular design with large patches of white where toner did not transfer" />
<img src="/assets/3d-printed-business-cards-take-2/card-04.jpg" alt="a print of the regular design with circular stripes visible" /></p>

<p>Upon reviewing the failed prints, I compared my successful test print to the failures and hypothesized that the color toner used in the test print was a factor in the transfer. So I printed a transparency with a gradient instead of black background.</p>

<p><img src="/assets/3d-printed-business-cards-take-2/rainbow-sheet.png" alt="Three rows of three cards with the &quot;find me&quot; design: a diagram of daniel@thzinc.com with &quot;me&quot;, &quot;me, online&quot;, &quot;website&quot;, and &quot;email&quot; labels; the middle row is a rainbow gradient instead of black background" /></p>

<p><img src="/assets/3d-printed-business-cards-take-2/card-05.jpg" alt="a print of the inversed design with a blue-to-red gradient with some white patches where toner did not transfer and some circular white stripes visible" /></p>

<p>This was much more promising, and I wanted to try some tweaks:</p>

<ul>
  <li>Increase extruder temperature to the upper limit for my PLA (230°C) for the first layer</li>
  <li>Increase bed temperature from 60°C to 75°C for the first layer</li>
  <li>Increase the flow of extruded plastic by 40%</li>
  <li>Allow the print to cool before removing it from the transparency</li>
</ul>

<h2 id="the-almost-successes">The almost-successes</h2>

<p>The tweaks resulted in much more passable prints, with only minor defects related to a few stretches of lines did not extrude <em>quite</em> enough material.</p>

<p><img src="/assets/3d-printed-business-cards-take-2/card-06.jpg" alt="a print of the inversed design with a red to green gradient with only a few white streaks visible" />
<img src="/assets/3d-printed-business-cards-take-2/card-07.jpg" alt="a print of the inversed design with a green to blue gradient with only a few white streaks visible" /></p>

<h2 id="the-successes">The successes</h2>

<p>Given that the few defects on the inversed design were minimal, I decided to apply the technique to the simpler black text on white background design and several cards that I am very pleased with!</p>

<p><img src="/assets/3d-printed-business-cards-take-2/card-08.jpg" alt="a print of the regular design with minimal defects" />
<img src="/assets/3d-printed-business-cards-take-2/card-09.jpg" alt="another print of the regular design with minimal defects" />
<img src="/assets/3d-printed-business-cards-take-2/card-10.jpg" alt="yet another print of the regular design with minimal defects" /></p>

<h2 id="non-issues">Non-issues</h2>

<p>I had seen several others online report difficulty with aligning the transparency to their 3D prints, but I was able to mitigate this quite sufficiently with a few specific steps:</p>

<ul>
  <li>Used a rigid glass build plate</li>
  <li>Marked registration lines on build plate
    <ul>
      <li>I laid a strip of masking tape along the Y axis of the build plate, then moved the extruder into positions at <code class="language-plaintext highlighter-rouge">X5 Y5</code> and <code class="language-plaintext highlighter-rouge">X5 Y240</code> to draw a straight line with a pen and ruler</li>
    </ul>
  </li>
  <li>Printed the transparency with a border that I could align to the registration marks on the build plate</li>
  <li>Laid the transparency on the build plate with a mixture of Elmer’s glue stick and water
    <ul>
      <li>I carefully pressed out the bubbles with a wad of dry paper towel, trying to avoid messing up the design on the transparency</li>
    </ul>
  </li>
  <li>Taped down the edges of the transparency</li>
</ul>

<h2 id="summary">Summary</h2>

<p>I’m looking forward to eventually handing a few of these out. I’m also plotting out some ideas for an SAO for the upcoming Hackaday Superconference. Looking forward to apply this technique elsewhere!</p>]]></content><author><name>Daniel James</name></author><category term="3d_printing" /><summary type="html"><![CDATA[Last year, I made several attempts to 3D print a business card that failed to print cleanly and repeatably. I was trying to push a 0.2mm nozzle to its limit, and my printer was just struggling to print with sufficient resolution while also making material changes cleanly.]]></summary></entry><entry><title type="html">Quad Lock Mag Charging Head tripod mount</title><link href="https://thzinc.com/2026/05/18/quad-lock-mag-charging-head-tripod-mount.html" rel="alternate" type="text/html" title="Quad Lock Mag Charging Head tripod mount" /><published>2026-05-18T00:00:00-07:00</published><updated>2026-05-18T00:00:00-07:00</updated><id>https://thzinc.com/2026/05/18/quad-lock-mag-charging-head-tripod-mount</id><content type="html" xml:base="https://thzinc.com/2026/05/18/quad-lock-mag-charging-head-tripod-mount.html"><![CDATA[<p>After multiple years of bike commuting with a hearty Topeak iPhone case and bike mount, I found I needed to switch phone mounts in order to find a system that worked with both my bikes, and also my desk phone mount. Quad Lock has a nice system and iPhone cases that explicitly support wireless charging, so I got the <a href="https://www.quadlockcase.com/collections/mag/products/mag-wireless-charging-head">MAG Wireless Charging Head</a> to mount at my desk.</p>

<p>However, my desk has a typical 1/4” tripod mounting screw and the Quad Lock system uses metric M5 bolts, so I decided to make a small adapter. The design uses a 1/4” nut and an M5 heat set insert to secure each of the screws. The adapter is ~33mm in diameter, has a raised ridge to fit in the Quad Lock’s mounting groove, and a simple hexagonal cut out to hold the 1/4” nut without having to print overhangs.</p>

<p><img src="/assets/quad-lock-adapter/render.png" alt="3D rendering of adapter as described" /></p>

<p>Sent it to the printer and about an hour later, I had my adapter!</p>

<p><img src="/assets/quad-lock-adapter/photo.jpg" alt="Photo of printed adapter with heat set insert and nut in place, mounted on a tripod ball joint head" /></p>]]></content><author><name>Daniel James</name></author><summary type="html"><![CDATA[After multiple years of bike commuting with a hearty Topeak iPhone case and bike mount, I found I needed to switch phone mounts in order to find a system that worked with both my bikes, and also my desk phone mount. Quad Lock has a nice system and iPhone cases that explicitly support wireless charging, so I got the MAG Wireless Charging Head to mount at my desk.]]></summary></entry><entry><title type="html">Panic attack</title><link href="https://thzinc.com/2026/04/03/panic-attack.html" rel="alternate" type="text/html" title="Panic attack" /><published>2026-04-03T00:00:00-07:00</published><updated>2026-04-03T00:00:00-07:00</updated><id>https://thzinc.com/2026/04/03/panic-attack</id><content type="html" xml:base="https://thzinc.com/2026/04/03/panic-attack.html"><![CDATA[<p>A feeling of lightheadedness and impending failure stops me in the kitchen. My breathing is shallow. I’ve pulled out the bag of coffee beans, the water pitcher, Greek yogurt, and blueberries from the fridge.</p>

<p><em>Breathe.</em></p>

<p>I pour some water from the pitcher into the electric kettle. With a familiar reflex, I close the kettle’s lid, find the “boil” button on the handle by feel alone, and place the water pitcher near the sink. I grab the cup used for measuring beans and the water spritzer. It’s empty. It’s empty because I washed it three days ago.</p>

<p><em>Full breaths. Feel your feet planted on the floor.</em></p>

<p>I fill the spritzer with water and prime the pump with a few sprays into the sink. I measure out 50 grams of beans. Normally, I’d try to get more precisely to 48 grams, but I figure two grams is negligible to the 800 milliliter pot I’m about to make. As practiced for several years, I spritz the beans three or four times, then shake the cup like I’m playing Yahtzee. I dump the cup into the grinder and turn it on.</p>

<p><em>You’ve cleaned the counters thoroughly. It’s safe to prepare food here.</em></p>

<p>The earthenware colander is not in its usual place across the counter on the other side of the sink: it’s on the table.  I find it among the other furiously cleaned dishes in the designated “known clean” area outside the kitchen. I take a couple handfuls of blueberries from the plastic carton and put them in the colander before running it under water.</p>

<p><em>Breathe deeply. Feel the air entering your nostrils, moving through your sinuses, and into your lungs.</em></p>

<p>The granola is in the living room in a plastic trash bag that contains food packaging that I wiped down with Clorox wipes. Unnecessary packaging was thrown out, so there are unidentified cracker bags among a some rigid plastic containers. I grab the container with my granola and head back to the kitchen.</p>

<p><em>Lungs are incredibly delicate yet robust. Consider the air touching the alveoli and exchanging oxygen with your body. Consider the wild reality that your body uses rust to take in oxygen.</em></p>

<p>I pour some granola into the yogurt container, then dump the colander of blueberries on top. Rinsed blueberries always go on top–the water makes the granola just a little less crunchy without making anything soggy. The grinder’s sound has become regular indicating no more beans are in the hopper. The water is just about boiling. I pull a dripper from the tray and a fresh V60 filter and place it on top of my pot.</p>

<p><em>Literal physical phenomena is responsible for the mechanism your body relies on most to stay alive. Your diaphragm creates a light vacuum in your chest, causing your lungs to stretch with the growing cavity, and that causes a pressure difference between inside your lungs and outside your body.</em></p>

<p>The focus starts to return to my vision. I pour boiling water over the coffee grounds until the scale reads about 160 grams. I go back to the table to get my tray: the tray Bonnie got for me from an artisan on Etsy years ago. I use it nearly every workday to curry my breakfast and coffee from the kitchen upstairs to the office. I pour another 200 grams of water over the grounds.</p>

<p><em>The exterminator is coming today. They will patch the holes and place traps and handle them if–and when–they catch another rat.</em></p>

<p>I pour another two times until I reach 800 grams. The trashcan is behind me instead of under the sink. Normally, I would pick up the dripper in a swift motion into the sink, but today I carry the pot and dripper over to the trash. With one hand, I manage to extricate the filter with the wet grounds and drop it into the empty trashcan. I take the pot and dripper back to the sink in order to place the dripper into the sink. I screw the lid onto the pot and place it on my tray. I rinse the dripper and place it in the dish rack.</p>

<p>Work is going to be busy today. I carry my breakfast and coffee tray up to the office and get to work.</p>

<p>Panic attacks fucking suck.</p>]]></content><author><name>Daniel James</name></author><summary type="html"><![CDATA[A feeling of lightheadedness and impending failure stops me in the kitchen. My breathing is shallow. I’ve pulled out the bag of coffee beans, the water pitcher, Greek yogurt, and blueberries from the fridge.]]></summary></entry><entry><title type="html">Mini rack bill of materials (BOM)</title><link href="https://thzinc.com/mini%20rack/2026/03/02/mini-rack-bill-of-materials-bom.html" rel="alternate" type="text/html" title="Mini rack bill of materials (BOM)" /><published>2026-03-02T00:00:00-08:00</published><updated>2026-03-02T00:00:00-08:00</updated><id>https://thzinc.com/mini%20rack/2026/03/02/mini-rack-bill-of-materials-bom</id><content type="html" xml:base="https://thzinc.com/mini%20rack/2026/03/02/mini-rack-bill-of-materials-bom.html"><![CDATA[<p>It’s been a full year since I started gathering parts to build my <a href="/Mini%20rack/">mini rack</a>, and I’ve had it running quietly over the last two months.</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">uptime
 </span>20:13:53 up 63 days,  3:52,  1 user,  load average: 0.88, 0.83, 0.47
</code></pre></div></div>

<p><img src="/assets/mini-rack/mini-rack-running.jpg" alt="Photo of completed mini rack showing two rows of 2U Raspberry Pi racks, each with 4 Raspberry Pis, a 1U POE switch, and a 1U brush strip with a USB-C cable emerging from within." /></p>

<p>As I’ve <a href="/mini%20rack/2025/04/03/adjusting-the-flyht-pro-stage-rack-case-for-use-with-10-mini-racks.html">written about before</a>, the mini rack is housed in a flight case that I chose because it was reasonably rugged and fit within a typical Kallax shelf. While the cooling requirements for the Raspberry Pi are very generous, I also wanted to ensure that airflow was managed well within the wood-and-aluminum case. With 6U of vertical space to plan out on the front and on the back of the case, I made a simple layout diagram in a spreadsheet.</p>

<p><img src="/assets/mini-rack/mini-rack-diagram.png" alt="Diagram showing profile plan view of rack; a square divided in to 3 columns left to right: Front, Inside, Back; vertically, there are 6 rows described as &quot;units&quot;, counting from top to bottom. In the front, the first and second 2U are denoted &quot;4x Pi&quot;, the next 1U is denoted &quot;Network switch&quot;, and the bottom 1U is denoted &quot;Brush strip&quot;; In the inside, the first 4U are denoted &quot;Open space&quot;, the next 1U shows &quot;Network switch&quot; extends from the front into the inside, and the bottom 1U is denoted &quot;Power strip&quot;; In the back, the first 2U is denoted &quot;Vent panel with fans&quot;, the next 3U are denoted &quot;Blank panel&quot;, and the bottom 1U is denoted &quot;brush strip&quot;" /></p>

<p>The blank panels and brush strips are being used to help direct airflow. The fans in the back pull air through the front–around the Pi racks–and out the rear.</p>

<p>I assembled a small circuit board to adapt a 2.1mm barrel jack to some headers in order to power two fans. I mounted the fans and the board with some spare hardware and powered it with a simple 12VDC “wall wart” AC adapter.</p>

<p><img src="/assets/mini-rack/fan-circuit.jpg" alt="Diptych of views of the completed circuit board: top-down showing the barrel jack and three sets of three-pin headers, bottom-up showing a red wire soldered between one row of connections to pins on the three-pin headers and a black wire to a different row of the same headers" /></p>

<p><img src="/assets/mini-rack/fan-assembled.jpg" alt="Photo of assembled panel with two 80mm fans bolted to a 2U hexagonal mesh panel with the circuit board bolted between the two fans. A power cord is plugged in to the circuit board and the fans are running." /></p>

<h2 id="bill-of-materials-bom">Bill of Materials (BOM)</h2>

<ul>
  <li>Airflow management
    <ul>
      <li><a href="https://deskpi.com/products/deskpi-accessories-blank-pannel">DeskPi RackMate Accessories Blank Panel 10 inch 1U Rack</a>
        <ul>
          <li>3 @ $6.99 (plus $12.67 shipping): $33.64 Total</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
      <li><a href="https://deskpi.com/products/deskpi-rackmate-accessories-2u-venting-blank-panel">DeskPi Rackmate Accessories 10 inch 2U Rack Venting Blank Panel for T0/T1/T2 Server Rack/Network Cabinet</a>
        <ul>
          <li>1 @ $12.99 (plus $12.67 shipping): $25.66 Total</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
      <li><a href="https://www.amazon.com/dp/B0DZXDF6CN">GeeekPi 10 inch 1U Brush Cable Manager Rack Mount Cable Management Panel with Brush Strip for Cable Entry (2 pack)</a>
        <ul>
          <li>1 @ $29.99</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Compute
    <ul>
      <li><a href="https://www.adafruit.com/product/5813">Raspberry Pi 5</a>
        <ul>
          <li>1 @ $80.00</li>
          <li>Purchased 2024-02-21</li>
        </ul>
      </li>
      <li><a href="https://www.digikey.com/en/products/detail/raspberry-pi/SC0195-9/12159401">Raspberry Pi 4</a>
        <ul>
          <li>7 @ $75.00: $525.00 Total</li>
          <li>Purchased 2023-06-15</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Cooling
    <ul>
      <li><a href="https://www.adafruit.com/product/5815">Official Raspberry Pi 5 Active Cooler</a>
        <ul>
          <li>7 @ $5.00: $35.00 Total</li>
          <li>Purchased 2024-08-03</li>
        </ul>
      </li>
      <li><a href="https://www.amazon.com/dp/B08WHMP2CD">Arctic F8 Silent 80mm cooling fan</a>
        <ul>
          <li>2 @ $7.99: $15.98 Total</li>
          <li>Purchased 2023-03-22</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Case
    <ul>
      <li><a href="https://www.thomannmusic.com/flyht_pro_stage_rack_95_6u_double_door.htm">Flyht Pro Stage Rack 9,5” 6U Double Door</a>
        <ul>
          <li>1 @ $63.00 (plus $82.66 shipping): $145.66 Total</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
      <li><a href="https://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/970200581/6174820">HEX STANDOFF M5 STEEL 20MM</a>
        <ul>
          <li>6 @ $0.67: $4.02 Total</li>
          <li>Purchased 2025-03-29</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Mounting
    <ul>
      <li><a href="https://deskpi.com/products/deskpi-rackmate-10-inch-2u-rack-mount-with-pcie-nvme-board-for-raspberry-pi-5-4b">DeskPi Rackmate 10 inch 2U Rack Mount with 4 PCIE NVME Boards for Raspberry Pi 5</a>
        <ul>
          <li>2 @ $79.99 (plus $12.67 shipping): $172.65 Total</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
      <li><a href="https://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/971090151/6174614">HEX STANDOFF M2.5X0.45 STEEL 9MM</a>
        <ul>
          <li>32 @ $0.57: $18.24 Total</li>
          <li>Purchased 2025-03-29</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Network (and power)
    <ul>
      <li><a href="https://www.amazon.com/dp/B082D9FWQH">YuanLey 8 Port Gigabit PoE Switch</a>
        <ul>
          <li>1 @ $45.98</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Power
    <ul>
      <li><a href="https://www.amazon.com/dp/B0CHM4SFT1">15Ft Long Surge Protector Power Strip, Addtam Extension Cord</a>
        <ul>
          <li>1 @ $29.99</li>
          <li>Purchased 2025-03-21</li>
        </ul>
      </li>
      <li><a href="https://www.digikey.com/en/products/detail/raspberry-pi/SC1022/14313703">Raspberry Pi PoE+ HAT</a>
        <ul>
          <li>7 @ $20.00: $140.00 Total</li>
          <li>Purchased 2024-08-03, 2025-03-29</li>
        </ul>
      </li>
      <li><a href="https://www.digikey.com/en/products/detail/delta-electronics/ADP-45HG-BN/21724094">ADP-45HG BN</a> USB-C PD power supply
        <ul>
          <li>1 @ $22.86 (plus $4.99 shipping): $27.85 Total</li>
          <li>Purchased 2025-12-29</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Storage
    <ul>
      <li><a href="https://www.adafruit.com/product/5969">NVMe Base Duo for Raspberry Pi 5</a>
        <ul>
          <li>1 @ $34.95</li>
          <li>Purchased 2024-08-03</li>
        </ul>
      </li>
      <li><a href="https://www.amazon.com/dp/B09NS16N8X">KIOXIA - SSD OCZ Branded EXCERIA NVMETM GEN 2 2TB M.2 2280</a>
        <ul>
          <li>2 @ $139.03: $278.06 Total</li>
          <li>Purchased 2025-03-22</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>]]></content><author><name>Daniel James</name></author><category term="Mini rack" /><category term="electronics" /><category term="raspberry_pi" /><summary type="html"><![CDATA[It’s been a full year since I started gathering parts to build my mini rack, and I’ve had it running quietly over the last two months.]]></summary></entry><entry><title type="html">Organizer box slides for Kallax shelves</title><link href="https://thzinc.com/2025/12/25/organizer-box-slides-for-kallax-shelves.html" rel="alternate" type="text/html" title="Organizer box slides for Kallax shelves" /><published>2025-12-25T00:00:00-08:00</published><updated>2025-12-25T00:00:00-08:00</updated><id>https://thzinc.com/2025/12/25/organizer-box-slides-for-kallax-shelves</id><content type="html" xml:base="https://thzinc.com/2025/12/25/organizer-box-slides-for-kallax-shelves.html"><![CDATA[<p>I love a <a href="https://www.ikea.com/us/en/cat/kallax-series-27534/">Kallax</a> shelf: cubbies for everything and easy indexing and retrieval. In 2022, I designed and printed a set of slides to fit a stack of <a href="https://www.amazon.com/dp/B08CRG4YNM">tray organizers</a> that I use for screws and electronic components.</p>

<p><img src="/assets/kallax-organizer-tray-slides/header.jpg" alt="Composition of a Kallax 4x2 shelf and a set of 3 clear plastic organizer trays each with 36 sections; they're arranged with an ampersand between them" /></p>

<p>After crudely sketching out an arrangement that would fit 6 trays in a vertical stack, I designed an initial pair of slides in <a href="https://shapr3d.com">Shapr3D</a>. However, because they’re designed to fit within the Kallax shelf’s 33cm height and my <a href="https://wiki.sovol3d.com/en/SV02">Sovol SV02</a>’s max print height is 30cm, I had to split the design into parts that joined with a biscuit. However, this afforded a better print orientation: back to front.</p>

<p><img src="/assets/kallax-organizer-tray-slides/rendering.png" alt="Rendering of one set of slides, split with raised biscuits visible on the lower half" /></p>

<p>Even to this day–three years later–this remains my largest print in both volume and time. On the first attempt of the 80+ hour print, something caused a layer to shift and failed a print that was about halfway done.</p>

<p><img src="/assets/kallax-organizer-tray-slides/failed-print.jpg" alt="Photo of failed print still on the printer; a mess of spaghetti filament is adhered to the right side of one of the prints" /></p>

<p>I restarted the print and used the intervening time to check the fit in the shelf with the trays. Fortunately, the fit was good, so the second attempt proceeded.</p>

<p><img src="/assets/kallax-organizer-tray-slides/test-fit.jpg" alt="Photo of partially-printed slides fit into shelf, with two trays slid into place; the unfinished slides support the trays from the rear, but the fronts of the trays are unsupported" /></p>

<p>About two-thirds of the way into the second print, I ran out of the black filament I was using and had to make a quick swap to a red filament I had on hand. I was worried I’d lose the print again, but the swap was successful and resulted in the fronts of the shelves being red instead of black.</p>

<p><img src="/assets/kallax-organizer-tray-slides/successful-print.jpg" alt="Photo of completed slides laying on desk near a keyboard and trackpad; they appear to have a red stripe at the fronts of the slides" /></p>

<p>The completed slides popped together with friction and are held in the Kallax shelf with screws at the top and bottom. I’ve enjoyed being able to pull the organizers out as needed, but keep them in a neat and easy-to-access place.</p>

<p><img src="/assets/kallax-organizer-tray-slides/final.jpg" alt="Photo of completed slides installed in a Kallax shelf with six full organizer trays; there is room on the left side where two more differently-sized organizers are leaning against the new slides." /></p>]]></content><author><name>Daniel James</name></author><category term="3d_printing" /><category term="ikea" /><summary type="html"><![CDATA[I love a Kallax shelf: cubbies for everything and easy indexing and retrieval. In 2022, I designed and printed a set of slides to fit a stack of tray organizers that I use for screws and electronic components.]]></summary></entry></feed>