<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://ronaldpgarcia.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://ronaldpgarcia.com/" rel="alternate" type="text/html" /><updated>2026-12-04T11:32:25+00:00</updated><id>https://ronaldpgarcia.com/feed.xml</id><title type="html">Ronald Garcia</title><subtitle>Personal site of Ronald Garcia — developer and lifelong tinkerer: web, small mobile apps, and electronics.</subtitle><entry><title type="html">An 8×8 LED Matrix That Reports to Drupal</title><link href="https://ronaldpgarcia.com/arduino/drupal/2026/12/02/arduino-led-matrix-reports-to-drupal.html" rel="alternate" type="text/html" title="An 8×8 LED Matrix That Reports to Drupal" /><published>2026-12-02T00:00:00+00:00</published><updated>2026-12-02T00:00:00+00:00</updated><id>https://ronaldpgarcia.com/arduino/drupal/2026/12/02/arduino-led-matrix-reports-to-drupal</id><content type="html" xml:base="https://ronaldpgarcia.com/arduino/drupal/2026/12/02/arduino-led-matrix-reports-to-drupal.html"><![CDATA[<p>On my desk there’s a tiny screen made of 64 LEDs. It scrolls the time, the date, and the current weather, and if a significant earthquake happens anywhere in the world it turns red and beeps.</p>

<p>The part I like most is one you can’t see. Every time it checks for earthquakes, it writes a note to a Drupal site. So when it acts strangely, I don’t need to plug in a USB cable and watch the serial monitor. I just open the log.</p>

<p>Here’s how it fits together.</p>

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

<p>Nothing exotic:</p>

<ul>
  <li><strong>Arduino Uno</strong> with an <strong>Ethernet Shield</strong> (the W5100 kind) for a wired network connection</li>
  <li><strong>WS2812B 8×8 matrix</strong> — 64 individually addressable RGB LEDs on one data pin</li>
  <li><strong>A piezo buzzer</strong> for audible feedback</li>
  <li><strong>A 3D-printed PETG easel</strong> to hold it upright on the desk, which I modeled in CadQuery (Python code that generates CAD models)</li>
</ul>

<p>An 8×8 grid fits about one and a half characters at a time, so everything scrolls. The Adafruit NeoMatrix and GFX libraries handle the text drawing; the sketch just moves the cursor one pixel left every 150 milliseconds and wraps around at the end of the message.</p>

<h2 id="problem-1-the-uno-has-no-clock">Problem 1: the Uno has no clock</h2>

<p>An Arduino Uno knows how many milliseconds have passed since it powered on. It has no idea what time it is.</p>

<p>So once an hour it asks a time server. It sends a 48-byte NTP request over UDP to <code class="language-plaintext highlighter-rouge">pool.ntp.org</code>, reads back the server’s timestamp, and converts it from the NTP epoch (1900) to the Unix epoch (1970). Between checks it simply adds the elapsed <code class="language-plaintext highlighter-rouge">millis()</code> to the last known time.</p>

<p>Then comes the annoying part: daylight saving time. There’s no time-zone library doing the work here, so the sketch decides for itself whether US Eastern time is on EDT or EST:</p>

<div class="language-cpp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// US Eastern DST: starts 2nd Sunday of March at 2AM EST (7AM UTC),</span>
<span class="c1">// ends 1st Sunday of November at 2AM EDT (6AM UTC)</span>
<span class="k">if</span> <span class="p">(</span><span class="n">month</span> <span class="o">&gt;</span> <span class="mi">3</span> <span class="o">&amp;&amp;</span> <span class="n">month</span> <span class="o">&lt;</span> <span class="mi">11</span><span class="p">)</span> <span class="k">return</span> <span class="nb">true</span><span class="p">;</span>
<span class="k">if</span> <span class="p">(</span><span class="n">month</span> <span class="o">&lt;</span> <span class="mi">3</span> <span class="o">||</span> <span class="n">month</span> <span class="o">&gt;</span> <span class="mi">11</span><span class="p">)</span> <span class="k">return</span> <span class="nb">false</span><span class="p">;</span>

