python3Packages.mypy: 0.812 -> unstable-2021-11-14

Motivation for this change
mypy 0.900 introduced a breaking change and no longer ships types with it https://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html .
We need a patch to allow loading types via sys.path in packages that use mypy. All hunks of the patch only apply on commits after the latest release which is why I decided to fetch the latest commit of mypy due to no time for backporting that patch.
The tomli update is needed to resolve an infinite import recursion in their type hints. https://github.com/hukkin/tomli/blob/master/CHANGELOG.md#122
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

This is too late for 21.11.

Is the idea to target this on 21.11 release or leave this to the next one?

I personally will make no effort to get this into 21.11. According to https://discourse.nixos.org/t/lets-have-a-great-21-11-release-cycle/15262/3 this will land after the branch off which I am happy with.


search: how to deal with ES analyzers

When indexing content in different languages it would be nice if appart from text the indexes use the language specific one. However, this is a challenge to set up... One possibility is through the Cookiecutter, by asking the language and templating the index (but they are in another module).

I'm closing this issue. It should be dealt with via an RFC, as it likely involves e.g. using Elasticseach DSL's Document class to create indexes.


[8.x] Track exceptions and display them on failed status checks for dx

This feature is inspired by feedback from @jessarcher and my own poor experience with testing endpoints that throw unexpected exceptions.
This problem typically arises when asserting against the status of a test response and receiving a failed assertions indicating the expected status code did not match the actual status code of 500. You must then examine your logs to hopefully determine what the exception message was. Or, you can call $this->withoutExceptionHandling()->get(...) to disable exception handling for the test.
Ideally, Laravel would just show you the exception. This PR takes care of that by tracking exceptions while running unit tests and then displaying the exception failed status checks where the actual status code is 500.

It's uncountable how many times I've wanted this.
Great job! 🎉

👌

To all those $this->withoutExceptionHandling() that hasn't been removed and managed to pass the code review: you're in danger.

In the spirit of removing the need to add temporary debugging code, I wonder whether there is also an opportunity to improve the output on an unexpected validation exception.
Currently I get this a fair bit:

Even without exception handling (which this PR removes the need for :grin:), the output is no more helpful:

So I end up needing to add a temporary $response->dump() to see the actual validation errors.
If this sounds useful, I'm happy to have a go once this PR is merged. I'm thinking if it's a JSON request then it should show the errors as JSON, otherwise perhaps just a var_export().

@jessarcher sounds like a good idea


[1.2] Fix request infinite loop

Backport of #15833 to release-1.2

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: howardjohn
To complete the pull request process, please assign nmittler
You can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

pilot/OWNERS
pkg/OWNERS
tests/e2e/tests/pilot/OWNERS
tests/integration/pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/ok-to-test

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: howardjohn, silentdai
To complete the pull request process, please assign nmittler
You can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

pilot/OWNERS
pkg/OWNERS
tests/e2e/tests/pilot/OWNERS
tests/integration/pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Keycloak cleanup

Remove keycloak as a way to logging to synapse
Remove

operator
every keycloak related volume
synapse extra config and configmap
keycloak related env variable (template file and github env)

Please add your planning poker estimate with Zenhub @ad2ien


Multi channel image -- ERROR tuple index out of range

Hello,
I was wondering how you are supposed to load a multi-channel image in the plugin.
Problem

If I load a multipage tif with two channels and python dimensions (C, Y, X), the plugin
gives the error ERROR tuple index out of range
If I set the stitch threshold > 0  or 3D on the image is processed as  Z-stack, which is wrong.

I conclude from this  that the plugin always think that an image with more than 2-dimension is a Z-stack.
What I tried

Napari expects dimensions (T, Z, C, Y, X) and I tried to add more dimensions. This did not help. In fact to display the image as multi-channel you need to split stack.

I converted in Fiji the image to a png/RGB. The image gets dimension (Y,X, C) with 3 channels. Napari displays the image as multi-channel without having to split stack. Cellpose can process the image. This solution is not good as converting yet in another format is not convenient and is something you try to avoid in image processing due to loss of information. If you try to make your image RGB in napari/python it is quite of a mess. You have to add an additional channel , ....

Possible solutions
Specify the channels to use directly without going through the image layer. The plugin should understand different dimensions. In the cellpose GUI this works quite well.

Thanks,
are you saying that for a standard CXY image it is not possible to use the napari cellpose plugin except by converting it to a different order image? I have not tried to change the order of the numpy array in python. Do you know if this works (no conversion to RGB).

you don't need to convert it, you need to label it in the napari GUI with a c. we can add this into the widget in the future


Update README / .gitattributes

Just fixes up a few things :).

Merge commits to prevent your history from getting screwed up. :smile:


gpg installation broke after trying to install pinentry-mac

[x] Confirmed this is a problem with running a brew command and not brew installing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/new

[x] Ran brew update and retried your prior step?

[x] Ran brew doctor, fixed all issues and retried your prior step?

[x] Ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

I was trying to run
echo $PASSPHRASE | gpg --passphrase-fd 0 ...

but it failed with an error about "Inappropriate ioctl for device". I found online some comments about a similar issue that suggested installing pinentr, so I ran:
brew install pinentry-mac

What happened (include command output)

Homebrew tried to auto-update but failed:

..snip...

After this I could not run gpg, the command was not found.
Now Homebrew wants me to install Xcode command line tools to continue:

What you expected to happen

I expected Homebrew to still be able to run gpg after brew install pinentry-mac
I did not want to update all my Homebrew stuff just to install this program, at least not without warning. I prefer to keep all my programs at their current working versions, and not have to deal with my software breaking due to unwanted updates.

Step-by-step reproduction instructions (by running brew commands)

I don't think this is easily reproducible since you have to have an outdated Homebrew installation.

From the issue template:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you do not read fill out the issue template repeatedly you will be blocked from ever submitting issues to Homebrew again.

If you add the necessary information this issue may be reopened.

I don't see what I missed? This is not a feature request, so I didn't fill out the feature section. Could you tell me what was missing?

Okay, I see what was missing. I pasted the list back.

Ran brew config and brew doctor and included their output with your issue?

Can you paste this please?

Sorry. I pasted that in the issue now.
I got gpg working again, by running xcode-select --install and then brew upgrade and then brew unlink gpg && brew link gpg. Not sure if the brew update information is still relevant as I ran it now after getting gpg back into working order.

Glad you got it sorted.


Object.assign ES5 incompatibility

I saw you are using Object.assign on test_enigma.js, just be aware that this is a ES2015 feature and may not be compatible in some browsers or NodeJS versions.
More info: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Browser_compatibility

I noticed it by running your tests, I received these errors (because of my NodeJS version)
  1) Rotor Models Rotor I expect wiring table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertWiringTable (test_enigma.js:234:39)
      at Context.<anonymous> (test_enigma.js:257:13)

  2) Rotor Models Rotor II expect wiring table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertWiringTable (test_enigma.js:234:39)
      at Context.<anonymous> (test_enigma.js:267:13)

  3) Rotor Models Rotor III expect wiring table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertWiringTable (test_enigma.js:234:39)
      at Context.<anonymous> (test_enigma.js:277:13)

  4) Rotor Models Rotor IV expect wiring table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertWiringTable (test_enigma.js:234:39)
      at Context.<anonymous> (test_enigma.js:287:13)

  5) Rotor Models Rotor V expect wiring table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertWiringTable (test_enigma.js:234:39)
      at Context.<anonymous> (test_enigma.js:297:13)

  6) Reflector Models Reflector B expect reflection table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertReflectionTable (test_enigma.js:350:47)
      at Context.<anonymous> (test_enigma.js:365:13)

  7) Reflector Models Reflector C expect reflection table be correctly defined:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at assertReflectionTable (test_enigma.js:350:47)
      at Context.<anonymous> (test_enigma.js:372:13)

  8) Machine encode expect double stepping anomaly exists:
     TypeError: Object function Object() { [native code] } has no method 'assign'
      at Context.<anonymous> (test_enigma.js:468:44)

56378b42e2963060e1076becdd9a0301c1a23486 addresses this issue. Could you please test it for me?

Surge I can! I will test it as soon I get my hands on a computer

It worked!

Great, thanks!


Switch to automatic ruby versioning

https://trello.com/c/ADvk7Bbx/9-🔮-make-it-stick
Previously we used hard-coded ruby base images, which makes it harder to
upgrade ruby versions in stages across the platform; some services were
also using a different ruby version to the one specified in their repo.
Using service-specific base images also makes it harder to consolidate
their Dockerfiles, since different apps need different versions of Ruby.
This replaces the ruby base image with 'buildpack-deps' (the one 'ruby'
is based on) and installs rbenv to automatically manage ruby versions
for each app as part of the make/setup process. Doing this comes at the
cost of an increased and potentially more volatile local setup time, but
also a more familiar 'rbenv install' experience.

This is a good solution to https://trello.com/c/1PBngwbn I guess! Any idea how much slower setup will be with this?

@thomasleese indeed. I've actually made one of the changes - we now have 'Dockerfile.govuk-base' - in order to avoid CI trying to treat the repo as a Docker thing we need to deploy.
The card could be a good place to iterate from. https://trello.com/c/1PBngwbn/53-allow-us-to-easily-upgrade-rubies


Activate CI for mpris module

Activate ci for mpris module
mpris: fix build errors

I don't think the ci container automatically rebuilds when those files are changed? any reason this isn't done with a workflow in this repo?

I'll do it on my side, thanks for the update!

@Alexays maybe we could have something like:
name: CI containers

on:
  push:
    paths:
      - 'Dockerfiles/*'
  pull_request:
    paths:
      - 'Dockerfiles/*'

jobs:
  build:
    strategy:
      matrix:
        distro:
          - alpine
          - archlinux
          - debian
          - fedora
          - opensuse
          - gentoo

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2

    - name: Build and push
      uses: docker/build-push-action@v3
      with:
        context: Dockerfiles
        file: ${{ matrix.distro }}
        push: ${{ github.ref == "master" }}
        tags:
        - docker.io/alexays/waybar:${{ matrix.distro }}
        - ghcr.io/alexays/waybar:${{ matrix.distro }}


Design a way to expose internal error states for debugging

