JSON parsing error

Request:
{
    "requirement": {
        "id": "encryption_AES128",
        "description": "Encryption AES 128",
        "type": "TransportEncryption",
        "properties": {
            "protocol": {
                "unit": "enum",
                "value": "TLS"
            },
            "algorithm": {
                "unit": "list",
                "value": ["TLS_AES_256_GCM_SHA384", "TLS_AES_128_GCM_SHA256", "TLS_AES_128_CCM_8_SHA256", "TLS_AES_128_CCM_SHA256"]
            },
            "keyLength": {
                "unit": "number",
                "value": 128
            }
        }
    },
    "blueprintAttributes": [{
        "id": "encryption_AES128",
        "description": "Encryption AES 128",
        "type": "TransportEncryption",
        "properties": {
            "protocol": {
                "unit": "enum",
                "value": "TLS"
            },
            "algorithm": {
                "unit": "list",
                "value": ["TLS_AES_256_GCM_SHA384", "TLS_AES_128_GCM_SHA256", "TLS_AES_128_CCM_8_SHA256", "TLS_AES_128_CCM_SHA256"]
            },
            "keyLength": {
                "unit": "number",
                "value": 128
            }
        }
    }]
}

Response:
{
    "timestamp": "2019-08-07T09:46:27.512+0000",
    "status": 400,
    "error": "Bad Request",
    "message": "JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token\n at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: de.tub.privacySecurityEvaluator.model.Request[\"requirement\"]->de.tub.privacySecurityEvaluator.model.fields.AlgorithmField[\"value\"])",
    "path": "/v1/filter"
}

the algorithm field was from type enum in the last blueprint version has this changed permanently to list?

Yes part of the last blueprint shema
On Aug 8, 2019 11:20, Durgen<EMAIL_ADDRESS>wrote:
the algorithm field was from type enum in the last blueprint version has this changed permanently to list?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/DITAS-Project/PrivacySecurityEvaluator/issues/28?email_source=notifications&email_token=AAN7SFNUKDS4L2N7RHI7KTDQDPQPPA5CNFSM4IJ6RKXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33AQGI#issuecomment-519440409, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAN7SFMDUFM7UF3WH7NOM3TQDPQPPANCNFSM4IJ6RKXA.

Apparently the issue was fixed in the OSR and IDEKO production environments. However, it is still present in the staging environment (<IP_ADDRESS>).

I have found out another parsing issue. Here's the information to recreate the bug.
Request:
{ 	"requirement": { 		"id": "purposeControl_research", 		"description": "PurposeControl research", 		"type": "PurposeControl", 		"properties": { 			"availablePurpose": { 				"unit": "list", 				"value": ["research", "medical research", "nutritional research"] 			}, 			"allowedGuarantor": { 				"unit": "list", 				"value": ["d63d0e21fdc05f618d55ef306c54af82"] 			} 		} 	}, 	"blueprintAttributes": [{ 		"id": "purposeControl_research", 		"description": "PurposeControl research", 		"type": "PurposeControl", 		"properties": { 			"availablePurpose": { 				"unit": "list", 				"value": ["research", "medical research", "nutritional research"] 			}, 			"allowedGuarantor": { 				"unit": "list", 				"value": ["d63d0e21fdc05f618d55ef306c54af82"] 			} 		} 	}] }
Response:
{     "timestamp": "2019-08-09T14:45:14.266+0000",     "status": 400,     "error": "Bad Request",     "message": "JSON parse error: Cannot deserialize instance of java.util.HashMapout of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance ofjava.util.HashMap out of START_ARRAY token\n at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: de.tub.privacySecurityEvaluator.model.Request[\"requirement\"]->de.tub.privacySecurityEvaluator.util.FakeGraph[\"value\"])",     "path": "/v1/filter" }


can't catch error

Given this code
try {
  await $`exit 1`
} catch (error) {
  console.log('foo')
}

Output
It doesn't catch the error
error: Command failed with exit code 1
  at getError (zurk/target/esm/zurk.mjs:68:27)
  at callback (zurk/target/esm/zurk.mjs:22:40)

Expected
It catches the error
foo

@gutenye,
Thanks for the highlighting. Fixed in v0.6.3


Use Organization Build Release Github Action

Questions
Answers

Description?
Use Organization Build Release Github Action

Type?
improvement

BC breaks?
no

Deprecations?
no

Fixed ticket?

How to test?
CI should be green

@atomiix may I ask you for write access to this repository? :D

It should be ok @kpodemski !

Thanks @atomiix ❤


Add ability to control if filtered properties should be removed or redacted.

In version 1.89.0 the way how filtered properties are handled changed: https://github.com/epsagon/epsagon-node/pull/375
it now masks the filtered keys instead of suppressing them. It would be good, if we could have an option to remove the keys completely.
a least it should be possible to have an option to disable redacting and removing the ignored keys.
even better would be to have the possibility to define the individual keys that should remain but redacted.

:tada: This issue has been resolved in version 1.101.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Bug: Load environment editor infinitely creates obects

Here is the video -- earlier I created a scenario and saved it. And when I load it after saving -- it creates new objects right where existed objects already are.
https://user-images.githubusercontent.com/18642264/115680179-01f3b680-a35c-11eb-9aac-da6165b06327.mp4
The only way to reset state of the scene is to exit to Main menu.

Fixed in current development version.
/close


Allow suppression of cfn_nag rules in manifest.yaml

It should be possible to suppress cfn_nag rules on a per-resource basis for stack-set deployments.
I am trying to add the CDK bootstrap to accounts within my organisation. I retrieve the bootstrap template from the AWS CLI via cdk bootstrap --show-template and save this as a file in my repo. This is then linked as a stack_set resource in my manifest.yaml.
Attempting to deploy this as-is causes the deployment to fail as cfn_nag raises issues. It fails against rules F19 and F76.
To get around this issue I have to edit the template to adding rules_to_suppress where appropriate. As this is a third-party template, generated from an official AWS tool no-less, I really don't want to have to edit the template to get around this issue.

Hey Will, thanks for reaching out. We're actually considering removing cfn-nag outright from this step, with the thinking that it's not really the appropriate place to check for that. If we go that route, would that work for your use case?

@adam-daily 100% yes.
If not completely removed perhaps even a flag that can be set in the manifest.yaml? The flag could be a global opt-out or even an opt-out per-resource.
I think it's reasonable for CfCT to be less-opinionated on this. Leave it the responsibility of consumers of CfCT to provide valid templates.

There should be an early build step so the pipeline fails as fast as possible when there is a problem.

cfn_nag
cfn-lint (overlaps with cfn_nag but not the same)
aws cloudformation validate-template

I guess different orgs might have different requirements, so levering something like pre-commit could allow .pre-commit.yaml to be owned by the owning enterprise.

Just get rid of it completely. The present solution is over-engineered.

Any update on removing cfn-nag?

Yes, please. This issue alone bars the use of this tool.

@adam-daily Can we get an update on this? Our team finds cfn_nag extremely annoying to deal with as it often results in a lot of trial and error when doing deployments which are already slow enough with CfCT.
There should be simple way to opt out of using it (or just remove it from the project entirely). Linting should not be a concern of this project.

cfn_nag appears to be abandoned by its authors. There are multiple issues with it that prevent CfCT from deploying stacks using common CloudFormation constructs (Fn::ForEach, etc.) that show no sign of being resolved. Could it be removed entirely from CfCT?


fix(version): update ngx-widgets to 2.4.6

With this PR -

fix(markdown): Ensure fieldEmpty get correct value on chrome and firefox https://github.com/fabric8-ui/ngx-widgets/pull/153

[test]

@fabric8cd Your image is available in the registry. Run docker pull quay.io/openshiftio/fabric8-ui-fabric8-planner:SNAPSHOT-PR-2772 && docker run -it -p 5000:8080 quay.io/openshiftio/fabric8-ui-fabric8-planner:SNAPSHOT-PR-2772 and visit http://localhost:5000 to access it.


404 not found/no such file or directory error

hi. I've installed docker-nginx-rtmp and gotten ffmpeg to restream using:
docker run -it -p 1935:1935 -p 8080:80 --rm alfg/nginx-rtmp

ffmpeg -fflags +igndts -hide_banner -i {streamlink} -c copy -f flv rtmp://localhost:1935/stream/teststream

however if i try to access http://localhost:8080/live/teststream.m3u8 i result in a 404 not found error.
in the log from the shell from docker-nginx-rtmp, it says:
 [error] 11#11: *17 open() "/opt/data/hls/teststream.m3u8" failed (2: No such file or directory)

would you know how to resolve this issue? thanks for your help.

Can you look at http://localhost:8080/stat to see if there are streams? It should list one main stream and several hls streams like this

it does have 1 main stream and hls streams for different stream qualities like you said

it does have 1 main stream and hls streams for different stream qualities like you said
is there something that i have to edit?

Do you know how to solve this problem in the end?Thank you


Docs Update: Fixed button styling and content typo

Hi @rtomas, please I want to know why this PR wasn't merged?


Problems with Energy Date Selection

Checklist:

[Yes] I updated to the latest version available
[Yes] I cleared the cache of my browser

Release with the issue:
v1.14.1
Last working release (if known):
n/k
Browser and Operating System:
Tried in both Chrome and Edge with Windows 11
Description of problem:
I am getting errors with the Sankey Chart card when I use Energy Date Selection.
The data all comes from my Solis Inverter. I am feeding in solar generated, battery charge, battery discharge, grid import and grid output figures. I am calculating my Consumption in a template using the following formula:
Consumption = Solar Generation + Grid Import + Battery Discharge – Grid Export – Battery Charge
All the values are in kWh and represent energy used so far today. See below for the code:
Sankey Test.txt
When the energy_date_selection is set to false, everything is ok.  The chart looks correct and the values correspond to the data being feed in:

When I set energy_date_selection to true I have issues.  Most of the values change and the Consumption value is clearly wrong – it exceeds the total output of the inverter.

Javascript errors shown in the web inspector (if applicable):

Additional information:

Does date selection work properly in the HA Energy dashboard? I use the same API to get data by date range. It is basically {value at end of day} - {value at beginning of the day}

This should be fixed in v1.16.1 . Please reopen if it is not

Updated to v1.16.1 today and unfortunately I have to inform you that the error is still not fixed.  Please Re-open.

I can confirm that the date selection does work on the HA Energy dashboard and it shows Home consumption to be 8.3kWh.

@Waggers58 This looks like an issue with your template sensor. Try setting adding state_class: total to it


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 70 ms

Resolved: ClamAV performance has improved in 2abc69e.


Eliminate step of changing file properties.

When files are downloaded as zip or tar they preserve their file properties when extracted. So if you distribute it compressed you don't need the users to change the file properties.

