A place to post sample viewers created with this library?

Is there a place to showcase viewers that have been created with cornerstone?
If not I think that having one will also allow others to see what can be done and also provide ideas on how to implement viewers.
In the test viewers I sometimes found code that provides examples on how to implement some features that are not necesarily dcumented or are missing pieces of documentation.

I think we're trying to avoid including viewer source code in a CornerstoneJS repository, because it feels like we'd need to "maintain" or update that code as we move forward. We're currently resource constrained, so the best we could probably do is keep a list of open source / example viewers?
I have a couple very simple proof of concepts I've built to help others:
VueJS

https://dannyrb.github.io/cornerstone-vuejs-poc/#/
https://github.com/dannyrb/cornerstone-vuejs-poc/blob/master/src/components/CornerstoneCanvas.vue

Angular

https://github.com/dannyrb/cornerstone-angular-poc

The OHIF Viewer is a more advanced example built with Meteor:

http://viewer.ohif.org/
https://github.com/OHIF/Viewers

There are also a decent number of live examples of tools/functionality in the cornerstoneTools repository that are actively maintained:

https://rawgit.com/cornerstonejs/cornerstoneTools/master/examples/index.html
https://github.com/cornerstonejs/cornerstoneTools

I'd be curious to hear any thoughts you have on documentation and example implementations. We are in the middle of revamping our documentation to be cleaner and would love any/all help we can get. You can see the beginnings of it:

Here: https://tools.cornerstonejs.org/
And the related GitHub issue:  https://github.com/cornerstonejs/cornerstoneTools/issues/300

If you have any thoughts @swederik, please feel free to chime in

I did not know you were working on that documentation, looks like is what is definitely needed, I always had a hard time finding how to do certain things.
And, is there a way to help on that documentation, I could help on the things I already learned, so if you need any let me know.
Here is my implementation of the viewer

Thanks for providing a link to your viewer. I'll talk to @swederik about creating a space for providing example open/closed source viewers.
If you're interested in contributing, you can click the "Edit This Page" link at the top of any page in this set of documentation: https://tools.cornerstonejs.org/

"Edit this page"
Make your changes
Select "Create a new branch for this commit and start a pull request."

If you want to add a new page, or think we're missing an important example, create a new issue and we can discuss options. If you have a good understanding of Git, pull requests, etc. The docs are generated from the docs/ section, and are essentially just markdown pages:
https://github.com/cornerstonejs/cornerstoneTools/tree/master/docs
We'll spin up docs for the other repositories before too long. Right now, only CornerstoneTools has the new version


mount iPad Air2 and mini4

I test 2 iPad model air2 & mini4 have partition problem: Permission denied
Can this problem be fixed bro?
same here: https://www.reddit.com/r/setupapp/comments/vc30t0/ipad_air_2_success_boot_on_ramdisk_but_cannot/

localhost:~ root# /sbin/mount_apfs /dev/disk0s1s4 /mnt4
mount_apfs: volume could not be mounted: Permission denied
localhost:~ root# /sbin/mount_apfs /dev/disk0s1s5 /mnt5
mount_apfs: volume could not be mounted: Permission denied
localhost:~ root# /sbin/mount_apfs /dev/disk0s1s3 /mnt7
mount_apfs: volume could not be mounted: Permission denied
localhost:~ root# /usr/libexec/seputil --gigalocker-init
seputil: Gigalocker not needed on platform, skipping initialization
<xec/seputil --load /mnt4//usr/standalone/firmware/sep
seputil: can't open '/mnt4//usr/standalone/firmware/sep', errno: No such file or directory(2)
seputil: rejecting zero-byte firmware
seputil: failed to load /mnt4//usr/standalone/firmware/sep in  mode
localhost:~ root# /sbin/mount_apfs /dev/disk0s1s2 /mnt2
mount_apfs: volume could not be mounted: Permission denied
localhost:~ root#

14.3  change  ssh.tar
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s3
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s4
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s5
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s6
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s7

14.3 change ssh.tar
/System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s3 /System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s4 /System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s5 /System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s6 /System/Library/Filesystems/apfs.fs/apfs.util -p /dev/disk0s1s7

This is to fix for iPad Air2 mount but only-read?

Those just tell you the Partition names

Cpid chip 7000 and 7001 iphone-ipad don't mount mnt

i think i know a fix.

need extra patch kernel64patcher

possibly happens on iphone 6 too

happens on all a7-a8x devices

UPDATE: FOUND A TEMP FIX FOR A7-A8X DEVICES, TOMORROW I WILL IMPLEMENT A KERNEL PATCH INSTEAD, FOR NOW I WILL IMPLEMENT A TEMP FIX.

please try the temporary fix

this looks like it only works for 13-14, will do real fix tomorrow

please try the temporary fix

i have an Air 2 iOS15.6, tested still error with new sshrd.sh
i wait you patch kernel64patcher and retest

hi bro,
on iphone 8 ios 16 can this tool work on it.


The support page does not scale correctly when the keyboard is opened. ( Both IOS and Android )

Repro steps

Go to support page in the 3bot Connect app
Attempt to type a message

Expected Result
The layout scales correctly, the input field is fully visible and the last messages remain visible.
Actual Result

System Info
Type: Staging
Git user: Mathias De Weerdt
Git branch: v1.5.1
Git hash: accfd96
Time: 17:46:59 04.03.2020

Scaling is mostly fixed. There's a small issue where this could possibly happen again but would require further research in the keyboard integration and webviews.


Added emergency_stop. Re-added read_status polling

What's New?

Emergency stop is an actual emergency stop
Re-added status polling (every 9 seconds for now so as to not overwhelm my logger while debugging)

What's Next?

Figure out why the device is jamming up occasionally.

Production deploy complete.

Just added ability to read coords, see latest command and status.
Deployed now.


[BUG]Ollama component does not work

Describe the bug
ollama component does not connect. There is minimal documentation but what I can fidn i have followed. Flowise is running locally via Docker on localhost:3000 . Ollama is served on localhost:11434
Immediately produces a fetch fail when prompted.
When I check if ollama is running via Terminal and check the http://localhost:11434/api/tags it is running and downloaded successfully. It also successfully connects to other local apps working in similar ways to FlowiseAI. leading me to think there is an issue with the component
Flow
chatflow
ollama Chatflow.json
Setup

Installation :docker
OS: macOS
Browser:chrome

can you try http://host.docker.internal:11434 in the Ollma base URL?

can you try http://host.docker.internal:11434 in the Ollma base URL?

thank you, I solved same problem.

Running fowise and ollama in separate containers.
add this to your <flowise_dir>/docker/docker-compose.yaml:
services:
    flowise:
        # PART BELOW ---8<---8<---
        extra_hosts:
            - host.docker.internal:host-gateway
       # UNTIL HERE ---8<---8<---

up it again.
use http://host.docker.internal:11434 as Base URL
in case you are using open-webui (former ollama-webui) then default port will be 11435

I'm still facing this issue, I have flowise and Ollama on different containers, both have NGinx infront. I can see the Ollama is running on the Ollama server but when I try to connect (with a port or not) I still get the "fetch failed" message

The solution from @sirpilan works for me! I also installed Ollama via docker and Flowise via docker compose.
I am not an expert on docker network. But I guess this is caused by Ollama and Flowise containers are not on the same network in docker or on subnets that can communicate with each other.
I previously used Open WebUI to interact with Ollama. It needs to set --add-host=host.docker.internal:host-gateway when creating the docker.


Upgrades ESLint, configures rules and adds fixes for default rules

Description

