Support ASP.NET Core 2.0

is there a row map?

We will target asp.net core 2 preview 2 once it is released.

https://www.nuget.org/packages/Microsoft.AspNetCore/2.0.0-preview2-final looks like it's just been released.

thx for the heads up

Should we expect an identityserver4 support for asp.net core 2.0 preview2 anytime soon? Would you be able to estimate when, approximately?

No, as we're both already quite booked with consulting and holiday travel.

Would there be any workaround that we could do to have a temporary fix for this or do we have to wait on you guys to release it?

Hire us to accelerate the process.

I would if I could

I'd be willing to sponsor you one beer.

Maybe we could crowd source this :) ?

I appreciate the positions individual developers are in trying to use FOSS to get their jobs done. Companies don't usually know (or care) what tools you're using to get the job done, and they miss the point that this FOSS is not really free. If the company has a need for it, then they should be led to understand that some cost must be incurred. If they aren't willing to do that, then the individual devs have to explain to upper management that they must wait until the project owners take time away from their paying jobs and families to work on this product that your company is using for free.

Absolutely agree with everything you are saying.  Was suggesting that us developers at smaller companies that cannot afford to hire you by themselves, perhaps it could be done as a group.  I am sure I could convince my boss to make a healthy contribution, but only that.  I have no problem explaining the situation to him as you have written above.  We are already getting a lot for nothing.  What you and Dominick have done is amazing and gratefully received.
I'm not trying to make a suggestion you wouldn't want, so feel free to delete my post.

perhaps it could be done as a group

I appreciate the sentiment. Personally I'd be uncomfortable if it was individual contributors -- your companies should be paying for this, not you. Do you pay for a personal copy of Visual Studio to get your job done? Just an example.  This is why I was trying to promote the idea of the devs at the company raising this as awareness to the management level. Also, Microsoft does an awful job in this space, as they have lulled companies into thinking that tooling and frameworks are all free (and the cost comes in by paying for the platform which is where Microsoft makes their money from providing their free frameworks).

I would be happy to contribute to this too. Perhaps a crowdfunding page/contribution page of some sorts?

I did a conversion to 2.0-preview2 - good enough to play around - but needs more work
https://github.com/IdentityServer/IdentityServer4/tree/aspnetcore2

@leastprivilege Glad to hear that. I have couples of projects that depend heavily on ID4 currently.  So there is any plan to release it?

Well - once ASP.NET Core 2 is released - we will have a new version too.

come on, give me a IdentityServer4 2.0 Preview 2

Could you please make it a NuGet package so we can use it? Maybe as a pre-release? My projects are all depending on the core 2.0 (ef, aspnet, identity server) to continue :(

why don't you run build.ps1 yourself - the result will be a nuget package...

First nuget with aspnet core 2 preview2 support:
https://www.nuget.org/packages/IdentityServer4/2.0.0-preview2
Give it a try and let us know what's not working...

Awesome! Will the other packages like identityServer4 with ASP Net identity
or JWT Authentication work fine or do they need to be updated as well?
On Wed, Jul 19, 2017 at 7:54 AM, Dominick Baier<EMAIL_ADDRESS>wrote:

First nuget with aspnet core 2 preview2 support:
https://www.nuget.org/packages/IdentityServer4/2.0.0-preview2
Give it a try and let us know what's not working...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/IdentityServer/IdentityServer4/issues/1055#issuecomment-316290372,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFqqs65RRaXWJlVqh-5eiRNA62NcYFRmks5sPag5gaJpZM4M7gaj
.

they also need updating.

Hi , Thanks for the great work . i'm trying to implement IDS4 in  Core 2.0 ,i also update IDS4 using below nuget comment  " Install-Package IdentityServer4 -Pre" , i'm getting following error
**_app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
{
//Identity Server URL
Authority = "http://localhost:49370",
RequireHttpsMetadata = false,
            ApiName = "api1"
        });_**

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS7069	Reference to type 'AuthenticationOptions' claims it is defined in 'Microsoft.AspNetCore.Authentication', but it could not be found

The access token validation middleware hasn't been ported. Use Microsoft's JwtBearer as a replacement for now.

@leastprivilege  am i correct ?
** app.UseJwtBearerAuthentication(new JwtBearerOptions {
Authority= "http://localhost:49370",
RequireHttpsMetadata=false
});**
is this correct way?

And Audience

I'm getting following
everity	Code	Description	Project	File	Line	Suppression State
Error	CS0619	'JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)' is obsolete: 'See https://go.microsoft.com/fwlink/?linkid=845470'
can you provide any suggestion

Well - there are breaking changes in aspnetcore2 - this is not really the place to discuss them - but have a look here
https://github.com/aspnet/Announcements/issues/262

Any one has working example on it or we only have to wait for aspnet/Announcements#262 ?

services.AddJwtBearerAuthentication(o => {
o.Authority = "http://localhost:49371/";
o.Audience = "myapi";
});
IDS4 running in this URL "http://localhost:49371"  ,but i's not authorize

its showing 500 error , am i wrong in my configuration?

Maybe try setting the default DefaultAuthenticate Scheme to JwtBearer Scheme? This works for me.
            services.AddAuthentication(options =>
            {
                options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
                options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
            });

Or disable https
            services.AddJwtBearerAuthentication(o =>
            {
                o.Audience = "myapi";
                o.Authority = "http://localhost:5000";
                o.RequireHttpsMetadata = false;
            });

Still same issue :( 401 unauthorized ,
services.AddJwtBearerAuthentication(o => {
o.Authority = "http://localhost:49371/";
            o.Audience = "http://localhost:49371/resources";
            o.RequireHttpsMetadata = false;

        });

Did you put  app.UseAuthentication(); before app.UseMvc();  in the Configure method?

Yes @KalBence

in configure method
app.UseAuthentication();
in ConfigureServices method
services.AddJwtBearerAuthentication(o => {
o.Authority = "http://localhost:49371/";
            o.Audience = "http://localhost:49371/resources";
            o.RequireHttpsMetadata = false;

});

this is my request

Remove the last '/' from o.Authority = "http://localhost:49371/";
to,
o.Authority = "http://localhost:49371";

I hope this helps someone trying to use Identity Server with net Core 2 following the IDS4 Tutorial.
After adding the api, change this code in Configure Method (As written in the tutorial):
app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
{
    Authority = "http://localhost:5000",
    RequireHttpsMetadata = false,

    ApiName = "api1"
});

for this (Remember just before app.UseMvc() ):
app.UseAuthentication();

and add this to ConfigureServices
services.AddAuthentication(o =>
{
    o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
    o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
});

services.AddJwtBearerAuthentication(o =>
{
    o.Authority = "http://localhost:5000";
    o.Audience = "api1";
    o.RequireHttpsMetadata = false;
});

This is a workaround while the rest of the identity server nuget's get updated to net core 2.0 !
In the meantime I'll keep testing the project.
Good work guys ! and Awesome project ! Keep it up please !

Dear,
I'm following the official documentation on how to implement my first ID4 server on ASPNET CORE 2.0, but when i try to debug the application i encounter the exception:
System.MissingMethodException:'Method not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.AuthenticationServiceCollectionExtensions.AddAuthentication(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.'
My ConfigureServices() is this:
var migrationsAssembly = typeof(Startup).GetType().Assembly.GetName().Name;
services.AddMvc();
            services.AddIdentityServer()
                .AddTemporarySigningCredential()
                .AddTestUsers(Config.GetUsers())
                .AddConfigurationStore(builder =>
                    builder.UseSqlServer(Configuration.GetConnectionString("credential"), options =>
                        options.MigrationsAssembly(migrationsAssembly)))
                .AddOperationalStore(builder =>
                    builder.UseSqlServer(Configuration.GetConnectionString("credential"), options =>
                        options.MigrationsAssembly(migrationsAssembly)));

My NuGets are:

IdentityServer4.AspNetIdentity 1.0.1
IdentityServer4.EntityFramework 1.0.1
All MS packages are 2.0.0

I tried also using IdentitServer4 => v2.0.0-preview2 but the error remain.
Do you have some suggestion?

@michaelsogos I'll will try to explain it a little more detailed:
Yeah, there is a IdentityServer4 2.0.0-preview2 that works on net core 2, but you only have the server functionality, that means that, if you try to attach a persistent storage like EntityFrameworkCore or an identity manager like AspNet.Identity even when both Microsoft Packages are updated and working on netcore 2, you need to tell IDS4 to use them and for that you need these 2 packages:
IdentityServer4.AspNetIdentity 1.0.1
IdentityServer4.EntityFramework 1.0.1
And they have dependencies to net core 1 and nothing more, so that's why you get exceptions, they are not migrated yet.
So here are your choises (At least what I think)

You can build your IDS4 and web apis using net core 1 as the tutorial and docs explain.
You can build your IDS4 using net core 1; Build your web api's or any other resource using net core 2, and for token validation until the IdentityServer4.AccessTokenValidation package gets migrated, install and configure Microsoft JwtBearer in your resource as suggested by @leastprivilege the way I commented before; If you do so, when we have a net core 2 release, and IdentityServer4 fully supported, you only worry about porting your IDS4 to net core 2, and minor changes in your web apis.

Good Luck Bud !

OK, i get it.

Its released its releases! :)
However guys relax there will be support for ASP.NET Core 1 for a full year so no need to immediately upgrade. Not a good idea anyways before being sure its really stable. :)

@rh78 what do you mean ? I don't see full support yet

I mean ASP.NET Core 2 has been officially released which means that there can be stable and meaningful works to upgrade IDSrv4 now

Omg ! I was so busy at work, I didnt know that .... you made my day @rh78 Thank you !

@DavidNorena Just highlighting yesterday announcements...
https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-core-2-0/
https://blogs.msdn.microsoft.com/webdev/2017/08/14/announcing-asp-net-core-2-0/
https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-standard-2-0/
https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0/

@DavidNorena , following your suggestion with the ASP.NET Core 2 officially, I have the following error when I try the services.AddJwtBearerAuthentication

'IServiceCollection' does not contain a definition for 'AddJwtBearerAuthentication' and no extension method 'AddJwtBearerAuthentication' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)

Is this something that existed on preview and didn't make it to the final version?

Do this;
      services.AddAuthentication(o =>
        {
            o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
            o.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
        }).AddJwtBearer(...);

@DanielSSilva yeah, It was changed, I updated my comment to reflect those changes !

Thank you @rizamarhaban, I was aware that it was on ASP.NET and not on IS4

asp.net core 2.0 scopes are readonly ? how do we set { "offline_access", "email", "roles" } roles

@domenkogler Your solution doesn't appear to do the same thing as the original "Quickstart3_ImplicitFlowAuthentication" sample. If I run the MvcClient from that sample, clicking on the "Secure" link redirects me to the IDS and all is well.
When I do as you've instructed, my secure page returns a 401 instead of going through the auth flow.
Can you help?

