React hooks and REST - canceling in hooks
February 6th 2020
Did you know you can cancel Ajax requests? You can, and if you are using React, you should! Avoiding updating unmounted state If you've worked with React and asynchronous processes you'll have seen the following error message in your dev console…
4 min read
Regexp - named groups FTW!
January 7th 2020
If you think regex is the solution to your problem, now you have two problems... Everybody loves regex, or they think they do... You dive into a sea of coding and emerge at the other side with some regex matches in your teeth - success! You lie on…
5 min read
Differential Privacy - Sharing Insights Privately, In Public
October 21st 2019
In a previous article I explained there is no such thing as anonymised data. If you don't want a privacy breach, don't release your dataset - in any form. As I explained, even statistical and demographic summaries of the data can be used in so-called…
9 min read
No such thing as anonymous data
October 1st 2019
New York City publicly released anonymised data of almost two million taxi rides - including fares and tips - in order to facilitate research into transport, traffic, and civic planning by independent researchers. However, they made a mistake - they…
6 min read
Face off : Three(.js)
September 23rd 2019
I've been interested in photogrammetry which involves lots of photos, but what is the least number of photos required? Well, it turns out that all you need is one photo. In this article I'll quickly run through how to generate a 3d mesh from a…
4 min read