[Feature Request] Allow to comment the commit even if the change is 0%

Sometimes you add resources that don't change the infrastructure cost. But you want a feedback or reminder of the total cost with no diff.
Description:
I as a GitHub action I want to comment on a PR when the infrastructure cost has not changed.
example of yaml:
      - name: Run infracost diff
        uses<EMAIL_ADDRESS>        env:
          INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: .
          entrypoint: /scripts/ci/diff.sh
          usage_file: infracost-usage.yml
          always_comment: true

Expected behavior:

A comment is posted on a PR/commit even if the cost is 0% and diff is equal.

Actual behavior:
   Running infracost output using:
  $ infracost output --no-color --format diff --path infracost_breakdown.json
Comment not posted as diff (0%) is less than or equal to percentage threshold (0%).

Posible alternative implementation:

Dont use <= is less than or equal to percentage threshold
instead use < is less than to percentage threshold (strict <)

Thanks for your amazing work.

Good idea! I can see how some teams would want to be reminded of what the cost is, specially if it's a repo that is changed less often. Other teams we've spoken with prefer comments only on bigger thresholds to avoid too much noise.
Whilst I like the simplicity of changing the logic to use <, that would break the default behavior (only post comment if costs change).
Some other options:

introduce a new always_post=true param, which would mean percentage_threshold is ignored.

Change the semantics of percentage_threshold so that:
0: default, post comment when costs change.
>0 values, e.g. 1: post when costs change by plus or minus 1%.
-1: a special constant to always post comments. Seems confusing. Also what if the user wants to set the threshold to -1% so only things that reduce the cost by more than 1% trigger a comment?

Introduce a new cost_threshold param, e.g. post a comment when costs by more than $1K so someone can review. If we introduce this now, we could set it to 0 to always trigger comments. If percentage_threshold and cost_threshold are set, either triggers a comment.

I quite like option 3 as it's similar to 1 but more powerful. What do you think?

I tried yesterday with
percentage_threshold=-101
And It failed with no logs. (That is a perfect fine undefined behaviour).
This is why I opened this issue.
I like option 3.
I dont have any preference between your options.
I would say I will preffer the way is less expensive for your tema on terms of development.
Thanks for your work.

I would vote for option 1 (always_post) and 3, but would not "abuse" option 3 (cost_treshold) to post always...although it's possible.
I like options that "explicitly" do what they are named for.

There's another use-case that I thought about for usage-based resources appearing in the diff. So I think a new post_condition variable that users can set to the following might work better:

always: always post comments
has_diff: only post comments whenever infracost diff has output (we can detect from the JSON output), this covers usage-based resources that have no costs but should appear in the PR comment.
percentage_threshold: current functionality.
in the future we can add cost_threshold.

post_condition can be a JSON string, e.g. post_condition='{"always": "true"}' or post_condition='{"percentage_threshold": "2"}' in bash (so echo $post_condition | jq should work). In future versions we can remove the old/top-level percentage_threshold variable.

@alikhajeh1 Hey, I’d like to work on this!

@mercuriete and @jgrumboe see https://github.com/infracost/infracost-gh-action#post_condition in v0.7.0 of the GH Action for this, I marked the old percentage_threshold param as deprecated.
We'd appreciate feedback on the content of the PR comments themselves, e.g. if has_diff is used, the comment should probably be different if there are only usage-based resources?

I am pretty happy with the changes...
this is my configuration:
      - name: Run infracost diff
        uses<EMAIL_ADDRESS>        env:
          INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: .
          entrypoint: /scripts/ci/diff.sh
          usage_file: infracost-usage.yml
          post_condition: '{"always": true}'

this is the output:
moneybag Infracost estimate: monthly cost will increase by $0.00 (+0%) chart_with_upwards_trend
Previous monthly cost: $X
New monthly cost: $Y
Infracost output
Project: .

- aws_sns_topic.notifications-topic
  Cost depends on usage

    - Requests
      Cost depends on usage
        -$0.50 per 1M requests

Monthly cost change for .
Amount:  $0.00 ($X -> $Y)
Percent: 0%

----------------------------------
Key: ~ changed, + added, - removed

To estimate usage-based resources use --usage-file, see https://infracost.io/usage-file

2 resource types weren't estimated as they're not supported yet, rerun with --show-skipped to see.
Please watch/star https://github.com/infracost/infracost as new resources are added regularly.

I would prefer the entire report and not the diff but I am happy as is.
I think in this case it has diff because I deleted a sns_topic.
Thanks for your work.

no diff case:
moneybag Infracost estimate: monthly cost will increase by $0.00 (+0%) chart_with_upwards_trend
Previous monthly cost: $X
New monthly cost: $Y
Infracost output
Project: .

Monthly cost change for .
Amount:  $0.00 ($X -> $Y)
Percent: 0%

----------------------------------
Key: ~ changed, + added, - removed

No changes detected. Run infracost breakdown to see the full breakdown.

2 resource types weren't estimated as they're not supported yet, rerun with --show-skipped to see.
Please watch/star https://github.com/infracost/infracost as new resources are added regularly.

Awesome! Thanks for confirming @mercuriete


App doesn't remember window size across files

I'm using Markoff 1.0.0 (51) from MAS on OS X 10.11.4, and every file initially opens in a 480x292 window (that's 960x584 in pixels on the retina screen of my rMBP 15'' with default scaling), which is way too small compared to the font size. Subsequent changes to the window size will be remembered for that one file only, so window resize needs to be done for every single file.
Do you think it's more reasonable to remember window size change across different files (just like how Finder opens new windows according to the size of existing windows, or windows from the last session)?

Markoff does remember the window size per-file. The default size has been too small and has been fixed in https://github.com/thoughtbot/Markoff/commit/792ee9b7b671c64ce19febb8f11483d93aeace90
Also, Finder is not a document-based app, making the comparison is a bit unfair.
Closing for now.


Microk8s restart during snap refresh did not remove pods

Summary
An autorefresh of the microk8s snap broke the cluster, as it was unable to shutdown pods during the stopping of the service. This meant that once it started again, microk8s created many duplicate pods which stepped on each others toes for both emptyDir mounts and opened host ports.
This has happened to us twice on two different microk8s deployments. In the first case it was on a single-node microk8s, and the second was a 3-node cluster.
What Should Happen Instead?
Microk8s should cleanly stop pods. In the event of unforeseen problems, maybe some better resolution for handling left-over processes. To be honest I don't know what this could be, seems like a tricky situation to recover from.
Reproduction Steps
I'm not sure how to reproduce, or even what the cause is. In one deployment, the snap updated to version v1.28.13, although it is long enough ago I can't say from which version. In the other deployment, the snap updated to version v1.28.14. I believe this second deployment also autorefreshed to 1.28.13 at some point without trouble, so the problem seems to be dependant on external factors (maybe networking?)
Introspection Report
There are various messages in the syslog around the time of the refresh which indicate a problem. I will provide a sample of messages here (these are for the refresh of the single-node deployment to 1.28.13):
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopping Service for snap application microk8s.daemon-cluster-agent...
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-cluster-agent.service: Deactivated successfully.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopped Service for snap application microk8s.daemon-cluster-agent.
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-cluster-agent.service: Consumed 2min 5.509s CPU time.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopping Service for snap application microk8s.daemon-k8s-dqlite...
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-k8s-dqlite[1510273]: time="2024-09-05T04:50:39Z" level=info msg="Shutting down\n"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-k8s-dqlite[1510273]: time="2024-09-05T04:50:39Z" level=info msg="Dqlite stopped\n"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: W0905 04:50:39.552739 1510288 logging.go:59] [core] [Channel #269 SubChannel #270] grpc: addrConn.createTransport failed to connect to {Addr: "unix:///var/snap/microk8s/7150/var/kubernetes/backend/kine.sock:12379", ServerName: "kine.sock", }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/snap/microk8s/7150/var/kubernetes/backend/kine.sock:12379: connect: connection refused"
...

There are 100+ repeats of the connection refused message. After these we have:
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopping Service for snap application microk8s.daemon-apiserver-kicker...
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-apiserver-kicker.service: Deactivated successfully.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopped Service for snap application microk8s.daemon-apiserver-kicker.
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-apiserver-kicker.service: Consumed 15h 25min 1.291s CPU time.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopping Service for snap application microk8s.daemon-kubelite...
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: I0905 04:50:39.628298 1510288 secure_serving.go:258] Stopped listening on [::]:10259
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: I0905 04:50:39.630582 1510288 tlsconfig.go:255] "Shutting down DynamicServingCertificateController"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: I0905 04:50:39.660512 1510288 dynamic_cafile_content.go:171] "Shutting down controller" name="client-ca-bundle::/var/snap/microk8s/7150/certs/ca.crt"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: I0905 04:50:39.662871 1510288 daemon.go:59] Stopping Kubelet
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-kubelite[1510288]: Stopping kubelite
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-kubelite.service: Deactivated successfully.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopped Service for snap application microk8s.daemon-kubelite.
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-kubelite.service: Consumed 5d 1h 44min 9.399s CPU time.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopping Service for snap application microk8s.daemon-containerd...
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-containerd[1509860]: time="2024-09-05T04:50:39.931345072Z" level=info msg="Stop CRI service"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-containerd[1509860]: time="2024-09-05T04:50:39.938819623Z" level=info msg="Stop CRI service"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-containerd[1509860]: time="2024-09-05T04:50:39.938921883Z" level=info msg="Event monitor stopped"
Sep  5 04:50:39 juju-657122-30 microk8s.daemon-containerd[1509860]: time="2024-09-05T04:50:39.938940979Z" level=info msg="Stream server stopped"
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-containerd.service: Deactivated successfully.
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-containerd.service: Unit process 64041 (containerd-shim) remains running after unit stopped.

