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

IRC log for #mojo, 2017-11-30

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

All times shown according to UTC.

Time Nick Message
00:49 aborazmeh joined #mojo
01:13 Leffe joined #mojo
02:21 rickbol joined #mojo
03:10 Leffe joined #mojo
04:17 Leffe joined #mojo
04:23 caeles joined #mojo
04:40 Leffe joined #mojo
05:10 ChmEarl joined #mojo
05:16 jamesaxl joined #mojo
05:21 Repaster joined #mojo
05:25 caeles joined #mojo
05:44 caeles joined #mojo
06:12 Leffe joined #mojo
06:15 Leffe joined #mojo
06:28 Vandal joined #mojo
06:48 robx joined #mojo
06:52 inokenty-w joined #mojo
06:53 dod joined #mojo
06:59 dod joined #mojo
07:08 geospeck joined #mojo
07:10 dod joined #mojo
07:20 jkp joined #mojo
07:36 crab joined #mojo
08:06 dim0 joined #mojo
08:22 AndrewIsh joined #mojo
08:34 trone joined #mojo
08:53 karjala_ joined #mojo
08:58 marty joined #mojo
09:14 trone joined #mojo
09:17 Leffe joined #mojo
09:33 geospeck joined #mojo
09:42 dod joined #mojo
09:57 dod joined #mojo
10:04 anon joined #mojo
10:04 kivilahtio joined #mojo
10:19 Leffe joined #mojo
10:20 pirateFinn_ joined #mojo
10:39 trone joined #mojo
10:45 tchaves joined #mojo
11:10 itaipu joined #mojo
11:15 Leffe joined #mojo
11:39 Leffe joined #mojo
11:43 trone joined #mojo
11:57 mfontani joined #mojo
12:09 mfontani joined #mojo
12:32 marcus chansen: is it possible to use Test::MockDateTime with Time::Moment?
12:49 dustinm joined #mojo
13:30 bwf joined #mojo
13:32 mib_quj90h joined #mojo
13:42 gizmomathboy joined #mojo
14:10 exp-innit i've begun serving a mojolicious app through a front-end proxy which adds an element to the path
14:11 exp-innit this is causing issues with my use of "/css/whatever" urls, as they are now no longer correct
14:11 exp-innit i assume there's an url_for or similar helper for files in public
14:11 exp-innit but is there an 'every url is under this path' helper? that's harder to google for :)
14:15 exp-innit ah, http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Rewriting i assume
14:16 exp-innit also i would like to say on https://github.com/kraih/mojo/wiki/Integrating-hypnotoad-with-systemd-and-rsyslog
14:16 exp-innit it may be considered better form to use a 'user' unit now, which sit in ~/.config/systemd/user/ and require the system to be configured with `loginctl enable-linger user`
14:16 exp-innit that is the configuration i've gone for, and it appears to work excellently
14:22 ChmEarl joined #mojo
14:40 gryphon joined #mojo
14:50 pink_mist exp-innit: if you use the url_for or link_to helpers and your mojolicious app has been told what the base path is, it'll just work
15:14 exp-innit pink_mist: yeah i found that in the cookbook, now negotiating with the proxy owner to introduce a header i can read
15:14 exp-innit instead of hardcoding it
15:15 pink_mist I'd make it part of the configuration myself
15:16 exp-innit well that's effectively the same, i would rather accept a parameter so the proxy owner can configure this as they see fit
15:16 exp-innit but either way, i'll have it working momentarily
15:16 exp-innit ty :)
15:21 geospeck joined #mojo
15:36 dustinm joined #mojo
15:37 Grinnz exp-innit: the wiki is publicly editable so feel free to make whatever changes you feel are appropriate
15:37 Grinnz I would actually say the example service file there is not as good as the one that is now in the cookbook
15:39 Grinnz it looks like it's a few years old
15:46 exp-innit Grinnz: oh can you link the cookbook one? i'm rather running around the office at the moment ☺
15:47 Grinnz at the end of the https://metacpan.org/pod/Mojolicious::Guides::Cookbook#Hypnotoad section (there are examples for daemon and prefork servers in the appropriate sections as well)
15:48 exp-innit Grinnz: i see, does look quite similar, but i'd like to see a user example, i'll do my best to find time
15:48 Grinnz the main difference is that hypnotoad is not really designed to be run in foreground mode like that wiki example does
15:49 exp-innit hmm, i believe i am running it in foreground too, perhaps.. it is functioning anyhow ☺
15:53 Grinnz maybe i can find some time to overhaul that wiki page a bit, this is the second time this week ive seen someone using hypnotoad in foreground mode from a service file
16:09 exp-innit Grinnz: without foreground mode it didn't seem happy outputting its logs and/or reload failed, i would need to re-test to check
16:09 gregf_ joined #mojo
16:10 Grinnz you need to do more than just remove the -f, it needs to be managed as a forking-type service without it
16:11 exp-innit Grinnz: yeah i'm aware, that was all done, but there was still some issue
16:11 exp-innit i'm just rushed tonight :)
16:31 sh14 joined #mojo
16:37 exp-innit pink_mist: it seems the base stuff works fine, other than i don't know how to use 'url_for' or similar helpers for public
16:40 exp-innit ah, it seems just using url_for('/path') is sufficient
17:06 Grinnz exp-innit: oh, you're using the default STDERR logging to go to journald?
17:06 exp-innit Grinnz: i was, but i'm happy switching to systemd etc
17:07 Grinnz that is systemd, but if hypnotoad daemonizes itself you don't have STDERR anymore so it needs a log file to use
17:07 Grinnz it defaults to putting one in log/ in the app homedir if that directory exists
17:07 exp-innit uh, syslog sorry*
17:07 exp-innit and yes, log does exist
17:08 exp-innit but i need to ship these too
17:08 Grinnz huh?
17:09 Grinnz this is the default logic https://metacpan.org/source/SRI/Mojolicious-7.57/lib/Mojolicious.pm#L27-39
17:10 Grinnz if it doesn't set $log->path there, and you don't set it yourself, then it will go to STDERR
17:12 Grinnz i'm not sure i understand how rsyslog fits into this
17:12 exp-innit Grinnz: sorry I guess I was unclear? i do have a `log/` but it's purely a stopgap, instead I would prefer to ship to syslog
17:12 exp-innit Grinnz: journald listens for syslogs
17:12 exp-innit it's unrelated to a syslogd
17:12 exp-innit anyway it's no big dela, i can sort next week
17:13 Grinnz if you have a writeable log/, it's not going to go to STDERR anyway
17:13 Grinnz regardless of any other configuration
17:17 Grinnz i feel like it might be better to leverage Log::Any's syslog adapter
17:18 Grinnz if you want to just always use syslog
17:18 exp-innit Grinnz: yeah quite possibly, anyway don't worry about it, i appreciate the help
17:18 exp-innit i'm fighting with unrelated issues and a few missing url_fors at the second you see
17:18 Grinnz sure, i'm just trying to decide if/how best to update this wiki page
17:18 exp-innit oh, that'd be wonderful if os
17:18 exp-innit if so*
17:21 disputin joined #mojo
17:22 Grinnz hmm, https://metacpan.org/pod/MojoX::Log::Any looks a lot more complicated than what i had in mind, maybe it's time to write another role
17:25 preaction get the one jberger wrote
17:25 hkclark joined #mojo
17:25 preaction https://metacpan.org/pod/Log::Any::Adapter::MojoLog <- this one is the orrect one
17:25 Grinnz if you mean https://metacpan.org/pod/Log::Any::Adapter::MojoLog, that's the wrong direction
17:25 preaction ohhh
17:25 Grinnz trying to have *mojo* use Log::Any to log
17:26 exp-innit the simultaneous but diametrically opposed messages there was quite enjoyable :)
17:26 preaction oh, that's easier: $app->log->on( message => sub { ... } )
17:26 jberger especially to me, being both the savior and the goat :-P
17:26 Grinnz right, but that's somethign that can be made much simpler by writing a role for it :P
17:26 preaction fair enough
17:27 exp-innit jberger: just two different translations of the same word there, 'author' :)
17:27 jberger that seems more like a plugin than a role
17:27 Grinnz a plugin could apply the role
17:27 Grinnz i guess it doesnt need to be a role
17:28 Leffe joined #mojo
17:28 Grinnz my last Mojo::Log customization didnt have such an easy interface to use
17:32 Grinnz in fact i could probably rather easily make it a more generic plugin, that can do more than just Log::Any
17:32 Grinnz though Log::Any on its own kinda provides that ability :P
17:35 Grinnz and back to the hard part: naming
17:35 exp-innit Mojo::Log::Everything::Everywhere::Always
17:37 CandyAngel Mojo::Log::Everything::Everything?::EVVVVERYTHIIING
18:10 Seth joined #mojo
18:11 Seth1 joined #mojo
18:11 dod joined #mojo
18:42 hkclark joined #mojo
18:44 genio Grinnz: You maintaining Mojo::Redis2 now?
18:44 Grinnz not really
18:45 genio t/all-basic-operations.t is failing on 'Geo did not fail' and 'Hashes did not fail'.   [HSTRLEN redis2:test:Hashes bar] ERR unknown command 'HSTRLEN' at /home/webuser/.cpanm/work/1512067307.16816/Mojo-Redis2-0.29/blib/lib/Mojo/Redis2.pm line 222.
18:46 Grinnz sounds like your redis is older than 3.2.0
18:47 Grinnz not sure what's considered the minimum required, but maybe that command doesn't need to be used
18:47 genio 2.8.19
18:47 Grinnz open an issue and i'll look into the test
18:50 genio issue #30 is in
19:22 ghenry joined #mojo
19:28 hkclark joined #mojo
19:28 gryphon joined #mojo
19:54 geospeck joined #mojo
19:56 karjala_ joined #mojo
19:57 rickbol_ joined #mojo
20:20 someb joined #mojo
20:20 someb hi
20:20 someb is somebary here?
20:23 genio never!
20:23 genio someb: On IRC in general, don't bother waiting to see if someone's around to help you. Just ask away and wait a bit for a response from someone instead.
20:27 Leffe joined #mojo
20:32 Leffe joined #mojo
20:36 gordonfish joined #mojo
20:40 pink_mist I don't know a somebary
20:43 marcus everybody needs a bary
20:43 Grinnz genio: the GEO commands are also 3.2.0+
20:46 Grinnz I'll see if I can have it skip that block of tests if redis is older
20:51 Grinnz HyperLogLog was added in the same commit and requires 2.8.9+... and there are some others for sorted sets that were recently added to the tests that require 2.8.9+ as well
20:52 geospeck joined #mojo
20:53 Grinnz batman: any opinion on if Mojo::Redis2 should specify a minimum required version? i think before these changes to the tests, it required 2.4 or so
20:55 Grinnz the alternative is going through and skipping tests for commands that require 2.6.0, 2.8.0, 2.8.9, 3.2.0, etc
20:56 Grinnz which would be not too hard to write a function for, after checking what version we have at the start
20:57 maschine joined #mojo
20:57 Grinnz the module itself will still work back to 2.4 or whatever as long as you don't use any of the newer commands
20:57 someb i need help
20:57 someb iam a started
21:04 someb https://stackoverflow.com/questions/47580535/mojolicious-basic-login-with
21:04 someb please help
21:04 purl Just ask a specific question, someb, and if someone can help you, they will. Don't take no answer as 'everyone must hate me' -- they just don't always have time.
21:15 Grinnz someb: you haven't asked a question yet, so we don't know how to help
21:24 PsimanX1 joined #mojo
21:24 rickbol joined #mojo
21:34 jberger someb: welcome! have you read the tutorial and guides yet? http://mojolicious.org/perldoc#TUTORIAL
21:34 brunoramos joined #mojo
21:35 jberger those are highly recommended, especially when getting started
21:35 jberger and as a bonus in your case, they include a few "under" examples just like you are trying
21:54 Leffe joined #mojo
22:07 hkclark joined #mojo
22:25 batman Grinnz: i consider skipping all tests that require a server
22:25 batman Unless TEST_ONLINE=1
22:29 Grinnz that seems unnecessary, since redis always has a server available to use
22:30 Grinnz it's already skipping if it can't start one
22:37 batman But why run them?
22:38 batman Seems like a lot of them fail with no good reason
22:44 Kharec_ joined #mojo
22:51 Kharec joined #mojo
22:51 vicash hello. are there any blogs or best practices on implement single sign-on with Mojolicious ? Does anyone use Auth0 ?
22:51 Kharec joined #mojo
22:57 Leffe joined #mojo
23:01 Grinnz batman: travis seems to randomly fail, but it's usually on different tests (not the ones we're talking about here), so i'd have to look into it more to see what's actually failing there
23:03 PsimanX1 Yeah - it's quite annoying.  One of the failures is on the bgrewriteaof test.
23:03 jberger vicash if you find a good one, let me know
23:11 PsimanX1 Grinnz: that bgrewriteaof failing test (in t/backend.t) relies on the prior bgsave not having completed.  Fix for that would be to add a sleep 1 between to give it chance to complete?
23:13 Grinnz aha, that makes sense, bgsave is not a blocking operation... it should probably use https://redis.io/commands/lastsave and wait until that gives the correct time before continuing
23:13 Grinnz like those docs suggest actually, heh
23:14 PsimanX1 ahh yep - that would also work!
23:18 PsimanX1 Want me to update that and add a new PR to fix?
23:20 Grinnz go for it
23:27 Leffe joined #mojo
23:28 jacoby joined #mojo
23:39 disputin joined #mojo
23:56 Leffe joined #mojo
23:59 jacoby joined #mojo

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