<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Troubleshooting on TurboVision</title>
    <link>https://mobile.dev.turbovision.in6-addr.net/tags/troubleshooting/</link>
    <description>Recent content in Troubleshooting on TurboVision</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 27 Nov 2026 12:54:29 +0000</lastBuildDate>
    <atom:link href="https://mobile.dev.turbovision.in6-addr.net/tags/troubleshooting/index.xml" rel="self" type="application/rss&#43;xml" />
    
    
    
    <item><title>Hugo dev server CSS changes not updating in browser</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/about/website/hugo/hugo_css_devserver_summary/</link>
      <pubDate>Tue, 23 Jun 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Tue, 23 Jun 2026 00:00:00 +0000</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/about/website/hugo/hugo_css_devserver_summary/</guid>
      <description>&lt;h1 id=&#34;hugo-dev-server-css-changes-not-updating-in-browser&#34;&gt;Hugo dev server CSS changes not updating in browser&lt;/h1&gt;
&lt;h2 id=&#34;problem&#34;&gt;Problem&lt;/h2&gt;
&lt;p&gt;When running &lt;code&gt;hugo server&lt;/code&gt; in development mode, edits to a theme CSS file are detected by the dev server, but the browser continues to show the old CSS. Normal reload and hard reload do not apply the change. Restarting the Hugo dev server and then reloading the page makes the CSS change visible.&lt;/p&gt;
&lt;p&gt;Observed log example:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Change detected, rebuilding site (#1).
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;2026-06-23 13:23:58.624 +0000
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Asset changed /css/theme.css
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Web Server is available at http://localhost:1314/ (bind address 0.0.0.0)
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Total in 26 ms&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This shows that Hugo detects the asset change and rebuilds, but the served/client-visible stylesheet does not update.&lt;/p&gt;
&lt;h2 id=&#34;relevant-template-code&#34;&gt;Relevant template code&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.FromString&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;css/theme.css&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;readFile&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;themes/reader/assets/css/theme.css&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;hugo&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.IsProduction&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Minify&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Fingerprint&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;stylesheet&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.RelPermalink&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;hugo&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.IsProduction&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;integrity&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Data.Integrity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;crossorigin&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;anonymous&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id=&#34;diagnosis&#34;&gt;Diagnosis&lt;/h2&gt;
&lt;p&gt;The likely cause is the use of:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;resources.FromString &amp;#34;css/theme.css&amp;#34; (readFile &amp;#34;themes/reader/assets/css/theme.css&amp;#34;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This creates a synthetic Hugo resource from a string. It bypasses the normal Hugo Pipes resource graph for files in &lt;code&gt;assets/&lt;/code&gt;. As a result, Hugo may detect that the source CSS file changed, but the resource cache/live-reload chain may not invalidate the synthetic stylesheet correctly.&lt;/p&gt;
&lt;p&gt;This explains why:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the dev server logs the CSS change;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;build.cachebusters&lt;/code&gt; does not fix the issue;&lt;/li&gt;
&lt;li&gt;browser reloads still show the old stylesheet;&lt;/li&gt;
&lt;li&gt;restarting the dev server clears the stale state and makes the new CSS visible.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;resources.FromString&lt;/code&gt; is intended for resources created from generated string content. For an actual file under &lt;code&gt;assets/&lt;/code&gt;, use &lt;code&gt;resources.Get&lt;/code&gt; instead.&lt;/p&gt;
&lt;h2 id=&#34;corrected-template-code&#34;&gt;Corrected template code&lt;/h2&gt;
&lt;p&gt;Replace the current &lt;code&gt;resources.FromString&lt;/code&gt; + &lt;code&gt;readFile&lt;/code&gt; pattern with a normal asset lookup:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;7
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;with&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Get&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;css/theme.css&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;hugo&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.IsProduction&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Minify&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;resources&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Fingerprint&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;stylesheet&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.RelPermalink&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;hugo&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.IsProduction&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;integrity&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$css&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.Data.Integrity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;crossorigin&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;anonymous&amp;#34;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{-&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;end&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;-}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Do not include the theme directory prefix in &lt;code&gt;resources.Get&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This file:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;themes/reader/assets/css/theme.css&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;should be referenced as:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;resources.Get &amp;#34;css/theme.css&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Theme assets are part of Hugo&amp;rsquo;s global asset lookup path.&lt;/p&gt;
&lt;h2 id=&#34;recommended-dev-server-command&#34;&gt;Recommended dev-server command&lt;/h2&gt;
&lt;p&gt;Use this while testing the fix:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hugo server --disableFastRender --noHTTPCache --ignoreCache&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Purpose:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;--disableFastRender&lt;/code&gt;: avoids partial rebuild behavior masking template/resource changes;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--noHTTPCache&lt;/code&gt;: disables Hugo&amp;rsquo;s HTTP cache headers;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--ignoreCache&lt;/code&gt;: avoids using configured caches during the build.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These flags are useful for diagnosis, but the primary fix is replacing &lt;code&gt;resources.FromString&lt;/code&gt; with &lt;code&gt;resources.Get&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;cachebusters&#34;&gt;Cachebusters&lt;/h2&gt;
&lt;p&gt;The cachebuster configuration is not expected to fix the current template because the pipeline input is not a normal asset resource. It is a string generated by &lt;code&gt;readFile&lt;/code&gt; and wrapped with &lt;code&gt;resources.FromString&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;A normal cachebuster rule for theme assets should match paths relative to &lt;code&gt;assets/&lt;/code&gt;, not paths starting with &lt;code&gt;themes/&amp;lt;theme&amp;gt;/assets/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;build&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;useResourceCacheWhen&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;never&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;build&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;cachebusters&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;source&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;assets/.*\.(scss|sass|css)$&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;target&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;(css|scss|sass)&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;But after switching to &lt;code&gt;resources.Get&lt;/code&gt;, cachebusters may be unnecessary for plain CSS.&lt;/p&gt;
&lt;h2 id=&#34;verification&#34;&gt;Verification&lt;/h2&gt;
&lt;p&gt;After changing the template, edit &lt;code&gt;themes/reader/assets/css/theme.css&lt;/code&gt;, then check the served CSS directly:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;curl -s http://localhost:1314/css/theme.css &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; grep &lt;span class=&#34;s1&#34;&gt;&amp;#39;some-new-css-token&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Interpretation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If &lt;code&gt;curl&lt;/code&gt; shows the new CSS but the browser does not, the problem is browser-side caching, live-reload CSS injection, or a service worker.&lt;/li&gt;
&lt;li&gt;If &lt;code&gt;curl&lt;/code&gt; still shows the old CSS, the problem remains in Hugo&amp;rsquo;s resource/cache pipeline.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;additional-check&#34;&gt;Additional check&lt;/h2&gt;
&lt;p&gt;If the CSS include is inside a cached partial, avoid this in development:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;partialCached&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;...&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Use this instead:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go-html-template&#34; data-lang=&#34;go-html-template&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;{{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;partial&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;...&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;na&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;A cached partial can keep emitting an old resource URL or stale generated markup.&lt;/p&gt;
&lt;h2 id=&#34;bottom-line&#34;&gt;Bottom line&lt;/h2&gt;
&lt;p&gt;This is a known class of Hugo dev-server/resource-cache behavior. In this specific case, the actionable fix is to stop using &lt;code&gt;resources.FromString&lt;/code&gt; with &lt;code&gt;readFile&lt;/code&gt; for a real theme asset and use &lt;code&gt;resources.Get &amp;quot;css/theme.css&amp;quot;&lt;/code&gt; instead.&lt;/p&gt;
&lt;p&gt;Relevant references:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hugo &lt;code&gt;resources.FromString&lt;/code&gt;: &lt;a href=&#34;https://gohugo.io/hugo-pipes/resource-from-string/&#34;&gt;https://gohugo.io/hugo-pipes/resource-from-string/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hugo &lt;code&gt;resources.Get&lt;/code&gt;: &lt;a href=&#34;https://gohugo.io/functions/resources/get/&#34;&gt;https://gohugo.io/functions/resources/get/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hugo build cachebusters: &lt;a href=&#34;https://gohugo.io/configuration/build/&#34;&gt;https://gohugo.io/configuration/build/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Related Hugo forum report: &lt;a href=&#34;https://discourse.gohugo.io/t/resources-fromstring-breaks-resource-caching-reloading/52758&#34;&gt;https://discourse.gohugo.io/t/resources-fromstring-breaks-resource-caching-reloading/52758&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Related Hugo issue for theme Sass/CSS refresh behavior: &lt;a href=&#34;https://github.com/gohugoio/hugo/issues/12395&#34;&gt;https://github.com/gohugoio/hugo/issues/12395&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Debugging Noisy Power Rails</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/electronics/debugging-noisy-power-rails/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:48:03 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/electronics/debugging-noisy-power-rails/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Measurement hygiene before chasing firmware ghosts&lt;/p&gt;&lt;p&gt;Noisy power rails cause some of the most frustrating hardware bugs because the symptoms look random while the root cause is often deterministic. A board that &amp;ldquo;usually works&amp;rdquo; at room temperature can fail after five minutes under load, pass again after reboot, and mislead you into chasing firmware ghosts for days.&lt;/p&gt;
&lt;p&gt;A useful mindset shift is this: unstable power is not a side issue. It is a primary signal path. If voltage integrity is poor, every digital subsystem becomes statistically unreliable, and software symptoms are just the final expression.&lt;/p&gt;
&lt;p&gt;My default workflow starts with measurement hygiene before diagnosis:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;short ground spring on probe, not long alligator wire&lt;/li&gt;
&lt;li&gt;scope bandwidth limit toggled on/off to compare high-frequency noise&lt;/li&gt;
&lt;li&gt;capture at startup, idle, peak load, and transient edges&lt;/li&gt;
&lt;li&gt;document probe points physically on board photos&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bad probing creates fake ripple. Good probing reveals real coupling.&lt;/p&gt;
&lt;p&gt;First pass checks are simple:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;DC level within regulator tolerance&lt;/li&gt;
&lt;li&gt;ripple amplitude against component and MCU limits&lt;/li&gt;
&lt;li&gt;transient droop during load step&lt;/li&gt;
&lt;li&gt;recovery time after transient&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If rail droop aligns with brownout resets, you are already close to root cause.&lt;/p&gt;
&lt;p&gt;Many failures come from layout, not component choice. Long return paths, poor decoupling placement, and shared high-current loops inject noise into sensitive domains. The classic mistake is placing bulk capacitance &amp;ldquo;on the board&amp;rdquo; but not near the switching current loop that actually needs it.&lt;/p&gt;
&lt;p&gt;Decoupling strategy must be layered:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;bulk capacitors for low-frequency energy&lt;/li&gt;
&lt;li&gt;mid-value ceramics for mid-band support&lt;/li&gt;
&lt;li&gt;small ceramics close to IC pins for high-frequency edges&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You cannot substitute one category for another and expect broad-band stability.&lt;/p&gt;
&lt;p&gt;Another frequent issue is regulator operating mode. Some switchers enter pulse-skipping or burst modes at light loads, creating ripple patterns that vanish under bench tests with constant load but reappear in real duty cycles. If your device has sleep/wake behavior, you must test rails during those transitions explicitly.&lt;/p&gt;
&lt;p&gt;Grounding is equally important. &amp;ldquo;Common ground&amp;rdquo; in schematic does not mean common impedance in reality. If ADC reference return shares noisy digital current paths, measurements drift. If RF front-end return shares switching loops, sensitivity collapses. Separate returns and tie at controlled points where possible.&lt;/p&gt;
&lt;p&gt;Temperature is the hidden multiplier. ESR changes, regulator compensation margins shrink, and borderline systems cross failure thresholds. Always run a thermal variance pass:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cold start&lt;/li&gt;
&lt;li&gt;nominal ambient&lt;/li&gt;
&lt;li&gt;warmed board&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If behavior changes sharply with temperature, inspect compensation and component derating assumptions.&lt;/p&gt;
&lt;p&gt;I also recommend intentional stress tests:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;rapid load toggling&lt;/li&gt;
&lt;li&gt;USB cable swaps with different resistance&lt;/li&gt;
&lt;li&gt;long harness injection&lt;/li&gt;
&lt;li&gt;intentional supply sag within safe bounds&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Robust designs degrade gracefully. Fragile ones fail theatrically.&lt;/p&gt;
&lt;p&gt;When debugging mixed analog-digital boards, isolate domains in experiments. Power analog from clean bench source while digital remains on board regulator, then reverse. This quickly identifies whether the coupling direction is analog-to-digital, digital-to-analog, or both.&lt;/p&gt;
&lt;p&gt;Firmware can help hardware diagnosis without becoming a crutch. Add telemetry:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;brownout counters&lt;/li&gt;
&lt;li&gt;rail ADC snapshots before reset&lt;/li&gt;
&lt;li&gt;timestamped fault reasons&lt;/li&gt;
&lt;li&gt;load-state markers around heavy operations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Telemetry does not fix power integrity, but it shortens hypothesis cycles dramatically.&lt;/p&gt;
&lt;p&gt;One common anti-pattern is over-filtering after the fact. Engineers add ferrite beads and extra capacitors everywhere until symptoms soften, then ship. This can mask a fundamental loop stability or return-path problem. Prefer first-principles fixes: loop minimization, proper decoupling placement, compensation review, domain partitioning.&lt;/p&gt;
&lt;p&gt;Board revision discipline matters too. Keep change batches small and attributable:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;rev A: decoupling placement change only&lt;/li&gt;
&lt;li&gt;rev B: regulator compensation update only&lt;/li&gt;
&lt;li&gt;rev C: return path reroute only&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you change ten variables per spin, you learn almost nothing.&lt;/p&gt;
&lt;p&gt;A practical &amp;ldquo;done&amp;rdquo; checklist for rail stability:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ripple within target across states&lt;/li&gt;
&lt;li&gt;transient droop below brownout threshold margin&lt;/li&gt;
&lt;li&gt;no unexplained resets over long stress runs&lt;/li&gt;
&lt;li&gt;ADC/reference stability within spec&lt;/li&gt;
&lt;li&gt;behavior stable across temperature and load profiles&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Until all five pass, call the board &amp;ldquo;diagnostic,&amp;rdquo; not &amp;ldquo;production-ready.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Power integrity work is rarely glamorous, but it is where reliable products are born. Teams that treat rails as first-class design artifacts ship fewer mysteries, write less defensive firmware, and spend less time in late-stage panic labs.&lt;/p&gt;
&lt;p&gt;If you remember one sentence: measure the rail where the current switches, not where the schematic is pretty. That single habit catches a surprising number of expensive mistakes early.&lt;/p&gt;
&lt;h2 id=&#34;firmware-telemetry-example&#34;&gt;Firmware telemetry example&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-c&#34; data-lang=&#34;c&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;log_power_snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;vdd_mv&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;read_adc_mv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;VDD_CH&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;brownout_count&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;read_reset_counter&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;load_state&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;current_load_state&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nf&#34;&gt;emit_snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;snapshot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Telemetry does not replace probing, but it shortens the path from symptom to actionable hypothesis.&lt;/p&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/electronics/ground-is-a-design-interface/&#34;&gt;Ground Is a Design Interface&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/electronics/microcontrollers/state-machines-that-survive-noise/&#34;&gt;State Machines That Survive Noise&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/electronics/microcontrollers/spi-signals-that-lie/&#34;&gt;SPI Signals That Lie&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>IRQ Maps and the Politics of Slots</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/retro/hardware/irq-maps-and-the-politics-of-slots/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Mon, 09 Mar 2026 09:46:27 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/retro/hardware/irq-maps-and-the-politics-of-slots/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Negotiating IRQ, DMA, and I/O on DOS-era PCs&lt;/p&gt;&lt;p&gt;Anyone who built or maintained DOS-era PCs remembers that hardware conflicts were not rare edge cases; they were normal engineering terrain. IRQ lines, DMA channels, and I/O addresses had to be negotiated manually, and each new card could destabilize a previously stable system. This was less like plug-and-play and more like coalition politics in a fragile parliament.&lt;/p&gt;
&lt;p&gt;The core constraint was scarcity. Popular sound cards wanted IRQ 5 or 7. Network cards often preferred 10 or 11 on later boards but collided with other devices on mixed systems. Serial ports claimed fixed ranges by convention. Printer ports occupied addresses and IRQs that software still expected. These were not abstract settings. They were finite shared resources, and two devices claiming the same line could produce failures that looked random until you mapped the whole system.&lt;/p&gt;
&lt;p&gt;That mapping step separated casual tinkering from reliable operation. Good builders kept a notebook: slot position, card model, jumper settings, base address, IRQ, DMA low/high, BIOS toggles, and driver load order. Without this, every change became archaeology. With it, you could reason about conflicts before booting and recover quickly after experiments.&lt;/p&gt;
&lt;p&gt;Slot placement itself mattered more than many people remember. Motherboards often wired specific slots to shared interrupt paths or delivered different electrical behavior under load. Moving a card one slot over could stabilize an entire system. This felt superstitious until you understood board traces, chipset quirks, and timing sensitivities. “Try another slot” was not a meme; it was an informed diagnostic move.&lt;/p&gt;
&lt;p&gt;Software configuration had to align with hardware reality. A sound card set to IRQ 5 physically but configured as IRQ 7 in a game setup utility produced symptoms that were confusing but consistent: missing effects, lockups during sample playback, or intermittent crackle. The fix was not mystical. It was alignment across all layers: jumper, driver, environment variable, and application profile.&lt;/p&gt;
&lt;p&gt;Boot profiles in &lt;code&gt;CONFIG.SYS&lt;/code&gt; and &lt;code&gt;AUTOEXEC.BAT&lt;/code&gt; were a practical strategy for managing these tensions. One profile could prioritize networking and tooling, another multimedia and joystick support, another minimal diagnostics with most TSRs disabled. This profile pattern is a direct ancestor of modern environment presets. The principle is the same: explicit runtime compositions for different goals.&lt;/p&gt;
&lt;p&gt;DMA conflicts introduced their own flavor of pain. Two devices fighting over transfer channels could produce corruption that looked like software bugs. Audio glitches, disk anomalies, and sporadic crashes were common misdiagnoses. Experienced builders verified resource assignment first, then software assumptions. This order saved hours and prevented unnecessary reinstalls.&lt;/p&gt;
&lt;p&gt;Another historical lesson is that documentation quality varied wildly. Some clone cards shipped with sparse manuals or contradictory defaults. Community knowledge filled gaps: magazine columns, BBS archives, user groups, and handwritten cheatsheets. Effective troubleshooting required combining official docs with field reports. This mirrors contemporary reality where vendor documentation and community issue threads jointly form operational truth.&lt;/p&gt;
&lt;p&gt;The social side mattered too. In many places, one local expert became the de facto “slot diplomat,” helping classmates, coworkers, or club members resolve impossible-seeming conflicts. These people were not wizards. They were disciplined observers with good records and patience. Their method was repeatable: isolate, simplify, reassign, retest, document.&lt;/p&gt;
&lt;p&gt;From a design perspective, this era teaches respect for explicit resource models. Automatic negotiation is convenient, and modern systems rightly hide many details. But when abstraction fails, teams still need people who can reason from first principles. IRQ maps are old, yet the mindset transfers directly to container port collisions, PCI passthrough issues, interrupt storms, and shared resource exhaustion in current stacks.&lt;/p&gt;
&lt;p&gt;If you ever rebuild a vintage machine, treat slot planning as architecture, not housekeeping. Define requirements first: audio reliability, network throughput, serial compatibility, low-noise operation, diagnostic observability. Then assign resources intentionally, keep a change log, and resist random edits under fatigue. Stability is usually the outcome of boring discipline, not lucky jumper positions.&lt;/p&gt;
&lt;p&gt;The romance of retro hardware often focuses on aesthetics: beige cases, mechanical switches, CRT glow. The deeper craft was operational negotiation under constraint. IRQ maps were part of that craft. They made you model the whole system, validate assumptions layer by layer, and write down what you learned so the next failure started from knowledge, not myth.&lt;/p&gt;
&lt;p&gt;That documentation habit is probably the most transferable lesson. Whether you are assigning IRQs on ISA cards or allocating shared resources in modern infrastructure, stable systems are usually the result of explicit maps, deliberate ownership, and controlled change. The names changed. The engineering pattern did not.&lt;/p&gt;
&lt;h2 id=&#34;practical-irq-map-example&#34;&gt;Practical IRQ map example&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;SB16 clone      A220 I5 D1 H5
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;NE2000 ISA      IRQ10 IO300
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;COM1/COM2       IRQ4 / IRQ3
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;LPT1            IRQ7 (disabled if audio needs IRQ7)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;The exact values vary by board and card set, but writing this table down before changes prevents blind conflict loops.&lt;/p&gt;
&lt;p&gt;Related reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/retro/hardware/restoring-a-286/&#34;&gt;Restoring an AT 286&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/retro/dos/config-sys-as-architecture/&#34;&gt;CONFIG.SYS as Architecture&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/retro/dos/interrupts-as-user-interface/&#34;&gt;Interrupts as User Interface&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
    <item><title>Trace-First Debugging</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/hacking/tools/trace-first-debugging-with-terminal-notes/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:39:07 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/hacking/tools/trace-first-debugging-with-terminal-notes/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Structured timelines before deeper tooling&lt;/p&gt;&lt;p&gt;Many debugging sessions fail before the first command runs. The failure is methodological: teams chase hypotheses faster than they collect traceable facts. A trace-first approach reverses this. You start with a structured event timeline, annotate every command with intent, and only then escalate into deeper tooling.&lt;/p&gt;
&lt;p&gt;This sounds slower and is usually faster.&lt;/p&gt;
&lt;h2 id=&#34;what-trace-first-means-in-practice&#34;&gt;What trace-first means in practice&lt;/h2&gt;
&lt;p&gt;A trace-first loop has four repeated steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;collect timestamped evidence&lt;/li&gt;
&lt;li&gt;normalize to one timeline format&lt;/li&gt;
&lt;li&gt;attach hypothesis labels to observations&lt;/li&gt;
&lt;li&gt;run the next command only if it reduces uncertainty&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The point is not paperwork. The point is preventing analytical thrash when pressure rises.&lt;/p&gt;
&lt;h2 id=&#34;terminal-notes-as-a-first-class-artifact&#34;&gt;Terminal notes as a first-class artifact&lt;/h2&gt;
&lt;p&gt;During incidents, maintain a plain-text note file in parallel with command execution. Every entry should include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UTC timestamp&lt;/li&gt;
&lt;li&gt;target host/service&lt;/li&gt;
&lt;li&gt;command executed&lt;/li&gt;
&lt;li&gt;expected outcome&lt;/li&gt;
&lt;li&gt;observed outcome&lt;/li&gt;
&lt;li&gt;interpretation delta&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That final line (&amp;ldquo;interpretation delta&amp;rdquo;) is where debugging quality improves. It forces you to distinguish fact from extrapolation.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;2026-02-22T13:08:11Z | api-prod-3
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cmd: journalctl -u api --since &amp;#34;10 min ago&amp;#34; | rg &amp;#34;timeout|reset|handshake&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;expect: spike around deploy window
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;observed: no reset spike, only timeout bursts in one shard
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;delta: network-reset hypothesis weaker; shard-local contention hypothesis stronger&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This takes seconds and saves hours.&lt;/p&gt;
&lt;h2 id=&#34;use-wrappers-not-memory&#34;&gt;Use wrappers, not memory&lt;/h2&gt;
&lt;p&gt;Analysts under fatigue will mistype long queries. Wrapper scripts reduce variance:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#!/usr/bin/env bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; -euo pipefail
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;host&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:?host required&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;since&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;:-&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;15&lt;/span&gt;&lt;span class=&#34;p&#34;&gt; min ago&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssh &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$host&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;journalctl -u api --since \&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$since&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;\&amp;#34; --no-pager&amp;#34;&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; rg --line-number --no-heading &lt;span class=&#34;s2&#34;&gt;&amp;#34;timeout|reset|handshake|refused&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Stable wrappers turn incidents into repeatable routines instead of command improvisation theater.&lt;/p&gt;
&lt;h2 id=&#34;expectation-before-observation-discipline&#34;&gt;Expectation-before-observation discipline&lt;/h2&gt;
&lt;p&gt;Before each command, write expected outcome. Then compare. This habit prevents hindsight bias, where every result seems obvious after the fact.&lt;/p&gt;
&lt;p&gt;The method is simple:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;expected: statement prior to command&lt;/li&gt;
&lt;li&gt;observed: literal output summary&lt;/li&gt;
&lt;li&gt;difference: what changed in your model&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Teams that do this produce cleaner postmortems because reasoning steps are preserved.&lt;/p&gt;
&lt;h2 id=&#34;build-a-timeline-not-just-a-grep-pile&#34;&gt;Build a timeline, not just a grep pile&lt;/h2&gt;
&lt;p&gt;Single-log views are deceptive. You need cross-source joins:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;app logs&lt;/li&gt;
&lt;li&gt;system scheduler/load metrics&lt;/li&gt;
&lt;li&gt;network counters&lt;/li&gt;
&lt;li&gt;deploy events&lt;/li&gt;
&lt;li&gt;queue depth changes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Normalize each into a minimal schema (&lt;code&gt;ts | source | key | value&lt;/code&gt;) and sort by timestamp. Even rough normalization reveals causal order that isolated log searches hide.&lt;/p&gt;
&lt;h2 id=&#34;why-this-pairs-well-with-terminal-tools&#34;&gt;Why this pairs well with terminal tools&lt;/h2&gt;
&lt;p&gt;CLI tooling excels at composition:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;rg&lt;/code&gt; for high-signal filters&lt;/li&gt;
&lt;li&gt;&lt;code&gt;jq&lt;/code&gt; for structure normalization&lt;/li&gt;
&lt;li&gt;&lt;code&gt;awk&lt;/code&gt; for fixed-field transforms&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sort&lt;/code&gt; for temporal merge&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You do not need one giant platform to get useful timelines. You need disciplined composition and naming.&lt;/p&gt;
&lt;h2 id=&#34;a-small-reproducible-pattern&#34;&gt;A small reproducible pattern&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;paste &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &amp;lt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;rg --no-heading &lt;span class=&#34;s2&#34;&gt;&amp;#34;deploy_id&amp;#34;&lt;/span&gt; deploy.log &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk &lt;span class=&#34;s1&#34;&gt;&amp;#39;{print $1&amp;#34; deploy &amp;#34;$0}&amp;#39;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &amp;lt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;rg --no-heading &lt;span class=&#34;s2&#34;&gt;&amp;#34;timeout|reset&amp;#34;&lt;/span&gt; api.log &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk &lt;span class=&#34;s1&#34;&gt;&amp;#39;{print $1&amp;#34; api &amp;#34;$0}&amp;#39;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &amp;lt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;rg --no-heading &lt;span class=&#34;s2&#34;&gt;&amp;#34;queue_depth&amp;#34;&lt;/span&gt; worker.log &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk &lt;span class=&#34;s1&#34;&gt;&amp;#39;{print $1&amp;#34; worker &amp;#34;$0}&amp;#39;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; tr &lt;span class=&#34;s1&#34;&gt;&amp;#39;\t&amp;#39;&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;\n&amp;#39;&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; sort&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This is intentionally minimal. In production, you will want stricter parsers and host labels, but even this primitive timeline can expose sequencing errors quickly.&lt;/p&gt;
&lt;h2 id=&#34;cross-references-worth-pairing&#34;&gt;Cross references worth pairing&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/tools/terminal-kits-for-incident-triage/&#34;&gt;Terminal Kits for Incident Triage&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/hacking/tools/building-repeatable-triage-kits/&#34;&gt;Building Repeatable Triage Kits&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://mobile.dev.turbovision.in6-addr.net/musings/clarity-is-an-operational-advantage/&#34;&gt;Clarity Is an Operational Advantage&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Trace-first debugging is where those ideas converge: prepared tools plus clear reasoning artifacts.&lt;/p&gt;
&lt;h2 id=&#34;common-failure-modes&#34;&gt;Common failure modes&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Commands run without expected outcome written first.&lt;/li&gt;
&lt;li&gt;Notes mix facts and conclusions in one sentence.&lt;/li&gt;
&lt;li&gt;Host labels omitted, making merged timelines ambiguous.&lt;/li&gt;
&lt;li&gt;Query wrappers diverge across team members.&lt;/li&gt;
&lt;li&gt;Findings shared verbally but not captured reproducibly.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These are process bugs, not tool bugs.&lt;/p&gt;
&lt;h2 id=&#34;operational-payoff&#34;&gt;Operational payoff&lt;/h2&gt;
&lt;p&gt;Trace-first teams usually improve four measurable outcomes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;shorter time-to-first-correct-hypothesis&lt;/li&gt;
&lt;li&gt;fewer dead-end command branches&lt;/li&gt;
&lt;li&gt;cleaner handoffs between analysts&lt;/li&gt;
&lt;li&gt;higher postmortem confidence in causal claims&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In high-pressure debugging, clarity is not nicety. It is throughput.&lt;/p&gt;
&lt;p&gt;If you want one immediate upgrade, start by making terminal notes mandatory for all sev incidents. Keep format strict, keep entries short, keep timestamps precise. The quality jump is disproportionate to the effort.&lt;/p&gt;
&lt;p&gt;Once this practice stabilizes, you can automate part of it: command wrappers that append pre-filled note stubs so analysts only fill expectation and delta. Small automation, large consistency gain.&lt;/p&gt;
</description>
    </item>
    
    <item><title>When Crystals Drift</title>
      <link>https://mobile.dev.turbovision.in6-addr.net/retro/hardware/when-crystals-drift/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate>
      <lastBuildDate>Sun, 22 Feb 2026 22:14:54 +0100</lastBuildDate>
      <guid>https://mobile.dev.turbovision.in6-addr.net/retro/hardware/when-crystals-drift/</guid>
      <description>&lt;p class=&#34;article-subtitle&#34;&gt;Timing faults in vintage hardware&lt;/p&gt;&lt;p&gt;Vintage hardware failures are often blamed on capacitors, connectors, or corrosion. Those are common and worth checking first. But some of the strangest intermittent bugs come from timing instability: oscillators drifting, marginal clock distribution, and tolerance stacking that only breaks under specific thermal or electrical conditions.&lt;/p&gt;
&lt;p&gt;Timing faults are difficult because symptoms appear far away from cause:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;random serial framing errors&lt;/li&gt;
&lt;li&gt;floppy read instability&lt;/li&gt;
&lt;li&gt;periodic keyboard glitches&lt;/li&gt;
&lt;li&gt;game speed anomalies&lt;/li&gt;
&lt;li&gt;sporadic POST hangs&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These can look like software issues until you observe enough correlation.&lt;/p&gt;
&lt;p&gt;A crystal oscillator is not magic. It is a physical resonant component with tolerance, temperature behavior, aging characteristics, and load-capacitance sensitivity. In old systems, any of these can move the effective frequency enough to expose marginal subsystems.&lt;/p&gt;
&lt;p&gt;The diagnostic trap is pass/fail thinking. Many boards &amp;ldquo;mostly work,&amp;rdquo; so timing is assumed healthy. Better approach: characterize timing quality, not just presence.&lt;/p&gt;
&lt;p&gt;Start with controlled observation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;record failures with timestamps and thermal state&lt;/li&gt;
&lt;li&gt;identify activities correlated with errors (disk, UART, DMA bursts)&lt;/li&gt;
&lt;li&gt;measure reference clocks at startup and warmed state&lt;/li&gt;
&lt;li&gt;compare behavior under voltage variation within safe bounds&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If error rate changes with heat or supply margin, timing is a strong suspect.&lt;/p&gt;
&lt;p&gt;Measurement technique matters. A poor probe ground can create phantom jitter. Use short ground paths and compare with and without bandwidth limit. Capture both average frequency and edge stability. Frequency can look nominal while jitter causes downstream logic trouble.&lt;/p&gt;
&lt;p&gt;On legacy boards, pay attention to load network health:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;load capacitors drifting from nominal&lt;/li&gt;
&lt;li&gt;cracked or cold solder joints at oscillator can&lt;/li&gt;
&lt;li&gt;contamination near high-impedance nodes&lt;/li&gt;
&lt;li&gt;replacement parts with mismatched ESR/behavior&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Even small parasitic changes can destabilize startup or edge quality.&lt;/p&gt;
&lt;p&gt;Clock distribution is another failure layer. The source oscillator may be fine, but buffer or trace integrity may not. Look for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;weak swing at fanout nodes&lt;/li&gt;
&lt;li&gt;ringing on long routes&lt;/li&gt;
&lt;li&gt;duty-cycle distortion after buffering&lt;/li&gt;
&lt;li&gt;crosstalk from nearby aggressive edges&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Distribution faults are often temperature-sensitive because marginal thresholds shift.&lt;/p&gt;
&lt;p&gt;A practical troubleshooting pattern:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;verify oscillator node&lt;/li&gt;
&lt;li&gt;verify post-buffer node&lt;/li&gt;
&lt;li&gt;verify endpoint node&lt;/li&gt;
&lt;li&gt;compare phase/shape degradation across path&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This localizes whether instability is source, distribution, or sink-side sensitivity.&lt;/p&gt;
&lt;p&gt;Do not ignore power coupling. Oscillator and clock buffer circuits can inherit noise from poor decoupling. A &amp;ldquo;timing problem&amp;rdquo; may actually be rail integrity coupling into threshold crossing behavior. This is why timing and power debugging often converge.&lt;/p&gt;
&lt;p&gt;You can use fault provocation carefully:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;mild thermal stimulus on oscillator zone&lt;/li&gt;
&lt;li&gt;controlled airflow shifts&lt;/li&gt;
&lt;li&gt;known-good bench supply swap&lt;/li&gt;
&lt;li&gt;alternate load profile on IO-heavy paths&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Provocation narrows uncertainty when baseline behavior is intermittent.&lt;/p&gt;
&lt;p&gt;Replacement strategy should be conservative. Swapping a crystal with nominally identical frequency but different cut, tolerance, or load specification can move behavior unexpectedly. Match electrical characteristics, not just MHz label.&lt;/p&gt;
&lt;p&gt;When replacing associated capacitors, validate the effective load design. If documentation is incomplete, infer from circuit context and compare against common oscillator topologies of the era.&lt;/p&gt;
&lt;p&gt;Aging effects are real. Over decades, even good components drift. That does not imply immediate failure, but it reduces margin. Systems that were robust in 1994 may become borderline in 2026 due to accumulated tolerance shift across many components.&lt;/p&gt;
&lt;p&gt;This is tolerance stacking in slow motion.&lt;/p&gt;
&lt;p&gt;One sign of timing margin erosion is &amp;ldquo;works cold, fails warm.&amp;rdquo; Another is &amp;ldquo;fails only after specific workload sequence.&amp;rdquo; These patterns suggest threshold proximity, not hard breakage. Hard breakage is easier to diagnose.&lt;/p&gt;
&lt;p&gt;If you confirm timing instability, document it rigorously:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;node locations measured&lt;/li&gt;
&lt;li&gt;instrument settings&lt;/li&gt;
&lt;li&gt;ambient temperature range&lt;/li&gt;
&lt;li&gt;observed frequency/jitter behavior&lt;/li&gt;
&lt;li&gt;applied mitigations and outcomes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Future maintenance depends on evidence, not memory.&lt;/p&gt;
&lt;p&gt;Mitigation options vary by board:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;rework oscillator/load solder integrity&lt;/li&gt;
&lt;li&gt;replace load components with matched values&lt;/li&gt;
&lt;li&gt;improve local decoupling quality&lt;/li&gt;
&lt;li&gt;replace aging buffer IC where justified&lt;/li&gt;
&lt;li&gt;reduce environmental stress if restoration goal allows&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The right fix is whichever restores stable margin under realistic usage, not whichever looks cleanest on the bench for five minutes.&lt;/p&gt;
&lt;p&gt;Validation should include long-duration behavior:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;repeated cold/warm cycles&lt;/li&gt;
&lt;li&gt;sustained IO workload&lt;/li&gt;
&lt;li&gt;thermal soak&lt;/li&gt;
&lt;li&gt;edge-case peripherals active simultaneously&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A timing fix is not proven until intermittent faults stop under stress.&lt;/p&gt;
&lt;p&gt;There is also a broader design lesson. Reliable systems are built with margin, not just nominal correctness. Vintage troubleshooting makes this visible because margin has been consumed by age. Modern systems consume margin through scale and complexity. Same principle, different era.&lt;/p&gt;
&lt;p&gt;If you maintain old machines, timing literacy is worth developing. It turns &amp;ldquo;ghost bugs&amp;rdquo; into measurable engineering tasks. And once you learn to think in margins, edge quality, and tolerance stacks, you become better at debugging modern hardware too.&lt;/p&gt;
&lt;p&gt;Clock problems are frustrating because they hide. They are also satisfying because disciplined measurement reveals them. When a machine that randomly failed for months becomes stable after a targeted timing fix, you are not just repairing a board. You are restoring confidence in cause-and-effect.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
