No module named 'torch._six'

torch has not attribute _six
https://github.com/pytorch/pytorch/pull/94709
Please check line 38 in file timeseries.py
        if isinstance(root, torch._six.string_classes):             root = os.path.expanduser(root)

Please provide compatible torch and python version

Hi @mohanrajroboticist, sorry for not getting back to you earlier. It seems like my notifications settings were properly configured.
With PyTorch 2.0, the _six module was finally retired. As the unicode type, which was the origin of having to check for multiple types when looking for a string, has been retired since Python 3.8, a replacing this call with str is sufficient for modern Python.
I have recently re-started development on this library and have already addressed this issue in the latest patch release (0.1.2).
If you should still be facing issues after the update, please do not hesitate to come back to me.  Now I will receive the notifications, I promise :sweat_smile:


e2e issue: ps:restart showing apps as "Started" rather than "Up"

refs deis/charts#310
I think this is related to the earlier issues I filed, both #897 and #898:
$ deis auth:register http://deis.k8s.local --username=test-7826 --password=asdf1234<EMAIL_ADDRESS>Registered test-7826
Logged in as test-7826
$ deis apps:create test-21811741 --no-remote
Creating Application... done, created test-21811741
If you want to add a git remote for this app later, use `deis git:remote -a test-21811741`
$ deis builds:create --app=test-21811741 deis/example-dockerfile-http
Creating build... done
$ deis ps:scale cmd=3 --app=test-21811741
Scaling processes... but first, coffee!
done in 154s
=== test-21811741 Processes
--- cmd:
test-21811741-v2-cmd-2sfxb Started (v2)
test-21811741-v2-cmd-t2hqj Started (v2)
test-21811741-v2-cmd-4ivu5 up (v2)
$ deis ps:restart web --app=test-21811741
Restarting processes... but first, coffee!
Could not find any processes to restart
$ deis ps:list --app=test-21811741
=== test-21811741 Processes
--- cmd:
test-21811741-v2-cmd-2sfxb Started (v2)
test-21811741-v2-cmd-t2hqj Started (v2)
test-21811741-v2-cmd-4ivu5 up (v2)
$ deis apps:destroy --app=test-21811741 --confirm=test-21811741
Destroying test-21811741...
done in 3s
$ deis auth:cancel --username=test-7826 --password=asdf1234 --yes
Please log in again in order to cancel this account
Logged in as test-7826
Account cancelled

• Failure [323.163 seconds]
deis ps
/go/src/github.com/deis/workflow-e2e/tests/ps_test.go:177
  with an existing user
  /go/src/github.com/deis/workflow-e2e/tests/ps_test.go:175
    who owns an existing app that has already been deployed
    /go/src/github.com/deis/workflow-e2e/tests/ps_test.go:173
      that user can restart that app's processes
      /go/src/github.com/deis/workflow-e2e/vendor/github.com/onsi/ginkgo/extensions/table/table.go:96
        restarts all of 3 by wrong type [It]
        /go/src/github.com/deis/workflow-e2e/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go:46

        Expected
            <int>: 1
        to equal
            <int>: 3

        /go/src/github.com/deis/workflow-e2e/tests/ps_test.go:150

Notice that only one container is up at this time, while two are still in the "Starting" state. deis ps:restart should wait until all containers are in the "Up" state.

Something that sticks out from this one:

done in 154s

The applications probably failed their healthchecks. On a cluster without the registry-proxy, the app came up in 10 seconds.
><> deis create foo --no-remote
Creating Application... done, created foo
If you want to add a git remote for this app later, use `deis git:remote -a foo`
><> deis pull -a foo deis/example-dockerfile-http
Creating build... done
><> deis scale cmd=3 -a foo
Scaling processes... but first, coffee!
done in 10s
=== foo Processes
--- cmd:
foo-v2-cmd-jyl6g up (v2)
foo-v2-cmd-y0eu8 up (v2)
foo-v2-cmd-hsygp up (v2)

Partially I feel like this is due to e2e overloading my local cluster, however I should have a decent amount of RAM allocated for the minion.
Current setup:
KUBE_ENABLE_INSECURE_REGISTRY=true
KUBERNETES_MINION_MEMORY=8192
KUBERNETES_PROVIDER=vagrant
KUBERNETES_NODE_MEMORY=8192
KUBERNETES_MASTER_MEMORY=4096

top on the host seems to agree with me that there is significant CPU load on the worker node:
Tasks: 190 total,   1 running, 189 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.7 us,  3.2 sy,  0.0 ni, 92.7 id,  1.5 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  32956952 total, 18154920 used, 14802032 free,   200532 buffers
KiB Swap:        0 total,        0 used,        0 free.  3467908 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
15024 bacongo+  20   0 9802.2m 144096  70636 S 257.1  0.4  37:38.77 VBoxHeadless
12642 bacongo+  20   0 5759960 120624  63872 S  13.2  0.4  13:34.17 VBoxHeadless
    1 root      20   0  176288   5184   3088 S   0.0  0.0   0:00.48 systemd

Do you run any tests in parallel?

Yes, I'm just running the default e2e chart which spawns 15 ginkgo nodes. I'm just shocked that my computer gets overloaded while our test infrastructure doesn't break a sweat. I've got a fairly modern setup, running a quad-core Intel i7-4790K at 4.00GHz. I'll see if I can tweak the CPU settings for the worker nodes.
In any case, this isn't really an issue that we can address in the controller since it's a result of a overloaded cluster. Rather this is either a builder or an e2e tuning issue.


ino-tab-bar: configure autofocus on activate

Feature Request
In some cases it is necessary to control the autofocus mechanism of the tab bar, e.g. to keep the focus on the nav-drawer element.
Description of the proposed solution
Provide the interface of MDCTabBar focusOnActivate for ino-tab-bar.
https://material.io/develop/web/supporting/tab-bar
Additional context
If the ino-tab-bar is used in comparision to the nav-drawer the focus is immediatly set to the tab-bar after navigation. In order prevent a11y issues the focus shift should not be forced by component default.

this seems to be related to #196

I think we should leave both of them open because they are two different issues, but they affect the same functionality. In my opinion, they should be addressed in two separate pull requests so that our changelog looks like this:

fix(...): fix autofocus on mount
feat(...): add autofocus property


Separate usecase information from scripts

This PR separates 3 functionalities of preprocessing that have been in a shared module before:

setup defaults according to model structure
parametrize scalars
create profiles

Secondly, it introduces a general function for updating the scalars which calls the respective functions given a dictionary with information on which components to include. This is parallel to the process of creating profiles, where such a single function for all components already exists.
Thirdly, the filtering of the scalars.csv, which was done "manually" in each script and should be done in a general function. There is candidate in cb7a083 which has to be tested on all usecases still.
The aim of this is to finally get rid of the usecase specific scripts and finally just have ~ 3 scripts that are called with different inputs.
Open TODO:

[ ] Review
[x] Test for all use cases
[x] Collect usecase specifics in one file per usecase
[ ] Merge #134 into dev and dev into this branch
[x] Reduce number of scripts to ~3

Thanks for your review. Very helpful!

I am not sure if yaml files are a good choice to define the use cases (or scenarios respectively). Since the FlexMex format (Scalars.csv) brought up problems from time to time (filtering needed etc.) we could run into switching back to script files again when dealing with experiment 2. I see a little chance that Scalars.csv format will change again and differ from what our framework is now adapted to. A dedicated script file per use case would allow exceptions/adaptations without touching the preprocessing module. Besides, I would stay with script files also if we use classes to define the use cases (#97). Instantiating use cases in the OOP version does not fit well with the yaml file approach in my view.

I had the same thought originally. Still, if part 2 demands another function because of a new data structure, we can introduce it and use a different script for this part. We will see shortly! At least, there is no need for each use case having its own script - a lot of duplication.

Apart from that, let's consider:
* Calling the yaml files by its full name (`FlexMex1_2a`) to differentiate to experiment 2 files that could resist in the same directory.

The upcoming scenarios for part 2 will have names like 1a_PowSyst_CapFix_EE40, 1b_PowSyst_CapFix_EE70. We can either prepend 'FlexMex2' to those or create a separate directory :)

