[#127970229] Remove Enum Resource image

What
This image is not being used and causes our Travis build to fail[1]. The root cause of this failure is a dependency (github.com/cloudfoundry/gunk/urljoiner) has now moved[2]. Our custom S3 resource is not affected by this as it vendors in the dependency using Godeps[3].
Delete it while it is not being used.
[1] https://travis-ci.org/alphagov/paas-docker-cloudfoundry-tools/builds/164039440
[2] https://github.com/cloudfoundry-attic/gunk
[3] https://github.com/alphagov/paas-s3-resource/tree/master/Godeps/_workspace/src/github.com/cloudfoundry/gunk/urljoiner
How to review

Question my assumption it is not being used anywhere
Check the Travis build passes.

Who
Anyone who is not me

Closing while I hit Travis with a stick

Added fix for missing curl in ruby slim container for self-update-pipelines.

I confirmed enum-resource is unused in master.
Any branches still using it will have to rebase.


feat: support binary & float vectors for IVF_FLAT index

this splits the flat storage & distance calculator to float/int ones to support binary vectors.
merge them back after we figure out a generic way to handle both of binary & float vectors

move to #3198


NETOBSERV-1112: This patch fixes a bug where RTT was not visible for flow logs at times.

The calculation of RTT in ebpf agent was initially implemented to be doing something like this,

We were storing the timestamp of outgoing SYN and incoming ACK, calculating the RTT as Incoming ACK - Outgoing SYN.
This works for calculations done on both client and server endpoints as both have one SYN which is sent out and one ack which is received in response to that to start a TCP connection.
ebpf agent on the other hand does not connect only at a single interface in Openshift environment. If we look at the same communication being done from inside a container it would look like this.

In this case the container contains a veth pair and ebpf agent attaches to the veth interface in the root namespace, let's call veth for a vpeer in the container namespace.
Any packet emerging from vpeer which is put at the egress queue of container will come at the ingress queue of the veth interface. Hence if we try to calculate RTT using the previous logic of outgoing SYN and incoming ACK then we would end up calculating the timestamp of SYN(Y) and ACK(Y) which will be just the response time of the container and not a correct value of the RTT.
Also note that the ebpf agent attaches to many interfaces in Openshift and can attach to interfaces like eth0 which always act like a Client or Server endpoints and hence the RTT calculation of Incoming ACK - Outgoing SYN will work for such endpoints.
So to account for both the cases we changed the RTT calculation in a simple way, we simply take the RTT of SYN/SYN+ACK/ACK separately, i.e. we will calculate RTT of SYN(X) and ACK(X) and SYN(Y) and ACK(Y) and simply take the maximum of both values.
This is needed because ebpf agent attaches at both type of interfaces, root veth interfaces which act like middleboxes and eth0 interfaces which act like final connection endpoints.
Note that the flows are in reverse direction so we need to calculate RTT for reverse flows in ebpf agent but its pretty easy to do.
Also, this calculation is interface specific so we need to add interface id to the sequence identifier.

/ok-to-test

/ok-to-test

/lgtm

@dushyantbehl it might be a naive question, but the problem that it is solving, couldn't it be "just" solved by matching the interface on ACK? (ie. making sure the ACK we get is on the same interface as the initial SYN) ? I guess by adding the interface as a seq map values?

@jotak yes what you suggest is also part of the solution to match interface when matching SYN and ACK and it is done by adding interface to the seq_id map structure.
https://github.com/netobserv/netobserv-ebpf-agent/blob/5f9a07f4c21adbeb3c82a840dc8d413e966485fa/bpf/types.h#L133

I have the feeling that this new algorithm will still cause troubles especially when there is sampling. When you say:

we will calculate RTT of SYN(X) and ACK(X) and SYN(Y) and ACK(Y) and simply take the maximum of both values.

That works when we capture all the flows, because there is either "SYN(X) / ACK(X)" or "SYN(Y) / ACK(Y)" that corresponds to the actual RTT, whereas the other one is just process time and must be ignored. So taking the biggest should, in general, match the RTT and that's fine... But that doesn't work with sampling if you don't capture the flows that are relevant for RTT, then you would store the wrong value, which could screw up all the metrics computed from that.
So I have the feeling we need to find something else.
It sounds like the root cause of these problem is that we're never sure what INGRESS or EGRESS really mean (and we solved that problem in FLP with something called "reinterpret_direction", but we can't have the same solution here, we need to find something else). I'm not sure how we could do that. Maybe by reversing the meaning of INGRESS and EGRESS depending on which interface we're on?
Alternatively maybe we should restrict on which interfaces we are computing RTT, e.g. in your graph above we would use only eth0 and ignore veth

I have the feeling that this new algorithm will still cause troubles especially when there is sampling. When you say:

we will calculate RTT of SYN(X) and ACK(X) and SYN(Y) and ACK(Y) and simply take the maximum of both values.

That works when we capture all the flows, because there is either "SYN(X) / ACK(X)" or "SYN(Y) / ACK(Y)" that corresponds to the actual RTT, whereas the other one is just process time and must be ignored. So taking the biggest should, in general, match the RTT and that's fine... But that doesn't work with sampling if you don't capture the flows that are relevant for RTT, then you would store the wrong value, which could screw up all the metrics computed from that.

This flow makes 3 packets, 1) SYN(X) 2) SYN(Y) ACK(X) 3) ACK(Y)
if by any chance of SAMPLING we miss only one packet out of 1 and 2 then the calculation could be wrong and provide a very small value. This can be fixed by having a check at some point in the pipeline to not show values lower than some micro seconds.
SAMPLING the way it is done right now interacts with all packets so we have to implement a workaround or change SAMPLING for this.

So I have the feeling we need to find something else.
It sounds like the root cause of these problem is that we're never sure what INGRESS or EGRESS really mean (and we solved that problem in FLP with something called "reinterpret_direction", but we can't have the same solution here, we need to find something else). I'm not sure how we could do that. Maybe by reversing the meaning of INGRESS and EGRESS depending on which interface we're on?

We cannot directly determine from ebpf which type of interface we are connected on, a veth interface could either be vpeer or veth from the diagram above. This problem is unique here because ebpf agent connects to all possible interfaces in the system hence we need to look at both side of flows.

Alternatively maybe we should restrict on which interfaces we are computing RTT, e.g. in your graph above we would use only eth0 and ignore veth. The downside is that it decreases the chances to get the RTT when sampling is on.

There will be a high chance to miss some flows in the system if we take this approach in my opinion. Traffic from one pod on one host to another pod on a different host is encapsulated in host IP so if we only calculate at interfaces like eth0 we will only get host ip addresses as part of flow and not the actual pod IP which we might be interested in.

wdyt?

at somepoint I was working on new hook that just triggered when tcp state change independent off tc hook https://github.com/netobserv/netobserv-ebpf-agent/pull/106/files#diff-f256390f160e8c3dfdbea43540fc179790fed2b28286efdf60bea2a4711f26c1R53 I feel that would get us out of the issue with sampling and missing state update ?
I am planning to bring that PR back to life at somepoint as its quiet out of date but instead of generating events we will just create flows in the hashmap

@dushyantbehl

if by any chance of SAMPLING we miss only one packet out of 1 and 2 then the calculation could be wrong and provide a very small value. This can be fixed by having a check at some point in the pipeline to not show values lower than some micro seconds.

So in that case I think this would be on the agent to not show values of microseconds magnitude, rather than later in the pipeline: because that's due to implementation details of the agent, and the other components should be able to trust what the agent sends.

We cannot directly determine from ebpf which type of interface we are connected on, a veth interface could either be vpeer or veth from the diagram above. This problem is unique here because ebpf agent connects to all possible interfaces in the system hence we need to look at both side of flows.

Maybe we should try asking around ... ovn, ovs folks might have an idea that we're missing, about how we could solve that? We get the if_index right, maybe we can do something based on that?
@msherif1234 yeah that would be an interesting thing to try, I agree!

@dushyantbehl

if by any chance of SAMPLING we miss only one packet out of 1 and 2 then the calculation could be wrong and provide a very small value. This can be fixed by having a check at some point in the pipeline to not show values lower than some micro seconds.

So in that case I think this would be on the agent to not show values of microseconds magnitude, rather than later in the pipeline: because that's due to implementation details of the agent, and the other components should be able to trust what the agent sends.

Actually I feel that doing this filtering at agent will be much more hardcoded behavior, a very simple fix is to mark in SAMPLING to not throw away SYN/ACK packets which are needed for many other behavior as well.

We cannot directly determine from ebpf which type of interface we are connected on, a veth interface could either be vpeer or veth from the diagram above. This problem is unique here because ebpf agent connects to all possible interfaces in the system hence we need to look at both side of flows.

Maybe we should try asking around ... ovn, ovs folks might have an idea that we're missing, about how we could solve that? We get the if_index right, maybe we can do something based on that?

This is not doable based on if_index or anything else, it just gives name and id of the interface while the direction of capture depends on where the traffic is coming from. With the current patch only 2 packets are being looked at and RTT is being calculated based on them which is the standard approach.

/lgtm

/approve


Agent test often fails with timeout.

ref. https://github.com/flightctl/flightctl/actions/runs/8207546435/job/22449051194?pr=153
Maybe we can run the test once maybe 2x, we currently do this 5x? It seems the test always fails as on the last iteration. Another option would be to bump timeout but this feels like a slippery slope?