Again there are 100+ repeats of the "process remains running after unit stopped" message.
Sep  5 04:50:39 juju-657122-30 systemd[1]: Stopped Service for snap application microk8s.daemon-containerd.
Sep  5 04:50:39 juju-657122-30 systemd[1]: snap.microk8s.daemon-containerd.service: Consumed 1d 7h 24min 4.243s CPU time.
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-containerd.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-k8s-dqlite.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-kubelite.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-apiserver-kicker.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-flanneld.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-apiserver-proxy.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-cluster-agent.service
Sep  5 04:50:40 juju-657122-30 snapd[499054]: services.go:1067: RemoveSnapServices - disabling snap.microk8s.daemon-etcd.service
...
Sep  5 04:50:55 juju-657122-30 systemd[1]: Started snap.microk8s.hook.post-refresh-98deb83e-f734-489b-a8db-079ab692ee5d.scope.
Sep  5 04:50:55 juju-657122-30 systemd[1]: snap.microk8s.hook.post-refresh-98deb83e-f734-489b-a8db-079ab692ee5d.scope: Deactivated successfully.
Sep  5 04:50:55 juju-657122-30 systemd[1]: Reloading.
Sep  5 04:50:57 juju-657122-30 systemd[1]: Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
Sep  5 04:50:59 juju-657122-30 systemd[1]: Started Service for snap application microk8s.daemon-apiserver-kicker.
Sep  5 04:50:59 juju-657122-30 systemd[1]: Started Service for snap application microk8s.daemon-apiserver-proxy.
Sep  5 04:50:59 juju-657122-30 systemd[1]: Started Service for snap application microk8s.daemon-k8s-dqlite.
Sep  5 04:50:59 juju-657122-30 systemd[1]: Started Service for snap application microk8s.daemon-etcd.
Sep  5 04:50:59 juju-657122-30 systemd[1]: snap.microk8s.daemon-containerd.service: Found left-over process 64041 (containerd-shim) in control group while starting unit. Ignoring.
Sep  5 04:50:59 juju-657122-30 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
...

And 100+ repeats of the "Found left-over process..."
Sep  5 04:50:59 juju-657122-30 systemd[1]: Starting Service for snap application microk8s.daemon-containerd...
...
Sep  5 04:51:01 juju-657122-30 microk8s.daemon-containerd[3352598]: time="2024-09-05T04:51:01.032704314Z" level=error msg="failed to resolve runtime path" err
or="invalid custom binary path: stat /snap/microk8s/6750/bin/containerd-shim-runc-v2: no such file or directory"

From comparing to the 3-node cluster microk8s deployment, I see very similar messages when it failed.

I realised I still have access to the logs when the 3-node cluster autorefreshed to version v1.28.13. It appears as though a very similar "failure" happened at that time too, although the cluster itself continued to work. By "failure" I mean that I see:

... grpc: addrConn.createTransport failed to connect to ... messages
Unit process 16023 (containerd-shim) remains running after unit stopped.
snap.microk8s.daemon-containerd.service: Found left-over process 16023 (containerd-shim) in control group while starting unit. Ignoring.

It is possible that this cluster was broken from this time and our monitoring didn't pick up on it. This seems very unlikely though, as the later autorefresh did cause some problems.


Adjust samples with dapr bindings

Signed-off-by: Benjamin Huo<EMAIL_ADDRESS>

lgtm. We can upgrade functions-framework-go to v0.2.1 in this PR.

v0.2.1 updated


Wanted to add Queue Visualizer

Hey @ming-tsai,
I wanted to add Queue Visualizer to projects.json
Please assign me to do that
Thanks

this issue has been resolved