This PR fixes 2 security vulnerabilities on ESLint dependencies by upgrading ESLint to the last version
Last version introduces multiple default rules for which we were not being consistent on our codebase.
Some rules where configured to adapt to our practices (see .eslintrc.

Notes

Will do a follow up PR to update other packages that depend on the package versions reported in the alerts (the alert only mention the eslint package as being affected).
This PR makes sense even if it does fully remove it.

Tests

Changes are very simple for each component (mostly style changes), but since it affects a very high number of components most of the checks will be done during a full regression test.

Looks like there are a lot of equality comparisons that are being replaced with the stricter version

Indeed, I definitely want to run this by QA and for a full regression testing. Having said, i was also considering breaking it apart.


Implement minimum viable product

This is also a nitpick. It seems like this is trying to create a lot of roles, lambdas, groups etc. I think it would be useful to namespace any persistent ones that do get created.

CloudFormation generates physical IDs like ViewServiceStack-ClearNeptuneGraph########-############ and assigns tags like aws:cloudformation:stack-name | ViewServiceStack. Let's make sure we're good with this during the technical deep dive.

LGTM


sish: 2.0.1 -> 2.1.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/antoniomika/sish/releases.
meta.description for sish is: "HTTP(S)/WS(S)/TCP Tunnels to localhost"
meta.homepage for sish is: "https://github.com/antoniomika/sish"
meta.changelog for sish is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0/bin/sish had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 2.1.0 with grep in /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0
found 2.1.0 in filename of file in /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
sish

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A sish https://github.com/r-ryantm/nixpkgs/archive/dc4b9569d17d6498e58723c56a45af0e869f7347.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0
ls -la /nix/store/a0m3gv5imhf4n8vqrz7lxldbvs82x2p7-sish-2.1.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

sish

Maintainer pings
cc @fabaff @kalbasit for testing.

Result of nixpkgs-review pr 161269 run on x86_64-linux 1

1 package built:

sish


Fix 'Need to Start Over' script name in readme

Readme typo fix

The 'start again' playbook likely should be cleanup.yml not cluster.yml

Issue Number
My change fixes issue: N/A

tyvm!


"Cârcea" is listed in the drop-down menu

Description:
When user writes ”Cârceai” the location appears in the drop-down menu next to the comune and the county witch is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Cârcea"

Expected results
The location appears in the drop-down menu as "Sat Cârcea, DOLJ (Cârcea)".


transaction - Other transaction types

What would you like to be added:
Currently, we can only view UTXO send and receive transaction types. We need to display other transaction types as well (E.g, Swap, Add/Remove Liquidity)
Why is this needed:

/triage accepted
/area ui-ux core
/priority urgent-now

What's the priority on this? I think this might be important for the UX of the users.

@0ptim Hi, currently it's not yet indexed on the whale side so we cannot display these info yet.


[flutter_tools] remove mock process manager from gradle tests

Update the AndroidGradleBuilder to inject the ProcessManager/FileSystem. Update all of the android_gradle_builder tests to use the fake process manager.
Note that there is still injection and use of FlutterProject that requires the use of TestUsingContext.

Part of https://github.com/flutter/flutter/pull/76264

I mean https://github.com/flutter/flutter/issues/71511


docs: Update badges

Q
A

Branch?
develop

Bug fix?
no

New feature?
no

Deprecations?
no

Tickets
N/A

License
MIT

Changelog
Yes

Doc PR
N/A

Correct the build badge / Add downloads badge

coverage: 99.718%. remained the same
when pulling 7e843ceeff7aa1ad5128c2cd4f5e4cc62a78379f on update-badges
into 97b97a77dd5b0dc46357f283b657e70b688f2f72 on develop.


MBL-1661 & MBL-1666: Red notification dot in top right corner of PPO tier 1 alert cards & Remove unused composables

📲 What

Changed the way we are displaying the red notification dot on a PPO card to be determined by card type
Also cleaned up unused disabled PPO cards since we are no longer doing pull to refresh to dismiss a card

🤔 Why
PPO!
🛠 How
Red dot is shown if the card type is tier 1.
👀 See

📋 QA
Make sure any ppo cards displayed had a red dot in the upper right corner
Story 📖
MBL-1661: Red notification dot in top right corner of PPO tier 1 alert cards
MBL-1666: Remove unused composables

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (master@f87255a). Learn more about missing BASE report.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2101   +/-   ##
=========================================
  Coverage          ?   67.58%
  Complexity        ?     2127
=========================================
  Files             ?      363
  Lines             ?    22119
  Branches          ?     3108
=========================================
  Hits              ?    14950
  Misses            ?     5528
  Partials          ?     1641

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


the first segment of a trace should be tageed ?

Question

the first segment of a trace is should tageed? because when querying trace ,we transfer a traceId ,but return is all segment list, this is not reasonable?

That query is query segments, which composing the trace. We explained it in the UI doc already.

That query is query segments, which composing the trace. We explained it in the UI doc already.

`private List findRoot(List spans) {
List rootSpans = new ArrayList<>();
spans.forEach(span -> {
String segmentParentSpanId = span.getSegmentParentSpanId();
        boolean hasParent = false;
        for (Span subSpan : spans) {
            if (segmentParentSpanId.equals(subSpan.getSegmentSpanId())) {
                hasParent = true;
                // if find parent, quick exit
                break;
            }
        }

        if (!hasParent) {
            span.setRoot(true);
            rootSpans.add(span);
        }
    });`

because of it,This code is inefficient,O(N^2)

`private List findRoot(List spans) {
List rootSpans = new ArrayList<>();
spans.forEach(span -> {
String segmentParentSpanId = span.getSegmentParentSpanId();
        boolean hasParent = false;
        for (Span subSpan : spans) {
            if (segmentParentSpanId.equals(subSpan.getSegmentSpanId())) {
                hasParent = true;
                // if find parent, quick exit
                break;
            }
        }

        if (!hasParent) {
            span.setRoot(true);
            rootSpans.add(span);
        }
    });`

because of it,This code is inefficient,O(N^2)


Peer Discovery in OrbitDB Using Only the Database Address

Hello everyone,
I’m working on a decentralized application using OrbitDB as the database. To ensure proper decentralization, I’d like users to be able to discover other peers replicating a database using just the database address.
The peers won’t be on a local network, so using mDNS for discovery isn’t an option.
I understand this is more of a Libp2p-related question, but given the use of OrbitDB, there might be specific implications.
Initially, the nodes would connect to Libp2p’s public bootstrap nodes to join the global network.
What I’ve Tried So Far

I attempted to use pubsub peer discovery, but since bootstrap nodes don’t support pubsub, the discovery doesn’t propagate.

This led me to explore using the DHT for peer discovery. Which I have some questions:

Does OrbitDB use the DHT to announce the database address?
If not, how should I use the DHT to allow other peers to find it during the open() process?
Assuming the database address is what’s looked up via IPFS, which I’m not entirely sure about.

Any help or suggestions on how to achieve this approach are greatly appreciated.
Here are my current Libp2pOptions for reference:
const Libp2pOptions = (port) => {
  return {
    addresses: {
      listen: [`/ip4/<IP_ADDRESS>/tcp/${port}`],
    },
    transports: [
      tcp()
    ],
    connectionEncrypters: [noise()],
    streamMuxers: [yamux()],
    peerDiscovery: [
      pubsubPeerDiscovery({
        interval: 1000,
        topics: ['_peer-discovery._p2p._pubsub'],
        listenOnly: false
      }),
      bootstrap({
        list: [
          '/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN',
          '/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa',
          '/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb',
          '/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt'
        ]
      })
    ],
    services: {
      identify: identify(),
      pubsub: gossipsub({
        allowPublishToZeroTopicPeers: true,
        emitSelf: true
      }),
      autoNAT: autoNAT(),
      kadDHT: kadDHT()
    },
  };
};

in my opinion:

If you are on a public network and not behind NAT, peer discovery works without issue with the public bootstrap nodes if you don't run your own gossipsub protocol.
OrbitDB databases e.g. have their own pub/sub topics, which the public bootstrap nodes do not subscribe to and don't care about.
If all your nodes connect to the same dbAddress, replication should work.
In my opinion, OrbitDB does not publish to DHT. However, you might want to ask someone else here, as I have never used it in production. From my own humble experience, DHT does not work easily when you are behind a NAT or even when using a browser. That said, this situation may have changed in the last 6-12 months.

If you are behind a NAT and possibly using a browser, the situation changes slightly:

If you have your own pub/sub protocol, you need a public relay node to find peers (which may be behind NAT or browsers that can connect via WebRTC peer-to-peer).
This also applies to OrbitDB databases: peers cannot discover or replicate with each other without a public relay node.

Does OrbitDB use the DHT to announce the database address?

TLDR: Yes, and you can query the DHT to find providers of the database manifest CID. DHT(CID) -> ProviderRecord[]
However, historically this has been hard because the JS and Go implementations IPFS have not been able to communicate easily and the supermajority of the DHT servers are Go nodes. This has been improving but not sure it's reliable yet.
The database address contains a CID of the database manifest. The database manifest is stored in IPFS using Helia. Content is routed on IPFS by CID. When content is add to Helia it will add a Provider Record for the CID to any content routers the libp2p instance gives it access to. The kadDHT service is used as a content router.

Thank you both for responding!
@silkroadnomad:

If you are on a public network and not behind NAT, peer discovery works without issue with the public bootstrap nodes if you don't run your own gossipsub protocol.

I couldn't get it working with the public bootstrap nodes using the default global peer discovery topic '_peer-discovery._p2p._pubsub'.
In the logs, I see this message:
libp2p:discovery:pubsub skipping broadcasting our peer data on topic _peer-discovery._p2p._pubsub because there are no peers present +1s

This led me to think that the public bootstrap nodes don't support pubsub, but it seems more likely that they aren't subscribed to this default topic.
What would be the correct way to propagate the discovery topic so my nodes can connect using the public bootstrap nodes?
@tabcat:

TLDR: Yes, and you can query the DHT to find providers of the database manifest CID. DHT(CID) -> ProviderRecord[]

From my understanding, Helia doesn't publish to the DHT by default—you need to explicitly provide the content, as mentioned here.
I looked into OrbitDB’s code but couldn’t find any explicit implementation for publishing to the DHT either.
I managed to connect two unknown peers using the DHT by explicitly providing the CID of the database address on one node, then searching for providers on the second node. However, the process was slow: providing the CID takes about 15–20 minutes on average, and searching takes another 5–10 minutes. These were two Node Daemon peers, so I’m unsure if it would work the same way when the searching node is in the browser.
This is why I’d like to focus on getting pubsub discovery working—it seems like it would significantly accelerate the process.
Thanks again for your help!

you need to explicitly provide the content, as mentioned https://github.com/ipfs/helia/issues/657#issuecomment-2476857648.

Ah, I didn't know this :+1:
You could try the delegated DHT service (iirc writing is supported) or running your own JS signalling servers so pubsub works.

@PradaJoaquin
Bootstrap nodes all work with PubSub. This is the heart of libp2p and IPFS. I cannot see any mistakes in your configuration. If your node connects to other nodes, PubSub always works by default via '_peer-discovery._p2p._pubsub'. Just check if your node is connected to any peers, for example, like so:
// Create Helia with the custom Libp2p instance
const helia = await createHelia({ libp2p });

helia.libp2p.addEventListener('connection:open', () => {
	connectedPeers.update(n => n + 1);
});

helia.libp2p.addEventListener('connection:close', () => {
	connectedPeers.update(n => n - 1);
});

If your node does not connect to any peers, just use the default libp2p settings and avoid making any changes to the libp2p configuration. The default configuration also enables more transports like WebRTC, WebTransport, QUIC, etc.
If you want your OrbitDB nodes to replicate their data, your public node needs to subscribe to OrbitDB's PubSub topics; this won't work with the default PubSub topic. OrbitDB automatically subscribes to the topic if it connects to exactly the same OrbitDB instance as created in your other nodes. The AccessController, database name, etc., must be exactly the same on all OrbitDB nodes. No need to manually subscribe, but if you know the OrbitDB topics you could do that, if you just want to play relay.

@tabcat:

Are you port forwarding to the server?

Yes, for the DHT approach, I have port-forwarded the listen addresses and announced them because, without this, the connection from the second peer would fail. I tested this using the IPFS check tool.
@silkroadnomad:
Thank you for the suggestions. I’ve created a simplified example to test whether peers can discover each other. Following your advice, I’m relying on most of the default libp2p settings. I’ve set aside OrbitDB for now since, first, the peers would need to be connected for database replication to happen.
Here’s what I’ve observed:

Connections to other peers are being made. However, the logs indicate, as before, that the PubSub discovery mechanism does not seem to broadcast peer data effectively because no peers are subscribed to the same topics (both default and custom).

libp2p:discovery:pubsub skipping broadcasting our peer data on topic custom-topic_peer-discovery._p2p._pubsub because there are no peers present
libp2p:discovery:pubsub skipping broadcasting our peer data on topic _peer-discovery._p2p._pubsub because there are no peers present

Occasionally, peers discover each other, but this happens sporadically, likely due to random DHT walks.
Logs from gossipsub show that they receive and send topic subscriptions and identify the same peer across both nodes. This suggests some level of discovery is happening, but it’s unclear whether this is through DHT or another mechanism, because the broadcast is not being made. It would be helpful if a peer that knows multiple peers with the same topic could relay this information, allowing those peers to connect directly.

Here’s a snippet from the logs demonstrating these interactions:
2024-12-08T23:42:04.122Z libp2p:gossipsub create inbound stream 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk
2024-12-08T23:42:04.122Z libp2p:gossipsub rpc.from 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk subscriptions 2 messages 0 ihave 0 iwant 0 graft 0 prune 0
2024-12-08T23:42:04.122Z libp2p:gossipsub subscription update from 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk topic /record/L2lwbnMvACQIARIg7CFQxA3PsxSNV4-zBw6l3OX92bTBqKMODubnVsHVuZU
2024-12-08T23:42:04.122Z libp2p:gossipsub subscription update from 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk topic /record/L2lwbnMvACQIARIgy2SPyEkd-E1TUBSFL3TIK5x_9pz2R8wNKvTK-kNcO7A
2024-12-08T23:42:04.645Z libp2p:gossipsub create outbound stream 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk
2024-12-08T23:42:04.645Z libp2p:gossipsub send subscriptions to 12D3KooWRi7rFDooyANicb7YBb22webt8pi4L92SGU4MgNR5sZrk

I understand this may seem tangential to OrbitDB. However, I believe resolving these issues will provide a helpful example of connecting and replicating a database across peers without prior knowledge of each other's multiaddresses or being on the same local network, as most examples use mDNS for discovery.
Are there any specific steps or configurations I might have missed to make PubSub peer discovery work?
Thanks again for your help!
Here’s the code I’m testing:
import { createHelia, libp2pDefaults } from 'helia'
import { gossipsub } from '@chainsafe/libp2p-gossipsub'
import { bootstrap } from '@libp2p/bootstrap'
import { pubsubPeerDiscovery } from '@libp2p/pubsub-peer-discovery'

// Create libp2p options from the helia defaults
const libp2pOptions = libp2pDefaults()

// Add gossipsub as the pubsub mechanism
libp2pOptions.services.pubsub = gossipsub({
    allowPublishToZeroTopicPeers: true
})

// Remove mdns from default and add pubsub-peer-discovery and bootstrap.
// We remove mdns so peers don't discover each other via the local network for this test.
libp2pOptions.peerDiscovery = [
    pubsubPeerDiscovery({
        interval: 1000,
        topics: ['custom-topic._peer-discovery._p2p._pubsub', '_peer-discovery._p2p._pubsub'], // Custom & global default topic
        listenOnly: false
    }),
    bootstrap({
        // We use the default list of bootstrap nodes, found in the helia repo:
        // https://github.com/ipfs/helia/blob/main/packages/helia/src/utils/bootstrappers.ts
        list: [
            '/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN',
            '/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb',
            '/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt',
            // va1 is not in the TXT records for _dnsaddr.bootstrap.libp2p.io yet
            // so use the host name directly
            '/dnsaddr/va1.bootstrap.libp2p.io/p2p/12D3KooWKnDdG3iXw9eTFijk3EWSunZcFi54Zka4wmtqtt6rPxc8',
            '/ip4/<IP_ADDRESS>/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ'
        ]
    })
]

// Create two nodes and wait for them to discover each other

const helia1 = await createHelia({ libp2p: libp2pOptions })
console.log(`Node1 started with id ${helia1.libp2p.peerId.toString()}`)

const helia2 = await createHelia({ libp2p: libp2pOptions })
console.log(`Node2 started with id ${helia2.libp2p.peerId.toString()}`)

helia1.libp2p.addEventListener('connection:open', () => {
    console.log(`node1: connection:open`)
});
helia2.libp2p.addEventListener('connection:open', () => {
    console.log(`node2: connection:open`)
});

helia1.libp2p.addEventListener('peer:discovery', (evt) => {
    const peer = evt.detail
    console.log(`node1: discovered ${peer.id.toString()}`)
    if (peer.id.toString() === helia2.libp2p.peerId.toString()) {
        console.log('node1: Node 2 discovered')
        // finish the test
        process.exit(0)
    }
})

helia2.libp2p.addEventListener('peer:discovery', (evt) => {
    const peer = evt.detail
    console.log(`node2: discovered ${peer.id.toString()}`)
    if (peer.id.toString() === helia1.libp2p.peerId.toString()) {
        console.log('node2: Node 1 discovered')
        // finish the test
        process.exit(0)
    }
})

You can imagine that public libp2p seed nodes have thousands of nodes connected from all around the world. If you connect two nodes to it and expect them to immediately discover each other, that probably won't be the case, if you exclude discovery protocols such as mdns, which would be the fastest here.
You have the following possibilities:

If one peer knows the peerId of another, it could dial it in order to connect.  await helia1.libp2p.dial( "your-public-reachable-multiaddress/p2p/QmZ2R1h21iPYdsCiNeP3Dj8v2NgKkdzmGgXwC3fHwVSAou" ); (see: https://docs.libp2p.io/concepts/transports/listen-and-dial/)
If you don't know the peerId of the other and still want to quickly find your peers, you could set up your own public relay node with pubsub peer discovery, where both of your nodes are connecting to. In this case, you could use your custom peer discovery pubsub channe.

If you're starting with OrbitDB, it's very helpful to dive deep into libp2p and Helia. I admit this learning curve is a bit steep, but I believe you can easily manage it.
Check out these resources:
On the command line, type:
npx create-libp2p-app

to simulate your exact case (the sources you need will be generated for you).

If you really want to deep-dive into libp2p, check out:

Alex Potsides' "Writing Custom Protocols with js-libp2p"

The famous Universal Connectivity Example:

Universal Connectivity

Also, there are examples for Helia:

Helia Examples

And here for OrbitDB:

OrbitDB Liftoff


exclusive option with several key not working

exclusive option is not working as exepected for me
maybe linked to this :
http://docs.ansible.com/ansible/authorized_key_module.html
say :
This option is not loop aware, so if you use with_ , it will be exclusive per iteration of the loop, if you want multiple keys in the file you need to pass them all to key in a single batch as mentioned above.
i want to manage root ssh key (only used for emergency issue) for several user but i want/need to be sure, no other person can connect as root with ssh keys
I have create :
authorized_key_list:

name: root

key: "ssh-rsa ssh_user2_key1"
key: "ssh-rsa ssh_user2_key1"
authorized_key_list_group:

name: root
authorized_keys:

key: "ssh-rsa ssh_user3_key1"

so if

i set "authorized_key_exclusive: no" and exclusive: no,
anyone can edit manually the root ssh key and this ansible role will not change it or even detect it
i add authorized_key_exclusive: yes
i get only the ssh-rsa ssh_user3_key1 in my root account
if i add exclusive: yes on first ssh key ( aka "ssh-rsa ssh_user2_key1")
it's always recreate the root ssh keys and the result will be always "changed=1"

Thank you for using this role!
This is as expected. It's a known limitation of the authorized_key module.
You should file an issue in the ansible modules project to fix this problem on the fundamental level.
I'm not sure I wan't to implement a workaround in this role. You should never use config management as a security system. Everyone with the rights to alter the file already has root privileges, and can implement a dozen other workarounds to still get into the server. This will only give you a false sense of security.
I'll have a beter look at possible solutions after work, but I won't make promesses about this.

Best solution would be to make the exclusive option a per user thing, and then call the authorized_key module with a concatenated version of the list if it is set to yes.
But I'm still not convinced it's worth it. The only valid reason I can think of for using the exclusive option is when you use a github link for defining the keys. Because then your managing keys outside of your config management systemen.
All input/feedback/ideas/opinions welcome!

@roumano Any comments?

Hi,
Yes, It's a limitation on ansible side ( http://docs.ansible.com/ansible/authorized_key_module.html :
This option is not loop aware, so if you use with_ , it will be exclusive per iteration of the loop, if you want multiple keys in the file you need to pass them all to key in a single batch as mentioned above. )
But i don't think it's will be fixed soon, so i think it's will be good to have a workaround.
the workaround will be better in the role than earlier as it's will benefict for everybody & it's will prevent issue/error.
Do you think the role can flatten the list to pass them all in a single batch to module authorized_key ?

Best solution would be to make the exclusive option a per user thing, and then call the authorized_key module with a concatenated version of the list if it is set to yes.
But I'm still not convinced it's worth it. The only valid reason I can think of for using the exclusive option is when you use a github link for defining the keys. Because then your managing keys outside of your config management systemen.
All input/feedback/ideas/opinions welcome!

I used that solution (concatenation) in the past and it's working fine most the time, but than all the key attributes (key_options,state,etc.) can't be confgured per key, only per user.

And because of the question whether the option exclusive is really useful or not, I would say: Yes.
This is an easy way to make sure that the file contains only the entries you really want.
This also makes the option state: absent more or less superfluous.

The doc specifies the following:

Multiple keys can be specified in a single key string value by separating them by newlines.
[..]
If you want multiple keys in the file you need to pass them all to key in a single batch as mentioned above.

This has lead me, in my own project, with the following extra task:
- name: concat ssh keys
  set_fact:
    authorized_keys: "{% for f in ssh_keys %}{{ lookup('file', f) }}\n{% endfor %}"

- name: Add ssh pub keys
  authorized_key:
    ...
    exclusive: true
    key: "{{ authorized_keys }}"

There is only one other limitation, the comment option now adds the same comment to all keys.


[FR] display connection strength in perspective view via edge diameter

Display connectivity lines in 3D.

Line diameter and color should depend on connection strength

@dickscheid to ask those who generates connectivity visualising on how thresholding are usually done

probably out of scope at this stage.
closing issue.
feel free to reopen the issue if you feel this issue becomes relevant again.


Fix fetchAs

/cc @MangelMaxime @tforkmann

the problem was that .json is already converting the string to an js object and then thoth autodecoder is going nuts.

nice one!

Looks good, will add some tests using randomuser to be sure it's working this time.
It's what we are using for the Thoth / Elmish / Fetch example in the REPL.

Released in 2.0.2


Consistent tagging issue

There was an error tagging the file
Traceback (most recent call last):
File "./manual.py", line 232, in processFile
tagdata.writeTags(output['output'], settings.artwork, settings.thumbnail, width=output['x'], height=output['y'])
File "/root/sickbeard_mp4_automator/resources/metadata.py", line 181, in writeTags
if self.HD:
AttributeError: 'Metadata' object has no attribute 'HD'
Relocating MOOV atom to start of file.

e9017a3f0c6d6b6bbffc4bd2043d61d29e20b0f2
That should fix it

Thanks!

This fixed it.  Thanks again.


replymethod.code is not a function when replying with application/json

When replying to a failed login on POST /session with Accept:application/json, the server returns a 500 error reporting reply[method](...).code is not a function.
curl -X POST http://localhost:1811/session -d<EMAIL_ADDRESS>-H "Accept:application/json"
{"errors":{"title":"Internal Server Error","status":500,"detail":"An internal server error occurred"}}%

Debug: internal, implementation, error
    TypeError: reply[method](...).code is not a function
      at mc_utils.hash_password.hashed_password (multicolour-auth-jwt/index.js:99:96)

I also get an error with an Accept:vnd.api+json header
 TypeError: Uncaught error: Cannot read property 'uri' of null
    at Function.generate_payload [as application/vnd.api+json] (/.../multicolour-hapi-jsonapi/index.js:414:50)

I'll look into this but first issue is your multipart/form-data payload in the post to /session.
Should look more like this instead of multipart:
{
  "email"<EMAIL_ADDRESS>  "password": "password"
}

https://www.npmjs.com/package/multicolour-hapi-jwt

curl -X POST http://localhost:1811/session -d '{"email": "hello@newworld.codes","password":"password"}' -H "Accept:application/json"

Unhandled rejection TypeError: get_decorator_for_apply_value(...)(...).code is not a function
:(


fix(api): remove trailing slash from removeTimelineEvent API

Summary
Removes the trailing slash from removeTimelineEvent API, which is an unintentional error in #468.
Ticket Link

Closes #1965

Checklist

[ ] Telemetry updated
[ ] Gated by experimental feature flag
[ ] Unit tests updated

Hello @tnir,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@cpoile Thanks for merging!


test, # 170, #142: add run-with-est job

Adds a new run-with-est job. See issue #170 (and #142) for more details.
Note that the  job will fail because some models (growth_morphs, Big_Skate) were not passing on the main branch. Vermillion is flagged as failing because a smaller likelihood was found; this issue will be addressed in https://github.com/nmfs-stock-synthesis/ss-test-models/issues/8
I requested @iantaylor-NOAA to review; Ian, I know you have been dabbling a bit in github actions, so thought it might be possible for you to take a look? No worries if not, though.
@Rick-Methot-NOAA , maybe you could comment on if/when it is ok for this to be merged in? I know you have been making changes to SS, which should not conflict with anything in this PR, but feel free to let me know if we need to hold off on merging this for some reason.

I am working in a branch which I am confident can be merged later.  So go
ahead with your github actions upgrade when it is ready.
It seems that this new action for fast-running models will only be
initiated upon pull requests to main, but not upon pushes of exploratory
branches.  That seems logical, but let me know if I got that wrong.
On Tue, May 4, 2021 at 1:35 PM Kathryn Doering @.***>
wrote:

Adds a new run-with-est job. See issue #170
https://github.com/nmfs-stock-synthesis/stock-synthesis/issues/170 (and
#142 https://github.com/nmfs-stock-synthesis/stock-synthesis/issues/142)
for more details.
Note that the job will fail because some models (growth_morphs, Big_Skate)
were not passing on the main branch. Vermillion is flagged as failing
because a smaller likelihood was found; this issue will be addressed in
nmfs-stock-synthesis/ss-test-models#8
https://github.com/nmfs-stock-synthesis/ss-test-models/issues/8
I requested @iantaylor-NOAA https://github.com/iantaylor-NOAA to
review; Ian, I know you have been dabbling a bit in github actions, so
thought it might be possible for you to take a look? No worries if not,
though.
@Rick-Methot-NOAA https://github.com/Rick-Methot-NOAA , maybe you could
comment on if/when it is ok for this to be merged in? I know you have been
making changes to SS, which should not conflict with anything in this PR,
but feel free to let me know if we need to hold off on merging this for
some reason.
You can view, comment on, or merge this pull request online at:
https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172
Commit Summary

test, # 170, #142: add run-with-est job

File Changes

M .github/workflows/run-with-est.yml
https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172/files#diff-d8db27c671f82635acbd057788d5a50f10582135b0c2c0231ac3f3ea409e5724
(122)

Patch Links:

https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172.patch

https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPV4IET4X3HW4HTNYVGRCLTMBLAHANCNFSM44DM52EA
.

@Rick-Methot-NOAA , you are right - it will be run on pull request to main and pushes to main, but not on pushes to other branches. There is also a manual trigger.
We can update the build triggers if you think it would be helpful to have this run more frequently - Completely up to you, since this is a tool for you to use! It takes about 25 - 30 min to run.

much appreciated
On Tue, May 4, 2021 at 1:50 PM Kathryn Doering @.***>
wrote:

@Rick-Methot-NOAA https://github.com/Rick-Methot-NOAA , you are right -
it will be run on pull request to main and pushes to main, but not on
pushes to other branches. There is also a manual trigger.
We can update the build triggers if you think it would be helpful to have
this run more frequently - Completely up to you, since this is a tool for
you to use! It takes about 25 - 30 min to run.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nmfs-stock-synthesis/stock-synthesis/pull/172#issuecomment-832236447,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPV4IBU7LOCCFCFOKR4BVTTMBM2JANCNFSM44DM52EA
.

Closing this and merging into fix-main instead to test the code on that branch


Configure a GitHub issue template

Describe the feature
Description
MediaMTX is an incredible project. We're using it in production and it's stable however when we encounter errors a GitHub issue form will make it easier to submit issues and attach logs and hopefully make it easier for people to review what's submitted 🙂
We will see less issues closed because of missing fields

Making the OS selection a dropdown also removes the tasks completed message in the issue list

Preview

Template
.github/ISSUE_TEMPLATE/bug.yml
name: Bug
description:  Report a bug
title: "BUG: "
labels: ["bug"]
projects: []
assignees: []
body:
  - type: input
    id: version
    attributes:
      label: Which version are you using?
      description: MediaMTX version or commit
    validations:
      required: true
  - type: dropdown
    id: os
    attributes:
      label: Which operating system are you using?
      multiple: true
      options:
        - Linux amd64 standard
        - Linux amd64 Docker
        - Linux arm64 standard
        - Linux arm64 Docker
        - Linux arm7 standard
        - Linux arm7 Docker
        - Linux arm6 standard
        - Linux arm6 Docker
        - Windows amd64 standard
        - Windows amd64 Docker (WSL backend)
        - macOS amd64 standard
        - macOS amd64 Docker
        - Other (please describe)
    validations:
      required: true
  - type: textarea
    id: description
    attributes:
      label: Describe how to replicate the issue
      description: The maintainers must be able to REPLICATE your issue to solve it - therefore, describe in a very detailed way how to replicate it.
      placeholder: Tell us what you see!
      value: |
        1. start the server
        2. publish with ...
        3. read with ...
    validations:
      required: true
  - type: textarea
    id: logs
    attributes:
      label: Server logs
      description: Server logs are sometimes useful to identify the issue. If you think this is the case, set the parameter 'logLevel' to 'debug' and attach the server logs.
      placeholder: Paste or drag the log file here
      # placeholder: This will be automatically formatted into code, so no need for backticks.
      # render: shell
  - type: textarea
    id: network
    attributes:
      label: Network dump
      description: |
        If the bug arises when using MediaMTX with external hardware or software, the most helpful content you can provide is a dump of the data exchanged between the server and the target (network dump).

        That can be generated in this way:
          1. Download wireshark (https://www.wireshark.org/)
          2. Start capturing on the interface used for exchanging packets
            * If the server and the external hardware or software are both installed on your pc, the interface is probably "loopback", otherwise it's the one of your network card
          3. Start the server and replicate the issue
          4. Stop capturing, save the result in .pcap format
          5. Attach
      placeholder: Attach the pcap file by dragging it here

Search
https://github.com/bluenviron/mediamtx/issues?q=is%3Aissue+is%3Aclosed+"This+issue+is+being+automatically+closed+because+it+does+not+follow+the+issue+template."

Hello, create a PR and it will be merged.
The action that automatically closes issues is needed to prevent abuses, and it has been quite effective so far. If you take a closer look at the closed issues, you will notice that half of them are invalid, while the other half has been recreated with missing details that were not present before.
Let's see whether the template is enough to prevent abuses, or if it needs a side action that checks the template anyway.

I see your point. I'll close this issue

Thanks for creating and maintaining this project. It's so useful!

probably you didn't read properly - i said PLEASE CREATE A PR WITH THE CONTENT YOU POSTED ABOVE  :)
Otherwise i have to create it but your name won't appear as author.

the other half have been recreated with missing details

Yeah, the "Describe the feature" header is a very important detail...


Added Gabriel Maldonado to contributors list

Added Gabriel Maldonado + github link tot he contributors.md file.

Hi  @info-gabriel, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Remove 24-host path functions

Summary
Now that MerklePath handles bytes directly we can remove the Path functions in 24-host host.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

@damiannolan,  I would like to work on this issue

Thank you, @vishal-kanna!

@crodriguezvega Can you give more info about this issue?

@crodriguezvega @damiannolan Are these ChannelPath ChannelCapabilityPath ChannelUpgradeErrorPath path functions?

Hi @vishal-kanna, sorry for the delay. This issue refers to all the ...Path functions in the files _paths.go in the host package. Most of these functions should now only be used once (in the corresponding ...Key function), so the implementation can be moved to the ...Key function and get rid of the ...Path function. However, there might be some functions are used in more than one place, so maybe we need to see where it's best to keep those. You can open a draft PR and we can advise. Thank you for picking this issue!

Hi @vishal-kanna. Any updates or questions? As this work is in our current iteration, we would be happy to take over this work if you no longer have the opportunity to complete the issue


macOS: background items added

Every time the computer restarts I am getting persistent "Background Items Added" notifications from the Drata Agent.

macOS: 14.3 (23D56)

This is a persisting issue starting with Mac OS 13.x. There are some successful solutions listed out near the end of this thread on the Apple Community Forum starting about here https://discussions.apple.com/thread/254341579?answerId=258820826022&sortBy=best#258820826022. There's several other related threads that could help.
For the fastest response or more information regarding your account, please contact Drata support. We can collect some more diagnostic information to help you resolve this specific problem. Thank you.

After additional review, we will address a startup logic that exacerbates this issue in 3.6.1 that is separate from the platform issues above.


[vm] Allow native functions to reflect over the stack frame context. #265_147

Motivation

This gives access to ExecutionState (stack frame of calls) to native functions. This is needed e.g. to implement
programmatic access to the address of the calling function.

Also added another feature stacktrace which allows to enable stack trace capturing and only that in the VM. Currently, this is guarded by a feature testing for UTs which is to general.

Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
CI/CD tests are covered.

/canary

:sunny: Canary successful

/land


joint limits restricted to [-pi,pi]

when i excute the  command
roslaunch ur_bringup ur5_bringup.launch limited:=true robot_ip:=IP_OF_THE_ROBOT [reverse_port:=REVERSE_PORT]

The plan in moveit always failed.How can I resolve this problem.

I'm going to close this due to inactivity.
If you get around to it, please update the issue with more information and potentially re-open.


When multiple users set the same email, editing role information will be wrong

Describe the bug
When multiple users set the same email, editing role information will throw an exception.
To Reproduce
When multiple users set the same email

Add role to one of the users

This situation seems to be caused by the use of email information to query users within the framework

After thinking about it, we found that in the admin panel, we can't set up two roles of the same email, but in the STS.Identity In, we can change our email information to an existing email
Relevant parts of the log file
System.InvalidOperationException: Sequence contains more than one element
at System.Linq.ThrowHelper.ThrowMoreThanOneElementException()
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)    at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)    at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable1 source)
at Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore9.FindByEmailAsync(String normalizedEmail, CancellationToken cancellationToken)    at Microsoft.AspNetCore.Identity.UserManager1.FindByEmailAsync(String email)
at Microsoft.AspNetCore.Identity.UserValidator1.ValidateEmail(UserManager1 manager, TUser user, List1 errors)    at Microsoft.AspNetCore.Identity.UserValidator1.ValidateAsync(UserManager1 manager, TUser user)    at Microsoft.AspNetCore.Identity.UserManager1.ValidateUserAsync(TUser user)
at Microsoft.AspNetCore.Identity.UserManager1.UpdateUserAsync(TUser user)    at Microsoft.AspNetCore.Identity.UserManager1.AddToRoleAsync(TUser user, String role)
at Skoruba.IdentityServer4.Admin.EntityFramework.Identity.Repositories.IdentityRepository11.CreateUserRoleAsync(String userId, String roleId)    at Skoruba.IdentityServer4.Admin.BusinessLogic.Identity.Services.IdentityService22.CreateUserRoleAsync(TUserRolesDto role)
at CPDIS.IdentityServer.Admin.Controllers.IdentityController22.UserRoles(TUserRolesDto role) in E:\DevWork\OutSource\CPDIS\CPDIS.IdentityServer\src\CPDIS.IdentityServer.Admin\Controllers\IdentityController.cs:line 195    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
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|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

