« first day (2956 days earlier)      last day (1986 days later) » 
01:00 - 18:0018:00 - 23:00

1:52 AM
I have $arr[][][] - multidimensional array.

How can I get the size of the 3rd element?
or what does this [] called?
 
 
4 hours later…
5:49 AM
include and new anonymous class bug – #77173
 
6:14 AM
@MadaraUchiha your history most likely contains the original commits? you're going to need some solution based on filter-branch. I need to each and everytime gather the arguments manually from reading internet/manpage, so can't really help you, but point you in the direction of filter-branch
 
6:56 AM
mornin
 
posted on November 16, 2018

Wow, what a whirlwind mo-- OW! I’ve finally-- OW!!! I’ve-- OW!!!!!!!! Hang on… ... Okay, I’ve switched to my phone. I managed to bend back a few fingers earlier today. Apparently, that’s frowned upon by my tendons. Since typing is a skill I no longer possess, let’s try this again, dictation style: Wow. What a whirlwind month.... [read more]

 
7:07 AM
problem while inserting spenis(unicode) characters.

ex:
I am trying to insert 'Cápsulas' but it inserts only 'C'
it skips all characters after Unicode characters like 'á' .

have some idea?
 
Wes
7:25 AM
is someone using PHPStorm EAP? it's slow. it's almost unnoticeable but there is delay between me hitting a key and the character appearing on the screen
the 64 bit version of the program
 
@Wes I have the same problem with the non-eap versions
sometimes it can take 2-3 seconds for a keystroke to be registered
 
Wes
i have some delay, less than 200ms for sure, probably much less than that, but no more
2-3 seconds sounds like hell
 
Getting a new work laptop in a few weeks, it used to be ok but now that we use react with hotreloading etc my shitty laptop just can't handle it anymore
it's not always, only if if the laptop is doing something else at the same time. Still makes me want to throw it out the window though
 
Wes
my computer is new, i5 8600K, 16gb of ram... still slow
that cpu is not high end but it should be able to run phpstorm lol
also the other phpstorm copy i have, the licensed one works great
i don't remember which version is though and i can't open it right now or it will fuck up all the settings
but it's more than a year old
i didn't try any other phpstorm in between... just that and the eap i am trying now
 
@Wes I remember I had that, too. But I cannot remember how I solved it
 
Wes
7:43 AM
btw, i need 32gb... means the ram i just bought is useless
i would like to keep ps illustrator and phpstorm open at the same time but it's not possible... all programs are much more heavy on memory usages than they used to be
i hate adobe btw
this is why monopolies are bad
they just stopped caring now. in the past there was corel macromedia and other stuff.. now it's just them
and quality is dropping fast
 
Gimp, Inkscape, .... ?
 
Wes
gimp is good... inkscape is ages behind
unfortunately these days with flat design and shit, it's all illustrator work
@Patrick try to disable the spellchecker in phpstorm
made it better for me i think
 
will try, thanks
 
8:00 AM
gallinaceous belonging or pertaining to the order Galliformes, comprising medium-sized, mainly ground-feeding domestic or game birds, as the chicken, turkey, grouse, pheasant, and partridge.
 
