text:
[SP-5230] - Backport of PPP-4008 - Use of vulnerable component Jquery…

… 2.2.1 CVE-2015-9251 (8.3 Suite)

Build Failed
:x: Something went wrong while validating this pull request.
Build Commands
mvn -B -f 'pom.xml' -pl 'plugins/repositories/core,plugins/repositories' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Stdout log
(last 100 lines)
Retrieving source with org.pentaho.build.buddy.bundles.source.github.SlackbotGithubSourceRetriever@4ead9144
[INFO] Scanning for projects...
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (839 B at 5.7 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/pentaho-ce-jar-parent-pom-8.3.0.0-20190816.032424-323.pom
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/pentaho-ce-jar-parent-pom-8.3.0.0-20190816.032424-323.pom (8.5 kB at 273 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (835 B at 52 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/pentaho-ce-parent-pom-8.3.0.0-20190816.032422-323.pom
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/pentaho-ce-parent-pom-8.3.0.0-20190816.032422-323.pom (1.1 kB at 49 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (614 B at 31 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/pentaho-parent-pom-8.3.0.0-20190816.032421-323.pom
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/pentaho-parent-pom-8.3.0.0-20190816.032421-323.pom (79 kB at 2.4 MB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-plugin-api/3.0.3/maven-plugin-api-3.0.3.jar
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-artifact/3.0.3/maven-artifact-3.0.3.jar
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-model/3.0.3/maven-model-3.0.3.jar
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/sonatype/sisu/sisu-inject-plexus/2.1.1/sisu-inject-plexus-2.1.1.jar
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.jar
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-plugin-api/3.0.3/maven-plugin-api-3.0.3.jar (49 kB at 600 kB/s)
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-artifact/3.0.3/maven-artifact-3.0.3.jar (52 kB at 855 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.jar
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.jar
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.jar (122 kB at 1.7 MB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.jar
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/sonatype/sisu/sisu-inject-plexus/2.1.1/sisu-inject-plexus-2.1.1.jar (196 kB at 1.7 MB/s)
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.jar (35 kB at 357 kB/s)
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-model/3.0.3/maven-model-3.0.3.jar (163 kB at 1.2 MB/s)
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.jar (58 kB at 482 kB/s)
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.jar (29 kB at 231 kB/s)
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.webjars.npm:jquery:jar is missing. @ line 37, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: pentaho:pentaho-metaverse-api:jar -> version ${project.version} vs ${pentaho-metaverse.version} @ line 85, column 17
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.pentaho.di.plugins:repositories-plugin-core:8.3.0.0-SNAPSHOT (/home/buildguy/project/plugins/repositories/core/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for org.webjars.npm:jquery:jar is missing. @ line 37, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[INFO] Scanning for projects...
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-jar-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (839 B at 4.5 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-ce-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (835 B at 28 kB/s)
[INFO] Downloading from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from pentaho-public: http://nexus.pentaho.org/content/groups/omni/org/pentaho/pentaho-parent-pom/8.3.0.0-SNAPSHOT/maven-metadata.xml (614 B at 32 kB/s)
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.webjars.npm:jquery:jar is missing. @ line 37, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: pentaho:pentaho-metaverse-api:jar -> version ${project.version} vs ${pentaho-metaverse.version} @ line 85, column 17
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.pentaho.di.plugins:repositories-plugin-core:8.3.0.0-SNAPSHOT (/home/buildguy/project/plugins/repositories/core/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for org.webjars.npm:jquery:jar is missing. @ line 37, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

Stderr log
(last 100 lines)
java.lang.Exception: org.pentaho.build.buddy.bundles.orchestrator.OrchestratorImpl$BuildException: java.io.IOException: Head build returned with code 1
	at org.pentaho.build.buddy.bundles.orchestrator.OrchestratorImpl.orchestrate(OrchestratorImpl.java:381)
	at Proxyd5627fc1_5c67_4289_b93c_a2e344128123.orchestrate(Unknown Source)
	at org.pentaho.build.buddy.bundles.rest.OrchestratorRestService$1.write(OrchestratorRestService.java:62)
	at org.apache.cxf.jaxrs.provider.BinaryDataProvider.writeTo(BinaryDataProvider.java:172)
	at org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1381)
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:244)
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:120)
	at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:83)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:83)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:253)
	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298)
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:217)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.pentaho.build.buddy.bundles.orchestrator.OrchestratorImpl$BuildException: java.io.IOException: Head build returned with code 1
	at org.pentaho.build.buddy.bundles.orchestrator.OrchestratorImpl.doOrchestrate(OrchestratorImpl.java:609)
	at org.pentaho.build.buddy.bundles.orchestrator.OrchestratorImpl.orchestrate(OrchestratorImpl.java:364)
	... 41 more
Caused by: java.io.IOException: Head build returned with code 1
	... 43 more

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
mvn -B -f 'pom.xml' -pl 'plugins/repositories/core,plugins/repositories' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'plugins/repositories/core,plugins/repositories' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  plugins/repositories/core/pom.xml
  plugins/repositories/pom.xml

authors: RPAraujo wingman-pentaho


text:
[PDI-18458] When the Database connection which is used in the Transfo...

...rmation step is invalid, the status in pentaho_dilogs .trans_logs table does shows as "running" when the Transformation has failed. - Unit test
@pentaho-lmartins @ssamora @ppatricio @bcostahitachivantara

:white_check_mark: Build finished in 30m
Build command:
mvn clean verify -B -e -Daudit -amd -pl engine

:ok_hand: All tests passed!
Tests run: 3694, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message

source: gharchive/pull-request

authors: buildguy smmribeiro

repo: pentaho/pentaho-kettle

license_type: permissive

license_source: bigquery


text:
Fix issue

I re-pull request #3919

@

repo: penumbra-zone/penumbra

license_source: github-api


text:
Add !tipbot check

Allows to view the address and balance of the user.

thanks!  added https://github.com/peoplma/slacktipbot/commit/6f326a27b6daf6def34acf3e57fafb4448f52d2e

repo: peoplma/slacktipbot

license: mit


text:
Update feature comparisons documentation page

Some updates for feature comparison page, now that LDAP Authz and Kerberos Auth are added.
These updates should be backported to the v4.0 and v3.6 branches too.

Thanks Anatasia.
I committed all your suggestions.

repo: percona/psmdb-docs


text:
fix corruption in metric-data.json

Metadata is quite wrong in some places

fixed with #10

source: gharchive/issue

repo: perftool-incubator/toolbox


text:
"Type Constraints" section on containers page contains incorrect info

On https://docs.perl6.org/language/containers#Type_Constraints  the prose says you can rebind to a variable and remove constraint, yet the very example shown in that section shows that you get an error if you try to do that. Also, it says "Scalar containers have Any contraint" by default, but that's not true, as scalar variables default to Mu.
Also, I'm not sure, but I don't think the "constraint is a property of the container" part is true at all. 'cause my Int \x and my @foo := 1, 2, 3 have type checks, yet there are no containers involved.
IRC: https://irclog.perlgeek.de/perl6/2018-03-26#i_15968146

Some more from IRC: https://irclog.perlgeek.de/perl6/2018-03-26#i_15968326
19:48 | jnthn | The bind operator code-gens a type check
19:50 | jnthn | That's, I believe, the only place the type information is retained at the binding level
19:50 | jnthn | Variables don't really exist by runtime. Certainly not in the same way containers do

Could #1217 be related?

authors: JJ zoffixznet


text:
test failures with Failed to resolve host name

t/basic-auth.t .................. ok
Failed to resolve host name
The company I work for forces any external http/https connections to go through a proxy - the hosts aren't even exposed to us in internal DNS.

Also, to add, t/get-w3-latin1-utf8.t seems to be floppy, failing some times.

#5 has the failing file name and more details, and suggestion, closing this ticket.

authors: coke zoffixznet


text:
Why your project's lint rules don't work

Obviously, your project integrates the lint framework, lint lintaar, but they don't work in smaple app

Thx, this is weird.

Do you know the cause of the problem？I'm also solving similar problems on other projects

^ Tried again and seems now it works.

authors: Edward-going hotchemi


text:
Cloudflare worker support

Support ulidx operating in Cloudflare worker contexts, most likely using the monotonic factory feature as active timestamps aren't available. See #5 for more detail.

Any news on this?

From the CF docs: Date.now() returns the time of the last I/O.
Why is this not enough? Ofc, the more graular the better, but this should be enough for a good entropy (assuming the second part of the string is long enough).

ok, for others driving by, here's the solution: https://github.com/ryan-mars/ulid-workers
@perry-mitchell took me some time to find this, would you have a problem to direct users to ryan's repo in your readme?

@205g0 No news, but I don't currently have access to Cloudflare workers to confirm that ulidx works. Once I can confirm that it functions correctly there, at least from a monotonic standpoint, I'll flag this as being compatible.

This also does not work in Vercel edge functions. The error message being:
✘ [ERROR] Could not resolve "node:crypto"

    node_modules/ulidx/dist/esm/index.js:1:19:
      1 │ import crypto from 'node:crypto';
        ╵                    ~~~~~~~~~~~~~

  The package "node:crypto" wasn't found on the file system but is built into node. Are you trying
  to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

This happens in a SvelteKit application

This also does not work in Vercel edge functions.

@hamza1311 FWIW I am using ulidx v2.0.0 successfully under Vercel Edge functions (thus running on Cloudflare workers).
(With the key note that the timestamp does not increase within the same request due to Cloudflare workers' Date.now() restriction - which doesn't matter for my use-cases.)

✘ [ERROR] Could not resolve "node:crypto"
node_modules/ulidx/dist/esm/index.js:1:19:

Your error suggests you appear be using a version prior to v2 - it references node_modules/ulidx/dist/esm/index.js, whereas v2.0.0 compiles to ulidx/dist/node/.. and ulidx/dist/browser/....
Vercel Edge/CF workers requires using the 'browser' import. This is selected automatically for me with ulidx v2 (using webpack+turbopack config provided by Next.JS) according to the exports configured in ulidx's package.json.
(This was implemented in https://github.com/perry-mitchell/ulidx/issues/20.)

FYI @perry-mitchell, Wrangler v3 makes it trivial to run a true worker runtime locally now. It now uses workerd, the same runtime as Cloudflare Workers.
In my experience, this package already seems to work perfectly on Cloudflare Workers.
The only change that would make it easier to use would be to update your package.json exports to rename the "browser" condition to "default" (or add a "worker" condition that points to the same build). As it is now, I had to update my Remix esbuild conditions from ["worker"] to ["worker", "browser"] to get this package loaded; it would be preferable not to tell the build system to load all browser packages just to get this one.

In my experience, this package already seems to work perfectly on Cloudflare Workers.

That's awesome to hear!
@aaronadamsCA That's great advice - I'll add the worker pointer to the exports shortly and will close this issue then. I'd like to add tests locally using such tools so let's see if that makes it into that release or not.
Thanks for all the eyes on this!

Reopening as I still want to make some final changes before release.

Going to release this now.
If anyone has the time to setup tests using wrangler, I think this project would definitely benefit from such a guarantee on stability.

Thanks so much! I can confirm this works perfectly; after upgrading to v2.1.0, we can now import { ulid } from "ulidx" in a standard Remix Cloudflare Pages setup with no config changes required.

repo: perry-mitchell/ulidx

license: MIT


text:
[BREAKINGCHANGE] Update DataQueriesProvider to support other data types

Currently our DataQueriesProvider serves as the core component for data querying. It decouples the visualization layer from the data source layer. This separation allows users to update queries easily without affecting the visualization.
However, our current implementation is limited to supporting time series queries only. We want to expand the capabilities of the DataQueriesProvider to support other data types, such as traces and logs. This improvement will  provide developers more versatility and flexibility when running queries.
Changes

Modify the DataQueriesProvider to filter the definitions into different query types, returning a mix of data types
Update useDataQueries hook to accept a queryType prop and return results specifically related to that query type.

Usage
Here’s an example of usage of the modified interface:
export function MyCustomPanel() {
  const definitions = [
    // TimeSeriesQueryPluginDefinition
    { kind: 'PrometheusTimeSeriesQuery', spec: prometheusTimeSeriesSpec },
    // LogsQueryPluginDefinition
    { kind: 'ElasticLogsQuery', spec: elasticLogsSpec },
  ];

  return (
    <DataQueriesProvider definitions={definitions}>
      <InstantQueryComponent />
      <LogsComponent />
      <TableComponent />
    </DataQueriesProvider>
  );
}

export function TableComponent() {
  // table can render any data type
  const { queryResults: { data: timeSeriesData } = useDataQueries('TimeSeresQuery');
  const { queryResults: { data: logs } = useDataQueries('LogsQuery');

  if (timeSeriesData) {
    return <TimeSeriesTable />
  }

  if (logs) {
    return <LogsTable />
  }
}

🎉 can you update #1303 with some more info about how it relates to these changes?

Is the added screenshot because of some diffs with what's on main or is that an example of something going funny with storybook/happo? I'm trying to keep a close eye out for weirdness there.

Is the added screenshot because of some diffs with what's on main or is that an example of something going funny with storybook/happo? I'm trying to keep a close eye out for weirdness there.

just rebased the branch with the latest main branch so we'll see if the happo test is still failing in the next run

authors: eunicorn juliepagano sjcobb

repo: perses/perses


text:
Hyperlinking Props

This PR implements hyperlinking to proposals:
https://github.com/personaelabs/noun-nyms/assets/95446735/d6ae842b-8a40-495c-aa98-2be22d266c88
It also adds overflow support to the Upvote.tsx preview

Notes
The proposals and upvotes menu uses a custom Tooltip.tsx component that prevents viewport overflow on the top and right.
TODO:

[x] Fetch proposals
[x] Live filtering logic for finding and selecting a prop (Hashtag then type then hit enter). Right now it's a keyword search, not a numerical one. But we can add that.
[x] Styling for links in BodyWithPropLink.tsx
[x] Modal UI for live filtering
[x] Modal responds to key events
[x] Preview of Proposal on Hover

this looks amazing after some initial testing on staging!
want to review the code a bit as well after which I'll mark ready

lgtm

repo: personaelabs/noun-nyms


text:
Redundant lighting washes out mesh colors.

When using ROS Indigo or_rviz in-process, the default lighting in RViz is not removed before adding the additional lights here:
https://github.com/personalrobotics/or_rviz/blob/732d4c3e40ba0d73f86042835d3a56a6319cc6ed/src/RVizViewer.cpp#L417
This makes the entire scene incredibly washed out.  Most meshes are nearly pure white.

isn't an issue for herb, but I guess other meshes have too much light. I will look into just deleting the existing light.

this commit https://github.com/personalrobotics/or_rviz/commit/0b5244d3f3472f7ac9735205b5502c4189f4d270 added some lighting options in the environment display which should make this more acceptable to your needs.

yay! :+1:

authors: mklingen psigen


text:
🛑 Prof. Yi-Ben Tsai is down

In 682c1cc, Prof. Yi-Ben Tsai (https://yibentsai.info/) was down:

HTTP code: 500
Response time: 4061 ms

Resolved: Prof. Yi-Ben Tsai is back up in 1d01e99 after 8 minutes.


text:
String too long for TXT record

Versions
NetBox Version: 4.0.2
NetBox DNS Version: 1.0.0
Python Version: 3.10.12
Describe the bug
TXT records containing valid DKIM values are too long to add.
Error on saving:
Record value "v=DKIM1; k=rsa; p=MIIBqhki<...snip...>JPoGa7I" is not a valid value for a TXT record: string too long.
It is possible to add these long TXT records to the provider's DNS, so I take it that "not a valid value" isn't entirely correct. It is now impossible to store the record in netbox-plugin-dns. My example is 410 characters.

You are correct. Thanks for answering this. I should have done my research better. The provider allows a single string, but I see now that the answer section indeed contains 2 strings, and that it is possible to use those 2 strings as input in the plugin.

I put an item on my mid-term action list: 'Check options to break up long record values into strings of less than 256 octets'. It isn't entirely trivial, though, as you need to take IDNs etc. into account - so don't hold your breath.

@Serverhamster As you may have seen I've finally managed to address this in a new PR.
Fortunately, IDNs are not an issue here - RFC1035 only allows printable ASCII in TXT records anyway. Let's see when someone comes up with a special case where an SPF record for an IDN domain ... :-)

authors: Serverhamster peteeckel

repo: peteeckel/netbox-plugin-dns


text:
Writing variables as key value pair

I wonder is it possible to create a kv secret called common and has key value pairs in it for variables? currently each variable needs to be written as secret and has field called value, right?

Like would not it be better if we do not  append variable to secret mount but use it as filed name? like lets say we are looking for password variable normally plugins will look for secret-mount/password path for vaule field, what if it looks for secret-mount/common for password field.


text:
Current State

Hello,
I can get the state of the Lamp by:
api.lightStatus(5)
.then(displayStatus)
.done();
and get the value:
{
"state": {
"on": true,
"bri": 254,
"hue": 34515,
"sat": 236,
"xy": [
0.3138,
0.3239
],
how can I get ony the value from "on" ?
thanks!

You would replace the displayStatus function with a function that used the status value that it is provided with to obtain the on value.
For example:
function myOnStatus(status) {
  var onState = status.state.on;
  console.log("Light on state is " + onState);
}

repo: peter-murray/node-hue-api


text:
Ability to disable the display of already delivered packages

Any packages already delivered, should not be displayed, unless they were delivered today or yesterday.

Fixed in the latest update.

repo: peternijssen/lovelace-postnl


text:
how to hide bottomnavigationbar when miniplayer at max height

I saw this comment for this property... but not sure how to use it ? My app is using Getx
///Allows you to use a global ValueNotifier with the current progress.
///This can be used to hide the BottomNavigationBar.
final ValueNotifier? valueNotifier;
I got this error https://stackoverflow.com/questions/68073121/getx-and-hide-bottomnavigation-bar-error-with-stateful-widget-rendering, when I tried to make it work using Getx

@peterscodee  it will be great if we get a sample I think since I am using my entire page within MiniplayerWillPopScope() none of the statement options like ValueNotifier, Getx are not working to re-render the bottomnavigation. I saw the above comment in the ValueNotifier code, there will be an easier way to achieve this.. thanks for your help

Did you have a look at the example?
An implementation would be:
bottomNavigationBar: ValueListenableBuilder(
        valueListenable: playerExpandProgress,
        builder: (BuildContext context, double height, Widget? child) {
          final value = percentageFromValueInRange(
              min: playerMinHeight, max: playerMaxHeight, value: height);

          var opacity = 1 - value;
          if (opacity < 0) opacity = 0;
          if (opacity > 1) opacity = 1;

          return SizedBox(
            height:
                kBottomNavigationBarHeight - kBottomNavigationBarHeight * value,
            child: Transform.translate(
              offset: Offset(0.0, kBottomNavigationBarHeight * value * 0.5),
              child: Opacity(opacity: opacity, child: child),
            ),
          );
        },
        child: BottomNavigationBar(
          currentIndex: 0,
          selectedItemColor: Colors.blue,
          items: <BottomNavigationBarItem>[
            BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Feed'),
            BottomNavigationBarItem(
                icon: Icon(Icons.library_books), label: 'Library'),
          ],
        ),
      ),```

Thank you so much David. I think I am getting closer now :)...
In my case I have to keep the miniplayer in full height whenever I click on the button... for that I saw that we have to use ValueNotifier...
final ValueNotifier<double> playerExpandProgress =
    ValueNotifier(MediaQuery.of(context).size.height);

I am using the above way. Because of that I think the the example code is hiding the bottomnavigation always hidden by default and whenever I minimize the miniplayer it comes back. What is the best way to keep the bottomnavigation visible for this situation. I might be missing some basics. Thanks for your help.

@toklive Don't set default value to full height.
Use
final ValueNotifier<double> playerExpandProgress =
    ValueNotifier(playerMinHeight);

Where playerMinHeight is the minimum height of the player.

From where do you import percentageFromValueInRange? I found it is in miniplayer/src/utils.dart, but it's not good to import it directly

@toklive Does it work as expected? I got an overflow error at the bottom.

authors: asterisk37n peterscodee prateekmedia toklive

repo: peterscodee/miniplayer


text:
Typo in metadata field

https://github.com/petrbroz/forge-extract/blob/58b11a22aa0e35a826ee8b72c4237b4e0336cd89/src/svf/deserialize.js#L107
svf.metata should be svf.metadata

Thanks @sayangel! Fixed in https://github.com/petrbroz/forge-extract/commit/0b41b4cb0debf5776d6d19a405e9addc3a6466bc.

authors: petrbroz sayangel

repo: petrbroz/forge-extract


text:
Poienari village component of  Corbeni is not found in Arges county

Precondition
SOLR: http://zimbor.go.ro/solr/#/romania/query
browser: Chrome
Steps to Reproduce:

Step
Action
Expected
Status

1
open SOLR in browser
SOLR UI is loaded without any errors
Pass

2
type one by one in the q field all the list of the components of every village in Arges county found in test data
you are able to type one by one in the q field  all the list of the components of every village in Arges county found in test data
Pass

3
type judet: Arges in the fq field
you are able to type judet:Arges in the fq field
Pass

4
click on Execute Query button
Verify that all the list of the components of every village in judet:Arges form the test data are displayed
Fail

Actual Results:
Poienari village component of  Corbeni is not found in Arges county

https://orase.testquality.com defect D58.

Este comuna Corbeni cu satul Poienari.

repo: peviitor-ro/orase

license: Unlicense


text:
"Holbav" is village in "Holbav" common, "BRAȘOV" county

Description : When user is typing the villages in the search bar, the locations should appear in the dropdown menu correctly spelled and with localities information (as in Law nr. 2 din 16 februarie 1968)
Preconditions : the website (https://peviitor-ro.github.io/ui.orase/) is up and runing.
After every step delete the text you typed from the search bar.

Step 1
Type "Holbav" in the search bar.
Expected results
The location is listed in the drop-down menu as "Holbav, Brașov (Holbav)"


text:
"Lisa" commune is listed in the drop-down menu

Description:
The commune is listed in the drop-down menu according to the law
Preconditions: the website (https://peviitor-ro.github.io/ui.orase/) is up and runing.
After every step delete the text you typed from the search bar.

Step 1
Type "Lisa" in the search bar.
Expected results
The location is listed in the drop-down menu as "Lisa, Brașov"


text:
"Tălpaș" is listed in the drop-down menu

Description:
"Tălpaș" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Tălpaș" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Tălpaș, DOLJ".


text:
”ISACCEA”, ”Revărsarea”, ”Tichilești” are listed in the drop-down menu

Description:
When user writes ”ISACCEA”, ”Revărsarea”, ”Tichilești” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "ISACCEA"

Expected results
The location appears in the drop-down menu as "Oraș ISACCEA, TULCEA (ISACCEA)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Revărsarea"

Expected results
The location appears in the drop-down menu as "Sat Revărsarea, TULCEA (ISACCEA)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Tichilești"

Expected results
The location appears in the drop-down menu as "Sat Tichilești, TULCEA (ISACCEA)".

Environment: Run Tests - 6094
Browser: Chrome 123
OS: Windows 10
Steps to reproduce:
1 Open the @Adelina Guliman Test case ui.orase
2. Check TC: ”ISACCEA”, ”Revărsarea”, ”Tichilești” are listed in the drop-down menu
#6094
Expected results:
The website link (https://peviitor-ro.github.io/ui.orase/) is up and running
The link to the law is displayed :"Sat Tichilești, TULCEA (ISACCEA)"

Actual results:
Is displayed: "Oras Tichilesti, Tulcea (ISSACEA)"

Fixed! Poti sa retestezi!


text:
Exercise14.43: Confusion with the exercise description

Exercise information
Exercise 14.43

Using library function objects, determine whether a given int value is divisible by any element in a container of ints..

Question or Bug
The answer for English version is right. "Any element in a containner", definitely we should use any_of function. But in Chinese version ( 第五版), the exercise becomes:

使用标准库函数对象判断一个给定的int值是否能够被int容器中的所有元素整除。

The translation is wrong. But under that condition, all_of function should be used.
Just for a discussion.

Yes,I think so.  感觉all_of才对

authors: mmz-zmm wmzclever

repo: pezy/CppPrimer


text:
Preparaing the dataset

Hello,
I went through your docs, the work seems to be very helpful and I wish to try it out. Also, I would like to ask that is it necessary  to use the script written by your friend to convert data into necessary formats.
What if I already have LIDC-IDRI dataset segmented. Can I not use it?
Please shed some light on the pre-processing work.

hi if you want to use the preprocessing as is, you need to convert it with the described tool. otherwise you need to adapt the code to your needs.

authors: kankratekaran pfjaeger

repo: pfjaeger/medicaldetectiontoolkit


text:
Use six to download

related to #515

LGTM :+1:

repo: pfnet/chainer


text:
GUI : Remove CSS padding around hidden inputs

Remove padding around an input group if this group only contain hidden inputs

[x] Redmine Issue: https://redmine.pfsense.org/issues/9221
[x] Ready for review

hello @sbeaver-netgate
Is this PR still required given that #4060 has been merged?
I believe that it may be closed (duplicate) ?

@sbeaver-netgate is this one a duplicate of #9221?

No longer required since 4060 has been merged.

authors: Augustin-FL rbgarga sbeaver-netgate

repo: pfsense/pfsense


text:
res.on('data') event doesn't seem to be fired

I'm using nock to mock an endpoint my app hits on an external api - however I seem to be get the error..
Uncaught SyntaxError: Unexpected end of input
at Object.parse (native)
Adding some trace to my code I've found that the response never emits the data event, so I get the above when attempting to parse data thats undefined (more specifically an empty string).
My nock block looks like
nock("http://api.songkick.com")
            .get('/api/3.0/search/venues.json?query=brudenell&apikey=XXXkeyXXX')
            .reply(200, {data:{message:"hello"}});

The block in my object that makes the request looks like
var req = http.get(endpointUrl, function(res){
            var body = "" ;

            res.on('data', function(d) {
                console.log("DAO data");
                body += d;
            });
            res.on('end', function() {
                console.log("DAO end");
                var data = JSON.parse(body);
                var result = searchResultsBuilder.buildResults(data);
                callback(result);
            });
        });

"DAO data" is never output to my console and so the body object is never updated with the incoming data. The "DAO end" does fire with the code erroring at
var data = JSON.parse(body);

A similar example of this is working for me against latest master.
@LAD500 What version of node and nock are you using?

Node is v0.10.26
Looking at Nock's package.json the version is 2.3.0
On 8 June 2015 at 08:47, Pedro Teixeira notifications@github.com wrote:

A similar example of this is working for me against latest master.
@LAD500 https://github.com/LAD500 What version of node and nock are you
using?
—
Reply to this email directly or view it on GitHub
https://github.com/pgte/nock/issues/328#issuecomment-109894392.

I've created a trimmed-down version of the test. Could you please try running this?
var nock = require('./');
var assert = require('assert');
var http = require('http');

var reqBody = {data:{message:"hello"}};

nock("http://api.songkick.com")
  .get('/api/3.0/search/venues.json?query=brudenell&apikey=XXXkeyXXX')
  .reply(200, reqBody);

var req = http.get('http://api.songkick.com/api/3.0/search/venues.json?query=brudenell&apikey=XXXkeyXXX', function(res) {
  var body = '';

  res.on('data', function(d) {
    body += d;
  });

  res.on('end', function() {
    assert.deepEqual(JSON.parse(body), reqBody);
    console.log('all done');
  });

});

@LAD500 please replace the first line with
require('nock');

Thanks Pedro,
Unfortunately I still get the same result. var body is never populated as
the data event never fires
On 8 June 2015 at 11:38, Pedro Teixeira notifications@github.com wrote:

@LAD500 https://github.com/LAD500 please replace the first line with
require('nock');
—
Reply to this email directly or view it on GitHub
https://github.com/pgte/nock/issues/328#issuecomment-109945707.

@LAD500 I was able to reproduce this in Node v0.10.26.
Going to dig in.

Also, this problem does not happen in node >= v0.10.27.

Fixed landed on v2.4.1.

Thanks Pedro,
Will shift up to the new version

On 9 Jun 2015, at 13:14, Pedro Teixeira notifications@github.com wrote:
Fixed landed on v2.4.1.
—
Reply to this email directly or view it on GitHub.

repo: pgte/nock


text:
电话号码199网段的无法录入

非常感谢代码的贡献者，偶然自己用了一下，发现自己的电话好吗无法录入 199XXXXXXXX（电信）
应该是正则匹配的问题了吧

电话号码验证已取消

repo: phachon/mm-wiki


text:
🛑 code-server is down

In dc77656, code-server (https://code-server-phantomic12.cloud.okteto.net/) was down:

HTTP code: 502
Response time: 384 ms

Resolved: code-server is back up in a5da830 after 45 minutes.


text:
New function: derive_params_growth_age - for BY AGE growth parameters

New function:
derive_params_growth_age(
  dataset,
  sex,
  age,
  age_unit,
  meta_criteria,
  parameter,
  set_values_to_sds,
  set_values_to_pctl)

Arguments:

dataset: input dataset
sex, age and age_unit would define the variables to use from input dataset: e.g. sex = SEX, age = AAGECUR, age_unit = AAGECURU
meta_criteria: metadata as defined in step 4 of MS Teams doc
parameter: the input dataset PARAMCD for which we want growth derivations: e.g. parameter = exprs(BMI = VSTESTCD == "BMI"). Options: “BMI”, “HEIGHT”, “WEIGHT”, “HEAD CIRCUMFERENCE”
set_values_to_sds: variables to be set for zscore (SDS) parameter: e.g. set_values_to_sds(PARAMCD = “BMIASDS”, PARAM = “BMI-for-age z-score”). If left blank then parameter not derived in output dataset.
set_values_to_pctl: variables to be set for percentile parameter: e.g. set_values_to_pctl(PARAMCD = “BMIAPCTL”, PARAM = “BMI-for-age Percentile”). If left blank then parameter not derived in output dataset.

Checks:

dataset

The variables for sex, age and age_unit are in input dataset – age then first needs to get converted to DAYS using admiral::derive_vars_duration()
The PARAMCD in parameter is available in input dataset
the unit associated with each parameter is as expected (Height/Head CIRCUMFERENCE in cm, weight in kg)

metadata

has variables for SEX, AGE, L, M, S

Derivations:

Example function call:
advs_wgt_age <- advs %>%
  derive_params_growth_age(
    sex = SEX,
    age = AAGECUR,
    age_unit = AAGECURU,
    meta_criteria = mymetadata,
    parameter = WGHT,
    set_values_to_sds(
      PARAMCD = “WGTASDS”,
      PARAM = “Weight-for-age Z-Score”
    ),
    set_values_to_pctl(
      PARAMCD = “WGTAPCTL”,
      PARAM = “Weight-for-age Percentile”
    )
  )

NOTE from David for BMI:
CDC BMI percentiles >95 are calculated differently than this <95th percentile.
Here are the 2 places that 'introduce' the new (2023) CDC calculations for BMIs > 95th percentile

https://www.cdc.gov/nccdphp/dnpao/growthcharts/resources/sas.htm - (This a page that I largely wrote).  You can see the big notification at the top of the screen and there's a section on 'Extended z-scores and percentiles' about halfway down the long webpage
And here's a page written by CDC people in Washington (Natl Center for Health Statistics): https://stacks.cdc.gov/view/cdc/122933

We called them extended BMIz and extended BMI percentiles, but the SAS and R programs name these calculations as 'BMIz' and 'BMIp'.  If someone wanted to use the old visions of the calculations to check their work done in years before 2023, the variables are named something like original_BMIz and original_BMIp

@zdz2101 reminder here to see the doc David sent around unit testing tips for this function so we cover a good range of boundary cases. Also around his tip on deriving for very high BMI values.

repo: pharmaverse/admiralpeds


text:
WIP: General Issue: glossary

Background Information
Based on discussions on Slack and #30 we want to start a glossary of key terms in the project.
Definition of Done
No response

Hi @kamilsi, @rammprasad, @edgar-manukyan:
May I make a request? Can we start by trying to clarify these terms in the glossary?

dataset
domain
raw as in raw_dataset (as used in hardcode_no_ct())
target as in target_dataset (as used in hardcode_no_ct())
topic

I am aware of https://www.cdisc.org/kb/articles/domain-vs-dataset-whats-difference. However, I think it still warrants clarification.
Take the case of the domain definition.

Domain: A collection of logically related observations with a common, specific topic that are normally collected for all subjects in a clinical investigation.

If we were to apply the concept of domain to R's iris data set, then I guess we could call it a domain in the sense that the iris data frame is a collection of related observations with a common topic, i.e. plant leaves (not plant species, right?). So even if we split the iris data into two data frames, the set of the two data frames would still be that one domain whose topic is about leaves, right? So one domain is typically materialized as one dataset, but it needs not to. Real life examples would help here.
Then, the CDISC definition of dataset:

A collection of structured data in a single file.

It is, perhaps, not so obvious either... To start, because of the reference to a file. I am guessing that the original intention was to refer to the implementation on a computer, be it a file, an object in memory, database, etc.. Right? It feels like the idea is to say that the domain definition corresponds to the conceptual idea of a data set, and that the dataset is the actual instantiation of that concept on a computer.
Regarding topic, can we say that it equates with the concept of observational unit in tidy data?

authors: kamilsi ramiromagno


text:
Looks like Athens-SVG does not work on pharo 9

I have try to load this version of athens-svg and it does not work well on pharo 9 but it works  pharo 8.
The reason is there are some missing classes like  StandardFileStream
isSupportedImplementation
	^ XMLClassFinder hasClassNamed: #StandardFileStream

Present in Pharo8 but not in Pharo9

Well, that is not a problem of Athens-SVG but of XML Parser [1] that has no working version for Pharo 9, I will close it here
[1] https://github.com/pharo-contributions/XML-XMLParser

authors: akevalion pavel-krivanek

repo: pharo-contributions/Athens-SVG


text:
Warnings from PARAMO vignette

I get the following warnings from the PARAMO vignette when rendering it for the course website:
Warning messages:
1: In FUN(X[[i]], ...) :
  cannot unserialize ALTVEC object of class 'wrap_logical' from package 'base'; returning length zero vector
2: In FUN(X[[i]], ...) :
  cannot unserialize ALTVEC object of class 'wrap_logical' from package 'base'; returning length zero vector

I can't tell how consequential these are, and what I can do to make them go away. If they result in bad output, someone who does not see these warnings needs to render the vignette so it appears properly on the website.

Seems to be related to this problem, will try to figure out but perhaps you can help me by letting me know your sessionInfo and how to reproduce it?

Yes, that sounds like it could be it. I was (am) indeed running R 3.5.x (and this is also the minimum required version in DESCRIPTION). (Specifically, I am running R version 3.5.2 (2018-12-20).) Were you indeed saving the data files from R 3.6.x?
I can post the full session info, but if you're looking for specific packages, I can maybe make it easier by fishing out those versions?

For the record, this wasn't a problem with the PARAMO vignette itself, but with two of the data files it uses.

authors: hlapp uyedaj

repo: phenoscape/scate-shortcourse


text:
Use coralproject/talk for comments?

We originally used Disqus for comments, but abandoned it due to excessive tracking (see [1] [2]). We switched to a self-hosted isso instance, which works well but does not support email notifications yet.
Now there is coralproject/talk, a new commenting system sponsored by Mozilla which is used e.g. by the Washington Post. I think it's worth giving a try. Does anybody have experiences with it?

Interesting alternative: https://staticman.net/

Sorry to bump this, but the blog is now based on utterances comments, so this probably needs closing

Thanks!


text:
chore(main): release 0.1.5

:robot: I have created a release beep boop
0.1.5 (2024-03-31)
Bug Fixes

deps: update rust crate axum to 0.7.5 (d2e73b7)
deps: update rust crate clap to 4.5.2 (f5ffbe4)
deps: update rust crate clap to 4.5.3 (1b8d2f1)
deps: update rust crate clap to 4.5.4 (14a8978)
deps: update rust crate service_conventions to 0.0.10 (889af70)
deps: update rust crate service_conventions to 0.0.12 (6e888a5)
deps: update rust crate service_conventions to 0.0.4 (39341cb)
deps: update rust crate service_conventions to 0.0.5 (a72f3f4)
deps: update rust crate service_conventions to 0.0.6 (f973682)
deps: update rust crate service_conventions to 0.0.7 (1648dec)
deps: update rust crate service_conventions to 0.0.8 (02ee7a9)
deps: update rust crate tokio to 1.37.0 (051b1a9)
deps: update rust crate tower-http to 0.5.2 (cb1013a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/philipcristiano/nostress/releases/tag/v0.1.5 :sunflower:

repo: philipcristiano/nostress


text:
After Pull: "Insert Into" and "error" lines displays after submitting a reservation DSA User and new dsa user acc, Error codes are consistent...

After Pull: "Insert Into" and "error" lines displays after submitting a reservation DSA User and new dsa user acc, Error codes are consistent...
The reservations are still saved....   so no problem on that... just the error lines that shows after submitting...

the reservations are still saved tho...

reason of reopened... misclicked - close with comment.

fixed


text:
Basic scaling method is missing (val / sqrt(len))

divide_by_N_sqrt function doc states that this is the scaling rustfft recommends. While in fact, it implements sqrt(val / len) when rustfft doc actually recommends val / sqrt(len) (see: https://docs.rs/rustfft/latest/rustfft/#normalization). The description for this method is misleading.
Also, probably A sqrt(len) scaling method should be added, as it provides a useful case.
Consider this artificial waveform consisting of two sines with frequencies (300, 50) Hz, and amplitudes (10, 2) (using wavegen crate):
let sample_rate = 2560.0;
let n = 2048;

let samples = Waveform::<f32>::with_components(sample_rate, vec![sine!(300, 10), sine!(50, 2)])
    .into_iter()
    .take(n)
    .collect::<Vec<f32>>();

Calculated spectrum with divide_by_N_sqrt:
let spectrum = samples_fft_to_spectrum(
          &samples,
          sample_rate as u32,
          FrequencyLimit::All,
          Some(&divide_by_N_sqrt),
      ).unwrap();

draw("spectrum.png", "Spectrum", spectrum.data().iter().map(|(f, a)| (f.val(), a.val())))?;

Plot:

Notice the amplitudes of spectrum being respectively (1.0, 2.2)
Now we do the same, but with custom scaling:
let spectrum = samples_fft_to_spectrum(
        &samples,
        sample_rate as u32,
        FrequencyLimit::All,
        None,
    ).unwrap();

draw("spectrum.png", "Spectrum", spectrum.data().iter().map(|(f, a)| (f.val(), a.val() * (1.0 / sqrtf(n as f32)))))?;
                                                                                // ^ scalling by 1/sqrt(len)

Giving following spectrum plot:

Notice the spectrum amplitudes being (45, 226), which is close enough to the amplitudes of input waveform (minus the FFT leak).
This method of scaling is common in spectrum analysis, so the approximate amplitudes of waveform's components can be directly read from the spectrum.

Hi! I'll look into it in the next few days. Thanks for the issue! I think it's quite cool that people are using my library 😀  @spitfire05

@spitfire05 I'm not sure what you mean by

Also, probably a sqrt(len) scaling method should be added, as it provides a useful case.

Could you please look into https://github.com/phip1611/spectrum-analyzer/pull/42 and check if this is what you'd expect and what is missing?

#42 LGTM!
Also, where I wrote A sqrt(len) I should've written val / sqrt(len), sorry my my mistake.

Fixed in v1.2.6 on crates.io. Thanks again for the bug report! good catch


text:
Multihead Attention

It seems like the implementation of MultiheadAttention is not consistent with the "Multi-Head Attention" figure.
In particular, the projection:
self.qkv_proj = nn.Dense(3*self.embed_dim,...)
Should actually be:
self.qkv_proj = nn.Dense(3*self.embed_dim*self.num_heads,...)
Am I missing something?
[this would also require to change the line:
values = values.reshape(batch_size, seq_length, self.embed_dim)
to:
values = values.reshape(batch_size, seq_length, -1)
]
Thanks.

Hi, in Multi-Head Attention, it is common to split the embedding dimension over the heads. Therefore, each head uses a key dimension of embed_dim // num_heads, and the full output after applying $W^{O}$ is again embed_dim.

Thanks for clarifying.
Maybe worth adding a comment on that in the text as from the figure it seems like each head handles all input dimensions. Also, this requires that num_heads is a divisor of embed_dim.

authors: ofermeshi phlippe


text:
Windows Phone 8.1 App crashes after suspend -> resume

Hello,
i have the problem that the windows phone app crashes after I used the barcode-scanner and than suspend and resume the app. The windows phone shows the black screen with resume... message and crashes than.
I can suspend and resume the app without errors if i didn't used the barcode-scanner, but after i used it (suspend while the barcode-scanner is active or also after I closed the barcode-scanner) it crashes after suspend -> resume.
I use the newest version von the barcode-scanner-plugin from this repo.
I tried it with a Windows Phone 8.1 project, also retargeted the WinRTBarcodeReader to Windows 8.1.
I tried it with a Lumia 830 and a Lumia 930, both crash.
I also created a empty new cordova project (on cordova version 5.4.1 and 6.0.0), with both same error.
It seems like some of the resource that the barcode-scanner uses are not removed/closed/stopped correctly.
If I suspend and resume app, the app crashes before the app resume event is thrown (I set an app resume event handler functions and it doesn't run in the function, it crashes before).
It seems like it has something to do with the capture element/variable in the BarcodeScannerProxy.js file in the destroyPreview() function. With the code line about 419:
capture && capture.stopRecordAsync()
Because if I set a functions done() event it always runs the the fail function with the error message: "WinRTError: The request is invalid in the current state"
When i try to call capture.close() after the stopRecordAsync() (in the done() event function) the app don't crashes anymore after I closed the barcode-scanner and suspend and resume it.
capture && capture.stop.done(function (result) {
console.log("stop capture success: " + success);
capture.close();
capture = null;
}, function (error) {
console.error("stop capture error: " + error);
capture.close();
capture = null;
});
But the app still crashes (also with the code change write above) if the app is suspended and resume when the barcode-scanner is active and if I set a function for the app pause event that calls the cancelPreview() and opens the barcode-scanner in the resume event the app still crashes.
I hope someone has more experience/knowledge about the resource cleaning.

I am having exact same issues on win 8.1.

Same issue in my project also. Tried on different Nokia WP8.1 phones, same behavior.
Also noted that during debug (when my phone wired connected to debugger instance on VS2015) its working good, no crashes what so ever.

Hello, i managed to fix this by adding the below function in the Reader.cs :
public void Dispose()
        {
            this.capture.Dispose();
            this.capture = null;
        }

then got some ideas from here: https://github.com/wildabeast/BarcodeScanner/pull/193/files?diff=split on how to determine is camera is still in use:
then added this in my barcodeScanner.js file below:
BarcodeScanner.prototype.stopScanning = function (successCallback, errorCallback, config) {

        exec(successCallback, errorCallback, 'BarcodeScanner', 'stopScanning', config);

    };

and the below inside barcodeScannerProxy.js :
 function stopScanning() {
        if (capture) {
            capturePreview.pause();
            capturePreview.src = null;

            capture && capture.stopRecordAsync();
            capturePreview.pause();
            capturePreview.src = null;

            [capturePreview, capturePreviewAlignmentMark, captureCancelButton].forEach(function (elem) {
                elem && document.body.removeChild(elem);
            });
            if (reader) {
                reader && reader.stop();
                reader && reader.dispose();
                reader.readCode().cancel();
                reader = null;
                captureCanceled = true;
            }

            capture.stopRecordAsync();
            capture = null;
        }
    }

and call from angular using the below line when **back **button or suspend is pressed:
cordova.plugins.barcodeScanner.stopScanning();
and it works just fine! i think the "reader=null" isnt enough for the windows phone and .dispose() is also needed but isolated and outside the existing implementation specifically for when back button and suspend are triggered only... hope this helps.

Seems like this topic is not a problem anymore since the resources (capture, ...) are released and closed now correct.
Also since this commit: Windows - Cleanup camera on app suspension to suspend the App should also work correct.

repo: phonegap/phonegap-plugin-barcodescanner


text:
Scanning crashes on Windows phone on device rotation, this fixes #213

Fixes scanning in portrait orientation, this fixes #172, this fixes #202

@daserge, could you please also rebase this

Reworked and rebased, @vladimir-kotikov could you please take a look once more?
Scanning in portrait mode now works although the preview is being shrinked in this orientation.

Thanks, @daserge. I'll verify this on my devices and merge if everything is good

Tested on Lumia 730 w/ Windows 10 and Lumia 822 - everything seems to be working

authors: daserge vladimir-kotikov


text:
Incomplete copy if app is terminated too early

The local sync copies the files directly to the destination directory. If the application is terminated before the sync is complete, it will not resume the next time the application starts - e.g. the application has no way to figure out that the copy was incomplete.
suggest:

copy to temporary sibling directory
after completion do a rename, rename, delete action:
old.renameTo(trash); new.renameTo(old); trash.delete();

@tripodsan which platforms do you see the behaviour on?

authors: macdonst tripodsan

repo: phonegap/phonegap-plugin-contentsync


text:
Question: How to enable the push notification capability (not on XCode)?

When I build the app through cordova CLI, the push notification does not work properly.
I open the project on XCode, enable the Push Notifications under capabilities, rebuild the project through XCode and push notification works properly.
Is there some config that I can set like in config.xml or Info.plist to enable the capability so that I don't have to enable it with XCode, anyone? If this is not the expected behaviour, can someone point me some steps which I might have missed?

Will this issue be fixed by this PR ?

@kukikiloke will be fixed by cordova-ios change, see #1498

i'm in the same situation. Anyone have found some workaround?

It's not implemented in cordova-ios yet
But anyway, push notifications are enabled and work fine, just because it doesn't appear as enabled on Xcode doesn't mean they aren't enabled.

@jcesarmobile for me push notifications aren't enabled. How did you enabled?

You don't have to enable them, Cordova enables them, but it's not visible on Xcode

@jcesarmobile tks. For me, after add this plugin in my project my process to generate the archive failed. I have to open the xcode every build and enable manually.

authors: amodolo jcesarmobile kukikiloke lfxsantos macdonst

repo: phonegap/phonegap-plugin-push


text:
FCM Sender ID (null)

Expected Behaviour
GoogleService-Info.plist is correctly placed in the root folder, <resource-file src="GoogleService-Info.plist" /> is correctly placed under the iOS platform. The plugin is expected to use FCM.
Actual Behaviour
Uses APNS instead
Steps to Reproduce
Install the plugin and follow the instructions ;)
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 11
Cordova CLI version and cordova platform version
Cordova 7.01
Plugin version
Github latest (2.0.0)
Logs taken while reproducing problem
2017-10-01 02:02:18.849202+0200 APP[1185:294928] FCM Sender ID (null)
2017-10-01 02:02:18.849241+0200 APP[1185:294928] Using APNS Notification
My push config:
  var push = PushNotification.init({
      "android": {
        "senderID": senderId
      },
      "ios": {
        "gcmSandbox": false, //also attempted setting this to true, as well as use fcmSandbox
        "alert": true,
        "badge": true,
        "sound": true
      }
  });

For your issue try to put in your config :
<resource-file src="GoogleService-Info.plist" target="GoogleService-Info.plist"/>

@speedfl I have that correctly set as mentioned in the issue description

Yes but I had this issue as well. I was missing the target part

Then don't put senderID as it is deprecated in 2.0.0

I'm not using it for iOS :)

@1N50MN14 do you see the GoogleService-Info.plist file in your platforms/ios folder? Does it included a FCM Sender ID? What version of cordova-ios are you using?

@macdonst I'm using cordova-ios 4.5.1, yes I do have GoogleService-Info.plist properly located under platforms/ios, I wonder if I should attempt to re-add the platform...

@macdonst Ok re-adding iOS seemed to have solved this issue.. only thing now is that push notifications are not arriving, no errors or logs from xcode, payload is correct...

@macdonst Ok I think I figured it out, it's FCM data messages which are not arriving.. push messages arrive correctly

@1N50MN14 yeah, that's documented here: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#gcm-and-additional-data

@macdonst Yeah I think my issue is different because I'm sending a data only FCM message without the notification attribute, following https://firebase.google.com/docs/cloud-messaging/concept-options#data_messages, the payload is correct but the plugin is not intercepting it...

@macdonst Yup, I can confirm this is the case, if you send a sample payload:
{
   "to" : "XXX",
   "data" : {
     "foo" : "bar",
     }
 }

It won't arrive the device, however, if you add the notification attribute then it's treated as push message and arrives as expected.

@1N50MN14 when sending to Android use data and to iOS use notification when going over FCM.

@macdonst Sorry for my naive question, I'm using FCM on both Android and iOS. How does the plugin, on either platform, distinguish between a notification message and a data message? In the case of data messages I'm using that to send some information to the app which I do not wish to notify the user of.

(notification & data messages as in FCM terms)

authors: 1N50MN14 macdonst speedfl


text:
push plugin

Error: Can't find variable: PushNotification

its build successfully but on real device its show error on console log like this Error: Can't find variable: PushNotification

@karthi191 Sorry to be a jerk but I'm now closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone.
I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines.
https://github.com/phonegap/phonegap-plugin-push/blob/master/.github/ISSUE_TEMPLATE.md


text:
Add an already created Sprite to MatterJS System

I created a self Class by extends Sprite. On the document I found the existing method at this.add or Arcade System, but seemingly there are not same methods in MatterJS System ? Maybe I didn't find the right place. eh... is there a way to add an already created sprite or graphics or others GameObject to the MatterJS System ?

@hexus Thank you very much

repo: photonstorm/phaser


text:
Mixing Phaser3 and threejs removes shadows on 3d scene

I use phaser 3.18.1 and three 0.107. three is rendered via this.add.extern();
The same scene is rendered in phaser mode and non-phaser - in first case I see shadows, in the second case,  shadows are disappeared. Does anybody have any ideas how to fix it?

Thank you for your input. We'd really like to keep GitHub issues specifically for actual issues with the library. Therefor please ask coding support questions like this in the Phaser forum. If you prefer direct chat then you could use Slack or Discord. Or even Stack Overflow with the correct tag.

authors: fysx photonstorm


text:
add default timeout and encode judge

add default timeout and encode judge

:+1: Timeout

authors: Oxicode karboom

repo: php-curl-class/php-curl-class

license: unlicense


text:
Handle multiple target metadata files transparently

In #113, we're adding the ability for TUF to transparently download and verify target files before passing control back to the calling code. Right now, that means it needs to load the target files' known, signed metadata from targets.json. In review, @tedbow rightfully pointed out that there might be multiple files with target metadata, and that snapshot.json is the place to get a list of those. We'll need to handle this in such a way that TUF automatically figures out which target metadata file contains the information on the target being downloaded.

This has long been dealt with. :) Updater can search the targets tree, including delegations, to find the metadata with the target's info. We have extensive test coverage of that.

repo: php-tuf/php-tuf


text:
Parse duplicate headers properly

Fixes #123

@adri Ready for review.

Nice! I think the best solution would be to store the exact request.
For now this is good 👍

I'll release with some other stuff soon.

Released 1.2.5

authors: adri justincy

repo: php-vcr/php-vcr


text:
[WIP][POC] Refactor to tighten DDD setup and implement Hexagonal Architecture

In order to make it easier to contribute to the project we need to make sure
that we make it as easy as possible. One of the ways to do this is to ensure
that we have an architecture that is well-understood and supported by
modern insights.
At current the DDD movement is gaining traction and with recent developments
has the hexagonal architecture style (or ports and adapters) become a main-
stream part of our community.
The advantage of adopting these is that they are pre-existing ideas and we
can stand on the shoulders of giants, like others.
This Pull Request is a PoC that we can use to discuss these concepts on; this may or may not be promoted to a full functionality set. I expect too many breakages in other PRs for this to happen but you never know :)
Tasks:

[ ] Move Application-layer code to a sub-namespace Application
[ ] Move Infrastructure-layer code to a sub-namespace Infrastructure
[x] Move DomainModel-layer code to a sub-namespace DomainModel
[ ] Abstract Infrastructure concerns out of the DomainModel
[ ] Add/refactor the command/handler for parsing the project to move all business logic away from the console commands
[ ] Add/refactor the command/handler for rendering the project to move all business logic away from the console commands
[x] Consolidate the aggregates so that the file/folder structure matches the aggregates
[x] Move DomainEvents to root of DomainModel
[x] Move Commands to root of DomainModel

I think we should move stash out of the domain model either. The DocumentationRepository depends on Stash now. But the middleware for caching is in the infrastructure layer.

ConfigureCache command should be moved to the application layer, since it is using the configuration Factory.

RenderPass is still using flysystem directly. Shouldn't this be extracted to the infrastructure layer?

I think we should move stash out of the domain model either. The DocumentationRepository depends on Stash now. But the middleware for caching is in the infrastructure layer.

Yes, the repository should be abstracted to an interface and the concrete class moved to Infrastructure or  Application

Dsn in the domain model feels more like a Application class for me. Or even infrastructure. Since it is all filesystem logic in there.

RenderPass is still using flysystem directly. Shouldn't this be extracted to the infrastructure layer?

Well, RenderPass itself is a Domain Concept (though I am not really happy with this construct; we should revise it) but the Flysystem stuff should be abstracted away

ConfigureCache command should be moved to the application layer, since it is using the configuration Factory.
Same applies to the MergeConfigurationWithCommandLineOptions

Done :)

Well, RenderPass itself is a Domain Concept (though I am not really happy with this construct; we should revise it) but the Flysystem stuff should be abstracted away

I am going to do the revision of this part in a separate PR together with the Renderers; the RenderPass passes objects that should be abstracted away but I need a little headspace to shape that in the right architecture

Dsn in the domain model feels more like a Application class for me. Or even infrastructure. Since it is all filesystem logic in there.

I am going to address this issue together with the Renderpass; it seems we can drop it

authors: jaapio mvriel


text:
🛑 phpMyFAQ Demo is down

In a1130d7, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in 5513a7a after 4 minutes.


text:
🛑 phpMyFAQ Demo is down

In 230d754, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in d10f289 after 4 minutes.


text:
🛑 phpMyFAQ Demo is down

In b384387, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in d5a278b after 4 minutes.


text:
🛑 phpMyFAQ API is down

In 161d37f, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in 6b93e4c.


text:
feat: STRINGS-374 & STRINGS-439 Enable users to provide a prefix during CLI push and pull

Purpose: Provide documentation for the new params on import and export.
Related tickets:
https://phrase.atlassian.net/browse/STRINGS-374
https://phrase.atlassian.net/browse/STRINGS-439

hey @malvarezphrase can you please explain the logic with the truncating file name? I don't get it.

hey @malvarezphrase can you please explain the logic with the truncating file name? I don't get it.

@jablan The reason for the truncate of the file name is that we want to use the idx_translation_keys_on_name_project_deleted index on translation keys when the prefix is used as a filter. Therefore we only allow it to be maximum 255 characters long.
Now looking at the other usages of the prefix, is it also possible to add a limit on create.yaml and download.yaml? Or will phrase respond with a validation error?

@malvarezphrase sorry, I need a bit more context. where does <file_path> come from? is that a "magic" prefix working similar to <locale_code> and such? is it explained somewhere?

Where would I put it?

@malvarezphrase I would start with the ticket description :smile:
if it can be specified only through the phrase.yml, probably we should document it in https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/phrase.json
but I don't see other magic placeholders either, so perhaps it's a good opportunity to add them all?
regarding the truncating, if I understand you correctly, we don't support prefixes longer than 255 chars? in that case we should probably error out rather then truncating them?

@jablan Thanks a lot for the feedback! I already updated the ticket descriptions and also the description of this PR.
Are the changes to https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/phrase.json being done manually? If so, I will prepare a PR for it.

in that case we should probably error out rather than truncating them?
How do errors on the CLI usually work? The validation for the length is already in place inside phrase.

perhaps then just passing whatever prefix is provided (either explicitly by the user or by using the filename) will be enough. is the error clear to the user?
as for json schema, perhaps you could open a small ticket, I see couple other things that could be fixed there, so we will do it all together.
just remember, we also have https://support.phrase.com/hc/en-us/articles/5808300599068-Using-the-CLI-Strings where we might want to describe this feature?

@jablan & @theSoenke after changing to not truncate the length of the prefix and updating the description here, is there anything else missing?

@jablan @malvarezphrase I've changed the file_path placeholder to make it work with other placeholders. It's also now possible to use the placeholder as part of the prefix like <file_path>-foo. Having the ability to separate the path from the key name by characters seems useful when I was testing it

authors: jablan malvarezphrase theSoenke

repo: phrase/openapi


text:
Remove the option that doesn't actually create a function

Taking the reference is not creating a function.

const a = Function.prototype
const b = Function.prototype
a===b
true

It can trip up a lot of people, especially when using React or anything that detects changes by strict equal.

const f = Function()
const g = Function()
f === g
false

Thank you, @naugtur 👍

authors: naugtur phuoc-ng


text:
change APIC to have scalar/vector p2g/g2p interpolation with single P…

modify APIC to have scalar/vector p2g/g2p interpolation with single ParticleField. ParticleField c_p is composed of
for vector field
c_p[4,3] matrix = u_p[1, 3] matrix  + B_p[3, 3] matrix ( combined by row )
for scalar field
c_p[4,1] matrix = u_p[1, 1] matrix   + B_p[3, 1] matrix ( combined by row )

Codecov Report

Merging #61 (a4b9b44) into master (25dbc8a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   93.14%   93.18%   +0.03%
==========================================
  Files          41       41
  Lines        3926     3948      +22
==========================================
+ Hits         3657     3679      +22
  Misses        269      269

Impacted Files
Coverage Δ

src/Picasso_APIC.hpp
99.23% <100.00%> (+0.19%)
:arrow_up:

unit_test/tstAPIC.hpp
95.95% <100.00%> (-0.07%)
:arrow_down:

Continue to review full report at Codecov.

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

Would be nice to have add an APIC scalar test, but not sure how much effort that would take

authors: codecov-commenter kwitaechong

repo: picassodev/picasso


text:
🛑 FreeDMR IT Bridge is down

In 0b2ce8a, FreeDMR IT Bridge (https://dashboard.freedmr.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FreeDMR IT Bridge is back up in 4584638 after 9 minutes.

repo: picchiosat/HBLink-Uptime


text:
nnlo counterterm with_bias=True

A small bug I found (I haven't investigated), with nnlo counterterm, with_bias=True:
N = Correlator()
with_bias = True
N.set({'output': 'bPk', 'multipole': 3, 'kmax': 0.3, 'xdata': kd, 'km': 0.7, 'kr': 0.35, 'nd': 3e-4,
'eft_basis': 'eftoflss', 'with_stoch': True, 'with_bias': with_bias, 'with_nnlo_counterterm': True})
eft_params = {'b1': 1.9535, 'c2': 0.5863, 'c4': 0.0, 'b3': -0.3948, 'cct': 0.1839, 'cr1': -0.8414, 'cr2': -0.8084, 'ce0': 1.5045, 'ce1': 0.0, 'ce2': -1.6803, 'b2': 0.4146, 'b4': 0.4146, 'cr4': 10., 'cr6': 20.}
if with_bias:
N.compute({'kk': kk, 'pk_lin': pk_lin, 'Psmooth': pk_lin, 'f': f1, 'bias': eft_params})
else:
N.compute({'kk': kk, 'pk_lin': pk_lin, 'Psmooth': pk_lin, 'f': f1})
fails with:
325 self.Ps[1] += np.einsum('lb,bx->lx', self.b13, self.P13) + np.einsum('l,x,x->lx', self.bct, self.co.k**2, self.P11)
326 if self.with_stoch: self.Ps[1] += np.einsum('b,lbx->lx', self.bst, self.Pstl)

--> 327 if self.with_nnlo_counterterm: self.Ps[2] = np.einsum('lb,x->lx', self.cnnlo, self.Pnnlo)
328 if setfull: self.setfullPs()
File ~/anaconda3/envs/cosmodesi/lib/python3.9/site-packages/numpy/core/einsumfunc.py:1371, in einsum(out, optimize, *operands, **kwargs)
1369     if specified_out:
1370         kwargs['out'] = out
-> 1371     return c_einsum(*operands, **kwargs)
1373 # Check the kwargs to avoid a more cryptic error later, without having to
1374 # repeat default values here
1375 valid_einsum_kwargs = ['dtype', 'order', 'casting']
ValueError: einstein sum subscripts string contains too many subscripts for operand 0
While there is no such issue with with_bias=False

Thanks for spotting that, bug solved!
Just in case: although the chosen values for 'cr4' and 'cr6' are totally fine for testing, in practice, they are order one numbers, as the nnlo counterterms appear with 1/k_r^4.
Cheers.

authors: adematti pierrexyz

repo: pierrexyz/pybird


text:
🛑 Blog URL is down

In 3d2735a, Blog URL (http://blog.pik.farm) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog URL is back up in f85c5ea after 31 minutes.

repo: pikfarm/PikfarmStatus


text:
🛑 www.pikfarm.com is down

In e2d203e, www.pikfarm.com (https://www.pikfarm.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: www.pikfarm.com is back up in e0a680f after 33 minutes.


text:
🛑 Newsletter URL is down

In 69f4fa9, Newsletter URL (https://news.pik.farm/sign-up) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Newsletter URL is back up in 4fe5030 after 24 minutes.


text:
🛑 Stripe Webhook URL (Test and Live) is down

In e64eb4f, Stripe Webhook URL (Test and Live) ($STRIPEWEBHOOK) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Stripe Webhook URL (Test and Live) is back up in 4861e3f after 13 minutes.


text:
Badger2040 ebook line-display bug

If the font-size used by the e-reader fits an exact number of lines on the badger display (e.g. if three lines are visible), then every line is visible when scrolling up and down through the ebook. But if the font-size means an inexact number of lines are visible, then you can't read some lines at all!
For example if the font-size means that only 2.2 lines are visible on the display, then lines 1 and 2 will be fully visible, and only the top-part of line 3 will be visible. If you then scroll down, then lines 4 and 5 will be fully visible (and the top-part of line 6), and thus (unless you change the font-size) you don't ever get to see what lines 3 and 6 actually say :confused:

Oof, yep, I'm seeing this on the default font size too :grimacing:

Think this is now sorted, so closing for now!

authors: Gadgetoid helgibbons lurch

repo: pimoroni/pimoroni-pico


text:
Suggestion: pico_display API

Since the display needs a call to init() to be usable, can we consider setting set_pen(0,0,0) and calling clear(), internally, the first time init is called?
Not really a big deal.
I am trying to figure out what it takes to make a pull request, but a complete n00b at Micropython build environment. Still trying to wrap my head around how to test my changes :-)

Personally, I would suggest that a overloaded call to init, with RGB values for the background would be preferable. If you look at the display demo code, that uses a rather nasty brownish colour for the background, so a black background, while likely to be the most common, is certainly not an automatic choice in all cases.

Closing as relates to old pico_display API.
New shininess here!: https://github.com/pimoroni/pimoroni-pico/blob/main/libraries/pico_graphics/README.md

authors: Pinkyatacme helgibbons sumitkm


text:
Refactor listPaginated tests + make README clearer

Problem
The core DB previously had a race-condition bug that resulted in pagination tokens being non-deterministically returned to the user when they'd call the listPaginated endpoint (not just in the TS client).
Solution
The core DB team has fixed this bug. Now that it's fixed, this PR updates previously-commented-out tests + updates the README to be more precise regarding how this method works.
Type of Change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
[ ] Infrastructure change (CI configs, etc)
[ ] Non-code change (docs, etc)
[ ] None of the above: (explain here)

Test Plan
CI passes.

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1208246198758491

(Current CI failures are due to known-flakiness on the integration tests for bulkImport; can ignore, I have a ticket to address asap.)

repo: pinecone-io/pinecone-ts-client


text:
*: update docs about reset task and relay log purge

What is changed, added or deleted? (Required)

update the FAQ about reset task
clarify the purge-expires config item

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v2.0 changes for now)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from: https://github.com/pingcap/docs-dm/pull/103
Other reference link(s):

PTAL again @ran-huang

LGTM

@csuzhangxc PTAL

/merge

/merge

authors: ran-huang toutdesuite yikeke

repo: pingcap/docs-dm


text:
encryption: fix issue with opening plaintext files (#12272)

close tikv/tikv#12162
Signed-off-by: tabokie xy.tao@outlook.com
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

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

authors: CLAassistant CalvinNeo

repo: pingcap/tidb-engine-ext


text:
TiDB - DM replicating index values instead of the ENUM value from MySQL

Is your feature request related to a problem?
Step 1 : Created the table in MySQL
mysql> show create table user\G
*************************** 1. row ***************************
       Table: user
Create Table: CREATE TABLE `user` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(20) DEFAULT NULL,
  `age` int DEFAULT NULL,
  `gender` enum('male','female') DEFAULT NULL,
  `user_type` enum('AQ','AL') DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
1 row in set (0.00 sec)

Step 2 : Inserted values into the same table
mysql> INSERT INTO user (name, age, gender, user_type) VALUES     ('John', 25, 'male', 'AQ'),     ('Alice', 30, 'female', 'AL');
Query OK, 2 rows affected (0.01 sec)
Records: 2  Duplicates: 0  Warnings: 0

Step 3 : Migrated this table to TiDB using TiDB DM and checked it
Following is the output in TiDB
mysql> select * from user;
+----+-------+------+--------+-----------+
| id | name  | age  | gender | user_type |
+----+-------+------+--------+-----------+
|  1 | John  |   25 | male   | AQ        |
|  2 | Alice |   30 | female | AL        |
+----+-------+------+--------+-----------+
2 rows in set (0.00 sec)

Step 4 : Then I changed the datatype from enum to varchar(2) in TiDB
Because the ENUM is a experimental feature for TiFLash
mysql> alter table user modify column user_type Varchar(2);
Query OK, 0 rows affected (0.36 sec)
mysql> alter table user modify column gender Varchar(2);
Query OK, 0 rows affected (0.36 sec)

Step 5 : Again inserted data in MySQL
mysql> INSERT INTO user (name, age, gender, user_type) VALUES ('Emma', 28, 'female', 'AL'),     ('Mike', 40, 'male', 'AQ');
Query OK, 2 rows affected (0.00 sec)
Records: 2  Duplicates: 0  Warnings: 0

Step 6 : Again checked it in TiDB
This is what I get as the output
mysql> select * from user;
+----+-------+------+--------+-----------+
| id | name  | age  | gender | user_type |
+----+-------+------+--------+-----------+
|  1 | John  |   25 | male   | AQ        |
|  2 | Alice |   30 | female | AL        |
|  3 | Emma  |   28 | 2      | 2         |
|  4 | Mike  |   40 | 1      | 1         |
+----+-------+------+--------+-----------+
4 rows in set (0.00 sec)

I expect the same data as in the MySQL
mysql> select * from user;
+----+-------+------+--------+-----------+
| id | name  | age  | gender | user_type |
+----+-------+------+--------+-----------+
|  1 | John  |   25 | male   | AQ        |
|  2 | Alice |   30 | female | AL        |
|  3 | Emma  |   28 | female | AL        |
|  4 | Mike  |   40 | male   | AQ        |
+----+-------+------+--------+-----------+
4 rows in set (0.00 sec)

Instead I get the data i have changed to Varchar as 1 and 2.
mysql> select * from user;
+----+-------+------+--------+-----------+
| id | name  | age  | gender | user_type |
+----+-------+------+--------+-----------+
|  1 | John  |   25 | male   | AQ        |
|  2 | Alice |   30 | female | AL        |
|  3 | Emma  |   28 | 2      | 2         |
|  4 | Mike  |   40 | 1      | 1         |
+----+-------+------+--------+-----------+
4 rows in set (0.00 sec)

Describe the feature you'd like
I would like TiDB-DM to Replicate MySQL's ENUM data as it is, after I changed the MySQL ENUM data type to VARCHAR data type in TiDB.
Describe alternatives you've considered
TiDB not supporting ENUM datatypes in TiFLASH. So it will be better to update the feature for the TiFLASH ENUM issue.
Teachability, Documentation, Adoption, Migration Strategy
I used this because the TiFLASH ENUM is an experimental feature. So, I thought that converting the data type from ENUM to VARCHAR can make the TiFLASH replica perform without any interruption.

/area dm

repo: pingcap/tiflow


text:
calculate secondsBehindMaster when dm sync block

Is your feature request related to a problem?
when DM block in the sync stage(e.g. waiting for DDL), the secondsBehindMaster will not be updated.
Describe the feature you'd like
update the secondsBehindMaster even DM block. Don't need to be too precise, just make it bigger and bigger
Describe alternatives you've considered
No response
Teachability, Documentation, Adoption, Migration Strategy
No response

seems an old issue of secondsBehindMaster but I didn't find it in DM's repo.
cc @glorv

replaced by https://github.com/pingcap/tiflow/issues/4471 (it has a root cause analysis so I prefer to leave that one open)

another request is updating the secondsBehindMaster even DM block. Don't need to be too precise, just make it bigger and bigger


text:
[CC scenario]  PD leader unavailable temporally makes CDC node exited

What did you do?

As title
CDC node exited with different ERROR:

[2022/02/27 14:00:02.475 +00:00] [WARN] [check.go:81] ["check TiKV version failed"] [error="[CDC:ErrGetAllStoresFailed]get stores from pd failed: rpc error: code = DeadlineExceeded desc = context deadline exceeded"] [errorVerbose="[CDC:ErrGetAllStoresFailed]get stores from pd failed: rpc error: code = DeadlineExceeded desc = context deadline exceeded\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/errors.WrapError\n\tgithub.com/pingcap/tiflow/pkg/errors/helper.go:30\ngithub.com/pingcap/tiflow/pkg/version.CheckStoreVersion\n\tgithub.com/pingcap/tiflow/pkg/version/check.go:165\ngithub.com/pingcap/tiflow/pkg/version.CheckClusterVersion\n\tgithub.com/pingcap/tiflow/pkg/version/check.go:76\ngithub.com/pingcap/tiflow/cdc.(*Server).Run\n\tgithub.com/pingcap/tiflow/cdc/server.go:180\ngithub.com/pingcap/tiflow/pkg/cmd/server.(*options).run\n\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:129\ngithub.com/pingcap/tiflow/pkg/cmd/server.NewCmdServer.func1\n\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:277\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.2.1/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.2.1/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.2.1/command.go:902\ngithub.com/pingcap/tiflow/pkg/cmd.Run\n\tgithub.com/pingcap/tiflow/pkg/cmd/cmd.go:50\nmain.main\n\tcommand-line-arguments/main.go:22\nruntime.main\n\truntime/proc.go:225\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/02/27 14:00:02.686 +00:00] [ERROR] [server.go:131] ["run server"] [error="[CDC:ErrCheckClusterVersionFromPD]failed to request PD%!(EXTRA string=response status: 503 Service Unavailable)\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/version.CheckPDVersion\n\tgithub.com/pingcap/tiflow/pkg/version/check.go:120\ngithub.com/pingcap/tiflow/pkg/version.CheckClusterVersion\n\tgithub.com/pingcap/tiflow/pkg/version/check.go:85\ngithub.com/pingcap/tiflow/cdc.(*Server).Run\n\tgithub.com/pingcap/tiflow/cdc/server.go:180\ngithub.com/pingcap/tiflow/pkg/cmd/server.(*options).run\n\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:129\ngithub.com/pingcap/tiflow/pkg/cmd/server.NewCmdServer.func1\n\tgithub.com/pingcap/tiflow/pkg/cmd/server/server.go:277\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.2.1/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.2.1/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.2.1/command.go:902\ngithub.com/pingcap/tiflow/pkg/cmd.Run\n\tgithub.com/pingcap/tiflow/pkg/cmd/cmd.go:50\nmain.main\n\tcommand-line-arguments/main.go:22\nruntime.main\n\truntime/proc.go:225\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
Error: run server: [CDC:ErrCheckClusterVersionFromPD]failed to request PD%!(EXTRA string=response status: 503 Service Unavailable)

[2022/02/27 14:01:39.420 +00:00] [INFO] [processor.go:294] ["processor exited"] [capture=db-cdc-ticdc-7.db-cdc-ticdc-peer.tidb1373933076657975328.svc:8301] [changefeed=362e4d46-8380-4f45-b103-5a6f040adfdb]
[2022/02/27 14:01:39.420 +00:00] [WARN] [etcd_worker.go:242] ["EtcdWorker reactor tick took too long"] [duration=1m13.411839507s]
[2022/02/27 14:01:39.420 +00:00] [WARN] [capture.go:459] ["session is disconnected"] [error="[CDC:ErrEtcdSessionDone]the etcd session is done"] [errorVerbose="[CDC:ErrEtcdSessionDone]the etcd session is done\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/orchestrator.(*EtcdWorker).Run\n\tgithub.com/pingcap/tiflow/pkg/orchestrator/etcd_worker.go:160\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).runEtcdWorker\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:450\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).run.func3\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:316\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/02/27 14:01:39.421 +00:00] [INFO] [capture.go:317] ["the processor routine has exited"] [error="[CDC:ErrCaptureSuicide]capture suicide"] [errorVerbose="[CDC:ErrCaptureSuicide]capture suicide\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).runEtcdWorker\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:460\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).run.func3\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:316\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/02/27 14:01:39.510 +00:00] [INFO] [capture.go:254] ["the capture routine has exited"]
[2022/02/27 14:01:39.512 +00:00] [ERROR] [http_status.go:74] ["http server error"] [error="[CDC:ErrServeHTTP]serve http error: mux: server closed"] [errorVerbose="[CDC:ErrServeHTTP]serve http error: mux: server closed\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/errors.WrapError\n\tgithub.com/pingcap/tiflow/pkg/errors/helper.go:30\ngithub.com/pingcap/tiflow/cdc.(*Server).startStatusHTTP.func1\n\tgithub.com/pingcap/tiflow/cdc/http_status.go:74\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/02/27 14:01:39.518 +00:00] [ERROR] [client.go:752] ["[pd] fetch pending tso requests error"] [dc-location=global] [error="[PD:client:ErrClientGetTSO]context canceled: context canceled"]
[2022/02/27 14:01:39.520 +00:00] [INFO] [client.go:666] ["[pd] exit tso dispatcher"] [dc-location=global]
[2022/02/27 14:01:39.530 +00:00] [ERROR] [server.go:131] ["run server"] [error="[CDC:ErrNotOwner]this capture is not a owner\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/etcd.CDCEtcdClient.GetOwnerRevision\n\tgithub.com/pingcap/tiflow/pkg/etcd/etcd.go:574\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).campaignOwner\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:395\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).run.func2\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:292\nruntime.goexit\n\truntime/asm_amd64.s:1371\nowner exited with error"]
[2022/02/27 14:01:39.532 +00:00] [ERROR] [client.go:752] ["[pd] fetch pending tso requests error"] [dc-location=global] [error="[PD:client:ErrClientGetTSO]context canceled: context canceled"]
[2022/02/27 14:01:39.532 +00:00] [INFO] [client.go:666] ["[pd] exit tso dispatcher"] [dc-location=global]
Error: run server: owner exited with error: [CDC:ErrNotOwner]this capture is not a owner
run server: owner exited with error: [CDC:ErrNotOwner]this capture is not a owner
[2022/03/02 06:27:14.699 +00:00] [INFO] [capture.go:254] ["the capture routine has exited"]
[2022/03/02 06:27:14.699 +00:00] [ERROR] [http_status.go:74] ["http server error"] [error="[CDC:ErrServeHTTP]serve http error: mux: server closed"] [errorVerbose="[CDC:ErrServeHTTP]serve http error: mux: server closed\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164\ngithub.com/pingcap/tiflow/pkg/errors.WrapError\n\tgithub.com/pingcap/tiflow/pkg/errors/helper.go:30\ngithub.com/pingcap/tiflow/cdc.(*Server).startStatusHTTP.func1\n\tgithub.com/pingcap/tiflow/cdc/http_status.go:74\nruntime.goexit\n\truntime/asm_amd64.s:1371"]
[2022/03/02 06:27:14.699 +00:00] [ERROR] [client.go:752] ["[pd] fetch pending tso requests error"] [dc-location=global] [error="[PD:client:ErrClientGetTSO]context canceled: context canceled"]
[2022/03/02 06:27:14.699 +00:00] [INFO] [client.go:666] ["[pd] exit tso dispatcher"] [dc-location=global]
[2022/03/02 06:27:14.699 +00:00] [ERROR] [server.go:131] ["run server"] [error="rpc error: code = Unavailable desc = transport is closing\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/juju_adaptor.go:15\ngithub.com/pingcap/tiflow/pkg/orchestrator.(*EtcdWorker).commitChangedState\n\tgithub.com/pingcap/tiflow/pkg/orchestrator/etcd_worker.go:409\ngithub.com/pingcap/tiflow/pkg/orchestrator.(*EtcdWorker).applyPatchGroups\n\tgithub.com/pingcap/tiflow/pkg/orchestrator/etcd_worker.go:337\ngithub.com/pingcap/tiflow/pkg/orchestrator.(*EtcdWorker).Run\n\tgithub.com/pingcap/tiflow/pkg/orchestrator/etcd_worker.go:207\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).runEtcdWorker\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:450\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).campaignOwner\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:428\ngithub.com/pingcap/tiflow/cdc/capture.(*Capture).run.func2\n\tgithub.com/pingcap/tiflow/cdc/capture/capture.go:292\nruntime.goexit\n\truntime/asm_amd64.s:1371\nowner exited with error"]
Error: run server: owner exited with error: rpc error: code = Unavailable desc = transport is closing
[2022/03/02 06:27:14.699 +00:00] [ERROR] [client.go:752] ["[pd] fetch pending tso requests error"] [dc-location=global] [error="[PD:client:ErrClientGetTSO]context canceled: context canceled"]

What did you expect to see?
No response
What did you see instead?
Sometimes one of cdc node exited;
Sometimes 7/8 cdc node exited.
Versions of the cluster
Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
5.4.0

Upstream TiKV version (execute tikv-server --version):
5.4.0

TiCDC version (execute cdc version):
5.4.0

This problem seems to be more complicated than before. There is a possibility that the process restarting is caused by an error thrown from capture.reset. If we were to ignore these errors, there might be statuses leftover from the last session, increasing the likelihood of other problems, and making the behavior of the capture struct difficult to predict.
It seems not so beneficial to fix all cases of such problems, so I propose giving this problem more thought before merging the PR.

/assign @asddongmen
/unsigned @liuzix

/unsigne @liuzix

/unassign @liuzix

I can't reproduce this issue, please feel free to reopen it if you see it again.

authors: Tammyxia asddongmen liuzix nongfushanquan