I will check it, thanks for reporting.
What is your configuration of identity? Do you use for login username or email? Do you configure possibility register same email twice?

Use username.
And I  modified the settings of StartupHelpers, will it be related to this?

I will test it, thanks for your setup 👍🏼

The problem is having multiple places where you can edit users with conflicting settings.
In the STS project you have
 services.AddIdentity <TUserIdentity, TUserIdentityRole> (options =>                 {                     options.User.RequireUniqueEmail = false;                 })
However in the Admin and Api project you can have
  services.AddIdentity <TUser, TRole> (options => {options.User.RequireUniqueEmail = true;})
This line causes that the EmailValidator try to pass when UpdateUserAsync is executed
Having two users with the same email
This validator crash on this line:
Users.Where (u => u.NormalizedEmail == normalizedEmail) .SingleOrDefault ()
The SingleOrDefault throws the ThrowMoreThanOneElementException.
In addition to throwing an error message instead of the DeveloperException and error 500, little can be done as user creation and validation policies and settings must be consistent between the IdentityServer instance and the Administration project.
To solve it in this project, perhaps it could take that value from a common place.  Any ideas?
In the case of using  the Admin project with an IdentityServer that is already in production, its mandatory to analyze the characteristics and restrictions of the IS to use it in the Admin project.
Bye!