* Is there a reason why you used 'scenario' instead of 'use case'? We should make this more consistent already here or afterwards (see #93)

I agree that we should aim for consistency and would try to increase it already in this PR for the parts that are touched here. I felt that scenario would be a more commonly understood general term, whereas use case was the name introduced in the project to describe stripped-down non-realistic scenarios. The model runs of part 2 are called scenarios.

* Could we separate the preprocessing module without losing the module itself → move the sub-modules to a subdirectory 'preprocessing'? Besides, `parametrization_sequences` will collapse to 2 functions (see in-code comments). Is the separation still needed then? Preprocessing would comprise 7 functions. It is only update functions that blow things up. Since they belong to the components definitions I would rather extract those.

Sure, we could put them in a common directory. Or prepend 'preprocessing_'. Or any other way of naming it. About the second bit, you are right, so we could go with one module for both scalars and sequences.

Thanks for your review. Very helpful!

I am not sure if yaml files are a good choice to define the use cases (or scenarios respectively). Since the FlexMex format (Scalars.csv) brought up problems from time to time (filtering needed etc.) we could run into switching back to script files again when dealing with experiment 2. I see a little chance that Scalars.csv format will change again and differ from what our framework is now adapted to. A dedicated script file per use case would allow exceptions/adaptations without touching the preprocessing module. Besides, I would stay with script files also if we use classes to define the use cases (#97). Instantiating use cases in the OOP version does not fit well with the yaml file approach in my view.

I had the same thought originally. Still, if part 2 demands another function because of a new data structure, we can introduce it and use a different script for this part. We will see shortly! At least, there is no need for each use case having its own script - a lot of duplication.

Apart from that, let's consider:
* Calling the yaml files by its full name (`FlexMex1_2a`) to differentiate to experiment 2 files that could resist in the same directory.

The upcoming scenarios for part 2 will have names like 1a_PowSyst_CapFix_EE40, 1b_PowSyst_CapFix_EE70. We can either prepend 'FlexMex2' to those or create a separate directory :)

* Is there a reason why you used 'scenario' instead of 'use case'? We should make this more consistent already here or afterwards (see #93)

I agree that we should aim for consistency and would try to increase it already in this PR for the parts that are touched here. I felt that scenario would be a more commonly understood general term, whereas use case was the name introduced in the project to describe stripped-down non-realistic scenarios. The model runs of part 2 are called scenarios.

* Could we separate the preprocessing module without losing the module itself → move the sub-modules to a subdirectory 'preprocessing'? Besides, `parametrization_sequences` will collapse to 2 functions (see in-code comments). Is the separation still needed then? Preprocessing would comprise 7 functions. It is only update functions that blow things up. Since they belong to the components definitions I would rather extract those.

Sure, we could put them in a common directory. Or prepend 'preprocessing_'. Or any other way of naming it. About the second bit, you are right, so we could go with one module for both scalars and sequences.

Maybe we should add docs here already.

Maybe we should add docs here already.

I reviewed again and I think we should revert 5368d5c (neither move it to another branch as discussed) because separation is not clear yet. I think there should be more steps simplifying postprocessing before separating it. Otherwise a now separated module gets even more difficult to read.
Example: get_fuel_cost() and get_emission_cost() reside in oemoflex.postprocessing_flexmex whereas get_varom_cost() and get_carrier_cost() reside in oemoflex.postprocessing. For me, the only difference is that for get_fuel_cost() and get_emission_cost() preprocessing values need to be read and applied again. The other ones work on data already given within postprocessing. But neither are not FlexMex-specific.
Most of the preprocessing functions work the same way. They unfortunately comprise both module functionality and FlexMex-specific functionality. One step in that direction could be to switch from parameter-oriented to a component-oriented processing (#60) and separate the actual data manipulating operations from the logic (as already done for the update functions - but quite difficult for postprocessing at that state in my opinion).

I reviewed again and I think we should revert 5368d5c (neither move it to another branch as discussed) because separation is not clear yet. I think there should be more steps simplifying postprocessing before separating it. Otherwise a now separated module gets even more difficult to read.
Example: get_fuel_cost() and get_emission_cost() reside in oemoflex.postprocessing_flexmex whereas get_varom_cost() and get_carrier_cost() reside in oemoflex.postprocessing. For me, the only difference is that for get_fuel_cost() and get_emission_cost() preprocessing values need to be read and applied again. The other ones work on data already given within postprocessing. But neither are not FlexMex-specific.
Most of the preprocessing functions work the same way. They unfortunately comprise both module functionality and FlexMex-specific functionality. One step in that direction could be to switch from parameter-oriented to a component-oriented processing (#60) and separate the actual data manipulating operations from the logic (as already done for the update functions - but quite difficult for postprocessing at that state in my opinion).

I reviewed again and I think we should revert 5368d5c

I agree. This is a task of its own and should be done in a separate PR.

I reviewed again and I think we should revert 5368d5c

I agree. This is a task of its own and should be done in a separate PR.


broken with nanoc 4.3.8

First, Nanoc::Extra::Pruner got renamed to Nanoc::Pruner, which I've addressed here: https://github.com/whitequark/guard-nanoc/commit/3148c9c68934fbee2859aa801158c31d8e075f94.
But then it still crashes:
Message:

NoMethodError: undefined method `[]' for #<Nanoc::Int::Site:0x0056018373b240>

Compilation stack:

  (empty)

Stack trace:

  0. /var/lib/gems/2.3.0/gems/nanoc-4.3.8/lib/nanoc/base/services/pruner.rb:29:in `run'
  1. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:83:in `prune'
  2. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:65:in `block in recompile'
  3. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:62:in `chdir'
  4. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:62:in `recompile'
  5. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:54:in `block in recompile_in_subprocess'
  6. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:54:in `fork'
  7. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:54:in `recompile_in_subprocess'
  8. /home/whitequark/.bundle/ruby/2.3.0/guard-nanoc-3148c9c68934/lib/guard/nanoc.rb:19:in `start'
  9. /home/whitequark/.gem/ruby/2.3.0/gems/guard-2.14.0/lib/guard/runner.rb:82:in `block in _supervise'
  ... 30 more lines omitted. See full crash log for details.

I don't have time right now to figure out why.

Oh, strange… the refactoring inside Nanoc (creating Nanoc::Pruner) was not intended to be a breaking one. I’ll release 4.3.9 which adds Nanoc::Extra::Pruner as an alias.

Nanoc::Extra::Pruner alias is added in https://github.com/nanoc/nanoc/commit/14f662e9f1a58c3d49195c16511146a6289a8a1f.

What about the other bug?

Working on it!

@ddfreyne Looks like the culprit is this commit, which broke the API contract of Pruner: https://github.com/nanoc/nanoc/commit/86291cf7f27622916582e4aaace738bf9ef2b19f#diff-e4b217529af19acd7c22d317b1731556R186. So maybe it wasn't a good idea to expose it under Extras::Pruner after all.

Yep, just figured that out. The good news is that Pruner is part of a private api (# @api private), and that the compiler now takes care of pruning (which makes much more sense). The fix for guard-nanoc (which I’m working on right now) is to not prune explicitly.

Fixed (along with some other issues) in the newly released guard-nanoc 2.1.1.

Thanks!


Update pattern diagrams

Purpose
Pattern diagram update

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Migration of Public API in support of sigstore-go migration

Migration of Public API in support of sigstore-go migration
As we work toward support of the TrustedRoot in the cosign verifier, I would like to take a moment to consider our plans for the cosign public API. Beginning with verification, there are several functions that take a CheckOpts struct as an argument. This struct is used to configure the verification process for a series of functions:

func VerifyBlobAttestation(ctx context.Context, att oci.Signature, h v1.Hash, co *CheckOpts) (bool, error)
func VerifyBlobSignature(ctx context.Context, sig oci.Signature, co *CheckOpts) (bundleVerified bool, err error)
func VerifyImageAttestation(ctx context.Context, atts oci.Signatures, h v1.Hash, co *CheckOpts) (checkedAttestations []oci.Signature, bundleVerified bool, err error)
func VerifyImageAttestations(ctx context.Context, signedImgRef name.Reference, co *CheckOpts) (checkedAttestations []oci.Signature, bundleVerified bool, err error)
func VerifyImageSignature(ctx context.Context, sig oci.Signature, h v1.Hash, co *CheckOpts) (bundleVerified bool, err error)
func VerifyImageSignatures(ctx context.Context, signedImgRef name.Reference, co *CheckOpts) (checkedSignatures []oci.Signature, bundleVerified bool, err error)
func VerifyLocalImageAttestations(ctx context.Context, path string, co *CheckOpts) (checkedAttestations []oci.Signature, bundleVerified bool, err error)
func VerifyLocalImageSignatures(ctx context.Context, path string, co *CheckOpts) (checkedSignatures []oci.Signature, bundleVerified bool, err error)
func VerifyRFC3161Timestamp(sig oci.Signature, co *CheckOpts) (*timestamp.Timestamp, error)

CheckOpts is largely replaced by a few data structures in sigstore-go:

TrustedMaterial contains the trusted root (CA certs, TSA certs, and transparency log keys), as well as a method of providing a custom public key verifier
CertificateIdentities contains the set of identities that a certificate must match in order to be considered valid
VerifierOptions contains a set of options that can be used to configure the verification process, such as online verification and policy options like number of required TSA signatures

There are a few paths we can take with the cosign API:

We can deprecate all the existing API functions and the use of CheckOpts altogether, requiring users to migrate to sigstore-go for general verification, and we would offer only a handful of container image verification utilities in cosign's public API. This could be very disruptful for existing users of cosign's public API, but ease development on cosign.
We can continue supporting cosign's public API as is, and add new functions that use the new sigstore-go types. This would be less disruptive to existing users, but would result in a more complex API surface.
We can deprecate most of the fields within CheckOpts, replacing them with equivalent sigstore-go types. This would be less disruptive to existing users, giving them a clear migration path, but may result in more complexity cosign's development. In this option, we would support both verifiers, and only use the deprecated fields if a TrustedMaterial is not provided. After a deprecation period, we can delete the deprecated fields and all associated verification code paths. This option would ensure API continuity for existing users.

In option 3, I would propose we modify CheckOpts like so:

Field
Strategy

RegistryClientOpts
Keep

Annotations
Keep

ClaimVerifier
Keep

RekorClient
Deprecate, use TrustedMaterial

RekorPubKeys
Deprecate, use TrustedMaterial

SigVerifier
Keep?

PKOpts
Keep?

RootCerts
Deprecate, use TrustedMaterial

IntermediateCerts
Deprecate, use TrustedMaterial

CertGithubWorkflowTrigger
Deprecate, use CertificateIdentities

CertGithubWorkflowSha
Deprecate, use CertificateIdentities

CertGithubWorkflowName
Deprecate, use CertificateIdentities

CertGithubWorkflowRepository
Deprecate, use CertificateIdentities

CertGithubWorkflowRef
Deprecate, use CertificateIdentities

IgnoreSCT
Deprecate, use VerifierOptions

SCT
Deprecate, stop supporting detached SCTs

CTLogPubKeys
Deprecate, use TrustedMaterial

SignatureRef
Deprecate, get from Bundle

PayloadRef
Deprecate, get from Bundle

Identities
Deprecate, use CertificateIdentities

Offline
Deprecate, use VerifierOptions

TSACertificate
Deprecate, use TrustedMaterial

TSARootCertificates
Deprecate, use TrustedMaterial

TSAIntermediateCertificates
Deprecate, use TrustedMaterial

IgnoreTlog
Deprecate, use VerifierOptions

MaxWorkers
Currently unsupported by sigstore-go

ExperimentalOCI11
Deprecate, replace with Cosign Bundle Spec

TrustedMaterial
New field, root.TrustedMaterial

CertificateIdentities
New field, verify.CertificateIdentities

VerifierOptions
New field, []verify.VerifierOption

Also note that several existing API functions receive a oci.Signature argument. We could do a similar thing to this struct, adding a field for the SigstoreBundle and deprecating other fields.
I have been somewhat in favor of option 3: migration of CheckOpts and continuity of API surface, however, I can see how this would complicate development on cosign, and outside of container image verification, it would be good to encourage users to switch to sigstore-go, so perhaps option 1 is preferable. I don't have a good sense of how much work this would put on existing users. I will say that Sigstore Policy Controller is somewhat tightly coupled with the CheckOpts and RegistryClientOpts structs. I would love to get feedback from the greater cosign community on which option makes the most sense.

As a small follow-on, I'd like to demonstrate how a proposed additional API surface might look with one example. If we deprecate the CheckOpts field, then the function to verify an image attestation would look like this:
old version:
func VerifyImageAttestation(ctx context.Context, atts oci.Signatures, h v1.Hash, co *CheckOpts) (checkedAttestations []oci.Signature, bundleVerified bool, err error)

new version:
func VerifyImageAttestationBundle(ctx context.Context, atts oci.Signatures, h v1.Hash, trustedMaterial *root.TrustedMaterial, certificateIdentities verify.CertificateIdentities, opts []verify.VerifierOption, registryClientOpts []ociremote.Option, annotations map[string]interface{}) (checkedAttestations []oci.Signature, bundleVerified bool, err error)

I dislike long function signatures especially in public APIs, so I would probably want to encapsulate image verification options, much like CheckOpts currently does. Perhaps an ImageVerificationOptions struct could be created for this.


Building a tree of bodies

I'm trying to procedurally generate a tree of bodies that are each fixed to their parent with a fixed joint, but World.step is panicking with Index out of bounds.
In this example program, I'm using add_multibody_link to build a small binary tree with 7 nodes. Could anyone please point me in the right direction?
extern crate nalgebra;
extern crate ncollide3d;
extern crate nphysics3d;

use nalgebra::{zero, Isometry3, Vector3};
use ncollide3d::shape::*;
use nphysics3d::joint::*;
use nphysics3d::object::*;
use nphysics3d::volumetric::*;
use nphysics3d::world::World;

type N = f64;

fn new_shape<J: Joint<N>>(world: &mut World<N>, joint: J, parent: BodyHandle) -> BodyHandle {
    let shape = ShapeHandle::new(Cuboid::new(Vector3::new(1.0, 1.0, 1.0)));
    world.add_multibody_link(
        parent,
        joint,
        zero(),
        zero(),
        shape.inertia(1.0),
        shape.center_of_mass(),
    )
}
fn main() {
    let mut world: World<N> = World::new();

    let root = new_shape(
        &mut world,
        FreeJoint::new(Isometry3::identity()),
        BodyHandle::ground(),
    );

    // two children under root
    let a = new_shape(&mut world, FixedJoint::new(Isometry3::identity()), root);
    let b = new_shape(&mut world, FixedJoint::new(Isometry3::identity()), root);

    // two children each to a and b
    new_shape(&mut world, FixedJoint::new(Isometry3::identity()), a);
    new_shape(&mut world, FixedJoint::new(Isometry3::identity()), a);

    new_shape(&mut world, FixedJoint::new(Isometry3::identity()), b);
    new_shape(&mut world, FixedJoint::new(Isometry3::identity()), b);

    world.step(); // panics
}

thread 'main' panicked at 'Index out of bounds.', /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/utils/index_mut2.rs:24:9
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:207
   3: std::panicking::default_hook
             at libstd/panicking.rs:223
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:402
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:365
   6: <alloc::vec::Vec<T> as nphysics3d::utils::index_mut2::IndexMut2<usize>>::index_mut2
             at ./<panic macros>:3
   7: nphysics3d::utils::index_mut2::IndexMut2::index_mut_const
             at /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/utils/index_mut2.rs:15
   8: <nphysics3d::object::multibody::Multibody<N>>::update_inertias
             at /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/object/multibody.rs:706
   9: <nphysics3d::object::multibody::Multibody<N>>::update_dynamics
             at /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/object/multibody.rs:518
  10: <nphysics3d::object::body_set::BodySet<N>>::update_dynamics
             at /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/object/body_set.rs:132
  11: <nphysics3d::world::world::World<N>>::step
             at /home/dom/.cargo/registry/src/github.com-1ecc6299db9ec823/nphysics3d-0.8.1/src/world/world.rs:215
  12: testy::main
             at src/main.rs:46
  13: std::rt::lang_start::{{closure}}
             at /checkout/src/libstd/rt.rs:74
  14: std::panicking::try::do_call
             at libstd/rt.rs:59
             at libstd/panicking.rs:306
  15: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
  16: std::rt::lang_start_internal
             at libstd/panicking.rs:285
             at libstd/panic.rs:361
             at libstd/rt.rs:58
  17: std::rt::lang_start
             at /checkout/src/libstd/rt.rs:74
  18: main
  19: __libc_start_main
  20: _start

That’s a bug. I will try to fix this tomorrow evening!
By the way, asuming you add colliders as well, keep in mind that using a rigid body with a Compound shape (initialised as your tree) will result in a faster simulation than using a multibody with only fixed joints between links. But I guess that might not be possible for you since this require you to generate le full tree before adding it to the physics world.

@DomWilliams0 Fixed in v0.8.3!

Fantastic, thank you very much!


Old Documentation

This page is outdated even though it was from last month.  Also - confusing directions on adding attributes.

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

ID: 2809f192-e944-902e-db51-149939878611
Version Independent ID: 2d788b57-9c1a-3124-690f-4469bc552cee
Content: Tutorial: Azure Active Directory integration with Sage Intacct
Content Source: articles/active-directory/saas-apps/intacct-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@Caliber-IT
Thanks for your feedback! I have assigned this issue to the author who will investigate and update as appropriate.

Issue resolved.
#please-close


Request that a new minor version be published

Trying to use the enhancement I added, finding that even pointing the uses directly at the commit, I wasn't seeing the intended behavior:
    - name: Run stale_repos tool
      uses: github/stale-repos@5699b2bdeeb93744edade0d6fc9b73b1d811c0bc
      id: stale_repos
        GH_TOKEN: ${{ secrets.GH_RO_TOKEN }}
        EXEMPT_TOPICS: "keep,template"
        INACTIVE_DAYS: 365
        ACTIVITY_METHOD: "wrong"

This should have raised an exception in my calling workflow, but it kept on behaving like it did prior to the recent changes.
It looks like actions was pulling the container:
Pull down action image 'ghcr.io/github/stale_repos:v1'
  /usr/bin/docker pull ghcr.io/github/stale_repos:v1
  ...
  Digest: sha256:7944ed7c3bbf99a92f5400dfa691c3eb6bf2a5a8f72d80eb71a70d43c26128d7

Which I believe corresponds to the version released in November
Thank you for your help!

Working on it! Thanks for the reminder. :)

Released:

https://github.com/github/stale-repos/releases/tag/v1.8.0
https://github.com/github/stale-repos/pkgs/container/stale_repos


A system to determinate the order of the views stacked on the background should exists.

Fixed by adding an extension to Morph named #mirageLevel.


Can't use TelemetryTrackEvent actions

Describe the bug

I have a super simple echo bot (fresh out of the template) with an extra action to send a custom telemetry event to application insights with the input from the user, however it doesn't work. When trying the bot in the emulator I get a 500 error, and when running the project without the composer I get the following message:
`fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM35SOKSNO2T", Request id "0HM35SOKSNO2T:00000001": An unhandled exception was thrown by the application.
System.Exception: echobot-1.dialog error: Type Microsoft.TelemetryTrackEvent not registered in factory.
at Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer.LoadTypeAsync[T](Resource resource, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer.LoadType[T](Resource resource)
at Microsoft.BotFramework.Composer.Core.ComposerBot.LoadRootDialogAsync() in /Users/rafael.quesada/Projects/bot_builder_template_tests/EchoBot-1/runtime/core/ComposerBot.cs:line 69
at Microsoft.BotFramework.Composer.Core.ComposerBot..ctor(ConversationState conversationState, UserState userState, ResourceExplorer resourceExplorer, BotFrameworkClient skillClient, SkillConversationIdFactoryBase conversationIdFactory, IBotTelemetryClient telemetryClient, String rootDialog, String defaultLocale, Boolean removeRecipientMention) in /Users/rafael.quesada/Projects/bot_builder_template_tests/EchoBot-1/runtime/core/ComposerBot.cs:line 43
at Microsoft.BotFramework.Composer.WebAppTemplates.Startup.<>c__DisplayClass12_0.b__4(IServiceProvider s) in /Users/rafael.quesada/Projects/bot_builder_template_tests/EchoBot-1/runtime/azurewebapp/Startup.cs:line 187
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
at lambda_method(Closure , IServiceProvider , Object[] )
at Microsoft.AspNetCore.Mvc.Controllers.ControllerActivatorProvider.<>c__DisplayClass4_0.b__0(ControllerContext controllerContext)
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.g__CreateController|0(ControllerContext controllerContext)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)`
I haven't done any customizations to the runtime and the docs don't point to anything I might be doing wrong, am I missing something here?
I should mention that I do receive other traces in app insights, so it seems to be properly configured.
Version

1.1.1
Browser

[ ] Electron distribution
[ ] Chrome
[ ] Safari
[x] Firefox
[ ] Edge

OS

[x] macOS
[ ] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Create a new bot with the echo bot template
Add a new action in the Unknown intent trigger after the bot response with property "input" and value "=turn.activity.text"
Start the bot and try it out in the emulator, should receive an error 500

Expected behavior

When using a custom telemetry event, it should be sent to application insights and appear when querying the logs.
Screenshots

Composer:

Emulator:

@garypretty can you troubleshoot this since you drove this into Composer?

@garypretty do you have any update for this issue? Thanks.

Sorry for the delay @RafaelQuesada.
Can you confirm that when you say this was fresh out of the template, is this a bot that you created just recently? Also, have you ejected the runtime or are you running from the default runtime Composer uses?  My first thought when looking at the error message was that your runtime had been ejected and was out of date.
I am unable to confirm this right now due to a local issue, but I did work through a telemetry scenario in Composer a couple weeks ago and believe I did use this new action without any issue.
@cwhitten I don't have capacity to drive this at the moment, can you assign an engineering resource to look into this please?  They can reach out to me if they need any assistance, but should be as straightforward as adding the action to the canvas and running the bot to confirm if they can repro or not. Thanks.

Sorry! I forgot to mention this here on Friday; but I am able to reproduce this as well. I tried debugging in VS with a copy of the C# runtime, but I couldn't figure it out. I don't have much more to add than that.

Hey @garypretty
Correct, a new simple echo bot created just to test this. I did eject the runtime, but I just tried it again without ejecting it and got the same error in emulator.

Dialog

Settings

Emulator

taking into R11 and assigning @luhan2017

This is because the schema and code mismatch. In schema, the action is called "TelemetryTrackEvent", but in code it is declared as "TelemetryTrackEventAction", I will submit a PR in the sdk side to fix this issue.
You are mitigate this issue by update your dialog file. @RafaelQuesada
Click show code, and replace "$kind": "Microsoft.TelemetryTrackEvent" with  "$kind": "Microsoft.TelemetryTrackEventAction", then Restart your bot, it will work.
@cwhitten @garypretty，I will submit a PR to fix this in the sdk side.

Thanks @luhan2017, works like a charm!

Closing in lieu of https://github.com/microsoft/botbuilder-dotnet/pull/4820

I'm still getting the error in 1.3.1. Should this be reopened?


Use sheet2matrixidx for Image snapping

Currently snapping to the closest coordinate only reliably works when using the Image interface because there can be subtle floating point differences in the coordinates. Once we have an ndarray like indexing interface for gridded Datasets Image.select and Image.__getitem__ could generate integer indices and slices and apply them via this interface, bypassing any floating point issues in matching the coordinates.

Now closed, we now have efficient vectorized Image sampling, which works with all gridded interfaces.


Inconsistency when injecting Playwright Browser with mocha as test runner

What happened?
I use Playwright with mocha as test runner.
I want to run all it blocks in my spec file in the same browser instance - respective in the same page instance. We already talked about this: Injecting the browser instance into the Actor should do the trick.
But I see some inconsistency: If I do not let an Actordo something in the beforehook of my spec file, each it block will be executed in a separate page.
What did you expect to happen?
A consistent behaviour.
Furthermore, maybe we can document a bit better how and when to use Playwright browser and page.
Node.js version
20.12.2
Execution environment
MacOS, Chromim, Playwright, Mocha
How to reproduce the bug.
Checkout my branch, goto ./integration/playwright-web and run npm test.
The playwright no inittest will fail, the playwright initwill pass. But if you go into the mocharc.yml and swap positions of spec files:

'./spec/playwright-init.spec.ts'
'./spec/playwright-no-init.spec.ts'

Then both tests will pass.
Serenity/JS version
Serenity/JS 3.23.0

@jan-molak , would be happy if you could have a short look into this and give some opinion.


swift2.0 url is wrong!

Swift2.0 branch, when the request method is used to carry out the URL request, the URL is found to be changed into HTTPS by HTTP, which leads to response error.

I found that there is a bug to get image data in simulator. for example, to get this image url:http://img4.douban.com/lpic/s3863556.jpg  then throw an exception. I can see it in safari!

You are most likely running into an issue with App Transport Security (ATS) introduced in iOS 9. Here's an article that details how to workaround your issue.

Please note that we do not encourage disabling ATS in any fashion. That should always be a last resort.


Add https://github.com/yvictor/sjtop

https://github.com/yvictor/sjtop looks nice.

Thanks @cmarqu ! I'll add later on.


Fails on mixtures of tabs and spaces

If input has tabs and spaces, I would have expected the tabs to be converted to spaces (or viceversa), but instead it gets confused.

It actually has to do with the
Here is a test case
<!DOCTYPE html>

Expected nice indentation
Actual
<!DOCTYPE html>

Closing this, as I am using js-beautify directly.

Actually, it is a duplicate of https://github.com/jonschlinkert/pretty/issues/7


Added dpi parameter to visualize_transition

A very small change that makes it possible to save animations of single quit gates in a higher quality.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


HTTP ERROR 403

When I run the application npm run dev, open the localhost:5000 at edge, it return HTTP ERROR 403.How can I figure it out?

Hello @Latiest , sorry for the late response.
 It returns 403

I see. I guess it is because macOS now occupies port 5000.
Can you please try to run npx sirv public --single --dev --port 3000 and local localhost:3000 in your browser?

Ok. Is running successfully now. Thanks a lot.

Nice! Thanks for reporting this error. I changed the default port number from 5000 to 3000 in 6214bdebdc2f81045724c54c2cc7a9b0d4b0400c.


Remote control: Only channels 0-6 are available on MAVRIC

It seems that only channels 0-6 of mavric are correctly connected to the remote control.
In both remote.channels and remote.sat.channels, only channels 0-6 can be controlled with the remote control (TURNIGY 9XR Pro). The remaining channels remain at 0.
Could this be due to a bug in spektrum_satellite.c:
https://github.com/lis-epfl/MAVRIC_Library/blob/master/hal/avr32/spektrum_satellite.c#L146
or does the problem lie at the remote control side?

It seems that in spektrum_satellite.c:ISR(...) we only receive frame0 which contains channels 0-6

Double-check that your satellite and remote are bound in the proper mode:
https://github.com/lis-epfl/MAVRIC/wiki/First-Steps-Binding-your-Remote

There were a note somewhere, in previous issue, that is now closed... That we should set the remote in proper mode before binding
=> change default number of channels (8 I think) to something bigger IF NEEDED and set then as 11bits mode, since 10bits mode does not support it.
Can you report and add something in the wiki, if this solved your issue ?
Thanks

It was really the channel limit on the remote. And everything is already nicely described in the wiki.
My bad!


2.1. JSON Web Tokens (JWT).md

Removed registered claims already detailed in the specification. Minor typos.

Already covered by #15


Run simple docker test per PR

Run stub test with simple call YDB per PR using docker

Hooks
def pytest_generate_tests(metafunc):
...
and
def pytest_deselected(items):
...
allow to generate test names and detect what of them are filtered.
Hook spec


[sysrst_ctrl] rename rbox to sysrst_ctrl

Signed-off-by: Eric Shiu<EMAIL_ADDRESS>

thanks eric, although you should probably delete everything merged under hw/ip/rbox also

Sure. I will remove the rbox directory and its files.

Sure. I can rebase again.

Right. I will add them.
-rw-r--r-- 1 eshiu primarygroup   503 Mar 11 18:19 sysrst_ctrl.prj.hjson
-rw-r--r-- 1 eshiu primarygroup 14198 Mar 11 18:22 sysrst_ctrl.hjson

OK Check passed, after you revise the interrupt port, I will merge this PR.

I looked at hmac.sv.
// instantiate interrupt hardware primitive
prim_intr_hw #(.Width(1)) intr_hw_hmac_done (
.clk_i,
.rst_ni,
.event_intr_i           (event_intr[0]),
.reg2hw_intr_enable_q_i (reg2hw.intr_enable.hmac_done.q),
.reg2hw_intr_test_q_i   (reg2hw.intr_test.hmac_done.q),
.reg2hw_intr_test_qe_i  (reg2hw.intr_test.hmac_done.qe),
.reg2hw_intr_state_q_i  (reg2hw.intr_state.hmac_done.q),
.hw2reg_intr_state_de_o (hw2reg.intr_state.hmac_done.de),
.hw2reg_intr_state_d_o  (hw2reg.intr_state.hmac_done.d),
.intr_o                 (intr_hmac_done_o)
hmac.hjson
interrupt_list: [
{ name: "hmac_done",
desc: "HMAC-256 completes a message with key"
}
Does it mean you want to something like this?
sysrst_ctrl.hjson
interrupt_list: [
{ name: "sysrst_ctrl_common",
desc: "combo or keyboard triggered interrupt",
}
],


support generating GraphQL client code by pointing to an AppSync API ID

Environment information
n/a

Description
Amplify Gen 2 has a command to generate GraphQL client code by pointing to a Gen 2 backend stack, or an Amplify identifier (app ID + branch).
https://docs.amplify.aws/react/reference/cli-commands/#npx-ampx-generate-graphql-client-code
npx ampx generate graphql-client-code --stack <gen2-backend-stack>

Amplify Gen 1 CLI's client codegen command accepted an API ID and region
https://docs.amplify.aws/gen1/javascript/build-a-backend/graphqlapi/client-code-generation/#javascript--typescript-graphql-api-client-helper-code
npx @aws-amplify/cli codegen add --apiId <appsync-api-id> --region <appsync-api-aws-region>

When using Amplify to interact with AWS resources, but maintaining a backend separately with CDK, it would be nice if I could use the tooling available to codegen from an existing API.
Alternatively if I have the GraphQL schema, it would be nice to generate from the schema directly.

To give some context with my use case as an example, I am building out an app on mobile and web that uses Cognito for authentication. Amplify Gen1's libraries make it simple to authenticate with Cognito and then not have to worry about all the session and token shenanigans behind the scenes. This is good because having individual developers all implementing their own session handling solutions leads to security lapses.
I then use the other clients in Amplify Gen1's libraries to call the AWS services supported by Amplify Gen1. In particular, I use Amplify Gen1's CLI to create an AppSync client from my AppSync API's schema. Because this is all done with Amplify, the auth and session handling is done behind the scenes.
However, I do not use Amplify to manage my infrastructure. Instead, that is managed via CDK directly. Thus, with Amplify Gen2, it would be appreciated if it allowed me to use the libraries and CLI without having to set up an Amplify project/stack. Especially because I do not think there are any other AWS frameworks that allow for this ease of integration with Cognito and services such as AppSync.
A different way to put it, AWS generally has the philosophy of allowing developers to choose the level of abstraction they want with AWS's services. For example, with CDK I can use different levels of constructs based on my needs (https://docs.aws.amazon.com/cdk/v2/guide/constructs.html) Even with AWS's services themselves I can choose different levels of abstraction. I can choose to spin up my own fleet of EC2 services and install Spark on them myself, or I can choose to use EMR, or going even higher level I can choose to use services such as SageMaker or Rekognition. Right now, it seems that Amplify Gen2 doesn't follow this philosophy.
Thank you for your time!

Marking as feature request to codegen a existing AppSync API.

The lack of this feature is a blocker for me right now

+1 Additionally it would be nice to simply retain the ability to provide multiple custom API endpoints in the config and switch via the apiName option. The current Gen2 AmplifyOutputs is too strict with validation, so legacy config to existing endpoints will begin to fail.


Currently, it's not possible to simultaneously screen share and share to the stage in Teams.

Type of issue
Missing information
Feedback
Please add the following note to the document:
"Currently, it's not possible to simultaneously screen share and share to the stage in Teams."
Page URL
https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage?tabs=desktop%2Capp-content%2Cshare-app-content
Content source URL
https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/apps-in-teams-meetings/build-apps-for-teams-meeting-stage.md
Author
@v-sdhakshina
Document Id
5ca1f6b3-347e-7182-0d26-d282e26f3614

@surbhigupta12 - Could you please help by adding the following note to the document:
"Currently, it's not possible to simultaneously screen share and share to the stage in Teams."


Add sensor tests configuration to scalar DB configuration file for daily verification

Added sensor tests configurations to verification-config.toml file as this configuration file is used for daily verification scalar DB test execution.
The same configurations can also be found in phantom-write-config.toml. But the verification-config.toml file was updated since we are updating tests to sensor tests and the same file is mentioned in scalar DB kelpie test documentation.
Updated modules, test_config and storage_config sections of the configuration file.

Closing this PR.
I will update the configurations file used in the script itself.


UDP make_socket failed error in QEMU

I am attempting to run a simple ROS2 publisher and subscriber on FreeBSD in QEMU.
When I have either the publisher or subscriber running and then attempt to start the other one, I get the following error message:
UDP make_socket failed for multicast port 7400, which appears to arise from the following code snippet:
https://github.com/ADLINK-IST/opensplice/blob/6c48b0ed754c270107e50dd310e44ed28e8a529f/src/services/ddsi2e/core/ddsi_udp.c#L253-L258
I then get an error message specific to cyclone dds, which incorporates ddsi_udp:
rmw_create_node: failed to create domain, error Error, which appears to come from the following code snippet:
https://github.com/ros2/rmw_cyclonedds/blob/5c6b187fa948d206c1e8cb90fd319258819a32fc/rmw_cyclonedds_cpp/src/rmw_node.cpp#L677-L680
I would be grateful for some suggestions to narrow down the possible causes of this issue, since I'm not sure whether it's related to FreeBSD, QEMU, or my cross-compile toolchain.
I have been able to run a simple multicast communication test between the host and emulated environment, and ifconfig shows MULTICAST tags for both the le0 and lo0 interfaces in the emulated environment.
I'll also note that the exact same code base compiled for Ubuntu works just fine on the host machine.

Hi Dodsonmg,
It looks like cyclonedds error, Please log the error to cyclonedds forum url is given below:
https://github.com/ros2/rmw_cyclonedds

Yes.  This was fixed by including the correct socket headers for __FreeBSD__ (effectively, the same ones already included for __APPLE__.
I’ve tried to close this issue on a number of occasions, but for some reason GitHub won’t let me.  Feel free to close it yourself.
On 22 Apr 2020, at 13:04, vivekpandey02 <notifications<EMAIL_ADDRESS>wrote:
Hi Dodsonmg,
It looks like cyclonedds error, Please log the error to cyclonedds forum url is given below:
https://github.com/ros2/rmw_cyclonedds
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/ADLINK-IST/opensplice/issues/139#issuecomment-617736951, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKO26VP34IDIWP76TYZTLODRN3MM7ANCNFSM4MGM25DQ.


show upgrade information in Stirling generator GUI when the upgrade slot is empty

I moved the formatting codes into the Java code as requested


Phone Verification Timer Issue

Step 1: Describe your environment

Android device: samsungA50
Android OS version: 9
Google Play Services version:17.0.0
Firebase/Play Services SDK version:5.0.0

Step 2: Describe the problem:
After implementing the code for phone auth, it asks to enter the number and an OTP is sent. Now when the home button is pressed while waiting for the OTP the timer stops and it remains this way even when the app is resumed
Steps to reproduce:

enter the mobile number
wait for OTP and goto home screen
return to the app and the timer is stopped rendering the user unable to resend the code if it's not received.

Observed Results:
The timer stops which is responsible for resending the OTP
Expected Results:
For the timer to resume
Relevant Code:
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setIsSmartLockEnabled(true)
.setTheme(R.style.BlackTheme)
.setAvailableProviders(Arrays.asList(
//new AuthUI.IdpConfig.GoogleBuilder().build(),
// new AuthUI.IdpConfig.FacebookBuilder().build(),
//new AuthUI.IdpConfig.TwitterBuilder().build(),
//ew AuthUI.IdpConfig.EmailBuilder().build()))
new AuthUI.IdpConfig.PhoneBuilder().build()))
//new AuthUI.IdpConfig.AnonymousBuilder().build()
                        .build(),
                RC_SIGN_IN);

3C31AB06DBE5A0F4


Want password

I need password of this user's

Yeah just enter you're username and password and your're in !


Mark style as HTML safe

Should fix #222, as I think it's safe to assume that those styles won't do any harm.

@stefanpenner PR updated as requested.

@pedrokiefer tests appear to be failing

My bad, it was missing a parentheses!

released as 0.0.6


MessageReaction.remove() gives a Bad Request Error

I am trying to remove reactions that people set on their own messages, but consistently get a bad request error. I assume this is something that might be updated on the discord API end that hasn't been updated here yet, or that it might have been overlooked as one of the less used functions of the API.
(Or I'm failing to send proper data despite my best attempts at doing so)
Here's a simplified code snippet that trigger the issue:
client.on("messageReactionAdd", (reaction, user) =>
{
	reaction.remove(user).then(reaction =>
	{
		console.log('Removed a reaction.');
	}, error =>
	{
		console.log('Unexpected error: ' + error);
	});
}```

I've just tried it with a testing bot, using this code:
bot.on("messageReactionAdd", (reaction, user) => {
	reaction.remove(user).then(reaction => {
		console.log('Removed a reaction.');
	});
});

and it worked flawlessly. The Commando bot on the Discord.js server also uses this event, so i'm rather sure it's an error in your code.

Are you using the v11.0.0 version of discord.js?

I am, yes.

It could very well be something wrong in my code, I'm by no means and expert in this regard. That said, this seems simple enough that I'd be surprised if the issue really was on my end. Here's the code without alterations on my end:
client.on("messageReactionAdd", (reaction, user) =>
{
	// If this message author is not a bot..
	if(!reaction.message.author.bot)
	{
		// If the message and the reaction was both from the same user..
		if(reaction.message.author.id == user.id)
		{
			// Remove the reaction from the message.
			reaction.remove(user).then
			(
				reaction =>
				{
					console.log('Remove a reaction that ' + user.username + ' had put on their own message.');
				}, error =>
				{
					console.log('Failed to remove a reaction that ' + user.username + ' had put on their own message: ' + error);
				}
			);
		}
		// If this reaction is on another persons message..
		else
		{

Which ends up printing this to the console:
Failed to remove a reaction that TinyHeart had put on their own message: Error: Bad Request

Have you made sure your bot has enough permissions? The code seems fine.
Try inspecting the Bad Request error completely (output it and read through it).

Some possibly relevant informatin:
# node -v
v7.2.0
# npm list | grep -i discord
├─┬<EMAIL_ADDRESS>

The bot is allowed to manage messages (and some other things as well, not sure which is relevant).
I will see if I can output the error and read through it, thanks.

Thanks for helping by pointing me in the right direction, the error structure does indeed have an explanation (the text property), which states:
text: '{"user_id": ["Value \\"undefined\\" is not snowflake."]}',
Now I wonder why my user is different from yours in this context, as we have the same source for them and everything really seems right at first glance..

I added a console.log(user) right before the reaction.remove(user) statement, and at that point it still has a valid user:
  id: '230003000431607808',
  username: 'TinyHeart',
  discriminator: '1831',
  avatar: '43720ccf580f36df3b49214cbc1756b6',
  bot: false,
  lastMessageID: '290422503438811136' }```

Hmm, that's weird. Could you try it with another user just for the sake of it?

Could you see if using the master branch fixes this issue? npm install hydrabolt/discord.js

  id: '189386282437181442',
  username: 'Fluffy Dragg0n',
  discriminator: '8290',
  avatar: '47bb2ac0cd2648f4967c5be1beca3755',
  bot: false,
  lastMessageID: '290424232741961729' }
Failed to remove a reaction that Fluffy Dragg0n had put on their own message
{ Error: Bad Request
 [ ... ]
       status: 400,
        text: '{"user_id": ["Value \\"undefined\\" is not snowflake."]}',
        method: 'DELETE',
        path: '/api/v6/channels/256700627692814336/messages/290424225867497472/reactions/%E2%9D%A4/undefined' },```

Will try to update to master and check again.

@hydrabolt the master works just fine, and the difference I can see is that the user object is larger on master in the reaction add event:
  id: '230003000431607808',
  username: 'TinyHeart',
  discriminator: '1831',
  avatar: '43720ccf580f36df3b49214cbc1756b6',
  bot: false,
  lastMessageID: '290425062853574659',
  lastMessage:
   Message {
     channel:
      TextChannel {
        type: 'text',
        id: '290124227787358220',
        name: 'testing',
        position: 0,
        permissionOverwrites: [Object],
        topic: '',
        lastMessageID: '290425062853574659',
        guild: [Object],
        messages: [Object],
        _typing: [Object],
        lastMessage: [Circular] },
     id: '290425062853574659',
     type: 'DEFAULT',
     content: 'teeeeees',
     author: [Circular],
     member:
      GuildMember {
        guild: [Object],
        user: [Circular],
        _roles: [Object],
        serverDeaf: false,
        serverMute: false,
        selfMute: undefined,
        selfDeaf: undefined,
        voiceSessionID: undefined,
        voiceChannelID: undefined,
        speaking: false,
        nickname: null,
        joinedTimestamp:<PHONE_NUMBER>912,
        lastMessageID: '290425062853574659',
        lastMessage: [Circular] },
     pinned: false,
     tts: false,
     nonce: '290425103236202496',
     system: false,
     embeds: [],
     attachments: Collection {},
     createdTimestamp:<PHONE_NUMBER>821,
     editedTimestamp: null,
     mentions:
      { users: Collection {},
        roles: Collection {},
        channels: Collection {},
        everyone: false },
     _edits: [],
     reactions: Collection { '%F0%9F%98%83' => [Object] },
     webhookID: null,
     hit: null } }```

compared to the previous size:

```id: '189386282437181442',
  username: 'Fluffy Dragg0n',
  discriminator: '8290',
  avatar: '47bb2ac0cd2648f4967c5be1beca3755',
  bot: false,
  lastMessageID: '290424232741961729' }```

Right, so problem's solved? 😃

Kindof. I'll get back to v11.0.0 and let it spew error message and wait for a minor relase (like v11.0.1), feel uncomfortable sitting on master and not knowing if other things might be broken that I'll crash into only during edge cases.

@hydrabolt you can close this, or keep it open until you backport the relevant changes and/or release master as a stable release - your call.

Sounds good 👍


[Flake] Windows+MSVC+x86 link failure due to "virus"

Seems like the virus detector had a false positive. The change (obviously) did not include any viruses, and the file in question was not even part of the last change (or affected by it in any meaningful way).
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "google\cloud\grpc_error_delegate_test.exe". Operation did not complete successfully because the file contains a virus or potentially unwanted software.

https://source.cloud.google.com/results/invocations/b272f599-2c38-42b7-b5a5-962fe8f0b61a
This may be related to the problems reported in #4539

We disabled the virus detector in our build directories recently to fix other issues it was causing, and I suspect that disabling that would also fix this issue.
I'm going to close this assuming it's been worked around now. We can reopen if we see another one of these.
Related to https://github.com/googleapis/google-cloud-cpp/issues/4539


fix direct messages

fix #496

Coverage remained the same at 57.45% when pulling ccfffc4a1649645f09d9b2c105adcaa961856837 on jvmaia:master into c9e8a462000898dcd91b9babf130b907986591ea on ryanmcgrath:master.

I'm pretty sure DM stuff works now due to another merge request, and this has been open for... almost 2 years... so I'm going to go ahead and close it.
However, thank you for taking the time to submit it.


Rewrite Postgres array type handling

… to reduce boilerplate and allow custom types.
Fixes Relates to #298.
Future possibilities: Let the Type derive macro generate an impl of the new PgHasArrayType trait.

I am pretty certain this is not a breaking change. It only introduces a new trait and
re-routes existing Type implementations through that trait (not changing whether those types implement Type). Outside crates were never able to implement Type for [Foo] / Type for &'_ [Foo] / Type for Vec<Foo> before, so the new blanket impl doesn't break that either.

Is there a way to create a PgTypeInfo::with_name to implement PgHasArrayType?

Yes, the idea is that you would implement PgHasArrayType for custom types as PgTypeInfo::with_name("_custom_type_name") (when the non-array type is called custom_type_name without the leading underscore).


Deploying on other platforms

Thanks for the excellent work, currently for my research I am using PX4 on a small custom quadrotor. I am wondering what steps are required to deploy learning to fly models, to my small rotor. Can I directly deploy it on the flight controller?

Hi @cmakelabs,
Yes, you can directly flash it into the PX4 flight controller. The process would be something like this:

System identification (e.g. using https://sysid.tools)
Train a policy based on the identified parameters
Use https://github.com/rl-tools/px4/ to compile the checkpoint into the firmware


Autorest Regen Preview to 3.0.0-alpha.20231107.4 by Jorge Rangel from refs/pull/3891/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/3891

API change check
API changes are not detected in this pull request.


Linux full installation tweak

Some tweaks for the file docs/linux_install_full.sh

Hi, can you saw what issues you encountered and what this improves?  Thanks!

Hi, of course I explain the improvements.

while [ $CONDA_SHLVL -gt 0 ]; do conda deactivate; done There can be a recursion in conda and this command reverts any conda session
if conda env list | grep -w 'h2ogpt'; then "w" for word is more accurate because "h2ogptBLABLABLA" can be a conda session as well and "h2ogpt" may not be a conda session therefore, there is no need to delete a session which does not exists.
if ! command -v nvcc &> /dev/null; then NVIDIA CUDA Compiler Driver NVCC is required but not informed about it till it fails when installation is running, in this line it is controlled.
if [ ! "$nvccVersion" == "12.1" ] && [ ! "$nvccVersion" == "11.8" ]; then h2ogpt documentation is based on these 2 versions of conda therefore, if these versions are not present in the system it advises about it and the user has the option whether to continue.
if [ "${nvccVersion}" == "11.8" ]; then variables in the system needs to take different values, standard variables are taken from cuda version 12.1

If you need more information, let me know and I explain myself as better as I can.
Thanks in advance.

do you need anything else?


[BUG] Set-PnpListItem The specified user (rolemanager group sid) could not be found.

Reporting an Issue or Missing Feature
Set-pnplist item appears to not accept group claims as part of a user picker field setting.
The claim appears to exist (get-pnpuser returns a result for it as expected)
Expected behavior
When provided the claim value for an AD group role it should resolve to a user (rolemanager claim)
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Steps to reproduce behavior
AD group as role manager claim is created
AD group is added to an SP Group
Retrieved AD Group claim from SP Group Users list (Get-pnpGroup).Users
AD Group claim id (loginname) is: "c:0-.f|rolemanager|s-1-5-21-4187335146-4260307558-3515784065-9947325"
Add the group claim to the field values for the User or Group field (field name is "MyUsersField")
Able to perform get-pnpuser [claimid] and returns expected result.
$values
Name                           Value
----                           -----
MyUsersField                          {c:0-.f|rolemanager|s-1-5-21-4187335146-4260307558-3515784065-9947325}

Set-PnPListItem:
Line |
 100 |  $x = set-pnplistitem -list $listName -id $id -Values $values -Up …
     |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified user c:0-.f|rolemanager|s-1-5-21-4187335146-4260307558-3515784065-9947325 could not be found.

get-pnpuser "c:0-.f|rolemanager|s-1-5-21-4187335146-4260307558-3515784065-9947325"

 Id Title          LoginName                                                            Email
 -- -----          ---------                                                            -----
477 Test Users c:0-.f|rolemanager|s-1-5-21-4187335146-4260307558-3515784065-9947325<EMAIL_ADDRESS>
What is the version of the Cmdlet module you are running?
2.2.0
Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

The cause was:
A user from Site A (Exists in site user info list, is a member of a group, account was deleted or removed, but still exists in sharepoint)
Was trying to be added to a list on a new Site B (does not have a record in site user info list for the user).
This can also occur if the user simply does not exist in the site user info list as Get-PNPUser doesn't seem to use Web.EnsureUser to ensure some kind of object exists.  So you could be calling get-pnpuser with a valid user but the user isn't yet registered in the site user info list so the call returns no object.  So if get-pnpuser fails you must also try new-pnpuser which will throw an error properly if the user account does not exist in the AD.
Code that helps filter out non-existant users.
        $userListStr = ""
	$missingUserListStr = ""
	foreach($user in $group.Users) {
		if($user.LoginName -eq "SHAREPOINT\system") {continue;}

		try {
			$userObj = get-pnpuser $user.LoginName
			if($userObj -eq $null) {
				$userObj = new-pnpuser -loginName $user.LoginName -EA 0 #EA0 is to not throw exception on not existing, which could be useful but not in this context
			}
			if($userObj -ne $null) {
				if($userListStr) { $userListStr +=";"}
				$userListStr += $user.LoginName;
			} else {
				write-host "User $($user.Title) ($($user.LoginName)): Not found."
				if($missingUserListStr) { $missingUserListStr +="`n"}
				$missingUserListStr += "$($user.Title) ($($user.LoginName))";
			}
		} catch {
			write-host "Error on user $($user.LoginName): $_"
		}
	}

Potentially change this to a bug to a feature request... maybe if Get-PnpUser fails to return a user when provided the username it tries to use New-PnpUser to register it in the site user info list? or a flag -CreateIfNotFound ?
Currently it doesn't make sense to return nothing when someone does Get-PNPUser [UserName] where [UserName] exists in AD but does not yet exist in the Site User Info List.

@SPDEVGUY - this is not something we would like to implement for performance reasons. Querying a user from site info list , if it doesn't exist then try adding it would have a big impact.


Add a footer section

There is no footer section on the Music Hub website.

Hi, Can you please assign this issue to me

Hi, Can you please assign this issue to me

Sure, please proceed @Fasina-ayomikun
Happy Coding...!!


Fix ament_target_dependencies integration

Closes #108

If this works then we ought to immediately cut a release to get this out into the world ASAP since it restores some previously broken functionality.

I also tested without this change and it breaks in the expected way. This is a good change. :+1: to releasing this.


Exceptions in AMI Event Handlers

I want to implement an OnException-event, but I'm struggling with exactly determining where this should be done. Can you give any hints as to where would be a good place?
I need to know if an exception is thrown inside an event handler - currently AsterNET simply consumes them.

It's a good question. The issue is fireEvent uses BeginInvoke, which makes it hard to catch an exception. The answer would be to change the way that fireEvent works.
Maybe this would be a good opportunity to review this section of code, as I suspect that are much better ways of doing it... Maybe we should look at something a little more modern, such as Task to invoke the handler, and review the task.exception?
Opinions and thoughts welcome.

Yeah I'm down for that! I'll get to know the code that dispatches the events, and see if I can think up and then post back here ;)

Cool! Let me know your thought, I'll have a look into it too, see what the current best practises are for handling events async etc.

https://github.com/Telzio/AsterNET/commit/ec57910f416e20ce8df2fb5ace0e83cdd69763b5
As a quick measure I've implemented this is my fork (needed something to test on here and now). The code I've written should also work great for the being/end invoke that's in place when UseAsyncEvents are enabled.
I've not tested the being/end implementation there, but it's how I always handled exceptions in asynchronous code - so it should work just fine.

Let me know how you get on, when you think it's ready, make a pull request and we'll take a closer look.

I have an addition that I'm not sure should make it into this repo or not - but I found it very practical.
As it is now, the reader thread also dispatches the events, and if they take just a 100ms to complete (if there is like a bunch of slow database work going on), the DateReceived time gets behind the actual even date quite a bit.
I've written an event queue that the read thread just adds the events into, and then another thread dispatches them against the event handlers in the order they come in.
This is obviously when not using async events - which I do - need my events in the order they come in ;)

