Open to installing various other versions of luajit?

Hello,
I'd like to use luaver to install versions of luajit more recent than 2.1.0-beta3 or forks of luajit, because 2.1.0-beta3 segfaults on lots of well-behaved lua programs like this one https://gist.github.com/sharpobject/1a119447c15a3daa3933531f320a269d
Would you be open to a PR that adds the option to install more recent versions of luajit from https://github.com/LuaJIT/LuaJIT or forks of luajit from https://github.com/openresty/luajit2 or https://github.com/moonjit/moonjit?
If so, do you have any thoughts on how that should work? With the exception of moonjit, I don't think we will get tagged releases from these repositories.

Since this repo is not maintained anymore, you can check this: https://github.com/MunifTanjim/luver
It supports installing LuaJIT from latest git.


Mlinvill feature stream reconnect

Sorry for the noise!
Here is the fixed, proposed change to run_coincidence(). The idea is that the underlying kafka library is emitting some classes of exceptions that we can ignore and simply reconnect the stream to recover. I haven't tested this code.
I did also reach out to the SCiMMA folks to see if anything along these lines has been implemented in hop.

Okay, this implementation is more polished now. Non-retryable errors can be configured to cause the server to exit (or not). I addedretriable_error_count, max_retriable_errors and exit_on_error as class attributes. When max_retriable_errors is exceeded, they become fatal errors. For each valid message received, decrement the retriable_error_count, as a naive recovery mechanism. Let me know what you think.


Update ADOPTERS.md

Added missing contact person for Expedia Group
Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Sorry for the fuss, but three things needed.

first, to sign the commit to make DCO happy. You can typically do git commit --amend -s.
second, the spell checker wanted you to add your last name to .github/styles/vocab.txt.
third, to run prettier on the adopters file to make things like up.

:/

@lindgren let me know if we can help out

I will shortly raise a new PR


Project build

Can you please fix the project build as it fails to build on my machine?

What error are you running into exactly?  What version of iOS are you targeting and what version of Xcode are you using?

Error: (null): could not read data from '/Users/kartikthapar/WorkCenter/Projects/IBActionSheet/IBActionSheetSample/IBActionSheetSampleTests/IBActionSheetSampleTests-Info.plist': The file “IBActionSheetSampleTests-Info.plist” couldn’t be opened because there is no such file.
Primarily, some of the source code files seem missing.
Deployment Target is: 8.0/8.1
Xcode version: Version 6.1.1 (6A2008a)

The newest changes should fix the issue you're having.

Thanks!


Allow defining translation functions in a module for reuse. #9

@0xAX Could you add a test + documentation on how to use it? Looks pretty good to me, just one question though: have you tested this within the context of a release with exrm? I don't know if you are using exrm, so if not, no worries.

@bitwalker referenced #9, it is implemented with exrm part ( bitwalker/exrm#160 ).

Hello @bitwalker, I've updated PR.
Changes since previous version: Added documentation to the README.md and creation of archive fixed. Tests for this are in the exrm - https://github.com/bitwalker/exrm/pull/160

@0xAX Awesome! Do we have any documentation/tests on the imports feature in conform itself? It may be rare, but I'd like to make sure it's covered outside the context of exrm. The current documentation you've added to the README implies it can only be used with releases, but it seems to me that it's more general than that, and in fact the behavior with exrm is/should be transparent to the end user. Thoughts?

@bitwalker,

Do we have any documentation/tests on the imports feature in conform itself

Did you mean ability to use import feature without exrm? We have no this feature for now, because conform code uses archive generated by the exrm now.

and in fact the behavior with exrm is/should be transparent to the end user

What did you mean here?
cc: @liveforeverx

@0xAX Ah ok, I guess that's where my confusion lies then, as I was assuming the import feature worked both inside and outside of releases. Is this something we should consider? I don't mind merging this for the time being and making that a separate thing, for either yourself or someone else to work on.
Since the feature is currently specific to releases, you can ignore my comment from your second quote :)

@bitwalker @0xAX I think there should be documented, that it is possible (for example in mix conform.effective) use any included module as it happens after loadpaths tasks, but in case, if conform script will be generated, there is only included conform with elixir themself.
If somebody want to include any another modules for use, he should add .ez archive with needed applications and modules in it alongside of schema. This has definitely use without exrm too. We can may be add task mix conform.package, which will be generate the archive as exrm do, and change exrm to simple use the function, which generates this archive.

@bitwalker there is no tasks to generate full .schema in conform themself, ok than we don't need conform.package.

@0xAX May be add mix conform.gen_schema, which doing something (what mix conform.effective doesn't do, but exrm does it) like merge all schemas(what happens in exrm packaging) from sub applications and generate archive from import. After that, it can be used definitely without exrm. Without any release tool or with any other release tool. @bitwalker ?

@bitwalker I've updated conform and exrm. Now conform provided mix conform.archive task to create an archive that contains dependencies pointed by the import in a schema. So this feature can be used as in exrm so in conform without exrm.

Awesome, I think this is good to merge!
@liveforeverx any last thoughts?

Thanks @0xAX :)


Improve documentation

Improve documentation about enabling the OAuth protocol.
The section "Add the needed CAS services" is completely wrong. I lost hours solving it. The docs said I need to register a bean with id "serviceRegistryDao" where it would never be created.
Also it's very difficult to someone answer in the mailing lst, there isn't too much discussion there. Anyway, this should be more clear on documentation.

Which docs for which version? Could you provide a reference link?
I'd let @leleuj comment, but I have not had an issue configuring Oauth with CAS. What specific issue did you run into? Which section of the docs should be updated?

http://jasig.github.io/cas/4.1.x/installation/OAuth-OpenId-Authentication.html
Section "Add the needed CAS services" tell how to add the OAuth Registered services. If you follow it strictly, and debug the service manager, you will discover that it will not be registered. The default on the project is to register just services described on JSON files, because in file deployerConfigContext.xml already have a bean with id "serviceRegistryDao".
To get this work, I created JSON files with the services, instead of beans as it is informed on this section. But it's still not working, I'm facing problems with the callback URL, but this is another thing.

Yes, that is all correct. What this is trying to teach you is that you need to register services with your services manager. The docs show you how to define those services in beans and xml, while the default actually is going to handle service registration in JSON. So you don't need to redefine your service registry. You just need to create the service in JSON format. So the docs are not wrong; they are just not relevant to the default config :) (which one could argue, that they are nonetheless wrong)
We have fixed in later versions, but feel free to submit me a patch to fix this.

@mmoayyed Thank you!

I updated docs for master.

The main idea is to add a CAS service to define an OAuth client application, it being loaded by JSON or another way (serviceRegistryDao).
@mmoayyed : in the current documentation: http://jasig.github.io/cas/4.1.x/protocol/OAuth-Protocol.html, I don't see any reference to this need to create a CAS service for each OAuth client.

You want to see http://jasig.github.io/cas/4.1.x/installation/OAuth-OpenId-Authentication.html

The page you refer to is a parent page, that describes all the aways OAuth functionality can be handled in CAS.

But if I click on "OAuth protocol" on the right menu ("Integration") from http://jasig.github.io/cas/4.1.x/index.html, I get the page I mentioned: where do I click to get "yours"?

On that very same page at the top, you will see the following paragraph:
You can configure the CAS server with:

- OAuth client support, which means authentication can be delegated through a link on the login page to a CAS, OpenID or OAuth provider.
- OAuthn server support, which means you will be able to communicate with your CAS server through the OAuth 2.0 protocol, using the Authorization Code grant type.

There are links for each bullet point that take you to the appropriate configuration.

Yes, indeed. As I saw: "CAS OAuth Server Support", I thought I was on OAuth server support page. I think we should only have the first paragraph on this parent page...

Fine with me. :) Feel free to make the change please

I hope it makes things a little clearer: https://github.com/Jasig/cas/pull/1358


Make KrakenD pass all user requests through a endpoint first

