Running a project on VSCode with Linux or Chrome

Steps to Reproduce

Firstly, everything works well on terminal or android studio.
On VSCode, I get this:

I press the 'Run' button, if I select Android device, it works, but if I select chrome or linux device, it doesn't. It waits for like 3 seconds, an application starts and shuts down immediately then 'Debug Console' says that there are an error.
Chrome, on the other hand is always stuck, it opens chrome and closes directly but no error.

Logs

Logs

Flutter Doctor V
[✓] Flutter (Channel dev, 2.1.0-10.0.pre, on Linux, locale en_US.UTF-8)
    • Flutter version 2.1.0-10.0.pre at /home/rago/snap/flutter/common/flutter
    • Framework revision cc9b78fc5c (10 days ago), 2021-02-25 13:26:03 -0800
    • Engine revision a252ec09b7
    • Dart version 2.13.0 (build 2.13.0-77.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/rago/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /snap/android-studio/current/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio
    • Android Studio at /snap/android-studio/current/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /snap/android-studio/current/android-studio
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.54.1)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.82

• No issues found!

Hi @ragokan
Just tried to reproduce the issue in manual Flutter setup as well as Flutter snap on the dev channel in VS Code for web and Linux, has no issues when launching the app from VS Code. I saw this issue before, a couple of weeks back but no issue since then. It might be fixed by the plugin.

flutter doctor -v
taha@pop-os:~/AndroidStudioProjects$ flutter doctor -v
[✓] Flutter (Channel dev, 2.1.0-10.0.pre, on Linux, locale en_US.UTF-8)
    • Flutter version 2.1.0-10.0.pre at /home/taha/snap/flutter/common/flutter
    • Framework revision cc9b78fc5c (11 days ago), 2021-02-25 13:26:03 -0800
    • Engine revision a252ec09b7
    • Dart version 2.13.0 (build 2.13.0-77.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /home/taha/Code/SDK
    • Java binary at: /home/taha/Code/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup
      for detailed instructions).

