Camelia, the Perl 6 bug

IRC log for #mojo, 2012-09-05

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

All times shown according to UTC.

Time Nick Message
00:14 mandreacchio joined #mojo
00:26 asarch joined #mojo
00:27 bpmedley https://metacpan.org/module/Mojo​licious::Plugin::ParamCondition  … Thoughts?
00:45 DaniBunny joined #mojo
00:54 laouji joined #mojo
00:54 scott joined #mojo
01:19 crab bpm: paramter -> parameter
01:21 crab /g
01:24 bpmedley gaw
01:25 bpmedley Thank you for looking.
01:30 jnap joined #mojo
01:36 xaka joined #mojo
01:48 mandreacchio joined #mojo
02:06 davido joined #mojo
02:07 davido It looked in Mojo::Util that the app secret has 64 significant bytes, is that correct?
02:10 davido Ah, i see now.
02:11 noganex_ joined #mojo
02:15 d4rkie joined #mojo
02:56 vel joined #mojo
03:19 davido joined #mojo
04:00 mandreacchio joined #mojo
04:04 good_news_everyone joined #mojo
04:04 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xzdzBA
04:04 good_news_everyone [mojo/master] added xor_encode function to Mojo::Util - Sebastian Riedel
04:04 good_news_everyone left #mojo
04:05 sri that's easier to test, and might even be useful for something else than websocket masking :)
04:06 sri not sure about the name yet, but couldn't think of anything else than xor_encode
04:06 mandreacchio joined #mojo
05:05 memowe joined #mojo
05:10 throughnothing joined #mojo
05:12 laouji joined #mojo
05:32 mandreacchio joined #mojo
05:48 japhb joined #mojo
05:52 keedi joined #mojo
05:57 abra joined #mojo
06:21 Vandal joined #mojo
06:21 Vandal joined #mojo
06:25 spleenjack joined #mojo
06:25 mandreacchio joined #mojo
06:39 AmeliePoulain joined #mojo
06:46 AmeliePoulain joined #mojo
06:53 alexeiras joined #mojo
07:15 batman joined #mojo
07:26 mandreacchio joined #mojo
07:39 cosmincx joined #mojo
07:42 azawawi joined #mojo
07:43 azawawi gm
07:43 azawawi dod: early ping :)
07:45 azawawi wrong channel sorry... :)
07:45 azawawi left #mojo
07:49 cosmincx joined #mojo
07:50 mandreacchio_ joined #mojo
07:51 rem_lex|pivo joined #mojo
08:11 pau4o joined #mojo
08:11 memowe joined #mojo
08:18 gabiruh joined #mojo
08:25 dod1 joined #mojo
08:27 dod1 ok. I've a test case that show problems in _xor_mask : http://paste.debian.net/187941/
08:28 dod1 this is the original websocket example, slightly modified in line 10 and 11
08:29 dod1 you should get this error message: [error] Event "read" failed: Modification of a read-only value attempted at /usr/share/perl5/Mojo/Transaction/WebSocket.pm line 301.
08:30 dod1 The read-ony value is $_ set up by the for loop around the call to send
08:36 fhelmber_ joined #mojo
08:44 braceta joined #mojo
08:58 crab dod1: yep.
09:00 dod1 crab: does 'yep' means that you agree there's a problem ?
09:08 jontaylor joined #mojo
09:25 crab dod1: yes, clearly
09:28 dod1 ok, fixing the function is easy, but there are side effects in the websockets tests. see https://github.com/dod38fr/mojo/commit/e​103c89c78b825ea8b164941737900a639dc42ad
09:32 crab that's because you didn't fix it properly
09:33 crab moment
09:34 dod1 Well, probably, there are other usage of $_ in Websocket that I don't understand. In my code I *never* rely on $_ outside of a loop
09:36 good_news_everyone joined #mojo
09:36 good_news_everyone [mojo] amenonsen pushed 1 new commit to master: http://git.io/BJXnoQ
09:36 good_news_everyone [mojo/master] Don't clobber $_ in xor_encode - Abhijit Menon-Sen
09:36 good_news_everyone left #mojo
09:36 crab there you go. (you forgot to change the "length" to "length $snip" in the "return ..." line)
09:37 dod1 oops
09:37 dod1 Sorry about that
09:37 crab of course, if you're wedded to 2.96, you'll have to manually apply that diff to your WebSocket.pm, but it should apply cleanly.
09:38 nour how do i disable template/request caching
09:38 dod1 Well, I'm part of Debian perl team. Since Debian is frozen, I can't upgrade mojo to fix this issue in Wheezy. I'll backport the fix
09:38 crab dod1: ah, thanks then.
09:43 nour maybe its route caching
09:44 crab what is "it"?
09:44 purl "it" is dbix-class.org?
09:44 crab argh
09:44 nour [Wed Sep  5 11:42:23 2012] [debug] Rendering cached template "layouts/default.html.ep".
09:45 nour i want to clobber this cached template functionality as its resulting in stale data getting inserted into my db
09:46 nour but i can't figure out how
09:51 crab you're changing your templates at runtime? or what?
09:51 nour nope
09:51 nour its a strange bug
09:51 crab then why does the default layout being cached cause such a problem?
09:51 nour stale data inserted, it might be my own code in a custom plugin but i don't think so
09:51 * nour is still testing
09:51 crab i suspect you may be mis-diagnosing the problem
09:52 nour yep you're right
09:52 nour it's gotta be my code
10:00 marcus tempire: maaan, you got rid of your beard? WHY?
10:00 * marcus is disappoint.
10:01 mire_ joined #mojo
10:16 ghandi joined #mojo
10:17 ghandi joined #mojo
10:20 Lucas1 joined #mojo
10:37 azawawi joined #mojo
10:37 azawawi hi
10:37 azawawi http://feather.perl6.nl:4000/  # Farabi Perl Editor... Feedback is welcome
10:45 nour bridge over route via get to #mojo
10:48 nour why does a mojo worker/instance take 120 megs right off without any code
10:48 zivester joined #mojo
10:50 osprey_ joined #mojo
10:50 osprey_ hi all
10:52 nour shut your face
10:52 * purl sulks.
10:59 daxim joined #mojo
11:45 nour whats the diff between virutal and resident memory?
11:45 nour im concerned about mojos memory consumption, dont want it to be a sticking point for my app
11:45 azawawi left #mojo
11:53 daxim http://enwp.org/Resident_set_size
11:53 crab nour: please be nice.
11:56 daxim VSIZE is everything: RSS plus swap
12:04 marcus yes, please be nice nour. this is a polite channel.
12:06 marcus nour: I see an empty app using 13MB of resident private memory here.
12:07 marcus with hypnotoad, 18mb shared, and about 1MB per child of private.
12:09 ghandi joined #mojo
12:14 AmeliePoulain joined #mojo
12:41 osprey_ hm, can some explain why I cannot have one shared array for 2 select_field?
12:41 osprey_ % my $sec = [{Europe => [[Germany => 'de'], 'en']}];
12:41 osprey_ <%= select_field showopt => $sec, multiple=>"multiple" %>
12:41 osprey_ <%= select_field hideopt => $sec, multiple=>"multiple" %>
12:42 osprey_ sorry for pasting here, but code is short
12:43 osprey_ btw, when I add % use Data::Dumper; print Dumper \$sec; after first select_field, all have options from $sec
12:44 osprey_ without access with dumper showopt have options from $sec, and hideopt have no
12:50 d4rkie joined #mojo
12:52 jnap joined #mojo
13:07 ryozi joined #mojo
13:13 bluescreen joined #mojo
13:33 vel joined #mojo
13:37 Lucas1 joined #mojo
13:39 braceta joined #mojo
13:44 gryphon joined #mojo
13:55 kthakore joined #mojo
13:56 kthakore hi there! Anyone using the Mojolicious::Authentication::Plugin noticing that $self->logout is causing a deep recursion and lockign up the server?
14:03 jnap joined #mojo
14:20 zpmorgan joined #mojo
14:30 kthakore hello?
14:39 good_news_everyone joined #mojo
14:39 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LpjUow
14:39 good_news_everyone [mojo/master] fixed xor_encode formatting - Sebastian Riedel
14:39 good_news_everyone left #mojo
14:40 vel joined #mojo
14:52 sri ohoh, new json pointer draft
14:55 sh9 joined #mojo
14:56 sri looks like we are still up to date \o/
15:06 mayfield_ joined #mojo
15:16 vel joined #mojo
15:23 marcus \o/
15:34 inokenty joined #mojo
15:39 drift joined #mojo
16:01 mire_ joined #mojo
16:03 azawawi_1 joined #mojo
16:03 azawawi_1 hi
16:04 azawawi_1 just wanted to note that we need mention MOJO_MAX_MESSAGE_SIZE in Mojo::UserAgent
16:04 azawawi_1 it is more clearer than finding it later in Mojolicious::Guides::Cookbook
16:05 azawawi_1 better yet... Do we have a documentation for Mojolicious environment variables?
16:12 xaka joined #mojo
16:13 abra joined #mojo
16:14 abra joined #mojo
16:14 ghandi joined #mojo
16:16 CromeDome joined #mojo
16:22 ghandi joined #mojo
16:24 sri azawawi_1: you're welcome to create a wiki page for that
16:40 good_news_everyone joined #mojo
16:40 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/VaMCkA
16:40 good_news_everyone [mojo/master] updated Changes file - Sebastian Riedel
16:40 good_news_everyone left #mojo
17:03 good_news_everyone joined #mojo
17:03 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0HhFVw
17:03 good_news_everyone [mojo/master] more xor_encode tests - Sebastian Riedel
17:03 good_news_everyone left #mojo
17:40 cosmincx joined #mojo
17:55 tempire marcus: not all of it!
17:55 purl not all of it is read-only, right?
17:56 tempire some would say it's even more fabulous
18:03 tempire azawawi_1: demo for farabi is not responding
18:28 osprey_ left #mojo
18:53 andrefs joined #mojo
18:54 azawawi_1 tempire: http://feather.perl6.nl:4040/
19:32 tempire demo fail
19:39 joenio joined #mojo
19:42 jnap joined #mojo
19:43 Lucas1 joined #mojo
19:51 gryphon joined #mojo
19:53 labrown joined #mojo
19:57 fibo joined #mojo
20:18 xaka joined #mojo
20:55 nour \q
20:58 zeke joined #mojo
21:13 williamt joined #mojo
21:14 williamt Is there a guide on deploying with mod_perl ?
21:14 sri just don't :)
21:14 williamt really?
21:15 williamt Whats the prefered deployment method these days?
21:15 sri http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#DEPLOYMENT
21:15 vervain I went nginx proxied to hypnotoad and never looked back
21:16 williamt sri: I read that.
21:16 williamt vervain: interesting. I was thinking proxy also just to get logging
21:18 williamt sri: Apache/CGI is listed on that page although I can't believe with startup overhead it would be prefered in most cases
21:22 joenio left #mojo
21:23 sri what gives you the impression it's prefered?
21:24 williamt I'm not saying it is. I was asking for prefered deployment methods and you linked that page.
21:24 williamt Just looking for a little direction. :)
21:24 williamt hypnotoad sounds pretty nice though
21:32 vervain williamt: hypnotoad behind nginx is probably the one to focus on... or maybe hypnotoad behind Apache/mod_proxy
21:33 williamt vervain: Thanks. Im going to try and go the hypnotoad apache/mod_proxy  route since apache is already running on the box
21:33 vervain *nod*
21:47 lukep joined #mojo
22:45 davido joined #mojo
23:05 jzawodn joined #mojo
23:10 mandreacchio joined #mojo
23:40 bpmedley williamt: Want an Apache config example?

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