<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Brummond Cucufate</title>
    <description>The latest articles on DEV Community by Brummond Cucufate (@brummond_cucufate_655d0d9).</description>
    <link>https://dev.to/brummond_cucufate_655d0d9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263872%2Ffa62a221-b022-4b82-8fc5-4eee696b8857.png</url>
      <title>DEV Community: Brummond Cucufate</title>
      <link>https://dev.to/brummond_cucufate_655d0d9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brummond_cucufate_655d0d9"/>
    <language>en</language>
    <item>
      <title>Why 2D Face Raters Fail (And How a 478-Point On-Device 3D Mesh Fixes Pose Distortion)</title>
      <dc:creator>Brummond Cucufate</dc:creator>
      <pubDate>Thu, 26 Nov 2026 10:22:44 +0000</pubDate>
      <link>https://dev.to/brummond_cucufate_655d0d9/why-2d-face-raters-fail-and-how-a-478-point-on-device-3d-mesh-fixes-pose-distortion-2d3p</link>
      <guid>https://dev.to/brummond_cucufate_655d0d9/why-2d-face-raters-fail-and-how-a-478-point-on-device-3d-mesh-fixes-pose-distortion-2d3p</guid>
      <description>&lt;p&gt;If you have ever uploaded two photos of yourself taken ten seconds apart to a legacy online face rater and received wildly different scores, the culprit usually isn't lighting alone—it is &lt;strong&gt;2D projection distortion combined with uncompensated head pose&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When a web tool measures symmetry, jaw taper, or eye tilt strictly from flat &lt;code&gt;(x, y)&lt;/code&gt; pixel coordinates without estimating head roll and yaw in 3D space, tilting your chin down by 6 degrees or turning 10 degrees off-axis can artificially skew your midface ratio, compress your upper third, and fabricate asymmetry that does not exist in your underlying bone structure.&lt;/p&gt;

&lt;p&gt;In this technical breakdown, we look at why legacy 2D landmark raters break down, how modern browser-side 478-point 3D facial meshes work without uploading user photos to a server, and how we engineered &lt;a href="https://halorater.com/" rel="noopener noreferrer"&gt;HaloRater&lt;/a&gt; to run objective proportion checks locally in ~2 seconds.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Hidden Flaws of Legacy 2D Face Analyzers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Perspective foreshortening and yaw/roll drift
&lt;/h3&gt;

&lt;p&gt;In a flat 2D coordinate system, horizontal distances shrink by &lt;code&gt;cos(theta)&lt;/code&gt; as the head yaws away from the camera lens. Meanwhile, vertical ratios shift whenever pitch changes. A few degrees of head roll turns a neutral +3.5° eye tilt into +1.0° on one eye and +6.0° on the other if the reference interpupillary axis isn't rotated back to level.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sparse 68-point landmarks miss orbital &amp;amp; cheekbone curvature
&lt;/h3&gt;

&lt;p&gt;Classic 68-point facial landmark models (such as older dlib implementations) place sparse points along the outer jawline and brow ridge. They lack dense sampling around the medial/lateral canthi, zygomatic arch width, nasal bridge depth, and philtrum-to-chin vertical segmentation. As a result:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Canthal tilt&lt;/strong&gt; readings bounce around by 2–4 degrees depending on eyelid squint or pixel rounding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Face shape detection&lt;/strong&gt; often confuses narrow cheekbones with an oblong jawline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Server-side uploads create unnecessary privacy risk
&lt;/h3&gt;

&lt;p&gt;Uploading raw front-facing portraits to anonymous servers—often with unclear retention policies—discourages privacy-conscious users from testing natural, unedited photos. Yet unedited, straight-on lighting is precisely what objective measurement needs.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. How 478-Point 3D Facial Geometry Works in the Browser
&lt;/h2&gt;

&lt;p&gt;Modern WebAssembly and WebGL/WebGPU runtimes allow dense facial mesh inference directly on the user's CPU/GPU without transmitting image bytes over the network.&lt;/p&gt;

