update the spelling to be exact: JAVA -> Java

[x] articles/virtual-machines/workloads/sap/businessobjects-deployment-guide.md
[x] articles/virtual-machines/workloads/sap/monitor-sap-on-azure.md
[x] articles/virtual-machines/workloads/sap/sap-planning-supported-configurations.md

Learn Build status updates of commit 2e79ea0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/virtual-machines/workloads/sap/businessobjects-deployment-guide.md
:white_check_mark:Succeeded

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

Learn Build status updates of commit cac3a45:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/virtual-machines/workloads/sap/businessobjects-deployment-guide.md
:white_check_mark:Succeeded

articles/virtual-machines/workloads/sap/monitor-sap-on-azure.md
:white_check_mark:Succeeded

articles/virtual-machines/workloads/sap/sap-planning-supported-configurations.md
:white_check_mark:Succeeded

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

#sign-off


The data couldn’t be read because it isn’t in the correct format

The request below was working fine before AFNetworking latest release:
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/html", nil];
[manager GET:@"http://www.banese.com.br/mapas/search_json.jsp" parameters:nil progress:nil success:^(NSURLSessionTask *task, id responseObject) { } failure:^(NSURLSessionTask *operation, NSError *error) {
}];

Now, I'm getting the error below:
The data couldn’t be read because it isn’t in the correct format
What's wrong?

Same issue is appearing for me. Any help?

I have the same issue, with plain @"text/html" in the acceptedTypes.


Support alpine image via gobinaries.com

I would like to run on alpine image of Docker by installing via gobinaries.com, but I got error message below:
/bin/sh: node-prune: not found

I think installation is complete, but the executable is not suitable for alpine environment.
Is it possible for you to support this using GoReleaser?
reproduction

version
1.1.0 (via gobinaries.com)
environment
node:12.15.0-alpine
sample project
https://github.com/TasukuUno/node-prune-test

hmm I imagine it should be linux/amd64, I'll boot up an Alpine container and see what's up, must not be detecting the env correctly

sounds like you have to compile with musl-gcc for Alpine, I'll open an issue in my gobinaries.com repo (still closed source ATM)

any progress or easy alternative?

@williamoliveira not yet, haven't had time to work on it

ok, I found an alternative, the yarn autoclean command

Current workaround (tested on node:14-alpine):
FROM node:14-alpine as builder

# Add dependencies
RUN apk add curl bash --no-cache

# Install node-prune
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin

# Build app
RUN npm install && (...)

# Run cleanup necessary dependencies
RUN npm prune --production && node-prune

The proposed workaround for in alpine does not work anymore, as install.goreleaser.com has been removed as of 2022-05-18
https://goreleaser.com/deprecations/#godownloader
This worked fine for me :
FROM node:14-alpine as builder

SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

# Install node-prune
RUN wget -qO- https://gobinaries.com/tj/node-prune | ash -s

# ...

FYI, setting /bin/ash -eo pipefail allows RUN to detect if a command fails in a pipe chain. Otherwise it only fails if the last piped command fails.

This worked for me:
FROM node:19-alpine as builder

RUN mkdir /app
WORKDIR /app

# node-prune
RUN wget -qO- https://gobinaries.com/tj/node-prune | sh

ENV NODE_ENV production

COPY . .

RUN npm install

...


Script program crashes when entering an empty statement

Just by pressing 'enter' in the command prompt.

Fixed. This has been easy ;-)


[SPARK-31473][SQL] AQE should set active session during execution

What changes were proposed in this pull request?

AQE creates new SparkPlan nodes during execution. This PR makes sure that the active session is set correctly during this process and AQE execution is not disrupted by external session change.
Why are the changes needed?

To prevent potential errors. If not changed, the physical plans generated by AQE would have the wrong SparkSession or even null SparkSession, which could lead to NPE.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Added UT.

cc @cloud-fan @JkSelf @Ngone51

Test build #121422 has started for PR 28247 at commit 4b750c7.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/26106/
Test PASSed.

Test build #121430 has started for PR 28247 at commit 877f6e1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/26114/
Test PASSed.

Test build #121422 has finished for PR 28247 at commit 4b750c7.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class JavaUserDefinedScalar
 class FMClassifierWrapperWriter(instance: FMClassifierWrapper) extends MLWriter
 class FMClassifierWrapperReader extends MLReader[FMClassifierWrapper]
 class FMRegressorWrapperWriter(instance: FMRegressorWrapper) extends MLWriter
 class FMRegressorWrapperReader extends MLReader[FMRegressorWrapper]
 class LinearRegressionWrapperWriter(instance: LinearRegressionWrapper) extends MLWriter
 class LinearRegressionWrapperReader extends MLReader[LinearRegressionWrapper]
