« first day (4084 days earlier)      last day (1089 days later) » 

Wes
Wes
01:30
i just found out i was running a bitcoin miner malware
i wonder how much money i've made them
windows defender and malwarebytes didn't detect it
:O
gj on sniffing it out, how did you notice?
Wes
Wes
I had some gpu activity even if all programs were closed.
@Wes so after you saw that, how'd you track it back to being a piece of malware?
Wes
Wes
I installed Avira, which detected it
the file with gpu activity was AddinProcess.exe
a rather forthcoming about its intentions filename lol
Wes
Wes
01:40
it's like a container i think, not bad per se. it's a file from the .net framework
the malware was a fake taskmanger i think
tskmgr.troj i already forgot
time to change all the passwords then
fuuuuuuuuuuuuuuuuu
 
1 hour later…
02:54
Blurgh, I should check my system.
 
4 hours later…
06:33
morning
anyone familiar with this error message while trying to open and view txt file in php code ?
Warning: file_exists() expects parameter 1 to be a valid path, resource given in C:\inetpub\wwwroot\....\myfile.php on line 21
searched many articles , nothing seems to solve the issue so far :|
You passed something that's a resource, instead of a file path
It should be a string, but a valid path on your file system
06:49
$myfile = fopen("C:\inetpub\wwwroot\...\myfile.txt", "r") or die("Unable to open file!");
$minSize = 5 * 1000; // 5KB
$fileExist = is_file($myfile);
if (!$fileExist || ($fileExist && filesize($myfile) < $minSize)) {
echo fread($myfile,filesize("myfile.txt"));
fclose($myfile);
}
i think im passing the file path
if i try to set it like this:
$myfile = fopen("myfile.txt", "r") or die("Unable to open file!");
then i got error message "Unable to open file"
You're passing the return value from fopen, which is a resource in this situation
Assign 'C:\inetpub\wwwroot\your\file\path\myfile.txt' to a different variable, and use it for fopen and is_file
Also, your multiplication should be 5 * 1024
filesize also needs the string, and not the resource from fopen
thank you tiffany
that indeed helped
but if my txt file has new lines , why then php is displaying all in one line ?
like, how should i make new lines , like \r ?
my txt file is about ip addresess, like this :
10.1.1.1
10.2.2.2
10.3.3.3
and php displaying all in one line like this:
10.1.1.1 10.2.2.2 10.3.3.3 ...
like where you should i use diametter
07:07
PHP_EOL
or "\n" since about 2012.
or
sure , why not :P
i meant , For some reason, it's writing \n as a string
07:37
ok , solved
this was the solution
echo "<pre>" . fread($myfile,filesize($filetxt)) . "</pre>";
 
1 hour later…
08:47
@ac89live You can use file_get_contents() to read a whole file in one go, it opens it too.
 
1 hour later…
10:01
@Derick Time to load simple Ibexa page with xdebug.mode=off => 0.25s, with xdebug.mode=develop => 2.54s (PHP 7.4 / Xdebug 3.1.1), is this normal?
Why would you expect a debugger to not cause overhead? Especially with so many small little functions with lots of complicated arguments...
JRL
JRL
10:30
did the array_group RFC get announced on the list? It's in voting?
Yes. Yes.
JRL
JRL
oh, so it did
for some reason, i didn't think that was an actual RFC, but instead an idea announcement
It has many speling errors.
!voting
~voting
/me shrugs
What is the magic incantation again?
JRL
JRL
i dunno
cmb
cmb
Jeeves is dead for months. :(
10:33
oh
JRL
JRL
how does it handle duplicates?
the RFC doesn't mention much about how it works
I think that's why it's not really going to pass...
10:58
@Derick In that config, isn't xdebug supposed to just provide var_dump() with steroids?
it also does stack traces, for which it needs to collect and render method names and argument values. If you only care about Xdebug's var_dump, keep it in =off mode and just call xdebug_var_dump().
@Derick Ok, so then it makes sense, thanks!
It's the rendering of argument values that takes a long time.
In my case I was not using any var_dump(), nor was I debugging.
xdebug was only loaded with xdebug.mode=develop and that was sufficient to make everything 10x slower :-/
cmb
cmb
11:16
@kelunik I guess it just doesn't make much sense, since ZendMM allocates memory chunks, so fine grained issues might not be detected.
@PatrickAllaert I'd also argue that if it takes 0.25s for a normal request, you already have a problem :-)
12:18
fingers crossed you get an opportunity to look at the observability api =)
Wouldn't do much for stack traces like this.
12:37
I'm on the hunt for extreeeme single threaded speedz
 
