baseballhacks.pdf

(6236 KB) Pobierz
Other resources from O’Reilly
Related titles
Access Hacks
Excel Hacks
Gaming Hacks
Google Hacks
Google Maps Hacks
PHP Hacks
Retro Gaming Hacks
Spidering Hacks
Programming Perl
MySQL Cookbook
Hacks Series Home
hacks.oreilly.com
is a community site for developers and
power users of all stripes. Readers learn from each other
as they share their favorite tips and tools for Mac OS X,
Linux, Google, Windows XP, and more.
oreilly.com
is more than a complete catalog of O’Reilly
books. You’ll also find links to news, events, articles,
weblogs, sample chapters, and code examples.
oreillynet.com
is the essential portal for developers inter-
ested in open and emerging technologies, including new
platforms, programming languages, and operating
systems.
oreilly.com
Conferences
O’Reilly brings diverse innovators together to nurture
the ideas that spark revolutionary industries. We special-
ize in documenting the latest tools and systems,
translating the innovator’s knowledge into useful skills
for those in the trenches. Visit
conferences.oreilly.com
for
our upcoming events.
Safari Bookshelf (safari.oreilly.com) is the premier online
reference library for programmers and IT professionals.
Conduct searches across more than 1,000 books. Sub-
scribers can zero in on answers to time-critical questions
in a matter of seconds. Read the books on your Book-
shelf from cover to cover or simply flip to the page you
need. Try it today.
BASEBALL
HACKS
TM
Joseph Adler
Beijing
Cambridge
Farnham
Köln
Sebastopol
Tokyo
Baseball Hacks
by Joseph Adler
Copyright © 2006 O’Reilly Media, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North,
Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online
editions are also available for most titles (safari.oreilly.com). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or
corporate@oreilly.com.
Editors:
Tatiana Apandi and
Andrew Odewahn
Production Editor:
Marlowe Shaeffer
Copyeditor:
Audrey Doyle
Proofreader:
Chris Downey
Indexer:
Johnna Dinse
Cover Designer:
Hanna Dyer
Interior Designer:
David Futato
Illustrators:
Robert Romano, Jessamyn
Read, and Lesley Borash
Printing History:
February 2006:
First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks
of O’Reilly Media, Inc. The
Hacks
series designations,
Baseball Hacks,
the image of an umpire’s
indicator, and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was
aware of a trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author
assume no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
Small print:
The technologies discussed in this publication, the limitations on these technologies
that technology and content owners seek to impose, and the laws actually limiting the use of these
technologies are constantly changing. Thus, some of the hacks described in this publication may
not work, may cause unintended harm to systems on which they are used, or may not be consistent
with applicable user agreements. Your use of these hacks is at your own risk, and O’Reilly Media,
Inc. disclaims responsibility for any damage or expense resulting from their use. In any event, you
should take care that your use of these hacks does not violate any applicable laws, including
copyright laws.
[LSI][2011-07-29]
ISBN: 978-0-596-00942-7
Contents
Credits
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ix
Preface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii
Chapter 1. Basics of Baseball
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1. Score a Baseball Game
2. Make a Box Score from a Score Sheet
3. Keep Score, Project Scoresheet–Style
4. Follow Pitches During a Game
5. Follow the Game Online
6. Add Baseball Searches to Firefox
7. Find Images of Stadiums
4
12
19
26
31
33
36
Chapter 2. Baseball Games from Past Years
. . . . . . . . . . . . . . . . . . . . . . . . .
39
8. Get and Install MySQL
9. Get an Access Database of Player and Team Statistics
10. Get a MySQL Database of Player and Team Statistics
11. Make Your Own Stats Book
12.
13.
14.
15.
Get Perl
Learn Perl
Get Historical Play-by-Play Data
Make Box Scores or Database Tables from Play-by-Play Data
with Retrosheet Tools
16. Use SQL to Explore Game Data
17. Use Microsoft Access to Run SQL Queries
18. Get a GUI for MySQL
40
46
49
54
64
67
74
78
84
92
94
v
Zgłoś jeśli naruszono regulamin