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

IRC log for #mojo, 2017-01-14

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

All times shown according to UTC.

Time Nick Message
00:11 stryx` joined #mojo
00:22 sugar joined #mojo
00:25 zivester joined #mojo
00:26 gizmomathboy joined #mojo
00:57 sugar joined #mojo
01:51 sugar joined #mojo
02:03 aborazmeh joined #mojo
02:28 jberger I need to review more carefully still, but I think unifying TLS is worth 9 lines
03:09 marty_ joined #mojo
03:40 cpan_mojo Mojo-Webqq-2.0.3 by SJDY https://metacpan.org/release/SJDY/Mojo-Webqq-2.0.3
03:46 cpan_mojo Mojo-Weixin-1.2.8 by SJDY https://metacpan.org/release/SJDY/Mojo-Weixin-1.2.8
04:42 bossert joined #mojo
05:01 inokenty joined #mojo
05:04 dboehmer_ joined #mojo
08:58 dod joined #mojo
09:04 dod joined #mojo
09:14 AndrewIsh joined #mojo
09:36 stryx` joined #mojo
10:03 batman any Mojo::IRC users here? going to deprecate "irc_any" event: https://github.com/jhthorsen/mojo-irc/pull/29
10:08 batman sri: i've looked at the diff, but i'm not really in any position to say anything about the actual code. but it looks a lot cleaner.
10:13 cpan_mojo Mojo-IRC-0.43 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojo-IRC-0.43
10:21 inokenty joined #mojo
10:57 kes joined #mojo
11:08 dod joined #mojo
11:32 * sri wonders if the whole _NDN stuff should have a better name
11:33 sri more generic, in case the module gets replaced in the future
11:33 sri NDN stands for Net::DNS::Native atm
11:33 sri but the feature is called non-blocking name resolution
11:33 sri NNR maybe
11:36 good_news_everyon joined #mojo
11:36 good_news_everyon [mojo] kraih pushed 1 new commit to ioloop_tls: https://git.io/vMVKY
11:36 good_news_everyon mojo/ioloop_tls b863ad4 Sebastian Riedel: the feature is called non-blocking name resolution
11:36 good_news_everyon left #mojo
11:37 sri _SOCKS and _TLS are generic after all too
11:45 good_news_everyon joined #mojo
11:45 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMVKg
11:45 good_news_everyon mojo/master 47ed248 Sebastian Riedel: Merge branch 'ioloop_tls'
11:45 good_news_everyon left #mojo
11:45 AndrewIsh joined #mojo
11:47 sri it's just how i would have designed it today :)
11:47 good_news_everyon joined #mojo
11:47 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMVK6
11:47 good_news_everyon mojo/master eca4111 Sebastian Riedel: update Changes
11:47 good_news_everyon left #mojo
11:47 sri even with those 9 extra lines
11:47 sri but please make sure to test for leaks if you're a TLS user
11:48 sri btw. http://mojolicious.org/perldoc/Mojo/IOLoop/TLS
11:52 sri guess having a Mojo::IOLoop::* module that's not directly hooked into Mojo::IOLoop is a good example too
12:01 good_news_everyon joined #mojo
12:01 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMV6v
12:01 good_news_everyon mojo/master e2d50b8 Sebastian Riedel: better description for constants
12:01 good_news_everyon left #mojo
12:04 AndrewIsh joined #mojo
12:43 sugar joined #mojo
13:16 dod joined #mojo
13:19 batman joined #mojo
13:20 kes First call to 'before_render' callback when exception occur does not have $c->stash->{ snapshot } defined (when 'exception.development' template is tried). Following calls has (when 'exception', 'mojo/debug' are tried)
13:21 sh14 joined #mojo
13:22 kes in contrary $_[1]->{ snapshot } is defined for all those cases
13:27 kes is this expected that { snapshot } is not defined?
14:15 kes ah, I have found. That is because of $c->render_maybe implicitly sets up stash keys which are consistent between calls
14:15 kes http://paste.scsys.co.uk/540704
14:21 kes and stash should be localized here: https://github.com/KES777/mojo/blob/master/lib/Mojolicious/Controller.pm#L169 in same way as it is localized when { mojo.string }: https://github.com/KES777/mojo/blob/master/lib/Mojolicious/Renderer.pm#L83
14:25 kes Is this a bug that $c->render_maybe implicitly changes $c->stash?
14:34 zivester joined #mojo
14:48 marty joined #mojo
14:49 sh14 joined #mojo
16:40 jberger ok, so I'm actually giving the (now merged) branch a close read
16:40 jberger should MOJO_NO_NDN be given deprecation?
16:41 jberger it probably isn't a big concern, but it does mean that if someone is trying to exclude it, it suddenly isn't excluded
16:44 sri never had any tests, as far as i'm concerned it's in the same category as the debug env vars that can change any time too
16:44 jberger I'm ok with that, as long as its been thought about
16:45 jberger everything else looks ok to me
16:50 rshadow joined #mojo
16:58 disputin joined #mojo
17:20 lluad joined #mojo
17:57 sri hmm, metacpan search seems down
18:06 asarch joined #mojo
18:14 good_news_everyon joined #mojo
18:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMVAa
18:14 good_news_everyon mojo/master 28ac3be Sebastian Riedel: add Mojo::IOLoop::TLS tests
18:14 good_news_everyon left #mojo
18:21 good_news_everyon joined #mojo
18:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMVAb
18:21 good_news_everyon mojo/master f598fcb Sebastian Riedel: more Mojo::IOLoop::TLS tests
18:21 good_news_everyon left #mojo
18:23 pink_mist seems to work for me now, sri
18:35 sri me too
18:38 good_news_everyon joined #mojo
18:38 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vMVxa
18:38 good_news_everyon mojo/master 4bcbc03 Sebastian Riedel: test both argument variants
18:38 good_news_everyon left #mojo
18:58 asarch joined #mojo
20:29 dod joined #mojo
22:07 asarch joined #mojo
22:27 asarch joined #mojo
22:42 Petru joined #mojo
22:52 Petru Hi, I’m trying to render a page of all users. This is the controller: http://pastebin.com/5se829Cc when I dump the data it has entries looking like: http://pastebin.com/YTGgm8Ws but in the template http://pastebin.com/R39meUB4 it has only one user
22:54 Petru how can I pass all the users?
22:55 pink_mist I don't know the answer to your query, but I can tell you that the last link is marked private and so can't be viewed
22:56 Petru sorry http://pastebin.com/CN8gkH0p
22:58 pink_mist oh, one thing I can tell you: on line 12 in the controller you pasted, you need to give an arrayref to users instead of a list
22:58 pink_mist because otherwise it'll clobber things
22:59 pink_mist and really not work very well
23:00 pink_mist so instead of users => ($users->hashes) (btw, those () does absolutely *nothing* there)), you should do: users => [$users->hashes]
23:00 sri if you like DBIx::Simple you might also like Mojo::Pg http://mojolicious.org/perldoc/Mojo/Pg
23:01 sri and creating a new connection for every request like that is extremely inefficient
23:01 Petru thank you
23:01 Petru how can I do it more efficiently?
23:02 sri there's an example app that shows good practices https://github.com/kraih/mojo-pg/tree/master/examples/blog
23:47 vicash left #mojo
23:51 Lee_ joined #mojo
23:51 tledet joined #mojo
23:51 disputin1 joined #mojo
23:51 Gedge_ joined #mojo
23:52 vicash joined #mojo
23:52 esh joined #mojo

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