A pom to be able to publish XSpec as a Maven Artifact

Be careful, version information is in pom.xml, and this should be consistent with current way of creating releases on GitHub site.
To publish a release, you must

be identified with an account on oss.sonatype.org that can publish go io.xspec
have a valid GPG key to sign artifacts
run mvn -P release deploy

@cmarchand : Thanks for this. Few initial comments from me:

It would be good to add some documentation in the wiki on how to publish XSpec as a maven artifact. This could be useful as internal documentation for the next versions.
Regarding the version numbers, you used 0.6-SNAPSHOT in the pom.xml for the current XSpec version genereated from master. Following discussions in #139, it looks like XSpec users favour a switch to v1.x.x for the next XSpec release. It would be good to align the version number in the pom.xml file.
In the developers section, I think there should be your name as you developed this. It's fine to include my name and email but I am a bit concerned about adding Florent and Jeni without their explicit consent (they may not want to have their email listed here). I suggest to remove them for now, we can always include them later after they gave their consent.

Ok, I'm gonna do this.
I don't know if I can make push requests on Wiki...
What will be the next release ?
Best,
Christophe
December 20, 2017 2:05:55 PM CET Sandro Cirulli<EMAIL_ADDRESS>wrote:
@cmarchand : Thanks for this. Few initial comments from me:It would be good to add some documentation in the wiki on how to publish XSpec as a maven artifact. This could be useful as internal documentation for the next versions.Regarding the version numbers, you used 0.6-SNAPSHOT in the pom.xml for the current XSpec version genereated from master. Following discussions in #139, it looks like XSpec users favour a switch to v1.x.x for the next XSpec release. It would be good to align the version number in the pom.xml file.In the developers section, I think there should be your name as you developed this. It's fine to include my name and email but I am a bit concerned about adding Florent and Jeni without their explicit consent (they may not want to have their email listed here). I suggest to remove them for now, we can always include them later after they gave their consent.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xspec/xspec","title":"xspec/xspec","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xspec/xspec"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cirulls in #156: @cmarchand : Thanks for this. Few initial comments from me:\r\n\r\n- It would be good to add some documentation in the wiki on how to publish XSpec as a maven artifact. This could be useful as internal documentation for the next versions. \r\n- Regarding the version numbers, you used 0.6-SNAPSHOT in the pom.xml for the current XSpec version genereated from master. Following discussions in #139, it looks like XSpec users favour a switch to v1.x.x for the next XSpec release. It would be good to align the version number in the pom.xml file.\r\n- In the developers section, I think there should be your name as you developed this. It's fine to include my name and email but I am a bit concerned about adding Florent and Jeni without their explicit consent (they may not want to have their email listed here). I suggest to remove them for now, we can always include them later after they gave their consent. "}],"action":{"name":"View Pull Request","url":"https://github.com/xspec/xspec/pull/156#issuecomment-353058145"}}}

Looking at the feedback in #139, I'm leaning towards v1.0.0 as the next XSpec version number.
Regarding the wiki, unfortunately you can't make pull request on it but if you send me a Markdown or a text file with the documentation I'll add it in the relevant section. Or I can give you write permission on the wiki, as you prefer...

I removed this pull request for the milestone v1.0.0 as we still need to test it and add documentation. Hopefully it will be included in next release.

Documentation has been published here : http://blog.oxiane.com/2018/02/26/deploying-open-source-artifact-to-central-maven/ and here : https://github.com/cmarchand/cp-protocol/wiki/Deploying-Open-Source-artifact-to-Central-Maven.
Password for io.xspec groupId is available from @cirulls and @cmarchand, but won't be published here.
When does this pull-request will be merged ?

@cmarchand: sorry for the wait, unfortunately I've been very busy after XML Prague and couldn't do much work for XSpec. I'll review your pull request by the end of this week, sorry for keep you waiting.

@cmarchand : thanks for this and sorry if it took me ages to review it. I put your documentation on the wiki. I slightly rephrased few sentences, I hope it's fine. Next time we do a release I'd like to try the process myself so that there are at least two people who can deploy to Maven repositories.


fixing parse_requirements to match signature in pip 6.0

This fixes an issue where robobrowser won't install on pip > 6.0. running pip install robobrowser currently returns the below error. The fix is modeled after https://github.com/tweepy/tweepy/issues/533
"parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>

  File "/tmp/pip-build-4xguz2rj/robobrowser/setup.py", line 38, in <module>

    for requirement in parse_requirements('requirements.txt')

  File "/tmp/pip-build-4xguz2rj/robobrowser/setup.py", line 37, in <listcomp>

    str(requirement.req)

  File "/opt/envs/worker/lib/python3.4/site-packages/pip/req/req_file.py", line 19, in parse_requirements

    "parse_requirements() missing 1 required keyword argument: "

TypeError: parse_requirements() missing 1 required keyword argument: 'session'

Thanks for the patch! I wound up fixing this by skipping parse_requirements entirely in 4878ed3c5e7f0337fd056739c95c0a7063e11386.


[zh]Sync /tutorials/security/cluster-level-pss.md

Sync with the en version #36501
content/zh-cn/docs/tutorials/security/cluster-level-pss.md
content/zh-cn/examples/security/kind-with-cluster-level-baseline-pod-security.sh

/lgtm

/approve


You can DoS a client trying to catchup by rapidly alternating between valid, yet different future states

