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

IRC log for #mojo, 2017-07-30

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

All times shown according to UTC.

Time Nick Message
00:28 good_news_everyon joined #mojo
00:28 good_news_everyon [mojo] kraih created scope_and_has (+1 new commit): https://git.io/v7lUT
00:28 good_news_everyon mojo/scope_and_has 2e4f57b Sebastian Riedel: simple implementation for :scope and :has selectors (without support for the descendant combinator in :has)
00:28 good_news_everyon left #mojo
00:34 sri https://github.com/kraih/mojo/pull/1115#issuecomment-318868979
00:58 kavuria joined #mojo
01:03 runester joined #mojo
01:04 runester Hello
01:05 runester left #mojo
02:00 kavuria joined #mojo
02:55 noganex_ joined #mojo
04:00 itaipu joined #mojo
05:26 VVelox joined #mojo
05:49 kavuria JSON rendering seems to be turning on pretty output by default.  Is there a way to turn it off?
06:26 Vandal joined #mojo
06:34 kavuria never mind, postman kind of deceived me as my default output rendering is turned on to "pretty".  I just changed it to "raw" and is much better
07:06 bianca joined #mojo
07:16 howitdo joined #mojo
07:34 kaare_ joined #mojo
07:44 bianca joined #mojo
08:06 bianca joined #mojo
08:34 mishanti1 joined #mojo
08:41 bianca joined #mojo
08:42 inokenty joined #mojo
09:42 bianca joined #mojo
10:02 bianca joined #mojo
10:03 petru joined #mojo
10:04 bianca joined #mojo
10:43 karjala_ joined #mojo
11:31 sri not sure if we even want :scope and :has
11:32 sri :has is by design unbelievably slow
11:34 sri jberger: btw. $dom->at('+ foo') makes no sense at all
11:34 sri it should never match
11:36 sri it makes sense for $dom->at('bar:has('+ foo')') because :has matches again from the root
11:37 sri which also makes it incredibly expensive
11:38 sri since for every <bar> it will match its :has selector against the entire tree
11:38 sri technically as ":scope + foo"
11:56 Lee[home] joined #mojo
12:26 bianca joined #mojo
12:27 petru joined #mojo
12:31 kaare_ joined #mojo
12:32 itaipu joined #mojo
12:32 petru can someone take a look please? https://stackoverflow.com/questions/45390293/testmojo-save-routes-inside-helper-function
12:46 sri petru: looks like nobody understands the question
12:47 sri i don't
12:48 sri there is no helper and no routes
13:31 petru sri: I'm sorry for that. I've updated the question
14:00 Lee[home] joined #mojo
15:07 petru joined #mojo
15:42 bianca joined #mojo
15:50 PryMar56 joined #mojo
15:55 Lee[home] joined #mojo
16:56 stryx` joined #mojo
17:47 * marcus just found the slides from his 2010 Mojolicious introduction - such nostalgia https://www.slideshare.net/marcusramberg/mojolicious-3338291
17:48 marcus Talkin' 'bout Mojolicious 0.999922
17:56 irqq joined #mojo
18:42 karjala_ Hi people, I have a problem, at this page: https://forums.baza.gr/test
18:42 petru joined #mojo
18:42 karjala_ My problem is that $self->tx->remote_address is the local nginx frontend
18:42 karjala_ I have TWO reverse proxy nginx!
18:42 karjala_ one in front of the other
18:43 karjala_ and behind those, this Mojolicious webpage
18:43 karjala_ Shouldn't remote_address be the real address? I mean look at the X-Real-IP header that Mojo is getting
18:43 karjala_ by real-address I mean the browser's IP
18:43 karjala_ the user's internet ip, anyway
18:44 karjala_ thanks
18:44 karjala_ I believe I've set proxy => 1 in baza.conf (I'll check again now)
18:45 karjala_ yes, I have. In baza.conf {hypnotoad => { listen... , proxy => 1 }}
18:45 karjala_ Is this normal
18:45 karjala_ ?
18:46 klapperl joined #mojo
18:50 kavuria joined #mojo
18:52 karjala_ ok, the documentation of Mojo answers my question
18:55 karjala_ Should I just use the X-Real-IP instead?
18:55 karjala_ (for my case, where I have two reverse proxies in chain)
18:58 mishanti1 karjala_: I believe setting X-Forwarded-For in the proxies is considered the way of doing it.
18:58 mishanti1 And I do think that Mojo picks up on that as well.
18:59 karjala_ ok, I just shouldn't "add" to the X-Forwarded-For list, on the "inner" proxy, because that messes up the IP that Mojo gets
18:59 karjala_ I should just copy it over
18:59 dod joined #mojo
18:59 karjala_ thanks
19:01 karjala_ yes, that fixed my problem.
19:02 karjala_ :)
19:12 mishanti1 Glad to hear it.
19:32 karjala_ joined #mojo
19:35 bianca joined #mojo
19:37 irqq joined #mojo
20:24 itaipu joined #mojo
20:34 bianca joined #mojo
21:06 irqq_ joined #mojo
21:25 Zoffix joined #mojo
21:36 eseyman joined #mojo
21:42 bianca joined #mojo
21:42 CandyAngel You know, I'm sure I've seen a one-liner where Mojo will serve files from the current directory, but I don't remember where at all. Surprised it isn't in Cookbook
21:43 CandyAngel Found one in this gist though: https://gist.github.com/willurd/5720255
21:47 pink_mist App::SimpleHTTPServer
21:50 CandyAngel Oddly enough, when I make a request for a file, Mojo doesn't even see it. Firefox just freaks out o.o
21:51 CandyAngel Good job Firefox
22:02 irqq_ joined #mojo
22:21 stryx` joined #mojo
22:33 sri we've been running the experiment with leaving issues open forever for a few months now, and i don't feel contributions went up

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