lewisdale.dev

Posts Tagged "archive"

Using ES6 Generators

26/02/2015

I’ve been having fun using some newer technology recently - namely ECMAScript 6 Harmony (or at least the bits of it that Chrome supports). One particular feature which I’ve been using has made life quite a lot easier for me - ES6 now supports Generator...

Read more

Motion Sensitive Image Capturing In Python

28/07/2014

This is quite a nice little script that uses the PyGame library to access the computers webcam, and then takes a succession of photos, comparing percentage differences between the photos taken to determine whether or not any motion has occurred. If it...

Read more

Clever Image Resizing In Python

23/07/2014

In the not-too-distant past, I had a bit of trouble with a client who wanted to have images resized on the fly that were of a completely different aspect ratio - i.e. they wanted images that were orignally landscape to be square, with no skewing of the...

Read more

Raspberry Pi & Ultrasonic Module - Calculating Distance in C

23/05/2014

In this brief article I will be posting the C code I used to measure the distance between the Raspberry Pi and any object in front of the HC-SR04 module. I used this article to show me how to wire up the ultrasonic module using a breadboard. You will also...

Read more

Solving 2048 Using A* Search

23/05/2014

One of my recent projects has been to attempt to solve the game 2048 using A* Search - it all started from a bet with my girlfriend about who could get the highest score, and I decided I’d “cheat” and just get my computer to do it for me. It didn’t work,...

Read more