Problems Authenticating to Azure Government for Managed Identities from ComputeManagementClient Package

Package Name: ComputeManagementClient
Package Version: 3.9.1
Operating System: Windows
Python Version: 3

Describe the bug
Azure Government users attempted to authenticate using Managed Identities encounter an error. The error message displayed is: azure.core.exceptions.ResourceNotFoundError: (SubscriptionNotFound) The subscription 'a765b6f3-699c-4c11-a913-d6b8457795ac' could not be found.
To Reproduce
Steps to reproduce the behavior:

Generated Code:
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
from azure.mgmt.compute import ComputeManagementClient
from azure.identity import AzureAuthorityHosts

default_credential = DefaultAzureCredential(authority=AzureAuthorityHosts.AZURE_GOVERNMENT, exclude_environment_credential=True, managed_identity_client_id='4c3ee66a-7aed-4ffe-a10b-daf7b75bd56e')
vm_name='renatatestvm'
resource_group_name='renata-rg'
subscriptionid='9ea57abb-990d-4601-94b5-2a2a6d418274'
compute_client = ComputeManagementClient(default_credential, subscriptionid, base_url='https://management.usgovcloudapi.net/')
vm_instance = compute_client.virtual_machines.get(resource_group_name, vm_name)
print(vm_instance)

Received Error
PS C:\Users\redukes\hello> & C:/Users/redukes/AppData/Local/Programs/Python/Python39/python.exe c:/Users/redukes/hello/hello5.py
ManagedIdentityCredential.get_token failed: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential.get_token failed: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential.get_token failed: Azure Active Directory error '(invalid_grant) AADSTS90051: Invalid Delegation Token. Invalid national Cloud ID (2) is specified.
Trace ID: e4ec8c11-b64a-4c4f-bd97-1561c1440600
Correlation ID: 79b32a99-1afc-4ac2-8b85-6c3520df798e
Timestamp: 2021-02-10 21:46:17Z'
DefaultAzureCredential.get_token failed: VisualStudioCodeCredential raised unexpected error "Azure Active Directory error '(invalid_grant) AADSTS90051: Invalid Delegation Token. Invalid national Cloud ID (2) is specified.
Trace ID: e4ec8c11-b64a-4c4f-bd97-1561c1440600
Correlation ID: 79b32a99-1afc-4ac2-8b85-6c3520df798e
Timestamp: 2021-02-10 21:46:17Z'"
DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential: Azure Active Directory error '(invalid_grant) AADSTS90051: Invalid Delegation Token. Invalid national Cloud ID (2) is specified.
Trace ID: e4ec8c11-b64a-4c4f-bd97-1561c1440600
Correlation ID: 79b32a99-1afc-4ac2-8b85-6c3520df798e
Timestamp: 2021-02-10 21:46:17Z'
Traceback (most recent call last):
File "c:\Users\redukes\hello\hello5.py", line 18, in
vm_instance = compute_client.virtual_machines.get(resource_group_name, vm_name)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\mgmt\compute\v2020_06_01\operations_virtual_machines_operations.py", line 676, in get
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 211, in run
return first_node.send(pipeline_request)  # type: ignore
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\mgmt\core\policies_base.py", line 47, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
[Previous line repeated 1 more time]
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline\policies_redirect.py", line 158, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline\policies_retry.py", line 435, in send
response = self.next.send(request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_base.py", line 69, in send
_await_result(self._policy.on_request, request)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline_tools.py", line 29, in await_result
result = func(*args, **kwargs)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\core\pipeline\policies_authentication.py", line 93, in on_request
self._token = self._credential.get_token(*self._scopes)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\identity_credentials\default.py", line 144, in get_token
return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs)
File "C:\Users\redukes\AppData\Local\Programs\Python\Python39\lib\site-packages\azure\identity_credentials\chained.py", line 90, in get_token
raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential: Azure Active Directory error '(invalid_grant) AADSTS90051: Invalid Delegation Token. Invalid national Cloud ID (2) is specified.
Trace ID: e4ec8c11-b64a-4c4f-bd97-1561c1440600
Correlation ID: 79b32a99-1afc-4ac2-8b85-6c3520df798e
Timestamp: 2021-02-10 21:46:17Z'

Expected behavior
Users should be able to authenticate against Azure Government with a Managed Identity

How do we declare the scope properly to ensure the Token is authenticating against Government

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
In order to get the script to work, we modified the scopes declaration in the configuration file: "C:\Users\renataadmin\AppData\Local\Programs\Python\Python39\Lib\site-packages\azure\mgmt\compute_configuration.py"

I'm a bit confused about your execution environment. The ResourceNotFoundError indicates ComputeManagementClient authenticated successfully but failed to find the subscription. So if it was using a managed identity (log output can verify), that part worked fine. The output in your second item indicates managed identity was not used: "ManagedIdentityCredential authentication unavailable, no managed identity endpoint found." Is this output from the same environment?

I was initially running locally from VS Code. I then navigated to my Virtual Machine and created a Python virtual environment. The customer is trying to authenticate to Azure Government and run compute operations. The workaround we were able to figure out is updating the scopes field as it defaults to commercial.
Trying to determine how to update the scope to Gov without modifying the configuration file itself

Hi Charles - let me give some more context on Renata's behalf.  Let me preface this by saying that we are not experienced Python devs so we might be missing something simple.
1) Code to reproduce:
`from azure.identity import ManagedIdentityCredential, DefaultAzureCredential
from azure.mgmt.compute import ComputeManagementClient
from azure.identity import AzureAuthorityHosts
default_credential = DefaultAzureCredential(authority=AzureAuthorityHosts.AZURE_GOVERNMENT, exclude_environment_credential=True, managed_identity_client_id='4cxxxxxxd56e' )
vm_name='renxxxxxxxvm'
resource_group_name='renxxxxxxrg'
subscriptionid='9ea57xxxxxxxxx418274'
compute_client = ComputeManagementClient(default_credential, subscriptionid, base_url = 'https://management.usgovcloudapi.net/')
vm_instance = compute_client.virtual_machines.get(resource_group_name, vm_name)
print(vm_instance)`
2) When running with the current and updated versions of the Python Azure API on a VM in the Fairfax cloud,  I get the following error:
azure.core.exceptions.ClientAuthenticationError: (InvalidAuthenticationTokenAudience) The access token has been obtained for wrong audience or resource 'https://management.azure.com'. It should exactly match with one of the allowed audiences 'https://management.core.usgovcloudapi.net/','https://management.core.usgovcloudapi.net','https://management.usgovcloudapi.net/','https://management.usgovcloudapi.net'.
3) A review of the access token obtained while running this code shows that token obtained has a resource of the public cloud:

4) Looking in \azure\mgmt\compute_configuration.py shows that a default credential scope set to the public cloud is used.:
def __init__(
        self,
        credential,  # type: "TokenCredential"
        subscription_id,  # type: str
        **kwargs  # type: Any
    ):
        # type: (...) -> None
        if credential is None:
            raise ValueError("Parameter 'credential' must not be None.")
        if subscription_id is None:
            raise ValueError("Parameter 'subscription_id' must not be None.")
        super(ComputeManagementClientConfiguration, self).__init__(**kwargs)

        self.credential = credential
        self.subscription_id = subscription_id
        self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])

5)  Attempting to pass in credential scope results in the following error:
Code:
compute_client = ComputeManagementClient(default_credential, subscriptionid, base_url = 'https://management.usgovcloudapi.net/', credential_scopes='https://management.usgovcloudapi.net/')
Error:
Attempted credentials:
ManagedIdentityCredential: This credential requires exactly one scope per token request.
6) Directly changing the scope to match the desired resource allows the code to work as expected:
Code:
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.usgovcloudapi.net/.default'])
Result::

The question is: is there a way to pass in the scope properly?  If not, then this appears to be a bug.

There is a Python gotcha here. credential_scopes is the way to configure a non-default scope. However, its value is later unpacked with the * operator:
https://github.com/Azure/azure-sdk-for-python/blob/be9ef5c8e23d917467faa66c78a0956bb28c2a5c/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_configuration.py#L66
Strings and lists both unpack to a collection of their elements. The elements of a string are its characters:
>>> [*['gotcha']]
['gotcha']
>>> [*'gotcha']
['g', 'o', 't', 'c', 'h', 'a']

When you pass credential_scopes='gotcha' the credential therefore gets six scopes instead of the required one. So, the value of credential_scopes should be a list having one element, the desired scope.
I'm not certain you have the right value for that scope. The one you have might work for managed identity due to an implementation detail, but would probably fail when used with other credentials. Generally, a scope should end with "/.default" (and need not be a valid URL). There's a helper class you could use to avoid needing to know the right values (as shown in this document):
from msrestazure.azure_cloud import AZURE_US_GOV_CLOUD

compute_client = ComputeManagementClient(
    default_credential,
    subscriptionid,
    base_url=AZURE_US_GOV_CLOUD.endpoints.resource_manager,
    credential_scopes=[AZURE_US_GOV_CLOUD.endpoints.active_directory_resource_id + "/.default"],
)

I don't often work with management clients though, and don't have access to Azure Government to test out my advice, so let me add @00Kai0, @lmazuel, and @jongio in case I've missed something here.

I kept looking at the double star and was wondering why there were square brackets. :-)  My C++ skills are beyond rusty.
The solution works as you've described, thanks for the information!  We'll wait on further advice before sending this to the customer.

@RDukes425  It seems like that you missed credential_scopes in compute client.
Plz refer to the doc: https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-sovereign-domain


Feat - pin and sort specific eval results

Description
This PR currently includes the following functionality:

[x] Pin evaluation result (API)
[x] Unpin evaluation result (API)
[x] Fetch pinned evaluation result (API)
[x] Introduced a pin button in the frontend

What's Left:

[ ] Clicking on the pin button should send the necessary data, along with the evaluation id, to the backend
[ ] When pinned, the button display text should change to "unpin" - clicking on the button should unpin the evaluation result
[ ] Axios logic to make the API calls to the backend
[ ] Sort pinned evaluation results

Related Issue
Closes #526

See comment here https://github.com/Agenta-AI/agenta/issues/526#issuecomment-1763397399
I think this issue + PR should be closed


Two threads, PiMotionAnalysis and taking a full sized image capture

Hi,
I'm trying to use picamera in a threaded application. Essentially there are 2 threads:

Takes random photos
Runs PiMotionAnalysis and takes photos when motion is detected

Because there two threads wanting to use the ‘picamera.PiCamera()‘ object, I used a global and a threading lock to control access.
Here is a simplified version of my code:
https://gist.github.com/FutureSharks/742d775a41e64aca0826fbf8c36c69ba
The problem is that is always just freezes at line 27. What am I doing wrong here?
Many thanks!

