Tests fail with --coverage while they are 100% pass without --coverage

Environment information

OS: ubuntu 22.*
Python Version: 3.8.10
ape and plugin versions: 0.6.20

Installed Plugins:
  infura       0.6.0
  alchemy      0.6.0
  template     0.6.1
  foundry      0.6.11
  solidity     0.6.6
  tokens       0.6.1
  vyper        0.6.11
  hardhat      0.6.13
  polygon      0.6.5
  etherscan    0.6.7
  ens          0.6.1

Contents of your ape-config.yaml (NOTE: do not post anything private like RPC urls or secrets!):

name: myContract

default_ecosystem: ethereum

# number_of_accounts: 5

plugins:
  - name: infura
  - name: alchemy
  - name: vyper
  - name: ens
  - name: etherscan
  - name: hardhat

vyper:
  evm_version: istanbul  # bor doesn't support latest forks

geth:
  ethereum:
    mainnet:
      uri: http://myServer:8545
      chain_id: 109

hardhat:
  request_timeout: 30  # Defaults to 30
  fork_request_timeout: 600  # Defaults to 300
  fork:
    ethereum:
      mainnet:
        upstream_provider: geth

test:
  coverage:
    reports:
      terminal:
        verbose: true  # Show verbose coverage information in the terminal.

What went wrong?
When I run my tests without --coverage, I get 100% PASS as a result. When I add --coverage, I get errors.
It happens when I call my function that accepts an address as the only input parameter.
So in short:
def myFunction(_address: address):
And I test it with myContract.myFunction(address_to_check, sender=address_in_adminlist)
Ape tells me:
from field must match key's 0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C, but it was 0xc89D42189f0450C2b2c3c61f58Ec5d628176A1E7
Long version below
def test_Profile(my_contract, owner, not_owner):
    my_contract.storeProfile('mango', owner , 1, 'hi Im nobody bla bla bla', sender=owner)
    assert my_contract.getProfile(owner, sender=owner) == ('mango', owner, 1,'hi Im nobody bla bla bla')
    assert my_contract.getProfile(owner, sender=not_owner) == ('mango', owner, 1,'hi Im nobody bla bla bla')

The contract function is literally this: Return a stored struct for the account that got passed.
There is no assertion that only the owner address can request their profile.
@view
@external
def getProfile(account: address) -> Profile:
    return self.profileStore[account]

And the error message is
/home/ethbox/Vyper-Main/myContract/tests/test_myContract.py:70: in test_Profile
    assert my_contract.getProfile(owner, sender=not_owner) == ('mango', owner, 1,'hi Im nobody bla bla bla')
E   TypeError: from field must match key's 0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C, but it was 0xc89D42189f0450C2b2c3c61f58Ec5d628176A1E7
        myContract = <myContract 0x274b028b03A250cA03644E6c578D81f019eE1323>
        not_owner  = <TestAccount 0xc89D42189f0450C2b2c3c61f58Ec5d628176A1E7>
        owner      = <TestAccount 0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C>

And the way profiles are stored:
struct Profile:
    # userID: uint256
    userName: String[64]
    pfpContract: address
    pfpID: uint256
    bio: String[256]

profileStore: HashMap[address, Profile]

So for some reason it doesn't allow not_owner to call the getProfile function and pass not_owner as the sender and requesting the profile created by sender. Which doesn't make sense with the vyper function.
Also it should either succeed or fail in both scenarios, wether I test with or without --coverage.
So not consistent.
To make things more exciting I fork shibarium with ape-hardhat (even though it's called ethereum in the ape-config. I just flipped the IP)
ape test --network ethereum:mainnet-fork:hardhat --coverage
How can it be fixed?
Not entirely sure, seems like the address passed as a parameter (owner) is overwritten with the sender= address (not_owner).
This only gets triggered when I use --coverage.

Can you again on 0.7 if possible?
We have fixed some things, at least.. failing to get coverage on a tx should no longer cause the test to fail anyway.

Can you try again on 0.7 if possible?
We have fixed some things, at least.. failing to get coverage on a tx should no longer cause the test to fail anyway.

I've tested with this setup:
Python 3.10.13
Ape 0.7.1
Vyper 0.3.10
I upgraded the entire toolchain, deleted old python versions / libs like this sudo rm -rf /usr/local/lib/python3.8 and every occurence everywhere because I had some weird interference going on with ape/vyper still trying to pull stuff from those locations.
Uninstalled then reinstalled all the ape plugins. Coverage is working and I no longer get the scenario where test fail with a non-owner/deployer account on a function that doesn't check for msg.sender at all.
:-)

Me again, reopening again :-)
getting a did not revert using coverage while the test passes without coverage.
Tried with the 0.7.1 version and also did a pip3 install git+
Also set the version pragma to vyper 0.3.7 and back to 0.3.10 to see if that had any effect which it didn't.
Bit of a peculiar error messages, depending if we have set a revert message or not in the _checkAccess() function
    # with a revert message:
    with ape.reverts():
E   AssertionError: Transaction did not revert.
E   However, an exception of type <class 'OverflowError'> occurred: Python int too large to convert to C ssize_t.

    # without a revert message
    with ape.reverts():
E   AssertionError: Transaction did not revert.
E   However, an exception of type <class 'ape.exceptions.DecodingError'> occurred: Tried to read 32 bytes, only got 0 bytes..

It's checking
denyList: HashMap[address, bool]

@view
@internal
def _denied() -> bool:
    return self.denyList[msg.sender]

@view
@internal
def _checkAccess() -> bool:
    assert not self._denied(), 'optional revert message'
    # rest of checks

I call an external function extFunction that calls _checkAccess() to determine if someone is admin, on allow/deny lists etc depending on contract mode. and one of the checks is to  call _denied() to check if someone is on the denylist before the body is executed
Running the tests without --coverage is 100% pass.

with -pdb I get some more hints
`self = <ape.pytest.contextmanagers.RevertsContextManager object at 0x7feb1c02e770>, exc_type = <class 'ape.exceptions.DecodingError'>
exc_value = DecodingError('Tried to read 32 bytes, only got 0 bytes.'), traceback = <traceback object at 0x7feb1c98ae00>
def __exit__(self, exc_type: Type, exc_value: Exception, traceback) -> bool:
    if exc_type is None:
        raise AssertionError("Transaction did not revert.")

    if not isinstance(exc_value, ContractLogicError):

      raise AssertionError(

            f"Transaction did not revert.\n"
            f"However, an exception of type {type(exc_value)} occurred: {exc_value}."
        ) from exc_value

E           AssertionError: Transaction did not revert.
E           However, an exception of type <class 'ape.exceptions.DecodingError'> occurred: Tried to read 32 bytes, only got 0 bytes..
../../../.local/lib/python3.10/site-packages/ape/pytest/contextmanagers.py:162: AssertionError`

If you run with -v debug, it will print out Ape's traceback which will really help me. I still haven't reproduced!

I think this is the relevant section, let me know if you need more details :-)
with --coverage:
`DEBUG: Making request HTTP. URI: http://<IP_ADDRESS>:8545/[hidden] Method: hardhat_metadata
DEBUG: hardhat_metadata
DEBUG: Getting response HTTP. URI: http://<IP_ADDRESS>:8545/[hidden] Method: hardhat_metadata, Response: {'jsonrpc': '2.0', 'id': 4, 'result': {'clientVersion'<EMAIL_ADDRESS>'chainId': 31337, 'instanceId': '0x54a18089bc9e3a55f490e4b67117ac892f2b4a1b51ac3d1b8ea4f52624cb9bc9', 'latestBlockNumber': 2446853, 'latestBlockHash': '0xf91ca2a5d082a6018eaeee793b51f2b72aa410612727f9a3d6ce332f9af289c0', 'forkedNetwork': {'chainId': 109, 'forkBlockNumber': 2446853, 'forkBlockHash': '0xf91ca2a5d082a6018eaeee793b51f2b72aa410612727f9a3d6ce332f9af289c0'}}}
tests/test_bricker.py .DEBUG: eth_getStorageAt (4)
F
/home/user/Projects/Vyper/shibber/tests/test_bricker.py:115: in test_all_modes
with ape.reverts():
E   AssertionError: Transaction did not revert.
E   However, an exception of type <class 'ape.exceptions.DecodingError'> occurred: Tried to read 32 bytes, only got 0 bytes..
allowed_user = <TestAccount 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc>
bricker_contract = <bricker 0x5FC8d32690cc91D4c39d9d3abcBD16989F875707>
denied_user = <TestAccount 0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65>
mode       = 1
owner      = <TestAccount 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266>
Starting interactive mode. Type exit to halt current test.
In [1]: `
and without --coverage:
`DEBUG: Making request HTTP. URI: http://<IP_ADDRESS>:8545/[hidden] Method: hardhat_metadata
DEBUG: hardhat_metadata
DEBUG: Getting response HTTP. URI: http://<IP_ADDRESS>:8545/[hidden] Method: hardhat_metadata, Response: {'jsonrpc': '2.0', 'id': 4, 'result': {'clientVersion'<EMAIL_ADDRESS>'chainId': 31337, 'instanceId': '0x3e8533557458be475c2f5f93b8e3a8ebf88c301301af3f627a53cc5e7f3cb671', 'latestBlockNumber': 2446967, 'latestBlockHash': '0xce630e41cd1a36bbd68629dbeff2eef47ad243eeaa61ee5c5ec56c9d7c23b472', 'forkedNetwork': {'chainId': 109, 'forkBlockNumber': 2446967, 'forkBlockHash': '0xce630e41cd1a36bbd68629dbeff2eef47ad243eeaa61ee5c5ec56c9d7c23b472'}}}
tests/test_bricker.py DEBUG: Contract call:
DEBUG: From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
.DEBUG: eth_getStorageAt (4)
DEBUG: Contract call:
DEBUG: From:                0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc
DEBUG: To:                  0x5fc8d32690cc91d4c39d9d3abcbd16989f875707
DEBUG:
DEBUG: Error: Transaction reverted without a reason string
DEBUG: at . (0x5fc8d32690cc91d4c39d9d3abcbd16989f875707)
DEBUG: at processTicksAndRejections (node:internal/process/task_queues:95:5)
DEBUG: at HardhatNode.runCall (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:679:20)
DEBUG: at EthModule._callAction (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/provider/modules/eth.ts:360:9)
DEBUG: at HardhatNetworkProvider._sendWithLogging (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:145:22)
DEBUG: at HardhatNetworkProvider.request (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:122:18)
DEBUG: at JsonRpcHandler._handleRequest (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/jsonrpc/handler.ts:191:20)
DEBUG: at JsonRpcHandler._handleSingleRequest (/home/user/Projects/Vyper/shibber/node_modules/hardhat/src/internal/hardhat-network/jsonrpc/handler.ts:152:17)
DEBUG:
.DEBUG: eth_getStorageAt (4)
.DEBUG: eth_getStorageAt (4)
DEBUG: Contract call:
DEBUG: From:                0x70997970c51812dc3a010c7d01b50e0d17dc79c8
DEBUG: To:                  0x5fc8d32690cc91d4c39d9d3abcbd16989f875707
DEBUG:
....                                                                                [100%]
======================================================================================== 7 passed in 11.73s =========================================================================================
INFO: Stopping 'Hardhat node' process.
user@laptop:~/Projects/Vyper/shibber$ `
Interesting enough without coverage there's still (sort of) an error but it seems to pass the test.

