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

IRC log for #mojo, 2014-06-05

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

All times shown according to UTC.

Time Nick Message
00:52 crab what mojolicious girl?
00:52 crab what's LPP stuff?
01:09 neyasov__ joined #mojo
01:24 fhelmber_ joined #mojo
01:32 ceej joined #mojo
01:38 klapperl_ joined #mojo
01:48 laouji joined #mojo
02:04 punter joined #mojo
02:08 laouji joined #mojo
02:13 jberger sri where is this magical search?
02:30 cfedde joined #mojo
02:34 laouji joined #mojo
02:35 ceej joined #mojo
03:38 Guest-quest joined #mojo
03:44 basic6 joined #mojo
04:13 asarch joined #mojo
04:29 frustrating_chat so i have a hypnotoad server listening on https with ca, cert and key specified
04:29 frustrating_chat and i have a Mojo::UA client connecting to it with its own cert, key, ca specified
04:30 frustrating_chat the remote host's IP i've added to hosts so is hostname is correct
04:30 frustrating_chat and the remote host has the client host added in the same manner
04:30 frustrating_chat i've tried to debug it with MOJO_USERAGENT_DEBUG
04:30 frustrating_chat but it prints Connect (address)
04:30 frustrating_chat and nothing more
04:30 frustrating_chat there is no information on the remote side about any SSL validation failure
04:30 frustrating_chat how can i debug this further?
04:34 frustrating_chat oh, i thought i'd mention
04:34 frustrating_chat i've debugged the remote side using wget locally
04:34 frustrating_chat which works fine
04:34 frustrating_chat only the local Mojo::UserAgent does not
04:36 frustrating_chat ah
04:36 frustrating_chat found it
04:36 frustrating_chat if you point it to the IP, it fails validation
04:36 frustrating_chat changed it to hit the hostname, works fine
04:37 frustrating_chat would be worth adding at least some debugging output to UA
04:37 cpan_mojo Statocles 0.008 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.008 (depends on Mojolicious)
04:37 d4rkie joined #mojo
04:52 laouji joined #mojo
05:05 laouji joined #mojo
05:24 fhelmber_ joined #mojo
05:57 neyasov__ joined #mojo
06:12 Eke- joined #mojo
06:22 dpetrov_ joined #mojo
06:49 Vandal joined #mojo
06:50 dod joined #mojo
06:52 denis_boyun joined #mojo
07:02 eseyman joined #mojo
07:09 denis_boyun joined #mojo
07:10 edestler joined #mojo
07:14 rawler joined #mojo
07:16 igorsutton joined #mojo
07:29 trone joined #mojo
07:34 neyasov___ joined #mojo
07:56 dod joined #mojo
08:01 denis_boyun_ joined #mojo
08:04 marcus That Geek Gawk thing seems really spammy
08:11 dod joined #mojo
08:20 mst btw, I just released Object::Tap which provides a mojo-style tap method as an exported $_tap
08:21 mst to go with e.g. the methods from Safe::Isa
08:21 mst sri++ # it might originally be a ruby thing but you're why I noticed it existed
08:22 marcus mst: tap is neat.
08:23 mst marcus: and now I can do
08:23 mst use Object::Tap
08:23 mst Some::Class::THat::Knows::Nothing::Of::THis->new(...)->$_tap(...)->run;
08:24 marcus mst: I can do that too, because I’m mostly coding ruby lately :-/
08:24 marcus Actually, today I’m coding objective-c, so no tap for me.
08:24 mst marcus: did the talk I gave in norway ever make it to video?
08:24 mst the one that was intentionally "perl has better OO, ruby and python people please tell me why I'm wrong"
08:24 marcus mst: I don’t know. Maybe sjn is more enlightened
08:25 marcus mst: Yeah, I remember it. I hired the only ruby guy we could get to attend.
08:25 mst I thought you'd organied that one for some reason
08:25 mst yes, I know :)
08:25 mst I hope I helped ;)
08:25 marcus mst: well, it did end up with me writing things in Ruby :p
08:26 marcus But Perl still has my heart.
08:26 marcus At least I’m not doing Rails.
08:26 mst well, no, you've heard of consent
08:27 basiliscos joined #mojo
08:27 marcus I think I will learn Swift this summer.
08:28 marcus I really hope apple will open source the compiler at least.
08:53 dexteruk joined #mojo
08:58 laouji joined #mojo
09:04 laouji joined #mojo
09:14 _Dave joined #mojo
09:25 fhelmber_ joined #mojo
09:26 sawtooth joined #mojo
09:40 laouji joined #mojo
09:50 batman https://gist.github.com/anonymous/bf3a3f276f060fe58942 # is this a bug, where the timer() is set relative to startup time, if the line 7 is commented out?
09:51 batman it works different with MOJO_REACTOR=Mojo::Reactor::Poll vs ::EV
09:52 batman wait a sec... i need to test it on latest to be sure...
09:55 fhelmber_ joined #mojo
09:55 batman yes, same with Mojolicious 5.04, EV 4.17
09:55 batman sri: any idea?
09:55 purl it has been said that any idea is welcomed.
09:58 mire__ joined #mojo
10:00 batman mst: i don't get why it's $_tap and not $tap. how is $_tap better? harder to get collision with internal variable names..?
10:00 batman i think that's a sad reason, if that's the case :(
10:06 rem_lex|pivo joined #mojo
10:24 d4rkie joined #mojo
10:27 alnewkirk joined #mojo
10:27 shmuel joined #mojo
10:29 D4RK-PH0ENiX joined #mojo
10:45 ryozi joined #mojo
10:53 d4rkie joined #mojo
11:19 denis_boyun joined #mojo
11:21 abra joined #mojo
11:25 zanity joined #mojo
11:49 punter joined #mojo
11:54 neilhwatson joined #mojo
11:54 jberger batman, it's to prevent collisions with your variable names
11:55 nicomen package Bar; my $_tap; # only for bartender; ...
11:58 mishantil badum-tish!
11:58 cpan_mojo MojoX-GlobalEvents 0.01 by Renee Baecker - http://metacpan.org/release/RENEEB/MojoX-GlobalEvents-0.01
12:02 dod joined #mojo
12:04 batman jberger: *urk*
12:04 batman nicomen: have you looked at Toadfarm?
12:05 nicomen batman: not yet!
12:05 purl well volunteered!
12:05 nicomen batman: but I was wondering, how does it work for non-mojo apps?
12:06 edestler joined #mojo
12:06 nicomen I have a dancer app running (although I would like to port it to non-blocking mojo)
12:08 dod joined #mojo
12:12 edestler joined #mojo
12:15 batman i don't think that works. unless you're doing cgi with Mojolicious::Plugin::CGI
12:21 batman i wonder if it could be interesting with a plugin for pulling templates from a cdn...
12:21 batman like a lot of the open graph stuff in my <head> section almost never change
12:23 moritz template on a CDN? did you think about the security implications?
12:23 moritz templates contain code that your server runs
12:29 batman moritz: they could be downloaded when doing development and retrieved from cache in production
12:30 batman %= include_from_web 'http://...' # this would be awful in production - not just because of security, but also because of the blocking request
12:30 moritz then what's the point of the CDN in the first place?
12:31 batman sorry: s!cdn!online resource!
12:31 moritz sounds more like you need a development workflow for including some remote files
12:31 moritz s/including/fetching/
12:32 batman right, but wouldn't it be simpler dropping in %= include_from_web ...; instead of download this script, run it with these commands, put the file, ...
12:32 dod1 joined #mojo
12:37 shmuel joined #mojo
12:54 batman Oh, catalyst: https://metacpan.org/pod/release/JJNAPIORK/Catalyst-Plugin-Static-Simple-0.32/lib/Catalyst/Plugin/Static/Simple.pm
12:54 batman :)
13:14 abra joined #mojo
13:19 riche left #mojo
13:21 schetchik joined #mojo
13:24 jnbek joined #mojo
13:28 ivan joined #mojo
13:28 neyasov_ joined #mojo
13:29 Akron joined #mojo
13:31 sri \o\
13:31 sri /o/
13:32 genio |o|
13:34 moritz /|o/|
13:39 jnbek joined #mojo
13:42 dvinciguerra joined #mojo
13:48 btyler joined #mojo
13:48 sri jberger: the magical search is "mojolicious -@mojolicious_ -from:@mojolicious_"
13:48 lb They're coming in! Three marks at 2-10!
14:21 asarch joined #mojo
14:26 dotandimet joined #mojo
14:28 Dandre hello,
14:28 Dandre how can I get the connecting ip address, possibly connecting thru a revers proxy?
14:34 gryphon joined #mojo
14:36 cfedde joined #mojo
14:53 bluescreen joined #mojo
14:57 dod joined #mojo
15:03 oetiker_ joined #mojo
15:04 oetiker joined #mojo
15:21 neyasov_ joined #mojo
15:24 asarch joined #mojo
15:27 sh4 joined #mojo
15:36 odc Dandre, $self->req->headers->header('X-Forwarded-For') || $self->tx->remote_address
15:37 Dandre ok
15:45 Dandre ok this works in almost all my test cases
15:46 Dandre When I connect to my server using a proxy I get the proxy address instead of the remote party address
15:50 batman Dandre: what is your setup? example: do you have nginx infront of hypnotoad?
15:53 Dandre I have apache in front of hypnotoad
15:54 Dandre the if I directly connect to apache from my browser, I get the correct address
15:55 Dandre if I connect to my apache reverse proxy thru a squid proxy, I get the squid address instead of my pc
15:56 batman ok. does squid set X-Forwarded-For ?
15:57 batman i would rather just use nginx with caching instead of squid...
15:57 batman or varnish.
15:57 purl well, varnish is http://varnish.projects.linpro.no/ or just a cache or full of win
15:57 batman squid is 1990's software :P
15:58 batman oh. wait a sec, do you do [webbrowser] -> [squid as proxy] -> [apache] -> [mojo] ?
15:58 batman then you will always see the squid IP. that's the whole point.
16:00 beyondcreed joined #mojo
16:02 Dandre Yes I do that
16:02 Dandre ok thanks
16:07 avenj joined #mojo
16:08 zanity X-Forwarded-For should contain both squid-ip and webbrowser-ip if configured correctly
16:20 lb wow, squid
16:22 lb squid is the amish of software, "nope, we're good, this is an adequate level of technology"
16:30 crab lb: heh, that's funny. i've never thought of it quite that way before, but it's so apt.
16:35 spuelrich left #mojo
16:51 genio I recently watched "The Lego Movie" and I can't get the /Everything is AWESOME/ song out of my head. :(
17:04 denis_boyun joined #mojo
17:05 nic You're right, this channel needs a musical /topic
17:06 jnbek joined #mojo
17:06 nic Whenever I focus this screen I wanna hear music, not just the metaphoric music of sri's commit messages
17:18 dvinciguerra joined #mojo
17:37 sri guess i should watch the lego movie
17:37 kb3ien joined #mojo
17:57 genio sri: It's good, silly fun
17:57 genio https://www.youtube.com/watch?v=vx5n21zHPm8
18:06 sri \o\
18:06 sri /o/
18:20 mst batman: visual obviousness
18:21 mst batman: I experimented a lot with this, and $obj->$foo parses mentally as "just another call of a named method on an object"
18:21 mst batman: whereas the $obj->$_foo syntax is a reminder this is something slightly different
18:21 mst batman: I did it with Safe::Isa as well and it worked out really well
18:38 dod joined #mojo
18:50 tempire I'm really falling in love with swift.
18:54 genio I picked up the book and read for a little while.  I liked what I read, but I haven't yet toyed with it
18:59 Eke- joined #mojo
19:05 tempire Apple is dragging the masses into the modern, functional world.
19:05 tempire And there's nothing the imperatives can do about it.
19:05 tempire \o/
19:19 mad_hatter joined #mojo
19:20 mire__ joined #mojo
19:27 mad_hatter What's the difference between get and any?
19:34 go|dfish mad_hatter: get matches only GET requets
19:34 go|dfish requests..
19:34 purl requests are going to the module as I stated above
19:34 mad_hatter and any matches any request?
19:35 go|dfish any matches GET, POST, ... (and whatever else is included that I don't know of)
19:38 go|dfish http://mojolicio.us/perldoc/Mojolicious/Lite#HTTP_methods
19:42 r0b3rt joined #mojo
19:49 sri CGI problems annoy me, lets get rid of Mojo::Server::CGI :o
20:07 kb3ien joined #mojo
20:19 sh4|2 joined #mojo
20:24 genio /CGI IS AWES^W^W^W/ ... I couldn't finish it
20:28 Eke- joined #mojo
20:36 tempire Swift syntax...looks familiar... __FILE__, __LINE__
20:36 Adurah Reminds me of PHP.
20:48 gryphon joined #mojo
20:53 HtbaaPi joined #mojo
21:07 sri i love the fact that swift can be used as a scripting language https://gist.github.com/kraih/80ebfc2307a6f06f628d
21:18 batman mst: ok. i appreciate that it's not on random :)
21:18 batman sri: sorry for not being able to make an example for the doc... i'm rather tired these days :(
21:19 mst batman: also, it's in line with the 'really private method' approach of doing 'my $_foo = sub { ... }' at the top of a class
21:19 mad_hatter in the __DATA__ sections where you define layouts...what does 'content' mean in the context of things like <body><%= content %></body>?
21:19 mst batman: so, yeah, it made sense to me
21:19 mst mad_hatter: means the result of rendering the main template for the request
21:19 mst mad_hatter: TT's layout facility uses the same convention
21:20 batman :)
21:21 sri mad_hatter: again, that stuff is documented http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Layouts
21:23 mad_hatter sorry I'm still on Mojolicious::Guides::Growing
21:23 mad_hatter is there an order i should be following?
21:24 sri mad_hatter: also in the tutorial http://mojolicio.us/perldoc/Mojolicious/Lite#Layouts
21:25 sri the order is of course documented http://mojolicio.us/perldoc
21:26 firnsy mad_hatter: that is of course, the tutorial is the best place to start
21:28 good_news_everyon joined #mojo
21:28 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/3mvsFw
21:28 good_news_everyon mojo/master 9864e99 Sebastian Riedel: fixed typo in rendering guide
21:28 good_news_everyon left #mojo
21:31 sri neat, switft will become open source apparently
21:31 sri s/t//
21:31 mad_hatter is the difference between a template and a layout discussed in the tutorial..Im not seeing where if it is
21:55 bluescreen_ joined #mojo
22:00 sugar joined #mojo
22:11 good_news_everyon joined #mojo
22:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/uG2XFg
22:11 good_news_everyon mojo/master e6eca12 Sebastian Riedel: discourage CGI use
22:11 good_news_everyon left #mojo
22:57 basiliscos joined #mojo
22:59 bjoernfan 19:40              @sri | guess i should watch the lego movie
22:59 bjoernfan Haha, love that you mentioned it, just finished watching it and... wow. :D
23:07 d4rkie joined #mojo
23:15 meshl joined #mojo
23:41 jberger lego movie++, it really is better than you expect

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