&lt;p&gt;Using a 478-landmark 3D topology gives us dense spatial anchors &lt;code&gt;(x, y, z)&lt;/code&gt; across:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Orbital landmarks&lt;/strong&gt;: Precise medial and lateral canthus vertices for angle stability, which powers tools like our &lt;a href="https://halorater.com/canthal-tilt-calculator" rel="noopener noreferrer"&gt;Canthal Tilt Calculator&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bilateral symmetry pairs&lt;/strong&gt;: Dozens of mirrored left/right points across brows, malar prominences, alar base, oral commissures, and gonion angles, normalized against the midline nasal bridge axis rather than raw image borders—the foundation of our &lt;a href="https://halorater.com/face-symmetry-test" rel="noopener noreferrer"&gt;Face Symmetry Test&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vertical cranial segments&lt;/strong&gt;: Trichion (hairline anchor), glabella, subnasale, and menton approximations for Facial Thirds and midface proportions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Z-depth compensation&lt;/strong&gt;: Because each vertex includes depth (&lt;code&gt;z&lt;/code&gt;), slight yaw rotation and camera roll can be estimated before ratios are scored.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3. Pose Compensation Before Scoring
&lt;/h2&gt;

&lt;p&gt;In our measurement pipeline inside &lt;a href="https://halorater.com/" rel="noopener noreferrer"&gt;HaloRater&lt;/a&gt;, raw landmark extraction is never scored directly. First, we compute approximate head &lt;strong&gt;roll&lt;/strong&gt; (from eye-axis slope) and &lt;strong&gt;yaw&lt;/strong&gt; (from asymmetric z-depth between left and right cheek/jaw contours).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mild roll is normalized analytically around the midline before bilateral comparisons.&lt;/li&gt;
&lt;li&gt;Significant off-axis yaw triggers a clear &lt;strong&gt;Pose Note&lt;/strong&gt; warning the user that straight-on framing maximizes precision, rather than silently returning noisy scores as truth.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We also separate structural metrics into transparent sub-axes across a six-axis calibration profile:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Symmetry&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Golden Proportions&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Jawline &amp;amp; Taper&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Eye Area &amp;amp; Canthal Tilt&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Facial Fifths&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Facial Thirds&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Zero-Upload Architecture: Why "0 Bytes Uploaded" Matters
&lt;/h2&gt;

&lt;p&gt;For the free diagnostic scan on HaloRater:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image decoding, landmark inference, pose compensation, and score calculation all run strictly in client-side memory inside the browser tab.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero portrait bytes are sent to backend storage during the free scan.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Users see their &lt;code&gt;0-100&lt;/code&gt; Harmony Score, strongest aesthetic asset, and #1 highest-leverage area immediately, while optionally choosing a one-time deep written breakdown (&lt;code&gt;$7.90&lt;/code&gt;) or full blueprint report (&lt;code&gt;$16.90&lt;/code&gt;) with no recurring subscription traps.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It Yourself
&lt;/h2&gt;

&lt;p&gt;If you want to inspect how 3D landmarks map across your own proportions—without creating an account or uploading photos to a third-party bucket—test the browser-local tools directly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full On-Device Scan&lt;/strong&gt;: &lt;a href="https://halorater.com/" rel="noopener noreferrer"&gt;HaloRater&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eye Angle Check&lt;/strong&gt;: &lt;a href="https://halorater.com/canthal-tilt-calculator" rel="noopener noreferrer"&gt;Canthal Tilt Calculator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mirror Balance Check&lt;/strong&gt;: &lt;a href="https://halorater.com/face-symmetry-test" rel="noopener noreferrer"&gt;Face Symmetry Test&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>computervision</category>
      <category>privacy</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Exhaustive Proof in 25 Lines of Python: Why Base-22 Birth Matrix Math Only Produces 26 Karmic Tails (1900–2099)</title>
      <dc:creator>Brummond Cucufate</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:13:17 +0000</pubDate>
      <link>https://dev.to/brummond_cucufate_655d0d9/exhaustive-proof-in-25-lines-of-python-why-base-22-birth-matrix-math-only-produces-26-karmic-tails-hid</link>
      <guid>https://dev.to/brummond_cucufate_655d0d9/exhaustive-proof-in-25-lines-of-python-why-base-22-birth-matrix-math-only-produces-26-karmic-tails-hid</guid>
      <description>&lt;p&gt;While building an interactive SVG octagram calculator for Natalia Ladini's 22-Arcana Birth Matrix (&lt;a href="https://natalseason.com/matrix" rel="noopener noreferrer"&gt;live calculator here&lt;/a&gt;), I ran into a messy data problem.&lt;/p&gt;

&lt;p&gt;Dozens of popular websites publish conflicting lists of "Karmic Tail" combinations—some listing 15 codes, others listing 30+, and many listing reversed sequences like &lt;code&gt;22-7-3&lt;/code&gt; alongside &lt;code&gt;3-7-22&lt;/code&gt; as if they were separate items.&lt;/p&gt;

