"According to G.L. Cohen, author of Studies in Slang Part 1 (1985), the phrase smart alec arose from the exploits of one Alec Hoag. A celebrated pimp, thief, and confidence man operating out of New York City in the 1840's, Mr. Hoag, along with his wife Melinda and an accomplice known as "French Jack," operated a con called the "panel game," a method by which prostitutes and their pimps robbed foolish customers. See www.wordwizard.com/ askww/foundaskww.asp?num=342.
A search of several of the more reliable dictionaries pretty much confirms this definition. The Oxford English Dictionary traces it to mid-1860s slang, while the American Heritage Dictionary and Brewer's Dictionary of Phrase and Fable tentatively trace the etymology of the phrase to Hoag.
The "panel game" consisted of sliding walls that would enable Mr. Hoag to sneak in whilst the mark was sleeping and steal valuables. Before Mr. Hoag, a prostitute's accomplices would wait until the mark was asleep, then burst into the room. But the marks got wise and would block the door with a table or chair propped up under the doorknob, thinking they would then be safe from intruders. "Smart" Alec Hoag, because he never woke the victim, would be on the other side of town before the rube even knew what had happened."
No there's not and you must be a thin skinned pussy for asking. That's stupid.