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

IRC log for #mojo, 2016-09-05

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

All times shown according to UTC.

Time Nick Message
00:01 disputin joined #mojo
00:01 itaipu joined #mojo
00:13 itaipu joined #mojo
00:29 CW joined #mojo
02:34 noganex joined #mojo
04:52 anton joined #mojo
05:21 Atog joined #mojo
05:57 inokenty-w joined #mojo
06:00 polettix joined #mojo
06:04 itaipu joined #mojo
06:07 Atog joined #mojo
06:08 dod joined #mojo
06:13 dod joined #mojo
06:27 iamb joined #mojo
07:00 che-quest joined #mojo
07:01 mbudde joined #mojo
07:11 AndrewIsh joined #mojo
07:11 cuechan joined #mojo
07:24 polettix joined #mojo
07:30 mpapec should catch method follow the same convention and put exception on second place?
07:30 mpapec Mojo::IOLoop->delay(..)->catch(sub{ $c->$cb(undef, $@) })
07:36 Vandal joined #mojo
07:56 osfabibisi joined #mojo
08:11 esh joined #mojo
08:34 polettix joined #mojo
09:23 irqq joined #mojo
09:42 trone joined #mojo
10:22 meshl joined #mojo
10:23 sri no more feature requests for Mojo::Pg?
10:40 ashimema joined #mojo
10:46 QQ joined #mojo
10:50 sri anyone understand this? https://github.com/kraih/mojo-pg/issues/31
10:50 sri if not i'll close it as incomprehensible
10:54 pink_mist I understand it
10:54 Jonis I guess he wants the PG errors like in DBD::Pg? http://search.cpan.org/dist/DBD-Pg/Pg.pm#err
10:54 pink_mist he wants the error message available in ->err and ->errstr instead of $@
10:54 Jonis and nothing is returned?
10:55 pink_mist but it's already in $@, so meh
10:55 sri pink_mist: that's nto at all obvious to me
10:55 sri pink_mist: so, is that a bug report, or a feature request?
10:56 sri pink_mist: what feature is he requesting exactly?
10:56 pink_mist I think he's a bit confused about if it's a bug or feature request as well. and I think the feature he wants is for the rollback not to clobber ->err/->errstr
10:57 pink_mist not sure if that's actually worth anything though
11:02 haarg at least for ->err and ->state, it seems like useful information.  an error code you could base useful behavior on.
11:07 sri well, i've closed it for now, with a request to be more specific
11:17 tchaves joined #mojo
11:18 Akron joined #mojo
11:31 bm_ joined #mojo
11:35 tchaves joined #mojo
11:36 bm_ ,01
12:04 itaipu joined #mojo
12:07 anton joined #mojo
12:35 Akron joined #mojo
12:50 itaipu joined #mojo
13:05 itaipu joined #mojo
13:11 kes joined #mojo
13:20 polettix joined #mojo
13:36 alilles joined #mojo
13:37 alilles joined #mojo
13:43 zivester joined #mojo
13:50 jberger mpapec: the exception in the catch handler is $_[1]
13:50 jberger I wouldn't use $@ there
14:13 itaipu joined #mojo
14:14 dod joined #mojo
14:15 vytas joined #mojo
14:33 cpan_mojo Mojo-Pg-2.30 by SRI https://metacpan.org/release/SRI/Mojo-Pg-2.30
14:41 Akron joined #mojo
14:53 dod joined #mojo
15:07 jb360 joined #mojo
15:10 mpapec jberger: tnx, so that should be catch(sub{ $c->$cb(undef, $_[1]) })?
15:11 mpapec for the consistency sake it should not be catch(sub{ $c->$cb($_[1]) })?
15:11 mpapec is $_[0] controller instance ($c?)
15:13 mpapec I would write few ioloop examples on github if I were more knowledgeable about the subject
15:17 Vitrifur joined #mojo
15:20 jberger $_[0] is the delay instance
15:20 jberger And actually you were right on the second one
15:20 jberger catch(sub{ $c->$cb($_[1]) })
15:21 jberger Because the error slot is the first (non invocant) one
15:23 cuechan joined #mojo
15:36 [0xAF] joined #mojo
16:00 dod joined #mojo
16:02 tholen joined #mojo
16:19 augensalat joined #mojo
16:29 PryMar56 joined #mojo
17:10 zivester joined #mojo
17:12 mpapec jberger: oh, right
17:13 mpapec btw, I'm trying to reduce boilerplate,
17:13 mpapec is there possible memory leak or other issue with: https://gist.github.com/mpapec/6a435514e8b8f0264357c1f91b84f26f
17:41 dantti_laptop joined #mojo
18:24 sri quick update to the overwatch ranking system rant from yesterday... apparently it's even more stupid than i though
18:25 sri the system puts the most weight on win/loss streaks, you gain and lose more points in a streak :O
18:25 sri this is soooo heavily biased against solo people
18:27 sri guess they just don't care, since you've already paid for the game anyway
18:30 dod joined #mojo
18:41 sri at least i'm not the only one noticing... number of rants seems to have exploded on the forums
18:42 * sri does not recommend overwatch anymore until that shit is fixed
18:43 Grinnz it's been that way since season 1, it's on purpose
18:45 Grinnz as far as i can tell there's two "benefits" of it, it moves people who have been placed way incorrectly toward the correct place more quickly, and if you're on a losing streak it means you'll be placed against much worse players which increases the likelihood of a win (yes i know that's not really how it works since teammates are also worse :P)
18:46 Grinnz and rants on the forums... not really a new thing, i avoid the official forums like cancer
18:46 sri it's a bullshit system
18:47 sri there's actually good rants too https://www.reddit.com/r/Competitiveoverwatch/comments/518ath/uncertainty_makes_for_a_lousy_rank_system_or_why/
18:47 Grinnz yes that post has some good suggestions
18:49 thowe joined #mojo
18:50 sri i can't believe i'm saying that, but hearthstone with all its randomness is a much much better competitive game than overwatch :o
18:50 Grinnz hearthstone is 1v1 so that helps a lot
18:51 Grinnz imagine a 6v6 hearthstone lol
18:51 sri just have separate ratings
18:51 sri WoW had that already
18:51 sri 2/3/5 teams
19:01 hrupp joined #mojo
19:05 hrupp joined #mojo
19:07 polettix joined #mojo
19:10 hrupp joined #mojo
19:11 [0xAF]_ joined #mojo
19:12 [0xAF]_ Hi guys. I were reading the irclog and saw Mojolicious::Plugin::OpenAPI. How does it defer from Mojolicious::Plugin::Swagger2 and why the different name?
19:12 nicomen @batman ^
19:13 batman thanks nicomen :)
19:13 nicomen (I'm curious too ;-P)
19:13 [0xAF]_ yeah, i had to ping you ;)
19:13 batman [0xAF]_: M::p::Swagger2 is incredible complex. hard to maintain. and has a clunky api
19:13 [0xAF] left #mojo
19:14 batman i think i've fixed that in M::P::OpenAPI. at least it's a lot better.
19:14 [0xAF] batman: so it's a simplified codebase and still the same api?
19:15 batman so with "think", i mean "the api is a lot simpler"
19:15 batman pretty much. you need to set x-mojo-to, instead of having the controller/method guessed from operationId
19:15 [0xAF] yeah, i saw that in my brief lookup
19:15 batman sorry. no. it's not the same api.
19:16 batman you need to use mojo methods, instead of using $args and $cb. have a look at https://metacpan.org/pod/distribution/Mojolicious-Plugin-OpenAPI/lib/Mojolicious/Plugin/OpenAPI/Guides/Tutorial.pod
19:17 [0xAF] ok, that sounds better
19:18 [0xAF] does it generate documentation like swagger2?
19:18 batman not quite the same way. you can see an example of the documentation here: http://demo.convos.by/api.html
19:18 [0xAF] sorry if i'm asking obvious question, but i did not made my research before comming here excited about it ;)
19:18 batman so it only generates html documentation. not POD
19:19 batman yeah... all your questions are answered in the tutorial ;)
19:19 [0xAF] html is quite enough for me at least... i can give it to the consumers ;)
19:20 batman the html rendering will be improved. join the #swagger channel for more information
19:20 [0xAF] ok, i'll dig my way into the tutorial
19:20 hrupp joined #mojo
19:20 [0xAF] nice, i will. thanks :)
19:20 [0xAF] btw is OpenAPI the future of Swagger or it's a spinoff?
19:21 batman i wrote both. and i've stopped maintaining swagger2
19:22 batman the only new stuff that will happen with swagger2 is if there's a critical bug or if someone sends me a PR
19:22 [0xAF] ok, do you have plans to change the api or you will remain compatible with swagger?
19:23 batman let's move to #swagger (i see that you've joined)
19:23 [0xAF] what i mean is: will the code written for other languages be usable in future?
19:23 [0xAF] ok, sorry.
19:23 thowe could someone point me to an example of doing http PUT with an XML payload?
19:24 batman thowe $ua->put($url, data => "<!xml>");
19:24 thowe data...
19:25 batman thowe: sorry. that was wrong :(
19:25 batman $ua->put($url, "...xml...");
19:26 nicomen http://mojolicious.org/perldoc/Mojo/UserAgent#put ...
19:26 thowe dont need to specify the content type?
19:26 hrupp joined #mojo
19:27 thowe so, like the second example, just substitue my XML for the "Hi!" ?
19:27 batman thowe depends. but you can do that with $ua->put($url, {"Content-Type": "..."}, "<xml>");
19:28 mpapec {"Content-Type"=> "..."} :)
19:29 hrupp_ joined #mojo
19:29 mpapec too much time spending with js
19:30 hrupp__ joined #mojo
19:33 hrupp_ joined #mojo
19:34 thowe well, apparently I have to register for their test environment...
19:43 irqq joined #mojo
20:00 dave sri: now you know why I'm just a casual overwatch player for now ;)
20:02 dave my advice is to enjoy the game in non-competitive mode until they get a clue
20:12 jberger mpapec: boilerplate is still pretty necessary with delays
20:13 jberger Your helper is slightly interesting except it leaves out calling the $cb in success
20:14 jberger In which case all you've really done is shorten the catch call
20:15 jberger I think you'll find that doing the success call is where your troubles lie going down that path
20:15 jberger Have you looked at futures? Perhaps they are better suited to the way you are thinking?
20:16 jberger Delays are best if you already are very comfortable with the standard callback interface (aka continuation passing)
20:20 polettix joined #mojo
20:46 sri heh, so i've discovered i can tank my overwatch rating with one of my bad heroes, drop to 1500 on a streak, and then carry games with one of my good heroes to quickly earn that golden weapon currency
20:48 sri oh, and even if i wanted i couldn't play with Grinnz anymore, since our ratings are too far apart
20:48 sri even though overbuff says our hero stats are only 6% apart
20:51 sri dave: you don't get golden weapons then though :(
20:51 dave bah...looks
20:51 sri having golden weapons with reaper would be kind of hilarious, since it would be even more wasteful than now with him throwing away his gund instead of reloading ;p
20:52 sri s/gund/guns/
20:52 dave if I ever rank up, it will be with a RL friend (who's better than I am actually)
20:52 dave I will likely never solo rank
20:53 sri two might not even be enough anymore to rank
20:53 sri the streamers seem to have switched to bigger groups of 4 or 5
20:53 sri at least for the initial climb
20:53 dave yes, you need to really field a team ... just like league of legends
20:53 dave IMO they should rank -teams- not -people-
20:53 dave Overwatch is a -team- game
20:54 dave when I get annoyed after a few hours of JS coding, I don't go into overwatch because it will annoy me that people don't play as a team but as a bunch of rambos
20:55 dave and I need to "relax" ... so I hit tribes ascend instead
20:55 dave :)
20:55 sri yea, ranks are pretty worthless for anything else than groups of 6
20:57 dave I get real sick of joining games with 3 reapers and 2 soldier 86s, as an example
20:58 sri honestly, the most competitive fun i've had so far has been increasing my overbuff stats... lol https://www.overbuff.com/players/pc/kraih-2445?mode=competitive
20:58 sri in competitive there can only be one of each class
20:58 dave you like roadhog
20:58 sri yea, it's my relax class
20:59 dave heh
20:59 dave see that skill rating trend shows me nothing about your gameplay
20:59 sri with the flankers you have so much movement, but roadhog is just lay back, hook some squishy opponent and oneshot them
21:00 dave I enjoy pharah ... probably because I've been playing tribes so long that it's 2nd nature to shoot other pharas out of the air
21:00 dave your win rate is increasing! :)
21:02 sonicepk joined #mojo
21:03 sonicepk_ joined #mojo
21:03 sri oh, if you can shoot other pharas out of the air that makes you a pretty good overwatch player actually
21:26 Akron joined #mojo
21:47 sonicepk_ joined #mojo
22:45 sri hmm, another irccloud outage for 10 minutes
22:45 sri this time from "a large netsplit overloaded out servers"
22:45 sri Oo
22:45 sri s/t/r/
22:46 Riviera 8)
22:47 pink_mist sri: perhaps time to consider convos :P
23:07 sri anyone using f.lux on os x?
23:08 Riviera yup
23:08 sri is it better?
23:08 Riviera than?
23:08 Riviera not using it?
23:08 sri yea
23:08 sri do you notice a difference? better sleep schedule?
23:09 Riviera hard to say, i believe it "works", but then that might be delusion
23:10 Riviera i believe i go to sleep earlier when i don't turn f.lux off :)
23:11 Riviera but that's also because things don't look as nice anymore :)  (which may or may not be rather retarded)
23:11 Riviera but, just give it a try
23:13 sri oh wow, everything looks so weird now
23:17 jberger Once preaction was giving at talk at Chicago.pm and slowly hit f.lux was turning on but it took us a while to notice ;p
23:21 sri think i'll try it for a few days
23:31 mikegrb_ I'm using flux as well but I think it's color shits are a little too extreme for me when I'm staying up late on purpose
23:31 mikegrb_ I end up disabling it those nights but I'd prefer to just reduce the shift
23:31 mikegrb_ PEBCAK I'm sure
23:33 * jberger wonders what mikegrb_ is eating too have color s#!*$
23:34 jberger :o
23:34 vicash jberger: he just means the poop emojis are different colors
23:35 jberger Ah, unicode really is amazing
23:35 * jberger has been playing some of the gear vr games finally
23:36 mikegrb_ heh
23:36 mikegrb_ oops

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