<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Code That Rocks</title>
    <description>Technology | Life | Experimentation</description>
    <link>/</link>
    <atom:link href="https://www.codethat.rocks/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sun, 18 Oct 2026 02:24:23 +0000</pubDate>
    <lastBuildDate>Sun, 18 Oct 2026 02:24:23 +0000</lastBuildDate>
    <generator>Jekyll v4.4.1</generator>

    
      <item>
        <title>Building Gantry: Solving an annoyance, and what I learned from operating local LLMs</title>
        <description>&lt;p&gt;I’ve loved the Mechwarrior/Battletech universe since the moment I saw the cover art for &lt;em&gt;Mechwarrior II&lt;/em&gt; around 1995. I had played the shareware game &lt;em&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=REFkPfIDd2Q&quot;&gt;Megatron VGA&lt;/a&gt;&lt;/em&gt; a bit prior, and had no idea that the ‘Mechs used in that were 100% ripped out of the Battletech universe (illegally, mind you). When I discovered the gameplay experience of MW2, I was instantly hooked. Soon after I was introduced to &lt;em&gt;Battletech: A Game of Armored Combat&lt;/em&gt;, and my journey to collecting, painting, and playing Battletech truly began. But… I was just a kid. I didn’t have the money to buy dozens of $15 (roughly $30 by today’s dollar) metal miniatures. I slowly scraped together enough for two or three, and applied a paint job only a naive teen would be proud of.&lt;/p&gt;

&lt;p&gt;Then I moved away, and I didn’t encounter anyone that had even &lt;em&gt;heard&lt;/em&gt; of Battletech for literal decades. I didn’t think I’d ever get to play tabletop again, until 2019, when I heard about a &lt;em&gt;Kickstarter&lt;/em&gt; for Battletech. A whole resurgence of my childhood fandom was happening, and I had nearly missed it. Maybe now that meant there were other people who actually wanted to play this game! Fast forward to today, and I now have over 350 ‘Mechs, of which I’ve painstakingly painted over 110 to a quality I couldn’t have dreamt I would be capable of when I was a teenager (like the tiger-striped Timber Wolf at the top of this post).&lt;/p&gt;

&lt;h2 id=&quot;organization-and-inspiration&quot;&gt;Organization and inspiration&lt;/h2&gt;

&lt;p&gt;With a collection of any meaningful size, it’s basically a necessity to have some way to track what you own and other key details about your collection (or at least that’s what I think). I reached out for the de facto tool: a spreadsheet. As a techie, you can imagine mine is not just a static list of things, it’s got lookups, references, data sources… all kinds of complexity to help me scratch my collector’s itch. Maintaining that spreadsheet is a real chore though, and it has some real limitations, like my inability to bridge photos I’ve taken with my inventory. There has to be a better way, right?&lt;/p&gt;

&lt;p&gt;The puzzle pieces of inspiration began accumulating over the last year, as I scrolled &lt;a href=&quot;https://www.reddit.com/r/battletech/&quot;&gt;r/battletech&lt;/a&gt;, seeing the work of so many collectors and artists on display, wishing there were a way to search through them meaningfully to counter the ephemeral nature of the Reddit feed before they’re lost to time. Trying to remember who the artist was on that one Horned Owl with the incredible canopy work when you didn’t save it is not a job a search engine, or even an AI can solve. It’s just lost, which is such a shame in my eyes.&lt;/p&gt;

&lt;p&gt;There are a couple of well-established sites for paint schemes online. &lt;a href=&quot;https://camospecs.com&quot;&gt;Camo Specs&lt;/a&gt; is exclusive to professional, canon schemes, and often ancient sculpts. It can feel a bit alienating to beginners trying to draw inspiration when they compare their work to such masterpieces, and the odds a paint scheme you are thinking of is on the sculpt you want to put it on are pretty low. &lt;a href=&quot;https://unitcolorcompendium.com/&quot;&gt;Unit Color Compendium&lt;/a&gt; is a lot less rigid, but their paint schemes are all digital on a few avatar ‘Mechs. Nothing to show what it looks like on plastic, or if it’s even achievable at that scale. It left me wishing there was some place where I could draw inspiration from “How have other people done canopies on a Longbow?”, and maybe even “What color canopies go well on green paint schemes?”.&lt;/p&gt;

&lt;p&gt;The real trigger for me to start was when my local gaming group put together a combined spreadsheet of “painted inventory” so that we could coordinate having painted OpFor ‘Mechs at our campaign days. Everyone that participated had to figure out a way to convert their tracking method into a new spreadsheet that didn’t align with what &lt;em&gt;anyone&lt;/em&gt; already had. The end result was useful, but had limits. What if my “white” paint scheme and Rob’s “white” paint scheme look &lt;em&gt;completely&lt;/em&gt; different? When we show up on campaign day they might not look cohesive, defeating the whole point. We need to be able to &lt;em&gt;see&lt;/em&gt; the paint jobs in that inventory, but that’s just not a spreadsheet thing.&lt;/p&gt;

&lt;p&gt;I decided I could solve that at least for me, hopefully my group, and just maybe for other fans of the franchise.&lt;/p&gt;

&lt;h2 id=&quot;dual-purpose-build-an-app-learn-about-llms&quot;&gt;Dual purpose: Build an app, learn about LLMs&lt;/h2&gt;

