« first day (3691 days earlier)      last day (1239 days later) » 

12:00 AM
it sounds like a TCP link was severed while an application was waiting for data
 
i.e. the underlying connection has been closed without proper close control messages being sent on the websocket layer
 
the reasons for that could be anything from a timeout to a router on the internet being rebooted
 
@DaveRandom the later is quite unlikely, you usually just get BGP rerouted then transiently
 
"abnormal" close is either because of a missed ACK or RST
 
@DaveRandom because of multiple missed ack - and an impromptu RST is also an anormal close for websockets
 
12:02 AM
@bwoebi I mean theoreically :-P and actually in reality you'd probably just get a timeout because the session state would have gone away
 
Wes
well nvm, now it works. i have no idea why
 
what are you talking to?
 
@DaveRandom which session state on IP routing?
it isn't tcp
 
Wes
ah no it doesn't
i am utterly clueless
Loop::defer(function() use($connection){
    while ($message = yield $connection->receive()) {
        /** @var Message $message */
        echo (yield $message->buffer()) . "\n";
    }
});
it works for a while then spits out that
 
@bwoebi yeh but most of the internet transit points are stateful, and if one of them goes away probably you are going to end up with a reset being generated to force re-establishing a link rather than trying to re-route traffic,
 
Wes
12:05 AM
i think because there's nothing keeping the loop going, or something
 
although these days I guess that's less true
 
@DaveRandom yeah
 
Wes
code is literally just that
 
@Wes and it's deffo not just a timeout?
 
@Wes probably the other end waits for some response and then times out?
 
12:07 AM
^
 
Inaccurate documentation on gettype (for Integer) ・ Unknown/Other Function ・ #80401
 
it sounds like the client is severing the conn
 
Wes
ah, probably. how do i keep waiting indefinitely?
wait
 
heartbeat
 
Wes
lol
 
12:08 AM
websocket protocol has an echo opcode for that purpose
 
Wes
Loop::run(function(){
    // ...

    $connection = yield connect($websocketURL);
    /** @var Connection $connection */
    Loop::defer(function() use($connection){
        while ($message = yield $connection->receive()) {
            /** @var Message $message */
            echo json_encode(json_decode(yield $message->buffer()), JSON_PRETTY_PRINT) . "\n";
        }
    });
});
 
I think you want to timeout() with receive() and send a ping
although also I think standard procedure is to put that onus on the client
 
Wes
why are you talking weird dave
:B
procedure is to put anus what
 
have the client end send a NOOP message every so often
 
Wes
example?
 
12:11 AM
that way you can quickly detect when the client goes away on the server side
 
Wes
link to any code?
 
@Wes just literally send a message that does nothing from the browser every so often to keep the socket alive
cba writing an example :-P
 
Wes
i try
 
the websocket client has a heartbeat option
 
@Wes I think the usual approach is to clearTimeout(pingTimer); pingTimer = setTimeout(30000, ping); in your send routine
 
Wes
12:15 AM
Loop::repeat(500, function() use($connection){
        yield $connection->send("{POOP: 'POOP'}");
});
that worked
egh
 
Evening folks
 
that's what she said
 
Wes
what's your problem json
JSON: string literal expected at position 1
 
@Wes try send('{"POOP":"POOP"}')
 
Wes
oh right FFS
i hate this
 
12:20 AM
configure filtering out -lpthread ・ *Configuration Issues ・ #80402
 
Wes
ok so now i keep it alive but i get a bunch of errors in return. i need to find some standard message form, or something?
 
@Girgias saw something you either might be interested in, or you might hate me for
 
@Tiffany Go for it, am half drunk tho
 
I'm not actually familiar with the song or what it's from
 
I'm not sure I get it
 
12:31 AM
Just hearing Goofy singing in Japanese made me lol
 
Yeah, apparently the song is Snow Halation from "µ's"(the original idol group for the first Love Live series!)
 
12:51 AM
Hmm, how come pattern matching is so hot right now?
 
Rust?
 
there's a push to shoehorn it into python as well, which has, uh, mixed reception
 
Is there a PEP for it yet?
 
at least four
 
I mean pattern matching ain't that bad a feature
huh
Probably not sober enough to process 4 PEPs
 
12:53 AM
There was one, and then there came three others. You know a feature is great when you need separate PEPs for "specification"/"motivation and rationale"/"tutorial"
 
I wonder how pattern would work in Python tho, is that bundled with a match expression or just standalone?
 