case class LengthOfJsonArray(child: Expression) extends UnaryExpression
case class JsonObjectKeys(child: Expression) extends UnaryExpression with CodegenFallback
case class ShowViews(
case class ShowViewsCommand(
  class JDBCConfiguration(

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/121422/
Test PASSed.

Test build #121430 has finished for PR 28247 at commit 877f6e1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/121430/
Test PASSed.


sending message issue

I'm trying to use a java client named matrix-communication-client to send message, but always get an 403, any ideas? looks like it login successfully, the roomId is also correct, I think.

fixed. just simply because of wrong roomId. now I can send message!

👍


[FLINK-15652][Kubernetes] Support for imagePullSecrets k8s option.

What is the purpose of the change
It's likely that one would pull images from the private image registries, credentials can be passed with the Pod specification through the imagePullSecrets parameter,
which refers to the k8s secret by name. Implementation wise we expose a new configuration option to the users and then pass it along to the K8S.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

cc @wangyang0918 @TisonKun

Thanks for your contribution @zhengcanbin . Changes LGTM.
Would you please rebase on master and retest since it fails above? Ping me on tests pass.


single host group blueprints can only be used with single node clusters

Hi,
I am new to the cloudbreak and blueprint.
And now I use the following blueprint and group-size=1 to start a one-node testing cluster.  but I get the error as the "single host group blueprints can only be used with single node clusters":
{
"configurations": [
{
"nagios-env": {
"nagios_contact": "admin@localhost"
}
}
],
"host_groups": [
{
"name": "master",
"components": [
{
"name": "OOZIE_SERVER"
},
{
"name": "OOZIE_CLIENT"
},
{
"name": "HISTORYSERVER"
},
{
"name": "SUPERVISOR"
},
{
"name": "NAGIOS_SERVER"
},
{
"name": "TEZ_CLIENT"
},
{
"name": "AMBARI_SERVER"
},
{
"name": "APP_TIMELINE_SERVER"
},
{
"name": "GANGLIA_SERVER"
},
{
"name": "HDFS_CLIENT"
},
{
"name": "NODEMANAGER"
},
{
"name": "YARN_CLIENT"
},
{
"name": "MAPREDUCE2_CLIENT"
},
{
"name": "NAMENODE"
},
{
"name": "GANGLIA_MONITOR"
},
{
"name": "RESOURCEMANAGER"
},
{
"name": "HIVE_SERVER"
},
{
"name": "MYSQL_SERVER"
},
{
"name": "HIVE_CLIENT"
},
{
"name": "HIVE_METASTORE"
}
],
"cardinality": "1"
}
],
"Blueprints": {
"blueprint_name": "hive-singlenode-architecture",
"stack_name": "HDP",
"stack_version": "2.2"
}
}

Do you using the hosted version? (which is cloudbreak.sequenceiq.com)
--
<EMAIL_ADDRESS>On February 4, 2015 at 10:48:39 AM, Chen Jingci<EMAIL_ADDRESS>wrote:
Hi,
I am new to the cloudbreak and blueprint.
And now I use the following blueprint and group-size=1 to start a one-node testing cluster. but I get the error as the "single host group blueprints can only be used with single node clusters":
{
"configurations": [
{
"nagios-env": {
"nagios_contact": "admin@localhost"
}
}
],
"host_groups": [
{
"name": "master",
"components": [
{
"name": "OOZIE_SERVER"
},
{
"name": "OOZIE_CLIENT"
},
{
"name": "HISTORYSERVER"
},
{
"name": "SUPERVISOR"
},
{
"name": "NAGIOS_SERVER"
},
{
"name": "TEZ_CLIENT"
},
{
"name": "AMBARI_SERVER"
},
{
"name": "APP_TIMELINE_SERVER"
},
{
"name": "GANGLIA_SERVER"
},
{
"name": "HDFS_CLIENT"
},
{
"name": "NODEMANAGER"
},
{
"name": "YARN_CLIENT"
},
{
"name": "MAPREDUCE2_CLIENT"
},
{
"name": "NAMENODE"
},
{
"name": "GANGLIA_MONITOR"
},
{
"name": "RESOURCEMANAGER"
},
{
"name": "HIVE_SERVER"
},
{
"name": "MYSQL_SERVER"
},
{
"name": "HIVE_CLIENT"
},
{
"name": "HIVE_METASTORE"
}
],
"cardinality": "1"
}
],
"Blueprints": {
"blueprint_name": "hive-singlenode-architecture",
"stack_name": "HDP",
"stack_version": "2.2"
}
}
—
Reply to this email directly or view it on GitHub.

Yes, I use the hosted version. As I use the same blueprint, before the recent update, I can use it to start a standalone cluster, but now I cannot.

We no longer support single node clusters (min size is 3) due to a major architectural change/improvement underneath Cloudbreak (as of the latest release we use Consul underneath).
Sorry for any inconvenience - you can always use e.g. https://github.com/sequenceiq/docker-ambari/tree/1.7.0 locally if you'd like to setup single node clusters.

Okay, cool, thanks for the information


Find Method

Please add a find method.

Hi,
a search method is actually implemented but not documented.
$chain->search('foo');

I'm looking for something like
$chain->find(function ($item) use ($id) {
    return $item['id'] === $id;
});

Sounds like a good idea. Should we make Cocur\Chain\Link\Search::search() accept a callback or add a separate function find()?
Opinions?

to have one method is probably less confusing. So i'd say extend search()

hm changing the search method would either require a BC break or a very wonky signature:
search($needle, $strict = false, callable $matcher)

I don't think this is a BC break. The signature of search is mixed, we check first if $needle is a callback and array_search in the else.

ok sounds good, maybe we can utilize http://php.net/manual/en/function.array-filter.php for the implementation as it nearly covers the functionality we're looking for.

i've written an implementation but I'm still not sure if search is the right way to go for,
the current behavior of search is that it returns the matching key of the item inside the array.
So:
$chain = new Chain['foo', 'bar'];
$chain->search('bar'); // returns 1

My current implementation behaves the same way:
$chain = new Chain['foo', 'bar'];
$chain->search(function($item) {
  return $item === 'bar';
}); // returns 1

I think what @TitanNano want's is to return 'bar'

@gries yes that's what I'm looking for.

Good point @gries . Then we should add a new method find().

Fixed in #17, thanks @gries


[Request] FFmpeg Builds for yt-dlp

Package Request
Information
Name: [name of new package]
FFmpeg Builds for yt-dlp [ffmpeg-yt-dlp]
Description: [clear and concise details of what it is]
FFmpeg to be used with yt-dlp
Homepage: [a URL/link]
https://github.com/yt-dlp/FFmpeg-Builds
Download link(s): [URL(s)/link(s)]
https://github.com/yt-dlp/FFmpeg-Builds/releases/tag/latest
https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip
https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win32-gpl.zip
Some indication of popularity/repute: [GitHub stars/software reviews etc.]
66 stars

The BtbN builds are notorious for breaking manifests like every week.
Very hard to maintain.


Fix response headers

Since HttpStreamingResponse#headers returns a HeaderHash with Array-keys,
e.g.
    {"cache-control"=>["max-age=300, public"]}

we need to normalise this to something like
    {"cache-control"=> "max-age=300, public"}

in order to not break other middlewares processing the headers further down the pipe.
In our case we encountered a problem when working with rack-wwwhisper,
see Rack::WWWhisper::NoPublicCache#call (https://github.com/wrr/rack-wwwhisper),
since it tries to call .gsub on the 'Cache-Control'-header.
While at it, I reused some more methods from the rack-proxy gem, and added a .travis.yml to run tests on ruby  1.9.3, 2.0.0 and 2.1.2.

:+1:

Looks good. I will cherry-pick first 2 commits on top of https://github.com/waterlink/rack-reverse-proxy (new main repo). It already has proper .travis.yml file.

Merged here: https://github.com/waterlink/rack-reverse-proxy/pull/6

@waterlink merci. :+1:


Support Neovide

Question or Suggestion
I've found a couple of issues working with neovide and cyberdream

telescope background color is black (not transparent anymore)
when moving cursor back and fort between trouble document symbols and editor, the editor loses its transparency
vim.notify is no longer transparent
mini.files is no longer transparent
Executing :Lazy now lost its transparency (it has a black background)
The bullet point above is applicable when executing :Mason

Hello @idelice 🙂
It looks like this is known shortcoming of the Neovide project. These and all other related transparency problems should be resolved when this RFC and it's child items are implemented.
Until then, I'm not sure if there's anything we can do with cyberdream.nvim to combat these. If you go through the linked issues, you may be able to find some suitable workarounds.
Once the issue is resolved, we could probably document some sensible default settings to pair with Neovide to achieve certain looks.


ScannerCommand: Log about the local file storage at info level if in use

Signed-off-by: Sebastian Schuberth<EMAIL_ADDRESS>

This change is

/rebase


【AQL Grammar】how to write the AQL statement which's function equal to "g.inE("tech").otherV().inE('friends').otherV()" ?

AQL Grammar Question：
How to write the AQL statement that is used to traverse the path step-by-step，below is the gremlin statement:
g.outE("tech").otherV().outE('friends').otherV();   // gremlin query statement

how to implement the same function in AQL？

To achieve a traversal similar to g.inE("tech").otherV().inE('friends').otherV() in AQL, implying a traversal starting from a certain type of edge (tech), moving to its vertices, and then traversing another set of edges (friends) to reach other vertices, you can use the graph traversal capabilities of AQL. However, the exact equivalent AQL statement depends on the structure of your graph and the names of your collections. Assuming tech and friends are edge collections and you have a named graph that includes these collections, you could write something like:
FOR v, e, p IN 1..2 ANY 'startVertex' GRAPH 'yourGraphName'
  FILTER p.edges[0].yourEdgeTypeAttribute == 'tech' AND p.edges[1].yourEdgeTypeAttribute == 'friends'
  RETURN v

This query does the following:

Starts the traversal at 'startVertex', which you need to replace with your actual start vertex identifier.
Uses 1..2 to define a traversal depth of 1 to 2 hops.
Uses ANY direction for edges, which you might need to adjust based on your actual edge directions (INBOUND or OUTBOUND).
Filters paths where the first edge is of type tech and the second edge is of type friends. You would need to replace yourEdgeTypeAttribute with the actual attribute name in your edge collections that determines the type of relationship (tech or friends).
Returns the vertices found at the end of these paths.

Please note that you'd have to replace 'yourGraphName' with the name of your graph, and yourEdgeTypeAttribute with the actual attribute name used in your edges to specify their type (e.g., a relation type like tech or friends). This example assumes the graph consists of vertices and edges where edges have an attribute indicating their type, which is a common pattern but might need adjustments based on your schema.
This example demonstrates a general approach. The specifics depend on your graph's schema, especially how you distinguish between different types of relationships in the edge collections (1) .

When the statement has different direction，such as "g.inE("tech").otherV().inE('friends').otherV()"，below is the equivalent AQL：
To achieve a traversal in ArangoDB AQL that is functionally equivalent to the Gremlin query g.inE("tech").otherV().outE('friends').otherV(), you need to use ArangoDB's graph traversal capabilities. The Gremlin query essentially traverses from a set of vertices through incoming edges labeled "tech", to their opposing vertices, and then through outgoing edges labeled "friends" to their destination vertices.
A similar traversal can be expressed in AQL using the GRAPH_TRAVERSAL() or the specific FOR ... IN ... graph traversal syntax. Since ArangoDB uses named graphs and does not directly operate on edge types in the traversal syntax, you need to specify the direction of the traversal and the collections (edge and vertex collections) involved. Assuming you have a named graph and the edge collections are named accordingly to represent "tech" and "friends" relationships, here's how you could construct the query:
FOR techVertex IN 1..1 INBOUND @startVertex tech
  FOR friendVertex IN 1..1 OUTBOUND techVertex._id friends
    RETURN friendVertex

In this example:

Replace @startVertex with the ID of the vertex you want to start the traversal from.
The traversal starts by finding vertices (techVertex) that are connected through the tech edge collection in an inbound direction relative to the @startVertex.
From each techVertex, the query then finds vertices (friendVertex) connected through the friends edge collection in an outbound direction.
The result (friendVertex) is returned.

Please adjust the edge collection names (tech and friends) according to your graph's schema. If you're working with a named graph, you may instead use the GRAPH keyword followed by the graph's name to specify traversals.
Keep in mind that the performance and efficiency of the query can be affected by the graph's structure, the number of vertices and edges, and the indexing of the edge collections. This AQL example assumes a simplistic relationship structure for demonstration purposes.


🏷 feat(v3/types): add every stage instance types

About
This PR adds every stage instance types
Status

[ ] These changes have been tested against Discord API or do not contain API change.
[ ] This PR includes only documentation changes, no code change.
[ ] This PR introduces some Breaking changes.

finally commits are fixed


Create .github/workflows directory

Summary

Create a new .github directory to hold workflows and MD templates in the future
Inside workflows place a simple yml file(it doesn't required to work or do something for this moment)

I’d like to resolve this. i have a good background in devsecops

Can I jump on this task?

Hi, I'm Josué Brenes and I'll be working on issue.
I'm Dojo Coding member. ⛩
I estimate this will take 1 day to complete.
Proposed Solution for Issue
I would resolve this issue in the following way:

Create the .github Directory: Start by creating a new directory named .github in the root of the repository.

Add the Workflows Subdirectory: Inside the .github directory, create another folder named workflows. This folder will serve as the location for all workflow YAML files and MD templates in the future.

Create a Placeholder YAML File: Inside the workflows directory, add a simple YAML file (e.g., placeholder.yml). This file doesn't need to contain any operational code for now; it will act as a placeholder. An example content for the YAML file could be:
name: Placeholder Workflow
on:
  push:
    branches:
      - main
jobs:
  placeholder_job:
    runs-on: ubuntu-latest
    steps:
      - name: Placeholder Step
        run: echo "This is a placeholder workflow file."

Commit and Push: After creating the .github/workflows/placeholder.yml file structure, commit and push the changes to the repository. This setup will establish the necessary directory structure for future workflows and templates.

This approach ensures the repository is prepared for future workflow additions without requiring functional code at this moment.

I would love to work on this issue

Hey! Im Lau Chaves from Dojo Coding costa rica! Id like to contribute to this project! I have experience setting up github actions before :)
To resolve this, start by creating a new .github directory in the project’s root folder. Inside .github, add another folder called workflows. Then, within workflows, create a new file, like example.yml. This setup will be ready to hold future workflows and templates for GitHub Actions.

Hi Daniel,
I've been working with CD / CI workflows in the past few days and I'd like to contribute to this issue.
Plan:

Create the workflows directory
Create templates based on the project needs, specially for next.js.
Add some resources and examples for future configurations.

I've been doing this for Cofiblocks https://github.com/Vagabonds-Labs/cofiblocks/tree/main/.github/workflows
Thanks in advance!

Can I jump on this task?

Please can I do this?

Hello, my name is Akintewe, and I'd want to work on this issue.
I estimate it will take less than 12 hours to complete.
My Proposed Solution to Issue
I would tackle this issue in the following manner:
I would create the.github Directory: Begin by establishing a new directory named.github in the repository's root.
Add the Workflows subdirectory. Create a new folder titled workflows under the.github directory. This folder will eventually hold all workflow YAML files and MD templates.
Create a Placeholder YAML File: Inside the workflows directory, add a simple YAML file (for example, placeholder.yml). For the time being, no operational code is required in this file; it will serve as a placeholder. An example content for the YAML file could include:
ETA <24HRS :)

Hello, my name is Akintewe, and I'd want to work on this issue. I estimate it will take less than 12 hours to complete.
My Proposed Solution to Issue I would tackle this issue in the following manner:
I would create the.github Directory: Begin by establishing a new directory named.github in the repository's root.
Add the Workflows subdirectory. Create a new folder titled workflows under the.github directory. This folder will eventually hold all workflow YAML files and MD templates.
Create a Placeholder YAML File: Inside the workflows directory, add a simple YAML file (for example, placeholder.yml). For the time being, no operational code is required in this file; it will serve as a placeholder. An example content for the YAML file could include:
ETA <24HRS :)

Hi daniel
I am Kevin Latino and I have a deep passion for Web3 and I am currently working as a frontend developer intern at a Web2 company, focusing on Next.js. Additionally, I am an active member of Dojo Coding, a prominent Web3 community in LATAM, which has given me great exposure to decentralized technologies.
Recently, I won the Base LATAM's Buildathon. I am eager to continue growing and contributing, and see this as a fantastic opportunity to further develop my skills and make a significant impact.
This is my first OD Hack, so I will appreciate it if you give me the chance to contribute to this amazing project.
For this issue I will:
Create a directory called .github in the root of the project to organize workflows and Markdown templates. Inside this directory, create a subdirectory named workflows. Then add a simple YAML file named example.yml in the workflows folder. This file will act as a placeholder for future workflow definitions.

I will Create a github/workflows directory in the project root, add a simple yml file inside (non-functional for now), and commit the changes to prepare for future workflows
please sir can i be assigned to this issue @danielcdz

Can I tackle this one? I am new to onlydust

hey @danielcdz  👋 this one is ready to review https://github.com/KaizeNodeLabs/SafeSwap/pull/9 lmk any feedback!


Add httpd sidecontainer for GlanceAPI

This patch introduces an additional sidecontainer for GlanceAPI that is supposed to ProxyPass requests to the glance-api process behind.
This will also solve the problem of tls-everywhere for Glance, where the second segment is re-encrypted from the Route (created by the openstack-operator) to the Deployment.

The httpd will serve requests on 9292, while the glance-api service will be run locally on 9293.
The httpd instance will be customized in a follow up patch to mount certificates and add the related ssl directives

/test functional


How to create a new package for v5 ?

I want to create a new package for v5.
the package could be build (there are some right js files in  lib & dist of package)
But it's not included in  pixi.js.
And there are some errors :

Is @pixi/texture-animation included in the pixi.js dependencies in package.json? Could you provide your code/repo?

Yes , it's included in the pixi.js dependencies in package.json.
the repo is  https://github.com/finscn/pixi.js/tree/v5-plus

I know the reason :  the build script doesn't create  the  symbolic of texture-animation in bundles/pixi.js/node_modules/@pixi
How to do it ?

npm run bootstrap

I see.


MudSelect handling of enum types

Feature request type
Enhance component
Component name
MudSelect
Is your feature request related to a problem?
Our application has quite a number of enums associated with DTO properties.
When we bind these to form select components, traditionally empty items are now defaulted to the 1st item in the enumeration.
I can work around the issue by abstracting the select in a component that uses a list of strings; but it would be nice to not have a requirement to translate "some enum into strings" then back into "some enum value" because that's a lot of opportunity for us to create a translation bug.  Or worse, have the 1st optional value saved when the customer didn't explicitly set an optional value.
Describe the solution you'd like
It would be nice if the select component could handle a nullable type.  Or at the very least not select the 1st option when the bound property value doesn't match any of the options.
An example of the desired implementation for our enum types:
https://try.mudblazor.com/snippet/mkccbPOdotjpgVIT
The desired behavior, because the DTO property is "empty", would be that it shows the label instead of the 1st option:

Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

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

I second this. As I understand it, Clearable makes only sense for reference types at this point.
This should work the same way for value types, especially enums.


Add code to align neuropixel insert with ecog/opto32

aopy.visualization functions still need to be updated.

Actually I'm not sure what makes the most sense to update the aopy.visualization functions.  Either:

Update the existing functions but will require more input args (i.e. subject)
Write new functions specifically for NP insert.
Leave as is. (The plotting isn't difficult)

Note: I also updated visualization.overlay_image_on_spatial_map() to allow the user to optionally translate the image.

moved to #603


add documentation for AWS role based access

Description
Added documentation for setting up AWS role based access for Nephe. The example role permission is checked using integration test.
Closes #181

/nephe-test-e2e-agentless


openjdk image is deprecated

https://github.com/rtuszik/photon-docker/blob/e26c5c9e1096a1f0db0b5e098aa65771d14eb445/Dockerfile#L1
According to https://hub.docker.com/_/openjdk/ this image is deprecated and going away.
I'm not sure what the best alternative is. I'm using FROM adoptopenjdk/openjdk11 personally.

Thanks. I have updated the Dockerfile!


What is the pretrain scripts?

Thank you for your excellent work. If I want to use this data for pretraining and conduct a rigorous comparison with the DCLM-BASELINE 7B model mentioned here, what hyper-parameters should I use? Could you provide the corresponding script? Thank you.

Hi @mathfinder ,
You can find the training configuration files under training/configs. E.g. for the 7B-1x scale, the corresponding config with all the hyperpameters is https://github.com/mlfoundations/dclm/blob/main/training/configs/7b_1x_fast_2e-3_lr_5e-6_zloss.json
Please let us know if the above helps!

A small follow - up: for the largest model that we trained (beyond the competition scales), we used the same hyperparameters as the 7B-2x scale, along with the cooldown process described in Appendix P of our paper.

Thanks for your reply, but I am still confused.
The following pre-training script template
torchrun --nproc-per-node 8 -m training.train --scale <scale> <tokenized_json> --logs <log_dir> [--remote-sync <s3_bucket>] [--chinchilla-multiplier <multiplier>] [--clean-exp] [--report-to-wandb]
Which one should be filled in <tokenized_json> to align with the results reported by leaderboard?

I guess data-config is exp_data/datasets/tokenized/c4_original.json? Just like the following script:
torchrun --nproc-per-node 8 -m training.train --scale="7b_2x_fast_2e-3_lr_5e-6_zloss" --data-config="exp_data/datasets/tokenized/c4_original.json"  --report-to-wandb

Hi @mathfinder ,
For the DCLM-baseline dataset, you will need to first use DCLM-baseline from here: https://data.commoncrawl.org/contrib/datacomp/DCLM-baseline/index.html and create an untokenized json file similar to the ones found in exp_data/datasets/raw_sources.
After doing so, you should tokenize it using the instructions in this repository. This will produce a new json file under exp_data/datasets/tokenized, which you can then use as tokenized_json for --data-config.

And by the way, could you please provide the tokenized and shuffled dataset so that we can directly reproduce the experiment?

Hi @mathfinder !

For the highlighted experiment, you don't need to do upsampling / downsampling of sources, so you don't need the --do_sample parameter or the associated yaml file - you can safely ignore this.
I will check in with the rest of the team regarding the tokenized dataset - given the size of these datasets there are some considerations regarding hosting multiple versions of the data.

Hi @mathfinder !

For the highlighted experiment, you don't need to do upsampling / downsampling of sources, so you don't need the --do_sample parameter or the associated yaml file - you can safely ignore this.
I will check in with the rest of the team regarding the tokenized dataset - given the size of these datasets there are some considerations regarding hosting multiple versions of the data.

It will be very helpful for reproduction with multiple version of data!

Hi @mathfinder !

For the highlighted experiment, you don't need to do upsampling / downsampling of sources, so you don't need the --do_sample parameter or the associated yaml file - you can safely ignore this.
I will check in with the rest of the team regarding the tokenized dataset - given the size of these datasets there are some considerations regarding hosting multiple versions of the data.

Oh, that sounds amazing! I'm really looking forward to seeing your progress.

Hi @mathfinder ,
This script should work on local datasets as well, as long as you spin up a ray cluster locally. Are you encountering any specific errors when trying to do so?


KZ3SMTLibParser should be faster

After some profiling, I found that KZ3SMTLibParser is running 40% of the time on these tests.

I think that it can be fixed :)
Some reproduction code:
package org.ksmt.solver.z3

import org.junit.jupiter.api.Test
import org.ksmt.KContext
import java.nio.file.Path
import java.nio.file.Paths
import kotlin.io.path.listDirectoryEntries

class Test {
    @Test
    fun test() {
        val paths = PathsProvider.paths()
        repeat(times = 10) {
            for (path in paths) {
                val solver = KZ3Solver(KContext())
                val expr = KZ3SMTLibParser(KContext()).parse(path).first()
                with(solver) { assert(expr) }
                solver.close()
            }
        }
    }
}

object PathsProvider {

    @JvmStatic
    fun paths() = testDataLocation().listDirectoryEntries("*.smt2")

    @JvmStatic
    private fun testDataLocation(): Path = this::class.java.classLoader
        .getResource("tests")
        ?.toURI()
        ?.let { Paths.get(it) }
        ?: error("No test data")
}

Thanks for your report.
Could you please specify the version of KSMT?
After some investigation on the latest version (0.3.0) i can break the profile down into the following parts:

23% -- native parsing. Can't be optimized.
31% -- conversion from native to KSMT. Can be optimized up to about 25%.
46% -- native context initialization. Can't be optimized in general case.

Therefore, in general case, we can speed up parsing by up to 10%, which is not so much.
If you need to parse many files and you are ready to manage the native context by yourself, you can define your own parser.
Something like:
class KZ3SMTLibSequentialParser(private val ctx: KContext) : KSMTLibParser, AutoCloseable {
        // Create a single native context for all parsing actions
        private val z3Context = KZ3Context()

        override fun close() {
            z3Context.close()
        }

        override fun parse(smtLibFile: Path): List<KExpr<KBoolSort>> = parse {
            parseSMTLIB2File(
                smtLibFile.absolutePathString(),
                emptyArray(),
                emptyArray(),
                emptyArray(),
                emptyArray()
            )
        }

        override fun parse(smtLibString: String): List<KExpr<KBoolSort>> = error("unused")

        private fun parse(parser: Context.() -> Array<BoolExpr>) = try {
            z3Context.convertAssertions(z3Context.nativeContext.parser().toList())
        } catch (ex: Z3Exception) {
            throw KSMTLibParseException(ex)
        }

        private fun KZ3Context.convertAssertions(assertions: List<BoolExpr>): List<KExpr<KBoolSort>> {
            val converter = KZ3ExprConverter(ctx, this)
            return with(converter) { assertions.map { it.convertExprWrapped() } }
        }

        companion object {
            init {
                // ensure z3 native library is loaded
                KZ3Solver(KContext()).close()
            }
        }
    }

This is basically the copy paste from original KZ3SMTLibParser with native context reused.
Usage example:
val ctx = KContext()
KZ3SMTLibSequentialParser(ctx).use { sequentialParser ->
    repeat(17) {
        files.forEach { file ->
            sequentialParser.parse(file)
        }
    }
}

Note, that parser is now closable.
Ps. parser may become stateful and closable in future versions of KSMT, but if you don't want to wait, you can use this peace of code.


[Issue] Request for new Access Token failed! Logged out...

I got an error when I bot after 40 mins.
Here is the error message...
2016-08-25 10:46:24,738 [ pgoapi] [ERROR] Request for new Access Token failed! Logged out...
Traceback (most recent call last):
File "pokecli.py", line 88, in
main()
File "pokecli.py", line 80, in main
bot.run()
File "/root/OpenPoGoBot/pokemongo_bot/bot.py", line 140, in run
self.stepper.current_lng
File "/root/OpenPoGoBot/pokemongo_bot/mapper.py", line 33, in get_cells
response_dict = self.api_wrapper.call()
File "/root/OpenPoGoBot/api/init.py", line 107, in call
results = request.call()
File "/root/OpenPoGoBot/src/pgoapi/pgoapi/pgoapi.py", line 244, in call
raise NotLoggedInException(error)
pgoapi.exceptions.NotLoggedInException: Request for new Access Token failed! Logged out...

I do not think there is a way to avoid it, happens to me to, once I restart the Bot it works right away.


Interpreter: handle yield with splat combined with tuple unpacking

Fixes #12227

@asterite This PR breaks the existing interpreter tests.

Thanks! I pushed a commit that should fix things.

@straight-shoota thank you for the marathon review!

Thanks for your marathon patches 🙇
I just try to help you keep rolling 😉


Adding support for bugzilla

Forgot to leave a screenshot of what the integration looks like. Pull up a specific bug and the "Start timer" button is next to the description.

Thank you for your contribution.


Add Node's path module

Add Node's path module to the static-files example.

Seems like a useful change for people that don't realise it's how you should be doing it. However, can you avoid unnecessary changes? Just make it path.join inline instead of using variables, and avoid the new additions. I'd also follow the existing code style, which is to have a space after the comma between arguments.

Thanks for the feedback :) , actually this is my first contribution so I'm still learning how to improve the code properly.

