Deserialization of inherited class with different namespaces not possible with Migration

Hello and thank you again for continous great work. I have found a problem with the migration, which does not allow current saves to be loaded. This problem is only invoked with different namespaces of base and inherited classes. I have created a small example showing the problem:
using ExtendedXmlSerializer.Configuration;
using ExtendedXmlSerializer.Tests.ReportedIssues.Support;
using FluentAssertions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Linq;
using Xunit;

namespace ExtendedXmlSerializer.Tests.ReportedIssues
{
    public sealed class MigrationTest
    {
        [Fact]
        public void Verify()
        {
            var serializer = new ConfigurationContainer().Type<BaseNamespace.Container>()
                                                         .AddMigration(EmptyMigration.Default)
                                                         .Create()
                                                         .ForTesting();

            var container = new BaseNamespace.Container();
            container.Content.Add(new InheritNamespace.Inherit() { Check = new InheritNamespace.InheritCheck() });
            serializer.Cycle(container).Should().BeEquivalentTo(container);
        }

    }
    sealed class EmptyMigration : IEnumerable<Action<XElement>>
    {
        public static EmptyMigration Default { get; } = new EmptyMigration();

        EmptyMigration() { }

        public IEnumerator<Action<XElement>> GetEnumerator()
        {
            yield break;
        }

        IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
    }
}

namespace BaseNamespace
{

    public class Container
    {
        public List<Base> Content { get; set; } = new List<Base>();
    }

    public class Base
    {
        public BaseCheck Check { get; set; }
    }
    public class BaseCheck { }
}

namespace InheritNamespace
{

    public class Inherit : BaseNamespace.Base { }

    public class InheritCheck : BaseNamespace.BaseCheck { }

}

I think is has to do something with the inner workings of the MigrationsExtensions of reading the subtree of the current element and Namespaces that are already known are ignored.

Hi @imperiobadgo thank you for reporting this.  I can confirm there appears to be an issue here and have reproduced it on my side.
Unfortunately, my time these days for this project are next to nothing so I will not be able to look into this with the care it deserves.  However, if you or someone want to create a PR that addresses this, I would be happy to work with you/them to do so. :)
FWIW as a potential workaround, I was able to get to work by enabling implicit typing on the type in question.  Not sure if this is viable but wanted to mention it:
var serializer = new ConfigurationContainer().Type<BaseNamespace.Container>()
				                                             .AddMigration(EmptyMigration.Default)
				                                             .EnableImplicitTypingFromNamespace(typeof(InheritNamespace.InheritCheck))
				                                             .Create()
				                                             .ForTesting();

				var container = new BaseNamespace.Container();
				container.Content.Add(new InheritNamespace.Inherit() { Check = new InheritNamespace.InheritCheck() });
				serializer.Cycle(container).Should().BeEquivalentTo(container);

Thank you for your answer. I was able to solve my current problem with your workaround, but I would still like to tackle the actual problem with the migration.
I think I have found the problem in IdentityMapper because it does not go through all the existing namespaces. At the moment, it only checks whether there is an instance in the specified namespace. However, if no namespace is specified (which is the case here), it produces an incorrect result.
using System.Xml;
using ExtendedXmlSerializer.ContentModel.Identification;

namespace ExtendedXmlSerializer.ExtensionModel.Xml
{
	sealed class IdentityMapper : IIdentityStore
	{
		readonly IIdentityStore        _store;
		readonly IXmlNamespaceResolver _manager;

		public IdentityMapper(IIdentityStore store, IXmlNamespaceResolver manager)
		{
			_store   = store;
			_manager = manager;
		}

		public IIdentity Get(string name, string identifier) => _store.Get(name, _manager.LookupNamespace(identifier));
	}
}

The contents of the parameter of the get function:
name: "InheritCheck"
identifier: ""
So the identity inside the TypePartReflector contains;
Identifier: clr-namespace:BaseNamespace;assembly=ExtendedXmlSerializer.Tests.ReportedIssues
Name: "InheritCheck"
The Namespace is the wrong one, so we get the ParseException...
sealed class TypePartReflector : CacheBase<TypeParts, TypeInfo>, ITypePartReflector
{
	readonly IIdentityStore _identities;
	readonly ITypes         _types;

	public TypePartReflector(IIdentityStore identities, ITypes types) : base(TypePartsEqualityComparer.Default)
	{
		_identities = identities;
		_types      = types;
	}

	protected override TypeInfo Create(TypeParts parameter)
	{
		var identity  = _identities.Get(parameter.Name, parameter.Identifier);
		var typeInfo  = _types.Get(identity);
		var arguments = parameter.GetArguments();
		var type = arguments.HasValue
			           ? typeInfo.MakeGenericType(Arguments(arguments.Value))
			                     .GetTypeInfo()
			           : typeInfo;
		if (type == null)
		{
			throw new ParseException(
			                         $"An attempt was made to parse the identity '{IdentityFormatter.Default.Get(identity)}', but no type could be located with that name.");
		}

		var result = parameter.Dimensions.HasValue
			             ? new DimensionsAlteration(parameter.Dimensions.Value).Get(type)
			             : type;
		return result;
	}

	Type[] Arguments(ImmutableArray<TypeParts> names)
	{
		var length = names.Length;
		var result = new Type[length];
		for (var i = 0; i < length; i++)
		{
			result[i] = Get(names[i])
				.AsType();
		}

		return result;
	}
}

Can you help me with how to go through all the namespaces already found to find the correct namespace for the type if none is specified?

Alright @imperiobadgo I've tracked it down.  The issue is indeed with XmlNamespaceManager and processing that is applied when migrations are enabled.
To start, this is what is emitted:
<?xml version="1.0" encoding="utf-8"?>
<Container xmlns:exs="https://extendedxmlserializer.github.io/v2" exs:version="0" xmlns="clr-namespace:BaseNamespace;assembly=ExtendedXmlSerializer.Tests.ReportedIssues">
	<Content>
		<Capacity>4</Capacity>
		<Inherit xmlns="clr-namespace:InheritNamespace;assembly=ExtendedXmlSerializer.Tests.ReportedIssues">
			<Check exs:type="InheritCheck" />
		</Inherit>
	</Content>
</Container>

In particular, note the xmlns="" for both the root element and Inherit element.
When doing migrations, we actually go through and pull all detected namespaces out and add them to the new subreader.  You can find this code here:
https://github.com/ExtendedXmlSerializer/home/blob/master/src/ExtendedXmlSerializer/ExtensionModel/Xml/MigrationsExtension.cs#L118-L149
The problem is that xmlns="" is declared twice and to assign it a second time would override the definition applied at the root element.
There may be a way to address this, and I am open to exploring this.  However, it got me wondering if we have anything that forces new namespace prefixes and indeed this occurs when UseOptimizedNamespaces is applied.  This will pull up all detected namespaces and apply them on the root element:
var serializer = new ConfigurationContainer().UseOptimizedNamespaces()
				                                             .Type<BaseNamespace.Container>()
				                                             .AddMigration(EmptyMigration.Default)
				                                             .Create()
				                                             .ForTesting();

Emits:
<?xml version="1.0" encoding="utf-8"?>
<Container xmlns:sys="https://extendedxmlserializer.github.io/system" xmlns:ns1="clr-namespace:InheritNamespace;assembly=ExtendedXmlSerializer.Tests.ReportedIssues" xmlns:exs="https://extendedxmlserializer.github.io/v2" exs:version="0" xmlns="clr-namespace:BaseNamespace;assembly=ExtendedXmlSerializer.Tests.ReportedIssues">
	<Content>
		<Capacity>4</Capacity>
		<ns1:Inherit>
			<Check exs:type="ns1:InheritCheck" />
		</ns1:Inherit>
	</Content>
</Container>

As there are no longer conflicts, the proper prefix is added to the namespace manager and the namespaces are resolved as expected.
This doesn't attend to the core issue of the migration extension.  I am open to suggestions on how to proceed with this.  For some awareness/context it is a v1 feature that was pulled over to v2 and my understanding of it is limited.

After a lot of trial and error, I finally understood this XmlNamespaceManager at least a bit and was able to find a way to fix the problem. I also tried to map other namespace scenarios with the unit tests so that I don't accidentally break another constellation. Please have a look if the small change is ok -> #613

Awesome!  Thank you @imperiobadgo for your efforts here.  I am currently slammed with my main project but I should have some time today or tomorrow to check this out.  The biggest part will be to get our connection back online with NuGet so we can publish a new release as its been so long our API key has expired. 😅

Thank you again for your contributions!


Fails to install on macbook

Will not install on macbook
node: 5.6.0
npm: 3.8.6
15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/pinoccio/node_modules/serialport
node-pre-gyp install --fallback-to-build

CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../src/serialport.cpp:3:
In file included from ../src/serialport.h:5:
In file included from ../node_modules/nan/nan.h:74:
In file included from ../node_modules/nan/nan_new.h:190:
../node_modules/nan/nan_implementation_12_inl.h:181:66: error: too many
arguments to function call, expected at most 2, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~

serialport v1.5.0 is fairly old and can't be installed with Node.js v5.6.0. For Node.js v4 or higher serialport v2 or higher is required.


