Camelia, the Perl 6 bug

IRC log for #mojo, 2011-11-26

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

All times shown according to UTC.

Time Nick Message
00:21 j3nnn1 joined #mojo
00:41 smpb joined #mojo
01:16 elb0w_ joined #mojo
01:37 ZadYree Is it possible to use UTF-8 with JSON && Mojo?
01:45 gshank joined #mojo
01:58 gshank joined #mojo
04:40 MojoGuest473 joined #mojo
04:40 MojoGuest473 From: http://www.google.com/url?sa=t&rct=j&am​p;q=html5%20irc&source=web&cd=4&amp​;ved=0CEUQFjAD&url=http%3A%2F%2Fdev.xan​tus.org%2F&ei=1mzQTpa1NMjA2gWgvc2gDw&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
04:41 MojoGuest278 joined #mojo
04:41 MojoGuest278 From: http://networkedblogs.com/33Knp (5 hits)
04:50 Eugene1 joined #mojo
04:50 anaio joined #mojo
04:51 pl0p___ joined #mojo
04:52 tempire joined #mojo
04:54 perlite joined #mojo
04:59 Eugene joined #mojo
05:01 perlite joined #mojo
05:01 omega joined #mojo
05:01 reyjrar joined #mojo
05:01 marty joined #mojo
05:01 mike_ joined #mojo
05:01 ruz joined #mojo
05:04 pl0p joined #mojo
05:48 MojoGuest429 joined #mojo
05:48 MojoGuest429 From: http://networkedblogs.com/33Knp (6 hits)
05:49 MojoGuest756 joined #mojo
05:49 MojoGuest756 From: http://networkedblogs.com/33Knp (7 hits)
05:50 MojoGuest569 joined #mojo
05:50 MojoGuest569 From: http://news.ycombinator.com/item?id=1277067 (150 hits)
05:51 MojoGuest173 joined #mojo
05:51 MojoGuest173 From: http://news.ycombinator.com/item?id=1277067 (151 hits)
06:02 abra__ joined #mojo
06:04 Eugene joined #mojo
06:27 Vandal joined #mojo
06:52 Debolaz joined #mojo
06:58 batman joined #mojo
07:07 * sri yawns
07:16 tholen joined #mojo
07:36 mire joined #mojo
07:39 sugar joined #mojo
08:46 marcus moin sri
08:47 sri moin marcus
09:03 Foxcool joined #mojo
09:09 bigbootay joined #mojo
09:10 Htbaa joined #mojo
09:18 Eugene joined #mojo
09:23 Htbaa left #mojo
09:52 Vandal joined #mojo
09:59 ispy_ joined #mojo
10:08 bosphorus joined #mojo
10:11 simengangstad joined #mojo
10:26 bosphoru_ joined #mojo
10:35 noganex_ joined #mojo
11:03 f00li5h joined #mojo
11:16 simengangstad joined #mojo
11:44 andrefs joined #mojo
12:00 mire joined #mojo
12:13 Psyche^ joined #mojo
12:37 Vandal joined #mojo
12:54 Akron joined #mojo
12:56 Akron ZadYree: As far as I know there's no possibility to use JSON in Mojo with anything else than utf-8.
12:57 Eugene joined #mojo
12:58 simengangstad joined #mojo
13:00 marcus json itself specifies utf8
13:00 simengangstad Hey, when Im trying to set the expiration time with; app->session->default_expiration(86400); I only get: can't call method "default_expiration" on unblessed reference at stash line 4. (In the terminal).. What happens?
13:03 marcus hi simen.
13:03 simengangstad hi marcus
13:03 marcus simengangstad: it should probably be app->sessions
13:04 simengangstad thank you! It was that!
13:04 marcus app->session gives you a hashref which you can set session data in.
13:05 simengangstad yea, like cookies, passwords and usernames?
13:12 marcus well yeah, it stores it in a signed cookie on the client
13:15 simengangstad marcus: I`ve seen on google code in, and there about 25 tasks, and 24 is about translating guides…. :/
13:16 marcus simengangstad: actually, there are two tasks in there that aren't about translating guides, and one of them should be split up into multiple tasks
13:16 marcus one is making a web sockets demo for the mojolicio.us homepage
13:18 marcus the other one is making open source examples for mojolicio.us, which should be split up into, 'make a simple blog in mojolicious', 'make a simple wiki for mojolicious', 'make a simple sql db interface for mojolicious', 'make a simple mongodb interface for mojolicious', 'make a simple forum for mojolicious'.
13:18 marcus there's also another task missing which is 'speed up the mojolicious test suite by making blocking tests non blocking'
13:18 marcus any of those tasks sound interesting to you_
13:19 simengangstad Okay, I need more reading!
13:19 simengangstad I think all the coding task is interesting
13:19 simengangstad beacause it gives challenges
13:19 marcus 'make a simple IM client for mojolicious', 'make a simple IRC client for mojolicious' two more interesting tasks
13:19 marcus I'll try to get the task list updated.
13:20 simengangstad But Im not familiar with web socket, what is that?
13:21 BinGOs I had played with the latter.
13:21 BinGOs ie. IRC client.
13:22 simengangstad I saw that, good example!
13:22 BinGOs oh not that one. something else entirely.
13:23 BinGOs just an IRC client that used Mojo::IOLoop
13:23 BinGOs more a mash-up of Mojo::IOLoop and Parse::IRC for my own evil purposes.
13:25 marcus BinGOs: you're a bit old for google code in :)
13:26 BinGOs ):
13:27 marcus BinGOs: be glad, it means you're old enough for alcohol =)
13:29 BinGOs heh
13:33 marcus sri: which tests was it you wanted sped up by making them non-blocking?
13:33 marcus adding to gci
13:34 sri marcus: not sure what you mean with making them non-blocking
13:35 marcus sri: maybe I misunderstood you then
13:35 sri think what i said was make some tests block a little less
13:36 marcus you solicited help in speeding up the test suite, can you explain further?
13:36 sri like lower timeouts and sleep values and the like
13:36 marcus aha :)
13:36 marcus I misunderstood then
13:36 marcus which tests?
13:36 purl which tests are failing?
13:36 sri the problem really is that lowering those values can impact portability
13:36 sri all tests
13:36 purl all tests are green
13:37 sri so the real task is play with those values and run tests repeatedly on many different platforms
13:38 sri or find safe ways to make tests faster
13:38 marcus yupp
13:39 marcus http://www.google-melange.com/gci/task​/view/google/gci2011/7196209?validated#
13:52 mire joined #mojo
14:09 bosphorus joined #mojo
14:09 marcus simengangstad: I made a bunch of programming tasks now, and are getting them approved by the GCI guys
14:15 simengangstad okay, thanks!
14:18 ZadYree <Akron> ZadYree: As far as I know there's no possibility to use JSON in Mojo with anything else than utf-8. # Indeed, I was stupid enough to forget to mention the utf8 pragma. Thank you anyway!
14:44 bosphoru_ joined #mojo
14:50 Akron ZadYree: Ah, okay. NP!
14:53 sri http://dev.w3.org/csswg/selectors4/#subject # interesting, the new description makes it sound like our old implementation was spot on
14:53 sri and they changed the subject syntax again
14:54 sri 1) $OL > LI 2) ?OL > LI 3) OL! > LI
14:54 sri exclamation mark is my favorite so far
14:55 sri "Although the element structure that the selector represents is the same with or without the exclamation mark, indicating the subject in this way can change which compound selector represents the subject in that structure."
14:55 sri so no multiple matches for the subject
15:01 sanya_com_ua joined #mojo
15:05 sanya_com_ua Hi, people. Need help. Layout doesn't work when using inline template. Is this feature or bug?
15:18 sri sanya_com_ua: neither i suppose
15:20 marty sanya_com_ua:  check your layout section and make sure you have no leading spaces before @@
15:31 sri marty: it doesn't work
15:31 purl It's a Y2K error!  Panic!  Sue!
15:31 sri just a missing feature
15:40 GitHub65 joined #mojo
15:40 GitHub65 [mojo] kraih pushed 1 new commit to master: http://git.io/_sFkKg
15:40 GitHub65 [mojo/master] added experimental layout support for inline templates - Sebastian Riedel
15:40 GitHub65 left #mojo
15:42 sri just trying it
15:42 sri not sure if it's actually a good idea
15:47 marty Ahh ok.  I see, I misunderstood the question.
15:49 j3nnn1 joined #mojo
15:51 marty Interesting.   I don't see much risk to your change sri.   Personally, if I needed to use a layout I would just move it to a template.  But timtowtdi is usually a good thing.
15:51 sri the risk is actually really high
15:52 sri it already screws up the POD browser and built in 500/404 templates
15:52 marty wow
15:52 sri all you need is a app->defaults(layout => 'foobar'); and it breaks
15:52 marty And I was thinking recursion would be the real issue.  That's why you are in charge.  :)
15:53 sri i tend towards not doing it atm, since the risk is too high
15:53 * marty nods
16:07 abra joined #mojo
16:09 GitHub88 joined #mojo
16:09 GitHub88 [mojo] kraih pushed 1 new commit to master: http://git.io/WpgIlA
16:09 GitHub88 [mojo/master] fixed a few small inline template issues - Sebastian Riedel
16:09 GitHub88 left #mojo
16:09 sri and gone again
16:11 sri now it's a feature
16:44 GitHub21 joined #mojo
16:44 GitHub21 [mojo] kraih pushed 1 new commit to master: http://git.io/r8oFQw
16:44 GitHub21 [mojo/master] improved renderer performance slightly - Sebastian Riedel
16:44 GitHub21 left #mojo
16:47 sri sucks that cpantesters is broken again :(
16:51 Eugene joined #mojo
17:07 Eugene joined #mojo
17:26 gbacon joined #mojo
17:36 Eugene joined #mojo
17:49 cstamas joined #mojo
17:50 cstamas hi
17:50 purl que tal, cstamas.
17:51 MojoGuest80 joined #mojo
17:51 MojoGuest80 From: http://www.google.com/url?sa=t&amp;rct=j&amp;q=&a​mp;esrc=s&amp;source=web&amp;cd=5&amp;ved=0CEIQFj​AE&amp;url=http%3A%2F%2Fdev.xantus.org%2F&amp;ei=​wybRTqnZFsXNsgbMu4T8DA&amp;usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&amp;sig2=DLLoQxkmd9bmoPYeLUkiYQ (1 hits)
17:51 diegok purl: tu español es muy malo!
17:51 purl diegok: huh?
17:51 cstamas Is it possible to mutually authenticate both sides of the ssl connection with mojolicious
17:51 cstamas ?
17:52 cstamas I want to create a service with accepts request from authenticated parties (who also authenticates the server)
17:52 diegok cstamas: huh?, both sides?
17:52 cstamas s/with/which/
17:53 cstamas custom CA, the client checking the server's cert and the server checking the client's
17:53 diegok authenticated users means a session and a user on your storage?
17:53 diegok cstamas: hm, I never got that, sorry :(
17:54 cstamas diegok: ok, never mind
17:54 cstamas I hang around a bit...
17:56 Eugene joined #mojo
18:03 Eugene joined #mojo
18:08 sri don't think we support client side ca certs yet
18:11 sri patches welcome
18:11 purl patches welcome is, like, always true or unless for search.cpan.org or swahili for "Put up or shut up."
18:13 sri implementation is trivial, but i expect flawless unit tests
18:16 cstamas sri: I found this thing http://search.cpan.org/~tempire/Mojolicious-Plugi​n-SslAuth-0.05/lib/Mojolicious/Plugin/SslAuth.pm
18:16 cstamas , but do not really get it.
18:16 sri unrelated
18:16 cstamas oh, ok
18:16 sri we have the server side, but you need to patch the client side
18:17 sri all the way up from Mojo::IOLoop::Client to Mojo::UserAgent
18:18 cstamas ok
18:26 Eugene joined #mojo
18:30 Eugene joined #mojo
18:32 bosphorus joined #mojo
18:38 kaare joined #mojo
18:45 Eugene joined #mojo
18:50 mire joined #mojo
19:15 tempire cstamas: you can authenticate both the client and the server ssl certs
19:17 tempire If you specify the custom CA and server cert/key in the --listen parameter of the server, you can examine the details of the client cert in the callback of Mojolicious::Plugin::SslAuth
19:17 tempire The client cert has to be issued from the same custom CA, of course.
19:44 cstamas tempire: I will take another look
19:44 cstamas tempire: I tried the sslauth string, but I do not get how can I specify a custom CA
19:45 cstamas otoh sri says that Mojo::UserAgent needs some development
20:37 metaperl joined #mojo
20:49 marcus Hohoho
20:49 * marcus is testing the christmas beer.
20:50 marcus We have a student who wants to make a forum example for mojolicious.
21:06 gbacon joined #mojo
21:06 gbacon_ joined #mojo
21:07 gbacon joined #mojo
21:20 chansen marcus: is it good, the christmas beer?
21:24 simengangstad joined #mojo
21:27 simengangstad Hey does anyone know a easier torturial than them on mojolicio.us? I liked the mojocast, but the guides are just confusing… :(
21:36 tempire cstamas: you need to specify a custom ca in the server…I don't see why you would have to specify a custom ca in the client.
21:36 tempire simengangstad: guides are very much subjective…there are a bunch of blog entries, it depends on what you're looking to understand
21:37 simengangstad okay, I going to google some.. :)
21:38 tempire there's stuff in the wiki as well, but beware, it's not monitored and sometimes out of date
21:38 tempire mojolicious moves very fast
21:39 tempire don't give up on the official guides, though…it may take a bit to understand the flow, but once you're familiar with them, they're very helpful and detailed
21:42 simengangstad ok, Ill just read more!
21:44 tempire also, the guides are meant to be read in the order they're listed on mojolicio.us/perldoc, if that helps
21:45 tempire ::lite, ::growing, ::routing, ::rendering, ::cookbook
21:47 tempire marcus: what's the coverage %?
21:56 diegok the coverage of beer during xmas?, 100% probably :-p
22:04 cstamas tempire: If I do not specify a CA how does it check its validity?
22:05 cstamas (the cert's validity)
22:06 tempire you're saying that the client wouldn't trust the server, and needs to verify its cert?
22:07 cstamas tempire: I am planning to write an application where security is important
22:08 diogo joined #mojo
22:08 cstamas tempire: and yes is the answer to the latest question
22:09 tempire ok, then I understand sri's response.  user agent doesn't handle that.
22:09 tempire though I have to wonder if ssl is the best solution for what you want
22:10 tempire as opposed to a public key type thing.
22:10 tempire of course, you know your system better than me, though.
22:11 tempire I guess that is the way openvpn works
22:12 tempire so nevermind
22:14 cstamas I am thinking of implementing something like puppet
22:14 cstamas (but now just a plan so...)
22:21 diegok cstamas: I would love to test a puppet implemented in perl :)
22:24 cstamas "slaughter" is a good start
22:24 cstamas it is developed by another guy
22:25 cstamas http://www.steve.org.uk/Software/slaughter/
22:27 cstamas it already has a great fundation
22:32 elb0w_ joined #mojo
23:31 j3nnn1 joined #mojo
23:32 jnap joined #mojo
23:32 elb0w_ joined #mojo

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