[mattermost] Add 7.9

https://mattermost.com/blog/mattermost-v7-9-is-now-available/

Added some details about the ESR release, had never seen the ESR Page before this.
Also noticed the ESR Mobile release on that page, we might want to mention that down the line.

Reviewed you changes and LGTM. Also lowered the eolWarnThreshold to 30 days (#2575).


Add sourceArn to sts through headers

What this PR does / why we need it:
Cherry-pick from https://github.com/kubernetes-sigs/aws-iam-authenticator/pull/749
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/ok-to-test


Azure Functions Support

What do we have to do to be hosted in azure functions?
Do we need a template for that?
How can we use azure functions as resolvers? (this one might be worth a separate issue)

I'm interested in using Hot Chocolate on an Azure function. Can I assume from this open issue that it currently isn't possible to do so?

I'm interested in using Hot Chocolate on an Azure function. Can I assume from this open issue that it currently isn't possible to do so?

It is possible. Here is an example: https://github.com/OneCyrus/GraphQL-AzureFunctions-HotChocolate
With Version 11 we will bring out of the box support for this.

The example worked perfectly for me, thanks.

HI,
I'm getting error while getting all characters & humans.
Also, getting error while implementing UsePaging &  UseFiltering. Please help.

With Version 11 we will bring out of the box support for this.

Is this still on track? :-)
Thanks and keep up the great work!

@ChristianWeyer 11 will be coming at the end of October. We will decide mid October if this one makes the cut or if we move it to the December release.

Hello I tried the OneCyrus solution but I ran into an exception when I try introspection using altair (I didnt try any other qeuries but I think it's gonna end up same).
Could not load file or assembly 'Microsoft.Extensions.DiagnosticAdapter, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
at HotChocolate.Execution.Instrumentation.QueryExecutionDiagnostics.Subscribe(DiagnosticListener observable, IEnumerable1 observers, ISet1 handled)
at HotChocolate.Execution.Instrumentation.QueryExecutionDiagnostics..ctor(DiagnosticListener observable, IEnumerable1 observers)    at HotChocolate.Execution.QueryExecutionBuilderExtensions.<>c.<UseInstrumentation>b__9_0(IServiceProvider sp)    at DryIoc.Microsoft.DependencyInjection.DryIocAdapter.<>c__DisplayClass3_0.<RegisterDescriptor>b__0(IResolverContext r) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\DryIocAdapter.cs:line 156    at DryIoc.Registrator.<>c__DisplayClass27_0.<RegisterDelegate>b__0(IResolverContext r) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 4540    at DryIoc.Factory.<>c__DisplayClass26_0.<ApplyReuse>b__2() in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 6595    at DryIoc.Scope.TryGetOrAdd(ImMap1 items, Int32 id, CreateScopedValue createValue, Int32 disposalOrder) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 7839
at DryIoc.Scope.GetOrAdd(Int32 id, CreateScopedValue createValue, Int32 disposalOrder) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 7824
at DryIoc.Factory.ApplyReuse(Expression serviceExpr, Request request) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 6594
at DryIoc.Factory.GetExpressionOrDefault(Request request) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 6554
at DryIoc.Factory.GetDelegateOrDefault(Request request) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 6624
at DryIoc.DelegateFactory.GetDelegateOrDefault(Request request) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 7736
at DryIoc.Container.ResolveAndCacheDefaultFactoryDelegate(Type serviceType, IfUnresolved ifUnresolved) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 209
at DryIoc.Container.DryIoc.IResolver.Resolve(Type serviceType, IfUnresolved ifUnresolved) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\DryIoc\Container.cs:line 194
at Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetService(Type serviceType, IfUnresolved ifUnresolved) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\JobHostServiceProvider.cs:line 99
at Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetService(Type serviceType) in D:\a\1\s\src\WebJobs.Script.WebHost\DependencyInjection\JobHostServiceProvider.cs:line 77
at HotChocolate.Execution.ClassMiddlewareFactory.<>c__DisplayClass0_01.<Create>b__1(IServiceProvider s, QueryDelegate n)    at HotChocolate.Execution.ClassMiddlewareFactory.<>c__DisplayClass2_01.b__0(IQueryContext context)
at HotChocolate.Execution.QueryExecutor.d__10.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()    at Reality.UI.Executor.GraphQlExecutor.<ExecuteFunctionsQueryAsync>d__15.MoveNext() in D:\Repos\git\reality\BE\Reality.UI\Executor\GraphQlExecutor.cs:line 69    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Reality.Access.Functions.UI.UI_Http_GraphQl.<RunAsync>d__3.MoveNext() in D:\Repos\git\reality\BE\Reality.Access\Functions\UI\UI_Http_GraphQl.cs:line 32    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker2.<InvokeAsync>d__10.MoveNext() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionInvoker.cs:line 52    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.d__26.MoveNext() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 541
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.d__25.MoveNext() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 486
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.d__24.MoveNext() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 432
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.d__18.MoveNext() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 239
I'm using

@Deathrage can you please open up a proper issue?
This issue is actually meant for the feature not for issues with an example.

@Deathrage https://github.com/Azure/azure-functions-vs-build-sdk/issues/397#issuecomment-596315129
this should help

Dear future reader, do not add any errors here regarding the AzF example by @OneCyrus. This feature item shall only be used regarding the Hot Chocolate integration and not for reporting errors. If you have an issue, open up a new issue.

@michaelstaib I am sorry I will ask in the other project but I find it highly innapropriate that you have deleted the reply with solution.

HI @Deathrage,
I am sorry that this upset you, but it really is better to just create a new issue.  This also leads to us overlooking issues since they are just dumped into feature items.
I would not mind a new issue on our report describing your issue and even providing some help around this, but please re-post them as a separate issue so that we can keep track of these things.

@ChristianWeyer 11 will be coming at the end of October. We will decide mid October if this one makes the cut or if we move it to the December release.

Michael, did this make the cut?

Hi,
no, we are moving it to the December release version 11.1.0

Hello
When hot chocolate can be be hosted in an azure function, will it support subscriptions (through SignalR) ? If not is there an ETA?
Thank you
-Francois

HI, Do we have a support for sorting & filtering on Azure function? I'm able to do that on WebApp but getting error while trying  that on AZ function app. Please help.

It should also work in there. We for now are not officially supporting Azure Functions. But there is a package that supports this here:
https://github.com/cajuncoding/GraphQL.AzureFunctionsProxy#enabling-the-playground-from-azurefunctions
But still the filtering and stuff will just work in there.
At the moment native AzF support is planned for the 2021-06 release cycle with previews coming out beginning of may.

At the moment native AzF support is planned for the 2021-06 release cycle with previews coming out beginning of may.

Are you also targeting the Azure Functions Functions Worker for .NET 5 ? It seems that this does not expose a HttpContext when using a HttpTrigger, which makes it impossible to adapt implementations like the unofficial package mentioned above :-)

No, I got a small example from Anthony Chu on how we can get a fill ASP.NET core server into this. I did not yet dive into all the specifics of that. We have moved AzF support to the 2021-09 release.
Roadmap is here:
https://github.com/ChilliCream/hotchocolate/projects/28

a very rough draft  which works in Azure functions .net 5 dotnet-isolated
using HotChocolate.AspNetCore.Serialization;
using HotChocolate.Execution;
using Microsoft.Azure.Functions.Worker.Http;
using System.Threading.Tasks;
using System.Threading;
using System.Linq;
using HotChocolate;
using System.Text;

namespace Project1
{
    public class GraphQLAzureFunctionsExecutorProxyV12
    {
        private readonly IHttpRequestParser _requestParser;
        private readonly IHttpResultSerializer _resultSerializer;
        private readonly IRequestExecutorResolver _requestExecutorResolver;
        public GraphQLAzureFunctionsExecutorProxyV12(
            IHttpRequestParser requestParser,
            IHttpResultSerializer resultSerializer,
            IRequestExecutorResolver requestExecutorResolver)
        {
            _requestParser = requestParser;
            _resultSerializer = resultSerializer;
            _requestExecutorResolver = requestExecutorResolver;
        }

        public async Task<HttpResponseData> ExecuteQueryAsync(HttpRequestData req)
        {
            var requests = await _requestParser.ReadJsonRequestAsync(req.Body, CancellationToken.None).ConfigureAwait(false);
            var executor = await _requestExecutorResolver.GetRequestExecutorAsync().ConfigureAwait(false);
            var batchRequest = requests.Select(r => QueryRequestBuilder.From(r).Create());
            var result = await executor.ExecuteBatchAsync(batchRequest).ConfigureAwait(false);

            var response = req.CreateResponse();
            response.Headers.Add("Content-Type", _resultSerializer.GetContentType(result));
            response.StatusCode = _resultSerializer.GetStatusCode(result);
            // var json = await result.ToJsonAsync().ConfigureAwait(false);

            var json = new StringBuilder();

            await foreach (IQueryResult payload in result.ReadResultsAsync())
            {
                json.AppendLine(payload.ToJson());
                json.AppendLine();
            }

            await response.WriteStringAsync(json.ToString()).ConfigureAwait(false);
            return response;
        }
    }
}

 public static class Program
    {
        public static void Main()
        {
            var host = new HostBuilder()
                .ConfigureFunctionsWorkerDefaults()
                .ConfigureServices(s =>
                {
                    s.AddSingleton<GraphQLAzureFunctionsExecutorProxyV12>();
                    s.AddGraphQLServer().AddQueryType<Query>();

                }).Build();

            host.Run();
        }
    }

 public partial class API
    {
        private readonly GraphQLAzureFunctionsExecutorProxyV12 _graphQlExecutorProxy;
        public API(GraphQLAzureFunctionsExecutorProxyV12 graphQlExecutorProxy)
        {
            _graphQlExecutorProxy = graphQlExecutorProxy;
        }

        [Function(nameof(GraphQL))]
        public async Task<HttpResponseData> GraphQL(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "graphql")] HttpRequestData req)
            => await _graphQlExecutorProxy.ExecuteQueryAsync(req).ConfigureAwait(false);
   }
}