Thanks a lot for the idea. One issue though, it requires me to ship the sh file with correct permissions and it also assumes that the user would download the file from the specific given link. For these reasons, I think having universally compatible instructions would be better.
But really, thanks for the idea. I think I'm actually going to change the instructions and add a single command that the users can copy paste and execute the script in real time :D

Like this?
wget -q -O- "https://github.com/Lrss/gameready/archive/refs/tags/Test.tar.gz" | tar -xz -C /tmp && /tmp/gameready-Test/gameready.sh

Like this?
wget -q -O- "https://github.com/Lrss/gameready/archive/refs/tags/Test.tar.gz" | tar -xz -C /tmp && /tmp/gameready-Test/gameready.sh

Yes :) but we can fetch the script directly with wget though.
wget $url -O - | sh

Good point. Now that it is a script you expect users to use with elevated privileges, there probably should be some sort of test of its checksum to avoid MITM attacks.

Good point. Now that it is a script you expect users to use with elevated privileges, there probably should be some sort of test of its checksum to avoid MITM attacks.

Wouldn't checksum be a bit overkill for the project scope though? Since we'll be fetching the script directly from github raw link and we aren't assuming compromised devices running the script.


Remove Twitter meta tags

makes the image not too big on other platforms (discord, teams)

Why not have Twitter meta tags?

Because open graph is fine. It causes an annoying image thumbnail preview in Discord and other platforms because twitter has a large banner icon size. it should scale somewhat fine either way.


add markers to chart

is there any way we can add markers to the charts like this pic from yahoo finance?

Is there any way to do this in the current version?
thanks!


Data connector m365 defender vulnerability management

Required items, please complete
Change(s):

Added data connector to ingest M365 Defender Vulnerability Management and NIST Vulnerability Management data.

Reason for Change(s):

Connector does not currently exist.

Version Updated:

N/A

Testing Completed:

Yes

Checked that the validations are passing and have addressed any issues that are present:

Yes

@microsoft-github-policy-service agree

We are still working on this, thanks!

We are looking into this, thanks!

We are working on this, thanks!

Hi, we are looking into this, thanks!

Hi we are working on the testing of the connectors, will update shortly, thanks!

Hi @anders-alex could you please add screenshots demonstrating successful working of connector, thanks!

Hi @anders-alex we are waiting for your update on this, thanks!

Hi @anders-alex we are waiting for you to add screenshots related to this, thanks!

Hi @anders-alex, please act on @v-vdixit's comments. Thanks

Thanks for updates @anders-alex we are checking on this will provide you update by end of this week, thanks!

Hi @anders-alex the function app changes look fine, we are checking on the python code updates, will update you on this till tuesday, July 18th 2023, thanks!


baseURL domain gets swaped to http://localhost:3000 always

Environment

Operating System: Windows_NT
Node Version:     v20.12.2
Nuxt Version:     3.12.4
CLI Version:      3.12.0
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      compatibilityDate, modules, build, auth, routeRules
Runtime Modules:  ../src/module.ts
Build Modules:    -

