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

IRC log for #mojo, 2015-10-03

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

All times shown according to UTC.

Time Nick Message
01:17 KimmoNO_ joined #mojo
02:05 aborazmeh joined #mojo
02:32 noganex joined #mojo
02:40 Lucas1 joined #mojo
02:40 bpmedley joined #mojo
02:43 SmokeMachine joined #mojo
03:51 melo1 joined #mojo
04:04 jberger joined #mojo
04:13 davido_ joined #mojo
04:21 thowe joined #mojo
05:30 absolut_todd joined #mojo
05:52 absolut_todd joined #mojo
06:09 absolut_todd joined #mojo
06:12 absolut_todd joined #mojo
06:17 absolut_todd joined #mojo
06:22 absolut_todd joined #mojo
06:37 kaare joined #mojo
06:52 Lee joined #mojo
07:34 dod joined #mojo
07:39 dod joined #mojo
07:48 Mattes joined #mojo
07:59 amon joined #mojo
08:16 ans joined #mojo
08:27 Vandal joined #mojo
08:30 sri jberger/preaction: let me know where the holes are in the minion api
08:44 * sri is still looking for ideas what to do with http://mojolicio.us/perldoc/Minion/Backend/Pg#list_jobs
08:52 berov joined #mojo
09:25 meshl joined #mojo
09:32 gaunt joined #mojo
09:38 sh4 joined #mojo
10:18 mattastrophe joined #mojo
10:21 dod joined #mojo
10:29 dod joined #mojo
10:30 trone joined #mojo
10:32 mattastrophe joined #mojo
10:39 stephen joined #mojo
10:48 dod joined #mojo
11:28 ribasushi joined #mojo
11:58 sugar joined #mojo
12:15 meshl joined #mojo
12:36 Martin90 joined #mojo
12:41 aborazmeh joined #mojo
12:44 mishanti1 sri: One use is monitoring, eg for us that use tools like nagios to keep track of what is going on.
12:44 mishanti1 Being able to monitor number of jobs, age, state and those kinds of things is very nice.
12:52 bpmedley_ https://github.com/brianmed/minion_ui <-- Thoughts?
12:53 bpmedley_ Should work on desktop and mobile.
13:00 sri bpmedley_: screenshot?
13:00 sri mishanti1: use for what?
13:01 sri (if you release a ui, always include screenshots!)
13:02 sri people tend to not even try it without
13:03 mishanti1 sri: You mentioned ideas for uses of Minion::Backend::Pg->list_jobs()? Or did you mean ideas for how to change the method?
13:03 sri mishanti1: ideas for how to change it
13:03 mishanti1 Ah. My bad. :)
13:03 sri use is pretty clear, any kind of ui
13:05 sri the big problem is to a) make it flexible enough for all kinds of awesome ui designs, and b) keep it portable enough for a lot of different backends
13:11 mishanti1 At least for my use UI is irrelevant, but it is good that you think of the UI-users when designing these things.
13:13 bpmedley_ https://github.com/brianmed/minion_ui <-- Updated with screen shots
13:17 mishanti1 Btw; https://twitter.com/ChristopherRaa/status/650298263304802304   <--  couple of nice words about the mojo t-shirt I ordered.
13:20 Mattes joined #mojo
13:22 sri bpmedley_: interesting look
13:22 bpmedley_ sri: Thanks
13:23 sri i've not actually seen a job queue ui for mobile yet
13:25 bpmedley_ Cool.  It should work on almost every mobile device out there.  And desktop.  Also includes pull to refresh.
13:25 jberger bpmedley_: why b64 embed dependencies that you could get from a cdn?
13:25 sri the part that really interests me though is real-time graphs on the dashboard and job navigating, that's where the minion api might need refinements
13:25 jberger I can't scroll far enough to see your templates
13:26 jberger sri: yeah it'd need some way to do push notification
13:27 sri pull should be good enough
13:27 sri nobody does push
13:27 jberger Just periodic polling
13:29 sri ->stats might be enough for graphs, i imagine you want to plot active vs inactive workers, and perhaps growth of inactive jobs
13:30 HtbaaPi joined #mojo
13:30 jberger Growth of inactive jobs means that the monitor has to keep its own data
13:31 jberger Unless it just relies on the front-end being open
13:31 sri you keep the data you got and update the graph
13:32 sri with every pull
13:32 sri you know, using something like this https://fastly.github.io/epoch/
13:32 jberger In the front end or back?
13:33 sri front
13:33 sri the backend will not aggregate stats
13:33 jberger Ok that's easy enough
13:33 jberger I was planning on that
13:34 jberger The project just gets a lot more complex if it has to store it's own data
13:35 jberger I suppose I could use a dbm deep array as a time series
13:35 bpmedley_ jberger: https://github.com/brianmed/minion_ui/blob/master/minion_ui.pl <-- Uses CDN now, so the code can be viewed via github!
13:36 * sri loves this style https://fastly.github.io/epoch/real-time/#area
13:39 sri guess what matters here is ideas for stuff that could be shown on the dashboard
13:39 sri we don't track memory usage for example, so that's out
13:41 sri job navigation should turn out to be more tricky, you can't search for queues yet for example, or even get a list of queues in use
13:45 zivester joined #mojo
13:54 abra joined #mojo
14:22 jberger bpmedley_: the pricing on kendo makes it pretty much out of the question for this project
14:22 bpmedley_ jberger: kendo ui core is free
14:23 jberger where can I find that?
14:23 bpmedley_ http://www.telerik.com/kendo-ui/open-source-core
14:23 Dada joined #mojo
14:31 PryMar56 joined #mojo
14:33 asm35 joined #mojo
14:39 jberger bpmedley_: I think like sri's example from yesterday, I'd kinda like the backend to be more pass-through than your example is
14:39 jberger I'm not exactly sure why, though
14:39 jberger gut feeling
14:40 jberger or more like, reusability
14:40 bpmedley_ Sorry, pass-through?  May I ask which example?
14:40 jberger kue
14:41 jberger https://github.com/Automattic/kue/blob/master/lib/http/index.js#L51
14:42 bpmedley_ Sure, the api for my smallish example is awful
14:42 Lee joined #mojo
14:44 jberger but it seems to be because kendo expects certain fields
14:44 jberger like semantic ui does for autocomplete search
14:44 jberger (not that you would know that example off hand)
14:46 bpmedley_ Cool, thx for looking.  I have a bday party to goto, so perhaps we can continue the discussion later?
15:05 cpan_mojo Mojo-Webqq-1.5.2 by SJDY https://metacpan.org/release/SJDY/Mojo-Webqq-1.5.2
15:08 jberger sure, have fun
15:31 nnutter joined #mojo
15:53 sue joined #mojo
16:03 kaare joined #mojo
16:18 stephen joined #mojo
16:58 bpmedley_ http://bmedley.org/minion_ui_graphs.png <-- How does this look?
17:00 sri neat, i'd call it dashboard though, and make it the first menu item
17:01 Martin90 joined #mojo
17:02 sri 0.5 and 1.5 are funny though
17:02 sri half a worker?
17:03 bpmedley_ I agree.  I'm sure epoch allows for customization for the axes.
17:03 Martin90 to prototype with 'full app' scheme instead of single file I should morbo script/my_app right ?
17:03 bpmedley_ I simply haven't looked.
17:03 bpmedley_ Martin90: Did you use mojo generate?
17:03 Martin90 yes I did generate full app
17:03 Martin90 "mojo generate app MyApp"
17:04 bpmedley_ Yes, I think that morbo command looks correct.
17:05 bpmedley_ Martin90: Are things working for you?
17:05 Martin90 yes sure, I ask since that script file doesn;t has .pl extension
17:06 Martin90 has no extension at all...
17:07 Martin90 I like that full app file organization though
17:12 theo joined #mojo
17:18 ajr_ joined #mojo
17:31 berov1 joined #mojo
17:48 Lee joined #mojo
18:26 panshin joined #mojo
18:29 Martin90 I am amazed how many features Mojo has o.0
18:33 Lee joined #mojo
18:56 jberger preaction: I'm getting started by basically copying this example: http://www.sitepoint.com/creating-crud-app-minutes-angulars-resource/
19:01 Martin90 heh, nice ;P
19:04 Martin90 I start testing existing examples in mojo doc
19:06 jberger Martin90: you might have missed, I'm working on a ui for minion
19:07 Martin90 yes I just realized that you are talking about entirely different case ;)
19:11 Martin90 anyway, I keep my fingers cross for it :)
19:46 kensanata joined #mojo
20:01 kensanata I'm rewriting a CGI script as a Mojolicious::Lite app. I'd like to support the now obsolete queries using semicolons because URLs using them exist elsewhere. I have a app->hook(before_dispatch => sub { ... }) looking at $self->req->query_params -- but what do I do with the result? Can't assign to query_params... http://perlpunks.de/paste/show/561033b7.3465.105
20:03 panshin joined #mojo
20:04 panshin_ joined #mojo
20:15 jberger kensanata: its not trivial
20:15 jberger you'd probably end up implementing your own query parser
20:15 jberger or finding an old one that does it
20:15 kensanata jberger: Yeah... I'm halfway there. :)
20:16 pink_mist you can do req->url->query(Mojo::Parameters->new(...))
20:16 kensanata jberger: Current status: old links use /link, new links use /edit, so before redirecting, I try and build a new query... http://perlpunks.de/paste/show/5610377e.5771.1f3
20:16 pink_mist or just replace/add individual keys via that
20:17 kensanata pink_mist: Thanks, will keep that in mind.
20:22 sue joined #mojo
20:25 sri someone should make a plugin for that
20:26 jberger sri: is there a way to get the raw request parameters?
20:26 jberger this is close: https://github.com/kraih/mojo/blob/master/lib/Mojo/Parameters.pm#L156-L159
20:27 PryMar56 joined #mojo
20:27 sri that is not just close, that is it
20:27 jberger except is has been run through url_escape
20:27 jberger s/is/it/
20:28 sri then the answer is no
20:32 jberger I thought not
20:37 kensanata Strangely enough, the following works: http://perlpunks.de/paste/show/56103c7f.576f.4f -- apparently $self->req->query_params hasn't been processed, yet.
20:38 kensanata But for another route, I'm getting a semi-URL escaped monstrosity...
20:38 kensanata #          got: '/halberdsnhelmets/char/en?name=Aurora%3Bstr%3D9'
20:38 kensanata #     expected: '/halberdsnhelmets/char/en?name=Aurora&str=9'
20:39 sri please don't paste into the channel
20:40 kensanata Come on, two lines?
20:41 kensanata Anyway, I think I found the key. Not calling @{$self->req->params} before looking at $self->req->query_params
20:41 pink_mist pasting is pasting
20:41 kensanata Pfft
20:41 pink_mist just apologise and say you won't do it again ... how is that so hard?
20:41 kensanata The problem is not the pasting, the problem is the big amount of info that nobody wants to read.
20:42 sri being rude is usually a bad idea when you're looking for help
20:43 kensanata Being rude is always a bad idea, that is true.
20:52 meshl joined #mojo
20:54 pink_mist jberger: btw, did you ever notice https://metacpan.org/pod/JE ?
20:54 sri jberger: you're not in #mojo-core anymore
20:55 sri jberger: i just mentioned that this CoC gets adopted by a lot of projects atm. http://contributor-covenant.org
21:41 mattastrophe joined #mojo
21:45 bpmedley_ http://bmedley.org/minion_ui_example.png <-- thoughts on this UI
21:46 pink_mist no legend to tell us what the different colours mean =(
21:47 bpmedley_ pink_mist: True dat.  I didn't see how to add a legend.  Hopefully one can be added.
22:12 bpmedley_ http://bmedley.org/minion_ui_legends.png <-- I added legends
22:15 pink_mist bpmedley++ much better =)
22:17 bc547 joined #mojo
22:19 sri_ joined #mojo
22:19 stuart_ joined #mojo
22:21 cfedde_ joined #mojo
22:24 bpmedley joined #mojo
22:32 bpmedley https://github.com/brianmed/minion_ui <-- Latest version with hopefully better screenshot
22:39 BinGOs joined #mojo
22:39 bc547 joined #mojo
22:39 mattastrophe joined #mojo
22:39 PryMar56 joined #mojo
22:39 berov1 joined #mojo
22:39 theo joined #mojo
22:39 Mattes joined #mojo
22:39 ribasushi joined #mojo
22:39 trone joined #mojo
22:39 absolut_todd joined #mojo
22:39 Lucas1 joined #mojo
22:39 noganex joined #mojo
22:39 KimmoNO_ joined #mojo
22:39 lluad joined #mojo
22:39 geheimnis` joined #mojo
22:39 mtj joined #mojo
22:39 jantore joined #mojo
22:39 mudler joined #mojo
22:39 hernan604 joined #mojo
22:39 Mikey joined #mojo
22:39 tyldum joined #mojo
22:39 stephan48 joined #mojo
22:39 vytas joined #mojo
22:39 cstamas joined #mojo
22:39 KindOne joined #mojo
22:39 dustinm joined #mojo
22:39 gabiruh joined #mojo
22:39 marcusr joined #mojo
22:39 Onigiri joined #mojo
22:39 mishanti1 joined #mojo
22:39 mgrimes joined #mojo
22:39 augensalat joined #mojo
22:39 renormalist joined #mojo
22:39 crab joined #mojo
22:39 bowtie joined #mojo
22:39 romel joined #mojo
22:39 janus joined #mojo
22:39 tianon joined #mojo
22:39 dysfun joined #mojo
22:39 Snelius joined #mojo
22:39 lestrrat joined #mojo
22:39 phillipadsmith joined #mojo
22:39 charsbar joined #mojo
22:39 Phil21 joined #mojo
22:39 mikegrb joined #mojo
22:39 ashleyde1 joined #mojo
22:39 bjakubski joined #mojo
22:39 upasana_ joined #mojo
22:39 omega joined #mojo
22:39 Zx3 joined #mojo
22:39 eduardow joined #mojo
22:39 lupi_ joined #mojo
22:39 al_ joined #mojo
22:39 esh joined #mojo
22:39 firnsy joined #mojo
22:39 chansen joined #mojo
22:39 worklapperl joined #mojo
22:39 skaji joined #mojo
22:39 caeles joined #mojo
22:39 tinita joined #mojo
22:39 bzero joined #mojo
22:39 allison joined #mojo
22:39 salparadise joined #mojo
22:39 abracadaniel joined #mojo
22:39 Quai joined #mojo
22:39 tempire joined #mojo
22:39 spicyjack joined #mojo
22:39 btyler joined #mojo
22:39 sivoais joined #mojo
22:39 stokachu joined #mojo
22:39 diegok joined #mojo
22:39 sawtooth joined #mojo
22:39 inokenty joined #mojo
22:41 garu joined #mojo
22:44 sri joined #mojo
22:44 cfedde_ joined #mojo
22:44 Dada joined #mojo
22:44 gaunt joined #mojo
22:44 ans joined #mojo
22:44 jberger joined #mojo
22:44 melo1 joined #mojo
22:44 SmokeMachine joined #mojo
22:44 kivilahtio_ joined #mojo
22:44 dabudabu joined #mojo
22:44 buu joined #mojo
22:44 batman joined #mojo
22:44 dotan joined #mojo
22:44 salva joined #mojo
22:44 kmx joined #mojo
22:44 Janos joined #mojo
22:44 Foxcool joined #mojo
22:44 Ralesk joined #mojo
22:44 bayashi joined #mojo
22:44 coolo joined #mojo
22:44 bobkare joined #mojo
22:44 mattp joined #mojo
22:44 ssm joined #mojo
22:44 lb joined #mojo
22:44 hahainternet joined #mojo
22:44 kwa joined #mojo
22:44 robinsmidsrod joined #mojo
22:46 garu_ joined #mojo
22:51 sri joined #mojo
22:53 nic joined #mojo
23:13 Dada joined #mojo

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