Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-13

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

All times shown according to UTC.

Time Nick Message
02:11 grim_fandango joined #mojo
02:17 grim_fandango Question: I am using a custom not_found template and trying to include my default layout.  My default layout makes references to things like $action and unfortunately this is causing an error when not_found is rendered.
02:18 grim_fandango The error reads: Global symbol "$action" requires explicit package name at template
02:18 grim_fandango Is there something I can to do get around this and still use my default layout template?
03:32 garu grim_fandango: you can stop using $action directly in your layout, and try testing for its existance with something like <% if ( stash 'action' ) %>
04:21 gabiruh_ joined #mojo
04:22 gabiruh left #mojo
05:15 grim_fandango garu: Thanks - that's helpful.
05:16 garu grim_fandango: you're welcome
06:20 MisterHatt anyone know which TT renderer is the 'latest' one?
06:20 MisterHatt seems to be quite a few of them around for mojolicious
06:46 sri MisterHatt: should be the one marcus patched recently
06:46 MisterHatt right, that was one I didnt come across at all then
06:47 sri http://search.cpan.org/~ab​h/MojoX-Renderer-TT-1.12/
06:47 sri this
06:47 garu MojoX::Renderer::TT ?
06:47 garu ah, sri beat me to it :)
06:47 MisterHatt oh, that's marcus?
06:48 sri ask makes the releases
06:48 sri marcus fixes them
06:49 MisterHatt ah, patch is committed to that cpan entry though?
06:49 MisterHatt or do I have to look on github
06:54 baton8 joined #mojo
06:59 tholen_ joined #mojo
07:00 tholen_ left #mojo
07:01 tholen_ joined #mojo
07:14 grim_fandango left #mojo
07:45 daviddelikat1 joined #mojo
07:48 daviddelikat left #mojo
08:16 jpablobr left #mojo
08:20 minimalist left #mojo
09:16 daviddelikat joined #mojo
09:18 daviddelikat1 left #mojo
09:28 perlrocks Twitter: "Please make sure to test the latest #mojolicious changes on github, there will be a release soon. http://t.co/WSuUMPE #perl" --kraih http://twitter.com/kraih/status/46865195452215297
09:48 tholen_ left #mojo
10:03 tholen_ joined #mojo
10:07 perlrocks Twitter: "More information about why Mojo::Client had to be deprecated. http://t.co/D07t3a4 #mojolicious #perl" --kraih http://twitter.com/kraih/status/46875057175277568
10:19 GitHub174 joined #mojo
10:19 GitHub174 mojo: master Sebastian Riedel * 57ed976 (2 files in 2 dirs): another small Mojo::IOLoop tweak - http://bit.ly/dWXwTp
10:19 GitHub174 left #mojo
10:27 MisterHatt client is deprecated?
10:27 MisterHatt that'll be fun for my app sending post data to other sites...
10:27 sri just read it
10:44 sri guess i should delete that tweet... more people will prolly not bother actually reading
10:45 perlrocks Twitter: "More information about why Mojo::Client had to be deprecated and replaced with Mojo::UserAgent. http://t.co/D07t3a4 #mojolicious #perl" --kraih http://twitter.com/kraih/status/46884672457805825
10:49 marcus Twitter: "More information about the end of the world as we know it http://is.gd/fake_url #mojolicious #perl " --kraih http://twitter.com/kraih/status/666
10:49 sri FAKE!
10:49 sri I CAN TELL BY THE PIXELS!
10:58 marcus sri: well played, sir
10:58 marcus sri: How hard would it be to implement the mojomojo url scheme on Mojo?
10:59 sri how does it work?
10:59 purl well, how does it work is http://www.howstuffworks.com
10:59 marcus like /wikiword - /wikiword.edit /wikiword.subpages /wiki/wiki/wiki.edit
10:59 marcus and even /wikiword.page/permissions
10:59 sri easy i guess
11:00 sri let me write you a oneliner
11:02 sri perl -Mojo -e'a("/(:controller).(:action)" => sub { my $self = shift; $self->render_text($self->param("controller") . "->" . $self->param("action")) })->start' get /wikiwords.edit
11:03 sri the possibilities are really infinite
11:03 sri you just build a regex that fits
11:04 sri get /wikiwords.edit.html and /wikiwords.edit.rss even work with the route
11:04 marcus nice
11:05 sri you can even split it into 2 or 3 routes to make it look nicer
11:05 sri most specific first
11:06 sri like if you want /wikiwords and /wikiwords.edit
11:06 sri those look better in two routes
11:07 marcus actually, I was thinking maybe /wikiwords should be a waypoint or something
11:07 marcus and I could build all the actions on top of it
11:08 sri hmm, not sure if routes below waypoints work without leading slash
11:09 * sri scratches head
11:12 sri well, you can build pretty much any url scheme with routes, you might just need a few more
11:16 metaperl left #mojo
11:19 marcus yeah, fair enough
11:40 metaperl joined #mojo
11:41 GitHub27 joined #mojo
11:41 GitHub27 mojo: master Sebastian Riedel * cdb5892 (2 files in 2 dirs): cleanup - http://bit.ly/hmwn2T
11:41 GitHub27 left #mojo
12:03 esskar left #mojo
12:06 DaTa left #mojo
12:07 dotan joined #mojo
12:11 DaTa joined #mojo
12:35 kaare joined #mojo
12:43 kaare left #mojo
13:15 abra joined #mojo
13:26 sri http://pusherapp.com/docs # this seems like a pretty smart way to handle the realtime scaling problem
14:35 tholen_ left #mojo
14:59 dotan left #mojo
15:02 abra_ joined #mojo
15:07 abra left #mojo
15:12 gabiruh_ left #mojo
15:17 gabiruh joined #mojo
15:29 alnewkirk-away joined #mojo
15:31 sri "HARNESS_OPTIONS=j2 make test" is really cool, cuts the test time in half
15:42 sri wow
15:42 sri HARNESS_OPTIONS=j3 turns 42 seconds into 14
15:47 perlrocks Twitter: "Love how "HARNESS_OPTIONS=j3" can bring a 42 second #mojolicious "make test" down to just 14 seconds on my macbook. :) #perl" --kraih http://twitter.com/kraih/status/46960570729111552
16:17 memememomo_ left #mojo
16:34 giwi joined #mojo
16:41 alnewkirk-away left #mojo
17:09 crab i come in peace
17:10 crab to report that switching my test suite to m::ua was free of problems, as was the only non-testing use of client in my code
17:11 giwi left #mojo
17:16 GitHub88 joined #mojo
17:16 GitHub88 mojo: master Sebastian Riedel * 5387c64 (1 files in 1 dirs): fixed synopsis - http://bit.ly/h15Wtn
17:16 GitHub88 left #mojo
17:17 sri \o/
17:21 kaare joined #mojo
17:22 minimalist joined #mojo
18:07 giwi joined #mojo
18:55 jamesw left #mojo
19:00 jamesw joined #mojo
19:16 hoelzro joined #mojo
19:16 tempire sri: message bus module...url?
19:16 purl Sorry, I've never seen bus before.
19:17 sri tempire: don't think there is an open one for websockets yet
19:17 sri tempire: but something like http://pushmodule.slact.net/
19:19 tempire I feel like their js example could be simpler
19:21 sri implementation doesn't matter
19:21 sri the concept does
19:24 tempire huh
19:24 tempire it's like gearman for the webs
19:30 sri kinda
19:51 marcus I think amazon has an api for that?
19:53 sri not for something like pusherapp
19:58 perlrocks Twitter: "So I lied, Chris Browns Album is extra mojolicious" --Colbssville http://twitter.com/Colbssvil​le/status/47023787186728960
20:23 abra_ left #mojo
20:39 hoelzro left #mojo
20:58 giwi left #mojo
20:59 giwi joined #mojo
21:22 alnewkirk-away joined #mojo
21:28 tempire I wonder how many dependents Chris Brown has
21:29 tempire sri: How much time do you spend working for clients vs working on neat stuff like mojo & pp mongodb implementations?
21:29 tempire or do you figure out ways to combine the two
21:29 sri always varies
21:30 sri hope i can combine both more often in the future :)
21:31 tempire I presume your work on catalyst & mojo generates clientele over time, in addition to word of mouth
21:33 tempire The more experienced I get, the more I realize I need to author something with staying power, and generate a community around it, as opposed to just working on other folks' projects.
21:33 sri it's mostly word of mouth and german clients
21:34 sri i've not earned much directly resulting from my open source work yet
21:39 alnewkirk-away left #mojo
21:41 sri actually i'm even trying to move away from consulting
21:44 giwi left #mojo
21:46 sri community building sure is fun, but can also burn you out very very fast
21:50 giwi joined #mojo
21:54 tempire away from consulting?  what else is there?
21:54 sri becoming a web service provider
21:55 tempire it seems to me, for community building, it's best to have a teammate.  someone to pull you up when you get beaten down.
21:55 tempire so I take it you'll be spending next weekend making a perl ptrace implementation?
21:55 sri not that kind of web service :)
21:56 tempire clearly a placekitten.com competitor, then.
21:56 sri you'll see, if i ever get it finished :S
22:02 sri a teammate sure helps, but managing a community is not for the faint of heart
23:08 gizzlon left #mojo
23:08 gizzlon joined #mojo
23:09 kaare left #mojo
23:22 gslin If I run mojo application as PSGI (with plackup), how do I add middleware ?
23:23 gslin currently I run with: plackup -R lib,script,templates script/myapp

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