&lt;p&gt;Instead of guessing which blog post was copying whom, I wrote a 25-line Python script to exhaustively compute &lt;strong&gt;every single calendar date from January 1, 1900 through December 31, 2099&lt;/strong&gt; (&lt;code&gt;73,049&lt;/code&gt; days) and inspect the exact reachable set.&lt;/p&gt;

&lt;p&gt;Here is the script and why &lt;code&gt;10,648&lt;/code&gt; theoretical triplets collapse into &lt;strong&gt;26 exact states&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The 25-Line Exhaustive Python Script
&lt;/h2&gt;

&lt;p&gt;In canonical Ladini Base-22 arithmetic, every number must stay in &lt;code&gt;1..22&lt;/code&gt;. Any integer greater than &lt;code&gt;22&lt;/code&gt; is reduced recursively by summing its decimal digits (&lt;code&gt;23 -&amp;gt; 5&lt;/code&gt;, &lt;code&gt;29 -&amp;gt; 11&lt;/code&gt;, &lt;code&gt;1990 -&amp;gt; 19&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;

&lt;span class="n"&gt;tails&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1900&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2099&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                 &lt;span class="c1"&gt;# Left: Portrait&lt;/span&gt;
    &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;               &lt;span class="c1"&gt;# Top: Talents&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                &lt;span class="c1"&gt;# Right: Material Anchor&lt;/span&gt;
    &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;               &lt;span class="c1"&gt;# Bottom: Karmic Anchor&lt;/span&gt;
    &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;           &lt;span class="c1"&gt;# Center: Comfort Zone&lt;/span&gt;
    &lt;span class="n"&gt;d1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                  &lt;span class="c1"&gt;# Karmic Tail Top&lt;/span&gt;
    &lt;span class="n"&gt;d2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;reduce22&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;d1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                 &lt;span class="c1"&gt;# Karmic Tail Middle&lt;/span&gt;
    &lt;span class="n"&gt;tails&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nf"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"days={days} unique_tails={len(tails)}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{x}-{y}-{z}"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tails&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running this produces:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;days=73049 unique_tails=26
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exactly &lt;strong&gt;26&lt;/strong&gt; combinations—out of &lt;code&gt;22 x 22 x 22 = 10,648&lt;/code&gt; naive 3-number permutations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Only 26 States Are Mathematically Reachable
&lt;/h2&gt;

&lt;p&gt;At first glance, &lt;code&gt;(d1, d2, D)&lt;/code&gt; looks like three independent variables in &lt;code&gt;1..22&lt;/code&gt;. In reality, the entire triplet is locked down by a single modular invariant:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Both &lt;code&gt;D&lt;/code&gt; and &lt;code&gt;E&lt;/code&gt; depend on the exact same sum &lt;code&gt;S = A + B + C&lt;/code&gt;:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;D = reduce22(S)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;E = reduce22(S + D)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Digit reduction preserves value modulo 9:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;For any positive integer &lt;code&gt;n&lt;/code&gt;, summing its decimal digits leaves &lt;code&gt;n mod 9&lt;/code&gt; unchanged (&lt;code&gt;reduce22(n) ≡ n (mod 9)&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Therefore, &lt;code&gt;E ≡ S + D ≡ 2D (mod 9)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Which forces &lt;code&gt;d1 = reduce22(D + E) ≡ D + 2D ≡ 3D (mod 9)&lt;/code&gt;!&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because &lt;code&gt;d1&lt;/code&gt; must be congruent to &lt;code&gt;3D (mod 9)&lt;/code&gt; and stay within &lt;code&gt;1..22&lt;/code&gt;, &lt;strong&gt;&lt;code&gt;d1&lt;/code&gt; can NEVER be anything except a multiple of 3&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;d1 ∈ {3, 6, 9, 12, 15, 18, 21}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Even tighter: once &lt;code&gt;D&lt;/code&gt; is fixed (&lt;code&gt;1..22&lt;/code&gt;), &lt;code&gt;E&lt;/code&gt;, &lt;code&gt;d1&lt;/code&gt;, and &lt;code&gt;d2&lt;/code&gt; are &lt;strong&gt;100% deterministic functions of &lt;code&gt;D&lt;/code&gt;&lt;/strong&gt;, except for the handful of &lt;code&gt;(S mod 9)&lt;/code&gt; vs &lt;code&gt;(S &amp;gt; 22)&lt;/code&gt; boundary thresholds where two integers &lt;code&gt;S1 != S2&lt;/code&gt; map to the same &lt;code&gt;D&lt;/code&gt; (&lt;code&gt;D &amp;lt;= 22&lt;/code&gt;) while &lt;code&gt;S + D&lt;/code&gt; branches cleanly—yielding just &lt;strong&gt;4 extra edge cases&lt;/strong&gt; on top of &lt;code&gt;22&lt;/code&gt; base values of &lt;code&gt;D&lt;/code&gt; (&lt;code&gt;22 + 4 = 26&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  Two Engineering Lessons for Programmatic SEO &amp;amp; Calculators
&lt;/h2&gt;

&lt;p&gt;Applying that proof directly improved how I structured the &lt;a href="https://natalseason.com/matrix" rel="noopener noreferrer"&gt;22-Arcana Birth Matrix module&lt;/a&gt; on Natal Season:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Canonical routing with &lt;code&gt;301&lt;/code&gt; redirects for reversed codes:&lt;/strong&gt;
Users frequently search a Karmic Tail bottom-up (e.g., &lt;code&gt;22-7-3&lt;/code&gt;) instead of canonical top-down (&lt;code&gt;3-7-22&lt;/code&gt;). Knowing the exact finite 26-code set made it trivial to build a deterministic &lt;code&gt;REVERSED_TAIL_MAP&lt;/code&gt; that responds with an HTTP &lt;code&gt;301&lt;/code&gt; redirect to the canonical page inside the &lt;a href="https://natalseason.com/matrix/karmic-tails" rel="noopener noreferrer"&gt;26 Karmic Tails directory&lt;/a&gt;, avoiding duplicate thin pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transparent step-by-step arithmetic + canonical compatibility addition:&lt;/strong&gt;
Because users constantly complain that different calculators show different Love Line or Compatibility results, every personal calculation displays the full 10-step Base-22 trace right under the SVG octagram, and the &lt;a href="https://natalseason.com/matrix/compatibility" rel="noopener noreferrer"&gt;Compatibility Matrix Calculator&lt;/a&gt; applies canonical point-wise corner addition (&lt;code&gt;reduce22(A1 + A2)&lt;/code&gt;) rather than averaging two birth dates.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;Note: The 22-Arcana Birth Matrix is a symbolic arithmetic self-reflection model intended for insight and entertainment only—not medical, legal, or financial advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>math</category>
      <category>algorithms</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why Two BaZi Calculators Give You Different Birth Charts (And How True Solar Time, DST &amp; Li Chun Actually Work)</title>
      <dc:creator>Brummond Cucufate</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:36:07 +0000</pubDate>
      <link>https://dev.to/brummond_cucufate_655d0d9/why-two-bazi-calculators-give-you-different-birth-charts-and-how-true-solar-time-dst-li-chun-133k</link>
      <guid>https://dev.to/brummond_cucufate_655d0d9/why-two-bazi-calculators-give-you-different-birth-charts-and-how-true-solar-time-dst-li-chun-133k</guid>
      <description>&lt;p&gt;Enter the same birthday into two BaZi calculators and you can get different hour pillars. Sometimes even the year changes. Before deciding which interpretation sounds like you, check what happened to your timestamp.&lt;/p&gt;

&lt;p&gt;I build Natal Season, an independent Four Pillars project. Working through its calculation code has made me particularly interested in the unglamorous parts: historical time zones, boundary conditions, and what a form does when someone leaves the birth hour blank.&lt;/p&gt;

&lt;p&gt;BaZi assigns a stem-and-branch pair to the year, month, day, and hour, with each pair calculated according to conventions that the software ought to disclose. Their use as prompts for personal reflection is a separate matter, and precise arithmetic does not establish predictive validity.&lt;/p&gt;

&lt;p&gt;The examples below use real dates and time-zone rules with illustrative birth times, so you can reproduce the arithmetic without accepting any personality interpretation.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Historical daylight saving time: the hour you can accidentally subtract twice
&lt;/h2&gt;

&lt;p&gt;Start with the time written on the birth record. Unless the record says otherwise, treat it as local civil time: what the hospital clock displayed.&lt;/p&gt;

&lt;p&gt;Consider New York on July 15, 1990, at 13:30: with the historical offset of UTC−04:00, that moment was 17:30 UTC. Standard-time equivalent: 12:30.&lt;/p&gt;

&lt;p&gt;Now imagine subtracting an hour yourself before entering 12:30 into a calculator that already resolves New York's historical DST. It interprets your altered input as 12:30 daylight time, or 16:30 UTC. You have moved the birth an hour earlier.&lt;/p&gt;

&lt;p&gt;That's the double deduction.&lt;/p&gt;

&lt;p&gt;Enter the original 13:30 when a calculator asks for local birth time and handles DST automatically. A tool explicitly requesting standard time has a different input contract, which is why I read that label before touching the clock.&lt;/p&gt;

&lt;p&gt;History matters here. U.S. DST rules changed in 2007: March 20 in New York was on standard time in 2006, but on daylight time in 2007. Applying today's seasonal schedule to both years loses an hour in one case. &lt;a href="https://www.nist.gov/news-events/news/2007/10/reminder-turn-your-clocks-back-sunday-november-4" rel="noopener noreferrer"&gt;NIST documents the 2007 change&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For implementation, I want a named zone such as &lt;code&gt;America/New_York&lt;/code&gt;, backed by historical data, rather than a permanent "GMT−5" setting. The &lt;a href="https://www.iana.org/time-zones" rel="noopener noreferrer"&gt;IANA Time Zone Database&lt;/a&gt; records local-time history for representative locations worldwide.&lt;/p&gt;

&lt;p&gt;Autumn introduces another problem: a clock time can occur twice. In New York on November 3, 2024, 01:30 occurred before and after the fallback. Without an offset or other evidence, the record leaves two possible instants, and software should preserve that ambiguity instead of silently choosing the first occurrence.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. True solar time: longitude is only part of the correction
&lt;/h2&gt;

&lt;p&gt;Civil time lets a whole region share a clock. Local mean solar time follows longitude. Apparent solar time, commonly called true solar time in BaZi tools, also accounts for the Sun's uneven apparent progress through the year.&lt;/p&gt;

&lt;p&gt;Longitude contributes four minutes per degree. Earth's orbital eccentricity and axial tilt produce the seasonal difference called the equation of time. A longitude-only adjustment therefore gives mean solar time, while apparent solar time requires that extra correction. &lt;a href="https://pvpmc.sandia.gov/modeling-guide/1-weather-design-inputs/sun-position/basic-solar-position-models/" rel="noopener noreferrer"&gt;Sandia's solar-position guide&lt;/a&gt; explains the distinction and the angular relationship.&lt;/p&gt;

&lt;p&gt;Using the sign convention in &lt;a href="https://gml.noaa.gov/grad/solcalc/solareqns.PDF" rel="noopener noreferrer"&gt;NOAA's General Solar Position Calculations&lt;/a&gt;, the calculation can be written as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;solar correction in minutes = 4 × longitude − 60 × UTC offset + E
apparent solar time = local civil time + solar correction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Longitude is positive east and negative west. The UTC offset is in hours and includes DST when applicable. &lt;code&gt;E&lt;/code&gt; is NOAA's approximate equation of time in minutes, with positive values added to mean solar time.&lt;/p&gt;

&lt;p&gt;For our July 15, 1990 example, use New York longitude −74.006°, offset −4, and &lt;code&gt;E ≈ −5.79&lt;/code&gt; minutes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;4 × (−74.006) − 60 × (−4) − 5.79 ≈ −61.81 minutes
13:30 civil time → approximately 12:28 apparent solar time
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That result already includes the daylight-saving correction. No further hour comes off.&lt;/p&gt;

&lt;p&gt;Under the familiar two-hour branch divisions, 13:30 falls in Wei, while 12:28 falls in Wu. An hour-pillar disagreement follows directly if one tool uses civil time and the other apparent solar time, even when both perform their chosen calculations correctly.&lt;/p&gt;

&lt;p&gt;The equation-of-time term also changes sign through the year. "Subtract a few minutes" is an unsafe shortcut.&lt;/p&gt;

&lt;p&gt;I would treat a timestamp within a minute of a boundary cautiously. NOAA's short formula is an approximation, birth records may be rounded, and city-center longitude may differ from the hospital's. Displaying seconds cannot recover information the record never contained.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Li Chun and Lunar New Year are different boundaries
&lt;/h2&gt;

&lt;p&gt;"I was born in the Year of the Dragon" can refer to two different calendar conventions.&lt;/p&gt;

&lt;p&gt;In the BaZi convention discussed here, the year pillar changes at Li Chun, the solar term translated as Spring Commences. The popular lunar-year animal changes at Lunar New Year. A January 1 cutoff would introduce a third convention.&lt;/p&gt;

&lt;p&gt;Take 2024. The &lt;a href="https://www.hko.gov.hk/en/gts/time/calendar/pdf/files/2024e.pdf" rel="noopener noreferrer"&gt;Hong Kong Observatory's calendar&lt;/a&gt; places Li Chun on February 4 and Lunar New Year on February 10. An illustrative birth in Hong Kong at noon on February 7 is safely between them.&lt;/p&gt;

&lt;p&gt;Under the Li Chun convention, its year pillar is already Jia-Chen, commonly called Wood Dragon. Under the lunar-year convention, the new Dragon year has yet to begin. A Rabbit label from a lunar zodiac lookup and a Dragon year pillar from a BaZi calculator can both follow their stated rules.&lt;/p&gt;

&lt;p&gt;February 7 is straightforward. February 4 requires a time. Li Chun is an astronomical instant, whose local clock reading varies by time zone. "February 4 at midnight everywhere" is wrong.&lt;/p&gt;

&lt;p&gt;Compare the birth instant and the solar-term instant on the same time basis, such as UTC. Applying a longitude correction to one timestamp while leaving the other on a reference-zone clock creates a false boundary comparison.&lt;/p&gt;

&lt;p&gt;The month pillar needs care too. BaZi solar months begin at the twelve &lt;em&gt;jie&lt;/em&gt; boundaries among the twenty-four solar terms. Gregorian month numbers and lunar-month starts are unsuitable substitutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Unknown birth time: noon is a placeholder
&lt;/h2&gt;

&lt;p&gt;If your family remembers only the date, choosing 12:00 makes the form easier to submit while introducing an hour for which you have no evidence.&lt;/p&gt;

&lt;p&gt;A responsible partial chart should mark the hour as unknown and exclude it from hour-dependent interpretation or element totals. Any noon value used internally should remain an implementation detail with its uncertainty disclosed.&lt;/p&gt;

&lt;p&gt;The remaining pillars need checking, too.&lt;/p&gt;

&lt;p&gt;Suppose all you know is "February 4, 2024, Hong Kong." Since Li Chun occurred that day, the missing time can affect the year and month pillars. Near midnight, solar-time conversion can also move a candidate birth time to the adjacent date. Different day-rollover conventions introduce further uncertainty.&lt;/p&gt;

&lt;p&gt;For an approximate window such as "between 10 a.m. and noon," calculate the possible boundary crossings across that interval, keeping stable labels and showing alternatives for those that change. With no time estimate, leave those alternatives unresolved. Choosing the chart whose description feels most flattering would turn a data problem into confirmation bias.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical check before comparing interpretations
&lt;/h2&gt;

&lt;p&gt;First, copy the original birth date, recorded time, and birthplace into a note, along with the record's precision: exact minute, rounded hour, family recollection, or unknown.&lt;/p&gt;

&lt;p&gt;Then compare both calculators' historical UTC offset and civil-versus-solar setting, recording the corrected timestamp wherever the interface exposes it so you can trace the calculation. Check the year boundary, day-rollover convention, and treatment of missing hours before comparing the four columns.&lt;/p&gt;

&lt;p&gt;You can use &lt;a href="https://natalseason.com/" rel="noopener noreferrer"&gt;Natal Season&lt;/a&gt; as one comparison point. It's my project, so treat it with the same scrutiny. For the New York example, an automatic-DST input should receive 13:30, unchanged.&lt;/p&gt;

&lt;p&gt;If the timestamps agree but the pillars differ, ask which calendar rule causes the difference. If the pillars agree but the prose differs, you have moved into interpretation. That calls for a different conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources and disclosure
&lt;/h2&gt;

&lt;p&gt;The linked NOAA, Sandia, NIST, IANA, and Hong Kong Observatory materials support the timekeeping discussion. They do not validate BaZi personality claims. &lt;a href="https://natalseason.com/" rel="noopener noreferrer"&gt;Natal Season&lt;/a&gt; is the Four Pillars tool I build for optional reflection. My interest here is making the calculation assumptions inspectable, including the places where the birth record cannot support a single answer.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>timezones</category>
      <category>astronomy</category>
    </item>
  </channel>
</rss>
