Camelia, the Perl 6 bug

IRC log for #mojo, 2012-06-04

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

All times shown according to UTC.

Time Nick Message
00:07 memowe joined #mojo
00:25 tempire balazs: http://mojolicio.us/perldoc/Mojol​icious/Lite#GET2FPOST_parameters
00:27 CromeDome joined #mojo
00:40 balazs tempire: right, but is there a method that returns all the parameters ?
00:52 gryphon joined #mojo
00:55 mire joined #mojo
00:59 scott joined #mojo
01:10 tempire http://mojolicio.us/perldoc/Mojo/Parameters
01:11 tempire http://mojolicio.us/perldoc​/Mojolicious/Controller#req
01:15 tempire $self->req->params->to_hash
01:22 mandreacchio joined #mojo
01:40 balazs thanks !
01:59 d4rkie joined #mojo
02:04 GitHub19 joined #mojo
02:04 GitHub19 [mojo] kraih pushed 1 new commit to master: http://git.io/umrEJw
02:04 GitHub19 [mojo/master] a few more small optimizations - Sebastian Riedel
02:04 GitHub19 left #mojo
02:35 * sri wonders if "no strict 'vars';" might be a good idea for ep templates after all
02:41 sri maybe templates without use strict would be more fun :o
02:44 sri on the other hand... templates get all compiled into the same package, globals could get awkward very easily
02:48 balazs anyone else dislikes Moose ? I'm looking at some sources and it's damn hard to decipher things...
02:48 sri pretty much everybody likes Moose
02:50 avenj I like Moose, but I *love* Moo in places where I don't especially need MOP
02:51 mandreacchio hey guys, I need to create pagination for my pages that are interfacing with REST end points like this: http://api.powerhousemuseum.com/api/v1​/category/xml/?api_key=8fbb61ea34d6f5d and this http://api.powerhousemuseum.com//api/v1/cat​egory/69/items/xml/?api_key=8fbb61ea34d6f5d how can I set these up on a framework?
02:51 mandreacchio are there any examples aboutn?
03:11 asarch joined #mojo
03:12 mandreacchio can mojo do something like that?
03:53 tempire I don't like that Moose ignores aesthetic
03:53 tempire and that the docs have no concept of flow
03:54 tempire mandreacchio: cpan
03:57 * tempire thinks strict in templates is a good ide
03:57 tempire *idea
03:57 tempire too easy for errors to hide without it
03:57 sri tempire: p5-mop solves the aesthetic problems
03:58 sri with a bit of luck this time next year mojolicious will look like https://github.com/stevan/p5-mop/blob/ma​ster/t/000-examples/001-basic-example.t
04:06 tempire then I will be all for it.
04:06 tempire I never want to use "sub BUILDARGS"
04:06 tempire ever.
04:10 sri will be interesting, mojolicious would only be dep free on perl 5.18, and require the mop module on older versions
04:11 sri but we would have method signatures everywhere and a oo syntax that's more pretty than ruby :)
04:17 * crab mops the floor with method signatures
04:34 d0as8 joined #mojo
05:08 mandreacchio he I wan't to print only up to the first say 50 chars in a variable in a telplate - how can I do that?
05:15 ovnimancer joined #mojo
05:17 tempire http://perldoc.perl.org/functions/substr.html
05:39 Foxcool joined #mojo
05:53 kmx joined #mojo
06:09 Leandr joined #mojo
06:17 AmeliePoulain joined #mojo
06:21 Vandal joined #mojo
06:26 lukep joined #mojo
06:49 alexeiras joined #mojo
06:51 rem_lex|pivo joined #mojo
07:05 fhelmber_ joined #mojo
07:06 spleenjack joined #mojo
07:19 i_am_batman joined #mojo
07:21 Htbaa joined #mojo
07:23 Leandr joined #mojo
07:23 AmeliePoulain joined #mojo
07:24 mire joined #mojo
07:28 AmeliePoulain joined #mojo
07:45 andrefs joined #mojo
07:58 Leandr joined #mojo
08:00 pau4o joined #mojo
08:16 Foxcool joined #mojo
08:26 baton8 joined #mojo
08:43 metys joined #mojo
08:53 andrefs joined #mojo
09:17 ilyuhan joined #mojo
09:41 * tempire wins EVERYTHING!
09:49 andrefs joined #mojo
09:51 mire joined #mojo
10:01 marcus hostile takeover
10:02 memowe /n/names
10:02 memowe Wow.
10:10 tempire vikings are allowed in my club
10:11 tempire and ballroom dancers
10:11 tempire and robots
10:12 tempire and this guy
10:12 tempire and/or girl
10:12 tempire oh but wait
10:13 tempire memowe probably doesn't do american style ballroom
10:25 ilyuhan left #mojo
10:33 memowe tempire: Nope. But I do pretty much everything. :)
10:34 memowe tempire: what about salsa teachers? ;)
10:47 mandreacchio joined #mojo
10:56 memowe joined #mojo
11:00 memowe Sorry.
11:22 memowe "All subjects intending to handle high-energy gamma leaking portal technology must be informed that they MAY be informed of applicable regulatory compliance issues."
11:28 Andrei666 joined #mojo
11:29 Andrei666 hey guys, I do a bridge route like this: my $movie = $r->bridge('/movie/:id')->to(controller => 'movies', action => 'details', id=>qr/\d+/);
11:30 Andrei666 but unfortunately when I type in the address bar x.x.x.x:3000/movie/1
11:30 Andrei666 i get an error  None of these routes matched your GET request for /movie/1
11:30 Andrei666 although i added it in startup
11:34 crab why is it a bridge? there's nothing under it.
11:38 Andrei666 so in order to  be a bridge it must have something like: $movie->route('/rank')->to(....); ?
11:39 crab something like that.
11:40 Andrei666 ok, well then..I do this: $movie = $r->bridge('/movie')->to(.....);
11:40 Andrei666 and then, $movie->route('/:id')->to('movies#detais') ;
11:42 Andrei666 and in the address bar I type : /movie/1/
11:42 Andrei666 but the param id is lost somewhere on the way
11:42 Andrei666 because in the action call it with $self->param('id'), but it's undef...
11:42 spleenjack1 joined #mojo
11:43 Andrei666 actually Dumper says it's: $VAR1 = qr/(?^:\d+)/;
11:46 rem_lex| joined #mojo
11:46 spleenjack1 joined #mojo
11:46 perlite joined #mojo
11:50 memowe joined #mojo
12:01 andrefs joined #mojo
12:01 daxim joined #mojo
12:37 daxim joined #mojo
12:40 memowe joined #mojo
13:08 Psyche^ joined #mojo
13:20 gryphon joined #mojo
13:25 sri interesting, with all tests our coverage is 92%, without optional tests around 70%
13:39 balazs joined #mojo
13:59 GitHub81 joined #mojo
13:59 GitHub81 [mojo] kraih pushed 1 new commit to master: http://git.io/9E2ZCg
13:59 GitHub81 [mojo/master] more smart matching - Sebastian Riedel
13:59 GitHub81 left #mojo
14:02 mattastrophe joined #mojo
14:27 CromeDome joined #mojo
14:54 inokenty joined #mojo
15:07 sh4|2 joined #mojo
16:21 JiYu joined #mojo
16:26 hide joined #mojo
16:28 asarch joined #mojo
16:41 marty Andrei666:   $r->route('/movie/:id', id => qr/\d+/ )->to(controller => 'movies', action => 'details');
16:42 marty or with a bridge:  my $movie = $r->bridge('/movie')->to(controller => 'movies', action => 'bridge'); $movie->route(':id', id => qr/\d+/ )->to(controller => 'movies', action => 'details');
16:43 xaka joined #mojo
16:56 Leandr joined #mojo
16:57 pau4o left #mojo
17:22 GeorgeJetson joined #mojo
17:24 i_am_batman joined #mojo
17:27 D4RK-PH0ENiX joined #mojo
17:29 taryk joined #mojo
17:29 taryk left #mojo
17:47 d4rkie joined #mojo
18:25 i_am_batman joined #mojo
18:44 balazs I know it's kind of off topic, but does anyone have experience sending and receiving text messages from a program ? any good providers ?
19:06 nnutter_ joined #mojo
19:08 mire joined #mojo
19:13 jwang joined #mojo
19:33 xaka1 joined #mojo
19:50 xaka1 joined #mojo
19:50 netfeed joined #mojo
19:54 netfeed man, you've not been slacking since the last time i was in here, 20 new releases or something like that
19:54 sri and every single one of them better than the last!
19:55 netfeed it better be!
20:09 balazs hi. I have a library that returns a Mojo::JSON::_Bool object. What can I do with it ? How do I check if it's true or false ?
20:10 perlite joined #mojo
20:19 snailfromhu joined #mojo
20:21 snailfromhu hey guys
20:21 snailfromhu I'm having problems with the groups in a Mojolicious::Lite app
20:21 snailfromhu I'd like to create the route: /api/quests in a way described in this gist: https://gist.github.com/2870627
20:22 snailfromhu is this a completely broken approach? using the code from the gist is not working because the route /api/quests does not exists
20:23 snailfromhu anyone been here before?
20:24 sri i've never done that, but using namespaces seems wrong
20:26 * sri puts salt on the channel floor
20:30 snailfromhu what would you do to achieve the same functionality in terms of separating api endpoints to different modules?
20:32 gryphon joined #mojo
20:49 tempire snailfromhu: use a full app
20:50 tempire and then use http://mojolicio.us/perldoc/Mojolic​ious/Guides/Routing#Route_to_class
20:59 snailfromhu tempire thanks, looking into it
21:19 andrefs joined #mojo
21:19 heytrav joined #mojo
21:20 i_am_batman joined #mojo
21:46 lukep joined #mojo
21:56 balazs anyone uses Google::Voice ? it's mojo based
23:23 hide joined #mojo

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