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

IRC log for #mojo, 2017-11-15

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

All times shown according to UTC.

Time Nick Message
00:19 gryphon joined #mojo
00:28 dugword joined #mojo
00:28 disputin joined #mojo
01:07 aborazmeh joined #mojo
01:35 dugword joined #mojo
03:13 noganex joined #mojo
04:09 mom joined #mojo
05:04 dboehmer_ joined #mojo
05:25 disputin joined #mojo
06:22 inokenty-w joined #mojo
06:45 dod joined #mojo
06:52 dod joined #mojo
07:15 geospeck joined #mojo
07:21 Vandal joined #mojo
07:54 AndrewIsh joined #mojo
07:56 PsimanX1 joined #mojo
08:03 Dandre joined #mojo
08:06 ashimema joined #mojo
08:08 trone joined #mojo
08:24 dod joined #mojo
08:59 dotan_convos This morning I found that this https://twitter.com/jaffathecake/status/833668073475416064 works fine with Mojolicious Promises
09:33 marcus dotan: Neat!
09:35 geospeck joined #mojo
09:38 pau4o joined #mojo
09:58 anon joined #mojo
10:36 sri dotan_convos: it shouldn't, Mojo::Promise->all(...) is supposed to reject on the first rejected promise
10:39 sri ah, now i get it
10:40 sri hehe, Promise.map means you create a new promise attached to all the promises you want to watch and add a ->catch that makes sure they all can only resolve
10:40 sri yea, that works
10:42 sri btw. an idea for a minion logo https://i.imgur.com/PmwlMnt.png
10:49 hrupp joined #mojo
10:52 hrupp marcus: Are you interested in contributions to your AnsibleModule ?
10:52 CandyAngel I think that is going to be instant DMCA/lawsuit/copyright, unfortunately
10:52 CandyAngel Because aside from the bright yellow on white, it's nice!
10:54 CandyAngel Why is there so much whitespace around "Dashboard"?
10:57 sri CandyAngel: it is pretty abstract though
11:17 sri if i don't do the blue/yellow it's safer, but also more boring https://i.imgur.com/mV4pc5b.png
11:18 pink_mist I really think the whole dot over the i being an eye like that may still cause issues; associating the logo with the movie franchise seems like a splendid idea if you want to get sued :/
11:19 sri well, then back to no logo i guess
11:20 pink_mist I personally like it a lot of course, but ... I simply don't think it's safe
11:31 kes joined #mojo
11:36 rocket joined #mojo
11:43 dotan_convos I prefer it without the colors, and I think it's subtle enough and abstract enough to be safe, but also a cute touch.
11:48 sri we don't really have a choice
11:49 sri if people are scared the logo will make some folks not use minion because of that
11:49 sri so, it's no logo or a totally neutral logo
11:50 sri totally neutral https://i.imgur.com/3xsb3E3.png
11:51 batman I think I would drop “Dashboard” title completely.
11:51 batman It’s kind of implicit imo
11:54 sri the whole dashboard https://i.imgur.com/DbeXPc3.png
11:56 ashimema looking goog sri
11:56 ashimema good.. curse my typing today
12:44 sri i do welcome ideas for improving the minion logo though
12:45 sri hard to find something that says "job queue"
12:46 vicash it looks good already.. maybe change the i's with a human stick figure and it will look like two humans in a queue
12:46 sri was thinking maybe a bunch of connected dots representing worker nodes, but that's also kinda boring
12:48 sri hmm, humans in a queue actually reminds me of the redis logo contest, there were lots of related ideas http://download.redis.io/logocontest/
12:49 vicash i am not a logo designer or even come close to that kind of creativity, but maybe the i's can be a stick figure robot head, since minion workers are bots
12:50 sri not that much inspiration on dribbble enother, i guess an arrow would be nice symbolism too https://dribbble.com/shots/1685928-Queue
12:51 sri the key to creative design is stealing and remixing ideas, that's what everyone does
12:52 vicash the dot on the i can be the letter Q
12:57 sjn joined #mojo
13:18 maschine joined #mojo
13:23 gryphon joined #mojo
13:29 sri oh, intersting to see something like the precision 5720 marketed for linux https://insights.ubuntu.com/2017/11/14/new-dell-precision-machines-available-with-ubuntu-pre-installed/
13:31 sri with touchscreen and everything
13:38 ghenry joined #mojo
13:42 aborazmeh joined #mojo
13:46 gryphon_ joined #mojo
13:50 gryphon joined #mojo
13:51 sri batman: you like it better this way? https://i.imgur.com/JToGW5u.png
13:51 sri doesn't the dashboard look too empy?
14:00 karjala_ joined #mojo
14:01 ghenry joined #mojo
14:16 ChmEarl joined #mojo
14:17 marcus hrupp: I've not been using it enough, I'm def. interested in contributions / comaintainers tho :)
14:18 gizmomathboy joined #mojo
14:23 Pyritic joined #mojo
14:27 marty joined #mojo
14:30 mgrimes joined #mojo
14:33 McA joined #mojo
14:39 McA Hi all, just making my first experiments with Mojolicious. Where can I store a hook to the general URL processing before dispatching to the routes is done? I'm asking because I found out that a http-URL with nonascii-characters in path are transported to the app. IMHO this is not a valid http-request and I would like to answer with a "Bad request" in that case. Hints welcome.
14:41 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Routing#Hooks
14:41 McA @sri: Thank you!
14:55 Pyritic joined #mojo
15:03 hrupp marcus: great! I use it in production already which is working great. I've found some strange behaviors with ansible 2.4 and some _ansible private attrs. work around them with check_invalid_arguments => false
15:03 hrupp i can investigate
15:15 McA Where in the Mojolicious codebase is the url-decoding done before comparing to route definitions which can be non-ascii-strings?
15:23 McA ok, I'm pretty sure I found it. Mojo::Path
15:45 batman sri: I do. But maybe hide the heading on mobile at least
15:59 McA left #mojo
16:30 chandwki joined #mojo
16:31 geospeck joined #mojo
16:59 disputin joined #mojo
17:24 sri argh, today i've spent way too much time learning how to use the bootstrap grid correctly for responsive layouts
17:24 sri will have to cut some features to finish tomorrow
17:31 sri it took me forever to figure out that you can't do class="row col-md-12"
17:32 jberger yeah, lots of nested divs
17:32 jberger I always mess up the outer one IIRC
17:32 jberger container then a row, but maybe something else if it is supposed to be reactive?
17:32 jberger I don't know, I do it once and then never look at it again until the next project, which I promptly screw up again
17:33 preaction it's just .container > .row > .col-*
17:33 preaction to make sure responsiveness works, don't forget the <meta viewport="..."/> tag
17:34 sri annoying thing about class="row col-md-12" was that it turned out to almost work, it was just a tiny but narrower than <div class="row"><div class="col-md-12">
17:34 preaction yeah. and they also "recommend" using col-* classes for other things that aren't part of the grid, which makes it even more confusing
17:35 jberger preaction: yeah, it was the viewport that I forget :-P
17:41 dod joined #mojo
18:01 sri i'll leave out the creation of new jobs from the admin ui i guess
18:01 jamesaxl joined #mojo
18:01 geospeck joined #mojo
18:02 sri so far i have all the monitoring stuff and introspection for jobs/workers and retry/remove/stop for jobs
18:20 jamesaxl joined #mojo
18:24 sri this looks fun https://teletype.atom.io
18:25 sri bummer github doesn't invest more in the core editor though, can't imagine switching back from vscode
18:29 trone joined #mojo
18:32 sri navigation is pretty comfortable though https://i.imgur.com/1hgcN63.png
18:32 sri happy with that, it's all based on the list view
18:33 disputin joined #mojo
18:34 preaction are you using vue for that? or just plain html templates?
18:34 sri "plain"
18:35 preaction well, right
18:35 sri there is only ajax for updating the stats
18:35 preaction i really like the look, i guess, is what i'm saying ;)
18:36 sri jquery, bootstrap, epoch.js/d3.js, fontawesome, moment.js
18:36 sri but as little as possible
18:38 Grinnz vue doesn't affect the look, just data updating
18:38 preaction right, i asked about using vue because i was then going to ask if the html was posted somewhere, i'd like to steal it for a project i'm working on for that administrative cms that people keep asking for
18:38 Grinnz the look is all gootstrap
18:39 Seth joined #mojo
18:39 Grinnz ... bootstrap
18:39 sri i think the code should make for a good example app, i've tried to make everything as clean as possible
18:39 sri yea, mostly vanilla bootstrap with some minor tweaks
18:40 sri like the badges are not actually bootstrap, can't do that with vanilla sadly
18:40 preaction oh, the ones in the top navbar, yeah...
18:41 Grinnz i've been converted to vue so i'd try to use that for data binding, which is mostly independent of the other libraries you listed
18:41 Grinnz but that only matters for the ajax you mentioned
18:41 sri i have trust issues with js libraries :)
18:42 sri if they've not been around for 10 years i don't use them :p
18:42 preaction nothing good in js stays around for 10 years ;)
18:43 Grinnz this was one of the best things i did to the js/html side of cpanmeta.grinnz.com https://github.com/Grinnz/cpan-meta-browser/commit/57d33cb868559e7b75e782dd94ff776091a85daa
18:48 Grinnz actually better comparison https://github.com/Grinnz/cpan-meta-browser/compare/a17b2cb0353108a777180210c0a3d150d6f7d27d...45f3346dc42d8b82b6be439d12a9c002b87589b3 since i refactored it a couple times after
19:04 jberger why can't you do the badges with vanilla bootstrap?
19:05 jberger https://getbootstrap.com/docs/3.3/components/#badges
19:05 Grinnz doesnt look like they can be colored
19:07 sri correct
19:08 sri so i used labels and made them round :)
19:08 jberger aaaah
19:08 jberger that's odd, everything else can be colored
19:08 sri think bootstrap 4 will actually support round labels
19:11 Grinnz you could probably just add colored css classes based on the badge one from bootstrap somehow
19:11 Grinnz i dunno, css magic
19:12 genio add your own class and color it?
19:13 sri that's much more work than making labels round
19:23 jamesaxl joined #mojo
19:30 preaction there's the bg-* helper classes, but i haven't tried them on badges
19:31 nicomen I love (hate) when class-names are 80% identical to an actual css rule
19:32 nicomen .red { color: red } /* riiiight */
19:32 nicomen of course that's fine if red means "important" ;)
19:32 preaction yeah, that's a terrible way of doing it
19:33 Grinnz might as well use an inline style tag :P
19:44 karjala_ joined #mojo
19:45 preaction i mean, that's the whole thing Atomic CSS is built on :p
19:45 perlpilot_ joined #mojo
19:58 nicomen preaction: is that for real?
19:58 preaction what?
19:58 nicomen atomic css
19:59 preaction yes
20:00 nicomen reminded me of http://vanilla-js.com/ just done worse
20:07 sri heh, looks like the atom folks were just a little bit faster https://code.visualstudio.com/blogs/2017/11/15/live-share
20:08 Grinnz i'm most excited about https://code.visualstudio.com/docs/editor/multi-root-workspaces
20:09 sri i was excited at first, but using the terminal in a multi root workspace is still kinda clunky
20:10 Grinnz i don't use vscode's terminal, i just want to stop needing to open projects in separate windows
20:10 sri vscode terminal is just so damn convenient most of the time
20:10 Grinnz havent tried it tbh
20:11 sri it just works
20:12 Grinnz the only place i use vscode for project management is at work, and there my code is a sshfs to a remote system, so a local terminal doesn't help anyway
20:12 nicomen I have a terminal tab in geany, but multi terminal woah
20:13 sri i edit over nfs a lot these days
20:13 Grinnz mainly, git is on the remote system, and not local
20:15 Grinnz "With multiple root folders in one workspace, it is possible to have a .vscode folder in each root folder defining the settings that should apply for that folder." this is why i want multi root workspaces specifically :)
20:16 sri oh, both the atom and vscode implementations of collaborative editing require servers managed by github/microsoft :/
20:16 Grinnz not surprising
20:16 sri smells like they are looking to sell us subscriptions in the future
20:17 jamesaxl joined #mojo
20:18 Grinnz now i just need the vscode copr to update to version 1.18 :P
20:34 CandyAngel :|
20:34 CandyAngel Humble is now a great example of why some people shouldn't be allowed to make websites
20:34 CandyAngel Let's make each item take up *the entire screen*
20:35 CandyAngel And it also doesn't work at all if you disable javascript
20:36 sri you're not kidding, that is painful :S
20:37 pink_mist and they insisted nothing would change when they were bought
20:39 CandyAngel There is a certain kind of relief I feel when sri agrees with me :P
21:55 sri :p
22:04 sri oh shit
22:04 sri Grinnz: did you know about inline git diff in the latest vscode? :o
22:04 Grinnz no?
22:05 Grinnz hmm, that probably also won't work since i dont have local git
22:05 sri just click on the colored git indicator on the gutter
22:06 sri shows you a diff inline
22:07 Grinnz yea it uses git commands... maybe ill install git locally once i get this version
22:07 Grinnz pretty neat
22:09 sri <3 vscode
22:09 sri the vim extension is kick ass too
22:12 gryphon joined #mojo
22:14 vicash When using Mojo::Pg::Database's insert() function with a column that has a type JSONB, do I need to convert the perl object to JSON before using it in insert() ? for example, insert($table, { myjson => to_json($obj) }) ?
22:17 Grinnz you would use the json generator as mentioned in https://metacpan.org/pod/Mojo::Pg::Database#query
22:17 Grinnz oh yeah, that doesnt work in the SQL::Abstract methods
22:17 vicash ok that's the clarification I was looking for Grinnz. thanks.
22:18 Grinnz or does it? i dunno
22:19 pink_mist very clear answer :P
22:19 * pink_mist doesn't know either
22:20 vicash looking at the code, the SQL::Abstract methods are monkey_patched in, so it doesnt. I can do it in my code and continue using the SQL::Abstract methods for neatness.
22:29 disputin joined #mojo
22:51 karjala_ joined #mojo
23:05 CandyAngel You know a repair is successful when you end up changing at least three things to get it back together! \o/
23:06 CandyAngel Buy a new lamp for 6 GBP, or rearrange all its internals to make the battery replaceable? :)
23:21 nicomen sounds like my day job ;)
23:44 orev joined #mojo
23:51 preaction anybody want to take a quick look at a thing? it's a tiny administrative cms for mojolicious: https://github.com/preaction/Yancy you can demo it with `MOJO_HOME=eg perl bin/yancy daemon`
23:52 preaction i'm trying to see how well i can generate a CMS from an OpenAPI spec
23:57 Grinnz yay more CMSes
23:57 Grinnz (that wasn't sarcastic)
23:58 preaction i want to make it into a plugin, like how OpenAPI is, so it can be plugged in to any kind of mojolicious app
23:58 Grinnz that would be a really neat thing to show people
23:59 preaction i mean, i'm specifically making this so i can manage CPAN Testers data without having to make a whole brand new cpan testers app (which is going to be a longer project). so, hopefully there'll be plenty of usefulness by the time i'm ready

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