Online Judge 1.4.1 released and 2.0 roadmap

19 views
Skip to first unread message

Zhigang Sun

unread,
Aug 19, 2010, 2:26:09 AM8/19/10
to sunner-moodle-plugins
Dear all,

Online judge 1.4.1 was released with the following improvments:
  • Added statistics in judge summary. Users can see the success rate and more.
  • Upgraded syntaxhighlighter to 3.0.83
  • Fixed some minor bugs

Since Moodle 2.0 will come soon, we will keep up with it. The Online Judge 1.x and Anti-plagiarism 1.x branches will include bugfix only. The 2.0 version of them will not only support moodle 2.0 but also have a redesign to integrate with moodle 2.0 better. The Online Judge will be a moodle lib so that you can use it in assignment, quiz and more. The Anti-plagiarism will be a plugin of moodle's new plagiarism lib which is scheduled to be included in moodle 2.0, so that there will be a better user experience.

But now, I can't tell the due date of release since these projects are really spare time projects. We hope there could be some results half a year later. 

If you have any suggests about 2.0, feel free to post here. Thank you!
 
--
哈尔滨工业大学(Harbin Institute of Technology)
孙志岗(Sun Zhigang)
http://sunner.cn

chunbo bao

unread,
Sep 10, 2010, 3:10:45 AM9/10/10
to sunner-moo...@googlegroups.com
志岗,你好!
教师节快乐!

我今天安装了onlinejudge 1.4.1,第一次安装,按照你的安装步骤做的,我装的是window版的,现在有点问题:

1. 在做第4步 apply的时候出错了,错误信息是
WARNING!!! The code you are using is OLDER than the version that
made these databases!
Version mismatch: resource can't downgrade 2007101510 -> 2007101509 !
不能进入到那个页面
2.第5步成功创建了
现在在moodle中出现了作业"typeonlinejudge"
我试验一个程序不能在线评测
请帮助解决一下。
谢谢!

> --
> You received this message because you are subscribed to the Google Groups
> "Sunner Moodle Plugins" group.
> To post to this group, send email to sunner-moo...@googlegroups.com.
> To unsubscribe from this group, send email to
> sunner-moodle-pl...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sunner-moodle-plugins?hl=en.
>

Jerry

unread,
Sep 17, 2010, 9:33:41 AM9/17/10
to Sunner Moodle Plugins
Hi,

I can't manage to make this new version work.
I did all that it is reasonable, even restarted the web server (due
to new global variables in PHP).


I was getting
"Internal Error/AUTH_ERROR"
after restarting httpd server AND judge I get only
"Internet Error/A"

I already checked for passwords and for free submissions limits in
ideone.


Can you help me?

Jerry

On Aug 19, 3:26 am, Zhigang Sun <sun...@gmail.com> wrote:
> Dear all,
>
> Online judge 1.4.1 was released with the following improvments:
>
> - Added statistics in judge summary. Users can see the success rate and
> more.
> - Upgraded syntaxhighlighter to 3.0.83
> - Fixed some minor bugs
>
> You can download it athttp://code.google.com/p/sunner-projects/downloads/detail?name=online...
>
> Since Moodle 2.0 will come soon, we will keep up with it. The Online Judge
> 1.x and Anti-plagiarism 1.x branches will include bugfix only. The 2.0
> version of them will not only support moodle 2.0 but also have a redesign to
> integrate with moodle 2.0 better. The Online Judge will be a moodle lib so
> that you can use it in assignment, quiz and more. The Anti-plagiarism will
> be a plugin of moodle's new plagiarism
> lib<http://docs.moodle.org/en/Development:Plagiarism_API>which is
> scheduled to be included in moodle 2.0, so that there will be a
> better user experience.
>
> But now, I can't tell the due date of release since these projects are
> really spare time projects. We hope there could be some results half a year
> later.
>
> If you have any suggests about 2.0, feel free to post here. Thank you!
>
> --
> 哈尔滨工业大学(Harbin Institute of Technology)
> 孙志岗(Sun Zhigang)http://sunner.cn

On Aug 19, 3:26 am, Zhigang Sun <sun...@gmail.com> wrote:
> Dear all,
>
> Online judge 1.4.1 was released with the following improvments:
>
> - Added statistics in judge summary. Users can see the success rate and
> more.
> - Upgraded syntaxhighlighter to 3.0.83
> - Fixed some minor bugs
>
> You can download it athttp://code.google.com/p/sunner-projects/downloads/detail?name=online...
>
> Since Moodle 2.0 will come soon, we will keep up with it. The Online Judge
> 1.x and Anti-plagiarism 1.x branches will include bugfix only. The 2.0
> version of them will not only support moodle 2.0 but also have a redesign to
> integrate with moodle 2.0 better. The Online Judge will be a moodle lib so
> that you can use it in assignment, quiz and more. The Anti-plagiarism will
> be a plugin of moodle's new plagiarism
> lib<http://docs.moodle.org/en/Development:Plagiarism_API>which is

Zhigang Sun

unread,
Sep 17, 2010, 10:33:43 AM9/17/10
to sunner-moodle-plugins
Hi,

Sorry for the inconvenience. 

