« first day (2833 days earlier)      last day (2115 days later) » 
00:00 - 19:0019:00 - 00:00

7:11 PM
can anyone help me with request path authentication please? i asked on site but people are taking too long to respond
i'm very close to getting this i just don't know what value to put for SAMLRequest
alright how about this
ill give $10 cad to whomstever can help me with this small problem
paypal only
 
@SaltySea A lot of the regulars in here are in Europe- it's somewhere between 8pm and 10pm for a lot of them. They will probably check back in but you'll have to wait. That being said "Don't ask to ask, just ask." Post your question so that someone will see it when they come in.
 
@StatikStasis fair enough, here I go: So right now, I have a valid sectoken working and I'm able to do a cURL request in command line and it is authorized! But my problem is, I don't know the method to bypass my identity server's sign in page (WSO2 IS). I read a lot online that in order to bypass the IS sign-in page I must send the sectoken as a parameter in a URL. something like "localhost:9443/samlsso?SAMLRequest=<SAMLRequest>&sectoken=<SECTOKEN>"
however I don't know what value to put in for SAMLRequest
stackoverflow.com/questions/51424769/… for anyone who wants the internet points instead of answering here, i'll still toss you that $10 CAD
 
7:28 PM
moin
@SaltySea I know basically nothing about it but the procedure seems to be documented here
at least, the procedure for encoding the message into the url
 
thanks man ill take a look into it
but man ugh their docs are awful no offence to anyone here who works/loves WSO2
 
it looks like it's based around a java lib to build the messages themselves, there may be some existing PHP lib to do it, otherwise you'd likely be best hacking something together with DOM
 
been reading almost everything on Basic Auth
hahah yeah might just try that
btw
do you know curl requests?
i converted my curl command to PHP but idk how to get it to load
 
It looks pretty insane tbh, it looks like one of those Java-esque abstractions that go hundreds of layers deep
and obviously is all bonkers XML formats
I'm generally a big fan of XML but boy to Java people know how to do horrible stuff with it
 
lmaoo i'll prob just keep it as plan Z for now
it definitely looks too much
 
7:37 PM
by which I mean it looks actively maintained
this is definitely the sort of thing where you should use a lib rather than rolling your own, if you can find one that does what you need
 
@DaveRandom How goes platform.sh?
 
really good :-)
 
Nice!
 
kind of intense tbh, just because it's such a massive shift for me in so many ways, but the company is great and the people are great and they do some really cool shit
 
That can be fun though.
 
7:40 PM
oh yeh, it's awesome
 
Challenges definitely push us to learn.
 
but that's why i've not been around much, it's basically using all my energy :-P
 
cheers (Y)
 
I've not been around much either.
 
getting off train, bbiab
 
7:41 PM
I've been in room but have not had near the time I usually have lately.
k
later
 
Our SSO provider uses ADFS which is SAML-based. I've looked at using php-saml briefly to integrate into some of our systems. I also saw something like simplesamlphp, but I'm not sure how well maintained it is
 
never trust anything with "simple" in the name
 
@PaulCrovella What about these? thesaurus.com/browse/simple
 
evenin
 
7:47 PM
github.com/simplesamlphp/simplesamlphp it seems like it was around before github. I want to give an opinion on the two but it's been so long since I've looked at either.
 
guys
quick question
if im doing a curl request and the sectoken i'm using is authorized and the callback url is being reached
how can i write it so that i can load the site as soon as its reached?
so right now i have like <script><php .... my curl request ..?></script> <iframe .... /iframe>
but the url i'm reaching inside in curl request in my PHP block should be displayed within the iframe
 
8:05 PM
@StatikStasis i dont work a lot with frontend, not many here do
 
8:19 PM
@StatikStasis how about SAP vizframe or cloud analytics?
 
8:38 PM
@tereško ok, tomorrow is celebration day, do you want to say something that I mention in the celebration from your side? (instead of you)
 
@Wes Thanks for testing! At which one of these function calls does it hang? Just insert fwrite(STDERR, "Test" . PHP_EOL); in between to find out.
 