In fact, maybe threading has nothing to do with it as the problem is still there if the take_random_photos thread is not even started.

I'll close this and open another issue as I think I describe my problem a little clearer.


core: expose subscriptionField & add documentation

expose subscriptionField
add subscriptionField documentation

Related issues / pull requests:

[x] #21
[x] #66

Hey, thanks for the PR @Gomah - just pushed 0.11.1 with the subscriptionField publicly accessible.
Didn't merge this PR since the extendType actually won't work the same way for Subscription as it does for other types, as other fields don't have the subscribe property available.
Also, the docs need to be a little different for subscriptionField then they are for mutationField / queryField, since the signature is a little different and it's not just a passthrough to extendType.
If you want to open another PR with more detailed documentation about the expectations/signature around subscriptions, etc. that'd be great!

+1 for this


Add support for solr predicates

Add support for solr predicates

"So, actually, I am not even sure this solr converter should be part of the set of thunx libraries. It should probably just be code in the application, or an application library."

So euhm, should we hold off merging this ?

Let's close this as it seems we both agree that this should be an application level addition.


Category stats had error in parameters for aggregated_by

Getting sums of stats. Appears there was a simple copy/paste error in the parameters. The aggregated_by param was talking about dates instead of day|week|month. Looks like it was just copied from the param above it - end_date.

Nice catch. Thank you!

Anytime!


Add thin volume example

Codecov Report

Merging #547 (80fe131) into main (60be41b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #547   +/-   ##
=======================================
  Coverage   77.39%   77.39%
=======================================
  Files          31       31
  Lines        2199     2199
=======================================
  Hits         1702     1702
  Misses        497      497


performence problem

i run your code on Gowalla dataset, but recall@20 is 0.2367899010064117，but you declare almost 0.26 in your paper, can you expain why?

Hi,
Different data split and preprocesing procedure can lead to various
results. If you want, I can send you the Gowalla data after preprocess.
On Thu., Sep. 5, 2019, 6:45 a.m. namenotexist<EMAIL_ADDRESS>wrote:

i run your code on Gowalla dataset, but recall@20 is
0.2367899010064117，but you declare almost 0.26 in your paper, can you
expain why?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/allenjack/SAE-NAD/issues/4?email_source=notifications&email_token=ABBX3PRRNNPMOHDBD5MYSEDQIDPLJA5CNFSM4IT4IO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD56VIBQ#issuecomment-528307206,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBX3PUJPVEXI76LSA5VDJLQIDPLJANCNFSM4IT4IO7A
.

hi, i think already obtained the Gowalla dataset after preprocessing from you a few weeks ago throungh my email<EMAIL_ADDRESS>i have already use the same dataset in your paper but  get a worse result

Hi,
Could you make sure the parameter setting is the same as which is shown in the paper?
One thing to notice is that we use [N, 500, 50, 500, N] network structure on the Gowalla dataset.

Hi.
Thanks very much, after i tried [N, 500, 50, 500, N]  network structure,  recall@20 is  0.26. i am very confused why just a dimention changing will have a large performence boosting, without dimention changing, the performence is below the strongest baseline pace, do you have some insight

Since with a higher dimension, the model has more parameters to learn. More parameters mean that the model has a larger capacity to capture more complex interactions between users and items. What does the hidden space capture is still an open topic to discuss.

hi,there is still have problem in yelp dataset
the performence is
[0.031003334736298824, 0.02644154498656703, 0.023792102394753805, 0.02171139961796174]
[0.030995961369661526, 0.052313087184899534, 0.06992631652546047, 0.0844492726939037]
[0.020529951471852593, 0.021236947021091836, 0.022450209082036383, 0.023362063093665134]
which is much below than you declare in your paper

Hi,
Could you specify the experiment configuration?
This is the results of 60 epochs I just ran:

The value in the result represents the metrics as follows:
P5 P10 P15 P20 R5 R10 R15 R20
M5 M10 M15 M20

i do not change the settting you relase in this repo.
parser = ArgumentParser(description="SAE-NAD")
parser.add_argument('-e', '--epoch', type=int, default=60   , help='number of epochs for GAT')
parser.add_argument('-b', '--batch_size', type=int, default=256, help='batch size for training')
parser.add_argument('--alpha', type=float, default=2.0, help='the parameter of the weighting function')
parser.add_argument('--epsilon', type=float, default=1e-5, help='the parameter of the weighting function')
parser.add_argument('-lr', '--learning_rate', type=float, default=1e-3, help='learning rate')
parser.add_argument('-wd', '--weight_decay', type=float, default=1e-3, help='weight decay')
parser.add_argument('-att', '--num_attention', type=int, default=20, help='the number of dimension of attention')
parser.add_argument('--inner_layers', nargs='+', type=int, default=[200, 50, 200], help='the number of latent factors')
parser.add_argument('-dr', '--dropout_rate', type=float, default=0.5, help='the dropout probability')
parser.add_argument('-seed', type=int, default=0, help='random state to split the data')
args = parser.parse_args()

did the yelp dataset is exactly the same as http://spatialkeyword.sce.ntu.edu.sg/eval-vldb17/?

hi，i found that the reason is that i use the splited data provided in http://spatialkeyword.sce.ntu.edu.sg/eval-vldb17/, after i use the spliting method in your code i get [0.047664065788200975, 0.04022080486936263, 0.035410798502072835, 0.032151066791849696]
[0.04911375603604978, 0.08122508361942432, 0.10555880260087365, 0.12592199830428658]
[0.03377287460024534, 0.034733410435961745, 0.03642260669407191, 0.037814141501288104]
which is still below your paper result, why?

The network structure on Yelp is [N, 200, 50, 200, N], I don't do if you set it or not.
I run one more time just now. It still can achieve similar results with what is shown in the paper:

It also achieves similar results with the experiment I ran yesterday: https://github.com/allenjack/SAE-NAD/issues/4#issuecomment-529763224

The network structure on Yelp is [N, 200, 50, 200, N], I don't do if you set it or not.
I run one more time just now. It still can achieve similar results with what is shown in the paper:

It also achieves similar results with the experiment I ran yesterday: https://github.com/allenjack/SAE-NAD/issues/4#issuecomment-529763224


Reading Properties field from EventHub using streaming dataflow

Hi there,
I would like to know if there is any possibility to read fields different from Payload using streaming dataflow and Event Hub.
Actually we're trying to read Properties field because our application do not contain subject into body, which is stored outside.
Documentation do not mention anything regards this.
Any clues?
Thanks

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

ID: 7322cb83-9715-7dca-43f5-43191b867032
Version Independent ID: 5b7a4cdb-8a4b-9d9b-d2c6-70d54b6ff560
Content: Streaming dataflows (preview) - Power BI
Content Source: powerbi-docs/transform-model/dataflows/dataflows-streaming.md
Service: powerbi
Sub-service: pbi-dataflows
GitHub Login: @maikelson
Microsoft Alias: davidi

Thanks for your comment. This looks like a support request rather than documentation feedback. You might find a solution in the Power BI Community, found at https://community.powerbi.com. If not, you can get support by going to https://support.powerbi.com.


Any mob/villiger Slapping with anti-grav missile

https://gist.github.com/dmodoomsirius/36a8717678745fd0bea613fa2b18a218
shot a cow with a anti-grav missile

ok it happens to all mobs not just cows. also it corrupts the world. when you try to log back in it crashes with the same crash.

It doesn't corrupt the world, its a ticking blast so is still going off when you load the world. To fix it you can world edit it out but I will take care of the crash soon~ish.


Idea - Fake Rewards (stars, orbs, moons)

I remember one time there was a mod before Geode that was exactly like this, but as well when you made progress or completed the level, it would give you rewards like stars and orbs, however it wouldn't actually count to the player, it was fake.

Would this potentially be doable as a lil' feature with this?


Email submission formatting broken on mobile

The email field stretches to fill the page and submit button is kicked onto the next line. Doesn't appear to happen on any size desktop browser window.

Here are wireframes reflecting how the field should display at different browser window size:  https://www.figma.com/file/gUgY9eSxcWpLENJHLS5FZv/GitHub-Issues?node-id=327%3A16
@jseldess we still have to update the styling on the email field - new styling and behaviour is pulling directly from this example: https://www.cockroachlabs.com/blog/ (scroll to the bottom to the 'Never miss a post' section)


json-type to JSON Schema

[x] Implement function which converts json-type schema to JSON Schema.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


WFLY-9436 Test suite misses any sort of smoke test for JSR-77 management bean availability

Created simple JSR77 test for MBean functionality.
JIRA :
https://issues.jboss.org/browse/WFLY-9436

Can one of the admins verify this patch?

This is ok to test

Fixed

retest this please


How to show native ads in Flutter app?

I want to show native video ads just like in reels in Instagram or in short videos in youtube. How I can show it with appodeal. I don't want to show here interstitial ad here. There is no method for displaying native ads in plugin.

Hello,
When native ads will be available for flutter?
Thanks

Any update?


Create a Contributors.md file

Requirements
Add a new markdown (.md) file to the docs folder that lists all contributors within the project. Consider the optimum style, ideally, the page should contain:

Information about the project
List the user's name (linking to their Github - use placeholders for now)
Contain information about how users can get involved in the project

An existing template exists for this, though a table might be better suited.

Contributor
Position
Social links

Name one
✨
Twitter Instagram

Name two
📖
Twitter

Name three
💻
Twitter Instagram

Solution

Create file
Create sections
Populate sections

@Shubham0812  I can take this one issue, assign me .


splitting pytree with indistinguishable types

Hi,
Given a pytree initialized in equinox with lets suppose 3 elements which are all the same datatype. I need to break of one leaf and pass the remaining pytree.
class First_Pytree(eqx.Module):
    element1 : jnp.float64
    element2 : jnp.float64
    element3 : jnp.float64
    def __init__(self, element1, element2, element3):
        self.element1 = element1
        self.element2 = element2
        self.element3 = element3

It is not clear how to use equinox.filter or equinox.partition when all are the same type jnp.float64?
first_pytree = First_Pytree(element1, element2, element3)
second_pytree = equinox.filter(first_pytree, filter spec (to remove element3) = ?

Alternatively, would it be better to initialize a second pytree that accepts a smaller pytree as an element?
class Small_Pytree(eqx.Module):
    element1 : jnp.float64
    element2 : jnp.float64
    def __init__(self, element1, element2):
        self.element1 = element1
        self.element2 = element2

#(not sure I have correct notation here):
class Large_Pytree(eqx.module):
    small_pytree : pytree
    element3 : jnp.float64
    def __init__(self, element1, element2, element3):
        self.small_pytree = Small_Pytree(element1, element2)
        self.element3 = element3

... and then partition based on is_float?
Or is there a better way?
Apologies and thanks if this question is elementary.
Tom

Hey Tom! :)
If you want to remove element3, then the easiest way is to create a boolean filter spec like this:
class First_Pytree(eqx.Module):
    element1 : jnp.float64
    element2 : jnp.float64
    element3 : jnp.float64
    # note no __init__ method - unrelated to filtering, but simple ones are auto-generated from the fields above

