Category Archives: Engineering

From tests to specifications (and everything in between)

I came to a really neat realisation a little time ago that when using test-drive development (TDD), the testing of your software defines the specification of your software. This may be obvious but it really highlights the fundamental difference in … Continue reading

Posted in Engineering, Programming | Leave a comment

Squishing Matlab mex files into Octave

Common wisdom says that the mex files that Matlab builds are good for Matlab, and Matlab only. Not having trivial access to an installation of Matlab and needing to access the very neat and useful Field II package, this was … Continue reading

Posted in Engineering, Programming | 17 Comments

Speedy fast 1D convolution with SSE

I’ve done a bit of coding in the past with SSE instructions and achieved quite a significant speedup. I’ve also been playing recently with OpenCL as a means of implementing a fast, cross-device version of the Dual-Tree Complex Wavelet Transform … Continue reading

Posted in Engineering, Programming | 3 Comments

Science in policy, an engineer’s take

I went to a talk on Thursday evening hosted by CSaP. It was Mark Henderson talking about his new book, The Geek Manifesto. The talk was interesting and Mark had lots of good points to make about science in government … Continue reading

Posted in Engineering, Life | 5 Comments

The Wisdom of FFTW

Since the last post on my python wrappers for FFTW, I’ve advanced the code substantially. It now supports all the basic transforms using the same unified pythonic interface in which the transform is inferred from the dtype. In addition, I’ve … Continue reading

Posted in Engineering, Programming | 12 Comments

The joys of Cython, Numpy, and a nice FFTW api

This is about my new FFTW python wrapper. The FFT routines shipped with Numpy are rather slow and have been the performance bottleneck in my code for some time. Last week I decided I needed to move to FFTW for … Continue reading

Posted in Engineering, Programming | Tagged , , , , , | 45 Comments

How to peel a beetroot

After you’ve roasted it in foil for an hour, stick a fork in one end, hold it vertically up, and scrape it downwards with a teaspoon.

Posted in Engineering, Food, Life | Leave a comment