Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-31

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

All times shown according to UTC.

Time Nick Message
00:00 ispy_ joined #mojo
00:26 perlrocks Twitter: "@shadowcat_mst Wow, way to get #myjourneytoperl out there. :) 100 tweets with that hashtag since this morning! #perlrocks" --dccp http://twitter.com/dccp/status/53251788404555776
01:01 esskar2 left #mojo
01:02 esskar joined #mojo
01:42 tjfontaine left #mojo
03:07 tjfontaine joined #mojo
03:23 TheCritic left #mojo
03:25 TheCritic joined #mojo
03:51 TheCritic left #mojo
04:54 user joined #mojo
04:58 user left #mojo
05:21 kaare joined #mojo
05:51 AmeliePoulain joined #mojo
06:03 koban joined #mojo
06:39 ysyrota joined #mojo
06:46 Christian joined #mojo
06:46 Christian morning
06:48 breaker313 joined #mojo
06:50 alnewkirk left #mojo
06:58 Christian left #mojo
06:58 Christian joined #mojo
07:07 stephan48 tjfontaine: is your code opensource?
07:19 fhelmber_ joined #mojo
07:23 hziSot left #mojo
07:47 perlite left #mojo
07:47 perlite joined #mojo
08:02 fhelmber_ left #mojo
08:03 fhelmber_ joined #mojo
08:12 fhelmbe__ joined #mojo
08:15 fhelmber_ left #mojo
08:17 fhelmber_ joined #mojo
08:20 fhelmbe__ left #mojo
08:33 koban left #mojo
08:34 koban joined #mojo
08:37 koban left #mojo
08:43 koban joined #mojo
08:49 spleenjack joined #mojo
08:49 cosmincx joined #mojo
08:51 koban left #mojo
08:51 koban joined #mojo
08:54 Beirdo left #mojo
08:54 Beirdo joined #mojo
09:03 koban left #mojo
09:04 koban joined #mojo
09:08 koban left #mojo
09:08 koban joined #mojo
09:19 Christian left #mojo
09:22 Christian joined #mojo
09:25 marcus moin
09:25 marcus yay for sprint reviews
09:25 marc hey marcus
09:27 Christian left #mojo
09:27 marcus sup marc
09:28 marc marcus: not much
09:28 purl same here, dude
09:28 marc marcus: thinking of registering cpan and blogs.perl.org accounts
09:29 Christian joined #mojo
09:30 marcus marc: good idea
09:31 marc there's already a 'marc' on cpan, so i'm deciding on a concise, unique handle to use on both
09:32 marc i'll then re /nick on here
09:32 moritz just reverse it
09:32 moritz 'cram'
09:33 marc i find 'cram' a little... unpleasant
09:33 marc i have a few candidates: marcs, scram, masi
09:33 koban left #mojo
09:35 marc thoughts?
09:35 purl Mmm... donuts.
09:35 marc (i'm pretty crap at coming up with handles)
09:37 * moritz just registered the 'nogoodnicksleft' twitter account
09:38 marc ha ha
10:33 alnewkirk joined #mojo
10:36 prank left #mojo
10:37 prank joined #mojo
10:42 fhelmber_ left #mojo
10:48 marcus scram
10:48 marcus is awesome
10:53 koban joined #mojo
11:02 marc is now known as scram
11:02 scram applied for a pause account, registered a blog, and signed up to github with this nick
11:10 scram hmm, odd the blog isn't publishing to /users/scram
11:20 fhelmber_ joined #mojo
11:24 scram okay, messed up the original registration. all done now.
11:27 ok22 joined #mojo
11:28 fhelmbe__ joined #mojo
11:30 fhelmber_ left #mojo
11:32 marcus yay
11:32 scram http://blogs.perl.org/users/scram/
11:32 scram i took this one step further
11:32 scram :)
11:46 dotan joined #mojo
12:13 ispy_ left #mojo
12:20 TheCritic joined #mojo
12:27 dotan pushing giant pngs to github isn't frowned upon, is it?
12:27 breaker313 left #mojo
12:27 marcus what about giant dongs?
12:30 dotan marcus: haven't tried that. Is there an Acme module I can use?
12:31 marcus purl: jerk it!
12:31 purl marcus: YOU'RE CORDIALLY INVITED (OPEN CARD) TO SUCK COCK WHAT WILL I WEAR
12:33 dotan marcus: oh, I found it - $graph->as_gd
12:38 metaperl2 left #mojo
12:41 ok22 left #mojo
12:43 metaperl joined #mojo
13:14 TheCritic left #mojo
13:16 TheCritic joined #mojo
13:28 perlrocks Twitter: "The filter system in CGI mode Mojolicious Plack:: Middleware as I tried to use the / MojoX-Util-BodyFilter http://htn.to/KNSvvf" (ja) --jamadam http://twitter.com/jamadam​/status/53448569658675200
13:49 koban left #mojo
13:49 koban joined #mojo
14:01 kaare left #mojo
14:05 wolf__ Hey people, i was wondering if its possible to access helpers from $app || $controller?
14:06 tjfontaine stephan48: it is but far from complete and no documentation https://github.com/tjfonta​ine/irssi_proxy_websocket
14:08 AmeliePoulain left #mojo
14:09 dotan wolf__: yes; you define them on the app, and they are accessible on the controller
14:11 wolf__ dotan: so, $app->l( 'hello' ) should work if i have i18n plugin loaded, no?
14:16 dotan wolf__: looks like it.
14:16 purl No it doesn't, shut your hole!
14:17 wolf__ dotan: Thanks, i'll try it out
14:23 kvorg joined #mojo
14:23 kvorg hello everyone
14:23 moritz hi
14:24 kvorg sri: i might have a patch for TLS client cert support for ojo.pm and the get command. Unfortunately, writing the tests for the ojo TLS is rather out of my league. I don't suppose you plan to accept the patch without tests.
14:24 kvorg So I was hoping you could get me some pointers?
14:26 kvorg my current proposed syntax for ojo is  g("https://example.com/", [ cert => "x.crt", key => "x.key"] ), {'Content-Type' => 'text/html'})
14:27 kvorg the array ref needs to be the first argument. i can make this requirement not be necessary, but I think you would not like this to be any more complicated than it has to be.
14:27 kvorg alternatively, we could introduce new ENV variables for ojo.pm _only_
14:29 ispy_ joined #mojo
14:31 kaare joined #mojo
14:39 kvorg well, if anyone else has some pointers for such test, that would be nice too. i need to check in the server if the client provided the right cert, while using ojo as client.
14:45 sri kvorg: i don't like the proposed ojo changes
14:45 sri the functions are strictly compatible with their useragent counterparts
14:47 sri and yea, without tests there is no chance at all
14:58 kvorg i suspected so - and anyway to do any serious tls work, one would probably want to have access to the transaction and thus go with the full-blown UA
14:58 kvorg but mojo get 'url' --cert xxx --key xxx is probably ok?
14:59 koban left #mojo
15:19 Christian nice evening to you all
15:19 scram is now known as marcs
15:23 Christian left #mojo
15:23 kvorg pull request for the -TLS options to get command sent.
15:32 tempire left #mojo
15:34 cosmincx left #mojo
15:35 sri kvorg: actually i'm not sure that's the best option
15:35 sri kvorg: maybe env vars are better, since they work for everything
15:35 sri and are testable
15:41 sri quite sure i want MOJO_CERT and MOJO_KEY now
15:41 sri kvorg: pull request rejected i'm afraid
15:43 sri tests are in t/mojo/user_agent_tls.t
15:43 sri one of them can be easily adapted
15:43 sri and don't forget documentation
15:43 sri env vars go into the attribute description and cheatsheet
15:50 Akron joined #mojo
15:50 stigtsp joined #mojo
15:59 kvorg hmm,  ok, i am stupid, so please explain
16:00 kvorg you want to have MOJO_CERT and MOJO_KEY for everything (overridable by the UA methods, I imagine), and no command-line options and such. correct?
16:01 sri correct
16:01 kvorg sure, adapting t/mojo/user_agent_tls.t to use ENV is peanuts. making test with ojo (considering IOLoop setup etc) was, for me, impossible.
16:01 kvorg agreed and agreeable, will be done shorty.
16:01 sri \o/
16:02 kvorg but this one will have more documentation than code, i am afraid, so don't hold it gainst me (ref: Monty Python)
16:06 stephan48 sri: why no cmd line option?
16:06 sri stephan48: untestable atm
16:06 stephan48 k
16:07 sri kvorg: you forget the test, it will be more code ;p
16:07 kvorg btw, we don't document ENV variables in the modules that use them, but only in the Cheatsheet?
16:07 sri in the attribute pod
16:07 kvorg sri: well, yes, but code reuse from your tests will be substantial. :-P
16:08 sri has cert => sub { $ENV{MOJO_CERT} };
16:08 sri since that will be the implementation
16:08 sri only makes sense to document it there
16:08 kvorg ah, should I add MOJO_MAX_REDIRECTS to max_redirects attribute in UA then?
16:09 kvorg hm, i had $ENV{MOJO_CERT}  || undef, which was idiotic *blush*
16:09 sri of course
16:10 sri there should be a gazillion examples for attributes with env vars
16:10 sri Mojo::IOLoop comes to mind
16:10 kvorg that was stupidity and copying from the max_redirects, which has a default ...
16:11 sri bad luck
16:11 purl If it weren't for bad luck I'd have no luck at all
16:11 sri you catched the only attribute with missing documentation ;p
16:12 marcs is now known as marc
16:14 kvorg well, I am good at stumbling into aberrant details. "If it weren't for bad luck I'd have no luck at all"
16:15 sri Alias_: you've still not told me what text you want on the failraptor shirt ;p
16:15 kvorg any whishes for the url example? mojolicio.us does not run https. example.com?
16:15 kvorg *wishes
16:15 sri you can always use github, twitter or google
16:20 kvorg https://github.com/kraih/mojo sounds appropriate
16:21 sri indeed
16:24 kvorg is just a test for valid cert using ENV sufficient or do you want all of them duplicated?
16:27 sri one should be fine
16:28 sri just put it somewhere in the middle
16:28 sri to make sure it doesn't taint the environment
16:28 ysyrota left #mojo
16:29 kvorg what do you mean "taint the environment"?
16:29 sri random side effects
16:29 sri setting more env vars that make stuff explode
16:29 kvorg i have put the tests at the end of user_agent_tls, and recreated the UA before using them so that it gets a chance to initialize the attributes.
16:30 kvorg i feel i probably did something stupid again
16:30 * kvorg sighs.
16:30 kvorg and this could not be simpler!
16:31 sri just put it in the middle
16:32 sri there are more env tests all over the test suite if you need examples
16:43 dotan left #mojo
16:48 kvorg sri: sorry to bug you with such elemental stuff, but let us say i will learn and do better next time
16:49 kvorg if you look at the t/mojo/user_agent_tls.t , i must either test for ENV first and then reset the cert and key (omitting the nothing set test), or replace the UA with a new one.
16:49 kvorg is this correct or am i in the dark here?
16:50 kvorg or is it ok if I just make a new test file for ENV and be done with it?
16:51 kvorg btw, i found no DOM documentation in Command/Get - should there be some? but no ENV docs i suppose.
16:55 sri kvorg: just use a fresh ua
17:06 kvorg one more check to see if we understand each other: we are talking only about UA here?
17:07 kvorg or did you mean to have the ENV used for the server cert and key too?
17:09 * kvorg has to change location, will reconnect at about 21h CET.
17:09 kvorg left #mojo
17:10 kvorg joined #mojo
17:10 kvorg left #mojo
17:31 fhelmbe__ left #mojo
17:41 GitHub113 joined #mojo
17:41 GitHub113 mojo: master Sebastian Riedel * e29d73e (4 files in 4 dirs): added support for MOJO_CERT_FILE and MOJO_KEY_FILE environment variables - http://bit.ly/fVKMfm
17:41 GitHub113 left #mojo
17:42 sri kvorg: sorry, but that was much easier than answering the questions :S
17:52 spleenjack left #mojo
17:54 Akron left #mojo
18:55 tempire joined #mojo
19:01 kvorg joined #mojo
19:02 kvorg i though so too :-P
19:02 kvorg but i made it for myself in the meantime, so the lesson was hopefully learned
19:03 metaperl left #mojo
19:03 GitHub67 joined #mojo
19:03 GitHub67 mojo: master Sebastian Riedel * 8ee468c (1 files in 1 dirs): pod cleanup - http://bit.ly/dGPIXu
19:03 GitHub67 left #mojo
19:08 metaperl joined #mojo
19:11 kvorg my patch had also this under the g function of ojo: https://gist.github.com/897008
19:11 kvorg I think it is useful.
19:12 sri then we would have to add that section to all ua frontends
19:13 sri would make more sense as a cookbook recipe
19:13 kvorg ok. looked sensible next to the MAX_REDIRECTS.
19:14 sri hmm
19:14 kvorg it's ok, no need to kill MAX_REDIRECTS now :-P
19:15 sri hmm
19:16 metaperl left #mojo
19:16 * kvorg hides behind purl.
19:22 * sri pokes purl
19:22 * purl wishes the bad sri wouldn't do that.
19:28 metaperl joined #mojo
19:40 RenatoCRON joined #mojo
19:41 RenatoCRON hello?!
19:52 * sri waves
19:54 RenatoCRON hello!
19:54 RenatoCRON Anyone here know who to get full POST content
19:59 sri $self->req->body?
19:59 purl $self->req->body is probably the raw body
19:59 * sri pats purl
19:59 * purl bites!
19:59 sri :o
20:00 RenatoCRON i'm trying my @params = $self->param;
20:00 RenatoCRON but @params is empty (the post is a XML, not url encoded)
20:00 RenatoCRON its a RPC server
20:01 RenatoCRON hmm
20:01 RenatoCRON is $self->req->body
20:01 RenatoCRON THX!
20:01 RenatoCRON AOhhhhhh
20:01 RenatoCRON now i remeber-me it, the post content goes on the body...!
20:02 RenatoCRON purl, nice to see you!
20:02 purl RenatoCRON: huh?
20:02 RenatoCRON purl, negao is waiting for you on #sao-paulo.pm
20:02 purl ...but negao is the doorman at #sao-paulo.pm...
20:02 RenatoCRON sri++
20:07 RenatoCRON =P
20:07 RenatoCRON now I have another question
20:08 RenatoCRON there someway to keep database conection keep alive?
20:08 RenatoCRON database conection is tooking 200ms
20:08 RenatoCRON taken*
20:11 GitHub6 joined #mojo
20:11 GitHub6 mojo: master Sebastian Riedel * cd0baa8 (3 files in 3 dirs): updated jQuery to version 1.5.2 - http://bit.ly/eLAT4m
20:11 GitHub6 left #mojo
20:41 trone_ joined #mojo
20:46 trone left #mojo
20:49 ispy_ left #mojo
20:55 karamorf left #mojo
21:03 hziSot joined #mojo
21:08 garu RenatoCRON: there is a new database plugin that might help you out
21:08 RenatoCRON hmm, i may help!
21:08 RenatoCRON it may*
21:08 garu look for Mojolicious::Plugin::Database
21:08 RenatoCRON but i'm not using fastcgi, its keep works?
21:09 RenatoCRON i'm using Mojolicious::lite, i need to make some changes, don'T?
21:09 garu it should work if hypnotoad and friends
21:09 garu s/if/with
21:10 RenatoCRON fala em pt-br!
21:10 RenatoCRON hyponotad?!
21:10 garu RenatoCRON: então pergunta num canal pt-br :) english only here
21:10 RenatoCRON garu, #sao-paulo.pm!
21:11 garu otherwise this channel would be russian, german and japanese
21:11 RenatoCRON ok!, but i cannt find WTF is hypnotoad
21:12 RenatoCRON unless it be a toad
21:12 garu ALL GLORY TO THE HYPNOTOAD!
21:14 RenatoCRON "ALL GLORY TO THE HYPNOTOAD!" ahaha => kkkkk
21:15 RenatoCRON garu, thx, tomorrow i make the changes, and try to enable FASTCGI
21:16 RenatoCRON i'm finishing a work of expert system to schooll..
21:43 Akron joined #mojo
22:13 mateu no m'importa la llengua
22:36 Akron left #mojo
22:36 kaare left #mojo
22:51 ispy_ joined #mojo
22:55 ispy__ joined #mojo
22:57 ispy_ left #mojo
22:59 ispy_ joined #mojo
23:01 ispy__ left #mojo

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