Camelia, the Perl 6 bug

IRC log for #mojo, 2012-01-04

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

All times shown according to UTC.

Time Nick Message
00:03 mire joined #mojo
01:06 MojoGuest329 joined #mojo
01:06 MojoGuest329 From: http://blog.kraih.com/perl-is-ready-for-html5 (103 hits)
01:40 alnewkirk joined #mojo
01:47 j3nnn1 joined #mojo
02:01 d4rkie joined #mojo
02:14 d4rkie joined #mojo
02:28 hshong joined #mojo
02:58 hshong joined #mojo
03:08 xaka joined #mojo
03:19 bvierra joined #mojo
03:37 Psyche^ joined #mojo
03:55 arpadszasz joined #mojo
03:58 hshong joined #mojo
04:12 bvierra joined #mojo
04:30 jwang joined #mojo
04:34 mire joined #mojo
04:37 j3nnn1 joined #mojo
04:54 d4rkie joined #mojo
06:01 alnewkirk joined #mojo
06:08 alnewkirk joined #mojo
06:53 herrclark joined #mojo
07:27 Vandal joined #mojo
07:57 batman joined #mojo
08:10 sugar joined #mojo
08:15 berov joined #mojo
08:29 MojoGuest807 joined #mojo
08:29 MojoGuest807 From: http://blog.kraih.com/perl-is-ready-for-html5 (104 hits)
08:34 MojoGuest843 joined #mojo
08:34 MojoGuest843 From: http://blog.kraih.com/perl-is-ready-for-html5 (105 hits)
08:44 batman joined #mojo
08:46 MojoGuest22 joined #mojo
08:46 MojoGuest22 From: http://blog.kraih.com/perl-is-ready-for-html5 (106 hits)
08:57 MojoGuest376 joined #mojo
08:59 MojoGuest662 joined #mojo
09:00 MojoGuest955 joined #mojo
09:01 MojoGuest247 joined #mojo
09:01 MojoGuest247 From: http://www.google.nl/url?sa=t&rct=j&q​=mojo%20websocket%20demo&source=web&c​d=1&ved=0CCgQFjAA&url=http%3A%2F%2Fde​v.xantus.org%2F&ei=YhUET4P5KcWD-wa05_SaAQ​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
09:11 MojoGuest684 joined #mojo
09:11 MojoGuest684 From: http://www.google.com/url?sa=t&rct=j&q=&a​mp;esrc=s&source=web&cd=3&ved=0CCwQFj​AC&url=http%3A%2F%2Fdev.xantus.org%2F&ei=​fxcET8KZL8Wk8QPTpvjgCg&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=auUMx9Otl9bhJ4igfOjgRg (1 hits)
09:12 MojoGuest319 joined #mojo
09:12 abra_ joined #mojo
10:07 cosmincx joined #mojo
10:16 cosmincx joined #mojo
11:04 memowe Hellomojo! :)
11:16 MojoGuest133 joined #mojo
11:16 MojoGuest133 From: http://www.google.co.in/url?sa=t&rct=j&a​mp;q=websocket+demo&source=web&cd=5&​amp;ved=0CEkQFjAE&url=http%3A%2F%2Fdev.x​antus.org%2F&ei=zDQET6rIOIuurAfS36T2Aw&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
11:16 MojoGuest133 hi
11:20 memowe hi!
11:21 MojoGuest133 have you worked on websockets?
11:21 memowe not more than really simple test scripts
11:22 memowe But here are more experienced people.
11:22 memowe Just ask. :)
11:22 MojoGuest133 how can I get connected to the right people who are exploring HTML5 features
11:27 Quai stackoverflow.com might be a goodplace to start, or sites like dev.opera.com and developer.mozilla.org
11:27 marcus MojoGuest133: or just ask some specific questions :p
11:34 MojoGuest133 I am trying to understand the security constraints in WebSockets
11:35 memowe btw, O'Reilly will give me any book because I won some kind of a quiz. Any recommendations?
11:35 memowe I'm thinking of the new llama book for my mom (she learns Perl with me).
11:36 memowe But she'll get it for only 25 bucks, so maybe there are better books for me. :)
11:36 marcus http://shop.oreilly.com/product/9780596521448.do ;)
11:37 marcus I actually enjoyed http://shop.oreilly.com/product/9780596517748.do
11:44 memowe Hehe, Rails. :)
11:45 memowe OK, I already know JS the good parts. :)
11:45 memowe So my mom gets her llama book. :)
11:46 memowe Thanks marcus!
11:47 marcus lucky mum :)
11:49 bj5004 joined #mojo
12:11 ki0 joined #mojo
12:45 jnap joined #mojo
12:53 abra joined #mojo
13:31 nightmare joined #mojo
13:48 sri memowe: the new camel book
14:05 jnap joined #mojo
14:17 jnap joined #mojo
14:25 atrodo joined #mojo
14:27 rhaen hep
14:39 jnap joined #mojo
15:12 cosimo joined #mojo
15:15 cosimo joined #mojo
15:18 ki0 joined #mojo
15:21 noganex joined #mojo
15:59 MojoGuest44 joined #mojo
15:59 MojoGuest44 From: http://www.google.com/url?sa=t&rct=j&q=&a​mp;esrc=s&source=web&cd=5&ved=0CEUQFj​AE&url=http%3A%2F%2Fdev.xantus.org%2F&ei=​V3cET6fAD6rV0QHI1rGaAg&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=lDFgw2ghK7VoyBYc-RdJNw (1 hits)
15:59 MojoGuest44 left #mojo
16:01 MojoGuest882 joined #mojo
16:01 MojoGuest882 From: http://www.google.se/url?sa=t&rct=j&q=​websockets%20demo&source=web&cd=4&​sqi=2&ved=0CEQQFjAD&url=http%3A%2F%2Fd​ev.xantus.org%2F&ei=M3YET8PsMOPV4QS9muT6BA​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&am​p;sig2=JPlDwjsTUzWPuRnRtMFOMw&cad=rja (1 hits)
16:37 mattastrophe joined #mojo
16:37 mire joined #mojo
16:38 memowe sri: too late #camelbook
16:38 metaperl joined #mojo
16:39 memowe btw, O'Really has asked us for some blog posts about my senior mum learning Perl. :)
16:39 memowe I'll suggest using Bootylite via Dropbox.
16:39 bvierra joined #mojo
16:59 sri http://i.imgur.com/pAy4z.png # :D
16:59 xaka joined #mojo
17:14 jnap joined #mojo
17:21 Therstrium joined #mojo
17:38 batman joined #mojo
17:41 batman joined #mojo
17:51 mire joined #mojo
18:46 tempire I want to work for that company
18:46 tempire 2 months before they realized he didn't know anything?
18:53 ZadYree I need help on a problem I am facing: When I open the page I'm working on, the utf8 chars contained in the page are printd properly. However, <%== $content %> doesn't seem to handle utf8 chars. Here is the page code: http://pastebin.com/efF2rGMR
18:55 kaare joined #mojo
18:57 sri it's either utf8 bytes, or perl chars, not utf8 chars
18:58 ZadYree hum, I don't see how to correct this
18:58 mateu left #mojo
18:59 ZadYree since the rest of the page is printed properly
18:59 ZadYree in the .log file, the $content looks great
19:05 sri purl: perl unicode?
19:05 purl wish i knew, sri
19:05 sri purl: unicode?
19:05 purl i think unicode is almost done. Four sections to go. or http://www.joelonsoftware.​com/articles/Unicode.html or stable or http://www.fileformat.info/i​nfo/unicode/char/search.htm or ⚑☭Ⓐ or the suck or µñíçø∂∑ or ISO/IEC 10646 or http://dev.catalyst.perl.org/new-wiki/getti​ngstarted/tutorialsandhowtos/using_unicode or a large factoid for being a typo
19:06 sri all i can tell you is that templates expect perl characters
19:06 elb0w You know whats awesome
19:07 elb0w I get to use HTML::Template AND mod_perl!!!
19:07 elb0w after using mojo for a month
19:07 elb0w this is going to be so excccccccccccccciting
19:07 sri that's gonna hurt
19:07 ZadYree hum
19:09 ZadYree well, in the html sourcepage, it's the same char (é) for ex
19:09 ZadYree encoding a block char by char may make me lose too much perf :(
19:10 sri ZadYree: do you know the difference between chars and bytes in perl yet?
19:10 sri in the context of unicode
19:10 ZadYree not at all
19:10 ZadYree unicode takes 2 bytes
19:11 sri ok, i highly recommend dropping everything and reading tutorials for it
19:12 sri otherwise you'll stumble over this over and over again
19:12 sri we had a really good link to slides for the topic… hmm
19:12 ZadYree okay
19:13 ZadYree the catalyst link doesn't seem to work
19:13 sri http://www.slideshare.net/Penfold/perl-and-unicode
19:13 ZadYree ok ty
19:13 sri that one was good i think
19:15 sri that's for stage one, when you think you have understood it
19:16 sri let me look for the stage two link
19:16 ZadYree ok thanks :D
19:16 ZadYree I like the way those slides are written
19:17 ZadYree Why the hell are people still coding in Perl 4 ^^
19:17 mikegrb people are dumb
19:18 sri http://stackoverflow.com/questions​/6162484/why-does-modern-perl-avoi​d-utf-8-by-default/6163129#6163129
19:18 sri stage is two is realizing that you still have no fucking clue what's going on :)
19:18 sri s/is//
19:19 ZadYree haha indeed
19:20 netfeed i wish you could just work on text, i don't want to care about encodings, i just want to have some text do stuff to it and then output it
19:22 sri perldoc perlunicode looks rather good too
19:23 ZadYree ok my perl 5.12 may not me enuff
19:25 ZadYree Well, it seems implementing auto utf-8 really is a pain in the ass, for everybody? Am I wrong?
19:26 sri once you realize that it's just bytes vs characters things get easier
19:27 sri as far as you're concerned characters have no encoding
19:28 ZadYree in my head, chars were just the printed result or different-sized bytes :S
19:28 ZadYree s/or/of/
19:31 jmhgtx joined #mojo
19:32 mattastrophe joined #mojo
19:35 ZadYree But couldn't mojo rendering do that brainstorming work for  me? ^^
19:36 sri purl: perl unicode is http://www.slideshare.net/Penfold/perl-and-unicode and http://stackoverflow.com/questions​/6162484/why-does-modern-perl-avoi​d-utf-8-by-default/6163129#6163129
19:36 purl OK, sri.
19:36 sri no
19:36 nightmare Anyone tried to make a site with Mojo docs indexed(SWISH-e) ?  Feel like I jump around a lot looking for stuff.
19:37 sri there is no such thing as automatic unicode handling
19:37 * ZadYree sheds a tear.
19:38 ccushing is there no way besides MOJO_CONFIG to set the location of the config file?
19:39 jmhgtx Hi,  I have an HTTP::Response object ($result) and I'm attempting to call $self->render( text => $result->content, status => $result->code ); .   When I dump the $result before calling render(), the content is a json string that I'm looking for and the code is 201.  However, when I dump the result of the $self->response() call in a test file, I'm getting  400 with '400 URL must be absolute'.    Any idea why the call to render() is (appears to be) changing th
19:39 jmhgtx e information?
19:44 ccushing using MOJO_CONFIG seems like a bad idea because I have more than 1 app running in the same environment
19:49 Therstrium joined #mojo
19:51 diegok jmhgtx: https://gist.github.com/1561712
19:52 diegok jmhgtx: why do you have an HTTP::Response, are you proxying some API?
19:52 jmhgtx Yes
19:52 diegok jmhgtx: you can probably use UA embeded in mojo then...
19:54 jmhgtx The thing that's really odd is I've got some tests that pass just fine and some that fail because the call to render is changing everything.
19:54 diegok jmhgtx: but that's another thing... I just tested that gist and it does what you want, so, the problem shouldn't be on the render() call.
19:54 jmhgtx Thanks for your response. I'll check out the mojo UA.
19:55 jmhgtx I just tried what you pasted and nothing changed for me.
19:55 sri 'URL must be absolute' is a string that does not appear anywhere in mojolicious
19:56 diegok sri: ?
19:57 sri "...I'm getting  400 with '400 URL must be absolute'..."
19:57 diegok jmhgtx: tried exactly that or just added the format thingy?
19:58 diegok sri: yes, I was about to suggest to check $response->is_success
19:58 diegok jmhgtx: ^
19:58 jmhgtx I did both actually and both return the exact same response.
19:58 diegok jmhgtx: what sri've said ^^^
19:59 jmhgtx I'm dumping the result of the response object and got  _rc => 400
20:00 jmhgtx That's the response in the test file.
20:01 diegok jmhgtx: I would start asking about mojo version, but given that string doesn't came from mojo...
20:03 jmhgtx Ok. Thanks for your assistance.
20:19 mattastrophe joined #mojo
20:34 MojoGuest11 joined #mojo
20:34 MojoGuest11 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CHUQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=5bUET5uBOsansQLw9Y2RCg&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
20:35 MojoGuest11 this is a test
20:35 MojoGuest11 anyone out there
20:35 purl no we're all dead
20:35 MojoGuest1 joined #mojo
20:35 MojoGuest1 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CHUQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=5bUET5uBOsansQLw9Y2RCg&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
20:36 MojoGuest11 left #mojo
20:38 Andrei666 joined #mojo
20:39 MojoGuest405 joined #mojo
20:39 MojoGuest405 From: http://xantus.tumblr.com/page/2 (15 hits)
20:39 Andrei666 hey guys, I'm still trying to learn mojolicious, and everything that it's got
20:40 Andrei666 so I'm doing a small lite app that takes 2 numbers and adds them or substracts them...
20:40 Andrei666 I'm doing this with 2 buttons to post methods /add and /substract
20:40 Andrei666 the thing is that, currently this subs render a result.html.ep page
20:42 Andrei666 well, I want to incorporate that simple result page in the same index.html.ep called by get '/'
20:42 Andrei666 am I supose to tho this with partial rendering...or?
20:42 Andrei666 including partial templates
20:42 Andrei666 ?
20:48 grim_fandango joined #mojo
21:02 buu joined #mojo
21:09 MojoGuest314 joined #mojo
21:09 MojoGuest314 From: http://blog.kraih.com/perl-is-ready-for-html5 (107 hits)
21:12 sri is it just me or are those From messages by our mojoguests becoming a little annoying?
21:14 netfeed http://programmerryangosling.tumblr.com
21:46 metaperl joined #mojo
21:49 alnewkirk joined #mojo
22:05 MojoGuest968 joined #mojo
22:05 MojoGuest968 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CHUQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=5bUET5uBOsansQLw9Y2RCg&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (3 hits)
22:06 trone sri: yep, I think so.
22:09 sri maybe time to ban the web client until xantus can remove the spam
22:17 sri hope that doesn't lock out regulars
22:32 alnewkirk joined #mojo
22:44 ajit joined #mojo
22:54 mire joined #mojo
22:58 buu joined #mojo
23:51 mattastrophe joined #mojo
23:53 marcus Seen matador? obvious.github.com/matador/ ?
23:53 ajit left #mojo
23:53 sri looks boring
23:54 marcus Possibly better than express.
23:54 sri i think it uses express
23:54 rsimoes1 sri: any interest in moving Mojo into a separate dist?
23:54 sri none whatsoever
23:55 rsimoes1 or versioning it separately?
23:55 sri advantages?
23:55 purl sri: nil, purl: 1
23:55 * sri hugs purl
23:55 * purl nibbles sri's elbow
23:56 rsimoes1 keeping track of updates to Mojo as opposed to Mojolicious
23:56 rsimoes1 some may be interested in one but not the other
23:56 sri been there tried that, didn't work
23:56 marcus Why?
23:57 sri now to make such drastic changes *you* have to prove that there are real advantages
23:58 marcus Bigger userbase for the client.
23:58 marcus I know there are people avoiding it because of this issue.
23:58 sri who?
23:58 marcus mst.
23:58 sri lol
23:58 marcus :)
23:58 marcus Others too.
23:59 sri and i think the resulting installation problems will cost us users

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