<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Programming on StackedBoxes.org</title>
    <link>https://stackedboxes.org/topics/programming/</link>
    <description>Recent content in Programming on StackedBoxes.org</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 30 Dec 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://stackedboxes.org/topics/programming/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>From Bare Docs to Bare Metal</title>
      <link>https://stackedboxes.org/2021/12/30/from-bare-docs-to-bare-metal/</link>
      <pubDate>Thu, 30 Dec 2021 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2021/12/30/from-bare-docs-to-bare-metal/</guid>
      <description>&lt;p&gt;Many tutorials show how to do bare metal programming on a Raspberry Pi. Some are&#xA;very good, but they tend to have a certain magic vibe on them. &amp;ldquo;Trust me, just&#xA;use the following magic constants and it will work&amp;rdquo;. I can&amp;rsquo;t help but ask, hey,&#xA;where did this magic come from? What if I wanted to figure out all details by&#xA;myself?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Polar Method</title>
      <link>https://stackedboxes.org/2020/03/17/polar-method/</link>
      <pubDate>Tue, 17 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2020/03/17/polar-method/</guid>
      <description>&lt;p&gt;We definitely don&amp;rsquo;t have a shortage of methods for generating&#xA;normally-distributed random numbers from a source of uniformly-distributed&#xA;random numbers. One of such methods is the so called Polar Method, a variation&#xA;of the Box-Muller Transform, which I &lt;a href=&#34;https://stackedboxes.org/2020/01/28/box-muller-transform/&#34;&gt;already described before&lt;/a&gt;. You might want to take a look at it&#xA;before reading this.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Box-Muller Transform</title>
      <link>https://stackedboxes.org/2020/01/28/box-muller-transform/</link>
      <pubDate>Tue, 28 Jan 2020 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2020/01/28/box-muller-transform/</guid>
      <description>&lt;p&gt;This algorithm is named after George Edward Pelham Box and Mervin Edgar Muller,&#xA;who published it on a two-page paper in 1958. The idea was not original, though:&#xA;it appeared already in the 1934 book &lt;em&gt;Fourier Transforms in the Complex Domain&lt;/em&gt;,&#xA;by Raymond E. A. C. Paley and Norbert Wiener. &lt;a href=&#34;https://en.wikipedia.org/wiki/Stigler%27s_law_of_eponymy&#34;&gt;Stigler&amp;rsquo;s&#xA;law&lt;/a&gt; strikes again!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Euclidean Algorithm</title>
      <link>https://stackedboxes.org/2020/01/05/euclidean-algorithm/</link>
      <pubDate>Sun, 05 Jan 2020 14:30:30 +0000</pubDate>
      <guid>https://stackedboxes.org/2020/01/05/euclidean-algorithm/</guid>
      <description>&lt;p&gt;We don&amp;rsquo;t know for sure when the Euclidean Algorithm was created nor by whom, but&#xA;it was made famous around 300 BC by the &lt;em&gt;Elements&lt;/em&gt; &amp;ndash; the &lt;em&gt;magnum opus&lt;/em&gt; of Greek&#xA;mathematician Euclid. Wikipedia describes it as &amp;ldquo;one of the oldest algorithms in&#xA;common use&amp;rdquo; and Knuth affectionately calls it &amp;ldquo;the granddaddy of all&#xA;algorithms&amp;rdquo;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>DUMP</title>
      <link>https://stackedboxes.org/2020/01/05/dump-of-unsorted-morsels-for-programmers/</link>
      <pubDate>Sun, 05 Jan 2020 14:30:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2020/01/05/dump-of-unsorted-morsels-for-programmers/</guid>
      <description>&lt;p&gt;This is a repository of more or less random programming things, made for my own&#xA;amusement and edification. I don&amp;rsquo;t know how this will evolve over time (if at&#xA;all), but I envision this as a collection of interactive visual explanations of&#xA;algorithms and data structures.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Conceptual Machine Learning Primer, Part 2</title>
      <link>https://stackedboxes.org/2017/07/01/conceptual-machine-learning-primer-2/</link>
      <pubDate>Sat, 01 Jul 2017 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2017/07/01/conceptual-machine-learning-primer-2/</guid>
      <description>&lt;p&gt;On the second and final part of this conceptual introduction to Machine Learning (ML), I&amp;rsquo;ll discuss its relationship with other areas (like Data Science) and describe what I perceive as a common theme among many of the ML algorithms. Emphasis on &amp;ldquo;what I perceive&amp;rdquo;: don&amp;rsquo;t take this as &lt;em&gt;the&lt;/em&gt; truth.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Conceptual Machine Learning Primer, Part 1</title>
      <link>https://stackedboxes.org/2017/06/20/conceptual-machine-learning-primer-1/</link>
      <pubDate>Tue, 20 Jun 2017 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2017/06/20/conceptual-machine-learning-primer-1/</guid>
      <description>&lt;p&gt;&amp;ldquo;Machine Learning&amp;rdquo; is not just a buzzword &amp;mdash; arguably, it is two. Almost everybody seems to be using Machine Learning (ML) in a way or another, and those who aren&amp;rsquo;t are looking forward to use it. Sounds like a good topic to know about. I did some &lt;a href=&#34;https://stackedboxes.org/1998/10/15/vox-neural-network-speech-recognition/&#34;&gt;nice Neural Network stuff &lt;/a&gt; with some colleagues in school in the late 90s&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;. Maybe I could just brag that I have nearly 20 years of experience in the field, but this would not be exactly an honest statement, as I didn&amp;rsquo;t do much ML since then.&lt;/p&gt;&#xA;&lt;p&gt;Anyway, this is a fun, useful and increasingly important field, so, I guess it is time to do some ML for real. Here&amp;rsquo;s the first set of notes about my studies, in which I present some important concepts without getting into specific algorithms.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Acklam&#39;s Algorithm for the Inverse Normal CDF</title>
      <link>https://stackedboxes.org/2017/05/01/acklams-normal-quantile-function/</link>
      <pubDate>Mon, 01 May 2017 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2017/05/01/acklams-normal-quantile-function/</guid>
      <description>&lt;p&gt;Once upon a time, Peter John Acklam devised a nice algorithm to approximate the&#xA;&lt;a href=&#34;https://en.wikipedia.org/wiki/Quantile_function&#34;&gt;quantile function&lt;/a&gt; (AKA&#xA;inverse cumulative distribution function, or inverse CDF) of the &lt;a href=&#34;https://en.wikipedia.org/wiki/Normal_distribution&#34;&gt;normal&#xA;distribution&lt;/a&gt;. He made the&#xA;algorithm freely available, but unfortunately his page describing it has been&#xA;timing out for quite a while. So, for reference, here&amp;rsquo;s a quick overview of his&#xA;algorithm.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Open Scene Graph: More State — Lights, Textures and Shaders</title>
      <link>https://stackedboxes.org/2011/01/27/osg-part-3-more-state/</link>
      <pubDate>Thu, 27 Jan 2011 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2011/01/27/osg-part-3-more-state/</guid>
      <description>&lt;p&gt;I could made this part fit into a single paragraph. Serious, just watch:&lt;/p&gt;&#xA;&lt;p&gt;Light, textures and shaders are part of the rendering state, so they are handled&#xA;just as shown in the &lt;a href=&#34;https://stackedboxes.org/2010/05/05/osg-part-2-statesets&#34;&gt;previous post&lt;/a&gt;.&#xA;Sure, using them requires the use of subclasses of &lt;code&gt;osg::StateAttribute&lt;/code&gt; that&#xA;have not been shown, like &lt;code&gt;osg::Light&lt;/code&gt;, &lt;code&gt;osg::Texture2D&lt;/code&gt;, and &lt;code&gt;osg::Program&lt;/code&gt;,&#xA;but the idea is the same. So, just spend some time with the Open Scene Graph&#xA;reference documentation and you are done.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Open Scene Graph: Completing the Triad: StateSets</title>
      <link>https://stackedboxes.org/2010/05/05/osg-part-2-statesets/</link>
      <pubDate>Wed, 05 May 2010 00:00:02 +0000</pubDate>
      <guid>https://stackedboxes.org/2010/05/05/osg-part-2-statesets/</guid>
      <description>&lt;p&gt;In the previous part, we talked about two very important OSG concepts: nodes and&#xA;drawables. Now, we&amp;rsquo;ll deal with a third very important concept: state sets.&#xA;These form what I consider the triad of the very fundamental OSG concepts.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Open Scene Graph: The Basics</title>
      <link>https://stackedboxes.org/2010/05/05/osg-part-1-the-basics/</link>
      <pubDate>Wed, 05 May 2010 00:00:01 +0000</pubDate>
      <guid>https://stackedboxes.org/2010/05/05/osg-part-1-the-basics/</guid>
      <description>&lt;p&gt;Having conceived this text as a practical guide, I was tempted to jump right&#xA;into action, with an exciting example program displaying some nifty 3D graphics.&#xA;But, also having conceived this text as something useful for &amp;ldquo;very beginners&amp;rdquo;, I&#xA;resisted this temptation and decided to start with some basic concepts without&#xA;which the Open Scene Graph (OSG) would not make sense. So, before talking about&#xA;OSG &lt;em&gt;per se&lt;/em&gt;, I&amp;rsquo;ll start spending a little time with a quite fundamental&#xA;question.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Short Introduction to the Basic Principles of the Open Scene Graph</title>
      <link>https://stackedboxes.org/2010/05/05/osg-prologue/</link>
      <pubDate>Wed, 05 May 2010 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2010/05/05/osg-prologue/</guid>
      <description>&lt;p&gt;This is the prologue for a series of posts teaching the most important concepts&#xA;for anyone learning to use the &lt;a href=&#34;http://www.openscenegraph.org&#34;&gt;Open Scene Graph&lt;/a&gt;&#xA;(OSG).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Diversão com Software Livre</title>
      <link>https://stackedboxes.org/2009/09/27/diversao-software-livre/</link>
      <pubDate>Sun, 27 Sep 2009 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2009/09/27/diversao-software-livre/</guid>
      <description>&lt;p&gt;Apresentação feita por mim no &amp;ldquo;Dia da Liberdade de Software&amp;rdquo; (Feevale, Novo&#xA;Hamburgo, RS), em setembro de 02009 e reprisada no TcheLinux 2009 (PUC-RS, Porto&#xA;Alegre, RS).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Lua: Uma linguagem de extensão extensível</title>
      <link>https://stackedboxes.org/2009/04/30/lua/</link>
      <pubDate>Thu, 30 Apr 2009 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2009/04/30/lua/</guid>
      <description>&lt;p&gt;Esse foi um minicurso que eu ministrei na Game Development School (GDS) da&#xA;Unisinos, em novembro de 02007. Estão disponíveis os&#xA;&lt;a href=&#34;https://stackedboxes.org/files/2009/04/Lua-GDS-02007-Slides.pdf&#34;&gt;slides&lt;/a&gt; e o &lt;a href=&#34;https://stackedboxes.org/files/2009/04/Lua-GDS-02007-Exemplos.zip&#34;&gt;código&#xA;fonte&lt;/a&gt; usado nos exemplos.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Lua e XML</title>
      <link>https://stackedboxes.org/2006/07/19/lua-xml/</link>
      <pubDate>Wed, 19 Jul 2006 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2006/07/19/lua-xml/</guid>
      <description>&lt;p&gt;Eu sou daqueles que ainda não conseguiram entender o que existe de tão&#xA;espetacular no tal XML. Até admito que ele possa ser bom para algumas&#xA;aplicações, e talvez até possa ser a melhor opção para um ou outro caso, mas o&#xA;fato é que se faz barulho demais sobre isso. Diz-se que &amp;ldquo;este programa usa&#xA;arquivos XML&amp;rdquo; como se isso fosse um recurso do programa, uma vantagem para o&#xA;usuário. Entretanto, o que me parece é que, na maioria dos casos, algum outro&#xA;formato mais simples, legível e &amp;ldquo;escrevível&amp;rdquo; resolveria o problema com bem mais&#xA;facilidade e eficiência.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Illustrated Guide to Bootloaders</title>
      <link>https://stackedboxes.org/2006/02/21/illustrated-guide-bootloaders/</link>
      <pubDate>Tue, 21 Feb 2006 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2006/02/21/illustrated-guide-bootloaders/</guid>
      <description>&lt;p&gt;Trying to decide whether you should install GRUB or LILO? Afraid of making the&#xA;wrong decision? &lt;strong&gt;The Illustrated Guide to Bootloaders&lt;/strong&gt; comes to your rescue!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Undergrad Class Assignments</title>
      <link>https://stackedboxes.org/2004/08/24/undergrad-class-assignments/</link>
      <pubDate>Tue, 24 Aug 2004 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/2004/08/24/undergrad-class-assignments/</guid>
      <description>&lt;h1 id=&#34;undergrad-class-assignments&#34;&gt;Undergrad Class Assignments&lt;/h1&gt;&#xA;&lt;p&gt;These are some class assignments I did when I was an undergraduate Computer&#xA;Science student. If nobody find them useful, they&amp;rsquo;ll at least help me to&#xA;remember some of the assignments I enjoyed most.&lt;/p&gt;&#xA;&lt;p&gt;The majority of the stuff here (specially the older ones) are in Portuguese.&lt;/p&gt;&#xA;&lt;p&gt;All the software available here is licensed under the Cursing License (which I&#xA;haven&amp;rsquo;t written yet &amp;mdash; but I will write it someday).&lt;/p&gt;</description>
    </item>
    <item>
      <title>VOX Project</title>
      <link>https://stackedboxes.org/1998/10/15/vox-neural-network-speech-recognition/</link>
      <pubDate>Thu, 15 Oct 1998 00:00:00 +0000</pubDate>
      <guid>https://stackedboxes.org/1998/10/15/vox-neural-network-speech-recognition/</guid>
      <description>&lt;p&gt;VOX is a speech recognition school project I worked in back in 1998. Here&amp;rsquo;s a&#xA;brief description of the project, and most of the artifacts we produced back&#xA;then.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