We have a scenario in which we are using JWT (which has user_id enccoded inside it).
We want to pass all user requests through an endpoint in which it takes the JWT Token, extracts the user_id and then put it in the header (As I understood the krakend itself can't extract info from JWT)
Then we want to call the user requested endpoint.
For example I want to access this api:
/api/products/list
And I want to call this api first to extract the user_id from JWT Token and put user_id in the header:
/api/user/get_user_info
then KrakenD must go back to the requested user endpoint but with user_id in the header.
/api/products/list
So that the above endpoint knows which user is requesting.
How can I implement this?

Hi @smahdis
Check the  section Propagate JWT claims as request headers of the JWT documentation

Thanks for the answer, I edited my first question.
I still need to route all user requests to an endpoint, change some header and then continue to the requested endpoint.
Is that possible?


Possibly too BIDS-y?

I'm looking at the changes since the last release (https://github.com/poldracklab/sdcflows/compare/0.1.1...master), and this stands out to me:
https://github.com/poldracklab/sdcflows/blob/a3a9978ec7e665eb278e53015f0a1c8902e563da/sdcflows/workflows/base.py#L144-L149
It looks like we're moving from passing a dictionary of fieldmaps and metadata to passing a PyBIDS BIDSFile object that provides access to these things.
I am concerned that we are tying the methods, which are general, too closely to a BIDS organizational scheme. While I think ingesting BIDS datasets is good, this tool will almost never be used in isolation, because you aren't generally going to want to susceptibility-correct non-motion-corrected files. From the perspective of benchmarking and making comparisons, too much BIDS integration may reduce flexibility, as well.
There's also a concern with relying on PyBIDS data structures like BIDSFile. From FitLins work, I can tell you that keeping in sync with the PyBIDS API can be difficult.
I think an interface or function to populate the available fieldmaps and metadata from BIDS is a good thing to provide, but I would think that it would be ideal if the actual workflows simply worked with nipype inputs and some vanilla Python data structures (e.g., dict).
Apologies for not bringing this up on the relevant PRs. I haven't been following this repo as closely as I should.
This is partly inspired by Neurostars #5207, which asks about the selection process as an isolable tool. By tying too closely to BIDS, we may be making this less usable in isolation.

It looks like we're moving from passing a dictionary of fieldmaps and metadata to passing a PyBIDS BIDSFile object that provides access to these things.
I am concerned that we are tying the methods, which are general, too closely to a BIDS organizational scheme. While I think ingesting BIDS datasets is good, this tool will almost never be used in isolation, because you aren't generally going to want to susceptibility-correct non-motion-corrected files. From the perspective of benchmarking and making comparisons, too much BIDS integration may reduce flexibility, as well.

The change is only for the workflow that orchestrates the available fieldmaps. I've been back and forth with this - whether it should be part of fMRIPrep's codebase or offered here for other tools to reuse.
Right now it is probably an overkill but in the near future we can think of averaging several solutions or allowing more complex IntendedFor prescriptions.

This is partly inspired by Neurostars #5207, which asks about the selection process as an isolable tool. By tying too closely to BIDS, we may be making this less usable in isolation.

When attempting to use in isolation, one should directly access the appropriate workflow. I don't think this particular change affects that.

There's also a concern with relying on PyBIDS data structures like BIDSFile. From FitLins work, I can tell you that keeping in sync with the PyBIDS API can be difficult.

Yes, I'm also concerned with this. Perhaps, I accepted this friction because the BIDSFile object is not to be passed down the line to subworkflows.

I think an interface or function to populate the available fieldmaps and metadata from BIDS is a good thing to provide, but I would think that it would be ideal if the actual workflows simply worked with nipype inputs and some vanilla Python data structures (e.g., dict).

I'll try to think this through, it might be possible to find a common ground where the interaction with PyBIDS can be scoped into a function that returns the fieldmap correction schedule with vanilla Python structure.

The preferred interface now is lists of pairs (str path, metadata dict). Please reopen if there is something else to do here. SDCFlows also provides a convenience method to generate these from a pyBIDS get_fieldmap() call.


Guardians are not spawning naturally

Currently Guardians are not spawning naturally in ocean monuments, at least on SV (and likely also on SF, see https://forums.spongepowered.org/t/guardians-not-spawning-at-ocean-monument-after-migrating-to-spongevanilla/11143/3?u=minecrell). This can be reproduced by e.g. generating a world with the seed -1211445164 which has a ocean monument near the spawn.
The issue seems to be caused by the world generation changes made by Sponge, the custom chunk provider does not implement getPossibleCreatures in the same way as Vanilla:
    public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
    {
        BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(pos);

        if (this.mapFeaturesEnabled)
        {
            if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.func_175798_a(pos))
            {
                return this.scatteredFeatureGenerator.getScatteredFeatureSpawnList();
            }

            // This is where Guardians are coming from
            if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.func_175796_a(this.worldObj, pos))
            {
                return this.oceanMonumentGenerator.getScatteredFeatureSpawnList();
            }
        }

        return biomegenbase.getSpawnableList(creatureType);
    }

@Deamon5550

@Deamon5550 Any news on this issue?

I'm pretty sure this applies to other mobs. For quite some time my players have been complaining that wither skeletons, blazes, etc do not spawn either at all, or so rarely it's impossible to tell the difference. We've seen this on a server without any custom plugins too.


run script problem

i found your script in which you tell how to tiktok videos download without watermark. the problem is, i don't know how to run this and by using this how i can download videos. can you help me please

The current API is no longer working, please wait for the update

updated


Fails to built with numpy 1.20.0, py 3.10 or 3.9.

https://bugzilla.redhat.com/show_bug.cgi?id=1913439
python-jsonpickle fails to build with Python 3.10.0a4 and Python 3.9.1. This seems related to the updated NumPy.
______________________ NumpyTestCase.test_dtype_roundtrip ______________________
self = <numpy_test.NumpyTestCase testMethod=test_dtype_roundtrip>
def test_dtype_roundtrip(self):
    if self.should_skip:
        return self.skip('numpy is not importable')
    dtypes = [
        np.int,
        np.float,
        np.complex,
        np.int32,
        np.str,
        np.object,
        np.unicode,
        np.dtype('f4,i4,f2,i1'),
        np.dtype(('f4', 'i4'), ('f2', 'i1')),
        np.dtype('1i4', align=True),
        np.dtype('M8[7D]'),
        np.dtype(
            {
                'names': ['f0', 'f1', 'f2'],
                'formats': ['<u4', '<u2', '<u2'],
                'offsets': [0, 0, 2],
            },
            align=True,
        ),
    ]

    if not PY2:
        dtypes.extend(
            [
                np.dtype([('f0', 'i4'), ('f2', 'i1')]),
                np.dtype(
                    [
                        (
                            'top',
                            [
                                ('tiles', ('>f4', (64, 64)), (1,)),
                                ('rtile', '>f4', (64, 36)),
                            ],
                            (3,),
                        ),
                        (
                            'bottom',
                            [
                                ('bleft', ('>f4', (8, 64)), (1,)),
                                ('bright', '>f4', (8, 36)),
                            ],
                        ),
                    ]
                ),
            ]
        )

    for dtype in dtypes:

      self.assertEqual(self.roundtrip(dtype), dtype)

tests/numpy_test.py:95:

/usr/lib64/python3.10/site-packages/numpy/core/_internal.py:61: in _usefields
names, formats, offsets, titles = _makenames_list(adict, align)

adict = {'dtype': "[('f0', '<f4'), ('f1', '<i4'), ('f2', '<f2'), ('f3', 'i1')]", 'py/object': 'numpy.dtype[void]'}
align = 0
def _makenames_list(adict, align):
    allfields = []

    for fname, obj in adict.items():
        n = len(obj)
        if not isinstance(obj, tuple) or n not in (2, 3):

          raise ValueError("entry not a 2- or 3- tuple")

E               ValueError: entry not a 2- or 3- tuple
/usr/lib64/python3.10/site-packages/numpy/core/_internal.py:31: ValueError

It installs fine for me on Ubuntu 20.04 running python 3.9.1 on pyenv with numpy 1.20rc2 and jsonpickle 1.5.0. I can't find a published numpy 1.20.0, only the second release candidate for that.
In summary, cannot reproduce issue on 3.9.1, testing now on 3.10a4

It installs fine for me on Ubuntu 20.04 running python 3.9.1 on pyenv with numpy 1.20rc2 and jsonpickle 1.5.0. I can't find a published numpy 1.20.0, only the second release candidate for that.
In summary, cannot reproduce issue on 3.9.1, testing now on 3.10a4

Update: On 3.10a4, I get an error trying to install numpy 1.20rc2, but jsonpickle installs fine.

Update: On 3.10a4, I get an error trying to install numpy 1.20rc2, but jsonpickle installs fine.

The failure above is during tests, do those complete for you on 3.9 and 3.10?

The failure above is during tests, do those complete for you on 3.9 and 3.10?

Oh I thought you meant the failure happened when installing/building, I'll run the tests now.

Oh I thought you meant the failure happened when installing/building, I'll run the tests now.

Sorry, I started feeling sick before I finished the tests (covid test came back negative luckily). Just started feeling better a few days ago, I'll try and finish the tests today.

Sorry, I started feeling sick before I finished the tests (covid test came back negative luckily). Just started feeling better a few days ago, I'll try and finish the tests today.

No worries! Health always comes first. Glad you're feeling better and your test was negative. :)

No worries! Health always comes first. Glad you're feeling better and your test was negative. :)

Thanks :)
Anyway, the tests on 3.10 pass fine for me when I run make tox multi=1. This tests every version of Python I have with pyenv, so 2.7.18, 3.6.x, 3.7.x, 3.8.6, 3.9.1, and 3.10a4. All of them pass on every version.

Thanks :)
Anyway, the tests on 3.10 pass fine for me when I run make tox multi=1. This tests every version of Python I have with pyenv, so 2.7.18, 3.6.x, 3.7.x, 3.8.6, 3.9.1, and 3.10a4. All of them pass on every version.

Odd. And they pass with numpy 1.20.0?

Odd. And they pass with numpy 1.20.0?

They pass with numpy 1.20rc2. I can't pip install numpy 1.20.0 apparently, it says the latest release is 1.20rc2.

They pass with numpy 1.20rc2. I can't pip install numpy 1.20.0 apparently, it says the latest release is 1.20rc2.

How should I be running the tests? Maybe that's an issue. Previously we did py.test-3.9, and I've tried make test and tox. tox won't work in koji due to a lack of internet.

How should I be running the tests? Maybe that's an issue. Previously we did py.test-3.9, and I've tried make test and tox. tox won't work in koji due to a lack of internet.

Gwyn, https://src.fedoraproject.org/rpms/pyproject-rpm-macros can run tox tests in Koji.

Gwyn, https://src.fedoraproject.org/rpms/pyproject-rpm-macros can run tox tests in Koji.

Fascinating, thanks! I've added that in and it now fails thusly:
tox.exception.Error: Error: break infinite loop provisioning within /home/gwyn/fedora/git/python-jsonpickle/jsonpickle-1.5.0/.tox/.tox/bin/python missing ['tox-pip-version>=0.0.6', 'tox-venv']

Fascinating, thanks! I've added that in and it now fails thusly:
tox.exception.Error: Error: break infinite loop provisioning within /home/gwyn/fedora/git/python-jsonpickle/jsonpickle-1.5.0/.tox/.tox/bin/python missing ['tox-pip-version>=0.0.6', 'tox-venv']

Do you have tox-pip >= 0.0.6 and tox-venv installed?

Do you have tox-pip >= 0.0.6 and tox-venv installed?

So, technically, either plugin won't work in Koji and pyproject-rpm-macros don't support this:
https://github.com/jsonpickle/jsonpickle/blob/f5e8a617b8be7484597716e1d65c0e07f7525936/tox.ini#L7-L9
Latest pip from Fedora will always be used and we use https://github.com/fedora-python/tox-current-env -- it might fight with tox-venv.
As a mitigation, try patching/sedding the lines out, but I don't know if it will work.

So, technically, either plugin won't work in Koji and pyproject-rpm-macros don't support this:
https://github.com/jsonpickle/jsonpickle/blob/f5e8a617b8be7484597716e1d65c0e07f7525936/tox.ini#L7-L9
Latest pip from Fedora will always be used and we use https://github.com/fedora-python/tox-current-env -- it might fight with tox-venv.
As a mitigation, try patching/sedding the lines out, but I don't know if it will work.

