Typesetter Machine:

Twain was fascinated by the mechanical marvels of his time. Inventor James W. Paige's device that could arrange text for printing much faster than a human being enticed Twain to invest a lot of time and money that eventually bankrupted him.

The device was impractically designed and other typesetters proved far superior. Twain realized this too late and his obsession almost forced him into the poor house!