« first day (3995 days earlier)      last day (1177 days later) » 

00:09
@MarkR how do you mean? I don't follow
When you perform a query on PDO you should use all of its results before making another query according to the documentation. Because you're yielding from within fetching those results, something higher up the stack might be making another query and breaking it
Okay... so what should I use instead?
fetchall then foreach over it
I don't want to change it from a generator because it adds additional complexity in other parts of the code
@MarkR fetchall would pull the 500 rows though, right?
You're not going to change the generator, you're just going to yield from inside an array of results, rather than from within fetching the results
thats correct
00:13
Oh wait, I see how
Fetchall, foreach over the results, returning yielding one row at a time
right, once you fetchall it will close the cursor
I'll play with it when I'm next at my workstation, cheers.
I have no idea if it will make any difference, it's just what the docs say =p
It probably will, I'm just not as familiar with PDO as I'd like, and this is the first time I've worked with a database like this in quite awhile
Most of the stuff I've worked with lately has been XML
Though, amusingly, I'll be converting this into XML, but we have an interface for it
yield to the almighty pdo!
... geddit?
00:30
A pun that I'm using a generator?
yes
>.>
00:48
Incident with Codespaces and GitHub Pages
@NikiC It's likely more "unconditionally converting everything" … maybe they wouldn't convert them to exceptions if they were not handled like normal errors … Anyway :-X
user4717133
01:19
@Danack I do not know what are you talking about. hahaha ... be happy.
01:42
@FranciscoNúñez-TodoPoderoso If you comment that you're not 100, maybe go do something else and enjoy the moment?
All issues have been resolved!
user4717133
02:15
@Tiffany beautiful young lady I don't know what you are talking about ...
She is, but unless you want to get kicked, you should at least compliment Danack's fine beard at the same time :P
No bros. No ladies. Only meat popsicles.
Danack, you have a handsome beard.
It's a little short right now.....but it's been warm. <david attenborough>It's at this time of year, that the male software developer grows a long, lustrous beard, to keep himself warm through the cold winter months.</david attenborough>
02:37
@Danack XD
@Danack also yes, 100%.
03:04
I have fond memories of playing Knights of the Old Republic I, where a delicious, if somewhat violent, droid offers the following idiom, that I vowed to forever use : meatbags.
This is hilarious and incredibly interesting
Also see Physical Characteristics of the Tiffanys and the hilarious story of his journey to discover the origin of Tiffany Someone Dead Ruined My Life… Again.
@FélixAdriyelGagnon-Grenier I may get sucked back into XCOM
Debating on trying to install the Long War mod but I'm afraid to try
I'll need to find a guide that explains how to do it and how about complications
After debating with myself roughly 0.2 seconds upon the merits of not trying to influence you, I shall very much insist that you do install long war, and procure xcom 2 if not already done
03:18
@Trowski I'll need to watch these. I've watched the first one when Crell linked it
@FélixAdriyelGagnon-Grenier I think you gifted me a copy of XCOM 2
That's handy, what are you waiting for!? =D
03:36
@Tiffany "Richmondshire, Its Ancient Lords and Edifices: A Concise Guide to the Localities of Interest to the Tourist and Antiquary; with Short Notices of Memorable Men." Best. Title. Ever.
 
2 hours later…
05:17
hi all. nice room :)
 
3 hours later…
08:05
Hello folks. A dude on Reddit asked about this inconsistency in the validation flags behavior, https://3v4l.org/2H5Nh
Just curious, is it expected behavior, a known issue, or just a bug to report?
To my taste, all should return null though, rather than default value.
08:47
Or may be an error that these two options cannot be used simultaneously
09:04
Inconsistent default namespace inheritance ・ DOM XML related ・ #81468
cmb
cmb
@YourCommonSense according to github.com/php/php-src/commit/… this is expected (the array case is special, since filter_var() expects a scalar value, and fails early); I think docs should be improved
09:20
@cmb Isn't the object cast (3rd) one broken then, as that is also not a scalar.
cmb
cmb
@Derick apparently, only arrays are not scalar for ext/filter (possibly due to _toString); it's ext/flter :p
I wrote most of it... it probably made sense back then
Aha. So, indeed it makes sense taking into into account __toString. But I think the behavior is still ambiguous. I'd rather prohibit the use of default and FILTER_NULL_ON_FAILURE at the same time...
cmb
cmb
09:37
@YourCommonSense FILTER_NULL_ON_FAILURE is irrelevant here: 3v4l.org/aOnXr
Thanks, I see now
cmb
cmb
@Derick it's the unfortunate mix of strict and weak typing, and later additions; array fails early (ignoring default); object without __toString fails early (using default) (cast_object is ignored); others are juggled to string
Hi folks, does anyone have any idea to remove all the files recursively except one sub-directory? I tried to do it the following but it deletess "pub/media" as well. Thanks
 find . -mindepth 1 -name "pub/media" -prune -o -exec rm -rf {} +
10:35
Hello Everyone,

I answered one of the questions recently here about Sql
https://stackoverflow.com/a/69298132/15405352

and found out after few minutes itself someone added another answer copying my query in his answer

What am I supposed to do in such situation ?
10:47
Please don't spam post it in every room
@groovy_guy You mean 2 people (or more from the looks of that Q&A) independently came up with the same answer to a question? The horror!
11:10
@AllenJB I answered that question 4 minutes earlier than him.. still he is refusing that he copied the same.. anyway as suggested by few users in chat I added some more explanation to my answer for more details and for future users to understand it in a better way
@groovy_guy I bet nobody in here cares.
It's also not related to PHP.
11:31
@Derick I understand thanks for the reply though :)
 
