Go to Post You are certainly welcome to demonstrate your geekiness on a regular basis! :) - Cynette [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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
  #20   Spotlight this post!  
Unread 07-02-2011, 10:01
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: your favorite equations for build seasion

Quote:
Originally Posted by lineskier View Post
A nice little as3 script for parsing the FIRST website

PHP Code:
var temp:ArrayCollection ArrayCollection(event.result);
                var 
tempString:String "";
                var 
sentUrl:String temp.getItemAt(0) as String;
                var 
eid:String sentUrl.substr(sentUrl.search("eid=")+4,sentUrl.length);
                
eid eid.substr(0,eid.search("&"));
                for(var 
n:int 1temp.lengthn++){
                    
tempString+=temp.getItemAt(n);
                }
                
tempString tempString.substr(tempString.search('<tr bgcolor="#FFFFFF">'),tempString.length);
                
tempString tempString.substr(0tempString.search('</table>'));
                var 
i:int tempString.search('\t');
                while( 
!= -1){
                    
tempString tempString.replace('\t',' ');
                    
tempString.search('\t');
                }
                
tempString.search('<br />');
                while( 
!= -1){
                    
tempString tempString.replace('<br />',' ');
                    
tempString.search('<br />');
                }
                
tempString.search('nowrap');
                while( 
!= -1){
                    
tempString tempString.replace('nowrap',' ');
                    
tempString.search('nowrap');
                }
                
                
tempString "<table>" +tempString+"</table>";
                var 
xml:XML XML(tempString);
                for(
0xml.children().length(); i++){
                    var 
location:String xml.child(i).child(0).child(0).toString();
                    var 
name:String xml.child(i).child(1).child(0).toString();
                    var 
url:String "https://my.usfirst.org/myarea/index.lasso?page=event_details&eid="+eid+"&-session=myarea:C77D640504fbb2FB82SVt2270655"
                    
var number:String xml.child(i).child(2).child(0).child(0).toString();
                    var 
service:EventService = new EventService();
                    
service.addMember(parseInt(eid),parseInt(number));
                } 
I think we need to introduce you to our friend the regular expression...

Favorite equation for this build season? Torque = r x F. Law of Cosines comes in a close second. Though, I am also a pretty big fan of: Position = ∫∫Acceleration and the cylindrical coordinate system.
__________________




.
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 10:11.

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