Stripe CTF 3.0

Sadly, level 3 would not run for me, even with Stripe’s patch, so I could not continue with the competition. It was fun while it lasted though – C Wednesday saw the beginning of another Stripe CTF! This time I was in London when it started so I went to the launch meeting with some […]

A Fractal Height Map Generator in Ruby

[I’m migrating my old articles to the blog in order to switch to it entirely] Date: 25th March 2010 Introduction This article describes the theory behind, and how to implement, a basic fractal height map generator. It is based upon the algorithm defined at Height maps are used in many things: positioning software, graphical […]

Fountain code – solution

The solution to the Fountain code challenge is up on my Github page at . Thank to all who attempted the challenge! C

Ruby gem – json_serialisable

I was working on a ruby project and stumbed upon my first valid application of metaprogramming. I was creating json serialisation methods and realised they were all practically identical. So I looked at how attr_accessor worked and then wrote my own class method called attr_serialisable. This method generated serialisation methods automatically. Example Given a class […]

Programming languages course

So I ran a talk on learning programming languages last week. It was the second time I had done that particular talk, and in this case the hardware setup went smoothly – as it was done by Stephen Wattam the CSLU VP. We had a pretty good turn out, mostly of year year undergraduate students […]

Rain – Agent-based water

Well I’ve been wanting to do this for a while now, and on Sunday with a freshly installed (and therefore speedy) net book under my belt, I thought I’d have a crack at it. Last year (maybe even 2 years now) ago, I made a weak plasmoid generator with the intention of using it for […]

Rails 3 and lighttpd

This was performed on Archlinux with lighttpd 1.4.28 and rails 3.0.3 Prerequisites Required packages: lighttpd, fcgi, ruby, and their dependencies…   Ruby Setup Required gems: fcgi, bundler (if you are behind a proxy, the magic gem command is : # gem install GEM -r -p “http://[PROXY_URL]:[PROXY_PORT]” ) Once you have that you need to create […]

Battery Monitor – rbatmon

I use a rather spartan windowing manager called awesome in all of my machines. This has been a fine setup until I used it on my netbook due to one small issue, battery monitors. On my desktop machines and the laptop I use gkrellm to monitor cpu and memory and for the laptop it has […]

Ruby and Watir: Sending keyboard events to an element

Ok, so you need to send certain keyboard events to an element to properly test a webpage, but stuck how to do it? Ive looked at some tutorials on the web, but there doesn’t seem a simple solution. However, I have been experimenting, and this method seems to work fine. # First off create your […]