As is appropriate for libudpard, the error system exposed to applications is very simple. There are times, however, when deeper introspection would be helpful. For example, when first integrating with a system the integrator is likely to make a few mistakes that are atypical for a healthy system but which are common misconceptions or just dumb mistakes caused by the tendency of many to read variable names instead of documentation. There are not many of these conditions in our simple code base which makes it undesirable to design a normal error scheme to support this use case. One idea is to provide a -DDEBUG enabled structure that can store this type of error data when enabled (e.g. sort of a posix errno scheme). Other ideas are welcome but the end result would be to make libudpard a bit more friendly to new users.

Scott's comment from #38

I don't know. Perhaps I'm overcomplicating things but there's just a lot of great error information that gets lost in this code I want to capture somehow. Perhaps just an errno scheme where we never require the user to use the static error data (i.e. we always provide a return value UDPARD_ERROR_ when needed) but we can stuff our data into that field if anybody cares?

I like the errno idea. We can define a global thread_local uint_fast16_t g_udpard_diagnostic_line and update it from anywhere within the library unless UDPARD_NDEBUG is defined. The user is free to leverage this information or ignore it. Instead of maintaining a separate set of diagnostic codes, we could try this radical way of using the line number:
if (is_disaster)
{
    g_udpard_diagnostic_line = __LINE__;
}

Since this is not for production use, the __LINE__ numbers don't have to retain consistency across releases; their advantage is that they immediately provide visibility of the context where the problem was observed.
Up until now I believed this to violate MISRA C:2012 but looking at the standard now I don't see anything that would prohibit a conditionally provided global thread-local variable. Am I missing something?


Use Patroni API to set bootstrap-only options.

Call Patroni API /config in order to set special options that are
ignored when set in the configuration file, such as max_connections.
Per https://github.com/zalando-incubator/postgres-operator/issues/297

Coverage decreased (-0.08%) to 11.208% when pulling d1b13eac7e95380b7fe493e2be50aa4f60a68611 on fix_max_connections into e09e62f259a7bf5ba10099cbf2fb52a5ab2c5d57 on master.

@zerg-junior I did fix some warning messages and comments per your review. Please, take another look.

:+1:

👍


Updating the code to say HTTPS instead of HTTP

Update that the calls are HTTPs

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

#sign-off


sync to live

Docs Build status updates of commit de06eea:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/develop-your-app/AppInstaller.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/dragonboard.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add adapter in Dockerfile and lunch it locally (or CI) for integration test

Hello everyone,
We need to run the adapter locally (or in CI) in order to run integration test.
Specifically the flow that we want to cover is apigateway invocation event -> web-adapter -> code
Specifically we want to test how the lambda receive the invocation message and how this is going to be handled by the adapter and the http framework below.
for example with a request like this
We are trying to test with the go-gin example
FROM golang:1.18-alpine AS build_base
RUN apk add --no-cache git
WORKDIR /tmp/gin

COPY . .
RUN go mod download

RUN GOOS=linux CGO_ENABLED=0 go build -o bootstrap .
FROM alpine:3.9
RUN apk add ca-certificates
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.1 /lambda-adapter /opt/extensions/lambda-adapter
COPY --from=build_base /tmp/gin/bootstrap /app/bootstrap

ENV PORT=8000 GIN_MODE=release
EXPOSE 8000

CMD ["/app/bootstrap"]

We are building the image as following and running with these commands
docker build -t gin-web-adapter-test:latest .

docker run -p <IP_ADDRESS>:8080:8000 gin-web-adapter-test:latest

However we see that in this way we run directly the code and not the layer that should be used for converting the invocation to the http request.
Thank you for you support 👍

Problem solved, gonna make a PR with the example to exaplain the dockerfile config :)
Thank you

As I see the web-adapter extension define here
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.1 /lambda-adapter /opt/extensions/lambda-adapter

is not executed locally since is an internal lambda mechanism
https://aws.amazon.com/blogs/compute/working-with-lambda-layers-and-extensions-in-container-images/
so how to run this in a CI/CD to run integration test? 🤔

Lambda Web Adapter is an external extension. Lambda service will automatically start it during function init.
You can use sam local start-api to simulate Lambda and API Gateway. It works in CI/CD as well.

HI @bnusunny thanks for the answer.
We don't use sam in our project. There is anyway to run the adapter in a docker container?
I see something similar have been attempted here
https://github.com/awslabs/aws-lambda-web-adapter/issues/19

I'm not familiar with testcontainer. Give me some time to look into it.
You don't have to simulate the Lambda execution environment for local dev/test. Test the gin app normally gives you the best local development experience.
For integration testing in CI/CD pipeline, it makes sense to simulate the Lambda execution environment. But some customers prefer to test against the real cloud services. They deploy the applications as real Lambda functions and run tests with them.

Hi @bnusunny, it would be great if you can take a look into it 👍
at the moment I've tried this approach but still the adapter seems is not executed.
FROM golang:1.22-alpine AS build_base
RUN apk add --no-cache git
WORKDIR /tmp/gin

COPY . .
RUN go mod download
RUN GOOS=linux CGO_ENABLED=0 go build -o main .

FROM alpine:latest
RUN apk add --no-cache bash
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.2 /lambda-adapter /opt/extensions/lambda-adapter
ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/bin/aws-lambda-rie

RUN chmod 755 /usr/bin/aws-lambda-rie

COPY ./entry.sh /
RUN chmod 755 /entry.sh

COPY --from=build_base /tmp/gin/main  /main

ENV PORT=8081 READINESS_CHECK_PORT=8081 READINESS_CHECK_PATH=/ping

ENTRYPOINT ["/entry.sh"]

#!/bin/sh

# Start the first process
./main &
status=$?
if [ $status -ne 0 ]; then
  echo "Failed to start my server: $status"
  exit $status
fi

if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
  exec /usr/bin/aws-lambda-rie "$@"
else
  exec "$@"
fi

Plese let me know if you need any help with it!

your shell script doesnt start the main binary with the emulator
and the emulator expects a bootstrap file
so give one
then extensions start in a sandbox

Converting to a discussion


azure pipelines support

Azure pipelines always checks out in detached head state, so the GenericManager is not able to identify the branch, which leads to wrong conan channel

BTW, the predefined env vars are here: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops

Yes, unfortunately there is no AZUREPIPELINES env var, as for travis and appveyor. I use SYSTEM_TEAMFOUNDATIONCOLLECTIONURI as a replacement, but maybe it's not the best choice ?

Use what works for CPT. If SYSTEM_TEAMFOUNDATIONCOLLECTIONURI is working for Azure, let's keep it.


Make assignment from a mat(ptr,rows,cols) faster.

Merged in https://github.com/davisking/dlib/pull/2822

Quick question, why do we check for size!= 0 and that the stride fits the nc.
If we want to check the whole thing (which the second check suggest) should we not compare the whole size? instead of null check it.
And if thats for the user to check (which i dont think is dlibs philosophy) why do we check the second part at all?

Quick question, why do we check for size!= 0 and that the stride fits the nc. If we want to check the whole thing (which the second check suggest) should we not compare the whole size? instead of null check it.
And if thats for the user to check (which i dont think is dlibs philosophy) why do we check the second part at all?

It's because matrix_assign_default() has these preconditions (from dlib/matrix/matrix_assign_fwd.h):
            - dest.nr() == src.nr()
            - dest.nc() == src.nc()

So we know the sizes match already.  We just have to determine when we can use what kind of memcpy() from there.

ah perfect, thanks!

No problem :)


Rejected transaction with successful preview

There seems to be an issue with openLong on steth pools where a preview is successful, but the transaction itself is rejected with status == 0. To reproduce, run python scripts/local_fuzz_bots.py --steth --rng-seed 2405590. On this seed, here is the series of events that happened:

On block 36, we preview a call for openLong. The preview is successful and returns a bondProceeds amount.
We submit the transaction on block 36. The transaction gets rejected with status == 0. The submitted transaction advances the block to block 37.
We try previewing the call again on block 37, and the preview is rejected with InsufficientLiquidity.

We expect the preview on block 36 to fail.
Note that while this was tested with an explicit seed, this issue persists in fuzz testing regardless of seed.

Solved, the issue is that the preview on block 36 should be a preview to the pending block, as the preview technically is lagging behind a block.


sectiondiv element should accept child title OR default XSL should transform sectiondiv/data/title

Expected Behavior

When I author a sectiondiv, I expect to add a title for that.  I should be able to add a title element, but this is not allowed.  That title element should also be transformed by default XSL to an appropriate level heading in HTML output (for example)
Actual Behavior

In sectiondiv, a title element is not allowed, but I can add a data/title element.
In default XSL, sectiondiv/data/title is not processed to output.

Possible Solution

As a workaround, I use custom XSL to transform sectiondiv/data/title to output HTML heading based on the section/title template use:
<!-- Pass through to get sectiondiv title -->
	<xsl:template match="*[contains(@class, ' topic/data ')]" >
		<xsl:apply-templates/>
 	</xsl:template>

  <xsl:template match="*[contains(@class, ' topic/sectiondiv ')]/*[contains(@class, ' topic/data ')]/*[contains(@class, ' topic/title ')]">
	<!-- Add 1 extra for parent section -->
    <xsl:param name="headLevel">
      <xsl:variable name="headCount" select="count(ancestor::*[contains(@class, ' topic/topic ')])+2"/>
      <xsl:choose>
        <xsl:when test="$headCount > 6">h6</xsl:when>
        <xsl:otherwise>h<xsl:value-of select="$headCount"/></xsl:otherwise>
      </xsl:choose>
    </xsl:param>
    <xsl:element name="{$headLevel}">
      <xsl:attribute name="class">sectiontitle</xsl:attribute>
      <xsl:call-template name="commonattributes">
        <xsl:with-param name="default-output-class" select="'sectiontitle'"/>
      </xsl:call-template>
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>

Steps to Reproduce

In a DITA topic, add a sectiondiv
In the sectiondiv, try to add a title element (fails)
In the sectiondiv, add a data/title element (succeeds)
Using default XSL in DITA OT, transform the topic to HTML5 - the sectiondiv/data/title is not output

Copy of the error message, log file or stack trace

Environment

 XML Author 22.1, build<PHONE_NUMBER>

DITA-OT version:
Operating system and version:
(Linux, macOS, Windows)  Windows 10
How did you run DITA-OT?
(dita command, Ant, startcmd, oXygen, other editor, CMS, etc.)  oXygen
Transformation type:
(HTML5, PDF, custom, etc.)  HTML5