&lt;p&gt;Getting started on this project was also motivated by a desire to learn how to run an LLM locally, and prove whether I could make a local LLM useful for coding. I know what AI engines like Claude or Copilot can do from work, but I’m also hesitant to spend money on things I’m confident I can do myself. I decided I’d take this as a dual challenge: Learn how to operate a local LLM on a spare 3080 I had on hand, and as a bonus I’d knock out this “weekend project” of a spreadsheet replacement.&lt;/p&gt;

&lt;p&gt;After a lot of research, trial, and error, I was able to get Qwen 2.5 operational on my Talos/Omni Kubernetes cluster using &lt;a href=&quot;https://llmkube.com/&quot;&gt;llmkube&lt;/a&gt;. Getting my IDE (VSCode) to play nicely was its own challenge, but eventually I was able to get things cobbled together into a functional state. Functional, but juvenile. Qwen 2.5 was about as helpful as an obstinate five-year-old. Fixating on the wrong details, missing the bigger picture, and sometimes spiraling into literal gibberish. I decided that if this was the model I was going to use, I’d need to give it some &lt;em&gt;really&lt;/em&gt; rigid guidelines and small pieces to tackle.&lt;/p&gt;

&lt;p&gt;So I tried out &lt;a href=&quot;https://github.com/gsd-build/get-shit-done&quot;&gt;GSD&lt;/a&gt; after hearing about a co-worker’s success with it. Unsurprisingly, Qwen 2.5 was &lt;em&gt;not&lt;/em&gt; up to the job. I upgraded to Qwen 3, which seemed an improvement, but it still didn’t have a big enough context window to properly run GSD. Even on my desktop’s 5080, I couldn’t get useful output from it. GSD is designed to burn through hundreds of thousands of tokens (and dollars?), and it just doesn’t play nicely with 10-16GiB of VRAM.&lt;/p&gt;

&lt;h2 id=&quot;caving-in-and-trying-subscription-based-llms&quot;&gt;Caving in and trying subscription-based LLMs&lt;/h2&gt;

&lt;p&gt;Weeks had turned to months of what little spare time I had carved out for this, and while I felt I had a much better grasp of LLMs and how to run them, I had nothing real to show for it. I finally caved, wanting to make forward progress on the inventory app, and shelled out $10 to GitHub for Copilot. The difference was instantaneous, and I started making serious progress on the project that same day. I spent that weekend coding furiously, volleying back-and-forth with Copilot on the design decisions, whipping its bad behavior into alignment with my expectations, and getting my first glimpse at an operational database of ‘Mech sculpts and inventory tracking.&lt;/p&gt;

&lt;p&gt;Until late Sunday, when VSCode informed me I had burnt through all my credits for the month. I was dumbfounded. I used Copilot at work all the time, maybe not as intensely in a single session, but… I had never really struggled with reaching the “finish line” of tokens for the month. Luckily, the “month” rolled over a few days later, and I was able to continue working on it in my spare evening hours. Until I hit the limit again… before I even made it to the next weekend. There was no way I was going to be able to build this app in a reasonable time at the rate of two days a month, and there was equally no chance I was going to shell out for “pay-as-you-go” tokens with GitHub. If I could burn through $10 in two days, I shudder to think of how much it’d cost at “market rates”. So I gave it a rest for the month to figure out my next steps.&lt;/p&gt;

&lt;p&gt;Around July of 2026, I decided to give Claude a chance. Would I get four days for my $20? Their rate limiting seemed at a minimum more reasonable to work with than Copilot’s. Once I switched over I found that with no changes to how I was working, I was rarely triggering throttling, and usually if I was, it was for a single session that would reset the next day. Within a few weeks I was able to move from “it’s a database with an admin panel” to “this kinda looks like it might be usable for real people”. The shape of the app was &lt;em&gt;dramatically&lt;/em&gt; more complicated than the naive “weekend project” I set out to tackle when I started, but it was truly shaping up to be everything I could have dreamt of for pairing inventory tracking with portfolio display of painted miniatures, and I was getting excited and nervous about actually showing it off.&lt;/p&gt;

&lt;h2 id=&quot;gantry&quot;&gt;Gantry&lt;/h2&gt;

&lt;p&gt;It’s been a passion project that’s taken the better part of the year to build, but it’s finally live.&lt;/p&gt;

&lt;p&gt;I call it &lt;a href=&quot;https://gantry.codethat.rocks&quot;&gt;Gantry&lt;/a&gt;, aiming to capture the place where you’d paint and potentially store ‘Mechs before sending them out in the field.&lt;/p&gt;

&lt;p&gt;It tracks the individual models you own against a shared catalog of ‘Mech sculpts, lets you track painting sessions, tag meaningful terms like colors or unit names, and gives you a structured starting place for taking photos by providing five perspective slots. You can use it for yourself as an inventory tool, and never share a single detail, or you can share your collections with the world (or a few people) to have a public portfolio of your work.&lt;/p&gt;

&lt;p&gt;It’s invite-only for now, with no comments, so it stays a gallery and not another place to argue (Reddit is still a place for conversation). Logins are managed through Google or Discord OAuth, so I don’t have to deal with authentication management risks, and every photo is re-encoded on upload, which strips location and other metadata you might not know your phone added.&lt;/p&gt;

