Category Archives: Uncategorized

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…

Posted in Uncategorized | Leave a comment

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

Posted in Uncategorized | Tagged | Leave a comment

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…

Posted in Uncategorized | Leave a comment

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

Posted in Uncategorized | Leave a comment

Are you more likely to give birth on a full moon? Revised

In my previous post Ratbag and Roland pointed out that there seems to be a slight increase in probability in the birth rate for the week after a full moon and they suggested I carry out a significance test. I … Continue reading

Posted in Uncategorized | Leave a comment