The Ledger-builder-controller currently supports only one async job at a time (will be addressed with #671), we eagerly interrupt async jobs when we receive a new transition that is "stronger" than any current transitions we have locked in locally. This currently excludes in progress ones.

is this one still valid?

It looks like Ledger_catchup isn't interruptible anymore. I'm going to close this, @bkase reopen if it's still valid.


Add "shortcut" to Scripts Menu Definition

Changelog Description
Add the possibility to associate a shorcut for an entry in the script menu definition with the key "shortcut"
Additional info
Example of an entry with a shortcut:

Since Scriptsmenu is a vendorized package I feel like we should be adding this as a PR upstream so we stay in sync? Or have we already deviated to much from https://github.com/Colorbleed/scriptsmenu to begin with?

I just compared what we have and the original repo, and it seems that this PR is the only difference between them, so maybe set this as a PR upstream is a good idea

@BigRoy can we merge? Look ok for me.


Problem forwarding DL to Creepminer

Hello. I have a Problem with forwarding the DL to Creepminer. Jminer send the DL, but they are not confirmed and i not see the sended DL in Creepminer.
Creepminer 1.8.2
Jminer last Release 0.5.2
with an older Jminer version i see the DL in Creepminer
can you help me please….?
I use Jminer Long time and have never a Problem before
Thanks for helping

What jminer version did you use before 0.5.x ? As the latest changes to submitNonce were made in 0.4.12 version, if that did work ... i'm not sure what could cause the issue. Maybe @Creepsky can take a look and provide info what would be needed by creepMiner in https://github.com/de-luxe/burstcoin-jminer/blob/master/src/main/java/burstcoin/jminer/core/network/task/NetworkSubmitPoolNonceTask.java#L124

i have solved the Problem.
is not from Jminer… the Problem is in the last release of creepminer
in creepminer <IP_ADDRESS> was the solution :
"calculateEveryDeadline" : false,
for me was this the solution
now my miner run good. and forwarding go
but before i have the same Problem
but only work with creepminer <IP_ADDRESS>


Excuse me, does the WS tunnel support connection with the server through IPv6 domain name?

Because the ISP network uses the Qos speed limit method for UDP,The network to network tunnel of WireGuardTunnel, which is connected through IPv6 domain names, is very unstable,The ISP network package I use is a NAT4+dynamic IPv6 public network scheme, which can only be connected through the IPv6 domain name，So, does the WS tunnel support both ends to fill in IPv6 domain names for connection?
thankyou

Hello,
There should be no issue if you use -D socks5 option.
for ipv6 domain name.
The -L option, static tunnel, support also ipv6 ip in the command line.

Then, if the network automatically replays and changes the address, can the WStunnel follow the change?

i am not sure to understand what you mean, but you can try by yourself, you will have the best answer


jsonalchemy: function for string merging

Signed-off-by: Mateusz Susik<EMAIL_ADDRESS>

@MSusik considering the latest development on new data model please submit the PR to Invenio or just keep it in your overlay (safer).

Superseeded by https://github.com/inspirehep/inspire-next/pull/230


Split project into multiple microservices

Split the project into multiple microservices, using capnp RPC (either Ezrpc or our own TIPC transport?):

API (public facing API)
DB
RoomMan
RoomServer (public facing room server)

the static library targets will be built statically still (so that we don't need to copy the so to like<PHONE_NUMBER>21830291 servers.), however the binaries will split and their manager duties will be implicitly split now.

Right now the monorepo's probably going to build seperate libraries that one project hosts for the time being (so therefore enlightened monolithic server), then when we're ready to do the gruntwork we can go through with it relatively easily.

Egh, for now giving up on this. I'll probably prefer out-of process VM's, but for now this isn't worth implementing.


Implement to show Cpu ? Gpu Tems

Hello i ws wondering if its possible to implement a way to show ur Cpu and Gpu Temps?
I mean if core temps can grab my cpu temps so could u no ?
Also a feature that whould change the color of all affected keys to a given color on 100 % whould be nice.
or does blinking already do that ?

Do you use the latest version (v0.8.0)? https://github.com/antonpup/Aurora/releases CPU/GPU Temps are already available. For changing color depending on data you should use the override system. https://wibble199.github.io/Aurora-Docs/advanced-topics/overrides-system/

check for updates tells me i have the latest version installed but it`s 7.2 (installed with winget)

Downloading binary this time.


⚠ Jenkins Plugins Artifactory has degraded performance

In adb30e5, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1256 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 19a352e after 12 minutes.


[4.18] Missing internal repos for patched images

Trying to build the patched images for 4.18.0-ec.1 we are hitting an issue due to missing repos intenally:
....
+ version=v4.18.0
++ ./openshift-clients/linux/oc image info -a updated_pullsecret.json quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:648dee2f998d01a91a471c4bf41d29ecdc3cb15b72415d4eb8f08c399510f63f -ojson
++ jq -r .config.config.Labels.release
+ release=202409121712.p0.g49d13e8.assembly.stream.el9
+ brew buildinfo crc-cluster-kube-apiserver-operator-container-v4.18.0-202409121712.p0.g49d13e8.assembly.stream.el9
No such build: crc-cluster-kube-apiserver-operator-container-v4.18.0-202409121712.p0.g49d13e8.assembly.stream.el9

+ rhpkg clone containers/crc-cluster-kube-apiserver-operator
Cloning into 'crc-cluster-kube-apiserver-operator'...
Warning: The remote address 'https://gitlab.com/redhat/rhel/containers/crc-cluster-kube-apiserver-operator' it not available. Skipping.
Warning: The remote address 'https://gitlab.com/redhat/centos-stream/containers/crc-cluster-kube-apiserver-operator' it not available. Skipping.
+ pushd crc-cluster-kube-apiserver-operator
/var/lib/jenkins/workspace/eng-crc-brew-image/crc-cluster-kube-apiserver-operator /var/lib/jenkins/workspace/eng-crc-brew-image
+ git remote add upstream https://pkgs.devel.redhat.com/git/containers/ose-cluster-kube-apiserver-operator
+ git fetch upstream rhaos-4.18-rhel-9 --no-tags
From https://pkgs.devel.redhat.com/git/containers/ose-cluster-kube-apiserver-operator
 * branch              rhaos-4.18-rhel-9 -> FETCH_HEAD
 * [new branch]        rhaos-4.18-rhel-9 -> upstream/rhaos-4.18-rhel-9
+ git checkout --track origin/rhaos-4.18-rhel-9
fatal: 'origin/rhaos-4.18-rhel-9' is not a commit and a branch 'rhaos-4.18-rhel-9' cannot be created from it
Build step 'Execute shell' marked build as failure
Finished: FAILURE

This has been tested with 4.18.0-ec.2 and now repos are internally available.
https://crcqe-jenkins-csb-crc.apps.ocp-c1.prod.psi.redhat.com/job/eng-crc-brew-image/209/console


Deploy v9.1.0 and test

We've done a big refactor, we should make sure it works.
Acceptance Criteria

The new refactor is deployed
It is soak tested on a test puck and works

We think 1 day

Make sure to test collecting rotations in a group

Issues found in testing:

Error with stomp not being found. Fixed by doing pip install stomp.py==8.1.0 then pip install "starlette<0.28.0,>=0.27.0". I think https://github.com/DiamondLightSource/blueapi/pull/424 is a permanent fix
Panda failed to connect to pva://BL03I-EA-PANDA-01PVI. Issue was missing colon in prefix for panda instantiation
Had to add transmission_fraction into the experiment_params in GDA, it wasn't getting it out of ispyb_params - I think this is correct
Issue with sending synch mode over zmq:

  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/src/hyperion/device_setup_plans/read_hardware_for_setup.py", line 35, in read_hardware_for_ispyb_pre_collection
    yield from bps.save()
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/plan_stubs.py", line 87, in save
    return (yield Msg('save'))
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/preprocessors.py", line 251, in msg_mutator
    _s = yield msg
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/preprocessors.py", line 251, in msg_mutator
    _s = yield msg
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/preprocessors.py", line 251, in msg_mutator
    _s = yield msg
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/run_engine.py", line 1607, in _run
    new_response = await coro(msg)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/run_engine.py", line 1988, in _save
    await current_run.save(msg)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/bundlers.py", line 554, in save
    await self.emit(DocumentNames.event, event_doc)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/run_engine.py", line 2572, in emit
    self.emit_sync(name, doc)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/run_engine.py", line 2569, in emit_sync
    self.dispatcher.process(name, doc)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/run_engine.py", line 2592, in process
    exceptions = self.cb_registry.process(name, name.name, doc)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/utils/__init__.py", line 385, in process
    func(*args, **kwargs)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/utils/__init__.py", line 474, in __call__
    return mtd(*args, **kwargs)
  File "/dls_sw/i03/software/bluesky/hyperion_v9.1.0/hyperion/.venv/lib/python3.10/site-packages/bluesky/callbacks/zmq.py", line 91, in __call__
    self._serializer(doc)])
_pickle.PicklingError: Can't pickle <enum 'GeneratedChoices'>: attribute lookup GeneratedChoices on ophyd_async.epics._backend.common failed

When doing yield from bps.rd(synchrotron.synchrotron_mode) we get a GeneratedChoices, rather than the expected SynchrotronMode enum - may be the underlying cause of previous issue too?

Left two branches on I03 GDA:

I03_live_hyperion_9_0_0
I03_live_hyperion_9_1_0

Further testing today:

Need to convert from the synchrotron enum in the ispyb callback
Grid detect callback is specifying the transmission at 0.01 rather than 1


how to process model's response to "YES"/"No"

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

our model is based on internvl2-8b

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

our model is based on internvl2-8b

I checked and confirmed that Intern-VL uses "transformers" architecture. You can use the parameter that returns logits in the model.generate API to get the probability of the first token position on all words. Then you just need to compare the probabilities of the two words "Yes" and "No". You need to get the ids of these two words through the tokenizer.

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

our model is based on internvl2-8b

I checked and confirmed that Intern-VL uses "transformers" architecture. You can use the parameter that returns logits in the model.generate API to get the probability of the first token position on all words. Then you just need to compare the probabilities of the two words "Yes" and "No". You need to get the ids of these two words through the tokenizer.

Thanks. But I have another question, if the prob of "Yes" and "No" is both zero, how to solve this case?

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

our model is based on internvl2-8b

I checked and confirmed that Intern-VL uses "transformers" architecture. You can use the parameter that returns logits in the model.generate API to get the probability of the first token position on all words. Then you just need to compare the probabilities of the two words "Yes" and "No". You need to get the ids of these two words through the tokenizer.

Thanks. But I have another question, if the prob of "Yes" and "No" is both zero, how to solve this case?

Before softmax, this would not happen. The two values would almost certainly be different.

For discriminative task (id >= 1005), the format of responses is: "YES"/"NO"，but model's response is not this format. how to process the data to this format?

The commonly used method is to limit the output vocabulary of the model, for example, compare the logits values of the model output on the words "Yes" and "No" and select the word with a higher probability as the output. For black box models, the output format can be limited by additional prompts (for example, you can only reply "Yes" or "No") or multiple-choice questions.

so we need refactor the query for the discriminative task? I think this will introduce error when comparing with other models. so what is your method to compare with these models?

If you use the method of comparing logits, you do not need to refactor the query. This is how we evaluate open-source models in paper. For black box models, such as GPT-4V, we experimentally found that adding a few queries that restrict output did not significantly impact performance.

Could you please give me a code example on open-source models? so that I can experiment it.

Could you provide me with the model you need to test and the corresponding code repository address?

our model is based on internvl2-8b

I checked and confirmed that Intern-VL uses "transformers" architecture. You can use the parameter that returns logits in the model.generate API to get the probability of the first token position on all words. Then you just need to compare the probabilities of the two words "Yes" and "No". You need to get the ids of these two words through the tokenizer.

Thanks. But I have another question, if the prob of "Yes" and "No" is both zero, how to solve this case?

Before softmax, this would not happen. The two values would almost certainly be different.

Thanks.


Check whether a number is Happy Number or not in Kotlin

🚀 Proposal
Implementing Happy numbers using Kotlin programming language.
Have you read the Contributing Guidelines on Pull Requests?
Yes, I have read the contributing guidelines.
Motivation
I am participating in GSSoC'21, so I want to contribute to this project. Apart from this, I found this repository very knowledgeable, consisting data structures and algorithms of different programming languages.
Pitch
A happy number is a number, if we reach to 1 after replacing the number by the squares of the digits of the number.
I would like to implement Happy numbers using Kotlin programming language, with proper comments.
So, I request you to kindly assign this issue to me.

/assign


Merging latest changes in main to live

Docs Build status updates of commit 08a6262:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Get-AzureADDomain.md
:white_check_mark:Succeeded
View (azureadps-2.0)

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


Using async methods of TlsStream causes ThreadPool starvation

The current implementation of the Tls.Stream async API (BeginRead, ReadAsync, etc) just schedules a task and calls the blocking non-async Read.
This causes most of the thread pool threads to be blocked with a stack similar to this one:
  System.Net.Sockets.il!Interop+Winsock.recv(class System.Net.Sockets.SafeSocketHandle,unsigned int8*,int32,value class System.Net.Sockets.SocketFlags)
  System.Net.Sockets.il!System.Net.Sockets.SocketPal.Receive(class System.Net.Sockets.SafeSocketHandle,value class System.Span`1<unsigned int8>,value class System.Net.Sockets.SocketFlags,int32&)
  System.Net.Sockets.il!System.Net.Sockets.Socket.Receive(unsigned int8[],int32,int32,value class System.Net.Sockets.SocketFlags,value class System.Net.Sockets.SocketError&)
  System.Net.Sockets.il!System.Net.Sockets.NetworkStream.Read(unsigned int8[],int32,int32)
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.RecordStream+Record.FillTo(class System.IO.Stream,int32)
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.RecordStream+Record.ReadHeader(class System.IO.Stream)
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.RecordStream.ReadRecord()
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.TlsProtocol.SafeReadRecord()
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.TlsProtocol.ReadApplicationData(unsigned int8[],int32,int32)
  BouncyCastle.Crypto!Org.BouncyCastle.Tls.TlsStream.Read(unsigned int8[],int32,int32)
  System.Private.CoreLib.il!System.IO.Stream+<>c.<BeginReadInternal>b__38_0(class System.Object)
  System.Private.CoreLib.il!System.Threading.Tasks.Task`1[System.Int32].InnerInvoke()
  System.Private.CoreLib.il!System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(class System.Threading.Thread,class System.Threading.ExecutionContext,class System.Threading.ContextCallback,class System.Object)
  System.Private.CoreLib.il!System.Threading.Tasks.Task.ExecuteWithThreadLocal(class System.Threading.Tasks.Task&,class System.Threading.Thread)
  System.Private.CoreLib.il!System.Threading.ThreadPoolWorkQueue.Dispatch()
  System.Private.CoreLib.il!System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

Is there a way to use the TlsStream in a non-blocking way? As far as I understand, BC would need to add proper implementation of the async apis for the TlsStream, TlsProtocol and RecordStream, which will use the Async APIs of the provided inner stream.

you could write your own Stream implementation on top of TlsClientProtocol.OfferInput and TlsClientProtocol.ReadOutput. I've done this to support an older cipher in my application and it works like a charme.
The code can be found here, but I've only implemented the required methods.


Issues regarding current script

Hello,
I really liked this software but I have a couple of issues that I would love some feedback.
Why the chain builder does not allow a pdb output and why it doesn't have a force field file attributed to it? I was trying to build a polymer with 4300 monomers, just as a test, but the other functions like moleculeBuilder takes years to complete if I assign such a large polymer to be built, and I was not able to form it. Furthermore, the .vasp file is difficult to work for other MD software's, even the .xyz does not seems to work well under a heavy structure, and the transformation to a pdb file is in fact quite complicated with a lot of crashes.
Crystal builder is interesting but a very dense polymer is also difficult to form as there is no way to send the crystalline structure to form a more dense material using the chain builder.
The fact that you have to form a monomeric unit to send to a gromacs like to provide the other repeated unit is not really a world wide ability for all MD simulation software's that I know of.

Thank you for your feedback and interest in our PSP package. To begin with, ChainBuilder can be used to construct infinite polymer models by imposing boundary conditions along the X, Y, and Z directions of the monomer unit, resulting in an infinite polymer chain. So, there are no real bonds between monomer units. These models are appropriate for DFT simulations. CrystalBuilder, like ChainBuilder, is intended to create models for small periodic systems that are suited for DFT simulations.
We are aware that MoleculeBuilder has issues with generating models for big polymers. We even noted it in our paper. We recently updated it to handle large polymers; however, it has not yet been made public.

Thank you for the answer, sorry for my long delay in replying here.


Add sensor - total number of steps.

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
Thank you @YorkshireIoT for adding the sensor blood pressure and pulse.
I have another request - you can add a total number of steps sensor, so that it does not delete once a day.
Based on it, you will be able to create a monthly number of steps, a yearly number of steps.
Describe the solution you'd like
N/A
Describe alternatives you've considered
N/A
Additional context
N/A

Hi @rafkan20 ,
I have something similar on my own install just through creating a new input number helper and then using an automation to add the current steps at 23:55 every day.
Adding this into the integration would lead to more code bloat, more API requests, slower update time and a marginally higher CPU + network usage.
I think on balance this is something better done outside the integration in the way described above.
If you would like a more detailed explanation of how to do this within Home Assistant, let me know


Fix Invalid Input error for get_collection_view()

Fixes #301

loadPageChunk API requires Page ID as an object
limit needs to be <= 100

I also encountered this error; please merge it.

@jamalex This is a critical fix. Can you please merge this change?

@jamalex Please merge this change.

+1

Looks like this should be addressed by https://github.com/jamalex/notion-py/pull/352 which was just merged. Thanks!


Add a How-To section

Would be nice to have an ever-growing how-to section added to the repo.  I'm familiar with jekyll but strugging to, for example, find out how to change the header of the page so I can replace my domain name with an image.
Other examples may include:

How to add your own favicon
How to make your blog width 100%
...

I think as we get more and more questions here, on the forums, and on Twitter, @hamelsmu and I can group the most popular ones into sections of the readme.md and development.md.
Do let us know if you won't be able to figure anything out, we'll try to help you. I think the easiest way though would be through the forum thread.

It is possible that we should host a docs site (will have to be in a seperate repo), only because too many markdown files etc. will become hard to read / search?
Thoughts?

If we rebuild fastpages as in nbdev — we'd have the docs site for free.

If we rebuild fastpages as in nbdev — we'd have the docs site for free.

☝ Unfortunately we would not be able to host it on github pages, because that real estate is already occupied on this repo for https://fastpages.fast.ai/, so we would have to use a different repo
Not sure nbdev is the best way to generate a docs site, when the repo is substantially non-python and is a collection of documents?  Could be adding too much uncessary overhead with no benefit?  I could be wrong

Another solution to a How-To guide that is crowdsourced from the community that I discussed with @jph00 is to invite people to contribute blog posts to this page.  It sounds like a good idea, but I suppose we would have to create some rules, etc. to make the process more transparent and set expectations.
If anyone has any thoughts let me know

I think it's mainly a matter of expectations. For contributions to fast.ai sites, we generally tell people to write stuff to host elsewhere, and then if they'd like it as, say a PR to some fast.ai project, submit it--but we can't promise to accept it in any form, and even if we do accept the idea we might well rewrite it. If we think what you've written is relevant and interesting and appropriate for us to include, then we will try to help you bring it up to a "fast.ai-worthy" level and make it fit with the rest of our pages and tools.
Most people don't follow through, and don't maintain their initial enthusiasm, so this avoids us wasting time on ideas that don't really go anywhere, but does allow tenacious and committed people to get involved.

Another solution to a How-To guide that is crowdsourced from the community that I discussed with @jph00 is to invite people to contribute blog posts to this page. It sounds like a good idea, but I suppose we would have to create some rules, etc. to make the process more transparent and set expectations.

After sitting on this for a day, I believe I was wrong about how good it would be to just port it to nbdev, too excited about the idea. I think you're right that there's a ton of non-python infra that is core to the project.
Crowdsourcing posts on fastpages repo itself and posting them to fastpages.fast.ai is a brilliant idea that I, to my embarasment, haven't thought about. 👏

@ohmeow closing this, but feel free to write something up after you have collected some how-tos or tips.
Also feel free to start a fastai forum thread on how tos if you don't want to be as formal as writing a blog post (but we encourage you to write one if you can)


server: proxy: refactor config loader

Please DO NOT MERGE until #5665 is merged :)

Makes configuration loading process more verbose (prints indicative errors).
Adds missing checks for memory allocations (strdup).

@kubistika looks like this needs a rebase.

@kubistika looks like this needs a rebase.

That's why I wanted to wait until the other PR is merged (did not wanted to merge this one and then rebase the GFX PR and wait for approval again...)


Convert Min Heap to Max Heap

📚 Documentation
C++ Program to convert Min Heap to Max Heap
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


chainer.grad does not support chainerx.ndarrays

chainer.grad does not support backprop with variables with chainerx.ndarrays. A similar backprop function for ChainerX is available through chainerx.grad so we should make sure it is called from chainer.grad.

[x] Call chainerx.grad from chainer.grad
[x] Support input grads initialization on chainerx.grad
[x] Support output grads initialization on chainerx.grad
[x] Support set_grad option on chainerx.grad
[ ] Support retain_grad on chainerx.grad
[ ] Support loss_scale on chainerx.grad?

This is still an issue.

Worked on a PR to start addressing this. Right now its only an adapter between both implementations.
There is the need of discuss how to proceed from now on #7464

We discussed on last chainerx daily that maybe loss_scale should be taken care of on the optimizer?.


feat(timeout): Implement customizable timeout for Azure CLI token ret…

This commit introduces the ability to specify a custom timeout for Azure CLI token retrieval within the kubelogin package. The AzureCLIToken struct now includes a timeout field, allowing users to set a specific timeout duration.

@microsoft-github-policy-service agree [company="AIFI"]

https://github.com/Azure/azure-sdk-for-go/issues/21985
https://github.com/Azure/azure-sdk-for-go/issues/21985#issuecomment-1813444765

Looking forward to it!

@weinong can you run the CI please?
golangci-lint run
pkg/token/federatedIdentity.go:65:15: string `/.default` has 3 occurrences, make it a constant (goconst)
		resource += "/.default"
		            ^
 ```
 Also, am I meant to fix this with a global const?

I believe I also fixed the tests.

I now see the timeout correctly in the convert-kubeconfig sub command, and its no longer wedged into the main kubelogin command.
./kubelogin convert-kubeconfig --timeout

linting is now passing my changes locally as well

I now see the timeout in both of the sub commands, and I am no longer wedging the --timeout into the main kubelogin command.
./kubelogin get-token --timeout 90s
./kubelogin convert-kubeconfig --timeout 90s
however we don't really pass the option to the the convert-kubeconfig subcommand..
convert.go root.go token.go
I'm only expecting to see it as an option in the get-token
./kubelogin  get-token --help | grep timeout
      --timeout duration                     Timeout duration for Azure CLI token requests (default 30s)
./kubelogin  convert-kubeconfig --help | grep timeout
      --timeout duration                     Timeout duration for Azure CLI token requests (default 30s)

do you know what I did wrong?

@Aricg , get-token and convert-kubeconfig share identical flags because convert-kubeconfig adds the flags to get-token command. Can you update the logic in convert.go so that it appends --timeout when that flag is used in convert-kubeconfig?

@Aricg , get-token and convert-kubeconfig share identical flags because convert-kubeconfig adds the flags to get-token command. Can you update the logic in convert.go so that it appends --timeout when that flag is used in convert-kubeconfig?

Hi @weinong convert-kubeconfig uses the network?
I don't think I want to add a timeout to this command.

@Aricg convert-kubeconfig doesn't do network calls. It generally copy the flags into a kubecofig using get-token sub-command. It's fine you don't add it, if you don't find it a problem cracking up the kubeconfig to add the flag. Besides using the --timeout, a better usability may be via environment variable so that you don't need to update kubeconfig all the time.

go test -race -coverprofile=coverage.txt -covermode=atomic ./...
?   	github.com/Azure/kubelogin	[no test files]
?   	github.com/Azure/kubelogin/pkg/cmd	[no test files]
?   	github.com/Azure/kubelogin/pkg/token/mock_token	[no test files]
ok  	github.com/Azure/kubelogin/pkg/converter	1.988s	coverage: 90.0% of statements
ok  	github.com/Azure/kubelogin/pkg/pop	3.279s	coverage: 76.9% of statements
ok  	github.com/Azure/kubelogin/pkg/testutils	1.652s	coverage: 9.2% of statements
ok  	github.com/Azure/kubelogin/pkg/token	34.407s	coverage: 67.6% of statements

:)

