1 / 10

Iteration I CPP group

Iteration I CPP group. Members: Chris Conry Zach Weaver Kevin Toplak Tyler Herzog (L) Kevin Basista. Goals. Functional Site to test development Basic authentication File upload Link to compiler to compile code Research XML parsing . Site Layout. Sandbox.html. Splash.html.

regis
Download Presentation

Iteration I CPP group

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Iteration ICPP group Members: Chris Conry Zach Weaver Kevin Toplak Tyler Herzog (L) Kevin Basista

  2. Goals • Functional Site to test development • Basic authentication • File upload • Link to compiler to compile code • Research XML parsing

  3. Site Layout Sandbox.html Splash.html Assignments.html • Simple layout • Login can be bypassed for Sandbox

  4. Page Design • Style sheet created using RapidWeaver • Keeps design consistent • Work area on left, controls on right • Sandbox Page

  5. CGI • Allows for executing scripts on server • Writing ours in python • This approach keeps our scripts separate from the sites • Needed .htaccess file to enable executable scripts Options +ExecCGI AddHandlercgi-script .cgi .py

  6. File Upload • Decided on Drag’N’Drop • Only one code verification • Simple, see the code right away

  7. Calling Compiler • Python (CGI) script called on button click • Saves textarea content to .cpp file • Simple Popen() call cmd = ["g++", "-o", "compiledfrompython", "prog.cpp"] p= subprocess.Popen(cmd) p.wait()

  8. Next Steps • Linking GDB • Handled via python commands • Begin working with XML • Design Assignments.html

  9. Questions?

More Related