Archive of posts from March 2011

Rubix Cube 5x5 Parity Algorithm

Nothing to see here, just an aid to memory:

CakePHP pagination and filtering

Here's another little trick in CakePHP - it's quite often that someone will request a big old list of paginated data, along with filters on that data.

CakePHP get controller from model

As much as MVC is great, sometimes there's that little requirement that forces you to go against the standard way of doing things.

Binding energy, fusion and fission

There seem to be two conventions for binding energy, one treating it as the (negative) potential energy due to the nucleons being close together, the other treating it as the (positive) energy needed to separate the nucleons.