Custom Player API Docs link dead

https://developers.cloudflare.com/stream/video-playback/player-api/
Linked to from here and in google search results.

https://developers.cloudflare.com/stream/player-and-playback/player-sdk is where the API is right now.
Sorry about this, we're moving the pages around this week to make docs more clear.

Thank you for opening an issue! @sebszocinski


InMemory: The instance of entity type 'Item' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked.

I'm getting this error in some unit tests using the last preview version (3.0.0-preview5.19227.1) of the Microsoft.EntityFrameworkCore.InMemory package. The same issue is not reproducible with the stable version 2.2.4.
The exception that I'm receiving:
Exception message: System.ArgumentException : An item with the same key has already been added. Key: 3eb00b42-a9f0-4012-841d-70ebf3ab7474
Stack trace: at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryTable`1.Create(IUpdateEntry entry)
   at Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryStore.ExecuteTransaction(IList`1 entries, IDiagnosticsLogger`1 updateLogger)
   at Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at VinylStore.Catalog.Infrastructure.CatalogContext.SaveEntitiesAsync(CancellationToken cancellationToken) in /Users/samuele.resca/Projects/EFCore.IssueSample/Catalog/src/VinylStore.Catalog.Infrastructure/CatalogContext.cs:line 27
   at VinylStore.Catalog.Infrastructure.Tests.ItemRepositoryTests.should_add_new_item(String jsonEntity) in /Users/samuele.resca/Projects/EFCore.IssueSample/Catalog/tests/VinylStore.Catalog.Infrastructure.Tests/ItemRepositoryTests.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
Failed   VinylStore.Catalog.Infrastructure.Tests.ItemRepositoryTests.should_update_item(jsonEntity: "{ \"Id\": \"b5b05534-9263-448c-a69e-0bbd8b3eb90e\""...)
Error Message:
 System.InvalidOperationException : The instance of entity type 'Item' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.
Stack Trace:
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)
   at Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry.set_State(EntityState value)
   at VinylStore.Catalog.Infrastructure.Repositories.ItemRepository.Update(Item item) in /Users/samuele.resca/Projects/EFCore.IssueSample/Catalog/src/VinylStore.Catalog.Infrastructure/Repositories/ItemRepository.cs:line 48
   at VinylStore.Catalog.Infrastructure.Tests.ItemRepositoryTests.should_update_item(String jsonEntity) in /Users/samuele.resca/Projects/EFCore.IssueSample/Catalog/tests/VinylStore.Catalog.Infrastructure.Tests/ItemRepositoryTests.cs:line 118
--- End of stack trace from previous location where exception was thrown ---

Steps to reproduce
The following repository contains the issue: EFCore.IssueSamples
To reproduce the error execute inside the project folder:
dotnet build
dotnet test

If you revert to the 2.2.4 version, all the packages it works fine.
I've tested both the int type and the Guid type.
Further technical details
EF Core version: (found in project.csproj or packages.config)
Database Provider: Microsoft.EntityFrameworkCore.InMemory
Operating system:  MacOSX
IDE: VsCode

Note for triage: the issue here is that the context instance is still tracking seed data after EnsureCreated is called. /cc @AndriySvyryd
@samueleresca As a workaround for now you can move your EnsureCreated to run on a separate context instance. For example:
using (var context = new TestCatalogContext(options))
{
    context.Database.EnsureCreated();
}

using (var context = new TestCatalogContext(options))
{
    var sut = new ItemRepository(context);
    sut.Add(entity);

    await sut.UnitOfWork.SaveEntitiesAsync();
}

@ajcvickers thanks for the workaround

@ajcvickers fb846974a4f25a386a224342f26daecae2cc1bea changed creating a new StateManager to using the shared creating an UpdateAdapterFactory with the shared StateManager instance when called without a model (InMemory and Cosmos). The fix would be to pass in the model instance.


Create trixi2txt postprocessing script to convert HDF5 files to text

In GitLab by @sloede on Mar 27, 2020, 07:05
This can be helpful if Trixi output data is needed for postprocessing by other programs. It should basically write CSV files in the following format:
# filename = "solution_0000123.h5"
# time = 1.2345
# polydeg = 4
# <other global attributes follow>
x       y       rho     u       v
0.0     0.1     1.0     0.0     0.0
0.0     0.1     1.0     0.0     0.0
...

x and y refer to the node coordinates. In case of solution files with element variables, these should by default not be written (as they would have a different length). Provide a --separate-celldata/-s flag to write this data to a separate file instead, using the element coordinates (not node coordinates!) for x and y.
Mesh files should be handled in a similar way.

I think this is superseded by #199 and can be closed. @sloede?

Not entirely. #199 should definitely be a component in realizing this issue, but #199 is about a general capability while this is about a ready-made solution that can also be used, e.g., by students without further instructions. Alternatively, we could augment #199 to provide a small postprocessing script that shows how to use this feature. But then again, we could just leave this here open I guess.

Okay.


az fails on any command after fresh install on Mac via brew

In short
$ az feedback
dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /usr/local/Cellar/azure-cli/2.0.68/libexec/bin/python
  Reason: image not found
/usr/local/bin/az: line 2: 50908 Abort trap: 6           /usr/local/Cellar/azure-cli/2.0.68/libexec/bin/python -m azure.cli "$@"

Long version
System: MacOS 10.13.6 (High Sierra)
There are 3 python versions installed:
$ python --version
Python 2.7.10
$ python3 --version
Python 3.6.5
$ /usr/local/Cellar/python/3.7.3/bin/python3 --version
Python 3.7.3
$ brew update
Already up-to-date.
$ brew install azure-cli
==> Downloading https://homebrew.bintray.com/bottles/azure-cli-2.0.68.high_sierra.bottle.tar.gz
Already downloaded: /XXX/Library/Caches/Homebrew/downloads/f8f6a7d6f80c5c9361af6299a84f80618587efbec2d89168494f0293d23735f0--azure-cli-2.0.68.high_sierra.bottle.tar.gz
==> Pouring azure-cli-2.0.68.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/azure-cli/2.0.68: 19,122 files, 124.0MB
$ az login
dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /usr/local/Cellar/azure-cli/2.0.68/libexec/bin/python
  Reason: image not found
/usr/local/bin/az: line 2: 50856 Abort trap: 6           /usr/local/Cellar/azure-cli/2.0.68/libexec/bin/python -m azure.cli "$@"
$ ls -l /usr/local/Cellar/azure-cli/2.0.68/libexec/bin
total 304
-rw-r--r--  1    2118 10 Jul 12:09 activate
-rwxr-xr-x  1    3492 10 Jul 12:09 activate-global-python-argcomplete*
-rw-r--r--  1    1450 10 Jul 12:09 activate.csh
-rw-r--r--  1    3074 10 Jul 12:09 activate.fish
-rw-r--r--  1    1804 28 Jun 08:12 activate.ps1
-rw-r--r--  1    1172 10 Jul 12:09 activate.xsh
-rw-r--r--  1    1512 28 Jun 08:12 activate_this.py
-rwxr-xr-x  1     504 28 Jun 08:12 az*
-rwxr-xr-x  1      86 28 Jun 08:12 az.bat*
-rwxr-xr-x  1     176 28 Jun 08:12 az.completion.sh*
-rwxr-xr-x  1     428 10 Jul 12:09 chardetect*
-rwxr-xr-x  1     273 10 Jul 12:09 easy_install*
-rwxr-xr-x  1     273 10 Jul 12:09 easy_install-3.7*
-rwxr-xr-x  1     411 10 Jul 12:09 fab*
-rwxr-xr-x  1     449 10 Jul 12:09 humanfriendly*
-rwxr-xr-x  1     411 10 Jul 12:09 inv*
-rwxr-xr-x  1     417 10 Jul 12:09 invoke*
-rwxr-xr-x  1    1715 10 Jul 12:09 jp.py*
-rwxr-xr-x  1     425 10 Jul 12:09 keyring*
-rwxr-xr-x  1     191 10 Jul 12:09 pbr*
-rwxr-xr-x  1     255 10 Jul 12:09 pip*
-rwxr-xr-x  1     255 10 Jul 12:09 pip3*
-rwxr-xr-x  1     255 10 Jul 12:09 pip3.7*
-rwxr-xr-x  1     431 10 Jul 12:09 pygmentize*
-rwxr-xr-x  1     412 10 Jul 12:09 pyjwt*
lrwxr-xr-x  1       9 28 Jun 08:12 python@ -> python3.7
-rwxr-xr-x  1    2595 10 Jul 12:09 python-argcomplete-check-easy-install-script*
-rwxr-xr-x  1     314 28 Jun 08:12 python-argcomplete-tcsh*
-rwxr-xr-x  1    2360 10 Jul 12:09 python-config*
lrwxr-xr-x  1       9 28 Jun 08:12 python3@ -> python3.7
-rwxr-xr-x  1   12552 28 Jun 08:12 python3.7*
-rwxr-xr-x  1    1781 10 Jul 12:09 register-python-argcomplete*
-rwxr-xr-x  1     432 10 Jul 12:09 sshtunnel*
-rwxr-xr-x  1     427 10 Jul 12:09 tabulate*
-rwxr-xr-x  1     415 10 Jul 12:09 wheel*
-rwxr-xr-x  1    5942 10 Jul 12:09 wsdump.py*

This virtual env is obviously linked to the the python3.7 installation which should be fine. I'm using it in venvs for development and have not experienced issues with it.

Yikes, sorry you're running into this, @nuarhu. Given that this seems to be a problem with a the linking, you might try thoroughly reinstalling both the CLI and Python bia brew. Note, depending on how you created any virtual environments from the brew install of Python (hard or soft links) those venv's will need to be recreated too. If you're okay with that caveat, try the following:
brew uninstall azure-cli
brew uninstall python
brew install python
brew install azure-cli

If that doesn't work, or recreating your virtual environments is too expensive, you can manually install the CLI using a fresh python virtualenv, and pip. Just create and activate a fresh venv, download the Darwin Python3 requirements file, run pip install -r ~/Downloads/requirements.py3.Darwin.txt, and update /usr/local/bin/az to point at the python in your virtual environment.

I'm going to close this for now, because it seems like it may be an outlier. But if folks keep running into it, we should re-open this or file a new issue.

I had the same problem and uninstall then re-install azure cli and python solved the issue for me. Thank you Martin

Uninstall / re-install of python and azure-cli fixed the same issue for me.
Cheers!

Hello,
I ran into this issue today.
$ az login
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/Cellar/azure-cli/2.6.0/libexec/bin/python
Reason: image not found
/usr/local/bin/az: line 2:  2845 Abort trap: 6           AZ_INSTALLER=HOMEBREW /usr/local/Cellar/azure-cli/2.6.0/libexec/bin/python -m azure.cli "$@"
I tried to uninstall and reinstall as per the above post
brew uninstall azure-cli brew uninstall python brew install python brew install azure-cli
I still received the same error

hi,
I tried to uninstall and reinstall as per the above post
brew uninstall azure-cli brew uninstall python brew install python brew install azure-cli.
error:
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python
Reason: image not found
/usr/local/bin/az: line 2:  9193 Abort trap: 6           AZ_INSTALLER=HOMEBREW /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python -m azure.cli "$@"
I still received the same error  too

@fengzhou-msft to help take a look

Any update on this? I am having the same issue. Tried uninstall/install of python and azure-cli.
$ az login
/usr/local/bin/az: line 2: 89472 Abort trap: 6           AZ_INSTALLER=HOMEBREW /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python -m azure.cli "$@"

Please don't reinstall python as cli depends on python 3.8 now and will install it as a dependency. Try:
brew uninstall azure-cli
brew uninstall python
brew install azure-cli

@fengzhou-msft Thank you for the response. I have tried your suggestion with the same result.
$ brew uninstall azure-cli
$ brew uninstall python
$ brew install azure-cli
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
buildozer                                         gofish                                            terraform-ls
==> Updated Formulae
aws-cdk                       docker-compose-completion     grin-wallet                   libphonenumber                rust
bit                           exploitdb                     john                          mercurial                     swiftformat
docker-compose                grin                          lego                          nasm                          ungit
==> Updated Casks
aerial                               eset-cyber-security-pro              lastpass                             macx-dvd-ripper-pro
agenda                               iterm2                               libreoffice
==> Downloading https://homebrew.bintray.com/bottles/azure-cli-2.8.0.catalina.bottle.tar.gz
Already downloaded: /Users/xxxxx/Library/Caches/Homebrew/downloads/75d03394393a3039aff647b7064a11c178f9b423bc2e8519ea716e6dbd87a0bd--azure-cli-2.8.0.catalina.bottle.tar.gz
==> Pouring azure-cli-2.8.0.catalina.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/azure-cli/2.8.0: 14,887 files, 181.3MB
$ az login
/usr/local/bin/az: line 2:  7830 Abort trap: 6           AZ_INSTALLER=HOMEBREW /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python -m azure.cli "$@"

Please don't reinstall python as cli depends on python 3.8 now and will install it as a dependency. Try:
brew uninstall azure-cli
brew uninstall python
brew install azure-cli

sorry,I still received the same error :
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python
Reason: image not found
/usr/local/bin/az: line 2: 23423 Abort trap: 6           AZ_INSTALLER=HOMEBREW /usr/local/Cellar/azure-cli/2.8.0/libexec/bin/python -m azure.cli "$@"

I got it the right way.
try:

~ % pip3 install  azure-cli

~ % az
Welcome to Azure CLI!
Use az -h to see available commands or go to https://aka.ms/cli.

if you dont have pip3, please  install first.

I finally got it to work.

I uninstalled python/azure-cli with Homebrew
removed all python packages (3.x & 2.x) from my machine as well as pip/pip3
ran 'brew install azure-cli' and it worked.
It looks like there was some weird linking or PATH conflicts going on and removing python completely fixed the issue.

I got it the right way.
try:

~ % pip3 install  azure-cli

~ % az
Welcome to Azure CLI!
Use az -h to see available commands or go to https://aka.ms/cli.

if you dont have pip3, please install first.

This worked for me! I did not want to uninstall python!
Thank @chengweijian


apollo8.0 感知模块lidar模型检测问题

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):
Apollo installed from (source or binary):
Apollo version 8.0):
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

apollo7感知模块modules/perception/production/data/perception/lidar/models/detection/point_pillars在apollo8内放在哪个地方，没有找到lidar相关的3d检测模型。官网apollo8.0的文档感觉是基于apollo7写，有些不对应。:

Supporting materials (screenshots, command lines, code/script snippets):

Apollo 8.0 use model manager tool to download model for now.


No tvOS support?

It looks like support for tvOS and watchOS were removed in a recent release, was there a particular reason speficialy why tvOS support went away?

@Ftkey Noticed that you have a tag 2.0.3 that supports tvOS! any chance you could publish that to the cocoapods specs repo? Thanks


dom-template: parentProps should not override argument based props

found an issue in dom-template in which parentProps overrides the model that is provided in arguments

@filaraujo I'd found the same issue when trying to get recursive templates working and fixed it here: https://github.com/Polymer/polymer/pull/2196. Just noticed this PR now :smile:

Sorry for the delay on this.  In general the idea is that Templatizer clients can define an _instanceProps list that indicate which properties are provided by managed by the client (and thus should not be forwarded to the outer scope).  By doing so, they are excluded from _parentProps, and wouldn't hit this code.
That said, implementing the outer-scope forwarding hooks is not compulsory, so this change probably makes sense.  If you can update the PR so it can merge to master that'd be great, otherwise one of us can fork and merge it soon.  Thanks.

@filaraujo I updated your branch to master and integrated the new test with the test runner in a new PR here: https://github.com/Polymer/polymer/pull/1889, so closing this one.  Thanks for your effort here!
FYI, I also made a slight fix to use an undefined check, since just a falsy check could still overwrite inner scope variables with 0 or false.

thank you @kevinpschaaf


Tag 1.6.2 is the same as 1.6.1

The tag for 1.6.2 actually points to the same point in time/commit-history as 1.6.1
If you look at commit hash of both tags they are the same.

Fixed.  Thanks!


Interface Statistics showing incorrect data

Upgraded two QFX switches this weekend from 14.1X53-D30 and D35 to 14.1X53-D42.3.  Now interface statistics are showing incorrectly.  I believe, the actual numbers being incremented by 8.  Normally 490 to 500Mbps is showing as around 3.9 to 4.0 Gbps.  Is this graph int-bps.yaml file?  Can I Alter this?

It's weird because from openNTI perspective there is no change related on parsing or process JTI packets.
You can alter all charts and dashboard on grafana, but remember that predefined dashboard are readonly, so make your changes on the original dashboard then use 'save as' and create your own

Okay updated dashboard and fixed the problem.  The query was multiplying by 8.


Define a class model with attributes and methods to refactor the code

Developing a class Model, would allow to generate model instances and extract the values of variables in model as attributes and use methods to generate the main outputs in the current model.
This will make the code more clear, functional, and modular.
It will allow also facilitate generating the models for the different regimes.

The class Model has been developed.
It now includes the minimum attributes and methods to generate the model and be able to run the code as before.
This class has allowed to refactor the User input block at the beginning of the notebook  :).
It might be more elegant to move some of the functions related to getting values from the model and generating equations as methods inside the model. However, it would be good to first tinker how we plan to generate the different regimes. Since those might not be generated as models, it would be good to have external functions.
In any case, the main goal of the issue is now resolved. :)


[UPDATE] Migrate code to swift 4.2 and Xcode 10.0

Fixes #443
Screenshots for the change:
N/A

@SIMRAN1 Please review PR.

@chashmeetsingh Done! Please review it again.


Switching "symfony/var-dumper" in require-dev

Feature Request
The package symfony/var-dumper is currently required in the main "require" channel.
From my research, there is no valid reason for it to be loaded outside of a dev environment (for mongodb-odm).
I think it is widely accepted that putting this package in a production environment can be dangereous.
The verbosity of the var-dumper can reveal very compromising information. For example, if a dump() or a dd() is inadvertently left in the code, and pushed to production.
Since this package requires the var-dumper in the main channel, then the var-dumper is always installed & loaded on all projects containing mongodb-odm.
Thank you for your attention, hope this can be addressed.

From my research, there is no valid reason for it to be loaded outside of a dev environment (for mongodb-odm).

The reason for symfony/var-dumper in the require section is this command: https://github.com/doctrine/mongodb-odm/blob/2.4.x/lib/Doctrine/ODM/MongoDB/Tools/Console/Command/QueryCommand.php. I have never used it myself but I reckon it's useful since we're shipping it since the very beginning :)
Theoretically we could move the requirement to require-dev, put it in suggest, and throw an exception in the command if package is not present. But technically that's a BC break. Given dangling var_dump or print_r are as "dangerous" as Symfony's function I'm reluctant to do so right away.

The verbosity of the var-dumper can reveal very compromising information. For example, if a dump() or a dd() is inadvertently left in the code, and pushed to production.

In the meantime while we're giving this a second thought, I'd advise to set simple pre-commit git hooks or even employ CI pipeline for such detections. In our project we're using https://github.com/phpro/grumphp with following task:
        git_blacklist:
            keywords:
                - "die("
                - "var_dump("
                - "print_r("
                - "dump("
                - " dd("
                - "exit;"
            triggered_by: ["php"]

You're right, var_dump or print_r may be "dangerous" as well.
However, Symfony's var-dumper package  is intended (I guess) for debugging (only?), and is quite popular those days.
If you are not too careful, you easily end up with var-dumper loaded in production ("because of" doctrine-mongodb). Eventually, there may be unpleasant surprises then.
I totally understand your point of view, and the fact that this package is required by a Command. This was a suggestion, but I believe it's a relevant one.
Thanks for the tip, I'll take a look at grumphp

If you are not too careful, you easily end up with var-dumper loaded in production ("because of" doctrine-mongodb). Eventually, there may be unpleasant surprises then.

Or a fatal error due to an unknown function dump :P Either way one should go all the way to prevent this from happening in the first place ;)


[bugfix] Fix weekday verification for UTC and offset days

#4275 (fix for #4227) but with a few changes:

Don't create a local date every time, just pull the UTC day out of the UTC-constructed date
Some more tests

Ah, I was unaware of getUTCDay. Much nicer than my hasty approach of converting to local date and extracting day after the fact. Neat!


Prevent CELO Transfer to Unreleased Treasury

Description
I propose this change to prevent sending funds back to the the CeloUnreleasedTreasury because the epochRewards contract uses the funds left in that contract to calculate the epoch rewards to be distributed.
This could potentially be used by malicious actors wanting to hide their identity, by registering as validator(elected) and/or voters, then sending stolen fund back to the CeloUnreleasedTreasury and receiving the stolen funds as rewards.
Although this scenario would distribute the funds to all validators and voters, depending on the amount it could be appealing.
In addition to that, any stolen funds received by legitimate validators could become a legal burden.
Tested
unit tests updated

I'd add a fallback function and make it revert to make sure nobody overlooks this in the future

do we still have SELFDESTRUCT that will send CELO unconditionally? If so, this change is unfortunately somewhat moot

This is a valid point. Will have to think about mitigation for this case.

This is a valid point. Will have to think about mitigation for this case.

If there is still SELFDESTRUCT, I think @pahor167's comment here becomes much more relevant - if this change doesn't fully provide the intended mitigation, might not be worth it to increase CELO ERC20 transfer costs.
Would a potential alternative solution be to keep account of the unreleased CELO within this contract, and simply ignore any balance transferred to it? I.e. for any calculations, rather than using this.balance, use a storage variable that gets decremented on release, and any CELO that gets transferred in accidentally/maliciously would become frozen (just as it would when transferring to any other core contract).

Would a potential alternative solution be to keep account of the unreleased CELO within this contract

Yes, thats what I was thinking would be an alternate solution to this. We could then remove the CELOToken check to keep the ERC20 transfer gas low


Add custom, index-able variable for templates

Hello.   I'm using a very basic, custom template for the frontend definitions as I need to define a large number of ACLs for our particular implementation.  I then need to get the frontends created by DFP to match against these ACLs.  It'd be really useful if there was a generic, index-able variable I could use for this purpose.
So, as an example, the frontend template would be:
{{- range $sd := .ServiceDest}}
use_backend {{$.ServiceName}}-be{{.Port}}_{{.Index}} if {{$.userDef}}
{{- end}}

and the DFP configs in the backend container:
com.df.port.1: "8080"
com.df.servicePath.1: "/"
com.df.userDef.1: "host_cheese"
com.df.port.2: "8081"
com.df.servicePath.2: "/"
com.df.userDef.2: "host_wine"

Is this something that is reasonable or even feasible?  CHeers!

That shouldn't be a problem. I saw that you already went through the code so maybe you'd like to send a PR? If not, I think I can add this feature over the weekend.

I've looked through the code, but frankly Golang is a bit beyond me right now.  I'm more of a Perl person. :D


feat: adding locale and currency ticker params

✅ Checklist

[x] npx changeset was attached.
[x] Covered by automatic tests.
[x] Impact of the changes: LDD

📝 Description
Add locale and currency ticker params to the Buy/Sell app URL

❓ Context

LIVE-8912

🧐 Checklist for the PR Reviewers

The code aligns with the requirements described in the linked JIRA or GitHub issue.
The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
There are no undocumented trade-offs, technical debt, or maintainability issues.
The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
Any new dependencies have been justified and documented.
Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Do not forget add the same change in mobile :)


Dependency missing from package.json

Getting a Module not found: Can't resolve '@lukeed/uuid' error due to this package being used in core, but not listed as a dependency in package.json.
https://github.com/segmentio/analytics-next/blob/598fc318a457ac6e5b04d04406f8d836d83763a4/packages/core/src/context/index.ts#L3
https://github.com/segmentio/analytics-next/blob/320dbf75ee3a6a00ff30b9f100648679ecdd9c14/packages/core/package.json#L34-L37

@bencmbrook, thanks for the heads up. Releasing a fix.
I'm interested in the context that you found this error -- was it in your bundler?  If so, which bundler do you use? Just curious -- since this package is actually listed in the main dependency array of both our public packages, I'm interested in how it was surfaced.

@silesky thanks! This throws on Next.js startup (which uses Webpack 5 and SWC), and I'm using Yarn PnP.
Here's an example error:
yarn dev
ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
info  - Loaded env from /Users/<myrepo>/.env.local
error - .yarn/cache/@segment-analytics-core-npm-1.1.2-12040c6f00-4993018e72.zip/node_modules/@segment/analytics-core/dist/esm/context/index.js:1:0
Module not found: Can't resolve '@lukeed/uuid'

Import trace for requested module:
./.yarn/cache/<EMAIL_ADDRESS>./.yarn/cache/<EMAIL_ADDRESS>./.yarn/cache/<EMAIL_ADDRESS>./lib/segment/index.tsx
./pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found

Confirming this was resolved by https://github.com/segmentio/analytics-next/releases/tag/%40segment/analytics-next%401.46.4
Thanks again!


Introducing cpu core selector

Introducing the CpuCoreSelector, a class designed to manage and optimize thread allocation, especially useful when running the same application on different systems with varying numbers of CPU cores .
It provides a flexible way to determine the best number of threads to use based on the system's hardware and user-defined preferences.
Files

inc/UtilCpuCoreSelector.hpp
src/UtilCpuCoreSelector.cpp
ut/utin/CpuCoreSelectorCatch2Should.cpp

Public Static Method: getOptimalThreadCount
This method calculates the optimal number of threads based on the selected ThreadOption.
It takes two parameters:

option (ThreadOption): The thread allocation strategy as defined in the ThreadOption enum.
specificCount (unsigned int): The specific number of threads to use when ThreadOption::Specific is chosen. Defaults to 0.

Parameters

option: The strategy for determining the number of threads.
specificCount: An optional parameter that specifies the exact number of threads to use when the Specific option is chosen.

Return Value
Returns the calculated optimal number of threads as an unsigned integer.
Behavior
All: Returns the total number of logical cores available on the system.
Half/Third/Quarter: Calculates the respective fraction of the total number of cores.
Specific: Returns the lesser of specificCount or the total number of cores, ensuring that the thread count does not exceed the number of available cores.
Default Case: In an undefined scenario, it safely returns 1 as a fallback.
Usage Example
unsigned int threads = ThreadManager::getOptimalThreadCount(ThreadOption::Half);
// This will set 'threads' to half the number of cores available on the system.

Hey @gmottajr,
Thanks a ton for your efforts. Everything seems solid at first glance. I'll be merging your pull request shortly and getting the CpuCoreSelector integrated into PROLEAD.
Cheers,
Nico

Hi Nico (@nicolaimueller),
That sounds like music to my ears! :musical_note: :musical_note:  :headphones:
That was fun!  :tada:
You are very welcome, man!
Thank you very much as well for your positive feedback and for considering the integration of the CpuCoreSelector into PROLEAD. I can\t be happier to hear that everything looks good to you.  :joy:
I'm very appreciative about the opportunity to contribute to your project, looking forward to seeing the CpuCoreSelector become a valuable addition to PROLEAD.
I do love coding in C++ and eagerly looking forward to more opportunities to collaborate with you and the team in the future.  :eyes:
Thank you once again, and I'm here to contribute and learn together. :smile:
Cheers,
Gerson Motta Junior.


[Feature Request] conditional compilation support

As we all know that lua has no conditional compilation support, if we develop cross-platform code, lua will compile all the code into bytecode.
like:
if os.name() == 'windows' then
    -- some code
else
    -- some code
end

That will introduces unnecessary code on specific platforms.
So it would be great if the Clue language had conditional compilation support.
like C:
#ifdef xxx
    // code
#else
    // code
#endif

or Rust:
#[cfg(windows)]
//code

Dunno if that was already planned as a macro

Should Clue omit from compilation code that does not match the condition?

Should Clue omit from compilation code that does not match the condition?

I think yes, the code that does not match should be ignored

conditional compilation is a bit out of the scope of an interpreted language (technically clue is interpreted as it relieves on the lua vm to be executed) as it needs to run everywhere the same.

Clue is really a compiled lamguage though, Lua is the interpreted one.

Clue is really a compiled language though, Lua is the interpreted one.

in this context I define compiled as generating machine code. If you target the lua vm then you have to treat clue as an interpreted language. Conditional compilation is a feature that is only useful when targeting a specific platform. It is out of scope because clue is targeting the cross platform lua vm.

Clue is really a compiled language though, Lua is the interpreted one.

in this context I define compiled as generating machine code. If you target the lua vm then you have to treat clue as an interpreted language. Conditional compilation is a feature that is only useful when targeting a specific platform. It is out of scope because clue is targeting the cross platform lua vm.

With your definition Clue is still not interpreted, it's transpiled.
If I got a C to Lua converter would it make C interpreted?

Clue is really a compiled language though, Lua is the interpreted one.

in this context I define compiled as generating machine code. If you target the lua vm then you have to treat clue as an interpreted language. Conditional compilation is a feature that is only useful when targeting a specific platform. It is out of scope because clue is targeting the cross platform lua vm.

With your definition Clue is still not interpreted, it's transpiled. If I got a C to Lua converter would it make C interpreted?

converting C would be different because you would not be targeting an interpreter/vm. So C still remains a compiler language.

How is a C to Lua converter not targeting an interpreter?

How is a C to Lua converter not targeting an interpreter?

sorry I misread C to lua

How is a C to Lua converter not targeting an interpreter?

sorry I misread C to lua. My definition is incomplete and I agree that my definition is incomplete but you get what I am trying to say.

I do get your point sorta but look on the other hand: a preprocessor would improve a lot, make macros much easier and fix some stuff too

I do get your point sorta but look on the other hand: a preprocessor would improve a lot, make macros much easier and fix some stuff too

A preprocessor is a good thing but conditional compilation is just not something useful

I mean adding something like #ifdef won't hurt, just a nice extra

Another idea which is kinda related is dead code elimination. Although this is probably a bit complicated.

Something like that would have to be added after types, so in 4.X

Something like that would have to be added after types, so in 4.X

The basic idea is finding conditions which coerce to always true and always false and infinite loops, which doesn't really need a type system.

Yes but the type system will use similar code to figure out types, no need to invent the wheel twice

Yes but the type system will use similar code to figure out types, no need to invent the wheel twice

I don’t think type system can detect if(0)

...?

...?

if 0 {
    print("never true")
}

...what are you trying to say?

...what are you trying to say?

A type system probably won’t consider 0 as a boolean value

The type checker would check that an if condition is bool, so it will be able to convert it

The type checker would check that an if condition is bool, so it will be able to convert it

the point is that we have would have to do type coercion. this isn’t a feature we would need right now so I think we can save it for 4.0 anyways.

Saving it for 4.0 is what I was trying to say

Saving it for 4.0 is what I was trying to say

Didn’t say anything against that

Guess this argument was kind of a mess then lol

Guess this argument was kind of a mess then lol

yeah lol this issue is a mess

The preprocessor in Clue 3.0 fixes this issue using @ifos, so this can be closed


WalletConnect design references

This task needs some designs: https://github.com/superhero-com/superhero-wallet/issues/2664 - you can open the PR and use the deployed test version. Please use only the web (not the extension).
The demo app is available here: https://feat-eth-dapps-support.wallet.z52da5wt.xyz/
Here is the list of required elements & screens:

App header icon design - connected and not connected
Modal window that opens up after clicking on the header WalletConnect icon
a. With an error if user has no ETH accounts
b When not connected
c. When connected
d. When connection failed
Transaction approval modal that pops up when we try to propose transaction in the Uniswap.

Wallet Connect
Acceptance criteria:
... (to be listed here);
... error states to be added:

With an error if user has no ETH accounts
When connection failed

Prototype flow recording:
https://github.com/superhero-com/superhero-wallet/assets/12225410/bf43a443-c8de-470a-875b-49120c3761bd
Figma Design Reference:
https://www.figma.com/file/3oGLWzSH0oJljo4RETZtur/Superhero-Wallet-UI-(✔Updated)?type=design&node-id=31639-178033&mode=design&t=Rug7hN48z30wOfvK-0

I am ok with updated Proposals

WalletConnect feature
@smaroudasunicorn updated design after syncing with @peronczyk.
Design update after updated technical requirements:
Acceptance criteria:

Wallet connect icon for the top bar:

not connected state;
connected state.

WalletConnect modal with options to scan QR and input/paste URI link:

State: Scan QR or use input URI;
State: Connecting;
State: "Unable to connect";
State: Connected to dapp (disconnect?).

Prototype recording:
Design:
Not connected icon:

Connected icon:

Scan QR or use input URI:

Connecting:

Unable to connect:

Connected to dapp modal (disconnect?):

Figma Design Reference:
https://www.figma.com/file/3oGLWzSH0oJljo4RETZtur/Superhero-Wallet-UI-(✔Updated)?type=design&node-id=31639-178033&mode=design&t=gMamfsyUU0oNkHkt-0

Following issues should be addressed:

Case: SH wallet has been connected to WC but there is no Internet connection at the moment.

Case: No Ethereum account found.

Update icon used and text of Connection failed modal according to design.

Discrepancies with design:

! 5. Unknown connection error observed:

@onvisions this task can be reviewed now.

@peronczyk unfortunately there are still a lot of issues.
I am listing all issues I have found here and I will not make another review. Just fix what's needed.

@peronczyk by the way, this is my mistake but let's update it for consistency.

"Dapp" replaced with "dapp"
The visual difference between text labels ("Connecting as") and the input labels ("WaleltConnect URI") is fixed within different PR: https://github.com/superhero-com/superhero-wallet/issues/3154
The way how multiline fields works is something that was developed long time ago by Konrad Odo and was approved back then. If we wan't to change this behavior I suggest to create separate task to avoid making this PR too big.

I just used component that we have. It was created 17 months ago and if you feel we need to update it please create separate task.

I updated the hover color styling for URL row.
The error message "No Ethereum account found..." is centered because the InfoBox component was developed this way. We use it in several other places. I can change the alignment globally, provide the ability to left-align only for selected places or leaver it as it is. Which option should I choose?
Updated the modal buttons to not hide the connect button in case there are no eth accounts. Only disabling it.


make sure the Graphviz executables are on your systems' PATH

I use this tool,but it can't work, I have executed Graphviz ,how to deal it? win10 anaconda

You need to set the system path variable to your local graphviz installation. So for example
c:\Program Files (x86)\Graphviz2.38\
needs to be set as system path variable.

Hi,
I was with the same problem on Anaconda +win 7.
I installed the Graphviz and add the Path Variable. To add the Path Variable, follow this link: https://stackoverflow.com/a/47031762
I don't know if just this solved the problem because before add the path variable I tried:

conda install -c anaconda graphviz
pip install graphviz
pip3 install graphviz
conda install python-graphviz

Try using:
conda install python-graphviz
The graphviz executable sit on a different path from your conda directory, if you use pip install graphviz.
from

Hi,
I was with the same problem on Anaconda +win 7.
I installed the Graphviz and add the Path Variable. To add the Path Variable, follow this link: https://stackoverflow.com/a/47031762
I don't know if just this solved the problem because before add the path variable I tried:

conda install -c anaconda graphviz
pip install graphviz
pip3 install graphviz
conda install python-graphviz

conda install python-graphviz solved my problem.

Hi,
I was with the same problem on Anaconda +win 7.
I installed the Graphviz and add the Path Variable. To add the Path Variable, follow this link: https://stackoverflow.com/a/47031762
I don't know if just this solved the problem because before add the path variable I tried:

conda install -c anaconda graphviz
pip install graphviz
pip3 install graphviz
conda install python-graphviz

conda install python-graphviz solved my problem.

TY SO MUCH

The most important thing to realize is the package names are not the same:

conda install graphviz installs the binaries.
pip install graphviz installs the python frontend for GraphViz.
conda install python-graphviz installs the python frontend as well.

So with conda you want to do conda install graphviz python-graphviz.


Plain Concepts’ PR with the Adaptive Cards designer.

Clean PR from original discussion: https://github.com/Microsoft/AdaptiveCards/pull/1657

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: IgnaciodeNuevo sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[FEATURE]

Detailed description
Hii there, Greeting's of the day
I want to add new file to our repo :  TheAlgorithms /C-Plus-Plus/data_structures/   which is used to calculate the middle element of the singlly linkedlist . The name of the file can be MIddleElement_S.ll.cpp ( TheAlgorithms /C-Plus-Plus/ data_structures/MIddleElement_S.ll.cpp.
I hope u find it useful . give acess to contribute this to ur repo .
Thank u <3
Context
As this file code is misssing int the data structure folder , so i think this is very important file  in the linked list  Data structure
Possible implementation
No response
Additional information
No response

Hey there! Want to work on this? :)

Yes , plss assign this to  me ..

Hi, is this issue still being worked on? If so, can I be assigned to this?

Hi, is this issue still being worked on? If so, can I be assigned to this as well?

There's a PR for it already #1867.

Hii sir , greeting's!!
@Panquesito7 is there anything else I want to do with this code Or it's fine for merging ...?
:)

Hii sir , greeting's!!
@Panquesito7 is there anything else I want to do with this code Or it's fine for merging ...?
:)

I'll check it out, thanks. 🙂

hey !! hope u r doing good .....
@Panquesito7 ..any more chnages needed to this ..?


CB-7047 change the default kerberos encryption type to aes256-cte

This is ready to be merged. It turns out this property is not used at all as IPA controls the encryption type so this is just a cosmetic change on the UI so people won't complain about weak encryption.


update to latest ember-hook

#PATCH#
Closes: https://github.com/ciena-frost/ember-frost-core/issues/171
CHANGELOG

Updated ember-hook dependency and blueprint to latest version

This change is

:+1:

@juwara0 Does the Reviewable stuff get auto-inserted into the PR description? Or is that something you add manually? I ask b/c it ends up in CHANGELOG.md currently and we should either stop manually putting it below # CHANGELOG in our descriptions or update pr-bumper to filter it out if it's auto-inserted.

@job13er The Reviewable stuff is auto-inserted. Right now, I am having to manually go in and remove it from the CHANGELING.md. Updating the pr-bumper to filter it out would be nice.


Option to blur UIViewController background

Hey,
What would be the best way to implement blur? Not the blur effect on the Action Sheet, but instead a blur effect for the View Controller that's still visible behind it all. I want to lightly blur the content behind my View Controller when I show the action picker.

You mean like this?

Actually it's pretty easy to get something like that. You just have to subclass RMActionController, make the property backgroundView publicly available and overwrite the getter for this property. The getter may look like follows:
- (UIView *)backgroundView {
    if(!_backgroundView) {
        UIVisualEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
        UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
        self.backgroundView = effectView;

        _backgroundView.translatesAutoresizingMaskIntoConstraints = NO;

        UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backgroundViewTapped:)];
        [_backgroundView addGestureRecognizer:tapRecognizer];
    }

    return _backgroundView;
}

If that's what you want, I'm also thinking about integrating this functionality into RMActionController. Seems to be a good idea :)...

I was thinking of a blur where you have more control over the blur amount. Something more like a custom gaussian blur with a radius you can change.
I implemented something but not into your library. I just show a blurred view before showing the picker and hide it on dismiss. I use a library called "FXBlurView" for it.
Thanks for your help tho. What you've done will probably be useful for other users in the future I guess. :)


Migrate to poky krogoth version

@agherzan @telphan @michal-mazurek

Can we switch directly to morty? We want that anyway.

Migrating to morty instead: https://github.com/resin-os/meta-resin/pull/523
Closing this PR


[Mastery Progress Not Saving]

Whenever I close the tab of the tracker the camos in the mastery section do not save when I re-open the tab.  The progress towards orion saves everytime but the progress in the weapon mastery section does not.

Should be fixed now!


[BUG]: UseDotNet@2 does not find preview versions with global.json

Task name
UseDotNet@2
Task version
2.221.0
Environment type (Please select at least one enviroment where you face this issue)

[ ] Self-Hosted
[X] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Task log
Starting: 🚂 Use DotNet from global.json
==============================================================================
Task         : Use .NET Core
Description  : Acquires a specific version of the .NET Core SDK from the internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks. Additionally provides proxy support.
Version      : 2.228.0
Author       : Microsoft Corporation
Help         : https://aka.ms/AA4xgy0
==============================================================================
Tool to install: .NET Core sdk version 8.0.0.
No matching sdk version could be found for specified version: 8.0.0 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Version 8.0.0 could not be found in its channel, will now search in adjacent channels.
Searching for version in channel 8.0
##[error]sdk version matching: 8.0.0 could not be found
Finishing: 🚂 Use DotNet from global.json

Relevant log output
##[error]sdk version matching: 8.0.0 could not be found

Aditional info
The UseDotNet@2 doesn't fetch preview .Net versions when useGlobalJson: true, and the global.json file contains "allowPrerelease": "true".  I've tried this both without includePreviewVersions set ont eht ask, and with includePreviewVersions explicitly set to true.
Global.json
{
  "sdk": {
    "version": "8.0.0",
    "rollForward": "latestFeature",
    "allowPrerelease": true
  }
}

Task:
- task: UseDotNet@2
  displayName: 🚂 Use DotNet from global.json
  inputs:
    useGlobalJson: true
    # includePreviewVersions: true

I have the same issue

This may have the same problem as in this issue.


Allow using separate page sizes for state and dfu

Less generics on bootloader. Keep PAGE_SIZE as a common multiple of
DFU and ACTIVE page sizes.
Document restriction
Add unit tests for different page sizes

bors r+


M3-2336 update underline links instances

Update underline links instances in breadcrumb and event menu
For some reason this commit was empty on https://github.com/linode/manager/pull/4474 - reapplying here
Type of Change

Non breaking change ('update')

Coverage increased (+0.002%) to 34.973% when pulling 11329b864c9566edbc161520ddac3a08ac6c74ab on alioso:M3-2336-apply-empty-commit into c7aa3e9c939e472085062876490a352aa8c46b1f on linode:develop.


Use travis_wait to prevent osx build failure

See https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
cc @GuillaumeGomez, @sdroege

Seems travis_wait works only for install
+RUSTFLAGS=-C link-dead-code travis_wait cargo build --features  --jobs 1

./build_travis.sh: 41: ./build_travis.sh: travis_wait: not found

The command "./build_travis.sh" exited with 127.

0.00s$ if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then rustup component add rustfmt; cargo fmt; git diff -R --exit-code; fi

The command "if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then rustup component add rustfmt; cargo fmt; git diff -R --exit-code; fi" exited with 0.

CI passed, I hope it helps https://github.com/gtk-rs/gtk/pull/948 too

Thanks!


Comando leaks:

< $HOME/Downloads/fdf_42/main.c > $HOME/Downloads/minishell_42/out

problem solved


Update docs

Adding a Powershell script to deploy CF on ASDK.

@NingKuang Just added a sample Powershell script to deploy CF on Azure Stack.


kata-agent build failure due to libseccomp

make build for IBM Cloud failed with the following errors.
  = note: /usr/bin/ld: /root/kata-containers/src/agent/target/x86_64-unknown-linux-musl/release/deps/kata_agent-b16b2ce158e969f5.kata_agent.957fc0a8-cgu.15.rcgu.o: in function `nix::unistd::User::from_uid':
          kata_agent.957fc0a8-cgu.15:(.text._ZN3nix6unistd4User8from_uid17h8596cd70bfdcbe33E+0xb1): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
          /usr/bin/ld: /root/kata-containers/src/agent/target/x86_64-unknown-linux-musl/release/deps/kata_agent-b16b2ce158e969f5.kata_agent.957fc0a8-cgu.15.rcgu.o: in function `tokio::runtime::task::raw::poll':
          kata_agent.957fc0a8-cgu.15:(.text._ZN5tokio7runtime4task3raw4poll17h627f269b34728287E+0x93c): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
          /usr/bin/ld: /tmp/rustck8FPIt/libopenssl_sys-ca4d72d9c99e5536.rlib(b_sock.o): in function `BIO_gethostbyname':
          b_sock.c:(.text.BIO_gethostbyname+0x5): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
          /usr/bin/ld: /root/kata-containers/src/agent/target/x86_64-unknown-linux-musl/release/deps/kata_agent-b16b2ce158e969f5.kata_agent.957fc0a8-cgu.15.rcgu.o: undefined reference to symbol 'pthread_mutex_lock@@GLIBC_2.2.5'
          /usr/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: DSO missing from command line
          collect2: error: ld returned 1 exit status

  = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `kata-agent` due to previous error