Anyone have finished work on net core 2.0.?
give the sample please.

I am trying to port an ASP.NET Core 1.1 client that uses hybrid flow to Core 2.0 (to get better Entity Framework experience).  Like empitegayan above, I cannot find a way to specify the Scope (This may not be the full extent of my problems, but it is where I have got to):
.AddOpenIdConnect(options => {
    options.Authority = "https://localhost:5000";
    options.ClientId = "coretest";
    options.ClientSecret = "mysecret";
    options.ResponseType = "code id_token";
    options.Scope = {"openid", "profile", "name", "email", "role"}  // Read-only compilation error
    options.TokenValidationParameters = new TokenValidationParameters {
        NameClaimType = "name",
        RoleClaimType = "role"
     };
});

Any direction on the correct way to reconfigure hybrid flow from 1.1 to 2.0 would be appreciated.

@Neilski you need to do options.Scope.Add() to add each of them individually, you can't specify them with a constructor anymore.

after configuration you will get this error :
InvalidCastException: Cannot cast Newtonsoft.Json.Linq.JArray to Newtonsoft.Json.Linq.JToken.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler+<HandleRequestAsync>d__12.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()

Thanks @danjohnso - my small brain completely overlooked that possibility!

there is a bug with claim name
this is the response of userinfo
{
  "sub": "10",
  "name": [ "user.name", "User Name" ],
  "AspNet.Identity.SecurityStamp": "240dc561-37ff-4eb9-a58a-f760d1b9abaa",
  "role": [ "CSM_User", "dev", "admin", "SuperAdmin", "Admin", "LdapUser", "TranslationAdmin" ],
  "UnitCode": "3120002566",
  "JobTitle": "Kidemli Yazilim Uzmani",
  "JobPhone": "0212 999 9349",
  "given_name": "User",
  "family_name": "Name",
  "birthdate": "03/06/1978",
  "email"<EMAIL_ADDRESS>  "gender": "male"
}

as you see name claim is an array
would you please look at this link http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
standard name claim is string

@fadihania this is the wrong issue - open a new one with steps to repro.

Any updates here? When could release a version to support .net core 2.0?

There's a prerelease package on NuGet: https://www.nuget.org/packages/IdentityServer4/2.0.0-preview3

Yes but that's not a release. Many libraries that have a dependency on IdentityServer have their upgrades on hold because IdentityServer has not released a 2.0 update yet.

Given that it contains breaking changes, because ASP.NET Core 2.0.0 Identity has breaking changes, starting work against a prerelease package would probably get you ready sooner than waiting for the final 2.0.0 release of the package.

I agree this is helpful if you are developing with IdentityServer.
In my case, I'm using a framework that leverages IdentityServer, and I'm stuck waiting on them waiting on IdentityServer. I can't force them to develop against a prerelease version.

Has anyone tried using an asp.net core 2.0 Client?
Just tried updating one of our clients (which uses IdServer v4), but instead of the client redirecting to IdentityServer url as configured under AddOpenIdConnect it goes to /account/login - like if it were doing regular old identity auth and not recognizing the configuration.
Client's config in startup.cs looks like this
services.AddAuthentication(o => o.DefaultScheme = "Cookies")
    .AddCookie(o => o.Cookie.Domain = settingSection.GetValue<string>("SiteDomainCookie") )
    .AddOpenIdConnect(o =>
                    {
                        o.SignInScheme = "Cookies";
                        o.Authority = authority;
                        o.RequireHttpsMetadata = requireHttpsMetadata;
                        o.ClientId = clientId;
                        o.ClientSecret = clientSecret;
                        o.ResponseType = "code id_token";
                        o.Scope.Add("juntoz");
                        o.Scope.Add("offline_access");
                        o.GetClaimsFromUserInfoEndpoint = true;
                        o.SaveTokens = true;
                    });
         // Add Identity
            services.AddIdentity<IdentityAccount, IdentityRole>()
                    .AddUserStore<AccountStore>()
                    .AddRoleStore<RoleStore>();

@JamesReate, I am trying to do the same thing.  Here is my Core 1.1 authentication code:
    JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
    app.UseCookieAuthentication(
        new CookieAuthenticationOptions
        {
            AuthenticationScheme = AuthenticationTypes.Cookies,
            AutomaticAuthenticate = true,
            AccessDeniedPath = "/AccessDenied",
            ExpireTimeSpan = new TimeSpan(2, 0, 0)
        });
    app.UseOpenIdConnectAuthentication(
        new OpenIdConnectOptions
        {
            AuthenticationScheme = "oidc",
            Authority = "https://localhost:44316",
            ClientId = "coretemplate",
            ClientSecret = "secret",
            GetClaimsFromUserInfoEndpoint = true,
            PostLogoutRedirectUri = "https://localhost:44324",
            RequireHttpsMetadata = true,
            ResponseType = "code id_token",
            Scope = { "openid", "profile", "name", "email", "role" },
            SignInScheme = AuthenticationTypes.Cookies,
            SaveTokens = true,
            TokenValidationParameters = new TokenValidationParameters
            {
                NameClaimType = JwtClaimTypes.Name,
                RoleClaimType = JwtClaimTypes.Role
            }
        });

which I have 'more or less' replicated for Core 2.0
    JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
    services.AddAuthentication(
            options =>
            {
                options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
            })
        .AddCookie(
            options =>
            {
                options.SlidingExpiration = true;
                options.AccessDeniedPath = "/AccessDenied";
                options.ExpireTimeSpan = new TimeSpan(2, 0, 0);
            })
        .AddOpenIdConnect(
            options =>
            {
                options.Authority = "https://localhost:44316";
                options.ClientId = "coretemplate";
                options.ClientSecret = "secret";
                options.GetClaimsFromUserInfoEndpoint = true;
                options.SignedOutRedirectUri = "https://localhost:44324";
                options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.ResponseType = "code id_token";
                options.RequireHttpsMetadata = true;
                options.SaveTokens = true;
                options.Scope.Add("openid");
                options.Scope.Add("profile");
                options.Scope.Add("name");
                options.Scope.Add("email");
                options.Scope.Add("role");
                options.TokenValidationParameters = new TokenValidationParameters
                {
                    NameClaimType = "name",
                    RoleClaimType = "role"
                };
            });

In Core 1.1 this works as expected i.e. authenticates against the Identity Server and returns the expected claims and roles.  In Core 2.0 this almost works but the defined roles are not be mapped.

https://github.com/leastprivilege/AspNetCoreSecuritySamples/tree/aspnetcore2/OIDC

We are working on a 2.0 version - given the number of breaking changes between 1.0 and 2.0 - we need to re-test everything (in addition to substantial under-the-hood changes).
I would recommend everything chills out a little bit - 2.0 hasn't even turned into an LTS version because also Microsoft needs more time to validate that their stuff is good enough.
For those living on the bleeding edge - go with 2.0 and use our preview package. For those that want stable and tested security software: it's done when it's done.

For using the IdentityServer4.AspNetIdentity, I do some simple workaround first just to make it work for my demo tonight. So far so good. Here is the link: https://github.com/IdentityServer/IdentityServer4.AspNetIdentity/issues/33#issuecomment-325934840

I just released another preview to nuget: 2.0.0-preview4.

Looks like the .AddTemporarySigningCredential() is missing in the preview builds. Is this expected?

See #1139, use AddDeveloperSigningCredential instead.

For those of you that had problems co-hosting IdentityServer and an API in the same host, here's a sample: https://github.com/brockallen/IdentityServerAndApi

Hi everyone,
i'd like to start a project for learning with Identity server and .net core and i'd like to start with .net core 2.
Do you have any tutorial or guides on how everything can be done or do i have to start from version 1.1 and try to adapt to 2.0?

@pippo46 I think there are some articles, just googling it. I have noticed that https://github.com/aspnetboilerplate already used the .NET Core 2 with ID4. And I upgraded my sample code to .NET Core 2 yesterday as well. If you want, just have a look at https://github.com/thangchung/blog-core/tree/netcore2. Hope this help.

@thangchung thanks a lot, i'll give it a check

@thangchung - I looked at your blog-core code and noticed you add roles manually as claims to the token in identity server.
Is there a way to automatically include asp.net core identity roles in the identity server token?  I still cannot get roles to come across in the token using asp.net core identity.
I set up my client as @leastprivilege shows here
In my IdentityServer config I have tried adding various Identity Resources (variants of Role, Roles) and in the client config allowed scopes.
I have looked for online examples of this on the IdentityServer and LeastPrivilege repos.
Is there a config setting I am missing to automatically load the roles from the standard asp.net core identity into the identity token claims, or must this be done manually?

@smoses2 You're right. I have added the role manually in the IdentityWithAdditionalClaimsProfileService class, but I think you could do it easier by getting all roles via UserManager().GetRolesAsync(user), and finally putting them into the claims.

Can't upgrade to 2.0. Please help me: https://github.com/IdentityServer/IdentityServer4/issues/1625.

Thanks @thangchung.  I had initially thought the asp.net identity roles magically appeared in token claims.  Now after seeing your example and the one here and here -  it now makes sense.
Would be great to see the IdentityServer 4 documentation describe with examples adding various claims (including roles) via IProfileService - maybe here (and maybe a quickstart addition here).
Here is how I implemented the IProfileService to move the roles to claims (modifying @damienbod  code from the link above):
`        public async Task GetProfileDataAsync(ProfileDataRequestContext context)
{
        var sub = context.Subject.GetSubjectId();
        var user = await _userManager.FindByIdAsync(sub);
        var role = await _userManager.GetRolesAsync(user);

        var principal = await _claimsFactory.CreateAsync(user);

        var claims = principal.Claims.ToList();
        claims = claims.Where(claim => context.RequestedClaimTypes.Contains(claim.Type)).ToList();

        claims.Add(new Claim(JwtClaimTypes.GivenName, user.UserName));

        if (role.Contains("admin"))
        {
            claims.Add(new Claim(JwtClaimTypes.Role, "admin"));
        }
        else if (role.Contains("editor")) {
            claims.Add(new Claim(JwtClaimTypes.Role, "editor"));
        }
        else
        {
            claims.Add(new Claim(JwtClaimTypes.Role, "user"));
        }

        claims.Add(new Claim(IdentityServerConstants.StandardScopes.Email, user.Email));

        context.IssuedClaims = claims;
    }

`

