PDA

View Full Version : Handifast HHX v3


headhawg
03-26-2012, 12:49 PM
As usual, Handi has inspired me to write code. :)

I am making progress on HHX v3. It will be essentially use the same calculations as before but the program will have some added features like the numbers from Doug's RCV program, the ability to autoscratch, up to 12 tracks, and some other formatting changes. I've posted a screen shot of the main window. The toolbar buttons will change from what you see now to ones that represent the main functions of HHX. That way users will be able to either click on those or use the menu. The completed program is at least two months away, but I wanted to let users know that I was getting to it. If you care. :D

BTW, the big blank section below the toolbar will be where the data output is. The output files will be in html format and will be displayed within HHX in that spot, or you will be able to open them in the browser of your choice so that you can take advantage of the tabs. That's the plan anyway.

headhawg
03-26-2012, 01:10 PM
Just a second shot with the track/date listed in the combobox. Sorry for the big pix; they didn't look too good in a smaller size.

headhawg
03-26-2012, 01:34 PM
I wanted to mention that some other features will include batch processing and having multiple weight files per track if needed. I am not sure if the weight feature will be simple, like track/sprint-route/surface, or something more elaborate to include distance specific settings (6F,7F,9F, etc.). These will be included in a later release of HHX.

Long term plans include a database feature. But considering Handi's struggles with that it may be a while before I attempt it.

Handiman
03-26-2012, 05:01 PM
Very awesome Head. Can't wait to see what you come up with...


Handi:)

lsosa54
03-26-2012, 09:35 PM
Nice to see you back in business HH!

headhawg
04-01-2012, 07:38 PM
Just a little update. I always felt that the loading of the data files took longer than I wanted, about three seconds per file. A fellow handicapper and LB coder told me that his load times were closer to 10 seconds per file. Most of that is because of his older 'puter but I still felt that I could get files to load faster.

(Just as a side note the problem really is with some data formatting with Bris in fields 376-385 and 496-505. For some inexplicable reason there can be commas in those fields which are part of the text data and therefore not being used as delimiters. Of course that's just dumb, so I wrote a routine to correct that, but that slows down the file loading process.) The new procedure loads files in about 1.8 seconds on my computer so I'm pretty happy with that (even though I think I can get it faster still).

I am working on the autoscratch feature now. I hate parsing XML/HTML, but thankfully I have some previous code written from my harness results downloader which should help save some time and effort.

If anyone has a suggestion or two I'll be happy to listen. I can't make promises as this takes a lot of time to implement, but I'd rather have some input now and then some feedback on the release later.

ronestes
04-07-2012, 06:36 PM
Just wondering what are the best settings to use with the program (routes,sprints,dirt,turf) Thanks Ron

headhawg
04-07-2012, 07:31 PM
HHX v3 isn't available yet and I don't have any of the formulas/calculations done so I really can't answer that. You might want to take a look at some threads from last year discussing Handifast for some ideas about what people were doing. Handi's new version has the ability to save the weights so playing around with different settings is your best best, especially if you specialize in a particular race type. Someone who is using Handi's version may also chime in what they are using.

headhawg
04-15-2012, 01:24 PM
I got the autoscratch feature to work. Well, the XML parser part of it anyway. As long as Equibase doesn't change the schema it should work fine.

A question that I have for users has to do with doing scratches manually. The typical way to do scratches is to present a screen that lists the horses for each race and then selecting the ones to scratch. However, I am partial to the idea of presenting all of the races at once for each track and allowing the users to do all needed scratches, much like the way Nathan designed it in EquiSim. The HHX scratch screen will look different from ES (I am planning on using checkboxes and strikeout text) but you get the idea. See attachment for two screenshots showing the different design concepts.

The scratch screen is more of a design issue than a coding one. I am planning to run all of the race calculations in one fell swoop as opposed to each race individually as the Handifast programs do now. So that means when the reports are output to the screen you will be able to scroll and see all of the races as one report. Thus it makes sense to provide the user with the opportunity to do all of the scratches at once. If the users prefer individual races to be displayed then that will change the design fairly substantially.

Anyway, I thought that I would just throw the question out there.

lsosa54
04-15-2012, 02:50 PM
Never been a fan of the Race Prophet scratch screen. Equisim looks much better plus it looks like you could mark a non contender as well.

douglasw32
04-15-2012, 10:48 PM
WOW, I can not wait to see this !

headhawg
04-15-2012, 11:51 PM
Funny that you say that Doug because I can't wait to be finished with it. :D

Being a gifted coder is something that I wish that I was but I'm plugging along doing what I can. Parsing the XML file shouldn't have taken me as long as it did (I almost gave up on it), but it seems to work fine. Too many big sections of code left to do as this is pretty much a complete rewrite of HHX. I am still hopeful I can release it in a couple of months, but I get the feeling that everytime I post a progress update I'll be saying the same thing.

headhawg
07-20-2012, 09:57 AM
I got to the scratch screen section and got a little frustrated with the results so I took some time off from coding. I will get back to it soon and hopefully will have the new version out in a reasonable amount of time.

headhawg
10-19-2013, 07:10 PM
Wow. My last post was over a year ago. Damn scratch screen. Anyway, change of plans. My original idea was to go with a scratch screen like the one in Equisim but that proved to be too difficult for my skill level. I went in a different direction but I think it will work out ok. As you can see from the screen shot, you select the race with the buttons at the top. (The program will disable any invalid race numbers so you can't click on a race that doesn't exist.) The >>> button will be enabled if there are more than 10 races, and you would click on that to show them. You scratch horses by clicking the checkbox to the left which then "crosses out" the horse.

Don't mind the color scheme or the fonts. They are definitely not finalized.

douglasw32
10-19-2013, 09:13 PM
Very Impressive

DeltaLover
10-19-2013, 10:40 PM
Just a little update. I always felt that the loading of the data files took longer than I wanted, about three seconds per file. A fellow handicapper and LB coder told me that his load times were closer to 10 seconds per file. Most of that is because of his older 'puter but I still felt that I could get files to load faster.


Try to rething your parsing algorithm.

In my case I can read approximately 400 BRIS multicap files per second on a Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz box.

headhawg
10-19-2013, 11:27 PM
Your algorithm can read in about 41,000,000 pieces of data in one second? Export that function to a dll and maybe I can use it. ;) Yeah, my algorithm needs some work. I could make it faster if I load the data into strings but then I'd have to write some parsing functions as well. Possibly in my next program.

