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

IRC log for #mojo, 2016-06-20

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

All times shown according to UTC.

Time Nick Message
00:02 sri nic++ # first third party backend with job dependencies
00:26 marty joined #mojo
00:38 tyldis joined #mojo
01:06 cfedde joined #mojo
01:14 disputin joined #mojo
01:31 bobkare joined #mojo
01:37 disputin joined #mojo
01:46 lluad joined #mojo
01:47 ilbot2 joined #mojo
01:47 Topic for #mojo is now ūüćĽ cheers | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
02:22 noganex_ joined #mojo
02:28 lluad joined #mojo
02:36 leejo_ joined #mojo
02:55 jberger nic++
02:59 jberger nic: man that is an elegant dequeue function
02:59 leejo joined #mojo
03:00 preaction steal it!
03:00 preaction i mean, use it in accordance with the license agreement
03:01 jberger Totally different backend
03:01 jberger preaction: do you have any notes on the mojo side of the sotv talk?
03:02 jberger Meaning should i send you something before i pass out?
03:02 preaction none whatsoever. and i've already got two things to do up in front of everybody, so i'm unfortunately not going to be able to this time
03:02 jberger Oh ok
03:02 preaction i thought it was going to be at the end of the second/third day, but no, it's front and center start of the first day...
03:03 jberger Yeah it was first thing last time too
03:03 preaction and in front of everyone. because why not. could've put it against something actually interesting so nobody'd show up, but noooooo
03:03 jberger Is anyone else there that would make a reasonable proxy?
03:03 jberger Leejo?
03:03 jberger Maybe best to just let it be
03:03 preaction i don't know. i got here and went to my room and decompressed from the flight
03:10 jberger leejo and mcsnolte are the only other presenters that i know use Mojo
03:10 jberger :s
03:11 jberger Not sure either are in touch with the mojo community enough to really tap then with that though
03:11 jberger Wait, are Lee and leejo the same person?
03:12 jberger Hunh maybe so
03:12 jberger In that case then Lee would be fine in my book
03:54 jberger Lee / leejo : sent you an email with the notes if you are willing
03:56 preaction genehack has the schedule made already, so they might not be able to slot another one in there. it's in literally 9 hours
03:56 lluad joined #mojo
04:09 cfedde joined #mojo
04:10 jberger to anyone reading, the clarification is that the web frameworks aren't being featured this time around
04:10 jberger so my scurrying was for naught
04:10 jberger go about your business, nothing to see here :-P
04:13 preaction move along, sir
05:07 che-quest joined #mojo
05:19 inokenty-w joined #mojo
05:43 dod joined #mojo
06:09 dod joined #mojo
06:11 dod joined #mojo
06:31 dod joined #mojo
06:32 coolo_ joined #mojo
06:35 ivi joined #mojo
06:45 McA joined #mojo
07:13 Vandal joined #mojo
07:17 AndrewIsh joined #mojo
07:18 osfabibisi joined #mojo
07:23 trone joined #mojo
07:26 cpan_mojo Mojolicious-Plugin-RoutesAuthDBI-0.707 by MCHE https://metacpan.org/release/MCHE/Mojolicious-Plugin-RoutesAuthDBI-0.707
07:26 Bender Yo kids!
07:58 leejo joined #mojo
08:11 orev1 joined #mojo
08:14 vytas joined #mojo
08:15 mdom nic: Uh, thanks for the pointer!
08:15 Nei left #mojo
08:43 nic jberger: Yeah, there's some sweet code in there.  It's 99.5% sri's code, of course.  It's testament to his sublime work that I could get away doing so little and still have all the tests from ::Pg pass
08:43 nic I wanted to retain all of the git history relevant to that file, so my contribution was reading up on how to achieve that :D
10:13 meshl joined #mojo
10:24 trone joined #mojo
10:45 leejo_ joined #mojo
10:59 tchaves joined #mojo
11:15 tchaves joined #mojo
11:25 Atog joined #mojo
11:28 sri yay, no game of thrones spoilers
11:28 dvinciguerra joined #mojo
11:33 leejo joined #mojo
11:37 Jonis sri: still waiting to watch it tonight :/
11:37 Jonis bought a projector on friday, but it hasn't arrived yet, at least I'll get to watch the series finale on it
11:42 leejo_ joined #mojo
11:52 cuechan joined #mojo
11:59 aramisf joined #mojo
11:59 neilhwatson joined #mojo
12:03 jberger nic: i meant the way you did parent jobs
12:04 jberger I'm happy that it was that you were able to implement it that cleanly since the way i worked it for postgres wasn't an obvious translation
12:04 jberger I was curious what it would look like in other backends
12:23 nic yeah, me too, it makes nice reading to see the same algorithm for other backends
12:38 marty joined #mojo
12:44 lluad joined #mojo
12:56 marty joined #mojo
13:04 marcus https://memegenerator.net/instance/66936719
13:12 sri pretty epic episode
13:14 sri yapc live stream https://www.youtube.com/watch?v=73e6quzJU9U
13:18 sri video and audio quality is pretty good
13:18 dantti_laptop joined #mojo
13:20 sri even audience shots during the live stream, that's pretty high production quality
13:27 gizmomathboy joined #mojo
13:31 sri interesting, perl core fund also assumes $50 hourly rate
13:31 nic less overheads/admin costs
13:32 sri same hourly rate i've been taking for open source work
13:32 salva joined #mojo
13:40 cpan_mojo Mojolicious-Plugin-Restify-0.03 by KWAKWA https://metacpan.org/release/KWAKWA/Mojolicious-Plugin-Restify-0.03
13:48 salva joined #mojo
13:51 * jberger waves to preaction
13:51 * sri waves too
13:52 sri andrew fresh is also a mojo user
13:52 nic yay, we get to see what preaction looks like :)
13:53 jberger sri: true, though not in the room now (afresh1)
13:53 jberger nic: come to chicago, we have beer!
13:53 nic \o/
13:53 nic I've been
13:53 jberger WHAT?! why didn't you come by?!
13:53 nic Even appeared on cable tv there
13:54 nic It pre-dated Mojolicious :)
13:54 jberger ok you are forgiven then (that probably predates my involvement in Perl also)
13:54 jberger but come back soon!
13:55 sri but don't get shot
13:55 jberger batman tried to kill me while he was here!
13:55 jberger he followed google maps and told me to exit the highway in one of the worst neighborhoods
13:55 jberger !
13:55 sri :o
13:55 genio hahaha
13:56 jberger yeah, we got back on as soon as possible, we barely made it
13:56 jberger (we then did actually see a guy wearing a batman shirt though, so we were safe)
13:56 nic phew
14:00 jberger QAH was awesome, probably my second favorite perl experience after only the mojoconf
14:02 sri was wondering how they managed to set up all those laptops so quickly
14:02 sri so it's not magic
14:08 sri jberger/preaction: btw. thanks for your state of the velociraptor efforts (even it it didn't end up in the talk), very much appreciated
14:08 zivester joined #mojo
14:08 jberger thanks, it will still be useful for a v7 announcement
14:08 Nei joined #mojo
14:08 neilhwatson joined #mojo
14:10 jberger I think rjbs just told us to bump mojo's required perl version :P
14:10 Nei hi, why does  perl -Mojo -E' say g("https://github.com/wsdjeg/DotFiles/blob/master/install.sh")->dom("#L187")->map("parent")->map("find",".blob-code-inner")->flatten->map("all_text",0)->each'
14:10 * nic loves s/.../.../r
14:10 genio jberger: heh.  it sure sounded that way
14:10 Nei return irssi_add ' adv_windowlist ' ' 1 '  instead of irssi_add 'adv_windowlist' '1'  ?
14:10 mib_ainqhq joined #mojo
14:11 Nei note the excessive spaces not present in the html
14:11 mib_ainqhq Funny that line coming from a person who runs 5.8.7 on some production boxes (@pobox)
14:12 sri Nei: html is too big for me to actually look, but maybe an all_text bug
14:12 sri Nei: if you make a minimal test case i'm sure someone will take a look
14:13 Nei here is the html in question: <td class="blob-code blob-code-inner js-file-line" id="LC187">irssi_add <span class="pl-s"><span class="pl-pds">&#39;</span>adv_windowlist<span class="pl-pds">&#39;</span></span> <span class="pl-s"><span class="pl-pds">&#39;</span>1<span class="pl-pds">&#39;</span></span></td>
14:13 Nei I think it's mojo unconditionally adding spaces around elements(?)
14:13 batman hahaha! but i also got you back to safety jberger ;)
14:13 batman win-win! an exciting experience :D
14:14 Nei as if it is doing join " " , $subelements->map("text")
14:17 salva joined #mojo
14:19 mcsnolte joined #mojo
14:20 sri Nei: i can't replicate it with a minimal test case
14:21 sri please try making a real test case and open an issue on github
14:21 sri with the issue template
14:22 Nei thanks sri
14:23 jberger Nei: I see a few spaces in your pasted html
14:24 jberger hmmm though perhaps only in the expected spaces, it is so hard to judge whitespace by eye
14:24 jberger I agree with sri, please make a failing test case, I'm curious about it
14:26 Nei https://github.com/kraih/mojo/issues/974
14:29 sri Nei: why didn't you remove the unneccessary noise from the html?
14:29 sri is "class="blob-code blob-code-inner js-file-line"" really meaningful?
14:31 jberger Nei: I have added the example formatted as a failing test
14:31 jberger feel free to edit it to trim down the html as possible
14:31 sri you kept the noise too :S
14:31 jberger I just copied
14:32 jberger (as an example of what we meant when we say failing test)
14:32 Nei I rushed it
14:33 Nei you may update your test case
14:33 sri where do the quotes even come from?
14:33 Nei now its much nicer
14:33 sri ok, i was ready to take a look and try to fix it, but the test case is too bad
14:34 * sri is out
14:35 Nei I cannot edit your code
14:36 jberger Nei: yeah, I realized
14:36 jberger I update right before you reposted
14:36 jberger so then I just deleted as redundant
15:04 sri too bad, perl6 talks now
15:04 sri guess i'll get back to work -.-
15:04 genio yea.  :/
15:06 orev joined #mojo
15:17 CW joined #mojo
15:18 jabberwok joined #mojo
15:21 PryMar56 joined #mojo
15:48 jberger ok so while watching Damian's talk I have updated the multiplex plugin
15:48 jberger I have added two more message types to the protocol, ack and err
15:49 jberger the client channel objects now have a readyState property
15:49 jberger and the open and close events only is emitted when the channel acknowledges it
15:50 jberger I probably still need to add a close event for when the channel's websocket comes down, but only can do so much today
15:56 jberger https://github.com/jberger/Mojolicious-Plugin-Multiplex/commit/c93a4c22c6b5cf91e97e3777874cb5544101a6fd
16:04 neilhwatson joined #mojo
16:06 Bean joined #mojo
16:33 Kripton joined #mojo
16:51 marty_ joined #mojo
17:04 salva joined #mojo
17:20 salva joined #mojo
17:37 neilhwatson joined #mojo
17:38 neilhwatson joined #mojo
17:42 cuechan_ joined #mojo
17:45 neilhwatson joined #mojo
17:48 Kripton joined #mojo
17:50 neilhwatson joined #mojo
17:57 salva joined #mojo
18:01 dod joined #mojo
18:06 gizmomathboy joined #mojo
18:07 bpmedley jberger: do you need a png event for a ping request?
18:09 kes joined #mojo
18:12 salva joined #mojo
18:19 salva joined #mojo
18:33 salva joined #mojo
18:35 Kundun joined #mojo
18:42 Craftsmanship joined #mojo
18:44 Craftsmanship I'm a bit confused by the example in https://metacpan.org/pod/Mojo::UserAgent, I see $ua->get('ht...' => sub {   my ($ua, $tx) = @_; }) but then in the example for ->delay the second callback only seems to receive $tx, not $ua
18:45 Craftsmanship as arguments to sub {  my ($delay, $mojo, $cpan) = @_;
18:45 Grinnz_ reading https://metacpan.org/pod/Mojo::IOLoop::Delay#begin may help
18:46 Grinnz_ important to note: you could have multiple calls to $ua->get (or whatever) in the first step, whose results all get passed in sequence to the next step
18:46 Craftsmanship so, the default is to just discard the first argumetn
18:46 Craftsmanship which would be $self, of some kind
18:48 Grinnz_ right
18:48 Craftsmanship "that's wierd, it seems to be discarding $ua" "because it is"
18:48 Craftsmanship another mystery solved, gang!
19:00 jberger bpmedley: I don't believe so, these events are at a higher level than the websocket ping would be
19:01 jberger Craftsmanship: really grokking that concept is worth a mojo-level-up
19:01 jberger probably even noticing it is close
19:01 jberger congrats
19:02 Grinnz_ when i figured it out those begin docs weren't quite there yet so i had to use jberger's blog :P
19:02 jberger might have been before the slice analogy
19:04 jberger *splice
19:16 juikuen joined #mojo
19:16 juikuen joined #mojo
19:23 salva joined #mojo
19:36 neilhwatson joined #mojo
19:38 punter joined #mojo
20:00 asarch joined #mojo
20:21 dave there's mojo levels? O.o (checks his XP bar)
20:22 pink_mist XP: -48
20:22 pink_mist sorry, you have a ways to go :P
20:23 jberger eeep, hopefully no one is negative!
20:23 pink_mist although, realising there are mojo levels probably gives you some XP :P
20:23 dave lol harsh GM
20:23 Grinnz_ negative XP probably gets you a hidden achievement though
20:24 dave so map { $_->[0] } (@{ $mojopg->db->query(...)->res->arrays }) just to get a single column...how can I level up here? :D
20:24 okurz joined #mojo
20:25 dave or is everyone so level focused that competition prevents a best practice answer? ;)
20:25 jberger first of all, no ->res
20:25 jberger I'd probably do:
20:25 dave eep res-> is a typo
20:26 jberger $pg->db->query(...)->arrays->map(sub{ $_->[0] })
20:26 pink_mist that's just moving the map :P
20:26 jberger probably with an ->each at the end to make it equivalent
20:26 dave indeed, and I do think that's a bit cleaner
20:26 Grinnz_ hey, xp is xp
20:26 jberger yeah but it reads left to right
20:26 dave and yeah Grinnz_++ ... he's been at the level grind ;)
20:27 dave why ->each?
20:27 * Grinnz_ has mostly been grinding the overwatch levels... just got his first star :)
20:27 jberger the result of ->map is another collection
20:27 jberger your example had a list as the output
20:27 Grinnz_ ->each with no argument is sorta a postfix deref
20:27 dave right but each invokes a subroutine call
20:27 dave and I keep forgetting to check Mojo::Collection
20:27 jberger heh, not if you don't give it a subref
20:28 dave can't you just say ->to_array?
20:28 jberger sure
20:28 dave clearer?
20:28 jberger but that returns an array ref
20:28 Grinnz_ that gives you an arrayref, not a list
20:28 dave ahhh
20:28 dave hey I got some XP! Thanks ;)
20:28 Grinnz_ also the object can just be used as an arrayref directly so to_array is rarely needed explicitly
20:28 jberger I wouldn't do either if I was actually using this though, I rarely actually need a list
20:29 jberger dave levels up on learning to think about Mojo::Collections
20:29 jberger congrats
20:29 dave thx
20:29 dave feel like I'm in an MMO now
20:30 * jberger ponders MojoMO
20:30 bpmedley dave: You need to use ESP and pull the data out of the datastore into the variable.
20:30 dave ahh I know why I was using ->to_array ... I return arrayrefs from my model objects
20:31 jberger I'm pretty sure it implements TO_JSON
20:31 * jberger checks
20:31 dave ESP? Is that a new semantic?
20:32 jberger yes it does implement TO_JSON
20:32 jberger so if you serialize the result using any of the major json emitters it should just become an arrayref
20:35 bpmedley dave: ESP->TO_JSON
20:36 dave I see a golden bird in the sky, demons under the earth
21:17 irctc491 joined #mojo
21:21 tempire joined #mojo
21:22 tempire Whoa
21:22 tempire New tools from ibm let you visually debug web services in xcode when using swift on the server
21:22 punter joined #mojo
21:31 irctc491 hi, last week you guys suggested i use a lower accepts setting for hypnotoad workers to help reduce memory usage
21:31 irctc491 that kind of worked, but in some cases with large data transfers ive seen Connection aborted errors on the client side after the accepts threshold crosses and hypnotoad attempts to gracefully stop the worker
21:31 irctc491 does that sound possible
21:32 irctc491 for fun i even tried to set accepts to 1 and it still happens from time to time
22:05 bpmedley irctc491: Are there messages in the logs?
22:07 leejo joined #mojo
22:19 marty joined #mojo
22:29 punter joined #mojo
22:45 batman joined #mojo
22:54 yuni joined #mojo
23:05 neilhwatson joined #mojo
23:57 marty joined #mojo

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