@vicentt - thanks for you feedback regarding this issue - I will go through all app and test it.


Sometimes predict long, redundancy and repetitive chars, like 'parseqqqqqqqqqqqq'(ground truth is 'parseq')

Does any chance you know the reason? Thank you for your talented work!

Hello, please provide more details such as the model and weights used as well as the exact image you're using.

Hello, please provide more details such as the model and weights used as well as the exact image you're using.

I used the parseq trained on Chinese dataset, which contains about 6K chars, and used it for test dataset inference.

Sorry but I can't help you since:

I have no access to and am not familiar with the specific model you're referring to.
I have no access to and am not familiar with the data you're using.
PARSeq was developed and tested with Latin characters on primarily English text. I am not familiar with the intricacies of Chinese text.

You might want to try increasing the number of decoder layers, or using a larger version of the model since the Chinese charset is much bigger than the Latin one.

So I tinkered a lot and this is perhaps due to 'label_length' in main.yaml and the image size you are giving to the model.
In my case, with the model on hugging face; if you input an image with a single word parseq followed by white-spaces that are equivalent to 30-35 characters in total, the result is correct.
However, if we exceed this and input an image with length of lets say beyond 40 characters, redundant repetition of characters is seen.

gave me gatery.comminFreedom

gave me gateway.................

