god it's 2020 and i still have no tool for creating diagrams and kinda stuff that is easy to use. programs i tried are either too automatic or basically mspaint
also there are so many bad options that if a good program exists it's basically impossible to find
It is still not concrete. Concrete would be if you tell what you are trying to do and then ask if MongoDB is good choice for that. You are not obliged to do so, I am just telling what could push people more to answer your question. What do you have so far? What do you know regarding MongoDB sharding?
@TheodoreBrown LG. I'd save the "It requires half as many characters, saving developer keystrokes." and refer to the motivation from the previous section. Keystrokes are not a great argument :)
is there a somewhat performance friendly method of checking the cAsInG of a classname that does not involve get_defined_classes ? class_exists and ::class are useless
@Siva It is hard to debug through chat. You should use Xdebug in IDE so you'd be able to debug line by line and see why data is not there (if should be per presumption).
@Tarun If it is related over foreign key constraint with other tables you could have issues unless those are exact same types - if one changed, other should be changed too.
@IluTov maybe you could do a non-recorded dry run with Derick and then figure out if you want to do it for real. To be clear, for the mixed one I did, some of my answers took my about five goes to get out into semi-intelligible english, but Derick edits all of the false starts out.
apropos of nothing - bikeshedding high quality source.
2
@TheodoreBrown while it is a free world, linking to a chat transcript of people talking here, is not a neutral thing to do. You should probably only do it when someone here has been a massive dick and you need to point out their bad behaviour.
Otherwise, you should make a summary of the conversation and just use that.
@NikiC Makes sense. By any chance, can you scan the top 2k Composer packages and see if there are any usages of @@? It would be nice to have a metric for the BC break section.
anyone remember off hand the guide to building a dev environment for php docs? I found this one but could've sworn there's a better one... can't remember where it's at
I think salathe or cmb linked it to me once in here...
@Tiffany probably because you can see if it fails to build from the command line. And failing to build is the only real error condition.
> I would appreciate hearing from the people who have done the work on the attributes RFC, for them to say why they still prefer the syntax that they chose, or if they think that @@ would be an acceptable alternative.
@beberlei @NikiC I was drafting words, and realised that saying them now might be better than saying them later.
trying to refresh my memory, this may end up as rubber ducking... I know I had completely built the docs a few months ago and had it working, I had a shared folder mounted to my guest VM for doc-en, and a separate folder on the VM only for rendered docs, which was symlinked into a folder so that I could see the rendered docs in a page...
but for some reason my doc-en folder on my VM is empty..
but the doc-en folder in host OS has stuff... which could mean the mount needs to be redone...
but I'm wondering if I should just clone the docs from github now since we're moving away from SVN anyway... but... I need to make sure that the changes I make in host OS are reflected in guest OS, otherwise what's the point... so mount would need to be fixed regardless
@Derick The benefit IMHO is that, except if the documentation is wrong (which may well be the case), the format doesn't give you a ISO8601 formatted date, which is rather confusing
@NikiC Yeah, is that enough of a reason to warrant (potentially) breaking people's code? If their app use that ISO8601 now successfully, then they'll get warnings. It's not that the use of the constant is wrong, it's that its value is.
If the docs are to be beleived Atom (example: 2005-08-15T15:52:01+00:00) ISO-8601 (example: 2005-08-15T15:52:01+0000) (it's the ':' in the timezone part)
oh, it's wrong. If you use a separator, you need to use it everywhere, I believe.
The point about fractions makes no sense, as the constant was added before PHP supported fractions.
And Dries is also conflating parsing with generating. All the formats he used with "parseFromFormat" would have been parsed just fine by the constructor.
I vote for not changing this.
(Because it's not broken per-sè). Even if you think it is, it's not clear cut, so we shouldn't add a deprecation notice.
I don't have any strong feelings about this one, like said above I just added it because Kalle thought it was odd to depend on an INI setting that needs to be explicitly added
Cause doing gdb --args sapi/cli/php -d opcache.jit_buffer_size=16M -d opcache.jit=0001 Zend/tests/bug63635.php to manually check the file with GDB seem to well not cause any segfaults but using the test runner it does
@NikiC what JIT settings do you use? Because I manage to segfault by passing -d opcache.jit=0001 and getting the following backtrace:
Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1 0x00007ffffe4ad9ae in __GI___strdup (s=0x18 <error: Cannot access memory at address 0x18>) at strdup.c:41
#2 0x000000000838a2df in php_error_cb (orig_type=2,
error_filename=0x18 <error: Cannot access memory at address 0x18>, error_lineno=0,
But if I do -d opcache.jit="on", or -d opacache.jit=1101 it works fine
So I'm wondering if it's just my machine being weird or if that's the root cause. As I don't see Azure defining this setting
okay just removing the opcache.jit setting gives me some progress on the actual issue
@NikiC You can just put "gdb" behind the .sh file name? --- I did notice that the .sh file does not set the environment variables from --ENV-- btw. Might make a patch for that.
@Danack I had an off-list discussion with Benjamin and Martin about it. I updated the RFC draft with Benjamin's reasoning as well as an additional point in favor of @@ (support for nested attributes): gist.github.com/theodorejb/071fa8790dec4b0de51f9b016688feb4
I have the best back trace ever: (gdb) bt #0 0x000000007fffffff in ?? () #1 0x000000000863ea58 in ?? () #2 0x00007ffffde5b200 in ?? () #3 0x00007ffffffea2f0 in ?? () #4 0x00007ffffde15020 in ?? () #5 0x800000000002b614 in ?? () #6 0x00000000fde5b2e0 in ?? () #7 0x0000000000000000 in ?? ()
I'm trying to upload product to my PHP upload system, that includes multiple variables, images among them.
I'm using ajax function to transfer string variables and newForm() (that related to images fetched from input[type="file"]). The main goal is to upload the image and strings in upload.php f...
What's the proper way to add a php-cs-fixer config to a repo in a non-executable format? (i.e. a json, yml etc.)? I have users which can commit to the repo, but they shall not be able to execute any arbitrary code on the machine running the cs-fixer :x
@Wes do you have any decent articles why utility first CSS approach is probably the wrong approach? I am having a hard time conveying my case in a decent way :)
@IluTov technically yes, but turns out starting a docker container on the machine for every pipeline task is too slow (I mean like 5 sec overhead) … that's why there's just one bare runner
@bwoebi But if they have full access to the Git repo what stops them from adding something to .gitlab-ci.yml which they shouldn't? How's that different from the .php_cs file?
@PeeHaa well, some people can push to some branches which are deployed on staging servers
but not everyone who can push to staging shall be able to push to prod
The .php_cs file is currently the only possible (unsupervised) backdoor
and I want to eliminate that. How?
@IluTov there are currently no automated test runs (yet)
@IluTov @PeeHaa the primary issue is: the cs-fixer needs to be able to push back to the repo. So there need to be keys allowing the push back to git. Any user who can somehow trigger a cs-fixer pipeline could add code to the .php_cs file to push to an arbitrary branch.
and we want to have automated runs on the cs-fixer (full stop on that)
I know the doc builder is complaining about <title> being outside of a container, I'm trying to figure that one out, but can anyone else see anything wrong with this bit of code? I keep getting either validation errors, or segfaults.
I think the shorter attribute syntax RFC is ready for discussion, but before I bring it to the mailing list I'm curious what other voters think about including support for nested attributes.
@beberlei was concerned that this could set up the RFC for failure. Do you think there are any potential problems with including support right away in PHP 8, or would it be better to leave this feature for a later RFC (probably targeting PHP 8.1)? gist.github.com/theodorejb/071fa8790dec4b0de51f9b016688feb4
Yeah. I just know that @NicolasGrekas mentioned on list being quite disappointed that nested attributes wouldn't be supported (externals.io/message/108907#109688).
But if most voters feel it would be better to postpone until later I can reword the RFC to clarify that it won't be added now, but the shorter syntax doesn't have conflicts with it. @NikiC
@PaulDragoonis Okay, I updated the RFC to save nested attributes for a future proposal.
Now it just says "The @@ syntax doesn't have any conflicts with nested attributes, so it will be straightforward to add support for them in the future if desired (without needing any special cases or changes to const expressions)".
@TheodoreBrown It's probably before PHP 8.0 or never. RFCs with large BC breaks are usually a no-go and those with alternative syntaxes don't do great either. I think you make some good arguments.
@TheodoreBrown Small note: Rust actually uses the #[attribute] syntax for annotating elements. #![attribute] is used for scope wide settings (like declare in PHP).
@TheodoreBrown Ah sorry. Yeah nested attributes should be moved to a separate RFC. If you risk too much discussion / too many objections you could miss the deadline and the syntax would be final.