« first day (2323 days earlier)      last day (2628 days later) » 

1:00 PM
brb searching for whip crack noise app
 
:P
 
how did someone get this idea from my head ?
 
ThW
@JoeWatkins do you know if here is a repo somewhere with the source for counter examples from the PHP manual internals section?
 
Fuck this link: stackoverfiow.com/questions/52353/… (NOT so)
 
@ThW I think probably not
^people you wouldn't sit next to on train
 
I'd lean over to use them as a pillow
 
(yes, it looks like a peenor)
 
Anonymous
Does anyone use AWS here?
 
Anonymous
I keep hearing about it 24/7, what exactly is it?
 
1:11 PM
a million different things
 
Cloud services by Amazon
 
Anonymous
Ah, the cloud
 
You can order rain and have it delivered by a drone
 
well ... not really ... AWS is the umbrella they do all their stuff under, amazon web services ... it's how you get products from their database, store stuff on their servers, and compute things with their processors ...
 
Lol Dave
 
1:12 PM
and 999,997 other things ...
 
@DaveRandom Now I picture a drone carrying a bucket of water and just dumping it
 
/me wonders whether people would actually pay for that
 
Anonymous
How does it differ from a VPS, specially with semi-maintained VPS, where you can install applications, migration tools, database monitoring/backup ...
 
Anonymous
I only trust you @DaveRandom
 
!!xkcd balloon internet
 
1:14 PM
 
@samayo well again, it depends on what part of AWS you are using, they probably sell VPS under that umbrella
The mail service (competitor to mailchimp) is also part of AWS
Honestly I have no idea
 
Anonymous
Hmm, the fact that it appears to be very famous is whats bugging me
 
he's referring to elastic compute
 
ThW
@JoeWatkins OK, then I will push my results to github :-)
 
1:16 PM
@samayo It's amazon. They have a pretty much infinite advertising budget. Does mean the products/services are any good. (they might be, I don't know)
Google could really push G+ very hard and you wouldn't be able to escape it, it wouldn't make it useful/good/comprehensible
I don't get why G+ is still a thing, or was ever a thing
 
@DaveRandom if you try a million things and only 5% of them work, you still have 50000 streams of revenue
 
g+ is better than alternatives, but getting people to move to it requires get their friends to move to it first, and so on... adoption is a catch 22
 
I'm always hearing talk of ditching skype for g+, but it never happens ...
have used hangouts a few times though ... not too shabby ...
 
@JoeWatkins right, but it must be costing them loads to keep it going
 
1:21 PM
hangouts is good, works with google voice too
 
They are quite willing to drop services that people use (see also: google code)
 
@DaveRandom they started with the infrastructure of the most used search engine on earth ... anything they shoe horn in costs them nothing really
 
@JoeWatkins yeh but that's a totally separate system really, I've used it before and never had to touch G+ in the process
 
@DaveRandom death of google reader broke my heart
 
@DaveRandom knowing when you are beaten is a good thing ... github/bitbucket beat them ...
 
1:23 PM
I suppose the most staggering thing about google is their reliability, their system is probably in the top 3 most complex and wide reaching on the whole internet and I almost never have any issues with any component of it
 
@DaveRandom Fuck that shit
Doubleclick is the worst system I ever had to work with
It's broken by default and keeps getting worse
And it's the fucking thing that makes their revenue
 
/me is out to get wife from work, lata
 
My misses used to work for them before they were part of Google, apparently the people there were complete fucktards
 
@DaveRandom it's weird, they deployed free city-wide wifi in mountain view and it never worked right... though I guess that's a different kind of "reliable"
 
And it shows
 
1:26 PM
@Ekin Would be cool if you could log those requests either with a wireshark filter or by setting up Nginx or something in between.
 
@PaulCrovella pffft, wifi, show me one deployment that ever worked right
@PeeHaa I have never had the displeasure
 
@DaveRandom University wifi works mostly fine for me.
 
@DaveRandom I don't just mean it kinda sucked, I mean it was running for years and was literally unusable the entire time.
 
!!sayf %1$p %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s %1$s / PeeHaa
 
@DaveRandom I'm almost daily in contact with their support because their system is broken
 
1:27 PM
@DaveRandom printf() failed, check your format string and arguments
 
No QA whatsoever
 
oh right
 
@PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa
 
hmmm
 
lol
 
1:28 PM
lol
 
should probably not be like that :-P
 
I see no problem
 
I count 16 though :P
 
