Go to Post A Mentor is.. A person you can talk to anything about and trust them to not throw it back in your face in any way shape or form and who will help you as much as they can to deal with the problems and situations in life... - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2004, 17:50
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
XML of the FIRST Q & A system

Hey all...

Intrested in seeing xml data from the FIRST Q & A system??

Check out http://usfirst.firstsn.org/xml/qa.php

You can use the following queries in your url to access different info.

The queries are:
section=[Section]
date=[Date]
mmddyyyy=[(MM/DD/YYYY)]
search=[Search]
status=[Status]
skip=[offset] **NOTE: MAX 25 DISPLAY**

An example url would be:
http://usfirst.firstsn.org/xml/qa.ph...tatus=answered

Take a look at the actual Q & A page to see what are the possible values you can enter for each of the fields.

Also, just to let anyone know, this script parses the FIRST site directly on every call so you'll be guarenteed fresh data.

If anyone has any questions's or actually finds a good way to use this let me know.

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**

Last edited by Jack : 13-01-2004 at 17:52. Reason: added an example url
  #2   Spotlight this post!  
Unread 13-01-2004, 22:43
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Re: XML of the FIRST Q & A system

Quote:
Originally Posted by Jack
Hey all...

Intrested in seeing xml data from the FIRST Q & A system??

Check out http://usfirst.firstsn.org/xml/qa.php

You can use the following queries in your url to access different info.

The queries are:
section=[Section]
date=[Date]
mmddyyyy=[(MM/DD/YYYY)]
search=[Search]
status=[Status]
skip=[offset] **NOTE: MAX 25 DISPLAY**

An example url would be:
http://usfirst.firstsn.org/xml/qa.ph...tatus=answered

Take a look at the actual Q & A page to see what are the possible values you can enter for each of the fields.

Also, just to let anyone know, this script parses the FIRST site directly on every call so you'll be guarenteed fresh data.

If anyone has any questions's or actually finds a good way to use this let me know.

Jack
What I really want to know is if it's possible to sort by newest posts... I find it rather annoying that the Q&A system only sorts by section and there's no option to sort by date - makes it very hard to look for new questions. FIRST - if you're out there, add an option to order the Q&A system by date... everything's from a database, so it's just a matter of adding a few lines of code.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #3   Spotlight this post!  
Unread 14-01-2004, 12:00
Petey's Avatar
Petey Petey is offline
Strategy & Gaming
AKA: Chris Peterson
None #1073 (Team F.O.R.C.E.)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Hollis-Brookline, NH
Posts: 644
Petey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond repute
Re: XML of the FIRST Q & A system

As a side note, I'd like to register my disappointment with this year's Q&A system. Some of the best engineers in the world can't do better than this? Not only is the page cluttered and hard to read, but the questions can't be sorted chronologically so you can't see what has changed since the last time you have been there. Furthermore--speaking as my team's official Q&A bottleneck--I have not been emailed a notice that my question has been answered a single time as of yet, and three of my questions have been answered. This is obviously at odds with the Q&A login page.

*shakes head in disgust*

$@#$@#$@#$@#.

--Petey
__________________

Bio:
Team 1073 alumnus, now Admissions Officer at MIT.

Thanks to all those who have helped me through FIRST over the years.
  #4   Spotlight this post!  
Unread 14-01-2004, 13:40
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: XML of the FIRST Q & A system

I'll add this to the portal if anybody thinks it would be a good thing.
Anybody got any ideas on what I should add, if any? (answered, new questions, etc)
__________________
Brandon Martus
e-mail
  #5   Spotlight this post!  
Unread 14-01-2004, 14:14
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: XML of the FIRST Q & A system

Newest five (or ten, whatever you want) answered questions.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #6   Spotlight this post!  
Unread 14-01-2004, 14:23
Petey's Avatar
Petey Petey is offline
Strategy & Gaming
AKA: Chris Peterson
None #1073 (Team F.O.R.C.E.)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Hollis-Brookline, NH
Posts: 644
Petey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond repute
Re: XML of the FIRST Q & A system

It would be great if you could include, say, the latest 5 asked questions and the latest 10 answered questions.

Brandon, do you think you'd be interested in making your little inclusion script open source if the people who used it on their site gave CD (and you) the credit for it?

--Petey
__________________

Bio:
Team 1073 alumnus, now Admissions Officer at MIT.

Thanks to all those who have helped me through FIRST over the years.

