Go to Post FIRST is about family, making new friendships, belonging somewhere, doing something you love, and finding out what your real love is in life, so when you're old and wrinkly you can look back at high school and say "This is when I found myself." - Winged Wonder [more]
Home
Go Back   Chief Delphi > Other > FIRST-related Organizations > The Blue Alliance
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-01-2009, 21:53
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Post [TBA]: Team info update?

Greetings TBA. I'm with Team 2656, entering our second season of FRC. I was just looking at our page on the TBA website (which is awesome BTW) and a thought occurred to me... We've updated our team name/nick name on TIMS and added URL's there for our website and blog. I'd like to see this information mirrored on TBA, but I wasn't sure how/if I could update that. I assume that you all have something that syncs data with FIRST/TIMS? If so, then I guess we'll be all good after the next update and I won't worry about it any longer. If not, let me know and I'll be happy to submit further information for Team 2656. Thanks. I really like what ya'll and doing at TBA and we've got a link to our page there on the main page of our website. Please, keep up the great work!
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2009, 22:17
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: [TBA]: Team info update?

I just went to run an update of the team data, and it seems that FIRST is doing something to block scripts from downloading team data. I am not sure what is going on, but (https://my.usfirst.org/myarea/index....=FRC&team=1388) gives me different source code depending on if I open it in Chrome or wget it, and I can't open the URL at all from my PHP scripts that worked last spring.

I will investigate this further, but we will do a complete team data update before ship date.

Thanks!
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2009, 23:23
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: [TBA]: Team info update?

Quote:
Originally Posted by Greg Marra View Post
I just went to run an update of the team data, and it seems that FIRST is doing something to block scripts from downloading team data. I am not sure what is going on, but (https://my.usfirst.org/myarea/index....=FRC&team=1388) gives me different source code depending on if I open it in Chrome or wget it, and I can't open the URL at all from my PHP scripts that worked last spring.

I will investigate this further, but we will do a complete team data update before ship date.

Thanks!
I'm curious if they were having an issue with abuse.
__________________
Eric Haskins KC9JVH
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2009, 22:45
RyanCahoon's Avatar
RyanCahoon RyanCahoon is online now
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: [TBA]: Team info update?

Sounds like user agent sniffing to me. Could be hacked by setting the user agent (i.e. in PHP as described here) in whatever scripts are used, but it seems to me that a site as prominent in the FIRST community as TBA should be able to work out something a little more "over the table" with FIRST.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2009, 02:29
Matt Keller Matt Keller is offline
Registered User
FRC #0108 (SigmaC@T))
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Orlando, FL
Posts: 76
Matt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond reputeMatt Keller has a reputation beyond repute
Re: [TBA]: Team info update?

The issue is that they switched TIMS data over to a secure site, and PHP lacked any SSL support until 4.3.0, and ever since it has been rather flaky. As an alternative without fooling with any libraries, you may be able to use fsockopen() to create a SSL or TLS socket. More than likely your host has heavy restrictions on socket-related functions, especially if you are on a shared hosting plan.

When they made the switch last season, I immediately updated my scripts to utilize the cURL library, which works beautifully in this situation. Many hosts now support it and I definitely recommend going this route.

Here would be a simple cURL replacement for file_get_contents():

Code:
<?php
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://example.com');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

// display file
echo $file_contents;
?>

and a replacement for file():

Code:
<?php
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://example.com');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
$lines = array();
$lines = explode("\n", $file_contents);

// display file line by line
foreach($lines as $line_num => $line) {
    echo "Line # {$line_num} : ".htmlspecialchars($line)."<br />\n";
}
?>
If you are unable to use these methods and can not get anything to work, I am more than willing to help out.

Hope this helps!
__________________

sigmacats.org @frc108

Last edited by Matt Keller : 12-01-2009 at 02:48.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2009, 06:08
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: [TBA]: Team info update?

Quote:
Originally Posted by EHaskins View Post
I'm curious if they were having an issue with abuse.
I think a more likely explanation is they are trying to optimize the page for the user agent it detects. Their site has to handle a large amount of traffic and intentionally blocking screen scraping seems like a wasted effort to me.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2009, 09:32
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: [TBA]: Team info update?

Quote:
Originally Posted by jtdowney View Post
I think a more likely explanation is they are trying to optimize the page for the user agent it detects. Their site has to handle a large amount of traffic and intentionally blocking screen scraping seems like a wasted effort to me.
I don't think they do any page optimization based on client. FIRST's TIMS system is pretty old and hasn't seen any substantial updates in the last few years. What would be the best is if they implemented an actual API that provided structured XML so that teams could more easily write applications that utilized FIRST's data.

Ultimately, I feel that FIRST underutilizes their website, and could do a lot to promote and help the community. Potential sponsors and people looking for "official" info need a very different experience than students and mentors currently on teams, and I don't think FIRST does a very good job catering to the latter group right now.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-01-2009, 20:31
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: [TBA]: Team info update?

Quote:
Originally Posted by Greg Marra View Post
I don't think they do any page optimization based on client. FIRST's TIMS system is pretty old and hasn't seen any substantial updates in the last few years. What would be the best is if they implemented an actual API that provided structured XML so that teams could more easily write applications that utilized FIRST's data.

Ultimately, I feel that FIRST underutilizes their website, and could do a lot to promote and help the community. Potential sponsors and people looking for "official" info need a very different experience than students and mentors currently on teams, and I don't think FIRST does a very good job catering to the latter group right now.
If FIRST had an API to retrieve public information from TIMS it would probably make many lives easier. However from my understanding they outsource almost all of that stuff to a company, 4x media or something similar.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #9   Spotlight this post!  
Unread 12-01-2009, 22:52
Chris Marra's Avatar
Chris Marra Chris Marra is offline
The Blue Alliance Staff / 177 Alum
no team (TBA / Bobcat Robotics)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2005
Location: South Windsor, CT
Posts: 309
Chris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond reputeChris Marra has a reputation beyond repute
Re: [TBA]: Team info update?

Quote:
Originally Posted by jtdowney View Post
If FIRST had an API to retrieve public information from TIMS it would probably make many lives easier. However from my understanding they outsource almost all of that stuff to a company, 4x media or something similar.
4fx, IIRC, is the company that has been responsible for helping with competition control systems in the past few years since they stopped contracting Hatch Technologies. They wrote the match pairing algorithms and the software used at the regional to handle rankings and brackets, which exports the data to the FIRST website. This might export awards to TIMS, but TIMS is an older system than 4fx, and possibly than Hatch.
__________________
Team 177 - Bobcat Robotics
Reply With Quote
  #10   Spotlight this post!  
Unread 13-01-2009, 03:05
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: [TBA]: Team info update?

I have no problems with PHP 5.2.6 or wget 1.11.4 irrespective of user agent (the user_agent setting and -U argument respectively). (I forgot how much whitespace they use though.) Try again?
__________________
Help standardize match data! Use the XML interchange format. (Specification page)
AAA_awright on Freenode IRC chat. (Join us at ##FRC on chat.freenode.net, or in your browser)
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[TBA]: Info sent to cell phone... Don Wright The Blue Alliance 12 18-04-2008 20:23
[TBA]: Name/Nickname Update Ran Greg Marra The Blue Alliance 0 21-03-2008 10:00
[TBA]: outdated Team Info in Match Archives adengler The Blue Alliance 5 08-03-2008 14:57
**FIRST** **FVC Team Info** **Important Template Info** Mark McLeod FIRST Tech Challenge 0 21-02-2007 12:41
Update Contact Info TIMS sanddrag Regional Competitions 3 03-10-2002 12:48


All times are GMT -5. The time now is 19:46.

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