@PaulCrovella yup, my typical experience of wifi
@kelunik Is your university just you in a lead-lined vault?
 
@DaveRandom I've had better wifi experience at conferences
 
1:31 PM
@DaveRandom Dunno what that means, but just because it works for me, doesn't mean it works for everyone. :P
 
@kelunik that's a major component of it I think, all implementors test their implementations against a subset of reference devices and if you have any other device, you are probably screwed
The 5GHz lie is a lie
The 802.11ac lie is a lie
 
More than 50% of all devices use 5GHz there.
 
Anonymous
It really sucks Google Drive has no way to ignore file like .gitignore
 
Anonymous
/headaches
 
It's probably due to mobile phones supporting it.
 
1:34 PM
My experience of WiFi has been for that last 5 years, pretty much without exception: turn WiFi on, fiddle with settings for 10 minutes, maybe get a connection, get pissed of with it being unreliable and having drained 50% of my battery after 10 minutes, switch to LTE, actually get stuff done
That includes networks that I have spent literally days setting up myself in such a way that all the tooling tells me everything is perfect
</rant>
 
do we migrate ssl cerificate from old server to new one,or new Certificates are buyed?
 
Depends, what's it issued to, the server or the domain?
 
@DaveRandom Currently my network manager is broken, have to restart it every time my notebook awakes from sleep.
 
Also check T&Cs of issuing CA
if it's even remotely sane it will be issued to the domain name and you will be allowed to move it freely between servers
I use Windows so all my things work perfectly all the time*.
‌ ‌
‌ ‌
‌ ‌
‌ ‌
‌ ‌
* indicates bare-faced lie
 
1:39 PM
what is wrong with this code?
<?php
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);

include 'dbconfig.php';

session_start();

if(!isset($_SESSION['user_session'])){
	echo "you are not authorised to view the page";
}else if(isset($_SESSION['user_session'])){
$stmt = $db_con->prepare("SELECT * FROM tbl_users WHERE user_id=:id_op");
$stmt->execute(array(":id_op"=>$_SESSION['user_session']));
$row=$stmt->fetch(PDO::FETCH_ASSOC);
echo json_encode($row);
}
?>
 
@PaulCrovella HADOUKEN!!
 
it should be ok but google reports a parse error
 
@Riccardo indentation, for one
Pointless elseif checking the inverse of the if
 
@DaveRandom I'm sorry for the lack of indentation but I'm talking about something else
google says that there is an unxepected token y
 
And I'm telling you that if you use a uniform approach to indentation you won't get parse errors
 
1:42 PM
and that should be a parsing error
oh this is damn interesting
what do you mean by uniform approach could you explain me?
 
Also read the error message, it will at least tell you what line it is on
 
I read it on google
the line is the echo in the if condition
 
Also based on that error message you said, the problem is that you pasted that code into a console or something and quotes are not escaped properly
 
if the sessios is not set I echo a string
I didn't pasted the code into a console
 
@DaveRandom oh,i didn't it can be issued for server through thanks :)
will get back after asking ..
 
1:44 PM
@Riccardo notice that the thing immediately before y is a double quote, the first double quote in the script
I suspect that if you just swap all your double quotes for single quotes then whatever you were trying to do will work
 
you're goddamn right
 
Where are you pasting the code?
 
@DaveRandom thank you man
I added that echo after typing the code and I forgot to use single code as I did in the rest of it
you're so right man
 
well yes but that makes no sense
either should work
which means you are doing something weird with the code somewhere
copy/paste or something
 
what does make no sense
I can't get at what you mean
i still have the same problem
<?php
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);

include 'dbconfig.php';

session_start();

if(!isset($_SESSION['user_session'])){
	echo 'you are not authorised to view the page';
}else if(isset($_SESSION['user_session'])){
	$stmt = $db_con->prepare('SELECT * FROM tbl_users WHERE user_id=:id_op');
	$stmt->execute(array(':id_op'=>$_SESSION['user_session']));
	$row=$stmt->fetch(PDO::FETCH_ASSOC);
	echo json_encode($row);
}
?>
i now have only single quotes everywhere
 
1:51 PM
The error you are describing is not a php error
 
this php script is called on an ajax request
 
PHP errors are "Parse error: Syntax error: unexpected T_WHATEVER"
 
to check the user session
 
3v4l.org/ck3jH no syntax error
Which means that you are doing something strange somewhere
are you trying to execute PHP as Javascript or something?
 
no i'm not all i'm doing is an ajax request which opens that php to check whether the user who's trying to access a page is authenticated
that's it
 