don't want to spam a different language here too much, but the original is python.org/dev/peps/pep-0622 -> python.org/dev/peps/pep-0634 (python.org/dev/peps/pep-0635, python.org/dev/peps/pep-0636)
@Girgias basically switch-case on steroids
 
Tbh it could interest @Crell @IluTov as they are working on related features
Well Python does not have a switch statement (yes I know you can do something similar with a dictionary but..; well)
 
yeah
 
Oh so it's basically a match expression with pattern matching, I mean PHP 8 has basic match expressions sooo
(if my sentences don't make sense it's normal...)
 
12:57 AM
@Girgias (why should that be normal?)
 
Yeah, "like PHP" is usually not what we're going for :)
 
@bwoebi (I just came back from celebrating a friends birthday (in respect to social bubble things in the UK as we both live on our own))
(so just a tad tipsy/drunk)
 
Here we reached (local) peak idiot. There's a curfew so after 8 PM only emergencies, going to work and dog walking within a 500-m radius is permitted. A dog shelter had to shut down adoptions because there were too many people trying to adopt a dog so that they could get out of the house at night...
 
Where do you live?
 
the EU's butthole
(Hungary)
 
1:00 AM
Also France decided to become authoritatian, voted on a law that bans filming police officers...
oh
 
yeah...
 
1:58 AM
I feel like I'm channeling Riker Googling with "how can I spray my dryer with WD-40 so it stops squeaking"
It's especially frustrating since my dryer is barely a year old
 
 
2 hours later…
3:43 AM
old macos version is ok,but update to macos big sur later ,compile failure ・ Compile Failure ・ #80403
 
 
2 hours later…
5:23 AM
@Tiffany you're spraying it in the tub with the clothes, right? gotta get that great aerosol and oil fragrance on all your clothes.
 
5:49 AM
Did we really introduce two XML objects with not the same naming convention?????
Namely: XmlParser and XMLWriter
 
@Girgias be glad one didn't include an underscore.
 
I suppose
 
6:27 AM
@Girgias but you should be grateful that at least the OCI-Lob and OCI-Collection classes became OCILob and OCICollection 😃
 
@MateKocsis ... well yes ...
I'm currently having loads of fun writing the appendix for numeric strings
 
 
1 hour later…
7:55 AM
morns
 
 
2 hours later…
Wes
9:28 AM
mornings
 
mornings
 
Wes
9:43 AM
so this works to keep the socket alive. would be great not to get any massive error dump in return tho. any idea on how to do that folks? already asked, i know, sorry for vamp
Loop::repeat(500, function() use($connection){
    $connection->send("heartbeat");
});
 
10:06 AM
opcache breaks expression evaluation order when cast as int ・ Math related ・ #80404
 
@Wes I've told you to pass an options object with heartbeat enabled to handshake
something like connect(new Handshake($uri, (new Options)->withHeartbeat()))
@Wes and btw. the error dump is not specific to the underlying protocol, but to whatever application you are connecting to - so look their API up
 
Wes
ah. sorry, missed that. i thought with heartbeat you were being romantic or something :B
lemme check. thanks
it woooorks :P thank you very much
no it dooooessnn't
 
@Wes I urgently need a rocket to strap onto you and send you to the moon
 
Wes
> Connection closed abnormally while awaiting message
same thing
 
6 mins ago, by bwoebi
@Wes and btw. the error dump is not specific to the underlying protocol, but to whatever application you are connecting to - so look their API up
 
Wes
10:20 AM
that's basically not documented at all :(
 
then you're out of luck I guess
we cannot help you
or try experimenting
 
Wes
thank you anyways. for now i'll stick with the random message, until i find something better
 
LDAPCONF=/etc/ldap/ldap.conf not respected ・ *General Issues ・ #80405
 
10:39 AM
Morning
 
10:51 AM
@Jeeves it's true, I have very little respect for it
 
11:06 AM
...DAVE STOLE MY JOKE.
20 hours ago, by Danack
@PeeHaa something something, the more powerful a language is, the harder it is to tell wtf is going on...
 
"joke thief extraordinaire"
 
11:26 AM
@Danack ...15 minutes before you were going to make it?
 
yeah.
 
'Day.
 
11:53 AM
Day
 
12:27 PM
Jour
 
12:53 PM
 
1:14 PM
wtf is that?
 
>>> unicodedata.name('날')
'HANGUL SYLLABLE NAL'
duh
 
oh right, sorry, my mistake
 
