## Activities: Virtual programming lab

mod_vpl
Maintained by Juan Carlos Rodríguez-del-Pino
VPL is an activity module to manage programming assignments
14k
285
12
Moodle 2.7, 2.8, 2.9
##### The development team of VPL for Moodle is conducting a survey about possible improvements.  This survey will take you less than 5 minutes. By filling this survey, you are helping the evolution of VPL in the best way.

VPL- Virtual Programming Lab is a activity module that manage programming assignments and whose salient features are:

• Enable to edit the programs source code in the browser
• Students can run interactively programs in the browser
• You can run tests to review the programs.
• Allows searching for similarity between files.
• Allows setting editing restrictions and avoiding external text pasting.

### Contributors

• Thu, Oct 10, 2013, 10:36 AM
Thanks Juan! I've updated your tracker to point to your vpl project now.
• Thu, Mar 20, 2014, 4:21 AM
Hi Juan,

Thank you for this impressive plugin

After playing around with it, I found some issues you might like to fix:
in matlab_run.sh
-#52 echo "xterm -e matlab -nosplash" >> vpl_wexecution
+#52 echo "xterm -e matlab -nosplash" >> vpl_execution

I noticed that the the jail build script cannot remount the mount bind correctly. So my Jail ended with all mounts rw.
in vpl-jail-system.initd
-#174 mount -o remount,ro,nosuid "$JAILPATH$1"
+#174 mount -o remount,ro,nosuid,bind "$JAILPATH$1"

the "bind" option seems to be the only "workaround" to get the remount working?

I'm using Debian 7.2 amd64

regards Mario
• Fri, Mar 21, 2014, 1:24 AM
Thanks Mario, for your bug report and thanks again for your fix.

Regards,
Juan Carlos
• Sun, Apr 20, 2014, 8:15 PM
Hello,
when using moodle with RTL language the VPL editor is appearing from RTL and it's not convenient.
what css code will influence just the editor to appear from LTR -

Thank you
• Mon, Apr 21, 2014, 8:10 PM
Hello James,
to resolve the issue of the editor do the following:
Add the following properties to the class vpl_ide_root
text-align:left;
direction:ltr;
in file "editor/VPLIDE.css"

to get a complete solution see changes in v3.1 in github
https://github.com/jcrodriguez-dis/vpl/tree/v3.1

Notice that the editor (http://ace.c9.io) can't manages correctly embedded rtl text .

Best regards.
• Tue, Sep 9, 2014, 6:42 AM
Hello,
Can I ask why the website of plugin is offline?

Best regards
• Tue, Sep 9, 2014, 5:35 PM
Sorry Zbigniew,
It is my fault, we are migrating the server to other system and it is taking more time than expected.
Best regards
• Thu, Apr 30, 2015, 3:46 PM
hello everyone, I have downloaded this plugin and successfully added it into my Moodle app, but when I ran the plug in and wrote a sample code on it, it doesn't have Run button or other functions that would allow me to test my code.
• Thu, Apr 30, 2015, 10:01 PM
Hello gm pepz,
If you are logged as teacher you can use any button (run/debug/evaluate). If you want to activate these buttons for students, you must go to the VPL activity that you want to manage and go to "Settings->Execution options" and select the features that you want to offer to your students.
Best regards.
• Sun, Aug 30, 2015, 12:17 AM
Hi juan,
Thanks for the wonderful VPl which you have created. We are a small development team located in India and we have customized your VPL for our needs. While working we have faced a small problem is that when we get a character input in C Language, test case gets failed. All the test cases gets evaluated only if i declare as a string.
• Sun, Aug 30, 2015, 12:17 AM
Hi Juan,
Does graphics programs in C can be evaluated in VPL??
• Sun, Aug 30, 2015, 12:18 AM
In VPL the font size is very small we find it very difficult to write programs. How to increase the font size of the editor.
• Sun, Aug 30, 2015, 3:25 AM
Hello Venkatesh,
1) I can't answer your question about automatic evaluation in C language because I can't reproduce your situation. Please, send me the definition of test cases and the code in C language that fails then I will reproduce your problem and try to resolve it.
2) Does graphics programs in C can be evaluated in VPL? This question really is not about. If you can test graphics programs in C outside VPL, then it's very possible to reproduce the test at VPL.
3) Increasing the font size temporarily, just push "CTRL and '+' key" in your browser. To increase the font size temporarily, just push "CTRL and '+' key" in your browser. Increasing the font size permanently is more difficult because it's in the code.

Please, do the next question at the forum
https://moodle.org/mod/forum/discuss.php?d=154988

Best regards
• Wed, Oct 7, 2015, 3:05 PM
Can we plug in other enviornments like j2ee , spring , hibernate into jail server? How do we do that
• Wed, Oct 7, 2015, 10:11 PM
Hello Deepa,
I haven't test to use an application server for Java in a jail server, but I think that it is possible to run it with some limitations. You must be aware that every execution start with the same data from the same point. If you manage to run a application server in user space then you 'll be able to run it in a jail server.
Note that
- You must choice a different port for every application server
- You can use firefox in the jail as browser
- The execution script must generate vpl_wexecution (not vpl_execution) to run in graphical mode

Best regards.
Juan Carlos