Checking the logs.

/close


Update please.

Update please for new Ender Io 428 build.
P.S.
Thanks :-)

The latest EIOA should run fine with the EIO builds that came after it. None of the code I hook into changed and I have no upper version check in. Are there any problems?

I want it for 1.10.2 :(


app.UseWatchDog overriding the Authorization middleware

app.UseWatchDog overriding the Authorization middleware, therefore, when you try to go to a controller with Authorize attribute in it, it says you need to use app.Authorization even though there is an app.Authorization

I can't view logs of methods after authorization. I am using the Bearer method.

I can't view logs of methods after authorization. I am using the Bearer method.

I fixed the issue by removing app.userouting and app.build in the middleware. Try putting the useWatchDog just before useEndpoint and placing the useWatchDogExceptionLoggerin just env.IsDevelopment conditions, or try playing with the source code

unfortunately it doesn't work for me.

System.InvalidOperationException: Endpoint * contains authorization metadata, but a middleware was not found that supports authorization.
Configure your application startup by adding app.UseAuthorization() in the application startup code. If there are calls to app.UseRouting() and app.UseEndpoints(...), the call to app.UseAuthorization() must go between them.
at Microsoft.AspNetCore.Routing.EndpointMiddleware.ThrowMissingAuthMiddlewareException(Endpoint endpoint)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at WatchDog.src.WatchDog.LogResponse(HttpContext context)
at WatchDog.src.WatchDog.InvokeAsync(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at WatchDog.src.WatchDogExceptionLogger.InvokeAsync(HttpContext context)
at WatchDog.src.WatchDogExceptionLogger.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at x.Dependency.SwaggerBasicAuthMiddleware.InvokeAsync(HttpContext context)

It's about the second app.UseRouting() in the middleware. I guess it is making the your app.UseAuthorization();  vanish. You can also get all the middleware code from source code to your Configure() and debug it. My only advice would be to not use a second app.UseRouting()

Hi @tylndemirci @rkaptan
It is unclear the issue you are experiencing. However, i'd like to point out that WatchDog uses .UseRouting() and .UseEndpoints() internally so if both endpoints are used in conjunction with Authorization in your codebase, you might want to move .UseWatchDog() to the last line of your middleware pipeline.
If that doesn't resolve your issue please send a more descriptive report using the below format
Description
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Details (please complete the following information):

Project Type: [e.g. API, MVC]
Framework Version [e.g. .NET Core 3.1, .NET 6]
WatchDog Version [e.g. 1.3.0, 1.2.1]
Database [e.g Default, MySQL]

Additional context
Add any other context about the problem here.

    public IServiceProvider ConfigureServices(IServiceCollection services)
    {
        services.AddMvcCore(options => { options.Filters.Add(typeof(ValidateModelStateAttribute)); });

        services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options =>
        {
            options.TokenValidationParameters = new TokenValidationParameters
            {
                ValidateIssuer = true,
                ValidateAudience = true,
                ValidateLifetime = true,
                ValidateIssuerSigningKey = true,
                ValidIssuer = Configuration["JwtxxxAuth:Issuer"],
                ValidAudience = Configuration["JwtxxxAuth:Audience"],
                RequireExpirationTime = true,
                ClockSkew = TimeSpan.Zero,
                IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(Configuration["JwtxxxAuth:Key"]))
            };

            options.Events = new JwtBearerEvents
            {
                OnChallenge = context =>
                {
                    context.HandleResponse();
                    context.Response.StatusCode = StatusCodes.Status401Unauthorized;
                    context.Response.ContentType = "application/json";
                    context.Response.Headers.Add("Access-Control-Allow-Origin", "*");

                    // Ensure we always have an error and error description.
                    if (string.IsNullOrEmpty(context.Error))
                        context.Error = "Yetkisiz Erişim";
                    if (string.IsNullOrEmpty(context.ErrorDescription))
                        context.ErrorDescription = "İstek Yapabilmeniz için Token Gereklidir.";

                    // Add some extra context for expired tokens.
                    if (context.AuthenticateFailure != null && context.AuthenticateFailure.GetType() == typeof(SecurityTokenExpiredException))
                    {
                        var authenticationException = context.AuthenticateFailure as SecurityTokenExpiredException;
                        context.Response.Headers.Add("x-token-expired", authenticationException.Expires.ToString("o"));
                        context.ErrorDescription = $"The token expired on {authenticationException.Expires.ToString("o")}";
                    }

                    return context.Response.WriteAsync(JsonSerializer.Serialize(new
                    {
                        error = context.Error,
                        error_description = context.ErrorDescription
                    }));
                }
            };
        });

        services.AddWatchDogServices(opt =>
        {
            opt.IsAutoClear = true;
            opt.ClearTimeSchedule = WatchDogAutoClearScheduleEnum.Monthly;
        });

        services.AddControllers();

        services.AddSingleton<IJWTAuthManager, JWTAuthManager>();

        var mapperConfig = new MapperConfiguration(mc => { mc.AddProfile(new MappingProfile()); });

        IMapper mapper = mapperConfig.CreateMapper();

        services.AddSingleton(mapper);

        services.AddLogging();

        services.AddFluentValidation(fv => { fv.RegisterValidatorsFromAssemblyContaining<LoginRequestModelValidator>(); });

        services.AddCors(options => options.AddDefaultPolicy(builder => builder.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin()));

        services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Optimal);

        services.AddResponseCompression(options =>
        {
            options.EnableForHttps = true;
            options.Providers.Add<GzipCompressionProvider>();
        });

        services.Configure<ApiBehaviorOptions>(options => { options.SuppressModelStateInvalidFilter = true; });

        services.AddSwaggerGen(c =>
        {
            c.EnableAnnotations();
            c.SwaggerDoc("v1", new OpenApiInfo
            {
                Title = "xxx",
                Version = "v1",
                Description = "xxx",
                Contact = new OpenApiContact
                {
                    Name = "xxx",
                    Email = "xxx",
                    Url = new Uri("xxxx")
                },
            });

            c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme()
            {
                Name = "Authorization",
                Type = SecuritySchemeType.ApiKey,
                Scheme = "Bearer",
                BearerFormat = "JWT",
                In = ParameterLocation.Header,
                Description = "Example: \"Bearer 12345abcdef\"",
            });

            c.AddSecurityRequirement(new OpenApiSecurityRequirement
            {
                {
                  new OpenApiSecurityScheme
                    {
                        Reference = new OpenApiReference
                        {
                            Type = ReferenceType.SecurityScheme,
                            Id = "Bearer"
                        }
                    },
                    new string[] {}
            }});

            c.OperationFilter<SwaggerFileOperationFilter>();
            var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
            var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
            c.IncludeXmlComments(xmlPath);
        });

        services.AddHangfire(configuration => configuration
                .SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
                .UseSimpleAssemblyNameTypeSerializer()
                .UseRecommendedSerializerSettings()
                .UseSqlServerStorage(Configuration.GetConnectionString("HangfireConnection"), new SqlServerStorageOptions
                {
                    CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
                    SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
                    QueuePollInterval = TimeSpan.Zero,
                    UseRecommendedIsolationLevel = true,
                    DisableGlobalLocks = true
                }));

        services.AddHangfireServer();

        return CastleWindsorResolver.Load(services);
    }

    public void Configure(IApplicationBuilder app, IBackgroundJobClient backgroundJobs, ILoggerFactory loggerFactory)
    {
        app.UseRouting();
        app.UseAuthentication();
        app.UseAuthorization();
        app.UseStatusCodePages();
        app.UseSwagger();
        app.UseSwaggerAuthorized();
        app.UseCors();
        app.UseResponseCompression();

        app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "xxxx v1"));
        //app.UseSwaggerUI(c => c.SwaggerEndpoint("/API/xxx/swagger/v1/swagger.json", "xxxx v1"));

        app.UseHangfireDashboard("/hangfire", new DashboardOptions
        {
            DashboardTitle = "Job Server",
            Authorization = new[]{new HangfireCustomBasicAuthenticationFilter{User = "1",Pass = "1"}}
        });

        var cultureInfo = new CultureInfo("tr-TR");
        cultureInfo.NumberFormat.CurrencySymbol = "₺";

        CultureInfo.DefaultThreadCurrentCulture = cultureInfo;
        CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;

        loggerFactory.AddProvider(new FileLogProvider());

        app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.MapHangfireDashboard(); });

        app.UseWatchDogExceptionLogger();
        app.UseWatchDog(opt =>
        {
            opt.WatchPageUsername = "1";
            opt.WatchPagePassword = "1";
        });
    }

Log records of methods are not visible on watchdog after authorizing.

You have any idea?

Hi @rkaptan
A new version v1.3.1 that fixes this issue has been published. Update your package and you should be good to go.
Here's a sample middleware order that worked perfectly for me...
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, TraceRContext context)
{
	context.Database.Migrate();
	app.UseCors("CorsPolicy");

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

	app.UseHttpsRedirection();

	app.UseSwagger();

	app.UseSwaggerUI(c =>
	{
		c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
		c.RoutePrefix = string.Empty;
	});

	app.UseWatchDog(opt =>
	{
		opt.WatchPageUsername = "admin";
		opt.WatchPagePassword = "admin";
	});

	app.UseAuthentication();

	app.UseRouting();

	app.UseAuthorization();

	app.UseEndpoints(endpoints =>
	{
		endpoints.MapControllers();
	});
}


