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

IRC log for #mojo, 2017-06-11

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

All times shown according to UTC.

Time Nick Message
00:50 cheako joined #mojo
01:39 stryx` joined #mojo
02:29 jberger quic? Is that the new spdy?
02:38 noganex_ joined #mojo
02:57 tencendur joined #mojo
03:31 jnbek joined #mojo
04:04 dboehmer_ joined #mojo
04:54 aborazmeh joined #mojo
05:19 kiwiroy joined #mojo
05:58 eseyman joined #mojo
07:17 trone joined #mojo
07:50 tencendur joined #mojo
08:13 tencendur joined #mojo
08:16 kaare_ joined #mojo
08:35 kiwiroy joined #mojo
08:42 tencendur joined #mojo
09:08 tencendur joined #mojo
10:02 tencendur joined #mojo
11:04 sri jberger: yes, UDP based
11:05 sri ohoh, i guess perl 5.28 might break Mojo::JSON http://www.cpantesters.org/cpan/report/332f44b8-4cca-11e7-9ae7-4ee7b41257c2
11:06 sri "Use of strings with code points over 0xFF as arguments to bitwise and (&) operator is not allowed at /tmp/loop_over_bdir-26356-FLnIyT/Mojolicious-7.33-0/blib/lib/Mojo/JSON.pm line 253."
11:07 tencendur joined #mojo
11:23 tencendur joined #mojo
11:24 zenon joined #mojo
12:52 dod joined #mojo
12:57 dod joined #mojo
13:11 aborazmeh joined #mojo
13:19 PryMar56 joined #mojo
13:37 zenon It turns out that lots of helpful plugin stuff happens in a Lite app (->delay, ->helper and ->plugin), besides "That seems a bit silly" is there any reason to not make my "worker" scripts not be Lite apps themselvse?
13:50 karjala_ joined #mojo
13:50 karjala_ convos is mentioned in this article: https://insights.ubuntu.com/2017/06/07/top-10-snaps-in-may/?utm_content=buffer8b5a1&utm_medium=social&utm_source=plus.google.com&utm_campaign=buffer
14:03 tencendur joined #mojo
14:04 dod joined #mojo
14:51 jberger karjala_ cool find!
15:31 kaare joined #mojo
15:48 dod joined #mojo
17:17 sri convos had the potential for greatness
17:22 stryx` joined #mojo
17:41 htaunay joined #mojo
17:43 dod joined #mojo
17:45 zenon What went wrong?
17:53 trippeh joined #mojo
17:56 trippeh Hi. Is there a good way to access the file handle for a connection from a action? Say if it is a unix socket and I want to run getsockopt $fh, SOL_PACKET, SO_PEERCRED on it to use for authentication
17:56 trippeh (ideally done on connection startup only)
17:57 zenon $app->hook(after_build_tx => sub {         my $tx = $_[0];          $tx->on(connection => sub {  my ($tx, $connection) = @_;
17:58 trippeh $connection is the file handle?
17:59 trippeh that helps a lot, thanks
17:59 zenon Sure.
18:01 trippeh is it possible to stash the result somewhere accessible by the action callback in $_[0]?
18:01 zenon I normally just shove it in a random key in $tx and hope it doesn't end up being reserved later.
18:02 trippeh aha. and tx can be grabbed through $_[0] in the action callback?
18:03 zenon in that hook it's passed in and in scope from the outer hook becuase its' closed over
18:04 * trippeh goes to try it out :)
18:36 xpy joined #mojo
18:36 xpy CP IS BEING PROMOTED ON #ATHEME (FREENODE)
18:36 xpy | |
18:36 xpy | |__   _____      ____ _ _ __ ___
18:36 xpy | '_ \ / _ \ \ /\ / / _` | '__/ _ \
18:36 xpy | |_) |  __/\ V  V / (_| | | |  __/
18:36 xpy left #mojo
18:38 Grinnz ...what
18:38 zenon Cheese Pizza. That shit is delicious.
19:02 trippeh zenon: it is working, only had to pass $connection through Mojo::IOLoop->stream() to get to the actual handle
19:03 zenon \o/ Computer science
19:06 trone joined #mojo
19:19 zenon $log->path($home->child('log', "$mode.log"))     if -d $home->child('log') && -w _;    # I can't have log/ be a link to some place in /var/log :(
19:20 pink_mist you can't?
19:20 pink_mist pretty sure -d and -w tests both test the link target
19:25 zenon That's a time saver.
19:34 dod joined #mojo
19:36 sri wow, bitcoin over $3000
19:36 sri :O
20:04 Grinnz dayum
21:21 genioweb joined #mojo
22:24 cheako joined #mojo
22:39 kiwiroy joined #mojo
23:56 ronsavage joined #mojo
23:57 ronsavage I posted a number of msgs yesterday (Melbourne time) on #mojo, but they did not show up on http://irclog.perlgeek.de/mojo/2017-06-11. Any ideas why?
23:57 ronsavage Ahhh. That msg show up. I'll start the sequence again.
23:57 ronsavage I've having trouble with validation. See https://gist.github.com/ronsavage/c1dbabbbb6426f354b59d759827c2857. So I have some questions.
23:58 ronsavage (1) The docs for add_check() don't say it explicitly in English, but it seems that if you want your own checking sub to find a value acceptable, return 0 (or undef). True?
23:58 ronsavage (2) After some tests, I find my own checking sub cannot return acceptable for an empty string, so I must call optional() first. Even explicitly calling. topic() first does not make any difference here. Why is that?
23:58 ronsavage (3) Is there any way I can check for both empty strings and numeric strings in my own check sub?
23:59 ronsavage And the topic for #mojo - https://github.com/domokit/mojo - is a broken link.

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