Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board

Go Back   Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board > Thoroughbred Horse Racing Discussion > Handicapping Software


Reply
 
Thread Tools Rate Thread
Old 04-09-2016, 05:02 AM   #1
Handiman
BarelyWinning
 
Join Date: Oct 2005
Location: Santa Rosa, California
Posts: 2,828
Race File question

For you guys that download files everyday from a vendor, where and how do you store those files on your hard drive? I'm tinkering around with a batch processing program and I am trying to figure out how to have one program access files of a gazillion different computers. Ok maybe not a gazillion but a few anyway...

ie; Do you separate by year or month or by track or maybe by date?

Sure could use some input.

Thanks,
Handi
Handiman is offline   Reply With Quote Reply
Old 04-09-2016, 07:16 AM   #2
Augenj
Top Horse Analytics
 
Augenj's Avatar
 
Join Date: Mar 2013
Location: Las Vegas, NV
Posts: 12,303
After downloading daily compressed/encrypted files, I convert them into CSV files which are readable by spreadsheets and my home-grown programs.

At the end of the week, they get appended to history files named like this:

ttt_ccyy-mm-dd_ccyy-mm-dd.DB.txt

ttt - track acronym
ccyy-mm-dd - start date of logical year for that track
ccyy-mm-dd - end date of logical year for that track
.DB.txt - data base identifier and file type

Example: AQU_2015-11-04_2016-04-16.DB.txt
Augenj is offline   Reply With Quote Reply
Old 04-09-2016, 12:24 PM   #3
Handiman
BarelyWinning
 
Join Date: Oct 2005
Location: Santa Rosa, California
Posts: 2,828
So the csv files are located in a folder on your C drive where they are accessed by your own program. After handicapping with the csv files for the day, then do you clear them out and replace them the next day with new csv files?

What I'm trying to get at is do you have a folder on your C Drive that you use to locate your csv files, that you clean out every day with the next days csv files?

Thanks,
Handi
Handiman is offline   Reply With Quote Reply
Old 04-09-2016, 12:36 PM   #4
Augenj
Top Horse Analytics
 
Augenj's Avatar
 
Join Date: Mar 2013
Location: Las Vegas, NV
Posts: 12,303
Quote:
Originally Posted by Handiman
So the csv files are located in a folder on your C drive where they are accessed by your own program. After handicapping with the csv files for the day, then do you clear them out and replace them the next day with new csv files?

What I'm trying to get at is do you have a folder on your C Drive that you use to locate your csv files, that you clean out every day with the next days csv files?

Thanks,
Handi
The CSV daily files have unique date names and are deleted at the end of the week during the append to the history files. The daily CSV files remain in the same folder until then.
Augenj is offline   Reply With Quote Reply
Old 04-09-2016, 01:36 PM   #5
headhawg
crusty old guy
 
headhawg's Avatar
 
Join Date: Aug 2003
Location: Snarkytown USA
Posts: 3,917
Handi,

Have a configuration button or menu option, part of which is the ability to save folder paths. Just create a config file or an .ini file that will let the user save the folder path for data files and/or batch processing. (Could be different paths.) Load the .ini file when Handifast starts, and give the user an file dialog option if they want to change the path on the fly.

If you really want to be slick then you can also have an automatic archive option. EquiSim was really good at that. Wish Nathan would still support that program.

HH

Last edited by headhawg; 04-09-2016 at 01:38 PM.
headhawg is offline   Reply With Quote Reply
Old 04-10-2016, 09:00 AM   #6
Red Knave
dGnr8
 
Red Knave's Avatar
 
Join Date: Aug 2003
Location: Niagara, Ontario
Posts: 3,023
Handi

headhawg has it right but I wonder if you are asking something else?
Are you worried about filling up the directory and/or having to select only the files for a certain day?
Some software I have used has a 'download' directory and then creates a 'work' directory for intermediate short term usage files and clears that every time the date/track/race changes. The software moves the data from the download directory to the work directory as needed.
Other software I have seen does the download and then automatically adds that data to a database of PPs that is read from to get data for whatever track/date/race is required.
I think if you pay to download data you should keep it somehow.
__________________
.
The great menace to progress is not ignorance but the illusion of knowledge - Daniel J. Boorstin

The takers get the honey, the givers sing the blues - Robin Trower, Too Rolling Stoned - 1974
Red Knave is offline   Reply With Quote Reply
Old 04-10-2016, 02:59 PM   #7
Handiman
BarelyWinning
 
Join Date: Oct 2005
Location: Santa Rosa, California
Posts: 2,828
The task is to have one program access data files located on different user's computers and make the dir the default directory for that program on that computer.

Handi
Handiman is offline   Reply With Quote Reply
Old 04-10-2016, 03:30 PM   #8
headhawg
crusty old guy
 
headhawg's Avatar
 
Join Date: Aug 2003
Location: Snarkytown USA
Posts: 3,917
I still don't quite understand. Why would data files be located on different computers? Are you talking about networked computers? If you want to have the same default directory then just force the install to a static file structure like C:\Handifast\ and have a subfolder called datafiles or whatever. Personally, I really dislike programs that aren't flexible enough to let the user install programs and store files where they want but perhaps I am still misunderstanding the goal here.
headhawg is offline   Reply With Quote Reply
Old 04-10-2016, 03:48 PM   #9
Red Knave
dGnr8
 
Red Knave's Avatar
 
Join Date: Aug 2003
Location: Niagara, Ontario
Posts: 3,023
So your program on a computer that you control, will access my computer remotely and manipulate data in my specified directory?
If I have it right, that's interesting but there should be better ways to do that.
__________________
.
The great menace to progress is not ignorance but the illusion of knowledge - Daniel J. Boorstin

The takers get the honey, the givers sing the blues - Robin Trower, Too Rolling Stoned - 1974
Red Knave is offline   Reply With Quote Reply
Old 04-10-2016, 11:46 PM   #10
Handiman
BarelyWinning
 
Join Date: Oct 2005
Location: Santa Rosa, California
Posts: 2,828
NO. Everybody downloads race files from a vendor and they place the data files on their C:/ drive. But not everybody puts their files in the same folders. Everybody who gets Handifast and puts it on their computer then when you run it it has to find those datafiles. I was looking for a clean way to do that. Then I figured out what I needed to do along with confirmation from HeadHawg.

So I'm squared away as I answered my own question with HH help. There is no remote controlling anything. Everything is as before, except for a couple of added benefits I believe, or at least hope people will like.

Handi

Last edited by Handiman; 04-10-2016 at 11:50 PM.
Handiman is offline   Reply With Quote Reply
Old 04-11-2016, 12:09 PM   #11
Red Knave
dGnr8
 
Red Knave's Avatar
 
Join Date: Aug 2003
Location: Niagara, Ontario
Posts: 3,023
Thanks Handi. That, of course, makes a lot more sense.
__________________
.
The great menace to progress is not ignorance but the illusion of knowledge - Daniel J. Boorstin

The takers get the honey, the givers sing the blues - Robin Trower, Too Rolling Stoned - 1974
Red Knave is offline   Reply With Quote Reply
Reply





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

» Advertisement
» Current Polls
Wh deserves to be the favorite? (last 4 figures)
Powered by vBadvanced CMPS v3.2.3

All times are GMT -4. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 1999 - 2023 -- PaceAdvantage.Com -- All Rights Reserved
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program
designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.