[Text Analytics]"Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.us), or have expired." in USGOV and China

We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.
Error Description:
When running the test test_auth.py::TestAuth::test_active_directory_auth, it runs failed and the error message is shown as following, for more details please check here:

Error Track:
Code link:

The scope is hard code as ' https://cognitiveservices.azure.com/.default' leading to only work well in the public cloud.
Expected Behavior:
Add different scopes for different clouds in Text Analytics SDK.
The value of the scope in different clouds is follow:
Public cloud: https://cognitiveservices.azure.com/.default
UsGov cloud: https://cognitiveservices.azure.us/.default
China cloud: https://cognitiveservices.azure.cn/.default
@benbp, @jameszliao-msft, @lmazuel, @meeraharidasa , @mayurid, @abhahn for notification.

@kristapratico According to your suggestion, add client kwargs in the test (test_auth.py).
Update the code as follows:

Then, I run the test locally, still report the same error:
ClientSecretCredential.get_token failed: Authentication failed: AADSTS500011: The resource principal named https://cognitiveservices.azure.com was not found in the tenant named Microsoft.
So, is such a modification what you expected? if so, this modification method about credential_scopes  is invalid.
Besides, for different cloud tests, how do we pass this credential_scopes?
If you have any questions please let me know.

@v-xuto my bad, I picked a poor example to show where to use the client_kwargs argument. Since we actually create the client in the test itself, we need to pass the credential_scopes as a keyword arg when creating the client, like:
text_analytics = TextAnalyticsClient(textanalytics_test_endpoint, token, credential_scopes=credential_scopes)
Since the credential scopes will be different per cloud, we can switch on the AuthorityHost for now like shown here: https://github.com/Azure/azure-sdk-for-python/issues/20648#issuecomment-941208112
However, it would probably make more sense to add an env var per cloud config that specified the default cognitive scope so we could just do something like:
credential_scopes = [os.getenv('DEFAULT_CREDENTIAL_SCOPE')]
text_analytics = TextAnalyticsClient(textanalytics_test_endpoint, token, credential_scopes=credential_scopes)

@benbp is this something we can add to the EnvironmentVariables for each of the sovereign cloud configs?

@kristapratico  According to comments,  I will be able to output the variable construction scope by referencing the ARM template of textAnalyticsEndpointSuffix and add it to the environment.
Update to:
 text_analytics_endpoint_suffix = os.environ.get("TEXTANALYTICS_ENDPOINT_SUFFIX1",".cognitiveservices.azure.com/")
 credential_scopes = ["https://{}.default".format(text_analytics_endpoint_suffix[1:])]
 text_analytics = TextAnalyticsClient(textanalytics_test_endpoint, token, credential_scopes=credential_scope

@v-xuto awesome! let me know if that works for you and if we can close this issue.

@kristapratico I will close this issue.


Investigate packaging of the applications using Docker

Since low level hardware control is required, docker may not be suitable or might require elevated privileges to run the sensor application properly. Thus warranting an investigation.
The kotlin data consumer module should run fine in docker (but need to check jvm optimised for ARM based devices) and redis is already run in docker.

Closed by #11


Additional context
Nope
Metadata
None

Thank you!


added hybrid

Signed-off-by: Yang Zhang<EMAIL_ADDRESS>
[x ] added datasets
[x ] only using conda to install for safety, since sometimes fst headers can't be found with pip
[ x] removed nemo depency
[ x] tests on EngConf.txt

any unit tests for the hybrid approach?

ill add in different PR


Can't create devel-login - CVE-2018-14847

Trying to use bytheway on 6.43rc3, but the devel login part doesn't seem to work sadly.
mba:build dave$ ./btw -i <IP_ADDRESS>

   ╔╗ ┬ ┬  ┌┬┐┬ ┬┌─┐  ╦ ╦┌─┐┬ ┬
   ╠╩╗└┬┘   │ ├─┤├┤   ║║║├─┤└┬┘
   ╚═╝ ┴    ┴ ┴ ┴└─┘  ╚╩╝┴ ┴ ┴

[+] Attempting to connect to <IP_ADDRESS>:8291
[+] Extracting user.dat...
[+] Searching for administrator credentials
[+] Using credentials - admin:lol
[+] Creating /pckg/option on <IP_ADDRESS>:8291
[+] Creating /flash/nova/etc/devel-login on <IP_ADDRESS>:8291
[-] cannot create target file

This feels more like a PEBKAC now that I'm reading the full DEFCON slides. Closing.

No worries. I can't recall testing 6.43rc off the top of my head... for whatever reason I generally avoid the release candidates. But, in theory, if /pckg/option was created and if 6.43rc3 is like 6.42.0, you should be able to login with devel:lol - I'm happy to look into on Monday.

The device shipped with 6.42.6, so thought it made sense to go to 6.43rc3. =)
cleaner_wrasse worked with CVE-2019-3943! =)


Persists Tinybase to Turso's SQLite Edge

I am trying few options to use tinybase in my local-first application I was wondering will it be possible to sync the local SQLite DB from the client (Browser) from wa-sqlite to Edge database prodvider like Turso . Turso encourages to create separate database for each users, mixing tinybase's localfirst approach will be a great user experience

If this is as simple as hooking into LibSQL, I think this can be done easily enough. Am I missing an extra step?

Main question seems to be whether to integrate with (newer) libsql-js or (older) libsql-client, or both

hello @jamesgpearce - founder of Turso here. Great to see Turso integrated into this project!
the libsql-js driver is a dependency of @libsql/client, and is lower level. If you need to go down to a lower level, you may have to use it, but if possible, integrate with @libsql/client.

@glommer I'm wondering if there's a way to subscribe to database changes. My other sqlite-based adapters all provide a way to get to sqlite3_update_hook which I can listen to. I can't see that exposed in either libsql-js or libsql/client. Am I blind? :)
If not, is there another way to subscribe to changes, other than polling?

Please give v4.7.0 a whirl! I use polling for now. https://tinybase.org/

hey @jamesgpearce how did you do the integration? If you integrated at the level of our C api, this function should still be there.
If you integrated at the typescript client SDK, indeed I think there's no typescript API that exposes that directly. Can you point us to how you are doing this with any other adaptor? We're happy to expose a similar function.
Tagging my cofounder @penberg in this thread!