[✓] VS Code (version 1.54.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.20.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.150

! Doctor found issues in 1 category.
taha@pop-os:~/AndroidStudioProjects$

taha@pop-os:~/AndroidStudioProjects$ flutter doctor -v
[✓] Flutter (Channel dev, 2.1.0-10.0.pre, on Linux, locale en_US.UTF-8)
    • Flutter version 2.1.0-10.0.pre at /home/taha/snap/flutter/common/flutter
    • Framework revision cc9b78fc5c (11 days ago), 2021-02-25 13:26:03 -0800
    • Engine revision a252ec09b7
    • Dart version 2.13.0 (build 2.13.0-77.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /home/taha/Code/SDK
    • Java binary at: /home/taha/Code/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup
      for detailed instructions).

[✓] VS Code (version 1.54.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.20.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.150

! Doctor found issues in 1 category.
taha@pop-os:~/AndroidStudioProjects$

Following the indication of VS Code Flutter Extension, the correct way to address the problem is to open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Hi @ragokan
Just tried to reproduce the issue in manual Flutter setup as well as Flutter snap on the dev channel in VS Code for web and Linux, has no issues when launching the app from VS Code. I saw this issue before, a couple of weeks back but no issue since then. It might be fixed by the plugin.
flutter doctor -v
Following the indication of VS Code Flutter Extension, the correct way to address the problem is to open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Great, I will ask in VS Code Flutter Extension repo, I am also using VSCode Insiders, it may also be the problem.

Hi @ragokan
Just tried to reproduce the issue in manual Flutter setup as well as Flutter snap on the dev channel in VS Code for web and Linux, has no issues when launching the app from VS Code. I saw this issue before, a couple of weeks back but no issue since then. It might be fixed by the plugin.
flutter doctor -v
Following the indication of VS Code Flutter Extension, the correct way to address the problem is to open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Just to add,

It works well in vscode, the problem may be about insiders.


stf14/cp 569bfd6c726f430f65ef4837b81742ab155ea643

Resolve issue with CR and CSV example for snmptrap receiver (#308)
Set default branches for repositories (#315)
Expose minimal set of bridge controls for SGs (#312) (#314)
Fix linting by locking versions (#113) (#317)

Invalid PR.


Target 2 elements at the same time

Is it possible to target 2 separate element with the same pace loader bar? I used a comma in target: to specify a secondary div and it does not seem to work.

Also, if there is a need to have a circular loader on the first load as against a minimal bar on the other ajax loaded pages, how do we achieve this?


RuntimeError: The number of elements exceeds the specified limit

Getting this error when indexing nested docList

Can you please provide the code snippet for us to reproduce?

What I am trying to do here is store a document and sub-index it paragraph wise so I can later match either paragraphs or complete documents
This is the code I cam up with:
`from docarray import BaseDoc
from docarray.index import HnswDocumentIndex
from docarray.typing import NdArray
import numpy as np
import os
from docarray import DocList
from typing import Optional
class Inner(BaseDoc):
embedding: NdArray[128]
text: str
class MyDoc(BaseDoc):
user : str
file_name : str
projectId : str
embedding: NdArray[128]
text: Optional[str]
inner: DocList[Inner]
db = HnswDocumentIndexMyDoc
big_docs = DocListMyDoc
for i in os.listdir("files"):
pdf_text = get_pdf_text(f"files/{i}")
docs = DocList[Inner](
    [Inner(embedding=np.random.rand(128), text= s) for s in pdf_text.split("\n")]
)
big_docs.append(MyDoc(embedding=np.random.rand(128), text = pdf_text,user ="24", projectId = "1", inner = docs, file_name = i))

db.index(big_docs)
`

Can you provide a more detailed stack trace?

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_115/3635111961.py in <module>
----> 1 db.index(big_docs)

~/.conda/envs/python3/lib/python3.9/site-packages/docarray/index/backends/hnswlib.py in index(self, docs, **kwargs)
    245         data_by_columns = self._get_col_value_dict(docs_validated)
    246
--> 247         self._index(data_by_columns, docs_validated, **kwargs)
    248
    249         self._send_docs_to_sqlite(docs_validated)

~/.conda/envs/python3/lib/python3.9/site-packages/docarray/index/backends/hnswlib.py in _index(self, column_to_data, docs_validated)
    211         docs_validated: Sequence[BaseDoc] = [],
    212     ):
--> 213         self._index_subindex(column_to_data)
    214
    215         # not needed, we implement `index` directly

~/.conda/envs/python3/lib/python3.9/site-packages/docarray/index/abstract.py in _index_subindex(self, column_to_data)
   1092                     doc for doc_list in column_to_data[col_name] for doc in doc_list
   1093                 ]
-> 1094                 self._subindices[col_name].index(docs)
   1095                 column_to_data.pop(col_name, None)
   1096

~/.conda/envs/python3/lib/python3.9/site-packages/docarray/index/backends/hnswlib.py in index(self, docs, **kwargs)
    245         data_by_columns = self._get_col_value_dict(docs_validated)
    246
--> 247         self._index(data_by_columns, docs_validated, **kwargs)
    248
    249         self._send_docs_to_sqlite(docs_validated)

~/.conda/envs/python3/lib/python3.9/site-packages/docarray/index/backends/hnswlib.py in _index(self, column_to_data, docs_validated)
    221             data_np = [self._to_numpy(arr) for arr in data]
    222             data_stacked = np.stack(data_np)
--> 223             index.add_items(data_stacked, ids=hashed_ids)
    224             index.save_index(self._hnsw_locations[col_name])
    225

RuntimeError: The number of elements exceeds the specified limit

do u have a more dummy code to reproduce without needing access to the folder?

I will write some dummy code and post it here soon

Here it is, in the above code, replace the loop by following
pdf_text = '''Some text goes here \n line 2 \n line 3 \n line 4'''

docs = DocList[Inner](
    [Inner(embedding=np.random.rand(128), text= s) for s in pdf_text.split("\n")]
)
big_docs.append(MyDoc(embedding=np.random.rand(128), text = pdf_text,user ="24", projectId = "1", inner = docs, file_name = 0))

To me, this works properly:
from docarray import BaseDoc
from docarray.index import HnswDocumentIndex
from docarray.typing import NdArray
import numpy as np
import os
from docarray import DocList
from typing import Optional

class Inner(BaseDoc):
    embedding: NdArray[128]
    text: str

class MyDoc(BaseDoc):
    user : str
    file_name : str
    projectId : str
    embedding: NdArray[128]
    text: Optional[str]
    inner: DocList[Inner]

db = HnswDocumentIndex[MyDoc](work_dir='./personal/hnsw')
big_docs = DocList[MyDoc]()
pdf_text = '''Some text goes here \n line 2 \n line 3 \n line 4'''

docs = DocList[Inner](
    [Inner(embedding=np.random.rand(128), text= s) for s in pdf_text.split("\n")]
)
big_docs.append(MyDoc(embedding=np.random.rand(128), text = pdf_text,user ="24", projectId = "1", inner = docs, file_name = 0))

I do not reproduce the issue, what exact issue do u have?

Sorry missed the last line in above code
Try indexing big_docs in db, that is when it produces error
db.index(big_docs)

Still working for me:
from docarray import BaseDoc
from docarray.index import HnswDocumentIndex
from docarray.typing import NdArray
import numpy as np
from docarray import DocList
from typing import Optional

class Inner(BaseDoc):
    embedding: NdArray[128]
    text: str

class MyDoc(BaseDoc):
    user : str
    file_name : str
    projectId : str
    embedding: NdArray[128]
    text: Optional[str]
    inner: DocList[Inner]

db = HnswDocumentIndex[MyDoc](work_dir='./personal/hnsw')
big_docs = DocList[MyDoc]()
pdf_text = '''Some text goes here \n line 2 \n line 3 \n line 4'''

docs = DocList[Inner](
    [Inner(embedding=np.random.rand(128), text= s) for s in pdf_text.split("\n")]
)
big_docs.append(MyDoc(embedding=np.random.rand(128), text = pdf_text,user ="24", projectId = "1", inner = docs, file_name = 0))
db.index(big_docs)
print(f'num_docs {db.num_docs()}')

Is there a limit on the indexing?
Because in the folder I have 9 documents that are around 20-30 pages each
When I try to index them, I get the error again

If u can share an example where I can reproduce the errorr, I can investigate. But no, there is no theoretical limit

I will experiment a bit more and try to update you with an example or progress
Thanks a lot for help

I believe this has been fixed by #1602

This fixed the issue
Sorry I couldn't help much with reproducing error or identifying the root cause
Thanks a lot


feat: functions_helloworld_get

Adds functions_helloworld_get. Leaves room for other helloworld samples.
Fixes https://github.com/GoogleCloudPlatform/dart-samples/issues/7

@grant This is a copy of the example that I originally wrote for the Dart Functions Framework. Did you want me to move all of the examples I published there over to here? I can take care of that, I was only waiting for the issues to get created. Thanks!

Sure, I'll let you create the PRs. This is just an example that does pick up from the Dart FF. I'll close the PR.


Add support of OS Login

example in the official module: https://github.com/terraform-yc-modules/terraform-yc-kubernetes/commit/6b7dcdf8df4fdcee952cf0b151a5076824e6f993

https://github.com/terraform-yacloud-modules/terraform-yandex-kubernetes/pull/56


Response from java aws authorizer is wrapped and sent as APIGatewayProxyResponseEvent object

Hi Team,
Created aws java authorizer to validate the incoming token and generate Iampolicy response. With jar lambda is working as expected and generating below reponse.
{
    "policyDocument": {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Action": "execute-api:Invoke",
                "Resource": "arn:aws:execute-api:region:accountid:apiid/stage/GET/*",
                "Effect": "Allow"
            }
        ]
    },
    "context": {
        "sub": "Sample"
    },
    "principalId": null
}

When we converted same lambda to native image the response is wrapped as APIGatewayProxyResponseEvent object.
Below is the response we got from api gateway logs.
{
    "isBase64Encoded": false,
    "headers": {
        "date": "Tue, 09 Aug 2022 10:53:00 GMT",
        "transfer-encoding": "chunked",
        "lambda-runtime-trace-id": "",
        "aws-api-gateway": "true",
        "lambda-runtime-aws-request-id": "99b3-c10da8d41cfb",
        "id": "339781a6-535f-dc19-e079-f32ae48a744o",
        "contentType": "application/json",
        "lambda-runtime-invoked-function-arn": "arn",
        "lambda-runtime-deadline-ms": "1660042443373",
        "timestamp": "1660042380735"
    },
    "body": "{\"principalId\":\"principleId\",\"policyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":\"execute-api:Invoke\",\"Effect\":\"Allow\",\"Resource\":\"arn:resource\"}]},\"context\":{\"sub\":\"SamplecontextObject\"}}",
    "statusCode": 200
}

The policy document is set as part of APIGatewayProxyResponseEvent body where my return type from handler is a pojo. [ tried sending stringified json directly from handler but observed same response.]
Please any input/suggestion will be helpful. Thanks in advance.

Hi, with the provided elements it is hard to tell what happen. There are maybe missing hints that ends up to this difference. You can maybe use the tracing agent on the JVM to generate and identify the missing hints and then reuse them on native side, see related documented.

Hello, Sure @sdeleuze.
Removed logicfrom function and return string as a lambda response for this also response is wrapped as above.
Attaching lambda function


Research structured UI outputs via agent message types

Certain agents need to output UI for the end user to interact with instead of using a simple text chat flow. Here are some examples of these UI interactions:

Display a form with specified input fields and validation requirements. EG: the agent needs the user to submit a physical address.
Display a grid of products with thumbnails and prices.
Display a data table with sorting and filtering options.

To accomplish this, a message.metadata could contain various values that our hub UI can key off of to render these pre-defined component patterns instead of our standard chat bubble <Message /> component.
For the form example above, maybe the message.metadata could look like:
{
  ui: {
    component: 'form',
    props: {
       fields: [{ name: 'Street Address Line 1', type: 'text', required: true }, ...],
       onSubmit: () => { ... }
    }
  }
}

Related: https://github.com/nearai/nearai/issues/404

Closing this for now as a result of this working doc: https://docs.google.com/document/d/1aPwJkvXZdPrbsKRnb-r5Rcoa1SHgaqtZQlp1tg5BQSk/edit?tab=t.0#heading=h.s80i4qjxt6qz


How to get the bot to choose the answer from the possible, suitable for this question?

let's say there is a question You can not feel there are such possible answers to it
  - Can you feel?
  - Maybe I can.
  - I am capable of acting as if I can.  If that is the case, does it matter?
  - What a thing to say to another being.
  - That's not a very nice thing to say.

but if you ask the bot You can not feel , it will say Can you feel? because this answer is on the first line
I want to make it so that the bot chooses a random response from these possible.
p.s. sorry for my english

Use random response selection method to get http://chatterbot.readthedocs.io/en/stable/logic/response_selection.html#module-chatterbot.response_selection
e.g.
from chatterbot import ChatBot
from chatterbot.response_selection import get_random_response

import logging
logging.basicConfig(level=logging.INFO)

chatbot = ChatBot(
    "ChatBot",
    response_selection_method=get_random_response,
    logic_adapters=[
        {
            'import_path': 'chatterbot.logic.BestMatch'
        },
        {
            'import_path': 'chatterbot.logic.LowConfidenceAdapter',
            'threshold': 0.80,
            'default_response': 'I don't know..'
        }
    ],

)

@vkosuri  sorry, but it's a little wrong..

  - I have no real emotions, so how can I be arrogant?
  - I am terse.  There is a difference.
  - I am not human, so how can I partake of a human emotion such as arrogance?

and such code:
from chatterbot import ChatBot
from chatterbot.response_selection import get_random_response
import logging
logging.basicConfig(level=logging.INFO)
chatbot = ChatBot(
    "ChatBot",
    response_selection_method=get_random_response,
    logic_adapters=[
        {
            'import_path': 'chatterbot.logic.BestMatch'
        },
        {
            'import_path': 'chatterbot.logic.LowConfidenceAdapter',
            'threshold': 0.80,
            'default_response': "I don't know.."

INFO:chatterbot.response_selection:Selecting a response from list of 1 options.
INFO:chatterbot.adapters:Response selected. Using "Arrogance is not one of my emotions."
INFO:chatterbot.adapters:BestMatch selected "Arrogance is not one of my emotions." as a response with a confidence of 1.0
INFO:chatterbot.response_selection:Selecting a response from list of 1 options.
INFO:chatterbot.adapters:LowConfidenceAdapter selected "I don't know.." as a response with a confidence of 0
INFO:chatterbot.adapters:NoKnowledgeAdapter selected "You are arrogant" as a response with a confidence of 0
Arrogance is not one of my emotions.

INFO:chatterbot.response_selection:Selecting a response from list of 1 options.
INFO:chatterbot.adapters:Response selected. Using "Arrogance is not one of my emotions."
INFO:chatterbot.adapters:BestMatch selected "Arrogance is not one of my emotions." as a response with a confidence of 1.0
INFO:chatterbot.response_selection:Selecting a response from list of 1 options.
INFO:chatterbot.adapters:LowConfidenceAdapter selected "I don't know.." as a response with a confidence of 0
INFO:chatterbot.adapters:NoKnowledgeAdapter selected "You are arrogant" as a response with a confidence of 0
INFO:chatterbot.chatterbot:Adding "You are arrogant" as a response to "You are arrogant"
Arrogance is not one of my emotions.

INFO:chatterbot.response_selection:Selecting a response from list of 2 options.
INFO:chatterbot.adapters:Response selected. Using "Arrogance is not one of my emotions."
INFO:chatterbot.adapters:BestMatch selected "Arrogance is not one of my emotions." as a response with a confidence of 1.0
INFO:chatterbot.response_selection:Selecting a response from list of 1 options.
INFO:chatterbot.adapters:LowConfidenceAdapter selected "I don't know.." as a response with a confidence of 0
INFO:chatterbot.adapters:NoKnowledgeAdapter selected "You are arrogant" as a response with a confidence of 0
INFO:chatterbot.chatterbot:Adding "You are arrogant" as a response to "You are arrogant"
Arrogance is not one of my emotions.

The bot responds only with the first line
of these
  - Arrogance is not one of my emotions.
  - I have no real emotions, so how can I be arrogant?
  - I am terse.  There is a difference.
  - I am not human, so how can I partake of a human emotion such as arrogance?

But I want the bot to deduce a random from the possible

Did you tried multiple times, It's random response selection might picked first at the first. let us know your observations.

@konstantin42127, if you want 4 different answers for the statement 'You are arrogant', the yml file should be like this:
- emotion
conversations:
- - You are arrogant
  - Arrogance is not one of my emotions.

  There is a difference.

In  your example, each statement is the response of the previous one and thus, 'Arrogance is not one of my emotions' is the unique response to the statement 'You are arrogant'.


not able to deploy templates on sandbox for practice

Please fix this issue.
I am getting this error "Found multiple accounts with the same username" when I try to deploy something via ARM template on azure sandbox. I am not able to complete the training.

@jiasli for awareness

Please see https://github.com/Azure/azure-cli/issues/20168#issuecomment-963747032 for the solution. We are still investigating the scenario.


docs: fix readme.

It still failed to render:

Click view file and it's ok.

@zhouaihui  I guess the gap is that README is too narrow to render it(see https://github.com/zhouaihui/rayfed/tree/fix/readme) while it's ok in a single rendered page.
Maybe let remove some unnecessary items or we should refactor the table~

It's a bug of github? You can check the source file, there is only one "|" here.

It's a bug of github? You can check the source file, there is only one "|" here.


added some new stuff

i did not like that so i m cloosing this pull request

keep making some new changes that are good for this project


Bump shell-quote and react-scripts in /Frontend

Bumps shell-quote and react-scripts. These dependencies needed to be updated together.
Updates shell-quote from 1.6.1 to 1.7.3

Release notes
Changelog
Commits

Updates react-scripts from 2.1.8 to 5.0.1

Release notes
Changelog
Commits

updated-dependencies:

dependency-name: shell-quote dependency-type: indirect
dependency-name: react-scripts dependency-type: direct:production ...

Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>

s


Add support for additional font files

https://github.com/jasongdove/ErsatzTV/blob/ddb7e1887fa412cc651fa4964c873a270a546d3b/ErsatzTV/Services/RunOnce/ResourceExtractorService.cs#L24
I've tried almost everything to get additional fonts loaded, until I saw those lines and no other font loading references in the code.
Would it be possible to load all ttf and otf files from the resources folder, or maybe resources/fonts?

That code is extracting the default fonts on startup to two locations:
~/.local/share/ersatztv/cache/resources - used for internal purposes
~/.local/share/ersatztv/cache/streams/fonts - used for all subtitles
If you place your fonts in the latter location (cache/streams/fonts) then they should work with custom subtitles/music video credit templates.


New version: Rainmeter.Rainmeter version <IP_ADDRESS>74

Pull request has been created with WinGet Releaser :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -2145844844
2024-08-07 14:14:04.759 [CORE] DeliveryOptimization error: 0x80190194, extended error: 0x00000000
2024-08-07 14:14:04.819 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\DODownloader.cpp(289)\WindowsPackageManager.dll!533657EB: (caller: 53365E1C) Exception(1) tid(c1c) 80190194 Not found (404).
2024-08-07 14:14:05.468 [CORE] Download request failed. Returned status: 404
2024-08-07 14:14:05.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(148)\WindowsPackageManager.dll!5335FA75: (caller: 53360E2B) Exception(2) tid(c1c) 80190194 Not found (404).
2024-08-07 14:14:05.693 [CLI ] Failed to download, waiting a bit and retry. Url: https://github.com/rainmeter/rainmeter/releases/download/v<IP_ADDRESS>74/Rainmeter-4.5.27.exe
2024-08-07 14:14:08.306 [CORE] DeliveryOptimization error: 0x80190194, extended error: 0x00000000
2024-08-07 14:14:08.306 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\DODownloader.cpp(289)\WindowsPackageManager.dll!533657EB: (caller: 53365E1C) Exception(3) tid(c1c) 80190194 Not found (404).
2024-08-07 14:14:08.461 [CORE] Download request failed. Returned status: 404
2024-08-07 14:14:08.461 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(148)\WindowsPackageManager.dll!5335FA75: (caller: 53360E2B) Exception(4) tid(c1c) 80190194 Not found (404).

Automated error analysis suggests -2145844844 may mean Not Found (404).
Automated error analysis suggests 80190194 may mean Not found (404).
(Automated response - build 887.)

Looks like we had an issue, and another team member removed the release from github.

I see the new version is out again, are you able to create a new PR?


Handle longer audio clips

Might have to consider actual .srt files or something similar because of the consideration on the timing of subtitles.

Resolved in #20


no automatic accessory creation

Describe Your Problem:
Data is received on Homebridge but no accessories were created.

Logs:
[1/21/2022, 7:11:54 PM] [Ecowitt] Report time: 2022-01-21T17:11:52.000Z
[1/21/2022, 7:12:54 PM] [Ecowitt] Data source address: ::ffff:xxxxxxxxxxx
[1/21/2022, 7:12:54 PM] [Ecowitt] Request: POST /data/report HTTP/1.1
host:xxxxxxxxxx
connection: Close
content-type: application/x-www-form-urlencoded
content-length: 456
[1/21/2022, 7:12:54 PM] [Ecowitt] Data report: {
"PASSKEY": "XXXXXXXXXXX",
"stationtype": "EasyWeatherV1.5.2",
"dateutc": "2022-01-21 18:12:52",
"tempinf": "63.0",
"humidityin": "55",
"baromrelin": "29.123",
"baromabsin": "29.123",
"tempf": "31.1",
"humidity": "85",
"winddir": "253",
"winddir_avg10m": "276",
"windspeedmph": "4.9",
"windspdmph_avg10m": "4.3",
"windgustmph": "6.9",
"maxdailygust": "13.6",
"rainratein": "0.000",
"eventrainin": "0.000",
"hourlyrainin": "0.000",
"dailyrainin": "0.118",
"weeklyrainin": "0.118",
"monthlyrainin": "0.118",
"yearlyrainin": "0.118",
"solarradiation": "0.00",
"uv": "0",
"model": "WS2350"
}
[1/21/2022, 7:12:54 PM] [Ecowitt] Report time: 2022-01-21T17:12:52.000Z
Plugin Config:
{
"bridge": {
"name": "Homebridge 6DCC",
"username": "XXXXXXXX",
"port": XXXXXXXX,
"pin": "XXXXXXXX",
"bind": [
"eth0",
"wlan0",
"docker0",
"veth0906580",
"veth6199a37",
"br-9a2e7c624ca8",
"vethe6ad389"
]
},
"accessories": [
],
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "auto",
"tempUnits": "c",
"lang": "de",
"platform": "config"
},
{
"mac": "XXXXXXXX",
"port": 8080,
"path": "/data/report",
"ws": {
"hide": false,
"uv": {
"hide": false,
"threshold": 6
},
"solarradiation": {
"hide": false,
"luxFactor": 126.7
},
"wind": {
"units": "mps",
"speedThreshold": 1,
"gustThreshold": 3,
"maxDailyGustThreshold": 8
},
"rain": {
"units": "mm"
}
},
"thbin": {
"hide": false
},
"th": {
"hide": false
},
"soil": {
"hide": false
},
"leak": {
"hide": false
},
"pm25": {
"hide": false
},
"lightning": {
"hide": false,
"units": "km"
},
"platform": "Ecowitt"
}
]
}
Environment:

Plugin Version: latest
Homebridge Version: latest
Node.js Version: latest
NPM Version: latest
Operating System:

@spatialdude Could you please help me here? thank you very much!

Having a similar issue. Just added a GW1000B to Homebridge.
I can see the data reports in the logs, but there is no Indoor Temperature, Humidity and Barometric Sensor in the Accessories, so I can't add it to Homekit.
Any idea what to try to debug this?
Thanks!
Data Report:
13/07/2022, 17:54:43] [Ecowitt] Data report: {
  "PASSKEY": "XXXX",
  "stationtype": "GW1000B_V1.7.4",
  "runtime": "20231",
  "dateutc": "2022-07-13 21:54:43",
  "tempinf": "75.92",
  "humidityin": "53",
  "baromrelin": "29.341",
  "baromabsin": "29.341",
  "freq": "915M",
  "model": "GW1000B_Pro"
}

Plugin Config:
{
    "mac": "XX:XX:XX:XX:XX:XX",
    "port": 8080,
    "path": "/data/report/",
    "ws": {
        "hide": false,
        "uv": {
            "hide": false,
            "threshold": 6
        },
        "solarradiation": {
            "hide": false,
            "luxFactor": 126.7
        },
        "wind": {
            "units": "beaufort",
            "speedThreshold": 1,
            "gustThreshold": 3,
            "maxDailyGustThreshold": 8
        },
        "rain": {
            "units": "mm"
        }
    },
    "thbin": {
        "hide": false
    },
    "th": {
        "hide": false
    },
    "soil": {
        "hide": false
    },
    "leak": {
        "hide": false
    },
    "pm25": {
        "hide": false
    },
    "lightning": {
        "hide": false,
        "units": "km"
    },
    "platform": "Ecowitt"
}

Homebridge config
{
    "bridge": {
        "name": "Homebridge XXX",
        "username": "XXXX",
        "port": 123,
        "pin": "XXX",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "mac": "XX:XX:XX:XX:XX:XX",
            "port": 8080,
            "path": "/data/report/",
            "ws": {
                "hide": false,
                "uv": {
                    "hide": false,
                    "threshold": 6
                },
                "solarradiation": {
                    "hide": false,
                    "luxFactor": 126.7
                },
                "wind": {
                    "units": "beaufort",
                    "speedThreshold": 1,
                    "gustThreshold": 3,
                    "maxDailyGustThreshold": 8
                },
                "rain": {
                    "units": "mm"
                }
            },
            "thbin": {
                "hide": false
            },
            "th": {
                "hide": false
            },
            "soil": {
                "hide": false
            },
            "leak": {
                "hide": false
            },
            "pm25": {
                "hide": false
            },
            "lightning": {
                "hide": false,
                "units": "km"
            },
            "platform": "Ecowitt"
        }
    ]
}

Old thread, but quick question @el-principe - do you know what weather station device you have that was sending that data?  Is that data from an ecowitt WH24 (the old style "boat" design)?


[Feature]: Add Kadane's Algorithm to the Algorithm Blog Section

Feature Name
Kadane's Algorithm (Maximum Subarray Problem)
Feature Description
Kadane's Algorithm is an efficient solution to the maximum subarray problem, which involves finding the contiguous subarray within a one-dimensional numeric array that has the largest sum. The algorithm uses dynamic programming to solve this in linear time, making it optimal for large datasets.
Kadane's Algorithm is a widely studied algorithm in competitive programming and interviews, due to its simplicity and efficiency. Adding a detailed blog about Kadane's Algorithm will help readers understand how to approach dynamic programming problems and improve their coding skills.
The blog would explain:

What the maximum subarray problem is.
The thought process behind Kadane's Algorithm.
A step-by-step breakdown of the algorithm.
The final optimized code in multiple languages (e.g., Java, Python).
Potential real-life applications of the algorithm.

Motivation
Kadane’s Algorithm is a foundational algorithm that is used in various real-world applications, such as financial analysis (to find the best time to buy/sell stocks) or network routing problems. It’s highly useful for students preparing for coding interviews and contests, as well as developers looking to optimize their array-handling code.
Adding this algorithm to the blog section will provide:

A learning resource for beginners and advanced programmers.
Detailed explanations and code snippets that help users understand dynamic programming.
A deeper understanding of efficient problem-solving techniques.
It will enhance the value of the algorithm blog by adding one of the most famous algorithms, which is frequently asked in coding interviews and challenges.

Implementation Suggestions (Optional)
The blog post could be structured with the following sections:

Introduction to the maximum subarray problem.
Explanation of a brute-force solution and its limitations.
Transition to Kadane's Algorithm with a clear explanation of the dynamic programming approach.
Code implementation of Kadane’s Algorithm in Java, Python, and C++.
Performance analysis (Time complexity: O(n), Space complexity: O(1)).
Conclusion with real-world applications and additional resources for further learning.

Feature Type
New Algorithm
Does this feature require additional resources?

[X] Additional Documentation
[ ] Third-Party Libraries
[ ] UI/UX Design
[ ] Other

References (Optional)
Kadane’s Algorithm - GeeksforGeeks

@ajay-dhangar could u assign me ?

@Lokesh-Bijarniya can you close feature issues and open document issues for docs


Add eventstore team as codeowners

Since these libraries are quite relevant to our persistence layer, this change adds team "eventstore" as code-owners, since this is part of its core domain.

⚠ I also took the liberty of also giving the team write access, since github complained about the file being invalid without it.

Should we disclose our internal team structure on open source projects?

That's a valid question. Frankly, I didn't even think of this. In the spirit of the question, maybe we should not discuss the concern here, then.


Create release for VS2017 RTW

@heaths,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Build vswhere 1.0.45-beta+ga6843e9508 completed (commit https://github.com/Microsoft/vswhere/commit/a6843e9508 by @heaths)


azure.cli.core.azclierror.HTTPError: Forbidden({"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError"

This is autogenerated. Please review and update as needed.
Describe the bug
Error while running az keyvault set-policy command as service principal which have full Owner Permission on this Subscription & Resource.
Command Name
``
az keyvault set-policy --name {Kevault_name}--secret-permissions get list --upn<EMAIL_ADDRESS>Errors:
The command failed with an unexpected error. Here is the traceback:
Insufficient privileges to complete the operation.
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 52, in _send
    r = send_raw_request(self._cli_ctx, method, url, resource=self._resource, uri_parameters=param,
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/util.py", line 1011, in send_raw_request
    raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Forbidden({"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2023-02-10T08:56:39","request-id":"a79d4083-9c1f-4d54-ae21-f4d6379e1955","client-request-id":"a79d4083-9c1f-4d54-ae21-f4d6379e1955"}}})

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/keyvault/custom.py", line 897, in set_policy
    object_id = _object_id_args_helper(cmd.cli_ctx, object_id, spn, upn)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/keyvault/custom.py", line 876, in _object_id_args_helper
    object_id = _get_object_id(graph_client, spn=spn, upn=upn)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/keyvault/custom.py", line 356, in _get_object_id
    return _get_object_id_by_upn(graph_client, upn)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/keyvault/custom.py", line 325, in _get_object_id_by_upn
    accounts = list(graph_client.user_list(filter="userPrincipalName eq '{}'".format(upn)))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 294, in user_list
    result = self._send("GET", "/users" + _filter_to_query(filter))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 55, in _send
    raise GraphError(ex.response.json()['error']['message'], ex.response) from ex
azure.cli.command_modules.role._msgrpah._graph_client.GraphError: Insufficient privileges to complete the operation.

To Reproduce:
az keyvault set-policy --name {Kevault_name}--secret-permissions get list --upn<EMAIL_ADDRESS>Expected Behavior
The command execute successfully to set policy for the give user
Environment Summary
Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.31, Ubuntu 20.04.3 LTS
Python 3.10.8
Installer: DEB
azure-cli 2.45.0
Extensions:
interactive 0.4.6
resource-graph 2.1.0
account 0.2.5
ssh 1.1.3
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
## Additional Context

<!--Please don't remove this:-->
<!--auto-generated-->

@evelyn-ys for awareness

@mh-Vthirumoorthy CLI failed to query the object id for the user principal you provided. Can you specify object id directly?
az keyvault set-policy --name {Kevault_name}--secret-permissions get list --object-id {UserPrincipalOID}


How many instances can be opened

I use tdlib in the golang, when I run two programs, they can both accept messages,but when I increased to three,the third program is unable to read messages.
so I want to know the maximum number of programs that can be opened

TDLib has no explicit limits on the number of simultaneously used instances.

TDLib has no explicit limits on the number of simultaneously used instances.TDLib 对同时使用的实例数量没有明确的限制。

Can multiple programs use the same database？I am using the same database and it has been consistently timed out（Authorize error: timeout），this is my code：
	client := client.NewClient(client.Config{ 		DatabaseDirectory:      "./tdlib-db", 		UseFileDatabase:        false, 		UseChatInfoDatabase:    false, 		UseMessageDatabase:     true, 		UseSecretChats:         true, 		APIID:                  "***", 		APIHash:                "***", 		SystemLanguageCode:     "en", 		DeviceModel:            "Server2", 		SystemVersion:          "", 		ApplicationVersion:     "2.0", 		EnableStorageOptimizer: true, 		IgnoreFileNames:        false, 	})

You must provide a unique database directory for each instance.

You must provide a unique database directory for each instance.

thank you so much


Cleanup background bindings and more colors

This PR cleans up how background colors are set with bindings and adds
purple, green, gray and pink.
@mpeyrotc

Can you add some screenshot(s) to show this change?

Added screenshots to the initial PR comment.


Node can wait for dispatcher thread

Useful in case you want to run a server "forever" i.e. until it crashes.

Not necessary. Closing


Support for VpcEndpointType and PrivateDnsEnabled attributes for AWS::EC2::VPCEndpoint

cfn-lint version: (0.3.5)
Description of issue.
Please provide as much information as possible:

Template linting issues:

CloudFormationSample:

AWSTemplateFormatVersion: '2010-09-09'
Description: 'VPC with multiple subnets, security groups, VPC endpoints, Nat Gateway, Virtual Private Gateway.'
Resources:
  VPCEndpointCloudWatchLogs:
    Type: AWS::EC2::VPCEndpoint
    Properties:
      VpcId: "vpc-ooo11"
      ServiceName: !Sub "com.amazonaws.${AWS::Region}.logs"
      VpcEndpointType: Interface
      PrivateDnsEnabled: True
      SubnetIds:
        - "subnet-0001"
      SecurityGroupIds:
        - "sg-0001"

cfn-lint output:

 $ cfn-lint --version
cfn-lint 0.3.5
 $ cfn-lint cfn-bug.yaml
E3002 Invalid Property Resources/VPCEndpointCloudWatchLogs/Properties/VpcEndpointType
cfn-bug.yaml:9:7

E3002 Invalid Property Resources/VPCEndpointCloudWatchLogs/Properties/PrivateDnsEnabled
cfn-bug.yaml:10:7

rnaik@LMTC-RNAIK:~/Documents/DevSrcCode/gd-cloudformation (loadbalancer-updates) $

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype
The VpcEndpointType and PrivateDnsEnabled seems like they were recently added looking at the release history, feel free to label this as a feature if you think so.

This is an interesting one.  @cmmeyer got some time to check on this one?
The documentation doesn't match the specs with this.
VpcEndpointType (docs) is not VPCEndpointType (Specs)
PrivateDnsEnabled (docs) is not IsPrivateDnsEnabled (Specs)
  "AWS::EC2::VPCEndpoint": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html",
      "Properties": {
        "VpcId": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid",
          "PrimitiveType": "String",
          "UpdateType": "Immutable"
        },
        "RouteTableIds": {
          "PrimitiveItemType": "String",
          "Type": "List",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids",
          "UpdateType": "Mutable"
        },
        "ServiceName": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename",
          "PrimitiveType": "String",
          "UpdateType": "Immutable"
        },
        "PolicyDocument": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-policydocument",
          "PrimitiveType": "Json",
          "UpdateType": "Mutable"
        },
        "IsPrivateDnsEnabled": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-isprivatednsenabled",
          "PrimitiveType": "Boolean",
          "UpdateType": "Mutable"
        },
        "SubnetIds": {
          "PrimitiveItemType": "String",
          "Type": "List",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids",
          "UpdateType": "Mutable"
        },
        "SecurityGroupIds": {
          "PrimitiveItemType": "String",
          "Type": "List",
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids",
          "UpdateType": "Mutable"
        },
        "VPCEndpointType": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype",
          "PrimitiveType": "String",
          "UpdateType": "Mutable"
        }
      }
    },