I am jus having trouble reproducing any of this :(
Are you able to possible create a reproduction repo I can work off of?

The plot thickens:
I am running the tests against shibarium, which is a bor/heimdalld based chain. Pretty much polygon with a different base token.
I switched to my ethereum node and now it forks mainnet and tests with coverage without any issues.
Polygon's bor doesn't support the latest EVM, but (I think) up to the London fork and I know they're working to release an update to bor to support newer EVM versions. Not sure if that is mainnet already.
Currently I'm not in a position to test with polygon if the behaviour is the same. I'll try as soon as I get a chance.

I just tried polygon mainnet fork and ran the tests but still didnt have an issue, but maybe i should use something already deployed to mainnet before forking?
I pushed my config changes to the repro branch on the PR I commented above.


Enhanced extra attributes

All extraAttributes() are now always merged onto the outer HTML element of the component. This was previously VERY inconsistent between fields, causing unexpected merging behaviour.
I've also introduced a new extraAlpineAttributes() method - which always merges attributes onto the root Alpine element (the one containing x-data).
Additionally, I've added the first "dedicated" attribute bag - for merging onto the Date Picker's trigger button. You may use extraTriggerAttributes() method for this. See #875.

Since this update there is no longer possible for us to change the styling of inputs in a form. We will not use rounded attributes and need to remove them from the forms via extraAttributes. Any help would be nice, thanks!
Eg,
TextInput::make('sort_order')
            ->label(__('groups.sort_order'))
            ->required()
            ->numeric()
            ->extraAttributes([
                'class' => 'border rounded-none pl-2',
            ]);

Hey, we should add extraInputAttributes() to the text input component :) Do you feel comfortable PRing (check out extraAlpineAttributes() for inspiration), or should I?

It would be fun for me to contribute but perhaps it will take a couple of days for me. I will try.
And once again, thanks for magic packages, so much fun.
Any discord channel connected to this lib?

Yup! Join us on https://filamentadmin.com/discord.

It would be fun for me to contribute but perhaps it will take a couple of days for me. I will try.
And once again, thanks for magic packages, so much fun.
Any discord channel connected to this lib?

I've implemented extraInputAttributes() in #1039 :)


feat!: 1.0 release

This changelog needs to be put in Lux. I will copy it over later.
merge after #42
Changelog

AbstractExplicit... names have been changed to AbstractLux....
Functors.jl and Setfield.jl are non-essential dependencies and have been moved into extensions.
Single argument outputsize is no longer supported.
fixes https://github.com/LuxDL/Lux.jl/issues/795

AbstractLuxContainerLayer{(:a,)} wraps the initialparameters and initialstates with a NamedTuple with a single field a.
Previous behavior of unwrapped NamedTuple is provided via AbstractLuxWrapperLayer.

Rationale behind removing outputsize(layer)
Consider the following case. We define

outputsize(l::Chain) = outputsize(l.last_layer)
outputsize(l::MaxPool, x, rng) = <some calculation>

If the last layer of Chain is MaxPool then this is a clear error. (But LuxCore fails to determine that this codepath of selecting outputsize(layer) is wrong because of Chain. We could query _return_type and check for Union{} to avoid this codepath but I think it is an overkill and might as well ask users to define the 3 arg version of outputsize).
An easy workaround is to always propagate x and rng and forward them accordingly. Additionally, to be safe container layers shouldn't override outputsize generally.
cc @ChrisRackauckas @SebastianM-C about this change. I think MTK NeuralNetworks is the only one using this outputsize, so wanted you to be aware of this future change.

So how would you recommend computing the output size cheaply?

So how would you recommend computing the output size cheaply?

For Chain it is pretty much impossible without running the model, right? Flux does https://github.com/FluxML/Flux.jl/blob/master/src/outputsize.jl which is kind of smart but also requires you to define it pretty much for every layet.

That's my point, don't we need this function on every layer as part of the interface?

Do you mean make it mandatory to define outputsize?

I don't see how else to support static analyses

Having a way to specify the layer size could also help for things like WrappedFunction which can theoretically return whatever they want. If we could specify the output size in the layer definition, then that would make MTKNeuralNets more compatible with more layer types.
I recall trying the 3 arg version to determine the outputsize dynamically, but it didn't play that nice with symbolic tracing from what I remember (I can double check). In any case, a way for users to specify output sizes would be very helpful for MTKNeuralNets. I'm not sure what other things would benefit from this.

I think that is a plausible suggestion. We already reserve "name", so I don't see why we can't extend that to reserving "output_size. Essentially check if the struct contains the field output_size` and that field is not nothing, then that is the output size. Else do "something".

but it didn't play that nice with symbolic tracing from what I remember (I can double check)

Do you need to run symbolic tracing? Something like the flux version can be implemented with specific overloads for common Lux operations. Essentially take a Symbolic Array, convert it to a NilArray. Propagate the NilArray which is extremely cheap because it doesn't really do any computation and you have the final shape.

@SebastianM-C here is a Lux version https://github.com/LuxDL/Lux.jl/pull/811 which should be cheap to run to get the sizes.

Do you need to run symbolic tracing?

I'd rather avoid that if there's a better solution.

Essentially take a Symbolic Array, convert it to a NilArray. Propagate the NilArray which is extremely cheap because it doesn't really do any computation and you have the final shape.

Thanks, let me see what I can do.

