« first day (2449 days earlier)      last day (2499 days later) » 

4:02 PM
@kelunik Question: Do you actually have resolved the ARP problem (UDP packets being discarded except the last one until ARP cache is filled) with your DNS rewrite?
 
No, but I don't care about that.
 
> ERROR: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
 
If the first query times out, the second will work.
 
there goes my hope of a swift usage of docker on windows
 
@kelunik so, you're practically just introducing a delay until TCP is tried for every first request in a while?
 
4:04 PM
@FélixGagnon-Grenier heh
 
@PeeHaa I hear you are sane and use windows, ever got that^^
 
@bwoebi No, we retry with UDP.
 
@kelunik oh, we do?
 
We only use TCP for truncated responses.
 
4:04 PM
@FélixGagnon-Grenier when is it ever easy?
 
fair point
 
@kelunik oh, okay
 
what do I do when my brain doesn't want to code? is there a way to force it? or should I just call it a day and work on something else?
 
@kelunik also: does it make sense to have a timeout as high as 3 seconds by default (for standard config), given that you typically have a resolver within the LAN?
 
4:07 PM
20 hours ago, by Levi Morrison
@FélixGagnon-Grenier Take a nap then look at the things you need to do and do one of them.
 
I'm at work though, I can't take a nap. Unless I go to lunch... maybe I just need a break.
 
@bwoebi Default for resolv.conf is 5 seconds, e.g. DigitalOcean droplets are configured with 8.8.8.8 by default.
 
mhm
but 5 sec timeout is pretty long for a wasted timeout
 
a wasted timeout?
 
I mean, a request which won't succeed (due to being dropped)
 
4:12 PM
How do you know it won't?
 
there's the problem… typically it should be enough to just wait for 1 ms between two consecutive requests if the last DNS request has been long ago
 
Actually we don't have that problem at all, as we always use a new socket and one packet is queued anyway.
 
@kelunik is the queueing per socket?
If yes, then fine
 
> Problem 1
- This package requires php >=7.1 but your PHP version (7.0.2) does not satisfy that requirement.
Problem 2
- The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
you hipsters
 
@NikiC I would about object literals if we had some easy way to pattern match it and also put it in function signatures (a form of named parameters)
As an idea:
 
4:20 PM
@FélixGagnon-Grenier Already >=7.1? :-D
 
and requirement on 64 bit also :o
which is okay, it's just... funny ;)
> - Installation request for peehaa/async-twitter dev-master -> satisfiable by peehaa/async-twitter[dev-master].
- peehaa/async-twitter dev-master requires php-64bit ^7 -> your PHP version (7.0.2) does not satisfy that requirement.
 
@bwoebi Even if not, I don't care about one 3 second delay every 20 minutes.
 
@PeeHaa you bourgeois^^
 
$f = function ({$named_1, $named_2}) {
    echo $named_1, $named_2;
};
$f({"named_1": 4, "named_2": 2});
 
@LeviMorrison tbh I think if we add object literals it should have more general support anyway
Not { "foo" => "bar" } but rather new Test { "foo" => "bar" } or so.
 
4:23 PM
I guess an array is probably better suited anyway
$f = function ([$named_1, $named_2]) {
    echo $named_1, $named_2;
};
$f(["named_1" => 4, "named_2" => 2});
 
This is something I'm missing in PHP right now. If you do value objects you end up writing trivial constructor for them and those ctors have some kind of arbitrary non obvious argument order
 
@NikiC Would be nice, yes.
 
@LeviMorrison yes, that would make more sense -- alas it already has a different established meaning
 
@kelunik I would care.
 
Would have to do something like [=> $foo, => $bar] = ^^
 
4:25 PM
@NikiC Huh?
@NikiC How does it work in the presence of a constructor?
 
@LeviMorrison It is independent of the constructor. It's a replacement for (non-named) constructors, in a way. In a Rusty way
 
@NikiC If it has a constructor then its an error or..?
 
@LeviMorrison [$foo, $bar] in an lvalue context already has a meaning of (indexed) list destructuring, so I don't think we could do it just like that
 
@NikiC Are you alluding to the documentation for optional parameters?
 
@LeviMorrison I'm not sure
Probably best if it's an error, yes
 
4:28 PM
@NikiC It needs to be that way if you want to have optional keys:
$f = function ([$named_1, $named_2 = 2]) {
    echo $named_1, $named_2;
};
Basically you are saying that existing destructuring works on position and not name, right?
 
