« first day (2926 days earlier)      last day (2248 days later) » 

01:59
@mega6382 not entirely sure. Maybe didn't test properly after setting DocumentRoot? I did follow what @Tpojka posted on my gist and restarted Apache, but I already had /vagrant/public_html as the web root in the conf file. So I dunno. Maybe it was the restart, maybe browser was cached, maybe I didn't test thoroughly enough after setting up the latest vagrant box.
(latest vagrant box had modified conf file and install bash script before I did the initial vagrant up, so it had to install everything fresh, including using public_html as root and not vagrant/web/public_html)
02:58
nn
03:48
buildconf should output error messages to stderr – #77041
 
1 hour later…
04:49
Hi guys i need one help
In wordpress my network team restrict wpadmin folder with single ip . So my admin-ajax.php ajax call are 403 forbidden for end user. Can anyone tell me the sollution please
Step1: restrict Wp-admin folder file wise . and allow admin-ajax file
or step2 : Any another method is available to ajax call without adamin-ajax file
if any step is possible please guide me to complete my project is really urgent
 
3 hours later…
08:00
single-hearted sincere and undivided in feeling or spirit; dedicated; not reflecting mixed emotions: He was single-hearted in his patriotism.
 
1 hour later…
09:13
morns
09:24
@Tiffany That's the way the cookie crumbles.
Morning.
@Tiffany great
09:43
Hello sensei @tereško !!! How are you?!
closed stdout redirected to another file – #77042
10:45
@rtheunissen So, I think that as far as prior art is concerned, there is a very strong consensus that equality and comparison should be separate operations, but that the latter should be compatible with the former if it is specified.
 