Hi
I am new to this forum. I am also having similar issue.
I have my auth server developed using Identityserver3 framework. i am using local signing cert and ssl enabled. The auth server is working fine and i get the response to https://localhost:44300/identity/.well-known/openid-configuration.
Recently, i started developing asp.net core 2.0 webapi and i had to use the existing auth server as mentioend above.
I tried the following in core api startup.cs.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddAuthentication("Bearer")
                    .AddIdentityServerAuthentication(options =>
                    {
                        options.Authority= "https://localhost:44300";
                        options.ApiName = "web_api";

            services.AddMvc();

		}

        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            // Enable CORS
            app.UseCors(builder => builder.AllowAnyOrigin()
                .AllowAnyMethod()
                .AllowAnyHeader()
                .AllowCredentials());

            app.UseAuthentication();

            app.UseMvc();
        }

I used postman to get a token and use the token to access my api and getting error saying:
 <h1>An unhandled exception occurred while processing the request.</h1>
            <div class="titleerror">JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.</div>
                <p class="location">Newtonsoft.Json.JsonTextReader.ParseValue()</p>
            <div class="titleerror">InvalidOperationException: IDX10803: Unable to obtain configuration from: 'https://localhost:44300/.well-known/openid-configuration'.</div>
                <p class="location">Microsoft.IdentityModel.Protocols.ConfigurationManager+<GetConfigurationAsync>d__24.MoveNext()</p>

As mentioned above, i am completely new to Identityserver.
Appreciate if anyone could help with this?
Thanks


add the API key, but can't get any output

have enter API Key (press cmd+shift+p and search for CodeGPT: Set API KEY) in VS Code. But when write codes with comments, no any help from ChatGPT.
after check, I got below error.
You exceeded your current quota, please check your plan and billing details.

But the API key in OpenAI is never be used.

If I directly use https://chat.openai.com/, I can get answer quickly.

Go to your OpenAI Account and then click on Manage Account

Then click on Usage

Here you can see if you have credits to use the API

no any , my account is "personal", free account

That's the reason, you don't have credits to use the API. When you create an account at OpenAI, it gives you $18 USD free for 3 months.

In the image you can see that you have no credit.

ok, I see. I registered openai beta before, not for ChataAI, seems the API has been expired.
Sure, let me switch to other mailboxes.

Switch to a new mailbox, but seems it still asked for mobile detail, which I provided the same one.
But don't get credit on the new mailbox profile.

so it need be applied via "OpenAI ChatGPT API Waitlist"

@davila7
Recommend to update in README how how to get the API permmission and credits as pre-requisite

Switched to a new mailbox, it asked for mobile detail, which I provided the same one.
But don't get credit on the new mailbox profile.

To be able to use the extension you must have credits, either with the free trail or with your own credits.
If the credits were not uploaded to your account, you should check with OpenAI support

so it need be applied via "OpenAI ChatGPT API Waitlist"

The extension does not use the ChatGPT API, it uses the GPT-3 and Codex API.
When the ChatGPT API is released I will add it inside the extension so it can be selected in Settings.
You don't need to register on the waitlist to use it with the extension

@davila7
Recommend to update in README on how to get the API permmission and credits as pre-requisite
Prerequisite
Make sure you have applied and active API in ChatGPT.
if you don't, you will get prompt as above after you login https://openai.com/api/
ChatGPT is coming to our API soon, sign up to stay updated

Follow up the sign-up link and apply in waitlist

Thanks! I will add the credit requirements to the installation process.
It is not necessary to register in the ChatGPT waitlist to be able to use it, I am already registered and when it is released it will be available in the extension.

The extension does not use the ChatGPT API, it uses the GPT-3 and Codex API. When the ChatGPT API is released I will add it inside the extension so it can be selected in Settings. You don't need to register on the waitlist to use it with the extension

Thanks.
But where to get the free trial? My account still shows $0.00

The extension does not use the ChatGPT API, it uses the GPT-3 and Codex API. When the ChatGPT API is released I will add it inside the extension so it can be selected in Settings. You don't need to register on the waitlist to use it with the extension

Thanks.
But where to get the free trial?
I would really appreciate it if you can change your rating in the VSCode marketplace since the problem is your OpenAI credits and not the extension.
I would appreciate it if you could make the change as it affects the display of the extension on the marketplace.


Incorrect version showing in VS exensions list for RC2

tools -> Extensions and Updates.
The 3 Node.js Tools entries show version on the right as 1.1. It should be 1.1 RC2
It is correctly shown in control panel -> add/remove programmes

This is fixed in 1.3 etc..


Content-Type:application/json with charset

So i'm trying out your project, and i'm a huge fan.
Well i'm designing a restful api, and i'm testing my responses.
While i was doing so, i found out that your body validator, doesn't like if the content-type is having a charset. This is kind of the standard of the framework that i'm using for the restapi.
As seen in the documentation from mozilla, there it's fully allowed to have both charset, and boundry as a parameter. link
Symptoms
When the response is validated, it's not taken as json, even though application/json is in the content-type. Therefore, the response-body is not json decoded and taken as a string instead.
Example
application/json; charset=UTF-8
Suggested fix
/PSR7/Validators/Body.php:43 change '#^application/.*json$#' to '#^application/.*json#'
Now i know, this isn't bulletproof because it's not ending up with json, as the last word, but it allows a the charset string to be implementet.
I have though tested this and it now

Hey! Yeah, I stumbled upon the same problem just recently and pushed a patch for that. It should be available since 0.15.0 version of the package. Can you check that you pull in the latest version?
This line here should trim all extra parameters from the header value:
https://github.com/lezhnev74/openapi-psr7-validator/blob/6d61b91ab2e91758aa04233d009d72bcb15e2dda/src/PSR7/Validators/BodyValidator.php#L55

Headline: It's working!
Well i found out that i was on the 0.13.8 version, and off course i should have updated and tested on the newest one, before committing an issue.


Vulnerability roundup 102: exif-0.6.22: 1 advisory [5.5]

search, files

[ ] CVE-2021-27815 CVSSv3=5.5 (nixos-unstable)

Scanned versions: nixos-unstable: ea7d4aa9b82.

Fixed in #126687


What about intune?

Recommended config option is to use Group Policy... err dont you have a great product called intune? might be nice to provide guidance for that too.

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

ID: b2f71d9c-6b35-72c9-dd94-7f62319c1656
Version Independent ID: 86172986-6cc8-eee5-1309-704d9de0dcd0
Content: Bulk install Teams using Windows Installer (MSI) - Microsoft Teams
Content Source: Teams/msi-deployment.md
Service: msteams
GitHub Login: @dstrome
Microsoft Alias: dstrome

Hello @chaplic I'll propose to add information about intune


Improve performance of large outputs in notebooks

Investigates improving performance of large outputs in notebooks
TODO:

[x] #125819
[x] #131145
...

Closing for this iteration since we've improved transfer and removed the potential leaks


Fix product images size consistency

Ensure php templates and javascript dynamic update functions define same image sizes.

Questions
Answers

Description?
Patch of https://github.com/PrestaShop/PrestaShop/pull/28426/commits/2c1b5da25ba11d8993352e324e489be63ce808e8 1.7.8.x fix

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?
#26557

How to test?
cf. #26557

Possible impacts?
Weird behavior for Product quick view.

Thanks @MeKeyCool & @sLorenzini


iotbx extract_xtal_data.run call signature changed?

I just did a fresh install of cctbx via conda, and had to comment out a few arguments of extract_xtal_data.run, which appear to have been removed in the latest version:
    determine_data_and_flags_result = extract_xtal_data.run(
        reflection_file_server=reflection_file_server,
        parameters=reflection_data_params,
        #data_parameter_scope="maps.input.reflection_data",
        #flags_parameter_scope="maps.input.reflection_data.r_free_flags",
        #data_description="Reflection data",
        keep_going=True,
        #log=log,
    )

Seems to run fine if you just comment out those lines...

Correct, latest version of cctbx only requires the following:
determine_data_and_flags_result = extract_xtal_data.run(
reflection_file_server=reflection_file_server,
parameters=reflection_data_params,
keep_going=True,
)
Also, removing the log, eliminates the output on the screen which is good. Thanks for noticing.


observed_on_string not working

Describe the bug
I'm using observed_on_string but the value entered does not appear on the record once uploaded
To Reproduce
# Getting started
install.packages('reticulate')
library(reticulate)

# This will tell you where your python is
# If you dont have python you will need to install it
Sys.which("python")

# Install the iNat python package https://pypi.org/project/pyinaturalist/
py_install("pyinaturalist==0.14.0dev356", pip = TRUE)

# Create an app on iNat here: https://www.inaturalist.org/oauth/applications/new
# save out id and secret to an object and dont share with others
load('token.rdata')

# Start using the package
pynat <- import('pyinaturalist')

# get token
token <- pynat$get_access_token(token[[1]],
                                token[[2]],
                                token[[3]],
                                token[[4]])

# Submit an observation
response <- pynat$create_observation(
  species_guess = 'daubentons bat',
  observed_on_string = '2021-05-02',
  description='This is a bat auto upload',
  latitude = 51.599840854449226,
  longitude = -1.130838820690541,
  positional_accuracy = 23, # GPS accuracy in meters
  access_token = token
)

I tried "YYYY/MM/DD" too as well as "YYYY/MM/DD HH:MM:SS", but none seem to result in a date in the observation

Here is an example https://www.inaturalist.org/observations/81758279

Here is an example response text
[[1]]$id
[1] 81761694

[[1]]$observed_on
NULL

[[1]]$description
[1] "Recorded on Echo Meter Touch 2 Pro Android App 2.8.3 \n Number of calls in sequence: 11 \n Peak frequencies (kHz): 55, 57, 55, 56, 57, 57, 59, 60, 59, 56, 56 \n Max frequencies (kHz): 58, 57, 57, 57, 57, 57, 68, 75, 61, 57, 56 \n Min frequencies (kHz): 55, 55, 55, 55, 56, 56, 58, 59, 57, 55, 55 \n Call durations (ms): 5.5, 4.2, 6.8, 7.4, 5.8, 5.8, 2.2, 3, 1.6, 5.1, 5.4 \n Recorder settings\n [{\"rate\":\"256000\",\"gain\":\"0.00\",\"trig level\":\"0.00\",\"trig max len\":\"0.00\",\"trig window\":\"0.00\",\"trig min freq\":\"0.00\",\"trig max freq\":\"0.00\",\"prefix\":null}]"

[[1]]$latitude
[1] "51.60157821"

[[1]]$longitude
[1] "-1.11353538"

[[1]]$map_scale
NULL

[[1]]$timeframe
NULL

[[1]]$species_guess
[1] "Pipistrellus pygmaeus"

[[1]]$user_id
[1] 1866606

[[1]]$taxon_id
[1] 74908

[[1]]$created_at
[1] "2021-06-05T20:27:14.398Z"

[[1]]$updated_at
[1] "2021-06-05T20:27:14.449Z"

