<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raspberry Pi on Manuel Bernhardt</title><link>https://manuel.bernhardt.io/tags/raspberry-pi/</link><description>Recent content in Raspberry Pi on Manuel Bernhardt</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 29 Feb 2024 12:31:39 +0100</lastBuildDate><atom:link href="https://manuel.bernhardt.io/tags/raspberry-pi/index.xml" rel="self" type="application/rss+xml"/><item><title>Fearless concurrency with Rust, cats, and a few Raspberry PIs</title><link>https://manuel.bernhardt.io/posts/2024-01-26-rust-fearless-concurrency-cats-raspberry-pi/</link><pubDate>Fri, 26 Jan 2024 10:58:12 +0100</pubDate><guid>https://manuel.bernhardt.io/posts/2024-01-26-rust-fearless-concurrency-cats-raspberry-pi/</guid><description>&lt;p>Somehow I&amp;rsquo;m never satisfied when a program only runs on one computer. The reassuring feeling of connectedness, the thrill of discovering who else is there on the network, the fear of network instability and the insanity of trying to establish a coherent view of the world on multiple machines are both a source of joy and despair that keep me hooked. But I digress&amp;hellip;&lt;/p>
&lt;p>In the previous article, we looked at &lt;a href="https://manuel.bernhardt.io/posts/2024-01-12-rust-cat-litter-box/">building a blinking Raspberry PI with Rust&lt;/a> to help cat owners think about cleaning the cat litter box (and avoid death stares from their feline companions). In this article, we&amp;rsquo;ll take things a step further and expand the Reminder PIs to a network, allowing to spread them all over the house so that forgetting about this daily cat owner duty will become an almost impossible thing to do. In order to achieve this, we will embrace the principles of &lt;a href="https://doc.rust-lang.org/book/ch16-00-concurrency.html">Fearless Concurrency&lt;/a> made possible by Rust&amp;rsquo;s memory management paradigm. More specifically, we will:&lt;/p></description></item><item><title>Building a cat litter box reminder with Rust</title><link>https://manuel.bernhardt.io/posts/2024-01-12-rust-cat-litter-box/</link><pubDate>Fri, 12 Jan 2024 15:34:48 +0100</pubDate><guid>https://manuel.bernhardt.io/posts/2024-01-12-rust-cat-litter-box/</guid><description>&lt;p>I continued working on a side-project I built a year ago with &lt;a href="https://www.rust-lang.org/">Rust&lt;/a>, and it is now at a point at which I can write something about it.&lt;/p>
&lt;p>When you own cats, you also own a litter box for said cats which needs to be emptied regularly (at least once a day for two adult cats). Failing this, the cats will give you a look which, in human language, means as much as &amp;ldquo;I will murder you in your sleep&amp;rdquo; which is not a very pleasant feeling.&lt;/p></description></item><item><title>Rust Development for the Raspberry Pi on Apple Silicon</title><link>https://manuel.bernhardt.io/posts/2022-11-04-rust-development-for-the-raspberry-pi-on-apple-silicon/</link><pubDate>Fri, 04 Nov 2022 17:36:39 +0100</pubDate><guid>https://manuel.bernhardt.io/posts/2022-11-04-rust-development-for-the-raspberry-pi-on-apple-silicon/</guid><description>&lt;p>&lt;em>Update (18.02.2023): Updated the article to reflect the usage of VSCode remote development instead of JetBrains Gateway&lt;/em>&lt;/p>
&lt;p>A few weeks ago I started building a Rust project for the Raspberry PI using my brand new MacBook Pro with an M1 chip (the old MacBook Pro from late 2013 still works but it simply is too slow for the work I&amp;rsquo;m doing these days).&lt;/p>
&lt;p>
 &lt;figure style="text-align: center">
 &lt;img src="https://manuel.bernhardt.io/wp-content/new-mac.jpg" class="pure-img" alt="">
 &lt;figcaption>Shiny new MacBook Pro complete with scuba-diving sticker from my wife&lt;/figcaption>
 &lt;/figure>

&lt;/p></description></item><item><title>Akka Raspberry PI demos</title><link>https://manuel.bernhardt.io/2021/04/15/akka-raspberry-pi-demos/</link><pubDate>Thu, 15 Apr 2021 15:57:21 +0200</pubDate><guid>https://manuel.bernhardt.io/2021/04/15/akka-raspberry-pi-demos/</guid><description>&lt;p>Here are a few demonstrations of how Akka Cluster works internally using a Raspberry PI cluster stack.&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
 &lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube-nocookie.com/embed/1ZC2FuZ1eaw?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="Akka Cluster Membership State Convergence">&lt;/iframe>
 &lt;/div>

&lt;br> 
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
 &lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube-nocookie.com/embed/PvwSXk82RaM?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video">&lt;/iframe>
 &lt;/div>

&lt;br>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
 &lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube-nocookie.com/embed/PvwSXk82RaM?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="Akka Christmas Aware Shard Allocation Strategy">&lt;/iframe>
 &lt;/div></description></item><item><title>Akka Cluster, Java and the Raspberry PI 3 Model B</title><link>https://manuel.bernhardt.io/2016/04/19/akka-cluster-java-and-the-raspberry-pi-3-model-b/</link><pubDate>Tue, 19 Apr 2016 07:39:52 +0200</pubDate><guid>https://manuel.bernhardt.io/2016/04/19/akka-cluster-java-and-the-raspberry-pi-3-model-b/</guid><description>&lt;p>I recently built an architecture prototype for &lt;a href="http://dimoco.at">DIMOCO&lt;/a> aiming at answering roughly the following questions:&lt;/p>
&lt;ul>
&lt;li>what does it entail to run an Akka cluster, how fast can new nodes join, how manageable is such a cluster?&lt;/li>
&lt;li>are traditional publish-subscribe message distribution semantics supported (one-to-one, one-to-N, one-to-any-of-N)?&lt;/li>
&lt;li>how can message loss be averted / minimized?&lt;/li>
&lt;li>how fast is the message sending, is it fast enough?&lt;/li>
&lt;li>does it feel &amp;ldquo;Java-like&amp;rdquo; enough (since Akka has strong ties to Scala and the aim is to use Java for this project)?&lt;/li>
&lt;li>how well does it run on the data centers on premise, how easy is it to operate?&lt;/li>
&lt;/ul>
&lt;p>Since I&amp;rsquo;ve been itching to find an excuse for trying out the new &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-3-model-b/">Raspberry PI 3 Model B&lt;/a> this was the perfect opportunity to order 3 of them and use them for testing the prototype.&lt;/p></description></item></channel></rss>