Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-08-31

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

All times shown according to UTC.

Time Nick Message
01:23 Paul_Pearson joined #webwork
02:13 aubreyja_ joined #webwork
02:17 rbeezer joined #webwork
02:36 aubreyja_ Hi gage, mgage_: around? I'm wondering where you fixed the 'Can't call method hide_work…' bug - we're seeing it too so I want to grab the fix
02:37 mgage hi
02:37 mgage hang on a minute
02:38 mgage__ joined #webwork
02:39 mgage this is the error that occurs when printing pdf pages?
02:39 aubreyja_ yeah, that's the one
02:39 mgage it's a really old bug, but perhaps I should push it to 2.5.1.1 if you are seeing it also.
02:40 aubreyja_ I don't recall it coming up before - I've been naming my sets Homework_N…for a while now though
02:40 mgage it's in ProblemSets.pm   -- where you have $name =~s/_/  /g;    it replaces underbar by space for display
02:40 mgage purposes.
02:41 aubreyja_ that would be great - I'm going to upgrade to 2.5.1.1 this weekend
02:42 mgage it's a relatively simple fix.  I've got it patching 2.5.2 on my laptop right at the moment.  I'll upload it tomorrow
02:42 aubreyja_ Also, I replied to Simon Hu on the forums about his error, I don't yet see why he is seeing that error, but I did what he said in a course and could reproduce it
02:43 aubreyja_ Sure  - looks like I could just manually fix it now
02:43 mgage morning.  Basically it creates a new variable $display_name  and modifies it.  $name stays the same and is used most places but $display_name is used for printing.
02:45 aubreyja_ One more thing - I've got our graduate student webwork helper adding maketext calls in GatewayQuiz.pm - nobody else has done that yet have they?
02:46 mgage no -- no one has been doing that here recently
02:46 mgage there are tools on cpan -- do you have those? some are referenced on the wiki under localization
02:47 aubreyja_ Yeah, I saw references to those, but it was easier for me to explain to him how to do it by hand than to figure out how to use those tools and then explain to him how to use those :)
02:48 aubreyja_ I'll have a closer look this weekend at those - one seemed like a script that might find a lot of ithe strings automagically
02:49 mgage https://github.com/mgage/webwork2-dev/commit/92efd4940b09a2fc0dc1840ab18e063f9573308b
02:49 aubreyja_ great, thanks
02:49 mgage yes -- there is such a script
02:50 mgage I'll figure out how to make a patch and push this to 2.5.1.1 as well.
02:50 aubreyja_ thanks - the building block and pearson meetings went well
02:51 mgage 2.5.2 isn't that different but it has essayAnswers so you need to add another table to upgrade -- it seems likely that Rob and Goeff will be adding to it
02:51 mgage good
02:51 aubreyja_ cool
02:51 aubreyja_ maybe I'll get that then
02:52 mgage yeah -- I don't think you'll have any trouble with it.  or keeping it up with the changes.
02:52 mgage 2.5.3  will have the whiteboard in it -- and that still needs a lot of straightening out -- aaron forked off a version of Problem.pm that is about 2years old so melding it into the current problem is tricky -- it will take a while to get that ready for prime time
02:54 mgage you only see the hide_work error when students ask for print outs (from the class homepage) not when instructors download or when students download from the actual homework page
02:58 aubreyja_ that's what I've noticed too
03:01 mgage ok -- the patch is on 2.5.1.1  at mgage now too    -- I'll let you play with it for a bit and then I'll send a pull request to openwebwork/2.5.1.1 and openwebwork/2.5.2
03:02 mgage I'm pretty sure the bug has been there for at least two years -- someone (possibly John Jones?) didn't like the look of the _  in the set names on the class home page.
12:28 goehle joined #webwork
12:29 CIA-41 joined #webwork
12:39 aubreyja_ joined #webwork
13:10 CIA-37 joined #webwork
13:26 CIA-44 joined #webwork
14:19 mgage__ joined #webwork
14:46 Paul_Pearson joined #webwork
14:48 mgage__ joined #webwork
14:59 rbeezer joined #webwork
15:41 mgage__ joined #webwork
15:54 djun joined #webwork
16:03 Paul_Pearson joined #webwork
17:08 CIA-64 joined #webwork
17:41 aubreyja_ joined #webwork
17:58 aubreyja_ joined #webwork
18:07 aubreyja mgage: Around? I'm wondering if the database changes in 2.5.2 are going to mess up the moodle and blackboard bridges, in particular the adding of a field to the problem and problem_user tables
18:08 aubreyja Just yesterday I noticed the db checkArgs method was killing the blackboard plugin because their global set object didn't include all of the fields...
18:09 aubreyja Do we have moodle up on test...?
18:09 mgage it might mess up the blackboard bridge -- because java has strict checking.
18:09 aubreyja it was actually our side that was objecting -
18:10 mgage I have moodle 2 on hosted2 so I can check there later -- I don't expect it to mess up the moodle one because extra fields usually don't throw errors , just fewer fields
18:10 aubreyja I think anyway - doesn't the  checkArgs method take arguments passed to the db methods and make sure they have all of the fields accounted for?
18:11 mgage I   _think_ for example that you can upgrade to 2.5.2,  upgrade the courses, which adds fields, and then switch back to 2.5.1.1 and it will still run.   The upgrade course page will flag that the schema and the database don't match but nothing else will care about the extra fields.  I could be wrong.  I haven't done the experiments yet.
18:11 mgage checkArgs in DB.pm?
18:12 aubreyja yes, the error they were getting was "argument 1 must be of type WeBWorK::DB::Set, which came straight from out checkArgs
18:13 aubreyja 2359 here: xhttps://github.com/openwebwork/webwork2-dev/blob/ww2.5.2/lib/WeBWorK/DB.pm
18:14 mgage I don't think it checks the fields -- I'm reading through checkArgs now
18:19 CIA-45 joined #webwork
18:20 mgage it looks to me like an actual error -- the argument is calling a non:existent table or the arg and the class table don't agree.  if the fields were different I'd expect problems from checkKeyfields
18:21 mgage in any case checkArgs is going to get called often even without coming from blackboard -- so you'd expect to see a lot of errors if the table and the schema are not aligned.   you could uncommment 2358 and get more info
18:22 aubreyja That's a good point; so you think that if they were trying to use putGlobalSet and their global set object didn't contain all of the keys, then that would be ignored
18:23 mgage I _think_  if there were too many keys you would definitely get an error
18:24 aubreyja also, does croak = die here or warn?
18:25 mgage die I  believe   carp=warn
18:25 aubreyja ah right
18:25 mgage some of the warning systems have been changed locally -- that's one of things I'm still in the process of sorting out with PGcore
18:26 mgage I'd like to be independent of the built in perl warnings for "expected" errors -- so that we can eventually control the error messages better.
18:27 mgage I just tried using moodle2 with 2.5.2 on hosted and it booted up right away. -- only problem I had was the cookie not equal to query parameter error  -- which prevented automatic login ---- we'll have to do something about that
18:28 mgage rbeezer:  would you like a moodle course along with everything else you are trying on hosted2?
18:28 aubreyja good - and yeah, we kept getting that yesterday too
18:29 mgage I can log in to the first homework set -- but then I get an error on the second homework set.  one of us just has to go through the authen procedure and straighten it out -- I don't think it's going to be done for us
18:29 mgage I'll be away for the long weekend but I could get to it next week
18:30 aubreyja I've been looking at it a lot, I'll sort it out
18:30 aubreyja The second hw set gives you an authen error but not the first?
18:31 mgage actually it's even and odd.  the first one works,  the second attempt to access (the same set even) does not, the third attemptt works the fourth attempt fails  etc.  makes sense -- the problem is being corrected and reset whenever the error occurs so the next time things work.
18:32 mgage Pretty cool actually that it works as well as it does with changing versions.
19:05 mgage_ joined #webwork
19:19 CIA-47 joined #webwork
19:43 CIA-38 joined #webwork
20:28 goehle I've got a question
20:28 mgage_ ok
20:29 goehle I want to see the literal text in $pg->{body_text{
20:29 goehle I get the feeling its being processed because none of the regexp I use seem to match correctly
20:29 goehle I tried warn $pg->{body_text}
20:29 goehle but that still seems like its being processed
20:30 mgage_ what file are you working in ?
20:30 goehle (for example there are quotes " around things in the html that my browser gets, but I feel like those quotes aren't presetn in body_text
20:30 goehle I'm working on ProblemGrader
20:30 mgage_ let me look
20:31 goehle not much to look at really
20:32 goehle wait nm
20:32 goehle its actually chrome
20:32 goehle I was using inspect element
20:32 mgage_ so the contents here is the HTML that comes out of Translator.pm
20:32 goehle and the html that chrome shows you in inspect element
20:32 mgage_ yeah -- that probably adds quotes
20:32 goehle is not actually the same html that is in the page
20:33 mgage_ View source might be clearer about whether there are quotes  or not -- can't remember for sure
20:33 goehle yup
20:33 goehle thats what I used
20:33 goehle and now it works
20:34 mgage_ k
21:35 aubreyja joined #webwork
21:45 goehle hey mgage
21:45 goehle does making a new course copy the achievement stuff correctly?
21:55 goehle anyne give me some git advice :)
22:05 goehle nm figured it out

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