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

IRC log for #mojo, 2017-03-05

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

All times shown according to UTC.

Time Nick Message
00:01 marty joined #mojo
00:41 marty joined #mojo
01:03 aborazmeh joined #mojo
01:19 aborazmeh joined #mojo
01:25 janus joined #mojo
02:29 lluad_ joined #mojo
02:44 Snelius joined #mojo
02:46 Snelius Hi! How to get proper request with Mojo::Pg like db->select('users', "encode(password::bytea, 'hex')", { password => "digest($password, 'sha256')"});
03:16 noganex joined #mojo
03:24 jberger Snelius i think most of us here are fans of bcrypt
03:25 jberger I just dug through the state of cpan for it and I think my current recommendation for use for passwords is the Password module
03:26 jberger Errr Passwords
03:26 jberger https://metacpan.org/pod/Passwords
03:48 Snelius hmm, ok)
05:04 dboehmer_ joined #mojo
05:13 Snelius what about error handling with Mojo::Pg? I mean when $pg->select() (blocked version) produced exception it crashing all app. Im need to use eval still?
06:47 polettix joined #mojo
07:08 Vandal joined #mojo
07:29 polettix joined #mojo
07:48 tyldis Snelius: Try::Tiny?
07:48 purl it has been said that Try::Tiny is very nice, very clean, no frills or perl -MTry::Tiny -e 'try { die "I have spilled kd'\ guts all over the place" } catch { print STDERR "Oh No! Looks like $_" };'
08:31 Snelius eval faster
08:34 dod joined #mojo
08:41 dod joined #mojo
08:49 polettix joined #mojo
09:19 dotan_convos joined #mojo
09:36 dotan_convos joined #mojo
09:44 FROGGS joined #mojo
10:06 pink_mist Snelius: eval might be slightly faster, but using bare eval has a lot of problems that can catch you out, and Try::Tiny alleviates those. however little faster a bare eval is compared to Try::Tiny isn't worth it. I wouldn't suggest Try::Tiny myself though. use Syntax::Keyword::Try
10:09 sugar_ joined #mojo
10:14 sugar_ joined #mojo
10:31 rshadow joined #mojo
11:12 sugar_ joined #mojo
11:27 polettix joined #mojo
11:36 sri hmm, i'm tempted to add unique jobs to minion
11:36 sri now that we have postgres 9.5 it could be quite efficient
11:38 sugar_ joined #mojo
11:39 batman joined #mojo
11:39 sri $minion->enqueue(foo => \@args => {unique => 'some_key_that_can_only_be_once_in_the_queue_for_active_inactive_and_failed_jobs'})
12:36 mmp sri: what was added in 9.5 to optimize that?
12:36 sri on conflict do nothing
12:36 sri the idea was to add a new text row with a unique index
12:37 sri so enqueue would just fail gracefully if a job with that unique key already exists
12:43 mmp ah gotcha
13:03 sugar_ joined #mojo
13:20 stephan48 sri: i like that feature, especially as i have written a workaround some long time ago to detect duplicate jobs. right now having such a feature would simplify another project i am working on. the obvious usecase is dedupliction of user or cron triggered jobs and mentioning cron, you could also prevent long running jobs from being triggered in parrallel.
13:27 sri main problem is retry, don't know how to handle that
14:07 VVelox joined #mojo
14:09 tv left #mojo
14:25 dod joined #mojo
14:30 polettix joined #mojo
14:59 skaji joined #mojo
15:48 marty joined #mojo
16:04 marty joined #mojo
16:17 lluad joined #mojo
16:19 sugar_ joined #mojo
17:22 rshadow joined #mojo
18:24 tudorconstantin I've created another PR for that config mechanism in the `generate app` command
18:25 tudorconstantin I haven't created the test to try and actually run the generated app yet (lack of time), but it's on my todo list and hopefully I'll be able to do it as soon as possible
18:25 tudorconstantin that would be subject for another PR
18:39 good_news_everyon joined #mojo
18:39 good_news_everyon [mojo] kraih pushed 2 new commits to master: https://git.io/vylD0
18:39 good_news_everyon mojo/master 073baf1 Tudor Constantin: added the config mechanism in the app generated with generate app command...
18:39 good_news_everyon mojo/master 8e5facf Sebastian Riedel: Merge pull request #1067 from tudorconstantin/master...
18:39 good_news_everyon left #mojo
18:40 good_news_everyon joined #mojo
18:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylDg
18:40 good_news_everyon mojo/master 1ca05f9 Sebastian Riedel: fix config file
18:40 good_news_everyon left #mojo
18:51 good_news_everyon joined #mojo
18:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylDj
18:51 good_news_everyon mojo/master 1875398 Sebastian Riedel: use the config file to activate the documentation browser
18:51 good_news_everyon left #mojo
18:55 sri now it teaches a little more
18:59 good_news_everyon joined #mojo
18:59 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylyz
18:59 good_news_everyon mojo/master 64517e9 Sebastian Riedel: generate a better secret by default
18:59 good_news_everyon left #mojo
19:02 good_news_everyon joined #mojo
19:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vyly6
19:02 good_news_everyon mojo/master 14b0ae7 Sebastian Riedel: might as well use sha1_sum
19:02 good_news_everyon left #mojo
19:11 miller joined #mojo
19:49 tyldis joined #mojo
19:59 stryx` joined #mojo
20:22 stryx` joined #mojo
20:45 stryx` joined #mojo
21:34 PryMar56 joined #mojo
21:40 good_news_everyon joined #mojo
21:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylby
21:40 good_news_everyon mojo/master 798133c Sebastian Riedel: update Changes
21:40 good_news_everyon left #mojo
21:50 sri jberger, marcus, batman: i'd like to hear your opinion on what Mojo::File::move_to/copy_to should actually return
21:50 sri options are the invocant (current file), or new Mojo::File object for the target
21:52 marty_ joined #mojo
22:03 jberger I'm just about to not be able to respond for a few hours, but I'll give it a think
22:03 jberger My initial thought is to return a file object for the new location
22:03 jberger (Target)
22:03 jberger But I'll try to think of how it'll be used
22:07 haarg for move_to, returning the target seems much more useful
22:08 haarg i think it probably makes more sense for copy_to as well, aside from obviously wanting it to be consistent with move_to
22:14 good_news_everyon joined #mojo
22:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylAE
22:14 good_news_everyon mojo/master 09a566f Sebastian Riedel: add sibling method to Mojo::File
22:14 good_news_everyon left #mojo
22:17 lonerr joined #mojo
22:26 polettix joined #mojo
22:35 good_news_everyon joined #mojo
22:35 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylxS
22:35 good_news_everyon mojo/master 4d080d5 Sebastian Riedel: add realpath method and make sibling method a bit faster
22:35 good_news_everyon left #mojo
22:57 jberger haarg funny, that's the exact same thing I was going to say (it's intermission now)
22:58 sri and i agree :)
22:58 good_news_everyon joined #mojo
22:58 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylpH
22:58 good_news_everyon mojo/master 253ab3d Sebastian Riedel: just return the destination
22:58 good_news_everyon left #mojo
23:02 good_news_everyon joined #mojo
23:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylhv
23:02 good_news_everyon mojo/master 9908e20 Sebastian Riedel: use the sibling method instead
23:02 good_news_everyon left #mojo
23:05 sri good we have windows testing https://ci.appveyor.com/project/kraih/mojo/build/182
23:09 good_news_everyon joined #mojo
23:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vylhl
23:09 good_news_everyon mojo/master fd3cf43 Sebastian Riedel: realpath has problems on Windows
23:09 good_news_everyon left #mojo
23:19 genio I'm trying to get my berrybrew setup on Win10 going well.  Man, testing is _really_ slow on Windows
23:21 genio 3 minutes and running on YAML
23:28 genio ~8 minutes to test YAML
23:29 genio cpan-outdated -p | cpanm can be fatal in this world.
23:29 genio IO::Socket::SSL is also taking 40 forevers
23:29 purl okay, genio.
23:29 Grinnz you can --notest, but on windows i'd kinda want the tests to run
23:35 genio I'm beginning to think IO::Socket::SSL just isn't going to do anything
23:37 genio looks like I'm not going to setup many perls to play with tonight.  so much easier with *nix machines
23:42 genio going to just give up on IO::Socket::SSL I guess
23:48 genio odd. maybe it's cpanm that blows up on Windows.
23:49 genio re-ran the install with cpan IO::Socket::SSL and it ran fairly quickly

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