make: *** [Makefile:113: target/x86_64-unknown-linux-musl/release/kata-agent] Error 101

This error has been also reported in the upstream kata-agent.
https://github.com/kata-containers/kata-containers/issues/5044

We can fix this issue as follows.
https://github.com/kata-containers/kata-containers/issues/5044#issuecomment-1239773921
# Install libseccomp for static linking
sudo -E PATH=$PATH GOPATH=$GOPATH kata-containers/ci/install_libseccomp.sh /tmp/kata-libseccomp /tmp/kata-gperf
export LIBSECCOMP_LINK_TYPE=static
export LIBSECCOMP_LIB_PATH=/tmp/kata-libseccomp/lib


Skip watching the ConfigMaps if they are missing

This PR should be the most straightforward fix by NOT adding the ConfigMaps into the config map watcher, if config-logging or config-observability is missing.

/lgtm
/approve


_zsh_autosuggest_strategy_default:5: error in flags

I am running zsh-autosuggestions from git/master
Since this morning all of my zsh shells are unusable because of the error message in $sub
Reverting to zsh-autosuggestions from earlier than 0.4.0 seems to fix it
Any suggestions on how to fix it so I can run zsh-autosuggestions latest again?

Also affects me

What is the error message? What version of zsh? What OS?

Also, do you get errors running these?
$ echo ${history[(r)ls*]}
$ foo="bar"; echo ${(b)foo}