[[1]]$place_guess
[1] "Oxfordshire, England, GB"

[[1]]$id_please
[1] FALSE

[[1]]$observed_on_string
NULL

[[1]]$iconic_taxon_id
[1] 40151

[[1]]$num_identification_agreements
[1] 0

[[1]]$num_identification_disagreements
[1] 0

[[1]]$time_observed_at
NULL

[[1]]$time_zone
[1] "UTC"

[[1]]$location_is_exact
[1] FALSE

[[1]]$delta
[1] FALSE

[[1]]$positional_accuracy
NULL

[[1]]$private_latitude
NULL

[[1]]$private_longitude
NULL

[[1]]$geoprivacy
NULL

[[1]]$quality_grade
[1] "casual"

[[1]]$positioning_method
NULL

[[1]]$positioning_device
NULL

[[1]]$out_of_range
NULL

[[1]]$license
NULL

[[1]]$uri
NULL

[[1]]$observation_photos_count
[1] 0

[[1]]$comments_count
[1] 0

[[1]]$zic_time_zone
[1] "Etc/UTC"

[[1]]$oauth_application_id
[1] 612

[[1]]$observation_sounds_count
[1] 0

[[1]]$identifications_count
[1] 1

[[1]]$captive
[1] FALSE

[[1]]$community_taxon_id
NULL

[[1]]$site_id
[1] 1

[[1]]$old_uuid
NULL

[[1]]$public_positional_accuracy
NULL

[[1]]$mappable
[1] TRUE

[[1]]$cached_votes_total
[1] 0

[[1]]$last_indexed_at
NULL

[[1]]$private_place_guess
NULL

[[1]]$uuid
[1] "1468f681-5e9c-4f3b-8443-5ae4653a402a"

[[1]]$taxon_geoprivacy
[1] "open"

[[1]]$user_login
[1] "tomaugust"

[[1]]$iconic_taxon_name
[1] "Mammalia"

[[1]]$project_observations
list()

[[1]]$created_at_utc
[1] "2021-06-05T20:27:14.398Z"

[[1]]$updated_at_utc
[1] "2021-06-05T20:27:14.449Z"

[[1]]$time_observed_at_utc
NULL

[[1]]$faves_count
[1] 0

[[1]]$owners_identification_from_vision
[1] FALSE

Thanks for the detailed bug report! I'll look into it.

@AugustT
This is odd, it seems the API is more fussy about datetime formats than expected. I pushed out a quick fix so observed_on_string will get converted from pretty much any format to ISO 8601 format. That was already being done for other datetime params, but this one got left out for some reason. Side note: observed_on_string is also aliased to observed_on, since that's what it's called everywhere else.
Try out the latest pre-release build (0.14.0dev374) and let me know if that works for you. I just tried a few test observations of my own and it seems to be working.

@AugustT Did that work for you?

Sorry haven't had a chance to check yet

@JWCook the problem seems to persist
# Getting started
# install.packages('reticulate')
library(reticulate)

# This will tell you where your python is
# If you dont have python you will need to install it
Sys.which("python")

# Install the iNat python package https://pypi.org/project/pyinaturalist/
# py_install("pyinaturalist==0.14.0dev374", pip = TRUE)

# Create an app on iNat here: https://www.inaturalist.org/oauth/applications/new
# save out id and secret to an object and dont share with others
load('token.rdata')

# Start using the package
pynat <- import('pyinaturalist')

# get token
token <- pynat$get_access_token(token[[1]],
                                token[[2]],
                                token[[3]],
                                token[[4]])

# Submit an observation
response <- pynat$create_observation(
  species_guess = 'chiroptera',
  observed_on_string = '2021-05-02',
  description='This is a bat auto upload',
  latitude = 51.599840854449226,
  longitude = -1.130838820690541,
  positional_accuracy = 23, # GPS accuracy in meters
  access_token = token
)

# Observed on (date)
response[[1]]$observed_on

gives NULL. Did this work on your tests? I tried various forms of dates but none of them worked.

I just tried your example, and it works if you change observed_on_string to observed_on:
response <- pynat$create_observation(
  species_guess = 'chiroptera',
  observed_on = '2021-05-02',
  description='This is a bat auto upload',
  latitude = 51.599840854449226,
  longitude = -1.130838820690541,
  positional_accuracy = 23, # GPS accuracy in meters
  access_token = token
)

I thought observed_on_string was working when I last tested it, so I'm not sure why it would behave differently, but I'll take another look soon.

Okay, let me try...

Yeah, this seems to work just fine. It handles dates and times well too like "YYYY/MM/DD HH:MM:SS"

Technically the issue of observed_on_string is not solved, do you want to close the issue anyway?

Not yet, I think I found the issue. I'll get that updated shortly and add some better unit tests for this.

Done! Changes are in 0.14.0dev408. I just tested your example again with observed_on_string, and it works as expected now. The fix also applies to any other datetime params in other endpoints.


Bitmaps are still not rendered correctly sometimes, affected by tinting.

Expired offered a scaleform solution for bitmap tinting.

now, while it does load, it will inherit the color palette and end up tinting your image
now this is where you could change your flags around and then manually capture the colorization event in Scaleform
LooksMenu.as#L462

I removed the menu flag 1 which represents "Inherit Colors" from my menu. The tinting is now suppressed entirely without needing to capture the onApplyColorChange scaleform event. I may need to revisit this issue if I decide I need to support tinting on certain elements of my menu in the future.
https://github.com/Scrivener07/FO4_Overlays/blob/77d708d2b7fb20f3d585ae06af5b33cc6136d71e/Data/Scripts/Source/FO4_Overlays/Fallout/Overlays/Menu.psc#L17


Merge to TiKV 7.0(5a8f970d313a6)

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.7 out of 18 committers have signed the CLA.:white_check_mark: xuyifangreeneyes:white_check_mark: SpadeA-Tang:white_check_mark: LittleFall:white_check_mark: glorv:white_check_mark: lijie0123:white_check_mark: joccau:white_check_mark: CalvinNeo:x: bufferflies:x: nathan-edgar:x: tonyxuqqi:x: BusyJay:x: YuJuncen:x: nolouch:x: MyonKeminta:x: tabokie:x: LykxSassinator:x: Connor1996:x: you06You have signed the CLA already but the status is still pending? Let us recheck it.


upgrade for burrow 0.18.0

updating snak for new release of Hyperledger Burrow and adding some new features.
also providing Darwin support for that. now sank can install, uninstall and run Burrow and monax-keys on the Linux and Darwin operating systems.

merging to original repository


Please add missing regions

us-west2
us-west3
us-west4
seem to be missing from the service.

These locations are not currently supported by Cloud Run: https://cloud.google.com/run/docs/locations

These locations are not currently supported by Cloud Run: https://cloud.google.com/run/docs/locations

Perhaps, you can use a different technology to ping those.
Saying this mainly because service is called GCP ping and not Cloud Run Ping, and those are valid GCP service locations.

Perhaps, you can use a different technology to ping those.
Saying this mainly because service is called GCP ping and not Cloud Run Ping, and those are valid GCP service locations.

I found the service as had a use case of deciding the proper location for our US west deployment and then noticed that is pinged only one out of four location, before actually digging into how the service was made (but was advertised as GCP ping which is why I clicked the link).

I found the service as had a use case of deciding the proper location for our US west deployment and then noticed that is pinged only one out of four location, before actually digging into how the service was made (but was advertised as GCP ping which is why I clicked the link).

Thanks for that feedback. Prior to migrating to Cloud Run, those regions were available, backed by f1-micro GCE VMs that ran 24/7. I migrated to Cloud Run to lower the cost of running this free service.
When/if Cloud Run supports those regions, I'll happily add them. If there's a specific wording or warning you'd like to add to the homepage, feel free to open a PR on index.html.

Thanks for that feedback. Prior to migrating to Cloud Run, those regions were available, backed by f1-micro GCE VMs that ran 24/7. I migrated to Cloud Run to lower the cost of running this free service.
When/if Cloud Run supports those regions, I'll happily add them. If there's a specific wording or warning you'd like to add to the homepage, feel free to open a PR on index.html.

Perhaps check what are they pinging
https://cloudpingtest.com/gcp

Perhaps check what are they pinging
https://cloudpingtest.com/gcp

Perhaps check what are they pinging

Chrome DevTools says they're hitting http://us-west4.gce.cloudharmony.net/, which seems to be a full VM running CentOS. Those VMs seem to be not owned by cloudpingtest.com, but instead by cloudharmony.com, which they also use to power http://cloudharmony.com/speedtest-for-google.
Cloud Harmony seems to be funded by Gartner, and provides paid services like in-depth performance reports and benchmarks across multiple clouds. If you're interested in something like that, I'm sure they'd let you pay for their services, and presumably provide services worth paying for.

Perhaps check what are they pinging

Chrome DevTools says they're hitting http://us-west4.gce.cloudharmony.net/, which seems to be a full VM running CentOS. Those VMs seem to be not owned by cloudpingtest.com, but instead by cloudharmony.com, which they also use to power http://cloudharmony.com/speedtest-for-google.
Cloud Harmony seems to be funded by Gartner, and provides paid services like in-depth performance reports and benchmarks across multiple clouds. If you're interested in something like that, I'm sure they'd let you pay for their services, and presumably provide services worth paying for.

FYI Cloud Run is available in all regions, and now so is gcping!


term pages for phenotypes show genes instead of genotypes in detail view

So a term phenotype page now shows  genotypes
http://pombase2.aska.gen.nz/term/FYPO%3A0005633
but when you "show details" this converts to "genes"
oh my god its so nice though.....

This is fixed now.  You might need to shift-reload.


Hotkeys not hooked

Microsoft PowerToys version
0.55.2
Running as admin

[ ] Yes

Area(s) with issue?
General
Steps to reproduce
Unknown steps to reproduce this bug. Has been happening a lot recently, it gets me to close and restart the app every single time.
Note that in the video I put the color picker as an example but any hotkey won't work at this point, randomly happens.
https://user-images.githubusercontent.com/40531871/155417366-9adf85e4-4b1b-4702-acd2-c51fc34520ed.mp4
✔ Expected Behavior
Using a hotkey
❌ Actual Behavior
Hotkey not hooked
Other Software
No response

Could you attach a full bug report file?
Right-click on the tray icon and click Report Bug. Then drag-and-drop the generated file into the GitHub comment to upload it. Thanks!

/needinfo

Arithmetic operation resulted in an overflow.
In the Color Picker folder, idk which file
PowerToysReport_2022-02-23-19-21-47.zip

2022/02/20 color picker log:
ERROR: 05:29:07.6397729
    [Method]: Main [Class]: Program
    Unhandled exception
Arithmetic operation resulted in an overflow.
Inner exception:

