Activities: Virtual programming lab

mod_vpl
Maintained by Picture of Juan Carlos Rodríguez-del-Pino Juan Carlos Rodríguez-del-Pino
VPL is an activity module to manage programming assignments
420 sites
1k downloads
19 fans

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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

Picture of Juan Carlos Rodríguez-del-Pino
Juan Carlos Rodríguez-del-Pino (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Juan Carlos Rodríguez-del-Pino
    Tue, 13 Oct 2015, 5:25 PM
    Hello Slobodan,
    the VPL evaluation has nothing to do about any internal representation of information of evaluated programs. The evaluation process gives the input to the evaluated program. The evaluated program manages the input data.
    If you write a program that take the data from the standard input, the data at the "input=" statement must be the same that you type as input when you run the program.

    Best regards.
  • Picture of Simon Thomas
    Wed, 25 Nov 2015, 7:18 AM
    Are you going to do a 3.0 update?
  • Picture of Juan Carlos Rodríguez-del-Pino
    Wed, 25 Nov 2015, 11:43 PM
    Hello Simon,
    VPL 3.1.4 can be used on Moodle 3.0.
    We are working hard to release VPL 3.2.

    Best regards.
  • Picture of Evan MacDormand
    Wed, 9 Dec 2015, 11:04 PM
    Hi Juan,
    I am interested in using this plugin to teach c#. I was wondering if you had a detailed installation and setup guide some place to get it working with moodle?
  • Picture of Juan Carlos Rodríguez-del-Pino
    Thu, 10 Dec 2015, 12:07 AM
    Hi Evan,
    the available documentation (not too much) is shown at
    http://vpl.dis.ulpgc.es
    There is a demo site and links to documentation kindly offered by other users.

    If you have questions you can ask at the forum.
    - To start, you must know about Moodle, and you or somebody expert how to install plugins (it's really easy)
    - Finally, you must get an execution server to run your tasks (the plugin, by default, uses a demo server).

    Best regards.
  • Picture of Evan MacDormand
    Thu, 10 Dec 2015, 4:17 AM
    I've got the plugin installed on my site, but I'm not sure how to set it up for the c# language. I'm assuming that has something to do with the jail server? Does the jail server have to be local to the moodle installation, or can it be remote as well?
  • Picture of Juan Carlos Rodríguez-del-Pino
    Fri, 11 Dec 2015, 9:50 PM
    HI Evan,
    If you are using the latest VPL version then you only need to write C# code (.cs extension). The main procedure must be in the first code file.
    The demojail server can help you to test your system but then you must install your own jail server in a "remote server", it's not recommended to install it on the moodle server.

    Best regards.
    Juan Carlos
  • Picture of Denis Bouhineau
    Fri, 29 Apr 2016, 11:02 PM
    Thanks for your contribution!
    I'm trying to use it with swi-prolog, and I can't try to make it read the input.
    Any idea?
    My prog looks like http://ideone.com/9HirfX (very short: input, output, halt!), in prolog it's
    :- readln(Input), writeln(Input), halt.
    But the console does not appear in "run", and compilation get in infinite loop in "evaluate"...
  • Picture of Juan Carlos Rodríguez-del-Pino
    Wed, 4 May 2016, 11:40 PM
    Hello Denis,
    The script that launch swi-prolog try in a first fase to check sintacticaly the code, but the input/output was not considered, the test was stalled trying to read an input.
    To resolve this try using the following code as your vpl_run.sh as a workaround before I resolve the issue in the next release.

    Best regards.
    vpl_run.sh
    -------------------------
    #!/bin/bash
    . common_script.sh
    check_program swipl
    swipl -q -s $VPL_SUBFILE0 -t halt 1>/dev/null < /dev/null
    cat common_script.sh > vpl_execution
    echo "swipl -q -L32M -s $VPL_SUBFILE0" >>vpl_execution
    chmod +x vpl_execution
  • Picture of Denis Bouhineau
    Sun, 8 May 2016, 9:07 PM
    Thank you, it works.

    Best for you.
  • Picture of John Blesswin
    Thu, 30 Jun 2016, 6:33 PM
    Hi
    I would like to know whether editor window can be enlarged.
    Also want to know the gcc version number.
    Also in Octave compiler its not supporting imread function. can you clarify
    regards
    John Blesswin
  • Picture of Juan Carlos Rodríguez-del-Pino
    Sat, 2 Jul 2016, 4:19 PM
    Hi John,
    the editor has a button "fullscreen" (its correct name might be "fullwindow") that lets you use the full window. It hides elements outside the editor. If you also set your browser in fullscreen mode (F11) you will get the maximum room.
    VPL uses the version of gcc that you installed in your jail server.

    Please, describe with more details your problem with Octave imread. Beware that the current versión of VPL is incompatible with binary files. As a workaround you can use binary files in base64 format. e.g. if I want to use a file image.jpg, I must convert the file to base64 and save it as image.jpg.b64. During your program execution you will get access to a the file image.jpg. (the system will decode image.jpg.b64 to image.jpg)

    Best regards.
  • Picture of Horatiu Brinza
    Wed, 2 Nov 2016, 4:01 AM
    Hi Juan,

    Can I use this plugin, along with the jailserver, to run PHP assignments?

    Thank you,
    Horatiu
  • Picture of Juan Carlos Rodríguez-del-Pino
    Thu, 3 Nov 2016, 11:54 PM
    Yes, you can use VPL+jail server to run PHP assignments. VPL 3.1.X default script can run PHP5 CLI but not web programs. VPL 3.2 default script will run PHP to run web applications. But VPL is flexible anought to allow assigments of PHP web applications.
    You can use and customize the default script of VPL3.2 for PHP and use it as vpl_run.sh

    https://github.com/jcrodriguez-dis/moodle-mod_vpl/blob/v3.2/jail/default_scripts/php_run.sh

    If you are using php7 remove php5 from line 10.

    Best regards,
    Juan Carlos.
  • Picture of Juan Carlos Rodríguez-del-Pino
    Fri, 4 Nov 2016, 12:14 AM
    Notice that you must reduce the security level of the firewall in the jail server service configuration to run PHP for a web application.
1 2 3
Please login to post comments