<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xml:base="https://pryp.in/blog/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Oleh Prypin's Blog</title>
    <link>https://pryp.in/blog/</link>
    <description>Blog about programming, Linux and gaming</description>
    <language>en</language>
    <category>IT</category>
    <copyright>(C) 2014-2024 Oleh Prypin</copyright>
    <ttl>2880</ttl>
    <lastBuildDate>Sat, 30 Nov 2024 15:12:04 -0000</lastBuildDate>
    <managingEditor>oleh@pryp.in</managingEditor>
    <webMaster>oleh@pryp.in</webMaster>
    <item>
        <title>Running Crystal natively on Windows, building videogame examples</title>
        <link>https://pryp.in/blog/28/running-crystal-natively-on-windows-building-videogame-examples.html</link>
        <description><![CDATA[
<div style="text-align:center">
<iframe width="960" height="540" src="https://www.youtube.com/embed/eAzIAjTBGgU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<p><a href="https://pryp.in/blog/28/running-crystal-natively-on-windows-building-videogame-examples.html#cut">...</a></p>
        ]]></description>
        <pubDate>Tue, 21 Apr 2020 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/28/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/28/</guid>
        <category>crystal</category><category>sfml</category><category>windows</category>
    </item><item>
        <title>How I set up vanilla Doom on Linux</title>
        <link>https://pryp.in/blog/27/how-i-set-up-vanilla-doom-on-linux.html</link>
        <description><![CDATA[
<div class="toc">
<ul>
<li><a href="/blog/27/#doom-source-ports">Doom source ports</a></li>
<li><a href="/blog/27/#getting-the-game">Getting the game</a></li>
<li><a href="/blog/27/#installing-on-steam">Installing on Steam</a></li>
<li><a href="/blog/27/#configuring-crispy-doom">Configuring Crispy Doom</a></li>
<li><a href="/blog/27/#steam-cloud-integration">Steam Cloud integration</a></li>
<li><a href="/blog/27/#music-packs">Music packs</a></li>
</ul>
</div>
<h3 id="blog27-doom-source-ports">Doom source ports<a class="headerlink" href="/blog/27/#doom-source-ports">¶</a></h3>
<p>It happened again, I got the craving to play DOOM — the original. And I wanted it to really have the <em>feel</em> of the original.</p>
<p><a href="https://zdoom.org/">GZDoom</a> is very popular, or should I say <em>notorious</em> for definitely <em>not</em> being faithful to the original. Running the actual original through DOSBox seemed quite ugly. At first, <a href="https://www.chocolate-doom.org/">Chocolate Doom</a> seemed to be exactly what I wanted, but unfortunately it lacked basic quality-of-life improvements, especially regarding controls. I concluded that <a href="https://github.com/fabiangreffrath/crispy-doom"><strong>Crispy Doom</strong></a> is a strictly better source port: it adds a lot of improvements over Chocolate Doom, and that doesn't mean we have to use <em>all</em> of them.</p>
<p>On Arch Linux I just needed to run <code>yay -S crispy-doom</code> to install it <a href="https://aur.archlinux.org/packages/crispy-doom/">from AUR</a>.</p><p><a href="https://pryp.in/blog/27/how-i-set-up-vanilla-doom-on-linux.html#cut">...</a></p>
        ]]></description>
        <pubDate>Sat, 01 Feb 2020 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/27/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/27/</guid>
        <category>linux</category><category>gaming</category><category>steam</category>
    </item><item>
        <title>Wooting keyboard for Linux users: technical tips</title>
        <link>https://pryp.in/blog/26/wooting-keyboard-for-linux-users-technical-tips.html</link>
        <description><![CDATA[
<p>This article is about using the <a href="https://www.wooting.nl/">Wooting One</a> <em>analog</em> <em>mechanical</em> keyboard on Linux.</p>
<h3 id="blog26-initial-setup">Initial setup<a class="headerlink" href="/blog/26/#initial-setup">¶</a></h3>
<p>(Information as of Wootility <a href="https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-beta/wootility-2.3.3-x86_64.AppImage">v2.3.3</a>)</p>
<p>If you just got the keyboard and downloaded the latest <a href="https://www.wooting.nl/wootility">Wootility</a> software, it is possible that it will be unable to detect the keyboard. From what I heard from technical support, I figure that this is because somewhere along the way the software lost the ability to communicate with old versions of keyboard firmware (and it has old firmware from the factory). So the solution is to get an old version (<a href="https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-beta/wootility-2.1.0-x86_64.AppImage">v2.1.0</a>) of the software, run it <strong>with <code>sudo</code></strong> and go through the <a href="https://wooting.helpscoutdocs.com/article/16-restore-the-wooting-one">restore procedure</a> which includes a firmware update. Then latest software will work properly.</p><p><a href="https://pryp.in/blog/26/wooting-keyboard-for-linux-users-technical-tips.html#cut">...</a></p>
        ]]></description>
        <pubDate>Sun, 13 May 2018 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/26/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/26/</guid>
        <category>keyboard</category><category>xinput</category><category>directinput</category><category>linux</category>
    </item><item>
        <title>Wooting keyboard for Linux users: review</title>
        <link>https://pryp.in/blog/25/wooting-keyboard-for-linux-users-review.html</link>
        <description><![CDATA[
<p>This is a basic evaluation of the <a href="https://www.wooting.nl/">Wooting One</a> <em>analog</em> <em>mechanical</em> keyboard from the perspective of a Linux user. Perhaps it does not deserve a full blog post, I just wanted to separate subjectivity from the technical article, which you should check out:</p>
<p><strong><a href="https://pryp.in/blog/26/wooting-keyboard-for-linux-users-technical-tips.html">Wooting for Linux users: technical tips</a> + XInput key mappings</strong></p>
<hr>
<p>So, did I like the keyboard? No, though I suspect it's mostly about me being used to slim keyboards.</p><p><a href="https://pryp.in/blog/25/wooting-keyboard-for-linux-users-review.html#cut">...</a></p>
        ]]></description>
        <pubDate>Sun, 13 May 2018 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/25/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/25/</guid>
        <category>keyboard</category><category>review</category><category>linux</category>
    </item><item>
        <title>[Abandoned post] Modern memory management (what are structs in Crystal?)</title>
        <link>https://pryp.in/blog/24/abandoned-post-modern-memory-management-what-are-structs-in-crystal.html</link>
        <description><![CDATA[
<style type="text/css">
    aside { background-color: #251439; }
</style>

<p>I can never get around to writing this blog post. It's an ambitious one, with great examples an schematics 
<em>planned</em>. Anyway, maybe someone will still find the beginnings of it useful.</p>
<hr>
<p>This is a writeup in layman's terms about how memory is being allocated and managed in most modern programming languages. Its target audience is users of Crystal programming language, but the parts specific to that language will be on purple background. Expect some omissions and inaccuracies for the purpose of explanation.</p>
<aside>
At this point you've probably heard something like "structs are stored on the stack, and classes are stored on the heap", but what does it really mean?
</aside>
<p><a href="https://pryp.in/blog/24/abandoned-post-modern-memory-management-what-are-structs-in-crystal.html#cut">...</a></p>
        ]]></description>
        <pubDate>Wed, 05 Jul 2017 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/24/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/24/</guid>
        <category>crystal</category><category>memory-management</category>
    </item><item>
        <title>How to build video games for Windows using Crystal</title>
        <link>https://pryp.in/blog/23/how-to-build-video-games-for-windows-using-crystal.html</link>
        <description><![CDATA[
<p><a href="https://crystal-lang.org/">Crystal Programming Language</a> does not yet support Windows, but the progress is ongoing, and programs that use isolated parts of the standard library can be properly cross-compiled. Note that, even though there are multiple mentions of <em>Windows Subsystem for Linux</em> here, it is used only for one of the build steps. The resulting binaries run natively on Windows, no strings attached.</p>
<h3 id="blog23-basic-crystal-setup">Basic Crystal setup<a class="headerlink" href="/blog/23/#basic-crystal-setup">¶</a></h3>
<p>You need a POSIX-compatible system that Crystal officially supports (like Linux) and also Windows. If you are already on Windows 10, the obvious choice is <a href="https://msdn.microsoft.com/en-us/commandline/wsl/about">Bash on Ubuntu on Windows</a>. If on a different OS, use a virtual machine with Windows &mdash; <a href="https://www.virtualbox.org/">VirtualBox</a> is a good choice. Microsoft offers <a href="https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/">virtual machine images</a> for free.</p><p><a href="https://pryp.in/blog/23/how-to-build-video-games-for-windows-using-crystal.html#cut">...</a></p>
        ]]></description>
        <pubDate>Sun, 09 Jul 2017 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/23/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/23/</guid>
        <category>crystal</category><category>sfml</category><category>windows</category>
    </item><item>
        <title>Advanced uses of Travis CI with Nim</title>
        <link>https://pryp.in/blog/22/advanced-uses-of-travis-ci-with-nim.html</link>
        <description><![CDATA[
<p>There have been a few guides describing the use of <a href="https://circleci.com/">Circle CI</a>, originating from <a href="https://flaviutamas.com/2015/circleci-nim">here</a>. But in my opinion <a href="https://travis-ci.org/">Travis CI</a> is a superior service, because it has more options and is more reliable.</p>
<h3 id="blog22-basic-setup">Basic setup<a class="headerlink" href="/blog/22/#basic-setup">¶</a></h3>
<p>Let's start with the minimal Travis configuration that allows you to test <a href="http://nim-lang.org/">Nim</a> projects.</p>
<pre><code>[.travis.yml]
language: c
install:
  - |
    # Download the latest release of Nim into the &quot;nim-master&quot; folder
    git clone -b master --depth 1 git://github.com/nim-lang/nim nim-master/
    cd nim-master
    # Download the latest release of Nim's prepared C sources, for bootstrapping
    git clone -b master --depth 1 git://github.com/nim-lang/csources csources/
    cd csources
    # Build C sources
    sh build.sh
    cd ..
    # This concludes the first step of bootstrapping, don't need C sources anymore
    rm -rf csources
    # Use the executable built from C sources to compile the build tool
    bin/nim c koch
    # Compile Nim in release mode, using the Nim compiler we already have
    ./koch boot -d:release
    cd ..
before_script:
  # Add the 'bin' folder to PATH
  - export PATH=&quot;nim-master/bin:$PATH&quot;
script:
  # Run 'tests/all.nim'. Feel free to change this, but it needs to be a program
  # that returns a non-zero status code in case of failure. The testing facilities
  # in Nim's standard library do this.
  - nim compile --verbosity:0 --run tests/all
</code></pre><p><a href="https://pryp.in/blog/22/advanced-uses-of-travis-ci-with-nim.html#cut">...</a></p>
        ]]></description>
        <pubDate>Fri, 30 Oct 2015 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/22/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/22/</guid>
        <category>nim</category><category>travis</category><category>ci</category>
    </item><item>
        <title>Use KWallet for any command, including SSH password</title>
        <link>https://pryp.in/blog/21/use-kwallet-for-any-command-including-ssh-password.html</link>
        <description><![CDATA[
<blockquote>
<b>ksshaskpass</b> is a KDE-based passphrase dialog for use with OpenSSH. It is intended to be called by the <i><b>ssh-add</b>(1)</i> program and not invoked directly. It allows <i><b>ssh-add</b>(1)</i> to obtain a passphrase from a user
[...]
</blockquote>

<p>So this utility is useful if you want to store the passphrases to your SSH keys in the KDE Wallet (there are plenty of instructions on how to do that).</p>
<p>But all it really does is receive a string as an argument, tries to query KWallet for a password saved under this key string (or asks for this password in a dialog and stores it), then writes it to stdout. This means that <em>ksshaskpass</em> can be used to store any kind of password in KWallet for use in your Bash scripting.</p>
<p>We will be using Bash, <em>ksshaskpass</em>, <em>sshpass</em>.</p><p><a href="https://pryp.in/blog/21/use-kwallet-for-any-command-including-ssh-password.html#cut">...</a></p>
        ]]></description>
        <pubDate>Tue, 13 Oct 2015 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/21/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/21/</guid>
        <category>kde</category><category>kwallet</category><category>ssh</category><category>bash</category>
    </item><item>
        <title>Make Skype&#39;s tray icon monochrome on Linux</title>
        <link>https://pryp.in/blog/20/make-skypes-tray-icon-monochrome-on-linux.html</link>
        <description><![CDATA[
<p>Before/after:</p>
<p><img alt="Comparison" src="//i.imgur.com/tMfuVSX.png"></p>
<p>TL;DR: Use <a href="https://github.com/derlaft/skype1ico">skype1ico</a></p><p><a href="https://pryp.in/blog/20/make-skypes-tray-icon-monochrome-on-linux.html#cut">...</a></p>
        ]]></description>
        <pubDate>Sun, 11 Oct 2015 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/20/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/20/</guid>
        <category>kde</category><category>arch-linux</category>
    </item><item>
        <title>Zoom the screen with Alt+Scroll in KDE</title>
        <link>https://pryp.in/blog/19/zoom-the-screen-with-alt-scroll-in-kde.html</link>
        <description><![CDATA[
<p>Install <em>xbindkeys</em>, <em>qdbus</em>.</p>
<p>Enable KWin zoom effect. For best experience, lower the zoom multiplier.</p>
<p>Add this to <em>.xbindkeysrc</em> in your home folder (or create the file):</p>
<pre><code>[~/.xbindkeysrc]
&quot;qdbus org.kde.kglobalaccel /component/kwin invokeShortcut view_zoom_in&quot;
    alt + b:4
&quot;qdbus org.kde.kglobalaccel /component/kwin invokeShortcut view_zoom_out&quot;
    alt + b:5
</code></pre><p><a href="https://pryp.in/blog/19/zoom-the-screen-with-alt-scroll-in-kde.html#cut">...</a></p>
        ]]></description>
        <pubDate>Mon, 17 Aug 2015 12:00:00 -0000</pubDate>
        <comments>https://pryp.in/blog/19/#comments</comments>
        <dc:creator>Oleh Prypin</dc:creator>
        <guid isPermaLink="true">https://pryp.in/blog/19/</guid>
        <category>kde</category><category>kwin</category><category>dbus</category><category>xbindkeys</category><category>shortcuts</category>
    </item>
</channel>
</rss>