<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>erlang on Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/tags/erlang/</link>
		<description>Recent content in erlang on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Thu, 16 Oct 2025 07:25:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/tags/erlang/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>EUnit examples: &#39;with&#39;</title>
				<link>https://blog.differentpla.net/blog/2025/10/16/eunit-with/</link>
				<pubDate>Thu, 16 Oct 2025 07:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/10/16/eunit-with/</guid>
				<description>&lt;p&gt;In earlier posts, &lt;a href=&#34;https://blog.differentpla.net/blog/2023/04/02/eunit-examples-foreach-result/&#34;&gt;Passing the result from &amp;lsquo;foreach&amp;rsquo;&lt;/a&gt; and&#xA;&lt;a href=&#34;https://blog.differentpla.net/blog/2023/04/02/eunit-examples-setup-result/&#34;&gt;Passing the result from &amp;lsquo;setup&amp;rsquo;&lt;/a&gt;, I showed how to&#xA;(awkwardly) pass the result from the setup function to the test functions.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Sending (some) functions between OTP versions fails with &#39;badfun&#39;</title>
				<link>https://blog.differentpla.net/blog/2025/04/29/erlang-badfun-otp-versions/</link>
				<pubDate>Tue, 29 Apr 2025 11:58:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/04/29/erlang-badfun-otp-versions/</guid>
				<description>&lt;p&gt;Did you know that you can send Erlang functions between Erlang nodes? You can. Did you know that the OTP versions need&#xA;to match?&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_server/gen_statem: redirecting tracing to logger</title>
				<link>https://blog.differentpla.net/blog/2024/05/20/erlang-gen-server-redirect-debug-trace-to-logger/</link>
				<pubDate>Mon, 20 May 2024 11:05:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/05/20/erlang-gen-server-redirect-debug-trace-to-logger/</guid>
				<description>&lt;p&gt;In an &lt;a href=&#34;https://blog.differentpla.net/blog/2023/05/10/erlang-gen-server-debug/&#34;&gt;earlier post&lt;/a&gt;, I talked about how you can turn on &lt;code&gt;gen_server&lt;/code&gt; and &lt;code&gt;gen_statem&lt;/code&gt; debug tracing by adding (e.g.) &lt;code&gt;[{debug, trace}]&lt;/code&gt; to the start options. I recently discovered a way to integrate this with Erlang&amp;rsquo;s default &lt;code&gt;logger&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Helpers for fold accumulators, part 2</title>
				<link>https://blog.differentpla.net/blog/2024/02/13/erlang-fold-accumulator-helpers-part-2/</link>
				<pubDate>Tue, 13 Feb 2024 15:08:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/02/13/erlang-fold-accumulator-helpers-part-2/</guid>
				<description>&lt;p&gt;A follow up to &lt;a href=&#34;https://blog.differentpla.net/blog/2024/02/09/erlang-fold-accumulator-helpers/&#34;&gt;On whether &amp;ldquo;fold accumulator helpers&amp;rdquo; are a good idea&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Helpers for fold accumulators</title>
				<link>https://blog.differentpla.net/blog/2024/02/09/erlang-fold-accumulator-helpers/</link>
				<pubDate>Fri, 09 Feb 2024 10:41:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/02/09/erlang-fold-accumulator-helpers/</guid>
				<description>&lt;p&gt;On whether &amp;ldquo;fold accumulator helpers&amp;rdquo; are a good idea.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m currently writing some code that recursively folds over a multi-level data structure, and I found myself wondering&#xA;whether introducing helper functions specifically to abstract over the accumulator are a good idea.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Erlang&#39;s logger from escript</title>
				<link>https://blog.differentpla.net/blog/2024/01/05/erlang-logger-escript/</link>
				<pubDate>Fri, 05 Jan 2024 16:05:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/01/05/erlang-logger-escript/</guid>
				<description>&lt;p&gt;If you&amp;rsquo;re writing an Erlang &lt;code&gt;escript&lt;/code&gt;, you might want to configure logging. Here&amp;rsquo;s how.&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_statem: Asynchronous Initialization</title>
				<link>https://blog.differentpla.net/blog/2024/01/03/gen-statem-async-init/</link>
				<pubDate>Wed, 03 Jan 2024 14:11:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2024/01/03/gen-statem-async-init/</guid>
				<description>&lt;p&gt;When you use &lt;code&gt;gen_statem:start/3,4&lt;/code&gt; or &lt;code&gt;gen_statem:start_link/3,4&lt;/code&gt;, the call blocks until the server process has finished running &lt;code&gt;Module:init/1&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Elliptic Curve keys for signing in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/12/08/elliptic-curve-signing-erlang/</link>
				<pubDate>Fri, 08 Dec 2023 14:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/12/08/elliptic-curve-signing-erlang/</guid>
				<description>&lt;p&gt;How do I sign (and verify) things in Erlang, using an ECDSA key?&lt;/p&gt;</description>
			</item>
			<item>
				<title>httpc:request hangs with an HTTPS URL</title>
				<link>https://blog.differentpla.net/blog/2023/10/16/erlang-httpc-hangs-https/</link>
				<pubDate>Mon, 16 Oct 2023 13:53:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/10/16/erlang-httpc-hangs-https/</guid>
				<description>&lt;p&gt;If you use Erlang/OTP&amp;rsquo;s provided HTTP client as follows, it hangs:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Remotely loading Erlang modules by copy-pasting</title>
				<link>https://blog.differentpla.net/blog/2023/07/13/remote-load-erlang-module-paste/</link>
				<pubDate>Thu, 13 Jul 2023 13:59:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/07/13/remote-load-erlang-module-paste/</guid>
				<description>&lt;p&gt;If you want to replace an Erlang module on a remote node, but you&amp;rsquo;re unable to copy files to it, and you&amp;rsquo;re unable to&#xA;make RPC calls to it, but you &lt;em&gt;can&lt;/em&gt; get a remote console, here&amp;rsquo;s what you do:&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_server debug options</title>
				<link>https://blog.differentpla.net/blog/2023/05/10/erlang-gen-server-debug/</link>
				<pubDate>Wed, 10 May 2023 10:22:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/05/10/erlang-gen-server-debug/</guid>
				<description>&lt;p&gt;Erlang&amp;rsquo;s &lt;code&gt;gen_server&lt;/code&gt; (and &lt;code&gt;gen_statem&lt;/code&gt;, etc.) allow for you to pass &lt;code&gt;{debug, DebugOptions}&lt;/code&gt; in&#xA;&lt;code&gt;gen_server:start_link/4&lt;/code&gt; (et al.). The documentation for it is spread over several pages, making it hard to understand&#xA;at first. How should we use it?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang on Kubernetes: Using Kustomize to manage a ConfigMap for sys.config</title>
				<link>https://blog.differentpla.net/blog/2023/05/01/erlang-k8s-configmap-kustomize/</link>
				<pubDate>Mon, 01 May 2023 13:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/05/01/erlang-k8s-configmap-kustomize/</guid>
				<description>&lt;p&gt;In a &lt;a href=&#34;https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/&#34;&gt;previous post&lt;/a&gt;, I showed how to store &lt;code&gt;sys.config&lt;/code&gt; and&#xA;&lt;code&gt;vm.args&lt;/code&gt; in a ConfigMap. There are some problems with that approach, so I&amp;rsquo;m going to use Kustomize to fix that.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang: via</title>
				<link>https://blog.differentpla.net/blog/2023/04/20/erlang-via-registry/</link>
				<pubDate>Thu, 20 Apr 2023 13:02:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/20/erlang-via-registry/</guid>
				<description>&lt;p&gt;Here&amp;rsquo;s how you can use &lt;code&gt;via&lt;/code&gt; in a name specification when starting a &lt;code&gt;gen_server&lt;/code&gt; (or &lt;code&gt;gen_statem&lt;/code&gt;, etc.) to register&#xA;your process with a process registry.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang: ways to specify the server in gen_server:call</title>
				<link>https://blog.differentpla.net/blog/2023/04/19/erlang-gen-server-call/</link>
				<pubDate>Wed, 19 Apr 2023 15:40:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/19/erlang-gen-server-call/</guid>
				<description>&lt;p&gt;You can &lt;code&gt;gen_server:call&lt;/code&gt; in a bunch of different ways.&lt;/p&gt;&#xA;&lt;p&gt;If you have a process ID:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang on Kubernetes: Using a ConfigMap for sys.config</title>
				<link>https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/</link>
				<pubDate>Thu, 13 Apr 2023 16:27:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/</guid>
				<description>&lt;p&gt;Erlang configuration is typically stored in the &lt;code&gt;sys.config&lt;/code&gt; file. What options do we have if we want to have different&#xA;settings in this file when deploying using Kubernetes?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Rotating CA certificates</title>
				<link>https://blog.differentpla.net/blog/2023/04/07/erlang-cluster-k8s-rotating-ca/</link>
				<pubDate>Fri, 07 Apr 2023 10:31:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/07/erlang-cluster-k8s-rotating-ca/</guid>
				<description>&lt;p&gt;About 3 months ago, the Erlang nodes in my &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/&#34;&gt;cluster&lt;/a&gt; stopped&#xA;talking to each other. This was caused by the &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/&#34;&gt;CA certificate expiring&lt;/a&gt;. In that post, I asked &amp;ldquo;How &lt;em&gt;do&lt;/em&gt; we roll the CA certificate&#xA;without downtime?&amp;rdquo;. This post explores some options.&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Cleaning up server processes</title>
				<link>https://blog.differentpla.net/blog/2023/04/03/eunit-examples-cleanup-server/</link>
				<pubDate>Mon, 03 Apr 2023 16:33:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/03/eunit-examples-cleanup-server/</guid>
				<description>&lt;p&gt;In several of the previous posts, for example &lt;a href=&#34;https://blog.differentpla.net/blog/2023/03/31/eunit-examples-setup/&#34;&gt;Using &amp;lsquo;setup&amp;rsquo;&lt;/a&gt;, I&amp;rsquo;ve&#xA;started a server in &lt;code&gt;suite_setup/0&lt;/code&gt; and needed to kill it in &lt;code&gt;suite_cleanup/1&lt;/code&gt;. I showed a simple way to do that, but&#xA;it&amp;rsquo;s not the best. Here&amp;rsquo;s a better way to do it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Passing the result from &#39;foreach&#39;</title>
				<link>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-foreach-result/</link>
				<pubDate>Sun, 02 Apr 2023 11:23:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-foreach-result/</guid>
				<description>&lt;p&gt;Similar to passing the result from &lt;code&gt;{setup, Setup, ...&lt;/code&gt; to each test, you can also pass the result from &lt;code&gt;{foreach, Setup, ...&lt;/code&gt; to each test, but there are some differences.&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Passing the result from &#39;setup&#39;</title>
				<link>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-setup-result/</link>
				<pubDate>Sun, 02 Apr 2023 08:20:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-setup-result/</guid>
				<description>&lt;p&gt;The result from &lt;code&gt;setup&lt;/code&gt; is passed to &lt;code&gt;cleanup&lt;/code&gt; already. What if we want to pass it to each of our tests? It&amp;rsquo;s a bit&#xA;awkward, but it looks like the following:&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Nested &#39;setup&#39; and &#39;foreach&#39;</title>
				<link>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-nested-setup-foreach/</link>
				<pubDate>Sun, 02 Apr 2023 08:14:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/02/eunit-examples-nested-setup-foreach/</guid>
				<description>&lt;p&gt;If you want to run some setup before (and cleanup after) a list of tests, and &lt;em&gt;also&lt;/em&gt; some setup and cleanup for each&#xA;test, you can nest &lt;code&gt;setup&lt;/code&gt; and &lt;code&gt;foreach&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Restricting Erlang distribution to localhost</title>
				<link>https://blog.differentpla.net/blog/2023/04/01/inet-tcp-dist-localhost/</link>
				<pubDate>Sat, 01 Apr 2023 15:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/01/inet-tcp-dist-localhost/</guid>
				<description>&lt;p&gt;By default, Erlang distribution listens on all available network interfaces. Sometimes you don&amp;rsquo;t want this. How can we&#xA;fix it?&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Using &#39;foreach&#39;</title>
				<link>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-foreach/</link>
				<pubDate>Fri, 31 Mar 2023 08:30:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-foreach/</guid>
				<description>&lt;p&gt;We saw that &lt;code&gt;setup&lt;/code&gt; runs setup/cleanup before &lt;em&gt;all&lt;/em&gt; tests in a list. If you want to run some setup/cleanup before &lt;em&gt;each&lt;/em&gt;&#xA;test in a list, you can use &lt;code&gt;foreach&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Using &#39;setup&#39;</title>
				<link>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-setup/</link>
				<pubDate>Fri, 31 Mar 2023 08:20:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-setup/</guid>
				<description>&lt;p&gt;What if we want to run some setup before a set of tests (and cleanup afterwards)?&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: a test list</title>
				<link>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-list/</link>
				<pubDate>Fri, 31 Mar 2023 08:15:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-list/</guid>
				<description>&lt;p&gt;While you could specify each test with a single function, you can also use a test &amp;ldquo;instantiator&amp;rdquo; (or generator) and have&#xA;it return a list.&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: a simple test</title>
				<link>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-simple/</link>
				<pubDate>Fri, 31 Mar 2023 08:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-simple/</guid>
				<description>&lt;p&gt;A simple EUnit test might look like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-erlang&#34; data-lang=&#34;erlang&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;% in test/meaning_test.erl&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;ni&#34;&gt;module&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;meaning_test&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;).&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;ni&#34;&gt;include_lib&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;eunit/include/eunit.hrl&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;).&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nf&#34;&gt;the_test&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;o&#34;&gt;?&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;assertEqual&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;42&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;meaning&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;nf&#34;&gt;meaning_of&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;([&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;life&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;universe&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;everything&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;])).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;Of note:&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUnit examples: Introduction</title>
				<link>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-intro/</link>
				<pubDate>Fri, 31 Mar 2023 08:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/31/eunit-examples-intro/</guid>
				<description>&lt;p&gt;Some examples of how to use Erlang&amp;rsquo;s unit-testing framework, EUnit. Starting with simple examples and getting more&#xA;advanced.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Remotely loading Erlang modules</title>
				<link>https://blog.differentpla.net/blog/2023/03/21/remote-load-erlang-modules/</link>
				<pubDate>Tue, 21 Mar 2023 18:44:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/21/remote-load-erlang-modules/</guid>
				<description>&lt;p&gt;Sometimes, you&amp;rsquo;re connected to another node in an Erlang cluster, and you need to inject a new or replacement module.&#xA;Here&amp;rsquo;s how.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Resetting the terminal after running rebar3</title>
				<link>https://blog.differentpla.net/blog/2023/03/08/rebar3-stty-sane/</link>
				<pubDate>Wed, 08 Mar 2023 10:12:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/08/rebar3-stty-sane/</guid>
				<description>&lt;p&gt;Sometimes, when you run &lt;code&gt;rebar3 shell&lt;/code&gt; and you press Ctrl+C twice to quit, your terminal is messed up. This is how I&#xA;fixed it in zsh.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Loading .erlang from the working directory</title>
				<link>https://blog.differentpla.net/blog/2023/03/07/erlangrc-working-dir/</link>
				<pubDate>Tue, 07 Mar 2023 16:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/07/erlangrc-working-dir/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2023/03/04/erlang-shell-prompt/&#34;&gt;previous post&lt;/a&gt;, I wrote about customizing the Erlang shell&#xA;prompt by using the &lt;code&gt;.erlang&lt;/code&gt; file. Erlang looks for this file in &lt;code&gt;$HOME&lt;/code&gt; (I&amp;rsquo;m simplifying here); it doesn&amp;rsquo;t look in the&#xA;current working directory. How can we fix that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Changing the Erlang shell prompt</title>
				<link>https://blog.differentpla.net/blog/2023/03/04/erlang-shell-prompt/</link>
				<pubDate>Sat, 04 Mar 2023 16:38:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/04/erlang-shell-prompt/</guid>
				<description>&lt;p&gt;Did you know that you can change the Erlang shell prompt?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Setting the window title from Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/22/erlang-window-title/</link>
				<pubDate>Wed, 22 Feb 2023 17:21:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/22/erlang-window-title/</guid>
				<description>&lt;p&gt;How do I change the title of my terminal window from Erlang?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using RSA keys for encryption and decryption in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/14/rsa-encryption-erlang/</link>
				<pubDate>Tue, 14 Feb 2023 09:39:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/14/rsa-encryption-erlang/</guid>
				<description>&lt;p&gt;How do I encrypt (and decrypt) things in Erlang, using an RSA key?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Encrypting a JSON Web Token in Erlang, using JOSE</title>
				<link>https://blog.differentpla.net/blog/2023/02/13/jwt-encryption-jose/</link>
				<pubDate>Mon, 13 Feb 2023 17:46:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/13/jwt-encryption-jose/</guid>
				<description>&lt;p&gt;In an earlier post, I showed how to &lt;a href=&#34;https://blog.differentpla.net/blog/2023/02/13/jwt-encryption-erlang/&#34;&gt;encrypt a JSON Web Token in Erlang&lt;/a&gt;. I used plain-ol&amp;rsquo; Erlang. Here&amp;rsquo;s how to use the&#xA;&lt;a href=&#34;https://hex.pm/packages/jose&#34;&gt;jose&lt;/a&gt; package to do the same thing.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Encrypting a JSON Web Token in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/13/jwt-encryption-erlang/</link>
				<pubDate>Mon, 13 Feb 2023 15:37:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/13/jwt-encryption-erlang/</guid>
				<description>&lt;p&gt;Following on from &lt;a href=&#34;https://blog.differentpla.net/blog/2023/02/09/jwt-signing-erlang/&#34;&gt;signing a web token in Erlang&lt;/a&gt;, here&amp;rsquo;s how to&#xA;encrypt one.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Signing a JSON Web Token in Erlang, using JOSE</title>
				<link>https://blog.differentpla.net/blog/2023/02/11/jwt-signing-erlang-jose/</link>
				<pubDate>Sat, 11 Feb 2023 14:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/11/jwt-signing-erlang-jose/</guid>
				<description>&lt;p&gt;In an earlier post, I showed how to &lt;a href=&#34;https://blog.differentpla.net/blog/2023/02/09/jwt-signing-erlang/&#34;&gt;sign a JSON Web Token in Erlang&lt;/a&gt;. I used plain-ol&amp;rsquo; Erlang. Here&amp;rsquo;s how to use the &lt;a href=&#34;https://hex.pm/packages/jose&#34;&gt;jose&lt;/a&gt; package to do the same thing.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Signing a JSON Web Token in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/09/jwt-signing-erlang/</link>
				<pubDate>Thu, 09 Feb 2023 16:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/09/jwt-signing-erlang/</guid>
				<description>&lt;p&gt;About 8 years ago, I wrote a post about &lt;a href=&#34;https://blog.differentpla.net/blog/2015/04/19/jwt-rs256-erlang/&#34;&gt;verifying JSON Web Tokens (JWT) in Erlang&lt;/a&gt;.&#xA;3 years later, I wrote another post about &lt;a href=&#34;https://blog.differentpla.net/blog/2017/10/05/google-pub-sub-bash/&#34;&gt;signing a JWT in bash&lt;/a&gt;.&#xA;This is a post combining the two: here&amp;rsquo;s how you sign a JWT using Erlang.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using RSA keys for signing in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/08/rsa-signing-erlang/</link>
				<pubDate>Wed, 08 Feb 2023 14:06:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/08/rsa-signing-erlang/</guid>
				<description>&lt;p&gt;How do I sign (and verify) things in Erlang, using an RSA key?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Wrapping an RSA private key with Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/08/wrap-rsa-private-key-erlang/</link>
				<pubDate>Wed, 08 Feb 2023 11:13:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/08/wrap-rsa-private-key-erlang/</guid>
				<description>&lt;p&gt;The previous post finished up by writing an RSA public key in &amp;ldquo;wrapped&amp;rdquo; (PKCS#8) PEM-format. It occurred to me that I should probably show how to do the same with the &lt;em&gt;private&lt;/em&gt; key as well.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Generating an RSA key with Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/02/07/generate-rsa-key-erlang/</link>
				<pubDate>Tue, 07 Feb 2023 18:39:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/07/generate-rsa-key-erlang/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m currently doing something that needs RSA keys, so here are some Erlang snippets showing how to create one.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang Clustering: a survey</title>
				<link>https://blog.differentpla.net/blog/2023/01/22/erlang-clustering-survey/</link>
				<pubDate>Sun, 22 Jan 2023 12:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/22/erlang-clustering-survey/</guid>
				<description>&lt;p&gt;A &lt;a href=&#34;https://hachyderm.io/@alter_kaker/109713602011411781&#34;&gt;question&lt;/a&gt; on Mastodon asks &lt;em&gt;&amp;ldquo;What are people using [for cluster&#xA;management] in 2023?&amp;rdquo;&lt;/em&gt;. I thought I&amp;rsquo;d address a couple of hidden assumptions in the question and do a quick survey of&#xA;what&amp;rsquo;s available.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Simple log colouring in Erlang</title>
				<link>https://blog.differentpla.net/blog/2023/01/21/erlang-simple-log-colouring/</link>
				<pubDate>Sat, 21 Jan 2023 20:40:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/21/erlang-simple-log-colouring/</guid>
				<description>&lt;p&gt;By default, the improved logger originally introduced in Erlang/OTP-21 doesn&amp;rsquo;t support per-level colours. This is&#xA;something that I miss from &lt;a href=&#34;https://github.com/erlang-lager/lager&#34;&gt;&lt;code&gt;lager&lt;/code&gt;&lt;/a&gt; and from Elixir&amp;rsquo;s &lt;code&gt;Logger&lt;/code&gt;. Here&amp;rsquo;s a simple&#xA;way to implement something like &lt;code&gt;lager&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>BEAM Telemetry: Prometheus</title>
				<link>https://blog.differentpla.net/blog/2023/01/19/beam-telemetry-prometheus/</link>
				<pubDate>Thu, 19 Jan 2023 17:58:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/19/beam-telemetry-prometheus/</guid>
				<description>&lt;p&gt;In the previous posts, we gathered metrics from &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/15/beam-telemetry-cowboy-metrics/&#34;&gt;Cowboy&lt;/a&gt;&#xA;and &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/18/beam-telemetry-hackney/&#34;&gt;Hackney&lt;/a&gt;. I&amp;rsquo;d like to publish the metrics to Prometheus.&lt;/p&gt;</description>
			</item>
			<item>
				<title>BEAM Telemetry: Hackney Metrics</title>
				<link>https://blog.differentpla.net/blog/2023/01/18/beam-telemetry-hackney/</link>
				<pubDate>Wed, 18 Jan 2023 20:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/18/beam-telemetry-hackney/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/15/beam-telemetry-cowboy-metrics/&#34;&gt;previous post&lt;/a&gt; of the series, I added basic&#xA;metrics reporting to Cowboy, and simply wrote them to the logger. In this post, I&amp;rsquo;m going to do the same for the HTTP client, Hackney,.&lt;/p&gt;</description>
			</item>
			<item>
				<title>BEAM Telemetry: Cowboy Metrics</title>
				<link>https://blog.differentpla.net/blog/2023/01/15/beam-telemetry-cowboy-metrics/</link>
				<pubDate>Sun, 15 Jan 2023 12:55:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/15/beam-telemetry-cowboy-metrics/</guid>
				<description>&lt;p&gt;Cowboy is probably the most popular HTTP server for the Erlang and Elixir ecosystem. Here&amp;rsquo;s how to get metrics from it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Building Erlang from source and using it with direnv</title>
				<link>https://blog.differentpla.net/blog/2023/01/10/erlang-source-with-direnv/</link>
				<pubDate>Tue, 10 Jan 2023 11:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/10/erlang-source-with-direnv/</guid>
				<description>&lt;p&gt;Building and installing Erlang is &lt;em&gt;almost&lt;/em&gt; compatible with my &lt;code&gt;use erlang&lt;/code&gt; &lt;a href=&#34;https://blog.differentpla.net/blog/2019/01/30/integrating-kerl-direnv/&#34;&gt;rule for direnv&lt;/a&gt;. Here&amp;rsquo;s how to bodge it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Building Erlang/OTP</title>
				<link>https://blog.differentpla.net/blog/2023/01/09/building-erlang/</link>
				<pubDate>Mon, 09 Jan 2023 18:06:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/09/building-erlang/</guid>
				<description>&lt;p&gt;There&amp;rsquo;s more comprehensive information in various files in the &lt;code&gt;HOWTO&lt;/code&gt; directory, but ain&amp;rsquo;t nobody got time for that. This works for me.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Forking Erlang/OTP</title>
				<link>https://blog.differentpla.net/blog/2023/01/09/forking-erlang/</link>
				<pubDate>Mon, 09 Jan 2023 17:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/09/forking-erlang/</guid>
				<description>&lt;p&gt;Some notes about hacking on and contributing to Erlang, because I don&amp;rsquo;t do it frequently enough to have all of this in muscle memory.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang SSH - No host key available</title>
				<link>https://blog.differentpla.net/blog/2023/01/08/erlang-ssh-debugging/</link>
				<pubDate>Sun, 08 Jan 2023 16:31:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/08/erlang-ssh-debugging/</guid>
				<description>&lt;p&gt;You&amp;rsquo;re experimenting with Erlang&amp;rsquo;s &lt;a href=&#34;https://www.erlang.org/doc/man/ssh.html&#34;&gt;built-in SSH daemon&lt;/a&gt;, and it fails with &amp;ldquo;No&#xA;host key available&amp;rdquo;. What&amp;rsquo;s up with that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Fatal - Certificate Expired</title>
				<link>https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/</link>
				<pubDate>Sat, 07 Jan 2023 17:11:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/</guid>
				<description>&lt;p&gt;The nodes in the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/&#34;&gt;cluster&lt;/a&gt; stopped talking to each other at&#xA;some point. I only noticed this afternoon after investigating &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/07/network-connectivity-incident-review/&#34;&gt;some other problem&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using setup and foreach in eunit tests</title>
				<link>https://blog.differentpla.net/blog/2023/01/03/eunit-setup-foreach/</link>
				<pubDate>Tue, 03 Jan 2023 13:18:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/03/eunit-setup-foreach/</guid>
				<description>&lt;p&gt;For when you want to run both per-suite and per-test setup and cleanup in eunit tests.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Conclusion</title>
				<link>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-conclusion/</link>
				<pubDate>Fri, 23 Dec 2022 18:09:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-conclusion/</guid>
				<description>&lt;p&gt;This started as a quick experiment to spin up an Erlang cluster on Kubernetes, using TLS distribution, and to validate&#xA;using &lt;em&gt;cert-manager&lt;/em&gt; to issue the pod certificates.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Readiness Probe</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-readiness-probe/</link>
				<pubDate>Thu, 22 Dec 2022 17:50:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-readiness-probe/</guid>
				<description>&lt;p&gt;While scaling up/down the deployment for my Erlang cluster, I regularly refresh the web page that displays cluster&#xA;members. Occasionally, I get a &amp;ldquo;502 Bad Gateway&amp;rdquo; error from Traefik. What&amp;rsquo;s with that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Is it mutual?</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-inspect-sslsocket/</link>
				<pubDate>Thu, 22 Dec 2022 16:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-inspect-sslsocket/</guid>
				<description>&lt;p&gt;In theory, we&amp;rsquo;ve &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/&#34;&gt;got TLS working&lt;/a&gt; for our Erlang&#xA;cluster, with &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/&#34;&gt;mutual authentication&lt;/a&gt;. How do we prove&#xA;that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: SSH public key authentication</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh-pubkey/</link>
				<pubDate>Thu, 22 Dec 2022 15:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh-pubkey/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/&#34;&gt;previous post&lt;/a&gt;, I showed how to enable SSH access to the&#xA;Erlang remote console on a pod. When we left it, it had no authentication. Let&amp;rsquo;s fix that.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: SSH daemon</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/</link>
				<pubDate>Thu, 22 Dec 2022 14:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/</guid>
				<description>&lt;p&gt;As mentioned &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/&#34;&gt;earlier&lt;/a&gt;, using TLS for Erlang&#xA;distribution breaks &lt;code&gt;erlclu remote_console&lt;/code&gt; (because it breaks &lt;code&gt;erl_call&lt;/code&gt;). At the time, I worked around the problem by&#xA;using &lt;code&gt;nodetool&lt;/code&gt;. This post shows how to use Erlang&amp;rsquo;s SSH daemon instead.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang application versioning</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-versioning/</link>
				<pubDate>Thu, 22 Dec 2022 13:53:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-versioning/</guid>
				<description>&lt;p&gt;When you&amp;rsquo;re investigating a problem with a deployed application, it&amp;rsquo;s useful to know precisely which version you&amp;rsquo;re&#xA;looking at. Here&amp;rsquo;s how to automatically set the version number in an Erlang project.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Using the generated certificates</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/</link>
				<pubDate>Thu, 22 Dec 2022 10:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/</guid>
				<description>&lt;p&gt;In the previous two posts, we &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-openssl/&#34;&gt;generated signing requests with OpenSSL&lt;/a&gt; and &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/&#34;&gt;submitted them to &lt;em&gt;cert-manager&lt;/em&gt;&lt;/a&gt;. In this post, we&amp;rsquo;ll actually &lt;em&gt;use&lt;/em&gt; the&#xA;generated certificates for mutual TLS.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Basic init container</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-init-container/</link>
				<pubDate>Thu, 22 Dec 2022 09:56:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-init-container/</guid>
				<description>&lt;p&gt;As explained &lt;a href=&#34;https://blog.differentpla.net/blog/2022/11/13/cert-signing-options/&#34;&gt;here&lt;/a&gt;, I&amp;rsquo;m going to use an &lt;a href=&#34;https://kubernetes.io/docs/concepts/workloads/pods/init-containers/&#34;&gt;init&#xA;container&lt;/a&gt; to issue the pod certificates.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: TLS distribution</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/</link>
				<pubDate>Thu, 22 Dec 2022 09:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/&#34;&gt;previous post&lt;/a&gt;, we got clustering working&#xA;&lt;em&gt;without TLS&lt;/em&gt;. Lifting from the investigation that I wrote up &lt;a href=&#34;https://blog.differentpla.net/blog/2022/11/12/erlang-tls-distribution/&#34;&gt;here&lt;/a&gt;,&#xA;I&amp;rsquo;ll add TLS distribution to my Erlang cluster, but only with server certificates and with no verification (for now).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Erlang Clustering</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/</link>
				<pubDate>Wed, 21 Dec 2022 19:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/</guid>
				<description>&lt;p&gt;Based on my &lt;a href=&#34;https://blog.differentpla.net/blog/2022/01/08/libcluster-kubernetes/&#34;&gt;investigation with libcluster&lt;/a&gt; in Elixir, I&amp;rsquo;ve&#xA;decided to use DNS-based discovery for finding the other Erlang nodes in the cluster. To do this, we&amp;rsquo;ll need a headless&#xA;service.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Erlang Cookie</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-cookie/</link>
				<pubDate>Wed, 21 Dec 2022 19:51:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-cookie/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve covered this previously; see &lt;a href=&#34;https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/&#34;&gt;&amp;ldquo;Erlang/Elixir Cookies and Kubernetes&amp;rdquo;&lt;/a&gt;. Here&amp;rsquo;s the quick version.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Speeding up the container build</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</link>
				<pubDate>Wed, 21 Dec 2022 19:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</guid>
				<description>&lt;p&gt;I noticed that whenever I made any change to the application, it caused the &lt;del&gt;docker&lt;/del&gt;podman build to re-fetch and&#xA;recompile all of the dependencies. On the tiny laptop I was using at the time, this was taking several extra minutes for&#xA;every build.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: HTTP Service</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-http-service/</link>
				<pubDate>Wed, 21 Dec 2022 19:47:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-http-service/</guid>
				<description>&lt;p&gt;Because this is going to be a cluster of Erlang nodes, there&amp;rsquo;s (obviously) going to be more than one instance. It makes&#xA;sense to add some kind of way to have some kind of &amp;ldquo;whoami&amp;rdquo; page, so that we can clearly see which node we&amp;rsquo;re talking&#xA;to.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Initial Deployment</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-initial-deployment/</link>
				<pubDate>Wed, 21 Dec 2022 19:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-initial-deployment/</guid>
				<description>&lt;p&gt;For simplicity&amp;rsquo;s sake, I created a new application with &lt;code&gt;rebar3 new app name=erlclu&lt;/code&gt;. I very soon regretted this&#xA;decision, because I actually needed a release, so I ran &lt;code&gt;rebar3 new release name=whoops&lt;/code&gt; and manually merged the relevant&#xA;pieces together.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Introduction</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/</link>
				<pubDate>Wed, 21 Dec 2022 19:40:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/</guid>
				<description>&lt;p&gt;A few weeks ago, I decided to write a blog post about using mutual TLS to secure Erlang distribution (clustering), with&#xA;auto-provisioning of certificates when running in Kubernetes. It took a little longer to write up than I expected, and&#xA;turned into a series of blog posts.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Rebar3 Umbrella Projects</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/rebar3-umbrella/</link>
				<pubDate>Wed, 21 Dec 2022 14:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/rebar3-umbrella/</guid>
				<description>&lt;p&gt;Some notes about using &lt;a href=&#34;https://rebar3.org/&#34;&gt;rebar3&lt;/a&gt; with an umbrella project.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;rebar3 new umbrella &lt;span class=&#34;nv&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;foo      &lt;span class=&#34;c1&#34;&gt;# umbrella and release are aliases&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; umbrella/&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; apps/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;rebar3 new app &lt;span class=&#34;nv&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bar&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;rebar3 new lib &lt;span class=&#34;nv&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;baz&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;It doesn&amp;rsquo;t set up the application dependencies (because it can&amp;rsquo;t &lt;em&gt;know&lt;/em&gt; what you mean to do), so you&amp;rsquo;ll need to do that&#xA;yourself. Edit &lt;code&gt;apps/foo/src/foo.app.src&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang TLS Distribution</title>
				<link>https://blog.differentpla.net/blog/2022/11/12/erlang-tls-distribution/</link>
				<pubDate>Sat, 12 Nov 2022 14:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/11/12/erlang-tls-distribution/</guid>
				<description>&lt;p&gt;In the previous post, I &lt;a href=&#34;https://blog.differentpla.net/blog/2022/11/11/erlang-clustering-recap/&#34;&gt;recapped Erlang distribution (clustering)&lt;/a&gt;.&#xA;In this post, we&amp;rsquo;ll secure it by using TLS.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang clustering recap</title>
				<link>https://blog.differentpla.net/blog/2022/11/11/erlang-clustering-recap/</link>
				<pubDate>Fri, 11 Nov 2022 19:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/11/11/erlang-clustering-recap/</guid>
				<description>&lt;p&gt;I want to write a post about using mutual TLS to secure Erlang distribution (clustering), with auto-provisioning of&#xA;certificates when running in Kubernetes. This is not that post. This is a recap of basic Erlang clustering, to refresh&#xA;my memory and lay some groundwork.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang SSH</title>
				<link>https://blog.differentpla.net/blog/2022/11/01/erlang-ssh/</link>
				<pubDate>Tue, 01 Nov 2022 10:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/11/01/erlang-ssh/</guid>
				<description>&lt;p&gt;Erlang/OTP provides a built-in SSH client and daemon. You can use this to expose the console directly over SSH.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using eunit to test private functions</title>
				<link>https://blog.differentpla.net/blog/2022/10/25/eunit-private-functions/</link>
				<pubDate>Tue, 25 Oct 2022 17:33:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/25/eunit-private-functions/</guid>
				<description>&lt;p&gt;You&amp;rsquo;ve got an Erlang module with a private (not-exported) function, and you want to add some unit tests for that&#xA;function? How should you do that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Formatting Erlang code in Visual Studio Code</title>
				<link>https://blog.differentpla.net/blog/2022/10/05/vscode-erlang-formatting/</link>
				<pubDate>Wed, 05 Oct 2022 10:23:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/05/vscode-erlang-formatting/</guid>
				<description>&lt;p&gt;The ErlangLS extension for VS Code includes formatting, using &lt;code&gt;rebar3_format&lt;/code&gt;. I&amp;rsquo;d prefer to use &lt;code&gt;erlfmt&lt;/code&gt;, so here&amp;rsquo;s how I set it up.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang/Elixir Cookies and Kubernetes</title>
				<link>https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/</link>
				<pubDate>Sun, 09 Jan 2022 10:27:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/</guid>
				<description>&lt;p&gt;Distributed Erlang and Elixir applications use a shared secret called a &amp;ldquo;cookie&amp;rdquo;.  It&amp;rsquo;s just a string of alphanumeric&#xA;characters. All nodes in the cluster must use the same cookie. Let&amp;rsquo;s take a look at what that means in a Kubernetes&#xA;context.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Which Erlang compiler was used?</title>
				<link>https://blog.differentpla.net/blog/2021/11/02/erlang-compiler-used/</link>
				<pubDate>Tue, 02 Nov 2021 09:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/11/02/erlang-compiler-used/</guid>
				<description>&lt;p&gt;To get the version of the compiler used to compile a particular &lt;code&gt;.beam&lt;/code&gt; file:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang and ed25519</title>
				<link>https://blog.differentpla.net/blog/2021/06/10/erlang-ed25519/</link>
				<pubDate>Thu, 10 Jun 2021 13:18:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/06/10/erlang-ed25519/</guid>
				<description>&lt;p&gt;Erlang/OTP 24.0 added support for ed25519 curves. Here&amp;rsquo;s some example snippets:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ErlangLS version?</title>
				<link>https://blog.differentpla.net/blog/2021/06/02/erlang_ls-version/</link>
				<pubDate>Wed, 02 Jun 2021 09:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/06/02/erlang_ls-version/</guid>
				<description>&lt;p&gt;I recently had to report a bug against ErlangLS (the Erlang Language Server). Here&amp;rsquo;s how I discovered the version number:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ALPN in Erlang</title>
				<link>https://blog.differentpla.net/blog/2021/03/01/erlang-alpn/</link>
				<pubDate>Mon, 01 Mar 2021 11:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/03/01/erlang-alpn/</guid>
				<description>&lt;p&gt;Per &lt;a href=&#34;https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation&#34;&gt;Wikipedia&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;Application-Layer Protocol Negotiation (ALPN) is a Transport Layer Security (TLS)&#xA;extension that allows the application layer to negotiate which protocol should be&#xA;performed over a secure connection in a manner that avoids additional round trips&#xA;and which is independent of the application-layer protocols.&lt;/p&gt;&#xA;&#xA;  &lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>Using &#39;cert&#39; and &#39;key&#39; with Erlang/OTP &#39;ssl&#39;</title>
				<link>https://blog.differentpla.net/blog/2021/02/26/otp-ssl-cert-key-example/</link>
				<pubDate>Fri, 26 Feb 2021 16:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/02/26/otp-ssl-cert-key-example/</guid>
				<description>&lt;p&gt;Ordinarily when writing an SSL/TLS server or client using Erlang/OTP, you&amp;rsquo;ll use the &lt;code&gt;certfile&lt;/code&gt; and &lt;code&gt;keyfile&lt;/code&gt; options, as follows:&lt;/p&gt;</description>
			</item>
			<item>
				<title>{error, closed}; nothing logged</title>
				<link>https://blog.differentpla.net/blog/2021/02/25/ranch-error-closed/</link>
				<pubDate>Thu, 25 Feb 2021 16:04:07 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/02/25/ranch-error-closed/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve just spent about a day poking around in the guts of Erlang/OTP and &lt;a href=&#34;https://github.com/ninenines/ranch&#34;&gt;Ranch&lt;/a&gt;, and I thought I&amp;rsquo;d write some of it down.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Erlang&#39;s Common Test for System Testing</title>
				<link>https://blog.differentpla.net/blog/2020/09/14/erlang-common-test/</link>
				<pubDate>Mon, 14 Sep 2020 18:21:52 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/09/14/erlang-common-test/</guid>
				<description>&lt;p&gt;At Electric Imp (now part of Twilio), my team uses Erlang&amp;rsquo;s Common Test for driving our system tests. These are (almost-)end-to-end tests that exercise (almost) the whole platform.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Connecting to an Erlang node in a Docker container</title>
				<link>https://blog.differentpla.net/blog/2020/06/19/epmd-docker/</link>
				<pubDate>Fri, 19 Jun 2020 15:41:48 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/06/19/epmd-docker/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve got a bunch of Erlang nodes running in Docker containers, and I&amp;rsquo;d&#xA;like to connect a remote shell, running on the host, to one of them.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Erlang and Elixir on Raspberry Pi</title>
				<link>https://blog.differentpla.net/blog/2020/02/07/rpi-elixir/</link>
				<pubDate>Fri, 07 Feb 2020 10:49:06 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/02/07/rpi-elixir/</guid>
				<description>&lt;p&gt;Quick reference for installing Erlang and Elixir on a Raspberry Pi, using the Erlang Solutions packages.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debugging gen_server timeouts</title>
				<link>https://blog.differentpla.net/blog/2019/09/21/gen_server-timeout/</link>
				<pubDate>Sat, 21 Sep 2019 15:01:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/09/21/gen_server-timeout/</guid>
				<description>&lt;p&gt;When an error occurs in the &lt;a href=&#34;https://electricimp.com&#34;&gt;Electric Imp&lt;/a&gt; backend, it&amp;rsquo;s logged and collated, and we regularly&#xA;review error reports to see if there&amp;rsquo;s anything that needs looking at.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Getting Erlang version</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/erlang-version/</link>
				<pubDate>Wed, 30 Jan 2019 17:05:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/erlang-version/</guid>
				<description>&lt;p&gt;Use this helper function:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;erlang_version() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    erl -eval &amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        {ok, Version} = file:read_file(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                            filename:join(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                [code:root_dir(),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 &amp;#34;releases&amp;#34;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 erlang:system_info(otp_release),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 &amp;#34;OTP_VERSION&amp;#34;])),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        io:format(&amp;#34;Erlang/OTP ~s&amp;#34;, [Version]),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        halt().&amp;#39; -noshell&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;div class=&#34;callout callout-warning&#34;&gt;&#xA;  &lt;div class=&#34;callout-content&#34;&gt;&#xA;    Note that this only works when you run &lt;code&gt;erl&lt;/code&gt;; it doesn&amp;rsquo;t work in a released application.&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Installing Erlang with kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-erlang-with-kerl/</link>
				<pubDate>Wed, 30 Jan 2019 17:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-erlang-with-kerl/</guid>
				<description>&lt;p&gt;At Electric Imp, on developer PCs, we manage our Erlang versions with &lt;a href=&#34;https://github.com/yrashk/kerl&#34;&gt;kerl&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-kerl/</link>
				<pubDate>Wed, 30 Jan 2019 17:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-kerl/</guid>
				<description>&lt;h2 id=&#34;ubuntu&#34;&gt;Ubuntu&lt;a href=&#34;#ubuntu&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl&#xA;chmod +x kerl&#xA;sudo mv kerl /usr/local/bin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;a href=&#34;#macos&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;brew install kerl&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/integrating-kerl-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/integrating-kerl-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;kerl&lt;/code&gt;, add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Building Erlang: Prerequisites (Ubuntu)</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/erlang-build-prerequisites/</link>
				<pubDate>Wed, 30 Jan 2019 17:02:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/erlang-build-prerequisites/</guid>
				<description>&lt;p&gt;If you want to use &lt;code&gt;kerl&lt;/code&gt; to build your Erlang installation, you&amp;rsquo;re going to&#xA;need some packages installed first.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Rebuilding kerl Installations</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/rebuild-kerl-installations/</link>
				<pubDate>Wed, 30 Jan 2019 16:50:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/rebuild-kerl-installations/</guid>
				<description>&lt;p&gt;If &lt;code&gt;kerl list installations&lt;/code&gt; is displaying Erlang installations that you&#xA;deleted ages ago, and you&amp;rsquo;ve got all of your installations in&#xA;&lt;code&gt;~/.kerl/erlangs/&lt;/code&gt;, you can rebuild the list by running the following command:&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_server:enter_loop</title>
				<link>https://blog.differentpla.net/blog/2018/06/12/gen-server-enter-loop/</link>
				<pubDate>Tue, 12 Jun 2018 14:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2018/06/12/gen-server-enter-loop/</guid>
				<description>&lt;p&gt;When you use &lt;code&gt;gen_server:start/3,4&lt;/code&gt; or &lt;code&gt;gen_server:start_link/3,4&lt;/code&gt;, the call&#xA;blocks until the other process has finished running &lt;code&gt;init/1&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>How does rebar escriptize work?</title>
				<link>https://blog.differentpla.net/blog/2015/10/21/rebar-escriptize/</link>
				<pubDate>Wed, 21 Oct 2015 08:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2015/10/21/rebar-escriptize/</guid>
				<description>&lt;h2 id=&#34;hello-world&#34;&gt;Hello World&lt;a href=&#34;#hello-world&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;You can create Erlang scripts quite simply. Just create a file something like the following:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Compiling Erlang for Synology DS211, DSM 5.1</title>
				<link>https://blog.differentpla.net/blog/2015/07/05/erlang-ds211/</link>
				<pubDate>Sun, 05 Jul 2015 20:16:00 +0100</pubDate>
				<guid>https://blog.differentpla.net/blog/2015/07/05/erlang-ds211/</guid>
				<description>&lt;p&gt;I wanted to get Erlang running on my Synology NAS, for various reasons, and was&#xA;struggling with the cross compiler.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Validating RS256-signed JSON Web Tokens in Erlang</title>
				<link>https://blog.differentpla.net/blog/2015/04/19/jwt-rs256-erlang/</link>
				<pubDate>Sun, 19 Apr 2015 14:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2015/04/19/jwt-rs256-erlang/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m currently playing with OpenID Connect (OAuth 2.0 for Login), to allow people to log into a web site using their&#xA;Google account. The web site is built using Erlang.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Getting lager handler info</title>
				<link>https://blog.differentpla.net/blog/2014/11/28/lager-handler-info/</link>
				<pubDate>Fri, 28 Nov 2014 11:08:49 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/11/28/lager-handler-info/</guid>
				<description>&lt;p&gt;We use &lt;a href=&#34;https://github.com/basho/lager&#34;&gt;lager&lt;/a&gt; for our logging at &lt;a href=&#34;http://www.electricimp.com&#34;&gt;Electric Imp&lt;/a&gt;.&#xA;This morning I had cause to &lt;a href=&#34;http://blog.differentpla.net/blog/2014/05/10/adding-lager-handlers-at-runtime/&#34;&gt;tweak the&#xA;configuration&lt;/a&gt;&#xA;at runtime on one of our staging boxes, but first I needed to figure out which&#xA;handlers were already installed.&lt;/p&gt;</description>
			</item>
			<item>
				<title>When does terminate get called?</title>
				<link>https://blog.differentpla.net/blog/2014/11/13/erlang-terminate/</link>
				<pubDate>Thu, 13 Nov 2014 13:22:12 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/11/13/erlang-terminate/</guid>
				<description>&lt;p&gt;In Erlang, in a &lt;code&gt;gen_server&lt;/code&gt;, when &lt;em&gt;does&lt;/em&gt; terminate get called? Also, some&#xA;messing around with &lt;code&gt;dbg&lt;/code&gt; for tracing.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Supervised event handlers in Erlang</title>
				<link>https://blog.differentpla.net/blog/2014/11/07/erlang-sup-event/</link>
				<pubDate>Fri, 07 Nov 2014 10:11:33 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/11/07/erlang-sup-event/</guid>
				<description>&lt;p&gt;I find Erlang&amp;rsquo;s &lt;code&gt;gen_event&lt;/code&gt; behaviour to be fairly tricky to understand,&#xA;despite the copious documentation on the subject:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Library module name &#39;foo_nif&#39; does not match calling module &#39;erl_eval&#39;</title>
				<link>https://blog.differentpla.net/blog/2014/10/09/library-module-does-not-match-calling-module/</link>
				<pubDate>Thu, 09 Oct 2014 13:43:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/10/09/library-module-does-not-match-calling-module/</guid>
				<description>&lt;p&gt;It turns out that you can&amp;rsquo;t load Erlang NIF libraries from the shell.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using kerl with direnv</title>
				<link>https://blog.differentpla.net/blog/2014/09/30/kerl-and-direnv/</link>
				<pubDate>Tue, 30 Sep 2014 00:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/09/30/kerl-and-direnv/</guid>
				<description>&lt;p&gt;&lt;code&gt;kerl&lt;/code&gt; allows you to easily build and install multiple Erlang/OTP releases.&#xA;It&amp;rsquo;s kinda like &lt;code&gt;nvm&lt;/code&gt; or &lt;code&gt;rvm&lt;/code&gt;, but for Erlang. It doesn&amp;rsquo;t do everything, and&#xA;that&amp;rsquo;s what &lt;code&gt;direnv&lt;/code&gt; is for. &lt;code&gt;direnv&lt;/code&gt; allows you to run commands upon entering&#xA;or leaving a particular directory.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Dependency my_app is specified as a dependency but is not reachable by the system</title>
				<link>https://blog.differentpla.net/blog/2014/07/07/dependency-my-app-is-specified-as-a-dependency-but-is-not-reachable-by-the-system/</link>
				<pubDate>Mon, 07 Jul 2014 13:26:04 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/07/07/dependency-my-app-is-specified-as-a-dependency-but-is-not-reachable-by-the-system/</guid>
				<description>&lt;p&gt;While using &lt;code&gt;erlang.mk&lt;/code&gt; and &lt;code&gt;relx&lt;/code&gt; to build a newly-created Erlang application, I got the following error:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Electric Imp Moves to Erlang Programming Language</title>
				<link>https://blog.differentpla.net/blog/2014/05/16/electricimp-erlang/</link>
				<pubDate>Fri, 16 May 2014 00:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/05/16/electricimp-erlang/</guid>
				<description>&lt;div class=&#34;callout callout-info&#34;&gt;&#xA;  &lt;div class=&#34;callout-content&#34;&gt;&#xA;    &lt;p&gt;Originally posted to the Electric Imp blog, 16 June 2014.&lt;/p&gt;&#xA;&lt;p&gt;This post is no longer available on the Electric Imp blog, so to preserve it, I took a copy from the&#xA;&lt;a href=&#34;https://web.archive.org/web/20140702010121/http://blog.electricimp.com/post/85932940180/electric-imp-moves-to-erlang-programming-language&#34;&gt;Internet Archive Wayback Machine&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>lager formatters</title>
				<link>https://blog.differentpla.net/blog/2014/05/13/lager-formatters/</link>
				<pubDate>Tue, 13 May 2014 12:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/05/13/lager-formatters/</guid>
				<description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a href=&#34;#overview&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re using &lt;a href=&#34;https://github.com/basho/lager/&#34;&gt;lager&lt;/a&gt; for your Erlang logging,&#xA;you&amp;rsquo;ve probably left the default formatter well alone, by doing something like&#xA;this in your configuration file:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Adding lager handlers at runtime</title>
				<link>https://blog.differentpla.net/blog/2014/05/10/adding-lager-handlers-at-runtime/</link>
				<pubDate>Sat, 10 May 2014 08:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/05/10/adding-lager-handlers-at-runtime/</guid>
				<description>&lt;p&gt;You&amp;rsquo;re using lager for logging in your Erlang program, and you discover that&#xA;your configuration isn&amp;rsquo;t logging anything more verbose than &lt;code&gt;info&lt;/code&gt;-level&#xA;messages. How do you bump that up to &lt;code&gt;debug&lt;/code&gt;?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debugging Erlang with a remote shell</title>
				<link>https://blog.differentpla.net/blog/2014/05/08/debugging-erlang-with-a-remote-shell/</link>
				<pubDate>Thu, 08 May 2014 15:54:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/05/08/debugging-erlang-with-a-remote-shell/</guid>
				<description>&lt;p&gt;If you&amp;rsquo;re connected to an Erlang node via a remote shell, and you don&amp;rsquo;t have&#xA;access to stdout on the original node, you&amp;rsquo;ll need to redirect the trace output&#xA;to your current shell.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Creating ZIP files in Erlang</title>
				<link>https://blog.differentpla.net/blog/2014/03/05/zip-files-in-erlang/</link>
				<pubDate>Wed, 05 Mar 2014 16:30:57 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2014/03/05/zip-files-in-erlang/</guid>
				<description>&lt;p&gt;It&amp;rsquo;s pretty simple to create a ZIP file on disk.&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_fsm learnings, part 3</title>
				<link>https://blog.differentpla.net/blog/2013/11/12/gen-fsm-learnings-part-3/</link>
				<pubDate>Tue, 12 Nov 2013 13:51:52 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2013/11/12/gen-fsm-learnings-part-3/</guid>
				<description>&lt;p&gt;Some odds and ends.&lt;/p&gt;&#xA;&lt;h2 id=&#34;handle_info-information&#34;&gt;&lt;code&gt;handle_info&lt;/code&gt; information&lt;a href=&#34;#handle_info-information&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The last of the &amp;ldquo;I don&amp;rsquo;t know what this is for&amp;rdquo; functions is &lt;code&gt;handle_info&lt;/code&gt;. This&#xA;is documented as being called for messages that aren&amp;rsquo;t events or system&#xA;messages.&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_fsm learnings, part 2</title>
				<link>https://blog.differentpla.net/blog/2013/11/11/gen-fsm-learnings-part-2/</link>
				<pubDate>Mon, 11 Nov 2013 16:12:36 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2013/11/11/gen-fsm-learnings-part-2/</guid>
				<description>&lt;h2 id=&#34;handle_event-and-handle_sync_event&#34;&gt;&lt;code&gt;handle_event&lt;/code&gt; and &lt;code&gt;handle_sync_event&lt;/code&gt;&lt;a href=&#34;#handle_event-and-handle_sync_event&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;OK. So, looping back round, just what &lt;em&gt;are&lt;/em&gt; &lt;code&gt;handle_event&lt;/code&gt; and&#xA;&lt;code&gt;handle_sync_event&lt;/code&gt; for?&lt;/p&gt;</description>
			</item>
			<item>
				<title>gen_fsm learnings, part 1</title>
				<link>https://blog.differentpla.net/blog/2013/11/11/gen-fsm-learnings-part-1/</link>
				<pubDate>Mon, 11 Nov 2013 15:31:10 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2013/11/11/gen-fsm-learnings-part-1/</guid>
				<description>&lt;h2 id=&#34;background&#34;&gt;Background&lt;a href=&#34;#background&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;All of the &lt;code&gt;gen_fsm&lt;/code&gt; examples I&amp;rsquo;ve found on the Internet are way too&#xA;complicated. For example, the one in &lt;a href=&#34;http://learnyousomeerlang.com/finite-state-machines&#34;&gt;learn you some&#xA;Erlang&lt;/a&gt; jumps from a&#xA;simple, hand-written FSM to one that seems to handle a full trading floor&#xA;simulation. That&amp;rsquo;s a steep learning curve in my book.&lt;/p&gt;</description>
			</item>
			<item>
				<title>net_kernel:connect_node/1 returns ignored</title>
				<link>https://blog.differentpla.net/blog/2013/11/07/net-kernel-connect-node-1-returns-ignored/</link>
				<pubDate>Thu, 07 Nov 2013 16:31:34 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2013/11/07/net-kernel-connect-node-1-returns-ignored/</guid>
				<description>&lt;p&gt;Just some random thing I learnt today while playing with Erlang:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
