100 likes | 187 Views
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.
E N D
Iteration ICPP 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 Assignments.html • Simple layout • Login can be bypassed for Sandbox
Page Design • Style sheet created using RapidWeaver • Keeps design consistent • Work area on left, controls on right • Sandbox Page
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
File Upload • Decided on Drag’N’Drop • Only one code verification • Simple, see the code right away
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()
Next Steps • Linking GDB • Handled via python commands • Begin working with XML • Design Assignments.html