Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-17

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

All times shown according to UTC.

Time Nick Message
00:30 mspo yeah I've been trying to figure out more about using lists in templates
01:49 crab what about it?
02:50 xaka joined #mojo
03:37 qtxl joined #mojo
04:11 preflex left #mojo
04:15 preflex joined #mojo
05:02 mpgutta joined #mojo
05:05 mpgutta1 left #mojo
05:18 kaare joined #mojo
05:24 mpgutta1 joined #mojo
05:28 mpgutta left #mojo
05:38 perlrocks Twitter: "[Mojolicious:: Renderer] I'll behalf get_data_template without get_inline_template. What better name for Koch." (ja) --purasiibo http://twitter.com/purasiib​o/status/92468242869788672
07:34 Foxcool joined #mojo
07:42 preflex left #mojo
07:44 preflex joined #mojo
07:49 xaka left #mojo
07:55 kaare left #mojo
07:57 sh9 joined #mojo
08:03 kmx left #mojo
08:34 kaare joined #mojo
08:43 vishwanathms joined #mojo
09:08 j-v-e left #mojo
09:16 vishwanathms left #mojo
10:16 sugar joined #mojo
10:24 sh9 left #mojo
10:28 tabbi joined #mojo
10:29 tabbi left #mojo
10:44 dpiwowarski joined #mojo
10:44 dpiwowarski hi
10:45 dpiwowarski Is it possible to install mojo without ssh, only with ftp?
10:46 * sri waves
10:46 sri sure
10:52 dpiwowarski can you write me how to do it?
10:58 sri i don't have the time to talk you through it, but "use lib 'mojo/lib';" should point you in the right direction ;)
11:08 Foxcool_ joined #mojo
11:08 sh9 joined #mojo
11:10 Foxcool left #mojo
11:12 preflex left #mojo
11:15 preflex joined #mojo
11:16 dpiwowarski thx
11:17 dpiwowarski left #mojo
11:22 Foxcool_ left #mojo
11:25 Foxcool joined #mojo
12:03 abra joined #mojo
12:31 janus left #mojo
12:31 janus joined #mojo
12:42 mspo sri: re: lists in templates.  I guess I'm not comfortable doing regular perl code in templates or passing things other than plain text yet
12:42 mspo sri: I've been too busy at work to look at much recently
13:23 perlrocks Twitter: "1.64 Mojolicious http://ow.ly/1dQH57" (sw) --campuscodi http://twitter.com/campusco​di/status/92585220372578304
13:30 alnewkirk|com crab, you available?
13:30 alnewkirk|com seen crab
13:30 purl crab was last seen on #mojo 11 hours, 40 minutes and 42 seconds ago, saying: what about it?
15:03 perlrocks Twitter: "Mojolicious:: Lite are starting! / Mojolicious / allframeworks.ru - Blog about modern web development and tools http://t.co/PMdAxdX" (ru) --zzfc http://twitter.com/zzfc/status/92610440567328768
15:21 perlrocks Twitter: "@zzfc You should use morbo rather than mojo daemon --reload #mojolicious" --marcusramberg http://twitter.com/marcusramb​erg/status/92614942448025600
15:24 marcus oh, it's an old blog post
15:24 abra left #mojo
15:31 D4RK-PH0ENiX joined #mojo
15:34 d4rkie left #mojo
15:35 abra joined #mojo
16:00 crab alnewkirk: hello
16:00 purl privet, crab.
16:04 alnewkirk|com hey crab
16:04 alnewkirk|com i want to show you something
16:05 alnewkirk|com crab, http://scsys.co.uk:8002/123414
16:06 alnewkirk|com this is from an live app
16:06 alnewkirk|com crab, i want to move validation out of the before_dispatch hook, an into a "root" bridgr like we talked about
16:07 alnewkirk|com but i have trouble understanding bridges
16:28 sri wow, lion terminal will have 256 color support :o
16:28 sri took them quite some time
16:30 crab alnewkirk: reading now.
16:31 crab alnewkirk: all you really need to do is change "$routes = $self->routes" to "$routes = $self->routes->bridge->to('something#validate')"
16:32 crab where Something::validate does { my $self = shift; ...examine $self...; if (everything-ok) { return 1 } return 0; }
16:33 alnewkirk|com crab, yes, but wont that render '/' useless?
16:37 crab what does that mean?
16:37 purl That boy needs therapy.
17:00 xaka joined #mojo
17:17 alnewkirk|com crab, im rewritting the routes
17:23 crab ok...
17:24 alnewkirk|com http://scsys.co.uk:8002/123418
17:24 alnewkirk|com crab, im having issues with namespace begin applied to the routes beheanth it
17:26 crab what does that mean? is it applied, or not applied, and which do you want?
17:27 alnewkirk|com as stated in the docs, You can also change the default namespace for all routes in the application.
17:28 alnewkirk|com oh i see
17:28 alnewkirk|com doh
17:29 alnewkirk|com wait, i dont see
17:29 alnewkirk|com :}
17:30 alnewkirk|com crab, ...
17:30 alnewkirk|com given the example in the docs $r->route('/bye')->to('foo#bye', namespace => 'MyApp::Controller');
17:30 alnewkirk|com # /bye -> MyApp::Controller::Foo->bye
17:31 alnewkirk|com in my code ...
17:31 alnewkirk|com $routes->namespace("Application::Controller");
17:31 alnewkirk|com $routes->route("/users")->to('user#view_users');
17:31 alnewkirk|com i'd assume that to resolve ...
17:32 alnewkirk|com # /users -> Application::Controller::User->view_users
17:32 alnewkirk|com is that wrong?
17:35 crab what does it actually look for?
17:37 alnewkirk|com from the log file http://scsys.co.uk:8002/123421
17:37 Kulag left #mojo
17:42 Kulag joined #mojo
17:43 crab i do not think ->namespace is what you want.
17:44 crab instead i think maybe it's $routes = $routes->bridge->to(...)->to(namespace => '...');
17:44 crab oh, maybe you need ->route before the second to
17:48 crab (yes, you do)
17:48 crab (of course)
17:53 alnewkirk|com huh?
17:54 alnewkirk|com $routes = $routes->bridge->to(...)->to(namespace => '...'); ... why would i need two  to()s?
17:54 crab you need a route before the second to
17:54 crab $routes->bridge->to(...)->route->to(namespace => ...)
17:55 alnewkirk|com a route to what? and why?
17:55 alnewkirk|com a route to nothing?
17:55 crab you're creating a child route to set the namespace for all of its children.
17:55 crab yes, to nothing.
17:56 alnewkirk|com im almost certain theres a better approach to this sort of tree-building
17:57 alnewkirk|com see HTML::Zoom, etc
17:57 crab um.
17:57 crab what does HTML::Zoom have to do with routing?
17:58 alnewkirk|com nothing
17:58 vifo joined #mojo
17:58 alnewkirk|com ... the statement was a continuation of the previous remark
18:00 crab what is your better approach to tree-building?
18:02 alnewkirk|com $routes = $routes->bridge->to("contr​oller#validation")->route( namespace => "Application::Controller");
18:02 alnewkirk|com not working
18:02 purl see "doesn't work"
18:02 * crab smacks alnewkirk
18:02 alnewkirk|com :}
18:02 crab <crab> $routes->bridge->to(...)->route->to(namespace => ...)
18:02 alnewkirk|com doh
18:03 vifo Hi folks! I'm a Mojo starter and having some trouble with inline templates. Having a separate controller, inline template in controller is not used and the request takes a few seconds, before connection is dropped. Any hints? See http://pastebin.com/V7YYkHAH
18:04 * alnewkirk|com hugs crab ... and hope to not get pinched
18:04 crab vifo: without looking at your paste, i'd guess that you want to pass template_class => __PACKAGE__ to render
18:04 alnewkirk|com it works
18:05 vifo @crab: are you psychic? :)
18:05 vifo @crab: thanks for the hint, it works now
18:06 crab we are happy to serve
18:15 sh9 left #mojo
18:17 mattastrophe joined #mojo
18:23 mattastrophe left #mojo
18:29 vifo_used joined #mojo
18:31 tabbi joined #mojo
18:33 vifo left #mojo
18:36 mpgutta joined #mojo
18:40 mpgutta1 left #mojo
18:45 tabbi left #mojo
18:48 crab i really hate it when i'm not able to work properly.
18:50 perlrocks Twitter: "Great article by @amenonsen showing how to do tail -f in the browser using #Mojolicious and comet - http://t.co/03htziT" --marcusramberg http://twitter.com/marcusramb​erg/status/92667576068485120
18:53 vifo_used left #mojo
18:58 bosphorus left #mojo
19:10 alnewkirk|com dammit crab
19:11 alnewkirk|com bridge approach doesnt work either
19:11 marcus http://bottlepy.org/docs/dev/index.html
19:13 marcus If I ever need to do python, that seems nice.
19:36 crab wonder what i should write about next.
19:45 sri marcus: looks like http://flask.pocoo.org
19:45 sri crab: ideally something that gets asked a lot on the mailing list :)
19:49 * sri can't stand python decorators
19:50 crab can't think of anything at the moment, then.
20:01 crab "how to use python decorators with mojolicious"
20:01 crab (what is a python decorator?)
20:01 sri @foobar
20:01 sri they are really nice, but ugly
20:02 perlrocks Twitter: "Starting work on a cloud ERP package using #Mojolicious (http://t.co/3wxlsBY) for views and #MVCimple (http://t.co/AElvcSr) for models" --shiftycow http://twitter.com/shiftyco​w/status/92685549021822976
20:03 sri http://stackoverflow.com/questions/73​9654/understanding-python-decorators
20:26 vifo joined #mojo
20:31 kaare left #mojo
20:34 sugar left #mojo
20:55 perlrocks Twitter: "In mojolicious. but go if / myapp daemon, and the Nde Hey yo What is said that the plugin Xslate plackup script / myapp. . ." (ja) --toku_bass http://twitter.com/toku_bas​s/status/92698930416062464
21:00 Foxcool left #mojo
21:01 vifo left #mojo
21:39 perlite_ joined #mojo
21:42 perlite left #mojo
21:42 perlite_ is now known as perlite
22:04 Foxcool joined #mojo
22:22 Foxcool left #mojo
23:15 alnewkirk|com left #mojo
23:15 alnewkirk|com joined #mojo
23:32 mfridh left #mojo
23:50 Drossel joined #mojo
23:51 Kulag left #mojo

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