Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-25

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

All times shown according to UTC.

Time Nick Message
00:15 stereonaut left #mojo
00:23 stereonaut joined #mojo
00:39 stereonaut left #mojo
00:42 stereonaut joined #mojo
00:46 alnewkirk joined #mojo
01:01 tardisx left #mojo
01:04 tardisx joined #mojo
01:16 alnewkirk left #mojo
01:32 alnewkirk joined #mojo
01:33 kvorg left #mojo
01:38 kvorg joined #mojo
01:48 GitHub85 joined #mojo
01:48 GitHub85 mojo: master Sebastian Riedel * ad13726 (3 files in 3 dirs): added experimental non blocking DNS support to Mojo::IOLoop - http://bit.ly/9GkCpx
01:48 GitHub85 left #mojo
01:48 sri und3f[A]: that should make you happy tomorrow morning :D
01:57 GitHub190 joined #mojo
01:57 GitHub190 mojo: master Sebastian Riedel * 16cbe7d (1 files in 1 dirs): cleanup - http://bit.ly/dyKGQc
01:57 GitHub190 left #mojo
02:09 perlrocks Twitter: "Added non blocking DNS support to #mojolicious, please test! :) http://bit.ly/cDkJsr #perl" --kraih http://twitter.com/kraih/status/28651086284
02:11 GitHub78 joined #mojo
02:11 GitHub78 mojo: master Sebastian Riedel * 2db46bd (1 files in 1 dirs): cleanup - http://bit.ly/dwXtna
02:11 GitHub78 left #mojo
02:41 GitHub34 joined #mojo
02:41 GitHub34 mojo: master Sebastian Riedel * 52a8e5f (1 files in 1 dirs): cleanup - http://bit.ly/d9tNqU
02:41 GitHub34 left #mojo
03:48 GitHub8 joined #mojo
03:48 GitHub8 mojo: master Sebastian Riedel * 74037e8 (1 files in 1 dirs): added support for TXT records - http://bit.ly/dCWFjt
03:48 GitHub8 left #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:32 achromic left #mojo
04:32 MojoGuest618 joined #mojo
04:32 MojoGuest618 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=websocket+demo (1 hits)
04:32 MojoGuest618 left #mojo
04:32 achromic joined #mojo
04:44 GitHub126 joined #mojo
04:44 GitHub126 mojo: master Sebastian Riedel * f40960a (2 files in 2 dirs): fixed small descriptor leak - http://bit.ly/cbIUba
04:44 GitHub126 left #mojo
04:59 garu sri++
05:14 ysyrota joined #mojo
05:24 alnewkirk left #mojo
05:24 alnewkirk joined #mojo
05:52 koban joined #mojo
05:56 yakudzo joined #mojo
06:02 giwi joined #mojo
06:07 kvorg left #mojo
06:28 kvorg joined #mojo
06:30 ltriant left #mojo
06:30 marcus woot
06:47 koban left #mojo
06:49 fhelmber_ joined #mojo
06:56 koban joined #mojo
07:02 perlrocks Twitter: "Mojolicious and POE at the Rehovot Perl Mongers meeting on the 9th November http://bit.ly/aPAALx" --szabgab http://twitter.com/szabgab/status/28667974541
07:19 omega I feel like I have miss-understood something basic about mojo
07:19 omega now I do a lot of $self->render(json => { some => 'struct' });
07:21 omega but that somehow feels wrong?
07:22 omega shouldn't I just stash the data, and later decide on format?
07:40 omega so do I want to add my own handler?
07:40 omega can I do error handling there as well?
07:40 xantus I started MojoX::AIO
07:40 xantus I have it working too :)
07:41 xantus http://github.com/xantus/MojoX-AIO
07:41 xantus click watch
07:46 omega I only see an empty README?
07:47 xantus I haven't pushed
07:48 omega ahh
07:50 xantus I'm writing the test
07:50 xantus and docs
07:53 omega aha
08:14 xantus ok, done
08:14 spleenjack joined #mojo
08:18 xantus http://github.com/downloads/xantu​s/MojoX-AIO/MojoX-AIO-0.01.tar.gz
08:18 xantus on its way to cpan :)
08:27 xantus that felt good to get that out there
08:27 xantus gnight!
08:31 xantus Look for http://github.com/xantus/MojoX-AnyEvent  tomorrow
08:39 Topic for #mojo is now ♥ Join the revolution! ♥ | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:39 jamesw is that replacing Mojo::IOLoop with AE or adding the Mojo loop as an AnyEvent backend?
08:39 jamesw erm oops
08:39 jamesw stupid xchat
08:41 jamesw but really, no +t?
08:49 memememomo_ left #mojo
08:50 memememomo_ joined #mojo
08:57 rhaen moin!
09:13 marcus left #mojo
09:31 MojoGuest646 joined #mojo
09:31 MojoGuest646 From: http://news.ycombinator.com/item?id=1277067 (19 hits)
09:33 MojoGuest646 left #mojo
10:12 perlrocks Twitter: "Rehovot Perl Mongers: Mojolicious and POE: http://bit.ly/aXyH0k   Nov. 9, 2010" --ubruck http://twitter.com/ubruck/status/28676891514
10:14 draven joined #mojo
10:15 perlrocks Twitter: "RT @ubruck: Rehovot Perl Mongers: Mojolicious and POE: http://bit.ly/aXyH0k   Nov. 9, 2010" --erez http://twitter.com/erez/status/28677099701
10:45 arthas joined #mojo
10:51 draven ooh, dotan talking about mojo for israel.pm
11:12 dotan joined #mojo
11:17 koban left #mojo
11:31 alnewkirk left #mojo
11:49 draven dotan: cool to see you're talking about mojo
11:53 dotan draven: note the date changed http://rehovot.pm.org/meetings.html
12:00 MojoGuest896 joined #mojo
12:00 MojoGuest896 From: http://www.google.fi/search?sourceid=ch​rome&ie=UTF-8&q=websocket+demo (1 hits)
12:00 MojoGuest896 hey hou
12:02 MojoGuest896 left #mojo
12:02 MojoGuest171 joined #mojo
12:02 MojoGuest171 left #mojo
12:05 omega draven: wow, back to draven now?
12:05 draven urk
12:05 draven is now known as marcus
12:09 spleenjack left #mojo
12:10 spleenjack joined #mojo
12:17 giwi left #mojo
12:17 giwi joined #mojo
12:19 Akron joined #mojo
12:36 spleenjack left #mojo
12:49 arthas left #mojo
12:54 tl left #mojo
12:58 und3f[A] is now known as und3f
12:59 tholen joined #mojo
13:03 forwardever joined #mojo
13:08 spleenjack joined #mojo
13:14 koban joined #mojo
13:28 perlrocks Twitter: "Mojolicious convenient API (3) - Getting Started with Perl code samples http://bit.ly/9Vikg8" (ja) --wPerlnews http://twitter.com/wPerlnews/status/28690624369
13:32 a|newkirk[assoc] joined #mojo
13:37 sri xantus: do you really need to hack internals?
13:37 sri $loop->connect(socket => $handle, on_read => ...) might work too
13:38 arthas joined #mojo
13:44 xantus I tried that
13:45 xantus but I'll check again
13:46 sri let me know if there are any small changes required to make it work
13:52 xantus _prepare_connect calls methods on socket
13:52 xantus like connected
13:52 xantus I have to get to work... bbl
13:55 koban sri: will '$self->client->async->post(...)->start' send an async request?
13:57 giwi left #mojo
13:57 sri koban: in the reight context yes
13:57 koban rigth context? what does it mean?
13:58 sri it needs a running ioloop singleton
13:59 koban if i did these inside control'a action - will it work?
13:59 koban *control's
13:59 sri with the right server yes
14:00 koban rigth server = running server?
14:01 perlrocks left #mojo
14:02 und3f hi
14:02 und3f sri, you did it :)
14:04 rhaen who did what?
14:04 und3f rhaen, sri did async lookup
14:10 Akron Hi! How about value-checking per regex in Mojo::Base::attr - like __PACKAGE__->attr(['binary_v1','binary_v2'], qr/^[01]$/ => 0); and returning undef, if the parameter doesn't fit?
14:11 sri beyond the scope of Mojo::Base
14:11 Akron Oh - why?
14:12 sri because we don't need it in mojolicious
14:13 Akron Hm ... the scope of all Mojo classes is to fit the needs for mojolicious?
14:13 a|newkirk[assoc] is now known as alnewkirk
14:13 sri right
14:13 rhaen oh, btw - free amazon instances. Should we get one for Mojo stuff?
14:14 Akron Hm - I always thought of Mojo as being a toolkit for frameworks - and not a specific one.
14:14 sri Akron: with that you could justify about any addition
14:15 Akron sri: I think value checking is a quite basic and intuitive addition to the attr feature.
14:17 sri rhaen: what stuff?
14:22 GitHub102 joined #mojo
14:22 GitHub102 mojo: master Sebastian Riedel * d4454b5 (20 files in 3 dirs): cleanup - http://bit.ly/aTT1Fu
14:22 GitHub102 left #mojo
14:22 sri xantus: fixed
14:25 fhelmber_ left #mojo
14:27 koban left #mojo
14:32 rhaen sri: uhm, the mojo fan article shop
14:33 rhaen sri: hm, the irc client thing, booticlicious, tweetilicious, pastelicious, rhaenilicious
14:33 sri those free ec2 instances are not really free
14:33 rhaen hm.
14:33 rhaen not free as in beer?
14:33 sri as soon as you reach the limit you have to pay
14:33 rhaen beer! beer! beer!
14:34 rhaen btw, German is an exciting language. If you only change 4 letters in the word "mama" it will be changed to "beer"
14:34 rhaen isn't that awesome?
14:34 sri awesome!
14:34 rhaen works in English as well!
14:35 rhaen cool. eh?
14:37 kvorg left #mojo
14:39 GitHub6 joined #mojo
14:39 GitHub6 mojo: master Sebastian Riedel * dfad680 (2 files in 1 dirs): cleanup - http://bit.ly/cc5RmP
14:39 GitHub6 left #mojo
14:39 sri xantus: $loop->connect(handle => $handle);
14:39 sri that doesn't look too bad
14:47 sri hmm, maybe not such a good idea
14:48 GitHub187 joined #mojo
14:48 GitHub187 mojo: master Sebastian Riedel * 7a46a4b (2 files in 1 dirs): cleanup - http://bit.ly/cJmIZN
14:48 GitHub187 left #mojo
14:53 GitHub32 joined #mojo
14:53 GitHub32 mojo: master Sebastian Riedel * c1e0cdc (1 files in 1 dirs): cleanup - http://bit.ly/bQuIBZ
14:53 GitHub32 left #mojo
14:53 sri thats simpler
15:02 xantus sri++
15:08 xantus that works
15:09 xantus I can push the new code to cpan on the next mojo release
15:09 sri i can make a release soon i guess
15:09 sri just need more people to test the new resolver
15:10 xantus I might take over melo's AnyEvent module
15:11 forwardever added "test scaffolding" to resourceful routes plugin, http://github.com/forwardever/mojo​licious-plugin-resourceful_routes
15:11 sri xantus: that would be nice
15:14 xantus oh cool  http://github.com/clkao/AnyMQ
15:16 xantus also http://github.com/substack/dnode-perl
15:16 forwardever sri: just an idea: $t->has_form_field(name => 'foo', value=>'bar', type=>'text'); would be cool, (name/type/value all optional)
15:25 sri forwardever: that seems very limited
15:26 forwardever sri: do you mean the has_form_field method?
15:26 sri yes
15:29 forwardever thought that form testing is a frequent problem that has to be solved, while writing these tests on your own is complex enough to justify a central method for that in Test::Mojo
15:31 sri you test if elements are there
15:31 sri not that form elements have a specific attribute on the client side
15:32 sri not a common thing at all
15:32 sri this is backwards
15:33 sri after a successful form submit you would instead look for a confirmation message or so
15:33 sri before you would just check for presence of elements
15:33 sri thats something css3 selectors do very very well
15:35 sri $t->element_exists('input[name="f​oo"][value="bar"][type="text"]');
15:35 sri it's all there
15:36 sri selectors can be prettier of course, i just wanted to pivk up your example
15:36 sri *c
15:37 forwardever okay, will check that out, not familiar with this part of mojolicious so far
15:37 sri maybe you should wait with suggestions for additions until you are ;p
15:39 Akron sri: Would it be "okay practice" to do something like "use <appropriatepath>;" at top of a plugin with something that does "BEGIN { *{'Mojo::Base::attr_re'} = sub { ...} }" to create a global attr_re?
15:40 sri Akron: why not a separate namespace?
15:40 Akron sri: For base-using more than one module?
15:41 sri just use multiple inheritance if you have to
15:41 Akron sri: And make all the OOP-angel cry?
15:42 sri it's way less evil than your plugin above
15:42 sri but well, it's your plugin
15:43 Akron sri: Yeah - but I don't want to be evil ... but I think an attr_re is really useful in my case. Hmm ...
15:46 sri but i hate the whole idea of regex constraints
15:47 Akron sri: Okay. I am going with my own Plugin-with Base-Class, inheriting from Mojo::Base.
15:47 Akron sri: Plugin-width.
15:48 sri false sense of security and all
15:48 sri if you have an accessor with constraint, what keeps a user from using $object->{foo} = 'lala'
15:49 sri as a simple example
15:49 sri perl is so dynamic, in the end all you can really do is document the expected call conventions in pod
15:50 sri so thats all i do these days :)
15:50 sri minimalism
15:51 Akron Well - you can lift the security with closures, but the value checking is not a security thing - It's more for the "good practice" and warning.
15:52 sri i would rather check in the method using that attribute then
15:54 Akron There is more than one method using these attributes ...
15:59 stereonaut left #mojo
16:01 stereonaut joined #mojo
16:07 sri Akron: maybe you should just use moose
16:08 Akron sri: You are mean! ;)
16:09 sri naah, if it's the right tool for the job use it
16:10 perlrocks joined #mojo
16:10 sri btw. anyone using the latest github version on windows yet?
16:10 sri i need test results for the next release
16:11 Akron sri: There is a difference between moose and adding 4 lines to get the solution I want.
16:14 stereonaut left #mojo
16:17 forwardever sri: just installed latest git version via cpanm on windows, no errors or warnings during install, if you mean that
16:17 sri thats good
16:19 marcus meh
16:20 stephen joined #mojo
16:21 GitHub54 joined #mojo
16:21 GitHub54 mojo: master Sebastian Riedel * f1baaf3 (3 files in 3 dirs): fixed typos - http://bit.ly/aXCbq9
16:21 GitHub54 left #mojo
16:22 kvorg joined #mojo
16:30 ysyrota left #mojo
16:30 stereonaut joined #mojo
16:39 garu are template layouts for the render() side only? I don't see them documented in Mojo::Template at all
16:39 garu (only in M:Lite's pod)
16:41 garu hmmm... I can't see documentation for 'extends' in Mojo::Template either :(
16:51 arthas left #mojo
16:57 dotan garu: looks like layout and extends are actually handled by MojoX::Renderer, and they're stash keys.
16:59 garu dotan: and yet you can call them directly from your template :)
16:59 dotan garu: ok, they're both magic stash values (referenced in MojoX::Renderer::render()) *and* helper methods added in Mojolicious::Renderer
17:00 garu yup
17:01 garu but shouldn't they be at least mentioned/linked on the tempate pod? I mean, looks to me like they were meant to be used for templating and templating alone... feels a little weird not to see them there - even b() is there!
17:02 garu *template
17:04 sri garu: not at all
17:04 sri helpers are a way higher level concept
17:04 sri they do not exist on the Mojo layer
17:05 sri the rendering guide explains extends of course
17:06 garu not even a "See Also" mention? ;)
17:07 garu okay, I won't go there... but I still think people might miss those cool functionallities if they look at M:Template only
17:08 sri they shouldn't look there ;p
17:08 sri the rendering guide is for normal users
17:08 sri and it has a see also from every single module
17:08 dotan garu: M::Template only does epl template syntax, you need all the extras to get ep templates.
17:09 sri (indirectly)
17:09 garu ok, I'm convinced :)
17:09 sri \o/
17:10 sri http://codebutler.com/firesheep # cool
17:24 spleenjack left #mojo
17:28 marcus does extends and template layouts work with TT?
17:29 garu marcus++ # very good question :)
17:31 baton8 left #mojo
17:31 sri i don't know much about the tt renderer, but it's likely
17:32 sri MojoX::Renderer is mostly template system agnostic
17:33 sri just stuff like tag helpers don't work for obvious reasons
17:37 dotan marcus: I think vti added layouts and such to the TT plugin - look at the tests: http://github.com/abh/mojox-rend​erer-tt/blob/master/t/lite_app.t
17:39 dotan OK, no, he added helpers, not layout - you use TT wrappers instead
17:41 dotan Although I played around with mixing renderers and I think I got a layout in HAML to wrap an ep template.
17:41 sri thats the ultimate goal of MojoX::Renderer
17:42 sri it should allow you to use the right template system for the job
17:42 sri even if it means multiple
17:42 sri so if there's something we can do to improve that it will be done :)
17:44 * sri wonders if h. is now obsolete
17:45 sri since you can just use c.helper
17:51 dotan left #mojo
17:53 stereonaut left #mojo
17:55 stereonaut joined #mojo
18:01 Htbaa joined #mojo
18:30 spleenjack joined #mojo
18:39 ashleydev left #mojo
18:40 ashleydev joined #mojo
18:53 vti_ hm.. i have to change some plugins too
19:00 vti_ and tests became slower
19:45 MojoGuest715 joined #mojo
19:45 MojoGuest715 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&amp;usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (1 hits)
19:45 MojoGuest715 left #mojo
20:07 stephen left #mojo
20:12 Htbaa left #mojo
20:39 stephen joined #mojo
20:40 alnewkirk left #mojo
20:48 forwardever sri: element_exists, text_is and text_like work as documented, would it make sense to have a method element_text_exists, e.g. to look if table cell (td) with certain content exists
21:01 ltriant joined #mojo
21:01 baton8 joined #mojo
21:02 stereonaut left #mojo
21:05 stereonaut joined #mojo
21:28 perlite joined #mojo
21:28 forwardever left #mojo
21:29 perlite_ left #mojo
21:30 stephen left #mojo
21:36 stephen joined #mojo
22:00 stephen left #mojo
22:11 stereonaut left #mojo
22:23 und3f is now known as und3f[A]
22:53 sri vti_: what do you mean?
23:07 GitHub134 joined #mojo
23:07 GitHub134 mojo: master Sebastian Riedel * c9a71aa (1 files in 1 dirs): made tests a bit faster again - http://bit.ly/bBVqzv
23:07 GitHub134 left #mojo
23:07 sri vti_: if you meant those :)
23:08 sri localhost now has a shortcut
23:49 alnewkirk joined #mojo

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