Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-03-22

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

All times shown according to UTC.

Time Nick Message
00:50 mgage_ joined #webwork
01:51 mgage__ joined #webwork
02:40 mgage__ left #webwork
05:51 Shmo joined #webwork
08:33 Shmo joined #webwork
14:05 JohnTravis joined #webwork
14:19 aubreyja joined #webwork
14:25 Shmo aubreyja: If you're interested in trying a simplified example of a problem I had issues with, I put it up at http://pastebin.com/kmHMKma4
14:26 aubreyja Thanks Shmo - I'm just catching up on some email - give me a minute and we can have a look
14:27 Shmo No rush at all!  I appreciate the favor, and will leave the computer sitting here even when I'm away, so even if you respond in a few hours (or days), I will get it.
14:37 aubreyja Ok, Shmo - it's weird because this works for me: http://pastebin.com/0hQctr9L but your paste doesn't, but I also don't see a difference between them….
14:38 Shmo Hm!  I'm going to take a look.
14:40 aubreyja Are you composing these problems in a text editor outside of the browser or in the problem editor inside webwork?
14:43 Shmo Wow, I am SO sorry.
14:43 Shmo Realized the only difference was you had ENDDOCUMENT();
14:43 Shmo Put that in, and it worked.
14:43 aubreyja Ah..I didn't even notice that!
14:44 Shmo Does it make a difference where I edit them?  I typically use vi.
14:44 aubreyja np - glad to help
14:44 aubreyja no, vi is good - I was worried that maybe you were using something on windows and it was inserting invisible characters
14:45 Shmo Oh, gotcha.  Thanks so much!  I have no idea whether I would ever have found that mistake if not for your paste.
14:45 aubreyja we'll be here if anything else comes up - feel free to ask - that's why we're here!
14:47 Shmo Oh, since you're here, I just ran that code and it gave "2x+(-9)".  Is there any way to use MathObjects to turn that kind of stuff automatically into "2x-9"?
14:48 Shmo (If that's a quick answer, that is)
14:49 aubreyja I think there is a -> reduce method that will work
14:52 aubreyja I think this is everything that using $math_object -> reduce() will accomplish, and how to customize it: http://webwork.maa.org/wiki/List_of_parser_reduction_rules_for_MathObject_Formulas
14:54 Shmo Wow, why couldn't I find this?  Thank you!
14:55 aubreyja if you ever tried the search on the wiki before it was terrible, but I recently installed lucene search (used on wikipedia) and it works really well now
15:05 Shmo Well, I'm off to a lunch meeting, so I'll be idle, but just wanted to say another huge thanks.  And by the way, reduce() worked and was EXACTLY what I was looking for.
15:24 JohnTravis aubreyja: and mgage:  Are we meeting today?
21:25 mgage joined #webwork
23:58 ionparticle joined #webwork

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