fix 'Unsupported data type:boolean' ShardingException

Fixes 'Unsupported data type:boolean' ShardingException
Changes proposed in this pull request:

ResultSetUtil#convertNumberValue support boolean type
Add unit test

Pull Request Test Coverage Report for Build 8767

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 61.641%

Totals

Change from base Build 8766:
0.003%

Covered Lines:
8472

Relevant Lines:
13744

💛  - Coveralls

Accept. Thanks for your effort.


KOPS weave networking add NO_MASQ_LOCAL

** This is a FEATURE REQUEST**

why: When installing k8s with KOPS and networking set to weave, there is no way to add option NO_MASQ_LOCAL, in order to preserve source IP on pods.
what: Add possibility for this option to be added via KOPS

Cloud provider: AWS
Installation method: KOPS
Versions:

$ weave version: 2.5.1
$ docker version: 18.06.3-ce
$ uname -a: Linux ip-10-11-1-71 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux
$ kubectl version: Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.9", GitCommit:"e09f5c40b55c91f681a46ee17f9bc447eeacee57", GitTreeState:"clean", BuildDate:"2019-05-27T16:08:57Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.10", GitCommit:"e3c134023df5dea457638b614ee17ef234dc34a6", GitTreeState:"clean", BuildDate:"2019-07-08T03:40:54Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

You can edit the manifest and add the environment variable as described in
https://www.weave.works/docs/net/latest/kubernetes/kube-addon/
Related issue https://github.com/weaveworks/weave/issues/3389 is to make it enabled by default

There is noMasqLocal property in kops WeaveNetworkingSpec that you can use to set. Please reopen if you are still facing any issue.


master: update release-tools

Squashed 'release-tools/' changes from e4dab7f..7fe5149
7fe5149 Merge pull request #200 from pohly/bump-kubernetes-version
70915a8 prow.sh: update snapshotter version
31a3f38 Merge pull request #199 from pohly/bump-kubernetes-version
7577454 prow.sh: bump Kubernetes to v1.22.0
d29a2e7 Merge pull request #198 from pohly/csi-test-5.0.0
41cb70d prow.sh: sanity testing with csi-test v5.0.0
c85a63f Merge pull request #197 from pohly/fix-alpha-testing
b86d8e9 support Kubernetes 1.25 + Ginkgo v2
ab0b0a3 Merge pull request #192 from andyzhangx/patch-1
7bbab24 Merge pull request #196 from humblec/non-alpha
e51ff2c introduce control variable for non alpha feature gate configuration
ca19ef5 Merge pull request #195 from pohly/fix-alpha-testing
3948331 fix testing with latest Kubernetes
9a0260c fix boilerplate header
git-subtree-dir: release-tools
git-subtree-split: 7fe51491d8f56d0d459bf9abb9692bc9f96d2b75
NONE

/lgtm
/approve

/retest
Test failure should be fixed by https://github.com/kubernetes-csi/external-health-monitor/pull/130 (:crossed_fingers: ).


feature request: structs instead of global workspace

The generated code uses a global workspace, including the third-party solver's workspace. I'm running into some drawbacks from this such as inability to simulate more than one actor simultaneously, inability to run multi-threaded, etc.
Was this done for simplicity, or is there a performance goal? Would you be open to PRs that encapsulate the workspace in a struct?

Discussion from discord:


Use correct version number in release_publish action

Not sure how this worked before, it must have been something that got fixed between versions? Either way, hopefully this does the trick.

Based on some investigation, even though I've set up exclude on the changelog validator, it's not able to handle no changes in the root: https://github.com/zattoo/changelog/blob/master/src/index.js#L72
To keep things moving I'm going to open a new issues to try and fix it later, but manually exclude from validation for now.


Security vulnerabilities in the project

The following security vulnerabilities were discovered during security scans using the trivy tool, would you please to trouble to fix them?
1
CVE-2021-43565  golang.org/x/crypto  0.0.0-20210921155107-089bfa567519 ->0.0.0-20211202192323-5770296d904e
2
CVE-2021-3121  github.com/gogo/protobuf 1.1.1 -> 1.3.2
3
CVE-2022-27191 golang.org/x/crypto 0.0.0-20210921155107-089bfa567519 -> 0.0.0-20220314234659-1baeb1ce4c0b

These vulnerabilities aren't directly affecting this library. Any project that actually uses them should upgrade their dependencies and Go's version selection will pick a version past those fixes.
Am I missing something which makes it important for us to get those fixed?

I'm gonna close this now. Feel free to reopen if you want.


Unity Mono Game Text Not Translating

Only the dialogue in cutscenes or skill text in battle translates... Many things like menu items and headers won't translate. I thought maybe it was a texture so I enabled texture dumping and it's not generating any images with text on them... Please help.
Translates:

Won't translate:

Here is my log.
LogOutput.log

Images can't be translated automatically. Turn on texture translation/dumping and translate them manually.

Images can't be translated automatically. Turn on texture translation/dumping and translate them manually.

 Didn't you read my request?

I did and it's still the same answer, those are images and you need to change the related dumping options until they can be dumped. If the game uses IL2CPP you may be out of luck and need to write a helper plugin to handle textures.

I've tried all the options.. The game currently only generates background textures from the loading screens and the main menu.
The other textures that have words on them are missing. Can you please confirm for me that this is actually something that a developer can't fix with a bit of tweaking?
I'm not a coder so I want to be sure, thanks.

It sounds like it's something custom that the game does so anyone trying to fix this would need to have the game and dig into how it works.

I understand that exceptions need to be examined by having the game to investigate. It's a free to play game.
But what I want to know is if this is something that a developer could potentially fix without a helper plugin. Since the plugin is already reading textures, do they just need to tell plugin where to look in order to capture it?


When working with "fixed width" RPG III files the editor should understand the column layout and tab accordingly

Is your feature request related to a problem? Please describe.
Not a problem per se but a usability issue. Consider a fixed width RPG file
A               R USERREC
A                 ID             5P 0
A                 USERNAME       8A
A                 PASSWORD      12A

In this style of file the amount of spaces between the items in a row i.e. the "column width" is very important.
Describe the solution you'd like
PRIMARY: When I have entered a value in one of the columns e.g. "A" above and I press tab the editor should not tab the default 2 or 4 spaces but should instead insert enough spaces to correctly place the caret at the start of the next column i.e. "ID". Similarly if I had just typed "USERNAME" and then pressed tab the caret would be placed in the correct column ready to type "8A".
NICE TO HAVE: The "columns" could have different background colours or some other visual indication to clearly delineate them.
Describe alternatives you've considered
Counting the spaces manually and/or copying existing code where the spacing is already correct.

Just to confirm, you pulled this out of an RPG 3 program? Is there any chance you can share more source than that? Perhaps a larger example with more code so I can validate how this will work on our end? Thanks!


Buy button lite module

There are still some issues to fix, like the slider size and some css issues.
However, you can already review the code :)

@Joukz Since you merged this PR, does this mean all issues are fixed now 😄 ? Can QA start the validation process ?


code for processing pancreas

Can you provide the code for processing pancreas?

It is given under data folder: https://github.com/himashi92/Co-BioNet/blob/main/data/Pancreas/Pre-processing.ipynb

Thank you so much for your response


update related table without removing then recreate the table

@robes @karlcz  how do we deal with this for the markdown table? The content is generated by ermrestjs...

putting this on hold since we don't have a solution for markdown table.

marked this as a wishlist and close.


Update README.md

Fix grant access output folder on linux

I think we should release this, i see github have a Action to automate build Docker


Items

Currently, there is only 1 item: the sole Electron, which is the smallest/least valuable item.
There should be a lot more items (~30 possibly, maybe more) that increase in literal size and their monetary value

item names - their values will be decided separately

Quark
Electron
Transistor
Logic Circuit
Breadboard
FPGA
CPU
Embedded Computer
Smartphone
Laptop
Desktop
Windows Server
Linux Server
Server Farm
Mainframe
Quantum Computer
Lunar Quantum Farm
Computing Solar System
Quantum Galaxy
Computational Universe

Using electron item as a starting point I have generated the values for the other items

name
base cost
CPS

Quark
15
0.005

Electron
20
0.01

Transistor
2000
7

Logic Circuit
5000
21

Breadboard
10000
63

FPGA
30000
189

CPU
90000
567

Embedded Computer
270000
1701

Smartphone
810000
5103

Laptop
2430000
15309

Desktop
7290000
45927

Windows Server
21870000
137781

Linux Server
65610000
413343

Server Farm
262440000
1240029

Mainframe
1049760000
3720087

Quantum Computer
5248800000
11160261

Lunar Quantum Farm
26244000000
33480783

Computing Solar System
1.3122E+11
100442349

Quantum Galaxy
6.561E+11
301327047

Computational Universe
3.2805E+12
903981141

those values are WAY too high, even for the best item (computational universe) - this isn't cookie clicker which has some wack building values
i'll work on a draft document for price/cps for the new items based on cafe's pricing which is more gradual, though there will be a cut off at the "lunar quantum farm"


Reduce package size

As mentioned in https://github.com/putyourlightson/craft-sprig/issues/308, I stumbled upon the fact that the craft-code-editor package is pretty big (51.4MB).
As mentioned by @bencroker in that issue, there seem to  be "lots of potential duplicate files at https://github.com/nystudio107/craft-code-editor/tree/develop/src/web/assets/dist that could possibly be excluded".