Codecov Report
Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (369f19a) 65.02% compared to head (52ca6b1) 64.98%.

Files
Patch %
Lines

pkg/token/options.go
36.36%
5 Missing and 2 partials :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
- Coverage   65.02%   64.98%   -0.05%
==========================================
  Files          23       23
  Lines        1710     1728      +18
==========================================
+ Hits         1112     1123      +11
- Misses        536      541       +5
- Partials       62       64       +2

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


For a 1.4.1 release

#142

Codecov Report

Merging #143 (c80e033) into master (8b11617) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head c80e033 differs from pull request most recent head 62c632f. Consider uploading reports for the commit 62c632f to get more accurate results

@@           Coverage Diff           @@
##           master     #143   +/-   ##
=======================================
  Coverage   88.88%   88.88%
=======================================
  Files           8        8
  Lines         324      324
=======================================
  Hits          288      288
  Misses         36       36

Impacted Files
Coverage Δ

src/metadata_utils.jl
100.00% <100.00%> (ø)

src/model_traits.jl
75.47% <0.00%> (-0.90%)
:arrow_down:

Continue to review full report at Codecov.

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


Jenkins CI: move SITL tests to Melodic container

I don't know of the specific reason why this wasn't done before, but I do think it makes sense at this point.

Seems like pyulog wasn't being installed on the Melodic container. I am bringing that in https://github.com/PX4/containers/pull/205/commits/8fbe53020c38069abab2f708e5d2c77950f051c9

