<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Peter Retief on Medium]]></title>
        <description><![CDATA[Stories by Peter Retief on Medium]]></description>
        <link>https://medium.com/@peterretief?source=rss-3550682b5484------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yIvlb9SSHL_dCdNw.jpg</url>
            <title>Stories by Peter Retief on Medium</title>
            <link>https://medium.com/@peterretief?source=rss-3550682b5484------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:10:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peterretief/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Localhosting with Yggdrasil.]]></title>
            <link>https://medium.com/hackernoon/localhosting-with-yggdrasil-or-how-the-internet-was-supposed-to-work-5441fdf44cc3?source=rss-3550682b5484------2</link>
            <guid isPermaLink="false">https://medium.com/p/5441fdf44cc3</guid>
            <category><![CDATA[yggdrasil]]></category>
            <category><![CDATA[mesh-networks]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[Peter Retief]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 11:30:57 GMT</pubDate>
            <atom:updated>2026-10-28T05:38:51.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4X1bAVQAm7qE6tOJvPe99g.png" /></figure><p><strong>Localhosting with Yggdrasil.</strong></p><p>In the spirit of what the internet could have been, I designed yggstore, a locally hosted mesh network built on Yggdrasil. In Yggdrasil’s own words:</p><p>▎ “Yggdrasil is a new experimental compact routing scheme. It is designed to be a future-proof and decentralised alternative to the structured routing protocols commonly used today on the Internet, as well as an enabling technology for future large-scale mesh networks.”</p><p>You can probably see where this is going.</p><p>Enter Reed-Solomon. In a nutshell, Reed-Solomon is an algorithm that lets your data survive even when parts of it are lost.</p><p>yggstore splits each file into 4 MiB chunks and encrypts each chunk with AES-256-GCM, using one random key per file and a fresh nonce per chunk. It then uses Reed-Solomon to turn each chunk into data and parity shards. How many of each depends on how many machines are online, and from four machines up, no machine holds two shards of the same chunk. If only one machine is online, the upload is refused, because the file couldn’t survive losing it.</p><p>Each node in yggstore can run its own email, web and file server, with pub/sub messaging built in. A node can be as small as a Raspberry Pi 3 or as big as a rack-mounted server.</p><p>If your node goes down, your work is already spread across the network, so your email, websites and files stay available.</p><p>It’s already doing this for a few users.</p><p>There’s no reason a single network couldn’t take in millions of nodes. In fact, that would make it even more effective.</p><p>I’ve put a few links below if you want more information. It’s all open source. Have fun!</p><ul><li><a href="https://yggdrasil-network.github.io/">Yggdrasil Network</a></li><li><a href="https://diode.co.za/">Diode · Peter Retief</a></li><li><a href="https://github.com/peterretief/yggstore">GitHub - peterretief/yggstore: People and organisations pool their own machines over Yggdrasil to keep files, websites, email for their own domains and messaging for alarms and alerts among themselves, with no central server and no provider holding their data. Trust can be personal or enforced. Open source to use as you want.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5441fdf44cc3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/localhosting-with-yggdrasil-or-how-the-internet-was-supposed-to-work-5441fdf44cc3">Localhosting with Yggdrasil.</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Poverty and the growth of government]]></title>
            <link>https://medium.com/@peterretief/poverty-and-the-growth-of-government-b76c412e82ff?source=rss-3550682b5484------2</link>
            <guid isPermaLink="false">https://medium.com/p/b76c412e82ff</guid>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[taxes]]></category>
            <dc:creator><![CDATA[Peter Retief]]></dc:creator>
            <pubDate>Mon, 08 Jan 2018 21:24:45 GMT</pubDate>
            <atom:updated>2018-01-08T21:24:45.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*hNSyyod6t4mhMZjlWm7_uA.png" /></figure><p>How did this happen? What happened in the 1970’s to impoverish working people? I suspect the following</p><p>The role of politicians and governments in general is to get as many resources as possible without people realizing what they are doing.</p><p>Some of the tools politicians use are:</p><ol><li>Inflation and devaluation of currency</li><li>Fiat money supply, creating or printing money not part of economic growth, which fuels inflation</li><li>Reasons to spend more tax money, social welfare systems including so called free health and education</li><li>Collusive between government and business in massive tax evasion and the creation of economic slavery in less developed countries</li></ol><p>Graph of US government growth from 1940 to 2007</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*IrwX8PdG0doZKsYGqrLpjA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76c412e82ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django Rest Framework with Vuejs/Axios]]></title>
            <link>https://medium.com/@peterretief/django-rest-framework-with-vuejs-axios-5ff2afc608c?source=rss-3550682b5484------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff2afc608c</guid>
            <category><![CDATA[django]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[axios]]></category>
            <dc:creator><![CDATA[Peter Retief]]></dc:creator>
            <pubDate>Thu, 16 Nov 2017 15:38:37 GMT</pubDate>
            <atom:updated>2018-01-18T06:20:34.517Z</atom:updated>
            <content:encoded><![CDATA[<p>In simple steps with a view to creating a boilerplate</p><p>Assuming Python3 on Debian stretch or similar</p><p>Run django use ./manage.py runserver` Vuejs use `npm run dev` from the source folders</p><p>I will release a full version to github including login, security and components WIP</p><p>1) Create 2 folders `Django` and `Vuejs`<br>2) cd into Django<br>3) `python3 -m venv myvenv`<br>4) `source myvenv/bin/activate`<br>5) `pip install django`<br>6) `django-admin startproject project_dir`<br>7) `cd project_dir/`<br>8) `./manage.py startapp yourapp_app`<br>9) `./manage.py migrate`<br>10) `pip install djangorestframework`<br>11) `pip install markdown`<br>12) `pip install django-filter`<br>13) edit `./project_dir/urls.py` replace the content with</p><pre>from django.conf.urls import url, include<br>from django.contrib.auth.models import User<br>from rest_framework import routers, serializers, viewsets<br>class UserSerializer(serializers.HyperlinkedModelSerializer):<br> class Meta:<br> model = User<br> fields = (‘url’, ‘username’, ‘email’, ‘is_staff’)<br>class UserViewSet(viewsets.ModelViewSet):<br> queryset = User.objects.all()<br> serializer_class = UserSerializer<br>router = routers.DefaultRouter()<br>router.register(r’users’, UserViewSet)<br>urlpatterns = [<br> url(https://medium.com/r%E2%80%99%5E%E2%80%99,%20include(router.urls)),<br> url(https://medium.com/r%E2%80%99%5Eapi-auth/%E2%80%99,%20include(%E2%80%98rest_framework.urls%E2%80%99,%20namespace=%E2%80%99rest_framework%E2%80%99))<br>]</pre><p>14) `./manage.py createsuperuser` and follow instructions<br>15) `pip install django-cors-headers`<br>16) edit `./project_dir/settings.py` copy and paste below</p><pre>import os<br>BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))<br>SECRET_KEY = ‘*!ag9g!%ai_h6ev9w%0cbt879v7t2==me&amp;t+ryz!6!$_hl7&amp;oi’<br>DEBUG = True<br>ALLOWED_HOSTS = [‘*’]<br>REST_FRAMEWORK = {<br> ‘DEFAULT_PERMISSION_CLASSES’: [<br> ‘rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly’<br> ]<br>}<br>CORS_ORIGIN_WHITELIST = (<br> ‘localhost:8080’,<br>)<br>INSTALLED_APPS = [<br> ‘django.contrib.admin’,<br> ‘django.contrib.auth’,<br> ‘django.contrib.contenttypes’,<br> ‘django.contrib.sessions’,<br> ‘django.contrib.messages’,<br> ‘django.contrib.staticfiles’,<br> ‘rest_framework’,<br> ‘corsheaders’,<br>]<br>MIDDLEWARE = [<br> ‘django.middleware.security.SecurityMiddleware’,<br> ‘django.contrib.sessions.middleware.SessionMiddleware’,<br> ‘corsheaders.middleware.CorsMiddleware’,<br> ‘django.middleware.common.CommonMiddleware’,<br> ‘django.middleware.csrf.CsrfViewMiddleware’,<br> ‘django.contrib.auth.middleware.AuthenticationMiddleware’,<br> ‘django.contrib.messages.middleware.MessageMiddleware’,<br> ‘django.middleware.clickjacking.XFrameOptionsMiddleware’,<br>]<br>ROOT_URLCONF = ‘project_dir.urls’<br>TEMPLATES = [<br> {<br> ‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’,<br> ‘DIRS’: [],<br> ‘APP_DIRS’: True,<br> ‘OPTIONS’: {<br> ‘context_processors’: [<br> ‘django.template.context_processors.debug’,<br> ‘django.template.context_processors.request’,<br> ‘django.contrib.auth.context_processors.auth’,<br> ‘django.contrib.messages.context_processors.messages’,<br> ],<br> },<br> },<br>]<br>WSGI_APPLICATION = ‘project_dir.wsgi.application’<br>DATABASES = {<br> ‘default’: {<br> ‘ENGINE’: ‘django.db.backends.sqlite3’,<br> ‘NAME’: os.path.join(BASE_DIR, ‘db.sqlite3’),<br> }<br>}<br>AUTH_PASSWORD_VALIDATORS = [<br> {<br> ‘NAME’: ‘django.contrib.auth.password_validation.UserAttributeSimilarityValidator’,<br> },<br> {<br> ‘NAME’: ‘django.contrib.auth.password_validation.MinimumLengthValidator’,<br> },<br> {<br> ‘NAME’: ‘django.contrib.auth.password_validation.CommonPasswordValidator’,<br> },<br> {<br> ‘NAME’: ‘django.contrib.auth.password_validation.NumericPasswordValidator’,<br> },<br>]<br>LANGUAGE_CODE = ‘en-us’<br>TIME_ZONE = ‘UTC’<br>USE_I18N = True<br>USE_L10N = True<br>USE_TZ = True<br>STATIC_URL = ‘/static/’</pre><p>Assuming recent version of nodejs installed<br>17) `cd ../../Vuejs`<br>18) `npm install -g vue-cli`<br>19) `vue init webpack-simple myproject`<br>20) `cd myproject`<br>21) `npm install`<br>22) `npm run dev`<br>23) You should see the welcome page in the browser<br>24) `npm install — save axios`<br>25) Replace everything in `src/App.vue` with the following</p><pre>&lt;template&gt;<br>&lt;div&gt;<br>&lt;button type=”button” name=”button” <a href="http://twitter.com/click">@click</a>=’getUsers’&gt;get users&lt;/button&gt;<br>&lt;table&gt;<br> &lt;th&gt;url&lt;/th&gt;<br> &lt;th&gt;email&lt;/th&gt;<br> &lt;th&gt;staff&lt;/th&gt;<br> &lt;tbody&gt;<br> &lt;tr v-for=”elem in users” :key=”elem.key”&gt;<br> &lt;td&gt;&lt;a :href=”elem.url”&gt;{{elem.username}}&lt;/a&gt;&lt;/td&gt;<br> &lt;td&gt;{{elem.email}}&lt;/td&gt;<br> &lt;td&gt;{{elem.is_staff}}&lt;/td&gt;<br> &lt;/tr&gt;<br> &lt;/tbody&gt;<br>&lt;/table&gt;<br>&lt;/div&gt;<br>&lt;/template&gt;<br>&lt;script&gt;<br>import axios from ‘axios’<br>export default {<br> data () {<br> return {<br> users: []<br> }<br> },<br> methods: {<br> getUsers() {<br> axios.get(‘<a href="http://127.0.0.1:8000/users/&#39;">http://127.0.0.1:8000/users/’</a>)<br> .then(res =&gt; this.users=res.data)<br> .catch(error =&gt; console.log(error))<br> }<br> }<br>}<br>&lt;/script&gt;<br>&lt;style lang=”scss”&gt;<br>&lt;/style&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff2afc608c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open source, education and success]]></title>
            <link>https://medium.com/@peterretief/open-source-education-and-success-b00b553b464d?source=rss-3550682b5484------2</link>
            <guid isPermaLink="false">https://medium.com/p/b00b553b464d</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Peter Retief]]></dc:creator>
            <pubDate>Fri, 28 Jul 2017 09:27:43 GMT</pubDate>
            <atom:updated>2017-07-28T09:27:43.293Z</atom:updated>
            <content:encoded><![CDATA[<p>The concept of an open society of tolerance and sharing of resources is possibly a utopian dream, however, the shortest way isn’t always the best way and there could be solutions we have never considered.</p><p>Open source software is one of the beacons of sharing in an industry that is notoriously cut-throat. What can we learn from its success? Well we have Linux that has achieved wide success, dominating the server and smart phone industries, vendors leveraged horizontal benefits from a stable, well known operating system that allowed them to get to market very quickly without the costs of developing and maintaining the vertical system. How do we continue from here? The concept of a shared vertical system is powerful, let see what it could mean for education.</p><p>The raspberry pi (RPI) is a hardware system designed for education, it supports Linux and more recently Windows 10 hosted on a SDCard, using an ARM processors and selling for around 35 USD. The obvious benefits from using an open source operating system is that people can learn about compiling their own kernel and how the “user space” fits with the “machine space”. This is not just interesting it is vital to understand what is happening on this level. Sadly the RPI is not open source on the actual chip set so we have a break in the vertical system. Some people would say this is no big deal but I say it is a problem. From education one hopes for gainful employment and contribute to the economy in some way, so lets look at success.</p><p>The next step in open source is hardware, it has started and there are small steps in making chip sets, it is not easy and would be very expensive with cross patents making it all but impossible to create a modern CPU. <em>This is the break in the vertical system. </em>The<em> </em>birth of the desktop manufacturer could be the answer, the more eyes we have on a problem the easier it is to solve and it could be a complete disruption of current thinking, for instance, what if a 3D printer used dissolved metals and minerals in sea water? So this could be more than technology, what about vertical systems in sociology, health, science or housing?</p><p>How do we share success? Make our society fairer? I would certainly make a case for vertical systems being free and open</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b00b553b464d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stop using shampoo]]></title>
            <link>https://medium.com/@peterretief/how-to-stop-using-shampoo-203a5a5116fe?source=rss-3550682b5484------2</link>
            <guid isPermaLink="false">https://medium.com/p/203a5a5116fe</guid>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[Peter Retief]]></dc:creator>
            <pubDate>Mon, 02 May 2016 13:12:06 GMT</pubDate>
            <atom:updated>2016-05-02T13:12:06.719Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been given a lot of hair on my head, when it grows long it gets difficult to manage</p><p>For the last year I have stopped using shampoo and soap for that matter, one would imagine my hair would have become matted and greasy but this did not happen. I continued to wash my hair with clean water and its condition has been better than it ever was using shampoo.</p><p>So how did I do it? Quit shampoo. You just stop using it, you can use a diluted solution of vinegar to dislodge any grease and comb out anything that may have settled. Dilution ideally is about 1 in 5 vinegar to water. You should also wash other hairy areas with this solution. The process of using vinegar can be done once a month or weekly depending on your environment. The rest of the time just a rinse and comb is enough. Any vinegar is good, cider vinegar has a nice apple smell and you could look at infusing lavender or rosemary. Be creative</p><p>So, good for your hair, good for the environment and might even save you a little money</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=203a5a5116fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>