DeltaLover
10-20-2013, 12:09 AM
Your algorithm can read in about 41,000,000 pieces of data in one second? Export that function to a dll and maybe I can use it. ;) Yeah, my algorithm needs some work. I could make it faster if I load the data into strings but then I'd have to write some parsing functions as well. Possibly in my next program.

Check your PM.

headhawg
11-03-2013, 12:10 PM
Looks like the bugs are squashed for the Auto- and manual scratch code, so...yay! (Thanks to Mike for keeping me on task.) V3 is now about 40% completed. The next big things are to add the number crunching and the fig display, about another 40% of the code. When that part of the code is written I will give it to a couple of people to test. At the rate I'm going that will probably be in a couple of months.

I've been asked to include batch processing but I am not sure that will be available in the initial release, but it's on my feature list. If there are suggestions you can post them and I will see what I can do about adding them.

JimG
11-16-2013, 02:44 PM
Looks like the bugs are squashed for the Auto- and manual scratch code, so...yay! (Thanks to Mike for keeping me on task.) V3 is now about 40% completed. The next big things are to add the number crunching and the fig display, about another 40% of the code. When that part of the code is written I will give it to a couple of people to test. At the rate I'm going that will probably be in a couple of months.

I've been asked to include batch processing but I am not sure that will be available in the initial release, but it's on my feature list. If there are suggestions you can post them and I will see what I can do about adding them.

Hi headhawg,

How's the coding going? Been enjoying the last iteration with Mike's printed sheets. I presume the printing will carry forward to version 3? It may not be feasible but it would be nice to include the jockey and trainer names. Also, the quirin speed points next to the running style would be nice. And if I am really wishing, a column that would denote stuff like bon, boff, bullet work, claimed last race. In addition to track settings, the ability to save global settings for turf and dirt separate.

It is very nice as it is now and perhaps it would be best to keep the uncluttered look you have now. Just thought I would throw a few ideas out there. Have a great weekend.

Jim

headhawg
11-16-2013, 03:09 PM
As I have mentioned before, Jim, HHXv3 is nearly a complete rewrite of previous versions. Printing will be included, but I haven't gotten that far. I like the way that Mike does his output, but the v3 design will be to output/display in html. That helps with a few things, including the abilty to display in different resolutions. So I will have to see how the printing code goes when I get to that point. I already know that pagination will be a bee-yatch.

I have been thinking about changing the output as well. I had already planned on adding Quirin speed points, and someone asked to include Bris Prime Power. The issue will be getting everything to fit nicely on screen, but that should be ok using html. Things become more problematic if every column is sortable. And then there's the issue of printing of all that info so I may have to compromise somewhat. I will do my best to include as much as I can based on what users are asking for.

The coding is going more slowly now as I currently have a few too many irons in the fire. I've been testing the scratch code just to make sure it works, but haven't worked on the calculations section yet. I'm trying to write a little more code today.