Yeah, I like the idea of an event queue on a separate dispatcher thread. This would also solve the issue of people pushing out actions while in an event handler, which seems to cause some lock-up issues.
Question is, how should it be implemented within ConnectionManager (if at all) or should this be a separate component? Sync event are good in that they maintain order, and for state modelling that is important, but they do seem to cause some confusion too when people request things like peers from within an existing event handler.

maybe this should be moved out into two issues. Eventing and Error handling.

@jonastelzio you should come have a chat with us in #asternet on freenode (irc).

Yeah, right now I threw it into the Connection Manager, with a new class that handles it. But making it more pluggable is definitely a good idea!
I've had to make some of these adjustments rather quickly to progress our own project - but getting it adopted as a community feature (or whatever it should be called), is always optimal for everyone ;)
In my case I use it very specifically for state modelling to track calls for billing purposes, so the times the event was received is essential to me (shame that Asterisk doesn't include this state information in the data sent on AMI).
I'll join the IRC channel later tonight! I'm in the Central Europe Time Zone (Copenhagen).

one day you'll submit that PR ;)


Cisar does not show in Developer Tools

I tried both the Store install and the manual install, but Cisar does not show in the Developer Tools.
Trying to install again from the Store gives me the error: This item is already being downloaded and added into Chrome.
Corresponding error in console:

I can select Reload, but nothing really happens
There is no Cisar in: chrome://extensions/
if you need any more info let me know
TNX!

Hi,
It seems to be a Chrome issue unrelated to the extension itself.
I googled a bit and there's an accepted answer here on superuser:
http://superuser.com/questions/836029/installed-extension-doesnt-show-up
Could you try following the steps provided there?

I have 41 items in the extension folder.. I presume they are required, so
am not deleting them untill I know nothing will be lost.
Looks to me Chrome Profiles each have their own folder... I have 10
profiles.. so have to search.
Danny Engelman http://www.engelman.nl/
<EMAIL_ADDRESS>http://www.LinkedIN.com/in/dannyengelman
http://www.linkedin.com/in/dannyengelman
► 365CSI.nl http://www.CSI365.nl - Office 365 Blended Learning (preview
only, opens august 2015)
bikeswap.org http://www.bikeswap.org - borrow a motorcycle, loan a
motorcyle
2015-07-19 18:25 GMT+02:00 Andrei Markeev<EMAIL_ADDRESS>
Hi,
It seems to be a Chrome issue unrelated to the extension itself.
I googled a bit and there's an accepted answer here on superuser:
http://superuser.com/questions/836029/installed-extension-doesnt-show-up
Could you try following the steps provided there?
—
Reply to this email directly or view it on GitHub
https://github.com/andrei-markeev/cisar/issues/4#issuecomment-122678498.