Thank you @maksimetsa for sharing draft code.
I tried high Level implementation of HotChocolate GraphQL Azure Function NET 5.0 (isolated process) and it's working fine.
Git Repository: https://github.com/chandsalam1108/GraphQLAzFunctionNet5
Article: https://chandabdulsalam.medium.com/hotchocolate-graphql-azure-function-net-5-0-isolated-process-1e16ee198ac1

@chandsalam1108 410? -> https://chandabdulsalam.medium.com/hotchocolate-graphql-azure-function-net-5-0-isolated-process-1e16ee198ac1

The URL changed to: https://chandabdulsalam.medium.com/hotchocolate-graphql-azure-function-net-5-0-isolated-process-f3eae3650caf

did you already work out how to get the V12 proxy working with Banana Cake Pop?

HI, do we have any recommended swagger document approach for graphql azure function?

@chandsalam1108 That would seem like the wrong way to go; you'd ideally generate the GQL clients and models directly from the schema instead rather than swagger which is geared towards REST.

Is AddHttpRequestInterceptor not supported in Azure Functions .Net 5.0? Please advice.
Also, advice on how to set GlobalState object and use the same in Query class.
I'm using centralized JWT authorization library hence upon successful authorization I need to set claims returned from my library to some global state object so that can be used inside Query class.
Thanks.

If you want to intercept requests with functions, you need to use IFunctionInvocationFilter.  Functions has a distinct runtime from .NET Web API.
With respect to custom JWT, check this blog post on how to implement custom JWT using IFunctionInvocationFilter: https://charliedigital.com/2020/05/24/azure-functions-with-jwt-authentication/

Hi @CharlieDigital , Thanks for the help.
I'm mostly following similar approach for custom JWT but not sure how to persist ClaimsPrincipal post authorization and use that in Query class.
I'm using .Net 5 so I've no access to HttpContext. So, please advice on how to get my Claims to Query class.
Thank you!

Missed that detail; if you are using .NET 5, then you should have access to middleware and can plug in a package to set the ClaimsPrincipal.

I'm using AddHttpRequestInterceptor but it's not getting executed. Let me know if I'm missing something.
All i need is to set ClaimsPrincipal and assess that in Query class. Appreciate if you can some github sample in this regard.
Environment: .Net 5, Azure Function V3, HotChocolate 11.x
public static class Program
    {
        public static void Main()
        {
            var host = new HostBuilder()
                .ConfigureFunctionsWorkerDefaults(
                builder =>
                {
                    //builder.UseMiddleware<ExceptionLoggingMiddleware>();
                })
                .ConfigureServices(s =>
                {
                    s.AddPooledDbContextFactory<HealthCenterContext>(db => db.UseSqlServer(Environment.GetEnvironmentVariable("SqlConnectionString")));

                    s.AddSingleton<GraphQLAzureFunctionsExecutorProxyV12>();

                    s.AddGraphQLServer()
                    .AddQueryType<Query>()
                    .AddProjections()
                    .AddFiltering()
                    .AddSorting()
                    .ModifyRequestOptions(opt => opt.IncludeExceptionDetails = true)
                    .AddHttpRequestInterceptor(
                        (context, executor, builder, ct) =>
                        { //Unable to hit the break point here...
                            if (true)
                            { // My idea is to extract the claims ad

                            }
                            return default;
                        });

                }).Build();

            host.Run();
        }
}

@CharlieDigital @michaelstaib @maksimetsa
Issue: Unable to pass custom object from AZ function method to Query class.
Environment: .Net 5, Azure Function V3, HotChocolate 11.x
For better understanding of the issue, please go through the code snippets mentioned below.
Function Logic:

[Function(nameof(GraphQL))]
        public async Task<HttpResponseData> GraphQL(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "graphql")] HttpRequestData req, FunctionContext context)
        {
            var logger = context.GetLogger("HealthCenterFx");

            AuthHelper.ExecuteAuth(req, out var _submitter); \\My custom Authorization lib returns **submitter** details after authorization
\\Is there a way I can pass **_submitter** object to Query class?
            if (!_submitter.IsAuthenticated)
            {
                var authResponse = req.CreateResponse(System.Net.HttpStatusCode.Unauthorized);

                logger.LogInformation($"Unauthorized Access!!!");

                await authResponse .WriteAsJsonAsync($"Unauthorized Access!!!");

                return authResponse ;
            }

            return await _graphQlExecutorProxy.ExecuteQueryAsync(req).ConfigureAwait(false);
        }

### Is there a way I can pass submitter object details from AZ function method to the Query class mentioned below?
Query Class Logic:

        [UseDbContext(typeof(HealthCenterContext))]
        [UseProjection]
        [UseFiltering]
        [UseSorting]
        public IQueryable<Clinic> GetClinics([ScopedService] HealthCenterContext context)
        {
\\Is there a way I can get custom object (submitter) details from AZ function method to here to use that in linq where condition?
            return context.Clinics;
        }

Can't fully answer this question as I have not worked with .NET 5 Functions, but if you find the answer, definitely share it here!

FYI to all.... the above approach to using .Net 5 in the Azure Functions isolated process model (out-of-process) is limited to only supporting Query execution.  In addition the HC middleware do a lot of other awesome work that is likely being exluded.
I have recently had a little time to update the AzureFunctionsProxy project to now support the isolated process with .Net 5, and it can be used today (even if to jump start your development process ahead of the official)....
It has full parity of features as the AzureFunctionProxy has with the In-Process model.... all you have to do is use the nuget package: https://www.nuget.org/packages/GraphQL.AzureFunctionsProxy.IsolatedProcess/
This enables a new extension method now available that handles the HttpRequestData and returns the HttpResponseData  compable with the out-of-process model using .Net 5!
Example and more details are in the readme here...
I successfully validated:
a series of basic queries that I also used to validate the in-process AzureFunctionProxy; which ultimately it's the SAME proxy code running for both now :slightly_smiling_face:
Banana Cake Pop is working as expected :raised_hands:
And Schema Download is working as expected
Official Azure Functions support is still in the Pipeline for HC (which will be the go-to approach once released)....

Azure Functions support has officially been released with version 12.1.0. Please give it a try and raise a new issue, if you encounter any problems! :)
You can get started with our new Azure Functions template:
dotnet new -i HotChocolate.Templates::12.2.1
dotnet new graphql-azf

Hi.
Do you plan to support .NET isolated process functions any time soon?
According to the Azure Functions Roadmap the "isolated process" model will be the single available option starting from .NET 7. This makes the "in-process" model much less attractive (especially for new function apps) because it will require migrating to the isolated worker when upgrading to >=.NET 7.
I have seen the @cajuncoding's solution (thank you for this 🙂) but it would be nice to have it officially supported in HC.

FYI @Voskoboynik et al,
Official support for Azure Functions Isolated Process is coming soon!  It's now slated for release with HC v12.9.0 per recent discussion with the core team, and of course will be included in v13!  It's fully functioning, and will likely be available in preview very soon:

May I ask when this is due to be released @cajuncoding ?

@source-studio this was asked in the slack channel recently also. It has been implemented and the PR has been submitted…but still pending final approval & merging.
I think it’s now slated for v13…not sure if it’ll get pulled into a v12 release; @michaelstaib will need to provide more info.


Fix mvsc + buildchain

This branch includes changes from previous PR #193 + changes for Visual Studio 2017 compliance.
I'm starting this new PR to have a common thread with all changes at the same place.
Contributions are welcome.
In its current state:

Linux platform:

compiles in Release, RelWithDbg, Debug
main app runs in Release, Debug
test0 segfault for all configurations

Windows VS:

compiles in Release and Debug
apps crashes for all configurations.

Windows mingwin (QtCreator)

untested

MacOS

untested

