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

IRC log for #mojo, 2015-05-19

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

All times shown according to UTC.

Time Nick Message
00:16 Ptolemarch joined #mojo
00:22 kyshtynbai joined #mojo
00:25 mattastrophe joined #mojo
00:41 asarch joined #mojo
01:11 fhelmber_ joined #mojo
01:29 absolut_todd joined #mojo
01:29 zivester joined #mojo
01:32 absolut_todd joined #mojo
01:37 absolut_todd joined #mojo
01:39 hshong joined #mojo
01:54 klapperl joined #mojo
02:32 inokenty-w joined #mojo
02:57 noganex joined #mojo
03:20 basic6 joined #mojo
04:20 mattastrophe joined #mojo
04:27 kaare joined #mojo
04:35 absolut__ joined #mojo
04:54 good_news_everyon joined #mojo
04:54 good_news_everyon [mojo] kraih pushed 2 new commits to master: http://git.io/vTZqC
04:54 good_news_everyon mojo/master e90bb9c perlpong: fix typo
04:54 good_news_everyon mojo/master a15e362 Sebastian Riedel: Merge pull request #799 from perlpong/fix_typo...
04:54 good_news_everyon left #mojo
05:56 dod joined #mojo
06:36 Grinnz joined #mojo
06:50 dod joined #mojo
06:53 dod joined #mojo
07:01 zuk joined #mojo
07:01 zuk hi mojos, do i have to put something in my default template for the headers to get into the web page? trying to stop caching of private content
07:02 AndrewIsh joined #mojo
07:07 zuk i put $self->res->headers->cache_control('private, max-age=0, no-cache'); into private area, but headers don't change because there is no 'headers' variable in te template head right?
07:08 eseyman joined #mojo
07:29 trone joined #mojo
07:51 ribasushi joined #mojo
07:52 marmez joined #mojo
08:18 fhelmber_ joined #mojo
08:45 Vandal31341 joined #mojo
09:09 punter joined #mojo
10:25 nf joined #mojo
10:33 OmarOthman joined #mojo
10:45 marmez left #mojo
10:54 marmez joined #mojo
11:16 OmarOthman left #mojo
12:09 mishantil joined #mojo
12:14 mishanti1 joined #mojo
12:27 ajr_ joined #mojo
12:28 neilhwatson joined #mojo
12:28 jberger templates and headers are not related
12:38 dod joined #mojo
12:49 carneirao joined #mojo
12:49 carneirao_ joined #mojo
12:49 carneirao_ join /#sp-pm
12:59 PotatoGim^Home joined #mojo
13:03 zivester joined #mojo
13:25 nf joined #mojo
13:25 asarch joined #mojo
13:37 jb360 joined #mojo
13:37 mattastrophe joined #mojo
13:45 ZoffixWork joined #mojo
13:47 ZoffixWork Hey. I'm using Apache reverse proxy to run my app and I'm having trouble getting IP address of the original request. Even X-Forwarded-For header just contains the address of my server instead of the client. This is my current Apache config: http://fpaste.scsys.co.uk/480363 and I start the app with hypnotoad (the app is this one: https://github.com/XTaTIK/XTaTIK )
13:52 ZoffixWork Ohhh
13:52 ZoffixWork It would help the case if I weren't using that same host for ssh tunneling my browser >_<
13:52 ZoffixWork Never mind. works fine with X-Forwarded-For
13:56 mst ZoffixWork: reminds me of http://trout.me.uk/ffs/open-proxy.txt
13:57 ZoffixWork lol
13:57 jberger mst++
14:08 nf joined #mojo
14:10 zackiv31 joined #mojo
14:21 ZoffixWork <!-- a padding to disable MSIE and Chrome friendly error page -->
14:21 * ZoffixWork wonders what the story behind that is...
14:32 ZoffixWork *shrug* https://github.com/kraih/mojo/commit/91972d7e66559b0bbb8e7c1489421693db56530f
14:34 ajr_ joined #mojo
14:34 gryphon joined #mojo
14:39 sri if a 404 page is too small, ie and chrome will not show it, but their own "user friendly" ones
14:39 Grinnz lol
14:39 Grinnz brilliant!
14:40 purl coincidentally, I had beans for breakfast
14:41 ZoffixWork joined #mojo
14:42 sri at least it used to be like that
14:42 ZoffixWork sri, yeah, I ended up finding an article on that, but I couldn't reproduce the issue with those comments removed :P
14:42 sri i don't know if it's still the case
14:42 ZoffixWork Tried IEs 6–11 and whatever the latest Chrome is.
14:42 ZoffixWork Oh well :)
14:44 ZoffixWork I gotta say, the unicorn-raptor that's puking a rainbow is some extremely creative stuff :)
14:44 sri perhaps the padding can be removed now
14:48 sri looks like it is still in nginx though https://github.com/nginx/nginx/blob/master/src/http/ngx_http_special_response.c#L35-L42
14:56 sri ZoffixWork: it should be present in ie6
14:56 sri and removed in ie7
14:57 ZoffixWork I was able to reproduce it in IE 8 if I remove the <style></style>
14:57 ZoffixWork Or IE7
14:57 * ZoffixWork tries IE6
14:58 sri ah, that makes sense, i guess the css got bigger
14:58 dod joined #mojo
14:59 sri chrome does not appear to do it anymore though
14:59 ZoffixWork And in IE6 I can't actually get it to display Mojo's 404
14:59 ZoffixWork It just shows its own regardless of how much stuff I put into not_found.html.epo
14:59 ZoffixWork *.ep
15:01 Adura You shoved many bytes of spaces?
15:02 ZoffixWork Actually, the production page shows up, but not the raptor one
15:02 ZoffixWork Adura, I copy pasted a screenful of IRC chat
15:02 Adura Think that'd work.
15:02 ZoffixWork Shows up now :O
15:03 ZoffixWork Ah, this takes me back. Random IE6 bugs
15:03 Adura Just need a lot of spaces.
15:03 Grinnz_ IE6 bugs? is that like PHP 3 bugs?
15:04 AirDisa joined #mojo
15:05 ZoffixWork sri, confirming for IE6 too. The CSS code alone is sufficient to prevent its default 404 page.
15:06 genio What's the world coming to when we still have to fuck with IE6?
15:06 ZoffixWork The page needs to be 512+ bytes to prevent 'friendly' page and we have 642
15:06 Grinnz_ i have a better question
15:06 Grinnz_ how do you even *have* IE6
15:06 genio Man, I deal with US departments of transportation and even I don't have to deal with IE6 anymore
15:06 ZoffixWork genio, profitable business in China? This was mostly for curiosity reasons :)
15:06 ZoffixWork Grinnz_, http://browserstack.com/
15:07 Grinnz_ ah
15:07 genio Well, yea.  I guess the only thing that could be more backwards than a US DOT is China.
15:07 AirDisa left #mojo
15:15 sh4 joined #mojo
15:19 nf joined #mojo
15:37 punter joined #mojo
15:38 ajr_ joined #mojo
15:38 ajr_ joined #mojo
15:43 Oleg joined #mojo
15:45 marmez left #mojo
16:05 lluad joined #mojo
16:08 PotatoGim_Home joined #mojo
16:31 asarch joined #mojo
16:50 sri Zoffix: i don't like your pull request
16:51 sri every little change to those pages will require the padding to be re-calculated
16:54 dod joined #mojo
16:57 good_news_everyon joined #mojo
16:57 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vTWBY
16:57 good_news_everyon mojo/master 13d28aa Sebastian Riedel: use the same comments in both templates (closes #800)
16:57 good_news_everyon left #mojo
16:57 sri reference to the microsoft docs is good though
16:57 sri that will make getting up to speed easier in the future
16:59 Adura Relatively gzip friendly.
17:04 sri it could also be a padding.html.ep template we include everywhere for consistency
17:28 berov joined #mojo
17:33 disputin joined #mojo
17:52 ajr_ joined #mojo
18:00 trone joined #mojo
18:06 amon joined #mojo
18:18 marty joined #mojo
18:22 fhelmber_ joined #mojo
18:25 asarch joined #mojo
19:14 AirDisa joined #mojo
19:31 AirDisa joined #mojo
19:36 cpan_mojo Mojolicious-Plugin-BModel-0.05 by BCDE https://metacpan.org/release/BCDE/Mojolicious-Plugin-BModel-0.05
20:22 kyshtynbai joined #mojo
20:24 AirDisa joined #mojo
20:25 kyshtynbai Guys, what is the best way to filter off "dumb" requests, executed by stupid bots? In logs I often see something like 'GET /admin.php' or something similair. Of course, the daemon replies with not-found template to them. But is it ok for perfomance? It there a point in starting a nginx, for example, which would filter such requests?
20:26 kyshtynbai I mean proxy-ing nginx.
20:26 hernan604 such requests should not even tickle your server
20:26 hernan604 if you decide to keep banning those paths, will you be able to ban them all? how far would you go ?
20:27 Grinnz_ kyshtynbai: nginx would probably filter it more efficiently, being written in C, but it's hard to say.
20:27 pink_mist after a while, the banlist might impact performance since it needs to be checked every time
20:27 Grinnz_ kyshtynbai: you'd have to of course figure out which paths are valid and which aren't
20:27 pink_mist kyshtynbai: unless you're actually seeing a performance impact from this, I'd say leave it
20:28 kyshtynbai I see, thanks.
20:29 Grinnz_ if you for example only need to redirect a certain path to the mojo app, then nginx could do that pretty efficiently and drop the rest
20:29 Grinnz_ if you need to redirect everything, minus certain spammy things, that could be less efficient
20:31 hernan604 ban *.php in ngnix
20:32 Grinnz_ that could be pretty straightforward too
20:32 Grinnz_ a lot of spam is .php :P
20:33 kyshtynbai well, I actually use nginx in order to redirect request from port 80 to port 3000. so I've devcided to load it with some more work and create some rules for spam request, more of an educational purposes.
20:34 Grinnz_ if it's already there then certainly
20:38 disputin joined #mojo
20:55 depesz joined #mojo
20:56 depesz hi. I restarted mojo app that was working for long time, there could be upgrades in mean time. Now, after restart, it seems to ignore listen value in hypnotoad part of config.json
20:56 depesz is it known issue, related to some upgrade, or do I need to provide more information?
20:57 depesz in app.json, I have "hypnotoad" : { "listen" : ["http://*:12004"], ..., but when I start: hypnotoad app.pl, it says: Starting hot deployment for Hypnotoad server 29119.
20:57 Adura Are you comparing the two numbers for some reason?
21:02 depesz Adura: sorry, was that question to me?
21:02 Adura Yeah.
21:02 depesz Adura: well, i want it to start on 12004
21:02 depesz just like it's in config.
21:03 Adura Alright, and how are you coming to the conclusion it's not?
21:03 depesz well, because it says it's listening on another port, and the site is not available?
21:04 Adura The latter makes sense, but the former... "Starting hot deployment for Hypnotoad server 29119", isn't that a PID?
21:04 depesz hmm .. i restarted it now, again, and now it works.
21:04 depesz i have no idea what is the difference.
21:04 depesz what's worse - git status doesn't show any changes.
21:04 depesz magic ?
21:04 purl well, magic is simpler than blessing or programmer for "I don't understand this"
21:05 Adura Odd.
21:08 Grinnz_ depesz: yes "starting for ... 29119" is the PID and has nothing to do with the listen port
21:59 AirDisa joined #mojo
22:28 mattastrophe joined #mojo
23:08 bpmedley_ joined #mojo
23:13 AirDisa joined #mojo
23:34 mattastrophe joined #mojo
23:47 human39 joined #mojo
23:48 marmez joined #mojo
23:58 asarch joined #mojo

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