The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-07-04

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

All times shown according to UTC.

Time Nick Message
00:15 brainbuz joined #mojo
00:37 absolut_todd joined #mojo
01:57 absolut_todd joined #mojo
02:03 noganex_ joined #mojo
02:05 jberger Oh fyi, sri et al, I'm on vacation starting tomorrow for a week
02:06 jberger Don't vote on deprecating the UserAgent our anything until I get back :p
02:06 jberger Actually mojo has been so stable lately
02:09 sri allright people, deprecation marathon!
02:09 sri jberger: have fun :)
02:18 kaare joined #mojo
02:20 jberger Aaaaaaaaaaaaaa
05:16 irqq joined #mojo
05:56 dotandimet joined #mojo
06:39 janus joined #mojo
06:41 dotandimet joined #mojo
06:50 juikuen joined #mojo
07:11 berov joined #mojo
07:17 dotandimet joined #mojo
08:12 Vandal joined #mojo
08:28 irqq_ joined #mojo
10:02 dotandimet joined #mojo
10:09 CandyAngel Deprecating the useragent..?
10:13 pink_mist he was joking
10:13 pink_mist (I hope..)
10:15 CandyAngel :P
10:19 dotandimet joined #mojo
10:46 dotandimet joined #mojo
10:58 melo joined #mojo
11:21 jberger I was
11:22 jberger Ok I'm off o/
11:23 jberger Happy perling, I'll be at the beach :D
11:54 circ-user-GA4w1 joined #mojo
12:36 trone joined #mojo
12:39 Grinnz time to deprecate Mojo::IOLoop
12:40 mattastrophe joined #mojo
12:40 * Grinnz is also not on IRC much this weekend
12:41 trone_ joined #mojo
13:04 trone joined #mojo
13:11 trone_ joined #mojo
13:18 sh4 joined #mojo
13:23 circ-user-GA4w1_ joined #mojo
13:25 dotandimet joined #mojo
13:25 mattastrophe joined #mojo
13:28 ToApolytoXaos joined #mojo
13:39 melo joined #mojo
13:56 gnephiak joined #mojo
14:03 noganex joined #mojo
14:37 dotandimet joined #mojo
14:37 irqq joined #mojo
15:12 PotatoGim^Home joined #mojo
15:35 PryMar56 joined #mojo
15:53 bpmedley joined #mojo
16:22 btyler bpmedley: to bring some resolution: I dug through (in increasing levels of 'my mind is full of wtf'): M::Server::Daemon, M::IOLoop, M::IOLoop::Server, M::Reactor::EV...gave up, went to bed
16:22 btyler then looked again this morning
16:23 btyler and my $daemon was going out of scope
16:23 btyler small wonder the socket was gone
16:24 bpmedley Awesome debugging!
16:26 irqq joined #mojo
16:27 mst btyler: a useful trick for that
16:27 mst btyler: you can use Variable::Magic to cast 'free' magic on the object
16:27 mst btyler: and make that magic warn() when fired, so you know when it went out of scope
16:30 pink_mist well, it also helps if one realises that that is what one is looking for in the first place :P
16:30 pink_mist it seemed this wasn't the case
16:31 mst he started off with "I wonder why the socket was gone"
16:31 mst the stack trace from the socket being freed can help
16:31 * mst shrugs
16:31 mst it's an extra tool
16:33 lluad joined #mojo
16:47 btyler mst: cool, thanks. never used Variable::Magic, that sounds really useful
16:48 btyler but yeah that's exactly what I was wishing for: "I just need something to yell when the socket is closed"
16:49 mst "closed" and "went out of scope" may not be the same thing of course
16:49 btyler yes
16:49 mst for that, what I'd probably do is
16:49 mst { package SocketCanary; use Moo::Role; before close => sub { warn "AAAAAH" }; } Moo::Role->apply_roles_to_object($socket, 'SocketCanary');
16:49 btyler step 1) understand scoping :D
16:50 mst actually, Role::Tiny would be enough for that since you don't need attributes
16:50 btyler ah slick, cool
16:50 mst but Moo is basically always in my dep chain at this point so I don't tend to bother caring
16:57 Adura joined #mojo
17:21 ajr_ joined #mojo
17:39 Kogurr joined #mojo
17:52 dod joined #mojo
17:57 dod joined #mojo
18:00 punter joined #mojo
18:16 mattastrophe joined #mojo
18:25 dod joined #mojo
19:47 disputin joined #mojo
21:02 brainbuz joined #mojo
21:06 punter joined #mojo
21:07 sivoais joined #mojo
21:44 lluad joined #mojo
22:48 genio joined #mojo
23:13 berov batman:  I am playing with Swagger2 and could not figure out how to control the validation of request parameters.
23:14 berov I know it happens automatically but in my oprationId method how to find out that validation is ok and decide if I can process further the request.
23:15 berov e.g. add new record in a database
23:17 berov in swagger2/t/Api.pm I did not see an example
23:27 harry left #mojo

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