first_pytree = First_Pytree(element1, element2, element3)

filter_spec = jax.tree_util.tree_map(lambda _: True, first_pytree)
filter_spec = eqx.tree_at(lambda p: p.element3, first_pytree, False)

second_pytree = equinox.filter(first_pytree, filter spec)

This probably looks a little odd the first time you see it, but is the standard way to do this -- working with Equinox often means doing various kinds of pytree chicanery!


Add yeti dockerfile

Adds a dockerfile for running yeti on the yeti robot hardware.
Builds fine, but still needs to be run on the physical hardware before merging PR.

The containers are now working at a local level. Avery just needs to test the LiDAR connection before this can be considered done.

Looks like this is working fine, will need to convert these over to compose files after the comp


SSN method, Where shape signature loss is used

Hi, I want reproduce the SSN method.
but I found there is only a shape aware head relatively to ssn.
So I want to know where is the shape signature loss implementation?

Please refer to issue #218.


Removal of documentation

Porch documentation was moved to the Nephio docs repo.

/assign @liamfallon @efiacor


Memoize LocalRoot

At current state it rererenders every time

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Flextype Admin Panel:  add ability for redirect to the editor after creating

Affects:

snippets
fieldsets
templates

implemented


Add Dapr Grafana dashboards as part of release

Dapr Grafana dashboards are placed in https://github.com/dapr/docs/tree/master/reference/dashboard folder.
This issue is to make them versioned and part of official releases.

Looks like Grafana allows for programmatic import of dashboards. I prototyped and tested this with the 3 Dapr dashes,
https://github.com/mchmarny/dapr-demos/blob/d6e39c650401078bc1e32108efbff74c3445d326/setup/Makefile#L67-L84
Could be one way to include these dashboards as part of release


Remove Apifox.Apifox 2.4.0 to Ruihu.Apifox 2.4.0

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

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

Microsoft Reviewers: Open in CodeFlow

URL: http://cdn.apifox.com/download/2.4.0/Apifox-2.4.0.exe
Status Code: 200
(Automated message - build 869)


NPE in SqlDatabaseOperationsImpl.listBySqlServer

Hi, sporadically NPE happens here (pretty rare), there is no way to reproduce
 java.lang.NullPointerException
     at com.microsoft.azure.management.sql.implementation.SqlDatabaseOperationsImpl.listBySqlServer(SqlDatabaseOperationsImpl.java:162)
     at com.microsoft.azure.management.sql.implementation.SqlDatabaseOperationsImpl.list(SqlDatabaseOperationsImpl.java:218)

Azure SDK for Java 1.30.0

Thanks for filing this issue @igolikov.  @yungezz could you please assist routing this Mgmt plane sdk issue?

thanks Josh. @weidongxu-microsoft could you pls help to take a look? thanks

@igolikov
This would likely caused by a 404 from server response. Track1 SDK cannot distinguish it from empty response. I will add a protection to return empty list in this case.


Hi,etolstoy, a question,when i'm running the project(example), it show me a error.

ld: library not found for -lPods-RamblerTyphoonUtils_Example-RamblerTyphoonUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and how did i do?thanks

Hi, @DaisukeZJY. Looks like this is the problem with your project configuration. Show me your Podfile please.


Different results with different Guzzle versions

I ran into a problem where the FeedManager behaved differently based on the Guzzle version that is used in the project.
This is set my stream-laravel.php config file (using Laravel 5.3.21):
    /*
    |-----------------------------------------------------------------------------
    | The feeds that shows activities from followed user feeds
    |-----------------------------------------------------------------------------
    |
    */
    'news_feeds' => array(
        'timeline' => 'timeline',
        'timeline_aggregated' => 'timeline_aggregated',
    ),

I've got this set up as a test url in my routes file:
    Route::get('/test', function() {
        dd(app()['config']->get('stream-laravel::news_feeds'));
    }

When I'm using Guzzle 6 (guzzlehttp/guzzle 6.2.2), this route outputs this:
array:2 [▼
  "timeline" => "timeline"
  "timeline_aggregated" => "timeline_aggregated"
]

However, if my project is running guzzlehttp/guzzle 5.3.1 (I'm using bogardo/mailgun which is unfortunately a bit outdated and requires guzzle < 6). this is outputted:
array:4 [▼
  "flat" => "flat"
  "aggregated" => "aggregated"
  "timeline" => "timeline"
  "timeline_aggregated" => "timeline_aggregated"
]

That creates a problem, because when I'm running e.g. FeedManager::followUser(1, 3);, I get a streamFeedException in getstream\stream
{"code": 6, "detail": "The following feeds are not configured: 'flat'", "duration": "9ms", "exception": "FeedConfigException", "status_code": 400}

So shouldn't Guzzle 6 be a requirement for stream-laravel?

I should have done more digging, I noticed this is an issue in stream-lavavel 2.2.3 but works fine in 2.2.6. I had a composer.json requirement of "get-stream/stream-laravel": "^2.2" which allowed 2.2.3 to be used. I changed this to "~2.2.6" it's working as expected now.

After some more digging I found that the stream-laravel serviceprovider does not allow you to overrule the default config, but merges it with the user config instead. With regard to future compatibility, I don't know if that's a good thing. Until version 2.2.6, the news_feed array keys were different, and when a composer update gave me a 2.2.3 version instead, my application broke because it merged my news_feed config with the default news_feed_config.
Personally I'd prefer it if a user configuration can be relied upon, regardless of whatever the default configuration was. If there is no need to merge the config arrays, I think it's better to replace the default config arrays with the user  config array.


Split shim into browser support related files

Half of the source-code is related to shims that ensure PST work on every browser, we need to decouple the final code from this shim, and use "require" syntax to include the pieces inside the source code.
Since the shims can't be tested for code coverage, they must be ignored in the same.
In this processes we need to add a build flag to determine witch shims should be build with the final lib.

WIP: feature/shim-split

The PR https://github.com/gartz/pushStateTree/pull/46 does some progress on this issue.


Add new toggleable options

Multi-objective, high-dimensional, constrained, mixed variable (numeric+categorical), and incorporating domain knowledge (so far).
Also need to address:

#19
#18

@hiirrxnn, I'm also curious to get your thoughts on the new options I'm implementing in the dev branch. See https://honegumi.readthedocs.io/en/dev/ for the current working version.

@hiirrxnn sorry, I meant to say that's the link to the dev branch documentation where you can try it out. Note that the Open in Colab/GitHub links won't work, since those point to the main branch.

Hi @hiirrxnn, sorry for the delay. Going to merge now - had several features that I was still debugging, but to make sure I can get some of the ones I've implemented, I've temporarily disabled a few of these.


Show openFolderDialog for Create Static Web App

If the workspace is opened, we can use vscode's openFolderDialog instead of retrieving the tree structure from GitHub.

Closing in favor of https://github.com/microsoft/vscode-azurestaticwebapps/issues/341


base_controller not running correctly in simulation

as reported by @ipa-bfb
they seem to be drifting...needs investigation....

are you sure this is the base_controller? What I observed was just the simulated robot model slightly drifting in gazebo (independent of wheel positions and controller)

try to use cob_teleop and see if it works...

sorry, ignore my comment. Seems as the recently introduced commits broke driving the robot in gazebo. we'll have to investigate.

Why are the steer_target_velocity that high? Is this rad/sec? @ipa-mdl
rostopic echo /base/twist_controller/wheel_commands
header:
  seq: 52189
  stamp:
    secs: 52
    nsecs: 923000000
  frame_id: ''
drive_target_velocity: [0.0, 0.0, 0.0]
steer_target_velocity: [7.60710124957176, -10.0, -10.0]
steer_target_position: [0.0, -3.141592653589793, 0.0]
steer_target_error: [1.395496564844115, -2.722543136645081, -3.048259837630063]

they seem to be drifting...needs investigation....

I had the same problem when we implemented the dynamic-reconfigure feature.
For some reason it just works with you setup.

Is this rad/sec?

Of course ;)

or we try to spawn the wheels in gazebo at the correct starting position

+1
The starting postions point away from the base link.
That's why the back wheel has a neutral position of 180 degrees

There seems to be something else:
I can set the steer_joints to the desired neutral position (cob4-2) using
rosservice call /gazebo/set_model_configuration '{ model_name: "robot", urdf_param_name: "robot_description", joint_names: [ "fl_caster_rotation_joint", "b_caster_rotation_joint", "fr_caster_rotation_joint" ], joint_positions: [ 0.0, -3.141592653589793, 0.0 ] }'

the joint_states are then at the desired position, but still the wheels start drifting....I also cannot use roslaunch cob_teleop teleop_keyboard.launch
Even if I set remove the steer_neutral_position from the yaml, the drifting occurs and I cannot drive...

For some reason it just works with you setup.
@ipa-mdl, I don't know why it seemed to work on my setup....

this commit seems to have broken moving the base in simulation: https://github.com/ipa320/cob_common/commit/6f6ccc2552e42d57c851997e4bf825fa5ea1c3d0
If I revert this, simulation is OK again. @ipa-mdl: any idea what might cause the troubles?

setting the effort limit back to 100 fixes the issue. see https://github.com/ipa320/cob_common/pull/215

@ipa-bfb: FYI fixed.

Awesome! Thanks ;)


writes from sql-server doesn't modify the working set

Write statements (INSERT, DELETE, UPDATE, DDL) issued to dolt sql-server currently don't persist outside the life of the session. This means that sql-server is effectively read-only.
We're tracking this for the release on 4/27 or earlier.

Fixed in 0.16.0


Consider adding a new console logger with INFO level

Purpose
As discussed with @mbenadda [1] some relevant logs may get lost if we only use sentry for logs with a level >= WARNING.
Proposal
Add a new logger using the console handler with the INFO level so that we can store and use them at a system level depending on the infrastructure (e.g. OpenShift + ELK).
Reference(s)
[1] https://github.com/openfun/richie/pull/112#discussion_r185534415

As discussed today from Slack with @jmaupetit and @mbenadda , it seems log ouptut is totally muted in local development, particularly from CLI commands like bootstrap_elasticsearch.
This would be nice to have logger config for local development to have logger correctly enabled so we can use logger.info() and even logger.debug() inside commands.


Updated Community Section

