« first day (4027 days earlier)      last day (907 days later) » 

8:56 AM
morns
 
 
1 hour later…
10:25 AM
Morning
 
\8
 
9/
 
9 - Anteater ?
 
in EVE we use o7 for a little salute
 
Have used it, I realize how old I am when people don't get it
speaking about old, I should update to debian 11
 
10:49 AM
I should make lunch.
 
11:00 AM
filesize(lunch/MAKEFILE) = lots of bites
I'm thinking a frey bentos pie in a tin for mine, for I lack culinary talents
 
11:13 AM
o/
 
12:12 PM
> Use <a href="///Imagick/setImageMask">Imagick::setImageMask</a> instead.
I'm having a brainfart or chrome has gone bonkers. Is that not the right syntax for an absolute path on the same schema?
 
three slashes ?
 
yeah.....apparently it does't work without a domain in there. Thought it did...
....the brainfart is one will do.
 
morning
Anyone saw date/time library similar to Temporal JS in PHP?
 
@Danack It's two, but doesn't it also need the domain?
 
12:38 PM
Not when you use it for relative linking
 
But // is protocol relative, otherwise it would be / to be domain relative
Right?
 
// is protocol relative, correct, that applies when you include external domains and you want said inclusions to follow the main url scheme (i.e: //scripts.whatever.com/my.js

When you want to have a relative link to some place else that is not needed since the scheme is already established by the main url
if you use // is absolute path
 
wat
That confuses me :D
In Dan's case wouldn't it resolve it {protocol}://Imagick/setImageMask?
 
Imagick is the domain ?
 
20 mins ago, by PeeHaa
@Danack It's two, but doesn't it also need the domain?
 
12:46 PM
he just wanted to use a relative link and was using an absolute link instead
 
So he wants root relative? /?
 
yep
 
31 mins ago, by Danack
....the brainfart is one will do.
 
:)
 
Thanks all the same.
 
1:05 PM
\o
 
o/
 
Yo Joe and Mark o/
 
Ayup Peehaa \o/
 
1:48 PM
I can taste Yorkshire
 
1:59 PM
@StatikStasis Happy Monday
 
2:20 PM
 
2:39 PM
 
@DaveRandom you couldn't before?
 
how very dare you. Cheshire through and through.
 
@DaveRandom Eh... it's ok.
 
that's why I'm so far up my own arse.
@StatikStasis ugh, fine
 
2:44 PM
@StatikStasis yassssssss...
no, you had a beer at lunch :-P
 
 
4 hours later…
7:11 PM
...
 
usb-c ports, or thunderfuck or whatever they call it
I don't like it, it's tiny, slow and stupid
 
I'm fetching rows through PDO, I'm doing fetchAll(PDO::FETCH_ASSOC), but I only care about the first result. I'm thinking about switching to fetch() but that can potentially turn it into an open cursor which may have unexpected behavior... would it be weird to do like fetchAll(PDO::FETCH_ASSOC)[0]? or is there a better way to do that so I only pull the first result? ultimately trying to make array mapping easier.
well, so I can do $array['string_index'] rather than $array[0]['string_index']
I guess 'weird' isn't the word I'm looking for, but more like... unexpected for a future reader?
 
no limit in query ?
 
didn't think about limit
 
do that
 
7:24 PM
I'll try that, thanks
that limits the query to the first result, but I still get an array like
[0] =>
    ['string_index'] => 'some value',
    ['string_index2'] => 'another value'
there's two ways I see going about removing the parent array: 1) accessing via [0] index, or 2) looping it or doing something with array_map or ... I don't know.. but it seems too "clever"
 
fetch()
gets one row.
 
I've just had unpredictable behavior in the past with fetch() because it opens a cursor and I'm not sure that I'm able to close it correctly... may be more to do with my current code though
 
You shouldn't worry about open cursors. If the query is buffered, PHP is pulling everything into memory anyway before you even get it. If not, it will get closed as soon as you unset/out-of-scope the result variable, which you should do soon anyway.
 
