Tag: python

  • The Top 5 Hidden Features of Python

    The Top 5 Hidden Features of Python

    Python aims to be an elegant and expressive language; this post includes its top 5 hidden features: The term hidden is loosely used to indicate features which are generally unique to Python, or not very well known. I covered the most interesting Easter eggs which are really hidden in Python in this post.

  • Game Barcode: A Study of Colours in Games

    Game Barcode: A Study of Colours in Games

    This tutorial shows how to download videos from YouTube and to process their frames with Python; I have used this technique to create game barcode, an image created by sorting the colours in each frame of a particular video. You can see some of most intriguing here: This tutorial is divided in four parts:

  • Interactive Graphs in the Browser

    Interactive Graphs in the Browser

    Having worked both as a teacher and an artist, I know how important data visualisation is. This tutorial will teach you to create interactive network graphs with Python and JavaScript. You can have a go by dragging the nodes of the graph below… You can find a high resolution version of the melancoil tree (2000x2000px, first 1000 numbers)…

  • Recreational Maths in Python

    Recreational Maths in Python

    This post is for all the developers and mathematicians out there that are curious to explore and visualize the bizarre properties of numbers. Although Maths plays an important role in today’s technology, many people likes to abuse it for recreational purposes. Part of the appeal of Recreational Maths lies in the challenge to discover something new. Despite what many believe, finding mathematical patterns is very easy; it’s…

  • The incredibly challenging task of sorting colours

    The incredibly challenging task of sorting colours

    Let’s start with something trivial: sorting numbers. Regardless of the algorithm you’ll use, real numbers are naturally ordered. Mathematically speaking, they have a total order, in the sense that you can always decide if a number is greater than another one. There is no ambiguity in this, meaning you can actually sort them, and (excluding duplicates) this sort is unique. There are other fields…

  • How to DeepDream on Twitter: @DeepDreamThis

    How to DeepDream on Twitter: @DeepDreamThis

    This post will guide you to create your own deepdream on Twitter: and yes, it’s as easy as tweeting a picture to @DeepDreamThis. Deep dreams have flooded the Internet. I mean, literally flooded the Internet. Behind this bizarre filter lies one of the most advanced neural network developed by Google Research. There are several services online dedicated to the…

  • How to retrieve all the images from a website

    Few weeks ago I posted on Twitter few rather bizarre screenshots. A composition of all the submissions for #ScreenshotSaturday, loosely ordered by colour. In this series of posts I’ll briefly explain how I did that using Python. You can download the original pictures (16Mb, 71Mb, 40Mb, 13Mb) here.