Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-26

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

All times shown according to UTC.

Time Nick Message
01:04 asarch joined #mojo
01:36 jzawodn joined #mojo
02:40 noganex_ joined #mojo
03:33 xaka joined #mojo
04:42 Leandr joined #mojo
05:51 bzero joined #mojo
06:31 * tempire wonders whether it would be useful to have a perl-specific job site where developers could openly list what they're available for
06:34 tempire then again, that's assuming companies are enlightened enough to even bother looking
06:34 tempire and this is perl, where the majority of companies have yet to make a plan to move away from 5.8
06:35 tempire so forward thinking is probably not common
06:35 d4rkie joined #mojo
06:35 tempire except with nordaaker
06:35 tempire now that's an amazing company!
06:35 * tempire looks into the direction of norway
07:01 Vandal joined #mojo
07:23 Britzel joined #mojo
07:46 buu tempire: What, like a reverse jobs.perl?
07:47 tempire buu: yes
07:47 buu available-hackers.perl
07:47 buu prostitutes.perl
07:47 buu cheap-and-available.perl
08:04 jamesw joined #mojo
08:30 ryozi joined #mojo
09:36 memowe joined #mojo
09:37 perlite joined #mojo
09:37 mikegrb joined #mojo
09:40 burk joined #mojo
09:42 purl joined #mojo
09:51 tolid_air joined #mojo
09:53 geira joined #mojo
09:53 mire_ joined #mojo
10:11 kvorg joined #mojo
10:17 tempire goodnight purl
10:21 cosimo joined #mojo
10:44 sri good morning purl
11:02 cosimo joined #mojo
11:28 arthas joined #mojo
12:30 d4rkie joined #mojo
13:03 bowtie joined #mojo
13:16 arthas joined #mojo
13:23 Quiet1 joined #mojo
13:24 Ribbek hey gang -- trying to run mojolicious::lite as a background process without a controlling terminal
13:24 Ribbek any hints?
13:24 purl NONE
13:25 marcus \o/
13:25 marcus Ribbek: hypnotoad is probably good for that.
13:25 Ribbek roger on that
13:26 Ribbek i would have thought I could just put it into the background
13:27 marcus Ribbek: doing it manually would be fairly easy. However, hypnotoad gives you a bunch of other things as well, and it is included with mojolicious :)
13:27 Ribbek manually would be WONDERFUL
13:27 Ribbek [greetings to Norway -- I myself am of Norwegian descent]
13:29 gryphon joined #mojo
13:29 vervain Ribbek: You can run it in the 'background' with './myapp daemon &' if that's what you really want... but you will still have a 'controlling terminal'
13:29 Ribbek not if you logout
13:29 Ribbek and then the server seems not to want to answer
13:29 vervain If you want to have a longer running terminal with your app then look into the 'screen' application
13:29 Ribbek it gets lonely
13:29 Ribbek oh that's cheesy, but that'd work
13:29 Ribbek why can't I just fork it into background and logout?
13:29 Ribbek it just *realllly* wants a terminal
13:30 inokenty use hypnotoad
13:30 vervain ya
13:30 Ribbek i have to learn hypnotoad then
13:30 Ribbek which is fine
13:30 Ribbek I'll tell my buddy to do that
13:30 sri well, here's the code hypnotoad uses to daemonize https://github.com/kraih/mojo/blob/ma​ster/lib/Mojo/Server/Hypnotoad.pm#L73
13:31 Ribbek yeah -- Lite doesn't seem to want to tolerate that
13:31 Ribbek I'll tell my bud to learn hypnotoad
13:31 sri umm
13:32 sri if a lite app didn't tolerate that how would it work with hypnotoad?
13:32 Ribbek [screen mightr very well be the answer]
13:34 nic Ribbek: Does nohup not work for you?
13:34 Ribbek didn't try it
13:34 Ribbek the daemon is not GONE, though
13:34 Ribbek it is visible on the ps list
13:34 Ribbek it just doesn't enable connections
13:34 Ribbek I expect 'screen' is going to be our savior for now
13:35 Ribbek Sadly, I am doing this in a rush (which I hate)
13:35 Ribbek I beg your forgiveness and, if screen fails, will be back in half a day after a plane flight
13:35 nic Did you redirect stdout?
13:35 Ribbek tried that
13:35 Ribbek really cares more about stderr
13:35 Ribbek tried that, too
13:35 Ribbek seems simply to quit answering requesrts
13:35 Ribbek [yes, I find this mysterious]
13:35 nic screen will work (I use it frequently, but not exactly for the same thing)
13:36 Ribbek i have a report that screen works from my buddy
13:36 Ribbek good enough for now!
13:36 Ribbek thanks so much
13:36 Ribbek bye nic
13:36 Ribbek bye marcus
13:36 nic good luck
13:36 purl You'll need it.
13:36 Ribbek haha
13:36 marcus heh
13:36 marcus bye
13:37 nic sri: In a Lite app, I have @@ main.html.ep [and then nothing]
13:37 nic but then main.html.ep is not found
13:38 nic so I've replaced it with @@ main.html.ep and then " "
13:38 nic which works
13:38 nic Is that a sensible way to get an empty template into a Lite app?
13:38 nic (I'm going to use it a lot, so may as well start off sensible :) )
13:38 sri what's the use case for an empty template?
13:39 nic My main use case for everything Lite is for rapid prototyping
13:39 sri i have no opinion about that
13:39 nic In this case everything is already in the layout, so for now I just need it to be able to auto-render a template main.html.ep
13:40 sri and when i say that, i mean "go bug another core developer with that" ;p
13:40 nic :D
13:40 * marcus hides in cupboard
13:43 nic yay, it also works with "%# empty" which looks much less hacky
14:25 Britzel_ joined #mojo
14:35 arthas joined #mojo
15:21 lammel2 joined #mojo
15:22 daniel_ joined #mojo
15:24 daniel_ hi.  if mojo is behind an nginx prox, is it best to run with MOJO_REVERSE_PROXY=1?  it seems to work with and without.
15:25 lammel2 Check the URLs returned when you are using url_for
15:26 lammel2 without MOJO_REVERSE_PROXY=1 you need to take care of setting up the environemnt yourself
15:27 sri http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Hypnotoad # that tells you exaclty what reverse proxy support does
15:28 sri but yes, for most apps it does not matter at all
15:30 lammel2 Does it? Seems like itÄs not really clear which headers are really supported
15:31 lammel2 I'll take a closer look later, maybe I just read too fast
15:40 sri seems pretty clear to me
15:44 d4rkie joined #mojo
16:44 spiros joined #mojo
16:44 spiros Hello
16:44 spiros What is the "canonical" way to tell Mojo to gracefully stop after render() has been called?
16:45 spiros i.e. I have an if statement in my code which renders a template - I want to stop after the render() call has been done
16:45 crab return;
16:46 spiros Hm I've tried that - I think I am screwing things up because render() is called by another subroutine and not the one that the router points to
16:47 crab return othersub();
16:47 spiros nice - that was it. thank you
16:51 spiros I think I am going to re-think how I implemented things :)
16:55 xaka joined #mojo
17:04 crab always a good idea.
17:04 tolid_air joined #mojo
17:15 spiros What does rendered() do anyways?
17:16 mire_ joined #mojo
17:33 crab "i generated my own response"
17:34 spiros thank you again
17:47 xaka1 joined #mojo
17:51 daniel__ joined #mojo
17:54 crab you're welcome.
18:14 xaka joined #mojo
18:29 Britzel joined #mojo
19:05 migo joined #mojo
19:26 hipyhop joined #mojo
19:37 daniel__ super late reply but thanks for the feedback on MOJO_REVERSE_PROXY several hours ago.  I got caught up developing; haven't switched back to irc until now, and now I also leave :-)
19:48 Netfeed tempire: there?
19:48 purl well, there is just something wrong with my cpanm version
20:08 asarch joined #mojo
20:24 perlite joined #mojo
21:03 mire_ joined #mojo
21:42 tolid_air joined #mojo
21:45 rem_lex| joined #mojo
21:54 lukep joined #mojo
22:18 sri http://groups.google.com/group/mojolicio​us/browse_thread/thread/a828e7c1f19805ff
22:18 sri that's a really annoying problem, but i doubt we can solve it
22:19 sri unless someone feels like rewriting morbo and hypnotoad :)
22:56 jzawodn joined #mojo
23:45 tempire Netfeed: ?
23:56 labrown joined #mojo

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