Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-27

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

All times shown according to UTC.

Time Nick Message
00:03 Alias_ joined #mojo
00:24 Alias_ left #mojo
01:01 grim_fandango joined #mojo
01:04 perlrocks Twitter: "Mojolicious, garbled utf8 character embedded in the flash at redirect_to ..." (ja) --rin1024 http://twitter.com/rin1024​/status/118491056772874240
01:42 perlrocks Twitter: "Moved by a CGI Mojolicious, to mod_rewrite. - The'll Nobu:: BLOG:: Hatena http://t.co/AKAG37vg" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/118500618645147648
02:36 MojoGuest243 joined #mojo
02:36 MojoGuest243 From: http://news.ycombinator.com/item?id=1277067 (8 hits)
02:36 MojoGuest243 hello
02:37 testing1234 'sup?
02:37 purl dude!
03:09 tempire wow
03:09 tempire mounting mojolicious apps based on host is awesome
03:10 crab tempire: email?
03:10 purl i guess email is for old people or something anyone could create a better design for, but nobody could make a better design successful
03:10 crab oh, my address? ams@toroid.org
03:11 tempire was going to share a doc with you before posting to the mailing list
03:11 tempire it's done already, though
03:12 crab i'm not from the middle east
03:12 tempire crab: http://groups.google.com/group/mojolicio​us/browse_thread/thread/3f23a4d89aec7309
03:16 Alias_ joined #mojo
03:26 crab tempire: i'm caught in the middle, i can see both points of view
03:27 crab but on balance, i think it's probably better to be up front about things being unmaintan{ed,able} than to pretend all's well.
03:42 perlrocks Twitter: "kdoc - Mojolicious http://t.co/0s85i1NJ" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/118530817319374848
04:25 Eugene joined #mojo
04:33 tempire crab: not sure what you mean about in the middle
04:33 tempire not trying to pretend anything
04:39 crab not you
04:49 crab i mean i can see the point of view of people who are upset, and also of sri as maintainer
04:53 tempire ah.
04:53 tempire yes, understood.
04:54 tempire can a helper be defined via dependency interjection using Test::Mojo?
05:22 perlrocks Twitter: "Read reference Mojolicious." (ja) --kumafukurou http://twitter.com/kumafukur​ou/status/118556042442448896
05:23 tempire ah.  Test::Mojo->ua->app is available to modify.
05:43 koban joined #mojo
06:44 Vandal joined #mojo
06:46 D4RK-PH0ENiX joined #mojo
07:14 perlrocks Twitter: "perlcodesample: slogan Mojolicious "real-time web framework" http://t.co/o85dzyV1 to" (ja) --perlironman http://twitter.com/perlironm​an/status/118584288169033728
07:24 lammel2 joined #mojo
07:26 d4rkie joined #mojo
07:44 arthas joined #mojo
08:01 * icecreamftw yawns
08:09 judofyr joined #mojo
08:12 sri tempire: was your problem solved by the commit?
08:15 judofyr joined #mojo
08:17 sri perl -Mojo -E'a("/" => sub { warn $_[0]->req->to_string; $_[0]->render(text => "whatever")})->start' get -v /
08:17 sri the oneliner appears to be working at least
08:20 crab sri: good morning.
08:20 purl Lies!
08:20 sri good morning!
08:20 purl For you maybe.
08:20 crab i solved last night's problem with a return if $tx->stash->{'X-Hook-Rendered'} in my outermost after_static_dispatch hook, and all is well.
08:21 crab no, s/outermost/first/, or earlier, or something.
08:29 smpb joined #mojo
08:38 andrefs joined #mojo
08:50 esskar joined #mojo
08:51 driller_wrk joined #mojo
09:18 Eugene joined #mojo
09:41 driller_wrk This is probably a stupid question but let's assume I have a emeded item in a stash called "item_embeded", the embeded item is this: http://pastebin.com/83JSpVbP <-- how would I go on in displaying this in a template? <%= $item_embeded %> only displays the code but not the actual video
09:43 sromanov joined #mojo
09:44 driller_wrk when I put the code above directly into the template it works just fine; but if I output it from the stash it doesn't do the trick :-)
09:56 driller_wrk Got it, <%== did the magic!
09:56 henq joined #mojo
10:09 preflex_ joined #mojo
10:32 judofyr joined #mojo
10:35 sri oh exciting, the ietf-16 WebSocket spec has been published, which will be automatically accepted as a new RFC
10:46 perlrocks Twitter: "WAF: Mojolicious template engine: Text:: Xslate ORM: a skeleton made of Teng. Only be implemented after Gorigori!" (ja) --nao666hk http://twitter.com/nao666hk​/status/118637600251711488
10:53 amoore joined #mojo
11:02 shonorio joined #mojo
11:06 noganex_ joined #mojo
11:17 spleenjack joined #mojo
11:29 mohan joined #mojo
11:37 judofyr joined #mojo
11:40 marcus OH HAI
11:43 sri damn, alphas is better than heroes ever was
11:46 sri who would have thought that syfy could produce something that wasn't total garbage
11:54 perlrocks Twitter: "And all, and had difficulty Mojolicious update without thinking." (ja) --hisaichi5518 http://twitter.com/hisaichi55​18/status/118654850161586177
12:08 mohan_ joined #mojo
12:14 perlrocks Twitter: "Mojo:: JSON and UTF8 problem. - Mojolicious | Google Groups http://t.co/zipTVTab" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/118659664555675648
12:25 perlrocks Twitter: "@kraih What's blocking you, since non-blocking IO is there? http://t.co/7NrOYftF #mojolicious #perl6" --tsosnierz http://twitter.com/tsosnier​z/status/118662481269886976
12:28 * crab tries to figure out wtf that is a response to
12:35 marcus perl6 port
12:36 henq joined #mojo
12:37 marcus having nonblocking io in perl6 is great news tho
12:41 sri crab: it was a conversation about mojolicious being designed to be ported to perl6 at some point
12:42 sri one of the main motivations for trying few dependencies was the possibility of a perl6 port
13:10 preflex_ joined #mojo
13:10 hide joined #mojo
14:08 koban left #mojo
14:11 sri haha, the latest perl release is still on the hackernews frontpage
14:12 sri has been like since yesterday
14:24 KayT3 joined #mojo
14:33 ispy_ joined #mojo
14:38 henq joined #mojo
14:40 mojobot51156 joined #mojo
14:40 ispy_ joined #mojo
14:40 sri hmm
14:40 sri i thin i have a new hack of the day :)
14:40 sri s/thin/think/
14:41 sri gonna combine the irc example with the eventsource one from a few weeks ago
14:43 mojobot51159 joined #mojo
14:43 sri that will also cover AnyEvent
14:45 mojobot51162 joined #mojo
14:47 mojobot51166 joined #mojo
14:48 mojobot51169 joined #mojo
14:48 mojobot51172 joined #mojo
14:48 mojobot51170 joined #mojo
14:48 sri lol
14:48 sri this is a bit crazy
14:48 sri it even works in hypnotoad
14:49 mojobot51177 joined #mojo
14:50 sri maybe not the best idea
14:51 mojobot51178 joined #mojo
14:51 mojobot51179 joined #mojo
14:52 MojoGuest464 joined #mojo
14:52 MojoGuest464 From: http://www.google.pl/url?sa=t&amp;source=web&amp;​cd=4&amp;ved=0CDcQFjAD&amp;url=http%3A%2F%2Fdev.x​antus.org%2F&amp;rct=j&amp;q=html5%20irc&amp;ei=B​-OBTsukEuHW0QWV-rzQAQ&amp;usg=AFQjCNGw6nZv0wO42uz​UnHhWcD0vcKNULg&amp;sig2=4QalOebS1TCb6D-wpGjeuQ (1 hits)
14:54 amoore joined #mojo
14:54 arthas joined #mojo
14:57 abra joined #mojo
15:09 mojobot51209 joined #mojo
15:09 * sri nods
15:10 sri nice example
15:10 sri but i'll wait until tomorrow
15:18 ispy_ joined #mojo
15:46 Eugene joined #mojo
15:51 sri ops, published already
15:55 perlrocks Twitter: "#mojolicious hack of the day: #anyevent. http://t.co/jjrLMZYk #perl" --kraih http://twitter.com/kraih/status/118715487059312640
15:56 perlrocks Twitter: "Mojolicious hack of the day: AnyEvent - Sebastian Riedel about Perl and the Web http://t.co/fGPMNzy0" --punytan http://twitter.com/punytan​/status/118715691019939840
15:58 driller_wrk that's cool :)
16:15 noganex joined #mojo
16:31 ispy_ joined #mojo
16:33 grim_fandango joined #mojo
16:48 perlrocks Twitter: "Sebastian Riedel (sri): Mojolicious hack of the day: AnyEvent http://t.co/BrEXBGiE" --perlironman http://twitter.com/perlironm​an/status/118728809557135360
16:57 noganex_ joined #mojo
17:02 tempire sri: yes, the problem was solved by the commit
17:03 sri \o/
17:03 tempire I have a relevant test case for my application
17:03 tempire but it relies on the 15s timeout, which is lame.
17:03 sri i was thinking a t/mojo/message.t test case
17:04 tempire I tried changing the timeout for $t->ua->ioloop, but it doesn't have any affect
17:04 sri that's all not relevant
17:04 sri it was leftover data in the buffer
17:04 sri since parser and generator shared one buffer
17:06 sri the leftover data was then picked up by the parser again, which resulted in even more requests
17:06 sri it's the code that handles http pipelining
17:08 sri hmm
17:08 sri now that i talk about it… i know how to test it
17:08 sri tempire: thanks :)
17:10 Eugene joined #mojo
17:15 tempire :)
17:15 tempire it was a massive help having it fixed, I really appreciate it
17:18 GitHub109 joined #mojo
17:18 GitHub109 [mojo] kraih pushed 1 new commit to master: http://git.io/KSmTHA
17:18 GitHub109 [mojo/master] added message roundtrip tests - Sebastian Riedel
17:18 GitHub109 left #mojo
17:21 sri glad i could help, still no guarantees that it will always work though
17:21 sri it should work for most cases though
17:24 tempire it's fine, I'm only prototyping.
17:27 sri yay, https://github.com/arpadszasz/mojo-server-fastcgi
17:29 tempire anyone else having trouble building EV on lion?
17:29 andrefs joined #mojo
17:29 sri you need to patch it
17:30 sri lions gcc has an optimization bug that breaks libev
17:31 tempire patch EV or libev?
17:31 sri http://lists.schmorp.de/piper​mail/libev/2011q3/001485.html
17:31 sri http://lists.schmorp.de/piper​mail/libev/2011q3/001487.html
17:32 sri EV contains libev
17:36 tempire I hate patch.
17:36 tempire I always have problems with it.
17:38 sri i somehow want to add $self->write_event(msg => 'hi there!')
17:38 judofyr joined #mojo
17:38 sri for EventSource
17:39 sri but to test it i would have to come up with a Test::Mojo api too :S
17:40 mojobot84714 joined #mojo
17:40 sri oh noes
17:44 sri hmm, maybe someone will make a Mojolicious::Plugin::EventSource *hint hint*
17:47 crab is eventsource actually useful now?
17:47 tempire it's supported by all the browsers except for you know who
17:52 mojobot30261 joined #mojo
17:53 marcus joined #mojo
17:54 GitHub47 joined #mojo
17:54 GitHub47 [mojo] kraih pushed 1 new commit to master: http://git.io/oVZ4Ug
17:54 GitHub47 [mojo/master] show how the connection timeout can be increased for long polling - Sebastian Riedel
17:54 GitHub47 left #mojo
17:57 GitHub85 joined #mojo
17:57 GitHub85 [mojo] kraih pushed 1 new commit to master: http://git.io/Zoo17g
17:57 GitHub85 [mojo/master] mention default connection timeout - Sebastian Riedel
17:57 GitHub85 left #mojo
17:59 Foxcool joined #mojo
17:59 mojobot30585 joined #mojo
18:00 sri more watchers :)
18:01 mateu sri++ # nice AnyEvent example
18:01 sri I'M IN UR BROWSERS STEALIN UR EVENTS!
18:03 mateu hmm, I got one line to show up in my browser but no more.
18:03 sri timeout
18:03 sri default is very low
18:03 sri see my commit above :)
18:03 mateu ah, ok.
18:07 tempire Seems like I should be able to run subs whenever streamed data is received with useragent
18:07 sri the pure AnyEvent backend is still up for adoption btw. https://gist.github.com/1239684
18:16 tempire can I force a connection closed after $self->render_later?
18:18 sri like in a callback?
18:19 sri render_later is quite dumb and only disables auto rendering
18:19 sri you can always just render an empty string or so
18:20 bpaluch joined #mojo
18:21 sri but i think you want $c->finish
18:21 marty joined #mojo
18:21 sri http://mojolicio.us/perldoc/M​ojolicious/Controller#finish
18:22 sri it's like a final write
18:24 tempire yes, completely missed that
18:32 perlrocks Twitter: "@kraih nice I will give it a try. (Trying to replace my POE bot). If time permits. #mojolicious" --ttyS1 http://twitter.com/ttyS1/status/118754968592318464
18:36 tempire Using http://mojolicio.us/perldoc/Mojolicio​us/Guides/Cookbook#Streaming_response in combination with the event source example…I'm expecting the $tx->res->body(sub { print $_[1] }); to run every time data is received.
18:38 tempire or more simply, I'm doing this: http://pastie.org/2601317
18:39 tempire and expecting the $tx->res->body( sub { print $_[1] } ); to run every time data is received from the server, but it only runs when the stream is finished.
18:40 tempire tried setting the transfer-encoding and content-transfer-encoding headers to chunked
18:41 tempire maybe there's a specific syntax to sending chunked data
18:46 sri tempire: of course there is
18:46 sri write_chunk
18:46 sri it's also very well documented
18:46 * sri cracks the whip
18:47 sri wait
18:47 sri for the user agent you mean
18:47 sri the callback should run whenever data arrives
18:47 sri if it doesn't then you're doing something wrong
18:48 sri prolly buffering or blocking on the server side
18:48 sri which prevents writing of chunks
18:57 bpaluch joined #mojo
19:12 tempire oooOOOOoooo
19:12 tempire I was definitely blocking
19:30 sri don't do that :)
19:31 sri if you want to make sure a chunk has been written you can also only rely on the drain callbacks
19:36 sromanov joined #mojo
19:55 mojobot29134 joined #mojo
20:04 mk left #mojo
20:11 smpb joined #mojo
20:17 andrefs joined #mojo
20:17 mattastrophe joined #mojo
20:43 Shaeto joined #mojo
20:44 perlrocks Twitter: "Mojo::Server::FastCGI is up on CPAN! Thanks @kraih for Your support! http://t.co/MUwheXws Please file bugs on Github. #mojolicious #perl" --arpadszasz http://twitter.com/arpadszas​z/status/118788089534627840
20:48 Shaeto mb someone known what changed 1.97->1.98 for remote_address for proxed hypnotoad. worked in 1.97 fine and do not work now in 1.98.
20:49 Shaeto see 127.0.0.1 now for $self->tx->remote_address
20:51 MojoGuest779 joined #mojo
20:52 MojoGuest264 joined #mojo
20:52 MojoGuest264 From: http://www.networkedblogs.com/33Knp (1 hits)
20:53 MojoGuest336 joined #mojo
20:53 MojoGuest336 From: http://www.networkedblogs.com/33Knp (2 hits)
20:54 grim_fandango joined #mojo
20:58 sri Shaeto: quite sure nothing changed
21:01 Shaeto thanks, will check own stuff
21:17 Shaeto ehh, thats problem with session and server with bad time, seems cookie expires right after creation. can I use session->max_age instead of ->expires ?
21:25 Shaeto seems max_age isn't accessible for session object directly
21:34 MojoGuest772 joined #mojo
21:34 MojoGuest772 From: http://www.networkedblogs.com/33Knp (3 hits)
21:47 MojoGuest441 joined #mojo
21:47 MojoGuest441 From: http://www.networkedblogs.com/33Knp (5 hits)
21:48 MojoGuest271 joined #mojo
21:48 MojoGuest271 From: http://www.networkedblogs.com/33Knp (7 hits)
21:58 elb0w` joined #mojo
21:58 Shaeto left #mojo
22:27 Kulag joined #mojo
23:11 hu-metaperl joined #mojo
23:41 mojobot19794 joined #mojo
23:53 metaperl joined #mojo

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