Error in index file

I am getting this error in console. Anyone knows how to solve it?
error  in ./~/vue-slider-component/dist/index.js
Syntax Error: Unexpected token � in JSON at position 0
at Object.parse (native)
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/section/searchPanel.vue 3:0-45
@ ./src/components/section/searchPanel.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/section/section.vue
@ ./src/components/section/section.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

Can you provide the how do you use?
Maybe you can try this way:
import vueSlider from 'vue-slider-component/src/vue2-slider.vue'

Still not working.
I  import it as
import vueSlider from 'vue-slider-component/src/vue2-slider.vue'
and then I used it as a component
<slider></slider>

I write a simple example.

I copied exactly your code but still getting the error. something is wrong with the index.js file because in the error it says that
Syntax Error: Unexpected token � in JSON at position 0
at Object.parse (native)

but the index.js file  was not call JSON.parse, i doubt whether associated with webpack.

oh, maybe this reason.
https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only

Components are using the template.


More test signatures

You can check out ecdsa_test.json from wycheproof test vectors they have vectors for sec256k1 signatures too, among many other curves.
For instance your EcdsaSig.parse method does not understand "long form encoding of length of sequence" so it will fail on some of the test cases from the wycheproof repo.

Ah very good info, thank you!


Q: Possible to write JMeter CSV results to STDOUT during local run?

Hi.  Is ruby-jmeter capable of outputting CSV logs to STDOUT, so that they can be used with a POSIX pipe or redirect (e.g. tee)?

I understand better now.  Thanks.


Add option to enable printing query statement in otel attribute db.statement

Description
db.statement are not getting printed in trace according to https://opentelemetry.io/docs/specs/semconv/database/database-spans/ with rational is customer data would be leaked in the query statement.  However, users should still have the option to print the query and sanitize it in their own tracing implementation.
This change will add a new options to print query statement in db.statement attribute.
new CosmosClientTelemetryConfig().showQueryStatement();
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

