Camelia, the Perl 6 bug

IRC log for #mojo, 2013-09-03

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

All times shown according to UTC.

Time Nick Message
00:11 punter joined #mojo
00:18 russum joined #mojo
00:20 russum left #mojo
00:33 wk joined #mojo
00:38 wk joined #mojo
00:59 shmuel joined #mojo
01:03 laouji joined #mojo
01:03 laouji joined #mojo
01:12 punter joined #mojo
01:15 KindTwo joined #mojo
01:19 basic6 joined #mojo
01:31 KindTwo joined #mojo
02:00 d4rkie joined #mojo
02:00 d4rkie joined #mojo
02:20 btyler joined #mojo
02:46 KindOne joined #mojo
03:31 preflex_ joined #mojo
03:37 cottoo joined #mojo
04:06 dqw joined #mojo
04:32 espent_ joined #mojo
04:42 Liam` joined #mojo
04:53 Meiermann joined #mojo
05:18 lammel2 joined #mojo
05:19 lammel2 left #mojo
06:11 basiliscos joined #mojo
06:15 hummeleBop joined #mojo
06:24 Adura joined #mojo
06:30 Vandal joined #mojo
06:49 ladnaV joined #mojo
07:01 denis_boyun joined #mojo
07:01 dotandimet joined #mojo
07:04 Vandal joined #mojo
07:19 dod joined #mojo
07:23 dod joined #mojo
07:29 trone joined #mojo
07:38 ladnaV joined #mojo
07:43 Vandal joined #mojo
07:50 fhelmber_ joined #mojo
07:51 mars joined #mojo
07:51 marcus_ joined #mojo
07:54 ladnaV joined #mojo
08:05 fhelmbe__ joined #mojo
08:12 fhelmber_ joined #mojo
08:14 fhelmber_ joined #mojo
08:21 arpadszasz joined #mojo
08:24 Vandal joined #mojo
08:43 ivan joined #mojo
08:44 dpetrov_ joined #mojo
08:47 dotan joined #mojo
08:58 Vandal joined #mojo
09:11 maxhq joined #mojo
09:24 mire_ joined #mojo
09:26 Dandre hello
09:27 Dandre In a mojolicious controller, how can I get part of the route path. ie: GET /device/:id, where can I get this id?
09:37 Dandre ok I've found $self->stash('id')
09:38 Vandal O_o
09:38 Vandal did you read Guide?
09:39 Vandal oh, not Guide but Tutorial
09:58 Dandre Yes, I had trided with param before but didnt work
09:59 Dandre sorry there was another issue in my code
09:59 batman Dandre: it works as well, as long as you don't have overlapping body/query params
09:59 batman but i like to use stash(), because then i know for sure it's not from param :)
10:04 Dandre ok thanks for the edvice
10:05 Dandre advice
10:52 fhelmber_ joined #mojo
10:55 MeierM joined #mojo
10:57 denisboyun joined #mojo
11:01 memowe joined #mojo
11:10 denisboyun joined #mojo
11:18 mire_ joined #mojo
11:19 dqw joined #mojo
11:26 Molaf__ joined #mojo
12:07 dod joined #mojo
12:18 dod1 joined #mojo
12:26 arthas joined #mojo
12:27 dod joined #mojo
12:32 Dandre I have a route that redirect to a controller class. How can I pass parameters to the action method? Is there a prefered design pattern?
12:32 Dandre eg $route->to('mycontroller#action',$param) or $route->to('mycontroller#action',param => $param)  or ...?
12:34 Meiermann joined #mojo
12:43 btyler joined #mojo
12:48 diegok Dandre: are you going to send multiple routes to the same controller#method?
12:48 Dandre yes
12:50 Dandre diegok: what do you recommend?
12:50 diegok Dandre: it all depends on what you need
12:51 diegok on basic usage I don't use multi-route to the same method as url captures or real params are what I want
12:51 denisboyun joined #mojo
12:52 diegok I use route passed arguments in only one thing to set user roles an auth bridge should check
12:53 diegok Dandre: what are you doing?, why you need route passed args?
12:53 Dandre I have to handle PUP and POST on a resource, POST => update some feild, PUT => erase and rewrite content. All the other processing are the same
12:54 diegok ok, but why you need to inject args from your route definition?
12:54 Dandre so basically I have a update action wich replace all data if a flag is set
12:54 Dandre I don't see how to do
12:54 diegok ok, so you set that flag on your route?
12:55 Dandre yes
12:55 diegok then you have two routes /a and /b going to the same method
12:56 Dandre yes
12:57 diegok ok... this is a possible use-case. You can also send to other method that stash something and then call the first one...
12:57 diegok but passing config options from router might be useful.
12:57 diegok sure.
13:00 diegok you can pass any arg and then you read it from the stash
13:00 diegok Dandre: http://mojolicio.us/perldoc/Mo​jolicious/Guides/Routing#Stash
13:02 Dandre ok thanks
13:09 asarch joined #mojo
13:15 fhelmber_ joined #mojo
13:18 gtodd joined #mojo
13:30 zivester joined #mojo
13:32 btyler joined #mojo
13:37 btyler joined #mojo
13:40 dqw joined #mojo
13:53 gryphon joined #mojo
14:06 dvinciguerra joined #mojo
14:42 ryozi joined #mojo
14:59 D4RK-PH0ENiX joined #mojo
15:03 dod joined #mojo
15:04 sh4 joined #mojo
15:08 bluescreen joined #mojo
15:10 mire_ joined #mojo
15:18 d4rkie joined #mojo
15:45 highflying joined #mojo
15:52 arpadszasz joined #mojo
16:03 yakudza joined #mojo
16:24 dod joined #mojo
16:42 marcus yay
16:42 sh4 joined #mojo
16:48 btyler batman: any feelings on adding support for psubscribe to Mojo::Redis? I've been puttering with it, but didn't want to start on a pull request until I'd been in touch
16:51 ladnaV joined #mojo
16:51 marcus btyler: we are likely to accept that, and probably want to use it ourselves ;)
16:53 fhelmber_ joined #mojo
17:07 sri \o\
17:07 sri /o/
17:12 marcus sri: http://fckingblog.files.wordpress.com/2010/0​6/im-number-one-so-why-try-harder.jpg?w=600
17:16 marcus https://twitter.com/stevanlit​tle/status/374943840639004672
17:17 sri lol
17:20 bowtie_ joined #mojo
17:21 bowtie_ joined #mojo
17:31 sri sooo, that's how google plans to make money with android :o
17:32 sri advertising code names!
17:35 marcus moose is up to 150 now, but we added two more ++ it seems. #stillahead
18:02 btyler marcus: cool, expect a pull request in the unspecified-yet-not-too-distant future :)
18:05 trone joined #mojo
18:09 marcus btyler: I totally will!
18:49 denisboyun joined #mojo
19:15 go|dfish joined #mojo
19:35 go|dfish joined #mojo
20:05 howitdo joined #mojo
20:37 dotandimet joined #mojo
20:46 rem_lex|pivo joined #mojo
21:00 basiliscos joined #mojo
21:00 bluescreen joined #mojo
21:04 basiliscos joined #mojo
21:08 gryphon joined #mojo
21:33 basiliscos joined #mojo
21:37 basiliscos joined #mojo
21:39 Gedge joined #mojo
21:51 sri http://www.kitkat.com/#/home # lol
21:52 basiliscos joined #mojo
21:58 freman joined #mojo
21:58 freman is there some way to guess whether your application has been started with hypnotoad?
22:07 mire joined #mojo
22:12 basiliscos joined #mojo
22:35 howitdo joined #mojo
22:40 phillipadsmith freman: doesn't a "guess" imply that you can just, um, guess?
22:40 phillipadsmith ;)
22:41 freman well, I want the script to behave a little differently if hypnotoad is being used to run the test suite vs if "server" or morbo are being used
22:50 whatitdo joined #mojo
23:48 phillipadsmith freman: curious, how to you "run the test suite" with the "server"?

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