breaking: fix: Weaver replaces [SyncVar] with SyncVar internally. IMPORTANT: old Inspector configured values for [SyncVars] will all be lost once (fixes #2939)

Fixes #2939
requires https://github.com/vis2k/Mirror/pull/2951
not finished yet...
User Code for [SyncVar] int
    public class Test : NetworkBehaviour
    {
        [SyncVar(hook=nameof(OnChanged))]
        public int health = 42;

        void OnChanged(int oldValue, int newValue) {}

        void Usage()
        {
            health = 1337;
            int test = health;
        }
    }

Weaver generated [SyncVar] (OLD):
NOTE: previous GameObject/NetworkBehaviour/NetworkIdentity was even more complex.
public class Test : NetworkBehaviour
{
    [SyncVar(hook = "OnChanged")]
    public int health = 42;

    public int Networkhealth
    {
        get
        {
            return health;
        }
        [param: In]
        set
        {
            if (!NetworkBehaviour.SyncVarEqual(value, ref health))
            {
                int oldValue = health;
                SetSyncVar(value, ref health, 1uL);
                if (NetworkServer.localClientActive && !GetSyncVarHookGuard(1uL))
                {
                    SetSyncVarHookGuard(1uL, value: true);
                    OnChanged(oldValue, value);
                    SetSyncVarHookGuard(1uL, value: false);
                }
            }
        }
    }

    private void OnChanged(int oldValue, int newValue)
    {
    }

    private void Usage()
    {
        Networkhealth = 1337;
        _ = health;
    }

    private void MirrorProcessed()
    {
    }

    public override bool SerializeSyncVars(NetworkWriter writer, bool forceAll)
    {
        bool result = base.SerializeSyncVars(writer, forceAll);
        if (forceAll)
        {
            writer.WriteInt(health);
            return true;
        }
        writer.WriteULong(base.syncVarDirtyBits);
        if ((base.syncVarDirtyBits & 1L) != 0L)
        {
            writer.WriteInt(health);
            result = true;
        }
        return result;
    }

    public override void DeserializeSyncVars(NetworkReader reader, bool initialState)
    {
        base.DeserializeSyncVars(reader, initialState);
        if (initialState)
        {
            int num = health;
            Networkhealth = reader.ReadInt();
            if (!NetworkBehaviour.SyncVarEqual(num, ref health))
            {
                OnChanged(num, health);
            }
            return;
        }
        long num2 = (long)reader.ReadULong();
        if ((num2 & 1L) != 0L)
        {
            int num3 = health;
            Networkhealth = reader.ReadInt();
            if (!NetworkBehaviour.SyncVarEqual(num3, ref health))
            {
                OnChanged(num3, health);
            }
        }
    }
}

Weaver generated SyncVar (NEW):
public class Test : NetworkBehaviour
{
    [SyncVar(hook = "OnChanged")]
    public int health = 42;

    public SyncVar<int> health_generated;

    public int health_generated_property
    {
        get
        {
            return health_generated.Value;
        }
        [param: In]
        set
        {
            health_generated.Value = value;
        }
    }

    private void OnChanged(int oldValue, int newValue)
    {
    }

    private void Usage()
    {
        health_generated_property = 1337;
        _ = health_generated_property;
    }

    public Test()
    {
        health_generated = new SyncVar<int>(health, OnChanged);
        InitSyncObject(health_generated);
    }

    private void MirrorProcessed()
    {
    }
}

Weaver Generated code SyncVar<T>, SyncVarGameObject, SyncVarNetworkIdentity, SyncVarNetworkBehaviour

// Mirror.Examples.Tanks.Test
using System.Runtime.InteropServices;
using Mirror;
using Mirror.Examples.Tanks;
using UnityEngine;

public class Test : NetworkBehaviour
{
    [SyncVar(hook = "OnChanged")]
    public int health = 42;

    [SyncVar(hook = "OnChangedGO")]
    public GameObject targetGO;

    [SyncVar(hook = "OnChangedNI")]
    public NetworkIdentity targetNI;

    [SyncVar(hook = "OnChangedBH_abstract")]
    public NetworkBehaviour targetBH_abstract;

    [SyncVar(hook = "OnChangedBH_inherited")]
    public Test targetBH_inherited;

    public SyncVar<int> health_generated;

    public SyncVarGameObject targetGO_generated;

    public SyncVarNetworkIdentity targetNI_generated;

    public SyncVarNetworkBehaviour<NetworkBehaviour> targetBH_abstract_generated;

    public SyncVarNetworkBehaviour<Test> targetBH_inherited_generated;

    public int health_generated_property
    {
        get
        {
            return health_generated.Value;
        }
        [param: In]
        set
        {
            health_generated.Value = value;
        }
    }

    public GameObject targetGO_generated_property
    {
        get
        {
            return targetGO_generated.Value;
        }
        [param: In]
        set
        {
            targetGO_generated.Value = value;
        }
    }

    public NetworkIdentity targetNI_generated_property
    {
        get
        {
            return targetNI_generated.Value;
        }
        [param: In]
        set
        {
            targetNI_generated.Value = value;
        }
    }

    public NetworkBehaviour targetBH_abstract_generated_property
    {
        get
        {
            return targetBH_abstract_generated.Value;
        }
        [param: In]
        set
        {
            targetBH_abstract_generated.Value = value;
        }
    }

    public Test targetBH_inherited_generated_property
    {
        get
        {
            return targetBH_inherited_generated.Value;
        }
        [param: In]
        set
        {
            targetBH_inherited_generated.Value = value;
        }
    }

    private void OnChanged(int oldValue, int newValue)
    {
    }

    private void OnChangedGO(GameObject oldValue, GameObject newValue)
    {
    }

    private void OnChangedNI(NetworkIdentity oldValue, NetworkIdentity newValue)
    {
    }

    private void OnChangedBH_abstract(NetworkBehaviour oldValue, NetworkBehaviour newValue)
    {
    }

    private void OnChangedBH_inherited(Test oldValue, Test newValue)
    {
    }

    private void Update()
    {
        health_generated_property = 1337;
        _ = health_generated_property;
        targetGO_generated_property = ((Component)this).get_gameObject();
        _ = targetGO_generated_property;
        targetNI_generated_property = base.netIdentity;
        _ = targetNI_generated_property;
        targetBH_abstract_generated_property = this;
        _ = targetBH_abstract_generated_property;
        targetBH_inherited_generated_property = this;
        _ = targetBH_inherited_generated_property;
    }

    public Test()
    {
        health_generated = new SyncVar<int>(health, OnChanged);
        targetGO_generated = new SyncVarGameObject(targetGO, OnChangedGO);
        targetNI_generated = new SyncVarNetworkIdentity(targetNI, OnChangedNI);
        targetBH_abstract_generated = new SyncVarNetworkBehaviour<NetworkBehaviour>(targetBH_abstract, OnChangedBH_abstract);
        targetBH_inherited_generated = new SyncVarNetworkBehaviour<Test>(targetBH_inherited, OnChangedBH_inherited);
        InitSyncObject(health_generated);
        InitSyncObject(targetGO_generated);
        InitSyncObject(targetNI_generated);
        InitSyncObject(targetBH_abstract_generated);
        InitSyncObject(targetBH_inherited_generated);
    }

    private void MirrorProcessed()
    {
    }
}

imer issues from discord:

imer's repro IL/C# on master where it works:

// imer
using System;
using System.Runtime.InteropServices;
using Mirror;
using UnityEngine;

public class imer : NetworkBehaviour
{
    [SyncVar(hook = "OnUpdateProportions")]
    private Proportions _syncProportions;

    private bool changed = false;

    public Proportions Network_syncProportions
    {
        get
        {
            return _syncProportions;
        }
        [param: In]
        set
        {
            if (!NetworkBehaviour.SyncVarEqual(value, ref _syncProportions))
            {
                Proportions syncProportions = _syncProportions;
                SetSyncVar(value, ref _syncProportions, 1uL);
                if (NetworkServer.localClientActive && !GetSyncVarHookGuard(1uL))
                {
                    SetSyncVarHookGuard(1uL, value: true);
                    OnUpdateProportions(syncProportions, value);
                    SetSyncVarHookGuard(1uL, value: false);
                }
            }
        }
    }

    protected void OnUpdateProportions(Proportions old, Proportions new_)
    {
        Network_syncProportions = new_;
        float Height = 3f * ((float)(int)_syncProportions.Ranges[0] / 254f) + 0.1f;
        Debug.LogWarning((object)String.Concat("HEIGHT= ", ((Single)(ref Height)).ToString()));
    }

    [ServerCallback]
    private void Update()
    {
        if (NetworkServer.active && !changed)
        {
            Network_syncProportions = new Proportions
            {
                Colors = (uint[])(object)new UInt32[2]
                {
                    (UInt32)1,
                    (UInt32)2
                },
                Ranges = (byte[])(object)new Byte[2]
                {
                    (Byte)3,
                    (Byte)4
                },
                Slots = (string[])(object)new String[2] { "a", "b" }
            };
            changed = true;
        }
    }

    private void MirrorProcessed()
    {
    }

    public override bool SerializeSyncVars(NetworkWriter writer, bool forceAll)
    {
        bool result = base.SerializeSyncVars(writer, forceAll);
        if (forceAll)
        {
            GeneratedNetworkCode._Write_Proportions(writer, _syncProportions);
            return true;
        }
        writer.WriteULong(base.syncVarDirtyBits);
        if ((base.syncVarDirtyBits & 1L) != 0L)
        {
            GeneratedNetworkCode._Write_Proportions(writer, _syncProportions);
            result = true;
        }
        return result;
    }

    public override void DeserializeSyncVars(NetworkReader reader, bool initialState)
    {
        base.DeserializeSyncVars(reader, initialState);
        if (initialState)
        {
            Proportions syncProportions = _syncProportions;
            Network_syncProportions = GeneratedNetworkCode._Read_Proportions(reader);
            if (!NetworkBehaviour.SyncVarEqual(syncProportions, ref _syncProportions))
            {
                OnUpdateProportions(syncProportions, _syncProportions);
            }
            return;
        }
        long num = (long)reader.ReadULong();
        if ((num & 1L) != 0L)
        {
            Proportions syncProportions2 = _syncProportions;
            Network_syncProportions = GeneratedNetworkCode._Read_Proportions(reader);
            if (!NetworkBehaviour.SyncVarEqual(syncProportions2, ref _syncProportions))
            {
                OnUpdateProportions(syncProportions2, _syncProportions);
            }
        }
    }
}

same on syncvar pr

// imer
using System;
using System.Runtime.InteropServices;
using Mirror;
using UnityEngine;

public class imer : NetworkBehaviour
{
    [SyncVar(hook = "OnUpdateProportions")]
    [HideInInspector]
    private Proportions _syncProportions;

    private bool changed = false;

    private SyncVar<Proportions> _syncProportions_generated;

    public Proportions _syncProportions_generated_property
    {
        get
        {
            return _syncProportions_generated.Value;
        }
        [param: In]
        set
        {
            _syncProportions_generated.Value = value;
        }
    }

    protected void OnUpdateProportions(Proportions old, Proportions new_)
    {
        _syncProportions_generated_property = new_;
        float Height = 3f * ((float)(int)_syncProportions.Ranges[0] / 254f) + 0.1f;
        Debug.LogWarning((object)String.Concat("HEIGHT= ", ((Single)(ref Height)).ToString()));
    }

    [ServerCallback]
    private void Update()
    {
        if (NetworkServer.active && !changed)
        {
            _syncProportions_generated_property = new Proportions
            {
                Colors = (uint[])(object)new UInt32[2]
                {
                    (UInt32)1,
                    (UInt32)2
                },
                Ranges = (byte[])(object)new Byte[2]
                {
                    (Byte)3,
                    (Byte)4
                },
                Slots = (string[])(object)new String[2] { "a", "b" }
            };
            changed = true;
        }
    }

    public imer()
    {
        _syncProportions_generated = new SyncVar<Proportions>(_syncProportions, OnUpdateProportions);
        InitSyncObject(_syncProportions_generated);
    }

    private void MirrorProcessed()
    {
    }
}

need to not only replace 'X=Y' but also 'X.Z'

in case this is needed again some day, here is an easy example to reproduce.
using Mirror;
using UnityEngine;

public struct Proportions {
    public byte[] Array;
}

public class imer : NetworkBehaviour
{
    [SyncVar(hook = nameof(OnUpdateProportions))]
    private Proportions _syncProportions;

    protected void OnUpdateProportions(Proportions old, Proportions new_)
    {
        // _new is fine with the new values.
        // assigning to _syncProportions is fine too.
        _syncProportions = new_;

        // loading _syncProportions.Array would still load the original SyncVar,
        // not the replacement. so .Array was still null.
        // we needed to replace ldflda here.
        //
        // this throws if it still loads the old _syncProportions after weaving
        // because the .Array was still null there.
        Debug.LogWarning("Array Size= " + _syncProportions.Array.Length);
    }

    public override void OnStartServer()
    {
        _syncProportions = new Proportions{Array = new byte[]{3, 4}};
    }
}

seems like there is a fundamental issue here.

the 'David' test on master fails, as the bug found by david.
setting field.Value =42 works.
setting property.Value = 42 doesn't. C# doesn't support that.

for future reference, we decided against [SyncVar] via SyncVar for now.
instead:

move more [SyncVar] code into managed for now
use SyncVar first hand without attributes if we ever want to


Modifying -dev generated  yaml file to match spec requested in #176

Sets image pull policy  to  Always.
Sets image version to dev.

Closes #176


Problems with CONNECT requests

The problem
Hi while trying to change WireMock to work with traffic in integration tests without the need to override base urls I've encountered a following problem. In one of services we are using reactor netty http client and this lead to an exception that was not observed on other services. I've learned that this one client despite http protocol uses CONNECT requests while creating tunnel https://github.com/netty/netty/issues/10475. It was causing similar issues to the ones I've had on other services while trying to use https requests through WireMock (server was configured based on documentation to accept https requests). This lead me to wonder that WireMock might not be handling CONNECT requests, or something around it, well.
Setup

version - com.github.tomakehurst:wiremock-jre8:2.34.0
example - https://github.com/lzolkiewski/wiremock-connect-problem

Feature requests
I'd like to be able to use netty's httpClient with WireMock when it works as a proxy.
Also I'd like WireMock to handle well requests that require CONNECT request.
Details
Before update to the latest version I was prompted to match CONNECT requests by hand, since though following exception is being thrown while using netty HttpClient:
org.opentest4j.AssertionFailedError: expected: <null> but was: <reactor.core.Exceptions$ReactiveException: reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response>
	at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at app//org.junit.jupiter.api.AssertNull.failNotNull(AssertNull.java:50)
	at app//org.junit.jupiter.api.AssertNull.assertNull(AssertNull.java:35)
	at app//org.junit.jupiter.api.AssertNull.assertNull(AssertNull.java:30)

Through Wireshark following can be seen:

Thank you for any guidance

I've raised this PR against your demo app showing how to fix most of this: https://github.com/lzolkiewski/wiremock-connect-problem/pull/1
There's still potentially an issue with the client using CONNECT for unencrypted connections, which WireMock doesn't currently support.

Thank you so much for your help :)
Would you like for me to leave this issue open for the issue with the client using CONNECT for unencrypted connections?

Hi,
I'm facing the same issue.
@tomakehurst, any news for unencrypted connections?
Sinceraly.

No, we haven't spent any time on this as it's a very niche edge case.


Crashing in PlayerComponent.lua, not properly passing a number

Error: PlayerComponent.lua:28: bad argument #1 to 'setColor' (number expected, got nil)
stack traceback:
    [C]: in function 'setColor'
    PlayerComponent.lua:28: in function 'draw'
    Entity.lua:30: in function 'draw'
    OverworldState.lua:32: in function 'draw'
    StateMachine.lua:42: in function 'draw'
    main.lua:17: in function 'draw'
    [string "boot.lua"]:446: in function <[string "boot.lua"]:413>
    [C]: in function 'xpcall'