The NilArray PR is ready and I will merge it once tests pass. The (private till 1.0) API is https://github.com/LuxDL/Lux.jl/blob/ap/nilarray/test/helpers/size_propagator_test.jl. Once all the PRs land I will change outputsize to use NilArray internally.
From the tests, almost all networks should work (the only exceptions being, if the element types aren't Number)


[CSS] CTA boxe adjustment

The left menu box called "Your CTA button" need some padding at the bottom of the box, the button is to close from the browser UI to my opinion (note this may need to be test on other browser size).

The CTA has been changed to a Bootstrap card and can now be modified using Bootstrap classes to work as you like.

This update will be posted with fix, this issue is closed.


⚠ Bofrost.lu has degraded performance

In 7c3c8e2, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1689 ms

Resolved: Bofrost.lu performance has improved in 15c1bf0.


API tests fail Intermittently on coreApiWebdavMove1/moveFolder.feature

Build fail: https://drone.owncloud.com/owncloud/ocis/23650/65/5 , https://drone.owncloud.com/owncloud/ocis/24195/65/5
Hints: If reproducing locally is hard then try to understand the code and error  thrown and make assumption with strong logic what could cause this issue to occur in CI only
Scenario Outline: renaming folder with dots in the path                                                                         # /drone/src/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature:105
    Given using <dav_version> DAV path                                                                                # FeatureContext::usingOldOrNewDavPath()
    And user "Alice" has created folder "<folder_name>"                                                                           # FeatureContext::userHasCreatedFolder()
    And user "Alice" has uploaded file with content "uploaded content for file name ending with a dot" to "<folder_name>/abc.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
    When user "Alice" moves folder "<folder_name>" to "/uploadFolder" using the WebDAV API                                        # FeatureContext::userMovesFileUsingTheAPI()
    Then the HTTP status code should be "201"                                                                                # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the content of file "/uploadFolder/abc.txt" for user "Alice" should be "uploaded content for file name ending with a dot" # FeatureContext::contentOfFileForUserShouldBe()

    Examples:
      | dav_version | folder_name   |
      | old         | /upload.      |
      | old         | /upload.1     |
      | old         | /upload...1.. |
      | old         | /...          |
      | old         | /..upload     |
      | new         | /upload.      |
        Failed step: And user "Alice" has created folder "/upload."
        HTTP status code was not 201 or 204 while trying to create folder '/upload.' for user 'Alice'
        Failed asserting that an array contains 409.
      | new         | /upload.1     |
      | new         | /upload...1.. |
      | new         | /...          |
      | new         | /..upload     |
      | spaces      | /upload.      |
      | spaces      | /upload.1     |
      | spaces      | /upload...1.. |
      | spaces      | /...          |
      | spaces      | /..upload     |

It is possible that, after a new user has been created, there is a very short period of time where the APIs do not "see" the user, and a request to create a folder or upload a file returns 409 "conflict". 409 is the code that is returned when providing a username-password but trying to upload to a wrong/different non-existent username.
We can make the tests more robust by trying again if we get a 409 from a Given step that is trying to set up the files/folders for a user. In that situation we just want to quickly create/upload the folders/files needed for a scenario. Retry is fine if it works the 2nd or 3rd time. We can use similar logic to what already exists for 425 responses.


:building_construction: Split into different modules, integrate Kotlin, bugfixes & general improvements

👽 Update Search to be in line with MAL genre & search UI overhaul
🧑💻♻ Switched some files to Kotlin, most new files will be written in Kotlin
🚚 Renamed packages to be more appropriate
👥 Add contibutor biratkk
🔨 Update POM(s)
& more but 🤷♂

Remember to squash & merge


[stable/prometheus-operator] allow to configure operator log level

What this PR does / why we need it:
allows to configure operator log level (https://github.com/coreos/prometheus-operator/pull/1277/files)
Which issue this PR fixes
Special notes for your reviewer:
@gianrubio
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/lgtm

/retest all

@itaysk can you please bump the chart version again?

done

/lgtm
/retest


[release/1.6] cherry-pick: Upgrade golangci-lint and its GitHub Action

The GitHub Action is unstable especially on Windows (see #6618).
This change may not address the issue itself, but using the latest
version makes reporting the upstream the issue easier.
Signed-off-by: Kazuyoshi Kato<EMAIL_ADDRESS>(cherry picked from commit 622a35a4fa7c275ad45618c672d4e7d94ae87102)

Cherry-pick of #6666


Issue with translation again

I have red all the issue reports about the translation and can't understand the following. The author states that there is no way yet to set the translation language manually, it follows the system settings. But despite that there are a lot of language files in the 'translation' folder of the custom component. In my setup I have only one entry that can't be translated, it's shown in the screenshot. This entry (State of the BMI interpretation) is translated in the corresponding language file, but not updated in the card. Actually, the card is not using the language files at all, because even if you delete the language file and clear the cache of the browser the card stays translated with that only entry missing, as in the screenshot. So how it actually works and how it can be corrected?

I will look at the error. There is an automatic translation depending on the HA system language and if someone provided the translation in their language. Now it may happen that a person does not translate 100% so translations will be missing. In this case English takes over. At first glance I didn't see any errors, I will test in my environment.

I will look at the error. There is an automatic translation depending on the HA system language and if someone provided the translation in their language. Now it may happen that a person does not translate 100% so translations will be missing. In this case English takes over. At first glance I didn't see any errors, I will test in my environment.

Thanks  for the quick reply! And thanks for the grate job done with this component.
As I mentioned before, the translation file includes those states. But how exactly the card reads those entries? If I delete the translation file and clear the cash the translation is still there.

@Opontios Sorry for my late return. I changed computers and had some difficulty reinstalling the card in development mode. I did some tests and I have the overweight translation. As is often the case, I advise you to switch to English and go to the card page to press F5. Switch back to the language of your choice, then F5 again on the card page.


Fix github releases

Fix scripts to push github releases to repo

Github releases are now being posted to the repo


Low flash programming performance on python 3.7

Hi,
I am testing cypress boards with pyocd and experienced low performance when using python 3.7. For example flashing hex file takes twice more time on python 3.7 then 2.7 for the same bin:
PYTHON ==2.7
(venv) D:\CyP\pyOCD\pyocd_2_7\pyocd>pyocd flash "D:\CyP\pyOCD\pyocd_2_7\pyocd\binaries\l1_cy8c6xx7.bin"
[====================] 100%
0002320:INFO:loader:Programmed 10936 bytes (22 pages) at 5.89 kB/s (22 pages unchanged)
PYTHON ==3.7
(venv) D:\CyP\pyOCD\pyocd_3_7\pyocd>pyocd flash "D:\CyP\pyOCD\pyocd_3_7\pyocd\binaries\l1_cy8c6xx7.bin"
[====================] 100%
0006685:INFO:loader:Programmed 10936 bytes (22 pages) at 2.24 kB/s (22 pages unchanged)
Also when running gdb_test.py it happends that tests fails due to  loss of synchronization between gdb-server and client due to slow gdb-server.
automated_test_results_CYW943012P6EVB-01_0.txt
output_cy8c6xx7_0.txt

Thanks for the report.
What OS are you testing under? Is the OS running as a VM?
This may somehow be specific to PSoC6 targets, as I'm not seeing the performance difference on other targets.

Target
Version
Result

nRF52832
Python 3.7
Programmed 276960 bytes (69 pages) at 30.83 kB/s (0 pages unchanged)

nRF52832
Python 2.7
Programmed 276960 bytes (69 pages) at 28.07 kB/s (0 pages unchanged)

K64F
Python 3.7
Programmed 703792 bytes (172 pages) at 18.99 kB/s (0 pages unchanged)

K64F
Python 2.7
Programmed 703792 bytes (172 pages) at 19.00 kB/s (0 pages unchanged)

Notice that in your tests, pyOCD is not actually programming flash. See the "22 pages unchanged" remark. The results you reported actually show flash read performance over AHB. These numbers are surprisingly low compared to most targets, unless the AHB clock is set very low.
Can you try re-running, but erasing the chip before each test?
For a raw data transfer performance test, try running test/speed_test.py. For most chips, RAM and flash read performance is comparable. Here are examples using the same targets as above:

Target
USB
Version
RAM
Flash

nRF52832
High speed
Python 3.7
144.2 kB/s
145.8 kB/s

nRF52832
High speed
Python 2.7
144.0 kB/s
146.0 kB/s

K64F
Full speed
Python 3.7
55.6 kB/s
55.5 kB/s

K64F
Full speed
Python 2.7
56.3 kB/s
56.2 kB/s

All of the above results were obtained under macOS 10.14.2 on a MacBook Pro (15-inch, 2018).

Hi thanks for response,

What OS are you testing under? Is the OS running as a VM?

We are running automated_tests.py on Win10, Mac and Ubuntu, all not virtual machines, the result is same for all OSs.

Can you try re-running, but erasing the chip before each test?

Yes, here are results (on Win10):
Python 2.7:
(venv) D:\CyP\pyOCD\pyocd_2_7\pyocd>pyocd flash -e chip "D:\CyP\pyOCD\pyocd_2_7\pyocd\binaries\l1_cy8c6xxa.bin"
[====================] 100%
0003667:INFO:loader:Programmed 10240 bytes (20 pages) at 3.39 kB/s (0 pages unchanged)
Python 3.7
(venv) D:\CyP\pyOCD\pyocd_3_7\pyocd>pyocd flash -e chip "D:\CyP\pyOCD\pyocd_3_7\pyocd\binaries\l1_cy8c6xxa.bin"
[====================] 100%
0013944:INFO:loader:Programmed 10240 bytes (20 pages) at 0.98 kB/s (0 pages unchanged)

For a raw data transfer performance test, try running test/speed_test.py. For most chips, RAM and flash read performance is comparable.

Here are results of speed test we have on Ubuntu:
Python 2.7:
------ TEST RAM READ / WRITE SPEED ------
Writing 65536 byte took 2.439 seconds: 26871.317 B/s
Reading 65536 byte took 2.414 seconds: 27144.647 B/s
TEST PASSED
------ TEST ROM READ SPEED ------
Reading 2097152 byte took 85.714 seconds: 24466.847 B/s
TEST PASSED
0102623:INFO:dap:DP IDR = 0x6ba02477
CY8CPROTO-062-4343W #0: finished Speed Test...  PASSED (276.193 s)
Whole test log of running automated_tests.py on Mac with poth Python 2.7 and 3.7 for psoc targets attached:
Ub_log.txt

Pull request #537 resolves the issue


Do you support YOLO11

Do you support YOLO11

I have test YOLO11-pose, it works.

Do you support YOLO11

Maybe support default.


Check cfg to catch feature typos

Nightly Rust has added support for -Zcheck-cfg, which will show a warning if there is a #[cfg(...) for a nonexistant feature / cfg.
While not possible to add this to CI because it is currently nightly-only, it can be run locally to catch all current typos.
Please read this comment on how to use -Zcheck-cfg. Once you follow the setup, run:
cargo +nightly check -Zcheck-cfg --workspace

I found a few warnings related to missing features, but I currently don't have the time to work on it today.

We can actually add this to CI: we run some checks on nightly already :)

I'm working on removing the warnings and adding the check to the CI. I'll make a pr in a bit once it is ready!


add svelte-codesandbox

@Tropix126, Can you rebase your branch with staging and run npm run format.
The file src/routes/components/components.json have formatting issues (usage of spaces)

this PR would need to be rebased


SteamCMD hangs on anonymous login after Ubuntu dist-upgrade

Documentation Request
Just updated from Ubuntu 20.10 to 21.10 after a long time without using AMP.
Updated AMP and all instances to latest version.
Every instance that uses SteamCMD hangs at this point:
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
/tmp/dumps is not owned by us - delete and recreate
Unable to delete /tmp/dumps. Continuing anyway.
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version<PHONE_NUMBER>
-- type 'quit' to exit --
Loading Steam API...OK
Logging in user 'nonymous' to Steam Public...

Notice that  on anonymos
Tried changing system locale from es-ES to en-US but still the same

This was due to a bug that has been fixed in the latest release. Run this:
ampinstmgr --nocache upgradeall


Update Docker Compose for local deployment

Describe the task
Update docker compose to use postgis and fix issues related to local deployment
Acceptance Criteria

[x] Ensure postgis container is getting created
[x] Ensure all services are up and running in local machine (docker)

merged to dev


Uncaught (in promise) Error: Based on the provided shape, [25], the tensor should have 25 values but has 21

I have a problem starting the online application in that part:
Promise.all([
    faceapi.nets.tinyFaceDetector.loadFromUri('./assets/lib/face-api/models'),
    faceapi.nets.faceLandmark68Net.loadFromUri('./assets/lib/face-api/models'),
    faceapi.nets.faceRecognitionNet.loadFromUri('./assets/lib/face-api/models'),
    faceapi.nets.faceExpressionNet.loadFromUri('./assets/lib/face-api/models'),
    faceapi.nets.ageGenderNet.loadFromUri('./assets/lib/face-api/models'),
    faceapi.nets.ssdMobilenetv1.loadFromUri('./assets/lib/face-api/models')
]).then(startVideo)

In the console returns the following error:
face-api.js:23 Uncaught (in promise) Error: Based on the provided shape, [25], the tensor should have 25 values but has 21
    at C (face-api.js:23)
    at _n (face-api.js:23)
    at Fn (face-api.js:23)
    at o (face-api.js:23)
    at cf (face-api.js:23)
    at face-api.js:23
    at Array.forEach (<anonymous>)
    at face-api.js:23
    at Array.forEach (<anonymous>)
    at face-api.js:23

If I put the command console.log (faceapi.nets) on the console the following appears:
{ssdMobilenetv1: SsdMobilenetv1, tinyFaceDetector: TinyFaceDetector, tinyYolov2: TinyYolov2, mtcnn: Mtcnn, faceLandmark68Net: FaceLandmark68Net, …}
ageGenderNet: AgeGenderNet {_name: "AgeGenderNet", _params: undefined, _paramMappings: Array(0), _faceFeatureExtractor: TinyXception}
faceExpressionNet: FaceExpressionNet {_name: "FaceExpressionNet", _params: undefined, _paramMappings: Array(0), _faceFeatureExtractor: FaceFeatureExtractor}
faceLandmark68Net: FaceLandmark68Net {_name: "FaceLandmark68Net", _params: undefined, _paramMappings: Array(0), _faceFeatureExtractor: FaceFeatureExtractor}
faceLandmark68TinyNet: FaceLandmark68TinyNet {_name: "FaceLandmark68TinyNet", _params: undefined, _paramMappings: Array(0), _faceFeatureExtractor: TinyFaceFeatureExtractor}
faceRecognitionNet: FaceRecognitionNet {_name: "FaceRecognitionNet", _params: undefined, _paramMappings: Array(0)}
mtcnn: Mtcnn {_name: "Mtcnn", _params: undefined, _paramMappings: Array(0)}
ssdMobilenetv1: SsdMobilenetv1 {_name: "SsdMobilenetv1", _params: undefined, _paramMappings: Array(0)}
tinyFaceDetector: TinyFaceDetector {_name: "TinyYolov2", _params: undefined, _paramMappings: Array(0), _config: {…}}
tinyYolov2: TinyYolov2 {_name: "TinyYolov2", _params: undefined, _paramMappings: Array(0), _config: {…}}
__proto__: Object

I don't know where it can be wrong or what is wrong, at localhost it worked, I put it online to test it and it just returns me this error. Can you help me? Thank you

I get exactly the same error only online not localhost

@nicolau-arbex @XavierLGLS Try this: https://github.com/justadudewhohacks/face-api.js/issues/131#issuecomment-561738466
It worked for me.
Also, when using loadFromUri to load the nets, don't use a file spec, use a uri spec, ie:
faceapi.nets.tinyFaceDetector.loadFromUri('assets/lib/face-api/models')
or
faceapi.nets.tinyFaceDetector.loadFromUri('/assets/lib/face-api/models')
If you want load the nets from files, you must use LoadFromDisk; check the docs for more info:
https://justadudewhohacks.github.io/face-api.js/docs/index.html

Indeed, like @nosuko said, the solution is in this comment : https://github.com/justadudewhohacks/face-api.js/issues/131#issuecomment-561738466
Your shard file needs an extension (and change the name with the extension in the json file too)
Worked for me !


moved idp right before platform on the home page tutorials & docs sec…

…tions
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

@schoudhury will review.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

LGTM


Implement tests for starknet_getStateUpdate

starknet_getStateUpdate API doc here.
The boilerplate code has been implemented as part of #9. However, the method was unimplemented at the time of development.

@gabsn  can we close this as this is covered in #58


The urls of GoogleDrive maybe failed

Hi, I tried to download PLBART checkpoint. However, the urls of GoogleDrive maybe failed in the download.sh in the pretrain. Would you please provide new urls?

Yes, unfortunately, the checkpoints are no longer available through GDrive. Please get them from Huggingface.


Not able to slide with data subscribed

I'm trying to create slides dynamically with ngFor:
`<swiper class="swiper-container main-view-slider" [config]="configSwiper">

{{a.text}}

        Affirm
        +1

The variable "affirmations" is populated with promise and in the html rendered code you can see that ngFor correctly produced the "swipper-slide" (four of them in this example). The first slide is correctly shown but I CAN'T swipe the slides??!! If I make the same example but with affirmations being explicitly declared in the ts file likeaffirmation: any = [
{
image:{clss: "background-image-2", author: "Daniel Roe", src: "assets/img/Daniel-Roe-med.jpg", tmb: "assets/img/Daniel-Roe-tmb.jpg"},
text:"slide 1"
},
{...},
{...},
]`
then it works perfectly...
it's like the promise may be lagging the component...?
Can you help me with this one?

When ever you are dealing with dynamically created slides you need to either use observer: true in swiper config (works in most cases detecting element changes) or call the swiper update method manually after the slides have changed.

sconix...I really apreciate your reply!
I was thinking calling the method manually.
Could you show me an example...I think it could benefit others having an example here...that could have this problem too.

You can call the update via the directiveRef (example has examples for component and directive how to call the api functions). So basically you just call the update function after your async promise finishes, the update is run within timeout so the rendering should have time to take place. But there is no simple example I can make since things like changedetection strategy etc. has an effect when and where to call the update. So you just need to experiment a bit.

Ok. thanks a lot you really helped me!


Nice Package!

Any way to add thumbnails and continuous page scroll?
Also "save as" button.
It would be nice to have optional props to hide/unhide buttons.
Thanks for the good work.

"Download" button added and props hide/unhide (showButtons) added


Ingress URL path

I'm trying to use ingress object to access to opemetadata web page but can't fine any example of values.yaml file to use. I can't use the / as path because we run different application in the same cluster.
Additional context
I have setup the inrgess section like this
ingress:
  enabled: true
  className: "nginx"
  annotations: {}
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: HOSTNAME
      paths:
        - path: /openmeta
          pathType: ImplementationSpecific
  tls:
    - secretName: cert-secret
      hosts:
        - HOSTNAME

the tls section and creation of the ingress object seemd right but when i try to open https://HOSTNAME/openmeta i get this error

@ricgatti please use the slack channel to ask questions and not create issues unless it is confirmed to be a bug.


Merge redirect file into ng-delegate-node-reorg branch

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-365


Webpage broken?

Seed URL
--
Emulator and version:
--
Bug description
Attempting to randomize via the sotn.io webpage crashes the tab on Firefox. Attempted with no tracker/cookie blocking activated. Also, website does not accept .cue files, contrary to what the "Help" section states.
How to reproduce:
Insert track 1 .bin file to website, click randomize with any settings. *Edit: Using Firefox, untested with Chrome, etc.

What OS and version of FF are you using? Please provide a seed that causes a crash, even if you have to make one up.
As for the help section, it states this...

If your disc image is split across two .bin files, drag only the first .bin file (track 1) into the drop zone.

What OS and version of FF are you using? Please provide a seed that causes a crash, even if you have to make one up.
As for the help section, it states this...
If your disc image is split across two .bin files, drag only the first .bin file (track 1) into the drop zone.

Currently Windows 10, Firefox version 67.0.
Seed: coolseedname
Seems I was mislead by the sentence right before originally.

Do you have any extensions enabled? If so, have you tried disabling them?

No extensions at all.

Have tested in both Chrome and Firefox on Windows 10 and was unable to reproduce the crash. I wish I could help, but I can't fix what I can't reproduce. You may want to try through Chrome or Opera.

Having the same issues, also Windows 10 and Firefox 67.0. No extensions, any seed. I'm suspecting that Edge is doing the same, but not crashing the tab and instead perpetually loading. I've previously generated files using Firefox and the same image, nothing has changed.

treos has reported the same crash on the ROMHacking.net forums:
https://www.romhacking.net/forum/index.php?topic=22579.160
Maybe it's a 32-bit vs 64-bit issue?

I think the issue may have been resolved by https://github.com/3snowp7im/SotN-Randomizer/commit/8372b4c1fa882ff40997003123014f86cba5f03a
If the crashing persists, please comment.

Issue appears to be resolved.


Update method name in rules template, fix rendering

Fixes https://github.com/prometheus/prometheus/issues/4407
Signed-off-by: Julius Volz<EMAIL_ADDRESS>

Now this raises the general question of testing web templates. For us to get reasonably confident that they all render correctly and refer to the right Go-internal names, we would have to do a lot of the construction steps that main() currently does to get all the relevant backing data structures / objects up and running. Maybe it would make sense (not only for this) to refactor main.go to be more reusable and allow you to spin up an entire Prometheus server instance internally without spawning a new process?

:+1:
An e2e test might be easier.

LGTM. Thanks for fixing this!

Filed issue for web template tests here: https://github.com/prometheus/prometheus/issues/4417


Rancher v1.3.0/v1.3.1 not adding ca.crt

Rancher Versions: v1.3.0/v1.3.1
Docker Version: 1.12.6
OS and where are the hosts located? (cloud, bare metal, etc): Ubuntu16.04, cloud
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB) single node ranche
Environment Type: (Cattle/Kubernetes/Swarm/Mesos) Any
Steps to Reproduce:
docker run -d -v /rancherdb/v1.3.0:/var/lib/mysql -v /rancherdata/certs/cert.crt:/ca.crt --restart=unless-stopped --name=rancher-server -p 8080:8080 rancher/server:v1.3.0
Results:
It should add ca.crt but no related logs from "docker logs rancher-server" command, and actually cert.crt was not loaded.
Expected:

The appropriate location is /var/lib/rancher/etc/ssl/ca.crt for 1.3.


Add where to set uefi variables

Follow up to Slack discussion, the file the variables UEFI_SIGN_ENABLE and UEFI_SIGN_KEYDIR are set in was mentioned, as well as an admonition mentioning the case where this is not required.
QA steps: ran build and checked rendered HTML, ran linter. No issues found.
No related ticket, quick fix.
PR Template and Checklist
Please complete as much as possible to speed up the reviewing process.
Readiness and adding reviewers as appropriate is required.
All PRs should be reviewed by a technical writer/documentation team and a peer.
If effecting customers—which is a majority of content changes—a member of Customer Success must also review.
Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Checklist

[x] Run spelling and grammar check, preferably with linter.
[x] Avoid changing any header associated with a link/reference.
[x] Step through instructions (or ask someone to do so).
[x] Review for wordiness
[x] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[x] Use semantic newlines.
[x] follow best practices for commits.

[x] Descriptive title written in the imperative.
[x] Include brief overview of QA steps taken.
[x] Mention any related issues numbers.
[x] End message with sign off/DCO line (-s, --signoff).
[x] Sign commit with your gpg key (-S, --gpg-sign).
[x] Squash commits if needed.

[x] Request PR review by a technical writer and at least one peer.

Comments
Let me know if I need to change anything, such as the file, or any unclear wording in the admonition.

Docs for 7eb2537b7d8d0ab45af5e884966c70196340ec29 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2780/docs/artifacts/html/index.html


Blazor in self hosted OWIN on .NET Framework

I have a service written in .NET Framework that hosts its own webserver using OWIN. Having read about Blazor, I want to start experimenting with it and try to host a Blazor webapp in this service.
However, I haven't found any good instructions on how to do self-hosting with Blazor, especially not on OWIN and .Net Framework. I'd really like a native solution, and converting my solution to .NET Core is not viable. Also, I would really like not to have to compile the Blazor webapp in another solution then copying the files to be hosted using i.e. Microsoft.Owin.StaticFiles middleware.
The question, then, is quite basic:
How can I host a Blazor webapp in my existing OWIN service?

The Blazor build produces a dist directory which just needs to be served through the StaticFiles middleware.
Without having tried anything on my own, i would imagine that this should just work (TM) if you use
app.UseStaticFiles("../relative/path/to/dist/");
I don't see a reason why the blazor project would need to be a in a different .sln

Thanks for answering, @Suchiman!
Yes, serving it as static files should be fine. You might also want to implement some middleware of your own to handle the SPA fallback routing (e.g., so a request for /anypage) is handled by serving the index.html file if it doesn't match a file from the dist directory.


WHY prompt EVERYTIME when startup ???

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Can you repro if you disable all extensions? --disable-extensions


List of Microweber web agencies / creators / designers?

We are almost at the end of implementing Microweber.
Any of you can recommend a list of web (studios / agencies / designers) that are very comfortable with Microweber?
And can give a professional look for customers?

You can check those
https://radioactive.bg/
https://www.laraguys.com/
they work on client project with Microweber

You ca hire our team also, leave your request on email<EMAIL_ADDRESS>and we will send you a list of portfolio
of our clients. Other way you can check in Freelance community websites and put your offer there.

We're working with Microweber mainly for UK Clients - PM for latest portfolio.


Save and complete later on confirmation page submits

Expected behaviour

Save and complete later signs-out and doesn't submit the data

Actual behaviour

Using save and complete later on the confirmation screen submits data and deletes the session

Steps to reproduce the behaviour

Complete a survey with a confirmation page up to the confirmation screen
Use save and complete later
See the Thank You page
The session is now gone.

Technical information
Browser

Any

Operating System

Any

Screenshot

N/A

This is now resolved.

Fixed by https://github.com/ONSdigital/eq-survey-runner/pull/1003


Expose World Space Velocity diagnostic shader

Ok, I leave it then as is. I don't see a big problem to keep it as a diagnostic shader, in appleseed.studio it is also exposed.


Rudimentary authentication for web interface.

Initial implementation of username/password mechanism to access the iGate web interface. This authentication can be switched on and off via the web interface, and the username/password can be changed too. There is no default password, a password can be chosen when enabiling this functionality.
Works on my test gate, needs wider testing before deployment in real world.

tested and running, will add for this new release!
thanks!


Improve first pass of fine directional prediction search

Avoid choosing a suboptimal luma delta if the optimal chroma delta mismatches, by varying only the luma angle delta in the first pass.
AWCY results at default speed:

PSNR
PSNR Cb
PSNR Cr
PSNR HVS
SSIM
MS SSIM
CIEDE 2000

-0.0972
-0.0008
-0.0481
-0.1170
-0.0991
-0.1460
-0.1162

Coverage decreased (-0.006%) to 82.405% when pulling eb24d2fdab922363686678ceac21c522fe7b6f32 on barrbrain:fine-dir-pred into 6a4e7eb3445896023a7fd65df5feaefcfd53de10 on xiph:master.


reloadData() in viewWillTransition doesn't work properly in Swift 4

Expected Behavior
In my project, I have a view controller with a SpreadsheetView that autoresizes to the new size when rotating the device.
Actual Behavior
In Swift 3, the behaviour is right: the device rotates and the spreadsheet resizes accordingly.
In Swift 4, this is not valid anymore: now, when you rotate the device, the spreadsheet resizes to the PREVIOUS size instead of the new one: basically, when you rotate the device to Portrait, the spreadsheet is resized to Landscape, and vice versa.
I tried building the old project in Swift 3, and it still works as it used to, so I'm not sure it's a problem of the library, or Apple changed the behaviour of viewWillTransition.
Steps to Reproduce the Problem
The code is simple as that. Just put the viewWillTransition method in your view controller and rotate the device.
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        spreadsheetView.reloadData()
    }