8:14 AM
@bwoebi I don't think there's a safe option for me here. I might just have to live with it :(
filter-branch is terrifying. It has the potential for ducking things up exponentially worse than they are now.
 
@MadaraUchiha yes. But you do it locally. And check everything before force pushing.
And even then, there's still reflog
 
True, to be honest, I'm not sure that I'll be able to make the time commitment required to fix it, especially given that "it works" right now, only the history from before a year or so ago is fubar.
 
Wes
8:41 AM
wiki.php.net/rfc/spread_operator_for_array exactly the shit we wanted to avoid
cc @DaveRandom
 
@Wes What do you not like specifically?
I think that array spreading is a good feature in general, even if the specific semantics can be argued about
 
Wes
i am responding on the mailing list
 
Mmmhm, fair enough.
 
9:00 AM
Just... why?
 
Wes
imho it should be two operators, one for push() the other for "ordered map concat"
the problem is obviously giant
i mean it's easy to implement it for string keys... except it would work like +. what's the point then
 
9:18 AM
morns
 
Wes
@MadaraUchiha ^
 
@Wes the example should have been with numeric keys to illustrate the issue
 
@Wes Well, the fact that PHP has first class support for both maps and lists in the same data structure instance is a weakness of the language.
 
Wes
hm, no?
 
JS also has this case supported, but it's not idiomatic and almost no one has numeric keys in their objects, even though it's technically possible.
(Especially seeing how there's a semantic differentiation between arrays and objects)
With your examples, I'd expect the first result, rather than the latter.
 
Wes
9:33 AM
@bwoebi you mean that it's impossible to make ordered maps with integer keys? yes, but that is obvious no?
i think both functionalities may be needed... but mixing them is an absolute no no
 
I think we'd have wide spread panic, civil unrest, blood in the streets man if arrays were remove(or reworked?) and split into list, set, and map.
 
Wes
eheh
arrays are ordered maps. except that $a[] does you the favor to count for you :P
 
long live abstraction I guess
 
9:49 AM
SNMP poll stale when new snmp poll is initiated – #77174
 
fml
 
10:34 AM
Old script executed after update – #77175
 
seems the japanse have it all figured out: theguardian.com/world/2018/nov/15/…
morning btw ^^
 
@Andrei Yeah, that's not a change you can reasonably make, even with a major.
 
Yep, pretty much. Not to mention it would murder any sort of backwards compatibility, which is a absolute no-go
 
10:51 AM
@Andrei backwards compatibility is overrated, but this is a bit of an extreme case.
I don't particularly feel the need to support usecases common to 15 years ago. Those people rarely upgrade anyway.
(And if you want to, you can provide an opt-in option to legacy features in php.ini or something)
 
Hey don't look at me, it seems that the php internals team has that as #1 priority, or pretty damn close, as far as i can tell.
 
@Wes well, it's impossible to have sane behavior for that in every case
 
@Andrei That's probably the main reason I don't use PHP anymore.
 
but tbh...
if you attempt to do insane things you'll get insane results
 
There's a general unwillingness and/or resistance on moving forwards.
 
10:54 AM
@MadaraUchiha each to their own, at the end of the day, it's just a tool. As long as everything doesn't look like a nail and you happen to be holding a hammer use whatever floats your bubble
 
@bwoebi Honestly speaking, you guys should just make a defined iteration order for these things, and be done with it.
 
@Wes I generally think the splat operator in arrays should behave as if it were array_merge on every single element of the array
 
JS had the same problem in the past, and then they just went along and did it. Order is defined as numeric keys in ascending order first, then string keys in order of insertion, then Symbol keys in order of insertion.
 
me, that'll fuck up integer keys
@MadaraUchiha JS arrays also always begin at zero
 
@bwoebi Objects may have numeric keys.
 
10:56 AM
in PHP the first key may be like 1 :-/
 
const x = { 1: 'foo' }; // valid
Also
const y = ['foo'];
y.lol = 'string!'; // also valid
 
dunno, [1 => 1, ...[1, 2]] this should be [1 => 1, 2 => 1, 3 => 2], right?
 
@MadaraUchiha it would be at least absolutely counterintuitive to have it start at 0
 
The problem here is that the semantic to begin with is weird.
 
10:59 AM
and getting [1, 2] from that (overwrite) is also weird
 
[11 => 11, 22 => 22] should be considered an associative array imho, and not a regular array.
Or alternatively,
[0 => NULL, 1 => NULL, 2 => NULL, ...., 11 => 11, 12 => NULL, ... 22 => 22]
 
@MadaraUchiha that's where the weirdness stems from... I've already written a bunch of arrays starting at -1 for example. Just adding -1 => foo, as first element then
 
If you insist on it being a regular array.
Currently, it's this weird hybrid that's neither this nor that.
 
yea
That's what's making it so hard
 
22 secs ago, by Madara Uchiha
Currently, it's this weird hybrid that's neither this nor that.
 
11:01 AM
in JS there's this distinction at least
 
That actually describes PHP rather well :D
 
you guys are arguing about consistency in a specifically loosely typed language that also happened to be written by a guy for his literally personal home page a long time ago, how does pushing water up hill feels like?
 
@MadaraUchiha but now you've understood the problems? :-D
 
Yup
@Andrei Hey, they managed to make JS sane. I'd have had hopes for PHP, if it weren't for the insistence on supporting madness.
 
well, to be fair, it has come a long way
 
11:03 AM
It had, but it is, as you say, pushing water uphill.
 
o/
 
yep, pretty much. change is there, but it's slow...i mean, not surprisingly tbh
i'm still waiting for the removal of global namespace procedural functions and grouping them in various oop classes
you know, like every other bloody oop language out there
 
@Andrei PHP isn't a strictly OO language tho.
 
that's very true, but looking at the current environment you could have fooled me
 
I don't much agree that using classes as namespaces is the right course of action, especially considering that it's a Java practice which stems from the limitation of not having free-floating functions.
 
11:08 AM
i'm not saying to use classes as namespace, i'm talking more about a logical grouping of various functions under a more oop umbrella, take for example array_* functions, that would be nice to have as a library of sort, extension, whatever
ofc, deprecation would have to take course over 2 or more iterations, but still, you get what i'm saying
 
There are several ways to solve this, actually.
I don't think that Array::map() is a good replacement for array_map(), for example.
But [1,2,3]->map() might be a good fit.
 
11:23 AM
Now with that I can totally agree
Besides, vanity wise, it looks sooooo preeettyyy
 
11:43 AM
so, what are you guys talking about?
 
how we'd change php for the better, then realising the monstrous task ahead of us we would promptly fail, revert back to the previous stable iteration and never talk about it again
 
change php for the better? you mean… like… putting it on the jvm?
 
@Andrei "how we'd change php for the better", that sentence alone should've been enough to make you realize the ultimate flaw in your plan :P
 
mornin
I've got Java related question, cause cannot reflect that to PHP
 
@mega6382 how dare you point logical flaws in my theory, i'll have none of if, good day sir :D
 
11:50 AM
Can someone explain to me what is the purpose of this in Java: new String[]{"firstName", "lastName"}
How to reflect that in PHP
 
@brzuchal $arr = ["firstName", "lastName"]
 
@brzuchal that is probably an array of strings with these values in it "firstName", "lastName"
 
Ok, thank you. It's way simpler in PHP :D
 
@Gordon o_O
 
Wes
@brzuchal it's a matrix where the innermost arrays are strings. the innermost arrays have size 2, where cell 1 is first name and cell2 is last name
Array<String>
$array[0] = "firstName";
$array[1] = "lastName";
if i am not wrong
ah nope, it's one dimensional, nvm
 
11:55 AM
@brzuchal nope. more difficult in PHP because String[] makes sure it's all strings in the array
 
@Gordon Yeah, right.
 
@brzuchal If we had something like typescript for php then it would be easier
@brzuchal If we had something like typescript for php then it would be easier
Goddammit, slow internet
 
12:25 PM
@mega6382 Is TypeScript type checking at runtime?
What is general difference between bulk operations and batch operations term?
 
@brzuchal no, you compile it into js first
 
@mega6382 preprocess.io is similar right?
 
@mega6382 Ok, but how TS deals with type checked arrays, in resulting JS there is an array but what about type checking?
 
@Danack somewhat, I would say
@brzuchal Yeah
Because the types are checked on compile, and if it compiles it means your code was syntactically correct, so resulting JS would just be that TS code but without types(for the most part)
 
@Gordon disagree. I'd agree about a lone String[] type on arguments or properties. But not on initializers. As long as the type is trivially inferable, it is not more difficult.
 
12:34 PM
Do you guys know something from PHP userland similar to Spring Batch ?
 
@Danack But, it seems that preprocess.io offers a lot more things than typescript
 
@bwoebi how would you make sure it's all strings?
 
@Gordon via setters, probably?
but that would require it to be a private/protected property
 
12:50 PM
@mega6382 so. more effort.
woahlol. I just got an answer from 2010 accepted: stackoverflow.com/a/3244596/208809
 
@Gordon He probably wanted the +2 rep you get from accepting an answer :P
 
1:23 PM
Am I doing contravariance wrong or is it not working? 3v4l.org/S9CS3
I should be able to broaden type, right?
 
Wes
not currently
levi is working on it at this very moment
you can only broaden to no type ( mixed )currently
 
Cause I can see I cannot broaden or narrow the types
@Wes do you know is it going to be patched in what version(s)?
This is fucked up, now I need to make assertions
 
Morgen
 
@PeeHaa Mornrnings.
Does anyone have any alternatives to Behat that are more "not everything being in PHP" friendly? We're currently having to write quite a few wrappers around the basic functions to wait for external data to be loaded. e.g. replacing "I should see" with "After the JS has finished doing its stuff, I should see"
As by default behat fails instantly and doesn't give the JS on a page chance to run. Or as it turns out, for iframes either.
 
1:44 PM
update doc – #77176
 
Wes
@Patrick disabling spellcheck made it definitely better, but not as good as it was before
it's like it checks the syntax too often... before it was throttled
 
2:00 PM
@Wes did you ever try phpstorm's jre?
 
Wes
no, what's the difference?
 
2:29 PM
The example project now has an example of running Behat tests through a Selenium/Chrome container, and instructions of how to watch those tests run using VNCViewer https://github.com/Danack/example/blob/master/readme_behat.md
 
\o
 
@Wes it should improve performance - see jetbrains.com/help/idea/tuning-the-ide.html#ide-runtime
I have no experience with it but its worth a shot
 
Wes
2:41 PM
will try yep
 
2:54 PM
o/
 
Wes
interesting use case... in a loop i need the same variable by ref and by value
function() use($a, &$a){}
essentially this function() use($currentIndex, &$maxIndex){}
 
@Wes No you don't :) You just need to manually set the max
 
Wes
?
it's an iterator, i can't count() it
 
I didn't say count
$maxIndex = $currentIndex
 
Wes
so?
 
3:00 PM
A has a B has a C has a D. If you wanted to query D by A and A, B, C, and D spanned across multiple databases, would you just putgetDByAId in the mapper or is there some other more elegant solution?
 
Wes
yes, which is what i am doing :B
 
oh I see you have a function scope now instead of a loop
 
Wes
but essentially it's the same value, by ref and by value
 
Do you know @Wes? Teresko seemed to think he did the other day, but didn't have patience for me.
 
Wes
the read mappers do not have an universal design
that function is one of a million possible functions
don't try to organize them
just write the function and use it
 
3:10 PM
So just inject the second DB instance into the mapper for D and do whatever I need to do in there to get D by A ID.
Even if that SQL query is going to work with tables from other aggregates.
 
Wes
multiple databases are an absolute mess btw, because you don't have atomicity
so doesn't matter.. whatever you do it's going to be wrong regardless
:B
 
Yeah. I know. I didn't design the DB.
 
Wes
> eventual consistency
eventual never happens
 
3:34 PM
does phpstorm have issues connecting to a linux server hosted on the same network as one's workstation?
 
Quick question: For those that use Visual Studio Code, what extensions do you use for supporting PHP use with Code
 
using VS Code for PHP is a world of pain, at least compared to what I'm used to from phpstorm
 
It is painful
But I don't see the point of using one IDE for one language
 
I use phpstorm for PHP, I use VS Code as a general editor for text, HTML, CSS, sometimes JS
 
@RonaldMunodawafa Do you also use your toothbrush for the toilet? :)
 
3:40 PM
@Tiffany I use vs code for TS only
 
@PeeHaa Would have been funnier if he used the toilet brush for his teeth.
 
I don't think it makes a difference :P
 
:-)
 