can't install other extensions as well... i'll continue the adventure
Danny Engelman http://www.engelman.nl/
<EMAIL_ADDRESS>http://www.LinkedIN.com/in/dannyengelman
http://www.linkedin.com/in/dannyengelman
► 365CSI.nl http://www.CSI365.nl - Office 365 Blended Learning (preview
only, opens august 2015)
bikeswap.org http://www.bikeswap.org - borrow a motorcycle, loan a
motorcyle
2015-07-19 18:33 GMT+02:00 Danny Engelman<EMAIL_ADDRESS>
I have 41 items in the extension folder.. I presume they are required, so
am not deleting them untill I know nothing will be lost.
Looks to me Chrome Profiles each have their own folder... I have 10
profiles.. so have to search.
Danny Engelman http://www.engelman.nl/
<EMAIL_ADDRESS>http://www.LinkedIN.com/in/dannyengelman
http://www.linkedin.com/in/dannyengelman
► 365CSI.nl http://www.CSI365.nl - Office 365 Blended Learning (preview
only, opens august 2015)
bikeswap.org http://www.bikeswap.org - borrow a motorcycle, loan a
motorcyle
2015-07-19 18:25 GMT+02:00 Andrei Markeev<EMAIL_ADDRESS>
Hi,
It seems to be a Chrome issue unrelated to the extension itself.
I googled a bit and there's an accepted answer here on superuser:
http://superuser.com/questions/836029/installed-extension-doesnt-show-up
Could you try following the steps provided there?
—
Reply to this email directly or view it on GitHub
https://github.com/andrei-markeev/cisar/issues/4#issuecomment-122678498
.

