Camelia, the Perl 6 bug

IRC log for #mojo, 2012-12-31

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

All times shown according to UTC.

Time Nick Message
00:12 Molaf__ joined #mojo
00:26 sinkovsky joined #mojo
00:44 cfedde joined #mojo
00:56 mattastrophe joined #mojo
00:58 vervain What is it that you would do in a Full app startup() that you would also like to do in a Lite app?
01:06 iskyee joined #mojo
01:12 basic61 joined #mojo
01:12 Mike-PerlRecruiter_ joined #mojo
01:21 tempire ask: yes to the latter question
01:24 mattastrophe joined #mojo
02:34 iskyee joined #mojo
02:37 cfedde joined #mojo
03:06 DaniBunny joined #mojo
03:10 egopro joined #mojo
03:28 noganex_ joined #mojo
04:05 rem_lex joined #mojo
04:08 dvinciguerra joined #mojo
04:22 d4rkie joined #mojo
06:09 Vandal joined #mojo
06:11 mattastrophe joined #mojo
06:35 bpmedley Is this a decent way to do virtual type hosts: http://paste.debian.net/220478/ ?
06:44 anewkirk ??
06:45 anewkirk never heard of it
06:45 bpmedley anewkirk: What is confusing?
06:45 anewkirk "virtual type hosts"
06:45 bpmedley anewkirk: I'd like the same Mojo app to serve multiple dns entries.
06:45 bpmedley anewkirk: Kinda like NameVirtualHosts in apache.
06:46 tempire bpmedley: does it work?
06:46 tempire if so, then it's decent
06:46 bpmedley tempire: Yes.. :)
06:46 bpmedley tempire: Is there a better way?
06:46 tempire but usually, named virtual hosts are done by the reverse proxy
06:46 anewkirk bpmedley, read the deployment section of the cookbook
06:47 bpmedley anewkirk: I have, actually.
06:48 anewkirk typically people use apache or nginx as a proxy
06:48 anewkirk are you not interested in doing that?
06:49 bpmedley anewkirk: I'm not sure.
06:49 anewkirk read the cookbook again
06:56 bpmedley anewkirk: I'd like each host to get a separate route.  Wouldn't I still need those Header condition routes?
06:57 anewkirk no
06:57 bpmedley Why not?
06:57 anewkirk see ProxyPass
06:58 bpmedley How would that help me differentiate the .com and .net?
06:58 anewkirk okay, i get the feeling I am (or am going to) come off as a bit of an ass
06:59 bpmedley that's fine
06:59 anewkirk (thinking)
06:59 anewkirk are you familiar with setting up virtual hosts with apache?
06:59 bpmedley Yes, fairly familiar.
06:59 zivester joined #mojo
07:00 anewkirk okay
07:00 anewkirk read -- https://metacpan.org/module/SRI/Mo​jolicious-3.70/lib/Mojolicious/Gui​des/Cookbook.pod#Apache-mod_proxy
07:00 bpmedley I read that and am messing around with it as an example.
07:01 anewkirk ProxyPass /my-special-route-handler-goes-here http://localhost:8080/ keepalive=On
07:01 anewkirk make sense?
07:01 bpmedley Hrrm.  Kinda, however, I want each dns entry to possibly have it's own route.
07:02 anewkirk okay
07:03 bpmedley So, http://domain.com/ and http://domain.net/ both have their own, unique, route destination.
07:03 anewkirk I've never done it personally but I'm sure apache has proxy conditions ...
07:04 anewkirk and if not, simply create multiple virtualhost configs
07:04 bpmedley That would probably work.  Do you think it would work better than the Mojo HeaderCondition method?
07:05 bpmedley Hrmm.  Also, I'd like http://domain.com/file and http://domain.net/file to possibly point to different route destinations.
07:06 anewkirk sounds like it should be two different apps
07:07 bpmedley I see your point; however, there will be a lot of common code.
07:08 anewkirk thats the problem classes and libraries solve
07:09 bpmedley Understood, I may not have my problem very well defined and the solution in my brain may be obtuse.  Or both.  :)
07:22 durcais joined #mojo
07:24 durcais bpmedley: if that was a bad way it wouldn't be in the docs :)
07:51 durcais1 joined #mojo
08:42 dod joined #mojo
08:50 Vandal is there are a way to restart controller with the same parameters?
08:51 Vandal *there is
08:59 wircus joined #mojo
08:59 dod joined #mojo
08:59 batman____ joined #mojo
09:00 tempire Vandal: redirect_to
09:01 Foxcool_ joined #mojo
09:03 Vandal tempire, its not what I meant
09:05 jiyuperl joined #mojo
09:26 ObseLeTe joined #mojo
09:32 wircus joined #mojo
09:32 batman____ joined #mojo
09:59 sinkovsky joined #mojo
10:14 jpn joined #mojo
10:25 sri o/
10:26 arthas joined #mojo
10:26 wircus hay sri.
10:43 sinkovsky joined #mojo
10:45 ka2u joined #mojo
10:59 dvinciguerra joined #mojo
11:00 ObseLeTe joined #mojo
11:15 wircus /who
11:15 wircus eeep
11:15 tempire quack
11:16 marcus I guess I should catch all '/* and say 'unknown command' if it is...
11:21 good_news_everyone joined #mojo
11:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/AUN2kw
11:21 good_news_everyone mojo/master 4cf4fe8 Sebastian Riedel: Happy New Year!
11:21 good_news_everyone left #mojo
11:34 mire_ joined #mojo
11:43 wircus joined #mojo
11:43 batman____ joined #mojo
11:44 iskyee joined #mojo
12:00 sinkovsky joined #mojo
12:21 mattastrophe joined #mojo
12:40 Molaf_ joined #mojo
12:54 mattastrophe joined #mojo
13:16 inokenty perl -e 'print 72.97.112.112.121.32.78.101.​119.32.89.101.97.114.33.10'
13:18 cstamas nice
13:42 * nic looks for 2013 over the horizon
14:11 chenryn joined #mojo
14:18 yko joined #mojo
14:23 bluescreen joined #mojo
14:36 mire_ joined #mojo
14:56 gryphon joined #mojo
15:11 iskyee joined #mojo
15:15 Britzel_ joined #mojo
15:20 cfedde joined #mojo
15:39 xxtjaxx joined #mojo
16:24 vervain perl -E 'say "Happy New Year!"
16:24 vervain '
16:24 vervain :)
16:24 cfouts left #mojo
16:45 basic6 joined #mojo
16:58 Foxcool_ joined #mojo
17:00 ObseLeTe joined #mojo
17:32 ka2u joined #mojo
17:33 ObseLeTe joined #mojo
17:34 sinkovsky joined #mojo
17:55 ka2u joined #mojo
18:06 sinkovsky joined #mojo
18:12 mattastrophe joined #mojo
18:26 ObseLeTe joined #mojo
18:34 dabudabu joined #mojo
18:40 mattastrophe joined #mojo
18:51 * nic is getting excited
18:52 nic 2013 could be the year I get the hang of websockets+jquery
19:35 jpn joined #mojo
19:40 d4rkie joined #mojo
19:59 ka2u joined #mojo
20:07 dabudabu joined #mojo
20:12 atz joined #mojo
20:14 mire_ joined #mojo
20:36 tempire hmm
20:36 tempire I guess there's no event that fires when useragent finishes receiving content because of keepalive
20:43 sri of course there is, the finish event of the transaction
20:44 sri keep alive is irrelevant
21:23 b2b joined #mojo
21:41 gryphon joined #mojo
21:43 tempire I found a thing.
21:43 tempire it's strange.
21:43 tempire https://gist.github.com/4422901
21:44 tempire if $tx->req or $tx->res is used, redirects are not followed.
21:44 tempire Comment it out, everything continues as expected.
21:44 * tempire accidentally an event
22:11 cfedde Is there a way to pass arguments to an app run as a cgi from the command line? similar to the "feature" of CGI.pm?
22:18 cfedde Looks like setting the proper environment variables works.
23:16 mattastrophe joined #mojo
23:40 rhaen_fork joined #mojo
23:40 rhaen_fork he channel! Happy 2013
23:51 mire_ joined #mojo
23:53 PanzerBjorn joined #mojo
23:54 * tempire refuses to accept 2012
23:54 tempire much less 2013
23:54 PanzerBjorn Hey guys, have a cookie question. I noticed that the cookie() method is on the controller level... Can I use it in the startup{...} level as well?
23:56 PanzerBjorn I tried doing that quickly in a sandbox, and while there were no errors indicated, it didn't seem to set any cookie.
23:57 vervain Are you trying to put it in startup because you want it set on all requests?
23:57 PanzerBjorn (Nor could it read cookies that had been set by a previous non-Mojo script on my site.)
23:57 vervain If so you may want a nested route or a bridge
23:57 PanzerBjorn No, I need to verify session validity before routing.
23:59 PanzerBjorn I can access existing cookies in startup by $self->tx->req->cookies->etc but the setting of cookies seems to be controller-only.

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