No but you use a hammer on differently sized nails
 
But not for screws
 
3:41 PM
PHP is not a language that warrants special treatment
 
@RonaldMunodawafa there are more than one hammer
 
@RonaldMunodawafa of course it is
I use an IDE because I want proper support for the language I am using
 
What makes it a special language in need of special treatment
 
Otherwise I would just open my text editor
 
is PHP the primary language you use to develop in?
 
3:42 PM
No
 
or how frequently are you developing in PHP?
 
@RonaldMunodawafa All languages do of you want to use an IDE
 
@RonaldMunodawafa Why would it be otherwise?
 
Otherwise just use a text editor
 
it becomes a question of usage. If you're not regularly using PHP, then I can see your reasoning behind not wanting to purchase an IDE. However, if you're doing it once or more a week, then why not?
 
3:42 PM
Just started. Coming from the F# world
 
And no imo there is nothing wrong with using a text editor to hack things together
 
What did you use for F#?
 
@PeeHaa I'm not denying the use of an IDE but I cannot justify installing multiple IDE's simply because I'm using multiple languages
Visual Studio Code
 
Goddammit, just get netbeans its free
 
3:43 PM
@RonaldMunodawafa how often are you developing in PHP?
 
I've just started
 
@mega6382 VS Code is free too.
 
