« first day (4371 days earlier)      last day (567 days later) » 

12:20 AM
I have two arrays, I need to grab values from one array, but only if it contains a key/value pair that the other array has... key/value pair is the same in both arrays... I wanted to do something with array_filter, but that iterates over only one array... which is problematic when I need to iterate over both
 
12:32 AM
nevermind
 
 
7 hours later…
7:57 AM
I'm struggling to apply Open Sans font on PDF by using the DOMPDF library
It works on a browser file but it doesn't work on PDF I don't know why!
browser file: imgur.com/a/kgEKOOg
 
Hi
I have one object whose values I need to make as for reference and I want to duplicate that object in which I will keep updating values. How to achieve it? I tried cloning object but did not work.
 
 
4 hours later…
12:01 PM
o/
 
12:13 PM
@Gordon Has your email address changed?
 
12:30 PM
 
Gordon@SingletonsSuck.c o m
 
1:24 PM
\o
 
@cmb could you have a look at github.com/php/php-src/pull/9638 again?
 
cmb
Yes, will do ASAP: :)
 
Thanks :)
 
 
2 hours later…
3:49 PM
Does anyone have an opinion whether this requires going through the RFC process: github.com/php/php-src/pull/9629 (see also: linked externals email in the PR description)?
If not, then this would greatly simplify the vote for the RFC, because it does not need to concern itself with the E_NOTICE -> E_WARNING case.
 
I think it does. Previous notice->warning conversions went through an RFC.
 
Not the answer I was hoping for :-p It might be useful to split this into a separate RFC then, to untangle both, but I'm not exactly happy with that either.
 
cmb
Tricky issue. Having two RFCs (one notice → warning; another warning/error → exception) might help with passing them, but probably not if both would target PHP 8.3.
 
I'm telling you, RCV... :-)
 
@cmb Yeah, I'd like to consider the notice -> warning part effectively a bugfix, because all-but-three cases are already warnings, so hoping for that to be a no-brainer.
The warning -> Exception part I don't particularly care about, because that does not change anything for me, as I use a throwing error handler. The thing I'm really interested in is the "well-defined Exception, instead of arbitrary Throwable".
 
 
1 hour later…
5:17 PM
Hello everyone
 
5:58 PM
Hi @ILoveStackoverflow
 
6:43 PM
1
Q: How to update records in table based on group by on multiple fields and select first record from each group?

ILoveStackoverflowI have a tables like below : TargetDatabaseInfo: TargetDatabaseId TargetDatabaseName ServerInfo 1 SchoolDb abc.123 2 MyEmployee pqr.123 ManagementRulesInfo: ManagementRuleId IsApplicable TargetDatabaseId BaseRuleId 11 ...

Can someone please help me with the above question?
 
 
1 hour later…
7:53 PM
Friends, I have a script that writes a JSON file that eventually gets big (2mb~).

I basically use file_get_contents to get the JSON string from file, json_decode to convert it to array, I add items to this array and write it back to file with file_put_contents( json_encode( $data ) ).

However, the JSON is ending up corrupted because for some reason there's a line break exactly at character 10000 that's not coming from my data. I suspect it's something related to PHP chunk size when reading/writing to file, but if I'm not mistaken the chunk size is 8kb, not 10kb. Any ideas? I thought about
 
8:12 PM
Gosh writting slides is a pain
 
I like doing presentations.
 
I don't mind doing them, it's writting the support for it lol
 
8:40 PM
I enjoy presenting. I hate preparing a presentation. It's an annoying combination. :-)
 
I think I've the hang with this Beamer template, looks quite nice
But haven't needed to put that much code yet...
 
9:40 PM
Answering my own question, the winner is: Kate text editor line length limit, lol.
https://i.imgur.com/EtrjSRz.png
The JSON still turns out invalid on the receiving end, but now I'm suspecting networking/server issues, since the JSON is valid at origin...
 

« first day (4371 days earlier)      last day (567 days later) »