Reproduction
Run the [How to test static Nuxt 3 apps?](https://github.com/sidebase/nuxt-auth?tab=readme-ov-file#how-to-test-static-nuxt-3-apps example to test) section.
Describe the bug
baseURL despite what you set the domain part is replaced with http://localhost:3000
You can set baseURL: "http://example.com/login" and it will become "http://localhost:3000/login"
Additional context
No response
Logs
No response

If the endpoint paths start with / the baseURL is ignored for some reason.
https://github.com/sidebase/nuxt-auth/blob/9852116a7d3f3be56f6fdc1cba8bdff747c4cbb8/src/runtime/utils/url.ts#L13C3-L15C32
Overriding what the user has defined for baseURL is undesirable. The defined baseURL should always be respected.

Hi @Vijayabhaskar96, we are currently finishing up the PR #913 which completely revamps the way Nuxt Auth deals with urls and pathing. Please follow it instead :)


Readme Update

Adding this badges to readme makes it more attractive assign me this issue under GSSOC'23 label

Okay @shraddha761, I am assigning you this issue.


Add OpenAPI schema resolver unit test

This adds a unit test that attempts to resolve the paths of all schemas defined within the generated OpenAPI doc.
This comes out of how little validation Utoipa does to produce a correct schema, which is often missed during PRs and is very easy to break and very hard to notice unless you open every single request on the docs.
The resolver attempts to make it as easy as possible to debug what struct is causing the error, although it's not perfect it should help narrow it down to a specific struct or possibly its parent.
This also adds some other minor changes like making it clearer what the base path is for each request, and ensuring paths start with /

I thought about this too, but this is by far the more maintainable solution only having to ensure one thing is correct (and is backed by compiler errors) rather than relying on individual PRs to ensure that the docs don't break with no compile errors.
For reference, the docs have been broken 3 types due to the schema resolve error, unfortunately it's just very easy to break and very hard to detect during review.

For reference, the docs have been broken 3 types due to the schema resolve error, unfortunately, it's just very easy to break and very hard to detect during the review.

Yes totally agree with that. We will see how it goes with utoipa upgrades.


Implement Group Permission protection using the singular name as the Group Check detection

This PR is to allow only specific Group permission to access tag discussion, by reusing Password logic.

Within Tag edit modal there is an added protection for the new Group protection checkbox

Sidebar will have new icon for Group Permission tags.

Added new settings options for Tag Passwords extension page.

Give Admin a choice to display unlocked icon next to tag name, for notification that these tags are restricted access.
Give Admin a choice to hide protected tags from sidebar navigation.

Give Admin a choice to display protected tags within the Tags Page, otherwise it be hidden from User

Thank you for submitting the PR.
The current code adds a new field called group to enter the name of the permission group, this is quite difficult to use. It would be better to allow users to select the available permission groups using a dropdown.

@datlechin I've implemented a dropdown selection option, the column now store Group IDs as a example '1,4' is for Admin (ID 1) and Mod (ID 4).
I've dropped the column 'group' to 'protected_group_ids'

Here is an example of removing and adding groups

I've amended the protected group, instead of string use JSON instead.
That way it can be future feature proof, if you really wanted you can add a new feature that each of the protected group with an individual password, but just having group detection is suffice for my use case.

@Yippy can you merge to the main branch?

Not sure how to fix these conflicts, the PR is for datlechin:main

Thanks for merging 😄, I forgot to amend the README to show the new added feature. Seems like a lot of formatting and changes has to be done on your end, thanks again.


Created release script

@cmo-hms I think its possible, I know that eclipse can be run headless to build normal applications so it should be straightforward.


Image Upload Crashes Page Load

I noticed this while writing an update a few days ago and after finishing my article I tried pushing to Vercel and loading from the site. It kept crashing - looks like this:

(this is me reproducing the issue locally to write this issue faster.)
I tested again today uploading this lovely picture of Zak and it still appears to be an issue.

https://ubiquitydao.notion.site/Q4-Plans-August-Update-873b09a0475f4df187e0d4827563ecc4
https://dao.ubq.fi/Q4-Plans-August-Update
P.S.
When I try going to the url of any of these images (e.g. https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b0b41951-e997-481f-bcdb-86bfaadcdf04/e88278c519b68a0a1edba6daa678f596.webp) there's an AWS permissions error not sure if relevant.
P.P.S. Have not tested this extensively but it feels like the last week or so the only time the site refetches the notion content is when I redeploy on Vercel :(

I think my uploads were ultra slow. My colleague asked me to try again and I left my notion and walked away for an hour. I realized that the page loads now!
It would be nice to have a handler for this, where it could detect the missing or blocked image and simply render an icon that represents a broken link etc. instead of crashing the page.

This should be resolved in the latest release.


translate the rest part 2 into Chinese

Hey @fairjm, thank you very much!
I will add you to the list of contributors on the first tutorial page if that's ok with you.

It's live. If you want a different name or different link in the contributions box you can also send me a pull request for that.


Provide overview of current implementations

Provide overview of current implementations
Relates to deislabs/smi-spec#111

That would be Istio & Consul Connect as integrations then I presume or what are you suggesting?
I'm still learning how they work with SMI which is not trivial atm, hence why I'm listing them.

@tomkerkhove as well as Linkerd and Maesh.

I'll change it to this then:
## Ecosystem

### Implementations

* **Flagger:** progressive delivery operator (flagger.app)
* **Rio:** application deployment engine (rio.io)
* **Service Mesh Hub:** unified dashboard (solo.io/products/service-mesh-hub)
* **SuperGloo:** mesh orchestration (supergloo.solo.io)

### Integrations

* **Maesh:** simpler service mesh (mae.sh)
* **Linkerd:** [CNCF] ultralight service mesh (linkerd.io)
* **Istio*:** connect, secure, control, observe (deislabs/smi-adapter-istio)
* **Consul Connect*:** service segmentation (consul.io/docs/connect)

@lachie83 mind taking a peek?

@grampelberg Shall I do the same for	https://github.com/deislabs/smi-spec.io/pull/7?

@tomkerkhove apparently I don't have notifications setup on that repo. Looking now!

Looks like you kept the summary descriptions from the deck we prepared for the CNCF proposal. If we want super-short descriptions here, cool, but there's no specific reason I worded things like that except to make it fit on a single slide. :)

Well it's just a suggestion as it would be good to have it documented at least but will try to improve it.
Suggestions are always welcome.

will try to improve it.

Oh, I didn't mean it's bad. I think it's fine! I just want to make sure you feel free to elaborate on stuff if you want, since it doesn't need to be short enough for a slide anymore.

I'm happy with anything, frankly 😅
I think it's ok for now if you ask me, it gives an overview with pointer to more details if they wish to learn more.

Oh hey, @tomkerkhove - we moved to a DCO! So your commits need to be signed. Can you please do so? (In this PR or another one - up to you.)

See https://github.com/servicemeshinterface/smi-spec/blob/master/CONTRIBUTING.md#sign-your-work for details.

Should be fixed now @bridgetkromhout - Sorry about that!


New version: SomePythonThings.WingetUIStore.Pre-release version 3.1.0

Pull request has been created with komac v2.2.1 :rocket:
Microsoft Reviewers: Open in CodeFlow

Don't know if we should change the package identifier since it is now becoming unigetUI instead of wingetUI

On my system it installs correctly when run in sandbox

Automatic Validation ended with:

Installation failed with exit code 1

(Automated response - build 881.)

Is it installing correctly or no?

Yes, this application installs and launches correctly in a Windows 10 VM:

Despite this, the package manager still returned an exit code of 1.
Should 1 be added as an InstallerSuccessCode or similar?

Previous versions did not have this but we can try and add it and see what happens.

Automatic Validation ended with:

Installation failed with exit code 1

(Automated response - build 881.)

Hi @vikingnope,

This PR's version number 3.1.0-alpha0 has 3 parameters (sets of numbers between dots - major, minor, etc), which is less than the current manifest's version <IP_ADDRESS>, which has 4 parameters.

Does this PR's version number exactly match the version reported in the Apps & features Settings page? (Feel free to attach a screenshot.)
(Automated response - build 881)

Hi @vikingnope,
This manifest adds Apps and Features entries that aren't present in previous PR versions. These entries should be added to the previous versions, or removed from this version.
(Automated response - build 881.)


[CLI] wandb.init() hanging in the multiprocessing.Process()

Description
wandb.init() hanging in the multiprocessing.Process() while the sweep
Wandb features

wandb Cross-Validation example
simpletransformers integration
wandb.init()

How to reproduce

There is the notebook.
Run all cells, but don't forget to restart the env after simpletransformers installation
You will see that nothing happens after sweep initialization

Environment

OS: Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
Environment: Google Colab
Python Version: 3.7.10

I am trying to make Cross-Validation based on wandb Cross-Validation example for simpletransformers hyperparameter tuning using Colab.
But there is a hanging problem at the moment of calling
run = wandb.init(
        group=worker_data.sweep_id,
        job_type=worker_data.sweep_run_name,
        name=run_name,
        config=config,
    )

in the train() function, which is in the multiprocessing.Process()  according to the official example.
Docs says something about it

Hanging at the beginning of training
If launching the wandb process hangs, it could be because the wandb multiprocessing is interfering with the multiprocessing from distributed training. Try setting the WANDB_START_METHOD environment variable to "thread" to use multithreading instead.

but either it doesn't help or I doing something wrong by adding settings=wandb.Settings(start_method="thread") to the code above and to the wandb.init() in main().
I tried to run wandb CV example and it finished without any problems.
Also I tried to run my script similar to official example (using .yaml file with my parameters and .py with scrip) and it looked like script passing everything from wandb.init() to end in train() function.
I also found #1771 seems similar to this problem.

Hey @AntivistRock
Thanks for the ticket!
We will track it internally. The colab notebook will help a lot in the process 😄

@JohnnyC08, I found the solution for KFold problem. It is not 100% great, but it is good according to the documentation. In fact CV example requres to start sweeps by these commands:

wandb sweep sweep-cross-validation.yaml
wandb agent SWEEP_ID

So, you need to make your oun .yaml file with your hyperparameters and name of your .py script with sweep code (it is easy enough, there is the example), then add script and .yaml file to Colab, run the first command in command prompt. The output will be the sweep_id. Copy and paste it into the second command, run it too and enjoy.
That's worked for me!

I'm having this issue too when trying to a parallelize my folds across two processes. Also, the KFold + sweep script also hangs for me in colab.
So +1 from me! Hope it can be addressed soon!

Hi again, I published a repo with my solution, so you can check and easily reproduce it!

Hey @AntivistRock , we've been working on improving our lib w.r.t handling runs where multiprocessing is involved. This documentation includes how to enable the new distributed training service for experiment tracking. You can find how to enable this service and use it in your script from the documnetation link shared before.
Please let us know if this helps resolving your issue or in case of further queries.

Hi @AntivistRock, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.


Path mapping configuration not respected for .json files

The path configuration works for .js files but not for .json files.
I have the following config:
{
  "paths": {
    "@src/*": ["./src/*"]
  }
}

and the following entry point:
import<EMAIL_ADDRESS>
Running knip reports an issue
Unlisted dependencies (1)
@src/data.json  src/index.js

Before v5.17 I was able to work around the problem by specifying "ignoreDependencies": ["@src"] but that doesn’t work anymore.
If I use import<EMAIL_ADDRESS>or import "./data.json" no issues are reported.
You can find a minimal production on StackBlitz

It's odd that the workaround worked, but why not try @src/data.json instead? you can also try knip-bun.
I'll look into it when I find the time.

It's odd that the workaround worked

I meant "ignoreDependencies": ["@src"] of course, not "src". (Updated in the description)

but why not try @src/data.json instead?

In my actual use case I have a lot of files so I didn’t consider listing them individually. But of course using a regular expression works.

If you can point me to a test which I can modify to trigger the bug I can take a look myself and try to fix it.

Thanks feel free to take a stab at it, appreciate it.

Might end up at this (fallback and old code) here because JSON is not in extensions here so I guess it won't be resolved and the import specifier looks like a package.
Related fixtures and tests have "module-resolution-non-std" in their name.


Username Generator

Hey, I think it'd be cool if either in the theme or Virtualmin there could be a "username" generator. Similar to how there's a setting in Virtualmin Configuration, it would be neat if this feature allowed you to define a "pattern", then generated a random username based on this.
I commonly use usernames like "u1234" where each username starts with "u" and ends with a 4-digit number. I've considered making this a bit better by introducing having a username start with a letter from "a-z" and ending in a 4-digit number...
Right now I have a shell script which I use to interact with the API whereby I generate a random password, and random username which is passed to the API to generate Virtual Servers.
Having the ability to randomly generate a password based on pattern would making doing this in the UI a possibility without having to generate the username somewhere else first.
Thanks for the consideration!

Sure, we could do this.
Alternately, what if the username was generated from the new user's real name?

Well I think that could be an option but I'm a fan of short usernames that can are supported natively by multiple services with truncating for instance.
I believe if there were a "pattern" the generator was based on it'd be more flexible.

Ok .. the tricky part would be defining a format for the admin to enter the username pattern. Maybe something like %1s%4d for your one-letter four-numbers style?

How about a "regex" expression like:
[a-z]{1}[0-9]{4}
This would generate something like:
a1234
b2345
etc...
In my current situation, I'd have written the expression like:
u[0-9]{4}
Which would then generate something like:
u1234
u2345
etc...

Good idea. I could add this.

Kew :-)

@iliarostovtsev send me the pull request if you go ahead with implementing this..

@jcameron Sure, Jamie! 🙂 Will do! 🎄

I have just added a new API substitute_pattern to be able to make various strings generation based on the unsafe pattern received from a user.
I will create a PR tomorrow for adding this on Virtualmin side, as now it's pretty trivial.
In other words, it will be possible for a user to set a pattern like [a-z]{1}-[0-9]{4} and get a random string like u-5302.
The full API description is also added on the commit. For the convenience I will post API description with all features here:

=head2 substitute_pattern(regex-pattern, [&params])

Given regular expression generates a string based on the pattern. Hash reference
with params can be used to control default pattern length, results filtering and
replacement, date/time substitution and manipulate resulted string with callback

This function must be save to be used with patterns defined by a user to generate
strings with desired pattern, like usernames

Examples:

    Generate random MAC address
      - call   : substitute_pattern('[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}');
      - result : d3:18:2d:24:97:a7

    Generate random HEX string with 40 characters
      - call   : substitute_pattern('[a-f0-9]{40}');
      - result : b020475196675a88810321341f2578d32c634049

    Generate a username based on the pattern set by a user
      - call   : substitute_pattern('u-"[\d]{4}"-g[\d]', {'length' => 2, filter => '[^A-Za-z0-9\\-_]'})
      - result : u-6451-g98
      - desc   : even though a user sets a pattern for a username as 'u-"[\d]{4}"-g[\d]', the filter will
                 make sure that double quotes will be removed and a second matching group for a numerical
                 string will be set to length of two digits (default is one)

    Generate a username based on the pattern set by a user, checking if it exists using callback
      - call   : my $callback = sub {
                   my $user = shift;
                   if (user_exists($user)) {
                      return error("Error: User $user already exists!");
                   }
                   return $user;
                 };
                 my $pattern = 'user-[\d]{4}';
                 my $params = {'filter' => '[^A-Za-z0-9\\-_]', 'callback' => $callback};
                 substitute_pattern($pattern, $params);
      - result : user-4263 or error if user exists

    Generate filename substituting datetime template strings
      - call   : my $params = {'filter' => '[^A-Za-z0-9\\-_:]', 'substitute' => 'datetime'};
                 my $pattern = 'file-[\d]{4}--${year}-${month}-${day}_${hours}:${minute}:${seconds}';
                 substitute_pattern($pattern, $params);
      - result : file-7385--2021-12-25_14:00:00
      - desc   : a `filter` param will make sure that in case the pattern is comming from the user all
                 disallowed characters will be discarded, and `substitute` datetime param will make sure
                 that the pattern variables such as `${year}` or `${days}` will be replaced accordingly

=cut

Sweet @iliarostovtsev that's awesome! Happy Holidays!

@jcameron Jamie, check this PR, all works for me after various of tests.
Description is on the PR.

I will create a PR tomorrow for adding this on Virtualmin side, as now it's pretty trivial.

I forgot to mention that I was wrong as adding that PR wasn't trivial at all!


SRVKE-351 increase eventing-webhook memory limit

Fixes https://issues.redhat.com/browse/SRVKE-351, same of https://github.com/openshift-knative/serving-operator/pull/7

cc @matzew

/lgtm


Error message:     Fixed masks must have same direction cosines as fixed images

HI all,
I am using parameter set 0057 to  register different abdominal MRI sequences. In >90% it works very well but every now and then I get the following error message:
RuntimeError: Exception thrown in SimpleITK ElastixImageFilter_Execute: /opt/elastix/SimpleElastix/Code/Elastix/src/sitkElastixImageFilterImpl.cxx:133:
sitk::ERROR: Fixed masks must have same direction cosines as fixed images (fixed image at index 0 has direction cosine [ 1, -5.85574e-11, 1.01614e-05, -5.85574e-11, 1, 1.15255e-05, -1.01614e-05, -1.15255e-05, 1 ], fixed mask at index 0 has direction cosine "[ 1, -5.85574e-11, 1.01614e-05, -5.85574e-11, 1, 1.15255e-05, -1.01614e-05, -1.15255e-05, 1 ]").
All my troubleshooting attempts failed and I would be much appreciative for any insight. I am pasting below link for the volumes (fixed, moving, mask)
https://www.dropbox.com/sh/ch61xyz3tnw98vn/AADCA-Lq47md7eGLxYyVsVk9a?dl=0
Thanks for any help in advance.

The mask's direction cosines probably differ from that of the image on some of last digits. You can call mask.CopyInformation(image) to avoid this error (but might be good to throw error in your own code if the difference is large as this can lead to errors)


Make NewNodeContextMenu more accessible

[x] Automatically select the first search hit.
[ ] Allow moving through the options using the arrow keys.

I think we should completely overhaul the NewNodeContextMenu for this to actually be nice.


E887: Sorry, this command is disabled, the Python's site module could not be loa ded.

Error detected while processing /Users/MasterMac/dotfile/.vim/bundle/vdebug/plugin/vdebug.vim:
line   40:
E887: Sorry, this command is disabled, the Python's site module could not be loaded.
line  111:
E887: Sorry, this command is disabled, the Python's site module could not be loaded.
Press ENTER or type command to continue

Hi, it looks like this is an issue with the Python version that your vim is compiled with. Take a look at this issue. Are you using MacVim, and is it installed through homebrew?
Thanks

Yes, I install vim through homebrew and python version is 2.7.9
在 2015年1月30日 下午10:40:33, Jonathan Cairns<EMAIL_ADDRESS>写到:
Hi, it looks like this is an issue with the Python version that your vim is compiled with. Take a look at this issue. Are you using MacVim, and is it installed through homebrew?
Thanks
—
Reply to this email directly or view it on GitHub.

It work when i reinstall vim.
在 2015年1月30日 下午10:40:33, Jonathan Cairns<EMAIL_ADDRESS>写到:
Hi, it looks like this is an issue with the Python version that your vim is compiled with. Take a look at this issue. Are you using MacVim, and is it installed through homebrew?
Thanks
—
Reply to this email directly or view it on GitHub.

Great :)