The sectiondiv element is not intended to be titled (none of the "div" elements in DITA are intended to be titled).
So your expectation is at odds with the intent of the spec.
Beyond that, putting  in  would, by definition of , have no default effect, because  (metadata container) is not rendered by default.
It looks like you have an information design problem that you were trying to solve by using DITA markup in a way it was not intended to be used.
The  element is titled but explicitly does not contribute to the title hierarchy represented by topics (either as defined in a map or by literal nesting of topics).
The only titled elements that can be used within  (or ) are  and , but those are probably not what you want either.
If you are looking to create a hierarchy of titles the only correct way to do that is with topics, either through maps (hierarchies of topicref/topichead) or through literal nesting within a single XML document.

Closing as feature request that goes against DITA spec. This can be implemented in a plug-in if needed.


Developer hook for setting private/public keys

Due to security reason, we normally store the sensitive information, such as private/public keys in environment variables, and not in the file nor database.
Are you able to extend the code to allow a developer to hook in to set the private/public keys?

Does Apache / Nginx read the public/private keys from environment variables?
If you provide a PR I will be able to review it and add this functionality to the WordPress plugin (and also on the SAML toolkit), but none of our customers required such feature.


Generating predictions using CellOT

Hi!
I wasn't able to find a way to generate predicted expression values using a trained CellOT model, do you have a script to do so?
Thanks,
Yan

In general, you can follow the code in the evaluation script (https://github.com/bunnech/cellot/blob/main/scripts/evaluate.py). Make sure that you are loading the right model, i.e., in case you use an autoencoder embedding, load both the trained autoencoder and the trained CellOT model. Also make sure that your configs are set correctly, i.e., the config file contains the correct path to the trained autoencoder. Then encoding the data is handled within the load_data function, i.e., specifically in this line. So your test data of interest need to be passed here. Once you loaded all your inputs including models and data, you transport your cells of interest into the perturbed state as done here, and lastly decode your predictions as done in this line.
Hope this helps!


windowLevel in attribute doesn't work

Describe the bug
Hello! I have a strange issue. I have a SwiftEntryKit's alert (from the xib) on the screen and then I display UIAlertController.
The issue is that UIAlertController shows bellow SwiftEntryKit's alert whatever Window Level I put in the attribute. (I've tested with normal, alert and status bar)
Attribute type - bottomFloat
iPhone (please complete the following information):

iOS Version: iOS 10, 11, 12
Xcode Version: 10.1
SwiftEntryKit Release: 0.8.6

Hi @Banck!
That's an interesting use case. I'll check this out and let you know the results.

Hi @Banck - are you trying to present UIAlertController, right?
If so, an alert controller is presented just like a regular UIViewController. It's in the context of a presenting view controller, (unlike the deceased UIAlertView which was presented in a top window, as far as I recall). Therefore, it's impossible to display the alert not in the context of a view controller unless you are willing to do modifications and display it - some ideas to bypass it:

Remove the entry and display it.
Use SwiftEntryKit's queue with a customized view controller that presents the entry after the previous entry is dequeued.
There is also this StackOverflow thread which I found pretty interesting.

Let me know your thoughts.

@Banck - In your particular case, I think the best workaround is using UIViewController as an entry and presenting the UIAlertController inside it instead.
I'm closing it since it's not a library issue (see my previous comment for explanation).


Type checking support for PyRight

Hi,
Given the following type
@strawberry.type
class Person():
   id: int
   name: str

PyRight throws an error on Person(3, "Rob"): Expected no arguments to Person Constructor. The way to get around this is to create an __init__ function. However, when classes are decorated with @strawberry.type the fields within the Strawberry type cannot be selected. If an __init__ is provided, the following gql requests will fail
person {
   id
   name
}

With AttributeError: 'Person' object has no attribute 'id'. What is the preferred way to create initializers for Strawberry Types?

I want to add support for PyRight here: https://github.com/strawberry-graphql/strawberry/pull/922
but I wanted to get in touch with PyRight's maintainer to get some feedback first
Anyway, the error from PyRight is a false positive. You should be able to use the constructor provided by default by Strawberry :)

PyRight support has been added in #922 🎉, I'll close this issue for now. Feel free to reopen if needed :)


SQL Database Managed Instance does not support Windows authentication, the contents of related documents need to be updated.

SQL Database Managed Instance does not support Windows authentication, the contents of related documents need to be updated.
In this document it shows Azure SQL Database Managed Instance connector supports “Copying data by using SQL or Windows authentication.” But actually, I did a verification, it is shows that SQLMI does not support Windows Authentication. I no method connect SQL MI through Windows Authentication method.
I try to create Linked Service in ADF for SQL Database Managed Instance and On-premises SQL Server use the same way, test results list below:
• Self host Linked Service for SQL MI on VM, SQL Authentication test connection is successful.
• Self host Linked Service for On-premises SQL Server, SQL Authentication test connection is successful.
• Self host Linked Service for SQL MI on VM, Windows Authentication test connection is Fail.
• Self host Linked Service for On-premises SQL Server, Windows Authentication test connection is successful.
Another, I found another document “https://docs.microsoft.com/en-us/azure/sql-database/sql-database-control-access” provided the message that Azure SQL Database and SQL Data Warehouse support two types of authentication “SQL Authentication” and “Azure Active Directory Authentication”, and Windows authentication is not mentioned in this document, that mean Azure SQL Database and SQL Data Warehouse do not support Windows authentication. After actual verification, it is confirmed that Azure SQL Database and SQL Data Warehouse actually not support Windows authentication. But SQL Database Managed Instance is not mentioned in this document. SQL Database Managed Instance also is created in Azure, looks like Windows authentication is not supported by all of the database in Azure.

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

ID: 8621bab1-64a6-95fd-5394-bf6c87d33a96
Version Independent ID: 63ed8d70-333d-820c-c103-aa49005ba15a
Content: Copy data to and from Azure SQL Database Managed Instance by using Azure Data Factory
Content Source: articles/data-factory/connector-azure-sql-database-managed-insance.md
Service: data-factory
GitHub Login: @linda33wj
Microsoft Alias: jingwang

@v-yanfw Thanks for bringing this to out notice. I am assigning the issue to the content owner to review and update as appropriate.
@linda33wj Can you please take a look at this ?

@ChiragMishra-MSFT @linda33wj Hi Linda, I'm a PM on Managed Instance. Client's statement is correct, Managed Instance never supported Windows authentication. Could you please correct this? Thank you.

Thanks all for the feedback. Yes it's correct that SQL MI and this connector accordingly don't support Windows auth, I've fixed the doc. Related, it's on our radar to fix the authoring UI (SQL MI linked service creation) as well.
#please-close