2 hours later…
13:02
preg_replace(): add support for named capture groups ・ PCRE related ・ #81469
@salathe do you have an answer for github.com/php/doc-en/pull/935/files#r705153758 ? As I don't know the reason for that
@Derick What to do with github.com/php/php-src/pull/6783?
13:19
@NikiC maybe the curl issue is related to a specific curl version or such, I'll check on another bulld later…
14:07
Seg fault on Arm processoer ・ PDO_INFORMIX ・ #81470
14:26
Morning o/
Mornginsih o/
morgensjhi
So I just commented on a "write code for me" question, something like "hi, you are asking for other people to write the code of your application", and they go "It is not mine, I don't know how PHP works" karen do you even know how much this makes it worse
14:44
:P
cmb
cmb
14:57
Would anyone here happen to know where the repo of PDO_INFORMIX is nowadays? github.com/php/pecl-database-pdo_informix isn't up to date. :/
15:37
Maybe @Gordon can poke someone? ^
15:55
@cmb They might not provide a GIT repo...
cmb
cmb
Any public repo would be fine for me. As it is, we're getting reports in bugsnet, but none of the devs looks into it, and it is not even possible to assign them, because they have no php.net account, apparently.
 
1 hour later…
17:12
Spam comments >.<
spammity spam, xcom ghost is with you fam
I'm subscribed to doc bugs, and there's been a higher frequency of spam comments on bugs
At least on the doc end, but I'm guessing it's affecting both sides
 
2 hours later…
19:47
compiling against GD 2.3.3 fails ・ Compile Failure ・ #81471
20:21
Ha. I just found something we forgot to include in Enums. :-)
an enum of enum types?
Surely, that wasn't difficult?
There's no way through reflection to tell if the enum itself is string or int backed, as far as I can see.
@MarkR Basically, yes.
You can tell if it's backed or not, but not what it's backed BY.
Oh, no, wait, I'm stupid. It is there.
20:46
Ah, but what isn't, I think, is if you have an enum name as a string and want to call from() on it.
20:59
Ha. I can't believe this worked! 3v4l.org/pke0M#v8.1rc2
Not much difference between quoted strings and non-keywords in PHP
PHP is silly.
@Crell 3v4l.org/n1IM5#v8.1rc2 this works the same way XD
Though I wonder...
My statement stands. :-)
21:06
All kinds of fun 3v4l.org/2GaEv#v8.1rc2 though this isn't that crazy
Oh, that doesn't include the $A assignment :|
I'm still extremely iffy about if enums will make it into my main codebase. I'll have to go back to doing a lot of per-column DB manipulation.
21:25
There's ample uses for enums without writing them to the DB.
But 99% of mine include the DB :-)
/shrug
/me merges the OCI8 doc PR that @MateKocsis made to make him happy. 8 hours later /me sees the revcheck status. "This was a mistake"
21:46
@FélixAdriyelGagnon-Grenier so I should install Long War?
It doesn't seem too difficult but I'm still nervous... though what it adds looks really nice
@Tiffany I rarely even play regular xcom anymore
More variety to how soldiers end up
also, don't play xcom 1 anymore, xcom 2 + long war 2 is the xcom game one wants :P
you can literally install the mod from steam workshop by clicking subscribe
tho more complex mod loading solutions exist if ever you want more shiny on the inferface
I had a bit of trouble getting into 2, I really liked 1's grid
I may not have given it enough time, but I want to try LW1
@FélixAdriyelGagnon-Grenier Hol up
oh yeah, actually completely scratch my advice
Hard for me to explain, but it's a little different
What does it give me @FélixAdriyelGagnon-Grenier? I really need more xcom action i nmy life
21:59
thinking back on it, the robots in LW1 have a lot more customization than lw2
WHERE CAN I BUY IT?
Have to scroll down to Features
@PeeHaa The Long War mods are complete game overhaul that change the way characters are built, also make the game roughly one to 2 orders of magnitude harder than the base game
It's free
21:59
@Tiffany .... :P
It's a player mod
But it modifies the executable
@PeeHaa "TAKE MY MONEY" "...but it's free" "... TAKE IT ANYWAY"
I should also say that it's one of the most complex, intricate and well thought-out player-made game system to me, way up there along the likes of Requiem Skyrim mod and Alien Life Factorio mod
Totally going to install that thing noaw
I've heard a lot of work went into it, such that the Long War team was hired to assist with XCOM 2
@PeeHaa :O let me know what you think
22:03
Will do
@PeeHaa also do not worry, ignore the game's warning that the harder difficulty levels are actually hard, and go headfirst into it
Ignore all warnings, always. Got it
are you on xcom 2 or 1? I've been bitten real bad by LW 2, there's a dialog just before launching new games that goes something like "do you want to enable introduction of some content" but it bricks your game if you say yes and also it only bricks it like 10 hours in
@Sara Talking about mistakes, did you have a look at the stream context thing? :p
22:13
@FélixAdriyelGagnon-Grenier Pretty sure I haz both
hello fellow exagerated-number-of-xcom-games-versions-haver. which LW will you start with?
22:29
@Crell i can imagine the situation.. 😐 but at least I am a bit less frustrated by all the pending doc PRs 😃 so thank you!
 
1 hour later…
23:43
@Tiffany Even in that case it's much nicer to prepare once and execute the prepared statement multiple times
23:56
@Derick Any recommendations on settings I should change for first play through experience of Kerbal Space Program?
Settings?
@PeeHaa \o/
What settings?
Focus on flamey thing down, pointy thing up.
i'm off to bed. 1am here
happy to chat KSP tomorrow :-)

« first day (3995 days earlier)      last day (1177 days later) »