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

IRC log for #mojo, 2018-02-08

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

All times shown according to UTC.

Time Nick Message
00:11 Sebbe joined #mojo
00:22 Seth joined #mojo
01:14 Seth joined #mojo
01:15 aborazmeh joined #mojo
01:51 classtime joined #mojo
01:51 classtime СНRОПО IS TEACHING A CLASS @ iяс.sцреяиетs.ояg сни sцреявоwl
01:51 classtime aborazmeh Seth Sebbe marty kaare Repaster maschine nohuhu ghenry Peppard ChmEarl gryphon jabberwok zivester dantti_laptop gregf_ ashimema mtths dboehmer klapperl epiphero karjala da5id jnap Lee Zx3 orev Afristar dustinm eseyman jacoby reetp noganex mishanti1 bobkare zach mikegrb S preaction
01:51 classtime geheimnis` bouncy gordonfish mohawk CHYC dotan_convos dabudabu purl ilbot2 kubrat jnbek hahainternet hkclark_ pirateFinn bwf coolo vicash skaji sivoais cromedome Ralesk omega sjn Gedge mtj tianon cng xdg kgoess diegok suede tyldis elik ribasushi tinita abracadaniel pink_mist Kundun [0xAF] zen
01:52 classtime mgrimes stokachu Jonis mfontani haarg Diddi plicease Xyem CandyAnge vinnix_ ranguard eday_ a6502_ mrallen1 chansen go|dfish kivilahtio Grinnz odc phillipadsmith sri matt firnsy Phil21 kamyl_ jantore_ tempire jberger cpan_mojo salva stefan crab caeles_ saki batman irqq__ mattp stein BinGOs TBSliver
01:52 classtime left #mojo
01:52 gordonfish ffs
01:53 gordonfish I don't suppose there are any network ops around
02:46 mattp is there any way to stop these retarded spammers
02:55 mattp surely this must be a solved problem
02:55 pink_mist maybe if we all join the network they'd have no reason to advertise it here
02:55 pink_mist (kidding)
02:56 ilbot2 joined #mojo
02:56 Topic for #mojo is now 🍩 nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
02:58 Grinnz mattp: yes, by using a chat system with actual account registration
02:58 Grinnz thats actually the only permanent way
03:07 Grinnz we can simulate it by setting channels +r but then people will be sad because irc doesn't enforce account registration :P
03:08 Grinnz also nickserv kinda sucks
03:11 dikim joined #mojo
04:55 polettix joined #mojo
05:02 hesco1 I'm baffled by the routing I am seeing in my tests:  https://gist.github.com/hesco/5a6d53874224036a82a0258c922f20f7
05:04 hesco1 I'm thinking the test logged in the gist, ought to route to the #action_signed method, but it apparently is going to the #action route.
05:04 dboehmer_ joined #mojo
05:04 hesco1 Any idea why the routing table might go off and do its own thing this way?
05:06 jamesaxl joined #mojo
05:07 Grinnz um. its going to the copy action, because action is a reserved stash key
05:07 Grinnz its actually documented that you can use it to have a dynamically routed action, but thats kind of risky
05:08 hesco1 perfect.  glad I asked.  of course.  that makes sense.  will try again with that one.
05:08 hesco1 no need, plenty of unreserved names I can use with less risk.
05:08 Grinnz yeah. wasnt sure if you were trying to or not
05:08 hesco1 at this point in the schedule, utility is winning out over elegance.
05:10 hesco1 I postponed for another day relearning DBIx::Class join syntax.  instead I query one table at a time and get the job done.  later for making it pretty.
05:23 inokenty-w joined #mojo
05:32 hesco1 that is such a beautiful thing, Grinnz!.  calling my :action's :operation's instead, seems to have made all of the difference in the world.  I really appreciate the second set of eyes!  Thanks!
05:52 ghenry joined #mojo
05:57 nefarious joined #mojo
06:36 Vandal joined #mojo
06:39 polettix joined #mojo
06:43 dod joined #mojo
06:44 nefarious joined #mojo
06:49 dod joined #mojo
07:22 dod joined #mojo
07:31 McA joined #mojo
07:34 noganex joined #mojo
07:46 AndrewIsh joined #mojo
08:03 karjala_ joined #mojo
08:25 trone joined #mojo
08:42 berov joined #mojo
09:38 Edward joined #mojo
09:42 nefarious joined #mojo
09:49 nefarious joined #mojo
09:59 * sri is still not quite happy with the new minion admin look
10:00 sri the colors are too intense
10:00 sri if someone feels like fixing the colors back to the old bootstrap 3 theme that would be great
10:37 nefarious joined #mojo
10:39 nefarious joined #mojo
10:52 tchaves joined #mojo
10:59 nefarious joined #mojo
11:03 McA joined #mojo
11:20 nefarious joined #mojo
11:35 coolo sri: https://startbootstrap.com/template-categories/popular/ :)
11:42 sri coolo: so, you've seen the new minion admin i just deployed :p
11:42 coolo sri: it only shows colours at all if you shift-f5 - as you somehow messed the e-tag :)
11:43 sri true
11:44 sri on the plus side, it's more responsive and scales down really nicely
11:44 sri i'm actually suprised that there's no stack overflow answer yet with a css chunk for getting the old colors back
12:07 coolo sri: https://www.youtube.com/watch?v=GLVYku_ZJ1Q
12:08 sri my ears!
12:35 nefarious joined #mojo
12:39 jberger mattp not a warning or anything, but if you would, please don't use the word "retarded" as an insult
13:00 nefarious joined #mojo
13:06 tcohen joined #mojo
13:23 gizmomathboy joined #mojo
14:05 dotan_convos where's the lovely upgrade guide? I updated our Mojolicious and broke all sorts of calls to Mojo::Util::slurp
14:05 genio Mojo::File   path('/some/file')->slurp
14:05 dotan_convos Ironically, I upgraded to see if I could replace Path::Tiny::slurp (which flocks) with Mojo::File::slurp
14:06 dotan_convos thx
14:06 karjala_ https://github.com/kraih/mojo/wiki/Upgrading
14:07 dotan_convos double thanks!
14:07 karjala_ (by the way, I didn't know the URL - I googled for 'mojolicious upgrade guide')
14:08 karjala_ :D
14:15 nefarious joined #mojo
14:19 ChmEarl joined #mojo
14:20 sri jberger: btw. did you notice how little problems we had with the delay deprecation
14:20 epiphero Uh, well I'm still working though my code on that one. :/
14:20 sri i think the reason is that only people very active here have been using them
14:20 zivester joined #mojo
14:21 Pyritic joined #mojo
14:21 sri while i see more beginners actually use promises
14:21 sri it's a much more accessible concept
14:22 sri epiphero: notmally with a big deprecation like that we'd see quite a bit of yelling and swearing :p
14:23 bwf joined #mojo
14:24 epiphero Well it did catch me a bit off guard.  I'll start paying more attention to the release notes. :p
14:26 epiphero Promises do seem a bit more straightforward though.
14:45 dotan_convos karjala_ I went to the wiki but didn't see the link. That's probably the most useful page on the wiki.
14:46 dotan_convos sri: delay is deprecated?? I must have blinked.
14:47 dotan_convos or did you just mean the error/finish events
14:48 sri only parts of it
14:48 purl only parts of it are green.. the moldy parts..
14:48 tcohen joined #mojo
15:04 gregf_ joined #mojo
15:30 sh14 joined #mojo
15:31 gryphon joined #mojo
15:50 nefarious joined #mojo
15:54 jberger sri: tbh I'm not sure that we haven't yet as it will only present itself as false negatives
15:55 jberger but lets not rehash that, we know we disagree on it
15:57 CandyAngel delays4days!
15:58 CandyAngel Also, I have not ported any of my delay code to promises yet :P
16:37 mohawk CandyAngel, cpan code?
16:45 nefarious joined #mojo
16:47 CandyAngel No, just my own stuff. Everyone is (relatively) safe :D
16:58 jberger so a few months ago the vue debugger browser plugin added the ability to make nice variables for the selected components
16:58 karjala_ joined #mojo
16:58 jberger but just today I noticed that they've added the ability to modify values in the debug panel now too
16:58 jberger so nice
16:59 jberger https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd
16:59 jberger ^^ highly recommended if you are using Vue
17:12 dotan_convos I'm considering ripping out Path::Tiny from all our tests and replacing it with Mojo::File, because of its annoying flocking. Simple slurp() is nice, but not when every time you run a test suite you keep trying to lock a disk the size of a fridge that an entire cluster is busy writing to.
17:12 pink_mist I've never heard of Path::Tiny locking things when you slurp() before
17:13 mohawk dotan_convos, what about PR-ing a fix on P::T?
17:14 pink_mist https://metacpan.org/source/DAGOLDEN/Path-Tiny-0.104/lib/Path/Tiny.pm#L1773 <-- guess they do it on purpose
17:14 pink_mist doubt they'd take a PR
17:15 dotan_convos https://metacpan.org/source/DAGOLDEN/Path-Tiny-0.104/lib/Path/Tiny.pm#L1245
17:15 dotan_convos All over the place
17:16 mohawk why would that lock the whole disk?
17:17 dotan_convos There was an influential blog post about how you should never trust the OS to write to disk, and you should fsync and whatever, and dgolden took it to heart in designing Path::Tiny.
17:18 maschine Haven't disk writing issues been solved for ages?  This isn't Windows 98 here. :p
17:19 mohawk dotan_convos, for one file, not the whole disk?
17:20 mohawk also, line 1063 seems to say that unless aix, it's only lock_sh and on that one file?
17:23 dotan_convos mohawk: Maybe that's my impression from reading about the downsides of fsync. My problem is that my sysadmin/devops dude is trying to do something with our Big Shared Disk that is eating up all available locks
17:23 dotan_convos So even if it was locking a single file, it still fails
17:24 Grinnz dotan_convos: that seems problematic, since lots of things in mojo *do* flock files for every write
17:24 Grinnz the logger for example
17:24 pink_mist but not for reads right?
17:24 Grinnz not that i know of
17:25 mohawk anything that takes all a given resource on a given machine is probably where to start
17:28 dotan_convos Grinnz: Oddly, I just did the replacement (Path::Tiny => Mojo::File) in a CLI script that was already using the Logger (and Mojo::UserAgent, so what the hey). Fortunately the logger always writes to STDERR, because I run it from Jenkins
17:34 Seth joined #mojo
17:42 Grinnz http://blog.unicode.org/2018/02/unicode-emoji-110-characters-now-final.html
17:42 Grinnz new sri emoji: U+1F9B9 SUPERVILLAIN
17:43 pink_mist lol
17:45 anony joined #mojo
17:57 dod joined #mojo
18:01 jberger hahahaha
18:01 purl LOLCON 4 reached.
18:01 nefarious joined #mojo
18:08 * coolo finally got his own emoji!
18:21 zippity joined #mojo
18:25 zippity hi all, I have a quick question (possibly with a long answer:) : is it possible to render an inline template into a string ?
18:25 pink_mist what do you mean by inline template? there's $c->render_to_string
18:25 pink_mist https://metacpan.org/pod/Mojolicious::Controller#render_to_string
18:26 Grinnz or if you don't want to go through the renderer, just make your own Mojo::Template object and call ->render
18:26 zippity I'd lke to render an inline template like $c->render(inline =>$mytemplate) into a string like my $html = $c->render_to_string()
18:26 Grinnz https://metacpan.org/pod/Mojo::Template#render
18:27 Grinnz yes, pink_mist just linked that, it exists :P
18:27 pink_mist zippity: render_to_string() takes the same arguments as render() does
18:28 zippity ok, thanks,  I'm gonna try & check the Mojo::Template pod
18:29 nohuhu joined #mojo
18:30 Grinnz it depends on whether you want to use stash vars or helpers from your app; if so just use the renderer
18:30 Grinnz if not then Mojo::Template by itself is fine (but make sure to set auto_escape and vars if you still want that functionality)
18:33 nohuhu left #mojo
18:39 zippity Grinnz: just made a test & I think I need to go the Mojo::Template way
18:56 McA joined #mojo
18:57 coolo sri: bitcoin rose for the last 48h - we're too late
18:57 coolo 5K was the low - *that* was the magic limit
19:00 jabberwok =sigh=  what's the point of "emoji" ... purely indecipherable glyphs.  I'm going to start using ancient world pictographs instead.
19:04 Grinnz coolo: never say never ;)
19:13 berov joined #mojo
19:46 epiphero jabberwok: 𓀁
20:05 nefarious joined #mojo
20:11 nefarious joined #mojo
20:32 sri Grinnz: finally! \o/
20:33 trone joined #mojo
20:33 sri coolo: oh shit
20:34 polettix joined #mojo
20:51 nicomen anyone seen this before? EV: error in callback (ignoring): Bizarre copy of HASH in list assignment at /usr/lib/x86_64-linux-gnu/perl5/5.24/EV.pm line 1215.
20:53 nicomen /usr/local/share/perl/5.24.1/Mojo/Reactor/EV.pm line 25 in 7.63
20:54 nefarious joined #mojo
20:55 jberger you might try taking any non-simple lists used as either inputs or return values from function calls in a callback and make them arrays
20:56 nicomen I don't think I am doing something like that myself
20:57 nicomen seems to happen in a get_ok call
21:01 Grinnz nicomen: hard to tell without a full stack trace
21:02 Grinnz all that says so far is "it happened while the event loop was running" :P
21:03 Grinnz any error that looks like "bizarre copy" is usually the fault of some XS bullshit though
21:03 genio I have, in my day, created many a bizarre copy
21:04 Grinnz nicomen: if it's reproducible try running with -d:Confess
21:06 ghenry joined #mojo
21:09 pink_mist well, there's also things like https://rt.perl.org/Public/Bug/Display.html?id=131046
21:09 pink_mist and https://rt.perl.org/Public/Bug/Display.html?id=52610
21:09 Grinnz that's because @DB::args is some XS bullshit
21:11 pink_mist Grinnz: no, see the corresponcence by Bram at Sat, 14 Feb 2009 01:28:52 -0800 in that last link ... no @DB::args involved at all
21:12 pink_mist oh, I can link to the message: https://rt.perl.org/Public/Bug/Display.html?id=52610#txn-532400
21:14 Grinnz sure, but it's related to the same stack issues
21:14 pink_mist but no XS
21:14 pink_mist is my point
21:14 Grinnz XS is perl source code, I was including that in my definition
21:15 pink_mist what
21:15 Grinnz "some C bullshit" is that better?
21:16 Grinnz really the language built on C that they invented to write perl in, but
21:16 pink_mist it's pure perl
21:16 Grinnz the argument stack is definitely not pure perl
21:17 pink_mist I'm talking about the code needed to get that error
21:18 Grinnz this is rather pointless and I've no idea what you're trying to argue so I'm gonna drop it
21:19 pink_mist I'm saying there are ways to get the bizarre copy error that do not involve XS or @DB::args
21:24 gordonfish joined #mojo
21:26 pink_mist sri: Net::DNS::Native 0.16 was released
21:49 ghenry joined #mojo
21:52 nefarious joined #mojo
22:15 dikim joined #mojo

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