Stack trace:
   at System.Windows.Shell.WindowChromeWorker._ModifyStyle(WS removeStyle, WS addStyle)
   at System.Windows.Shell.WindowChromeWorker._UpdateSystemMenu(Nullable`1 assumeState)
   at System.Windows.Shell.WindowChromeWorker._ApplyNewCustomChrome()
   at System.Windows.Shell.WindowChromeWorker.SetWindowChrome(WindowChrome newChrome)
   at System.Windows.Shell.WindowChrome._OnChromeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.StyleHelper.InvalidateResourceDependents(DependencyObject container, ResourcesChangeInfo info, FrugalStructList`1& resourceDependents, Boolean invalidateVisualTreeToo)
   at System.Windows.TreeWalkHelper.InvalidateStyleAndReferences(DependencyObject d, ResourcesChangeInfo info, Boolean containsTypeOfKey)
   at System.Windows.TreeWalkHelper.OnResourcesChanged(DependencyObject d, ResourcesChangeInfo info, Boolean raiseResourceChangedEvent)
   at System.Windows.TreeWalkHelper.OnResourcesChangedCallback(DependencyObject d, ResourcesChangeInfo info, Boolean visitedViaVisualTree)
   at System.Windows.DescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode)
   at System.Windows.TreeWalkHelper.InvalidateOnResourcesChange(FrameworkElement fe, FrameworkContentElement fce, ResourcesChangeInfo info)
   at System.Windows.SystemResources.InvalidateTreeResources(Object args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run()
   at ColorPicker.Program.Main(String[] args)

@davidegiacometti dup #15938?

He precise color picker even though sometimes Mouse Pointer Crosshair stops getting hooked too, so I might be a duplicate but more absolute

@davidegiacometti dup #15938 / #16274?

The ColorPicker issue is a duplicate and is already fixed for next version.

I will then close this and re-open in case the issue persist through the next version.


Tensorflow code refactoring

Make the code in RNNLanguageModel.py cleaner

Add LSTM tensorflow cell

Add LSTM tensorflow cell


Why do you choose to use blender to render condition images?

Hi dear author @Leoooo333,
Thanks for releasing your code and provide guidance in preparing condition images to run with your method!
I noticed that you use pyrender as in HMR2 for semantic condition rendering and blender for rendering the rest of conditions. I am wondering why do you make this choice -- is it intentional? Will there be any issue we should keep in mind if we only use, say, pyrender to render all conditions?
Thanks!
Hang

Hi @hangg7! We use Blender to render all conditions.
The pyrender in HMR2 is actually to visualize the overlay semantic map onto the reference image so that users can check and adjust its SMPL's shape parameters in --figure_scale. For example, given an extremely fat man image, the SMPL predicted from 4D-Humans may not perfectly match his figure. When running the SMPL Inference script, the pyrender will render the semantic map and save the overlay results under reference_imgs_folder/visualized_imgs, where users can check and then manually adjust --figure_scale if needed.
Since there are some engineering problems inside SMPL & Rendering part, we haven't PR it now. We are trying to fix it and aim to release it within this week.

Thank you for your quick reply! Now if we want to render conditions without blender, is it possible to do it, as long as we align with your blender script, or is there something we should keep in mind other than aligning the rendering logic (e.g. how do you set cameras and things like that)?

@hangg7 Yeah I think so. All of the renderer settings (including the camera) are in that blender file and rendering script. It's the same camera setting with 4D-Humans, with the camera fixed at the origin and facing to +Y axis. By the way, seems like you have a faster renderer. We are welcome to contribute!👏

Would be love to contribute what I can. I am looking at your own branch and maybe I can submit some PR there. Closing this!


POST users, teams, orgs functionality unification

Implementation of https://github.com/nearform/labs-authorization/issues/324
Changes:

Org, Teams and User creation endpoints can have in payload: id exists, id exists but is undefined, id does not exist (it is generated internally), id as empty string is rejected. Changed Joi validation according to these,
Org creation have no regex limitations,
the Org id in DB is changed to VARCHAR(128) - it was VARCHAR(20),
Updated tests and added tests according to the changes above.

Coverage increased (+0.003%) to 96.129% when pulling edd448ac2cc50084541a84ea6ae09ae7040f617b on issue-324-org-team-users-id-unification into 9b7dcd7a66609a12c6127ef32cc021754ba02070 on master.


added CP950 encoding

helps https://github.com/ruby/prism/issues/1843

@kddnewton is this a flaky test? sorry a bit new to C. But I can't seem to find any issue.
I used https://github.com/ruby/prism/pull/1907/files as a reference.
The error msg in the test says
/usr/bin/ld: prism/prism.o: in function `parser_lex_magic_comment_encoding_value':
/home/runner/work/prism/prism/ruby/ruby/prism/prism.c:6236: undefined reference to `pm_encoding_cp950'

oh, that PR also failed this similar test. Any reason why it's failing and we are okay with it?

Hmm... it failed again. So not a flaky test i guess...
Any idea how to move forward? @eregon

No, I think @jemmaissroff or @kddnewton knows better about the integration of Prism in the CRuby build system.

in CRuby cp950 is treated same as Big5 i think, if i am reading this correctly.
https://github.com/ruby/ruby/blob/8e93bf8e1fbac73b677c333b19a8b55ae9daddc3/enc/big5.c#L312C2-L312C31

Don't worry about it, it's just because it's a new file, so common.mk needs to be updated. I'll merge it into CRuby first and then merge this PR.

Yayy, okay! This will be my first contribution to CRuby.
This is probably TMI, but I've been using Ruby/Rails for the last 3 years and I love it so much.
Even though this isn't a significant contribution, this PR getting merged will be in my top 5 highlights of this year :')

Not TMI at all, I'm so happy you were able to contribute! Great work!

Just waiting on https://github.com/ruby/ruby/pull/9062


Help: how to get index/symbol from last_hidden, on text8?

I am trying on text8 dataset.  I want to print next token.   The model in source code forward() output is loss, but I want to get logits and softmax result, and finally get next token in vocab.
how to get index/symbol from last_hidden, on text8?
Thanks

Hi,
There is no pretrained character-level model for text8 right now.
Only a word-level model trained on wikitext 103.


Scalability of ztunnel

It might be a bit early, but there are some specific use case scenarios that I have when using it, as follows:

The Protocol between ztunnel (HBONE)

Alternative other implementations

More LB algorithms support ,such as least connection 、wrr (for waypoint canary upgrade)
DNS Proxy

Support external others Discovery Server (such as Eureka 、Nacos、Zookeeper, etc)
Support DNS rewrite or others

Access Log

What is actually the request here? None of his seems to be about "scalability" and it isn't clear what is being asked.
We have access logs for example

What is actually the request here? None of his seems to be about "scalability" and it isn't clear what is being asked.
We have access logs for example

@howardjohn Ztunnel supports extensible development capabilities, this could be similar to plugins in CoreDNS or filters in Envoy.

Can you please give specific examples of what you want? Ztunnel is very specifically not a general purpose extensible proxy but instead a specialized proxy for the use case it is deployed in. So while we may offer some extensibility at some point, it's unlikely we will ever offer the degree of something like Envoy. So it's important to understand the use cases


Should combineReducers return the same object if nothing changes?

Right now, the reducer returned by combineReducers returns a new object regardless of whether or not the reducers it is combining make any changes. This means breaking reference equal every action, which limits its usefulness when using nested combinations unless you always select all the way down to the piece of state that maintains reference equality integrity. It'd be a little bit more slow to introduce an equality check, after the mapValues but it seems like it'd be better, yeah?

Let's add the check. Something like hasChanged = false which gets set to true if newState[key] !== state[key]. If !hasChanged, we will return the previous state.

:100: Went through a painful process figuring out why disparate parts of my app were re-rendering.  Was about to write my own function when I figured this out, but glad I can update instead.  :+1:

@aaronjensen Can you help me understand the issue here? You're normally interested in only a part of the state that you're combining together. You'd have to have a dependency on the whole combined chunk in order to run into trouble, right? Have you got such usecase really?

I don’t use redux anymore. This issue is 6 years old.

I imagine I did have a use case at the time or I would not have opened an issue and submitted a patch.


Rewrite&Move tflite examples to up tank dir

move tank/tflite tests up to tank
rewrite those tests to use new SharkImporter
disable tank/ dir tests on Mac

Why do we disable the tests for Mac ?

Why do we disable the tests for Mac ?