Telegram

Proposed changes:

adds a TelegramInput component

Status (please check what you already did):

[x] made PR ready for code review
[ ] added some tests for the functionality
[x] updated the documentation
[x] updated the changelog

What is the reasoning behind this syntax:
input_channel = TelegramInput(
  access_token="YOUR_ACCESS_TOKEN", # you get this when setting up a bot
  verify="YOUR_BOT_NAME",
  webhook_url="yoursite.com/app/webhook"
)

as opposed to passing a telegram-credentials.yml file? I like the separate credentials, which has an option on the CLI. But if I'm running a python script, how can I maintain using the separate credentials file?

like this https://core.rasa.com/connectors.html#using-run-script

You could load the yaml file with read_yaml_file from rasa_nlu.utils and then get the values you need with .get()

Thank you, that's exactly what I looking for.

Think you meant rasa_core.utils
I ended up with this:
from rasa_core.utils import read_yaml_file

credentials_file = 'telegram_credentials.yml'
credentials = read_yaml_file(credentials_file)
input_channel = TelegramInput(
  access_token=credentials.get("access_token"),
  verify=credentials.get("verify"),
  webhook_url=credentials.get("webhook_url")
)


backport: merge bitcoin#21727, #22371, #21526, #23174, #23785, #23581, #23974, #22932, #24050, #24515 (blockstorage backports)

Additional Information

Dependent on https://github.com/dashpay/dash/pull/6078

Dependent on https://github.com/dashpay/dash/pull/6074

Dependent on https://github.com/dashpay/dash/pull/6083

In bitcoin#24050, BlockMap is given ownership of the CBlockIndex instance contained within the unordered_map. The same has not been done for PrevBlockMap as PrevBlockMap is populated with pprev pointers and doing so seems to break validation logic.

