Camelia, the Perl 6 bug

IRC log for #mojo, 2011-11-29

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

All times shown according to UTC.

Time Nick Message
00:09 bosphorus joined #mojo
00:13 MojoGuest755 joined #mojo
00:13 MojoGuest755 From: http://news.ycombinator.com/item?id=1277067 (155 hits)
00:14 MojoGuest755 left #mojo
00:14 MojoGuest755 joined #mojo
00:14 MojoGuest755 From: http://news.ycombinator.com/item?id=1277067 (156 hits)
00:20 s0va joined #mojo
00:39 smpb joined #mojo
01:00 gshank joined #mojo
02:04 j3nnn1 joined #mojo
02:05 tempire shnikies
02:05 tempire almost time for everyone's advent calendars again
02:06 tempire and here I remember last year when sri recalled his horrible experience with advent calendars
02:07 tempire sri: mojolicious advent calendar this year?
02:07 fake_sri no, I hate advent calendars
02:07 fake_sri they're a hassle and I end up having to write all the articles
02:07 tempire ok
02:28 jnap joined #mojo
02:41 mattastrophe joined #mojo
03:18 jnap joined #mojo
03:38 MojoGuest329 joined #mojo
03:38 MojoGuest329 From: http://news.ycombinator.com/item?id=1277067 (157 hits)
03:38 MojoGuest329 left #mojo
03:38 MojoGuest329 joined #mojo
03:38 MojoGuest329 From: http://news.ycombinator.com/item?id=1277067 (158 hits)
03:38 MojoGuest329 left #mojo
03:42 xaka joined #mojo
04:57 MojoGuest632 joined #mojo
04:57 MojoGuest632 From: http://extjstutorial.org/extjs/moj​o-websocket-demo-extjs-irc-client/ (10 hits)
05:54 Eugene joined #mojo
06:03 abra_ joined #mojo
06:36 sri tempire: if you want an advents calendar feel free to try and organize one
06:38 sri but i won't write more than 2 days
06:50 MojoGuest784 joined #mojo
06:50 MojoGuest784 From: http://blog.kraih.com/perl-is-ready-for-html5 (39 hits)
06:52 Vandal joined #mojo
06:54 koban joined #mojo
07:04 bosphorus joined #mojo
07:16 batman joined #mojo
07:17 MojoGuest252 joined #mojo
07:17 MojoGuest252 From: http://news.ycombinator.com/item?id=1277067 (159 hits)
07:41 batman joined #mojo
07:53 bosphorus joined #mojo
07:57 sugar joined #mojo
08:16 berov joined #mojo
08:34 elb0w joined #mojo
08:37 fhelmber_ joined #mojo
08:47 marcus wassup homies
09:06 smpb joined #mojo
09:06 sri yo dawg, wasssssssssssssuuup
09:07 burk joined #mojo
09:11 kjeldahl joined #mojo
09:20 AmeliePoulain joined #mojo
09:21 fmerges joined #mojo
09:28 cosmincx joined #mojo
09:31 rhaen hello world.
09:31 purl hello world. are you here?
09:31 rhaen good to be here (again)
09:34 marcus hai rhaen
09:35 Eugene joined #mojo
09:37 rhaen marcus: hai :)
09:37 rhaen How's life?
09:37 purl Mikey likes it.
09:39 rhaen purl: cool :)
09:39 purl cool :) are you oging to either event tomorrow?
09:39 rhaen nah.
10:00 marcus rhaen: chattin' with the bots, eh.
10:00 marcus life is pretty good
10:05 Eugene joined #mojo
10:09 Hugmeir joined #mojo
10:10 andrefs joined #mojo
10:12 marcus sri: http://paste.scsys.co.uk/163211
10:12 Hugmeir Oh well, you beat me to it.
10:12 marcus I'm sorry
10:12 marcus =)
10:14 GitHub24 joined #mojo
10:14 GitHub24 [mojo] kraih pushed 1 new commit to master: http://git.io/4E6fpw
10:14 GitHub24 [mojo/master] fixed typo in cheatsheet - Sebastian Riedel
10:14 GitHub24 left #mojo
10:14 sri thanks, fixed
10:18 spleenjack joined #mojo
10:32 j3nnn1 joined #mojo
10:39 rhaen puh, just updated mojo on our production servers from 1.87
10:40 rhaen everything is still working - NICE!
10:41 Hugmeir left #mojo
10:45 marcus sri++ # backcompat
10:47 xoma joined #mojo
11:02 batman joined #mojo
11:25 MojoGuest890 joined #mojo
11:26 MojoGuest890 From: http://www.google.is/url?sa=t&rct=j&q=e​xt%20js%20websockets&source=web&cd=4&am​p;sqi=2&ved=0CDMQFjAD&url=http%3A%2F%2F​dev.xantus.org%2F&ei=MMHUTq2nEc_m8QOUo-CoAg​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
11:31 Akron joined #mojo
11:38 Akron Are absolute path disabled in render static? Since when?
11:41 Akron sri: There are some  contributor mentions in "Changes" now written in uppercase instead of lowercase.
11:45 Akron Oh ... render_static now just works below the script directory? .... okay.
11:48 GitHub43 joined #mojo
11:48 GitHub43 [mojo] kraih pushed 1 new commit to master: http://git.io/jxpuDg
11:48 GitHub43 [mojo/master] fixed Akron :) - Sebastian Riedel
11:48 GitHub43 left #mojo
11:48 sri Akron: quite sure that never worked
11:52 Akron Uppercase! \o/
11:53 Akron Hm - I always served files from a directory below the script file - but I don't know how I did it. I always thought, I did it absolutely. Know it doesn't work anymore ...
11:53 bosphorus joined #mojo
11:59 sri sounds more like a bug than a feature
12:03 Akron sri: Ah - found the problem: I served in relatively. But it seems this serving only works when having a public directory.
12:03 Akron in -> it
12:05 sri that makes sense
12:09 Akron Yes. ;)
12:12 Psyche^ joined #mojo
12:22 koban Does automatic rendering disabled if route under bridge?
12:34 batman joined #mojo
12:59 noganex_ joined #mojo
13:09 MojoGuest53 joined #mojo
13:09 MojoGuest53 From: http://www.google.co.uk/url?sa=t&rct=j&q=w​eb%20socket%20irc&source=web&cd=3&ved=​0CC8QFjAC&url=http%3A%2F%2Fdev.xantus.org%2F&a​mp;ei=jdnUTub5EMegOuCj_FY&usg=AFQjCNGw6nZv0wO4​2uzUnHhWcD0vcKNULg&sig2=3hgkY9XnrBtS3411OfuvLg (1 hits)
13:10 MojoGuest53 /connect irc.freenode.org
13:10 MojoGuest53 left #mojo
13:20 batman what was the metacpan url to see which modules had most +1 ?
13:43 cosmincx joined #mojo
13:44 vervain joined #mojo
13:44 vervain left #mojo
13:44 vervain joined #mojo
14:02 marty Good morning evil perl villains
14:11 andrefs joined #mojo
14:11 jnap joined #mojo
14:13 gshank joined #mojo
14:15 bosphorus joined #mojo
14:26 arthas joined #mojo
14:35 GitHub160 joined #mojo
14:35 GitHub160 [mojo] kraih pushed 1 new commit to master: http://git.io/KorZSg
14:35 GitHub160 [mojo/master] mention that sessions get serialized with JSON - Sebastian Riedel
14:35 GitHub160 left #mojo
15:01 GitHub73 joined #mojo
15:01 GitHub73 [mojo] kraih pushed 1 new commit to master: http://git.io/xV6iig
15:01 GitHub73 [mojo/master] updated a few more method descriptions and added examples - Sebastian Riedel
15:01 GitHub73 left #mojo
15:11 andrefs joined #mojo
15:36 Cside joined #mojo
15:38 Cside left #mojo
15:39 andrefs joined #mojo
15:42 Cside joined #mojo
15:43 KayT3 joined #mojo
16:01 spleenjack joined #mojo
16:05 chansen joined #mojo
16:12 MojoGuest225 joined #mojo
16:12 MojoGuest225 From: http://www.google.dk/url?sa=t&rct=j&am​p;q=html5+irc&source=web&cd=4&​ved=0CDkQFjAD&url=http%3A%2F%2Fdev.xan​tus.org%2F&ei=ZwTVTveyJO7E4gSD6oC_AQ&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
16:58 xaka joined #mojo
17:01 batman joined #mojo
17:16 abra joined #mojo
17:24 MojoGuest309 joined #mojo
17:24 MojoGuest309 From: http://www.google.dk/url?sa=t&rct=j&am​p;q=html5+irc&source=web&cd=4&​ved=0CDkQFjAD&url=http%3A%2F%2Fdev.xan​tus.org%2F&ei=ZwTVTveyJO7E4gSD6oC_AQ&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
17:29 bosphorus joined #mojo
17:35 tempire I will tentatively consider coordinating an advent calendar for 2012
17:42 berov tenpire, great idea!
17:50 MojoGuest425 joined #mojo
17:50 MojoGuest425 From: http://www.google.dk/url?sa=t&rct=j&am​p;q=html5+irc&source=web&cd=4&​ved=0CDkQFjAD&url=http%3A%2F%2Fdev.xan​tus.org%2F&ei=ZwTVTveyJO7E4gSD6oC_AQ&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (3 hits)
17:50 mire joined #mojo
18:00 mercutioviz joined #mojo
18:01 mercutioviz_ joined #mojo
18:03 Csidaway_ joined #mojo
18:14 gshank joined #mojo
18:16 smpb joined #mojo
18:27 grim_fandango joined #mojo
18:59 ashleydev joined #mojo
19:04 ashleydev joined #mojo
19:06 ashleydev joined #mojo
19:20 tinx Hm.  I'd like to ask for help with a small bit of code. ^^'
19:20 tinx I condensed it down to this:  http://pastebin.com/vtZRPshD
19:20 tinx The problem is: every message it receives it printed (and echoed) delayed by one message.
19:20 tinx So for the first message it prints nothing and for the second, it prints the first. And so on.
19:21 tinx And I don't understand why.
19:25 tinx (it's basically taken from  perldoc Mojo::UserAgent)
19:26 xaka sri: is it safe to upgrade from 1.84 to the latest release?
19:28 chansen_ joined #mojo
19:36 kjeldahl joined #mojo
19:46 chorny joined #mojo
19:47 qbit joined #mojo
19:47 qbit howdie
19:48 kaare joined #mojo
19:52 qbit anyone have issues with google analytics cookies?
19:52 andrefs joined #mojo
19:55 tempire xaka: every release is safe.  the question is whether you're using an experimental features in your code, and what the state of them is in the current release.
19:55 tempire which is really only something you can determine by testing
19:56 tempire qbit: I have not had any issues with analytics cookies
19:59 qbit k
20:01 tholen joined #mojo
20:02 qbit can you do "$session->cookie_domain( 'blablabl' )" from mojolicious::lite's session objthing?
20:02 qbit if tha tmakes sense :P ?
20:03 qbit calling $self->session( expires -> blablabl ) works. but if i call $self->session->cookie_domain( 'balbalb' ) it says Can't call method "cookie_domain" on unblessed reference
20:07 abra joined #mojo
20:10 sri http://boingboing.net/2011/11/29/o​il-company-changes-its-name-t.html # lol
20:10 qbit oh - nm $self is a controller here
20:10 qbit lal
20:12 qbit is there a way to set cookie_domain with mojolicious::lite?
20:13 qbit er from the Mojolicious::Controller
20:13 bj5004_ joined #mojo
20:22 sri dammit, i need more geeky christmas gift ideas
20:27 sri americans have it so much easier
20:30 vervain For my geeky friends I have in the closet,  a Griffindor Scarf, A Haynes Manaual for Apollo 13 capsule, a Flying Fuck (www.thinkgeek.com/interests/giftsunder20/b527) and coffee http://www.morningnitro.com/news.php
20:30 vervain Oh... my friends aren't actually in the closet..their presents are. :-)
20:30 sri haha
20:31 vervain Oh - and I always give TCHO chocolate away here and there.
20:36 MojoGuest350 joined #mojo
20:36 MojoGuest350 From: http://www.google.it/url?sa=t&rct=j&amp​;q=websocket%20irc&source=web&cd=4&​amp;ved=0CDYQFjAD&url=http%3A%2F%2Fdev.​xantus.org%2F&ei=A0LVTsudI4nm-gbLo-WIDw​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
20:37 MojoGuest350 :O
20:37 MojoGuest557 joined #mojo
20:37 MojoGuest557 From: http://www.google.it/url?sa=t&rct=j&amp​;q=websocket%20irc&source=web&cd=4&​amp;ved=0CDYQFjAD&url=http%3A%2F%2Fdev.​xantus.org%2F&ei=A0LVTsudI4nm-gbLo-WIDw​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
20:37 MojoGuest557 :O
20:39 sri hmm, plush angry birds
20:39 * sri nods
20:40 vervain Oh man... in the US stores right now you can't walk without bumping into a plush angry bird something or other... blankets, hats, plush toys... no wonder the economy/ecology are going to shit. ;-)
20:40 sri angry birds are awesome
20:42 andrefs joined #mojo
20:43 vervain But how do you own plush versiong without setting up couch cushion obsticals with pigs in them and hurtling the birds at them as hard as you can? ;-)
20:44 * sri wonders if they are also selling plush obsticals
20:44 purl okay, sri.
20:45 vervain I don't guess you want to hear how I bought up and shipped back a ton of stuff from the Darmstatdt Christmas Village a few years ago. ;-)
20:45 sri oO
21:05 qbit wew $self->app->sessions :D
21:06 heytrav joined #mojo
21:12 heytrav joined #mojo
21:30 tinx What's the best way to report a bug in Mojo/Transaction/WebSocket.pm  ?
21:31 tempire tinx: write a failing test
21:32 qbit totally found it - so in Mojo::Cookie.pm - cookies are getting all borked when they have , in them
21:33 qbit so __kti=13320239329,http%3A%2F%2Fdomain.com%2f,
21:33 qbit becomes a weird ass thinger in @tree in Cookie.pm
21:33 tinx tempire:  I just searched for the bug for two hours, I'm not motivated to learn how to write mojo-complient tests right now.  But suppose I was, what happens after the test is written?
21:34 tempire pastie.org, then announce it in here
21:34 qbit not sure if it's the tailing , or something
21:34 tinx tempire: Well, I have a fix aswell.   Can't I just give you that instead?
21:36 tempire mojolicious code is only changed if there's an accompanying test
21:36 tempire so someone has to write it
21:36 tempire if you can convince someone else, so be it
21:36 tempire but since you know the issue...
21:36 tinx I see.
21:36 tempire tests tests tests!
21:36 tempire there's more lines of code in tests than there are in the framework itself
21:37 tempire makes for a trustworthy codebase
21:37 tempire zomg
21:37 tinx Can you point me to a guide for tests?  Preferably a small one?
21:37 tempire there's a trollhattan, sweden
21:37 sri qbit: that cookie value is invalid, in all specs
21:38 tinx Yeah.  Skoda sits there.
21:38 sri we support many bullshit values, but that one is too much
21:38 tempire kind of depends on what you're testing.
21:38 tempire https://github.com/kraih/moj​o/tree/master/t/mojolicious
21:38 tempire find one that seems relevant
21:38 tempire some are larger than others
21:39 tempire lite_app.t is long, but easy to understand
21:40 qbit sri: looks like it's a salesforce cookie
21:40 qbit i wouldnt' expect them to make valid stuff : P
21:40 sri qbit: i think cosimo had problems with the exact same cookie, he started investigating but seems to have given up now
21:40 qbit dang
21:40 tinx tempire: Hm.  I guess I'd better git clone Mojolicious so I can run these tests, right?  I installed using the cpanmin.us one liner.
21:41 tempire probably the easiest way to modify them, yes
21:41 sri if you can make more bullshit values work with Mojo::Cookies (without breaking stuff or making the code much harder to maintain) be my guest
21:44 tempire trollhattan looks exactly like stockholm
21:44 * tempire is disappointed
21:45 sri doesn't everything in sweden look the same?
21:45 tempire apparently.
21:45 purl That's a great theory.
21:45 * sri hugs purl
21:45 purl sri: get off me, you botvert!
21:46 tempire all I need is 2 data points to make a decision.  I'm an american, after all.
21:46 elb0w_ joined #mojo
21:46 sri i also heard sweden is to norway what mexico is to the us
21:46 * sri hides
21:46 qbit lol
21:46 tempire I heard that too.  somewhere on the internets
21:47 tempire my favorite part of stockholm was the public square where people were visibly giving/receiving shots of heroin
21:47 * sri waits for confirmation from marcus
21:49 tempire everything I need to know about norway I learned from youtube
21:50 sri indeed
21:50 sri and skyrim!
21:50 tempire and nordaaker.com
21:53 amoore joined #mojo
21:53 marcus sri: all true!
21:53 sri \o/
21:53 tempire are the hotel rooms bigger in norway?
21:53 tempire 'cause I felt cramped in sweden
21:54 marcus tempire: depends how much you pay :)
21:54 tempire are the streets lined with passing tests?
21:54 marcus streets are lined with tall blonde women
21:54 tempire I only want women if they pass all the tests
21:55 marcus sure, whatever
21:55 marcus did you hear about the swedish blonde? She failed her blood test.
21:55 tempire bu-dum-psh
21:56 mercutioviz joined #mojo
21:57 marcus http://instantrimshot.com/
21:58 sri how convenient
21:58 marcus I wonder how much money it makes
22:14 gshank joined #mojo
22:15 cfedde Is there some plugin for generating html tables from for example a DBIx::ContextualFetch->fetchall_hash?
22:15 tempire I'm sure cpan has something like that
22:16 tempire don't limit yourself to mojolicious-specific plugins
22:16 tempire html is html
22:16 cfedde sure.
22:16 cfedde indeed.  and templating it up is not such a big deal.
22:19 GitHub11 joined #mojo
22:19 GitHub11 [mojo] kraih pushed 1 new commit to master: http://git.io/ssaGeQ
22:19 GitHub11 [mojo/master] fixed one-byte payload bug in Mojo::Transaction::WebSocket - Sebastian Riedel
22:19 GitHub11 left #mojo
22:19 sri tinx++
22:20 tinx \o/
22:20 tempire well look at that
22:20 tempire not so hard after all
22:20 * tempire sprinkles glitter on tinx
22:20 tinx Yay.
22:21 tinx Still.  An hour to report missing parenthesis in one line was at the limit of what I was willing to invest. ^^'
22:22 tinx But Mojo has certainly saved me much more than one hour, so...
22:22 tempire true enough
22:22 tempire a lot of information about mojolicious learned as well
22:22 * tempire hands tinx an Izze
22:23 sri and you joined the club ;)
22:23 tinx Do I need a swedish dictionary for that?  o.o
22:23 tempire http://www.izze.com/
22:23 tinx Hehe :)
22:23 tinx Ah, looks tasty.
22:24 tempire swedes don't have dictionaries, apparently
22:24 tempire only Norwegians
22:24 tempire marcus said so
22:25 sri that doesn't look much like juice
22:25 tempire 100%!!!!
22:25 purl 100% is the asymptote
22:25 tempire not counting the carbonization
22:26 sri description says 70%
22:26 sri you lied!
22:26 j3nnn1 joined #mojo
22:26 tempire oh hey
22:26 purl what's up, tempire.
22:27 tempire look at that
22:27 tempire that's what I meant.  70%
22:27 vervain Found a bottle of very cheap Vodka once... it had an ingredients list... water, alcohol, flavoring 8-|
22:28 sri at least no antifreeze
22:28 tempire maybe that's the flavoring
22:28 * sri nods
22:29 sri http://imgur.com/HeCGG # this is soooo true
22:33 qbit www.coronasolutions.com/sfga.js <--- that is the salesforce javascript that was setting cookies with tailing ,'s in them - but fixed to remove the ,'s :P
22:33 qbit if anyone is interested
22:33 qbit __kinit() is the onlything that was changed
22:34 qbit well - and now the file is hosted there vs sf :P
22:34 qbit so it will eventually break sf :D
22:38 qbit gonna write a standalone script that doesn't require a copy of sfga.js
22:38 MojoGuest349 joined #mojo
22:38 MojoGuest349 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp​;ved=0CCAQFjAA&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=7V7VTrqzOumWiALWpJy5Dg&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
22:43 sri i don't get why somone would intentionally let an unquoted cookie value end with a ,
22:43 marcus https://rt.cpan.org/Public​/Bug/Display.html?id=72821 ouch
22:49 mercutioviz joined #mojo
22:51 sri qbit: oh, you could also filter the Cookie header in mojolicious
22:53 sri body event of Mojo::Content is perfect for that kind of preprocessing
22:53 sri could even make it a plugin
22:54 sri Mojolicious::Plugin::SalesforceSucks
22:59 vervain Is Mojolicious::Plugin::Database the 'right thing' to use for DBI?
23:00 qbit nice
23:00 qbit sri: sweet
23:01 qbit we have a few non-Mojo apps so js is a better fix :D
23:02 qbit for us at least
23:24 tempire vervain: it's fine.  there is no 'right' thing like in catalyst.
23:24 tempire it's so easy to create your own helper, it just doesn't matter
23:24 vervain Right... the 'it's fine' part is what I was really after
23:25 vervain I'll probably have to do it myself anyway... I'm using instance_per_context in my Cat app.
23:29 xaka after upgrade from 1.84 to 2.34 found only 2 issues - missing iowatcher::cancel and iowatcher::on_readable. btw i like iowatcher:cancel more than drop_xxx
23:33 GitHub123 joined #mojo
23:33 GitHub123 [mojo] kraih pushed 1 new commit to master: http://git.io/rMhnQg
23:33 GitHub123 [mojo/master] fixed body event in Mojo::Content to work more reliably in CGI environments - Sebastian Riedel
23:33 GitHub123 left #mojo
23:36 sri hmm, i need a better idiom for "… unless $self->{foo}++;"
23:39 andrefs joined #mojo
23:43 xaka sri: "routes" shell command shows "GET" for websocket route, probably it should be changed to "WS"?
23:47 sri xaka: a) don't use experimental features if you can't handle them b) no
23:48 xaka what should i use then if i need file handle watching mechanism? ;)
23:48 sri something else
23:49 xaka nah
23:49 xaka you're on your own as always, sad
23:50 sri don't think i like your attitude
23:50 xaka the same
23:50 purl i heard the same was true of Memento.
23:51 xaka what do you mean when you say things like "you can't handle"?
23:53 sri stuff that's marked experimental will break, if you use it you need to be able to deal with that
23:54 sri i'm a little fed up with people complaining about experimental features breaking, that's the whole point of them being experimental
23:56 vervain In Lite how can I add a 'name' to a route that also has a => sub {...}; ?
23:59 sri vervain: i'll add an example, just a minute

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