Reproducible by running the code. I used /Users/Sidney/Downloads/love.app/Contents/MacOS/love /Users/Sidney/tempgit/TestRepo/

Is the PlayerConpoment ever given a color? It does not seem to be given a color anywhere.

That was something muffin added. He did not add in defaults arguments, so it crashes when draw gets nil. Either add in defaults, or just remove that part entirely (which is what I suggest, since it's unnecessary and adds visual clutter).

Fixed!


fix how to get more then 100 track's from artist

fix on get.js in mongo function folder how to get more then 100 tracks by artist name.

add promise after , after :"count = data.count;" , line 124 in get.js

Start to use 'async' liberty to send requests to MongoDB

finish 👍


env: node\r: No such file or directory

On MAC, when try to boot the server, it throws env: node\r: No such file or directory. After converting all CR to CRLF, this error is solved.

Which file has to be converted? The file in sero-cli, or in your web ?

In sero-cli. I executed the following command:
find ~/.nvm/versions/io.js/v2.5.0/lib/node_modules/sero-cli -name "*.js" | xargs dos2unix

then all is fine.
That command fixed quite a few files.

This is really weird, i just checked it with my mac, the files contains crlf were dependencies used in sero-cli, they are not provided by me.
But still interesting, i will loop into it

Fix in 2.4.10


Implement unordered list to only 2 levels, subsequent levels should be numbered

IEEE only goes two levels for unordered lists -- more than three levels should be numbered.
Use "IEEEStds Unordered List" and "IEEEStds Unordered List Level 2".
Style is first level dash, second level bullet.
Originally posted by @ronaldtse in https://github.com/metanorma/metanorma-ieee/issues/34#issuecomment-1163835289

I've done the List levels tonight. I issue a warning if there are three levels of unordered list.


Instagram oembed update

Instagram have updated their endpoint.
'The legacy instagram oembed endpoint will be deprecated on Oct. 24, 2020'
https://oembed.com/
https://developers.facebook.com/docs/instagram/oembed

Thank you. This issue will be fixed in the next release.


Provide information about service instances

Provide information about service instances
Motivation
Service Manager should start storing information about service instances and in this way provide a central place where:

Service Instances can be managed and retrieved
Enable scenarios such as out-of-platform consumption
Enforce constraints between other resources (example: platforms or service plans should not be deleted if there are associated service instances created already)
Central quota check about service consumption
And others...

Description
This is the topic branch for this task/story.
Tasks:

Introduce Operation resource
Introduce Service Instance resource
Introduce Service Instance API

Coverage remained the same at 89.565% when pulling 109e6bb4a53106fb9ca767080cb52f02dfee4619 on async_phase1 into edc3af73ae68275e499e8162ce1e4688c594a146 on master.


please augment with canonical durable entities tests

this is a request for canonical tests that depend on durable entities to support developers who

have durable functions with embedded durable entities
use the external client mechanism to access durable entities in isolation from durable functions

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

ID: e55b7998-54f1-77f1-4e1b-4ef01a5daccc
Version Independent ID: f7469430-00f8-0e03-de7d-e3b382fac427
Content: Azure Durable Functions unit testing
Content Source: articles/azure-functions/durable/durable-functions-unit-testing.md
Service: azure-functions
Sub-service: durable
GitHub Login: @ggailey777
Microsoft Alias: glenga

@vigouredelaruse
Thanks for your feedback! We will investigate and update as appropriate.


Feature: Keep default settings as the default when opening a new conversation

Right now every time you start a new conversation it defaults to GPT 3.5 and certain temperature, top-p, etc. settings. Perhaps these settings could be saved in localhost so once we save certain settings they get saved as the default for future sessions as well.

Oh I see there's a defaultChatConfig but it doesn't seem to be getting saved.

defaultChatConfig is currently not being saved / is not editable. We will implement this feature in the future.

defaultChatConfig is currently not being saved / is not editable. We will implement this feature in the future.

Brilliant work. I ⭐’ed the repo.
Any ETA on when do you plan to add this feature?


feat: make DidManagementApi more explicit

What this PR changes/adds
This PR removes generic endpoints from the DidManagementAPI, such as create, update or delete. Instead, they have been replaced with more focused endpoints for adding serviceEndpoint entries
to a DID document.
Why it does that
For the purposes of IdentityHub, the DID document is a fully managed piece of information, that is merely a representation of a particular participant. Thus,
manually modifying that document can cause inconsistencies.
Further notes

the DidDocumentService has been adapted too, to reflect those changes.

Linked Issue(s)
Closes #220
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

will require #227


The only way to unsubscribe is account deletion

Clarify the point raised in https://github.com/codetriage/CodeTriage/issues/1246
Just changed text on account deletion page.
Related issues

https://github.com/codetriage/CodeTriage/issues/883
https://github.com/codetriage/CodeTriage/issues/710
https://github.com/codetriage/CodeTriage/issues/409
https://github.com/codetriage/CodeTriage/issues/144
https://github.com/codetriage/CodeTriage/issues/135

Thanks ❤


pub(crate) private code

When reading sources, make it more obvious what is public API, and
what is internals.
Also pub(crate) prevents exposing internals accidentally.

Makes sense to me, thanks for another PR!


Upgrade to 0.70.0 Js Bundle Error

New Version
0.70.0
Old Version
0.69.5
Build Target(s)
Android 11/ iOS 15-16
Output of react-native info
System:
    OS: macOS 12.4
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 39.60 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.1 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.11.0 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/lvlrx/.rvm/rubies/ruby-2.7.5/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.13 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.70.0 => 0.70.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Issue and Reproduction Steps
After upgrading to 0.70.0 (Hermes enabled)
I can build for both Operating Systems but I encounter this error in the metro terminal after it bundles the js:
 ERROR  SyntaxError: 474881:28:Invalid regular expression: Quantifier has nothing to repeat, js engine: hermes
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
Error: ENOENT: no such file or directory, open '/path/to/my/project/unknown'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at getCodeFrame (/path/to/my/project/node_modules/metro/src/Server.js:1028:18)
    at Server._symbolicate (/path/to/my/project/node_modules/metro/src/Server.js:1101:22)

I think it basically has some issues with finding the entry file.
Do I miss something?
It was fine with 0.69.5 (Hermes enabled)

I just fixed it by editing my metro.config.js by setting inlineRequires to true as it was false before.

@lvlrSajjad I tried your solution. It didn't work for me.


Binding to Backbone.Collection with the data-each- binding

I'm trying to bind to a Backbone Collection in my view using rivets and have been using the following code to ensure that they work in the same way as other models do:
var IterableCollection = {};
IterableCollection.prototype = {
    get: function(id){
        if(id === 'models'){
            return this.models;
        }
        return Backbone.Collection.prototype.get.call(this, id);
    },
    add: function(models, options){
        var ret = Backbone.Collection.prototype.add.apply(this, arguments);
        options || (options = {});
        this.trigger('change:models', this, this.models);
        return ret;
    },
    remove: function(models, options){
        var ret = Backbone.Collection.prototype.remove.apply(this, arguments);
        options || (options = {});
        this.trigger('change:models', this, this.models);
        return ret;
    },
    reset: function(models, options){
        var ret = Backbone.Collection.prototype.reset.apply(this, arguments);
        options || (options = {});
        this.trigger('change:models', this, this.models);
        return ret;
    }
};

Then I make sure my collection inherits from this:
_.extend(MyCollection.prototype, IterableCollection.prototype);

This has made it so that in the templates I can simply pass the collection to the rivets binding, and correctly bind to change events on the collection.
Is this the correct way that it should be implemented? It feels vaguely hackish..
My other point would be that it may be useful to have a wiki somewhere or something that we can use to put in useful snippets (perhaps like this one) that would be useful for people to use in conjunction with rivets for Backbone, or Spine or perhaps another framework?

Anyone know why this isn't working? Using the adapter posted by @wulftone
http://jsfiddle.net/ferahl/fwhuf/86/


Start using CDB_TableMetadataTouch to upsert cdb_tablemetadata

Frontend tests were OK :+1: (details)

cc @javisantana @Kartones this is the long awaited "do not manipulate cdb_tablemetadata directly" patch. All users should be running 0.7.0 version of cartodb-postgresql by now so it's time to start using the touch method.
What do you think? :smile:

for me is a YES, if something breaks we can always revert and would fail quickly so...

:es: <3


chore: release 2.2.1

:robot: I have created a release beep boop
2.2.1 (2023-09-12)
Bug Fixes

rollback bun (a54ad4b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/infodusha/define-html/releases/tag/v2.2.1 :sunflower:


Add article on gitea

Signed-off-by: Alex Ellis (OpenFaaS Ltd<EMAIL_ADDRESS>Description
Add article on gitea
Testing
Tested e2e with screenshots provided in the article.
Spell check plugin within VSCode

LGTM


Optimized model pickling version comparison

This will save about 2.3us per unpickle:
In [3]: %timeit get_version()
2.3 µs ± 249 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [4]: %timeit django.__version__
42.4 ns ± 1.95 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)

That can be quite significant when unpickling a large cached list of model instances! 500 instances = 1ms.
Thanks to @suor's django-pickling that I stumbled across and made me look here. (source).

@charettes can I ask you for a review here, since you've checked some of my other model optimization PR's? 🙏


Support multiple allowed hosts

TransportFactory in options is refactored to map[string]func(id int, parent *http.Transport, host string, port string, recycleThreshold, minReqsBeforeRecycle int64) http.RoundTripper
So that we can assign different transport factory for each host.

@jveski Any advice is appreciated.


consider including a function to pivotLonger estimates

dplyr::tibble( a= c(1L, 2L, 3L), sex = c("F", "M", "F"), cdm_name = "mock", extra_col = c("a", "b", "c")) |>
  visOmopResults::pivotLongerType(cols = c("a", "sex"), prefix = "estimate")

#> # A tibble: 6 × 5
#>   cdm_name extra_col estimate_name estimate_type estimate_value
#>   <chr>    <chr>     <chr>         <chr>         <chr>
#> 1 mock     a         a             integer       1
#> 2 mock     a         sex           character     F
#> 3 mock     b         a             integer       2
#> 4 mock     b         sex           character     M
#> 5 mock     c         a             integer       3
#> 6 mock     c         sex           character     F

what do you think @nmercadeb ?

Should pivotEstimates be changed to pivotWiderEstimates then?

pivotLongerType() and pivotWiderType(), by default we can set prefix = "estimate", but then there may be other use cases, what do you think? @nmercadeb

why "type"?

Because the main difference between the tidyr and visOmopResults functions is this column _type (there is only name and value in tidy::pivot_loger/winder), but I am happy if you find more suitable names hahaha
For me what it is important is having both functionalities and that they are not exclusive to estimate

I think pivotEstimatesLonger() and pivotEstimatesWider() are more intuitive names

But then they are specific to estimates, and these functions may be useful for settings and strata too. That why the prefix argument.

I dont know, i dont see it atm... when would you use them?


Added DatabaseHandler::insert_or_update_profiles and test

Describe your changes
Issue ticket number and link
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I have made corresponding changes to the documentation
[ ] If OCPP 2.0.1: I have updated the OCPP 2.0.1 status document
[x] I read the contribution documentation and made sure that my changes meet its requirements

Just realized that this doesn't update the status doc but does tackle a functional requirement.

@christopher-davis-afs  I was holding off marking that until we get the full boot call completed.


update python version

What and why?
Updating to pyton 3.12
How to test?
Deploy, run tests, and test out the endpoints.
Jira
Card

/deploy wilkia


Add a Vagrantfile

Add a Vagrantfile because it is web scale and deployment machine will be the same as development

See #29 - a Dockerfile's like the same thing but better, amirite? (After all, Vagrant support docker!)

Everyone knows that only MongoDB is web scale.

@weswigham In all seriousness, Docker is better than Vagrant is that true?

They don't (quite) serve the same purpose. Vagrant can configure environments, and so can docker - thing is, docker is made for configuring containers while vagrant configures virtual machines. Vagrant actually supports using docker as a provider. Personally, I think the docker ecosystem (dockerhub included) has progressed to be more useful than its vagrant counterpart (which would be vagrant cloud/atlas, I believe). That is to say, it's typically easier to find a container which already has what you want than a vagrant box which does. I also believe docker's tooling environment has made it easier to orchestrate a system of containers compared to the tools Hashicorp has made for Vagrant for orchestrating systems of VMs.


Make schedule Send with panics.

However, simply calling wake in other threads may not trigger reschedule. Therefore I don't know how to construct a panic test.
Closes #108 . According to the votes of the maintainers, we don't want to support futures channel working cross thread.

Where is the Send impl

In std:)
You can see the comment of spawn_unchecked:

If schedule is not [Send] and [Sync], all instances of the [Runnable]'s [Waker] must be used and dropped on the original thread.

As we cannot stop the user use and drop the waker on other threads, we should panic to make schedule Send and Sync.

Does that mean the old impl we have are unsound?

I think so.


Unable to install when using composer 2.0. Conflicting psr/container requirements

What steps will reproduce the problem?
Upgrade to composer 2.0
Try to require yiisoft/widget into an existing project
What is the expected result?
yiisoft/widget should install
What do you get instead?
composer require --prefer-dist yiisoft/widget
Using version 3.0.x-dev for yiisoft/widget
./composer.json has been updated
Running composer update yiisoft/widget
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/widget dev-master requires psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.x-dev] but it conflicts with your root composer.json require (^2.0).
    - yiisoft/widget 3.0.x-dev is an alias of yiisoft/widget dev-master and thus requires it to be installed too.
    - Root composer.json requires yiisoft/widget 3.0.x-dev -> satisfiable by yiisoft/widget[3.0.x-dev (alias of dev-master)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Additional info
composer 2 loads psr/container ^2  but yiisoft/widgets requires psr/container ^1
problem can be worked around by downgrading psr/container and updating with all depdendancies

Q
A

Version
3.0.x-dev

PHP version
7.4

Operating system

@IvandaNothabeer  please try again.


Support for multi-controlnet

Closed in an earlier release, however this needs UX work in order to be usable and it is currently slow


Make cursor move to correct position after deleting table

fixes https://binnenland.atlassian.net/browse/GN-2625
also adds cursor position checks to all table-delete tests and adds a new test specifically for the buggy behavior

Master base branch so we can release to embeddable sooner
(as requested in the jira issue)


Include ol.format.filter to WFSWriteFeatureOptions?

Hi,
I have just realized that WFS filters are not included in the WFS class, so we are not able to include these to the request. I tried to add them in WFSFeatureOptions but I could not make the query work. I wonder if there is something that I am missing.
Regards, and thanks in advance.

Hello @gmvtrmaga ,
could you share the code?

I have implemented the following package
filter.zip
and added this code to WFSWriteFeatureOptions class:
/**
*
* @param filter
*/
@JsProperty
public native void setFilter(Filter filter);
It is probably wrong, as I have been trying different ways to add it.

GetFeature format works now including filters. There is also a new WFS example that shows the use. I only tested the IsLike filter. You can reopen this issue if other filters will not work.

First of all, thank you for this enancement, it is being useful in many ways. I have been making custom examples to test all the filters and they work fine overall.
However, I have just discovered that setUpperBoundary and setLowerBoundary functions (ol.format.filter.isBetween class) are not working. I catch this exception in debug mode:
   TypeError: ((intermediate value)(intermediate value) , ib_0_g$).setLowerBoundary is not a function

The same in setUpperBoundary
It is not a major problem as I can set the boundaries by replacing the filter, because the constructor works fine.
Should this setters be deleted? Maybe the same problem will occur in setGeometry function (ol.format.filter.spatial), I am going to test it soon.
Regards

@gmvtrmaga Yes, the same will happen with setGeometry function because there are no functions but properties. I will fix this soon.

Should work now with this fix: https://github.com/TDesjardins/gwt-ol3/commit/7d7712b5c84f54ed91464419802a8d8287821a86


[ubuntu, windows] Update maven to 3.9.9

Description
Fixes https://github.com/actions/runner-images/issues/10715

macOS is already up to date: https://github.com/actions/runner-images/pull/10473
Related issue:
Check list

[x] Related issue / work item is attached
[x] Tests are written (if applicable)
[x] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

Hi @timja ,
Could you please refactor the PR , and limit the changes only to the code and   remove the README changes.
Thanks.


Microsoft Typography

[Enter feedback here]

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

ID: b6087ef7-c445-bfa5-940f-de2990bc4069
Version Independent ID: e581c6e1-b37a-a979-5dc3-5dfa73428201
Content: Monotype.com font family - Typography
Content Source: typographydocs/font-list/monotype.com.md
Product: typography
GitHub Login: @alib-ms
Microsoft Alias: alib

No actionable feedback, so closing.


QueryParams conditions into the wasm config

Depends on https://github.com/Kuadrant/wasm-shim/pull/126

Done in https://github.com/Kuadrant/kuadrant-operator/pull/981


Godot UI unresponsive when extending primary monitor with secondary.

Tested versions
Tested:
Godot 4.0
Godot 4.3
Godot 4.4 dev3
System information
Godot v4.4.dev3 - Windows 10.0.19045 - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Laptop GPU (NVIDIA; <IP_ADDRESS>81) - 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 threads)
Issue description
When Godot is opened on my primary (laptop) 4k display and I attach a secondary monitor to it that 'extends' that display. Where the second monitor has a different resolution, I tested with HD and 2K. Then after the desktop is extended, Godot's UI is unresponsive.
It still reacts to key strokes although the main window won't update.
(Scene Debug Editor Help) Buttons also still work, and open their associated pop ups.
Pop generally open.
This does not happen if e.g. Godot is opened with the extended second monitor. Then the second monitor is disconnected and reconnected. In this case everything keeps working.
Steps to reproduce
Open Godot Project on primary 4k screen.
Attach HDMI cable to display port
Wait until extended desktop is loaded.
Try clicking buttons in the UI
Minimal reproduction project (MRP)
N/A