I also add the method to specify the new width of the columns:
func spreadsheetView(_ spreadsheetView: SpreadsheetView, widthForColumn column: Int) -> CGFloat {
        switch column {
        case 0:
            return spreadsheet.layer.frame.width/3
        default:
            let width = spreadsheet.layer.frame.width-(spreadsheet.layer.frame.width/3)-10
            return width/CGFloat(7)
        }
    }

Specifications

Xcode version: 9
iOS version: 10 on the device, 11 on the simulator. They both have the same issue.
Dependency manager + version: CocoaPods - 0.7.2 on the Sw3 project, 0.8.4 on the Sw4 project.

I just tried to update the library on the Swift 3 project, and the problem still occurs. So I guess it's not a problem of Swift 4, but a bug in the 0.8.4 version.

@Romores I couldn't reproduce the issue, in Swift 3 and 4, on iOS 11. Could you please provide a reproducible sample project or more detailed code snippet?

And here's the Xcode project.
spreadsheet.zip

Maybe I managed to solve the issue by enveloping the reloadData() method inside the transition coordinator.
super.viewWillTransition(to: size, with: coordinator)
coordinator.animate(alongsideTransition: nil, completion: { _ in
self.spreadsheet.reloadData()})
    }

Like this, it seems to work again. It's still strange that it didn't need that before...