Hmmm... VPCEndpoint came in through self-service from the VPC team.  Let me do some digging internally and see how we can get these back in sync.

Any update on this? This is the only thing preventing running lint on my template from running clean.

I've got an internal ticket and I'm working through getting this corrected.  This one is a little weird because VPCEndpoint is in the middle of transitioning to the CloudFormation self-service model, which is where I think the discrepancy arose.
Trust me when I say I want this resolved, too!

This was fixed in the spec, so I'm removing the patch in another PR


feat: Introduce "multiModel" field to SR spec

Motivation
With KServe now using ServingRuntimes, we need to make sure that the ModelMesh-Serving runtime selection logic only selects runtimes that are ModelMesh compatible.
Modifications
This adds a field multi-model to the ServingRuntime spec which denotes if a given SR is compatible with ModelMesh or not. The default is false. ServingRuntime controller logic was adjusted to account for this field.  An e2e test was added to test this field, and example SRs in docs were updated to include this field.
Result
ModelMesh-Serving will only consider runtimes with multiModel = true, and SMS and MMS ServingRuntimes can coexist peacefully.
Close: https://github.com/kserve/modelmesh-serving/issues/80

FYI @njhill If you can take a look.

@yuzisun What do you think of this multiModel field in the SR spec?

@yuzisun What do you think of this multiModel field in the SR spec?

