I am a researcher in solar energy at the University of Oxford. I am interested in mathematics, programming and trying to understand why things work. I also like the great outdoors and riding my bike.

## Efficient Matlab (I): pairwise distances

Originally posted on Machine Learning Rumination:
I want to share some tricks for making Matlab function more efficient and robust. I decide to write a series of blog posts. This is the first one of this series, in which I want to…

## Nim game

The other I was cutting the hedge and the smell of cut box reminded me of my late grandad. He was a pretty cool guy and inspired me a lot to study maths and physics, as he was always busy … Continue reading

## Unit testing destructors

I asked the excellent Kevlin Henney about techniques to test the destruction of pointers in C++. He suggested that the basic idea is to overload the “new” and “delete” operators and count how many times each is called. A testing framework … Continue reading

Posted in Uncategorized | 3 Comments

Originally posted on Cook's Tales:
Augusta suggested a new recipe she’d seen on TV. So, ever ready to please… I whizzed a thick slice of white bread with an anchovy, a handful of capers, some black olives, a few…

## Would Icarus’s wings _actually_ melt on way to the sun?

The other day, we were arguing in the office about Icarus’s flight to the sun. As you all know, the legend goes that Icarus made himself some wings out of wax and feathers. Unfortunately his hubris led him to fly … Continue reading

Posted in Uncategorized | 3 Comments

## Solving Sudoku by depth first search

I am trying to remind myself of a little C++ and have decided the ideal project to do so would be to write a little solver for Sudoku. My aim is, given a board,  to find all valid solutions. A … Continue reading