Comment by Blackbam on PHP: Evaluate class constant string as code (syntax...
@u_mulder: You won! Did not know there is a function like that, thank you <3
View ArticleComment by Blackbam on How to create a dialog with “Ok” and “Cancel” options
Link is broken this is why you should use SO code snippets please.
View ArticleComment by Blackbam on Dynamic mapping of Single Table Inheritance
Just an idea: Is there such a high amount of classes? What about creating the adequate child class from the constructor by calling a required method? It is not abstract :)
View ArticleComment by Blackbam on Chrome Devtools says there's issues, but the Issues...
Wondered quite some time about this. Still no solution and still no fix for that?
View ArticleComment by Blackbam on PHP (IntelliJ/PhpStorm inspection): "Method should be...
Could be possible indeed, I have lots of them installed. But then still the question remains if the third-party plugin is suggesting that for any good reason?
View ArticleComment by Blackbam on PHP (IntelliJ/PhpStorm inspection): "Method should be...
Making methods final might increase security and cleanliness of the code, but it it harms reusability and might make extension maybe unnecessary difficult. So it entirely depends on the app, I guess I...
View ArticleComment by Blackbam on Symfony RabbitMQ Bundle in AWS (managed service): Any...
@AlexanderPravdin Saved on the server locally just as in usual PKI structures?
View ArticleComment by Blackbam on Bootstrap 3 Adding a container-fluid inside a container?
Perfect answer, especially because it works without position absolute and does NOT assume that it is possible for any case to not use container-fluid within a container.
View ArticleComment by Blackbam on Is it possible to select all elements with an...
Did not know the :is selector, interesting. Of course with SASS you can also easily make a loop here. Still I miss a CSS feature which allows selection on data attribute wildcards or comparison operators.
View ArticleComment by Blackbam on How to increase memory limit for PHP over 2GB?
You should explain your answer, it might not be clear for anyone what this config means. In certain cases it might be quite dangerous to have no limits at all!
View ArticleMore important than !important (a higher level !important)?
The title says most of it. Is there a CSS keyword which overrides !important at one higher level or is there some feature like this planned in any newer CSS spec?Of course, I know that !important is a...
View ArticleTranspose and flatten multiple rows of array data [duplicate]
Is there a native PHP function to zip merge two arrays?Look at the following example:$a = array("a","b","c");$b = array("d","e","f");$c = array("g","h","i");var_dump(array_merge($a,$b,$c));This...
View ArticleHow to set the component size with GridLayout? Is there a better way?
I am working on a larger GUI with Java and I am becoming angry on Layout Managers.I have a "Settings-Panel" with a variable number of JComponents in it (Labels, Buttons, JSpinners, JSliders,...). I...
View ArticleSymfony RabbitMQ Bundle in AWS (managed service): Any way to get this working?
We really tried a lot but it still can not get the Symfony RabbitMQ bundle (https://github.com/php-amqplib/RabbitMqBundle) running in AWS (with Docker). AWS only allows AMQPS and port 5671 to be opened...
View ArticleAnswer by Blackbam for Can I use an HTML input type "date" to collect only a...
No you can not, but input type number provides exactly the functionality you need for this purpose.Example:<input type="number" min="1900" max="2099" step="1" value="2016" />
View ArticleRecursive function in PHP - how not to return false [duplicate]
A WordPress function should return the top level term id of a given child term id - terms can have 1..n parents, so a recursive function seems to be useful here.// Recursive functionfunction...
View ArticleHow to fully dump / print variable to console in the Dart language?
Hey there I am searching for a function which is printing a dynamic variable as completely as possible to the console in Dart language.In PHP for instance I would use var_dump() in order to get all...
View ArticleWebpack 5 (Webpack Encore): How to run multiple webpack instances on the same...
For a pretty large Web application I want to run multiple instances of Webpack (Encore) on the same page. When I put all the source code into a single Webpack configuration it all works. However when I...
View ArticleAnswer by Blackbam for Webpack 5 (Webpack Encore): How to run multiple...
Finally I solved it by adding the following setting to the configuration:appConfig.output.chunkLoadingGlobal = 'appConfigChunkLoadingGlobal'As simple as that. It makes sure that the global Webpack...
View ArticleWhat exactly is the difference between an anonymous function and a static...
Basically the purpose of the static keyword is totally clear to me, the PHP docs only explain the purpose of the keyword in the context of classes. I noticed one of my IDE plugins suggesting me that I...
View Article