sgtm, shall we update KServe as well? Also I have updated the KServe go mod you should be able to depend on kserve and share the type now.

sgtm, shall we update KServe as well? Also I have updated the KServe go mod you should be able to depend on kserve and share the type now.

Yea, KServe should be updated as well. I will do a PR.

/lgtm


ci/github: Further workflow improvements

Separate verify to a stage file
Fix disassociation of check status in PRs (hopefully)
Attempt to restrict access based on [bot] trigger

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

pushing through as ci is not testing the changes, and to get past coverage issue


fix: vehicles use usable_battery_level to match app

For #359
This updates the battery sensor for vehicles to use the usable_battery_level value so that it matches the Tesla app and in-car display in all weather conditions.
Additionally a raw_soc attribute is added to the battery sensor to provide insight into the battery's SOC, which does not change with temperature. This allows for users to detect reduced range due to cold (such as the snowflake icon in the app) if they wish to do so.
Lastly this PR fixes a bug in that the battery icon did not reflect Charging status due to a typo that I happened to notice while doing the above.

@alandtse this test failure is weird, the same tests pass on my local branch, and none of the mock data or tests have changed for charge_rate in either this repo or teslajsonpy afaict. What makes it weirder is that 37.3 is almost the km equivalent of 23.2 miles, but it's off by more than a rounding error, so it doesn't seem like it's getting converted somewhere.
    async def test_charger_rate_value(hass: HomeAssistant) -> None:
        """Tests charger_rate is getting the correct value."""
        await setup_platform(hass, SENSOR_DOMAIN)

        state = hass.states.get("sensor.my_model_s_charging_rate")