Wes
hold on
 
@PaulCrovella so much this, although I must admit I now default to github.com/DaveRandom/SimpleLDAP over the underlying lib, ldap is so ridiculously verbose and that abstraction is (largely accidentally) pretty good for the 99% case
 
Wes
@kelunik on kill()
 
morning
 
8:48 PM
@Wes Thanks, I'll have a look tomorrow on monday probably
 
@mega6382 I would consider this a combination of both.
 
9:01 PM
@pmmaga EXPLAIN didn't change between slow and fast query :-/
 
@Fabor but so explain was also super slow?
 
Nah explain was relatively quick
 
last far-fetched idea: is this a cloud based db?
 
amazon aurora
 
have you tried with a local DB?
 
9:05 PM
Don't have the result set locally, makes me wonder how big it is now
 
cloud services tend to put your stuff in the "cold" until you actually need it. and the delay you get may be explained by they "warming" up your data source
 
I don't show warning in execute SQL on PostgreSQL, when script run on PHP 64bit – #76648
 
Yeah no it's too big to do locally
going to ask aws support for any insights.
 
Wes
9:29 PM
@kelunik found out something important probably
if i run that method alone it works --filter "/::testKillImmediately
so it must be something executed before that prevents it from working
 
@Fabor no context so no idea if relevant, but I know that certainly mssql, probably others, query plan dumps are always worst-case, they don't account for transient factors like cached result sets or reuse of cursors across sessions (dunno if anything other than mssql has that)
 
@DaveRandom Well I compared EXPLAINS before and after and they were the same. Assuming it shows there.
 
@StatikStasis chartjs.org for actual charts. D3 is cool af, but so difficult to use.
@Fabor you have a really shitty disk that is attached via network storage, but lots of ram in the machine? If i was going to investigate this, I'd probably try to get the full DB onto my local machine to see if I could reproduce that speed difference, and then if I couldn't start using something like strace to investigate what is happening that could be so slow.
actually the first thing would be to try making network connections directly from the command line to the mysql server just to make sure the network isn't completely fucked.
 
9:54 PM
@Fabor (now having actually read the question) this is a total spitball but I could imagine a situation with a complex query where it would require multiple O(n) scans of some logical table, and the query planner decides it's better to do a single scan to build an index instead, and said index would be cachable
are we talking mysql here?
if so then I basically have nothing useful to say, I don't know much about the internals of modern mysql
 
10:08 PM
@Danack Awesome! Thanks for the info!
 
@Wes ooohh I know this one, is this on win I assume?
 
let me go and refresh myself on the guts of proc_* and look at what amp does
in fact, can you do me a favour and see if it hangs here, here or here @Wes?
I remember running into precisely this when I did the socket wrapper thing
 
Wes
wait
 
NO I AM IMPATIENT DO IT NOW
 
Wes
10:20 PM
ah lol i remember this too
it's not the first time you guys asked me to test this :D
 
Yeh I remember I found it hard to repro
when you run the whole test suite, at the point where it hangs, are there loads of proc wrapper/php.exe processes hanging around?
it could simply be the old running out of handles problem that I never managed to get anywhere with, it doesn't seem to make sense according to MS docs but it's obviously what's happening
 
Wes
wait i am fighting with phpunit
 
windows really wants you to use threads, is what this comes down to
 
Wes
clearly it output buffers the echos
 
well it's complicated, there's a layer that's using threads to map blocking pipes to nbio via sockets, so there may be some oddities around e.g. nagel
I hacked that thing together in like a day, it's probably broken in many, many ways :-P
 
Wes
10:29 PM
 
where "dies" == "hangs"?
 
Wes
yes
 
kk
to the lxrmobile!
 
@Shafizadeh he's suspended for 26 days, he won't be able to respond unless a mod reverts the suspension
 
> This function stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.
there's the key, I suspect
 
Wes
10:33 PM
want to know which of the previous tests remains active?
 
@Tiffany Teresko got suspended?
 
Wes
if i run that test alone everything works... if i run the whole test suite, a test that runs before that prevents this test to finish
 