Happy to hear what you think potentially could be excluded?
The Monaco Editor that it uses is relatively large, and because it needs to work with arbitrary languages, we can't know ahead of time what should or should not be excluded.
But if there's something you think shouldn't be there, or truly isn't needed, feel free to let me know.

Thanks for the clarification.
I have no idea what could be excluded, was just following up on a suggestion of @bencroker.

I guess my follow-up would be what are your concerns re: the bundle size?
In the CP, it only loads what is needed.
Are you concerned about the download time? Or the size on disk?

Main concern was size on disk, in the context of the craft-sprig plugin. In this plugin craft-code-editor accounts for 99.4% of the disk space.

Well, it's likely that you will be using it on production, if you use CKEditor or SEOmatic or other such things.
What is the concern about disk space? Are you actually running out of disk space on shared hosting or something?


/v1/delete-ltp-and-dependents triggering for each ltp instance

As per expectation, /v1/delete-ltp-and-dependents shall be sent for one ltp instance and all the dependents shall be deleted in ALT.
But in applications, /v1/delete-ltp-and-dependents is being sent for all ltps being deleted. This needs to be resolved.
Also, we could see 500 response code for few /v1/delete-ltp-and-dependents.

example: see EATL report :: SERVICELAYER / INDIVIDUALPART / /V1/DISREGARD-APPLICATION / ACCEPTANCE / DELETE LTP AND DEPENDENTS NOTIFIED? / CLIENT DELETE :: Expected ExecutionAndTraceLog/v1/list-records-of-flow

I stumbled upon this issue by accident and it actually resolves  openBackhaul/ApplicationLayerTopology#409 . Also I already did a prototype for RO (as I needed to see if it resolves the 409 issue) and no change was required in RO itself. It also resolves (or I couldn't simulate any) the occasional 500 for delete-ltp.


HARVESTER: Fix guest cluster option wrong display

Summary
PR Checklist
~- Is this a multi-tenancy feature/bug?
- [ ] Yes, the relevant RBAC changes are at:~
~- Do we need to backport changes to the old Rancher UI, such as RKE1?
- [ ] Yes, the relevant PR is at:~

Are backend engineers aware of UI changes?

[ ] Yes, the backend owner is: @yaocw2020

Fix guest cluster option wrong display

Occurred changes and/or fixed issues

https://github.com/harvester/harvester/issues/1762#issuecomment-1586755810

Technical notes summary

Add none option like the project
Fix guest cluster did not filter by project

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

@mergify backport release-harvester-v1.2


NIFI-8275 Add NET_BIND_SERVICE capability to Java in Docker image

Description of PR
By setting the capability NET_BIND_SERVICE to the java process, users can specify a low port for any of the listeners,
without requiring more privileges or running as root.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced   in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically main)?

[X] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[x] Have you written or updated unit tests to verify your changes? (Does not apply)
[x] Have you verified that the full build is successful on JDK 8?
[x] Have you verified that the full build is successful on JDK 11?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[x] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[x] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

@jlpedrosa Can you open a JIRA for this at http://issues.apache.org/jira/browse/NIFI ?

@jlpedrosa Can you open a JIRA for this at http://issues.apache.org/jira/browse/NIFI ?

it is not uncommon for spurious artifact collection failures to mess those up.  It usually still passes on other builds within the same run though so generally not a big deal.

Just a clarification. Adding the capability to the process, it does NOT allow the pod immediately to bind to a low port, on top of this change, the user needs to create the container (or pod if running in k8s),  with that capability. So this change is a requirement to bind to low ports, but it won't be enabled by default, users needs to allow it on the container level.


The file has been modified, and the buffer will not be automatically updated

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it
The behavior of vscode
https://github.com/zed-industries/community/assets/19868292/1d80d852-46c1-4d04-9953-1e62de358328
Environment
Zed: v0.102.1 (preview)
OS: macOS 13.4.1
Memory: 32 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

This issue happened many times when I modified the file outside.
What's more, sometimes (possibly when with JSON file in medium or large size, but I'm not sure how to reproduce it) even I close and reopen the file, the buffer content sill is not updated.


Optimize reversed(range(...)), with non-constant values.

One potential problem is that is does not generate warnings on the division, however we know that step_value != 0. I have a much larger test file on my computer, if there are doubts of the basic functionality. Hopefully it fits into the structure properly this time, if not comments are welcome.
Completing ticket #765.

Hey @scoder, have had the time to look at this? I just want to know if anything is wrong, or if you want me to re-pull with cleaner commits (all in one, or spread into two where one has the code changes, and the other has the tests?). Hope you had a happy new years day!

Looks good to me now.

Thanks for working on this!

I'm glad to be able to contribute.


chore: extends DevServer types in @rspack/dev-server instead of declare them in @rspack/core, as @rspack/core has no ability of dev server

Summary

When @rspack/core and @rspack/cli are both installed in an end project, the dependency tree will be like
|- `@rspack/core`
|- `@rspack/cli`
          |- `@rspack/dev-server`
                       |- `webpack-dev-server`

Therefore import type { Configuration } from "webpack-dev-server" from @rspack/core would not work as expected.

I moved all the properties other than hot into @rspack/dev-server and extends the DevServer type of @rspack/core there. So that:

when one installs only @rspack/core, there's only hot in DevServer
when one installs and imports @rspack/cli, there will be all properties from WebpackDevServer.Configuration in DevServer.

Test Plan

These two rspack.config.ts should pass type check.
import { defineConfig } from "@rspack/cli";

export default defineConfig({
  devServer: {
    port: 1234
  }
});

import { Configuration } from "@rspack/cli";

export default {
  devServer: {
    port: 1234
  }
} satisfies Configuration;

Require Documentation?

[x] No
[ ] Yes, the corresponding rspack-website PR is __

!canary


How to sum up several chats?

I have a chat bot to provide answers for some specific question. I need to sum up all chats to get some analytics, for example, "what questions were asked the most?". Each chat can be really close to tokens limit, so it's not possible just to upload all chats at once. Tried this one https://js.langchain.com/docs/modules/chains/popular/summarize, but that's not for me. Any idea how it can be handled in best way?

Why is it "not for you"?
You could try a map reduce chain as well


bindAll errors in initialize

I'm trying to _.bindAll() to functions within my view, as I've been taught to do in Backbone, yet it errors every time I use it.
Uncaught TypeError: Cannot read property 'bind' of undefined

Any ideas? I can walk through it if needed.

No idea, definitely not related to LayoutManager.  Can you join Gitter (found in our README) that's where we are handling general support.

Seems to work intermittently. Weird.


jquery from bower is windows format: integrity issue

Hi,
On Visual Studio (.net core), with bower, I get jquery library:
{
"name": "asp.net",
"private": true,
"dependencies": {
"jquery": "3.3.1"
}
}
The format of file bower_components\jquery\dist\jquery.min.js get by bower in in windows format.
But on CDN:
https://code.jquery.com/jquery-3.3.1.min.js
<EMAIL_ADDRESS>file format is in UNIX.
Issue is when we compute integrity:

The local script from bower has not the same hash of CDN.
This other script (bootstrap, jquery-validation, ...), we don't have the same issue (all is in UNIx format).

Replaced by npm


Feat: Export unbuilted widget

I carried out the implementation highlighted in the Issue: https://github.com/joseph-grabinger/flutter_to_pdf/issues/74.
In general, the implementation worked very well, but I'm having some problems with the casting of some widgets, such as the alignment one. Would this be a problem with the implementation or the package itself?

Note: The problem occurs when rendering a DataColumn

A possible solution would be for the .toPdfAlignment method to accept other types

Hey :) Thanks for addressing this^^ I guess the same functionality is also included in #77, right?
If you agree, this PR could be closed an the functionality will be included when merging #77.


Primer EZ

Implements Primer EZ and fixes one typo and one missing overrides.

Hi Shital, there's already a flag that works the way you have described. I will move the classes to a new file.

Done


Add Anderson, 801pt, 1982

Thanks for adding these.

Anderson, W. L., 1982;
Fast Hankel transforms using related and lagged convolutions;
ACM Trans. on Math. Softw. (TOMS), 8, 344-368;
DOI: 10.1145/356012.356014

The original filter values are published in the appendix to above article:
Algorithm 588, DOI: 10.1145/356012.356015
The values provided here are taken from code that accompanies:
Key 2012, Geophysics, DOI: 10.1190/geo2011-0237.1


Extending schema not working

Hi, I'm on 2.7.2.
I've used the readme to extend schema for my integration. I've created a class: Scim::Extensions::UserManagerExtension
class Scim::Extensions::UserManagerExtension < Scimitar::Schema::Base
  def initialize(options = {})
    super(
      name:            'ExtendedUser',
      description:     'Extension for User',
      id:              self.class.id,
      scim_attributes: self.class.scim_attributes
    )
  end

  def self.id
    'urn:ietf:params:scim:schemas:extension:manager:2.0:User'
  end

  def self.scim_attributes
    [
      Scimitar::Schema::Attribute.new(name: 'manager', type: 'string')
    ]
  end
end

and in initializer, i've added:
  Scimitar::Resources::User.extend_schema(Scim::Extensions::UserManagerExtension)