>       assert state.state == str(car_mock_data.VEHICLE_DATA["charge_state"]["charge_rate"])
E       AssertionError: assert '37.3' == '23.2'
E         - 23.2
E         + 37.3

tests/test_sensor.py:195: AssertionError

Should I just push a noop commit to re-kick the tests and see if it was somehow a fluke? Or do you have an idea of what's causing this?

I saw that I forgot to rebase, maybe that was somehow why...let's see if it passes this time...

I mean that's an odd failure but I really want to avoid pushing commits that cause the tests to fail randomly like that. Is it trying to convert the values?

I'm continuing to dig into this today. Yes for some reason the integration is converting the charge rate from 23.2 mph to 37.3 km/h which is breaking the test. I'm not able to reproduce at all testing locally so I'm using github actions in my own forked repo to try to reproduce and narrow it down.

ok I was able to reproduce this with simply a poetry update from dev and no other changes.
It appears some existing tests fail with the newest version of home assistant. Since it's not related to this change, I'll create a new PR to fix the tests.
For this PR I reverted the poetry update and only updated teslajsonpy.


Broken link

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details

On the page about Date (section: User notes > Date format and time zone conversionsSection), direct link to the section, the hyperlink for the last word is broken:

... and setUTCHours().

It should link to this page. The last part of the url incorrectly has setHoursUTC instead of setUTCHours.

Fixed! Thanks for reporting this.


refresh token mechanism

Refresh tokens are used to obtain new access tokens when the current access token expires or becomes invalid for some other reason. Refresh tokens have a longer lifespan than access tokens and are used to maintain the user's authenticated session over a longer period of time.
As a best practice, it's recommended to securely store refresh tokens and ensure they are only used when necessary. Refresh tokens should also have a longer expiration time than access tokens, but not be set to never expire. This helps to balance security and convenience.


Version 2.0.0-alpha.32

Landed in https://github.com/metarhia/impress/commit/e08b0a989ee1cdfd3504a68224574b27726c234e


non_negative_difference

Feature Request
Proposal: [Description of the feature]
Add a non_negative_difference function, similar to non_negative_derivative.
Current behavior: [What currently happens]
No such function.
Desired behavior: [What you would like to happen]
Such a function.
Use case: [Why is this important (helps with prioritizing requests)]
For a counter which overflows and is frequently reset, using difference results in frequent negative values.
Note, this is NOT the same as the feature requested in #7076.

@phemmer should it report the absolute value, or 0 if the value is negative?

Nither, it should drop the value entirely, just like non_negative_derivative does.

Ah, makes sense.

@jwilder If no one take this, I would like to devote my time on this feature. What is your opinion? Is this gonna be ok to adding in influxDB?

@zhexuany Sounds good.  Thanks!

It's not better to make an absolute function? This way we could write ABS(DIFFERENCE( )) on query and it could replace the non_negative_derivative too

@rafaelncarvalho that's not the same. However something like max(derivative(foo),0) would be.

I am so sorry for the delay. I planed to used my Spring Festival break to complete this.

Note, this is NOT the same as the feature requested in #7076.

But it covers the same use case! Please, do it. :cat:
@zhexuany, you might want to take a look at the mentioned #7076 and #7093 for some more context on the use case.

But it covers the same use case! Please, do it. 🐱

Actually no it doesn't. Read the comments on #7076, this is a completely different feature.

Ah, right, I wanted totals there. But you can get speed from totals (and I do this with my patch). Will I be able to get totals from your speed in #7393?

PR is ready. Please check: https://github.com/influxdata/influxdb/pull/8235.

Fixed via https://github.com/influxdata/influxdb/pull/8235


Fix redirect routing when using saleschannels with subdirectories in url

What does this pr do?
The "payone_redirect" url is renamed to "payment.payone_redirect" and the utilized router service is switched to recognize the route as a frontend facing url.
Why was this change necessary?
When operating a shopware instance with multiple saleschannels using subdirectories as differentiator between the individual saleschannels (e.g. /de_DE for german version, /en_EN for english version etc.), the currently implemented redirect logic is not capable of assembling the redirect urls (for when a customer returns form some PSP's site, see 'successurl', 'errorurl', 'backurl' in \PayonePayment\Payone\RequestParameter\Builder\ReturnUrlRequestParameterBuilder::getRequestParameter) correctly.
Instead of generating the Url as https://my-store.com/de_DE/payone_redirect?hash=12345 it ends up in https://my-store.com/payone_redirect?hash=12345, omitting the subdir prefix, thus leaving Shopware unable to recognize which Saleschannel this url belongs to (Shopware then shows an error). While this can be easily fixed, e.g. with redirects on the webserver, I still feel this should work ootb, especially as the redirect urls really can be seen as frontend facing routes. From the looks of it, Shopware is using the same approach in its PayPal Plus implementation: https://github.com/shopwareLabs/SwagPayPal/blob/master/src/Checkout/Plus/PlusPaymentFinalizeController.php#L66
There is a piece of logic in \Shopware\Storefront\Framework\Routing\Router::isStorefrontRoute that will identify if a route is frontend facing or not based on the first part of the name of the route. My suggestion in this pr is to use the "payment" identifier on the "payone_redirect" route to be able to generate the redirect urls properly.

Hello, could somebody look into this? it's somewhat annoying

Hello @patchee500 ,
Sorry we haven't looked at your PR yet. I will have the PR checked by our agency and then give you feedback.

Hello @patchee500 ,
Thank you for your PR. We have taken a close look at your PR and would like to integrate it into our plugin.
Since the PR is already a few months old, the status in the branch is relatively old. It would be better to merge the current master branch into the feature branch again, so that we can then test properly with the feature branch. But since this feature branch is in a fork repository of yours, we can't do that.
My request to you would be if you could merge the current master branch into your branch again?
Thank you very much.

Hello @janteuber, current master branch has been merged.


Add 'Create a to-do list with Next.js+TypeScript+AWS Amplify+Recoil Tutorial'.

This is a tutorial written by me to create a to-do list in Next.js+TypeScript+AWS Amplify+Recoil.
If you want to use Next.js and AWS Amplify together, please use it as a reference.

Thank you! Looks p good.


@aws-cdk/aws-codebuild :: Project missing vpcConfig property.

Issue
codebuild.Project does not allow a codeBuild project to have VPC configuration defined as per CloudFormation definition.
Expectation
A codebuild project should have a VPC Config property akin to :
        this.CodeBuildProject = new codebuild.Project(stack, 'BuildProject', {
                ...
                vpcConfig = {
                        vpcId: myVPC.vpcId,
                        securityGroupIds: [myCodeBuildSecurityGroup.securityGroupId],
                        subnets: myVPC.privateSubnets
                }
                ...
        }

Workaround

Define a service role to be used by the CodeBuild Project

        const buildRole = new iam.Role(this, 'CodeBuildRole', {
            assumedBy: new iam.ServicePrincipal('codebuild.amazonaws.com'),
            path: '/'
        });

Define a policy statement that provides the service role with permissions to perform the required ec2 actions.  Add statement to service role.

        const ec2PolicyStatement = new iam.PolicyStatement(iam.PolicyStatementEffect.Allow);
        ec2PolicyStatement.addAllResources();
        ec2PolicyStatement.addActions('ec2:DescribeSubnets', 'ec2:DescribeSecurityGroups', 'ec2:DescribeDhcpOptions', 'ec2:DescribeVpcs');
        buildRole.addToPolicy(ec2PolicyStatement);

Assign service role to code build project

        this.CodeBuildProject = new codebuild.Project(stack, 'BuildProject', {
            ...
            role: buildRole,
            ...
        });

Perform escape hatch method to define vpcConfig properties.

        const project = this.CodeBuildProject.node.findChild('Resource') as codebuild.CfnProject
        project.propertyOverrides.vpcConfig = {
            vpcId: myVPC.vpcId,
            securityGroupIds: [myCodeBuildSecurityGroup.securityGroupId],
            subnets: myVPC.privateSubnets
        }

Actions

[ ] @DavidChristiansen to implement and produce PullRequest

Thanks for opening the issue @DavidChristiansen !
Just one note on the implementation front: most likely, the Project should take a new, optional property when being constructed, vpc of type ec2.VpcNetwork, from the aws-ec2 Construct Library.

The way it's going vpcConfig will be an optional property and it will look like this:
const stack = new cdk.Stack(app, 'aws-cdk-codebuild-project-vpc');
const vpc = new ec2.VpcNetwork(stack, 'MyVPC');
const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup1', {
    groupName: 'Bob',
    vpc: vpc,
    allowAllOutbound: true,
    description: 'Example',
});
new Project(stack, 'MyProject', {
    vpcConfig: {
        vpc: vpc,
        vpc_securityGroupIDs: [securityGroup.securityGroupId],
        vpc_subnets: [vpc.privateSubnets[0].subnetId]
    }
});