Last edited by Petey : 14-01-2004 at 14:26.
  #7   Spotlight this post!  
Unread 14-01-2004, 15:16
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: XML of the FIRST Q & A system

I'll add the 5 most recently answered questions.

As for making it open source, I'll see what I have when I'm done.
I'm not sure how much of it will be vB3-specific.
__________________
Brandon Martus
e-mail
  #8   Spotlight this post!  
Unread 14-01-2004, 15:57
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: XML of the FIRST Q & A system

Quote:
Originally Posted by SuperDanman
What I really want to know is if it's possible to sort by newest posts...
That is one thing that i noticed is a limitation of the current way that i run the script. There isn't an easy way of getting the latest posts. (IE.. just running the vanila query returns the oldest q&a's.)

I'll do whatever i need to do to fix that & see if i can get the page to load a lot faster. I might scarcifice parsing the FIRST page *every* load for the trade off of a better sorting system.

I'll give yall an update later.
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #9   Spotlight this post!  
Unread 14-01-2004, 21:54
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: XML of the FIRST Q & A system

Hey~

Well.. I updated http://usfirst.firstsn.org/xml/qa.php

As of now, it'll run a *ton* faster. The only downside to all of this is that the Q & A's will only be updated from the FIRST site every 15-30 min. SO.. While it won't be totally correct minute-to-minute, it'll be pretty close.

Here are the new values you can pass in the URL.

section=[This works just like the FIRST one. Passing 3 will return everything in and below section 3 such as 3.1, 3.1.1, etc.. Passing 3.1 will return things in 3.1 and below such as 3.1.1 and 3.1.2 BUT NOT 3.2]
date=[asc/desc] - Note: This is just an order by statement. desc will return the newest q&a's first, asc will return the oldest first
status=[answered/unanswered].. yup
start=[offset] - The script will only return a max of 30 records at a time. Start can be used to offset the beginning to start at like record 30 instead of record 0.

SO.. An example would be: http://usfirst.firstsn.org/xml/qa.ph...s=unansw ered

If you have any questions feel free to ask.

Hope this helps everyone!

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**

Last edited by Jack : 15-01-2004 at 12:22. Reason: cron now works
  #10   Spotlight this post!  
Unread 14-01-2004, 22:39
Petey's Avatar
Petey Petey is offline
Strategy & Gaming
AKA: Chris Peterson
None #1073 (Team F.O.R.C.E.)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Hollis-Brookline, NH
Posts: 644
Petey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond reputePetey has a reputation beyond repute
Re: XML of the FIRST Q & A system

Thanks Jack!

Hmm...now, how to import them onto a page and organize them so they're not a bundle of gibberish.

--Petey
__________________

Bio:
Team 1073 alumnus, now Admissions Officer at MIT.

Thanks to all those who have helped me through FIRST over the years.
  #11   Spotlight this post!  
Unread 15-01-2004, 12:28
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: XML of the FIRST Q & A system

hey.

Just to let ya all know..

The cron now works. That means that the xml data that you pull will be updated from the USFIRST site every 15 minutes.

Also.. If you're looking for an easy way to display a link directly to a specific Q&A, you can use...

http://my.usfirst.org/frc/qas/FMPro?...ind=&-token.3=

Set -token.3= Like the first 75 chars of the question or something. That will then search the Q&A's for whatever you put as -token.3 As long as you have enough of the question so that there is only one Q&A that matches it, you'll be good.

Maybe I'll get around to posting some code to parse the xml.. i dunno

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #12   Spotlight this post!  
Unread 16-01-2004, 23:24
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: XML of the FIRST Q & A system

Grr to usfirst.

Well.. it appears that first played a bit with the Q&A page. Anyways.. the long and short of it was that it threw off the parser and caused it to not end correctly. Anywho.. by the time i saw something was wrong, instead of 175 records in the database, there were over a million.

So.. for now, i've stopped the parsing. I don't want another occurance of this showing up again. I might remake this again in a few weeks when first has figured out the final source for the page.

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
Closed Thread


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
What do you wish you knew about the new control system? Joe Ross Control System 2 09-01-2004 21:47
XML And Link Raven_Writer Website Design/Showcase 13 26-09-2003 17:24
Need a FIRST Robotics control system kershawrobotics General Forum 3 07-07-2003 09:49
control system worth more than $500 archiver 2001 8 24-06-2002 02:00
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15


All times are GMT -5. The time now is 00:30.

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