centos7, Manual install or Oh My Zsh install both has the problem.
zsh version is 0.4.1.
help!

Same issue here with 0.4.1, running it as an oh-my-zsh plugin. Reverting to 0.4.0 solved the issues.
Running your second line gives an error:
$ echo ${history[(r)ls*]}
ls -l
$ foo="bar"; echo ${(b)foo}
zsh: error in flags

Amazon Linux 2017.09, latest OhMyZsh (commit e273cf004e1ff0510aee61416885f3003bcd15d9), zsh 5.0.2

Distribution - openSUSE Leap 42.3 and openSUSE Tumbleweed
zsh version 5.0.2 (Leap) or 5.3.1 (Tumbleweed)
Reproduced with zsh -f and sourcing zsh-autosuggestions manually
luke% echo ${history[(r)ls*]}
luke% foo="bar"; echo ${(b)foo}
_zsh_autosuggest_strategy_default:5: error in flags
luke% foo="bar"; echo ${(b)foo}

zshrc https://github.com/sysrich/salt-states/blob/master/opensuse/zshrc-user
Please help, two days of no zsh is making me a sad bash-using panda 🐼

Ok, thanks for the additional info. It looks like support for the (b) flag was added relatively recently (released with zsh v5.0.8):
https://github.com/zsh-users/zsh/commit/6269db883ad6989a578bac299deab9c4285bb1df
This plugin doesn't currently support zsh versions older than v5.0.8: https://github.com/zsh-users/zsh-autosuggestions/blob/master/circle.yml#L3
The (b) flag was added to this plugin in commits 7f8ff28 and 5e4487e as a simplification of the pattern character escaping logic used when looking up suggestions. It also fixed some issues with the match_prev_cmd suggestion strategy.
The easiest fix here seems to be for you to upgrade zsh to v5.0.8 or higher, but if for some reason you can't, using v0.4.0 is always available as a workaround. You could also define your own strategy function that doesn't use the (b) flag.
That being said, if a lot of people are unhappy with the workarounds and for some reason are not able to upgrade to v5.0.8 or higher, we could consider adding back the code that was removed by using the (b) flag and officially supporting versions of zsh older than v5.0.8. Toward that end, if anyone is stuck on a version older than 5.0.8 and isn't able to upgrade, can you add a note here with the version you're stuck on and an explanation of why you can't upgrade?