@LeviMorrison is that list() destructuring in function args?
@LeviMorrison yes, he is.
 
@bwoebi I would prefer it looks up keys by name and not by position, but yeah that's the general idea.
 
@LeviMorrison I'm not sure whether that's a good idea. or have fun with passing two identically structured arrays to two different args
 
@bwoebi Hmm?
 
function([$foo, $bar], [$foo, $bar]) would be quite bad
 
4:31 PM
It's preventable on definition though? Just disallow it?
 
@LeviMorrison yeah, but it'd mean you'd disallow destructuring two arrays with same structure.
 
Oh, I see your point now.
 
@bwoebi There's nothing we can do about that.
 
Anyway, named parameters are useful but we can't just shim it into existing functions. I think they need to be explicitly designed for it and I was thinking this would be a way to do that.
Use the {} syntax I used earlier then :D
Would have to prevent destructuring multiple keys of the same name but that's probably fine for two reasons:
1) Often used for configuration where there is only one "named parameter" config
2) Can fallback to types which guarantee* those properties exist
* Usual @Ocramius caveat
function config({ $foo, $bar = null });

config({"foo": 1});
 
4:46 PM
his name is Levi /cc @LeviMorrison
11
 
is that your kitty @JoeWatkins?
ITS CUTE
 
yeah, his mother is our cat, he is the last kitten left from her last litter ... nobody wanted him for some reason, so we're keeping him ...
 
Do you know which race it is? That some mighty purrr
 
nope, his mother is just a normal-ish cat ... pure white, but otherwise normal
 