At the moment I am polling which is not ideal but it works. If you can expose that hook that would be awesome though. Eg Expo SQLite has addDatabaseChangeListener, CR-SQLite has onUpdate, sqlite3 has db.on('change'... etc etc


How to merge multiple open api specification files in publisher pipeline?

Release version
Azure APIM v6.0.0
Question Details
Is it possible to merge multiple open API specification files in the publisher pipeline?
Expected behavior
We have a specification file for a set of standard operations and another specification file for custom operations. we need to merge these files and deploy it to APIM
Actual behavior
As expected Only one open API specification file is deployed
Reproduction Steps
.

We only provide the pipelines as starter pipelines. It's up to you to modify them as you see fit. As long as the publisher finds that file to publish it then you should be fine. What happens prior to that can be altered as you see fit. Just make sure the format of your directory is intact as the publisher expects a certain structure which is what the extractor is providing.

I have tried open api merge cli to merge two open API specification files and it seems merging is working as expected. However, pipeline is throwing the below error. it would be great if you could provide some suggestions.
crit: Publisher[0]
System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/vsts/work/1/s/artifacts'.
at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)          at System.IO.Enumeration.FileSystemEnumerator1.Init()
at System.IO.Enumeration.FileSystemEnumerable1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)          at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)          at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)          at System.IO.DirectoryInfo.EnumerateFiles(String searchPattern, EnumerationOptions enumerationOptions)          at common.ArtifactDirectoryExtensions.EnumerateFilesRecursively(IArtifactDirectory directory)          at publisher.Publisher.RunWithoutCommitId(CancellationToken cancellationToken)          at publisher.Publisher.Run(CancellationToken cancellationToken)          at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken) info: Microsoft.Hosting.Lifetime[0]       Application is shutting down... Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/vsts/work/1/s/artifacts'.    at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
at System.IO.Enumeration.FileSystemEnumerator1.Init()    at System.IO.Enumeration.FileSystemEnumerable1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
at System.IO.DirectoryInfo.EnumerateFiles(String searchPattern, EnumerationOptions enumerationOptions)
at common.ArtifactDirectoryExtensions.EnumerateFilesRecursively(IArtifactDirectory directory)
at publisher.Publisher.RunWithoutCommitId(CancellationToken cancellationToken)
at publisher.Publisher.Run(CancellationToken cancellationToken)
at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at publisher.Program.Main(String[] arguments)
at publisher.Program.(String[] arguments)
Exception: /home/vsts/work/_temp/6aba5254-5723-4f25-a2e9-6a39f5fabd07.ps1:9
Line |
9 |  if ($LASTEXITCODE -ne 0) { throw "Running publisher failed."}
|                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Running publisher failed.
And below is my publisher yaml file:
trigger:
  branches:
    include:
      - main  # Trigger only for changes in the main branch
  paths:
    exclude:
    - tools/*

parameters:
  - name: API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH
    type: string
    displayName: Folder where the artifacts reside
    default: "artifacts"
  - name: COMMIT_ID
    type: string
    displayName: Choose "publish-all-artifacts-in-repo" only when you want to force republishing all artifacts (e.g. after build failure). Otherwise stick with the default behavior of "publish-artifacts-in-last-commit"
    default: publish-artifacts-in-last-commit
    values:
      - publish-artifacts-in-last-commit
      - publish-all-artifacts-in-repo

variables:
  - group: apim-automation
  - name: System.Debug
    value: true

stages:
  - stage: push_changes_to_Dev_APIM
    displayName: Push changes to Dev APIM
    jobs:
      - job: merge_and_push_changes
        displayName: Merge and Push Changes to Dev APIM
        pool:
          vmImage: ubuntu-latest
        steps:
          - checkout: self  # Ensure the repository is checked out

          - script: |
              echo Checking the contents of "$(Build.SourcesDirectory)/BO APIOps Test/openapi"
              ls -la "$(Build.SourcesDirectory)/BO APIOps Test/openapi"
            displayName: 'Check OpenAPI Directory Contents'
          - script: |
              npm install -g openapi-merge-cli
            displayName: 'Install OpenAPI Merge CLI'
          - script: |
              echo 'Creating the merge configuration file...'
              echo '{
                "inputs": [
                  {
                    "inputFile": "BO APIOps Test/openapi/custom.json"
                  },
                  {
                    "inputFile": "BO APIOps Test/openapi/standared.json"
                  }
                ],
                "output": "BO APIOps Test/artifacts/apis/65f13c1bbd24547f3a222f45/specification.json"
              }' > $(Build.SourcesDirectory)/openapi-merge-config.json
            displayName: 'Generate OpenAPI Merge Configuration'
            workingDirectory: $(Build.SourcesDirectory)
          - script: |
              openapi-merge-cli -c openapi-merge-config.json
            displayName: 'Merge API Specifications'
            workingDirectory: $(Build.SourcesDirectory)
          - template: run-publisher-with-env.yaml
            parameters:
              API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: ${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}
              RESOURCE_GROUP_NAME: $(RESOURCE_GROUP_NAME_DEV)
              API_MANAGEMENT_SERVICE_NAME: $(APIM_NAME_DEV)
              ENVIRONMENT: "Dev"
              COMMIT_ID: ${{ parameters.COMMIT_ID }}

It worked when I changed the API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH parameter from $(Build.SourcesDirectory)/${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }} to "BO APIOps Test/artifacts"
Since I'm a beginner in yaml pipelines, I couldn't find any other issues with the yaml.

The publisher needs to know where your artifacts are located. It gets that value from the configuration value API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH. By default, our starter pipelines set it to $(Build.SourcesDirectory)/artifacts here, here, and here.
You can change this as per your comment above, or by changing this to BO ApiOps Test/artifacts.

@guythetechie When I merge and deploy openapi files using the above pipeline the following error is thrown.

info: Publisher[0]
Putting policy policy for operation post-contacts in api Contacts...
crit: Publisher[0]
System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/APIOps-PoC/providers/Microsoft.ApiManagement/service/BO-APIOps-Poc/apis/Contacts/operations/get-contacts-contactid/policies/policy?api-version=2022-04-01-preview&format=rawxml failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"Entity with specified identifier not found","details":null}}'.
at common.HttpPipelineExtensions.Validate(Response response, Uri requestUri)
at common.HttpPipelineExtensions.PutResource(HttpPipeline pipeline, Uri uri, JsonObject resource, CancellationToken cancellationToken)
at publisher.Program.<>c__DisplayClass13_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at publisher.ApiOperationPolicy.PutPolicy(ApiOperationPolicyName policyName, ApiOperationName operationName, ApiName apiName, JsonObject json, ServiceUri serviceUri, PutRestResource putRestResource, ILogger logger, CancellationToken cancellationToken)
at publisher.ApiOperationPolicy.<>c__DisplayClass9_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__541.<<ForEachAsync>b__54_0>d.MoveNext()       --- End of stack trace from previous location ---          at common.IAsyncEnumerableExtensions.ForEachParallel[T](IAsyncEnumerable1 enumerable, Func2 action, CancellationToken cancellationToken)          at publisher.ApiOperationPolicy.ProcessArtifactsToPut(IReadOnlyCollection1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, PutRestResource putRestResource, ILogger logger, CancellationToken cancellationToken)
at publisher.Service.ProcessArtifactsToPut(IReadOnlyCollection`1 files, JsonObject configurationJson, ServiceDirectory serviceDirectory, ServiceUri serviceUri, ListRestResources listRestResources, GetRestResource getRestResource, PutRestResource putRestResource, DeleteRestResource deleteRestResource, ILogger logger, CancellationToken cancellationToken)
at publisher.Publisher.RunWithoutCommitId(CancellationToken cancellationToken)
at publisher.Publisher.Run(CancellationToken cancellationToken)
at publisher.Publisher.ExecuteAsync(CancellationToken cancellationToken)
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...

The strange thing is that the same merged file from the above pipeline is successfully deployed through the starter pipeline. any thoughts?

Can you try again with our latest v6 release? There was a related issue that was addressed in the release.

I've come across the same problem again, using the latest v6 release (v<IP_ADDRESS>)


Improve Grammer in Turso Docs

Description
Remove repeated mention of "on-device RAG, local-first vector search" in Turso description.
Checklist

[x] My code follows the code style of this project.
[x] I have performed a self-review of my code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation, if necessary.
[x] I have added tests that prove my fix is effective or my feature works.
[x] New and existing tests pass locally with my changes.

Screenshots (if applicable)

Additional Notes

Great find @Armadillidiid, thank you!


Fix decode and encoding of tracks

this does include breaking changes for the naming of OpPlugins, OpPlugin, EventPlugins, EventPlugin & SourcePlugin


(do not merge) POC: PyG to ArangoDB & ArangoDB to PyG

What's new

ADBPyG_Adapter
ADBPyG_Controller
PyG to ArangoDB *
ArangoDB to PyG **
Github Actions: Analyze (CodeQL), Build (pytest), Release (pytest + twine)
Docstrings
Test Suites

* Does not break down any of the PyG graph node/edge feature matrices, and does not decode the tensor values into non-numerical attributes
** Assumes that the ArangoDB graph is already formatted to PyG standards)
from arango import ArangoClient  # Python-Arango driver
from torch_geometric.datasets import FakeHeteroDataset # Sample graphs form PyG

from adbpyg_adapter import ADBPyG_Adapter

db = ArangoClient(hosts="http://localhost:8529").db("_system", username="root", password="")

adbpyg_adapter = ADBPyG_Adapter(db)

hetero_data = FakeHeteroDataset(edge_dim=2)[0]

# Use Case 1: PyG to ArangoDB
adbpyg_adapter.pyg_to_arangodb("FakeHeteroData", hetero_data)

# Use Case 2.1: ArangoDB to PyG via Graph name
pyg_hetero = adbpyg_adapter.arangodb_graph_to_pyg("FakeHeteroData")

# Use Case 2.2: ArangoDB to PyG via Collection names
pyg_hetero = adbpyg_adapter.arangodb_collections_to_pyg("FakeHeteroData", v_cols={'v0', 'v1', 'v2'}, e_cols={'e0'})

hetero_metagraph = {
    "vertexCollections": {
        "v0": {"x": "x", "y": "y"},
        "v1": {"x": "x"},
        "v2": {"x": "x"},
    },
    "edgeCollections": {
        "e0": {"edge_attr": "edge_attr"},
    },
}
pyg_hetero = adbpyg_adapter.arangodb_to_pyg("FakeHeteroData", hetero_metagraph)

Closing in favour of https://github.com/arangoml/pyg-adapter/pull/2


Pasting content to the doc panel loses all formatting & image links

Previously, when pasting Preppin Data or other external content, the headings and image links pasted in.

Looks like a bit of task: we would need to "parse" text/html type and translate it to Markdown. Didn't know lexical editor had it (and that we want this feature).

Refinement notes:

Use external library for translating HTML from clipboard to Markdown. Images links should be fine.


X NO_PERMISSION During Pixel Creation

While trying to attach a TikTok pixel to our google tags , we receive the error code "NO_PERIMSSION" which is not a code that is described on the business center help desk page - I understand what it means, but what can I do to fix this?
Thank you!

@DiscoverHolland Could you walk me through how you arrived at this error?

Hi,
I made my video in the creator by having the app connected to my phones photos / videos, and once I was done creating my video, I went to record the audio. I recorded the audio bit by bit, purposefully leaving breaks in-between some sentences, and went to play it back. The playback did not include my purposeful breaks, and it cut the end of each sentence with the start of the next one. The record button would acknowledge my breaks with a small caption saying "you can't record over current audio".
I ended up making the video and recording the audio in another app, and then just adding music to it in TikTok.
I tried a few different times to record, after closing out of the app, restarting my phone, uninstalling and reinstalling and so forth -Nothing has fixed this glitch.
Let me know what else you need to help diagnose.
Jessi McKim
Social Media Manager
<EMAIL_ADDRESS>616.394.0000
Holland Area Convention
& Visitors Bureau
78 East 8th Street
Holland, MI 49423
www.holland.orghttps://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.holland.org%2F&data=05|01|jessi%40holland.org|78871ff57c024c6fea4e08da8b6484d3|807c1fb85c1546eca4cf9cd5c0dd77ac|1|0|637975561105984778|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=7vysMgUYzIrFsf5DmZFlug6824GaKDwGcI3zA2qqOvQ%3D&reserved=0
From: eddie-tiktok @.>
Sent: Wednesday, March 1, 2023 10:45 PM
To: tiktok/gtm-template-pixel @.>
Cc: Jessi McKim @.>; Mention @.>
Subject: Re: [tiktok/gtm-template-pixel] X NO_PERMISSION During Pixel Creation (Issue #5)
You don't often get email from<EMAIL_ADDRESS>Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
@DiscoverHollandhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDiscoverHolland&data=05|01|Jessi%40Holland.org|2a8f3bf72ad74d54fb5608db1ad09007|807c1fb85c1546eca4cf9cd5c0dd77ac|1|0|638133255330598024|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=yFMSSYviqtEuoaS3ujuVS5JncKBR9tQS5eeRdoJoz04%3D&reserved=0 Could you walk me through how you arrived at this error?

Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftiktok%2Fgtm-template-pixel%2Fissues%2F5%23issuecomment-1451253958&data=05|01|Jessi%40Holland.org|2a8f3bf72ad74d54fb5608db1ad09007|807c1fb85c1546eca4cf9cd5c0dd77ac|1|0|638133255330598024|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=HywX6aazrDpt2e6Fjv%2F14RqXEG8wfBBEdjnIU7CLtpM%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA6G2GBFUO5JJLBCWEJPEEHDW2AJVNANCNFSM6AAAAAAVMRUFPA&data=05|01|Jessi%40Holland.org|2a8f3bf72ad74d54fb5608db1ad09007|807c1fb85c1546eca4cf9cd5c0dd77ac|1|0|638133255330598024|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=yk3jd2rPhcOfFQrd56BH%2FPUKCivVBlsaxiDnhMmDWiA%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Hi there, sorry we're not able to help you with in-app related issues. We're only the maintainers of this repo, the Google Tag Manager template. Maybe you can try reaching out on the app itself, or through TikTok for Business.


make appetize work for android. fix #4486

issue #4486

Hey @louislarry, this looks great, thanks for your pull request. I added some comments before it's ready to be merged 👍

Hi @KrauseFx, I've added the changes as per your comments.

Perfect, thanks @louislarry 👍 Is that all we need to change? Did you test this locally? I added one comment before it's ready 👍

OK, I made the change. That's all we need to change @KrauseFx . I have tested it locally and it works.

This is great, thanks for updating and testing this PR, awesome work 👍


Fix filter sensor missing window_size argument

Description:
Fixes issue in https://community.home-assistant.io/t/how-to-use-the-new-filter-sensor/46454/30
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):
sensors:
 - platform: filter
   name: "Stroomverbruik"
   entity_id: sensor.power_consumption
   filters:
      - filter: throttle
        window_size: 20

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Ready! Hope it makes it to 0.68.2


do not auto select a default branch if current branch doesn't have a remote

Testing microsoft/vscode#119527

create a new branch without pushing it to a remote (e.g. "aweinand/foo")
make sure to be on that branch (shown in the status bar)
in the "Create Pull Request" view create a new pull request

Observe: In the "Merge Change From" section the branch selector shows the first branch of the list of all branches ("TylerLeonhard/ignore-this") which is totally unrelated to the currently selected branch shown in the status bar.

This choice is confusing.
I suggest in this case to not select a branch in the branch selector and explain somewhere (e.g. as the placeholder text) that the current branch has not yet pushed to a remote.

To verify:

Use nightly version of the GHPRI extension
Create a new branch but do not publish it
Start creating a PR

The unpublished branch name should show up in the dropdown and be selected by default. Trying to create the PR will result in a dialog asking if you want to publish the branch.


1.10.2: keeps pushing same layers to the hub

I'm pushing two images to the hub. Both images share some layers.

If I push the first image twice, no layer is pushed the second time. This is expected.
If I push the second image, the shared layers are pushed again. This is expected.
If I push the first image again, some shared layers are pushed again. This I didn't expect!

docker pull busybox
docker tag busybox:latest dgageot/busybox
docker tag busybox:latest dgageot/busybox2

docker push dgageot/busybox
The push refers to a repository [docker.io/dgageot/busybox]
5f70bf18a086: Pushed
16a7ebd37800: Pushed

docker push dgageot/busybox
The push refers to a repository [docker.io/dgageot/busybox]
5f70bf18a086: Layer already exists
16a7ebd37800: Layer already exists

docker push dgageot/busybox2
The push refers to a repository [docker.io/dgageot/busybox2]
5f70bf18a086: Pushed
16a7ebd37800: Pushed

docker push dgageot/busybox
The push refers to a repository [docker.io/dgageot/busybox]
5f70bf18a086: Layer already exists
16a7ebd37800: pushed

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

@dgageot I think this may be a duplicate of https://github.com/docker/docker/issues/18866, and may be due to Docker Hub not yet being on registry 2.3 (see https://github.com/docker/docker/issues/18866#issuecomment-192768001). Can you reproduce this if you're pushing to a private 2.3 registry?

Yes it's a duplicate. Thanks @thaJeztah


osinfo-db: 20240510 -> 20240523

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/osinfo-db/versions.
meta.description for osinfo-db is: Osinfo database of information about operating systems for virtualization provisioning tools
meta.homepage for osinfo-db is: https://gitlab.com/libosinfo/osinfo-db/
meta.changelog for osinfo-db is: https://gitlab.com/libosinfo/osinfo-db/-/commits/v20240523
Changes: https://gitlab.com/libosinfo/osinfo-db/-/compare/v20240510...v20240523
Prev: https://github.com/NixOS/nixpkgs/pull/310841
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 20240523 with grep in /nix/store/z0yrm8vncnxn2spbykbd5li0g4q0j6wk-osinfo-db-20240523
found 20240523 in filename of file in /nix/store/z0yrm8vncnxn2spbykbd5li0g4q0j6wk-osinfo-db-20240523

Rebuild report (if merged into master) (click to expand)

27 total rebuild path(s)

27 package rebuild(s)

First fifty rebuilds by attrpath

cinnamon.cinnamon-gsettings-overrides
cinnamon.nemo-fileroller
cinnamon.nemo-with-extensions
collision
dropbox-cli
eiciel
gnome-photos
gnome.file-roller
gnome.gnome-boxes
gnome.gnome-control-center
gnome.gnome-terminal
gnome.nautilus
gnome.nautilus-python
gnomeExtensions.gtk4-desktop-icons-ng-ding
guestfs-tools
insync-nautilus
libosinfo
nautilus-open-any-terminal
nautilus-open-in-blackbox
osinfo-db
pantheon.file-roller
pantheon.file-roller-contract
phosh
phosh-mobile-settings
tracker-miners
virt-manager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/z0yrm8vncnxn2spbykbd5li0g4q0j6wk-osinfo-db-20240523 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A osinfo-db https://github.com/r-ryantm/nixpkgs/archive/01e34893f2ac1da23b4d110ade59a25d738c79e5.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/01e34893f2ac1da23b4d110ade59a25d738c79e5#osinfo-db

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/z0yrm8vncnxn2spbykbd5li0g4q0j6wk-osinfo-db-20240523
ls -la /nix/store/z0yrm8vncnxn2spbykbd5li0g4q0j6wk-osinfo-db-20240523/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

38 packages built:

cinnamon.cinnamon-gsettings-overrides
cinnamon.nemo-fileroller
cinnamon.nemo-with-extensions
collision
dropbox-cli
dropbox-cli.nautilusExtension
eiciel
eiciel.nautilusExtension
gnome-photos
gnome-photos.installedTests
gnome.file-roller
gnome.gnome-boxes
gnome.gnome-control-center
gnome.gnome-control-center.debug
gnome.gnome-terminal
gnome.nautilus
gnome.nautilus-python
gnome.nautilus-python.dev
gnome.nautilus-python.devdoc
gnome.nautilus-python.doc
gnome.nautilus.dev
gnome.nautilus.devdoc
gnomeExtensions.gtk4-desktop-icons-ng-ding
guestfs-tools
insync-nautilus
libosinfo
libosinfo.dev
libosinfo.devdoc
nautilus-open-any-terminal
nautilus-open-any-terminal.dist
nautilus-open-in-blackbox
osinfo-db
pantheon.file-roller-contract
phosh
phosh-mobile-settings
tracker-miners
virt-manager
virt-manager.dist

Maintainer pings
cc @bjornfor for testing.

We should backport this and https://gitlab.com/libosinfo/osinfo-db/-/commit/0ce5c2a7604f00e7d38574caa7f6f5eb81009a9b to 24.05 so that GNOME Boxes can find NixOS ISOs (once https://github.com/NixOS/nixpkgs/pull/323148 is ready).


Introduce client image field and component

Pagexpress not provide any uploading, and storing images features. Until the time when real upload will be possible, we need to provide a temporary solution.
ClientImageField component should allow simulating upload image:

If the image path is not an absolute type then it should use the pattern to merge the image assets path from the site config with the provided file name.
If the image path is absolute then not modify this path in any way
Should have a checkbox to mark whether the image has a retina version and choose the ratio version from select. Retina source should have srcset value and sources array:
Output example

{
  src: '/assets/images/component/header/hero.png',
  srcset: '/assets/images/component/header/hero.png 1x<EMAIL_ADDRESS>2x',
  sources: [
    '/assets/images/component/header/hero.png',
<EMAIL_ADDRESS>  ]
}

Closed via #157


[BUG] Neural Amp Modeler falling back to CPU instead of using the GPU

I followed your instructions for installing nam found here : https://neural-amp-modeler.readthedocs.io/en/latest/installation.html and I am still getting the error that no gpu is detected and that the nam local trainer is going to fall back to the CPU. From the research I did my GPU (nvidia GTX1650) should work but for some reason the nam trainer keeps falling back to the CPU. Can you please help me figure out what is going wrong?

You can close this after clearing the past installation attempt and restarting nam is working at full speed now and using my gpu as intended. Thank you for your patience.

@binky100 glad to hear it.
Any idea what the problem was in the end?


[meta] Roadmap to v0.4.0

It's been a couple months since a release, we should see what's still needed. Are there any crucial features or bugs needing to be fixed?
#60 is more of a v0.5.0 issue since I don't plan on finishing this in the next week.

I'm going to comment this here as well, but I think I've found out why the websocket library occasionally spams opcode errors. I've posted what I've found on the issue, but the current maintainer hasn't responded yet. I've tried to fix it myself but I can't find an elegant way to handle it, so I'm waiting on his response.
Anyway, I think it might be beneficial to wait at least a few days to see if that bug gets patched before pushing a new crate version.

I agree, would be good to see if this can be patched soon before a release.

If 0.4.0 is waiting on a patch for that, it may be a good idea to release a small update before 0.4.0 since categories seem to break the library now.

We're testing a custom fork of rust-websocket that fixes the issues, and now that we have a multi-sharding fix pushed, v0.4 should be ready to go. I'm just writing the changelog for it, should see a release in the next couple of days.

Closed by 0fcf1d3, v0.4.0 has been released on crates.io. You can read the release details here.


Bug: Apify.call() should thrown on act error

Now it silently ignores the error!

Apify.call() returns an object of run with output added as run.output. I think that this is the reason why we don't throw if run doesn't succeed. If we throw when run gets failed/aborted/timeouted then we should probably add some option throwIfNotSucceeded (default to true). Because  if you don't want to fail your act run if call fails then this option is the only way how to get to run object. Try/catch doesn't get you the object of failed run from call.

Or maybe we can define a special Error type for this situation and add the run object to it.

Fixed.


[9.x] Strict mode for RedisStore: preserve type of numeric values

In order to optimize memory consumption and make RedisStore::increment() and RedisStore::decrement() work using the built-in Redis incrby and decrby commands, numeric values are stored as their base 10 string representation. Sadly, it causes a type inconsistency issue. If we get a numeric string from Redis, we can't know if the original value was string or int/float. Currently Laraval returns all numeric values as string:
Cache::put('k', 1);
dump(is_int(Cache::get('k'))); // Must be true, but it is false.
dump(is_string(Cache::get('k'))); // Must be false, but it is true.

This PR tries to fix this type inconsistency by adding a "strict" mode option to Redis cache configuration, with the default value being true. It may be a breaking change. If the non-strict behavior is more appropriate for an existing application, strict should be set to false.
Alternative choices regarding backward compatibility and the default behavior:

Don't give any config option to disable the strict mode. Basically it was a bug to not preserve types, so why giving option to stick with the bug? Besides, other cache drivers don't have such option.
Make sure by default strict mode is disabled so it doesn't cause an extra pain during the major upgrade. In case you choose this option you may consider sending a PR to 8.x as well. But be aware of the optional parameter to the constructor of RedisStore.

Let me know if you prefer an alternative choice or the current PR. I can add some relevant tests later.
Note: incrby and decrby Redis commands doesn't work with float values. Also Redis doesn't store non-integer numbers in a compressed way.
Fixes #31345

There are some other inconsistencies on how cache drivers treat numbers and increment/decrement functions:

They may or may not preserve data types.
The type of numbers they support might be signed, unsigned, integer, float, or even something else.
If the key is missing in the cache, increment and decrement does nothing in some drivers, set the value to the increment/decrement value in some, and 0 in some others. If any value set, the key wont expire.

Not all of the inconsistencies can be solved, but some can.
We can also add some notes to the documentations regarding these issues.

I'm going to close this for now. Feel free to resubmit once you're ready to work on this again 👍

@driesvints I haven't come to a conclusion on how the issues should be handled. Is it OK to just add some notes to docs? e.g:

{note} The supported numeric data types for increment and decrement methods varies across the drivers. For example, Memcached supports unsigned integers, but not negative or float numbers.
{note} Some drivers doesn't preserve the type of numeric values.
{note} The behavior of calling increment and decrement on missing keys varies across drivers.

@halaei just feel free to attempt a PR


Can this algorithm be applied to visual point clouds?

Hey, do you try it? How well does this algorithm work?

Could you please explain the meaning of visual point clouds in detail?


[Question] Can IMediatR be registered as Singleton?

I'm using a library that registers a type I define (that consumes IMediatr) as Singleton. Mediatr is registered in the ServiceCollection extensions as Scoped, so I'm getting an InvalidOperationException: Cannot consume scoped service 'MediatR.IMediator' from singleton 'Xyz.Abc' exception.
I can circumvent the ServiceCollection extensions and do my own registration if need be, just wanted some advice on lifetime.
FYI: This is for an ASP.NET Core web api style app.
Thanks!

Does Xyz.Abc need to be a singleton?

I've asked the library implementor over there too, though trying to make it scoped leads me to make it's parent scoped and then get stuck anyway... https://github.com/graphql-dotnet/graphql-dotnet/issues/478#issuecomment-382300574

You could create your own scope inside the singleton instance and retrieve instances from it. For example:
public MySingletonService(IServiceProvider serviceProvider)
{
    _serviceProvider = serviceProvider;
}

public void Foo()
{
    using (var scope = _serviceProvider.CreateScope())
    {
        var scopedProvider = scope.ServiceProvider;
    }
}

Thanks for the tips, I've ended up creating instances of IMediator within a scope I create inside my GraphQL resolvers. I'm still interested to find out how compatible IMediator is as a singleton though if anyone has any info. Thanks again.

The problem with a singleton instance of Mediator is the reverse of your problem: you'll end up with errors about resolving scoped services in request handlers from within a singleton Mediator.

Ah yes of course, because AddMediatR scans for and adds the request handlers as scoped anyway, so it's not quite reversed as you say but if I make IMediator a singleton it just fails one layer further down with the same issue.

Actually they are added as Transient, so I think that'd be ok.

The same problem applies to transient services as well, you'll end up with singleton instances of them. Plus transient services can consume scoped services.

I'm not across MediatR's implementation. I thought that an IRequestHandler would be created each time one is needed by MediatR from fresh. But sounds like you're saying they are only grabbed once from the service provider and re-used.

They are, but they will be resolved from the root service provider which means you effectively turn them into singletons as they won't be disposed until the application stops. This could lead to all sorts of problems when you're depending on services being disposed to close database connections etc.

The general rule of thumb is singletons can only depend on other singletons, all the way down. This is true really for any DI container. If you don't want this behavior, you have two options:

Don't make your service a singleton
Resolve dynamically through a scoped container on-demand (inside a method or otherwise)

This is also true for any DI container that supports scoped/nested containers. It's exactly what ASP.NET Core does per request  - so in your case, your choices are a bit limited.
There's nothing preventing you from registering IMediator as a singleton, HOWEVER, this forces every handler, and every handler's dependencies, to be singleton.
You could also provide your own implementation of IMediator to do what the ASP.NET Core code does above - create a scope and resolve handlers from that scope. I don't because I don't want to couple the Mediator implementation to scopes, and I have the control of just registering all the dependencies as Transient.

I forgot to mention - transients can depend on singletons. Just not the other way around.

Thanks @jbogard and @henkmollema, appreciate the detailed descriptions and help here. I'll just create the IMediator in my own scope as needed within the singleton. I made a nice little wrapper that takes a context and a Func creates the scope, grabs the IMediator from that scope and then runs given Func with mediator instance.

What would be the problem if the Mediator asked the container every time it needed an object? Wouldn't that allow it to be a singleton?

Nope, because that container instance could be a separate, scoped instance.
On Mon, May 28, 2018 at 3:35 PM Andre Carlucci<EMAIL_ADDRESS>wrote:

What would be the problem if the Mediator asked the container every time
it needed an object? Wouldn't that allow it to be a singleton?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jbogard/MediatR/issues/257#issuecomment-392599531,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYMpGqJggnYpLoleDz83O_W_xvSr16ks5t3F-NgaJpZM4TZlQq
.

In that very unusual usage, the user could just register the IMediator as scoped as well, couldn't he?

For anyone who is still looking at this.
Makes sense to keep Mediator Scoped to limit domain of faults. You can persist mediator in your singleton by running:
var _mediator = (IMediator)serviceProvider.CreateScope().ServiceProvider.GetService(typeof(IMediator));

Store this object in your singleton and the initialized service will be persistent with your singleton service.
Alternatively you can create a function that returns you the mediator, call and keep based on your own disposing requirements.
public IMediator GetMediator(IServiceScopeFactory serviceProvider)
{
   return (IMediator)serviceProvider.CreateScope().ServiceProvider.GetService(typeof(IMediator));
}

I have tried to use this "CreateScope" on my Singletons, well, worked. But since my Requests uses DbContext (with npgsql), I have problems connecting to database... for the first run, everything is ok, after that, I receive a lot of error from npgsql. So, I changed my graphql schema to Scoped.. and now everything works as expected.
I wanted to make it work as Singleton, but couldn't make it happen.

It shouldn’t all be singleton. I don’t think you want DbContexts sticking
around forever.
On Thu, Dec 13, 2018 at 7:46 AM Rodrigo Boratto<EMAIL_ADDRESS>wrote:

I have tried to use this "CreateScope" on my Singletons, well, worked. But
since my Requests uses DbContext (with npgsql), I have problems connecting
to database... for the first run, everything is ok, after that, I receive a
lot of error from npgsql. So, I changed my graphql schema to Scoped.. and
now everything works as expected.
I wanted to make it work as Singleton, but couldn't make it happen.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jbogard/MediatR/issues/257#issuecomment-446973661,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYMqiDHzvGXVxJuJf4fNKr528Irts-ks5u4lpDgaJpZM4TZlQq
.


Expected Length of encoded data

Can you say what the expected string length of the encoded private string would be, given a private string of N char? Is there a formula?

Wow, great question. I can come up with a general formula for a maximum potential length based on bytes of input:
p = (b * 9) - 1
Where p is the length of the encoded private string and b is the number of bytes of the unencoded private string.
To make sense of this, it helps to walk through the conversion process. Each byte of raw private input is converted to a binary value, which can take up to 8 bytes of data. But the reason I say "up to" is that not all ASCII characters wind up taking all 8 bytes (a full octet); many take 7 or even 6 bytes, depending on the character. For instance:

The number 7 converts to 110111, which takes 6 bytes.
The letter G converts to 1000111, which takes 7 bytes.

Because of the variable length of binary data, Steganographr needs to add a special character between each byte of encoded data so it knows where one binary representation ends and the next begins. So, that adds one extra byte of encoded data that goes "between" the existing encoded octets.
An example of multibyte/Unicode input is the character は, which converts to<PHONE_NUMBER>00000110101111, which is actually three separate bytes (each represented by a full 8 byte octet). Separated with a space, this would look like 11100011 10000001 10101111.
If every converted byte took a full octet, I wouldn't need to worry about a spacer byte—I could just smash all of the binary encoded data together and then when converting back I’d break it apart by splitting it at every 8th character. But, combining the inputs in the examples above ("7Gは") you can see how you'd get converted binary data of different lengths, hence the need for the spacer.
So, back to the formula: multiplying the number of bytes by 9 accounts for a maximum of 8 binary bytes plus 1 spacer byte, but there is no spacer byte after the final original byte (which is why the - 1 part is there at the end).
Everything above discussed bytes... but what about characters—which is what you actually asked about? Well, for all of the reasons mentioned above, the answer is still "it depends". Though I think in the case of Japanese, things are pretty predictable: everything in the Unicode CJK Unified Ideographs block takes 3 bytes (so, that's all kanji), and I believe that all hiragana and katakana also take 3 bytes. Given that, you can actually make a more predictable formula that provides the length of the encoded message based on the number of Japanese characters:
p = (c * 25) - 1 (where c is the number of Japanese characters)
Putting this to the test:

Private input of 1 character, 水: 1 * 27 - 1 = 26 and Steganographr encodes this to 26 hidden bytes
Private input of 2 characters, です: 2 * 27 - 1 = 53 and Steganographr encodes this to 53 hidden bytes
Private input of 9 characters, これはテストです。: 9 * 27 - 1 = 242 and Steganographr encodes this to 242 hidden bytes

The final takeaway here is that longer private messages can generate really large strings. 😄

Appreciate the well considered answer! I'm testing storing the various strings in a database, and wanted to size the fields.
Seems like this info is a good candidate for a wiki page in this repo 😀

In the db that I'm testing, there's a text string field of fixed length that you can set, and a "multi line text" field that can accept "unlimited" chars. The latter's what I chose to hold the encoded data, so I don't need to worry about overflow errors.

Great idea re: a wiki. Will set one up soon!

Finally added the wiki, and seeded it with an article from this issue! https://github.com/neatnik/steganographr/wiki/Private-string-length


neovim support

Not sure if vim-sharp is supported hosted in neovim, maybe this is problem.
I've installed vim-sharp, supertab, syntastic, all by vim-plug, and added code needed to load it only for fsharp.
I've also ran install.sh in vim-fsharp, provided xbuild path in .vimrc, but each time I open .fs file that is actually part of .fsproj or any other .fs(x) file, I'm not getting no command like :FSBuildProject, and it doesn't recognizes any :FS* command.
I can see that requirement is vim 7.3 and python. I have installed python 2.7.11. And latest neovim 0.1.2, both python and neovim compiled from source with Homebrew on latest Mac OS X El Capitan.
If is the problem with having it running from neovim, will there be any support for neovim?
Or if anybody have any experience with neovim and vim-fsharp, do you know how to set it up properly?
Thanks

Hi - I have never tried neovim and I am not sure what is involved in getting it to work there. Does neovim interpret vimscrip?

Thanks for reply. From what I know it is, they'll use lua in future, but this is still not implemented.
For example fzf.vim is written completely in vimL/vimscript and like vim-plug works without any problem, I also get tab completion, but only for the words in current document.
Probably something else is problem maybe python, to bad I don't know how to get any logs (if any) to see where things go wrong, or is there is any way to investigate what is going wrong?

you could try enabling debug in here: https://github.com/fsharp/vim-fsharp#settings
not sure it will tell you much though.

Found out what was the problem, so if any will have a problem in future.
To run python plugins in neovim there is need to install pip package neovim.
But seems that this is a problem in El Capitan outside of virtualenv because of Mac system integrity checks or whatever is called.
But it can be installed with --user switch.
pip install --user  neovim
Now loading is significantly slower, when I open F# file, but it works with neovim!
Thanks again @kjnilsson

Oh great! :) yes first load is always slow due to having to wait for the
background process to start. After that it should be less slow to open new
fsharp files (hopefully).
On Mon, 15 Feb 2016 at 10:26 Kornelije Sajler<EMAIL_ADDRESS>wrote:

Found out what was the problem, so if any will have a problem in future.
To run python plugins in neovim there is need to install pip package
neovim.
But seems that this is a problem in El Capitan outside of virtualenv
because of Mac system integrity checks or whatever is called.
But it can be installed with --user switch.
pip install --user neovim
Now loading is significantly slower, when I open F# file, but it works
with neovim!
Thanks again @kjnilsson https://github.com/kjnilsson
[image: screen shot 2016-02-15 at 11 21 04]
https://cloud.githubusercontent.com/assets/40003/13045990/92981254-d3d6-11e5-8ccc-8cb01a46f593.png
—
Reply to this email directly or view it on GitHub
https://github.com/fsharp/vim-fsharp/issues/40#issuecomment-184152614.

so can we close this issue now?

Yes, sure


"Found snapshot with no associated instance" preventing schema upgrade

Required information

Distribution: Ubuntu
Distribution version:  18.04 LTS / snap
The output of "lxc info":

config:
  core.https_address: x.x.x.x:8443
  core.trust_password: true
api_extensions:
...
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses:
  - x.x.x.x:8443
  architectures:
  - x86_64
  - i686
  certificate: |
    xxx
  certificate_fingerprint: xxx
  driver: lxc
  driver_version: 3.2.1
  kernel: Linux
  kernel_architecture: x86_64
  kernel_features:
    netnsid_getifaddrs: "true"
    seccomp_listener: "true"
    shiftfs: "false"
    uevent_injection: "true"
    unpriv_fscaps: "true"
  kernel_version: 5.0.0-27-generic
  lxc_features:
    mount_injection_file: "true"
    network_gateway_device_route: "true"
    network_ipvlan: "true"
    network_l2proxy: "true"
    network_phys_macvlan_mtu: "true"
    seccomp_notify: "true"
  project: default
  server: lxd
  server_clustered: false
  server_name: atlas
  server_pid: 122639
  server_version: "3.16"
  storage: zfs
  storage_version: 0.7.12-1ubuntu5

Issue description
Upgrading to 3.17 failed because the DB consistency check failed: "Found snapshot mytest/snap0 with no associated instance". This references a deleted container/snapshot. I don't remember any unusual circumstance when deleting this container.
How can this be worked around? Is there a way to clean up or rebuild the DB?

Write a patch.global.sql file in /var/snap/lxd/common/lxd/database containing:
DELETE FROM containers WHERE name="mytest/snap0";
LXD should then run that on startup before trying the upgrade again.

@zrav did that work?

@stgraber yes, that seems to have done the trick. Thanks you.

Got the same issue but then after a lxd.migratie from version 3.0.3 to 3.17
INFO[10-03|16:38:41] Initializing global database
DBUG[10-03|16:38:41] Dqlite: connected address=1 attempt=0
INFO[10-03|16:38:41] Updating the LXD global schema. Backup made as "global.bak"
DBUG[10-03|16:38:41] Running pre-update queries from file for global DB schema
DBUG[10-03|16:38:41] Updating global DB schema from 7 to 8
DBUG[10-03|16:38:41] Updating global DB schema from 8 to 9
DBUG[10-03|16:38:41] Updating global DB schema from 9 to 10
DBUG[10-03|16:38:41] Updating global DB schema from 10 to 11
DBUG[10-03|16:38:41] Updating global DB schema from 11 to 12
DBUG[10-03|16:38:41] Updating global DB schema from 12 to 13
DBUG[10-03|16:38:41] Updating global DB schema from 13 to 14
DBUG[10-03|16:38:41] Updating global DB schema from 14 to 15
DBUG[10-03|16:38:41] Updating global DB schema from 15 to 16
DBUG[10-03|16:38:41] Database error: &errors.errorString{s:"failed to apply update 15: Found snapshot ghostblog1804/11-10-18-01-57 with no associated instance"}
EROR[10-03|16:38:41] Failed to start the daemon: failed to open cluster database: failed to ensure schema: failed to apply update 15: Found snapshot ghostblog1804/11-10-18-01-57 with no associated instance
lxc list don't show any snapshots.
tried the patch.global.sql file in /var/snap/lxd/common/lxd/database but this doesn't seem to work.
Now I downgraded the snap package to 3.16 and the containers are running again.
Inspecting the sql global dump.
INSERT INTO "containers" VALUES(1127,1,'ghostblog1804/11-10-18-01-57',2,1,0,1541815025,0,0,'',1,-62135596800);
INSERT INTO "containers" VALUES(1204,1,'ghostblog1804/11-17-18-01-57',2,1,0,1542419856,0,0,'',1,-62135596800);
INSERT INTO "containers" VALUES(1292,1,'ghostblog1804/11-25-18-01-58',2,1,0,1543111087,0,0,'',1,-62135596800);
INSERT INTO "containers" VALUES(1604,1,'ghostblog1804/12-23-18-01-56',2,1,0,1545530167,0,0,'',1,-62135596800);
INSERT INTO "storage_volumes" VALUES(1133,'ghostblog1804/11-10-18-01-57',1,1,0,'',0,1);
INSERT INTO "storage_volumes" VALUES(1210,'ghostblog1804/11-17-18-01-57',1,1,0,'',0,1);
INSERT INTO "storage_volumes" VALUES(1298,'ghostblog1804/11-25-18-01-58',1,1,0,'',0,1);
INSERT INTO "storage_volumes" VALUES(1610,'ghostblog1804/12-23-18-01-56',1,1,0,'',0,1);
What is the best wat to delete those database objects?

Thanks, that worked...


Populate RoleLastUsed value

Using moto 4.2.0, PyTest 7.4.0 in a venv.
Good morning.
I'm wanting to set a value in the RoleLastUsed key, using the get_role() method with the iam client.
I've done the below, but the value is still {}. Long-term I'd like to be able to set the RoleLastUsed value to be a custom date in the past, similar to https://github.com/getmoto/moto/issues/5927
# Setup
@pytest.fixture
@mock_iam
def aws_credentials():
    """Mocked AWS Credentials for moto."""
    os.environ["AWS_ACCESS_KEY_ID"] = "testing"
    os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
    os.environ["AWS_SECURITY_TOKEN"] = "testing"
    os.environ["AWS_SESSION_TOKEN"] = "testing"
    os.environ["AWS_DEFAULT_REGION"] = "eu-west-2"

@pytest.fixture
def iam_client(aws_credentials):
    with mock_iam():
        yield boto3.client("iam")

@pytest.fixture
def s3(aws_credentials):
    with mock_s3():
        yield boto3.client("s3")

@pytest.fixture
def sts(aws_credentials):
    with mock_sts():
        yield boto3.client("sts")

##################

def test_attach_jan_1st_role_to_user(iam_client, s3, sts):
    role_name = f'role_name_created_jan_1st'
    user_name = "test.user"
    bucket_name = "bucket_name"

    response = iam_client.create_role(
        RoleName=role_name,
        AssumeRolePolicyDocument="example policy"
    )

    role_arn = response["Role"]["Arn"]

    s3.create_bucket(Bucket=bucket_name,
        CreateBucketConfiguration={"LocationConstraint": "eu-west-2"}
        )

    iam_client.create_user(UserName=user_name)

    iam_client.attach_user_policy(
        UserName=user_name,
        PolicyArn="arn:aws:iam::aws:policy/AmazonS3FullAccess"
    )

    assumed_role = sts.assume_role(
        RoleArn = role_arn,
        RoleSessionName = "temp_session"
        )

    assumed_role_creds = assumed_role["Credentials"]

    s3 = boto3.client(
        "s3",
        aws_access_key_id = assumed_role_creds["AccessKeyId"],
        aws_secret_access_key = assumed_role_creds["SecretAccessKey"],
        aws_session_token = assumed_role_creds["SessionToken"]
        )

    response = s3.list_buckets()

    r = iam_client.get_role(RoleName=role_name)
    print(r)

Thanks in advanced.

Hi @WesleyHindle, thanks for raising this - I've submitted a PR to fix this.
You can set this value manually like so:
iam: IAMBackend = iam_backends[DEFAULT_ACCOUNT_ID]["global"]
iam.get_role(role_name).last_used = datetime.datetime.utcnow()


Fix README's  formatting of --skip

This PR formats the <pre> text for --skip like all the other options, so that it reads more nicely when the whole document is rendered.

Thanks!


Please add sample project for remote testing with docker

ITNOA
I do not understand what to doing with this doc, please add sample project for this and add link in doc

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 90ec9455-ef64-8854-94bc-9be28887a6a4
Version Independent ID: 9adeea5e-7ba1-065f-5de0-aae9147f9c85
Content: Remote Testing in Visual Studio - Visual Studio (Windows)
Content Source: docs/test/remote-testing.md
Product: visual-studio-windows
Technology: vs-ide-test
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

I think https://stackoverflow.com/q/76617282/1539100 example is good

I like to added

Adding the example

@soroshsabz Update will be live by 12:00 noon PST. Please take a look and let me know if you have any feedback.


Fix memopt with CGLS

I have a memopt version of CGLS in the fix_test branch.
There are some problems with CGLS and the fix_test.py script, which in which I create LinearOperatorMatrix A and try to find a solution of Ax=b by minimising Norm2Sq(A,b).
It seems FISTA and GradientDescent do a decent job and find the x that produces b if multiplied with A.
The CGLS calculated objective quickly goes to 0, while the Norm2Sq calculated value is way higher. For comparison FISTA and GradientDescent at 10 iteration have about 1e-2 as objective.
     Iter   Max Iter     Time/Iter            Objective
                               [s]
        0       1000         0.000          5.56921e+00
5.5692121933249155 12.766902541140837<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
        2       1000         0.000          2.52846e-03
0.002528461847896568 8.66852306854625<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
        4       1000         0.000          1.24877e-16
1.2487671176019911e-16 8.58274860845296<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
        6       1000         0.000          1.00324e-19
1.0032390085843278e-19 8.58274860845296<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
        8       1000         0.000          3.85867e-32
3.858665060038883e-32 8.58274860845296<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution

I tried this tomo example and it works well
     Iter   Max Iter     Time/Iter            Objective
                               [s]
        0        500         0.000          6.29123e+05
629122.9237460945<PHONE_NUMBER>32778<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
       10        500         0.013          7.42781e+00
7.427810704824458 7.427728530297369<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution
       20        500         0.014          1.55764e+00
1.557635366601495 1.5576228600817708<---------this is the output of callback, CGLS objective and Norm2Sq evaluated at the solution

Switch to fix_test branch but cannot run the file:
File "/Users/evangelos/Desktop/Projects/CCPi/test_block/CCPi-Framework/Wrappers/Python/wip/fix_test.py", line 81, in
b = vgb.allocate(2, dtype=numpy.float32)
File "/anaconda3/envs/ccpi_py36_new/lib/python3.6/site-packages/ccpi/framework/VectorGeometry.py", line 51, in allocate
out = VectorData(geometry=self, dtype=self.dtype)
File "/anaconda3/envs/ccpi_py36_new/lib/python3.6/site-packages/ccpi/framework/VectorData.py", line 58, in init
super(VectorData, self).init(out, deep_copy, None)
File "/anaconda3/envs/ccpi_py36_new/lib/python3.6/site-packages/ccpi/framework/framework.py", line 333, in init
len (dimension_labels) == self.number_of_dimensions:
TypeError: object of type 'NoneType' has no len()

@epapoutsellis please try it now.

Fista , think is ok. How do you choose rate for GD? CGLS is wrong for sure

You can use 1/3 of the Lipschitz constant of the objective function. If you use the Lipschitz constant as rate GD diverges.

This seems to be all right in the #306


SystemError: initialization of pinocchio_pywrap raised unreported exception

I just install pinocchio using conda install -c conda-forge pinocchio on a 20.04 Ubuntu machine. and I got the following error when importing it
>>> import pinocchio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bolun/miniconda3/envs/solo_env/lib/python3.8/site-packages/pinocchio/__init__.py", line 6, in <module>
    from .pinocchio_pywrap import *
SystemError: initialization of pinocchio_pywrap raised unreported exception

This did not occur when following the same procedure for installation on a MacBook. Can someone help me take a look and see what might be the issue?
Thanks in advance.

@proyan will take care of the answer.

Hi BolunDai0216,
Unfortunately, boost python hides the exceptions that python raises, and it becomes difficult to debug. This was reported in boost python some time ago:
https://github.com/boostorg/python/issues/280
If you wish to debug this issue, I would suggest that you try to install the more updated version of boost python and try to see what the python raised error is.
However, if that is not possible for you, the only option that you have is to wade blindly. I would suggest that you check and re-check your installation directories, and see if there are ubuntu apt-installed packages that are clashing with the conda installations. These may include urdfdom*, libboost*, eigen3 etc. If I had to guess, I would say that you have multiple installations that are confusing conda.

I just install pinocchio using conda install -c conda-forge pinocchio on a 20.04 Ubuntu machine. and I got the following error when importing it
>>> import pinocchio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bolun/miniconda3/envs/solo_env/lib/python3.8/site-packages/pinocchio/__init__.py", line 6, in <module>
    from .pinocchio_pywrap import *
SystemError: initialization of pinocchio_pywrap raised unreported exception

This did not occur when following the same procedure for installation on a MacBook. Can someone help me take a look and see what might be the issue?
Thanks in advance.

I've been able to start Pinocchio cleanly from a clean environment made from a fresh docker image of ubuntu 20.04.
I guess you have multiple install of Pinocchio on your system. Could you check it with locate libpinocchio?

When running locate libpinocchio actually I get nothing back. I do have multiple pinocchio installations on my system. I was able to get it working yesterday by building from source.

I ran updatedb and now I do see multiple libpinocchio
/home/bolun/Documents/pinocchio/build/src/libpinocchio.so
/home/bolun/Documents/pinocchio/build/src/libpinocchio.so.2.6.6
/home/bolun/miniconda3/envs/myenv/lib/libpinocchio.so
/home/bolun/miniconda3/envs/myenv/lib/libpinocchio.so.2.6.4
/home/bolun/miniconda3/envs/solo_env/lib/libpinocchio.so
/home/bolun/miniconda3/envs/solo_env/lib/libpinocchio.so.2.5.6
/home/bolun/miniconda3/pkgs/pinocchio-2.5.6-py38hd23d2ce_1/lib/libpinocchio.so
/home/bolun/miniconda3/pkgs/pinocchio-2.5.6-py38hd23d2ce_1/lib/libpinocchio.so.2.5.6
/home/bolun/miniconda3/pkgs/pinocchio-2.6.4-py310hf3e5c9c_1/lib/libpinocchio.so
/home/bolun/miniconda3/pkgs/pinocchio-2.6.4-py310hf3e5c9c_1/lib/libpinocchio.so.2.6.4
/opt/openrobots/lib/libpinocchio.so
/opt/openrobots/lib/libpinocchio.so.2.6.5
/usr/local/lib/libpinocchio.so
/usr/local/lib/libpinocchio.so.2.6.6

any idea on how to handle this and not confuse conda?

you should remove the one installed with apt and the ones in /usr/local/lib


Add support for Fusion2Spjere

Like we allow for MAX2Sphere
-m custom MAX2Sphere path, default: ./MAX2sphere/MAX2sphere

Should allow user to pass custom path to Fusion2Sphere (-u)
If MAX2Sphere arguement or Fusion2Sphere argument passed by user, script should include that processing step.

Hi! @himynamesdave as it is fusion is there two videos (one from front & other from back)?
If there are two videos(front/back) then will there also be an option for single video for fusion.
As for max there's only one video.

No. For Fusion2sphere option it is always 2 videos (front/back) or 2 jpgs (front back)
Also need to support ability to pass directory of file pairs from frame-maker (https://github.com/trek-view/fusion2sphere/issues/2)

@himynamesdave please let me know if it is working for you. will also be checking it on monday if need be.

@karamvirup can you please complete fusion2sphere-batch, and use fusion2sphere-batch only in this script


File Descriptor Leak

This error doesn't particularly point to CC as the issue however I can't help but assume that it is at fault here since it was the only thing suffering from the consequences of this problem.
java.io.IOException: Cannot run program "sh": error=24, Too many open files
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at jline.internal.TerminalLineSettings.exec(TerminalLineSettings.java:308)
        at jline.internal.TerminalLineSettings.stty(TerminalLineSettings.java:282)
        at jline.internal.TerminalLineSettings.undef(TerminalLineSettings.java:158)
        at jline.UnixTerminal.disableLitteralNextCharacter(UnixTerminal.java:185)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2448)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2372)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2360)
        at net.minecraftforge.server.console.TerminalHandler.handleCommands(TerminalHandler.java:36)
        at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:86)
Caused by: java.io.IOException: error=24, Too many open files
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 9 more

Essentially, there is a file descriptor leak somewhere. It keeps too many file handles open and after a while the server is NOT happy. This prevents ComputerCraft from opening/saving files, but it also prevents the world from saving, and loading old chunks.
Restarting the server fixes the issue - but while this issue is in effect ComputerCraft cannot access any files and really flips out.
A way to reproduce the issue:
while true do
    fs.open("test", w)
end

Simply put, reduction of bad programming would fix this issue however I run a public server and can't really enforce or moderate people's ability to program well.
My suggested solution is to add a file descriptor limit for every individual computer and close file descriptors on reboot/shutdown of the computer automatically.

I'm going to add a limit in CCTweaks-Lua but may I recommend you also suggest this on the ComputerCraft forums/bug tracker - I'd rather this was in ComputerCraft core.

Fixed in CCTweaks-Lua. Do you think you could also post this on the CC issue tracker? I don't really want to have to do this.

Thanks for this!

If you bump the CCTweaks-Lua version to 1.0.11 then it should work correctly. I'm hoping to fix #117 then I'll push a release.

Actually, scratch that: it appears everything is broken.

Apparently 1.0.11 is fine to use, just Travis/Gradle is broken.


add keys.securitytext.org node

Great project & good timing! New node online in main pool (9cec....a4f7): keys.securitytext.org

Hey! Just wondering why you closed this, did you not get your node up and running?

Hey @tdjsnelling -- saw you were refactoring the code base and figured I'd hold off until you were done. Glad to get it back up though!


Visual Studio Code : error AL0304: Length of the identifier cannot exceed 120 characters

I have successfully converted our App to AL code from text code with all steps. but while creating package facing error as below :

I would like to add my DLL into project and then want to add reference to each method from DLL to my code.
Please help me here to add DLL and use DLL's methods under my codebase.
Thanks in Advance!!!

Hi @chavansachin20 ! DotNet is not supported in extensions, as you can see in our FAQ https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions .


can you upload a built version of uabea please

look cool , but i can't use it , why do people "release" useful tools , but you have to build them yourself? i don't know how to do that , why not just upload a built version along side the unbuilt one ?

?
https://github.com/nesrak1/UABEA/releases/tag/v4


VitePress tabs component

Build a Vue v3 tab component to replace the VuePress v1 plugin that is 3 years old and no longer supported. It did not work with VuePress v2. VitePress does not use plugins.

The Tabs component was not all that difficult to create. It has been implemented on this page.
https://vitepress-docs.web.app/explore/#custom-tabs-vue-3x-component
Since the concept has been proven to work this issue will be closed.


Use React Helmet

For meta tags or simply setting titles. The library itself isn't big.

This issue has been solved in https://github.com/busyorg/busy/pull/449.


ks pkg installs fails if pkg doesn't contain any subdirectories

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
$ ks registry add kausal  https://github.com/kausalco/public
$ ks pkg install kausal/klumps
ERROR open /Users/twilkie/Documents/src/github.com/kausalco/private/production/kausal/vendor/klumps/.gitignore: no such file or directory

From my reading of the code, if seems to rely on the pkg containing subdirectories to create the pkg root directory. If I make the directory vendor/klumps manually, it succeeds.
What you expected to happen:
The command to succeed without error.
How to reproduce it (as minimally and precisely as possible):
See above instructions
Anything else we need to know?:
Environment:

ksonnet version (use ks version):

$ ksonnet version
kubecfg version: (dev build)
jsonnet version: v0.9.5
client-go version: v1.6.8-beta.0+$Format:%h$

Kubernetes version (use kubectl version):

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.2", GitCommit:"bdaeafa71f6c7c04636251031f93464384d54963", GitTreeState:"clean", BuildDate:"2017-10-24T21:08:42Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.3-gke.0", GitCommit:"86d3ac5eaf57223302c95e7d9fc1aeff55fb0c15", GitTreeState:"clean", BuildDate:"2017-11-08T21:42:58Z", GoVersion:"go1.8.3b4", Compiler:"gc", Platform:"linux/amd64"}

ksonnet supports this in 0.11+


Factor out the QRD function in a common include folder and create a QRI reference design

Existing Sample Changes AND a New Sample
Description
The motivation of this change is to create a linear algebra "library".
As a first step, this PR makes use of an include folder that reference designs can use to share code; and that are usable by users outside of the code samples.
For that purpose, the QRD functionality has been modified to a templated functor that operates on pipes.
This "streaming" QRD has therefore been moved to the common include folder.
Other improvements has been made to the QRD such as: support for complex and non complex datatypes, support for matrix sizes from 4x4 to 512x512, templated by datatype.
A new reference design was also added with this change: a QR-based matrix inversion design (QRI).
This new design uses the common QRD functor as well as a new "streaming" QRI functor.
Both the QRD and the QRI designs needed some producer/consumer functions to read and write matrices/vectors to DDR memory.
Therefore, this change also includes a set of functions to perform these matrix/vector read/writes from/to DDR.
Some headers have also been moved to the include folder, such as the unrolled loop.
Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
This change was tested:

on linux using the cmakes provided in both the qrd and qri reference designs.

on Windows using MSVS with the provided .sln files.

[x] Command Line

[ ] oneapi-cli

[x] Visual Studio

[ ] Eclipse IDE

[ ] VSCode

[x] When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

Checklist
Administrative

[ ] Review sample design with the appropriate Domain Expert:
[ ] If you have any new dependencies/binaries, inform the oneAPI Code Samples Project Manager

Code Development

[x] Implement coding guidelines and ensure code quality. see wiki for details
[x] Adhere to readme template
[x] Enforce format via clang-format config file
[x] Adhere to sample.json specification. https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-specification
[x] Ensure/create CI test configurations for sample (ciTests field) https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-ci-test-object
[x] Run jsonlint on sample.json to verify json syntax. www.jsonlint.com

Security and Legal

[ ] OSPDT Approval (see Project Manager for assistance)
[x] Compile using the following compiler flags and fix any warnings, the flags are: "/Wall -Wformat-security -Werror=format-security"
[ ] Bandit Scans (Python only)
[ ] Virus scan

Review

[ ] Review DPC++ code with Paul Peterseon. (GitHub User: pmpeter1)
[ ] Review readme with Tom Lenth(@tomlenth) and/or Project Manager
[ ] Tested using Dev Cloud when applicable

I've added you as a collaborator if you want to remove the approval

I'm still working on this, I'll you both know when I'm done

@mdbtucker and @tyoungsc, you can go ahead for a second round of reviews for this change.
As discussed before, this revision changes the methodology of the QRI and QRD tests to execute their functions on 8 matrices; and repeat the operation many times.
Also the, the R pipe is now element by element.
I did run some throughput tests and this achieves the same performance as before for the QRD and reaches the expected performance for the QRI.


Fixed with 7ebfec6.


Update README.md

你好我要加入你

你好我要加入你

Sorry for this wrong message

@ummahusla Sorry for being misunderstanding with this. It is a wrong pull request and please accept my apologize.

@ummahusla Sorry for being misunderstanding with this. It is a wrong pull request and please accept my apologize.

No worries, have a good day.


Ask To Confirm Transaction

[ ] If Main net, prompt the user with transaction infos like:

from

to

value

gasLimit

gasPrice

Data
and ask him to confirm

[ ] in settings tab, add this checkbox (default unselected) (value is pesisted in storage) :
"ask to confirm transaction" (remix will always ask if network is Mainnet"

@yann300 If I understand correctly - if you select a main network on Metamask for example, and then click create contract instance, then the modal dialog should appear? What if user clicks At Address?

This modal should appear only when a tx is about to be sent. In the code, that should be just before the sendTransaction.

When click at address. we just popup a new instance but without creating any tx.
btw I forgot that: we should also display gas estimation

Wait, shouldn't the wallet itself (like MetaMask) handle the showing of a modal dialog?

In case of metamask yes but if you use another Web3 provider, not

So when Metamask is selected, we don't show the popup?

I think we can just show it up everytime for now (cause it will show the gas estimation too). If the flow is too slow we could think of optionnally disable the feature when metamask is used , but not now

👍


Editor error on custom attributes

when I want add an attribute multiple="multiple" to an input:file-field,
the console tells me:
formeo.min.js:29 Uncaught TypeError: Cannot set property 'type' of undefined     at F.itemInput (formeo.min.js:29)     at formeo.min.js:29     at Array.map (<anonymous>)     at F.get (formeo.min.js:29)     at new F (formeo.min.js:29)     at Object.addAction (formeo.min.js:29)     at Object.attr (formeo.min.js:29)     at Object.attrs (formeo.min.js:29)     at HTMLButtonElement.click (formeo.min.js:29)
if I add an attribute multiple="" (without default in popup) and then I change the default to "multiple",  it works on render the form but the editor crashes with the same error and i can't edit the form again.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update es5.d.ts

Before:
const foo = {
  bar: 1,
  baz: 2
};

const keysOfFoo = Object.keys(foo); // string[]

Now:
const foo = {
  bar: 1,
  baz: 2
};

const keysOfFoo = Object.keys(foo); // ("bar" | "baz")[]

Hi @donaldpipowitch, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

Related to #12870?

Thanks for the PR. but as discussed in #12870, we do not believe this is a good change.

Thank you for the fast reply, but I'm very sad to hear this. It makes working with noImplicitAny a lot harder.
const foo = {
  bar: 'bar',
  baz: 'baz'
};
Object.keys(foo).forEach(key => console.log(foo[key].length));  // error with noImplicitAny

To fix this you need to write console.log((foo as any)[key].length) or const foo: { [key: string]: string; }. I think both solutions are suboptimal :(

@mhegazy I can't really follow the arguments from  #12870 and I'm not sure that is what I want in most cases. Can you give me an example written in TypeScript where my PR would behave bad? And if I want this behaviour wouldn't it be easier to do this than?:
const foo = {
  bar: 'bar',
  baz: 'baz'
};
Object.keys(foo).forEach(key => console.log(foo[key as string].length));

function printProperties(foo: {}) {
    Object.keys(foo).forEach(key => console.log(key.toString())); // Error toString does not exisit on `never`
}

There is code that looks like this today. changing this would be a breaking change, and would not really provide much value.
you can define your function:
const keys = <{ <T>(o: T): Array<keyof T> }>Object.keys;

function printProperties(foo: {}) {
    Object.keys(foo).forEach(key => console.log(key.toString())); // Error toString does not exisit on `never`
}

So if I say my foo is an empty object, we need a way to say that keys returns an empty array (or for the sake of it an empty array which would contain string), because never[] is wrong.
But I'd argue that foo is typed in wrong way in the first place. The function should be called something like that, if want to print and accept any object:
function printProperties(foo: { [s: string]: any; }) {
    Object.keys(foo).forEach(key => console.log(key.toString()));
}

I'd say that is more explicit and more correct.

There is code that looks like this today.

Granted... if that is the case and you want to avoid a breaking change here, this PR could be postponed. But I'm still not convinced that this "works as intended" as labeled in #12870.

@mhegazy Just would like to give some feedback. We use noImplicitAny in our config and colleagues which don't know TypeScript in detail are often confused when they write const foo = { bar: 'hello' }; Object.keys(foo).forEach(key => console.log(foo[key])); and see an error message. It's hard to explain why they have to cast foo to any.
Are there proposals to add some kind of modifier or mapping to certain types? So I can map never to any just inside Object.keys so this legacy code doesn't throw?
function printProperties(foo: {}) {
    Object.keys(foo).forEach(key => console.log(key.toString()));
}

Or would it be possible to invent some special ignore behaviour so I know when Object.keys gets never the forEach can be ignored? (Just dream code here...)
Or a totally different question: Currently it seems that my PR wasn't merged, because it could be a breaking change. Are there already plans for TypeScript 3.0 and maybe some lists where possible breaking changes could be collected and introduced?


feat(tools): add tabs component

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Ref #47247

Closed in favor of #47313


New translations

This issue is used for collecting new translations to be added in RF 6.0.2.

PR #4526 added Polish Booleans. Contributed by Jerzy Głowacki.

We only got one translation change in 6.0.2. I rename this issue accordingly.


Fix range entry by updating state when range input is updated.

Sorry I missed this. I think this was addressed at least by 3192fff.


"Journal other day" select from calendar, goto day before

When I select "Journal other day" and select a day from calendar, for example: oct 21, it goes to oct 20 (ie one day before). Same thing with  "Journal insert other day note link".

It is because the upstream calendar lib does not processing timezone correctly, I found the lib has been updated. I fix it latter.


Correction for raw affiliation Doctorant en anthropologie, université Lumière-Lyon 2, LADEC.

Correction needed for raw affiliation Doctorant en anthropologie, université Lumière-Lyon 2, LADEC.
raw_affiliation_name: Doctorant en anthropologie, université Lumière-Lyon 2, LADEC.
new_rors: 03rth4p18;000q6dn27
previous_rors: 03rth4p18
works_examples: W2884987868
contact: 94ca09869ee1ff9f4da947d3a005b02a:28062881307589acf3d06afb07ca @ ens-lyon.fr

This issue was accepted and ingested by the OpenAlex team on 2024-11-01. The new affiliations should be visible within the next 7 days.


Does KCP aggregate calls to ikcp_send?

I'm writing a TODO list to convert my code from ENet to KCP. I need some info on how it works though. I tried to read the source code to get the answer to this question, but the various queues were confusing...
So, I thought I'd ask it here: does KCP combine data from multiple send calls into a single output (if it fits within the max segment size)?
"ENet aggregates all protocol commands, including acknowledgements and packet transfer, into larger protocol packets to ensure the proper utilization of the connection and to limit the opportunities for packet loss that might otherwise result in further delivery latency."
I'd like to know whether I should plan on doing this myself.

absolutely，read ikcp flush


Catch noproc errors

Closes https://github.com/whatyouhide/xandra/issues/359

Thanks @harunzengin 💌


First content of license analysis files plus checksums and sources

The first license analysis files are SPDX-2.0 rdf files. They are the
license analysis files of:
libelf version 0.8.13
libpng version 1.6.21

The license analysis file of Simple Logging Façade for Java (SLF4J) is not yet ready although the commit contains already the folder and the source package

make the first content available in the master branch


api: adc: Update timing parameters of sampling sequence entry.

This patch changes timing parameters unit from clock ticks
to more human friendly microseconds.
It also introduces sampling interval as it may differ from
sampling delay.
Signed-off-by: Michał Kruszewski<EMAIL_ADDRESS>This patch still needs updating existing ADC drivers so that they comply with it.
It should probably take less than 1 hour for someone who knows these platforms.

@tbursztyka Yes I can change drivers/tests however I am still waiting for some volunteer to change intel drivers :).

Heh :)  Actually you could do the same trick as I did for SPI: splitting to new and legacy one. So it will give time for people to move their drivers from old API to new one. (since this is a small change, you can avoid having a adc_legacy.h entirely).

@tbursztyka Thats good idea.


Check for unicity in NestListSerializers

Fix unhandled exception in some cases and allows for better error reporting.

also, your branch is out-of-date, it needs a rebase


Router.go triggers page reload

Hi, I've read through "add navigation JavaScript API #180".  My understanding is that when using Router.go, no page reload should happen.  However, whenever I call Router.go the page reloads the same as if I called location.href=
import { Router } from '@vaadin/router';
...
Router.go('/deployment/'+deploymentid);
npm -v vaading-router
6.9.0
Is there another way for me to accomplish in-app navigation through JavaScript?

Hi @lsgroup! What you describe sounds like a bug. The intended behavior of the Router.go('/new/path') method is to change the route without the browser page reload.
Could you please create a minimal demo project that shows the issue? One way of doing that would be with an online tool like glitch.com, using this Vaadin Router demo as a starting point.


Great project, examples are thin and out of date though

Tried your example in the readme and it seems very out of date, AddQuery doesn't even exist. Would also love to see a few more basic examples for not only queries but for mutations.

Thanks for the heads up. I used the name AddQuery early on, but I eventually changed it to AddField to better match the wording used in the GraphQL spec. I'll put some effort into updating the documentation - I basically haven't touched it since I first put this library on GitHub.

Documentation can be found here and some example projects can be found here.
@tombollich Can we close this issue?

Just my 2 cents but it seems that this repo isn't maintained any longer. However the GraphQL-dotnet package is and is also looking into the n+1 problem which was already solved in this repo. Couldn't we team up and create one amazing package?
https://github.com/graphql-dotnet/graphql-dotnet/issues/265


Bug fixes + Upstream Proxy Configuration

This PR has a few fixes, and a simplification for configuring upstream proxies.

Goto errors were not bubbling back to the client, so you would not see that anything broke. This is fixed in this PR so that navigation errors will throw back to the originating client goto call.
Replay "loads" of urls were occasionally stalling (an underlying electron no-op issue, I think). This PR works around those stalls to make sure replay handles more loading cases correctly.
Ghost emulator was triggering scroll events that were impossible to reach. This PR ensures we don't "wait" to scroll past the bottom of the page

Finally, we've removed the "UpstreamProxy" static callback, and simply made proxy configuration a setting per Secret Agent client that's instantiated. It seems to simplify the options, and since a session should emulate a single user session, the need to rotate IPs midway through a session seems to be an edge case we can revisit in future as need be. (Closes #92).

As part of this fix, enabled Socks5 proxies on top of http proxies (which were already supported)

What about just doing an await on the return?

On Nov 28, 2020, at 10:51 AM, Blake Byrnes<EMAIL_ADDRESS>wrote:

@blakebyrnes commented on this pull request.
In client/index.ts:

public async goto(href: string) {

public goto(href: string) {
Async without the await makes this kill off any further upstream stack trace. This is what I was telling you about that was behaving very strangely. I personally don't like cluttering the code with return types, but I can definitely see the argument for it, and maybe I'm just ok with it because the IDE is figuring it out from the ts compiler. I think if we decide to do that, we should probably make a global eslint rule requiring return types.

—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or unsubscribe.


fix: fix targets removal so it doesn't interfere with delegations

Signed-off-by: Asra Ali<EMAIL_ADDRESS>As a bypass for https://github.com/theupdateframework/go-tuf/issues/400: which describes that repo.RemoveTargetsWithExpires removes the targets from ALL roles, including delegations.
Because of this, we removed rekor.0.pub from the top-level targets AND the rekor delegation, staging a new version of the delegate where we did not mean to.
This was noted in @joshuagl 's review: https://github.com/sigstore/root-signing/pull/410#pullrequestreview-1123491590
Note: we have an e2e regression test for target rotation covered.

Summary

Release Note

Documentation

Note: we should use this change: otherwise staging the metadata file but not utilizing/signing it will cause a failure in snapshotting. Unless we manually delete. But I'd rather not make manual changes to repository creation.


switch from helper to sharedLib

This is an open source projec, and the shared lib that we reference is not open source.
The jenkins file is probably nothing that can be reused anyway if someone wants to use this project, so maybe it's fine to reference internal code.
what are your thoughts?

Oh I totally forgot about it being open source. Lets leave it as is and continue referencing the internal code


[MNT] remove custom __repr__ from BaseTask, inherit from BaseObject

This PR addresses imminent removal/change in sklearn _pprint and the private import in sktime BaseTask, and partially addresses #3037.
BaseObject has its own __repr__ and could be used here, but BaseTask did not inherit from BaseObject.
To address the change in __repr__, BaseTask was changed to inherit from BaseObject, with some compatibility changes towards the sklearn interface. The complete removal of the custom __repr__ in favour of BaseObject.__repr__ should address this instance of _pprint import.

ok, well, that did not work...
any good ideas, @celestinoxp?

ok, looks like this has worked.


push symbols

Codecov Report

Merging #22 (0f47d6d) into main (bdfb7dc) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #22   +/-   ##
=====================================
  Coverage   7.63%   7.63%
=====================================
  Files         39      39
  Lines       4963    4963
=====================================
  Hits         379     379
  Misses      4584    4584

Flag
Coverage Δ

unitNumber
7.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Feature/php8

Introduction
Removing support for PHP7.4 and PHP8.0
Proposal
Describe the feature
Remove support for old PHP versions
Backward Incompatible Changes
None. All feature are kept only PHP version are restricted to the latest current stable.
Targeted release version
Next Minor version
PR Impact
New installation will require PHP8.1
Open issues

None

Bump? I'm going to have to fork this project if this one isn't being maintained any longer :(


Windows Installer does not work

Trying to install the windows version, clicking the skyeye-service.exe does nothing.

See https://github.com/dharmab/skyeye/blob/main/docs/ADMIN.md#windows - skyeye-service.exe is a command line application and needs to be run through a command line such as PowerShell or Windows Terminal.

Ahh yes I am dumb. Thank you, got it working now.


made config change to access heroku config env

Not sure if people are configuring their heroku installs differently?

Hi
Can this be merged @nerdbaggy? I cannot use heroku otherwise!


tests: Use bytes.Repeat() when generating big data

Avoid using random source when generating large data. This will
heavily reduces functional tests time.
Fixes  #682
In my machine, tests execution time pass from 280 seconds to 37 seconds.

Much needed thanks @vadmeste

This fix was introduced, but some regression reverted it. Thanks.


Add support for multiple accounts

User should be able to configure multiple Google accounts which will be used to source task lists.  This requires some fundamental changes:

Configuration should use list names, not IDs.  This requires some additional calls but eases configuration.
Authentication is still a separate module, but could be written to store all tokens in a single file.  The credentials file would remain the same (as the "App" wouldn't change).
Should allow for different account styling/text color.  Making it configurable would be best case, although I would like to stick with css as opposed to allowing the user the opportunity to inject raw colors via config
The GoogleTaskService should be refactored to allow it to communicate with multiple accounts.  This will mean moving the authentication portion from node_helper into GoogleTaskService.

Added support for multiple accounts.  Will split styling into another issue.