Bede Kelly
  • home
Bede Kelly

Bede Kelly

' or 2=2; drop table *; --

England •
70 posts •
Bewitching the Coding Interview

Bewitching the Coding Interview

A spoof. With thanks (and apologies) to Aphyr. The interviewer greets you as you step into the bright, open workspace. Sunlight streams onto his rugged, handsome face as he introduces himself. “Kris”, he

  • Bede Kelly
    Bede Kelly
4 min read
How to Render a Fractal, Fast

How to Render a Fractal, Fast

Recently I've been working on a project I've called Brot, after the Mandelbrot set. It started out as a simple image renderer, but soon blossomed into a full-scale video zoom renderer: The code

  • Bede Kelly
    Bede Kelly
5 min read

$1.20: A Serverless Spending Tracker

Since moving to London, I've built a handful of tools to help me keep on top of my finances. They're not finished, or even particularly polished, but they're incredibly handy! Partly as a

  • Bede Kelly
    Bede Kelly
3 min read

Profiling Hashtables in C

Hashtables are a neat way of storing (key, value) pairs with fast lookup, insertion and deletion times. I've written a simple implementation of a hashtable with a view to making an extremely easy-to-understand

  • Bede Kelly
    Bede Kelly
3 min read

Google Cloud Functions

In the spirit of fairness, since I've spent so much time using AWS Lambda functions, I thought I'd give Google's latest offering a try. However, following the instructions to create a simple cloud

  • Bede Kelly
    Bede Kelly
3 min read

Preprocessor Polymorphism

The preprocessor included with C compilers is a strange beast. By far its most common use is to #include various header files, and to #define static variables for later use. But there's other,

  • Bede Kelly
    Bede Kelly
1 min read

Swing in Seven

Swing can make or break a track. Have a listen to this clip of a drum beat without any swing: Sounds kinda lame, right? Let's ignore the sounds for a second and concentrate

  • Bede Kelly
    Bede Kelly
4 min read

Build Your Own Enum!

After programming in Java for altogether too long, I've developed a healthy appetite for the humble Enum. There's a problem, though: Python's enum is ugly. Ugly as hell: class Something(Enum): x = 1

  • Bede Kelly
    Bede Kelly
4 min read

DockerBox

I've had an idea brewing for a while. I'd like to be able to use a single command, available on any device with SSH, to load a fresh image of any operating system

  • Bede Kelly
    Bede Kelly
2 min read

Side Project: Text Game

So I've finally got around to making a text game! Sort of. Instead of running in a text-based environment like a console and accepting English-language commands as input, I made the decision to

  • Bede Kelly
    Bede Kelly
2 min read

Goroutines and Concurrency

I recently watched Rob Pike's talk on Concurrency Patterns in Go, and was really impressed by how easy it was to make solid concurrent code without relying on threads, mutexes/locks or anything

  • Bede Kelly
    Bede Kelly
2 min read

AWS and Dash, Amazon buddies forever!

Amazon don't sell their IoT Button in the UK. But that didn't stop Aran and I from making a pretty sweet hack over the weekend... ...and winning Best Use of AWS, at my

  • Bede Kelly
    Bede Kelly
2 min read

Google's Open Vulnerability

N.B. This has now been fixed! Good job. However long it took. I found a Google vulnerability today. And I got hyped. Really hyped. Except, as it turns out, not all vulnerabilities

  • Bede Kelly
    Bede Kelly
1 min read

Hacking the Dash Button

I got an Amazon Dash button in the post today! And nope, I don't have a Nerf gun -- I'm just grabbing the button because it's super-hackable. I got the Nerf one because,

  • Bede Kelly
    Bede Kelly
3 min read

S3 (Serverless 3, not the other thing)

Before I kick off, here's what I'm most proud of right now: If that looks too horrific, here's the same info from Postman: And if that's too much... this might not be the

  • Bede Kelly
    Bede Kelly
4 min read

HackCampus -- Application Process

So it all started when Josh Simpson gave a talk at BrumHack 2.0... ...and then, a couple of months later, when I remembered the talk, and decided to apply to HackCampus through

  • Bede Kelly
    Bede Kelly
2 min read

Chord Progression #1

Here's a sweet chord progression I just found: The root chords aren't anything too fancy: just I -> VII -> VI. But the voicings are pretty neat: Left: A E G,

  • Bede Kelly
    Bede Kelly
1 min read

Serverless 2: Who Needs S3 Anyway?

It turns out Travis CI supports deploying directly to AWS Lambda: something I should have checked before doing any of the messy configuration with specifying IAM user policies for accessing an S3 bucket

  • Bede Kelly
    Bede Kelly
2 min read

Serverless: Going Full-On Hipster

Who needs servers anyway? I've been wanting to try out AWS Lambda and API Gateway for a while now, so I thought it'd be a neat idea to write a tiny, not-even-slightly-useful microservice.

  • Bede Kelly
    Bede Kelly
3 min read

Buzzwords and friends.

In my continuing quest to be a jack of some CS-related trades and a master of absolutely zilch, I've decided to learn about some buzzword-y tech for deployment and packaging. First of all,

  • Bede Kelly
    Bede Kelly
5 min read

Classy? Functional? You decide.

Anyone who's met me for more than a few seconds knows I'm a big fan of Python, warts and all. It's not the fastest language for performance-sensitive code, but I think it's one

  • Bede Kelly
    Bede Kelly
2 min read

Graceful Partial Functions in Python

Functions as they are in Python are great, but there's one small glitch: unlike in Haskell/Ocaml/F#, they're not "curried" automatically when we don't pass enough arguments to them. Say

  • Bede Kelly
    Bede Kelly
2 min read

Who Needs Root Anyway?

I've got a rooted Sony Xperia Z5. It's a relatively new phone, with a bunch of great features: I still love the fingerprint sensor, and the camera blows my mind every shot. Check

  • Bede Kelly
    Bede Kelly
2 min read

FL Studio: Multiple MIDI Assignment

I have a couple of keyboard controllers (Panorama P4, Yamaha P35) and a mini drumpad (Korg Nanopad2), and today I wanted to map each controller to different instruments in FL Studio for a

  • Bede Kelly
    Bede Kelly
2 min read

Usage code first: The right way to design APIs?

It's common advice, at least for those not sticking to TDD: "write usage code first". In other words, before you write an API, work out how you're going to use it.

  • Bede Kelly
    Bede Kelly
1 min read
Bede Kelly © 2023
Latest Posts Ghost