okay (=
 
4:50 PM
don't know who fathered him, haven't seen any that look like him hanging around ...
 
The gf says it reminds her of a norwegian forest cat
anyways its cute, share more pictures in the futurez
 
@PeeHaa @Ekin How's GitAmp going?
 
sure will
 
@JoeWatkins Beautiful.
If only it would tilt its head in a slightly quizzical fashion for a picture...
:D
 
yeah ... I'll keep trying ... he's too interested in the camera at the moment ...
I took 10 photos and that was the only one that was nearly in focus ...
 
4:56 PM
Evenin r11
 
he wouldn't have existed, we took his mother to be neutered/spade and she was pregnant, so we took her home so she could have the last litter ... she's done now though, so he's the last kitten she'll ever have ...
 
woa you US guys are really fucked twitter.com/brianklaas/status/880402157589102593
what is this, orwell?
@FélixGagnon-Grenier do a photo first
so that i can draw penises on it
 
@WesStark a photo of me?
 
yes. with the mustache
 
ah, heh. well, there was some beard also, not only the mustache, sorry if you envisioned a full mustachio canadian guy
 
5:01 PM
@kelunik need to handle the onOpen case for emitting now and find out why the dns error (that api.github.com:443) happens. Handler looks like github.com/ekinhbayar/gitamp/blob/v2_rewrite/src/Websocket/… at the moment and that's the branch.
 
omfg this is glorious
ok, let me a few weeks, I'll get you that
everybody at work will hate me, but it is definitely worth it
 
ahaha
 
@Ekin I'd rename listen() TBH, sounds like something permanent is started.
 
what would you suggest instead?
 
5:14 PM
update() for example
 
Hey guys,
in MSSQL, CONVERT(binary, 'PW')
How would I write that in PHP?
 
@kelunik not sure, it listens for responses and builds results out of them, which get appended. Btw, this is what happens when I run it now
 
@Ekin Please dump the previous exceptions of Amp\Artax\DnsException.
 
@HassanAlthaf are you running queries against a sql server or you want to do an equivalent operation in PHP?
 
Anonymous
@WesStark oi
 
5:23 PM
@DaveRandom Equivalent operation in PHP to validate
Take PW, Convert to the equivalent and compare with DB.
I know I can do that in the query itself, but I would prefer the equivalent operation
 
What's stored in the DB, a binary hash?
 
It's a binary field.
 
Well PHP only deals in binary, it's not encoding-aware like SQL
When you have a string in PHP it's just a byte array
 
Oh.
So I'm guessing it's not gonna be possible?
And I should rather do something like Password = CONVERT(Binary, 'input password')
 
Well it is possible, it just probably doesn't make a lot of sense, it depends on the exact nature of what is in that column though. "Binary data" doesn't really tell you anything
 
5:26 PM
The column is the password
 
If it's the raw binary output of some hash function (which I hope it is) then you can just do that in PHP and compare them like regular strings
 
It's actually a game server.
Yeah.
I doubt it is an output of some hash function.
Plain text converted to binary.
 
Plain text is binary
 
Or that.
 
that's what I mean, binary is not a format
 
5:28 PM
Normally, we assume plaintext is string
or at least I do
 
A string is binary
 
I know..
 
"binary" in the context of SQL means "the server does not need to know what the actual type of this data is"
When you select it into PHP, what you get is a string
 
Oh?!
So, I don't have to convert to binary?
 
Which hash function is used to generate the data that's in that column?
 
5:30 PM
@RonniSkansing s/CUTE/KAWAII
 
afaik there's no such thing as a 104-bit hash
 
104-bit hashes were used for WEP in some cases
 
5:48 PM
(= @Kurisu
yes
 
6:07 PM
!!dad
 
Why do crabs never give to charity? Because they're shellfish.
 
6:59 PM
ok, this was really interesting:
 
7:16 PM
@JoeWatkins SQUEEEE KITTTY
I agree, post more pictures when you can. He reminds me of one of my cats when he was a kitten. He's grown into a giant Maine Coon mix fluff butt.
 
7:40 PM
Hey guys!
target machine actively refused
SQL Serv.
Why does it do that
 
Helloooo world...
Who drink mate in here?
I just found this theme:
https://mate-desktop.org/
 
H3LLO WHATS UP
 
8:22 PM
@ideeps the c3iling
 
ThW
8:48 PM
@Gordon look XMLReader with namespaces :-) github.com/FluentDOM/FluentDOM/blob/…
 
@ThW via extension?
 
ThW
nope just php
 
nice
 
ThW
I am adding extended version of XMLReader and XMLWriter to FluentDOM
working on the writer example now
 
9:05 PM
@NikiC @bwoebi Would be nice if one of you could have a look: github.com/amphp/dns/issues/58
 
Create your own data validation class or use existing package?
 
9:23 PM
Yo bitchesa
@kelunik As E said. not too shabby. Mostly rewriting and fixing tests accordingly.
The thing that scares me most is the DNS issue E found
I haven't really looked into it
 
It's an OPCache issue actually.
 
Wat
 
Yeah seems like an opcache issue
 
You tokking to me?
OMFG
 
@Ekin but it still fails without OPCache, right?
 
9:27 PM
Yes it does
 
Did you run the amphp/dns tests without OPCache?
 
GODFUCKINGDAMNIT
I HATE YOU OPKASH
 
Yep, that last gist have them both
 
@Ekin That's GitAmp, not the amphp/dns tests, right?
 
9:28 PM
@PeeHaa It's doing really weird things, yes.
 
@Ekin Is that with opcache?
I am indeed probably running without on cli
 
That one is not, the file above is with opcache
 
@Ekin What's the DNS server you're using?
 
I have no issues on windows
What does that tell us? :P
 
Errr, I have no idea actually
 
9:30 PM
pfffft tough crowd
 
@Ekin cat /etc/resolv.conf
 
ThW
lol
 
@FélixGagnon-Grenier you have twatter issues?
ah 64b requirements
fwiw I will fix it once I rewrite it to amp v2
 
@PeeHaa nah I was just doing as if I'd understand anything about Jeeves and updated my fork
 
Which is needed anyway
ah yeah
 
9:32 PM
@kelunik There's a lot of "Empty domain name at position ___" That seems troubling.
 
and immediately stopped thinking about it when considering working with php versions on windows
 
jeeves will stay 64b for a while because of twatter
 
oh, I got them 64
 
really
What's that error aboot?
 
they all say so
u drunk bro?
@PeeHaa composer installing
 
9:33 PM
@FélixGagnon-Grenier yes
 
noice enjoy :)
 
@Trowski I don't know why these happen, maybe we should just retry on those.
 
Starting noaw I am officially jobless
 
... I guess I should have done --ignore-platform reqs, wat could possibly go wrong
 
And I'm gonna act like it
 
ThW
9:33 PM
@PeeHaa for how long?
 
@ThW That's the million $ question
 
ThW
really? nothing new?
 
I do have work the coming month
 
@kelunik I'm wondering if there's an issue in LibDNS with message decoding.
 
But that's mostly freelance fillers until somebody hands me a remote job
 
9:35 PM
@Trowski No, Wireshark shows them as empty, too.
 
