Camelia, the Perl 6 bug

IRC log for #mojo, 2013-02-04

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

All times shown according to UTC.

Time Nick Message
00:14 Molaf__ joined #mojo
00:26 anaio joined #mojo
00:44 mattastrophe joined #mojo
00:48 jzawodn joined #mojo
00:52 mire_ joined #mojo
00:56 rwstauner joined #mojo
01:04 ka2u joined #mojo
01:11 good_news_everyone joined #mojo
01:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/E4Gs_w
01:11 good_news_everyone mojo/master 747f08d Sebastian Riedel: test tweaks
01:11 good_news_everyone left #mojo
01:15 hlin joined #mojo
01:16 TitanOfOld joined #mojo
01:40 GabrielVieira joined #mojo
01:51 d4rkie joined #mojo
01:51 vervain joined #mojo
01:55 keedi joined #mojo
02:08 mattastrophe joined #mojo
02:31 dvinciguerra joined #mojo
02:48 gryphon joined #mojo
03:08 xaka joined #mojo
04:18 egopro joined #mojo
04:32 asarch joined #mojo
04:58 ka2u joined #mojo
05:04 moltar joined #mojo
05:14 rem_lex| joined #mojo
05:33 ka2u_ joined #mojo
06:14 spleenjack joined #mojo
06:38 yakudza joined #mojo
06:52 egopro joined #mojo
06:59 egopro joined #mojo
07:09 Mike-PerlRecruiter_ joined #mojo
07:12 Vandal joined #mojo
07:34 egopro joined #mojo
07:39 ObseLeTe joined #mojo
07:42 dod joined #mojo
07:43 egopro joined #mojo
08:01 dod joined #mojo
08:14 kitt_vl joined #mojo
08:16 suy joined #mojo
08:35 dpetrov_ joined #mojo
09:19 ObseLeTe joined #mojo
09:29 jontaylor joined #mojo
09:43 tholen joined #mojo
09:46 nelio joined #mojo
09:55 egopro joined #mojo
09:57 mire_ joined #mojo
10:16 fhelmber_ joined #mojo
10:16 mugenken joined #mojo
10:49 dhg joined #mojo
10:51 dotan joined #mojo
10:59 GabrielVieira joined #mojo
11:06 egopro joined #mojo
11:14 ver joined #mojo
11:15 SmokeMachine joined #mojo
11:37 SmokeMac_ joined #mojo
11:45 ObseLeTe joined #mojo
11:46 SmokeMachine joined #mojo
12:13 judofyr joined #mojo
12:17 zdk joined #mojo
12:56 moltar joined #mojo
12:58 marty o/
12:58 marty wircus, jberger, sri: thanks for the help on JSON
13:03 SmokeMachine joined #mojo
13:04 judofyr I have considered writing debugger support for Devlicious, but after looking at perl5db.pl I'm reconsidering
13:09 TristinColby joined #mojo
13:24 TitanOfOld joined #mojo
13:26 judofyr_ joined #mojo
13:33 Vandal can any one tell me why in first case no error but in second is error?  http://paste.org.ru/?y0jrpw
13:40 marty Vandal:  That paste is unreadable.  A simple test case would help us help you.
13:41 Vandal huh?
13:41 judofyr_ Vandal: what's the code that causes the error?
13:41 Vandal judofyr_, return $dom->a->text, $dom->span->text, $image, $dom->a->{onclick} =~ /(\d+), (\d+)/ if $dom->children('a')->size;
13:42 Vandal judofyr_, fnd this log from line above: $self->app->log->debug($dom);
13:43 judofyr_ Vandal: "In addition to the methods above, many child elements are also automatically available as object methods, which return a Mojo::DOM or Mojo::Collection object, depending on number of children." — https://metacpan.org/modul​e/Mojo::DOM#CHILD-ELEMENTS
13:43 judofyr_ Vandal: use ->at('span') to only return one element
13:45 Vandal judofyr_, using $dom->at('a')->text nothing changed
13:45 judofyr_ Vandal: use $dom->at('span')
13:46 Vandal why?
13:46 judofyr_ Vandal: the problem is that the second snippet has to <span> tags
13:46 Vandal I need <a>
13:46 judofyr_ so $dom->span->text fails
13:47 Vandal oh
13:50 Britzel joined #mojo
13:50 Vandal judofyr, thank you
13:51 gryphon joined #mojo
13:52 wircus joined #mojo
13:52 batman joined #mojo
13:57 judofyr_ joined #mojo
13:57 Miked joined #mojo
14:01 inokenty joined #mojo
14:05 inokenty left #mojo
14:05 inokenty joined #mojo
14:07 bluescreen joined #mojo
14:18 batman joined #mojo
14:18 wircus joined #mojo
14:19 bluescreen joined #mojo
14:26 batman joined #mojo
14:26 wircus joined #mojo
14:42 GabrielVieira There is any existing blog app made with Mojolicious?
14:44 GabrielVieira jberger: just tried galileo.. nice job! (buggy codes during setup, but working really fine)!
14:44 Vandal joined #mojo
14:45 wircus gabrielVieira: https://github.com/memowe/bootylite
14:48 GabrielVieira wircus: thanks!
14:51 zivester joined #mojo
15:00 daxim joined #mojo
15:05 mire_ joined #mojo
15:09 Molaf_ joined #mojo
15:29 zivester joined #mojo
15:31 mire_ joined #mojo
15:36 d4rkie joined #mojo
15:43 labrown joined #mojo
15:54 nelio_ joined #mojo
16:05 SmokeMac_ joined #mojo
16:40 gryphon joined #mojo
16:55 vervain joined #mojo
16:57 yakudza joined #mojo
17:00 vel joined #mojo
17:10 xaka joined #mojo
17:12 njlg joined #mojo
17:25 osprey joined #mojo
17:26 osprey left #mojo
17:26 john joined #mojo
17:44 john hi.
17:47 marty \o
17:52 ObseLeTe joined #mojo
18:03 vel joined #mojo
18:07 ObseLeTe joined #mojo
18:10 john I found that Mojolicious have some memory leak when it run as scripted daemon when requested page not found.
18:10 john near 3M for 1k requests
18:11 john maybe here is more tiny 404 error page? how to change 404 page?
18:33 marty john:  You can create your own 404 page if you want.  just create a file not_found.development.html.ep in your templates directory
18:33 john ok, I test it
18:36 sri john: there is no memory leak
18:37 john I check 3.37 version and latest
18:38 john other user report too
18:38 ObseLeTe joined #mojo
18:38 sri do yo have any actual evidence? something i can run?
18:38 ObseLeTe joined #mojo
18:38 dod joined #mojo
18:38 dod joined #mojo
18:38 sri i've run 100k requests against MOJO_MODE=production perl -Mojo -E 'a->start' daemon -l http://*:8080
18:38 sri and it's constantly at 20mb
18:41 sri john: and what does "other user report too" mean?
18:43 john sri: confirmed, no leak in production mode
18:43 john sri my user I mean
18:44 john not here :), ok, dev mode have more advance 404 page
18:44 john sorry for bother
18:48 rwstauner joined #mojo
18:53 mire_ joined #mojo
18:54 rwstaune` joined #mojo
18:54 sri so it's the development not found page
18:55 good_news_everyone joined #mojo
18:55 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/WkczEg
18:55 good_news_everyone mojo/master 09b77be Sebastian Riedel: fixed memory leak in development not found page
18:55 good_news_everyone left #mojo
18:56 sri that's trivial to fix ;)
18:58 john nice
19:09 Mike-PerlRecruiter_ joined #mojo
19:16 ObseLeTe joined #mojo
19:16 ComLock joined #mojo
19:50 BeDa joined #mojo
19:55 john left #mojo
20:01 fhelmber_ joined #mojo
20:09 steveo_mich joined #mojo
20:13 xaka joined #mojo
20:17 steveo_mich Is there a place I can see how to determine if a session has expired after a successful session vs never being logged in?
20:17 steveo_mich I tried carrying over a flash, but that didn't seem to work.
20:24 SmokeMachine joined #mojo
20:47 creaktive joined #mojo
20:50 creaktive hi
20:51 creaktive I was checking the following mini-proxy code: http://larig.wordpress.com/2012/08​/01/a-mini-proxy-via-mojolicious/
20:51 creaktive it clearly buffers the contents before the retransfer
20:52 creaktive is there any way I could build a Mojolicious-based relay that actually streams the contents directly?
20:52 creaktive (BTW, that's just a curiosity, not a blocker)
20:52 sri yes there is
20:53 creaktive the best part :)
20:54 creaktive how?
20:54 sri don't think there are examples yet
20:54 creaktive indeed
20:54 creaktive I tried to use the write_chunks() but I obviously messes the things up
20:55 sri https://github.com/kraih/mojo/blob/maste​r/t/mojolicious/upload_stream_lite_app.t
20:55 sri that test should give you an idea of what's possible though
20:56 sri oh, there's actually a cookbook recipe too http://mojolicio.us/perldoc/Mojolicious/Gu​ides/Cookbook#Streaming_multipart_uploads
20:57 creaktive yes, I saw that one
20:57 creaktive there is ->content->on(part => ...
20:58 creaktive does this apply to the download, also?
20:59 creaktive I guess I could just strip it off, maybe...
20:59 sri there are many many events for all kinds of stuff
21:00 sri but this is very advanced, you won't find a perfect example for your use case, i'm afraid if you really want it you'll have to do a lot of research yourself
21:00 sri but, it is totally possible
21:00 creaktive will be quite fun... sorry for the very-very noob question, but how could I trace the Mojolicious events?
21:01 creaktive I mean, I have to see which events are dispatched and when
21:01 sri MOJO_EVENTEMITTER_DEBUG=1 might give you a few hints
21:01 creaktive so I can intercept and hook them
21:02 creaktive great, I'll try that! thank you!
21:02 sri for advanced stuff like this the best you can usually do is look at the tests
21:03 sri http://mojolicio.us/perldoc/Mojolicio​us/Guides/Cookbook#Streaming_response
21:03 sri that one might be helpful too
21:04 sri daemon and user agent work just the same, so most examples apply for both
21:04 creaktive cool
21:05 creaktive just in case
21:05 creaktive if I setup my proxy that way
21:05 creaktive how would it treat the Content-Encoding headers?
21:05 creaktive my main concern is exactly about the encoding
21:06 creaktive I need to proxy already compressed large resources
21:06 creaktive so recompressing them was wasting too many CPU cycles
21:08 tempire mon
21:08 tempire go
21:08 tempire d
21:08 tempire b
21:08 tempire !
21:08 tempire \o/
21:09 sri \o\
21:09 sri /o/
21:09 marty ~o~
21:14 xaka joined #mojo
22:00 dvinciguerra joined #mojo
22:12 dvinciguerra joined #mojo
22:27 lukep joined #mojo
22:39 rwstauner joined #mojo
22:39 mugenken joined #mojo
22:39 dhg joined #mojo
22:46 rwstaune` joined #mojo
22:50 mire_ joined #mojo
22:52 rwstauner joined #mojo
23:03 dhg joined #mojo
23:17 basic6 joined #mojo
23:23 ka2u joined #mojo
23:38 Averna joined #mojo

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