Camelia, the Perl 6 bug

IRC log for #mojo, 2011-11-23

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

All times shown according to UTC.

Time Nick Message
00:39 SmokeMachine joined #mojo
00:51 tempire thowe:
00:51 tempire thowe: no
00:51 tempire though some people use http://search.cpan.org/~madcat/Mojoli​cious-Plugin-Authentication-1.14/lib/​Mojolicious/Plugin/Authentication.pm
02:09 gshank joined #mojo
02:13 jnap joined #mojo
02:54 gshank joined #mojo
03:07 ZadYree joined #mojo
03:08 ZadYree Hello shaggafellowz
03:11 ZadYree got a question, it's a bit off-topic but... Is it possible to include a timer in a JSON req, like this: $self->render(json => {ok => 1, message => 'Registration successful!', url => $self->url_for('/accueil')});
03:15 mire joined #mojo
03:55 jnap joined #mojo
05:07 gshank joined #mojo
06:37 koban joined #mojo
06:46 MojoGuest890 joined #mojo
06:46 MojoGuest890 From: http://www.google.cl/url?sa=t&rct=j&amp​;q=html5%20irc&source=web&cd=4&​ved=0CDoQFjAD&url=http%3A%2F%2Fdev.xant​us.org%2F&ei=u5bMTpbRPIrMtgfKhZj0CA&amp​;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
06:47 MojoGuest35 joined #mojo
06:47 MojoGuest35 From: http://www.google.cl/url?sa=t&rct=j&amp​;q=html5%20irc&source=web&cd=4&​ved=0CDoQFjAD&url=http%3A%2F%2Fdev.xant​us.org%2F&ei=u5bMTpbRPIrMtgfKhZj0CA&amp​;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
06:48 sherr joined #mojo
06:50 d4rkie joined #mojo
06:50 MojoGuest983 joined #mojo
06:50 MojoGuest983 From: http://networkedblogs.com/33Knp (4 hits)
07:02 Vandal joined #mojo
07:35 batman left #mojo
07:35 batman joined #mojo
07:36 Foxcool joined #mojo
07:48 sugar joined #mojo
08:32 smpb joined #mojo
08:41 arpadszasz joined #mojo
08:42 cosmincx joined #mojo
09:07 Eugene joined #mojo
09:23 marcus gooood morning
09:41 ZadYree ola
09:44 ZadYree hum yesterday, I got an issue using Mojo, but I don't know where I am doing it wrong (mojo or JSON)
09:44 ZadYree tried that: $self->render(json => {ok => 1, message => 'Registration successful!', url => $self->url_for('/accueil')});
09:45 ZadYree but it seems it's just PFM && does not work
09:46 marcus hmm
09:47 marcus ZadYree: that bit of your code is working, pretty sure of it.
09:47 ZadYree well, I should be kinda redirected to /accueil, wouldn't I? Here I just get the successful reg message :S
09:48 marcus ZadYree: http://nordaaker.com/docs/skitch/local​host_3000_welcome-20111123-104828.jpg
09:48 ZadYree the login successful action, which does not contain a message, works nonetheless
09:49 marcus I stuffed the render bit into a mojolicious lite app, and it rendered the json a expected..
09:49 ZadYree ow
09:49 ZadYree let's see
09:49 marcus you can test for yourself, just mojo generate lite_app and replace the render line in welcome ;)
09:50 ZadYree hum well, does not work here :S
09:51 marcus then your mojolicious is very broken
09:51 ZadYree \o/
09:52 ZadYree gosh I lost my mojo!
09:52 ZadYree no more shaggadelic phun
09:53 marcus purl: does not work?
09:53 purl marcus: i haven't a clue
09:53 ZadYree nope, just regg = great success but no redirection
09:53 marcus wtf are you talking about redirection?
09:54 marcus you're trying to render a JSON structure
09:54 marcus are you trying to redirect from javascript?
09:54 marcus if so I think it's more likely your javascript is broken.
09:55 marcus and you can probably easily inspect the returned structure from the ajax call using firebug, chrome js console or something similar
09:55 ZadYree hum indeed
09:55 ZadYree I'm so afraid of JS
09:56 * marcus is dazed and confuzed
09:56 ZadYree heh
10:01 spleenjack joined #mojo
10:16 tholen joined #mojo
10:17 smpb_ joined #mojo
10:18 tholen_ joined #mojo
10:28 ZadYree Ya I was childish, magic is good for fairytales, but good news, I recovered my mojo!
10:41 drumm joined #mojo
10:41 drumm Hey, I install the Mojo framework. But don't have commands such as morbo or mojo.
10:43 drumm Nvm, I have it working.
10:45 tholen_ joined #mojo
10:49 tholen_ joined #mojo
10:54 arthas joined #mojo
11:02 berov joined #mojo
11:16 cosmincx joined #mojo
11:16 dsteinbrunner joined #mojo
11:17 mire joined #mojo
11:17 berov joined #mojo
11:46 cosmincx joined #mojo
11:57 arpadszasz joined #mojo
11:57 MojoGuest325 joined #mojo
11:57 MojoGuest325 From: http://www.google.es/url?sa=t&rct=j&​q=websocket%20extjs&source=web&cd=6&​amp;ved=0CFcQFjAF&url=http%3A%2F%2Fdev.x​antus.org%2F&ei=Rd_MTvWrM8XBswbCy82HDQ&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
11:57 MojoGuest325 ´.
12:12 Psyche^ joined #mojo
12:48 spleenjack1 joined #mojo
13:03 noganex joined #mojo
14:05 tholen joined #mojo
14:12 MojoGuest77 joined #mojo
14:12 MojoGuest77 From: http://www.google.es/url?sa=t&rct=j&​q=websocket%20extjs&source=web&cd=6&​amp;ved=0CFcQFjAF&url=http%3A%2F%2Fdev.x​antus.org%2F&ei=Rd_MTvWrM8XBswbCy82HDQ&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
14:12 MojoGuest77 a
14:55 noganex joined #mojo
15:23 metaperl joined #mojo
15:30 marcus moo
15:30 marcus this place is really dead lately
15:31 warthurt joined #mojo
15:41 noganex joined #mojo
15:54 rafl sorry. should i /part again? :)
16:03 marty Yep, dead as Lindsay Lohans' scruples.
16:17 mercutioviz joined #mojo
16:19 marcus rafl: we already publish the logs on the intarwebs, I don't tihnk your precence makes it worse
16:19 marcus rafl: I have two potential 13. year olds now
16:20 marcus hmm, that sounds wrong
16:20 marcus I mean for google code in
16:20 * marty scratches head
16:21 marcus what should I tell them to do?
16:21 MojoGuest432 joined #mojo
16:21 MojoGuest432 From: http://www.google.com/url?sa=t&rct=j&q=&a​mp;esrc=s&source=web&cd=10&ved=0CHAQF​jAJ&url=http%3A%2F%2Fdev.xantus.org%2F&ei​=EB3NTvKvNILrOc_DoKEP&usg=AFQjCNGw6nZv0wO42uz​UnHhWcD0vcKNULg&sig2=7o2Op_Fwx0pc7zn_tIaZCQ (1 hits)
16:22 MojoGuest432 sdgdsfgdsfgsgf
16:22 marcus MojoGuest432: (Y)
16:22 marty uioiuoiouoere
16:22 MojoGuest432 azerty
16:22 MojoGuest557 joined #mojo
16:22 MojoGuest557 From: http://www.google.com/url?sa=t&rct=j&q=&a​mp;esrc=s&source=web&cd=10&ved=0CHAQF​jAJ&url=http%3A%2F%2Fdev.xantus.org%2F&ei​=EB3NTvKvNILrOc_DoKEP&usg=AFQjCNGw6nZv0wO42uz​UnHhWcD0vcKNULg&sig2=7o2Op_Fwx0pc7zn_tIaZCQ (2 hits)
16:22 MojoGuest557 uiop
16:23 MojoGuest432 qsdf
16:23 MojoGuest432 wxcvb
16:41 arpadszasz joined #mojo
16:48 cfedde joined #mojo
16:49 cfedde can I teach my lite app to do basic authentication?
16:53 Foxcool joined #mojo
17:05 stephan48 i need a fast JSON implementation.. any recommendations?
17:06 stephan48 i need to json encode data structures up to 1mb...
17:08 noganex joined #mojo
17:11 Quai JSON::XS?
17:11 purl i heard JSON::XS was both pedantic about it's input (a good thing) and has a configuration system totally unlike any of the other JSON modules (a stupid thing).
17:21 grim_fandango joined #mojo
17:29 mire joined #mojo
17:51 smpb joined #mojo
17:58 mercutioviz joined #mojo
18:02 MojoGuest935 joined #mojo
18:02 MojoGuest935 From: http://www.google.cl/search?gcx=w&sou​rceid=chrome&ie=UTF-8&q=html5+irc (2 hits)
18:03 MojoGuest935 left #mojo
18:06 MojoGuest866 joined #mojo
18:06 MojoGuest866 From: http://www.google.cl/search?gcx=w&sou​rceid=chrome&ie=UTF-8&q=html5+irc (3 hits)
18:08 mire joined #mojo
18:15 MojoGuest444 joined #mojo
18:15 MojoGuest444 From: http://news.ycombinator.com/item?id=1277067 (137 hits)
18:16 MojoGuest444 /whois mojoguest444
18:16 MojoGuest444 oic
18:16 MojoGuest444 left #mojo
18:17 MojoGuest233 joined #mojo
18:17 MojoGuest233 From: http://news.ycombinator.com/item?id=1277067 (138 hits)
18:19 MojoGuest888 joined #mojo
18:19 MojoGuest888 From: http://news.ycombinator.com/item?id=1277067 (139 hits)
18:19 marcus sri: asked to get the 'make test suite faster by elminiating blocking tests' a mojolicious task
18:39 tempire I'm not dead
18:40 tempire cfedde: https://metacpan.org/module/M​ojolicious::Plugin::BasicAuth
18:40 tempire stephan48: Mojo::JSON is the fastest pure-perl json parser in all of REALITY
18:41 tempire but of course json::xs is probably much faster
18:42 stephan48 he? you still live?
18:42 stephan48 thanks for the tip!
18:51 kaare joined #mojo
18:56 Grauwolf is there a way to make hypnotoad more verbose? i updated today to the most up to date stable mojolicious version and i can't open a specific page
18:57 Grauwolf with morbo or `perl mojo.pl daemon` there are no problems
19:05 MojoGuest246 joined #mojo
19:05 MojoGuest246 From: http://news.ycombinator.com/item?id=1277067 (140 hits)
19:05 MojoGuest246 left #mojo
19:11 tempire Grauwolf: hypnotoad doesn't have debug logs, if that's what you're looking for
19:12 Grauwolf tempire, logs would be nice but i wouldn't need it because the problem is reproducible
19:12 tempire if you're looking to log requests, it's best done in the reverse proxy (nginx, or whatever)
19:13 Grauwolf tempire, on my workstation with an older mojolicious everything works fine. on my homeserver with the newest stable: problems
19:13 Grauwolf tempire,  `export HYPNOTOAD_DEBUG=1` before running hypnotoad was what i was looking for :)
19:13 Grauwolf but it didn't help
19:14 tempire if it works in morbo, but not hypnotoad, it's likely due to using some resource that doesn't work across forked processes
19:14 tempire since hypnotoad is just a bunch of forked morbos
19:14 tempire database is the most common culprit
19:14 Grauwolf tempire, it worked two mojolicious versions ago
19:15 Grauwolf i'm not saying that it is the fault of mojolicious. i don't want to point fingers. i'm searching for a solution
19:15 Grauwolf the code: https://github.com/Grauwolf/newsthingy
19:17 Grauwolf problem occurs when launching following site: https://github.com/Grauwolf/news​thingy/blob/master/mojo.pl#L334
19:29 batman joined #mojo
19:37 Shaeto joined #mojo
19:39 Shaeto did someone test mojo under fedora 16 ? i have a problem, application starts but one of processes eats all cpu. main difference i see - network interfaces now named "p32p1" and "p33p1" instead of eth0/1
19:41 Shaeto i'll try to rename interface to check this idea
20:02 cfedde tempire: awesome!
20:10 Grauwolf is there a pre-2.30 mojolicious tar.gz available somewhere?
20:15 Grauwolf 2.23 ist the last version i know of where the problem doesn't occur
20:19 Shaeto which problem
20:19 purl which problem are you looking to solve by having a cluster?
20:20 Grauwolf ah. backpan has it :)
20:20 Grauwolf purl, Shaeto, https://github.com/Grauwolf/news​thingy/blob/master/mojo.pl#L334
20:20 purl Grauwolf: sorry...
20:21 Grauwolf purl, current mojo-version: hypnotoad: worky; morbo: worky; `perl mojo.pl daemon`: worky;
20:21 purl Grauwolf: excuse me?
20:21 Grauwolf s/current/2.23/
20:22 Grauwolf with current hypnotoad doesn't work anymore
20:23 bj5004 joined #mojo
20:24 Shaeto yes i have problem with .31 hypnotoad also under fc16
20:25 Grauwolf must wait until weekend when i have time for this
20:33 lammel2 joined #mojo
20:36 Grauwolf ok. 2.26 is the last one to work with this
20:45 lammel2 left #mojo
20:48 lammel2 joined #mojo
21:01 ZadYree joined #mojo
21:04 ZadYree hai shaggafellows
21:17 sri https://github.com/kraih/mojo/pull/233 # heh, lets replace the FAQ with a polish one in master just for giggles :)
21:19 Shaeto polish too widespread, mb Swahili
21:24 ZadYree Got a new problem, I got the latest JSON::XS 2.xxx  and since, my JSON code just appears  ({"ok":0,"message":"Bad login pair for "} for example)
21:26 ZadYree and in mojo, I get an error, involving Clas::Load... I must be doing it wrong
21:37 marty polish looks hard, lets go shopping
21:46 MojoGuest901 joined #mojo
21:46 MojoGuest901 From: http://www.google.com/url?sa=t&rct=j&a​mp;q=&esrc=s&source=web&cd=4&a​mp;ved=0CDoQFjAD&url=http%3A%2F%2Fdev.​xantus.org%2F&ei=lWnNTufEG_OM4gSG7YBm&​amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
21:48 ZadYree Does anyone have a clue?
21:54 lammel2 left #mojo
21:59 MojoGuest685 joined #mojo
21:59 MojoGuest685 From: http://tumblr.dustinwhittle.com/post/53386​0686/mojo-websocket-demo-extjs-irc-client (7 hits)
21:59 MojoGuest685 fjfhjjfj
21:59 MojoGuest110 joined #mojo
21:59 MojoGuest110 From: http://tumblr.dustinwhittle.com/post/53386​0686/mojo-websocket-demo-extjs-irc-client (8 hits)
21:59 MojoGuest110 ghgjgjkk
21:59 MojoGuest685 utittutiti
22:03 j3nnn1 joined #mojo
22:11 sri btw. Grauwolf /Shaeto: if you found a bug, please report it properly, hand waving only makes me want to not help you
22:14 spacebat joined #mojo
22:14 Grauwolf sri, yes. that was my plan. but at the earliest on the weekend when i have time for searching
22:14 Grauwolf for the moment i just wanted it to work again
22:15 spacebat hi, I'm trying to get a M::L app to serve potentially very large files, so streaming them is best I think
22:15 spacebat the streaming example code seems to for for client side stuff, and I'm a bit stuck - is there a way to just pass a filehandle to render?
22:20 ZadYree sri, has mojo been updated to support the new JSON::XS version?
22:20 sri mojo doesn't use JSON::XS
22:20 ZadYree hum
22:21 sri where did you read that?
22:21 ZadYree well, I think I installed a module that makes JSON kinda unexecuted
22:22 ZadYree after installing MongoDB, JSON code is just appearing
22:26 ZadYree {"ok":0,"message":"Bad login pair for "}    quite disappointing
22:28 marty ZadYree:  Installing MongoDB should have no effects on Mojolicious's ability to process JSON.
22:30 ZadYree I guess it hasn't, but it requiered a shitload of unknown modules, through CPAN
22:31 marty Why not use the native encode/decode that is built into Mojo?
22:32 marty I use it with MongoDB and it works quite well.
22:32 marty In fact, it works swimmingly!
22:32 ZadYree ah, sounds nice, any example?
22:32 marty sri++
22:33 marty Here is the definitive source.    http://mojolicio.us/perldoc/Mojolicious/G​uides/Rendering#Rendering_JSON_28_json_29
22:33 marty gimme a sec and I'll paste an example
22:34 spacebat found the answer: $self->res->content->asset(​Mojo::Asset::File->new(path => $file));
22:34 spacebat had to trawl through google groups but its working
22:34 ZadYree ah I'm already use it
22:35 ZadYree using
22:37 marty You can test to make sure mojo is decoding properly....
22:37 marty perl -Mojo -e 'my $json = Mojo::JSON->new; my @array; my $a={a=>1,b=>2}; my $b={c=>1,d=>2}; push(@array,$a); push(@array,$b); print Mojo::JSON->encode(\@array)'
22:39 ZadYree well, in my case, Mojo is making JSON nicely
22:39 ZadYree but it isn't executed in my pages :P
22:39 marty That makes no sense.  JSON does not execute.
22:39 marty Do you mean parsed correctly?
22:42 ZadYree hum it is parsed like pure JSON
22:42 ZadYree hum lemme put it online
22:56 ZadYree damn it's PFM
22:57 ZadYree working when I'm using a DNS, and not working when I'm using an IP addr
22:58 ZadYree Still, an error with Class::Load (unititialized value $@ in concatenation (.) or string at blabla
23:15 metaperl joined #mojo

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