Dash has a specific linter for all Dash-specific code present in Core. The introduction of util/translation.h into validation.h has caused the linter to trigger shadowing warnings due to a conflict between the common use of _ as a placeholder/throwaway name (source) and upstream's usage of it to process translatable strings (source).
Neither C++17 nor C++20 have an official placeholder/throwaway term or annotation for structured bindings (which cannot use [[maybe_unused] or std::ignore) but P2169 is a proposal put forth to make it the official placeholder, in that light, the linter will silence shadowing warnings involving an underscore.

Breaking Changes
None expected
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas (note: N/A)
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation (note: N/A)
[x] I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

Sanitizer tsan crashes like that in CI:
SUMMARY: ThreadSanitizer: heap-use-after-free /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:154:42 in _M_ptr

I guess, this crash happens due to re-creation of g_txindex inside TestChainSetup::mineBlocks
    g_txindex = std::make_unique<TxIndex>(1 << 20, true);
    assert(g_txindex->Start(m_node.chainman->ActiveChainstate()));

    // Allow tx index to catch up with the block index.
    IndexWaitSynced(*g_txindex);

so, g_txindex can be re-created several times, but there are async calls of g_txindex and they can be using g_txindex, when it called to re-create it.
I guess some guard code is needed for it.


Add support for parsing TypeScript

TODOs:

[ ] Change globs / default controller file naming

Closes #9

@marcoroth does this need additional work before it's mergeable? Happy to help wherever needed.

@kierangillblueberry thanks for the offer! I'm actually not quite sure what the status is here, but otherwise feel free to take this one as a base so we can get this merged in!

Closing in favor of https://github.com/marcoroth/stimulus-parser/pull/49


Please create a coverage file, many PRs failed because of this.

Search before asking

[X] I searched in the issues and found nothing similar.

Example failure
https://github.com/apache/pulsar/actions/runs/4507586495/jobs/7968960455?pr=19906
Exception stacktrace

  Codecov report uploader 0.4.0
[2023-03-26T14:20:49.486Z] ['info'] => Project root located at: /home/runner/work/pulsar/pulsar
[2023-03-26T14:20:49.490Z] ['info'] -> No token specified or token is empty
[2023-03-26T14:20:49.490Z] ['verbose'] Start of network processing...
[2023-03-26T14:20:49.491Z] ['verbose'] Searching for files in /home/runner/work/pulsar/pulsar
[2023-03-26T14:20:49.503Z] ['verbose'] coveragepy is not installed
[2023-03-26T14:20:49.503Z] ['info'] Searching for coverage files...
[2023-03-26T14:20:49.976Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-03-26T14:20:49.977Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
**[2023-03-26T14:20:49.977Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`**
[2023-03-26T14:20:49.978Z] ['verbose'] The error stack is: Error: No coverage files located, please try use `-f`, or change the project root with `-R`
    at main (/snapshot/repo/dist/src/index.js)
[2023-03-26T14:20:49.978Z] ['verbose'] End of uploader: 501 milliseconds
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Cross refer to https://lists.apache.org/thread/4kjp5bdct282z6o11jvjvlxkjgmcc4ms

Upstream issue - https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
@lhotari @BewareMyPower @yaalsn shall we remove/disable the codecov step for now?

My personal answer is to remove it.

It seems that we don't create the coverage file. It may be a workflow bug.

Could we use continue-on-error for the flaky test?

@yaalsn I guess the following steps in the current workflow is already run always:
https://github.com/apache/pulsar/blob/d14e43ed9bd079b76301f10dc1c039cafd43e1cf/.github/workflows/pulsar-ci-flaky.yaml#L168-L196

It seems that we don't create the coverage file. It may be a workflow bug.

@tisonkun that's right. there seems to be an issue in that.

@tisonkun I'm currently experimenting a solution which would be more reliable in dumping the Jacoco coverage data to files, WIP commit https://github.com/lhotari/pulsar/pull/144/commits/5bd1b74a90bcc6e9d294328ad74e068133319380 . I debugged the problem and the Jacoco execution files were empty. One possible reason for that is that another shutdown hook blocks the shutdown sequence. I've worked around that possible problem by using the JMX API for dumping the Jacoco exec data in a TestNG listener.

I created #19947 with a fix for this issue.


README Instructions dont work

the sql dump area is outdated. but even when correcting it, it just errors

supabase doesnt allow alot of the permissions that are the thing failing during it:

Yeah, something is broken with this process. I have tried just about everything. Are there any others who were able resolve this? Not just auth issues but also duplicate primary key errors.


devshell: add protobuf, requirement to make all tests pass

Currently doing nix develop then cargo nextest run fails because one test needs protoc in PATH.

Blocked on https://github.com/helsing-ai/buffrs/pull/233


Remove del mv[(1,)]

This isn't what the del operator is for, and is more clear as mv[(1,)] = 0 anyway.
del is used to remove an entry from a sequence -but this is neither a sequence, nor is setting to 0 the same as removing.
None of our docs or examples appear to use this.

If we're worried about this breaking someone, we could deprecate it instead - but I'd be surprised if anyone uses this.

Let's put this in, @hugohadfield is on board. I'll make sure to include this in the release notes.


Can't call activate() from within onEntityAdded.

Found this problem while wanting to remove a component of an entity, when that entity was added to a new system.
Here's my understanding of the problem:
a. |onEntityAdded| is called while iterating over |m_entityCache.activated|.
b. Calling activate() leads to adding an entry to |m_entityCache.activated|.
Unfortunately, iterating on a vector that you modify doesn't work.
Possible fix:
Copy (or swap pointers/std::move) all the arrays over which you iterate at the beginning of World::refresh(), clear them, and only then iterate over them:
void World::refresh() {
  auto copyActivated = m_entityCache.activated;
  auto copyDeactivated = m_entityCache.deactivated;
  auto copyKilled = m_entityCache.killed;
  m_entityCache.clearTemp();
  for (auto& entity : copyActivated) {

Hm, just commented on #82 mentioning this. I thought having an assert to forbid calling activate from within refresh might do. it'd be simple to add, and if you (like me) still would want to activate entities from onEntityAdded, one would have to implement a temporary storage for those entities in own code. i'd prefer that cause i would want to be in control of when i actually need that overhead, as only a few refresh-calls actually have activates in them (at least for me).


Prevent duplicate PATH entries

Prevents PATH population in the event the pyenv is initialized twice (e.g. once in shell create, a second time in tmux/screen session).

the PATH you modified is one used only from pyenv internally, and will not expose to user's shell. Anyway please open PR to https://github.com/rbenv/rbenv if you want to change common part of rbenv/pyenv.


PLAT-98240: Support to specify the item size of VirtualList

Checklist

[x] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[x] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
There were no default item size for horizontal VirtualList.
Resolution
To support default item sizes for each direction, added vertical and horizontal classes to both JS and native list.
To specify css attributes only for native list, added native class.
Additional Considerations
Moved out vertical and horizontal classes of virtualList.
Links
PLAT-98240
Comments

LGTM


View Results

thanks for your great work!
I want to view the  results after evaluation, where to find the WandB project "llm-driver"?

Hi, thanks for your interest in our work! You need to set your WandB API as an environment variable as mentioned here. And after running the evaluation, you can find the "llm-driver" in under your WandB project.

I have the question and Thanks for your answer!  just try to confirm: so after I run the following command:
export WANDB_API_KEY=12345abcde...
python train.py --mode eval --resume_from_checkpoint models/weights/stage2_with_pretrained/ --data_path data/vqa_train_10k.pkl --val_data_path data/vqa_test_1k.pkl --eval_items caption,action --vqa

then I will see the results (like asserts/main.gif and other results) in my WandB page(online)? Thanks!

Hi, i also have some similar questions about how can i visualize the picture front the ego car and the image in the bev to visualize the trajectory of ego car?

Hi, I have the same question.

嗨，我有同样的问题，感谢您的回答！我已成功运行以下命令：
export WANDB_API_KEY=12345abcde...
python train.py --mode eval --resume_from_checkpoint models/weights/stage2_with_pretrained/ --data_path data/vqa_train_10k.pkl --val_data_path data/vqa_test_1k.pkl --eval_items caption,action --vqa

它显示 local 和 wandb 结果/日志都已成功创建：
Run summary:
wandb:               car_error 0.06162
wandb:       control_error_lat 0.01453
wandb:       control_error_lon 0.06686
wandb:               eval/loss 0.50115
wandb:            eval/runtime 19423.4723
wandb: eval/samples_per_second 0.102
wandb:   eval/steps_per_second 0.013
wandb:               ped_error 0.31515
wandb:             tl_accuracy 0.71487
wandb:             tl_distance 6.70763
wandb:       train/global_step 0
wandb:
wandb: 🚀 View run jolly-lake-1 at: https://wandb.ai/minounou/llm-driver/runs/hsbkmjlk
wandb: Synced 6 W&B file(s), 2 media file(s), 3 artifact file(s) and 0 other file(s)
wandb: Find logs at: ./wandb/run-20240505_211705-hsbkmjlk/logs

您能告诉我如何生成以下类型的输出（视频）吗？谢谢！ https://github.com/wayveai/Driving-with-LLMs/blob/main/assets/main.gif

Hi I have the same question and Thanks for your answer! I have run the following command successfully:
export WANDB_API_KEY=12345abcde...
python train.py --mode eval --resume_from_checkpoint models/weights/stage2_with_pretrained/ --data_path data/vqa_train_10k.pkl --val_data_path data/vqa_test_1k.pkl --eval_items caption,action --vqa

It shows that both local and wandb results/logs are created successfully:
Run summary:
wandb:               car_error 0.06162
wandb:       control_error_lat 0.01453
wandb:       control_error_lon 0.06686
wandb:               eval/loss 0.50115
wandb:            eval/runtime 19423.4723
wandb: eval/samples_per_second 0.102
wandb:   eval/steps_per_second 0.013
wandb:               ped_error 0.31515
wandb:             tl_accuracy 0.71487
wandb:             tl_distance 6.70763
wandb:       train/global_step 0
wandb:
wandb: 🚀 View run jolly-lake-1 at: https://wandb.ai/minounou/llm-driver/runs/hsbkmjlk
wandb: Synced 6 W&B file(s), 2 media file(s), 3 artifact file(s) and 0 other file(s)
wandb: Find logs at: ./wandb/run-20240505_211705-hsbkmjlk/logs

could you let me know how to generate the following kind of output (video)? Thanks! https://github.com/wayveai/Driving-with-LLMs/blob/main/assets/main.gif

Have you already solved this problem?


Run WMAgent validation for 1.4.9. production release candidate

Impact of the new feature
WMAgent
Is your feature request related to a problem? Please describe.
By-monthly task
Describe the solution you'd like
We need to release a new WMAgent stable version in June, so this issue is to keep track of the full validation activity to be carried out in the first weeks of April, once we have a final 1.4.9 tag.
It also includes the creation of WMAgent release notes and the validation check-list twiki.
Describe alternatives you've considered
none
Additional context
none

We did not manage to release a new WMAgent production version 1.4.9, so this issue is no longer relevant.
Next WMAgent release candidate is going to be in the 1.5.1 series, validation to be tracked through this GH issue: https://github.com/dmwm/WMCore/issues/10658
Closing.


Update pod-lifecycle.md

Changed the back-off delay time from (10s, 20s, 40s, …) to (0s, 10s, 20s, 40s, ...) on line 155

Hi @Rohan-Dah Are you able to address the reviews under this PR? Thanks !

/close
due to merge conflict not resolved.
Please reopen and rebase if still interested in this fix.


Add support for Chroma

We currently have an abstract base claseVectorDatabaseProvider which defines the interfaces and behaviors expected of any vector database provider. This includes functions such as save, load, add, update_database, clear, get_ordered_embeddings, contains, discard, get and entry_to_key.
We also have implemented a concrete class JSONVectorDatabase that provides the actual implementation of these interfaces for JSON file-based storage.
Now, we want to add support for a new provider called Chroma.
To do this, we need a new concrete class that extends the VectorDatabaseProvider abstract base class and provides the implementation specific to the Chroma vector database.
Below is an example of how you can implement this. The implementation is simplified and might need adjustments to fit our use case.
Please note that I have assumed T to be a tuple of a document and its metadata and K to be the id of the document.
from typing import Tuple

class ChromaVectorDatabase(VectorDatabaseProvider[Tuple[str, Dict[str, Any]], str]):
    """Concrete class to provide a vector database that uses Chroma."""

    def __init__(self, collection_name: str):
        self.client = chromadb.Client()
        self.collection = self.client.get_or_create_collection(collection_name)

    def save(self):
        # Chroma handles persistence automatically.
        pass

    def load(self):
        # In Chroma, the data loading happens automatically when creating or getting the collection.
        pass

    def add(self, entry: Tuple[str, Dict[str, Any]]):
        document, metadata = entry
        self.collection.add(
            documents=[document],
            metadatas=[metadata],
            ids=[self.entry_to_key(entry)]
        )

    def update_database(self, entry: Tuple[str, Dict[str, Any]]):
        # Chroma might not support updating entries. You may need to delete and re-add.
        self.discard(self.entry_to_key(entry))
        self.add(entry)

    def discard(self, key: str):
        # Assuming Chroma has a delete method
        self.collection.delete(ids=[key])

    def contains(self, key: str) -> bool:
        # Assuming Chroma has a get method which raises an error if the id does not exist
        try:
            self.collection.get(ids=[key])
            return True
        except:
            return False

    def get(self, key: str) -> Tuple[str, Dict[str, Any]]:
        # Assuming Chroma has a get method which returns the document and its metadata
        return self.collection.get(ids=[key])

    def clear(self):
        # Assuming Chroma has a method to delete all entries in a collection
        self.collection.delete_all()

    def get_ordered_embeddings(self) -> List[Tuple[str, Dict[str, Any]]]:
        # Chroma might not support retrieving all entries ordered by their similarity to a given vector.
        # You will need to adjust this method based on your specific use case and Chroma's capabilities.
        pass

    def entry_to_key(self, entry: Tuple[str, Dict[str, Any]]) -> str:
        # The key is assumed to be the first sentence of the document
        return entry[0].split(".")[0]

I'd recommend reading the documentation or source code of Chroma to find out how to implement the exact behaviors required by your abstract base class. For instance, the get_ordered_embeddings method might not be possible to implement with Chroma's current API. Similarly, it is unclear from the provided information whether Chroma supports updating entries or only adding and deleting them. To fully implement Chroma we will need to work through all of these details and more.

Great idea! We'll be using a local chroma instance I presume?

For now, it should be easy enough to switch out with a cloud provider

First pass here - https://github.com/emrgnt-cmplxty/automata/commit/0aec1ddac41d4ebaf8e022ff946df0c06f939004

Further refined here - https://github.com/emrgnt-cmplxty/automata/pull/148

merging in now.


Added solution to Median of two Sorted Arrays.

the Solution now is compatible with Leetcode.

@piyushsharma220699
I have made the necessary changes
you can merge it.


Preview in browser does not work on sublime text 3,mac

SublimeText  3
OS X 10.11.1
python: 2.7.10
error:
Traceback (most recent call last):
  File "markdown_wrapper in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 35, in registerExtensions
  File "markdown_wrapper in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 93, in build_extension
AttributeError: Failed to initiate extension 'headeranchor': 'module' object has no attribute 'makeExtension'

Traceback (most recent call last):
  File "markdown_wrapper in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 35, in registerExtensions
  File "markdown_wrapper in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 93, in build_extension
AttributeError: Failed to initiate extension 'toc': 'module' object has no attribute 'makeExtension'

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 550, in run_
    return self.run(edit, **args)
  File "MarkdownPreview in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 1172, in run
  File "MarkdownPreview in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 762, in run
  File "MarkdownPreview in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 703, in convert_markdown
  File "MarkdownPreview in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 1099, in parser_specific_convert
  File "markdown in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 365, in convert
  File "markdown.extensions.tasklist in /Users/cy/Library/Application Support/Sublime Text 3/Installed Packages/Markdown Preview.sublime-package", line 62, in run
AttributeError: 'module' object has no attribute 'iterate'

My primary OS is OSX and I am not seeing your issue.  Have you tried restarting?

it worked! XD, thank you


在SYSU数据集上测验mambaBCD-精度不够

IncompatibleKeys(missing_keys=['outnorm0.weight', 'outnorm0.bias', 'outnorm1.weight', 'outnorm1.bias', 'outnorm2.weight', 'outnorm2.bias', 'outnorm3.weight', 'outnorm3.bias'], unexpected_keys=['classifier.norm.weight', 'classifier.norm.bias', 'classifier.head.weight', 'classifier.head.bias'])
Backbone_VSSM load_pretrained

Hi,
Thank you so much for your interest to our work!
I would like to confirm what model you are loading? Is it the vmamba pre-trained model or the already trained MambaBCD weights we provided?
Best,

already trained MambaBCD weights  用的这个vssm_base_0229_ckpt_epoch_237.pth，按照git链接涉及的三个类型下载的，这个是有依赖其他权重吗

python script/infer_MambaBCD.py  --dataset 'LEVIR-CD+'
--model_type 'MambaBCD_Tiny'
--test_dataset_path '<dataset_path>/LEVIR-CD+/test'
--test_data_list_path '<dataset_path>/LEVIR-CD+/test_list.txt'
--cfg '<project_path>/MambaCD/changedetection/configs/vssm1/vssm_tiny_224_0229flex.yaml'
--pretrained_weight_path '<project_path>/MambaCD/pretrained_weight/vssm_tiny_0230_ckpt_epoch_262.pth'
--resume '<saved_model_path>/MambaBCD_Tiny_LEVIRCD+_F1_0.8803.pth'
就是参考这个直接推理的，直接选用论文截图的那几张SYSU数据集都报了上面这个错

看到了，是不是应该用 April 15th, 2024: The retrained weights of MambaBCD-Small on the SYSU (F1 score 83.36%), 有对应的Base的权重吗

Thank you for your question.
Please note that BCD has three datasets and then we have three models. Please select the corresponding correct model according to the datasets. Some of the model weights have not been released yet, the ones currently released are for trial use, and all of them will be released after the paper is accepted.
You can load it with the MambaBCD-Small model, which, according to our experimental results, is not too far from Base in terms of accuracy, but is less computationally intensive.
Best,

好的，十分感谢，是下载这个MambaBCD_Small_SYSU_F1_0.8336.pth吧
我这边试了下出现这个问题
Failed loading checkpoint form /root/pingcc/MambaCD/pretrained_weight/MambaBCD_Small_SYSU_F1_0.8336.pth: 'model'
Backbone_VSSM load_pretrained
Racall rate is 0.8584826762246117, Precision rate is 0.24971763193105007, OA is 0.3050079345703125, F1 score is 0.3868944258234732, IoU is 0.23984445408725258, Kappa coefficient i

自己调用方式：
--model_type MambaBCD_Small
-pretrained_weight_path  MambaBCD_Small_SYSU_F1_0.8336.pth
--cfg changedetection/configs/vssm1/vssm_small_224.yaml
--dataset',default=' SYSU'
麻烦看下这种调用有问题么

Please utilize the --resume to load our weight. --pretrained_weight_path is used for load the pretrained weight of VMamba.

好的，已复现，精度也很高，真的很感谢

若在自己数据集上做验证，需要做特殊的图像预处理吗 来保证较高的精度，因为刚才拿了两张一样的影像进行验证，还识别出来很大的变化

Hi,
Thank you for your question. Special processing is required. Firstly, it would be better to ensure that the resolution of these data is as consistent as possible. In addition, the changes detected by the model may also vary with the trained dataset. For example, models trained on LEVIR-CD+ can only perform building change detection, while models trained on SYSU are concerned with general land cover changes.
It is also important to pay attention to the values of the remote sensing images. The current three benchmark datasets have pixel values ranging from 0-255. However, many of the high-resolution images have pixel values ranging from more than 255, so you need to perform special normalization. Currently our normalization is based on ImageNet's mean and standard deviation, which only applies to input data with pixel values ranging from 0-255.
Best,

好的，1、分辨率设置为0.5、2、图像进行归一化（像素值控制在0-255）3、只要保证两期输入影像是固定尺寸，会自动进行resize,还是必须要求固定的256尺寸大小呀

Hi,
During the inference phase, our code does not perform a resize operation on the input image. The network performs inference directly on the input image, and whether it needs to be cropped to a smaller image depends on your GPU memory.

可以正常推理，基于两期相同影像识别出变化区域是不是不太合理呀，有什么优化的方法么

In that case, you can use the appropriate data enhancement methods during training, such as using two identical images as training data.

那输入尺寸分辨率是不在0.5m的识别效果是最好呀，这边真值标注采用的是什么工具呢》如lableMe之类标记真值在生成二值图像吗

Hi,
This is not easy to say. It depends on the distributional differences between the datasets. All the datasets we use are benchmark datasets that have already been produced, so there is no labelling involved.
FYI: We have had some previous unsupervised work involving label labelling, and we used ENVI for labelling.
Best,

您好，基于两期相同输入也检测出变化区域，通过数据增强，增加类似的输入数据作为训练的确是一个方法，但是由于机器设备性能能跟数据集有限不足以作支撑，从原理上来讲是否还有可以规避的方法吗，可能是有哪些原因会导致相同的影像也会检测出变化结果呢

好的，非常感谢。您好，基于两期相同输入也检测出变化区域，通过数据增强，增加类似的输入数据作为训练的确是一个方法，但是由于机器设备性能能跟数据集有限不足以作支撑，从原理上来讲是否还有可以规避的方法吗，可能是有哪些原因会导致相同的影像也会检测出变化结果呢

Thank you very much for your question, and apologies for my late reply. I don't think data augmentation adds too much computation, you can try it by writing your own code. Other than that, it's a matter of making the dataset distribution of the training set match your test data as closely as possible, you can try some UDA methods.

好的，感谢！我会增加一些数据集进行训练查看效果，感觉效果整体来讲还是很理想的。想向您咨询一个问题，这个目前是在linux下配置的， 可在window上配置吗，是因为有依赖库必须是windows版本么？期待您的回复！

Hi,

感觉效果整体来讲还是很理想的
Glad to hear that.

想向您咨询一个问题，这个目前是在linux下配置的， 可在window上配置吗，是因为有依赖库必须是windows版本么？期待您的回复！
Thank you for your question. Yes, it is currently only possible to run the code under Linux. For Windows, it is recommended that you go to the VMamba repo to see if there is a solution for this.

Best,

好的，感谢，在本文中主要关注的变化对象都是建筑体吗，在SYSU数据集上是会涉及一些土地覆盖相关数据，想咨询您一个问题，在遥感CD方面有专门基于裸土、地形的变化监测识别吗

Thank you for your question!
ChangeMamba is not limited to building change detection. You are only referring to it because some benchmark datasets are building change detection datasets. ChangeMamba is a generic benchmark for change detection tasks. Note that the SYSU and SECOND datasets are both general land cover change detection datasets.
To your second question, as far as I know there is currently very little attention paid to it in the change detection community.
Best,

好的，我看本文在进行BCD会把两期影像映射为0或1，然后作差来进行判断是否发生变化，是会有一个分数类的输出吗，如果想把条件放松些，待调整的参数有哪些呢？希望尽量多检测出变化区域，多检测一点也没关系

您好，想咨询一下如果想进行微调训练，预训练模型应该加载的是哪个呢？vssm_small_0229_ckpt_epoch_222.pth还是MambaBCD_Small_SYSU_F1_0.8336.pth呢？前者会报这个
_IncompatibleKeys(missing_keys=['outnorm0.weight', 'outnorm0.bias', 'outnorm1.weight', 'outnorm1.bias', 'outnorm2.weight', 'outnorm2.bias', 'outnorm3.weight', 'outnorm3.bias'], unexpected_keys=['classifier.norm.weight', 'classifier.norm.bias', 'classifier.head.weight', 'classifier.head.bias'])，后者报错Failed loading checkpoint form /root/pingcc/MambaCD/pretrained_weight/MambaBCD_Small_SYSU_F1_0.8336.pth: 'model'
【调用方式】
python script/train_MambaBCD.py  --dataset 'SYSU'
--batch_size 16
--crop_size 256
--max_iters 320000
--model_type MambaBCD_Small
--model_param_path '<project_path>/MambaCD/changedetection/saved_models' \
--train_dataset_path '<dataset_path>/SYSU/train'
--train_data_list_path '<dataset_path>/SYSU/train_list.txt'
--test_dataset_path '<dataset_path>/SYSU/test'
--test_data_list_path '<dataset_path>/SYSU/test_list.txt'
--cfg '<project_path>/MambaCD/changedetection/configs/vssm1/vssm_small_224.yaml'
--pretrained_weight_path '<project_path>/MambaCD/pretrained_weight/vssm_small_0229_ckpt_epoch_222.pth'

Hi, please load the latter. Also, please re-download the appropriate pre-trained model, the previous upload ones seem to be incorrect.

Please use --resume to load our model for fine-tuning. If you want to train from scratch and load imagenet pretrained weight for encoder, use --pretrained_weight_path .

我是想下载在SYSU数据集的预训练模型，对应的是MambaBCD_Small_SYSU_F1_0.8336.pth吧。
It depends on the encoder you choose.

好的，谢谢您！想问下如果更倾向于关注变化区域的召回率，从数据预处理，包括编码解码、或者训练策略上来讲可优化的思路有哪些呢？非常期待您的指导

Hi,
I would suggest that you consider some loss function to achieve this. Also, if it's a question unrelated to that repo, I think it would be better to communicate via email :)
Best


PointCloudLayer: use of getPosition with the transitions prop leads to unexpected behavior

Description
In deck.gl 8, attempts to use getPosition within the transitions prop as part of PointCloudLayer initialization leads to points to being positioned incorrectly with incorrect picking info.  This worked fine in deck.gl 7.x.  Example below:
            new PointCloudLayer({
                id: 'elevation',
                data: this.state.spotElevations,
                pickable: true,
                autoHighlight: true,
                getPosition: f => [f.coordinates[0], f.coordinates[1], f.coordinates[2] * (viewState.zoom < 14 ? 14 - viewState.zoom : 0)],
                pointSize: 1,
                getColor: f => {
                    const colorVal = this.state.elevationColor(f.coordinates[2]);
                    const colorObj = color(colorVal);
                    return [colorObj.r, colorObj.g, colorObj.b, 255];
                },
                transitions: {
                   getPosition: {
                      duration: 300
                   }
                },
                updateTriggers: {
                    getPosition: [viewState.zoom]
                },
                onHover: ({object, x, y}) => {
                  this.setState({
                     hoveredObject: object,
                     pointerX: x,
                     pointerY: y
                  })
                }
            })

Correct/Expected Behavior (deck.gl 7.x with getPosition in the transitions prop or deck.gl 8.x without it)

Issue (deck.gl 8.x with getPosition in the transitions prop)

Repro Steps
Add getPosition to the transitions prop of a PointCloudLayer.  This appears to occur regardless of whether or not updateTriggers with getPosition are specified.
Environment (please complete the following information):

Framework Version: deck.gl 8.0.12
Browser Version: Chrome 79.0.3945.130
OS: Mac OS X 10.14.6

Logs
N/A - no notable log entries

Can you try 8.0.13?

Works great!  Thanks for the fix!


Replace Image and Upgrade to Go1.17

The previously used image was making use of a private key from an internal server. This image no longer contains internal security exploits, but contains the same toolset.

UnitTests are failing, complaining that go mod tidy is needed. However I've ran that locally and there's no output.
Will dig in more.


Theme dropdown should be re-placed appropriately

#8229
Safari
In https://microsoft.github.io/monaco-editor/index.html
There are two sections, 1.Editor and 2.Diff Editor
First section has two dropdown - Language and Theme
Language dropdown applies only to Editor where as Theme applies to both sections.
May be we should re-place themes dropdown at a place where it is known to be applied for both sections

Moved to Microsoft/monaco-editor#140
Due to so many issues being opened straight in Microsoft/monaco-editor let's also move this one over there


SAK-46983 LTI rename visible "basiclti" to "lti"

This renames easily changed visible basic lti values to lti
This does not reorganize the source folders or package names

Getting no reviews, I am just going to merge this one.


zsh: ctrl + R not working. shows the zsh history search

[X ] I have read through the manual page (man fzf)
[ ] I have the latest version of fzf
[ ] I have searched through the existing issues

Info

OS

[ X] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ X] zsh
[ ] fish

Problem / Steps to reproduce
I have zsh and after that I have installed fzf
sudo pacman -S fzf

But now when i press CTRL+R its not using fzf search rather used zsh search

I found in the archlinux wiki
added to ~/.zshrc the following line
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh

Excerpt from https://github.com/junegunn/fzf#using-linux-package-managers

:warning: Key bindings (CTRL-T / CTRL-R / ALT-C) and fuzzy auto-completion
may not be enabled by default.
Refer to the package documentation for more information. (e.g. apt-cache show fzf)


Update scala-cli:config to 1.0.4

About this PR
📦 Updates org.virtuslab.scala-cli:config from 0.2.1 to 1.0.4 ⚠
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (0.2.1).
You might want to review and update them manually.
doc/website/package-lock.json
modules/cli/src/test/scala/coursier/cli/FetchTests.scala
modules/coursier/shared/src/test/scala/coursier/complete/CompleteTests.scala
modules/tests/shared/src/test/resources/artifacts/com.splicemachine/splice_spark/<IP_ADDRESS>5-SNAPSHOT
modules/tests/shared/src/test/resources/resolutions/com.lihaoyi/ammonite_2.12.8/latest.stable
modules/tests/shared/src/test/resources/resolutions/sh.almond/scala-kernel_2.12.7/0.2.2_params2f53eeb0a22d24b1e7106dd9a06902e9cd19570f
modules/tests/shared/src/test/resources/resolutions/sh.almond/scala-kernel_2.12.7/0.2.2_params9a5a3f38ae4510fb6a2afe6781f9f6b5410a8b9c
modules/tests/shared/src/test/resources/resolutions/sh.almond/scala-kernel_2.12.7/0.2.2_paramsa3b0313a2f2d39692416c25848f2f16908d6d7f0
modules/tests/shared/src/test/scala/coursier/test/CentralTests.scala
modules/tests/shared/src/test/scala/coursier/util/PrintTests.scala

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.virtuslab.scala-cli", artifactId = "config" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.virtuslab.scala-cli", artifactId = "config" }
}]

labels: library-update, early-semver-major, semver-spec-major, old-version-remains, commit-count:1

Superseded by #2863.


Gzip CSV for Benchmark Cmd Line Results

The current set of CSV files generated for benchmark runs is meant to be readable rather than small.  There is a lot of redundancy, for example, in the metrics CSV the benchmark name is repeated over and over.  This is not an issue when writing the tests and doing test runs, but when it's uploaded to GCloud, it can add up to a lot.  Furthermore, with the increasing usage of query snippets that download data for queries, transfer size can be an impediment.
Rather than turn the Benchmark results into a database with references to keep data smaller, save the CSV files as csv.gzip when doing command line runs.  A new property to turn this on and off may or may not be necessary.  When the test is run in an IDE, don't compress.  When it's run from the command line, compress.

Use Java to compress the files, or just run gzip in the Github workflow?
Compress existing files stored in GCloud bucket?

Can file dates be preserverd?

Update Demo rsync workflow step not to use the -J options for compression

An added bonus is eliminating the annoying gsutils message about how it's more efficient to compress the files in GCloud than to do it on-the-fly for every download

NOTES

read_csv does not handle downloading http(s) files that are compressed

In fact if you specify a local file as "file:///data/file.csv.gz", it won't handle that either
If you specify the local file as "/data/file.csv.gz", it does

On the demo server, reading csv.gz vs csv does not improve demo performance

Wrote a script that uses python asyncio to download GCloud files to a cache.
download.py.txt


bug: Cannot use --border-radius at ionic 4 with android 5.1

First of all, thank you Ionic team for fixing color issue for button in ionic 4 for android 5.1. You have done a great job. However, the border-radius and other property in other element still cannot be run in android 5.1. One of the great example is --border-radius where it is not detect and ignored in android 5.1. Please take note on it and fix it. Thanks

Can you provide a repo with the code required to reproduce this issue?

Example of the code:
<ion-button style="--border-radius: 26px;" expand="block" color="tertiary" >Log Out</ion-button>
This code will produce the desired result in android 7 & above

Screenshot of android 7
However, the same line of code will produce this in android 5.1

Screenshot of android 5.1
Android 5.1 is unable to detect the --border-radius style and it uses the default border-radius.

Both physical device and emulator have this issue.

the screen is blank on Android 5，can help?

the screen is blank on Android 5，can help?

@hanning2014 update your project package(@ionic/angular) to the latest version. Then u won't have blank screen but will have the unable to use --css issue
npm install --save @ionic/angular@latest

@ktlee95 Can you provide a repo with the code required to reproduce this issue?


Little Doubt

Hi,
Just to confirm. The distances are in meters?
Thank you so much!

The units of length are irrelevant.  What goes in, comes out.  Meters, feet, furlong, light years; take your pick.

And the Best Answer of the year award goes to...
Sent from BlueMail
On 23 Jun 2017, 21:04, at 21:04, Scott Wiedemann<EMAIL_ADDRESS>wrote:

The units of length are irrelevant.  What goes in, comes out.  Meters,
feet, furlong, light years; take your pick.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/lemmingapex/trilateration/issues/13#issuecomment-310698195


Template sensor not trigger if entity_id is a group

If we have in a template sensor a group at the entity_id to trigger the template if one of the group members change his state nothing happens. So I have to insert the group members to entity and maintenance the group on different places to trigger the template recalculation.
Thanks, Steffen

Please make sure to fill out the issue template that you deleted it's important. When you do make sure to include the template you are trying to use.


CORE-1981 Export pie chart

changes: patch
Proposed Changes
Please use the Jira Key or NOREF followd by the changes

JIRAKEY-1234

Some change
Another change

Checklist

[ ] I have added or updated unit tests
[ ] I have added or updated integration tests (if appropriate)
[ ] I have added or updated documentation / readme (if appropriate)
[ ] I have verified that my changes have not introduced new lint errors
[ ] I have updated the change log

Testing Instructions

:rocket: PR was released in v1.11.2 :rocket:


Update core-code-style.md

Changed Section 4 from CamelCase to StudlyCase to match the overview and Section 3.

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues
None

👍


Sync eng/common directory with azure-sdk-tools for PR 2203

Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/2203  See eng/common workflow

This failure is not related to this pr. Overriding.

/check-enforcer override


Group API for LinkedIn

Finally got round to implementing the Group API for LinkedIn.  This should be the last piece of the LinkedIn API.

Hey,

GroupSettings. I called it this cause it's used within both GroupSuggestions and GroupMemberships. It details settings for the group regardless of whether the user is a member or not. Perhaps GroupDetails would be a better name? I'll call it anything you like really as I don't have strong views on the name.
PagedList like CursoredList. Looking into this now.
Missing Group fields. I implemented using URL's that LinkedIn specified in their example. I've updated the URL's to include same fields as asking for group by ID. Given the number of group memberships are small there's unlikely to be much of a performance impact. Another one worth considering is LinkedInProfile and LinkedInProfileFull. This is a similar situation. However, LinkedInProfile is used all over the place and it would be complete overkill to have all the fields there null, when LinkedInProfileFull is only really needed when getting Profile by Id. Any thoughts on this?

Robert Drysdale
<EMAIL_ADDRESS>http://www.linkedin.com/in/robdrysdale
+353 87 9584000

From: Craig Walls<EMAIL_ADDRESS>To: Robert Drysdale<EMAIL_ADDRESS>Sent: Tuesday, 17 January 2012, 19:36:18
Subject: Re: [spring-social-linkedin] Group API for LinkedIn (#7)
I've merged this, but upon review I have a couple of thoughts that I'd like to hear your input on:

GroupSettings seems to be an awkward name, as what it does is describe a group membership. Why not call it GroupMembership (singular) that can be obtained from GroupMemberships (plural).
Was also thinking that GroupMemberships could implement Iterable or perhaps extend some existing concrete type of Iterable (ArrayList perhaps) so that you could iterate on it without having to call getMemberships(). Or, since GroupMemberships doesn't add much more than paging details, perhaps come up with a more generic PagedList (somewhat like what I did in Spring Social Twitter with CursoredList) that could be reused for anything that is paged like that.
The Group object you get when fetching a user's memberships only includes the ID and name, but you get more details when asking for a Group by its ID. Was wondering if it'd be good to either (1) ask LinkedIn to give all Group details when asking for memberships so that there won't be so many null fields or (2) change it to return a Reference type that contains only the ID and name; similar to what I do in the Facebook API binding.

Just a few thoughts...I might have more, but these stuck out to me immediately. Curious to hear your thoughts.

Reply to this email directly or view it on GitHub:
https://github.com/SpringSource/spring-social-linkedin/pull/7#issuecomment-3534161


Consistently use the Seconds() method for conversion of durations

This also fixes one remaining case of recording integral numbers
of seconds only for a metric, i.e. this will probably fix #1796.
@brian-brazil @guanglinlv

Generally okay with that. .Seconds() is the more expensive call though as they do more operations for some rounding properties we don't really need:
https://golang.org/src/time/time.go#L589

I daresay it depends on the CPU architecture which call is more expensive. (Back in my days, the floating point division would be scarily expensive compared to the ops in https://golang.org/src/time/time.go#L589 ). In any case, the difference will only be a tiny fraction of the Observe call.

Yea, also easier to read. 👍


PE Dry Run Bug Report fixes.

Bugs fixed:

#171: Id last letter now accepts only capital letters
#164: A valid student ID no longer accepts symbols
#159: First and last character of student ID must be capital letters.
#158: Formatting issues fixed in invalid email display message.

Codecov Report

Merging #204 (627e49c) into master (08fef4f) will increase coverage by 0.18%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #204      +/-   ##
============================================
+ Coverage     75.08%   75.26%   +0.18%
- Complexity      858      862       +4
============================================
  Files           110      110
  Lines          2444     2446       +2
  Branches        310      311       +1
============================================
+ Hits           1835     1841       +6
+ Misses          518      514       -4
  Partials         91       91

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/model/patron/Email.java
83.33% <ø> (ø)

src/main/java/seedu/address/model/patron/Id.java
91.66% <100.00%> (+8.33%)
:arrow_up:

...eedu/address/logic/parser/BorrowCommandParser.java
64.28% <0.00%> (-0.43%)
:arrow_down:

...va/seedu/address/logic/commands/BorrowCommand.java
100.00% <0.00%> (ø)

...u/address/logic/commands/book/EditBookCommand.java
95.45% <0.00%> (ø)

...address/logic/commands/book/DeleteBookCommand.java
100.00% <0.00%> (ø)

...ddress/logic/commands/book/RelatedBookCommand.java
100.00% <0.00%> (ø)

...ddress/logic/commands/book/RequestBookCommand.java
100.00% <0.00%> (ø)

...dress/logic/commands/patron/EditPatronCommand.java
97.14% <0.00%> (ø)

...ess/logic/commands/patron/DeletePatronCommand.java
100.00% <0.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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


Tags don't work as exepectd

Context

hapi-swgger version: 7.6.0

What are you trying to achieve or the steps to reproduce ?
I am trying to group api end-points based on tags.
For example, I have the following endpoints:

URL
METHOD
DESCRIPTION
TAGS

/petstore
POST
create a petstore
petstore

/petsore
GET
List all petstores
petstore

/petstore/{id}
GET
Get detail of a specific petstore
petstore

/petstore/{id}/pet
POST
Add a pet to a petstore
pet

/pet/{id}
GET
Get detail about a specific pet
pet

/petstore/{id}/pet
GET
List all pets in the specified petstore
pet

What result did you get?
The tags always get replaced based the url pattern.

URL
METHOD
DESCRIPTION
TAGS
GROUP

/petstore
POST
create a petstore
petstore
petstore

/petsore
GET
List all petstores
petstore
petstore

/petstore/{id}
GET
Get detail of a specific petstore
petstore
petstore

/petstore/{id}/pet
POST
Add a pet to a petstore
pet
petstore

/pet/{id}
GET
Get detail about a specific pet
pet
pet

/petstore/{id}/pet
GET
List all pets in the specified petstore
pet
petstore

What did you expect ?

URL
METHOD
DESCRIPTION
TAGS
GROUP

/petstore
POST
create a petstore
petstore
petstore

/petsore
GET
List all petstores
petstore
petstore

/petstore/{id}
GET
Get detail of a specific petstore
petstore
petstore

/petstore/{id}/pet
POST
Add a pet to a petstore
pet
pet

/pet/{id}
GET
Get detail about a specific pet
pet
pet

/petstore/{id}/pet
GET
List all pets in the specified petstore
pet
pet

FYI I've created a pull request to group using tags

@richardlay Thanks! Works as expected :+1:


k8s_status fails with Ansible 2.10

With 2.10, we see the behaviour I document in https://github.com/ansible/ansible/issues/70134
Changing the import to
from ansible_collections.community.kubernetes.plugins.module_utils.common import AUTH_ARG_SPEC, COMMON_ARG_SPEC, KubernetesAnsibleModule

fixes it for 2.10 but may well break it for older versions.
Just need to decide on a way forward, depending on the outcome of the ansible issue

I suppose we could always do something like
try:
    # old way
except ImportError:
    # new way

but ideally it will just be fixed

That doesn't work. The import is attempted to be resolved even in a try block

This issue has been fixed in the current master head (https://github.com/operator-framework/operator-sdk-ansible-util/commit/fe1508dbbab72a6b75dbb9722918cd05f3864d9a).  At least I managed to use the current master with Ansible 2.10.5.

This issue has been fixed in the current master head (https://github.com/operator-framework/operator-sdk-ansible-util/commit/fe1508dbbab72a6b75dbb9722918cd05f3864d9a).  At least I managed to use the current master with Ansible 2.10.5.

I am trying to develop an operator with Ansible and faced this problem.
This are the versions I have:
roberto@roberto-Latitude-5580:~$ operator-sdk version
operator-sdk version: "v1.2.0", commit: "215fc50b2d4acc7d92b36828f42d7d1ae212015c", kubernetes version: "v1.18.8", go version: "go1.15.3", GOOS: "linux", GOARCH: "amd64"

roberto@roberto-Latitude-5580:~$ ansible-galaxy collection list -p /home/roberto/.local/lib/python3.8/site-packages
/ansible_collections/  | grep operator
operator_sdk.util 0.1.0

roberto@roberto-Latitude-5580:~$ ansible --version
ansible 2.10.5
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/roberto/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/roberto/.local/lib/python3.9/site-packages/ansible
  executable location = /home/roberto/.local/bin/ansible
  python version = 3.9.0+ (default, Oct 20 2020, 08:43:38) [GCC 9.3.0]

What do I have to update to have it fixed?
Thanks.
Roberto.

I installed the module from git with this command : ansible-galaxy collection install 'git+https://github.com/operator-framework/operator-sdk-ansible-util.git,fe1508dbbab'
You may have to uninstall the previous version with a rm -rf in the local ansible collection directory (e.g. ~/.ansible/collections/ansible_collections/operator_sdk`.

Ansible 2.10 is no longer supported. While the operator-sdk still pins the ansible version to 2.9 we are planning to update our ansible dependency to the latest version (currently 2.14) in the near future. I am closing this issue in anticipation of the ansible bump.

FWIW 2.10 was never supported. We still support 2.9, and skipped.to 2.11 for preview.
The reason for this was that 2.10 was sort of halfway in form collections.


Why is v0.9.7 on npm when you are still on v0.9.6?

Must have somehow forgot to push the last version to origin.  My mistake.  Its updated now.


feature request : (un)equips armor event cancellation

+++  on player (un)equips armor:
+++   AKA: on player (un)equips , on player (un)equips [helmet/chestplate/leggings/boots]
+++   Triggered: when a player (un)equips armor.
+++   Context: <context.armor> returns the dItem that was (un)equipped.
+++   Context: <context.reason> returns the reason that the armor was (un)equipped. Can be "INVENTORY", "INTERACT", "DISPENSER", or "BREAK".
The idea is to add a "determine cancelled" possibility to this event like in <1.12.2

This was intentionally removed due to it not working and there not being any reasonable way to make it work.


Environments WG 1.2 Feature and Code Mauve Epic

Last reviewed at edit date.
These are features and code mauve wok planned in the Environments workgroup.  Focusing on these items is our priority.  Folks are free to submit work unrelated to these items.  We can consider altering the Epic features over time.
(P0) Code Mauve:

stability testing for multi cluster and mesh expansion
Load balancing with locality (howardjohn)
More automated stability tests for whitebox - stability, performance, etc
Tests for environments WG related documentation

multicluster
mesh expansion: https://github.com/istio/istio/pull/13374

SRE-related documentation

metrics
alerts

selection of applications added to test cases

casandra
consul
kafka
nats
mysql
postgresql
redis

Will be added under modular installer, and be included by the test/stability.
MCP automated stability and install tests

Move the install/upgrade to KIND
Move bookinfo tests to KIND

Evaluate KIND for CNI tests.

Features:

(P?) Distroless images Issue #12122 (P?)
(P0) Decomposed Installation - repository:  https://github.com/istio-ecosystem/istio-installer
(P1) Operator - repository:
(P1) Multicluster Gaps Issue #11731

Would it make sense to open this as an actual Epic? You can do this through the ZenHub UI, through the New Issue button.

@ozevren will do thanks.

closing in favor of an actual epic :) https://github.com/istio/istio/issues/13649


Updates all npm packages Apr 2024

Motivation
Keep us up to date with modern software
Changes
Updates all packages to the latest versions and fixes issues from changes
Testing Instructions

Okay fixed and pushed to beta


Change groupId to 'com.vaadin'

All of our products should use com.vaadin as group id to make it easier to remember dependencies.

Agreed


Adding JIRA to bug fix

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit ff192d0b1ed7fc4254a0182ca7feed08e72f32df
https://deploy-preview-9361--docsdocker.netlify.com

@DawnWood-Docker PTAL.


Emit errors processing .yaml files that Xcode can display

I got the following error in the build transcript:
Showing All Messages
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid YAML.", underlyingError: Optional(19:3: error: scanner: while scanning for the next token in line 19, column 3
found character that cannot start any token:
  	post:
  ^)))

