Baseball and Programming…

April 18, 2007 | General | By: Mark VandeWettering

Well, I had maxed my vacation time out again, so was forced to take a day off. Oh darn. My son and I decided to take the opportunity for a little daytime baseball. Despite some early fear that it would be cold and windy, it was only a little windy, but a very nice day at the ballpark. The Atheletics were battling the Angels, Haren vs. Lackey. Nice. Haren pitched a sweet 3-0 shutout, and Street got the save.

When I got home, I wasn’t up to figuring out what the problem was with my checkers program, so instead I revamped the program that I wrote that fetched the major league schedules to get more up-to-date info, and include the likely pitchers for
the current day. My idea is that this will run at 3:00AM or so, and save the info off into the /etc/motd file, and I can view it whenever I log in.

A bit of hacking, and this is what today’s lineup would have looked like.

------------------------------------------------------------
                MLB SCHEDULE FOR 04/18/2007                 
------------------------------------------------------------
04/18 10:05 AM  KC @ DET Meche (1-1) vs Bonderman (0-0)
04/18 12:10 PM BAL @ TB  Bedard (3-1) vs Kazmir (1-1)
04/18 12:35 PM LAA @ OAK Lackey (2-2) vs Haren (1-2)
04/18 04:05 PM CLE @ NYY Sowers (0-1) vs Igawa (1-0)
04/18 04:05 PM NYM @ FLA Maine (2-0) vs Willis (3-1)
04/18 04:05 PM PHI @ WSH Eaton (1-1) vs Bergmann (0-1)
04/18 04:07 PM BOS @ TOR Wakefield (2-1) vs Ohka (0-2)
04/18 04:10 PM HOU @ CIN Sampson (2-0) vs Harang (2-0)
04/18 04:35 PM CHC @ ATL Zambrano (1-2) vs Davies (0-0)
04/18 05:05 PM PIT @ MIL Maholm (0-2) vs Vargas (1-0)
04/18 05:11 PM TEX @ CWS Millwood (2-2) vs Buehrle (1-0)
04/18 05:35 PM LAD @ COL Lowe (2-2) vs Lopez (1-0)
04/18 07:05 PM ARI @ SD  Webb (1-1) vs Wells (0-1)
04/18 07:05 PM MIN @ SEA Silva (1-1) vs Hernandez (2-1)
04/18 07:15 PM STL @ SF  Keisler (0-0) vs Morris (2-0)

[tags]Baseball,Programming[/tags]