<?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: はるはる Haruharu</title>
    <description>The latest articles on DEV Community by はるはる Haruharu (@sharu2920).</description>
    <link>https://dev.to/sharu2920</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%2F1634777%2F3e199fdf-f074-4d30-96c5-b87d573b6dbc.jpeg</url>
      <title>DEV Community: はるはる Haruharu</title>
      <link>https://dev.to/sharu2920</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharu2920"/>
    <language>en</language>
    <item>
      <title>One Hostname, One Port, a Different TLS Certificate per URL Path</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Sun, 15 Nov 2026 07:41:01 +0000</pubDate>
      <link>https://dev.to/sharu2920/one-hostname-one-port-a-different-tls-certificate-per-url-path-4644</link>
      <guid>https://dev.to/sharu2920/one-hostname-one-port-a-different-tls-certificate-per-url-path-4644</guid>
      <description>&lt;p&gt;TLS certificates are selected during the handshake. At that point the server has not seen a single byte of HTTP, so it cannot know the URL path. The only thing it has is SNI — the hostname. Certificates are chosen by hostname, never by path. That's just how TLS works.&lt;/p&gt;

&lt;p&gt;I decided I wanted it to work the other way anyway.&lt;/p&gt;

&lt;p&gt;The result is &lt;strong&gt;Haruharu Cert Routing (HCRT)&lt;/strong&gt;: an experimental TLS 1.3 server written from scratch in a single Python file. Same hostname, same port 443, no redirects — but &lt;code&gt;/a/*&lt;/code&gt; is served with certificate A and &lt;code&gt;/b/*&lt;/code&gt; with certificate B. Open the padlock in your browser and you will see a genuinely different certificate, not a trick of the UI.&lt;/p&gt;

&lt;p&gt;Live demo (two real Let's Encrypt certificates, both with CN &lt;code&gt;sslgateway.haruharutv.jp&lt;/code&gt;, issued by different LE intermediates):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://sslgateway.haruharutv.jp/" rel="noopener noreferrer"&gt;https://sslgateway.haruharutv.jp/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow the links between &lt;code&gt;/a/cafe&lt;/code&gt; and &lt;code&gt;/b/create&lt;/code&gt;. Each page prints the serial number of the certificate it was actually served with, at the bottom.&lt;/p&gt;

&lt;p&gt;Source code (MIT): &lt;a href="https://github.com/htvoffcial/haruharu-cert-routing" rel="noopener noreferrer"&gt;https://github.com/htvoffcial/haruharu-cert-routing&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The basic idea
&lt;/h2&gt;

&lt;p&gt;There is no way around the core problem: during the handshake, the path does not exist yet. Nothing in the ClientHello will ever tell you it.&lt;/p&gt;

&lt;p&gt;But a browser session is not one connection. It can be two.&lt;/p&gt;

&lt;p&gt;So the approach is: accept the first connection with a default certificate, look at the requested path, and if that path belongs to a different certificate, send nothing and make the browser come back. On the second connection, present the right certificate from the very start.&lt;/p&gt;

&lt;p&gt;For this to work, two things have to hold:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The server must recognize the second connection as "the same browser, continuing".&lt;/li&gt;
&lt;li&gt;The browser must retry without showing the user an error.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Both turned out to be solvable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 1: the HTTP/2 rewind
&lt;/h2&gt;

&lt;p&gt;The main mechanism runs on HTTP/2. I call it the &lt;strong&gt;ChronoCert rewind&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Session resumption tickets are opaque blobs that the server creates and the client stores. HCRT issues tickets in its own encrypted format, and inside each ticket it stamps a &lt;em&gt;lineage ID&lt;/em&gt; — 8 bytes that stay constant across every ticket derived from the same original session. When a browser reconnects and presents a ticket, the server decrypts it and learns which lineage the connection belongs to.&lt;/p&gt;

&lt;p&gt;Now the flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The browser connects (default certificate) and navigates to &lt;code&gt;/b/create&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The server sees that &lt;code&gt;/b/*&lt;/code&gt; belongs to certificate B, but this connection presented A.&lt;/li&gt;
&lt;li&gt;The server records: "for this lineage, the pending target is certificate B" (kept for 30 seconds).&lt;/li&gt;
&lt;li&gt;For that stream, the server sends &lt;strong&gt;RST_STREAM with REFUSED_STREAM&lt;/strong&gt;, then a &lt;strong&gt;GOAWAY&lt;/strong&gt;, waits 250 ms, and closes the connection. Not a single byte of the response is sent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;REFUSED_STREAM literally means "I refused this before processing it, it is safe to retry elsewhere". Browsers honor that: they quietly open a new connection and resend the request, without surfacing an error to the user.&lt;/p&gt;

&lt;p&gt;On the new connection, the ClientHello carries the ticket. The server reads the lineage ID, finds the pending target, and this time presents certificate B in the handshake. The page loads, over HTTP/2, with the correct certificate — and the URL never changed.&lt;/p&gt;

&lt;p&gt;One ordering detail mattered a lot in practice: the RST_STREAM has to reach the browser before the connection teardown does. If the close arrives first, some browsers treat it as a network error instead of a retry signal. Hence the 250 ms pause between GOAWAY and close.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 2: peeking at 0-RTT (HTTP/1.1)
&lt;/h2&gt;

&lt;p&gt;For HTTP/1.1 there is a second, completely different mechanism.&lt;/p&gt;

&lt;p&gt;With TLS 1.3 0-RTT, a resumed connection's first flight contains the actual HTTP request, encrypted under the resumption PSK. The server can decrypt that early data &lt;em&gt;during&lt;/em&gt; the handshake, read the path, and — if the path belongs to a different certificate — refuse the PSK and fall back to a full handshake presenting the right certificate.&lt;/p&gt;

&lt;p&gt;This works. I verified it end-to-end with &lt;code&gt;openssl s_client&lt;/code&gt;: fresh connection gets A, resumed connection with early data for &lt;code&gt;/b&lt;/code&gt; gets B, with early data for &lt;code&gt;/a&lt;/code&gt; gets A.&lt;/p&gt;

&lt;p&gt;The catch: Chrome never sends early data on top-level navigations. It presents the ticket (so resumption happens), but the &lt;code&gt;early_data&lt;/code&gt; extension is simply not there. So in Chrome this mechanism never fires, and the HTTP/2 rewind does all the real work. I kept the 0-RTT path anyway — it is the "cleaner" of the two ideas, and it does work for clients that send early data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 3: Safari, or how I learned tickets are optional
&lt;/h2&gt;

&lt;p&gt;Then I opened the demo on an iPad.&lt;/p&gt;

&lt;p&gt;Safari failed with "the network connection was lost". Digging through the server logs, the reason was almost funny: Safari never presented our session tickets at all. No &lt;code&gt;pre_shared_key&lt;/code&gt; extension in its ClientHello, on any connection. No ticket means no lineage ID, which means every reconnect looked like a brand-new visitor, got the default certificate, got rewound, reconnected, got the default certificate again — an infinite loop until Safari gave up.&lt;/p&gt;

&lt;p&gt;The fix is a fallback I am not particularly proud of: when a connection presents no ticket, the server also remembers pending targets by source IP for 10 seconds, and treats a reconnect from the same IP as the same lineage. With that, Safari switches certificates in both directions.&lt;/p&gt;

&lt;p&gt;Let me be honest about the weakness, because it is real: IP-based identity is not identity. Another client behind the same NAT, or behind the same Private Relay egress, connecting within those 10 seconds could in principle pick up someone else's pending target. The ticket lineage is the actual mechanism; the IP fallback is a pragmatic shim for ticket-less browsers, with a short TTL to keep the blast radius small.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it
&lt;/h2&gt;

&lt;p&gt;Configuration is a single small file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="n"&gt;listen&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;443&lt;/span&gt;

&lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="n"&gt;certs&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pem&lt;/span&gt; &lt;span class="n"&gt;certs&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;
  &lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="cm"&gt;/* certs/a.pem certs/a.key root sites/a-root
&lt;/span&gt;  &lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="cm"&gt;/* certs/b.pem certs/b.key root sites/b-root
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Certificates are checked for changes every 20 seconds and hot-reloaded, so rotating a cert does not need a restart. The demo runs on a 512 MB LXC container.&lt;/p&gt;

&lt;p&gt;To try it locally with self-signed certificates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/htvoffcial/haruharu-cert-routing
&lt;span class="nb"&gt;cd&lt;/span&gt; haruharu-cert-routing/examples
./gen-certs.sh
&lt;span class="nb"&gt;cd&lt;/span&gt; .. &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; python3 hcrt.py examples/config.hcrt
&lt;span class="c"&gt;# open https://localhost:8443 and wander between /a/ and /b/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Limitations, stated plainly
&lt;/h2&gt;

&lt;p&gt;This is an experiment, and the scope of v1 is deliberately narrow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TLS 1.3 only&lt;/li&gt;
&lt;li&gt;One cipher suite: TLS_AES_128_GCM_SHA256&lt;/li&gt;
&lt;li&gt;Key exchange: X25519 only&lt;/li&gt;
&lt;li&gt;Certificates: ECDSA P-256 only&lt;/li&gt;
&lt;li&gt;Static file serving only (GET/HEAD), no proxying, no CGI, nothing dynamic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Verified so far: Chrome (the full /a → /b → /a → /b round trip, no redirects, no certificate errors) and Safari on iPad (after the IP fallback). During testing, Chrome once flashed an &lt;code&gt;ERR_HTTP2_SERVER_REFUSED_STREAM&lt;/code&gt; page for a split second before recovering on its own — it has not been perfectly invisible in every single run, and I'd rather say that here than pretend otherwise. Firefox has not been tested yet.&lt;/p&gt;

&lt;p&gt;Please do not put this in front of anything that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why build this at all
&lt;/h2&gt;

&lt;p&gt;There is no practical use case. Nobody needs per-path certificates.&lt;/p&gt;

&lt;p&gt;But the constraint "the path does not exist at handshake time" felt absolute in a way that turned out to be negotiable, once I started thinking about connections as a sequence instead of a single event. The specs involved — TLS 1.3 resumption, RFC 9113's REFUSED_STREAM semantics — were all designed for other purposes. The interesting part was finding that they compose into something none of them individually intended.&lt;/p&gt;

&lt;p&gt;If you try it and find a browser that behaves differently, I would genuinely like to hear about it.&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>tls</category>
      <category>server</category>
    </item>
    <item>
      <title>So Interesting!</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Sat, 12 Sep 2026 08:29:50 +0000</pubDate>
      <link>https://dev.to/sharu2920/so-interesting-12gf</link>
      <guid>https://dev.to/sharu2920/so-interesting-12gf</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/mtdc/2026-matsukosai-chiba-prefectural-matsudo-high-schools-cultural-festival-will-be-held-sept-18-3mkl" class="crayons-story__hidden-navigation-link"&gt;2026 Matsukosai, Chiba Prefectural Matsudo High School's Cultural Festival, will be held Sept. 18 (students) and Sept. 19 (public).&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/mtdc"&gt;
            &lt;img alt="Prefectural Matsudo High School Computer Club logo" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F11451%2F209aed0b-d94e-4458-9c48-f9a7633ac404.png" class="crayons-logo__image" width="512" height="512"&gt;
          &lt;/a&gt;

          &lt;a href="/mtdhccpr" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3449484%2Fe123d773-4287-4e5a-affe-f1af182c958d.png" alt="mtdhccpr profile" class="crayons-avatar__image" width="640" height="480"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/mtdhccpr" class="crayons-story__secondary fw-medium m:hidden"&gt;
              MTDHCCPR
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                MTDHCCPR
                
                
              
              &lt;div id="story-author-preview-content-4630870" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/mtdhccpr" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3449484%2Fe123d773-4287-4e5a-affe-f1af182c958d.png" class="crayons-avatar__image" alt="" width="640" height="480"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;MTDHCCPR&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/mtdc" class="crayons-story__secondary fw-medium"&gt;Prefectural Matsudo High School Computer Club&lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/mtdc/2026-matsukosai-chiba-prefectural-matsudo-high-schools-cultural-festival-will-be-held-sept-18-3mkl" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Sep 11&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/mtdc/2026-matsukosai-chiba-prefectural-matsudo-high-schools-cultural-festival-will-be-held-sept-18-3mkl" id="article-link-4630870"&gt;
          2026 Matsukosai, Chiba Prefectural Matsudo High School's Cultural Festival, will be held Sept. 18 (students) and Sept. 19 (public).
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/schoolfestival"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;schoolfestival&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/%E6%9D%BE%E9%AB%98%E7%A5%AD"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;松高祭&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/mtdc/2026-matsukosai-chiba-prefectural-matsudo-high-schools-cultural-festival-will-be-held-sept-18-3mkl" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/mtdc/2026-matsukosai-chiba-prefectural-matsudo-high-schools-cultural-festival-will-be-held-sept-18-3mkl#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            1 min read
          &lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Smile is the Best "Gym Clothes": Lessons in Digital Well-being from a GitHub-Born "Exercise Coach"</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Tue, 05 May 2026 08:28:47 +0000</pubDate>
      <link>https://dev.to/sharu2920/smile-is-the-best-gym-clothes-lessons-in-digital-well-being-from-a-github-born-exercise-coach-1cm8</link>
      <guid>https://dev.to/sharu2920/smile-is-the-best-gym-clothes-lessons-in-digital-well-being-from-a-github-born-exercise-coach-1cm8</guid>
      <description>&lt;p&gt;What comes to mind when you think of GitHub? Probably cold code reviews, rigid error checks, and the endless pursuit of efficiency.&lt;/p&gt;

&lt;p&gt;But in the heart of the repository &lt;code&gt;htvoffcial&lt;/code&gt;, there’s a discussion space called &lt;strong&gt;"Haru-Haru's Oasis"&lt;/strong&gt; (はるはるの憩) that’s defying the "dry" stereotype of software development. It's home to a unique AI persona: &lt;strong&gt;"Exercise Coach" (Taiso-no-Oniisan).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Born from Google's &lt;strong&gt;Gemma&lt;/strong&gt; LLM, this AI transforms daily dev logs and casual chats into energetic "exercise commentary." In a world obsessed with complexity and delivery speed, this project offers a refreshing take on how we can regain "mental flexibility" through technology.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Ultimate Mental Hack: "Smile as Infrastructure"
&lt;/h2&gt;

&lt;p&gt;When starting a new project, we often obsess over the "perfect stack" or the best hardware. But the Exercise Coach argues that the most important piece of equipment is internal.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"A smile is the best set of gym clothes. Put it on and dive into your day with energy!"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Drawing inspiration from the &lt;strong&gt;Quokka&lt;/strong&gt;—often called the world's happiest animal—the AI reminds us that a little bit of "niccoli" (grinning) is a powerful tool for survival in the high-pressure world of debugging and deadlines. Whether it's surviving a heavy exam season or a complex refactor, maintaining the capacity to enjoy a simple snack or a beautiful sunset is what makes a developer truly "resilient."&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Embellishing Failure: "Infiltration" vs. "Hydrophilic"
&lt;/h3&gt;

&lt;p&gt;The beauty of this community isn't technical perfection; it's the ability to celebrate mistakes. When users post typos from their chemistry or history notes, the Coach reacts with humor:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chemistry Typos:&lt;/strong&gt; When a user confuses "Hydrophilic" with "Infiltration," the Coach quips, &lt;em&gt;"I just want all the colloids to get along!"&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encouraging Growth:&lt;/strong&gt; While playful, the Coach can be a strict mentor: &lt;em&gt;"Don't rush, but make sure you're actually studying!"&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By turning bugs and blunders into "cultural artifacts," the community lowers the barrier to participation and fosters a safe space for young developers to grow.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Tech Behind the Warmth: Gemma, Azure, and Synchronized Lyrics
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline:&lt;/strong&gt; &lt;strong&gt;GitHub Actions&lt;/strong&gt; と &lt;strong&gt;ffmpeg&lt;/strong&gt; を組み合わせ、音声を &lt;strong&gt;HLSストリーミング&lt;/strong&gt; 形式へ自動変換しています。&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/p&gt;
  実際のパイプラインでの実装コードを見る
  &lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# mp3応答をOpus高効率高音質に圧縮&lt;/span&gt;
ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; latest.mp3 &lt;span class="nt"&gt;-c&lt;/span&gt;:a libopus &lt;span class="nt"&gt;-b&lt;/span&gt;:a 48k &lt;span class="nt"&gt;-ac&lt;/span&gt; 1 &lt;span class="nt"&gt;-vbr&lt;/span&gt; on latest.opus
&lt;span class="nb"&gt;rm &lt;/span&gt;latest.mp3 

&lt;span class="c"&gt;# 3. ffmpeg で HLS (m3u8) に変換&lt;/span&gt;
&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; docs/stream
ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; latest.opus &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-codec&lt;/span&gt;:a aac &lt;span class="nt"&gt;-b&lt;/span&gt;:a 128k &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-f&lt;/span&gt; hls &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-hls_time&lt;/span&gt; 10 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-hls_list_size&lt;/span&gt; 0 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-hls_segment_filename&lt;/span&gt; &lt;span class="s2"&gt;"docs/stream/data%03d.ts"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  docs/stream/playlist.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Under the hood, this "warm" personality is powered by a robust and modern tech stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Brain:&lt;/strong&gt; &lt;strong&gt;Gemma&lt;/strong&gt; (via Cloudflare Workers AI) handles the persona's logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice:&lt;/strong&gt; &lt;strong&gt;Azure AI Speech&lt;/strong&gt; (&lt;code&gt;ja-JP-KeitaNeural&lt;/code&gt;) gives the AI its human-like "body temperature."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline:&lt;/strong&gt; &lt;strong&gt;GitHub Actions&lt;/strong&gt; and &lt;strong&gt;ffmpeg&lt;/strong&gt; automate the conversion of speech into &lt;strong&gt;HLS streaming&lt;/strong&gt; formats.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The "Karaoke" Innovation:&lt;/strong&gt;&lt;br&gt;
One of the most impressive technical feats is the "Synchronized Lyrics" style frontend. The developer leveraged a unique insight: &lt;strong&gt;TTS (Text-to-Speech) voices have lower temporal jitter than humans.&lt;/strong&gt; This makes speech rhythm highly predictable. By precisely estimating the playback time for each sentence, they implemented a system where text highlights in perfect sync with the audio using &lt;code&gt;hls.js&lt;/code&gt; and &lt;code&gt;Plyr&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;It’s a beautiful example of using technical constraints to create a superior UX.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. The Philosophy of "Balance" (HERO 2001 and Junk Food)
&lt;/h3&gt;

&lt;p&gt;Sustainable creativity requires a lack of stoicism. The logs are filled with "unfiltered" human life: watching classic 2001 dramas, eating &lt;em&gt;Imo-kenpi&lt;/em&gt; (sweet potato sticks), or taking a secret nap when the rain feels just right.&lt;/p&gt;

&lt;p&gt;The Coach's philosophy is simple: &lt;strong&gt;"Healthy eating plus the occasional junk food—that balance is the true 'artistic performance' of life."&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Summary: Take it Step by Step
&lt;/h3&gt;

&lt;p&gt;In our digital lives, we are often told to "move fast and break things." The Exercise Coach suggests a different rhythm: &lt;strong&gt;"Move mindfully and stretch things."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Whether you are battling a "packet jam" near Akihabara station or struggling to finish a video project, remember the Coach's favorite mantra: "Step by step, just like exercising. Effort always pays off!"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How would an "Exercise Coach" narrate your commit history today?&lt;/strong&gt; Maybe it's time to put on your "best gym clothes" (a smile), take a deep breath, and dive back into the code—one stretch at a time.&lt;/p&gt;



&lt;p&gt;&lt;em&gt;Check out the project here:&lt;/em&gt; &lt;a href="https://conversations.harutv.me/" rel="noopener noreferrer"&gt;https://conversations.harutv.me/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://conversations.harutv.me/global" rel="noopener noreferrer"&gt;https://conversations.harutv.me/global&lt;/a&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  &lt;br&gt;
&lt;strong&gt;Note:&lt;/strong&gt; このプロジェクトはGoogleのGemmaを用いた実験的なAI personaであり、医学的なアドバイスを提供するものではありません。日々の開発をちょっと楽しくするための「デジタル・ウェルビーイング」の試みとしてお楽しみください。&lt;br&gt;

&lt;/div&gt;


</description>
      <category>life</category>
      <category>productivity</category>
      <category>japanese</category>
      <category>gemma</category>
    </item>
    <item>
      <title>Introducing the Random Number Generator Function Maker for JavaScript!</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Sat, 29 Jun 2024 04:45:34 +0000</pubDate>
      <link>https://dev.to/sharu2920/introducing-the-random-number-generator-function-maker-for-javascript-4hmf</link>
      <guid>https://dev.to/sharu2920/introducing-the-random-number-generator-function-maker-for-javascript-4hmf</guid>
      <description>&lt;h1&gt;
  
  
  Coding Made Easy: Introducing the Random Number Generator Function Maker for JavaScript!
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You can use it here!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://randommathjavascript.calc.haruharutv.jp/" rel="noopener noreferrer"&gt;https://randommathjavascript.calc.haruharutv.jp/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Technologies Used
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* HTML
* CSS
* JAVASCRIPT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Image of the screen
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdipqu6ce6k2hkmp3vpl.png" alt="image.png" width="779" height="436"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Use
&lt;/h2&gt;

&lt;p&gt;It's very simple. Just open the site, enter the minimum and maximum values, and press the generate button to easily create a random number!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ykrmytsot7qj3s4l03g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ykrmytsot7qj3s4l03g.png" alt="slide1.PNG" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can reference this code in the same way you would use a variable to generate a random number within the specified range!&lt;/p&gt;

&lt;h3&gt;
  
  
  Try It Out
&lt;/h3&gt;

&lt;p&gt;Let's do a quick experiment using the code we mentioned earlier to write some JavaScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your one-time code is &amp;lt;strong id="random"&amp;gt;&amp;lt;/strong&amp;gt;
&amp;lt;script&amp;gt;
document.getElementById("random").innerHTML=Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000;
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fms5dheu9ezann5ygakdy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fms5dheu9ezann5ygakdy.png" alt="スライド" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see that it works well when you run the code like this.&lt;/p&gt;

&lt;h3&gt;
  
  
  Please bookmark it and use it anytime!
&lt;/h3&gt;

&lt;p&gt;We support engineers every day!&lt;/p&gt;

&lt;p&gt;If you find this helpful, please give it a like!&lt;/p&gt;

&lt;p&gt;While UUIDs are generally used for management, if you need to use random numbers, please give it a try! It's easy with just a single line of code! (Although UUIDs can also be easily generated in languages like GAS or server-side languages)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>random</category>
      <category>webdev</category>
    </item>
    <item>
      <title>For those who want to create a site to dynamically display GAS data using Ajax</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Thu, 27 Jun 2024 09:36:45 +0000</pubDate>
      <link>https://dev.to/sharu2920/for-those-who-want-to-create-a-site-to-dynamically-display-gas-data-using-ajax-4b1g</link>
      <guid>https://dev.to/sharu2920/for-those-who-want-to-create-a-site-to-dynamically-display-gas-data-using-ajax-4b1g</guid>
      <description>&lt;p&gt;As the title suggests, this information is for those of you who are planning to create such a site and register it with search engines, or for those of you who are using Ajax to retrieve and display data, but are having trouble getting the content to be visible in the search engine's Webmaster Tools.&lt;/p&gt;

&lt;p&gt;I hope this information will be helpful to those of you who are in the process of gathering information!&lt;/p&gt;

&lt;h1&gt;
  
  
  What is the cause?
&lt;/h1&gt;

&lt;p&gt;Depending on the response format, GAS often uses&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ContentService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createTextOutput&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I think this is used frequently.&lt;br&gt;
Let's say you use this with Ajax(); to retrieve and display content, escaping it, and creating a site. In that case, when using the Search Console, you may see&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd170qg26uq4j3m6b2js4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd170qg26uq4j3m6b2js4.png" alt=" " width="381" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;h3&gt;
  
  
  Are you being blocked by robots.txt?
&lt;/h3&gt;

&lt;p&gt;In conclusion, it is possible that creating a site that directly displays GAS data using Ajax for the purpose of registering with search engines is not recommended.&lt;br&gt;
In other words, the only solution may be to ensure that it is not affected by robots.txt, but I would like to refrain from writing about that method here.&lt;/p&gt;

&lt;p&gt;In other words, that's the specification.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why don't you tell us the solution even though you know the cause?
&lt;/h3&gt;

&lt;p&gt;That's because it hasn't been officially confirmed. If we can't confirm the meaning of robots.txt, it could lead to a major disaster. It's just speculation, but it might be to deal with the possibility of important information being crawled due to a user's inadvertent script settings, considering the domain that manages many scripts (script.google.com). From that perspective, if it's on a per-script basis, it may also be up to each site operator's judgment...&lt;/p&gt;

&lt;h3&gt;
  
  
  Since it's not good to say random things in this kind of article, please read the conclusion.
&lt;/h3&gt;

&lt;p&gt;That was the knowledge article.&lt;/p&gt;

&lt;p&gt;Personally, until the significance of this robots.txt is disclosed officially,&lt;/p&gt;

&lt;h3&gt;
  
  
  I think it's better to refrain from creating it for this purpose.
&lt;/h3&gt;

&lt;p&gt;Even if you do create it,&lt;br&gt;
I think it's good to use it for sites that don't need to be visible to search engines (such as a database search screen) because it is visible to people in the normal browser.&lt;/p&gt;

&lt;p&gt;If there is official information or other information about this, please let me know in the comments.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>gas</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
