Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-04-05

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

All times shown according to UTC.

Time Nick Message
00:07 Paul_Pearson joined #webwork
03:25 Paul_Pearson1 joined #webwork
07:20 rbeezer_ joined #webwork
12:45 goehle joined #webwork
13:32 Paul_Pearson joined #webwork
14:01 aubreyja joined #webwork
14:28 Paul_Pearson joined #webwork
14:28 rbeezer joined #webwork
15:00 Paul_Pearson joined #webwork
15:22 Paul_Pearson1 joined #webwork
17:36 goehle hey mgage
17:39 mgage goehle: hi
17:40 goehle was the tabber stuff moved to a different directory?
17:42 mgage yes -- the patch applied from Peter Staab  moves lots of things around in the js directory -- that directory was getting pretty messy and Peter and David have made an attempt to regularize it --- not sure they have written up a rational for their new reorganization -- they should be nudged to do so.  :-)
17:42 goehle ok
17:42 mgage I'm pretty sure nothing was removed -- so the tabber files should still be there somewhere
17:43 goehle yeah
17:43 goehle I merged from develop
17:43 goehle and now a lot of the pages aren't able to find stuff
17:43 goehle like twitter bootrap is mia for some reason
17:43 goehle alhtough I can see it in the htdocs directy
17:44 goehle at looks like it moved though
17:44 mgage probably there was a hardcoded link somewhere that is pointing to the wrong place?
17:44 mgage I haven't completely tested Peter's patch to develop -- but for my initial testing it was working
17:46 goehle yeah
17:46 goehle mostly just a bunch of hard coded stuff that needs to be tracked down
17:46 goehle its a pain because I dont know whats putting it in the html
17:46 goehle system.template?
17:46 goehle the perl.pm?
17:46 goehle no worries though
17:47 mgage try grep -R .........    *       searches recursively for .............
17:47 mgage system.template is the most likely place
17:48 goehle this was in UserList2.pm
17:48 goehle but i'm going through all the pages looking for missing files
17:49 goehle things like show_hide.js addOnEvent.js and whatnot seem to be mising from some of them
17:50 goehle yikes
17:50 goehle lots of stuff missing for library browser
17:50 mgage could well be.  send off a quick note to Peter to get his comments.
17:51 mgage I wonder if there is something incomplete about this -- my download of the current develop worked pretty well when I poked around -- but I haven't had a chance to poke around much yet.
17:52 goehle So the things I'm changing are hardcoded addresses in the perl module files
17:53 mgage ok -- again check with peter (and possibly david gage) -- to get some feedback about the changes
17:54 mgage also it might be possible to make these changes more robust for next time things get moved around
17:54 goehle yeah
17:54 goehle hmm
17:54 goehle so should I fix any of this stuff?
17:56 mgage I would first send a note off to Peter and to David with your observations -- depending on the response I would then go ahead and fix stuff -- I expect they would appreciate the help -- preparing a rationale for the organization of the js directory would also be a good thing
17:56 mgage send a note first just to make sure the three of you are on the same page.
17:59 goehle I just sent a note
17:59 WhyThePlatypus joined #webwork
18:00 mgage k -- grabbed David and he is on IRC now --
18:01 WhyThePlatypus hey
18:01 WhyThePlatypus only sort of paying attention though :P
18:02 mgage seems like Peter is going to know the most about the details of which hardcoded links still need to be fixed.
18:04 goehle I was just saying that I did a pull from develop
18:04 goehle and a bunch of the js links broke
18:05 goehle mike was saying you moved around the js files.  It seems unlikely that you would do that and not change the addresses in the perl modules though
18:05 mgage by the way did you restart the server and also make sure the browser cache's were refreshed?  that can cause problems.
18:05 goehle yeah, because as I fix the addresses in the perl files the js gets loaded properly
18:05 goehle and I can see that the links are wrong in my .pm files
18:06 WhyThePlatypus i know peter started to move around the js files.. i don't know how many of the links got fixed
18:06 WhyThePlatypus it wouldn't surprise me if allot got missed
18:07 goehle ok, I just wanted to make sure things needed to be fixed before I fixed them
18:08 WhyThePlatypus yup they do, if peter's been working on it he hasn't pushed anything to his github
18:08 WhyThePlatypus so my guess is you won't be refixing anything
18:09 goehle ok, thanks
18:12 goehle I can't find one of the files
18:12 goehle pg_editor_handlers.js
18:14 WhyThePlatypus looks like it used to live in the htdocs/js/ folder
18:15 WhyThePlatypus it got removed when peter reordered things
18:15 WhyThePlatypus what's calling it?
18:16 goehle PGEditor3
18:18 WhyThePlatypus ok well it looks like the last version of it was completely commented out anyway
18:18 WhyThePlatypus so it's safe to just remove that reference
18:19 goehle well thats all right then
18:19 goehle Peter says this stuff shouldn't be broken
18:19 goehle He fixed the links when he moved around the js files
18:21 WhyThePlatypus i haven't had a chance to try anything out so idk if it's working for me.. the pg_editor_handlers.js problem was definitely in the develop branch on github. what others are you seeing that are broken?
18:24 goehle a bunch of broken ones on Library Browser
18:24 goehle ClassListEditor2
18:25 goehle PGProblemEditor3
18:25 goehle math4/system.template wasn't updated at all
18:30 goehle Peter says he missed those files
18:30 goehle so I'll make the changes and issue a pull request to develop
18:32 mgage sounds good --- thanks all for the work on this
18:34 goehle no worries
18:34 goehle i'm adding tabber to the achievement editor page
18:34 goehle and then I'm going to try and come up with some jquery code
18:34 goehle to turn all the tabber stuff into bootstrap tabs
18:34 mgage sounds great.
18:36 goehle http://twitter.github.com/bootstrap/javascript.html#tabs
18:36 goehle dropdown or side-by-side tabs?
18:38 mgage this should be something that we could eventually change using themes -- but I'd like to see the side by side tabs used for a while to see how they work
18:39 mgage originally all we had were drop down menus -- so a side by side choice would be good for comparision
18:40 goehle bleh, the structure of tabber tabs and twitter tabs is pretty different
18:41 goehle for twitter you have a list with href elements pointing to the content of the tabs
18:41 goehle for the tabber tabs you have these hidden radio buttons inside your content
18:42 mgage shouldn't you be able to format tabs with CSS attached to list elements <li>..... </li>?  that way you can switch from horizontal to dropdown tabs easily -- just change the css
18:43 mgage tabber is earlier technology -- so my first reaction is to go with twitter bootstrap -- but newer is not better in every case.
18:44 goehle yeah, the issue is that the underlying perl isn't generating list elements, its all divs containing radio buttons.  I think first I have to find a fancy way to turn those div's into li's in the right way
18:44 goehle once I have everything properly marked up, changing the style of the bootstrap elements will be easy
18:44 mgage I'm looking at the twitter page now -- I'm pretty sure that is the better way to do things -- it just wasn't possible when tabber was created is my guess.
18:44 goehle sure
18:45 goehle but we are trying to not change the existing perl code when changing the look of webwork now
18:46 mgage you can change the underlying perl -- there is no reason to keep that code producing oldstyle html -- particularly in the develop module.  I worry some about making the transitions from one version to another smoothly -- but I don't want that worry to get in the way of adopting the new technology.
18:46 mgage develop branch
18:47 goehle hmmm
18:47 goehle so which do you prefer
18:47 mgage if you want math4 themes to work on current versions of webwork, then yes, you will have to jump through some hoops.
18:47 goehle I can probably get a (slightly hacky) javascript file to turn existing tabber html into boostrap tab html
18:48 mgage that will get your math4 themes used more quickly -- which is a good thing -- so if it's not an inordinate amount of work go ahead.
18:48 goehle or I can go into the perl and refactor everything as lists
18:48 goehle then have (less hacky) js code to make bootstrap tabs
18:48 mgage you can also modify the perl code in the develop branch (and the math4 themes) and do it right for future generations of the software.
18:48 goehle yeah, unfortunately I think my math4 got merged with develop at some point
18:49 goehle I don't know how to seperate them now
18:50 mgage I added it in there, but we can pull it out -- I'd have to fiddle with it a bit to make it happen -- I'll probably have some time tonight or this weekend.   SourceTree makes things like this a little easier.
18:50 goehle yeah, when we were at Raleigh I got the impression most of my pull requests should be to develop anyway
18:50 goehle (unless its a specific bugfix for an upcoming release)
18:50 mgage it's also not essential that math4 theme be immediately available -- it's kind of up to you
18:50 goehle you get the lucky task of trying to seperate things out
18:51 mgage kk
18:51 goehle I suppose it would be nice if it were available
18:51 goehle then again, its going to be clobbered by the upcoming revamp anyway
18:51 mgage in general yes -- most of the new stuff should go to develop.  At the time math4 theme seemed light weight enough so that it might be possible to tack it on to release/2.7  but that might not be the case.
18:52 mgage despite what seems like duplication I've found that development actually happens more quickly when I create both hacked versions for immediate use and a "right" version that is ready for implementation in a later release.
18:53 mgage the hacked version catches some of the design bugs.
18:53 goehle we'll see how easy the hack is
18:54 goehle if i cant figure it how I'll go into the perl code and try to do things properly
18:54 mgage sounds right
18:54 goehle I'll try not to put specific stuff in the perl, just the classes and whatnot I need to hook into
18:54 mgage yes
18:55 WhyThePlatypus joined #webwork
18:55 mgage time for seminar --- ttyl
18:59 djun joined #webwork
19:00 djun_ joined #webwork
19:00 djun left #webwork
19:11 djun joined #webwork
19:12 djun left #webwork
19:13 djun joined #webwork
19:33 Paul_Pearson joined #webwork
20:08 Paul_Pearson joined #webwork
20:43 Paul_Pearson joined #webwork
21:01 goehle hey
21:01 goehle anyone know if you can return something from the options subroutine
21:01 goehle which will *not* cause the options to be shown?
21:59 goehle sad news I'm afraid ...
22:12 goehle anyone answer a question about EV3P?
22:18 goehle hey mgage
22:27 mgage_ joined #webwork
22:58 goehle left #webwork

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