Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-08-28

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

All times shown according to UTC.

Time Nick Message
00:14 Paul_Pearson joined #webwork
05:48 rbeezer_ joined #webwork
13:40 goehle joined #webwork
16:01 aubreyja joined #webwork
16:29 goehle hey aubreyja
16:29 goehle I have a question
16:29 aubreyja sup?
16:29 goehle so I was checking out the lastest bugs
16:29 goehle (seem to be a lot of them at the moment)
16:29 goehle and thought I might be able to fix the Past Answers one
16:30 goehle I"m unsure what the best solution is
16:30 aubreyja Dick's recent bug?
16:30 goehle yeah
16:30 aubreyja just a sec - lemme read it again
16:30 goehle the problem is that when you hit stop acting the past answers page has issues
16:30 goehle the issues come from the fact that it expects the username, set and problem to be defined as parameters
16:31 aubreyja ah, I see - can you just do something like if(defined(...))...else ...
16:32 aubreyja where else gives a page that says 'need a student...'
16:32 aubreyja what did you have in mind?
16:56 goehle sorry had a student
16:56 goehle well there are two options
16:56 goehle the first is just to put some more error checking in there
16:57 goehle so when they hit stop acting the page says "you need to provide a student id, set id and problem id"
16:57 goehle thats kind of a cop out though, since, as instructors, they should still be able to see the past answers of that student
16:58 goehle however, because of the way things are set up, getting that information to survive the stop acting call might be a bit hacky
17:36 aubreyja can you grab it from the url params in the stop acting link?
17:40 goehle thats the issue, I guess
17:40 goehle the stop acting link only provides the "auth" parames
17:40 goehle I would need to add the option for the stop acting link to accept additional parameters
17:41 goehle (the parameters used by the  answer log page are nonstandard)
17:41 aubreyja but the data you need is filled in the form fields at the top of the page isn't it?
17:41 goehle right
17:41 aubreyja (at the top of the past answers log)
17:41 goehle those are the form fields that are needed
17:41 goehle another option would be to change stop acting to be a "submit"
17:41 goehle then I could use the data from those form fields
17:42 goehle but that could change all sorts of things
17:42 aubreyja can you add some js that handles the link and scrapes those fields - is that hacky?
17:43 goehle a little.  Its not a bad idea mind.  It would be pretty easy to make some js which scrapes those fields and addes them as parameters onto the stop acting link
17:43 goehle but it would be another instance where the final html of a page is being modified in between the perl and the user
17:45 goehle the other options aren't that great though
17:45 goehle I could bolt an extra "params" variables onto the function which generates the stop acting button
17:47 aubreyja yeah - maybe that's the easiest solution
17:59 goehle so that function gets called by system.template
17:59 goehle its not the easiest thing to add stuff there
17:59 goehle so I put an extra variable into $r that has the necessary information
17:59 goehle not the best, but it works
20:41 goehle joined #webwork
21:20 aleahy joined #webwork
21:33 aleahy joined #webwork
21:33 aleahy Anyone up for a Webwork 2.7 installation question?
21:34 goehle i have to go in a few minutes, so if its quick ! :)
21:35 aleahy Made a mistake and upgraded my webwork server from Fedora 17 to Fedora 19 and now I'm having various issues.  Is there a good source of info on dealing with Apache 2.4?
21:35 goehle hmm. not that I know of.  Is apache 2.4 giving you trouble.  If it is thats something the powers that be might want to know about
21:36 goehle you could try and post on the installation forum
21:36 goehle http://webwork.maa.org/moodle/mod/forum/view.php?f=4
21:36 aleahy Primary problem right now is the following when accessing a course:  [/webwork2/s13-math175-1/] Can't locate object method "remote_addr" via package "Apache2::Connection" at /opt/webwork/webwork2/lib/WeBWorK/Authen.pm line 909.\n * in WeBWorK::Authen::write_log_entry called at line 630 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::checkPassword called at line 555 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen:
21:36 aleahy :authenticate called at line 526 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::verify_normal_user called at line 308 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::do_verify called at line 217 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm\n * in WeBWorK::Authen::verify called at line 307 of /opt/webwork/webwork2/lib/WeBWorK.pm, referer: http://euclid.lab.knet.edu/webwork2/s13-math175-1/
21:36 aleahy Well, that's the second problem: installation forum won't let me create an account
21:36 goehle mm, cant help with that one
21:37 aleahy installation forum or WebWork::Authen?
21:38 goehle hmm, not sure I can help with either.  I don't recognize the error as a usual sort of thing.  Have you double checked that you have the require perl modules
21:38 aleahy Requesting an account on the webwork wiki at http://webwork.maa.org/wiki/Special:RequestAccount#.Uh5tnBKkilM leads to an "Incorrect or missing confirmation code" error when hitting the submit button.
21:39 goehle unfortunatelly my rides here, so I've got to go.  aubreyja is better than I am at installation stuff
21:39 goehle so if hes around he may be able to help
21:39 aleahy OK.  Thanks.  I'll look for him.
21:40 goehle left #webwork
21:43 aleahy joined #webwork
22:57 aubreyja joined #webwork
23:03 aubreyja joined #webwork

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