@microsoft-github-policy-service agree [company=”Walmart”]
@microsoft-github-policy-service agree
@microsoft-github-policy-service agree company="Microsoft"
From: "microsoft-github-policy-service[bot]" @.>
Reply-To: Azure/azure-sdk-for-java @.>
Date: Wednesday, May 1, 2024 at 12:08 PM
To: Azure/azure-sdk-for-java @.>
Cc: JJ Chen @.>, Mention @.***>
Subject: EXT: Re: [Azure/azure-sdk-for-java] Add option to enable printing query statement in otel attribute db.statement (PR #39989)
EXTERNAL: Report suspicious emails to Email Abuse.
@JJ-WMhttps://urldefense.com/v3/__https:/github.com/JJ-WM__;!!IfjTnhH9!TXGFFDfYnqKvUBx3M5qdHpsIv7pA9eSAGCU79bYaDPfKZd4U1bNjT88d4jTdmlIaeuifG3hbAavf8BU29cZK8zyA$ please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement
Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.

Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft and offered under a license
approved by the Open Source Initiative (www.opensource.orghttps://urldefense.com/v3/__http:/www.opensource.org__;!!IfjTnhH9!TXGFFDfYnqKvUBx3M5qdHpsIv7pA9eSAGCU79bYaDPfKZd4U1bNjT88d4jTdmlIaeuifG3hbAavf8BU29dn7f13e$).
“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
Project, including but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
discussing and improving that Project, but excluding communication that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material Submitted by You, including any
associated comments and documentation.
Your Submission. You must agree to the terms of this Agreement before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now or in the future (except as
described in Section 4 below), Submit to any Project.
Originality of Work. You represent that each of Your Submissions is entirely Your original work.
Should You wish to Submit materials that are not Your original work, You may Submit them separately
to the Project if You (a) retain all copyright and license information that was in the materials as You
received them, (b) in the description accompanying Your Submission, include the phrase “Submission
containing materials of a third party:” followed by the names of the third party and any licenses or other
restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
guidelines concerning Submissions.
Your Employer. References to “employer” in this Agreement include Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your employer has intellectual
property rights in Your Submission by contract or applicable law, You must secure permission from Your
employer to make the Submission before signing this Agreement. In that case, the term “You” in this
Agreement will refer to You and the employer collectively. If You change employers in the future and
desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
and secure permission from the new employer before Submitting those Submissions.
Licenses.

Copyright License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
parties.
Patent License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or the combination of the
Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the Project.
Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.

Representations and Warranties. You represent that You are legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
have disclosed under Section 3). You represent that You have secured permission from Your employer to
make the Submission in cases where Your Submission is made in the course of Your work for Your
employer or Your employer has intellectual property rights in Your Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
You later become aware that would make Your representations in this Agreement inaccurate in any
respect.
Information about Submissions. You agree that contributions to Projects and information about
contributions may be maintained indefinitely and disclosed publicly, including Your name and other
information that You submit with Your Submission.
Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
supersedes any and all prior agreements, understandings or communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Azure/azure-sdk-for-java/pull/39989*issuecomment-2088938683__;Iw!!IfjTnhH9!TXGFFDfYnqKvUBx3M5qdHpsIv7pA9eSAGCU79bYaDPfKZd4U1bNjT88d4jTdmlIaeuifG3hbAavf8BU29dLPoiTQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A5NUAMXAPK2LNIWY4QU7KXLZAE4MZAVCNFSM6AAAAABHCNIXK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHEZTQNRYGM__;!!IfjTnhH9!TXGFFDfYnqKvUBx3M5qdHpsIv7pA9eSAGCU79bYaDPfKZd4U1bNjT88d4jTdmlIaeuifG3hbAavf8BU29WmgLYs3$.
You are receiving this because you were mentioned.Message ID: @.***>

@microsoft-github-policy-service agree
and
@microsoft-github-policy-service agree company="Walmart"
From: "microsoft-github-policy-service[bot]" @.>
Reply-To: Azure/azure-sdk-for-java @.>
Date: Wednesday, May 1, 2024 at 12:54 PM
To: Azure/azure-sdk-for-java @.>
Cc: JJ Chen @.>, Mention @.***>
Subject: EXT: Re: [Azure/azure-sdk-for-java] Add option to enable printing query statement in otel attribute db.statement (PR #39989)
EXTERNAL: Report suspicious emails to Email Abuse.
@JJ-WMhttps://urldefense.com/v3/__https:/github.com/JJ-WM__;!!IfjTnhH9!TcnxvigESToGNSY4XSCGSXdup7CX9jWV-ugyHWgjYZL_U_06LTaOkYaCShm_n3Lq_0GrUzkR9_3tU_GVRYbMkIEu$ the command you issued was incorrect. Please try again.
Examples are:
@microsoft-github-policy-service agree
and
@microsoft-github-policy-service agree company="your company"
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Azure/azure-sdk-for-java/pull/39989*issuecomment-2089013105__;Iw!!IfjTnhH9!TcnxvigESToGNSY4XSCGSXdup7CX9jWV-ugyHWgjYZL_U_06LTaOkYaCShm_n3Lq_0GrUzkR9_3tU_GVRd6LPw_N$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A5NUAMVIPAISIMQVU6HR52TZAFB5PAVCNFSM6AAAAABHCNIXK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZGAYTGMJQGU__;!!IfjTnhH9!TcnxvigESToGNSY4XSCGSXdup7CX9jWV-ugyHWgjYZL_U_06LTaOkYaCShm_n3Lq_0GrUzkR9_3tU_GVRUFQ5RqX$.
You are receiving this because you were mentioned.Message ID: @.***>

@JJ-WM are there files missing from the PR? It has single file changed and no change to CosmosClientTelemetryConfig looks like.


Perception Node : add_on_set_parameters_callback

Hi,
where's the function [add_on_set_parameters_callback] (https://github.com/ForzaETH/race_stack/blob/6ba88365188c723efe27fd37ce24feb09e0352a1/perception/perception/detect.py#L164)
is defined in the repository?

Hi there,
This is an rclpy function here. So it is not defined within this repo. This is meant to catch every update on a ROS parameter.
Hope this helps!


Remove duplicate owo-colors dependency

Motivation
Zebra currently depends on 2 different versions of the owo-colors crate, via:

zebra-test
color-eyre

If we remove duplicate dependencies, Zebra will compile faster, and its binaries will be smaller.
Steps

Check that the conflict still exists by removing the owo-colors exception from deny.toml, then running cargo deny check bans.

Downgrade owo-colors:

Make zebra-test depend on owo-colors >= 1.3.0

We could upgrade color-eyre, but that's out of scope.

Hey team! Please add your planning poker estimate with ZenHub @dconnolly @jvff @oxarbitrage @teor2345 @upbqdn

Obsoleted by #3343.


How can I setup WSO2 IS as a KDC?

I'm trying to set up the kerberos KDC on a WSO2 Identity Server, I'm following this tutorial
https://docs.wso2.com/display/IS530/FAQ#FAQ-HowcanIsetupWSO2ISasaKDC?
but I can't find the menu " Configure -> Kerberos KDC -> Service Principals" on the management console.
my environment:

WSO2 version 5.3
OS: Arch Linux
java version "1.7.0_80" - Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

Hi @tatac1,
The tutorial looks to be outdated.
You can find the same Kerberos Principal Config in
Service Provider --> Inbound Authentication Configuration -->  Kerberos KDC


Add completion priority logic for tagged template completion requests

This has the sortText in completion items reflect the order in which they appear in the schema. This appears to add more value then alphabetical sorting, since fields are often ordered and grouped semantically.
This also ensures completion items returned from the graphql language server are sorted at the top of the completion list when working inside tagged templates.

ping @Neitsch how does this look?


Next.js usage example disables its Automatic Static Optimization

The example given here does not play well with nextjs9 automatic static optimization: when building, all pages of the project will show as server rendered. Here is the output I have when building:
❯ yarn build
yarn run v1.12.3
warning package.json: No license field
$ next build
Creating an optimized production build ...

Compiled with warnings.

./node_modules/react-ssr-prepass/dist/react-ssr-prepass.production.min.js
Module not found: Can't resolve 'styled-components' in '/Users/vgrafe/Perso/next9/node_modules/react-ssr-prepass/dist'

Warning: You have opted-out of Automatic Prerendering due to `getInitialProps` in `pages/_app`.
Read more: https://err.sh/next.js/opt-out-automatic-prerendering

Page                 Size     Files  Packages
┌ σ /                365 B        0         1
├   /_app            118 kB       0        15
├   /_document
├   /_error          8.45 kB      0         1
├ σ /about           389 B        0         1
├ σ /api/users
├ σ /api/users/[id]
├ σ /firebase        35.5 kB      1         7
├ σ /urql            52.3 kB      0         6
├ σ /users           841 B        0         2
└ σ /users/[id]      970 B        0         2

σ  (Server)       page will be server rendered (i.e. getInitialProps)
⚡  (Static File)  page was prerendered as static HTML

✨  Done in 6.00s.

Well now I see it, the warning message is pretty much on point on this. What approach can be taken to play more nicely with Automatic Static Optimization?

I don't think it's possible to have static pages and SSRed queries together - if you have some pages that use GraphQL and others that don't, you could maybe modify the individual pages instead of _app.js?

I personally haven't explored this much yet, so it's hard for me to judge what we could do here to improve the situation. You can definitely selectively add the higher-order component wrapper around individual pages, and slightly modify it to your needs.
cc @timneutkens: Is there any short-term recommendation how to improve this process potentially? There's obviously also the possibility of introducing static queries, like with Gatsby, where data never updates but is fetched during the build, and dynamic queries which are what we support right now. Any way to make this process with react-ssr-prepass more seamless?

@kitten we're going to introduce some changes soon particularly focused on when you do have data fetching requirements. The automatic static optimization is aimed at optimizing completely static pages without data requirements.
Hence why your recommendation seems correct, only use the HoC on the page level when you need it. That way we know if the individual page has data fetching requirements or not.

Thank you all for your comments!
I will HoC pages that fetch data only. Looking forward to see the next improvements the team comes up with.

🤔 applying the HoC on selected pages only is not as trivial as I thought. Is it possible to have some guidance on this?

Yea, so if I'm not misunderstanding the render code in next-server then the getInitialProps function does not have the full "AppContainer" component with all providers, which the AMP functionality does have. So we can't prerender with react-ssr-prepass

@vgrafe @timneutkens  I'm tempted to say, let's move this issue over to Next.js maybe? It's very much a limitation that exists in Next.js right now as it isn't possible to retrieve the full element tree generically in a page's getInitialProps function, which is a shame really, but I'm unsure of how we'll work around this in urql

@vgrafe I think the changes in https://github.com/FormidableLabs/urql/pull/386 will fix this issue. Not sure if you have time to verify them?

Sweet! I'll have time to test the new example this weekend, as I am still traveling until then.

@kitten, unfortunately I still observe the same behavior with the few code updates provided in the mentioned PR.

@kitten, unfortunately I still observe the same behavior with the updated example, with an identical warning message after the build is done :"Warning: You have opted-out of Automatic Prerendering due to getInitialProps in pages/_app.".

@vgrafe
I think for this to work you'll need to try it with: v9.0.4-canary.4 and wait for the stable release after that

@vgrafe but is it resolved if you apply the new higher order wrapper around individual pages?

Apologies - indeed, using the HoC on individual pages works!

Ok here's a hiccup - running next build does seem to work as expected, but when deugging using next dev, the pages using the HoC crash:
[ info ]  bundled successfully, waiting for typecheck results ...
[ wait ]  compiling ...
[ info ]  bundled successfully, waiting for typecheck results ...
[ ready ] compiled successfully - ready on http://localhost:3000
[ event ] build page: /urql
[ wait ]  compiling ...
[ warn ]  ./node_modules/react-ssr-prepass/dist/react-ssr-prepass.development.js
Module not found: Can't resolve 'styled-components' in '/Users/vgrafe/Perso/next9/node_modules/react-ssr-prepass/dist'
[ info ]  ready on http://localhost:3000
TypeError: Cannot read property 'executeQuery' of undefined
    at /Users/vgrafe/Perso/next9/node_modules/urql/dist/urql.js:839:32
    at /Users/vgrafe/Perso/next9/node_modules/urql/dist/urql.js:867:5
    at /Users/vgrafe/Perso/next9/node_modules/urql/dist/urql.js:851:26
    at useQuery (/Users/vgrafe/Perso/next9/node_modules/urql/dist/urql.js:861:4)
    at PostList (/Users/vgrafe/Perso/next9/.next/server/static/development/pages/urql.js:300:81)
    at processChild (/Users/vgrafe/Perso/next9/node_modules/react-dom/cjs/react-dom-server.node.development.js:3090:14)
    at resolve (/Users/vgrafe/Perso/next9/node_modules/react-dom/cjs/react-dom-server.node.development.js:3013:5)
    at ReactDOMServerRenderer.render (/Users/vgrafe/Perso/next9/node_modules/react-dom/cjs/react-dom-server.node.development.js:3436:22)
    at ReactDOMServerRenderer.read (/Users/vgrafe/Perso/next9/node_modules/react-dom/cjs/react-dom-server.node.development.js:3395:29)
    at renderToString (/Users/vgrafe/Perso/next9/node_modules/react-dom/cjs/react-dom-server.node.development.js:3954:27)
    at render (/Users/vgrafe/Perso/next9/node_modules/next-server/dist/server/render.js:80:16)
    at renderPage (/Users/vgrafe/Perso/next9/node_modules/next-server/dist/server/render.js:260:20)
    at /Users/vgrafe/Perso/next9/.next/server/static/development/pages/_document.js:437:17
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/vgrafe/Perso/next9/.next/server/static/development/pages/_document.js:206:24)
    at _next (/Users/vgrafe/Perso/next9/.next/server/static/development/pages/_document.js:228:9)

Hmm, that would mean the client becomes undefined all of a sudden, so I THINK this bug is more on the next.JS side, not entirely sure though.

Next.js only calls getInitialProps, so it's unlikely that it's related to Next.js internals itself.

Hey @timneutkens,
Thanks for the response, I’ll try to look into this then

I don't know how you implemented it @vgrafe since I don't see your code but just giving a few heads up.
The error you are talking about implies that the client for urql is undefined, since the executeQuery is called on that. This is received from the context, looking at the examples in the next repo I see that they pass the apolloClient down very explicitly https://github.com/zeit/next.js/blob/1765007a10c63cbeebe74da6044b9158ff32fb85/examples/with-apollo/lib/with-apollo-client.js would it be possible that the problem is located around that?
Trying to find out where this goes wrong, it's quite odd that it behaves different in dev vs prod.

I'll have a further look.

Here is my repo. What to look for: the _app.tsxfile, in which the urql client is set in a Provider component wrapping the whole app. The current code results in the error described above when accessing the /urql page while using the local development server.
Moving the Provider/client to the urql.tsx page makes the query error with the following message:
  "name": "CombinedError",
  "message": "[Network] Not Found",
  "graphQLErrors": [],
  "networkError": {},
  "response": {}
}```

Weirdly, looking at the network calls in devtools show an attempt to GET `http://localhost:3000/graphql`, resulting in a 404. Not sure where this comes from, but it seems to be what causes the error.

It looks like I am missing something obvious... sorry if that's the case!

I've been playing a bit with the withApollo example as well, with no success. Should the hoc need some tweaking in order to be usable with components (instead of used at the root level in the example)?

Also not able to get the Next.js example working. Anyone have a repo with a working setup?

Looks like the apollo example was updated. I just cloned and tested, build works as intended and pre-renders non-connected pages.
I don't have much time to adapt the example to urql yet, but will post here in the future if no ones do it before me.

@vgrafe appreciate the work you do man, thank you very much

Hey @vgrafe I've solved it in https://github.com/FormidableLabs/urql/pull/421 thanks for the information you've bene providing it has been a big help!

Of course, thank you for working on this so promptly! Can the example be updated as part of the PR?

@vgrafe what would you like to see updated? Normally it introduces the needed fixes

Oh, my bad. I thought changes would be introduced that would need to edit the example.


Added "preserve not enlarge" functionality