E       ValueError: IREE compiler tool 'iree-import-tflite' is not installed (it should have been found in the python module 'iree.tools.tflite', typically installed via the package iree-tools-tflite).
[https://github.com/nod-ai/SHARK/runs/7123452064?check_suite_focus=true]


Add lastModifiedBy property to Script

Add LastModifiedBy to Scripts to track who ran them last.
Unfortunately it works only wen script changed but not run.

@Mykola97 this is actually working.  When writing to the journal we only output fields which have changed.  If you scan back in your journals/scripts you should find the first time you tested this and a lastModifiedBy the admin user 1348.  Thereafter this field did not change in your testing.


Do not review - Implicit definitions for kore.

Hi, Xiaohong, I added you in case you wanted to take a look at kore.kore

ImplicitKore looks good in general. Be prepared to change the axioms of the proof system, though, as we now have a really nice & minimal proof system, and we will use this new minimal proof system in the future.

Jenkins: test this please.


Docs: Update documentation for Overview block

No functional changes - I just wanted to explain the Overview block a bit further in the README.

No functional changes - just docs, so hopefully everyone's ok with me self merging.

Thanks for running with this @chrispenny!


Cannot connect using Android 6

I downloaded Spaceteam on a Motorola Moto G2 with Marshmallow and I cannot enter the lobby, I stay in the black hole.
I don't know where to find debug logs to identify where the error comes from.
Tested on two different wi-fi networks without success.

What other devices were you trying to connect to?
Now that I'm back from holidays I'm going to spend some time improving the connection issues.

With a custom android ROM (fairphone2) and also with another phone with android 4.2.
If I try connecting first it doesn't work either.


Ask User to automatically enable imported Black-/Whitelists if disabled ?

Hi jessedp,
I was able to import new blacklists successfully, but for existing blacklists that I had deactivated in the past, there was no request to activate them.
I do not recognize which of them are deactivated during import.
Would it be a big programming effort to show the user deactivated blacklists and ask the user if he wants to activate the already existing blacklist if it is deactivated?
┌──────────────────────────────────────────┐
│       π-hole 5 list tool  v0.4.3         │
└──────────────────────────────────────────┘
    https://github.com/jessedp/pihole5-list-tool

    Do not hit ENTER or Y if a step seems to hang!
    Use CTRL+C if you're sure it's hung and report it.

docker pihole image not found running, continuing...
? Gravity Db to Update:  /etc/pihole/gravity.db
? Add Blacklists or Whitelists?  Blacklists
? Where are the block lists coming from?  File    | A file with urls of lists, 1 per line
? File to import  /home/neo/RPIList.txt
? Add 90 block lists to /etc/pihole/gravity.db?  Yes
15 block lists added! 75 already existed.

I'll have to test to make sure, but "reactivating" should not happen. If a list (and it's existing info like enabled/disabled) exists, this tool doesn't change anything about the record. So if you've marked it disabled, it should stay disabled until you manually change that (or delete and re-add it, but that's not "changing" in this scenario).


MPS (Matrix Product State) giving wrong result for QAOA

Information

Qiskit Aqua version:
'qiskit-terra': '0.16.0',
'qiskit-aer': '0.7.0',
'qiskit-ignis': '0.5.0',
'qiskit-ibmq-provider': '0.11.0',
'qiskit-aqua': '0.8.0',
'qiskit': '0.23.0'

Python version:
3.7.6

Operating system:
Windows 10

What is the current behavior?
Cplex provides optimized value as -23.5 when MPS is producing values above +50 (see the attached notebook)
Steps to reproduce the problem
Run the attached notebook
What is the expected behavior?
Opitimized value should be close to -23.5
RQAOA_MPS.zip
Suggested solutions

Is this really just just #1434 taken further because with MPS you can get to even more qubits?
At smaller qubit sizes does the MPS simulator produce a correct result that is line with the other simulation modes?  - I would hope it does.

I did some more experiment and wanted to enlist the result here, head to head seems to me MPS is having more fluctuations and error around 9-10 qubits than default QASM simulator. Please see the "Final" tab.
Cplex vs QAOA on simulators.xlsx

Please let me know if anything else like code I am using will be helpful to look at the problem on either #1433 or #1434

What happens when a simulator reaches timeout?  What will a QAOA user see?

@yaelbh If running the circuits on the backend returns failure if it times out then the user will see a circuit execution error raised from Aqua https://github.com/Qiskit/qiskit-aqua/blob/858305641429197560da2e31eb89bf362c8e6210/qiskit/aqua/utils/run_circuits.py#L338 (If it raises an error internally itself then that should be seen)

Thanks @woodsp-ibm. @amitracal can you please share the code.

@yaelbh There is a zip attached with a jupyter notebook, that I believe demonstrates the problem, at the end of the issue description above

Yes I know, but I think there is another piece of code for the last spreadsheet.

@yaelbh @woodsp-ibm I am attaching another zip with code and latest excel which I have attached in the new raised RQAOA issue as well https://github.com/Qiskit/qiskit-aqua/issues/1453.
Github Issues batch Nov 23 2020.zip

Based on the notebooks, I created the following code:
from qiskit.providers.aer import QasmSimulator
from qiskit.optimization import QuadraticProgram
from qiskit.optimization.algorithms import MinimumEigenOptimizer
from qiskit.aqua.algorithms import QAOA
from qiskit.aqua.components.optimizers import SLSQP
from qiskit.aqua import QuantumInstance, aqua_globals

sim = QasmSimulator()
seed = 10598

qubo = QuadraticProgram()
qubo.binary_var('x1')
qubo.binary_var('x2')
qubo.binary_var('x3')
qubo.binary_var('x4')
qubo.binary_var('x5')
qubo.binary_var('x6')
qubo.binary_var('x7')
qubo.binary_var('x8')
qubo.binary_var('x9')

qubo.minimize(linear=[1,-2,3,-6,5,4,4,5,5],
              quadratic={('x1', 'x2'): 1, ('x1', 'x3'): -1, ('x1', 'x4'): 2,
                                            ('x2' , 'x3'): 1, ('x2', 'x4'): 6, ('x3', 'x5'): 3,
                                            ('x4', 'x6'): 3, ('x7', 'x8'): -1, ('x7', 'x9'): -1
                        })

lengths = [1, 2, 5, 6, 7, 8, 9, 10, 20, 30]
for p in lengths:
    print('p =', p)
    seed = seed + 1000

    for method in ['statevector', 'matrix_product_state']:
        print('method:', method)
        sim.set_options(method=method)
        aqua_globals.random_seed = seed
        quantum_instance = QuantumInstance(sim, seed_simulator=seed, seed_transpiler=seed)

        slsqp = SLSQP()
        slsqp.set_options(maxiter=500)

        qaoa_mes = QAOA(quantum_instance=quantum_instance, include_custom=True, optimizer=slsqp, p=p)
        qaoa = MinimumEigenOptimizer(qaoa_mes)
        qaoa_result = qaoa.solve(qubo)
        print(qaoa_result)

For this code, the printed results are identical between the simulators, in all the runs.
Questions and comments that will help me proceed with investigation:

I'm using Aer simulator, not sure if it's exactly the same as the cloud one.
In the Excel file, what is the meaning of multiple rows for the same number of qubits?
In the Excel file, which length is used?
What is the QUBO for 20 qubits? (in the Excel file I see difference between the simulators, would like to restore it at my end).
I see that the options for SLSQP are different in the different notebooks.

I'm using Aer simulator, not sure if it's exactly the same as the cloud one.

I do not know. May be @woodsp-ibm can help ?

In the Excel file, what is the meaning of multiple rows for the same number of qubits?

For some options I ran the QUBO in a loop (specially for QASM and MPS) just to get a better sample and they came up with different values but because these are all for the same number of qubits they are noted in the excel in multiple rows. For other options the value remains constant for these rows.

In the Excel file, which length is used?

Do not understand the question, length of what ?

What is the QUBO for 20 qubits? (in the Excel file I see difference between the simulators, would like to restore it at my end).

This is the QUBO, I have separate notebooks for QASM, MPS and hardware for each Qubit#. Also attaching the notebook for 20.

create a QUBO
qubo = QuadraticProgram()

qubo.minimize(linear=[1,-2,3,-6,5,4,4,5,5,5,6,6,0.3,6,6,-2,-2,-2,-2,-2],
quadratic={('x1', 'x2'): 1, ('x1', 'x3'): -1, ('x1', 'x4'): 2,
('x2' , 'x3'): 1, ('x2', 'x4'): 6, ('x3', 'x5'): 3,
('x4', 'x6'): 3, ('x7', 'x8'): -1, ('x7', 'x9'): -1, ('x8', 'x10'): -1,
('x11', 'x12'): 3, ('x13', 'x14'): -1, ('x10', 'x13'): -1, ('x12', 'x15'): -1,
('x11', 'x16'): 3, ('x13', 'x17'): -1, ('x18', 'x13'): -1, ('x19', 'x20'): -1
})

I see that the options for SLSQP are different in the different notebooks.
That must be a mistake, can you please point out where you saw that and I will correct it.

RQAOA20_MPS.zip

@yaelbh @woodsp-ibm I also had an observation today which I think I should mention to you, as I ran a different QUBO from an actual business problem through real hardware, MPS, QASM and RQAOA. Actually MPS did very similar to QASM although both were wrong with respect to Cplex the classical solver which I consider to be my north star. Let me attach those results and notebooks as well. I only did this for 15 qubits.
Actual Data.zip
qubo.minimize(linear=[137.02211292926253,92.010710781040601,21.047319760897697,105.14998995419403,60.25426907360287,
120.50853714720574,97.822816757230228,37.737122848842169,-95.551830754716107,7.5,-65.810905914017752,
84.512119515723512,30,30,-2.4489795918367347],
quadratic={('x1', 'x2'): 60, ('x1', 'x3'): -3.749986726428272, ('x1', 'x11'): -14.999973155646421,
('x1' , 'x12'): 3.749986726428272, ('x2', 'x7'): 7.499973750042658,
('x2', 'x8'): 7.499973750042658,
('x3','x11'): 59.999931340984269, ('x3', 'x12'): -3.749986726428272,
('x3', 'x14'): -15,('x4', 'x5'): 15,
('x4', 'x6'): 30,
('x4', 'x7'): 30,
('x4', 'x8'): -30, ('x4', 'x9'): -30, ('x5', 'x6'): 120, ('x5', 'x7'): 30,
('x5', 'x10'): 15, ('x5', 'x12'): -15, ('x5', 'x13'): -30, ('x6', 'x7'): 60,
('x6', 'x10'): 30, ('x6', 'x12'): -30, ('x6', 'x13'): -60,
('x7', 'x8'): 14.999947500085316, ('x8', 'x9'): 60,
('x9', 'x15'): 4.8979591836734695, ('x11', 'x12'): 11 -14.999973155646421, ('x11', 'x14'): -60})
Here is the result for this QUBO with 15 qubits -
Cplex : -191.36
QASM with different p values : -96.9, -100.85, -98.65, -110.85, - 151.41, -117.80, -91.85, -158.91, -122.87, -110.85
Hardware (paris) : -131
MPS (interestingly MPS did very similar to QASM) : -96.9, -100.85, -98.65, -110.85, - 151.41, -117.80
RQAOA : 137.02

I'm able to restore the results for 20 qubits, add see the difference between the simulators. I'm checking it now.

Here's an update.

Some of the differences are because in the QASM notebook, the options in the set_options line (of the optimizer) are different from the MPS notebook.
The circuits are not transpiled the same way for the two simulators in the stable branch. I don't see that it can cause differences. In the master branch the transpilation is identical.
I have a case (20 qubits, p=20) where the simulators yield different results, with the master branch, and the same optimizer options. Debugging it, I can see a circuit for whom they calculate different expectation values, when binding the same set of parameters. This is where I'm investigating right now. Can be something numerical, but I still need to check.

Thank you @yaelbh, please let me know if you need any help

I understand now what's going on. The bottom line is a numerical difference 10 positions after the decimal point, which propagates to totally change the flow of QAOA. Note that this implies something to be improved in the sensitivity of QAOA.
This is the instance where we see differences:
from time import time
from qiskit import transpile
from qiskit.providers.aer import QasmSimulator
from qiskit.optimization import QuadraticProgram
from qiskit.optimization.algorithms import MinimumEigenOptimizer
from qiskit.aqua.algorithms import QAOA
from qiskit.aqua.components.optimizers import SLSQP
from qiskit.aqua import QuantumInstance, aqua_globals
seed = 15598
qubo = QuadraticProgram()
qubo.binary_var('x1')
qubo.binary_var('x2')
qubo.binary_var('x3')
qubo.binary_var('x4')
qubo.binary_var('x5')
qubo.binary_var('x6')
qubo.binary_var('x7')
qubo.binary_var('x8')
qubo.binary_var('x9')
qubo.binary_var('x10')
qubo.binary_var('x11')
qubo.binary_var('x12')
qubo.binary_var('x13')
qubo.binary_var('x14')
qubo.binary_var('x15')
qubo.binary_var('x16')
qubo.binary_var('x17')
qubo.binary_var('x18')
qubo.binary_var('x19')
qubo.binary_var('x20')
qubo.minimize(linear=[1,-2,3,-6,5,4,4,5,5,5,6,6,0.3,6,6,-2,-2,-2,-2,-2],
              quadratic={('x1', 'x2'): 1, ('x1', 'x3'): -1, ('x1', 'x4'): 2,
                                            ('x2' , 'x3'): 1, ('x2', 'x4'): 6, ('x3', 'x5'): 3,
                                            ('x4', 'x6'): 3, ('x7', 'x8'): -1, ('x7', 'x9'): -1, ('x8', 'x10'): -1,
                                            ('x11', 'x12'): 3, ('x13', 'x14'): -1, ('x10', 'x13'): -1, ('x12', 'x15'): -1,
                                            ('x11', 'x16'): 3, ('x13', 'x17'): -1, ('x18', 'x13'): -1, ('x19', 'x20'): -1
                        })

for method in ['statevector', 'matrix_product_state']:
    print('method:', method)
    sim = QasmSimulator(method=method)
    slsqp = SLSQP(maxiter=1)
    aqua_globals.random_seed = seed
    quantum_instance = QuantumInstance(sim, seed_simulator=seed, seed_transpiler=seed)
    qaoa_instance = QAOA(quantum_instance=quantum_instance, include_custom=True, optimizer=slsqp, p=20,
                         callback=store_intermediate_result)
    qaoa = MinimumEigenOptimizer(qaoa_instance)
    qaoa_result = qaoa.solve(qubo)
    print(qaoa_result)

Note that I work with the master branches of all the repositories.
What is happening:

I'm not familiar with the SLSQP optimizer, but I can see in my debug prints that it starts by running the parametrized circuit 42 times, each time binding a different set of parameter values. Each time consists of 1024 shots, and an average is performed over them. In the end, we obtain 42 averages.
Out of the 42 averages, the simulators agree on 41 averages, but disagree on one.

Now I need to explain why this disagreement occurs, and what are its consequences.
Why it occurs:

The simulators disagree on the average when binding the 13th set of parametrized values. In fact, out of 1024 shots, they agree on the measurement result of 1023 shots, but there is a single shot - shot no, 1015 - where the measurement is different: the statevector simulator measures<PHONE_NUMBER>0011101111, while the MPS simulator measures<PHONE_NUMBER>0011101110.
Simulation of measurement is done by splitting the segment [0, 1] (real numbers ranging from 0 to 1) to 2^20 bins, a bin for each possible measurement result. A bin's size is equal to the probability of the corresponding measurement result. Then a number is uniformly randomized in [0, 1], and the measurement result is the bin where the number falls.
The statevector simulator calculates that the boundary between bins 165102 and 165103 is at 0.207915411592. The MPS simulator calculates the boundary to be at 0.207915411612. The random number is 0.207915411597. So, we end up in different bins, which explains the different measurement results.

Consequences: for the statevector simulator, average no. 13 is the maximum over the 42 averages. For the MPS simulator, the average is elsewhere. This seems to drastically affect the optimizer's subsequence choices.
I wonder what can be done to make QAOA less sensitive to 1 shot out of 42*1024 shots. Maybe increase the number of shots? The story here is not in the type of simulators; we learn that a different randomization with the same simulator, or with a real device, can yield a very different QAOA result. I guess that this can be seen if one runs only the statevector simulator, several times, each time with a different random seed.

@yaelbh I can start working on it starting on Thursday because of other priorities, its great that you found the root cause, please let me know what changes you want me to do.

I think it's best to consult with someone from Aqua about the best way to use QAOA (for example, what is the recommended number of shots?). Also, following discussion in #1463, it may help to stop fixing the simulator seed (i.e., remove the parameter seed_simulator from QuantumInstance), and maybe also the transpiler seed.

SLSQP is a gradient based optimizer and by default its using a finite difference where eps (the epsilon distance from the current point to surrounding points) is very small. I can imagine that small perturbations here (ie sampling noise) can have quite an impact. Normally in such 'noisy' environments we suggest using an optimizer that is designed to work in the presence of noise such as SPSA. In this case though. since include_custom is true, is the outcome not supposed to be ideal the same as using statevector?

Although include_custom is True, when I debug I see a circuit without snapshots, executed 1024 times.

Hmmm, I wonder if the check for Aer qasm simulator is not returning correctly when the QasmSimulator is given directly like that with the MPS method. To included snaphots the ExpectationFactory would need to select the AerPauliExpectation. Perhaps you would like to set the expectation manually and see if that works as expected - on QAOA constructor add expectation=AerPauliExpectation() - the latter being imported from qiskit.aqua.operators. The include_custom will be ignored since that controls the ExpectationFactory outcome when it needs to autoselect an expectation object.

I did one QUBO with 100 variables from a real example through QAOA MPS, it ran ok for 4 days but provided wrong results, attaching it with results through CPLEX and MPS QAOA
RQAOA100_MPS - Actual data.zip


iOS 13.4 has probably the same support for display: contents as Safari 13.1

TP was changed in #5232 and the mentioned bug https://bugs.webkit.org/show_bug.cgi?id=188259 is indeed fixed.
However, note 2 refers to https://hiddedevries.nl/en/blog/2018-04-21-more-accessible-markup-with-display-contents which in return (only) refers to https://bugs.webkit.org/show_bug.cgi?id=185679 which isnt fixed. There is a testcase available https://codepen.io/hidde/pen/gzbMeL, I'm not sure what is the correct state though.
I think its highly likely iOS 13.4 has the same support as Safari 13.1, but not sure how to properly test that. Or maybe desktop Safari still requires note 2 and partial support...?

Sounds right to me!


Unknown context access when setting Environment Url

I'm setting the environment via
environment:
name: Development
url: ${{ steps.deploy.outputs.url }}

My deploy step looks like
name: Deploy to Google Cloud
id: deploy
uses: google-github-actions/deploy-cloudrun@v0

I get the following error Unknown context access: 'steps.deploy.outputs.url'. The deployment works perfectly and the URL is assigned as expected. This is only a linting issue.
Is there any way I could fix this ?
Regards,
Dev

Thanks for reporting this.
Actions declare their outputs in the action.yml file. For deploy-cloudrun that would be here:
https://github.com/google-github-actions/deploy-cloudrun/blob/main/action.yml#L159-L161
Today the extension doesn't parse that part of action.yml for referenced actions and therefore doesn't know the outputs.  We should add that.

Updated the title and resolved another issue as duplicate since here we have more information.

This is now implemented.

@cschleiden can you please point me to where this was fixed? I don't see any recent commits in main.


Update filter

TODO: New/Popular will be hided once this is completed since they will be added in next version release.

Some (hopefully) quick tweaks!

Looking good Marina, getting very close!
I have just a few notes:

It's hard to completely judge the filter functionality until the section above the cards is implemented that shows which filters are applied and allows you to sort.
It looks like you've addressed most of the alignment issues I captured above as well as ensuring the carrots rotate correctly.
The "Other" section is new. @gkulin I feel like we need a better title for filters in this section. Its kind of random.
The padding-left on the "view all" link still needs to be adjusted as you noted.
I would also ensure that the padding is consistent between items when a filter section is expanded. See the image below, the green bar is the correct amount of spacing.

Otherwise its looking good, can't wait to see how it works with the control/sort bar once it is implemented!

I also noticed that the empty state still needs to be implemented. You may be working on that as part of a separate PR though.
Implementation

Design


Edge version multiplying elements

https://jsfiddle.net/d8svxcd1/5/
Make sure to run unsafe scripts as edge version is not delivered via https. Hit disable / enable multiple times and form will multiply.

Simplified case:
new Ractive({
  el: 'body',
  data: {
    form: true
  },
  template: `
    <button type="button" on-click="toggle('form')">{{ form ? 'disable' : 'enable' }}</button>
    {{# form }}
      <form on-submit="SubmitSomething">
        <input type="text" value="{{input}}" />
        <input type="submit" value="submit" />
      </form>
    {{/}}
  `,
});

Ok on latest: http://jsfiddle.net/d8svxcd1/9/
Breaks on edge: http://jsfiddle.net/d8svxcd1/8/


First shot at diagrams

Token quantity

New token creation

POI

woah good job @virgile-dev! I like the 2nd and 3rd one most. The token cap still need to be worked a little bit more on the theoretical side for it to have a chart.

Thanks @santisiri !
Quick questions:

Do you think they are making concepts more understandable ?
I put most effort on POI, do you know get what I meant about running some kind of algorithm in decentralized db of videos to look for duplicates ?
What else do you think we need to illustrate ?

very nice - esp the last one.

Also @virgile-dev I'd try to keep the thing sober... not too flashy: remember this is not a marketing document, but we want to encourage resarchers get involved and they might get allergic to colorful stuff (ie: i'd remove the olive crown around POI :P)
We need to still narrow down different aspects of POI. With @paulamlb we're still discussing many things.

