Scraped from

With AWS Lambda functions, 100 GB will only cost you $9

Probably the hardest thing about Data Science is getting hold of the data. Companies are willing to give away “free” services in return for the data they collect on how you use them, and this gives them an edge over their competitors. It is not surprising then, that they don’t take too kindly to people relentlessly scraping data from their websites and employ a number of sophisticated detection algorithms to deny requests that come from the same IP address, are too similar or simply look fishy. While it is immoral (and sometimes illegal) to download unreasonable amounts of data, without…

Run inference with Tensorflow Lite on iOS, Android, MacOS, Windows and Linux using Python

Image by Author


Scroll down for Python code to run inference with Tensorflow Lite that works on Android, iOS, Windows, MacOS and Linux.

Why insist on using Python?

Python is a fantastic ecosystem. There are so many high quality open source libraries available that help you quickly build quite complex projects that just work. This no doubt contributes to Python’s popularity as a Deep Learning framework. Crucially, pip (or pipenv) handles the dependencies for you so that you avoid descending into version hell. This makes Python great for prototyping, but getting to a polished product that is easy to use can sometimes be more work than all the…

How to automatically identify your MP3s and upload them to a Spotify playlist using Python.

If, like me, you have a large library of MP3s that you have collected over the years, you might want to have them available on the music streaming service of your choice, so that you don’t have to lug them around everywhere with you. In this article, we are going to focus on Spotify, but it should be possible to do something similar with YouTube and Deezer.

We are going to use the music recognition service provided by ACRCloud and the Spotify Developer API. To begin with, you will need to register with these and obtain your credentials.

Get your credentials from ACRCloud

Sign up…

Google has built some nice features in Colab. Now you can benefit from some of these in Jupyter Notebook.

It’s errors all the way down

When programming in Python, it can be quite overwhelming when you hit an error deep down in a stack of nested function calls. One of the advantages of Python is that it has an enormous amount of high quality libraries available and for which the source code is readily available. Sometimes, it is useful just to be able to dig in to it in order to be able to understand what is going on.

To help you do just this, Google Colab automatically displays clickable links to the source files in the stack trace, as well as a handy button…

Photo by author

Find similar sounding music by artists you may never have heard of before

UPDATE: Try it out for yourself here, here

or here:

As a DJ, the question I hate most after “Have you got anything by [insert totally inappropriate artist here]?” is “What kind of music do you listen to?”. In my opinion, as soon as you put music in a genre box, it becomes constrained by its limits. But how to share and organise music if not by putting labels on it?

Spotify has the ability to create a playlist (or “radio station”) based on a particular track. It is very good at selecting music by similar artists, but, inevitably, it tends to play music you are probably…

Photo: Dr Zoltan

Is it a coincidence that we are living in times of revolution? Revolution in the sense of paradigm shifts. Revolution in the sense of changing how we do things rather than what we do. Revolution in the sense of cultural and attitudinal change.

Maybe we have got as far as it is possible to get with the reductionist approach of breaking problems into sub-problems for which we then look for a solution. This naturally leads to specialisation, meticulous planning and measurement, which, for well known and well defined problems, has shown to be very effective. …

Even if we don’t have a problem with his attitude, does it make sense to aspire to be the next Steve Jobs?

At a work Christmas party a number of years ago (in those heady days when such things existed) we were all generously given 100 euros of Monopoly money to bet on the Roulette tables at the Casino. The person who won the most amount of Monopoly money won a real prize — a brand new PlayStation 3. I quickly realized that the person who won the most money would most probably have gained his loot by putting all his chips on the one number that happened to come up, rather than sensibly hedging his bets. Although it wasn’t very…

Robert Dargavel Smith

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store