I tested it and found that as long as the resolution and scaling of the extended screen is the same as the main screen it won't be unresponsive, in the rest of the cases it will be


Fix merging time formats

We have sometimes observed that it sometimes mis-guesses %H and %k, compared to the original Ruby CSV guess. See the log of "Guess with Embulk v0.10.28" in https://github.com/embulk/embulk-guess-csv_verify/runs/3812611298 for example.
Error: -06 08:30:59.249 +0000 [ERROR] (0001:guess): [Embulk CSV guess verify] 'parser' has difference.
Error: -06 08:30:59.250 +0000 [ERROR] (0001:guess): [Embulk CSV guess verify] Java => {"charset":"UTF-8","newline":"LF","type":"csv","delimiter":",","quote":"\"","escape":"\"","trim_if_not_quoted":false,"skip_header_lines":1,"allow_extra_columns":false,"allow_optional_columns":false,"columns":[{"name":"v_long_max","type":"long"},{"name":"time","type":"timestamp","format":"%Y-%m-%d %H:%M:%S"},{"name":"foo","type":"string"},{"name":"","type":"long"}]}
Error: -06 08:30:59.251 +0000 [ERROR] (0001:guess): [Embulk CSV guess verify] Ruby => {"charset":"UTF-8","newline":"LF","type":"csv","delimiter":",","quote":"\"","escape":"\"","trim_if_not_quoted":false,"skip_header_lines":1,"allow_extra_columns":false,"allow_optional_columns":false,"columns":[{"name":"v_long_max","type":"long"},{"name":"time","type":"timestamp","format":"%Y-%m-%d %k:%M:%S"},{"name":"foo","type":"string"},{"name":"","type":"long"}]}
Error: -06 08:30:59.252 +0000 [ERROR] (0001:guess): [Embulk CSV guess verify] #<RuntimeError: embulk-guess-csv has difference between Java/Ruby.>

