<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>How-To on The Edge Cases</title>
    <link>https://www.kylestratis.com/tags/how-to/</link>
    <description>Recent content in How-To on The Edge Cases</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>© 2025</copyright>
    <lastBuildDate>Fri, 18 Sep 2026 22:04:36 -0400</lastBuildDate>
    <atom:link href="https://www.kylestratis.com/tags/how-to/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Opening Text-Based pgdump Database Backups (postgres)</title>
      <link>https://www.kylestratis.com/notes/opening-text-based-pgdump-database-backups-postgres/</link>
      <pubDate>Wed, 19 Jun 2024 21:15:11 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/opening-text-based-pgdump-database-backups-postgres/</guid>
      <description>&lt;p&gt;]&lt;/p&gt;&#xA;&lt;p&gt;The file itself (unless it&amp;rsquo;s a binary file) can be opened in a text editor to inspect. To create a database to work with from the backup file, you have to create a database to restore into and then restore the database.&lt;/p&gt;&#xA;&lt;p&gt;To create:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ psql -U postgres&#xA;postgres=# createdb dbname&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To restore from the backup:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;psql -U postgres -d dbname -f path/to/your/file.sql&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Pipx and Pre-Commit Bad Interpreter No Such File</title>
      <link>https://www.kylestratis.com/notes/pipx-and-pre-commit-bad-interpreter-no-such-file/</link>
      <pubDate>Tue, 03 Oct 2023 21:03:01 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/pipx-and-pre-commit-bad-interpreter-no-such-file/</guid>
      <description>&lt;p&gt;While this is generally an issue with pipx, it is likely to come up with pre-commit hooks (since the underlying binaries should be installed with pipx). The issue is the error &lt;code&gt;Bad Interpreter No Such File or Directory&lt;/code&gt; when running a pipx-installed application, like poetry or black. This happens on MacOS because of a broken symlink between the application-specific binary path and the Python binary actually being used (I&amp;rsquo;ve found this to be a &lt;code&gt;brew&lt;/code&gt; issue, specifically). This can be fixed with &lt;code&gt;pipx reinstall-all&lt;/code&gt;, which will uninstall and reinstall all pipx applications with working symlinks to the appropriate Python binaries.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting Up a Virtual Environment Kernel In Jupyter</title>
      <link>https://www.kylestratis.com/notes/setting-up-a-virtual-environment-kernel-in-jupyter/</link>
      <pubDate>Mon, 02 Oct 2023 23:26:49 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/setting-up-a-virtual-environment-kernel-in-jupyter/</guid>
      <description>&lt;ol&gt;&#xA;&lt;li&gt;Activate your project&amp;rsquo;s virtual environment&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;pip install ipykernel&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;python -m ipykernel install --user --name=myenv&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Open notebook and select the &lt;code&gt;myenv&lt;/code&gt; kernel&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;source&#34;&gt;Source&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://janakiev.com/blog/jupyter-virtual-envs/#add-virtual-environment-to-jupyter-notebook&#34;&gt;https://janakiev.com/blog/jupyter-virtual-envs/#add-virtual-environment-to-jupyter-notebook&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing Tensorflow on Silicon Macs</title>
      <link>https://www.kylestratis.com/notes/installing-tensorflow-on-silicon-macs/</link>
      <pubDate>Tue, 28 Feb 2023 19:13:38 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/installing-tensorflow-on-silicon-macs/</guid>
      <description>&lt;p&gt;To install Tensorflow on a Silicon Mac, do the following in a virtual environment:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pip install tensorflow-macos&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pip install tensorflow-metal&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Ensure the &lt;a href=&#34;https://developer.apple.com/metal/tensorflow-plugin/&#34;&gt;version of tensorflow-metal matches with the tensorflow-macos version&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