gave me gateway.
It is probably due to the face that model was trained on 1-word images and will hallucinate for longer labels.
I trained a model with label-length set to 65 and it was able to overcome this problem.

Thanks. I'll try your sollution.


Add Map view for stop

Next to the mode buttons the user should be able to select map view and see a Mapbox map with an additional link opening his preferred navigation app for navigation to the stop by walking

Feature is now implemented with #9 and #10


Weapon Scan skips the 6th Weapons Slot

skips the split in green

Hi there, this issue is hopefully resolved in the v1.1.1 prerelease. If it has been, please let us know so we can close this issue.

Please check out the recent v1.2.2 release. It improves finding inventory items as well as an update for the game's V2.5 UI update.


⚠ ClamAV has degraded performance

In adcf899, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 81 ms

Resolved: ClamAV performance has improved in e5ee391.


[mesheryctl] system stop: does not remove meshery-broker (Meshery Server not present)

See mesheryctl Command Tracker for current status of commands.
Current Behavior
mesheryctl system stop does not remove the meshery-broker custom resource despite one being present in the cluster.
Note: Meshery Server is not running in this situation.
Screenshots/Logs
$ mesheryctl system stop
Meshery deployments will be deleted from your cluster. Are you sure you want to continue [y/n]? y
Stopping Meshery...
Error: failed to stop Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: cannot delete CR meshery-broker: brokers.meshery.layer5.io "meshery-broker" not found
Usage:
  mesheryctl system stop [flags]

