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

IRC log for #mojo, 2017-03-01

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

All times shown according to UTC.

Time Nick Message
00:46 pink_mist joined #mojo
00:47 tardisx Is there any reason why Minion::Job doesn't support a way to indicate progress of a task, say a percentage, or some other arbitrary "progress report"?
00:51 sugar joined #mojo
00:57 pink_mist how could it?
00:58 pink_mist you'd need to write hooks into your task for it to query
00:58 tardisx the thing running the task could do something like $job->progress(59)
00:58 pink_mist and that's just not worth the effort
00:58 tardisx and then the "carer" (say a REST interface polling the job) could report that to the end user
00:58 pink_mist how do you even know the job is perl?
00:59 tardisx well I do, since I'd be writing it. I'm only talking about it being optional.
00:59 tardisx Say my task is to generate a multi-megabyte CSV file, it would be nice for the end user requesting that to know how far along the task is
01:03 Grinnz i think it's come up before, but I don't know if anyone's tried to do it yet
01:04 tardisx cool, just wasn't sure if there was some sort of technical or ideological reason behind it
01:05 tardisx it'd be a nice to have, but no show stopper
01:11 stryx` joined #mojo
01:53 sugar joined #mojo
03:13 asarch joined #mojo
03:20 noganex joined #mojo
03:40 augensalat joined #mojo
04:04 salva joined #mojo
04:33 simcop2387 joined #mojo
05:01 inokenty-w joined #mojo
05:04 dboehmer_ joined #mojo
06:33 eseyman joined #mojo
06:43 dod joined #mojo
06:49 dod joined #mojo
06:55 eseyman joined #mojo
07:00 tudorconstantin guys, I created another PR for having the config file generated automatically by the `generate app` command
07:01 tudorconstantin I hope this one is up to Mojo standards in terms of quality
07:05 marcus durr, I can't get perlomni.vim to work. It keeps complaining about scripts needing to be in ~/.vim/bin :'(
07:10 Vandal joined #mojo
07:37 Jonis joined #mojo
07:42 Jonis -w 7
07:57 AndrewIsh joined #mojo
08:20 eseyman joined #mojo
08:29 rshadow joined #mojo
08:36 trone joined #mojo
08:42 sri hahahaha, re aws https://pbs.twimg.com/media/C5xo9n7UoAEfnCo.jpg
09:03 osfabibisi joined #mojo
09:08 dod joined #mojo
09:11 sri tudorconstantin: afraid you missed something
09:28 tudorconstantin yes, I saw, thanks for another review and sorry for the mistake
09:29 tudorconstantin I actually ran the mojolicious/commands.t tests and they were successful, but they don't try to run the generated app
09:30 tudorconstantin and I was trying now to create a test for that - to try and start the generated app
09:31 tudorconstantin with no success so far
09:31 sri well, running the app might be a bit risky portability wise
09:32 sri but i suppose you could at least load it with Mojo::Server or so
09:34 tudorconstantin cool, thx for the hint, I'll look into that a bit later today
09:34 tudorconstantin chdir "my_app";
09:34 tudorconstantin require lib::MyApp;
09:34 tudorconstantin my $ref = Mojolicious::Commands->start_app('MyApp');
09:34 tudorconstantin that's what I was into, but it's not quite working :D
09:37 rshadow joined #mojo
09:55 osfabibisi joined #mojo
10:03 kes joined #mojo
10:13 sugar joined #mojo
10:34 elrey sri: yes, that was a silly question, thank you.
11:15 * sri got a new keyboard, and it's great
11:15 sri corsair k65
11:28 pink_mist looking at pictures of it - doesn't it have the same keys that are above any protective edge as the keyboard you dropped and broke did? (but maybe they have better replacement strategy?)
11:28 pink_mist s/same keys/same kind of keys/
11:29 sri hehe, yea
11:29 sugar joined #mojo
11:29 sri this time it's standard cherry switches, which you can get anywhere
11:30 pink_mist ah, that's much better =)
11:35 sugar joined #mojo
12:00 foursixnine joined #mojo
12:08 osfabibi_ joined #mojo
12:30 salv0 joined #mojo
12:33 aborazmeh joined #mojo
13:00 sri could use some nicer keycaps though
13:12 sri foursixnine: got any tips for getting a good cherry mx keycap set? :)
13:19 sri or Phil21
13:28 sugar joined #mojo
13:37 foursixnine sri, PBT keycaps: https://mechanicalkeyboards.com/shop/index.php?l=product_list&c=336
13:38 sri foursixnine: hard to see which ones are smooth and which are textured
13:43 Phil21 Ducky thick PBT are my fave if I can find them
13:48 ashimema joined #mojo
13:59 ashimema joined #mojo
14:01 stryx` joined #mojo
14:08 marty joined #mojo
14:09 gizmomathboy joined #mojo
14:13 jberger Note that Phil21 buys extra keyboards just to harvest their keycaps
14:13 jberger Not sure that that is a normal thing :p
14:20 gryphon joined #mojo
14:26 nic Don't spend significant money on a keyboard till you've checked whether you can get additional keys added later once you have the hang of the original set
14:27 * nic is nearly there -- just SysRq & Break to learn
14:29 sugar joined #mojo
14:36 rshadow joined #mojo
14:46 asarch joined #mojo
15:04 Phil21 what's not normal about that?
15:05 sri jberger: *hides the extra keyboards he bought to harvest keycaps*
15:06 sri think i want smooth white or multi color keycaps
15:06 Phil21 sri: one thing to be careful about is profile - it's not obvious, but you likely have already noted it
15:06 Phil21 you'll want to keep it the same unless you're changing on purpose
15:07 Phil21 OEM profile PBT are kind of a pita to find, quality ones
15:10 sri i'm looking for one consistent set to start with
15:10 cosimo win1 6
15:11 foursixnine sri, you can also take a look at filco keys, they're abs but blank ones are quite good too... In my case i really like Vortex's PBT
15:12 sri foursixnine: i don't remember, were your votrex keys smooth or textured?
15:19 sri i guess pbt keycaps are all a little textured
15:19 foursixnine They are textured
15:20 PryMar56 joined #mojo
15:54 sugar joined #mojo
15:56 lluad joined #mojo
16:17 sugar joined #mojo
16:39 PopeF0 joined #mojo
16:53 miller joined #mojo
17:00 * sri wonders if Mojo::File should have a copy_to method
17:00 sri for File::Copy::copy with exception throwing
17:01 sri like Mojo::File::move_to and File::Copy::move
17:34 stryx` joined #mojo
17:42 mishanti1 Have anyone here looked into composing the "complete" openapi spec-file from multiple modules in larger applications?
17:42 mishanti1 In practical terms I mean instead of having one big monster of a json-document, having spec associated with and "composed" from the different modules providing and registering endpoints in the application they are included in.
17:44 mishanti1 Hoping that made sense.
17:45 pink_mist I get what you're asking. but I've never programmed for openapi, so I can't help, sorry :P
17:49 rost joined #mojo
17:50 rost hi everybody
17:50 purl Hi, Dr. Nick!
17:53 mishanti1 pink_mist: Thanks anyway :)
17:54 ribasushi joined #mojo
17:54 rost i have a problem with mojolicious. I've got error "Action not found in controller" and 404, but I certanly sure that controller code works, I check it with die.
17:55 rost I don't have template for that action, but I return json answer. Besides, this code works perfectly on my laptop, but it don't work on other, fresh server.
17:55 rost Mojolicious version 6 on both computers
17:56 sri mojolicious 7 is current
17:59 rost i know, but as far as i remeber, it's a common mistake of programmer - when action exists, but Mojolicious can't see it. I got this error even in early versions, maybe before the first release.
18:04 eseyman joined #mojo
18:10 esh joined #mojo
18:11 Pyritic joined #mojo
18:13 tyldis mishanti1: Not really, but what are you asking for?
18:24 jberger mishanti1 with the loose refs option (I forget what its called) in the plugin you certainly could do that
18:27 esh joined #mojo
18:31 rshadow joined #mojo
18:34 esh joined #mojo
18:47 sugar joined #mojo
19:02 sri btw. here's an idea for a new mojolicious test module, a proxy app that forwards requests to a remote service, and then caches results in a local cache directory in flat files
19:03 sri like t/my_webservice_cache/
19:04 stephan48 for easier collection of such a test responses?
19:04 sri yes
19:04 sri you collect the responses from the live service once
19:04 sri and then have a directory with cached responses you can commit
19:04 sri and when you add something new you run it again and have a new file
19:05 stephan48 sounds like a good idea. i can imagine this being a hudge benefit. cause who isn't lazy and skips thoose "live server" tests because they either don't wann have their tests poke a live server or don't wanna bother with manually collecting and replaying such "recordings".
19:05 sri or just delete all cached files to get fresh data
19:06 stephan48 wasn't there a plugin for the useragent doing something similar(transaction replaying)?
19:06 sri this came up at work when coolo had to modify one of my tests and add more responses to the mock web service
19:07 sri yea, but i think it's not done correctly
19:08 sri think you mean this https://metacpan.org/pod/Mojo::UserAgent::Mockable
19:08 sri it's very different
19:08 sri not even close actually
19:09 sri what i have in mind would be a proxy app you can add to any Mojo::UserAgent instance
19:11 stephan48 as a seperate http/unix-socks proxy?
19:11 sri no
19:12 sri $ua->server->app(Mojo::CachingTestProxy->new)
19:12 sri or rather
19:12 sri $ua->server->app(Mojo::CachingTestProxy->new('t/my_webservice_cache'))
19:12 sri or even
19:13 sri $ua->server->app(Mojo::CachingTestProxy->new('http://my.webservice.example.com/lalalala', 't/my_webservice_cache'))
19:14 sri $ua->get('/weather?city=berlin');
19:14 sri that would request http://my.webservice.example.com/lalalala/weather?city=berlin and cache the response in t/my_webservice_cache for the next time that same request is sent
19:15 stephan48 yup
19:15 sri personally i don't care very much about headers yet, but if anyone wants to turn it into an ongoing project, add support for interesting headers one by one
19:16 rshadow joined #mojo
19:16 sri and if you need to support like $us->get('http://example.com/weather?city=berlin'), just have an example for how to add a start event to rewrite the url
19:17 sri s/us/ua/
19:18 sri would have been an interesting hackweek project too
19:18 sri but came up a little late
19:18 sri maybe in 8 months ;p
19:18 sri unless someone beats me to it
19:18 stephan48 heh
19:19 stephan48 do you have a place to document such ideas?
19:19 sri just the irclog
19:19 stephan48 mh. ok
19:20 marcus sri: What did you end up with for hackweek?
19:20 sri obligatory https://media2.giphy.com/media/moJhRvtzW6QKY/200_s.gif
19:20 sri marcus: 7.27 ;p
19:20 stephan48 yea sri that was my thinking
19:20 stephan48 might it make sense to start a wiki article for such ideas/plans?
19:22 sri https://github.com/kraih/mojo/wiki/showerthoughts
19:23 stephan48 you wanna create it or should I? my entry will be a link to this discussion and a *very* short description
19:24 sri feel free
19:24 sri don't actually name it showerthoughts though :)
19:25 stephan48 too late.
19:25 sri https://github.com/kraih/mojo/wiki/ideas
19:26 sri you can also just copypasta the irclog
19:26 stephan48 yea thought about that
19:26 stephan48 to make it a bit more resilient in case the irc.log gets pruned
19:34 stephan48 mh. the only sensible way for showing the irc lines is a code block and then they get a scrollbar instead of being wrapped :/
19:36 rshadow joined #mojo
19:37 eseyman joined #mojo
19:49 esh joined #mojo
20:35 stryx` joined #mojo
20:40 jacobydave joined #mojo
20:49 PopeF joined #mojo
20:57 jnbek joined #mojo
21:05 PopeF0 joined #mojo
21:05 Pyritic joined #mojo
21:23 polettix joined #mojo
21:29 kes joined #mojo
21:38 Pyritic joined #mojo
21:42 sugar joined #mojo
22:15 miller joined #mojo
22:24 batman joined #mojo
22:47 sugar joined #mojo
22:56 stryx` joined #mojo
23:54 Janos joined #mojo

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