Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-19

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

All times shown according to UTC.

Time Nick Message
00:05 sri crab: how would you solve it? :)
00:06 good_news_everyone joined #mojo
00:06 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/_vrelQ
00:06 good_news_everyone [mojo/master] Mojo::Template documentation tweaks - Sebastian Riedel
00:06 good_news_everyone left #mojo
00:07 sri only other solution i have is a split into _escape() and escape()
00:07 sri and escape() and be redefined
00:07 sri s/and/can/
00:19 sri lines of code are actually the same for both solutions http://pastie.org/5081591
00:20 sri for this one you use the prepend attribute to redefine escape()
00:21 marcus joined #mojo
00:23 GabrielVieira joined #mojo
00:26 sri http://pastie.org/5081617 # with a few more tweaks
00:28 sri should everyone stay neutral on those two solutions i think i may keep both out of core
00:32 mandreacchio_ joined #mojo
00:53 good_news_everyone joined #mojo
00:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/SNaW_g
00:53 good_news_everyone [mojo/master] replaced escape attribute in Mojo::Template with escape function that can be redefined - Sebastian Riedel
00:53 good_news_everyone left #mojo
00:54 sri ok, lets try the second solution
00:54 * sri pokes tempire, marcus and crab again
01:01 sri this one has some awkward side effects though
01:01 sri perl -Mojo -E 'helper escape => sub { shift; reverse shift }; a({inline => q{%= "<html>"}})->start' get /
01:01 sri you can change escaping by defining a helper named escape
01:11 laouji joined #mojo
01:32 xaka joined #mojo
01:34 d4rkie joined #mojo
02:42 noganex_ joined #mojo
02:52 mandreacchio joined #mojo
03:18 mandreacchio joined #mojo
04:18 Foxcool joined #mojo
04:27 mandreacchio joined #mojo
04:51 yakudza joined #mojo
05:00 mandreacchio joined #mojo
05:03 mandreacchio joined #mojo
05:15 mandreacchio joined #mojo
05:15 kevouze joined #mojo
05:22 abra joined #mojo
05:36 mandreacchio joined #mojo
05:42 laouji joined #mojo
05:46 sh4 joined #mojo
05:49 Vandal joined #mojo
06:01 dpetrov_ joined #mojo
06:20 ovnimancer joined #mojo
06:25 fhelmber_ joined #mojo
06:26 mandreacchio joined #mojo
06:42 kevouze joined #mojo
06:46 kevouze joined #mojo
06:57 michaelfung joined #mojo
07:00 spleenjack joined #mojo
07:11 d4rkie joined #mojo
07:18 Mike-PerlRecruiter_ joined #mojo
07:26 davido joined #mojo
07:34 davido Would mechanize-type features be more appropriate in Test::Mojo, or in a Mojo::UA::Mech type of place?
07:51 rhaen_ithreads joined #mojo
07:52 edoardo nicomen: hei! solved with  my $config = $self->app->plugin('json_config');
07:53 yakudza joined #mojo
08:21 pau4o joined #mojo
08:51 daxim joined #mojo
08:53 scrooby Is there a way to control the chunk size in Mojo::IOLoop::Stream?
09:10 dvinciguerra joined #mojo
09:40 Vandal joined #mojo
09:44 Britzel joined #mojo
09:46 mandreacchio joined #mojo
09:52 Foxcool joined #mojo
09:59 nicomen edoardo: ah lol
10:14 Vandal joined #mojo
10:17 ladnaV joined #mojo
10:24 Vandal joined #mojo
10:25 Lucas1 joined #mojo
10:28 Vandal joined #mojo
10:30 abra joined #mojo
10:37 ObseLeTe joined #mojo
11:01 ObseLeTe joined #mojo
11:02 vishwanathms joined #mojo
11:02 vishwanathms_ joined #mojo
11:08 scrooby Is there a way to control the chunk size in Mojo::IOLoop::Stream?
11:58 ObseLeTe_ joined #mojo
12:05 SmokeMachine joined #mojo
12:30 trone my $sr = $r->get('/some/:id')->parse(id => qr/\d+/)->to( controller => 'some' ); is equal to $r->route('/some/:id', id => qr/\d+/)->via('GET')->to( controller => 'some' ); ?
12:31 ObseLeTe joined #mojo
12:59 vishwanathms joined #mojo
12:59 vishwanathms_ joined #mojo
13:00 GabrielVieira joined #mojo
13:03 preflex joined #mojo
13:43 basic6 joined #mojo
13:46 basic6 i have a few controllers in a mojo app and every one of those has a couple of methods (there are routes to those methods in the main module) - however every single method (actually every layout) uses a few variables which are always identical (no matter what route).
13:47 basic6 defining the variables in every method is alot of duplicate code, whats a good way (or wheres a good place) to define them globally?
13:51 crab basic6: a bridge
13:51 purl a bridge is, like, EVERYBODY PANIC! or complicated
13:52 crab trone: yes
13:53 trone crab: thx. About basic6 question: the bridge allow to bring forward the stash?
13:54 trone I believe to made some helper in past to bring data through controllers...
13:56 basic6 i already have a bridge (for another purpose) but i can't find a stash in there
13:57 basic6 i'm sure im looking at the wrong place
13:58 GabrielVieira is there any plugin to minify html output?
14:02 basic6 is there something like nested routes?
14:12 memowe It's not that hard to find nested routes for Mojolicious via google. :)
14:14 inokenty joined #mojo
14:23 marcus hey
14:23 nic hey
14:24 nic we're
14:24 nic the
14:24 sri hey
14:24 nic monkeys
14:24 nic damn
14:27 gryphon joined #mojo
14:30 * sri is still waiting for feedback on this patch https://github.com/kraih/mojo/commit/84​fea69bd9d443518c4742f14252f3f830864eb2
14:30 sri and its unfortunate side effect
14:30 sri perl -Mojo -E 'helper escape => sub { shift; reverse shift }; a({inline => q{%= "<html>"}})->start' get /
14:30 sh4 joined #mojo
14:36 marcus ok, fuck it, yurufukurou isn't as good as I remember, and 20$ isn't really that much.
14:36 mauriez Uff.. still fighting with deploy to Heroku.. are there known problems with Mojo under perlbrewed p5.16.0 ?
14:36 marcus unfortunate side effect is unfortunate
14:37 ObseLeTe joined #mojo
14:38 sri jberger: sorry, but it doesn't look so good for this feature anymore
14:43 knshaum joined #mojo
14:44 labrown joined #mojo
14:50 ObseLeTe joined #mojo
14:51 good_news_everyone joined #mojo
14:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5G0Y3g
14:51 good_news_everyone [mojo/master] removed custom escape function support from Mojo::Template again - Sebastian Riedel
14:51 good_news_everyone left #mojo
14:59 ryozi joined #mojo
15:06 GabrielVieira joined #mojo
15:32 Foxcool joined #mojo
15:37 jnbek^dt joined #mojo
15:40 thaljef joined #mojo
15:41 thaljef1 joined #mojo
15:50 dbr joined #mojo
15:50 memowe_ joined #mojo
16:01 dpetrov_ joined #mojo
16:03 GabrielVieira joined #mojo
16:10 xaka joined #mojo
16:20 rwstaune` joined #mojo
16:23 sri marcus: i just hope twitter doesn't kill tweetbot now
16:41 bc547 joined #mojo
16:42 Lucas1 joined #mojo
17:01 thaljef joined #mojo
17:09 memowe sri: O HAI
17:24 sri \o
17:43 vervain joined #mojo
17:48 sri davido: Mojo::UA::Mech would work too, the problem is really blocking vs non-blocking
17:48 sri it's really hard to make a dsl when you have to keep non-blocking working
18:05 Adura Use cable.
18:12 davido joined #mojo
18:13 GabrielVieira joined #mojo
18:59 SmokeMachine joined #mojo
19:14 d4rkie joined #mojo
19:20 Mike-PerlRecruiter_ joined #mojo
19:23 duncanthrax hey guys, i've got a question on caching (using morbo w/ apache mod_proxy in this case) - when mojo says "Rendering cached template", does it have the template source cached, or the result? I'm getting stale pages here. From the DB log output, it seems some code only gets hit when I restart morbo before reloading the page.
19:23 Lucas11 joined #mojo
19:25 sri the compiled perl code for the template is cached
19:26 duncanthrax ok, but a re-run of that code should produce current results? then I must look elsewhere :)
19:26 sri correct
19:26 duncanthrax I'll go blame apache then. See if that helps.
19:37 sri we should keep an eye on this new whatwg spec http://www.whatwg.org/specs/web-app​s/current-work/multipage/urls.html
19:38 sri looks very pragmatic and close to Mojo::URL, likely a few good bits for us to steal
19:38 Lucas1 joined #mojo
19:44 GabrielVieira joined #mojo
19:44 SmokeMachine joined #mojo
19:48 rem_lex|pivo joined #mojo
20:14 xaka joined #mojo
20:21 jnap joined #mojo
20:26 * DaTa hugs sri for ->url_with
20:27 sri \o/
20:28 sri you might want to hug marcus, diegok and judofyr too though, they've done all the work
20:32 DaTa GROUP HUG!
20:32 purl Cannonball!
20:45 * diegok feeling computer love
21:00 thaljef joined #mojo
21:12 mandreacchio joined #mojo
21:14 GabrielVieira joined #mojo
21:25 perlite_ joined #mojo
21:43 rem_lex joined #mojo
22:15 Adurah joined #mojo
22:15 gryphon joined #mojo
22:24 tempire mauriez: I can't duplicate the problem you're having with heroku deploy.  Need more info from you if you want it fixed.
22:29 jzawodn joined #mojo
22:42 duncanthrax2 joined #mojo
22:42 thaljef1 joined #mojo
22:42 _xaka_ joined #mojo
22:42 mattp_ joined #mojo
22:42 dminus joined #mojo
22:58 mandreacchio joined #mojo
23:04 mandreacchio joined #mojo
23:08 SmokeMachine joined #mojo
23:08 Adurah_ joined #mojo
23:09 duncanthrax joined #mojo
23:09 gryphon_ joined #mojo
23:53 SmokeMachine joined #mojo

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