Giter Site home page Giter Site logo

Comments (13)

sunner avatar sunner commented on June 4, 2024

Please provide full details about the procedure of:

  1. your installation of onlinejudge
  2. how you add the onlinejudge assignment

Thx.

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024
  1. installing on Linux:
    1. Decompress hit-moodle-moodle-local_onlinejudge-2ca62a3, rename it
    2. Put onlinejudge into /var/www/html/moodle/local/
    3. run /var/www/html/moodle/local/onlinejudge/cli/install_assignment_type. No error.
    4. Login my site as admin and access /admin/index.php. The installation success.
    5. run sudo -u apache /usr/bin/php /var/www/html/moodle/local/onlinejudge/cli/judged.php. show "Judge daemon successfully created. PID = 17966"
  2. Login my site as teacher and access My courses--Turn editing on--Weekly outline--Add an activity--Online Judge
    On Online Judge setting page:
    1) Programming language: C (gcc-4.3.4, ideone.com)
    2) filling Ideone API by my account and my password
    3) Other parts is default

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

I followed your steps but the problem is not reproduced. Instead, I met another problem since the testcases are not defined. I fixed the problem in the latest code. Can you test it to see whether it fixes your problem also? Thx.

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

I download the latest code, Updated the onlinejudge. test it agin, but the problem still occurs. I finded a other thing.: The Student submit online draft, but the teacher judge display "还没有提交文件". I think it may be the cause of the problem.

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

By the way, how can i upload a picture? thanks!

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Can you post the records in table mdl_assignment_oj_submissions here? Or, can you give me access to your site and database to debug? This is really odd problem and I can't reproduce it.

BTW: github comment does not support uploading pictures. You can upload them to picasa/flicker/others then link them here.

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

I just installed CentOS and moodle in my notebook. So do not remote access my stie. I export the recouds in the table mdl_assignment_oj_submissions, as follows:

-- 转存表中的数据 mdl_assignment_oj_submissions

INSERT INTO mdl_assignment_oj_submissions (id, submission, testcase, task, latest) VALUES
(1, 2, 1, 1, 0),
(2, 1, 1, 2, 1),
(3, 2, 1, 3, 1),
(4, 3, 2, 4, 1);

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Can you post all tables named mdl_assignment_oj* ?

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

-- 转存表中的数据 mdl_assignment_oj_testcases

INSERT INTO mdl_assignment_oj_testcases (id, assignment, input, output, usefile, feedback, subgrade, sortorder) VALUES
(1, 1, '', 'Let''s begin to learn C programming!', 0, '', '1.0000000000', 0),
(2, 2, '10 20', 'Let''s begin to learn C programming!', 0, '继续努力......', '0.7500000000', 0);

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

-- 转存表中的数据 mdl_assignment_oj

INSERT INTO mdl_assignment_oj (id, assignment, language, memlimit, cpulimit, compileonly, ratiope, ideoneuser, ideonepass) VALUES
(1, 1, '11_ideone', 8388608, 10, 0, '0.3000000000', 'alphakm', 'ynn@5038003&'),
(2, 2, '11_ideone', 1048576, 10, 0, '0.5000000000', 'alphakm', 'ynn@5038003&');

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

I add some restrictness in latest code which should not solve this problem but should be helpful for debuging. Try it and don't forget install_assignment_type

from moodle-local_onlinejudge.

alphakm avatar alphakm commented on June 4, 2024

The Student submit online draft, Submission auto judge without teacher's requesting.
2006002-2.c

Status: Accepted
Judge time: Wednesday, 10 August 2011, 10:11 PM (2 mins 6 secs early)

Details: Case 1: Accepted

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Oh. So the problem has gone? Ok. Close this issue

from moodle-local_onlinejudge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.