Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-03-19

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

All times shown according to UTC.

Time Nick Message
00:29 Tim2 joined #webwork
00:37 mgage_ joined #webwork
01:05 mgage_ joined #webwork
01:36 mgage_ joined #webwork
03:13 mgage_ joined #webwork
11:05 Tim2 joined #webwork
11:24 mgage_ joined #webwork
12:14 mgage_ joined #webwork
12:53 goehle_ joined #webwork
13:10 goehle_ hey mgage (or mgage_)
13:10 mgage_ hi
13:10 goehle_ I'm trying to figure out how to test the past_answers stuff
13:11 goehle_ if I just add the key flags to the PastAnswers.pm file
13:11 goehle_ then the table wont actually be upgraded unless I delete it and have it rebuilt
13:11 mgage_ yes --
13:11 goehle_ I could type in some silly answers then to test with a small talbe
13:11 mgage_ phone call -- back soon
13:11 goehle_ kk
13:16 mgage_ one of the reasons for my suggestion to just add a create index line is that it would be easier to test -- and possibly less disruptive.
13:17 mgage_ You could (I think) add that line in the admin page where the past_answers is built/upgraded   and also add the line at the end of the create_table subroutine
13:17 mgage_ so this would just add to existing code, not modify it.
13:18 goehle_ do you know how I could test to see if an index exists?
13:18 mgage_ it doesn't use the mechanism for automatically creating indices.
13:18 goehle_ what doesn't use the mechanism for automatically creating indices
13:18 goehle_ sorr, I"m a bit out of it
13:18 mgage_ I don't, but I also suspect that creating an index that already exists is a no-op -- but all of this would have to be checked
13:19 mgage_ if we explicitly add a    "CREATE INDEX " sql statement it doesn't involve the method of marking a field in a record as key field from which an index is supposed to be created.
13:20 goehle_ right
13:20 goehle_ but indexs would still be created automatically using the key fields
13:20 mgage_ I''m not sure about the SQL commands by the way -- the code simply seemed to be labeling those combinations of key fields as  KEY or UNIQUE KEY -- and implied that would automatically cause an index to be created
13:20 goehle_ that was my impression as well
13:21 goehle_ hmm,  I have to head to class in any case.  I'll give it some thought.
13:21 mgage_ so if we don't change which fields are marked key fields and just add a single new index we have made a minimal change
13:22 mgage_ and still have the index we know we need at the moment.
13:22 mgage_ ttyl
13:46 aubreyja joined #webwork
14:25 darwyn joined #webwork
14:26 darwyn Mike or Jason, when you get a minute I have a question about uploading to the OPL.
14:26 mgage_ kk
14:28 darwyn I put the Alfred library up on github, and issued a pull request. We have a macro file, Alfredmacros.pl, how do I load that into github?
14:30 mgage_ ok -- the definitive word on this will be from john jones  -- but I'll help where I can.
14:30 mgage_ what is your github url?
14:33 darwyn not sure what you mean by github url, but my username is darwyncook
14:34 mgage_ it's https://github.com/darwyncook
14:34 darwyn ah
14:36 mgage_ put your macro file in OpenProblemLibrary/macros/AlfredUniversity   in your repository on your desk machine.  Then  do
14:37 mgage_ do a git pull to make sure that your repository is up to date with the one on open-webwork  .  Push the repo on your desk machine to the one on github   and finally from the web issue a pull request from your github to the openwebwork git hub
14:38 mgage_ If you type   git remote -v in your library and send me the results I can give you the commands more precisely
14:38 darwyn When I tried to add our macro file to my local repo and then push it to github I got a message saying that the files in macros were going to be ignored.
14:39 mgage_ did you do   git add  Albredmacros.pl?  and then commit?
14:39 mgage_ I might need more detail on what happened
14:43 darwyn When I first pushed our library I forgot to add the macro file, so I did a git add Alfredmacros.pl and tried another push. What I got from the second push is "everything up to date".
14:44 darwyn I tried adding the /macros/AlfredUniv directory instead of just Alfredmacros.pl, and I think that is when it told me that the macros directory was going to be ignored.
14:46 mgage_ try cd to the macros directory, put the Alfredmacros.pl file there.  then type git add Alfredmacros.pl
14:46 mgage_ then type git status  to see where things stand.
14:47 mgage_ finally you have to type  git commit      in order to confirm that the Alfredmacro.pl file is to be added to the repo.
14:54 darwyn Ok, I moved Alfredmacros.pl as you suggested, and left a copy in the /macros/AlfredUniv directory. I did a git add Alfredmacros.pl, and git commit shows that both copies of Alfredmacros are added.
14:54 darwyn git push says everything up to date.
14:54 mgage_ what are you pushing to?    try git remote -v
14:55 mgage_ also try git branch -vv
14:56 darwyn https://darwyncook@github.com/darwyncook/webwork-open-problem-library.git
14:56 darwyn the actual push command I am using is push origin master
14:56 mgage_ and what is origin aliasing?  is it connected to your github?
14:58 darwyn git branch -vv shows the original push that I made when I pushed the Alfred problem library.
14:58 mgage_ If you are following the current format for OpenProblemLibrary/macros you also need a OpenProblemLibrary/macros/AlfredUniversity   directory (with Alfredmacros.pl inside that)
14:59 mgage_ you will need to git add the AlfredUniversity  directory also -- perhaps that is the issue.
14:59 darwyn origin is aliasing my branch of the OPL on github
14:59 mgage_ git status should say (at the top) that you are ahead by xx commits from origin
15:00 mgage_ kk
15:01 mgage_ also where is this /macros/AlfredUniv directory? -- it's not at the top level,  is it under OpenProblemLibrary/macros?
15:01 darwyn yes
15:02 mgage_ ok so we have OpenProblemLibrary/macros/AlfredUniv/Alfredmacros.pl
15:02 mgage_ can you do a git status  and paste the results in pastebin.org?   -- send me the link
15:06 darwyn joined #webwork
15:07 darwyn sorry, got disconnected
15:11 darwyn ok, git status is on pastebin with title git status
15:12 mgage_ I think you have to send me the url
15:12 mgage_ it's a long number of some kind
15:14 mgage_ e. g. http://pastebin.com/XbDdECbW
15:15 darwyn http://pastebin.com/ttdEBtFA
15:16 mgage_ got it
15:17 mgage_ ok -- things look a little mixed up.  What are all of the files under WHFreeman?
15:18 mgage_ I would move webwork-open-problem-library up two levels so that you have  /opt/webwork/libraries/webwork-open-problem-library    sitting along side NatonalProblemLibrary as an alternative.
15:18 Paul_Pearson joined #webwork
15:19 darwyn not sure where those files came from, let me poke about a bit
15:20 mgage_ more importantly it looks like you have .../webwork-open-problem-library/AlfredUniversity/Alfredmacros.pl   and you want   ../webwork-open-problem-library/OpenProblemLibrary/macros/AlfredUniversity/Alfremacros.pl
15:20 mgage_ phone call brb
15:20 mgage_ back
15:20 darwyn np
15:21 mgage_ finally the AlfredUniversity/Alfredmacros.pl files are not yet committed -- but we can get to that in a pit.
15:21 mgage_ bit
15:23 darwyn not sure where the freeman macros problem came from, but getting rid of those. More importantly, I see now that I was making a mistake when I used add. Let me play around a bit and see if I can straighten this out now.
15:23 mgage_ you also don't seem to be working in the OpenProblemLibrary directory -- and that matters
15:25 darwyn when executing git add <file>, do you need the full path to the file?
15:25 mgage_ no -- it's relative to the current directory
15:25 mgage_ if you start with / then you could use the full path
15:26 goehle_ joined #webwork
15:26 darwyn hmm, then that's not the problem.
15:26 darwyn ls
15:27 darwyn wrong window :)
15:27 mgage_ :-)  been there.
15:30 darwyn unfortunately I have to go to a meeting. Hopefully from here I can get this straightened out.
15:30 mgage_ kk --
15:32 Paul_Pearson1 joined #webwork
15:45 Paul_Pearson joined #webwork
15:45 mgage_ Paul_Peterso: just working on the live jar problem
15:57 mgage_ Paul_Pearson: hi
15:58 Paul_Pearson hi
16:00 mgage_ I'm trying to get some action on fixing the java problem on testcourses
16:02 mgage_ I assume that is still causing you problems?
16:04 Paul_Pearson I'm getting an error as follows:
16:04 Paul_Pearson LiveGraphics3D error:
16:04 Paul_Pearson Can't read /wwtmp/hope_math_232/html/97419f8c-53c3-3b20-9149-de5
16:05 Paul_Pearson LiveGraphics3D error: applet parameter
16:05 Paul_Pearson "INPUT" or "INPUT_FILE" missing.
16:05 Paul_Pearson LiveGraphics3D initialization failed.
16:06 mgage_ I'm getting less info than that what do you get at https://testcourses.webwork.maa.org/webwork2_files/applets/liveJar/liveJar.html
16:06 mgage_ that's a pure static webpage serving a very simple image through liveJar.
16:07 Paul_Pearson Same type of error.
16:07 Paul_Pearson Can't read test.m
16:07 mgage_ kk - let me look at that.
16:07 Paul_Pearson LiveGraphics3D error: applet parameter
16:08 Paul_Pearson "INPUT" or "INPUT_FILE" missing
16:08 mgage_ which browser are you using?   I'm not getting such an informative error message.  :-(
16:08 Paul_Pearson LiveGraphics3D initialization failed.
16:08 Paul_Pearson Firefox
16:08 mgage_ kk
16:08 Paul_Pearson Should I try chrome?
16:09 mgage_ see what happens -- chrome won't do java anymore on a mac -- not sure about other machines
16:09 Paul_Pearson OK.  I do remember that the "box" came up for me once in the past...
16:10 mgage_ hmm -- in firefox on macOS I get Error. Click for details -- and then the java console comes up with no details
16:10 mgage_ either I'm not doing it right or the macOS doesn't want to give me much additional info :-(
16:11 Paul_Pearson Chrome is also pretty useless.
16:11 Paul_Pearson Application Error
16:11 Paul_Pearson ClassNotFoundException
16:11 Paul_Pearson Live.class
16:11 mgage_ yea -- that's what I get from firefox/macOS
16:12 Paul_Pearson It seems that Chrome and Firefox have conflicting error messages.
16:12 Paul_Pearson Chrome says it can't find the jar file (or more precisely the Live.class file inside the jar file).
16:12 mgage_ since the new macOS uses java7  chrome won't even load the applet
16:12 mgage_ let me look at permissions on test.m
16:13 Paul_Pearson While Firefox says that live.jar is unable to find and load the data file with grid points.
16:15 mgage_ try https://testcourses.webwork.maa.org/webwork2_files/applets/liveJar/liveJar.html
16:15 mgage_ again -- I changed owners
16:17 Paul_Pearson same problem as before on firefox
16:19 mgage_ same for me -- I have the identical permissions and owners on
16:19 mgage_ https://testcourses.webwork.maa.org/webwork2_files/applets/liveJar/liveJar.html
16:19 mgage_ and
16:19 mgage_ https://ftcourses.webwork.maa.org/webwork2_files/applets/liveJar/liveJar.html
16:20 Paul_Pearson ftcourses works but testcourses does not.
16:20 mgage_ yep
16:26 Paul_Pearson I just sent you an email with a Three.js isosurface example.
16:26 mgage_ got it
16:27 Paul_Pearson I would like to know if it works for you on Safari, Chrome, iPad, etc...
16:27 mgage_ yep -- it works fine
16:29 mgage_ I get an error about supporting webGL in safari  claims it's my video card (although I have a latest version 27in mac
16:29 mgage_ it might not be turned on
16:29 Paul_Pearson so it works on safari despite the error?
16:31 mgage_ yes
16:31 Paul_Pearson Good.  It should since it is using the CanvasRenderer instead of the WebGLRenderer.
16:31 mgage_ I sent you an image -- does that look right or is it using some fall back method?
16:31 Paul_Pearson It looks even better with the other renderer.
16:31 Paul_Pearson Checking...
16:32 Paul_Pearson That looks right.
16:33 mgage_ so if we can convert the Mathematica output to this format (perhaps even in real time) then we could use this instead.
16:33 Paul_Pearson If you edit the MarchingCubes.html file lines 68-70
16:33 Paul_Pearson which are
16:33 Paul_Pearson // RENDERER
16:33 Paul_Pearson //renderer = new THREE.WebGLRenderer( {antialias:true} );
16:33 Paul_Pearson renderer = new THREE.CanvasRenderer();
16:34 Paul_Pearson you can comment out the CanvasRenderer and uncomment the WebGLRenderer
16:36 mgage_ that works well in chrome and firefox but not in safari.  I probably need to set some configuration in safari
16:36 mgage_ yep -- sure enough -- "enable webGL"  -- now it works in safari also
16:38 mgage_ the magnification scroll is touchy
16:39 Paul_Pearson The mouse action needs to be redefined, too.
16:39 Paul_Pearson http://acko.net/blog/making-mathbox/
16:39 Paul_Pearson Have you tried mathbox?
16:39 mgage_ not yet -- I"ve been told about it.
16:40 Paul_Pearson Scroll down to the middle of the page to the "egg carton"
16:40 Paul_Pearson I heard from beezer that William Stein wants to use it in SAGE.
16:41 Paul_Pearson However, he also said that he thought that lawyers were involved :(
16:42 mgage_ -- It think lawyers are involved with the new version of Sage that William is working on -- not the old one
16:45 mgage_ I have to go into school -- I'll read the rest of matchbox later -- thanks for the pointer.  Hopefully meantime I've got people alerted to the java problem on MAA site.
16:45 Paul_Pearson Thanks :)
16:45 mgage_ long term -- and perhaps pretty soon -- we're going to have to replace all of the java apps in webwork
16:45 Paul_Pearson Agreed.
16:46 mgage_ (there are not that many) -- the flash apps can I think be automatically translated -- if I understood the news from adobe properly
16:48 Paul_Pearson https://www.google.com/doubleclick/studio/swiffy/
16:48 Paul_Pearson is a flash to html5 converter
16:49 mgage_ we should see how it works on Barbara's applets.  I think Adobe also has an official output adapter that outputs html5 from a flash project
16:50 Paul_Pearson Sounds good.  I need to get some work done.  Take care.  -P
17:31 Paul_Pearson joined #webwork
17:36 Paul_Pearson Jason?
17:45 Paul_Pearson aubreyja
18:19 Paul_Pearson joined #webwork
19:40 Patrick joined #webwork
19:41 jpgravel joined #webwork
19:46 jpgravel Hi, we (pbelley and I)  are working on JQuery MathView and are now on the PGML translator
19:46 jpgravel we did a webservice to translate from PGML to TeX using the parser
19:47 jpgravel but the parser do not seems to work as we expected, It systematically simplify and execute our code instead of returning the TeX redering
19:54 jpgravel to translate, we do: $res = Parser->new($PGCode)->TeX
19:57 jpgravel but we always have and error if the equation do contains variables and always tries to simplify
20:34 Paul_Pearson joined #webwork
21:01 Paul_Pearson joined #webwork
21:25 Paul_Pearson joined #webwork
22:42 mgage_ joined #webwork
23:32 rbeezer joined #webwork

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