Flags:
  -h, --help             help for stop
      --keep-namespace   (optional) keep the Meshery namespace during uninstallation
      --reset            (optional) reset Meshery's configuration file to default settings.

Global Flags:
      --config string    path to config file (default "/Users/lee/.meshery/config.yaml")
  -c, --context string   (optional) temporarily change the current context.
  -v, --verbose          verbose output
  -y, --yes              (optional) assume yes for user interactive prompts.

$ kubectl get pods -n meshery
NAMESPACE     NAME                                     READY   STATUS    RESTARTS        AGE
meshery       meshery-broker-0                         2/2     Running   2 (4h50m ago)   22h
meshery       meshery-meshsync-7d4b9bc75b-ns5q7        1/1     Running   6 (4h49m ago)   22h

Environment

Host OS: Mac
Meshery Server Version: none
Meshery Client Version: stable-v0.6.0-rc-4
Platform: Kubernetes

Meshconfig
 mesheryctl system context view

Current Context: local

endpoint: http://localhost:9081
token: Default
token-location: auth.json
platform: kubernetes
components:
- meshery-app-mesh
- meshery-istio
- meshery-linkerd
- meshery-consul
- meshery-nsm
- meshery-kuma
- meshery-cpx
- meshery-osm
- meshery-traefik-mesh
- meshery-nginx-sm
channel: stable
version: latest

Contributor Resources

mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@leecalcote i wasn't able to reproduce this issue. Running mesheryctl system stop removed the namespace and  i get the following output.
➜ kubectl get pods -n meshery
No resources found in meshery namespace.

This issue was present if the mesheryctl system stop didn't perform fully (that is when interrupted in middle). This was one of the issues in Helm and it's fixed via --force flag I believe. @leecalcote is this issue still present?

@nishantwrp @alphaX86 thank you for confirming the behavior on this issue. Let's go ahead and close this one.


fix(Dropdown): Close on other dropdown click, configure positionFixed

Potentially temporary fix for closing dropdowns when other dropdowns are clicked.
We already have support for closing on blur, except when other dropdowns are clicked.

Add tabIndex and onBlur to wrapper (to support autoclose on any blur event, including clicking on another dropdown)
Add onFocus to menu so that autoclose doesn't get triggered if a blur is caused by focusing on a menu item. This doesn't seem possible currently, as popper.js doesn't support keyboard access, and therefore focus events on its contents. But this behavior is added here in case in the future, we use dropdown menus that allow focus events on their items.

Configure positionFixed, to support offset

Asana task
Reference for new approach
~As illustrated in the reference, click is also made the event on which the dropdown is toggled (rather than being configurable with click as a default option), and attached to the trigger directly. There don't appear to be any instances of dropdowns being opened otherwise (via other events). This change can be removed if desired.~
This change is potentially temporary as our dropdowns don't appear to be keyboard accessible currently? (Keyboard accessibility requirements for dropdowns.) This isn't supported by Popper.js either. An alternative such as Downshift (already being used for <Autocomplete/> in the EMR) could be appropriate to use here instead in the future.
There are some changes made to the markdown, which are for reviewer local testing convenience, and which are not intended to be merged.

Codecov Report

Merging #19 into master will increase coverage by 0.42%.
The diff coverage is 25%.

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   71.91%   72.34%   +0.42%
==========================================
  Files          12       12
  Lines         146      141       -5
  Branches       19       18       -1
==========================================
- Hits          105      102       -3
+ Misses         31       29       -2
  Partials       10       10

Impacted Files
Coverage Δ

src/Dropdown/Dropdown.js
38.46% <25%> (-2.45%)
:arrow_down:

Continue to review full report at Codecov.

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

 Could we remove the outline on the trigger div?

Lived on in https://github.com/heydoctor/molekule/pull/27


git@gitlab.alibaba-inc.com:alipods/specs.git 无法连接

=> Will start iOS app
=> pod update
Update all pods
Cloning spec repo alibaba-inc-specs from git@gitlab.alibaba-inc.com:alipods/specs.git
[!] Unable to add a source with url git@gitlab.alibaba-inc.com:alipods/specs.git named alibaba-inc-specs.
You can try adding it manually in ~/.cocoapods/repos or via pod repo add.
pod repo add alibaba-inc-specs git@gitlab.alibaba-inc.com:alipods/specs.git
Cloning spec repo alibaba-inc-specs from git@gitlab.alibaba-inc.com:alipods/specs.git
[!] /usr/local/bin/git clone git@gitlab.alibaba-inc.com:alipods/specs.git alibaba-inc-specs
Cloning into 'alibaba-inc-specs'...
ssh: connect to host gitlab.alibaba-inc.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

更新到最新版后，遇到同样的问题，完全用不了呀

我也遇到同样的问题， 这个  git@gitlab.alibaba-inc.com:alipods/specs.git 地址更本不存在了啊

podfile里的source不能访问，估计这是个内部gitlab，还是老实用cocoapods/specs吧，慢就慢点


[AIRFLOW-3546] Fix typos in jobs.py logs

Make sure you have checked all steps below.
Jira

[ x] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-3546
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[x ] Here are some details about my PR, including screenshots of any UI changes:
Scheduler logs the following:

...INFO - Setting the follow tasks to queued state:

this PR changes follow to following
Tests

[ x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
This is a trivial change which doesn't need tests

Commits

[x ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ x] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

[x ] Passes flake8

lgtm

for the doc change, I think we could skip ci(put [skip ci]?) for the pr

Codecov Report

Merging #4346 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #4346      +/-   ##
=========================================
- Coverage   78.11%   78.1%   -0.01%
=========================================
  Files         201     201
  Lines       16471   16471
=========================================
- Hits        12866   12865       -1
- Misses       3605    3606       +1

Impacted Files
Coverage Δ

airflow/jobs.py
77.39% <100%> (ø)
:arrow_up:

airflow/models.py
92.31% <0%> (-0.05%)
:arrow_down:

Continue to review full report at Codecov.

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


[Bug]: Unable to fetch and download the stories, try again! (Instagram stories section)

Is there an existing issue for this?

[X] I have searched the existing issues.

Current Behavior
I tried different celeb names there but it's not able to fetch their stories.
after loading, it gives the error.
Expected Behavior
It should work with stories also because everything works perfectly except this
To Reproduce
I am new to web
Anything else?
Thanks ;) for this amazing work
Hacktoberfest

[ ] Yeah

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @NomanBaigA
Thanks for pointing out the bug.
It has been resolved now.
If you'd like to support us, checkout this page

Hi @NomanBaigA Thanks for pointing out the bug. It has been resolved now.  If you'd like to support us, checkout this page

still not working. I am trying it with this link https://eazyloader.herokuapp.com/
and got a new error after loading -
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
am I trying it in the wrong way

@NomanBaigA
The app is working fine at our end.


Adds typescript types.

