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

IRC log for #mojo, 2016-09-02

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

All times shown according to UTC.

Time Nick Message
00:02 dave You should be carrying your whole team, sri ;)
00:06 itaipu joined #mojo
01:18 meshl joined #mojo
01:21 bossert joined #mojo
02:37 sri argh
02:38 sri season 2 did not start well for me
02:38 noganex joined #mojo
02:38 sri dared to solo queue and lost 2 placement matches to someone leaving in the middle of a round
02:39 sri also won one to an opponent leaving
02:39 sri and then pleaced at the very top end of silver... spitting distance to gold :S
02:56 zivester joined #mojo
03:22 disputin joined #mojo
03:33 jasanj joined #mojo
03:35 jasanj is there a way to find all the watchers in a ioloop ? i thought my watchers has been delete but the ioloop is not automaticlly stop
05:00 anton joined #mojo
05:29 daemonic joined #mojo
05:35 bossert joined #mojo
06:00 firnsy joined #mojo
06:32 inokenty-w joined #mojo
06:39 dod joined #mojo
06:44 dod joined #mojo
07:02 laidback_01 joined #mojo
07:05 mbudde joined #mojo
07:09 kes joined #mojo
07:27 bc547_ joined #mojo
07:28 AndrewIsh joined #mojo
07:59 Guest-questX joined #mojo
08:08 osfabibisi joined #mojo
08:14 Atog joined #mojo
08:28 romel joined #mojo
09:49 Andreas joined #mojo
09:51 pink_mist Andreas: what a great name you've got =)
09:52 Andreas :)
10:08 meshl joined #mojo
10:41 kaare joined #mojo
11:04 marty joined #mojo
11:10 anparker_convos joined #mojo
11:10 mtj joined #mojo
11:10 anparker_convos joined #mojo
11:11 mtj joined #mojo
11:17 tchaves joined #mojo
11:22 tchaves joined #mojo
11:36 meshl joined #mojo
11:37 batman left #mojo
11:37 batman joined #mojo
11:59 cafe joined #mojo
12:07 * jberger yawns
12:18 anton joined #mojo
12:20 mishanti1 jberger: Bored?
12:20 purl bored? build a nuke!
12:20 mishanti1 purl: Already done. But don't tell anyone.
12:20 purl mishanti1: what?
12:20 mishanti1 It is kind of sad that a bot is better company than most people.
12:21 mrEriksson Hey folks! Anyone got any pointers on how to monitor Hypnotoad? To keep track of workers in use etc
12:30 cpan_mojo Mojolicious-Plugin-AssetPack-1.22 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.22
12:34 mpapec mrEriksson: I'm afraid you can't out of the box
12:35 mpapec but you can change default logger and put $$ to monitor which worker did what
12:36 mrEriksson mpapec: After doing some googling, that was more or less the answer I expected
12:36 mrEriksson $$ ?
12:36 purl $$ is not used in rand() or getpid()
12:36 mpapec $$ is PID of the worker
12:37 mrEriksson Just realized that :)
12:37 mpapec don't know how it relates to rand()
12:37 jberger mpapec: purl is a bot
12:37 jberger sometimes helpful, sometimes not so much
12:37 * jberger throws purl down a well
12:37 purl seven days
12:38 mpapec jberger: great interview
12:38 Sebbe yeah
12:38 jberger oh thanks!
12:38 mpapec how come that it come to you? :)
12:38 mrEriksson Ok, so best practice is to monitor logging from hypnotoad and collect statistics from that then?
12:38 jberger I finally got up the nerve to watch it last night
12:39 nic I find purl utterly annoying.  Can't fathom why anyone would want that much noise in a channel
12:39 jberger mpapec: what do you mean?
12:39 jberger gabor asked, so I said yes :-P
12:39 mpapec ah, ok :)
12:39 mpapec as he had presentation on Mojo on last yapc
12:40 mpapec yapc:NA
12:40 anparker can anyone share a link to an interview? can't find it in my logs
12:40 jberger mpapec: he gave a talk but only as a newcomer
12:40 Sebbe anparker: https://www.reddit.com/r/perl/comments/50mpu3/cmos_3_joel_berger_on_mojolicious_podcast_and/
12:41 jberger he is starting a new software podcast/vlog and wanted more expert level people and he wouldn't consider himself that on mojo I'm sure
12:41 jberger he has been in the dancer camp for the most part
12:41 anparker Sebbe: thx
12:41 mpapec so it is surprising that he covered about 90% of framework
12:41 jberger I don't know if I'd go quite that far
12:41 jberger it was a good talk
12:41 jberger but it covered mostly basic routing and rendering
12:41 jberger which is fine, we need those talks too
12:42 mpapec he covered agent, morbo, hypno
12:42 jberger anyway if I had to guess why he picked me of all the core members I'd probably say it is because I have given talks at yapcs and things
12:42 jberger yeah, it was a good talk, as I said
12:42 jberger actually I complimented him on it (off air)
12:43 mpapec :)
12:43 mpapec last video what I saw from you was from Mojoconf
12:43 mpapec 2014
12:43 jberger I talked at YAPC 2015 as well
12:43 mpapec is there something more recent?
12:43 mpapec I'll try to find it
12:43 jberger I couldn't make YAPC this year, conflicted with my vacation
12:44 mpapec heh
12:44 mpapec btw
12:44 mpapec what would you suggest for worker monitoring
12:45 mpapec I've used redis so far, for inter worker communication
12:46 gizmomathboy joined #mojo
12:46 jberger I haven't monitored each worker before
12:47 jberger usually just a simple status responder attached to a monitoring daemon
12:47 mpapec I'm not sure I follow
12:48 jberger oh I remember why I didn't promote my talk from yapc 2015 more ... the video didn't turn out very well :s
12:48 mpapec is it on YT?
12:48 jberger chicago.pm is going to get video soon, maybe I should give that talk again so I can get a better recording
12:48 jberger https://www.youtube.com/watch?v=CKbzBNz4Ksg
12:48 jberger 8min of a 30 min talk
12:48 jberger camera only got me and not the screen
12:49 jberger hahaha, I'm wearing the same shirt!
12:49 mpapec :D
12:49 jberger (not really surprising I guess)
12:49 mpapec I see you're using js for presentation
12:49 jberger oh and I "ummmmed" too much too
12:49 jberger I've worked on that
12:50 mpapec do you have presentation on github
12:50 mpapec ?
12:50 jberger (just pause, don't umm)
12:50 mpapec hehe
12:50 jberger the slides are online yes
12:50 * jberger finds
12:50 jberger http://jberger.github.io/TestingWithPhantom/#/
12:51 mpapec jberger++
12:51 jberger use spacebar or page up/down to move
12:51 jberger the arrow keys are ... unintuitive
12:51 mpapec revealjs
12:51 jberger yeah
12:51 jberger that's my biggest complaint
12:51 jberger I might just stop using the subpage thing since I always feel compelled to give that warning
12:52 mpapec probably useful when skipping chapters
12:53 mpapec deliberately :)
13:13 jberger This is an interesting article: https://medium.com/cultured-perl/the-obligations-of-perl-3d72733b1d70#.37eye8i15
13:14 jberger the author's name is a bit unfortunate if he's going to become a member of the perl community :P
13:15 vicash Lehman brothers
13:15 jberger if he picks the obvious pause id he might end up wondering why everyone is scared to install his modules
13:17 vicash he might be able to actually since the other ID has an extra N
13:21 jberger exactly
13:21 jberger prime confusion potential
13:21 jberger I put a comment, tactfully worded as possible, on the article
13:22 pink_mist considering doing this in #perl: perlbot mlehman is not to be confused with mlehmann (see <mlehmann> for more)
13:22 pink_mist :P
13:22 jberger hahaha
13:31 zivester joined #mojo
13:38 blonewolfs joined #mojo
13:38 brian_ joined #mojo
13:39 blonewolfs joined #mojo
13:40 kwa joined #mojo
13:42 stryx` joined #mojo
13:46 irqq joined #mojo
13:59 Riviera joined #mojo
14:07 blonewolfs joined #mojo
14:14 peredreifus joined #mojo
14:29 cuechan joined #mojo
14:37 mpapec not defending anybody but Marc wrote EV, Coro, etc
14:37 mpapec didn't saw someone else trying
14:38 mpapec to do the same work
14:40 mpapec and not to mention level of expertise required for such achievements
14:42 mpapec ah, and yes
14:43 mpapec one more politically incorrect motherfucker
14:43 mpapec https://youtu.be/iYWzMvlj2RQ?t=30 ;)
14:44 nic mpapec: You're violating channel policy on language
14:45 mpapec don't care, didn't offend anybody :p
14:45 mpapec and I _did_ argument my standpoint
14:45 nic Many of us *cannot* tolerate language of that kind being displayed on our screens
14:46 mpapec but all you've saw is your favorite keyword
14:46 mpapec that is sad
14:47 mpapec is this channel a "safe space"? :o
14:47 nic sri, batman, Grinnz, jberger: Any of you available to administer some policy?
14:48 batman nic: not sure what that means
14:49 mpapec batman: is it possible for convos to start YT at specified time?
14:49 batman what's YT?
14:49 purl i guess YT is an aol-ism for you there? or the young heroine of _Snow Crash_
14:49 mpapec if I click play, it starts the clip from beginning
14:50 batman ah. right.
14:50 mpapec YouTube :)
14:50 pink_mist batman: it means nic objects to mpapec using the word "motherf**ker" (I can't seem to see anything in the code of conduct that prohibits that kind of langauge though, as long as it isn't directed at anyone in here)
14:50 jberger nic: we removed the outright ban on language when we put in the more comprehensive policy
14:50 batman i don't get used to YouTube == YT :/
14:50 jberger but mpapec: please don't use overly strong language
14:50 jberger especially if someone asks you not to
14:50 batman mpapec: no idea. i think you have to look at https://github.com/jhthorsen/mojolicious-plugin-linkembedder/blob/master/lib/Mojolicious/Plugin/LinkEmbedder/Link/Video/Youtube.pm
14:51 mpapec and I'm offended when someone doesn't read what I wrote but behaves like grep parser
14:51 mpapec grep filter*
14:52 jberger did you read what I read? I said nothing about the context it was in
14:52 mpapec batman: tnx!
14:52 batman mpapec: that doesn't help. you can't excuse bad behaviour with bad behaviour.
14:52 jberger can we please keep the channel at a workplace appropriate level? that is a good first approximation
14:52 mishanti1 mpapec: Calling _anyone_ something that implies that they have that kind indecent interaction with their mothers would be considered offensive many places.
14:53 mishanti1 s/mothers/mother/
14:54 mpapec ok, figure of speech is no more recognized as one? replace it with badass; does it mean that one has "bad ass"? ;)
14:55 nic misogyny is what it is
14:55 jberger ok everyone halt
14:55 mpapec nic: "Trump" for you
14:55 jberger rule 1: Be friendly and patient
14:55 jberger lets back this down a bi
14:55 jberger bit
14:55 nic jberger: just so you're aware of previous offensive language: http://irclog.perlgeek.de/mojo/2016-08-31#i_13123016
14:56 mishanti1 jberger: Wish you'd have said 'stop', so I could follow with 'hammer time!'.
14:56 jehdin apparently having a Perlmaven subscription doesn't grant me access to CodeMaven
14:56 mpapec yeees, language policing; if this channel is "safe space" I don't want to participate in it.
14:56 jberger nic: opposing politcal views do not consititute offensive language
14:56 jberger that is even in our policy
14:57 mpapec batman: is there a nick filter in convos?
14:57 jberger that said, like many workplaces lets try to keep politics out of a good technical discussion of mojolicious and the web, ok
14:57 batman mpapec: i'm surprised that bad language is so important to you that you actually want to abandon the channel.
14:57 mishanti1 mpapec: It is not about language policing. It is about making a space that is available, comfortable and friendly.
14:57 batman that doesn't compute :/
14:58 jberger mishanti1: which is why I asked that mpapec not use that overly strong language
14:58 jberger now lets all calm down a bit
14:58 jberger please
14:58 batman mpapec: keep the convos questions to #convos
14:59 mpapec batman: http://www.urbandictionary.com/define.php?term=safe%20space
14:59 mishanti1 I'm super-chill atm. :) Just finished automating Pinto-setup for $work. Pinto is a great tool.
14:59 batman mpapec: i'm not joining the discussion again
15:00 jberger mpapec: careful now
15:00 batman mishanti1: have you looked at https://metacpan.org/pod/App::opan ?
15:00 jberger I don't care what you call the term, and I didn't admonish a non-leftist view earlier
15:00 jberger but we do want people to feel comfortable in #mojo
15:01 mpapec batman just clarified why I would leave the channel (in case it represents the safe space)
15:01 mpapec (as I don't need one)
15:01 jberger mpapec: not everyone needs a "safe space" but some do, especially those people who are traditionally underrepresented in software development
15:01 jberger I optimize to include them
15:02 jberger if that worries you, you don't have to be here
15:02 batman jberger <3
15:02 mishanti1 jberger++
15:02 jberger I aim to include everyone
15:02 jberger if you don't want to be inclusive, that's your choice
15:02 Grinnz mpapec, you are making a bigger deal of this than it is. and nic overreacted a little which didn't help.
15:02 mpapec jberger: ok
15:02 mpapec left #mojo
15:02 Grinnz ah well
15:03 jberger everyone please note that I specifically included his right wing speach and told nic that that wasn't offensive
15:03 jberger just sayin
15:03 Grinnz i don't even understand the politics enough to know what those statements meant :D
15:03 pink_mist tbh, the proper response imo should have been: "nic, mpapec didn't violate anything from the code of conduct, so you should just move on." (and *nothing* should have been said to mpapec)
15:04 mishanti1 batman: I did not even know about it before you mentioned it just now. So no. Thanks for the tip. :)
15:04 jberger pink_mist: maybe; its hard to call the plays live as they are happening
15:04 jberger I was mostly trying to bring the tensions down
15:04 Grinnz mishanti1, its only a few days old, the author is definitely looking for any feedback
15:05 Grinnz few weeks *
15:05 mishanti1 batman: I'm a little put off by the wording in the NOTA BENE though... Are you using it? Does it seem feature-stable? That's one of the things that is nice about Pinto. It seems pretty 'settled' and have a nice feature-set.
15:05 batman mishanti1: i think it's incredible simple, compared to pinto. it might be too simple for your case, but it would've worked for me in my old job
15:05 jberger I don't stand for the dog whistle stuff though, like using "safe space" as derrogatory
15:05 mishanti1 Grinnz: Doh. *facepalm* Should have checked the dates. :)
15:05 batman mishanti1: i wouldn't worry. just don't upgrade it if you don't like the changes :)
15:05 Grinnz mishanti1, it's 350 lines of source code, so easy to find out what it's actually doing
15:06 batman yeah, what Grinnz said... you can just put it in your own module or something
15:07 Grinnz jberger, it's just the opposite side of the coin of people choosing to be offended and make a stink
15:07 * nicomen thinks it's kind of cool that three people in this channel are sitting in the same room, except one just left
15:08 jberger now, that said, please don't use a safe space to exclude other people's (legitimate) politics
15:08 batman nicomen: <3
15:08 jberger otherwise you lose the high ground
15:13 jehdin That was a pretty decent interview, jberger - I wasn't aware that you're a physicist as well!
15:14 jberger thanks
15:14 jberger yeah, I'm still transitioning away from introducing myself as a scientist first
15:14 jberger sounds strange
15:14 jehdin Naw, you earned it.
15:15 jberger usually its "hi I'm Joel. Hi Joel what do you do? Well I'm a programmer. I'm a Physicist by education but programming pays the bills" or something along those lines
15:16 jehdin I'm guessing that since you posted your thesis, you've already defended it
15:16 jberger yeah, 2013
15:16 jehdin So yeah - you've definitely earned it.
15:16 jehdin Friend of mine just finished her Masters in education
15:16 jehdin Probably the most stressed I've seen that girl
15:16 jberger my wife has hers too
15:17 jehdin And she handles elementary school kids.
15:17 jberger and yes it was stressful for her, but she kept having to couch the amount of work that went into it when she would complain because she knew what a ph.d. is
15:17 jberger s/is/entails/
15:17 jehdin Indeed
15:18 jberger very unrewarding system though
15:18 dod joined #mojo
15:18 jberger 8 years of graduate education earning maybe 1/4 salary
15:19 Grinnz :/
15:19 jberger then you get to go be a post-doc for 2-3 years making maybe 2/3 salary
15:19 jberger I couldn't make myself do it
15:19 jberger and the sequester didn't help
15:20 jberger I've done the math on the amount of money I probably lost due to that track, kinda depressing actually
15:20 jehdin I feel ya
15:20 jberger it did put me in a good spot for this career track through, a Ph.D. does open a lot of doors for programmer interviews
15:20 Grinnz but! now you can make people call you Dr. Joel :P
15:21 jberger haha, they have that on my nameplate in the office
15:21 dod joined #mojo
15:26 zivester joined #mojo
15:33 cfedde joined #mojo
15:42 disputin joined #mojo
15:44 laidback_01 joined #mojo
16:11 Grinnz__ joined #mojo
16:11 jberger sri: I'm getting errors during global destruction out of Mojo::Pg::PubSub, I suspect is might be related to the recent changes in close logic but that doesn't matter, can we toss a Mojo::Util::_global_destruction check here: https://github.com/kraih/mojo-pg/blob/master/lib/Mojo/Pg/PubSub.pm#L9
16:13 lluad joined #mojo
16:17 Grinnz__ joined #mojo
16:24 dod joined #mojo
16:41 jehdin Mojolicious keeps popping up in random places. https://youtu.be/fO5d-5jELG4?t=3099
16:41 jehdin Might've copied the time a bit further back than intended.
16:45 Grinnz__ what he's describing is very simple to do with mojolicious delays or Future
16:45 Grinnz__ he's a bit out of touch with perl 5
16:52 Grinnz__ jberger: could also just add an "if $self->{db}" here https://github.com/kraih/mojo-pg/blob/master/lib/Mojo/Pg/PubSub.pm#L32
16:53 jberger yes, but checking for global destruction in a DESTROY is a common idiom
16:53 jberger maybe idiom is too strong, but pattern certainly
16:53 Grinnz__ sure, either way, the global destruction check doens't work on <5.14 though
16:54 jberger we have already decided that we don't optimize for error messages on old perls
16:54 jberger that was part of the decision around that _global_destruction function
16:55 jberger s/error/warning/
16:56 jberger heh, the guy on medium replied
16:56 jberger his father is named Marc Lehman
16:56 Grinnz__ lol
16:56 jberger and he himself usually uses mclehman (which doesn't help much)
17:01 sri jberger: sure dr. joel, i think we could do that
17:05 * jberger writes a prescription, not that he can do that
17:06 PryMar56 joined #mojo
17:08 mpapec1 joined #mojo
17:10 sri purl: hi dr. joel is <reply> http://s2.quickmeme.com/img/f2/f2a0cc7f1c74bdfbdd7ea96f5bd2800226ca723e5a5f8dd77b4070cffc58b0fb.jpg
17:10 purl OK, sri.
17:10 sri hi dr. joel!
17:10 purl http://s2.quickmeme.com/img/f2/f2a0cc7f1c74bdfbdd7ea96f5bd2800226ca723e5a5f8dd77b4070cffc58b0fb.jpg
17:12 sri jehdin: oh, that's so funny, mojolicious addresses axactly those problems he mentions!
17:12 jberger o/
17:12 sri s/a/e/
17:36 jehdin His comment struck me as ood, considering how often mojo and async are mentioned in the same sentence
17:36 jehdin Yes, that is quite the odd Ood.
17:37 jehdin https://imgur.com/a/MYNfY
17:40 cuechan joined #mojo
17:42 jberger http://tinyurl.com/zf7khdh
17:43 jberger closest I could find those arrangements of characters
17:46 sri so, did this thing go anywhere? https://github.com/kraih/mojo-pg/issues/30
17:47 sri how do you roundtrip binary data in postgres?
17:54 lluad If you're using bytea and text encoding (which you probably are) then you need to encode and decode the binary blob into the text form bytea uses.
17:55 lluad Any non-obsolete version will have the hex format, which is '\x' . $data_hex
17:57 lluad (That's an answer from the postgresql perspective, not the DBI or Mojo::Pg one, so might not be useful)
18:00 sri i guess the DBI perspective might be most important here
18:02 * lluad -> take a look at Logioniz's test case
18:09 laidback_01 joined #mojo
18:09 sri the big question here is if we really need to expose a way to specify postgres types
18:09 lluad ... possibly.
18:10 lluad The behaviour that test gives surprises me.
18:11 mishanti1 I just found the cutest little hdmi-cable in my drawer. 25cm long.
18:12 lluad I'm not sure quite what's going on - it almost looks like something is getting unicode nobbled somewhere rather than a Pg type problem.
18:12 * lluad digs deeper
18:21 lluad Yeah, it's a unicode issue. Data gets stored into postgresql correctly, but on reading "d3" we get "c393" instead, which is the UTF8 encoding of d3. I'm guessing that's in Mojo::Pg rather than anything DBI or postgres type related.
18:21 sri i just confirmed it too
18:21 sri Mojo::Pg doesn't do anything special though
18:22 sri we let DBD::Pg handle all the encoding
18:23 sri it's pretty odd
18:24 lluad Right. And we handle the insert correctly, which is the hard bit.
18:24 sri but how would a bind_param on the insert affect the select later? Oo
18:24 lluad It wouldn't.
18:24 sri so the data can't get stored correctly
18:24 lluad But looking at Mojo::Pg it looks like it does some "clever" stuff with json-izing data.
18:25 sri there's a type check for json/jsonb though
18:25 sri oh, you mean one of those DBI methods called maybe changes the data?
18:25 sri no wait
18:26 sri it never even reaches those parts
18:26 sri ->expand needs to have been called or it's dead code
18:27 sri yea
18:28 sri you can do ->query(...)->sth->fetchrow_hashref->{...}
18:28 sri same result
18:31 sri in case anyone wants to join the fun https://gist.github.com/anonymous/034680eb2eb42654d925be2d717c0a0f
18:31 sri the goal is to get rid of the second utf8::encode
18:36 sri it has to be the insert that double encodes
18:38 dod joined #mojo
18:38 lluad Yes, it is. That the script is doing two inserts of the same data and deleting the bad one confused me before.
18:38 lluad That makes more sense.
18:39 sri ah
18:40 disputin joined #mojo
18:40 Grinnz__ for Mojo::SQLite i have the option to pass the DBI type for the case of SQL_BLOB, since that's the only way to properly send binary data
18:40 Grinnz__ https://metacpan.org/pod/Mojo::SQLite::Database#query
18:41 Grinnz__ for DBD::SQLite in particular
18:41 disputin1 joined #mojo
18:41 sri think i'll do the same
18:42 Grinnz__ not sure what happens on retrieval, since SQLite doesn't store types
18:42 sri and i guess i'll use your convention so you don't have to change anything
18:42 Grinnz__ but iirc it worked out
18:44 sri and it makes sense ;p
18:44 Grinnz__ :)
18:45 lluad Yeah, seems ilke the best fix.
19:10 irqq joined #mojo
19:11 mikegrb joined #mojo
19:12 mikegrb joined #mojo
19:13 mishanti1 augensalat: Did you see https://github.com/augensalat/mojolicious-plugin-accesslog/pull/11 ? Please do let me know if you have any comments or opinions on it.
19:14 augensalat mishanti1: no, missed that. I'll try to have a look this weekend.
19:15 mishanti1 augensalat: Great. :) Any feedback is appreciated. Do not be afraid to be critical of the contents of the commits.
19:37 sri re overwatch, gotta say that i'm a little disappointed that individual effort in competitive mode is not rewarded more
19:41 sri there's just too many matches that end up as 5v6 when you solo queue, and it feels like losing a coin toss
19:42 Grinnz__ it's a difficult balance; accounting for individual performance at all is very tricky, especially to apply fairly to each character
19:42 Grinnz__ for instance, how do you determine if a tracer is performing well?
19:42 sri yea, i know
19:42 Grinnz__ they do compare you to others on the same character, so that helps i think
19:44 sri guess to really enjoy the game you have to accept that solo queue can't ever be competitive
19:45 Grinnz__ determining individual skill in a 6v6 game that relies completely on teamwork has no easy answer :/
19:45 Grinnz__ and people grouping just complicates it further tbh
19:46 sri i bet mathematically even with only two players queueing together and coordinating a bit the odds of winning skyrocket
19:47 Grinnz__ yeah any coordination helps a lot when the status quo is none
19:48 sri i mean, climbing the ranks when you have a 55% win rate as base line should take a hell of a lot of time
19:54 cafe joined #mojo
20:02 bwf joined #mojo
20:25 sri https://github.com/kraih/mojo-pg/commit/ec7100237751f18250c22ed96d4b45309e88e21b
20:25 jberger why utf8::encode $snowman; rather than Mojo::Util::encode 'UTF-8', $snowman (in the test)
20:26 jberger tbh everyone has me so scared of utf8 I basically only ever trust Mojo::Util::encode/decode
20:26 jberger :-P
20:27 sri lol
20:31 Grinnz__ utf8::encode is an in-place encode which just uses perl's internal representation and can't fail, basically
20:31 jberger what I need is a cheat sheet with a line down the middle and headings on either side "Use these" and "Oh dear gods don't use these"
20:31 jberger and I'll just print it out 100 times and post them everywhere I work
20:32 Grinnz__ the problem is there are legitimate reasons to use the utf8.pm functions
20:32 Grinnz__ they're just not reasons you run into very often
20:34 Grinnz__ but anyway, the Encode function should work fine for that test too
20:35 sri i've switched, so dr. joel can relax a bit :) https://github.com/kraih/mojo-pg/commit/b6b901e5906c7f91c515ebbcaa3759014fe991fa
20:35 Grinnz__ haha
20:37 CW joined #mojo
20:37 jberger admit it, you got scared too!
20:39 sri nope, sorry
20:40 Grinnz__ on EBCDIC platforms, utf8::encode would convert it to UTF-EBCDIC instead of UTF-8, and i know so many people use those platforms :P
20:40 sri lol
20:40 sri i forgot about that
20:40 sri now i am scared again!
20:40 sri \o/
20:41 jberger SEEE!!
20:48 mishanti1 Haha "EBCDIC (Extended Binary Coded Decimal Interchange Code ) (pronounced either 'ehb-suh-dik' ...". Drunken-speech much?
20:55 Phil21 sri: Overwatch in a few?
20:55 Phil21 (and anyone else)
20:56 Phil21 Grinnz__: oh jesus you just made me have a mini heart attack
20:56 Phil21 I didn't even consider UTF-EBCDIC a thing
20:56 * Phil21 spent 9 months converting EBCDIC to ASCII in a past life
20:56 Phil21 I try to forget.
20:56 lluad It's not a thing. If we all close our eyes and Believe Very Hard, it's not a thing.
20:57 jberger lluad++
20:57 Grinnz__ just like VMS
20:57 Grinnz__ and MacOS classic
20:58 jberger which one is it that [Tux] hangs onto so dearly? HP-UX maybe?
20:58 sri Phil21: yes!
20:58 Phil21 cool, hopping on in 5 or so
20:59 Phil21 kid will join us too at some point soon
20:59 Phil21 so we can let him carry us some more
21:05 Grinnz__ already in a group or i'd join too
21:05 Grinnz__ they let us out early for labor day weekend :P
21:06 Phil21 haha
21:07 Phil21 Grinnz__: join us after, we'll have 4 then at least
21:07 Phil21 might can find a 5th
21:10 mishanti1 If anyone here need some pretty chill `music &`, check out Dale Chase's album Typedef. "Ssh to your heart" is especially cute.
21:12 dave hey Phil21, I'll join if you want
21:26 disputin joined #mojo
22:04 Vitrifur joined #mojo
22:04 Phil21 dave: sure, Phil21#1533
22:04 Phil21 sorry, didnt' see this
22:06 CW joined #mojo
22:06 Vitrifur left #mojo
22:08 Vitrifur joined #mojo
22:36 disputin joined #mojo
23:09 karjala sri: Could you make a blocking version of Subprocess call?
23:09 karjala Why would I want such a thing, you ask?
23:10 karjala Because I deal with processing and resizing large image files. I'd like this processing to happen in new processes that will be destroyed immediately after, to make sure the RAM usage of all active processes is kept small.
23:11 mishanti1 karjala: Have you looked into Minion?
23:11 Grinnz__ karjala: could do something like: my $subprocess = Mojo::IOLoop::Subprocess->new(ioloop => Mojo::IOLoop->new)->run(...); $subprocess->ioloop->start;
23:11 karjala mishanti1: Not for this purpose, no. I guess I should
23:12 karjala Grinnz__: Ah, thanks
23:12 Grinnz__ (that's sort of how the blocking version of Mojo::UserAgent works)
23:13 karjala Maybe I could pack these lines you wrote in a single-statement method in a new module
23:13 karjala a plugin
23:13 purl a plugin is ok, since it modifies the request cycle
23:13 Grinnz__ sure
23:14 Grinnz__ it doesn't need to be a method really, since it doesn't need any context from the surrounding application (that code would work in a regular script just as well)
23:18 karjala Grinnz__: could i place this code you wrote inside a route handler running under Hypnotoad?
23:18 Grinnz__ you can put it anywhere, it'll just block the worker of course
23:43 meshl joined #mojo

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