<?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>Innlegg on eirikre</title><link>/nb/posts/</link><description>Recent content in Innlegg on eirikre</description><generator>Hugo -- gohugo.io</generator><language>nb</language><copyright>Copyright (c) 2020-2024 eirikre</copyright><lastBuildDate>Sun, 31 Dec 2023 08:47:36 +0000</lastBuildDate><atom:link href="/nb/posts/rss.xml" rel="self" type="application/rss+xml"/><item><title>Maths Snack</title><link>/nb/posts/maths-snack/</link><pubDate>Sat, 16 Jul 2022 22:29:26 -0600</pubDate><guid>/nb/posts/maths-snack/</guid><description>Et monorepo bestående av små simuleringer og implementasjoner av tallserier</description><content:encoded>&lt;p>&lt;strong>Maths Snack&lt;/strong> &lt;a href="https://maths-snack.eirik.re/">&amp;#x1f517;&lt;/a> lageret er fylt med alt som er
interessant enten visuelt eller på grunn av matematikken, men som oftest begge deler!&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>/nb/posts/northern-lights-forecast/</link><pubDate>Sat, 16 Jul 2022 22:28:16 -0600</pubDate><guid>/nb/posts/northern-lights-forecast/</guid><description>Kommandolinjeprogram som varsler om pågående nordly-hendelser, med støtte for 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> sender varsler til telegram
boten &lt;code>@NorthernLightsForecastBot&lt;/code> når det oppstår gode muligheter for å se nordlys nært
Tromsø. Selve programmet kan faktisk også sjekke forholdene på en rekke lokasjoner (se
den fullstendige listen ved å kjøre kommandoen &lt;code>nlf --locations&lt;/code>), men innstansen jeg
kjører på min raspberry pi som oppdaterer telegram boten lytter kun til Tromsø sitt
magnetogram. Installer og kjør din egen versjon av programmet ved å laste ned via &lt;code>pip&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">pip install nlf&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;/figure>
&lt;/div>
&lt;p>Eller du kan klone git lageret og installere med &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>Skann QR koden for å gå
direkte til telegramboten!&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>/nb/posts/remarkable-splashscreens/</link><pubDate>Sat, 16 Jul 2022 22:27:04 -0600</pubDate><guid>/nb/posts/remarkable-splashscreens/</guid><description>Elegante skjermsparere designet for reMarkable papir-tablet</description><content:encoded>&lt;p>&lt;strong>reMarkable Splashscreens&lt;/strong> &lt;a href="https://remarkable-splashscreens.eirik.re/">&amp;#x1f517;&lt;/a>
lageret er en samling av skjermsparere som jeg bruker til mitt reMarkable skrivebrett.
Det får skrivebrettet til å se mye mer interessant og spennende ut enn hva den standarde
skjermsparer gjør.&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 fra remarkable splashscreenslageret"title="Dragon Curve fra remarkable splashscreens lageret"id="h-rh-i-0"
/>&lt;/p></content:encoded></item><item><title>Rich NcDump</title><link>/nb/posts/rich-ncdump/</link><pubDate>Sat, 16 Jul 2022 22:28:55 -0600</pubDate><guid>/nb/posts/rich-ncdump/</guid><description>Forhåndsvisning av netCDF filer ved hjelp av Rich</description><content:encoded>&lt;!-- # Rich NcDump -->
&lt;p>&lt;strong>Rich NcDump&lt;/strong> er et lager laget for å raskt kunne forhåndsvise &lt;code>netCDF&lt;/code> filer.
Spesielt nyttig når man kun ønsker informasjon om metadataen, og tilgjengelig via &lt;code>pip&lt;/code>!&lt;/p>
&lt;p>For å installere:&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>eller enda bedre, installer via &lt;a href="https://github.com/pypa/pipx">&lt;code>pipx&lt;/code>&lt;/a> som vil
installere programmet i et isolert miljø:&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>Hvis du, som meg, foretrekker å åpne filer fra terminalen, heller enn med Finder,
Nautilus og liknende, så vil denne forhåndsviseren passe perfekt inn i allerede
eksisterende filutforskere som for eksempel &lt;a href="https://github.com/jarun/nnn">nnn&lt;/a> og
&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>