HOWTO dotnet core nuget versioning

GitInfo is correctly versioning our assemblies but I would like to extend this to versioning our nuget packages. The following is a snippet from our .csproj :
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
    <PackageVersion>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)</PackageVersion>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="..\..\GlobalAssemblyInfo.cs" Link="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="gitinfo" Version="1.1.66" />
  </ItemGroup>
</Project>

Note the GeneratePackageOnBuild.
What do I have to do to generate those environment variables, $(GitSemVerMajor), etc. when I call dotnet build?

Those are not environment variables, they are MSBuild variables determined during the build. Here's one way to do it.
The PackageVersion property has to be set from within a target that depends on GitVersion, which is when everything has been populated. You can achieve that by adding it as an InitialTargets:
<Project Sdk="Microsoft.NET.Sdk" InitialTargets="SetVersion">
...

The link is dead. Can you please provide a fresh minimal example?

The link refers to the Version.targets in the moq project build: https://github.com/moq/moq/blob/master/src/build/Version.targets

@feliwir the key is that you cannot assign those properties statically in a PropertyGroup, but must do so inside a Target that runs after GitInfo target runs


Retrying MySQL connectinon on Docker

Hello, I'm making a website and I use Docker to combine everything. I've made a discord bot to manage content for the site. The bot worked on my local machine (not using Docker), and apparently my discord bot starts faster than MySQL, so when the bot tries to connect, it refuses the connection. My friend made a queuer for my site to process videos, and it has a section to keep retrying to connect since he knows that it won't connect on the first try because of Docker. Is there a way to keep trying to reconnect using MySQLjs? Thank you.

Hi! There are two methods:

The createConnection function is what creates a connection. Just keep calling that as much as you like to retry.
You could use the Pool of this module and that will internally call createConnection each time you attempt a query until it gets connected.

I hope this helps!

Hi! There are two methods:

The createConnection function is what creates a connection. Just keep calling that as much as you like to retry.
You could use the Pool of this module and that will internally call createConnection each time you attempt a query until it gets connected.

I hope this helps!

I see, so if I just did
con.connect(function(err) {
    if (err) {
      console.error('error connecting, trying again: ');
      await new Promise(resolve => setTimeout(resolve, 30000));
      con.connect();
    }
    console.log('connected as id ' + con.threadId);
});

, would it hopefully just work without a problem? I'm kind of new to Node, sorry if this is a bad solution.

I see, so if I just did
con.connect(function(err) {
    if (err) {
      console.error('error connecting, trying again: ');
      await new Promise(resolve => setTimeout(resolve, 30000));
      con.connect();
    }
    console.log('connected as id ' + con.threadId);
});

, would it hopefully just work without a problem? I'm kind of new to Node, sorry if this is a bad solution.

Never mind, just tried it out and this type of wait only works in asynchronous functions apparently.

Never mind, just tried it out and this type of wait only works in asynchronous functions apparently.

fulpbot       | Error: connect ECONNREFUSED <IP_ADDRESS>:3306
fulpbot       |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)

I made it keep retrying, but this happens every single time. I'm guessing this is a docker issue, because my Docker's apache connects just fine to it.
var con = mysql.createConnection({
    host: "localhost",
    user: process.env.MYSQL_USER,
    password: process.env.MYSQL_PASSWORD,
    database: process.env.MYSQL_DATABASE
});

FROM node:14.15.2

WORKDIR /usr/src/fulpbot

COPY package*.json ./
RUN npm i

COPY . .
CMD [ "node", "./src/bot.js" ]

    discordbot:
        build:
            context: ./fulpbot
        depends_on:
            - sql
        networks:
            - fulp_vnet
        environment:
            - MYSQL_USER=root
            - MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
            - MYSQL_DATABASE=fulptube
            - MYSQL_HOST=sql
            - DISCORD_TOKEN=discordtoken
        container_name: fulpbot

Ask me if you need more info, i'm kind of confused why it's refusing the connection.

fulpbot       | Error: connect ECONNREFUSED <IP_ADDRESS>:3306
fulpbot       |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)

I made it keep retrying, but this happens every single time. I'm guessing this is a docker issue, because my Docker's apache connects just fine to it.
var con = mysql.createConnection({
    host: "localhost",
    user: process.env.MYSQL_USER,
    password: process.env.MYSQL_PASSWORD,
    database: process.env.MYSQL_DATABASE
});

FROM node:14.15.2

WORKDIR /usr/src/fulpbot

COPY package*.json ./
RUN npm i

COPY . .
CMD [ "node", "./src/bot.js" ]

    discordbot:
        build:
            context: ./fulpbot
        depends_on:
            - sql
        networks:
            - fulp_vnet
        environment:
            - MYSQL_USER=root
            - MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
            - MYSQL_DATABASE=fulptube
            - MYSQL_HOST=sql
            - DISCORD_TOKEN=discordtoken
        container_name: fulpbot

Ask me if you need more info, i'm kind of confused why it's refusing the connection.

Also, yes, Apache does use the same environment variables.
    php:
        build:
            context: ./phpwsql
        depends_on:
            - sql
        networks:
            - fulp_vnet
        environment:
            - MYSQL_USER=root
            - MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
            - MYSQL_DATABASE=fulptube
            - MYSQL_HOST=sql
        volumes:
            - ./www/:/var/www/html
            - ./www/dynamic/:/dynamic
        ports:
            - "80:80"
        container_name: fulpphp```

Also, yes, Apache does use the same environment variables.
    php:
        build:
            context: ./phpwsql
        depends_on:
            - sql
        networks:
            - fulp_vnet
        environment:
            - MYSQL_USER=root
            - MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
            - MYSQL_DATABASE=fulptube
            - MYSQL_HOST=sql
        volumes:
            - ./www/:/var/www/html
            - ./www/dynamic/:/dynamic
        ports:
            - "80:80"
        container_name: fulpphp```

Real.

Hi, unfortunately connecting to your MySQL server is outside the scope of this module; if Node.js says the connection is refused, there is something wrong in the environment in some way, or perhaps Node.js itself cannot connect.


[Feature] Support CUME_DIST window function

What type of PR is this:

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[x] UT
[x] Doc
[ ] Tool

Which issues of this PR fixes:

Fixes #13021 #19632
Problem Summary(Required):

The CUME_DIST window function returns the cumulative distribution of a value within a group of values; that is, the percentage of partition values less than or equal to the value in the current row. This represents the number of rows preceding or peer with the current row in the window ordering of the window partition divided by the total number of rows in the window partition. Return values range from 0 to 1.
It can not been used with the windowing clause. And for the implementation, it uses RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW.
NOTE that, CUME_DIST need the boundary of partition to calculate its value. For these functions, we must wait util the partition finished. Therefore, it uses _process_by_partition_for_unbounded_preceding_range_frame_materializing.
The CUME_DIST window function is only supported by the pipeline engine. BE will report the NotSupported error, when non-pipeline engine executes CUME_DIST in BE.
Checklist:

[x] I have added test cases for my bug fix or my new feature
[x] This pr will affect users' behaviors
[x] This pr needs user documentation (for new or modified features or behaviors)
[x] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

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

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[336]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[336]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[336]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[336]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[336]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[356]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[356]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[356]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

