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

IRC log for #mojo, 2015-04-10

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

All times shown according to UTC.

Time Nick Message
00:22 zivester joined #mojo
00:24 asarch joined #mojo
00:34 Averna joined #mojo
00:50 asarch joined #mojo
01:16 mattastrophe joined #mojo
01:24 * Grinnz pets his shiny new 5.20.2
01:24 Grinnz i guess this means ill have to set up perlbrews on my home server to test code on 5.10.1 now :D
01:30 frederico joined #mojo
01:45 asarch joined #mojo
01:45 klapperl joined #mojo
01:49 genio_ joined #mojo
02:29 noganex_ joined #mojo
02:41 kaare joined #mojo
02:43 asarch joined #mojo
02:50 hshong joined #mojo
02:52 doby joined #mojo
02:54 jberger Grinnz++
02:54 jberger say for Grinnz->@*
02:57 good_news_everyon joined #mojo
02:57 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vebV2
02:57 good_news_everyon mojo/master 43b0672 Sebastian Riedel: there is now a new RFC
02:57 good_news_everyon left #mojo
03:01 sri damn, this is exactly what i was hoping the http2 effort would end up with https://lists.w3.org/Archives/Public/ietf-http-wg/2015AprJun/0117.html
03:01 sri just a multiplexing extension for http/1.1
03:04 sri oh well... no point thinking about it now
03:08 basic6_ joined #mojo
03:20 irq joined #mojo
03:39 inokenty-w joined #mojo
03:46 bc547 joined #mojo
04:18 wingfold_ joined #mojo
04:46 Oleg joined #mojo
04:54 k-man left #mojo
05:48 melo joined #mojo
06:18 bramirez joined #mojo
06:21 bpmedley joined #mojo
06:35 dod joined #mojo
06:40 dod joined #mojo
06:44 irq joined #mojo
06:52 amon joined #mojo
07:05 eseyman joined #mojo
07:16 dotandimet joined #mojo
07:20 xtetsuji___ joined #mojo
07:21 bpmedley_ joined #mojo
07:23 bramirez joined #mojo
07:59 punter joined #mojo
08:17 Vandal joined #mojo
08:46 mattastrophe joined #mojo
08:48 fhelmber_ joined #mojo
08:48 vytas joined #mojo
09:09 noganex joined #mojo
09:29 vytas joined #mojo
09:34 dotandimet joined #mojo
09:43 fhelmber_ joined #mojo
09:46 oetiker joined #mojo
09:51 noganex_ joined #mojo
09:55 ver joined #mojo
10:25 skaji joined #mojo
10:33 charsbar joined #mojo
10:53 davido__ joined #mojo
11:05 neilhwatson joined #mojo
11:06 mattastrophe joined #mojo
11:10 fhelmber_ joined #mojo
11:13 Kripton joined #mojo
11:14 Lee joined #mojo
11:19 meshl joined #mojo
11:30 bramirez joined #mojo
12:15 bramirez joined #mojo
12:19 fhelmber_ joined #mojo
12:29 mattastrophe1 joined #mojo
12:35 mattastrophe joined #mojo
12:38 mattastrophe1 joined #mojo
12:39 risugg joined #mojo
12:42 ver joined #mojo
12:58 noganex joined #mojo
13:07 ajr_ joined #mojo
13:07 bwf joined #mojo
13:07 zivester joined #mojo
13:11 Onigiri So I've got a task I need to kick off that will at minimum consume 3 hours.
13:12 Onigiri Is the best way to do it with a queue in a db table of some sort and have a queue runner spawning the stuff elsewhere?
13:17 jb360 joined #mojo
13:19 absolut_todd joined #mojo
13:20 btyler Onigiri: https://github.com/kraih/minion :)
13:21 btyler yes, a job queue is the typical way to address background task sorts of things
13:24 Onigiri btyler: thanks
13:25 btyler and (probably) you want to checkout an existing job queue implementation, since rolling your own will probably lead to overlooking a bunch of edge cases around failed jobs/restarting jobs/overlapping jobs
13:26 Onigiri I've got a queue runner already that was hacked together in a rush using parallel::forkmanager.
13:27 Onigiri So I'm probably crapping zombie processes and the like.
13:27 btyler fun fun fun :D
13:29 gryphon joined #mojo
13:46 asarch joined #mojo
14:03 dp_ joined #mojo
14:04 genio joined #mojo
14:14 bramirez joined #mojo
14:17 inokenty joined #mojo
14:21 irq_ joined #mojo
14:27 D4RK-PH0ENiX joined #mojo
14:32 d4rkie joined #mojo
14:35 risugg joined #mojo
14:40 zackiv31 joined #mojo
14:41 zackiv31 joined #mojo
14:54 sri looks like today is a mailing-list day
14:54 marcusr sri: I thought it was a party-day
14:55 marcusr "Best practice is maybe to build your own package of your App and declare the dependencies in it with minimum versions, and then install it with cpan or cpanm.
14:55 marcusr hmm
14:57 lb that's terrible
14:57 lb carton or bust
14:58 marcusr lb++
14:59 lb oh yeah, my cow-orker never finished that article he started on our deployment
14:59 lb what an ass
14:59 purl somebody said an ass was too nice a designation for mirc script or http://www.cqsex.com/ or larry mcvoy or at http://ass-aficionado.blogspot.com/ or mmlj4 had to haul his or Tim Eyman
15:05 jberger lets clean that one up a bit
15:05 jberger purl: no, an ass is too nice a designation for mirc script
15:05 purl okay, jberger.
15:05 jberger not sure that that is the best use of such a good factoid key, but the links are dead
15:11 Grinnz_ lol
15:12 sri purl: no, ass is http://www.quickmeme.com/img/90/90ba087d08a5fd361d7c224c8072fe5473509ea366dfb38d97f1b1e3da36db36.jpg
15:12 purl okay, sri.
15:16 jberger sri++
15:25 romel these adidas pants with stripes are so authentic
15:28 romel bad guys and criminals here in post-soviet countries wear them with classic shoes
15:30 mattastrophe joined #mojo
15:33 sri but he's an engineer
15:34 romel well, that's confusing
15:39 disputin joined #mojo
15:47 romel joined #mojo
15:48 sh4 joined #mojo
15:51 mattastrophe joined #mojo
15:57 jabberwok joined #mojo
16:04 Oleg joined #mojo
16:11 Dandre joined #mojo
16:32 wingfold joined #mojo
16:49 dod joined #mojo
16:56 risugg joined #mojo
16:56 mattastrophe joined #mojo
17:06 berov joined #mojo
17:42 sri i guess nobody else wants to participate in the graceful_timeout thread after all
17:42 sri fair enough, i'm fine with not supporting the use case
17:45 sri hmm, not sure this belongs in the Upgrade wiki page https://github.com/kraih/mojo/wiki/Upgrading/_compare/4072fd1cf22c086ae8eebf14834de79357aad00d...3c88ef445faa5a43b66403624ca1fa0e9dc04ba5
17:46 sri basic explanation sure, but a call to action?
18:09 jberger if its true (I seem to recall you saying something like it), then it seems fine
18:12 jberger could be softened to "interested parties are welcome to discuss the conditions under which support could be reimplemented"
18:21 cfedde_ joined #mojo
18:27 kaare joined #mojo
18:35 mattastrophe joined #mojo
18:55 mattastrophe joined #mojo
19:02 mattastrophe joined #mojo
19:10 tempire Might be good to have a wiki page for things that need work.
19:10 tempire Or things that would like to be supported, but do not have someone working on it
19:10 tempire Www, it's been a while since I looked at the wiki
19:11 tempire Some good stuff here
19:13 ajr_ joined #mojo
19:15 ajr_ Is there any documentation that describes how the directory hierarchy should look for a Mojo app?
19:17 genio HAH.  ICANN is pissed at someone's practice of selling domains.  pot, meet kettle.   http://gizmodo.com/sucks-seller-accused-of-ripping-off-poor-helpless-cele-1696996439
19:18 tempire ajr_: It's pretty much taken care of for you when you generate an app
19:18 jberger ajr_: there is some of that in the Growing guide
19:19 * jberger never generates apps
19:19 jberger that doesn't mean that others shouldn't though
19:20 tempire jberger: what do you do?
19:20 jberger building them from scratch
19:20 tempire I still generate it
19:20 tempire and there's an example controller in there for a while
19:22 jberger I always use the app script of this form though: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Making-your-application-installable
19:22 jberger FindBin > use lib
19:24 mattastrophe joined #mojo
19:41 sri tempire: i would expect such things to have an open github issue
19:43 sri regarding the unix socket thing, pretty sure i've made no promises
19:43 sri there is no actual proposal
19:44 mattastrophe joined #mojo
19:44 sri in fact, i don't think support for unix sockets is that valuable, if the cost turns out to be too high i'd vote -1
19:45 sri if it happens to be a side effect of more code getting factored out of Mojo::UserAgent, great!
19:48 ZoffixWork joined #mojo
19:50 ZoffixWork joined #mojo
19:53 ZoffixWork joined #mojo
19:54 zackiv31 joined #mojo
20:01 davido_ joined #mojo
20:05 mgrimes joined #mojo
20:25 ZoffixWork Any idea how I could find out what's causing that wall of "uninitialized value in subroutine entry ... Mojo/Util.pm line 113"  http://fpaste.scsys.co.uk/471733 ?
20:25 ZoffixWork This is the line in Mojo::Util that it's referring to: sub hmac_sha1_sum { hmac_sha1_hex @_ }
20:26 Grinnz_ something is calling that with an undef data string or secret
20:26 Grinnz_ eval: use Digest::SHA 'hmac_sha1_hex'; hmac_sha1_hex 'asdf', undef;
20:26 ZoffixWork This is the code I got: https://github.com/zoffixznet/XTaTIK
20:26 Grinnz_ oops, not $perl
20:27 Grinnz_ app->secrets([ app->config('mojo_secrets') ]); -- is mojo_secrets set?
20:28 ZoffixWork YEY \o/
20:29 ZoffixWork Grinnz_++ # that was it :)
20:29 ZoffixWork All warnings are gone now
20:29 Grinnz_ yeah that being undef would break your session cookies :P
20:29 ZoffixWork :P
20:57 sri any mojoconf news? have not heard anything in a few weeks
21:18 meshl joined #mojo
21:20 melo joined #mojo
21:37 absolut_todd joined #mojo
22:11 _dave_ From my startup method, if I call $self->plugin("MyApp::Plugin::Foo", { .. }) ... and I have something in my lib path named MyApp/Plugin/Foo.pm (with a package MyApp::Plugin:Foo in it) ... why would it tell me "Plugin MyApp::Plugin::Foo missing, maybe you need to install it?"
22:13 Grinnz_ _dave_: it is probably trying to load Mojolicious::Plugin::MyApp::Plugin::Foo
22:13 Grinnz_ _dave_: try adding MyApp::Plugin to the plugin namespaces
22:13 _dave_ I did that, same result
22:13 Grinnz_ and then loading Foo
22:13 _dave_ $self->plugins->namespaces right?
22:14 Grinnz_ _dave_: yes, but i look at it now and in my app i just use the full name and it works for me...
22:14 _dave_ heh
22:14 _dave_ I've been examining the relevant code
22:15 _dave_ it's actually trying to load MyApp::Plugin::Foo
22:15 Grinnz_ maybe a lib issue then
22:15 _dave_ so my plugin call is in lib/MyApp.pm
22:15 Grinnz_ the module loads if you try loading it directly right?
22:15 _dave_ yes
22:15 Grinnz_ and ends with 1;
22:15 mattastrophe joined #mojo
22:15 _dave_ used -w and -c to check
22:16 _dave_ yes
22:16 Grinnz_ what about if you do "use MyApp::Plugin::Foo"
22:17 _dave_ ah ha
22:17 _dave_ that fails...it seems the lib directory of my application directory is not getting auto included (maybe mojo doesn't do that?)
22:18 Grinnz_ that's usually up to the application script
22:18 _dave_ yeah, easy fix
22:18 _dave_ thanks :D
22:18 Grinnz_ see: FindBin realted stuff in Guides::Growing
22:18 Grinnz_ or Guides::Cookbook perhaps
22:18 Grinnz_ dont remember
22:20 _dave_ well, I used the example in Guides::Growing "Simplified application script"
22:20 _dave_ use lib 'lib';
22:20 Grinnz_ i would use FindBin instead, so it works properly when invoked from hypnotoad etc
22:20 Grinnz_ or from elsewhere
22:20 Grinnz_ in general
22:20 purl In general, you do not want to disturb The General.
22:20 _dave_ in specific
22:20 _dave_ lol ok
22:21 _dave_ yeah FindBin should likely be in that example :)
22:22 Grinnz_ it's discussed later on for making it into a cpan module
22:22 Grinnz_ https://metacpan.org/pod/Mojolicious::Guides::Cookbook#Making-your-application-installable
22:23 _dave_ the use of BEGIN{ unshift(@inc...) } is preferrable to "use lib"?
22:24 Grinnz_ well the problem with use lib 'lib' is it requires you to be in the base directory when its run
22:24 Grinnz_ otherwise you'll get the wrong path
22:25 _dave_ Ok so ... I added this BEGIN{} construct and now I can "use" the module
22:25 _dave_ but I still get the "maybe you need to install it" message running the application
22:26 Grinnz_ actually thats not true... maybe
22:26 Grinnz_ use lib 'lib' could be sufficient, lol
22:26 _dave_ it wasn't apparently :)
22:27 Grinnz_ hmm, use works but adding as plugin still doesn't? strange
22:27 _dave_ I could be doing something naive
22:27 _dave_ but I've been looking at this "load_class" method in Mojo::Loader
22:28 _dave_ and the _load method in Mojolicious::Plugins
22:32 mattastrophe joined #mojo
22:34 basic6_ joined #mojo
22:39 mattastrophe joined #mojo
22:47 mattastrophe joined #mojo
22:56 mattastrophe joined #mojo
23:01 _dave_ So apparently my plugin subclass has the proper @ISA but the ->isa('Mojolicious::Plugins') fails
23:02 _dave_ I did "use Mojo::Base 'Mojolicious::Plugin::Config';"
23:07 mattastrophe joined #mojo
23:16 frederico joined #mojo
23:16 zivester joined #mojo
23:22 punter joined #mojo
23:32 mattastrophe joined #mojo

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