Functional Site Development: Iteration.ICPP.group
100 likes | 194 Vues
Collaborative project by Chris, Conry, Zach, Kevin, Tyler, and Kevin. Features basic authentication, file upload, compiler linking, XML parsing research, and consistent design through RapidWeaver style sheets.
Functional Site Development: Iteration.ICPP.group
E N D
Presentation Transcript
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