2 hours later…
14:25
@Derick I don't disagree with that, Sf + Sf dev mode activated... No content caching because of dev...
14:46
symfony dev mode is slow and buggy
 
2 hours later…
16:53
@ln-s I don't disagree with that either...
 
1 hour later…
user17161735
18:14
if anyone can help with this i would appreciate it:
user17161735
1
A: add link in @UniqueEntity message

mihauHow do you display it on the front? If you use Twig, maybe you forgot to use raw filter? {{ error.message|raw }}

18:29
o/
@PeeHaa Oh good, so you have seen them! =P
19:29
> these are bad examples and nightmare to maintain. I think even more with
> lovely typed languages. Matrix*float are better implemented as method here.
Because matrix maths is so much easier to read when it's more verbose with method names instead of symbols.
20:15
if you ever use ppa:ondrej for installing PHP on ubuntu/debian: github.com/sponsors/oerdnj
 
1 hour later…
21:18
@cmb Sorry, to hassle you, but someone is hassling me - were you able to do the needful?
JRL
JRL
@Arcanis-TheOmnipotent your html is wrong. the link is href. i see herf and hrf.
user17161735
21:36
@JRL And do you think that's the reason why the <a> </a> tag doesn't work / render as a link?
JRL
JRL
i dunno, but the link won't work if the html is wrong
im not sure if you can do html in that place, not familiar enough with twig/doctrine
user17161735
@JRL I once had a car; and this one did not want to turn on, when I went to the mechanic, his assistant told me that a tire was flat (he had been parked for 5 days waiting for them to attend to me); Moral ... there is always someone idle who likes to make comments that will not help to solve your question / problem, thank them anyway ...
JRL
JRL
lol
user17161735
@JRL I'm sure if I make the <a> tag work I will have time to resolve any path problems. thanks anyway and i don't think it has to do with twig / doctrine ...
JRL
JRL
okay @Arcanis-TheOmnipotent i will avoid responding to any of your messages in the future
im sorry i was unable to do all your work for you
21:45
@Arcanis-TheOmnipotent it was explained to you why it did not show as a link, with the raw response.
you have all the information needed to understand why you see the <a> tags.
user17161735
@JRL I was aware of the syntax error to the point that I corrected the href in the symfony github post, the problem is that somewhere form_errors encodes the string that comes from the message in the UniqueEntity I have reported it since there is no way to locate where it happens: I already found the solution and I will have to work manually with: $form['email']->getErrors() o $form->getErrors(true, false) and I do not know about this subject in depth ...
user17161735
@FélixAdriyelGagnon-Grenier what, where did you explain, what thing ???
Also, stop being a help vampire. We're not your debugging team.
user17161735
@FélixAdriyelGagnon-Grenier I think you're wrong, you've never written me anything
user17161735
I did not understand the kick of the room ... I did not say anything disrespectful according to what they tagged ...
user17161735
21:55
@Danack am i upset in what way?
> Moral ... there is always someone idle who likes to make comments that will not help to solve your question
In paticular, don't insult people.
user17161735
@Danack what is the purpose of stackoverflow ??? If they can't or won't help other developers, I don't know what they're doing in this place, what is it supposed to be for that purpose, or am I wrong?
user17161735
@Danack can we talk elsewhere?
@Arcanis-TheOmnipotent you can talk elsewhere. I'm fine here.
user17161735
@Danack You need to add this: thank them anyway... I'm thanking you for trying to correct what I already know exists ...
user17161735
22:00
@Danack You are not being polite, and you are not following the site's rules.
lol.
you know the flags aren't for that.
well. You know now.
Damnit stop kicking him, it keeps giving the ding like someone messages me and then I look and no-one has and I feel lonely >_>
Every time you kick him, my browser beeps at me.
JRL
JRL
lol, mine too
lol, we want you to know we think of you
22:01
lol me too.
@Crell change your notifications to 'when mentioned' ?
Likely every room owner
Or I can remove you from being a room owner.
With great power comes great beeping.
6
so perhaps a good time to remind on the Snowball Effect 3v4l.org Sponsoring Extravaganza which is still running. If you ever wanted to donate, it's a the right time to have it doubled.
22:02
How does one do that?
@Crell the speaker icon - top right, just above PHP.
Hm, I am set to when-mentioned.
I guess kicks count as mentions for mods.
@hakre How much is remaining on the will-double tally?
@MarkR 75% : 75 EUR.
And there is still 50 EUR open in slot for the double-double-up
@Arcanis Before you speak again: this is enough. We are not here to argue. You belittle other people who help you, you take no time to really try and understand what we are saying and you argue with everything possible. Stop doing that.
cmb
cmb
22:06
@Danack the build is automated (although I wouldn't know how to select a certain version), 1.7.0-18 is available for download, and I just deployed it so coming PECL release will use that.
user17161735
they should remove this from the room description **Support group for those afflicted with PHP. Don't ask to ask, just ask.**
I see why the same old people are always connected ... this is like a private room. It's the last thing I'll say, bye and thank for your great help!!!
okay now it's getting interesting. double doublings donations galore achievement unlocked. ^^
@cmb cool, thanks.
so if anyone else wants to join, all is needed instead of donating directly to pledge to double someones else dontation. I'll then double the donator, and the other doubler. this slot is up to 50 EUR (in amount, so another 100 EUR in total from my side).
 
1 hour later…
23:23
Quick question: I want to upgrade my database connections in order to implement master/slave replication.
Should I refactor my code and write a wrapper for this or can leave my code as is and making magic in the SQL server?
Depends on your SQL server.
How does that work anyway, is there a primary database that everyone writes to, then several replicas that mirror the content so that the multitudes can read from them?
Oh I see, nice
Makes my life easier
I have the speaker turned off altogether... hate most noises. If it's important, I'll get a visual notifier, good enough for me.
JRL
JRL
i need to look at setting up a dev environment for the documentation
23:35
that's something I wanna work on in the new year, but I saw someone put together a docker environment and linked it on an issue. I need to spend the time looking through it.
github.com/php/doc-en/issues/1148#issuecomment-981747368 this is what I saw that I'd like to look at eventually
anyone here can think of a better name for this? https://github.com/azjezz/psl/pull/324/files

I think "Sequence" is okay, but i'm not sure about "run" method 🤔
JRL
JRL
I probably would use something other than Sequence personally, but that's because sequence is a mathematical term to me
any suggestions? 😅
JRL
JRL
it's more like a process queue isn't it? it ensures FIFO execution?
JRL
JRL
23:45
my first thought would be just ProcessQueue, but I'd consider ExecQueue and Consecutive
I think Consecutive is nice ( i wanna stay away from Queue because there Psl\DataStructure\Queue, which is a normal FIFO queue )
someone seems to have blocked @Danack for 2 days from this room, just in case :)
JRL
JRL
wait, really?
yea, he reached out to me on twitter so let everyone know
JRL
JRL
who? i didn't get a notification about that.
23:55
a moderator ( stackoverflow )
so we can't really undo it
I have no clue what caused this, what are we even supposed to understand here?
that big bro stackoverflow is watchin 👀
JRL
JRL
for what though
idk honestly
@Danack i'm gonna assume it's related to this
JRL
JRL
that's bullshit. he's a room owner and arcanis repeatedly violated the room guidelines.
23:58
Yeah, it's certainly related to the earlier kicks of a user and their dozen flags, but Dan didn't act rashly, or was insulting, or anything, so this is really confusing.
If some diamond moderator's eyes read this, I would really appreciate maybe a hint of what exactly Dan did that we should not be doing, as I would probably have done exactly the same as he did.

« first day (4084 days earlier)      last day (1089 days later) »