@Romores It seems working as expected. When view*Will*Transition invoked, view.frame still returns the frame before rotation. If you'd like to resize by rotation, it means that timing is too early. Enveloping the reloadData() method inside the transition coordinator seems right solution.

Is spreadsheet support UIRefresh control like table view


General tidy

cleanup event listeners after unmount
move ref getters to class methods, so we're not creating new functions each render
allow consumers access to form style

<3 Thanks so much for this!


pdm image for gatherling - mention cardhoarder - separate series?

They should definitely be a separate series.
As it currently stands, people who can't compete in both do terribly on the season leaderboard.

I think we need a more general think about how we want end-of-season to go.
Nathaniel and I have an open question on what we're doing at the end of season and I should nail that down with him.
PDT used to have the following structure:
1st: 14 bot credits
2nd: 10 bot credits
3rd: 8 bot credits
4th: 6 bot credits
5th: 5 bot credits
6th: 4 bot credits
7th: 2 bot credits
8th: 1 bot credit
I'll try and square getting triple that from Nathaniel (now there are three tournaments) but it's possible he'll want to stick to the same commitment instead of triple.
PDT use(d|s) the following points system:
Entering the tournament: 2 point
Playing in a round: 1 point
Winning a round: 3 points
Receiving a bye: 1 point
1st: 11 points
2nd: 8 points
3rd-4th: 5 points
5th-8th: 2 points
Options I see (not necessarily mutex) are:
(1) Apply this system to each system individual tournament series and pay out at season end.
(2) Apply a simpler system (3 * wins + draws, probably) to each individual tournament series and pay out at season end.
(3) Use the additional credit for a higher payout "final" (open, with byes for top performers probably)  or "invitational" (top performers only) tournament at the end of each season.
(4) Combine all the tournaments into a single leaderboard. Maybe factor in the league. Give prizes or invites or byes to top performers as above.
It comes down to what we want to incentivize. I'd say we want to maximize the total number of tournament entries both via total number of people entering and total number of times each person enters. The former more important than the latter. Keeping the series separate is motivational for people that permanently can't make one of the tournaments. Combining might make people give up who can't compete because they can only make one. Perhaps we should literally just add up "matches played" at season end and divide the credit. That rewards success, and rewards any form of participation, and never becomes pointless because you can always earn more credit by playing the remaining tournaments (assuming there are enough to get up to 1 more tik).

Prizes are 3x normal tournament prizes and go to top 8 finishers.
Point per entry, point per win. Largely this works out as "players with most wins" but it does vary from that a little.
Code is b3a0b9cc.

The code can easily be used to get leaderboards for past seasons but I haven't added that yet.


Small things

Codecov Report

:exclamation: No coverage uploaded for pull request head (small-things@5630b12).

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8cc312...5630b12. Read the comment docs.


Kenmei as tracking server

Describe your suggested feature
Add Kenmei.co to Tracking Services
Other details
I use it more than the other available ones.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.16.3.
[X] I will fill out all of the requested information in this form.

they don't have an api


Updated functions with TSRM macros for ZTS support

Added TSRMLS_CC and TSMLS_DC macros where required for ZTS support
Added TSRMLS_FETCH when modifying function definitions was not possible

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your contribution. I will look into this asap.

Fixes #4288

Verified. Able to reproduce the issue on Ubuntu 14.04. Verified the fix.
Thanks for the contribution to fixing this long standing issue!

PHP tests are green. I also did manual test on a Ubuntu 14.04 instance.


Develop a REST API service to Delete a product from the shopcart

As a User
I need a way to delete a product from the shopcart
So that I can easily delete products I don't want anymore from the shopcart
Assumptions

The base url is /shopcarts/<id>/delete
The method of this API should be PUT
The parameters of this method are productID
productID is the product user wants to delete
All the quantity of the product with the productID should be completly deleted from the shopcart
Url should return whether the operation is successful or not

