Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-25

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

All times shown according to UTC.

Time Nick Message
00:35 damaya ???
01:31 laouji joined #mojo
01:35 SmokeMachine joined #mojo
01:56 beyondcreed joined #mojo
01:59 duncanthrax2 joined #mojo
02:01 d4rkie joined #mojo
02:10 zivester joined #mojo
03:21 d4rkie joined #mojo
03:34 mauke_ joined #mojo
03:34 preflex_ joined #mojo
03:59 abhishekisnot joined #mojo
04:38 dqw110 joined #mojo
05:21 SmokeMachine joined #mojo
05:43 punter joined #mojo
05:43 denisboyun joined #mojo
06:28 highflying joined #mojo
06:39 Vandal joined #mojo
06:41 rem_lex|pivo joined #mojo
06:42 denis_boyun_ joined #mojo
06:42 punter joined #mojo
07:11 arthas joined #mojo
07:28 iSlug joined #mojo
07:33 trone joined #mojo
07:39 SmokeMachine joined #mojo
07:42 mire joined #mojo
07:45 dod joined #mojo
07:59 Vandal joined #mojo
08:00 abhishekisnot joined #mojo
08:00 dod joined #mojo
08:01 ver joined #mojo
08:02 hesperaux joined #mojo
08:15 lukep joined #mojo
08:16 hrupp joined #mojo
08:20 * nic is enjoying using a cloudatcost.com vm
08:20 nic 1 CAD/month or 35 CAD/life
08:20 nic (contract isn't specific about whose life)
08:30 mire joined #mojo
08:46 SmokeMachine joined #mojo
08:46 basiliscos joined #mojo
08:50 fhelmber_ joined #mojo
09:01 ladnaV joined #mojo
09:06 jpn joined #mojo
09:14 themage joined #mojo
09:15 dotandimet joined #mojo
09:37 iSlug joined #mojo
10:02 denisboyun joined #mojo
10:18 dotandimet joined #mojo
10:39 dqw110 joined #mojo
10:40 denisboyun joined #mojo
10:54 SmokeMachine joined #mojo
10:57 batman joined #mojo
11:04 martin joined #mojo
11:07 martin I'm using different classes for different routes e.g  anything under /thisapp would be handled by a controller called Thisapp.pm    I'd like to delcare all the routes under /thisapp  inside the controller, and just have one line in main MyApp.pm  which points everything at this controller.  is that possible ?  or do all routes have to be delcared in teh main MyApp.pm ??
11:10 nic something similar is possible; popular with people who want to have sub-apps as plugins
11:11 nic in which case each plugin sub-app needs to declare its own routes
11:12 nic sri has an old blog post on the subject and batman has a recent app that does something related
11:13 nic http://blog.kraih.com/post/43198653667​/mojolicious-hack-of-the-day-mojolyst
11:13 maxhq joined #mojo
11:17 martin thx nic, looks pretty good.   my aim is to run one app on a cloud server (which is currently working) , but then be able to add on sub-apps as I go.     Does batman have a site anywhere I can see his app ?
11:18 batman https://metacpan.org/module/Toadfarm
11:19 martin ooh, thats a fast response .. many thanks,  reading up now.
11:23 iSlug joined #mojo
11:24 bowtie_ joined #mojo
11:36 jontaylor joined #mojo
11:37 jontaylor hello chaps, I was wondering if anyone knew how I could easily alter the accept_interval when running under morbo
11:38 jontaylor the idle CPU usage is significantly reducing my laptops battery life when unplugged
12:00 SmokeMachine joined #mojo
12:00 nic jontaylor: You could just hack it in Mojo::IOLoop to test whether it makes any noticeable difference
12:01 abhishekisnot1 joined #mojo
12:03 jontaylor nic: good idea, just tested it and it didn't make any appreciable difference
12:04 jontaylor which I half expected because I'm running multiple mojo apps, most of them idle at about 2% cpu usage, this one in particular idles at 20%
12:06 sri newer mojo releases should idle at around 0%
12:06 sri morbo checks files all the time, it will always eat cpu like crazy
12:09 dotandimet joined #mojo
12:11 sri actually ignore me, i only get annoyed when people don't try the latest version first
12:12 nic jontaylor: Does the problem app watch lots more files than the others?
12:13 nic If you can bear the manual intervention, it's easy to restart hypnotoad instead of morbo's file-watching
12:13 martin joined #mojo
12:14 batman or just do perl script/myapp daemon
12:15 nic batman: how do you do easy restarts with that?
12:15 batman ^C+p+e+r+l+ +s+c+... you get the idea :)
12:15 martin sorry back with a silly question, I'm looking at Sebastians post for https://gist.github.com/kr​aih/2149176#file-myapp-pl      I'm getting an error saying it couldn't load application from file,  does ths mean the plugin registration method changed ?
12:16 martin it says there is a syntax error with ... plugin Mojolyst => {controllers => 'MyApp::Controller'};
12:16 batman sounds like you have a syntax error :)
12:17 martin hmm, I downloaded the tar from github and it says the same from there
12:19 batman you != mojolicious
12:20 martin ha , not at the moment I'm not, trying to get there though
12:32 sri thoughts? https://groups.google.com/d/msg/mo​jolicious/93AgZ93CgOA/Sniu6FbdgXEJ
12:41 jontaylor I'll try updating to the latest, its a mojo 3 app thats got this behaviour, and yes its by far the largest app i've got
12:52 dod1 joined #mojo
12:54 sri called it
12:57 dod joined #mojo
13:07 good_news_everyone joined #mojo
13:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/a_K_3A
13:07 good_news_everyone mojo/master a7fc72c Sebastian Riedel: added validation_error_class configuration setting
13:07 good_news_everyone left #mojo
13:07 dotandimet joined #mojo
13:07 sri jberger, tempire, marcus, crab: please review, i'm not 100% sure about this feature
13:09 jontaylor upgraded to 4.5, still the same :(
13:09 jontaylor 19948  perl         17.9 00:15.37 1    0    14    75    852K   11M    11M    9164K  2385M  19948 3693  sleeping 501  101294+    297      358+        179+        1076321+    230+       7597+
13:09 jontaylor thats 17.9% just sat there doing nothing
13:10 jontaylor obviously it must be doing something, and considering this is only affecting one of my apps its safe to say its something in my app causing it
13:12 denis_boyun joined #mojo
13:15 sri at first i didn't like the idea of config settings for stuff like the error class
13:15 sri but i guess it could matter for theming too
13:24 batman i like it :)
13:25 batman or.... wait a sec
13:25 batman validation_error_class could be validation => { error_class => '....' } ?
13:26 batman or what about a stash value? app->defaults(validation_error_class => ...) ?
13:27 sri more reserved stash values, totally what we need!
13:28 sri </sarcasm>
13:30 Vandal joined #mojo
13:42 batman :)
13:42 batman $ENV{VLDTIN_CLS} = "sarcasm";
13:51 good_news_everyone joined #mojo
13:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Nte2Lw
13:51 good_news_everyone mojo/master f1ff9bf Sebastian Riedel: removed validation_error_class configuration setting again
13:51 good_news_everyone left #mojo
13:52 martin joined #mojo
13:53 denis_boyun joined #mojo
13:56 sri better wait and see if someone can come up with an implementation that's less controversial
13:59 btyler joined #mojo
14:05 batman joined #mojo
14:06 dqw110 joined #mojo
14:16 martin whats the easiest method to put a plugin in the lib directory thats created with mojo generate app ?   I'm trying to reference a small plugin and it keeps saying it's missing.   I tried creating a Plugin dir under lib/MyApp
14:16 batman joined #mojo
14:16 martin that way I can keep all the files together when I build and install the app
14:17 batman did you manually roll back that commit sri or did you use "git revert" ?
14:27 sh4 joined #mojo
14:29 maxhq joined #mojo
14:30 jpn joined #mojo
14:32 maxhq1 joined #mojo
14:32 jontaylor joined #mojo
14:33 sri 3 proposals on the mailing list now, starting to get the feeling that feature might not happen
14:38 sh4 joined #mojo
14:39 maxhq joined #mojo
14:39 nic martin: You can use almost any namespace you like
14:39 nic If you don't like the standard one, Mojolicious doesn't mind you using a different one :)
14:40 martin at some point today my brain melted :-)    I'm using $self->plugin('MyPluginName');   but how do I point that at my own namespace ?
14:41 punter joined #mojo
14:41 rem_lex| joined #mojo
14:41 nic ->plugin('My::Namespace::MypluginName') I think
14:41 nic (clue: the docn tells you all of this :) )
14:44 batman you can also do unshift @{ $app->plugins->namespaces }, 'MyApp::Plugin';
14:44 batman plugin('cool_feature') will the map to MyApp::Plugin::CoolFeature
14:44 batman *then
14:45 martin thankyou both, probably go with the 2nd option as I have to pass an object ref through to it.
14:46 batman martin: https://metacpan.org/module/Mojolicious::Plugins
14:47 martin thx again,  trying to get sri's exxample working with my code ,   but this seems to work now.   $self->plugin('MyApp::Plugin::Mojolyst'=> {controllers => 'MyApp::Controller'});
14:48 sri haha, mojolicious is the most released distribution on cpan :D http://stats.cpantesters.org/​leadercpan.html#top20current
14:52 martin_ joined #mojo
14:53 batman joined #mojo
14:55 maxhq joined #mojo
15:02 maxhq1 joined #mojo
15:16 ryozi joined #mojo
15:17 batman joined #mojo
15:18 dotandimet joined #mojo
15:18 jontaylor left #mojo
15:28 mr_c joined #mojo
15:29 kanishka joined #mojo
15:37 gryphon joined #mojo
15:37 maxhq joined #mojo
15:44 marty interesting..   https://github.com/njlg/per​l-rethinkdb/tree/master/lib
15:45 marty The most released by quite a large margin.   sri++
15:47 nicolaas joined #mojo
15:47 nicolaas hello
15:47 nicolaas how can I increase the timeout of my whole mojo app ?
15:49 maxhq joined #mojo
15:54 nicolaas using a bridge for example ?
15:54 marty nicolaas:   this might help....   https://groups.google.com/forum/#!msg​/mojolicious/O50cQV2VqO8/9GvOIUaw7AYJ
16:09 dod joined #mojo
16:24 batman joined #mojo
16:29 mire joined #mojo
16:34 beyondcreed joined #mojo
16:35 jpn_ joined #mojo
16:36 denis_boyun joined #mojo
16:39 crab joined #mojo
16:52 basiliscos joined #mojo
17:08 sri muhahahaha... because we need another serialization format!!! http://tools.ietf.org/html/rfc7049
17:15 mauke left #mojo
17:26 Vandal joined #mojo
17:31 kanishka joined #mojo
17:36 good_news_everyone joined #mojo
17:36 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/_jHSKw
17:36 good_news_everyone mojo/master 6ec64c3 Sebastian Riedel: small optimizations
17:36 good_news_everyone left #mojo
17:56 dotandimet joined #mojo
18:15 kanishka left #mojo
18:41 batman https://github.com/jhthorsen/mojo​licious-plugin-assetpack/issues/2 # hm... i think he has a point
18:45 marty joined #mojo
19:00 kanishka joined #mojo
19:01 good_news_everyone joined #mojo
19:01 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ovfqfA
19:01 good_news_everyone mojo/master 8473bee Sebastian Riedel: more links in documentation
19:01 good_news_everyone left #mojo
19:04 d4rkie joined #mojo
19:08 good_news_everyone joined #mojo
19:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5JsjXw
19:08 good_news_everyone mojo/master 95938f2 Sebastian Riedel: documentation tweaks
19:08 good_news_everyone left #mojo
19:15 Mike-PerlRecruiter_ joined #mojo
19:17 d4rkie joined #mojo
19:24 Kundun joined #mojo
19:38 dotandimet joined #mojo
19:43 trone joined #mojo
19:43 Kundun joined #mojo
19:49 duncanthrax joined #mojo
20:07 dod joined #mojo
20:20 dotandimet joined #mojo
20:46 tba joined #mojo
20:46 stephan48 when i do a download with Mojo::UserAgent is there a way to get the progress of the download when the server announced a filesize?
20:48 sri http://mojolicio.us/perldoc/Mojo/Message#progress
21:02 stephan48 ah thanks
21:02 dotandimet joined #mojo
21:14 SmokeMachine joined #mojo
21:20 dotandimet joined #mojo
21:54 SmokeMac_ joined #mojo
22:00 SmokeMachine joined #mojo
22:01 denis_boyun joined #mojo
22:15 basiliscos1 joined #mojo
22:22 cfedde joined #mojo
22:25 cfedde I'm seeing odd behavior on redirects.  I POST a url, get back a 302, then the redirect send a GET rather than a POST.
22:26 cfedde Mojo::UserAgent->new() and $ua->max_redirects(2); if that matters.
22:33 cfedde why does the method convert from POST to GET on a redirect? Do I need to handle this myself?
22:55 hesperaux joined #mojo
23:00 SmokeMachine joined #mojo
23:02 SmokeMachine joined #mojo
23:02 sri hahahaha, i know the mojolicious 5.0 codename!
23:02 sri U+1F574 "MAN IN BUSINESS SUIT LEVITATING"
23:02 sri unicode 7.0
23:03 sri U+1F595 "REVERSED HAND WITH MIDDLE FINGER EXTENDED" does seem a bit rude ;p
23:09 tianon you don't want to use the spock hand to show how far ahead of it's time 5.0 is? :)
23:09 tianon U+1F596
23:13 sri haha
23:42 SmokeMac_ joined #mojo
23:54 SmokeMachine joined #mojo

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