<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on etc.</title>
    <link>https://staudtlex.de/posts/</link>
    <description>Recent content in Posts on etc.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 28 Jun 2023 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://staudtlex.de/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enabling OpenMP support for data.table on macOS</title>
      <link>https://staudtlex.de/posts/enable-openmp-on-macos/</link>
      <pubDate>Wed, 28 Jun 2023 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/enable-openmp-on-macos/</guid>
      <description>&lt;p&gt;Xcode compilers on macOS do not support &lt;a href=&#34;https://en.wikipedia.org/wiki/OpenMP&#34;&gt;OpenMP&lt;/a&gt;. In consequence, R packages use only one of the many available cores for their computations, which often results in longer computing time. In this blog post, I show how to re-enable OpenMP on macOS, and how to rebuild affected R packages.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Another approach to building a date conversion tool</title>
      <link>https://staudtlex.de/posts/date-conversion-with-emacs/</link>
      <pubDate>Sat, 24 Sep 2022 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/date-conversion-with-emacs/</guid>
      <description>&lt;p&gt;Following up on an idea mentioned &lt;a href=&#34;https://staudtlex.de/posts/calendrical-calculations-in-go/&#34;&gt;here&lt;/a&gt;, this post describes how to build, deploy, and run a date conversion tool built with Emacs, Lisp, and Docker.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Doing calendrical calculations in Go</title>
      <link>https://staudtlex.de/posts/calendrical-calculations-in-go/</link>
      <pubDate>Mon, 29 Aug 2022 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/calendrical-calculations-in-go/</guid>
      <description>&lt;p&gt;In this post, I present a command line application that displays a given date in different calendars, and the library that powers this application.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Customize and build a local lighttpd test server</title>
      <link>https://staudtlex.de/posts/run-lighttpd-without-root/</link>
      <pubDate>Sun, 21 Feb 2021 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/run-lighttpd-without-root/</guid>
      <description>&lt;p&gt;While fiddling around writing a simple &lt;a href=&#34;https://en.wikipedia.org/wiki/Common_Gateway_Interface&#34;&gt;CGI&lt;/a&gt;-based web application, I found myself needing a web server for testing purposes.&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; A key requirement for that server (&lt;a href=&#34;https://en.wikipedia.org/wiki/Lighttpd&#34;&gt;lighttpd&lt;/a&gt;) being that it needs to be built and installed without root permissions and run locally from my home directory, the setup-process is a bit more involved than would be a default installation. In this post, I therefore describe how to install, configure and run lighttpd given the above conditions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Call a Fortran function in Python</title>
      <link>https://staudtlex.de/posts/call-fortran-from-python/</link>
      <pubDate>Sun, 03 Jan 2021 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/call-fortran-from-python/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;#project-requirements&#34;&gt;&lt;em&gt;longior, non legi (tl;dr)&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;!--begin-more--&gt;&#xA;&lt;p&gt;In this (third) post about interfacing compiled code with different programming languages, I focus on how to access Fortran functions with Python.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Run compiled Fortran code with Java</title>
      <link>https://staudtlex.de/posts/call-fortran-from-java/</link>
      <pubDate>Sun, 16 Aug 2020 00:00:00 +0200</pubDate>
      <guid>https://staudtlex.de/posts/call-fortran-from-java/</guid>
      <description>&lt;p&gt;In the second post of my series about interfacing compiled code, I describe how to call a Fortran library function from Java.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Interfacing a Fortran library function with C</title>
      <link>https://staudtlex.de/posts/call-fortran-from-c/</link>
      <pubDate>Sat, 18 Jul 2020 00:00:00 +0200</pubDate>
      <guid>https://staudtlex.de/posts/call-fortran-from-c/</guid>
      <description>&lt;p&gt;In this post, I describe how to call a Fortran linear regression function from C, as well as the steps required to import the data from a space delimited text file.&lt;/p&gt;</description>
    </item>
    <item>
      <title>De replendo Gitis exemplaris mutationibus originis</title>
      <link>https://staudtlex.de/posts/git-update-local-repository/</link>
      <pubDate>Sat, 21 Sep 2019 00:00:00 +0200</pubDate>
      <guid>https://staudtlex.de/posts/git-update-local-repository/</guid>
      <description>&lt;!--begin-more--&gt;&#xA;&lt;p&gt;&lt;em&gt;How to merge upstream changes into a local Git repository&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>OLS in good old Fortran!</title>
      <link>https://staudtlex.de/posts/ols-in-fortran/</link>
      <pubDate>Sat, 11 May 2019 00:00:00 +0200</pubDate>
      <guid>https://staudtlex.de/posts/ols-in-fortran/</guid>
      <description>&lt;p&gt;In this post, we will discuss the algorithm that produces point estimates \(\hat\beta\) given inputs \(y\) and \(X\) in linear regression. After deriving the function producing \(\hat\beta\), I&amp;rsquo;ll briefly show how to implement this procedure in yet another compiled language, &lt;a href=&#34;https://en.wikipedia.org/wiki/Fortran&#34;&gt;Fortran&lt;/a&gt;, and how to call it from within R.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Metropolis-Hastings algorithm in C</title>
      <link>https://staudtlex.de/posts/metropolis-hastings-c/</link>
      <pubDate>Sat, 16 Mar 2019 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/metropolis-hastings-c/</guid>
      <description>&lt;p&gt;In a &lt;a href=&#34;https://staudtlex.de/posts/metropolis-hastings-r/&#34;&gt;previous post&lt;/a&gt;, I presented the main ideas of the Metropolis-Hastings algorithm, and showed how one may implement a random-walk Metropolis and an independent MH sampler in R. Running them however took some time until completion, hence, in this post, I&amp;rsquo;ll show how to speed things up by implementing these very algorithms in &lt;a href=&#34;https://en.wikipedia.org/wiki/C_(programming_language)&#34;&gt;C&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CIBAR: Plotting bar graphs with confidence intervals in Stata</title>
      <link>https://staudtlex.de/posts/bar-graph-ci/</link>
      <pubDate>Sat, 02 Mar 2019 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/bar-graph-ci/</guid>
      <description>Summarizing data graphically allows to have a quick glance at data of interest. For instance, we may want to assess whether a variable&amp;rsquo;s mean differs accross different groups. Stata allows to do that easily with grouped bar plots: graph bar dep_var, over(groups). However, to perform statistical inference about group differences, we require a measure of uncertainty (e.g. confidence intervals) around the group means. Without uncertainty measures, we cannot be sure whether a difference in means is in fact due to groups or rather a result of sampling error.</description>
    </item>
    <item>
      <title>Building the GNU Scientific Library on Windows</title>
      <link>https://staudtlex.de/posts/build-gnu-gsl-on-windows/</link>
      <pubDate>Sat, 12 Jan 2019 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/build-gnu-gsl-on-windows/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;#requirements&#34;&gt;&lt;em&gt;longior, non legi (tl;dr)&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;!--begin-more--&gt;&#xA;&lt;p&gt;Including external and up-to-date C libraries for compilation under Windows can sometimes be a bit of a challenge, as they may be outdated or not available in binary form. For libraries under a free and/or open source license (e.g. GPL, MIT), there is at least the possibility to build them on your own computer.&lt;/p&gt;</description>
    </item>
    <item>
      <title>De Metropolis-Hastingis algorithmo</title>
      <link>https://staudtlex.de/posts/metropolis-hastings-r/</link>
      <pubDate>Sat, 05 Jan 2019 00:00:00 +0100</pubDate>
      <guid>https://staudtlex.de/posts/metropolis-hastings-r/</guid>
      <description>&lt;p&gt;In contrast to OLS and MLE, where parameter estimation essentially boils down to solving something along the lines of \(\hat\beta = (X^\prime X)^{-1} X^\prime y\), or respectively searching for \(\hat\beta\) such that the likelihood \(p(y,X|\hat\beta)\) is largest, estimating Bayesian models may at first feel like resorting to a black box which mysteriously produces posterior densities \(p(\beta|y,X)\). In an attempt to lift this veil of mystery, we will take a look at the Metropolis-Hastings sampler, one of those black boxes used to estimate posterior densities.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