Acceptance Criteria:
Given the service is available
When I call the URL `PUT /shopcarts/<cartName>/delete?productID=<product_id>`
Then the products should be completly deleted from the shopcarts when the transaction completes
Or it should return corresponding error code if the operation fails

We don't need this issue any more since the reuqirement has been changed by the stakeholder. The function of this issue has been addressed here #4

This functionality is fullfiled in #33. This issue is closed because of the design is deprecated


Is the full list of medically-relevant genes available?

Is the full list of medically-relevant genes available?
Based on your manuscript, the authors combined several lists of medically-relevant genes. However, I was not able to find this combined list of genes in this repo in supplemental materials.

Yes, it is available on the Zenodo repository: https://zenodo.org/records/8180677
You can click this link to directly download the zip file that contains the medically-relevant gene annotation: https://zenodo.org/records/8180677/files/reproducing_RNA_figures.zip?download=1
Once you unzip the directory, the file you are looking for is named: medically_relevant_genes.tsv. There is also an informative README.txt file in there that describes the contents in each file.
Let me know if you run into any issues getting to the file and thank you for the interest in our work!


ENH: Add Document (formerly BrokerStruct).

This is WIP. Waiting on #77 to proceed.
All documents coming out of MDS will be metadatastore.Document objects, stripped of their mongo-specific contents. This also adds a time_as_datetime attribute to anything that has a time attribute.

I'll merge this when you rebase it

Merged locally to resolve conflict in the example file as 8852eb183bdb7de2a75838ddac706768bde74143.


add rescan function to dropwallethistory

it needs to regenerate from the seed key all addresses relevant and recompute the balance

seems to now work fully


General connection management

This PR makes the handling of graceful shutdown work for more than just http scenarios. This should allow us to move TLS further down and should also allow us to start moving things to connection middleware instead of connection adapters.
Summary of the things changed/added:

Added IConnectionHeartbeatTickFeature that represents a per connection heartbeat with DateTimeOffset.UtcNow passed into the callback. This is trying to preserve the performance characteristics Kestrel had before on the HTTP path. Haven't measured anything here as yet.
Added IGracefulConnectionLifetimeFeature that represents an attempt to gracefully close the connection that isn't being aborted. This feels pretty awful but we may have to do it.
Moved connection management to the ConnectionDispatcher and out of the HttpConnectionMiddleware
Removed Http from the names of the ConnectionManager and Heartbeat

Fixes #2335

The errors are due to https://github.com/aspnet/KestrelHttpServer/pull/2833 not being merged

@dotnet-bot test OSX 10.12 Release Build

As usual disposing cancellation tokens is the root of all evil.


Subtitles on training videos

Do we need to add subtitles on the FreeCEN videos.

Yes we do. The auto-generated captions cannot cope with project-specific and some genealogical terms, for instance, and are apt to introduce further confusion or misunderstanding because there is no proper sentence structure. I have used some of them (and regularly need subtitles on YouTube videos), so this is more than guesswork.
BTW, is this story already covered elsewhere? Maybe not …

Thanks Alison
I was at a FreeCEN Committee meeting and the question was asked. I created the story so I could follow it up afterwards.
I will look to see if there is already a story. I couldn’t remember seeing one. If there is I will remove the new one.
Geoff
From: AlOneill @.>
Sent: Saturday, March 25, 2023 7:31 PM
To: FreeUKGen/FreeCENMigration @.>
Cc: Geoff J @.>; Author @.>
Subject: Re: [FreeUKGen/FreeCENMigration] Subtitles on training videos (Issue #1508)
Yes we do. The auto-generated captions cannot cope with project-specific and some genealogical terms, for instance, and are apt to introduce further confusion or misunderstanding because there is no proper sentence structure. I have used some of them (and regularly need subtitles on YouTube videos), so this is more than guesswork.
BTW, is this story already covered elsewhere? Maybe not …
—
Reply to this email directly,  https://github.com/FreeUKGen/FreeCENMigration/issues/1508#issuecomment-1483777798 view it on GitHub, or  https://github.com/notifications/unsubscribe-auth/AKCPIFPVM3HRAP3MR22AFDTW523OFANCNFSM6AAAAAAWHNL4O4 unsubscribe.
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AKCPIFNMZIYD25DOV5YXADLW523OFA5CNFSM6AAAAAAWHNL4O6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSYOCTQM.gif Message ID: < @.> @.>


Extending extension methods for sagas

I've extended the extension methods for sagas for testing so they can just work on IQuerySagaRepository<TSaga> type.
This was because not all types implementing ISagaRepository<TSaga> also implement IQuerySagaRepository<TSaga> so the casting fails. I actually think it's only the InMemorySagaRepository<TSaga> that implements both and we're using the MongoDB implementation in our tests.

Extending extension methods, really? LOL

The main reason why I changed this around is that I was getting null ref exceptions when I changed it from using an InMemorySagaRepository to MongoDbSagaRepository as these extensions assumed that it was castable into an IQuerySagaRepository<TSaga>. 👍

Rebased,merged.


undefined method: 'strip_whitespace_keys'

Am getting the error message below when attempting to run 'rails generate devise_invitable:install'

config/initializers/devise.rb:42:in block in <top (required)>': undefined method strip_whitespace_keys=' for Devise:Module (NoMethodError)

My gemfile contains:
gem 'devise', '~> 1.2.0'
gem 'devise_invitable', '~> 0.4.0'

I am using Rails 3.0.9 and Ruby 1.9.2.

I'm getting these same errors with devise, and this is the only result that even comes close to matching my issue on google, no luck it seems.

strip_whitespace_keys is a devise config option, not devise invitable. Probably you were using a newer devise version and downgrade to a version without that option


parsing decimals incorrectly

Environment
destr: 2.0.1(latest)
nodejs: 18.18.1
Reproduction
const value = Math.random().toString() // => '0.5207845927625354'
destr(value) // => '0.5207845927625354' ❌ should be number
JSON.parse(value) // => 0.5207845927625354 🟢 correct

Describe the bug
Parsing a string of numbers with more than 14 decimals gives incorrect results, it should return the number but actually returns the original string.
This should have something to do with the regex here：
https://github.com/unjs/destr/blob/37210516ccef951dcc870f17a5abee52122a3122/src/index.ts#L8
Additional context
No response
Logs
No response

Thanks for issue you are right checking docs, it seems 64bit js numbers can have up to 14 digits and 16 decimal places while regex is not allowing it. PR welcome to fix.


[BP-1.14][FLINK-24491][runtime] Make the job termination wait until the archiving of ExecutionGraphInfo finishes

1.14 Backport PR of parent PR #19275
What is the purpose of the change
The commit b3a9dcb was cherry-picked but required some bigger changes because of the changes we applied to the Dispatcher in 1.15.
Verifying this change

The tests from the parent PR were added but required some refactoring

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: yes
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@Thesharing I decided to create a 1.14 backport. May you have a look?
@zentol May you have a look as well? The backport conflict resolution turned out to be a bit more complex due to the changes we applied to the Dispatcher in 1.15

I had to cherry-pick the hotfixes from PR #19427 as well to make the test wait for the job termination again.

Force-pushed a reorder of the commits...


File association / default programs

https://docs.microsoft.com/en-us/windows/win32/shell/default-programs
Hi, thanks for the lib.
I was wondering if you could expose the APIs required to setup file assocs and default programs.

It looks like this is obsolete as of Windows 10.
If you're only targeting older versions of Windows, you can achieve the approach outlined in this article by writing to the registry. You might find the win32_registry provides an easier way to go about that, since it provides a high-level abstraction over win32 for registry reading/writing.


Building aomp 11.5-0, openmp - missing libffi headers - solution

Hello,
on my system the headers of "libffi" are not found.
There is a parameter "-DLIBOMPTARGET_SEARCH_LIBFFI_INCLUDEDIR=[Path]", which can added to  "COMMON_CMAKE_OPTS" in https://github.com/ROCm-Developer-Tools/aomp/blob/bffaacd247a26fb0c6456e5b5c8bd67a46aa85bc/bin/build_openmp.sh#L116.
But it seems not to be recognized in the build scripts for "openmp".
My solution is to add "${LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIRS}" in https://github.com/ROCm-Developer-Tools/amd-llvm-project/blob/ac7576107503e0c84b1d7b6420b8bbaf378449a7/openmp/libomptarget/plugins/hsa/CMakeLists.txt#L70.

Same for AOMP 11.6.-1.

What path are you having to manually add?

I have to do two things:
I have to add ${LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIRS} to the CMakeLists.txt, as described above.
I think this is missing in general.
Second, I have to add "-DLIBOMPTARGET_SEARCH_LIBFFI_INCLUDEDIR=[Path]" with the path to the libffi-headers on my system (Gentoo). This depends on my system and does no need a change in your build system.
For the first thing I can provide a patch.
But it seems, that that the "hsa" plugin is not part of the "amd-stg-open" branch https://github.com/ROCm-Developer-Tools/amd-llvm-project/tree/amd-stg-open/openmp/libomptarget/plugins anymore(?).

With CPATH set it works without my patches.
What is CPATH?
A cmake variable?

It is used in
amd-llvm-project/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
find_path (
  LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR
  NAMES
    ffi.h
  HINTS
    ${LIBOMPTARGET_SEARCH_LIBFFI_INCLUDEDIR}
    ${LIBOMPTARGET_SEARCH_LIBFFI_INCLUDE_DIRS}
  PATHS
    /usr/include
    /usr/local/include
    /opt/local/include
    /sw/include
    ENV CPATH)

CPATH is not a cmake variable but stems from a gcc environment variable:
CPATH specifies a list of directories to be searched as if specified with -I, but after any paths given with -I options on the command line. This environment variable is used regardless of which language is being preprocessed. (https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html)
The reason it works here is due to the fact that your libffi headers were not found, hence LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR was not populated. Since the code provides the last fallback to be ENV CPATH you can take advantage of that if you have an unexpected install location.

Ok, thanks.


Authorized users works weirdly with multiple policies with same status check

Create two status checks with "Status to check" but with different "path filters" and "Authorized users"
Post the status state using identities of both users, one of the them will say:
Microsoft.VisualStudio.Services.Common.VssServiceException: Pull request status rejected by status policy. Status Author should match status policy configuration settings

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a9a3fce3-aa8f-c5e5-5b10-da912f6941fc
Version Independent ID: c36e9af9-cc20-c264-0525-2ca7e7d9ad8e
Content: Configure a branch policy for an external service - Azure Repos
Content Source: docs/repos/git/pr-status-policy.md
Product: devops
Technology: devops-code-git
GitHub Login: @mmitrik
Microsoft Alias: mmitrik

@hross Can you have someone take a look at this?


activelink style not working

Active Link property is not working . I have applied below code in styles.js file , it was working with previous versions.
node: {
activeLink: {
background: '#20a8d8',
color: '#ffffff'
}
}

Same problem here.

The only code explicitly related to active prop is in header.js (eg NodeHeader):
  const container = [style.link, active ? style.activeLink : null];
  const headerStyles = Object.assign({container}, style);

This doesn't seem like it's doing what the code expects... since we end up with the following value for headerStyles:
const container = [style.link, active ? style.activeLink : null];
                             // = [{link: true}, true ? {activeLink: true} : null]
                             // = [ { link: true}, {activeLink: true} ]

const headerStyles = Object.assign({ container }, style);
                             // = Object.assign({ container }, { otherStyle: true})
                             // = { container: [ { link: true}, {activeLink: true} ], otherStyle: true }

So we end up with { container: [ { link: true}, {activeLink: true} ], otherStyle: true } when we want something like { link: true, activeLink: true, otherStyle: true }

Another update: the decorator expects a style.container and also a style.header attribute
class Container extends React.Component {
    render() {
        const {style, decorators, terminal, onClick, node} = this.props;

        return (

 this.clickableRef = ref}
                 style={style.container}>
                {!terminal ? this.renderToggle() : null}

                <decorators.Header node={node}
                                   style={style.header}/>

        );
    }

Having the same issue.
As an interim solution, I defined a decorator like this:
import { Treebeard, decorators } from 'react-treebeard';

decorators.Header = ({ node, style }: any) => {
  const newBaseStyle = { ...style.base };

  if (node.active) {
    newBaseStyle.backgroundColor = '#ff0000';
  }

  return (

{node.name}

  );
};

You only have to define it once before using the component, and can use any custom css inside the if (node.active) block.
The original TreeBeard decorated was using emotion styled components, but for some reason it clashed with my webpack setup; so used regular divs instead.
It doesn’t seem to have any observable impact on how the component functions, as far as I can tell.
Hope that helps y’all, until this issue is fixed.

Hi @ribhu0405, @ponyczek, @NateRadebaugh and @v0lkan . It's working for me.
 <Treebeard
                    {...props}
                    style={{
                        tree: {
                            base: {backgroundColor: 'white'},
                            node: {
                                activeLink: {color: 'brown', background: 'yellow'}
                            }
                        }
                    }}
                />

When toggle is open I set node.active: true

@maximilianoforlenza can you provide a working codesandbox link?
When I try, the style tag requires everything in the default.js theme or it will throw an error. Then, if I override the activeLink, it does nothing: https://codesandbox.io/s/l28xqqqzzq?fontsize=14

@NateRadebaugh On codesanbox can you try point to master? Because react-treebeard 3.1.0 is old and has bugs

I'm confused, 3.1.0 is the latest documented release: https://github.com/storybooks/react-treebeard/releases
Switching to point to 2.1.0 resolves the issue.

After v3.1.0 this bug is fixed

Hi @NateRadebaugh please try it on version 3.2.0

Hi @NateRadebaugh please try it on version 3.2.0

Thanks @maximilianoforlenza I've verified this is now working with the latest code.


Hawks soaring

This adds the circling hawks, and hawks now smoothly go down when eating, and back high when circling. This should remove some of the jitteriness that was caused by sudden size changes (though does not remove some jitteriness caused by turning suddenly to follow prey--if folks don't like the way the hawks turn, we can add some smoothing there too.)

I just realized after merging that populations.js does have a getSize function that could be defined per agent, so I could have used that instead of defining 10 different image scaling rules... Not going to worry about this now, but maybe if we update the hawk image with a sprite, because it would be a bore to define 10 different sprites...
Speaking of which, I realized this because I started adding issues to the populations.js repo, to remind us of things we want to add to the library. I was going to add "Make a way for an agent to define its size" and then I went to check if maybe it already existed... Point is, though, if you hit pain points with populations.js, add them to the issues tracker.

Ah, very cool.  Yeah, I think there is eventually a wing flapping hawk coming (I remember seeing a 2 frame animation from the artist).  Would be a good time to re-investigate the hawk handling.


Update distribute-data-globally.md

Phasing out occurrences of "automatic failover" with "service managed" failover to be more in line with expected behavior.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@markjbrown
@rothja
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@abinav2307 be sure to update the author and ms.author on any of the HA docs here. Thanks!

Thanks Mark! @rothja - can you take a quick look and merge this PR?

#sign-off


Unable to check Yes to only one indication in Currency Transaction Activity

FinCEN Version: 0.2.6
What were you trying to do?
Create a CTR report with a Currency Transaction Activity section
What did you expect to see?
Only check ArmoredCarServiceIndicator as Y and leave the rest as there but empty
What did you see?
I can only put yes or nothing (which means the other options are not there) which is against the user guide
The user guide says it must be Y or null and I tried to use the empty indicator in here but it doesn't accept it.
But in the section it says min instance is 1 but the validation also only lets me put in Yes, so now I have Y for a lot of sections.

How can we reproduce the problem?
Create a CTR report and fill out the Currency Transaction Activity.

Notice in the above screen shot it says null if not applicable but the validation doesn't let me not put it (because it's against the minOccurs) but i'm not sure how to set it to null in the moov library code and still have it filled in.

https://github.com/moov-io/fincen/pull/41


Should the get_classname method be in the factory class?

It is currently at the top level, but likely only ever called by the factory anyway.

Makeing the get_classname() into a class-method doesn't work.
It's due (I'm pretty sure) to the static method call to create, so the create method is made static-like and is not relating to an instance/object of the class.  Therefore the use of the 'this' keyword becomes an error and therefore this.get_classname can't be called.
I've also tried making get_classname (as a class method) static, but this didn't work either.

