General add-ons

 
 
Picture of Julio Caiza
Re: Release of VPL 2.0
 
Hello again Juan, I had though about upload to VPL a .zip file with some Java source files, then to modify the vpl_evaluate.sh script to grade in a particular way. The problem is about upload and send the zip file to the jail. I just made some tests and I think that the file is arriving corrupted to the jail. It is because the original zip file size is 9 KB, I see in the user directory in the jail and the file arrives with 6 B. Could you suggest me something? considering that I can't make a preprocessing in the Moodle server before send the files to the jail or would it be the only solution? Thanks in advance, Julio
 
Average of ratings: -
Picture of Juan Carlos Rodríguez-del-Pino
Re: Release of VPL 2.0
 

Hello Julio,
At this moment VPL can’t handle binary files. This feature is in the VPL TODO list. There is a workaround for this problem: you can code the content of a binary file to (for example)  base64 and decode the file content in the server. The problem here is that you need to change the default script to decode the file. In the next VPL release, the decode process will be added in the default script and all the files with b64 extension will be decoded to a binary file with the same name but with the b64 extension removed.
I hope that this help.
Best regards.

 
Average of ratings: -
Picture of Julio Caiza
Re: Release of VPL 2.0
 

Thanks Juan Carlos,

It was helpful.

 

Regards

Julio

 
Average of ratings: -