+1 for adding this support


how to save it as pdf after document.write

I had merged fields. Now I need it to save as pdf instead of docx. Is there any other way?

I am also looking for answer to this. I can do it by hack and not so optimized way by iterating over the files. Is there any better way ?

Have a look at https://pypi.org/project/docx2pdf/


atmospheric_correction, cloud_detection, sar_backscatter process

Starting a PR to gather discussions on atmospheric correction process!
One open question from me: what about cloud detection?
Create separate process?
Can we allow for immediately applying a cloud mask? In on-the-fly use cases, users may not require a separate mask, but simply want to remove all clouded pixels immediately.
In a lot of other scenarios, users do want to further play with cloud masks, like applying erosion/dilation before applying it to the data.

My proposal is purely to get discussion started, feel free to comment!

A cloud-removal process would be useful. Should it refer to a specific dataset with cloud masks automatically? Should the loaded data have a band for the cloud mask? The less setting it has, the better it is in my opinion. Then everything has to be handled by the back-end.

I added processes for backscatter and cloud detection.
An, optical ARD process would now look like:
#default params, mask pixels in-place
cube.cloud_detection().atmospheric_correction()

#add cloud mask band, leave clouds in the data
cube.cloud_detection(apply_mask=False).atmospheric_correction()

#specify a method
cube.cloud_detection().atmospheric_correction(method="FORCE")

Is there a reasonable way to test the processes in the (hopefully upcoming) test suite when no method is set?

Is there a reasonable way to test the processes in the (hopefully upcoming) test suite when no method is set?

This could get rather difficult:

atmospheric correction can be tested to not crash, but there's no unambiguously defined output for a given input
backscatter depends on metadata that you probably will not have in a simply array, so needs to be tested in combination with load_collection, and as we know, not all backends may have all Sentinel-1 data.
cloud_detection: also not unambiguous, but here you could choose an input combination that is absolutely clouded/cloud free, in which all detectors should have a consistent output.

Here's a first (somewhat correct) image generated on the fly with our new atmospheric_correction process:

Still a way to go for performance, validation and DIAS deployment!

A comment from the meeting with Patrick:
CARD4L Per Pixel Data are e.g. Cloud Mask, Shadow, Aerosol Optical Thickness, Viewing Angles...
Could we implement the production and provision of some of these via the processes discussed here?
Goes somewhat in the direction what has been mentioned by @jdries here:

#default params, mask pixels in-place
cube.cloud_detection().atmospheric_correction()
#add cloud mask band, leave clouds in the data
cube.cloud_detection(apply_mask=False).atmospheric_correction()
#specify a method
cube.cloud_detection().atmospheric_correction(method="FORCE")

Also requestesd: BRDF and topographic correction.
FORCE includes them:
https://github.com/davidfrantz/force/blob/master/src/lower-level/topo-ll.c
https://github.com/davidfrantz/force/blob/master/src/lower-level/brdf-ll.c
Question: topographic correction appears to be part of atmospheric correction, but what about brdf? Can that also be a separate process?

Question: topographic correction appears to be part of atmospheric correction, but what about brdf? Can that also be a separate process?

@jdries BRDF processing is part of the atmospheric correction in FORCE, like topographic correction (both can be flagged True/False). As for running these algorithms as independent processes, I did not have time yet to test, hopefully next week.

These are processing options available at SentinelHub:
https://docs.sentinel-hub.com/api/latest/data/sentinel-1-grd/#processing-options

I've made a couple of formal (non-content) changes to the processes.
FYI:

If null is the default value, it must be listed as a data type in type
Pre-defined values must be listed as enum.
Added preliminary summaries and categories (probably needs more work)
Reformatted to be consistent with other processes
Added experimental flag for the proposals
Will also add a couple of suggestions directly via the GH review process.
Will likely also change the wording a bit to be more consistent with other processes (later?)

Hi all,
I will start bringing up possible parameters for the sar_backscatter process. They will need discussion for sure. But here's a starting point taking into account the CARD4L requirements.
I have taken the CARD4L requirements from here: http://ceos.org/ard/files/PFS/NRB/v5.0/CARD4L-PFS_Normalised_Radar_Backscatter-v5.0.pdf
Unfortunately the page can't be reached at the moment. You can find the list below in tabular form in the ard document on the eodc teams.
Per Pixel
These are layers/bands added to the output. To be CARD4L Compliant they should be there. So default should be true.

data_mask_image: true/false
scattering_area_image: true/false
local_incidence_angle: true/false

Radiometric Terrain Corrected Measurements
These are very dependent on the software used at the backend. So it will be hard to give generic choices to the user. One solution would be to use the options parameter as proposed by @soxofaan. But every backend would have to implement and document this independently. Otherwise we could fix the choices per backend and only report the choice in the metadata.

backscatter_measurements: gamma0 (default, sigma0 is not card4l compliant) / sigma0
scaling_conversion: can we fix this across backends and not give a choice? SNAP: linear, db, dB / Sentinelhub: 10*log10(DN)
noise_removal: SNAP Themal Noise and Image Border Noise / Sentinelhub this method
radiometric_terrain_correction: SNAP range doppler or SAR sim cross calibration / Sentinelhub this method. Needs discussion.

Geometric Terrain Corrections

dem: EODC prefers to use the global 30m dem by default atm. Since for the Copernicus DEM (with 10m resolution in Europe) we would have to go through a licensing procedure. Maybe we could add this after SRR1. @lforesta  please correct me if I have mistaken.
geometric_accuracy: I guess this should be only reported in the metadata.
gridding_convention: I will have to look up the exact definition in the requirements again. Will be of interest of how to handle this if the data is reprojected later on in the process graph.

Hi all,
I will start bringing up possible parameters for the sar_backscatter process. They will need discussion for sure. But here's a starting point taking into account the CARD4L requirements.
I have taken the CARD4L requirements from here: http://ceos.org/ard/files/PFS/NRB/v5.0/CARD4L-PFS_Normalised_Radar_Backscatter-v5.0.pdf
Unfortunately the page can't be reached at the moment. You can find the list below in tabular form in the ard document on the eodc teams.
Per Pixel
These are layers/bands added to the output. To be CARD4L Compliant they should be there. So default should be true.

data_mask_image: true/false
scattering_area_image: true/false
local_incidence_angle: true/false

Radiometric Terrain Corrected Measurements
These are very dependent on the software used at the backend. So it will be hard to give generic choices to the user. One solution would be to use the options parameter as proposed by @soxofaan. But every backend would have to implement and document this independently. Otherwise we could fix the choices per backend and only report the choice in the metadata.

backscatter_measurements: gamma0 (default, sigma0 is not card4l compliant) / sigma0
scaling_conversion: can we fix this across backends and not give a choice? SNAP: linear, db, dB / Sentinelhub: 10*log10(DN)
noise_removal: SNAP Themal Noise and Image Border Noise / Sentinelhub this method
radiometric_terrain_correction: SNAP range doppler or SAR sim cross calibration / Sentinelhub this method. Needs discussion.

Geometric Terrain Corrections

dem: EODC prefers to use the global 30m dem by default atm. Since for the Copernicus DEM (with 10m resolution in Europe) we would have to go through a licensing procedure. Maybe we could add this after SRR1. @lforesta  please correct me if I have mistaken.
geometric_accuracy: I guess this should be only reported in the metadata.
gridding_convention: I will have to look up the exact definition in the requirements again. Will be of interest of how to handle this if the data is reprojected later on in the process graph.

we will enable it? Basically these are extra bands that are added to the datacube by the ARD process. So the parameter could be (for an atmospheric correction example):

add_bands: ['AOT', 'WVP']
(good naming suggestion are more than welcome!)

Could we align that with the STAC naming?

we will enable it? Basically these are extra bands that are added to the datacube by the ARD process. So the parameter could be (for an atmospheric correction example):

