<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://pdrweb.pages.dev/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    
    <title>PDRweb</title>
    <link>https://pdrweb.pages.dev/</link>
    <atom:link href="https://pdrweb.pages.dev/feed.xml" rel="self" type="application/rss+xml" />
    <description>My personal site, mostly a blog of my random thoughts.</description>
    <language>it</language>
    <item>
      <title>Switch-to.eu</title>
      <link>https://pdrweb.pages.dev/blog/2026-test-link-esterno/</link><description></description><pubDate>Mon, 13 Jul 2026 02:00:00 +0200</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/2026-test-link-esterno/</guid>
    </item>
    <item>
      <title>This is my third post.</title>
      <link>https://pdrweb.pages.dev/blog/thirdpost/</link><description>&lt;p&gt;Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.&lt;h2 id=code tabindex=-1&gt;Code &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/thirdpost/#code&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=this-is-a-very-long-heading-that-i-want-to-wrap-this-is-a-very-long-heading-that-i-want-to-wrap-this-is-a-very-long-heading-that-i-want-to-wrap-this-is-a-very-long-heading-that-i-want-to-wrap&gt;This is a very long heading that I want to wrap This is a very long heading that I want to wrap This is a very long heading that I want to wrap This is a very long heading that I want to wrap&lt;/h3&gt;&lt;p&gt;Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.&lt;pre class=language-js tabindex=0&gt;&lt;code class=language-js&gt;&lt;span class=&quot;token comment&quot;&gt;// this is a command&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;myCommand&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
	&lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; counter &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
	counter&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// Test with a line break above this line.&lt;/span&gt;
console&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;Test&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=heading-with-a-link&gt;Heading with a &lt;a href=https://pdrweb.pages.dev/blog/thirdpost/#code&gt;link&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.&lt;pre&gt;&lt;code&gt;// this is a command
function myCommand() {
	let counter = 0;
	counter++;
}