It would be unlikely but not inconceivable that someone might want to know about the available classnames, and use the factory  class to obtain this. Another method might be to list all available classes.

Not looked at this for ages, so memory a bit dim, but could it be a static method in the factory? I'm all for avoiding bare top-level methods if possible, but no worries if this wouldn't make sense.

Sorted, silly mistake,  just needed to make it RegionEstimatorFactory.get_classname(...) instead of just get_classname(...)


Ensure LMDB file is removed after e2e tests finish

We are currently accumulating a large number of LMDB files in /tmp on the mainframe. It maybe that people are ctrl-c exiting tests part way through. We just need to check and ensure that upon graceful exit the files are removed.

Does this still need to be done @alexghr?

I think we can close this since the tmp directory is no longer shared on mainframe. It gets cleaned up after every devbox restart


Webview

update to the webview branch

Tests are passing locally. Need to do some fiddling with github actions so that it doesn't try running old refl1d against new bumps.

Still need a code review of all the changes

I think I can fix the errors by replacing master with master_v0 in the actions. This should clean up the errors so that we can merge this back to main. Still need to fix the refl1d and bumps webview builders to target master rather than webview.
Feel free to rename the branch from master_v0 to master_wx or wx_master.


timeout values in cassandra.yaml are not configurable for the most part

This block in cassandra.yaml doesn't use attributes to set its values (except one) which makes it impossible to configure without rolling your own cassandra.yaml.erb.
How long the coordinator should wait for read operations to complete
read_request_timeout_in_ms: 10000
How long the coordinator should wait for seq or index scans to complete
range_request_timeout_in_ms: <%= node['cassandra']['range_request_timeout_in_ms'] %> # 10000
How long the coordinator should wait for writes to complete
write_request_timeout_in_ms: 10000
How long a coordinator should continue to retry a CAS operation
that contends with other proposals for the same row
cas_contention_timeout_in_ms: 1000
How long the coordinator should wait for truncates to complete
(This can be much longer, because unless auto_snapshot is disabled
we need to flush first so we can snapshot before removing the data.)
truncate_request_timeout_in_ms: 60000
The default timeout for other, miscellaneous operations
request_timeout_in_ms: 10000
It would be an improvement to parameterize these values.

you're right, that would definitely make this more flexible. I will look in to getting a quick PR

see #28

Thanks for the update.


Add heroku support

Workaround heroku restriction with Dockerfile path
Fix dockerfile in heroku definition
Add missing dependencies
Add binary memcached support
Patch env vars according to heroku.

Some context around this PR:

Memcache service available in heroku uses binary memcache
Added some shim to pass environment variables
Heroku doesn't allow paths to dockerfile so in order to keep old env isolated I created a new heroku Dockerfile
It's way easier to use postgres in heroku so i added postgres support in the overriden dockerfile


[Feature idea] Background images

Hey guys!

How about adding a class for background-image? It would kind of act like a proxy.
Example:
<div class="bg-img" data-bg="<some-url>.jpg">

Sorry for bad formatting,- typing this on mobile.
Have a great rest of the weekend!

The attr() css function can only be used in content property currently, so you can't set it with a custom attribute.
You can just use inline style for this or if its a repeating image then create custom class for it.

Owh, I haven't checked the attr() support yet. Based on https://dev.w3.org/csswg/css-values/#attr-notation you are right,- I'll close this.

Yeah I would recommend just using inline styles for this sort of thing currently 👍 Didn't know about the attr() function, that's very cool! Looking forward to seeing that get better browser support!


Table() + Scan() conflicts with Preload()

DB.Preload("Emails", "emails.deleted = 0").Find(&users)

DB.Table("users_tbl").Where("users.deleted = 0").Preload("Emails", "emails.deleted = 0").Scan(&users)