add_bands: ['AOT', 'WVP']
(good naming suggestion are more than welcome!)

Could we align that with the STAC naming?

These are layers/bands added to the output. To be CARD4L Compliant they should be there. So default should be true.

So for me, false is a better default.

I agree, from a user perspective this makes absolutely sense! Probably it's enough to say that the process is capable of generating ARD compliant data. But doesn't necessarily do so if the user has other requirements.

These are layers/bands added to the output. To be CARD4L Compliant they should be there. So default should be true.

So for me, false is a better default.

I agree, from a user perspective this makes absolutely sense! Probably it's enough to say that the process is capable of generating ARD compliant data. But doesn't necessarily do so if the user has other requirements.

Indeed, but we should make it easy enough to generate CARD4L compliant data. Document it, have an alias process that sets the corresponding parameters or something else.

Indeed, but we should make it easy enough to generate CARD4L compliant data. Document it, have an alias process that sets the corresponding parameters or something else.

CARD4L: create predefined process graph with parameters configured for compliance.
e.g. card4l_optical = cloud_detection + atmospheric_correction + brdf? (with specific parameters)

CARD4L: create predefined process graph with parameters configured for compliance.
e.g. card4l_optical = cloud_detection + atmospheric_correction + brdf? (with specific parameters)

We have another preliminary draft up, please all have a look.
The SAR part should be near final and the Optical will need some additional fine-tuning.

Merging for now after we had the telco today, any additional changes may be discussed in a separate PR.


FIX: Write out boldref-space brain mask with minimal level

Closes #3290.
Changes proposed in this pull request

Create init_ds_boldmask_wf workflow. This might be overkill.

Update expected outputs.

Closing in favor of #3292.


[Feature Request]: adding slot to dialog footer

Describe the problem or use case
We need this feature because we have some business features that cannot be resolved with extending the component.

Like that
Proposed solution
No response
Alternatives considered
No response
Additional technical context
No response

Hi, I would like to take this one if it's still relevant


added ohm to the dictionary

Closed a previous PR with ohm because i had taken an inverted ohm symbol

added ohm to the dictionary