Korean for 'day'
there's like three words for "day" that mean the measurement of a single day, calling a day "day" and a 'work day'
 
that explanation is unsurprisingly ambiguous in separating the three words :)
 
I picked the one that seemed most likely to be used in a greeting
I'm likely wrong
 
1:38 PM
Oukdom ・ *General Issues ・ #80406
 
1:54 PM
@Tiffany so there's the measurement of 86400 seconds, the opposite of night, and... what's the other one sorry?
and yes I know days are not always 86400 seconds shut up
 
As in weekday perhaps? Day of the week.
 
2:20 PM
@Girgias Thanks. I believe we did review that a while back, although the current draft is not based on it. It's probably worth re-comparing at some point, after the initial enum implementation is done.
@Girgias Oh my. We really are way behind on PHP 8 docs, aren't we. :-( (Just saw your list.)
 
yeah
I can probably do a couple, but I don't understand Attributes as I never used Annotations so I'm not gonna document that feature lol
 
cmb
2:41 PM
IMO, it's not necessary to have full-fledged documentation soon, but we should have at least something in the migration guide.
 
Would be nice to have the major new features
 
I have made a few PRs to improve mysqli documentation and I am planning to redo most of it. But I wonder if this is appreciated. I am not saying that it should be accepted right now, it can wait for review, but should I continue to submit PRs for mysqli docs?
 
cmb
@Dharman currently, priority is on PHP 8 docs, so review may need some time. :)
 
2:56 PM
And that is fine, I am also removing all mentions of PHP 5 docs when I find them, but can I expect that there is a chance my PRs will ever get accepted.
Even if that happens in 2021, I can wait and in the meantime submit more PRs
 
anyone have any clue how to remove breathing noises from video? I'm trying to record some of my walks with a gimbal mounted iPone, and I'm like to record the ambient noise, but with the camera directly in front of my face and being out of shape, it's picking up quite a bit of asthmatic wheezing....
 
cmb
3:12 PM
@Dharman I can't promise anything, but I'll try my best.
 
@Danack Sample the breathing as isolated as you can get it first, then feed it into a de-noiser.
Also I don't know if this will be relevant to you but reddit.com/r/netsec/comments/jzhsvu/…
 
@cmb Is it already time to merge my doc-base change (lowercasing), or should we wait for more feedback?
 
@MarkR no hablo inglés. lo siento mucho.
Also, can you recommend a de-noiser?
 
I use adobe audition myself. I'm not particularly experienced with it but it's got pretty powerful de-noising in it. If you wanted to send a 60 second clip or so I'd be able to run it through and send it back
 
@NikiC Thanks for the quick feedback :)
 
cmb
3:21 PM
@MateKocsis IMO that's good to be merged.
 
I am working on turning my blog series into an ebook. I don't know that the text is written in a way to be easily stealable for docs, though.
I may have some time Wednesday to do more docs stuff.
 
4:15 PM
til HEIC is a thing
 
cmb
maybe you want to help out with github.com/libgd/libgd/issues/414 ? :p
 
my belly button isn't going to stare at itself
 
4:52 PM
@AndrasDeak ah yeh
 
that's one insightful belly button
 
I am an omphaloskepsis expert
 
Do you get many patients with that condition?
 
we'll just pretend that I didn't have to google how to spell it
@AndrasDeak ...have you not seen twitter?
 
only that of the orange man
 
4:56 PM
morph has a twitter account?
omfg he actually does twitter.com/AmazingMorph
 
5:28 PM
@DaveRandom Kind of surpsied morph didn't turn out to be a sex abuser. Kind of seemed the type.
 
no it would be that albino asshole, morph would have been trying to stop him
 
gwhat?
 
probably a UK-specific ref
in fact quite age-specific as well :-P
 
late 1970s early 80's tv shows were pretty weird.
 
Hartbeat was from the 90s
:-P
or was it that old?
 
5:31 PM
Morph is a series of clay stop-motion comedy animations, named after the main character. This character was initially seen interacting with Tony Hart, beginning in 1977, on several of his UK TV programmes, notably Take Hart and Hartbeat. == History == Morph was produced for the BBC by Aardman Animations, later famous for the "Sledgehammer" music video, Wallace and Gromit, and Shaun the Sheep. Morph appeared mainly in one-minute "shorts" interspersed throughout the Take Hart show. These were connected to the main show by having Hart deliver a line or two to Morph who would reply in gobbledygook...
 