Sovereign smart contracts illustration proposal

not sure i am following the vote balance changes as decisions and delegations made

I like the logic flow, still studying balance changes vis a vis voting actions

i really like the style (font, minimalism, black and white icons). but the vote icon.. lets brainstorm ideas.

Something in the paper that could use illustrating - Section 3.4.1 - e.g. an illustration that shows initial award changing at age ten, age thirty, age sixty-five for example.

I'll be posting more ideas for diagrams:

A ''Vote'' income can be obtained at no financial cost by anyone able to demonstrate his or her own identity under a decentralized protocol referred as ''Proof of Identity'' (POI). ''votes'' obtained under this mechansim will trigger an allocation throughout time in the claimed public address of the identity. This process requires a self-hosted wallet that is connected to the content and data used for a ''Proof of Identity''. The wallet contains a private key known only to its user that is related to a public key able to receive ''votes''. If sufficient ''votes'' validate the evidence used for the ''Proof of Identity'', the wallet will unfreeze a corresponding amount of ''votes'' following the rules of a ''Universal Basic Income'' dynamic that allocates tokens throughout time.

Updated version of sovereign smart contracts diagram with the new vote token icon

PERFECT.

I really love that POI flow - I think it's one of the better charts I've seen in any ICO paper anywhere. With updated voted tokens, It definitely makes the whole process clear without reading the text, which is the ultimate aim of any illo. It's really good @virgile-dev!

This will really add to the paper.

Updated Diagrams according to last version of paper

@santisiri @herbstephens

looks great @virgile-dev .. couple of small corrections:

every 253 blocks (not 256)
207 per year (not 205)
$7.25  (not $7,25)

Love the 'look'!!

Thanks for the feedback @herbstephens I updated the image above :)

