<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>nicolas lopes</title>
    <link>https://nicolaslopes.net/</link>
    <description>writing by nicolas lopes</description>
    <language>en</language>
    <atom:link href="https://nicolaslopes.net/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>lifed is born</title>
      <link>https://nicolaslopes.net/writing/lifed-is-born/</link>
      <guid isPermaLink="true">https://nicolaslopes.net/writing/lifed-is-born/</guid>
      <pubDate>Wed, 28 Oct 2026 12:00:00 GMT</pubDate>
      <description>where this site came from, and lifed: a daemon that logs my life so i don't have to.</description>
      <content:encoded><![CDATA[<p>your first question is probably: what is this?</p>
<p>or maybe you clicked around, saw the site just launched, ended up here as there&#39;s not much to explore here yet. fair.</p>
<p>so here&#39;s where the idea came from, and what i want it to become.</p>
<h2 id="2019-part-one"><a data-anchor href="#2019-part-one" aria-label="link to this section"></a>2019, part one</h2>
<p>the year was 2019. I was 15 and hadn&#39;t built anything mature in tech, just toy projects.</p>
<p>the coolest one was a license plate reader that my school actually ended up using. a camera read the plate of an employee&#39;s car, and if it matched, the gate opened on its own. this was before LLMs, so i had to learn everything the hard way, computer vision, a bit of machine learning (k-NN algorithms), and how to get a Raspberry PI talking to other machines.</p>
<p>looking back, there was a lot i just didn&#39;t know. to get the PI talking to a Java app on a desktop i used MQTT and wrote my own system to build and read the messages. a plain HTTP call would have done the job.</p>
<p>and since then this is one lesson that i keep coming back to in any area that i want to put my opinion in:</p>
<aside data-note><p data-label>lesson</p><p>you can only ask for what you have words for.</p>
</aside>
<p>if i had known the simpler option existed, i would have used it. i didn&#39;t know what to ask.</p>
<p>it&#39;s also what i tell anyone asking me whether something is worth learning or building, understand the trade-offs. everything is a trade-off. there&#39;s no silver bullet.</p>
<h2 id="2019-part-two"><a data-anchor href="#2019-part-two" aria-label="link to this section"></a>2019, part two</h2>
<p>the same year i found this post by Stephen Wolfram: <a href="https://writings.stephenwolfram.com/2012/03/the-personal-analytics-of-my-life/">the personal analytics of my life</a>. he&#39;d tracked decades of his own life, with charts for everything:</p>
<ul>
<li>keystrokes</li>
<li>meetings</li>
<li>emails sent and received</li>
<li>steps</li>
</ul>
<p>and a lot more.</p>
<p>i tried to build my own. it didn&#39;t go well. there was much less info out there, Rust hadn&#39;t gone mainstream yet, getting real data out of the OS (and the permissions to do it) was a pain, and i kept switching between Linux and Windows at that time in life, so i would have had to build everything twice.</p>
<p>all that <del>bullshit</del> said... i gave up.</p>
<h2 id="what-this-have-to-do-with-your-own-site"><a data-anchor href="#what-this-have-to-do-with-your-own-site" aria-label="link to this section"></a>what this have to do with your own site?</h2>
<p>two reasons.</p>
<p>first, the itch never went away.</p>
<p>second, i want to learn data for real. big piles of events you slice into charts, not just the same usual crud style thing we keep doing over and over. i had some amount of experience that is enough to know some of the words of this at my last gig. i&#39;ve never set one up from scratch, and i want to understand the basics of data engineering and data science properly. there&#39;s also a fun overlap with product thinking on taking raw data and making it make sense, and making it nice to look at.</p>
<p>so the plan is:</p>
<ol>
<li>capture every data point that I can think of</li>
<li>clean it up and store it properly</li>
<li>build insights on top of it</li>
<li>most important: make it run on autopilot. only the stuff a computer truly can&#39;t see gets logged by hand, so i actually stick with it</li>
</ol>
<p>meet <code>lifed</code>, the life daemon.</p>
<h2 id="lifed"><a data-anchor href="#lifed" aria-label="link to this section"></a><code>lifed</code></h2>
<figure><p>the pipeline: lifed on my laptop, and later my phone, watch and an esp32 board, sends events down a pipe into a kitchen sink, which washes them, splits them into a public half and a private half under a padlocked lid, and drains everything into an olap database. on a cron schedule the public half becomes the pages of this site: charts, posts and numbers.</p><figcaption>only the public half reaches this site</figcaption></figure>
<p>there are two halves.</p>
<p><strong>lifed</strong> is a small program that runs in the background on my machines and records what happens. it launches on macOS only, but its core is built in a way that multiple targets are supported and doesn&#39;t necessarily care what it runs on, so it can later go to Windows, Linux, iOS, Apple Watch, an ESP32, and so on. it&#39;s a small set of primitives for sending events off safely and reliably, and adding new kinds of events is easy.</p>
<p><strong>the sink</strong> receives those events and takes care of them:</p>
<ul>
<li>keeps the data clean</li>
<li>splits what&#39;s public from what&#39;s private, and hides the private stuff</li>
<li>turns raw events into numbers worth looking at</li>
<li>stores it all in an analytics database (not decided yet, probably ClickHouse)</li>
</ul>
<p>the sink is not open to the internet. on a schedule, it rebuilds the charts and pages on this site. that&#39;s what this site is for, at least to start.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
