LD

Blog posts

  1. Clever Image Resizing In Python

    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 image. Now some people will note that that’s […]
    Read more
  2. Raspberry Pi & Ultrasonic Module – Calculating Distance in C

    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 need to download and install […]
    Read more
  3. Solving 2048 Using A* Search

    ne 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, she still managed […]
    Read more