The difference has practically no problems by itself, but I looked into the details just in case it could have another hidden problem.
It turned out that the difference was caused by a bug in merging multiple guess results of time formats. This pull-request :

3f94f4cfc5ecc29495f04a83ae2c1bf262c3a94d: Adds a test for the case. (Tests fail.)
e965f28f962940246341f87a379916ecc4f6eb48: Fixes it. (Tests succeed.)

Thanks!


New data for the new canonical graphs

Thank you I fixed this bug in #62 , feel free to merge this if you think it's good!


problems running publish-crates@v1 gh action

I'm getting this trying to run my workflow, nothing gets published to crates.io, am I missing something?:
Run katyo/publish-crates@v1
(node:1598) UnhandledPromiseRejectionWarning: TypeError: Input does not meet YAML 1.2 "Core Schema" specification: no-verify
Support boolean input list: `true | True | TRUE | false | False | FALSE`
    at getBooleanInput (/home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/node_modules/@actions/core/lib/core.js:151:1)
    at /home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/lib/main.js:33:1
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/lib/main.js:8:1
    at new Promise (<anonymous>)
    at __webpack_modules__.3[10](https://github.com/izirku/gitrel/runs/5270607683?check_suite_focus=true#step:4:10)9.__awaiter (/home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/lib/main.js:4:1)
    at run (/home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/lib/main.js:23:1)
    at Object.3109 (/home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/lib/main.js:97:1)
    at __nccwpck_require__ (/home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/webpack/bootstrap:21:1)
    at /home/runner/work/_actions/katyo/publish-crates/v1/webpack:/publish-crates/webpack/startup:4:1
(node:[15](https://github.com/izirku/gitrel/runs/5270607683?check_suite_focus=true#step:4:15)98) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1598) [DEP00[18](https://github.com/izirku/gitrel/runs/5270607683?check_suite_focus=true#step:4:18)] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Looks like a PR I made (#394) missed adding a default value to the action.yml file. Sorry for the disruption, I've opened another PR (#414) with a fix.

@Voxelot , no worries, thank you!


Upgrade to geo-types 0.7

bors r+

bors r+

bors r-

bors r-

Sorry, but would you mind if we merge this one from last week instead?
https://github.com/georust/geojson/pull/158/files
I think it's a little neater to use the CoordFloat trait.

Sorry, but would you mind if we merge this one from last week instead?
https://github.com/georust/geojson/pull/158/files
I think it's a little neater to use the CoordFloat trait.

No issues here; just trying to power through a set of package upgrades.

No issues here; just trying to power through a set of package upgrades.

@michaelkirk ugh so sorry, forgot we already had that one! thanks again for the contribution @maxburke

@michaelkirk ugh so sorry, forgot we already had that one! thanks again for the contribution @maxburke

No worries, my bad for not merging it after it was approved.

No worries, my bad for not merging it after it was approved.


add public method to LogForwarder to retrieve the full endpoint urls

we only have a private: _retrieve_endpoints_from_relation method.
To facilitate integration with e.g. charm logging utils, we should be able to access the endpoints from the parent object (the charm).
Originally posted by @Abuelodelanada in https://github.com/canonical/loki-k8s-operator/pull/392#discussion_r1589546430

That function was intentionally made private because we didn't want charms to use that. We can go back on that decision, but I'd rather have an ADR on that to make sure the team's on the same page :)


Adds an option to use custom ALLURE_RUN_ID

With this PR I aim to introduce support for a new environment variable called ALLURE_RUN_ID which works in a similar way like ALLURE_JOB_NAME.
The usecase why I'd like to introduce this change, is to allow myself to use GITHUB_RUN_NUMBER (e.g. 3 instead of GITHUB_RUN_ID (e.g.<PHONE_NUMBER>), without breaking it for others. Run number is easier to remember and use e.g. during daily reviews of nightly regression test runs.

Sounds good, thanks for the PR 👍


⚠ SceneTime has degraded performance

In 1f949ba, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 3090 ms

Resolved: SceneTime performance has improved in 412d78a after 6 minutes.


vulkan: refactor VulkanPlatform implementations

Fold all the platform code into a single concrete implementation named PlatformVulkan.

LGTM, but is there a technical reason for this change? Personally I prefer the implementations in separate platform files, at least perhaps separating out Linux-based / Windows / macOS.

LGTM, but is there a technical reason for this change? Personally I prefer the implementations in separate platform files, at least perhaps separating out Linux-based / Windows / macOS.

We need a generic implementation that the client can subclass from. I suppose we can expose different VulkanPlatform subclasses, but they'll mostly be the same. It's easier to manage, IMO, if we isolate the platform specifics into just a few places and reduce code duplication.  Yes, it's mostly a preference thing.


Add signature and html download path

Added the download path (/reports//html) but no link in report yet. Downloads a zip file with the GPG signature, report, and various checksums.

closes https://github.com/SolarArbiter/solarforecastarbiter-core/issues/157 and makes progress on https://github.com/SolarArbiter/solarforecastarbiter-core/issues/158

For now, the signing happens on the dashboard. I do think we might consider moving report view (html body, full html, pdf, etc) to the API and have a background job handle it and avoid blocking any flask threads.

Ah I meant moving the final report templating and signing to the API since it may take some time to do things like create the final PDF of a report. Hashing/signing is quick.

Ah okay :+1:


Add distance matrix functions

This commit adds 2 new functions, graph_distance_matrix() and
digraph_distance_matrix(), which will generate a distance matrix for a
graph object. It is for use cases when all edges are unweighted or have
the same weight and is significantly faster than other algorithms
because of this assumption. It also operates in parallel if the size of
the graph justifies it.

Pull Request Test Coverage Report for Build 291984170

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.2%) to 93.588%

Files with Coverage Reduction
New Missed Lines
%

src/lib.rs
4
98.8%

Totals

Change from base Build 291922156:
0.2%

Covered Lines:
2277

Relevant Lines:
2433

💛  - Coveralls


Infocenter opens on busy port, I have apache running on port 80.

Starting help infocenter on this portproduces no error. Infocenter is running. Content cannot be displayed as this port is served by apache. A consequence is also that infocenter cannot be closed programatically. Issuing command to shutdown does nothing and reports a time out. Infocetner can only be killed brutally.The error about port being taken is produced but it is being logged in the catalina.*.log. and otherwise ignored. Infocenter should report it on the command line and exit.

缺陷定位服务出现一些问题


feat(entity): add geoProperty operationSpace and observationSpace

did not pay attention previously, but the build has failed (the one from the GitHub action)
one last point: think about possible effects in other services

one last point: think about possible effects in other services

any feedback on this?

one last point: think about possible effects in other services

any feedback on this?

For me, the only possible effects that there could be is with the subscription service

For me, the only possible effects that there could be is with the subscription service

Ok, so check it :)

Also, serializeCoreProperties in Entity.kt is probably missing some tests (it was already before, but it is a good opportunity to add one or two)


System.InvalidOperationException: Could not find 'UserSecretsIdAttribute' on assembly 'System.Private.CoreLib'

Describe the bug
This bug seems to me to be very similar to #7649.  I'm using F# with Giraffe to fiddle around with a simple api project, but when I start it, I get the exception shown in the title.  Here's the full backtrace:
23:55 $ dotnet run
Unhandled exception. System.InvalidOperationException: Could not find 'UserSecretsIdAttribute' on assembly 'System.Private.CoreLib'.
Check that the project for 'System.Private.CoreLib' has set the 'UserSecretsId' build property.
If the 'UserSecretsId' property is already set then add a reference to the Microsoft.Extensions.Configuration.UserSecrets package.
   at Microsoft.Extensions.Configuration.UserSecretsConfigurationExtensions.AddUserSecrets(IConfigurationBuilder configuration, Assembly assembly, Boolean optional, Boolean reloadOnChange)
   at Microsoft.Extensions.Configuration.UserSecretsConfigurationExtensions.AddUserSecrets[T](IConfigurationBuilder configuration)
   at GinghamStreet.Shopify.IntegrationApi.App.configureServices(IServiceCollection services) in /Users/ben/proj/c9/gssext/src/GinghamStreet.Shopify.IntegrationApi/Program.fs:line 116
   at GinghamStreet.Shopify.IntegrationApi.App.main@141-1.Invoke(IServiceCollection delegateArg0) in /Users/ben/proj/c9/gssext/src/GinghamStreet.Shopify.IntegrationApi/Program.fs:line 141
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass10_0.<ConfigureServices>b__0(WebHostBuilderContext _, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at GinghamStreet.Shopify.IntegrationApi.App.main(String[] _arg1) in /Users/ben/proj/c9/gssext/src/GinghamStreet.Shopify.IntegrationApi/Program.fs:line 134

At first I just used the dotnet tooling to set up user secrets:
dotnet user-secrets init, which added the UserSecretsIdAttribute property to my .fsproj file; followed by a couple of dotnet user-secrets set "key:value" commands.  When the above error was thrown when I tried to run at this point, I tried disabling AssemblyInfo generation with GenerateUserSecretsAttribute set to false and then writing my own AssemblyInfo.fs, but that didn't change anything.
To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core: 3.0.0 with SDK 3.0.100 on macOS.
Run this code: see attached zip
See error

gssext.zip
Expected behavior
I expected to just run the dotnet user-secrets tools and have things work.
Additional context
01:23 $ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.14
 OS Platform: Darwin
 RID:         osx.10.14-x64
 Base Path:   /usr/local/share/dotnet/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  2.2.300 [/usr/local/share/dotnet/sdk]
  3.0.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview4-19216-03 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview5-19227-01 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview4-27615-11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview5-27626-15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Starting with hosting like the linked bug.

Also tagging @cartermp in case of something F# specific.


Move performance to java agent, merge javadoc into API page

Resolves #5211.
An alternative to #5522 based on the conversation here:

Move "Performance" page to "Zero-code Instrumentation -> Java -> Agent -> Performance"
Merge "Javadoc" into "Record Telemetry with API", page from "../api-components/" to "../api/".

Previews

https://deploy-preview-5590--opentelemetry.netlify.app/docs/languages/java/api/
https://deploy-preview-5590--opentelemetry.netlify.app/docs/zero-code/java/agent/performance/

/fix:htmltest-config

@jack-berg - there are broken links in this en page that need to be fixed:
docs/zero-code/java/agent/performance/index.html
  target does not exist --- docs/zero-code/java/agent/performance/index.html --> ../sdk/#sampler
  hash does not exist --- docs/zero-code/java/agent/performance/index.html --> ../getting-started/#prerequisites

@jack-berg - more broken links:
docs/zero-code/java/agent/performance/index.html
  target does not exist --- docs/zero-code/java/agent/performance/index.html --> ../sdk/#sampler
  hash does not exist --- docs/zero-code/java/agent/performance/index.html --> ../getting-started/#prerequisites
docs/collector/deployment/agent/index.html
  target does not exist --- docs/collector/deployment/agent/index.html --> /docs/languages/java/api-components/#meterprovider
docs/languages/java/intro/index.html
  target does not exist --- docs/languages/java/intro/index.html --> ../performance/

Blocking until I figure out how best to manage the broken links in non-en pages.

I've fixed all the links and believe there were'nt any links in non-en pages

It seems that we need one more approval from @open-telemetry/java-approvers.

It seems that we need one more approval from @open-telemetry/java-approvers.

We've got an approval from java-approver @jaydeluca. Do we need a second? In the past, one java-approver approval has been enough. Not expressing an opinion on whether we should have one or two approvals required - just clarifying my understanding. 🙂

I'm not sure what the policy is; I'll let @svrnm chime in. Also, I don't see @jaydeluca listed in @open-telemetry/java-approvers, which matches what GH reported above:

Also, I don't see @jaydeluca listed in @open-telemetry/java-approvers, which matches what GH reported above:

Ah that's right. Yeah we have a bit of a weird thing going on where we have two partially independent / partially overlapping groups of approvers in the java SIG: @open-telemetry/java-approvers and @open-telemetry/java-instrumentation-approvers. Both groups are trusted collaborators in the Java SIG, but the @open-telemetry/java-instrumentation-approvers tend to contribute more to the opentelemetry-java-instrumentation repo while the @open-telemetry/java-approvers tend to contribute more to the opentelemetry-java repo.
In my head, the set of people trusted to approve java opentelemetry.io PRs is the superset of both groups, since the docs have much less strict delineation between content related to opentelemetry-java-instrumentation and opentelemetry-java.
Some instances where an approval from a @open-telemetry/java-instrumentation-approvers has been sufficient: #5471, #5275, #4966

Thanks for the explanation @jack-berg. That works for me. Adding this to the merge queue.

In my head, the set of people trusted to approve java opentelemetry.io PRs is the superset of both groups

👍


Add etcd metrics support for microshift

/retest

/retest

Superseded by https://github.com/stolostron/multicluster-observability-operator/pull/1550


Progress bars don't respond to layout changes

I made a design with some progress bars that get wider based on the layout (the parent fills its parent, the ultimate parent is resizable). The progress bar uses the width from the design doc (rather than the width from the parent layout) to determine its size -- so as the progress bar gets resized, the filled proportion doesn't change.
I observed this using squoosh, but I think the code path is the same for non-squoosh, too.

I think this will be easier to fix in squoosh since nodes have a pointer to their parent, but in non-squoosh I don't think there's an easy way to get the parent's layout size.


vertical layout error

s_t = f(U x_t + W s_{t-1}) is not working.
However, s_{t-1} is ok.
Any one stuck this?

Seem that _ plays as Markdown rule.
I have to place _ with \_ as s_t = f(U x_t + W s\_{t-1})


Writing int[] into a file

Assume I have 10,000 int, which range from -9000 to +21000 in value.
What would be the strategy of writing the int[]  already compressed by JavaFastPFOR into a file for archive ?
Should I assume I need to convert each int into 4 bytes ?
So will an int[] array with 10,000 values will be saved as a byte[] array with the size of 40,000 ?
Any other more optimal way to save the data into a file ?

Are you asking how to serialize an array of ints to disk?
You can either use a DataOutput or a ByteBuffer.


Use styles only?

Great work, but how can Framework7 be used just for its styles? Looks like nothing really works without the javascript included.

It's complete framework and everything linked with each other. You can't use only styles i think and there is no purpose of it. If you want to use material UI, you can use MUI

Could you elaborate on 'just for its styles' please?

By just for styles I mean just use the nice iOS styling that comes with it, none of the JS

That's still not completely clear.
Why don't you want the JS?
What do you mean nothing really works without JS?

Pages won't even display. The reason for not using the js might be because maybe I want to use a different framework like React.

F7 includes the option to use a custom router

@jaredreich framework7 has alpha react and released vue versions.
Vue version: https://github.com/nolimits4web/Framework7-Vue
React version: https://github.com/bencompton/framework7-react
and nothing more. Just don't use css without js. It's mobile template, you need to make js code for handle page transitions, history and lot of more things. so js is must.

Thanks all for the help


develop: rename category while server restarts

With the option to verify the token it crashes, with the default and only doing this change call. It just did not change the category and also did not logout.
Fatal error in MSS 8.2.0 on Linux-6.2.0-10018-tuxedo-x86_64-with-glibc2.35
Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:23:14) [GCC 10.4.0]

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connection.py", line 244, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa51a59edd0>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8083): Max retries exceeded with url: /update_operation (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa51a59edd0>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/reimar/MAIN/MSS/mslib/msui/mscolab.py", line 1129, in change_category_handler
    r = requests.post(url, data=data, timeout=tuple(config_loader(dataset="MSCOLAB_timeout")))
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/reimar/mambaforge/envs/mssdev/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8083): Max retries exceeded with url: /update_operation (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa51a59edd0>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

same problem on change description


New version: ElectricalEngineering v0.4.8

Registering package: ElectricalEngineering
Repository: https://github.com/christiankral/ElectricalEngineering.jl
Created by: @christiankral
Version: v0.4.8
Commit: 1fa79442aa6b1619ad23fb352a1bc6727e2a5258
Git reference: master
Description: Julia electrical engineering package
Release notes:

Change line style and with to better distinguish plots

I can read the following error messages at the Details, stating that automerge guidelines are not met:
┌ Error: Some registries failed to update:
│     — `/tmp/jl_IdwQwG/registries/General` — registry dirty
└ @ Pkg.Registry /cache/build/default-amdci4-6/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Registry/Registry.jl:449

ERROR: LoadError: RegistryCI.AutoMerge.AutoMergeGuidelinesNotMet("The automerge guidelines were not met.")
Stacktrace:
 [1] pull_request_build(data::RegistryCI.AutoMerge.GitHubAutoMergeData; check_license::Bool)
   @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/78Rh8/src/AutoMerge/pull_requests.jl:248
 [2] pull_request_build(api::GitHub.GitHubWebAPI, pr_number::Int64, current_pr_head_commit_sha::String, registry::GitHub.Repo, registry_head::String; whoami::String, auth::GitHub.OAuth2, authorized_authors::Vector{String}, authorized_authors_special_jll_exceptions::Vector{String}, error_exit_if_automerge_not_applicable::Bool, master_branch::String, master_branch_is_default_branch::Bool, suggest_onepointzero::Bool, registry_deps::Vector{String}, check_license::Bool, public_registries::Vector{String}, read_only::Bool, environment_variables_to_pass::Vector{String})
   @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/78Rh8/src/AutoMerge/pull_requests.jl:166
 [3] run(; env::Base.EnvDict, cicfg::RegistryCI.AutoMerge.GitHubActions, merge_new_packages::Bool, merge_new_versions::Bool, new_package_waiting_period::Day, new_jll_package_waiting_period::Minute, new_version_waiting_period::Minute, new_jll_version_waiting_period::Minute, registry::String, tagbot_enabled::Bool, authorized_authors::Vector{String}, authorized_authors_special_jll_exceptions::Vector{String}, additional_statuses::Vector{String}, additional_check_runs::Vector{String}, error_exit_if_automerge_not_applicable::Bool, master_branch::String, master_branch_is_default_branch::Bool, suggest_onepointzero::Bool, registry_deps::Vector{String}, api_url::String, check_license::Bool, public_registries::Vector{String}, read_only::Bool, environment_variables_to_pass::Vector{String})
   @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/78Rh8/src/AutoMerge/public.jl:141
 [4] top-level scope
   @ ~/work/_temp/ae1191ca-111f-4152-a8f4-697904ee207b:4
in expression starting at /home/runner/work/_temp/ae1191ca-111f-4152-a8f4-697904ee207b:4
Error: Process completed with exit code 1.

From these messages I can, however, not deduce what exactly is wrong and what I need to do.


various replication improvements:

Scope & Purpose
Various replication improvements

better debuggability (more log details)

shorter minimum wait delay in active failover

fixed too early pruning of WAL files on leaders

[ ] Bug-Fix for devel-branch (i.e. no need for backports?)

[x] Bug-Fix for a released version (did you remember to port this to all relevant release branches?)

[x] The behavior change can be verified via automatic tests

Testing & Verification
This change is already covered by existing tests, such as replication tests.
https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/5625/

https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/5631/

Tests blue


doctor-data task 4 "get_older_bob" is confusing

I think in this case either the test case is to simple or the function name is misleading.
The test only checks if the function returns the string "Bob".
Out of two Vessels it seems to return the name of the one called "Bob".
The function name suggests that in the case of two Bob Vessels it would return the older one.
As it only returns the name there is no way to check though.
Also what happens when none of the inputs is a Vessel called "Bob"?
With all accessible information the most sensible solution to the task here might be to ignore the inputs and always return "Bob".
I think this function needs more test cases and/or should be ranamed.

I could pick this up.
The only solution I see is that the heaven::get_older_bob() function is renamed to heaven::get_older_vessel(). Both in the test file and in the instructions of the exercise. The function compares the age of 2 objects of type Vessel. Apart from in the name of this function, "bob" only appears in the test file. Doing this change would invalidate previous solutions to this exercise. I see no way around that.
With this exercise there is also this issue. I could do that as well or should that be done in a separate PR?

@heijp06
Thanks for the initiative. You are very welcome to combine the issues into a single PR. Make sure to correct the errors in all the places, where the information might be doubled.
For code it can be examples in the instructions.md, help.md, the example files and the tests.
I like the change to older_vessel. We should add another test case, so it is clearer for the users. I might have been too close to the source material, where the vessels are all bob and the original vessel, and thus oldest is also called bob.


Add robots.txt default file for non-production environments

To avoid bad SEO behaviors, we should enforce the use of a default robots.txt file for non-production environments, when we deploy static web sites.

We should instead use a noindex rule.


co.handleCorrectCaptcha is not a function

Hello guys.  I'm having an issue that is preventing me from being able to update the UI in the page after the user check that they are not a robot...
The UI updates fine from the ts file to the html file before you check the box but not after.
The console shows the following error:
ng:///AppModule/ForgotPasswordComponent.ngfactory.js:255 ERROR TypeError: co.handleCorrectCaptcha is not a function
(Note: I'm running Angular4 and I'm using andyhu92's solution from issue #54 )

The issue was cleared up by @andyhu92.
(...you know how sometimes you're just looking a little too hard at something...)
You have to define the missing function... yourHandleResponseFunction
<re-captcha site_key="your site key" (captchaResponse)="yourHandleResponseFunction($event)" #recaptcha>

@bavanyo Are you still having problem with this?

Please reopen this if the problem persists.


"premature close" error when calling destroy on source stream

I am using node js 8.* and it has new method destroy for Readable streams.
https://nodejs.org/docs/latest-v8.x/api/stream.html#stream_readable_destroy_error
The following is generating premature close error coming from end-of-stream module.
var pump = require('pump')
var fs = require('fs')

var source = fs.createReadStream('/dev/random')
var dest = fs.createWriteStream('/dev/null')

pump(source, dest, function(err) {
  console.log('pipe finished', err)
})

setTimeout(function() {
  source.destroy();
}, 1000)

Any ideas?

see also: https://github.com/mafintosh/end-of-stream/issues/14

@zxqfox Looked into the issue you referenced above. Noticed that it was for Writable Stream.
What I am noticing is that when calling destroy() on a Readable Stream, the _readableState.ended field is never set and this is causing end-of-stream to raise premature close error. Also noticed that _readableState.destroyed field is set to true.
Still trying to figure out why _readableState.ended is never set after calling destroy() on Readable stream. Is it right for end-of-stream to check _readableState.destroyed field?

Found that the fs Readable stream calls close in _destroy and the _readableState.ended is never set in that path.
https://github.com/nodejs/node/blob/v8.9.3/lib/fs.js#L2057


Signin failing for MacCatalyst target

Describe the bug
Built my app on MacCatalyst target but AWS sign in fails with error message
[Amplify] AWSMobileClient Event listener - signedIn
[Amplify] AWSMobileClient Event listener - signedOutUserPoolsTokenInvalid

Same code, if I build for iOS target, it works.
To Reproduce
Expected behavior
Sign In should succeed
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):

Amplify Framework Version: 1.5.0
Amplify Categories:

[ ] Analytics
[ ] API
[x ] Auth
[ ] DataStore
[ ] Predictions
[ ] Storage

Dependency Manager: [e.g. SwiftPM, Cocoapods] Cocoapods
Swift Version: [e.g. 5.0] 5.0
CLI Version: [e.g. 4.41.2, Run amplify version]
Xcode Version: [e.g. 12.4 (12D4e), Run xcodebuild -version] 12.4
Include any relevant log output under ~/.amplify/logs/amplify-cli-<issue-date>.log

**Is this a regression (i.e. was this working before a version upgrade?)
If applicable provide the versions used before and after the upgrade.
Device Information (please complete the following information):
Mac OS BugSur 11.4
Additional context

i think this is duplicate of macOS support feature request: https://github.com/aws-amplify/amplify-ios/issues/1124 closing to consolidate feedback over in that issue, please use that one to +1


Add method to get the current number of states in the automaton

Similarly to Nfa::max_state(), we need a method to get the current number of states in initial states, final states, and in delta. Therefore, we should add a method Nfa::states_number() which would find max state (call Nfa::max_state()) and add one to include the state 0. The method should look like the following:
    size_t states_number() const
    {
        return max_state() + 1;
    }

This function should be used everywhere instead of Nfa::Delta::post_size() when we are getting the current number of states in the whole automaton. As of now, Nfa::Delta::post_size() might not give a correct result.

I agree but Nfa::states_number() would be equivalent to Nfa::Delta::post_size() only when delta[Nfa::max_state()] is called before Nfa::Delta::post_size() it. Otherwise, delta.post does not need to be resized to Nfa::max_state().

I agree with David. Currently a user not familiar with the internal structure of our NFA representation has no chance to get the number of states.

I agree with David. Currently a user not familiar with the internal structure of our NFA representation has no chance to get the number of states.

Not only would the user who is not familiar with the internal structure be confused, there is no correct way to get the current number of states in the whole automaton at all. Unless you call Nfa::max_state() + 1 at all times. Nfa::Delta::post_size() will be correct in most of the cases, but not all of them.


status id & username

#download with username and status id
downloader.download(tweet.url, custom = tweet.filename)

based and redpilled


AttributeError: module 's3prl.downstream' has no attribute 'experts'

When I tried to run run_downstream.py to start a downstream task, it reported that "module 's3prl.downstream' has no attribute 'experts'" at line 48.

I installed s3prl by pip, but it seems something missed in the s3prl.
What might be the problem?

Hi, did you install by pip install -e ./ for pip install s3prl?
The later won't work since our PyPi package is out-of-date.

OK，thanks a lot


How to import token from .env file in repl.it

How do i import the token from .env file into the config.ini file

Hi there!
We don't support repl.it as a host so we are unable to provide help for it. It might be worth googling the information or using a different host that has a non-volatile filesystem.

Nonstandard hosts such as Heroku, Glitch and Repl.it are not supported, due to their design, the bot's data resets every time the app is restarted, and there are extra installation steps. However you might be able to run this bot on these platforms, However support will not be offered if you run into problems regarding to nonstandard platform specific issues.
Message Copied From Modmail Discord Server!

Just use repl.it's Secrets function.  The name for the token value would be MM_TOKEN.


Can’t install Maester

I have followed the instructions to install pester and Maester. When I try running Instal-MaesterTests, it says command is not recognized.

Have you tried running it in Windows Sandbox to determine whether it's a system or software issue? Mine didn't work on my desktop until I tested in sandbox and found something wrong with my preexisting PowerShell modules

Thank you, that worked!
I tried on another box and it worked. It might be my OneDrive that is messing with it.

.


Java to Azure RedHat OpenShift migration strategy

Could you please add a section "Java to Azure RedHat OpenShift migration strategy" ?
That could include SpringBoot Apps. or Java/Tomcat  Java/WildFly App to ARO migration.

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

ID: 85f7f8f0-3ecb-c09c-8545-b0d98e5396df
Version Independent ID: fc186d62-3f1f-c8a2-2a27-8f13a6dcd817
Content: Migrate Java applications to Azure
Content Source: articles/java/migration/migration-overview.md
Service: azure-java
GitHub Login: @yevster
Microsoft Alias: yebronsh

@selvasingh @bmitchell287 for visibility


Fetch mdBook in new location

The mdBook project was moved to the rust-lang organization, out of the
nursery organization.
https://github.com/rust-lang/mdBook/issues/1080
https://github.com/rust-lang/mdBook/pull/1083
https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-034

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Eh2406 (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

FYI would conflict with https://github.com/rust-lang/cargo/pull/8083 if merged. Will rebase as appropriate.

Merged into #8083.


Migrate to Redux Toolkit part 4

Description

Focuses on moving away from typesafe-actions and migrating more reducer functions to RTK format using Immer.
Technically a breaking change because of typesafe-actions (planned) removal but no functionality is affected.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[x] Code quality improvements

How to test

Everything should still work.
Checklist

[x] I have tested this code
[ ] I have updated the documentation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

38 of 49 (77.55%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 38.491%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/workspace/WorkspaceReducer.ts
22
26
84.62%

src/features/stories/StoriesReducer.ts
9
16
56.25%

Totals

Change from base Build<PHONE_NUMBER>:
0.03%

Covered Lines:
5697

Relevant Lines:
13851

💛  - Coveralls