When POST user requests are coming in, I don't see the defined schema. What's even weirder is that  urn:ietf:params:scim:schemas:extension:enterprise:2.0:User is showing up even though the ID I defined in my custom schema extension class is different. I also see that in the post request the stuff defined in https://datatracker.ietf.org/doc/html/rfc7643#section-4.3 is included inside the enterprise schema even though I have not added or extended it. For example employeeNumber is coming through.
Is the EnterpriseUserExtension now a default? Is the custom schema extension broken?

Sorry for the delay; finally got around to this.
I tried copying your example extension into the Scimitar test suite's dummy app's initializer to see what would show up there. Some tests fail (correctly) because they see an extra schema being described.

Scimitar::Engine::schemas does include the extension
Various failures occur since I initially deliberately did not map the manager attribute in my User model, but rendered SCIM representations did include the empty "urn:ietf:params:scim:schemas:extension:manager:2.0:User" => {} section (in JSON form), e.g. Scimitar::ActiveRecordBackedResourcesController#index lists or PATCH responses.
Some mixin tests failed in strange ways

The TL;DR here is that the mixin tests were a canary showing that, at least when two extensions were in use, things went ary. So, I'm working on that now; the dummy test app will include a variant of your manager extension in addition to the enterprise extension it already had, with one fix arising so far and more tests to add.
However, if that was the only extension you'd added, then I'd expect at least 2.8.0 to be working. If not, it could depend on your SCIM attributes mapping. I'm also not sure about "I also see that in the post request the stuff defined in ... is included". Included where? The response? It would help to see the associated model's SCIM attribute map, along with the JSON used for a POST request, along with the JSON you see for the POST response.

Well, #134 is in review to hopefully address some issues with schemas. I doubt the multiple-extensions bug was the one you hit but POST was definitely shaky and case sensitivity a particular problem.
On attributes: As far as I can make out, you'd only be seeing the likes of employeeNumber returned in the POST response if your underlying resource's SCIM attributes map had entries for those attributes, and they're referenced in a schema extension somewhere. To the best of my recollection (and I just searched the codebase again to make sure, although I might still be wrong...) Scimitar has no enterprise extension schema defined out-of-the-box, only Core; the only place you'll see references to enterprise schema attributes is in the test suite.

https://github.com/RIPAGlobal/scimitar/tree/main/app/models/scimitar/schema
https://github.com/RIPAGlobal/scimitar/blob/main/app/models/scimitar/schema/user.rb#L16
https://github.com/RIPAGlobal/scimitar/blob/main/app/models/scimitar/schema/user.rb#L16

Closing this as I believe it's all fixed up now. See v2.9.0 (Rails 7) and v1.10.0 (Rails 6).


Add "toggle all with alt-click" to batch-mark-files-as-viewed

LINKED ISSUES:
Closes #3043

TEST URLS:
This PR

SCREENSHOT:
Not yet

PR is still WIP

@fregante did understand the issue correctly? You want that when clicking the progress bar it should mark them all as viewed?

It should toggle them. If you alt-click a checked item, it should uncheck it and uncheck all of them.
If you alt-click an unchecked item, all of them should be checked.

If you alt-click a checked item, it should uncheck it and uncheck all of them.

If you alt check ANY item it should uncheck/check the ALL? So nothing to do with the progress bar?

The progress bar is unrelated to the logic. It’s only there because it might take a few seconds. Just refer to how toggle-all-with-alt-click works. It’s the same identical logic.

...attempts to use new feature but its not correct :) the name is toggle-everything-with-alt

2. TEST URLS:
This PR

This PR has 5 files, not a good test PR for a toast. I suggest https://github.com/sindresorhus/refined-github/pull/4044
Fixed:

The PR is "ready for review" but no screenshot 🥺

I did not even think you were going to keep the PR open. Will work on this tomorrow.

Works well (great job @fregante 😄 )
What do you say to my working change?


Integration for the model provider service

works with:

https://github.com/code-kern-ai/refinery-embedder/pull/9
https://github.com/code-kern-ai/refinery-config/pull/6
https://github.com/code-kern-ai/refinery-ui/pull/44
https://github.com/code-kern-ai/refinery-zero-shot/pull/6
https://github.com/code-kern-ai/dev-setup/pull/15

I'm guessing this is for the model provider