Frontend GHA warning in test job about Node.js 12

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

Where do you see this?
All the actions/checkout@v I found are at v3, except this one.
https://github.com/collective/cookiecutter-plone-starter/blob/main/{{ cookiecutter.project_slug }}/.github/workflows/backend.yml#L75

My mistake, was the backend 'tests' job.

Would you please submit a PR to use actions/checkout@v3 for that instance, and any others that you might find? Thank you!


[Question] Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed

I'm currently facting the following issue:
2023/05/09 07:22:56 Connection to sealed secrets with (Namespace: infrastructure / ServiceName: sealed-secrets)
2023/05/09 07:22:56 Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed

sealed-secrets 2.8.1
with:

 repoURL: 'https://bitnami-labs.github.io/sealed-secrets'
  targetRevision: 2.8.1
  helm:
    values: |-
      ingress:
        enabled: true
        hostname: sealed-secrets.something.com
        pathType: Prefix
        ingressClassName: "nginx"
        annotations:
          nginx.ingress.kubernetes.io/auth-type: basic
          # name of the secret that contains the user/password definitions
          nginx.ingress.kubernetes.io/auth-secret: sealed-secrets-cert-basic-auth
          # message to display with an appropriate context why the authentication is required
          nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - sealed-secrets-cert'

destination:
  server: 'https://kubernetes.default.svc'
  namespace: infrastructure
syncPolicy:
  automated:
    prune: true
    selfHeal: true
  syncOptions:
    - CreateNamespace=true

sealed-secrets-web 3.0.7

project: infrastructure
source:
  repoURL: 'https://charts.bakito.net'
  targetRevision: 3.0.*
  helm:
    values: |
      sealedSecrets:
        namespace: infrastructure
        serviceName: sealed-secrets
      env:
        sealedSecretsControllerNamespace: infrastructure
      disableLoadSecrets: true
  chart: sealed-secrets-web
destination:
  server: 'https://kubernetes.default.svc'
  namespace: infrastructure
syncPolicy:
  automated:
    prune: true
    selfHeal: true
  syncOptions:
    - CreateNamespace=true

I can't use the    certURL because of https://github.com/bakito/sealed-secrets-web/issues/141
Anyway using cluster internal connection would be preferred.
The namespace & service mentioned in the error exist Namespace: infrastructure / ServiceName: sealed-secrets
any hints for further debugging welcome

Hi @rowi1de
Can you please verify that the k8s service name of your sealed-secrets installation is sealed-secrets if not, you might need to set the sealedSecrets.serviceName property in the helm chart.

@bakito regarding the error "cannot fetch certificate: error trying to reach service: Address is not allowed" do you know how the cluster internal fetching works? How the Endpoint is constructed?

@rowi1de no, not really.
This is done, as mentioned in #141, inside the slealed-secret client.
Probably they use k8s default.
..svc.cluster.local
Or so

Good Hint, so I can curl "sealed-secrets.infrastructure.svc.cluster.local:8080/v1/cert.pem" ...
so setting certURL: "http://sealed-secrets.infrastructure.svc.cluster.local:8080/v1/cert.pem" fixed  it.
I've the feeling something is wrong in here https://github.com/bitnami-labs/sealed-secrets/blob/67c2699797425dff2d39f550b42b1782d2ba406e/pkg/kubeseal/kubeseal.go#LL120C2-L120C40 will need to dig deeper. Thanks

will continue in https://github.com/bitnami-labs/sealed-secrets/issues/1206

@bakito one more idea:
You are passing "TODO" for the context on OpenCert, could this be a reason
https://github.com/search?q=repo%3Abakito%2Fsealed-secrets-web TODO&type=co

@rowi1de context.TODO shoudl not make a difference here.
Anyway good hint as I wanted to change this quite some while.
I changed it in #143. Once the merge request is merged and build you could try the newest ghcr.io/bakito/sealed-secrets-web:main to check if it makes any difference.

When using sealedSecrets.namespace and sealedSecrets.serviceName the service is queried by on the k8s api.
If the service account of the ssw pod needs to have rbac to read the services.
Is rbac created with the helm chart in your case?

I’m using the default for both helm charts regarding rbac => this means rbac resources are created in both charts

Networking issue https://medium.com/@denisstortisilva/kubernetes-eks-calico-and-custom-admission-webhooks-a2956b49bd0d

To fix the permission issue for the SA I had to extend the Role:
rules:
  - apiGroups:
      - bitnami.com
    resources:
      - sealedsecrets
    verbs:
      - get
      - list
  - apiGroups:
      - ''
    resources:
      - secrets
    verbs:
      - get
  - apiGroups:
      - ''
    resources:
      - services/proxy
    verbs:
      - get
  - apiGroups:
      - ''
    resources:
      - services
    verbs:
      - get

Maybe this is also caused by a change in kubeseal...


Need support to open gRPC service only on localhost

https://github.com/dapr/python-sdk/blob/5904cff8c50aeaf578b870b010b6b8e511765d23/ext/dapr-ext-grpc/dapr/ext/grpc/app.py#L69C8-L69C8

@softnado I have no idea what this request is about. It is not actionable. Please update the title and description and provide details.
The Python SDK repo has 5 different SDKs and covers many different scenarios:
dapr - the Python SDK (includes workflow management)
dapr-ext-grpc - the gRPC server for pubsub and input binding events
dapr-ext-fastapi - the Fast API server for pubsub and input binding events
flask-dapr - the Flask API server for pubsub and input binding events
dapr-ext-workflow the Alpha SDK for Workflow authoring.

I assume this is what you want to change:
https://github.com/dapr/python-sdk/blob/5904cff8c50aeaf578b870b010b6b8e511765d23/ext/dapr-ext-grpc/dapr/ext/grpc/app.py#L65-L71

Sorry @softnado I didn't resolve your link originally. I see what you want now - but next time please do provide more details in the description please.

@softnado as a temporary workaround, please do not call app.run(PORT), but instead manually do:
app_port = 5678
app._server.add_insecure_port(f'localhost:{app_port}')
self._server.start()
self._server.wait_for_termination()

This is the grpc library method add_insecure_port and whatever syntax they support is what we support here: https://grpc.github.io/grpc/python/grpc.html#grpc.Server.add_insecure_port
I might not have time to make this change in the upcoming release for the Python SDK (1.11) but we can definitely get it into the next version.
This is your simple solution for your situation in the meantime.

This is now available in SDK 1.12.0 - there is a new optional paramater to specify the host IP


[SQL] Add --encryption-protector-auto-rotation flag to cmdlets

Related command

-- az sql db show
-- az sql db create
--az sql db update
-- az sql db copy
-- az sql db replica
-- az sql db restore
-- az-sql-db-geo-backup-restore
-- az sql db ltr-backup restore
Description

This change is to update the cmdlets to support auto rotation of database encryption protector.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

SQL

/azp run

/azp run


DHCP address not being assigned

