Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-01-31

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

All times shown according to UTC.

Time Nick Message
00:44 djun joined #webwork
02:49 mgage_ joined #webwork
03:02 rbeezer joined #webwork
04:11 djun joined #webwork
04:49 djun joined #webwork
05:59 djun joined #webwork
13:26 aubreyja joined #webwork
13:43 goehle joined #webwork
15:19 rbeezer joined #webwork
15:42 aubreyja joined #webwork
15:47 aubreyja_ joined #webwork
17:32 aubreyja joined #webwork
17:33 aubreyja_ joined #webwork
17:49 aubreyja_ joined #webwork
18:03 aubreyja_ joined #webwork
18:08 djun joined #webwork
18:17 aubreyja alright - korean translation started! http://webwork.math.missouri.edu/webwork2/webwork_korean
19:00 djun joined #webwork
19:50 JohnTravis joined #webwork
20:13 aubreyja mgage, mgage_: around?
20:22 JohnTravis aubreyja:  asquare?
20:23 aubreyja_ huh?
20:23 JohnTravis mgage is around?  aubreyua is asquare?
20:23 mgage hi -- just got back
20:23 aubreyja ah. ahem. Ha.
20:24 JohnTravis I'm currently doing faculty evaluations and I need a break
20:24 JohnTravis Being chair sucks sometimes.
20:24 aubreyja Hi - think I figured out my question  - I'm getting soap logins to write to the login.log
20:24 mgage yes -- I would think so
20:28 aubreyja mgage: So, I've got soap logins writing to the login log, but I don't think I have access to $r  - I'd like to get host/port/UA info if possible too
20:28 mgage one minute
20:28 mgage ]
20:34 mgage hi
20:34 mgage which file are you putting this code in?
20:35 aubreyja WebworkSOAP.pm
20:35 aubreyja just a sec - I'll show you what I've got
20:36 mgage you can get host information from $ce I think -- if I understand what you are talking about
20:37 aubreyja ah, that sounds right - it's just 2 lines to login_user: http://pastebin.com/aXu3BdQM
20:37 aubreyja (plus use WeBWorK::Utils qw(writeCourseLog) at the top)
20:38 mgage so your object in new has grabbed the course environment and stored it in $self->{ce}
20:38 aubreyja so something like $soapEnv->{ce}->{r]->etc...
20:39 mgage $r is the request argument returned by apache and doctored in lib/Apache/WeBWorK.pm (possibley in lib/WeBWorK.pm as well) and you aren't using any of those files.  I don't think you have
20:40 mgage a request object -- but you do have a course environment object $ce which basically contains all of the information in the config files -- and they have host, port numbers (what is UA?)
20:40 aubreyja ok, right (no circular references?)
20:40 aubreyja user agent
20:41 aubreyja the config files don't have the remote_ip or remote_port though
20:41 mgage They host and port I found very hard to get from the server  reliably which is why they are entered manually
20:41 mgage ah ok -- so you want header information from the HTTP request
20:43 aubreyja those are typically part of the login.log entries, and the apache access log does get them, even in soap requests
20:43 aubreyja right
20:43 aubreyja e.g. 128.206.13.27 - - [31/Jan/2013:14:39:37 -0600] "POST /webwork2_rpc HTTP/1.0" 200 738 "-" "Axis/1.4"
20:44 aubreyja btw, we've got this started: http://webwork.math.missouri.edu/webwork2/webwork_korean
20:44 mgage ok -- I think these are occurring even before apache touches conf/webwork.apache2-config  -- and this where the request is handed off to Apache/WeBWorK or to SOAP or to xmlrpc.
20:45 mgage I like it!
20:46 aubreyja yeah, looking good so far
20:46 mgage so in one case we have PerlHandler => Apache::WeBWorK
20:47 aubreyja ah, right, so the perl soap handler module is the place to look
20:47 mgage in the other PerlHandler Apache2::SOAP   -- so the Apache2::SOAP code probably has access to the HTTP header but I'm not sure that is being passed down into the subroutines in WebworkSOAP
20:47 mgage yep
20:48 aubreyja ok, thanks - I can figure it out then
20:48 mgage maybe that information is being passed in somehow or perhaps it could be added to what is being passed in.
20:49 mgage good luck -- I never looked very hard at the guts of the SOAP handler.  SOAP lite has a lot of use case examples so it might be worth looking on the web to see if there is an example where they log requests.
20:49 mgage I'm off -- another meeting I'm afraid
20:51 dpvc joined #webwork
20:52 aubreyja ttyl
21:12 dpvc joined #webwork
21:26 aubreyja left #webwork
21:54 dpvc joined #webwork
22:08 djun joined #webwork
22:12 djun Hi all
22:21 aubreyja joined #webwork
23:26 rbeezer_ joined #webwork

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