Could you tell me the following information?
  1. The version number of OJ which you upgraded from.
  2. The programming language you set to test the 1.4.1.
  3. The source code you submitted to test the 1.4.1.
  4. Have you ever set $CFG->assignment_oj_ideone_username and $CFG->assignment_oj_ideone_password in config.php?


2010/9/17 Jerry <gxe...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Sunner Moodle Plugins" group.
To post to this group, send email to sunner-moo...@googlegroups.com.
To unsubscribe from this group, send email to sunner-moodle-pl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sunner-moodle-plugins?hl=en.

Zhigang Sun

unread,
Sep 17, 2010, 11:01:24 AM9/17/10
to sunner-moodle-plugins
I just noticed that ideone.com has fixed a bug in its API. OJ 1.4.1 was patched to fit the bug. Since the bug has gone, OJ should revert the patch. This only affect the user who doesn't set ideone username & password correctly.

All users of OJ 1.4.1 could resolve this manually. Open assignment.class.php of OJ, find the following line (line number 1116):

$result->info = $webid['error']['error'];

change it to:

$result->info = $webid['error'];

That's all.

To Jerry,

After applying the above change, try rejudge, and the error message should turn back to AUTH_ERROR. Therefore, the most possible reason causing your problem is you doesn't set the two $CFG->variables I mentioned in previous mail well. Please refer http://code.google.com/p/sunner-projects/wiki/OnlineJudgeInstallation#3._Configure to know how.

2010/9/17 Zhigang Sun <sun...@gmail.com>

Geraldo Xexeo

unread,
Sep 17, 2010, 11:13:28 AM9/17/10
to sunner-moo...@googlegroups.com
Hi,

Thanks for your help

   I upgraded from the previous version, since I had installed it a
short time ago, however I confess that I deleted the previous version
instead of copying over it.

I can say that $plugin->version was 2010042800
and now is 2010070601

   I tested in Forth and Python

  Source code for Python (very simple!)

-----------
      print(12)
---------------

   Source code for Forth
---------------
32 constant #size

create numero #size chars allot
variable flag
-1 flag !

: saccept 1 - swap 1 + swap accept ;

: lerNumero ( end -- )
dup #size saccept swap c! ;

: whileNot42
-1 flag ! \ Inicializa a flag, para comecar o while
begin
flag @
while
numero lerNumero
numero number drop \ Converte a string para inteiro e remove o status
da stack, deixando
\ apenas o numero na stack
42 = if
0 flag !
then
flag @ -1 = if numero count type ." " then \ Se flag for -1 entao nao achou
\ Pode imprimir
repeat
;
whileNot42

------------------


Have you ever set $CFG->assignment_oj_ideone_username and
$CFG->assignment_oj_ideone_password in config.php?

Yes, I set both in config.php, in the MOODLE directory. Although I
reset my password to the value in this file at least 3 times, I am not
able to test if they are working, since I am not familiar with SOAP
programming and the examples at the ideone site are very bad. If you
can send me a simple program that I can use to test for login/password
I could do it from my computer.

Cheers,

Jerry

2010/9/17 Zhigang Sun <sun...@gmail.com>

--
Geraldo Xexéo, D.Sc.
Coordenador do Programa de Engenharia de Sistemas e Computação - COPPE/UFRJ
Coordenador do Fórum de Coordenadores de Pós-Graduação da Sociedade
Brasileira de Computação
Professor Adjunto - DCC/IM/UFRJ
Professor do MBA em Engenharia de Software da Escola Politécnica da UFRJ

Geraldo Xexeo

unread,
Sep 17, 2010, 11:35:22 AM9/17/10
to sunner-moo...@googlegroups.com
Just to confirm, both variables should be set on Moodles config.php,
not on a onlinejudge file?

Thanks,
Jerry

2010/9/17 Zhigang Sun <sun...@gmail.com>:

--

Geraldo Xexeo

unread,
Sep 17, 2010, 3:30:16 PM9/17/10
to sunner-moo...@googlegroups.com
Hi,

After re-checking for the fifth time, I found a mispelling in the
$CFG variables.

However, I notice that there is a lot of sensitivity to the fact
that a test case does not end with a CR, causing Pending... as status.
I fixed it changing my test cases to include a CR in the end (well, at
least for Forth).

Cheers,

Jerry

Zhigang Sun

unread,
Sep 17, 2010, 9:19:41 PM9/17/10
to sunner-moodle-plugins
On Sat, Sep 18, 2010 at 03:30, Geraldo Xexeo <xe...@cos.ufrj.br> wrote:
Hi,

  After re-checking for the fifth time, I found a mispelling in the
$CFG variables.

  However, I notice that there is a lot of sensitivity to the fact
that a test case does not end with a CR, causing Pending... as status.
I fixed it changing my test cases to include a CR in the end (well, at
least for Forth).

It is the first time I get report about this problem. And I tested it using Java just a minute ago. Everything is Ok.

Perhaps the program you judged requires the last CR. If there is no CR, it will wait forever (pending) and killed by ideone (time limit exceed) at last.

Geraldo Xexeo

unread,
Sep 17, 2010, 9:31:42 PM9/17/10
to sunner-moo...@googlegroups.com
I believe you are right
Thanks for your help.
Jerry
Reply all
Reply to author
Forward
0 new messages