alright
cheers all of you
 
8:22 PM
@JoeWatkins Congrats on the laptop =) I only use my Mac for music.
 
There's a possibility $employer will put me on the beta test for Linux laptops this quarter. Excited about that.
 
8:38 PM
Since I got WSL2 working with an X11 server I do 100% of my dev on linux, just on my windows desktop
 
8:53 PM
Guys what's the Bestway in PHP 8 to iterate with two collections, two iterable object ?
 
9:41 PM
for loop will do
 
@BruceOverflow you should probably give an example that includes data that you're starting with, and what order you want the items to be iterated in. What you wrote doesn't have enough info to answer.
 
"iterate two collections" almost certainly means for is the right answer
 
maybe, maybe not.
 
"almost" :-P
@Danack that got way too lisp way to fast for me to comprehend :-P
 
for($it1 = new myIterator,$it2 = new myIterator;$it1->valid()&&$it2->valid(); $it1->next(), $it2->next()){
echo $it1->current();
echo $it2->current();
}
 
9:46 PM
in that case I think you may as well foreach over one and manually invoke the other?
at least, I think that's more readable... and even while () would prob be more readable than that header line...
 
ITT Danack show's off his memories of windows 98 disk defrag
 
..
... I was considering making a joke at the use of that apostrophe in the verb, but my fingers got a bit ahead of me before I decided if I wanted to go through with it
 
10:05 PM
@Tiffany >.> im tired
 
Well, train name is NSFW-ish, depending on the part of the world you reside, but the rest is wholesome
 
10:16 PM
reddit.com/r/netsec/comments/qffyae/… interesting read, is the comment about 7.3 accurate?
 
@Danack simple, simple $arrayOne, $arrayTwo for Is basic and the more used approach I think. The alternative Is a foreach for Array one and $indexVar for the second Array, I look for a more elegante way. For and foreach it's ok, but it's poor design ...
Some like next($arrayOne,$arrayTwo) maybe cool
 
@MarkR That sounds wrong
 
The others were patched 3 days ago it looks like, 7.3 hasn't had a new one yet as far as I can see
 
I mean one can always ping cmb as he's one of the RMs for 7.3
 
Good call
 
cmb
10:28 PM
@MarkR see bugs.php.net/bug.php?id=81026#1634548484; I can't assess the actual impact, since I neither use FPM nor distros
 
I would assume the scope is potentially every shared host that offers 7.3
 
@MarkR it's a day for people being absurdly romantic about legacy windows so why not
so many people posting the uncool XP key everywhere
 
11:03 PM
Huh. A readonly property is not initializable from its child class? That seems... weird.
 
Is readonly a visibility?
 
protected readonly array $blah // Added in 8.1.
 
Huh, does public work?
 
Nope. It has to be literally the same class, apparently.
I know public doesn't work outside the class, deliberately. I just didn't realize that child classes didn't count as "in scope".
That's annoying.
 
surely it's more about ensuring ctor order?
readonly can only be initialised during construction, the parent ctor must be run before the child, and there's no way to determine whether the child ctor initialised the property or not
or am I thinking about the wrong language? :-P
 
11:17 PM
"readonly can only be initialised during construction" — that is not true
@cmb bugs.xdebug.org/view.php?id=2039 Any idea what that could be? They seem to build their own PHP.
 
yeh, I am thinking in C# sorry :-P
 
cmb
@Derick "PHP Version: 8.0.3" – they should try with 8.0.7 or later
btw, 8.0.12 is latest ;)
 
Huh. But redeclaring the properties in the child class does work, and then it's accessible from the parent, too.
Kind of annoying, but...
 
11:35 PM
fwiw cmb, I think it may make sense to ask Nikita or someone else with experience to take a look at that 7.3 patch if possible, this has many of the tell-tail signs of becoming serious PR problem for PHP. Especially considering the timeline.
 

« first day (4027 days earlier)      last day (907 days later) »