Installed it on my laptop under the same Chrome acount, now its available on my DEV machine as well


Add node tests for zjquery.

These tests should serve as a basic form of documentation on
how to use zjquery.  It covers most of the basic principles.

Automated message from Dropbox CLA bot
@showell, it looks like you've already signed the Dropbox CLA. Thanks!

I gave it a read and looks great to me. @showell

@showell One thing I think we should do as we are onto this is that add another test for the case where we don't have a filter child selector in on definition. That part seems like confusion creating stuff and we can demonstrate here we can do both of them now and the way how we do it.

Oops, I forgot to lint.  @adnrs96 I agree on testing the other flavor of .on(...).

Ok, I just merged this.  We should definitely iterate on this a bit, but I want to get the initial version out there.


Please document supported OS

Please update this document page and update, supported OS for this.
For example, is Android Enterprise with Defender App installed and Edge browser, supported for Web protection / web content filtering?
Or is limited only to Windows 10+ ?
Thank you,
Kind regards
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 209bd885-0ac5-2652-8c04-a1f6e0b4eeea
Version Independent ID: bed8f47f-4b29-95b0-347e-811b57c7feb7
Content: Web protection
Content Source: microsoft-365/security/defender-endpoint/web-protection-overview.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@denisebmsft Please help us in resolving this issue. Thanks

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Simple.Data.Mocking does not allow anything but "Id" as key for table row

    The following code does not work with the latest nuget package of Simple.Data.Mocking. The value of "result" is always null. Is it possible to have a value for _keys that isn't "Id" and still make the XmlMockAdapter work correctly? By changing all references of UrlId to just Id, the code below does work; however, I feel like it should still be able to work by specifying the correct _keys value for my schema.

    [TestFixtureSetUp]
    public void MockUrlRepositoryInitialize()
    {
        _mockAdapter = new XmlMockAdapter(
               @"<Root>
                   <Urls _keys=""UrlId"" Id=""System.Int32"" >
                       <Url UrlId=""1"" LongUrl=""http://www.google.com"" Hash=""Hm5zT89z"" "/>
                   </Urls>
                 </Root>");

        MockHelper.UseMockAdapter(_mockAdapter);
        repo = new UrlRepository(Database.Open());
    }

    [Test]
    public void TestMethod()
    {
        var result = repo.GetUrl(1);
       Assert.IsNotNull(result);
    }

   (in UrlRepository class def)

   public dynamic GetUrl(id)
   {
       var result = _db.Urls.FindByUrlId(id)    // also tried _db.Urls.FindBy(UrlId: id) but that returned null as well
       return result;
   }

I can reproduce the issue based on your code, however changing...
<Urls _keys=""UrlId"" Id=""System.Int32"" >
to
<Urls _keys=""UrlId"" UrlId=""System.Int32"" >
fixes it.
I have commited a test case for this and will close this issue.


InputNumber: Add .extra  modifier to key event

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

Why is is necessary

In order to give developers the ability to extend key events, for example, increase 10 when pressing shift+up

Sorry, we have no plan to support this.


Import scipy.sparse.linalg in numpy_backend.py

I don't know how this ever worked.

Yeah that's bad.
Can you add a test that clearly breaks without this and works with this? We apparently missed it earlier.

lol, I was just fixing this as well

there's actually a few more things that need to be fixed there, I'll submit a PR

Yeah dang we're clearly missing a LOT of tests. Unless just doing import sp works?

It's kind of strange: test are working fine, but it breaks if you run it in a jupyter notebook

I guess we are importing scipy.sparse.linalg and scipy.linalg somewhere else at some point

Do the actually cover these methods? :upside_down_face:

yeah they do, just checked

looks like jupyter's import system works a bit different than the one of the python interpreter

Codecov Report

Merging #738 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #738   +/-   ##
=======================================
  Coverage   97.61%   97.61%
=======================================
  Files         111      111
  Lines       18572    18573    +1
=======================================
+ Hits        18129    18130    +1
  Misses        443      443

Impacted Files
Coverage Δ

tensornetwork/backends/numpy/numpy_backend.py
98.09% <100.00%> (+<0.01%)
:arrow_up:

Continue to review full report at Codecov.

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

this fixes it


Feature: Generic Concept Request API

This PR introduces a new Concept request API to access any concept from any CodeSystem using a few filters and returning a generic Concept model.

Codecov Report

Merging #511 into 7.x will increase coverage by 0.13%.
The diff coverage is 79.43%.

@@             Coverage Diff             @@
##               7.x     #511      +/-   ##
===========================================
+ Coverage     52.6%   52.73%   +0.13%
- Complexity   13349    13413      +64
===========================================
  Files         1782     1788       +6
  Lines        85453    85547      +94
  Branches     11228    11232       +4
===========================================
+ Hits         44950    45112     +162
+ Misses       35741    35681      -60
+ Partials      4762     4754       -8

Impacted Files
Coverage Δ
Complexity Δ

...c/com/b2international/commons/options/Options.java
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

.../domain/constraint/SnomedConceptSetDefinition.java
25% <ø> (ø)
1 <0> (ø)
:arrow_down:

...rc/com/b2international/snowowl/snomed/ecl/Ecl.java
50% <0%> (+50%)
2 <0> (+2)
:arrow_up:

...wl/core/request/ConceptSearchRequestEvaluator.java
100% <100%> (ø)
0 <0> (?)

...2international/commons/options/OptionsBuilder.java
100% <100%> (ø)
10 <4> (+3)
:arrow_up:

...owl/core/request/SearchResourceRequestBuilder.java
90.62% <100%> (-0.29%)
16 <3> (ø)

...ologyregistry/core/request/CodeSystemRequests.java
62.16% <100%> (+45.49%)
9 <1> (+3)
:arrow_up:

...nternational/snowowl/snomed/core/SnomedPlugin.java
91.11% <100%> (+0.2%)
15 <1> (+1)
:arrow_up:

...wowl/core/request/ConceptSearchRequestBuilder.java
44.44% <44.44%> (ø)
4 <4> (?)

.../b2international/snowowl/core/domain/Concepts.java
50% <50%> (ø)
1 <1> (?)

... and 29 more

Continue to review full report at Codecov.

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


init() got an unexpected keyword argument 'noninteractive'

Bug report
Required information:

Operating system and version:

Windows 10 Pro Build 19043.1052

Running a ROS2 Foxy on  a linux Docker

OpenRMF installation type:
I use this tutorial to install RMF: https://osrf.github.io/ros2multirobotbook/intro.html

ROS distribution and version:
ROS2 Foxy

ROS installation type:
-Dockerfile

Description of the bug
I followed the explanation of the tutorial i got no errors.
untill I hat to execute:
$ ros2 launch demos airport_terminal.launch.xml
Then the following error was displayed:
Traceback (most recent call last):
File "/opt/ros/foxy/bin/ros2", line 11, in
load_entry_point('ros2cli==0.9.9', 'console_scripts', 'ros2')()
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 67, in main
rc = extension.main(parser=parser, args=args)
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2launch/command/launch.py", line 159, in main
return launch_a_launch_file(
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2launch/api/api.py", line 151, in launch_a_launch_file
launch_service = launch.LaunchService(
TypeError: init() got an unexpected keyword argument 'noninteractive'
The same error will be shown independet of which demo rmf  I run.

I understand you've got ROS inside a docker container. Did you add the install instructions RMF to the dockerfile? if so it would be useful if you could provide it so we can reproduce the issue.

I just installed the rmf  in side the docker container through the terminal.

I can't seem to reproduce the issue on my side so my recommendation is that you add your steps to the dockerfile and pass it to us for reproducibility (also without it you will lose your changes if the docker shuts down).
Are you able to create X Windows from your docker? i.e. can you run gazebo? (this might require extra configurations steps).
 Once your image is ready you only need to:
rocker --x11 --nvidia rmf:test
# source install/setup.bash
# ros2 launch rmf_demos office.launch.xml

I recommend trying the smallest demo first (office) and move to the rest once that one works.
Once you have the demo running you will also need network access to access the rmf-panel through your browser and be able to submit tasks to the system.

I will go ahead and close this issue due to inactivity. Feel free to reopen it if there's any persisting RMF misbehavior.


fix(plugins/plugin-client-common): status column can be invisible in …

…split tables
Fixes #5244

Description of what you did:

My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[ ] All npm dependencies are pinned.

green in travis.


Uninstalling CFW

Hi there,
I was wondering if there was a way to uninstall everything installed via this guide? I've looked through community resources, various applications mentioned here, and I can't seem to find anything as it was not manually installed. Is this even possible?
Thanks!

Best I could find is an stheix video, I'll write up a guide based on it ASAP~

Addition has been written, I hope this is satisfactory~

Thank you so much!!!


Fix computing MSE loss function

I think that the MSE loss function computes the mean over all dimensions (batch, x, y), so there's no need to specify the dimensions (but I might be wrong).

All great PR, thank you for your effort! Now I'm going to scratch my head to understand why those problems where there in the first place..


Document COMPlus_EnableDiagnostics env var

Related to https://github.com/dotnet/coreclr/issues/15243
In order for netcore to run in a readonly container the env var has to be set to zero.
The documentation around this environment variable or in fact around running docker in a secure manner is vague at best.
The reasoning as to why this variable is on by default is non-existent.
I 'believe' it exists in order to provide ETW as per the full framework https://blogs.msdn.microsoft.com/distributedservices/2009/06/19/tracing-in-com-and-complus/ but without disabling a readonly .net container throws a god awful unreadable error.
So for clarity it would be great if the documentation covered this aspect of containerisation and provides the rationale for why this variable and respective code is enabled and what you lose by not having it enabled. (I expect what you lose is nothing in reality as most people are running these containers statelessly within orchestration systems and have no real ties to disk in the first place)

It should be noted that setting this environment variables value to zero doesn't actually seem to enable you to run containers in read only mode. I have a full repro at https://github.com/RehanSaeed/ReadOnlyDockerTest. See also https://github.com/aspnet/aspnet-docker/issues/331.

Worked for me with a new project

The Dockerfile in my repro looks like this:
 FROM microsoft/dotnet:2.2-sdk AS builder
 WORKDIR /source
 COPY *.csproj .
 RUN dotnet restore
 COPY . .
 RUN dotnet publish --output /app/ --configuration Release

 FROM microsoft/dotnet:2.2-aspnetcore-runtime
 ENV COMPlus_EnableDiagnostic=0
 WORKDIR /app
 COPY --from=builder /app .
 ENTRYPOINT ["dotnet", "ReadOnlyTest.dll"]

Thats... perplexing; I get the same error locally. But if I run a project I know I've already configured...
λ docker run -e CONFIG_FILE=appsettings.development.json --cap-add SYS_PTRACE --rm --read-only -it testproxy:latest
[11:06:57 INF] class=Startup method=ConfigureServices state=Starting
[11:06:57 WRN] Using an in-memory repository. Keys will not be persisted to storage.
[11:06:57 WRN] Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
[11:06:57 INF] Creating key {} with creation date 2019-02-11 11:06:57Z, activation date 2019-02-11 11:06:57Z, and expiration date 2019-05-12 11:06:57Z.
[11:06:57 WRN] No XML encryptor configured. Key {} may be persisted to storage in unencrypted form.
[11:06:57 INF] Service Starting
Hosting environment: Production
Content root path: /app
Now listening on: http://<IP_ADDRESS>:52193
Application started. Press Ctrl+C to shut down.

I've even altered your repro docker and cs files to closer resemble my working project and it fails...

What version is your project that worked? Maybe the latest 2.2 is broken again?

ReadonlyRepro.zip
ok I've just created a new project via VS; added a the env vars, slightly modified the docker file build (so the shell script I shoved in the route paths properly)
and it works fine.
(if you dont have wsl talking to dockerforwindows you can just paste the command in cmd at the sln level docker build -t readonlyrepro ReadonlyRepro/ &&  docker run --rm --read-only -it readonlyrepro:latest)

Let me know if that works for you.

I've tried breaking the working repro attached previously by diffing with your repro

Startup.cs adding using Microsoft.AspNetCore.Http; , removing services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); and swapping out the app.UseMvc(); for the app.Run(async (context) => has no effect on readonly mode.

changing <PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.1" /> to  no effect.

I've ran diff over the two slns and other than all of yours being unix line format (which my working sln is but the newly generated code isnt) I can't see any real difference or I'm missing something tiny yet breaking in here 😬

@RehanSaeed ok mate I got yours working

I changed the dockerfile to
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 52193

FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /src
COPY . .

ENV COMPlus_EnableDiagnostics=0

COPY --from=publish /app .
ENTRYPOINT ["dotnet", "ReadOnlyTest.dll"]

Shit.. nailed it
ENV COMPlus_EnableDiagnostic=0 - https://github.com/RehanSaeed/ReadOnlyDockerTest/blob/master/Dockerfile#L10
Missing the S
ENV COMPlus_EnableDiagnostics=0

so this replacement for the one in your repo works
FROM microsoft/dotnet:2.2-sdk AS builder
WORKDIR /source
COPY *.csproj .
RUN dotnet restore
COPY . .
RUN dotnet publish --output /app/ --configuration Release

# Stage 2
FROM microsoft/dotnet:2.2-aspnetcore-runtime
ENV COMPlus_EnableDiagnostics=0
WORKDIR /app
COPY --from=builder /app .
ENTRYPOINT ["dotnet", "ReadOnlyTest.dll"]

Typos; the ultimate killer 😉
Just so you know; it's usually a good idea to add ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 unless you want to filter out msft telemetry traffic when debugging.
And you no longer need to restore; build+publish implicitly do it for you.

@RehanSaeed at least that's sorted 😄

@ChrisMcKee Thanks for your investigation. That typo is not something I'd have spotted.
Perhaps you can update the issue title.

@RehanSaeed tbh this issue is about documentation; you just nerd-sniped me with your issue 😉

reopening per comment.

reopening per comment.

This issue still seems to exist in .net 5, do we know exactly where it need write permission? (Maybe we could mount a tmpfs in that spot?)

@IEvangelist This one has slipped under the radar when I created the docker container information that you took over. Do you want to add info about this scenario?

Thank you @adegeo -- I'll take a look at this!

I don't think ENV DOTNET_EnableDiagnostics=0 works in .Net 6.

@ebi-j any evidence for your hypothesis?

Unfortunately this does not work for me on .net6. I have a self contained application targeting arm64 platform, I tried multiple linux arm64 images with my application and getting the exact error Failed to create CoreCLR, HRESULT: 0x80004005
Dockerfile
FROM ubuntu:latest
ENV COMPlus_EnableDiagnostics=0
COPY . .
RUN chmod +x ./my-app
ENTRYPOINT ["./my-app",]

docker build --platform linux/arm64/v8 . -t arm64
docker run arm64
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
Failed to create CoreCLR, HRESULT: 0x80004005

Any suggestions how to resolve this would be appreciated

@mcopjan I found this issue you could contribute to: https://github.com/dotnet/docs/issues/10217

Unfortunately this does not work for me on .net6. I have a self contained application targeting arm64 platform, I tried multiple linux arm64 images with my application and getting the exact error Failed to create CoreCLR, HRESULT: 0x80004005
Dockerfile
FROM ubuntu:latest
ENV COMPlus_EnableDiagnostics=0
COPY . .
RUN chmod +x ./my-app
ENTRYPOINT ["./my-app",]

docker build --platform linux/arm64/v8 . -t arm64
docker run arm64
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
Failed to create CoreCLR, HRESULT: 0x80004005

I have tried both ENV's COMPlus_EnableDiagnostics=0 and DOTNET_EnableDiagnostics=0
Any suggestions how to resolve this would be appreciated

for me changing from
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build
to
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
did the job


Spotbugs: RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN

Suspicious reference comparison of Boolean values, Spotbugs rule RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN
Description
This method compares two Boolean values using the == or != operator. Normally, there are only two Boolean values (Boolean.TRUE and Boolean.FALSE), but it is possible to create other Boolean objects using the new Boolean(b) constructor. It is best to avoid such objects, but if they do exist, then checking Boolean objects for equality using == or != will give results than are different than you would get using .equals(...)

[x] been self-reviewed.

@dclim Time to look at this one?

@Fokko please remove the pre-filled template from PR . descriptions , that is to guide contributors towards what to add in PR description.
Keeping all of it in the PR is confusing. For example, this PR description should have been...

Description
Suspicious reference comparison of Boolean values, Spotbugs rule RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN
This method compares two Boolean values using the == or != operator. Normally, there are only two Boolean values (Boolean.TRUE and Boolean.FALSE), but it is possible to create other Boolean objects using the new Boolean(b) constructor. It is best to avoid such objects, but if they do exist, then checking Boolean objects for equality using == or != will give results than are different than you would get using .equals(...)

This PR has:
[x] been self-reviewed.

@himanshug Done!


Smooth out sync-to-tip

Motivation
This PR allows syncing nodes to start processing peer certificates slightly earlier. Previously, the syncing node needed to be synced up in order to be processing incoming batch certificates. Which puts the node behind all the peers, who should have already constructed new rounds past the last commit. This causes a cycle of lagging just out of reach of the latest round and preventing the node from quickly rejoining consensus. Breaking the cycle relies on the node and message timing such that it can fetch the certificates before new ones can be formed on the network.
The change here allows the node to start processing certificates 1 block earlier, in preparation of reaching tip.

Closing, as this is a bandaid optimization.