The first one is OK, the second reported error (can't preload field Properties for %!s(<nil>))
I think they are supposed to be equivalent.

Scan is part of the Scanner interface in the database/sql package of Go, and has nothing to do with Find. Scan is used to parse values from the SQL database into Go variables/structs.

@jbfm Wouldn't they achieve the same results, in terms of filling the user structs?
The reason I choose Scan is that Find automatically filter results, if their deleted fields equal to 1. I want to control this behavior by myself.

Find executes the query and populates yes, but Scan works on a database result, you're never executing a query by just running Scan. Scan also isn't specific to Gorm, you're simply using it wrong.

@jbfm Thanks for your explanation, although I still want to discuss the implementation of Preload.
As I observed, Preload first select all qualified Users and then select Emails where Emails.user_id in ("id1", "id2" ...)
What I got here as a benchmark comparison is Python's ORM SqlAlchemy, it implements eager preloading by LEFT OUTER JOIN, and seems 2x faster than GORM. The rows scale is at approx 10k.


multi-gpus training（without ignite）converges slower

At first，thank you.
I use multi-gpus training（without ignite） code. I  use one gpu training it , that results obtained with DDP + SyncBN are definitely worse than the original implementation. It  converges slower is the main problems.
I checked the model,dataloader,optimizer ,I'm sure it has the same training config with original one.
Do you know what caused it？
Could you give me some suggestions?Thank you very much!

If you train with DDP, you need to write a custom distributed data sampler to make each process load a subset of the original dataset that is exclusive to it.
Besides, if you training with triplet loss, you can only mine pairs in each process.

如果使用DDP进行训练，则需要编写一个自定义的分布式数据采样器，以使每个进程都加载原始数据集的专有子集。
此外，如果您进行三重态损失训练，则每个过程只能挖掘一对。

I‘m sorry，I checked the code. When i use one gpu training it，the training didn't use the DDP+ SyncBN.
the code as following:
else:
# Single GPU model
self.model.cuda()
self.optim = make_optimizer(cfg, self.model, num_gpus)
self.scheduler = WarmupMultiStepLR(self.optim, cfg.SOLVER.STEPS, cfg.SOLVER.GAMMA,
cfg.SOLVER.WARMUP_FACTOR,
cfg.SOLVER.WARMUP_ITERS, cfg.SOLVER.WARMUP_METHOD)
self.scheduler.step()
self.mix_precision = False
if cfg.SOLVER.FP16:
# Single model using FP16
self.model, self.optim = amp.initialize(self.model, self.optim,
opt_level='O1')
self.mix_precision = True
self.logger.info('Using fp16 training')
self.logger.info('Trainer Built')
return

I don't know your problem. you train with one GPU but cannot get the same result as the repo, right?

I don't know your problem. you train with one GPU but cannot get the same result as the repo, right?

yes,and it converges slower than repo.


[JAV-560] fix null header process logic on consumer side

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [JAV-XXX] Fixes bug in ApproximateQuantiles, where you replace JAV-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

see details in [https://servicecomb.atlassian.net/browse/JAV-560]
Check null arguments in invocation and do not copy them into requests to avoid NullPointerException in Netty.
My test demo is here: [https://github.com/yhs0092/javachassis-demo-header-transport]

Changes Unknown when pulling 457f08048b9db1b36d2682a9937d1aaef4fdd4c4 on yhs0092:JAV-560_fix_null_header_process_logic into ** on ServiceComb:master**.

Changes Unknown when pulling 8a6cad9674a3b5cc078bfd67299c37f9e7397565 on yhs0092:JAV-560_fix_null_header_process_logic into ** on ServiceComb:master**.


Services actuator

Description
Add a services actuator to view the contents of the dotnet core IOC Container. This mirrors the behavior of beans actuator for tools like SpringBootAdmin
Related to #668
Quality checklist

[ ] Your code complies with our Coding Style.
[ ] You've updated unit and/or integration tests for your change, where applicable.
[ ] You've updated documentation for your change, where applicable.
If your change affects other repositories, such as Documentation, Samples and/or MainSite, add linked PRs here.
[ ] There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.
[ ] You've added required license files and/or file headers (explaining where the code came from with proper attribution), where code is copied from StackOverflow, a blog, or OSS.

Please fix these before asking for review:

We have coding guidelines to make code easier to read and avoid stylistic discussions. We're not taking advantage of that now. I think it's unfair to expect me to read through non-compliant code and possibly broken tests at this point in the review process. It's pushing an unneeded cognitive load on me: reading through numerous places that make me wonder if it's intentional, what the implications would be, the need for running tests locally to see what happens, etc. We have automation in place to avoid all of that; let's just use it.

/azp run  cleanup-code

/azp run  cleanup-code

Superseded by #1224.


[BUG] - Invalid prop ref supplied to React.Fragment when using next.js 15

NextUI Version
2.4.8
Describe the bug
When using the Calendar Components in my next.js app (15.0.0). I have an error
Invalid prop refsupplied toReact.Fragment. React.Fragment can only have keyandchildren props.
Your Example Website or App
https://stackblitz.com/~/github.com/kevinrss01/bug-nextjs
Steps to Reproduce the Bug or Issue
Just start the app and the error will show up
Expected behavior
No error displayed on the screen
Screenshots or Videos

Operating System Version
macOS
Browser
Chrome

The current version hasn't supported React 19 yet. Will be tracked in react 19 upgrade issue instead.

I have the same issue with NextJS 15 and React 18.3.1 when using DatePicker

@SuperMitic please ensure it is really using 18.3.1. you may do the following.
"pnpm": {
  "overrides": {
    "react-dom": "18.3.1",
    "react": "18.3.1"
  }
}

@SuperMitic please ensure it is really using 18.3.1. you may do the following.
"pnpm": {
  "overrides": {
    "react-dom": "18.3.1",
    "react": "18.3.1"
  }
}

Added the overrides, but I still have the issue

have you removed node_moduels and reinstall?

have you removed node_modules and reinstall?

Yes I tried that, but I discovered that NextJS has a built-in React and NextJS 15 App Router work only with React 19

I have tried with the latest 2.5 beta that should support React 19 but I am getting the same issue

Same issue with
    "@nextui-org/date-picker": "^2.1.8",
    "react": "^18.3.1",
    "react-dom": "^18.3.1"


Fix: refactor auth info

Sorry for this big pr but It was necessary in order to make the interface easier to work with.
When performing authentication using access and id tokens we have two cases.

Authenticate as a service using only access token
Authenticate on behalf of the user using both access token and id token

Before the interface was composed from IdentityClaims and AccessClaims. We had to have IsNil in order to handle cases where e.g. authentication was done with only access tokens.
I decided to flatten out the interface and add common functionality for them.
When authenticating only using a access token every field such as GetUID, GetNamespace etc will be extracted from that access token. When authenticating on behalf of a user we instead extract these fields from the id token because the acccess token act as that identity.
GetTokenPermissions and GetTokenDelegatedPermissions are alwas extracted from access token because id token does not have that information.
If you have any other suggestions I am open to them :). I will take care of updating relevant places within grafana and adjust our implementations of this interface there

Also, it does look like ext_jwt implementation takes care of some of these same details here, is it that one of these places will become the source of truth after this change, or will that implementation continue to construct an authn.Identity with replicated logic?
I see that authn.AuthInfo here is a struct, which implements the claims.AuthInfo interface here, and this struct is being newly added. Potentially, could be nice if Grafana started using this one struct instead of all the different identity implementations (authn.Identity, user.Identity) it has. Is that one of the reasons of introducing this struct?
The AuthID property on the Identity is an interesting one, it could let a developer differentiate an identity of the user that came from service acting OOB user versus a user as themself given that AuthID being different from ID would only happen in the former case. Are your changes here concerned with providing an AuthID getter so authn.Identity? It looks like GetSubject is that. GetIdentifier() being different from GetSubject() seems like it would help discern the OOB situation, and GetIdentifier() being the same as GetSubject() the user as themself.

I see that authn.AuthInfo here is a struct, which implements the claims.AuthInfo interface here, and this struct is being newly added

That one existed before this pr. Its is used by the GRPC authenticator so I have to keep that implementation around. That implementation will / is used by unified storage.
Ideally we would use only this interface inside single tenant grafana as well but it is quite a lot of work to achieve that. But this pr tries to at least align these two interface more so its easier to start slim the other one down. Before this pr AuthInfo had two methods, GetAccess and GetIdentity and those makes even less sense in Requester because they are more tied to access token and id token claims but most auth methods in ST grafana don't use them.

The AuthID property on the Identity is an interesting one

AuthID is a bit different. Its is an external id for a user when performing authentication. E.g. when signing in with OAuth it is subject provided by the idp used. For access token the external id is the same as subject


Add BondingCurveHook.json

This is the deployment for the Hook on Rinkeby. Similar to the zos network files, it tracks things like deployed, deployed address, constructor args, etc..

Superseded by #67, closing.


0.14.0 : TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

Hello, since I updated from 0.11.0 to 0.14.0, I get this error fired when running my tests :
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/gordie/Local Sites/newspiff/spiff-clients/src/services/musicbrainz/tests.ts
    at new NodeError (node:internal/errors:399:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
    at defaultLoad (node:internal/modules/esm/load:81:20)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at ESMLoader.load (node:internal/modules/esm/loader:605:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
    at new ModuleJob (node:internal/modules/esm/module_job:64:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)

I cleared the node cache - still get this.
I reverted to 0.11.0 : no more bug.
Hard to debug but it seems it is related to your update.
Any clue of what it might be ?
Thanks !

As mentioned in the release notes, since version v0.13.0 the package has been changed to a pure ECMAScript Module.

@gordielachance did you manage to resolve this? I'm getting the same error. Working with node for 7 years now and never encountered a package that's so unnecessarily hard to use in a default environment..


Use Intl for perfect experience with plurals

PR for changes from @vladimirandroid
https://github.com/bratan/flutter_translate/issues/54#issuecomment-722352080
This should address issue #54

Thanks @ekuleshov
I've tested it now and everything looks good, merged into dev currently.
I want to make a few more changes and then will create a new version.