@herbstephens please read last update. It's going to be 256 blocks (and 205 votes). I think that basing the whole economy in a power of 2 will be of great benefit for human and machine interpretation.
@virgile-dev I like them all, except the timeline for POI on a very simple thing: it should be a bit more sober, less colorful if possible. I think you are clearly communicating very well on the other ones except on the timeline where text is also small. A more cohesive style with the other 2 would be great.
amazing work.

@santisiri agree on the change in numbers ... 256 blocks ... 205 votes ... are best for divisibility and rounding.
Great job @virgile-dev !!

Alright folks, I think we are getting close. Here is the updated version based on your feedback @santisiri @herbstephens let me know if we are ok I'll PR them onto the repo.

Tiny nit on the POI diagram,  typo - missing 'p" i.e. (is.capped.by)

@virgile-dev after thinking through the full token cycle .. I think we need one more 'loop' in the diagram .. to represent the 'EARN' aspect of generating tokens. The only four ways: 1) created/sold at ICO, 2) POI grant, 3) DRIP every 256 blocks, and 4) EARN. To earn, an ORG (for which POI is a recognized member) transfers the equivalent 'of value' in fiat/exchangeable currency or tokens (payroll) directly to wallet [backend a shapeshift-like 'personal exchange'?].  This: 1) accounts for time, 2) pays directly (Lower fees, etc.), 3) gives employer 10% discount (for hiring 'full-time' employee ..rather than exploit part-time).  Earned tokens can then be used in voting and traded on exchanges.  [note: probably not a diagram for this version of the paper]

Okay.. so for the sake of divisibility to meet instant gratification, mantain UBI economics and build a system 100X cheaper than traditional voting, I will adjust the issuance rate likely to a multiple of 10 (250 blocks). stay tuned for today's commits, i'm with my calculator as we speak.

@virgile-dev and yes.. 250 blocks it is.. the perfect number to keep issuance rate at 0.0001 votes every 15 seconds. also branded vote fractions as 'revolutions' since it conveys the speed the network gives political rights. seemed like the accurate technical (and not-technical) term.

@santisiri I love revolution to name the smallest fraction ! #nailedit !


Wrapmode mirror_once is redundant

When configuring a texture, the wrapMode has options TWM_MIRROR and TWM_MIRROR_ONCE, both look like they produce identical results.
We might want to remove Mirror_once, or make it only has one axis of symmetry
See this example, where two planes have these different modes set, but look identical:
example
See this doc for reference about what each should do:
https://learnopengl.com/Getting-started/Textures

I confirm that his looks like a problem with WebGL, since using the following test code I get the expected results in Unity Editor but not in the web build.

I'll be removing the TWM_MIRROR_ONCE option since is the one that doesn't work in WebGL.


Does/will swagger backend together with UI support password fields ?

In our web application we use a swagger JAXRS with swagger-ui to document our APIs. We do also have sesssion API for login/logout, however password fields are just a normal text field. Is swagger-core supporting password field (maybe some annotation) feature so when you would type password in UI it would be hidden by characters *** ?

This will be covered by #469.

how can i get that correction ? just checkout latest swagger-ui code ? or was it / will be part of some release ? thx

It wasn't fixed yet...

@webron then why it was closed ?

Because of https://github.com/swagger-api/swagger-core/issues/1769#issuecomment-214189309.


On demand refresh for near-realtime use cases

Feature Description
A "refresh" button in the Web UI, which would queue up an on-demand refresh.
Goal of Feature
This could help with use cases that require near-realtime data, by allowing Evidence to get the latest data without having a window into the backend via SSH, and without acruing query costs of refreshing a full set of data every n minutes.
This might be used in combination with a daily refresh or n-times daily.
Variations / Implementation options
Where the button might be:

This could be put on a special "Admin view" page.
This could be at the top of each rendered page, hidden under an exapandable "dataset on this page" widget.
This could be part of the expandable data section per each chart.

What the button might do:

Could refresh one selected dataset and only the active page.
Could refresh one selected dataset and all impacted pages of the site.
Could refresh all the datasets on the active page.
Could refresh all the datasets on the site.

Atomic or global:
This on-demand refresh could leave other pages/visuals alone, versus also auto-updating other pages or other visuals on the current page, versus refreshing the site anywhere that dataset is rendered.
Bonus:
For transparency reasons, it becomes even more helpful to have a place on the page that renders "last updated on..." per dataset, and/or for the page overall. (Harder to do if not all visuals on the page have the same refresh time.)
Current Solution
Today I think the best solution is to refresh every n minutes.
Alternative Ideas
Alternatives include:

Refreshing every n minutes on a schedule. (Noted above.)
Define certain queries "on-demand" whenever the page loads. Not mutually exclusive with this option, but the refresh-on-demand approach balances flexibility along with render performance; whereas an on-demand query would add significant lag.
Automatically queuing data refreshes when a page reaches a certain staleness threshold, along with a notification to the user that the refresh has been queued. This saves the user from needing to push a button, and is cheaper than running every n minutes, but is more complex overall, and may be better implemented on top of on-demand refreshes, as a future iteration.

Examples / Screenshots
Not the same, because this is the Admin view, but Power BI has a feature like this in their web UI:

Show/Hide

Are you interested in contributing this feature?
In theory 'yes', but I don't have capacity as of now, and I am not yet well-versed enough on the underlying codebase to do so efficiently.
Related

#534

@aaronsteers thanks for opening, always appreciate your input 🙏🏼
A couple of bits of context for anyone who is not intimately familiar with how Evidence works.
How Evidence currently works
Evidence has two "modes"

Development (dev): the experience that a developer uses when building a project
Build for production (prod): the experience that an end user of evidence sees online

Unlike a lot of tools, these modes operate differently with respect to connecting to data
Development

There is a live connection to the data warehouse
Queries only run for the page you are currently accessing in the browser
Queries run live against the database
Queries data is cached for x minutes (currently 15mins), unless the query is changed

Production

Evidence's build process generates a static site
All queries in the whole project are run at build time (including all templated pages, see #728)
The site does not have a live connection to the database
The data from the queries is published alongside the site

Tradeoffs with the current appraoch
Pros

Page loads tend to be very fast
All updates to the site are behind version control, and changes to the database will never break the live site

Cons

Build process may run a lot of queries
Data is only as recent as latest build

Thanks, @archiewood! Yeah, great context - thank you. 🙏
I especially like this part, and would like to keep it for production applications:

All updates to the site are behind version control, and changes to the database will never break the live site

Given that, I think any kind of on-demand refresh or near-realtime features should ideally fail back safely to the last-valid dataset. And for transparency, a warning icon could indicate if any requested refreshes - or other post-build refresh attempts - have failed.

@aaronsteers something like this is becoming feasible as we make progress on #768 and #973.
It'll be down the road though.
You can play with a prototype version here:
https://github.com/evidence-dev/template/tree/next
The above supports multiple simultaneous data sources, which can be updated outside of the process of building front-end.
When we bring this to main, the initial versions of the new build/ refresh data will just be for dev mode, but you can track progress on that here: #988


No notification sound / no notification light when new mail arrives

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue
Expected behavior
Tell us what should happen
Notification Sound / Light should be hearable/visible when new mail arrives
Actual behavior
Tell us what happens instead
No Notification sound and no Light notification when new mail arrives
(it worked in versions prior 5.400
Steps to reproduce
1.Send a mail from an external account (not in K9)
2. New Mail arrives (indicated within the K9 account and with a small letter in Notification bar)
3. There is no sound and LED notification light
Environment
K-9 Mail version: 5.400
Android version: 6.0  (LG G4)
Account type (IMAP, POP3, WebDAV/Exchange):
IMAP

Same issue here with an LG L90 yesterday. Today, however, it suddenly worked. Seems to be sort of unstable. (No LED here, just notification sound.)

After it did not work later today again, I tried to disable the night-time pause for notifications in global settings. This seems to be a workaround for now until the issue is fixed.

We are experiencing this issue as well on Moto G (1st edition) and Moto G4. However, it seems to be working sometimes: Worked on Moto G yesterday, but does not today. No changes to configuration made.
It's not clear to me what causes the effect until now.

I have the same problem. It seems that the night-time pause begin and end times are switched. Try switching them, for me it seems to work.

Still not working. Pixel 2 Android 8.1.0 power optimization off, imap push, dovecot.


8.5.2 Patch Release

Closes #454
Mostly fixes up a few bugs that have been found, while also adding Youtube support and a few other feature enhancements.
Release Notes

Add Stream Connect support for Youtube (update your Streamerbot's Import Code if you wish to use this)
When looking at a Pokémon in the Log Viewer, you can now see its unlearnable Gym TMs
You can now click the empty Ability of a Pokémon to set a note about it's ability
Removed the coloring of stat numbers based on a Pokémon's nature, for easier mobile viewing experience

This is now a setting in Theme options you can turn on/off

Fixed incorrect Vermilion City Super Rod fishing encounter data (FireRed/LeafGreen)
Fixed NW and SW Safari zones encounters show in the Log Viewer (Emerald)
For a full list of new features, changes and bug fixes, check out the Version Changelog

Updated the release notes and removed that excess code comment I left in.


After few seconds error  strange thrown to console

GET http://localhost:3000/__webpack_hmr net::ERR_INCOMPLETE_CHUNKED_ENCODING

The solution is update you node.js. I recommend the last LTS version 8.9.1
node n 8.9.1


ENH: Set Lowest Supported Python Version to 3.8

Is your feature request related to a problem? Please describe.
Projects that use Python 3.8 will be unable to use future releases of scipy.
Describe the solution you'd like.
It would be great for requires-python in pyproject.toml to be set to >=3.8 since Python 3.8 will be supported until October 2024.
Describe alternatives you've considered.
N/A
Additional context (e.g. screenshots, GIFs)
N/A

See: https://numpy.org/neps/nep-0029-deprecation_policy.html#support-table
If you have a compelling objection to that community policy I suppose you could bring that up more broadly, but I think we're basically tracking that for Python itself.

I think this has been discussed in great detail already though, accounting for various support vs. maintenance burden realities.

Agreed with @tylerjereddy. We dropped Python 3.8 support deliberately - that's not really up for discussion here anymore, unless there's an extremely compelling reason. So I'll close this issue.


Add sql tests for covar/corr and regr functions

@akshatnair @brian-rickman can you please review?

lgtm, but once we have decimal we should remove round


Look at segmentation and partial loading

Is there any area in the code where not pulling everything in the registry is needed? If so, this could be put into a KV store and run on less memory.

If this can be gotten low enough it would be interesting to look at something like cloudflare workers.


Create initial COVID misinformation BINGO page

This is a simple HTML page containing a Bingo card and a list of misinformation

I think that the initial page here is done.