Hi Linda,
Thanks for your reply. For the document https://docs.microsoft.com/en-us/azure/data-factory/connector-azure-sql-database-managed-insance “Copying data by using SQL or Windows authentication.” Had been updated to “Copying data by using SQL authentication.”.
Now I have another question that I need your help to confirm: Does Azure SQL Database Managed Instance support "Azure Active Directory (Azure AD) Application token authentication with a service principal or managed identities for Azure resources."?
I find the information in the following two documents, Copy data to or from Azure SQL Database/Azure SQL Data Warehouse by using SQL authentication and Azure Active Directory (Azure AD) Application token authentication with a service principal or managed identities for Azure resources in Azure Data Factory, so I want to know if Azure SQL Database Managed Instance support "Azure Active Directory (Azure AD) Application token authentication with a service principal or managed identities for Azure resources."? If it support this service principal authentication method, how can we implement this authentication method when create linked service in ADF for access Azure SQL Database Managed Instance?
https://docs.microsoft.com/en-us/azure/data-factory/connector-azure-sql-data-warehouse
https://docs.microsoft.com/en-us/azure/data-factory/connector-azure-sql-database
Thanks
Yanfang
From: Linda Wang<EMAIL_ADDRESS>Sent: Tuesday, June 11, 2019 1:41 AM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Yanfang Wang (Chinasoft International<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] SQL Database Managed Instance does not support Windows authentication, the contents of related documents need to be updated. (#32662)
Thanks all for the feedback. Yes it's correct that SQL MI and this connector accordingly don't support Windows auth, I've fixed the doc. Related, it's on our radar to fix the authoring UI (SQL MI linked service creation) as well.
#please-close
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F32662%3Femail_source%3Dnotifications%26email_token%3DAMHZDLRXQX4BOU3GISTVAP3PZ2G2LA5CNFSM4HSYESFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKSXDQ%23issuecomment-500509582&data=02|01|v-yanfw%40microsoft.com|b005a423ec7a4ae3ab7208d6edcac91d|72f988bf86f141af91ab2d7cd011db47|1|0|636957852608373653&sdata=RAIADTNN5a%2BMW7O%2FCOw73%2BKqEN5nGKKOi6BOOS2tLyY%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMHZDLWO2S7XLO6R7E5S6R3PZ2G2LANCNFSM4HSYESFA&data=02|01|v-yanfw%40microsoft.com|b005a423ec7a4ae3ab7208d6edcac91d|72f988bf86f141af91ab2d7cd011db47|1|0|636957852608383652&sdata=QUlI3YKC8g2XxXqc%2FJce%2Bb%2B2E4nSeTNJ5jvx3Ut9jzo%3D&reserved=0.

@muralidar44 -- Windows Authentication is not supported feature for Managed Instance, it is not implemented. Please review the officially documented list of supported and unsupported features here: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features. Thank you.
#please-close


mdOnSelect method does not run if no selection

I need to execute a function when no row is selected, but the method in md-on-select = "mymethod" is not triggered, this is triggered only when a row is selected. Any solution?

There's a deselect callback, md-on-deselect, you could use to check if the number of selected items is zero.

thanks, it's just what I needed.


Debian patches

Pull request for the Debian patches I submitted as issues earlier this week.  It looks like Issue #1 has already been applied.  The patch for Issue #2 is included in this pull request.  I have not included any patch for Issue #3, because the solution proposed in that issue is Debian-specific.  It's  more of a placeholder to show one a possible way of making the current codebase reproducible.  I don't need any specific action on these patches, since they're all already applied in Debian anyway.

fixed w/intmax_t in commit add92bc8f2061700872f770ef99c7b9c8beb028d


Fix ctkDoubleSpinBox support for sizeHintPolicy with Qt5

See See https://issues.slicer.org/view.php?id=4633

cc: @finetjul


LanguageServer does not work for me in Visual Studio Code

(👍  for you work btw!)
I got the LanguageServer and sourcekitten compiled and moved both to /usr/local/bin. Using Visual Studio Code and hover over "anything" I now get:
[Error - 8:35:43 PM] Request textDocument/hover failed.
  Message: There was an error communicating with SourceKit.
  Code: -32097

I also get hovers which look like this:

Any Ideas?

Well it doesn't seem like its anything since you know you can see the hover value in the screenshot you provided! 🙃
I can explain both behaviors though.
The easy one to explain is the screenshot. That is the raw value provided back by Swift (read: SourceKit). Obviously it is XML and I don't do any translation of it. The reason is pretty straight forward. Unfortunately, the structure of the XML is not documented anywhere (that I know of) so I'd have to reverse engineer it to figure out how to display it. It would be awesome if SourceKit returned the Markdown instead of XML. Alas it does not.
The error your seeing is less easy to explain but is actually the one that I am working actively to solve. In short, you are likely experiencing those because you didn't save 1 or more documents before hovering. The hover commands, as currently written, do not support interacting with non-saved documents.

I meant any symbol with "anything". I get the error on some (functions, methods, parameter names) and the xml on others (variables mostly). The files are all saved.

Could you attach a small sample project that shows the issue? Because I've not experienced that in my tests locally.

Not sure what you mean. This happens for me with every file. I don't have a project.
func dumpThem(_ all: Any...) {
  for elem in all {
    switch elem {
      case let i as Int:
        print("Number: \(i)")
        break

      case let s as String:
        print("String: " + s)
        break

      default:
        print("Other: \(elem)")
    }
  }
}

dumpThem(1 as Any, 2.0 as Any, "3" as Any)

Thank you for that code snippet. That was the first time I had encountered those specific problems.
I've pushed up a change onto master that should resolve those issues.
Again thank you for the report!

I am having same problem with Visual Studio Code using the latest HIE.

@razvan-panda can you provide a code snippet?
Also, what is HIE?

HIE is Haskell IDE Engine https://github.com/haskell/haskell-ide-engine
can you provide a code snippet? I can but not sure if relevant for this ticket at all, the errors was not specific to any code from what I seen. I just cloned built and opened: https://github.com/snowdriftcoop/snowdrift and the error was thrown in the console


signals-react doesn't work in react production build

The basic example is not working on production build in react:
const count = useSignal(1);
return (

   {count}
   <button onClick={() => count.value++}>INC</button>

);

Versions:
    "@preact/signals-react": "^1.0.2",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",

Building with vite 3.1.0

@marvinhagemeister I wonder if we missed the publish for the react integration too, like in #140?

@developit Can confirm that it's not a bad publish, but a bug.

I am having this exact same issue.
import { effect, signal } from '@preact/signals-react'

function Test() {
  const foo = signal<boolean>(false)
  effect(() => {
    console.log(foo.value)
  })

  const counter = signal(0)
  effect(() => {
    console.log(counter.value)
  })

  return (
    <>

{foo.value ? 'true' : 'false'}

        <button
          className="bg-gray-400"
          onClick={() => {
            foo.value = !foo.value
          }}
        >
          invert
        </button>

{counter.value}

        <button
          className="bg-gray-400"
          onClick={() => {
            counter.value += 1
          }}
        >
          increment
        </button>

    </>
  )
}

export default Test

with the same package.json as the original post.
On invert, the console logs:
true
false
0

On increment, the console logs:
1
false
0

any progress?

For what it's worth I haven't found ReactCurrentOwner to be dependable. In my testing in production it seems to always be set to the root node, and in React Native it's even less dependable. So for Legend-State's implementation I used only ReactCurrentDispatcher to track lifecycle, which does work in production and React Native.
I'm interested to see if you're able to find a workable solution with ReactCurrentOwner (or something else) but it may not be possible.

@jmeistrich are you ending up with two copies of React?

@developit No, I don't think so. I've been testing in three different production apps (React 17, 18, React Native) and I don't see consistent ReactCurrentOwner behavior. In production sometimes it's set to the root node, sometimes it's always null (I don't remember which was which).
But the solution I ended up with was to use only the dispatcher to track lifecycle, mapping to the rerender function rather than the owner, and that is working great. I submitted a PR to use a similar solution for Signals: https://github.com/preactjs/signals/pull/215

This is fixed by the fantastic PR from @jmeistrich #215  🎉


[BUG] Bug with updating content when autofocus={false}

Has this bug been raised before?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Description
It seems it happens because SSR issues
Steps to Reproduce
No response
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
No response

Fixed in v4.9.0

Fixed in v4.9.0


Commander: fix rc override threshold scaling

Describe problem solved by this pull request
RC override is broken on master since https://github.com/PX4/Firmware/pull/15495
Describe your solution

Fix RC override threshold scaling
Improve parameter description for threshold
Lower the threshold a bit according to my testing

Test data / coverage
SITL tested with Joystick input.

I checked and the problem doesn't exist on 1.11: https://github.com/PX4/Firmware/blob/release/1.11/src/modules/commander/Commander.cpp#L1896


druid Quantiles Display

Issue: https://github.com/airbnb/superset/issues/2344

@mistercrunch ok，the travis-ci is passed. But it's not so easy to write the druid post-agg unit-test


If content-type explicitly something other than json don't try to parse body as json

We've periodically seen an issue where we get malformed error response body received errors from the knock client, which look like they're triggered by Bad Gateway's that returning a non-json response (probably html?). This sets it up so that if there is a content-type and its not explicitly application/json - the client does not try to parse the response as json.

Hi @pandemicsyn, thanks for submitting this PR! I've made some small tweaks:

added some tests
removed res.Header.Get("Content-Type") != "". curious what your reasoning for including it was?
reverted the change to existing error. I consider this a subtle breaking change - very unlikely anyone will encounter it but we try to avoid it.

Are you good with these changes?

Hi @pandemicsyn, thanks for submitting this PR! I've made some small tweaks:

added some tests
removed res.Header.Get("Content-Type") != "". curious what your reasoning for including it was?
reverted the change to existing error. I consider this a subtle breaking change - very unlikely anyone will encounter it but we try to avoid it.

Are you good with these changes?

@vlymar these look great thanks!


submit first version

Great start, it looks like your submission is have some issues though.  I'm getting an error saying args.valid() is not a function.  Here are some hints:

You should move your Input.prototype.valid outside your constructor, though this didn't completely solve the problem.
On line 44 of input.js you are returning a string.  Your Notes() constructor expects an Input() object as a parameter, so it appears this is causing some issues.  If you do not pass the Input object to Notes, you can't run args.valid (line 12 of notes.js) and your application won't execute properly.  With the existing return statement in your input.js, it looks like a string gets passed to Notes() and causes an error.

Your test setup looks good.  Just cleanup the logic and you can resubmit for full points!

Great start, it looks like your submission is have some issues though. I'm getting an error saying args.valid() is not a function. Here are some hints:

You should move your Input.prototype.valid outside your constructor, though this didn't completely solve the problem.
On line 44 of input.js you are returning a string.  Your Notes() constructor expects an Input() object as a parameter, so it appears this is causing some issues.  If you do not pass the Input object to Notes, you can't run args.valid (line 12 of notes.js) and your application won't execute properly.  With the existing return statement in your input.js, it looks like a string gets passed to Notes() and causes an error.

Your test setup looks good. Just cleanup the logic and you can resubmit for full points!


Unexpectedly throws "Duplicate binding [object Object]"

Code
"use strict";

((one, two) => {});

Expected behavior:
Should parse.
Actual behavior:
Throws
Duplicate binding [object Object] at :3:1

@loganfsmyth Thanx for info. Will be fixed as soon as I get to my computer.

Closing as the reported issue have been fixed.


Change 8-bit to 8bit in po headers

Most likely, this should be done by the individual translators. But perhaps we should update check.vim:
diff --git a/src/po/check.vim b/src/po/check.vim
index 24c4d79cb..2990670f6 100644
--- a/src/po/check.vim
+++ b/src/po/check.vim
@@ -173,6 +173,17 @@ elseif !plural && search('^"Plural-Forms: ', 'n')
   " We allow for a stray plural header, msginit adds one.
 endif

+" Check that 8bit encoding is used instead of 8-bit
+let cte=search('^"Content-Transfer-Encoding:\s\+8-bit', 'n')
+let ct=search('^"Content-Type:.*;\s\+\<charset=[iI][sS][oO]_', 'n')
+if cte
+  echomsg "Content-Transfer-Encoding should be 8bit and not 8-bit"
+  let error = cte
+elseif ct
+  echomsg "Content-Type Encoding should be 'ISO-...' and not 'ISO_...'"
+  let error = ct
+endif
+

 if error == 0
   " If all was OK restore the view.

Codecov Report

Merging #3081 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3081      +/-   ##
==========================================
- Coverage   76.04%   76.04%   -0.01%
==========================================
  Files          92       92
  Lines      135743   135743
==========================================
- Hits       103228   103222       -6
- Misses      32515    32521       +6

Impacted Files
Coverage Δ

src/gui_beval.c
62.82% <0%> (-0.43%)
:arrow_down:

src/os_unix.c
57.42% <0%> (-0.14%)
:arrow_down:

src/channel.c
83.05% <0%> (-0.12%)
:arrow_down:

src/gui.c
49.71% <0%> (-0.11%)
:arrow_down:

src/gui_gtk_x11.c
48.18% <0%> (-0.05%)
:arrow_down:

src/terminal.c
73.74% <0%> (-0.05%)
:arrow_down:

src/eval.c
81.52% <0%> (+0.04%)
:arrow_up:

src/if_xcmdsrv.c
84.71% <0%> (+0.53%)
:arrow_up:

Continue to review full report at Codecov.

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

Christian wrote:

Most likely, this should be done by the individual translators. But
perhaps we should update check.vim:
diff --git a/src/po/check.vim b/src/po/check.vim
index 24c4d79cb..2990670f6 100644
--- a/src/po/check.vim
+++ b/src/po/check.vim
@@ -173,6 +173,17 @@ elseif !plural && search('^"Plural-Forms: ', 'n')
   " We allow for a stray plural header, msginit adds one.
 endif

