Author:

Set up Python3 dev environment Ubuntu
python

Set up Python3 dev environment Ubuntu

Here is a script that I've used to set up a python environment on Ubuntu and raspbian #Update the system sudo apt-get update sudo apt-get -y upgrade #Install python and virtualenv sudo apt-get install build-essential libssl-dev libffi-dev python-dev python3-tk python3-venv python3-pip #Create env directory tree mkdir environments cd

davide

Mediatek watchface - pacman

This Christmas I received a mediatek smartwatch so after a couple of days, I've decided to mod it a bit, and I've started to learn how to create vxp watch faces. This is my first attempt: download pacman watchface

davide
First react app
javascript

First react app

So it's been two days that I'm trying to figure out how React works and how to use it for my projects. I have to admit that I don't like React and I prefer to work with frameworks like Angular or Ember. I know

davide
Linux - Freeing RAM without rebooting
linux

Linux - Freeing RAM without rebooting

Simple command to free RAM on linux without rebooting #!/bin/bash sync; echo 1 > /proc/sys/vm/drop_caches; echo 2 > /proc/sys/vm/drop_caches; echo 3 > /proc/sys/vm/drop_caches Save into a file and set executable permission. Run the file with root privileges.

davide
Image to Byte Array
arduino

Image to Byte Array

Here is a small fiddle that I've done to convert images to byte array. I use it to create icons for my projects with Arduino and similar. The code is a mess but the part that convert the image is pretty simple. Using the Canvas object I was

davide
Wemos D1 Mini Pinout
wemos

Wemos D1 Mini Pinout

The Wemos D1 mini is a really cool microcontroller. It costs only £5 and provides integrated WiFi bng connectivity and 13 digital I/O and 1 analog I/O. For those struggling in find the pinout scheme here it is

davide
Control flow with promises
javascript

Control flow with promises

Promises are very powerful and allow us to create really complex asynchronous data flows. When we want to execute tasks at the same time we can use Promise.all(), but if we want to execute tasks one after the other, we need to use a different solution. Here is an

davide
Camera tracking with NodeJS and Arduino

Camera tracking with NodeJS and Arduino

Lately I had some fun using the Arduino micro-controller with NodeJS. One of my last project is a camera mounted on a Pan&Tilt that can track colors and even faces. Materials * Arduino UNO * Mini breadboard * 2 servos * Pan & tilt frame * A webcam * A computer This is the

davide