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

IRC log for #mojo, 2017-06-12

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

All times shown according to UTC.

Time Nick Message
00:09 pink_mist huh? that's not the topic for #mojo
00:12 pink_mist (and the reason I'm not answering your other questions is because I've never used the validation stuff myself, so I don't know it)
00:24 ronsavage pink_mist: Thanx, I think :-(.
01:10 aborazmeh joined #mojo
01:27 mtj joined #mojo
02:08 stryx` joined #mojo
02:37 karjala_ joined #mojo
02:37 noganex joined #mojo
03:06 charmander joined #mojo
03:07 charmander hey all, how do i embed another html template into my current one html template?
03:07 charmander include footer.html or something
03:07 charmander im not sure what to call it
03:31 kiwiroy joined #mojo
04:04 dboehmer joined #mojo
04:12 aborazmeh joined #mojo
05:45 Lee joined #mojo
06:05 dod joined #mojo
06:34 Lee joined #mojo
06:35 ronsavage joined #mojo
06:56 AndrewIsh joined #mojo
07:05 dod joined #mojo
07:32 trone joined #mojo
07:37 prg joined #mojo
07:56 vinnix_ joined #mojo
09:19 karjala_ joined #mojo
09:43 ronsavage joined #mojo
10:06 kiwiroy joined #mojo
11:01 mtths joined #mojo
11:17 sri the explanation here doesn't make much sense to me... he makes it sound like TLS shouldn't work at all https://github.com/kraih/mojo/issues/1102
11:19 sri i'm willing to take a look if someone can explain it to me
11:20 sri actually no, there were communication problems before, i better stay away from that
11:21 sri just ignore me, i'll leave it open for someone else ;p
11:29 dod joined #mojo
11:30 haarg sri: http://www.nntp.perl.org/group/perl.perl5.porters/2017/06/msg244884.html if you haven't seen it
11:43 gregf_ joined #mojo
11:46 gregf_ hi, i just installed a couple of new modules for another inherited project and now the server(morbo) wont start
11:47 gregf_ Socket version 1.97 required--this is only version 1.82 at /home/developer/PERL/MOJO/Eskimo/local/lib/perl5/IO/Socket/IP.pm line 30
11:48 gregf_ all modules were installed using Carton and im starting the server as: carton exec ' morbo ./script/eskimo -l http://*:8090'
11:49 gregf_ im not sure where it gets the 1.82 version from because ive got a module with version 2.013
11:50 pink_mist gregf_: cpanm V; carton exec 'perl -MV=Socket'
11:50 gregf_ hmm, theres one thats part of core :/
11:51 haarg carton should still have installed a new enough version
11:52 gregf_ yeah, carton does install a new version, just that morbo gets linked to a wrong version
11:52 gregf_ i havent used cpanm for anything
11:52 pink_mist well fine
11:52 pink_mist use something else to insall V
11:52 pink_mist it was just an example
11:52 pink_mist as long as you install the V module
11:52 gregf_ ok
11:54 gregf_ pink_mist: ive installed V.pm using carton, but carton cannot find it :/
11:54 pink_mist well I can't help with that >_>
11:54 pink_mist sounds messed up
11:55 gregf_ yeah
11:55 pink_mist also sounds like the root of your actual problems :P
11:55 haarg carton exec 'perl -MV=Socket'
11:55 dod joined #mojo
11:55 pink_mist if carton can't find what it's installed, of course you'd get old versions for some things :P
11:56 pink_mist haarg: yes, that's the command I suggested
11:56 haarg just making sure
11:56 haarg gregf_: what do you get for carton exec 'perl -V'
11:57 gregf_ haarg: it cant find the module
11:57 haarg gregf_: reread what i wrote
11:57 gregf_ this is what i ran: carton install  --path .  and then  carton install  --path ./local/lib/
11:58 gregf_ now its installed it in 2 paths :/
11:58 haarg so... you installed into two wrong places?
11:58 gregf_ find . -name V.pm ./local/lib/lib/perl5/V.pm ./lib/perl5/V.pm
11:58 gregf_ yeah .. accidentallu
11:58 haarg just use carton install
11:58 gregf_ s/u$/y/
11:58 gregf_ ok
11:58 gregf_ let me try that
11:58 gregf_ is there a way to uninstall the wrongly installed modules?
11:59 gregf_ hmm
11:59 gregf_ carton exec 'perl -MV=Socket' Socket /usr/lib64/perl5/Socket.pm: 1.82
11:59 gregf_ its picking that core version of socket :/
12:00 haarg because you probably also installed socket in the wrong place
12:00 gregf_ well yeah.. hmm
12:00 haarg you can probably just blow away the ./local/lib/lib and ./lib/perl5 directories
12:01 gregf_ ah - ok
12:01 gregf_ let me do that
12:04 gregf_ haarg: say i want to install Socket.pm using carton install
12:04 gregf_ should it not install it in the current path?
12:04 gregf_ like so, carton install installs V.pm in : ./local/lib/perl5/V.pm
12:05 gregf_ so if i want to Install Socket.pm should it not install it here ./local/lib/perl5/Socket.pm
12:05 gregf_ ?
12:05 haarg i'd recommend just blowing away your local dir
12:05 haarg and rebuilding it
12:05 gregf_ ah - sure :)
12:05 gregf_ i was waiting for someone to tell me that :)
12:06 haarg make sure you have IO::Socket::IP properly listed in your cpanfile, and run carton install
12:06 gregf_ sure
12:07 pink_mist 14:00 <gregf_> its picking that core version of socket :/ <-- actually, it should be listing EVERY installed version of Socket, so the newer one you have simply could not be found at all
12:08 gregf_ right
12:09 zpo joined #mojo
12:14 gregf_ i guess, im going to nuke cpanm and use carton for everything :)
12:19 gregf_ nice, all back to normal now :)
12:20 gregf_ haarg: pink_mist thanks very much guys!
12:21 haarg mixing carton with cpanm can be tricky
12:22 gregf_ how true
12:23 gregf_ ive almost always used cpanm
12:24 gregf_ feels like im working on ruby lol
12:24 haarg when carton installs, it tries to isolate everything into your local dir, ignoring any vendor modules or local::lib dirs.
12:25 gregf_ yeah, thats the best part
12:25 haarg cpanm doesn't do that, so it may think a prerequisite is available via one of those locations.  then when you run with carton exec, it doesn't use those locations and the prereq can't be found.
12:26 haarg carton's behavior is based on cpanm's -L option, so if you want to manually install into the local dir with cpanm, it is possible
12:26 haarg cpanm -L local ...
12:26 gregf_ ah - yeah, ive used that with cpanm
12:27 haarg but generally it's advisable to just stick to maintaining your cpanfile and using carton install
12:27 perlpilot joined #mojo
12:27 gregf_ correct
12:45 tchaves joined #mojo
13:07 gregf_ haarg: Thanks very much for explaining :)
13:09 nic happy days
13:09 purl Groovin' all week with you!
13:11 maschine joined #mojo
13:23 Pyritic joined #mojo
13:42 Pyritic joined #mojo
13:52 Intern42 joined #mojo
14:08 Armen fine morning to all
14:19 Pyritic joined #mojo
14:35 CandyAngel Heyas Armen :)
14:37 aborazmeh joined #mojo
14:43 gizmomathboy joined #mojo
14:44 Intern42 joined #mojo
14:50 stryx` joined #mojo
14:52 itaipu joined #mojo
15:02 Pyritic joined #mojo
15:26 Intern42 joined #mojo
15:57 PryMar56 joined #mojo
16:06 stryx` joined #mojo
16:19 good_news_everyon joined #mojo
16:19 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vH9Bn
16:19 good_news_everyon mojo/master e5e666f Sebastian Riedel: clean up the event loop consistently (closes #1102)
16:19 good_news_everyon left #mojo
16:22 sri not technically a bug for us, as we use Mojo::IOLoop::TLS in core... but it's more consistent to fix it :)
16:24 Guest13186 joined #mojo
16:24 Guest13186 ciao
16:25 sri o/
16:25 Guest13186 ciao
16:32 Guest13186 joined #mojo
16:43 batman Does anyone do server rendering of web apps? If so, which framework are you using?
16:44 preaction like, server-rendering of single-page apps? "isomorphic" web apps?
16:45 batman Yes
16:46 batman if I was using node, then I could use vuejs, but I don't see anyway to do that in perl, without actually starting node...
16:48 Grinnz i would think nodejs is ideal for running js on the server :P
16:49 batman Grinnz: indeed :)
16:54 irqq joined #mojo
16:57 dod joined #mojo
16:58 ribasushi joined #mojo
17:13 trone joined #mojo
17:59 cheako joined #mojo
18:21 disputin joined #mojo
18:22 disputin1 joined #mojo
18:26 itaipu joined #mojo
18:43 tchaves joined #mojo
18:43 jhawley031 joined #mojo
18:45 irqq joined #mojo
19:04 PopeF0 joined #mojo
19:06 irqq_ joined #mojo
19:07 zivester joined #mojo
19:16 Intern42 joined #mojo
19:19 itaipu joined #mojo
19:29 Craftsmanship joined #mojo
19:44 itaipu joined #mojo
19:47 CandyAngel Can I Mojo::Log to file and STDOUT/STDERR(whichever the default is)?
19:53 genioweb joined #mojo
19:53 jabberwok joined #mojo
19:54 Craftsmanship You can.
19:54 Craftsmanship has handle => sub {    # STDERR   return \*STDERR unless my $path = shift->path;
19:54 Craftsmanship this is the default
19:55 Craftsmanship If you want both, i think you need to register for events and print to STDERR while writing to the file by deafilt
20:00 CandyAngel Oh yeah, could do
20:01 CandyAngel Makes sense, thankies
20:10 Craftsmanship Sure.
20:11 Craftsmanship You can also straight-up replace the object, I saw a Log::Dispatch plugin that might give you enough rope to shoot yourself in the foot too
20:13 pink_mist whoah, that's quite the surprising rope that'd haveto be :P
20:20 Craftsmanship Read the pod for that plugin then :)
20:30 preaction you could instead use Mojo::Log's eventing to hook into the other logging system. but i'd consider Log::Any (being smaller than the others)
20:35 Craftsmanship AE::log, but only because i'm a sociopath.
20:37 vicash Hello. When using a minion worker with the option "-j 8", does that mean the worker will fork 8 processes and each process will dequeue one job at a time until it is complete, and then dequeue the next ? or will it be 1 worker process dequeueing 8 jobs at a time and processing them one after the other ? I want to know if it is better to have 8 workers with 1 job on an 8-core system or 1 worker with 8+ jobs ?
20:42 Grinnz vicash: it's how many forks it can have simultaneously
20:44 Grinnz https://metacpan.org/source/SRI/Minion-6.06/lib/Minion/Command/minion/worker.pm#L75-83
20:45 Grinnz usually you only need one worker per system
20:49 vicash Grinnz: thanks.
21:57 psazdar142 joined #mojo
21:58 psazdar142 joined #mojo
21:59 psazdar142 joined #mojo
22:09 sri some men just want to see the world burn https://github.com/mishoo/UglifyJS2/issues/2054
22:27 stryx` joined #mojo
22:31 vicash does someone have an example of how to unit test a Mojolicious::Command ?
22:44 pink_mist sri: haha, I had to comment on the issue :P
22:51 ronsavage joined #mojo
22:59 ronsavage left #mojo

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