We might want to note this change with @hamishwillee in the docs and depreciate Ubuntu 16 & ROS Kinetic. Thoughts?

... depreciate Ubuntu 16 & ROS Kinetic. Thoughts?

From my perspective I first need a confirmation of what "support" means. I assume something like "We regularly test in CI for this OS/ROS platform combination and will fix bugs for that target"
Then info on what  OS/ROS combinations this is true for :-)

All seems good in CI, so I am bringing this in.


no right feedback by maxChargeCurrentAC value

i have test the in/output from maxChargeCurrentAC via CLI.
is set in App 5A the variable give me = reduced - back
is set in App to 10A or 13A it gives = invalid - back
is set via App to 16A it gives = maximum - back
there an Error or givs VW no more feedback to load?
regards
simon

The new API only knows maximum and reduced you can check in the WeConnect ID App

yes, in the "ID"-APP i see only "maximum and reduced"
thx for your work


Which version to install?

Hello,
Can you pls suggest which version should I install for my old Windows 7 Laptop?
Here is the CPU-Z report - https://valid.x86.fr/lhpq1j
It has -
MMX(+), SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4A, x86-64, AMD-V, AES, AVX

AVX Version

AVX Version

Ok.
Which one should I download? What's the difference?!

Thorium_AVX_109.0.5414.172.zip
Thorium_AVX_mini_installer.exe