I've been trying to set up dhcpcd (v8.0.3) on a Yocto-based system.  Ironically, it works great for setting up static IP addresses which is what most people are having trouble with.  However, in my case, I'm unable to get it to handle DHCP addressing.
I keep seeing "waiting for 3rd party to configure IP address" messages in the systemd service status but I have no idea what this 3rd party is.
Here's the dhcpcd.conf:
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option interface_mtu
option ntp_servers
require dhcp_server_identifier
slaac private
nohook lookup-hostname
denyinterfaces p2p*
noipv6
noipv6rs
noarp
interface wlan0
static ip_address=
static routers=
interface enp1s0
static ip_address=
static routers=
interface eth0
static ip_address=<IP_ADDRESS>/24
static routers=<IP_ADDRESS>
Here's the output from "ip a" as requested:
root@ts-imx6:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet <IP_ADDRESS>/8 scope host lo
valid_lft forever preferred_lft forever
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:d0:69:52:15:0f brd ff:ff:ff:ff:ff:ff
inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global noprefixroute eth0
valid_lft forever preferred_lft forever
5: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:d0:69:52:15:10 brd ff:ff:ff:ff:ff:ff
6: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
link/ether 84:25:3f:5e:df:1e brd ff:ff:ff:ff:ff:ff
7: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 3000
link/ether 86:25:3f:e4:df:1e brd ff:ff:ff:ff:ff:ff
8: p2p-p2p0-0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
link/ether 86:25:3f:e5:df:1e brd ff:ff:ff:ff:ff:ff
inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global p2p-p2p0-0
valid_lft forever preferred_lft forever
Here's the systemctl status output:
(FYI, I also have dnsmasq running which conflicts with the systemd-resolve service which is why there are fail messages.  If I enable that service, there's no change in the main problem of obtaining a DHCP address)
root@ts-imx6:~# systemctl status dhcpcd.service

dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-04-27 19:41:28 UTC; 33s ago
Process: 390 ExecStart=/sbin/dhcpcd -q -w (code=exited, status=0/SUCCESS)
Main PID: 501 (dhcpcd)
Tasks: 2
Memory: 5.6M
CGroup: /system.slice/dhcpcd.service
|-442 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant-wlan0.conf -iwlan0
`-501 /sbin/dhcpcd -q -w

Apr 27 19:41:24 ts-imx6 dhcpcd[390]: wlan0: carrier acquired
Apr 27 19:41:24 ts-imx6 dhcpcd[390]: wlan0: waiting for 3rd party to configure IP address
Apr 27 19:41:24 ts-imx6 dhcpcd[390]: Failed to revert interface configuration: Unit dbus-org.freedesktop.resolve1.service not found.
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: eth0: carrier acquired
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: eth0: using static address <IP_ADDRESS>/24
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: eth0: adding route to <IP_ADDRESS>/24
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: eth0: adding default route via <IP_ADDRESS>
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: Failed to revert interface configuration: Unit dbus-org.freedesktop.resolve1.service not found.
Apr 27 19:41:28 ts-imx6 dhcpcd[390]: forked to background, child pid 501
Apr 27 19:41:28 ts-imx6 systemd[1]: Started dhcpcd on all interfaces.

I think I may have figured it out.  Apparently systemd-networkd.service wasn't enabled and running.
I'm going to confirm that things are working as expected tomorrow.  If this is the case, I suggest that some clarification in the documentation about how dhcpcd overrides networkd interface file settings (or /etc/network/interfaces for that matter) might help others in the future.

Thank you.  Looking forward for an update tomorrow. :-)
On Tue, Apr 27, 2021 at 19:04 RogueWarrior65 @.***>
wrote:

I think I may have figured it out. Apparently systemd-networkd.service
wasn't enabled and running.
I'm going to confirm that things are working as expected tomorrow. If this
is the case, I suggest that some clarification in the documentation about
how dhcpcd overrides networkd interface file settings (or
/etc/network/interfaces for that matter) might help others in the future.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NetworkConfiguration/dhcpcd/issues/34#issuecomment-828084709,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAU4RR6XHQ5JVXREOBZLWLTK5UKLANCNFSM43VU3YMQ
.

interface wlan0
static ip_address=
static routers=
interface enp1s0
static ip_address=
static routers=

This is probably what causes the waiting for 3rd party to configure IP address message.
If you don't want dhcpcd to run on these interfaces, use the allowinterfaces or denyinterfaces directives.

I think I may have figured it out. Apparently systemd-networkd.service wasn't enabled and running.
I'm going to confirm that things are working as expected tomorrow. If this is the case, I suggest that some clarification in the documentation about how dhcpcd overrides networkd interface file settings (or /etc/network/interfaces for that matter) might help others in the future.

I disagree. dhcpcd should only document what it does with kernel and system files it directly touches. systemd and Debian network config are neither of these.
FWIW, I have a systemd install where networkd isn't running and it works just fine.

Okay, this appears to be the solution.  I guess I was expecting dhcpcd to be handling the whole process of assigning IP addresses.  It does so for static IP addresses.

dhcpcd does handle all ip assigning functions, the same as systemd-networkd. If you enable both though they will start fighting each other and overwriting each other. systemd-networkd has DHCP client inside as well. You need to enable one or the other not both.

Hmm... then why wasn't dhcpcd assigning addresses?  Is this some configuration setting I'm missing?

My guess because systemd - networkd hijacking the DHCP and/or statement in config file 'static ip_addreess=' is confusing dhcpcd, remove everything from config file you do not want to be set. Not assign to nothing but remove statements all together.

Isn't leaving "static ip_address=" blank supposed to invoke a DHCP assignment?

Something you set in dhcpcd conf confused it, not sure what, you can start taking stuff out until it start working.

Closing this issue as it seems to be resolved and/or specific misconfiguration on a specific host rather than a request to change/fix dhcpcd in some way.

Isn't leaving "static ip_address=" blank supposed to invoke a DHCP assignment?

No, it's to indicate to dhcpcd that a 3rd party will assign the address.
The use case is a static setup when something like PPP assigns an address.

Ah, ok, so in order to get dhcpcd to make the assignment, I would need to delete the lines with "static" in them, correct?  Or do I need to delete the entire interface block?  Ultimately, I'm working with another GitHub project called RaspAP which is a PHP front-end for handling a lot of network configuration on a Raspberry Pi.  That code is what's adding the interface blocks with blank static settings to /etc/dhcpcd.conf.  It's starting to sound like they're using dhcpcd incorrectly or they have another dependency that I'm not aware of.
In my case, I'm porting that project over to a Yocto-based system.  Enabling systemd-networkd.service fixes the problem for me.

Just delete the static lines.
You can have an empty interface block, but that might be confusing if you have many of them.


Periodic rebase on upstream CronJob controller

There's been some changes to the Kubernetes CronJob controller since v1.13.3
It'd be good to track upstream and periodically sync CronJobber to the upstream CronJob version to avoid diverging too much form the defaults.

@hiddeco did you have a chance to look into this? It'd be good from a project health perspective to track upstream.

@mterron did not look into this yet as I am pretty occupied at the moment and the amount of spare time I have is limited (at least until the end of September).
The idea is however great, and I agree it would be good from a project health perspective. If someone has or finds time to attempt a rebase and report back eventual issues, I will be happy to put some of my time into thinking how we could deal with those. Fully working PRs are also more than welcome.

Any chance you can take a look? I think K8s has diverged too much for me to be comfortable providing a PR, sorry.

Thanks for checking in on this.
I have a general idea on how this could be pulled off in an automated way, it does however mean that much of the work has to be re-done to get the structure right. However with KubeCon EU ahead, and other projects that take up most of my time at the moment, I am not sure when I will get to this -- but I still will eventually.
Have to mention that as long as this boots, reacts to created TZCronJobs and spawns Jobs on the latest Kubernetes versions, there shouldn't be too much to worry about.

HI, We have been using Cronjobber for a while at Catalogic Software (https://www.catalogicsoftware.com/) and felt the same need to rebase the project on latest native cronjob controller. We are able to take the latest cronjob code and apply the patch to add time zone functionality. It is working well in our internal tests and we will be happy to submit the changes as PR here. It will be great if others can try it as well and give feedback.

Thanks for your interest and time @draghuram, feel absolutely free to open a PR. It may take some time to properly get back to you, but I will make sure things get landedz

Thanks @hiddeco. We will create the PR in a day or two and we will take it from there.


413 returned on file under 5mb limit

I've been getting a 413 error on file ranging between 0.5 mb and 2.5 mb. This file size is based on the calculated size of the stringified and encrypted content, not just the raw content before encryption.
I can send the stringified and encrypted content for testing if necessary.

Just checked the payload being posted to gaia and it’s significantly more than the stringified and encrypted content itself.
We’re talking a difference of 2.3mb to 7.3 mb. What kind of headers are being set that could possibly make the payload that much larger?

Miscalculated that difference. Looks like the difference is only about 1mb.

It's also worth noting that when the 413 error happens, I also see a CORS error. Doesn't seem to make sense, but maybe?

Ah -- that's a configuration error. It happens because the gaia hub itself isn't sending those 413 errors, that's usually a proxy, so it will need to set headers as well.

@kantai Any chance we can afford to bump the limit to 10mb for our PBC hub? 🙏
I get the sense through personal experience that mobile photos these days are between 2-3mb (at least, that's what my iPhone X seems to export). And if we're adding even a couple mb on top of that during processing, then we're touching the 5mb limit.
Raising to 10mb could resolve this dynamic presumably without adding much to our costs?

@kantai Any chance we can afford to bump the limit to 10mb for our PBC hub? :pray:

Oh, yes. We did some rough surveying a while back, and decided to up the limit to 25mb. We can implement that now.

@kantai Any chance we can afford to bump the limit to 10mb for our PBC hub? 🙏

Oh, yes. We did some rough surveying a while back, and decided to up the limit to 25mb. We can implement that now.

This is great! Is there an issue to track this for when it's deployed?

This is great! Is there an issue to track this for when it's deployed?

We can make one, but it should be in effect now.


NTR: “receptor ligand agonist activity” and  “receptor ligand antagonist activity”

From Wnt pathway discussion (Signaling WS 10/2017)
https://docs.google.com/document/d/1wCzCkPL9ft20ZP5XnTn8IQAcxoFEduaBmzVWKN0hbU0/edit#
Create 2 new terms: “receptor ligand agonist activity” and  “receptor ligand antagonist activity”

as children of 'receptor ligand activity'.
current def of  'receptor ligand activity' should be moved to “receptor ligand agonist activity” and 'receptor ligand activity' should be given a more general definition.

Maybe add a comment to indicate that this term may be confused with 'ligand binding'.

How will these be defined?
Do you have a critique of the current definitions?
Agonist and antagonist are not simply synonymous with activator and inhibitor.  A ligand may activate or inhibit the effector function of a receptor (see Ptc & hh for latter).  An antagonist inhibits binding of a ligand by competitive binding of a receptor.
Please also see discussion here: #14120

We have
GO:0048018    receptor ligand activity
which has
receptor agonist activity broad (shouldn't that be narrow?)


Name hover Animated & other fixes

I have added hover effects to the name on the home page and also added the same at some different places to enhance the overall appearance of the website.

The color transition on hovering does not go well with the color scheme of the website


onevnet man page inconsistency

Author Name: Alvaro Simon (Alvaro Simon)
Original Redmine Issue: 4692, https://dev.opennebula.org/issues/4692
Original Date: 2016-07-28
Original Assignee: Ruben S. Montero

Hi
This is just a small issue in the onevnet man page, in updatear section we can read:
updatear vnetid ar_id [file] Update Address Range variables. SIZE, IP, MAC and TYPE cannot be updated

but this is not 100% accurate, it is possible to change the SIZE value using the onevnet command or from sunstone frontend.

The size can be changed using Sunstone and the CLI.
To update it in Sunstone, just go to the address tab inside the network, click on the AR and then on update button.
To update it using the CLI, just use onevnet updatear command, it will prompt an editor where you can change the size.
Closing this.


deploy to sahara testnet

Chain Name
Sahara Testnet
Chain ID
313313
RPC URL
https://testnet.saharalabs.ai
Block Explorer URL
https://explorer.saharaa.info
Deployment Funds
Yes

Done, thanks!


Unable to create a nanoid as default value for _id

Hello, I was trying to save my _id as a nanoid string, but when I changed the default value for the schema he created a ObjectId:
my-schema.ts
export const myCollectionSchema = schema(
  {
    _id: types.string({
      required: true,
      unique: true,
      default: nanoid().toString(),
    })
}

expect object after insertion:
let result = {
    "_id":  "2esyjVDzRuGd_PmmAnd3R" // nano-id
}

actual object after insertion:
let result = {
    _id: "62c49cf1fd5964713a39d1d2"  // ObjectId
}

Is there any way I can accomplish the desired behavior?

First of all, sending default values should be done via the options.defaults parameter in the schema() method.
Even if you use that syntax, Papr does not support dynamic default values - see #18.


regtest mode how to create Property

@dexX7  help
in regtest how to get omni and how to send transaction
can you provide examples
thanks

#621

Hi @ying23,
to create tokens, mine some blocks with generate and send some BTC to a new address. With that address you could use omni_sendissuancefixed to create a token with fixed supply.

thanks all~


proposal: Go 2: equivalence between operators and monadic functions

Motivation
This was prompted by Robert Griesemer's excellent talk on generics. He observed that the least satisfactory part was that it seems awkward to add type lists in interfaces. The motivation of this proposal is to solve that issue and in addition to provide for more generality when declaring types.
 In a general form
c = a op b

where the operator op could be any one of Go's operators and the types could be any of Go's builtin types (with some restrictions). For example,
var a, b, c int
c = a + b

If the operator is considered to be a function, the infix notation a op b has an equivalent prefix notation using method syntax a.op(b).
Proposal

Define infix expressions a op b to be syntactically equivalent to method calls using prefix notation a.op(b).
Define alias names for each operator, for example the + operator perhaps as '+', that can be used as method names. These are always exported.
Predefine the 'normal' operations for each built-in type as methods, e.g. int would have methods '+', '-', '*', '/', '<', '>' etc. There would be quite a lot of these but this is only needed once and it would document their method set explicitly (see operators, builtins).

To be clear, the set of operator method names would be fixed, not extensible, in the same way that there is a fixed set of operators.
Implementation
The implementation is likely to not to be complex, working by means of a syntax substitution (Scala does this in the same way). That is, infix operators are syntactically transformed to the equivalent prefix form and then treated as per any other method.
The transformation would also need to be aware of operator precedence rules; there are no precedence rules when applying methods other than to evaluate them depth first, so the transformation of non-trivial expressions is required to maintain the expected order of execution. The implementation of this should be straightforward because the precedence rules are well defined.
Discussion
Allowing equivalence between operators and their methods means that the type list needed in interfaces in Robert Griesemer's generic proposal would no longer be needed because it would be possible to specify the necessary operators directly in the interface used as the type parameter. This would be more explicit than the type list approach, and therefore arguably clearer.
Furthermore, any type could define its own methods using the fixed set of operator methods. This would substantially increase generality. For example, I could define my own rational number type along with its arithmetic methods, Then I could use it with infix operators as I would with any built-in number type.
Footnote
Note that the complex64 and complex128 types would not strictly be needed any more because it would be easy to implement them as structs using arithmetic methods described above to provide the current set of operators that can be used on them. Altering this is not recommended as part of the current proposal though.

I proposed something very similar to this before in #33410, though it didn't have the infix notation.
One thing to note is that the current proposal has no clean way to get the underlying type of the current interface, which means that there's no way to specify that an argument to a method is the same as the underlying type of the interface:
type Adder interface {
  // What types are the argument and return?
  Add(other ???) ???
}

You can get around it by specifying it manually, but it's quite awkward and somewhat error-prone:
type Adder[T any] interface {
  Add(other T) T
}

func Add[T Adder[T]](v1, v2 T) T {
  return v1.Add(v2)
}

An alternative is to make all of the constraints special ones, like comparable, but I'd personally much prefer that even comparable wasn't a special one and that the system was powerful enough to allow the user to create constraints like it.

We've investigated ideas along this line extensively.  It works fairly well for the arithmetic operators, but there are a lot of other operations in Go, such as indexing, slicing, type conversions, the range clause, builtin functions like append and close, etc.

https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#why-not-use-methods-instead-of-type-lists

Based on the discussion above, and the current status of the generics proposal, this is a likely decline.  Leaving open for four weeks for final comments.

No further comments.


DeploymentNotFound error

Latest code of BetterChatGPT seems to throw the below error when using a custom Azure OAI endpoint.
I still receive an expected result, just that once the text is gennerated, the error below will also pop-up.
Error generating title!
{"error":{"code":"DeploymentNotFound", "message":"The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."}}

More info I found:
https://stackoverflow.com/questions/76549064/resource-not-found-with-azure-openai-service
In my case, the deployment name I have configured in Azure is the same as the model-name, but I am not sure what value is BatterChatGPT using, as this value can be configured by the user when deploying a model in Azure OAI.

It seems the issue is caused by "Auto generate title". If I disable this feature in settings, I do not get the same error anymore.


python310Packages.apycula: 0.8.3 -> 0.9.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.apycula is: Open Source tools for Gowin FPGAs
meta.homepage for python310Packages.apycula is: https://github.com/YosysHQ/apicula
meta.changelog for python310Packages.apycula is: https://github.com/YosysHQ/apicula/releases/tag/0.9.0

Maintainer pings
cc @newAM

Covered by: https://github.com/NixOS/nixpkgs/pull/255587

Oh, sorry overlooked the new PR.


Support a demonstration of prefiltering of variables

In the current solution it is possible to add a derived:template:
  derived:template "demo3/{var1}/{var2}";

But this provides an unlimited variation of variables that could in principle be injected into a the SPARQL query of the filter. An example could be provided (or an abstraction) how these variables first get validated, or even mapped into the the actual variables that get used by the SPARQL query.
E.g. I want to state that if a user sends name on the URL, it should be mapped to a foaf:name variable. And if the user sends as second variable 2 it should be mapped to "2"^^xsd:integer.

How would you see those restrictions being defined? E.g, in your examples both of these would have to be interpreted as literals. You might even want to have a stronger restriction that the second one has to be a number. In the case of other variables you could demand a uri, prefixed or full, etc. These restrictions would either have to be defined in the metadata that generates the derived resource, or in the filter body itself. Feel free to suggest how you see it.

I wasn't clear in my remarks. It would be great to have an abstraction added to the code base that can be used to map variables that are written by some external actor on an URL to variables that are internally injected into the SPARQL.
E.g. an VariableMapper interface:
interface VariableMapper {
    /* Can throw a BadVariable error or something */
    map(variables: String[]) : Promise<String[]>;
}

An IdentityVariableMapper could be the current case: every variable that is written on the URL is verbatim used in the SPAQRL. But, more elaborate mappers could be imagined:

filtering out bad input .. only allow specific variables etc).
for a specific usecase E.g. a Pod could support to use derived resources URLs like:

http://pod.me/derived/blogposts/physics/highenergy where physics and highenergy are mapped into something that  SPARQL could use

I would think that you probably still want to define somewhere which mapper should be used for which variable? Assume you have a query with 2 variables in it, one that expects a URI as input, and another one that expects a literal, the server would need to know which mapper to use for which variable. Otherwise you would have to create a custom mapper for every query (and then still somehow link that query to the mapper, unless you only allow 1 type of query per server).

Maybe. I could also imagine that if it is known that http://pod.me/derived/blogposts/ a derived view is, than that the rest of the path could be parsed by a single mapper that could spawn as many specific mappers as it likes for each part.
A simple abstraction what to do with the physics/highenergy part could be a first step to make more elaborate solutions.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/122 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-source-version-target.git

Docs Build status updates of commit 2d29586:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

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


add type checking of record type with value

This commit adds type checking to the reader path to make sure
the container structure of an incoming value matches its type descriptor.

need to fix sort test


[WIP][Autoscheduler] serialize compute dag

Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

Yeah copy on write semantics makes this a bit tricky and slow. I will move instead to https://github.com/apache/tvm/pull/10852


Unable to activate user - wrong URL

Overview of the issue
Just generated jHipster app with Vuejs blueprint. Tried to register user which is working fine. Copied the url from register email shown in logs
http://<IP_ADDRESS>:8080/account/activate?key=DLs4RqK5zojMLqTs3Phw
but got 404
the proper url seems to be
http://<IP_ADDRESS>:8080/activate?key=DLs4RqK5zojMLqTs3Phw
Motivation for or Use Case
The user registration is not working.
Reproduce the error
Create new app with Vuejs blueprint
JHipster Version(s)

JHipster configuration
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.mycompany.myapp",
"nativeLanguage": "en"
},
"jhipsterVersion": "6.5.1",
"applicationType": "monolith",
"baseName": "vue",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSwaggerCodegen": false,
"jwtSecretKey": "ZjM0MTllODY1MzdlMTJjOTg5YWY2NTQwZTYyNTQzNTliNjZlNWE0YzFiN2YxYzdjNDNmNTM2MjEzMDllMGEwMzc4NGUzMTNlMTdlZWJiZTQyMmU4ZGY3ZDZjYmMxZjcwMTRkNWFmNDM2YmE0NTA0MTZlZmZjOWU1NThmNjBhYjM=",
"embeddableLaunchScript": false,
"testFrameworks": [],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [
{
"name": "generator-jhipster-vuejs",
"version": "1.3.0"
}
],
"enableTranslation": true,
"clientPackageManager": "npm",
"nativeLanguage": "en",
"languages": ["en", "cs"],
"blueprints": [
{
"name": "generator-jhipster-vuejs",
"version": "1.3.0"
}
]
},
"generator-jhipster-vuejs": {
"jhipsterVersion": "6.5.1",
"applicationType": "monolith",
"baseName": "vue",
"useSass": true,
"clientPackageManager": "npm",
"clientFramework": "vue",
"clientTheme": "darkly",
"clientThemeVariant": "dark"
}
}
Browsers and Operating System
Widows 7, Chrome  78.0.3904.108

In regular angular based skeleton, the routing is set to "/account/activate". So the problem is probably in vue's router setup.

Thanks @wortner for reporting this. Indeed the route definition is different from what we have in angular/react and in the backend. So I would suggest to align the routes with our other frontends.
WDYT @jhipster/vuejs-developers ?

+1


AWS: Add API security defintions

TODO:

[x]  Merge base implementation in nitric for contract updates.
[x] Update to latest version of nitric

Codecov Report

Merging #227 (ee1ba6f) into develop (fcb88a5) will decrease coverage by 0.95%.
The diff coverage is 10.68%.

@@             Coverage Diff             @@
##           develop     #227      +/-   ##
===========================================
- Coverage    35.24%   34.28%   -0.96%
===========================================
  Files           49       49
  Lines         4361     4468     +107
===========================================
- Hits          1537     1532       -5
- Misses        2672     2782     +110
- Partials       152      154       +2

Flag
Coverage Δ

unittests
34.28% <10.68%> (-0.96%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/codeconfig/codeconfig.go
7.58% <0.00%> (-0.71%)
:arrow_down:

pkg/codeconfig/function.go
0.00% <0.00%> (ø)

pkg/codeconfig/server.go
0.00% <0.00%> (ø)

pkg/provider/pulumi/aws/aws.go
60.99% <0.00%> (-0.52%)
:arrow_down:

pkg/provider/pulumi/aws/gateway.go
0.00% <0.00%> (ø)

pkg/project/types.go
9.13% <100.00%> (+0.49%)
:arrow_up:

pkg/ghissue/buglink.go
90.32% <0.00%> (-9.68%)
:arrow_down:

pkg/utils/paths.go
5.00% <0.00%> (-5.00%)
:arrow_down:

Continue to review full report at Codecov.

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


Parse Error: Can't override name of the unique global class "State"

Godot 3.2.2stable
downloaded version of WAT through Assets tab in editor, gives error
downloaded WAT/releases/tag/v4.2.2, gives the same error
I get this:
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/ui/results/result_tree.gd:96 - Parse Error: The class "WAT" couldn't be fully loaded (script error or cyclic dependency).
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/ui/results/result_forest.gd:66 - Parse Error: The class "WAT" couldn't be fully loaded (script error or cyclic dependency).
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 built-in:208 - Parse Error: The class "WAT" couldn't be fully loaded (script error or cyclic dependency).
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/ui/results/result_tree.gd:96 - Parse Error: The class "WAT" couldn't be fully loaded (script error or cyclic dependency).
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/core/test/test.gd:4 - Parse Error: Can't override name of the unique global class "State". It already exists at: res://addons/WAT/core/test/test.gd
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR
 res://addons/WAT/namespace.gd:6 - Parse Error: Couldn't fully preload the script, possible cyclic reference or compilation error. Use "load()" instead if a cyclic reference is intended.
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR

Overall this addon is unusable because of this.

I'm assuming you have a "class_name State" somewhere in your code? It was conflicting with WATTest's local State Class. This is why GDScript requires namespaces.

thanks @CodeDarigan
I had not even considered this, I do have a State defined in an addon I wrote. Good to know so I can create non colliding class names & recognize this in the future.


Can I add some additional info while using OAuth2 ?

Summary
Can I add some additional info while using OAuth2 ?
I'm using Resource Owner Password Credentials now.
Client gets the access_token, and when request is sent to Kong, a Upstream Headers will have X-Authenticated-Userid. That is how it works now.
The API server receives the X-Authenticated-Userid, and now it has to request the User-Database to find which "Username" is related to the Userid.
My question is, Can I add some additional info just like "Username" to OAuth2 so that the Upstream Headers will have both X-Authenticated-Userid and more additional info like X-Authenticated-Username.
Additional Details & Logs

Kong version 0.9.5

Currently, no, but what you actually can do is encoding more information into the X-Authenticated-Userid, e.g. "authenticated_userd":"userid=1234567;username=catscarlet". This works just fine. I have not yet found the upper bound of characters, but I wouldn't overdo it.
See also #522 for a discussion of OpenID Connect which would also need some tweaking of the OAuth2 plugin.

That's a interesting way. Thank you for help.

This is the right approach, authenticated_userid is effectively a free form field that allows you to set whatever data you want to pass to identify the user.


Update overview.md

Update photo of NV4x-TGL

I have squashed the commits and integrated these changes in: https://github.com/Dasharo/docs/pull/705/commits
Thank you for contribution @wessel-novacustom


Cleanup

Basic cleanup of the code (trailing spaces, commented-out code, missing semi-colons, trailing commas).

Closing as this is over 2 years old.


Split View Bug

Issue Type: Bug
Open 2 files into split view, in which the first view defines a structure, and the second view references the structure
Now CTRL+Click on the reference on the second view, instead of focusing the first view where your code is located, it will duplicate the first view on the second view
VS Code version: Code 1.59.0 (379476f0e13988d90fab105c5c19e7abc8b1dea8, 2021-08-04T23:13:12.822Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Remote OS version: Linux x64 4.19.128-microsoft-standard

System Info

Item
Value

CPUs
AMD Ryzen 7 2700X Eight-Core Processor          (16 x 4000)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
23.91GB (8.55GB free)

Process Argv
--crash-reporter-id c4a35d11-5242-469a-84c2-8549ec43570d

Screen Reader
no

VM
0%

Item
Value

Remote
WSL: Ubuntu

OS
Linux x64 4.19.128-microsoft-standard

CPUs
AMD Ryzen 7 2700X Eight-Core Processor (16 x 4000)

Memory (System)
7.77GB (1.80GB free)

VM
0%

Extensions (13)

Extension
Author (truncated)
Version

auto-rename-tag
for
0.1.8

remotehub
Git
0.13.0

remote-containers
ms-
0.191.0

remote-ssh
ms-
0.65.7

remote-ssh-edit
ms-
0.65.7

remote-wsl
ms-
0.58.2

codesnap
adp
1.3.4

vscode-eslint
dba
2.1.23

gitlens
eam
11.6.0

go
gol
0.26.0

vscode-docker
ms-
1.15.0

rust
rus
0.7.8

vscode-scss-formatter
sib
2.2.3

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30322572
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
vstre464:30346472

Isn't this behavior controlled by workbench.editor.revealIfOpen setting?
Description:

Controls whether an editor is revealed in any of the visible groups if opened. If disabled, an editor will prefer to open in the currently active editor group. If enabled, an already opened editor will be revealed instead of opened again in the currently active editor group. Note that there are some cases where this setting is ignored, e.g. when forcing an editor to open in a specific group or to the side of the currently active group.

I think setting "workbench.editor.revealIfOpen": true would focus editor in other group


Running Rose Bush on seperate server to accessdev or twister

|    by ibc599

Running Rose bush under apache on a different server requires several modfications including

installation of Rose on a different machine. BoM want to webnm.bom.gov.au as a front end for twister.
Apache module for Rose bush. See accessdev apache module
mechanism for copying/linking/moving log files across to the web server.

Issue migrated from trac:108 at 2024-01-31 17:34:37 +1100

<EMAIL_ADDRESS>commented

Solutions for apache config being considered in Bureau i.support ticket for webnm-dev sysadmin.
Robin

<EMAIL_ADDRESS>commented

using the shared filesystem on twister/webnm-dev should provide log file visibility as needed,     /g/ns/cw/webdev/data-1
Robin

<EMAIL_ADDRESS>changed status from new to assigned

<EMAIL_ADDRESS>commented

note webnm-dev is linux 6.4 system ( I think ), not sure if this will matter ?
Robin

<EMAIL_ADDRESS>commented

Installation of packages via /apps to support rosebush on webnm-dev is now done.
Still to do is install rose and configure apache.
Robin

<EMAIL_ADDRESS>commented

Milestone Future deleted

<EMAIL_ADDRESS>removed milestone (was Future)

<EMAIL_ADDRESS>changed owner from ibc599 to rmb548


Implement FIFO Support

Implement support for FIFO queues.
Should be pretty straightforward overall. The key part should be implementing a FifoMessageSplitter with the logic to group messages from the same message group and processing each group in parallel while maintaining order within a group.
The AbstractEndpoint should be aware that it's a fifo endpoint and instantiate the proper splitter. Maybe it's worth having a FifoEndpoint subclass.

The AsyncMessageSplitter interface is responsible for splitting the batch of messages acquired from the AsyncMessagePoller and sending the messages through a processing pipeline provided by the listener container.
@FunctionalInterface
public interface AsyncMessageSplitter<T> {

	Collection<CompletableFuture<Void>> splitAndProcess(Collection<Message<T>> messages, Function<Message<T>, CompletableFuture<Void>> processingPipeline);
}

Just as a note, it seems AWS's recommended solution for finding out if a queue is FIFO is actually checking the name end for .fifo
Note: The name of a FIFO queue must end with the .fifo suffix. The suffix counts towards the 80-character queue name quota. To determine whether a queue is FIFO, you can check whether the queue name ends with the suffix.

One thing that can be taken under consideration is visibility timeout. In case when one gets 10 messages from same group, they all need to be completed before within the time limit. The idea is to allow to extend the time limit after every message in the group is processed.
The other interesting thing is to decide what to do in case if the message is processed with error. There are few options:

Process next messages in group
Retry the error message (possibly with extending timeout on all of messages in the group)
Let the messages return to queue (no ack) - the problem here is that until few retries the messages may land up in DLQ even though they were not ever processed (because of poison message in front)

It may happen that some tradeoffs will need to be made and that in order to get expected FIFO semantics, the end user will need to keep batch size set to 1 and perhaps decrease poll timeout.
IMHO it is bit unfortunate that SQS does not allow to set poll policy to not return multiple messages from same message group as this would allow to parallelize easily (no ordering conflicts in a polled batch)

Side note - if possible, we can keep FIFO support for another PR.

Sure @maciejwalkowiak, thanks. Although, considering this is a complex issue, I'm considering picking this up next so we have time to let the solution mature for a while until we release M2. But I could pick up the other issues first too. Let me know if you have any further thoughts. Thanks.

I mean, I could open another PR for it anyway, but unless it’s a PR against my branch we’d not be able to see much. Perhaps I didn’t get your point?

I've created a new issue that makes this scope more clear, so I'm closing this one.
Thanks!
Closed in favor of https://github.com/awspring/spring-cloud-aws/issues/444


ERROR: Cannot load message class for [realsense_msgs/ImuIntrinsic]. Are your messages built?

Required Info

Camera Model
L515

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win 10 and  Ubuntu 18.04)

Kernel Version (Linux Only)
4.15.0-126-generic

Platform
PC

SDK Version
latest { legacy / 2.4.0 }

Language
shell

Segment
others

Issue Description
install SDK
windows: https://github.com/IntelRealSense/librealsense/releases/download/v2.40.0/Intel.RealSense.SDK-WIN10-<IP_ADDRESS>2.exe
ubuntu:
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
sudo apt-get install -y librealsense2-dkms librealsense2-utils librealsense2-dev

sudo apt-get install ros-melodic-realsense2-camera

how to reproduce the error

On windows, run record-and-playback.exe, and output a.bag
On ubuntu, terminal 1, rosbag play a.bag; terminal 2, rostopic echo /device_0/sensor_2/Accel_0/imu_intrinsic

ERROR: Cannot load message class for [realsense_msgs/ImuIntrinsic]. Are your messages built?
Any suggestions? thank you.

Hi @xiaotaw
Are you still seeing this issue with latest 2.41 release?  Using 2.41 on Windows, I am not able to see the error you mention.  Noticed on Windows when running from command line, you need to open command window with "Run as administrator"
*If we don’t hear from you in 7 days, this issue will be closed.

Hi @xiaotaw
Are you still seeing this issue with latest 2.41 release?  Using 2.41 on Windows, I am not able to see the error you mention.  Noticed on Windows when running from command line, you need to open command window with "Run as administrator"
*If we don’t hear from you in 7 days, this issue will be closed.


Documenting Inky

Inky works in a different way than most (LÖVE) users might be used to. It also follows a paradigm that's not really immediate or retained mode, which makes it harder for users of different GUI libraries to convert.
Inky should be well documented such that using it is as painless as possible.
I, personally, am not that good at documenting, so I'd appreciate any and all help and feedback for this.

Resolved by https://github.com/Keyslam/Inky/commit/c09e7191008cb7542f3540c995176cff09f48ec3


refactoring required

the MVP is developed by a noob for Go with the GPT4.
this is just a job-che(i mean Korean "spaghetti" like).
Problem

based the bubbletea's tutorial which use ELM arch, but some functions should be in View, are in Update now.
coloring tags and drawing those

#4


Make cupy.sort support arrays with rank two or more.

Background
Arrays sorted with cupy.sort operation have some properties such as dtype, rank, sorting axis and C/F-contiguousness. Currently, cupy.sort supports sorting arrays only with the rank of one because of its implementation reason, see #55.
Problem
This issue addresses a problem that makes cupy.sort support sorting arrays with the rank of two or more, with the last axis and C-contiguousness.
Approach
Rank two
For an array with the rank of two,
[[4, 3]
 [2, 1]]

treating the array as flattened one, [4, 3, 2 ,1], and providing the following comparator in pseudo code to underlying Thrust library:
if floor(i / 2) < floor(j / 2) then return true;
else if floor(i / 2) > floor(j / 2) then return false;
else return data[i] < data[j];

where i and j are array indices, and data[i] represents i th element of array data,
we get the C-contiguous array sorted with the last axis.
[[3, 4]
 [1, 2]]

Rank N
Generalized to the rank of N with shape (d_0, d_1, ..., d_n-1), the following comparator works:
if floor(i / d_n-1) < floor(j / d_n-1) then return true;
else if floor(i / d_n-1) > floor(j / d_n-1) then return false;
else return data[i] < data[j];

For sorting along an axis in middle of axes, we need modulo.
I wrote a simple python code of the compare function and a simple test.
def compare(data, i, j, axis):
    size_k = np.prod(data.shape[axis:])
    size_k1 = np.prod(data.shape[axis + 1:])

    if i // size_k < j // size_k:
        return True
    elif i // size_k > j // size_k:
        return False
    else:
        if i % size_k1 == j % size_k1:
            return data.reshape(-1)[i] < data.reshape(-1)[j];
        else:
            return i < j

# This is a quick test to verify that the compare function produces
# correct expected outputs using the values of sorted arrays.
import numpy as np
x = np.arange(250)
np.random.shuffle(x)
x = x.reshape(2, 5, 5, 5)

for k in range(4):
    sorted_x = np.sort(x, axis=k)
    for i in range(sorted_x.size):
        for j in range(sorted_x.size):
            if i < j:
                assert compare(sorted_x, i, j, axis=k), '{} {}'.format(i, j)
            if i > j:
                assert not compare(sorted_x, i, j, axis=k), '{} {}'.format(i, j)

The last branch of the comparer might be also with modulo as following?
else:
    return i % size_k1 < j % size_k1

Really?
I simplified the compare. I think the logic is clearer.
def compare(data, i, j, axis):
    size_k = np.prod(data.shape[axis:])
    size_k1 = np.prod(data.shape[axis + 1:])

    if (i // size_k == j // size_k) and (i % size_k1 == j % size_k1):
        return data.reshape(-1)[i] < data.reshape(-1)[j]
    else:
        return i < j

Basically, when there is no need to compare by values in a list, the ordering follows the order of indices.
The comparison happens when two conditions meet.
I look at this problem by reducing general rank N case to rank 3, where sort axis is in the middle.
By looking at it that way, the relation between linear indexing and three dim indexing is as follows.
x.reshape(-1)[i] == x[i // size_k, i // size_k1, i % size_k]

It becomes clear that the conditions above (i // size_k == j // size_k) and (i % size_k1 == j % size_k1) is True only when the first and the last index are same for i and j.

Why I asked it is that sorting compares are required to satisfy not only relations between item pairs but relations across all items without inconsistency.
For example, when the comparer is applied to the following array:
[[4, 3],
 [2, 1]]

it leads the inconsistent returns below:

Compare 4 and 2 to get [2, 4] and compare 3 and 2 to get [3, 2], which lead to [3, 2, 4]
Compare 4 and 3 to get [4, 3]

I actually tried the comparer with Python's built-in sort operation,
import numpy as np

def make_comparer(data, axis):
    def comparer(i, j):
        size_k = np.prod(data.shape[axis:])
        size_k1 = np.prod(data.shape[axis+1:])

        if i // size_k < j // size_k:
            return -1
        elif i // size_k > j // size_k:
            return 1
        else:
            if i % size_k1 == j % size_k1:
                return cmp(data.reshape(-1)[i], data.reshape(-1)[j])
            else:
                return cmp(i, j)
    return comparer

def my_sorted(data, cmp):
    idx = range(data.size)
    sorted_idx = sorted(idx, cmp=cmp)
    _data = data.reshape(-1)
    return np.array([_data[i] for i in sorted_idx]).reshape(data.shape)

x = np.array([4, 3, 2, 1])
x = x.reshape(2, 2)

x1 = my_sorted(x, cmp=make_comparer(x, 0))
x2 = np.sort(x, axis=0)

assert np.array_equal(x1, x2)

but the assertion fails.
Fixing the comparer's last line gives consistent returns, but it also causes unexpected result:
[[2, 4],
 [1, 3]]

where the values with the same modulo are placed along the last axis, it's not the case.

Oh. You are right. The function I posted does not work because the order is not transitive.

@okuta suggested the second answer of the following SOF is a quite cleaver way to sort multiple arrays at once.
https://stackoverflow.com/questions/8298728/concurrently-sorting-many-arrays-with-cuda-thrust

For sorting along the last axis, it would be good to use the Back-to-back approach, because  division and modulo for each comparison and random memory access will suffer its efficiency.
For sorting along other axes but the last one, I have no idea but using rolling axes, so I will start implementation with the approach.


[bug]: Metamask not showing connection request [latest version]

Description
Metamask version 7.4.0 doesn't seem to be showing connection request.
I've tried this with and without optional namespaces.
Using the below session params:
namespaces: {
    eip155: {
      methods: [
        'eth_sendTransaction',
        'eth_signTransaction',
        'eth_sign',
        'personal_sign',
        'eth_signTypedData',
        'wallet_addEthereumChain',
        'wallet_switchEthereumChain',
      ],
      chains: ['eip155:1'],
      events: ['chainChanged', 'accountsChanged'],
      rpcMap: {},
    },
  },
  optionalNamespaces: {
    eip155: {
      methods: [
        'eth_sendTransaction',
        'eth_signTransaction',
        'eth_sign',
        'personal_sign',
        'eth_signTypedData',
        'wallet_addEthereumChain',
        'wallet_switchEthereumChain',
      ],
      chains: ['eip155:137'],
      events: ['chainChanged', 'accountsChanged'],
      rpcMap: {},
    },
  },

WalletConnect Modal SDK version
1.0.0-rc.10
Output of npx react-native info
System:
  OS: macOS 13.5.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 70.41 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 19.0.0
    path: ~/.nvm/versions/node/v19.0.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.nvm/versions/node/v19.0.0/bin/yarn
  npm:
    version: 8.19.2
    path: ~/.nvm/versions/node/v19.0.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 14.3/14E222b
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.1.2
    path: /Users/garethveale/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.1
    wanted: 0.72.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Expo Version (if applies)
No response
Steps to reproduce
Clone repro and attempt to connect to metamask
Snack, code example, screenshot, or link to a repository
https://github.com/garethveale/wc-react-native-example/tree/main

have the same issue

@ignaciosantise I'm trying to connect to eip155:1 and have the same result. For previous MetaMask versions it worked but sometimes had the same problem

GM @ignaciosantise ! Yeah I did try that, was requesting eip155:1 while my MM was on Eth mainnet

have the same issue

@garethveale i found the issue. I added a log in internal connectAndWait function, and MetaMask is returning:
{"code": 5002, "message": "User rejected methods."}
Did some tests, and the problem is your are sending an empty URL in the providerMetadata. Apparently MetaMask added some validations there
Can you check if adding a valid URL solves the issue?

@ignaciosantise that worked! thanks a lot for investigating


KBFS: Disk cache not initialized

After running keybase nearly since first release, yesterday I started getting this error notification.
Running on Debian Jessie.

Thanks, this is a known issue and will be fixed in the next issue.  It is harmless, it's just a mistaken error.  Dup of keybase/client#7834.


vue file can't rename variable and function name

Issue Type: Feature Request
when the file's expanded-name  is vue, the variable name and function name can't rename
VS Code version: Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:46:01.075Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

.


Properties panel crashes when file is closed with open FEEL popup editor

Describe the bug
Properties panel crashes when file is closed with open FEEL popup editor. It doesn't work anymore, and the problem is persisted among diagrams until Modeler is reopened.
https://github.com/camunda/camunda-modeler/assets/28307541/80e39219-1e5d-4998-bf73-af2da107035a
Steps to reproduce

Open FEEL popup editor
Close the file
now this happens

Expected behavior
It should close without crashes.
Environment

OS: [e.g. MacOS 10.2, Windows 10]
Camunda Modeler Version: 5.20.0
Execution Platform: [e.g. Camunda 7, Camunda 8]
Installed plug-ins: [...]

Additional context
No response

This is a regression since I cannot reproduce it in 5.19.0

I did a quick check in web modeler and see that they are not affected in the same way.

Closed via https://github.com/camunda/camunda-modeler/issues/4114.


Update SchedMD modules to 5.6.3 (from 5.6.2)

Submission Checklist

[x] Have you installed and run this change against pre-commit? (pre-commit install)
[x] Are all tests passing? (make tests)
[ ] Have you written unit tests to cover this change?
[x] Is unit test coverage still above 80%?
[x] Have you updated all applicable documentation?
[x] Have you followed the guidelines in our Contributing document?

/gcbrun

Exposing it on the controller would make it available for toolkit to use. For this PR there is nothing that can be done as the requested change would have to be released in a subsequent version.

Ok, I will merge it as is while the outputs are not available at the controller.


[Fabric][1.21.1] Mobs will not drop xp/loot when backpack is equipped

Hi, not sure if this is an accessories issue or an incompatibility with the Inmis backpack mod. Using the latest 1.1.0-beta.4+1.21.1, as well as trinkets compat layer 3.10.0+beta.14. When I have the backpack equipped, mobs will not drop any experience or loot. Removing the backpack fixes it. Looking at the server log, there are errors when a mob is killed relating to accessories.
server-latest.log
client-latest.log

Ah yea this is my fault as I lacked much experience loot context and used the incorrect set for such. I will see about releasing a fix tomorrow for such

Oh okay awesome, thank you so much!

@travislhaspe Should be fixed with the latest release of Accessories

Just updated and confirmed, fixed. Thank you so much! 💙


Set hbase host & port with code

Is it possible to provide spark.hbase.host and spark.hbase.port in code?  I tried following
`val sparkConf = new SparkConf().setAppName("Spark-HBase").setMaster("local[4]")
sparkConf.set("spark.hbase.host", "hbase_dev.myorg.net");

val spark: SparkSession = SparkSession.builder()
  .config(sparkConf)
  .getOrCreate()`

but getting error as shc tries to connect to localhost:
19/09/25 21:16:34 INFO ClientCnxn: Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) 19/09/25 21:16:34 WARN ReadOnlyZKClient: 0x1a785fd5 to localhost:2181 failed for get of /hbase/hbaseid, code = CONNECTIONLOSS, retries = 3 19/09/25 21:16:34 WARN ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused 	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) 	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) 	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)

I know it is a long shot, but did you ever solve it, and how?


Add batchWriter interface for spanner

The spanner emulator does not currently support the batch write API. Probably because it is in Preview on GCP. But we should leverage this here for our workflows.
This new interface is used by the Client. Upon construction, it determines which batch writer to use.
(I had to reopen this because I merged #889  into the wrong branch)

Using approval from https://github.com/GoogleChrome/webstatus.dev/pull/889 to close this


Document how to test expressions without adding them

Would be nice to document a good way to test out expressions before adding
I've been using ripgrep to test
$ rg 'password\s+=\s*".*"$'

then adding
$ git secrets --add 'password\s+=\s*".*"$'

@nitrocode: Are you looking for whether individual files contain patterns and then adding those patterns to the forbidden list? Could you provide more information on what you would like this feature to do?

I have files that contain expressions that I'd like to match. Before using ripgrep, I was testing the expressions by adding them via git secrets --add and then running git add myfile to see if git-secrets would flag my expression.
It would be nice to either add a way to test the expression directly using git-secrets such as a git secrets --test flag or document a separate way to do it.
A better question is, how do you test your secret expressions before adding them?

Historically, most of things I've worked on have been smaller, self-driven items that haven't really required the use of this type of software. I'm starting to look outward to see what developers need in terms of design and quality in the open source space.
Thanks for the info. I'll see where I can take this.

I like the idea of git secrets --test which might be equivalent to git secrets --scan with just a single provided pattern.


Add ops to "reverse" an array

Not a priority, but might come in handy sometimes (like here: https://github.com/deeplearning4j/deeplearning4j/pull/4336)
Numpy has fliplr and flipup
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.fliplr.html
Tensorflow has reverse
https://www.tensorflow.org/api_docs/python/tf/reverse
But, TBH: I'd prefer more general "permute/reverse TADs" behaviour - i.e., it would be possible to swap the order of 2d tensors in a 3d array... That could be viewed as a special case of Nd4j.pullRows with fixed indices {n-1, n-2, ..., 1, 0}, where n = number of TADs.

It's already available. Was added few weeks ago. Please try and confirm it matches your expectations.

p.s. op name is ultra-surprising: reverse

So we have ND4J.reverse(...) and Reverse class (was made native in July)
https://github.com/deeplearning4j/nd4j/blob/master/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/Reverse.java
This seems to reverse all values element-wise, not permute/reverse the order of each TAD, which is what I was looking for here.

No, we also have CustomOp reverse, that can be invoked via DynamicCustomOp

Yep, looks good. For reference (in case anyone is looking at this), some simple usages of this:
    @Test
    public void testReverse(){

        INDArray arr = Nd4j.linspace(1,50,50).reshape(10,5);
        INDArray result = Nd4j.createUninitialized(10,5);

        CustomOp op = DynamicCustomOp.builder("reverse")
                .addIntegerArguments(1)
                .addInputs(arr)
                .addOutputs(result)
                .callInplace(false)
                .build();

        Nd4j.getExecutioner().exec(op);

        System.out.println("Original:");
        System.out.println(arr);
        System.out.println("Result:");
        System.out.println(result);
    }

    @Test
    public void testReverse3D(){

        INDArray arr = Nd4j.linspace(1,3*4*5,3*4*5).reshape('f',3,4,5);
        INDArray result = Nd4j.createUninitialized(new int[]{3,4,5});

        CustomOp op = DynamicCustomOp.builder("reverse")
                .addIntegerArguments(new int[]{0,1})
                .addInputs(arr)
                .addOutputs(result)
                .callInplace(false)
                .build();

        Nd4j.getExecutioner().exec(op);

        for( int i=0; i<5; i++ ){
            System.out.println(arr.tensorAlongDimension(i, 0,1));
            System.out.println(result.tensorAlongDimension(i, 0,1));
            System.out.println("------");
        }
    }


Implement PubsubSchemaTransformWriteConfiguration

This PR address #21412 with a PubsubSchemaTransformWriteConfiguration implementation.  It's design goals are to like-for-like replicate PubsubSchemaIOTransform write configuration details.  Subsequent to this PR's approval/merge, the plan is to implement the final PubsubSchemaTransformWriteProvider.
Due to repeatedly failing beam_PreCommit_Java tests, to validate this PR, I ran the following prior to submission:
./gradlew rat
./gradlew spotlessCheck
./gradlew sdks:java:io:google-cloud-platform:check
./gradlew sdks:java:io:google-cloud-platform:checkStyleMain

I would like to request the following to review this PR:
R: @pabloem

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
~Update CHANGES.md with noteworthy changes.~
~If this contribution is large, please file an Apache Individual Contributor License Agreement.~

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

lgtm sorry about the delay!


⚠ File access (beta) has degraded performance

In 91c70b0, File access (beta) (https://beta.fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 3187 ms

Resolved: File access (beta) performance has improved in 3a457f6.


neon/ld2: Wasm optimizations

Instead of loading one by one, we load the entire 128-bits, then use shuffle to put the elements in the right place, then vget_low/vget_high. Also fix a couple of incorrect HEDLEY_ARRAY_PARAM declarations in the function signature.

Thanks!
I stole your ideas and used them to add a follow-up patch for other architectures.  See 078bb00d529693787e61b06ea6ce51f48015ed70


How to train a model of 5 landmarks

Hi ,
Thanks for your codes.
Now I want to train model of 5 landmarks, then how can I do it?
Could you please give me some suggestion?
Thank you very much!

Hi,
Are those 5 landmarks among the ones in the 300-W set? If so, you can simply train a model with 68 and only use 5, there will be no performance impact.
If not, you will need to create your own dataset. The easiest way would be to follow the format used by the 300-W dataset. You will also need the "average" positions of those 5 landmarks, similarly to the meanFaceShape.npz present in the /data/ directory of the project.
Thanks,
Marek


KAFKA-3559: Recycle old tasks when possible

@dguy @guozhangwang please have a look. I confirmed this passes the system tests too.

Not done with changes yet.

Also could you paste the time spent on KStreamRepartitionJoinTest with your local run before and after the patch, so that we can have some information on how much savings it has?

@guozhangwang before the patch, average of 3 runs is 47 seconds. After the patch it is 44 seconds. I'm not sure the optimization is worth it.

@enothereska could we profile which part of the onPartitionAssigned and onPartitionRevoked functions are the bottleneck then?

@guozhangwang turns out I had a bit of logging going on. With no logging the numbers from 5 runs of shouldCorrectlyRepartitionOnJoinOperations are:

with shutdown: 22, 22, 22, 21, 21 seconds (avg 21.6)
with suspend:   17, 17, 15, 14, 14 seconds (avg 15.4)

So that's around 28% improvement.

Thanks @enothereska the improvement looks significant for the worthwhileness of the optimization. Could we close / reopen this PR to let Jenkins trigger another build since the reported errors are new to me but I cannot reproduce it locally.

@guozhangwang there is definitely a bug there and we shouldn't merge until it's fixed. Still chasing, it's tricky to reproduce.

System tests (smoke and bounce tests) passed.

Unrelated jenkins environment failure

Same jenkins failure. Looks like something is wrong with Jenkins.

@enothereska Could you try retrigger jenkins again? https://github.com/apache/kafka/pull/2012 's jenkins succeeded.

@guozhangwang worked, thanks.

Could you rebase as well?

KStreamAggregationIntegrationTest > shouldGroupByKey[1] FAILED I haven't seen this failure before, will need investigating.

I opened a JIRA for this one (https://issues.apache.org/jira/browse/KAFKA-4359), it's not related to this PR and I'll need to clean up multiple tests. Will also commit a fix just for shouldGroupByKey for this PR.

Failure in Kafka unrelated to PR, but stopped rest of tests.

Usual transient reset tool failure, all else passed.

Merged to trunk.


Refresh triggers refresh?

It looks like calling refresh() is handled just like any other request which triggers checkRefresh which can trigger refresh again?
checkRefresh contains a _refreshInProgress check, but this is only set to true from the checkRefresh method, which doesn't prevent a second refresh() call. Shouldn't _refreshInProgress be set from the refresh method?

Ah I understand this isn't that simple because users can provide an alternative refresh method. (Something that isn't documentd)
Maybe we can create a refresh function that manages that refreshInProgress flag and calls the current refresh handler (which should probably always return a promise).

The fact that it's possible for a user to set his own refresh method is pure legacy.
I will have no problem removing it.
So fill free to update the refresh method with your proposal on a PR.

Ah awesome, that makes things easier. I'll do a PR today.

Did the pr: https://github.com/micky2be/superlogin-client/pull/19


Update SEACR to run NORM when there is no spikein and NON when there is a spikein

From Yue:
According to [https://yezhengstat.github.io/CUTTag_tutorial/](https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fyezhengstat.github.io%2FCUTTag_tutorial%2F&data=05%7C01%7Csamantha.sevilla%40nih.gov%7C8d5f32c92eb44157695c08db31a45391%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C638158354086107182%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XF%2B4AbmAMk0Zmjb%2BBgLdnRgTjtCdlgfyp9C7FsRuuZk%3D&reserved=0) , seacr should use “norm” when there is no spikein and “non” when there is spikein.  So I am wondering if you want to build a logic to use seacr “norm”/”non” according to the spikein parameter instead of providing both.
Solution:

Update SEACR to only run norm when there is not a spikein used, and non when there is a spike in used.

completed with commit fe5752b8b5db605cf8304b18eaae961d82205ccd


Add dateparse and DefaultTimeFormat

I dot this pull request because in reality when you write an OCPP central system server, you may have more than one brand of chargepoint on the same central system.
For example in my company, we have 4 brands of chargepoint connect on the server.
And in fact chargepoint's brands do not meet the standards DateTime.
The library dateparse allows us to deal with this problem;

Hey Had,
you make a good point there.
I originally thought of keeping the included batteries to a minimum and enforce the specifications, which clearly say that:

ISO 8601 MUST be used for OCPP 1.6
RFC 3339 SHALL be used for OCPP 2.0.x (except for meter-aligned data, which still follows ISO 8601

Imho charge point vendors should conform to these standards, however it makes sense to provide some flexibility for devs.
It would be really nice, if you could add the same change for the ocpp2.0/types package directly (the code is basically the same).

All right, I'll do that. As I said, 4 different brands, 4 different date formats...

Just checked out your branch and ran the unit tests.
Some of them are now failing, apparently because the datetime equality checks are not passing.
Can you make look into it and figure out why? Otherwise I'll do it as soon as I have some time.

Yes I'll look into the problem