Camelia, the Perl 6 bug

IRC log for #mojo, 2011-01-21

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

All times shown according to UTC.

Time Nick Message
00:37 perlrocks Twitter: "mojolicious looks crazy powerful and concise." --erikhollensbe http://twitter.com/erikhollen​sbe/status/28249886147223552
00:38 perlrocks Twitter: "mojolicious looks crazy powerful and concise. http://bit.ly/gEz2qJ" --erikhollensbe http://twitter.com/erikhollen​sbe/status/28250006783791105
00:46 Alias__ left #mojo
00:48 alnewkirk left #mojo
00:56 mrmuskrat joined #mojo
00:57 GabrielVieira2 joined #mojo
00:57 GabrielVieira left #mojo
00:59 alnewkirk joined #mojo
01:02 GabrielVieira joined #mojo
01:07 GabrielVieira2 left #mojo
01:29 MojoGuest484 joined #mojo
01:29 MojoGuest484 From: http://news.ycombinator.com/item?id=1277067 (161 hits)
01:30 MojoGuest484 /list
01:30 MojoGuest484 left #mojo
02:26 hidek_____ left #mojo
02:34 sri su-bzero2: fixed the balloon btw :)
02:37 hidek_____ joined #mojo
02:39 perlrocks Twitter: "Fixed some details in the #mojolicious banner, don't think many people noticed, but i feel much better now. :) http://t.co/FsM3OSX #perl" --kraih http://twitter.com/kraih/status/28280416792219648
02:52 avkhozov joined #mojo
02:54 mrmuskrat left #mojo
02:55 sri Zzz
03:11 daviddelikat joined #mojo
03:14 daviddelikat1 left #mojo
03:15 avkhozov left #mojo
03:15 avkhozov joined #mojo
03:24 jamesw left #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
04:13 achromic joined #mojo
04:40 perlrocks Twitter: "Using Perl, Mojolicious and Redis in a real world asynchronous application http://tinyurl.com/4nma58o" --ryszard99 http://twitter.com/ryszard9​9/status/28310853061181440
04:45 MojoGuest377 joined #mojo
04:45 MojoGuest377 From: http://news.ycombinator.com/item?id=1277067 (162 hits)
04:46 MojoGuest377 left #mojo
04:54 MojoGuest245 joined #mojo
04:54 MojoGuest245 From: http://news.ycombinator.com/item?id=1277067 (163 hits)
05:15 MojoGuest245 left #mojo
06:04 kaare joined #mojo
06:17 daviddelikat left #mojo
07:06 koban joined #mojo
07:34 Christian joined #mojo
07:34 Christian good morning
07:34 purl For you maybe.
07:36 yko mrnng
07:38 koban hi!
07:56 breaker313 joined #mojo
08:09 perlrocks Twitter: "Put on centos cpanminus Mojolicious:: Lite you to move the "Perl 5.10 and later regards" U - with Messejinu" (ja) --polaroidoon http://twitter.com/polaroido​on/status/28363468188942336
08:13 ysyrota joined #mojo
09:19 avkhozov left #mojo
09:19 avkhozov joined #mojo
09:37 spleenjack joined #mojo
09:59 marcus get '//' => sub {
09:59 marcus typo in the default page?
10:10 marcus hurgle
10:11 marcus having some trouble with the tt renderer
10:13 marcus I load $self->plugin('tt_renderer'); in startup, but I still get  : http://pastebin.com/yrPHcfC2
10:13 marcus oh doh
10:13 Christian left #mojo
10:14 marcus http://pastebin.com/zFA1Y3g9 that is the actual error
10:14 Christian joined #mojo
10:40 avkhozov left #mojo
10:41 avkhozov joined #mojo
11:07 vaneska joined #mojo
11:12 perlrocks Twitter: "The document is still not enough Mojolicious wish after all." (ja) --5_1_5 http://twitter.com/5_1_5/status/28409486662180864
12:16 MisterHatt hey guys, I'm new to mojo and playing a bit with mojolicious::lite, wondering if someone could enlighten me on the helpers at all? trying to insert some javascript using <%= javascript being %> and wondering how I'd go about adding a charset argument to that most efficiently
12:16 MisterHatt I have the charset plugin loaded and I've used it in my header for the template in question, but not sure how to implement in the existing helpers
12:20 yko maybe you should write 'javascript begin' instead of 'javascript being'
12:20 MisterHatt that would be a good start yeah, whups
12:20 yko what do you mean 'a charset argument' ?
12:21 yko what you want to have in template after helpre runs?
12:22 MisterHatt well in html I'd usually write like <script type="text/javascript" charset="utf-8">
12:22 yko try <%= javascript => (charset => 'utf8') => begin %> ....
12:23 MisterHatt from what I understand of the helper though, it only places the type and source if passed
12:23 MisterHatt ah I see
12:23 MisterHatt I'll give that a go, thanks
12:23 yko all addictional params passed as attr-name => value pairs int tag helpers (mostly)
12:24 MisterHatt I get it
12:25 MisterHatt thanks for your help
12:28 mobyu joined #mojo
12:41 avkhozov left #mojo
12:52 perlrocks Twitter: "Just added myself to the http://wefollow.com twitter directory under:  #rivne_ukraine #perl #gtk #qt #mojo" --ysyrota http://twitter.com/ysyrota​/status/28434635662819328
12:53 perlrocks Twitter: "Just added myself to the http://wefollow.com twitter directory under:  #rivne #perl #mojo #gtk #qt" --ysyrota http://twitter.com/ysyrota​/status/28434917532635136
12:59 daviddelikat joined #mojo
13:07 mobyu left #mojo
13:13 alnewkirk left #mojo
13:14 trcjr left #mojo
13:23 alnewkirk joined #mojo
13:25 jdixon left #mojo
13:26 daviddelikat1 joined #mojo
13:29 daviddelikat left #mojo
13:33 mobyu joined #mojo
13:35 gabiruh left #mojo
13:36 gabiruh joined #mojo
13:37 koban left #mojo
13:48 GabrielVieira left #mojo
13:56 sri marcus: should be already fixed i master
13:57 sri *+n
13:59 yko left #mojo
14:00 yko joined #mojo
14:08 sri we are losing ops :o
14:09 yko somebody DoS my hoster :\
14:19 sri DaTa++
14:27 vaneska left #mojo
14:30 DaTa sri: rejoin to test autoop ;)
14:30 yko was kicked by sri: yko
14:30 yko joined #mojo
14:30 yko ohm?
14:30 purl ohm is Old High Martian time.  i.e. the number of seconds elapsed since the moment the year 1970 began in London, minus a few leap seconds. or the unit of resistance
14:30 sri DaTa: doesn't seem to work
14:30 yko haha
14:31 DaTa sri: you are on the autoop list, not yko :)
14:31 sri yko: hold still for probing!
14:31 yko lol
14:31 sri yko: now kick me
14:31 sri was kicked by yko: with my pleasure
14:31 kaare left #mojo
14:32 yko he has no auto-rejoin? Oo
14:32 sri joined #mojo
14:32 DaTa \o/
14:32 sri \o/
14:32 yko :D
15:05 spleenjack left #mojo
15:07 spleenjack joined #mojo
15:08 koban joined #mojo
15:11 yko mojo++
15:13 Alias__ joined #mojo
15:13 kaare joined #mojo
15:15 sri purl: karma mojo?
15:15 purl wish i knew, sri
15:15 sri purl: karma mojo
15:15 purl mojo has karma of 21
15:15 sri mojo++
15:16 sri purl: karma catalyst
15:16 purl catalyst has karma of 149
15:17 Alias_ left #mojo
15:30 Christian a nice weekend to you all
15:32 Christian left #mojo
15:35 yko purl karma mojolicious
15:35 purl mojolicious has karma of 5
15:35 yko Oo
15:39 sri we have a lot of catching up to do now that purl is back
15:39 * sri kisses purl
15:39 * purl swoons!
15:46 szabgab left #mojo
15:47 kaare left #mojo
15:48 * tempire_ gently caresses the back of purl's neck
15:48 * tempire_ gives purl an ipad
15:49 kaare joined #mojo
15:50 marcus sri: What should be fixed in trunk?
15:50 sri marcus: double slash
15:50 marcus sri: yeah, it is
15:51 marcus hrm, still wondering about the missing or not readable error I get  from a TT template
15:51 sri i really hope i've got the whole relative path thing right this time -.-
15:51 marcus the template is clearly not missing
15:51 marcus I fixed a syntax error in it before I started getting the missing or not readable error
15:52 sri no idea
15:55 mobyu left #mojo
15:59 marcus heh
15:59 marcus I blame ask
16:00 marcus http://pastebin.com/kBApm72P
16:00 marcus I think that code bit is very useless and should just be removed
16:00 sri not unlikely
16:01 sri the module is very very old though
16:01 marcus yepp
16:01 marcus but 1. that block will match if your template includes a template that does not exist
16:02 sri a lot of the improvements were actually triggered by it :)
16:02 marcus 2. it will result in a 404 instead of the error screen.
16:02 marcus which is not very useful
16:02 sri agree
16:02 kenhat joined #mojo
16:03 sri anyone seen microsoft razor?
16:03 sri the template system i tweeted
16:03 sri it's quite interesting
16:04 sri basically it's so clever syntax highlighting is pretty much impossible
16:04 tempire_ I like the @
16:04 sri http://weblogs.asp.net/scottgu/archi​ve/2010/07/02/introducing-razor.aspx
16:05 tempire_ It's almost similar to the line-beginning %, except you don't have to use it on the closing braces.
16:05 sri closing } is also neat
16:05 sri right
16:05 tempire_ I'm not sure how I feel about no prefix for closing braces.
16:05 sri i'm a little tempted to try it :)
16:06 sri but no syntax highlighting is a bummer
16:06 tempire_ With the right syntax highlighter, it's probably fine.
16:06 tempire_ Without it, I suspect it would be really annoying.
16:06 marcus wow, it will wow, I like razor
16:06 marcus wow, I type wow a lot, wow
16:06 tempire_ MS can do that 'cause they control their development environment
16:06 sri wow
16:07 sri ye, smart move by microsoft
16:07 marcus sri: planning to write an ide?
16:07 marcus :)
16:07 sri but the rest of their web stack is still garbage
16:07 kaare left #mojo
16:07 sri marcus: actually...
16:08 sri no ;p
16:08 tempire_ marcus: how was the response to your 'new hope' presentation at yapc?  The slides were brilliant.
16:08 koban left #mojo
16:08 sri he was unlucky
16:08 marcus tempire_: it was allright. England is a tough crowd tho :) And I was competing against tim bunce in the main room
16:09 tempire_ Ah right, I remember you saying that.
16:09 tempire_ I watched part of the video; the audio was horrible, but I assumed I would have heard more laughs
16:09 a|newkirk[assoc] joined #mojo
16:10 * sri wonders if @ would be better than %
16:10 tempire_ I can't imagine it would be hard to make that a configurable option
16:11 marcus wow, the actual block that triggered the 404 in TT was  DateTime: plugin not found)
16:11 sri it is already
16:11 marcus bad regex, no cookie, ask!
16:11 tempire_ perfect, you're already ahead of microsoft.
16:11 sri ouch, very bad regex
16:14 sri i think the biggest advantage are actually the smart inline expressions
16:14 sri @foo vs <%= foo %>
16:15 sri the longer for is not as nice though
16:16 ysyrota left #mojo
16:16 sri @(foo + 'bar') vs <%= foo + 'bar' %>
16:16 sri *form
16:17 sri and i don't think it would work so nice for perl
16:17 sri @$foo vs <%= $foo %>
16:18 sri @$foo->{bar} vs <%= $foo->{bar} %>
16:18 sri @($foo if $bar) vs <%= $foo if $bar %>
16:20 sri there are also other alternatives
16:20 sri <%= $foo %> vs {{ $foo }}
16:20 yko sri: why do you need @$ ? why not just @ ?
16:20 sri helpers wouldn't work
16:21 sri @content
16:21 yko ohm. you want helpers also
16:21 * sri wants it all
16:21 sri <%= $foo->{bar} %> vs {{ $foo->{bar} }}
16:27 * tempire_ @$foo->{bar}, except for when it doesn't make sense
16:27 tempire_ eck
16:27 * tempire_ likes @$foo->{bar}, except for when it doesn't make sense
16:30 breaker313 left #mojo
16:31 tempire_ I know!
16:31 tempire_ instead of @, a unicode snowman.
16:33 * tempire_ is a genius
16:36 snearch joined #mojo
16:39 sri :)
16:45 yko ☃->url_for
16:49 marcus sri: any chance TT can get the same nice error screens as the built in template system?
16:49 marcus http://nordaaker.com/docs/skitc​h/Exception-20110121-174905.jpg
16:49 marcus would be cooler if it actually showed where the error is
16:50 sri marcus: you can always make your own Mojo::Exception and throw it
16:51 marcus sri: but will it show the stack inside the TT template?
16:51 sri if you pass in the tt template source it could be fine
16:51 marcus ok
16:51 sri the stack hmm...
16:51 sri thats not so easy
16:52 sri i don't know enough about TT internals
16:52 sri stack trace depends on $SIG{__DIE__}
16:52 marcus I might try to I guess it's not as important as context
16:52 marcus will see if I can make a patch
16:53 sri getting stack traces in perl is very messy
16:53 marcus yes
16:53 a|newkirk[assoc] is now known as alnewkirk-away
16:54 sri marcus: https://github.com/kraih/mojo/blob​/master/lib/Mojo/Template.pm#L179
16:54 sri that might help
16:55 sri i pass in template source and compiled perl for the look inside feature
16:58 marcus YOU ARE SO SMART YOU ARE SO SMART S M R T! I MEAN S M A R T
17:04 dekimsey sri: Per our conversation yesterday about apache and url rewriting, I have a solution that works. Mostly. It appears to fail in the base case, that is a url pointing to the root of the application.
17:21 GitHub123 joined #mojo
17:21 GitHub123 mojo: master Sebastian Riedel * 56c86d5 (2 files in 2 dirs): css tweak - http://bit.ly/gtSeNn
17:21 GitHub123 left #mojo
17:27 kaare joined #mojo
17:43 avkhozov joined #mojo
18:31 esskar2 left #mojo
18:37 spleenjack left #mojo
18:58 su-bzero2 is now known as su-bzero[A]
18:58 su-bzero[A] is now known as su-bzero2
19:03 perlrocks Twitter: "Looks like Mojo::JSON is the fastest pure #perl json parser, not that it matters much but still nice. :) http://t.co/S5ZsGmj #mojolicious" --kraih http://twitter.com/kraih/status/28528075494924288
19:23 GabrielVieira joined #mojo
19:24 su-bzero2 is now known as su-bzero[A]
19:29 arthas joined #mojo
19:34 MojoGuest980 joined #mojo
19:34 MojoGuest980 From: http://www.google.com/url?sa=t&amp;source=we​b&amp;cd=4&amp;ved=0CDEQFjAD&amp;url=http%3A​%2F%2Fdev.xantus.org%2F&amp;rct=j&amp;q=webs​ocket%20demo&amp;ei=j985TdOWBo2AhAeuyuzpCg&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&am​p;sig2=fLD4knXcDICmqKkbQA1Ryg&amp;cad=rja (1 hits)
19:34 dekimsey I've run into an issue where Mojo will not generate correct urls when mod_rewrite is used to redirect a request to the cgi. Specifically this appears to be in the case of the root path to the application not being processed correctly. I've made a change to Message::Request to honor it as well as a test or two. Who/where should I talk to about my patch?
19:35 MojoGuest980 left #mojo
19:35 sri dekimsey: that would be me
19:35 dekimsey Hah, well then, you are already partially familiar with what I was trying to do.
19:36 sri the test cases are all in t/mojo/message.t
19:36 sri lots of different CGI environments
19:37 dekimsey My change doesn't break any of the old tests/behavior as far as I can tell
19:37 sri ok, just show me
19:38 sri you're working on github master right? because that code changed recently (multiple times)
19:39 dekimsey how would be best to do that?
19:39 dekimsey yes, I just pulled it about an hour ago perhaps
19:39 sri depends, small patch nopaste, big changeset github fork
19:41 dekimsey I just pushed it to my fork. (https://github.com/dekimsey/mojo)
19:44 sri dekimsey: ok, what does the patch actually achieve?
19:46 dekimsey Assume that urls myapp/foo/bar are being rewritten to myapp/mycgi.cgi/foo/bar. This works, routing and urls are okay. But if we are rewrite myapp/ to myapp/mycgi.cgi this fails, as currently mojo tries to process this as myapp/mycgi.cgi/myapp. This fixes that behavior to be what I believe is more consistent.
19:46 sri the comments are rather confusing
19:46 dekimsey Yeah, I was just thinking that :)
19:50 sri but the change seems to make sense :)
19:50 dekimsey I need to step afk for about an hour or so. I'm sure I didn't sufficiently explain it, so message me if you'd like, I'll respond when I return. I apologize for having to leave in the middle of this.
19:50 dekimsey I'm glad the change is clear enough, its too simple
19:50 sri no problem, the test cases are rather good except for the comments ;p
19:51 dekimsey thanks, I'll revise them when I return and give ya a heads up
19:51 dekimsey Thanks again. And that wiki section I can write now
19:53 sri don't worry about the comments, i'll clean it up
20:12 GitHub172 joined #mojo
20:12 GitHub172 mojo: master Daniel Kimsey * 82aa51a (2 files in 2 dirs): Apache mod_rewrite urls can be interpreted correctly. ...
20:12 GitHub172 mojo: master Sebastian Riedel * 0e719b5 (4 files in 4 dirs): cleanup
20:12 GitHub172 mojo: master commits 56c86d5...0e719b5 - http://bit.ly/fBSmGO
20:12 GitHub172 left #mojo
20:13 sri dekimsey++
20:32 metaperl joined #mojo
20:33 metaperl left #mojo
20:34 metaperl joined #mojo
20:36 avkhozov left #mojo
20:37 avkhozov joined #mojo
20:38 avkhozov left #mojo
20:57 non joined #mojo
21:00 non hi. when "manually" dispatching to controller $a, i've to do $self->session($a->session) to catch changes in sessions. is this really needed or does someone know a nicer way?
21:04 sri i think that question needs more context
21:05 sri what is "manually dispatching"?
21:10 non $r->route('/path')->to(con​troller=>'mydispatcher');
21:11 non then in Mydispatcher: handle_request
21:11 * sri doesn't follow
21:12 non ->to(controller=>'mydispatcher', action=>'handle_request');
21:12 sri ok, nothing manual about that
21:13 non in handle_request another controller is loaded, initialized and a method get's called
21:13 sri ah, did you forget to copy the stash?
21:13 non hm...
21:14 non not explicit
21:15 non i called new with the app instance, but did not copy the stash explicit
21:16 sri you have app, tx and stash that need to be carried around
21:17 non $b->stash($self->stash) before calling my method?
21:17 dekimsey @sri, thanks!
21:18 sri non: look around https://github.com/kraih/mojo/blo​b/master/lib/Mojolicious.pm#L211
21:19 sri "$class->new(app => $self, stash => $stash, tx => $tx)"
21:21 sri anyway, why would you do that?
21:22 sri please don't say internal redirect :S
21:24 non that means i've to call new for each request?
21:24 sri what are you trying to achieve?
21:24 non i'm the jsonrpc guy.. :)
21:25 sri hmm... i thought we had a better solution :S
21:25 non and today i found another solution: http://search.cpan.org/~mbp/MojoX-D​ispatcher-Qooxdoo-Jsonrpc-0.53/lib/​MojoX/Dispatcher/Qooxdoo/Jsonrpc.pm
21:25 non i'm playing around with this..
21:26 non yeah... our first solution was: $r->route('/jsonrpc')->over('j​sonrpc'=>1)->over('auth'=>1);
21:26 non conditions and stuff...
21:27 sri redispatcher requires a lot of work to make it look sleek
21:28 sri it's very much not standard mojolicious stuff, you are extending core functionality
21:28 sri don't say i didn't warn you ;p
21:30 sri you will be building a *real* dispatcher, not unlike routes
21:30 non it feels more like Mojolicious-derived-rpc-thingy...
21:31 non yes.. or a routes replacement
21:32 non .. but i also don't need the html stuff in Mojolicious::Controller
21:32 sri i'm not stopping you if you want to build your own dispatcher :)
21:33 sri just warning that it will be tricky low level work
21:35 non low level work does not distract me...
21:35 non but i'm not sure about my level of reinventing the wheel...
21:36 non i'm trying to solve the session problem further..
21:36 sri like i said before, i would always go for the route condition
21:38 sri since it allows reusing the mojolicious dispatcher
21:38 sri would be like 10 lines of code or so
21:40 sri btw. $r->route('/jsonrpc')->over('jsonrpc'=>1, 'auth'=>1); should also work
21:44 sri or even $r->post('/jsonrpc', jsonrpc => 1, auth => 1);
21:47 non ok. i think you're right.
22:02 alnewkirk-away left #mojo
22:25 dekimsey left #mojo
22:33 kaare left #mojo
22:48 alnewkirk left #mojo
23:01 non left #mojo
23:13 otaviof left #mojo
23:13 otaviof joined #mojo
23:29 sri ok, misfits is hilarious :)
23:45 snearch left #mojo
23:47 gabiruh_ joined #mojo
23:47 gabiruh_ left #mojo
23:56 alnewkirk joined #mojo

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