PDA

View Full Version : DPAD Team Strain Script



magnav0x
12-24-2003, 12:58 PM
exacliber has sent the script my way to host, which maybe will help with download speeds with the strains. So far I made a small modification to the script. The way the script is set up right now it takes too long to grab all the data and place into a text file for download. I've altered the script so when the user selects the "download entire team strain" option it will in effect download only 1000 entries. These 1000 entires are effectivly the top 1000 that have been uploaded into the database at this time. I encourage people to start uploading their result.dat files again so I can rest assured there isn't a problem on that end. The new url is http://dpad.ezracing.net

I hope to have some time to impliment a few other features a week from now.

willy1
12-24-2003, 01:16 PM
Oops.


Problem: File exceeded upload_max_filesize

excaliber
12-24-2003, 01:46 PM
Good call Magnav0x. Thats what I suspected the problem was, thats a good way to fix it.

You need to edit your PHP.ini file to allow for uploads larger than 2 megs. I had to do that to allow people to upload.

Got my results uploaded. Thanks again Magnav0x. I'll add some features when I get time, now that its working.

willy1
12-24-2003, 01:54 PM
Successfully sent top 1000 extracted from my results.dat.:D

excaliber
12-24-2003, 02:14 PM
Added another feature. The random X number of results is great, but if you only want 200 or so results, its highly likely you wont get above 0.4%

So there is an option to download x# of results from the top. Will limit at 1000, so you cant specify too many.

excaliber
12-25-2003, 08:33 AM
Bye all. Im going to be out of town from today til Januaary 1st. I'll update my results.dat before I leave. See what kind of interesting results I get after a week of isolation.

Have a happy holidays!

excaliber
12-30-2003, 02:41 PM
What happened? The page cant be found.

magnav0x
12-30-2003, 03:26 PM
I just switched the domain to my new server today. Forgot to create an entry for subdomain :D For now you can access it here: http://www.ezracing.net/dpad/

excaliber
12-30-2003, 05:32 PM
It appears in the move something was broken. Did you create an uploads directory as well?

magnav0x
12-30-2003, 06:17 PM
Exacliber yes I didn't have the permissions on the folder set right. Should be working. I haven't tested uploading a file, as I don't have any strains available to upload. Let me know if the upload isn't working. I do know the download is working though. I also set the max upload to 20mb.

excaliber
12-30-2003, 07:10 PM
Still not working. :(

magnav0x
12-30-2003, 08:12 PM
Are you refering to the uploading exaliber? Send me a results.dat so I can take a look at the problem.

excaliber
12-30-2003, 08:55 PM
Yup, the uploading. Here is my latest results.dat

magnav0x
12-30-2003, 10:08 PM
I'm working on it. Still trying to figure out what's causing the problem. I know it can't be anything in the script or permissions on the dpad folder. It must be something in the apache or php config files.....

magnav0x
12-31-2003, 12:29 PM
Ok script has been moved back to http://dpad.ezracing.net
Upload script is running properly again. Thanks for your patience guys.

excaliber
12-31-2003, 02:03 PM
Cool, works great. Thanks!

rshepard
01-02-2004, 10:49 AM
One small glitch I just noticed -- the "Last Update" field seems to be stuck. I uploaded a set this morning, but it still shows 12/31/03 as the last date.

excaliber
01-02-2004, 08:43 PM
Indeed. Maybe its a timezone thing. Not sure, I'll investigate.

Our muon yields are increasing very quickly! Im surprised how fast this went. Granted, it will slow down once the yields get larger, but this is impressive. Good job!

wirthi
01-07-2004, 02:17 PM
Hi,

great work guys!

One question: do I have to restart the client after updating the results.dat? AFAIK it loads the results.dat everytime it generates a new workunit but I'm not 100% sure about that.

Greets,
Wirthi

magnav0x
01-07-2004, 02:30 PM
Wirthi, I'm not 100% sure, but it would probably be safer to stop the client before overwriting the current one and then start again.

magnav0x
01-07-2004, 07:02 PM
I noticed we have a 9.829494 yield muon now.... Is this a true from scratch strain or did someone use the 100-result sample file from the MUON project page?

excaliber
01-07-2004, 08:10 PM
Indeed. I was going to post the same thing. Has someone contaminated it? We want ONLY THE TEAM STRAIN added, not the overall project strain.

matrix_fan
01-07-2004, 08:18 PM
Looks like it, I downloaded the whole thing and it's at the very top, it lists everything and then lists names and teams of the people who submitted them just like the 100-result .dt file, unluckily some of then are spread-out through the WHOLE thing, as i tried decantaminating it ;), but i then saw too many

excaliber
01-07-2004, 08:24 PM
I'll hunt around and see if i stashed away a backup somewhere.

/me slaps the person who did this with a sturgeon

EDIT:

Heres some that i found laying around, although its very incomplete. Only 800 or so results, ranging from 4.408% to 0.00047%

Hope someone else has a more complete backup than I.

matrix_fan
01-07-2004, 08:27 PM
uh-oh:scared: What if yo can't find it!??

magnav0x
01-07-2004, 08:30 PM
Ok I just cleaned up the strain. I removed all entries from the IP address that submitted those.

rshepard
01-07-2004, 08:31 PM
We can always rebuild it if we have to- zero it out and upload all our individual strains again.

excaliber
01-07-2004, 08:33 PM
Good thinking Magnav0x. Glad I added that IP tracking a while ago, seems to come in handy.

I'm going to start keeping backups once weekly of the top 1000, in case a mass problem happens.

magnav0x
01-07-2004, 08:33 PM
BTW excaliber, I found the problem with the date on the frontpage. You are using a max select statement on the date. December (12) is going to always be selected over January (01).

I added a timestamp field. In a bit after someone submits again I'll put in the code to transform the timestamp into a readable format.

excaliber
01-07-2004, 08:34 PM
Oops, that would do it.

I should have used the DateTime mySQL field instead of a Varchar, to avoid that problem. Tad late for that now, isnt it? :(

magnav0x
01-07-2004, 08:37 PM
Ok I lied I went ahead and put in the code to put the timestamp in readable format. Right now it shows todays date, because I added the timestamp field today.

magnav0x
01-07-2004, 08:51 PM
I also altered your queries to grab maximum and minimum muon yields (just to make them a bit more proficient.

excaliber
01-07-2004, 09:24 PM
Sounds good, good work. :)

wirthi
01-10-2004, 05:04 PM
The teamstrain at dpad.ezracing.net are not updated any more? The last update was at: 01/07/2004 19:29.

I've uploaded some better results since then (best one with 4.463 according to my viewresults.exe). They don't show up in the downloaded result.dat ...

excaliber
01-10-2004, 05:49 PM
I've noticed the same. Any ideas magnav0x? Im really really busy, so wont have a chance to check it out.

magnav0x
01-10-2004, 07:46 PM
Is it not spitting out any errors when uploading?

excaliber
01-10-2004, 10:41 PM
Nope. Appears to be uploading fine. But it doesnt seem to be adding them.