1:54 PM
you're treating the response as json, but when the session isn't set you're not sending json
 
Oh that's what it is
 
what am I sending when the session is unset?
a string?
while the javascript expects a json anyway?
 
Yes, and not one that the browser can decode as json
echo json_encode('you are not authorised to view the page'); although that probably will just result in another error depending on how your JS handles it
 
oh thanks
so basically I have two json encodes
one for the if and one for the else if
am I right?
 
$result = [];

if (!isset($_SESSION['user_session'])) {
    $result['success'] = false;
    $result['error_msg'] = 'you are not authorised to view the page';
} else {
    $stmt = $db_con->prepare('SELECT * FROM tbl_users WHERE user_id=:id_op');
    $stmt->execute(array(':id_op' => $_SESSION['user_session']));

    $result['success'] = true;
    $result['user_record'] = $stmt->fetch(PDO::FETCH_ASSOC);
}

echo json_encode($result);
 
1:59 PM
@kelunik I'm now running tcpdump over ssh and wireshark listens on the pipe
 
I suggest something more like that
 
Could do the nginx thing instead but I'm 5 hrs late to finish a project sooo, not now :(
 
So that in JS you can just check
 
user7172542
Is it possible to add up all of the values in one column returned from one statement using PHP?
 
if (!result.success) {
     // handle error
    alert(result.error_msg);
} else {
     // handle success
    this.user_record = result.user_record;
}
!!docs array_sum
@Dan ^
or if you have a multi-dimensional struct, array_reduce or just a foreach loop
 
user7172542
2:02 PM
I have a while loop from the statement. Can I do it with that?
 
Evenings
 
@DaveRandom should I json.parse the result array in javascript?
I'm asking it because an undefined error is returned
and it is concerned with the result array
 
@Dan Do you need the values on their own? You coul dask the DB to sum them for you
 
so I think I should parse the xhr.responseText the array I'm using in javascript
something like this
var result =[]:
result=JSON.parse(xhr.responseText);
am I right?
anyway I fixed the problem thank you @DaveRandom
 
2:19 PM
Don't google sh fastlane "screenshots:false"
 
wth
should probably remove that one
 
3 messages moved to Trash
2 messages moved to Trash
 
Anonymous
hmm didn't know that 'so team' thing was gone till now stackoverflow.com/teams
 
We had a R11 team
 
Is there a better term for just webapplication?
 
2:33 PM
steven
 
bob
 
pieter
 
!!poop
 
💩
 
!!dave
 
2:34 PM
@DaveRandom should work on DNS lib.
 
!!peehee go away
 
@PeeHaa should be pitied.
 
every god damn time
 
:P
 
:P
 
2:34 PM
@DaveRandom the poop on command thing is what ultimate sold that idea, wasn't it
 
Your point is?
 
I'm asking
 
Honestly love the bug reports like blog.cloudflare.com/…, I feel like I learn a bunch of new stuff every time I read one
 
I deny all knowledge of the subject matter and the question
 
long way of saying "yes"
 
2:36 PM
I didn't say that, you can't prove that I did
 
Anyone know what the relative overhead of running a debug build of PHP is compared to release?
Getting some zend_mm_heapcorruptions in prod, but no stack traces
 
@Ekin Thanks, hope you get one of those requests!
 
Yeah, I do hope as well :-)
 
Anonymous
@PeeHaa how hard is it to make a jeeves plugin
 
@samayo Easy
Depending on what you want it to do
 
@PaulCrovella I would love stuff like that because it looks like it would also allow me to pipe command to users
!!tell paul !!friday
Or at least somewhat related to it
 
it'd open that kinda thing up, yes
being able to make smaller plugins that can be composed together in aliases for more complicated commands
 
//TODO: make Jeeves POSIX compliant
 
basically
 
found this when I randomly googled cmd=%63%64%20%2
 
2:57 PM
you try it yet?
 
Anonymous
@PeeHaa Something easy, just to play around with it.
 
> The HTTP response was invalid
Is that broken requestable or broken gitamp?
Both are possible :P
 
just when you thought an umbrella cannot get better: suprellapro.com
 
have a nice weekend all! I'm out!
 
looks like we hit it
Yes I got the same exception
 
3:03 PM
\o/
 
@Ekin Just that doesn't result in any error.
 
@Naruto later
 
It results in a 307 it seems
 
3:05 PM
Also the exception doesn't happen on all of them
 
I should rewrite that thing probably
 
@Ekin What's the code parsing the body?
 
