« first day (2470 days earlier)      last day (2704 days later) » 

11:00
cool
Updating phpstorm people. All fingers crossed
Anonymous
I've got two up my nose, but i've crossed the rest
@PeeHaa I have been waiting for this one for sooooooo long
global composer installation. fucking finally
tnx. It helped
@DaveRandom I don't use composer in it :P
I have a perfectly fine shell powershell
You should at least configure it for the project, it makes the automatic directory config much more... automatic
you don't have to use any of the GUI shit
11:04
What do you mean by "automatic directory config"?
I like automatic
In theory this new version will apply namespace changes to composer.json automagically as well
@PeeHaa As in it keeps the "ignore directories" optimally configured for performance by itself
So it changes the psr-n autoload directive in the config?
In theory
Oh. I don't ignore directories
I haven't actually tested that yet
11:05
:P
Index away \o/
@kelunik well, yes, unless your file path starts with a dash
Also supposedly this version is finally going to understand T-SQL MERGE queries
@bwoebi I guess you have a problem then anyway with the CLI binary.
@DaveRandom I am just hoping for better syntax support
@kelunik does CLI binary not support the -f parameter for that case?
11:07
generators are kinda buggy now
ooh shiny it automatically syncs the php version with composer.json as well @PeeHaa
oooooh
Damnit
@bwoebi It says:
I just manually told it what to use before the update
args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin
11:08
I feel robbed now
But I think it really only works when the first arg starts with a -.
@kelunik I think it's php -f -startsWithDash.php -- arg1 arg2 etc.
This entire thing ^ is only an issue on nix I assume?
@kelunik yes.
Whatever. I will just test
11:11
@PeeHaa doesn't the windows php binary use - too?
checking :P
ah yes of course...
nvm me
@DaveRandom you got a dm
> Why on earth should you need to use HTTPS for a website that does not deal with personal information? Nothing on that website can possibly be classed as "sensitive" so what would be the point?
wat
punch him/her
you could probably guess who said it ...
11:14
Fucking ignorant people should just stfu
@PeeHaa Lester...
try again
he's still on the list?
Fucking moron
Anonymous
@JoeWatkins honestly, I can't fucking stand that guy
11:14
marston
He should just go fuck himself
Seriously
Anonymous
condesending prick.
If you have no clue what you are saying just get lost
All that stupid noise
such stupid, so noisy ...
Anonymous
His behaviour over class names tied the knot for me.
11:16
It's just a waste of everybody's time
Fuck this. Why am I annoyed
It's friday
It is right?
!!friday
Good. tnx
Anonymous
An old lady just asked me that... 'What day is it today?!' - I presume she's time travelled.
Anonymous
11:20
I told her it was Thursday.
Anonymous
i.sstatic.net/N6LXM.png @PeeHaa jealous?
The new developers are doing some actual work it seems
And yes totes jelly
you should tell them it's friday
if telling them with words doesn't work, may I suggest a lump of wood ...
o/
Improve "ErrorException: Trying to get property of non-object" error – #74963
11:30
hello
@AbdulSamad is it me you're looking for?
@AbdulSamad Cause I wonder where you are
@AbdulSamad and I wonder. what you dooooo
@AbdulSamad Are you somewhere feeling lonely?
@AbdulSamad or is someone loving you?
@AbdulSamad tell me how to win your heart!
@AbdulSamad for I haven't got a clue
@AbdulSamad But let me start by sayin..
hello
really ?
11:35
omg
@AbdulSamad I love youuuuuuuuuu
5
<4
<5
11:36
<>4.5
what is this randomness we are straying into?
it's...
!!friday
pipeline |>
plz
when you come to R11, you could be serenaded by the R11 choir ... you just have to say the right words ... it's magical ...
11:37
haha
Very much
That was majestic
when you come to R11, you could be serenaded by the R11 choir ... you just have to say the right words ... it's magical ...
@FélixGagnon-Grenier o/
ha
nice
We seem to have different definitions of "nice"
it could've been perfect, if not for that stupid https
user924016
so anyone used uuid as primary id's instead of incrementing ints
11:42
I have used it a couple of times
People that have to deal with multiple systems with possible collision between entities, otherwise I don't know of a real need to do so @RonniSkansing
user924016
how did it work out, thinking in terms of perf with foreign keys
user924016
All the data is going to be encrypted so I would like the identifier not to reveal anything as well
Depends on the db engine
Also it's more about space than perf
Unless you reeeally need speed
Itsnotwhatshesays.gif?
user924016
11:45
okay
In which case I suggest the use of amphetamine
user924016
heh
user924016
well I guess innoDB and it will all work out
How many records are we talking about
?
user924016
like 1-10 mil
user924016
11:46
in each table
That may become a problem considering mysql
user924016
okay, I had a feeling so
If it's just about hiding everything, can't you use both a serial and a uuid?
4-byte vs 16 ?
Also might want to poll @Ocramius. They guy sleeps with uuids
user924016
11:49
@PeeHaa sure I had considered using both, just seemed counter intuitive
yeap. agreed
user924016
but yea internally I could use the ID's and only expose UUID
user924016
thanks for the input
If I know that a mysql column is going to be unique (ie username) should I put a unique constraint on it? Or, does it not matter?
Yes you should
11:53
Okay cool, I'm not sure exactly what it does (other than making it an index)
Thanks ^^
It put an actual constraint on it
So no matter where the data is coming from (sql cli/gui, import, webapplication) it will never fuck that up
That's a relief. I guess I understood what the constraint did but not what making it an index did.
Do multiple indexes increase query speeds?
It depends on whether they are actually used :P
You can check the execution/query plan for your queries
Googles query plan
That should give you an idea what indexes it uses and what can be improved
11:56
Ohh I didn't know about that, thanks for the tip
Anonymous
!!wotd
al desko: (of meals or eating) at one's desk in an office.
unit testing seems not very easy...
thanks ..
12:05
oh, lol, didn't actually notice your previous line
I was just posting a lecture, that I started watching, whole eating
:P i added it to watch later list
read: never
I am trying to watch that six hour Greg Young lecture for about 5 years now
video lectures are simply not time efficient enough for me
give me a transcript
Could be worse
Could be just slides
at least I can click through them at my own pace
 ChildClass extends ParentClass { }