<span class="kt">int</span> <span class="n">dow</span> <span class="o">=</span> <span class="n">dayOfWeek</span><span class="p">(</span><span class="n">year</span><span class="p">,</span> <span class="n">month</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
<span class="kt">int</span> <span class="n">firstSun</span> <span class="o">=</span> <span class="p">(</span><span class="n">dow</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="mi">1</span> <span class="o">:</span> <span class="mi">8</span> <span class="o">-</span> <span class="n">dow</span><span class="p">;</span>

<span class="k">if</span> <span class="p">(</span><span class="n">month</span> <span class="o">==</span> <span class="mi">3</span><span class="p">)</span> <span class="p">{</span>
  <span class="kt">int</span> <span class="n">dstStart</span> <span class="o">=</span> <span class="n">firstSun</span> <span class="o">+</span> <span class="mi">7</span><span class="p">;</span> <span class="c1">// 2nd Sunday</span>
  <span class="k">return</span> <span class="p">(</span><span class="n">day</span> <span class="o">&gt;</span> <span class="n">dstStart</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="n">day</span> <span class="o">==</span> <span class="n">dstStart</span> <span class="o">&amp;&amp;</span> <span class="n">hour</span> <span class="o">&gt;=</span> <span class="mi">7</span><span class="p">);</span>
<span class="p">}</span>
<span class="kt">int</span> <span class="n">dstEnd</span> <span class="o">=</span> <span class="n">firstSun</span><span class="p">;</span>         <span class="c1">// 1st Sunday of November</span>
<span class="k">return</span> <span class="p">(</span><span class="n">day</span> <span class="o">&lt;</span> <span class="n">dstEnd</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="n">day</span> <span class="o">==</span> <span class="n">dstEnd</span> <span class="o">&amp;&amp;</span> <span class="n">hour</span> <span class="o">&lt;</span> <span class="mi">6</span><span class="p">);</span>
</code></pre></div></div>

<p><code class="language-plaintext highlighter-rouge">dayOfWeek()</code> is Tomohiko Sakamoto’s algorithm — a well-known one-liner that returns the weekday for any date. With that, the clock switches between UTC−4 and UTC−5 by itself twice a year, and the display shows a 24-hour <code class="language-plaintext highlighter-rouge">HH:MM</code> time followed by the month and day.</p>

<h2 id="problem-2-the-uno-cant-do-https">Problem 2: the Uno can’t do HTTPS</h2>

<p>Weather is the easy one. Every 15 minutes the sketch makes a plain HTTP request to OpenWeatherMap, finds the <code class="language-plaintext highlighter-rouge">"main"</code> condition (Clear, Clouds, Rain…) and the <code class="language-plaintext highlighter-rouge">"temp"</code> value in the response, and scrolls something like <code class="language-plaintext highlighter-rouge">14:05 1-12 | 41F Clouds</code>.</p>

<p>Earthquakes were harder. The earthquake data I wanted is published as GeoJSON over HTTPS, and an Uno with a W5100 shield has nowhere near enough memory to handle TLS.</p>

<p>The fix was to let a server do the heavy lifting. My Drupal site exposes a small <strong>earthquake proxy</strong> endpoint. Every five minutes the Arduino asks it, over plain HTTP, for “significant earthquakes in the past day”:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>GET /api/arduino/earthquake-proxy?mag=significant&amp;period=day
</code></pre></div></div>

<p>Drupal fetches the real feed over HTTPS and hands back the result. The Arduino doesn’t parse JSON in the usual sense — 2KB of RAM doesn’t allow it. Instead it streams the response and uses <code class="language-plaintext highlighter-rouge">client.find()</code> to jump to the first <code class="language-plaintext highlighter-rouge">"place"</code> and <code class="language-plaintext highlighter-rouge">"mag"</code> values. If it finds them, the text turns red, the buzzer plays two tones, and the matrix scrolls something like <code class="language-plaintext highlighter-rouge">M6.1 &lt;location&gt;</code>.</p>

<p>If there’s nothing significant, it stays quiet and keeps showing the time and weather.</p>

<h2 id="the-part-im-happiest-with-logging-to-drupal">The part I’m happiest with: logging to Drupal</h2>

<p>Embedded devices are hard to debug once they’re sitting on a shelf. Serial output only helps when a laptop is plugged in.</p>

<p>So the sketch has a small <code class="language-plaintext highlighter-rouge">sendLogToDrupal()</code> function. It POSTs a JSON message to a custom endpoint on the same Drupal site:</p>

<div class="language-cpp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// Simplified. The real key never goes in a blog post.</span>
<span class="n">client</span><span class="p">.</span><span class="n">println</span><span class="p">(</span><span class="n">F</span><span class="p">(</span><span class="s">"POST /api/arduino/log HTTP/1.1"</span><span class="p">));</span>
<span class="n">client</span><span class="p">.</span><span class="n">println</span><span class="p">(</span><span class="n">F</span><span class="p">(</span><span class="s">"Content-Type: application/json"</span><span class="p">));</span>
<span class="n">client</span><span class="p">.</span><span class="n">print</span><span class="p">(</span><span class="n">F</span><span class="p">(</span><span class="s">"X-API-Key: "</span><span class="p">));</span>
<span class="n">client</span><span class="p">.</span><span class="n">println</span><span class="p">(</span><span class="n">API_KEY</span><span class="p">);</span>
<span class="c1">// ...</span>
<span class="c1">// {"device_id":"weather-matrix-v1","message":"No EQ Msignificant+","level":"info"}</span>
</code></pre></div></div>

<p>Each message carries three things:</p>

<ul>
  <li><strong><code class="language-plaintext highlighter-rouge">device_id</code></strong> — which gadget is talking (this one is <code class="language-plaintext highlighter-rouge">weather-matrix-v1</code>), so more devices can share the same log later</li>
  <li><strong><code class="language-plaintext highlighter-rouge">message</code></strong> — what happened: “Checking EQ”, “EQ: No connect”, “EQ: M5.9 …”</li>
  <li><strong><code class="language-plaintext highlighter-rouge">level</code></strong> — <code class="language-plaintext highlighter-rouge">info</code>, <code class="language-plaintext highlighter-rouge">warning</code> or <code class="language-plaintext highlighter-rouge">error</code>, the same severity idea Drupal’s own logging uses</li>
</ul>

<p>On the Drupal side, the endpoint checks the <code class="language-plaintext highlighter-rouge">X-API-Key</code> header, saves the entry, and answers <code class="language-plaintext highlighter-rouge">200</code> or <code class="language-plaintext highlighter-rouge">201</code>. The sketch waits up to two seconds for that answer and then moves on either way, so a slow server can never freeze the display.</p>

<p>If you’ve built Drupal sites, this will feel familiar: it’s a custom route that accepts a small JSON payload and records it. The only unusual thing is that the “client” is a microcontroller with 2KB of RAM.</p>

<h2 id="why-route-everything-through-my-own-server">Why route everything through my own server</h2>

<p>Putting Drupal in the middle sounds like extra work, but it pays off:</p>

<ul>
  <li><strong>The Arduino stays dumb.</strong> All the hard parts — HTTPS, full JSON parsing, storing history — happen on a server that’s good at them.</li>
  <li><strong>I can change behavior without reflashing.</strong> If the earthquake source changes, I update the proxy, not the firmware.</li>
  <li><strong>There’s a history.</strong> I can see when the device last checked in, when the network dropped, and when it caught a quake.</li>
</ul>

<h2 id="what-id-tell-someone-building-one">What I’d tell someone building one</h2>

<ul>
  <li><strong>Use <code class="language-plaintext highlighter-rouge">millis()</code> timers, not <code class="language-plaintext highlighter-rouge">delay()</code>, for anything slow.</strong> Time, weather, earthquakes and the display each run on their own interval inside <code class="language-plaintext highlighter-rouge">loop()</code>, which keeps the scroll smooth.</li>
  <li><strong>Read responses as a stream.</strong> On an Uno you can’t hold a whole JSON response in memory. <code class="language-plaintext highlighter-rouge">client.find()</code> and reading character by character into small fixed buffers works.</li>
  <li><strong>Give every network call a timeout.</strong> Every request here gives up after a few seconds instead of waiting forever.</li>
  <li><strong>Keep secrets out of version control.</strong> Put API keys in a separate header file that git ignores, so the sketch can be shared safely.</li>
</ul>

<p>It’s a small project, but it’s a nice example of something I enjoy: a cheap piece of hardware doing one job well, with a real web backend quietly supporting it.</p>]]></content><author><name>Ronald Garcia</name></author><category term="arduino" /><category term="drupal" /><summary type="html"><![CDATA[How a small Arduino Uno display keeps time, shows the weather, watches for earthquakes, and sends its logs to a Drupal site.]]></summary></entry><entry><title type="html">Deploying a Jekyll Site to Shared Hosting with GitHub Actions</title><link href="https://ronaldpgarcia.com/jekyll/devops/2026/09/24/deploying-jekyll-shared-hosting-github-actions.html" rel="alternate" type="text/html" title="Deploying a Jekyll Site to Shared Hosting with GitHub Actions" /><published>2026-09-24T00:00:00+00:00</published><updated>2026-09-24T00:00:00+00:00</updated><id>https://ronaldpgarcia.com/jekyll/devops/2026/09/24/deploying-jekyll-shared-hosting-github-actions</id><content type="html" xml:base="https://ronaldpgarcia.com/jekyll/devops/2026/09/24/deploying-jekyll-shared-hosting-github-actions.html"><![CDATA[<p>I wanted a personal site that would outlive whatever trendy host I picked this year.</p>