This functionality is the same as "preserve" but resize image only if the supplied image is bigger than the desider one. It does nothing if the the supplied image is smaller.

Awesome, thanks!


Update EFSL for Specifications and Javadoc

Per the discussions on the Spec Committee and Platform Dev mailing lists, it's been discovered that many of the Javadoc and Spec references to the EFSL need updating. Please reference the following required updates and keep them in mind as your Spec Project is updating the files for Jakarta EE 9.
Note: Some Spec Projects have already started or even completed these updates. If so, just kindly return/close this Issue. Thanks!
Required EFSL updates for Javadoc
For javadoc, the EFSL.html located in src/main/javadoc/doc-files should be modified as follows:

the <<url to this license>> needs to be replaced with efsl.php link[1]
the [title and URI of the Eclipse Foundation specification document] needs to be replaced with the Specification Name and URL (Reference [2] for an example.)
The javadoc footer copyright year needs to be updated to 2018, 2020 as defined in the pom.xml

Required EFSL updates for Specifications
For specification, the license-efsl.adoc located in src/main/asciidoc should be modified as follows:

Update copyright year to 2018, 2020 from 2019. Add link to EFSL.
the <<url to this license>> needs to be replaced with efsl.php link[1]
the [title and URI of the Eclipse Foundation specification document] needs to be replaced with the Specification Name and URL (Reference [2] for an example.)

[1] https://www.eclipse.org/legal/efsl.php
[2] https://jakarta.ee/specifications/enterprise-beans/4.0/

is this the issue not supposed to be created based on https://www.eclipse.org/lists/jakartaee-platform-dev/msg01775.html ? In the other words, is just closing this the right way for resolution or do we have to actually do  something more?

@kwsutter ^^^

@lukasj It's not that the issues were not supposed to be created.  It's just that the wording in the description may be stronger than required.  I decided to leave these issues in place and let each component determine whether changes are necessary or not.  I am not doing any verification if the requested changes were performed or not.  It's up to the component to decide what's appropriate.  Thanks!

ok, thanks. I believe nothing needs to be done then.


how to use riscof with verilator

I have read the custom plugins of the document
but still not figure out how to use riscof with verilator
where verilator does not takes binary files
should i create a custom riscof Makefile and modify the run command ?
i also haven't figured out where to create the makefile >_>
sorry for being dumb

@lwshowl I assume you have a mechanism of loading the program onto your DUT at runtime and that you use the gnu toolchain to compile the tests.  In such a scenario, you will have verilated the model and compiled it into a C binary before running riscof. In the plugin for your DUT you will have to modify line 46 from here or line 51 here to execute the test on your DUT and get the signature into the appropriate file. This plugin for the chromite core and this plugin for the cClass core from Shakti both use verilator for simulation and can be used for inspiration. Note: The cClass plugin is outdated and might not work with the latest version of riscof.
The makefile is created by the plugin and the lines which I spoke about earlier are the lines you will need to modify in your plugin to change the run command.

@pawks thanks for the detailed explanation
i think i have got the trick

@pawks another question here , since the execution environment is occupied by the test program , how can i make a memory dump and make use of the defined macros ?
is the .tohost section in the linker script reserved for the host to dump memory ?

The DUT specific macros can be defined by you in a header file named riscv_model.h and it gets included in the tests during compilation. The linker script should also be defined by you. Only the sections being defined in the test are reserved. You can declare any additional sections you need as necessary and include them appropriately. At the start of the test, the code under RVMODEL_BOOT is executed where you can execute model specific initialisation code. Similarly you have RVMODEL_HALT which defines the HALT sequence for your model. You can have a custom sequence here which sequentially reads the data in the signature region and dumps the same. More reference regarding the model specific macros and what they should do can be found here.


[WIP] Encrypt Secrets at Rest

Add EncryptionConfig as a managed credential. The default EncryptionConfig encrypts secrets while at rest in etcd.
https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/

Codecov Report

Merging #900 into master will increase coverage by 0.35%.
The diff coverage is 72.34%.

@@            Coverage Diff             @@
##           master     #900      +/-   ##
==========================================
+ Coverage   35.41%   35.77%   +0.35%
==========================================
  Files          57       57
  Lines        3978     4020      +42
==========================================
+ Hits         1409     1438      +29
- Misses       2406     2415       +9
- Partials      163      167       +4

Impacted Files
Coverage Δ

core/controlplane/config/config.go
58.04% <100%> (+0.12%)
:arrow_up:

core/controlplane/config/encrypted_assets.go
70.11% <70.45%> (-0.3%)
: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 a4de36e...ffa418d. Read the comment docs.

Just wondering how this feature handles the key rotation #1013

I did a quick test and this shouldn't be breaking anything! And I've addressed my comments on my own. I'm happy to merge this now.
Thank you very much for your contribution @jpb !


Change to new orderly sources once available

Split the aaa_data_survey_behav tasks up: a lot going on (unclear what exactly to split into). Modularise linking cluster identifiers to area (talked to Oli about this and looks like something he has done / is doing -- task will be to update relevant scripts to use his tasks once they are available)

Closing, as has been super-seeded by #30


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-28-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3879

Questions ?
Please refer to the Backport tool documentation


Role Base Access Control table isn't complete.

The graphic doesn't show the full list of permissions for all of the roles listed. It is just a picture and is not something that can be scrolled. Could this page please be updated to include the full table?
I understand that the instructions explain how to do it within the portal, but it would be helpful to have the full list so that one wouldn't need to build out a cluster just to see what the permissions were on each of the roles.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e4c1ca5c-20f4-70ff-04fb-399beeecd462
Version Independent ID: 16cbe44b-1764-f384-8b98-56fa83aea38c
Content: Authorize users for Ambari Views - Azure HDInsight
Content Source: articles/hdinsight/hdinsight-authorize-users-to-ambari.md
Service: hdinsight
GitHub Login: @JasonWHowell
Microsoft Alias: jasonh

@JayWitt A lot of the open sources components are not described in full in our docs because they are vast and numerous.
I see on the web, some other vendors do have docs for that list that you might find helpful.
https://docs.cloudera.com/HDPDocuments/Ambari-<IP_ADDRESS>/administering-ambari/content/amb_roles_and_authorizations.html
Longer term we'll try to do better here. Thanks for the feedback ~Jason

#please-close


Allow providing additional types to schema build.

With the current API, only concrete instances which are registered somewhere from the query or mutation root are registered.  This makes writting tools to automatically generate types a PITA - specifically because you have to ensure there is at least one concrete instance of every type registered.
This change provides a way to pass a set of types into the schema when building it, which will be added into the set of available types when replacing type references.
An alternative could be to provide a resolver to GraphQLTypeReference, which would be used to resolve the type at build time - however, this method seems far less intrusive for existing consumers :-)

Thanks!
Is this PR related to this one https://github.com/andimarek/graphql-java/pull/28 in your opinion?
To understand the use-case better: Do I understand this right, that you generate the schema automatically and sometimes you have for example a InterfaceType and a some  ObjectTypes implementing this Interface, but nobody is referencing the ObjectType, just the Interface?

It's not directly related to #28.
re use case: yes.  the one that bit me was using a TypeReference everywhere a given type if mentioned  is used (e.g, in parameters or return types), and so when it comes to building the schema, there is no reference to the actual ObjectType instance.

ok ... I understand .... interesting approach to use TypeReference as default.
I comment on some minor issues I thought could be improved, but nothing seriously.

pushed and update re null instead of empty set usage!

Thanks


Wrong branch not highlighted in "tsrc status"

Environment

Output of tsrc version: tsrc version 0.9.2
Operating system: Ubuntu 18.04

Command you ran
$ tsrc status

Actual output
:: Collecting statuses of 2 repos
=> Workspace status:
* src/sub_a  dev
* src/sub_b master (dirty)

Expected result
:: Collecting statuses of 2 repos
=> Workspace status:
* src/sub_a  dev (expected: master)
* src/sub_b master (dirty)

src/sub_a is supposed to be on master branch (as specified in manifest.yml) but this is not highlighted by "tsrc status". The sync command does, however, complain about the wrong branch:
Error: Some projects were not on the correct branch
project         actual    expected
--------------  --------  ----------
src/sub_a       dev       master

Thanks for the detailed bug report. You can take a look at #191 pull request if you want.

Works for me, thanks!


Request money - Two options are highlighted after opening tag label second time

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.1-5
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR https://github.com/Expensify/App/pull/31129
Action Performed:
Precondition: enable tags as a workspace's admin

Navigate to NewDot and log in as an employee
Click on FAB > Request money
Enter amount and select workspace
Click on Show more > Tags
Select any option
Open the tags label again

Expected Result:
Only one option is highlighted that was selected previously
Actual Result:
Two options are highlighted
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/fc40d85c-93bc-48d5-97ed-8994c37457d5
View all open jobs on GitHub

Production:
https://github.com/Expensify/App/assets/78819774/01ace2de-ea7b-478c-b72e-f98b2ec2570f

Still working on setting up tags, asked a question in the issue. I'm pretty sure the regression came from that PR though and reverting it should fix it. @robertKozik could you take a look as well if you have a chance and see if the best plan is to revert or make a quick fix?