@kelunik You mean where on gitamp we do $response->getBody() and decode?
 
@Ekin yup
 
3:09 PM
@Ekin That's a response body. :P
 
yeaah sorry, kinda dealing with three things now
@PeeHaa halp?
 
yes ma'am
What you need @kelunik?
 
Wait, I thought it would crash on a POST body parsing, but that doesn't seem to be the case.
 
AFAIK it crashes somewhere inside aerys
Even before it reaches gitamp
 
Anonymous
@Gordon I love how they are trying very hard to sell their product
 
3:18 PM
@kelunik Can you at least repro it?
 
@samayo the class attribute on the only xx left says fakenumber :D
 
@PeeHaa Nope.
 
ugh
 
ugh I forgot about that one
Yes prolly related
> Yeah agreed. For now I would leave it on Intermediate for the project. And by the time stupid user agents died I am confident I have recompiled curl on my machine :)
Also that was a lie :P
I will just drop artax in there I guess
 
3:26 PM
yeah, according to ssllabs.com/ssltest/analyze.html?d=gitamp.audio y'all are only using tls 1.0 and up
 
yeah
 
3:42 PM
grumble grumble, mechanics are wankers, grumble grumble
I've had enough of today, sleeping now ...
 
@DaveRandom @brzuchal I feel sort of silly right now: github.com/php/php-src/pull/2330
 
3:58 PM
K found it
@PeeHaa Only when it's HTTP 1.0 and the POST is to http://gitamp.audio/command.php
 
oh sexy
cc @kelunik
 
@Ekin Can you reproduce it manually?
 
Yeah I tried it with requestable now using HTTP 1.1 and no exceptions
 
requestable is kinda borken I think :(
 
Even when it's HTTP 1.0 and the POST is to http*s*://gitamp.audio/command.php it doesn't throw
 
4:01 PM
oooh http
 
Aaaand I'm back to skype calls for now
 
:(
 
Morning.
 
4:16 PM
moin
 
Infinity - Infinity = NaN
 
@Tiffany This make my inner mathematician cringe
but of course it's not a number
infinity - infinity 1)doesn't make any sense 2)the result depends of the context
take lim x->+inf 2x - x
we have +inf - +inf, which doesn't have a result
But we can simplify to lim x->+inf x, which resolves to +inf
(this was an easy example, more useful examples use power and exponentiation)
</going mathematical>
 
4:38 PM
It's what javascript says
I'm easily amused by stuff
 
@PaulCrovella yup.
@PaulCrovella I've watching this probably a million times and it still makes me laugh.
 
I lose it at watman
 
I started using "wat" as an exclamation over wtf shit
same pronunciation
 
4:47 PM
@Trucy It makes me cringe a little too, especially if you make it algebraic - i.e. x = inf. then x-x should == 0.
I can tolerate it by reminding myself that inf + inf == inf
 
@Leigh this is what was getting me. Algebraically, the answer would be zero. However, we could assume that infinity(1) is a very large number, and infinity(2) is a very large number + 1. The engine can't translate that.
but if infinity == infinity, then infiinty - infinity should equal zero
 
@Tiffany that, so much
 
wat that
 
@Tiffany but infinity is not a number, it's just a very specific... not-number
 
you're blowing my mind
I've only successfully finished calc 1
 
4:52 PM
I have no idea what that course would entail
 
@Ekin @PeeHaa the following request doesn't reproduce any error locally.
POST /command.php HTTP/1.0
content-type: application/x-www-form-urlencoded
connection: close
 
I think infinity is dealt with in calc 1, but I still grasp it as a number, just a very large number that can't be quantified
 
!!poop
 
💩
 
4:53 PM
@PeeHaa why
 
Nearly everything useful (beyond the basics) I've learned about maths, has come from programming, post-maths-studies
 
> @Ekin @PeeHaa the following request doesn't reproduce any error locally.
 
@PeeHaa On gitamp.audio I get a 400 without host header and 307 with host header.
 
@PaulCrovella I love her videos, some day I'll watch a full one, when I'm not at work.
 
lemme try to find logs
ok @kelunik
on gitamp when I run this I can repro
 
4:58 PM
o/
 
> Feb 24 19:58:41 GitAmp-Ubuntu php[6184]: [2017-02-24 16:58:41] critical LogicException: Cannot update resolved promise in /opt/gitamp/vendor/amphp/amp/lib/PublicPromisor.php:28
Feb 24 19:58:41 GitAmp-Ubuntu php[6184]: Stack trace:
Feb 24 19:58:41 GitAmp-Ubuntu php[6184]: #0 /opt/gitamp/vendor/amphp/aerys/lib/Server.php(560): Amp\Deferred->update('cmd=%63%64%20%2...')
Feb 24 19:58:41 GitAmp-Ubuntu php[6184]: #1 /opt/gitamp/vendor/amphp/aerys/lib/Server.php(536): Aerys\Server->onParsedEntityPart(Object(Aerys\Client), Array)
yo @Saitama
 
@PeeHaa What's the exact request in plaintext?
@PeeHaa Do my requests reproduce it, too?
 
> Feb 24 19:58:41 GitAmp-Ubuntu php[6184]: [2017-02-24 16:58:41] gitamp.DEBUG: Incoming request {"method":"POST","uri":"/command.php","headers":{"host":["gitamp.audio"],"accept‌​":["/"],"content-type":["application/x-www-form-urlencoded"],"connection":["clo‌​se"],"content-length":["208"]},"parameters":[],"body":"[object] (Aerys\\Body: {})"} []
1 sec let me make some room in the log so I know it's you
 
Just sent a few.
 
Can you try it once more please?
 
5:00 PM
@PeeHaa Done
 
Nope that works
It's to do with the body I guess
> Feb 24 20:00:18 GitAmp-Ubuntu php[6184]: [2017-02-24 17:00:18] gitamp.DEBUG: Incoming request {"method":"POST","uri":"/command.php","headers":{"host":["gitamp.audio"],"conten‌​t-type":["application/x-www-form-urlencoded"],"connection":["close"]},"parameters‌​":[],"body":"[object] (Aerys\\NullBody: {})"} []
 
I'm sending the exact body you gave me, it shouldn't be a NullBody.
Ah, wait...
 
23 hours ago, by Saitama
hey @bwoebi how do you figure out the mime type of a string passed to $response->end($str) in Aerys?
since he is not present right now, could somebody else tell me? :D
 
@PeeHaa Did anything change now?
 
yes that one breaks it
 
5:04 PM
last three has "body":"[object] (Aerys\\Body: {})"} []
 