<p>I already had Namecheap shared hosting sitting there, paid for, mostly empty. Every Jekyll tutorial I found assumed I’d deploy to GitHub Pages or Netlify. Both are fine — but I didn’t want my site’s uptime tied to a platform I might want to leave in two years. Static HTML files on a boring FTP host will still work in a decade. The trick was getting a modern <em>push-to-deploy</em> workflow on top of that boring host.</p>

<p>Here’s what I built.</p>

<h2 id="why-shared-hosting--github-actions">Why shared hosting + GitHub Actions</h2>

<p>Shared hosting gets a bad rap because everyone remembers dragging files around in FileZilla. That part is genuinely miserable. But the <em>hosting</em> itself — a Linux box that serves static files over HTTPS for a few dollars a month — is completely fine for a personal site.</p>

<p>The problem was never the host. It was the deploy step.</p>

<p>GitHub Actions fixes the deploy step. I write a post, commit, push. A workflow spins up, builds the site, and FTPs the output to <code class="language-plaintext highlighter-rouge">/public_html/</code>. Two minutes later it’s live. No FileZilla, no “wait, did I upload the right folder?”, no vendor lock-in. If Namecheap ever annoys me I move the DNS and the site, and the workflow keeps working with a new FTP host.</p>

<h2 id="the-pipeline-in-one-picture">The pipeline in one picture</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Push to GitHub (main branch)
        ↓