I'm running Tumbleweed, with zsh 5.3.1, and yet still having this problem. How can your suggestion that the solution to this is upgrading to 5.0.8?

Can you double check that you're on 5.3.1? I can't imagine how this would be an issue with that version of zsh. From your shell session, you can echo $ZSH_VERSION.

No I can't, because echo $ZSH_VERSION results in _zsh_autosuggest_strategy_default:5: error in flags ;)
zypper if zsh however results in:
zypper if zsh
Loading repository data...
Reading installed packages...

Information for package zsh:
----------------------------
Repository     : openSUSE-20150318-0
Name           : zsh
Version        : 5.3.1-1.6

No I can't, because echo $ZSH_VERSION results in _zsh_autosuggest_strategy_default:5: error in flags ;)

To get around this, you can temporarily remove zsh-autosuggestions from your zshrc or run zsh -f. Looking into the details of the openSUSE zsh package now.

I've same problem in ubuntu 14.04 zsh 5.0.2

As noted before I am running on 5.0.2 and can't upgrade because that's the version provided by our distro (Amazon Linux). Manually upgrading is not an option due to compliance with security policies. In a business setting it will probably be very common to still run on 5.0.2 and it will not be possible to upgrade. :-(

I'm running Redhat Enterprise Linux 6 which has zsh version 4.3.11.
I can't switch to any newer version as this is not covered by support and there are no official packages available for RHEL6 and will never be.
On RHEL7 the zsh version is 5.0.2 and might at some day get an update to 5.0.8, but Redhat is quite conservative on this (for good reasons).

Problem also reproduced on SUSE Linux Enterprise Server and Desktop 12, another distro where updating to 5.0.8 is unlikely for a few years

Same for me on Debian Wheezy with zsh 5.4.2 compiled from source.

@ikirmitz Interesting. Does your compiled zsh support the (b) flag?
What is the output of these commands?
$ echo $ZSH_VERSION
$ foo="bar"; echo ${(b)foo}

Hi @ericfreese . Upon further checks, it turns out that although which zsh pointed to the one I compiled from source, $SHELL was pointing in an older version installed in /etc/alternatives (4.3.17).
I fixed that and now have no issues. Sorry for the confusion

i can''t  write any words;help me

I use CentOS 7.4 and zsh v5.0.2 .
@nomike mentioned also, latest CentOS and REHL does not support zsh 5.0.8 (zsh 5.0.2 is supported and latest version...).
So users can't use latest package without source code building.

Ok. Given how common these old versions are, I'm intending to start officially supporting zsh versions back to v4.3.11 (as zsh-syntax-highlighting does).
I've pushed up a branch fixes/support_older_versions that attempts to run CI on these older versions, though I haven't got it working quite right yet...
PRs to that branch to improve support for older versions would be appreciated.
Thanks all

Do anyone know how to exit zsh? I cannot write any words (on my VPS server) now.

Have you fixed it? @ThingsChange

If zsh is your default shell you can't exit it (or rather it will terminate your connection). If you use ssh you can add a command to connect to your server: ssh [user@]host bash -l, that should give you a shell in which you can revert the plugin to the previous version.

How about
if $zshversion <= 5.0.8; then
    #old_code
else
    #new_code
fi
``` (pseudocode)

Or maybe that's already what branch fixes/support_older_versions is about.

Thanks @SunMar but when I used it, the server just complainedstdin: is not a tty.
@nomike That is a workaround, but just for when I can access my server, but by now, I can't. :-(

@Leetsong try it without the -l, it may looks like it is not doing anything but if you type something and hit enter you see you have a bash shell

@SunMar I've already tried before, but nothing happened except that it got stuck....

@Leetsong are you sure it got stuck? try typing ls -l, for me it's just a bash shell but with an empty prompt so it looks like it's stuck but you can actually enter commands as normal

@SunMar Yes, I am sure. Other commands works fine. I am now trying to use sed to delete words that do something with zsh-autosuggestions. :-) Thanks for your inspiring.

@Leetsong perhaps there is a way to start zsh without loading .zshrc or loading a non-existing file instead ? good luck :)

@SunMar @Leetsong You can run zsh with the -f flag to tell it not to source .zshrc at startup: zsh -f

@Leetsong:
You can try to allocate a pseudo terminal by executing
ssh -t user@hostname 'bash'
or if this fails reset the login shell using
ssh user@hostname 'chsh -s /usr/bin/bash

@nomike Thanks. You'v tought me another skill :-). And I have successfully fixed it using sed.

@ericfreese Thanks

For antigen users I pinned to an older version to fix my issues e.g.:
antigen bundles<EMAIL_ADDRESS>Tested on zsh 5.0.2

Ok, this should be fixed on master and released as v0.4.2.


Enhance custom status report of egeria CR

Current status is reported as
NAME                    PODS                                                                                DEPLOYMENT                         AGE
egeriaplatform-sample   ["egeriaplatform-sample-deployment-694fdb9bb-hxjwn","egeriaplatform-sample-deployment-694fdb9bb-86phg","egeriaplatform-sample-deployment-694fdb9bb-mv2pf"]   egeriaplatform-sample-deployment   3m22s

This was done to demonstrate the capability of reporting additional information in a custom status field. In the above case this reports the list of deployments.
The information is added into the status by the controller, and tagged to provide the custom output from 'get'
Status:
  Deployment:  egeriaplatform-sample-deployment
  Pods:
    egeriaplatform-sample-deployment-694fdb9bb-hxjwn
    egeriaplatform-sample-deployment-694fdb9bb-86phg
    egeriaplatform-sample-deployment-694fdb9bb-mv2pf
  Service:  egeriaplatform-sample-service

It may be more useful to consider reporting

how many platforms are configured/running
last action taken
any error status

This also extends to the overall status section of the CR -- where other observations can be added


Checking whether a given expression is polynomial

Hey!
Using symengine, I was trying to check whether a given expression is polynomial.
In the C++ documentation  there exists a method is_polynomial() which would be exactly what I was looking for. This method however does not seem to exist in the python bindings (as of version 0.11.0).
Using the given is_finite propery sadly doesn't work and produces some interesting result when compared to SymPy
import symengine as se
import sympy as sp

expr = se.zoo

# 👇 Is this the way it should behave? If yes, why?
print(se.S(expr).is_finite)         # None
print(sp.S(expr).is_finite)         # False

expr = "x ** 5"

# As expected...
print(se.S(expr).is_finite)         # None
print(sp.S(expr).is_finite)         # None

# However, this behavior is what I want
print(sp.S(expr).is_polynomial())   # True

Are there any plans of making the function accessible? Is there a workaround (without simply using SymPy)?
Thanks in advance!

Assumptions are not yet implemented in SymEngine. So almost all .is_xxxxx methods will return None (which signifies "indeterminate").
Looks like is_polynomial would be useful in the python bindings. I think it's just a matter of someone finding the time / having the need to write a pull request.


Document truncated log occur in diags.log

I always found some logs  in diags.log  on production host like this:
May 13 10:52:59.948] Server {0x7ffff3c2c700} WARNING: Document 6E175543E1C4B188B8DDD553EEF9862F truncated
I investigate this and finally filter a piece of url from thousands of requests of ATS 5.3.2/6.2.1, which can reappear this above log stably：
http://xunniu.vod.taocdn.readtv.cn/NewVideo/xunniu/2017011919/12129220.ts
I request this url from ATS in debug mode，
curl -vx <IP_ADDRESS>:80 -o /dev/null 'http://xunniu.vod.taocdn.readtv.cn/NewVideo/xunniu/2017011919/12129220.ts'
I found the following：
[Switching to Thread 0x7ffff2313700 (LWP 72185)]
Breakpoint 2, CacheVC::openReadStartHead (this=0x7ffec801e9a0, event=3900, e=0x0) at CacheRead.cc:1037
1037	    if (doc->magic != DOC_MAGIC) {
(gdb) p *doc
$28 = {magic =<PHONE_NUMBER>, len = 2904, total_len = 703308, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {12674803048354180674,<PHONE_NUMBER>998288457}, u64 = {12674803048354180674,<PHONE_NUMBER>998288457}, u32 = {
4012928578,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>}, u8 = "Bn0\357\067\362\345\257I\356\274|\350\316҃"}, hlen = 2832, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
Breakpoint 1, CacheVC::openReadStartEarliest (this=0x7ffec801e9a0) at CacheRead.cc:823
823	    if (doc->magic != DOC_MAGIC) {
(gdb) p *doc
$29 = {magic =<PHONE_NUMBER>, len = 524288, total_len = 564741, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {9545684039016667831,<PHONE_NUMBER>6947867084}, u64 = {9545684039016667831,<PHONE_NUMBER>6947867084}, u32 = {
3954465463,<PHONE_NUMBER>, 935816652,<PHONE_NUMBER>}, u8 = "\267Z\264\353\016\025y\204\314m\307\067\331ؿ\267"}, hlen = 0, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
Breakpoint 4, CacheVC::openReadMain (this=0x7ffec801e9a0) at CacheRead.cc:638
638	  int64_t ntodo = vio.ntodo();
(gdb) p *doc
$30 = {magic =<PHONE_NUMBER>, len = 524288, total_len = 564741, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {9545684039016667831,<PHONE_NUMBER>6947867084}, u64 = {9545684039016667831,<PHONE_NUMBER>6947867084}, u32 = {
3954465463,<PHONE_NUMBER>, 935816652,<PHONE_NUMBER>}, u8 = "\267Z\264\353\016\025y\204\314m\307\067\331ؿ\267"}, hlen = 0, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
Breakpoint 4, CacheVC::openReadMain (this=0x7ffec801e9a0) at CacheRead.cc:638
638	  int64_t ntodo = vio.ntodo();
(gdb) p *doc
$31 = {magic =<PHONE_NUMBER>, len = 524288, total_len = 564741, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {9545684039016667831,<PHONE_NUMBER>6947867084}, u64 = {9545684039016667831,<PHONE_NUMBER>6947867084}, u32 = {
3954465463,<PHONE_NUMBER>, 935816652,<PHONE_NUMBER>}, u8 = "\267Z\264\353\016\025y\204\314m\307\067\331ؿ\267"}, hlen = 0, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
Breakpoint 3, CacheVC::openReadReadDone (this=0x7ffec801e9a0, event=3900, e=0x0) at CacheRead.cc:559
559	      if (doc->magic != DOC_MAGIC) {
(gdb) p *doc
$32 = {magic =<PHONE_NUMBER>, len = 179164, total_len = 703308, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {11108024346135017448,<PHONE_NUMBER>8677323557}, u64 = {11108024346135017448,<PHONE_NUMBER>8677323557}, u32 = {
1002747880,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>}, u8 = "\350\267\304;J\241'\232%\017\203m\360F~\275"}, hlen = 0, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
Breakpoint 4, CacheVC::openReadMain (this=0x7ffec801e9a0) at CacheRead.cc:638
638	  int64_t ntodo = vio.ntodo();
(gdb) p *doc
$33 = {magic =<PHONE_NUMBER>, len = 179164, total_len = 703308, first_key = {b = {6581159149356253959,<PHONE_NUMBER>087607973}, u64 = {6581159149356253959,<PHONE_NUMBER>087607973}, u32 = {3148940039,<PHONE_NUMBER>,
1728358565, 550316498}, u8 = "\a\003\261\273`\371T[\245\250\004g\322)\315 "}, key = {b = {11108024346135017448,<PHONE_NUMBER>8677323557}, u64 = {11108024346135017448,<PHONE_NUMBER>8677323557}, u32 = {
1002747880,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>}, u8 = "\350\267\304;J\241'\232%\017\203m\360F~\275"}, hlen = 0, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34118,
write_serial = 2149452, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) c
Continuing.
In my oppion, total_len is object total length, fragment size is configured as 512KB, so each fragment is 524288bytes. This multi-fragment has 3 fragments, the first fragment just save header info (72 bytes Doc, plus 2832 hlen ) and no payload data, the earliest fragment save 524216 bytes payload and 72 bytes Doc(sizeofDoc=72), the last fragment just save 17902 bytes payload and 72 bytes Doc. len is actual total length of each fragment.
So，there are the following relation:
first fragment：         2904     = sizeofDoc(72) + hlen(2832)
earliest fragment:      524288 = sizeofDoc(72) + payload(524216)
last fragment:            179164  = sizeofDoc(71)  + payload(17902)
payload total length  703308 = 524216 + 17902
why the total_len can vary from Doc of the fragments belonging to a multi-fragment? the total_len of Doc in earliest fragment should be 703308, not 564471 !
I deem this is a cache bug, I wish someone can help me!