This pull request has encountered some issues. Earlier, it was unable to pass the CI checks, and based on suggestions from the StarRocks team, I rebased with the main branch. However, while addressing review comments today, I discovered that the code is incompatible with the Docker container and fails to compile. I wasn't able to find a Docker container matching the current code, so I merged with the main branch and pulled the latest Docker image. For some unknown reason, this PR now shows over 34,000 lines of code changes. I'm uncertain on how to resolve this issue.

This pull request has encountered some issues. Earlier, it was unable to pass the CI checks, and based on suggestions from the StarRocks team, I rebased with the main branch. However, while addressing review comments today, I discovered that the code is incompatible with the Docker container and fails to compile. I wasn't able to find a Docker container matching the current code, so I merged with the main branch and pulled the latest Docker image. For some unknown reason, this PR now shows over 34,000 lines of code changes. I'm uncertain on how to resolve this issue.

Thanks to StarRocks classmates for their help, the problem has been solved.

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[356]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 15 (86.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/analysis/AnalyticExpr.java
3
4
75.00%
[254]

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyticAnalyzer.java
4
5
80.00%
[356]

:large_blue_circle:
com/starrocks/catalog/FunctionSet.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/WindowTransformer.java
3
3
100.00%
[]

Question: how does state.count update?
I just read the source code, and I cannot figure out how state.count updates. There is no related operation in update_batch_single_state_with_frame function.
so would you pls. provide some explanations. Great thx!


SSL issues when trying to install

SSL Issues when trying to install plugin
vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
ERROR:  SSL verification error at depth 3: unable to get local issuer certificate (20)
ERROR:  You must add /C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority to your local trusted store
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://gems.hashicorp.com/specs.4.8.gz)

Source: https://gems.hashicorp.com/

vagrant --version
Vagrant 2.1.2

Windows 10 64bit

I've tried
vagrant plugin install vagrant-vbguest --plugin-clean-sources

Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

Unable to resolve dependency: user requested 'vagrant-vbguest (> 0)'

hi there, sorry, there's nothing I can do about this - this is not a vagrant-vbguest issue. Please head over to https://github.com/hashicorp/vagrant and check there.

@fnordfish yes I agree it's not an issue with this plugin. However I think people might end up here when trying to troubleshoot it - like me, a vagrant noob...
It appears that vagrant is using some other cacert file. Setting the openssl environment variable to the vagrant cacert file worked for me
set SSL_CERT_FILE=C:\HashiCorp\Vagrant\embedded\cacert.pem
vagrant plugin install vagrant-vbguest

@trojanc I am running into this same issue, I see that you had to manually set the openssl environment variable to get around this. Where did you get the hashicorp cacert from? \HashiCorp\Vagrant\embedded\cacert.pem as i dont have that directory on my machine. Thanks.

I didn't have cacert.pem in the embedded directory but this worked for me:
set SSL_CERT_FILE=C:\HashiCorp\Vagrant\embedded\gems\gems\httpclient-2.8.3\lib\httpclient\cacert.pem
vagrant plugin install vagrant-vbguest


Self-contained WinRT components don't work.

Describe the bug
WinRT.Host.dll doesn't work for a self-contained deployment. It requires .NET to be installed on the machine separately which can't be done with MSIX.
To Reproduce

Modify the BgTaskComponent sample to deploy the WPF App as self-contained by adding true
Deploy the package to a machine that doesn't have .NET framework packages installed.

Expected behavior
Toast task from the sample should work.
Actual behavior
Toast task does not work.
Version Info
CsWinRT 1.5.0
Additional context
N/A

This is a blocking issue that, as currently implemented, is not possible with the WinRT.Host. The root cause is use of the hostfxr_initialize_for_runtime_config API, which doesn't support a self-contained scenario. In order to support a self-contained scenario the hostfxr_initialize_for_dotnet_command_line API needs to be used. However, using this API and enabling self-contained library is not without concerns.

The self-contained scenario is intentionally blocked for non-applications due concerns about enabling SxS in-proc versions of coreclr—which is not supported. Care must be taken to ensure the process that is loading the library will not be used by any other .NET library and inadvertently load another coreclr instance.

There is no direct support in the .NET SDK for creating a self-contained library. This is by-design and related to concern (1).

Using hostfxr_initialize_for_dotnet_command_line and then relying on hdt_load_assembly_and_get_function_pointer should be considered an anti-pattern for what users would desire. The issue has to do with which AssemblyLoadContext (ALC) the entry point assembly will be loaded into. Using hdt_load_assembly_and_get_function_pointer, the assembly maybe loaded again into a new isolated ALC as opposed to using the existing loaded instance in the default ALC. This has broad ramifications that need to be considered. Alternatively, in .NET 6 the hdt_get_function_pointer can be used which can load from the default ALC.

It isn't clear how servicing is to be performed for applications or services. There are various security patching processes that will be ignorant of self-contained applications and if the service has running in a sensitive environment, this is a real concern.

/cc @vitek-karas @elinor-fung @agocke

The self-contained scenario is intentionally blocked for non-applications due concerns about enabling SxS in-proc versions of coreclr—which is not supported. Care must be taken to ensure the process that is loading the library will not be used by any other .NET library and inadvertently load another coreclr instance.

This should be easy to guarantee for packaged apps.

It isn't clear how servicing is to be performed for applications or services. There are various security patching processes that will be ignorant of self-contained applications and if the service is running in a sensitive environment, this is a real concern.

MSIX packaged apps are all self-contained (no other ways to guarantee .NET is on the machine), so this isn't a new concern for a self-contained WinRT component right?

MSIX packaged apps are all self-contained (no other ways to guarantee .NET is on the machine), so this isn't a new concern for a self-contained WinRT component right?

That is predicated that CsWinRT is only targeting MSIX scenarios. From my understanding, CsWinRT doesn't require a packaged installation so the general concept should be factored into the cost of support and document how one handles servicing .NET assets.

MSIX packaged apps are all self-contained (no other ways to guarantee .NET is on the machine), so this isn't a new concern for a self-contained WinRT component right?

That is predicated that CsWinRT is only targeting MSIX scenarios. From my understanding, CsWinRT doesn't require a packaged installation so the general concept should be factored into the cost of support and document how one handles servicing .NET assets.

Indeed CsWinRT doesn't require a packaged installation, but at the same time it currently doesn't block self-contained MSIX deployment and so I don't see any net-new concerns by allowing it for a WinRT component.

An example of using https://github.com/AaronRobinsonMSFT/DNNE for self-contained components is here: https://github.com/jlaanstra/CsWinRT/tree/user/jlaans/self-contained

An example of using https://github.com/AaronRobinsonMSFT/DNNE for self-contained components is here, in the NativeHost project of src/Samples/BgTaskComponent/BgTaskComponent.sln: https://github.com/jlaanstra/CsWinRT/tree/user/jlaans/self-contained

@jlaanstra @AaronRobinsonMSFT - to clarify, is there a way to support self-contained C# WinRT components, or is further work in CsWinRT required for that support?

or is further work in CsWinRT required for that support?

More work is needed. @jlaanstra was able to create a host that supports self-contained using DNNE but the built-in one needs to be updated to support the scenario. It is up to C#/WinRT to determine if self-contained is needed or not. There are UX and scenario limitations that need to be understood before officially supporting it.

Thanks @aaronrobinsonmsft.
I've opened https://task.ms/39162576 to track this

I'm trying to author a component (.NET 6) that will be consumed by:

A packaged C++ process
A packaged C# process (different package)
A PowerShell module

This issue has me worried that my packaged scenarios won't work without .NET 6 being installed.  Given that these scenarios revolve around installation/setup of systems, there is a very real possibility of it not being present.
Am I understanding it correctly?
Fortunately, I think we could bootstrap ourselves if needed, but I don't want for that to be a requirement if possible (it may even be explicitly blocked from being one).

How is it possible this is unresolved for so long? It means the feature is pretty much unusable for MSIX / Windows App SDK?

I have looked into this myself and added self-contained support to CsWinRT in a fork, based on the implementation in https://github.com/microsoft/CsWinRT/issues/1141#issuecomment-1074293306 but without DNNE and additional binaries.
I also added a WinUI 3 sample project: https://github.com/microsoft/CsWinRT/compare/master...whiskhub:CsWinRT:feature/self-contained
I can confirm the self-contained runtime is loaded as expected in the backgroundTaskHost.exe with my fork, and GetActivationFactory within WinRT.Host.Shim managed code is successfully executed. However, the background task itself is not executed, with the exception being visible:

Exception thrown at 0x00007FFAD33DFE4C (KernelBase.dll) in backgroundTaskHost.exe: WinRT originate error - 0x80131513 : 'Method not found: 'System.Collections.Concurrent.ConcurrentDictionary`2<System.RuntimeTypeHandle,WinRT.IObjectReference> WinRT.IWinRTObject.get_QueryInterfaceCache()'.'.

You can also get the debugger to break on it, if you enable native debugging and set Visual Studio to break for Win32 Exceptions -> WinRT originate errors. This seems to be the same issue as with https://github.com/microsoft/CsWinRT/issues/1277, so there seems to be a more general problem here. To clarify, with the DNNE approach this error does not occur.
I was not able to find out the root cause - that's too deep for me :) Would highly appreciate it if anyone else has more insights!

FYI, you can use Native AOT now, which are self-contained.

Only if you make the entire app NativeAOT

You don't need to, only the class library itself is required to use Native AOT.

You don't need to, only the class library itself is required to use Native AOT. Native AOT deployment should not affect your main app.

It does not work however, when setting <PublishAot>true</PublishAot> for the library while the main app is <SelfContained>true</SelfContained> in the same solution, an error occurs. I am not sure if it is a bug or unsupported behavior.

NETSDK1130	BgTaskComponent.winmd cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130	WinUi3BackgroundTask	C:\Program Files\dotnet\sdk\8.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets

You package the two projects independently, not reference the AOT project in the non-AOT project.

You package the two projects independently, not reference the AOT project in the non-AOT project.

I guess that is a workaround, but a painful one. Having to build and distribute a NuGet package, especially for "local" projects, is far more complicated, than just referencing the project. Additionally, the AOT binary will be larger than the existing runtime.

WinRT components already work framework dependent. This issue is about self-contained deployments, which is already large.

WinRT components already work framework dependent. This issue is about self-contained deployments, which is already large.

Yes, but having an AOT CsWinRT binary next to a self-contained app will also duplicate the runtime to some extent, even with trimming.

Wouldn't it be the same if they both use self-contained regardless?

No, the CsWinRT component and the app would use the same self-contained runtime within the same solution / MSIX package. No duplicates.

Exception thrown at 0x00007FFAD33DFE4C (KernelBase.dll) in backgroundTaskHost.exe: WinRT originate error - 0x80131513 : 'Method not found: 'System.Collections.Concurrent.ConcurrentDictionary`2<System.RuntimeTypeHandle,WinRT.IObjectReference> WinRT.IWinRTObject.get_QueryInterfaceCache()'.'.

I found out the error has something to do with the AssemblyLoadContext in the WinRT.Host.Shim. https://github.com/microsoft/CsWinRT/blob/master/src/Authoring/WinRT.Host.Shim/Module.cs#L76-L106:
Normally, the WinRT.Runtime assembly should be loaded for each AssemblyLoadContext in the protected override Assembly Load(AssemblyName assemblyName), while for all other assemblies null is returned. This should trigger the AssemblyLoadContext.Default.Resolving event, causing the other assemblies to be loaded there in the main ALC. But this event is never raised in the self-contained scenario. So no assembly except the WinRT runtime and System.Private.CoreLib  assembly are actually loaded, causing the missing methods.
I don't know what the reason is and how to fix it yet, though.


flat-manager: Add 'end-of-life' and 'end-of-life-rebase' inputs

Related to https://github.com/elementary/appcenter-reviews/issues/293
TL;DR

There may come a point where an application is no longer maintained. In order to inform users at update or install time that it will no longer get updates.
If the application has been renamed, you can additionally include end-of-life-rebase with the new ID. Recent flatpak versions will prompt user if they'd like to switch to the renamed app.

Source: https://github.com/flathub/flathub/wiki/App-Maintenance#end-of-life

Also you need to rebuild the action so that it works, see https://github.com/bilelmoussaoui/flatpak-github-actions/blob/master/CONTRIBUTING.md#prerequisites

@bilelmoussaoui thank you for your feedback! I hope I have taken all the comments into account.

Thank you for your contribution! there are still some minor things I would like to see changed in the code but I will handle those myself

@bilelmoussaoui thank you for your feedback and your patience with me.


Setuptools 32.1.+

Well, i don't see anyone else asking so I'm going to ask.  Its obvious that you upgraded setuptools to 32.1.1 because in 32.1.2 they started distributing it as a zip file and pygradle gives a "Can't untar file" error.
Is this a pygradle issue or a python issue?  Any leads on how to fix it?

PyGradle does not use setuptools-32.x.
PyGradle before 0.6.x used setuptools-19.1.1.
PyGradle-0.6.x pins setuptools at 33.1.1:

https://github.com/linkedin/pygradle/blob/master/pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/PythonExtension.groovy#L75
https://github.com/linkedin/pygradle/blob/master/pivy-importer/build.gradle#L67

Also, PyGradle does not download other versions from pypi during build of python projects.

https://github.com/linkedin/pygradle/blob/master/pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/tasks/InstallVirtualEnvironmentTask.groovy#L95

Here's the output I get on a fresh build of PyGradle HEAD that succeeds without issues:
13:01:06.852 INFO  c.l.p.i.deps.DependencyDownloader - Pulling in setuptools:33.1.1

Every Python project we build with PyGradle does the same (setuptools is the first thing that gets installed always):
Install setuptools-33.1.1 ........................................... [STARTING]

You didn't mention what version of PyGradle did you get this with?
Try using the latest.
If you got this error on a checkout of PyGradle that is not fresh and was built before with older version, try cleaning up first using ./gradlew clean and then building.
I'm inclined to close this issue because the version of setuptools you mention here is definitely not used with pygradle.

im running a fork because i had to completely rebuild pivy to work on our network.  since we don't have python 2 in our enterprise anymore i upgraded the setuptools to 36 and got the error.  Whats going on is 33.1.1 is a tarball, but 33.1.2 on is a zip.  the pygradle tools pull down the zip properly and its in the cache folders correctly, but when it tries to pip, it trys to untar a zip file.  Im pretty sure thats why you guys stopped with 33.1.1, just wondering if you had a sense of how to fix it.
use your python extension to force 33.1.2+ and you should see the error.

wait, i see what you are saying, you are using the zip version too
WTF, i hate our network.  we have pypi actively blocked on our firewall so whenever distutils tries to resolve the setup_requires, test_requires, etc, and dist utils tries to hit pypi for the meta files, it blows up.  and i can't get distustils to recognize the pypirc file on windows.  so i completely rebuilt pivy to parse the setup.py files and extract all dependencies and put them in the ivy file.  been working very well so far, but this brought me to a halt when i upgraded the thing to setuputils 36, hoping that version would pick up the pypirc file correctly.
its been a week of hell.


feat: test scenarios for core-metadata system events

According to system-events docs,
test scenarios is based on the difference of topic subscribed from mosquitto.
Signed-off-by: melody<EMAIL_ADDRESS>

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[ ] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[ ] I am not introducing a new dependency (add notes below if you are)
[ ] I have added unit tests for the new feature or bug fix (if not, why?)
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

@cherrycl
Hi Cherry, please help review when you have time, thanks.


Add a --host switch to textual console command

We need to had a --host switch to the textual console command which will connect to the given host. At the moment, this defaults to <IP_ADDRESS>, but the switch would allow the console to run on another machine.
Textual (in main) has a TEXTUAL_DEVTOOLS_HOST env var which defaults to <IP_ADDRESS>, textual_dev should populate this env var in the textual run command.

textual_dev should populate this env var in the textual run command.

What does this mean?

textual run launches a process for the textual app, with a number of environment variables. The new TEXTUAL_DEVTOOLS_HOST should go in those env vars.

Thanks. Shouldn't textual run also get the --host option, though?
I'm assuming we may want to attach a running app to a console that is on another machine, in which case the environment variable in the machine where textual run is used can't be set by the command textual console --host ... that was ran in another machine.

Yes, my mistake. the switch belongs on textual run

@rodrigogiraoserrao Has there been any work done on this? I don't see a PR.

#16 has been around for a while. It lacked a Textual update which has now been pushed.


Add Google Generative AI LLMs

Add Google Gemini LLMs via Google API with function calling support.
Fixes: #456

Just so you're aware, there's two Gemini API's. The second one is Google's Vertex API, and I believe it's slightly better suited here.

Just so you're aware, there's two Gemini API's. The second one is Google's Vertex API, and I believe it's slightly better suited here.

Do you think it makes sense to support both, e.g., through the constructor or class methods? Or just Vertex?

_

Commenting on this for support.
Base on the documentation, I think vertex ai is more production and enterprise ready. I have a vertex version working locally. I can add @rsinnet as a co-author in a new PR if this is something you want.

Pleasure to get this email
On Tue, 15 Oct 2024, 15:38 Chenghao Mou, @.***> wrote:

Commenting on this for support.
Base on the documentation
https://cloud.google.com/vertex-ai/generative-ai/docs/migrate/migrate-google-ai,
I think vertex ai is more production and enterprise ready. I have a vertex
version working locally. I can add @rsinnet https://github.com/rsinnet
as a co-author in a new PR if this is something you want.
—
Reply to this email directly, view it on GitHub
https://github.com/livekit/agents/pull/777#issuecomment-2413945597, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BJ4ZBAV73SER3CX3AYFZF7LZ3ULETAVCNFSM6AAAAABOOJLKDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHE2DKNJZG4
.
You are receiving this because you commented.Message ID:
@.***>


Can`t get pulsar-client-go lib

Hello!
Centos 7
go version go1.12.1 linux/amd64
Reproduce:
yum install apache-pulsar-client-2.3.0-1.x86_64.rpm
yum install apache-pulsar-client-devel-2.3.0-1.x86_64.rpm
go get github.com/apache/pulsar/pulsar-client-go/pulsar

Result:
Error:
# github.com/apache/pulsar/pulsar-client-go/pulsar
src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:101:3: could not determine kind of name for C.pulsar_configure_set_negative_ack_redelivery_delay_ms
src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:263:2: could not determine kind of name for C.pulsar_consumer_negative_acknowledge
src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:268:2: could not determine kind of name for C.pulsar_consumer_negative_acknowledge_id

How to fix it?

This looks like a version mismatch between the Go client and the installed C++ library.

This looks like a version mismatch between the Go client and the installed C++ library.

Fixed! Thx

@xrayid How fixed it?

I installed go library using go dep (package version v2.3.0)

Doesn't work at all:
pip3 install pulsar-client
Collecting pulsar-client
ERROR: Could not find a version that satisfies the requirement pulsar-client (from versions: none)
ERROR: No matching distribution found for pulsar-client
pip3 install pulsar-client==2.4.0
Collecting pulsar-client==2.4.0
ERROR: Could not find a version that satisfies the requirement pulsar-client==2.4.0 (from versions: none)
ERROR: No matching distribution found for pulsar-client==2.4.0
I am on Windows 10, python 3 version.

That's because the pulsar-client packages for after 2.3.1 aren't available outside linux because CI is broken

makes sense, thank you, though it wasn't written anywhere in the documentation.
managed to install in Ubuntu 18.04.2 LTS (Bionic Beaver) running in VirtualBox under Windows 10 for python version 2
But even simple got doesn't work for me:
import pulsar
client = pulsar.Client('pulsar://localhost:6650')
producer = client.create_producer('my-topic')
producer.send("testing")
client.close()
2019-07-16 18:19:47.192 INFO  ConnectionPool:72 | Created connection for pulsar://localhost:6650
2019-07-16 18:19:47.193 ERROR ClientConnection:360 | [ -> pulsar://localhost:6650] Failed to establish connection: Connection refused
2019-07-16 18:19:47.193 INFO  ClientConnection:1297 | [ -> pulsar://localhost:6650] Connection closed
2019-07-16 18:19:47.193 ERROR ClientImpl:182 | Error Checking/Getting Partition Metadata while creating producer on persistent://public/default/my-topic -- 5
2019-07-16 18:19:47.193 INFO  ClientImpl:482 | Closing Pulsar client
Traceback (most recent call last):
File "flask_server.py", line 70, in
pulsar_producer()
File "flask_server.py", line 59, in pulsar_producer
producer = client.create_producer('my-topic')
File "/usr/local/lib/python2.7/dist-packages/pulsar/init.py", line 476, in create_producer
p._producer = self._client.create_producer(topic, conf)
Exception: Pulsar error: ConnectError
2019-07-16 18:19:47.200 INFO  ClientConnection:222 | [ -> pulsar://localhost:6650] Destroyed connection
changing 'pulsar://localhost:6650' -> 'http://<local_ip>6650' doesn't work either.
I am really confused with this library.

Did you manually create ns1?   The only namespace that exists by default is named default.

Hi
I found it here: https://github.com/streamlio/pulsar-python-tutorial
this tutorial are just horrible, do you have normal uptodate version link please ?
BTW I have tried as you suggested, it's the same error.
python pulsar_consumer.py
2019-07-16 19:49:24.587 INFO  Client:88 | Subscribing on Topic :persistent://public/default/my-topic
2019-07-16 19:49:24.587 INFO  ConnectionPool:72 | Created connection for pulsar://localhost:6650
2019-07-16 19:49:24.588 ERROR ClientConnection:360 | [ -> pulsar://localhost:6650] Failed to establish connection: Connection refused
Gurgen

That other tutorial is very old.
Do you see any logs from pulsar standalone at all?

thank you very much. Just your comment helped me :-D
I tried to install standalone from scratch as it is mentioned here for version 2.4.0
https://pulsar.apache.org/docs/en/standalone/
now standalone runs fine (bin/pulsar standalone)
and I managed to send & receive messages.

Hi
I have another question :)
The following schema doesn't work at all during create_producer, I want to pass array of maps (list of dictionaries), why it doesn't work ? please ?
class MySchema(Record):
a1 = String()
b1 = Long()
# array of dict, json data
data = Array(Map(String()))
this crashes during instance creation, even I didn't reach to send.
producer = client.create_producer(topic='mytopic15', schema=AvroSchema(MySchema))
Gurgen

@gurgen2727 Have you tried joining the Pulsar Slack? I think that might be a more appropriate forum for these questions than an unrelated bug thread.

@grantwwu because nobody knows the answer and nobody answers for days there, you are the only person who responded to my question, also if you are concerned about ticket, don't worry I will remove all my comments as soon as I finish my projects, so your ticket will be clean.
Thanks
Gurgen

...Please don't delete your comments...
I'm in the Slack as well.  It really depends on whether I (and other people) are free and whether or not we're capable of answering the question.  For example I recently saw your Avro schema question and didn't answer it because I've never worked with it.


NSwagStudio new version no longer generates a Constructor with BaseUrl

I am not 100% if the owner of this repo is also responsible for NSwagStudio, but I figured I would ask this here first.
In my attempt to figure out a Dictionary of nullable properties I updated my NSwagStudio.
The new version of NSwagStudio apparently stopped generating the BaseUrl property into the Generated client constructor.  This is negatively impacting my logic because I was using Unity and ParameterOverrides to set the BaseUrl.  I am using the generated interface, so we can Unit test the logic around the generated client logic.  And because that interface has nothing for the Base URL.  I cannot set the Base URL while resolving interface.
I really want to avoid editing the Generated class too much (using the nswag configuration file to get as close to correct).  Side note: I currently have to do a find and replace on all DisallowNulls to AllowNulls.
Any ideas?  Was this intended to remove the base url from the constructor?

using (var http = new HttpClient())                 {                     var emsClient = Container.Resolve<IXmsnAssetClient>(new ResolverOverride[]                     {                         new ParameterOverride("baseUrl", Properties.Settings.Default.XmsnAssetBaseUrl),                         new ParameterOverride("httpClient", http)                     });                     var response = func(emsClient).GetAwaiter().GetResult();                     return response;                 }

Can you provide the version you used before?

I am honestly not sure.  I am currently at 13.10  but i think it was some where in the 12  or early v13

The current default is a property on the client (BaseUrl) and not an injected parameter anymore... mainly because you should either set the base URL on the HttpClient or it is already defined internally (generated) from the OpenAPI spec...

Ok, I didn't realized there was an option to use the baseaddress uri on http client.  I seem to have it working once I unchecked the "Use the base URL for the request"
Thank you


Build with Visual Studio 2022

This change updates the Calculator project
Description of the changes:

Use Visual Studio 2022
Use an Azure Pipelines image which has Visual Studio 2022 installed
Use the v143 C++ build tools
Use the Windows SDK version 22000
Raise the minimum platform version to 17763

As a consequence of this change, we will use the "msix" file extension instead of "appx" for our packages

Update UI tests from .NET Core 2.1 to .NET Core 3.1

/azp run


Add LNW with LAG to user guide

This PR against the update_lag_guide PR is needed to make the document part of the user guide.
@aashishkuma - You should be able to merge this into your PR. It does not require any approvals

Might be better to just add this commit to PR #359 or alternatively target merge this into main branch

This PR was against P4 #359. It is set up to be merged into the PR. It requires no approvals, so it's really easy for the original author to merge it into their PR (which is "adding it to the commit"). Merging it into the main branch would be unnecessary extra work.


Putty Public Keys

Pre-Azure-Loves-Linux, Putty established itself as the default way to access Linux and Unix VMs via ssh. The putty tool used to generate keys on a windows desktop is puttygen, and the default key format is .ppk. I would like to upload both the public  key to Azure Key vault for use with ad-hoc creation of VMs. However I have failed to succeed - the keyvault doesn't preserver the format of the keys. Is there a way to make Azure kv work with default putty key format? I have tried manual cut-paste upload and via cli. Private key upload doesn't work either.

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

ID: fbbd6dbf-a5be-f8cf-4f8d-08809db1d973
Version Independent ID: 50b13de9-334d-0db5-492c-862935df2cd9
Content: Create and use an SSH key pair for Linux VMs in Azure
Content Source: articles/virtual-machines/linux/mac-create-ssh-keys.md
Service: virtual-machines-linux
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

@SharmainePopov Thanks for the feedback! We are currently investigating and will update you shortly.

@SharmainePopov from my understanding KeyVault only supports RSA keys and not .ppk file formats. So you would need to convert the .ppk to RSA before uploading. This is a good feature ask for the KeyVault team.
Suggest you leave that feedback here.
I will close this out but if you have additional questions please reopen and we can continue.

They are RSA keys. As I said I also converted them to .pem but same problem.
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. | sharmaine.popov<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Micah<EMAIL_ADDRESS>Sent: Monday, April 9, 2018 3:30 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Sharmaine Popov<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Putty Public Keys (#6889)
@SharmainePopovhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharmainePopov&data=02|01|Sharmaine.Popov%40microsoft.com|8229d936b80f416a297608d59e5038ab|72f988bf86f141af91ab2d7cd011db47|1|0|636588989742575824&sdata=fXo5n5oDny3dkhXk85%2BvuFEt4FqO7Z6nvocnATzL1O0%3D&reserved=0 from my understanding KeyVault only supports RSA keys and not .ppk file formats. So you would need to convert the .ppk to RSA before uploading. This is a good feature ask for the KeyVault team.
Suggest you leave that feedback herehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Freserved-vm-instances%2F&data=02|01|Sharmaine.Popov%40microsoft.com|8229d936b80f416a297608d59e5038ab|72f988bf86f141af91ab2d7cd011db47|1|0|636588989742585824&sdata=oENOWfHi8CUGFg%2BMQbC1Vvm8kAehg4pN5p7PP7rK4B8%3D&reserved=0.
I will close this out but if you have additional questions please reopen and we can continue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F6889%23issuecomment-379866882&data=02|01|Sharmaine.Popov%40microsoft.com|8229d936b80f416a297608d59e5038ab|72f988bf86f141af91ab2d7cd011db47|1|0|636588989742595832&sdata=BnKsSEAO0grcHG8jE8MkMFcL8D6Uz887U6KiHyQAXoQ%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAhFW2p18H-0c5f9Wg3dlc2JIsn_7wEvrks5tm7abgaJpZM4TLlHE&data=02|01|Sharmaine.Popov%40microsoft.com|8229d936b80f416a297608d59e5038ab|72f988bf86f141af91ab2d7cd011db47|1|0|636588989742595832&sdata=FKV1LHeQem74qx8aoNABI%2BYYkPKVEgPyV3OaYAC4IvI%3D&reserved=0.

@SharmainePopov May I suggest asking on the Key Vault DL, as this is beyond scope for the doc that the issue is raised against? If there is product feedback or incorrect handling of the provided keys, that engineering team is best placed to provide additional support.

@SharmainePopov so when you upload the key say in .pem format using CLI to keyvault and then download that key the formatting changes?
https://stackoverflow.com/questions/11771378/ssh-keygen-is-not-recognized-as-an-internal-or-external-command

yES
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. | sharmaine.popov<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Micah<EMAIL_ADDRESS>Sent: Monday, April 9, 2018 3:53 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Sharmaine Popov<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Putty Public Keys (#6889)
@SharmainePopovhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharmainePopov&data=02|01|Sharmaine.Popov%40microsoft.com|80cd28e4b42b4514248208d59e538b33|72f988bf86f141af91ab2d7cd011db47|1|0|636589004011062658&sdata=CnEdxf8vQ%2B%2BouGNTaCKHd5IdO8vfwG7okH1xzltyKDo%3D&reserved=0 so when you upload the key say in .pem format using CLI to keyvault and then download that key the formatting changes?
https://stackoverflow.com/questions/11771378/ssh-keygen-is-not-recognized-as-an-internal-or-external-commandhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11771378%2Fssh-keygen-is-not-recognized-as-an-internal-or-external-command&data=02|01|Sharmaine.Popov%40microsoft.com|80cd28e4b42b4514248208d59e538b33|72f988bf86f141af91ab2d7cd011db47|1|0|636589004011072666&sdata=IH%2FTsmzXjvxZDAXG9TgDE5k4CwQfxlKsQrbq9Eqi6N4%3D&reserved=0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F6889%23issuecomment-379873587&data=02|01|Sharmaine.Popov%40microsoft.com|80cd28e4b42b4514248208d59e538b33|72f988bf86f141af91ab2d7cd011db47|1|0|636589004011082700&sdata=AsI7kZ3g7zAWczk009QyLVjtXPhayHtQ%2BlCbdYirM%2F0%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAhFW2r-zeDY8EduV3LQVjZXKKl3foh-aks5tm7wugaJpZM4TLlHE&data=02|01|Sharmaine.Popov%40microsoft.com|80cd28e4b42b4514248208d59e538b33|72f988bf86f141af91ab2d7cd011db47|1|0|636589004011082700&sdata=2BE5hpV4qhEy3QPPUSgAo5%2FUf77%2F34VK1vCjj9PXBo8%3D&reserved=0.

I could but it is not a vm problem.
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. | sharmaine.popov<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Micah<EMAIL_ADDRESS>Sent: Tuesday, April 10, 2018 4:21 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Sharmaine Popov<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Putty Public Keys (#6889)
@SharmainePopovhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharmainePopov&data=02|01|Sharmaine.Popov%40microsoft.com|1143f9fcd2e040b2ef4308d59f20a48f|72f988bf86f141af91ab2d7cd011db47|1|0|636589884906396744&sdata=PuSLIskrnM6j12jywIaf3cHpgXObDPSid8D%2BY9ktCFo%3D&reserved=0 thanks for confirming. Seeing as this does not directly have to do with the document referenced can you please describe and post your issue here:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesforWindowshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2Fhome%3Fforum%3DWAVirtualMachinesforWindows&data=02|01|Sharmaine.Popov%40microsoft.com|1143f9fcd2e040b2ef4308d59f20a48f|72f988bf86f141af91ab2d7cd011db47|1|0|636589884906396744&sdata=Rs9eCChp527vNhMAU5p8vrXfj8PegcqnlzUN61wz0d8%3D&reserved=0
That way we can have the correct engineers take a look and properly assist.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F6889%23issuecomment-380233873&data=02|01|Sharmaine.Popov%40microsoft.com|1143f9fcd2e040b2ef4308d59f20a48f|72f988bf86f141af91ab2d7cd011db47|1|0|636589884906406744&sdata=D95t%2FvGTS%2F6SP9xvwvH2YjSBz6cSuURjHOUg9vQVuqo%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAhFW2lvVKsbN0-arWuAckSlPZ2QNdj3xks5tnRRIgaJpZM4TLlHE&data=02|01|Sharmaine.Popov%40microsoft.com|1143f9fcd2e040b2ef4308d59f20a48f|72f988bf86f141af91ab2d7cd011db47|1|0|636589884906416761&sdata=D7FqJkXoHnrv6p5caYhweQmUTfpdxoqFVKykbj2h2s4%3D&reserved=0.

@SharmainePopov ah yes you're right. Sorry about that. This is the correct fourm:
https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=AzureKeyVault

Any updates on this? I'm surprised that Azure KeyVault doesn't support ppk keys generated by PuttyGen =S


[Event Change] Codeunit Purch.-Post - OnBeforeCheckExternalDocumentNumber

Hi, I want to check the external document number for an additional table. Therefore, it would be helpful if the global variables "GenJnlLineExtDocNo" and "GenJnlLineDocType" were add to the event "OnBeforeCheckExternalDocumentNumber" as parameters.
LOCAL [IntegrationEvent] OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry : Record "Vendor Ledger Entry";PurchaseHeader : Record "Purchase Header";VAR Handled : Boolean;GenJnlLineExtDocNo : Code[35];GenJnlLineDocType : Integer)

One more question: Why is the parameter VendLedgEntry passed as var in function CheckExternalDocumentNumber?
If the VendLedgEntry is found, an error is thrown. In addition, the global variable VendLedgEntry is read again before use via the FindVendorLedgerEntry function (e. g. in the function UpdatePurchaseHeader or PostBalancingEntry).
In my case, an adjustment would be unnecessary if the parameter was not passed by var or if a local variable was used. Is the change possible?
Thank you very much!

We already have this event:
LOCAL CheckExternalDocumentNumber(VAR VendLedgEntry : Record "Vendor Ledger Entry";VAR PurchaseHeader : Record "Purchase Header")
OnBeforeCheckExternalDocumentNumber(VendLedgEntry,PurchaseHeader,Handled);
IF Handled THEN
EXIT;

Hi Alexander,
you're right, the event already exists.
But I needed the two additional parameters for my case (the global variables "GenJnlLineExtDocNo" and "GenJnlLineDocType").
Could you add the two parameters please?


Facebook authentication never completes

Windows 7
Chrome 39.0.2171.95
I'm using ember-simple-auth-torii and torii's Facebook provider.
A user reported "the popup instead of closing redirected me to the site's front page. So the popup would show the site's front page and the windows I had originally opened in the browser just showed "Signing in..." and nothing would happen."
The token managed to make its way to the server and responded with a 200, and the user was successfully authenticated with Facebook server-side.
The user tried repeatedly tried to do this to no avail, but at some point it worked. No errors were seen in the console. They also hit the URL like /?code=xxxx on the front-end.
I have the following authentication code:
`import ENV from 'cookacademy-web/config/environment'`
`import Ember from 'ember'`
`import Session from 'simple-auth/session'`
`import OAuth2 from 'simple-auth-oauth2/authenticators/oauth2'`

FacebookAuthenticator = OAuth2.extend
  torii: null
  provider: "facebook-oauth2"
  authenticate: (credentials) ->
    that = this
    new Ember.RSVP.Promise((resolve, reject) ->
      that.torii.open(that.provider).then((data) ->
        data =
          facebook_auth_code: data.authorizationCode
        that.makeRequest(ENV.OAUTH_SERVER_TOKEN_ENDPOINT, data).then ((response) ->
          Ember.run ->
            expiresAt = that.absolutizeExpirationTime(response.expires_in)
            that.scheduleAccessTokenRefresh response.expires_in, expiresAt, response.refresh_token
            resolve Ember.$.extend(response,
              expires_at: expiresAt,
              access_token: response.access_token,
              user_id: response.user_id
            )
        ), (xhr) ->
          Ember.run ->
            reject xhr.responseJSON or xhr.responseText
        )
      )

FacebookAuthentication =
  name: "facebook-authentication"
  before: "simple-auth"
  after: 'torii'
  initialize: (container) ->
    Session.reopen
      user: (->
        userId = @get('user_id')
        if (!Ember.isEmpty(userId))
          return container.lookup('store:main').find('user', userId)
      ).property('userId')
    torii = container.lookup('torii:main')
    authenticator = FacebookAuthenticator.create
      torii: torii
    container.register("authenticator:facebook", authenticator, {
      instantiate: false
    })

`export default FacebookAuthentication`

My best guess is that the promise wasn't resolved somehow? I can't honestly be sure what's happening.
I can try to provide more information if needed. I cannot personally reproduce so far.

We've had something like this happen as well when our redirect url wasn't setup correctly.
It wouldn't respond to the original site (making it hang), and would simply continue on the popup with the wrong redirect url (which got redirected to a login page, in our case).
Very unlikely because other users aren't experiencing this, but it might somehow be the case for you?

Hola! Facing this on some mobile devices.
@malina @jdurand if you open the console in the blank popup, do you also have this Scripts may not close windows that were not opened by script. warning ?
I can currently reproduce it by using Firefox Developer in responsive design mode.
To my mind, it sounds like Facebook's /dialog/oauth page is using some window.open()-ish API call for redirection. The problem I could picture is, in their implementation of this redirection API, some browsers reset the window.opener property of the child popup.
Then, as:

All OAuth2 implementations I know open and close a new window or iframe
HTML specifies that browsers should check that the script calling window.close() is its window.opener

It can't work. I unfortunately don't have time to try it out, but probably editing this block to do something like mentioned here can work instead:
if (windowObject.opener === window) {
  windowObject.close() ;
} else {
  // WARNING: this assumes that the provider was facebook
  window.location = 'https://www.facebook.com/dialog/return/close' ;
}

A bunch of other very hacky workarounds exist, but they sound too edgy to me.
Related: https://github.com/Vestorly/torii/issues/251, https://github.com/Vestorly/torii/issues/274, and https://github.com/Vestorly/torii/issues/249.
Related on stackoverflow: this, this, and this.
Hope it helps! ❤

Sorry, this was so very long ago that it's fine to close this. I'll leave it open in the event others are having the issue, but I am no longer using this actively and it's not relevant to any current needs. I'm unsubscribing from the thread, though feel free to reach out to me otherwise if needed.

@JoshSmith confirmed: my issue sounded like a (very edge-case) browser (or maybe Facebook?) bug. It just disappeared some days after, and I couldn't reproduce it anymore. ;-)
Thanks for the answer anyways, have a very nice day! ;)


Neuromorphic Calculator added

I have added a neuromorphic calculator
Please review
fixes #228

Add Screenshot of output in REDAME

Updated Readme


Merge smoke-test into master with Microsoft.ML.Experimental

Added Microsoft.ML.Experimental
https://review.docs.microsoft.com/en-us/dotnet/api/microsoft.ml.experimental?view=ml-dotnet-preview&branch=smoke-test

I noticed Experimental was mentioned in the release notes, so I was adding it.

From: Nat Kershaw (MSFT<EMAIL_ADDRESS>Sent: Wednesday, August 7, 2019 10:01:10 AM
To: dotnet/ml-api-docs<EMAIL_ADDRESS>Cc: John Alexander<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dotnet/ml-api-docs] Merge smoke-test into master with Microsoft.ML.Experimental (#107)
@natke requested changes on this pull request.
Need to understand more about these changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fml-api-docs%2Fpull%2F107%3Femail_source%3Dnotifications%26email_token%3DABEVBQM3SU7SLZFTG5MAGN3QDLPTNA5CNFSM4IKAZWAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCA3M7PA%23pullrequestreview-272027580&data=02|01|john.alexander%40microsoft.com|1720eb4bbbda43bab74e08d71b4815ea|72f988bf86f141af91ab2d7cd011db47|1|0|637007868722042667&sdata=0sHlukEVZ4x8BPbVMIFcjISdyYrJlNA1WTXcMWx20AI%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABEVBQL37FVDDQDDISBXQP3QDLPTNANCNFSM4IKAZWAA&data=02|01|john.alexander%40microsoft.com|1720eb4bbbda43bab74e08d71b4815ea|72f988bf86f141af91ab2d7cd011db47|1|0|637007868722042667&sdata=jAOm74f9FVUgksQlqttlw1iX2LbtWFxOffjYb71vi1A%3D&reserved=0.

There are 533 files changed in this PR, and 120 or so in the previous. Looks like all classes have a <U+FEFF> character at the beginning of the line - any idea what is causing that?


Arrow Texts cannot have monospace font style

As you can see below, the font style of the arrow is set to monospace but it renders it to the fallback font:

I'm experiencing this in the version v2.0.3 of the extension for the VS Code.

Hi, thanks for the report!

Hey we've fixed this internally now, and it should get released next week.
You can test it out before then at https://staging.tldraw.com/

@TodePond thanks a lot !


Support Proxy option on the action

For corporate environments, sometimes connectivity between GHEC and GHES needs proxy configuration. Since this action is using octokit objects which have support for HTTPS_TOKEN, I've considered to extend the behaviour.

The agent initialises to null.
If an HTTPS_PROXY environment variable (or lowercase https_proxy) is provided, a proxy configuration is loaded into the agent variable.
The request parameters are passed as usual.

By using the object request, we can extend to additional parameters in the future if required.

@peter-murray could we get a review on this?

I need to take a deeper look into this, I am all for supporting it, will hopefully get this reviewed in the next couple of days

I took these changes, added some more configuration and tests to validate it and then released this under v2.
Thank you for your contributions 🙇 sorry it took so long for me to come back to this.


Different size of buttons

Make a setting to choose between 2 size of buttons - icons only and icon with text (already done).

Or a compact dropdown menu to choose from?
Can be UI improved with a tiny self-coded jquery plugin as well ...

It depends... first of all I would like to see main core features and then we can handle this. CSS part is simple, I am not a jQuery guy so I am free to discuss it :)


Autoscaling not working as expected

I am working on performance testing our application and am having trouble with the concept of auto scaling.
We have a topic that is made up of 10 partitions and our Azure Function is on the premium plan. When I dump 50k messages in the topic, the most I'm able to get the function app to scale out to is 3 workers. If we have 10 partitions why isn't the function app scaling out to 10 workers?
Are there any settings we can modify to maximize throughput in our function app.
At an average message process rate of 200ms and 50k total messages, it would take us almost 1 hour to process all these messages. If we scaled out to 10 it would only take us about 15 mins.

@TsuyoshiUshio

Did you set up Runtime Driven Monitoring?  This should be On.

Generally speaking, scaling is not only the partition. the number of the partition is upper limit.
Our scaling logic increase the worker according to the length of messages on the brokers. It is controlled by lagthreashold.
https://github.com/Azure/azure-functions-kafka-extension/blob/dev/src/Microsoft.Azure.WebJobs.Extensions.Kafka/Listeners/KafkaTopicScaler.cs#L194
You can control the scale by the LagThreshold. It is by default 1000. Decrease the number, then you will get faster scale until the number of the partition. The downside is it is easy to scale out, that means cost more.
https://github.com/Azure/azure-functions-kafka-extension/blob/71d7399637b80082b5d443f4ade26ea5112c7354/src/Microsoft.Azure.WebJobs.Extensions.Kafka/Trigger/KafkaTriggerAttribute.cs#L115

I was missing that setting, thanks for pointing that out.


Adding handling of Cell Measures attribute

So, following a support ticket and discussion with @marqh about this, I and @scmc72 have had a look at adding the ability to include the cell measures attribute from netCDF files in cubes. We've intentionally made this pull request early on to get some feedback on the direction our approach is taking.
We decided to treat the cell measures data in a very similar way to an auxiliary coordinate, except to list the cell measures standard name in the cube attributes and allow the user some way to access the underlying data as a coordinate object. We made the subclass CellMeasures of AuxCoord essentially so that we could change the string representation to be appropriate for printing the cubes attribute dictionary. We'd further intend to add a cell_measures property to the cube rather than having the user get the data from the attributes dictionary and I'm sure there are many other improvements still to be made from where we are now.
We'd be interested to hear opinions on this kind of approach or even suggestions of a totally different way of handling cell measures (e.g. making a cell_area cube) before we go any further.

#211

Note that this PR does not include changes to allow cell measures on a cube to be saved to a file, and nor do I think it should. Instead this PR represents a valuable first step to being able to access cell measures from an Iris cube; saving cell measures and other worthwhile cube cell measures functionality can be added in the future.

I'm interested by the choices with respect to subclass.
You should not use the Coord class directly, as this is an abstract class.  You could use AuxCoord, but there is some behaviour and data which doesn't quite fit (e.g. bounds).  This is illustrated by you throwing away elements from the constructor.
It may be the there isn't very much code required for a new CellMeasures class based on a Coord and use this to contain the cell_measure information.
I'd like to see a
cell_measures
attribute on a cube, not any use of the attributes dictionary

Thanks @dkillick  and @marqh for your thoughts - with those in mind I've made some changes/additions. There are still a number of things I would intend to add at this point (Importantly, support for slicing cube operations to also slice cell_measures data, dealing with cube maths operations and broadcasting, etc.) but before I spent time implementing all those changes I wanted to see if this direction seems more in line with what you were suggesting?

this work is ongoing in other PRs, so I'm going to close this one


Add actions and improve experience for Virus Total connector

Please check the following conditions for your PR.

[x] apiDefinition.swagger.json is validated using paconn validate command.
[x] apiProperties.json has a valid brand color. Invalid brand colors are #007ee5 and #ffffff.

JFI - Please approve below breaking changes
##[error]The output field has been deleted. Existing flows may be broken if they are using this field and actual payload has been changed. ValuePath: operation/VirusTotalRetrieveInfo/responses/200/schema/data Source: NewSwagger ##[error]The output field has been deleted. Existing flows may be broken if they are using this field and actual payload has been changed. ValuePath: operation/VirusTotalRetrieveInfo/responses/200/schema/meta Source: NewSwagger


Auto-scale geometry tile axes when a table is linked [#163736202]

do we intend to eventually rescale the graph when the user adds additional table points to an already shared table?

That's potentially another story, not part of this one. Then there's the question of whether we should rescale when values of existing points are edited. Then there's the question of when/whether we should rescale the axes smaller rather than having it always be a one-way ratchet of increasing axis scales. Then there's the question of how all that interacts with undo/redo. Then there's...


Added string concatenation and display it

Description
Adde a variable a $helloWorld which concatenates $hello and $world into one string and displays with with the echo command.

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


circle.yml doesn't support linux

circle.yml only supports xcode and those of us without access to the circleci xcode system have to modify it, this is inconvenient at a minimum. I posted "how to use circleci for linux, xcode, .. in one project" to hopefully see if there is a solution.

Yes, I've talked with the CircleCI guys about this too and it seems, at least to me, that support for multi-OS builds will not appear anytime soon :(
But I've enabled Permissive building of fork pull requests and now every PR should run with my account on CircleCI (with the enabled OSX support).
The linux hosts are monitored on TravisCI via our .travis.yml.
Closed, as there is nothing we can do about this. For contributions it's fine to run the test locally and let both CircleCI and TravisCI run for each PR.


bazel External dependency header file not found

The internal dependency header file can be found, but the external dependency header file cannot be found. It is estimated that there is a problem with the path processing

I checked the reason. It was missing to resolve the bazel dependency configuration, because the dependency library name needs to be changed to the library path. This mapping relationship is in the bazel configuration

It looks like you have an answer to your question. There is also more information in the README on how to automatically substitute OUTPUT_BASE with the correct value. Please feel free to reopen if it is not resolved.


Ctcp 1220/publish sprint 18 and 19 roadmap updates

Looks great. How about adding a link to the P5 testing guide to the list under "Related phase 5 documentation" ?

@PeterBandura - The P5 testing guide seems to be only on QA for now. Also, doesn't James want more changes to it before it is externalised/published?

Good point. The Testing Guide is currently in QA. It would only make sense to link from the Roadmap to the Testing Guide once the Testing Guide has been published. I thought we were aiming to publish the Test Support API, then the Roadmap and the Testing Guide simultaneously, but that might not be the case.


Fix typo in docstring?

I think this fixes a typo in the tripcolor docstring - for tripcolor, should the nodal value of the surface plot bez[t[i,j]] instead of z[i,j] (which is the one for dgtripcolor)?

Thanks for catching that!