<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2020:04:03</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Mon, 04 May 2026 19:11:20 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>2020-04-03_-_cross-compiling_in_golang</title>
            <link>https://baszerr.eu/doku.php?id=blog:2020:04:03:2020-04-03_-_cross-compiling_in_golang</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;cross-compiling_in_golang&quot;&gt;2020-04-03 - cross-compiling in golang&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
i&amp;#039;m recently working on one project in &lt;a href=&quot;https://en.wikipedia.org/wiki/golang&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/golang&quot;&gt;Go&lt;/a&gt;. this is my first above-hello-world level project in this language. there is a chance it will be open source one day, but for now let&amp;#039;s just call it “a project”. i plan to write a separate post on my impressions on the language, but one thing that was a huge positive surprise for me is cross compiling.
&lt;/p&gt;

&lt;p&gt;
let&amp;#039;s take a simple Go program:
&lt;/p&gt;
&lt;pre class=&quot;code go&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;package&lt;/span&gt; main
&lt;span class=&quot;kw1&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;fmt&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw4&quot;&gt;func&lt;/span&gt; main&lt;span class=&quot;sy1&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;{&lt;/span&gt;
    fmt&lt;span class=&quot;sy3&quot;&gt;.&lt;/span&gt;Println&lt;span class=&quot;sy1&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;hello, world!&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;sy1&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
and compile it:
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;go build&lt;/pre&gt;

&lt;p&gt;
now let&amp;#039;s cross-compile it for Raspberry Pi:
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;re2&quot;&gt;GOOS&lt;/span&gt;=linux &lt;span class=&quot;re2&quot;&gt;GOARCH&lt;/span&gt;=arm &lt;span class=&quot;re2&quot;&gt;GOARM&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt; go build&lt;/pre&gt;

&lt;p&gt;
after nearly 2 decades of C/C++ for both regular and embedded systems, my first though here was: son of a bitch – they can do this…
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:29 +0000</pubDate>
        </item>
        <item>
            <title>2020-04-03_-_out_of_ipv4</title>
            <link>https://baszerr.eu/doku.php?id=blog:2020:04:03:2020-04-03_-_out_of_ipv4</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;out_of_ipv4&quot;&gt;2020-04-03 - out of IPv4&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
not exactly a news, but around the end of 2019 &lt;a href=&quot;https://www.ripe.net/publications/news/about-ripe-ncc-and-ripe/the-ripe-ncc-has-run-out-of-ipv4-addresses&quot; class=&quot;urlextern&quot; title=&quot;https://www.ripe.net/publications/news/about-ripe-ncc-and-ripe/the-ripe-ncc-has-run-out-of-ipv4-addresses&quot; rel=&quot;ugc nofollow&quot;&gt;Europe ran out of IPv4 addresses&lt;/a&gt;. will there be any new ones? yes, if some1 will give address (pool) back, which is not likely to happen anywhere soon.
&lt;/p&gt;

&lt;p&gt;
i&amp;#039;ve heard about shortages of &lt;a href=&quot;https://en.wikipedia.org/wiki/IPv4&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/IPv4&quot;&gt;IPv4&lt;/a&gt; addresses and predicted issues related to it, and a need to move to &lt;a href=&quot;https://en.wikipedia.org/wiki/IPv6&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/IPv6&quot;&gt;IPv6&lt;/a&gt; since about 20 years now. maybe it&amp;#039;s finally time to do so…
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:30 +0000</pubDate>
        </item>
        <item>
            <title>2020-04-03_-_reserving_non-privileged_ports_on_linux</title>
            <link>https://baszerr.eu/doku.php?id=blog:2020:04:03:2020-04-03_-_reserving_non-privileged_ports_on_linux</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;reserving_non-privileged_ports_on_linux&quot;&gt;2020-04-03 - reserving non-privileged ports on linux&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
using TCP/UDP ports &amp;lt; 1024 is reserved for root. &lt;abbr title=&quot;Operating System&quot;&gt;OS&lt;/abbr&gt; will never auto-assign it to anything (eg. random source port when creating new TCP connection). these are however reserved for root user and are also typically already allocated for standard services, you do not wish to be confused with.
&lt;/p&gt;

&lt;p&gt;
so normally you use port numbers above 1024. there is a catch, though – in that range, kernel will auto-assign ports as well. while most of the time you&amp;#039;re going to be just fine, there is a small chance you&amp;#039;ll be out of luck and will try to use port, that is already in use by some other, random client, outside of your jurisdiction.
&lt;/p&gt;

&lt;p&gt;
it turns out there is a solution for that – you can &lt;a href=&quot;https://www.thegeekdiary.com/how-to-reserve-a-port-range-for-a-third-party-application-in-centos-rhel/&quot; class=&quot;urlextern&quot; title=&quot;https://www.thegeekdiary.com/how-to-reserve-a-port-range-for-a-third-party-application-in-centos-rhel/&quot; rel=&quot;ugc nofollow&quot;&gt;reserve port range or particular ports&lt;/a&gt; for these purposes! :)
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;$ &lt;span class=&quot;kw2&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;proc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;sys&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;net&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;ipv4&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;ip_local_port_range
&lt;span class=&quot;nu0&quot;&gt;32768&lt;/span&gt;	&lt;span class=&quot;nu0&quot;&gt;60999&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;code bash&quot;&gt;$ &lt;span class=&quot;kw2&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;proc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;sys&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;net&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;ipv4&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;ip_local_reserved_ports
&lt;span class=&quot;nu0&quot;&gt;4242&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;5151&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
by writing to these files (or doing proper &lt;em&gt;sysctl&lt;/em&gt;) you can control which ports are to be used by kernel for auto-assigning (ip_local_port_range) and which ports are reserved and should never be used for these purposes (ip_local_reserved_ports). the setting is redundant, it is a bit easier to manage, as auto-assign port range can overlap with reserved ports, thus you effectively “remove” some ports from the pool.
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:29 +0000</pubDate>
        </item>
        <item>
            <title>2020-04-03_-_vr_games</title>
            <link>https://baszerr.eu/doku.php?id=blog:2020:04:03:2020-04-03_-_vr_games</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;vr_games&quot;&gt;2020-04-03 - VR games&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
recently a friend of mine bought Oculus VR. i had a chance to play with it briefly. i must say i&amp;#039;m impresses with the progress in the area. last time i had VR headset on (around 2014) graphics looked terrible and fun was… well there was not much fun out of it. things have progressed a lot since then. yes, the field of view is still fairly limited, but still – this time i was impressed.
&lt;/p&gt;

&lt;p&gt;
games have also progressed. &lt;a href=&quot;https://en.wikipedia.org/wiki/Half-Life%3A_Alyx&quot; class=&quot;urlextern&quot; title=&quot;https://en.wikipedia.org/wiki/Half-Life%3A_Alyx&quot; rel=&quot;ugc nofollow&quot;&gt;half-life: alyx&lt;/a&gt; was recently released&lt;sup&gt;&lt;a href=&quot;#fn__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; – the best match for VR i have ever seen/heard of. with half-life&amp;#039;s physics engine, this makes a great match for VR. what is limited and (judging from game play recordings – i have not had a chance to play myself) kinda awkward is moving around. obviously with VR googles on, you cannot move around a lot, as your room is limited in size. ;) in “alyx” it is solved so that you point where you want to move, and just “jump in there”. so forget about classic movements like going backwards while firing at the enemy or strife-and-shoot trick. maybe i&amp;#039;m just a creature of habit, but i guess i&amp;#039;d miss that a lot…
&lt;/p&gt;

&lt;p&gt;
so VR is best when you can sit (or at least stand still) and just move head/arms around. i am still wondering why there is no flight simulator for that platform? you sit (in the cockpit) and move rudders/throttle (and fire, if this would be a fighter(jet)). sounds like a perfect match! moving head around is very important there and really awkward with keyboard and/or mouse – VR would solve this making it a really realistic experience!
&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;too bad there is no non-VR version!&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:30 +0000</pubDate>
        </item>
    </channel>
</rss>