Ok fine, can repro locally now.
 
\o/
 
POST /command.php HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Host: gitamp.audio
Content-Length: 207

cmd=%63%64%20%2F%76%61%72%2F%74%6D%70%20%26%26%20%65%63%68%6F%20%2D%6E%65%20%5C%5C%78%33%36%31%30%63%6B%65%72%20%3E%20%36%31%30%63%6B%65%72%2E%74%78%74%20%26%26%20%63%61%74%20%36%31%30%63%6B%65%72%2E%74%78%7
Missed sending the content-length before.
 
The moment it has a body. Any body it borks
 
5:07 PM
tnx :)
 
Tried to dump the promise, results in a never ending story. :-)
 
:P
 
:D
!!end today
pleeeease
 
It fails with a string(21) "Aerys\ClientException" string(0) ""
 
hmmm that's not useful
 
5:09 PM
@kelunik I totally read that as Died to Trump the promises
 
@kelunik Http1Driver? or is that on BodyParser or something
(ugh I actually meant to ask whether you know where you get to see the ClientException)
Ah, Server.php
 
umm.. what should I rename config-sample.php to?
in gitamp I mean
 
steven.php :P
 
5:17 PM
@Ekin k :B
 
Ok, I know why it fails.
 
yay
 
^++
 
The request handler is invoked as soon as all headers are received. The connection is closed for HTTP/1.0 connections as soon as the response is finished. At that time, the request body is not even finished streaming yet.
 
async is hard man :P
 
5:22 PM
So it doesn't actually matter, it will not happen on legitimate requests.
 
@kelunik What do you mean by that?
 
@PeeHaa If you expect a body and consume it, it won't happen.
 
@Trowski No problem, it was satisfying I could help somehow, maybe next time :)
 
1 message moved to Trash
 
@kelunik Ah
So most likely hit by it for 404s
 
5:28 PM
@brzuchal I feel silly because I actually committed the fix without realizing that PR was open.
 
@Trowski @PeeHaa @Ekin github.com/amphp/aerys/pull/134
 
hmm... tempted to implement this in php... (basically xquery but for json)
 
@kelunik yay
 
:-)
 
Anonymous
5:44 PM
@Leigh why can't you just be happy for me?
 
Evening
!!dad
 
I used to hate facial hair, but then it grew on me
 

« first day (2323 days earlier)      last day (2628 days later) »