Camelia, the Perl 6 bug

IRC log for #mojo, 2013-05-24

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

All times shown according to UTC.

Time Nick Message
00:53 perl2012 joined #mojo
00:54 perl2012 I want to control authentication via hooks, such as a before_dispatch. How do I get the controller name inside the hook?
00:54 shmuel joined #mojo
01:04 whitebook joined #mojo
01:15 tempire perl2012: is there a reason you want to use hooks instead of bridges?
01:15 perl2012 no - I'm very new to mojo, so I'm not at all familiar with bridges
01:16 freman you are looking for bridges :D
01:17 freman hmmm I want a usb blower heater... there's a usb keyboard that is a heater but I like my keyboard...
01:17 perl2012 Thanks for pointing me in the right direction!
01:22 sri is it just me or does writing a driver for rethinkdb look like a total nightmare? http://rethinkdb.com/blog/lambda-functions/
01:26 freman not just you
01:37 d4rkie joined #mojo
01:42 perl2012 Working on a bridge... I have my $auth = $r->bridge("/sam")->to("example#auth");
01:42 perl2012 then $auth->get("/r")->to("#r");
01:42 perl2012 but when I go to /sam/r, it says I dont' have a matching route
01:42 perl2012 when I do script/app routes, I see /sam * and +/r GET underneath
01:43 perl2012 never mind - I got it
01:56 Meiermann joined #mojo
02:06 freman more efficient to include a template component in a for loop or use a template block in a foor loop?
02:07 D4RK-PH0ENiX joined #mojo
02:10 freman probably more efficient to use template block... because I don't like it lol
02:36 good_news_everyone joined #mojo
02:36 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/YFJhow
02:36 good_news_everyone mojo/master de42dd6 Sebastian Riedel: fixed encoding bug in Mojo::Log (closes #495)
02:36 good_news_everyone left #mojo
02:40 sri that might have been broken like forever
02:40 sri basically the same problem as command output
02:41 sri kinda ugly that we make changes to STDERR
02:46 good_news_everyone joined #mojo
02:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/pSmyrA
02:46 good_news_everyone mojo/master d808628 Sebastian Riedel: do not make changes to STDERR
02:46 good_news_everyone left #mojo
02:46 sri the bug reporter won't like that one
02:49 d4rkie joined #mojo
02:55 shmuel joined #mojo
02:55 sri jberger, tempire, marcus, crab: we still need to decide on how to handle STDOUT/STDERR encoding
02:56 sri possibly STDIN and @ARGV too
02:58 good_news_everyone joined #mojo
02:58 good_news_everyone [mojo] kraih tagged v4.05 at 724bfa4: http://git.io/U99rZw
02:58 good_news_everyone left #mojo
03:02 Kovensky joined #mojo
03:04 sri look at that, even though the branch has been deleted already i've found some of my earlier portable encoding work https://github.com/kraih/mojo/commit/a593c4ce1342
03:22 sri ah, that was the last commit in the branch :) https://github.com/kraih/mojo/commit/6ecadc2
03:23 sri the actual proposal was an auto_encode method/function https://github.com/kraih/mojo/commit/47​274a80faa1f40a68a29e875104bf5a76bb4d0e
03:37 fildon__ joined #mojo
03:54 preflex_ joined #mojo
04:02 Kovensky joined #mojo
04:07 sh4 joined #mojo
04:11 gork joined #mojo
04:16 ynonp joined #mojo
04:31 Kovensky joined #mojo
04:42 sri wow, that bug can be traced back to our first tag 0.999925
04:45 sri well, arguably... it's been there since 0.8010 in 2008 :O https://github.com/kraih/mojo/commit/e5824​bdcd32ebf29c6955a9c782a3c7055848add#L3R61
04:46 alnewkirk joined #mojo
04:53 jmaister joined #mojo
05:02 ynonp joined #mojo
05:08 basiliscos joined #mojo
05:24 ynonp joined #mojo
05:49 Britzel joined #mojo
05:55 inokenty joined #mojo
06:11 tempire did I miss a conversation?
06:11 tempire STDOUT/STDERR encoding...
06:28 ynonp joined #mojo
06:32 Mike-PerlRecruiter_ joined #mojo
06:47 yakudza joined #mojo
06:48 dpetrov_ joined #mojo
06:58 hrupp_ joined #mojo
07:21 Vandal joined #mojo
07:24 fhelmber_ joined #mojo
07:42 bpmedley joined #mojo
07:46 jzawodn joined #mojo
08:07 mire_ joined #mojo
08:10 ynonp joined #mojo
08:13 cosmincx joined #mojo
08:18 reneeb joined #mojo
08:19 rihegher joined #mojo
08:24 xxtjaxx https://gist.github.com/andreas-marschke/5642075 << minfying js/css in Mojolicious with a mojolicious Command have fun everyone :)
08:30 rihegher left #mojo
08:56 dod joined #mojo
09:02 maxhq joined #mojo
09:02 ynonp joined #mojo
09:07 nelio joined #mojo
09:46 mire_ joined #mojo
10:44 mrphilov joined #mojo
11:19 moltar joined #mojo
11:33 denisboyun joined #mojo
11:41 KindTwo joined #mojo
11:52 mire_ joined #mojo
11:52 yakudza joined #mojo
12:08 whitebook joined #mojo
12:29 jberger joined #mojo
12:41 xxtjaxx Hi Bender
12:47 xxtjaxx hi jberger!
12:48 jberger hi
12:51 bluescreen joined #mojo
12:53 xxtjaxx jberger: https://gist.github.com/andreas-marschke/5642075 << should I make a CPAN Module out of this?
13:01 jberger xxtjaxx, I know that sri has some dreams of asset pipelines which could be used to do these kinds of things
13:02 jberger some comments, Mojo::Util has some File::Slurp-like functions if you want to remove some dependencies
13:02 jberger and what is the second elsif(/\.css/) for?
13:04 whitebook joined #mojo
13:06 jberger xxtjaxx, read this, including the gist sri links to: https://groups.google.com/forum/?from​groups#!topic/mojolicious/E-ys22TGXrE
13:09 xxtjaxx jberger: the elsif is for the CSS::Minifier. It does both JS and CSS
13:10 jberger https://gist.github.com/andreas-ma​rschke/5642075#file-minify-pm-L44
13:10 jberger its a dead branch anyway
13:12 xxtjaxx oh that one. that was a mistake ...
13:13 xxtjaxx jberger: fixed
13:13 xxtjaxx I'll checkout the Mojo::Util thing.
13:18 SmokeMachine joined #mojo
13:23 dhg joined #mojo
13:25 dhg joined #mojo
13:26 xxtjaxx jberger: File::Slurp was part of core wasn't it`
13:26 xxtjaxx s/`/?/
13:26 jberger nope
13:26 jberger run `corelist File::Slurp`
13:29 rindolf joined #mojo
13:30 rindolf Hi all.
13:30 xxtjaxx hm. my memory isn't the best as it seems
13:30 rindolf http://paste.debian.net/6273/ - «»On Mageia Linux Cauldron x86-64 with perl-Mojolicious-4.50.0-1.mga4 (Mojo 4.05) I am getting this in the tests of https://bitbucket.org/shlomif​/perl-test-www-mechanize-mojo . How can I fix it?»
13:31 sri does anyone see what's wrong here? https://github.com/kraih/mojo/issues/496
13:32 sri tempire: seems so
13:35 xxtjaxx sri: UTF8 on windows...
13:35 sri xxtjaxx: what does that mean?
13:40 perl2012 joined #mojo
13:41 perl2012 Within my app, I'd like to get a list of routes similar to what I would get from doing "script/app routes". How do I do this? I tried looping through $self->app->routes->children, but it doesn't get routes that are bridged.
13:42 xxtjaxx sri: Dunno how perl on windows handles UTF8 but it seems as if that is the problem isn't it?
13:42 sri xxtjaxx: i don't see how UTF-8 has nything to do with this
13:43 xxtjaxx sri: it says wide char error. and the heart you logged is part of UTF8 isn't it?
13:44 sri xxtjaxx: wide char error means it's dealing with characters, not UTF-8
13:44 xxtjaxx Ah.
13:45 sri wide characters is the expected content of that variable, it just doesn't match the regex for some reason
13:46 sri https://github.com/kraih/mojo​/blob/master/t/mojo/log.t#L9
13:46 sri the tests in question, if anyone wants to take a look
13:47 sri do we have anyone using windows here?
13:48 sri please install Mojolicious 4.05 and see if it fails for you too
13:48 Vandal is it on cpan?
13:48 sri yes
13:49 mrphilov joined #mojo
13:50 jberger rindolf, I see at least some of your errors are the use of removed render_* methods, like render_text
13:52 Vandal sri, yep, I've got it too
13:52 sri why doesn't it match?
13:53 sri is it an \n error?
13:53 sri does the tets pass if you remove the \n from the regex?
13:57 Vandal sri, yep
13:57 sh4 joined #mojo
13:57 Vandal without \n it passes
13:57 sri \o/
13:58 denisboyun joined #mojo
14:01 Vandal where does he get Mojolicious 5.04? O_o
14:01 good_news_everyone joined #mojo
14:01 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5HLngg
14:01 good_news_everyone mojo/master d6b8071 Sebastian Riedel: fixed Windows bug in log.t
14:01 good_news_everyone left #mojo
14:04 Kovensky joined #mojo
14:12 denisboyun_ joined #mojo
14:19 sri tempire: http://irclog.perlgeek.de/​mojo/2013-04-22#i_6731558
14:19 sri that might be the conversation you missed
14:19 sri STDIN/STDOUT/STDERR/@ARGV encoding is a complicated issue
14:19 Kovensky joined #mojo
14:22 good_news_everyone joined #mojo
14:22 good_news_everyone [mojo] kraih tagged v4.06 at ca5b202: http://git.io/b66bAA
14:22 good_news_everyone left #mojo
14:33 jberger 5.0 here we come!
14:33 jberger :-P
14:41 sri \o\
14:41 sri /o/
14:43 sh4|2 joined #mojo
14:46 reneeb joined #mojo
14:47 rindolf jberger: OK.
14:54 denisboyun joined #mojo
15:12 denisboyun joined #mojo
15:16 whitebook joined #mojo
15:29 whitebook joined #mojo
15:36 KindOne joined #mojo
15:38 denisboyun_ joined #mojo
15:39 mrphilov joined #mojo
16:10 dpetrov_ joined #mojo
16:18 tempire huh
16:18 tempire Test::Class seems to detect Mojo::IOLoop->start as a test.
16:21 sh4|2 joined #mojo
16:24 KindOne joined #mojo
16:29 denisboyun joined #mojo
16:34 denisboyun_ joined #mojo
16:49 labrown joined #mojo
16:51 dod joined #mojo
17:02 KindOne joined #mojo
17:03 denisboyun joined #mojo
17:08 kbenson joined #mojo
17:11 KindTwo joined #mojo
17:12 tempire ah, something to do with test harness running tests during the loop
17:19 whitebook joined #mojo
17:25 sri hard to believe how horrible old mojolicious code was :)
17:26 sri we've come a loooooooooong way
17:45 sh4|2 joined #mojo
17:48 sh4|2 joined #mojo
17:50 sh4|2 joined #mojo
17:55 whitebook joined #mojo
18:02 denisboyun joined #mojo
18:06 sri about time CGI.pm gets removed from core \o/
18:12 sh3 joined #mojo
18:24 mire_ joined #mojo
18:31 yakudza joined #mojo
18:37 bluescreen joined #mojo
18:50 denisboyun joined #mojo
18:52 bluescreen_ joined #mojo
18:58 basiliscos joined #mojo
19:20 SmokeMachine joined #mojo
19:25 denisboyun_ joined #mojo
19:31 dpetrov_ joined #mojo
19:37 reneeb_ joined #mojo
19:38 d4rkie joined #mojo
19:41 ynonp joined #mojo
19:49 ynonp joined #mojo
19:59 tempire goodbye, CGI
20:00 marty \o/  I'm a new grandpa today.  Little Mason was born today @ 8.5 pounds and 21 inches.
20:00 * marty hands out cigars to the chatroom
20:00 Britzel marty: Congrats :)
20:01 moritz marty++
20:05 sri marty: congrats!
20:05 jberger_ congratulations marty!!
20:05 * jberger_ puffs vigorously
20:06 marty thanks everyone.  :)
20:17 ynonp joined #mojo
20:19 good_news_everyone joined #mojo
20:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/IZEK7g
20:19 good_news_everyone mojo/master 6833dd8 Sebastian Riedel: fixed format handling in routes command
20:19 good_news_everyone left #mojo
20:20 whitebook good_news_everyone! marty is a grandpa
20:20 whitebook :)
20:24 whitebook marty grandson is named after a Perl module?
20:25 dpetrov_ congrats :)
20:28 good_news_everyone joined #mojo
20:28 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/NOJqGg
20:28 good_news_everyone mojo/master da25d93 Sebastian Riedel: updated jQuery to version 2.0.1
20:28 good_news_everyone left #mojo
20:43 Akron joined #mojo
21:08 bluescreen_ joined #mojo
21:09 bluescreen joined #mojo
21:09 mrphilov joined #mojo
22:24 jberger_ has anyone used Function::Parameters
22:24 jberger_ ?
22:25 jberger_ I have liked Method::Signatures, but it requires Mouse for testing :-/ and Any::Moose for Mooseyness
22:26 jberger_ Function::Parameters is more Moo friendly (good thing) and uses the new keyword api (why I'm asking, possibly a good thing)
22:31 sri jberger_: benchmark?
22:31 jberger_ that it works?
22:31 jberger_ that its sane?
22:31 sri which one is faster
22:31 jberger_ I'm not really sure
22:31 jberger_ oh
22:31 jberger_ I have no idea about that one
22:32 sri my problem with signature modules is that they usually are terribly slow
22:32 jberger_ I would assume Function::Parameters
22:32 jberger_ because its doing at least part of its work at the C/XS level
22:33 jberger_ I really was just wondering if anyone had used this new kid on the block
22:33 jberger_ perhaps I should do some benchmarking
22:33 jberger_ I'd probably learn the answers to my other questions doing so
22:33 jberger_ :-)
22:40 HtbaaPi when running prove with the verbose flag, how can I make Mojolicious (used through Test::Mojo) not output the debug messages. Is there an environment variable for that?
23:05 KindOne joined #mojo
23:19 good_news_everyone joined #mojo
23:19 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GgpD4w
23:19 good_news_everyone mojo/master e583b8a Sebastian Riedel: small optimizations
23:19 good_news_everyone left #mojo

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