this PR compiles fine on MacOs in all build mode (Debug, Release, RelWithDebInfo).
there is still one building problem (i did'nt find where yet) when running an application for the first time. Even if all dependencies are correctly compiled and "installed", at the first run of an application (main-app or test0), the application fail to dynamically load libglbinding.dylib. By running cmake && make again (that surprisingly just do the linking of all lilbs and executable), everything works fine after that.
main-app run fine in each build mode.
Test0 run fine but is buggy and crash at exit. This is due to the problem described in issue #194

Thanks @MathiasPaulin for the tests.
I've done some testing on test0, it seems to me that the crash is due to GL, I got a crash when trying to access viewer->context() (see dbd53e9).
My guess is a GlBinding/QtGL fight. What do you think ?

@nmellado Concerning your problem when accessing viewer->context() at line 36 of Applications/Test0/main.cpp, the fact that this pointer is nullptr is safe and everything is OK. At this point, the OpenGL context was not yet initialized (see doc at http://doc.qt.io/qt-5/qopenglwidget.html#context). You can access the context only once the InitializedGL was called after the window mapping. This is common to all version of Qt and is a reason why you cannot call OpenGL stuff in the constructor of a Qglwidget or QOpenGlWidget. I moved your CORE_ASSERT just after _viewer->show at line 114 of Applications/Test0/main.cpp. The only concerns that remains (on MacOs at least) is the problem of unloading shaders and the hacky^H^H^H^H^HdefaultConfig that is still incomplete ... and make the application crash at exit.

I've copied this CORE_ASSERT line from the Main app. Anyway, even without it, test0 is crashing when qt is trying to display the main window.


Uniswap demo: "Unrecognized manifest schema format "undefined"

Issue
I'm trying to use a Uniswap Web3API query but receive the following message in my console:
"Unrecognized manifest schema format "undefined""
What I've tried
Adding this to the manifest file and re-building:
import_redirects:
  - uri: w3://ens/ethereum.web3api.eth
    schema: ../../js/plugins/ethereum/schema.graphql
  - uri: w3://ens/ipfs.web3api.eth
    schema: ../../js/plugins/ipfs/schema.graphql

Steps to reproduce
Deploy the Uniswap Web3API to Ipfs on localhost

Open the Web3API monorepo, pull the uniswap-web3api branch, and change to the uniswapv2 directory.

git checkout -b uniswap
git pull origin uniswap-web3api
cd packages/apis/uniswapv2

Add the following script into the package.json file:
"deploy": "w3 build --ipfs http://<IP_ADDRESS>:5001"

In the uniswapv2 folder, install dependencies and then deploy to Ipfs:

yarn
yarn deploy

The CLI will generate a Ipfs address.  We'll be using this later.
Web3API integration into the Uniswap Interface

In a separate VScode, clone the Uniswap Interface (monorepo-issue-321 branch) and start up the dApp:

git clone git@github.com:Web3-API/uniswap-interface.git
cd uniswap-interface
git pull origin monorepo-issue-321
yarn
yarn start

I've set up the Web3ApiProvider in src/components/Web3ReactManager/index.tsx

In the src/pages/Swap/index.tsx file, copy and paste the Ipfs hash into Qm<Hash> inside the useWeb3ApiQuery custom hook.

Take a look at your console in Chrome/Brave for testWeb3API.

Also,
Here is the Ipfs manifest file from my dev console:
"
# TODO: should import and "implements" the api-resolver core-api schema
# https://github.com/Web3-API/monorepo/issues/75

type Query {
  catFile(
    cid: String!
    options: Options
  ): Bytes!

  resolve(
    cid: String!
    options: Options
  ): ResolveResult

  tryResolveUri(
    authority: String!
    path: String!
  ): ApiResolver_MaybeUriOrManifest

  getFile(
    path: String!
  ): Bytes
}

type Mutation {
  # TODO: Allow for custom type CID
  # https://github.com/web3-api/monorepo/issues/103
  addFile(data: Bytes!): String!
}

type ResolveResult {
  cid: String!
  provider: String!
}

type Options {
  # Timeout (in ms) for the operation.
  # Fallback providers are used if timeout is reached.
  timeout: UInt64

  # The IPFS provider to be used
  provider: String
}

# TODO: should get replaced with an import
# https://github.com/Web3-API/monorepo/issues/75
type ApiResolver_MaybeUriOrManifest {
  uri: String
  manifest: String
}"

I'm looking at this and I think I have it set up correctly, but I've hit an issue:

Access to fetch at 'http://localhost:5001/api/v0/cat?arg=QmXqcAwPBcrkB5yBpkKxNuyBN9ean8BUbtUvkZR2eTyzUE%2Fweb3api.yaml' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Do you know a workaround for this? It is trying to fetch from the correct url--I know because I can click the url and get the manifest in my browser.
I deployed the ens address manually by entering http://localhost:4040//deploy-ens in my browser. I then got the ens address from http://localhost:4040/ens
Here is my api deployment command:
w3 build --ipfs http://localhost:5001 --test-ens 0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab,uniapi.eth
Here are my redirects:
const [redirects] = useState<UriRedirect[]>([
    {
      from: 'ens/ethereum.web3api.eth',
      to: ethereumPlugin({
        networks: {
          testnet: {
            provider: "http://localhost:8545"
          },
          mainnet: {
            provider: "http://localhost:8546"
          },
        },
        defaultNetwork: "testnet"
      })
    },
    {
      from: 'w3://ens/ipfs.web3api.eth',
      to: ipfsPlugin({
        provider: 'http://localhost:5001'
      })
    },
    {
      from: "w3://ens/ens.web3api.eth",
      to: ensPlugin({ addresses: { testnet: "0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab" } }),
    },
  ])

And my function call:
const { execute } = useWeb3ApiQuery({
    uri: 'ens/testnet/uniapi.eth',
    query: `query {
      tokenEquals(
        token: $token
        other: $other
       )
     }`,
    variables: {
      token: BAT,
      other: BAT,
    }
  })

I believe this issue is caused by not having the format: 0.0.1-prealpha.1 property in your web3api.yaml file. The error should certainly be much more descriptive.


deleted then added namespace does not appear on cmwell web interface

I am using iris2.thomsonreuters.com namespace for development and deleted the whole namespace with curl -X DELETE <host>/iris2.thomsonreuters.com. After that I can add infotons in this namespace, the ingest returns {"success":true} and I can query the new infotons. However, the namespace does not appear on the cmwell web interface. If I go to the namespace's page, I get Infoton was deleted on 2018-08-10T03:33:53.960Z

@tibotiber I have consulted with @bryaakov, and what you describe is a known issue related to parent infotons cacheing in bg.
If you would restart the bg process, and reingest new infotons, the parent will be recreated.
@YoniMataraso please review this and prioritize.
Another interesting finding is that DELETE request implies &recursive=true parameter by default, which translates to different behavior depending on amount of children.

Not a problem for me, this is only a dev-level inconvenience. I guess related to this, I've observed that a namespace's infotons count doesn't refresh in the interface when I ingest new content.
In any case, feel free to close if tracked elsewhere. Maybe provide the link to the issue if it's available.


Webassembly in nodejs

Hello!
I'm curious, If I want to run that webassembly in nodejs context, how it would access graphics card? In browser context browser provides webgl to webasm, but is it possible to run that webasm outside of browser and still have webglRenderingContext?
Thank you!

Hello! In a browser context the browser actually doesn't provide WebGL to Wasm, and glue code has to be created. Depending on your language, some tooling automatically outputs this JavaScript glue code. For example, emscripten will putput JavaScript along with your Wasm output, so that the JavaScript can provide the link between Wasm and WebGL APIs.
You can also write JavaScript bindings yourself, as the WebAssembly API lets you provide functions from JavaScript to be imported into a WebAssembly module (look for "webassembly imports"), and when WebAssembly calls these functions, these functions can do things like interact with JavaScript's WebGL APIs.
In Node, its the same thing, except that WebGL doesn't exist out of the box, but you can install Luis Blanco's (@raub) excellent webgl-raub package that adds WebGL APIs to Node.js.
If you're writing code in Rust, for example, then after you add webgl-raub in your node app, there should be little left for a Rust app to just work. If it complains about any DOM APIs missing once you run the code, you can implement what is missing. The webgl-raub package and related packages already try to polyfill some common things that WebGL apps need like document.createElement('canvas'), etc.
Hope that helps!

@trusktr thank you for your answer! I know about webgl-raub package, tried it but no luck with canvaskit from skia. It's seems like it provides not full support of webgl. Currently we use headless-gl which is not ideal also and I was curious about wasm, expected that in wasm world tools like emascripten could provide true webgl implementation and bindings.
@trusktr If you have deep experience with webgl-raub, may I ask you to answer question here https://github.com/node-3d/webgl-raub/issues/24 ? thank you!


Make sure content of logs is properly ordered

Questions
Answers

Description?
There is an issue in the current implementation of the logger making some lines present at the wrong place.

Type?
bug fix

BC breaks?
Nope

Deprecations?
Nope

Fixed ticket?
/

Sponsor company
PrestaShopCorp

How to test?
Covered in unit tests. As I don't know where we can see the issue while upgrading, I would say the log must remain the same

FYI @AureRita


Have an option to return large numbers in json as standard format instead of scientific notation

Feature Request
Proposal: For /query API endpoint, have a parameter which can be used to choose to return large number in standard notation instead of scientific notation.
Current behavior: Currently the /query API will return any large number (more than ~6 digits) in scientific notation.
Desired behavior: I would like to have the option to receive json in standard format, similar to the option to get prettified json ("pretty=true")
Use case: Working with the json (charting, calculations, transformations) sometimes require a change to standard form. It is nice to have the option to just receive the format as standard to start with. http://stackoverflow.com/questions/38434044/influxdb-select-query-integer-formatting

I'm currently watching this issue related to this: golang/go#6384. It seems like this issue changes things so anything that be represented as an integer is represented as an integer.
It looks like this is already in go 1.8 and so we should automatically retrieve that change. 1.2.0 is built with go 1.7.x (not sure which version exactly) and that won't change since we don't switch minor releases of Go for patch releases. But, we should be incrementing the Go version for 1.3 after we test to make sure it works properly.
Can you try compiling the master branch with go 1.8 in the meantime to see if it matches what you need?

I think this is done because of the change to Go. We do not plan to make any further changes.


errors opening encrypted file: "spawnSync sops ENOENT"

I guess your extension is making a lot of assumptions which are not documented.
We have the extension .enc on encrypted files, and your extension detects it, and then throws this error:
Could not decrypt SOPS file ...: spawnSync sops ENOENT

Hi, the .enc extension of files should not be the problem.
The detection of a file type is based on internal VSCode API which returns the language of the file when opened. The only YAML and JSON languages are observed by extension.
If the file with the custom extension (.enc) is not detected as YAML file, even the syntax highlighting wouldn't work for you.
The problem could be related to some missing global requirements. Currently, there has to be installed Node.js and SOPS binaries and exported in PATH environment variable. See https://github.com/signageos/vscode-sops#requirements
Could you print following:
env
whereis sops
whereis node
# or at least
echo $PATH

I consider a later version to be able to work without node.js. However, this first version is just PoC.
I welcome pull requests.

I don't have whereis but I have both node and sops and use them already a lot. I am using GCP KMS though, and it needs GOOGLE_APPLICATION_CREDENTIALS to point to my account json file. It is probably the only variable that should be able to be set in your extension.

FYI:
which node
which sops

give me
/Users/Morriz/.nvm/versions/node/v11.15.0/bin/node
/usr/local/bin/sops

nevermind, I killed vscode, set it in the terminal and started vscode from there...env var is now set

it's working now, albeit quite slow...but thanks a lot!

I have this issue too, I did try setting the keys and everything but it still fails. Could someone write something more on how to fix this?

The problem is the missing sops or node binaries in the PATH environment variable. Just check if it's there based on your system. Like Linux Ubuntu can have the sops inside ~/.local/bin/sops so PATH should contain export PATH=$PATH:~/.local/bin. But it can differ for every system, user, or whatever. It applies to the node binary as well...
VScode has limited options for getting environment variables, so maybe ~/.bash_profile or ~/.bashrc are just not enough. You may have to add it to /etc/environment and reboot the system.

Where exactly is located your sops? (The absolute path). Where is extended the PATH env var with the dirname of sops location? ~/.bashrc, ~/.zshrc, ~/.bash_profile or /etc/environment or other?
You can optionally specify the sops binary location in VSCode settings if nothing else works for you.

The problem appears to be related to the node binary. In my setup, I have node installed via nvm where nvm itself is set up through ~/.bashrc. As VS code does not load that on boot, it can't find the node binary.
I believe a temporary fix to this issue is to allow the extension to look up the node binary path from a user setting, same like the sops binary path.

The latest version os vscode-sops extension shoul not be dependent on node.js already. The underlying scripts were changed to shell native instead of node.js.
Can you try it now and confirm that? In case there is problem let's create another issue and we will figure it out.

adding in my own 2c, when I populated the Bin Path with the output of whereis sops everything started working correctly

I just encountered this issue as well.
First, I did what benwalio suggested and I added the path to the sops binary to Extension Settings.
This path is in $PATH, but for some reason, the extension doesn't see it.
After I did this, the error changed. It said it failed to find the data key. But it used the default macOS
path (/Users/lucian/Library/Application | Support/sops/age/keys.txt), instead of using the SOPS_AGE_KEY_FILE variable, which I have set.
To test whether PATH and SOPS_AGE_KEY_FILE are available to vscode, I ran in vscode's Terminal:
echo $PATH
echo $SOPS_AGE_KEY_FILE


Add pyproject.toml for Custom Node Registry

We are building a global registry for custom nodes (similar to PyPI). The registry makes using custom nodes more reliable by reserving globally unique names for each custom node, and supporting semantic versioning.
Here’s some more information on the registry.
Action Required:

[ ] Go to the registry. Login and create a publisher id. Comment it here and we will update the PR (or just merge it and change it yourself).
[ ] Write a short the description.
[ ] Merge the separate Github Actions PR and run the workflow.
If you want to publish the node manually, install the cli and run comfy node publish

Please message me on Discord if you have any questions!

hey @zfkun, wanted to send a small nudge and ask if you had any questions!

@zfkun, wondering if there's any way we can support you on this PR!


Improve messaging about 'strip'

Like many folks, I recently got one of these messages:
RuntimeError: Unable to rename the dependencies of libgraphblas.dll because this DLL has trailing data. If this DLL was created with MinGW, run the strip utility. Otherwise, include libgomp-1.dll;libgcc_s_seh-1.dll in the --no-mangle flag. In addition, if you believe that delvewheel should avoid name-mangling a specific DLL by default, open an issue at https://github.com/adang1345/delvewheel/issues and include this error message.

Could we improve the messaging on what "run the strip utility" means? Some of us only deal with Windows inside a GitHub Actions runner and experimentation gets tedious.

Is strip a Windows command or do I need to install it? Is it just the GNU binutils utility?
What strip arguments does delvewheel need? I tried strip libgraphblas.dll (with full path) and saw the same message again.
The list of things strip can strip is long:

       strip [-F bfdname |--target=bfdname]
             [-I bfdname |--input-target=bfdname]
             [-O bfdname |--output-target=bfdname]
             [-s|--strip-all]
             [-S|-g|-d|--strip-debug]
             [--strip-dwo]
             [-K symbolname|--keep-symbol=symbolname]
             [-M|--merge-notes][--no-merge-notes]
             [-N symbolname |--strip-symbol=symbolname]
             [-w|--wildcard]
             [-x|--discard-all] [-X |--discard-locals]
             [-R sectionname |--remove-section=sectionname]
             [--keep-section=sectionpattern]
             [--remove-relocations=sectionpattern]
             [-o file] [-p|--preserve-dates]
             [-D|--enable-deterministic-archives]
             [-U|--disable-deterministic-archives]
             [--keep-section-symbols]
             [--keep-file-symbols]
             [--only-keep-debug]
             [-v |--verbose] [-V|--version]
             [--help] [--info]
             objfile...

Suggestion: follow homebrew's example for similar circumstances: emit the command you need me to run (with switches and dll name included). Even better, test for the presence of strip and just run it for me. Possibly if enabled with a --autostrip switch if you wish.

strip -s ...path/*.dll
or
strip -s ...path/libgraphblas.dll

@bigcat88 has provided the correct strip command. I have submitted an improvement to the error message and will look into the possibility of running strip automatically.

strip -s ...path/*.dll or strip -s ...path/libgraphblas.dll

Appreciate it, but the GitHub Actions version of strip appears to require more than that. A simple strip -s resulted in the same delvewheel message, so I tried strip -s -v and got this:
copy from `C:/Program Files (x86)/bin/libgraphblas.dll' [pei-x86-64] to `C:/Program Files (x86)/bin/stiG2Kb7' [pei-x86-64]

Does that mean I'm supposed to somehow tell delvewheel to use stiG2Kb7 instead?
@adang1345 Appreciate the change! --strip still doesn't work for me in GitHub Actions, though, probably due to the output above.
(I've been using the --no-mangle workaround, but I'd rather get the strip version working)

Can you give me a link to a GitHub Actions run where you are experiencing the issue?

@alugowski I took a look at https://github.com/alugowski/python-suitesparse-graphblas and discovered why strip is not working for you. Your build of libgraphblas.dll contains the .eh_frame section, which is responsible for 14 bytes of trailing data at the end of libgraphblas.dll. This section prevents name-mangling and cannot be removed with strip.
Based on https://stackoverflow.com/questions/26300819/why-gcc-compiled-c-program-needs-eh-frame-section, it looks like you can prevent the .eh_frame section from being created using the -fno-asynchronous-unwind-tables compiler flag.

I have submitted https://github.com/adang1345/delvewheel/commit/78ebfd0904d97ba8b69df02fa41e7d60256a4c0a, which allows name-mangling to occur in most cases even if a DLL contains trailing data. It may allow you to stop using the --no-mangle flag.


chore: Create python-package-conda.yml and update README

Codecov Report

:exclamation: No coverage uploaded for pull request base (1.1@9cb750b). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head a928e88 differs from pull request most recent head d3d1662. Consider uploading reports for the commit d3d1662 to get more accurate results

@@          Coverage Diff           @@
##             1.1      #50   +/-   ##
======================================
  Coverage       ?   99.63%
======================================
  Files          ?        2
  Lines          ?      277
  Branches       ?        0
======================================
  Hits           ?      276
  Misses         ?        1
  Partials       ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Latest ash_paper_trail fails.

Describe the bug
After updating ash_paper_trail to https://github.com/ash-project/ash_paper_trail/commit/3e2a7b4458caed743c4c9fb803c27a962477da9a,
changeset.ex fails with WithClauseError
     * %WithClauseError{term: #Ash.Changeset<domain: Azir.Apy, action_type: :destroy, action: :destroy, tenant:<PHONE_NUMBER>40, attributes: %{}, atomics: [archived_at: ~U[2024-06-26 00:59:51.367606Z]], relationships: %{}, errors: [], data: %Ash.Changeset.OriginalDataNotAvailable{reason: :atomic_query_update}, context: %{ash_archival: true}, valid?: true>}
       (ash 3.0.16) lib/ash/changeset/changeset.ex:807: anonymous fn/2 in Ash.Changeset.run_atomic_change/3

To Reproduce
A minimal set of resource definitions and calls that can reproduce the bug.
Expected behavior
A clear and concise description of what you expected to happen.
Runtime

Elixir version
Erlang version
OS
Ash version
any related extension versions

Additional context
Add any other context about the problem here.

Commented in the PR on the fix, thanks for the report. Will close this in favor of the discussion in PR: https://github.com/ash-project/ash_paper_trail/pull/88


Rename default "master" Branch >> "main"

why: https://github.com/github/renaming#renaming-the-default-branch-from-master

thanks @MarkusTiede  done ;)


Tree browse by ⌘+K

Very useful ❤

Notion
Slack

https://github.com/nogahighland/confluence-pagetree-search/releases/tag/r-confluence-v3.0.0


FLUX LoRA Extraction Resemblance Issue

I have used below config to extract 128 LoRA Network Rank with 0.99 Clamp Quantile and results are really bad
What does Clamp Quantile do @kohya-ss ?
Then I tried 0.01 Clamp Quantile and it is all noise :)
Here what i mean
left one is fine tuned model, right one is extracted 128 Rank FLUX LoRA
tested on SwarmUI latest which works perfect on both fine tuned checkpoints and trained LoRAs

Config

ok it was related to clamp quantile :D


Compatibility with Expo SDK 43

Is your feature request related to a problem? Please describe.
We need to use some 0.2.0 new features in an Expo App
Describe the solution you'd like
Is a Expo SDK 43 compatible version of this library planned ?
Or is there another way to use 0.2.0 with an Expo SDK 42 app ?
Describe alternatives you've considered
Rewriting the app in bare react native

any updates on this? is there a workaround to use any of stripe's version with expo sdk 44?

v0.2.2 was included in Expo SDK 43: https://github.com/expo/expo/blob/sdk-43/packages/expo/bundledNativeModules.json#L11

It's still not compatible. At least on expo snack.


fix incompatibility with android device ids

this fixes the bigint out of range error

Like I said, it's not as easy as that. There are a ton of users of the library today who would be affected by this and have to run data migrations, which is too much to ask at this point.

ok, we could include a custom migration?

I'm extremely wary of data migrations in libraries. For example, if someone runs them on a very large table without paying much attention, they could lock their prod db down for a very long time.
The safest way to do it is to make this opt-in somehow, and include a management command to migrate the data. Once it's been opt in for one release or two, make a new major release that only makes it default behaviour.

Ok, I thought about it some more and I think I found a safe way to do it without a setting that wouldn't lock the table too long:

Rename the hexint field to device_id_legacy, adding a migration for it
Add a new field device_id, a CharField which works much the same as the HexIntegerField (nullable, indexed).
Ensure that device_id works the same way as before in the DRF API. This is important, otherwise it breaks backwards compatibility in the API itself.
Ensure device_id gets filled properly, and device_id_legacy no longer does.
Add a data migration which casts all non-null device_id_legacy to their device_id.
Drop the device_id_legacy column
Remove api.rest_framework.HexIntegerField. The other HexIntegerField class will have to stay as it's in existing migration.

I think @matthewh is handling the hexint migration stuff, so I'm closing this.

Yes I have a PR almost ready for this.

On Apr 16, 2017, at 8:44 AM, Jerome Leclanche<EMAIL_ADDRESS>wrote:
I think @matthewh is handling the hexint migration stuff, so I'm closing this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Easy message passing interface

It would be nice if aparapi supported an MPI-like interface for passing messages between cpu/gpu and between kernel threads.

@CC007 I really like this idea. Would you be interested in doing a pull request for this if I offered up a bounty as reward?

@CC007 Added a $50 bounty on this if your interested.

Sorry for the late reply. I didnt really have much free time in the past year, and totally missed all messages from aparapi ^^; It has been a while since I used aparapi, but I might take a look at it at a later date.


Circular dependency (equalTo and notEqualTo)

Lets say we have the "confirm password" situation - we have 2 form controls, password1 and password2, which should contain the same value. We might want to add the "equalTo"-validator to both controls, so that the "equalTo" error is attached to both of them. in their control.errors Array. This situation causes a circular dependency between the controls, as updating the value of one control updates the other, which in turn updates again the first control and so on.
I'll create a pull request for this shortly.

Hi,
As no one answer, merge or update this repository, I forked it and fixed circular dependencies, build errors.
Can you make a PR on my branch ?

Hey Ralf,
I'm sorry for the late answer, these past few weeks are crazy stressful, I had a lot to do.
So, I was also thinking of extending the work of YuYang, as it is a very needed functionality, but I was waiting
till I get a little more free time. I see you have called your branch "ng4-validators", I was thinking, maybe
rename it in "ng-validation" and maintain support for the newest Angular version (v5 at the moment).
What do you think?
Regarding your question about making a pull request on your branch, you already fixed the
circular dependency problem, so what changes do you want me to push?
Best regards
Kiril

Von: Ralf Saenen<EMAIL_ADDRESS>Gesendet: Donnerstag, 12. Oktober 2017 15:02:15
An: yuyang041060120/ng2-validation
Cc: Mitev, Kiril; Author
Betreff: Re: [yuyang041060120/ng2-validation] Circular dependency (equalTo and notEqualTo) (#95)
Hi,
As no one answer, merge or update this repository, I forked it and fixed circular dependencies, build errors.
Can you make a PR on my branch ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/yuyang041060120/ng2-validation/issues/95#issuecomment-336127774, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APqvjJdDyswO-lQiKIn1kbvAXkGGAIv1ks5srg3XgaJpZM4OGiXj.


Set the project files

Set the project files for development:

Add development files to .gitignore

Obviously safe. Merging.


Not respecting config parameters

I have several config parameter setup with values greater than the default, but ffmpeg is being called with the default parameters. Here is my config:
                "videoConfig": {
                    "source": "-re -i rtsp://user:pw@<ip>/live",
                    "stillImageSource": "-i rtsp://user:pw@<ip>/live",
                    "maxStreams": 2,
                    "maxWidth": 1920,
                    "maxHeight": 1080,
                    "maxFPS": 30,
                    "maxBitrate": 1200,
                    "vcodec": "copy",
                    "packetSize": 1316,
                    "audio": false,
                    "debug": false
                }

Here is the output I see from ps:
ffmpeg -re -i rtsp://user:pw@<ip>/live -map 0:0 -vcodec copy -pix_fmt yuv420p -r 10 -f rawvideo -tune zerolatency -b:v 299k -bufsize 299k -maxrate 299k -payload_type 99 -ssrc 2154094 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params ukjECQnaBVr52tmMbojbZYhOqHdfptj8sOT+Guk+ srtp://<phone ip>:58842?rtcpport=58842&localrtcpport=58842&pkt_size=1316

Note: I removed private user/pw/ip
The problem i'm seeing is bad streaming quality. When debugging I'm seeing a lot of timeouts. This was working well about a month ago.
Specifically the output from ps is showing -r 10 indicating 10 FPS when I specified 30. It also appears to be specifying 300kbit is several places when I specified 1200.

The new setting of minBitrate has at least helped the situation. I changed set that value to 600 and now ffmpeg is getting set with a max of 600, and that is making the stream work much better.

If my source stream is 1920x1080 and that same res is asked for then would it be possible to just encrypt it rather than transocde it? Do you know if the encryption will use the AES-NI in the CPU?


Floating Action Button

use a floating action button to add new items to the list. recommended by sami. That way you don't need to scroll to the top to use the text input.
Have it load a modal to enter the item.

Branch https://github.com/amplitudesolutions/mealtime/tree/sharebutton

Rather than use a floating action button, have the textbox always at the bottom of the screen.


chore(Dependencies) : update sbt-git from 1.0.2 to 2.0.1

Updates com.typesafe.sbt:sbt-git from 1.0.2 to 2.0.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (1.0.2).
You might want to review and update them manually.
modules/scalcite-ui/yarn.lock

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.sbt", artifactId = "sbt-git" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.typesafe.sbt", artifactId = "sbt-git" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-major, old-version-remains, commit-count:1

Superseded by #756.


make install fails if root shell is not bash

Hi
just run into this and it took me some time to find out why my 'sudo make install' did not chmod 4755 libexec/sexec.
alpine linux root shell is /bin/sh
voidlinux root shell is /bin/ash
[tru@voidmusl ~]$ cat Makefile
issue:
@echo $$SHELL
@if test "$$UID" = "0"; then
echo " root";
else
echo " non root";
fi
@echo "$$UID"
[tru@voidmusl ~]$ make
/bin/bash
non root
[tru@voidmusl ~]$ sudo make
/bin/sh
non root
alpine:~$ make
/bin/bash
non root
alpine:~$ sudo make
/bin/ash
non root
test is a builtin and UID is not defined in these shells
replace the UID test by USER test ?
"$$UID" = "0"
"$$USER" = "root"

I did it a little bit different just incase we are in another shell that doesn't even offer $USER. Please test 493e319 whenever you get a chance.
Thanks!

works for me :+1: alpine/voidlinux and voidlinux musl


Metro from RN 0.60.0 warns that rnpm config is deprecated and will stop working in the next release

warn The following packages use deprecated "rnpm" config that will stop working from next release:

appcenter: https://github.com/Microsoft/appcenter-sdk-react-native/blob/master/appcenter/README.md

Thanks @charleycesar for reporting this, we will look into this.

Hey @charleycesar we are working on the RN 0.60 support and it is planned in our July SDK release. Thank you for the patience!

Hi there! This issue has been fixed.
I'm closing this issue but feel free to open a new issue on the appcenter-sdk-react-native repository if this issue still persists.


Added Cookie pop-up

Issue: #1291
Added Cookie Pop-up to the about us page of website, included the paragraph to understand the concept.
It is responsive too.
https://github.com/user-attachments/assets/35c8d5c9-faee-4cd2-9522-2df3d0c162e5

@Its-Aman-Yadav Sir,
Please review this PR. Thank You!


Fix how we build cert names

We should be using hostName instead of nodeName. Also fixes a bug where allHostnames did not have networks in small case.
jira: https://issues.redhat.com/browse/OSPRH-6266

/test dataplane-operator-build-deploy-kuttl
NoClusters: No clusters in pool are ready to be claimed

/test dataplane-operator-build-deploy-kuttl

recheck

/test dataplane-operator-build-deploy-kuttl

/override ci/prow/dataplane-operator-build-deploy-kuttl
this job already passed for the current commit (e4ca876):
See job history:
https://prow.ci.openshift.org/job-history/gs/test-platform-results/pr-logs/directory/pull-ci-openstack-k8s-operators-dataplane-operator-main-dataplane-operator-build-deploy-kuttl
And build results:
https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openstack-k8s-operators_dataplane-operator/812/pull-ci-openstack-k8s-operators-dataplane-operator-main-dataplane-operator-build-deploy-kuttl/1778066989885952000


Fix IkSampleableConstraint to handle finite pose constraints

The current aikido::constraint::SampleGenerator interface implies a strong distinction between a finite and infinite sequence of samples (via the getNumSamples() and canSample() methods).  The current implementation of aikido::constraint::IkSampleableConstraint uses a generator for its underlying pose constraint.  If this pose generator samples from a finite set of samples, then the IkSampleableConstraint generator will also return a finite set, even if there exists an infinite sequence of actual samples (e.g. because of kinematic redundancy).  Even in the case that the IK set is finite (e.g. due to a 6-DOF arm), there are often multiple solutions for each pose sample.

Fixed by #13 and #22


Update default.conf

removing the log path. Now the docker image is automatically creating symlinks
access.log -> /dev/stdout
error.log -> /dev/stderr
So errors are easy visible in the Docker Dashboard

@SmuSmu thanks for catching that!


Update the github token

This is a follow up to https://github.com/viamrobotics/api/pull/101, which should fix this https://github.com/viamrobotics/api/actions/runs/3438079708
The issue is that the main branch is protected (as it should be). Can an admin @edaniels @Otterverse etc. update the permissions on this so that the viambot user can push directly to main?
This PR updates the GitHub tokens to use the viambot token, similar to how I do it for the python-sdk, which similarly needs to push directly to main

Curious that the REPO_READ_TOKEN allows write access, but I'll document that in confluence. I've updated the branch protection to allow viambot to bypass the PR requirement.


feat: allow parameterization of handshakes

Currently the DH, Cypher and Hash are hardcoded. In case we want to use a different values it is not possible (like in  https://rfc.vac.dev/spec/70/)

Weekly Update

achieved: implemented parameterization of DH, Cypher and Hash


[wallet-adapter][WIP] Add support for multiple types of transactions in adapter

Replaced by #4904


Dashboard: System uptime is empty

This is not a big deal, it only looks empty when the System uptime is not showing anything:

It is only empty a minute after a reboot, but it can make new users a bit confused when the system time is showing nothing.
I assume system uptime shows 0 before it reaches 1 minute (or is it empty if i run the command from a terminal too?), so why isn't that visible on the dashboard?

so why isn't that visible on the dashboard?

Because of aggressive caching. I'll have a look.

This issue will be fixed in the next Webmin release.
Thanks for the heads up!


Ensure machines configured with enough mapped shared memory

Noted during the most recent release, SharedClassesAPI failure (an extended.system test) is due to a machine config issue (memory mapped shared memory should get increased).
See https://github.com/AdoptOpenJDK/TSC/issues/99#issuecomment-513042506 for links to failures (noted on machines test-macincloud-macos1014-x64-2, test-macincloud-macos1013-x64-2 though there could be others).

I do not know the details, @pshipton mentioned it, and said the openj9 machines were with plenty of shared memory space.  Let's get the details from him.  I would hope we can attempt to keep the configuration of machines across the projects to be aligned, this detail must not be captured anywhere in doc or playbooks to date.

Check with @jdekonin for the setting of SHMMAX on the OpenJ9 Mac machines.

Or isn't there some older Mac machines that were working? Compare the SHMMAX setting with the new machines.

The settings in sysctl.conf I was asked to make were :
kern.sysv.shmmax=125839605760
kern.sysv.shmall=30722560
This is documented in https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/212

@gdams Can you cover this in the macos playbooks?

Going to close this now it's been merged. If the problem is still there please reopen


Update flyway-core to 9.15.0

Updates org.flywaydb:flyway-core from 9.4.0 to 9.15.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (9.4.0).
You might want to review and update them manually.
core/src/main/scala/akka/persistence/postgres/db/ExtendedPostgresProfile.scala

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.flywaydb", artifactId = "flyway-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.flywaydb", artifactId = "flyway-core" }
}]

labels: test-library-update, early-semver-minor, semver-spec-minor, old-version-remains, commit-count:1

Superseded by #327.


add prefixes for x86 to support cross-compiling from non-x86 targets

otherwise cross-compiling from arm64 -> i686 fails, e.g. http://crossqa.debian.net/build/rustc_1.49.0+dfsg1-1_i386_20210907094750.log

The linux32 build is failing I think because it is relying on a x86_64-*-gcc to have multilib and using that instead of i686-linux-gnu-gcc (which is what one would use in a general cross-compiling $host-to-$target scenario). I'll try to think of an approach that can cater to both use-cases.

I've used the existing approach with find_working_gnu_prefix - all builds green now

Thanks for this! This makes sense to me, but I'm hesitant to do so because it's such a commonly used target this seems likely to regress someone somewhere by accident. Could this implement some form of fallback where if these compilers aren't found it still stick with cc as the default?


Mispelling: seperator -> separator

The word's correct spelling is separator.
Because seperator is already an option, exposed to the outside world, this should be updated in a major version or with backwards compatibility.

You're absolutely right

fixed in https://github.com/darenmalfait/bionify/releases/tag/v2.0.0


git clone error: Filename too long

On "Windows 10 Pro (1809)" following error occurs during "git clone" the plattform:
$ git clone https://github.com/shopware/platform.git
Cloning into 'platform'...
remote: Enumerating objects: 367, done.
remote: Counting objects: 100% (367/367), done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 217997 (delta 166), reused 283 (delta 93), pack-reused 217630
Receiving objects: 100% (217997/217997), 97.32 MiB | 3.86 MiB/s, done.
Resolving deltas: 100% (157886/157886), done.
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-prices/sw-product-variants-configurator-prices.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-restrictions/sw-product-variants-configurator-restrictions.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-restrictions/sw-product-variants-configurator-restrictions.scss: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-selection/sw-product-variants-configurator-selection.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-selection/sw-product-variants-configurator-selection.scss: Filename too long
Checking out files: 100% (5897/5897), done.
fatal: unable to checkout working tree

Can you please try running the following command before
git config --system core.longpaths true


Align with jboss-openshift/cct_module's enhancements

Take over the enhancements from https://github.com/jboss-openshift/cct_module/tree/master/os-java-run/added
On a first sight I see some additions for proxy setups, but there can be more, too.

proxy options has been added via #50


ClientWorld.netHandler should be renamed to networkHandler

networkHandler is widely used in yarn.

Potentially impactful. I found some mods that Mixin to this reference the field.


whats the risk of getting banned

title

From what i've known nobody has been banned yet.
This program just uses the roblox API and doesnt spam it.

Oh ok, thanks then


Upd 1.3.35

 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.1 out of 11 committers have signed the CLA.:white_check_mark: vitlibar:x: jmayclin:x: dougch:x: knightjoel:x: harrisonkaiser:x: maddeleine:x: franklee26:x: aditishri18:x: lrstewart:x: camshaft:x: goatgooseYou have signed the CLA already but the status is still pending? Let us recheck it.


Improve CompressedImageSaver

It's time to get serious about texture speed :). Streaming mips can come later, first we need a better system that actually compresses textures (on disk).

Old plan (ignore everything under this)
The current CompressedImageSaver outputs basisu files, which tend to be quite large, as they're designed for random-access decompression on the GPU, not for linear-reads like loading from disk. We should supercompress the textures by compressing the basisu with zstd. By storing that in a ktx2, we can reuse the existing ImageLoader (ktx2 zstd-supercompressed textures are an existing standard), no need for a custom loader.
We may also want to skip basisu, and just store BC7/ASTC/etc in supercompressed KTX2 files directly, to avoid the overhead, and let us support more formats. See the optional bullet points below. If so, a lot of the bullets below are invalid.
TODO

Rename to CompressedTextureSaver, as it's only meant to be used for 3D textures
Enable set_rdo_uastc()

Might also need to use set_no_selector_rdo() for normal maps? See https://docs.rs/basis-universal/latest/basis_universal/encoding/struct.CompressorParams.html#method.tune_for_normal_maps

After converting to basisu, encode to a zstd-supercompressed ktx2
Add docs

Explain disk compression vs GPU compressed texture formats
Describe the pipeline: PNG/JPEG -> basisu -> zstd -> ktx2 -> BC7/ASTC
Note that it generates mipmaps
Explain why you want to do this: smaller size on disk, faster rendering

Add an example (might also want to rework the asset_decompression example to work on something other than an image, or just replace it outright)
Add support for the GLTF extension KHR_texture_basisu(?)

Not sure if this is needed? Bevy can already support ktx2 files that store both basisu, and suprecompressed basisu + zstd data

(Optional) Add support for saving to either BC7 and/or ASTC supercompressed ktx2 files directly (not sure how expensive the runtime transcoding from basisu is, might not matter)
(Optional) Add support for BC6 textures and ASTC HDR for HDR content
(Optional) Use BC5 for normal maps

Will this allow us to add mipmaps to a 2d image with multiple layers (for texture array) ?

Theoretically I think? Would probably need extra handling to deal with more than 1 layer. Depends how difficult that is to implement. I haven't figured out how to generate the mipmaps yet, might need to use wgpu and run some compute shaders.

After talking it over some more, I feel that basis universal is not worth it, and that we're better off using KTX2 with BC/ASTC textures already.

New thoughts:

Still should be renamed to CompressedTextureSaver
Still want more docs explaining it
Pipeline is texture -> generate mips -> convert each mip to BC/ASTC -> zstd compress each mip -> write ktx2 file

Useful stuff:

https://crates.io/crates/fast_image_resize for generating mips on the CPU, or GPU via compute shaders
https://crates.io/crates/intel_tex_2 for BC/ASTC conversion

According to a 2020 study https://aras-p.info/blog/2020/12/08/Texture-Compression-in-2020, bc7enc_rdo and astcenc give better results, but don't have maintained rust bindings. https://gpuopen.com/compressonator is also an option, and can do the whole pipeline for us.

https://github.com/fintelia/ktx2encode and https://github.com/expenses/ktx2-tools/tree/master for writing ktx2 files

The core question around basisu is how to simultaneously support both desktop GPUs (which only support BCn) and non-Qualcomm mobile GPUs (which only support ASTC). There's a few possible approaches that I see:

Encode to UASTC. This is basisu's higher quality format and takes 1 byte/pixel to store (or a bit less if you apply zstd afterwards).
Create two ktx2 files with BC7 and ASTC compression respectively. Each file would be 1 byte/pixel for a total of 2 bytes/pixel (or a bit less if you apply zstd afterwards). Distribute different files depending on what the platform supports.
Encode to BC7 and then transcode to ASTC at runtime (or vice versa) if the platform needs it. Only a single file with 1 byte/pixel, or a bit less with zstd. I haven't heard of anyone using this approach. The main downside is that on platforms that need transcoding you'd have slower loading and lower quality textures than either of the previous options.

Is what I strongly suggest.

From what I've seen, basisu is just a lot slower, and not even worth it considering you're going to ship separate builds for mobile/desktop anyways. The only use case I see for it as web support, so I guess we could keep supporting it just for that.

Note the basis_universal crate doesn't support wasm: https://github.com/aclysma/basis-universal-rs/issues/10

There's also https://github.com/JakubValtar/basisu_rs which does pure-Rust UASTC transcoding, and thus should be wasm compatible


itemstats: Add variable healing food

Supersedes #4092

I dunno how this works without pictures but this is awesome also when you hoover your mouse on top of the food it will show how much hp it will give but can it also show what your hp will be if you do eat the food?

and for what HP you will be on i guess you can configure that in item stats already.


Warn users when TileMap is set as Y-sorted but no layer is

~Closes~ Related to https://github.com/godotengine/godot/issues/83142
This adds a warning when the TileMap is set as Y-sorting, but none of its layers is.

Thanks!


Notebook trust extension tests are failing

The Notebook Trust extension test cases are all failing after the latest vscode source code refresh.  Since this is the only suite that is currently broken it is being disabled while being investigated so the other test cases can be reenabled.
    1) BooksTreeViewTests
       BookTreeViewProvider
         bookTreeViewProvider
           should set notebooks trusted to true on trustBook:

      AssertionError: Failed to set trust on trustBook
      + expected - actual

      -false
      +true

  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/book.test.js:196:35)
  	at process.processImmediate (node:internal/timers:466:21)

  2) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using the jupyter-book legacy version < 0.7.0
           should trust notebooks in a trusted book in a folder:
     AssertionError: Notebook 1 should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:293:55)
  	at process.processImmediate (node:internal/timers:466:21)

  3) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using the jupyter-book legacy version < 0.7.0
           should trust notebook after book has been added to a folder:
     AssertionError: Notebook should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:311:65)
  	at process.processImmediate (node:internal/timers:466:21)

  4) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using the jupyter-book legacy version < 0.7.0
           should NOT trust a notebook when removing all books from folders:
     AssertionError: Notebook should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:320:54)
  	at process.processImmediate (node:internal/timers:466:21)

  5) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using jupyter-book versions >= 0.7.0
           should trust notebooks in a trusted book in a folder:
     AssertionError: Notebook 1 should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:293:55)
  	at process.processImmediate (node:internal/timers:466:21)

  6) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using jupyter-book versions >= 0.7.0
           should trust notebook after book has been added to a folder:
     AssertionError: Notebook should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:311:65)
  	at process.processImmediate (node:internal/timers:466:21)

  7) BookTrustManagerTests
       TrustingInFolder
         Trusting in Workspaces using jupyter-book versions >= 0.7.0
           should NOT trust a notebook when removing all books from folders:
     AssertionError: Notebook should be trusted
  	at Assertion.fail (extensions/notebook/node_modules/should/cjs/should.js:275:17)
  	at Assertion.value (extensions/notebook/node_modules/should/cjs/should.js:356:19)
  	at Context.<anonymous> (extensions/notebook/out/test/book/bookTrustManager.test.js:320:54)
  	at process.processImmediate (node:internal/timers:466:21)

This PR disables these tests while enabling the other extension test cases https://github.com/microsoft/azuredatastudio/pull/23497.


Showing the color in the list

Hi,
I created a model with a RGBField.
Then I setted my model admin list_display to: ('color')
where color is my RGBField.
In the list of registered models, the rgb value for the selected color is shown.
Would be amazing if the view was something like the widget.
I do not know if it can be done directly in the django-colorful but if it is possible, it will be pretty cool.

That didn't show up for me in Grappelli admin fyi. Solved it like this (and actually I liked it better):
def display_color(self):
    return '{color}'.format(
        color=self.color,
    )
display_color.short_description = _('Color')
display_color.allow_tags = True

You should probably be using django.utils.html.format_html to format the string.

This worked worked for me on Django 4.2:
from django.utils.html import format_html

[...]
    def display_color(self):
        return format_html('', self.color)
    display_color.short_description = 'Color'


[New Port Request] Win Flex-Bison

Library name:
Win flex-bison
Library description:
Win flex-bison is a windows port the Flex (the fast lexical analyser) and Bison (GNU parser generator). win_flex based on Flex version 2.6.3 source code and win_bison based on Bison version 2.7 and they depend on system libraries only.
Source repository URL:
https://github.com/lexxmark/winflexbison
Project homepage (if different from the source repository):
https://sourceforge.net/projects/winflexbison/
Anything else that is useful to know when adding (such as optional features the library may have that should be included):

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.

@mfarnz See #33084 for WiP


java-shallow-deep tutorial

Java shallow-deep-copy tutorial
Chris Smith
Oppscope

Please decline this one - extraneous files


Working with numbers instead of character

Hello
Let's say I have sequences of numbers:
10 1 2 11 120 11 ...
And I want to apply torch-rnn to predict the next number.
However, it seems to me that torch-rnn will process digit, not number.
How could I apply torch-rnn with the units are numbers?
Thanks a lot

Here's a method I came up with for working with 8 bit audio. Originally I was feeding it a stream of comma separated numbers, 0-225, and it was doing it on a per-digit basis. I was getting fairly good results with this, but realized it didn't make sense for each digit to be a vector. I changed each number to its unicode UTF-8 equivalent, so that each value of 0-255 was represented by a different character. This sped things up by about 3x, and gave quite good results. If you know the range of numbers, this would be one possibility- you just need to encode before training, and decode after sampling.


Application ID text box has a question mark.

Describe the bug
Application ID text box has a question mark.
To Reproduce

Unlock the app
click on ADD ID button in home page
click on "Don't have your UIN/VID? Get it here " button.

Current behavior
Get UIN/VID text box has question mark.
Expected behavior
The question mark should not be there or it should contain tool tip message for being in place.
Screenshots

Smartphone (please complete the following information):

Device:  iPhone7 & iPhone XR
OS: 15.4.1
Inji app version: 0.4.0 (16) in test flight
MOSIP Version: 1.2.1
MOSIP server: qa-121.mosip.net

Additional context
Issue registered for Android app https://github.com/mosip/inji/issues/158

Verified on:
Device: iPhone 8 & iPhone 11
OS: 16.0.2 (20A380), 15.6.1
Inji app version: 0.4.1 (7) -> Testflight
MOSIP Version: <IP_ADDRESS>
MOSIP server: qa5.mosip.net
https://github.com/mosip/inji/issues/158#issuecomment-1294750893

The behaviour is not as per the Mock image in the above comment.

tool tip message box is not aligned with that of AID textbox.
When resident clicks on question mark , the question mark is taken to tip of the message box in the top . please refer the recorded video.
we see two question marks, one in AID textbox and other on top of tool tip message.

https://user-images.githubusercontent.com/79500509/209341351-8d39c834-d1d4-4d74-93f3-f1f884c3c71c.MP4
Due to above listed issue will re-open the bug.

tested on:
iOS: Inji version 0.4.1 (12)
WORKS AS EXPECTED
@pmigueld @santhoshsunder @kyanthony @Anushree09-N
Steps

Unlock the app
click on ADD ID button in home page
click on "Don't have your UIN/VID? Get it here " button.

Devices
iPhone 11 - iOS 16.1.2
iPhone SE - iOS 15.4
Screenshot


US intl. with dead keys

I found your repo looking for a way to install the linux "US intl. with dead keys" on Windows 10. I see that you use "US intl. with altgr dead keys". The main difference is that I am used to type altgr for the standard US character (quote, double quotes, etc). And use the dead key without the altgr. This is because I live in a Spanish speaking country so I use more often the accents and ñ than the quotes and such. But for writing code, I still can have my US characters on hand.
I would like to contribute to this repo with a "US intl. with dead keys" layout, so I have a couple of questions:

Are you willing to make this a more general US intl. repo so I can contribute here on the same repo.

Did you create your layout from the ground up, or did you manage somehow to export the layout from linux to use it as base?

Regards

I believe you can just use the standard United States International keyboard layout that ships by default on Windows.
As for how I created the layout: first, I opened the default US Intl keyboard layout in Microsoft Keyboard Layout Creator, and then I manually moved the dead key combinations to AltGr.
If the default US Intl doesn't work as expected, I'd love to expand this repo to provide more general keyboard layouts.


Nano ID 2.0

Thanks for the changes. I have a few things going on today, I will try to merge and test it again over weekend.

You are welcome

Overall looks good,  but just one question here.  Porting non-secure.generate like in the JS case to python is a little bit confusing and a lot more complex.
like this is  simple
1
from nanoid import generate, non_secure_generate

and this is a lot more complex
#2
from nanoid import generate
from nanoid.non_secure import generate (so which generate, the name is same)

# or using it as module
from nanoid import non_secure
non_secure.generate()

# but why not also have this, to make it consistent
from nanoid import secure
secure.generate()

# For 2,  this paradigm takes more brain power to follow

I can show you a version in v2.0 merge.  And you can review it, maybe better?

I would like to see your version too.
As for 2, using as is the only solution, actually.
from nanoid import generate
from nanoid.non_secure import generate as non_secure # <=

generate()
non_secure()

Not the easiest to follow, but somehow concise. Someone, who is an expert in creating libraries might argue with me.
Again, please, share with me your vision on how this library should be structured.


Pre-commit GHA to cover webapps

This PR does not need a corresponding Jira item.
Description
Ensure pre-commit.yml GHA triggers on changes to webapps.
Testing
N/A
Production deployment

[x] This code change is ready for production on its own
[ ] This code change requires the following considerations before going to production:

Looks like it should work, thank you @manstis ! Any way to test it before we merge?

@hasys

Looks like it should work, thank you @manstis ! Any way to test it before we merge?

Erm.... Unfortunately not that I know of.


Pull passport-cas from npm

This PR: https://github.com/oaeproject/Hilary/pull/1210 caused a unit test regression:
  1) Authentication CAS authentication verify forward to cas:

      Uncaught AssertionError: '/cas/login' == '/cas/login/something/foo'
      + expected - actual

      -/cas/login
      +/cas/login/something/foo

      at /Users/branden/Source/apereo/oae/Hilary/node_modules/oae-authentication/tests/test-external-strategies.js:468:36
      at Request._callback (/Users/branden/Source/apereo/oae/Hilary/node_modules/oae-rest/lib/util.js:244:16)
      at Request.self.callback (/Users/branden/Source/apereo/oae/Hilary/node_modules/oae-rest/node_modules/request/request.js:121:22)
      at Request.emit (events.js:110:17)
      at Request.<anonymous> (/Users/branden/Source/apereo/oae/Hilary/node_modules/oae-rest/node_modules/request/request.js:978:14)
      at Request.emit (events.js:129:20)
      at IncomingMessage.<anonymous> (/Users/branden/Source/apereo/oae/Hilary/node_modules/oae-rest/node_modules/request/request.js:929:12)
      at IncomingMessage.emit (events.js:129:20)
      at _stream_readable.js:908:16
      at process._tickDomainCallback (node.js:381:11)

And so it was rolled back. This issue should be revisited to complete the work.

Assigned to @stuartf for fix

It looks like live changes of the loginPath weren't taking.

Upstream hardcodes that path. I've made a PR at https://github.com/sadne/passport-cas/pull/11


[Export/Import] Expand and clean up existing PR on main

Removed the requirement of ClientContext in every CatalogEntry constructor.

This is reaaaaally weird:
https://github.com/Tishj/duckdb/actions/runs/6651546702/job/18073784695?pr=77
read_csv_glob test failing, should error, but it succeeds.


nixosTests.systemd-networkd: fix test flakiness

Motivation for this change
Fixes #96642
Things done
The original idea for this test was, on top of providing a networkd
test, to provide newcomers with a sample configuration they could use
to get started with networkd.

That's precisely why we were doing this systemd tmpfile dance in the
first place. It was a convenient way to create a runtime file with a
specific mode and owner.

Sadly, this tmpfile rule made the test flaky. There's a race condition
between the wireguard interface configured by systemd-networkd and
systemd-tmpfiles-setup.

Sometimes, networkd is going to try loading the wireguard private key
file *before* the said file gets created by systemd-tmpfiles.

A perfect solution here would be to create a "After" dependency
between wg0.netdev and systemd-tmpfiles-setup.service. Sadly, it is
currently impossible to create such a dependency between a
networkd-specific unit and a service.

We're removing this tmp file in favor of pointing networkd directly to
the Nix store. This is clearly something that shouldn't be done in the
real world for a private file: the store is world-readable. However,
this is the only way I found to fix this test flakiness for now.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg test systemd-networkd
CC @JJJollyjim @Ma27

Thanks!


Meta Tags Bug

As reported by @raptorbrad on the forum
I believe I may have found a bug with the meta tag information. I’ve been playing around with it quite a bit and I can’t seem to get my links to display as shareable cards on Twitter. I believe there are a few issues with a some of the meta tags set in the interpolate index function that generates the header information.
Based on playing around with meta tags on https://metatags.io/, I’ve found the following:
The twitter:card property tells Twitter the type of card to display, so instead of passing the description in, we should use the following.
<meta property="twitter:card" content="summary_large_image">

More information on Twitter cards can be found at the following url:
https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards 1
Additionally, the twitter:url is supposed to point to the link you are sharing instead of to https://metatags.io/.
For all the image tags twitter:image and og:image, I believe they need to be absolute paths to where the images are hosted online (i.e. http://www.website.com/assets/image.png instead of relative paths /assets/image.png. The current implementation will always be the image provided appended to /assets/.

Fixed in V1.0.8


Code quality

To ensure a high quality of our code
including readability and transferability
our code should have

minimal (none?) hlint warnings
build with --pedantic flag
100% documentation of interface (as measured by haddock)

Note:

Coverage versus hlint.
One needs to use /= to cover "data X deriving (Eq)".
However, on not (var /= var) hlint generates warning: Use ==
Is there another way to achieve coverage? Or should we ignore for test files the Use == warning?
alex issue https://github.com/simonmar/alex/issues/103 prevents a pedanctic build.
the stack --pedantic flag turns on -Wall -Werror for GHC (all warnings on, and warnings treated as errors)
What about hlint : "Suggestion: Use camelCase" when a name contains a underscore, i.e., _? Do we agree with this enforced naming convention?

related to
#87
#91
#145

alex issue solved
we already build with pedantic

Do we agree with this enforced naming convention?

Yes! Please.

We should also measure the coverage of our test cases (and act on it
see #92)

We should also use weeder to improve code quality: https://github.com/ndmitchell/weeder

And maybe https://hackage.haskell.org/package/homplexity

https://www.reddit.com/r/haskell/comments/464wm4/code_quality_metrics_for_haskell/ for more tooling


Service worker responds slowly (10 seconds) when many query parameters are present

Library Affected:
workbox-strategies
Browser & Platform:
Google Chrome v101.0.4951.41
Issue or Feature Request Description:
On a site using the PWA plugin for WordPress, which includes Workbox, the service worker is taking 10 seconds for the NetworkFirst strategy to respond to requests for URLs that have many query parameters.
Steps to reproduce:

Go to https://www.sensorsone.com/ and let the service worker install
Try reloading the page and see it only takes a couple seconds.
Now try going to the same URL with many query parameters, and notice that the response from the service worker takes over 10 seconds.
Now in the Application tab of DevTools, enable "Bypass for Network" and reload the same URL with many query parameters. Now the response is returned relatively quickly as in the first step.

Originally reported on the WordPress plugin support forum

I just saw that the user was running PWA plugin v0.6 which included Workbox v5. I'm asking them to update to v0.7 which includes the current Workbox version to see if that fixes the issue.

Actually, I can reproduce the issue on my own site with the latest versions installed.

Responds quickly after 115ms: https://weston.ruter.net/
Responds slowly after 9s: https://weston.ruter.net/?ab=4&v0=56&u0=degrees+Celsius+(°C)&f0=C&v1=60&u1=degrees+Celsius+(°C)&f1=C&v2=0.0005&u2=per+degree+Celsius+(%2F°C)&f2=CdT&v3=100&u3=centimetres+(cm)&f3=cm&u4=centimetres+(cm)&f4=cm&v5=100&u5=sq+centimetres+(cm²)&f5=sqcm&v6=100.4&u6=sq+centimetres+(cm²)&f6=sqcm&v7=100&u7=cu+centimetres+(cc%2C+cm³)&f7=cucm&v8=100.6&u8=cu+centimetres+(cc%2C+cm³)&f8=cucm

Service worker URL: https://weston.ruter.net/wp.serviceworker
Workbox version: 6.5.3

This is due to the denylist functionality in the service worker's navigation routing:

The following RegExps are each being tested against the long pathname + search:

/^\/wp\-admin($|\?.*|\/.*)/
/[^\?]*.\.php($|\?.*)/
/.*\?(.*&)?(wp_service_worker)=/
/.*\/wp\.serviceworker(\?.*)?$/
/[^\?]*\/feed\/(\w+\/)?$/
/\?(.+&)*wp_customize=/
/\?(.+&)*customize_changeset_uuid=/
/^\/wp\-json\/.*/

I can't tell you offhand which one of them is giving you particularly bad performance when tested against that long input, but it normally tends to be a RegExp that does a bunch of backtracking. You could try removing them one by one from your denylist until you find the one(s) that are expensive, and then attempt to optimize it.
I'm going to close this issue, since it appears to be more about how Workbox is configured than about the core functionality. Let me know if there's anything else I can do to assist, though.

...one more thing is that if you really need to keep the current set of RegExps in your denylist, but you want them matched against just the pathname portion of the URL, you could do that pretty easily via a custom matchCallback:
const denylist = [/.../, /.../];
const navigationMatcher = ({request, url}) => {
  if (request.mode !== 'navigate') {
    return false;
  }
  for const (regexp of denylist) {
    if (regexp.test(url.pathname)) {
      return false;
    }
  }
  return true;
};

registerRoute(
  navigationMatcher,
  SomeStrategy(),
);

This would help if you know that it's unlikely for folks to have a very long path, while it's more likely for them to have a lot of query parameters.
You could also get more fine-grained to how you match your path segments while avoiding RegExps if you need to:
const skipIfSegmentMatches = ['skip1', 'skip2'];
const navigationMatcher = ({request, url}) => {
  if (request.mode !== 'navigate') {
    return false;
  }
  const segments = url.pathname.split('/');
  for const (segment of skipIfSegmentMatches) {
    if (segments.includes(segment)) {
      return false;
    }
  }
  return true;
};

registerRoute(
  navigationMatcher,
  SomeStrategy(),
);

Thanks a lot! I was able to identify these two patterns as causing the expensive backtracing:
/\?(.+&)*wp_customize=/
/\?(.+&)*customize_changeset_uuid=/

I'm going to optimize those and then consider your improved denial logic for the future.
🙇


fix args name bug

@NEUdeep don't see how that's a bug.

@NEUdeep don't see how that's a bug.
Yes, you are right, this is not a bug, even though the variable name ‘img_size’ is used in config.py

you mean yaml? yes, python arg parse converts all cmd line args with - to _ so in the code and if you dump to yaml/json it will be changed to _. It works fine, even if it's a bit confusing at first.
I'll be changing up the whole config + args interface to something Hydra based at some point...


Add CQLSH_PORT environment variable

Signed-off-by: Ashmita Bohara<EMAIL_ADDRESS>Since https://github.com/jaegertracing/jaeger/pull/2472 is merged, adding support for custom port here.
Partially Fixes: https://github.com/jaegertracing/jaeger-operator/issues/1179

LGTM. Will be merged on green. Thank you for your contribution!

Thank you for your quick feedbacks @jpkrohling It was my pleasure contributing.


Projects checked out using wsl svn unable to be built with visual studio 2013 since 1803 update.

Your Windows build number:  (Type ver at a Windows Command Prompt)
Microsoft Windows [Version 10.0.17134.1]

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)
Attempting to compile a project with any uppercase characters in the directory / file names checked out using svn fails with a file not found error.
The same project checked out with tortoise svn in a different directory succeeds.
This is new behavior since the 1803 update.

What's wrong / what should be happening instead:
Successful compilation.

I suspect this has something to do with the case sensitivity added recently.  After running process monitor, I notice that the build that succeeds' path is:
C:\projects\Hello_World_2\WSLTest
wheras the build that fails' path
C:\projects\personal\Hello_World_2\wsltest
despite being the same capitalization showing up in the explorer window.
Additionally, if I copy the project that failed to a different location and attempt to build, it succeeds.  Finally, if I delete the source project, copy the new one back, it fails again, leading me to believe that something is persisting in the environment somehow.
I have attempted to set the DrvFsAllowForceCaseSensitivity registry key to revert back to the previous behavior, but problem appears to persist even after a reboot.
I have PML files captured from process monitor that I intend to send in, just not attached here due to privacy concerns.
Error:

Filtered log of bad compilation:

Filtered log of good compilation:

Try this to enable case sensitivity https://github.com/Biswa96/WSL_Reverse/blob/master/setCaseSensitiveInfo.cpp

Try fsutil command to enable case sensitivity.

I tried

I suspect something gets tagged when a wsl process creates a file and it isn't limited to svn.  If I check out the file using a windows process and wsl's svn updates it, I don't get the same issue.

Sadly, I've tested with both the metadata option turned on and off, it doesn't appear to affect how visual studio or cl.exe can see the files.

Ok for giggles, since VS 2013 wasn't developed with WSL in mind, have you tried the latest version out for 2016? Not sure if you're able to test but if it compiles fine then at least know where the issue lies. If not, you still might be able to file an issue with the VS Code folks so if it's something with WSL, they can at least prove as much by showing where the problem lies to make it easier for the WSL team to fix.

For giggles, built with the latest and greatest VS2017.  Same problem of being unable to locate the file to build.
I don't think it's something special about visual studio, just that it's possibly exposing something that wsl is changing in the filesystem that's affecting non wsl processes.

I'm experiencing the same problem.   We check out our code on an Ubuntu box, and then rsync the source files over to a windows build machine using WSL/Ubuntu.
If files are rsynced over to a machine running 1803, msbuild reports a bunch of "No such file or directory"  errors which stops it from compiling.
If I copy the rsync'ed files to another directory using explorer, it will compile successfully.  If I move the files, they retain the same problem.
I can't see any difference in the file attributes and permissions exposed by windows.

@tLambda Thank you for pointing me at 2937.  I hadn't tried editing wsl.conf.  I had just unmounted and remounted c: with the different case options to test what was going on.  I also had left the same code checked out there while attempting the different mount options.
I believe that 2937 and this ticket describe the same underlying issue.

Duping into #2937 as landing zone for Spring Update case sensitivity issues.