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

IRC log for #mojo, 2014-03-06

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

All times shown according to UTC.

Time Nick Message
00:12 marty joined #mojo
00:25 jack joined #mojo
00:26 mattastrophe joined #mojo
00:31 mgrimes joined #mojo
00:48 mgrimes joined #mojo
00:59 laouji joined #mojo
01:14 jberger_ joined #mojo
01:20 jberger__ joined #mojo
01:20 punter joined #mojo
01:22 d4rkie joined #mojo
01:23 jberger_ joined #mojo
01:25 punter This very useful module fails a test and doesn't install on my 2 machines, yet has no errors on the CPAN Testers. How is this possible? https://metacpan.org/pod/Mojolicious::Plugin::UnicodeNormalize
01:26 D4RK-PH0ENiX joined #mojo
01:36 ka2u joined #mojo
01:43 davido_ I guess the trick is to identify which test is failing, what code is triggering the FAIL, and what differs from your environment and the test environments that might contribute to the problem.
01:45 punter Found the reason of the test - apparently Mojolicious doesn't like semi-colons as separators of GET parameters in route definitions
01:45 punter the tests try to GET with semi-colons between GET parameters
01:45 punter maybe that would work in the past but now it doesn't?
01:45 tianon ah, wasn't that a recent change?
01:46 * tianon seems to remember a commit related to that
01:46 punter that would make sense
01:46 aggrolite joined #mojo
01:48 tianon ah
01:48 tianon found it
01:48 tianon https://github.com/kraih/mojo/commit/2d1cf0eaa8abc78e44edf88dc0b4a14d4f451571
01:48 tianon 2014-02-07 - not exactly recent anymore :)
01:48 punter :-)
01:49 tianon but, I think it was the latest release
01:49 tianon nope
01:49 tianon https://github.com/kraih/mojo/blob/master/Changes#L58
01:49 tianon 4.78  2014-02-08
01:55 asarch joined #mojo
02:10 sri right, semicolon is not actually part of the HTML5 spec
02:12 sri relevant channel log http://irclog.perlgeek.de/mojo/2014-02-07#i_8248955
02:12 sri and a link to the spec that matters http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#application/x-www-form-urlencoded-encoding-algorithm
02:25 sk joined #mojo
02:29 klapperl_ joined #mojo
02:38 hummeleBop Hello there, Is there a way to "debug" heartbeat timeout problems ?
02:39 hummeleBop Sometimes the application freezes and websocket connections are lost.
03:05 good_news_everyone joined #mojo
03:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/VGNdfA
03:05 good_news_everyone mojo/master 2870e02 Sebastian Riedel: more links in FAQ
03:05 good_news_everyone left #mojo
03:10 sujithm joined #mojo
03:13 d4rkie joined #mojo
03:14 aggrolite joined #mojo
03:42 laouji joined #mojo
04:15 russum joined #mojo
04:30 jberger__ joined #mojo
04:34 laouji joined #mojo
04:36 jberger_ joined #mojo
04:37 bzero joined #mojo
04:55 aggrolite joined #mojo
05:08 ka2u joined #mojo
05:18 davido_ Re: https://github.com/kraih/mojo/pull/601, it could be that I'm just misreading (and wrong). ;)
05:19 davido_ I do know that the current wording wasn't arrived at haphazardly, so now I'm second-guessing myself.
05:23 sri yea, closed
05:25 sujithm joined #mojo
05:26 davido_ sorry about that then.
05:35 russum joined #mojo
06:09 sujithm joined #mojo
06:10 mattastrophe joined #mojo
06:22 laouji_ joined #mojo
06:56 denis_boyun joined #mojo
07:01 ver joined #mojo
07:07 basiliscos joined #mojo
07:09 d4rkie joined #mojo
07:25 ka2u joined #mojo
07:31 dpetrov_ joined #mojo
07:31 davido_ joined #mojo
07:32 hrupp joined #mojo
07:36 sri interesting, there's now a terminal package for atom
07:36 sri https://github.com/atom/terminal
07:39 sri and an irc client... hahahaha https://github.com/cjsaylor/atom-irc
07:41 rawler joined #mojo
07:46 sujithm joined #mojo
07:49 Vandal joined #mojo
07:55 dod joined #mojo
07:56 basiliscos1 joined #mojo
07:57 laouji joined #mojo
08:08 laouji joined #mojo
08:08 mtths joined #mojo
08:16 eseyman joined #mojo
08:17 basiliscos joined #mojo
08:24 dod joined #mojo
08:25 trone joined #mojo
08:25 laouji joined #mojo
08:34 arpadszasz_ joined #mojo
08:38 dod joined #mojo
08:40 sujithm joined #mojo
08:49 dod joined #mojo
08:54 fhelmber_ joined #mojo
08:57 jwang joined #mojo
09:02 Jonneh joined #mojo
09:12 maxhq joined #mojo
09:19 meshl joined #mojo
09:21 sujithm joined #mojo
10:04 mattastrophe joined #mojo
10:07 pernicious joined #mojo
10:16 sri bpmedley: found one for scala :) http://www.scala-js-fiddle.com/gist/9362801
10:19 Eke- joined #mojo
10:26 al joined #mojo
10:33 al joined #mojo
10:38 dod1 joined #mojo
10:39 Dandre Hello,
10:41 Dandre I have several questions about application config file. I am using Mojolicious::Plugin::Config.
10:41 Dandre I there any way to read configuration from more than one file?
10:42 Dandre is there any way to write back configuration file if there is a change in the $app->config?
10:57 al joined #mojo
10:58 skullbocks joined #mojo
11:02 skullbocks joined #mojo
11:04 sujithm joined #mojo
11:11 al joined #mojo
11:13 malikai if you're writing out the config, it may just be best to use Mojo::Util::Slurp/Spurt and Mojo::JSON or something instead
11:15 sujithm joined #mojo
11:16 skullbocks joined #mojo
11:19 Eke- joined #mojo
11:20 batman Dandre: you could include files inside the config
11:21 batman { hypnotoad: do $app->rel_file('hypnotoad.conf') }
11:21 batman sorry. it's app(), not $app
11:26 skullbocks joined #mojo
11:27 bzero joined #mojo
11:36 al joined #mojo
11:38 mudler joined #mojo
11:40 bpmedley sri: Very nice.  I hope to have time to work on liveperl.us in a week or two.
11:45 malikai heh.. what do people think of parrot? is perl any faster under it?
11:46 malikai perhaps more specifically, is JIT possible for perl?
11:47 * malikai wonders about the main "speedup" point node.js has
11:48 malikai at least, my understanding of v8 tells me jit is the secret sauce
11:48 eseyman joined #mojo
11:52 skullbocks joined #mojo
11:53 sri parrot is terrible and pretty much dead
11:53 jkg surely it's just pining for the fjords.
11:54 sri the new rakudo vm is moarvm, and it's still quite a bit slower than perl5
11:55 nicomen the norwegian blue? what's wrong with it?
11:57 hrupp joined #mojo
12:03 malikai i'm just wondering how that argument can be killed
12:04 skullbocks joined #mojo
12:16 arpadszasz_ joined #mojo
12:21 d4rkie joined #mojo
12:22 sujithm joined #mojo
12:36 maxhq joined #mojo
12:42 jberger_ Lovely plumage
12:46 sri \o\
12:46 sri /o/
12:49 jberger_ Do we have any gsoc or opfw tasks?
12:53 eseyman joined #mojo
12:54 al joined #mojo
12:58 jberger_ WHY NOT ZOIDBERG!!!
12:58 purl (V) (;,,;) (V)
13:03 dod joined #mojo
13:10 sri not yet
13:13 mire_ joined #mojo
13:24 ryozi joined #mojo
13:28 mattastrophe joined #mojo
13:29 Dandre ok thanks
13:39 ka2u joined #mojo
13:39 fhelmber_ joined #mojo
13:43 bzero joined #mojo
13:48 jberger__ joined #mojo
13:49 bedivere joined #mojo
13:53 D4RK-PH0ENiX joined #mojo
13:56 bedivere hi
13:56 purl hola, bedivere.
13:58 bedivere for my testsuite i need a Mojolicious::Controller object, don't care which one, it just needs to be part of my application
13:58 bedivere how do i get such an object
13:58 hummeleBop joined #mojo
14:11 nikita bedivere Mojolicious::Controller->new()?
14:12 bedivere i tried that, but then i won't have a controller for my application
14:12 nikita show the code pls
14:13 bedivere my application installs some helpers that i need in my test
14:14 nikita how are you testing? with lite app?
14:15 bedivere my code looks something like that: my $t = Test::Mojo->new('Ffc'); $t->get_ok('/')...
14:15 nikita and you want to run tests against the Controller object?
14:15 Jonneh joined #mojo
14:15 nikita like is($c->stash('foo'), 'bar', ...)
14:15 nikita ?
14:16 nikita or ok($c->helper($foo, $bar), ...)
14:16 sh4 joined #mojo
14:16 bedivere i have a sub in a module that takes a controller object as parameter and i want to test that sub
14:17 nikita you can add an after_dispatch hook in which you save $c to variable defined outside the scope of the ook
14:17 nikita *hook
14:18 bedivere the module provides some subroutines, that are going to be used in some controllers and i just want to test the module, not the controllers
14:18 nikita its better to write lite app for testing helpers
14:19 bedivere ah, ok ... i haven't thought about that
14:20 nikita have you dealt with memory cycles?
14:21 nikita i have an output of test::memory::cycle which i'm not sure how to interpret
14:21 moritz nopaste it, maybe I can help
14:22 nikita https://gist.github.com/nikita-d/9390784
14:23 nikita placed on gist before i saw your message
14:23 bedivere thanks for the tip with the lite_app for tests, that would solve my problem in a very elegent way, i think
14:23 nikita you're welcome
14:25 moritz gist is a kind of nopaste, no problem :-)
14:26 moritz it basically means there is an instance of Mojolicious::Lite. Its ->{plugin} attribute contains a Mojolicious::Plugin object
14:27 moritz whose ->{events} attribute contains a hash, where the key after_dispatch stores an array reference
14:27 moritz the first element of which is a closure, which contains the variable $stash, and so on
14:28 nikita the problem is that this test suite emits 'DESTROY created new reference to dead object 'Set::Object::Weak' during global destruction.' warning which prevents it to pass
14:28 nikita so the problem is that i save stash to variable?
14:28 moritz and the actual cycle involves InoTV::Model::Document and Mojolicious::Controller
14:29 moritz the thing that leads up to it just explains where the cycle can be found
14:29 asarch joined #mojo
14:29 nikita ok
14:29 nikita i have weakened stash reference in hook and now i have only 1 cycle
14:29 nikita the second one in gist
14:30 moritz the 'model' helper is a closure
14:30 moritz which closes over a Mojolicious::Lite object
14:31 moritz and that's the problem here, because the Mojolicious::Lite obviously has a references to the 'model' helper
14:33 nikita need a moment to think this out
14:34 moritz there's an $app variable, iiuc
14:35 moritz and you probably say   helper model => sub {... use $app here ...
14:35 nikita yes that's what i do
14:36 nikita aha, the reason for cycle#2 is logging
14:36 nikita i wrote $app->log(...
14:36 nikita now i write $c->app->log
14:36 nikita and it passes
14:37 moritz \o/
14:37 nikita except bad exit status (
14:37 nikita DESTROY created new reference to dead object 'Set::Object::Weak' during global destruction.
14:37 nikita is still there
14:38 basiliscos joined #mojo
14:39 moritz sorry, I don't think I can help you with that
14:40 jberger_ joined #mojo
14:42 jberger__ joined #mojo
14:46 nikita moritz thanks for help anyway
14:49 dvinciguerra joined #mojo
14:54 jberger_ joined #mojo
15:04 d4rkie joined #mojo
15:07 D4RK-PH0ENiX joined #mojo
15:08 marty joined #mojo
15:11 marty joined #mojo
15:11 zackiv31 joined #mojo
15:14 zackiv31 joined #mojo
15:23 Akron joined #mojo
15:28 meshl joined #mojo
15:29 zackiv31 joined #mojo
15:29 aggrolite joined #mojo
15:35 d4rkie joined #mojo
15:45 Akron sri: Did you know there's a PHP Mango? https://github.com/WebCodr/Mango
16:21 sujithm_ joined #mojo
16:23 bzero joined #mojo
16:26 aggrolite joined #mojo
16:39 btyler joined #mojo
16:48 ka2u joined #mojo
16:57 dod joined #mojo
17:11 beyondcreed joined #mojo
17:11 fhelmbe__ joined #mojo
17:26 Dandre I wonder to render a zip file containing several files. I know how to do this. But I'd like to delete my temporary file after it has been download and I don't know how to do this.
17:29 Andy2 joined #mojo
17:37 dod joined #mojo
17:42 bluescreen joined #mojo
17:42 go|dfish Dandre: maybe you want to be using http://mojolicio.us/perldoc/Mojo/Asset/File
18:03 bluescreen_ joined #mojo
18:12 ka2u joined #mojo
18:20 denisboyun joined #mojo
18:25 cpan_mojo Mojolicious-Plugin-UnicodeNormalize 1.20140306 by chromatic - http://metacpan.org/release/CHROMATIC/Mojolicious-Plugin-UnicodeNormalize-1.20140306
18:27 Eke- joined #mojo
18:28 denis_boyun_ joined #mojo
18:57 bpmedley Dandre: http://mojolicio.us/perldoc/Mojolicious#after_render maybe after_render or after_dispatch?
19:02 marty joined #mojo
19:26 bzero joined #mojo
19:28 mire_ joined #mojo
20:12 punter joined #mojo
20:13 punter joined #mojo
20:36 doby joined #mojo
20:40 lukep joined #mojo
20:43 zackiv31 joined #mojo
20:47 zackiv31 joined #mojo
20:54 Zx3 joined #mojo
20:59 bzero joined #mojo
21:11 skullbocks joined #mojo
21:17 klapperl joined #mojo
21:20 drift joined #mojo
21:27 crab joined #mojo
21:41 basiliscos joined #mojo
21:53 mire_ joined #mojo
22:01 rem_lex|pivo joined #mojo
23:31 punter joined #mojo
23:39 BenGoldberg joined #mojo

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