1 hour later…
Wes
Wes
12:12
any idea why it is that way?
maybe some old "changing the array while iterating over it" behavior?
@Wes shouldn't be
I don't see anything fancy going on there. It's just modifying the current element, which has always been quite safe
Wes
Wes
ok, getting rid of it then
doesn't seem overly terrible either though ^^
Wes
Wes
it's not, i just thought i was missing something that wasn't there :B
12:42
moin
Mornings sir
Wes
Wes
@NikiC there might be a phpstan or something inspection that disallows modifying an array while iterating over it
13:14
@StatikStasis yo
13:25
guys any idea what does # sign point to ?
Integer fileld, number maybe?
so you believe it implies to datatype ?
Sometimes, not in your specific question but generally in life.
What is purpose of "column20" in "SELECT column20, mytable.* FROM mytable"? I see sometimes queries like this (and this is not topic of why would * be used). :) Thanks
Wes
Wes
13:46
@NikiC can you have a look too pls? github.com/sebastianbergmann/php-code-coverage/blob/master/src/… this is wrong, right?
it's not covered by tests, if it works it's just because \array_keys($unintentionallyCoveredUnits) === $unintentionallyCoveredUnits
but that's not possible
@NikiC Yep.
Wes
Wes
14:07
sorry for the multiple pings @NikiC so yeah i was right there is a check that disallows modifying an array while iterating over it... how do i iterate on an array copy then? would this foreach((array)$array as $key => $value){} work to avoid any problem?
wonder if that creates a copy or just ignores it
@Wes you could iterate by-ref, but that would leave behind refs
@Wes you end up creating a copy on first modification
Wes
Wes
on first modification of what?
@Wes the array
@Wes That code does look very suspect
It's either doing something very clever, or it's a bug
Wes
Wes
so sorry let me explain better what's going on
@NikiC so equality so should be compatible with comparison is comparison is specified? ie should return 0 for all values that are also considered equal?
Trying to parse what you mean exactly. :)
Wes
Wes
14:15
my theory is this. originally the code looked something like this:
foreach($foo as $key => $void){
    if( .... ){
        unset($foo[$key]);
    }
}
@rtheunissen yes. in an iff relationship
a == b iff a <=> b == 0
Wes
Wes
but there is a static analysis that checks against modifications of the array while iterating it
so that foreach was changed to
foreach(array_keys($foo) as $key){
    if( .... ){
        unset($foo[$key]);
    }
}
my question is whether i avoid any problem with modifying an array while iterating over it by doing this instead
foreach((array)$foo as $key => $void){
    if( .... ){
        unset($foo[$key]);
    }
}
@Wes in this particular case, maybe just rewrite it to use array_filter? (Unless it's performance relevant)
@Wes There is no problem with modifying an array while iterating over it. If you're asking whether that avoids the phpstan diagnostic, I don't know
Wes
Wes
you said "you end up creating a copy on first modification" but i am modifying the original $foo, not (array)$foo, which has refcount=0 (at least in userland)
@Wes $foo and (array) $foo are the same array, initially
(array) $foo will be copied when you modify $foo
But the same is also true without the (array), as far as use in by-val foreach is concerned
Wes
Wes
14:19
just before $foo gets modified, right?
yes
Wes
Wes
ok, so that works for me
no, it works, but it is weird
@Wes i'd go for array_filter in that case. It uses reflectionclass, clearly not perf critical
@Wes imho the (array) casts just to avoid some static analysis warning are bad
Wes
Wes
14:31
i agree, let's see what sebastian thinks about it
@Wes you're also using it in places where nothing is actually modified
Wes
Wes
yes. i'm not sure why it was like that... looks like an autofix from some tool... i have no idea
@NikiC by design or by suggestion?
Wes
Wes
@Tiffany wat
btw, how hard would it be to have actual foreach($iterable as $key => void){}
and of course avoid the call to current()
14:47
@rtheunissen what do you mean by that?
@Wes It'd be alot easier to change the analysis tool to understand that $key => $_ means that you deliberately aren't using the value.
I think that's standard in golang.
It's standard in many languages
Wes
Wes
ah so the reason of that array_keys() is not the concurrent modification, but the unused variable?
it's pointless to guess... i'll just wait sebastian to have a look :B
15:09
Hey guys, sorry to interrupt, I need some quick advise. I have been trying to send emails using the mail function from my domain, but it's brutally slow, as in it takes hours slow. Are there any alternatives?
Wes
Wes
start by looking at swiftmailer @JamesBaloyi
and check if you can use bcc
@Wes I just need to send simple account verification emails...
Wes
Wes
aaaaah so maybe you server is limited on the number of email you can send each hour, or something like that. you can try using gmail's smtp
34
Q: Using php's swiftmailer with gmail

andandandandI'm writing a simple script in which a gmail account is used to send an email to itself. I altered the script from SwiftMailer's reference, but I'm not getting any results. What's wrong? Edit: after further debugging I've found that the statement $result = $mailer->send($message); causes t...

@JamesBaloyi just ftr, there's a non-trivial difference between "send some mails" and "reliably send many mails that will not be rejected by any of the major providers"
@Wes Thanks that was even more helpful!
15:20
@JamesBaloyi Use mailchimp or mandrill, or some other service, if you want email to actually get to people.
Wes
Wes
mailchimp is good, but it's for mass send. i think he doesn't need that?
@NikiC I found that out the hard way last night... besides taking 2 hours to send a basic email, the mails also ended up in the spam folder
@Wes I havne't used the mailchimp side, but we use the mandrill side for sending single emails and that works fine.
15:43
@NikiC should that relationship be enforced by design (user can't avoid it), or is that something "stated in the contract" as a strong recommendation?
@rtheunissen I don't think you can really enforce it, as long as both are implementable separately
You can do things like check that compareTo equals 0 if equals is 0 but that's 2 comparisons for asserting what would be true in most cases anyway.
@rtheunissen yes, that doesn't make sense
you have to trust the implementer there
The idea to have comparable extend equatable is so that the implementor is forced to define equality.
It's an explicit definition. Unless the interfaces are separate, and the handler checks equatable first, falls back to <=> == 0
That way if equality is particular, you can implement equatable. But that is confusing because you're saying that something that doesn't implement equatable.. is still equatable.
In what sense is it equatable? As in == still has to do something?
15:48
It's more obvious and clear if you have to implement equatable if you impl comparable
Equatable => I'm defining equality for this entity
Oh wait I see.
Yeah you can still equate, implicitly via compareTo
@rtheunissen I think that makes sense
It's that implicitness that people don't like
Or seem to point out.
"If opCmp is defined but opEquals isn't, the compiler will supply a default version of opEquals that performs member-wise comparison"
So D separates them entirely.
To me that sounds like a new object handler, or an adjustment of compare to specify what the context of the comparison is.
I'd go with a new object handler
For PHP one of the my main questions would be what happens in the case where things are not equatable, or not comparable
Making this a distinction becomes kinda pointless when you silently allow those comparisons anyway in the end
The idea was for compareTo to be ?int
Which most can hint as just int
And if you return null, the engine throws
Everything is equatable
And if you don't implement comparable, behaviour doesn't change
ie. member comparison
For the sake of BC
16:26
@Wes The show spans like seven seasons or so, but each season is a different main character, and his/her name is shortened to some variation of "JoJo," in this case "GioGio"
Wes
Wes
what is it about?
oh, and if that's not ridiculous enough, he's trying to join a mafia based in Naples so he can take it over and end sales of drugs to kids
well, the last part isn't ridiculous, but more the fact that "oh, it's Italian, so it has a mafia"
Wes
Wes
wat :B
i am curious now, do you have any link?
@Wes en.wikipedia.org/wiki/JoJo%27s_Bizarre_Adventure. It's hard for me to explain it because there are so many elements of the anime that make it just that much more ridiculous
like, one of the supporting characters is named Robert Edward Orville Speedwagon ... the creator names stuff after Western pop culture
there's another character named Red Hot Chili Pepper
@Wes it's like... you can't take the anime seriously because it's so silly, but then it does stuff semi-seriously and it's just "wat"
Wes
Wes
i am watching it and it's already pretty much the stupidest thing i have ever saw
apart tom cruise's the mummy obvs
16:35
@Wes accurate
but it's amazing
Wes
Wes
ah that was just 4 minutes of intro
@Wes youtube.com/watch?v=dqHDZCxGNCg this is what I usually share with people, but there are better examples of the show than this, it's just hard to find clips of them. Some of them are spoilers too.
@Wes youtube.com/watch?v=LZhHc4dHKWE here's the one with Giorno
Wes
Wes
i am watching it in italian... it's been dubbed even lol
does this look like a code coverage bug to you?
nvm, fixed it
@Allenph I'm everywhere, and nowhere.
Wes
Wes
16:53
@Tiffany i tried. i can't watch it
i will never get anime
@Wes Jojo's is off the deep end of anime
I haven't watched it, but the show has a reputation
Wes
Wes
i dislike the melodrama and the slow pace, not the stories
i think that is common to all animes
@Wes even with people who like anime, not all of them can watch it because it's so weird
Wes
Wes
17:16
why was god underwater @Tiffany
this is so weird and i am clueless already
and why are them dressed like former village people members
nope it's impossible it's like i get a nail hammered in my cerebral cortex every time i try to focus on what they are saying
anyway, i am going to buy something to eat. lata/tomorrow \o
@Wes one of the many wonders 😛 their costumes are always flamboyant
 
2 hours later…
Wes
Wes
19:15
they are clones :B
19:39
@Wes I really cannot understand what're are three segments codes like this: $this->filter->isfile($file)
Does it mean there is a method in this current class named filter and it contains a function named isfile() inside ?
If anyone's familiar with yml files or travis for continuous integration, please would you mind having a look at this question (I know it's not php but I have a feeling some may have come across deployment using travis at some point): stackoverflow.com/questions/52909145/…
@BorisJohnson I'm not going to debug yaml on a saturday, but have you tried just using a bash script instead?
I'm unsure if that would complicate things further than they need to be
Mar 20 at 17:27, by Danack
> A policeman sees a drunk man searching for something under a streetlight and asks what the drunk has lost. He says he lost his keys and they both look under the streetlight together. After a few minutes the policeman asks if he is sure he lost them here, and the drunk replies, no, and that he lost them in the park. The policeman asks why he is searching here, and the drunk replies, "this is where the light is".
You're trying to debug why some script that is encoded in yaml isn't working, rather than just using a script directly.
@Shafizadeh This?
19:51
@Tpojka oh .. filter is an instance of a class .. I see, thx
Np. Check in constructor for injection of other classes.
yeah got it
@tereško you love this style of musics
hmmm ... its actually a more complicated question than you think
then answer is, "yes", I like ballads from metal bands, because they tend to have ... hmm ... depth to them
19:56
That wasn't a question, I know, you love this kind of musics .. I know your taste about musics
I actually like other styles too: I mostly tend to listen to doom-metal and post-rock
these type of songs tend to be somewhat rare in my playlist
also, this song is more than 20 years old
it's one of those songs that make you feel old
sounds like a cheap music to me
maybe I really have gotten old :D
or you do not understand the lyrics
20:03
@Wes you know that's how Asian people feel about Caucasians? Lol
"they all look the same!"
@tereško :-)
btw @tereško, we have about 120 registered users :P
(y)
that's actually some progress
yes :-) .. it should be interesting to know, almost half of them are registered through google-login-api
I don't know why people hate filling a simple registration form
you are getting old too :D
20:08
if you add twitter/facebook login, you will get even more new users
... it will require some effort, though
twitter, probably .. but not for facebook .. since it is banned here
ah
@Shafizadeh sound like your government might have accidentally done a good thing
... that's a rare occasion for governments in general
as for the song, maybe @Tiffany can back me up on this: I think it is written as "someone talking to an old lover" (and I mean old, as in someone in 60s talking to the person who they loved in their 20s)
 
1 hour later…
21:11
@tereško :S I haven't listened to much of Metallica. Their music is decent but I've just found the name "Metallica" cliche. Same with like Megadeth. Granted, I listed to a genre of metal called "post-metal" and if that isn't pretentious...
I dunno, I should listen to the oldies at some point cause I know a lot of the bands I listen to have been inspired by some of it
I don't mean Metallica only, like Iron Maiden, Led Zeppelin, etc
Joy Division at some point
I've dabbled with Neurosis
Also, @tereško, this may interest you youtu.be/Jh52bVgkxKE, members of Isis (the band) came together for a one-off show
They didn't get to play many songs, because there's like five bands on the roster
@Tiffany this one reminds me of Flowing Tears album "Joy Parade" (just the name)

« first day (2926 days earlier)      last day (2248 days later) »