<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on eirikre</title><link>/posts/</link><description>Recent content in Posts on eirikre</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright (c) 2020-2024 eirikre</copyright><lastBuildDate>Sun, 28 Aug 2022 08:49:55 +0000</lastBuildDate><atom:link href="/posts/rss.xml" rel="self" type="application/rss+xml"/><item><title>Maths Snack</title><link>/posts/maths-snack/</link><pubDate>Sat, 16 Jul 2022 22:29:26 -0600</pubDate><guid>/posts/maths-snack/</guid><description>Monorepo of small simulations and number series implementations</description><content:encoded>&lt;p>The &lt;strong>Maths Snack&lt;/strong> &lt;a href="https://maths-snack.eirik.re/">&amp;#x1f517;&lt;/a> repository is filled up
with anything that is interesting either visually or because of the mathematics, most
often both.&lt;/p>
&lt;p>
&lt;img
src="/snowy_hills_17818206506582191228_hu774356547223d407f397b739112c1f12_167000_3096x2337_resize_q85_h2_lanczos_3.webp"
width="3096"
height="2337"
decoding="async"
fetchpriority="auto"
loading="lazy"
alt="snowy-hills-from-math-snack-library"id="h-rh-i-0"
/>&lt;/p></content:encoded></item><item><title>Northern Lights Forecast</title><link>/posts/northern-lights-forecast/</link><pubDate>Sat, 16 Jul 2022 22:28:16 -0600</pubDate><guid>/posts/northern-lights-forecast/</guid><description>CLI tool that notifies about northern light events, with support for a telegram bot</description><content:encoded>&lt;!-- # [Northern Lights Forecast](https://github.com/engeir/northern-lights-forecast) -->
&lt;p>&lt;strong>nlf — Norther Lights Forecast&lt;/strong>
&lt;a href="https://github.com/engeir/northern-lights-forecast">&amp;#x1f517;&lt;/a> sends alerts to the
telegram bot &lt;code>@NorthernLightsForecastBot&lt;/code> whenever there are good chances of seeing
northern lights near Tromsø. The program itself can actually check the conditions in a
number of places (see the full list by running &lt;code>nlf --locations&lt;/code>), but the instance I
have running on a raspberry pi that updates telegram is looking only at Tromsø. Install
and run your own version by cloning and installing with &lt;code>poetry&lt;/code>:&lt;/p>
&lt;div class="expressive-code">
&lt;figure class="frame is-terminal not-content">
&lt;figcaption class="header">
&lt;span class="title">&lt;/span>
&lt;/figcaption>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git clone https://github.com/engeir/northern-lights-forecast.git
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">poetry install
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Install tesseract and create a telegram bot, then run&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">nlf -l Tromsø&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;/figure>
&lt;/div>
&lt;!-- ![nlf bot](https://github.com/engeir/northern-lights-forecast/raw/main/assets/telegram_screendump.gif) -->
&lt;!-- ![nlf qr](nlf-bot.jpg) -->
&lt;div class="callout callout-note d-flex flex-row mt-4 mb-4 pt-4 pe-4 pb-2 ps-3">
&lt;svg class="qrcode svg-inline callout-icon me-2 mb-3" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round">&lt;path stroke="none" d="M0 0h24v24H0z" fill="none"/>&lt;path d="M4 4m0 1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5A1 1 0 014 9z"/>&lt;path d="M7 17v.01"/>&lt;path d="M14 4m0 1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1z"/>&lt;path d="M7 7v.01"/>&lt;path d="M4 14m0 1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1z"/>&lt;path d="M17 7v.01"/>&lt;path d="M14 14h3"/>&lt;path d="M20 14v.01"/>&lt;path d="M14 14v3"/>&lt;path d="M14 20h3"/>&lt;path d="M17 17h3"/>&lt;path d="M20 17v3"/>&lt;/svg>
&lt;div class="callout-content">
&lt;div class="callout-title">
&lt;p>Note&lt;/p>
&lt;/div>
&lt;div class="callout-body">
&lt;p>Scan the QR code to get directly to the telegram bot!&lt;/p>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;img
srcset="/posts/northern-lights-forecast/nlf-bot_hu7d342ed0bf0fac6ea5ab1f82b338b38f_147333_480x0_resize_q85_h2_lanczos.webp 480w,/posts/northern-lights-forecast/nlf-bot_hu7d342ed0bf0fac6ea5ab1f82b338b38f_147333_576x0_resize_q85_h2_lanczos.webp 576w,/posts/northern-lights-forecast/nlf-bot_hu7d342ed0bf0fac6ea5ab1f82b338b38f_147333_720x0_resize_q85_h2_lanczos.webp 720w"
src="/posts/northern-lights-forecast/nlf-bot_hu7d342ed0bf0fac6ea5ab1f82b338b38f_147333_480x0_resize_q85_lanczos.jpg"
width="720"
height="784"
decoding="async"
fetchpriority="auto"
loading="lazy"
alt=""
class="lazyload blur-up"
></content:encoded></item><item><title>reMarkable Splashscreens</title><link>/posts/remarkable-splashscreens/</link><pubDate>Sat, 16 Jul 2022 22:27:04 -0600</pubDate><guid>/posts/remarkable-splashscreens/</guid><description>Elegant splashscreens for the reMarkable paper tablet</description><content:encoded>&lt;p>The &lt;strong>reMarkable Splashscreens&lt;/strong>
&lt;a href="https://remarkable-splashscreens.eirik.re/">&amp;#x1f517;&lt;/a> repository is a collection of
screen savers that I use for my reMarkable tablet. It looks a bit nicer than the quite
boring screen savers that are there by default.&lt;/p>
&lt;p>
&lt;img
src="/sleeping_11048177102334411220_hu169115efc79e505fa1d984e558d3f95c_892095_1404x1872_resize_q85_h2_lanczos_3.webp"
width="1404"
height="1872"
decoding="async"
fetchpriority="auto"
loading="lazy"
alt="Dragon Curve from remarkable splashscreensrepository"title="Dragon Curve from remarkable splashscreens repository"id="h-rh-i-0"
/>&lt;/p></content:encoded></item><item><title>Rich NcDump</title><link>/posts/rich-ncdump/</link><pubDate>Sat, 16 Jul 2022 22:28:55 -0600</pubDate><guid>/posts/rich-ncdump/</guid><description>Pretty-print a preview of netCDF files using Rich</description><content:encoded>&lt;!-- # Rich NcDump -->
&lt;p>&lt;strong>Rich NcDump&lt;/strong> is a repository made to be able to quickly preview &lt;code>netCDF&lt;/code> files. It is
useful when you just want to see the metadata, and it is packaged with &lt;code>pip&lt;/code>!&lt;/p>
&lt;p>To install, you can simply do&lt;/p>
&lt;div class="expressive-code">
&lt;figure class="frame is-terminal not-content">
&lt;figcaption class="header">
&lt;span class="title">&lt;/span>
&lt;/figcaption>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install ncdump-rich&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;/figure>
&lt;/div>
&lt;p>or even better, by using &lt;a href="https://github.com/pypa/pipx">&lt;code>pipx&lt;/code>&lt;/a> which installs it in a
nice, isolated environment:&lt;/p>
&lt;div class="expressive-code">
&lt;figure class="frame is-terminal not-content">
&lt;figcaption class="header">
&lt;span class="title">&lt;/span>
&lt;/figcaption>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pipx install ncdump-rich&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;/figure>
&lt;/div>
&lt;p>If you are like me and you think browsing through your files is a lot easier in a
terminal file manager compared to Finder, Nautilus and so on, then this previewer
fits perfectly into the previwing plugins that exists for for example
&lt;a href="https://github.com/jarun/nnn">nnn&lt;/a> and &lt;a href="https://github.com/gokcehan/lf">lf&lt;/a>.&lt;/p>
&lt;div class="expressive-code">
&lt;figure class="frame not-content">
&lt;figcaption class="header">
&lt;span class="title">&lt;/span>
&lt;/figcaption>
&lt;pre tabindex="0">&lt;code class="language-bash=10" data-lang="bash=10">nc) fifo_pager ncdump-rich -i &amp;#34;$1&amp;#34; ;;&lt;/code>&lt;/pre>
&lt;/figure>
&lt;/div>
&lt;p>
&lt;img
src="/nnn-demo_9989944567070669236_hu2ed7855ad63bd9729aa15fe19d05717c_407212_1920x1057_resize_q85_h2_lanczos_3.webp"
width="1920"
height="1057"
decoding="async"
fetchpriority="auto"
loading="lazy"
alt="ncdump-rich-example"id="h-rh-i-0"
/>&lt;/p></content:encoded></item></channel></rss>