Hey there
We are currently working on a Zeplin extension (https://extensions.zeplin.io/jeremyzahner/jmscss).
For the sake of developer experience and error proneness, we've added TypeScript to the mix.
Since we already took the time to create all the types (and I'm quite convinced other extensions developers use TypeScript as well), we thought it would be best to maintain them right here (or in any other project inside the Zeplin organization).
Thanks for your work and for making developing extensions for Zeplin such a breeze. =)

Hey @jeremyzahner,
This is really awesome, thanks for your contribution!
zem` is the CLI tool to help extension developers build and publish extensions. So, I think it would be great if we can publish this to the @types organization on npm instead. What do you think about opening a pull request to DefinitelyTyped/DefinitelyTyped?
You can take a look at the following page for more details:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

@dirtybit Fair enough. =) Will do that.


findutils: Fix build on native FreeBSD

Description of changes
part of https://github.com/NixOS/nixpkgs/pull/296581
Disable tests, for the same reason (I believe) that they are disabled on Darwin.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin
[x] x86_64-freebsd

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Rebased locally nad retargetted to master.
BTW feel free to request review for such smaller things from me. I might not be able to find time for everything but I want to support this effort if I can.


Create logo/icon for community

Completed.

Attribution to:
Vectors and icons by Raisul Hadi in CC Attribution License via SVG Repo

https://www.figma.com/file/rQO9Xum5Xcaf1rnRhfe9mB/Django-Commons?type=design&node-id=0%3A1&mode=dev


std.typecons: Greatly simplify scoped()

The previous implementation was just terrible, presumably dating back to when align(N) was buggy.

FYI @ljmf00.

Ahhhhhgg, we are having the same problem as the TLS alignment on druntime.

Yeah, looks like there's a corresponding DMD backend issue for 32-bit COFF too. :(

Blocked by https://issues.dlang.org/show_bug.cgi?id=16098.

@kinke Windows CI tests are failing:
object.Error@(0): Access Violation
----------------
0x02A3E8ED in rt_finalize2
0x019AF400 in object.destroy!(false, std.typecons.__unittest_L8826_C9.C1long).destroy at D:\a\1\dmd\druntime\import\object.d(4154)
0x019C8577 in std.typecons.__unittest_L8826_C9.alignmentTest at D:\a\1\phobos\std\typecons.d(8856)
0x019C8526 in std.typecons.__unittest_L8826_C9 at D:\a\1\phobos\std\typecons.d(8874)
0x02A4FCB3 in int object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*))
0x02A4D0A6 in _d_run_main2
0x02A37234 in _d_run_main
0x00FBEECC in unittest._d_cmain!().main at D:\a\1\dmd\druntime\import\core\internal\entrypoint.d(30)
0x771105C9 in BaseThreadInitThunk
0x776E784D in RtlGetAppContainerNamedObjectPath
0x776E781D in RtlGetAppContainerNamedObjectPath
1/133 modules FAILED unittests

Yeah, same issue as ~a year ago. I assumed the compiler fix for https://issues.dlang.org/show_bug.cgi?id=16098 finally fixed this for DMD, but no it didn't.

****** FAIL release32 std.typecons
core.exception.AssertError@../dmd/druntime/import\core\lifetime.d(207): chunk is not aligned.

@kinke, what would it take to unblock this? I have Windows but not enough knowledge to reproduce on my own.

It presumably still takes a DMD backend fix wrt. violated (over-)alignment; maybe only 32-bit codegen specific, maybe not. Maybe for stack allocations, maybe for static data.

Looking good so far. (Ignore the Buildkite style failure, that is unrelated and has been fixed), the MacOS failures are random and expected.

oh, still fails on windows


docs: upgrade gatsby-mdx to gatsby-plugin-mdx and fix console warnings

Upgrade the gatsby-mdx plugin to the now official gatsby-plugin-mdx.
The last 3 commits in the PR clean up console warnings when running the docsite.

Coverage remained the same at 88.494% when pulling b13e88fe80bfff24ecefb1f1cd2d207f9874f5a1 on abutterworth/upgrade-mdx into 82205cf6c2b792c863051f6265e5bd038ec54193 on master.


getX should error if no data to query

example, getRoute() should update object error to state there is nothing to query

Actually this already works. I was going to throw an exception, but Python already throws an exception:

import bgpstuff
q = bgpstuff.Response()
q.getRoute()
Traceback (most recent call last):
File "", line 1, in
File "/home/mellowd/go/src/github.com/mellowdrifter/python-bgpstuff.net/bgpstuff.py", line 90, in getRoute
if not self.ip:
File "/home/mellowd/go/src/github.com/mellowdrifter/python-bgpstuff.net/bgpstuff.py", line 30, in ip
return self._ip
AttributeError: 'Response' object has no attribute '_ip'


Failed to generate the compressed file for module 'Cannot index into a null array'.

I am trying to publish a module from a MacOS.
@SydneyhSmith tagging you hopping you can help resolve this one quickly.
Steps to reproduce
Publish-Module -Name FakeFile -NuGetApiKey $ApiKey -Verbose

Expected behavior
Publish to module the gallery

Actual behavior

Publish-Module -Name FakeFile -NuGetApiKey $ApiKey -Verbose

VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Publish Location:'https://www.powershellgallery.com/api/v2/package/'.
VERBOSE: Module 'FakeFile' was found in '/Users/stephanevg/.local/share/powershell/Modules/FakeFile'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/items/psscript' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/items/psscript/FindPackagesById()?id='FakeFile'' for ''.
VERBOSE: Total package yield:'0' for the specified package 'FakeFile'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='FakeFile'' for ''.
VERBOSE: Total package yield:'0' for the specified package 'FakeFile'.
VERBOSE: Performing the operation "Publish-Module" on target "Version '1.0.0' of module 'FakeFile'".
 Tous droits réservés.
VERBOSE:
VERBOSE:          Restauration effectuée dans 207,53 ms pour /var/folders/vq/hqgkv59j4qn_pdk5shxnlfnm0000gn/T/1dbbd074-ce96-4fff-99c9-0b6beac99272/Temp.csproj.
VERBOSE:          Temp -> /var/folders/vq/hqgkv59j4qn_pdk5shxnlfnm0000gn/T/1dbbd074-ce96-4fff-99c9-0b6beac99272/bin/Debug/netcoreapp2.0/NotUsed.dll
VERBOSE:          Création réussie du package '/var/folders/vq/hqgkv59j4qn_pdk5shxnlfnm0000gn/T/1970254736/FakeFile/FakeFile.1.0.0.nupkg'.
VERBOSE:
VERBOSE: finished running /usr/local/share/dotnet/dotnet with exit code 0
Write-Error: /Users/stephanevg/.local/share/powershell/Modules/PowerShellGet/<IP_ADDRESS>/PSModule.psm1:10988:17
 Line |
10988 |  …             Publish-PSArtifactUtility @PublishPSArtifactUtility_Param …
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | Failed to generate the compressed file for module 'Cannot index into a null
      | array.'.

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Darwin 19.5.0 Darwin Kernel Version 19.5.0: Thu Apr 30 18:25:59 PDT 2020; roo…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

 Get-Module -ListAvailable PowerShellGet,PackageManagement

    Directory: /Users/stephanevg/.local/share/powershell/Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, G…
Script     <IP_ADDRESS>               PowerShellGet                       Desk      {Find-Command, Find-DSCResour…

    Directory: /usr/local/microsoft/powershell/7/Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.4.6                 PackageManagement                   Desk      {Find-Package, Get-Package, G…
Script     2.2.4                 PowerShellGet                       Desk      {Find-Command, Find-DSCResour…

PS /Users/stephanevg/Code> Get-PackageProvider -ListAvailable

Name                     Version          DynamicOptions
----                     -------          --------------
NuGet                    <IP_ADDRESS>          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, Fil…
PowerShellGet            <IP_ADDRESS>          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublishe…
PowerShellGet            <IP_ADDRESS>          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublishe…

I went and debugged a little bit setting a breakpoint here and there. I noticed that the splatted variable was missing some values that were actually set in my psd1 file (Tags and ProjectURI for what I could tell).
I am currently blocked as I need to publish public this module, but I have only this way to do so (there is not a way of doing it via the  website).

Same problem!
News

Hi,
I am currently blocked as I need to publish,
how can I do?
Best regards

Same Problem here under windows.
no solution, i cant publish

Same Problem here under windows too.

Cause is language maybe...
This script will search standard-out of dotnet command with text message.
[src\PowerShellGet\private\functions\New-NugetPackage.ps1]
$stdOut -match "Successfully created package '(.*.nupkg)'" | Out-Null
$nupkgFullFile = $matches[1]
My computer run in Japanese,  dotnet command output is Japanese.
パッケージ 'C:\Windows\Temp\1346427969\FooBar\FooBar.0.0.1.nupkg' が正常に作成されました。
So It's not match!
$matches is null. --> 'Cannot index into a null array.'

I use Italian. What is the solution?
Best regards

I downgraded to an older version and replaced the nuget.exe with an actual version. this worked for me.

I downgraded to an older version and replaced the nuget.exe with an actual version. this worked for me.

Wich version?
Best regards

I downgraded to an older version and replaced the nuget.exe with an actual version. this worked for me.

Wich version?
Best regards

Sorry for the Late answer, i was not at work for the last days.
I downgraded PowerShellGet To <IP_ADDRESS>
After the first usage of Publish-Module there will be an old nuget.exe at
C:\Users<UserName>\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\
I replaced the nuget.exe with with version <IP_ADDRESS>91
Then Publish-Module works fine for me.
Maybe you also need to set the correct TLS Version in the PowerShell Console with
[PS]> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Having the same problem, seemingly out of nowhere. I used this blog to solve my problem: https://sqldbawithabeard.com/2019/11/26/fixing-the-failed-to-generate-the-compressed-file-for-module-cprogram-filesdotnetdotnet-exe-error-when-deploying-to-the-powershell-gallery-using-azure-devops/

Having the same problem, seemingly out of nowhere. I used this blog to solve my problem: https://sqldbawithabeard.com/2019/11/26/fixing-the-failed-to-generate-the-compressed-file-for-module-cprogram-filesdotnetdotnet-exe-error-when-deploying-to-the-powershell-gallery-using-azure-devops/

Same problem here under windows

Hello same problem here.
had to change a line in the powershellget.psm1 ... even after installing the powershellget 3.0.0 latest beta version...
for me the problem was located in the New-NugetPackage function
had to change:
$stdOut -match "Successfully created package '(.*.nupkg)'" | Out-Null

to
$stdOut -match "Création réussie du package '(.*.nupkg)'" | Out-Null

because i'm working on a french version of windows.

I ran the following code in PowerShell to fix the problem.
"$env:LOCALAPPDATA\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe" |
Where-Object { !(Test-Path -LiteralPath $_ -PathType Leaf) } |
ForEach-Object {
    (New-Object System.Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', $_)
}

for me the problem was located in the New-NugetPackage function

This was also the issue on my German system.

Did someone tested the new v3 ??? I asked on twitter but no one answered... :(

I would love to know if using v3 helps to resolve this issue (https://www.powershellgallery.com/packages/PowerShellGet/3.0.11-beta).  If not we can't proceed to make bug fixes and updates there.

I would love to know if using v3 helps to resolve this issue (https://www.powershellgallery.com/packages/PowerShellGet/3.0.11-beta). If not we can't proceed to make bug fixes and updates there.

How do I install PowerShellGet 3.0.11-beta? Even after putting it into my modules folder and importing it, whenever I run Publish-Module it continues to load the stable version from C:\program files\windowsapps\microsoft.powershell_<IP_ADDRESS>_x64__8wekyb3d8bbwe\Modules\PowerShellGet.

for me the problem was located in the New-NugetPackage function

This was also the issue on my German system.

Hy chausner,
thanks for you´re answer. I also have a German windows with the same error. To what text do i need to change it since I don´t know how to capture the $stdout variable

@YIsoda Your solution is by far the easiest and most intuitive! I really hate it that this issue is present even after 3 years...

All methods doesn't work :(
Any news?

I fix it by installing Dotnet 7 and running @YIsoda command - $env:DOTNET_CLI_UI_LANGUAGE="en_US".
Thanks!

For those people still having the problem, there is an environment variable named NUGET_CLI_LANGUAGE, similar to DOTNET_CLI_UILANGUAGE, you have to set it to "en-us" in order to New-NugetPackage.ps1 to work. This was tested in Powershell version 2.2.5.  See reference: https://github.com/NuGet/Home/issues/12181


Patch 4

update cursor.md and system gesture.md

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

File
Status
Preview URL
Details

mixed-reality-docs/system-gesture.md
:bulb:Suggestion
View
Details

mixed-reality-docs/images/bloom-close.png
:white_check_mark:Succeeded
View

mixed-reality-docs/images/bloom-open.png
:white_check_mark:Succeeded
View

mixed-reality-docs/images/wrist-button-pinch.png
:white_check_mark:Succeeded
View

mixed-reality-docs/images/wrist-button-press.png
:white_check_mark:Succeeded
View

mixed-reality-docs/images/wrist-button-ready.png
:white_check_mark:Succeeded
View

mixed-reality-docs/system-gesture.md

Line 47: [Suggestion] Multiple H1s are not allowed. You can only have one top-level heading. NOTE: This Suggestion will become a Warning on 11/25/2019.
Line 60: [Suggestion] Multiple H1s are not allowed. You can only have one top-level heading. NOTE: This Suggestion will become a Warning on 11/25/2019.
Line 73: [Suggestion] Multiple H1s are not allowed. You can only have one top-level heading. NOTE: This Suggestion will become a Warning on 11/25/2019.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add necessary actions

Such as:

[x] Build necessary NuGet packages
[x] Build docker image

Initial release was built.


Bugfix Registry & ZapToken Tests

Summary
Closes #18
Enhances #21
Implementation

Converted the ZapToken class from Web3.js to Ethers.js
The ZapToken class can be instantiated with Ethers.js
Converted the ZapToken tests to use Ethers.js and reference the ZapToken functions to pass after running the Hardhat node and npm test
Changed how the Hardhat signers were being stored and accessed for the ZapToken and Registry tests
Added an initiateProviderCurve function at the end of the Registry test so a curve can exist after testing the clearEndpoint function

Files
ZapToken\zaptoken.ts
test\zaptokentest.ts
test\registrytest.ts
Branches
registry-refactor
zaptoken-refactor
bugfix-zaptoken+registry-tests
Visual Preview
While the Hardhat node is running and the contracts are deployed the tests will start with npm test

Great job here @kimanikelly


AssertionError: The rl-trained-agents\ppo folder was not found

hello，when i ran the enjoy.py, i met these errors:
Traceback (most recent call last):
File "C:/实验/rl-baselines3-zoo-master/enjoy.py", line 248, in
main()
File "C:/实验/rl-baselines3-zoo-master/enjoy.py", line 83, in main
assert os.path.isdir(log_path), f"The {log_path} folder was not found"
AssertionError: The rl-trained-agents\ppo folder was not found
python version:3.7,windows
thanks a lot

Have you read the dedicated part of the README.md?
https://github.com/DLR-RM/rl-baselines3-zoo#enjoy-a-trained-agent
You may have forgot the clone recursively :
git clone --recursive https://github.com/DLR-RM/rl-baselines3-zoo

Have you read the dedicated part of the README.md?
https://github.com/DLR-RM/rl-baselines3-zoo#enjoy-a-trained-agent
You may have forgot the clone recursively :
git clone --recursive https://github.com/DLR-RM/rl-baselines3-zoo

thanks a lot, i got it


AREPL won't open on mac

Process:               arepl [55016]
Path:                  /Users/USER/Downloads/*/arepl.app/Contents/MacOS/arepl
Identifier:            com.electron.arepl
Version:               ???
Code Type:             X86-64 (Native)
Responsible:           arepl [55016]

OS Version:            Mac OS X 10.11.6 (15G1611)

Crashed Thread:        0
Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @rpath/libnode.dylib
Referenced from: /Users/anon/Downloads/arepl-darwin-x64/arepl.app/Contents/Frameworks/Electron Framework.framework/Electron Framework
Reason: image not found

So a lot of my paths were wrong,  AREPL opens now but I still have one last issue to fix: when running the python evaluator I get the following error:

Uncaught Error: spawn python3 ENOENT

(ENOENT is not found)
But I am able to run the same exact path with python....

python3 /Users/anon/Documents/AREPL/arepl-darwin-x64/arepl.app/Contents/Resources/app/src/python/pythonEvaluator.py

Not sure what's up with that.

Oh and the reason for the initial error was that I was building on windows.  Once I built on mac the error went away.

closing this and creating a new issue (#50) for the last bug i need to fix


Return thrown error/rejected promise from t.throws

If a throws assertion passes, we should return the reason for said pass. That entails;

A thrown Error.
A Promise rejection.
An Observable error.

Loosely based on the description of #493. I consider it to be loosely based on it, because of the following differences (in the Promised-land):
// Desired
test(t => {
  const expected = new Error('foo');
  const actual = t.throws(() => Promise.reject(expected));
  t.is(expected, actual); // true
})

// Implemented
test(t => {
  const expected = new Error('foo');
  const actual = t.throws(() => Promise.reject(expected));
  t.is(expected, actual.reason); //true
})

I hijacked the result.reason property because I wasn't fully comfortable in excluding the base result properties out of a successful throws assertion, which was heavily used in test/promise and test/observable. However this can be changed quite easily, to more closely reflect the initial desires of #493.

Haven't taken a stab at docs for the changes made yet, I'll get on top of that on my way home from work.

I don't understand why you're changing lib/test. What am I missing?
No need to exhaustively test .throws(). Just need to verify it returns the thrown error. You do need a test for when a rejected promise is returned though. You shouldn't need to change the observable and promise tests.

Cool getting there!

I don't understand why you're changing lib/test. What am I missing?

This might be a case of me not writing the tests as one should to get it working as expected. But when going back and reverting the changes made to lib/test makes the following spec break;
// test/promise.js
test('throws becomes the promise rejection', function (t) {
	var rejection;
	ava(function (a) {
		a.plan(1);

		rejection = new Error('foo');
		var promise = Promise.reject(rejection);
		return a.throws(promise);
	}).run().then(function (result) {
		t.is(result.passed, true);
		t.is(result.result.assertCount, 1);
		t.is(result.reason, rejection);
		t.end();
	});
});

this line is the real deal-breaker in this specific case. Without it, I don't see how one would return the rejection reason to the callee.
Again, it's not that far-fetched that this test does not in fact belong here and I'm just doing it wrong.

Sorry, I phased out after having my supper last night (I blame Comedy Central). I got around to cleaning some stuff out, but I'm sort of at a loss on how to handle the test case for a Promise rejection.
So far I'm at this point;
test('.throws() becomes the rejection reason of promise', function (t) {
	var expected = new Error();

	assert.throws(Promise.reject(expected)).then(function (err) {
		assert.same(expected, err);
		t.end();
	});
});

But that's not actually testing the return value of throws. Still working on trying to figure that one out - I keep looking at test/promises and the way Promises are handled in there but, I haven't gotten it to work just yet.

Alright, I reckon we're good to go there with the latest changes made.

lib/test changes are gone.
test/[promises|observables] changes are gone.
Promise rejection assertion is in place in test/assert

Could potentially be cleaned up ever so slightly?

Code has been touched up as per @novemberborn's suggestions.

Let me know what you think, I've got an itch in my squash finger.

I guess a brief look from @jamestalmage would be warranted as well, given he's the author of #493.

To me, returning object with reason property is not logical. If t.throws() throws, everything is good and execution is continued, there's no "failure reason", because nothing failed. Why don't we just return error from t.throws()?

@vdemedes Sorry, I should've probably updated the OP. Like I stated before, I wasn't all too comfy with overriding the return value of test.exit to reflect what happened with test.throws. I overcomplicated the matter.

The way it works now is this;
test(t => {
  const expected = new Error();
  const actual = t.throws(Promise.reject(expected));
  t.same(expected, actual);
});

Whereas what I was doing in the beginning was something like so;
test(t => {
  const expected = new Error();
  return t.throws(Promise.reject(expected));
}).then(result) {
  // result.reason === expected
}

I was trying to cater to the test/promise suite, as opposed to testing throws where it should be tested (in test/assert). That whole snafu is gone now however, after touching up on the parts Mark mentioned.
I'll gladly edit the OP when I get a on the train. At work currently.

Oh great, so it does return thrown Error from t.throws(), right? No rush, thank you!

Oh great, so it does return thrown Error from t.throws(), right?

It does indeed! :)

@kasperlewau cool! Just some simplifications in the test. Feel free to push up a squashed commit when that's fixed and I'll merge.

@novemberborn Resolved, squashed, pushed. Let the CI wait commence.

@kasperlewau OK just the tiniest issue with the assertion. Feel free to force push again and I'll merge.

@novemberborn
Right-o! I'm still fairly new to ava (and tap for that matter). Coming from a chai background so I've hit the t.equal is not a function several times over now :wink:
Off topic; same is a little bit far fetched when you want to perform a deep comparison. If you think twice about it, it makes all the more sense though. imho.
I'll get this sorted out!

Rebasing and pushing in a jiffy.

Thanks @kasperlewau!

Glad I could help! : )

Thank you! Keep'em coming :)

Thanks a lot!


Allow for cf-input-placeholder on TagGroups

Hi @MikeSwider. Great. I'll merge into develop branch and it will be in the upcoming release.


get userInfo

Hello, how can I get the user's information and return it in the same function where I return the token?

This proyect Codeigniter 4 present a pŕoblem of bad implementation, please Pay special attention, to develop an application you need to fundamentally understand that the systems are based on Linux, not on Windows, please apply Insomnia in ves de postman and apply deployment in Linux instead of Windows or other systems. With this I hope to please understand that we are programmers, for this you must mature as a programmer or return to university.


next/release

:tada: This PR is included in version 1.22.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: