More Vector Functions. The Damned Matrix Class.

Simon made another attempt to conquer vector functions, now in JavaScript (in Atom) and got stuck once he reached the Matrix Class, again. He had already tried this in Java, … Continue reading More Vector Functions. The Damned Matrix Class.

Simon gets serious with Linear Regression (Machine Learning)

Simon has been working on a very complicated topic for the past couple of days: Linear Regression. In essence, it is the math behind machine learning. Simon was watching Daniel … Continue reading Simon gets serious with Linear Regression (Machine Learning)

Simon explains Linear Regression (Machine Learning)

In the two videos below Simon writes a JavaScript program using Linear Regression in Atom and gives a whiteboard lecture on the Linear Regression algorithm, both following a tutorial on … Continue reading Simon explains Linear Regression (Machine Learning)

Translating Car On Terrain project from Phaser.io into Processing

Today Simon spent hours translating this Car On Terrain project from Phaser.io (where it appears in JavaScript) into Processing (Java). He loved doing it in a form of a lesson for … Continue reading Translating Car On Terrain project from Phaser.io into Processing

Translating Bit Invader from Codea into JavaScript

Simon tried to reconstruct Bit Invader game (from Codea.io) in JavaScript, but got stuck at a certain point when he was programming the enemy to recognize the hero and the … Continue reading Translating Bit Invader from Codea into JavaScript

Diffusion-Limited Aggregation translated into Codea

Simon translated Daniel Shiffman’s Diffusion-limited Aggregation Coding Challenge into Codea. The coding challenge explores the generative algorithm “Diffusion-Limited Aggregation”, whose visual pattern is generated from random walkers clustering around a … Continue reading Diffusion-Limited Aggregation translated into Codea

Error with Genetic Algorithm. What is wrong?

Simon was almost done translating Smart Rockets example no. 2 (Smart Rockets Superbasic) from Daniel Shiffman’s The Nature of Code, from Processing (Java) into JavaScript in Cloud9, when he got … Continue reading Error with Genetic Algorithm. What is wrong?

Drawing Object Trails in Processing

Simon’s translation of the Drawing Object Trails p5.js tutorial into Processing. In the tutorial, Daniel Shiffman looked at how an object can store a history of positions thus allowing to render the object’s … Continue reading Drawing Object Trails in Processing

Minimum Spanning Tree in Processing

Simon’s version of Daniel Shiffman’s Minimum Spanning Tree tutorial: Simon translated it from JavaScript into Processing (Java), “a much more complex project than the circles with no overlap!” A minimum spanning … Continue reading Minimum Spanning Tree in Processing