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

IRC log for #mojo, 2014-07-18

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

All times shown according to UTC.

Time Nick Message
00:21 D4RK-PH0ENiX joined #mojo
00:29 Averna joined #mojo
00:41 Gedge joined #mojo
01:31 neyasov___ joined #mojo
01:34 klapperl_ joined #mojo
01:38 basic6 joined #mojo
01:40 jberger sri hmmmm. Icky
02:02 Adura joined #mojo
02:05 lsm joined #mojo
02:16 jberger tempire: around?
02:16 jberger https://github.com/tempire/MojoExample/pull/9
02:22 oerk joined #mojo
02:28 oerk joined #mojo
03:45 doby joined #mojo
03:51 JohnDRockefeller joined #mojo
03:59 basic6_ joined #mojo
04:12 sujithm joined #mojo
04:14 Eke- joined #mojo
04:52 KCL_ joined #mojo
05:35 sujithm joined #mojo
05:37 btyler joined #mojo
05:42 janus joined #mojo
06:04 Gedge_ joined #mojo
06:06 Eke- joined #mojo
06:43 dod joined #mojo
06:43 rawler joined #mojo
06:44 neyasov___ joined #mojo
06:58 sugar joined #mojo
06:58 Eke|| joined #mojo
07:07 Dandre joined #mojo
07:14 Vandal joined #mojo
07:21 arthas joined #mojo
07:27 basiliscos joined #mojo
07:38 neyasov____ joined #mojo
07:41 neyasov____ joined #mojo
07:44 sujithm joined #mojo
07:48 dexteruk joined #mojo
07:54 Bravo13 joined #mojo
07:58 newbie joined #mojo
08:09 * sri yawns
08:09 * sri is melting
08:20 fhelmber_ joined #mojo
08:38 mire joined #mojo
08:49 neyasov____ joined #mojo
08:53 marcus__ joined #mojo
08:55 mishantil I keep having to put severe rate-limiting into mojo-apps that query external stuff. Now at 1/20 of qps capacity. :-/
08:55 mishantil The mojo async-stuff is too fast.
09:00 rem_lex joined #mojo
09:02 neyasov_____ joined #mojo
09:04 neyasov______ joined #mojo
09:14 gatitskiy joined #mojo
09:24 lipizzan joined #mojo
09:43 eseyman joined #mojo
09:44 mr-foobar joined #mojo
10:00 dpetrov_ joined #mojo
10:05 rem_lex joined #mojo
10:30 Eke- joined #mojo
10:38 marcus__ joined #mojo
10:44 neilhwatson joined #mojo
10:44 D4RK-PH0ENiX joined #mojo
10:53 mire joined #mojo
10:53 rem_lex joined #mojo
10:58 gatitskiy joined #mojo
11:08 D4RK-PH0ENiX joined #mojo
11:51 btyler joined #mojo
12:06 Kripton joined #mojo
12:36 mire joined #mojo
12:36 btyler_ joined #mojo
12:53 gatitskiy joined #mojo
12:53 marcus__ joined #mojo
12:55 kablamo Hi I'm very new to mojo and nonblocking.  To use Mojo::UserAgent in a nonblocking way I need to use Mojo::IOLoop right?  I can't use AnyEvent?
12:58 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Event_loops
13:04 kablamo cool!  thanks
13:17 btyler joined #mojo
13:20 WildPIkachu_ joined #mojo
13:33 kablamo hmm so it seems mojo people tend to not use Moo or Moose and instead use .. Mojo::Base?
13:33 kablamo also not finding examples of roles
13:33 kablamo just curious
13:34 sri we are in the use whatever the hell you like camp ;)
13:34 kablamo so its not because of some ...  nonblocking reason?
13:34 sri not at all
13:35 neyasov______ joined #mojo
13:36 sri some classes use Mojo::EventEmitter as a base class, that is for "non-blocking reasons"
13:43 genio Mojo::Log is a simple example of that ^^
13:45 sh4 joined #mojo
13:55 Ralesk Hmm, so I suppose that Dumper($c->req->env) should give me a nice dump of the request's environment, right? – seems all kinds of empty to me, though %ENV isn't... running the app through morbo :/
13:58 kablamo @genio thanks!  thats a very helpful bit of code to look at for a beginner.
13:58 mattastrophe joined #mojo
14:01 btyler_ joined #mojo
14:13 batman kablamo: i use Mojo::Base and Role::Tiny
14:13 batman but i guess Moo will be nice as well. i used to use Moose all over the place earlier, but i mostly never need it these days
14:13 batman not sure why i ever did... probably just because it was *cool*
14:14 sri Ralesk: http://mojolicio.us/perldoc/Mojo/Message/Request#env
14:15 sri i kinda liked Moo, but it uses strictures, which is a total no go
14:16 Ralesk sri: yes, I've seen that one, but eh, doesn't seem to have anything in it.
14:16 kablamo @batman I am sympathetic to that.  I have been using Moo, but sometimes I think its simultaneously not powerful enough and more than i need
14:16 sri Ralesk: are you using CGI or PSGI?
14:16 Ralesk just morbo script/blah
14:17 batman kablamo: with great power, comes great responsibility :)
14:17 kablamo Mojo::Base looks interesting
14:17 batman a lot of the things i designed with Moose is just...too complicated :(
14:17 Ralesk and then mojo getting the morbo server from another terminal
14:17 sri Ralesk: so, there's your answer
14:18 kablamo @sri you must be referring to fatal warnings?
14:18 sri kablamo: indeed i am
14:19 kablamo that does seem like it should be a problem but it hasn't bitten me yet
14:19 Ralesk not sure I understand :) you say that morbo makes it neither CGI nor PSGI?
14:20 sri morbo is a pure http server
14:23 btyler joined #mojo
14:24 Ralesk guess I'd bump into the same problem eventually with hypnotoad too?
14:24 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT
14:28 sri Ralesk: the assumption that something would be in $c->req->env is odd to me, did you read anything to suggest that?
14:28 kablamo hypnotoad is such an awesome name
14:29 sri i don't th...ALL GLORY TO THE HYPNOTOAD!
14:29 Ralesk mm, not really. Thing is, in the previous iteration of this... whatever I'm working on, it was a CGI::Fast application with some apache 401 auth stuff in front of it -- as such, we received the REMOTE_USER and some AUTHENTICATE_* variables via the environment
14:30 Ralesk coworkers would like to keep the apache auth as a sort of filter so the app itself doesn't have to fend off invalid users
14:31 Ralesk so I guess I'd need to get those things (especially REMOTE_USER) from somewhere
14:33 kablamo oh hypnotoad is a futurama reference.  clearly i am not watching enough tv
14:33 Ralesk I was totally under the impression (not sure why; probably because in the olden days CGI apps were CGI-only apps) that morbo and hypnotoad would be running the app via PSGI and offering an HTTP interface to the world.
14:34 Ralesk *CGI-only: as in not CGI and pure HTTP and whatever else you have-apps.
14:36 mattastrophe joined #mojo
14:37 aleksey joined #mojo
14:47 crab none of that made any sense to me
14:49 Ralesk \o/
14:50 sri typical CGI problem, the dumbed down nature of it prevents people from learning HTTP properly
14:51 sri none of us would talk in terms of REMOTE_USER
14:53 sri we just don't talk CGI terms anymore
14:54 sri for like the last 10 years :)
14:54 Ralesk right
14:55 sri actually i'd be surprised if more than a few people here still understood those terms
14:56 crab i remember perfectly. REMOTE_USER was set to 1 if the user was far away.
14:56 sri /o\
14:57 * Ralesk suddenly needs to look older and is envious of Jonis's beard
14:57 sri aren't we all
14:59 sri pro tip: MOJO_DAEMON_DEBUG=1 to get a feel for what the HTTP looks like
14:59 Ralesk thanks, I almost asked another dumbass question :D
15:01 mishantil Ralesk: Jonis's beard is pretty magical.
15:02 Ralesk Authorization: Basic aGVucmlr <-- welp, that's not all that useful :D
15:02 Ralesk dumbass question number #many would have been: what happens if I mojo get 'http://user@localhost:3000/' against one of the mojo http servers
15:02 sri $c->req->url->userinfo
15:03 Ralesk oh.
15:03 btyler_ joined #mojo
15:03 sri or actually $c->req->url->to_abs->userinfo
15:04 sri http://mojolicio.us/perldoc/Mojolicious/Controller#req
15:05 Ralesk things are starting to make sense :)
15:06 Ralesk hopefully something like apache passes through the userinfo when mod_proxying
15:07 sri unlikely
15:07 Ralesk dammit :)
15:07 mishantil Ralesk: Is it an absolute requirement keeping apache? Mojo does a _very_ good job of being a well-behaved http-server.
15:09 Ralesk yeah.  there are some PHP thingamajigs running on :80/:443 via apache, and this thing I'm doing it a sort of RPC service that used to be under /cgi-bin/ (yeah, yeah...) and if anything, it'd be grand if we didn't need to specify the port for the RPC
15:09 crab use mojo to proxy to apache :-)
15:09 Ralesk heh :D
15:10 Ralesk I'm pretty sure that'd be impossible to get through my coworkers
15:11 crab do you have to tell them?
15:11 Ralesk I'm not the sysadmin person :P
15:15 mishantil Bribe / blackmail (whatever works) the sysadmin?
15:15 mishantil :)
15:16 Ralesk heh :)
15:19 genio is proxy-chain-auth not what you're looking for?
15:20 Ralesk oh, that could be useful, yes :)
15:24 good_news_everyon joined #mojo
15:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/l9xRYQ
15:24 good_news_everyon mojo/master fecf76b Sebastian Riedel: added Basic authentication recipe
15:24 good_news_everyon left #mojo
15:25 sri i guess a recipe makes sense, there's already one for the client side
15:25 Ralesk sri++
15:25 Ralesk thanks :)
15:26 ryozi joined #mojo
15:42 kablamo Can I use Hypnotoad which just any old blocking psgi app?
15:44 kablamo or does the app need to use Mojolicious
15:45 sri built-in servers are not psgi
15:46 sri would be too limiting
15:54 btyler joined #mojo
15:57 kablamo Am trying to wrap my head around that.
15:58 kablamo if they can't run psgi apps isn't that limiting?
15:59 kablamo i think i should take a break :)
16:03 btyler_ joined #mojo
16:18 btyler joined #mojo
16:25 btyler_ joined #mojo
16:28 sujithm joined #mojo
16:33 Eke- joined #mojo
16:42 dod joined #mojo
16:47 hummeleBop joined #mojo
16:52 KCL joined #mojo
17:00 btyler joined #mojo
17:06 punter joined #mojo
17:06 punter Got myself a copy of "Network Programming with Perl" - very happy
17:08 sri great book, little outdated though
17:10 sri kablamo: they are specifically designed for mojolicious apps, which do all kinds of real-time stuff, for which psgi totally sucks
17:10 sri *real-time web
17:13 sri and i'm sooooooo happy we did our own thing there instead of going all in with psgi
17:14 sri getting even small things fixed in the spec is pretty much impossible... been discussing some essential things for *years* now
17:16 mire joined #mojo
17:20 btyler_ joined #mojo
17:21 sri i guess that aspect of mojolicious doesn't get as much recognition as it should... controlling the whole stack means we can fix things pretty much instantly
17:21 * sri loves being able to do that
17:22 cfedde joined #mojo
18:43 btyler joined #mojo
18:51 kyshtynbai joined #mojo
18:57 JohnDRockefeller joined #mojo
18:57 btyler_ joined #mojo
19:04 btyler joined #mojo
19:09 bobkare joined #mojo
19:13 btyler_ joined #mojo
19:15 mire joined #mojo
19:28 Eke- joined #mojo
20:11 LOMA_Eke joined #mojo
20:20 neyasov joined #mojo
20:23 mattastrophe joined #mojo
20:27 sugar_ joined #mojo
20:33 sh4|2 joined #mojo
20:55 sujithm joined #mojo
20:55 basiliscos joined #mojo
20:56 doby joined #mojo
20:56 batman sri++ # Mojo::IOLoop is superduperawesome^1000
21:01 salparadise agree, what kind of sorcery is it doing?
21:16 batman salparadise: no sorcery :)
21:17 bjoernfan sourcery!
21:21 jberger__ joined #mojo
21:24 jberger__ joined #mojo
21:25 jberger__ batman: demo still logs me in irc but i can't sign in to demo anymore
21:25 jberger__ Also Jonis beard++
21:29 batman jberger__: your sentence doesn't make any sense to me :(
21:29 batman can log in, or can't log in..?
21:29 jberger__ jberger_ is from demo
21:29 jberger__ But i can't log in
21:30 batman does it mean the backend connects jberger_ but you have forgotten your password?
21:30 jberger__ It is a zombie me
21:30 jberger__ I had my password stored
21:31 jberger__ Actually i had tried to remove my user from demo,  so i may not even have an account
21:31 batman oh.
21:31 batman that is important information
21:31 batman you can't delete your account though. no idea how you even tried to try to attempt that
21:31 jberger__ kablamo: did you understand about the app servers
21:32 jberger__ Hehe
21:32 jberger__ Not sure anymore, it's been a while
21:32 batman could you make a new password? # perl -E'say crypt shift, +($$ % 99)' your_pass
21:32 jberger__ Just set a new one for me and send it to me
21:33 batman ok
21:33 jberger__ Im on my phone
21:33 jberger__ batman should use bcrypt plugin
21:33 batman i know.
21:34 batman https://github.com/Nordaaker/convos/issues/89
21:36 batman jberger__: let me know when you try again
21:37 JohnDRockefeller joined #mojo
21:38 jberger_ batman: I'm in
21:38 batman sweet
21:38 batman phone or laptop?
21:38 batman *brb*
21:39 jberger_ Phone
21:40 jberger_ How do i change the password again?
21:40 jberger_ Then again, it's such a tasty password
21:43 dexteruk_ joined #mojo
21:53 mr-foobar joined #mojo
22:03 batman i don't think you can
22:09 mire joined #mojo
22:31 jkg joined #mojo
22:35 berov joined #mojo
22:40 batman jberger_: other feedback is more than welcome ... but unfortunately i need to get some sleep now :/
22:40 batman ttyl
22:40 * batman like the new convos interface
22:40 jberger_ batman: o/ nn
22:48 batman Would also know how it works on your phone, in what browser...
22:48 batman The input is a bit jumpy on the iPhone. Not quite sure why yet :/
22:56 klapperl joined #mojo
23:02 jberger_ I'm on android chrome
23:02 jberger_ Seems smooth here
23:17 neyasov_ joined #mojo

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