CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (USD $)
In Thousands, unless otherwise specified
6 Months Ended
Jan. 31, 2015
Jan. 31, 2014
Cash flows from operating activities    
Net income (loss) $ 8,426 $ (18,528)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 14,267 14,250
Change in provision for doubtful accounts 79 (173)
Inventory reserves for excess, obsolescence and other 5,027 2,937
Stock-based compensation expense 48,294 56,163
Amortization of discounts and premiums on short-term investments 680 1,129
(Gain) loss on disposal of property and equipment, intangibles and other (712) 232
Deferred income taxes 11,231 3,979
Excess tax benefit associated with stock-based compensation (6,365) (721)
Changes in operating assets and liabilities:    
Accounts receivable (11,932) 11,212
Inventory (9,430) (11,451)
Deferred costs of revenue 608 (4,069)
Prepaids and other current assets 211 2,373
Other non-current assets 606 (2,058)
Accounts payable, accrued liabilities and other non-current liabilities 24,784 (34,700)
Deferred revenue 20,598 34,028
Net cash provided by operating activities 106,372 54,603
Cash flows from investing activities    
Purchases of short-term investments (65,720) (87,119)
Proceeds from sales of short-term investments 12,799 89,240
Proceeds from maturities of short-term investments 79,559 99,083
Purchases of property and equipment (13,031) (7,854)
Purchases of intangible assets (2,840) 0
Investment in a privately-held company (1,200) 0
Net cash provided by investing activities 9,567 93,350
Cash flows from financing activities    
Proceeds from issuance of common stock 16,051 10,473
Repurchases of common stock under stock repurchase program (105,000) (193,504)
Excess tax benefit associated with stock-based compensation 6,365 721
Net cash used in financing activities (82,584) (182,310)
Net increase (decrease) in cash and cash equivalents 33,355 (34,357)
Cash and cash equivalents, beginning of period 118,594 144,919
Cash and cash equivalents, end of period 151,949 110,562
Supplemental disclosure of cash flow information    
Income taxes paid 2,970 3,046
Non-cash investing and financing activities    
Net change in accounts payable and accrued liabilities related to purchases of property and equipment $ 105 $ 891