// Test with a line break above this line.
console.log(&#39;Test&#39;);&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=section-header tabindex=-1&gt;Section Header &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/thirdpost/#section-header&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Capitalize on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line.</description><pubDate>Sun, 12 Jul 2026 02:00:00 +0200</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/thirdpost/</guid>
    </item>
    <item>
      <title>This is my first post.</title>
      <link>https://pdrweb.pages.dev/blog/firstpost/</link><description>&lt;p&gt;Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.&lt;p&gt;Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.&lt;h2 id=section-header tabindex=-1&gt;Section Header &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/firstpost/#section-header&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Capitalize on low hanging fruit to identify a ballpark value added activity to beta test. Override the digital divide with additional clickthroughs from DevOps. Nanotechnology immersion along the information highway will close the loop on focusing solely on the bottom line.&lt;pre class=language-diff-js tabindex=0&gt;&lt;code class=language-diff-js&gt;&lt;span class=&quot;token unchanged language-js&quot;&gt;&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token comment&quot;&gt;// this is a command&lt;/span&gt;
&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;myCommand&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;token inserted-sign inserted language-js&quot;&gt;&lt;span class=&quot;token prefix inserted&quot;&gt;+&lt;/span&gt;  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; counter &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;token deleted-sign deleted language-js&quot;&gt;&lt;span class=&quot;token prefix deleted&quot;&gt;-&lt;/span&gt;  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; counter &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;token unchanged language-js&quot;&gt;&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;  counter&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/span&gt;
&lt;span class=&quot;token unchanged language-js&quot;&gt;&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token comment&quot;&gt;// Test with a line break above this line.&lt;/span&gt;
&lt;span class=&quot;token prefix unchanged&quot;&gt; &lt;/span&gt;console&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;Test&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description><pubDate>Sun, 12 Jul 2026 02:00:00 +0200</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/firstpost/</guid>
    </item>
    <item>
      <title>How to run a python script with uv in a cron job</title>
      <link>https://pdrweb.pages.dev/blog/how-to-run-a-python-script-with-uv-in-a-cron-job/</link><description>&lt;p&gt;If you are using &lt;a href=https://docs.astral.sh/uv/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;uv&lt;/a&gt; to manage your python dependencies, you may run into difficulties when trying to execute a script from within a cron job, as the virtual environment has to be activated first. If you came for a quick answer, the solution is below. The key points are that you should use the full path to the &lt;code&gt;uv&lt;/code&gt; binary, and that you should use the &lt;code&gt;--project&lt;/code&gt; flag to ensure that the virtual environment is active when running the script. You can find the location of the uv installation by running &lt;code&gt;which uv&lt;/code&gt;.&lt;p&gt;Your crontab would look like this. To open the crontab for editing, run &lt;code&gt;crontab -e&lt;/code&gt;, and it should open in your editor of choice. The below would run every minute (useful for testing). &lt;strong&gt;Change &lt;code&gt;user&lt;/code&gt; to be the user on your computer, and filepaths as appropriate.&lt;/strong&gt;&lt;pre class=language-crontab tabindex=0&gt;&lt;code class=language-crontab&gt;* * * * * /home/user/.local/bin/uv run --project /home/user/code/test-cron /home/user/code/test-cron/main.py&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you are looking for a guide on converting the crontab syntax into easier to understand time periods, you are welcome to use &lt;a href=https://tools.markpitblado.me/crontab-generator target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;this tool&lt;/a&gt;.&lt;h2 id=a-simple-test-script tabindex=-1&gt;A simple test script &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/how-to-run-a-python-script-with-uv-in-a-cron-job/#a-simple-test-script&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;If you are looking for something nice to test with, you can use the code below, which will generate a fictious dataframe and timestamp the output using pointblank&#39;s &lt;a href=https://posit-dev.github.io/pointblank/user-guide/test-data-generation/test-data-generation.html target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;test data generation functionality&lt;/a&gt;. If your cron job is setup successfully, you will see a new csv file created every minute.&lt;pre class=language-python tabindex=0&gt;&lt;code class=language-python&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; pointblank &lt;span class=&quot;token keyword&quot;&gt;as&lt;/span&gt; pb
&lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; datetime &lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; datetime


&lt;span class=&quot;token keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    schema &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Schema&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
        user_id&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;int_field&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;min_val&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; unique&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token boolean&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        name&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;string_field&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;preset&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        email&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;string_field&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;preset&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;email&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        age&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;int_field&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;min_val&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;18&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; max_val&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
        status&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;string_field&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;allowed&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;active&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;pending&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;inactive&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

    df &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;generate_dataset&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;schema&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; n&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; seed&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;23&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    df&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;write_csv&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string-interpolation&quot;&gt;&lt;span class=&quot;token string&quot;&gt;f&quot;/home/user/test-cron/test-table-generated-at-&lt;/span&gt;&lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;datetime&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;now&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;.csv&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;


&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; __name__ &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;__main__&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    main&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=managing-cron-jobs-easily tabindex=-1&gt;Managing cron jobs easily &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/how-to-run-a-python-script-with-uv-in-a-cron-job/#managing-cron-jobs-easily&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;If you are looking for something more user friendly than editing the crontab directly, consider &lt;a href=https://github.com/antoniorodr/Cronboard target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;cronboard&lt;/a&gt; which will give you a nice TUI to view existing jobs, and some handy shortcuts when entering new jobs, such as &lt;code&gt;@daily&lt;/code&gt; and &lt;code&gt;@weekly&lt;/code&gt;. Of course, it will also pick up existing cronjobs, like the test one created above.&lt;h2 id=conclusion tabindex=-1&gt;Conclusion &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/how-to-run-a-python-script-with-uv-in-a-cron-job/#conclusion&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;That&#39;s it, a short blog post but one that I hope helps the next person looking for the solution to this particular problem.</description><pubDate>Tue, 30 Jun 2026 02:00:00 +0200</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/how-to-run-a-python-script-with-uv-in-a-cron-job/</guid>
    </item>
    <item>
      <title>Renting vs Owning in the digital era</title>
      <link>https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/</link><description>&lt;link rel=preconnect href=https://fonts.bunny.net/&gt;&lt;link href=&quot;https://fonts.bunny.net/css?family=amita:400&quot; rel=stylesheet&gt;&lt;p&gt;Many of my friends have recently started getting involved in blogging or podcasting, in what I would argue is a larger trend towards shifting away from Instagram photos into longer form content. Some are looking to collect payment so that they can dedicate more time to something they are passionate about. Looking from the outside in, I can&#39;t help but notice that there are a lot of businesses trying to get a handful of the revenue from individual creators. When viewed in isolation, at first glance, these services seem cheap. Taken together, over the long term, they really begin to add up. I&#39;ve always been fascinated by the math of renting vs owning in real-estate, and was curious about how this same concept could apply in the digital world.&lt;p&gt;...&lt;p&gt;When I first started this blog back in 2022, I briefly set it up through &lt;a href=https://ghost.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Ghost&lt;/a&gt;. I had a nice custom domain, and publishing through the built-in content editor was easy enough. Paying $9.99 USD per month (the price back then) was the only part that felt &lt;em&gt;painful&lt;/em&gt;. I didn&#39;t have any intention of charging people for subscriptions, but I can imagine if I did that it would be difficult to be excited about something meant to make me money when I felt like I was spending so much right from the start.&lt;p&gt;You might argue that $9.99 isn&#39;t a ton of money, and you would probably be right for the majority of people. Yet, as Daniel Kahneman points out in &lt;a href=https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Thinking Fast and Slow&lt;/a&gt;, losses hurt a lot more than we give them credit for. There is an immense bias towards free, and this bias weighs heavily on us when we are just getting started with something new.&lt;p&gt;So, let&#39;s say instead I went with &lt;a href=https://substack.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Substack&lt;/a&gt;, an option that doesn&#39;t cost anything to setup. Over time the allure of free would come back to bite me; as soon as I hit 15 paying subscribers (assuming each is paying $10 a month) I&#39;ve crossed the break-even threshold. If I grow even further, at 1000 subscribers, I would be paying Substack $1000 dollars a month (1000 x $10 revenue per subscriber * 0.1 = fee), compared to $15 for something like Ghost. As the number of readers grow &lt;em&gt;the fee only gets worse&lt;/em&gt;. The biggest trick that Substack managed to pull off was to couple this loss with my feeling of success from getting more readers, so I never notice it. They &quot;grow with me&quot;. Instead of owning the platform I&#39;m creating through, I&#39;m renting a plot of digital land (quite literally, if you are using a subdomain of &lt;a href=http://substack.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;substack.com&lt;/a&gt;). The landlord knows how much money I am bringing in, and knows how to capitalize on my excitement.&lt;h2 id=the-difficulty-of-discoverability tabindex=-1&gt;The difficulty of discoverability &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#the-difficulty-of-discoverability&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;A free price tag isn&#39;t the only thing that many mainstream platforms have going for them. The second biggest reason why services like Substack and Spotify have such a gigantic gravitational pull is through discoverability. People want to be where everyone else is, so that they get discovered through feeds or recommended by an algorithm. Casey Newton, &lt;a href=https://www.platformer.news/why-platformer-is-leaving-substack/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;in a post about leaving Substack&lt;/a&gt;, highlights just how important these factors are towards Substack&#39;s overall value proposition:&lt;blockquote&gt;&lt;p&gt;Substack’s aspirations now go far beyond web hosting. It touts the value of its network of publications as a primary reason to use its product, and has built several tools to promote that network. It encourages writers to recommend other Substack publications. It sends out a weekly digest of publications for readers to consider subscribing to. And last year it launched a Twitter-like social network called Notes that highlights posts from around the network, regardless of whether you follow those writers or not.&lt;/blockquote&gt;&lt;p&gt;On the podcasting side, Spotify has recently introduced &lt;a href=https://support.spotify.com/us/artists/article/getting-started-with-display-campaigns/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;the ability to pay money to advertise your content further&lt;/a&gt;, in addition to the natural discoverability to being on the platform. Many podcasts will also take out ads on other podcasts. It is more likely that an audience member will convert to your podcast if they already have the same app open, as opposed to going to a website or opening up a different platform.&lt;p&gt;Discoverability clearly matters. There are a lot of very smart people that are paying Substack thousands of dollars to stay in that loop. One point I would like to argue is that there are other ways that you can grow something like a blog or podcast organically, and keep greater control over what you create in the process. The only algorithm this blog is found through is through the open internet, and it gets around 5000 views a month. Active subscribers would be a different category, but existing in a feed is certainly not a requirement for something being valuable to some people. For smaller publications with a sole writer, you are much more likely to get paid subscriptions from those that already know you and want to support your work. Word of mouth can go a long way, with the added advantage of not having to stress about how an algorithm is behaving on any given day.&lt;h2 id=what-owning-your-platform-looks-like tabindex=-1&gt;What owning your platform looks like &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#what-owning-your-platform-looks-like&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;As opposed to real estate, in which owning versus renting exists on a binary scale, owning content or a brand digitally exists on a gradient scale.&lt;p&gt;Renting:&lt;ul&gt;&lt;li&gt;Cheap at first, expensive at scale&lt;li&gt;Low control&lt;li&gt;Convenient&lt;/ul&gt;&lt;p&gt;Owning:&lt;ul&gt;&lt;li&gt;Expensive at first, cheaper at scale&lt;li&gt;Flexible&lt;li&gt;Complex, you take on more responsibility&lt;/ul&gt;&lt;p&gt;As an extreme example on the owning end, someone would run a blog or podcast off of a computer they have in their house. The further you move along the gradient towards ownership, the closer your costs will be to the minimum required to run the service. If convenience is still a big factor for you—and it is for many people—there are many steps along the way that can move a publication from renting to owning, and don&#39;t require a ton of technical expertise.&lt;h3 id=get-your-own-domain&gt;Get your own domain&lt;/h3&gt;&lt;p&gt;If I had one suggestion on how to increase ownership over what you write or make, it would be to get your own domain. When you use a subdomain of another platform (i.e. &lt;a href=http://yourname.substack.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;yourname.substack.com&lt;/a&gt;), you are building a reputation on something you ultimately don&#39;t control. You can&#39;t take the substack domain with you if you decide to leave. If a service doesn&#39;t let you use your own domain, think very carefully before building a business/brand/idea on someone else&#39;s lawn.&lt;h2 id=consider-outsourcing-the-tricky-parts-of-a-solution-you-would-control tabindex=-1&gt;Consider outsourcing the tricky parts of a solution you would control &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#consider-outsourcing-the-tricky-parts-of-a-solution-you-would-control&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;For this category I&#39;ll use &lt;a href=https://linktr.ee/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;linktree&lt;/a&gt;, a popular tool used by creators to bundle various links on a single page, as an example. At its core, linktree is serving a single static webpage, something that is incredibly easy to do in 2026. Instead of paying $6 a month, asking a friend or contractor to set this up for $100 would save you money after just 1.5 years. You also wouldn&#39;t have to pay any fees for transactions, which could save you hundreds or even thousands of dollars depending on the volume of sales.&lt;h2 id=watch-out-for-effects-that-lock-you-in tabindex=-1&gt;Watch out for effects that lock you in &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#watch-out-for-effects-that-lock-you-in&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Companies love nothing more than when you feel you can&#39;t move away from their service without losing your business. Instagram would be a great example of this, you can&#39;t port your followers over to another platform&lt;sup class=footnote-ref&gt;&lt;a href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#fn1 id=fnref1&gt;[1]&lt;/a&gt;&lt;/sup&gt;. Spotify followers also can&#39;t be easily ported out. In contrast, if you control the location where your content lives, you can redirect or move fluidly between services as you like, and your audience will probably not even know that it happened.&lt;hr&gt;&lt;p&gt;There are many success stories of publications and brands that have forged ahead independently. &lt;a href=https://404media.co/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;404media&lt;/a&gt; runs on Ghost, and &lt;a href=https://www.404media.co/404-media-now-has-a-full-text-rss-feed/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;has contributed to expanding the capabilities of the platform&lt;/a&gt; so that other independent outlets have more functionality to work with. &lt;a href=https://www.mollywhite.net/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Molly White&lt;/a&gt; has built &lt;a href=https://www.citationneeded.news/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;citation needed&lt;/a&gt; on &lt;a href=https://www.citationneeded.news/substack-to-self-hosted-ghost/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;a self-hosted instance of Ghost&lt;/a&gt;. For podcast distribution, &lt;a href=https://latenightlinux.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Late Night Linux&lt;/a&gt; is a great example of setting up a webpage with all the podcast episodes. For managing an email list, options like &lt;a href=https://buttondown.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Buttondown&lt;/a&gt; can help replace the email functionality from the big providers if you do choose to go with a different blog setup.&lt;p&gt;When more people own what they build, it takes away harmful monopoly power from the big players that can drive up prices and dull innovation. It also allows for greater individual expression and creativity. Substack only provides a small selection of fonts or layouts to pick from. Compare that to something like the homepage for &lt;a href=https://enscribe.dev/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;enscribe.dev&lt;/a&gt;. The difference in possibility is night and day.&lt;p&gt;I&#39;m excited that many people I know are thinking of starting a blog or a podcast. I hope that through breaking down assumptions about how hard owning your work can be, they can keep more of the revenue they bring in. Sustaining an independent publication is tough work even for the best writers. After putting in effort to write something worth reading, or recording something worth listening to, why should you give over that value? While stressful at first, being able to change your font whenever you like, &lt;span style=font-family:Amita,handwriting&gt;is a great feeling.&lt;/span&gt;&lt;hr class=footnotes-sep&gt;&lt;section class=footnotes&gt;&lt;ol class=footnotes-list&gt;&lt;li id=fn1 class=footnote-item&gt;&lt;p&gt;There was a brief moment when Instagram/Threads was considering fully federating with other platforms like Mastodon and Pixelfed, however that dream died like most Meta projects do. &lt;a href=https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/#fnref1 class=footnote-backref&gt;↩︎&lt;/a&gt;&lt;/ol&gt;&lt;/section&gt;</description><pubDate>Fri, 05 Jun 2026 02:00:00 +0200</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/renting-vs-owning-in-the-digital-era/</guid>
    </item>
    <item>
      <title>Privacy-focused companies still have to follow the law</title>
      <link>https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/</link><description>&lt;p&gt;On March 5th, 404Media published &lt;a href=https://www.404media.co/proton-mail-helped-fbi-unmask-anonymous-stop-cop-city-protestor/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Proton Mail Helped FBI Unmask Anonymous ‘Stop Cop City’ Protester&lt;/a&gt;, which generated a lot of discussion both online and in the comments of the article itself. This is a complex case, but I want to state some things before diving in. First, the headline appears to be quite misleading. Proton provided information about payment processing to the Swiss government after being legally compelled to do so. The Swiss government then provided the information to the United States FBI. At no point did Proton interact with the FBI directly, and saying that Proton helped them implies both intent and direct interaction. Second, Proton &lt;a href=https://proton.me/support/payment-options target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;lays out methods to avoid this scenario, specifically the option to pay in cash&lt;/a&gt;, much in the way that they &lt;a href=https://proton.me/blog/climate-activist-arrest target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;describe options for prevent IP addresses from being logged&lt;/a&gt;. The facts presented in the article are also not that novel, Proton (specifically Proton Mail) had &lt;a href=https://proton.me/legal/transparency target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;9301 legal orders in 2025&lt;/a&gt;. They contested 988 and complied with 8,313.&lt;p&gt;&lt;a href=https://proton.me/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Proton&lt;/a&gt; is a company, it makes good decisions and bad decisions, and by no means am I trying to say they are perfect. There are other options in the space, such as &lt;a href=https://tuta.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Tuta&lt;/a&gt;, that I also have the same feelings towards (they make both good and bad decisions). What I believe is most important from this event, and from the article, is to the understand what choices &lt;em&gt;all&lt;/em&gt; companies face.&lt;h2 id=privacy-and-anonymity-are-not-the-same tabindex=-1&gt;Privacy and Anonymity are not the same &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#privacy-and-anonymity-are-not-the-same&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;There is &lt;a href=https://neat.tube/w/4SmJxn7Q2XRp7ZGDCxvNUV target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;a great video by Privacy Guides&lt;/a&gt; that goes into why privacy and anonymity are the not the same. The video defines the terms as follows:&lt;blockquote&gt;&lt;p&gt;Privacy: The assurance that your data is only seen by the parties you intend to view it.&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;Anonymity: The ability to act without a persistent identifier.&lt;/blockquote&gt;&lt;p&gt;Anonymity is a lot harder to achieve than privacy, you have to keep two worlds (a digital identity and your actual identity) completely separate, never allowing the two to meet. For most, that is an incredibly hard thing to do.&lt;p&gt;Most privacy-focused companies have mechanisms in place to limit the amount of data they can provide, usually through &lt;a href=https://proton.me/learn/encryption/types-of-encryption/what-is-end-to-end target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;end-to-end encryption&lt;/a&gt;, thereby providing privacy. The company can ensure that this is functioning without any action from the user. Anonymity, on the other hand, is harder for the company to guarantee. As soon as you connect to any of their servers, you will have sent your IP address (whether that is your actual IP address, or the IP of a proxy, depends on how you chose to connect). There are specifics in Switzerland around how the law treats VPNs compared to other services, but broadly speaking, if you connect to a service you should assume the IP address you are coming from can be obtained.&lt;h2 id=jurisdictions-matter tabindex=-1&gt;Jurisdictions matter &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#jurisdictions-matter&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Which jurisdiction a company operates in defines which laws and regulations it must follow. As such, there is a lot of debate around said jurisdictions in privacy circles. &lt;a href=https://tuta.com/blog/data-privacy-germany target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Tuta has explained why they believe Germany to be one of the best legal systems to operate in&lt;/a&gt;, &lt;a href=https://proton.me/blog/switzerland target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Proton makes the case for Switzerland&lt;/a&gt;. When thinking about jurisdictions, there are two things to keep in mind. First, the analysis is dynamic; laws, governments, and regulations change all the time, and what might have been a stellar choice five years ago is no longer a good pick. Second, there is no way to operate outside of the bounds of any law (and remain a lawful company), so lawful companies look to pick the &lt;em&gt;least bad&lt;/em&gt; option&lt;sup class=footnote-ref&gt;&lt;a href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#fn1 id=fnref1&gt;[1]&lt;/a&gt;&lt;/sup&gt;.&lt;p&gt;As is evident in this case, the partnerships and relationships that a jurisdiction has also matter. If I setup a company in New Zealand, it is reasonable to assume that members of the Five Eyes will have easier mechanisms to request data than, say, Madagascar. In contrast to when a company is served by a valid legal order, and may have limited or exhausted options for appeal, these agreements usually operate on a case by case basis. If one jurisdiction truly feels that a request is more than they are comfortable with, they could attempt to push back.&lt;h2 id=choices-when-faced-with-a-valid-legal-order tabindex=-1&gt;Choices when faced with a valid legal order &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#choices-when-faced-with-a-valid-legal-order&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When faced with a valid legal order to do something, both companies and individuals are presented with a choice—follow the order, or don&#39;t. While that seems obvious, the consequences of deciding to take the second option are often overlooked. If the law is refused, that&#39;s the last stand, the company is choosing to cease operating in that jurisdiction and employees and leaders face the possibility of civil or even criminal punishment. Note that this is distinct from &lt;em&gt;contesting&lt;/em&gt; an order, in which a company may try to push back either informally by writing a response to the agency submitting the order, or asking courts to block an order. Contesting is still done within the legal system. The ability to contest will be dependent on the mechanism that was used to serve the request, and may vary by jurisdiction.&lt;p&gt;There are moments, especially as we look throughout history, in which we have an expectation for a company to make that stand. Recently, companies like Signal &lt;a href=https://www.techradar.com/computing/cyber-security/we-will-not-walk-back-signal-would-rather-leave-the-uk-and-sweden-than-remove-encryption-protections target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;have stated they would cease operating in the United Kingdom if particular laws were enacted&lt;/a&gt;. I simply want to emphasize the gravity of that choice, it really is a choice you can only make once, not on a case by case basis. If a company exits before the law is enacted, they can always return if it is changed in the future. If a company defies a current law, punishments are likely more severe and immediate.&lt;h2 id=why-is-all-of-this-important tabindex=-1&gt;Why is all of this important &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#why-is-all-of-this-important&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;It is imperative to accurately convey what levels of privacy and protections are offered by a service, and what levels are not. Most individuals are looking for a simple answer when picking a privacy-focused service, mainly: &quot;will I be safe when using it&quot;. The next key question to ask is &quot;safe from what?&quot;. If &lt;em&gt;using&lt;/em&gt; a service is illegal in my country (or I am conducting illegal activity through the service in an identifiable way), then I would want anonymity when using it. If I only care about the information stored with the service being protected, then I want privacy. When there are instances in which information about a user has been revealed, we need to consider the mechanism. Was the company breached at a technical level? Did someone inside the company leak the information? Did a legal order force the company to act? Each of these will have different consequences on the answer on what to do next.&lt;p&gt;Illegal doesn&#39;t always mean what someone is doing is morally bad, nor does something being legal guarantee that it is good, especially as we consider all the governments and legal systems around the world. This is part of the reason why laws change over time, as we evaluate what we want society to look like. However, expecting companies to defy the laws in the jurisdiction in which they operate is unrealistic, and on the whole would be a net negative.&lt;hr class=footnotes-sep&gt;&lt;section class=footnotes&gt;&lt;ol class=footnotes-list&gt;&lt;li id=fn1 class=footnote-item&gt;&lt;p&gt;The same thing could be said about taxes, companies have to pay taxes somewhere, so they look to the country through which they feel they can get the lowest taxes. &lt;a href=https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/#fnref1 class=footnote-backref&gt;↩︎&lt;/a&gt;&lt;/ol&gt;&lt;/section&gt;</description><pubDate>Sat, 07 Mar 2026 01:00:00 +0100</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/privacy-focused-companies-still-have-to-follow-the-law/</guid>
    </item>
    <item>
      <title>Validating data with pointblank in python</title>
      <link>https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/</link><description>&lt;p&gt;Nothing is more gut-wrenching than realizing that there is an error in a dataset that was used to make a critical decision. Team members may start scrambling and ask questions like:&lt;ul&gt;&lt;li&gt;Does this change the conclusion of the analysis?&lt;li&gt;Will people think the entire analysis is wrong?&lt;li&gt;How did this mistake happen, and who is to blame?&lt;/ul&gt;&lt;p&gt;Once these questions are answered, there really isn&#39;t a solution for how to do better next time aside from &quot;be more careful&quot;. As all humans make mistakes, nothing changes and the cycle repeats after the quadruple check reverts to a double check. Fortunately, machines are really good at reviewing massive amounts of information in short periods of times, and one recently released library for R and Python is built around exactly this process.&lt;p&gt;&lt;a href=https://posit-dev.github.io/pointblank/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Pointblank&lt;/a&gt; is supported by &lt;a href=&quot;https://posit.co/?utm_source=posit-dev.github.io%2Fpointblank&amp;utm_medium=referral&amp;utm_content=supported-by-posit&quot; target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Posit&lt;/a&gt;, the same folks behind R Studio, and Positron. The purpose of Pointblank is to define a set of checks that a dataset must pass, and then produce useful validation reports that can be reviewed by an analyst.&lt;h2 id=installing-pointblank tabindex=-1&gt;Installing Pointblank &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/#installing-pointblank&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Pointblank runs as a library that you import into a python script. It is available through &lt;a href=https://pypi.org/project/pointblank/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;pypi&lt;/a&gt; and can therefore be installed through &lt;code&gt;pip&lt;/code&gt; or &lt;code&gt;uv&lt;/code&gt;.&lt;p&gt;If you are using &lt;code&gt;uv&lt;/code&gt;, install it in your python project with&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;uv &lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt; pointblank&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you are using &lt;code&gt;pip&lt;/code&gt;, you can install with&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;pip &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; pointblank&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Pointblank works with both &lt;a href=https://pandas.pydata.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;pandas&lt;/a&gt; or &lt;a href=https://pola.rs/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;polars&lt;/a&gt;. If you haven&#39;t tried polars yet, I would recommend giving it a go. I find the API to be a lot more intuitive once you get used to it, in comparison to pandas.&lt;h2 id=common-workflows tabindex=-1&gt;Common workflows &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/#common-workflows&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;I&#39;ll provide an example using &lt;a href=https://www.kaggle.com/datasets/likithagedipudi/starbucks-customer-ordering-patterns target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;a dataset that simulates Starbucks ordering patterns from Kaggle&lt;/a&gt;. We first load the dataframe into python as a dataframe.&lt;pre class=language-python tabindex=0&gt;&lt;code class=language-python&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; pointblank &lt;span class=&quot;token keyword&quot;&gt;as&lt;/span&gt; pb
&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; polars &lt;span class=&quot;token keyword&quot;&gt;as&lt;/span&gt; pl


&lt;span class=&quot;token keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    df &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; pl&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;read_csv&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;input_data/input-data.csv&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;df&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;


&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; __name__ &lt;span class=&quot;token operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;__main__&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    main&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Running &lt;code&gt;uv run main.py&lt;/code&gt; then prints out our dataframe as expected.&lt;p&gt;Next, we just add some validation steps to make sure the columns are setup for analysis. Note that we can use some features of polars to reduce the amount of work we need to do with pointblank. Since polars has alrady identified the type of some columns, we don&#39;t need to verify that those types can apply to all rows. Polars would have produced an error if it got to a row that didn&#39;t match the type it guessed the column should be based on the first 1000 rows&lt;sup class=footnote-ref&gt;&lt;a href=https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/#fn1 id=fnref1&gt;[1]&lt;/a&gt;&lt;/sup&gt;&lt;p&gt;One of the most common and most annoying problems is when an id column doesn&#39;t have unique values. We can check that both &lt;code&gt;customer_id&lt;/code&gt; and &lt;code&gt;order_id&lt;/code&gt; contain unique values through a simple validation, then show the results in a validation report.&lt;pre class=language-python tabindex=0&gt;&lt;code class=language-python&gt;&lt;span class=&quot;token keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    df &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; pl&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;read_csv&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;input_data/input-data.csv&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;# Are customer and order ids unique?&lt;/span&gt;
    validation &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
        pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Validate&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;data&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;df&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;rows_distinct&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;columns_subset&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;customer_id&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;order_id&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;interrogate&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    validation&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;get_tabular_report&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;show&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The idea is that you can keep adding additional validation checks and have everything run in a single step. The report above then contains one row for each of your checks. You can use Pointblank to compare columns with each other, compare to specific values, or check that a column fits a regex pattern. For a full list of all the validation methods available, consult the &lt;a href=https://posit-dev.github.io/pointblank/user-guide/validation-methods.html target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;validation methods documentation&lt;/a&gt;.&lt;p&gt;Another common request is to check for the distribution of missing data within a dataset. Pointblank makes this easy with &lt;code&gt;missing_values_tbl&lt;/code&gt;&lt;pre class=language-python tabindex=0&gt;&lt;code class=language-python&gt;&lt;span class=&quot;token keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    df &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; pl&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;read_csv&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;input_data/input-data.csv&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;# Check that some basic assumptions about the columns are met&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;# Are customer and order id&#39;s unique?&lt;/span&gt;
    validation &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
        pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Validate&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;data&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;df&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;rows_distinct&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;columns_subset&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;customer_id&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;order_id&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;interrogate&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    validation&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;get_tabular_report&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;show&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;# How are missing values distributed?&lt;/span&gt;
    pb&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;missing_vals_tbl&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;df&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;show&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will show us a report in the browser similar the valudation report we ran before. Since we are using a synthetic dataset, there are no missing values.&lt;h2 id=using-pointblank-in-automated-pipelines tabindex=-1&gt;Using pointblank in automated pipelines &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/#using-pointblank-in-automated-pipelines&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;While manually inspecting data is fun, the main point of this exercise is to automatically catch errors in our data, and most automation will happen in CI/CD pipelines. Here Pointblank brings a command-line interface that behaves similarly to how Pointblank works in a python script.&lt;p&gt;First, make sure that Pointblank is available through the commandline with &lt;code&gt;pb --version&lt;/code&gt;. If you installed with &lt;code&gt;pip&lt;/code&gt; globally, then it should be available no problem. If you installed with &lt;code&gt;uv&lt;/code&gt;, you can either use &lt;code&gt;uv run pb&lt;/code&gt; within the project directory, or install the tool globally with &lt;code&gt;uv tool install pointblank&lt;/code&gt;&lt;p&gt;Next, let&#39;s try to run the same uniqueness check we ran in the python script, but this time straight from the shell. Note that polars or pandas need to also be available in whatever environment you are running the command. If you install Pointblank globally then you will also need to install pandas or polars globally as well. I would recommend using uv to keep things tidy.&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;uv run pb validate &lt;span class=&quot;token string&quot;&gt;&#39;input_data/input-data.csv&#39;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--check&lt;/span&gt; rows-distinct &lt;span class=&quot;token parameter variable&quot;&gt;--column&lt;/span&gt; customer_id&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In a CI pipeline, you can use &lt;code&gt;--exit-code&lt;/code&gt; so that Pointblank will exit with a non-zero code if &lt;em&gt;any&lt;/em&gt; check fails.&lt;hr class=footnotes-sep&gt;&lt;section class=footnotes&gt;&lt;ol class=footnotes-list&gt;&lt;li id=fn1 class=footnote-item&gt;&lt;p&gt;This value, 1000 rows, is configurable through &lt;code&gt;infer_schema_length&lt;/code&gt; when using &lt;code&gt;read_csv&lt;/code&gt;. &lt;a href=https://docs.pola.rs/api/python/stable/reference/api/polars.read_csv.html target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Polars documentation&lt;/a&gt; &lt;a href=https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/#fnref1 class=footnote-backref&gt;↩︎&lt;/a&gt;&lt;/ol&gt;&lt;/section&gt;</description><pubDate>Tue, 03 Mar 2026 01:00:00 +0100</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/validating-data-with-pointblank-in-python/</guid>
    </item>
    <item>
      <title>Self-host an ebook library with kobo and library integration</title>
      <link>https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/</link><description>&lt;p&gt;Self-hosting an e-book library was always on my radar, but there never seemed to be a solution that checked all the boxes. Mainly, I wanted the ability to read books from my Kobo (not sure if they are only a Canadian thing, they are similar to a Kindle in many ways), &lt;em&gt;and&lt;/em&gt; be able to still borrow books from the library. &lt;a href=https://booklore.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Booklore&lt;/a&gt; seemed to accomplish all of this. While Booklore doesn&#39;t have a cloud offering, it is super easy to get setup on a spare computer or VPS. You can also get it through &lt;a href=https://www.pikapods.com/apps target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;pikapods&lt;/a&gt; if you want the benefits of self-hosting without having to have a machine ready to go.&lt;h2 id=setup tabindex=-1&gt;Setup &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#setup&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Booklore can be setup through &lt;a href=https://www.docker.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Docker&lt;/a&gt;. I&#39;ll outline a docker compose setup here, which you can then use to get setup from a single file once you have docker installed. There are 4 main steps to getting everything working:&lt;ol&gt;&lt;li&gt;Create the required directories (you don&#39;t have to use &lt;code&gt;~/booklore&lt;/code&gt;, use whichever location you prefer.&lt;/ol&gt;&lt;pre class=language-bash tabindex=0&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-p&lt;/span&gt; ~/booklore/mariadb/config
&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-p&lt;/span&gt; ~/booklore/data
&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-p&lt;/span&gt; ~/booklore/books
&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-p&lt;/span&gt; ~/booklore/bookdrop&lt;/code&gt;&lt;/pre&gt;&lt;ol start=2&gt;&lt;li&gt;Create an &lt;code&gt;.env&lt;/code&gt; file. This is where you store the configuration details for the database. The two variables you may wish to change are the timezone or the port.&lt;/ol&gt;&lt;pre class=language-env tabindex=0&gt;&lt;code class=language-env&gt;APP_USER_ID=0
APP_GROUP_ID=0
TZ=Etc/UTC
BOOKLORE_PORT=6060

# Database Connection (BookLore)
DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore
DB_USER=booklore
DB_PASSWORD=CHANGE_ME

# MariaDB Container Settings
DB_USER_ID=1000
DB_GROUP_ID=1000
MYSQL_ROOT_PASSWORD=CHANGE_ME_AS_WELL
MYSQL_DATABASE=booklore&lt;/code&gt;&lt;/pre&gt;&lt;ol start=3&gt;&lt;li&gt;Create the &lt;code&gt;compose.yml&lt;/code&gt; file&lt;/ol&gt;&lt;pre class=language-yaml tabindex=0&gt;&lt;code class=language-yaml&gt;&lt;span class=&quot;token key atrule&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token key atrule&quot;&gt;booklore&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; booklore/booklore&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;latest
    &lt;span class=&quot;token key atrule&quot;&gt;container_name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; booklore
    &lt;span class=&quot;token key atrule&quot;&gt;environment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; USER_ID=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;APP_USER_ID&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; GROUP_ID=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;APP_GROUP_ID&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; TZ=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;TZ&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; DATABASE_URL=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DATABASE_URL&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; DATABASE_USERNAME=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_USER&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; DATABASE_PASSWORD=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_PASSWORD&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; BOOKLORE_PORT=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;BOOKLORE_PORT&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;depends_on&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token key atrule&quot;&gt;mariadb&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;token key atrule&quot;&gt;condition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; service_healthy
    &lt;span class=&quot;token key atrule&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;${BOOKLORE_PORT}:${BOOKLORE_PORT}&quot;&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;volumes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./data&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/app/data
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./books&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/books
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./bookdrop&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/bookdrop
    &lt;span class=&quot;token key atrule&quot;&gt;restart&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; unless&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;stopped

  &lt;span class=&quot;token key atrule&quot;&gt;mariadb&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; lscr.io/linuxserver/mariadb&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;11.4.5
    &lt;span class=&quot;token key atrule&quot;&gt;container_name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; mariadb
    &lt;span class=&quot;token key atrule&quot;&gt;environment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; PUID=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_USER_ID&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; PGID=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_GROUP_ID&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; TZ=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;TZ&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; MYSQL_ROOT_PASSWORD=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;MYSQL_ROOT_PASSWORD&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; MYSQL_DATABASE=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;MYSQL_DATABASE&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; MYSQL_USER=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_USER&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; MYSQL_PASSWORD=$&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;DB_PASSWORD&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;volumes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./mariadb/config&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/config
    &lt;span class=&quot;token key atrule&quot;&gt;restart&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; unless&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;stopped
    &lt;span class=&quot;token key atrule&quot;&gt;healthcheck&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token key atrule&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;CMD&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;mariadb-admin&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;ping&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;-h&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;localhost&quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
      &lt;span class=&quot;token key atrule&quot;&gt;interval&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5s
      &lt;span class=&quot;token key atrule&quot;&gt;timeout&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 5s
      &lt;span class=&quot;token key atrule&quot;&gt;retries&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=4&gt;&lt;li&gt;&lt;p&gt;Run &lt;code&gt;docker compose up&lt;/code&gt; and then head to &lt;code&gt;http://localhost:6060&lt;/code&gt;. You should see the web interface, where you will setup the admin account upon first login. If you are running this on another computer on your local network, you should be able to go to &lt;code&gt;http://{local_ip_address}:6060&lt;/code&gt;and see the interface as well&lt;li&gt;&lt;p&gt;(Optional): You may wish to run booklore behind a reverse-proxy. Booklore needs the following nginx configuration if you are looking to have Kobo integration. Otherwise, it is a pretty standard reverse-proxy where localhost:6060 is proxied out.&lt;/ol&gt;&lt;pre class=language-text tabindex=0&gt;&lt;code class=language-text&gt;proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
large_client_header_buffers 8 32k;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=adding-books tabindex=-1&gt;Adding books &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#adding-books&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;To add books to booklore, you add &lt;code&gt;.epub&lt;/code&gt; files (must be DRM-free&lt;sup class=footnote-ref&gt;&lt;a href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#fn1 id=fnref1&gt;[1]&lt;/a&gt;&lt;/sup&gt;) or &lt;code&gt;.pdf&lt;/code&gt; files to the &lt;code&gt;./books&lt;/code&gt; directory. Then, Booklore will magically pick them up and add them to your unshelved collection. Note that you may need to use &lt;code&gt;sudo&lt;/code&gt; to copy the files into the books directory if the books directory is owned by the application instead of your user.&lt;h2 id=setting-up-kobo-integration tabindex=-1&gt;Setting up Kobo integration &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#setting-up-kobo-integration&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;If you would like to read books housed in Booklore on your Kobo, there are just a few steps to get everything going:&lt;ol&gt;&lt;li&gt;&lt;p&gt;Grab your kobo and plug it into your computer via a USB cable. The Kobo device should ask if you want to connect to a computer, and your computer will ask if you would like to mount/add the device (similar to a USB stick). Click yes to both options.&lt;li&gt;&lt;p&gt;You are looking for the following file &lt;code&gt;.kobo/Kobo/Kobo eReader.conf&lt;/code&gt;. This will be easy to find using the terminal. If you are using a graphical file explorer, just make sure that hidden files are shown.&lt;li&gt;&lt;p&gt;Look for the the following line:&lt;/ol&gt;&lt;pre class=language-text tabindex=0&gt;&lt;code class=language-text&gt;api_endpoint=https://storeapi.kobo.com&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You will replace it with:&lt;pre class=language-text tabindex=0&gt;&lt;code class=language-text&gt;api_endpoint=https://books.example.com/api/kobo/{api_token}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Where &lt;code&gt;books.example.com&lt;/code&gt; is either &lt;code&gt;{local_ip_address}:6060&lt;/code&gt; if you are setting this up over a local network, or the domain name of the Booklore instance if you are setting this up behind a reverse-proxy or in pikapods.&lt;p&gt;To get the API token, click on the settings icon in the top navigation bar, then go to Devices. Enable Kobo sync, and copy the API token provided.&lt;hr&gt;&lt;p&gt;You should now have a working web interface to read books from (which can be loaded on mobile as well if you would like to read from a tablet or phone), as well as the ability to read books from a Kobo e-reader. On the Kobo e-reader, the books will be downloaded when added, so you can still read them if you take the Kobo to a coffee shop that is outside of your home network. Syncing books works as before, select the sync icon on the kobo and it will pull in new books added to Booklore.&lt;p&gt;The library configuration (through OverDrive/Libby) &lt;em&gt;should work out of the box&lt;/em&gt;, thanks to some great fixes in the latest release. You will be able to borrow and add books as normal, with returns happening automatically.&lt;h2 id=cool-extra-tips tabindex=-1&gt;Cool extra tips &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#cool-extra-tips&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;You can customize the font in the built-in reader to whatever your favourite font is. I really like &lt;a href=https://www.brailleinstitute.org/freefont/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Atkinson Hyperlegible&lt;/a&gt; (the font of this blog), because it has been specifically designed to be one of the easiest fonts to read.&lt;p&gt;Booklore can be a great way to share a collection amongst all members of your household. Everyone can have their own account, and you can toggle the permissions for different libraries for different users (great for households with kids!).&lt;hr class=footnotes-sep&gt;&lt;section class=footnotes&gt;&lt;ol class=footnotes-list&gt;&lt;li id=fn1 class=footnote-item&gt;&lt;p&gt;There are many places to get DRM-free books, including &lt;a href=https://nantucketebooks.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Nantucket Ebooks&lt;/a&gt; or &lt;a href=https://www.gutenberg.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Project Gutenburg&lt;/a&gt;. There are... other methods, but paying authors is important. &lt;a href=https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/#fnref1 class=footnote-backref&gt;↩︎&lt;/a&gt;&lt;/ol&gt;&lt;/section&gt;</description><pubDate>Sat, 31 Jan 2026 01:00:00 +0100</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/selfhost-an-ebook-library-with-kobo-and-library-integration/</guid>
    </item>
    <item>
      <title>Tech can be enjoyable again</title>
      <link>https://pdrweb.pages.dev/blog/tech-can-be-enjoyable-again/</link><description>&lt;p&gt;About a year ago, I was sitting at a coffee shop late at night, meeting some new people. Inevitably the topic of passions came up, and I stated that I was pretty passionate about tech. &quot;Ah, so you&#39;re a tech bro&quot; was one response, and I almost chuckled. In so many ways I would consider myself the opposite of a silicon valley dreamer hoping for a series A round, yet it was interesting that this was where their mind went first. We have been overwhelmed by one particular vision of technology for so long and to such an extant that we have lost sight of alternative ways to view circuit boards and monitors.&lt;p&gt;If we were to assemble a formula for what makes tech awful, it might look something like: lack of control + lack of stability + lack of purpose. A meme coin lacks stability and purpose, social networks lack control and stability. Our phones can be controlled to such an extent that on iPhones you cannot even install software outside of the App Store in regions in which the government has not mandated it. We are constantly at the whims of the next idea brewing in a product manager&#39;s brain. That product manager is trying to design a single product for billions of people while also having to meet the financial interests of the company. No wonder things often change two years later!&lt;p&gt;Fortunately, the same advances that have enabled all of &lt;em&gt;those&lt;/em&gt; products have also enabled &lt;em&gt;other&lt;/em&gt; products to get a lot better. Those &lt;em&gt;other&lt;/em&gt; products are truly wonderful, and represent the technology that I am passionate about. An application to send messages that just sends messages. A photo app that allows me to share memories with my friends regardless of whether they have an apple or a G on the back of their phone. A computer that never &lt;em&gt;forces&lt;/em&gt; me to do anything. It&#39;s a computer after all.&lt;p&gt;Over the past year, there have been &lt;a href=https://www.theverge.com/tech/858910/linux-diary-gaming-desktop target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;many publications and videos&lt;/a&gt; about a creator or writer trying out Linux or self-hosting something. In the comments, there is a ton of glee about the &lt;em&gt;feeling&lt;/em&gt; that comes with successfully pulling off that transition. That feeling can be so freeing that sometimes it&#39;s hard to remember why we let things get so bad in the first place. We used to have personal websites and mp3 players, now we have automatic screenshots of the desktop every few seconds&lt;sup class=footnote-ref&gt;&lt;a href=https://pdrweb.pages.dev/blog/tech-can-be-enjoyable-again/#fn1 id=fnref1&gt;[1]&lt;/a&gt;&lt;/sup&gt;. It was all in the name of progress, but that progress was never meant for the user, it was meant for the bottom line. Now when we jump back in to the &quot;old ways&quot;, we are amazed at what we can pull off.&lt;p&gt;For example, I have a little e-ink display that shows a dashboard of the weather. It is super helpful to look at right as I am getting dressed so I know what to wear. It doesn&#39;t do anything more than that, but it meets its purpose &lt;em&gt;perfectly&lt;/em&gt;. There is not a single additional thing that I wish it did. The same is true for my e-reader, I read books on it (wild!). I don&#39;t want those books summarized, I don&#39;t want a built in social network, I want to read books. There have been massive improvements in how easy it is to borrow from the library, and those are the developments that matter. I could continue with many more examples, many of which I have written about here. A &lt;a href=https://pdrweb.pages.dev/blog/the-casio-ae-1500wh-1avdf-is-everything-a-watch-should-be/&gt;watch that tells the time&lt;/a&gt;, &lt;a href=https://pdrweb.pages.dev/blog/a-home-music-setup-that-rivals-spotify/&gt;self-hosting music&lt;/a&gt;, or &lt;a href=https://pdrweb.pages.dev/blog/one-year-in-debian-feels-like-home/&gt;an operating system that made the desktop the calm environment it should be&lt;/a&gt;.&lt;p&gt;So many of these tools don&#39;t have any marketing budget at all, the only way they can be discovered is through word of mouth. Additionally, it often takes someone to gently prove that it isn&#39;t as scary as it seems. The kids these days are throwing &lt;a href=https://reconnectmovement.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;phone free events&lt;/a&gt;, a recognition that technology never needed to be involved in every space to begin with. Others are trying out flip phones, and are &lt;a href=https://www.nytimes.com/2022/12/15/style/teens-social-media.html target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;being featured in the New York Times in the process&lt;/a&gt;. Texting gave us convenience, and along with that convenience also the ability to opt out last minute.&lt;blockquote&gt;&lt;p&gt;“It’s a little frowned on if someone doesn’t show up,” Odille said. “We’re here every Sunday, rain or shine, even snow. We don’t keep in touch with each other, so you have to show up.”&lt;/blockquote&gt;&lt;p&gt;Technology doesn&#39;t exist in a vacuum, it changes how we think and move throughout society. As Chris Hayes explains in &lt;a href=https://sirenscallbook.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;The Siren&#39;s Call&lt;/a&gt;, this encompasses everything from how we experience isolation, to how we perceive our self worth. As another teen mentions from the New York Times article:&lt;blockquote&gt;&lt;p&gt;“When I got my flip phone, things instantly changed,” Lola continued. “I started using my brain. It made me observe myself as a person. I’ve been trying to write a book, too. It’s like 12 pages now.”&lt;/blockquote&gt;&lt;p&gt;In the workplace, we now have so much complexity that we get jobs that we can&#39;t even explain to each other. Part of this is just because workflows can have funny names (imagine having to explain that you manage swarms of docker containers for a living, and the average person having any idea what you are talking about), but some of it is that we have either lost sight of our goals or are trying to obscure it. Instead of saying &quot;I work in continuous deployment and integration&quot;, it could be &quot;I help automate updates to an e-commerce website&quot;. It&#39;s less mysterious, less mystical. It also makes it clear what the work is contributing to. The improvements to the e-commerce website, are they in the interest of the customer or a fairer marketplace? If not, could they be?&lt;p&gt;We have all gotten better at working with technology over the last decade. We still have a ways to go in making technology work better for us. There are terrifying stories every day about tech being used for evil, so let&#39;s celebrate the wins and slowly accumulate ideas and knowledge until the positive uses for technology outshine the darkness. &lt;a href=https://saxdavid.com/therevengeofanalog target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;The Revenge of Analog&lt;/a&gt; may have been ahead of its time in 2016, but I think we are now in a space where we can implement and integrate technology thoughtfully. Dishwashers that are smart enough to run overnight are wonderful, dishwashers that need to connect to a &quot;data lake&quot; half a world away are not. I&#39;ll end with the hilarious and accurate words of &lt;a href=https://www.consumerreports.org/appliances/dishwashers/who-actually-needs-a-smart-dishwasher-a1100192115/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Molly Bradley at Consumer Reports&lt;/a&gt;:&lt;blockquote&gt;&lt;p&gt;The smart dishwashers available today don’t offer functions that are particularly essential, nor do they address the pain points most people have with dishwashers (such as the inability to fully dry dishes)&lt;/blockquote&gt;&lt;hr class=footnotes-sep&gt;&lt;section class=footnotes&gt;&lt;ol class=footnotes-list&gt;&lt;li id=fn1 class=footnote-item&gt;&lt;p&gt;I am of course referring to Microsoft Recall, &lt;a href=https://doublepulsar.com/recall-stealing-everything-youve-ever-typed-or-viewed-on-your-own-windows-pc-is-now-possible-da3e12e9465e target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;a truly mindboggling launch&lt;/a&gt; that has only gotten slightly better. &lt;a href=https://pdrweb.pages.dev/blog/tech-can-be-enjoyable-again/#fnref1 class=footnote-backref&gt;↩︎&lt;/a&gt;&lt;/ol&gt;&lt;/section&gt;</description><pubDate>Sun, 18 Jan 2026 01:00:00 +0100</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/tech-can-be-enjoyable-again/</guid>
    </item>
    <item>
      <title>Opening excel and csv files from the terminal</title>
      <link>https://pdrweb.pages.dev/blog/opening-excel-and-csv-files-from-the-terminal/</link><description>&lt;p&gt;When working on data pipelines with python&#39;s &lt;a href=https://pandas.pydata.org/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;pandas&lt;/a&gt; or &lt;a href=https://pola.rs/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;polars&lt;/a&gt;, you will often produce data artifacts for others to use, either as csv files or excel files. It can be a real hassle to exit the terminal to view these files. Two handy tools allow you to preview either the input or output files you are working with, right within the terminal. Both are written in rust, and are fast and lightweight. Additionally, they won&#39;t lock up your file like excel, nor will they mess with your dates!&lt;h2 id=csvlens tabindex=-1&gt;csvlens &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/opening-excel-and-csv-files-from-the-terminal/#csvlens&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href=https://github.com/YS-L/csvlens target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Csvlens&lt;/a&gt; is a straightforward tool for viewing (but &lt;em&gt;not&lt;/em&gt; editing) csv files. To install across any system with rust installed, simply use&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;&lt;span class=&quot;token function&quot;&gt;cargo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; csvlens&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then, to view a file use the following command. If it is tab-delimited, use the &lt;code&gt;-t&lt;/code&gt; flag.&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;csvlens example.csv&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;From here, &lt;em&gt;either&lt;/em&gt; arrow motions or vim motions are supported for navigation. Searching is super easy with &lt;code&gt;/&lt;/code&gt;, and so is sorting the file by a particular column (&lt;code&gt;J&lt;/code&gt;). Lastly, filtering is done by selecting a column (&lt;code&gt;TAB&lt;/code&gt; to move from row selection to column selection) and then typing &lt;code&gt;&amp;&lt;/code&gt; + the regex expression you want to filter for.&lt;h2 id=xleak tabindex=-1&gt;xleak &lt;a class=header-anchor href=https://pdrweb.pages.dev/blog/opening-excel-and-csv-files-from-the-terminal/#xleak&gt;&lt;span class=header-anchor__icon&gt;&lt;span aria-label=&quot;Link Symbol&quot; role=img&gt;#&lt;/span&gt; &lt;span class=visually-hidden&gt;Jump to heading&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href=https://github.com/bgreenwell/xleak target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;xleak&lt;/a&gt; allows you to view excel files in the terminal. To install it, you can again use cargo.&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;&lt;span class=&quot;token function&quot;&gt;cargo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; xleak&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To view files, you will almost certainly want to use the &lt;code&gt;-i&lt;/code&gt; flag for interactive mode. This is especially important for files with more rows or columns than will fit on a single terminal screen.&lt;pre class=language-shell tabindex=0&gt;&lt;code class=language-shell&gt;xleak example.xlsx &lt;span class=&quot;token parameter variable&quot;&gt;-i&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This tool is still quite fresh out of the kitchen, and so there are some bugs that I noticed during testing. First, for me the help key doesn&#39;t work. Additionally, we can see that the text from the command is still visible (the 6 and i&#39;s in the column name).&lt;h3 id=configuring-xleak&gt;Configuring xleak&lt;/h3&gt;&lt;p&gt;Unlike csvlens, there are some configuration options that you may want to set with xleak. The configuration lives in &lt;code&gt;~/.config/xleak/config.toml&lt;/code&gt; on Linux, &lt;code&gt;~/Library/Application Support/xleak/config.toml&lt;/code&gt; on Mac, and &lt;code&gt;%APPDATA%&#92;xleak&#92;config.toml&lt;/code&gt; on Windows.&lt;p&gt;Here is the configuration file I use to set a different default colour scheme, and to enable the vim profile. A full configuration example can be found in the &lt;a href=https://github.com/bgreenwell/xleak/blob/main/config.toml.example target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;github repository&lt;/a&gt;&lt;pre class=language-toml tabindex=0&gt;&lt;code class=language-toml&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token table class-name&quot;&gt;ui&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;token key property&quot;&gt;max_rows&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt;
&lt;span class=&quot;token key property&quot;&gt;column_width&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;30&lt;/span&gt;

&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token table class-name&quot;&gt;theme&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;token key property&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Github Dark&quot;&lt;/span&gt;

&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token table class-name&quot;&gt;keybindings&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;token key property&quot;&gt;profile&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;vim&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Fortunately, many of the keybindings are the same between the two tools, and you can customize xleak further through the configuration file so that they are almost identical. Support for csv files is &lt;a href=https://github.com/bgreenwell/xleak/issues/28 target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;being considered&lt;/a&gt; for xleak, which may mean that one tool could handle both filetypes in the future.&lt;p&gt;I would like to end with a shoutout to &lt;a href=https://terminaltrove.com/ target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;terminaltrove&lt;/a&gt; which is how I found both of these tools. Adding their new tools of the week to your RSS feed can be a fun way to discover new tools as they are developed.&lt;hr&gt;&lt;p&gt;The dataset shown in this post is the &lt;a href=https://www.kaggle.com/datasets/ahmeduzaki/canadian-earthquakes-20102019-dataset target=_blank rel=&quot;noopener noreferrer&quot; class=ext-link&gt;Canadian Earthquakes 2010-2019 Dataset&lt;/a&gt;. This dataset is derived from Natural Resources Canada earthquake data licensed under the Open Government Licence – Canada (OGL‑Canada). Contains information licensed under the Open Government Licence – Canada. All users must comply with the OGL‑Canada terms.</description><pubDate>Tue, 06 Jan 2026 01:00:00 +0100</pubDate>
      <dc:creator>pdrweb</dc:creator>
      <guid>https://pdrweb.pages.dev/blog/opening-excel-and-csv-files-from-the-terminal/</guid>
    </item>
  </channel>
</rss>