« first day (912 days earlier)      last day (4261 days later) » 

14:00
Well I just did the test I hashed the pasword test 2 times but i have 2 different hashes
@Duikboot Drop the code ?
echo password_hash('test', PASSWORD_BCRYPT);
echo password_hash('test', PASSWORD_BCRYPT);
Sorry, .. if I run this statement
I have 2 different hashes
Probably it's correct that it does that but why?
@Duikboot That's the idea. It will still work if you run password_verify(). They are different because the salt is different.
@MikeB yes
well, sort of
RandomSalt is generated everytime then
14:03
This is one of those rare cases where it's probably better that you just trust that it works rather than wonder how it works. Unless you have a lot of time to put into learning how cryptography and hashing in general works.
@Duikboot That's kinda the idea of a salt
If you use the same one every time you create a hash, you haven't really gained anything over not using a salt
@Duikboot because it's hashing. You want to use verify to see if the password is correct
Ok, thanks for the information so for example for registration I use simply the password_hash method and for loggin in I use the : password_verify method.
the good workflow is get the hash for the user they are logging in as from the database, and then verify that
If I understood any of the salting right, you don't actually compare the password with that in the database directly, as in WHERE username = $u AND password = $p
@ircmaxell haha I think everyone who follows agile answers exactly the same. "Yes.. sorta. The good parts of it anyway..."
14:11
@Jimbo You don't do that anyway ;-) but if you are hashing on the PHP side them obviously you need to select the password string and verify it in PHP, you can't get the DB to execute a PHP function
@DaveRandom Lol, 6 months ago I used to do that :P And then I read something by Anthony and understood otherwise
@Duikboot look at youtube.com/watch?v=eNdW5HWBhG0 by @ircmaxell
user895378
@igorw I ended up having an AWOL anti-computer weekend, but thanks for keeping me posted on your progress. As for the echo statements being slow, yeah, it is kind of crazy. With regard to running out of ephemeral ports ...
@MadaraUchiha #fail
@MadaraUchiha lol that guy on Meta just deleted his question after realizing he posted with the wrong sockpuppet account
@MikeB lol
user895378
@igorw TIME_WAIT sockets can be a real problem under high load. You may want to look into using the sockets extension to set the SO_LINGER option to 0. It's not a good option when otherwise avoidable, but often it's your best bet for high volume serving.
user895378
14:22
Also, if you're suffering from a DoS or DDoS SO_LINGER of 0 is very helpful.
@DaveRandom Does it happen to you too?
It's the first time I see it
@DaveRandom It's been a while since I updated the cv extension. Much props to you (and everyone I'm leaving out) for all the additional functionality
@MadaraUchiha Presumably you clicked before I edited, will investigate properly in a bit
@DaveRandom If you need my help call me to the CV test room
@MikeB Wait till you see what we got coming ;-) (eventually). One of the things we have got now though is auto update so no need to remember to do it any more.
@MadaraUchiha cool, at work at the moment so this evening probably
@DaveRandom K
What about server-side support? You planning on doing that anytime before PHP6 comes out?
@NullCatPonyPuppyPointer Is CatPonyPuppy sort of like ManBearPig? Not sure I want to see that...
@MadaraUchiha :-P
@rdlowrey yeah, especially since the amount of available ports on OSX is so low by default. on a linux VM I can handle a decent amount of load.
14:27
@igorw I love that comment from the libev guy about OSX, "If you ask me the whole thing is a bug..."
@DaveRandom something like that :D
When I declare vars that are the same I tend to do this: $var1 = $var2 = $var3 = array(); for instance to declare 3 vars as arrays simultaneously. Is this bad practice? If so, is there a better way to do this?
@crypticツ Nah, I say that's fine, I do it all the time.
user895378
And they're all going to reference the same array in memory under the hood until you modify them because of PHP's copy-on-write functionality.
^^ also that. Whether that's a good/bad thing would depend on the use case, but if it made any difference at all to a given scenario would be micro-optimisation.
@PeeHaa埽 lol giving the fresh blood a hard time?
@MikeB There was no effort whatsoever in that question. I have checked the source and there was no attempt to format it at all
@PeeHaa埽 Not debating that at all :p
14:37
@crypticツ 3v4l.org/4bH7v you have to be careful. They are all pointing to the same object in this case
One of these days I'm going to do an experiment where I rep-whore one day normally.. then I do it another day where I ignore anything and everything coming from users with 1 reputation (new users)
I was laughed out of meta by suggesting it was more beneficial to me (via rep) to ignore new users entirely because they don't know the rules and garner less net-votes
@iroegbu I'd never do that for object of course because yeah they would point to same object. I just use it to declare empty strings or arrays.
user895378
@MikeB I totally agree with you. Answering questions from user[0-9]+ is a waste of time rep-wise.
Agree, I get tired from the user\d+ ....
I get that ignoring new users is horrible for the community and its image so I admit that I'm acting selfishly.
Maybe we need door greeters
@MikeB :-)
sup dawg
<? echo "I heard you like PHP so I wrote the message in a PHP statement" ?>
user895378
14:46
@DaveRandom + @MadaraUchiha Well that exact example is present in the DOM manual
user895378
so it's possible he took it from the manual without attribution and not the other answer.
@Saturnix looks like xml to me :p
@Saturnix There aint no semi-colon there :P and <?php
Dafuq is the $innerHTML=html_entity_decode(html_entity_decode($innerHTML)); about?
14:47
@Jimbo but it should still work :P
I want it broken. No wait, I want it really broken.
WE HAZ A @NullCatPonyPuppyPointer :D
user895378
Oh wait, I was wrong. The example in the manual is (slightly) different. It's directly copy/pasta'd from the other answer. No, he did modify a line slightly.
@DaveRandom plagiarism is a reason for timed suspension.
@Jimbo trivia: the semi-colon is optional if it's followed by the closing php tag
14:49
@Gordon It's now questionable whether it was plagiarism of the linked answer though, they may both be lifted from a (bad) example in the manual.
@MikeB Yep, but I'd feel dirty... like doing short if / elses with colons
@DaveRandom I'll find the meta question for it. But the mods were vehemently against reporting it at all
@Jimbo i have changed .. :D that was cool but very long and annoying to see in edit section
@MikeB Mmm, it was just the timing (that answer appear one minute after the other question was suggested as a dupe). The but the newer answer as an added bit of flair/brokenness so not really sure what to do.
@DaveRandom I'm with you - I was bewildered by the mods reaction.. still looking for that post
user895378
14:51
I think the "first" answer from 2010 was direct copy of the bad manual example. The "new" answer is a copy of either the bad manual example or the original instance of manual plagiarism with a single line change to address the specific question.
Okay, I'm watching the video on @NullCatPonyPuppyPointer's profile on SOLID. Right. I was just sitting there innocently, and after 2 minutes on pops @ircmaxell and I almost jumped a mile - because he now is regularly invading my screen and should be made illegal.
The whole question is kinda tl/dupe anyway so meh
@DaveRandom must I declare `__clone()` for every property that are references if I want to make objects clonable...
is there any other way to do 'deep' copy of all objects properties in PHP?
Yay random pings
@Jimbo lol
14:52
Oops ^^ Too late, sorry :') But still, srsly.
user895378
Yes, if you want deep copies you'll need to declare __clone() for the classes whose instances you want copied.
@iroegbu No. If you want a copy to hold new child objects instead of references to the originals you have to define a __clone() routine
user895378
@iroegbu There's only one __clone() method. You can't declare one for each property.
@DaveRandom What I usually do (when citing that content is allowed) is blockquote the parts in the answer and add the source. If it's a one time offender, I leave a comment. Repeated offenders get flagged.
@DaveRandom oh... thanks.
14:58
@DaveRandom Can't find it - Probably got deleted. Basically the mods said no ignore the entire problem of copy/pasted answers because a script automatically does it for them. Even though there's a queue for it
iirc it was a question about a rejected flag from Will<diamond> saying "Stop wasting your time with these flags"
user895378
I totally agree with this:
user895378
24 hours ago, by tereško
giving a star should cost reputation
Why stop there? Chat messages should cost 1 rep
user895378
I think a micro-rep transaction of +1 and -1 for receiving/giving a star would be helpful.
user895378
Although people got pissy on meta when I brought it up.
15:01
@MikeB I guess the queue is auto-generated by said script but the things flagged by the script still need to be reviewed by a human, which makes sense
user895378
Apparently the capitalist model is only useful for the main site. Chat should be a socialist free-for-all.
Star the original, not the link please ;-)
6
user895378
1 min ago, by DaveRandom
Star the original, not the link please ;-)
I can do this all day...
:-P
Was staring for irony :)
15:03
funny #not
^ Alright alright :P
I kinda agree on that though
Yay not-doing-any-work Mondays
@DaveRandom this
user895378
When given the choice between finding the source of an unfindable bug and wasting time in chat, there's really not much of a choice at all.
@rdlowrey Heisenbug?
user895378
15:05
YES.
That's the second one I've seen today
@DaveRandom I disagree. All I have to do is figure out enough details about how the script flags a duplicate answer and act accordingly. What if it were as easy as copying/pasting an answer and changing a few words.. I would be invincible because users can't flag duplicate answers and the script already exonerated me
@MikeB Oh no I agree with that, I just meant the fact that it still has to be reviewed by a human makes sense
15:08
@DaveRandom you've seen nothing ;)
@DaveRandom not in that way :) more in the "if you seen only two today, you seen nothing" sense.
You ain't seen nothing yet
@MikeB yes, in that sense
Not a huge BTO fan
sorry i was trying to just help not repwhoring .. i know that will be deleted
@Jimbo Huge pet-peeve (not directed at you, but it happened in that question): If you vote to close something you can't also post an answer
@MikeB Yep I get you. I don't think I've ever done that though :)
I may however add a comment that may help OP before it's closed
@MikeB you can directly tell to me .. sorry for that bullshit behavior
15:22
@NullPointer Hah I thought it was someone else because the names are different
imho, If I feel like leaving an answer to a question I I do it in the comments. Kind of a "This question shouldn't be here but I feel like helping you anyway" attitude
@MikeB that was me actually i am Null .....$var....Pointer
@NullPointer Nah, I see you were answering/responding to information posted by OP after you cast your vote. So I may have jumped the gun. Apologies
Is everyone on edge today because it's a monday? :D
@MikeB np ... :) btw it all because my foolish fingers who typed without my permission ... :D
15:34
At least summer is on it's way! 14 deg in Preston
@NullPointer Stop being helpful! >:O
@Jimbo Hah, living in Florida - Winter was on a Tuesday this year
@Jimbo wait, what?
user895378
Marauding Heisenbug officially smashed. Just call me The Exterminator.
user895378
Two hours to find and delete one problematic line.
15:38
morning
wait, @NullCatPonyPuppyPointer do I know you?
@ircmaxell Aha, I watch a lot of your videos, but I opened one that I had absolutely no idea involved you in any way.. and then I heard your voice and freaked a little
lol, nice. that was an old one
@ircmaxell are you still seeing that name ? i have changed it back to NullPointer
@NullPointer Yes, but why do you have my video in your description? Not against it, just find it slightly odd
15:40
@NullPointer I see a little of both i.imgur.com/Sao4Oyc.png
@ircmaxell may a ask why odd ?
@Gordon In your professional opinion, should stackoverflow.com/questions/5365283/… be deleted? In my eyes its the very definition of a question that is too localized and is very unlikely to help anybody else. But I'm always not sure when voting to delete popular questions
Hello guys
@NikiC he's dead, so it's TL
15:42
@NullPointer Just having a video from someone else in your profile is a little unconventional. Not that I'm complaining (I'm not)
Is there any way of checking if the keys from $array1 exists in $array2? (array one will have an amount of keys while the 2nd one will differ) array_diff_key doesn't do the job :(
@Gordon okay, then:
@ircmaxell i hope it would be helpful for others
@Gordon must have matched then. Maybe someone should start a North Korea related question?
15:43
that's fine. Again, not complaining
@NikiC not sure if it should be deleted. I certainly won't throw my vote in there
@Gordon well, I'm asking specifically about deletion, it's already closed ;)
@NikiC i wouldn't mind if it got deleted. just cannot vote because that would instadel it
@Gordon yes, sure, that wouldn't look nice ^^
what do you think about my new "about" section of my profile
15:45
@ircmaxell I have twice as many gold badges as you!!!
I think @NullCatPonyPuppyPointer's bio is more succinct
@ircmaxell I don't think: that's how I manage to keep my job
I don't have any gold badges.
BADGES? We don't need no stinking badges.
@NikiC I want more Gold...
15:46
@NikiC it will take 10 votes btw
@Gordon ah right, I tend to forget about that
@NikiC i have one more gold badge than you
@Gordon pff
@NikiC and I would have one more if the Operator reference would still be mine
@Gordon mods have an inbound-link tool for questions don't they?
15:48
@ircmaxell thankyou i tried to make it better with attribute You may start form This talk : by Anthony Ferrara (ircmaxell)
@ircmaxell you dont specialize in oop. that's only your sixth highest tag. you specialize in mysql
@NullPointer Nice!
@Gordon Sure I do
@ircmaxell no, you dont. tags dont lie. A bronze badge is not a specialization
Is there any way of checking if the keys from $array1 exists in $array2? (array one will have an amount of keys while the 2nd one will differ) array_diff_key doesn't do the job, neither array_key_exists because I need to compare between two arrays.
@Gordon Look at my blog...
:-P
15:50
@MikeB trying to pry moderator secrets from me again? :D
@ircmaxell no! your blog is tl;dr :)
@Gordon lol
@NullPointer from instead of form, but that's a lot less weird
thanks!
@Gordon I'll cut back, I don't mean to sound conspicuous
@Gordon how about my videos?
@SpecialK. How about using array_keys with array_intersect?
15:51
@ircmaxell ty
@Chris thanks for the suggestion, let me give it a try
As in $result = array_intersect(array_keys($array1), array_keys($array2));
@ircmaxell i'm not the audience for your videos :(
@DaveRandom what mean ?
15:52
Not only am I going to store serialized data in the database, I think I'll use print_r() as a serialization function. #megafail
@NullPointer it essentially mean
@Gordon The next one you might be ;-)
@chris This returns the matched arrays, what I need is if one key from $array1 differ from $array2 then to return false
@SpecialK. Isn't that basically $array1 === $array2 ?
@DaveRandom No, because they will have different amount of keys
OK so you ignore keys that don't exist in both arrays?
15:57
For example, $array1 = array('one', 'two', 'three'); $array2 = array('three', 'four', 'five'); this would return false, while if $array1 = array('three', 'four'); return true
if (count(array_intersect(array_keys($array1), array_keys($array2))) > 0) return false; -- ?
Or if (count(array_intersect(array_keys($array1), array_keys($array2))) != count(array_keys($array1))) maybe? Something like that, I suspect.
@Chris the thing is that $array1 could have only one key, which exists in array2, and then I would like to return true;
So build that logic. You have all the tools, instead of punching holes in my suggestion, figure out how to move from what you know so far to what you need. I don't know your edge cases.
SO should require sign-up with Credit Card. And every time a moderator has to intervene, it would charge 10 bucks.
15:59
You mean like Expert's Exchange? :p
@Chris does EE charge for offenses?
I don't know, just playin'. I assume they'd take your credit card number from you for any reason that you'd like to give it.
@Gordon many student/people doesn't have Credit card
2 (rough estimate)
@NullPointer tough luck for them :)
16:01
foreach (array_intersect_key($array1, $array2) as $key => $val) {
    if ($array1[$key] != $array2[$key]) {
        return false;
    }
}
@SpecialK.
@DaveRandom Thank you, I'll test it now
@NullPointer also , why do you separate "students" and "people" ?
@Gordon Are you gordon at se.com?
@tereško You don't?
16:03
That's O(approximately 2n) if all the shared keys are equal but it's probably the sanest (most legible) way
@Gordon email
@tereško student :mostly <22 years
@MikeB email?
i need help how do i put text above sutbmit in drupal webform anyone?
16:05
:8863438 no. Community Mods dont have an se.com email afaik. only community managers do
Gotcha, nvm
Anonymous
Cool. I need a business card too :)
@NullPointer I still didn't get mine :(
@phpNoOb get from market ..:P
@Gordon btw that looks very cool ...
Anonymous
16:11
It should say something like: ' I will fix all syntax related errors '
@Gordon Do you mind if I contact your privately? If not, how would I do so
@Chris Expert's Exchange really have more crappy question
@NullPointer we dont talk about that here.
Anonymous
Wow, that site is vibrant. I thought it was died long time ago.
dude, everybody wants expertSEXchange
5
16:13
@phpNoOb Really? i think it looks horrifically bad.
@Ocramius lolwt
Bahaha
Does expertsexchange still hide answers unless you're a member? Or if the referrer is Google?
Anonymous
@Necro I know, the design is not that much, but there are more answeres per question that here
16:14
@MikeB they still hide answer
@DaveRandom is that a serious question?
@MikeB I don't mind. You can use the contact form or eMail address on my website. Or maybe hook up via G+ or something. Just as you see fit.
night guys
Have a good evening all :)
@DaveRandom It doesn't work, sadly. Take a look here if you have time: pastebin.com/UMVz2hL4
16:15
@MikeB Yep, they still have the same seriously crappy business model they always did. Only now you can't bypass it by looking at the Google cached version :-(
@MikeB They used to have it set up so you can scroll down and see the answer, it looks like the totally hide it now.
@Gordon your wishlist can make up a whole library!
@Necro Presumably, means "close votes please", though, see
Seems legit. I always trust sources of information that are financially vested in the process of my receipt of that information. College was a blast! I'm going to make an account.
@iroegbu I keep discovering more and more things to read, so yeah, the list grows
16:17
how do you find the time to read that much?
@iroegbu I don't. Otherwise the list would be shorter ;)
@DaveRandom sorry dave. (long day)
@Gordon I have that problem, put that together with the fact that I very rarely get to read anything and it very quickly made my Amazon wishlist a pointless exercise so I abandoned the whole idea :-(
@DaveRandom Yep. Go straight to the question and you get nothing. Go to the question via google
and you get teh answers
@MikeB I don't, I just get "Subscribe now for full access to Experts Exchange and get Instant Access to this Solution" either way
16:20
@DaveRandom eat more food => more potty => more time to read
@Gordon we need a faster way to transfer knowledge from person to person
@Gordon You don't have any children, do you? :-P
@DaveRandom not yet
@DaveRandom Are you saying you had success with this? :P
@Gordon oh...?
16:21
@DaveRandom and not within the next 10 months
You don't have kids and you used the term "potty"? Kay.
@Chris Its peter pan.
@Gordon If possible within the next 11 I suggest you get all the reading planned for the rest of your life in now ;-)
Bah, I read loads of books during nap time, or I read them to my kids. Puts em right to sleep.
@Chris I continue to surprise, hm? ;)
16:24
@DaveRandom @Chris I found the answer myself, finally: `foreach ($array1 as $key => $value) {
if(!array_key_exists($key, $array2)) {
$x = 1;
break;
}
}`
What 2 year old can stand more than 30 seconds of best practices. I can, but just barely, and I have a beard.
@DaveRandom :)
@SpecialK. That's not what you described above...
@DaveRandom huh? :) sorry if I wasn't clear enough
@Chris How do you keep the beard and still have the magic happen>
16:26
@DaveRandom and thanks for the help, really.
lost mine recently because of this tragedy
@Necro What magic is impeded by a beard? That's the source of magic, son, I don't know what you heard.
@SpecialK. :-P np, maybe show more of exactly what you are trying to accomplish next time ;-)
@Chris Yeh that wouldn't work for me, mine would just get up and run off
@Chris its not what i herd, its what happens. With the kids time passes without caring much for yourself i guess and the ms did not marry a dwarf.
@Necro @Chris might be a dwarf, you never know. My money's on goblin though.
16:31
Ever heard of Samson?
"if I be shaven, then my strength will go from me, and I shall become weak, and be like any other man" -- Judges 16:17
McChris Miner of the Mountain homes.
yeah i felt that way
I've been married for 13 years, anyway, so it isn't like she's going anywhere :p
haha, nether is mine. More of a joke really.
Besides the missing beard.
@Chris You aren't supposed to keep them chained up in the basement you know...
Who's writing these rules all the sudden about what you can and can't keep chained in your basement? Isn't this America?
16:34
Commies
Mafia-types keep cutting off my fingers because I owe them money, but rather than just staying out of debt I'd like to rig up a system so I know which finger they are going to cut off next. — DaveRandom 42 secs ago
@Chris I know. They'll be telling me I can't send my children to work down the mines next.
I just used w3schools for legitimate reference material.
Inherited project has framesets, and I couldn't remember how the whole column-width thing worked.
So, when it comes to framesets, w3schools is an authoritative source.
@Chris uhh.
@Chris s/n authoritative//
@Chris have you seen the W3School riots?
@NikiC how come DateTimeImmutable has no RFC no Documentation ?
Hi All .. evening
@Necro the bad thing about w3fools is that they don't bother to update: readwrite.com/2011/01/17/w3schools-responds-to-w3fools
MDN refuses to load. It'll be all right, guys. w3schools can tell me how to resize the columns in a frameset just like MDN can. Lighten up :p
And there's that. I wish google hadn't taken away my search result blacklist, though :(
I still love this description of the :
Its like a PHP shark tank. With frikken laser beams. — Won't Jan 24 '12 at 19:59

« first day (912 days earlier)      last day (4261 days later) »