If you're feeling good about the market, you're not alone. Take my hand as we go over some of the more uplifting headlines of the week.

1. The Sun will come out tomorrow
Sun Microsystems (NASDAQ:JAVA) finally got it right. The tech giant posted horrendous quarterly results this week. Revenue took a 20% hit. Its quarterly loss widened.

If this doesn't sound like the typical "smartest stock moves" fodder, you're right. However, what makes Sun's numbers brilliant is that the company managed to seal a $7.4 billion buyout from Oracle (NASDAQ:ORCL) a week earlier. In short, unless the deal comes undone, Sun did the right thing by punching out before things got even worse.

Last year treated us to several flunkies on that front. Who can forget Microhoo? Remember EA-Two? These were proposed buyouts where the acquisition targets got cocky. They felt they were being offered a pittance, so they held out for more. In the meantime, their fundamentals cratered, making them actually worth even less.

Sun got it right.

2. It isn't easy being Green, but it's worth it
Green Mountain Coffee Roasters (NASDAQ:GMCR) had a caffeinated trading day yesterday, soaring 37% higher after posting better than expected fiscal second quarter results.

Fueled by its Keurig single-serving brewers and the K-Cup portion packs they need to crank out premium coffee, net sales soared 60%. Earnings more than doubled to $0.50 a share. Wall Street was sipping decaf at the $0.36 a share target.

The icing on the cake -- or make that creamer in the bean water -- is that Green Mountain also landed a distribution deal with Wal-Mart (NYSE:WMT) to sell its K-Cup refills and an entry-level brewer. If you think moving 479,000 more Keurig appliances -- and 432 million individual K-Cups -- is a lot, just see what the company can do when the world's largest retailer is stocking its wares.

3. Born on the Baidu
China's leading search engine still has it. Baidu (NASDAQ:BIDU) also cleared analyst expectations in its latest quarter. Revenue climbed 41%. Profits inched only 24% higher, but would have exploded if it wasn't for losses incurred in the company's fledging search engine initiatives in Japan and its stock-based compensation.

Baidu's saga could fill a book -- or at least a "made for TV" movie -- in recent months over its advertising practices. There is always the hope that the company will clean up its act, but at least China's Web users haven't held the recent headlines against Baidu. They have voted with their eyes, and advertisers with their pocketbooks.

4. Letting the chips fall where they may
Apple's (NASDAQ:AAPL) been hiring chip designers from some of the biggest chipmakers, fueling speculation that the company's next move will be to design in-house solutions for its products.

This can backfire, of course. If Apple eventually begins replacing third-party providers it may put the company at risk of putting out buggier products with no one to blame but itself. As cool as Apple is, it doesn't have the seasoned semiconductor pedigree of its suppliers.

However, the upside potential is even more impressive. Imagine Apple being able to more effectively control costs and make customized chip design a priority. Yes, the rich get richer.

5. Passing the makeup exam with flying colors
Isn't there an old adage about bright lipstick sales picking up when the economy heads lower? Minerals-based cosmetics pioneer Bare Escentuals (NASDAQ:BARE) delivered market-thumping results this week, propelling its stock nearly 40% higher yesterday.

The makeup maven didn't exactly grow during the quarter. Net sales fell by 11% and the company's profit of $0.18 a share fell short of the $0.28 a share it earned a year ago. However, analysts were only banking on a profit of $0.14 a share and a steeper top-line slide.

Rock-bottom believers have been rewarded here, since the stock has nearly quadrupled since trading as low as $2.45 less than two months ago. Mastering investing is a lot like looking good wearing prestige cosmetics: It's all in the application.

Stock news, financial commentary, and your daily dose of Foolishness: Get plugged in to The Motley Fool on Twitter!

Bare Escentuals, Baidu, and Green Mountain Coffee Roasters are Motley Fool Rule Breakers recommendations. Apple is a Motley Fool Stock Advisor recommendation. Wal-Mart is a Motley Fool Inside Value selection. Try any of our Foolish newsletters today, free for 30 days.

Longtime Fool contributor Rick Munarriz is an optimist at every turn. He's the inspiration for The Killers' "Mr. Brightside" song. Hdoes not own shares in any of the stocks in this story. Rick is also part of the Rule Breakers newsletter research team, seeking out tomorrow's ultimate growth stocks a day early. The Fool has a disclosure policy.