Image for post
Image for post
Photo by Jainath Ponnala on Unsplash

I run Docker for everything in the Raspberry PI, so I wanted to be able to access the PI camera inside Docker. Not as straightforward as I thought, so to help anyone who might want to do the same, I am documenting all the steps that I had to follow to get the PI Camera to work inside Docker in the Raspberry PI.

Setting up Rsync

In order to copy any code changes from my Macbook PRO directly into the Raspberry PI, I set up a Rsync job. I do this to make sure that I can develop as efficiently as possible.


Image for post
Image for post

My 2020 late new year resolution is to build a wildlife camera with a Raspberry PI, Python, a PI camera, Tensorflow, OpenCV, and who knows what else. It is going to be an awesome camera!

But first I have to set up a development environment to work with.


Image for post
Image for post

I am a great believer that for you to learn, you need to create. And to create you need to have fun!

First I want to give you a background on why I am trying to build a wildlife camera with a Raspberry Pi.

I live in London and my garden gets visited often by local wildlife. It is so often, that as an avid gardener I get a bit annoyed. Broken plant pots, plants dug out, missing plants, missing fruits...

In my garden, I have seen small foxes, the cutest foxes that you could ever see, big foxes, cats(not mine), and birds. …


Image for post
Image for post
Photo by ZMorph Multitool 3D Printer

I recently recorded a four-part video series for my Youtube channel on how I attempted to create a 3D model out of a photo, using Python, Numpy, and Google Colab.

For this programming, I relied on the Numpy STL library which can create 3D models using “simple” Numpy arrays.

Why I did it

I am a 3D Printing enthusiast so I set myself a challenge to use this library to create a 3D model of a photo that, when printed in translucent white is called a Lithophane. There are a few tools available to do this without any coding. …


Image for post
Image for post
Photo by Petter Lagson on Unsplash

I recently set up a VPN with 2-Factor Authentication using the Community Edition of OpenVPN and using Google’s standard authenticator. I am writing this article to save you time and effort because this was not straightforward.

Most guides I found on the internet, if not all, talk about using a PAM plugin to extend OpenVPN with 2 Step Authentication. Not only is this plugin difficult to install because of Linux library dependencies, but most importantly it requires a real Unix user for each VPN account you need to setup. …


Image for post
Image for post
Photo by Thought Catalog on Unsplash

You are considering one of the biggest changes in your life. You want to become a software developer. Should you quit, your job and start learning straight away?

The answer to the question above depends a lot on your situation in life. But 99.99% of us shouldn’t quit our jobs just yet, and I will show you that you don’t need to, to succeed in becoming a software developer. At least not straight away.

Which leads us to my most important tip.

Tip 1 — Learning Software Development is a Marathon — not a race

The reason why I don’t encourage you to quit your job straight away is that becoming a Software Developer takes time and effort. …


Image for post
Image for post
Photo by Michael Dziedzic on Unsplash

Is it True or False that in Python or any other programming language Booleans are the most important thing you will learn?

If True:
then you must read this article to learn more about Booleans.

Else:
then leave immediately and read something else.

Let's debug the code above.

Premise) Booleans are the most important language constructs in Python or any other programming language.

In this article I am going to teach you about Booleans, the most important data type in Python or any other programming language.

It is so important that when you look into the detail of how information is stored on a computer it is mind-blowing! …


Image for post
Image for post
Photo by Ihor Dvoretskyi on Unsplash

This is a very practical tutorial. I am not going to dwell on why microservices are here to stay and why Kubernetes is a beast to set up. I am going to cut it straight to the core. You have come here for a solution to your problem, and I am going to give you one.

You are probably reading this article because your organisation is using or decided to use Kubernetes.

But you or your development team is complaining because it is hard to develop locally without wasting time with deployments(docker build, docker push, kubectl rollout, etc). What is meant to be a one-liner code change, takes several minutes to test??? …


Image for post
Image for post
Photo by Glenn Carstens-Peters on Unsplash

Lists are the single most used data structure in Python. It is crucial that you learn it well, as lists are used pretty much everywhere in Python programs that you will come across. If there is a topic in Python you will want to spend time on, List is the ONE

What is a list?

A list is a special data structure in Python that is used to store collections in a determined order. A list can change over time(mutable). Python lists are written using square brackets notation. Like everything else in Python, a list is an object.

How to create a list

Let’s look at some examples on how you can define a…


Are you looking to use p5.js with Gatsby JS? You have come to the right place. Here you will find the exact instructions to get you started. Also, consider watching my Youtube video where I create an example Gatsby JS application with p5.js

Install latest node.js for Mac

Follow this link for steps on how to install the latest version of Nodejs https://nodesource.com/blog/installing-nodejs-tutorial-mac-os-x/

Install Gatsby client

sudo npm install -g gatsby-cli

Create Gatsby project

Create new gatsby project using example app:

gatsby new gatsby-site https://github.com/gatsbyjs/gatsby-starter-hello-world

Start gatsby website in development mode

gatsby develop to run website in local development web server

gatsby developnpm install react-p5-wrapper - save
npm install @loadable/component
npm install p5

Created files in components directory

components/sketchSnowflakes.js

export default function SketchSnowflakes(p5) {
let snowflakes = []; // array to hold snowflake…

About

Armindo Cachada

Founding Director at Spltech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store