rioki's collection of darn useful code