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

IRC log for #mojo, 2014-04-29

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

All times shown according to UTC.

Time Nick Message
00:00 basiliscos joined #mojo
00:11 gatitskiy joined #mojo
00:22 asarch joined #mojo
00:31 Adura joined #mojo
00:55 sugar joined #mojo
00:58 punter joined #mojo
01:09 maxhq1 joined #mojo
01:15 sugar_ joined #mojo
01:43 zivester joined #mojo
01:52 klapperl_ joined #mojo
02:02 marty_ joined #mojo
02:20 gatitskiy joined #mojo
02:26 Adura joined #mojo
03:13 btyler joined #mojo
03:42 bobkare joined #mojo
04:11 dotandimet joined #mojo
05:03 denis_boyun joined #mojo
05:21 dotandimet joined #mojo
05:52 sujithm joined #mojo
06:24 dpetrov_ joined #mojo
06:28 basiliscos joined #mojo
06:30 dotandimet joined #mojo
06:31 Vandal joined #mojo
06:41 dod joined #mojo
06:49 babl joined #mojo
06:49 laouji joined #mojo
06:51 dotandimet joined #mojo
07:01 rawler joined #mojo
07:01 gatitskiy joined #mojo
07:13 ver joined #mojo
07:13 igorsutton joined #mojo
07:15 eseyman joined #mojo
07:15 sujithm joined #mojo
07:25 rem_lex joined #mojo
07:28 trone joined #mojo
07:31 basiliscos joined #mojo
07:41 ladnaV joined #mojo
07:45 hummeleBop joined #mojo
07:46 Vandal joined #mojo
07:51 basiliscos joined #mojo
07:52 ladnaV joined #mojo
07:54 basiliscos joined #mojo
07:56 fhelmber_ joined #mojo
07:57 Vandal joined #mojo
07:59 D4RK-PH0ENiX joined #mojo
08:10 rem_lex joined #mojo
08:19 ladnaV joined #mojo
08:22 rem_lex|pivo joined #mojo
08:27 Vandal joined #mojo
08:47 sugar_ joined #mojo
08:47 sujithm joined #mojo
08:48 gatitskiy joined #mojo
08:49 alnewkirk joined #mojo
08:56 sujithm_ joined #mojo
09:00 * nic spontaneously concatenates
09:02 laouji joined #mojo
09:09 dotandimet joined #mojo
09:11 fhelmber_ joined #mojo
09:11 dotandimet joined #mojo
09:13 dotandimet joined #mojo
09:17 ktf joined #mojo
09:19 dotandimet joined #mojo
09:20 ktf hi, is it possible to pass custom data to Mojo::UserAgent get() callback? example: $ua->get($url, {mydata => 123}, sub { my($ua,$tx,$data)=@_; say Dumper $data;});
09:20 arthas joined #mojo
09:21 moritz ktf: that's usually not necessary, because you can simply close over the information
09:21 moritz my $extra = { mydata => 124 }; $ua->get($url, sub { use $extra here })
09:22 dotandimet1 joined #mojo
09:23 ktf ok, but I call get() in a loop and then the data is not available in the callback
09:23 moritz you can't close over the loop variable, you have to create a lexical copy (iirc)
09:24 ktf can you give an example how to access loop counter in get callback? thanks
09:25 sugar__ joined #mojo
09:27 moritz ktf: what does your code currently look like?
09:28 gatitski_ joined #mojo
09:29 ktf example:
09:29 ktf for my $i (1..10) {
09:29 ktf $ua->get($url, sub {
09:29 ktf my($ua, $tx) = @_;
09:29 ktf #here I want to access $i
09:30 batman ktf: DO NOT PASTE MORE THAN A SINGLE LINE
09:30 dotandimet joined #mojo
09:30 marcus nopaste?
09:30 purl hmmm... nopaste is http://paste.scsys.co.uk/ or http://nopaste.snit.ch/ or http://gist.github.com/ or DO NOT USE pastebin.com IT FUCKING SUCKS
09:30 batman ktf: use http://p.thorsen.pm https://gist.github.com/ http://pastie.org/ or some similiar service
09:30 ktf ok sorry
09:40 denis_boyun joined #mojo
09:54 Adurah joined #mojo
09:54 ktf1 joined #mojo
09:54 babl_ joined #mojo
09:54 rem_lex|pivo joined #mojo
09:56 abhishekisnot joined #mojo
10:23 ladnaV joined #mojo
11:17 sujithm joined #mojo
11:25 neilhwatson joined #mojo
11:28 d4rkie joined #mojo
11:40 fhelmbe__ joined #mojo
11:47 d4rkie joined #mojo
11:55 Negor joined #mojo
11:55 fhelmber_ joined #mojo
12:00 sri btw. i don't think we have picked a code name for 5.0 yet
12:04 marty joined #mojo
12:09 punter joined #mojo
12:11 sri i guess this one might be the best candidate so far U+1F574 "MAN IN BUSINESS SUIT LEVITATING"
12:12 stephan48 do you plan breaking changes?
12:14 sri no, but a few things are still up for discussion https://github.com/kraih/mojo/pull/616
12:14 fhelmber_ joined #mojo
12:14 fhelmber_ joined #mojo
12:41 dotan I'm waiting for code name U+1F3E9
12:49 mire_ joined #mojo
12:52 asarch joined #mojo
12:57 maxhq joined #mojo
13:25 zivester joined #mojo
13:46 sujithm joined #mojo
13:53 gryphon joined #mojo
13:54 rem_lex| joined #mojo
14:00 bluescreen joined #mojo
14:03 btyler joined #mojo
14:05 sujithm joined #mojo
14:13 sri https://github.com/kraih/mojo/pull/616 # X-Forwarded-HTTPS vs X-Forwarded-Proto, fight!
14:18 * batman want X-Forwarded-Proto 50%
14:19 sri http://en.wikipedia.org/wiki/List_of_HTTP_header_fields # wikipedia hints at it being the standard
14:24 odc X-Forwarded-Proto++
14:25 mikegrb I'd vote the same, X-Forwarded-Proto
14:25 mikegrb while at it, should add explicit support for X-ATT-DeviceId and X-Wap-Profile
14:25 * mikegrb runs
14:26 * sri sets mikegrb on fire
14:30 batman I'm in favor of -Proto, simply because i hate flags. -Proto is actually describing something.
14:31 yakudza sri, X-Forwarded-Proto is in specs drafts http://tools.ietf.org/html/draft-ietf-appsawg-http-forwarded-10
14:38 sri hmm, i guess we could also just make it a normal deprecation... it felt a bit like adding an attack vector... but all reverse proxy modules on cpan just probe for all possible headers
14:38 sri so i guess it's no big deal
14:40 good_news_everyon joined #mojo
14:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/c78ad57ceadea8cff6ed6028b4a528737833f150
14:40 good_news_everyon mojo/master c78ad57 Sebastian Riedel: deprecated X-Forwarded-HTTPS support in favor of X-Forwarded-Proto
14:40 good_news_everyon left #mojo
14:46 sujithm joined #mojo
14:59 punter joined #mojo
15:03 good_news_everyon joined #mojo
15:03 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/JCSapA
15:03 good_news_everyon mojo/master cf50ccb Sebastian Riedel: updated CREDITS section
15:03 good_news_everyon left #mojo
15:04 igorsutton joined #mojo
15:05 meshl joined #mojo
15:06 abra_ joined #mojo
15:10 dotandimet joined #mojo
15:36 sujithm joined #mojo
15:39 sh4 joined #mojo
15:48 mire_ joined #mojo
15:53 Vandal joined #mojo
15:55 tempire Wait...so one callback passed to ->steps is now one step, instead of on_finish?
15:55 denis_boyun joined #mojo
15:56 sri tempire: yes, and it behaves the same :)
15:56 sri aside from getting leak protection
15:57 tempire good
15:57 tempire That's caused some confusion in here from time to time
15:59 sri cool thing is you can use it like this my $delay = Mojo::IOLoop->delay(sub { say pop->res->code }); $ua->get('mojolicio.us' => $delay->begin); to use leak protection
15:59 beyondcreed joined #mojo
15:59 sri a little on demand circular reference guard
16:02 tempire so it won't execute until the request finishes?
16:03 tempire ah, yes
16:03 tempire neat
16:11 hummeleBop joined #mojo
16:12 gatitskiy joined #mojo
16:14 sh4|2 joined #mojo
16:21 DaTa joined #mojo
16:29 dotan joined #mojo
16:34 btyler joined #mojo
16:46 Akron joined #mojo
16:48 Akron sri: Just wanted to remind you that the plan was to live vote on the Unicode Codepoint for 5.0 on MojoConf - with some candidates. And that's COMPLETELY missing on the agenda! ;)
16:48 fhelmber_ joined #mojo
16:48 sri oh my
16:49 good_news_everyon joined #mojo
16:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/GJZEgQ
16:49 good_news_everyon mojo/master 42bd0a8 Sebastian Riedel: do not recommend multiple dispatch cycles in the cookbook
16:49 good_news_everyon left #mojo
16:50 sri does the recipe still get the point across? http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Streaming_multipart_uploads
16:50 sri the old recipe was soooooo dangerous
16:53 sri the old one https://github.com/kraih/mojo/blob/cf50ccba6c30e5812b3ee199496315907e4755d1/lib/Mojolicious/Guides/Cookbook.pod#streaming-multipart-uploads
16:54 good_news_everyon joined #mojo
16:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/sYhrnw
16:54 good_news_everyon mojo/master e231b73 Sebastian Riedel: no need to use transaction directly
16:54 good_news_everyon left #mojo
16:55 good_news_everyon joined #mojo
16:55 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/TccSOA
16:55 good_news_everyon mojo/master 9d02931 Sebastian Riedel: there is also no need to return
16:55 good_news_everyon left #mojo
16:57 sri hopefully it actually gets the point across better... since the flow is much simpler
17:06 dod joined #mojo
17:10 sri ah, so that's how adsense works :o http://pastebin.com/qh6Tta3h
17:14 mire_ joined #mojo
17:15 beyondcreed_ joined #mojo
17:15 ua_ joined #mojo
17:19 sri hahaha... this sums up one of my favorite topics... benchmarks! https://pbs.twimg.com/media/BmRMfJUIEAA-3_J.jpg:large
17:20 stephan48 levitating buisnessmen should be kept for a major with many breaking changes
17:20 stephan48 in my opinion
17:23 dod joined #mojo
17:40 kbenson1 joined #mojo
17:43 cmihai sri: then why does it start like a Nigerian 419 scam? :-)
17:47 bluescreen_ joined #mojo
17:50 babl joined #mojo
18:02 sugar_ joined #mojo
18:13 sugar__ joined #mojo
18:17 beyondcreed joined #mojo
18:33 dvinciguerra joined #mojo
18:40 cpan_mojo Mojo-Run 0.3 by LIKHATSKI - http://metacpan.org/release/LIKHATSKI/Mojo-Run-0.3
18:42 batman anyone looked at Mojo::Run ?
18:43 gatitskiy joined #mojo
18:44 sugar joined #mojo
18:51 sujithm joined #mojo
18:52 fhelmber_ joined #mojo
19:03 Adurah_ joined #mojo
19:08 gatitskiy joined #mojo
19:08 igorsutton joined #mojo
19:17 trone joined #mojo
19:22 maxhq joined #mojo
19:35 meshl joined #mojo
19:51 denis_boyun joined #mojo
20:02 russum joined #mojo
20:03 denis_boyun joined #mojo
20:25 sugar_ joined #mojo
20:26 cmihai_ joined #mojo
20:41 mire_ joined #mojo
20:50 nic Anyone looked at combining markdown with ep?
20:51 nic I would like the bulk of the text to be markdown but the embedded (dynamic) bits to use ep
20:51 nic I'm guessing the easiest way might be to protect the ep bits from hoedown, then pass the resulting html+embedded to ep
20:52 tianon or maybe render just the ep bits first, since html inside markdown is legit
20:52 tianon then you could also have the ep bits emit markdown
20:52 rem_lex joined #mojo
20:53 tianon seems easier IMO than trying to protect the ep bits from markdown processing
20:53 nic I'll have a think about that
20:53 nic If it works, it's much better
20:54 nic partly cos it gives the option of the md being rendered client-side
20:54 sri PODRenderer uses ep as a preprocessor for pod
20:54 nic Hah, why did that not occur to me!  Excellent
20:54 nic thanks guys
21:00 disputin joined #mojo
21:06 rem_lex joined #mojo
21:11 rem_lex|pivo joined #mojo
21:59 good_news_everyon joined #mojo
21:59 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/aac3e337a68a21a22ce1eddf9d5d83a31827d6a0
21:59 good_news_everyon mojo/master aac3e33 Sebastian Riedel: added multi-name support to param method in Mojo::Parameters
21:59 good_news_everyon left #mojo
22:11 good_news_everyon joined #mojo
22:11 good_news_everyon [mojo] kraih tagged v4.97 at ea328c7: http://git.io/z_9sXA
22:11 good_news_everyon left #mojo
22:13 cpan_mojo Mojolicious 4.97 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-4.97
22:13 good_news_everyon joined #mojo
22:13 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/HmOagQ
22:13 good_news_everyon mojo/master 7d1d2d9 Sebastian Riedel: bump version
22:13 good_news_everyon left #mojo
22:17 good_news_everyon joined #mojo
22:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/fa0f23c11cc9dc92a9bbb3d5846cb0232bcc0c69
22:17 good_news_everyon mojo/master fa0f23c Sebastian Riedel: removed a few deprecated methods from Mojo::DOM
22:17 good_news_everyon left #mojo
22:18 * tempire supports multi-name support
22:19 sri dunno why it's been overlooked so far, controller and validation had it both
22:30 rem_lex joined #mojo
22:35 d4rkie joined #mojo
22:36 d4rkie_ joined #mojo
22:39 Akron joined #mojo
22:52 fhelmber_ joined #mojo
22:57 zivester joined #mojo
23:01 d4rkie joined #mojo
23:26 bobkare joined #mojo
23:54 asarch joined #mojo

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