During the download zero shot models are listed as NOT ZS (since the readme isn't there yet I guess).
Since in the future only an icon is displayed for the ZS models nothing to change atm.
In the future we might be able to detect that before everything is fully downloaded

[ ] issue created in model provider


Can tracks appear automatically?

I hope that I can call a method, and then the track will automatically appear (simulating finger sliding), and then all will be displayed

Duplicate of https://github.com/vintage/scratcher/issues/45

我希望可以调用一个方法，然后轨道会自动出现（模拟手指滑动），然后全部显示出来

did you solved it ?


Added kwargs to state preparers

What's in this PR?

Added kwargs to all state preparers to accept the history argument used in the csv transformer

References
Progress on: #97

lgtm


Crypto daily price tracker Chrome extension

Is your feature request related to a problem? Please describe.
Chrome extension for a daily crypto price tracker addresses the need for users to stay updated with real-time cryptocurrency prices and trends.
Describe the solution you'd like
->Display real-time prices of popular cryptocurrencies such as Bitcoin, Ethereum, Litecoin, and others.
->Allow users to track their favorite cryptocurrencies by adding them to a watchlist for quick access.
->Integrate with cryptocurrency exchanges and APIs to fetch accurate and up-to-date price data.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
The crypto price tracker should display prices in multiple fiat currencies such as USD, EUR, GBP, etc.
What problem is this feature trying to solve?
Adding a new Extension to the codebase
@Sulagna-Dutta-Roy  please assign this to me under GSSOC24

I have gone through the codebase of currency converter it is only for country price conversion.
Crypto currency tracker is live daily tracking of crypto currency like bitcoin, ethereum etc.
@Sulagna-Dutta-Roy It is different from currency convertor.


Look at using System.gc() in Upgrade9To10 to free up memory

In ticket #1365 which does the upgrade processing for ~del entries on Master startup will only read up to a point of memory close to full. (actually %50).  Then it has to wait for java gc to run which could take minutes depending on the state of things.  The command System.gc() can be submitted to tell the java gc to run.  It doesn't mean the java gc will listen but testing with this has worked consistently multiple times.    My suggestion is to add it to the code below.  I don't think it could hurt anything and only helps.
 private List<String> readCandidatesThatFitInMemory(Iterator<String> candidates) {
    List<String> result = new ArrayList<>();
    // Always read at least one. If memory doesn't clean up fast enough at least
    // some progress is made.
    while (candidates.hasNext()) {
      result.add(candidates.next());
      if (almostOutOfMemory(Runtime.getRuntime())) {
        System.gc(); <----------------------------------------------
        break;
      }
    }
    return result;
  }

To test it run GCUgcUpgradeOutofMemoryTestpgrade9to10TestIT() with the percentage set to 25% in Upgrader9to10
static final float CANDIDATE_MEMORY_PERCENTAGE = 0.25f;

Is this issue outdated? It seems the referenced code no longer exists. @hkeebler

@DomGarguilo This was obsoleted by #1441


Added board support package for Nucleo_F446ZE

Includes support for USB, CAN.
Future could support: ETM Trace (if Zephyr supports it), QSPI, FMC, DCMI
Initially based on closest BSP for the same SoC: nucleo_f446re
Extra peripherals added based on closest BSP for same nucleo-144 board: nucleo_f429zi
Checked against nucleo-144 schematic
Documentation updated as best as I could
Tested: USB Device mode (samples/subsys/usb/console), Console via ST-link usart3 (samples/hello_world), user LEDs (samples/basic/blinky)
Not tested but should work: SPI, I2C, CAN
Not working yet: Quad-SPI (missing in dts/arm/st/f4/stm32f4.dtsi)
Auto-tested: ./scripts/twister -p nucleo_f446ze
My first PR - Be nice! :grin:
Signed-off-by: Tom Owen<EMAIL_ADDRESS>

@towen,
in Zephyr, we don't create commits to fix issue found during review.
Instead you need to amend your initial commit.
By the way I figure out that one of my comment is  missing:
Arduino connector pin is different from nucleo_f446RE  see board user manual:
https://www.st.com/resource/en/data_brief/nucleo-f446ze.pdf

Refer to the https://github.com/zephyrproject-rtos/zephyr/pull/37297 which is also introducing the quadspi for the stm32f4 soc family

Thanks again ABOSTM. I have updated the DTS to map the peripherals to the Arduino pins.
I double-checked the arduino-connector-r3.dtsi against the schematic MB1137 (nucleo-144) and it was already correct, but the DTS used different pins for the main peripherals. I have changed the pin assignments in the DTS to make use of the arduino-mapped pins.
FRASTM thanks for pointing out the other pull request. I have removed that part from my PR and referenced #37297 instead to enable QSPI

Sorry, I didn't mean to do that.
I had tried to retarget my PR to the latest zephyr, (so that I can un-comment the QSPI in my nucleo_f446ze.dts file, because QSPI has now been merged in)
but I didn't realise it would call everyone 😬

@erwango - please make a new PR - this one was merged accidentally and needs to be reverted (unless we start the v2.7.0 topic branch).
cc @nashif


fixes

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

File
Status
Preview URL
Details

dynamics-nav-app/LocalFunctionality/Spain/report-340.md
:bulb:Suggestion

Details

dynamics-nav-app/across-set-up-workflows.md
:bulb:Suggestion

Details

dynamics-nav-app/LocalFunctionality/Germany/how-to-print-general-ledger-setup-information.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/how-to-print-sales-and-purchase-orders-during-batch-posting.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/how-to-print-test-reports-for-delivery-reminders.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/how-to-print-vendor-payments-list-reports.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/how-to-set-up-data-exports-for-gdpdu.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/how-to-set-up-delivery-reminders.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Germany/vat-reporting.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Italy/how-to-create-electronic-vat-transactions-reports.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Mexico/how-to-create-deposits.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Mexico/how-to-manage-customer-credit-information.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Mexico/how-to-print-troubleshooting-reports.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Mexico/how-to-set-up-unrealized-sales-tax-and-sales-payment-discounts.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Netherlands/digipoort-overview.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Netherlands/general-ledger.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Netherlands/how-to-activate-sepa-payments.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Netherlands/how-to-apply-and-unapply-general-ledger-entries.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Netherlands/payment-scenario-1-domestic-payments-lcy-to-lcy-.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/NewZealand/addresses.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/NewZealand/calculating-distribution-amounts.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/NewZealand/how-to-determine-sales-price-by-cost-plus-percentage.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/NewZealand/how-to-print-bank-account-reconciliation-reports.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/NewZealand/how-to-print-deposit-slip-reports.md
:white_check_mark:Succeeded

dynamics-nav-app/LocalFunctionality/Norway/how-to-import-payroll-transactions.md
:white_check_mark:Succeeded

This comment lists only the first 25 files in the pull request.

dynamics-nav-app/LocalFunctionality/Spain/report-340.md

Line 90, Column 1: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/dynamics365/business-central/' will be broken in isolated environments. Replace with a relative link.

dynamics-nav-app/across-set-up-workflows.md

Line 3, Column 18: [Suggestion: duplicate-descriptions - See documentation] Attribute 'description' with value 'You can set up and use workflows that connect business-process tasks performed by different users. System tasks, such as automatic posting, can be included as steps in workflows, preceded or followed by user tasks. Requesting and granting approval to create new records are typical workflow steps.' is duplicated in 'across-set-up-workflows.md(3,18)', 'across-use-workflows.md(3,18)', 'across-workflow.md(3,18)'.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Building script

Why not have inside the script a gradlew build for the selected ide? Sorry for the empty body.


Submit a new Theme

The theme repo is at https://github.com/onweru/hugo-swift-theme

Hello @onweru,
thank your for submitting a your swift theme :+1:
Before we proceed, did you make sure you followed our checklist for theme submissions?

@digitalcraftsman thank you. Yes I did.

Theme submission
Before submitting a theme please make sure you've read the README.md. It describes in detail what information are needed and which requirements have to be fulfilled for the submission. The check list below can help you.
Link to my theme repository: https://github.com/onweru/hugo-swift-theme
I made sure that...

[x]   the repository contains a good README.md describing my theme

[x]   an open source license has been added to LICENSE.md

[x]   all metadata have been added to theme.toml

[x]   screenshots have been added in the images/ folder with the required dimensions

[x]   in case I'm using a customized demo via the exampleSite folder that

[x]   https://example.com is set as base url in exampleSite/config.{toml, yaml, json} to avoid the abuse of unused domains
[x]   I tested that my theme's demo works with the content directory of gohugoio/HugoBasicExample

[x]   I tested my theme against the gohugoio/HugoBasicExample

[x]   I've checked the developer tools' console in my browser for error messages

[x]   in case my theme is using Hugo Pipes features like toCSS and PostCSS that I have committed the /resources directory with all generated assets, for my theme to work in the basic version of Hugo

Feel free to ask questions. We're glad to help.

Hello @onweru
I had a look at your theme's demo and I noticed the following:

In your footer partial you have included a Mailchimp email collection form for your site's newsletter. A theme demo on the Hugo website is not the place to collect emails. You need to include placeholder data at https://github.com/onweru/hugo-swift-theme/blob/master/data/mailchimp.yml and also you need to document the support for Mailchimp's email subscription form in your theme's README

You really need to remove the hardcoded UA Google Tag Manager ID from over here: https://github.com/onweru/hugo-swift-theme/blob/69541d134cd236e8c2e5fdf6c0f91bfbeebed32c/layouts/partials/analytics.html#L1 Theme demos on the Hugo website is not the place to track users. Also if you intend for your theme to provide Analytics support you need to document this feature in your theme's README and provide a way for users to easily enter their Analytics ID without having to override your theme's templates like for example with a parameter in the config of the exampleSite. Again make sure to enter a dummy UA id in the config parameter.

Please remove the Google site verification from over here: https://github.com/onweru/hugo-swift-theme/blob/69541d134cd236e8c2e5fdf6c0f91bfbeebed32c/layouts/partials/head.html#L4 Since this is meant as a theme for several potential user this verification code doesn't make sense.

Furthermore When I execute the Build Script your demo's hamburger nav icon does nothing. What is its purpose? I also noticed the following data file: https://github.com/onweru/hugo-swift-theme/blob/master/data/menu.yml If this is meant for use in your theme please have a look at the Common Permalinks Issues of this repository's README particularly the part about URLs that begin with a forward slash /

Same goes for the following scripts that fail to load when I execute the Build Script: https://github.com/onweru/hugo-swift-theme/blob/d4e28935b1e6a09cf0cb18e61ff557c99da2ab3c/layouts/_default/single.html#L29-L30 Again this is due to what is described in the README and the fix is stated in it.

Make sure not to use a forward slash / in the beginning of a URL, because it will point to the host root and Hugo will not generate the correct URL for the demo's assets.

Please let me know once you look into the above so that I can review your theme further.

Hello @onedrawingperday,
I made the changes you advised. Here is a summary of what I did

Scrapped mailchimp support. I figured I don't quite have the time to expain the nuances of integrating mailchimp into the theme (I had hoped guys would find the implementation self-evident). In retrospect, it's actually not as obvious.

Removed the verification meta tags

Removed the /. I still find it loathsome that I have to use the absURL pipe or .Site.BaseURL.  Why? Because I have never had to use them (and I have published over half a dozen sites with hugo, with / & with zero issues). In fact, the example site works locally just fine without them. That said,  I get that this a thing that solely has to do with publishing the theme.

I have one question:

Do I have to replace all instances where I rely on /? Even on this sass partial?

1. Do I have to replace all instances where I rely on `/`? Even [on this sass partial](https://github.com/onweru/hugo-swift-theme/blob/master/assets/_fonts.scss)?

Yes.

3\. Why? Because I have never had to use them (and I have published over half a dozen sites with hugo, with `/` & with zero issues). In fact, the example site works locally just fine without them. That said,  I get that this a thing that solely has to do with publishing the theme.

The Common Permalinks Issues of the README is quite explanatory about URLs that begin with a forward slash:

The demo of your theme will be available in a subdirectory of the Hugo Themes website and you need to make sure of the following:

Make sure not to use a forward slash / in the beginning of a URL, because it will point to the host root and Hugo will not generate the correct URL for the demo's assets.

Note that the above not just to the Hugo Themes website but to every Hugo project that is published in a subdirectory.

but to every Hugo project that is published in a subdirectory.

Aha, that makes sense now.

Hi @onedrawingperday
I made some changes. Kindly check and let me know if those changes are properly done.
Thanks.

While checking the console of the browsers developer tools I noticed that the sha256 hash for the integrity of external assets don't match the hash of the linked content. Could you have a look at this? Due to the mismatch my browser blocks the requests that try to fetch the corresponding asset.
Furthermore, the pager on the homepage doesn't work with websites hosted in subdirectories. Right now the urls are relative to the root directory, e.g. example.com instead of example.com/subdirectory/.
You can fix this by creating the urls with {{ $.Site.BaseURL}}{{ .URL }} here.

I think I need some help with the sha256. You lost me :), sha256 is actually a thing??

I think I need some help with the sha256. You lost me :), sha256 is actually a thing?? That sha256 is generated by hugo sass thingy ... how can I ensure that they match seeing that it's not stuff that I'm manually generating??

tl;dr: a browser extension might be reason that triggered the error messages
Basically, sha256 maps some input (e.g. stylesheets) to a string S (called hash) that can for example be used as checksum to proof the integrity of a file. Due to the mapping it's hard to find two different inputs that have the same hash. If you link to an external asset (e.g. stylesheets, javascript files) whose hash doesn't match the expected one then the file might be manipulated. This could be a security issue.

None the less, please make sure that you use {{ $.Site.BaseURL }} with a $ at the beginning over here. Because you're inside a loop the . refers to the paginator pages, not the global content from which you can access the base url.
Furthermore, the apple touch icon and favicon linked here can't be found in the /static folder of your theme.

@digitalcraftsman, thanks for the feedback. I fixed the issues you raised. Kindly have look.

Thank you for fixing this issues so quick :+1:
Your theme should appear soon on Hugo's theme site. Next, I'll promote your theme on Hugo's official Twitter account.

@digitalcraftsman, thanks for the support; your guidance is invaluable.

Hi @digitalcraftsman, @onedrawingperday
I have noticed that a theme I published under this thread doesn't appear on the theme's showcase page. Are you in a position to advise?
A new contributor to the theme and I recently made edits to the theme.
Thanks

Hey @onweru,