curl -vx <IP_ADDRESS>:80 -o /dev/null 'http://xunniu.vod.taocdn.readtv.cn/NewVideo/xunniu/2017011919/12129220.ts'

About to connect() to proxy <IP_ADDRESS> port 80 (#0)
Trying <IP_ADDRESS>... connected
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 80 (#0)

GET http://xunniu.vod.taocdn.readtv.cn/NewVideo/xunniu/2017011919/12129220.ts HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/<IP_ADDRESS> Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: xunniu.vod.taocdn.readtv.cn
Accept: /
Proxy-Connection: Keep-Alive

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0< HTTP/1.1 200 OK
< Server: nginx/1.9.15
< Date: Mon, 15 May 2017 10:11:39 GMT
< Content-Type: video/mp2t
< Content-Length: 703308
< Connection: keep-alive
< Last-Modified: Thu, 19 Jan 2017 07:12:15 GMT
< ETag: "a2f61410f4938507017c410c37b85f58"
< Expires: Sat, 20 May 2017 02:17:36 GMT
< Cache-Control: max-age=2592000
< Age: 2188511
< Via: http/1.1 Front-ZJLSCTC260 (TaoCacheBox V2.32 [cRs f ]), http/1.1 EDG-JSHACTC14 (TaoCacheBox V2.32 [cRs f ])
< Tao_Status: TCP_HIT
< Proxy-Connection: keep-alive
< Accept-Ranges: bytes
<
{ [data not shown]
74  686k   74  511k    0     0  31326      0  0:00:22  0:00:16  0:00:06     0* transfer closed with 179575 bytes remaining to read
74  686k   74  511k    0     0  31326      0  0:00:22  0:00:16  0:00:06     0* Closing connection #0
curl: (18) transfer closed with 179575 bytes remaining to read
As long as we trigger the above request to ATS, we can find a piece of log in diags.log like this:
[May 13 10:52:59.948] Server {0x7ffff3c2c700} WARNING: Document 6E175543E1C4B188B8DDD553EEF9862F truncated

this following is the internal procedure of ATS on the debug mode：
[Switching to Thread 0x7ffff3020700 (LWP 35645)]
Breakpoint 1, CacheVC::openReadMain (this=0x7ffef001b360) at CacheRead.cc:638
638	  int64_t ntodo = vio.ntodo();
(gdb) c
Continuing.
Breakpoint 1, CacheVC::openReadMain (this=0x7ffef001b360) at CacheRead.cc:638
638	  int64_t ntodo = vio.ntodo();
(gdb) n
639	  int64_t bytes = doc->len - doc_pos;
(gdb) p ntodo
$54 = 179092
(gdb) n
640	  IOBufferBlock *b = NULL;
(gdb)
641	  if (seek_to) { // handle do_io_pread
(gdb)
715	  if (ntodo <= 0)
(gdb)
717	  if (vio.buffer.writer()->max_read_avail() > vio.buffer.writer()->water_mark && vio.ndone) // initiate read of first block
(gdb)
719	  if ((bytes <= 0) && vio.ntodo() >= 0)
(gdb)
720	    goto Lread;
(gdb)
740	  if (vio.ndone >= (int64_t)doc_len)
(gdb)
743	  last_collision = 0;
(gdb)
744	  writer_lock_retry = 0;
(gdb)
749	  cancel_trigger();
(gdb)
750	  CACHE_TRY_LOCK(lock, vol->mutex, mutex->thread_holding);
(gdb)
751	  if (!lock.is_locked()) {
(gdb)
755	  if (dir_probe(&key, vol, &dir, &last_collision)) {
(gdb)
756	    SET_HANDLER(&CacheVC::openReadReadDone);
(gdb)
757	    int ret = do_read_call(&key);
(gdb)
758	    if (ret == EVENT_RETURN)
(gdb)
790	  return handleEvent(AIO_EVENT_DONE, 0);
(gdb) c
Continuing.
Breakpoint 2, CacheVC::openReadReadDone (this=0x7ffef001b360, event=3900, e=0x0) at CacheRead.cc:559
559	      if (doc->magic != DOC_MAGIC) {
(gdb) n
573	      if (doc->key == key)
(gdb) p *doc
$55 = {magic =<PHONE_NUMBER>, len = 3016, total_len = 4194304, first_key = {b = {7936001979168651200,<PHONE_NUMBER>822286449}, u64 = {7936001979168651200,<PHONE_NUMBER>822286449}, u32 = {3643078592,<PHONE_NUMBER>,
2071342705, 462466489}, u8 = "\300\367$\331\300W"nq.v{\271\255\220\033"}, key = {b = {5241550030087605862,<PHONE_NUMBER>4309961022}, u64 = {5241550030087605862,<PHONE_NUMBER>4309961022}, u32 = {
1070550630,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>}, u8 = "fN\317?\373\271\275H>\245}\266_\367۝"}, hlen = 2944, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34143,
write_serial = 851889, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) n
576	      else if (dir_ininterim(&dir)) {
(gdb)
577	        dir_delete(&key, vol, &dir);
(gdb)
578	        last_collision = NULL;
(gdb)
583	    if (last_collision && dir_get_offset(&dir) != dir_get_offset(last_collision))
(gdb)
590	    if (dir_probe(&key, vol, &dir, &last_collision)) {
(gdb)
591	      int ret = do_read_call(&key);
(gdb)
592	      if (ret == EVENT_RETURN)
(gdb)
594	      return EVENT_CONT;
(gdb) c
Continuing.
Breakpoint 2, CacheVC::openReadReadDone (this=0x7ffef001b360, event=3900, e=0x0) at CacheRead.cc:559
559	      if (doc->magic != DOC_MAGIC) {
(gdb) p *doc
$56 = {magic =<PHONE_NUMBER>, len = 3888, total_len = 0, first_key = {b = {7936001979168651200,<PHONE_NUMBER>822286449}, u64 = {7936001979168651200,<PHONE_NUMBER>822286449}, u32 = {3643078592,<PHONE_NUMBER>,
2071342705, 462466489}, u8 = "\300\367$\331\300W"nq.v{\271\255\220\033"}, key = {b = {18283213176734494251,<PHONE_NUMBER>571952605}, u64 = {18283213176734494251,<PHONE_NUMBER>571952605}, u32 = {11819,
4256892292,<PHONE_NUMBER>, 830222567}, u8 = "+.\000\000\204\005\273\375ݽ2\255\347\060|1"}, hlen = 3816, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 18929,
write_serial = 815749, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) n
573	      if (doc->key == key)
(gdb)
576	      else if (dir_ininterim(&dir)) {
(gdb)
583	    if (last_collision && dir_get_offset(&dir) != dir_get_offset(last_collision))
(gdb)
590	    if (dir_probe(&key, vol, &dir, &last_collision)) {
(gdb)
591	      int ret = do_read_call(&key);
(gdb)
592	      if (ret == EVENT_RETURN)
(gdb)
594	      return EVENT_CONT;
(gdb)
631	}
(gdb) c
Continuing.
Breakpoint 2, CacheVC::openReadReadDone (this=0x7ffef001b360, event=3900, e=0x0) at CacheRead.cc:559
559	      if (doc->magic != DOC_MAGIC) {
(gdb) p *doc
$57 = {magic =<PHONE_NUMBER>, len = 3016, total_len = 4194304, first_key = {b = {7936001979168651200,<PHONE_NUMBER>822286449}, u64 = {7936001979168651200,<PHONE_NUMBER>822286449}, u32 = {3643078592,<PHONE_NUMBER>,
2071342705, 462466489}, u8 = "\300\367$\331\300W"nq.v{\271\255\220\033"}, key = {b = {5241550030087605862,<PHONE_NUMBER>4309961022}, u64 = {5241550030087605862,<PHONE_NUMBER>4309961022}, u32 = {
1070550630,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>}, u8 = "fN\317?\373\271\275H>\245}\266_\367۝"}, hlen = 2944, doc_type = 3, v_major = 24, v_minor = 0, unused = 0, sync_serial = 34144,
write_serial = 851504, pinned = 0, checksum =<PHONE_NUMBER>}
(gdb) n
573	      if (doc->key == key)
(gdb)
576	      else if (dir_ininterim(&dir)) {
(gdb)
583	    if (last_collision && dir_get_offset(&dir) != dir_get_offset(last_collision))
(gdb)
590	    if (dir_probe(&key, vol, &dir, &last_collision)) {
(gdb)
595	    } else if (write_vc) {
(gdb)
619	  Warning("Document %s truncated", earliest_key.toHexStr(tmpstring));
(gdb)
620	  return calluser(VC_EVENT_ERROR);
(gdb)
631	}
(gdb)

I try to explain the above debug procedure and why we get the 'Document truncated' log:
During getting the last fragment data, we encounter the voilent directory has collision(two ok, one fail):
First, we parse Doc, check doc->key != key, dir_probe, do_read_call, reentry CacheVC::openReadReadDone;
Second, we parse Doc, check doc->key != key, dir_probe, do_read_call, reentry CacheVC::openReadReadDone;
Third,  we parse Doc, check doc->key != key, dir_probe, but this time we find no matched dir, finally, only just print 'Document truncated ……' log and go to error exception.
why we find no matched dir for the last fragment?

@SolidWallOfCode can you comment on this?

In my opinion, we should revert the TS-3054 until the PR #2699 is reviewed or the TS-3054 is reimplemented. Because it makes the incomplete content is cached.
commit 05cfba6a77c48bf2f651e7d88202d5af3f676074
Author: Susan Hinrichs<EMAIL_ADDRESS>Date:   Mon Sep 22 11:56:52 2014 -0500

    TS-3054: Pass truncated chunked data to client.

I agree with @oknet

+1

this feature will be removed if #2865 accepted.
I'll open a new issue to discuss how to reimplement TS-3054.
According to TS-3054, what does ats do if content is not chunk ?
It seems we also lost the initial body when server close immediately.
package main

import (
	"net"
	"fmt"
)

const response =
	`HTTP/1.1 200 OK
Date: Sun, 31 Aug 2014 10:00:38 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Content-Length: 1000000
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Content-Type: application/xml;; charset=utf-8

34
<recording><validtoken>true</validtoken></recording>`

func main()  {
	l, _ := net.Listen("tcp", ":12345")

	for true {
		c, _ := l.Accept()
		fmt.Println("revceived one connection")
		n, err := c.Write([]byte(response))
		fmt.Println(n, err, len(response))
		c.Close()
	}

}

@zwoop @shinrich @SolidWallOfCode

Maybe thats not just TS-3054 error，We use trafficserver 4.2.3，that version not apply TS-3054，but we also meet this error。
[Aug 14 07:06:06.128] Server {0x15225dfd3700} WARNING: Middle: Doc magic does not match for 00B59E24A25A0933711746E2DD2CF01C
[Aug 14 07:06:06.128] Server {0x15225dfd3700} WARNING: Document 69847794EB607DF271799448950874D6 truncated
[Aug 14 07:42:48.794] Server {0x15225d0c4700} WARNING: Head : Doc magic does not match for 7F4EA6372F3CFEF9C32301E20019337A
[Aug 14 08:18:46.911] Server {0x15225d9cd700} WARNING: Middle: Doc magic does not match for 00B59E24A25A0933711746E2DD2CF01C
[Aug 14 08:18:46.911] Server {0x15225d9cd700} WARNING: Document 69847794EB607DF271799448950874D6 truncated
[Aug 14 10:01:13.990] Server {0x15225dace700} WARNING: Head : Doc magic does not match for D5A882B58598E29B196A700F4D8426BC
[Aug 14 10:01:20.990] Server {0x15225d9cd700} WARNING: Middle: Doc magic does not match for 00B59E24A25A0933711746E2DD2CF01C
[Aug 14 10:01:20.990] Server {0x15225d9cd700} WARNING: Document 69847794EB607DF271799448950874D6 truncated
[Aug 14 10:24:53.279] Server {0x15225d7cb700} WARNING: Middle: Doc magic does not match for 00B59E24A25A0933711746E2DD2CF01C
[Aug 14 10:24:53.280] Server {0x15225d7cb700} WARNING: Document 69847794EB607DF271799448950874D6 truncated

< Age: 1548199
< Proxy-Connection: keep-alive
<
{ [data not shown]
 18  131M   18 23.9M    0     0  23.7M      0  0:00:05  0:00:01  0:00:04 23.8M* transfer closed with 113170515 bytes remaining to read
 18  131M   18 23.9M    0     0  23.8M      0  0:00:05  0:00:01  0:00:04 23.8M* Closing connection #0

curl: (18) transfer closed with 113170515 bytes remaining to read

If this is still an issue please reopen.


No sensor.p2000

I installed the addon.
When in debug mode, I see P2000 messages come in (in the logs}, but I don't have the sensor.p2000 also no aensor.p2000_rtl_sdr
I only have the entity "update.p2000_rtl_sdr_update".
How can I "read" the P2000 messages, similair as the HACS P2000 addon, which uses the online p2000 messages?

Already found the issue.
MQTT broker was not properly configured


The page for adding a payment card does not open during transfer owner flow

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.58-4
Reproducible in staging?: Y
Reproducible in production?: Y
Found when validating PR: https://github.com/Expensify/App/pull/39035
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:

Log in to the App
Open paid workspace where you are an admin but not an owner
Go to the members screen
Press on the owner member
Press the Transfer owner button

Expected Result:
The page for adding a payment card opens during transfer owner flow
Actual Result:
The page for adding a payment card does not open during transfer owner flow
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/2056edc1-1407-430c-8c44-ccb873f1919c

View all open jobs on GitHub

We think this issue might be related to the #collect project.

CC: @burczu @luacmartins

Hmm did this user have a credit card on file already?

Bump @izarutskaya

I can see that the admin email is on the [applause.expensifail.com](http://applause.expensifail.com/) which is not billed, so won't trigger that flow and this is expected. @isagoico is working on the correct test steps here. Gonna close this one.


Merge Spring Cloud Azure 5.2.0 release branch to feature/spring-boot-3

Description
Merge Spring Cloud Azure 5.2.0 to feature/spring-boot-3
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
spring-cloud-azure-core


Using request.host in expressions for metrics is problematic at ingress gateway

Bug description
In https://github.com/istio/istio/pull/16892, we added request.host to the expression for destination_service labels. This was added as a fallback for cases when destination.service.host would not be set (pass-thru, blackhole, NR).
In theory, this is a nice idea. However, this is problematic at ingress, as the Host header can be set to arbitrary values.
Example of sending such a request:
curl --verbose --header 'Host: %22%3E%3Cscript%3Ealert('Qualys_XSS_Joomla_2.5.3')%3C%2Fscript%3E' <gateway ip>/no-route
This results in metrics with a destination service label containing junk -- some of it potentially harmful.
Example from Prometheus:

This is problematic for a number of reasons:

allows arbitrary explosion of cardinality of metric, as bad actors could send an unending stream of requests with all different Host headers
pollution of the service variables in grafana dashboards
potential XSS, etc., when rendering metrics with bad request.host

Expected behavior
Arbitrary NR traffic at ingress should not be able to pollute istio generated metrics with junk destination_service labels.
Either we should set destination.service.host to be "BlackHole" or similar OR we should exclude request.host from the expression for destination_service in configuration for ingressgateway (or a third, better option that someone may have).
Steps to reproduce the bug
Install Istio, have a gateway for wildcard host on port 80. Have a virtual service with an exact match route and nothing else. send traffic to gw not matching the route with a host header with junk info. observe results.
Version (include the output of istioctl version --remote and kubectl version)
1.4.0-beta.2, but any version of istio with the linked PR is affected.
How was Istio installed?
helm template
Environment where bug was observed (cloud vendor, OS, etc)
GKE

/cc @bianpengyuan @nrjpoddar @mandarjog @howardjohn

Compounding this issue, our grafana dashboards render destination_service labels directly as variables for individual dashboards.

For the grafana issue, a short-term workaround is to replace all service templating as follows:
replace: label_values(destination_service)
with: query_result(sum(istio_requests_total{source_app!="istio-ingressgateway"}) by (destination_service) or sum(istio_tcp_connections_closed_total{source_app!="istio-ingressgateway"}) by (destination_service))
and add a regex of {destination_service="(.*)".*
I'll want someone to double-check that, however.

  As we don’t use ingress gateway (we use Nginx) this isnt much of a concern for us either as random external hosts won’t get to envoy.
I would ask that you at least make the feature optionally enabled so the operator can make the call.

@douglas-reid IIUC, the issue is only in ingress gateways when you have non-wildcard host matching in Gateways and VirtualService, and for any non-matching host traffic, the blackhole cluster is hit you can have a metric cardinality explosion due to random internet traffic host getting populated in destination service label.
It’s very easy to set destination service label to BlackHoleCluster only for ingress gateway but leave it as is for sidecars like you suggested. This means for any outbound traffic from the mesh sidecars we still capture the host header @Stono. I can that in today before 1.4 goes out.
Based on our conversation yesterday Doug, you were saying that we never capture inbound traffic metrics for ingress gateway, isn’t this inbound?

I believe this is happening at ingress when traffic does not hit BlackHole cluster but is 404ing as well  I will double check the config and add more details here later.

You might be right, does ingress gateways even have a concept of BlackHoleCluster?  Afaik ingress gateways just return a direct response of 404 for non matching traffic.

Gateways do not have a black hole cluster. So these are real 404 NRs.

For v1 Mixer this is a purely configuration issue.
@Stono you can set the Mixer rule to include the host header fallback. That way we can remove it from 1.4. Is that ok for you ?

@mandarjog I agree, we can update the default config to be this:
destination_service: destination.service.host | conditional(destination.service.name == "", "unknown", request.host)

Either that or use response_flag == NR

Ok, I will send a PR soon after verifying configuration changes work and we can cherry-pick in release-1.3, 1.4 branches.

@mandarjog as long as there is a way to get the host header for BlackHoleCluster I'm not fussed about the implementation.
I (and multiple) people tweeted about this feature and its value - so please make sure you clearly document how to keep the capability for those who are, or want to use it!

I (and multiple) people tweeted about this feature and its value - so please make sure you clearly document how to keep the capability for those who are, or want to use it!

Don't worry, you won't lose this functionality. :)


GlibcRequirement.system_version: Use Version::NULL [Linux]

Return Version::NULL when unable to identify the host's
version of glibc rather than emitting an error.
Alpine Linux uses musl libc rather than glibc.
The return type of GlibcRequirement.system_version was String and is now Version.

I plan to merge this PR after 1.3.2.


Catch up with the Haskell ecosystem, fix CI

I noticed that the current CI does not work.  CI hangs at the stack build of basement, which is a dependency of pandoc that is no longer needed in the latest releases of pandoc, starting 2.16.  However, pandoc-citeproc, which is a dead end by now, requires pandoc < 2.15.
Maybe progress could be made by getting rid of pandoc-citeproc, used here:
https://github.com/plfa/plfa.github.io/blob/a798dc6a76ced81fc3fbb869861d010423e30ccb/hs/Main.hs#L364-L374
Called e.g. here:
https://github.com/plfa/plfa.github.io/blob/a798dc6a76ced81fc3fbb869861d010423e30ccb/hs/Main.hs#L235-L237
It is claimed that pandoc-citeproc is obsolete, but I could not find a drop-in migration guide.  Maybe it is as simple as passing the --citeproc option to pandoc-2.18.
Maybe I can help with fixing the CI, if getting some guidance...

Thanks, Andreas. Wen is in charge of CI. She's had problems maintaining it because of RSI, and I expect would be glad to have assistance.

I put a draft PR at

#652

Fixed in HEAD


Is there an easy way to detect a click on a FloatingActionsMenu?

Setting an onClickListener and onTouchListener doesn't do anything because I'd assume the touch is consumed.

Have you checked the onMenuCollapsed/onMenuExpanded callbacks from OnFloatingActionsMenuUpdateListener?

@chalup nope! Thanks.


KubePodCrashLooping alert stopped working

What happened?
With one of the recent updates, the KubePodCrashLooping alert stopped working.
Affected rule: https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/alerts/apps_alerts.libsonnet#L15
Did you expect to see some different?
The alert works as expected, if only the first part is evaluated by Prometheus.
Example:
increase(kube_pod_container_status_restarts_total{job="kube-state-metrics",namespace=~".*"}[10m]) > 0

How to reproduce it (as minimally and precisely as possible):
See https://github.com/prometheus-community/helm-charts/issues/1170
Commit, that introduced this change: https://github.com/kubernetes-monitoring/kubernetes-mixin/commit/03ea1efcb7f8029db148cc4632df1972ae0b7f80#diff-c511c672e0359c4c2fbe255e8cc894caf1c05b8f3a0db74edc1c38e797e23afc

Sorry, I opened this issue in the wrong repository.


Updating colorbar norms

Currently in the default colorbar json file we have a max/min range only. This assumes a linear scale. However, for some variables a log scale is more appropriate, or specific levels. Therefore norms need to be defined in the json as we use pcolormesh by default for the spatial plotting.

Two questions:

Can the norms be calculated from the levels?
Do we want to be using contour plots instead of pcolormesh for variables with descrete levels.

Do we always want this?
Do we make it automatic?


Update for 1.19.1 + add Gradle

There was probably a way to do this without dropping support for < 1.19.1 but I don't know how to do that LOL

Sakura Blossoms already supports 1.17.X, 1.18.X, 1.19.X, and any future Minecraft versions that do not change the spore blossom's particles. Simply download the latest release's JAR file (currently v1.0.2) and place it in your "mods" directory.
https://github.com/luavixen/SakuraBlossoms/blob/4aa14f8e83e292f7ca9babe7eab563f8f1fbe76c/src/main/resources/fabric.mod.json#L7-L11 Note the use of ">=" (equal or greater) next to the version numbers, as long as your Java/Minecraft/Fabric versions are 16/1.17.0/0.11.0 or greater respectively then the Sakura Blossoms will work.
I haven't updated the compatibility listings on CurseForge or Modrinth but that's just laziness on my part, I'll go do that now.


Use quantity library and optional types once 1.28 reaches EoL

What would you like to be cleaned:

We can remove the validation functions implemented for ClusterQueue  in fields with resource.Quantity type.
Additionally, we can shorten some rules that use the macro has() to check an optional field exists.

Why is this needed:

Since Kubernetes 1.29, we can use Kubernetes quantity library to validate fields of resource.Quantity type.
Likewise, we can rewrite some rules to make them more concise using CEL optional types.

Discussion:

https://github.com/kubernetes-sigs/kueue/pull/1972#discussion_r1565962705
https://github.com/kubernetes-sigs/kueue/pull/2008#discussion_r1576665882

/remove-lifecycle stale

/remove-lifecycle stale