The exe suffix is the installation version, and the zip suffix is the portable version.

AVX Version

Ok.
Which one should I download? What's the difference?!

Thorium_AVX_109.0.5414.172.zip
Thorium_AVX_mini_installer.exe

Thanks a lot.
Awesome project, awesome support.


Fix unknown $key

@betterthanclay Discovered by static analysis powered by @phpstan

Good catch, thank you!

Good catch, thank you!

Not a human catch but of phpstan.

You're welcome.


Update TUF and in-toto

Related PR: https://github.com/DataDog/integrations-core-tuf-in-toto/pull/8

Also, would you mind holding off on these PRs for a bit? securesystemslib and in-toto should be updated in the next week or so...

Also, would you mind holding off on these PRs for a bit? securesystemslib and in-toto should be updated in the next week or so...

@lukpueh any news on when we can expect the 1.0.0 in-toto release, please? 🙂

We freeze on Friday night for one week btw

We freeze on Friday night for one week btw

Ok, then let's go with what we got. Could we update securesystemslib to 0.17.0 in both files, please?

@lukpueh any news on when we can expect the 1.0.0 in-toto release, please? 🙂

There's not much missing. in-toto 1.0.0 blocks on securesystemslib 0.18.0, which blocks on https://github.com/secure-systems-lab/securesystemslib/pull/273, where I got some conflicting reviews (see https://github.com/secure-systems-lab/securesystemslib/pull/288#discussion_r513353884). I hope to get some green lights later today, so that I can merge and cut sslib 0.18.0 and in-toto 1.0.0 releases tomorrow.
The good news is, TUF only needs some docs updates to adopt said sslib changes, which I have already prepared: https://github.com/theupdateframework/tuf/pull/1191

The good news is, TUF only needs some docs updates to adopt said sslib changes, which I have already prepared: theupdateframework/tuf#1191

Thanks, Lukas! We will go ahead with this PR, and make another one tomorrow if there are new releases.


Add --max-warnings flag to tsdx lint

Fixes #853
Works in a similar way to the --max-warnings flag in ESLint.
If tsdx lint finds more than --max-warnings number of warnings, it exits with a non-zero code. Otherwise, it exits with 0.

Hey, @agilgur5 !
Thanks for the suggestions (and for being super polite 😃)
I think I've addressed everything. Take another look and let me know if I've missed something or if it can be improved further.

@allcontributors please add @georgevarghese185 for code, docs, test


check if there are file to test

