Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-15

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

All times shown according to UTC.

Time Nick Message
00:46 jms joined #mojo
01:13 jnap joined #mojo
02:12 mire joined #mojo
02:42 SmokeMachine joined #mojo
03:16 mire joined #mojo
03:27 xaka joined #mojo
03:52 JerJer joined #mojo
04:18 JerJer1 joined #mojo
04:26 l3l1p joined #mojo
04:34 jmmills joined #mojo
04:47 Liam joined #mojo
05:53 SmokeMachine joined #mojo
05:54 mattastrophe joined #mojo
06:02 asarch joined #mojo
06:38 Htbaa joined #mojo
07:19 perlite joined #mojo
08:11 eamonnw joined #mojo
08:13 Htbaa1 joined #mojo
08:16 Htbaa2 joined #mojo
08:34 inokenty joined #mojo
08:38 memowe \o/
08:48 sri \o/
09:03 Vandal joined #mojo
09:13 inokenty sri: Hi. Can you help me with this http://pastebin.com/exL4NQkp ?
09:14 inokenty User Agent blocks the application
09:14 inokenty And I have no idea how to avoid this
09:17 inokenty I just want to insert in my template some little blocks (or bricks). They are have separate namespaces like Blocks::menu, Blocks:gallery, Blocks::whatever
09:27 sven^ joined #mojo
09:40 sri inokenty: you should read up on blocking vs non-blocking in mojolicious
09:41 sri because you're using the *blocking* syntax
09:41 marcus london bridge is falling down falling down
09:41 sri marcus: would allowing my $no_format_detection = $r->route(format => 0); make a difference?
09:42 marcus sri: yeah, I think that makes it better.
09:42 inokenty sri: Yes, but if I use callback in second argument, I cannot return a value from sub go
09:42 sri inokenty: welcome to the wonderful world of non-blocking!
09:43 inokenty In hypnotoad all works fine because of fork
09:43 sri OMG
09:43 sri where is purl?
09:44 sri inokenty: that's an illusion, other conurrent requests inside the same worker will be blocked too
09:44 azawawi joined #mojo
09:44 sri you would have to configure hypnotoad to handle only one request per worker
09:51 inokenty Hmm.. I think $self->render_later can help me somehow
09:52 sri no
09:52 sri there is no magic that will make it work
09:53 sri you would need coroutines/fibers/threads to make non-blocking code look blocking
09:53 marcus hurk
09:53 marcus purl is online, but not here?
09:53 sri :,(
09:54 marcus she's even in #iusethis :o
09:54 sri she doesn't love us anymore?
09:55 fibo joined #mojo
10:02 azawawi hi
10:20 fibo hi
10:21 fibo there was a feateure in Mojo, setting MOJO_MODE=foo I remember I could have a template.foo.html.ep, right?
10:38 sri never was
10:39 GitHub77 joined #mojo
10:39 GitHub77 [mojo] kraih pushed 1 new commit to master: http://git.io/W1lH6Q
10:39 GitHub77 [mojo/master] improved router to allow disabled format detection to be inheritable by nested routes - Sebastian Riedel
10:39 GitHub77 left #mojo
10:40 sri this could be the solution to the format detection issue
10:40 sri big advantage is that it's 100% backwards compatible
10:41 sri for lite apps it would look like "under [format => 0];"
10:43 sri i'm not entirely sure yet
10:43 sri app->routes->format_detection(0) would have also been an option
10:44 sri but there are serious side effects if a plugin adds routes
10:45 sri https://github.com/kraih/mojo/commit/90077​c7fa194eba3ee6ccebb6938e82df163ac98#L1R420
10:45 sri examples
10:46 sri tempire, marcus, crab: i would very much appreciate feedback
10:46 sri actually, i would appreciate feedback from anyone :)
10:54 GitHub93 joined #mojo
10:54 GitHub93 [mojo] kraih pushed 1 new commit to master: http://git.io/azBdqA
10:54 GitHub93 [mojo/master] more format detection tests - Sebastian Riedel
10:54 GitHub93 left #mojo
11:03 GitHub132 joined #mojo
11:03 GitHub132 [mojo] kraih pushed 1 new commit to master: http://git.io/FTa2OQ
11:03 GitHub132 [mojo/master] tweaked format detection recipe - Sebastian Riedel
11:03 GitHub132 left #mojo
11:16 sri https://github.com/kraih/mojo/commit/85d94​873dc13cc8b3b17f9fddee442d662b96cd5#L0R180
11:16 sri best example i guess
11:29 GitHub51 joined #mojo
11:29 GitHub51 [mojo] kraih pushed 1 new commit to master: http://git.io/n8oReA
11:29 GitHub51 [mojo/master] even more format detection tests - Sebastian Riedel
11:29 GitHub51 left #mojo
11:32 sri hmm
11:33 sri maybe it would be more consistent if we allow the format constraint to be always inheritable
11:33 sri as in "under [format => [qw/txt html/];"
11:34 sri on the other hand, that might get messy
11:57 d4rkie joined #mojo
12:37 sri as usual, if there's no feedback it will be gone again ;)
13:03 inokenty That's how I've lost before_render hook =)
13:04 sri exactly
13:10 inokenty sri: Maybe Mojo::IOLoop->delay can help me with my previous issue? Or should I find another way?
13:11 inokenty I want to create a simple cms with ability to insert blocks in template
13:38 snailfromhu joined #mojo
13:39 snailfromhu hey guys
13:42 snailfromhu in a mojolicious::lite app i'm using the attr method to connect to the db in order to be able to connect to the db when a request comes in and not on app startup
13:42 snailfromhu this way when using hypnotoad all the processess can have their own db connection
13:43 snailfromhu my question is if there is a way to run something right after hypnotoad has forked
13:44 snailfromhu right now i'm doing a pretty lame 'my $db = $_[0]->app->db;' in the before_dispatch hook in order to have a db connection established
14:17 mattastrophe joined #mojo
14:34 inokenty Did anyone ever use the Bitrix CMS?
14:35 inokenty I mean 1C Bitrix
14:36 asarch joined #mojo
14:48 preflex_ joined #mojo
14:53 sri snailfromhu: Mojo::IOLoop->timer(0 => sub {...}) should work
15:00 Foxcool__ joined #mojo
15:13 snailfromhu sri: thanks, it works pretty well
15:13 Htbaa joined #mojo
15:39 Htbaa joined #mojo
15:42 mattastrophe joined #mojo
15:51 GitHub185 joined #mojo
15:51 GitHub185 [mojo] kraih pushed 1 new commit to master: http://git.io/60Jq6Q
15:51 GitHub185 [mojo/master] another format detection example - Sebastian Riedel
15:51 GitHub185 left #mojo
15:52 sri hmm
15:52 sri i'm still not sure if it might be too ugly
15:53 Psyche^ joined #mojo
16:04 GitHub137 joined #mojo
16:04 GitHub137 [mojo] kraih pushed 1 new commit to master: http://git.io/R34uOw
16:04 GitHub137 [mojo/master] make format detection examples more diverse - Sebastian Riedel
16:04 GitHub137 left #mojo
16:07 marcus sri: after playing a bit more, I like it.
16:08 sri hmmmmm
16:12 sri marcus++
16:12 sri but i can't help but think that i'm missing something
16:29 l3l1p joined #mojo
16:34 GitHub75 joined #mojo
16:34 GitHub75 [mojo] kraih pushed 1 new commit to master: http://git.io/uBQ3GA
16:34 GitHub75 [mojo/master] small documentation tweaks - Sebastian Riedel
16:34 GitHub75 left #mojo
16:52 snailfromhu is there a way to override the default timestamp format of the logfile?
17:04 l3l1p joined #mojo
17:07 tempire tried under format 0
17:07 tempire seems reasonable
17:08 tempire I don't have a strong opinion about it, 'cause I've not seen the previous functionality as a problem
17:08 tempire but the added functionality is simple and easy to use
17:17 GitHub97 joined #mojo
17:17 GitHub97 [mojo] kraih pushed 2 new commits to master: http://git.io/238H4Q
17:17 GitHub97 [mojo/master] fixed waypoint format detection bug - Sebastian Riedel
17:17 GitHub97 [mojo/master] more waypoint tests - Sebastian Riedel
17:17 GitHub97 left #mojo
17:18 sri that's what i was missing... waypoint semantics were off :)
17:21 sri interesting
17:22 sri performance went up a little, 20rps for hello.pl
17:25 sri tempire: ideally it might prevent the routes redesign, that's why i'm trying
17:29 sri tempire: i mostly share your views btw., it does not at all look alien to you?
17:30 tempire it looks sensible.  I saw the tests and it was immediately apparent how it worked.
17:30 tempire in fact, I had to test it out in a 5 line lite app to make sure it didn't work that way before :)
17:31 sri :)
17:31 sri perhaps the 4.0 change might be to make this the default and allow format => 1 to be inherited :o
17:33 sri i'm fine with the functionality too now, just a little worried that it might not look pleasant enough
17:41 diegok oh!, second ruby friend asking for mojolicious and fw to mojocast this week :)
17:41 sri \o/
17:41 tempire \o\
17:42 sri /o/
17:42 memowe \o             /
17:42 memowe what!?
17:42 diegok :)
17:42 inokenty /o\
17:42 * sri repairs memowe
17:43 memowe \oF
17:43 memowe Thanks!
17:43 sri \o/
17:43 memowe \oF
18:04 sri tempire: final question, do you think it belongs into the lite tutorial?
18:11 GitHub135 joined #mojo
18:11 GitHub135 [mojo] kraih pushed 1 new commit to master: http://git.io/1PuOXw
18:11 GitHub135 [mojo/master] fixed another format detection bug - Sebastian Riedel
18:11 GitHub135 left #mojo
18:25 GitHub125 joined #mojo
18:25 GitHub125 [mojo] kraih pushed 1 new commit to master: http://git.io/_zJxcQ
18:25 GitHub125 [mojo/master] tweaked format detection examples - Sebastian Riedel
18:25 GitHub125 left #mojo
18:25 GitHub0 joined #mojo
18:25 GitHub0 [mojo] kraih pushed 1 new commit to master: http://git.io/VQs_yw
18:25 GitHub0 [mojo/master] better pattern descriptions - Sebastian Riedel
18:25 GitHub0 left #mojo
18:26 tempire it's already in there, isn't it?
18:26 sri yes
18:26 sri under Formats
18:26 tempire yeah, looking at it now.
18:26 tempire again, if I didn't know better, I would have thought it's always been there.
18:27 tempire so yes
18:27 sri ok :)
18:27 sri phew
18:27 xaka joined #mojo
18:27 sri that was *a lot* of bug fixing today
18:28 sri if anyone feels like uploading a release, please just go ahead
18:41 GitHub172 joined #mojo
18:41 GitHub172 [mojo] kraih pushed 1 new commit to master: http://git.io/HP9k4g
18:41 GitHub172 [mojo/master] better format detection tests - Sebastian Riedel
18:41 GitHub172 left #mojo
18:45 GitHub166 joined #mojo
18:45 GitHub166 [mojo] kraih pushed 1 new commit to master: http://git.io/_azo9Q
18:45 GitHub166 [mojo/master] a few more format detection tests - Sebastian Riedel
18:45 GitHub166 left #mojo
18:51 sri sneaky tempire
19:05 GitHub163 joined #mojo
19:05 GitHub163 [mojo] kraih pushed 2 new commits to master: http://git.io/OiFQzA
19:05 GitHub163 [mojo/master] test tweaks - Sebastian Riedel
19:05 GitHub163 [mojo/master] more pattern tests - Sebastian Riedel
19:05 GitHub163 left #mojo
19:05 Leandr joined #mojo
19:17 eamonnw quit
19:24 SmokeMachine joined #mojo
19:33 tempire http://www.youtube.com/watch?v=​y9GCwNKCzzI&feature=related
19:52 baton8 joined #mojo
19:57 sri Oo
20:09 memowe \oF #2.81
20:23 snailfromhu joined #mojo
20:24 GitHub90 joined #mojo
20:24 GitHub90 [mojo] kraih pushed 1 new commit to master: http://git.io/WSXYHg
20:24 GitHub90 [mojo/master] improved Mojolicious::Routes::Pattern to render formats - Sebastian Riedel
20:24 GitHub90 left #mojo
20:28 batman left #mojo
20:30 GabrielVieira joined #mojo
20:30 jnap joined #mojo
21:01 GitHub51 joined #mojo
21:01 GitHub51 [mojo] kraih pushed 1 new commit to master: http://git.io/BG0wTw
21:01 GitHub51 [mojo/master] fixed small format rendering bug - Sebastian Riedel
21:01 GitHub51 left #mojo
21:07 jnap joined #mojo
21:20 perlite_ joined #mojo
21:26 eamonnw joined #mojo
21:45 lukep joined #mojo
23:03 GabrielVieira joined #mojo
23:50 mire joined #mojo

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