It would be great if this were something Xcode could parse and show as an error in the error navigator.

That's a great idea. The CLI, which is used by the plugin, already emits warning and error diagnostics in a format that gets picked up by Xcode's Issue Navigator, but as you report here, that's not the case when the YAML parser throws an error.
The way I understand it, the piece of work here would be to catch this exact error in YAML parsing, extract the location information, and emit a Diagnostic with the right file path and line number, so that it shows up in IDEs correctly.

@czechboy0 I'd love to work on this little bit of functionality.  Can you point me at some other diagnostic code that outputs things in the right format for Xcode?
I've pretty much figured out how to catch the yaml decoding error, but I'm unsure what to do with all the parts of the info I have (file path, line number, column, and the parsing error message).

@macblazer Great, thanks for considering to take it on!
The printing of diagnostics happens in https://github.com/apple/swift-openapi-generator/blob/f530c906215528a7450fc7602b9f93d9236eb4c0/Sources/_OpenAPIGeneratorCore/Diagnostics.swift#L249 when the plugin invoices the CLI.
The text formatting of diagnostics happens in https://github.com/apple/swift-openapi-generator/blob/f530c906215528a7450fc7602b9f93d9236eb4c0/Sources/_OpenAPIGeneratorCore/Diagnostics.swift#L105.
You might need to make some changes to the Diagnostic struct to add location to make it print in the format /file/to/openapi.yaml:1234 error: Failed to parse for this or that reason., which should get picked up by IDEs and other tools and highlight the right place in the yaml file. To see the exact format, put a build error into a random file, try to build, and then inspect the detailed log in the Report Navigator in Xcode to see the build output and how error messages with location are formatted.