Hi, on current implementation this plugin will cause the task to fail when there is no file to test.
it's possible for someone to create test task like gulp.src('./test/*.js').pipe(mocha()), but without any test file yet.
running mocha executable file without test file will result to exit code 1

well, it fail the test because we no need to fork at all,

Any chance you can fix the tests?

done, i squashed the commit

Coverage remained the same at 100.0% when pulling fff7bd7aeae4ac3f7d50744133ac2b15b0518700 on win-t:master into 5b6f64cbbaaac0f3c129d5cd91b50b15eafb18f9 on knpwrs:master.

Coverage remained the same at 100.0% when pulling a64600a4c8237c4bab6998240dacac59f9c53e67 on win-t:master into 5b6f64cbbaaac0f3c129d5cd91b50b15eafb18f9 on knpwrs:master.

okay, done, but i need to get rid the common test

Coverage remained the same at 100.0% when pulling 99e919dd75644cbfad3769fb0bfa555718bf372b on win-t:master into 5b6f64cbbaaac0f3c129d5cd91b50b15eafb18f9 on knpwrs:master.

Coverage remained the same at 100.0% when pulling f2126e8061232282488ead4e7acfb289886e050e on win-t:master into 5b6f64cbbaaac0f3c129d5cd91b50b15eafb18f9 on knpwrs:master.

hmm, weird, I've made my changes, but the request changes status on Github still active. haha,

Published as 3.2.0 on npm. Thanks!


Add windows support

I'm wondering if there is need to provide a patch for  windows, just as #1 mentioned.

That will be cool, and i may do some patching work if your don't have the time.

Pretty nice! I'm inclined to support only English and Chinese locale languages on Windows , to keep it simple.


Adding License Information

I would like to add license information of minix86dec.
Thanks and best regards,
Ercan

This was a fun little experiment that I threw together in two weeks sometime back in 2008, though it fell into premature optimization hell a bit. Not sure.

I like this project. minix86dec Project is useful for emulators. It can be use by everyone.

Works for me.


Fix win

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 65.067%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3302

Relevant Lines:
5012

💛  - Coveralls


[WIP] Schema Registry / Avro support

This is pretty much just a reorganization of @treziac 's PoC.
I plan to iterate on this tomorrow and provide some comments.
Note: Initially Schema Registry / Avro support will be .NET Framework only (no .NET Core).
It will be distributed as a separate nuget package.
@treziac - I'm v. keen for your name to be against all these lines of code (recognition where it's due!). To reorganise though, I did a new branch off master and copied the relevant files in from your branch. I did amend the commit to have your name as the author but not sure if this is good enough (it shows us both as authors).

Following a discussion with @mageshn, I think we should focus on implementing specific (typed) avro serializers / deserializers first - generic seems like it would be more uncommonly desired and much more uncommonly required. Feedback on that welcome.

Any idea when this is likely to make it into a Confluent.Kafka official release?  I have pulled the code in this PR and it worked well for me with Kafka, Schema Registry and Connect.

I would guess early Q1

closing in favor of #351


wildcard SSL certificate not working aws dynamic subdomain

here is my caddy file on ubuntu OS
Im trying to get subdomain to work with my domain but subdomain doesn't generate ssl certificate
all my certificates are hosted on s3 so i have both s3 storage plugin and dns route 53 plugin

*.mysite, mysite {
tls {
		 dns route53 {
    max_retries 10
    aws_profile "my profile"
    access_key_id "my-profile-access-key"
    secret_access_key "my-profile-secret-key"
    token "my-profile-secret-key"
    region "eu-west-3"
  }
	}
        root * /var/www/mysite/public
        encode zstd gzip
        file_server
         php_fastcgi unix//var/run/php/php8.2-fpm.sock

}

here is my caddy log

Jan 21 22:05:17 ip-172-31-39-194 caddy[249127]: {"level":"info","ts":1674338717.9979832,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"*.testlave.live"}
Jan 21 22:05:18 ip-172-31-39-194 caddy[249127]: {"level":"info","ts":1674338718.422322,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"*.testlave.live","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Jan 21 22:05:18 ip-172-31-39-194 caddy[249127]: {"level":"error","ts":1674338718.7669091,"logger":"http.acme_client","msg":"cleaning up solver","identifier":"*.testlave.live","challenge_type":"dns-01","error":"no memory of presenting a DNS record for \"_acme-challenge.testlave.live\" (usually OK if presenting also failed)"}
Jan 21 22:05:18 ip-172-31-39-194 caddy[249127]: {"level":"error","ts":1674338718.9066675,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"*.testlave.live","issuer":"acme-v02.api.letsencrypt.org-directory","error":"[*.testlave.live] solving challenges: presenting for challenge: adding temporary record for zone \"testlave.live.\": operation error Route 53: ListHostedZonesByName, https response error StatusCode: 403, RequestID: 6563e61e-134a-4fd2-bf70-7607d883a16e, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/84131713/6694827993) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)"}
Jan 21 22:05:20 ip-172-31-39-194 caddy[249127]: {"level":"info","ts":1674338720.8710263,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"*.testlave.live","challenge_type":"dns-01","ca":"https://acme.zerossl.com/v2/DV90"}
Jan 21 22:05:21 ip-172-31-39-194 caddy[249127]: {"level":"error","ts":1674338721.2110147,"logger":"http.acme_client","msg":"cleaning up solver","identifier":"*.testlave.live","challenge_type":"dns-01","error":"no memory of presenting a DNS record for \"_acme-challenge.testlave.live\" (usually OK if presenting also failed)"}
Jan 21 22:05:21 ip-172-31-39-194 caddy[249127]: {"level":"error","ts":1674338721.700836,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"*.testlave.live","issuer":"acme.zerossl.com-v2-DV90","error":"[*.testlave.live] solving challenges: presenting for challenge: adding temporary record for zone \"testlave.live.\": operation error Route 53: ListHostedZonesByName, https response error StatusCode: 403, RequestID: 46ad2d23-adcd-40f0-830e-8da7edda790f, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (order=https://acme.zerossl.com/v2/DV90/order/cM01XC8kmxAyX93orxXaxQ) (ca=https://acme.zerossl.com/v2/DV90)"}
Jan 21 22:05:21 ip-172-31-39-194 caddy[249127]: {"level":"error","ts":1674338721.7011356,"logger":"tls.obtain","msg":"will retry","error":"[*.testlave.live] Obtain: [*.testlave.live] solving challenges: presenting for challenge: adding temporary record for zone \"testlave.live.\": operation error Route 53: ListHostedZonesByName, https response error StatusCode: 403, RequestID: 46ad2d23-adcd-40f0-830e-8da7edda790f, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (order=https://acme.zerossl.com/v2/DV90/order/cM01XC8kmxAyX93orxXaxQ) (ca=https://acme.zerossl.com/v2/DV90)","attempt":4,"retrying_in":300,"elapsed":319.633461226,"max_duration":2592000}

end of log
Please help me . Im assuming the error has to do with token Id value cause i tried using both access & secret key but to no avail’
when i create my iam user,AWS gives me only access key & secret key so dont know what to put at token
If my assumptions are wrong, please correct me in the right direction

i have been able to get it to work. thanks


Add/Update [AKS Disk Encryption Set ID Undefined] query for [Terraform]

Platform
Terraform
Provider
Azure
Description
The Query:
"query_name": "AKS Disk Encryption Set ID Undefined",
"query_id": "b17d8bb8-4c08-4785-867e-cb9e62a622aa",
"query_url": "https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#disk_encryption_set_id",
"severity": "MEDIUM",
"platform": "Terraform",
"cloud_provider": "AZURE",
"category": "Encryption",
"description": "Azure Container Service (AKS) should use Disk Encryption Set ID",

Suggests that I use a Disk Encryption Set when I set up my AKS Cluster. If I attempt to do that in addition to using Ephemeral OS Disks, Azure gives me the following error:

│ Error: creating Managed Cluster (Subscription: "....."
│ Resource Group Name: "my-rg"
│ Resource Name: "my-dev-cluster"): managedclusters.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="EphemeralOSAndBYOKNotSupported" Message="BYOK and Ephemeral OS disk can not be combined in Azure. Disable ephemeral OS disk or disable BYOK."
│
│   with azurerm_kubernetes_cluster.my_dev_cluster,
│   on k8s.tf line 1, in resource "azurerm_kubernetes_cluster" "my_dev_cluster":
│    1: resource "azurerm_kubernetes_cluster" "my_dev_cluster" {

Can I suggest amending this query, so that it does not warn me about disk encryption sets when I am choosing to use Ephemeral OS disks? Is that typically an acceptable security posture?

Hi @Carus11, hope you are doing great!
Thank you so much for reporting this bug.
A fix is already in #6023. Let me know what you think.

It looks good!
Just don't presume I am an expert on best practices for disk encryption, I lean heavily on what kics tells me I should be doing!


Wrong Left Join Projection

Query executed on database is wrong, is selects all data instead of only selected one. Also projection require object even if left join returns null so I have
System.NullReferenceException: Object reference not set to an instance of an object.
Steps to reproduce
I have following models  and queries
    // table map
    [Table("Device")]
    public class Device
    {
        public bool Active { get; set; }
        public string AssetNumber { get; set; }
        public string Comment { get; set; }
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTimeOffset CreatedDate { get; set; }
        public string DeviceInfo { get; set; }
        public string DeviceNumber { get; set; }
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }
        public Guid? UpdatedBy { get; set; }
        public DateTimeOffset UpdatedDate { get; set; }
    }

   // table map
    [Table("DeviceLog")]
    public class DeviceLog
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTimeOffset CreatedDate { get; set; }
        public string DeviceNumber { get; set; }
        public int ErrorCount { get; set; }
        public string FileName { get; set; }
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public long Length { get; set; }
        public string Message { get; set; }
    }

    // projection only
    public class DeviceLogDisplay
    {
        public string AssetNumber { get; set; }
        public DateTimeOffset CreatedDate { get; set; }
        public string DeviceNumber { get; set; }
        public int ErrorCount { get; set; }
        public string FileName { get; set; }
        public int Id { get; set; }
        public long Length { get; set; }
    }

   // then calling fallowing query - there is no record in Device table

    var query = from deviceLog in this.Db.DeviceLogs
                   join device in this.Db.Devices on deviceLog.DeviceNumber equals device.DeviceNumber into ds
                   from device in ds.DefaultIfEmpty()
                   select new DeviceLogDisplay
                   {
                       Id = deviceLog.Id,
                       CreatedDate = deviceLog.CreatedDate,
                       ErrorCount = deviceLog.ErrorCount,
                       FileName = deviceLog.FileName,
                       DeviceNumber = deviceLog.DeviceNumber,
                       AssetNumber = device.AssetNumber,
                       Length = deviceLog.Length
                   };

      var list = query.ToList();

above code will run following SQL Server query:
SELECT [deviceLog].[Id], [deviceLog].[CreatedDate], [deviceLog].[DeviceNumber], [deviceLog].[ErrorCount], [deviceLog].[FileName], [deviceLog].[Length], [deviceLog].[Message], [device].[Id], [device].[Active], [device].[AssetNumber], [device].[Comment], [device].[CreatedDate], [device].[DeviceInfo], [device].[DeviceNumber], [device].[UpdatedBy], [device].[UpdatedDate]
FROM [Logging].[DeviceLog] AS [deviceLog]
LEFT JOIN [Device].[Device] AS [device] ON [deviceLog].[DeviceNumber] = [device].[DeviceNumber]
ORDER BY [deviceLog].[DeviceNumber]

The query itself is already wrong because projection should short cut the selected columns and not display all. Also like mentioned above it throws exception. If I comment line
// AssetNumber = device.AssetNumber,

In query, there is no exception but query is still wrong.
Further technical details
Testes on EFC 1.0.2 and 1.1.1 both have the same issue.

The issue that we project all columns after Left Join is tracked here: https://github.com/aspnet/EntityFramework/issues/6647

For the second part of the problem, try:
                   select new DeviceLogDisplay
                   {
                       Id = deviceLog.Id,
                       CreatedDate = deviceLog.CreatedDate,
                       ErrorCount = deviceLog.ErrorCount,
                       FileName = deviceLog.FileName,
                       DeviceNumber = deviceLog.DeviceNumber,
                       AssetNumber = device != null ? device.AssetNumber : (string)null,
                       Length = deviceLog.Length
                   };

We automatically inject null-ref protection if you use navigations (e.g. deviceLog.Device.AssetNumber), but you need to add them yourself if you manually construct LOJ (via SelectMany-GroupJoin-DefaultIfEmpty call)


When issuing a media_player.media_stop service call on a MASS speaker entity id, even with continue_on_error: true, the call sometimes times out and kills the automation.

What version of Music Assistant has the issue?
2.1.0b1
What version of the Home Assistant Integration have you got installed?
2024.5.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
The below action (used in an automation) sometimes fails despite adding a condition to check if the speaker is available and the continue_on_error also doesn't help -- the exception must be quite low-level and somehow escapes Home Assistant's catch.
Ideally, something should be added to the HA addon that converts a time-out to an exception that can be handled by the HA continue_on_error: true mechanism to make this more robust. As it stands, I can no longer use MASS speakers in my automations for fear of random killing of my automations.
alias: If Speakers in the room are playing, turn them off
if:
  - condition: template
    value_template: >-
      {{ not (states(music_assistant_speaker_entity_id) in ['off', 'unknown',
      'unavailable']) }}
    alias: If Speakers are not [off, unknown, unavailable]
then:
  - alias: Turn off any media playing on speakers.
    continue_on_error: true
    service: media_player.media_stop
    target:
      entity_id: "{{ music_assistant_speaker_entity_id }}"

How to reproduce
The below service call sometimes times out.
It SEEMS to happen when another device is casting (eg a phone is casting) its music to the same speakers.
    service: media_player.media_stop
    target:
      entity_id: MASS_SPEAKER_ENTITY_ID_HERE
    continue_on_error: true

Music Providers
YouTube Music but I think ANY one will repro
Player Providers
Chromecast
Full log output
The ONLY thing in the logs around the problematic event is a single line, that's not super helpful.
There's nothing else.
I'm also going to attach the HA logs in the "Additional Information" box just in case.
2024-05-24 08:11:38.900 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/stop: Execution of stop timed out after 10.0 s.

Additional information
Error executing script. Unexpected error for call_service at pos 1: timed out after 10.0 s.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 736, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/mass/media_player.py", line 298, in async_media_stop
await self.mass.players.player_command_stop(self.player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/players.py", line 53, in player_command_stop
await self.client.send_command("players/cmd/stop", player_id=player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/client.py", line 254, in send_command
return await future
^^^^^^^^^^^^
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 556, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 736, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/mass/media_player.py", line 298, in async_media_stop
await self.mass.players.player_command_stop(self.player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/players.py", line 53, in player_command_stop
await self.client.send_command("players/cmd/stop", player_id=player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/client.py", line 254, in send_command
return await future
^^^^^^^^^^^^
music_assistant.common.models.errors.PlayerCommandFailed: Execution of stop timed out after 10.0 s.
2024-05-24 08:11:39.056 ERROR (MainThread) [homeassistant.components.automation.north_bedroom_perform_actions_when_sleep_mode_changes_2] North Bedroom: Perform Actions When Sleep Mode Changes: Error executing script. Unexpected error for if at pos 2: Execution of stop timed out after 10.0 s.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1049, in _async_if_step
await self._async_run_script(if_data["if_else"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 556, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 736, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/mass/media_player.py", line 298, in async_media_stop
await self.mass.players.player_command_stop(self.player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/players.py", line 53, in player_command_stop
await self.client.send_command("players/cmd/stop", player_id=player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/client.py", line 254, in send_command
return await future
^^^^^^^^^^^^
music_assistant.common.models.errors.PlayerCommandFailed: Execution of stop timed out after 10.0 s.
2024-05-24 08:11:39.097 ERROR (MainThread) [homeassistant.components.automation.north_bedroom_perform_actions_when_sleep_mode_changes_2] While executing automation automation.north_bedroom_perform_actions_when_sleep_mode_changes_2
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/init.py", line 723, in async_trigger
return await self.action_script.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1238, in async_run
await super().async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1049, in _async_if_step
await self._async_run_script(if_data["if_else"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 533, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1043, in _async_if_step
await self._async_run_script(if_data["if_then"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1210, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1731, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 503, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 556, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 501, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 736, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 699, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/mass/media_player.py", line 298, in async_media_stop
await self.mass.players.player_command_stop(self.player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/players.py", line 53, in player_command_stop
await self.client.send_command("players/cmd/stop", player_id=player_id)
File "/usr/local/lib/python3.12/site-packages/music_assistant/client/client.py", line 254, in send_command
return await future
^^^^^^^^^^^^
music_assistant.common.models.errors.PlayerCommandFailed: Execution of stop timed out after 10.0 s.
What version of Home Assistant Core are your running
2024.5.4
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux

Did you try sending a turn off command instead of the stop ?
This is the first report I have seen about this but I do know that cast can be funky sometimes when multiple commands are received at once. Is there a possibility that this script is called multiple times at the same time ?

Support for continue_on_error added to the integration, will be available in the next update (2024.6.2) later today.
Its its always good to make your scripts sane and not send impossible commands to a player, it casuses overhead and errors in your logs. For example sending stop if a player isnt playing is a bit asking for trouble. Yes, the "Continue_on_error" will now hide that for you but me personally would have added a small check to the script only send stop (or power off etc.) if needed.

Please test using HA integration version 2024.6.2 and Server version 2.0.7 as that includes the "continue_on_error" fix.

@ncd7 please confirm if this is still a problem with 2.0.7


Jupyter Notebook drawing lab

Try to make Jupyter Notebook out of less: https://studycs.org/project/view/drawing.   Add this lab to _notebooks in this repository using the name convention as in other files.

Drawing Lab goes here: https://github.com/nighthawkcoders/APCSA/blob/master/_notebooks/2022-06-16-objects.ipynb

Refer to this site for any other helps in getting started: https://nighthawkcoders.github.io/APCSA/


kanban-board-setup

[project link] https://github.com/osbentech/kanban-board-setup
This is the setup structure of our group capstone project.
It is a group of 2,
Debby Miressa and
Benjamin Osegbo Ejike

Hi Team,
Good job so far!
You still need to work on some issues to go to the next project, but you are almost there!
Highlights

good job adding a description

Required Changes ♻

[ ] every card is supposed to be assigned to a student, You should see a circle with the user's avatar on each card. See the example below:

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Hey Mike,
thank you for the issue you raised.
We have assigned tasks to ourselves as you suggested 👍

Hi Team.
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
STATUS: APPROVED 🟢
Congratulations! 🎉
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me @whoistolu in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Reuse instances in runtime worker threads

I think we can replace the todo with an indication that the expectation is for the new_instance() method to reuse instances where appropriate as this happens in wasmtime:
https://github.com/paritytech/substrate/blob/d94bf34cb3305f2876045543771544fa548ed7a0/client/executor/wasmtime/src/runtime.rs#L100


Provider password exposed with verbosity

TASK "f5devcentral.atc_deploy : Setup provider and varables" shows provider password with -vvv

This should be fixable by adding  no_log: True to that task. It would hide all of the output from that task. If seeing the other values would be helpful a separate task could be created just for the provider.
I'm working on something in there so I'll look at adding this.


chore: release main

:robot: I have created a release beep boop
@opentelemetry/auto-instrumentations-node: 0.39.2
Dependencies

The following workspace dependencies were updated

dependencies

@opentelemetry/instrumentation-dns bumped from ^0.32.1 to ^0.32.2
@opentelemetry/instrumentation-fastify bumped from ^0.32.1 to ^0.32.2
@opentelemetry/instrumentation-mongodb bumped from ^0.36.1 to ^0.37.0

instrumentation-dns: 0.32.2
0.32.2 (2023-08-30)
Bug Fixes

instrumentation-dns: use caret range for semver regular dependency (#1654) (d9cd8d7)

instrumentation-fastify: 0.32.2
0.32.2 (2023-08-30)
Bug Fixes

fastify: Make sure consturctor patching works with esm (#1624) (67f66d2)

instrumentation-mongodb: 0.37.0
0.37.0 (2023-08-30)
⚠ BREAKING CHANGES

mongodb: removes the broken exported type V4Connection.

Bug Fixes

mongodb: remove broken type export V4Connection (#1644) (ff29576), closes #1639

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/auto-instrumentations-node-v0.39.2 :sunflower:

:robot: Release is at https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-fastify-v0.32.2 :sunflower:

:robot: Release is at https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/instrumentation-mongodb-v0.37.0 :sunflower:

🎉


CommandBarFlyoutCommandBar fix - respond to size changes

Instead of just reacting to AppBarButton / AppBarToggleButton dependency property changes that might affect the owning CommandBarFlyout size, react to size changes in general to account for CommandBarFlyoutCommandBar visibility changes and OverflowContentRoot size changes.

/azp run


Improve observation blockstack db interactions

Summary
I think that there is an issue there around fetching observations as their number grows that might need addressing, and I've meant to bring it up for a long time.
The way we do it currently we list all files, iterate over that list returning a list of all files whose name includes "observation/", and then fetch each of those files one by one.
Similarly when we create a new observation we do this thing where we have to list and count all of the files in order to determine the name of the next file we create.
I think that we could just have a single 'observation' file which contains a json string array of all the observation objects.  Fetching all the observations would just look like JSON.parse(usersession.getfile('observations')) and adding an observation would just mean adding the new observation to that array and userSession.putFile('observation', JSON.stringify(that new objservations array))
Motivation
Turn these exponential operations into constant time. Really simplify all the blockstack db interactions.
Describe alternatives you've considered

Additional context

Unless there is some constraint that I don't understand re: blockstack/gaia that forces us to do it the way we do it currently.

Nope, you're definitely correct - this has been something that's been needed for a while and has actually been brought up in a couple other conversations. I've pushed back in the past only because we wanted to ensure we had basic functionality working first before optimizing, but this is definitely needed.
From what I've gathered, common practice would be creating a master observations.json file to put into Gaia. This would be the primary object we read in observations from and add objects to.
And as a measure of redundancy, on observation creation, we would create an additional observation/000xxx.json so that in case observations.json somehow was corrupted or lost we could recreate it from original observations.

If you want to take this on it would be a huge optimization a huge optimization - would you be willing to?

Yeah, it would be a lot of work.  I'd be willing but I can't commit to getting started on it right now, busy with job search stuff right now.  So if someone else wants to grab it that's fine, and if nobody does then I'll do it when I have some time.

Sounds good - I'll leave this open for now and if you find time for it just comment again and I'll assign you 👍.
It's good looking out because, yeah, especially when we grow this is something that'll certainly need to change.

The observations file can be kept in the browser's localstore rather than gaia. If lost (or user change device) it can always be generated from the observation files in gaia.

I had actually already brought this up in #365 - could be worth checking to see if there's any additional helpful context there

I'm working on this.  It is likely to take a good long while.


Removed extra 's' in 7-responsible-ai-case-study.md

Before requesting or performing a merge in upstream:

[x] Verify that your pull request is following our PR quality criteria (items that apply to All and Learn):
https://review.learn.microsoft.com/help/contribute/contribute-how-to-write-pull-request-quality-criteria?branch=main
[x] Verify your PR has a useful title that reflects what it is for.

BTW. I have suffered from "You don't have access to this" when trying to see https://review.learn.microsoft.com/help/contribute/contribute-how-to-write-pull-request-quality-criteria?branch=main

The modified content seems to have been removed :/


Some typos on Blended Latent Diffusion webpage.

It seems some typos on the project webpage, as shown in the figures below.

Hi,
Thank you very much for reporting it!
Omri