+" Check that 8bit encoding is used instead of 8-bit
+let cte=search('^"Content-Transfer-Encoding:\s\+8-bit', 'n')
+let ct=search('^"Content-Type:.*;\s\+\<charset=[iI][sS][oO]_', 'n')
+if cte
+  echomsg "Content-Transfer-Encoding should be 8bit and not 8-bit"
+  let error = cte
+elseif ct
+  echomsg "Content-Type Encoding should be 'ISO-...' and not 'ISO_...'"
+  let error = ct
+endif
+

 if error == 0
   " If all was OK restore the view.

Let's make that a warning for now.  Otherwise the check always fails
when I check the runtime files.
--
A meeting is an event at which the minutes are kept and the hours are lost.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

I am closing this. The po files will get checked by the check.vim (which has been improved as of d1d037e90192ab64e4cec00b9d008b33bc) script once they are distributed to Bram for inclusion. (And note there is already a conflict, most likely because of https://github.com/vim/vim/commit/675e8d6adb88d5b38087870dfda51c0205070741) Feel free to contact the individual maintainers of the resulting po files to have this issue fixed as you did last time with #3040


Hello everything is deprecated and impossible to install (french new dev ^^)

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] I am running the latest version
[x] I checked the documentation and found no answer
[ ] I checked to make sure that this issue has not already been filed
[ ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

step 1
step 2
you get it...

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Device:
Operating System:
Browser and Version:

Failure Logs
Please include any relevant log snippets or files here.

when wnat to install api this error throws
npm ERR! code 1
npm ERR! path C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\node-sassnpm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   'C:\Program Files\nodejs\node.exe',
npm ERR! gyp verb cli   'C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\node-gyp\bin\node-gyp.js',
npm ERR! gyp verb cli   'rebuild',
npm ERR! gyp verb cli   '--verbose',
npm ERR! gyp verb cli   '--libsass_ext=',
npm ERR! gyp verb cli   '--libsass_cflags=',
npm ERR! gyp verb cli   '--libsass_ldflags=',
npm ERR! gyp verb cli   '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using<EMAIL_ADDRESS>npm ERR! gyp info using<EMAIL_ADDRESS>| win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb which failed Error: not found: python2
npm ERR! gyp verb which failed     at getNotFoundError (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed     at F (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed     at E (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb which failed     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb which failed  python2 Error: not found: python2
npm ERR! gyp verb which failed     at getNotFoundError (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed     at F (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed     at E (C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed     at C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb which failed     at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb which failed   code: 'ENOENT'
npm ERR! gyp verb which failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb which succeeded python C:\Program Files\Python310\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Program Files\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack   File "", line 1
npm ERR! gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'.  System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\hedi\Desktop\material-dashboard-react-nodejs-master\material-dashboard-api\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1


Example acquia.config.yml is out-of-date

Issue Type

Documentation Report

Your Environment

Vagrant 1.8.6
VirtualBox 5.1.6r110634
ansible <IP_ADDRESS>
  config file =
  configured module search path = Default w/o overrides

Your OS

macOS (10.11.6)

Full console output
Build w/ existing acquia.config.yml: https://gist.github.com/timcosgrove/fa77ebd55e0a2b9437f00e3579bdfbe8
Build w/ modified acquia.config.yml: https://gist.github.com/timcosgrove/58dc8af89ab08f2e8323436a2f847d9d
Summary
The current acquia.config.yml in examples does not appear to build correctly, at least with my Vagrant/ansible/OS combo.
Steps to reproduce.

Check out drupal-vm at master.
Copy contents of acquia.config.yml to config.yml at the base of the repo.
run vagrant up.

Results: see Gist #1 above.
I modified the config based on the instructions in the PHP5.6 documentation, which appears to fix the problem: see Gist #2.
I'll be submitting a PR with these changes. If this is an actual problem and the PR solves it, enjoy!
Thanks for DVM.

https://github.com/geerlingguy/drupal-vm/pull/1037

Fixed in #1037 - thanks!


createCustomToken method response empty {}

I try to create custom token with https://firebase-php.readthedocs.io/en/5.x/authentication.html#id2 in Laravel project by write code below.
  $auth = Firebase::auth();
  $token = $auth->verifyIdToken($token);
  $uid = $token->claims()->get('sub');
  $user = $auth->getUser($uid);
  $additionalClaims = [
      'nationality' => 'kh',
  ];
  if($user) {
      $customToken =  $auth->createCustomToken($user->uid, $additionalClaims);
  }

If I  return response json  $user  it is display object user  likes

{
  "uid": "oR58AIcn3TS69CL..........",
  "email"<EMAIL_ADDRESS>  "emailVerified": false,
  "displayName": null,
  "photoUrl": null,
  "phoneNumber": null,
  "disabled": false,
  "metadata": {
    "createdAt": "2021-03-25T06:05:56+00:00",
    "lastLoginAt": "2021-03-25T10:04:09+00:00",
    "passwordUpdatedAt": {
      "date": "2021-03-25 06:05:56.899000",
      "timezone_type": 3,
      "timezone": "UTC"
    },
    "lastRefreshAt": {
      "date": "2021-03-25 10:04:11.653000",
      "timezone_type": 3,
      "timezone": "UTC"
    }
  },
  "providerData": [
    {
      "uid"<EMAIL_ADDRESS>      "displayName": null,
      "email"<EMAIL_ADDRESS>      "photoUrl": null,
      "providerId": "password",
      "phoneNumber": null
    }
  ],
  "passwordHash": "....",
  "passwordSalt": null,
  "customClaims": [],
  "tokensValidAfterTime": "2021-03-25T06:05:56+00:00",
  "tenantId": null
}

But when use $customToken it response  empty json body
{}

If I try to cast to string  $customTokenString = (string) $customToken it error like below
Error
Object of class Lcobucci\JWT\Token\Plain could not be converted to string

Please help me

$customTokenString = $customToken->toString();

should work. Thank you for bringing this up, the documentation needs an update to reflect the different usages depending on the installed version of lcobucci/jwt, will do this right after writing this comment ^^.

Here it is https://github.com/kreait/firebase-php/commit/8b45c07d922364ba9298fa07cbe7ea676c1d05f4


Feat: enable classNames for Dropzone component

It's possible to pass inline styles to the Dropzone component, but it would be great to be able to pass class names as well.

Hi @chrisvxd!
No problem at all, I understand the situation. Actually, customize the editor theme is quite important for my project, so I look forward to that update.
Is there a way to track the progress and perhaps contribute to it?

@Leweyse Just created #139 (thought we already had one, but I guess not!)


Respect disableForm(false) for ViewAction

The following PR allows to override disableForm setting on a ViewAction.
Tables\Actions\ViewAction::make()->disableForm(false)

Could you elaborate on the thinking behind this PR, @linaspasv?
Seems like you'd simply want to use the EditAction instead?

We had a discussion with Dan https://discord.com/channels/883083792112300104/1102651142925721742 , and I was offered for my use-case to use ViewAction::make()->disableForm(false) that we found later did not work. I could of course create a custom Action by copying most of the internals of ViewAction but it made sense to just allow to override and respect the disableForm(false) property on ViewAction if needed.

Alright, handing this over to @danharrin then.


BehaviorSubject private _value property typings issue

RxJS version:
5.0.0-rc.4
Code to reproduce:
I will make a code reproduction repo... At the moment it's a bit challenging to do so due to the nature of the bug (multiple packages compiled with emitted definitions).
Multiple packages reference rxjs 5.0.0-rc.4. Package A declares a enum WindowState and an interface IWindow which has a field state that is a BehaviorSubject<WindowState>. Package B implements IWindow properly by referencing package A. Package C references both packages A and B, and experiences the below error when trying to use the implementation of IWindow from package B.
The _value field on BehaviorSubject is private anyway and doesn't have any type associated with it (not even T).
Expected behavior:
The type error on _value should not be happening.
Actual behavior:
  Types of property 'state' are incompatible.
    Type 'BehaviorSubject<WindowState>' is not assignable to type 'BehaviorSubject<WindowState>'.
      Types have separate declarations of a private property '_value'.

Additional information:
I started noticing this in the upgrade from rc.3 to rc.4. Something changed with _value in this time.
This happens both with using npm install and yarn install. The difference of course being that yarn is very aggressive about flattening the tree, so every package will end up using the same version of rxjs.
Packages A and B are both compiled to JavaScript with emitted TypeScript definitions on TypeScript version 2.1.1.

Note: I've been struggling with this for the last few days, trying to find why it's happening. Issue filing here is a last resort, but I'm pretty sure there's something odd going on in rxjs OR typescript causing this.

I've just tried that:
rm -rf node_modules/
rm yarn.lock
yarn

as well as the same using npm install.
rxjs is tightly locked to rc.4, as well (no semantic version range).
I double checked all the upstream packages are compiled against rc.4 too with a strong version lock (packages A and B).
Strange. I'll go back and double check everything again.

Just in case, please try with npm only instead of yarn to isolate completely, then check manually inside of node_modules (like npm la, etcs) to see what version of rxjs is installed.

Okay, done. Finally found the culprit. One random package one of my upstream deps of A referenced has rxjs at .3. Ouch.
I really wish rxjs did not emit _value in the typings. I understand why TypeScript emits private fields, but this seems incorrect somehow. Could it instead be _value<T> or something similar to avoid this error?
If there's no way to fix this awkward problem, feel free to close. I've fixed my issue, but it'd be great if we could figure out some kind of general fix.

Could it instead be _value or something similar to avoid this error?

: Unfortunately I don't think we have those level of control to emit specifics. If you refer actual code (https://github.com/ReactiveX/rxjs/blob/f51b8f9391ca6d751517a72fdabb05ad8c1013d8/src/BehaviorSubject.ts#L11), it's simply constructor(private _value: T)  have generic type only, but compiler does some magic inside to create internals.
There are continuous effort to improve type definitions over though to resolve inconveniences regarding type definitions. Let me close this issue for now as issue itself is resolved.

Thanks for your help @kwonoj


Questions about xgb.tree.plot

Two questions.

For trees of even moderate size the node marks become invisible. How to save the ploted tree in high resolution so one can see what is written on nodes?

The option n_first_tree draws only n first trees. Why not the last ones being generated?

You can save trees in a RMarkdown document. Trees are Javascript so it is not printable easily
First tree is the one making most of the work. Then, the gain per tree decreases. That's why there is no real interest in seeing the last one without seeing the first ones.

Is it possible to see how much information gain each tree does?

You can do it easily using the data.table produced by the function xgb.model.dt.tree.


Bump version to 1.14

Bumping the version to 1.14

/assign @yue9944882

/remove-lifecycle stale

thank you for reviving this! can you have a re-run w/ the latest generator, there's a few expected fixes:
OPENAPI_GENERATOR_COMMIT=v4.1.0 <the-gen-repo>/perl.sh

@yue9944882 I already do as you asked. Thank you..


Running NBA2k19 fail

Description

I try to use "Launch Application" to run nba2k19 on win10,the capture options are Allow fullscreen and Allow VSync.
When i try to launch it,the game shows up for about 1 second,then disappare.I try to debug that game(by cheate engine).It shows "dxgi_error_device_removed".

Steps to reproduce
This is what the RenderDoc's log looks like:

Core 20604 21:03:44 core.cpp(440)             Log   RenderDoc v1.11 Windows 64-bit Release (c5480aa622a2f5447c87d23ccc0b08fb320b0169) loaded in replay application
Core 21756 21:03:44 core.cpp(440)             Log   RenderDoc v1.11 Windows 64-bit Release (c5480aa622a2f5447c87d23ccc0b08fb320b0169) loaded in replay application
Core 21756 21:03:44 settings.cpp(460)         Log   Loading config from C:\Users\panicboy\AppData\Roaming\renderdoc\renderdoc.conf
Core 20604 21:03:44 crash_handler.h(150)      Log   Timer Waiting for crash handling server - 66.253 ms
Core 20604 21:03:44 crash_handler.h(156)      Log   Created crash-handling server \.\pipe\RenderDocBreakpadServer2758153340415
Core 20604 21:03:44 crash_handler.h(87)       Log   Connecting to server \.\pipe\RenderDocBreakpadServer2758153340415
Core 20604 21:03:44 settings.cpp(460)         Log   Loading config from C:\Users\panicboy\AppData\Roaming\renderdoc\renderdoc.conf
UI 20604 21:03:44 qrenderdoc.cpp(89)        Log   QRenderDoc initialising.
UI 20604 21:03:44 qrenderdoc.cpp(92)        Log   Running as administrator
Core 20604 21:03:45 crash_handler.h(51)       Log   Re-using crash-handling server \.\pipe\RenderDocBreakpadServer2758153340415
Core 20604 21:03:45 crash_handler.h(87)       Log   Connecting to server \.\pipe\RenderDocBreakpadServer2758153340415
Core 20604 21:03:45 d3d11_replay.cpp(125)     Log   Running replay on nVidia / NVIDIA GeForce RTX 2070 SUPER <IP_ADDRESS>30
Core 20604 21:03:45 d3d12_replay.cpp(102)     Log   Running replay on nVidia / NVIDIA GeForce RTX 2070 SUPER <IP_ADDRESS>30
Core 20604 21:03:45 vk_replay.cpp(4235)       Log   Created device.
Core 20604 21:03:45 android_tools.cpp(354)    Log   Initialising adb using 'C:\Program Files\RenderDoc/plugins/android/adb'
UI 20604 21:03:45 ToolWindowManager.cpp(1528) Warning area parameter ignored for this type
Core 20604 21:03:51 android_tools.cpp(369)    Log   Started adb server
UI 20604 21:04:11 unknown(0)                Debug QWindowsNativeFileDialogBase::onSelectionChange (QUrl("file:///D:/NBA 2K19/NBA2K19/NBA2K19.exe")) 1
UI 20604 21:04:11 unknown(0)                Debug QWindowsNativeFileDialogBase::onSelectionChange (QUrl("file:///D:/NBA 2K19/NBA2K19/NBA2K19.exe")) 1
UI 20604 21:04:12 unknown(0)                Debug QWindowsNativeFileDialogBase::onSelectionChange (QUrl("file:///D:/NBA 2K19/NBA2K19/NBA2K19.exe")) 1
Core 20604 21:04:14 win32_process.cpp(514)    Log   Running process D:\NBA 2K19\NBA2K19\NBA2K19.exe
Core 20604 21:04:14 win32_process.cpp(597)    Log   Injecting renderdoc into process 9320
Core 9320 21:04:15 core.cpp(440)             Log   RenderDoc v1.11 Windows 64-bit Release (c5480aa622a2f5447c87d23ccc0b08fb320b0169) capturing application
Core 9320 21:04:15 crash_handler.h(150)      Log   Timer Waiting for crash handling server - 65.004 ms
Core 9320 21:04:15 crash_handler.h(156)      Log   Created crash-handling server \.\pipe\RenderDocBreakpadServer2758462053807
Core 9320 21:04:15 crash_handler.h(87)       Log   Connecting to server \.\pipe\RenderDocBreakpadServer2758462053807
Core 9320 21:04:15 settings.cpp(460)         Log   Loading config from C:\Users\panicboy\AppData\Roaming\renderdoc\renderdoc.conf
Core 9320 21:04:15 win32_libentry.cpp(66)    Log   Loading into D:\NBA 2K19\NBA2K19\NBA2K19.exe
Core 9320 21:04:15 sys_win32_hooks.cpp(82)   Log   Registering Win32 system hooks
Core 9320 21:04:15 d3d11_hooks.cpp(44)       Log   Registering D3D11 hooks
Core 9320 21:04:15 amd_hooks.cpp(151)        Log   Registering AMD hooks
Core 9320 21:04:15 nvapi_hooks.cpp(117)      Log   Registering nvidia hooks
Core 9320 21:04:15 d3d12_hooks.cpp(173)      Log   Registering D3D12 hooks
Core 9320 21:04:15 d3d8_hooks.cpp(36)        Log   Registering D3D8 hooks
Core 9320 21:04:15 d3d9_hooks.cpp(45)        Log   Registering D3D9 hooks
Core 9320 21:04:15 dxgi_hooks.cpp(250)       Log   Registering DXGI hooks
Core 9320 21:04:15 egl_hooks.cpp(992)        Log   Registering EGL hooks
Core 9320 21:04:15 gl_hooks.cpp(263)         Log   Registering OpenGL hooks
Core 9320 21:04:15 wgl_hooks.cpp(616)        Log   Registering WGL hooks
Core 9320 21:04:15 vk_layer.cpp(99)          Log   Registering Vulkan hooks
Core 9320 21:04:15 crash_handler.h(51)       Log   Re-using crash-handling server \.\pipe\RenderDocBreakpadServer2758462053807
Core 9320 21:04:15 crash_handler.h(87)       Log   Connecting to server \.\pipe\RenderDocBreakpadServer2758462053807
Core 20604 21:04:16 target_control.cpp(585)   Log   Got remote handshake: NBA2K19 [9320]
Core 9320 21:04:17 dxgi_common.cpp(1633)     Warning Querying IDXGIAdapter for unsupported/undocumented interface: IDXGIAdapterInternal2
Core 9320 21:04:23 nvapi_hooks.cpp(312)      Log   Initialised nvapi, version NVidia Complete Version 1.10
Core 9320 21:04:23 nvapi_hooks.cpp(414)      Warning NvAPI disabled: Returning NULL for nvapi_QueryInterface(NvAPI_EnumPhysicalGPUs)
Core 9320 21:04:23 core.cpp(1798)            Log   Adding D3D11 device frame capturer for 0x000001D5D376FEC8
Core 9320 21:04:23 d3d11_device.cpp(159)     Log   New D3D11 device created: nVidia / NVIDIA GeForce RTX 2070 SUPER <IP_ADDRESS>30
Core 9320 21:04:24 nvapi_hooks.cpp(414)      Warning NvAPI disabled: Returning NULL for nvapi_QueryInterface(NvAPI_EnumPhysicalGPUs)
Core 9320 21:04:24 core.cpp(1798)            Log   Adding D3D11 device frame capturer for 0x000001D5D376F8C0
Core 9320 21:04:24 d3d11_device.cpp(159)     Log   New D3D11 device created: nVidia / NVIDIA GeForce RTX 2070 SUPER <IP_ADDRESS>30
Core 9320 21:04:24 d3d11_device.cpp(836)     Warning Returning a dummy ID3D11Debug that does nothing. This ID3D11Debug will not work!
Core 9320 21:04:24 d3d11_device.cpp(782)     Warning Returning a dummy ID3D11InfoQueue that does nothing. RenderDoc takes control of the debug layer.
Core 9320 21:04:24 d3d11_device.cpp(787)     Warning If you want direct access, enable API validation and query for GUID {3fc4e618-3f70-452a-8b8f-a73accb58e3d}. This will return the real ID3D11InfoQueue - be careful as it is unwrapped so you should not call QueryInterface on it.
Core 9320 21:04:24 core.cpp(1831)            Log   Adding D3D11 frame capturer for 0x000001D5D376F8C0 / 0x0000000000071006
Core 20604 21:04:24 target_control.cpp(831)   Log   Used API: D3D11 (Presenting & supported)
Core 9320 21:04:24 nvapi_hooks.cpp(414)      Warning NvAPI disabled: Returning NULL for nvapi_QueryInterface(0xd451e834)
Core 20604 21:04:26 win32_network.cpp(261)    Warning recv: WSAECONNRESET: An existing connection was forcibly closed by the remote host.

Environment

RenderDoc version: 1.11
Operating System: Windows 10 Pro x64
Graphics API: Direct3D11
GeForce RTX 2070 SUPER
Driver 457.30

RenderDoc is only intended for capturing your own programs. Capturing copyrighted programs that you do not have the rights to is not endorsed and I will provide absolutely no support for it.

RenderDoc is only intended for capturing your own programs. Capturing copyrighted programs that you do not have the rights to is not endorsed and I will provide absolutely no support for it.


Logs collection error before cleaning up the VM

Recently I'm seeing an issue with downloading log files from VM before cleaning up.
Logs.
[Azure VERIFY-DEPLOYMENT-PROVISION westus2] 08/02/2018 07:48:35 : [INFO ] Downloading ICA-RG-SingleVM-microsoft-ONTV-636687925779-role-0-.txt from lisa : <IP_ADDRESS>,port 22 to .\TestResults\2018-02-08-07-42-44-9392\VERIFY-DEPLOYMENT-PROVISION using Password authentication
[Azure VERIFY-DEPLOYMENT-PROVISION westus2] .
[Azure VERIFY-DEPLOYMENT-PROVISION westus2] 08/02/2018 07:48:36 : [INFO ] Download command returned exit code 1
[Azure VERIFY-DEPLOYMENT-PROVISION westus2] 08/02/2018 07:48:36 : [INFO ] .\tools\pscp.exe : Looking up host "<IP_ADDRESS>" At line:11 char:17 + ...    echo y | .\tools\pscp.exe  -v -2 -unsafe -pw $password -q -P $port ... +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (Looking up host "<IP_ADDRESS>":St     ring) [], RemoteException     + FullyQualifiedErrorId : NativeCommandError   Connecting to <IP_ADDRESS> port 22  We claim version: SSH-2.0-PuTTY_Release_0.63  Server version: SSH-2.0-OpenSSH_7.4  Using SSH protocol version 2  Using Diffie-Hellman with standard group "group14"  Doing Diffie-Hellman key exchange with hash SHA-1  Host key fingerprint is:  ssh-rsa 2048 ae:d9:4f:4e:05:8c:f3:07:de:4e:3d:01:50:de:fa:f3  Initialised AES-256 SDCTR client->server encryption  Initialised HMAC-SHA-256 client->server MAC algorithm  Initialised AES-256 SDCTR server->client encryption  Initialised HMAC-SHA-256 server->client MAC algorithm  Using username "lisa". Using SSPI from SECUR32.DLL  Attempting GSSAPI authentication  GSSAPI authentication request refused  Attempting keyboard-interactive authentication  Access granted  Opening session as main channel  Opened main channel  Started a shell/command  Using SFTP Connected to <IP_ADDRESS> pscp: wildcard 'ICA-RG-SingleVM-microsoft-ONTV-636687925779-role-0-.txt'  matched no files Sent EOF message  Server sent command exit status 0  Disconnected: All channels closed  DownloadExtiCode_1
Distro
CentOS 7.5
Other distros are not verified yet.

@asofron please do a rerun of this on centos 7.5 with latest lisav2 code and see if it still repro.

Created issue  #1413 for WaLinuxAgent with relevant information

WALA issue is still open.

@iamshital  I`ll re-test to check if there any change , as well

Issue is fixed


Clear the scroll by id after completing scroll_batches

ElasticSearch has settings that limit the number of concurrent scrolls on the cluster. Scrolls are cleared automatically after the scroll ttl (eg, "1m") but I've found that iterating a lot of data in a lot of parallel jobs makes it easy to hit this limit. This may be avoided by staggering parallelism differently or by setting shorter scroll ttls, but it seems to also make sense to clear out the old scrolls when the use of scroll_batches is complete.

@amoslanka thank you for your PR, it was just rebased and merged!


Scatter vjp

Implement the vjp of scatter and scatter_add. It also adds the scatter_add op in python for initial testing as
x[indices] += y

can not map to scatter add but it can only map to
x[indices] = x[indices] + y

The main question is whether we can automatically detect the above and replace it with scatter_add or scatter_{op} depending on the operation. It might also simply not be worth the trouble and we could expose scatter_{op} and leave it to the user to utilize them for these updates.
Remaining tasks

[ ] Write tests in C++ and python
[ ] Write docs if we choose to expose scatter_{op}
[ ] Coordinate with #391 for the implementation of the above

The main question is whether we can automatically detect the above and replace it with scatter_add or scatter_{op} depending on the operation. It might also simply not be worth the trouble and we could expose scatter_{op} and leave it to the user to utilize them for these updates.

Can we implement rewriting pass through the graph within simplify before the evaluation?

We can but it is not that simple as they are not equivalent operations. The scatter_add is atomic while the other one isn't (still atomic but not the increment). Simplify must not change the result of the graph.
As an aside, simplify must remain light so it can be run on the dynamic graph every time. As a result I would be very cautious adding checks there that only may benefit specific situations.
If we do decide that this should be handled with a graph rewrite I think the proper place for that is the python implementation of set item (mlx_set_item) but maybe it isn't worth it.

We can but it is not that simple as they are not equivalent operations. The scatter_add is atomic while the other one isn't (still atomic but not the increment). Simplify must not change the result of the graph.
As an aside, simplify must remain light so it can be run on the dynamic graph every time. As a result I would be very cautious adding checks there that only may benefit specific situations.
If we do decide that this should be handled with a graph rewrite I think the proper place for that is the python implementation of set item (mlx_set_item) but maybe it isn't worth it.

Thanks for the elaborate answer. To determine whether it is worth doing the rewrite, we can measure performance difference between the two operations.

Honestly the more I think about it I think this shouldn't be implemented. It would also break numpy compatibility which implements sliced __iadd__ the same way.
The numpy way to do scatter add is to use np.add.at so maybe we should provide something like that or just the scatter add ops which are common in ML frameworks.

Honestly the more I think about it I think this shouldn't be implemented. It would also break numpy compatibility which implements sliced __iadd__ the same way.
The numpy way to do scatter add is to use np.add.at so maybe we should provide something like that or just the scatter add ops which are common in ML frameworks.

Can we simply not expose scatter and implement np.add.at and similar? If we go for  np.add.at equivalents, do we have existing kernels or other primitive operations for an efficient implementation?

Honestly the more I think about it I think this shouldn't be implemented. It would also break numpy compatibility which implements sliced __iadd__ the same way.
The numpy way to do scatter add is to use np.add.at so maybe we should provide something like that or just the scatter add ops which are common in ML frameworks.

Can we simply not expose scatter and implement np.add.at and similar? If we go for np.add.at equivalents, do we have existing kernels or other primitive operations for an efficient implementation?

Alternatively, we can implement operations such as https://pytorch-scatter.readthedocs.io/en/1.3.0/. Those are sufficient to support efficient implementation of GNNs.

So this is ready for review, I started writing the documentation for scatter_add and quickly realized that there is a reason why people create the higher level APIs. They are equally powerful but much simpler to reason about. I removed scatter_add and implemented all the scatter ops using the array.at pattern.
Simply put
x[idx] = y  # maps to scatter
x = x.at[idx].add(y)  # maps to scatter_add
x = x.at[idx].subtract(y)  # maps to scatter_add
x = x.at[idx].multiply(y)  # maps to scatter_prod
... etc ...

Before merging it probably needs more tests and also some docs regarding the at pattern.

Oh also , @awni , I realize that it was already reviewed but I would appreciate another look since the main paradigm changed in the meantime.

I'm wondering if we should make these in place or not. For example: x[0].add(...) could be an in place op. It's not so much that I feel it should be one way or another but right now there are subtle inconsistencies that I am concerned about. For example:
>>> a = mx.array([0])
>>> b = a
>>> b[0] = 1
>>> a
array([1], dtype=int32)

>>> a = mx.array([0])
>>> b = a
>>> b += 1
>>> a
array([0], dtype=int32)
>>> b
array([1], dtype=int32)

To be fair I think the inconsistency here is the b += 1. The rest are pretty expected. The solution here would be to implement __iadd__ and friends so that people can do x += 1 and get what they expect.
Regarding, get and set on the array.at helper I think they should definitely not be the only way to do those operations. Personally I don't like it when there are many ways to do a thing, however I can think of implementations such as
def update(x, idx, value, op):
    return getattr(x.at[idx], op)(value)

where having set as an option would simplify the code.

To be fair I think the inconsistency here is the b += 1
💯

Yes I realized my comment was a slight digression but this seemed like a good place to whine about it 😛

Making ops on the proxy from .at[]` out of place seems like a good approach and gives added flexibility over the in place alternative for set at least
We should update the in place ops to be consistent (not suggesting for this PR but should be done soon)

One mode thing

So this is ready for review, I started writing the documentation for scatter_add and quickly realized that there is a reason why people create the higher level APIs. They are equally powerful but much simpler to reason about. I removed scatter_add and implemented all the scatter ops using the array.at pattern.
Simply put
x[idx] = y  # maps to scatter
x = x.at[idx].add(y)  # maps to scatter_add
x = x.at[idx].subtract(y)  # maps to scatter_add
x = x.at[idx].multiply(y)  # maps to scatter_prod
... etc ...

Before merging it probably needs more tests and also some docs regarding the at pattern.

I think this looks clean and nice. Only comment is that, coming from other frameworks people may be used to using scatter operations explicitly. So it would be great to add some extra docs mentioning the parallel (or referring to the underlying c++ implementation).


Float/Double - IsPositiveInfinity

Consider changing template for float.IsPositiveInfinity/double.IsPositiveInfinity

from [Template("({d} === Number.POSITIVE_INFINITY)")]
to [Template("({d} == Number.POSITIVE_INFINITY)")]

Steps To Reproduce
public class App
{
    public static void Main()
    {
        float inf = 1.0f / 0.0f;
        Assert.True(float.IsPositiveInfinity(inf));

        double dinf = 1.0 / 0.0;
        Assert.True(double.IsPositiveInfinity(dinf));
    }
}

Verified and added test cases.


Adds display of rarity on the Token Detail page

Project organization

Trello card: https://trello.com/c/jxxAOZOY

Description
Adds rarity to the properties on the Token Detail page
How to test
visit a Token Detail Page, see if properties have the rarity.

 Collection work - Add rarity to properties

@antho1404 Updated the calculation so it should be in the right range now. By going through the categories for ERC721 I am getting these results:
76.67% rarity

DeFi
3.33% rarity

Photography
16.67% rarity```

Seems like we are missing a 3.33%. Looking at the calculations we're doing though it seems right:
<img width="644" alt="image" src="https://user-images.githubusercontent.com/10590599/211728393-84b5c62f-de65-436e-a64d-b24deb1102b6.png">

This was taken from O-Mee but has been slighting modified. The calculation should still be the same as on O-Mee though.

Yes here are my result as well across all the demos:
demo-bsc-testnet 1155: 94.87%
demo-bsc-testnet 721: 99.99% (might be an issue on my side)

nft-test-bsc-testnet 1155: 100%
nft-test-bsc-testnet 721: 96.67%

nft-test-polygon-mumbai 1155: 58.82%
nft-test-polygon-mumbai 721: 62.79%

We do have some valid results. My guess is that we have an issue with the API that calculates this. I created an issue about it https://github.com/liteflow-labs/backend/issues/2428

One thing still doesn't really make sense to me with this dev.
We are displaying the percentage of assets having this specific trait (which is good and what most marketplaces have), but then we are saying that this is the "percentage rarity" which doesn't make much sense.
It could make sense if the rarest would be the highest percentage of rarity, but this is not the case as an asset with a trait only to this asset will have something like 1% then now we display "1% rarity" which definitely feels like it's not rare.
What's the rationale behind this? Should we remove the "rarity" or should we inverse the percentage so 1% would become 99% rarity? (I personally would recommend removing the "rarity" cc @EmmanuelDrouin

Also make sure to pick a collection on the explore then filter through the different categories and the sum of all the rarity should be 100% otherwise there is a problem somewhere.

The backend doesn't enforce Asset to have Categories in Trait. There may be some Assets without Categories, especially on the test backends.
Using the explore page, you can see we have different count when filtering with a specific collection:
https://demo-bsc-testnet-e5xfe5b4h-liteflow.vercel.app/explore?collections=97-0xaade84b6a5f76c0a5f7ae91e65197329eb23763f
And filtering the same collection but with all the categories:
https://demo-bsc-testnet-e5xfe5b4h-liteflow.vercel.app/explore?collections=97-0xaade84b6a5f76c0a5f7ae91e65197329eb23763f&categories=Art&categories=Currency&categories=DeFi&categories=Games&categories=Photography

What's the rationale behind this? Should we remove the "rarity" or should we inverse the percentage so 1% would become 99% rarity? (I personally would recommend removing the "rarity"

We were following Rarible on this design, this is the wording they are using. We could either remove it totally and keep only the percentage, or add a label next to the percentage like Gem "have this trait" up to you guys

Rarible is different because they display a table, so the percentage is not directly related to the rarity, it's a column about the rarity, and they display a percentage without saying the actual "unit" of this number (like you would have a table showing an attribute "length" for example that would show 32 or 32cm).
Here the "unit" is the "own this trait" and the type is the rarity, but the unit is not the rarity (like I wouldn't say "32 length" in my example).


question: client sdk

Hi folks.
I want to use this model for transcription agent for live meeting (built with livekit), but there are only openai sdk to connect.
Can I use openai python package for this model?

Can I use openai python package for this model?

No. This repo is not related to OpenAI's online API services.


Additional css not implemented on login page

Version information

Laravel: v2.0.1
Voyager: v1.1.7
PHP: 7.2
Database: MySQL 5.7.23

Description

Additional CSS file specified in voyager config is not loaded on login page.
Steps To Reproduce
Steps to reproduce the behavior:

Edit config/voyager.php and uncomment 'css/custom.css', under 'additional_css'.
Create public/css/custom.css file and add styling for login page elements.

Expected behavior
CSS styles should be applied on login page.
Screenshots
Additional context

See #3639


Import from path should fetch entire tree

Describe the bug
"Import from IPFS" implies it will fetch the content to your local repo. Currently It only fetches the root block, as, for reasons I do not yet understand that is how ipfs files cp works. It does not check if you have the full tree locally.
from the go-ipfs help, it looks like the assumption is that you will ipfs add something or otherwise ensure the blocks are available locally, and then ipfs files cp it to your mfs:
  In order to add content to MFS from disk, you can use "ipfs add" to obtain the
  IPFS Content Identifier and then "ipfs files cp" to copy it into MFS:

  $ ipfs add --quieter --pin=false <your file>
  # ...
  # ... outputs the root CID at the end
  $ ipfs cp /ipfs/<CID> /your/desired/mfs/path

– go-ipfs help from `ipfs files cp --help`

we can do a recursive refs fetch or similar to make "import from IPFS" do what it sounds like it would do.
To Reproduce
Steps to reproduce the behavior:

Import from IPFS path a thing that only exists on 1 provider.
shutdown the provider
bad news, you dont have the full tree locally, and you can't fetch it from anywhere.

Expected behavior
Import from IPFS should add the blocks to my repo and ipfs files cp them into the MFS. If we want to be smart about it we could stat the root block and if it is larger than would fit in the users repo, then warn them and ask if they want to do a lazy import.

UX discussion from triage session:

Keep the one option ("Import from IPFS") in the menu
However, check if user has full tree locally, and if not, bring up the question (in modal) of whether or not to import all
Default modal choice should be "lazy import"

Still some uncertainty about how to actually do this API-wise: @lidel @Gozala care to comment?
We'll also want to give some thought to whether/how we'd want to include an indicator in a future revision of the Files screen as to whether all blocks for a given item are local. See https://github.com/ipfs-shipyard/ipfs-webui/issues/1692 for related discussion on whether that's too expensive.
As of time of writing, bandwidth doesn't support our swarming on getting this fixed, but let's keep close to the top of our "quick fixes" priority list.

Dont import all into local repo. My workflow depends on that, I work and organize very large files on my notebook. I do not want or need entire file content available localy.

Note: we should also have an indicator for users on the files screen that shows which files are fully downloaded locally or not, and give them an option to import them fully.

related to https://github.com/ipfs/ipfs-webui/issues/1248


EKS-A 1.23 eksa-auth-refresher pod CrashLoopBackOff

What happened:
After installing EKS-A 1.23 on vSphere without configuring EKS-A Curated Packages the eksa-auth-refresher pod has a CrashLoopBackOff due to the following error:
MissingRegion: could not find region configuration
What you expected to happen:
EKS-A curated packages deployments to not be installed if curated packages not configured.
How to reproduce it (as minimally and precisely as possible):
Install new EKS-A cluster on vSphere without curated packages configured.
Anything else we need to know?:
N/A
Environment:

EKS Anywhere Release: v0.11.1
EKS Distro Release: 1.23

Duplicate of #3039
We'll at least make it so the job doesn't get into CrashLoopBackOff state, however, this job will no longer be needed in a couple of months.

https://github.com/aws/eks-anywhere-packages/pull/440


HostRecord.search() example

Hi!
Struggling to understand the args and kwargs for HostRecord.search(). Trying to emulate the following call
r = conn.get_object('record:host', {'name~': host})

but cant seem to pick the right kwargs. This one worked
kw = {'name': host}
r = objects.HostRecord.search(conn, **kw)

but
kw = {'name~': host}
r = objects.HostRecord.search(conn, **kw)

didnt 😞.
Does anybody have a working example for ~ operator?
TIA!

Here take a look at this
https://sifbaksh.com/how-to-search-for-data-in-infoblox-via-apiwapi-using-python-module/


Missing SoapClient location option

We are consuming a SOAP web service that requires us to specify the location attribute in the SoapClient options. This option is not available in the SoapClientInterface, which means that we can't set it. This unfortunately makes it impossible for us to use this awesome package.
The fix is simple and can be achieved by adding the new constant WSDL_LOCATION with a value of wsdl_location and then adding it to the getDefaultWsdlOptions() method in the AbstractSoapClientBase class:
public static function getDefaultWsdlOptions()
{
    return array(
        self::WSDL_CLASSMAP => null,
        // ...
        self::WSDL_LOCATION => null,
    );
}

Closing this as it's related to PackageBase and not this package.


Fix parent.config generation for MSO with required capabilities

What does this PR (Pull Request) do?
Server capabilities do not apply to ORG servers (origins), so don't
check for them.
Which Traffic Control components are affected by this PR?

Traffic Ops ORT

What is the best way to verify this PR?
Create an MSO delivery service (multiSiteOrigin: true) and a required capability. Assign 2 ORG servers and at least 1 EDGE server to the delivery service. The EDGE server must have the required capability. Make sure at least 1 MID in the CDN also has the required capability. On that MID, run ORT and verify that the line in parent.config for this delivery service contains the 2 ORG servers.
Next, create a topology with your edge -> mid -> origin cachegroups, and assign it to your MSO delivery service. On the same MID as before, run ORT and verify that the line in parent.config for this delivery service contains the 2 ORG servers.
If this is a bug fix, what versions of Traffic Control are affected?

master
5.0.x
4.x

The following criteria are ALL met by this PR

[x] This PR includes tests
[x] bugfix, no docs necessary
[x] This PR includes an update to CHANGELOG.md
[x] This PR includes any and all required license headers
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

re-running ciab check


[Feature Request] Display token name above image

Add the option to show the name of the token above the image when hovered.

+1
And/Or the name of the actor.
Also, it could be at the bottom.


Bug when building MSVC in x64 (while x86 works fine)

Bug when building MSVC in x64 (while x86 works fine)
https://social.msdn.microsoft.com/Forums/en-US/c4f72667-e2a2-4902-9e28-9762918ca524/visual-studio-communityprofessional-20172019-cant-build-in-x64?forum=visualstudiogeneral
Originally posted by @taljacob2 in https://github.com/taljacob2/oop/issues/60#issuecomment-1397937566

Found out how to see the default cl.exe options that Visual Studio is using:
Right click on your project -> properties -> C/C++ -> Command Line


Enable CLI Support for Cloud-Hosted Agenta

Description
We aim to extend the CLI functionality to support the cloud-hosted version of Agenta. Specifically, we need to add two major features:

Allow users to select "Agenta Cloud" as an option during the agenta init setup. After selecting this option, users should input their API key. To assist, we can provide a link directing them to the API key creation page.

Ensure that any CLI command (like agenta serve) executed in the initialized folder sends requests authenticated by the provided API key.

Context
To achieve this, two core changes are required:

CLI Command Logic: Update the CLI to include the option for "Agenta Cloud" and to store the API key in the configuration file.

Client Code: Modify the client code to include the API key in API calls when the cloud option is selected. This entails adding an optional API key parameter to the relevant functions in client.py.

Deliverables

A new CLI version that is compatible with both Agenta Cloud and Agenta Local/Remote.

Manually testing to confirm that all CLI commands work as expected with both Agenta Cloud and Agenta Local/Remote.

@devgenix

Small bug with agenta variant remove
@mmabrouk
Deploy to demo.agenta.ai


Cleanup implementation of SqlServerDatabaseModelFactory

Current implementation (done by yours truly) needs some TLC.

Don't use index numbers to fetch fields
Quirks for datetime precision are only present in the comments
Queries for metadata
(possibly) server-size eval of TableSelectionSet. Current method pulls all into memory.
Implement fetching the DefaultSchemaName

Could be done as a part of #3438

[ ] Handle potential bug in fetching index. See https://github.com/aspnet/EntityFramework/pull/3509#discussion_r42922961


Fixed lock path

LGTM 👍

This is actually not good. This is not compatible with v10 of lock.js
Hey, I have actually started my own addon for this because we needed to get the ball rolling and use the new features of auth0. See:
https://github.com/seawatts/ember-simple-auth-auth0