oh Take Hart I have heard of that
 
And because Dave needs more earworms:
 
gee, thanks.
 
6:24 PM
@DaveRandom like what @AndrasDeak said, a day of the week where you work, a work day
could be a weekend day, if you work on the weekend
like everybody is
 
6:38 PM
Mornings / evenings
 
7:11 PM
@DaveRandom Make sure to consider dividing up the negative leap second over 365 days.
@PeeHaa There is something comical to me about seeing the 1 hour later after that comment. =D i.imgur.com/sxg6fJw.png
2
 
:D
 
8:03 PM
^ lol
 
No way to specify location of argon2 lib. Does configure does not use pkg-conf ・ *Compile Issues ・ #80407
 
8:25 PM
@StatikStasis -365 days*
@Jeeves really??
seems kind of unlikely for something added so recently
 
8:44 PM
It's a trick. They're trying to get you to look at m4 files. Get an axe.
 
note the "seems kind of unlikely..." rather than any implication I am actually going to look into it
well, that's it, life is no longer worth living inews.co.uk/inews-lifestyle/food-and-drink/…
 
> Some are selling on eBay for up to £3 per packet, despite being past sell by date
 
yeh but I mean I'm not a complete c**t
 
"Was any of this legal? Absolutely [...] not"
 
9:01 PM
I assume that is a nonsequitur, because I'm pretty sure that discontinuing specific brands of crisps is legal, even if it is an afront to my very being
 
I meant the selling past sell-by date, but yeah why not
 
I think that's legal as well, as long as you make it clear, though I admit I actually don't know
 
it definitely wouldn't be legal here in a physical grocery store, but I have no idea about stuff like amazon
 
with stuff that only has a date because they have to put something, like dry pasta or marmite or something, seems pretty ridiculous to throw it away just because a piece of paper says so
brb getting food
 
You don't have to throw it away once you've bought it. And it may be legal to give it away for free as food charity; not sure about that. Regulations are weird and attitudes shitty.
 
9:05 PM
dry pasta and marmite sandwiches
regulations = weird
attitudes = shitty
everything = terrible
people = idiots
 
not a bad summary
But from what I've heard about marmite it's hard for it to go any worse.
 
I sell T shirts, £6 a pop
@AndrasDeak actually... I'm largely indifferent to it. It's a very strong flavour in the same way as parmesan or whatever, but it doesn't really taste of anything in particular except being intensely savoury
don't get me wrong, I think most foodstuffs invented in the UK are absolutely horrific
but marmite is one of those relatively rare things that I have no real feelings towards
I would never make myself a sandwich, but I have absolutely gone to town on bowls of twiglets after a few beers at family weddings
 
so "no real feelings towards" that sounds like haute cuisine in terms of UK gastronomy
 
I would largely go along with that yes
 
@AndrasDeak lol
 
9:10 PM
traditional english food is either perfumed and sweet or perfumed and bitter, very little actually tastes of anything identifiable
there is some nice stuff, mostly breakfast and fruit
 
@DaveRandom Then you guys have stuff like "blood pudding" or "black pudding." Not sure how that escaped the dungeons of medieval times and into the hands of the common man's cuisine.
 
@StatikStasis my only issue is calling it "pudding". Same goes for Yorkshire p.
 
@AndrasDeak Yorkshire pudding sounds delicious!
 
hello, i am new to chat can we share codesandbox link here?
 
9:33 PM
Yes
@AndrasDeak agreed, "pudding" makes me think of like chocolate or vanilla pudding, hell, even tapioca... black pudding just sounds misleading
 
at least we have black pudding in our own cuisine so I don't object to the food (although there's some local cuisine that I can't stand so this is not a given)
 
10:03 PM
@StatikStasis indeed, although in slight defence of my homeland I think that's originally french
I think that's what "boudin" is, which is one of my friend's surname and I think I googled it once
I wouldn't eat it, like
 
10:22 PM
@AndrasDeak oh I just realised, pudding is probably an anglican bastardization of "boudin"
boudin -> puddin -> pudding
or at least they probably share a commom root
cba googling :-P
 
@Tolima putting stuff on 3v4l.org a gist or pastebin is good. code ident is 4 spaces (same as main SO site.)
 
tbf code indent should be consistent, the quantity doesn't matter much
mostly code samples should be readable - if I can't read your code then you can't either, and that's probably why it doesn't work
 
@DaveRandom ha
 

« first day (3691 days earlier)      last day (1239 days later) »