Awesome! It looks great now 😄
FWIW, you can also do path.join(__dirname, 'public/css'). Either way, I'm happy to merge this change!

Thank you :smile:

Shouldn't this also be updated at https://expressjs.com/en/starter/static-files.html (https://github.com/expressjs/expressjs.com/blob/gh-pages/en/starter/static-files.md)?

@bbodenmiller see https://github.com/expressjs/expressjs.com/pull/719


[Snyk] Upgrade pg from 8.2.1 to 8.13.0

Snyk has created this PR to upgrade pg from 8.2.1 to 8.13.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 25 versions ahead of your current version.

The recommended version was released on 2 months ago.

Release notes

Package name: pg

8.13.0 -<EMAIL_ADDRESS>

8.12.0 - 2024-06-04

8.11.6 - 2024-06-04

8.11.5 - 2024-04-02

8.11.4 - 2024-03-30

8.11.3 - 2023-08-16

8.11.2 - 2023-08-01

8.11.1 - 2023-06-26

8.11.0 - 2023-05-15

8.10.0 - 2023-03-06

8.9.0 - 2023-01-27

8.8.0 - 2022-08-23

8.7.3 - 2022-02-04

8.7.1 - 2021-07-27

8.7.0 - 2021-07-27

8.6.0 - 2021-04-13

