Stocks started sluggish, but investors eventually found the coffee machine and woke up.
Here's what you need to know:
1. Stocks on the rise: The Dow rose nearly 50 points (0.3 percent), while the S&P 500 moved higher by 0.5 percent. The Nasdaq lead the way, gaining almost 0.7 percent. It's a turnaround from Tuesday when the Dow Jones Industrial Average had its biggest one-day percentage drop in more than a month.
2. Aereo ruling sparks media madness: The Supreme Court provided one of the biggest market moving moments of the day.
CBS Corporation skyrocketed as much as 7 percent after the Supreme Court said streaming service Aereo's business model violates broadcasters' rights by using tiny antennas to snap up content on public airwaves. Shares of Disney, which owns broadcaster ABC, also jumped on the news, as did Comcast, owner of NBC, and Twenty-First Century Fox.
But media companies that own local affiliate stations experienced the biggest bounce, since they rely on redistributing content, which is essentially what Aereo does.
Shares of the Sinclair Broadcast Group, the Tribune Company, and Gannett all surged.
3. Movers and shakers -- Google, Barnes & Noble, General Mills, oil refiners: Google popped over 2 percent after the tech giant revealed plans to expand its Android software into television, smartwatches, and cars.
Barnes and Noble shares soared as much as 10 percent after the struggling bookseller said it has begun taking steps to separate its retail and Nook segments. But the stock has since pulled back a bit, closing up 5 percent.
Still, one StockTwits trader wasn't convinced that the move would help Barnes and Noble that much.
"$BKS spinoff should be interesting but does not solve the problem," said notelonmusk.
Oil refining stocks took a hit Wednesday after news that the Commerce Department ruled that two companies will be able to export an ultra-light form of oil,, despite a long-standing ban on exporting crude from the U.S. Investors were worried the decision would lift oil prices and make the cost of business more expensive for oil refiners. Valero Energy sank 8 percent and Marathon Petroleum fell 6 percent.
General Mills slumped after the cereal maker reported disappointing earnings that were stymied by expensive promotional activity that didn't translate into greater sales.
Apollo Education ticked up after the for-profit college operator beat earnings estimates. Still, the company said degree enrollment sank significantly at the University of Phoenix.
And Monsanto rose 5 percent after the company announced a big share buyback and strong quarterly results that topped Wall Street expectations.
4. Ugly GDP figures aren't a huge concern: The Commerce Department said the economy shrank 2.9 percent in the first quarter, even uglier than the 1.8 percent decline that economists from Briefing.com had predicted. Analysts were expecting a weak final figure for the period, which included unusually harsh winter weather. In that regard, investors are largely shrugging off the bad news, and have donned their forward-thinking caps.
5. International action: The Dubai stock market suffered a dire tumble to start the week, as concerns about continued turmoil in Iraq damaged investor confidence and one of Dubai's biggest construction companies reported trouble. However, the benchmark Dubai Financial General Market Index recovered about 6 percent on Wednesday.
Russia's main Micex index declined by over 2 percent on reports that the West might slap more sanctions on Russia.
The Micex has been on a wild ride this year, dropping by over 20 percent and then fully recovering as worries about the Ukraine crisis and sanctions intensified and then receded.
All major European markets closed lower Wednesday. Asian markets ended in negative territory.