a theme I published under this thread doesn't appear on the theme's showcase page. Are you in a position to advise?

Are you talking about the missing screenshots on the page you've linked?
You've to provide a thumbnail and screenshot in the images folder with the right dimensions as described in the README.

Hey @onweru,

a theme I published under this thread doesn't appear on the theme's showcase page. Are you in a position to advise?

Are you talking about the missing screenshots on the page you've linked?
You've to provide a thumbnail and screenshot in the images folder with the right dimensions as described in the README.

Correct,
we added tn.png and screenshot.png under the static/images folder and the exampleSite/static/images folders

You have to add the images folder in the root directory of your theme as done here. Otherwise the build script is unable to find and include the screenshots.

Aha, I think things were that initially, then it seemed odd that the images folder would be outside the static directory. Thanks for clarifying

The theme site has been updated and now includes the screenshots.

Awesome, most grateful for your help @digitalcraftsman


chore(GradedAlgebra.HomogeneousLocalization): do not compute smul on every pass of Algebra

We make a separate SMul (HomogeneousLocalization A x) (Localization x) to avoid Lean computing smul uneccessarily.

!bench

Marking as awaiting-author. Please replace that label with awaiting-review if appropriate.


nftables set for ip6 in ip table

What happened?
I wanted to try crowdsec for my local firewall which is based on nftables. I installed crowdsec-firewall-bouncer-nftables 0.0.28 on Debian and adjusted the configuration to only create the ip sets.
When I restart the service, this is what happens:
# nft monitor
add set ip mangle crowdsec-blacklists { type ipv4_addr; flags timeout; }
add set ip mangle crowdsec6-blacklists { type ipv6_addr; flags timeout; }

What did you expect to happen?
I expected the rule to be inserted in ip6, because as it goes to ip, it can never even be used by any ip6 flow.
add set ip6 mangle crowdsec6-blacklists { type ipv6_addr; flags timeout; } would be the correct one. Even if i create the Set in ip6 before, it still get's added to ip only.
How can we reproduce it (as minimally and precisely as possible)?
nftables:
  ipv4:
    enabled: true
    set-only: true
    table: mangle
    chain: crowdsec
    priority: -10
  ipv6:
    enabled: true
    set-only: true
    table: mangle
    chain: crowdsec
    priority: -10

#!/usr/sbin/nft -f
flush ruleset
add table ip mangle;
add table ip6 mangle;
add chain ip mangle crowdsec;
add chain ip6 mangle crowdsec;

Apply nftables, restart firewall-bouncer
Anything else we need to know?
It would also be suitable to add both sets to inet. Like this both protocols could access the sets.
Crowdsec version

2023/10/18 02:07:44 version: v1.5.4-debian-pragmatic-amd64-e4dcdd25728b914823525f1efabf18d5c454902b
2023/10/18 02:07:44 Codename: alphaga
2023/10/18 02:07:44 BuildDate: 2023-09-20_12:17:53
2023/10/18 02:07:44 GoVersion: 1.20.5
2023/10/18 02:07:44 Platform: linux
2023/10/18 02:07:44 libre2: C++
2023/10/18 02:07:44 Constraint_parser: >= 1.0, <= 2.0
2023/10/18 02:07:44 Constraint_scenario: >= 1.0, < 3.0
2023/10/18 02:07:44 Constraint_api: v1
2023/10/18 02:07:44 Constraint_acquis: >= 1.0, < 2.0

OS version

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux opnutm 6.1.0-13-amd64 crowdsecurity/crowdsec#1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

Enabled collections and parsers

$ cscli hub list -o raw
# paste output here

Acquisition config

