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

IRC log for #mojo, 2017-05-28

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

All times shown according to UTC.

Time Nick Message
00:00 litwol Is there 'morbo' automatic app restart when file changes for /minion worker/ ?
00:03 sri litwol: not yet
00:09 dboehmer joined #mojo
00:24 sri hmm, now i wonder if this should be a Mojo::Util function https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Command/get.pm#L18-L20
00:24 sri so other commands can just reuse it
00:32 dboehmer joined #mojo
00:55 karjala_ joined #mojo
02:55 noganex_ joined #mojo
04:04 dboehmer_ joined #mojo
04:39 karjala_ joined #mojo
06:24 VVelox joined #mojo
07:16 Vandal joined #mojo
08:23 Grinnz jeez... http://imgur.com/gallery/wf6dH
08:39 nic sri: In Changes I'm thinking it should be s/to STDIN/from STDIN/
08:42 nic You could also have an example "mojo .... <payload.txt"
09:08 karjala_ joined #mojo
09:20 nic (the POD needs a s/to/from/ too)
10:20 tchaves joined #mojo
11:45 karjala_ joined #mojo
11:55 sri so, who else thinks it should be "Improved get command with support for piping data from STDIN."?
11:55 sri doesn't sound right to me
12:11 good_news_everyon joined #mojo
12:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vHcld
12:11 good_news_everyon mojo/master 2d371c3 Sebastian Riedel: better examples for using STDIN/STDOUT with the get command
12:11 good_news_everyon left #mojo
12:11 sri i think that's better anyway
12:13 sri hard to get funding for open source software everywhere i suppose https://twitter.com/eranhammer/status/868568699107540992
12:36 jberger I was wondering if you'd seen that one
12:38 jberger Also yesterday when I wondered if I had the code but you'd literally just shown it, I was just running off the door
12:38 jberger On a mini family trip, my parents bought a new place
12:39 karjala_ joined #mojo
13:07 Petru joined #mojo
13:11 sh14 joined #mojo
14:23 gryphon joined #mojo
14:24 sri hmm, looks like the get command doesn't work with windows perl anymore :(
14:30 kaare joined #mojo
14:46 good_news_everyon joined #mojo
14:46 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vHcub
14:46 good_news_everyon mojo/master 6623399 Sebastian Riedel: try checking if STDIN is a pipe
14:46 good_news_everyon left #mojo
14:47 sri damn, that breaks all kinda things
14:49 sri seriously, what's the correct idiom here?
14:49 sri how do you handle optional input from STDIN portably?
14:51 jberger optional I have no idea
14:51 jberger when I read through the backlog I thought of how I was doing something similar for Mojolicious::Command::nopaste
14:52 jberger but there WILL be file input at some point
14:52 jberger so this works
14:52 jberger https://github.com/jberger/Mojolicious-Command-nopaste/blob/master/lib/Mojolicious/Command/nopaste/Service.pm#L93-L106
14:53 jberger but since get doesn't require file input, I'm not sure what can be done
14:54 sri jberger: i don't get it, where is the STDIN handling code?
14:54 jberger magic open <>
14:54 jberger if files were specified they are placed into @ARGV and used by the magic open
14:55 sri ah
14:55 jberger if none were specified then <> is <STDIN>
14:55 jberger but as I said, nopaste is useless without SOME file being present, so I can make that work
15:00 jberger can you check if STDIN is not a tty?
15:00 good_news_everyon joined #mojo
15:00 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vHcz8
15:00 good_news_everyon mojo/master 1648ac9 Sebastian Riedel: check if STDIN on Windows is a TTY
15:00 good_news_everyon left #mojo
15:00 jberger hahah
15:00 sri oh hey
15:00 sri lol
15:02 sri looks like tests pass again
15:02 sri shitty idiom
15:03 sri pass https://ci.appveyor.com/project/kraih/mojo/build/258/job/qhv3rfild5lpqow2
15:03 sri is this really how you do it? https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Command/get.pm#L18-L20
15:05 jberger maybe check in #p5p?
15:13 Janos joined #mojo
15:15 jberger or maybe make -f without an argument tell the program to read STDIN
15:15 jberger or a - or something
15:16 jberger but no, -f is form not file
15:16 purl okay, jberger.
15:16 jberger curse you purl
15:18 good_news_everyon joined #mojo
15:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vHcgi
15:18 good_news_everyon mojo/master 929983f Sebastian Riedel: test a few more get command features
15:18 good_news_everyon left #mojo
15:20 jberger cool stuff in the past few days sri++
15:23 good_news_everyon joined #mojo
15:23 good_news_everyon [mojo] kraih deleted get_form at 23d9456: https://git.io/vHcgH
15:23 good_news_everyon left #mojo
15:24 sri jberger: dude, can you believe it's already been two years since we last tried to add signatures? :O https://github.com/kraih/mojo/compare/feature
15:24 jberger time flies!
15:25 jberger are signatures non-experimental in 5.26?
15:25 PryMar56 joined #mojo
15:25 sri dunno
15:26 jberger I wish I could remember anything about the :scope/:has stuff
15:26 jberger I guess I need to go back to the IRC log
15:26 PryMar56 joined #mojo
15:26 jberger I remember I was really keen on it
15:26 jberger I needed it for something
15:27 sri it's pretty convenient in general
15:28 sri we wanted $dom->at('foo')->find('> bar') and the like
15:28 sri which automatically allows for :has()
15:31 jberger I think it started here: https://irclog.perlgeek.de/mojo/2015-08-14#i_11055840
15:31 * jberger reads
15:32 jberger right and :scope is just the implicit top if there isn't one
15:32 sri yea
15:32 jberger ie, '> bar' is really ':scope > bar'
15:33 sri your branch was almost there
15:33 sri but i think we scrapped it because it was too experimental
15:33 sri now the spec has been unchanged for two years and most browsers support it
15:34 sri so yea, it would get my vote for addition with an experimental flag
15:34 sri like the case insensitive selector
15:37 dod joined #mojo
15:42 dod joined #mojo
15:49 jberger I need to get this back into my brain
16:06 disputin joined #mojo
16:06 zivester joined #mojo
16:43 marty joined #mojo
17:02 zivester joined #mojo
17:13 disputin joined #mojo
17:20 tyldis re: signatures in 5.26, still experimental
17:25 disputin1 joined #mojo
17:46 zivester joined #mojo
18:14 bryan___ joined #mojo
18:29 zivester joined #mojo
21:14 Petru joined #mojo
21:39 jabberwok joined #mojo
22:30 stryx` joined #mojo
22:50 aborazmeh joined #mojo
22:55 good_news_everyon joined #mojo
22:55 good_news_everyon [mojo] kraih deleted feature at b4386e0: https://git.io/vHc5E
22:55 good_news_everyon left #mojo
23:23 eseyman joined #mojo
23:36 gizmomathboy joined #mojo
23:50 trwww joined #mojo

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