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

IRC log for #mojo, 2017-08-14

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

All times shown according to UTC.

Time Nick Message
01:28 stryx` joined #mojo
01:47 elik joined #mojo
01:50 stryx` joined #mojo
02:06 noganex joined #mojo
02:08 leffe joined #mojo
02:08 leffe Hi, it's me ... again
02:09 leffe As I told, I'm in the process of growing a prototype to an actual App
02:10 leffe I have many helpers I would like to move away from to it's own container.
02:10 leffe My questions are:
02:10 leffe How do I write tests for helpers?
02:11 leffe How do I move helpers to a container? Is it 'plugin' it's container?
02:11 leffe Regards
02:14 veryrusty joined #mojo
03:03 veryrusty joined #mojo
03:16 Grinnz plugins are a common way to add helpers to an app, sure
03:16 Grinnz to write tests, you could either call the helpers on the app itself, or use Test::Mojo to test requests
03:26 leffe Thanks
03:28 leffe Off topic: what irc client do you use? I'm using a mac
03:28 purl rumour has it using a mac is stupider than using vi
03:37 veryrusty joined #mojo
03:44 jberger On Mac native I used Textual. But now I use convos.
03:45 jberger Convos is a mojo based irc web client. You host it someplace on a server and you can access it anywhere
03:46 jberger Its like a private irccloud
04:00 leffe Thanks.
04:03 veryrusty joined #mojo
04:14 aborazmeh joined #mojo
04:19 Grinnz season 2 of mr robot doesn't disappoint with the mind games
04:23 Grinnz also, lol that the actor playing leon is actually named Joey Bada$$
04:24 Grinnz http://www.imdb.com/name/nm5352388/?ref_=fn_al_nm_1
04:48 inokenty-w joined #mojo
04:53 itaipu joined #mojo
04:56 veryrusty joined #mojo
05:42 mudpit joined #mojo
05:43 mib_tpc1u1 joined #mojo
05:59 mib_tpc1u1 Hi everybody  I encountered a problem  https://paste.ubuntu.com/25310536/
06:24 Lee joined #mojo
06:45 marcus https://jrgql.github.io/ #shiny
06:46 marcus erry: Yes, I was in the room, I even commented it was good in the conference telegram :)
07:11 prg joined #mojo
07:29 veryrusty joined #mojo
07:33 Vandal joined #mojo
07:35 AndrewIsh joined #mojo
07:52 marcus wow, seeing test failures on cpanm Mojolicious with 5.26.0 https://gist.github.com/marcusramberg/8f96349b5b8e47d70d4e28c5045f0515
07:53 erry marcus: aw <3
07:55 marcus not seeing those same test failures in CPAN Testers tho. wonder what I'm doing wrong
07:55 sri marcus: what does youe %ENV look like?
07:55 sri how did you run the tests?
07:55 sri s/e/r/
07:57 marcus sri: just ran cpanm -v Mojolicious - my env is kinda huge, but I don't think I've set anything mojo relevant.
07:57 sri it's systemd detection
07:58 sri if your env is non customized, we have to remove systemd support from Mojo::Log
07:59 marcus sri: anything in particular in my env that could trigger it?
07:59 sri see Mojo::Log
07:59 marcus I'm on arch, so it's systemd based
08:00 marcus hmm, I see that my shell does have INVOCATION_ID set
08:00 marcus set|grep INVO
08:00 marcus INVOCATION_ID=0d3461acfcba40e588ab2b795ed20d89
08:01 marcus and JOURNAL_STREAM. wonder what sets those.
08:08 sri well, that means we can't do detection after all
08:14 good_news_everyon joined #mojo
08:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v7QdT
08:14 good_news_everyon mojo/master 4319b69 Sebastian Riedel: replace systemd detection with the MOJO_LOG_SHORT environment variable
08:14 good_news_everyon left #mojo
08:17 sri sucks, but nothing else left to try
08:31 good_news_everyon joined #mojo
08:31 good_news_everyon [mojo] kraih tagged v7.40 at bd603f4: https://git.io/v7QF0
08:31 good_news_everyon left #mojo
08:33 good_news_everyon joined #mojo
08:33 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v7QFg
08:33 good_news_everyon mojo/master 477514a Sebastian Riedel: bump version
08:33 good_news_everyon left #mojo
08:36 rshadow joined #mojo
08:44 gregf_ joined #mojo
10:52 petru joined #mojo
10:52 sh14 joined #mojo
11:08 tchaves joined #mojo
11:22 veryrusty joined #mojo
12:03 veryrusty joined #mojo
12:33 gizmomathboy joined #mojo
12:52 itaipu joined #mojo
13:07 dotan_convos joined #mojo
13:23 itaipu joined #mojo
13:25 perlpilot joined #mojo
13:29 marty joined #mojo
13:34 gregf_ joined #mojo
14:02 gryphon joined #mojo
14:21 Pyritic joined #mojo
14:23 PryMar56 joined #mojo
14:38 PopeFelix joined #mojo
14:40 itaipu joined #mojo
14:47 sh14 joined #mojo
15:08 jacoby_ joined #mojo
15:40 oalders Can Mojo::URL parse query strings which are separated by semicolons? perl -MMojo::URL -MData::Printer -e "p( Mojo::URL->new('/foo/bar?baz=qux;a=b')->query->to_hash )"
15:40 purl joined #mojo
15:43 sri oalders: no, we removed that functionality when it got removed from the spec
15:43 oalders sri: thanks.  didn't realize it had been removed from the spec
15:58 sh14 joined #mojo
16:26 rick_soc joined #mojo
16:46 bwf joined #mojo
17:00 gryphon joined #mojo
17:05 marcm joined #mojo
17:10 preaction i need to connect to my mysql in a specific way using a configuration file via DBD::mysql's support for mysql_defaults_file (so my DSN looks like 'dbi:mysql:mysql_read_default_file=~/.cpanstats.cnf'). how could i make this work in Minion? it looks like there's no way to pass a DSN down to Mojo::mysql, nor a configured Mojo::mysql to Minion::Backend::mysql, nor a configured Minion::Backend to Minion->new
17:12 sri that's only because the mysql modules are not maintained well
17:12 sri postgres and sqlite can do it
17:12 preaction okay, so i should fix that. that'll work
17:12 sri maybe send a patch
17:12 preaction in the meantime, i only have the one machine, so SQLite works
17:13 sri Minion->new(Pg => Mojo::Pg->new);
17:13 sri even that works in newer versions
17:14 marcus so this will have to be fixed in bpmedley's module, right?
17:15 preaction yeah, that's what it sounds like
17:15 arpadszasz joined #mojo
17:15 sri dunno, but definitely by batman
17:16 batman why doesn't it already work?
17:16 marcus sri: I thought it would have to be fixed in the minion backend.
17:16 sri Mojo::Pg also has Mojo::Pg->new('postgresql://?service=foo')
17:16 Grinnz for Mojo::mysql my inclination would be to add an alternative to from_string which creates that sort of dsn
17:16 Grinnz but you could also alter from_string to detect that query parameter and generate the different dsn
17:16 preaction for Mojo::mysql you just have to Mojo::mysql->new->dsn( 'your dsn here' );
17:17 Grinnz well yeah, thats a bit more manual though
17:17 preaction true, but the issue then becomes https://metacpan.org/source/BPMEDLEY/Minion-Backend-mysql-0.05/lib/Minion/Backend/mysql.pm#L101
17:18 preaction there are a couple ways to solve this, though, yes
17:18 batman preaction: i can make a patch for Mojo::mysql, where you can do new(dsn => ...) if you like
17:18 preaction batman: that would be great, thanks
17:21 Grinnz looks like you'd be able to do plugin Minion => {mysql => dsn => something} and it would pass through the args
17:21 preaction yeah
17:22 preaction though i do: Minion->new( mysql => dsn => ... );
17:22 sri wrong approach, you want this for reducing database connections http://mojolicious.org/perldoc/Mojo/Pg#parent
17:23 Grinnz i just made our testing 500% less ugly by turning our test authentication into a role :)
17:24 batman preaction: https://metacpan.org/pod/release/JHTHORSEN/Mojo-mysql-1.04/lib/Mojo/mysql.pm <-- forgot to document it :P
17:26 preaction no worries ;) Beam::Minion doesn't know how to pass the right args in anyway, so i've gotta fix that too
17:26 batman okidoki :)
17:27 sri batman: why make the ->new args inconsistent instead of copying the better feature from Mojo::Pg?
17:28 sri oh well... my hating on Mojo::mysql continues
17:28 rick_soc I just use the dbi module directly
17:29 batman never understood why you can't pass attributes to new() sri.
17:29 Grinnz batman: regardless it would be a good idea to support the parent attribute so that minion can share connections
17:29 marcus A ugly module for a ugly database. Seems suitable.
17:29 marcus :p
17:29 batman Grinnz: sure.
17:30 batman preaction: do you want commit bit to Mojo::mysql ?
17:30 marcus https://media.giphy.com/media/8McNH1aXZnVyE/giphy.gif
17:31 marcus batman: How do you feel about adding telegram style @gif <keyword> to convos?
17:31 marcus I might give it a shot if you're positive.
17:31 batman I'm out. If someone wants to make Mojo::mysql better, then send me an email and I'll give whoever commit bit.
17:32 batman marcus: i don't care.
17:32 marcus k
17:36 marcus https://i.imgur.com/dLYybB8.png <- like this btw.
17:51 rshadow joined #mojo
18:13 fxbrain joined #mojo
18:15 fxbrain_ joined #mojo
18:46 preaction cpan testers is now processing incoming test reports basically immediately thanks to Minion. the rest of the downstream processing works as it did, so there's still some delays, but we're removing bottlenecks as we come to them
18:47 Grinnz preaction++ minion++
18:52 preaction i'm frankly amazed at how efficient Minion is, even with the SQLite backend. this seems to be _less_ work than the existing backend processes which have to compare two tables to see which data needs processing...
18:57 preaction also, being able to `myapp.pl eval 'app->my_helper'` is amazing, and just saved my butt
18:57 sri i use the eval command all the time for ad-hoc maintenance tasks
18:57 sri preaction++
18:58 preaction yeah, i just needed to move something into a cron job, because the hacky stuff i was doing using a recurring task in prefork (but lock files because multiple workers and random cache expiration because cache stampedes and ugh ugh ugh ugh ugh)
18:59 preaction now everything needs to quiet down and stabilize so i feel like i'm not just blindly hacking and slashing my way through the project and breaking everything around me :p
18:59 marcm joined #mojo
19:00 marcm joined #mojo
19:03 Pyritic joined #mojo
19:17 jberger the eval command is just great
20:06 petru joined #mojo
20:35 Pyritic joined #mojo
21:02 jacoby joined #mojo
21:42 ribasushi joined #mojo
21:55 sri we could really use another blog post
22:02 mishanti1 sri: Technical or not?
22:03 sri technical, there's been so many interesting topics recently
22:52 bwf joined #mojo
23:09 marty joined #mojo
23:14 marty joined #mojo
23:15 gordonfish joined #mojo
23:21 marty joined #mojo

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