Add test for Issue #81

Should fail until #82 is merged.

@dlrobertson would you like this merged before #81 or after?

After is probably better, but it doesn't really matter.


github: fix file issue in readme.md update workflow

Functional, no change present currently in the README.md.


2024-12-11_01-36-07_master-next_python3-botocore

Automatically created.

Successfully created backport PR for kirkstone-next:

#10716

Successfully created backport PR for scarthgap-next:

#10717

Successfully created backport PR for styhead-next:

#10718


Error with oxford_asl --iaf option

Dear Experts,
To practice asl analysis, I downloaded sample data (singlePLDpcASL) from BASIL website and tried to run oxford_asl.
I tried to run the following line as the website showed.
oxford_asl -i asltc -o oxasl --wp --casl --iaf=tc --tis=3.6 --bolus=1.8 --slicedt=0.0452 --spatial --moco -c aslcalib --tr 4.8 --cblip=aslcalib_PA --pedir=y --echospacing=0.06
Then I've got the following error.
Error! Unrecognised option on command line: --iaf
I searched oxford_asl file and checked it if it would have --iaf option. Then I've found it in the file.
My environment is the following.
I downloaded the latest version of oxford_asl (from this website;
https://github.com/ibme-qubic/oxford_asl/files/2302429/oxford_asl-3.9.17-osx.tar.gz) and overwrite it on the old version of oxford_asl.
I also installed wxpython, matplotlib, numpy and nibabel, and checked fslpython (it worked). So I'm wondering if someone would have any idea about this error (--iaf option problem).
Thank you so much for your time.
Best wishes,
Yuko

Hi, apologies for the lack of response, I have not been getting GitHub notifications and a number of issues have been raised here without me realising.
If this issue is still present in current versions of oxford_asl (FSL 6.0.1 or later) then please let me know - otherwise I will close the issue. --iaf should definitely be recognized as an option.

Closing historical issue


Tailwind CSS

Description
I will create a document describing the various features of Tailwind CSS and how to implement those features in detail.
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

Start working @elixir14082002