@kelunik So then essentially the response is no records found, not an error? Little confused as to what's going on there.
 
@Trowski No, it's a record with an empty domain name, which LibDNS considers invalid.
 
@kelunik record with empty domain name?
 
ThW
@PeeHaa have you asked Trivago :-)
 
what's the query and what's the exact response?
@ThW They don't do remote because they are weak (just look at that hire @Jimbo)
 
9:40 PM
@PeeHaa yes, just empty, pointing at the DNS root.
 
ThW
@PeeHaa I know others actually :-)
I think we have 50:50 at the moment (office:remote)
 
@ThW Starting July I am open to non Laravel jobs :-)
 
ThW
and we do not have enough desks for all people at the same time
 
@kelunik Ok, just trying to decipher why that happens? Badly behaving server?
 
:D
 
9:43 PM
@Trowski Not sure.
Actually: No clue.
 
ThW
@PeeHaa well we expand on the java/python side of things
 
I could probably live with python
 
@Trowski LibDNS is definitely right, empty A records aren't permitted.
 
BTW, Aerys\Body is gone? This says it did now on phpunit.
 
Would prefer php still for all its weaknesses
 
9:47 PM
@Ekin Yes, it's just Amp\ByteStream\Message now
@Ekin What's your DNS server now?
 
ThW
PeeHaa if you're interested in a Python job drop me mail and I will put it forward to the HR people. I am not good at that stuff.
@PeeHaa do you have my mail address?
 
Request: DOMNodeList should implement Countable starting in php 7.2 (or php 8?) – #74837
 
that
 
ThW
kinda - it is a working alias
 
9:50 PM
I am going to start looking seriously into jobs coming my way starting monday
 
ThW
I wish I could register a class for DOMNodeList sigh
 
DOM needs a proper overhaul
 
ThW
Yeah, I am still not on the level to do it.
 
