<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://oxal.org/atom/everything.xml</id>
  <title>oxalorg&#39;s A.R.K: everything</title>
  <subtitle>posts, TILs, txlog entries and links</subtitle>
  <updated>2026-11-23T14:38:22Z</updated>
  <author>
    <name>oxalorg</name>
  </author>
  <link href="https://oxal.org/" rel="alternate"></link>
  <link href="https://oxal.org/atom/everything.xml" rel="self"></link>
  <entry>
    <id>https://oxal.org/txlog/0x0001/</id>
    <title>tx#0x0001: First blood! New blog is live :)</title>
    <updated>2026-11-23T14:38:22Z</updated>
    <published>2026-11-23T14:38:22Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/txlog/0x0001/"></link>
    <summary>First blood! New blog is live :)</summary>
    <content type="html">&lt;p&gt;First blood! New blog is live :)&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/testing-my-sn7100-4tb-ssd/</id>
    <title>Testing my WD SN7100 4TB SSD</title>
    <updated>2026-11-23T12:13:38Z</updated>
    <published>2026-07-28T09:03:30Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/testing-my-sn7100-4tb-ssd/"></link>
    <summary>With the price of SSD&amp;rsquo;s now a days, I damn well had to check if amazon delivered a legit SSD or not. I looked into a few ways to check this but the best way to do it comes down to writing bytes ...</summary>
    <content type="html">&lt;p&gt;With the price of SSD&amp;rsquo;s now a days, I damn well had to check if amazon delivered a legit SSD or not.&lt;/p&gt;&#xA;&lt;p&gt;I looked into a few ways to check this but the best way to do it comes down to&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;writing bytes to all 4tb of capacity&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;verify if the bytes did not get overwritten (so you know the capacity is not being faked by the driver)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This is a time consuming process for 4tb worth of data.&lt;/p&gt;&#xA;&lt;p&gt;Here comes in f3probe&amp;rsquo;s &lt;code&gt;--destructive&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;~ sudo f3probe --destructive --time-ops /dev/sde&#xD;&#xA;F3 probe 9.0&#xD;&#xA;Copyright (C) 2010 Digirati Internet LTDA.&#xD;&#xA;This is free software; see the source for copying conditions.&#xD;&#xA;&#xD;&#xA;WARNING: Probing normally takes from a few seconds to 15 minutes, but&#xD;&#xA;         it can take longer. Please be patient.&#xD;&#xA;&#xD;&#xA;Good news: The device `/dev/sde&#39; is the real thing&#xD;&#xA;&#xD;&#xA;Device geometry:&#xD;&#xA;&#x9;         *Usable* size: 3.64 TB (7814037168 blocks)&#xD;&#xA;&#x9;        Announced size: 3.64 TB (7814037168 blocks)&#xD;&#xA;&#x9;                Module: 4.00 TB (2^42 Bytes)&#xD;&#xA;&#x9;Approximate cache size: 0.00 Byte (0 blocks), need-reset=no&#xD;&#xA;&#x9;   Physical block size: 512.00 Byte (2^9 Bytes)&#xD;&#xA;&#xD;&#xA;Probe time: 5.30s&#xD;&#xA; Operation: total time / count = avg time&#xD;&#xA;      Read: 73.8ms / 4822 = 15us&#xD;&#xA;     Write: 4.96s / 4192321 = 1us&#xD;&#xA;     Reset: 0us / 1 = 0us&#xD;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;~ lsblk&#xD;&#xA;NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS&#xD;&#xA;sda           8:0    0 931.5G  0 disk&#xD;&#xA;├─sda1        8:1    0   931G  0 part /mnt/windox&#xD;&#xA;└─sda2        8:2    0   475M  0 part&#xD;&#xA;sdb           8:16   0   3.6T  0 disk&#xD;&#xA;└─sdb1        8:17   0   3.6T  0 part /mnt/blue1&#xD;&#xA;sdc           8:32   0 931.5G  0 disk&#xD;&#xA;└─sdc1        8:33   0 919.8G  0 part /mnt/andromeda&#xD;&#xA;sdd           8:48   1 114.6G  0 disk&#xD;&#xA;├─sdd1        8:49   1 114.6G  0 part&#xD;&#xA;└─sdd2        8:50   1    32M  0 part&#xD;&#xA;sde           8:64   0   3.6T  0 disk&#xD;&#xA;└─sde1        8:65   0   3.6T  0 part&#xD;&#xA;zram0       253:0    0  30.5G  0 disk [SWAP]&#xD;&#xA;nvme1n1     259:0    0 931.5G  0 disk&#xD;&#xA;└─nvme1n1p1 259:4    0 931.5G  0 part /mnt/biochip&#xD;&#xA;nvme0n1     259:1    0   1.8T  0 disk&#xD;&#xA;├─nvme0n1p1 259:2    0   300M  0 part /boot/efi&#xD;&#xA;└─nvme0n1p2 259:3    0   1.8T  0 part /&#xD;&#xA;nvme2n1     259:5    0   3.6T  0 disk&#xD;&#xA;└─nvme2n1p1 259:6    0   3.6T  0 part /mnt/oxadrive&#xD;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/discord-screen-share-broken-kde-wayland/</id>
    <title>Discord Screen Share Broken on KDE Wayland? Here&#39;s the fix</title>
    <updated>2026-03-18T00:00:00Z</updated>
    <published>2026-03-18T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/discord-screen-share-broken-kde-wayland/"></link>
    <category term="linux"></category>
    <summary>So I&amp;rsquo;m in a call, someone asks me to share my screen, I click the button and&amp;hellip; nothing. No error, no dialog, no nothing. Just Discord pretending I never clicked anything. Cool cool cool. I...</summary>
    <content type="html">&lt;p&gt;So I&amp;rsquo;m in a call, someone asks me to share my screen, I click the button and&amp;hellip; nothing. No error, no dialog, no nothing. Just Discord pretending I never clicked anything. Cool cool cool.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m on KDE Plasma + Wayland. And oh, Arch btw (CachyOS specifically). Running the native &lt;code&gt;discord&lt;/code&gt; package from pacman. Everything was working perfectly fine like two days ago. What changed? No idea. Something crashed silently. &amp;ldquo;It just works&amp;rdquo; said no linux user ever. 🙃&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-screen-sharing-even-works-on-wayland&#34;&gt;How screen sharing even works on Wayland&lt;/h2&gt;&#xA;&lt;p&gt;Okay so on Wayland, screen sharing goes through this whole chain:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Discord (Electron) → xdg-desktop-portal → KDE portal backend → PipeWire → your screen&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Discord asks the portal &amp;ldquo;hey can I see the screen?&amp;rdquo;, the portal asks your desktop environment&amp;rsquo;s backend to handle it, and that backend uses PipeWire to actually grab the pixels. It&amp;rsquo;s a lot of moving parts. But it works.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-debugging-rabbit-hole&#34;&gt;The debugging rabbit hole&lt;/h2&gt;&#xA;&lt;p&gt;First thing I checked: are the right Electron flags set? On Wayland, Discord needs these or it won&amp;rsquo;t even try the proper screen capture path:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;discord --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(These go in your &lt;code&gt;.desktop&lt;/code&gt; file&amp;rsquo;s &lt;code&gt;Exec=&lt;/code&gt; line. If you haven&amp;rsquo;t done this already, do it now.)&lt;/p&gt;&#xA;&lt;p&gt;But that wasn&amp;rsquo;t it. I already had these set. Screen share was still completely dead.&lt;/p&gt;&#xA;&lt;p&gt;So I dug deeper. Is the &lt;code&gt;ScreenCast&lt;/code&gt; portal interface even available?&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ dbus-send --session &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --dest&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;org.freedesktop.portal.Desktop &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --type&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;method_call --print-reply &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    /org/freedesktop/portal/desktop &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    org.freedesktop.DBus.Properties.Get &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    string:org.freedesktop.portal.ScreenCast &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    string:version&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error org.freedesktop.DBus.Error.InvalidArgs: No such interface &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;org.freedesktop.portal.ScreenCast&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;No &lt;code&gt;ScreenCast&lt;/code&gt; interface. At all. There it is. The portal literally has no backend that knows how to capture screens. No wonder Discord was doing nothing — there was nothing to do.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-actual-problem&#34;&gt;The actual problem&lt;/h2&gt;&#xA;&lt;p&gt;Wanna guess?&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ systemctl --user status plasma-xdg-desktop-portal-kde.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;○ plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     Active: inactive &lt;span style=&#34;color:#0550ae&#34;&gt;(&lt;/span&gt;dead&lt;span style=&#34;color:#0550ae&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Dead. The KDE portal backend was just&amp;hellip; dead. This is the service that provides &lt;code&gt;ScreenCast&lt;/code&gt;, &lt;code&gt;Screenshot&lt;/code&gt;, &lt;code&gt;RemoteDesktop&lt;/code&gt; — basically everything screen-related on KDE Plasma. Without it, the only portal running was the GTK one, which doesn&amp;rsquo;t provide &lt;code&gt;ScreenCast&lt;/code&gt; on a KDE session (why would it).&lt;/p&gt;&#xA;&lt;p&gt;So Discord asks to share screen, the portal goes &amp;ldquo;I don&amp;rsquo;t know how to do that&amp;rdquo;, and Discord goes &amp;ldquo;okay nevermind&amp;rdquo; without telling you anything. Super helpful error handling there 🤣&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-fix-its-two-commands&#34;&gt;The fix (it&amp;rsquo;s two commands)&lt;/h2&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;systemctl --user start plasma-xdg-desktop-portal-kde.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;systemctl --user restart xdg-desktop-portal.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Start the KDE backend, then restart the main portal so it picks up the new backend. You can verify it worked:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ dbus-send --session &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --dest&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;org.freedesktop.portal.Desktop &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --type&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;method_call --print-reply &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    /org/freedesktop/portal/desktop &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    org.freedesktop.DBus.Properties.Get &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    string:org.freedesktop.portal.ScreenCast &lt;span style=&#34;color:#0a3069&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    string:version&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;variant    uint32 &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Restart Discord after this. You should get the KDE screen picker dialog when you try to share. 🎉&lt;/p&gt;&#xA;&lt;h2 id=&#34;but-why-did-it-die-in-the-first-place&#34;&gt;But why did it die in the first place?&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s the annoying part — &lt;code&gt;plasma-xdg-desktop-portal-kde&lt;/code&gt; is a static systemd unit. It doesn&amp;rsquo;t auto-restart on crash. Your Plasma session starts it once when you log in, and if it crashes mid-session (OOM, random segfault, who knows), it just stays dead. You just lose screen sharing until you notice and manually restart it, or log out and back in.&lt;/p&gt;&#xA;&lt;p&gt;If this keeps happening to you, check the logs next time:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;journalctl --user -u plasma-xdg-desktop-portal-kde&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Maybe there&amp;rsquo;s a pattern. Maybe something is killing it. I haven&amp;rsquo;t figured that part out yet (added to my infinitely long todo list).&lt;/p&gt;&#xA;&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;&#xA;&lt;p&gt;Discord screen share broken on KDE Wayland? Run &lt;code&gt;systemctl --user status plasma-xdg-desktop-portal-kde.service&lt;/code&gt;. It&amp;rsquo;s probably dead. Start it, restart &lt;code&gt;xdg-desktop-portal&lt;/code&gt;, restart Discord. Done.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/handcrafted-mascot-on-my-blog-like-its-2007/</id>
    <title>Handcrafted Mascot On My Blog Like Its 2007 (feat. VanillaJS)</title>
    <updated>2025-07-04T00:00:00Z</updated>
    <published>2025-07-04T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/handcrafted-mascot-on-my-blog-like-its-2007/"></link>
    <category term="self"></category>
    <summary>You know those cute little mascots that follow your cursor like needy pets? I wanted one. So I built it. No frameworks, no libraries, no npm, no bs. Just pure VanillaJS and some emotional support from...</summary>
    <content type="html">&lt;p&gt;You know those cute little mascots that follow your cursor like needy pets? I wanted one. So I built it. No frameworks, no libraries, no npm, no bs.&lt;/p&gt;&#xA;&lt;p&gt;Just pure VanillaJS and some emotional support from chatgpt (read as: hair scratching because I think I would&amp;rsquo;ve done it faster by taking support from stackoverflow instead).&lt;/p&gt;&#xA;&lt;p&gt;The [cyb]org to my oxal &amp;lt;3 :&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/handcrafted-mascot-on-my-blog-like-its-2007-2.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-1-create-a-sprite&#34;&gt;Step 1: Create a Sprite&lt;/h3&gt;&#xA;&lt;p&gt;I asked chatgpt to create a cute cyborg for me, then I put it in piskel editor and edited it heavily, changed the hands, legs, clothes, eyes, animated it. Basically broke it apart and fixed it.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;cyborgImgSprite&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;/static/img/cyborg-sprite.png&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;SPRITE_CONFIG&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;frames&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;9&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;frameWidth&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;64&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;frameHeight&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;64&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;animationSpeed&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;100&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1000&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;spriteSheet&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;cyborgImgSprite&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;};&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Nine frames. Because he’s inspired by the way of the nine tales!&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-2-some-state-to-remember-where-our-buddy-is&#34;&gt;Step 2: Some state to remember where our buddy is&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;targetX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerWidth&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;targetY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerHeight&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentMouseX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentMouseY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentFrame&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;isFlipped&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;false&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We track position, target, mouse, animation frame, and whether he’s moonwalking. Globals are not evil if you use them like this.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-3-follow-the-mouse-and-jump-on-click&#34;&gt;Step 3: Follow the mouse and jump on click&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;setupEventListeners&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;addEventListener&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;mousemove&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;handleMouseMove&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;addEventListener&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;click&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;handleClick&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;handleMouseMove&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;currentMouseX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;clientX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;currentMouseY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;clientY&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;handleClick&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;targetX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;clientX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;targetY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;e&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;clientY&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Mouse moves? He looks. Click? He lunges.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-4-sometimes-he-just-needs-to-move&#34;&gt;Step 4: Sometimes he just needs to move&lt;/h3&gt;&#xA;&lt;p&gt;Go listen to &lt;a href=&#34;https://www.youtube.com/watch?v=0XFudmaObLI&#34;&gt;dancin krono remix&lt;/a&gt;. N&amp;gt;o&amp;lt;W&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;moveEvery5Seconds&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;MOVE_INTERVAL&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;Math&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;abs&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;||&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Math&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;abs&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;directionX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Math&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;random&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0.5&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;?&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#1f2328&#34;&gt;targetX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;70&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;directionX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#1f2328&#34;&gt;isFlipped&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;directionX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;transform&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;isFlipped&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;?&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;translate(-50%, -50%) scaleX(-1)&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;translate(-50%, -50%) scaleX(1)&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;lastMoveY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If left alone, he shuffles side to side every few seconds like he’s trying to get your attention.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-5-glide-toward-the-target-like-a-smooooooooth-criminal&#34;&gt;Step 5: Glide toward the target like a smooooooooth criminal&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;updateMascotPosition&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;targetX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;EASING&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;targetY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;EASING&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerWidth&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;||&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;targetX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerWidth&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerHeight&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;||&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;targetY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;innerHeight&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;drawMascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;left&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;px&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;top&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascotY&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;px&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;CSS left and top. You’ve done this in 2007, you can do it again.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-999-animate-the-sprite-so-its-not-a-cardboard-cutout&#34;&gt;Step 999: Animate the sprite so it’s not a cardboard cutout&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;updateSpriteAnimation&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;lastAnimationDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;lastAnimationDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;SPRITE_CONFIG&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;animationSpeed&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;lastAnimationDt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;currentFrame&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;currentFrame&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;%&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;SPRITE_CONFIG&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;frames&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;bgPositionX&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentFrame&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;SPRITE_CONFIG&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;frameWidth&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;backgroundPosition&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;`-&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;bgPositionX&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;px 0`&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Frame changes = walking illusion. Your cyborg is alive. ALIVE.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-9000-tick-tock-tick-tock&#34;&gt;Step 9000: Tick tock tick tock&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;ticker&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentTime&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Date&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;now&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;currentTime&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;prevFrameTime&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;/&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1000&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;prevFrameTime&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;currentTime&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;updateMascotPosition&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;moveEvery5Seconds&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;updateSpriteAnimation&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;drawMascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;dt&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;requestAnimationFrame&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(()&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;ticker&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;));&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The game loop. Every sufficiently large program ends up reimplementing either ECS or a game loop.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step--1-and-finally&#34;&gt;Step -1: And finally&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;createMascotElement&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;spriteConfig&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;createElement&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;div&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;id&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;cursor-mascot&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;createElement&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;style&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;textContent&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;`&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;        #cursor-mascot {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            position: fixed;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            width: &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;spriteConfig&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;frameWidth&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;px;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            height: &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;spriteConfig&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;frameHeight&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;px;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            background-image: url(&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;spriteConfig&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;spriteSheet&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            background-repeat: no-repeat;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            pointer-events: none;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            z-index: 9999;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            transform: translate(-50%, -50%);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;            transition: transform 0.1s ease;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;        }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;    `&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;head&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;appendChild&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;style&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The DOM!&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-0-init&#34;&gt;Step 0: Init!&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;initMascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;createMascotElement&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;SPRITE_CONFIG&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;appendChild&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;setupEventListeners&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;ticker&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;mascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;addEventListener&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;DOMContentLoaded&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;initMascot&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Result?&lt;/p&gt;&#xA;&lt;p&gt;You’ve got an animated cyborg mascot that follows clicks, moves on its own, and flips direction like a moody anime character. All in ~100 lines of JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;No react components were harmed in the making of this blog post. I promise.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/vps-clean-up-space/</id>
    <title>Vps Clean Up Space</title>
    <updated>2025-07-04T00:00:00Z</updated>
    <published>2025-07-04T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/vps-clean-up-space/"></link>
    <category term="self"></category>
    <summary>Looking df -h my /dev/sda1 was 98% full. Oh boy! Lets dig deeper. root@ark ~$ sudo du -h --max-depth = 1 / | sort -hr | head -n 10 37G / 22G /var 8.0G /srv 3.8G /root 2.8G /usr 163M /boot 51M /tmp 6.7...</summary>
    <content type="html">&lt;p&gt;Looking &lt;code&gt;df -h&lt;/code&gt; my &lt;code&gt;/dev/sda1&lt;/code&gt; was 98% full. Oh boy! Lets dig deeper.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@ark ~$ sudo du -h --max-depth&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; / &lt;span style=&#34;color:#1f2328&#34;&gt;|&lt;/span&gt; sort -hr &lt;span style=&#34;color:#1f2328&#34;&gt;|&lt;/span&gt; head -n &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;37G     /&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;22G     /var&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;8.0G    /srv&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;3.8G    /root&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;2.8G    /usr&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;163M    /boot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;51M     /tmp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;6.7M    /etc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;1.6M    /run&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;100K    /home&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Looks like &lt;code&gt;/var&lt;/code&gt; needs to be cleaned up.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark /var$ sudo du -h --max-depth=4 . | sort -hr | head -n 20&#xA;22G     .&#xA;17G     ./lib&#xA;14G     ./lib/docker&#xA;5.7G    ./log&#xA;5.4G    ./lib/docker/overlay2&#xA;5.0G    ./lib/docker/containers&#xA;3.5G    ./lib/docker/volumes&#xA;3.4G    ./lib/docker/containers/8554cc18a1515c51136d24a1ae745473b8b9cf443305d6fe0a5ceca2256e2506&#xA;3.3G    ./log/journal/7b782f4d055049cda23d8caf1a4f61da&#xA;3.3G    ./log/journal&#xA;1.8G    ./lib/postgresql/12/main&#xA;1.8G    ./lib/postgresql/12&#xA;1.8G    ./lib/postgresql&#xA;1.4G    ./lib/docker/overlay2/6pi8vs313frnq56clp4j9ieh8&#xA;1.2G    ./lib/docker/containers/79f20b45bbdc34b143a9a747bbd2c79f141767df0a58544ba23db518dbcfc9d2&#xA;1.1G    ./lib/docker/volumes/ee4e3b66f872305602df73451e63c90c298fd51c91e282064957acef7854af5c&#xA;1.1G    ./lib/docker/volumes/80e7fa85974888ad947cd8e188bb48a55008d4cdae249beecab06d4706fbdaf4&#xA;1.1G    ./lib/docker/volumes/79c6254960b070c4e2b071a9296d269cb87e2fdac777f84c2d00e22d04a429e1&#xA;828M    ./lib/docker/overlay2/eb8dc823da628dade5a3adb3e4a17347d6db67c20574fb6ad10da470de8979ce&#xA;711M    ./lib/docker/overlay2/a0e634e68c79c2f929e92c3b2f3ea0f5cbcd9095f54814381de8bff2786f46ed&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The immediate thing visible to me is to clean up journalctl logs.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark /var$    journalctl --disk-usage&#xA;Archived and active journals take up 3.2G in the file system.&#xA;&#xA;root@ark /var$    sudo journalctl --vacuum-size=500M&#xA;Vacuuming done, freed 0B of archived journals from /run/log/journal.&#xA;Vacuuming done, freed 0B of archived journals from /var/log/journal.&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-0000000007ed0b94-00062b30e109733e.journal (72.0M).&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-0000000007edf06e-00062b91ca3f00e0.journal (72.0M).&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-0000000007eed415-00062bfbd94c81b2.journal (72.0M).&#xA;...&#xA;...&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-00000000080f3662-000637307aef0b62.journal (8.0M).&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-00000000080f4504-000637346a83cc35.journal (8.0M).&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-00000000080f54b0-0006373c05baad8b.journal (8.0M).&#xA;Deleted archived journal /var/log/journal/7b782f4d055049cda23d8caf1a4f61da/system@8dd0f01b2b5e40f3b03f700a85ff57e6-00000000080f643e-0006374388ed8201.journal (8.0M).&#xA;Vacuuming done, freed 2.7G of archived journals from /var/log/journal/7b782f4d055049cda23d8caf1a4f61da.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then I ran&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark ~$ docker container prune&#xA;root@ark ~$ docker image prune&#xA;root@ark ~$ docker images -a&#xA;# and manually removed some old images&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;TIL: &lt;code&gt;docker system df&lt;/code&gt; is a useless command&lt;/p&gt;&#xA;&lt;p&gt;Another thing which saved almost 4G of data was to truncate the container logs:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo find /var/lib/docker/containers/ -name &amp;quot;*-json.log&amp;quot; -exec truncate -s 0 {} \;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And bam I recoverd around 11G total&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark ~$ df -h&#xA;Filesystem      Size  Used Avail Use% Mounted on&#xA;udev            1.9G  4.0K  1.9G   1% /dev&#xA;tmpfs           385M  1.6M  383M   1% /run&#xA;/dev/sda1        38G   26G   11G  71% /&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/my-vps-security-mess/</id>
    <title>My VPS security mess</title>
    <updated>2025-06-20T00:00:00Z</updated>
    <published>2025-06-20T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/my-vps-security-mess/"></link>
    <category term="self"></category>
    <summary>So it turns out I messed up. root@ark ~$ cat /etc/ssh/sshd_config | grep PasswordAuth -C 2 2 ↵ # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication no #PermitEmptyPas...</summary>
    <content type="html">&lt;p&gt;So it turns out I messed up.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@ark ~$ cat /etc/ssh/sshd_config &lt;span style=&#34;color:#1f2328&#34;&gt;|&lt;/span&gt; grep PasswordAuth -C &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;                                                                     &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; ↵&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;# To disable tunneled clear text passwords, change to no here!&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;#PasswordAuthentication no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;#PermitEmptyPasswords no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;#       PermitTTY no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;#       ForceCommand cvs server&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PasswordAuthentication yes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;WAT? I have &lt;code&gt;PasswordAuthentication yes&lt;/code&gt;? The first thing I &lt;strong&gt;ALWAYS&lt;/strong&gt; do when I setup a new VPS is to go and disable this.&lt;/p&gt;&#xA;&lt;p&gt;I have muscle memory of doing &lt;code&gt;vim /etc/ssh/sshd_config&lt;/code&gt;, grep for &lt;code&gt;/PasswordAuthetication&lt;/code&gt; (using vim &lt;code&gt;/&lt;/code&gt;) and uncommenting the line.&lt;/p&gt;&#xA;&lt;p&gt;And this is where the blunder happened, I might have gone to the &amp;ldquo;2nd search&amp;rdquo; result which was &lt;code&gt;#PasswordAuthentication yes&lt;/code&gt; instead of the first search result of &lt;code&gt;#PasswordAuthentication no&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So turns out I have my server open to raid for approximately 3.5 years:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark ~$ uptime&#xA; 05:42:51 up 1386 days,  7:07,  1 user,  load average: 0.02, 0.12, 0.16&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;lets-count-the-pirates&#34;&gt;Let&amp;rsquo;s count the pirates&lt;/h2&gt;&#xA;&lt;p&gt;I hope I have &lt;code&gt;fail2ban&lt;/code&gt; installed and working. Who really checks if fail2ban works as intended, we just hope it does.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark /var/log$ sudo fail2ban-client status&#xA;Status&#xA;|- Number of jail:      1&#xA;`- Jail list:   sshd&#xA;root@ark /var/log$ sudo fail2ban-client status sshd&#xA;Status for the jail: sshd&#xA;|- Filter&#xA;|  |- Currently failed: 7&#xA;|  |- Total failed:     4501238&#xA;|  `- File list:        /var/log/auth.log&#xA;`- Actions&#xA;   |- Currently banned: 1&#xA;   |- Total banned:     591794&#xA;   `- Banned IP list:   103.187.147.35&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Checking how many &lt;code&gt;BAN&lt;/code&gt; actions have occured:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;root@ark /var/log$ cat /var/log/fail2ban.log | grep Ban | wc -l&#xA;271688&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This gives me further information of fail2ban bans:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo iptables -L -n &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Reading from here: &lt;a href=&#34;https://serverfault.com/questions/119299/my-var-log-btmp-file-is-huge-what-should-i-do&#34;&gt;https://serverfault.com/questions/119299/my-var-log-btmp-file-is-huge-what-should-i-do&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also learnt about the &lt;code&gt;lastb&lt;/code&gt; command and did a dump like so:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ lastb -a | wc -l&#xA;2464879&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;and to find total unique IP&amp;rsquo;s these bad logins came from:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ lastb -a | awk &#39;{print $10}&#39; | grep -v ^192 | sort | uniq | sed &#39;/^$/d&#39; &amp;gt; bad_login_ips.txt&#xA;$ cat bad_login_ips.txt | wc -l&#xA;41193&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But wait, I don&amp;rsquo;t want to check which logins failed. I want to check WHO_GOT_IN!??!!?!??!&lt;/p&gt;&#xA;&lt;p&gt;Luckily that was simple:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ last -a&#xA;root     pts/1        Thu Jun 19 05:14   still logged in    xxx.xxx.xxx.xxx&#xA;root     pts/0        Thu Jun 19 05:13 - 05:23  (00:09)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Thu Jun 19 04:34 - 04:40  (00:05)     xxx.xxx.xxx.xxx&#xA;root     pts/1        Wed Jun 18 12:31 - 12:31  (00:00)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Wed Jun 18 08:23 - 12:49  (04:25)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Tue Jun 10 11:41 - 11:41  (00:00)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Sun May 25 08:44 - 08:52  (00:08)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Wed Apr 16 20:28 - 20:33  (00:05)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Wed Feb 26 19:17 - 19:18  (00:01)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Fri Jan 17 10:43 - 10:44  (00:00)     xxx.xxx.xxx.xxx&#xA;root     pts/0        Fri Jan 17 10:43 - 10:43  (00:00)     xxx.xxx.xxx.xxx&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Those all &lt;em&gt;roughly&lt;/em&gt; look like my ip. So I guess I&amp;rsquo;m safe. No malicious pirate was able to raid my server.&lt;/p&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;So it turns out keeping &lt;code&gt;PasswordAuthentication yes&lt;/code&gt; wasn&amp;rsquo;t such a big deal after all.&lt;/p&gt;&#xA;&lt;p&gt;Around 2.5 million bad login attempts were made from ~40,000 unique IP&amp;rsquo;s and none were succesful. Maybe my root passwords were secure enough that with fail2ban there was no way to brute force it.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/elisp-for-clojure-developers/</id>
    <title>Elisp For Clojure Developers</title>
    <updated>2025-06-19T00:00:00Z</updated>
    <published>2025-06-19T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/elisp-for-clojure-developers/"></link>
    <category term="self"></category>
    <summary>This is not a blog post, but a continually updated resource. Last updated on 19th June 2025. My magic wand wish would have been to use clojure to script emacs. But not all dreams can come true, learni...</summary>
    <content type="html">&lt;blockquote&gt;&#xA;&lt;p&gt;This is not a blog post, but a continually updated resource. Last updated on 19th June 2025.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;My magic wand wish would have been to use clojure to script emacs. But not all dreams can come true, learning bits and pieces of elisp over the years have paid dividends to me.&lt;/p&gt;&#xA;&lt;p&gt;I would argue that you no longer need to &lt;em&gt;learn&lt;/em&gt; elisp the way you had to previously, with LLMs a lot of code can be generated but you still need to understand the fundamaentals.&lt;/p&gt;&#xA;&lt;p&gt;As a clojure developer, the best way to learn elisp fundamaentals is to compare them with Clojure. This document will try to do exactly that, it will compare &lt;strong&gt;Clojure&lt;/strong&gt; and &lt;strong&gt;Emacs Lisp&lt;/strong&gt; across syntax, semantics, and standard libraries. Also tips, tricks, and TIL&amp;rsquo;s I come across.&lt;/p&gt;&#xA;&lt;h3 id=&#34;data-structures-and-types&#34;&gt;Data Structures and Types&lt;/h3&gt;&#xA;&lt;h4 id=&#34;numbers-and-scalars&#34;&gt;Numbers and Scalars&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clojure supports integers, floating-point, and rational numbers (e.g. &lt;code&gt;3/2&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;li&gt;Emacs Lisp has only integers and floats.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; clojure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+ &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1.0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; 2.0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;/ &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; 1 (integer division)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; elisp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+ &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1.0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; 2.0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;/ &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;strings-and-characters&#34;&gt;Strings and Characters&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; clojure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;str &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;hello, &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;world&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; &amp;#34;hello, world&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; character&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;\a&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; \a &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; elisp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;concat &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;hello, &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;world&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; &amp;#34;hello, world&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; character&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;?a&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; 97&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;booleans-and-truthiness&#34;&gt;Booleans and Truthiness&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clojure: &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, &lt;code&gt;nil&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Elisp: &lt;code&gt;t&lt;/code&gt; (true), &lt;code&gt;nil&lt;/code&gt; (false and empty list)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; clojure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;  &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;true&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;  &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;nil&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;  &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; elisp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;t&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;nil&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:yes&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;:no&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;lists-and-sequences&#34;&gt;Lists and Sequences&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; clojure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;first &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;rest &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;  &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; (2 3)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; elisp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;car&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;cdr&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;ox-list&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; (2 3)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;vectors-arrays&#34;&gt;Vectors (Arrays)&lt;/h3&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;      &lt;span style=&#34;color:#57606a&#34;&gt;;; vector&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;vector&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; [1 2 3]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;hash-maps-and-alists&#34;&gt;Hash Maps and Alists&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:a&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:b&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;get &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:a&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:b&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:a&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;al&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;a&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;.&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;b&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;.&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;cdr&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;assoc&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;&amp;#39;a&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;al&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; =&amp;gt; 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;sets&#34;&gt;Sets&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clojure: &lt;code&gt;#{1 2}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;TODO: elisp&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;functions-and-variables&#34;&gt;Functions and Variables&lt;/h3&gt;&#xA;&lt;h4 id=&#34;function-definitions&#34;&gt;Function Definitions&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defn &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;add&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+ &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defun&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;add&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;arity-and-arguments&#34;&gt;Arity and Arguments&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defn &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;greet&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;([]&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;greet&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;World&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;([&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;str &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Hello, &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defun&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;greet&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;&amp;amp;optional&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Greet NAME or default to \&amp;#34;World\&amp;#34;.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;or&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;World&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;concat&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Hello, &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;anonymous-functions&#34;&gt;Anonymous Functions&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;map &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;#&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;inc &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;])&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;mapcar&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;lambda&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;variables&#34;&gt;Variables&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;...&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defvar&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;control-flow&#34;&gt;Control Flow&lt;/h3&gt;&#xA;&lt;h4 id=&#34;conditionals&#34;&gt;Conditionals&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;if &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;even?&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:even&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:odd&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;evenp&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;&amp;#39;even&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;&amp;#39;odd&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;let-and-binding&#34;&gt;let and Binding&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+ &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;y&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;sequential-execution&#34;&gt;Sequential Execution&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;do &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;println &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;one&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;println &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;two&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;progn&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;message&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;one&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;message&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;two&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;macros&#34;&gt;Macros&lt;/h3&gt;&#xA;&lt;h4 id=&#34;defining-macros&#34;&gt;Defining Macros&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defmacro &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;unless&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;pred&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#0550ae&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;if &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;not &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;~&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;pred&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;do &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;~@&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defmacro&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;unless&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;pred&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;&amp;amp;rest&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#0550ae&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;not&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;,&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;pred&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;progn&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;,@&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;syntax-quoting&#34;&gt;Syntax Quoting&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clojure: ```, &lt;code&gt;~&lt;/code&gt;, &lt;code&gt;~@&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Elisp: &lt;code&gt;`&lt;/code&gt;, &lt;code&gt;,&lt;/code&gt;, &lt;code&gt;,@&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;concurrency-and-state&#34;&gt;Concurrency and State&lt;/h3&gt;&#xA;&lt;h4 id=&#34;clojure&#34;&gt;Clojure&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;atom&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;swap!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;inc&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;emacs-lisp&#34;&gt;Emacs Lisp&lt;/h4&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;th&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;make-thread&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;lambda&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;message&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Hello&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;thread-join&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;th&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;namespaces-and-libraries&#34;&gt;Namespaces and Libraries&lt;/h3&gt;&#xA;&lt;h4 id=&#34;namespaces&#34;&gt;Namespaces&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Clojure: &lt;code&gt;(ns my.ns ...)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Elisp: &lt;code&gt;(provide &#39;my-lib)&lt;/code&gt;, &lt;code&gt;(require &#39;my-lib)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;standard-libraries&#34;&gt;Standard Libraries&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;seq.el&lt;/code&gt;: sequence functions (&lt;code&gt;seq-map&lt;/code&gt;, &lt;code&gt;seq-filter&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;cl-lib&lt;/code&gt;: optional CL functions (&lt;code&gt;cl-loop&lt;/code&gt;, &lt;code&gt;cl-remove-if&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;subr-x&lt;/code&gt;: modern extensions (&lt;code&gt;string-join&lt;/code&gt;, &lt;code&gt;when-let&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;table&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;Operation&lt;/th&gt;&#xA;&lt;th&gt;Clojure&lt;/th&gt;&#xA;&lt;th&gt;Emacs Lisp&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;map/filter/reduce&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;map&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;seq-map&lt;/code&gt;, &lt;code&gt;seq-filter&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;assoc/update&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;assoc&lt;/code&gt;, &lt;code&gt;update&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;setf&lt;/code&gt;, &lt;code&gt;alist-get&lt;/code&gt;, &lt;code&gt;puthash&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;concat strings&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;str&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;concat&lt;/code&gt;, &lt;code&gt;format&lt;/code&gt;, &lt;code&gt;string-join&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;&lt;thead&gt;&#xA;&lt;tr&gt;&#xA;&lt;th&gt;Clojure Core Function&lt;/th&gt;&#xA;&lt;th&gt;Clojure Example&lt;/th&gt;&#xA;&lt;th&gt;Emacs Lisp Example&lt;/th&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/thead&gt;&#xA;&lt;tbody&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;map&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(map inc [1 2 3])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(mapcar #&#39;1+ &#39;(1 2 3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;reduce&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(reduce + [1 2 3 4])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(apply #&#39;+ &#39;(1 2 3 4))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;filter&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(filter even? [1 2 3 4])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(seq-filter #&#39;evenp &#39;(1 2 3 4))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;first&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(first [1 2 3])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(car &#39;(1 2 3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;rest&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(rest [1 2 3])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(cdr &#39;(1 2 3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;cons&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(cons 0 [1 2 3])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(cons 0 &#39;(1 2 3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;conj&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(conj [1 2] 3)&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(append &#39;(1 2) &#39;(3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;nth&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(nth [10 20 30] 1)&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(nth 1 &#39;(10 20 30))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;count&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(count [1 2 3])&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(length &#39;(1 2 3))&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;tr&gt;&#xA;&lt;td&gt;&lt;code&gt;assoc&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(assoc {:a 1} :b 2)&lt;/code&gt;&lt;/td&gt;&#xA;&lt;td&gt;&lt;code&gt;(alist-put &#39;(:a . 1) :b 2)&lt;/code&gt;&lt;/td&gt;&#xA;&lt;/tr&gt;&#xA;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;This guide should help Clojure developers understand and adapt to Elisp idioms and semantics.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;References: Emacs Lisp Manual, Clojure.org, built-in Emacs libraries.&lt;/em&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/powerful-emacs-hacks-paste-images-markdown/</id>
    <title>Powerful emacs hacks: paste images to markdown from clipboard</title>
    <updated>2025-06-19T00:00:00Z</updated>
    <published>2025-06-19T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/powerful-emacs-hacks-paste-images-markdown/"></link>
    <category term="programming"></category>
    <summary>Why do I love emacs? Let me show you. Problem I want to add images to my blog. I write them in markdown in emacs I often take screenshots on mac which saves it to clipboard (or want to paste images fr...</summary>
    <content type="html">&lt;p&gt;Why do I love emacs? Let me show you.&lt;/p&gt;&#xA;&lt;h2 id=&#34;problem&#34;&gt;Problem&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I want to add images to my blog.&lt;/li&gt;&#xA;&lt;li&gt;I write them in markdown in emacs&lt;/li&gt;&#xA;&lt;li&gt;I often take screenshots on mac which saves it to clipboard (or want to paste images from my clipboard manager)&lt;/li&gt;&#xA;&lt;li&gt;I want to paste those screenshots into a specific directory based on the file I am editing&lt;/li&gt;&#xA;&lt;li&gt;If I am editing &lt;code&gt;my-new-blog-post.md&lt;/code&gt; I want the images to be saved from clipboard -&amp;gt; &lt;code&gt;../media/my-new-blog-post-1.png&lt;/code&gt;,  &lt;code&gt;../media/my-new-blog-post-2.png&lt;/code&gt; and so on.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;-the-emacs-magic&#34;&gt;✨ The Emacs Magic&lt;/h2&gt;&#xA;&lt;p&gt;I need to spend no time messing around with plugins, or extensions, or fancy editors, or shortcuts, or automations.&lt;/p&gt;&#xA;&lt;p&gt;I go straight to my trusted emacs lisp code, and hack something up with the help of llm&amp;rsquo;s:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defun&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;genox/screenshot-from-clipboard&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Save clipboard image to a uniquely named file in ../media/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;relative to current file, and insert a markdown image link.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;interactive&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;let*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;basename&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;file-name-base&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;buffer-file-name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;media-dir&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;expand-file-name&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;../media/&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-name-directory&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;buffer-file-name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#57606a&#34;&gt;;; Ensure media directory exists&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;unless&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-exists-p&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;media-dir&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;make-directory&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;media-dir&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;t&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#57606a&#34;&gt;;; Find a unique filename&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;expand-file-name&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;format&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;%s-%d.png&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;basename&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;media-dir&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;while&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-exists-p&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;1+&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;expand-file-name&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;format&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;%s-%d.png&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;basename&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;counter&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;media-dir&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#57606a&#34;&gt;;; Save clipboard image using pngpaste&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;eq&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;system-type&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;&amp;#39;darwin&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;call-process&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;pngpaste&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;nil&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;nil&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;nil&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;error &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Clipboard image capture only supported on macOS with pngpaste&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#57606a&#34;&gt;;; Insert markdown image link&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#57606a&#34;&gt;;; Insert markdown image link with path starting from /media/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;when&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-exists-p&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;insert&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;format&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;![](/media/%s)&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-name-nondirectory&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;filename&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;markdown-display-inline-images&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;newline&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Save the above function in my &lt;code&gt;init.el&lt;/code&gt; emacs configuration file. Evaluate it. Switch to my markdown buffer. Hit &lt;code&gt;M-x genox/screenshot-from-clipboard&lt;/code&gt; and it saves the image and pastes this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;![](/media/my-new-blog-post-1.png)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;which then auto expands to an inline image using &lt;code&gt;markdown-display-inline-images&lt;/code&gt;. Magic within minutes!! No messing around with Obsidian plugins, or creating custom extensions. Code -&amp;gt; eval -&amp;gt; test -&amp;gt; [blog]? -&amp;gt; move on.&lt;/p&gt;&#xA;&lt;p&gt;See my &lt;a href=&#34;https://oxal.org/blog/powerful-emacs-hacks-image-markdown/&#34;&gt;previous blog&lt;/a&gt; post on how I get emacs to understand where to find &lt;code&gt;/media/my-new-blog-post-1.png&lt;/code&gt; relative to my file.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/powerful-emacs-hacks-image-markdown/</id>
    <title>Powerful emacs hacks: patching markdown-mode</title>
    <updated>2025-06-18T00:00:00Z</updated>
    <published>2025-06-18T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/powerful-emacs-hacks-image-markdown/"></link>
    <category term="programming"></category>
    <summary>I recently read a beginners guide to extending emacs and it describes why I love emacs perfectly: I haven’t written plugins for other editors extensively, but I can tell you this: emacs doesn’t just m...</summary>
    <content type="html">&lt;p&gt;I recently read &lt;a href=&#34;https://blog.tjll.net/a-beginners-guide-to-extending-emacs/&#34;&gt;a beginners guide to extending emacs&lt;/a&gt;&#xA;and it describes why I love emacs perfectly:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I haven’t written plugins for other editors extensively, but I can tell you this: emacs doesn’t just make deep customization available, but it actively encourages you to make an absolute customization messes masterpieces. Core editor functions aren’t just documented, but often include tidbits about “you probably want to see this other variable” or “here’s how you should use this”.&lt;/p&gt;&#xA;&lt;p&gt;Not only that, but emacs happily hands you functions shaped like nuclear warheads like advice-add (that let you override any function) that can absolutely obliterate your editor if you hold it the wrong way. Of course, this also grants you unlimited power.&lt;/p&gt;&#xA;&lt;p&gt;Remember that emacs is designed to be torn apart and rearranged.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;So let me show you this philosophy with a walk through of how I hack emacs to my liking.&lt;/p&gt;&#xA;&lt;h2 id=&#34;problem&#34;&gt;Problem&lt;/h2&gt;&#xA;&lt;p&gt;I write my blog posts in markdown, and use my handwritten static site&#xA;generator &lt;a href=&#34;https://github.com/oxalorg/genox&#34;&gt;genox&lt;/a&gt; to convert all&#xA;markdown files into a nested directory of html files.&lt;/p&gt;&#xA;&lt;p&gt;For images to show up correctly in my html files, they need to be&#xA;written like so in markdown:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;![](/media/mental-model-shift-to-start-blogging-1.png)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This image is stored under &lt;code&gt;src/media/&lt;/code&gt; but my markdown file&#xA;referencing this image is stored in &lt;code&gt;src/blog/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Now when I&amp;rsquo;m editing my markdown file (and I link to an image) I don&amp;rsquo;t&#xA;want to see this line, I want to see the &lt;em&gt;actual&lt;/em&gt; image right there.&lt;/p&gt;&#xA;&lt;p&gt;Something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/powerful-emacs-hacks-image-markdown-4.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;And emacs does support it, but only if it can find a correct relative&#xA;link to it. But emacs can&amp;rsquo;t understand where to look for a file&#xA;starting with &lt;code&gt;/media/..&lt;/code&gt; for the file I have opened.&lt;/p&gt;&#xA;&lt;h3 id=&#34;if-you-were-using-any-other-editor&#34;&gt;If you were using any other editor&lt;/h3&gt;&#xA;&lt;p&gt;If you were editing this inside a browser using some CMS then you wouldn&amp;rsquo;t have the problem, as &lt;code&gt;/media&lt;/code&gt; would be served by your http server. But I am editing my blog posts inside emacs. Like me, most devs use an editor, espeically if they are using static site generators. Editor like emacs / vscode / obsidian support displaying images given they can resolve the path correctly to a file. (vim doesn&amp;rsquo;t support displaying inline images as far as I know?, maybe gui vim/neovim does)&lt;/p&gt;&#xA;&lt;p&gt;These editors don&amp;rsquo;t understand where to render &lt;code&gt;/media&lt;/code&gt; from. Some editors try to render it from git project root. Some editors need extra plugins to resolve the file paths. None of this works easily.&lt;/p&gt;&#xA;&lt;p&gt;Emacs, by default, tries to open &lt;code&gt;/media/...&lt;/code&gt; from the actual root of your filesystem which obviously fails.&lt;/p&gt;&#xA;&lt;p&gt;In my project, the images are actually stored in a &lt;code&gt;../media/&lt;/code&gt; folder relative to the Markdown file of the blog post. So Emacs needed a little help.&lt;/p&gt;&#xA;&lt;h2 id=&#34;exploration&#34;&gt;Exploration&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I hit &lt;code&gt;SPC h d f&lt;/code&gt; my shortcut to call &lt;code&gt;(describe-function)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I search for &lt;code&gt;markdown inline image&lt;/code&gt; and I find a function called &lt;code&gt;markdown-toggle-inline-images&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;I look up it&amp;rsquo;s source, it takes me to &lt;code&gt;makrdown-mode.el&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I see something called as &lt;code&gt;markdown-translate-filename-function&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Be amazed, thank the library developers for thinking of this use case&lt;/li&gt;&#xA;&lt;li&gt;Ask chatgpt for a quick translate function:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defun&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;genox/markdown-translate-image-path&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;path&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Translate /media/... image links to ../media/... relative to buffer.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;string-prefix-p&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;/media/&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;path&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;((&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;path*&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;expand-file-name&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&#x9;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;substring&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;path&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;7&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; strip &amp;#34;/media/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&#x9;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;expand-file-name&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;../media/&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;file-name-directory&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;buffer-file-name&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))))))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;message&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Markdown path&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;message&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;path*&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#953800&#34;&gt;path*&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#953800&#34;&gt;path&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;add-hook&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;&amp;#39;markdown-mode-hook&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;lambda&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;setq-local&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;markdown-translate-filename-function&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#6639ba&#34;&gt;#&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;genox/markdown-translate-image-path&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;7&#34;&gt;&#xA;&lt;li&gt;It doesn&amp;rsquo;t work :(&lt;/li&gt;&#xA;&lt;li&gt;Start debugging&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;-the-emacs-magic&#34;&gt;✨ The Emacs Magic&lt;/h3&gt;&#xA;&lt;p&gt;I read the code for &lt;code&gt;markdown-toggle-inline-images&lt;/code&gt; to see that it&amp;rsquo;s calling &lt;code&gt;markdown-display-inline-images&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Looking at the code I see this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/powerful-emacs-hacks-image-markdown-1.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Voila. This function only uses &lt;code&gt;markdown-translate-filename-function&lt;/code&gt; to download a remote file. If it&amp;rsquo;s not a valid URL, then it won&amp;rsquo;t set the file correctly.&lt;/p&gt;&#xA;&lt;p&gt;That is not what I want.&lt;/p&gt;&#xA;&lt;p&gt;So I patch the above code quickly:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/powerful-emacs-hacks-image-markdown-3.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Re-evaluate it right there (emacs is a live programming environment, you can think of it as hot swapping of code), switch to my blog post buffer and check if it works! And it does :D&lt;/p&gt;&#xA;&lt;p&gt;I then copy the entire function and add it to my emacs config file &lt;code&gt;init.el&lt;/code&gt; and done! I&amp;rsquo;ve patched a third party library emacs function within minutes.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;use-package&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;markdown-mode&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#6639ba&#34;&gt;:config&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;defun&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;markdown-display-inline-images&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#0550ae&#34;&gt;...&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;There are probably better ways to achieve this, but I got this done within minutes, and now I shall move on until this breaks after 5 years and I spend some more time looking at it.&lt;/p&gt;&#xA;&lt;p&gt;If this was any other editor, I&amp;rsquo;d either need to create my own extension, patch the existing extension and get that setup locally, or maybe even fork the entire editor to get this done?&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Read next post in the series: &lt;a href=&#34;https://oxal.org/blog/powerful-emacs-hacks-paste-images-markdown/&#34;&gt;https://oxal.org/blog/powerful-emacs-hacks-paste-images-markdown/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/mental-model-shift-to-start-blogging/</id>
    <title>Mental model shift to start blogging more</title>
    <updated>2025-06-17T00:00:00Z</updated>
    <published>2025-06-17T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/mental-model-shift-to-start-blogging/"></link>
    <category term="self"></category>
    <summary>This quote 1 has motivated me to start blogging again: Slowly, slowly, the web was taken over by platforms. Your feeling of success is based on your platform’s algorithm, which may not have your inter...</summary>
    <content type="html">&lt;p&gt;This quote&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; has motivated me to start blogging again:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Slowly, slowly, the web was taken over by platforms. Your feeling of success is based on your platform’s algorithm, which may not have your interests at heart. Feeding your words to a platform is a vote for its values, whether you like it or not. And they roach-motel you by owning your audience, making you feel that it’s a good trade because you get “discovery.” (Though I know that chasing popularity is a fool’s dream.)&lt;/p&gt;&#xA;&lt;p&gt;Writing a blog on your own site is a way to escape all of that. Plus your words build up over time. That’s unique. Nobody else values your words like you do.&lt;/p&gt;&#xA;&lt;p&gt;Blogs are a backwater (the web itself is a backwater) but keeping one is a statement of how being online can work. Blogging as a kind of Amish performance of a better life.&#xA;— Matt Webb, Reflections on 25 years of Interconnected&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I&amp;rsquo;m conducting an expirement to help me get started.&lt;/p&gt;&#xA;&lt;p&gt;Rules&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt; I want to follow:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;3 blog post weekly&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;it&amp;rsquo;s okay to write something stupid or obvious&lt;/li&gt;&#xA;&lt;li&gt;don&amp;rsquo;t mess with any tooling, just goddamn write&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/mental-model-shift-to-start-blogging-1.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;^^&lt;sup id=&#34;fnref:3&#34;&gt;&lt;a href=&#34;#fn:3&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;3&lt;/a&gt;&lt;/sup&gt;this hits me hard haha as an &amp;ldquo;author of custom static site generator&amp;rdquo; &lt;sup id=&#34;fnref:4&#34;&gt;&lt;a href=&#34;#fn:4&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;&#xA;&lt;hr&gt;&#xA;&lt;ol&gt;&#xA;&lt;li id=&#34;fn:1&#34;&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://simonwillison.net/2025/Feb/19/matt-webb/&#34;&gt;https://simonwillison.net/2025/Feb/19/matt-webb/&lt;/a&gt;&amp;#160;&lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:2&#34;&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://interconnected.org/home/2020/09/10/streak&#34;&gt;https://interconnected.org/home/2020/09/10/streak&lt;/a&gt;&amp;#160;&lt;a href=&#34;#fnref:2&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:3&#34;&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://rakhim.org&#34;&gt;https://rakhim.org&lt;/a&gt;&amp;#160;&lt;a href=&#34;#fnref:3&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:4&#34;&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/oxalorg/genox&#34;&gt;https://github.com/oxalorg/genox&lt;/a&gt;&amp;#160;&lt;a href=&#34;#fnref:4&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/div&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojure-superclasses-interfaces-linear-heirarchy/</id>
    <title>Clojure Exploring Superclasses &amp; Interfaces Lineage</title>
    <updated>2025-04-21T00:00:00Z</updated>
    <published>2025-04-21T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojure-superclasses-interfaces-linear-heirarchy/"></link>
    <category term="clojure"></category>
    <category term="programming"></category>
    <summary>Ever found yourself deep in Clojure code, needing to implement a new type with deftype or defrecord , and suddenly your mind goes blank? &amp;ldquo;Wait, what interfaces does PersistentVector actually imp...</summary>
    <content type="html">&lt;p&gt;Ever found yourself deep in Clojure code, needing to implement a new type with &lt;code&gt;deftype&lt;/code&gt; or &lt;code&gt;defrecord&lt;/code&gt;, and suddenly your mind goes blank? &amp;ldquo;Wait, what interfaces does &lt;code&gt;PersistentVector&lt;/code&gt; actually implement? Which protocols should &lt;em&gt;my&lt;/em&gt; type satisfy to behave similarly?&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;I faced this exact same issue when I wanted to implement a specific type of queue in Clojure.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-standard-approach-clojurecoresupers&#34;&gt;The Standard Approach &lt;code&gt;clojure.core/supers&lt;/code&gt;&lt;/h2&gt;&#xA;&lt;p&gt;If I want to find all superclasses &amp;amp; interfaces of &lt;code&gt;clojure.lang.PersistentVector&lt;/code&gt; or &lt;code&gt;[]&lt;/code&gt; then I would user &lt;code&gt;supers&lt;/code&gt; like so:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;supers&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;type&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[]))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; #{clojure.lang.Reversible clojure.lang.APersistentVector&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     java.util.SequencedCollection clojure.lang.IMeta&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IPersistentCollection clojure.lang.IObj&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.ILookup java.lang.Comparable clojure.lang.Indexed&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     java.util.RandomAccess clojure.lang.Sequential&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IReduce java.io.Serializable clojure.lang.AFn&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IReduceInit java.lang.Iterable clojure.lang.Counted&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     java.util.Collection java.util.List clojure.lang.Associative&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IPersistentStack clojure.lang.IFn&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     java.util.concurrent.Callable clojure.lang.Seqable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IPersistentVector clojure.lang.IDrop java.lang.Object&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IHashEq clojure.lang.IKVReduce java.lang.Runnable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;;;     clojure.lang.IEditableCollection}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This gives a set, but it doesn&amp;rsquo;t reveal the structure.&lt;/p&gt;&#xA;&lt;p&gt;We can do better.&lt;/p&gt;&#xA;&lt;h2 id=&#34;visualising-the-lineage&#34;&gt;Visualising the lineage&lt;/h2&gt;&#xA;&lt;p&gt;I needed a way to see the inheritance and implementation hierarchy more clearly. When implementing my own types, I often want to know the &lt;em&gt;direct&lt;/em&gt; interfaces and then explore &lt;em&gt;their&lt;/em&gt; supers if needed.&lt;/p&gt;&#xA;&lt;p&gt;So I wrote this small recursive function:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defn &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;supers-lineage&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;class&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;reduce &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;fn &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;acc&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;kls&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;assoc &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;acc&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;kls&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;supers-lineage&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;kls&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;bases&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;class&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This function takes a class, gets its direct bases, and for each base, recursively calls itself, associating the base class/interface with its own nested hierarchy. &lt;code&gt;bases&lt;/code&gt; internally calls &lt;code&gt;.getSuperclass&lt;/code&gt; and &lt;code&gt;.getInterfaces&lt;/code&gt; and concats them.&lt;/p&gt;&#xA;&lt;h3 id=&#34;seeing-the-difference&#34;&gt;Seeing the difference&lt;/h3&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s try this on our vector type again:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;supers-lineage&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;type&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[]))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Outputs&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.APersistentVector&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; Base Abstract Class&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.AFn&lt;/span&gt;               &lt;span style=&#34;color:#57606a&#34;&gt;; Implements AFn&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;java.lang.Object&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,          &lt;span style=&#34;color:#57606a&#34;&gt;;  - AFn extends Object&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IFn&lt;/span&gt;             &lt;span style=&#34;color:#57606a&#34;&gt;;  - AFn implements IFn&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;java.util.concurrent.Callable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;, &lt;span style=&#34;color:#57606a&#34;&gt;;   - IFn extends Callable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#953800&#34;&gt;java.lang.Runnable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}}&lt;/span&gt;,          &lt;span style=&#34;color:#57606a&#34;&gt;;   - IFn extends Runnable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IPersistentVector&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IPersistentVector&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Associative&lt;/span&gt;       &lt;span style=&#34;color:#57606a&#34;&gt;;  - IPV extends Associative&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IPersistentCollection&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Seqable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;, &lt;span style=&#34;color:#57606a&#34;&gt;; - Assoc extends IPColl (which extends Seqable)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.ILookup&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;,       &lt;span style=&#34;color:#57606a&#34;&gt;; - Assoc extends ILookup&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Sequential&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,      &lt;span style=&#34;color:#57606a&#34;&gt;;  - IPV extends Sequential&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IPersistentStack&lt;/span&gt;   &lt;span style=&#34;color:#57606a&#34;&gt;;  - IPV extends IPStack&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IPersistentCollection&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Seqable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}}&lt;/span&gt;, &lt;span style=&#34;color:#57606a&#34;&gt;; - IPStack extends IPColl (which extends Seqable)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Reversible&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,      &lt;span style=&#34;color:#57606a&#34;&gt;;  - IPV extends Reversible&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Indexed&lt;/span&gt;           &lt;span style=&#34;color:#57606a&#34;&gt;;  - IPV extends Indexed&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.Counted&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}}&lt;/span&gt;,      &lt;span style=&#34;color:#57606a&#34;&gt;;   - Indexed extends Counted&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;java.lang.Iterable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,          &lt;span style=&#34;color:#57606a&#34;&gt;; Implements Iterable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;java.util.List&lt;/span&gt;                 &lt;span style=&#34;color:#57606a&#34;&gt;; Implements List&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;java.util.SequencedCollection&lt;/span&gt;  &lt;span style=&#34;color:#57606a&#34;&gt;;  - List extends SequencedCollection&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;java.util.Collection&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;java.lang.Iterable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}}}&lt;/span&gt;, &lt;span style=&#34;color:#57606a&#34;&gt;; - SeqColl extends Collection (which extends Iterable)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;java.util.RandomAccess&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,     &lt;span style=&#34;color:#57606a&#34;&gt;; Implements RandomAccess&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;java.lang.Comparable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,        &lt;span style=&#34;color:#57606a&#34;&gt;; Implements Comparable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;java.io.Serializable&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,        &lt;span style=&#34;color:#57606a&#34;&gt;; Implements Serializable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IHashEq&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;,       &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IHashEq&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IObj&lt;/span&gt;               &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IObj&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IMeta&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;,          &lt;span style=&#34;color:#57606a&#34;&gt;;  - IObj extends IMeta&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IEditableCollection&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;, &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IEditableCollection&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IReduce&lt;/span&gt;              &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IReduce&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IReduceInit&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;,     &lt;span style=&#34;color:#57606a&#34;&gt;;  - IReduce extends IReduceInit&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IKVReduce&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}&lt;/span&gt;,       &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IKVReduce&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#953800&#34;&gt;clojure.lang.IDrop&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{}}&lt;/span&gt;            &lt;span style=&#34;color:#57606a&#34;&gt;; Implements IDrop&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Look at that! Now we can clearly trace the lineage. We see that &lt;code&gt;clojure.lang.APersistentVector&lt;/code&gt; directly implements &lt;code&gt;clojure.lang.IPersistentVector&lt;/code&gt;, &lt;code&gt;java.util.List&lt;/code&gt;, &lt;code&gt;clojure.lang.IObj&lt;/code&gt;, etc. Furthermore, we can see that &lt;code&gt;IPersistentVector&lt;/code&gt; itself extends &lt;code&gt;Associative&lt;/code&gt;, &lt;code&gt;Sequential&lt;/code&gt;, &lt;code&gt;Indexed&lt;/code&gt;, and others. And we can even see that &lt;code&gt;Indexed&lt;/code&gt; extends &lt;code&gt;Counted&lt;/code&gt;. This nested structure makes the relationships explicit.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m thinking of creating a small cljs tool to visualise this as a tree!&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/eliminating-variables/</id>
    <title>Eliminate your variables</title>
    <updated>2026-11-23T12:54:31Z</updated>
    <published>2025-01-17T09:10:24Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/eliminating-variables/"></link>
    <category term="philosophy"></category>
    <summary>date: 2016-08-29 Every morning, before starting my day, my mind subconsciously makes a small list of things, or as I like to say it variables . They range from insignificant items like &amp;lsquo;what will I be having in lunch?&amp;rsquo; to more significant ones like &amp;lsquo;write a blog post&amp;rsquo;, or &amp;lsquo;go to college&amp;rsquo;. Either ways, I feel that this is a direct consequence of the ever busy modern life.</summary>
    <content type="html">&lt;hr&gt;&#xA;&lt;h2 id=&#34;date-2016-08-29&#34;&gt;date: 2016-08-29&lt;/h2&gt;&#xA;&lt;p&gt;Every morning, before starting my day, my mind subconsciously&#xA;makes a small list of things, or as I like to say it&#xA;&lt;em&gt;variables&lt;/em&gt;. They range from insignificant items like &amp;lsquo;what&#xA;will I be having in lunch?&amp;rsquo; to more significant ones like&#xA;&amp;lsquo;write a blog post&amp;rsquo;, or &amp;lsquo;go to college&amp;rsquo;. Either ways, I feel&#xA;that this is a direct consequence of the ever busy modern&#xA;life.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xD;&#xA;&lt;p&gt;I wonder if this is how humans have always been. Did we have&#xA;the same kind of worries 2000 years ago? Did our days even&#xA;function remotely to how they do now? More research is pending&#xA;(added to my infinitely long to-do list), but regardless it&#xA;seems rather unnatural to be worrying about so many things&#xA;without even trying.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;d say that it&amp;rsquo;s okay to worry about the greater complexities&#xA;in life, that kind of worry is more conscious. You almost&#xA;always know that you&amp;rsquo;re worrying about something, be it&#xA;passing that exam, getting that job interview, or even&#xA;sending that email. But the kind of variables we worry about&#xA;&lt;em&gt;constantly&lt;/em&gt; and &lt;em&gt;subconsciously&lt;/em&gt; is what actually worries me&#xA;(see what I did there? :P).&lt;/p&gt;&#xA;&lt;p&gt;Can we sought a life in which we can eliminate these&#xA;variables? If not, at-least try to reduce them to the bare&#xA;minimum? Well, we can try.&lt;/p&gt;&#xA;&lt;p&gt;Eliminate your backlogs, filter your to-do lists, finish your&#xA;pending tasks, and start with a clean fresh slate. Take out a&#xA;couple of days to do this. It&amp;rsquo;s not as easy as it appears to&#xA;be. There&amp;rsquo;s a lot of taxing material we must offload from our&#xA;brains and delegate it elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;But that is not enough. We need to be ruthless. Ruthless in&#xA;our filtering, and ruthless in elimination. Only the besets of&#xA;the best tasks should actually be done, everything else must&#xA;simply be removed. This kind of mindset is hard to acquire,&#xA;and I for one have been trying hard to get better at being&#xA;ruthless, for my time is precious and I&amp;rsquo;d rather have fun&#xA;playing video games than doing tasks which are irrelevant in&#xA;the grand scheme of things.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/assets/img/cleaning-room.jpg&#34; alt=&#34;cleaning room&#34; title=&#34;cleaning room&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I already started off by cleaning and removing everything&#xA;unnecessary from my room. I ruthlessly removed anything I&#xA;hadn&amp;rsquo;t used in the past 6 months. There&amp;rsquo;s always that feeling&#xA;of &lt;em&gt;&amp;lsquo;what if&amp;rsquo;&lt;/em&gt;, and that is when I ask how expensive that&#xA;item is, and how useful it is. I removed all my 5 year old&#xA;colouring pencils, because if I truly needed it, it would cost&#xA;me almost nothing to get a new pack. If I didn&amp;rsquo;t really need&#xA;it, then I could make do with sketch pens instead.&lt;/p&gt;&#xA;&lt;p&gt;I now plan to do the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Reach &amp;lsquo;Inbox Zero&amp;rsquo; (empty email inbox) - and reply to every&#xA;pending email/message - Read/remove all items from &amp;lsquo;Pocket&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;Categorise all my notes/documents on dropbox and keep -&#xA;Remove all redundant crap from my PC - Backup and deduplicate&#xA;&lt;em&gt;memories&lt;/em&gt; from all my devices - Filter/check all my chrome&#xA;bookmarks&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This seems like a one day job, but I know that this will take&#xA;me well over a couple of weeks to reach a clean slate. And&#xA;that is why, I&amp;rsquo;m not going for the best solution, but rather&#xA;for an approximately/sub-optimal solution.&lt;/p&gt;&#xA;&lt;p&gt;Once I&amp;rsquo;m done with all of that, I need to make a&#xA;workflow/web-app/cli-app/something which helps me maintain&#xA;those level of variables, for &lt;em&gt;variables&lt;/em&gt; are the only thing&#xA;you need to control.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/need-a-plan/</id>
    <title>need-a-plan</title>
    <updated>2025-01-17T09:10:24Z</updated>
    <published>2025-01-17T09:10:24Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/need-a-plan/"></link>
    <summary>title: I need a plan date: 2016-08-12 tags: - self sigh Until now, my &amp;ldquo;plan&amp;rdquo; has always been to &amp;ldquo;find a plan that works&amp;rdquo;. As ridiculous as that sounds, it&amp;rsquo;s true. I&amp;rsquo;m always on the look for better way to do things, no matter what it be, I MUST FIND A BETTER WAY TO DO IT. My obsession with efficiency has only led to destruction. Destruction of ideas, projects, work, things, everything.</summary>
    <content type="html">&lt;hr&gt;&#xA;&lt;h2 id=&#34;--self&#34;&gt;title: I need a plan&#xA;date: 2016-08-12&#xA;tags:&#xA;- self&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;sigh&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Until now, my &amp;ldquo;plan&amp;rdquo; has always been to &amp;ldquo;find a plan that&#xA;works&amp;rdquo;. As ridiculous as that sounds, it&amp;rsquo;s true. I&amp;rsquo;m always on&#xA;the look for better way to do things, no matter what it be, I&#xA;MUST FIND A BETTER WAY TO DO IT. My obsession with efficiency&#xA;has only led to destruction. Destruction of ideas, projects,&#xA;work, things, everything.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xD;&#xA;&lt;p&gt;I&amp;rsquo;ve always thought that it&amp;rsquo;s best to not have a plan. Plans&#xA;are for machines. &lt;em&gt;They&lt;/em&gt; need a sequence of steps as input to&#xA;produce a desired output, not &lt;em&gt;us&lt;/em&gt;. We humans are ofcourse&#xA;better than those predictable and filthy machines. (PS: I am&#xA;joking. Don&amp;rsquo;t hurt me AI-9000. I&amp;rsquo;m sure you understand jokes&#xA;by now).&lt;/p&gt;&#xA;&lt;p&gt;Well, not exactly. I realize why this is an extremely skewed&#xA;belief system which I&amp;rsquo;ve been using as an excuse to not do&#xA;things. Firstly, there&amp;rsquo;s a lot to learn from EVERYBODY, and&#xA;yes, that includes machines. A systematic approach &lt;em&gt;can&lt;/em&gt; be&#xA;better than a chaotic one, and there is no shame in abiding&#xA;by it. Also, it&amp;rsquo;s sometimes better to have a bad plan and do&#xA;something than have a good plan and do nothing. Since I&amp;rsquo;ve&#xA;always been trying to find that good plan and doing nothing&#xA;(nothing = not as much as I wanted to), I&amp;rsquo;m going to start&#xA;settling for more mediocre plans but start executing them&#xA;instantly. What&amp;rsquo;s the worse that could happen? Won&amp;rsquo;t die,&#xA;that&amp;rsquo;s for sure.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I have learned one thing. As Woody says, ‘Showing up is 80&#xA;percent of life.’ Sometimes it’s easier to hide home in bed.&#xA;I’ve done both. - Marshall Brickman&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Showing up = starting = doing != wasting time on making a&#xA;world class plan.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/the-invisible-hellhole/</id>
    <title>the-invisible-hellhole</title>
    <updated>2025-01-17T09:10:24Z</updated>
    <published>2025-01-17T09:10:24Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/the-invisible-hellhole/"></link>
    <summary>title: The Invisible Hellhole date: 2016-09-07 tags: - philosophy I can do whatever I want. Don&amp;rsquo;t ever let yourself get fooled again. The brain WILL try to fool you. Why, you may ask? Simply because it doesn&amp;rsquo;t like expending energy, the path of least resistance, remember?</summary>
    <content type="html">&lt;hr&gt;&#xA;&lt;h2 id=&#34;--philosophy&#34;&gt;title: The Invisible Hellhole&#xA;date: 2016-09-07&#xA;tags:&#xA;- philosophy&lt;/h2&gt;&#xA;&lt;p&gt;I can do whatever I want. Don&amp;rsquo;t ever let yourself get fooled&#xA;again. The brain WILL try to fool you. Why, you may ask?&#xA;Simply because it doesn&amp;rsquo;t like expending energy, the path of&#xA;least resistance, remember?&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xD;&#xA;&lt;p&gt;Decide something. Do it. There is nothing between you and your&#xA;goal, except for fake excuses created by your brain. Don&amp;rsquo;t&#xA;give in to them. Don&amp;rsquo;t try to rationalize them. I&amp;rsquo;ve observed&#xA;them, and every single one of them is nothing but a pile of&#xA;bullcrap. Nothing good has ever come by even thinking about&#xA;the myriad of useless reasons your brain tries to justify,&#xA;just to avoid doing something you want to do at any given&#xA;moment.&lt;/p&gt;&#xA;&lt;p&gt;Why do we think that we need breaks every few minutes? Why&#xA;do we persist in watching TV, playing games, or listening to&#xA;music every single day, as if it were a necessity without&#xA;which the human could not survive. Why do we believe&#xA;everything the society leads us into believing? Break out&#xA;of these shackles and you will see the hellhole you&amp;rsquo;ve been&#xA;anchored in.&lt;/p&gt;&#xA;&lt;p&gt;Easier said then done eh? This is not something you will be&#xA;&amp;lsquo;doing&amp;rsquo;. This is something you will become. Don&amp;rsquo;t try to do&#xA;all this. Don&amp;rsquo;t try to force it onto yourself. Try to be one&#xA;with it. Try to make it your nature. Undergo an attitude&#xA;shift. Change your life. Change yourself.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/unlike-all-tweets-bulk-delete-free/</id>
    <title>unlike-all-tweets-bulk-delete-free</title>
    <updated>2025-01-17T09:10:24Z</updated>
    <published>2025-01-17T09:10:24Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/unlike-all-tweets-bulk-delete-free/"></link>
    <summary>layout: post title: &amp;ldquo;Unlike all tweets bulk delete&amp;rdquo; date: 2021-03-26 tags: - programming Open the likes tab on your twitter profile and run this snippet of javascript. function sleep ( ms ...</summary>
    <content type="html">&lt;hr&gt;&#xA;&lt;h2 id=&#34;--programming&#34;&gt;layout: post&#xA;title: &amp;ldquo;Unlike all tweets bulk delete&amp;rdquo;&#xA;date: 2021-03-26&#xA;tags:&#xA;- programming&lt;/h2&gt;&#xA;&lt;p&gt;Open the likes tab on your twitter profile and run this snippet of javascript.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;sleep&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;ms&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#cf222e&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;new&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Promise&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;resolve&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;setTimeout&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;resolve&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;ms&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;));&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;locked&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;false&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;unlike&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;divs&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;getElementsByTagName&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;div&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;arr&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Array&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;prototype&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;slice&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;call&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;divs&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;hearts&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;arr&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;filter&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;getAttribute&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;data-testid&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;unlike&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;prevHeart&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;hearts&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;];&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;for&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;h&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;of&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;hearts&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;console&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;log&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Unliked!&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;h&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;click&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;prevHeart&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;scrollIntoView&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;prevHeart&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;h&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;await&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;sleep&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;2000&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;Math&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;random&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;());&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;locked&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;false&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;repeat&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;setInterval&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;!&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;locked&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;locked&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;await&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;unlike&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;console&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;log&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Scrolling for new tweets!&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;scrollTo&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;body&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;scrollHeight&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;||&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;document&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;documentElement&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;scrollHeight&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;else&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;console&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;log&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Still running previous page unlikes!&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;},&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;5000&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojuredocs-emacs-intgeration-browser-elisp/</id>
    <title>Clojuredocs.el from within emacs</title>
    <updated>2024-10-24T00:00:00Z</updated>
    <published>2024-10-24T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojuredocs-emacs-intgeration-browser-elisp/"></link>
    <category term="programming"></category>
    <summary>Up untill now I have been writing clojure without looking at the documentation. To look at the documentation, I typically always want to go to clojuredocs.org But hitting K (in evil-mode) gives me the...</summary>
    <content type="html">&lt;p&gt;Up untill now I have been writing clojure without looking at the documentation. To look at the documentation, I typically always want to go to clojuredocs.org&lt;/p&gt;&#xA;&lt;p&gt;But hitting &lt;code&gt;K&lt;/code&gt; (in evil-mode) gives me the basic clojure function documentation which leaves a lot to be desired.&lt;/p&gt;&#xA;&lt;p&gt;So like a pleb, I open the browser. Go to &lt;a href=&#34;https://clojuredocs.org&#34;&gt;https://clojuredocs.org&lt;/a&gt; and then search for my function. Sometimes I directly search in ddg.&lt;/p&gt;&#xA;&lt;p&gt;So I thought to myself, &amp;ldquo;Wait a minute&amp;hellip;&amp;rdquo;, can I speed up this flow?&lt;/p&gt;&#xA;&lt;p&gt;The first thing I did was installed &lt;code&gt;devdocs.el&lt;/code&gt; hoping it would have clojuredocs as a source but it didn&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;(use-package devdocs)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next I thought I could quickly write a small function to download clojuredocs via an API and then create a popup buffer containing all the examples?&lt;/p&gt;&#xA;&lt;p&gt;And so that&amp;rsquo;s what I did: &lt;a href=&#34;https://github.com/oxalorg/clojuredocs.el&#34;&gt;https://github.com/oxalorg/clojuredocs.el&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So first I call &lt;code&gt;M-x clojuredocs-download&lt;/code&gt; to download the json file. And then &lt;code&gt;M-x clojuredocs-lookup&lt;/code&gt; and it gives me with a nice completion minibuffer like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/clojuredocs-emacs-integration-browser-elisp-1.png&#34; alt=&#34;&#34;&gt;&#xA;and because of using &lt;code&gt;vertico&lt;/code&gt; and &lt;code&gt;orderless&lt;/code&gt;, I can search over the entire namespace + fn-name&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/clojuredocs-emacs-intgeration-browser-elisp-2.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;selecting a function will open the docs with examples in a buffer:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/clojuredocs-emacs-intgeration-browser-elisp-3.png&#34; alt=&#34;&#34;&gt;&#xA;and the BEST part? It&amp;rsquo;s a clojure buffer. So you can actually evaluate those examples. change them and re-eval (as long as you have a clojure repl open).&lt;/p&gt;&#xA;&lt;p&gt;So what are you waiting for? Try it out now, installation instructions in the README: &lt;a href=&#34;https://github.com/oxalorg/clojuredocs.el&#34;&gt;https://github.com/oxalorg/clojuredocs.el&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;NOTE: I realised this much later, but there is also a &lt;code&gt;cider&lt;/code&gt; integration with clojuredocs. And you can call it with &lt;code&gt;cider-clojuredocs&lt;/code&gt; where you need to manually type out a function which isn&amp;rsquo;t as cool as searching for it. It&amp;rsquo;s definitely more polished, and I might look into it more if I can integrate it in my workflow!&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/indian-flag-using-css/</id>
    <title>Make Indian Flag using CSS (Day 2 of #OpenUpOctober)</title>
    <updated>2024-10-11T00:00:00Z</updated>
    <published>2024-10-11T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/indian-flag-using-css/"></link>
    <category term="programming"></category>
    <summary>Let&amp;rsquo;s say you&amp;rsquo;re a frontend engineer with 10 years of experience. You go into an interview, and are ready to kill it! You&amp;rsquo;re expecting questions like: How to identify and debug memor...</summary>
    <content type="html">&lt;p&gt;Let&amp;rsquo;s say you&amp;rsquo;re a frontend engineer with 10 years of experience. You go into an interview, and are ready to kill it!&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;re expecting questions like:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How to identify and debug memory leaks in an SPA&lt;/li&gt;&#xA;&lt;li&gt;In-depth dive of promises&lt;/li&gt;&#xA;&lt;li&gt;Inner workings of the event loop&lt;/li&gt;&#xA;&lt;li&gt;DOM vs VDom vs Shadow DOM&lt;/li&gt;&#xA;&lt;li&gt;Types of state management in complex web apps&lt;/li&gt;&#xA;&lt;li&gt;Architectural and design questions&lt;/li&gt;&#xA;&lt;li&gt;etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;and you get asked what?&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;Draw your country&amp;rsquo;s flag using CSS&amp;rdquo;. How would you feel?&lt;/p&gt;&#xA;&lt;p&gt;This is what happened to someone over at reddit, and while this seems a bit unacceptable I wanted to see if I still had the CSS chops to figure this out with minimal / no help.&lt;/p&gt;&#xA;&lt;p&gt;And I surprisingly did it, but with a teeny tiny bit of help:&lt;/p&gt;&#xA;&lt;p class=&#34;codepen&#34; data-height=&#34;300&#34; data-default-tab=&#34;css,result&#34; data-slug-hash=&#34;YzmpWKB&#34; data-pen-title=&#34;Indian flag using css&#34; data-user=&#34;oxalorg&#34; style=&#34;height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;&#34;&gt;&#xA;  &lt;span&gt;See the Pen &lt;a href=&#34;https://codepen.io/oxalorg/pen/YzmpWKB&#34;&gt;&#xA;  Indian flag using css&lt;/a&gt; by oxalorg (&lt;a href=&#34;https://codepen.io/oxalorg&#34;&gt;@oxalorg&lt;/a&gt;)&#xA;  on &lt;a href=&#34;https://codepen.io&#34;&gt;CodePen&lt;/a&gt;.&lt;/span&gt;&#xA;&lt;/p&gt;&#xA;&lt;script async src=&#34;https://cpwebassets.codepen.io/assets/embed/ei.js&#34;&gt;&lt;/script&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I had to google the &lt;code&gt;aspect-ratio: 1 / 1&lt;/code&gt;. Couldn&amp;rsquo;t figure out how to make a perfect square box based on height alone (any one knows a better way?).&lt;/li&gt;&#xA;&lt;li&gt;Also forgot that &lt;code&gt;transform: rotate(45)&lt;/code&gt; wouldn&amp;rsquo;t work, and it needs to be &lt;code&gt;45deg&lt;/code&gt; instead.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I also added a bit of javascript to make the flags inner circle (Ashoka chakra) spin indefinitely! Because why not?&lt;/p&gt;&#xA;&lt;p&gt;This is Day 2 of my #OpenUpOctober challenge! LETS GOOOO&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/30days-of-openness/</id>
    <title>Being open and sharing your work - #OpenUpOctober</title>
    <updated>2024-10-10T00:00:00Z</updated>
    <published>2024-10-10T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/30days-of-openness/"></link>
    <category term="programming"></category>
    <summary>It&amp;rsquo;s a Thursday morning. I woke up at 7am in Leuven, about 7000kms away from home, and rushed to the auditorium. It&amp;rsquo;s the first day of Heart of Clojure . I&amp;rsquo;m nervous, tired, and exhi...</summary>
    <content type="html">&lt;p&gt;  &#xA;It&amp;rsquo;s a Thursday morning. I woke up at 7am in Leuven, about 7000kms away from home, and rushed to the auditorium. It&amp;rsquo;s the first day of &lt;a href=&#34;https://2024.heartofclojure.eu/&#34;&gt;Heart of Clojure&lt;/a&gt;. I&amp;rsquo;m nervous, tired, and exhilarated all at the same time. My heart is racing.&lt;/p&gt;&#xA;&lt;p&gt;After finishing up my duties as an Orga member, I finally sit down to watch the Opening Keynote by Lu Wilson &lt;a href=&#34;https://github.com/TodePond&#34;&gt;@todepond&lt;/a&gt;, I&amp;rsquo;m really excited to hear what they say as I am about to give a talk on a similar tangent in a few hours.&lt;/p&gt;&#xA;&lt;p&gt;The talk really touched me, and pumped me up. Don&amp;rsquo;t procrastinate and watch it RIGHT NOW GO GO GO: &lt;a href=&#34;https://www.youtube.com/watch?v=MJzV0CX0q8o&amp;amp;feature=youtu.be&#34;&gt;https://www.youtube.com/watch?v=MJzV0CX0q8o&amp;amp;feature=youtu.be&lt;/a&gt;&lt;/p&gt;&#xA;&lt;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;https://www.youtube-nocookie.com/embed/MJzV0CX0q8o?si=HU4YEvjvWDFh6BCe&#34; title=&#34;YouTube video player&#34; frameborder=&#34;0&#34; allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; allowfullscreen&gt;&lt;/iframe&gt;&#xA;&lt;p&gt;So when I gave my talk just a few hours later, I decided to add an extra slide at the end:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/30days-slide.png&#34; alt=&#34;30days-slide.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip;and I failed!&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s been more than two weeks, and every single day I&amp;rsquo;ve wanted to open up but I couldn&amp;rsquo;t. 10,000 things pop into my head before I try to share my work.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Am I good enough?&lt;/li&gt;&#xA;&lt;li&gt;Will people judge me?&lt;/li&gt;&#xA;&lt;li&gt;Will people finally realise that I am a con-artist and I don&amp;rsquo;t really know anything I&amp;rsquo;m doing?&lt;/li&gt;&#xA;&lt;li&gt;Does anyone care of the work I do?&lt;/li&gt;&#xA;&lt;li&gt;Will it help someone? or even worse, hurt someone?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;and yet, there is some inner force and energy which wants me to share openly because I think about it every single day.&lt;/p&gt;&#xA;&lt;p&gt;Now that the video came out I went ahead and watched it again. It gave me enough activation energy to write this post. So no more bottling up, I start my 30 days of openness today!&lt;/p&gt;&#xA;&lt;p&gt;LETS GOOOOO 🚀&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/simple-clojure-state-machine/</id>
    <title>Simple state machine in Clojure</title>
    <updated>2023-03-10T00:00:00Z</updated>
    <published>2023-03-10T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/simple-clojure-state-machine/"></link>
    <category term="programming"></category>
    <summary>So I wanted to build a state machine for a multi-select component I am building in reagent (react wrapper for clojurescript). I thought a bit about it and realised I should first start with the simple...</summary>
    <content type="html">&lt;p&gt;So I wanted to build a state machine for a multi-select component I am building in reagent (react wrapper for clojurescript).&lt;/p&gt;&#xA;&lt;p&gt;I thought a bit about it and realised I should first start with the simplest possible state machine I can imagine.&lt;/p&gt;&#xA;&lt;p&gt;This is the state transition diagram I drew up really quickly:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/2024-03-12-18:58:40.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is what I ended up with&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;transitions&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;{[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:run&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:running&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:jump&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:jumping&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:running&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:stop&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:running&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:jump&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:jumping&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:jumping&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:land&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#032f62&#34;&gt;:default&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:unknown&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;})&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defn &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;state-machine&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;state!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;transitions&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;fn &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;event&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;let &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;next-state&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;get &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;transitions&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;state!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;event&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;])]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;if &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;next-state&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;reset!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;state!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;next-state&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;throw&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;Exception.&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;str &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Invalid transition: &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;event&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)))))))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;state&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;atom&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:idle&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;def &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;state-machine&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;state&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;transitions&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:run&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :running&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:jump&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :jumping&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:land&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :idle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:run&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :running&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;fsm&lt;/span&gt; &lt;span style=&#34;color:#032f62&#34;&gt;:stop&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;;; =&amp;gt; :idle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;How would you improve this?&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/Genox/</id>
    <title>Back to Genox, ditching ghost</title>
    <updated>2022-08-02T00:00:00Z</updated>
    <published>2022-08-02T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/Genox/"></link>
    <category term="programming"></category>
    <summary>WHY? WHY do I spend so much time tinkering with how my blog is generated vs actually putting out content? Well, it&amp;rsquo;s a big mystery, but it scratches my itch and so I treat is as fun leisure time...</summary>
    <content type="html">&lt;p&gt;WHY? WHY do I spend so much time tinkering with how my blog is generated vs actually putting out content?&lt;/p&gt;&#xA;&lt;p&gt;Well, it&amp;rsquo;s a big mystery, but it scratches my itch and so I treat is as fun leisure time.&lt;/p&gt;&#xA;&lt;h2 id=&#34;editing-experience&#34;&gt;Editing experience&lt;/h2&gt;&#xA;&lt;p&gt;The reason I mentioned in my &lt;a href=&#34;/blog/migrating-from-a-static-site-to-ghost/&#34;&gt;previous post&lt;/a&gt; of switching to Ghost that the main reason was ease of publication.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Three words. Ease of publication.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Well, I guess that didn&amp;rsquo;t last long. I didn&amp;rsquo;t find Ghost to be easy to publish. Because the way I write is that I keep adding to a post piecemeal. Slowly over time I build up a post, and the task of opening up the ghost admin panel and finding the correct place to add my thoughts was frustrating enough to not write them at all.&lt;/p&gt;&#xA;&lt;p&gt;Since then I&amp;rsquo;ve founded obsidian and have really found a working flow with it.&lt;/p&gt;&#xA;&lt;p&gt;Authoring and storing notes in obsidian is fast. And so I&amp;rsquo;ve switched back to my trusty old static site generator called Genox: &lt;a href=&#34;https://github.com/oxalorg/genox&#34;&gt;https://github.com/oxalorg/genox&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s the only one which I like and I encourage you to fork it!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/back-to-genox-1.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojurians-log-v2-update-2/</id>
    <title>Clojurians Log v2 - Update #2</title>
    <updated>2022-02-15T00:00:00Z</updated>
    <published>2022-02-15T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojurians-log-v2-update-2/"></link>
    <category term="programming"></category>
    <summary>Hello fellow clojurians! The beta release of Clojurians log v2 is live at: https://clojurians-log-v2.oxal.org/ 🦄 😊 Source code: github.com/oxalorg/clojurians-log-v2 The initial goal we had with clojur...</summary>
    <content type="html">&lt;p&gt;Hello fellow clojurians!&lt;/p&gt;&#xA;&lt;p&gt;The beta release of Clojurians log v2 is live at: &lt;a href=&#34;https://clojurians-log-v2.oxal.org/&#34;&gt;https://clojurians-log-v2.oxal.org/&lt;/a&gt; 🦄 😊&lt;/p&gt;&#xA;&lt;p&gt;Source code: github.com/oxalorg/clojurians-log-v2&lt;/p&gt;&#xA;&lt;p&gt;The initial goal we had with clojurians=log-v2 was mostly around improved full&#xA;text searching. But as we all know the clojurians slack was sponsored for a paid&#xA;version for the next 1 year (thanks to all who got this done!) which means our&#xA;direction has to change a little.&lt;/p&gt;&#xA;&lt;p&gt;Although full text search will be available and working on the v2, we would like&#xA;to focus more on other parts of the app now and find ways to make the logs more&#xA;usefull because paid slack already does search very well.&lt;/p&gt;&#xA;&lt;p&gt;With that said the beta release now had the following work put into it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The importing of data for threaded messages / replies / reactions has been&#xA;added. This was huge as this was the last key pending in the idempotent&#xA;imports 🎉.&lt;/li&gt;&#xA;&lt;li&gt;UI now shows all thread messages directly under the parent. This is effecient&#xA;enough to not cause any slowdowns.&lt;/li&gt;&#xA;&lt;li&gt;The UI is now fully mobile responsive 📱. That means easy reading of logs from&#xA;your bed, and also better SEO points by Google!&lt;/li&gt;&#xA;&lt;li&gt;That brings us to SEO. Not only are we fully compatible with the existing&#xA;clojurians-log, but we have also added lots of open-graph tags, html structure&#xA;and other small changes for optimal SEO brownie points. The improved seo tags&#xA;should also now help &amp;ldquo;Clojure&amp;rdquo; to rank higher in the TIOBE index.&lt;/li&gt;&#xA;&lt;li&gt;Lots of behind the scene work to improve deployment strategy. Although not&#xA;fully automated, I have some local scripts which gets me to deploy new&#xA;versions quite easily. A future task would be to convert it into GH actions.&lt;/li&gt;&#xA;&lt;li&gt;Added support for db migrations using migratus.&lt;/li&gt;&#xA;&lt;li&gt;Analytics for the website are now PUBLIC. You can view them at&#xA;&lt;a href=&#34;https://clojurians-log-v2.goatcounter.com/&#34;&gt;https://clojurians-log-v2.goatcounter.com/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I would like to extend immense gratitude to the clojurists-together team and the&#xA;clojure community for helping us get here.&lt;/p&gt;&#xA;&lt;p&gt;So what&amp;rsquo;s next? We do have a near-future roadmap of things which should land in very soon:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Right now all the data imports are manual. Implementing of real-time socket&#xA;API and making it compatible / interchangable with the idempotent incremental&#xA;imports (w/ option to backfill data) is posing a bit of a hassle which needs&#xA;some more work&lt;/li&gt;&#xA;&lt;li&gt;Although we&amp;rsquo;ve got the reactions into the database, rendering of reactions as&#xA;emojis on the UI is pending&lt;/li&gt;&#xA;&lt;li&gt;Contacting a clojurians slack admin to get the data up-to-date&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;After that, there are tons more ideas listed on the repo which should keep us&#xA;busy throughout the next year! Super humbled and excited to continue working on&#xA;this 🙏😊&lt;/p&gt;&#xA;&lt;p&gt;Cheers and Happy New Years everyone 🌟🎄&lt;/p&gt;&#xA;&lt;p&gt;Mitesh (@oxalorg)&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/migrating-from-a-static-site-to-ghost/</id>
    <title>Migrating from a static site to Ghost 👻</title>
    <updated>2021-12-29T00:00:00Z</updated>
    <published>2021-12-29T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/migrating-from-a-static-site-to-ghost/"></link>
    <category term="programming"></category>
    <summary>Until now I was using my own SSG (static site generator) called genox to deploy oxal.org . Which I absolutely adore. Even now. It&amp;rsquo;s one of things I&amp;rsquo;m super proud of (especially it&amp;rsquo;s ...</summary>
    <content type="html">&lt;p&gt;Until now I was using my own SSG (static site generator) called &lt;a href=&#34;https://github.com/oxalorg/genox&#34;&gt;genox&lt;/a&gt; to deploy &lt;a href=&#34;https://oxal.org/&#34;&gt;oxal.org&lt;/a&gt;. Which I absolutely adore. Even now. It&amp;rsquo;s one of things I&amp;rsquo;m super proud of (especially it&amp;rsquo;s name 🤪, and I still use it for many other websites.&lt;/p&gt;&#xA;&lt;p&gt;But still, &lt;strong&gt;STILL&lt;/strong&gt; I ported my blog to use ghost.org&lt;/p&gt;&#xA;&lt;h2 id=&#34;why&#34;&gt;Why?&lt;/h2&gt;&#xA;&lt;p&gt;Three words. Ease of publication.&lt;/p&gt;&#xA;&lt;p&gt;I found that writing posts inside of Emacs makes me lazy. It doesn&amp;rsquo;t feel like writing. It feels like I am coding.&lt;/p&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t know how to explain it. But I just never ended up writing posts locally on my machine. Maybe I won&amp;rsquo;t do it now either, but this was a big enough bottleneck that it&amp;rsquo;s worth optimizing for. What use is a static blog without content?&lt;/p&gt;&#xA;&lt;p&gt;Ghost gives me a whole bunch of things which makes me &lt;strong&gt;EXCITED&lt;/strong&gt;. Beautiful editor. Ability to make edits quickly. Copy paste things. Upload images easily. Paste images from clipboard. Auto image compression. No need for manual git commits 🙈. And so much more.&lt;/p&gt;&#xA;&lt;p&gt;So if I think that my giddy excitement over ghost&amp;rsquo;s proper web interface will allow me to make 1 extra post per month, this is a net win for me.&lt;/p&gt;&#xA;&lt;h2 id=&#34;technical-details&#34;&gt;Technical details&lt;/h2&gt;&#xA;&lt;p&gt;My previous site was a static site. Now it&amp;rsquo;s not 🤮 . But wait. I already host a lot of services on my Hetzner VPS. So just one more right? And honestly, hosting Ghost using docker is dead simple.&lt;/p&gt;&#xA;&lt;h3 id=&#34;markdown-to-mobiledoc&#34;&gt;Markdown to mobiledoc&lt;/h3&gt;&#xA;&lt;p&gt;In genox, all my posts were in a nested directory full of markdown files. I needed to convert them into a &lt;code&gt;json&lt;/code&gt; file with &lt;code&gt;mobiledoc&lt;/code&gt; fields.&lt;/p&gt;&#xA;&lt;p&gt;But mobiledoc support is pathetic. Finding direct markdown to mobiledoc was taking me more than 5 minutes so I instead converted markdown to html first (which is already being done by &lt;code&gt;genox&lt;/code&gt;) and then convert &lt;code&gt;html&lt;/code&gt; to &lt;code&gt;mobiledoc&lt;/code&gt; using Ghost&amp;rsquo;s migrate tool.&lt;/p&gt;&#xA;&lt;p&gt;Adding a &lt;code&gt;genox -&amp;gt; json&lt;/code&gt; export was really easy. It literally took me like 5 minutes, thanks to genox 🔥&lt;/p&gt;&#xA;&lt;p&gt;This outputs a single json file which is in a format acceptable by ghost.&lt;/p&gt;&#xA;&lt;p&gt;I then followed the &lt;a href=&#34;https://ghost.org/docs/migration/content/&#34;&gt;docs here&lt;/a&gt; to covert the above json with &lt;code&gt;html&lt;/code&gt; fields to &lt;code&gt;mobiledoc&lt;/code&gt; fields. After that I imported it from the ghost dashboard, and Voila!&lt;/p&gt;&#xA;&lt;h3 id=&#34;ghost---docker---&#34;&gt;Ghost 👻 + Docker 🐳 = 💙&lt;/h3&gt;&#xA;&lt;p&gt;Ghost has an official docker image which stores all data in a volume, including the database which is stored in a single sqlite file.&lt;/p&gt;&#xA;&lt;p&gt;I ran the ghost instance using docker with a custom mounted volume which is tracked by git (including the sqlite file):&lt;/p&gt;&#xA;&lt;p&gt;For production I use portainer on my Hetzner server. But for now I&amp;rsquo;m just running a simple docker command using my in-built ark utility which controlls my server.&lt;/p&gt;&#xA;&lt;h3 id=&#34;ghost-theme&#34;&gt;Ghost theme&lt;/h3&gt;&#xA;&lt;p&gt;Ofcourse I like my existing design too much, so I used a base theme and used &lt;a href=&#34;https://github.com/oxalorg/sakura&#34;&gt;sakura&lt;/a&gt; to override most parts of it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;serving-with-caddy-server&#34;&gt;Serving with Caddy server&lt;/h3&gt;&#xA;&lt;p&gt;Some path on my site still needed to be static, but rest of the paths need to be forwarded to ghost. I acommplish that using the following &lt;code&gt;Caddyfile&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;h3 id=&#34;backup-strategy&#34;&gt;Backup strategy&lt;/h3&gt;&#xA;&lt;p&gt;The directory &lt;code&gt;/srv/ox/oxal-ghost&lt;/code&gt; is a git repo. I created a GitHub &lt;strong&gt;DEPLOY KEY&lt;/strong&gt; with write access.&lt;/p&gt;&#xA;&lt;p&gt;Added a cron job to add, commit, and push all the changes to the repo every 1 hour. This way the &lt;code&gt;data/ghost.db&lt;/code&gt; file and all the uploaded &lt;code&gt;images&lt;/code&gt; will always be backed up. This way migrating to a new server should just be a &lt;code&gt;git pull&lt;/code&gt; away.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojurians-log-v2-alpha-release/</id>
    <title>Clojurians Log v2 - Alpha Release</title>
    <updated>2021-11-01T00:00:00Z</updated>
    <published>2021-11-01T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojurians-log-v2-alpha-release/"></link>
    <category term="programming"></category>
    <summary>👋 Hello fellow clojurians! It has been around 40 days since I started the work on Clojurians log v2 for this funding cycle and it&amp;rsquo;s now time for an alpha release. Without waiting further, the v2...</summary>
    <content type="html">&lt;p&gt;👋  Hello fellow clojurians!&lt;/p&gt;&#xA;&lt;p&gt;It has been around &lt;a href=&#34;https://oxal.org/blog/clojurians-log-v2-funding/&#34;&gt;40 days since&lt;/a&gt; I started the work on Clojurians log v2 for this funding cycle and it&amp;rsquo;s now time for an alpha release.&lt;/p&gt;&#xA;&lt;p&gt;Without waiting further, the v2 is now live at: &lt;a href=&#34;https://clojurians-log-v2.oxal.org/&#34;&gt;https://clojurians-log-v2.oxal.org/&lt;/a&gt; 🦄 😊&lt;/p&gt;&#xA;&lt;p&gt;Source code: &lt;a href=&#34;https://github.com/oxalorg/clojurians-log-v2&#34;&gt;github.com/oxalorg/clojurians-log-v2&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;PS: it&amp;rsquo;s not 100% usable on mobile yet, please use a desktop for the time being!&lt;/p&gt;&#xA;&lt;p&gt;Features added in this release are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search across the entire slack logs&#xA;&lt;ul&gt;&#xA;&lt;li&gt;try it here: &lt;a href=&#34;https://clojurians-log-v2.oxal.org/search?q=hello+clojurians&#34;&gt;https://clojurians-log-v2.oxal.org/search?q=hello+clojurians&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;lots of work is still pending to get this into an actual usable state, but hey it works! 💃&lt;/li&gt;&#xA;&lt;li&gt;searches over 2 million messages in ~50-500ms!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;ansible scripts to setup the server&#xA;&lt;ul&gt;&#xA;&lt;li&gt;setup user, fail2ban, firewall, postgres, docker, java, clojure, git, caddy, SSL, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;🐿 Web app deployed live on a domain 🌏 on a Hetzner VPS (2cpu, 4gb ram)&lt;/li&gt;&#xA;&lt;li&gt;setup docker deployment and recreating process&lt;/li&gt;&#xA;&lt;li&gt;setup the production postgres db&lt;/li&gt;&#xA;&lt;li&gt;idempotent import data for channels, members, and messages&#xA;&lt;ul&gt;&#xA;&lt;li&gt;it works (atleast for the current schema, most likely to change soon)&lt;/li&gt;&#xA;&lt;li&gt;fixed mysterious null character issues in slack dumps, postgres really doesn&amp;rsquo;t like to eat &lt;code&gt;\u0000&lt;/code&gt; chars for breakfast&lt;/li&gt;&#xA;&lt;li&gt;only partial data is imported (~2 million messages) as I only have slack dumps till June 2021&lt;/li&gt;&#xA;&lt;li&gt;expect things to break because I&amp;rsquo;m still messing around with indexes, rankings, and migrations to optimise search and other queries 🤪&lt;/li&gt;&#xA;&lt;li&gt;imports for reactions, threads, etc are still pending&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;added &lt;code&gt;mrkdwn&lt;/code&gt; message rendering with emojis&lt;/li&gt;&#xA;&lt;li&gt;more advanced configuration, dynamic based on &lt;code&gt;:dev&lt;/code&gt; vs &lt;code&gt;:prod&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;proper support for secrets via a &lt;code&gt;secrets.edn&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;lots of small bug fixes, UI/UX changes, optimized db queries, refactoring, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I wanted to ship the minimal possible version first and then iterate over it. And I&amp;rsquo;m quite happy with this. Looking forward to adding lots more features and polish over the next few months, especially related to text searching!&lt;/p&gt;&#xA;&lt;p&gt;Please feel free to hop over in #clojureverse-ops channel in clojurians slack to discuss anything related to this project! Thanks.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojurians-log-v2-funding/</id>
    <title>Clojurians Log v2 - Open Source Funding</title>
    <updated>2021-09-21T00:00:00Z</updated>
    <published>2021-09-21T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojurians-log-v2-funding/"></link>
    <category term="programming"></category>
    <summary>👋 I along with my colleagues over at Gaiwan (the team behind Lambda Island) are largely maintaining the current clojurians-log-app (v1), keep the servers running, and help debug issues (#clojureverse-...</summary>
    <content type="html">&lt;h2 id=&#34;heading&#34;&gt;👋&lt;/h2&gt;&#xA;&lt;p&gt;I along with my colleagues over at &lt;a href=&#34;https://gaiwan.co&#34;&gt;Gaiwan&lt;/a&gt; (the team behind Lambda Island) are largely maintaining  the current &lt;a href=&#34;https://clojurians-log.clojureverse.org/&#34;&gt;clojurians-log-app&lt;/a&gt; (v1), keep the servers running, and help debug issues (#clojureverse-ops channel).&lt;/p&gt;&#xA;&lt;p&gt;I started work on a &lt;a href=&#34;https://github.com/oxalorg/clojurians-log-v2&#34;&gt;Version 2&lt;/a&gt; of the log to experiment with some of my ideas which didn&amp;rsquo;t make sense to add in the official app. Slowly I realised that the v2 (standing on top of the great work done in v1) could have significant benefits to the community and continued to work on it.&lt;/p&gt;&#xA;&lt;p&gt;My mains reasons to do so were:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I feel the amount of knowledge being shared on the clojurians slack server is immense. Conserving and making this discourse complete, easily accessible, and searchable should greatly benefit the community as a whole.&lt;/li&gt;&#xA;&lt;li&gt;The current clojurians-log-app (v1) has aged a bit as it&amp;rsquo;s being maintained over the years. There are lots of operational issues cropping up and there is a huge scope of improvement which I can see (being one of it&amp;rsquo;s current maintainers).&lt;/li&gt;&#xA;&lt;li&gt;The decision to make an independent v2 makes a lot of sense to me personally to get a chance to completely re-architect the solution from all the lessons we&amp;rsquo;ve learnt over the years. It also sounds much more exciting 🙈🙈&lt;/li&gt;&#xA;&lt;li&gt;There is a LOT of potential features I wanted to add, listed on the &lt;a href=&#34;https://github.com/oxalorg/clojurians-log-v2/&#34;&gt;README&lt;/a&gt; page. But those are just my personal dreams, do check it out! 💭&lt;/li&gt;&#xA;&lt;li&gt;I wanted to work with Postgres Full text search extention 🤣&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Thanks to the awesome team over at Clojurists Together, &lt;strong&gt;I was able to receive a funding of $2000 USD to work on this project&lt;/strong&gt; to bring it to MVP and release it. Super thanks to the amazing folks of the clojure community for all their support 🥳 🌸&lt;/p&gt;&#xA;&lt;h2 id=&#34;action-plan-&#34;&gt;Action plan ⚡&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;m writing down a small action plan for the work I intend to do up until December, any feedback / discussion / suggestions / rants are welcome. Let me know if I would be wasting my time on a feature no one would use 🐍 🐌&lt;/p&gt;&#xA;&lt;p&gt;This is the bare minimum I need to do get an MVP up and running. Like @plexus always says, &amp;ldquo;Always start with a walking skeleton&amp;rdquo;, and that&amp;rsquo;s what I intend to do first.&lt;/p&gt;&#xA;&lt;h3 id=&#34;walking-skeleton&#34;&gt;Walking Skeleton&lt;/h3&gt;&#xA;&lt;p&gt;The walking skeleton 💀🦴 would look something like this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I have purchased a Hetzner VPS (4gb ram)&lt;/li&gt;&#xA;&lt;li&gt;A bunch of ansible scripts to provision the server and deploy the code&#xA;&lt;ul&gt;&#xA;&lt;li&gt;setup user, fail2ban, firewall, postgres, java, clojure, git, caddy, SSL, etc.&lt;/li&gt;&#xA;&lt;li&gt;run one-off commands?&lt;/li&gt;&#xA;&lt;li&gt;run migrations&lt;/li&gt;&#xA;&lt;li&gt;deploy &amp;amp; update the code / systemd / caddy services&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;🐿 Ship it live on a dummy staging domain🌏&lt;/li&gt;&#xA;&lt;li&gt;[Possibly] GitHub actions to continually deploy changes from master&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I am not sure how safe GITHUB secrects would be in a public repo as anyone who creates a PR could possibly print/echo them 🤔&lt;/li&gt;&#xA;&lt;li&gt;Low priority, might skip this&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Setup sql migrations 🛰️&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/yogthos/migratus&#34;&gt;https://github.com/yogthos/migratus&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;or &lt;a href=&#34;https://github.com/weavejester/ragtime&#34;&gt;https://github.com/weavejester/ragtime&lt;/a&gt; ?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;mvp--critical-features&#34;&gt;MVP / critical features&lt;/h3&gt;&#xA;&lt;p&gt;Once the walking skeleton is done, the plan is to work on these:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;slack imports from the beginning of time ⌛&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I don&amp;rsquo;t want to start off with a real-time archiving solution&lt;/li&gt;&#xA;&lt;li&gt;first goal is to make clojurians-log-v2 idempotent to data imports (incremental / ad-hoc)&lt;/li&gt;&#xA;&lt;li&gt;given a slack export, and a single repl command &lt;code&gt;(import &amp;quot;path-to-slack-export-dir&amp;quot;)&lt;/code&gt;, all data should be populated properly&lt;/li&gt;&#xA;&lt;li&gt;this would give us huge flexibility in the future and should be really easy to run up a new instance independently at anytime&lt;/li&gt;&#xA;&lt;li&gt;instance was down for a week? No problem, just export the weeks data from slack admin ui and import it. DONE!&lt;/li&gt;&#xA;&lt;li&gt;this is the &lt;strong&gt;BIGGEST&lt;/strong&gt; task (messages, users, channels, reactions, threads, replies etc)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;real time full text search for entire logs 🔍&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I&amp;rsquo;m most excited to work on this, my first attempt is going to be using postgres&amp;rsquo; inbuilt FTS&lt;/li&gt;&#xA;&lt;li&gt;2nd choice would be MeiliSearch vs typsense&lt;/li&gt;&#xA;&lt;li&gt;creating a frontend interface for this search (it would be wise to start off with a server rendered search result, maybe in the future we can do &amp;ldquo;type as you search&amp;rdquo;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;mobile responsive and a brand new UI + UX&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Once this is done the MVP would be ready and we can discuss further from there! 😁 🦄 🙏&lt;/p&gt;&#xA;&lt;h3 id=&#34;additional&#34;&gt;Additional&lt;/h3&gt;&#xA;&lt;p&gt;Once the above critical features are done, 2 very important features would still be pending to really get this off the ground!&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Full SEO compatibility with existing clojurians-log so that Google and others keep indexing it as is (if and when the switch happens)&lt;/li&gt;&#xA;&lt;li&gt;Implementing real-time socket API of slack to process events and log messages instantly 🚥&#xA;&lt;ul&gt;&#xA;&lt;li&gt;making sure this stays compatible and idempotent with our static data import / backfilling&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;preliminary-screenshot&#34;&gt;Preliminary screenshot:&lt;/h3&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://user-images.githubusercontent.com/4194289/132874401-05f4b726-6be4-420a-abc5-5431f91218fc.png&#34; alt=&#34;image&#34;&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;feedback&#34;&gt;Feedback&lt;/h3&gt;&#xA;&lt;p&gt;Am I missing something really important or obvious? Please feel free to discuss and post your thoughts / feedback / suggestions / rant below, I am super excited to hear them! 😁&lt;/p&gt;&#xA;&lt;p&gt;I will try to record some videos while building this and upload to my &lt;a href=&#34;https://www.youtube.com/c/oxalorg&#34;&gt;youtube channel&lt;/a&gt; if possible.&lt;/p&gt;&#xA;&lt;p&gt;Also do not shy away from creating issues, or contributing! Issues and PR&amp;rsquo;s are always welcome 🌸&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re as excited about this as I am, please leave a star ⭐ ! It would greatly help in keeping me motivated 🌞&lt;/p&gt;&#xA;&lt;p&gt;Link to Github repo &lt;a href=&#34;https://github.com/oxalorg/clojurians-log-v2&#34;&gt;https://github.com/oxalorg/clojurians-log-v2&lt;/a&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/creating-timelapse-with-ffmpeg/</id>
    <title>Creating screen timelapse with ffmpeg (multiple videos)</title>
    <updated>2020-10-06T00:00:00Z</updated>
    <published>2020-10-06T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/creating-timelapse-with-ffmpeg/"></link>
    <category term="programming"></category>
    <summary>I use obs to record my screen. I already have a few videos on youtube and was quite interested in experimenting with a bit different format. I&amp;rsquo;ve uploaded the final video here (without any sound for now). As usual I reached out to trusty ffmpeg for speeding up and combining the videos.</summary>
    <content type="html">&lt;p&gt;I use obs to record my screen. I already have a few videos on youtube and was quite interested in experimenting with a bit different format.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve uploaded the final video &lt;a href=&#34;https://youtu.be/jSSWrCVZbEU&#34;&gt;here&lt;/a&gt; (without any sound for now).&lt;/p&gt;&#xA;&lt;p&gt;As usual I reached out to trusty &lt;code&gt;ffmpeg&lt;/code&gt; for speeding up and combining the videos.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;# this removes audio&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ffmpeg -i input1.mkv -filter:v &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;setpts=PTS/60&amp;#34;&lt;/span&gt; -an output1.mkv&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ffmpeg -i input2.mkv -filter:v &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;setpts=PTS/60&amp;#34;&lt;/span&gt; -an output2.mkv&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now we list all the videos we want to combine in a file:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cat &amp;gt; files.txt &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;lt;&amp;lt;EOF&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;file &amp;#39;output1.mkv&amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;file &amp;#39;output2.mkv&amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;EOF&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then we combine it with the following command:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ffmpeg -f concat -safe &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt; -i files.txt -c copy output-combined.mkv&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;s it. Quick and easy.&lt;/p&gt;&#xA;&lt;p&gt;I use &lt;code&gt;mkv&lt;/code&gt; container with OBS as it seems to be the most flexibile.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/clojure-vim-essential-setup/</id>
    <title>Clojure and Vim - bare essentials setup</title>
    <updated>2020-10-02T00:00:00Z</updated>
    <published>2020-10-02T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/clojure-vim-essential-setup/"></link>
    <category term="programming"></category>
    <summary>I recorded my vim + clojure setup a few days ago. I&amp;rsquo;m quite new to clojure and had a hard time figuring everything out. So hopefully this can be of help to someone new to vim + clojure. You can ...</summary>
    <content type="html">&lt;p&gt;I recorded my vim + clojure setup a few days ago. I&amp;rsquo;m quite new to clojure and&#xA;had a hard time figuring everything out. So hopefully this can be of help to&#xA;someone new to vim + clojure.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You can checkout the video here: &lt;a href=&#34;https://youtu.be/gb58d9-W-kA&#34;&gt;youtu.be/gb58d9-W-kA&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I just wanted to have a vim setup which is enough for me to explore clojures&#xA;repl from vim in the quickest way possible.&lt;/p&gt;&#xA;&lt;p&gt;My notes from the video:&lt;/p&gt;&#xA;&lt;h2 id=&#34;clojure-vim-setup&#34;&gt;Clojure Vim Setup&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Unknown unknowns&lt;/li&gt;&#xA;&lt;li&gt;Avoiding fancy stuff&lt;/li&gt;&#xA;&lt;li&gt;Linting&lt;/li&gt;&#xA;&lt;li&gt;REPL driven development&lt;/li&gt;&#xA;&lt;li&gt;Connecting to repl from vim&lt;/li&gt;&#xA;&lt;li&gt;Manipulating parens&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;requirements&#34;&gt;Requirements&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Opendjk-8/11&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo apt install default-jdk&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Clojure&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -O https://download.clojure.org/install/linux-install-1.10.1.561.sh&#xA;chmod +x linux-install-1.10.1.561.sh&#xA;sudo ./linux-install-1.10.1.561.sh&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Leininininingen&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://leiningen.org/&#34;&gt;https://leiningen.org/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;vim-plugins&#34;&gt;Vim plugins&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;clj-kondo with Ale&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -sLO https://raw.githubusercontent.com/borkdude/clj-kondo/master/script/install-clj-kondo&#xA;chmod +x install-clj-kondo&#xA;./install-clj-kondo&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;cider-nrepl&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{:user&#xA;  {:plugins [[cider/cider-nrepl &amp;quot;0.25.3&amp;quot;]]}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;vim-fireplace&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;cqc&lt;/code&gt;: quasi repl blank line&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;cqq&lt;/code&gt;: quasi repl fill the form&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;cpp&lt;/code&gt;: push the current form to the repl&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;vim-parinfer&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;async-clj-omni&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;post-video-thoughts&#34;&gt;Post video thoughts&lt;/h2&gt;&#xA;&lt;p&gt;Funnily enough, I&amp;rsquo;m trying out emacs + doom now because I&amp;rsquo;ve been fed up with&#xA;VimL for quite some time.&lt;/p&gt;&#xA;&lt;p&gt;Elisp used to look arcane but after learning the basics of clojure it is finally&#xA;readable (and seems much better than VimL from my limited interaction with it).&lt;/p&gt;&#xA;&lt;p&gt;I did try Conjure and I’ve seen the author quite active in clojurians #vim&#xA;channel, but I found vim-fireplace to be an easier starting point so I just went&#xA;with it. :)&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/simple-page-builder-reactjs/</id>
    <title>Simple page builder in Reactjs and Django</title>
    <updated>2020-09-25T00:00:00Z</updated>
    <published>2020-09-25T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/simple-page-builder-reactjs/"></link>
    <category term="programming"></category>
    <summary>Even on it&amp;rsquo;s own, React is extremely powerful. As a proof of concept I tried building a very simple Page Builder which clients could use to edit their sites. Here&amp;rsquo;s a small demo: The next ...</summary>
    <content type="html">&lt;p&gt;Even on it&amp;rsquo;s own, React is extremely powerful. As a proof of concept I tried building a very simple Page Builder which clients could use to edit their sites.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s a small demo:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/simple-page-builder-1.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The next feature I worked on was adding a schema to the components and allowing the user to edit the content.&lt;/p&gt;&#xA;&lt;p&gt;It looked like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://datacore.oxal.org/media/simple-page-builder-2.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;No redux, no state management, no CRA, just a simple react component with the power of hooks.&lt;/p&gt;&#xA;&lt;p&gt;The components can now be defined a json schema which lets it figure out what things can be edited.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/simple-postgres-backups-cron-s3/</id>
    <title>Simple postgres backups with cron and S3</title>
    <updated>2020-09-14T00:00:00Z</updated>
    <published>2020-09-14T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/simple-postgres-backups-cron-s3/"></link>
    <summary>We create a bash script which will be run by cron - ~/pgbackup.sh : project = &amp;#34; $1 &amp;#34; dbname = &amp;#34; $2 &amp;#34; bucket = &amp;#34; $3 &amp;#34; echo &amp;#34;Starting backups&amp;#34; bak1 = $project . $( date +...</summary>
    <content type="html">&lt;p&gt;We create a bash script which will be run by cron - &lt;code&gt;~/pgbackup.sh&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;project&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$1&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;dbname&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$2&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;bucket&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$3&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Starting backups&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;bak1&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$project&lt;/span&gt;.&lt;span style=&#34;color:#cf222e&#34;&gt;$(&lt;/span&gt;date +%F&lt;span style=&#34;color:#cf222e&#34;&gt;)&lt;/span&gt;.pg.backup&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;bak2&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$project&lt;/span&gt;.&lt;span style=&#34;color:#cf222e&#34;&gt;$(&lt;/span&gt;date +%F&lt;span style=&#34;color:#cf222e&#34;&gt;)&lt;/span&gt;.pg.sql.backup&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir -p /home/ox/backups/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Creating Backup\n - &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$bak1&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt; \n - &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$bak2&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pg_dump --format&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;custom --file /home/ox/backups/&lt;span style=&#34;color:#953800&#34;&gt;$bak1&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;$dbname&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pg_dump --file /home/ox/backups/&lt;span style=&#34;color:#953800&#34;&gt;$bak2&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;$dbname&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Uploading Backups to &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$bucket&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;aws s3api put-object --body /home/ox/backups/&lt;span style=&#34;color:#953800&#34;&gt;$bak1&lt;/span&gt; --key &lt;span style=&#34;color:#953800&#34;&gt;$project&lt;/span&gt;/&lt;span style=&#34;color:#953800&#34;&gt;$bak1&lt;/span&gt; --bucket &lt;span style=&#34;color:#953800&#34;&gt;$bucket&lt;/span&gt; --server-side-encryption AES256&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;aws s3api put-object --body /home/ox/backups/&lt;span style=&#34;color:#953800&#34;&gt;$bak2&lt;/span&gt; --key &lt;span style=&#34;color:#953800&#34;&gt;$project&lt;/span&gt;/&lt;span style=&#34;color:#953800&#34;&gt;$bak2&lt;/span&gt; --bucket &lt;span style=&#34;color:#953800&#34;&gt;$bucket&lt;/span&gt; --server-side-encryption AES256&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Done&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then we create &lt;code&gt;~/aws.env&lt;/code&gt; file with our S3 bucket credentials:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;AWS_ACCESS_KEY_ID&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1234&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;AWS_SECRET_ACCESS_KEY&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1234&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;AWS_BUCKET&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;bucketname&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then we set a cron entry using &lt;code&gt;crontab -e&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;20&lt;/span&gt; * * * /bin/bash /home/ox/backup.sh project dbname bucketname &lt;span style=&#34;color:#0550ae&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; curl -fsS -m &lt;span style=&#34;color:#0550ae&#34;&gt;10&lt;/span&gt; --retry &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt; -o /dev/null https://hc-ping.com/&lt;span style=&#34;color:#953800&#34;&gt;$weebhokId&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This cron reports success / failure to &lt;a href=&#34;https://healthchecks.io/&#34;&gt;healthchecks.io/&lt;/a&gt; which inturn posts an error on slack if the backup fails to report a success.&lt;/p&gt;&#xA;&lt;p&gt;That is as simple as it gets. I&amp;rsquo;ve been using this for my hobby projects for quite some time now.&lt;/p&gt;&#xA;&lt;p&gt;For more serious projects, I have some more bells and whistles like automating this with ansible, db versioning, old&#xA;backup pruning etc, if you want to know about it or have any questions tweet me at &lt;a href=&#34;https://twitter.com/oxalorg&#34;&gt;@oxalorg&lt;/a&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/django-vs-flask/</id>
    <title>Django vs Flask - Deadlines vs Control</title>
    <updated>2020-09-07T00:00:00Z</updated>
    <published>2020-09-07T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/django-vs-flask/"></link>
    <category term="programming"></category>
    <summary>Django vs Flask is mostly about philosophy (batteries included vs barebones), and what you want out of the tools you&amp;rsquo;re using. Flask is a barebones DIY approach. If you know what you want to bui...</summary>
    <content type="html">&lt;p&gt;Django vs Flask is mostly about philosophy (batteries included vs barebones),&#xA;and what you want out of the tools you&amp;rsquo;re using.&lt;/p&gt;&#xA;&lt;p&gt;Flask is a barebones DIY approach. If you know what you want to build, and want complete control&#xA;over that then Flask is great. It provides you with the skeletal base to work with but does not&#xA;provide much more than that.&lt;/p&gt;&#xA;&lt;p&gt;Django on the other hand is batteries included (not activated) and is a bit&#xA;opiniated. This lets other django devs get started up and&#xA;running quickly, it allows ease of maintenance of 3rd party apps, and allows&#xA;for a more uniform ecosystem &amp;ndash; this means there is a LOT to choose from.&lt;/p&gt;&#xA;&lt;p&gt;So in a situation when you don&amp;rsquo;t know what you will have to build Django gets you running faster.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Maybe you suddenly need LDAP support?&lt;/li&gt;&#xA;&lt;li&gt;Lots of DB relations, many to many fields&lt;/li&gt;&#xA;&lt;li&gt;Complicated Form logic and Handling (formsets is just one example)&lt;/li&gt;&#xA;&lt;li&gt;Rest Frameworks&lt;/li&gt;&#xA;&lt;li&gt;Integration with some obscure tech?&lt;/li&gt;&#xA;&lt;li&gt;Maybe you have to iterate on some complicated database designs quickly?&lt;/li&gt;&#xA;&lt;li&gt;More advanced debugging?&lt;/li&gt;&#xA;&lt;li&gt;Viewing and inspecting ORM queries?&lt;/li&gt;&#xA;&lt;li&gt;Integration with OAuth?&lt;/li&gt;&#xA;&lt;li&gt;Maybe push notifications?&lt;/li&gt;&#xA;&lt;li&gt;Support for Sorl? Elastic search?&lt;/li&gt;&#xA;&lt;li&gt;Tree based tagging/heirarchy (maybe to use with permissions?)&lt;/li&gt;&#xA;&lt;li&gt;Ratelimiting, honeypots for admin logins?&#xA;much moree..&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;All of this is possible with Flask. But it&amp;rsquo;s not guaranteed that you&amp;rsquo;ll find a&#xA;maintained (or any for that matter) 3rd party packages. But it&amp;rsquo;s almost a&#xA;guarantee that you will find it for Django (huge community + opiniated framework)&lt;/p&gt;&#xA;&lt;p&gt;But once you&amp;rsquo;ve gone through the initial phase, the implicit abstractions of Django&#xA;cause more harm than good. Things become intertwined or as Rich Hickey likes to call it&#xA;&lt;em&gt;&amp;ldquo;complected&amp;rdquo;&lt;/em&gt;, and you&amp;rsquo;re somehow limited to do things&#xA;the Django way. This is not bad, but on large projects it can be severely limiting.&lt;/p&gt;&#xA;&lt;p&gt;Other benefits of Django are the inbuilt admin module, persmissions system,&#xA;secure auth, secure mail modules, etc.&lt;/p&gt;&#xA;&lt;h2 id=&#34;but-the-single-biggest-gain-is&#34;&gt;But the single biggest gain is..&lt;/h2&gt;&#xA;&lt;p&gt;..the &lt;em&gt;Django ORM&lt;/em&gt;. It&amp;rsquo;s easier than SQLAlchemy by an order of magnitude for&#xA;most simple queries, and maybe a bit tougher for complex queries (ofcourse&#xA;this is my opinion, some folks believe otherwise). But the complex queries are 1&#xA;in 100, and even then Django ORM is very flexible (+ there&amp;rsquo;s always RAW Sql)&lt;/p&gt;&#xA;&lt;p&gt;Django works predicatably. It&amp;rsquo;s much easier to find issues and come across similar problems which&#xA;the community has faced and resolved already. This is a huge gain when you are solving problems for&#xA;business.&lt;/p&gt;&#xA;&lt;h2 id=&#34;more-benefits&#34;&gt;More Benefits&lt;/h2&gt;&#xA;&lt;p&gt;Lets be honest, in most small to medium sized web projects we end up doing a&#xA;ton of CRUD.  We have to deal a lot with data handling, and data modelling.&#xA;All of this is much easier with Django ORM. I&amp;rsquo;ve lately been trying this out with&#xA;Clojure and I can see why ORM is not really needed, but that does not translate&#xA;well in languages where we&amp;rsquo;re using classes and traditional OOP as ways of data&#xA;modelling.&lt;/p&gt;&#xA;&lt;p&gt;Django DB Migrations are the best in class. 100% automated and you will never&#xA;have to worry about it again ever.&lt;/p&gt;&#xA;&lt;p&gt;Django docs are amazing to read and follow. They are extremely indepth and 99&#xA;out of 100 times that is the only resource needed to figure out how to do&#xA;something.&lt;/p&gt;&#xA;&lt;p&gt;Django saves a lot of time as it has a lot of stuff included. I truly&#xA;believe it&amp;rsquo;s much much faster to get things working at production level quality&#xA;very quickly with Django.&lt;/p&gt;&#xA;&lt;p&gt;Lastly, I would like to say that all the above is just circumstantial. It&amp;rsquo;s important&#xA;to weight down the benefits and the tradeoffs based on your requirements. Falling&#xA;into the trap of dogma is always bad.&lt;/p&gt;&#xA;&lt;p&gt;Flask vs Django has been discussed to death over the years and you will find a lot of&#xA;varied opinion there.&lt;/p&gt;&#xA;&lt;p&gt;That makes the tag line of Django really apt, and beautiful to conclude my thoughts&#xA;on:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Django - The web framework for perfectionists with deadlines.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/getting-rid-of-digital-distractions/</id>
    <title>Getting rid of digital distractions</title>
    <updated>2020-04-30T00:00:00Z</updated>
    <published>2020-04-30T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/getting-rid-of-digital-distractions/"></link>
    <category term="philosophy"></category>
    <category term="self"></category>
    <summary>I’ve said for years that one of the 20th century’s large problems was humans having to learn to live in a world of unlimited sugar, fat and salt. One of the 21st century’s large problems is humans hav...</summary>
    <content type="html">&lt;blockquote&gt;&#xA;&lt;p&gt;I’ve said for years that one of the 20th century’s large problems was humans having to learn to live in a world of unlimited sugar, fat and salt.&lt;/p&gt;&#xA;&lt;p&gt;One of the 21st century’s large problems is humans having to learn to live in a world of unlimited information.&lt;/p&gt;&#xA;&lt;p&gt;Both problems involve overcoming our evolutionary programming to scarf up as much of what used be a limited resource as possible.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;300bps - &lt;a href=&#34;https://news.ycombinator.com/item?id=21908520&#34;&gt;source&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;We&amp;rsquo;re living in a world where information is infinitely available. No one will ever be able to consume even a fraction of it, this begs the question then why even consume? Or rather what is the most important thing to consume?&lt;/p&gt;&#xA;&lt;p&gt;I optimistically believe that pretty much anything in the below list can be &amp;ldquo;let go&amp;rdquo; as its long term impact is negligible (atleast to me):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;News&lt;/li&gt;&#xA;&lt;li&gt;Email&lt;/li&gt;&#xA;&lt;li&gt;Twitter Feeds&lt;/li&gt;&#xA;&lt;li&gt;Notifications (except security and bank transactions)&lt;/li&gt;&#xA;&lt;li&gt;Offers &amp;amp; Discounts&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll expand a bit on each of the above.&lt;/p&gt;&#xA;&lt;h2 id=&#34;news&#34;&gt;News&lt;/h2&gt;&#xA;&lt;p&gt;Any news big enough to of real value will reach you via friends &amp;amp; family, or will come up in a conversation. Infact it&amp;rsquo;s best to let your personal connections know that you never read news and if something is life changing they should contact and let you know.&lt;/p&gt;&#xA;&lt;h2 id=&#34;email&#34;&gt;Email&lt;/h2&gt;&#xA;&lt;p&gt;Sorting through constant email is really tough.&lt;/p&gt;&#xA;&lt;p&gt;Not only is there a huge context flush when reading emails (1st email might be of some cool hacker project, the next will be from some zen guru), but most of us have multiple emails.&lt;/p&gt;&#xA;&lt;p&gt;Email subscriptions from bloggers, companies, hackers, world leaders, etc might seem like a good way to keep up, to learn, and to grow yourself. But how many emails are you actually reading?&lt;/p&gt;&#xA;&lt;p&gt;All that knowledge isn&amp;rsquo;t critical to your life. Everytime I open hacker news or reddit and read something interesting, I ask myself the question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If I died without knowthing this piece of info, would it really matter?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&amp;hellip;the answer is almost always NO.&lt;/p&gt;&#xA;&lt;p&gt;But that does not mean I don&amp;rsquo;t want to grow incrementally. And so I do subscribe to a few blogs &amp;ndash; mostly philosophy related &amp;ndash; but only if it &lt;strong&gt;really really&lt;/strong&gt; matters to me.&lt;/p&gt;&#xA;&lt;h2 id=&#34;twitter&#34;&gt;Twitter&lt;/h2&gt;&#xA;&lt;p&gt;Ah. The good ol bird. Just a look here, and a peek there and BOOM! You&amp;rsquo;ve drowned for an hour in the endless stream of twitter feeds.&lt;/p&gt;&#xA;&lt;p&gt;The worst part is that although I open Twitter to get my daily fix, but I somehow end up 10 threads deep in some random dudes profile discussing about what do kiwis eat for breakfast.&lt;/p&gt;&#xA;&lt;p&gt;If I absolutely must use twitter, I just read the top level tweets. I don&amp;rsquo;t open the threads. Otherwise my time will almost definitely Stack Overflow ;P&lt;/p&gt;&#xA;&lt;h2 id=&#34;notifications&#34;&gt;Notifications&lt;/h2&gt;&#xA;&lt;p&gt;The anxiety is real. Too real.&lt;/p&gt;&#xA;&lt;p&gt;I have disabled notifications for almost everything, except banking apps.&lt;/p&gt;&#xA;&lt;p&gt;I keep my phone on DND almost all the time. I avoid having any critical bottleneck on me. Luckily DND modes have settings to allow calls from important contacts (family, best friends).&lt;/p&gt;&#xA;&lt;h2 id=&#34;offers--discounts&#34;&gt;Offers &amp;amp; Discounts&lt;/h2&gt;&#xA;&lt;p&gt;I am not guilty of this, but ALMOST EVERYONE I KNOW is.&lt;/p&gt;&#xA;&lt;p&gt;People just can&amp;rsquo;t stop chasing offers and discounts.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;either they get tricked by ads and end up buying things they don&amp;rsquo;t need&lt;/li&gt;&#xA;&lt;li&gt;or they end up spending a huge amount of time &amp;amp; energy behind it&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;tl;dr: Silence, mindfulness, and focus can have life changing effects. But is extremely difficult to do.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m hoping to get &lt;strong&gt;more in the flow&lt;/strong&gt; as often as I can. And I am starting this process by getting rid of my digital distractions.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/python-virtualenv-management-tips/</id>
    <title>Python Virtualenv management tips</title>
    <updated>2020-04-24T00:00:00Z</updated>
    <published>2020-04-24T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/python-virtualenv-management-tips/"></link>
    <category term="programming"></category>
    <summary>I work with a lot of Python projects, and managing virtualenvs is extremely critical to my workflow. A lot of people are still using virtualenv commands or python -m venv commands. If you have never u...</summary>
    <content type="html">&lt;p&gt;I work with a lot of Python projects, and managing virtualenvs is extremely critical to my workflow.&lt;/p&gt;&#xA;&lt;p&gt;A lot of people are still using &lt;code&gt;virtualenv&lt;/code&gt; commands or &lt;code&gt;python -m venv&lt;/code&gt; commands.&lt;/p&gt;&#xA;&lt;p&gt;If you have never used virtualenv before I&amp;rsquo;d recommend reading &lt;a href=&#34;https://arionmiles.me/posts/using-virtual-environments-in-py3/&#34;&gt;this guide by @arionmiles&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I would highly recommend you to start using a utility called &lt;code&gt;virtualenvwrapper&lt;/code&gt; &lt;a href=&#34;https://virtualenvwrapper.readthedocs.io/en/latest/&#34;&gt;link&lt;/a&gt;. Some of it&amp;rsquo;s benefits are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;all virtualenv folders are stored inside &lt;code&gt;~/.virtualenv&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;easy activation of virtualenv - &lt;code&gt;workon &amp;lt;venv name&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;easy creation of virtualenv - &lt;code&gt;mkvirtualenv &amp;lt;venv name&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;easy deletion of virtualenv - &lt;code&gt;rmvirtualenv &amp;lt;venv name&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Here &lt;code&gt;&amp;lt;venv name&amp;gt;&lt;/code&gt; can be anything, but I follow the convention of using project root directory name.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lazy-loading-virtualenvwrapper&#34;&gt;Lazy Loading Virtualenvwrapper&lt;/h2&gt;&#xA;&lt;p&gt;If you source the virtualenv script, by default it will run everytime you create a new shell.&lt;/p&gt;&#xA;&lt;p&gt;Make sure to instead lazy load it - &lt;a href=&#34;https://virtualenvwrapper.readthedocs.io/en/latest/install.html#lazy-loading&#34;&gt;instructions here&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introducing-the-w-command&#34;&gt;Introducing the &lt;code&gt;w&lt;/code&gt; command&lt;/h2&gt;&#xA;&lt;p&gt;Using the above 3 commands is a huge gain in itself, but lets go a bit further.&lt;/p&gt;&#xA;&lt;p&gt;I have written a custom function called &lt;code&gt;w&lt;/code&gt; and added it to my &lt;code&gt;~/.zshrc&lt;/code&gt; (or you can add it to &lt;code&gt;~/.bashrc&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;p&gt;It does 2 things. &lt;code&gt;w&lt;/code&gt; will find a virtualenv named with current directory:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If a venv exists it will activate it&lt;/li&gt;&#xA;&lt;li&gt;other wise it will prompt you if you want to create one instead&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#953800&#34;&gt;workon_cache&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;function&lt;/span&gt; w&lt;span style=&#34;color:#0550ae&#34;&gt;()&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;[&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;${#&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;workon_cache&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[@]&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt; -eq &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;]&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#57606a&#34;&gt;# populate cache&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#953800&#34;&gt;workon_cache&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;workon&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#953800&#34;&gt;curr_pwd&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;pwd&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#953800&#34;&gt;curr_dir&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;basename &lt;span style=&#34;color:#953800&#34;&gt;$curr_pwd&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;[[&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34; &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;workon_cache&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;[@]&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt; &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;=&lt;/span&gt;~ &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34; &lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;curr_dir&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt; &amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;]]&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#57606a&#34;&gt;# workon_cache contains env matching curr_dir&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        workon &lt;span style=&#34;color:#953800&#34;&gt;$curr_dir&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;else&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Sorry. No virtualenv found.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Do you want to create a virtualenv named: &amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$curr_dir&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;? [y/N]&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;read&lt;/span&gt; choice&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;[[&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;$choice&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;[&lt;/span&gt;yY&lt;span style=&#34;color:#0550ae&#34;&gt;]&lt;/span&gt;* &lt;span style=&#34;color:#0550ae&#34;&gt;]]&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;;&lt;/span&gt; &lt;span style=&#34;color:#cf222e&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            mkvirtualenv &lt;span style=&#34;color:#953800&#34;&gt;$curr_dir&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#953800&#34;&gt;workon_cache&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;+=(&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;$curr_dir&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#cf222e&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;&lt;span style=&#34;color:#cf222e&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Using &lt;code&gt;w&lt;/code&gt;, my workflow for activating virtualenvs is as simple as &lt;code&gt;cd&lt;/code&gt;ing into my root project directory and typing &lt;code&gt;w&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ox in /www/oxal.org on master ● ● λ w&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;(&lt;/span&gt;oxal.org&lt;span style=&#34;color:#0550ae&#34;&gt;)&lt;/span&gt; ox in /www/oxal.org on master ● ● λ&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;# as you can see the virtualenv `oxal.org` got activated&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;# automatically from the project dir name&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I use the same command &lt;code&gt;w&lt;/code&gt; to create virtualenvs too.&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ox in /mozilla/foundation.mozilla.org on 3763-fix-rss-feed-format λ w&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sorry. No virtualenv found.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Do you want to create a virtualenv named: &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;foundation.mozilla.org&amp;#39;&lt;/span&gt;? &lt;span style=&#34;color:#0550ae&#34;&gt;[&lt;/span&gt;y/N&lt;span style=&#34;color:#0550ae&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;y&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Using base prefix &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#39;/usr&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;New python executable in /home/ox/.virtualenvs/foundation.mozilla.org/bin/python3&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Also creating executable in /home/ox/.virtualenvs/foundation.mozilla.org/bin/python&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Installing setuptools, pip, wheel...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;done&lt;/span&gt;.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;virtualenvwrapper.user_scripts creating /home/ox/.virtualenvs/foundation.mozilla.org/bin/predeactivate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;virtualenvwrapper.user_scripts creating /home/ox/.virtualenvs/foundation.mozilla.org/bin/postdeactivate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;virtualenvwrapper.user_scripts creating /home/ox/.virtualenvs/foundation.mozilla.org/bin/preactivate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;virtualenvwrapper.user_scripts creating /home/ox/.virtualenvs/foundation.mozilla.org/bin/postactivate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;virtualenvwrapper.user_scripts creating /home/ox/.virtualenvs/foundation.mozilla.org/bin/get_env_details&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;(&lt;/span&gt;foundation.mozilla.org&lt;span style=&#34;color:#0550ae&#34;&gt;)&lt;/span&gt; ox in /mozilla/foundation.mozilla.org on 3763-fix-rss-feed-format λ&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This has made managing virtualenv a breeze.&lt;/p&gt;&#xA;&lt;p&gt;There are some plugins which auto-activate a venv when you &lt;code&gt;cd&lt;/code&gt; into a project directory (at a bit of performance cost), but as the Zen of Python says&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Explicit is better than Implicit&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/wip-my-first-vim-plugin/</id>
    <title>[WIP] My First Vim Plugin: vim-genox</title>
    <updated>2020-04-23T00:00:00Z</updated>
    <published>2020-04-23T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/wip-my-first-vim-plugin/"></link>
    <category term="programming"></category>
    <summary>Lately I have been really enjoying my time with NeoVim. If you directly want to see the repository : oxalorg/vim-genox Check my dotfiles here Using vim over the years, I already somewhat understand VimScript but only on the surface. I could write simple functions, commands, loops, and controls &amp;ndash; just enough for me to figure out petty hacks using existing solution and stuff them in my vimrc.</summary>
    <content type="html">&lt;p&gt;Lately I have been really enjoying my time with NeoVim.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;If you directly want to see the repository&lt;/em&gt;:&#xA;&lt;a href=&#34;https://github.com/oxalorg/vim-genox/&#34;&gt;oxalorg/vim-genox&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Check my dotfiles &lt;a href=&#34;https://github.com/oxalorg/dotfiles&#34;&gt;here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Using vim over the years, I already somewhat understand VimScript but only on&#xA;the surface. I could write simple functions, commands, loops, and controls &amp;ndash;&#xA;just enough for me to figure out petty hacks using existing solution and stuff them in&#xA;my vimrc.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been meaning to learn VimScript since a long time now. Recently my vimrc&#xA;exceeded over 500 lines and I hate the fact that I don&amp;rsquo;t understand a lot of the&#xA;wizardry going on on it.&lt;/p&gt;&#xA;&lt;p&gt;I had a problem since the past few weeks (years actually): &lt;strong&gt;Publishing to my&#xA;blog is unnecessarily hard&lt;/strong&gt;, and I have always blamed this complexity to why I&#xA;haven&amp;rsquo;t been blogging more frequently.&lt;/p&gt;&#xA;&lt;p&gt;I use a static site generator called &lt;a href=&#34;https://github.com/oxalorg/genox&#34;&gt;genox&lt;/a&gt;&#xA;and currently the procedure of creating a new blog post looks like this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to my blog directory&lt;/li&gt;&#xA;&lt;li&gt;Create a new markdown file with proper filename&lt;/li&gt;&#xA;&lt;li&gt;Add YML meta tags in a correct format&lt;/li&gt;&#xA;&lt;li&gt;Add current date in the meta tag&lt;/li&gt;&#xA;&lt;li&gt;write content&lt;/li&gt;&#xA;&lt;li&gt;save the file go back to blog root directory&lt;/li&gt;&#xA;&lt;li&gt;build and deploy&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I want to automate this process using vim so that I can do something like this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hotkey to create a new blog post directly (with yaml metadata) in my blog&#xA;directory (doesn&amp;rsquo;t matter where I am as long as I am inside neovim, maybe I&#xA;want to extract some code snippet I just wrote in a different project and make&#xA;a post out of it?)&lt;/li&gt;&#xA;&lt;li&gt;Hotkey to build and deploy (from within vim) &amp;amp; copy blog url to clipboard)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;So I&amp;rsquo;ll be building a vim plugin for &lt;code&gt;genox&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I intend to learn VimL while building this and although I could just stuff&#xA;everything in my vimrc - I am using this as an excuse to learn about creating&#xA;and distributing Vim Plugins.&lt;/p&gt;&#xA;&lt;p&gt;My inital version of the plugin can be found here:&#xA;&lt;a href=&#34;https://github.com/oxalorg/vim-genox/&#34;&gt;oxalorg/vim-genox&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It only works on my machine and only solves a few of my problems. But I hope to&#xA;include a lot more automation into it.&lt;/p&gt;&#xA;&lt;p&gt;Now that I am understanding a bit of VimScript, maybe&amp;hellip;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;vim is the new emacs&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;hehe just kidding&lt;/em&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/my-workflow-setup-2020/</id>
    <title>My Workflow / Tool Setup</title>
    <updated>2020-04-14T00:00:00Z</updated>
    <published>2020-04-14T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/my-workflow-setup-2020/"></link>
    <category term="programming"></category>
    <summary>It&amp;rsquo;s been a while (maybe never) since I wrote about my workflow setup to share with friends, and also to track how my setup will evolve across the year. Hardware Dell XPS 13 - Codename: Nano Thi...</summary>
    <content type="html">&lt;p&gt;It&amp;rsquo;s been a while (maybe never) since I wrote about my workflow setup to share&#xA;with friends, and also to track how my setup will evolve across the year.&lt;/p&gt;&#xA;&lt;h2 id=&#34;hardware&#34;&gt;Hardware&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Dell XPS 13 - Codename: &lt;em&gt;Nano&lt;/em&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This is used for business stuff and when portability is needed&lt;/li&gt;&#xA;&lt;li&gt;i5, 8gb, 256GB ssd&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;PC - &lt;em&gt;Codename: Acid&lt;/em&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;i5, 8gb, 256GB ssd, GTX-760&lt;/li&gt;&#xA;&lt;li&gt;This is my primary machine for Gaming + Development&lt;/li&gt;&#xA;&lt;li&gt;Logitech MK120 mouse + keyboard combo&lt;/li&gt;&#xA;&lt;li&gt;Some redgear 7.1 gaming headset&lt;/li&gt;&#xA;&lt;li&gt;Dual 21&amp;quot; Monitor setup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Mac Mini 2019 - Codename: &lt;em&gt;MacNCheese&lt;/em&gt; / &lt;em&gt;mini&lt;/em&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I use this primarily for iOS development&lt;/li&gt;&#xA;&lt;li&gt;i3 + 8GB + 128GB ssd&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;software&#34;&gt;Software&lt;/h2&gt;&#xA;&lt;p&gt;My development workflow is mostly terminal based.&lt;/p&gt;&#xA;&lt;p&gt;Lets explore it from the outermost layer to the innermost:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Windows 10 (Insider Slow Ring, Fast Ring if I need some new feature)&lt;/li&gt;&#xA;&lt;li&gt;Windows Terminal&lt;/li&gt;&#xA;&lt;li&gt;WSL 2&lt;/li&gt;&#xA;&lt;li&gt;Ubuntu 18.04&lt;/li&gt;&#xA;&lt;li&gt;ZSH&lt;/li&gt;&#xA;&lt;li&gt;NeoVim with coc.nvim&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Other software:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Firefox for personal stuff&lt;/li&gt;&#xA;&lt;li&gt;Chrome for work stuff&lt;/li&gt;&#xA;&lt;li&gt;Dropbox for File Sync&lt;/li&gt;&#xA;&lt;li&gt;Illustrator &amp;amp; Photoshop to do a bit of design from time to time.&lt;/li&gt;&#xA;&lt;li&gt;Riot (Matrix Client), Slack, &amp;amp; Discord for chat stuff.&lt;/li&gt;&#xA;&lt;li&gt;Thunderbird for mail (and trying out neomutt on a few accounts)&lt;/li&gt;&#xA;&lt;li&gt;OpenVPN Community client for Windows&lt;/li&gt;&#xA;&lt;li&gt;Listary for easier directory browsing&lt;/li&gt;&#xA;&lt;li&gt;KeePassX for managing passwords&lt;/li&gt;&#xA;&lt;li&gt;Steam for games&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;That&amp;rsquo;s the high level view of my setup.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll be updating this post with more detials over the course of this year. So&#xA;keep checking ^_^&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/fizzbuzz-in-clojure/</id>
    <title>FizzBuzz in Clojure</title>
    <updated>2020-03-03T00:00:00Z</updated>
    <published>2020-03-03T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/fizzbuzz-in-clojure/"></link>
    <category term="programming"></category>
    <summary>I&amp;rsquo;ve recently started working in Clojure seriously. I&amp;rsquo;ve been watching Rich Hickeys talks since almost a year now, and everytime I try to learn another language like &amp;ldquo;Go&amp;rdquo; - wise words of Rich echo in my ear: &amp;ldquo;Don&amp;rsquo;t complect&amp;rdquo; .</summary>
    <content type="html">&lt;p&gt;I&amp;rsquo;ve recently started working in Clojure seriously. I&amp;rsquo;ve been watching Rich Hickeys talks since almost a year now, and everytime I&#xA;try to learn another language like &amp;ldquo;Go&amp;rdquo; - wise words of Rich echo in my ear: &lt;em&gt;&amp;ldquo;Don&amp;rsquo;t complect&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;ldquo;Simplicity is hard work. But, there&amp;rsquo;s a huge payoff. The person who has a genuinely simpler system - a system made out of genuinely simple parts, is going to be able to affect the greatest change with the least work. He&amp;rsquo;s going to kick your ass. He&amp;rsquo;s gonna spend more time simplifying things up front and in the long haul he&amp;rsquo;s gonna wipe the plate with you because he&amp;rsquo;ll have that ability to change things when you&amp;rsquo;re struggling to push elephants around.&amp;rdquo; - &lt;em&gt;Rich Hickey&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve always heard folks say that Lisp will liberate you, it will force you to think in ways you couldn&amp;rsquo;t even imagine. This has been bugging me for years, especially since I&amp;rsquo;ve read this article by Paul Graham where he described about the &amp;ldquo;Blub Pradox&amp;rdquo;:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;As long as our hypothetical Blub programmer is looking down the power continuum, he knows he&amp;rsquo;s looking down. Languages less powerful than Blub are obviously less powerful, because they&amp;rsquo;re missing some feature he&amp;rsquo;s used to. But when our hypothetical Blub programmer looks in the other direction, up the power continuum, he doesn&amp;rsquo;t realize he&amp;rsquo;s looking up.  What he sees are merely weird languages. He probably considers them about equivalent in power to Blub, but with all this other hairy stuff thrown in as well. Blub is good enough for him, because he thinks in Blub. - &lt;em&gt;Paul Graham on &lt;a href=&#34;http://www.paulgraham.com/avg.html&#34;&gt;Beating the Averages&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I finally decided to pull the trigger and get good at Clojure.&lt;/p&gt;&#xA;&lt;p&gt;For the time being, I&amp;rsquo;m lurking the Clojurians slack channel and Clojure subreddit because what better way to learn more about a language than to directly interact with the community! (I&amp;rsquo;m also going through &lt;a href=&#34;https://www.braveclojure.com/&#34;&gt;BraveClojure&lt;/a&gt;)&lt;/p&gt;&#xA;&lt;p&gt;I saw someone asking another beginner if they could do the FizzBuzz in clojure, and I thought to myself &lt;em&gt;&amp;ldquo;well that must be easy&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Never have I ever felt so disoriented on trying to solve such a simple problem.&#xA;I was out of my element for a few seconds, my hands didn&amp;rsquo;t move in reflex like&#xA;they&amp;rsquo;ve been moving since years. I had to pause. I had to think.&lt;/p&gt;&#xA;&lt;p&gt;This is when I realised, Clojure will help me get a different perspective to&#xA;programming. It will help me evolve. Which is exactly what I need.&lt;/p&gt;&#xA;&lt;p&gt;So this is what I came up with after a few minutes of thinking:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#57606a&#34;&gt;; fizzbuzz&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;defn &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;checkFizz&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;num&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;cond&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;zero? &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;mod&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;num&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;15&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;FizzBuzz&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;zero? &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;mod&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;num&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Buzz&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;zero? &lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;mod&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;num&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Fizz&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#032f62&#34;&gt;:else&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;num&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;-&amp;gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;take &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;100&lt;/span&gt; &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;iterate inc &lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt; &lt;span style=&#34;color:#57606a&#34;&gt;; i like this more than (range 1 101)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;map &lt;/span&gt;&lt;span style=&#34;color:#953800&#34;&gt;checkFizz&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#6639ba&#34;&gt;run!&lt;/span&gt; &lt;span style=&#34;color:#953800&#34;&gt;println&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;))&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I then tried solving it in python (my hands moved on their own and I didn&amp;rsquo;t even have to think):&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color:#f7f7f7;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#cf222e&#34;&gt;for&lt;/span&gt; i &lt;span style=&#34;color:#0550ae&#34;&gt;in&lt;/span&gt; &lt;span style=&#34;color:#6639ba&#34;&gt;range&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0550ae&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;101&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;):&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;if&lt;/span&gt; i &lt;span style=&#34;color:#0550ae&#34;&gt;%&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;15&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;print&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;FizzBuzz&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;elif&lt;/span&gt; i &lt;span style=&#34;color:#0550ae&#34;&gt;%&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;5&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;print&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Buzz&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;elif&lt;/span&gt; i &lt;span style=&#34;color:#0550ae&#34;&gt;%&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;3&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#0550ae&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;print&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0a3069&#34;&gt;&amp;#34;Fizz&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#cf222e&#34;&gt;else&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#6639ba&#34;&gt;print&lt;/span&gt;&lt;span style=&#34;color:#1f2328&#34;&gt;(&lt;/span&gt;i&lt;span style=&#34;color:#1f2328&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This left me with a feeling I hadn&amp;rsquo;t been able to grasp on to while programming in the past few years. A feeling of pure joy. I know this example does not portray that, but as a beginner it was a wonderful feeling.&lt;/p&gt;&#xA;&lt;p&gt;I think there could me many many more ways to solve FizzBuzz in clojure and I&amp;rsquo;ll definitely be exploring them in future articles. So stay tuned!&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;“Rich Hickey once said programmers know the benefits of everything and the tradeoffs of nothing&amp;hellip;an approach that can lead a project down a path of frustra‐ ted developers and unhappy customers. But as an architect you must consider the tradeoffs of every new library, language, pattern, or approach and quickly make decisions often with incomplete information.”&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/revival-of-this-blog/</id>
    <title>Revival of this blog</title>
    <updated>2020-02-23T00:00:00Z</updated>
    <published>2020-02-23T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/revival-of-this-blog/"></link>
    <category term="self"></category>
    <summary>I&amp;rsquo;ve not posted anything on any of my blogs for quite some time. Easiest explanation I have is that I got busy. The real one is that I got lazy.</summary>
    <content type="html">&lt;p&gt;I&amp;rsquo;ve not posted anything on any of my blogs for quite some time.&#xA;Easiest explanation I have is that I got busy. The real one is&#xA;that I got lazy.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I&amp;rsquo;m still privacy concious and I still don&amp;rsquo;t like sharing stuff in public. But&#xA;I want to start writing again, and the thought of even 1 random person coming&#xA;across my datastream on the interwebz gives me motivation.&lt;/p&gt;&#xA;&lt;p&gt;Also I&amp;rsquo;ve been listening to a lot of Seth Godin the past few days and I really&#xA;admire his resolve to blog one article a day to get his creative juices&#xA;flowing.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/improving-tk-django-speed-performance/</id>
    <title>Benchmarking Website TTFB / Server processing time</title>
    <updated>2020-01-10T00:00:00Z</updated>
    <published>2020-01-10T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/improving-tk-django-speed-performance/"></link>
    <summary>One of my sites was loading really slowly on its home page. I decided to dive in to figure out how to benchmark it in an easy way. First we need to figure out for i in `seq 1 10`; do curl -w &amp;quot;%{t...</summary>
    <content type="html">&lt;p&gt;One of my sites was loading really slowly on its home page. I decided to dive&#xA;in to figure out how to benchmark it in an easy way.&lt;/p&gt;&#xA;&lt;p&gt;First we need to figure out&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;for i in `seq 1 10`; do&#xA;  curl -w &amp;quot;%{time_starttransfer}\n&amp;quot; -o /dev/null -s https://www.taazakitchen.com;&#xA;done&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;1.706640&#xA;1.496602&#xA;1.546909&#xA;1.476469&#xA;1.349275&#xA;1.596273&#xA;1.548335&#xA;1.434519&#xA;1.550846&#xA;1.466719&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;After update&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;0.350344&#xA;0.318239&#xA;0.102678&#xA;0.200323&#xA;0.082329&#xA;0.081604&#xA;0.083558&#xA;0.098847&#xA;0.113125&#xA;0.133696&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/this-blog-is-mine-now/</id>
    <title>This blog is mine now.</title>
    <updated>2018-01-20T00:00:00Z</updated>
    <published>2018-01-20T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/this-blog-is-mine-now/"></link>
    <category term="self"></category>
    <summary>I don&amp;rsquo;t know how humans behave. But I do know that a majority of the people have happily hopped onto the social media bandwagon. Everyone, even the more recluse and quiet loving people, have fal...</summary>
    <content type="html">&lt;p&gt;I don&amp;rsquo;t know how humans behave. But I do know that a&#xA;majority of the people have happily hopped onto the social&#xA;media bandwagon. Everyone, even the more recluse and quiet&#xA;loving people, have fallen prey to the cold stabbing of the&#xA;technology abusing demon. These thoughts resonate with those&#xA;of your friends who dissentingly keep reminding us about the&#xA;evil wrath of social media which has enslaved us. However they&#xA;do not resonate with me, yet it&amp;rsquo;s important to know both the&#xA;sides of a coin.&lt;/p&gt;&#xA;&lt;p&gt;I, on the other hand, am absolutely appalled by the &lt;em&gt;magic&lt;/em&gt;&#xA;that internet is. Even though having understood the finer&#xA;intricacies of TCP/IP, it still feels like magic to me. The&#xA;world however, has taken it for granted. We, collectively,&#xA;have not only lost the fascination towards &lt;em&gt;magic&lt;/em&gt; but have&#xA;also left our inner child behind by becoming preoccupied with&#xA;thoughts and activities which, in the grand scheme of things,&#xA;will turn us into emotional robots.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/computer-science-courses-indian-college/</id>
    <title>Computer science/engineering courses in an indian college</title>
    <updated>2017-04-20T00:00:00Z</updated>
    <published>2017-04-20T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/computer-science-courses-indian-college/"></link>
    <category term="self"></category>
    <summary>These are the courses I completed ( brace yourself ): 1st Year Applied Mathematics-I Applied Physics‐I Applied Chemistry Engineering Mechanics Basic Electrical Electronics Engineering Environmental st...</summary>
    <content type="html">&lt;p&gt;These are the courses I completed (&lt;em&gt;brace yourself&lt;/em&gt;):&lt;/p&gt;&#xA;&lt;h3 id=&#34;1st-year&#34;&gt;1st Year&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Applied Mathematics-I&lt;/li&gt;&#xA;&lt;li&gt;Applied Physics‐I&lt;/li&gt;&#xA;&lt;li&gt;Applied Chemistry&lt;/li&gt;&#xA;&lt;li&gt;Engineering Mechanics&lt;/li&gt;&#xA;&lt;li&gt;Basic Electrical&lt;/li&gt;&#xA;&lt;li&gt;Electronics Engineering&lt;/li&gt;&#xA;&lt;li&gt;Environmental studies&lt;/li&gt;&#xA;&lt;li&gt;Basic Workshop Practice‐I&lt;/li&gt;&#xA;&lt;li&gt;Applied Mathematics‐II&lt;/li&gt;&#xA;&lt;li&gt;Applied Physics‐II&lt;/li&gt;&#xA;&lt;li&gt;Applied Chemistry&lt;/li&gt;&#xA;&lt;li&gt;Engineering Drawing&lt;/li&gt;&#xA;&lt;li&gt;Structured Programming Approach  &lt;/li&gt;&#xA;&lt;li&gt;Communication Skills&lt;/li&gt;&#xA;&lt;li&gt;Basic Workshop Practice ‐II&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;2nd-year&#34;&gt;2nd Year&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Applied Mathematics III&lt;/li&gt;&#xA;&lt;li&gt;OOP Methodology&lt;/li&gt;&#xA;&lt;li&gt;Data Structures&lt;/li&gt;&#xA;&lt;li&gt;Digital Logic and Design Analysis&lt;/li&gt;&#xA;&lt;li&gt;Discrete Structures&lt;/li&gt;&#xA;&lt;li&gt;Electronic Circuits&lt;/li&gt;&#xA;&lt;li&gt;Applies Mathematics IV&lt;/li&gt;&#xA;&lt;li&gt;Analysis of Algorithms&lt;/li&gt;&#xA;&lt;li&gt;Computer Organization and Architecture&lt;/li&gt;&#xA;&lt;li&gt;DBMS&lt;/li&gt;&#xA;&lt;li&gt;Theoretical Computer Science&lt;/li&gt;&#xA;&lt;li&gt;Computer Graphics&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;3rd-year&#34;&gt;3rd Year&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Microprocessors&lt;/li&gt;&#xA;&lt;li&gt;Operating Systems&lt;/li&gt;&#xA;&lt;li&gt;Structured and Object Oriented Analysis and Design&lt;/li&gt;&#xA;&lt;li&gt;Computer Networks&lt;/li&gt;&#xA;&lt;li&gt;Web technologies (elective/mini course)&lt;/li&gt;&#xA;&lt;li&gt;Business Communication and Ethics (elective/mini course)&lt;/li&gt;&#xA;&lt;li&gt;System Programming and Compilers&lt;/li&gt;&#xA;&lt;li&gt;Software Engineering&lt;/li&gt;&#xA;&lt;li&gt;Distributed Databases&lt;/li&gt;&#xA;&lt;li&gt;Mobile communication and Computing&lt;/li&gt;&#xA;&lt;li&gt;Project Management&lt;/li&gt;&#xA;&lt;li&gt;Network Programming (mini course)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;4th-year&#34;&gt;4th Year&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Digital Signal Processing&lt;/li&gt;&#xA;&lt;li&gt;Cryptography&lt;/li&gt;&#xA;&lt;li&gt;Artificial Intelligence&lt;/li&gt;&#xA;&lt;li&gt;Soft Computing (Neural Networks)&lt;/li&gt;&#xA;&lt;li&gt;Cloud Computing (mini course)&lt;/li&gt;&#xA;&lt;li&gt;Data warehouse and mining&lt;/li&gt;&#xA;&lt;li&gt;Human Machine Interaction&lt;/li&gt;&#xA;&lt;li&gt;Parallel and Distributed Systems&lt;/li&gt;&#xA;&lt;li&gt;Machine Learning&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/banished-my-first-great-town/</id>
    <title>Banished: My first great town</title>
    <updated>2017-04-16T00:00:00Z</updated>
    <published>2017-04-16T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/banished-my-first-great-town/"></link>
    <category term="self"></category>
    <summary>I&amp;rsquo;m abosulutely loving Banished. I&amp;rsquo;m around 21 hours in total, and I finally reached 150 pop. I always end up doing some crazy shit and die early on, but this time I managed to survive (ev...</summary>
    <content type="html">&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/starting.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/starting.jpg&#34; alt=&#34;The beginning&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m abosulutely loving Banished. I&amp;rsquo;m around 21 hours in&#xA;total, and I finally reached 150 pop. I always end up doing&#xA;some crazy shit and die early on, but this time I managed to&#xA;survive (even with the crazy stuff).&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/marketplace.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/marketplace.jpg&#34; alt=&#34;The lively marketplace&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Just one regret that I couldn&amp;rsquo;t name the town myself. I was in&#xA;such a hurry to play the game (after trying to get &amp;ldquo;MegaMod&amp;rdquo;&#xA;working for hours, and giving up on it) that I didn&amp;rsquo;t even check&#xA;the game options, I just blindly started the game.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/countryside.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/countryside.jpg&#34; alt=&#34;The calm and serene countryside&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The mods I used:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Apiary/Mead&lt;/li&gt;&#xA;&lt;li&gt;Dairy Milk and Creamery&lt;/li&gt;&#xA;&lt;li&gt;Increased Resources combined&lt;/li&gt;&#xA;&lt;li&gt;Little Chapel&lt;/li&gt;&#xA;&lt;li&gt;More Terrain&lt;/li&gt;&#xA;&lt;li&gt;Smaller vendor buildings&lt;/li&gt;&#xA;&lt;li&gt;Specialized stockpiles&lt;/li&gt;&#xA;&lt;li&gt;Stone Bridges&lt;/li&gt;&#xA;&lt;li&gt;Storage Shed&lt;/li&gt;&#xA;&lt;li&gt;Tighter roads&lt;/li&gt;&#xA;&lt;li&gt;Tree growth and life&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/miners.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/miners.jpg&#34; alt=&#34;The mining area&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/150pop.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/150pop.jpg&#34; alt=&#34;banished 150 pop&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I got bored at around 250 population.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/cemetry.jpg&#34;&gt;&lt;img src=&#34;https://datacore.oxal.org/media/blog/banished-my-first-great-town/cemetry.jpg&#34; alt=&#34;Paying respect to our elders&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/loophole-for-immortality/</id>
    <title>Loophole for Immortality</title>
    <updated>2017-01-11T00:00:00Z</updated>
    <published>2017-01-11T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/loophole-for-immortality/"></link>
    <category term="philosophy"></category>
    <summary>PS: This is a recovered version of the original article which I lost somehow So I just read a question of /r/AskReddit: A genie grants you immortality under the condition you choose one possible but i...</summary>
    <content type="html">&lt;p&gt;&lt;em&gt;PS: This is a recovered version of the original article which I lost somehow&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I just read a question of /r/AskReddit:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.reddit.com/r/AskReddit/comments/5n7hea/a_genie_grants_you_immortality_under_the/&#34;&gt;A genie grants you immortality under the condition you choose one possible but improbable way you can be killed. What is your immortality loophole?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Before reading any of the replies, I wanted to try&#xA;and think hard for this one. It really piqued my&#xA;interest and so I&amp;rsquo;m going to think this through.&lt;/p&gt;&#xA;&lt;p&gt;Before we take a look at some of the loopholes, it&amp;rsquo;s&#xA;best to try and think of some scenarios which clearly&#xA;seem fine on the surface, but will end up putting our&#xA;immortality in a pinch.&lt;/p&gt;&#xA;&lt;h2 id=&#34;get-hit-by-an-aestroid-which-is-atleast-14th-the-size-of-the-earth&#34;&gt;Get hit by an aestroid which is atleast 1/4th the size of the earth.&lt;/h2&gt;&#xA;&lt;p&gt;Probable? Definitely.&lt;/p&gt;&#xA;&lt;p&gt;If it&amp;rsquo;s a natural incident and we cannot destroy the&#xA;asteroid, all of us die anyways. I surely don&amp;rsquo;t want&#xA;to be the last human alive. It&amp;rsquo;d be scary as hell.&lt;/p&gt;&#xA;&lt;p&gt;But what if it&amp;rsquo;s not a natural incident, and we have&#xA;an interstellar enemy trying to wipe us out?&lt;/p&gt;&#xA;&lt;p&gt;What if in a million years we are a type 5 civilization&#xA;and every single being out there is finding a way to&#xA;end my immortality?&lt;/p&gt;&#xA;&lt;p&gt;A type 5 civilization can definitely alter the path of a&#xA;pesky asteroid on an abadoned and drained out planet, or&#xA;even a dying star (I&amp;rsquo;m immortal so stars can&amp;rsquo;t kill me&#xA;right?) and finish me off.&lt;/p&gt;&#xA;&lt;p&gt;To be honest, there&amp;rsquo;s no need to go to such extremes.&#xA;I could simply be chillin in my rogue falcon when my systems&#xA;go down and I end up coliding with an asteroid. I&amp;rsquo;m dead.&#xA;WELP, &lt;em&gt;loopholes can have loopholes too&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;There are some more issues with this, but lets move&#xA;on for now.&lt;/p&gt;&#xA;&lt;h2 id=&#34;i-can-only-be-killed-by-an-alien&#34;&gt;I can only be killed by an alien&lt;/h2&gt;&#xA;&lt;p&gt;It&amp;rsquo;s the year 2100, the first man landed on Mars 2 months ago.&#xA;He&amp;rsquo;s on his way back to earth. He lands today, and unkowingly&#xA;he carries an alien &lt;em&gt;virus&lt;/em&gt; like form with him. It ends up&#xA;spreading and wipes out the entire humanity.&lt;/p&gt;&#xA;&lt;p&gt;That was easy. Let&amp;rsquo;s think harder.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;The above 2 scenarios are giving the power to control my&#xA;immortality in the hands of external factors. This is obviously&#xA;bad for a ton of reasons.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I can&amp;rsquo;t kill myself if I am being tortured for a gazillion&#xA;years.&lt;/li&gt;&#xA;&lt;li&gt;I can&amp;rsquo;t kil myself if I get trapped inside a black hole.&#xA;Please, I have no intentions of being alive in nothingness&#xA;for the rest of eternity. The thought itself kills me.&lt;/li&gt;&#xA;&lt;li&gt;I&amp;rsquo;m susceptiple to people finding out the loophole and&#xA;finishing me off.&lt;/li&gt;&#xA;&lt;li&gt;Murphys law: anything that can go wrong will go wrong.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;We want something which can be controlled by myself. But it can&amp;rsquo;t be something&#xA;I can be forced into, like say for example &amp;ldquo;I die when I rip apart my 2 fingers&#xA;and 1 toe with my mouth&amp;rdquo;, I can be forced to do that, I may not have enough&#xA;teeth left, or a myriad of other things can again go wrong.&lt;/p&gt;&#xA;&lt;p&gt;So this narrows down to something &lt;em&gt;intrinsic&lt;/em&gt;, something very&#xA;core to me being alive. But before exploring that, let&amp;rsquo;s&#xA;take a look at some of the replies in that thread.&lt;/p&gt;&#xA;&lt;p&gt;There have been a lot of answers which have aren&amp;rsquo;t extremely&#xA;improbable but are very easy to beat after like say a million&#xA;years of human and technologoical evolution. We want to steer&#xA;clear from these because we &lt;em&gt;truly&lt;/em&gt; want to be immortal. Like&#xA;for example:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;I can be killed by my future self&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Extremely probable. Your future self from 10000000000&#xA;gabijizillion years in the future may want to commit suicide&#xA;and he comes back in time and kills you and every single&#xA;copy that has this genie ask him in every single possible&#xA;dimension and every single possible multiverse the second they&#xA;wish that.&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;PS: The rest of the article is lost, I learnt my lesson back then&#xA;and am extremely careful to even add draft posts into git so that&#xA;I don&amp;rsquo;t lose them.&lt;/p&gt;&#xA;&lt;p&gt;I may come back to this again in a new post as this is super interesting to me,&#xA;but I need more time to think it through!&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/why-so-many-blogs/</id>
    <title>Why so many blogs?</title>
    <updated>2016-12-20T17:19:53Z</updated>
    <published>2016-12-20T17:19:53Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/why-so-many-blogs/"></link>
    <category term="self"></category>
    <summary>I&amp;rsquo;ve created a lot of blogs over the past year and a half. ost of them have been to try and learn programming in a new environment. So regardless of wether I write actual content is irrelevant because the blogs have served their purpose already. Though I do want to produce content, I do want to share it, and I absolutely do want people to read it.</summary>
    <content type="html">&lt;p&gt;I&amp;rsquo;ve created a lot of blogs over the past year and a half.&#xA;ost of them have been to try and learn programming in a new&#xA;environment. So regardless of wether I write actual content&#xA;is irrelevant because the blogs have served their purpose&#xA;already. Though I &lt;em&gt;do&lt;/em&gt; want to produce content, I &lt;em&gt;do&lt;/em&gt; want&#xA;to share it, and I absolutely &lt;em&gt;do&lt;/em&gt; want people to read it.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been experimenting, and testing the waters since quite&#xA;a while now. It&amp;rsquo;s time to set things in stone. I need a&#xA;map and a compass to go about my journey, and this&#xA;article seems to be exactly that.&lt;/p&gt;&#xA;&lt;h2 id=&#34;all-my-blogs&#34;&gt;All my blogs&lt;/h2&gt;&#xA;&lt;h3 id=&#34;tech&#34;&gt;Tech&lt;/h3&gt;&#xA;&lt;p&gt;y very first domain/website was &lt;a href=&#34;http://computableverse.com&#34;&gt;computableverse.com&lt;/a&gt;.&#xA;I was excited and I started &lt;em&gt;learning&lt;/em&gt; just so I could blog&#xA;about it. I&amp;rsquo;d say the very act of buying the domain name&#xA;was the greatest impetus to my thirst for knowledge.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately I started mixing a bit of personal content in&#xA;there and then I lost focus. I wrote a lot of articles but&#xA;never published them, because at that point I really was&#xA;writing &lt;strong&gt;for myself&lt;/strong&gt;. I barely even advertised it to my&#xA;friends or family.&lt;/p&gt;&#xA;&lt;h3 id=&#34;personal-domain&#34;&gt;Personal domain&lt;/h3&gt;&#xA;&lt;p&gt;Then I bought &lt;a href=&#34;http://miteshshah.com&#34;&gt;miteshshah.com&lt;/a&gt; and posted personal stuff&#xA;there. Soon I started feeling uncomfortable sharing personal&#xA;thoughts with the world and scrapped the blog. Now it&amp;rsquo;s&#xA;just a site so that people can google my name and find me.&#xA;Also serves very handy for a professional email.&lt;/p&gt;&#xA;&lt;h3 id=&#34;a-weird-initiative&#34;&gt;A &lt;em&gt;weird&lt;/em&gt; initiative&lt;/h3&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve always been curious about philosophy, anthropology, and&#xA;the psycology of how we function. Nothing fancy, just big words&#xA;and some specific questions which we all wonder about. I wanted&#xA;to write about them and put it out there in a clear and concise&#xA;way, so that it could help someone. Also, I wanted to learn&#xA;&lt;em&gt;django&lt;/em&gt;, so I went ahead and created &lt;a href=&#34;https://earthlyhumans.com&#34;&gt;EarthlyHumans.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Haven&amp;rsquo;t posted anything on it yet. Since I&amp;rsquo;m not even sure what&#xA;I want to post anymore.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-way-of-the-shinobi-the-birth-of-a-rogue&#34;&gt;The way of the shinobi, the birth of a rogue&lt;/h3&gt;&#xA;&lt;p&gt;This is when I made &lt;a href=&#34;/&#34;&gt;oxalorg&lt;/a&gt;. This is the &lt;em&gt;&lt;strong&gt;epic odyssey of&#xA;the rouge intergalactic time travelling ninja&lt;/strong&gt;&lt;/em&gt;. I used to&#xA;imagine a world.. actually this is another story for another time :)&lt;/p&gt;&#xA;&lt;h3 id=&#34;for-the-wise-knows-nothing&#34;&gt;For the wise knows nothing&lt;/h3&gt;&#xA;&lt;p&gt;I started going deeper and deeper into philosophy. It spoke&#xA;to me strongly. Even though I&amp;rsquo;ve been distracted lately, I plan&#xA;on posting my findings, learnings, and thoughts on this new blog&#xA;&lt;a href=&#34;https://owlofathena.com&#34;&gt;OwlOfAthena.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;so-what-you-doing-m8&#34;&gt;So what you doing m8?&lt;/h2&gt;&#xA;&lt;p&gt;I just want to produce great content. And I want to keep doing it.&#xA;Because that&amp;rsquo;s the best goddamn way to learn.&lt;/p&gt;&#xA;&lt;p&gt;So if you&amp;rsquo;re interested in following my journey through the perils of&#xA;space and time, follow this epic saga of the one true rogue &lt;em&gt;oxalorg&lt;/em&gt;&#xA;by subscribing &lt;a href=&#34;https://tinyletter.com/oxalorg&#34;&gt;HERE&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;form style=&#34;border:1px solid&#xA;#ccc;padding:3px;text-align:center;&#34;&#xA;action=&#34;https://tinyletter.com/oxalorg&#34; method=&#34;post&#34;&#xA;target=&#34;popupwindow&#34;&#xA;onsubmit=&#34;window.open(&#39;https://tinyletter.com/oxalorg&#39;,&#xA;&#39;popupwindow&#39;, &#39;scrollbars=yes,width=800,height=600&#39;);return&#xA;true&#34;&gt;&lt;p&gt;&lt;label for=&#34;tlemail&#34;&gt;Enter your email&#xA;address, not more than 1 email per month.&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type=&#34;text&#34;&#xA;name=&#34;email&#34; id=&#34;tlemail&#34; placeholder=&#34;such.awesome@much.wow&#34;&#xA;style=&#34;max-width:480px;width:100%&#34;/&gt;&lt;/p&gt;&lt;input type=&#34;hidden&#34; value=&#34;1&#34;&#xA;name=&#34;embed&#34;/&gt;&lt;input type=&#34;submit&#34; value=&#34;Subscribe&#34; /&gt;&lt;/form&gt;&#xA;&lt;br&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/to-do-and-to-become/</id>
    <title>To do and to become</title>
    <updated>2016-12-13T15:24:59Z</updated>
    <published>2016-12-13T15:24:59Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/to-do-and-to-become/"></link>
    <category term="self"></category>
    <summary>The shortness of life is a pain, isn&amp;rsquo;t it? Wish we could live a 1000 years. Hopefully our procrastination wouldn&amp;rsquo;t grow exponentially, or would it? How would I describe myself? I&amp;rsquo;d say I am many things. But who do I want to be? What do I want to do? Isn&amp;rsquo;t that more important?</summary>
    <content type="html">&lt;p&gt;The shortness of life is a pain, isn&amp;rsquo;t it? Wish we could&#xA;live a 1000 years. Hopefully our procrastination wouldn&amp;rsquo;t&#xA;grow exponentially, or would it?&lt;/p&gt;&#xA;&lt;p&gt;How would I describe myself? I&amp;rsquo;d say I am many things.&#xA;But who do I want to be? What do I want to do? Isn&amp;rsquo;t&#xA;that more important?&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;Chef&lt;/em&gt;: I want to cook my own food.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Musician&lt;/em&gt;: I want to play good music.&#xA;I want to make my own music.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Philosopher&lt;/em&gt;: I want to think more, be more rational. I want&#xA;to be wise.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Anthropologist&lt;/em&gt;: I want to understand who we are, and how&#xA;we&amp;rsquo;ve survived.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Healthier&lt;/em&gt;: I want to give up artifical food and eat more&#xA;raw/natural stuff.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Reader&lt;/em&gt;: I want to read a ton of books. I want to gain&#xA;knowledge and insight from others.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Farmer/Gardener&lt;/em&gt;: I want to grow my own food.&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Mindful&lt;/em&gt;: Coz why not?&lt;/li&gt;&#xA;&lt;li&gt;&lt;em&gt;Ninja&lt;/em&gt;: Learn parkour, learn ninjutsu, learn martial arts,&#xA;learn meditation, learn stealth and become a rogue ninja.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/should-you-stop-personal-blogging/</id>
    <title>Should I stop personal blogging?</title>
    <updated>2016-12-13T12:48:36Z</updated>
    <published>2016-12-13T12:48:36Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/should-you-stop-personal-blogging/"></link>
    <category term="self"></category>
    <summary>I don&amp;rsquo;t write because I want to be a writer. I write because I have something to write. It&amp;rsquo;s simple, the way I see it, and it&amp;rsquo;s almost effective. There is no pressure to continue writing, rather there is a huge incentive to stop .</summary>
    <content type="html">&lt;p&gt;I don&amp;rsquo;t write because I want to be a writer. I write because I&#xA;have something to write. It&amp;rsquo;s simple, the way I see it, and it&amp;rsquo;s&#xA;almost effective. There is no pressure to continue writing,&#xA;rather there is a huge incentive to &lt;em&gt;stop&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;It&amp;rsquo;s no wonder that I&amp;rsquo;m completely drenched in privacy paranoia,&#xA;it&amp;rsquo;s easy to see how the world is changing, and how technology&#xA;is being used as a tool of warfare. The catch&#xA;though is that the war is between those in power and those&#xA;without, or atleast that&amp;rsquo;s what we think. It&amp;rsquo;s not too late to&#xA;exercise being safe on the internet, using technology for&#xA;welfare and not for deception. The thing is that, well, it&amp;rsquo;s&#xA;goddamn tough and irritating. If only complete end to end email&#xA;encryption with &lt;em&gt;anyone&lt;/em&gt; could be achieved with a &lt;em&gt;click&lt;/em&gt; (a&#xA;man can dream).&lt;/p&gt;&#xA;&lt;p&gt;In this age of already exposed privacy, personal blogging seems&#xA;like the easiest way to leak your data and that too willingly.&#xA;The internet is huge, dark, and ugly. You will never know what&amp;rsquo;s&#xA;out there, and once your thoughts are public you don&amp;rsquo;t know who&#xA;can use it as leverage. Does that mean we should &lt;em&gt;stop&lt;/em&gt;?&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s take a look at &lt;em&gt;personal blogging&lt;/em&gt;. My views stand that&#xA;unless you&amp;rsquo;re making money off it, or promoting a brand (because&#xA;you &lt;em&gt;are&lt;/em&gt; the brand), or have a huge incentive to continue it&amp;rsquo;s&#xA;almost always a bad idea to leak out so much of personal&#xA;information. There&amp;rsquo;s a small trick though, which I&amp;rsquo;ve found, and&#xA;it&amp;rsquo;s easy.&lt;/p&gt;&#xA;&lt;p&gt;Just stop blogging about places, events, and people.&#xA;Instead blog about ideas. Blog about the &lt;em&gt;feeling&lt;/em&gt; of&#xA;experiences. Blog about what changes you. Blog about how&#xA;adventure is a gift, or how life is pointless. Detach yourself,&#xA;the bodily you from the blog. Let it all be purely thoughts&#xA;instead of actions. This seems like the most appropriate&#xA;compromise while still maintaining the amazing feeling of&#xA;writing your thoughts and sharing them with the world.&lt;/p&gt;&#xA;&lt;p&gt;But don&amp;rsquo;t ever be afraid to stop. Because when you stop moving,&#xA;you &lt;em&gt;will&lt;/em&gt; fail.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;It&amp;rsquo;s 1925 and Amelia Earhart&amp;rsquo;s aviation career had stalled. Institutional sexism and financial difficulties had grounded her ambitions and she was working instead as a teacher to support herself. Women, only just given the right to vote, were considered too weak to have the stuff to fly.&#xA;Then one day the phone rang. The man on the line had a pretty offensive proposition for her: We have someone willing to fund the first female transatlantic flight. Our first choice has already backed out. You won’t get to actually fly the plane, and we’re going to send two men along as chaperones and guess what, we’ll pay them a lot of money and you won’t get anything. Oh, and you very well might die while doing it.&#xA;You know what she said to that offer? She said &amp;ldquo;yes.&amp;rdquo;&#xA;-&lt;a href=&#34;http://upstart.bizjournals.com/resources/author/2014/05/01/entrepreneurial-lesson-of-amelia-earhart.html&#34;&gt;&lt;em&gt;Source&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/stop-dying/</id>
    <title>Stop dying</title>
    <updated>2016-11-11T00:00:00Z</updated>
    <published>2016-11-11T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/stop-dying/"></link>
    <category term="philosophy"></category>
    <summary>I&amp;rsquo;ve never been like this, yet I am. I&amp;rsquo;ve always thought I&amp;rsquo;ve never cared about what others think is a good life. I&amp;rsquo;ve known that it is all just an illusion. A grand scheme to distract you enough to stop asking questions; questions which matter. Anyways, I&amp;rsquo;ve been too obsessed about doing the right things. Making the right choices. Doing things which are more &amp;ldquo;productive&amp;rdquo; rather than doing what feels most in tune with my faculty.</summary>
    <content type="html">&lt;p&gt;I&amp;rsquo;ve never been like this, yet I am. I&amp;rsquo;ve always thought I&amp;rsquo;ve never&#xA;cared about what others think is a good life. I&amp;rsquo;ve known that it is&#xA;all just an illusion. A grand scheme to distract you enough to stop&#xA;asking questions; questions which matter. Anyways, I&amp;rsquo;ve been too&#xA;obsessed about doing the right things. Making the right choices.&#xA;Doing things which are more &amp;ldquo;productive&amp;rdquo; rather than doing what feels&#xA;most in tune with my faculty.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;It&amp;rsquo;s a weird place to be in. I no longer want to care about what is&#xA;the best career move, or what is the best framework to learn. I don&amp;rsquo;t&#xA;care whether I&amp;rsquo;ve studied enough to pass an exam, I don&amp;rsquo;t care if I&amp;rsquo;ll&#xA;be able to make enough money to live a comfortable life. I don&amp;rsquo;t care&#xA;if I&amp;rsquo;m eating the right things. I don&amp;rsquo;t care if I&amp;rsquo;m making the right&#xA;choices. Because when you see death coming, all of this reduces to&#xA;nothing. It&amp;rsquo;s worthless. It&amp;rsquo;s what didn&amp;rsquo;t matter afterall.&lt;/p&gt;&#xA;&lt;p&gt;We all advocate for simplicity and minimalism. Everyone wants their&#xA;homes, environment, and other fancier aesthetics to pe &lt;em&gt;clean&lt;/em&gt; and&#xA;&lt;em&gt;flat&lt;/em&gt;. It&amp;rsquo;s the new cult. Why aren&amp;rsquo;t we trying to incorporate&#xA;simplicity into our begins, into our thoughts, and into our actions.&#xA;Stop projecting it onto your environment, realise it inside. It&amp;rsquo;s&#xA;so much more clearer once you think about death and how you&amp;rsquo;re dying.&lt;/p&gt;&#xA;&lt;p&gt;The worst part about dying is the fact that you&amp;rsquo;ve never lived. Death&#xA;doesn&amp;rsquo;t give a ratshit about inanimate non-living things. So if you&amp;rsquo;re&#xA;not living, you&amp;rsquo;re already dead.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;Hey you hippie! Wait a minute. I am typing this. I am thinking.&#xA;Therefore I must be living. So piss off.&lt;/em&gt; - You, the reader.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Agreed. You&amp;rsquo;re living and that&amp;rsquo;s why you die (i.e. the grim reaper does&#xA;give a ratshit about your soul albeit useless). What matters is do you&#xA;even &lt;em&gt;realise&lt;/em&gt; to the slightest about why you&amp;rsquo;re living the way you&amp;rsquo;re&#xA;living. It&amp;rsquo;s a tough question, and I have no answer to it. But I intend&#xA;to find one.&lt;/p&gt;&#xA;&lt;p&gt;I think I&amp;rsquo;ve hit a new high of smugness today, or maybe not. Doesn&amp;rsquo;t&#xA;matter. I felt this needed to be said.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll try to change a little everyday. Thanks for reading.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/rant-text-editors-productivity/</id>
    <title>Small rant on text editors and productivity</title>
    <updated>2016-10-05T00:00:00Z</updated>
    <published>2016-10-05T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/rant-text-editors-productivity/"></link>
    <category term="programming"></category>
    <summary>I think I might have stumbled upon the secret of getting things done. The long lost secret of being productive . It&amp;rsquo;s simple: &amp;ldquo;use what works until it doesn&amp;rsquo;t&amp;rdquo;. That&amp;rsquo;s it. If you just intuitively get this, that&amp;rsquo;s amazing. If you want my points of view on the matter then read on. (Beware: It&amp;rsquo;s just a goddamn long rant on my history with text editors)</summary>
    <content type="html">&lt;p&gt;I think I might have stumbled upon the secret of getting things done. The long lost secret of being &lt;em&gt;productive&lt;/em&gt;. It&amp;rsquo;s simple: &amp;ldquo;use what works until it doesn&amp;rsquo;t&amp;rdquo;. That&amp;rsquo;s it. If you just intuitively &lt;em&gt;&lt;strong&gt;get&lt;/strong&gt;&lt;/em&gt; this, that&amp;rsquo;s amazing. If you want my points of view on the matter then read on. (Beware: It&amp;rsquo;s just a goddamn long rant on my history with text editors)&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;This all started a couple years ago. When I used notepad to write small programs. I quickly got tired of it, and moved onto a simple IDE which I received with my programming book, &amp;ldquo;CodeBlock&amp;rdquo;. It was simple. It worked. I was happy. I coded.&lt;/p&gt;&#xA;&lt;p&gt;Then I moved onto doing some Java, and obviously, code blocks wasn&amp;rsquo;t working. I switched to eclipse but found it too confusing. So I started using notepad++ along with command line compiling. It was simple. It worked. I was happy. I coded.&lt;/p&gt;&#xA;&lt;p&gt;Then I stumbled upon some heavy dependencies for a Java project I was working on (writing bot scripts for a game I used to play), and notepad++ wasn&amp;rsquo;t enough. So I took out some time to learn eclipse just enough to get things to work, and surprisingly they did. It was simple. It worked. I was happy. I coded.&lt;/p&gt;&#xA;&lt;p&gt;Then I stumbled upon this sneaky little kid in class who was apparently really clever. Linux. The command line tools blew me away. I quickly became a fan of the terminal and tried doing what all the c00l l33t kids were doing. I started learning vim.&lt;/p&gt;&#xA;&lt;p&gt;But since I sucked at vim, I still coded things which I wanted to &amp;ldquo;get done&amp;rdquo; in gedit.&lt;/p&gt;&#xA;&lt;p&gt;Everyone told me that once you master vim, you&amp;rsquo;re beyond godlike. It&amp;rsquo;s the one true way to be a programmer, and that I&amp;rsquo;m a nobody if I don&amp;rsquo;t have a customisable text editor because that&amp;rsquo;s what programmers do. They think and they type. I was a naive 2nd year college student. I believed in the wisdom of the elder greybeards whom I stumbled upon in the forest of the internet. They have a hat, a robe, and a shiny staff, they must be wise, I thought.&lt;/p&gt;&#xA;&lt;p&gt;Fast forward a couple of years, I was still learning vim because I kept giving up. When I wanted to &amp;ldquo;get things done&amp;rdquo;, I used Atom and Sublime instead of gedit, because they just worked.&lt;/p&gt;&#xA;&lt;p&gt;But I knew that my training would pay as I was ALMOST near mastering my vim-fu.&lt;/p&gt;&#xA;&lt;p&gt;Then I stumbled upon emacs, and every single thing which frustrated my bones in vim was easily solvable in emacs. Also they had evil mode. I spent days researching on it and finally decided to take the plunge.&lt;/p&gt;&#xA;&lt;p&gt;Oh boy. The spiral repeats.&lt;/p&gt;&#xA;&lt;p&gt;Fast-forward to now. I&amp;rsquo;m still learning emacs while still using Atoms when I want to get things done. Some say I am not patient enough, or a 1000 other reasons on why a true programmer must master their own tools. But to hell with those reasons.&lt;/p&gt;&#xA;&lt;p&gt;Yes, I am still pretty fast in VIM than I am in Atom. But what about when I want to run a debugger. What about when I want split panes. What about when I want to jump between function declarations. I still am not comfortable with all these in vim. And I can&amp;rsquo;t even get started on debugging. It&amp;rsquo;s a pain in both vim and atom. (It&amp;rsquo;s a breeze in IDEs though, I installed CLion and got started with it and the debugger tool in a mere 5minutes)&lt;/p&gt;&#xA;&lt;p&gt;I know, I know. I am not using &lt;em&gt;XYZ&lt;/em&gt; plugin, or the &lt;em&gt;ABC&lt;/em&gt; package. Oh just stop. Let me be at peace right now. Let me remove this agony once and for all.&lt;/p&gt;&#xA;&lt;p&gt;Maybe I&amp;rsquo;m not smart enough to use vim, or emacs, or org-mode. Maybe I don&amp;rsquo;t want to learn vim script, or elisp, or goddamn coffeescript and nodes. Maybe I need someone else to do all this for me so I can spend most of my time thinking and debugging. Because I think about code 10 times, debug it 10 times, read it 10 times, but only write it once.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/dont-change-adapt/</id>
    <title>Don&#39;t change. Adapt</title>
    <updated>2016-10-04T00:00:00Z</updated>
    <published>2016-10-04T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/dont-change-adapt/"></link>
    <category term="philosophy"></category>
    <summary>All of us are constantly changing things. We&amp;rsquo;re changing the things we interact with, we&amp;rsquo;re changing the environment we live in, we&amp;rsquo;re changing our thoughts, we&amp;rsquo;re changing ourselves. In countless other ways possible, it would not be wrong to say that we change a lot of things everyday.</summary>
    <content type="html">&lt;p&gt;All of us are constantly changing things. We&amp;rsquo;re changing&#xA;the things we interact with, we&amp;rsquo;re changing the environment&#xA;we live in, we&amp;rsquo;re changing our thoughts, we&amp;rsquo;re changing&#xA;ourselves. In countless other ways possible, it would not be&#xA;wrong to say that we change a lot of things everyday.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I find myself trying to change a lot of things, particularly,&#xA;my thoughts go somewhat like: &amp;ldquo;keep changing until it&amp;rsquo;s&#xA;perfect&amp;rdquo;, which admittedly ends up in a lot of wasted time. I&#xA;end up changing more than what is required.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s take an example. I recently decided to ditch my current&#xA;online identity, including email and all my online accounts,&#xA;and tried to port it over to a new username (this is my 4th&#xA;time doing it, so I am pretty experienced). Though this time,&#xA;instead of porting every single account simultaneously, I&#xA;decided to wait and do it one at a time. I chose to adapt when&#xA;I required to use the account, instead of changing because I&#xA;had to.&lt;/p&gt;&#xA;&lt;p&gt;This taught me a fundamental behaviour of mine. I&amp;rsquo;ve always&#xA;been trying to change, but hardly ever trying to adapt.&lt;/p&gt;&#xA;&lt;p&gt;Another example would be when I started learning VIM. Instead&#xA;of trying to learn as we go, I took out a week and read a&#xA;billion guides and tutorials, tried 1000&amp;rsquo;s of configurations&#xA;until I reached what I thought was &lt;em&gt;perfect&lt;/em&gt;. This lead to a&#xA;lot of vim fatigue and I just ended up giving up on it after&#xA;a few months of use. I tried the opposite approach when I&#xA;started with emacs. I didn&amp;rsquo;t cold turkey on my previous editor&#xA;atom, and so I am still using both of them simultaneously. I&#xA;learn a little bit of emacs everyday and it&amp;rsquo;s pleasant. I get&#xA;things done. I don&amp;rsquo;t waste a lot of time on configs and still&#xA;manage to retain a lot of the tips and tricks into my long&#xA;term memory.&lt;/p&gt;&#xA;&lt;p&gt;Although these examples would hardly be relevant for the&#xA;average reader, it&amp;rsquo;s something to think about. I, for one,&#xA;will constantly try to adapt from now on, because that is the&#xA;smarter thing to do.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;If it ain&amp;rsquo;t broke, don&amp;rsquo;t fix it.&lt;/em&gt;&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/not-about-money/</id>
    <title>It&#39;s not about the money</title>
    <updated>2016-10-01T00:00:00Z</updated>
    <published>2016-10-01T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/not-about-money/"></link>
    <category term="philosophy"></category>
    <summary>I saw the Shawshank redemption yesterday, and I thought a lot about it. One idea in particular stuck with me. You are your freedom.</summary>
    <content type="html">&lt;p&gt;I saw the Shawshank redemption yesterday, and I thought a lot&#xA;about it. One idea in particular stuck with me. You are your&#xA;freedom.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;Let me start with a hypothetical situation. Let&amp;rsquo;s say you lose&#xA;all your money tomorrow and are completely broke. Does that&#xA;unfortunate incident devoid you of your personality? Does it&#xA;snatch away your existence? Do you feel bound and restricted&#xA;in the very thoughts that distinguish you from the other 7&#xA;billion humans? I guess not. Though something definitely has&#xA;changed, since you no longer have money.&lt;/p&gt;&#xA;&lt;p&gt;Now lets assume, I give you back your money but lock you&#xA;inside a cage. How different are things now? Nothing has&#xA;changed in the outside world. Nothing changes in the inside&#xA;world. The only thing is that the inside (you) can&amp;rsquo;t interact&#xA;with the outside (everything else). Complicated to think about&#xA;such a situation right?&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s assume the third case now. What if I don&amp;rsquo;t lock you in&#xA;a cage, but rather force you to follow a schedule which I&#xA;have devised &lt;em&gt;for&lt;/em&gt; you. You still interact with everything&#xA;you&amp;rsquo;ve already been doing since the day you&amp;rsquo;re born; the only&#xA;difference is that you interact when I tell you to.&lt;/p&gt;&#xA;&lt;p&gt;It starts getting tricky now. (Each of the below cases are&#xA;isolated on their own, none of them are related to any other&#xA;case):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Everything is exactly the same, except you&amp;rsquo;ve lost every   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except single of your      .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except friend and family   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except I alter your brain  .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except to work at 50% of   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except normal for the rest .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except of your life one of .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except your leg and one of .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except your hands no longer.&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except function properly   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except you&amp;rsquo;ve lost 75% of  .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except all your memories   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except you can no longer   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except talk and hear you   .&lt;/li&gt;&#xA;&lt;li&gt;Everything is exactly the same, except can no longer see   .&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Do you see it? You&amp;rsquo;ve already forgotten the case where you&amp;rsquo;ve&#xA;lost all money. Because it&amp;rsquo;s so irrelevant in the grand scheme&#xA;of things which appropriately define YOU. Even though wealth&#xA;is the easiest of ways for &lt;em&gt;&lt;strong&gt;OTHERS&lt;/strong&gt;&lt;/em&gt; to distinguish you&#xA;from everybody else, it&amp;rsquo;s probably the worst way for &lt;em&gt;&lt;strong&gt;YOU&lt;/strong&gt;&lt;/em&gt;&#xA;to feel &lt;em&gt;yourself&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Think about this. It&amp;rsquo;s powerful. And it changes my life every&#xA;single day.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/something-changed-today/</id>
    <title>Something changed today</title>
    <updated>2016-09-14T00:00:00Z</updated>
    <published>2016-09-14T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/something-changed-today/"></link>
    <category term="philosophy"></category>
    <summary>I absolutely don&amp;rsquo;t know what just clicked, but it happened in the past 1 hour. Something, some thought, some &amp;lsquo;i-dont-know-what&amp;rsquo; just happened inside my brain, my body, my soul. I can&amp;rsquo;t describe it, but it felt closest to a sort of panic attack. I was watching the movie &amp;lsquo;Honey&amp;rsquo;, before which I had a fight with mom on making a sandwich (she just wouldn&amp;rsquo;t let me make it myself).</summary>
    <content type="html">&lt;p&gt;I absolutely don&amp;rsquo;t know what just clicked, but it happened&#xA;in the past 1 hour. Something, some thought, some&#xA;&amp;lsquo;i-dont-know-what&amp;rsquo; just happened inside my brain, my body, my&#xA;soul. I can&amp;rsquo;t describe it, but it felt closest to a sort of&#xA;panic attack. I was watching the movie &amp;lsquo;Honey&amp;rsquo;, before which I&#xA;had a fight with mom on making a sandwich (she just wouldn&amp;rsquo;t&#xA;let me make it myself).&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;While watching the movie, I was rushed with some kind of a&#xA;very strong emotion. I couldn&amp;rsquo;t watch a single minute more&#xA;of the movie. It felt like I would die if I saw anymore. The&#xA;emotional rush was too strong.&lt;/p&gt;&#xA;&lt;p&gt;I then realised that maybe my brain came to the conclusion&#xA;that this was crap. Everything is crap. Nothing is really&#xA;useful. The world is full of stupid people, and I am one of&#xA;those.&lt;/p&gt;&#xA;&lt;p&gt;I realised that so much has happened in the past few billion&#xA;years, that there is absolutely no meaning to my life even if&#xA;I cure cancer, or say invent/discover immortality (maybe this&#xA;is like winning the lottery ticket more than being a genius,&#xA;so it might matter after all, since the universe is nothing&#xA;but a dice).&lt;/p&gt;&#xA;&lt;p&gt;I realised that what I am doing doesn&amp;rsquo;t make me happy, instead&#xA;it makes me not sad. It makes me forget everything which is&#xA;wrong with me, everything which I don&amp;rsquo;t understand, everything&#xA;that is wrong with the world, and everything that is yet to&#xA;come. It makes me forget that I am, literally, useless and&#xA;insignificant, and so is everyone of us, &lt;em&gt;combined&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;What if humans didn&amp;rsquo;t even exist, how would it be any&#xA;different. Would have been much better for other animal life,&#xA;and the entire environment as a whole.&lt;/p&gt;&#xA;&lt;p&gt;Maybe we live in a simulation and there are aliens who are&#xA;observing us, or even playing the human game. Maybe this is&#xA;just an old unattended server.&lt;/p&gt;&#xA;&lt;p&gt;Regardless, it absolutely does not matter. For life is too&#xA;short to do a lot of things. You need to find things worth&#xA;living for, not live for things worth doing. I know this seems&#xA;subtle. It&amp;rsquo;s hard to explain, but I feel that something has&#xA;just clicked inside of me, and it&amp;rsquo;s for the good.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/writing-daily/</id>
    <title>How about writing daily?</title>
    <updated>2016-08-27T00:00:00Z</updated>
    <published>2016-08-27T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/writing-daily/"></link>
    <category term="self"></category>
    <summary>I&amp;rsquo;ve always thought of writing something every day. Be it some random crap I want to share, some important event, some good&amp;rsquo;ol realisation, or just something which I want to document.</summary>
    <content type="html">&lt;p&gt;&lt;img src=&#34;/assets/img/daily-life.jpg&#34; alt=&#34;daily life&#34; title=&#34;daily life&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve always thought of writing &lt;em&gt;something&lt;/em&gt; every day. Be&#xA;it some random crap I want to share, some important event,&#xA;some good&amp;rsquo;ol realisation, or just something which I want to&#xA;document.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I barely use any of the social medias, so I barely share stuff&#xA;with people. Maybe this is a chance for me to share &lt;em&gt;(rather,&#xA;learn to share)&lt;/em&gt; my life.&lt;/p&gt;&#xA;&lt;p&gt;I also feel that the mere act of writing something daily, be&#xA;it about me or not, will change the way I perceive things. It&#xA;will lead to me taking &lt;em&gt;different&lt;/em&gt; decisions. And even if it&#xA;doesn&amp;rsquo;t, and my life has remained a constant for too many days&#xA;in a row, I&amp;rsquo;ll know that there is something I need to change.&lt;/p&gt;&#xA;&lt;p&gt;Imagine the life of a caveman, or that of a hunter-gatherer&#xA;community, I&amp;rsquo;m sure if they had written blogs, they&amp;rsquo;d be&#xA;interesting as hell.&lt;/p&gt;&#xA;&lt;p&gt;But writing something daily is a little more personal than&#xA;your average blog post. It&amp;rsquo;s a window into &lt;em&gt;how I live my&#xA;life&lt;/em&gt;. It&amp;rsquo;s as good as following (&lt;em&gt;or stalking&lt;/em&gt;) me around for&#xA;the entire day. As long as I don&amp;rsquo;t discuss any future events,&#xA;I should be safe from online predators and trolls (&lt;em&gt;although&#xA;no one actually reads my shit lol&lt;/em&gt;).&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll start writing daily from today at &lt;a href=&#34;/ox/life&#34;&gt;/ox/life/&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;UPDATE 2016-10-27: I&amp;rsquo;ve decided to take my life blog offline.&#xA;I didn&amp;rsquo;t feel comfortable in sharing that.&lt;/p&gt;&#xA;</content>
  </entry>
  <entry>
    <id>https://oxal.org/blog/you-shall-not-write/</id>
    <title>You shall not write</title>
    <updated>2016-08-27T00:00:00Z</updated>
    <published>2016-08-27T00:00:00Z</published>
    <author>
      <name>oxalorg</name>
    </author>
    <link href="https://oxal.org/blog/you-shall-not-write/"></link>
    <category term="self"></category>
    <summary>To be honest, I am so distracted that I simply don&amp;rsquo;t get the time to do trivial things. Watching out of the balcony for more than a few minutes seems daunting, if not impossible. Going to the toilet without a book or a phone seems like a waste of my precious time. This attitude has sifted through the filter of these mundane activities, into almost my entire life.</summary>
    <content type="html">&lt;p&gt;To be honest, I am so distracted that I simply don&amp;rsquo;t get the&#xA;time to do trivial things. Watching out of the balcony for&#xA;more than a few minutes seems daunting, if not impossible.&#xA;Going to the toilet without a book or a phone seems like&#xA;a &lt;em&gt;waste&lt;/em&gt; of my &lt;em&gt;precious&lt;/em&gt; time. This attitude has sifted&#xA;through the filter of these mundane activities, into almost my&#xA;entire life.&lt;/p&gt;&#xA;&lt;!--more--&gt;&#xA;&lt;p&gt;I&amp;rsquo;m constantly trying to reason with myself whether doing&#xA;something is &lt;em&gt;worth it&lt;/em&gt;, whether it&amp;rsquo;s the most &lt;em&gt;efficient&lt;/em&gt; use&#xA;of my time, or I simply feel remorse if I can&amp;rsquo;t do anything&#xA;and god forbid have to wait 5 minutes without a smart device&#xA;by my side.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s a constant fear of Artificial Intelligence taking&#xA;over, at least among the super paranoids and the super&#xA;geniuses, but why can&amp;rsquo;t we see that the machines have already&#xA;taken over. Take a look at your left, now take a look at your&#xA;right; more than 90% of those things have been touched by&#xA;machines. Do we really need those things for our survival?&#xA;Have we confused survival with luxury?&lt;/p&gt;&#xA;&lt;p&gt;Writing is something which feels like an innate faculty&#xA;blessed upon us by Mother Nature herself. It&amp;rsquo;s the only thing&#xA;which, among the countless distractions of the modern life,&#xA;feels truly natural. It enables me to be &lt;em&gt;me&lt;/em&gt;, by forcing&#xA;me to explore my thoughts and moulding them into something&#xA;concrete.&lt;/p&gt;&#xA;&lt;p&gt;aybe all is not lost yet. Maybe we still are humans and&#xA;&lt;em&gt;maybe&lt;/em&gt; we can learn to live with the machines and the earth&#xA;in a sustained way. Maybe we can take some time for ourselves.&#xA;aybe we can get bored once in a while. Maybe it&amp;rsquo;s okay to not&#xA;make a billion dollars, and maybe it&amp;rsquo;s alright if you can&amp;rsquo;t&#xA;become a celebrity. Maybe life has something more to it, and&#xA;&lt;em&gt;maybe&lt;/em&gt; we just need to do nothing but observe, &lt;em&gt;closely&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/assets/img/my-view.jpg&#34; alt=&#34;My current view&#34; title=&#34;my current view&#34;&gt;&lt;/p&gt;&#xA;</content>
  </entry>
</feed>