antonio ufano

Blog

Building a Blockchain with UI in Javascript

Published on 2018-07-09

Last week I decided I wanted to build a simple application to create and display what a Blockchain is and how its blocks are all linked to one another. First I created a couple of classes in Javascript to define the Blockchain itself and each of the blocks and then, I added the methods to initialise the chain, add new blocks and validate its contents. I had to import the crypto-js package to generate the hash of each block. Once the basic functionality was done and I was able to test it in the terminal with Node, I built a basic interface using Vue.js, creating one component for each JavaScript class. To compile all components into a single .js file I used Webpack 4. You can download all the code from the following repo. Find below some more details of how I did it. ... Read more


Learn Machine Learning? with no maths background?

Published on 2018-07-05

After thinking about it for a few weeks, reading some articles and viewing a couple of videos, I decided Machine Learning was something I wanted to learn. Some people don't realise that ML is already part of most the services and apps we use everyday, from searches in Google to recommendations in Amazon or Spotify, spam filters and image recognition (in Google Photos or in autonomous cars) to mention just a few.  ... Read more


Consuming your Laravel API with JavaScript

Published on 2018-05-03

In one of my recent projects I decided I wanted to build a completely new front end, going from multiple pages to a single page application built with Vue.js. My multi pages web app was using different controllers to handle different requests for each resource and, to be honest, was a little messy (duplicated code in different controllers, very similar methods that do similar actions...). Building a SPA meant that I'd have to create an API to handle all the requests so this was a perfect opportunity to do a cleanup and organise my controllers and methods. ... Read more


Schedule scripts/tasks with Cron

Published on 2018-06-16

In one of my last projects I had a requirement to run a small PHP script two days a week at a certain time. In other projects I solved this requirement using ControlM, but for this project that wasn't an option so I had to search for an alternative which, to my surprise, was pretty easy to use and learn, already included in my hosting server and also included in my personal laptop. In case you didn't know already, I'm talking about Cron. ... Read more


Vue.js and REST API coding quick tips

Published on 2018-04-08

I've spent the last couple of weeks building web applications using Laravel APIs in the back end and Vue.js in the front end. I really like this combination as with Laravel you can build APIs very quick, it manages user authentication from scratch and generates oauth tokens for API requests with Passport, which is included by default. ... Read more


coding laravel personal vue.js API machine learning blockchain javascript Node.js tooling linux

About me

My name is Antonio, I'm from Zamora (Spain) currently living in London and working as a freelance developer.
If you want to receive notifications of new articles from this web, and interesting articles and news I find online, enter your details below.
I'll never share your email with anyone else and promise I'll not spam you.