Progress. I patched that part out, and am back to the original failure! :)
=================================== FAILURES ===================================
______________________ NumpyTestCase.test_dtype_roundtrip ______________________
self = <numpy_test.NumpyTestCase testMethod=test_dtype_roundtrip>
def test_dtype_roundtrip(self):
    if self.should_skip:
        return self.skip('numpy is not importable')
    dtypes = [
        np.int,
        np.float,
        np.complex,
        np.int32,
        np.str,
        np.object,
        np.unicode,
        np.dtype('f4,i4,f2,i1'),
        np.dtype(('f4', 'i4'), ('f2', 'i1')),
        np.dtype('1i4', align=True),
        np.dtype('M8[7D]'),
        np.dtype(
            {
                'names': ['f0', 'f1', 'f2'],
                'formats': ['<u4', '<u2', '<u2'],
                'offsets': [0, 0, 2],
            },
            align=True,
        ),
    ]

    if not PY2:
        dtypes.extend(
            [
                np.dtype([('f0', 'i4'), ('f2', 'i1')]),
                np.dtype(
                    [
                        (
                            'top',
                            [
                                ('tiles', ('>f4', (64, 64)), (1,)),
                                ('rtile', '>f4', (64, 36)),
                            ],
                            (3,),
                        ),
                        (
                            'bottom',
                            [
                                ('bleft', ('>f4', (8, 64)), (1,)),
                                ('bright', '>f4', (8, 36)),
                            ],
                        ),
                    ]
                ),
            ]
        )

    for dtype in dtypes:

      self.assertEqual(self.roundtrip(dtype), dtype)

tests/numpy_test.py:95:

/usr/lib64/python3.9/site-packages/numpy/core/_internal.py:61: in _usefields
names, formats, offsets, titles = _makenames_list(adict, align)

adict = {'dtype': "[('f0', '<f4'), ('f1', '<i4'), ('f2', '<f2'), ('f3', 'i1')]", 'py/object': 'numpy.dtype[void]'}
align = 0
def _makenames_list(adict, align):
    allfields = []

    for fname, obj in adict.items():
        n = len(obj)
        if not isinstance(obj, tuple) or n not in (2, 3):

          raise ValueError("entry not a 2- or 3- tuple")

E               ValueError: entry not a 2- or 3- tuple
/usr/lib64/python3.9/site-packages/numpy/core/_internal.py:31: ValueError

Progress. I patched that part out, and am back to the original failure! :)
=================================== FAILURES ===================================
______________________ NumpyTestCase.test_dtype_roundtrip ______________________
self = <numpy_test.NumpyTestCase testMethod=test_dtype_roundtrip>
def test_dtype_roundtrip(self):
    if self.should_skip:
        return self.skip('numpy is not importable')
    dtypes = [
        np.int,
        np.float,
        np.complex,
        np.int32,
        np.str,
        np.object,
        np.unicode,
        np.dtype('f4,i4,f2,i1'),
        np.dtype(('f4', 'i4'), ('f2', 'i1')),
        np.dtype('1i4', align=True),
        np.dtype('M8[7D]'),
        np.dtype(
            {
                'names': ['f0', 'f1', 'f2'],
                'formats': ['<u4', '<u2', '<u2'],
                'offsets': [0, 0, 2],
            },
            align=True,
        ),
    ]

    if not PY2:
        dtypes.extend(
            [
                np.dtype([('f0', 'i4'), ('f2', 'i1')]),
                np.dtype(
                    [
                        (
                            'top',
                            [
                                ('tiles', ('>f4', (64, 64)), (1,)),
                                ('rtile', '>f4', (64, 36)),
                            ],
                            (3,),
                        ),
                        (
                            'bottom',
                            [
                                ('bleft', ('>f4', (8, 64)), (1,)),
                                ('bright', '>f4', (8, 36)),
                            ],
                        ),
                    ]
                ),
            ]
        )

    for dtype in dtypes:

      self.assertEqual(self.roundtrip(dtype), dtype)

tests/numpy_test.py:95:

/usr/lib64/python3.9/site-packages/numpy/core/_internal.py:61: in _usefields
names, formats, offsets, titles = _makenames_list(adict, align)

adict = {'dtype': "[('f0', '<f4'), ('f1', '<i4'), ('f2', '<f2'), ('f3', 'i1')]", 'py/object': 'numpy.dtype[void]'}
align = 0
def _makenames_list(adict, align):
    allfields = []

    for fname, obj in adict.items():
        n = len(obj)
        if not isinstance(obj, tuple) or n not in (2, 3):

          raise ValueError("entry not a 2- or 3- tuple")

E               ValueError: entry not a 2- or 3- tuple
/usr/lib64/python3.9/site-packages/numpy/core/_internal.py:31: ValueError

pyproject-rpm-macros don't support this

I've noted it in https://bugzilla.redhat.com/show_bug.cgi?id=1922495

pyproject-rpm-macros don't support this

I've noted it in https://bugzilla.redhat.com/show_bug.cgi?id=1922495

NOTE: our setup.cfg has been locked down to numpy 1.19 until this is resolved.
I'm able to reproduce this on python3 / numpy 1.20 using these instructions.
vx is https://github.com/davvid/vx -- a single-file shell script that you can drop in your $PATH.  You can activate the virtualenv manually as well and get the result.
Setup
# Create the virtualenv
python3 -m venv env3

# Install dev requirements using vx
vx env3 pip install -r requirements-dev.txt

# Or install requirements by digging into the virtualenv
./env3/bin/pip install -r requirements-dev.txt

Test recipe
# Activate env3 using vx and run the tests
vx env3 make test flags=-x

# Or activate the virtualenv by pointing to the virtualenv's python
make PYTHON=$PWD/env3/bin/python test flags=-x

NOTE: our setup.cfg has been locked down to numpy 1.19 until this is resolved.
I'm able to reproduce this on python3 / numpy 1.20 using these instructions.
vx is https://github.com/davvid/vx -- a single-file shell script that you can drop in your $PATH.  You can activate the virtualenv manually as well and get the result.
Setup
# Create the virtualenv
python3 -m venv env3

# Install dev requirements using vx
vx env3 pip install -r requirements-dev.txt

# Or install requirements by digging into the virtualenv
./env3/bin/pip install -r requirements-dev.txt

Test recipe
# Activate env3 using vx and run the tests
vx env3 make test flags=-x

# Or activate the virtualenv by pointing to the virtualenv's python
make PYTHON=$PWD/env3/bin/python test flags=-x

The solution ended up being pretty simple.  The numpy release notes mention https://numpy.org/devdocs/release/1.20.0-notes.html#compatibility-notes and that seems related.  It's surprising -- we do register our dtype handler so that it also handles derived classes, but for some reason we now have to enumerate some of the custom dtypes when registering.  😹

The solution ended up being pretty simple.  The numpy release notes mention https://numpy.org/devdocs/release/1.20.0-notes.html#compatibility-notes and that seems related.  It's surprising -- we do register our dtype handler so that it also handles derived classes, but for some reason we now have to enumerate some of the custom dtypes when registering.  😹

Works, thank you so much!


Debian Bullseye 'main' panicked at 'Failed to load config: Os 🐛

💡 Summary
zer0bin does not start
🥰 Expected Behavior

/zer0bin/backend/target/release$ ./zer0bin-bin
thread 'main' panicked at 'Failed to load config: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/config.rs:45:33
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

🤬 Actual Behavior

📝 Steps to Reproduce

📌 Environment
zer0bin version: 1.02
Your OS: Debian Bullseye
Your browser: Firefox
I hope someone can help me with this Problem :)

The message clearly says "failed to load config". Please actually follow the self host instructions in the Wiki, which includes making the config file.


PHP’s DateTime parsing

In PHP, there’s a DateTime class. When I run the following code:
echo json_encode(new DateTime());

I get a JSON string: {"date":"2017-04-04 18:38:42.000000","timezone_type":3,"timezone":"Europe\/Berlin"}. Such string may be used for example in an API response, to be read by a JavaScript client application (as a JSON object) that’d like to display this date — but it has to parse it first. It’s possible to do the following:
const date = moment(theDateFromResponse.date);

And then somehow set correct timezone. But what do you think about parsing the whole mentioned JSON object by moment? For example:
let date = moment({
  // assume the following comes from API response
  date: '2017-04-04 18:38:42.000000',
  timezone_type: 3,
  timezone: 'Europe/Berlin'
});

// print “2017-04-04T18:38”
console.log(date.format('Y-MM-DDTHH:mm'));

This doesn't feel like a crazy idea. But I'm not too sure what all the fields are. What's timezone_type?
For now, you can do moment.tz('2017-04-04 18:38:42.000000', 'Europe/Berlin')

From https://stackoverflow.com/a/17711005/7178441:

Type 1; A UTC offset, such as in new DateTime("17 July 2013 -0300");
Type 2; A timezone abbreviation, such as in new DateTime("17 July 2013 GMT");
Type 3: A timezone identifier, such as in new DateTime( "17 July 2013", new DateTimeZone("Europe/London"));

On the other hand, there’s bug 49382 that suggests, that it shouldn’t be possible to use json_encode on a DateTime object.

This feature can't go in core moment because it relies on Moment-timezone being present to handle the IANA identifier if it is presented. Really all that is happening here is that some business logic needs to be implemented to choose between moment factory functions based on the timezone_type. The code is simply:
``js
if(phpDate.timezone_type === 1)
moment.parseZone(phpDate.date + phpDate.timezone) //concatenate the string to ISO8601 w/offset
else if (phpDate.timezone_type === 3)
moment.tz(phpDate.date, phpDate.timeZone)
Note that we can't support parsing of the three-letter timezone abbreviation because it is inherently ambiguous. CST is both Central Standard Time and China Standard time. If those three letter abbreviations are guaranteed to be US though, one could manually map them to offsets.

This probably could make a great plugin, as long as it was understood that `moment-timezone` had to be loaded for it to work. If you were to make it, feel free to list it in the docs: http://momentjs.com/docs/#/plugins/

OK, thank you for feedback.


CONNECT connections stuck waiting for EOF

