Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-04

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

All times shown according to UTC.

Time Nick Message
00:51 jnbek joined #mojo
01:05 laouji joined #mojo
01:07 mandreacchio joined #mojo
01:35 xaka joined #mojo
01:49 mandreacchio joined #mojo
02:17 macae joined #mojo
02:24 noganex_ joined #mojo
02:33 crab marcus: yes. what's up?
02:37 mandreacchio joined #mojo
03:11 mandreacchio joined #mojo
03:17 arthas joined #mojo
03:43 bryanl joined #mojo
03:43 Foxcool_ joined #mojo
03:45 bryanl left #mojo
04:00 buu joined #mojo
04:02 mandreacchio joined #mojo
04:03 Averna joined #mojo
04:37 mandreacchio joined #mojo
05:08 mandreacchio joined #mojo
05:10 laouji joined #mojo
05:15 ovnimancer joined #mojo
05:18 davido joined #mojo
05:29 d4rkie joined #mojo
05:34 AmeliePoulain joined #mojo
05:40 Britzel_ joined #mojo
05:57 mandreacchio joined #mojo
06:18 davido joined #mojo
06:43 Vandal joined #mojo
06:49 spleenjack joined #mojo
07:10 mandreacchio_ joined #mojo
07:22 tomi-ru joined #mojo
07:26 tomi-ru joined #mojo
07:35 tomi-ru joined #mojo
07:45 pau4o joined #mojo
07:50 tomi-ru joined #mojo
07:52 davido joined #mojo
07:54 judofyr joined #mojo
07:59 cosmincx joined #mojo
08:00 fhelmber_ joined #mojo
08:29 Ulti with the select_field helper is there a way to set multiple?
08:32 Ulti its ok I used the sauce ;)
08:33 Ulti I think that might be a hole in the docs though...
08:34 Ulti http://mojolicio.us/perldoc/Mojolic​ious/Plugin/TagHelpers#select_field   needs an extra example showing something like   %= select_field country => [[Germany => 'de'], 'en'], multiple='multiple';
08:34 DaTa joined #mojo
08:47 andrefs joined #mojo
08:50 davido Is this a reasonable means of upgrading Mojo::JSON to Mojo::JSON::XS with a graceful fallback to Mojo::JSON in the event that the XS upgrade isn't available?  https://gist.github.com/3832318
08:52 crab "no thanks"?
08:52 purl "no thanks" is not a sensible answer to "I hate you"
08:52 davido See 'thanks' on CPAN.
08:54 davido Evil trickery, but useful.
08:55 davido :) Certainly couldn't do that in C++.
09:09 andrefs joined #mojo
09:23 judofyr davido: there's Mojo::JSON::Any
09:24 dross joined #mojo
09:54 daxim joined #mojo
10:15 kitt_vl joined #mojo
10:56 jwang joined #mojo
11:11 Foxcool__ joined #mojo
11:11 Lucas1 joined #mojo
11:24 jwang_ joined #mojo
11:51 d4rkie joined #mojo
12:09 ovnimancer joined #mojo
12:16 ObseLeTe joined #mojo
12:56 ObseLeTe_ joined #mojo
13:24 Coff joined #mojo
13:41 jnap joined #mojo
13:52 sh4 joined #mojo
13:54 sh6 joined #mojo
13:57 gryphon joined #mojo
14:10 Jason_ joined #mojo
14:13 Leandr joined #mojo
14:17 andrefs joined #mojo
14:27 nicomen can I get a mojo app to spit out 500 errors to STDERR specially when running tests?
14:28 judofyr nicomen: remove the log/ directory (I think)
14:32 nicomen nope
14:33 knshaum joined #mojo
15:03 nicomen is there some way I can inherit the default /usr/local/share/perl/5.10.1/Mojolicious​/templates/exception.development.html.ep so that I can just add a small thing to it?
15:03 nicomen (without copying the file)
15:14 inokenty joined #mojo
15:14 labrown joined #mojo
15:16 crab not really
15:20 nicomen ok, copied it and added <% warn $exception %> at the end to get the error in STDERR when testing, and when running the server from command line...
15:21 nicomen <% warn $exception; %> or else it just ended up empty
15:24 Foxcool joined #mojo
15:27 davido joined #mojo
15:28 Adurah What's the cleanest way of unloading a helper? where unload would mean disconnecting from a DB or something.
15:40 pau4o left #mojo
15:47 keedi how can i use 'has' which provided by Mojo::Base for Mojolicious::Lite app? can I see document or example?
15:48 rem_lex| joined #mojo
15:48 Kwa joined #mojo
15:56 Coff joined #mojo
15:57 dross joined #mojo
15:58 bluescreen joined #mojo
16:05 xaka joined #mojo
16:22 marcus keedi: has is for accessors, and your lite app runs in the main namespace, you could use it for objects you define tho. you probably want a helper
16:27 keedi marcus: yes I'm already using helper for various methods. I want to use attr 'db' like database connector. but it's not easy in lite app. right?
16:38 davido_ joined #mojo
16:38 keedi marcus: I just wondering how to use the 'has' in lite app. as you said, using "helper" will be able to handle almost everything. thx. :)
16:39 davido_ judofyr: From what I understand, Mojo::JSON::Any sets things up such that when I invoke my $j = Mojo::JSON::Any->new() I get either XS or the fall-back.  But I was looking to actually replace calls to Mojo::JSON->new() with the XS-ish behavior, which I believe the gist I linked does.
16:45 marcus keedi: just do my $db
16:47 Coff joined #mojo
17:12 fhelmbe__ joined #mojo
17:14 fhelmber_ joined #mojo
17:34 fhelmbe__ joined #mojo
17:55 keedi marcus: I see. thx :)
18:17 Lucas1 joined #mojo
18:37 abra joined #mojo
18:41 batman i want to make a route match either a condition or a /prefix. is that possible? like either /api/bar or host = api.foo.com/bar
18:45 fhelmber_ joined #mojo
18:46 batman i guess i could do it in a before_dispatch hook...
19:11 Ulti if I have some input fields with  name="some_group[]"  how is this put into $self->param?
19:13 Ulti ok so I was being kind of dense, just by the literal name some_group[] rather than some_group
19:13 Ulti ;3
19:15 marcus Ulti: yeah, we don't do rails magic.
19:16 Ulti its fine, I much prefer that it makes it obvious an array ref is coming out of param
19:21 ObseLeTe joined #mojo
20:04 xaka joined #mojo
20:08 perlite_ joined #mojo
20:08 keedi client uses jQuery.post method. and mojolicious's respond_to( json => '' ) doesn't works and it returns default behaviour 204 no content. so I have to use 'any' for response. do I missing something?
20:29 Britzel joined #mojo
20:36 Mad_Dud joined #mojo
20:55 keedi sorry it's just jQuery's post(, and ajax) method's accept header problem.
21:10 iskorptix_ joined #mojo
21:18 kitt_vl joined #mojo
21:29 lukep joined #mojo
21:33 lukep joined #mojo
21:33 ObseLeTe joined #mojo
21:43 dross joined #mojo
21:46 ObseLeTe joined #mojo
22:13 jnap joined #mojo
22:15 jzawodn joined #mojo
22:23 jnap_ joined #mojo
22:34 Mike-PerlRecruiter joined #mojo
22:41 motoboi joined #mojo
22:42 davido joined #mojo
22:45 jnap joined #mojo
22:49 davido__ joined #mojo
22:53 Mike-PerlRecruiter2 joined #mojo
22:58 motoboi joined #mojo
23:04 davido__ joined #mojo
23:06 jnap joined #mojo
23:12 GabrielVieira joined #mojo
23:16 mandreacchio joined #mojo
23:25 macae joined #mojo
23:30 mandreacchio_ joined #mojo
23:40 Adura joined #mojo
23:44 Mike-PerlRecruiter joined #mojo

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