@Allenph yar
 
Wes
presumably because i/o is not completed, whatever
 
Wuuuuut? Why?
 
10:37 PM
@Allenph Addressed a chat member using an inappropriate derogatory term.
 
that's not what I would have expected...
 
@LeviMorrison Like something racist or just him calling someone a bad word like usual?
 
@Allenph about the same level as a racial slur
 
Hmmm.
 
that seems out of character, tbh, at least if done with knowledge and malice
 
10:39 PM
I think a 30 day suspension was a bit much, but I don't know that level of detail about policies around here.
He suggested quite strongly that they had a reduced mental capacity.
 
oh no that's totally in character
@Wes if you comment out just that test, does the rest of the suite finish?
 
Wes
@DaveRandom yes
hold on
 
interesting, that I would not have expected
I think this must be about branch prediction or something else low-level and not directly related, i.e. something that affects the way the logic that establishes the connection to the child warms up or something, in such a way that the proc_terminate() call comes earlier in the startup process while the child is blocking waiting for I/O
 
Wes
Test 'Amp\Process\Test\ProcessTest::testProcessEnvIsValid' started
Test 'Amp\Process\Test\ProcessTest::testProcessEnvIsValid' ended
Test 'Amp\Process\Test\ProcessTest::testKillImmediately' started
it only hangs if executed after testProcessEnvIsValid
 
if you comment out just testProcessEnvIsValid() does the whole suite finish?
 
Wes
10:47 PM
yes
 
what are you testing this against btw, your own build?
if so can you package it and send it to me so I can see if I can repro?
 
Wes
you mean the php runtime right?
 
your php.exe and associated bins
 
Wes
uploading
need to clone amphp/process, the ext-async branch
 
kk
also while I fuck about for way too long making that work, as insane as this is, would you mind investigating whether altering the env vars in testProcessEnvIsValid() has any effect? e.g. if you comment out 'PATH' => ... does it make any difference?
it shouldn't but I'm at a bit of a loss here
 
10:53 PM
apart from being too much screen space, anyone see anything obviously bad about amazon.co.uk/BenQ-EL2870U-Entertainment-Free-Sync-Response/dp/…
for a macbook pro.
 
is that the going rate for UHD 28"?
 
Wes
@DaveRandom no difference
 
@DaveRandom apparently so for a low refresh rate one.
 
Wes
@DaveRandom should the destructor of $process in the test envisvalid be called?
 
...sure why not!
 
10:58 PM
@Danack I mean I wouldn't buy it but I guess I want something different from my monitors (specifically I want more, slightly smaller ones)
 
Wes
LOL
it should be called but it's not. so that's the problem?
 
it's certainly a problem
is it generally called for other tests?
 