I have thousands of stuck goroutines with this stack
#0  runtime.gopark (unlockf={void (struct runtime.g *, void *, bool *)} 0xc422033818, lock=0x7f34dd68cbb0, reason="IO wait", traceEv=27 '\033', traceskip=5) at /usr/local/go/src/runtime/proc.go:272
#1  0x0000000000429097 in runtime.netpollblock (pd=0x7f34dd68cb88, mode=114, waitio=false, ~r3=11) at /usr/local/go/src/runtime/netpoll.go:345
#2  0x00000000004286d9 in net.runtime_pollWait (pd=0x7f34dd68cb88, mode=114, ~r2=644) at /usr/local/go/src/runtime/netpoll.go:164
#3  0x0000000000559a08 in net.(*pollDesc).wait (pd=0xc421304618, mode=114, ~r1=...) at /usr/local/go/src/net/fd_poll_runtime.go:75
#4  0x0000000000559a74 in net.(*pollDesc).waitRead (pd=0xc421304618, ~r0=...) at /usr/local/go/src/net/fd_poll_runtime.go:80
#5  0x000000000055b1c7 in net.(*netFD).Read (fd=0xc4213045b0, p= []uint8 = {...}, n=0, err=...) at /usr/local/go/src/net/fd_unix.go:250
#6  0x000000000056e330 in net.(*conn).Read (c=0xc420162d28, b= []uint8 = {...}, ~r1=0, ~r2=...) at /usr/local/go/src/net/net.go:181
#7  0x00000000005b9c48 in crypto/tls.(*block).readFromUntil (b=0xc4220786c0, r=..., n=5, ~r2=...) at /usr/local/go/src/crypto/tls/conn.go:488
#8  0x00000000005ba1b4 in crypto/tls.(*Conn).readRecord (c=0xc421fa3c00, want=23 '\027', ~r1=...) at /usr/local/go/src/crypto/tls/conn.go:590
#9  0x00000000005bdebd in crypto/tls.(*Conn).Read (c=0xc421fa3c00, b= []uint8 = {...}, n#4=0, err=...) at /usr/local/go/src/crypto/tls/conn.go:1134
#10 0x00000000004caa97 in bufio.(*Reader).fill (b=0xc421a71d40) at /usr/local/go/src/bufio/bufio.go:97
#11 0x00000000004cac57 in bufio.(*Reader).Peek (b=0xc421a71d40, n=1, ~r1= []uint8, ~r2=...) at /usr/local/go/src/bufio/bufio.go:129
#12 0x00000000007e5278 in github.com/elazarl/goproxy.isEof (r=0xc421a71d40, ~r1=false) at /opt/TeamCityBuild/work/rachel-1/74d42b7cac97ce99/.deps/src/github.com/elazarl/goproxy/proxy.go:46
#13 0x00000000007e7c69 in github.com/elazarl/goproxy.(*ProxyHttpServer).handleHttps.func2 (proxyClient=..., tlsConfig=0xc42013a000, ctx#14=0xc42140ac30, r=0xc420bc7200, proxy=0xc420070e80)
    at /opt/TeamCityBuild/work/rachel-1/74d42b7cac97ce99/.deps/src/github.com/elazarl/goproxy/https.go:189
#14 0x000000000045a651 in runtime.goexit () at /usr/local/go/src/runtime/asm_amd64.s:2197
#15 0x0000000000ac9e60 in IPConn,net.Conn ()
#16 0x000000c420162d28 in ?? ()
#17 0x000000c42013a000 in ?? ()
#18 0x000000c42140ac30 in ?? ()
#19 0x000000c420bc7200 in ?? ()
#20 0x000000c420070e80 in ?? ()
#21 0x0000000000000000 in ?? ()

