Camelia, the Perl 6 bug

IRC log for #mojo, 2012-11-30

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

All times shown according to UTC.

Time Nick Message
00:06 MikeD joined #mojo
01:15 Mike-PerlRecruiter_ joined #mojo
01:19 laouji joined #mojo
01:29 hesperaux joined #mojo
01:54 d4rkie joined #mojo
02:14 michaelfung joined #mojo
02:14 omega joined #mojo
02:22 michaelfung Hello
02:23 michaelfung which method can disconnect a websocket client from the server?
02:23 michaelfung I tried "$tx->server_close" and "$c->finish", both didn't work.
02:28 freman $tx->finish should be
02:28 freman http://search.cpan.org/~sri/Mojolicious-3.6​2/lib/Mojo/Transaction/WebSocket.pm#finish
02:43 kitt_vl joined #mojo
02:46 michaelfung freman: thanks!
02:50 michaelfung freman: oh, it doesn't work. The connection drops until inactivity timeout. Any ideas?
02:53 michaelfung Sorry , I mean "The connection drops only after inactivity timeout".
02:54 michaelfung I verified that with tcpdump.
03:07 noganex_ joined #mojo
03:25 freman hmmm, well you can also get at $tx->connection which should (might?) be a raw socket and close that...
03:32 gryphon joined #mojo
03:39 jayallen joined #mojo
03:53 l3l1p joined #mojo
04:07 Miked joined #mojo
04:33 Foxcool joined #mojo
04:38 coolmen joined #mojo
04:48 atz maybe that should be  $tx->client_close or $tx->server_close (depending on which side you are on)
04:49 asarch joined #mojo
04:55 laouji joined #mojo
05:06 Vandal joined #mojo
05:12 Molaf joined #mojo
05:16 sri yay, the IO::Socket::IP warnings with Morbo have been fixed
05:55 yakubori joined #mojo
06:09 ovnimancer joined #mojo
06:12 yakubori joined #mojo
06:13 l3l1p joined #mojo
06:13 good_news_everyone joined #mojo
06:13 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/M3ytRA
06:13 good_news_everyone mojo/master e3f318f Sebastian Riedel: better descriptions for some transaction methods
06:13 good_news_everyone left #mojo
06:19 rem_lex| joined #mojo
06:22 yakubori joined #mojo
06:27 spleenjack joined #mojo
07:05 dpetrov_ joined #mojo
07:10 davido joined #mojo
07:11 hesperaux joined #mojo
07:54 michaelfung joined #mojo
08:07 michaelfung left #mojo
08:07 michaelfung joined #mojo
08:42 ver joined #mojo
08:52 suy joined #mojo
09:02 D4RK-PH0ENiX joined #mojo
09:04 sinkovsky joined #mojo
09:12 rem_lex joined #mojo
09:19 alexeiras joined #mojo
09:36 yakudza joined #mojo
09:39 aptituz joined #mojo
09:45 Britzel_ joined #mojo
09:49 jwang joined #mojo
09:51 d4rkie joined #mojo
10:05 fhelmber_ joined #mojo
10:06 jwang joined #mojo
10:10 jwang joined #mojo
10:15 nic Till now I've only made ::Lite apps, but I'm wondering if it's time to move...
10:16 nic I put my app script in script (to keep $home free of files)
10:16 nic and yesterday sri pointed out how to reset $home to be the parent of script
10:17 sri wait a minute
10:17 nic but today I've found out why I wasn't getting any logs... it needed a log dir underneath script
10:17 sri detection changes for full apps
10:17 sri home will be automatically right
10:17 nic yeah, that's why I'm thinking I need to move Lite -> full
10:18 nic cos under Lite the 'log' dir is in the wrong place (and I'm wondering if anything else will be wrong)
10:18 sri the log dir gets generated too early for app->home() to work, yea
10:18 sri you can change it manually too though
10:18 nic oh ok, I'll try that in the short term
10:19 nic (don't feel quite ready to grow up yet)
10:19 sri best look into Mojolicious::new to see what else gets generated too early when you're building a lite/full hybrid
10:19 nic k
10:33 nicolaas joined #mojo
10:33 nicolaas hi
10:33 nicolaas sorry to come with this again, but could you tell me how to render a "mother app" template from a plugin-mounted sub app ?
10:34 nicolaas i have kind of a "current working directory" problem
10:40 marty_ joined #mojo
10:57 dabudabu joined #mojo
11:05 spleenjack joined #mojo
11:39 suy joined #mojo
11:40 l3l1p joined #mojo
11:50 jayallen left #mojo
11:58 michaelfung joined #mojo
12:08 Averna joined #mojo
12:08 alexeiras joined #mojo
12:13 jwang joined #mojo
12:34 avkhozov joined #mojo
12:47 ver_ joined #mojo
12:48 ver joined #mojo
13:09 b2b joined #mojo
13:11 ObseLeTe joined #mojo
13:15 Mike-PerlRecruiter_ joined #mojo
13:19 mattastrophe joined #mojo
13:51 nic Anyone successfully set $sessions->default_expiration to something other than 3600?
13:51 Antisoche joined #mojo
13:52 nic I'm thinking the value is effectively read-only, in which case the docs would merit a tweak
14:03 renormalist left #mojo
14:06 ryozi joined #mojo
14:18 marty_ nic:  I do it all the time.  I set it in my application file.   $self->sessions->default_expiration(315360000);
14:19 nic ah, thank you marty_ -- I was doing it wrong
15:12 jayallen joined #mojo
15:16 gryphon joined #mojo
15:27 bluescreen joined #mojo
15:41 knshaum joined #mojo
15:42 alnewkirk joined #mojo
15:58 Adurah My mojol efforts have gone live...!
15:58 Adurah Mind you, replacement for crap PHP code might not be the most impressive use of it.
16:04 mattastrophe joined #mojo
16:22 dabudabu Hmm... I'd like to use switch() in a template, but saying use Switch; inside a template doesn't seem to work... (Or maybe the problem lies elsewhere)
16:22 sri hahahahahaha
16:23 sri don't use Switch, just don't
16:23 dabudabu switch is bad?
16:23 sri it's a source filter
16:23 sri in many parts of the community you will get yelled at for using it
16:24 BinGOs sores filtah
16:24 alester joined #mojo
16:24 mjy left #mojo
16:25 dabudabu Oh, I'd overlooked given()/when/default
16:25 mjy joined #mojo
16:25 dabudabu I guess that would be better?
16:25 sri also careful with given/when, they are experimental and will break in 5.18
16:25 mjy left #mojo
16:26 dabudabu Hmm
16:26 sri btw. Switch has been removed from core in 5.14 i believe
16:27 dabudabu I'll just use if/elsif/else then
16:28 sri i guess you can use given/when if you look at which parts will keep working after 5.18
16:28 BinGOs I like labelled blocks for switchy like behaviour.
16:29 sri for/when with simple values seems to be an acceptable choice too
16:31 mattastrophe joined #mojo
16:32 sri in case you really care :) http://www.xray.mpe.mpg.de/mailing-lis​ts/perl5-porters/2012-08/msg00550.html
16:35 dabudabu I'm good :p
16:35 dabudabu Uh, as in, "no thank you"
16:40 Foxcool joined #mojo
16:42 tailriver joined #mojo
16:52 tailriver joined #mojo
16:56 sinkovsky joined #mojo
17:04 mire joined #mojo
17:04 xaka joined #mojo
17:04 dpetrov_ joined #mojo
17:05 jayallen joined #mojo
17:09 tailriver joined #mojo
17:21 asarch joined #mojo
17:21 tailrive_ joined #mojo
18:08 inokenty joined #mojo
18:24 sri hmmm
18:25 * sri was just thinking if some kind of filter layer for the renderer would make sense
18:26 sri since you know it renders the whole response content at once gzip compression and the like would be pretty simple there
18:28 sri app->renderer->add_filter(html => sub { gzip $_[1] if $_[0]->req->headers->accept_encoding =~ /gzip/ });
18:29 sri stuff like that
18:29 Adurah They I'd have to change my gzip code...!
18:29 sri you mean "could"
18:29 sri and "Then"
18:30 Adurah s/y/n/;
18:37 SmokeMachine joined #mojo
18:49 sh4 joined #mojo
19:08 mattastrophe joined #mojo
19:08 d4rkie joined #mojo
19:30 rem_lex|pivo joined #mojo
19:42 d4rkie joined #mojo
21:14 xaka joined #mojo
21:33 jayallen left #mojo
21:39 yakudza joined #mojo
21:54 gryphon joined #mojo
21:55 b2b joined #mojo
22:02 hesperaux joined #mojo
22:14 dpetrov_ joined #mojo
22:43 bluescreen joined #mojo
22:43 fibo joined #mojo
22:46 HtbaaPi_ joined #mojo
22:53 cfedde joined #mojo
22:55 cfedde is there a way to get the url used to access the current app?
23:05 xaka cfedde: $self->req->url
23:05 rem_lex| joined #mojo
23:12 jzawodn joined #mojo
23:21 asarch joined #mojo
23:21 cfedde xaka: perfect!  thanks.
23:32 tailriver joined #mojo
23:34 hesperaux buu, are you here?

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