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

IRC log for #mojo, 2015-11-15

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

All times shown according to UTC.

Time Nick Message
00:00 preaction use Mojo::URL to parse URLs
00:01 jberger m doesn't use r
00:01 Mattjes yes
00:01 Mattjes what can i make here by "m"?
00:01 Mattjes is there a way to get the real digit not the boolean?
00:01 jberger m is match, s is substitute, the r flag is only for substitute
00:01 jberger $1
00:02 jberger or match with g in list context <---- I think?
00:02 Mattjes jberger: giv syntax error
00:02 Mattjes m/(\d+)\.jpg/)/g ???
00:02 jberger that last ) looks wrong
00:03 jberger also, you have too many /
00:03 Mattjes Use of uninitialized value $1 in pattern match (m//)
00:03 Mattjes jberger: $mehr_fotos_urls1 = $1 =~ m/(\d+)\.jpg/;
00:03 Mattjes $mehr_fotos_urls1 = $_ =~ m/(\d+)\.jpg/; (return only 1)
00:04 jberger $1 is the result
00:04 Mattjes omg
00:04 buu my($digit) = /(\d+)\.jpg/;
00:04 buu /(\d+)\.jpg/; my $digit = $1;
00:04 jberger $number = /(\d+)\.jpg$/ ? $1 : undef;
00:04 jberger yeah, any of those
00:05 Mattjes i forgot the bracket
00:05 Mattjes sorry - I am ashamed
00:05 Mattjes thank you for your help
00:05 jberger np
00:08 Mattjes now it works
00:08 Mattjes puuuh
00:09 Mattjes I place myself at how the first man :(
00:26 Mattjes Good night
00:38 Adura joined #mojo
01:00 jontaylor joined #mojo
01:04 stigo joined #mojo
01:56 voldemortensen joined #mojo
02:08 aborazmeh joined #mojo
02:46 voldemortensen1 joined #mojo
03:30 noganex_ joined #mojo
04:07 McA joined #mojo
04:07 mattastrophe joined #mojo
04:40 Adura joined #mojo
05:12 irqq joined #mojo
05:15 kanishka joined #mojo
05:38 mattastrophe joined #mojo
05:47 kaare joined #mojo
07:56 Vandal joined #mojo
07:57 nnutter joined #mojo
07:58 kyshtynbai joined #mojo
08:02 Averna joined #mojo
08:07 bjakubski joined #mojo
08:14 jzawodn_ joined #mojo
08:45 dod joined #mojo
09:04 trone joined #mojo
09:22 sh4 joined #mojo
09:25 Averna joined #mojo
09:33 dod1 joined #mojo
09:41 Mattjes joined #mojo
09:58 sue joined #mojo
10:06 val joined #mojo
10:21 Mattjes joined #mojo
10:24 dod joined #mojo
10:37 jontaylor joined #mojo
12:42 jontaylor joined #mojo
12:44 Averna joined #mojo
12:44 Averna_ joined #mojo
13:13 sue joined #mojo
13:27 stephen joined #mojo
14:01 aborazmeh joined #mojo
14:42 kyshtynbai joined #mojo
14:54 ajr_ joined #mojo
15:14 sue joined #mojo
15:15 PryMar56 joined #mojo
15:25 asarch joined #mojo
15:48 sue joined #mojo
16:09 jberger nicomen: I'm looking at your bug report now
16:09 jberger first of all, I know nothing about Catalyst but it seems I also had to require Catalyst::Action::RenderView
16:10 jberger that and changing up a couple paths in the test I seem to get it loading the app (I think)
16:13 irqq joined #mojo
16:14 jberger zomg Catalyst.pm
16:15 jberger anyway I'm getting an undef in eq at https://metacpan.org/source/MSTROUT/Catalyst-Runtime-5.90103/lib/Catalyst.pm#L3424
16:19 jberger ummmm REMOTE_ADDR isn't in the psgi spec: https://metacpan.org/pod/distribution/PSGI/PSGI.pod
16:20 dod joined #mojo
16:21 jberger I guess the idea is that that just means that it isn't behind a reverse proxy, it would be nice if that didn't emit a warning
16:27 irqq_ joined #mojo
16:30 asm35 joined #mojo
16:33 sri jberger: what, you don't like 5000 lines of code in your .pm files?
16:34 jberger I now have a gut reaction when it takes metacpan a long time to syntax highlight a file :-P
16:35 jberger anyway O
16:36 jberger anyway I'm starting to suspect that nicomen's app isn't a functional app
16:36 jberger trying to instantiate it manually throws errors about loading config
16:52 Mattjes joined #mojo
16:59 Adurah joined #mojo
17:12 jberger ah, the problem is that Mojolicious::Plugin::MountPSGI doesn't support psgi.streaming
17:14 asm35 left #mojo
17:26 jontaylor joined #mojo
17:28 jberger zomg what is this?
17:28 jberger https://metacpan.org/pod/Plack::Middleware#RESPONSE-CALLBACK
17:37 Mattjes joined #mojo
18:07 jberger sri:
18:07 jberger oops
18:07 jberger sri: to implement this: https://metacpan.org/pod/distribution/PSGI/PSGI.pod#Delayed-Response-and-Streaming-Body
18:07 jberger the $writer->write is just $c->write I believe
18:08 jberger but the $writer->close is probably either $c->tx->server_close or $c->rendered ?
18:08 jberger thoughts?
18:15 sue joined #mojo
18:21 ichi joined #mojo
18:50 nicomen jberger: That is exactly why I had all the "untidy boilerplate" left, to show that it was a prstine "catalyst.pl MyApp" created app
18:51 jberger nicomen: sorry I doubted you
18:51 jberger I understand the problem now
18:51 jberger I'm working on a solution, though it might come in multiple parts and mostly to Mojolicious::Plugin::MountPSGI
18:51 nicomen okidoki, thanks for taking time to look at it
18:55 jberger sri: when a Mojo::Server emits request, it seems to send Mojolicious::Controller even to Mojo apps
18:56 jberger is that expected (I'm even having deja-vu that perhaps I've asked this before)
18:58 jberger oh, because I'm mounting a Mojo app in a Mojolicious app
18:58 jberger :s
19:00 jberger ok and because this is implemented as a Mojolicious plugin I can depend on that
19:34 jberger sri / marcus / nicomen / all: https://github.com/marcusramberg/Mojolicious-Plugin-MountPSGI/commit/5a2ecf11b592792ee0c94fee6b29b4856046cd51
19:34 jberger does that look sane so far?
19:44 nicomen At a glance yes, but my glance is not trustworthy at the moment
19:50 jberger biab
19:51 jberger I hope to implement streaming responses and possibly do a little cleanup of the existing code and then maybe ship later today if that looks good
20:51 jberger and now with more streaming: https://github.com/marcusramberg/Mojolicious-Plugin-MountPSGI/compare/streaming
21:06 nicomen \o/
21:08 jberger miyagawa gave it a thumbs up, though he admitted he only looked for 15s
21:08 jberger that's probably good enough for me :-P
21:10 nicomen ;)
21:16 jberger marcus if you could take a look (sri too if you want)
21:17 * jberger back in about an hour
21:17 melo joined #mojo
21:17 good_news_everyon joined #mojo
21:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4Gbr
21:17 good_news_everyon mojo/master cf0e124 Sebastian Riedel: more consistent descriptions for header checks
21:17 good_news_everyon left #mojo
21:18 sri jberger: use http://mojolicio.us/perldoc/Mojo/Content#is_chunked
21:45 voldemortensen joined #mojo
22:22 lluad joined #mojo
22:25 absolut_todd joined #mojo
22:33 jberger sri: thinks, I actually looked for that but not in Content
22:33 jberger s/thinks/thanks/
22:39 Zoffix joined #mojo
23:06 PryMar56 joined #mojo
23:07 jberger released those changes
23:07 cpan_mojo Mojolicious-Plugin-MountPSGI-0.05 by JBERGER https://metacpan.org/release/JBERGER/Mojolicious-Plugin-MountPSGI-0.05
23:07 jberger now just to merge nicomen's tests and release that too
23:14 borkur joined #mojo
23:16 voldemortensen joined #mojo
23:25 cpan_mojo Test-Mojo-Role-PSGI-0.04 by JBERGER https://metacpan.org/release/JBERGER/Test-Mojo-Role-PSGI-0.04
23:25 jberger nicomen: ^^
23:35 Adura joined #mojo

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