Apple did.
Make cool stuff that people want to use. It's not rocket science, it's just that there's so much dead weight in most companies living inside the company bubble with wrongheaded ideas about what the public wants and overvalued MBA degrees that it's rare.
A bit of hard data, a bit of freedom for forward-thinking designers and developers, including the realization that they need to be aggressive, not conservative, update/relaunch products at 2013 speeds (as opposed to 1994 speeds), and embrace things like the mobile ecosystem and social media, a bit of marketing, and Yahoo! could be at the top of the game again.
I have nothing against Yahoo!, just against shitty, decade-outdated products, which is what they've been making/maintaining for some time. Fix the products, make cool stuff, and I'll be happy to use it.