Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-28

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

All times shown according to UTC.

Time Nick Message
00:05 egopro joined #mojo
00:28 shmuel joined #mojo
01:04 libsysguy joined #mojo
01:04 libsysguy left #mojo
01:15 Molaf__ joined #mojo
01:58 d4rkie joined #mojo
02:04 russum joined #mojo
02:09 KindTwo joined #mojo
02:09 russum left #mojo
02:27 russum1 joined #mojo
02:27 russum1 left #mojo
02:54 russum joined #mojo
03:16 btyler joined #mojo
03:16 hesperaux__ joined #mojo
03:20 hesperaux joined #mojo
03:40 asarch joined #mojo
04:02 xaka joined #mojo
04:28 Psyche^ joined #mojo
04:46 tba joined #mojo
04:51 basiliscos joined #mojo
04:53 d4rkie joined #mojo
05:51 Britzel joined #mojo
05:57 Meiermann joined #mojo
06:25 basiliscos joined #mojo
06:44 preflex_ joined #mojo
07:17 dod joined #mojo
07:18 trone joined #mojo
07:23 rem_lex|pivo joined #mojo
07:30 egopro joined #mojo
07:31 Caldrin Hi!
07:33 Caldrin I build a REST API for my service using Mojolicious::Lite. One function is testrun-start which expects a list of tests to run. With a single test I can give the route as put 'testrun-start/host/:id/test/:name'
07:33 Caldrin How could I give the route to allow test/:name to match 1 or more times?
07:34 Caldrin as in https://service/api/testrun-star​t/host/:id/test/:name/test/:name <- I understand that this requires the second test and still does not allow three or more tests.
07:36 arpadszasz joined #mojo
07:43 jamesaxl joined #mojo
07:47 tba Caldrin: you can use a partial route, or a bridge and match with a regex
07:49 fhelmber_ joined #mojo
07:51 Caldrin I'll look at this, thanks
07:52 Vandal joined #mojo
07:53 yakudza joined #mojo
07:58 egopro joined #mojo
08:04 suy joined #mojo
08:20 dpetrov_ joined #mojo
08:21 jzawodn joined #mojo
08:26 nic Caldrin: one approach is to expect :name to be singular or plural (eg comma-separated)
08:32 Caldrin Hmm, I need to discuss this with the customer. I'm not sure whether I can outrule any possible separator to never be part of the test name.
08:41 jamesaxl joined #mojo
08:42 tholen42 joined #mojo
08:45 arthas joined #mojo
08:52 denisboyun_ joined #mojo
09:03 egopro joined #mojo
09:05 rem_lex joined #mojo
09:07 maxhq joined #mojo
09:09 D4RK-PH0ENiX joined #mojo
09:16 rem_lex|pivo joined #mojo
09:24 cosmincx joined #mojo
09:51 jamesw joined #mojo
09:55 ruz joined #mojo
10:02 denisboyun_ joined #mojo
10:03 yakudza joined #mojo
10:13 egopro joined #mojo
10:23 zekame joined #mojo
11:22 mire joined #mojo
11:27 denisboyun joined #mojo
11:34 libsysguy joined #mojo
12:00 Dandre joined #mojo
12:02 d4rkie joined #mojo
12:05 zekame Can i change default cookie name 'mojolicious' when use $self->session(...)(in Mojolicious::Controller)?
12:24 tianon joined #mojo
12:32 tba joined #mojo
12:35 btyler joined #mojo
12:36 cosmincx joined #mojo
12:46 mire joined #mojo
12:48 D4RK-PH0ENiX joined #mojo
12:57 gryphon joined #mojo
13:18 hide left #mojo
13:25 arpadszasz joined #mojo
13:31 btyler joined #mojo
13:50 jamesaxl joined #mojo
13:56 marty zekame:  I don't think you can using the built in sessions.   You can set you own cookies however.   Set cookie foo...   $self->cookie(foo => 'bar');     Get cookie foo... $self->cookie('foo');
14:17 denisboyun joined #mojo
14:35 mire joined #mojo
14:39 kwa zekame: In the startup() method, you can change the default cookie name from mojolicious to something else. Use $self->sessions->cookie_name('foo');
14:58 zekame kwa thanks!
14:58 kwa nps :)
15:19 d4rkie joined #mojo
15:26 sh4 joined #mojo
15:28 arpadszasz joined #mojo
15:29 bluescreen joined #mojo
15:34 abra joined #mojo
15:42 asarch joined #mojo
15:53 jamesaxl joined #mojo
16:03 bpmedley joined #mojo
16:50 zekame joined #mojo
16:52 mire joined #mojo
17:02 dod joined #mojo
17:17 denisboyun_ joined #mojo
17:31 yakudza joined #mojo
17:39 tianon joined #mojo
17:54 * sri just tried sublime text 3
17:54 sri perltidy with utf8 finally works
18:04 sri TM2 is still nicer though :o
18:21 crab hi sri.
18:21 sri o/
18:31 PerlJam sri: does TM work on unix yet?
18:31 sri os x is a unix
18:31 PerlJam sorry, linux
18:31 sri never will
18:32 PerlJam bummer
19:17 d4rkie joined #mojo
19:41 Tiger joined #mojo
20:05 d4rkie joined #mojo
20:09 bluescreen joined #mojo
20:20 dod joined #mojo
20:22 russum joined #mojo
20:23 russum left #mojo
20:50 sivoais joined #mojo
21:08 russum joined #mojo
21:08 russum left #mojo
21:19 memowe joined #mojo
21:20 Tiger Guys help me plz, i try to learn mojo. I need render ep template with lot of row (from mysql query), can i use loop of render template parts in foreach of queries  or i need use loop from array of rows in template?
21:22 Tiger Guys help me plz, i try to learn mojo. I need render ep template with lot of row (from mysql query), can i use cycle of render template parts in foreach of queries  or i need use cycle from array of rows in template?
21:22 Tiger sorry for double post
21:36 marty Tiger:  Maybe you are looking for reusable template blocks.    http://mojolicio.us/perldoc/Mojolicious/G​uides/Rendering#Reusable_template_blocks
21:39 libsysguy joined #mojo
21:41 libsysguy Anybody know if I should be using MojoX:Redis or Mojo::Redis
21:42 sri Mojo::Redis
21:42 libsysguy thats what I thought
21:42 libsysguy thanks sri
21:43 basiliscos joined #mojo
21:47 Britzel joined #mojo
22:13 mire joined #mojo
22:18 Tiger marty: thanx for answer me, can i use reusable block from code cycle like while (my $href = $sth->fetchrow_hashref){$se​lf->render($href->{code});} or i need use render once and use foreach/while cycle in template?
22:29 marty Tiger:  Use render only once.  You can render a partial template on each loop if you want.   http://mojolicio.us/perldoc/Mojolicio​us/Guides/Rendering#Partial_rendering
22:52 hesperaux joined #mojo
23:13 jberger o/
23:13 jberger first week down!
23:13 jberger time to do some open source! (finally)
23:14 sri \o
23:16 jberger still can't get the vpn to work, so I guess I'm not working at home this weekend
23:16 jberger but thats probably a good thing all-in-all
23:18 Tiger if i use partial rendering which way is better  to transmit rendered data to final render, save partial rendered data to shash?
23:20 Adura joined #mojo
23:21 sri http://mojolicio.us/perldoc/Mojolicious/Gu​ides/Rendering#Including_partial_templates
23:40 Tiger sri: i'm new in mojo and find way to more correcty by "mojo way" implement to render table with lot of data, right now I did it in such a http://pastebin.com/P0Tc6MXm, is it correct?

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