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

IRC log for #mojo, 2017-06-19

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

All times shown according to UTC.

Time Nick Message
00:23 hrupp joined #mojo
01:23 aborazmeh joined #mojo
01:35 gizmomathboy joined #mojo
01:42 tardisx joined #mojo
01:51 gizmomathboy joined #mojo
02:11 veryrusty joined #mojo
02:28 noganex_ joined #mojo
03:43 veryrusty joined #mojo
04:10 jberger some possible prior art: https://metacpan.org/pod/Time::Duration::Parse
04:10 jberger just one I happen to have seen before
04:10 jberger Grinnz: are you at TPC?
04:10 jberger don't you live out east-coast way/
04:10 jberger s{/}{?}
05:02 Grinnz no, and yes
05:20 dod joined #mojo
05:24 gizmomathboy joined #mojo
05:25 dod joined #mojo
05:56 disputin joined #mojo
06:11 dod joined #mojo
06:26 schelcj joined #mojo
06:44 veryrusty joined #mojo
07:01 AndrewIsh joined #mojo
07:26 trone joined #mojo
07:38 dod joined #mojo
08:18 veryrusty joined #mojo
08:32 inokenty-w joined #mojo
08:34 * sri released Minion 7.0
08:35 sri bumped the version since it updates the schema pretty substantially
08:42 dod joined #mojo
08:44 nic sri++  # exciting new features
08:44 rshadow joined #mojo
08:44 nic I find it very strange that there would be a perl6 book called Dancer
08:44 veryrusty joined #mojo
08:45 sri wasn't it called Bailador?
08:45 nic yeah, but those are the same
08:46 sri i've seen the "what should we do with Bailador" post... and it's pretty cringy
08:46 dod joined #mojo
08:46 nic heh
08:46 simbabque isn't gabor working on a Bailador book?
08:46 nic yeah, any idea why it's called Bailador (Dancer)?
08:47 nic Is the subtitle 'Dancer for perl6'?
08:47 simbabque the module? because it's Dancer in Spanish and a Spanish-speaking guy ported it
08:47 simbabque afai remember anyway... I think Nine talked about it, possibly at the last yapceu
08:48 nic I should look things up instead of taking your time  :)  It's just one of those random questions in my heatwave-frazzled head
08:49 nic I have a strange symptom with my Minion backend, so I should really be focusing on that
08:55 simbabque nic: I was wondering the same thing at the time
08:57 schelcj joined #mojo
08:58 Peppaq joined #mojo
09:04 gergf_ joined #mojo
09:11 * sri is already bored of talking about Perl 6
09:14 irqq joined #mojo
09:15 stryx` joined #mojo
09:25 prg joined #mojo
09:34 hertzhaft joined #mojo
09:45 dod joined #mojo
09:49 veryrusty joined #mojo
10:23 veryrusty joined #mojo
10:43 veryrusty joined #mojo
10:53 nic sri: In minion_bench.pl, to help people who haven't had a coffee, there could be a comment beside $ENQUEUE saying something like "# or use $DEQUEUE * $REPETITIONS * $WORKERS
10:57 nic by whom I also include people who confused the canister of decaf with the canister of normal, or people who went out dancing last night, or parents of young children, or those in a heatwave who don't have air-con at home, or those who are in all four categories and DIDN'T USED TO BE THIS STUPID!1!
11:03 karjala_ joined #mojo
11:18 nic sri: sorry I didn't have time to review Minion, was away at the weekend, doing it now
11:28 tchaves joined #mojo
11:37 veryrusty joined #mojo
11:39 nic https://metacpan.org/source/SRI/Minion-7.0/lib/Minion.pm#L132 s/istributed/distributed/
11:45 sri oops
11:46 nic I know.  Nearly had one of my cpus in an infinite loop :)
11:48 tholen joined #mojo
11:48 tholen_ joined #mojo
11:48 tholen__ joined #mojo
11:48 nic phew, the tholens are back
12:06 nic Minion v7 is very nice
12:06 simbabque joined #mojo
12:13 nic at https://metacpan.org/source/SRI/Minion-7.0/lib/Minion/Backend/Pg.pm#L208 you could have chosen "expires >= now()" in place of "expires > now()".  Depends whether on that edge case you want to allow an extra invocation or not
12:35 CandyAngel Is there a reason why parse_frame in ::WebSocket does: unpack 'C*', substr()
12:35 CandyAngel unpack 'C2', $$buffer <- same thing, less ops?
12:36 veryrusty joined #mojo
12:39 sri CandyAngel: feel free to optimize
12:46 CandyAngel Ooo thankies
12:47 tholen joined #mojo
12:47 tholen_ joined #mojo
12:47 tholen__ joined #mojo
12:59 kes joined #mojo
12:59 Pyritic joined #mojo
13:01 tholen joined #mojo
13:01 tholen_ joined #mojo
13:01 tholen__ joined #mojo
13:03 Pyritic joined #mojo
13:03 maschine joined #mojo
13:04 kes Hi. We have container with configured MOJO_CONFIG
13:05 kes when we try to install new Mojo: 7.29 -> 7.33. Tests fail with error:
13:05 kes Can't parse config "/usr/xxxx/etc/conf/crypto.conf": Malformed JSON: Expected string while parsing object at line 2, offset 4 at /root/.cpanm/work/1497877019.185/Mojolicious-7.33/blib/lib/Mojolicious/Plugin/JSONConfig.pm line 10.
13:06 kes Should a test ignore environment variable?
13:06 nic kes: You need to have no env vars during tests
13:11 tholen joined #mojo
13:11 kes nic: ok, thank you
13:14 tholen joined #mojo
13:15 tholen joined #mojo
13:15 nic tholen: Don't know if you're aware, but your client keeps disconnecting and reconnecting, causing a fair bit of spam
13:15 nic good that you got rid of tholen_ & tholen__ tho
13:16 tholen joined #mojo
13:19 Pyritic joined #mojo
13:21 tholen joined #mojo
13:21 tholen joined #mojo
13:23 tholen joined #mojo
13:24 tholen joined #mojo
13:39 nic (I've sent tholen an email)
13:44 tholen joined #mojo
13:46 tholen joined #mojo
13:47 tholen joined #mojo
13:47 tholen_ joined #mojo
13:47 tholen__ joined #mojo
13:47 tholen___ joined #mojo
13:50 jberger Yay, I met meredith IRL!
13:55 tholen joined #mojo
13:55 gizmomathboy joined #mojo
13:57 dod joined #mojo
14:02 dod joined #mojo
14:41 tchaves joined #mojo
14:57 marty joined #mojo
15:02 stryx` joined #mojo
15:16 jberger woooo, I won a prize!
15:16 CandyAngel Yay!
15:22 karjala_ I wonder why people are unafraid of doing programming work (and installing 3rd-party modules) outside of VMs... if one of these modules (from npmjs eg) contained spyware they could get your .ssh keys and everything you own#
15:24 Grinnz true... definitely more of a risk with something as popular as js
15:26 stephan48 i think the risk would probably be the same in all areas. the lack of validation and checking what you download and use(be it code, compiled application sor knowledge in general) is a widespread problem. who verified a module of a few hundred lines of code? especially if they use multiple of thoose
15:28 stephan48 it boils down to trust. and where you are to lazy to apply and check trust paths(f.e. one of these can be yourself reading and checking the code manually, it does not need to be someone else) you end up taking a more or less edjucated risk
15:29 stephan48 the problem with the js enviroment is merely that they tend to modularize some of the most absurd and smallest things
15:30 stephan48 someone here recently saied they did not understand cgi-lib.pl and still used it. isn't this kind of the same?
15:30 stephan48 let says it this way - being ignorant of blissfully unaware of this kind of problem helps a lot with being able to sleep good at night :)
15:31 dod joined #mojo
15:31 stephan48 ignorant or*
15:43 gryphon joined #mojo
15:43 karjala_ :)
15:44 sri jberger: yay
15:45 genio jberger: What'd ya win?
15:45 sri that is a good question
15:50 jberger a usb-powered fan
15:50 jberger \o\
15:50 jberger /o/
15:50 sri lol
16:06 kes tell me please. why ->req->body is empty while ->req->content is not?
16:06 kes http://paste.scsys.co.uk/564450
16:06 chandwki joined #mojo
16:10 Grinnz ->body returns empty string if the content is multipart
16:27 karjala_ joined #mojo
16:42 stryx` joined #mojo
16:49 kes How to get raw data from request?
16:50 PryMar56 joined #mojo
16:51 kes and why it is not downgraded?
16:51 kes >Mojo::Content::MultiPart will be automatically downgraded to Mojo::Content::Single.
16:52 Grinnz that is referring to when setting the body, not retrieving, as far as i can tell
16:52 Grinnz could probably be clearer
16:54 kes ah, yes. 'when setting the body'. But is there a way to access to request data ASIS?
16:54 Grinnz req->build_body should return it
16:59 good_news_everyon joined #mojo
16:59 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vQvJ9
16:59 good_news_everyon mojo/master d9a5ce8 Sebastian Riedel: less is more
16:59 good_news_everyon left #mojo
16:59 rshadow joined #mojo
17:05 stryx` joined #mojo
17:07 gryphon joined #mojo
17:31 tchaves joined #mojo
17:44 irqq joined #mojo
17:47 Pyritic joined #mojo
17:53 sh14 joined #mojo
17:54 Intern42 joined #mojo
18:18 Pyritic joined #mojo
18:27 bwf joined #mojo
18:43 jabberwok joined #mojo
18:55 kes May I turn off route caching for some specific path?
19:03 itaipu joined #mojo
19:04 dod joined #mojo
19:23 Sebbe joined #mojo
19:25 sri you can't
19:25 sri (patches welcome if someone knows how to do it)
19:35 irqq joined #mojo
19:52 PopeF0 joined #mojo
19:53 Sebbe joined #mojo
20:01 gizmomathboy joined #mojo
20:07 zivester joined #mojo
20:13 bwf joined #mojo
20:28 brunoramos joined #mojo
20:36 trone joined #mojo
20:51 Pyritic joined #mojo
20:55 cheako joined #mojo
21:19 D joined #mojo
21:22 Peppard joined #mojo
21:23 D I am using morbo to serve up static files from the public directory.  It's a pretty minimal lite app with a / root that redirects to /somefile.html;  occasionally, an ARRAY(0x..) 404 will pop up when I'm requesting /some/file/with/path/to.html
21:25 D is there a simple fix or is it necessary to write the routes for this simple use case?
21:27 Grinnz sounds unexpected, but would need more specifics
21:29 D use Mojolicious::Lite; get '/' => sub { my $self = shift; $self->redirect_to('/some.html') }; app->start
21:29 D that's it for the app
21:30 D public/ has a bunch of js and html files in subdirec
21:30 D tories
21:32 D public/abc/def/2005/hij2005v227i01.html
21:32 D http://127.0.0.1:3000/abc/def/2005/hij2005v227i01.html
21:35 Grinnz try using https://metacpan.org/pod/Mojolicious::Plugin::Directory::Stylish which has a dir_index option, rather than making a route for the index
21:36 D will do.  Thanks
21:39 Grinnz also, for serving static files theres probably no real reason to use morbo, rather than just a regular daemon like in the synopsis of that module
21:40 Grinnz or when you have the lite script 'perl litescript.pl daemon'
21:42 D thanks again
22:08 Peppard joined #mojo
22:21 nic congrats jberger on winning Best-Dressed Physicist (three years in a row)!
22:41 disputin joined #mojo
22:51 cheako joined #mojo
23:01 castaway joined #mojo
23:20 HtbaaPi joined #mojo
23:41 HtbaaPi joined #mojo

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