I'm writing my first code
 
So is Atom.
 
VS Code > Atom
 
3:44 PM
@Allenph But they are editors
 
Atom slows down too many machines
@mega6382 Extended, they become more conventient than IDE's
 
you can still give an estimate of how often you plan to use PHP... have you switched jobs, are you wanting to learn PHP for fun, are you wanting to learn PHP for professional development, has your job duties shifted?
 
You are wrong
That's all
 
@Allenph I am atalking about using a proper IDE, netbeans provides a decent solution management system
 
But don't let me stop you :)
To each their own (even when it's wrong)
 
3:45 PM
@mega6382 Never used it. The only full fledged IDE I've ever used was Eclipse and I hated it.
 
@Tiffany I'm freelancing and I'm going to be using PHP mostly for web frontends
 
@Allenph hmmm, tbh I am not a fan of eclipse either
 
But even then JavaScript is mor eprominent than PHP
 
@RonaldMunodawafa what do you mean?
 
More code is written in other languages not PHP
PHP's role is mostly for web scriping in my case and even then it's not the major language of use
 
3:47 PM
Bitch Please
 
@RonaldMunodawafa if you're going to be writing PHP more than twice a week, I recommend investing into an IDE, it will make your life easier. If it's like once a month, then use whatever extensions for PHP in VS Code. I've tried a few of the "suggested" ones and they were okay, but did not compare to functionality in Phpstorm.
 
@RonaldMunodawafa God tier kek.
 
@RonaldMunodawafa The proclivity of Wordpress begs to differ. (though, Wordpress sucks)
 
I don't think OP was generalizing there
Just for his use-case probably
 
He is definitely generalizing
 
3:48 PM
How is he generalising?
 
good god, I need to google words that I'm unsure of the meaning before using them
 
> web scriping
Sounds painful.
 
:P
 
@RonaldMunodawafa You are talking about PHP overall and not just for your case right, when you say "More code is written in other languages not PHP"?
 
I mean in my use case
I write other code not PHP
PHP joined the toolbox today
And I'm setting up my workstation
 
3:50 PM
Last thing I am going to say is:install phpstorm EAP if that is still a thing and use it for php/html/js/css
Future you will be grateful
 
@RonaldMunodawafa But you were generalizing when you said this, right?
3 mins ago, by RonaldMunodawafa
PHP's role is mostly for web scriping in my case and even then it's not the major language of use
 
You solved your behat issue @Danack?
 
@mega6382 he wasn't... he says "in my case" in the sentence and based on other context he provided
 
@Tiffany yeah, but check the last part
 
I assume yes as you use a headless browser thing @Danack
 
3:52 PM
jetbrains.com/toolbox/app hmmmm will this make phpstorm updates seamless?
 
Anyway, @RonaldMunodawafa if it only to be used for scripting then go ahead and use VS code, its a good tool. If you are already familiar with it(with you using it for F#) it will probably be much easier for you to use.
 
It seems the most reliable extensions I'm using are the ones doing weird things like deleting unused code rather than hinting at unused references (not sure what to call them)
I'm sure they could be configured but what crazy conventions they are for a system to remove data if it cannot generate it again and that data is at the heart of the system's operation
Thank you guys for the advice
 
one of the things I've come to being unable to live without in Phpstorm is the "Find Usages" feature, or "Find in Path" ... VS Code doesn't have anything that comes close.
Sure, I could use powershell/bash and search in files with regex, but "Find Usages" can find where something is defined within a project, and that helps me tremendously.
 
I'm learning about synthetic bridge methods in Java ... and I start somewhat preferring what we have in PHP...
 
@PeeHaa er, you may need to be more specific than that. I have a few issues on that topic....
@PeeHaa No, not headless for this one. It runs chrome in a container, so that it generates screenshots when it fails, and you can VNC into the box to watch the tests run.
 
4:03 PM
@Tiffany Extensions provide that
In Atom
 
@Tiffany it does have that, but it is not very powerful, its called "List all references"
 
I'm not putting down IDE's
By the way
 
@PeeHaa nope - still doing this shite: github.com/Danack/example/blob/…
 
@RonaldMunodawafa never used Atom, so I don't know. Besides, you said you were using VS Code and that Atom is much slower than VS Code.
 
4:39 PM
serializing a com() will cause a crash – #77177
 
Wes
we have a way of saying, can be translated as "explain the bullshit"
it happens when someone tries to sell a bullshit they just said by explaining it even
the guy tried to explain me the expectations of the users... which is actually what he/she thinks are the expectations of the users
do you have that way of saying in britannia? :B
 
You could just say "I call bull shit."
 
5:24 PM
so, there is this thing: petitions.whitehouse.gov/petition/… :D
 
I had a coworker that was really into Alex Jones. I remember this one time another coworker and I were having a discussion about the voting system and he comes up and goes "Allen's right. It's all rigged. Alex Jones told me about these paintings in France by the illuminati..."
 
oh, I like Alext Jones too, but in the same way as I love "flat earth" and "planes are actually demons" videos
 
Yeah. Me too. This guy 100% believed it. It was amazing.
 
why the past tense? His site is still up and, according to stats, he has the 2nd most popular Android app
 
Yeah. I guess you're right. I'm sure my ex-coworker STILL believes it.
@tereško Wait...this is actually quite impressive considering the number of non-American android users.
 
5:34 PM
people like him - 99.99% of his theories are hilarious, he's a fucking living meme, the production is close to cable-channel quality, he's sometime funny and once-in-the-blue-moon he does proper journalism regarding some buried shit
and people like long-form-podcast content, when cleaning the house or making food
 
Speaking of memes I had pity for this neck guy being made fun of till he released that video of himself and I realized hes one of the most stupid people I've ever seen.
 
oh, and he's probably quite popular in Russian Federation, because there seem to be a lot of russian cable channels, that are producing similar content
@Allenph the "neck guy" is a professor ... maybe even tenured
 
We're definitely not talking about the same neck guy.
 
@tereško This guy
 
5:42 PM
that's new
have not seen anything about it yet
 
I'm amazed. There are a trillion dank memes.
 
he looks high
 
ow .. today is man's day!? Is it exist for you guys too?
 
What is the 27th most popular website in the world?
 
@user3326078 you probably want to check Alexa for this
 
5:54 PM
Please tell me website I am slow internet
 
Also I don't have amazon alexa
 
oh wow .. pornhub is #29 ..! wtf
 
01:00 - 18:0018:00 - 23:00

« first day (2956 days earlier)      last day (1986 days later) »