<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Note 2 Self</title>
    <link>/</link>
    <description>Recent content on Note 2 Self</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 09 Mar 2025 18:13:59 -0400</lastBuildDate>
    <atom:link href="/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Setting up Minio</title>
      <link>/post/2025/001-setting-up-minio/</link>
      <pubDate>Sun, 09 Mar 2025 18:13:59 -0400</pubDate>
      <guid>/post/2025/001-setting-up-minio/</guid>
      <description>&lt;p&gt;I need to run some terraform experiments with my home infrastructure and need&#xA;a better backend for the statefiles than the current directory. According to&#xA;the official Terraform docs, S3 compatible backends &lt;em&gt;are&lt;/em&gt; supported. A quick&#xA;internet search leads me to the &lt;a href=&#34;https://min.io/product/s3-compatibility&#34;&gt;Minio&lt;/a&gt; project - it does a lot of things, but&#xA;for purposes of this post, am going to talk about what I did to get a Minio&#xA;service up and running on my Unraid server.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Differences between Pyenv and Pipx</title>
      <link>/post/2020/005-differences-between-pyenv-and-pipx/</link>
      <pubDate>Sun, 13 Dec 2020 00:00:00 +0000</pubDate>
      <guid>/post/2020/005-differences-between-pyenv-and-pipx/</guid>
      <description>&lt;p&gt;I have been told that &lt;code&gt;pipx&lt;/code&gt; is a very good tool to install and run Python&#xA;applications in isolated environments. That description almost immediately&#xA;reminds me of another tool - &lt;code&gt;pyenv&lt;/code&gt;. Even though they address different&#xA;needs, I find myself mixing them up. The purpose of this post is to describe&#xA;what the tools try to accomplish and how they go about doing so. A pre-requisite&#xA;to this discussion is an introduction to how the system &lt;code&gt;$PATH&lt;/code&gt; environment&#xA;variable is used.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Experiences deploying a dotNet web application</title>
      <link>/post/2020/004-experiences-deploying-a-dotnet-webapp/</link>
      <pubDate>Tue, 05 May 2020 00:00:00 +0000</pubDate>
      <guid>/post/2020/004-experiences-deploying-a-dotnet-webapp/</guid>
      <description>&lt;p&gt;Someone I know had lamented on how difficult he found it to manage a dotNet&#xA;application online; i.e. a webapp running on Microsoft&amp;rsquo;s dotNet Core&#xA;technology. It got me pondering - is it really that hard to run dotNet on an&#xA;Ubuntu box? At a fundamental level, we are still dealing with managing running&#xA;processes/threads in an operating system. So I challenged myself to provision&#xA;just such a system! This post mentions some of the memorable moments I had in&#xA;accomplishing that challenge.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Showing asterisks in terminal</title>
      <link>/post/2020/003-showing-asterisks-in-terminal/</link>
      <pubDate>Thu, 30 Apr 2020 00:00:00 +0000</pubDate>
      <guid>/post/2020/003-showing-asterisks-in-terminal/</guid>
      <description>&lt;p&gt;It is very useful to see &lt;code&gt;***&lt;/code&gt; symbols appearing I type passwords in the&#xA;terminal window. Sadly, the feature is not enabled by default when using&#xA;&lt;code&gt;sudo&lt;/code&gt; in Ubuntu. Thankfully, it is simple to activate!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing docker and docker-machine on Ubuntu</title>
      <link>/post/2020/002-installing-docker-and-docker-machine/</link>
      <pubDate>Tue, 28 Apr 2020 00:00:00 +0000</pubDate>
      <guid>/post/2020/002-installing-docker-and-docker-machine/</guid>
      <description>&lt;p&gt;I want to be able to quickly spin up game servers for small sessions and tear&#xA;them down afterwards. Online investigation reveals that &lt;code&gt;docker-machine&lt;/code&gt;&#xA;paired  with DigitalOcean as a provider might be just what is needed. That claim&#xA;needs to be tested, but a pre-requisite is that the &lt;code&gt;docker&lt;/code&gt; and&#xA;&lt;code&gt;docker-machine&lt;/code&gt; tools be available on the local system. This post will&#xA;describe how to install them on an Ubuntu box.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Customizing my default shell to zsh</title>
      <link>/post/2020/001-configuring-shell/</link>
      <pubDate>Mon, 27 Apr 2020 00:00:00 +0000</pubDate>
      <guid>/post/2020/001-configuring-shell/</guid>
      <description>&lt;p&gt;I like to change the default shell environment on systems that I use to &lt;code&gt;zsh&lt;/code&gt;&#xA;and theme them a little. This post describes my usual changes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python Memory Usage</title>
      <link>/post/2018/003-python-memory-usage/</link>
      <pubDate>Sun, 03 Jun 2018 00:00:00 +0000</pubDate>
      <guid>/post/2018/003-python-memory-usage/</guid>
      <description>&lt;p&gt;The Python language has a feature called &lt;code&gt;Generator Expressions&lt;/code&gt; which were&#xA;introduced with PEP 289. You can think of them as a better way of doing certain&#xA;operations involving lists. This post is more interested in the memory benefits&#xA;the feature provides. We will first introduce the &lt;code&gt;memory_profiler&lt;/code&gt; tool which&#xA;can be used to measure the memory usage of a python program. We will then&#xA;compare two different pieces of code (one with and the other without generator&#xA;expressions) which perform the same operation, explaining why one is more&#xA;superior than the other. Finally, we will run a few experiments to demonstrate&#xA;and prove our assertion.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Visualizing Bootstrap 4 breakpoints</title>
      <link>/post/2018/002-visualize-bootstrap4-breakpoints/</link>
      <pubDate>Mon, 21 May 2018 00:00:00 +0000</pubDate>
      <guid>/post/2018/002-visualize-bootstrap4-breakpoints/</guid>
      <description>&lt;p&gt;When designing websites using Bootstrap 4, I found it challenging to figure out&#xA;which widths corresponded to which breakpoint. This post describes the HTML&#xA;layout I came up with to display a small banner (during development) to help me&#xA;visualize the different breakpoints.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Synchronizing time on a dual-boot system</title>
      <link>/post/2018/001-sync-time-dual-boot/</link>
      <pubDate>Sun, 18 Feb 2018 00:00:00 +0000</pubDate>
      <guid>/post/2018/001-sync-time-dual-boot/</guid>
      <description>&lt;p&gt;The time displayed by my OS is different between Ubuntu and Windows 10. Opening&#xA;the settings screen on Windows on each bootup, turning the time sync off/on was&#xA;getting tiring. Here is how I solved the problem in a more permanent manner.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cheap IRC web client - The Lounge</title>
      <link>/post/2017/003-cheap-irc-web-client/</link>
      <pubDate>Mon, 13 Nov 2017 00:00:00 +0000</pubDate>
      <guid>/post/2017/003-cheap-irc-web-client/</guid>
      <description>&lt;p&gt;For a year, I subscribed to IRCCloud. It&amp;rsquo;s a good service that let&amp;rsquo;s me stay&#xA;connected to different chatrooms. In the year that I&amp;rsquo;ve been a customer, it has&#xA;served me well. So, why change? It costs USD $50/year. Recently, it has come to&#xA;my attention that you can rent servers on vultr for just USD $2.5/month.&lt;/p&gt;&#xA;&lt;p&gt;Granted, it&amp;rsquo;s a really low-end server, but for the needs of a single user it&#xA;might just fit my needs. To my pleasant surprise, it works!&lt;/p&gt;</description>
    </item>
    <item>
      <title>NAS on Raspberry Pi with USB backup</title>
      <link>/post/2017/002-nas-on-raspberry-pi-with-usb/</link>
      <pubDate>Sun, 28 May 2017 00:00:00 +0000</pubDate>
      <guid>/post/2017/002-nas-on-raspberry-pi-with-usb/</guid>
      <description>&lt;p&gt;This post details the steps I took to configure a Network Accessable Storage&#xA;(NAS) using the Samba protocol on a Raspberry Pi 3 running the Raspbian Jessie&#xA;Lite distribution. This was done using the openmediavault (OMV) project.&lt;/p&gt;&#xA;&lt;p&gt;For redundancy purposes, a USB memory stick was configured as a backup location&#xA;for the shared folder.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Raspberry Pi 3 for headless wifi</title>
      <link>/post/2017/001-raspberry-pi-3-headless-wifi/</link>
      <pubDate>Sat, 13 May 2017 00:00:00 +0000</pubDate>
      <guid>/post/2017/001-raspberry-pi-3-headless-wifi/</guid>
      <description>&lt;p&gt;After following these instructions you will have a bootable microSD card which&#xA;can be inserted into a Raspberry Pi 3 to load up the Raspbian Lite image,&#xA;configured to auto-connect to your wifi network, with a server you can SSH into.&#xA;For good measure, we will also enable the UART serial console.&lt;/p&gt;&#xA;&lt;p&gt;All the work is being done on a traditional x86-based Linux laptop - the Pi&#xA;won&amp;rsquo;t be needed until you actually want to boot the image!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
