Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-02-23

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:28 ionparticle joined #webwork
13:22 mgage morning
13:54 JohnTravis joined #webwork
14:20 aubreyja joined #webwork
14:35 JohnTravis joined #webwork
15:21 mgage JohnTravis: aubreyja:  any items you want to bring up at the web conference call?
15:30 JohnTravis Hey.  Focusing on getting sql to work right on this laptop so that I can have WW running locally.
15:30 JohnTravis Nothing important for the web conference.  Just an announcement that our panel is approved although most everyone should already know.
15:31 JohnTravis Well, we could chat about the idea of creating a secondary education users advisory panel
15:33 JohnTravis Following this thread, we could chat about efforts to market WW within the secondary community.  I really like the idea of using NCTM state meetings if possible.
15:39 mgage ok
16:27 JohnTravis BTW, I may join late today.  I have students dropping by the office today till 11am.  I messed up and created "extra credit" slots in Moodle till 11 instead of 10:30.  Of course, the last two slots after 10:30 were the first ones picked.
16:31 aubreyja Hi call?
16:53 JohnTravis I'm through...what are we talking about?
16:54 mgage webconference for high school and github management
16:54 JohnTravis thanks
17:24 JohnTravis Just remembered...did anything get decided regarding iOS project?
17:25 mgage I am assuming it is a go.  John Hammond is already working on it
17:25 JohnTravis great.  Just had not heard.
17:35 aubreyja Hi Mike - is there a way to disable the submit answers button in a problem based on the number of attempts?
17:36 aubreyja We're using Paul's periodic rerandomization macro, and on attempts = 0 mod n it generates a button to get a new version of the problem
17:36 mgage hmmm -- don't know -- I don't think it's implemented at the moment
17:36 aubreyja but the submit buttons answer remains
17:36 aubreyja however, Paul's idea was that 0 mod n would also show the solution to the current version so students wouldn't expect to be able to submit the answer for the current version
17:37 mgage I have a feeling that currently the submit button remains until the due date -- even if you have used up all of your answers --- is that true?
17:37 aubreyja as it is,  a new seed is generated 0 mod n, but the displayed problem is the old version of the problem
17:38 mgage just check the behavior on a regular problem with a limited number of attempts.
17:38 aubreyja good question...
17:39 mgage if the submit button does check the number of attempts to decide what to display then we should be able to replace it with check answer (at least) by manipulating the number of attempts remaining -- which you can do from within the webwork problem -- otherwise we need a new communication channel
17:40 aubreyja ah, it does disappear!
17:40 aubreyja ok, I think I can figure this out then
17:42 aubreyja where is the logic for the submit button? ContentGenerator/Problem.pm?
17:43 mgage Mostly it's there -- in the preheader initialize subroutine I think.  There might be a little work in PG.pl ENDDOCUMENT or Translator.pm about what is being passed back -- but I think most of it is in Problem.pm
17:43 aubreyja great, thanks
17:44 mgage Compare that file with recent versions before you do a lot of work -- there has been a lot of upgrades to Problem.pm -- I think most of it is in trunk already however.
17:44 aubreyja some of Paul's stuff should probably be moved into pg/macros - it's useful stuff and pretty well done I think
17:45 mgage yes --- it would be fine with  me if you just do that -- that will help increase our practice with git as well :-)
17:45 mgage there may be a few additional union files that should be moved there as well
17:46 aubreyja ok, I'll do it - should I ok it with Paul first? This will be a good way to get him using his talents for system programming, not just for his problem collection
17:47 aubreyja I wonder if one of these can_**Answers functions disables the submit button
17:50 aubreyja oh, so there is a $can{getSubmitButton} check in Problem.pm….
17:50 mgage back
17:50 mgage sure  -- check with Paul
17:55 mgage there are  want   can and must hashes -- don't know if you want the "can" or the "want" hash to trigger the submitButton
17:57 mgage the logic for hiding the button once number of allowed attempts is exceeded is in can_recordAnswers
17:57 mgage so the submitButton is currently tied closely to recording answers -- this might be what you want to continue
17:58 aubreyja are there?  I can print %envir in a problem, but not %can
17:59 mgage the %can is local to Problem.pm -- you can't influence it directly from PG
17:59 aubreyja e.g. foreach(keys %envir){ TEXT("$_ => $envir{$_}$BR");}
17:59 aubreyja ah
17:59 mgage there is a cleaner way to get the environment in PG.   use the macros ing PGinfo.pl
18:01 mgage also make sure your version of Problem.pm has an output_submit_button subroutine -- if it doesn't it's pretty old and you'd have an easier time modifying a newer version.
18:02 aubreyja basically, I'm trying now to see if I can set $can{recordAnswers} to 0 when attempts are 0 mod n - it seems like that should be possible, because problems already do that (it seems) when $envir{numAttempts} gets larger than maxAttempts - is that right?
18:04 aubreyja I've got output_submit_buttons - is that right?
18:04 mgage you can see where this is done in can_recordAnswers   it checks the number of attempts in the problem and the maximum number of attempts -- you can control those two numbers I think.
18:04 mgage yes
18:30 aubreyja Mike - , in PG.pl 291-292 why can't I set $recordSubmittedAnswers = 0 as I can set $showPartialCorrectAnswers = 0 in a problem and have an effect?
18:32 mgage probably should be able to -- check to see what happens next
18:35 aubreyja well, I submit the answers and at the bottom I'm still ltold "Your score was recorded" and  a score is recorded
18:36 mgage you can check the flag that's been set in PG.pl -- it seems to be passed back through Translator.pm to PG.pm/Local.pm  and then to Problem.pm  --see what is done with the flag there
18:40 mgage as far as i can tell that flag is not checked in determining whether you can record submitted answers
18:44 mgage you could add it to the logic in can_recordAnswers -- use $Problem->{flags}->{recordSubmittedAnswers} to access it.
18:44 mgage afk for a while
18:45 aubreyja thanks - I'll have to look at this later - I've got a meeting at 1 and then another at 3; I'll probably be back around 4 or so
18:45 aubreyja not $pg->{flags}->{recordSubmittedAnswers}?
18:46 aubreyja that seems to be how showPartialCorrectAnswers is accessed in Problem.pm
19:23 mgage that too -- it depends on where you make the changes --- inside can_recordAnswers that variable is $Problem, I think.  -- it's being accessed from the database -- so the call might be different   --- in any case I'm beginning to think that you might want to modify the %want hash and not the %can hash -- you are kind of requesting that the submit button be turned off.
20:47 JohnTravis joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary