Go to Post I don't just participate in FIRST, and it’s not part of my life. FIRST is my life. - sciguy125 [more]
Home
Go Back   Chief Delphi > Competition > District Events
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 01-04-2016, 13:23
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 485
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: TamperMonkey script to analyze district standings and predict DCMP invitations

Quote:
Originally Posted by rwodonnell View Post
It's your posts that inspired me to do it with TamperMonkey, and in fact I tried to use your methodology but I struggled to understand the Python code. I only vaguely know the language. I did copy your 5 classifications.

While your posts are awesome and much appreciated, I thought it would be neat to go to the district rankings page and have them automatically do what I wanted right in the browser - the beauty of Grease - er - TamperMonkey. (The original name is so much better!)

My son is taking Python - with your permission, when I get a chance (probably next season at this point) I will, with his help, translate your algorithm into Javascript.
I wonder if there's some way that we could combine our efforts. Putting them inline with the results webpage is definately more elegant than my output. At the same time, I have no idea how to run a TamperMonkey script, and I bet I'm not the only one. I'm not sure what the easiest way is to let people get results is.

How do you run a TamperMonkey script anyway? I tried installing it and got a page that looked IDE-like so I copied your code in but then I wasn't sure what to do next.

I haven't been keeping up on the latest Javascript stuff, so I feel like there's probably some security rules that will prevent this, but is it possible to make a webpage that loads a remote page and then parses it? Can you make an iframe and then mess with its contents? Could this be done with just a normal webpage?

I feel like the less barriers to entry for someone running the script the more useful it will be. For example, I don't know whether anyone besides me has tried to run my script despite it being publicly available for years. I wonder if ultimately the right thing is to put a CGI script together on a server someplace.

What do you think? Either way, feel free to copy the algorithm. And I know it's a little sparse on comments so I'm happy to answer questions about what it's doing.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi