Author:

Using ARIMA and Box-Jenkins methodology for time series forecast - Part 1
PYTHON

Using ARIMA and Box-Jenkins methodology for time series forecast - Part 1

The Box-Jenkins method, named after George Box and Gwilym Jenkins, is an approach used in time series analysis to find the best fit of a time-series model to past values of a time-series applying Autoregressive Moving Average (ARMA) and Autoregressive Integrated Moving Average (ARIMA). Approach The approach has been referred

davide
ThreeJS rotating icosahedron with images on vertices
JAVASCRIPT

ThreeJS rotating icosahedron with images on vertices

Simple clone of the Stripe element @ https://stripe.com/radar I had some fun replicating the rotating icosahedron of the Stripe page, and in the end, it came out pretty good. I know that on Stripe they have created their own solid using Cinema 4d. <!DOCTYPE html> <

davide
Principal Component Analysis
PYTHON

Principal Component Analysis

PCA is an algorithm used to find the principal component of data. Principal components are the directions where there is the most variance, the directions where the data is most spread out. Eigenvectors and Eigenvalues On a set of data, we can deconstruct the set into eigenvectors and eigenvalues. Every

davide
Charge Stripe Processing Fee to the user
JAVASCRIPT

Charge Stripe Processing Fee to the user

Following is how I've implemented the possibility to charge the stripe fee onto the user. Unfortunately, Stripe does not offer any API endpoint to get the stripe fees for a specified country so I had to do it manually. It is not perfect nor elegant but it works.

davide
Change Swap size on a running linux machine
LINUX

Change Swap size on a running linux machine

Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap /swapfile Make swapon again sudo swapon /swapfile

davide
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
CODING

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
ESC
// awaiting input_