Summary:
I made updates to the community page, including the addition of forms for donations, story submissions, and job opportunities. I also added a subscription button at the end of the page and created three inspiring stories. In the Work and Volunteer Opportunities section, I added three cards for Freelancing, Web Development, and Digital Marketing, where users can access YouTube tutorials by clicking "Learn," as discussed with Sristy.
Changes Made:
Implemented forms for donations, writing stories, and job opportunities.
Added a subscription button at the end of the page.
Created three inspiring stories.
Developed three skill cards under Work and Volunteer Opportunities for Freelancing, Web Development, and Digital Marketing, each linking to relevant YouTube tutorials.
Testing Performed:
While testing, I noted that clicking the buttons, such as submitting the forms, does not currently redirect anywhere. I am still working on this functionality and plan to update it so that the form details are forwarded to an email or another designated endpoint.
Related Issues:
I'm encountering difficulties with the dark/light mode toggle on the community page—it's not functioning as expected. It would be helpful if Sristy could take a look. Additionally, I need clarification on the Work and Volunteer Opportunities section. Should I delete this section, or are there specific changes you’d like me to make?
Additional Notes:
Please share your feedback and let me know if there are any further changes I should implement.

Hi @sristy17 , could you please review and approve this PR when you get a chance? We need your approval to proceed with the merge. Thanks!


Undeclared indentifier __integer_pack (gcc compatability)

When using the clangd lsp server I always receive the error (undeclared identifier) for using the type traits (https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Type-Traits.html) from the gcc (e.g. __integer_pack). Is there a way to make the clangd compatible with the gcc internals.
System information
Output of clangd --version: 16.0.5
Editor/LSP plugin: nvim-lsp (with mason)
Operating system: Fedora

Clangd doesn't provide extra builtins besides that from Clang, while it offers __make_integer_seq which essentially provides the same feature as __integer_pack. In my opinion you could use macro to handle the case:
#if defined(__clang__)
// Use `__make_integer_seq`
#elif defined(__GNUC__)
// Use `__integer_pack`

Are you using __integer_pack directly in your own source file? Or are you including some sort of library header which uses __integer_pack and getting an error from inside that library header?

I'm including a header where __integer_pack is used

#include <hpx/local/future.hpp> (the error just comes from this include line```. I'm using the hpx library.