GitHub Actions builds the site (~2 minutes)
        ↓
Files uploaded to Namecheap → public_html/
        ↓
ronaldpgarcia.com is live
</code></pre></div></div>

<p>That’s the entire mental model. Everything else is filling in the details.</p>

<h2 id="the-workflow-file">The workflow file</h2>

<p>Here’s the full <code class="language-plaintext highlighter-rouge">.github/workflows/deploy.yml</code>:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">name</span><span class="pi">:</span> <span class="s">Build and Deploy</span>

<span class="na">on</span><span class="pi">:</span>
  <span class="na">push</span><span class="pi">:</span>
    <span class="na">branches</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">main</span><span class="pi">]</span>

<span class="na">jobs</span><span class="pi">:</span>
  <span class="na">build-and-deploy</span><span class="pi">:</span>
    <span class="na">runs-on</span><span class="pi">:</span> <span class="s">ubuntu-latest</span>
    <span class="na">permissions</span><span class="pi">:</span>
      <span class="na">contents</span><span class="pi">:</span> <span class="s">write</span>

    <span class="na">steps</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Checkout code</span>
        <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/checkout@v4</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">fetch-depth</span><span class="pi">:</span> <span class="m">0</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Set up Ruby</span>
        <span class="na">uses</span><span class="pi">:</span> <span class="s">ruby/setup-ruby@v1</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">ruby-version</span><span class="pi">:</span> <span class="s2">"</span><span class="s">3.2"</span>
          <span class="na">bundler-cache</span><span class="pi">:</span> <span class="kc">true</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Set up Node.js</span>
        <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/setup-node@v4</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">node-version</span><span class="pi">:</span> <span class="s2">"</span><span class="s">22"</span>
          <span class="na">cache</span><span class="pi">:</span> <span class="s2">"</span><span class="s">npm"</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Install Node dependencies</span>
        <span class="na">run</span><span class="pi">:</span> <span class="s">npm ci</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Copy USWDS assets</span>
        <span class="na">run</span><span class="pi">:</span> <span class="s">npx gulp copyAll</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Restore custom Sass theme files</span>
        <span class="na">run</span><span class="pi">:</span> <span class="s">git checkout -- _sass/</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Compile USWDS CSS</span>
        <span class="na">run</span><span class="pi">:</span> <span class="s">npx gulp compile</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Build Jekyll site</span>
        <span class="na">run</span><span class="pi">:</span> <span class="s">bundle exec jekyll build</span>
        <span class="na">env</span><span class="pi">:</span>
          <span class="na">JEKYLL_ENV</span><span class="pi">:</span> <span class="s">production</span>

      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Deploy to Namecheap via FTP</span>
        <span class="na">uses</span><span class="pi">:</span> <span class="s">SamKirkland/FTP-Deploy-Action@v4.3.5</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">server</span><span class="pi">:</span> <span class="s">$</span>
          <span class="na">username</span><span class="pi">:</span> <span class="s">$</span>
          <span class="na">password</span><span class="pi">:</span> <span class="s">$</span>
          <span class="na">local-dir</span><span class="pi">:</span> <span class="s">./_site/</span>
          <span class="na">server-dir</span><span class="pi">:</span> <span class="s">/public_html/</span>
          <span class="na">dangerous-clean-slate</span><span class="pi">:</span> <span class="kc">false</span>
          <span class="na">exclude</span><span class="pi">:</span> <span class="pi">|</span>
            <span class="s">**/assets/fonts/**</span>
            <span class="s">**/assets/img/**</span>
            <span class="s">**/assets/js/**</span>
            <span class="s">**/assets/uswds/**</span>
</code></pre></div></div>

<p>A few things are worth walking through, because they’re the parts that took me the longest to figure out.</p>

<p><strong>The two-stage build.</strong> This site uses the U.S. Web Design System, and USWDS isn’t a Jekyll plugin — it’s compiled separately by Gulp <em>before</em> Jekyll runs. So the workflow installs Node, runs <code class="language-plaintext highlighter-rouge">gulp copyAll</code> to pull USWDS’s default assets, then <code class="language-plaintext highlighter-rouge">gulp compile</code> to build my customized Sass into <code class="language-plaintext highlighter-rouge">assets/css/styles.css</code>. Only then does <code class="language-plaintext highlighter-rouge">jekyll build</code> run.</p>

<p><strong>The <code class="language-plaintext highlighter-rouge">git checkout -- _sass/</code> line.</strong> This one bit me for an embarrassingly long time. <code class="language-plaintext highlighter-rouge">gulp copyAll</code> copies USWDS’s <em>default</em> theme files into <code class="language-plaintext highlighter-rouge">_sass/</code>, clobbering the customizations I actually want to ship. Restoring <code class="language-plaintext highlighter-rouge">_sass/</code> from git between <code class="language-plaintext highlighter-rouge">copyAll</code> and <code class="language-plaintext highlighter-rouge">compile</code> puts my theme back in place. If you skip this step your deployed site silently reverts to stock USWDS and you’ll wonder why your fonts look wrong.</p>

<p><strong><code class="language-plaintext highlighter-rouge">SamKirkland/FTP-Deploy-Action</code>.</strong> This is the piece of glue that makes the whole thing work. It reads FTP creds from secrets, uploads <code class="language-plaintext highlighter-rouge">_site/</code> to <code class="language-plaintext highlighter-rouge">/public_html/</code>, and — critically — is smart enough to diff files so it only uploads what changed.</p>

<p><strong><code class="language-plaintext highlighter-rouge">dangerous-clean-slate: false</code>.</strong> The action can optionally wipe the destination folder before uploading. I don’t want that. Shared hosting has other files in <code class="language-plaintext highlighter-rouge">public_html/</code> I don’t want to think about, and a bad deploy shouldn’t be able to nuke the server.</p>

<h2 id="the-gotcha-worth-writing-down">The gotcha worth writing down</h2>

<p>The first version of this workflow re-uploaded every file on every deploy. Deploys took <em>four minutes</em> — most of it USWDS static assets that hadn’t changed since I set the site up. Fonts, icons, the compiled USWDS JavaScript. Megabytes of stuff I was FTP-ing over and over for no reason.</p>

<p>The fix is the <code class="language-plaintext highlighter-rouge">exclude</code> block:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">exclude</span><span class="pi">:</span> <span class="pi">|</span>
  <span class="s">**/assets/fonts/**</span>
  <span class="s">**/assets/img/**</span>
  <span class="s">**/assets/js/**</span>
  <span class="s">**/assets/uswds/**</span>
</code></pre></div></div>

<p>Those directories only change when USWDS itself puts out an update — whenever that is. Not my problem today. Excluding them dropped deploys from four minutes to about forty seconds, which felt a little bit like cheating. My compiled CSS and all the HTML pages still get uploaded on every push — because those <em>do</em> change — but the giant static-asset directories get to sit there undisturbed, like furniture I’ve decided not to rearrange.</p>

<p>The tradeoff: when I <em>do</em> upgrade USWDS, I have to temporarily remove the <code class="language-plaintext highlighter-rouge">exclude</code> block, push once to sync the new assets, then add it back. I wrote that down in <code class="language-plaintext highlighter-rouge">DEPLOYMENT.md</code> in the repo because I know I’ll forget in six months.</p>

<h2 id="secrets-not-files">Secrets, not files</h2>

<p>FTP credentials never touch the repo. Not in <code class="language-plaintext highlighter-rouge">.env</code>, not in the workflow file, not anywhere. They live in GitHub Secrets and get injected at build time:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>gh secret <span class="nb">set </span>FTP_HOST <span class="nt">--body</span> <span class="s1">'ftp.ronaldpgarcia.com'</span> <span class="nt">--repo</span> ron-garcia/ronaldpgarcia-jekyll
gh secret <span class="nb">set </span>FTP_USER <span class="nt">--body</span> <span class="s1">'yourusername'</span>          <span class="nt">--repo</span> ron-garcia/ronaldpgarcia-jekyll
gh secret <span class="nb">set </span>FTP_PASS <span class="nt">--body</span> <span class="s1">'yourpassword'</span>          <span class="nt">--repo</span> ron-garcia/ronaldpgarcia-jekyll
</code></pre></div></div>

<p>Single quotes around the password matter — passwords full of <code class="language-plaintext highlighter-rouge">@</code>, <code class="language-plaintext highlighter-rouge">!</code>, and <code class="language-plaintext highlighter-rouge">$</code> characters will get mangled by the shell if you use double quotes.</p>

<h2 id="what-id-tell-someone-starting-fresh">What I’d tell someone starting fresh</h2>

<ul>
  <li><strong>Shared hosting is fine.</strong> If you already have it, use it. If you don’t, don’t buy it just for this — but don’t rule it out either. It’s cheap, it’s boring, it works.</li>
  <li><strong>GitHub Actions is the right glue.</strong> You get modern deploy ergonomics without giving up the portable output.</li>
  <li><strong>Watch out for the static-asset problem.</strong> If your CSS framework ships a lot of files, exclude the ones that don’t change. Otherwise every deploy pays the full FTP tax.</li>
  <li><strong>Keep the workflow file readable.</strong> You will not touch it for months at a time. When you come back, past-you should be able to figure out what present-you needs to change without reading three blog posts to remember.</li>
</ul>

<p>The end result is a personal site that deploys in under a minute, costs a few dollars a month, and doesn’t depend on any single vendor staying in business. That felt like the right foundation for something I want to still exist in ten years.</p>]]></content><author><name>Ronald Garcia</name></author><category term="jekyll" /><category term="devops" /><summary type="html"><![CDATA[I wanted a personal site that would outlive whatever trendy host I picked this year.]]></summary></entry><entry><title type="html">Talking to Your Website</title><link href="https://ronaldpgarcia.com/ai/web%20development/2026/09/20/talking-to-your-website.html" rel="alternate" type="text/html" title="Talking to Your Website" /><published>2026-09-20T00:00:00+00:00</published><updated>2026-09-20T00:00:00+00:00</updated><id>https://ronaldpgarcia.com/ai/web%20development/2026/09/20/talking-to-your-website</id><content type="html" xml:base="https://ronaldpgarcia.com/ai/web%20development/2026/09/20/talking-to-your-website.html"><![CDATA[<p>Most personal websites die quietly. Not from neglect exactly — from friction.</p>

<p>You set one up, it looks great, and then updating it requires opening a code editor, remembering how the project is structured, pushing to git, waiting for a build. For a developer that’s manageable. For anyone else it’s a wall. Even for developers, that wall is just tall enough to make you think <em>I’ll do it later</em> — and later never comes.</p>

<p>I’ve been thinking about a different approach: what if updating your site was as easy as sending a text message?</p>

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

<p>Static sites are a great foundation. They’re fast, cheap to host, version-controlled, and don’t need a database. The problem is that the editing experience is frozen in the past — you’re expected to know Markdown, understand the folder structure, and feel comfortable in a terminal.</p>

<p>What if you layered an AI on top of that?</p>

<p>The concept is simple: a small local server with a chat interface. You open it in your browser and type what you want:</p>

<blockquote>
  <p><em>“Add a blog post about my trip to Austin”</em><br />
<em>“Add a Contact link to the navigation”</em><br />
<em>“Update my bio to mention that I now work with Python”</em></p>
</blockquote>

<p>The AI reads your site’s current files, understands the structure, makes the edits, and commits them to git with a descriptive message. A CI/CD pipeline picks up the commit and deploys the updated site automatically. From your message to a live update: under two minutes.</p>

<h2 id="why-this-works">Why this works</h2>

<p>The key insight is that a static site’s content is just text files — Markdown, HTML, YAML config. AI is very good at reading and writing structured text. You don’t need a complex CMS with a database and an admin panel. You just need something that can translate plain English into the right file change.</p>

<p>Git gives you a full history of every edit. If the AI misunderstands what you wanted, one click reverts the change. Every update is traceable, reviewable, and reversible — better than most traditional CMS platforms.</p>

<h2 id="what-this-unlocks">What this unlocks</h2>

<p>The interesting part isn’t the technology — it’s the behavior change.</p>

<p>When updating your site takes thirty seconds of typing instead of thirty minutes of setup, you actually do it. You add the blog post. You fix the outdated bio. You document the project you just finished. The site stays alive because the barrier is low enough that it never feels like a chore.</p>

<p>It also means you can update from anywhere. The chat interface runs in a browser. Your phone, a tablet, a borrowed laptop — if you can open a browser, you can update the site. The AI handles the file structure. You just describe what you want.</p>

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

<p>You don’t need much to build this:</p>

<ul>
  <li><strong>A static site generator</strong> (Jekyll, Hugo, Eleventy — anything that builds from text files)</li>
  <li><strong>A free AI API</strong> (Google Gemini has a generous free tier, more than enough for personal use)</li>
  <li><strong>A small Node.js server</strong> to bridge the chat UI and the AI</li>
  <li><strong>Git</strong> for version control and change history</li>
  <li><strong>A CI/CD service</strong> (GitHub Actions is free for public and private repos) to auto-deploy on push</li>
</ul>

<p>The total infrastructure cost for a personal site running this way: close to zero.</p>

<h2 id="the-bigger-idea">The bigger idea</h2>

<p>We spend a lot of time making technology easier to use for end users and very little time making it easier for the people who build and maintain their own corners of the web. The personal website shouldn’t be something you set up once and abandon. It should be a living document — easy enough to update that it actually gets updated.</p>

<p>AI isn’t replacing the developer here. It’s handling the part that was always just friction: knowing which file to edit, what the syntax looks like, where the content lives. You keep the creative control. You just stop fighting the interface.</p>

<p>That feels like the right division of labor.</p>]]></content><author><name>Ronald Garcia</name></author><category term="ai" /><category term="web development" /><summary type="html"><![CDATA[Most personal websites die quietly. Not from neglect exactly — from friction.]]></summary></entry></feed>