8.5.1 - 2020-11-13

8.5.0 - 2020-11-10

8.4.2 - 2020-10-26

8.4.1 - 2020-10-08

8.4.0 - 2020-10-04

8.3.3 - 2020-08-26

8.3.2 - 2020-08-18

8.3.0 - 2020-07-09

8.2.2 - 2020-07-07

8.2.1 - 2020-05-15

    from pg GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

:warning: Snyk checks are incomplete.
:warning: security/snyk check encountered an error. (View Details)


[BUG] connection

Why is it that every time I use the pairing code, after I enter the code, the connection is disconnect

After the first connection, it is necessary to reconnect to remain connected to the bot, not just to pair by code.
sock.ev.on("connection.update", (update) => {
     const status = (update.lastDisconnect?.error as Boom)?.output?.statusCode;

     if (status == DisconnectReason.restartRequired) {
            // Reconnect
    }
});

to

yes I've done it, but it's still like that before in another project it went smoothly do you want to see my code? you can see it at: https://pastelink.net/vrv0qx9g

I hope this code can answer your question (replace this.connect with your actual connect logic):
if (events["connection.update"]) {
    const {
        connection,
        lastDisconnect,
        qr,
    } = events["connection.update"];

    if (qr) {
        // do something
    }

    if (connection === 'close') {
        let reason = new Boom(lastDisconnect.error).output.statusCode;

        if (reason === DisconnectReason.badSession) {
            console.log(`Bad Session File, Please Delete and Scan Again`);
        } else if (reason === DisconnectReason.connectionClosed) {
            this.connect();
        } else if (reason === DisconnectReason.connectionLost) {
            this.connect();
        } else if (reason === DisconnectReason.connectionReplaced) {
            console.log("Connection Replaced, Another New Session Opened, Please Close Current Session First");

        } else if (reason === DisconnectReason.loggedOut) {
            console.log("Device Logged Out, Please Login Again");
        } else if (reason === DisconnectReason.restartRequired) {
            console.log("Restart Required, Restarting...");
            this.connect();
        } else if (reason === DisconnectReason.timedOut) {
            console.log("Connection TimedOut, Reconnecting...");
            this.connect();
        } else {
            this.socket.end(`Unknown DisconnectReason: ${reason}|${lastDisconnect.error}`);
        }
    }

    if (connection === "open") {

        console.log("Connected");
    }
}


Fix/Run E2Es from UI repo in pipeline

Some tweaks to our CI pipeline following #1495 to allow the E2E tests to run properly in our CI pipeline.

Require the E2Es to pass before merging. Whilst the E2Es won't be running against the code that has changed in the PR (they require the built and deployed dev Docker container of the UI to run - because of HMPPS Auth) this will prevent us from merging code when the E2Es have a pre-existing breakage.
We remove the superfluous npm i step.
Remove a test path to Withdraw an application after submitted. This was removed in the E2E test repo but not copied across.
Update the .gitignore to include some Playwright generated files
Update the package.json scripts so they function properly

Bit of a sidebar, it might be possible to add a manual step to build and deploy to the test environment and run the E2Es there too - probably overkill to have it on every push, but might be good to have as an option


Added .NET Core version and made key store agnostic to storage

Updated Renci.SshNet.dll to latest version.
Refactored the Trusted Keys class into Stores that are agnostic to the underlying storage so that it's not tightly bound to the registry. So far, Memory and Registry have been implemented.

Hi @darkoperator ,
First, thanks for your module, it really helped me complete a project of mine!
However, like some other people in the Issues list, I suffered from the storage of trusted keys into the registry.
In my case, I needed to use the module inside an Azure Function for a scheduled SFTP upload. So, .NET Core and no registry :).
First, I updated a bit your module to have a .NET Core project on the side, that basically reference by links every .cs file from the main project (could have tried multi targetting, I know...).
Then, I made a quick IStore interface, an in-memory implementation and refactored your registry storage into its own IStore implementation.
Finally, created a few cmdlets to instantiate the stores and modified the classes that required registry storage so that they could receive the stores by parameter (-Store $storage).
So far, works fine for an Azure Function.
I also tested it in Linux and PS 5.

Awesome! Really appreciate the contribution, Will have to learn to build it and will test it. Could make this the base for version 3.x. No clue what an IStore is. I had the idea for version 3.x to have the fingerprints to host in a JSON file on disk or to have the user pass it as a parameter -Fingerprint

On Dec 6, 2020, at 8:05 PM, pbrouillet<EMAIL_ADDRESS>wrote:
Hi @darkoperator https://github.com/darkoperator ,
First, thanks for your module, it really helped me complete a project of mine!
However, like some other people in the Issues list, I suffered from the storage of trusted keys into the registry.
In my case, I needed to use the module inside an Azure Function for a scheduled SFTP upload. So, .NET Core and no registry :).
First, I updated a bit your module to have a .NET Core project on the side, that basically reference by links every .cs file from the main project (could have tried multi targetting, I know...).
Then, I made a quick IStore interface, an in-memory implementation and refactored your registry storage into its own IStore implementation.
Finally, created a few cmdlets to instantiate the stores and modified the classes that required registry storage so that they could receive the stores by parameter (-Store $storage).
So far, works fine for an Azure Function.
I also tested it in Linux and PS 5.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-SSH/pull/357#issuecomment-739589826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHURVOKAJ3EWI2K33ZTSTQL6NANCNFSM4UPWJIFA.

Actually, IStore was just an abstraction layer I improvised.
It just has GetKeys and SetKey and returns an IDictionary<string, string> so that the underlying storage of keys could be whatever was needed by the current host.
A Json storage could be like this:
class JsonStore : IStore
{
FileStream _file; // Handle to file
    public IDictionary<string, string> GetKeys()
    {
        var hostKeys = // Read and deserialize files from disk
        return hostKeys;
    }

    public bool SetKey(string host, string fingerprint)
    {
        // Set or update key to disk
        return true;
    }

}
with its associated cmdlet that could have a signature like this:
$store = New-JsonStore -LiteralPath trustedKeys.json

What is the platform in Azure? This is how I check and set configs in Core projects

