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

IRC log for #mojo, 2017-05-24

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

All times shown according to UTC.

Time Nick Message
00:36 stryx` joined #mojo
00:42 marty_ joined #mojo
00:57 marty joined #mojo
01:59 zivester joined #mojo
02:01 skycarl joined #mojo
02:02 noganex joined #mojo
02:30 zivester joined #mojo
02:53 tchaves joined #mojo
02:59 noganex_ joined #mojo
03:32 zivester joined #mojo
04:02 aborazmeh joined #mojo
04:04 dboehmer_ joined #mojo
04:35 disputin joined #mojo
04:37 disputin joined #mojo
04:40 disputin joined #mojo
04:42 disputin joined #mojo
04:45 disputin joined #mojo
04:46 disputin joined #mojo
04:47 disputin joined #mojo
04:48 disputin joined #mojo
04:50 disputin joined #mojo
04:51 disputin joined #mojo
04:52 disputin joined #mojo
04:53 disputin joined #mojo
04:55 disputin joined #mojo
04:56 disputin joined #mojo
04:57 disputin joined #mojo
04:58 disputin joined #mojo
05:00 disputin joined #mojo
05:02 disputin joined #mojo
05:03 disputin joined #mojo
05:06 disputin joined #mojo
05:07 disputin joined #mojo
05:08 disputin joined #mojo
05:10 disputin joined #mojo
05:11 disputin joined #mojo
05:12 disputin joined #mojo
05:13 disputin joined #mojo
05:15 disputin joined #mojo
05:16 disputin joined #mojo
05:17 karjala_ joined #mojo
05:17 disputin joined #mojo
05:18 disputin joined #mojo
05:20 disputin joined #mojo
05:21 disputin joined #mojo
05:22 maschine joined #mojo
05:23 inokenty-w joined #mojo
05:23 disputin joined #mojo
05:26 disputin joined #mojo
05:28 disputin joined #mojo
05:31 disputin joined #mojo
05:33 disputin joined #mojo
05:34 dod joined #mojo
05:36 disputin joined #mojo
05:38 disputin joined #mojo
05:40 dod joined #mojo
05:41 disputin joined #mojo
05:43 disputin joined #mojo
05:46 disputin joined #mojo
05:48 disputin joined #mojo
05:51 disputin joined #mojo
05:53 disputin joined #mojo
05:56 disputin joined #mojo
05:57 disputin joined #mojo
05:58 disputin joined #mojo
06:00 disputin joined #mojo
06:01 disputin joined #mojo
06:02 disputin joined #mojo
06:03 disputin joined #mojo
06:05 disputin joined #mojo
06:06 disputin joined #mojo
06:07 disputin joined #mojo
06:08 disputin joined #mojo
06:10 disputin joined #mojo
06:11 disputin joined #mojo
06:12 disputin joined #mojo
06:13 dod joined #mojo
06:13 disputin joined #mojo
06:45 AndrewIsh joined #mojo
06:49 CHYC sri: That's fair enough. FWIW I agree with you about the output_formatters and would have campaigned harder for the functionality in the latest comment had I chosen to write that instead, but that has its own disadvantages mentioned.
06:51 CHYC If you get rid of the 'first' and 'last' formatters, things get a teeny bit nicer because then 'last' can be put directly into a grep in the optional sub, but not by much and I can see a valid use-case for 'last'.
08:00 irqq joined #mojo
08:11 irqq_ joined #mojo
08:27 trone joined #mojo
08:41 gregf_ joined #mojo
09:03 rshadow joined #mojo
09:08 stryx` joined #mojo
09:16 Vandal joined #mojo
09:41 bwf joined #mojo
09:43 marty joined #mojo
09:45 * sri just wrote this little hack to restart prefork workers once they reach a certain size, perhaps there should be a plugin :S https://gist.github.com/anonymous/16516f34dd826216cbc575074011dd69
09:47 sri it could offer more BSD::Resource based limits
09:50 bwf joined #mojo
09:58 batman sri: why do you log with debug instead of warn?
10:41 prg joined #mojo
11:09 tchaves joined #mojo
11:14 castaway joined #mojo
11:19 Petru joined #mojo
11:30 sri batman: because it's not important enough
11:30 sri obviously ;p
11:52 litwol_ joined #mojo
11:57 Pyritic joined #mojo
11:58 skycarl joined #mojo
12:13 rshadow joined #mojo
12:18 batman sounds like something i would like to know, if the fork starts using a lot of resources...
12:25 Armen good mornings
12:25 purl good mornings are when all my stocks are up in after hours trading
12:26 Armen eh, thanks!
12:29 sri no, it's normal, we have some massive reports to turn into html
12:29 gryphon joined #mojo
12:45 sri so, it's fine if one worker gets really big for one of those reports and then restarted
12:46 sri it would only be a problem if all consumed that much memory at the same time
12:59 marty joined #mojo
13:09 marty joined #mojo
13:30 stryx` joined #mojo
13:32 rshadow joined #mojo
13:47 batman sri: aha. i see :)
13:47 batman cool, cool
13:55 bwf Is "before_render" or "under" the best place to validate a route placeholder?
13:57 nic what kind of validation rule(s) are you planning?
13:58 bwf One of the placeholder is capturing a UUID.  Just want to validate that it is a UUID.  Multiple routes have this placeholder in the route.
14:00 nic if it's not a UUID, what next?
14:01 Armen joined #mojo
14:01 batman bwf: What about http://mojolicious.org/perldoc/Mojolicious/Guides/Routing#Adding-conditions ?
14:02 nic if it's a big routing table, prob don't want the performance hit
14:02 stryx` joined #mojo
14:03 nic it's sounding like the kind of validation-of-inputs that is commonplace for (the start of ) actions (via a helper)
14:03 bwf render a json back to the client to indicate an invalid request
14:03 nic I was asking cos if you want a different route to be considered, you'd need it to be part of the routing
14:04 gizmomathboy joined #mojo
14:04 nic the simplest solution is to handle it in the action along with its other validations
14:05 bwf ok, thanks nic and batman
14:06 nic 'under' has lots of uses, but it's most useful as a 'guard' to filter access to a routing subtree (apologies for switching tween table and tree :) )
14:08 zivester joined #mojo
14:23 maschine joined #mojo
14:25 stryx` joined #mojo
14:28 dotan_convos How do I tell what version of mojolicious config_override comes from? It's commit 528bfd960 - do I just check out that revision and look at the $VERSION in Mojolicious.pm?
14:29 dotan_convos it's 7.29
14:34 kes joined #mojo
14:34 dotan_convos (I added support for config_override to Mojolicious::Plugin::ConfigHashMerge and got failing tests in older versions of Mojolicious)
14:34 dotan_convos All glory to cpantesters
14:36 Armen I seem to have failed at migrating my repo from bitbucket to github :/
14:42 kes Hi. Does minion support AmazonSQS? may someone recommend backend module for that?
14:44 jberger kes: no, I don't believe there is any support for that
14:44 purl okay, jberger.
14:45 jberger also, I don't think it would fit the minion paradigm very well
14:45 jberger minion isn't especially about FIFO ordered jobs
14:46 jberger dotan_convos++
14:50 VVelox joined #mojo
14:52 Pyritic joined #mojo
14:53 disputin joined #mojo
14:54 rshadow joined #mojo
15:02 dotan_convos jberger: Is your release-announcing bot still running?
15:02 stryx` joined #mojo
15:05 jberger batman runs it now
15:05 pink_mist but clearly not very well :P
15:06 jberger pink_mist: ouch, that's not nice
15:06 jberger I ran it back when it was based on miyagawa's cpan upload friendfeed stream
15:07 jberger but now that friendfeed has gone away it had to rely on more fragile things
15:07 jberger actually, preaction might be building something that could reinvigorate the old bot
15:07 jberger indeed, preaction, that might be a good test consumer ...
15:08 pink_mist I meant it in jest - it's just that I don't see cpan_mojo in the channel (but maybe it had a different nick?)
15:09 VVelox I really should make it out this week.
15:09 VVelox been to long
15:09 VVelox wait, wrong channel
15:15 PryMar56 joined #mojo
15:24 asymp left #mojo
15:47 zivester joined #mojo
15:52 sh14 joined #mojo
15:53 tchaves joined #mojo
16:03 Pyritic joined #mojo
16:04 karjala @jberger: i have a question: once i build a new version of perl in some directory, what do i have to do to use it (and its core libs)
16:05 karjala Without plenv or the other tool
16:05 karjala Ie for production
16:06 Grinnz use the full path to any binaries you run from that perl
16:06 Grinnz or add that perl's bin/ to your path
16:07 Grinnz (the first way is easier for production deployments)
16:07 karjala Must i set the core library paths as well?
16:07 Grinnz no, as long as the binaries have their shebang rewritten correctly, they will invoke the appropriate perl with the appropriate core lib paths
16:08 Grinnz (incl 'perl' itself)
16:15 karjala @jberger: or anyone else: why dont you like plenv's shims to be used in production?
16:19 Grinnz it's extra complexity
16:19 Grinnz if you only are using one perl
16:29 jberger it relies on the cwd to choose the perl
16:29 jberger your init scripts don't need that complexity (as Grinnz says)
16:30 jberger but neither do they need perlbrew's
16:30 jberger which is why for production I just build a one-off perl via perl-build
16:30 jberger or, sigh, just use the system perl ...
16:31 jberger oh sorry, I didn't read back far enough
16:32 jberger I again agree with Grinnz, full path to the perl binary in the init scripts is the best/easiest way to go
16:32 jberger I usually use that with Carton too
16:32 jberger but that may be more than you need
16:32 jberger just install the dependencies you have into the library path for that perl
16:36 karjala I want carton too
16:36 jberger so use that perl to install carton
16:37 karjala How do i make hypnotoad of carton run my preferred perl?
16:37 jberger and then use that carton to install the deps for your application
16:37 jberger it will use it because it knows what perl installed it
16:37 jberger (but you might want to use the full path to hypnotoad to be sure you have the right one of THOSE!)
16:44 karjala Doesn't carton also rely on cwd?
16:48 * ashimema would love a short guide on what jberger is describing as his way of running in production having used carton to maintain dependancies and perl-build to get a particular perl
16:48 ashimema it's an area I've never been particularly confident in myself.. always appreciate seeing how others are doing it..
16:54 dod joined #mojo
17:05 karjala Nice idea
17:11 Grinnz karjala: you don't need to use carton exec. Just add the full path to local/lib/perl5 to @INC
17:12 pink_mist it might be *easier* to use carton exec though
17:13 karjala I think theres more than one dir that i need to add in inc
17:13 karjala One looks like x86 something
17:13 Grinnz that will be automatically handled if you add it to PERL5LIB or use lib.pm
17:15 disputin joined #mojo
17:15 karjala I'llcreate a module that will add the nearest local/etc to my inc
17:16 karjala No
17:18 [0xAF] I needed an init script for hypnotoad few days ago, so I created/rewrote a small plugin which creates init scripts like this: https://gist.github.com/0xAF/42f6552db3a85aa41e0d2c4c4f50a211
17:19 [0xAF] and because I do not know the proper way to start hypnotoad (with carton), i made it in the old school way...
17:20 dod joined #mojo
17:25 dod1 joined #mojo
17:40 trone joined #mojo
17:57 Pyritic joined #mojo
18:13 disputin joined #mojo
18:20 rshadow joined #mojo
18:23 stryx` joined #mojo
18:32 punter joined #mojo
18:38 stryx` joined #mojo
18:50 kaare_ joined #mojo
19:04 rshadow joined #mojo
19:10 batman jberger: I haven't updated to the next metacpan version
19:10 batman Haven't had the time to fix it :/
19:11 batman Please send a PR, hehe https://github.com/jhthorsen/App-cpan_new
19:11 * batman is out drinking beers
19:18 zen cheers!
19:19 rshadow joined #mojo
19:26 rshadow joined #mojo
19:34 Janos joined #mojo
19:35 jberger ????
19:42 zivester joined #mojo
19:53 batman Day off tomorrow. I love May :)
19:54 jberger batman: has the app actually stopped working or are you just not running it in anticipation of the change
19:54 PopeFelix joined #mojo
19:55 * jberger wishes he had the day off tomorrow
19:59 preaction you and me both...
19:59 PopeFelix joined #mojo
20:03 disputin joined #mojo
20:08 marty joined #mojo
20:12 trwww joined #mojo
20:12 marty joined #mojo
20:24 dotan_convos joined #mojo
20:32 trwww recommendations on Mojolicious::Plugin::REST versus Mojolicious::Plugin::RESTful ? Something else? I'm coming from catalyst and need to put together a rest API where the framework is a little more lightweight.
20:56 zivester joined #mojo
20:59 jberger trwww: if you want something standards based, Mojolicious::Plugin::OpenAPI
20:59 trwww thanks!
20:59 preaction don't those REST plugins auto-generate routes though?
21:00 jberger ::OpenAPI does too though
21:01 preaction the routes don't _do_ anything
21:01 jberger do you mean actions?
21:01 preaction okay
21:01 jberger do the rest-y ones actually make the actions methods?
21:02 jberger I don't know, I haven't used them ...
21:02 jberger guess I have to read
21:02 preaction M::P::REST doesn't seem to
21:03 preaction the other one doesn't seem to either. iow, they're much different from Catalyst::Action::REST
21:25 Pyritic joined #mojo
21:45 Grinnz hmm, thought about adding a shim to Mojo::SQLite::Database so parameters passed to the SQL::Abstract methods as a hashref are "escaped", but getting it working for the where clauses would be a lot of special cases
21:46 Grinnz since parameters aren't always at the top level there
21:55 PopeF joined #mojo
22:13 rshadow joined #mojo
22:18 rshadow joined #mojo
22:59 Grinnz https://pics.onsizzle.com/damn-it-barry-stop-messing-with-timeline-17099928.png
23:01 pink_mist hah
23:09 zivester joined #mojo
23:54 punter joined #mojo

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