the first trick is probably at least 100 years old. the earliest known published reference to it can be found in "Modern Mechanics and Inventions" (1929). The cube variation is my own invention.