What is the origin of "long" and "short" in finance?

In finance, "short selling" or "shorting" is the practice of borrowing shares of stock and immediately selling them in hopes they will decline in value, allowing you to repurchase them later at a l...