The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-04-18

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

All times shown according to UTC.

Time Nick Message
00:03 cpan_mojo Mojolicious-Plugin-CHI 0.08_2 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-CHI-0.08_2
00:13 russum1 joined #mojo
00:23 shmuel joined #mojo
00:25 russum joined #mojo
00:26 russum2 joined #mojo
00:39 asarch joined #mojo
01:07 laouji joined #mojo
01:08 klapperl_ joined #mojo
01:13 btyler joined #mojo
01:23 balazs joined #mojo
01:26 laouji_ joined #mojo
01:28 laouji joined #mojo
01:31 tempire um
01:31 laouji joined #mojo
01:33 laouji_ joined #mojo
01:33 tempire $self->stash(events => [1]) # in controller
01:33 tempire Is $events not available in the template for full apps?
01:35 * tempire is going crazy
01:35 laouji joined #mojo
01:36 shmuel tempire: should be available. what error do you get?
01:37 tempire Global symbol "$events" requires explicit package name at template...
01:37 tempire This has got to be a scoping issue.
01:37 tempire somehow.
01:37 purl somehow is exactly right
01:38 shmuel are you sure that you stashed the value? try putting a print STDERR right next to it
01:38 shmuel and see that it is printed in the logs.
01:44 tempire yep.
01:45 tempire scoping
01:45 * tempire shakes fist at sri and his weakens
01:46 shmuel tempire: so what was wrong? I want to learn...
01:47 tempire 2 things
01:47 purl 2 things are required for a "talk"
01:47 tempire 1: simple case of needing a render_later because a template existed
01:47 tempire 2: object was going out of scope by the time the render happened
01:48 shmuel oh. i don't have experience with render_later.
02:01 d4rkie_ joined #mojo
02:14 laouji joined #mojo
02:19 laouji joined #mojo
02:22 irq joined #mojo
02:36 zivester joined #mojo
02:41 russum joined #mojo
02:43 davido__ joined #mojo
02:47 d4rkie joined #mojo
02:54 shmuel joined #mojo
02:56 disputin joined #mojo
03:39 snap_ hey, can anyone help me out? I'm having trouble getting file uploads to mojo working. i have $r->post('path/to/whatever')->to('controller#action') but I am not getting any response back and its not getting routed to the controller at all. im using form with method=post and enctype=multipart/form-data
03:44 aggrolite joined #mojo
03:46 beyondcreed joined #mojo
04:02 aggrolite joined #mojo
04:02 shmuel snap_: what do you mean not getting any response? not even mojo's
04:02 shmuel error screen?
04:02 purl error screen is drawn
04:06 snap_ yea, not even mojo's
04:08 snap_ i'm just getting chrome's "this webpage not found" and Error code: ERR_FILE_NOT_FOUND
04:24 shmuel snap_: I'd recommend using the browser debug tools to make sure the request went to the right server.
04:50 snap_ its definitely hitting the right server
04:51 snap_ i get no response (chrome debugger request status keeps at pending and rever resolves to a status code).  if i hi refresh from the page i am at with the error page i get the mojo error page
04:51 snap_ nothing is logged when i get the error page
05:30 balazs joined #mojo
05:32 snap_ wtf..... it works fine with larger files, but i had been testing with a 16 byte file
05:33 snap_ (still fails with the small file)
05:34 snap_ oh
05:34 snap_ it was a dead symlink i was trying to upload
05:34 snap_ still doesnt make sense
05:34 laouji joined #mojo
05:34 snap_ how am I supposed to handle that?
06:03 marty joined #mojo
06:09 marty_ joined #mojo
06:12 sujithm joined #mojo
06:18 denis_boyun joined #mojo
06:43 dod joined #mojo
06:51 igorsutton joined #mojo
07:02 sugar joined #mojo
07:09 eseyman joined #mojo
07:11 dod joined #mojo
07:17 sujithm joined #mojo
07:28 rem_lex|pivo joined #mojo
07:32 fhelmber_ joined #mojo
07:34 dod joined #mojo
07:36 trone joined #mojo
07:53 Vandal joined #mojo
08:33 basiliscos joined #mojo
08:45 cmihai joined #mojo
08:59 sujithm joined #mojo
09:07 edestler joined #mojo
09:09 dpetrov_ joined #mojo
09:18 laouji joined #mojo
09:19 laouji_ joined #mojo
09:59 laouji joined #mojo
10:17 laouji joined #mojo
10:31 denis_boyun joined #mojo
10:33 rawler joined #mojo
11:16 cmihai joined #mojo
11:59 ver joined #mojo
12:00 rawler joined #mojo
12:40 Negor joined #mojo
12:41 Negor How can I render some content, do some sub and then redirect user ?
12:46 yakudza Negor, do some sub is "bridge". for another two questions answer first desinde what to do. render some content status code 200. redirect user code 301. Or maybe you want render content and add to template some javascript ( document.location(blabalblalaa) )
12:47 yakudza s/desinde/decide/
12:52 sugar_ joined #mojo
12:58 mtj joined #mojo
13:05 dj_goku_ joined #mojo
13:08 cpan_mojo Mojolicious-Plugin-CHI 0.08_3 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-CHI-0.08_3
13:12 zivester joined #mojo
13:27 gryphon joined #mojo
13:31 Negor yakudza: Any of two variants
13:33 yakudza Negor, look forward $c->render() will render $c->redirect_to();
13:35 Negor I want so that user first see message like "Wait while Db process ends", run sub, and after sub ends redirect user to results
13:37 yakudza Negor, http://en.wikipedia.org/wiki/Comet_%28programming%29
13:46 bluescreen joined #mojo
13:46 ver joined #mojo
13:50 btyler joined #mojo
13:54 balazs joined #mojo
14:00 cpan_mojo Mojolicious-Plugin-BasicAuthPlus 0.05 by BLR - http://metacpan.org/release/BLR/Mojolicious-Plugin-BasicAuthPlus-0.05
14:01 sugar_ joined #mojo
14:24 Bravo13 joined #mojo
15:07 disputin joined #mojo
15:07 igorsutton joined #mojo
15:08 sh4 joined #mojo
15:14 aggrolite joined #mojo
15:32 davido___ joined #mojo
15:35 beyondcreed joined #mojo
15:39 d4rkie joined #mojo
15:44 punter joined #mojo
15:54 d4rkie joined #mojo
16:34 ua_ joined #mojo
17:26 hesco how would I do:  $validation->not_equal_to('foo');
17:27 hesco I see no such method documented
17:32 dod joined #mojo
17:40 denis_boyun joined #mojo
17:42 cmihai joined #mojo
17:51 asarch joined #mojo
18:22 sujithm joined #mojo
18:23 irq joined #mojo
18:38 alnewkirk joined #mojo
18:48 irq joined #mojo
19:00 irq_ joined #mojo
19:19 alchemy23 joined #mojo
19:19 alchemy23 hi
19:19 purl que tal, alchemy23.
19:39 punter joined #mojo
19:42 balazs joined #mojo
20:20 aggrolite joined #mojo
20:28 marty joined #mojo
20:39 aggrolite joined #mojo
20:54 Dandre joined #mojo
20:55 Dandre left #mojo
20:55 Dandre joined #mojo
20:57 bluescreen joined #mojo
21:00 ua_ joined #mojo
21:27 marty joined #mojo
21:33 marty joined #mojo
21:38 cfedde when I run a lite app with 'test' and I get a run time error is there a way to get the simple text emited rather than the pretty formatted html dump?
21:43 sri there's always a way
21:53 snap_ :q
21:59 punter kewl
22:05 sri ;p
22:05 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Rendering_exception_and_not_found_pages
22:05 sri $t->app->hook(before_render => sub {...});
22:06 marty joined #mojo
22:08 good_news_everyone joined #mojo
22:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/C-vocQ
22:08 good_news_everyone mojo/master 6d80fb7 Sebastian Riedel: fixed link in documentation
22:08 good_news_everyone left #mojo
22:25 cfedde interesting.
22:31 meshl joined #mojo
22:31 cfedde synopsis code in Mojo::JSON::Pointer seems broken: https://gist.github.com/cfedde/11067138
22:34 cfedde update Mojo from cpan and now it works.
22:34 * cfedde --
22:34 cfedde Successfully installed Mojolicious-4.93 (upgraded from 4.78)
22:40 marty joined #mojo
23:18 espent joined #mojo
23:57 marty joined #mojo

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