:(
At the very least we should support new DOM versions
 
ThW
I added most of Level 3 in FluentDOM
I have a branch for some of the traversing stuff, but this looks mostly like it is academic/base
 
9:55 PM
@kelunik :( I can't see what's in /etc/resolv.conf and composer install of dns also fails opening it on gitamp's own server now
I don't get why
 
Why can't you see it? And what does fails opening mean?
 
> Amp\File\FilesystemException: Failed opening file handle: /etc/resolv.conf
 
has anyone read "American Gods" ?
 
ThW
@tereško yes, but some years ago
 
I don't know why it says no such file when I cat, I do see it on find -name resolv.conf as ./etc/resolv.conf :P feels so stupid
 
9:58 PM
@ThW good, bad, meh, would read it again?
 
ThW
@tereško really good, but dark
 
I like "dark"
 
@Ekin Something is really weird then, tried a reboot / network manager restart?
 
Waait found it, I think...
root@GitAmp-Ubuntu:/# cat ./run/systemd/resolve/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:4860:4860::8888
# Too many DNS servers configured, the following entries may be ignored.
nameserver 2001:4860:4860::8844
err, sorry for the dump
 
10:00 PM
@tereško Watching it
Weird as fuck
 
ThW
@tereško its not horror, but it goes to that edge
 
@PeeHaa I am gonna try to read it first - just like with "Expanse"
 
@Ekin /etc/resolv.conf doesn't exist?
 
ugh reading means effort
 
@kelunik I think some servers might respond with an empty A record to indicate nothing found.
My router seems to do that.
 
10:01 PM
@PeeHaa audiobooks?
 
> /etc/resolv.conf -> ../run/resolvconf/resolv.conf
 
@Trowski An empty A or no A records at all?
 
Same. Cannot do that shit. Just means falling alseep for me
 
ThW
Expanse is a book series?
 
:(
 
10:01 PM
@Ekin and /run/resolvconf/resolv.conf doesn't exist?
 
ThW
I was bored by the tv series
 
@PeeHaa try listening while you are making food or shopping or getting to/from work
@ThW yes, at least 6 books now
 
ThW
I will have to check that out
 
first book is a bit slow, but it picks up in the latter third
 
@FlorianMargaine nope
 
10:03 PM
@Ekin ... and you can resolve DNS?
 
Florian Migraine
Florian Margarine
 
:37913837 Yes, 0 answer records. ;-)
 
Floridian Marginalize
 
Yes, I realized that it was showing the question section.
I choose to blame it being Friday :-D
 
@FlorianMargaine nope :D
 
10:05 PM
@Ekin that sounds normal :)
 
Yeah...
 
you have multiple ways to fix that
but the best one would be to figure out what generated the wrong symlink and fix that
 
Surprised you're not just getting a ConfigException then.
 
(the quickest way to fix that is echo nameserver 8.8.8.8 > /etc/resolv.conf)
 
freedesktop.org/software/systemd/man/… < /etc/resolv.conf should actually be symlinked to /run/systemd/resolve/resolv.conf
 
10:09 PM
Any way dns could handle that properly and start screaming there isn't a nameserver available to query?
 
@PeeHaa It should do that already.
 
kk
 
@kelunik yeah, but why isn't it done to begin with?
systemd-resolvd should create the symlink
 
I still don't get how it disappeared
 
10:10 PM
@kelunik does it follow symlinks?
 
@kelunik Does everythign throw in there that needs to throw
 
and, ugh, you reimplemented getaddrinfo :(
 
@kelunik That's what's confusing me… it should be throwing that, not failing queries later.
 
WAIT EVERYBODY
I'm getting another drink
 
ThW
 
10:12 PM
@Trowski unless the symlink was changed after? in that case, amp\dns shouldn't care though
 
ThW
disassembled, next step coloring
 
ohkay, without the onOpen bit (as in, I have an asyncCall that emits onStart only), I am running gitamp.audio on v2_rewrite just fine now
 
@Ekin That means without doign actual requests to the outside rite?
oh
 
to the outside?
 
@FlorianMargaine Right, but we're looking at running tests, so not a running program at this point.
 
10:14 PM
@FlorianMargaine We have to, yes.
 
(All dns tests also pass)
 
@Trowski I'm really wondering whether we shouldn't just use amphp/parallel for DNS. ^^
 
ThW
good thing this case had only screws, not a single rivet
 
@kelunik Bit of an overkill. :-P
 
@Trowski And doesn't currently work on Windows, yes. :P
 
10:17 PM
@Ekin Did you fix your resolver config then?
@kelunik Heh, yeah that too.
 
Yes, well both amphp/dns tests and running gitamp worked fine
 
gitamp?
 
@FélixGagnon-Grenier You still on, buddy?
 
@FlorianMargaine gitamp.audio
 
@Dereleased yah, kinda
 
10:19 PM
I need to see the mustache
 
@kelunik I suppose we could use 8.8.8.8 and 8.8.4.4 by default if loading the config fails, but issue a warning that the resolver config is borked.
 
@Ekin Took quite a while to play any audio now.
 
well, you see, the thing is I shaved before realizing
promise, you guys will have it firsthand when its ready
 
We are no longer friends I AM KIDDING I NEED YOU @FélixGagnon-Grenier
 
10:20 PM
@kelunik I reverted it back to run on master just a while ago
 
@Trowski We had that and I removed it, see also github.com/amphp/dns/issues/42
 
@kelunik Should probably add an EnvConfigLoader then, or some way to easily specify other servers. I'm still confused as to why @Ekin wasn't getting an exception if the config was broken.
 
Wait I had seen it this last time though
Checking logs again
Yeah...
First critical Amp\File\FilesystemException and then Next Amp\Dns\ConfigException: Could not read configuration file (/etc/resolv.conf) in /opt/gitamp/vendor/amphp/dns/lib/UnixConfigLoader.php:72
 
10:26 PM
Yeah, ok, there we go. All is right in the world.
 
Why am I getting this error? Strict Standards: Only variables should be passed by reference
$stmt->bindParam(':username', strtolower($username));
 
@Trowski Just that it's the wrong way around.
 
@kelunik No, it shows the previous exception first.
 
@Trowski I'd like to see non-broken systems failing first.
 
@TheCodesee because only variables should be passed by reference, and you are passing a function call to a method that expects a reference. you most likely want to use bindValue, not bindParam, unless you know why use one over the other, and their differences
 
ThW
10:30 PM
@TheCodesee it binds variables not return values :-)
 
I still wonder about that opcache weirdness. Any clues @kelunik?
 
@Ekin Already pinged @NikiC and @bwoebi.
 
Alright :-)
 
Night. o/
 
\o nn
 
10:32 PM
o/
 
what's the stupid thing I'm doing wrong? pastebin.com/qEHrMhk3
 
@FlorianMargaine Use amphp/file ^0.2
 

« first day (2449 days earlier)      last day (2499 days later) »