Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-27

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

All times shown according to UTC.

Time Nick Message
01:31 memowe_ joined #mojo
01:31 memowe left #mojo
01:43 stephen left #mojo
01:48 Akron left #mojo
02:39 DaTa left #mojo
02:58 polvo joined #mojo
03:10 DaTa joined #mojo
03:25 achromic left #mojo
03:31 achromic joined #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
05:11 achromic left #mojo
05:14 ysyrota joined #mojo
05:40 MojoGuest704 joined #mojo
05:40 MojoGuest704 left #mojo
06:00 achromic joined #mojo
06:28 ltriant left #mojo
06:28 fhelmber_ joined #mojo
06:41 baton8 left #mojo
06:41 baton8 joined #mojo
06:47 baton8 left #mojo
06:47 baton8_ joined #mojo
07:05 baton8_ left #mojo
07:05 baton8 joined #mojo
07:13 marcus sri: I think you're making a very good choice in not allowing constraints into Mojo::Base
07:16 garu marcus: is there a blog post somewhere regarding your last tweet? :)
07:16 marcus garu: no
07:18 garu marcus: then can you please explain why accessor constraints are a horrible idea?
07:19 y0j left #mojo
07:20 marcus garu: because you c't enforce them runtime. In for instance objective-c it makes sense, because the compiler can check that you are actually passing the correct kind of object.
07:29 y0j joined #mojo
08:26 spleenjack joined #mojo
09:15 vti_ i am not a help vampire :(
09:16 marcus agree
09:16 marcus more like a help zombie
09:16 marcus :D
09:16 vti_ ;p
09:16 marcus walking dead is teh shit btw
09:16 * marcus just bought an apartment
09:16 marcus BRAND NEW
09:17 vti_ congrats, already drunk?
09:17 marcus no, I'm at work
09:17 marcus http://www.finn.no/finn/realestate/ho​mes/object?finnkode=24038649&sid=​sid/2010/10/27/11/xz0821288170329709y
09:17 marcus will be done in march
09:19 vti_ looks nice :)
09:22 yakudzo marcus, gratz (:
09:23 marcus thanks :)
09:23 omega marcus: wow! cool, congrats :)
09:24 marcus omega: thanks :)
09:27 polvo is $r->route(...)->get->to(...) supported in 0.999931 ?
09:29 kvorg joined #mojo
09:45 spleenjack left #mojo
11:33 koban joined #mojo
11:35 dotan joined #mojo
11:43 spleenjack joined #mojo
11:48 spleenjack left #mojo
11:50 omega is there something in mojo preventing me from using 409 Conflict?
11:50 omega if I stash(status => 404) I get 404, if I stash 409, I get 500, everything else stays the same?
11:51 omega bah
11:51 omega sorry
11:51 omega ETOMANYTESTS
11:55 daxim joined #mojo
12:11 daxim hello #mojo, plat_forms has announced the formal call for applications: http://www.plat-forms.org/platforms-announcement
12:20 spleenjack joined #mojo
12:20 forwardever joined #mojo
12:24 forwardever sri: i renamed resourcefull-routes plugin to mojox-scaffold, however, i will rename it again to SimpleCRUD if you think it could get in conflict with core namespace strategy
12:27 dotan forwardever: this must have come up when doing the resource stuff: what's the best place to put the common code that gets a resource by the params, which you use from multiple controller actions?
12:33 forwardever dotan: not sure if I understand your question, but will try to answer: you will find some information on namespaces in the README file of the plugin, so you can choose whatever namespace you want, e.g. you could set $self->routes->namespace("MyApp::Controllers"); first and all controllers generated by the plugin would be in the namespace MyApp::Controllers::Resource, but you also leave it as is,
12:33 forwardever so controllers would be in the MyApp::Resource namespace
12:34 forwardever but ask again if that is not what you meant
12:36 dotan forwardver: not what I meant, my question is much more basic I think.
12:36 omega like a data source?
12:37 omega or something that happens on each request?
12:37 dotan forwardver: http://github.com/dotandimet/Allenb​y/blob/master/lib/Allenby/Slide.pm - show() and edit() do the same thing, the only difference is that one puts the data in a form.
12:38 arthas joined #mojo
12:38 dotan omega: not on each and every request, but post/show/1 and post/edit/1 both need to load post 1 somewhere - a non-action method of the controller
12:41 omega mhm
12:41 omega can't you just have a sub and call from both?
12:47 forwardever dotan: the plugin is just a way to get you started quickly, so after the resource (controller,templates) have been created, you can do whatever you want, e.g. create new methods in that controller that are shared by other methods
12:49 kvorg1 joined #mojo
12:49 kvorg left #mojo
12:52 forwardever dotan: the routes created by the resourceful routes plugin are actually post/1 and post/1/edit :)
12:53 kvorg joined #mojo
12:53 kvorg1 left #mojo
13:01 dotan forwardver: better - I should remember to set a default :)
13:03 dotan omega: if I add a method to the controller to call from both actions, I think I ought to hide it from the routes (there's a method in routes for that).
13:03 kvorg left #mojo
13:05 forwardever dotan: if I get you right, you are using action placeholder in your routes, so that each method of a controller can be called?
13:07 dotan forwardever: yep, the default route mojo app generate creates.
13:07 dotan I should probably replace it with explicit routes.
13:07 dotan Then I can also add names, and form_for will maybe work
13:07 dotan (route names)
13:08 forwardever I'm not sure whether the fallback route you mention is a good way, asked sri about it yesterday, at least in rails, it is not recommended to use these routes as people can get access to any action in any controller
13:11 dotan forwardever: yep - sri has a mechanism to hide certain actions (he hides all the Mojolicious::Controller methods, for example), but if I want to specify explicit actions, I might as well write my own route(s).
13:15 forwardever one way to do it is descriped in my plugin, so if you want to do it manually, this one might help: http://pastie.org/1252660
13:15 omega dotan: ahh, true, yeah, not sure how to do that
14:02 sri polvo: no, that is not even in master
14:13 sri http://www.cpantesters.org​/distro/M/Mojolicious.html # lets hope it stays all green :)
14:18 sri marcus: congrats, looks great
14:24 y0j left #mojo
14:25 xantus http://github.com/clintongormley/ElasticSearch.pm
14:28 xantus sri: damn you for removing old websocket compatability
14:29 xantus :(
14:31 xantus I checked my google tv last night...it uses the old proto (android 2.1)
14:37 y0j joined #mojo
14:59 sri aww
15:09 koban left #mojo
15:18 xantus yeah damn..
15:26 MojoGuest696 joined #mojo
15:26 MojoGuest696 From: http://www.google.co.kr/search?sourceid=​chrome&ie=UTF-8&q=websocket+demo (1 hits)
15:26 MojoGuest696 left #mojo
15:49 jfuller left #mojo
15:57 sri from what i heard chrome will soon break draft 76 again
15:57 sri even though the new handshake is not finished
15:57 sri that would mean two more breakages
15:57 sri first packet framing then handshake
15:59 sri btw. riak search is brilliant
16:09 crab do tell?
16:24 sri i'm very impressed with riak so far
16:25 perlrocks Twitter: "Blog updated. - [Perl] Mojolicious:: Lite to try a Web framework [3] - http://ow.ly/30kNd" (ja) --hid_tgc http://twitter.com/hid_tgc/status/28904897433
16:25 perlrocks Twitter: "RT @ hid_tgc: Blog updated. - [Perl] Mojolicious:: Lite to try a Web framework [3] - http://ow.ly/30kNd" (ja) --AE_PerlIsm http://twitter.com/AE_PerlIsm/status/28904898318
16:26 sri you add a new json file to an indexed bucket and it is almost instantly searchable
16:27 sri https://wiki.basho.com/displa​y/RIAK/Riak+Search+-+Querying
16:27 sri everything is even http
16:30 perlrocks Twitter: "RT! Hid_tgc: Blog updated. - [Perl] Mojolicious:: Lite to try a Web framework [3] - http://ow.ly/30kNd" (ja) --perlism http://twitter.com/perlism/status/28905247392
16:43 ysyrota left #mojo
16:47 Htbaa joined #mojo
16:48 forwardever left #mojo
17:01 GabrielVieira joined #mojo
17:05 kvorg joined #mojo
17:28 daxim left #mojo
17:38 spleenjack left #mojo
17:44 dotan left #mojo
18:05 perlrocks Twitter: "Rehovot.pm Meeting on 9 November, 2010: Mojolicious and PoE http://bit.ly/dpzmyL # planetmandriva" (fil) --mandrivacooker http://twitter.com/mandriv​acooker/status/28912222765
18:18 stephen joined #mojo
18:32 arthas left #mojo
18:49 marcus sri: thanks
18:51 perlrocks left #mojo
18:52 perlrocks joined #mojo
18:52 perlrocks left #mojo
18:53 perlrocks joined #mojo
19:53 Htbaa left #mojo
20:02 spleenjack joined #mojo
20:21 kvorg left #mojo
20:24 kvorg joined #mojo
20:24 dotan joined #mojo
20:34 sri hmm, DBD::Pg async api looks interesting
20:47 GabrielVieira left #mojo
20:53 perlrocks left #mojo
20:56 perlrocks joined #mojo
21:02 perlrocks left #mojo
21:03 und3f[A] is now known as und3f
21:08 DaTa left #mojo
21:10 kvorg left #mojo
21:10 kvorg joined #mojo
21:11 ltriant joined #mojo
21:11 vti_ perlrocks, come back!
21:15 * sri kicks perlrocks
21:16 perlrocks joined #mojo
21:16 sri perlrocks: stop crashing, k?
21:17 vti_ time to tweet :D
21:17 sri stupid bot is still running on an ioloop version from half a year ago :(
21:17 perlrocks Twitter: "How to avoid #Unicode pitfalls in #Mojolicious #perl http://bit.ly/aPSIKS" --vtivti http://twitter.com/vtivti/status/28925300059
21:19 sri vti++
21:19 perlrocks Twitter: "RT @vtivti: How to avoid #Unicode pitfalls in #Mojolicious #perl http://bit.ly/aPSIKS" --kraih http://twitter.com/kraih/status/28925419281
21:19 vti_ i am thinking about posting regularly
21:22 spleenjack left #mojo
21:24 stephen left #mojo
21:30 vti_ i've got like 60+ visitors due to those japanese invadors
21:30 stephen joined #mojo
21:31 sri :o
21:31 vti_ there was a link to my websockets article
21:41 und3f is now known as und3f[A]
21:46 kvorg left #mojo
22:04 xantus well, we can move with the target and build cool things, or ignore websockets and miss the boat
22:14 marcus vti_: all your articles are unread again
22:14 marcus in googl reader
22:15 vti_ marcus: i have to reread rss specs
22:15 sri xantus: i hope the chrome folks wait till the spec is finished this time
22:15 polvo how do i make a custom 'not found' route?
22:15 marcus vti_: yeah, seems to happen every time you have a new post
22:17 sri polvo: $r->route('/(*everything)')->to(...);
22:17 polvo sri, like i thought :)
22:18 sri or you just define a not_found.html.ep template
22:19 fhelmber_ left #mojo
22:20 polvo sri, no, i need a specific controller
22:22 sri internally there are multiple cases of not_found, like rendering without finding a template, but if you don't care about those *everything is what you want
22:24 sri those are just a safety net though and shouldn't happen in production apps
22:25 polvo sri, i just want to do redirects depending on a session data
22:25 sri ah
22:25 sri btw. screw couchdb, i'm switching to riak ;p
22:26 mcmahon joined #mojo
22:27 vti_ ;D
22:27 mcmahon Anyone have a quick way to randomize the port for Test::Mojo? Multiple users building Mojo on the same box.
22:27 sri it is randomized
22:27 sri actually even better than random
22:28 sri http://github.com/kraih/mojo/blo​b/master/lib/Mojo/IOLoop.pm#L248
22:28 sri it checks if the port is in use
22:28 mcmahon Odd. I got port already in use from Daemon.pm during the tests.
22:29 sri odd
22:29 mcmahon 0.99931, right?
22:29 sri freak accident?
22:29 sri all versions since last year
22:29 mcmahon Once, yeah, three times...
22:29 sri hmm
22:30 sri if you have a test case let me know
22:30 mcmahon WIll try to make one - thanks.
22:31 sri if there's a bug it should be easy to fix
22:32 mcmahon Well, we're past it for the moment - will try to put a test together and (hopefully) a fix too. Thanks!
22:33 sri i'll try parallel testing of 5 mojolicious clones
22:34 dotan left #mojo
22:47 sri no luck
22:54 polvo what is the parameter to $renderer->default_handler(); ? I'm trying 'tt' and it doesn't work, though render(handler => 'tt') works
23:00 sri it's just a hint for auto detection
23:00 sri doesn't do much anymore these days
23:03 polvo sri, is there any way to choose preferrable handler?
23:03 sri like you did
23:03 sri you can also set handler in your routes
23:03 polvo sri, i want not_found.html.tt instead of not_found.html.ep :)
23:04 polvo as an example
23:04 sri umm
23:04 sri why do you need both?
23:05 sri delete not_found.html.ep
23:05 sri auto detection should pick up tt
23:05 polvo sri, i don't. i had them both in the directory and discovered this behavior
23:06 polvo just wondering
23:07 sri hmm, actually default_handler is useless with the latest detection improvements
23:07 sri it doesn't do anything anymore xD
23:11 sri well almost
23:16 GitHub77 joined #mojo
23:16 GitHub77 mojo: master Sebastian Riedel * 473f700 (5 files in 4 dirs): cleanup - http://bit.ly/afXMAS
23:16 GitHub77 left #mojo
23:17 sri inline templates are one of the few cases where it still makes sense
23:21 vti_ marcus: i fixed something, i hope it will work
23:22 polvo is it possible to get destination address from a bridge? headers->referrer is undef
23:22 polvo oops. forget 'headers->referrer' )
23:23 polvo but question is the same
23:30 polvo never mind. req->url is what i need
23:32 MojoGuest993 joined #mojo
23:32 MojoGuest993 From: http://news.ycombinator.com/item?id=1277067 (23 hits)
23:32 MojoGuest993 left #mojo
23:33 sri btw. the walking dead is awesome
23:37 vti_ where do you get the series?
23:42 mcmahon left #mojo

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