&lt;p&gt;My hope is that the Battletech community embraces &lt;a href=&quot;https://gantry.codethat.rocks&quot;&gt;Gantry&lt;/a&gt;, and we all benefit from being able to share and draw inspiration from each other’s work. So when you’re trying to figure out “What should I paint next?”, you can draw inspiration from others who have painted that same mini, find some new color schemes, or discover new techniques, and take comfort in knowing that not &lt;em&gt;every&lt;/em&gt; paint job is going to be up to Camo Specs standards, but is still worth sharing.&lt;/p&gt;

&lt;h2 id=&quot;whats-next&quot;&gt;What’s next&lt;/h2&gt;

&lt;p&gt;For now, Gantry’s userbase consists of: me. If that’s all it ever amounts to, it’s still a win in my mind. It’s replaced my old spreadsheet, it has been a great education in how social platforms are run, and I’m proud to have built out my own personal SaaS. Next up is opening invites more widely, starting with my local gaming group, so we can finally answer “what’s painted and ready for the campaign?” without a spreadsheet. If you’d like to try it out, DM me on &lt;a href=&quot;https://www.reddit.com/user/Codethatrocks/&quot;&gt;Reddit&lt;/a&gt; for an invite.&lt;/p&gt;

&lt;p&gt;And as for the LLM side, I came out of this feeling genuinely knowledgeable, having tried out dozens of models and quantizations while dealing with the complexities of operating models on llmkube, Unsloth, vLLM, and llama.cpp. I also now have a much clearer picture of the gap between what consumer hardware can do and what LLMs as a service can do today, and the strengths and limitations on both ends of that equation.&lt;/p&gt;
</description>
        <pubDate>Sat, 17 Oct 2026 00:00:00 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/building-gantry/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/building-gantry/</guid>
      </item>
    
      <item>
        <title>Private and public ingress + LetsEncrypt</title>
        <description>&lt;p&gt;My home setup is a full-blown Kubernetes cluster (Overkill some might say, but it’s what I do, so it makes sense to have one). As part of this, I have load balancing, provided by MetalLB, and routing to my applications thanks to Nginx Ingress. This is all well and good, and setting up public sites and private sites behind my router, while challenging, has been largely successful. Except for one particularly challenging bit of configuration that, for whatever reason, escaped me until just recently.&lt;/p&gt;

&lt;p&gt;Some of the services I run on my cluster are &lt;a href=&quot;https://drone.io/&quot;&gt;Drone CI&lt;/a&gt; (For CI/CD), and a dedicated Docker Registry (thanks to &lt;a href=&quot;https://goharbor.io/&quot;&gt;Harbor&lt;/a&gt;). For Drone in particular, the configuration is slightly more complex than a normal service. There is an application server, which is fronted by a private-only ingress, and there is a portion of the application that responds to webhooks from GitHub to trigger events, which must be exposed via a public ingress. This means the application has both public _and_ private ingresses, and that anything inside the cluster needs to route its traffic to the private side. The trouble here is when you mix in &lt;a href=&quot;https://letsencrypt.org/&quot;&gt;LetsEncrypt&lt;/a&gt; (via &lt;a href=&quot;https://cert-manager.io/docs/&quot;&gt;Cert Manager&lt;/a&gt;). The certificate generated needs to be tied to your public ingress, not your private one, or the HTTP01 validation won’t work, but that’s normal and expected. To do that we can specify the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cert-manager.io/cluster-issuer&lt;/code&gt; on the ingress that is public, and share the secret between the two. Problem is: Cert Manager needs to validate the temporary ingress it creates as part of its “propagation check”. This will check that DNS resolution is working and the HTTP01 validation will work. However, the hostname that will be resolved here is the same one on the public side as the private side, and inside the cluster it will always resolve to the IP of the internal ingress controller, not the public ingress controller hosting the validation ingress.&lt;/p&gt;

&lt;p&gt;One fix to this (and one I used for a while to get by) is to set the DNS resolver to route to the public IP while Cert Manager does its thing. This works, but it then prevents everything on the inside network from reaching the private service at the same time. Only one thing can work at a time in this scenario (And for the last year or so, every three months I’d swap it over, renew my certs, and swap it back). The real fix is to update _only the Cert Manager’s pod_ to resolve to the public IP, and permitting everything else internally to resolve as normal.&lt;/p&gt;

&lt;p&gt;I achieved this with the following config:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;hostAliases:
  - hostnames:
    - drone.codethat.rocks
    - registry.codethat.rocks
ip: 10.0.10.2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This leverages the Kubernetes built-in functionality to effectively peg the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/hosts&lt;/code&gt; file in the pod with some overridden DNS resolution, while allowing all other DNS lookups to work as expected.&lt;/p&gt;