Which seems like they're stuck in the loop in https.go:
for !isEof(clientTlsReader) {

My code is pretty simple:
proxy.OnRequest().HandleConnectFunc(func(host string, _ *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) {
    return &goproxy.ConnectAction{
        Action: goproxy.ConnectMitm,
        TLSConfig: func(_ string, _ *goproxy.ProxyCtx) (*tls.Config, error) {
            return tlsc, nil
        },
    }, host
})

The connections (proxy is port 7899) look like:
TCP <IP_ADDRESS>:7899-><IP_ADDRESS>:39125 (ESTABLISHED)

I'm using the proxy with Chrome. Is this a Chrome bug that it's not closing the connection?

Hi,
It's certainly possible that Chrome is caching a few connections, and not
closing them for future use.
It does look suspicious that so much threads are parked.
Unfortunately I do not have time to look deeply into this issue now, can
you please try within a month or so?
Thanks,
On Thu, Mar 16, 2017 at 2:41 AM, James Hartig<EMAIL_ADDRESS>wrote:

I have thousands of stuck goroutines with this stack
#0  runtime.gopark (unlockf={void (struct runtime.g *, void *, bool *)} 0xc422033818, lock=0x7f34dd68cbb0, reason="IO wait", traceEv=27 '\033', traceskip=5) at /usr/local/go/src/runtime/proc.go:272
#1  0x0000000000429097 in runtime.netpollblock (pd=0x7f34dd68cb88, mode=114, waitio=false, ~r3=11) at /usr/local/go/src/runtime/netpoll.go:345
#2  0x00000000004286d9 in net.runtime_pollWait (pd=0x7f34dd68cb88, mode=114, ~r2=644) at /usr/local/go/src/runtime/netpoll.go:164
#3  0x0000000000559a08 in net.(*pollDesc).wait (pd=0xc421304618, mode=114, ~r1=...) at /usr/local/go/src/net/fd_poll_runtime.go:75
#4  0x0000000000559a74 in net.(*pollDesc).waitRead (pd=0xc421304618, ~r0=...) at /usr/local/go/src/net/fd_poll_runtime.go:80
#5  0x000000000055b1c7 in net.(*netFD).Read (fd=0xc4213045b0, p= []uint8 = {...}, n=0, err=...) at /usr/local/go/src/net/fd_unix.go:250
#6  0x000000000056e330 in net.(*conn).Read (c=0xc420162d28, b= []uint8 = {...}, ~r1=0, ~r2=...) at /usr/local/go/src/net/net.go:181
#7  0x00000000005b9c48 in crypto/tls.(*block).readFromUntil (b=0xc4220786c0, r=..., n=5, ~r2=...) at /usr/local/go/src/crypto/tls/conn.go:488
#8  0x00000000005ba1b4 in crypto/tls.(*Conn).readRecord (c=0xc421fa3c00, want=23 '\027', ~r1=...) at /usr/local/go/src/crypto/tls/conn.go:590
#9  0x00000000005bdebd in crypto/tls.(*Conn).Read (c=0xc421fa3c00, b= []uint8 = {...}, n#4=0, err=...) at /usr/local/go/src/crypto/tls/conn.go:1134
#10 0x00000000004caa97 in bufio.(*Reader).fill (b=0xc421a71d40) at /usr/local/go/src/bufio/bufio.go:97
#11 0x00000000004cac57 in bufio.(*Reader).Peek (b=0xc421a71d40, n=1, ~r1= []uint8, ~r2=...) at /usr/local/go/src/bufio/bufio.go:129
#12 0x00000000007e5278 in github.com/elazarl/goproxy.isEof (r=0xc421a71d40, ~r1=false) at /opt/TeamCityBuild/work/rachel-1/74d42b7cac97ce99/.deps/src/github.com/elazarl/goproxy/proxy.go:46
#13 http://github.com/elazarl/goproxy/proxy.go:46#13 0x00000000007e7c69 in github.com/elazarl/goproxy.(*ProxyHttpServer).handleHttps.func2 (proxyClient=..., tlsConfig=0xc42013a000, ctx#14=0xc42140ac30, r=0xc420bc7200, proxy=0xc420070e80)
at /opt/TeamCityBuild/work/rachel-1/74d42b7cac97ce99/.deps/src/github.com/elazarl/goproxy/https.go:189
#14 http://github.com/elazarl/goproxy/https.go:189#14 0x000000000045a651 in runtime.goexit () at /usr/local/go/src/runtime/asm_amd64.s:2197
#15 0x0000000000ac9e60 in IPConn,net.Conn ()
#16 0x000000c420162d28 in ?? ()
#17 0x000000c42013a000 in ?? ()
#18 0x000000c42140ac30 in ?? ()
#19 0x000000c420bc7200 in ?? ()
#20 0x000000c420070e80 in ?? ()
#21 0x0000000000000000 in ?? ()
Which seems like they're stuck in the loop in https.go:
for !isEof(clientTlsReader) {
My code is pretty simple:
proxy.OnRequest().HandleConnectFunc(func(host string, _ *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) {
return &goproxy.ConnectAction{
Action: goproxy.ConnectMitm,
TLSConfig: func(_ string, _ *goproxy.ProxyCtx) (*tls.Config, error) {
return tlsc, nil
},
}, host
})
The connections (proxy is port 7899) look like:
TCP <IP_ADDRESS>:7899-><IP_ADDRESS>:39125 (ESTABLISHED)
I'm using the proxy with Chrome. Is this a Chrome bug that it's not
closing the connection?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/elazarl/goproxy/issues/209, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAP4ojUelUxyU07ZGpHQXi6NUhohmC-Sks5rmQPHgaJpZM4MfDCz
.


How to set header above tabbar in Android?

At the documentation (https://reactnavigation.org/docs/intro/nesting) we can see that the title of the page is above the tabnavigator in Android:

But in my case, the title of the page is located below. Is it possible in android to place the header with the title above the tabbar?
Thanks!

const MainScreenNavigator = TabNavigator({
  Recent: { screen: RecentChatsScreen },
  All: { screen: AllContactsScreen },
},{
  ...TabNavigator.Presets.iOSBottomTabs
});


it doesn't show the content-length

when i use the fomat 'dev' like this
app.use(gzip());
app.use(morgan.middleware('dev'));

logs show
GET /static/lib/vue/vue.min.js 200 6.866 ms - -

@whwnow v0.4 is released,you can try it.

@fundon hi, I have updated to 0.4, the problems still exist . is it my usage problem?

You need set morgan.middleware before gzip

it doestn't work. it works right when i remove gzip.  looks like they are
not compatible.
2015-09-24 10:32 GMT+08:00 Fangdun Cai<EMAIL_ADDRESS>
You need set morgan.middleware before gzip
—
Reply to this email directly or view it on GitHub
https://github.com/koa-modules/morgan/issues/1#issuecomment-142786198.

See https://github.com/koajs/koa-gzip/blob/master/index.js#L39-L45

T T, thanks.  I will make a issue to them.

koa-gzip can't set the content-length, the body has been compressed.
So, the origin content-length is incorrect


[NeurIPS 2023 Sparse Track] FDUx2-shnsw Submission

Team FDUx2 intends to submit multiple tracks under the name FDUx2-<algorithm-name>, and here is FDUx2-shnsw for Sparse Track.
We would like to express our gratitude to the organizers for your patient evaluation.

LGTM, code builds and runs on a VM with 8cpu/16GB memory (GCP n2-custom-8-16384).
@matchyc: please approve that these results are roughly what you would expect?
shnsw,sparse_hnswlib,sparse-full,10,12177.737054397963,0.0,29630.818413734436,11034980.0,0,0,sparse,0.7994269340974212
shnsw,sparse_hnswlib,sparse-full,10,7947.033044411104,0.0,29630.818413734436,11034980.0,0,0,sparse,0.8854297994269341
shnsw,sparse_hnswlib,sparse-full,10,7367.327526288479,0.0,29630.818413734436,11034980.0,0,0,sparse,0.8951002865329514
shnsw,sparse_hnswlib,sparse-full,10,7048.045510025735,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9010458452722062
shnsw,sparse_hnswlib,sparse-full,10,6848.650637956033,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9048137535816618
shnsw,sparse_hnswlib,sparse-full,10,6667.224295496154,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9072206303724929
shnsw,sparse_hnswlib,sparse-full,10,6394.325862427465,0.0,29630.818413734436,11034980.0,0,0,sparse,0.911404011461318
shnsw,sparse_hnswlib,sparse-full,10,6247.696169337714,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9134527220630373
shnsw,sparse_hnswlib,sparse-full,10,5375.535588116485,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9266189111747851
shnsw,sparse_hnswlib,sparse-full,10,5106.970919323923,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9309312320916906
shnsw,sparse_hnswlib,sparse-full,10,4847.612098861592,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9353008595988539
shnsw,sparse_hnswlib,sparse-full,10,4642.8395496375015,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9382091690544412
shnsw,sparse_hnswlib,sparse-full,10,4442.987157238651,0.0,29630.818413734436,11034980.0,0,0,sparse,0.9417335243553009

The results match our observation, thank you for your feed back.

@ingberam Hi! We see that some people are still submitting, if it is still possible to change the parameters please let me know!

@harsha-simhadri   Same entry from one team, thank you for your reminder!
Conference Name: Practical Vector Search Challenge: NeurIPS 2023 Competition track
Paper ID: 15
Paper Title: Fast OOD-ANN


Enclose author & email in quotes

Resolves #22

Please can you put a comment above the lines specifying why these 2 are in quotes, then squash into a single commit


Allow configuration of speedtest scrape_interval

Right now this would be annoying to change since it's in a different repo, but after #6 is done, I could template that file and the default could be 30m or 60m, and the user could change with monitoring_speedtest_interval: 6h or something like that.
I know for myself, I will be backing it off to maybe 1x per day after I'm finished doing a comparison between Starlink and my Cable ISP.

lol, I already have an open issue for this: https://github.com/geerlingguy/internet-pi/issues/1


On the Viewing History screen, there are duplicate watched episodes.

If an airing appears more than once in the guide data, and the airing is watched, then duplicates of the airing will appear in the viewing history.


Network error when visiting users panel

Clean install gives me "Network Error" when logging in and visiting the Users panel.
Using these versions:
@primecms/core: 0.3.4-beta.1
@primecms/ui: 0.3.4-beta.1

@birkir I think the issue was fixed here.
Could you release a new version for npm?


Replaced 'author' dictionary in 'models.py' with 'author_id'.

https://github.com/zulip/zulip/issues/15115
Replaced the author dictionary from models.py to make API cleaner, earlier it was returning author dictionary with user_id/email/name as fields, but it's modified now to send author_id.
Testing Plan:
Tested the API using ./tools/test-backend and all tests passed.
GIFs or Screenshots:

This is my final PR for the issue #15115 , hoping everything is fine now, @timabbott @orientor

@orientor FYI, all API changes require changes to templates/zerver/api/changelog.md and a bump in ZULIP_FEATURE_LEVEL; this is a new policy that will help ensure our mobile and terminal apps can code correctly against a wide range of versions of the Zulip API.
@akashaviator FYI as well.

@sahil9001 thanks for working on this!  I did those documentation tweaks and wrote a proper commit message for this PR, and pushed back to your branch (you can get my changes with git fetch).
This PR still needs work, though, in that we need to update the web frontend.
(zulip-py3-venv) tabbott@coset:~/zulip$ git grep [.]author[.]
static/js/settings_emoji.js:    if (!page_params.realm_add_emoji_by_admins_only && people.is_current_user(emoji.author.email)) {
static/js/settings_emoji.js:    if (a.author.full_name > b.author.full_name) {
static/js/settings_emoji.js:    } else if (a.author.full_name === b.author.full_name) {
zerver/lib/emoji.py:                              emoji.author.id == user_profile.id)
zerver/lib/export.py:            author_id = realm_emoji.author.id
zerver/tests/test_realm_emoji.py:        self.assertEqual(realm_emoji.author.email, email)

makes clear we access this field in the webapp, so we need to change that, and of course we should test the "Custom emoji" UI carefully to make sure our changes to settings_emoji.js are correct.
(My guess is we just want to use people.get_by_user_id in the affected block)

@timabbott I'm not particularly good with the frontend, but I'll try to do the changes you've asked.

I think it's only a few lines of changes, and you can likely get help in "#development help"

@showell

Can you rebase properly here?  I am seeing a “merge” commit.

Can you rebase properly here? I am seeing a “merge” commit.

How to do that, like I've did that before too but confused now.

Check out our GitHub guide and commit guidelines for details on how to do a rebase.
Because I wanted to integrate this today, I went ahead and made the frontend changes as follows:
diff --git a/static/js/settings_emoji.js b/static/js/settings_emoji.js
index 86eccf5cd0..bdd2fb0f2d 100644
--- a/static/js/settings_emoji.js
+++ b/static/js/settings_emoji.js
@@ -22,11 +22,11 @@ function can_admin_emoji(emoji) {
     if (page_params.is_admin) {
         return true;
     }
-    if (emoji.author === null) {
+    if (emoji.author_id === null) {
         // If we don't have the author information then only admin is allowed to disable that emoji.
         return false;
     }
-    if (!page_params.realm_add_emoji_by_admins_only && people.is_current_user(emoji.author.email)) {
+    if (!page_params.realm_add_emoji_by_admins_only && people.is_my_user_id(emoji.author_id)) {
         return true;
     }
     return false;
@@ -66,6 +66,15 @@ exports.populate_emoji = function (emoji_data) {
         return;
     }

+    for (const emoji of Object.values(emoji_data)) {
+        // Add people.js data for the user here.
+        if (emoji.author_id !== null) {
+            emoji.author = people.get_by_user_id(emoji.author_id);
+        } else {
+            emoji.author = null;
+        }
+    }
+
     const emoji_table = $('#admin_emoji_table').expectOne();
     list_render.create(emoji_table, Object.values(emoji_data), {
         name: "emoji_list",

and merged this as 328caf1ad5ef5360eb96de922d3e7aecf7083ee5.
Thanks for fixing this @sahil9001!


Serverless & db connections on vercel

Link to reproduction
No response
Payload Version
58
Node Version
latest
Next.js Version
recommend
Describe the Bug
I am using @payloadcms/db-mongodb and deploying a Next.js application on Vercel. I am also using MongoDB Atlas, and with active use of the admin panel, the connection pool on MongoDB Atlas quickly fills up with zombie connections, exceeding 500 connections (500 connections is the limit for MongoDB Atlas). After that, everything crashes because Atlas does not allow more than 500 simultaneous connections. I think this is because the code is not currently designed for serverless, and each request opens a new connection to the database without closing the old one.
Reproduction Steps
Just deploy the application on Vercel or another platform using MongoDB Atlas, try actively creating and editing collections, and soon you will receive an email from Atlas about the exceeded number of connections to the database.
Adapters and Plugins
db-mongodb

I'm using postgres and having the same issue.
Prostgre error message; "Too many clients"

I do have the same problem with a small size application that uses getPayloadHMR()

when the site is opened the number of connections suddenly sky rockets and I have the same problem on 2 of my projects
Here is the connections that happened in the last 48h and keep in mind that the site has basically no activity other than 3-4 users coming in.

Hey @ScapersClub — thanks for the report! I saw a newer issue first, and I just replied there, but I will close this one so that we can track the discussion on the newer open issue. Let's take convo / findings to the thread above. We will help figure this out for sure!


Anchor links do not seem to work in situations where they are in a "tab" within a page

Summary:
Anchor links seem to be broken when we are linking to anchors within a non-default "tab" on a page. In some cases anchor links are now missing in newer docs since the upgrade.
Missing anchors:
https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#port-requirements
This used to work, now if I look at link for Networking tab the anchor seems to be gone. (look at bottom-left of screenshot below, link is missing anchor, I have moused over the "Networking" tab currently in this image)

Result: Anchors are missing in situations like this where we had an anchor per tab.

Anchors not working:

Visit https://rancher.com/docs/rancher/v2.x/en/installation/requirements/
Click on Networking tab
Mouseover "Node IP Address" and you'll see "link" appear to the right, copy the link.
(Screenshot below shows me hovering over "link" we can see this anchor is there).

Close the browser window/tab and try to visit the link in a new tab/window.
(Screenshot below shows that the link didn't work. We are on the default page as if no anchor was supplied)

Result: Link does not take us to networking tab and scroll to "Node IP Address"
Additional Info:
Now, if you stay on this page (in your browser), click on the networking tab, and then visit the https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#node-ip-address anchor link, then in this case since we are already on the "Networking" tab in the same window, then and only then the anchor link will work in this situation.

Closing this issue because the requirements have been reorganized and I believe these links work now.

Closing this issue because the requirements have been reorganized and I believe these links work now.


On page load slider is minaturized

For some reason the slider is in miniature on my page load. Then as the images slide it bumps up in size until it is the correct size. Not sure what is going on here has anyone else experienced this?
I've attached two images

The slider going through the size changes as the images rotate
The slider once it has reached full size which is how it should show up on the page

If I click refresh it eventually seems to correct itself. It's like something is going wrong in the load of the slider.
Thanks in advance for any help.
Mike

That's very strange, @MAGPerficient ... can you try to reproduce this in a JSFiddle (as mentioned in the https://github.com/kenwheeler/slick/blob/master/CONTRIBUTING.markdown ) :smile: - once you do that I can inspect the code and see what's happening.
Si.

Thanks Si,
Thanks for getting back to me. I'm still trying to duplicate it in JSFiddle BUT if this helps...I noticed in the Dev tools that the values in the "slick-track" div and the "slick-slide" divs recalculate their sizes as the control slides from image to image (again until it's the correct size). I screen capped this and have 3 images (all in one) and the elements and sizes are in the red rectangles. Maybe that'll help until I get JSFiddle to reproduce the error.
Cheers,
Mike

Hi guys, was there a solution for that? I bumped into the same issue and I don't seem to be finding the glitch...

Hi Claudio,
I switched over to another slider and experienced the same issue. I then noticed that a  higher up the chain had "position:absolute;" applied to it. I changed that to "position:relative;" and I believe that fixed the issue for me. Hopefully you'll find something similar in your markup.
Cheers,
Mike

Thanks for the tip, Mike. I have played with positions before but no happy ending just yet. Will check them over again.
Cheers,
Claudio


VTK8 sphere glyph shading lost font or line endcap artifact in OpenFOAM tests

OpenFOAM_lagrangian_01 - OpenFOAM_lagrangian_07 show loss of shading of sphere glyphs and a white verticle line artifact at the left end of the time slider. http://portal.nersc.gov/project/visit/tests/20180514-22:00/surface_trunk_serial/databases_OpenFOAM.html
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 3084
Status: New
Project: VisIt
Tracker: Bug
Priority: Normal
Subject: VTK8 sphere glyph shading lost font or line endcap artifact in OpenFOAM tests
Assigned to: -
Category: -
Target version: 3.0
Author: Mark Miller
Start: 05/02/2018
Due date:
% Done: 0%
Estimated time:
Created: 05/02/2018 04:48 pm
Updated: 05/17/2018 01:50 pm
Likelihood: 3 - Occasional
Severity: 4 - Crash / Wrong Results
Found in version: trunk
Impact:
Expected Use:
OS: All
Support Group: Any
Description:
OpenFOAM_lagrangian_01 - OpenFOAM_lagrangian_07 show loss of shading of sphere glyphs and a white verticle line artifact at the left end of the time slider. http://portal.nersc.gov/project/visit/tests/20180514-22:00/surface_trunk_serial/databases_OpenFOAM.html
Comments:

I investigated this and the sphere glyphs are definitely shaded, just differently, also they are a different size. The verticle line artifact is only present in a 300x300 saved image, it is missing when it is 1024x1024. Here is the script I used and the images. The images are from 2.13.3 and 3.0.0b. The top one is 3.0.0b.

Here is the script.
openfoam_test.py.txt

The line artifact is probably because that is where the endcap starts. The shading differences are ok.


release-cross: replace x86_64-darwin with aarch64-darwin

I propose trading x86_64-darwin for aarch64-darwin as the main darwin cross-compiling build platform. ARM Macs have been introduced in 2020 and the last Intel MacBooks have been discontinued in 2023 so I think most people would find aarch64-darwin more useful here.
See #284465
I guess the main question here is whether the aarch64-darwin builders are numerous enough to support this without slowing down native builds too much (relative to x86_64-darwin).
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I guess the main question here is whether the aarch64-darwin builders are numerous enough to support this without slowing down native builds too much (relative to x86_64-darwin).

From Matrix:

Winter: x86_64-darwin = aarch64-darwin with Rosetta for the sake of our infra

So this would actually put some load off of darwin builders, which is a nice side benefit.

How about the documentation of Nixpkgs? I know of that thing, but there are probably more places?


HTML 5 canonicalization

enhance ContextParser to take event-driven hooks (instead of
requiring OOP inheritance)
apply input stream pre-processing as required by HTML 5 spec
rewrite html being processed will be parsed consistently by all
supported browsers
disable IE conditional comments
bug fixed due to equal sign detection that judges the use of
encodeURI/encodeURIComponent filter

CLA is valid!

@neraliu , please help review. you might want to start with https://github.com/yahoo/secure-handlebars/blob/apply-input-preprocessing-and-purify-html/tests/unit/run-strong-context-parser.js
@yukinying , when you have time, would be great if you can take a look at https://github.com/yahoo/secure-handlebars/blob/apply-input-preprocessing-and-purify-html/src/strong-context-parser.js. we may consider moving some of the improvements made there to the upstream repo at context-parser.

The use of nextPotentialState assumes that the parser would always parse the whole input string. If the caller use the parser in a byte by byte manner, nextPotentialState may not be valid.

The use of nextPotentialState assumes that the parser would always parse the whole input string. If the caller use the parser in a byte by byte manner, nextPotentialState may not be valid.

yes, the assumption and common use case is that the input per parsePartial() call takes more than 1 char (e.g., given <a href=", {{url}}, ">, {{url}}, </a>, the first, third and fifth chunks will be passed to parsePartial()). And for those depending on nextPotentialState will have to judge when it's equal to -1 (i.e., input[i+1] is out of bound.)

Perhaps what we should do is to read "previousState" when the second char is parsed

It's largely due to performance concern so that I chose the look-ahead approach as is. The fact is that rewriting can alter the results of walk(). Hence, if we choose the look-back approach, we will literally need 2 iterations, i.e., first complete rewriting the whole string, then walk() from i = 0 again.

, and append a space or a non visible separator?

sorry i don't get this.


Issues setting up backend section of readme

Getting the error below when running the docker compose up:
backend-llama-app-fastapi-1  | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
backend-llama-app-fastapi-1  |  Is the server running on host "<IP_ADDRESS>" and accepting
backend-llama-app-fastapi-1  |  TCP/IP connections on port 5432?
backend-llama-app-fastapi-1  |
backend-llama-app-fastapi-1  | (Background on this error at: https://sqlalche.me/e/20/e3q8)
backend-llama-app-fastapi-1  |
backend-llama-app-fastapi-1  | ERROR:    Application startup failed. Exiting.

This was part of step 6 in the backend/ReadMe file. Am I missing something?

@chiragshah285 thanks for flagging this! There may be somewhat of a race condition between the start of the FastAPI service and the postgres DB. Do you still get the error if you start the db first with docker compose start db and then the Fast API service with docker compose start llama-app-fastapi?
May also be easier to just use make run which spins up the DB & LocalStack in their docker containers and the API service on your own OS without docker.

thanks @sourabhdesai those two commands docker compose start db ``docker compose start llama-app-fastapi work sequentially perfectly fine!
When I run make run: I get the error below
(llama-app-backend-py3.10) (base) chiragshah@Chirag-Shah-MBP backend % make run
echo "Running in local mode."
Running in local mode.
docker compose start db
docker compose start localstack
[+] Running 1/1
 ✔ Container localstack_main  Started                                                                                0.7s
poetry run start
Running in AppEnvironment: local
2023-09-05 18:01:28,714 [MainThread  ] [INFO ]  Set up logging with log level 10
2023-09-05 18:01:28,714 [MainThread  ] [INFO ]  Skipping Sentry setup
2023-09-05 18:01:28,714 [MainThread  ] [DEBUG]  Skipping migrations
INFO:     Will watch for changes in these directories: ['/Users/chiragshah/PycharmProjects/sec-insights/backend']
ERROR:    [Errno 48] Address already in use
make: *** [run] Error 1

Glad to hear it! Let us know if you run into any other issues

For me it doesn't work if I run the two sequentially
docker compose start db ``docker compose start llama-app-fastapi
the start command just swallows the error and hangs
if I try docker compose up llama-app-fastapi I can see the same erorr reported at the top


when unzip .zip files, retain unix mode within zip files

close #3142

@NancyXie2022 @byjiang1996 could you plz review this pr?

LGTM

@NancyXie2022 @ShellyWEI can we merge this pr, or any comments?


Documenter should use Coder to display example methods

Current state:
Currently the examples are displayed like this:

To make documentation live, readers should be able to edit and evaluate examples in place.

This is a solution, using Coder, that allows to edit also sub-examples, accept methods, and display results:


Howto debug or log what is going on?

I use latest i3-layouts with Python 3.7.0 on Ubuntu 20.04
and It is not working at all
For example
i3l vstack 0.6
gives
{"success":true}
and no changes
I also tried execute on start of i3 from config - not working too
Is there any way to debug this situation?
regards

Hey @niksfirefly ,
Thanks for trying i3-layouts.
You can launch i3-layouts with the --debug flag to get some output. For example, in your i3 config file:
exec_always i3-layouts --debug > ~/i3-layouts.log 2>&1

If you do so, can you report the logs here ?

[2021-06-01 11:28:10,228] DEBUG {handlers.py:17} - [ipc] tick event - payload:
[2021-06-01 11:28:43,616] DEBUG {handlers.py:34} - [ipc] workspace focus event - workspace:3, old:1
[2021-06-01 11:28:43,623] DEBUG {handlers.py:37} -   [ipc] workspace layouts exists for 3
[2021-06-01 11:28:43,623] DEBUG {state.py:237} - [state] rebuilding for RebuildCause.WORKSPACE_FOCUS
'Con' object has no attribute 'geometry'
Traceback (most recent call last):
  File "/opt/asdf/installs/python/3.7.0/bin/i3-layouts", line 8, in <module>
    sys.exit(main())
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/cli.py", line 5, in main
    connect()
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/connect.py", line 41, in connect
    i3.main()
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3ipc/connection.py", line 518, in main
    raise loop_exception
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3ipc/connection.py", line 497, in main
    while not self._event_socket_poll():
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3ipc/connection.py", line 477, in _event_socket_poll
    raise e
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3ipc/connection.py", line 474, in _event_socket_poll
    self._pubsub.emit(event_name, event)
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3ipc/_private/pubsub.py", line 28, in emit
    s['handler'](self.conn, data)
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/handlers.py", line 43, in _on_workspace_focus
    layout.mark_main(), layout.mark_last(), con_id)
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/state.py", line 238, in start_rebuild
    self.rebuild_action.start_rebuild(context, rebuild_cause, main_mark, last_mark, con_id)
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/state.py", line 175, in start_rebuild
    self.containers_to_recreate = self._containers_after(con_id, containers, context.workspace_sequence)
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/state.py", line 162, in _containers_after
    return [RebuildContainer(con) for con in containers
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/state.py", line 163, in <listcomp>
    if con_id == 0 or workspace_sequence.get_order(con.id) >= workspace_sequence.get_order(con_id)]
  File "/opt/asdf/installs/python/3.7.0/lib/python3.7/site-packages/i3l/state.py", line 78, in __init__
    self.x = container.geometry.x
AttributeError: 'Con' object has no attribute 'geometry'

Hello, @eliep! Same here. It launches only from terminal and this way everything is ok.
Not launching from i3/config and even from a separate bash script or through bindsym.

Hello, @eliep! Same here. It launches only from terminal and this way everything is ok.
It is not launching from i3/config and even from a separate bash script or through bindsym.
how it looks (normal, i suppose) when i launch it from a terminal:

Install it with your package manager rather than pip


Error: Array was not enough for the data written.

Every while i got this error when i'm trying to regenerate the JWT and then running the bootstrap blueprint
.. and to get out of this i always need to restart the ays server (Not sure if this is an issue)

Can use be-g8-3 to trigger. Basically rebooting a cpu-node will easily trigger the issue. Add a try except around the pre_save with an ipdb in the except clause


it's unwork in Chrome

it's work in Edge and other browser ,but unwork in Chrome,my Chrome version is 58.0.3029.110

Hi @ashen9
I tested the ng2-dnd on my version of Chrome (similar to yours):

It works fine. I checked it again later, after Chrome's update to the latest version:

And it works as expected:

Can you be more specific?  Did you try the demo or plunker? Can you share error log file?

https://github.com/akserg/ng2-dnd/issues/80

Hi @hrfarrokh  ,
Ok, I get it now - will fix today or tomorrow.

after my test，the demo “ http://akserg.github.io/ng2-webpack-demo/#/dnd ” is also unwork in Chrome， but it‘s well in other   browser， That's very strange  @akserg


object moviment

I'll create a code to move an object with physijs, based on control by the keyboard, there is some library ready to do this? so I do not have to start from scratch? i was using a library that uses mesh.position.x, but with physijs will be better use angularVelocity, right?

What kind of object are you moving. Usually for spherical objects like ball, I would apply a force at an offset from the ball's origin when the key is pressed (as shown in this tutorial example). For box like objects simply applying force without the offset would do.


Support cross namespace references in DependsOn field

@stefanprodan It would be good to declare cross helm release dependencies that may be deployed into separate namespaces. I attempted to prefix with namespace/chart-name however that did not work. This seems like a fairly popular use case and would be good to setup.
    // DependsOn may contain a list of HelmReleases that must be ready before this
    // HelmRelease can be reconciled.
    // +optional
    DependsOn []string `json:"dependsOn,omitempty"`

I also tried bundling all the releases in a single namespace and using targetNamespace however the valuesFrom using either config maps or secrets then no longer reference correctly.

https://github.com/fluxcd/helm-controller/blob/9b5db2df12c5f167f61409bc2821cfc606c9d37b/controllers/helmrelease_controller.go#L430
This should be configurable, or at least if I specify <namespace>/<chart-name> syntax it should accept the prefix as the namespace - it could default to the namespace of the helmRelease however having it configurable at the same.

~This should be configurable~ I would like this to be configurable, or at least if I specify <namespace>/<chart-name> syntax it ~should~ would accept the prefix as the namespace - it could default to the namespace of the helmRelease.

We deliberately choose to not support this in the initial version, as we were still working out the details around RBAC and crossing namespaces in particular. This is also one of the reasons it is no longer possible to refer to ConfigMap and Secret resources in another namespaces for ValuesFrom items.
I can see the usefulness of being able to refer to a HelmRelease in another namespace, especially because otherwise it would not be possible to for example refer to a Linkerd deployment released via Helm. It also would not result in any data leaks, which is the reason we eliminated support for cross namespace ValuesFrom references.

@hiddeco I figured the secrets being used as ValuesFrom other namespaces was a realistic constraint seeing as the workload should be self-contained in the sense all of its dependencies are within the same namespace scope.
For DependsOn I can't see any real issues in terms of RBAC for chart dependencies - This is more for cluster tooling that gets deployed either by my fleet or cluster repo as I'll have things like cert-manager which deploys with service monitors which means I have a dependency on my observability charts like prometheus-operator however, I wouldn't deploy these into a singular scoped namespace as they have individual RBAC models of their own in a multi-tennant cluster.

@stefanprodan @hiddeco given the use case and how this is likely to be a valuable feature is it on the foreseeable roadmap? I'm also willing to assist where possible to help and/or contribute any required functionality or be involved in any design discussions that may need to take place.

It is on our to-do list, and the option that has crossed our minds thus far (label selectors as a replacement for specific resource selectors) will be a breaking API change.
We can however not give a timeframe on design finalization or actual implementation at this point, as the pile of things with a short-term priority in terms of issues, design questions, and UX improvements across the GitOps Toolkit is as you can imagine still pretty high. We also prioritize Flux v1 feature parity issues at the moment, and none of the above (or even the feature as it stands right now) is available in the v1 of Flux and the Helm Operator.
In addition to all of this it comes with a couple of technical questions / challenges, for example the changes that would be required to the algorithm (Tarjan's SCC) we use for sorting.


After working for some time (perhaps dragging tabs?) I cannot use Escape to hide find widget

I will keep an eye out for clear repro steps, but it just happened to me the second time.

One issue is that we might have multiple instances of a code editor inside one keybinding context (since different input types map to different editors and we don't dispose). That might cause such issues.

If that is the issue here, then it would be a duplicate of https://github.com/Microsoft/vscode/issues/9705
The issue remains that we have potentially hidden diff editor per editor slot and if that one is still eating keys, we might need a method to put the hidden editor into a sleeping state.

Merging into https://github.com/Microsoft/vscode/issues/10358


Dev Task: Regen health while Idle

Task consists of 2 parts.

When a player is idle, he/she should regenerate hp slowly

When an enemy is not attacked for x seconds it should regenerate hp fast

The goal of Player Regen should be to build a framework for creating a variety of ways for the player to interact with regen through the world and their own actions.
The goal of Enemy regen should be to build a framework for creating interesting mechanics that can be customized to each enemy and/or boss in order to challenge the player, while also preventing "cheese strats",

Player regen and Enemy regen should work in the following ways:
Player Regen has 7 properties: name, type, value, duration, speed, stacks and order.
-Name would be the the unique identifier given to the source of the regen
-Type would represent the source of the regen, natural, worn, spell, food, location based (camp fire/bed), other. Types can use some, all, or set to Null all of the following properties. (Some types, like food, might only be stackable up to 3, and will need to contain as many value's, durations, speeds, etc, as they might all be different for each different food.)
-Value would be a positive integer of hp regenerated each 'tick' of Duration.
-Duration would be a positive integer to represent the total number of time units (hundreths of seconds?) the effect will last. Null should be a valid option to cover infinite duration.
-Speed would be a positive integer to represent the number of units of time that should pass before one 'tick' of regeneration occurs
-Stacks would be a positive integer to determine how many of the type can apply to the player before being overwritten.
-Order would be a positive integer to organize both stackable and non-stackable effects by the order in which they were applied, oldest at 1 with newer incrementing up to the Stack limit.  Every time an effect is applied that goes above the stack limit, the effect at #1 should be popped off and the effects reordered accordingly.
for example:
class Player_natural_regen
type natural
value = 1
duration = null
speed = 100
stacks = 1
class Campfire_regen
type local
value = 5
duration = null
speed = 100
stack = 1
class Healing_potion
type potion
value =10
duration = 500
speed = 100
stack = 5

Enemy Regen has 4 properties: type, active, value, duration
-Type would be a the same as Player regen Type, denoting the source of the regen. These could be conceptual like "Regen to full quickly" for when the mob is out of combat or "Regen slowly" for phase 1 of a boss fight, then "Regen more quickly" for phase 2 etc.
-Active would be a boolean to enable and disable the regen source
-Value would be same as player regen value
-Duration would be same as player regen duration

Does JDungeon support arbitrary resources like say Health Mana Spirit being reduced by a % such as -0.125% Mana regeneration?
Can arbitrary resources like say Health Mana Spirit have cases where the -X.XXX% regeneration actively eats away at the resource until it stops at 0.000%?
While working with the Flare engine this was important to support deep itemization and progression systems with many equipped items staking reduced regeneration. This issues was fixed with Flare but since JDungeon is using Godot 4.NET I wonder if it can support negative arbitrary resource 'regeneration' / degeneration with XXX.XXX% digit format to support many itemization and attribute mechanics and systems? Any thoughts on this?


Fixed bug in Azure folders

Summary
Fixes a bug in ea26f8356df3efeb874653e9b7b3b92813c158de.
When the Sync Batch Size parameter is left blank, it's saved as an empty string instead of a null string. And empty strings throw an error when cast to integer.
Steps to reproduce

Login as Host
Open Persona Bar > Manage > Global/Site Assets
Add New Folder Type > Set up Azure Folder Provider (leave Sync Batch Size blank)
Add New folder with Azure Folder type
Synchronize the folder and subfolders

Current behavior
Following error occurs:

I usually do it as a one line, but looks fine to me too that way.
int intValue = int.TryParse(stringValue, out intValue) ? intValue : defaultValue;


Authorizer fields

This allows the authorizer to return fields  (e.g. a list of permissions / capabilities / plan type) that are passed to subsequent subscription callbacks.
Questions:

What should happen when periodic authorization is enabled and the fields change during an active subscription? Should we 1) do nothing (current behavior), 2) have a new specific callback that gets invoked (if defined), 3) re-invoke the on_subscribe callback (possibly with a flag that we're resubscribing, or, 4) force an unsubscribe (so the client can re-subscribe).
Is it necessary to pass authorizer fields to all subsequent subscription callbacks, or is it enough to just pass them to e.g. before_subscribe and on_subscribe?

@mpessas any thoughts on the questions?

I think the simplest option would be to pass the authorizer fields with every message. This way, you do not need a separate protocol.
The client would have to verify the capabilities every time.

But, assuming we go with this option:

With periodic authorization you won't get an immediate notification once the authorizer fields change, i.e. the backend has to wait for the next message from the client. Let's say the client subscribes to updates of an object (but the service should only send updates if certain authorizer fields are set), then the server would keep sending updates potentially forever even if periodic authorization is enabled.
There is no single callback you can use to validate authorizer fields, you have to validate them in all the message callbacks.

Seems like something needs to happen when the fields change.  Force unsubscribing seems too severe but might be the easiest.  What happens after re-calling on_subscribe, would the client get a message that something changed?

hat happens after re-calling on_subscribe, would the client get a message that something changed?

Not necessarily. But currently our dialer backend sends a call message to the client when subscribing to a dialer and the user is on a call.
Maybe having a separate callback (on_change / on_authorization_change) is easiest, and implementations can just point it to the same URL as on_subscribe if needed.
We can still keep sending all of the authorizer fields to all callbacks like @mpessas suggested.

There may be something I am missing from the protocol: given a user authenticates (logs in) to a service, how do they log out (destroy the session)? Is this done explicitly somehow or does the session need to be refreshed? In the latter case, the authorization fields re-verification would be part of refreshing the session.

There is no explicit log out command in SocketShark. You could re-auth as somebody else but even that wouldn't automatically invalidate existing subscriptions. Subscriptions are authorized when you subscribe, or re-authorized periodically (if enabled).

I'm not sure if I understand the big picture here.  I'm getting the feeling we are trying to have socketshark maintain state for other services.  They would trust socketshark to provide their state info like the permissions for a user instead of socketshark providing something like a service session id (which would never change) and let the service restore their own state based on that.  Am I off track here?

which would never change

That is the problem: things change.
The discussion is around permissions (authorization) and how you verify that a user still has access to a resource. If the session ID never gets invalidated, how do you know that (i) the session is still valid (e.g. you want to revoke it due to a signout event or due to a malicious action) and (ii) the capabilities that accompany the session (permissions) are still valid.
In other words, socketshark creates a session that can go out of sync with the main service's session. The two have to be kept in sync, even if with some delay. Having socketshark periodically validate the session and its capabilities (refresh operation) and passing that information to the service is one solution to the problem.

My thoughts:

On field changes a new callback should be called is specified
I think all subscription callbacks should get these new fields to not limit their use


vite: Sanitise virtual import path characters

fixes: #631
Speaking with @graup this issue also occurs in the file path, when you have multiple style files called the same thing, for example component1/style.css.ts and component2/style.css.ts. So this sanitises both by replacing slashes and double dots with underscores. I moved the double dot fix from the last release up to stringifyFileScope as part of this.

After playing around with a patched version of this, it does not look like this works in all scenarios. It seems to break module graph stuff in server mode.


 child of  does not update on hover correctly

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example: https://codesandbox.io/p/sandbox/vibrant-breeze-g3hs69
Current behavior 😯
applies to  components that are a direct child (or fragment child) of a  component
Hover state doesn't update on mouseover. Moreover, logging onChangeActive reveals that the data is incorrect.
Expected behavior 🤔
Hover state should update
Context 🔦
Just a surprising error/bug that needed a workaround. Possibly should be added to docs as a tempfix.
Your environment 🌎
I think this is unnecessary with the linked example. LMK if I should add

@Pinwheeler
it might be helpful info for you, If you have not found it yet.
https://github.com/mui/material-ui/issues/40019


Add KumuluzEE to the list of servers for MicroProfile 2.2

Hello,
KumuluzEE now supports MicroProfile 2.2 (https://github.com/kumuluz/kumuluzee/releases/tag/v3.5.0). We would kindly ask to include KumuluzEE to the list of servers for MicroProfile 2.2.
If we can help somehow, please let me know.
Thanks, Jan

Hello, @jmezna,
The fastest way to do that is to open a PR. See our documentation on how to add new versions.
Let us know if you find the doc helpful, please :)

I opened the PR #179

Closed through #179


my project's config.json file empty

VSCode Version:1.5.2
OS Version: OSX 10.11.6

Steps to Reproduce:

Open any project containing a config.json file
Click on config.json file to open it

Contents of config.json file is either empty, or VS Code displays the content of the previously viewed file

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line, execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

When I closed and re-openned  VSCode, the issue went away (should have tried that first, sorry)

Ok let me know when this happens again, but we need some reproducible steps...


Switching fullscreen mode in Godot 4.3 crashes the entire laptop in Fedora 40

Tested versions

Latest Godot Engine version for Fedora 40 [v4.3.stable.fedora 77dcf97d8]

System information
Fedora 40
Issue description
I followed this tutorial or project in youtube, which was working completely fine in Godot 4.2 (https://www.youtube.com/watch?v=dMYv6InQgno&list=PLcZp9zrMgnmOOQXevC-2CfH67QP3mB4wv - Godot 3 Inventory Tutorial | Modular Inventory).
However, in Godot 4.3 it's an absolute mess regarding the fullscreen mode. For no reason, it's always true, the _emit_changed signal executes three times, with two of them using wrong variables, and the worst part is, when launching the game and switching fullscreen mode about 4 times, the entire laptop crashes. At first all my applications got closed, Brave and Godot, except OBS. I tried it a second time and my entire screen froze, went dark, and said "Booting Fedora 40". It's incredible.
Extra: The project is also printing 15 blank lines for no reason. I don't have any print("") or print() anywhere in the code, it makes no sense. I also get errors about animations not named "", which didn't occur in Godot 4.2 and they don't break the game, but they also make no sense, because function play() from AnimatedSprite2D can accept no name as a parameter. It's just a tiny script I use to autoplay AnimatedSprite2Ds once they are ready.
Steps to reproduce
Open the MRP, execute the game, click on the settings button and switch fullscreen mode a few times until it crashes your entire pc. I have a live stream video of me going through this whole problem from beginning to end (AT HOUR, MINUTE, SECOND 19:21:30 for the first encounter, and the last seconds of the entire stream for the full crash. The whole fullscreen problem begins at minute 18:50:00): https://www.twitch.tv/videos/2264047277
NOTE: I am working on my game, which is using the Modular Inventory as it is, I have not edited a single line in it. The MRP should suffer the same error, I will test it after posting this in case it crashes my computer again.
Minimal reproduction project (MRP)
Modular-Inventory-Part-12-main.zip

UPDATE: Just tried the MRP and it works flawlessly. It's only happening in my project, when launching the level "Farm Too.tscn". This is insane, I haven't really modified that code or anything. Something else probably got corrupted, and to find what it is, I think it's going to take a goooood while, I am sorry for this mess, I will see what I can find.
My game is open-source: https://github.com/Caferino/Area-51

SECOND UPDATE: Alright, this is even weirder. I decided to reopen the project and cause the crash, however, it DID NOT HAPPEN ANYMORE! My game is working as flawlessly as the MRP.
Last clue: OBS, I will try again, but while live streaming. Maybe it was OBS interfering.
For some reason _on_changed still executes three times unless I use a workaround I found, commenting _on_data_changed on settings.gd and settings_data.gd. It's weird I have to do that, and also weirder it'd set fullscreen with "true" instead of "false" as I set it up. The 15 blank lines are still happening too, which is super weird. I will update this comment with the results of using OBS at the same time.

IIRC people have had issues running OBS with Godot.
What is your GPU?

That's a relief to hear to be honest, thanks for that, it narrows everything by a lot; and here, my neofetch:
OS: Fedora Linux 40 (Workstation Edition)
Host: HP ENVY m7 Notebook
Kernel: 6.10.11-200.fc40.x86_64
Uptime: 1 day, 3 hours, 29 mins
Packages: 2706 (rpm), 46 (flatpak)
Shell: bash 5.2.26
Resolution: 1920x1080
DE: GNOME 46.5
WM: Mutter
WM Theme: Adwaita
Theme: Nordic-darker-v40 [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: Intel i7-7500U (4) @ 3.500GHz
GPU: Intel HD Graphics 620
GPU: NVIDIA GeForce 940MX
Memory: 3217MiB / 15870MiB
During testing and pretty much all day I use a 720p resolution, because 1080p overheats my laptop when playing World of Warcraft, fps drops and more. The screen also has an uncommon size of 17'', which has made me wonder if that could potentially have some involvement with bugs I have dealt with before regarding GPU/UIs/Gnome, etc, maybe not


JdkZlibDecoder and JZlibDecoder consistency

Motivation:
JdkZlibDecoder will allocate a new buffer when the previous buffer is filled with inflated data, but JZlibDecoder will attempt to use the same buffer by resizing. This leads to inconsistent results when these two decoders that are intended to be functionality equivalent.
Modifications:

JdkZlibDecoder should attempt to resize and reuse the existing buffer instead of creating multiple buffers

Result:
Fixes https://github.com/netty/netty/issues/6804

@Scottmitch while I am not against the change its important to note that its an implementation detail and nothing the user should relay on IMHO

@normanmaurer - I agree its an implementation detail ... however I don't think it makes sense for these two decoders to have different behavior (from our perspective). ProtobufDecoder#decoder is a MessageToMessageDecoder and therefore doesn't have access to multiple ByteBuf objects at once so some additional aggregation would be necessary at this level. Also this PR potentially reduces the size on each buffer re-size in JZlibDecoder to what is necessary based on what has been decoded.

@Scottmitch ok sounds good... Just wanted to clarify that this behaviour could break at any point again as its an implementation detail so the user should not depend on it. Ship it

4.1 (e06cb82c4) 4.0 (19be3fe5f)