How to set environment variables for your Python application from PyCharm

The Twelve-Factor App methodology recommends storing configurations in the environment.

When you follow this methodology and want to run your Python application from PyCharm, you need to create a customised run configuration.

In case you need it, this post shows how to set environment variables for your Python application from PyCharm.

How to associate a virtual environment with a Python project in PyCharm

When it comes to Python development, PyCharm is my favourite IDE.

Before working on a new Python project, I like to create a virtual environment and associate it with the corresponding PyCharm project. In case you like this mode of operation, this is how you can associate a virtual environment with a Python project in PyCharm.

How I use my Raspberry Pis to help me work on with my side projects

Undeniably, Raspberry Pi has revolutionised the way we use computing technology in our lives. In addition to being energy efficient, a Raspberry Pi is a single board computer that does not take up too much space.

Given these points, a Raspberry Pi is an ideal programmer gift and one of the things that you should buy if you are a computer programmer.

On the other hand, pursuing side projects help me explore technologies that I may not be able to explore at work. For example, through Techcoil, I got to know more about:

In case you are wondering how to use Raspberry Pis to help you work on your side projects, read on to find out more.

Why buy Synology DS418 NAS?

Since my adoption of digital imaging and other content creation, I had gathered huge amount of digital artefacts in my laptop. Finally, there came a day when my data was going to outgrow the hard disk on my laptop. Hence, I took the decision to invest in a Synology DS418 NAS to help me keep my data.

In case you are deciding whether to buy a Synology DS418 NAS, here are some reasons why I bought the Synology DS418 NAS.

Helpful GPIO Pinout resources that you can reference while connecting sensors to your Raspberry Pi 3

Undeniably, the GPIO (general-purpose input/output) pins along the top edge of your Raspberry Pi 3 board is what makes it so useful for IOT projects. In case you are curious, this is how the GPIO pins looks like on a Raspberry Pi 3 B+:

GPIO pins of a Raspberry Pi 3 B+

Although there is the word GPIO on the circuit board that indicates what those pins are, there is no indication on what each individual pin does.

So how do you know which pins to connect your sensors to? Thankfully, there are several good resources that you can reference while connecting sensors to your Raspberry Pi 3 board.

In case you need it, here are some helpful GPIO resources that you can reference when you are connecting sensors to your Raspberry Pi 3 board.

Getting started with an Nvidia Jetson TX2 developer kit

When we have the right amount of data, machine learning enables us to use them for building a model that can provide answers for future questions.

Compared to CPUs, a GPU is better suited for us to build that model. This is because a GPU is very good at performing much more computations in parallel.

Although you can build your own GPU rig for machine learning, an Nvidia Jetson TX2 developer kit is easier to setup and more energy efficient. Therefore, I got myself a Nvidia Jetson TX2 developer kit to ride on the machine learning bandwagon.

In case you are wondering what is in the box and how to get started with an Nvidia Jetson TX2 developer kit, read on to find out more.

How to read temperature and humidity from a DHT11 sensor that is connected to a Raspberry Pi 3

I had always wanted to measure the temperature and humidity of the environment where my herbs are grown at.

Since I had a few pieces of Raspberry Pi 3 lying around the house, I decided to use one of them to measure the temperature and humidity of the area of the house where my herbs are.

An additional sensor is required to measure the temperature and humidity of the environment. Therefore, I went to AliExpress and got a DHT11 sensor. By connecting a DHT11 sensor to my Raspberry Pi 3, I can give it the ability to read the temperature and humidity of its environment.

Given these points, I created this post to show how to read temperature and humidity from a DHT11 sensor that is connected to a Raspberry Pi 3.

In order for us to check the temperature and humidity from the DHT11 sensor, we will build a simple Flask application that returns the temperature and humidity values as HTTP responses to HTTP clients.

Building a Raspberry Pi 3 prototype camera that takes a picture at the press of a button

A fun way to test your Raspberry Pi Camera on your Raspberry Pi 3 is to build a prototype that takes a picture at the press of a button. Through such an activity, we will be able to experience:

  • connecting a button to the GPIO ports on a Raspberry Pi.
  • setting up a camera through the CSI interface of a Raspberry Pi.
  • preparing an operating system, such as Raspbian Stretch Lite , for running Raspberry Pi projects.
  • coding a Python 3 script that interacts with the GPIO port and camera on a Raspberry Pi.
  • running a Python 3 script when Raspberry Pi powers on.

Given these points, this post shows how you can build a Raspberry Pi 3 prototype camera that takes a picture at the press of a button.

How to enable Raspberry Pi camera on Raspbian Stretch Lite

Previously, I had written two posts on how you can connect the Raspberry Pi Camera Module to Raspberry Pi 2/3 and Raspberry Pi Zero W:

When you install Raspbian Stretch Lite on your Raspberry Pi, you will need to enable the Raspberry Pi camera before you can use it.

In case you need a reference, this post will show you how to enable Raspberry Pi camera on Raspbian Stretch Lite.