I haven't posted many code snippets in a long time so here is a very usefull...