I'm gonna demote this issue to NAB since it's a very minor UI issue. We have a fix for it already, but I'd like it QAed since it introduced more logic.

We can close this as fixed in https://github.com/Expensify/App/issues/30465.
I might be eligible for compensation for the efforts in PR review

Adding bug label to pay @situchan for the PR review

@sonialiap this issue is resolved (we had a dupe), but we still need to pay @situchan for the PR review.


fix(migrating_2): Fix broken link and info -> information

Summary

Dead link got fixed
Info got reworded to Information

resolves #702

Checklist

[ ] If code changes were made then they have been tested.

[ ] I have updated the documentation to reflect the changes.
[ ] I have run task pyright and fixed the relevant issues.

[ ] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[x] This PR is not a code change (e.g. documentation, README, ...)

(Conventional commits for docs changes should be docs: rather than fix: btw)

Noted for next time, it felt wrong as I typed it. Thanks.


Visual Particle Shader overrides Transform in Process

Godot version
4.0.dev.custom_build [9f058674a]
System information
Windows 10, Ryzen 5 2600, GTX 1060, Vulkan
Issue description
The visual shader editor for particles resets the particle transform to the generated matrix in the process function. I'd expect it to work like the start function where it generates a transform and multiplies it by the original transform.
This is code generated for rotation and scale respectively in the start function
TRANSFORM *= __build_rotation_mat4(vec3(0, 1, 0), n_out4p0);
TRANSFORM *= mat4(vec4(n_out5p0, 0, 0, 0), vec4(0, n_out5p0, 0, 0), vec4(0, 0, n_out5p0, 0), vec4(0, 0, 0, 1));
This is a generated scale operation in the process function
TRANSFORM = mat4(vec4(n_out2p0, 0, 0, 0), vec4(0, n_out2p0, 0, 0), vec4(0, 0, n_out2p0, 0), vec4(0, 0, 0, 1));
Steps to reproduce
If you plug any values into the scale or rotation inputs in the visual shader editor's process function in particle mode the transform will be reset.
Minimal reproduction project
reproduction_project.zip

cc @Chaosus
Can you reproduce this in 3.5?

No, unless I'm doing something wrong the 3.4 particle visual shader system is pretty different. It doesn't have a separate process function and only takes a single input for the transformation matrix instead of separate float inputs for rotation and scale.

I've expected that too but changed it after this comment: https://github.com/godotengine/godot/pull/42248#issuecomment-817284178. cc @QbieShay - I'm not sure if there is a point in not multiplying this matrix (only if the connection to these ports exist of course).

When i wrote that comment i made a mistake: I was specifically talking about the basis of the particle rather than the whole transform. My bad, sorry!

Bumping this to 4.1 . While i understand this is a frustrating issue to deal with, there's no easy fix other than the linked PR, which is a bit too involved to be merged at RC stage.


Classic LFG 1.1.5 has a .toc version of 1.1.4

Minor issue but the .toc still says 1.1.4

Obsolete.


GnuWin32.DiffUtils version 2.8.7-1

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree

Linked issue: #173426

Linked issue: #173426

[!TIP]
Modify your first comment as follows can help associate this pull request to the issue. When this pull request is successfully merged, the issue will automatically closed.
  Checklist for Pull Requests

  - Have you signed the [Contributor License Agreement](https://cla.opensource.microsoft.com/microsoft/winget-pkgs)?
- - Is there a linked Issue?
+ - Resolve #173426

Automatic Validation ended with:

Executable C:\Program Files\GnuWin32\bin\cmp.exe returned exit code: 2
Executable C:\Program Files\GnuWin32\bin\diff.exe returned exit code: 2
Executable C:\Program Files\GnuWin32\bin\diff3.exe returned exit code: 2
Executable C:\Program Files\GnuWin32\bin\sdiff.exe returned exit code: 2

(Automated response - build 895.)

Verify:


Change sentence for a clearer spelling

As native spanish proficient, this  can be changed for a clearer understanding of the following sentence: " let us consider the sequence of cube numbers".

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

I know, it's just not understandable at glance, reject it if you want

Thanks and congratulations on your first merged contribution!


Function to pivot generic attributes on the fly

Talked to a user who wants to create 2D maps on top of the 3DCityDB showing all attributes incl. generic ones. We could provide a convenience function that pivots rows from the cityobject_genericattrib table to columns based of a given cityobject_id. Not so sure what to do if the function is applied for more than one row as number of generic attributes can be different. We could also use a semistructured data type like JSON. It's supported both by Oracle in Postgres.

Closing due to inactivity.


FlatFileDriver::removeQueue() fails when jobs have failed

Hi,
This is coming up in my test environment. If a receiver throws an exception, the message is left in the queue directory with a name like '123.job.proceed'. removeQueue() only removes files that match #\.job$#, so the subsequent call to rmdir() fails.
What would be the best solution here? It would be easiest if removeQueue() also removed the *.proceed messages. But maybe it would be better if the file were removed via a custom FailureSubscriber? What would match the behaviour of other drivers the best?

removeQueue should remove files with the .proceed extension as well :) as the file queue is only really for testing etc.

Fixed in #305


[Event Request] Codeunit 12 - PostDtldVendVATAdjustment

