Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-01

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

All times shown according to UTC.

Time Nick Message
00:43 shmuel joined #mojo
00:57 allan joined #mojo
01:20 ka2u joined #mojo
01:52 d4rkie joined #mojo
01:57 Meiermann joined #mojo
02:56 btyler joined #mojo
03:00 shmuel_ joined #mojo
03:01 shmuel joined #mojo
03:15 shmuel_ joined #mojo
03:28 basic6 joined #mojo
04:11 StinkfooT joined #mojo
04:12 ka2u joined #mojo
04:42 dqw joined #mojo
04:53 arpadszasz joined #mojo
05:08 Meiermann joined #mojo
05:35 yakudza joined #mojo
05:35 ka2u joined #mojo
05:48 preflex_ joined #mojo
05:52 yakudza joined #mojo
05:54 yko joined #mojo
06:02 Britzel_ joined #mojo
06:10 denis_boyun joined #mojo
06:14 basiliscos joined #mojo
06:22 ver joined #mojo
06:26 Mike-PerlRecruiter_ joined #mojo
07:07 ka2u joined #mojo
07:10 olav joined #mojo
07:12 trone joined #mojo
07:22 fhelmber_ joined #mojo
07:36 zacts joined #mojo
07:43 olav Can one set the log-level/mode in the config-file for Hypnotoad?
07:44 olav ... or do I have to use the ENV
08:01 Jonis joined #mojo
08:16 ka2u joined #mojo
08:21 rem_lex| joined #mojo
08:27 dhg joined #mojo
08:30 dotan joined #mojo
08:39 preflex joined #mojo
08:40 maxhq joined #mojo
08:50 nicolaas joined #mojo
08:55 jzawodn joined #mojo
09:21 denis_boyun joined #mojo
09:27 Vandal joined #mojo
10:02 arpadszasz joined #mojo
10:25 ka2u joined #mojo
10:30 dqw joined #mojo
10:40 gtodd joined #mojo
10:41 gtodd joined #mojo
10:50 ka2u joined #mojo
10:50 batman olav: you could do it in startup(): sub startup { ... $self->log->level($self->config->{log_level}); ... }
10:54 olav batman: Nice trick. Ive already implemented the ENV solution. We have an ENV flag that says what "mode" the server runs. I just translate that.
10:54 olav But your solution will be simpler to reason about.
10:55 JiYu joined #mojo
11:02 batman olav: mine will also work if you reload the server.
11:02 batman then ENV will never be changed once the server is started...
11:03 batman like MOJO_LOG_LEVEL=info kill -USR2 1234 won't magically transport the environment variable into the hypnotoad process :)
11:05 olav batman: Yeah, nice point. We have some homegrown tools that take care of that in our normal m*d_perl setup. But they will have to be extended to handle hypno
11:05 batman okidoki. whatever floats your boat.
11:06 olav At the time bieng it feels a bit like a u-bout :-)
11:09 batman haha
11:19 allan joined #mojo
11:45 ver I need help! Why Mojolicious returns wrong response (status)?
11:45 ver [Thu Aug  1 15:43:07 2013] [debug] HASH(0x27c0760)  (0.215646s, 4.637/s).
11:46 ver When I do $self->render(json => $data) its all right, when $self->render('template', data => $data) I had wrong status
11:47 olav ver: my guess (im a noob): some error occurred, and if you are lucky you can see it in you log
11:48 Zx3 I think data is used by Mojolicious so pick another name
11:49 allan ver: isn't it $self->render(template => 'template', data => $data) ? Also, try to choose another stash name rather than 'data', something like 'my data' => $data
11:50 allan Oops: $self->render(template => 'template', mydata => $data)
11:50 Zx3 http://mojolicio.us/perldoc/​Mojolicious/Controller#stash - 'data' is reseved
11:52 ver "data" for example
11:53 ver olav, it seems what you are right!
11:53 olav ver: nice :-)
11:53 ver I have "small" error. When I was commented the wrong block I had correct response
11:54 ver olav++
11:57 batman data is an aweful key... you should always use a key/variable name that says something about what it contains
11:57 olav Its very (too) generic
11:59 batman it's simply non-descriptive. it's like $i, $n, $tmp: Should only be used in a where limited area (as when you can read the definition and see where it goes out of scope during ~five lines of code)
12:01 ver It is just for example. I have another keys (tickets => $tickets, total => $total, limit => $limit, page => $p)
12:03 batman nice!
12:05 denis_boyun joined #mojo
12:07 Akron joined #mojo
12:09 Akron I'm wondering why ->replace and ->remove return values were changed and this was called a bugfix, although that's a breaking change (it broke my code, although I used it as documented).
12:10 * Akron talking about Mojo::DOM.
12:17 Zx3 Akron: http://irclog.perlgeek.de/​mojo/2013-07-28#i_7380724
12:19 Akron Zx3++ Thanks! So ... I guess I was one of the few  ... ;) However - code is now fixed.
12:36 dsteinbrunner joined #mojo
12:40 Tiger joined #mojo
13:02 ilbot2 joined #mojo
13:02 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
13:22 maxhq joined #mojo
13:29 dqw joined #mojo
13:41 denisboyun joined #mojo
13:49 denis_boyun joined #mojo
13:55 btyler joined #mojo
13:56 asarch joined #mojo
13:57 espent_ joined #mojo
13:57 basiliscos joined #mojo
14:07 bowtie_ joined #mojo
14:26 gryphon joined #mojo
14:46 gryphon joined #mojo
14:49 dqw joined #mojo
15:11 Britzel_ joined #mojo
15:57 delias joined #mojo
16:12 Britzel joined #mojo
16:18 dqw joined #mojo
16:24 btyler joined #mojo
16:26 bluescreen joined #mojo
16:28 sh4 joined #mojo
16:33 d4rkie joined #mojo
16:48 arpadszasz joined #mojo
17:15 mattastrophe joined #mojo
17:49 trone joined #mojo
18:09 gryphon joined #mojo
18:27 Mike-PerlRecruiter_ joined #mojo
18:37 maxhq joined #mojo
18:51 btyler joined #mojo
19:07 marty nom nom nom
19:32 basic6 joined #mojo
19:37 dvinciguerra joined #mojo
19:56 two_tired joined #mojo
20:36 gryphon joined #mojo
20:54 dsteinbrunner joined #mojo
21:12 perlite_ joined #mojo
21:30 dsteinbrunner joined #mojo
21:35 tianon joined #mojo
21:46 buu So
21:46 buu How does Mojo::Test send UA based requests?
21:46 buu Or where does it send them?
21:46 buu Like when you do post_json_ok, where does it go?
21:50 buu And why does it specifically set the ioloop on the ua?
22:16 buu Better question: How come running my own Mojo::UserAgent->new->ioloo​p(Mojo::IOLoop->singleton) doesn't get me the same UA I can make requests against as it does for the Mojo::Test object?
22:16 buu Er, Test::Mojo
22:21 buu Oh, I need the $ua->app call?
22:21 buu Yup
22:58 lukep joined #mojo
23:11 bzero joined #mojo
23:16 yko joined #mojo
23:41 dvinciguerra joined #mojo
23:42 dsteinbrunner joined #mojo

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