when i am trying to test Childclass i get ParentClass not found
12:17
yes click all you want through useless slides that tell you nothing :P
@Linus Include your autoloader
I usually do something like this and this
@Alesana more indexes slow down update&insertion speed
@PeeHaa let me try this once.
has any one here ever used var_dump in a test case :|
Why would you do that?
12:21
@Vamsi I did sometimes, but you can easily use assertions instead
hard to forget old habits
@JoeWatkins ping?
@DaveRandom pong
@Gordon s/can/should/?
I can't think of a use case where you want to dump stuff
@Sjon Oh that's interesting, now I don't know what to do. I will test speeds and see if it's worth it, I know I'm not too worried about multiple usernames as of now because one script creates usernames and it checks.
12:23
Just add a unique index on it...
@Alesana I agree with @PeeHaa; if you have unique usernames; add a UNIQUE; but I meant; don't go adding indexes everywhere 'because it makes things faster' :)
to guesstimate expected Value
@JoeWatkins so I imagine the answer to this is going to be way more complex than either of us have time for right now but... I am writing a multi-threaded program in C. There's very little data that needs to be shared between threads, but one thing is when an thread ends with an error and needs to pass a string error message back to the main thread. How does one go about doing this in such a way that if two threads end with an error at the same time they can both individually report?
@Vamsi how does dumping stuff help you instead of assertions?
Oh I wasn't doing that, I was just being aware of the fact that that adding UNIQUE to columns also indexes that column
12:25
@DaveRandom the char* pointer you were going to use to store the error for passing back to parent thread, make that a linked list, protected with mutex ...
@Alesana ah, okay :)
@PeeHaa I dont care for can or should in this case. it's obviously for debugging. whether you abuse assertions for that or use var_dump doesn't matter. can just as well use a real debugger instead. whatever helps
@Sjon Thanks for the tip ^^
@PeeHaa use var_dump to fix an expected value
12:25
So not actually writing tests with it/
@JoeWatkins ah right yes that will work nicely, thx
I see
well yes in that case you can dump it, but still you have the failing test which already tells you the value
is lxr.room11 stable and suitable for linking from 3v4l?
@Sjon Nobody knows, it's a new server.
if it goes down, you can whip @DaveRandom ...
12:30
time to find out ;) lxr.php is down anyway so it doesn't get worse
@WesStark
user image
9
lol
don't you know what we do to people who post images in here @rlemon ?
we torment them, immediately I can spot 1000 things wrong with the image ...
I know I wont be using that as a logo, that's for sure
it's a german joke, that's the main issue
12:36
we recently drove wes to the edge of reason, because he posted an image ...
jokes on you, I'm already insane
@Sjon Crucially, I now have a virtualbox VM that is backed up nightly so if it does go down I can re-deploy it just by shoving that VM in a new container
@DaveRandom backups are awesome
12:51
@rlemon this is so hilarious
https://t.co/LLah07V7Rw
13:05
@PeeHaa thanks little progress \o/ will figure out rest.
\o/
@DaveRandom halp
Anonymous
@DaveRandom halp
Anonymous
see, responds to me.
:(
I have this $process = new Process('"php" "D:\Web\async-password\bin\password_hash.php" eyJwYXNzd29yZCI6Im15IHBhc3N3b3JkIiwiYWxnbyI6MSwib3B0aW9ucyI6eyJjb3N0IjoxNH19');
Which uses amp process, which uses proc open
However proc_open gets confused by the command on windows
Any idea how to fix it?
13:17
you want a helpful answer? use unix :-D
Still waiting for tha useful answer :P
ha! Got it. Thanks for nothing @DaveRandom \o/
shouldn't those backslashes be escaped ?
Wrapped the entire command in another set of quotes
@PeeHaa wat
@JoeWatkins It's in single quotes
@DaveRandom I kid yo unot
Anonymous
13:18
#windows
@PeeHaa … what?
@PeeHaa why is "php" in quotes?
@DaveRandom That actually is the full path to my binary and escaped using escapeshellargs
whatever, it's friday ...
Anonymous
13:19
@PeeHaa do I have the ability to close bugs?
@PeeHaa does bypass_shell solve it too?
@JayIsTooCommon You need karma first. You can get it by partching docs. hint hint
Anonymous
ughghhhhhghgfoa
@bwoebi sec lemme try
Anonymous
fine
Anonymous
13:21
@PeeHaa in the meantime - bugs.php.net/bug.php?id=74493 can be closed
Did @LeviMorrison pull it in?
> PHP Fatal error: Uncaught Amp\Process\ProcessException: Could not start process Errno: 2; proc_open(): CreateProcess failed, error code - 2
@bwoebi nope
@skoop @krakjoe Odd ... I always try to promote better programming practices instead.
Anonymous
Oof, teresko getting involved good lad
Anonymous
@tereško i love you.
13:24
Can someone help me with this question please? I don't know if there are additional steps (ie. privileges or something) to get an image in the form of a dataurl to save to my server.

https://stackoverflow.com/questions/45142159/todataurl-saving-the-result-of-a-scribble-to-a-png
@Jimbo I'm just getting sick of all that virtue signalling
@JayIsTooCommon <3 cc @LeviMorrison
I think it empowers people who are assholes but are of their select groups to be more assholey
Anonymous
You'd think they'd have the ability to support diversity without a prop.
I identify as a meat popsicle
13:28
@PeeHaa out of interest, does new Process('your command without extra quotes', null, [], ['bypass_shell'=>true]) fix it?
:P
5 mins ago, by PeeHaa
> PHP Fatal error: Uncaught Amp\Process\ProcessException: Could not start process Errno: 2; proc_open(): CreateProcess failed, error code - 2
"instead" in that sentence makes you look like an asshole
@PeeHaa oh
well that's fucky and weird
hang on, I actually have to docs for CreateProcess open in one of these tabs somewhere
I guess we just can always extra wrap on windows?
@DaveRandom k
yeh but that's poo
13:29
It is
fwiw from the bug reports it seems all other means of executing stuff does work
ERROR_FILE_NOT_FOUND
(is what 0x02 is)
interesting
lemme give you my full command
ugh wait. gimme some. I am confusing myself now :P
$process = new Process('"php" "D:\Web\async-password\bin\password_hash.php" eyJwYXNzd29yZCI6Im15IHBhc3N3b3JkIiwiYWxnbyI6MSwib3B0aW9ucyI6eyJjb3N0IjoxNH19', null, [], ['bypass_shell'=>true]);
Maaaybe it does make sense because it's bypassing the shell it doesn't have access to PATH?
Let me try to full path to the binary
Yep that's it
That's the exact command?
        $process = new Process('"' . PHP_BINARY . '" "D:\Web\async-password\bin\password_hash.php" eyJwYXNzd29yZCI6Im15IHBhc3N3b3JkIiwiYWxnbyI6MSwib3B0aW9ucyI6eyJjb3N0IjoxNH19', null, [], ['bypass_shell'=>true]);
That one works
The one with just php doesn't
Which makes sense I guess
Right?
I cannot repro
13:37
To: [email protected]

Dear security

From the news, I heard that your company is looking for a supplier of industrial automation products.
Sorry for you
> the data is invalid
or
Anonymous
@PeeHaa i can't remember, after saving the xml, what do I do?
> the data are invalid
?
Anonymous
13:37
the first
Depends :P
oh waut
yes
singular
What command do you do @DaveRandom/
@PeeHaa var_dump(getenv('PATH')); please
Anonymous
help me you drunk.
What command do you do @DaveRandom?
So many different things at once :P
in what context?
13:39
Left hand side under WIP. Rightclick your thing and submit patch for review @JayIsTooCommon
kill -9 $(pidof @JayIsTooCommon) probably
pkill -9 jay
pkill -9 all
kill jay
13:40
basically @PeeHaa are you sure that php actually exists in the %path% of that process?
not a command, reccomendation ...
Anonymous
@PeeHaa ok done, merge it quick
because I cannot repro, and that's the only thing I can think of
Anonymous
quick, do it now @PeeHaa
piiiiiings
Anonymous
13:40
why is everyone killing me?
why is everyone killing me?
Anonymous
@PeeHaa running out of time.
Logging in
Anonymous
13:41
@PeeHaa tik tok tik tok
You picked the wrong one :P
Anonymous
wat
Pick his last suggestion
And add the example :D
Anonymous
The example is already there? And that was his last suggestion
Anonymous
Eh
13:43
well, I got nothing
@JayIsTooCommon wat
1 sec
Do you have the bug link for me?
o/
Anonymous
fappening o/
> Now that you mention it, I'll agree that the word "missing" is awkward here as well. How about, "Returns an array containing all the entries from array1 whose keys are absent from all of the other arrays."
fapore o/
Anonymous
13:44
oh, comments.
Anonymous
fuck sake
Anonymous
His example code is already there though?
Anonymous
oh I see
Nope. The example only has two arrays
Anonymous
13:45
Right, shut up. doing it now
<3
@DaveRandom Oh well. If you haven't got a thing we are doomed on the windows side. I will just use absolute paths and bypass them shells
It's just finicky for windows users, but I don't see a sane way to fix it either
Anonymous
We don't need <?php in examples.. do we?
We do both open and close iirc
@JayIsTooCommon normally yes. Having the example be complete runnable code is good.
Anonymous
alright
Anonymous
13:49
done @PeeHaa. Quick quick
@JoeWatkins I added it to drive the point home. Being subtle on internet is a loosing proposal.
Can you keep the first example. And add another example instead :)
Anonymous
omd
oh my dad?
:P
Anonymous
13:54
@PeeHaa they both have the same output though?
Remove on item from the first example so that the output differs maybe? Dunno
Use your best judgment
Oh god
@PeeHaa does it work if you remove the quotes from around "php"?
yes it does
OK then I found the reason why
wait
with bypassing shell you mean?
13:56
either
with just plain ol proc open with php quoted it just works
Gonna try now with ze bypass shell
yeap. works in both cases
the TL;DR is that Windows is retarded
Shocked
this is basically emulating behaviour from Windows <2000
ugh lol
13:58
The relevant passage is "If /C or /K is specified" and about 3 paragraphs after
it takes a lot of thinking about and is almost incomprehensible anyway
basically there's not a lot we can do about it

« first day (2470 days earlier)      last day (2704 days later) »