On Dec 7, 2020, at 1:39 PM, pbrouillet<EMAIL_ADDRESS>wrote:
Actually, IStore was just an abstraction layer I improvised.
It just has GetKeys and SetKey and returns an IDictionary<string, string> so that the underlying storage of keys could be whatever was needed by the current host.
A Json storage could be like this:
class JsonStore : IStore
{
FileStream _file; // Handle to file
public IDictionary<string, string> GetKeys()
{
    var hostKeys = // Read and deserialize files from disk
    return hostKeys;
}

public bool SetKey(string host, string fingerprint)
{
    // Set or update key to disk
    return true;
}

}
with its associated cmdlet that could have a signature like this:
$store = New-JsonStore -LiteralPath trustedKeys.json
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-SSH/pull/357#issuecomment-740069974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHXUGKY5CAMJIOKXVYDSTUHMZANCNFSM4UPWJIFA.

I'm not sure what you mean but for Azure Functions, it's PowerShell 7.0 in x64.
But if you mean to write the data on the file system of the app service running the Function, it is discouraged (if done in the wrong location, it'll either recycle the pool or be in a volatile location).
In a cloud environment, it'd be better to store the data in a scalable storage like an Azure Table, blob, SQL or Redis.
On-prem, it's overkill and, true, a simple JSON in a secure place would be more than enough.

When you do $psversiontable.platform what does it return?

On Dec 7, 2020, at 7:21 PM, pbrouillet<EMAIL_ADDRESS>wrote:
I'm not sure what you mean but for Azure Functions, it's PowerShell 7.0 in x64.
But if you mean to write the data on the file system of the app service running the Function, it is discouraged (if done in the wrong location, it'll either recycle the pool or be in a volatile location).
In a cloud environment, it'd be better to store the data in a scalable storage like an Azure Table, blob, SQL or Redis.
On-prem, it's overkill and, true, a simple JSON in a secure place would be more than enough.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-SSH/pull/357#issuecomment-740241128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHQEL4JZ4V22FYZOTQDSTVPPNANCNFSM4UPWJIFA.

It returns Win32NT

moved it to a branch as I learn how it works and populate the Markdown files with description and examples

moved it to a branch as I learn how it works and populate the Markdown files with description and examples

Been getting this error, any clue?
PS C:\Users\admin> Import-Module C:\Users\admin\Documents\GitHub\Posh-SSH\Source\PoshSSH\PoshSSH.Core\bin\Release\netstandard2.0\PoshSSH.dll -Verbose
VERBOSE: Loading module from path 'C:\Users\admin\Documents\GitHub\Posh-SSH\Source\PoshSSH\PoshSSH.Core\bin\Release\netstandard2.0\PoshSSH.dll'.
VERBOSE: Importing cmdlet 'Get-SCPFile'.
VERBOSE: Importing cmdlet 'Get-SCPFolder'.
VERBOSE: Importing cmdlet 'Get-SCPItem'.
VERBOSE: Importing cmdlet 'Get-SFTPFile'.
VERBOSE: Importing cmdlet 'Get-SFTPItem'.
VERBOSE: Importing cmdlet 'New-SFTPSession'.
VERBOSE: Importing cmdlet 'New-SSHSession'.
VERBOSE: Importing cmdlet 'Set-SCPFile'.
VERBOSE: Importing cmdlet 'Set-SCPFolder'.
VERBOSE: Importing cmdlet 'Set-SCPItem'.
VERBOSE: Importing cmdlet 'Set-SFTPFile'.
VERBOSE: Importing cmdlet 'Set-SFTPFolder'.
VERBOSE: Importing cmdlet 'Set-SFTPItem'.
VERBOSE: Importing cmdlet 'New-SSHMemoryStore'.
VERBOSE: Importing cmdlet 'New-SSHRegistryStore'.
PS C:\Users\admin> New-SSHSession -ComputerName <IP_ADDRESS> -Credential pi -force

PowerShell credential request
Enter your credentials.
Password for user pi: *********

New-SSHSession: Could not load file or assembly 'SshNet.Security.Cryptography, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=2fa9220ff3eadda4'. The system cannot find the file specified.

Been getting this error, any clue?
PS C:\Users\admin> Import-Module C:\Users\admin\Documents\GitHub\Posh-SSH\Source\PoshSSH\PoshSSH.Core\bin\Release\netstandard2.0\PoshSSH.dll -Verbose
VERBOSE: Loading module from path 'C:\Users\admin\Documents\GitHub\Posh-SSH\Source\PoshSSH\PoshSSH.Core\bin\Release\netstandard2.0\PoshSSH.dll'.
VERBOSE: Importing cmdlet 'Get-SCPFile'.
VERBOSE: Importing cmdlet 'Get-SCPFolder'.
VERBOSE: Importing cmdlet 'Get-SCPItem'.
VERBOSE: Importing cmdlet 'Get-SFTPFile'.
VERBOSE: Importing cmdlet 'Get-SFTPItem'.
VERBOSE: Importing cmdlet 'New-SFTPSession'.
VERBOSE: Importing cmdlet 'New-SSHSession'.
VERBOSE: Importing cmdlet 'Set-SCPFile'.
VERBOSE: Importing cmdlet 'Set-SCPFolder'.
VERBOSE: Importing cmdlet 'Set-SCPItem'.
VERBOSE: Importing cmdlet 'Set-SFTPFile'.
VERBOSE: Importing cmdlet 'Set-SFTPFolder'.
VERBOSE: Importing cmdlet 'Set-SFTPItem'.
VERBOSE: Importing cmdlet 'New-SSHMemoryStore'.
VERBOSE: Importing cmdlet 'New-SSHRegistryStore'.
PS C:\Users\admin> New-SSHSession -ComputerName <IP_ADDRESS> -Credential pi -force

PowerShell credential request
Enter your credentials.
Password for user pi: *********

New-SSHSession: Could not load file or assembly 'SshNet.Security.Cryptography, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=2fa9220ff3eadda4'. The system cannot find the file specified.

It's a dependency of SSH.NET (https://www.nuget.org/packages/SSH.NET/) as I updated the nuget to the latest version and set it to .NET Standard.
It needed no dependency for .NET Framework 4 but it does for .NET Standard.
Can you ensure you have this DLL in the \bin output DLLs and that it's reachable from the psd1 reference import?

It's a dependency of SSH.NET (https://www.nuget.org/packages/SSH.NET/) as I updated the nuget to the latest version and set it to .NET Standard.
It needed no dependency for .NET Framework 4 but it does for .NET Standard.
Can you ensure you have this DLL in the \bin output DLLs and that it's reachable from the psd1 reference import?


suspicious-package installation fails

Output of brew cask install --verbose suspicious-package:
==> Satisfying dependencies
==> Installing Formula dependencies from Homebrew
unar ... already installed
complete
==> Downloading http://www.mothersruin.com/software/downloads/SuspiciousPackage.xip
Already downloaded: /Library/Caches/Homebrew/suspicious-package-latest.xip
Error: Command failed to execute!

==> Failed command:
["#<Pathname:/usr/local/bin/unar>", "-q", "-D", "-o", "/tmp/d20151108-81212-1pdryda", "--", "#<Pathname:/Library/Caches/Homebrew/suspicious-package-latest.xip>"]

==> Output of failed command:
/Library/Caches/Homebrew/suspicious-package-latest.xip:

==> Exit status of failed command:
#<Process::Status: pid 81245 SIGSEGV (signal 11)>

brew cask doctor output:
==> OS X Release:
10.11
==> OS X Release with Patchlevel:
10.11.1
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p645
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
0.9.5 (git revision fda36; last commit 2015-11-07)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew
==> Homebrew-cask Version:
0.59.0
==> Homebrew-cask Install Location:
/usr/local/Cellar/brew-cask/0.59.0
==> Homebrew-cask Staging Location:
/opt/homebrew-cask/Caskroom
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
<NONE>
==> Homebrew-cask Default Tap Cask Count:
2841
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.59.0/rubylib
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin15
/Library/Ruby/Site/2.0.0/universal-darwin15
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/usr/local/sbin:/Users/hombit/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/hombit/Documents/apps/go_apps/bin:/usr/local/Library/ENV/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/usr/local/bin/zsh"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_CTYPE="UTF-8"
==> Running As Privileged User:
No

Can confirm this is a bug with unar (or our implementation of this)
As a quick fix, we can revert pack to the older formula, which uses the .pkg installer
cc @vitorgalvao

Problem is with unar. We need to wait for homebrew.

Unar 1.9.1 is in homebrew but after upgrade I still have this issue.

Closing in favour of https://github.com/caskroom/homebrew-cask/pull/15426.


fix: can't change and override valid locales

Description
Fixes #4297

add IncomingRequest::setValidLocales()

Checklist:

[x] Securely signed commits
[x] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

Added docs.

Of course this is a bit late, but what does request state have to do with locales?
The incoming request either contains the locale or does not.
I think the request class should not be concerned with locale validation.

Now that we have added setValidLocales(), we can change the locale to any value later.
However, there is still room for improvement in where the locale of the request is determined.
I found that we still cannot change valid locales for content negotiation:
https://github.com/codeigniter4/CodeIgniter4/blob/e1c13f687fcb0f0a5ea2869ebd362dfd6d83f952/system/HTTP/IncomingRequest.php#L220
in the constructor:
https://github.com/codeigniter4/CodeIgniter4/blob/e1c13f687fcb0f0a5ea2869ebd362dfd6d83f952/system/HTTP/IncomingRequest.php#L179


dfu/boot: Kconfig for MCUboot's bootutil

Mcuboot's bootutil libraries has option to use hooks which
allows to customize its behavior while proceeding on images
date. This patch introduces configuration options required that.
Signed-off-by: Andrzej Puzdrowski<EMAIL_ADDRESS>

will do this [nrf fromlist].


Flakey stream - not completing

can someone else try running my two stream queries
I changed
AND c.jd > jdnow() - 14
to
AND o.jdmin > jdnow() - 14
since the former does not mean “discovered in the last 14 days)
it works nicely when it works, but  it is very flakey - I only have success 50% of the time - it times out and says exceeded max time

thanks - works

All good - I updated my three streams.
I see Dave includes these two time requirements on candidate and object times in the one query
AND o.jdmin > JDNOW() - 14
AND (c.jd > JDNOW() - 14)
I would have thought the second is redundant. If I remove it, the query works and produces the same result, but it takes 10 times longer. I don't fully understand why, but have left it in.

Under the hood the query is joining 2 lists, one from the candidates and one from the objects table. The query will be faster if you make those 2 lists as small as possible, for example by adding the constraint that both lists only contain objects/candidates from the last 14 days.


Feat: Overwrite (truncate and load) existing feature service

Implements a full truncate and load of a layer within a feature service using data from a spatially-enabled dataframe. Figured out how to use .append() for hopefully more performant, reliable edits.

Ok @steveoh, I think I've built in some robustness. Let me know what you think.

This is going to be in a cloud function right? Does that writing need to persist in a different way because of where it will be run?

I don't think so- you pass in the directory name to truncate_and_load_feature_service, so it will be the client skid's responsibility to make sure that directory is writeable. I'm assuming that GCS will allow you to pass a path like that? Or does it need to be more bucket-oriented?
Also, I tweaked _retry() to eliminate the need for all the lambda calls. I've tried testing it but it looks like the latest AGOL update introduced a bug that causes the featurelayer.manager.truncate(asynchronous=True, wait=True) call to fail. In touch with support, waiting for a fix. Once I've got that I'll test it again with AGOL to verify everything works as intended.

Ok, AGOL bug fixed, looks like everything works as intended. @steveoh, I think the only open item is the question about file location. If that looks good to you, I think we're good to rebase and merge.


Add new no-module-suffix option

Closes #6 (when done).
Needs more work.

Don't merge until issue related to #38 is solved. I've borked it.


Fix some spell errors

Can you take a look? @jtattermusch
/assign @jtattermusch

Docs only change, merging.


Add Vietnamese translations

The title should explain everything.
Btw, I don't know how to set line feed \n in options_setup.json file, I've checked other languages as well, but the position is quite random.

thanks!


1.12.2 forge

Could you add support for 1.12.2? Thx.

I'll make an attempt, though keep in mind that this mod mainly uses Mixin to inject code, so getting it to work in 1.12 won't be easy.

It would be sooooo cooool to load 1.12.2 faster than ever.
Thanks for attempt.
Good Luck!!!

Update: 1.12 doesn't benefit from the improvements of this mod because it doesn't use executors, so a 1.12 version probably won't do much.


[Enhancement] More control over the audio when a video is playing

Hi,
I have some suggestions that could improve the the experience when a video is played. I'm mainly focusing on the video screensaver and the "View Full screen Video" option in the game options menu.
I know there is a global setting to enable and disable the audio of video's, but I think it would be nice to have some control over the audio while the video is already playing.
For instance, I like to let the the video screensaver play random video's from my scraped Roms. I have these video's muted in the screensaver settings, but sometimes   a game/video comes up that seems interesting to me. When that happens, I can't just unmute the video AFAIK without stopping the video entirely and going through the settings.
I think it would be really neat to be able to unmute the audio while the video is playing. I know that the screensaver has some interactivity already with the start & select buttons, which I really like. I feel like this suggestion would go really well with those.
For example: clicking the right joystick to mute/unmute the video as long as the screensaver is active. When the user ends the screensaver it will forget the state of the audio, so when the screensaver gets active again, it will go back to whatever is set in the settings.
Having full volume control with the right joystick, like how it is done in the main menu, could also be a nice. However I can see how that might make it more complicated than needed, so a simple toggle would already be great.
It would be nice to have this toggle in the "View Fullscreen Video"-option as well.
Last but not least, I think it would be great to have a separate setting to mute/unmute this Fullscreen video by default. I know there is a setting to do this globally to all preview-video's, but I like to have everything muted when I'm scrolling through my games.
But when I click on the "Fullscreen video" option, I deliberately clicked on that because I want to see (and hear) that video. Having a setting that is separated from the global video-preview option could make that experience better.
I hope I could get my point across. I would love to know your thoughts on it. Thanks!

I think I'm not going to write this kind of functionnality, sorry, so i'm closing it.


Filename too long

Used Linuxbrew to install gcc-5.3.0. Did not complete successfully.

~$ brew postinstall -v gcc
/home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: 1: /home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: cannot create H/@@�31@8: Directory nonexistent
/home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: 1: /home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: ELF: not found
/home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: 2: /home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: @$@@�?@�?00Q�td�?�?@@����TT@T@  X@@  P�tdةؙKؙK�$�$����l��l��D����l��l8�8�l8�llibm.so.6_ITM_deregisterTMCloneTable__gmon_start___Jv_RegisterClasses_ITM_registerTMCloneTablelibc.so.6fflushstrcpyreaddirexecv_IO_putcfopenstrsignalstrncmpstrrchrpipe__strdupfileno_unlockeddl_iterate_phdrclosedirftellstrncpyunlinkputcharpthread_mutex_lockreallocabortstdin_exitvsprintfmemchrgetpidkillsbrkstrtolisattymmapfeoffgetcfgetscallocstrlenungetcfread_unlockedmemsetstrstrstrcspn__errno_locationfseekmemcmpgetpagesizeasctimedup2pthread_mutex_unlockputenvstdoutfputcfputsstrnlenmemcpyfclosestrtoulmallocstrcatstrcasecmprealpathremove__uflowopendir__ctype_b_locgetenvsscanfstderrioctlmunmapwait4_obstack_newchunksetrlimitexecvpfreopenstrncasecmp__fxstat_obstack_memory_usedfwritefreadiconv_closegettimeofdaywaitpidstrverscmplocaltimestrchrobstack_freevforkiconvmkstempsfdopenqsorticonv_opensleep__ctype_tolower_locfcntl__fsetlocking__xstatgetrlimitmemmove_obstack_beginaccessfwrite_unlockedstrcmpstrerror__libc_start_mainferrorstpcpyvfprintfsnprintf__overflowfputs_unlocked__environ__cxa_atexitld-linux-x86-64.so.2__tls_get_addrXXXXXXXXXXXXXXXXXXXXXXXXXXXXX__pthread_key_createpthread_onceGLIBC_2.3GLIBC_2.14GLIBC_2.11GLIBC_2.2.5/home/mike/.linuxbrew/lib`^~�M�&@� �E4)"���Y� �.uX��=��J!�Psu�:y@*@����h: File name too longm��
/home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: 2: /home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: �: not found
/home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: 1: /home/mike/.linuxbrew/Cellar/gcc/5.3.0/bin/gcc-5: Syntax error: word unexpected (expecting ")")
==> Creating the GCC specs file: specs
Error: command failed: gcc-5 -print-libgcc-file-name

Windows build number: 10.0.14393 Build 14393
Steps to reproduce:

adduser mike
usermod -aG sudo mike
apt-get update && apt-get upgrade -y
apt-get install build-essential ruby
su mike && cd ~
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
PATH="$HOME/.linuxbrew/bin:$PATH"
brew install -v gcc # will fail, tells you to run postinstall
brew postinstall -v gcc # also fails, but prints weird symbols.

Strace: http://paste.ubuntu.com/23351047/

Looks like the issue is because the filename is too long. This works on my Linux desktop.

Oh, as a side note, this takes several hours to reproduce because it's compiling gcc-5.3.0 from source. Just as a friendly head's up.

I know there have been lots of fixes in this area since 2016. If you are able to reproduce this in 1803 or later please reopen.

@benhillis I haven't run into this problem since 1703, iirc. 😄

@mxplusb - Glad to hear it!


Implement create customer endpoints

Create the customer before doing a checkout/subscribe action we no longer have to rely on the billable_id & billable_type keys.
https://docs.lemonsqueezy.com/api/customers#create-a-customer
Revert https://github.com/lmsqueezy/laravel/pull/52

Are you working on this @driesvints or can I take a stab at it?

Could you please help with this one.
I'm not sure I understand how it works. I have a product that users purchase. At the time they do so, they might not exist in users table created by Laravel by default.
So, ideally, when I receive order_created webhook, I need to check if there is a user, and if there is - make a customer. If not, create user in advance. I'm talking about my own database, since I need to know
a) if there is a user
b) if they bought my product
Could you please give me a hint how to implement this: should I somehow write my own webhook?

@victor-ponamariov please create a separate issue with your question.

any update on this?

Here's my current workaround. Directly overriding the method on User model:
    /**
     * Create a Lemon Squeezy customer record for this user.
     *
     * @param array $attributes Additional customer attributes
     * @return Customer
     * @throws \Exception
     */
    public function createAsCustomer(array $attributes = []): Customer
    {
        if ($this->customer) {
            throw new \Exception('User is already a customer');
        }

        $response = LemonSqueezy::api('POST', "customers", [
            'data' => [
                'type' => 'customers',
                'attributes' => [
                    'name' => $this->name,
                    'email' => $this->email,
                ],
                'relationships' => [
                    'store' => [
                        'data' => [
                            'type' => 'stores',
                            'id' => config('lemon-squeezy.store'),
                        ]
                    ]
                ]
            ]
        ]);

        return $this->customer()->create([
            ...$attributes,
            'lemon_squeezy_id' => $response['data']['id']
        ]);
    }

No news I'm afraid. Thanks for posting the workaround 👍


Return 404 when missing next() calls in global middleware

This pull request improves Bolt's error when developers forget to call next() method in global middleware.
With the current implementation of App and AsyncApp, the following code results in AttributeError: 'NoneType' object has no attribute 'status' and returns 500 Internal Server Error to the Slack API Platform.
from slack_bolt import App

app = App()

@app.middleware
def run_global_filter(next):
    pass # forget to call next()

@app.shortcut("awesome-shortcut")
def handle_shortcut(ack):
    ack()

The following is the failure in added tests.
=============================================================================================== FAILURES ===============================================================================================
___________________________________________________________________________________ TestMiddleware.test_no_next_call ___________________________________________________________________________________

self = <tests.scenario_tests.test_middleware.TestMiddleware object at 0x10e225af0>

    def test_no_next_call(self):
        app = App(client=self.web_client, signing_secret=self.signing_secret,)
        app.use(no_next)
        app.shortcut("test-shortcut")(just_ack)

        response = app.dispatch(self.build_request())
>       assert response.status == 404
E       AttributeError: 'NoneType' object has no attribute 'status'

tests/scenario_tests/test_middleware.py:67: AttributeError
------------------------------------------------------------------------------------------ Captured log call -------------------------------------------------------------------------------------------
2020-08-30 15:39:14 DEBUG Applying slack_bolt.middleware.ssl_check.SslCheck
2020-08-30 15:39:14 DEBUG Applying slack_bolt.middleware.request_verification.RequestVerification
2020-08-30 15:39:14 DEBUG Applying slack_bolt.middleware.authorization.single_team_authorization.SingleTeamAuthorization
2020-08-30 15:39:14 DEBUG Sending a request - url: http://localhost:8888/auth.test, query_params: {}, body_params: {}, files: {}, json_body: {}, headers: {'Content-Type': 'application/json;charset=utf-8', 'Authorization': '(redacted)', 'User-Agent': 'Python/3.8.5 slackclient/3.0.0a4 Darwin/19.6.0'}
2020-08-30 15:39:14 INFO request body: None
2020-08-30 15:39:14 DEBUG Received the following response - status: 200, headers: {'Server': 'SimpleHTTP/0.6 Python/3.8.5', 'Date': 'Sun, 30 Aug 2020 06:39:14 GMT', 'content-type': 'application/json;charset=utf-8', 'connection': 'close'}, body: {'ok': True}
2020-08-30 15:39:14 DEBUG Applying slack_bolt.middleware.ignoring_self_events.IgnoringSelfEvents
2020-08-30 15:39:14 DEBUG Applying slack_bolt.middleware.url_verification.UrlVerification
2020-08-30 15:39:14 DEBUG Applying CustomMiddleware(func=no_next)
======================================================================================= short test summary info ========================================================================================
FAILED tests/scenario_tests/test_middleware.py::TestMiddleware::test_no_next_call - AttributeError: 'NoneType' object has no attribute 'status'
===================================================================================== 1 failed, 1 passed in 0.31s ======================================================================================

From an end-user perspective, the status code this Slack app returns to the Slack API Platform doesn't matter. However, encountering a runtime error indicating that something unexpected is happening inside the framework is quite confusing for developers. This pull aims to improve the developer experience in the case.
Category (place an x in each of the [ ])

[x] slack_bolt.App and/or its core components
[x] slack_bolt.async_app.AsyncApp and/or its core components
[ ] Adapters in slack_bolt.adapter

Requirements (place an x in each [ ])

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've run ./scripts/run_tests.sh after making the changes.

I know the Python implementation will differ slightly from what we've done in Bolt for JS, but will this cause any issues with the support for Workflow Steps from apps?
More specifically, since each workflow step will operate as a piece of middleware, intercepting and either handling or passing on events as they occur, the global next() wouldn't be called in cases where the event is being handled, correct?

@misscoded I don't think this is related to your case. My description here should be clearer. The change in this PR is to improve Bolt's behavior when a global middleware does neither returning valid response nor calling next(). When it comes to global middleware, Bolt Python and Bolt JS do not have any difference (if you detect some, let me know - let's fix it).

Bolt Python and Bolt JS do not have any difference

Let me correct this a bit. Bolt JS's global middleware doesn't have the functionality to return a specific response to Slack. So, the request verification is not part of the App. As this is a limitation in Bolt JS, Bolt Python doesn't prevent you to implement anything you managed to implement with Bolt JS.


Helm install does not work with GKE.

Tried to install secret sync controller on GKE cluster with version (v1.30.3-gke.XXXXXXXX). It failed with following error
helm install secrets-sync-controller -f manifest_staging/charts/secrets-store-sync-controller/values.yaml manifest_staging/charts/secrets-store-sync-controller
Error: INSTALLATION FAILED: chart requires kubeVersion: >=1.27.0 which is incompatible with Kubernetes v1.30.3-gke.XXXXXX

/assign


digest in GET requests

In the specifications it says that the digest header is the Base64-encoded SHA-256 of the HTTP request's body. GET requests have no body, but the echo api makes GET requests with a digest header. What do we hash to create the digest header value in a GET request?

In such case, the digest is hash of an empty string.
BTW, GET should not have bodies in general, but HTTP specs do not forbid it.

Thank you for the timely response.


How can I use a custom dataset for training?

How can I use a custom dataset for training?
I have made the data in COCO2017 format, but the number of classes and class names are different from COCO, which file should I change?

How can I use a custom dataset for training?
I have made the data in COCO2017 format, but the number of classes and class names are different from COCO, which file should I change?

You can use this functions: register_coco_instances to register your dataset in config file, and then update the dataset name

Here is an example:
# dataset config
from detectron2.data.datasets import register_coco_instances

register_coco_instances("my_dataset", "path/to/json", "path/to/image_root")

dataloader.train = L(build_detection_train_loader)(
    dataset=L(get_detection_dataset_dicts)(names="my_dataset"),
    ...

Please refer to custom.py to see how to register and use coco-like datasets in detrex and d2!

Here is an example:
# dataset config
from detectron2.data.datasets import register_coco_instances

register_coco_instances("my_dataset", {}, "path/to/json", "path/to/image_root")

dataloader.train = L(build_detection_train_loader)(
    dataset=L(get_detection_dataset_dicts)(names="my_dataset"),
    ...

I see. Thank you very much for your reply.

Here is an example:
# dataset config
from detectron2.data.datasets import register_coco_instances

register_coco_instances("my_dataset", {}, "path/to/json", "path/to/image_root")

dataloader.train = L(build_detection_train_loader)(
    dataset=L(get_detection_dataset_dicts)(names="my_dataset"),
    ...

I see. Thank you very much for your reply.

You're welcome~

File "/workspace/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 240, in _eval_predictions
assert category_id < num_classes, (
AssertionError: A prediction has class=14, but the dataset only has 11 classes and predicted class id should be in [0, 10].

File "/workspace/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 240, in _eval_predictions assert category_id < num_classes, ( AssertionError: A prediction has class=14, but the dataset only has 11 classes and predicted class id should be in [0, 10].
I use a custom dataset for training, but meet the error.

I had the same problem. I need help.

File "/workspace/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 240, in _eval_predictions assert category_id < num_classes, ( AssertionError: A prediction has class=14, but the dataset only has 11 classes and predicted class id should be in [0, 10].
I use a custom dataset for training, but meet the error.

Maybe can help you. https://github.com/IDEA-Research/detrex/issues/267#issuecomment-1637273202

您好，你的邮件我已经收到~

After modifying the custom.py file, run python tools/train_net.py --config-file projects/dab_detr/configs/models/dab_detr_r50.py, A Missing key train error occurred
full_key: train
object_type=dict

ERROR [09/30 16:04:15 d2.config.instantiate]: Error when instantiating detectron2.data.build.build_detection_train_loader!


Nancy.Hosting.Self.NancyHost -> WebRequestScopeAccessor. Castle 5.0.x

Hi
The Nancy.Bootstrappers.Windsor with nancy self hosted is throwing a
Could not load type 'Castle.MicroKernel.Lifestyle.WebRequestScopeAccessor' from assembly 'Castle.Windsor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'.
exception. Works with Castle <=4.1
Any thoughts? Thanks!

https://github.com/castleproject/Windsor/blob/master/CHANGELOG.md#500-beta001-2018-10-26
https://github.com/castleproject/Windsor/blob/master/docs/systemweb-facility.md

Thanks @jonorossi
Yes I see now it is moved over the Castle.Facilities.AspNet.SystemWeb facility.
And you can not just plugin System.Web anymopre.
Not good for Nancy.Hosting.Self.NancyHost :-(
But i can add manually to my own lib. Thanks, mate,...


Ambiguous variable names with prefixes "my_"

Rename variables with prefixes my_ to be more descriptive.
E.g.

my_data
my_cycle
my_barcode

this is usually my hack to avoid name clash. can you add some more context for each?

I can tackle this, though I may need your help to find more descriptive names

can you put the surrounding code for each in this issue so we can discuss what the names should be based on that?


Bugfix in OctoAssociator.transform_events

In OctoAssociator.transform_events the events are transformed back from local to global EPSG:4326 coordinates. In that course a  scaling of the local coordinates from kilometers to meters (or kilometers) takes place, which requires a multiplication with the scaling factor of 1000 (or 1) rather than a division.
With this fix in place, correct event coordinates are obtained also in EPSG:4326.

Thanks for the great catch! I've added a unit test and will merge now.


Cancelling UIImageView extension crashes on nil task

When rotating screen crashes with the UIImage extension for task being nil. Maybe you should make task optional and add a null check as the operation may not have even started (resumeDownload called) before cancel is called.
func cancelDownload() {
        operation?.cancel()
}

public override func cancel() {
        task.cancelByProducingResumeData { <-- CRASH HERE, task = nil
            [unowned self] data in
            self.resumeData = data
        }
}

Thanks for the report!


Adding schema enhancement proposal

Additive change for a process that's already approved, so I'm force merging...


Is the TwistSubscriber missing an assignedObject slot?

[x] I am at the right place and my issue is directly related to ROS#. General technical questions I would post e.g. at ROS Answers or Stackoverflow. For library-specific questions I would look for help in the corresponding library forums.
[x] I have throughly read the Contributing Guideline and writing this issue is the right thing to do in my case.

I have a question!

[x] I searched the Wiki, open and closed issues for an answer. I tried my best in finding the answer by myself without success. I believe that the discussion we will have in this issue, and the solutions we might find, will help me, and likely other community members who have a similar problem.

Here is my question:
In the new version introduced with 34fb2a8ddd58c5f099b1e4b887a253b954808fb4, all publishers and subscribers are supposed to be attached to the ROSConnector GameObject – this is also shown e.g. in the new video for the gazebo scene where the OdometrySubscriber is added to the ROSConnector. The OdometrySubscriber has a slot assignedObject to reference the link/joint it controls. However, the TwistSubscriber does not have such a slot.
It is possible to attach a ROSConnector to a link and then add a TwistSubscriber as well, so that it can change the transform properly. However, I wonder if it's meant to work that way?
I will for now change the TwistSubscriber (and the PoseStampedSubscriber) so they work more like the OdometrySubscriber and the ImageSubscriber, thus having slots for the game objects and using the same ROSConnector.
An alternative would be to attach the subscribers to their respective links and have a reference to the ROSConnector, but that would need some major rewriting again.

Thank you @shoeffner for reporting this bug and providing an elaborated reference solution in pull request #114 !
I just went trough all RosCommunication scripts myself and made sure that every Publisher and Subscriber has a corresponding reference component indicating where the data is read from or written to.
I also considered the inconsistency you mentioned in the pull request: All Publishers and Subscribers should have reference Components, no GameObjects. This improves both code and understandability.
Accordingly I also changed the OdometrySubscriber to have a public Transform instead of a public GameObject and updated the reference scene.

@shoeffner Would you please check whether the changes done in pull request #115 work fo you?
If so, please close the issue.


Add an option to suppress the overwrite prompt in showSaveDialog

Selecting an existing file via showSaveDialog results in this message about replacing the file:

In a "Move to File" refactor that moves items into the file but does not replace it, this message is confusing.
It seems the choice is currently between showSaveDialog (which has this misleading prompt) or showOpenDialog (which doesn't allow the user to enter new filenames).
It would be nice if we could use a file picker that allows both selection of existing files and entering new filenames, without showing a prompt about overwriting.

Seems like the wording of the warning is even more scary for some:

I didn't realise this was happening so it's very confusing for users of the Move-to-File refactoring.

As for the file dialog, that depends on Electron API and I only see a showOverwriteConfirmation option for Linux: https://github.com/electron/electron/blob/main/docs/api/dialog.md#dialogshowsavedialogsyncbrowserwindow-options

I only see a showOverwriteConfirmation option for Linux:

Great :-(
I see that showOpenDialog also has:

promptToCreate Windows - Prompt for creation if the file path entered in the dialog does not exist. This does not actually create the file at the path but allows non-existent paths to be returned that should be created by the application.

But it's not clear whether this means only Windows allows entering paths that don't exist, or only windows supports prompting to create if the entered file doesn't exist (and that all of them allow it).
If those aren't an option, maybe an API onto the simple file picker (and implementing https://github.com/microsoft/vscode/issues/186511) is an option?

btw, I just noticed TypeScript has this same bug as Dart:

right-click -> Move to File
select "Enter new file path..."
choose an existing file
get a warning about replacing the file
open the file and see that it was not replaced, it was merged into

It also looks like TS built its own file selector (https://github.com/microsoft/vscode/blob/5fea9b4f26fd9de09820a78c9da643d0ff6b8498/extensions/typescript-language-features/src/languageFeatures/refactor.ts#L164) which makes me a little sad.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

While this was phrased as a feature request, I feel that since TypeScript is already incorrectly showing this prompt that really this is a bug (which would be best fixed by implementing this feature) 😔

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

@bpasero  I think you should train your Tiragebot better. Closing this without acknowledging any of the later comment seems questionable

What happens now that it has already gained more than those 20 upvotes? Does it need a new mark? Will this not be considered then? If someone else wants this feature should they forget about it or should they create a new one? Those are not clear to me. Is there some place where these questions are documented (like a FAQ or something)?

Following this doc I'm tagging @bpasero to take a look at this issue again as it now has more than 40 up votes (twice the ammount requested on that doc) to reopen this.
Also, as the above comment, please read everything as this is actually a bug:

While this was phrased as a feature request, I feel that since TypeScript is already incorrectly showing this prompt that really this is a bug (which would be best fixed by implementing this feature) 😔


Orientation and scale incorrect when using anchor_xform_at_path

I'm experiencing an error when trying to use the anchor_xform_at_path python function.
It appears to be another race condition (or the same one previously experienced?)
It only occurs when I supply the latitude, longitude and height to the anchor_xform_at_path function, or if I create an anchor and immediately set the lat/lon/height.
If I await omni.kit.app.get_app().next_update_async() between creation of the anchor (with no coordinate parameters) and setting lat/lon/height attributes, orientation and scale is as expected.
https://github.com/CesiumGS/cesium-omniverse/assets/123468416/b6d96937-d5b0-4408-9282-c90dcb0c82ad
Script used in the video above.  Work well if you open 00_quickstart.usda from the samples repo.
I've also reproduced this without using payloads and just regular mesh prims like cylinders.
import omni.kit.commands
import omni.usd
from pxr import Sdf, UsdGeom, Usd
from cesium.omniverse.api.globe_anchor import anchor_xform_at_path
from asyncio import ensure_future

trees = [
	{"name":"tree_01","latitude":37.7913, "longitude":-122.39032,"height":-28.88791},
]

context = omni.usd.get_context()
stage = context.get_stage()

async def add_trees():
	for t in trees:

		anchor_prim_path = "/World/"+t["name"]+"_anchor"
		payload_prim_path = anchor_prim_path+"/"+t["name"]

		anchor_prim: Usd.Prim = UsdGeom.Xform.Define(stage, Sdf.Path(anchor_prim_path)).GetPrim()
		payload_prim: Usd.Prim = UsdGeom.Xform.Define(stage, Sdf.Path(payload_prim_path)).GetPrim()
		omni.kit.commands.execute("AddPayload",
			stage=stage,
			prim_path = payload_prim_path,
			payload=Sdf.Payload(
				assetPath = "http://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Vegetation/Plant_Tropical/Cuban_Royal_Palm.usd",
				primPath = Sdf.Path.emptyPath
			)
		)

#		Test1: Try to place an anchor on the prim, while setting the lat/lon/height
		anchor_xform_at_path(anchor_prim_path, t["latitude"], t["longitude"], t["height"])

#		Test2: Try to just place the anchor, then set the coordinates
#		anchor_xform_at_path(anchor_prim_path)
#		anchor_prim.GetAttribute("cesium:anchor:geographicCoordinates").Set(
#			(t["latitude"], t["longitude"], t["height"])
#		)

#		Test3: Place the anchor, wait a frame, then set the coordinates - works!
#		anchor_xform_at_path(anchor_prim_path)
#		await omni.kit.app.get_app().next_update_async()
#		anchor_prim.GetAttribute("cesium:anchor:geographicCoordinates").Set(
#			(t["latitude"], t["longitude"], t["height"])
#		)

ensure_future(add_trees())

After https://github.com/CesiumGS/cesium-omniverse/pull/626 is merged this should be fixed. Updated code below:
import omni.kit.commands
import omni.usd
from pxr import Sdf, UsdGeom, Usd
from cesium.usd.plugins.CesiumUsdSchemas import (
    GlobeAnchorAPI as CesiumGlobeAnchorAPI
)

CESIUM_GEOREFERENCE_PRIM_PATH = "/CesiumGeoreference"

trees = [
    {"name":"tree_01","latitude":37.7913, "longitude":-122.39032,"height":-28.88791},
]

context = omni.usd.get_context()
stage = context.get_stage()

for t in trees:
    anchor_prim_path = "/World/"+t["name"]+"_anchor"
    payload_prim_path = anchor_prim_path+"/"+t["name"]

    anchor_prim: Usd.Prim = UsdGeom.Xform.Define(stage, Sdf.Path(anchor_prim_path)).GetPrim()
    payload_prim: Usd.Prim = UsdGeom.Xform.Define(stage, Sdf.Path(payload_prim_path)).GetPrim()
    omni.kit.commands.execute("AddPayload",
        stage=stage,
        prim_path = payload_prim_path,
        payload=Sdf.Payload(
            assetPath = "http://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Vegetation/Plant_Tropical/Cuban_Royal_Palm.usd",
            primPath = Sdf.Path.emptyPath
        )
    )

    globe_anchor = CesiumGlobeAnchorAPI.Apply(anchor_prim)
    globe_anchor.GetGeoreferenceBindingRel().AddTarget(CESIUM_GEOREFERENCE_PRIM_PATH)
    globe_anchor.GetGeographicCoordinateAttr().Set((t["latitude"], t["longitude"], t["height"]))

I'm not sure why the tree comes in rotated. It seems like an up axis problem but I'm not sure if it's the asset or something in our code that needs to be fixed.

@weegeekps pointed out that our stage is y-up and the payload is z-up. It seems like the fix is to apply a rotation to the tree. 🤷♂

@lilleyse it appears OV applies some additional transforms to objects when dragging them in from the NVIDIA Asset library, to account for mismatch in up-axis and also scale.
Dragging a tree into my Y up stage results in this additional transform

Dragging same tree into a Z up stage results in no additional transform
Dragging same tree into a Z up stage with meters as the default unit results in this additional transform

I assume the globe anchor API is removing these additional transforms?  What happens if you spawn the tree using the script above, but comment out the globe anchor?  It should appear at 0,0,0 with the correct orientation

I assume the globe anchor API is removing these additional transforms? What happens if you spawn the tree using the script above, but comment out the globe anchor? It should appear at 0,0,0 with the correct orientation

I get incorrect orientation still. The extra attributes don't get added.
I've been testing this in the dev app instead of USD Composer, if that matters.

@lilleyse this must be specific to USD Composer and one of its extensions, as I can confirm like yourself, I do not get the additional transforms added when executing the same code in the dev app.  I'm not 100% sure which extension(s) are required to enable this, I've tried enabling a few asset and payload related ones without any luck

I pushed a change in https://github.com/CesiumGS/cesium-omniverse/pull/626 so that globe anchors no longer need to explicitly bind to a georeference. If there's no georeference bound it'll use the first georeference (if it exists). This is similar to Cesium for Unreal.
So this line has been removed:
globe_anchor.GetGeoreferenceBindingRel().AddTarget(CESIUM_GEOREFERENCE_PRIM_PATH)

It looks like the API schema has changed slightly since the tree placement script was updated in the earlier comments
To access the lat/lon/height values, the following should be used:
globe_anchor.GetAnchorLatitudeAttr().Set(value)
globe_anchor.GetAnchorLongitudeAttr().Set(value)
globe_anchor.GetAnchorHeightAttr().Set(value)

Thanks @r-veenstra, I update the snippet