Exhibit 10.4 ZIFF DAVIS HOLDINGS INC. STOCK PURCHASE AGREEMENT Dated as of August 30, 2001 TABLE OF CONTENTS -----------------