&lt;p&gt;It makes me sad it took this long to finally come to a working solution, but hopefully this advice can help someone else looking to solve a similar problem. I know I couldn’t find anything out there.&lt;/p&gt;
</description>
        <pubDate>Wed, 11 Nov 2020 06:39:50 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/private-and-public-ingress-letsencrypt/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/private-and-public-ingress-letsencrypt/</guid>
      </item>
    
      <item>
        <title>Automated pet feeding</title>
        <description>&lt;p&gt;One of many projects I’ve worked on while my blog has sat here silent was an automatic solution for feeding our cats while we are away from the house. My initial research on different available products had some interesting findings: There are generally two kinds:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Well-made (often US-made) full-featured, IOT (internet connected) with cameras etc… for a LOT of money ($150+++).
    &lt;ul&gt;
      &lt;li&gt;Kinda sketched out by an internet-connected device that has a camera etc… and I don’t know what it’s security posture is&lt;/li&gt;
      &lt;li&gt;Not interested in paying a ton of money&lt;/li&gt;
      &lt;li&gt;Really not interested in something that requires a third party service that might shut down and turn the thing into a dud (See PetNet &lt;a href=&quot;https://arstechnica.com/information-technology/2020/07/petnet-charges-new-30-annual-fee-for-a-service-that-still-doesnt-work/&quot;&gt;https://arstechnica.com/information-technology/2020/07/petnet-charges-new-30-annual-fee-for-a-service-that-still-doesnt-work/&lt;/a&gt; )&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Cheap, questionable quality imports. $40 or less sometimes
    &lt;ul&gt;
      &lt;li&gt;100% of the reviews I read on these read something like this: “Worked great for X days, then stopped working at all, my pets starved”&lt;/li&gt;
      &lt;li&gt;The overall vibe I got from all of the reviews I saw was that the standup designs (like what I got) were definitely superior and lasted a long while, but the electronics on them were flaky and unreliable&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, to tackle this dilemma I felt I had two options: Spend way more than I was comfortable with on something that skeeves me out, or spend what I was comfortable with to get something that’s nearly guaranteed to break after the first use. However, if I got the cheap one, I could &lt;em&gt;probably&lt;/em&gt; replace the logic board with a Raspberry Pi and most likely the physical device (motors, sensors, etc…) would be just fine, if the thing didn’t work as expected.&lt;/p&gt;

&lt;p&gt;I ordered it, set it up, and let it do its thing&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/ShadowZero3000/petfeeder&quot;&gt;https://github.com/ShadowZero3000/petfeeder&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 01 Sep 2020 15:48:17 +0000</pubDate>
        <link>https://www.codethat.rocks/coding/2020/09/01/automated-pet-feeding/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/coding/2020/09/01/automated-pet-feeding/</guid>
      </item>
    
      <item>
        <title>When watercooling goes bad, it doesn&apos;t have to be all bad</title>
        <description>&lt;p&gt;July 2016 marked the end of a less pleasant time in my life, and as a celebration of its closure, I treated myself to a completely new PC build, using the freshly released Nvidia 1080, and a lot of other high-end parts. To house this new build I wanted something aesthetically pleasing and notable that also supported a water cooling setup. After reading quite a few independent reviews, as well as sales site reviews, I settled on a white/blue &lt;a href=&quot;http://www.gamerstorm.com/product/CASES/2016-03/1288_4802.shtml&quot;&gt;Deepcool Genome&lt;/a&gt;. &lt;a href=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/11-853-032-01.jpg&quot;&gt;&lt;img src=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/11-853-032-01-300x225.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upon assembling this beast of a machine, I was quite satisfied with the case and setup, aside from the lack of brightness on the helix (I already expected this thanks to some &lt;a href=&quot;http://www.kitguru.net/components/cases/leo-waldock/deepcool-genome-chassis-review/&quot;&gt;great reviews&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Later, I decided to flip my graphics card vertically for the visual effect of things. After doing so, I found the case’s first flaw: There was insufficient airflow for a large graphics card in the vertical position (as they suck air from where the window is, and that left little gap for intake). This was easily remedied by carving a hole, and adding a personal touch to my machine. &lt;a href=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/Case.jpg&quot;&gt;&lt;img src=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/Case-300x210.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With this, I ended up with something unique and functional, and things were good for a while. Unfortunately I later had difficulties with the quality of the cable I used for the vertical mount, and reverted back to a traditional horizontal mounting (this is relevant to the next part of my saga).&lt;/p&gt;

&lt;p&gt;Fast forward to this last Friday. I work from home at my computer desk, though on a separate computer. While I was working, I noticed my desktop was making a gurgling sound (as though a water pump has insufficient water). It was relatively minor, but somewhat concerning, as the Genome should be a closed loop (no refilling ever needed). By the end of the day, the gurgling had gotten quite notable, and so I emailed Genome’s support about it, and continued on my merry way. I fired up a video game, and shortly into it my screens went black. My heart stopped, and I glanced over inside my case to find this: (That’s water on my 1080)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/20170310_161501.jpg&quot;&gt;&lt;img src=&quot;https://www.codethat.rocks/wp-content/uploads/2017/03/20170310_161501-300x225.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Little did I know, there is now &lt;a href=&quot;https://www.newegg.com/Product/Product.aspx?Item=N82E16811853032&quot;&gt;a very commonly reported issue&lt;/a&gt; with the water cooling block failing on this case, but the reports of failures after 6-12 months only started coming into NewEgg AFTER I purchased mine, so I had no idea.&lt;/p&gt;

&lt;p&gt;After recovering from the shock, and attempting to dry out my graphics card, I determined I’d need to put in a new watercooler. However, the original unit had the helix at the front of the case built into the loop. There was no way for me to incorporate it safely into a new system, and without it I would be left with an 8×2 gaping hole in the front of my case. This sparked an idea: Why did I need to keep what was there, or have a blank spot? Why not put something even cooler in its place? A trip to MicroCenter for a replacement cooler and some parts later, and I had my new plan: Embed a Raspberry Pi inside my case with a screen mounted in the gap where the helix was, and display anything I feel like on the Pi’s screen. &lt;del&gt;With everything installed I was also able to check that my graphics card was luckily not damaged (whew). &lt;/del&gt; (Turns out it actually was damaged…it just didn’t fail under light strain)&lt;/p&gt;

&lt;p&gt;It took a few attempts to get everything situated, but I now have a lan cable running from one of my two ports through my case and directly into the Pi, power being fed off the system’s USB 3.1 ports powering both the Pi and its screen, and a VNC/SSH accessible OS that allows me to control it however I want. The end result is rather amusing:&lt;/p&gt;

&lt;div class=&quot;nograyscale&quot;&gt;&lt;iframe allow=&quot;autoplay; encrypted-media&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;375&quot; src=&quot;https://www.youtube.com/embed/hhe8RC_R90o?feature=oembed&quot; width=&quot;500&quot;&gt;&lt;/iframe&gt;

&lt;iframe allow=&quot;autoplay; encrypted-media&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;375&quot; src=&quot;https://www.youtube.com/embed/hEiIepmNS5c?feature=oembed&quot; width=&quot;500&quot;&gt;&lt;/iframe&gt;

&lt;/div&gt;
&lt;p&gt;I’m rather pleased with the end result. Some simple linux-fu (involving gifview and xdotool) allows me to get the animations up on the screen on bootup. In the future I’d like to put in some live data (I.E. maybe temperature sensors, or “what I’m currently playing” type data) on the screen, but with a full-on Raspberry Pi in there, the sky’s the limit on what I can do when the time comes.&lt;/p&gt;

&lt;p&gt;In summary: Sometimes something bad can be turned into something awesome.&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;update&quot;&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;After the system seemed to be ok for a day, it blacked out again after loading up a game. Turns out that basically the GPU, motherboard, and RAM ended up damaged from the shock. Deepcool was willing to help out, and I was able to rebuild the system, so things turned out ok.&lt;/p&gt;
</description>
        <pubDate>Mon, 13 Mar 2017 00:34:43 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/when-watercooling-goes-bad/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/when-watercooling-goes-bad/</guid>
      </item>
    
      <item>
        <title>Dear future-self, I meant well at least</title>
        <description>&lt;p&gt;The other day a co-worker of mine asked me an interesting and difficult to answer question:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;How do you determine whether to take the time to fully design and implement a robust and well-architected solution to a problem as compared to utilizing a solution that will handle the immediate issue/needs of the problem at hand?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I both love and hate questions like this. It shows a true concern for balancing doing things “right” as well as an understanding that it’s often easy to get carried away with what “right” means, but answers to questions like this are so situational and cultural that it’s difficult to respond to. So, I’d like to share some of my thoughts, as highly-opinionated and potentially incorrect as some may interpret them to be.&lt;/p&gt;

&lt;p&gt;I’ve had numerous years of experience in software development and delivery, and I’ve seen some beautifully designed and implemented solutions that flex to meet unexpected future requirements, and I’ve seen those five-minute hacks that cripple production systems and make folks reach for their resumes. However, I’ve also seen robust architecture crack under its own complexity, or require such complex refactoring that it would be easier to start over. At the end of the day, past-self (That’s probably you today) always has a thankless job. If you do things right, it’s as if you’re never there, if you take the shortcuts, odds are future-self (The jerk you’re likely to see in the mirror in a few months) will be cursing at you later. I like to think of this relationship between past, current, and future self any time I have to make a decision regarding complexity and design, and try to treat my future self as kindly as possible.&lt;/p&gt;

&lt;p&gt;The first thing I analyze when I’m worried about whether to spend time designing vs. implementing is: why am I even considering not taking the time? Typically I’m either being lazy, I’m pressed for time, or I’m not sufficiently familiar with what I’m working on if I am asking these questions. If I’m being lazy, future-self is sure to hate whatever code I write, and I’m likely to have to re-do this effort later because of it, and it’s a pretty easy decision (if I’m only going to bother myself, sometimes I stay lazy, but if it’s for work, a client, or something I care about, I’ll take the time needed). However, the other two cases are where I feel further thought is necessary.&lt;/p&gt;

&lt;p&gt;If you’re working on a project without sufficient experience in its technology to design a robust solution, there’s a huge opportunity for learning, but spending a ton of time searching for best practices and how-to’s to write some theoretical code will often result in lots of time spent, and little to show for it. On the flip-side, diving in and trying to write code on something you’re not familiar with is a guarantee of low-quality, inefficient, and future-self-maddening code. My personal experience has found that the best results come from accepting that fact, and building re-factoring in to the process. Instead of spending hours researching the ‘ideal’ way to do something, start with something and do your best to get it working. Then, once it’s operational, don’t accept it as done. Refine it. Find a way to make it faster, cleaner, more flexible, or more conforming to a standardized style. Examine how your code differs from what you’re seeing in searches for similar solutions or examples, and make it that little bit better. Good, working better now? Stop and do it again! Maybe tackle a bit more of the project first, but don’t consider that “working” code to be acceptable. Keep comments that say “TODO: Make this future-friendly”, and get back to it immediately (Not “when the project is done I’ll clean this up”. We all know that doesn’t happen). You’ll learn what bad code looks like sooner by writing it, and then analyzing how it fails than by trying to search for perfect code on Google. Don’t be afraid of refactoring, of starting from scratch half-way through. Accept that working on a project as a learning experience is going to require triple the effort, and don’t get attached to your code. Remember: future-self doesn’t have any attachment to current-self’s code, and he can’t remember your excuse for why it was acceptable to take that shortcut.&lt;/p&gt;

&lt;p&gt;The other circumstance I see a lot is the heavy hand of time-constraints. “We’ve got three days to get this working”, or “how soon can you get this done?” should be red flags that future-self will be cursing at you. If you’ve got a set amount of time to get something working, you’ve got a few options: Shortcut everything necessary to get there, and be ready to spend three times as long (Heh…if you’re lucky) fixing that mess down the road and trying to make sure your superiors understand the cost. Doing some parts well, and others poorly (still going to be just as messy to clean later, but you’ll forget what parts were good). Or doing things right, and either not delivering on-time or at all. There’s even the occasional (and advised against by future-self, trust me, we talked) herculean “do everything right within the time-box” approach which means stress and mistakes. Sometimes it will even end up that you were worried about nothing to begin with. The right answer should be: Do things right and adjust your expectations accordingly, but that’s not always an option. I’ve yet to find the solution to fixing management’s lack of understanding that last statement, but I’ll write a book on it if I ever succeed.&lt;/p&gt;

&lt;p&gt;Along these lines, here are a few thoughts and some generally biased advice around writing code that rocks:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Take ownership of your code’s quality
    &lt;ul&gt;
      &lt;li&gt;Your job may be demanding, deadlines looming, bad past choices haunting, but at the end of the day the quality of any code you produce is yours alone. Take pride in what you’re putting out there in the world, it affects how you see yourself, how others see you, and quite possibly how you will be remembered. Don’t blame your circumstances for your failures, and when you see your own bad code, remember that by simply recognizing it as bad, you’ve already grown to be smarter/better than you once were, and cherish the journey.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Teach your environment to respect you and your needs
    &lt;ul&gt;
      &lt;li&gt;Take care of yourself and what you need to make your code good, and focus on eliminating what detracts from that. If that means you have to take twice as long to do your job right, then perhaps that needs to become your new operating pace. If your boss is making unobtainable demands, confront them, and if that doesn’t work, consider whether you need a better employer or boss. If distractions keep you from doing your best, write code in distraction-free environments. If your keyboard is bothersome, get a new one. This stuff is easy to fix when you identify it, and refuse to accept your status-quo from keeping you from being your best.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Balance your doing vs. planning vs. research time
    &lt;ul&gt;
      &lt;li&gt;It’s important to plan out work when it’s sufficiently complicated, and it’s also important to research topics you’re working on in order to do well at them, but if you’re not keeping tabs on how much time you’re spending doing vs. planning/researching, it’s very easy to let any one of the three spiral out of control. If you’re not doing any kind of planning or research, you may want to consider slowing down and making sure you aren’t burrowing down a hole that’s hard to back out of. If you’re spending more time planning out your work than doing it, perhaps you don’t understand what exactly you intend to do (or need better management in general). If you’re spending your days reading up on tech and not implementing anything it’s going to take you more effort to get rolling when the time comes. There’s no X% planning/research/doing that defines “in balance”, it’s a personal thing, but you’ll know when you’ve reached balance, because the frustrations and friction that each of these causes in imbalance disappear.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Trust yourself and embrace your mistakes
    &lt;ul&gt;
      &lt;li&gt;It’s easy to fall into a trap of doubting your capabilities, or the robustness of your solutions and to over-analyze or critique your own work to the point where your fear of doing things wrong keeps you from doing anything. You have to trust that (assuming you are taking the time to build in quality) you can do things well, and allow yourself to learn from mistakes to improve continually. You don’t become great by waiting around until you just have greatness, you become great by failing (a lot) and learning from your failures what it takes to be better. How many times do you think the great sculptors made sculptures with imperfections before they were recognized as amazing artists? How many of those same artist’s most renowned works are truly perfect?&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Learn about coding dynamically
    &lt;ul&gt;
      &lt;li&gt;Software code is incredible in that every problem can be solved in innumerable ways, and frequently a good solution to one problem can be re-used to solve another. It’s a rare many-to-many relationship that should not be ignored. So I encourage you: When you encounter a problem, try to make your solution a bit less tied to the exact problem you’re solving, and more at the type of problem you’re solving. This doesn’t always apply, but I can’t tell you how happy you’ll make future-self when they can take some past-self solutions and use them to solve future problems. Learning how to think this way is an art, but it’s very rewarding in both time savings and satisfaction. Make your code dynamic enough to handle the problems you will solve later when you can.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Surround yourself with excellence
    &lt;ul&gt;
      &lt;li&gt;Learning from your own mistakes and experiences is invaluable, but there’s another fantastic way to accelerate this: learning from your peers’ experience. This can be attending conferences where folks that use the technologies you do explain what they are doing and how they’ve conquered their own problems, it could be sitting in an IRC channel seeing the problems others encounter and participating in finding solutions, or simply spending a few evenings a month in the company of thought leaders or co-workers idly chatting about the technologies you’re passionate about. You never know when an old co-worker will encounter an issue or tackle a problem that will save you hours of frustration down the line, or when you’ll do the same for someone else.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Remove the pedestals from your heroes
    &lt;ul&gt;
      &lt;li&gt;It’s very easy to treat the creators of your favorite tools/languages/etc… with the same kind of isolation and admiration that American culture places on our celebrities, setting them aside as somehow different or untouchable. (I’m guilty of this) But technology isn’t this way, and the people that wrote those tools are often just other passionate developers etc… out there sharing their own solutions (&lt;a href=&quot;http://mitchellh.com/&quot;&gt;Mitchell Hashimoto&lt;/a&gt;‘s story is an &lt;a href=&quot;http://www.businessinsider.com/mitchell-hashimoto-hashicorp-ceo-made-500000-a-year-in-college-2014-12&quot;&gt;inspiring example&lt;/a&gt; of this). Don’t be afraid to talk to the ‘heroes’ of technology, you’d be surprised sometimes how happy they are to interact with their communities (and worst-case, you’ll end up with an email in a ‘deleted’ box, no harm). Open pull requests, start conversations in IRC chats and Slack channels, comment on issues. You never know when you’re going to be the voice that reminds someone else why they love coding. I have recently learned this lesson, and it’s been incredibly empowering and energizing to realize how friendly and passionate the Puppet communities and thought leaders I admire are.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope my ramblings strike a chord and perhaps provoke some positive thoughts out there. There’s an unfathomably huge amount of code out there in the world, and I want to do my part to encourage more of it to be code that rocks, and to save us all (or maybe at least myself) from the wrath of future-self.&lt;/p&gt;
</description>
        <pubDate>Wed, 22 Jun 2016 12:04:40 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/dear-future-self/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/dear-future-self/</guid>
      </item>
    
      <item>
        <title>Helpful info for debugging rspec-puppet</title>
        <description>&lt;p&gt;So I found this &lt;a href=&quot;http://razorconsulting.com.au/dumping-the-catalog-in-rspec-puppet.html&quot;&gt;awesome piece of information&lt;/a&gt; about debugging rspec-puppet, and particularly this block of code:&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;File.write(&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;&apos;myclass.json&apos;,&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;PSON.pretty_generate(catalogue)&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;)&amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This is INCREDIBLY useful for debugging.&lt;/p&gt;

&lt;p&gt;In fact, I found, by using this, that when testing defined type parameters, they &lt;em&gt;are all lowercased&lt;/em&gt;. Even when the parameters SHOULD have camel-casing etc…&lt;/p&gt;

&lt;p&gt;Be aware, this annoyed the heck out of me and my team.&lt;/p&gt;
</description>
        <pubDate>Thu, 09 Jun 2016 17:19:15 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/debugging-rspec-puppet/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/debugging-rspec-puppet/</guid>
      </item>
    
      <item>
        <title>Let&apos;s Encrypt: The future is now</title>
        <description>&lt;p&gt;I remember several years ago looking at my site and thinking “ya know, it’s about time I got hip with this SSL thing”. Several days later, I was able to implement ssl on my primary site using &lt;a href=&quot;https://www.startssl.com/&quot;&gt;https://www.startssl.com/&lt;/a&gt;. This took me a notable amount of manual effort to obtain the certificates from their site (Props to them, they use client certificates to validate users in addition to credentials, which is rather secure, if obtuse and inconvenient), and several hours of learning how to tweak my Apache configs to use them (I had a complex dynamic setup, and isolating what sites get what certs was not something I had built into that design). Success! Or not….I then had to go back through and fix various parts of the actual site to be consistent about loading everything from https, and to allow regular http calls where appropriate. It was a painful ordeal, but at the end of the day, I had a more secure site, and I had learned quite a bit about everything involved. (Nowadays it probably wouldn’t be nearly as painful with Puppet etc… but it’d still require manually obtaining the certs etc…)&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Fast-forward one year, I had entirely forgotten about this effort, and the process involved. I left myself no documentation on what I did or how to renew the cert, and received an email letting me know that the cert was expiring in a month which I had promptly ignored, and now had a site with one of those big red X’s in the corner. I went back to StartCom to renew, and couldn’t even get logged back in (I forgot about the whole client certificate thing, and had a new laptop at that point). I put fixing the situation on the back-burner, and went several months before allocating some time to figure out where I went wrong. I was eventually able to remedy my expired cert, and removed that ugly X, but the process made me dread the idea of having to re-do this annually. However, being a bit of a cheapskate when it comes to technology, I resigned myself to my fate.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Fast-forward again to today, with a shiny new server and domain configured, Puppetized, and running Nginx instead of Apache I was feeling ready to tackle the SSL situation again. I had been reading about &lt;a href=&quot;https://letsencrypt.org/&quot;&gt;Let’s Encrypt&lt;/a&gt; for a while, and was excited to give it a try. All I can say is: wow. I added &lt;a href=&quot;https://forge.puppetlabs.com/danzilio/letsencrypt&quot;&gt;danzilio/letsencrypt&lt;/a&gt; to my Puppet module arsenal, dropped a few lines into my server’s hiera config, and put together an 8-line profile to wrap the ‘certonly’ defined type, and had certificates for multiple domains ready to rock. No pain, no manual effort and client certificates, and a shockingly easy setup (I hit one small snag with forgetting the ‘webroot_paths’ parameter that slowed me down all of 15 minutes). I’ll admit I struggled to tune my Nginx config to be just the way I wanted it for a day, but now that it’s all in place my domains redirect to https where appropriate, use a Let’s Encrypt cert, and will keep that cert valid for me with zero effort on my part thanks to the quality workmanship in the letsencrypt module. What a complete polar-opposite experience!&lt;/p&gt;

&lt;p&gt;If you’re not using SSL yet: Let’s Encrypt – The future is now, and your site’s clients deserve some encryption.&lt;/p&gt;
</description>
        <pubDate>Thu, 07 Apr 2016 05:41:16 +0000</pubDate>
        <link>https://www.codethat.rocks/blog/lets-encrypt/</link>
        <guid isPermaLink="true">https://www.codethat.rocks/blog/lets-encrypt/</guid>
      </item>
    

    
      
        
      
    
      
    
      
        
          <item>
            <title></title>
            <description>&lt;h3&gt;   &lt;/h3&gt;

&lt;div id=&quot;categories&quot;&gt;

  &lt;div class=&quot;category-box&quot;&gt;
    
    &lt;div id=&quot;#coding&quot;&gt;&lt;/div&gt;
    &lt;h4 class=&quot;category-head&quot;&gt;&lt;a href=&quot;/blog/categories/coding&quot;&gt;coding&lt;/a&gt;&lt;/h4&gt;
    &lt;a name=&quot;coding&quot;&gt;&lt;/a&gt;
     
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/building-gantry/&quot;&gt;Building Gantry: Solving an annoyance, and what I learned from operating local LLMs&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/private-and-public-ingress-letsencrypt/&quot;&gt;Private and public ingress + LetsEncrypt&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/coding/2020/09/01/automated-pet-feeding/&quot;&gt;Automated pet feeding&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/when-watercooling-goes-bad/&quot;&gt;When watercooling goes bad, it doesn&apos;t have to be all bad&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/dear-future-self/&quot;&gt;Dear future-self, I meant well at least&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/lets-encrypt/&quot;&gt;Let&apos;s Encrypt: The future is now&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    

  &lt;/div&gt;

  &lt;div class=&quot;category-box&quot;&gt;
    
    &lt;div id=&quot;#knowledge&quot;&gt;&lt;/div&gt;
    &lt;h4 class=&quot;category-head&quot;&gt;&lt;a href=&quot;/blog/categories/knowledge&quot;&gt;knowledge&lt;/a&gt;&lt;/h4&gt;
    &lt;a name=&quot;knowledge&quot;&gt;&lt;/a&gt;
     
    &lt;article class=&quot;center&quot;&gt;
      &lt;h6&gt;&lt;a href=&quot;/blog/debugging-rspec-puppet/&quot;&gt;Helpful info for debugging rspec-puppet&lt;/a&gt;&lt;/h6&gt;
    &lt;/article&gt;


    

  &lt;/div&gt;

&lt;/div&gt;
</description>
            <link>https://www.codethat.rocks/blog/categories/</link>
          </item>
        
      
    
      
        
          <item>
            <title>Coding</title>
            <description>&lt;h5&gt; Posts by Category : Coding &lt;/h5&gt;

&lt;div class=&quot;card&quot;&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;17 Oct 2026&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/blog/building-gantry/&quot;&gt;Building Gantry: Solving an annoyance, and what I learned from operating local LLMs&lt;/a&gt;&lt;/li&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;11 Nov 2020&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/blog/private-and-public-ingress-letsencrypt/&quot;&gt;Private and public ingress + LetsEncrypt&lt;/a&gt;&lt;/li&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;01 Sep 2020&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/coding/2020/09/01/automated-pet-feeding/&quot;&gt;Automated pet feeding&lt;/a&gt;&lt;/li&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;13 Mar 2017&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/blog/when-watercooling-goes-bad/&quot;&gt;When watercooling goes bad, it doesn&apos;t have to be all bad&lt;/a&gt;&lt;/li&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;22 Jun 2016&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/blog/dear-future-self/&quot;&gt;Dear future-self, I meant well at least&lt;/a&gt;&lt;/li&gt;

 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;07 Apr 2016&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;/blog/lets-encrypt/&quot;&gt;Let&apos;s Encrypt: The future is now&lt;/a&gt;&lt;/li&gt;

&lt;/div&gt;
</description>
            <link>https://www.codethat.rocks/blog/categories/coding/</link>
          </item>
        
      
    
      
    
      
    
      
    
      
        
          <item>
            <title>Knowledge</title>
            <description>&lt;h5&gt; Posts by Category : {{ page.title }} &lt;/h5&gt;

&lt;div class=&quot;card&quot;&gt;
{% for post in site.categories.knowledge %}
 &lt;li class=&quot;category-posts&quot;&gt;&lt;span&gt;{{ post.date | date_to_string }}&lt;/span&gt; &amp;nbsp; &lt;a href=&quot;{{ post.url }}&quot;&gt;{{ post.title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}
&lt;/div&gt;
</description>
            <link>https://www.codethat.rocks/blog/categories/knowledge/</link>
          </item>
        
      
    
      
    
      
    
      
    
      
    
      
    

  </channel>
</rss>