🕮 Describe the request
https://github.com/microsoft/ALAppExtensions/issues/23638
The publisher OnBeforeCreateGLEntryNormalFullVAT ...
is still missing - the other publishers requested in the original issue are implemented.
case VATPostingSetup."VAT Calculation Type" of             VATPostingSetup."VAT Calculation Type"::"Normal VAT",             VATPostingSetup."VAT Calculation Type"::"Full VAT":                 begin                     VATPostingSetup.Get("VAT Bus. Posting Group", "VAT Prod. Posting Group");                     VATPostingSetup.TestField("VAT Calculation Type", VATEntry."VAT Calculation Type");                     OnBeforeCreateGLEntryNormalFullVATInPostDtldVendVATAdjustment((DtldCVLedgEntryBuf,VATEntry,GenJnlLine,IsHandled); //New                     if not isHandled then // new**                     CreateGLEntry(                       GenJnlLine, VATPostingSetup.GetPurchAccount(false), -"Amount (LCY)", -"Additional-Currency Amount", false);                 end;
[IntegrationEvent(true, false)] OnBeforeCreateGLEntryNormalFullVATInPostDtldVendVATAdjustment(DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer";VATEntry; REcord "VAT Entry";GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean) begin end;
Additional context
Handling issues where purchase vat has to be split. (customer specific)

Just out of curiosity where does the local VATPostingSetup record get its initial value for "VAT Calculation Type" from?
Isn't the VATPostingSetup."VAT Calculation Type" always "Normal VAT" in this function?

i don't know. but it is "old" code. maybe it helps countries with sales tax to setup the vat posting setup easier.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11595.


feat(react-wrappers): content-block-media/mixed

Related Ticket(s)
#8623 #8624
Description
Add react wrappers for content-block-media and content-block-mixed. Also updated docs/readme's where for cta's for some were using the prop as type=" instead of cta-type="
Changelog
New

readme, storybook, codesandbox content-block-media/mixed

Changed

should be using card-link-cta - not card-link

Everything looks good, but the heading isn't being updated through the Storybook knob.
This is happening due to the whole markdown feature within some of the text components, but this is how I'm doing it in the other stories to make sure it updates:
https://github.com/carbon-design-system/carbon-for-ibm-dotcom/pull/8823/files#diff-dc08f86e31a62bc1c7c0fecded8365fd2cae86adc6b40f67924635a15e62b21dR39-R43


Update analytic stack extensions

Make them the latest versions, the better to support Potgres 17.

We'll need to bump the version in Cargo.toml when it needs to be released.


Some simple issues

Will Windows(amd-64) version be released?

Is shadow-tls compatible with trojan/v2ray or such protocols?

If the answer of former issue is 'Yes' , can you give the configuration files out?

Thanks.

In short term, no.
No.

I see.
Best,
Xway
Sent with Proton Mail secure email.
------- Original Message -------
在 2022年8月29日 星期一 下午 7:07，ihc童鞋@提不起劲 @.***> 寫道：

In short term, no.
No.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

sing-box has added support for shadow-tls:
https://sing-box.sagernet.org/examples/shadowtls/

sing-box has added support for shadow-tls:
https://sing-box.sagernet.org/examples/shadowtls/

Whoa!


Relaxed branch+cmp offset encoding

Closes https://github.com/paritytech/wasmi/issues/859.
@tomaka This should fix the problems with the old Polkadot runtime and the invalid branch offset error by using a new fallback instruction that allows to encode 32-bit branch offsets by exchanging encoding space for runtime inefficiency in those rare cases. This way the happy path with its 16-bit branch offsets stays fast.

Thank you!

Thank you for taking the time to test the new Wasmi beta! :)


Multiple Treasury and StarToken Contracts Allowed

UTR-03 Multiple Treasury and StarToken Contracts Allowed
Asset Treasury.sol
Status Open
Rating Informational
Description
The Treasury contract deploys a new StarToken contract during contract creation, as indicated on line [26]:
StarToken public startoken = new StarToken (0 , new address );
It is possible to deploy multiple Treasury contracts. It also means that there can be multiple StarToken
contracts, where tokens in one StarToken contract cannot redeem a star in other Treasury contracts. This
can potentially be confusing or misleading for users.
Recommendations
Make sure this behaviour is intended and consider deploying a dedicated StarToken contract and hardcoding
its address in the Treasury contract.

Behavior is intended. Won't fix. Treasury has no owner, StarToken is owned by the Treasury that deployed it, and nothing is upgradable by design. The only way to upgrade the token or treasury is to relaunch the whole thing.


Versioning of Custom Filters

Please share if there an inbuilt way to run multiple versions of a custom filter allowing a gradual upgrade path.
For Example:
If a filter, say, CustomFilter is being used by several routes requires a change that could have a large impact, we would prefer a gradual upgrade process with only selective routes going first. Of-course, we can make multiple copies of the filter, like CustomFilterV1, CustomFilterV2 etc. but that leads to a maintenance overhead.
Is there anything inbuilt to make it easier.

Please share if there an inbuilt way to run multiple versions of a custom filter allowing a gradual upgrade path

not yet

Of-course, we can make multiple copies of the filter, like CustomFilterV1, CustomFilterV2 etc. but that leads to a maintenance overhead.
Is there anything inbuilt to make it easier.
yes. You may do like this.

example:
public class VersioningGatewayFilterFactory extends AbstractGatewayFilterFactory<VersioningGatewayFilterFactory.Config> {

	public VersioningGatewayFilterFactory() {
		super(VersioningGatewayFilterFactory.Config.class);
	}

	@Override
	public GatewayFilter apply(Config config) {
		return (exchange, chain) -> {
			String version = config.version;
			// your spec code
			return chain.filter(exchange);
		};
	}

	static class Config {
		protected String version;
                public String getVersion() {
			return version;
		}

		public void setVersion(String version) {
			this.version = version;
		}
	}
}

and the config like:
routes:
  - id: version1
    uri:
    predicates:
    - Path=/**
    filters:
    - name: Versioning
      args:
        version: 1
  - id: version2
    uri:
    predicates:
    - Path=/**
    filters:
    - name: Versioning
      args:
        version: 2

There is nothing to do this.


feat: remove resolution-mode=highest in template .npmrc

In pnpm v8.7.0, the resolution-mode is now set to highest by default.
Thus, I believe it is possible to remove the settings previously made in this PR
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Agree, but let's wait a few more weeks to ensure more people have upgraded to that version

Deployment targets like Cloudflare are still installing 8.2 even though there have been important bug fixes in versions like 8.6 :/ Maybe it's worth waiting a while longer or nagging everyone a bit more to stay up to date (I have tried with Cloudflare specifically)


Ability to specify unit/precision of access log duration

Title: Ability to specify unit/precision of access log duration
Description:
Durations are hard-coded to milliseconds, it would be super convenient to be able to specify the unit i.e. seconds so that 3 milliseconds is logged as 0.003. Additionally, from the code, it appears that the duration is stored using chrono::nanoseconds so it shouldn't be difficult to provide precision control from ns and up (our previous system provides ns precision and we're working for on-par drop-in replacement for logging). An example of the final result is that someone could specify seconds-unit but with nanosecond precision.
Somewhat related to issue #2709 - I'm willing to provide an implementation.

@htuch does this only apply to START_TIME, or can I use this mechanism to format other duration entries too? looking at the docs it only seems to specify that we can format START_TIME

@moadi I think you are right; PRs welcome.


Small bug in PlaybackAPI

I was playing around with this trying to get it to work in rainmeter and I noticed that the artist and album are switched.
in JSBound:
PlaybackAPI.Instance.UpdateCurrentSong(song, album, artist, url);
And the method itself in PlaybackAPI is:
public void UpdateCurrentSong(string song, string artist, string album, string imageURL)

That's a bit awkward..
Stares pointedly at @rynti
Just kidding, I missed it in the review, I'll push out a fix for this soonish

Oops, opened a pull request with the appropriate fix, sorry for the inconvenience :smile:

This is really why we need unit tests for functionality like this, it just seems really hard to write :/


Error Encountered During TMFuzz Execution

Hello, thank you for contributing to this project! I encountered an error while running TMFuzz. The error message is as follows:
[-] run_test error:
Traceback (most recent call last):
  File "./fuzzer.py", line 306, in evaluation
    distance_list = cluster.calculate_distance(model, accumulated_trace_graphs)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 332, in calculate_distance
    optimal_n_clusters = calculate_optimal_clusters(pca_features)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 306, in calculate_optimal_clusters
    bic_score = compute_bic(kmeans, pca_result)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in compute_bic
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in <listcomp>
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
IndexError: index 1 is out of bounds for axis 0 with size 1

Steps:

Start Docker and launch the CARLA image version 0.9.13 (using run_carla.sh).
Run ./test.sh behavior 0.4 3 3600.

Can you help me resolve this issue? Thank you!

more execution log is as follows:
(tmfuzz) yhw@yhw-Z790-S-DDR4:~/codes/TMfuzz/script$ docker ps
CONTAINER ID   IMAGE                   COMMAND                  CREATED          STATUS          PORTS     NAMES
ba115747ac95   carlasim/carla:0.9.13   "./CarlaUE4.sh -Rend…"   10 minutes ago   Up 10 minutes             carla-yhw

(tmfuzz) yhw@yhw-Z790-S-DDR4:~/codes/TMfuzz/script$ ./test.sh behavior 0.4 3 3600
behavior
Deleted files in /tmp/fuzzerdata/yhw
../data/output/camera/ is empty. Skipping...
../data/output/errors/ is empty. Skipping...
../data/output/trace/ is empty. Skipping...
There is nothing to save now
pygame 2.3.0 (SDL 2.24.2, Python 3.7.16)
Hello from the pygame community. https://www.pygame.org/contribute.html
API: ./carla/PythonAPI/carla-0.9.13-py3.6-linux-x86_64.egg
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/carla/__init__.py
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
  f"The parameter '{pretrained_param}' is deprecated since 0.13 and may be removed in the future, "
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights.
  warnings.warn(msg)
[info] determ seed set to:<PHONE_NUMBER>.3396287
Using seed dir ./data/seed
Connecting to localhost:4000
 ====== Analyzing Initial Population ======
 ====== GA Generation 1 ======
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 23 1.8927481840364635
LANE INVASION: LaneInvasionEvent(frame=919, timestamp=37.732747)

[*] (BehaviorAgent) dont Reached the destination dist_to_goal= 5.823702812194824
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 237 3.589696964249015
LANE INVASION: LaneInvasionEvent(frame=3777, timestamp=145.189694)
LANE INVASION: LaneInvasionEvent(frame=3795, timestamp=145.909694)

[*] (BehaviorAgent) Reached the destination dist_to_goal= 0.29422903060913086
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 26 2.3665983541868627

[*] (BehaviorAgent) Reached the destination dist_to_goal= 1.2408286333084106
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 22 2.3122975332662463
LANE INVASION: LaneInvasionEvent(frame=277, timestamp=12.512297)
LANE INVASION: LaneInvasionEvent(frame=281, timestamp=12.672297)
LANE INVASION: LaneInvasionEvent(frame=290, timestamp=13.032297)
LANE INVASION: LaneInvasionEvent(frame=299, timestamp=13.392297)
COLLISION: vehicle.citroen.c3

[*] Collision detected: 25.72
/home/yhw/codes/TMfuzz/simulate.py:370: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  trace_graph_important = np.array(trace_graph_important)
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
/home/yhw/codes/TMfuzz/scenario.py:265: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  new_trace_graph = np.array([np.array([point[:2] for point in trace]) for trace in trace_graph])
save trace done
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
/home/yhw/codes/TMfuzz/cluster.py:305: ConvergenceWarning: Number of distinct clusters (2) found smaller than n_clusters (3). Possibly due to duplicate points in X.
  kmeans.fit(pca_result)
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: divide by zero encountered in log
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: invalid value encountered in multiply
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
/home/yhw/codes/TMfuzz/cluster.py:334: ConvergenceWarning: Number of distinct clusters (2) found smaller than n_clusters (3). Possibly due to duplicate points in X.
  kmeans = KMeans(n_clusters=optimal_n_clusters).fit(pca_features)
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 22 2.2943313848227262

[*] (BehaviorAgent) dont Reached the destination dist_to_goal= 4.105535507202148
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
/home/yhw/codes/TMfuzz/cluster.py:305: ConvergenceWarning: Number of distinct clusters (2) found smaller than n_clusters (3). Possibly due to duplicate points in X.
  kmeans.fit(pca_result)
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: divide by zero encountered in log
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: invalid value encountered in multiply
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
/home/yhw/codes/TMfuzz/cluster.py:305: ConvergenceWarning: Number of distinct clusters (2) found smaller than n_clusters (4). Possibly due to duplicate points in X.
  kmeans.fit(pca_result)
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: divide by zero encountered in log
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
/home/yhw/codes/TMfuzz/cluster.py:325: RuntimeWarning: invalid value encountered in multiply
  ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
[-] run_test error:
Traceback (most recent call last):
  File "./fuzzer.py", line 306, in evaluation
    distance_list = cluster.calculate_distance(model, accumulated_trace_graphs)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 332, in calculate_distance
    optimal_n_clusters = calculate_optimal_clusters(pca_features)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 306, in calculate_optimal_clusters
    bic_score = compute_bic(kmeans, pca_result)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in compute_bic
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in <listcomp>
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
IndexError: index 3 is out of bounds for axis 0 with size 3
Deleted files in /tmp/fuzzerdata/yhw
Copied files from ../data/output/camera/ to ../data/save/20241028085522/camera/
Copied files from ../data/output/errors/ to ../data/save/20241028085522/errors/
Copied files from ../data/output/trace/ to ../data/save/20241028085522/trace/
Saving done
pygame 2.3.0 (SDL 2.24.2, Python 3.7.16)
Hello from the pygame community. https://www.pygame.org/contribute.html
API: ./carla/PythonAPI/carla-0.9.13-py3.6-linux-x86_64.egg
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/carla/__init__.py
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
  f"The parameter '{pretrained_param}' is deprecated since 0.13 and may be removed in the future, "
/home/yhw/anaconda3/envs/tmfuzz/lib/python3.7/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights.
  warnings.warn(msg)
[info] determ seed set to:<PHONE_NUMBER>.908444
Using seed dir ./data/seed
Connecting to localhost:4000
 ====== Analyzing Initial Population ======
 ====== GA Generation 1 ======
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 24 1.8592266964260489
LANE INVASION: LaneInvasionEvent(frame=388, timestamp=16.419226)
LANE INVASION: LaneInvasionEvent(frame=397, timestamp=16.779226)
LANE INVASION: LaneInvasionEvent(frame=401, timestamp=16.939226)
LANE INVASION: LaneInvasionEvent(frame=414, timestamp=17.459226)
LANE INVASION: LaneInvasionEvent(frame=877, timestamp=35.979226)
LANE INVASION: LaneInvasionEvent(frame=895, timestamp=36.699226)
LANE INVASION: LaneInvasionEvent(frame=1316, timestamp=53.539226)
LANE INVASION: LaneInvasionEvent(frame=1529, timestamp=62.059225)
LANE INVASION: LaneInvasionEvent(frame=1547, timestamp=62.779225)

[*] (BehaviorAgent) Reached the destination dist_to_goal= 0.70563143491745
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 193 3.4405334442853928
LANE INVASION: LaneInvasionEvent(frame=2233, timestamp=85.040532)
LANE INVASION: LaneInvasionEvent(frame=2251, timestamp=85.760532)

[*] (BehaviorAgent) Reached the destination dist_to_goal= 1.5913171768188477
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 23 2.4446243189740926
LANE INVASION: LaneInvasionEvent(frame=1887, timestamp=77.004623)
LANE INVASION: LaneInvasionEvent(frame=2091, timestamp=85.164622)

[*] (BehaviorAgent) Reached the destination dist_to_goal= 1.51866614818573
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
ValueError
ValueError
fuzzer - found an error
[-]error detected. start a new cycle with a new seed
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 23 2.5964997322298586

[*] (BehaviorAgent) Reached the destination dist_to_goal= 0.3141450881958008
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
ValueError
ValueError
IndexError
IndexError
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 23 2.185606237500906

[*] (BehaviorAgent) Reached the destination dist_to_goal= 1.4694806337356567
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
ValueError
ValueError
IndexError
IndexError
IndexError
IndexError
gen	avg                                           	max                                           	min
1  	[3.44339514e+00 1.37707918e-01 1.49011612e-08]	[3.44339514e+00 1.37707918e-01 1.49011612e-08]	[3.44339514e+00 1.37707918e-01 1.49011612e-08]
 ====== GA Generation 2 ======
timeout after 15 min
[+] spawned cautious BehaviorAgent
START DRIVING: 26 2.3233615499921143
LANE INVASION: LaneInvasionEvent(frame=2409, timestamp=97.643359)
LANE INVASION: LaneInvasionEvent(frame=2426, timestamp=98.323359)

[*] (BehaviorAgent) Reached the destination dist_to_goal= 1.741147756576538
Saving the whole front camera video Saving the whole top camera video [-] Autoware container was not killed for an unknown reason
    Trying manually
Error response from daemon: No such container: autoware-yhw
save video done
save trace done
IndexError
IndexError
IndexError
IndexError
ValueError
ValueError
IndexError
IndexError
IndexError
IndexError
IndexError
IndexError
/home/yhw/codes/TMfuzz/cluster.py:305: ConvergenceWarning: Number of distinct clusters (4) found smaller than n_clusters (5). Possibly due to duplicate points in X.
  kmeans.fit(pca_result)
[-] run_test error:
Traceback (most recent call last):
  File "./fuzzer.py", line 306, in evaluation
    distance_list = cluster.calculate_distance(model, accumulated_trace_graphs)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 332, in calculate_distance
    optimal_n_clusters = calculate_optimal_clusters(pca_features)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 306, in calculate_optimal_clusters
    bic_score = compute_bic(kmeans, pca_result)
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in compute_bic
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
  File "/home/yhw/codes/TMfuzz/cluster.py", line 325, in <listcomp>
    ((m[i] - 1) * d / 2) for i in range(k)]) - const_term
IndexError: index 4 is out of bounds for axis 0 with size 4
Deleted files in /tmp/fuzzerdata/yhw
Copied files from ../data/output/camera/ to ../data/save/20241028090719/camera/
Copied files from ../data/output/errors/ to ../data/save/20241028090719/errors/
Copied files from ../data/output/trace/ to ../data/save/20241028090719/trace/
Saving done

Hello, thank you for your interest in this project and for your feedback! We have verified the issue you reported, and it has been addressed in Commit 5555eca. The bug was caused primarily by certain boundary conditions; as our paper did not include behavior experiments, the corresponding code had not been recently updated. Please update your repository to access the latest fix. We appreciate your detailed description and patience in testing. We hope you'll continue to reach out in the future with any questions or insights. Enjoy using the project!

We have run the updated code on our local machine and did not encounter the issue you mentioned. If you still experience any problems after updating, please feel free to reach out, and we’ll be glad to assist. Thank you for your support!

it works, thk!

By the way, I noticed that you compared TMFuzz with DriveFuzz in your paper. May I ask whether you ran the original code from the DriveFuzz repository directly, or make some modifications to it (such as adapting it to the DEAP framework)? @ldegao
I'm curious because it seems that the original DriveFuzz has a different input approach compared to TMFuzz. DriveFuzz uses a single seed as input, mutating it N times and comparing the scores from those mutations to determine the next seed. In contrast, TMFuzz generates N scenarios randomly and executes them, then mutates M scenarios for further execution, selecting offspring from the combined M + N.
Did you adjust the input for DriveFuzz in your comparison? Thank you for your response!

If I have any misunderstanding, please let me know. Thks!

By the way, I noticed that you compared TMFuzz with DriveFuzz in your paper. May I ask whether you ran the original code from the DriveFuzz repository directly, or make some modifications to it (such as adapting it to the DEAP framework)? @ldegao
I'm curious because it seems that the original DriveFuzz has a different input approach compared to TMFuzz. DriveFuzz uses a single seed as input, mutating it N times and comparing the scores from those mutations to determine the next seed. In contrast, TMFuzz generates N scenarios randomly and executes them, then mutates M scenarios for further execution, selecting offspring from the combined M + N.
Did you adjust the input for DriveFuzz in your comparison? Thank you for your response!

Hello, to stay true to the original design of DriveFuzz, we made only minimal modifications during the comparison to ensure it could run in CARLA version 0.9.13 (as the original environment was 0.9.10). These adjustments do not affect its operational logic. Additionally, we included some code to record specific values during runtime, such as the number of surrounding vehicles, to facilitate comparative analysis. Experimental results showed that these changes did not significantly impact DriveFuzz's efficiency. Beyond these adjustments, no other modifications were made. Please feel free to reach out if you have any questions!

@ldegao  Thank you for your quick response! I understand now.
In fact, I am working on an open-source benchmark, but I've encountered some issues integrating DriveFuzz (it seems that the link between DriveFuzz and CARLA is... somewhat unstable, making it difficult to conduct long-term fuzzing).
Based on your response, I suspect that CARLA 0.9.13 might be more robust than <IP_ADDRESS> ( I’m not sure...).
If you could share the modified version of DriveFuzz, it would be a great help to me. If not, I still appreciate your response—thank you!

Carla Stability Issue
In our experiments with DriveFuzz, we encountered multiple segment faults, partially due to version instability. One reason for our upgrade to Carla 0.9.13 was the stability concerns with version 0.9.10. During the paper writing process, Carla released version 0.9.15, addressing several stability issues, as noted in Carla 0.9.15's ChangeLog. To fully resolve this issue, you may consider upgrading to 0.9.15.

Another potential cause of DriveFuzz crashes is residual sensors on the Ego vehicle after a previous simulation crash. These sensors may have callback functions without corresponding interfaces, leading to segmentation faults. This issue was also observed in our recent project, AS-Fuzz.

Version Selection
Adapting DriveFuzz to Carla 0.9.13 primarily involved upgrading the Bridge between Autoware and Carla. We’re happy to provide our modified carla-autoware for Carla 0.9.13, where the 0.9.13 branch is tailored for DriveFuzz. Simply compile this container per our branch instructions, name it as a new container, and reference it in DriveFuzz for testing.

Since the DriveFuzz comparison environment was not initially intended for open release, it contains settings specific to our environment (e.g., proxy configurations). If you encounter issues, removing these specific configurations may resolve them.
Compiling a new carla-autoware container can be challenging; please don’t hesitate to reach out if you need any assistance. We’re happy to help.

This helps me a lot; thank you.


Add comparison method to directory thing and sub-components

It should be easy to compare two things or sub-components (value, link, etc.).
=> Override == operator and hashcode.

Overriding == and hashcode is a bad idea on mutable objects like thing (https://dart-lang.github.io/linter/lints/avoid_equals_and_hash_code_on_mutable_classes.html).

If we decide to make things immutable we should use https://pub.dev/packages/equatable instead of overriding the normal comparison methods.

IMO we should make all data classes immutable. They should have a copyWith()-Method to modify their attributes. This allows us to compare and use them in collections and other data structures where only immutable objects should be stored.


Versioning updates

Codecov Report

Merging #24 into master will decrease coverage by 1.03%.
The diff coverage is 54.54%.

@@             Coverage Diff              @@
##             master      #24      +/-   ##
============================================
- Coverage     92.89%   91.86%   -1.04%
  Complexity       45       45
============================================
  Files            27       27
  Lines           422      430       +8
  Branches         28       28
============================================
+ Hits            392      395       +3
- Misses           18       23       +5
  Partials         12       12

Impacted Files
Coverage Δ
Complexity Δ

...com/project/starter/quality/internal/Checkstyle.kt
92.2% <100%> (ø)
0 <0> (ø)
:arrow_down:

...ect/starter/versioning/plugins/VersioningPlugin.kt
78.37% <50%> (-11.28%)
3 <0> (ø)

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 62b6efb...b03cc57. Read the comment docs.


How to give figure numbering in 1.1 or 1.a format

Description
Use Case - We have a topic. We have a figure on that topic. When PDF is rendered the default number for the figure is Figure 1.
We want to show Figure number as 1.1(which denotes the first figure of the first topic).
Possible Solution
<xsl:template match="[contains(@class,' topic/fig ')]/[contains(@class,' topic/title ')]">
<xsl:variable name="depth" select="count(ancestor-or-self::*[contains(@class, ' topic/fig')])"/>
<xsl:variable name="e:number-levels" select="(true(), true(), true(), true())"/>
xsl:message Hi I am here <xsl:value-of select="$e:number-levels"> </xsl:value-of> </xsl:message>
<fo:block xsl:use-attribute-sets="fig.title">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates select="." mode="customTitleAnchor"/>
<xsl:call-template name="getVariable">
<xsl:with-param name="id" select="'Figure.title'"/>
<xsl:with-param name="params">

<xsl:variable name="figCount">
<xsl:apply-templates select="." mode="fig.title-number"/>
</xsl:variable>
<xsl:number format="1.1" value="$figCount"/>

xsl:apply-templates/

</xsl:with-param>
</xsl:call-template>
</fo:block>
</xsl:template>
Potential Alternatives

Additional Context

@DeekshaBhagat - Github issues are for bugs with existing supported/documented behaviors, not for plugin development questions.
If you are trying to develop a plugin to achieve a specific behavior, I suggest closing this issue and posting in the DITA-OT Users group instead. There is also a DITA Users group, which is focused more on DITA itself and less on the DITA-OT machinery.


Specifying index-url / Private Indexes

Is it possible to specify --index-url when adding a dependency to a project?

It used to be, it is not in the version on github. Now that I also use this version and not my own one, I want to incorporate that functionality back but I never really liked how that worked.
Because of how pip installs stuff it's very hard to pin dependencies to a specific index which is what I wanted to actually achieve originally. I'm up for suggestions of how this can be accomplished best with the current state of pip.

The current state of affairs in the pip world is pretty bad :(

https://github.com/pypa/pip/issues/8606
https://github.com/python-poetry/poetry/issues/6713

The current state of affairs in the pip world is pretty bad :(

https://github.com/pypa/pip/issues/8606
https://github.com/python-poetry/poetry/issues/6713

Only pdm solves that properly

Pipenv also solves this properly https://pipenv.pypa.io/en/latest/pipfile/#example-pipfile-lock
There is no PEP for this though.

Actually there is a draft pep for this, someone in pip project issue about that shared with me

End users of pip will be given the ability to explicitly define one or more repositories that are valid for a specific project, causing pip to only consider those repositories for that project, and avoiding generating an error altogether

https://peps.python.org/pep-0708/#what-is-changing
🙏

So if I read this correctly it will still consult both of them but error if it finds it in more than one. That's I guess better than nothing but quite unfortunate behavior. I much prefer what pdm does here.

Apparently in the original proposal there was a "repository file" that would let the end user specify the exact repository to pull a dependency from. This was "handwaved away" so I guess package managers will be expected to decide on how they want to do this themselves.
https://docs.google.com/document/d/184fQkb6NggVQfYmjTDA7p_U3iWDKk6grc2DigT1X3Es/edit

Any update for this feature? stucked using private pypi.

@futurist I'm currently considering adding a temporary hack in to unblock basic uses.

would be great, especially for pytorch where this is super common.


Set the colors for conceal character

For use when concealment feature is enabled.
For example with https://github.com/plasticboy/vim-markdown
See the example with LaTeX file:

So what you decided on this one? If you don't agree - just close it, if you agree - why not to merge or comment there?

I don't understand this change, why would you want to hide he conceal characters?

I don't want to hide them - they are still visible, just less bright, so
don't distract from the actual content.
On Fri, Jun 21, 2019, 10:42 PM Jacobo Tabernero<EMAIL_ADDRESS>wrote:

I don't understand this change, why would you want to hide he conceal
characters?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jacoborus/tender.vim/pull/38?email_source=notifications&email_token=AABRT7I5I2KLHMO5UKT7TEDP3TSD3A5CNFSM4HVAZVB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYIVAKQ#issuecomment-504451114,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABRT7MDOZKVBPUOMTWWNRLP3TSD3ANCNFSM4HVAZVBQ
.

I mean, BG and FG have same values, so it would be impossible to differentiate the character
hi Conceal guifg=#504040 ctermfg=138 guibg=#504040 ctermbg=138 gui=NONE cterm=NONE


Databricks tweaks pr

Hi there,
Added inline dashboard visualisation functionality for Databricks notebooks and dashboards save to dbfs (if a Databricks runtime is detected).
linker.comparison_viewer_dashboard() and linker.cluster_studio_dashboard() functions now allow you to save to a dbfs path and also return the rendered html variable which can be plot inline in the Databricks notebook using displayHTML()
Tested on a Databricks runtime 11 ML cluster, with Spark 3.3.0 and Python 3.9.5
Setup notes:

had to install and register the Jaccard Similarity UDF 885ef67a_97a1_485a_8ca3_27cfdfc0ef38-scala_udf_similarity_0_0_9-3e057.jar
I set the spark checkpoint directory to spark.sparkContext.setCheckpointDir('/tmp/spark/checkpoint/’)
Tested successfully using the SparkLinker backend

Outstanding Issues:

linker.profile_columns() throws a SparkException: Exception thrown in awaitResult:

Cheers for making an excellent tool
All the best
Rob

Thanks very much!  I'm away for a few days, but should be able to look at this next week 🙂


decimal rounding fix

close #199

please ignore gcc12 failing
gcc12 will get removed by #179 anyway

It looks good to me thank you.
This is me nitpicking, but I have a small request. Could you also please add test cases for -1.4? Since you already have test cases for -1.6, I think it would be better to also cover case where the decimal part is smaller than 0.5.


Exception after restarting via IPC command

Bug
Description
When I restart ASF using "restart" command via IPC it throws an exception but will continue to restart. After restarting it throws a second exception and cant start a new IPC server.
Expected behavior
It should close current IPC server and restart ASF and start IPC server again.
Actual behavior
Exception while trying to shutdown ASF. After restart another exception.
Steps to reproduce
Send the command "restart" via IPC.
Exceptions recorded during reproducing the problem
First Exception
30.11.2017 19:00:41|ArchiSteamFarm-20236|ERROR|ASF|Run() System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'listener'.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.ListenerAsyncResult.GetContext()
at System.Net.HttpListener.EndGetContext(IAsyncResult asyncResult)
at System.Net.HttpListener.<>c.b__44_1(IAsyncResult iar)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at ArchiSteamFarm.IPC.d__11.MoveNext()
Second Exception
30.11.2017 19:00:47|ArchiSteamFarm-20328|INFO|ASF|InitASF() ASF v<IP_ADDRESS> (2144fce0-70e4-4988-b413-1301f54e75a2)
30.11.2017 19:00:57|ArchiSteamFarm-20328|INFO|ASF|Start() Starting IPC server on http://<IP_ADDRESS>:1242/...
30.11.2017 19:00:57|ArchiSteamFarm-20328|ERROR|ASF|Start() System.Net.HttpListenerException (0x80004005): Address already in use
at System.Net.HttpEndPointManager.GetEPListener(String host, Int32 port, HttpListener listener, Boolean secure)
at System.Net.HttpEndPointManager.AddPrefixInternal(String p, HttpListener listener)
at System.Net.HttpEndPointManager.AddListener(HttpListener listener)
at System.Net.HttpListener.Start()
at ArchiSteamFarm.IPC.Start()

It's totally new to me that HttpListener actually disposes itself on HttpListenerException, I have no clue who thought that it'll be a good idea to disregard all standard disposing patterns and just invent a shit like this, I'll probably fix it later today and have a new version for you to test.

Thanks for report, you can verify if https://ci.appveyor.com/project/JustArchi/archisteamfarm/build/4798-master/artifacts fixed your issue.


Providing score trend on plugins enhancement

Description
Closes #493.
Add a new field that helps to analyse this change in the score of an individual plugin, and using the data we can show whether the score is increased or decreased.
Task :

Created a new field in score to analyse the change in the score of a plugin. [ Done]
Use the field to store to analyse whether the score is decreased or increased [ Inprogress]

Testing done
TODO
### Submitter checklist
- [x] If an issue exists, it is well described and linked in the description
- [ ] The description of this pull request is detailed and explain why this pull request is needed
- [ ] The changeset is on a specific branch. Using `feature/` for new feature, or improvements ; Using `fix/` for bug fixes ; Using `docs/` for any documentation changes.
- [ ] If required, the documentation has been updated
- [ ] There is automated tests to cover the code change / addition or an explanation why there is no tests in the description.

Hello @AayushSaini101
Thank you for starting this Draft PR. Don't forget to explain in the description the "what", the "why", the "what-for", etc. Take the time to explain the PR to the maintainer in details.
Another useful thing to do before pushing a commit/pr is to verify that it builds locally. Obviously the checkstyle fails.

Please note, again, that there is a pull request template which is here to help you format what you contribute.

Hello @AayushSaini101
Thank you for starting this Draft PR. Don't forget to explain in the description the "what", the "why", the "what-for", etc. Take the time to explain the PR to the maintainer in details.
Another useful thing to do before pushing a commit/pr is to verify that it builds locally. Obviously the checkstyle fails. Or if using TDD and first pushing a failing test, explain it.

Thanks @jmMeessen :) Done

I fixed the description.
Please, the "previous score" shouldn't be in the "plugin". You are not starting correctly.

#493

I fixed the description.
Please, the "previous score" shouldn't be in the "plugin". You are not starting correctly.

@alecharp My approach is to store the change of the score in a field that is change score in the score table, Isn't correct ?

I will use that value [-1,0,1] means score change, score don't change, score increased that is stored in the column of the table, and according to the value present for individual plugin, we can show the message whether the score is decreased or not. what you think @alecharp

We already keep the last 5 scores in the scores table. Don't duplicate entries like that.

We already keep the last 5 scores in the scores table. Don't duplicate entries like that.

@alecharp Thanks, i checked the table but cannot able to find the last score list of a plugin, can you help where it is present,

If you run the scoring multiple times, you will see that you have multiple entries for the same plugin_id.

If you run the scoring multiple times, you will see that you have multiple entries for the same plugin_id.

Thanks, Yes there are multiple entries of a plugin, So the maximum duplicates of a single plugin_id can be 5.
 In that case, I guess we can create an API that checks group the same plugin_id and check the behavior of the score whether it is increasing or decreasing. I guess the last 2 entries of a plugin_id are suitable to analyse the behaviour of a plugin scoring, What do you think ? @alecharp

Rather than just knowning if it increases or decreases, I think it's preferable to know the score. This way, the UI can decide if its shows the value or if it shows a sign for the trend.
This would have been a great discussion on the issue, to understand the prerequisite of the work to be done, rather than here on a pull request.

Rather than just knowning if it increases or decreases, I think it's preferable to know the score. This way, the UI can decide if its shows the value or if it shows a sign for the trend.
This would have been a great discussion on the issue, to understand the prerequisite of the work to be done, rather than here on a pull request.

Sure @alecharp I am moving the discussion on the issue

@alecharp I tried to add previous from one approach,
I am making single db call, but the score will contains at max 2 duplicate score records, this will change the ScoreStatistics values, Is it good ? Or we can make separate db call for the requirement

You forced push this pull request, again. Now we can see changes that were done in the main branch as part of this pull request. Lots of files were changed that are not related to this pull request.
Statistics should not be changed because you creates. They should only be about the latest scores.

@alecharp Sorry these are not completed changes, i was just checking whether the approaches and changes can be used or not.
One Question; can we make two db call in this case? one for latest score and one for previous score in the same endpoint

Please provide a test using different score and previous score for at least 2 plugins because the current test is not testing that.

Added new test case for verifying the previousScore

@alecharp I guess, i have answered and resolved all your comments

I don't know I have to check. Please see to fill the pull request description first.

I don't know I have to check. Please see to fill the pull request description first.

Done @alecharp

There is still a TODO in the pull request description @AayushSaini101

There is still a TODO in the pull request description @AayushSaini101

Added more points @alecharp thanks

And still, there is a TODO

In fact, no. It's important to add the testing that you have done for this pull request, this is why it's in the pull request template. Removing that section is not the way to go, it needs to be filled.

In fact, no. It's important to add the testing that you have done for this pull request, this is why it's in the pull request template. Removing that section is not the way to go, it needs to be filled.

 @alecharp  I guess now it is correct

Have you tested you code and its behavior?
Locally, and re-reading the code again, I don't see any proof that it's actually answering #493. There is no field in the /api/scores for each plugin that provide the previous score of the plugins.

Have you tested you code and its behavior? Locally, and re-reading the code again, I don't see any proof that it's actually answering #493. There is no field in the /api/scores for each plugin that provide the previous score of the plugins.

@alecharp Yes i have tested this, and also pasted the screenshoot in the comment https://github.com/jenkins-infra/plugin-health-scoring/pull/495#issuecomment-2027999501 weird, migth be due to new changes in master branch causing no output. I will check

@AayushSaini101 do you think you will be able to complete this pull request?

@AayushSaini101 do you think you will be able to complete this pull request?

Sorry  @alecharp I was on the vacations. I can start working in the next week


Add Health Notifications Plugin

Adds a configurable visual notification in the form of an overlay when total hitpoints breach a user-specified value.

For what it's worth, I think my plugin Watchdog supports everything this one does.


If file not found: "During handling of the above exception, another exception occurred: ..."

When I try to include a non-existing file from static directory via
{{=url('static', 'img/portrait.jpg')}}
I get this exception:
> ERROR in wsgi [\weppy\wsgi.py:110]:
Application exception:
Traceback (most recent call last):
  File "\weppy\stream.py", line 50, in streamer
    stream = open(static_file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '\\static\\img/portrait.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\weppy\wsgi.py", line 94, in error_handler
    return static_handler(app, environ, start_response)
  File "\weppy\wsgi.py", line 83, in static_handler
    environ, start_response, static_file, version)
  File "\weppy\stream.py", line 110, in stream_file_handler
    return streamer(environ, static_file, version, headers, block_size).to(
  File "\weppy\stream.py", line 95, in streamer
    if sys.exc_info()[1][0] in (errno.EISDIR, errno.EACCES):
TypeError: 'FileNotFoundError' object is not subscriptable
> INFO in rocket [\weppy\libs\rocket.py:1849]:
[<IP_ADDRESS> on /static/img/portrait.jpg] dispatched in 0.011001110076904297 secon
d(s)

I think this is a bug because one exception triggers another one.

Yes, this probably caused by the change on standard IO exceptions since python 3.3
Will fix this asap.

Now there is no exception thrown, if the file doesn't exist. Is this expected? I doubt it.

@GiantCrocodile Are you sure? You should have an empty response with status 404

Yes, the page is loading but without the image (I only see alt-tag) and I see this in console:
[<IP_ADDRESS> on /static/img/portrait.jpg] dispatched in 0.005000591278076172 second(s)

@GiantCrocodile will probably enhance the response to have a body stating the error.


Update AArch64 features to Linux 6.6.

ref: https://elixir.bootlin.com/linux/v6.6.2/source/arch/arm64/include/asm/hwcap.h#L140

Thx for the PR @tamaszarm!


Update .nancy-ignore for protobuf

Checklist

[ ] Update changelog in CHANGELOG.md.

Thank you for this but 1. no need to fix these for the label PRs, I'm sure you have lots, and 2. we have automation that does this now -> https://github.com/giantswarm/pss-operator/pull/37

OKOK


Fixed Package.swift

SPM was complaining that the directory structure didn't match up, it's usually in the format Sources/{Name}/* instead of the current Sources/*. Updated the Package.swift file to target the right directory.

Thanks 💯