Wes
public function destroy(ProcessHandle $handle): void
{
    /** @var Handle $handle */
    if ($handle->status < ProcessStatus::ENDED && \is_resource($handle->proc)) {
        fwrite(STDERR, "DESTROY" . PHP_EOL);
the function destroy() is called by that if() is never entered
actually no
 
wait a minute
I've just had a thought
 
sounds painful
 
Wes
11:11 PM
i'm trying to poke it but nothing
 
I have a theory @Wes but I'm going to have to look at it tomorrow, I will end up sitting up til 4am if I do it now
 
Wes
lol :D
ok, let me know
 
it would be worth debugging the other test to see if you can find a leak there
i.e. something that stops the process from being cleaned up, probably a circular ref or a leaky $this in a closure or something
I think it's basically keeping a listen socket hanging around where the other ones don't
but it exposes an underlying bug in the proc wrapper, which is that I don't think there's any enforced (sane) timeout
I think if you leave it for long enough it will eventually pass
but the default windows tcp connect timeout is nuts, like 5 mins or something, I forget
 
@LeviMorrison LOL! That's a nice way to word that.
 
11:28 PM
In fact I should just rewrite the proc wrapper to do it properly, (the winsock way), select() is well known to be a bit fat pile of edge case weirdness on windows, an old ill advised concession to the popularity of berkeley sockets
I'm pretty certain the root cause is going to be an uninterruptible select()
 
Wes
did you write that amphp/process thing? or are you talking about rewriting proc_open in php?
 
the process wrapper, specifically this line
 
Wes
ah yes you did
 
I suspect TerminateProcess() is not interrupting the select()
 
Wes
can't help with that
looks so complicated :B
 
11:32 PM
and that it's because there's a leak which leaves the old listen socket hanging around in the other test
if there's not listen socket, the connects will fail early because of some optimisation around loopback sockets, and skipping the timeout if there's no bind
but if there's a listen socket there but it never acks because the owner process is blocked on the TerminateProcess call, it basically ends with a deadlock
although I think the OS default TCP timeout will still apply, but like I say the default is insanely large
like, several minutes
I cannot even begin to explain that one, IMO socket timeouts >5sec don't really make sense in today's world
 
Wes
it is set to 56k modem mode :B
 
regardless, I think if I reworked it to use the winsock handle-notify stuff it would avoid the problem, because that will process the interrupt properly
 
sorry to interrupt anyone got a minute to spare i kinda have a rookie question
 
another little oddity of winsock if you are used to berkeley sockets is that (iirc) ACKs are not sent without a relevant syscall from the proc that owns the socket, whereas as *nix will deal with that stuff in the background
(which IMO windows is the one that's correct there, but it does increase the scope for shit like this)
> Don't ask to ask, just ask
:-)
 
i didn't get answer last time i was trying to understand why echoing a line of html in php before your actual html in the same script would throw everything in html <head></head>tag into the <body></body> tag?
 
11:40 PM
sounds more like an unclosed tag to me
oh wait
 
i was told it doesn't matter but it throws my footer off position i wanted to know if there is a walk around to this or should i just remove the relative positioning of the footer?
 
you mean something like this? 3v4l.org/0akiX
 
no like hold on let me get a screen shot
 
it sounds to me like whatever you are doing, you are outputting an invalid HTML document
 
@BobbyAxe probably test it again using curl rather than looking at it in a browser. Browsers will reformat HTML to try to make it make sense if it's quite invalid.
 
11:43 PM
which is basically just going to be "undefined behaviour", browsers will do their best to make sense of it but it will almost certainly be weird, and different browsers will do different things
 
am using the dev tool on chrome
 
use view source instead
dev tools shows you the document tree as an in-memory data structure, after the browser has done it's best to make sense of it
 
got the screen shots how do i put it out here
 
view source shows you the actual HTML string it was working with in the first place
 
okay i try that
 
11:46 PM
@BobbyAxe if you can't work it out, put the source (copy/paste the view source) into a pastebin
screenshots are generally not useful as debugging tools
we need links or source code
 
the source code is kinda big but here is the line i echo in the <?php?> tag that causes the shift
 
it probably doesn't matter what it is, it's more about where in the HTML it appears
 
 $js_user_acc = json_encode(true);
 echo "<input type='hidden' id='js_user_acc' value='".$js_user_acc."' readonly='readonly' ></input>";
it does not appear
 
just do a view source and paste the whole thing in a pastebin
forget the PHP for now, just look at the output
 
its hidden just an info for the java script to process
alright
 
11:49 PM
doesn't matter if it's big, just use a pastebin
that's what they are for...
 
okay hold on
 
yeh so you are doing exactly what I said then :-P
 
Wes
anyway, gn
 
11:53 PM
thats it i shortened it a little the table was rather long
 
you can't put that outside the <body>, it just doesn't make sense
are you trying to pass that value from PHP to javascript?
 
yes
 
OK, you want something like this (1 min)
3v4l.org/ZNjtp @BobbyAxe
actually you shouldn't really do that for a variety of complicated reasons, but for your use case right now it's fine
 
thank you so much, there truly is a right way and a wrong way of doing stuff
 
that means you javascript can just directly access MyNamespace.user_acc without having to mess about JSON-decoding it on the client side
 
00:00 - 19:0019:00 - 00:00

« first day (2833 days earlier)      last day (2115 days later) »