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

IRC log for #mojo, 2014-09-07

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

All times shown according to UTC.

Time Nick Message
00:01 jberger_ sri: I have a feeling you are going to dislike this at first (past experience), but I'm thinking about a new Test::Mojo method
00:01 cpan_mojo Minion 0.35 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.35 (depends on Mojolicious)
00:01 sri you know, most libraries only have a build step for minifying... but not highlight.js, it actually compiles javascript to javascript with python3!
00:02 jberger_ sub json_message { shift->_json(get => shift) }
00:03 jberger_ there is no convenient way to get the json out of a websocket message, though we do have json_message_* tests
00:04 jberger_ heck, even getting the message contents assumes you know about the structure
00:05 jberger_ for context, I'm writing some tests for this app
00:05 jberger_ https://gist.github.com/jberger/e9ce5820066d4afd17f4
00:06 jberger_ its an example for a forthcoming blog post
00:06 sri i'm not yelling yet :)
00:07 jberger_ these are the current tests: http://pastie.org/9532926
00:07 jberger_ can you see the line I'm not excited to demo :-P
00:07 jberger_ j($t->message->[1]) # not obvious
00:08 sri is there precedent?
00:09 jberger_ the precedent is really that there is a nice way to dig into regular responses already, through the transaction
00:09 jberger_ $t->res->dom->find ...
00:10 sri can it be done without adding a new line of code?
00:10 * jberger_ looks
00:11 sri apparently the functionality is already there... if you remix it into a public api i'm +1-ish
00:12 jberger_ certainly that can be done, without adding even one line, might be tough
00:13 sri think i'm indifferent then
00:14 sri if others think it's worth it...
00:14 d4rkie joined #mojo
00:14 jberger_ funny thing, its actually easier to do for the like a json_message_payload than it would be for a more generic message_payload
00:14 jberger_ basically just rename the _json method
00:16 jberger_ I think perhaps my real worry is not the convenience function(s) but the user's understanding of how the 'message' attribute is structured
00:16 jberger_ https://github.com/kraih/mojo/blob/master/lib/Test/Mojo.pm#L439
00:19 jberger_ do they understand that the second element is the payload? they don't usually need to care that the first is the frame type
00:28 jberger_ sri: my alternative proposal: http://pastie.org/9532953
00:32 d4rkie joined #mojo
00:54 sri jberger_: +1
00:54 purl 1
01:00 good_news_everyon joined #mojo
01:00 good_news_everyon [mojo] jberger pushed 1 new commit to master: http://git.io/a0KsOQ
01:00 good_news_everyon mojo/master 11687a3 Joel Berger: clarify the structure of Test::Mojo's message attribute
01:00 good_news_everyon left #mojo
01:01 jberger_ batman/marcus: good_news usually sends two messages almost exactly at the same time
01:01 jberger_ most of those times, I only see the first message until I refresh
01:18 sri can confirm
01:21 sri soooo... apparently i-json is a thing now http://tools.ietf.org/html/draft-ietf-json-i-json-03
01:24 jberger_ http://xkcd.com/927/
01:25 * sri is once again disappointed by the lack of xkcd embedding in convos
01:25 * jberger_ tries to remember if he actually submitted a pr for xkcd support
01:25 * jberger_ has the codez
01:26 sri ヽ༼ ಠ益ಠ ༽ノ
01:29 jberger_ sri: my android phone doesn't have the 1 and -2 characters
01:29 jberger_ batman: J'ACCUSE! # https://github.com/jhthorsen/mojolicious-plugin-linkembedder/pull/4
01:30 sri \(>o<)ノ
01:31 sri i was about to bash your phone... but mine doesn't either :(
01:32 * jberger_ attempts `bash phone`: bash: phone: No such file or directory
01:33 * sri can't wait for android l... it's like google hired someone with taste
01:35 * jberger_ bashes purl
01:35 * purl zshes jberger_
02:04 good_news_everyon joined #mojo
02:04 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/bcGwHA
02:04 good_news_everyon mojo/master 75ac918 Sebastian Riedel: improved decamelize performance
02:04 good_news_everyon left #mojo
02:18 sujithm joined #mojo
02:23 sujithm joined #mojo
02:25 woz joined #mojo
02:42 Kripton joined #mojo
02:57 woz joined #mojo
02:58 noganex joined #mojo
02:58 r0b3rt joined #mojo
03:09 basic6_ joined #mojo
03:17 good_news_everyon joined #mojo
03:17 good_news_everyon [mojo] kraih tagged v5.39 at 49931aa: http://git.io/rdDQvw
03:17 good_news_everyon left #mojo
03:18 good_news_everyon joined #mojo
03:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/8Du1tQ
03:18 good_news_everyon mojo/master 0beec8f Sebastian Riedel: bump version
03:18 good_news_everyon left #mojo
03:19 cpan_mojo Mojolicious 5.39 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-5.39
03:21 sri allright, no more releases or we run out of numbers :o
03:42 actuallymarcus joined #mojo
03:50 davido_ joined #mojo
03:57 jberger_ RELEASE ALL THE THINGS!!!
04:02 cpan_mojo WWW-Crawler-Mojo 0.03 by Sugama Keita - http://metacpan.org/release/JAMADAM/WWW-Crawler-Mojo-0.03
04:08 woz joined #mojo
05:03 woz joined #mojo
05:10 r0b3rt left #mojo
06:06 woz joined #mojo
06:06 D4RK-PH0ENiX joined #mojo
06:26 davido_ joined #mojo
06:42 KCL_ joined #mojo
06:44 actuallymarcus joined #mojo
07:17 actuallymarcus joined #mojo
07:20 Vandal joined #mojo
07:37 denis_boyun joined #mojo
07:47 berov joined #mojo
08:02 berov sri, thanks for fixing the '<% %>' bug
08:02 berov I felt very sick yesterday and went away
08:07 jamesaxl joined #mojo
08:11 woz joined #mojo
08:30 basiliscos joined #mojo
09:09 woz joined #mojo
09:25 basiliscos joined #mojo
09:27 cpan_mojo Ado 0.62 by Krasimir Berov - http://metacpan.org/release/BEROV/Ado-0.62 (depends on Mojolicious::Plugin::DSC)
09:33 basic6_ joined #mojo
09:38 sh4 joined #mojo
09:40 woz joined #mojo
10:26 dod joined #mojo
10:41 actuallymarcus joined #mojo
10:45 woz joined #mojo
11:09 d4rkie joined #mojo
11:14 basiliscos joined #mojo
11:50 woz joined #mojo
11:54 woz joined #mojo
11:55 woz joined #mojo
11:55 woz joined #mojo
12:18 cpan_mojo Mojolicious-Plugin-ViewBuilder 0.01 by MUDLER - http://metacpan.org/release/MUDLER/Mojolicious-Plugin-ViewBuilder-0.01
12:23 cpan_mojo MojoX-CustomTemplateFileParser 0.01 by CSSON - http://metacpan.org/release/CSSON/MojoX-CustomTemplateFileParser-0.01
12:30 cpan_mojo Dist-Zilla-Plugin-Test-CreateFromMojoTemplates 0.01 by CSSON - http://metacpan.org/release/CSSON/Dist-Zilla-Plugin-Test-CreateFromMojoTemplates-0.01
12:46 lestrrat joined #mojo
12:59 batman marcus: maybe we should mark the elastic search logger as experimental?
12:59 batman Oh! Wrong channel :/
13:18 jamesaxl joined #mojo
13:30 jamesaxl joined #mojo
13:33 espent joined #mojo
14:03 actuallymarcus batman: That sounds like a good idea, as we might have to adjust the format based on real world use.
14:03 actuallymarcus I'm pretty sure this is #convos now :D
14:25 sri #perl on freenode just stopped working for me on september 4, i had to rejoin
14:26 sri i didn't notice until an hour ago... since i'm usually not following that channel actively
14:28 sri #catalyst had no activity in my convos since september 5, also seems odd
14:43 cpan_mojo MojoX-CustomTemplateFileParser 0.02 by CSSON - http://metacpan.org/release/CSSON/MojoX-CustomTemplateFileParser-0.02
14:44 cpan_mojo Dist-Zilla-Plugin-Test-CreateFromMojoTemplates 0.02 by CSSON - http://metacpan.org/release/CSSON/Dist-Zilla-Plugin-Test-CreateFromMojoTemplates-0.02
14:48 basiliscos joined #mojo
15:01 jberger_ does anyone know CSSON?
15:01 jberger_ I see lots of modules with that username lately
15:05 jberger_ tempire: perlr is down?
15:14 * sri just follows the perl ironman twitter account these days
15:25 gbjk joined #mojo
15:26 gbjk batman: Yo. I've issued a pull request to bring your lazy sources stuff up to latest release, fix compat, and also make it not vivify the sources on connect anyway.
15:26 gbjk batman: I don't want to presumptively pull request that back ups
15:26 gbjk batman: So I'll let you review it, and decide what you want to do.
15:28 batman gbjk: don't really care. i just forked dbic so i could write the patch
15:28 batman don't really care = i've merged it without reading the diff
15:28 batman it = your pr
15:29 batman marcus: i think you will like next assetpack: https://github.com/jhthorsen/mojolicious-plugin-assetpack/blob/master/Changes#L3 :)
15:29 batman just need to try it out locally a bit first
15:30 gbjk batman: Are you happy to update your pull request into core, please?
15:30 gbjk batman: I may work with riba to get it in early, anyway.
15:32 batman gbjk: not sure if i want (have the energy) to do that. sorry :(
15:32 batman at least not today.
15:32 gbjk batman: Okay. I'll take it off your hands, then.
15:32 batman does that mean that you will fix it for me?
15:34 gbjk batman: I already have.
15:34 batman gbjk: sweet! thanks :)
15:34 gbjk batman: I'll continue to work on this until it's in core. It's a worthwhile objective, and important to my busness.
15:35 batman ok. i've given up on it completely...
15:35 batman good luck :)
15:35 batman given up: mostly because it's not where i focus my energy.
15:35 batman haven't used dbic in a while...
15:38 actuallymarcus joined #mojo
15:38 davido_ joined #mojo
15:46 epk joined #mojo
15:49 actuallymarcus sri: #catalyst seems to have been idle, it's the same in my client.
15:50 actuallymarcus #perl freenode is a bit weird, maybe you were kicked or something/
15:50 batman pretty weird...
15:50 batman panic: sv_setpvn called with negative strlen -2 at /home/jhthorsen/.perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Mojo/Exception.pm line 41.
15:51 batman <%= title ? sprintf(' - %s', title) : '' %>
15:51 batman <%= title() ? sprintf(' - %s', title) : '' %>works with
15:51 sri eeeep
15:53 batman sv_setpvn is sooo not anything i get like...uhm.......
15:53 batman :)
15:53 actuallymarcus Wonder if my client is DOSing demo.convos.org actually
15:58 circ-user-DXE94 joined #mojo
15:59 sri (ノಠ益ಠ)ノ彡┻━┻
16:00 epk Hi all, I am trying to pass a date enclosed in "" to a template using the stash. The problem I have is that mojo renders the "" as &quot. I then tried just embedding the string and printing it in the templated, but then I get Can't use string ("[0, "2012-04-01"],[1, "2012-05-0"...) as a symbol ref while "strict refs". Any suggestions for a newbie....
16:01 gbjk left #mojo
16:01 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Embedded-Perl
16:04 epk sri: fantastic. I must have read that page 3 times! <%== worked.
16:04 sri :)
16:06 sri marcus: i do have a freenode reconnect for september 4 in the log, but that's it
16:22 cpan_mojo Mojolicious-Plugin-AssetPack 0.23 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.23
16:30 batman sri: assetpack is getting pretty crazy: one class pr processor now...
16:30 batman per
16:35 jberger_ https://twitter.com/joelaberger/status/508654649919152129
16:41 sri jberger++
16:41 sri jberger_: could have also shown off nested helpers with 'table.create', 'table.empty' ;)
16:43 jberger_ yeah, though the first paragraph of the post is really true, the idea for this post came from a local non-perl-specific hackathon I was at where I showed off Mojo
16:43 sri heck, even 'table.select' and 'table.insert' if they are not used in templates :)
16:43 jberger_ these really were the things that got people's attention, its not just me making choices of what I like
16:44 jberger_ sri: oh I like that (table.select), that's a good idea for a follow-up post
16:44 sri \o/
16:44 jberger_ I can let this one stand on its own and come back for that
16:44 zivester joined #mojo
16:48 woz joined #mojo
17:05 marcus sri: are you in any other channels on freenode? Did the same thing happen?
17:15 actuallymarcus joined #mojo
17:20 woz joined #mojo
17:22 sri marcus: i am in #perl6, did not happen there
17:24 marcus sri: pretty bizarre. :(
17:25 sri it looked just like i was still in the channel, but there were no more updates
17:25 marcus did you try sending a message in it?
17:25 sri nope
17:26 sri just did a close/join after i noticed and the messages started coming again
17:32 Akron joined #mojo
17:54 Akron jberger_++ Great post!
17:56 Akron I really like the tone of your articles - they are so enjoyable to read!
18:05 jberger_ Akron: thanks!
18:29 woz joined #mojo
18:42 KCL joined #mojo
18:58 berov joined #mojo
18:59 cpan_mojo MojoX-CustomTemplateFileParser 0.03 by CSSON - http://metacpan.org/release/CSSON/MojoX-CustomTemplateFileParser-0.03
19:02 jamesaxl joined #mojo
19:18 cpan_mojo MojoX-CustomTemplateFileParser 0.04 by CSSON - http://metacpan.org/release/CSSON/MojoX-CustomTemplateFileParser-0.04
19:24 cpan_mojo Dist-Zilla-Plugin-Test-CreateFromMojoTemplates 0.03 by CSSON - http://metacpan.org/release/CSSON/Dist-Zilla-Plugin-Test-CreateFromMojoTemplates-0.03
19:32 woz joined #mojo
19:34 bodgix joined #mojo
19:54 jamesaxl joined #mojo
20:05 woz joined #mojo
20:17 good_news_everyon joined #mojo
20:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/w2Sn3A
20:17 good_news_everyon mojo/master 69fc04c Sebastian Riedel: added example for more specific WebSocket tests
20:17 good_news_everyon left #mojo
20:18 sri jberger_: might as well mention it right there :)
20:19 jnbek joined #mojo
20:22 sri Test::Mojo is really heavy on examples, i wonder if all classes will look like that at some point :o http://mojolicio.us/perldoc/Test/Mojo#ATTRIBUTES
20:26 cpan_mojo Mojolicious-Plugin-SemanticUI 0.02 by Krasimir Berov - http://metacpan.org/release/BEROV/Mojolicious-Plugin-SemanticUI-0.02
20:32 basiliscos joined #mojo
20:35 preaction joined #mojo
20:45 actuallymarcus joined #mojo
20:46 sri i don't think you're actually marcus -.-
20:46 marcus I'm actually marcus' laptop
20:46 marcus marcus is demo.convos.by
20:47 marcus I'm actuallymarcus too
20:47 sri maybe you should get that checked out
20:47 actuallymarcus sir \o/
20:48 cpan_mojo Mojolicious-Plugin-SemanticUI 0.03 by Krasimir Berov - http://metacpan.org/release/BEROV/Mojolicious-Plugin-SemanticUI-0.03
21:02 jberger_ Sri++
21:03 jberger_ http://chromakode.com/post/notes-on-xkcd-pixels
21:03 jberger_ ^^kinda cool
21:07 woz joined #mojo
21:18 suy_ joined #mojo
21:19 forke joined #mojo
21:21 yourname joined #mojo
21:25 trone joined #mojo
21:28 Zx3 joined #mojo
21:47 forke joined #mojo
21:53 Zx3 joined #mojo
22:08 woz joined #mojo
22:14 nicomen joined #mojo
22:27 GabrielVieira joined #mojo
22:28 GabrielV_ joined #mojo
22:34 mfontani joined #mojo
22:35 yourname joined #mojo
22:52 bscm joined #mojo
23:09 bodgix left #mojo
23:09 woz joined #mojo
23:26 jberger_ https://www.nikcub.com/posts/analyzing-fbi-explanation-silk-road/
23:46 actuallymarcus joined #mojo
23:47 sri rofl
23:52 sri this is why we have a production mode ;p
23:52 sri to keep our drug empires hidden

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