According to https://hpx-docs.stellar-group.org/latest/html/manual/prerequisites.html#supported-compilers, HPX supports clang 10.0 or later, so its source code should be portable between gcc and clang.
Without having actually downloaded and played around with the library myself, my best guess is: maybe you need to configure it for building with clang (rather than with gcc), and generate a compile_commands.json from that configuration for use with clangd. (You don't have to actually build with clang.)

I also thought this could be a solution ... but I don't know how to build this compile_commands.json ... I don't have any documentation about it ...

The build looks to be based on CMake, you it should just be a matter of adding -DCMAKE_EXPORT_COMPILE_COMMANDS=1 to the cmake command, as mentioned at https://clangd.llvm.org/installation#compile_commandsjson (under "CMake-based projects").

So basically if I don't build the project ... (just have the binaries via a dnf install ) I can't do this?

Or I guess you could add the following to the .clangd file:
CompileFlags:
  Add: [-UHPX_HAVE_BUILTIN_INTEGER_PACK, -DHPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ]

sadly not working ... (i hope my clangd is configured to use this .clangd file)

So basically if I don't build the project ... (just have the binaries via a dnf install ) I can't do this?

How do you build your project? Do you use pkg-config or CMake? (https://hpx-docs.stellar-group.org/latest/html/manual/creating_hpx_projects.html)
If your project uses CMake, you can configure it with clang as a compiler and -DCMAKE_EXPERT_COMPILE_COMMANDS=1 . This should produce a clang-compatible compile_commands.json that will contain required options to make HPX headers work in clangd.

(i hope my clangd is configured to use this .clangd file)

Make sure it does.

So i"m pretty sure the clangd is loading the compilation database ... but I can't see any logs for loading .clangd??? is there a way to check for this?

is there a way to check for this?

Just look for the compile command of one TU with the issue and find if there exists something like -UHPX_HAVE_BUILTIN_INTEGER_PACK, -DHPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ.

so the flags are there: -UHPX_HAVE_BUILTIN_INTEGER_PACK -DHPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ

So, are you still suffering from the same issue? Could you please attach the full clangd log then?

[ERROR][2023-07-03 11:55:43] .../vim/lsp/rpc.lua:734	"rpc"	"clangd"	"stderr"	'I[11:55:43.349] <-- initialized\nI[11:55:43.350] <-- textDocument/didOpen\nI[11:55:43.350] --> textDocument/publishDiagnostics\nI[11:55:43.351] Loaded compilation database from /home/andreichalapco/uni-code/learning-hpx/test-project/build/compile_commands.json\nI[11:55:43.351] --> window/workDoneProgress/create(0)\nI[11:55:43.351] ASTWorker building file /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp version 0 with command \n[/home/andreichalapco/uni-code/learning-hpx/test-project/build]\n/usr/bin/g++ --driver-mode=g++ -DHPX_APPLICATION_EXPORTS -DHPX_APPLICATION_NAME_DEFAULT=my_hpx_program "-DHPX_PREFIX_DEFAULT=\\"/usr\\"" -g -std=gnu++17 -pthread -o CMakeFiles/my_hpx_program.dir/main.cpp.o -c -UHPX_HAVE_BUILTIN_INTEGER_PACK -DHPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ -resource-dir=/home/andreichalapco/.local/share/lvim/mason/packages/clangd/clangd_16.0.2/lib/clang/16 -- /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp\nI[11:55:43.351] Enqueueing 1 commands for indexing\nI[11:55:43.352] <-- textDocument/documentSymbol(2)\n'

Sorry I didn't see specific error message from the log. Could you simply run clangd -check=/home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp and attach the output here?

I[12:05:57.735] clangd version 16.0.5 (Fedora 16.0.5-1.fc38) I[12:05:57.735] Features: linux I[12:05:57.735] PID: 90187 I[12:05:57.735] Working directory: /home/andreichalapco/uni-code/learning-hpx/test-project I[12:05:57.735] argv[0]: clangd I[12:05:57.735] argv[1]: -check=main.cpp I[12:05:57.735] Entering check mode (no LSP server) I[12:05:57.735] Testing on source file /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp I[12:05:57.735] Loading compilation database... I[12:05:57.735] Loaded compilation database from /home/andreichalapco/uni-code/learning-hpx/test-project/build/compile_commands.json I[12:05:57.736] Compile command from CDB is: /usr/bin/g++ --driver-mode=g++ -DHPX_APPLICATION_EXPORTS -DHPX_APPLICATION_NAME_DEFAULT=my_hpx_program "-DHPX_PREFIX_DEFAULT=\"/usr\"" -g -std=gnu++17 -pthread -o CMakeFiles/my_hpx_program.dir/main.cpp.o -c -UHPX_HAVE_BUILTIN_INTEGER_PACK -DHPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ -resource-dir=/usr/lib64/clang/16 -- /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp I[12:05:57.736] Parsing command... I[12:05:57.738] internal (cc1) args are: -cc1 -triple x86_64-redhat-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -fcoverage-compilation-dir=/home/andreichalapco/uni-code/learning-hpx/test-project/build -resource-dir /usr/lib64/clang/16 -D HPX_APPLICATION_EXPORTS -D HPX_APPLICATION_NAME_DEFAULT=my_hpx_program -D "HPX_PREFIX_DEFAULT=\"/usr\"" -U HPX_HAVE_BUILTIN_INTEGER_PACK -D HPX_HAVE_BUILTIN_MAKE_INTEGER_SEQ -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13 -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/x86_64-redhat-linux -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/backward -internal-isystem /usr/lib64/clang/16/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/13/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++17 -fdeprecated-macro -fdebug-compilation-dir=/home/andreichalapco/uni-code/learning-hpx/test-project/build -ferror-limit 19 -pthread -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++ /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp I[12:05:57.738] Building preamble... I[12:06:00.507] Indexing headers... I[12:06:01.166] Built preamble of size 25706452 for file /home/andreichalapco/uni-code/learning-hpx/test-project/main.cpp version null in 3.43 seconds E[12:06:01.169] [undeclared_var_use] Line 15: in included file: use of undeclared identifier '__integer_pack' I[12:06:01.169] Building AST... I[12:06:01.246] Indexing AST... I[12:06:01.247] Building inlay hints I[12:06:01.247] Building semantic highlighting I[12:06:01.247] Testing features at each token (may be slow in large files) I[12:06:01.371] All checks completed, 1 errors

Thanks for providing logs. Another question: which version of HPX are you currently using? The previous macros are based on the trunk branch of HPX and I'm afraid your version of HPX is lack of such facility.

So basically if I don't build the project ... (just have the binaries via a dnf install ) I can't do this?

Sorry, I probably added to the confusion by mixing up the HPX library's build and your own project's build. It's the latter that's relevant, using precompiled binaries for the library is probably fine.
Does your project's build use CMake? (Is that how you created /home/andreichalapco/uni-code/learning-hpx/test-project/build/compile_commands.json, with -DCMAKE_EXPERT_COMPILE_COMMANDS=1)? Are you able to configure your project to use clang as a compiler rather than gcc?

I built the binaries again for hpx ... but this also did not solve the problem ... The fact is I built the project with gcc 13 and I don't want to go again to the hustle of compiling the entire project just for the clang.
Thx Again for all the support ! You guys are great ... but I think I'm gonna find another solution.

This is 1 to 1 related to #1906 . Problem were the compiler specific placeholders.


Logstash v5 support?

Currently this gem is locked at "logstash-core-plugin-api", ">= 1.60", "<= 2.99", has it been tested with version 5 by anyone or are there any obvious/known issues that would prevent it from working with version 5?  I am not familiar with all that is changing with v5, but as we are looking at a from scratch deployment I always like to start with the latest versions since it will likely be released by the time we're ready for actual implementation.

@jlambert121 Yes this plugin should work on LS 5.0


Added New-VolumeShadowCopy and Remove-VolumeShadowCopy Cmdlets

I added the ability to create a new VSC and remove a VSC.  We got on a DC that didnt have any ShadowCopies, so we had to create them ourselves.... and then realized that we should probably be able to clean up after ourselves.

You should really add an option to remove a particular volume shadow copy instead of all of them, e.g. you get on a box that already has VSCs and you make a more current one and only want to delete the one you created. That's what I did in invoke-wmishadowcopy ;)

Oh Jesse! The capability is there via the InputObject or DevicePath parameters, but I suppose it could use another example to show this functionality.

This is great Jared. Thank for the PR. I can definitely pull these in but some things to consider first. Since New-VolumeShadowCopy requires elevated privileges, perhaps you should first confirm that the VSS service is running and if not, start it.
Also, I think you're over-engineering Remove-VolumeShadowCopy. I think it should simply take in the raw DeviceObject paths and delete them accordingly. You can achieve this in a one-liner essentially. Consider the following modification:
filter Remove-VolumeShadowCopy
{
<#
.SYNOPSIS

    Deletes a volume shadow copy.

    PowerSploit Function: Remove-VolumeShadowCopy
    Author: Jared Atkinson (@jaredcatkinson)
    License: BSD 3-Clause
    Required Dependencies: None
    Optional Dependencies: None
    Version: 2.0.0

.DESCRIPTION

    Remove-VolumeShadowCopy deletes a volume shadow copy from the system.

.PARAMETER DevicePath

    Specifies the volume shadow copy 'DeviceObject' path. This path can be retrieved with the Get-VolumeShadowCopy PowerSploit function or with the Win32_ShadowCopy object.

.EXAMPLE

    Get-VolumeShadowCopy | Remove-VolumeShadowCopy

    Description
    -----------
    Removes all volume shadow copy

.EXAMPLE

    Get-WmiObject Win32_ShadowCopy | Remove-VolumeShadowCopy

    Description
    -----------
    Removes all volume shadow copy

.EXAMPLE

    Remove-VolumeShadowCopy -DevicePath '\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4'

    Description
    -----------
    Removes the volume shadow copy at the 'DeviceObject' path \\?\GLOBALROOT\DeviceHarddiskVolumeShadowCopy4
#>
    Param(
        [Parameter(Mandatory = $True, ValueFromPipeline = $True)]
        [ValidatePattern('^\\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy[0-9]{1,3}$')]
        [String]
        $DevicePath
    )

    Get-WmiObject -Namespace root\cimv2 -Class Win32_ShadowCopy |
        Where-Object {$_.DeviceObject -eq $DevicePath} |
            ForEach-Object { $_.Delete() }
}

That's a bit cleaner, no? I generally strongly advise against parameters that accept [Object]s unless there's a very good reason.

Also, I would consider Get-VolumeShadowCopy to be an optional dependency since you're including it in the examples.

I like the idea of starting the VSS Service... I'll do some testing on that and resubmit.
For the Remove-VSC cmdlet, I'd like to keep the functionality of removing all vsc if no specific path is given, but I think using the DevicePath is better than the whole object for the same reasons you stated.

"I'd like to keep the functionality of removing all vsc if no specific path is given." That being the case, this is the perfect example of supporting the -Whatif parameter. :)

Good point.  I think by convention all "Remove" cmdlets should support "ShouldProcess".

I think it may be useful to add a -ComputerName option to Get-VolumeShadowCopy, New-VolumeShadowCopy, and Remove-VolumeShadowCopy. All three of these cmdlets should natively support remoting through WMI

That's fine but then you would also need to include the following relevant parameters:
-Authentication
-Credential
-Impersonation
-ThrottleLimit
I personally only ever intended for the VSS functions to be executed locally only because there was no logical remote equivalent for Mount-VolumeShadowCopy. That, and I didn't see the value in being able to view and remove shadow copies remotely. That said, it's not like it's much work to add those parameters and then pass them to the WMI cmdlets via splatting.

Agreed. I'm happy with how it is now.

Thank you, sir!


math.switchDimInternal() is showing "Not yet implemented!". How to transpose a matrix if switchDimInternal isn't implemented yet?

Is there any other way to transpose a matrix in deeplearn?

Ah, so we have a CPU version of transpose, but haven't yet implemented it on the GPU.
If you're just trying to transpose weights, or something of that sort, you can do it with an explicit NDArrayMathCPU object, but if you need it on the GPU (for performance, transposition is part of your model or something) then it needs to be implemented properly on the GPU. If you want to send us a PR I can help you think about how to do that!


SVG admonition icons don't work

Using:
Asciidoctor PDF 1.5.0.alpha.15 using  Asciidoctor 1.5.5 [http://asciidoctor.org]
Runtime Environment (ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]) (lc:IBM437 fs:Windows-1252 in:- ex:IBM437)
With:
:icontype: svg
I get:
asciidoctor: WARNING: could not embed admonition icon image: images/icons/warning.svg; image file is an unrecognised format
SVGs work fine as images, can they be allowed for icons as well?

This is most probably a problem of prawn-svg gem (https://github.com/mogest/prawn-svg) that doesn't provide class Prawn::Image::SVG. See also https://github.com/prawnpdf/prawn/blob/master/lib/prawn/image_handler.rb and for example https://github.com/prawnpdf/prawn/blob/master/lib/prawn/images/jpg.rb

Another way to put it is that we have to add dedicated support for SVG where ever an image is allowed. It's more than just the fact that the Prawn SVG doesn't hook into the image helper in Prawn. It's that we always have to do special processing for SVGs because they simple require it.
This was just not one of the places for using SVG that we had considered.

I was bitten by this issue as well.
@mojavelinux, can you expand on what special handling is required on the asciidoctor-pdf side? I would like to help.

A PR is now available for this request. Please see #953.


Rng.clone() should not change internal state - issue #36

Fix issue as reported https://github.com/smol-rs/fastrand/issues/36

Follow https://github.com/smol-rs/fastrand/pull/38


Spectrogram goes out of sync for variable bitrates

When a song has a variable bitrate, the spectrogram no longer lines up with the played audio.
This seems like a complex issue, because currently the rate variable in InLineWorker() from SpectrogramViewer.js uses a constant bitrate.
I am not sure how feasible fixing it would be, but I felt like mentioning the problem at least.
I think currently the most realistic solution is to just force/warn users to use audio with a constant bitrate.

Probably because the audio playback function ("") of the browser cannot perform precise seek with VBR.
Certainly adding an explanation is the easiest and fastest.
By the way, the partial playback in Tune mode is playing the data decoded by the Web Audio API, so there should be no discrepancy.
Also "the rate variable in InLineWorker () from SpectrogramViewer.js" (And "add") are parameters related to adjusting the color density of the spectrogram and have nothing to do with bitrate.
おそらくブラウザのオーディオ再生機能("")がVBRでの精密なシークをできないからだと思います。
確かに説明を追加するのが一番楽で速い。
ちなみにTuneモードの部分再生は、Web Audio APIでデコードされたデータを再生しているのでズレはないはずです。
あと "the rate variable in InLineWorker() from SpectrogramViewer.js" （と"add"）はspectrogramの色の濃さの調整に関わるパラメータでbitrateとは関係ないです。


Kubefed roadmap and GA dates

Hi,
Im really like the KubeFed project and see a lot of potential in that tech especially in hybrid scenarios but me and my customers are wondering about unclear GA dates and the roadmap. I know thats a hard question and its hard to commit to something like that but probably you can share any information on when it would be ready to use in production scenarios or any approximate dates/roadmap?

/triage support

@Gaploid We are actively using and maintaining kubefed. In addition, we have proposed certain improvements that we want to include into kubefed.
Some of those improvements are:

Remote federated resource status: https://github.com/kubernetes-sigs/kubefed/blob/master/docs/keps/20200619-federated-resource-status.md
Pull reconciliation model: https://github.com/kubernetes-sigs/kubefed/blob/master/docs/keps/20200619-kubefed-pull-reconciliation.md
Certain experimental features would be deprecated which would help to keep the code cleaner and ease the maintenance.
With a clear focus on the main kubefed features (resource federation), we could easily increase the test coverage.

Did I miss anything @makkes ?
Our idea is to come with a more official ROADMAP and share it during the sig-meeting, cc @jimmidyson.

That's great. Any ideas of multi-deployment of kubefed to remove a single point of failure? As I understand currently kubefed deployed on one "master" cluster and if it will go down all federation will be de-synced.

@Gaploid That is an interesting topic, I've been reading related work that shards the control plane across the cluster or clusters to solve that problem. We could kick the discussion in a KEP if you also have ideas but I don't think it is part of the imminent roadmap.
In relation to your comment,  if it will go down all federation will be de-synced, there won't be such de-synced because the kubefedcluster will keep their state as defined before the control-plane or master clsuter crashed.
Generally if you have a HA setup for your etcd datastore you could face downtimes if the kubefed control-plane pods go down, but the state would remain in etcd. You could have etcd peers in different AZs to avoid facing these issues.


Clarification about PyAV license?

Overview
License file of PyAV is advertised as BSD3; however, as in conda-forge it is packaged directly with (non-free) version of FFMPEG, shouldn't the binaries should be advertised as GPL license as well?
Expected behavior
Whilst the codebase is and can be BSD3 licensed, it should be noted for the user that installation of the binaries makes the entire package GPL-licensed.
For example, conda-forge FFMPEG is clearly marked as being GPL as a binary in their feedstock. OpenCV on another hand has a note in their license file that user takes responsibility for non-free FFMPEG as it's redistributed with it's packages.
Actual behavior
Licensing is at the moment mentioned in the license file linked above, in the docs, and conda-forge/pypi feedstocks respectively. There is no mentioning of a usage of non-free FFMPEG, or GPL license.
When submitting bug report, I found the mention in the collection script (see output bellow), but I think it should be clearly marked in the repo/feedstocks as well.
PyAV v8.0.3
git origin: git@github.com:PyAV-Org/PyAV
git commit: unknown-commit
[ ... ]
library license: GPL version 2 or later
libavcodec     58. 54.100
[ ... ]

Investigation
FFMPEG the is mostly, LGPL (thus allowing dynamic linking without license change), but FFMPEG built in conda-forge (and the one that is installed by default when one installs pyav from the conda-forge), is built with --enable-gpl flag set, making it GPL license (see here for details) that does not allow dynamic linking.
As PyAV links to the GPL version of FFMPEG, unless I misunderstand the way PyAV links to FFMPEG, that the binaries should be advertised as such, either in the repository directly (see opencv example above as an option) or in the pypi/conda-forge directly.
I have done the following:

[x] Checked the PyAV documentation
[x] Searched on Google
[x] Searched on Stack Overflow
[x] Looked through old GitHub issues

I also like what opencv does in its PyPI README (https://pypi.org/project/opencv-python/):
## Licensing

Opencv-python package (scripts in this repository) is available under MIT license.

OpenCV itself is available under Apache 2 license.

Third party package licenses are at LICENSE-3RD-PARTY.txt.

All wheels ship with FFmpeg licensed under the LGPLv2.1.

Non-headless Linux and MacOS wheels ship with Qt 5 licensed under the LGPLv3.

The packages include also other binaries. Full list of licenses can be found from LICENSE-3RD-PARTY.txt.

Unpacking a PyAV wheel shows that lots of third-party libraries are included, but there's no license info for them in the wheel or in the README:

% unzip av-8.0.3-cp39-cp39-manylinux2010_i686.whl
Archive:  av-8.0.3-cp39-cp39-manylinux2010_i686.whl
  inflating: av/__main__.py
  inflating: av/stream.cpython-39-i386-linux-gnu.so
  inflating: av/descriptor.cpython-39-i386-linux-gnu.so
  inflating: av/packet.cpython-39-i386-linux-gnu.so
  inflating: av/dictionary.cpython-39-i386-linux-gnu.so
  inflating: av/error.cpython-39-i386-linux-gnu.so
  inflating: av/plane.cpython-39-i386-linux-gnu.so
  inflating: av/option.cpython-39-i386-linux-gnu.so
  inflating: av/frame.cpython-39-i386-linux-gnu.so
  inflating: av/format.cpython-39-i386-linux-gnu.so
  inflating: av/_core.cpython-39-i386-linux-gnu.so
  inflating: av/buffer.cpython-39-i386-linux-gnu.so
  inflating: av/utils.cpython-39-i386-linux-gnu.so
  inflating: av/deprecation.py
  inflating: av/logging.cpython-39-i386-linux-gnu.so
  inflating: av/bytesource.cpython-39-i386-linux-gnu.so
  inflating: av/__init__.py
  inflating: av/enum.cpython-39-i386-linux-gnu.so
  inflating: av/datasets.py
  inflating: av/subtitles/stream.cpython-39-i386-linux-gnu.so
  inflating: av/subtitles/subtitle.cpython-39-i386-linux-gnu.so
  inflating: av/subtitles/codeccontext.cpython-39-i386-linux-gnu.so
  inflating: av/subtitles/__init__.py
  inflating: av/data/stream.cpython-39-i386-linux-gnu.so
  inflating: av/data/__init__.py
  inflating: av/filter/context.cpython-39-i386-linux-gnu.so
  inflating: av/filter/pad.cpython-39-i386-linux-gnu.so
  inflating: av/filter/filter.cpython-39-i386-linux-gnu.so
  inflating: av/filter/graph.cpython-39-i386-linux-gnu.so
  inflating: av/filter/link.cpython-39-i386-linux-gnu.so
  inflating: av/filter/__init__.py
  inflating: av/sidedata/motionvectors.cpython-39-i386-linux-gnu.so
  inflating: av/sidedata/sidedata.cpython-39-i386-linux-gnu.so
  inflating: av/sidedata/__init__.py
  inflating: av/codec/codec.cpython-39-i386-linux-gnu.so
  inflating: av/codec/context.cpython-39-i386-linux-gnu.so
  inflating: av/codec/__init__.py
  inflating: av/video/reformatter.cpython-39-i386-linux-gnu.so
  inflating: av/video/stream.cpython-39-i386-linux-gnu.so
  inflating: av/video/plane.cpython-39-i386-linux-gnu.so
  inflating: av/video/frame.cpython-39-i386-linux-gnu.so
  inflating: av/video/format.cpython-39-i386-linux-gnu.so
  inflating: av/video/codeccontext.cpython-39-i386-linux-gnu.so
  inflating: av/video/__init__.py
  inflating: av/audio/stream.cpython-39-i386-linux-gnu.so
  inflating: av/audio/plane.cpython-39-i386-linux-gnu.so
  inflating: av/audio/frame.cpython-39-i386-linux-gnu.so
  inflating: av/audio/fifo.cpython-39-i386-linux-gnu.so
  inflating: av/audio/format.cpython-39-i386-linux-gnu.so
  inflating: av/audio/layout.cpython-39-i386-linux-gnu.so
  inflating: av/audio/codeccontext.cpython-39-i386-linux-gnu.so
  inflating: av/audio/resampler.cpython-39-i386-linux-gnu.so
  inflating: av/audio/__init__.py
  inflating: av/container/streams.cpython-39-i386-linux-gnu.so
  inflating: av/container/core.cpython-39-i386-linux-gnu.so
  inflating: av/container/output.cpython-39-i386-linux-gnu.so
  inflating: av/container/pyio.cpython-39-i386-linux-gnu.so
  inflating: av/container/__init__.py
  inflating: av/container/input.cpython-39-i386-linux-gnu.so
  inflating: av-8.0.3.dist-info/AUTHORS.rst
  inflating: av-8.0.3.dist-info/AUTHORS.py
  inflating: av-8.0.3.dist-info/WHEEL
  inflating: av-8.0.3.dist-info/METADATA
  inflating: av-8.0.3.dist-info/top_level.txt
  inflating: av-8.0.3.dist-info/entry_points.txt
  inflating: av-8.0.3.dist-info/RECORD
  inflating: av-8.0.3.dist-info/LICENSE.txt
  inflating: av.libs/libopus-87ffc4ed.so.0.8.0
  inflating: av.libs/libavcodec-f806ffdf.so.58.91.100
  inflating: av.libs/libavdevice-e87569b9.so.58.10.100
  inflating: av.libs/libnettle-e4fc5f31.so.8.0
  inflating: av.libs/libvorbis-92f01e97.so.0.4.8
  inflating: av.libs/libmp3lame-233526a7.so.0.0.0
  inflating: av.libs/libxcb-1d343cf2.so.1.1.0
  inflating: av.libs/libfontconfig-42f938cb.so.1.12.0
  inflating: av.libs/libwavpack-500ac1a5.so.1.2.2
  inflating: av.libs/libavutil-c7a17312.so.56.51.100
  inflating: av.libs/libtwolame-8efe7d43.so.0.0.0
  inflating: av.libs/libpng16-4dd41ebc.so.16.37.0
  inflating: av.libs/libbluray-2055902f.so.2.1.2
  inflating: av.libs/libuuid-cb567fd4.so.1.3.0
  inflating: av.libs/libopencore-amrnb-fcdb16d4.so.0.0.3
  inflating: av.libs/libfreetype-7926def1.so.6.17.1
  inflating: av.libs/libxml2-306772f1.so.2.9.10
  inflating: av.libs/libz-8589071d.so.1.2.11
  inflating: av.libs/libXau-ddba53a6.so.6.0.0
  inflating: av.libs/libopenjp2-a6ae8f36.so.2.3.1
  inflating: av.libs/liblzma-ea420d9f.so.5.2.5
  inflating: av.libs/libgnutls-02936458.so.30.27.0
  inflating: av.libs/libass-404a6c3a.so.9.0.2
  inflating: av.libs/libxcb-xfixes-6e1b3b9c.so.0.0.0
  inflating: av.libs/libogg-d5fe6797.so.0.8.4
  inflating: av.libs/libxcb-shm-7d8441d4.so.0.0.0
  inflating: av.libs/libhogweed-172f4210.so.6.0
  inflating: av.libs/libpostproc-39bb583e.so.55.7.100
  inflating: av.libs/libopencore-amrwb-556bb03f.so.0.0.3
  inflating: av.libs/libswscale-bb3551d5.so.5.7.100
  inflating: av.libs/libvorbisenc-c5e741ca.so.2.0.11
  inflating: av.libs/libxcb-shape-53904167.so.0.0.0
  inflating: av.libs/libavfilter-c4304e6c.so.7.85.100
  inflating: av.libs/libdav1d-bfb07d4d.so.5.0.0
  inflating: av.libs/libtheoraenc-c230ffa5.so.1.1.2
  inflating: av.libs/libx264-f186cfe9.so.161
  inflating: av.libs/libunistring-8f6e4b23.so.2.1.0
  inflating: av.libs/libaom-cc3bbb84.so.1.0.0
  inflating: av.libs/libspeex-b3692605.so.1.5.1
  inflating: av.libs/libxvidcore-c069e549.so.4.3
  inflating: av.libs/libswresample-b6e24c9a.so.3.7.100
  inflating: av.libs/libgmp-7f11e5b1.so.10.4.0
  inflating: av.libs/libx265-4feea3a3.so.179
  inflating: av.libs/libavformat-6ffdc7ea.so.58.45.100
  inflating: av.libs/libtheoradec-6f380291.so.1.1.4
  inflating: av.libs/libfribidi-8ebafbbb.so.0.4.0

A pull request is welcome.

there's an open PR for this, so the bot is a bit too eager (this comment will keep it from closing)


How to hide the script files

Hello, I wrote a firebase database and authentication script, but now I realised that if I package the game, users will see the scripts and can even modify it.
So my question is how to hide the .js (script) files, or variables and how to disable modification of these files/vars.
If its not possible do you know some alternatives? Or a way to include Firebase SDK in Unreal?
PS: I tried their REST API, but their auth token is not working
Thank you in advance.

You could probably do a hash of the files you wish to stay fixed and then check against the hash before you run the script, if not matching, don't run it.
As for hiding the files, I'm not sure maybe you can use a minimizer e.g. https://www.npmjs.com/package/node-minify, but I'll admit I don't have much experience with this aspect yet.

Thank you for your very quick response. I totally forgot about the hashing option.
I am sorry to bother you with this.
Have a nice day.


Please add a .cropper('getBlob', cb, ...) method

I'm working with cropper with the intent of uploading the cropped images via XHR2 as a Blob.
Canvas elements have a toBlob method that sends a Blob to a callback instead of a data URI. It's not universally supported (Firefox has it but not Chrome) however it can be pollyfilled.
I'm not suggesting that cropper incorporate the pollyfill. But I would like to have a getBlob method that behaves the same as the getDataURL method, where the browser supports canvas.toBlob.
Then anyone who wants to use getBlob across browsers can just include the pollyfill.

((Note that the cropper I linked to doesn't actually work because it uses the dropped BlobBuilder. But it is still possible to pollyfill toBlob))

I implemented this in #200.

Thank you!
You can include a polyfill project (e.g., canvas-toBlob) before call toBlob if the browser does not support it, and then get blob like this:
$().cropper('getCroppedCanvas').toBlob();

Note that lack of toBlob means blob users need to implement the image/jpeg set fillColor: #fff handling themselves.


Support only 5.5 to 5.8

I reduced support on this branch Laravel 5.5 - 5.8. Anyone wanting Laravel 6 or higher should use the 3.x branch.
I added a really basic test of the ServiceProvider to validate the method of fetching the log. That test can be expended to cover more behaviors of the ServiceProvider, but I suggest doing that on the 3.x branch and back-porting to here if we want.
I want to do some more real-world testing before this is merged, even though the tests are passing.

You can remove the ScheduledTaskCollector class and the RecordTransaction middleware for jobs, as those are L6 specific.

Closes #94
I think this is ready. The tests are passing on Laravel versions 5.5 through 5.8, including a new test of the ServiceProvider to make sure getting the Monolog instance works.
I'm not sure why the GitHub actions do not appear on this PR. They are running in my fork and have passed, though.

There is something very odd going on with the jobs. As you noted, they fail, but then succeed when re-run. I have observed that on more than one occasion, enough to suspect there is a real problem that needs to be addressed. Again this morning the jobs started by commit failed in your project but passed in mine. Re-running them in yours allowed them to pass.
I'm wondering if there is a cache order problem or something. I see that you are caching the composer cache directory, but not the vendor directory itself. I also see that the cache key in the unit test workflow includes the Laravel version, but the restore key does not. I don't know yet why any of that would make a difference, if it does at all. I'm just making observations at this point.

There is something very odd going on with the jobs. As you noted, they fail, but then succeed when re-run. I have observed that on more than one occasion, enough to suspect there is a real problem that needs to be addressed. Again this morning the jobs started by commit failed in your project but passed in mine. Re-running them in yours allowed them to pass.
I'm wondering if there is a cache order problem or something. ~I see that you are caching the composer cache directory, but not the vendor directory itself. I also see that the cache key in the unit test workflow includes the Laravel version, but the restore key does not. I don't know yet why any of that would make a difference, if it does at all. I'm just making observations at this point.~
After some more reading on actions/cache@v2, the implementation make sense. I'm even more stumped now.

It makes sense to be a caching problem, because Composer seems to install/load from cache correctly, but somehow some files are missing. If the problem persists, we can disable the cache as first measurement.

@arkaitzgarro Yes, I neglected to mention, but I did run install and run each version of Laravel 5.5 through 5.8 with example app. It hits most of the major features and there were no obvious issues.


package vulkan-tools

Comment:
I think it would be nice to have a package for vulkant-tools
https://github.com/KhronosGroup/Vulkan-Tools/
Just leaving it here for future reference

Have you looked into moltenvk? it seems like a dependency to build vulkan-tools on osx:
https://github.com/KhronosGroup/MoltenVK

Have you looked into moltenvk? it seems like a dependency to build vulkan-tools on osx: https://github.com/KhronosGroup/MoltenVK

It seems to be using xcode as build system, I am not sure how compatible is xcode with conda-forge-provided compilers.


Disable ort tests to pass jenkins

changes to run some tests one by one instead of simultaneously.

@mvermeulen I think we can merge this PR now, then other PRs should pass the jenkins.
ssue #743 is created to track this issue.


ThreadLocker stopping engine

When an event is made and the thread locker is used, the program freezes.

Fixed in 1.8.2


Issues with building and testing in mac OS.

Hi, has anyone tried to build and test using mac OS (m1 chip Ventura 13.3) ? I have tried building the lib previously but had some issues with the versions of third party dependencies. I was using docker before but still was not able to build due to some issues and now in the latest version, docker support has been removed I'm assuming.
I've also tried the steps mentioned in the BUILDING_OSX.md but still no luck. My goal is to do some local changes and test them on my machine. Any help would be appreciated :)
The following are examples of the kinds of errors I'm getting. (I haven't modified any files yet and did a fresh pull as well)
error: use of undeclared identifier 'JxlEncoderSetExtraChannelDistance'; did you mean 'JxlEncoderSetExtraChannelInfo'?
        JXL_ENC_SUCCESS != JxlEncoderSetExtraChannelDistance(
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           JxlEncoderSetExtraChannelInfo
/opt/homebrew/include/jxl/encode.h:912:29: note: 'JxlEncoderSetExtraChannelInfo' declared here
JXL_EXPORT JxlEncoderStatus JxlEncoderSetExtraChannelInfo(

error: cannot initialize a parameter of type 'JxlEncoder *' (aka 'JxlEncoderStruct *') with an lvalue of type 'JxlEncoderFrameSettings *' (aka 'JxlEncoderFrameSettingsStruct *')
                               settings, 0, params.alpha_distance)) {
                               ^~~~~~~~
/opt/homebrew/include/jxl/encode.h:52:16: note: 'JxlEncoderFrameSettingsStruct' is not defined, but forward declared here; conversion would be valid if it was derived from 'JxlEncoderStruct'
typedef struct JxlEncoderFrameSettingsStruct JxlEncoderFrameSettings;
               ^
/opt/homebrew/include/jxl/encode.h:913:17: note: passing argument to parameter 'enc' here
    JxlEncoder* enc, size_t index, const JxlExtraChannelInfo* info);

            ^

This looks like somehow older header files are being used there, from before JxlEncoderSetExtraChannelDistance was added...

This looks like somehow older header files are being used there, from before JxlEncoderSetExtraChannelDistance was added...

I tried this from a fresh pull but still had the same issues. I'm unsure if this is a local problem on my machine or not.

Building libjxl on macOS (M1 chip, Ventura 13.4.1) works with the following steps:
git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules
then,
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
export CMAKE_PREFIX_PATH=`brew --prefix giflib`:`brew --prefix jpeg-turbo`:`brew --prefix libpng`:`brew --prefix zlib`

Finally,
cmake -B./build -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ \
-DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF -G Ninja -DCMAKE_LINKER=ld.lld

Good luck!

Any action items here? Do we need to add/change anything in the build documentation?

Any action items here? Do we need to add/change anything in the build documentation?

/usr/local/opt/llvm/bin/clang

is not correct for Apple M1/M2 computers.
I suggest changing the path to $HOMEBREW_PREFIX/bin/clang

@osamu620 I'm on intel mac, do you know what I'm doing wrong?
cmake -B./build -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -G Ninja -DCMAKE_LINKER=ld.lld ..
-- The C compiler identification is Clang 19.1.4
-- The CXX compiler identification is Clang 19.1.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/local/opt/llvm/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/Users/fractale/libjxl/build/build/CMakeFiles/CMakeScratch/TryCompile-bo85SK'

    Run Build Command(s): /usr/local/bin/ninja -v cmTC_958a4
    [1/2] /usr/local/opt/llvm/bin/clang   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -MD -MT CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -c /Users/fractale/libjxl/build/build/CMakeFiles/CMakeScratch/TryCompile-bo85SK/testCCompiler.c
    [2/2] : && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/homebrew/opt/llvm/lib CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -o cmTC_958a4   && :
    FAILED: cmTC_958a4
    : && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/homebrew/opt/llvm/lib CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -o cmTC_958a4   && :
    ld: warning: directory not found for option '-L/opt/homebrew/opt/llvm/lib'
    ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/lib/libSystem.tbd' for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.

-- The C compiler identification is Clang 19.1.4

-- The CXX compiler identification is Clang 19.1.4

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - failed

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken

CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):

  The C compiler

    "/usr/local/opt/llvm/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/Users/fractale/libjxl/build/build/CMakeFiles/CMakeScratch/TryCompile-bo85SK'

    Run Build Command(s): /usr/local/bin/ninja -v cmTC_958a4

    [1/2] /usr/local/opt/llvm/bin/clang   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -MD -MT CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -c /Users/fractale/libjxl/build/build/CMakeFiles/CMakeScratch/TryCompile-bo85SK/testCCompiler.c

    [2/2] : && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/homebrew/opt/llvm/lib CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -o cmTC_958a4   && :

    FAILED: cmTC_958a4

    : && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/homebrew/opt/llvm/lib CMakeFiles/cmTC_958a4.dir/testCCompiler.c.o -o cmTC_958a4   && :

    ld: warning: directory not found for option '-L/opt/homebrew/opt/llvm/lib'

    ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/lib/libSystem.tbd' for architecture x86_64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:10 (project)

-- Configuring incomplete, errors occurred!

Cmake says your compiler could not compile a simple C program. What will happen without DCMAKE_C_COMPILER?

without DCMAKE_C_COMPILER it uses Apple clang
ld: warning: directory not found for option '-L/opt/homebrew/opt/llvm/lib' You can also see here that it looks for a path like it was an M1 Mac. On an Intel Mac, it's /usr/local/opt/llvm/lib, but I can't find a way to change this.


Initialize all metrics to zero

Ref: https://github.com/autometrics-dev/autometrics-rs/issues/70

Note: we can't really initialise the metrics to 0, since we don't know in advance the sets of labels that are going to be relevant for the function_calls_count and function_calls_duration metrics.
A solution would be to set the metrics to 0 on initialisation for each function that got "autometricised" in the code, but that's very likely not possible in Go (or at least not without a lot of work and magic in the generator and the initialisation code that the user needs to add at least)
So it's probably a wontfix for now, we'll see later how important having such a feature would be


deps: home-assistant-chip-core declared as an optional dependency

home-assistant-chip-core is explicitly required, but it is declared as an optional dependency.
All dependencies that are explicitly required should be declared as production dependencies.

home-assistant-chip-core is only required for the server and not for the client. Has that changed?

home-assistant-chip-core is only required for the server.


Python API needs opts on get_X functions to allow for different region providers

Each of the AWS Resource classes (eg Vpc, Instance) take an opts parameter that can include an alternate provider. This allows resources to be created and tracked across regions.
However the equivalent get_x functions (eg get_vpc) do not, which means that only the default provider will be called when the function is invoked in pulumi.do_invoke.
This doesn't allow cross region queries via alternate providers.

Moved to https://github.com/pulumi/pulumi-terraform/issues/331 - thanks for the report!


await chrome.close() hangs

Hi, thanks for the useful library.
I've found that await chrome.close() call pegs one cpu core and hangs forever if the browser window is closed before the chrome.close() call is made.
Reproduction steps:
git clone https://github.com/fctorial/ConstexprJS

cd ConstexprJS

npm i

./constexpr.js --input test --output dir --verbose --entry /input.html --noheadless

An empty browser window will open. If you close this browser window, the app will hang with one cpu core at 100%. This is the part of code that uses chrome-debugging-client:
https://github.com/fctorial/ConstexprJS/blob/17360f05e4f0e2091c8ccb0779dd3451ccba24a5/constexpr.js#L145
As you can see, it's structured similar to the example in project readme.
I encountered this bug on an X11 linux system.

Issue was in our code.


@auth directive with 'userPools' provider found, but the project has no Cognito User Pools authentication provider configured.

Describe the bug
In schema when I limit access to groups then I cannot generate datastore models and cannot push to the cloud
Amplify CLI Version
amplify 4.13.4
To Reproduce
npx create-react-app notes --use-npm --template typescript
npx amplify-app@latest
amplify init
amplify add auth everything default
amplify update auth to create cognito user group "admin"
then update graphql schema to following
type Note @model
  @auth(rules: [{allow: groups, groups: ["admin"]}]) {
  id: ID!
  content: String!
}

or
type Note @model
  @auth(rules: [{allow: owner}]) {
  id: ID!
  content: String!
}

After this step all of the following commands fail with same exact error as title
npm run amplify-modelgen
amplify codegen models
amplify push
everything fails with following error
@auth directive with 'userPools' provider found, but the project has no Cognito User Pools authentication provider configured.
alternatively I used the following method
npx create-react-app notes --use-npm --template typescript
npx amplify-app@latest
updated graphql schema
type Note @model {
  id: ID!
  content: String!
}

npm run amplify-push
amplify add auth everything default
amplify push
updated graphql schema to
type Note @model
  @auth(rules: [{allow: owner}]) {
  id: ID!
  content: String!
}

now I tried to push
amplify push
Now my auth is created schema is on update stage and I still get the same error
Expected behavior
It should generate models and should be able to push to cloud.
Desktop (please complete the following information):

OS: Windows 10
Node Version. 12.16.1

@apoorvmote Did you run amplify update api to use Cognito as the auth mode?

@kaustavghosh06 No I didn't and when I tried it worked. Thanks.
For others who are interested I did following.
npx create-react-app notes --use-npm --template typescript
npx amplify-app@latest
then update graphql schema without auth to whatever you want. e.g.
type Note @model {
  id: ID!
  content: String!
}

then you need to initialize amplify project you can do with amplify init but I went with recommended approch to just push everything to aws
npm run amplify-push I am sure there are options to be add on this line
amplify add auth add any auth settings you like
change graphql schema to make use of this auth e.g.
type Note @model
  @auth(rules: [{allow: owner}]) {
  id: ID!
  content: String!
}

NOW HERE IS THE MISSING STEP
amplify update api
Protect the api with congnito auth.
then simply amplify push and it just works.


Add polyphase FIR decimator

Codecov Report
Patch coverage: 74.30% and project coverage change: +0.12% :tada:

Comparison is base (ffa57b9) 67.28% compared to head (dc3c3b1) 67.41%.

Additional details and impacted files
@@                Coverage Diff                @@
##           release/0.0.x      #94      +/-   ##
=================================================
+ Coverage          67.28%   67.41%   +0.12%
=================================================
  Files                 40       40
  Lines               1727     1838     +111
=================================================
+ Hits                1162     1239      +77
- Misses               565      599      +34

Files Changed
Coverage Δ

src/sdr/_filter/_iir.py
58.24% <70.00%> (+2.42%)
:arrow_up:

src/sdr/_filter/_polyphase.py
72.46% <72.46%> (ø)

src/sdr/_filter/_fir.py
66.26% <92.00%> (+2.75%)
:arrow_up:

src/sdr/_filter/__init__.py
100.00% <100.00%> (ø)

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


When run the program get That can not find bind point of OCIBindByPos2 in the dynamic link library

I have install and copile the gopkg.in/rana/ora.v3
My programs copile whitout errors.
When run the program get:
The entry point of the OCIBindByPos2 procedure could not be located in the dynamic link library
What is brong?

Your libclntsh.so does not contain OCIBindByPos2, only OCIBindByPos - it's an older version than with what you've compiled with
Maybe gopkg.in/goracle.v2 is better (uses ODPI-C, a nicer C library): does not need OCI libs at compile time, only at runtime, so it decides which version of OCIBindByPos to use at runtime.

This file libclntsh.dll or .so is not present in my windows.
Is and ohter lib

the problem was solved with instantclient-basic-windows.x64-<IP_ADDRESS>.0 + SDK
The 12 version has OCIBindByPos2.
The gopkg.in/goracle.v2 is not compiling
gives:
gopkg.in/goracle.v2
..\gopkg.in\goracle.v2\orahlp.go:229: undefined: sql.Out
..\gopkg.in\goracle.v2\orahlp.go:293: undefined: sql.Out
..\gopkg.in\goracle.v2\stmt.go:150: undefined: driver.NamedValueChecker
..\gopkg.in\goracle.v2\stmt.go:275: undefined: sql.Out
..\gopkg.in\goracle.v2\stmt.go:646: undefined: sql.Out
..\gopkg.in\goracle.v2\stmt.go:1832: undefined: driver.ErrRemoveArgument

Regarding gopkg.in/goracle.v2: it needs at least Go 1.9 - the best is the latest (1.11.2 ATM).

"%v" is better, but yes (assuming rowP isd []driver.Value or []interface{}).

i try with %v, prints   for each row in the select
the code
for rows.Next() {
rows.Scan(rowP)
fmt.Printf("%v", rowP[0])
}


'else' is a keyword

It seems that else was incorrect typed as a rule instead of a keyword here.

Nice, thank you for the PR!


Invalid template type

when i use button type then its returning me invalid button type.

Thanks for reporting this bug. Can you please provide more information? Example code would be great.

@nomanbiniqbal does this error still occur?

Thanks for your replay but the couse of this issue was on my application end .
I was using old version for gson after i update that its work fine.
By the way thanks for your reply :) love u


Potential bug in function types

Converting a FUNCTION type specifier, with a lambda-list in which one or more of the arguments are *, results in an error condition being signalled.
Evaluating the following at the REPL:
(ctype:specifier-ctype '(function (*) t))

Results in:
debugger invoked on a SB-PCL:CLASS-NOT-FOUND-ERROR in thread
#<THREAD "main thread" RUNNING {10005505B3}>:
  There is no class named COMMON-LISP:*.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.```

There is no issue if the entire lambda-list is *:
* (ctype:specifier-ctype '(function * t))
#<CTYPE:CFUNCTION FUNCTION>

Theoretically a function type specifier with a * in the lambda-list is valid.
Environment details:

SBCL 2.1.4

My understanding of the standard is that * is not a type specifier, but may be used as an argument to some compound type specifiers in certain fixed ways, not including as a parameter in a lambda list. Is there code that does this? Why not just use t?

I'm too not sure about this myself, and the spec isn't exactly clear. It doesn't explicitly state that * is allowed in function type lambda-lists, however neither does it state that it's not. SBCL seems to accept code with type declarations such as the following (function (*) *) without errors or warnings.
I opened this issue because it's possible that function-information, from CLTL2, may return an FTYPE with a * in the lambda-list, however if it's forbidden by the standard then there is no need.

Well, if this isn't just a theoretical issue it may be worthwhile allowing * more liberally

I don't know if this issue will crop up in practice but there is that possibility.

I guess SBCL no longer accepts * in the parameter list of function type specifiers, as of version 2.1.10, so we can safely close this issue.


✨ External link icon

Hi SophieBot Team,
Pain
Some of the buttons that appear on messages from Sophie are actually links. This surprises users.
Suggested Solution
Buttons that are links should have a icon e.g. https://fontawesome.com/v5/icons/external-link-alt
As per https://www.ssw.com.au/rules/do-you-make-external-links-clear
Tasks

[ ] Add icon to link buttons

Screenshots

Figure: This button is not a link

Figure: This button is a link (Looks the same)
Definition of Done

[ ] All tasks are updated and closed
[ ] No high priority defects/bugs are on that user story
[ ] Code reviewed by one other team member (e.g. Checked by Bill)
[ ] All acceptance criteria have been met
[ ] Deployed to Dev
[ ] (If implemented) Pass automated UI testing
[ ] (If not implemented above) Do a manual test on all supported commands (at least one for each LUIS intent) against Dev
[ ] Complex code is documented (removing technical debt)
[ ] Deployed to Production
[ ] Add description about the changes for the PBI
[ ] Tick off the definition of done tasks in the PBI
[ ] (Optional) A Done Video, particularly for PBI with multiple stages

Thanks!

As per the investigation, technically it is not possible to add Icon after the text in Adaptive Cards, We can only add icon before the text.

As per the conversation with Jayden, it is better to icon be more meaningful. We are about to make some changes n buttons on Adaptiva cards.

In Profile card, change from "View" to "Show" if button click will return result in SophieBot itself and put the meaningful icons.
In View bookings card, change logo of "More booking info" to PowerBI logo as it is going to Power BI reports.

[ ] Implement the changes.

Done - Changes as follows:

Update buttons names and Icon to be more configurable (Profile card)
Update button text of View Bookings card.

Here's are the shots.

Figure: Updates Icons and names of buttons on Profile card

Figure: Put PowerBI logo on View bookings card's button
Closing this issue as there’s no task to action.


How to unban permanent ban of Pokemon Go Bot

Is there any possibility to unban an account permanently banned Pokemon Go?
I used the bot, but recently was banned, wanted to unban the account to play, now without the bot. Because it is difficult for me to create a new account because I use Windows Phone (with PoGo).
My user banned: leonardovilarinh
Sorry for my English.

You can submit a ban appeal to Niantic, but if they don't accept it you're out of luck: https://support.pokemongo.nianticlabs.com/hc/en-us/articles/225146308-Submit-a-ban-appeal

Chances are they're pretty certain you've been botting or they wouldn't have banned you. Good luck, but I reckon you can kiss the account goodbye :(

Yeah, permabans are pretty end-all. I mean, if their response to a month-old customer service request involving an actual bug in their game that caused a user to lose money, was "r"...

"r" - Albert Einstein

I think that one can stand without a citation. I mean, it's already on its way to becoming an urban legend...
But I'll give it to you anyways https://www.reddit.com/r/pokemongo/comments/4yikec/niantic_responded_to_my_help_ticket_after_35_days/

@IamCarbonMan thanks!


Change -Path to -LiteralPath in Move-Item to support filenames with []-brackets

Hi and thanks for sharing your script with the public!
I had some files with []-brackets in the filename.
The solution seems to be to use -LiteralPath instead of -Path: https://stackoverflow.com/questions/66979845/move-item-not-working-with-some-file-names
It works locally for me, it might be a worthy improvement.
https://github.com/deadlydog/MoveFilesIntoDateDirectories/blob/e8bf96cd3e0c403ec4da575e1f4b5dfb6e9669a0/src/MoveFilesIntoDateDirectories.ps1#L42

Thanks for the suggestion. I've released v1.1.0 of the script to address this issue. If you still have any issues let me know. Thanks!


Pool fees wallet deposit issue

Hello
After testing cluster everything else working fine like block reward payment to miner going perfect but there is issue with pool fee.. I have set pool fee reward wallet which is different from core mining wallet for pool. And when payment is processd then at that time block reward goes perfectly to miner wallet but at same time pool fees goes to some random wallet and does not go to pool fee wallet configured in config file

Hello,
Little advices for the next time.

Before opening a bug, make sure to search if anyone else has opened/reported similar issues/discussions, in your case there is already a bunch of people.

So miningcore does not discriminate and treat all wallet addresses the same, as long as the pending amount is inferior to the configured pool mininum payout, miningcore will not try to send a payment.
This is easily confirmed by using the database, the API and/or even your webUI for checking the pending balance for any wallet address.

Always provide as much as info as possible, i'm not a magician and i don't read minds, for example here what is the coin in question.

Since you are talking about random address, i imagine you are refering to a change wallet address, this is a feature of many blockchains.
So please at least learn how any blockchain works, it's your first duty as a mining pool operator over than collecting fees.

OOhh sure will take care.. i did not thought taking help and asking questions had any rules sets.. as I am also IT professional may be from other side of tech then blockchain and who practice IT since 19 years creating infra and networks which can run all this huge chains and datas.. may be little week on core subject of blockchain but not new to world. And by the way i though open source has sprite of community but i see miningcore is more closed source where people done share details or guide much..
any ways thanks for all support till now and would distrb any more..

I'm just trying to save is time, just give as much as info as you can, there are hundreds of coins and i don't know them all.
I don't kn