```console
# On Linux:
$ cat /etc/crowdsec/acquis.yaml /etc/crowdsec/acquis.d/*
# paste output here
On Windows:
C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml
paste output here

Config show

$ cscli config show
# paste output here

Prometheus metrics

$ cscli metrics
# paste output here

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

Debugging
https://github.com/crowdsecurity/cs-firewall-bouncer/blob/af6e7e25822c2b1a02168b99ebbf8458bc6728e5/pkg/nftables/nftables_context.go#L128-L164
Issue happens in setonly function, we only interact with the conn (ipv4) chain rather than conn6 (ipv6)
Need to debug further as, technically we shouldn't even bother adding addr type v6 to ip chain as it has no value

Hello guys,
it's been a while since I posted this bug, but no activity yet. It doesn't seem too complicated to me. Is someone willing to check this?
Thanks a lot
Bastian

Hello guys,
it's been a while since I posted this bug, but no activity yet. It doesn't seem too complicated to me. Is someone willing to check this?
Thanks a lot Bastian

Hey 👋🏻
I checked and only get access to these IP types based on nftables SDK
https://github.com/google/nftables/blob/ef45dd3322d6742ea14356317afa1c19b4e0a505/set.go#L80-L81
and this is what we set the v6 conn too
https://github.com/crowdsecurity/cs-firewall-bouncer/blob/06416b46d021d7e7b37d1f6567b1ebcb07d69606/pkg/nftables/nftables_context.go#L94
So either it not exposed via the SDK 🤷🏻

Thanks for having another look.
In metrics.go there is a function ipFamily which returns exactly what is needed, without the tableFamily, but with the string. The question is, why is it not used in the sets mechanism.
Am patiently waiting for someone digging. ;-)

Same thing here.
# nft list table ip filter
table ip filter {
	set crowdsec {
		type ipv4_addr
		flags timeout
	}

	set crowdsec6 {
		type ipv6_addr
		flags timeout
	}

Probably gonna have to research myself...

It seems that using ListTablesOfFamily is needed here, otherwise it gives all tables and the first that matches the name ("filter") is returned.
https://pkg.go.dev/github.com/google/nftables?utm_source=godoc#Conn.ListTablesOfFamily
here's a oneliner fix PR https://github.com/crowdsecurity/cs-firewall-bouncer/pull/354


AzureLib 1.0.0 for MC 1.19.3 Forge 44.1.7 is crashing MC on start

Hey there,
until MC Doom version 4.3.9 for MC 1.19.3 Forge 44.1.7 the library AzureLib is now needed. Using AzureLib in my mod collection will MC cause crashing on start. I'll upload the crashlog including my modlist in the next posts.
Greetings

---- Minecraft Crash Report ----
// Shall we play a game?
Time: 2023-01-25 21:52:43
Description: Rendering overlay
java.lang.NoClassDefFoundError: Could not initialize class mod.azure.azurelib.util.JsonUtil
at mod.azure.azurelib.loading.FileLoader.loadAnimationsFile(FileLoader.java:28) ~[azurelib-forge-1.19.3-1.0.0.jar%23491!/:1.0.0] {re:classloading,pl:rei_plugin_compatibilities:B}
at mod.azure.azurelib.cache.AzureLibCache.lambda$loadAnimations$1(AzureLibCache.java:90) ~[azurelib-forge-1.19.3-1.0.0.jar%23491!/:1.0.0] {re:classloading,pl:rei_plugin_compatibilities:B}
at mod.azure.azurelib.cache.AzureLibCache.lambda$loadResources$5(AzureLibCache.java:112) ~[azurelib-forge-1.19.3-1.0.0.jar%23491!/:1.0.0] {re:classloading,pl:rei_plugin_compatibilities:B}
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames,pl:rei_plugin_compatibilities:B}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames,pl:rei_plugin_compatibilities:B}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:923) ~[client-1.19.3-20221207.122022-srg.jar%23778!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:rei_plugin_compatibilities:B,pl:mixin:A,pl:runtimedistcleaner:A}
-- Overlay render details --
Details:
Overlay name: net.minecraft.client.gui.screens.LoadingOverlay
Stacktrace:
at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:923) ~[client-1.19.3-20221207.122022-srg.jar%23778!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:rei_plugin_compatibilities:B,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1135) ~[client-1.19.3-20221207.122022-srg.jar%23778!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:rei_plugin_compatibilities:B,pl:mixin:APP:mixins.hammerlib.json:client.MinecraftMixin,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:META-INF/theadditionsmod.mixins.json:mixinMinecraft,pl:mixin:APP:itemphysic.mixins.json:MinecraftMixin,pl:mixin:APP:the_bumblezone.mixins.json:client.MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:bettercombat.mixins.json:client.MinecraftClientAccessor,pl:mixin:APP:bettercombat.mixins.json:client.MinecraftClientInject,pl:mixin:APP:bookshelf.common.mixins.json:client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:tofucraft.mixins.json:client.MinecraftMixin,pl:mixin:APP:mixin.dynamic_asset_generator.json:MinecraftMixin,pl:mixin:APP:iceberg.mixins.json:MinecraftMixin,pl:mixin:APP:zergatul.freecam.mixin.json:MixinMinecraft,pl:mixin:APP:securitycraft.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:713) ~[client-1.19.3-20221207.122022-srg.jar%23778!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:rei_plugin_compatibilities:B,pl:mixin:APP:mixins.hammerlib.json:client.MinecraftMixin,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:META-INF/theadditionsmod.mixins.json:mixinMinecraft,pl:mixin:APP:itemphysic.mixins.json:MinecraftMixin,pl:mixin:APP:the_bumblezone.mixins.json:client.MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:bettercombat.mixins.json:client.MinecraftClientAccessor,pl:mixin:APP:bettercombat.mixins.json:client.MinecraftClientInject,pl:mixin:APP:bookshelf.common.mixins.json:client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:tofucraft.mixins.json:client.MinecraftMixin,pl:mixin:APP:mixin.dynamic_asset_generator.json:MinecraftMixin,pl:mixin:APP:iceberg.mixins.json:MinecraftMixin,pl:mixin:APP:zergatul.freecam.mixin.json:MixinMinecraft,pl:mixin:APP:securitycraft.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.m_239872_(Main.java:212) ~[1.19.3-forge-44.1.7.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:51) ~[1.19.3-forge-44.1.7.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.3-44.1.7.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]

Thx for the planned fix


Add u256 libfuncs.

Add u256 libfuncs
Description
Description of the pull request changes and motivation.
Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report

Merging #240 (b4d9b23) into main (110068d) will decrease coverage by 0.51%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #240      +/-   ##
==========================================
- Coverage   84.07%   83.56%   -0.51%
==========================================
  Files         101      102       +1
  Lines       12571    12647      +76
==========================================
  Hits        10569    10569
- Misses       2002     2078      +76

Impacted Files
Coverage Δ

src/libfuncs.rs
71.04% <0.00%> (-0.56%)
:arrow_down:

src/libfuncs/uint256.rs
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Feat(#1238) : Stats profile activity

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[ ] Bugfix
[X] Feature
[ ] Refactoring

What's new?

[X] PR closes #1238
[X] Description :

the total amount $KSM of sold items and number of sold items
how much the collector spent in lifetime in $KSM and the total count of items
current holdings of the profile, total in $KSM and total items

Good overview of profil
Before submitting Pull Request, please make sure:

[X] My contribution builds clean without any errors or warnings

[] I've merged recent default branch -- main and I've no conflicts :
conflict in package json and pnpm with new version deps.
Error.vue deleted otherwise nothing else.
I accept the Incoming changes when merge main into my branch.

[X] I've tried to respect high code quality standards

[X] I've didn't break any original functionality

[X] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[X] I've tested PR on mobile and everything seems works
[X] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[X] Fill up your KSM address: [Payout](https://beta.kodadot.xyz/transfer/?target=5DkJ2x6SCHsXw9jarxhv3mVx1cuGsWBLK7pZNnvdRmguDuyy

Community participation

[X] Are you at KodaDot Discord?

Screenshot

[X] My fix has changed something on UI; a screenshot is best to understand changes for others.

All is self reviewed @petersopko.
For the mismatch you mentionned, I think this is related on other issue : #898.

It may be also related to the other issue, but if you look at the issue specs in #1238 (which you're trying to close by this PR), it seems that the task isn't done?
Another example : https://deploy-preview-2995--koda-nuxt.netlify.app/rmrk/u/Gek2uCr3kWqdt8eSaYzE1GxNn3b1RB1FYgzyQuKhhJ63X7r?tab=sold

All is self reviewed @petersopko.
For the mismatch you mentionned, I think this is related on other issue : #898.

It may be also related to the other issue, but if you look at the issue specs in #1238 (which you're trying to close by this PR), it seems that the task isn't done? Another example : https://deploy-preview-2995--koda-nuxt.netlify.app/rmrk/u/Gek2uCr3kWqdt8eSaYzE1GxNn3b1RB1FYgzyQuKhhJ63X7r?tab=sold

Yes pretty strange issue. I receive the data after the query, but the check after apollo query see the data like a null values in this profil.
Is just only on this profil, otherwise all profil work pretty well for me.

@vikiival could you please take a look, not sure what to do with this one

query profileStatsByAccount($id: String!) {
  listed: nftEntitiesConnection(where: {currentOwner_eq: $id, price_gt: "0"}, orderBy: name_ASC) {
    totalCount
  }
  collected: nftEntitiesConnection(where: {currentOwner_eq: $id, issuer_not_eq: $id, events_some: {interaction_eq: BUY}}, orderBy: name_ASC) {
    totalCount
    edges {
      node {
        events(where: {interaction_eq: BUY, caller_eq: $id}) {
          meta
        }
      }
    }
  }
  sold: nftEntitiesConnection(where: {currentOwner_not_eq: $id, issuer_eq: $id, events_some: {interaction_eq: BUY}}, orderBy: name_ASC) {
    totalCount
    edges {
      node {
        events(where: {interaction_eq: BUY, currentOwner_eq: $id}) {
          meta
        }
      }
    }
  }
  obtained: nftEntitiesConnection(where: {currentOwner_eq: $id, issuer_not_eq: $id}, orderBy: name_ASC) {
    totalCount
  }
}

let me know if you are missing any value

@petersopko can u pls check? 🥺

hey, thank you for your contribution :) can you please check if you see what I'm seeing here: https://deploy-preview-2995--koda-nuxt.netlify.app/rmrk/u/DSVZroU95KSVZKVr2pFdKfJkQtkgU5U1rkrBdeVnktHWmM4?tab=sold&page=1
Looks like a mismatch to me?

@MSghais your added feature still doesn't work. Mismatch between sold in the tabs vs. your added feature is still there.
Currently, the totalCount of sold items should be 300. Please check again. This is what the added query shows:

hey, thank you for your contribution :) can you please check if you see what I'm seeing here: https://deploy-preview-2995--koda-nuxt.netlify.app/rmrk/u/DSVZroU95KSVZKVr2pFdKfJkQtkgU5U1rkrBdeVnktHWmM4?tab=sold&page=1
Looks like a mismatch to me?

@MSghais your added feature still doesn't work. Mismatch between sold in the tabs vs. your added feature is still there. Currently, the totalCount of sold items should be 300. Please check again. This is what the added query shows:

@petersopko for the mismatch you mentionned, this is related on other issue : #898.
In my query, I take all Sold event. In the Tab you compare, we have also the Gifted event related on the issue above, that's why the difference is here for the totalCount.

Okay, but the number still isn't correct? Another example, when I check the query below at rubick https://app.gc.subsquid.io/beta/rubick/006/graphql with account CgGKH1dsPgJkQ3caFsnDtMUWUqVJKEpRt1ekM5RDW4UrYhP I see total count of 66. I think the query is correct. When I check the profile stats there, I see the number 50. This has nothing to do with the tab. Also, sometimes this happens:

Data just doesn't load?
sold: nftEntitiesConnection(
    where: {
      currentOwner_not_eq: $id
      issuer_eq: $id
      name_not_eq: "%Kanaria%"
      burned_not_eq: true
      events_some: { interaction_eq: BUY }
    }
    orderBy: name_ASC
  ) {
    totalCount
    edges {
      node {
        events(
          where: {
            interaction_eq: BUY
            currentOwner_eq: $id
            caller_not_eq: $id
          }
        ) {
          meta
        }
      }
    }
  }

pay 200 usd

😍 Perfect, I’ve sent the payout
💵 $200 @ 71.09 USD/KSM ~ 2.813 $KSM
🧗 5DkJ2x6SCHsXw9jarxhv3mVx1cuGsWBLK7pZNnvdRmguDuyy
🔗 0x01896f925b34b70a39f9bd3fc5761414a01034bc99d2d31323a1ddb62612e8ee
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Cannot read meter rates

Because of a typo here, meter rates cannot be read properly. Indeed, _MeterConfig.get_count method is used to retrieve them, while class _MeterConfig has no such method (which belongs to _CounterConfig).
Solution
Replacing _MeterConfig.get_count with _MeterConfig.get_param should solve the issue.

Because of a typo here, meter rates cannot be read properly. Indeed, _MeterConfig.get_count method is used to retrieve them, while class _MeterConfig has no such method (which belongs to _CounterConfig).
Solution
Replacing _MeterConfig.get_count with _MeterConfig.get_param should solve the issue.

Thanks for reporting this. Do you think you could open a PR to address this issue?

I just created a pull request with the fix proposed.


Added 'Structures and Classes' Page Swift

Based on the official swift language guide

[ x ] I have read freeCodeCamp's contribution guidelines.
[ x ] My pull request has a descriptive title (not a vague title like Update index.md)
[ x ] My pull request targets the master branch of freeCodeCamp.
[ x ] None of my changes are plagiarized from another source without proper attribution.
[ x ] My article does not contain shortened URLs or affiliate links.

Thank you!


CSUB-154: Adjust configuration around Dependabot

Description of proposed changes:
Practical tips for PR review & merge:

[ ] All GitHub Actions report PASS
[ ] Newly added code/functions have unit tests

[ ] Coverage tools report all newly added lines as covered
[ ] The positive scenario is exercised
[ ] Negative scenarios are exercised, e.g. assert on all possible errors
[ ] Assert on events triggered if applicable
[ ] Assert on changes made to storage if applicable

[ ] Modified behavior/functions - try to make sure above test items are covered
[ ] Integration tests are added if applicable/needed

yarn.lock should remain in git. https://classic.yarnpkg.com/lang/en/docs/yarn-lock/#toc-check-into-source-control


path to the checkpoint

Question 1-Which checkpoint path is referenced by loadmarianmtcheckpointnode?
https://huggingface.co/Helsinki-NLP/opus-mt-ja-en
I want to use this 👆.


Removing Adapter and Global Notifier

Removing adapter and global notifier have implications for some SDKs.

There's some assorted objectstore things which exist purely to support the GN that should be cleaned up too. From memory there's TransactionChangeInfo.track_all and RealmCoordinator::open_with_config(), but I think there may be a few others. shared_realm.hpp also still has a mention of GlobalNotifier.