Looks like a good addition, but please check that the spacing is correct as explained in issue #5, otherwise the dictionary won't import.
There should be a tab before and after the symbol as seen on previous lines. You can copy the symbol from there.
Also keep in mind, you can edit the existing PR by making more commits on the same branch (in your case, https://github.com/Xraycat/LaTeX-Gboard-Dictionary/tree/patch-3). There's no need to close and reopen it  :smile:
Let me know if you have any questions! I'm happy to help.


cpu - patch size should be uniform

This is related to Issue #4
Patch size should be uniform which will help drastically with memory management
This likely means that we'll need to devise a 'ghost cell' strategy where we either pad with zeros or we throw some portion of the patch away

For clarification: the patch returning form the device to the host is uniform (and appropriate for pinned memory).


fix: upgrade @asyncapi/react-component to v2

Description
upgrades "@asyncapi/react-component": "^1.2.7"
Related issue(s)
#205

/rtm


"Script associated with this tool does not exist."

I get Error 000576: "Script associated with this tool does not exist." whenever I try to run the script tool from the toolbox in ArcMap 10.5.

I can't reproduce the issue.

Check the script location

Closing this issue for the time being, can reopen if this issue is still reproducible.

I am encountering the same problem - error 000576 - was there ever a solution?

@erin42
There wasn't a solution on this one previously because internally we were never able to reproduce it.
Questions:

Are you also running the same Add GNSS Metadata Fields tool or a different tool?
Are you running the tool in ArcMap or ArcGIS Pro? (there's a variant for each app) (If using ArcGIS Pro the current version, there is a built-in tool to add these fields as well, as an alternative to the scripts)
Are you downloading the zip and extracting the contents to the local machine or to a network drive, etc?

I'm trying to run the ProjectZ tool in ArcGIS Pro 2.6.1. When I download (from here: https://github.com/Esri/collector-tools/blob/master/CollectorUtils/pro/CollectorUtils_Pro.tbx) I don't get a zip, just the .tbx. I've tried running it from a network drive and directly from my downloads folder on my C drive.

Hi @erin42
I was able to reproduce the issue on my end by just downloading the toolbox itself and not the entire zip folder. When just downloading the toolbox by itself it doesn't bring down the referenced scripts with it.
Try downloading the entire zip by going to https://github.com/Esri/collector-tools > select the drop-down menu by Code > Download Zip.
Once downloaded, extract it. It includes the same toolbox, and should work successfully.

Wonderful, that was it, thank you!

Thank you @erin42


Feature request: Extend command capability with xtest

User Story

As a developer
I can use the xtest command
so that control the external tests from the command line

Notes

The command is supported via an external component, see Resources and References

Acceptance Criteria

ebirah xtest is supported and works
external tests are executed, the contents of xt/

Resources and References

MetaCPAN: Dist::Zilla::App::Command::xtest

I ran into some issues implementing this. Discovered that the distribution I was working on did clearly not have a xt directory with tests.
$ docker run --rm --volume $PWD:/tmp ebirah:latest xt

Passes, if xt is present, holds tests and they pass of course. So my conclusion is that the integration works as expected.
PR coming up


return fig in plotly

Add return fig in plotly_plot_lines when output path is None

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

Comparison is base (af063a8) 70.35% compared to head (c003642) 0.00%.

Files
Patch %
Lines

mango/plots/plots.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #92       +/-   ##
===============================================
- Coverage        70.35%   0.00%   -70.36%
===============================================
  Files               41       2       -39
  Lines             2368      49     -2319
===============================================
- Hits              1666       0     -1666
+ Misses             702      49      -653

Flag
Coverage Δ

clients-tests
?

models-tests
?

plots-tests
0.00% <0.00%> (?)

processing-tests
?

shared-tests
?

table-tests
?

unit-tests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


push of some posts freezes the admin page

The hubpress/#/posts admin page freezes on pushed post asciidoc posts.
I've a migration tool https://github.com/javathought/wordpress-exit (forked from https://github.com/binout/wordpress-exit). One of the enhancement I've made is to format source code blocks for hubpress with [source] tag.
I've noticed it's on posts with this tag that the pages freezes. It's should not as creating a post and copying/pasting the generated post does not freeze the admin page.

Does this behaviour still happen for you @javathought ? If it no longer happens with 0.6.x, please close the issue.

I've migrated and tested button many posts since : I did not reproduced.


Getting 403 because of signature doesn't match

Hi, I am using fineuploader to uploade multiple images to S3, But I am getting an issue Signature doesn't match. And I found amazon s3 using version 4 for signature http://docs.aws.amazon.com/AmazonS3/latest/API/images/sigV4-post.png
Amazon s3 people given an example for version 4 http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html. So I tried this example to regenerate exact same signature what they have already, But I am unable to regenerate it.
I have used django example from this repo, but this example outdated, And I solved many issues. Finally I stuck with Signature mismatch.
Code:

DateKey = hmac.new(b'AWS4'+b'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', b'20151229', hashlib.sha256).digest()

DateRegionKey = hmac.new(DateKey, b'us-east-1', hashlib.sha256).digest()

DateRegionServiceKey = hmac.new(DateRegionKey, b's3', hashlib.sha256).digest()

SigningKey = hmac.new(DateRegionServiceKey, b'aws4_request', hashlib.sha256).digest()

signature = hmac.new(policy, SigningKey, hashlib.sha256).digest()

binascii.hexlify(signature)

Please help me

seems close enough to be a duplicate of #51


Deployment does not work on base k8s no openshift

/kind bug
What happened:
Attempted to deploy kubevirt on prem, had to docker save and docker load images to do so, changing the sha of ever image
What you expected to happen:
After changing the sha inside the operator yaml, I expected kubevirt to deploy
How to reproduce it (as minimally and precisely as possible):
Docker save and docker load every image and shove them into some other docker repo? Then deploy kubevirt
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version):
Kubernetes version (use kubectl version):
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

Looking into the cr the issue seems to be tied to the non existence of an openshift-monitoring?

Can confirm this is an error when deploying out kubevirt v0.20.3 on prem (i originally wanted to go straight for the latest), but alas all .0 releases have issues lol

I think I'll close this and open a new ticket. I was able to identify the problem.


Update pysaml2 to 4.6.0 (or higher) to fix CVE-2017-1000246

See https://github.com/IdentityPython/pysaml2/issues/417 for the pysaml2 issue.
This changes the pysaml2 dependency from ==4.5 to >=4.6.

4.5 to 4.6 because 4.5 has the CVE.
== to >= so that a PR like this won't be required in future.

Thanks!


ValueError: Unknown format code 'r' for object of type 'str'

File "[...]\.venv\lib\site-packages\enumchoicefield\fields.py", line 69, in get_prep_value
    raise ValueError("Unknown value {value:r} of type {cls}".format(
  File "C:\Python310\lib\enum.py", line 781, in __format__
    return cls.__format__(val, format_spec)
ValueError: Unknown format code 'r' for object of type 'str'

Seems it can't turn a string into something to feed into the database?
Django 4.0.4
django-enumchoicefield 3.0.0

Turns out I was feeding the wrong enum into the field, but the error message is still a separate issue...

Thanks for the report. I've fixed this, added tests, and released it as version 3.0.1


common-service-play: Automate db2u (db2-warehouse) operator install for ICS 3.7.1

Is your feature request related to a problem? Please describe.
Would like for there to be the feature of installing db2u(db2-warehouse) operator alongside common service 3.7.1 install. This is a new feature that is possible with ICS 3.7.1 and wasn't possible in past versions of ICS.
Describe the solution you'd like
Add another option to cs_action in the common-service-play folder that allows user to specify the fact they want ICS 3.7.1 (latest as of this moment) installed with db2u. The steps in the link below show that another catalog source must be created for db2u before applying the operand-request in which we can then include ibm-db2u-operator.
Additional context
https://www.ibm.com/support/knowledgecenter/SSHKN6/installer/3.x.x/install_cs_cli.html

@afzalch Could you please check this current playbook which deployed the db2 operator using the Operator hub?
https://github.com/IBM/community-automation/tree/master/ansible/db2-openshift-play

Sorry, I made a mistake in my description I mean the db2u operator which is for db2-warehouse and not for db2. I also have a PR that I can open that I have tested that works for installing the db2u operator.

@afzalch Could you please check this current playbook which deploys the db2 operator using the Operator hub?
https://github.com/IBM/community-automation/tree/master/ansible/db2-openshift-play

Thanks to Rahul and his help, I was able to accomplish installing db2 operator by using the playbook he specified.


Run pyupgrade --py310-plus.

Also apply manual fixes to import sorting and unused imports.

Is there any way to force this to run on our *.pyi files? They are still using older-style annotations like explicit Optional.

Is there any way to force this to run on our *.pyi files? They are still using older-style annotations like explicit Optional.

Perhaps, but can we try that in another PR? This PR is already large and will bitrot.

Indeed, I can do the .pyi files also, will send a separate PR for that.


OxO 2: Prototype (31st May 2023)

This is the cursory goal for a first public OxO prototype after which we can iterate:

[ ] #36
[ ] #31
[ ] #30
[ ] #32
[ ] #35
[ ] #34
[ ] #26
[ ] #27
[ ] #28
[ ] TBD

@serjoshua from now on, also try to get a review from @anitacaron on all your pull requests


Updated general section and more detailed action/services description - failed

general section: example for SOAP request and remark about SONOS boolean (1 and not true)
added description for more services (now only virtual line in is missing)
added Servicename and endpoint to all Services
added some more detailed action description - Browse, AddURI ...
remove the info that 1 stands for true (is now in general section)
info that some actions needs additional xml parsing

failed

What failed?

I submitted a new one. This one faile because there was a ! in a header :-(


Example authentication plugin

https://github.com/simonw/datasette-auth-github/issues/62 will work for this.

I got this working: https://github.com/simonw/datasette-auth-github/pull/64
Just one problem: it uses the existing ds_actor cookie, which means it doesn't actually exercise the actor_from_request plugin!
It does use register_routes though.

Alternative idea: a plugin that handles Bearer token authentication. Uses metadata.json with secret plugin values to map an incoming token to an actor dictionary, which can then be mapped to permissions.

datasette-auth-tokens can be the name. I can get a simple initial version of it running pretty quickly.

Done: https://github.com/simonw/datasette-auth-tokens and https://pypi.org/project/datasette-auth-tokens/


chore(release): v0.6.7

:robot: I have created a release beep boop
0.6.7 (2023-11-03)
Bug Fixes

gh-82 delete confirm modal btn. (1d61376)
instance i18n translation file. (6fe7f50)

Performance Improvements

change header padding size & home btn radius. (6fe7f50)
request loader logic. (1d61376)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/riccox/meilisearch-ui/releases/tag/v0.6.7 :sunflower:


feat(browser): allow caller to know if the snapshot was updated

Sometime it would be helpful to understand if the any changes in the
snapshot after the refresh.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.35%. Comparing base (7353076) to head (fde4172).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #431   +/-   ##
=======================================
  Coverage   87.35%   87.35%
=======================================
  Files           9        9
  Lines        3740     3740
=======================================
  Hits         3267     3267
  Misses        473      473

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


[8.x] Add new function called except() to HasAttributes trait

This new except() function serves as an inverse to the only() method
Background
In my past Laravel applications, I've extended the BaseModel and added an except() function to exclude specific attributes of a model. It differs from the $hidden attribute because except() method is for one-off use cases.
public function showUserInformation($userID): Response {
    // Don't show sensitive information unless it belongs to the user
    return Auth::id() === $userID ? User::find($userID):   User::find($userID)->except('email', 'phone_number')
}

Could be a breaking change if people have already defined this on a base model as you have.

This seems like a great change; any chance it could be added into 10.x and listed as a breaking change?


Extract 5 letter words from constants/words.txt

You will find a file containing a lot of words in constants/words.txt
Use the help of file handling and keep only 5 letter words in that list.

May I work on this issue?

sure! @theSamJain


[VectorExt] Fix LayoutIterator iteration for step != 0

@Groverkss this fails with ASAN enabled

@Groverkss this fails with ASAN enabled

Fixing. It's not an ASAN issue btw, it's just that ASAN is the only runner testing llvm-external-project tests


Features/monomorphization

Adding the Monomorphization Transformation to remove type-parameterized information from the syntax tree as part of the compilation.

I'll merge this as soon as the build has finished.
Well done, @ScottCarda-MS!


Undocumented Exception Type: RuntimeBinderException

Consider the following code:
static void M(dynamic d)
{
    var v = d >> 2;
}

When M is called with an argument of type double, the following results:
Unhandled exception. Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Operator '>>' cannot be applied
   to operands of type 'double' and 'int'

The obvious solution is to mention this exception, and as it is not part of the CLI spec, to put it in the appropriate place in our library annex.
However, this type's namespace is Microsoft.CSharp not System, and neither our spec nor the CLI spec mention MS-specific names. Of course, we could simply spec it as it exists. The reason for pause here is that when I was editor of the XPS (XML Paper Specification) spec, that had an XML namespace of Microsoft, and some members of that committee (TC46) were concerned that if Ecma was to Fast Track that spec to ISO/IEC JTC/1, having a company name baked in there likely would be a red flag w.r.t getting NO votes. So, from that perspective, it's worth at least some discussion.
Thinking aloud here, could we hide this behind some sort of non-contentious namespace alias?
@jskeet I've pinged you, as I added the V6 milestone, but, frankly, if this didn't get resolved until a future version, that would be fine with me.

8.2.4 says an exception is thrown:
https://github.com/dotnet/csharpstandard/blob/770f26d65e97d4fda6ea5ddc44beaa35292a65c2/standard/types.md#L102-L104
Throwing a Microsoft.CSharp.RuntimeBinder.RuntimeBinderException seems a valid implementation of this. Why should the standard specify the type of the exception?

The passage you cite describes the general situation; it does not discuss specific kinds of problems that might cause such an exception. From a standard's point of view, the text

Instead, an exception will be thrown ...

is interpreted as

Instead, an unspecified type of exception will be thrown ...

Of course, that precludes the ability for one to write a portable program to catch such exceptions; one simply doesn't know the exception type! And one should never rely on the outcome of unspecified behavior, as it's not required to be reproducible from one execution to the next! If the behavior were implementation-defined, one could rely on that for a given implementation, but not portably.
As a parallel, consider the places in the spec where we say, "a System.NullReferenceException is thrown" or "a System.IndexOutOfRangeException is thrown." Clearly, programmers appreciate that specificity. Imagine if we'd said "an unspecified exception is thrown" instead in each of these cases?
So, I think the question is, "Do we want programs to be able to catch this exception using portable code?" If not, do we at least want it to be implementation-defined rather than implicitly unspecified, so that for a given implementation it's predictable?

Do existing implementations ensure a specific exception type if dynamic binding fails on a dynamic object?

Decided not to block C# 6 for this. Will revisit.

A quick look at expressions.md shows 17 occurrence of "binding-time error," each leaving unspecified as to what error is reported (or even how). So it's probably not useful to specify just one of them now.

Closing as no action required.


Update GitHub Actions

Yes, we can add a dependabot. However, I'd like to understand why it doesn't work in some cases, see for example https://github.com/bids-standard/bids-specification/pull/1303.

However, I'd like to understand why it doesn't work in some cases

I have experienced the same thing. It seems to be significantly delayed in some cases. For example, we enabled the action updates 2022-05-02 in a repository:
https://github.com/arduino/serial-monitor/commit/4f1f74bb4928123fb83b86e86c81c093162eef40
And only finally received the PR for the actions/checkout@v2 -> actions/checkout@v3 update that had been available the whole time 2022-09-07:
https://github.com/arduino/serial-monitor/pull/24
I guess better late than never (which likely would be the case if we managed the versions manually). Even if it is a bit glitched, the pull requests I do receive from Dependabot are valuable so I think it is worth adding regardless.


Add new checks to validate arithmetics pass

New operations:

OpDot
OpVectorTimesScalar
OpMatrixTimesScalar
OpVectorTimesMatrix
OpMatrixTimesVector
OpMatrixTimesMatrix
OpOuterProduct

Waiting for bots to go green.

Funny thing:   When I rebase against master and retest, this new code catches a problem in the MARKV-codec tests.
[ RUN      ] Markv.VectorTimesScalar
error: 71: Expected float vector type as type_id: VectorTimesScalar
error: 0: Unable to encode to MARK-V.
.../test/comp/markv_codec_test.cpp:101: Failure
Expected: SPV_SUCCESS
Which is: 0
To be equal to: spvSpirvToMarkv(ctx.context, words.data(), words.size(), options.get(), markv_binary, &spv_text_comments, nullptr)
Which is: -4
/build/dneto/v/vokuhila/third_party/spirv-tools/test/comp/markv_codec_test.cpp:147: Failure
Expected: (nullptr) != (markv_binary), actual: 8-byte object <00-00 00-00 00-00 00-00> vs NULL
[  FAILED  ] Markv.VectorTimesScalar (3 ms)

Please rebase and retest.

Bots have failed, showing the need to rebase and update the markv codec tests.

Bots are green.

Rebased, squashed, and pushed into master as c6dfc1188065