Test connection implementation

Implementation of the Test-Connection cmdlet for Core.

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

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@tibmeister  Please squash commits to single one and resolve file conflicts.

Hi, I am closing and re-opening this PR to bump the CLA bot. Sorry for the inconvenience!

Hi @tibmeister, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, MSBOT;

Hi @tibmeister, thanks for the PR!
To start, there are a bunch of changes in files like .gitignore, applicationhost.config, powershell.userprefs, AssemblyInfo.cs, project.json, map.json and etc. They don't seem necessary for the Test-Connection work. If so, can you please remove them to clean up your code?

we really need tests to go along with this new code

JamesWTruher , what tests would you need?  I did run/compile on a couple of platforms for my own sanity sake but if there's more than I am happy to provide.

daxian-dbw, the only item I know of that needs anything added is project.json for the assemblies listed below.  I'm going to put my fork at the current master head and see what breaks.
"System.Net.NameResolution": "4.3.0-preview1-24530-04",
"System.Net.Ping": "4.3.0-preview1-24530-04",
"System.Net.Sockets": "4.3.0-preview1-24530-04"

Well in my search I couldn't find it and when asked it didn't seem like it was implemented.  With that, I'm gonna withdrawal this PR.

@tibmeister I think there's still value in your PR as Test-Connection is currently not available on Linux.  Perhaps you can merge your changes with the existing implementation to make it portable?

I went ahead and created a new PR that is cleaner.  I added my code into the same module as the Win implementation with the compiler directive for UNIX only.


Does every block is connected?

Hi,
Is there a partitioner in this project which can garuntee to output connected block? It is a very important constraint in my problem.
Thanks for your reply.
Chen.

Hi,
currently there is no such algorithm in KaHIP. However, there is an option
in kaffpaE to make it more likely to output such a partition. On the other
hand you can always make a partition connected using a postprocessing step.
Best
Christian
On Sat, 27 Apr 2024, 10:08 WILLCHEN05, @.***> wrote:

Hi,
Is there a partitioner in this project which can garuntee to output
connected block? It is a very important constraint in my problem.
Thanks for your reply.
Chen.
—
Reply to this email directly, view it on GitHub
https://github.com/KaHIP/KaHIP/issues/150, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLP7SQ2CLOM4UUBTZZ6WRLY7NMG3AVCNFSM6AAAAABG34VTTSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DMOJQGM2DMMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi Christian,
Thanks for your reply.
May I ask which option in kaffpaE are you referring to？Since I have to output a given number of partitions, I can not use a postprocessing step because it will change the number of partitions.
Best
Chen

sorry, I just saw that we don't have it in the public release. I can share a version that has this option with you if you are interested. Just send me an email (christian.schulz@informatik.uni-heidelberg.de). Thanks


Common Message Added #6313

Issue Reference
Link: https://github.com/bagisto/bagisto/issues/6313

@devansh-webkul
This is working fine. Please find the screenshot here


[SPARK-7135][SQL] DataFrame expression for monotonically increasing IDs.

Test build #30959 has started for   PR 5709 at commit a7136cb.

Test build #30959 has finished for   PR 5709 at commit a7136cb.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.

Could it be confusing to users that the ID associated with each record might be different on stage or task retries? The fact that ordering within a partition is not deterministic has caused people some concern in the past, and I wonder if this could sort of lead to more confusion since you are giving some sort of ordering semantics.

partition id doesn't change between retries, does it?

No, but the ordering of records in a partition can change, so you might have different identifiers for the same record across retries (unless this is only used for already sorted data... is it?).

Those could change in shuffle I guess, but I don't think this is creating more confusion. What we care about here is not the record ordering, but the output of this expression is monotonic increasing. That will always be true.
This is very similar to the row id idea a lot of databases have. SQL tables also don't have ordering, unless they are sorted.

@pwendell you raised a very good point about ordering of records within RDDs and DataFrames. I think we should document those more clearly in the javadoc for these.

@rxin yeah I just mean if I'm in a database and I run the same query twice, I will get the same row ID for the same record. Because of non determinism in the shuffle, that's not true here.

(That's not always true -- somebody could've deleted an index and then the scan gets turned from index scan to sequential scan, and then record ordering changed)

Oh I see - I guess it doesn't matter then.

Test build #30969 has started for   PR 5709 at commit a9fda0d.

Jenkins, retest this please.

Test build #31112 has started for   PR 5709 at commit a9fda0d.

LGTM

Test build #31112 has finished for   PR 5709 at commit a9fda0d.

This patch fails MiMa tests.

This patch merges cleanly.

This patch adds the following public classes (experimental):

case class MonotonicallyIncreasingID() extends LeafExpression

This patch does not change any dependencies.

Test build #31116 has started for   PR 5709 at commit 7853611.

Test build #31116 has finished for   PR 5709 at commit 7853611.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.


Properly handle user selecting None for the spatializer

This change fixes #7782 and now correctly configures the project to not use an audio spatializer.
When selecting None in the configurator, the following message is now logged to the console and the appropriate value of null is configured as the audio spatializer.
"No spatializer was specified. The application will not support Spatial Sound."

/azp run

If the user selects none for the spatializer on import, would they be able to add it by going to the project configurator again?

If the user selects none for the spatializer on import, would they be able to add it by going to the project configurator again?

Yes.


Script to semi-automate recipe creation

I extended my cook script to also offer an interactive recipe generation system. It performs some basic sanity checks and generate a proper, clean markdown file. There's still some issues so if you're using it, don't forget to proof read the markdown file before submission.
Get it here
Just type cook -n to create a new recipe using the interactive system. Hopefully this helps improving the workflow and quality of the recipes.
Ideally I'd extend it to grep for keywords in other recipes and offer to link recipes between each other, since people aren't doing it as much as they should.

Seems like something to add to the README.md?


md5sums rather than literal content of partial gzipped files

In e.g. https://github.com/nf-core/modules/pull/4714, I'm doing things like:
            def pelines1 = path(workflow.out.reads[0][1][0]).linesGzip
            assertAll(
                { assert snapshot(pelines1[0..5]).match("test_pe_reads_1_lines") },
                { assert snapshot(workflow.out.versions).match("versions") }
            }

Which results in snapshot content like:
    "test_pe_reads_1_lines": {
        "content": [
            [
<EMAIL_ADDRESS>M01472:285:000000000-CYHNP:1:1101:12117:3295 length=251",
                "ACATAGGGCTGTTCAAGTTGAGGCAAAACGCCTTTTTCAACTTCTACTAAGCCACAAGTGCCATCTTTAAGATGTTGACGTGCCTCTGATAAGACCTCCTCCACGGAGTCTCCAAAGCCACGTACGAGCACGTCGCGAACCTGTAAAACAGGCAAACTGAGTTGGACGTGTGTTTTCTCGTTGAAACCAGGGACAAGGCTCTCCATCTTACCTTTCGGTCACACCCGGACGAAACCTAGATGTGCTGATGA",
                "+SRR11140744.1 M01472:285:000000000-CYHNP:1:1101:12117:3295 length=251",
                "BCCCCFFFFFCFGGGGGGGGGGHGGHHHHGGGHGHHHHHHHHHHHHHHHHHHHHHHHGHHHHHHHHHHHHHHHHHHHHHGGGHHHHHGHHGHHHHHHHHHHHHHGGGGGHHHHHHHHHHHHGHHHGGGGGHGHHGGGGGGGHHHHHHHHHHHGGHHHHHFHHHHHHHGGGHHHHHHHHHGGGHHHHHHHHGGGGGGGFGGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFDFFFFFFFFFFFFFFFFFFFFB",
<EMAIL_ADDRESS>M01472:285:000000000-CYHNP:1:1101:20752:3564 length=238",
                "CGTACGAGCACGTCGCGAACCTGTAAAACAGGCAAACTGAGTTGGACGTGTGTTTTCTCGTTGAAACCAGGGACAAGGCTCTCCATCTTACCTTTCGGTCACACCCGGACGAAACCTAGATGTGCTGATGATCGGCTGCAACACGGACGAAACCGTAAGCAGCCTGCAGAAGATAGACGAGTTACTCGTGTCCTGTCAACGACAGTAATTAGTTATTAATTATACTGCGTGAGTGCAC"
            ]
        ],
        "timestamp": "2024-01-11T11:52:21.400169604"
    }

It would be great to NOT have full file content in the snap, but rather an md5sum of that partial content. That would also enable us to sample larger numbers of lines without making huge snapshots.
Is there, or could there be, a way of doing that?

Thanks,  PR #190 extends the snapshot by a md5() method.

Brilliant- thank you!


Cleanup check_realm_has_non_limited_plan function

Followup of #14923

@timabbott This should be ready for review when the CI passes.
Also, should we set the value of message_retention_days to None when the Realm is downgraded to STANDARD?

Merged, thanks @hackerkid!
I believe we should in that downgrade case, but with case -- we probably need to change it for all streams at the same time using with transaction.atomic, so that we don't accidentally have something broken happen.


[FLINK-2184] Cannot get last element with maxBy/minBy.

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

[X] General

The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[X] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[ ] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

Extend the minBy/maxBy with first parameter. @fhueske sorry for the late update for this pr, can you help with review work?

@fhueske @twalthr . Can you help with reviewing this PR?

Thanks @gallenvara, the changes look good to me but we would also need a few tests.
@aljoscha, what do you think about this change? Should we add it to be consistent with the Java API or do you think it would bloat the API too much? IIRC, there have been some discussions about the built-in aggregation functions.
Best, Fabian

Thanks for notifying @fhueske! And sorry for not noticing this earlier and jumping on so late.
I think this part of the API is already to bloated and (at the same time) not powerful enough. These functions don't allow having multiple "aggregations" in one operation, i.e. you cannot do inputStream.keyBy(...).min(1).andMax(2).andSum(3) (not actual API). I think in the long run we should remove this part of the API because the Table API is a nicer way of expressing simple aggregations. What do you think?

Thanks @aljoscha, those are my concerns as well. The methods are very prominent in the core APIs and provide only marginal value. It's pretty straightforward to implement the functionality with a ReduceFunction in case you need it.
Are there plans to deprecate the corresponding methods on the Java DataStream API?

There were, but only in my head. Maybe we should open an issue or discuss on the ML.

I'm closing this as "Abandoned", since there is no more activity and the code base has moved on quite a bit. Please re-open this if you feel otherwise and work should continue.


I have one instance on Matter.Engine where I switch world param when to world parameter of current scene.
So in class "App" it looks something like this.
constructor() {
  App.Engine = Matter.Engine.create();
  Matter.Runner.run(App.Engine);
}

public static switchScene(sceneId: string): void {
    this._currentScene = this._scenes.find((scene) => scene.name == sceneId);
    App.Engine.world = this._currentScene.world;
}

And inside Scene class
this.world = Matter.World.create({} as IWorldDefinition);

CodePen example

Answered on Stack Overflow: https://stackoverflow.com/a/71596248/6243352

Worth considering creating an engine for each world if they are dramatically different, otherwise I'd say make a Matter.Composite for each scene and add / remove it, you may also want to call Engine.clear too.


MediaSource not supported on iPhone/iOS ... alternative approaches

I've tried getting streaming OpenAI TTS to work on iPhone/iOS, but mediasource is not supported.   So I don't believe this player will work in that case.   Am I wrong?   Alternative approaches?

Yes bro, MediaSource is not fully supported in iOS Safari, you can find more from https://developer.mozilla.org/en-US/docs/Web/API/MediaSource#browser_compatibility.
This player was not tested on iOS devices during development. I'm sorry for that. I will try another way to make it working later.

any update on this issue?

I need it on iOS also, is any new update guys?


:white_check_mark: Updating tests.

Tests fails because TWTRDateFormatters' NSDateFormatter returns the current timezone, thus March 05 will fail when run in Asia Pacific region for example.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Julius Lundang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


The interface cannot be scrolled while running certain commands (e.g., Telnet)

Windows Terminal version
1.15.2875, 1.16.2642.0
Windows build number
10.0.22000, 10.0.22623
Steps to reproduce

Start Windows Terminal.
Type and run telnet command.
Continue running some commands to fill the screen.
Try scrolling the interface.

Expected Behavior 👇👇
Here I use the traditional console (Command Prompt) to show you what should be expected. 👇

The interface can be scrolled normally. 👆
Actual Behavior 👇👇
Here I use the latest Windows Terminal to show you what actually behaved. 👇

The interface cannot be scrolled. 👆

This sounds like a /duplicate of #6056. Please let me know if you think this is incorrect. 🙂


How do I keep my connection alive?

I'm attempting to use this client with Kue. Compose has informed me that they timeout connections every 5 minutes and that this value is hardcoded. I need some way to keeping the connection alive and perhaps pinging it every 2-3 minutes.
It does not appear Kue will give me access to the underlying client. If I create a separate ioredis client and execute a ping in a setTimeout, will it keep all connections alive or just that one instance?

Create a separate ioredis client and ping periodically may be not able to keep other connections alive.
Kue provides the client member to access the underlying redis instance.

Thanks for the response. I'm using ioredis for interacting with a cache now and the default keepalive settings worked perfectly-- in my case, queuing has been best left to SQS :)


DefaultUserApprovalHandler should honor auto-approved clients

Even if DefaultUserApprovalHandler is designed to not remember any decisions, it should still honor clients set up with auto-approval.

The DefaultUserApprovalHandler intentionally has no knowledge of the ClientDetails so it can't really do that. Why don't you just use one of the other implementations?


Services with named ports inaccessible in istio-1.0.2

Describe the bug
HTTP services that are do not have an http- prefix can not be accessed.
Expected behavior
While the requirement for "http-" prefix is touched upon here: https://istio-releases.github.io/v0.1/docs/tasks/integrating-services-into-istio.html, this requirement is not obvious in other parts of documentation and examples.
Other projects stumbled upon this as well and took a while to pin-point.
Same service definitinios used were confirmed to work in previous versions. Since it was a new version migration problem for us (from 1.0.0), I'm opening it as issue so that others can find it quicker.
Possibility of handling it as a separate setting instead of a "prefix" was discussed here: https://github.com/istio/old_issues_repo/issues/88.
Similar settings and behaviour is explicitly different and described in documentation here: https://istio.io/docs/reference/config/istio.networking.v1alpha3/, including a separate "protocol" setting and a port name without a "http-" prefix.
Question: Should he have an effort to make these settings to be consistent across all definitions and not rely on the prefix in favor of a separate setting as in Gateway definition?
Steps to reproduce the bug
Remove "http-" prefix from a regular service definition. Example:
# does not work
apiVersion: v1
kind: Service
metadata:
    name: squeak-devshell-svc
    labels:
      app: squeak-devshell-app
spec:
  ports:
  - port: 32323
    name: someportname
    targetPort: 54321
  selector:
    app: squeak-devshell-app
....

# works
apiVersion: v1
kind: Service
metadata:
    name: squeak-devshell-svc
    labels:
      app: squeak-devshell-app
spec:
  ports:
  - port: 32323
    name: http-someportname
    targetPort: 54321
  selector:
    app: squeak-devshell-app
...

more detailed description: https://gist.github.com/cdmitri/dce98692b05dbe6274e64d66999d3cc7
Version

istio-1.0.2
kubernetes v1.10

Installation

kubectl create -f istio-demo.yaml

Environment

GKE

Isn't this covered well by this page?
https://istio.io/docs/setup/kubernetes/spec-requirements/
This is linked to from almost every installation page. It's also on the traffic management FAQ:
https://istio.io/help/faq/traffic-management/#naming-port-convention

Hi @jaygorrell - thanks for the references! Yes, I think there are some places in the docs that once you know or suspect that the issue has something to do with a "port name", you can find a confirmation that this is your problem. The tricky part is that if let's say you're starting from some point in the documentation without reading it whole (or updates), there are some places where this is not mentioned. Also in related docs like here: https://istio.io/docs/reference/config/istio.networking.v1alpha3/ the ServiceEntry is setup explicitly by using a different format for the port name and with a separate setting:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-wikipedia
spec:
  hosts:
  - wikipedia.org
  location: MESH_EXTERNAL
  ports:
  - number: 80
    name: example-http
    protocol: HTTP
  resolution: DNS

Since I've noticed that there has been continuing discussion it would be good to know if there are plans to change the prefix requirement completely and/or add additional references to this info in other parts of the docs that might make it even more obvious.
Cheers,
Dmitri


AttributeError: module 'torch.nn' has no attribute 'Identity' with old pytorch and AttributeError: 'torch.dtype' object has no attribute 'type' with new

is there a fix for this backward compatibility issue yet?

Ｉ want to get the output of the layer 'Identity with EfficientNet.Identity.
I algo get the same error
AttributeError: 'EfficientNet' object has no attribute 'Identity'


updates to kata for new Q# features (issue #190)

updated Superposition Kata with enhancements from latest QDK

thanks for your guidance Chris and Mariia!  i have made the changes and i think i've updated the PR properly.

ok, added the analogous changes for ReferenceImplementation, too


Research link accessibility

Description
read this article and research link accessibility
modify component if necessary
Problem Statement/Justification
none
Proposed Solution or API
No response
Alternatives
No response
Are you willing to participate in implementing this feature and create a pull request include the implementation?
None
Additional Information
No response

@yamada-ui/link is applicable
Keyboard Interaction

[ ] Enter: Executes the link and moves focus to the link target.
[ ] Shift + F10 (Optional): Opens a context menu for the link.

WAI-ARIA Roles, States, and Properties

[ ] The element containing the link text or graphic has role of link.

@yamada-ui/link fulfill all.
so I'll close this issue.


Support Asset type “Code:IssuerAccountID”

Right now in the AccountsRequest struct there is a filter for asset which now consists of the enum AssetType.
The AssetType has currently two possible values: Native and Issued.
Issued, should have the following values.

Asset Code
Issuer Account ID

See also:

https://laboratory.stellar.org/#explorer?resource=accounts&endpoint=multiple&values=eyJhc3NldCI6IjoifQ%3D%3D&network=test
https://developers.stellar.org/api/horizon/resources/list-all-accounts

Fixed by merging this branch https://github.com/Baseflow/stellar-rust-sdk/pull/29

Fixed by merging this branch https://github.com/Baseflow/stellar-rust-sdk/pull/29


Tensorflow 2.0 support

This issue encompasses all the exploration required to ensure we can say that tensorflow 2.0 is supported.
There is a good overview covering what is new written by the tensorflow team
I think the 2.0 priorities are

[ ] eager + tf.function (#279)
[ ] support SavedModel (#54)
[ ] tighter integration with the keras & estimators APIs

will need a sub issue for this once someone takes it on

[ ] explore the distribution strategy api

may be some MPC benefits here

[ ] explore tf.data

queue runners are being removed in favour of tf.data, and tf.data is now the preferred way to deal with data, is there anything here we can do to provide a tighter integration with tensorflow.

This has been investigated and determined that 2.0 should not be a major obstacle.
It is possible to support eager by using the new config api and things basically "just work".
tf.function is a bit trickier but can be solved by either api design (e.g. regular tensors go in and out to tfe tf.function annotated calls.
SavedModel is not a risk.  It's just a different format we can easily implement.
I'll let @mortendahl update his side of the investigation but those were also non issues.

Should we keep this issue open to track the implementation or open a new one to actually add support for 2.0?

It's unclear when we would actually do that, plus the issue was exploratory from the start so I recommend opening a new one when the time comes.


side effect with screenshots

Hi Timo,
I found a side effect:
https://github.com/fguillot/kanboard/issues/1979#issuecomment-199871296
When Metadata is installed, the screenshots are not shown.

I don't know why :disappointed:

forget about this! translations.php was not encoded utf-8
created a PR :smile:

okay :)


multi: use taproot errwhere applicable for change/delivery/tower addresses

With this PR, we'll start to use taproot addresses by default when: sweeping all funds from the wallet, funding channels, and sending blobs to watch towers.
Fixes https://github.com/lightningnetwork/lnd/issues/6666

@guggero I fixed that failing tower test by using a taproot address in the test itself. It was using a p2pkh address before.

Alrighty, I pushed up a set of fresh commits that should cover all the outstanding cases. I broke up the commits to make things a bit easier to follow. There were a still areas where we also assumed the expected dust output that should be fixed.

lgtm if sign_psbt here (https://github.com/lightningnetwork/lnd/runs/7798107595?check_suite_focus=true) is an unrelated flake

Investigated offline, appears to be a flake unique to the bitcoind backend. Landing this then will make an issue to investigate. Seems like the test isn't waiting long enough for the wallet to fully recognize the coins?


'NSCoding' cannot be used as a type conforming to protocol 'NSCoding' because 'NSCoding' has static requirements.

Hi i am calling cache data like
return AwesomeCache.Cache(name: name, directory: cachePath)
and it's show me error like :
'NSCoding' cannot be used as a type conforming to protocol 'NSCoding' because 'NSCoding' has static requirements.
i am sure that there might be some syntax calling problem , can you please guide for the same , i am using swift 2 as a language with latest version of awesome cache.

look like no suport model


When a page is translated by google, the text comes up blank.

When Chrome detects a different language in a webpage, it offers to auto translate it.
I noticed this in a recently published French Molecules and Light:
https://phet-dev.colorado.edu/sims/html/molecules-and-light/latest/molecules-and-light_fr.html

But when I pressed translate, all the text came up blank:

I wonder if this has been a problem for any of our users (say a Danish user that launched an English sim and wanted google to show it in Danish).  Or if it indicates a problem in our strategy.

For our sims, we may want to consider adding a meta tag if we can't get things to work: http://stackoverflow.com/questions/2980520/how-to-specify-your-webpages-language-so-google-chrome-doesnt-offer-to-transla
I haven't been able to see notes about how exactly the translation replacement works, so I'm not sure how to get it to work nicely.

I'm wondering how Chrome auto-translate will interoperate with WebGL and/or accessibility.

Unless we explicitly have code to detect new strings, things would be buggy.


fix: freeze lambda context object (#18)

Coverage increased (+0.02%) to 99.147% when pulling b2c7dac77c08f55b0f88a94b33bd23ecaaa3bd64 on yokuze:restrict_fn_context_obj_18 into 250c469a4519e02ca58118e46dac0ca993ab46c4 on silvermine:master.


Getting circular import error for discovering availability sets

I am getting the following error while discovering availability sets:
Exception occurred in get_avail_sets: cannot import name 'AvailabilitySetsOperations' from partially initialized module 'azure.mgmt.compute.v2021_03_01.operations' (most likely due to a circular import) (/opt/VRTSitrptpcims/python-virtual-environments/azure/lib/python3.9/site-packages/azure/mgmt/compute/v2021_03_01/operations/__init__.py). Availability sets not discovered from index 78 to 91
The above error occurs only sometimes not always.
Code snippet below:
import AzureUtils

def discover_availability_sets(self, **kwargs):
        output = {}
        # get all availability sets in a resource group list and filter them based on location
        # requires input params: list of []
        res_grp_input = json.loads(kwargs.get('params'))
        resource_groups = res_grp_input['resource_groups']
        log.info("discovering availability sets in resource groups: " + str(resource_groups))
        avail_set_list = list()
        self.execute_threaded_task(self.get_avail_sets, avail_set_list, resource_groups)
        output['availability_sets'] = avail_set_list

def get_avail_sets(self, output_list, input_rg_list, lindex, rindex):
        compute_client = AzureUtils.get_compute_management_client(self.config)
        i = lindex
        try:
            while i < rindex:
                avail_set_iter = compute_client.availability_sets.list(resource_group_name=input_rg_list[i])
                rest_api_output = self.get_output(avail_set_iter, location=self.location)
                avail_sets = rest_api_output['value']
                output_list.extend(avail_sets)
                i += 1
        except Exception as e:
            log.error("Exception occurred in get_avail_sets: %s. Availability sets not discovered from index %s to %s", e, i, rindex)

def execute_threaded_task(self, task, output_list, input_list):
        thread_count = AzureConstants.DISCOVERY_THREAD_COUNT
        lindex = 0
        if len(input_list) > thread_count:
            slice_len = int(math.ceil(len(input_list) / thread_count))
        else:
            slice_len = len(input_list)
        rindex = slice_len
        th_list = []
        for i in range(0, thread_count + 1):
            thread = threading.Thread(target=task,
                                      args=(self, output_list, input_list, lindex, rindex))
            thread.start()
            th_list.append(thread)
            if rindex == len(input_list):
                break
            lindex = rindex
            rindex = rindex + slice_len
            if rindex > len(input_list):
                rindex = len(input_list)
        for i in th_list:
            i.join()

**imports in AzureUtils**
from azure.mgmt.compute import ComputeManagementClient
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.network import NetworkManagementClient
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.resource import ManagementLockClient
from azure.storage.blob import BlobServiceClient, ContainerClient

Thanks for the feedback, we’ll investigate asap.

hi @pyprateek , Thanks for the feedback !
azure-mgmt-compute has been released a new version in September 2, 2021. It is recommended to upgrade to the latest version and try again, whether the issue is solved.


[HINTS] Add implementation for hints on squash_dict.cairo

Hints & Progress
squash_dict_inner
squash_dict_inner_first_iteration
Hint Code:
        current_access_indices = sorted(access_indices[key])[::-1]
        current_access_index = current_access_indices.pop()
        memory[ids.range_check_ptr] = current_access_index`

[x] Implementation
[x] Unit tests

squash_dict_inner_skip_loop
Hint Code: ids.should_skip_loop = 0 if current_access_indices else 1

[x] Implementation
[x] Unit tests

squash_dict_inner_check_access_index
Hint Code:
        new_access_index = current_access_indices.pop()
        ids.loop_temps.index_delta_minus1 = new_access_index - current_access_index - 1
        current_access_index = new_access_index

[x] Implementation
[x] Unit tests

squash_dict_inner_continue_loop
Hint Code: ids.loop_temps.should_continue = 1 if current_access_indices else 0

[x] Implementation
[x] Unit tests

squash_dict_inner_len_assert
Hint Code: assert len(current_access_indices) == 0

[x] Implementation
[x] Unit tests

squash_dict_inner_used_accesses_assert
Hint Code: assert ids.n_used_accesses == len(access_indices[key])

[ ] Implementation
[ ] Unit tests

squash_dict_inner_assert_len_keys
%{ assert len(keys) == 0 %}

[ ] Implementation
[ ] Unit tests

squash_dict_inner_next_key
Hint Code:
        assert len(keys) > 0, 'No keys left but remaining_accesses > 0.'
        ids.next_key = key = keys.pop()

[ ] Implementation
[ ] Unit tests

squash_dict
Check if the next two haven't been implemented yet:
enter_scope
Hint Code: vm_enter_scope()

[ ] Implementation
[ ] Unit tests

exit_scope
Hint Code: vm_exit_scope()

[ ] Implementation
[ ] Unit tests

squash_dict_outer
Hint Code:
        dict_access_size = ids.DictAccess.SIZE
        address = ids.dict_accesses.address_
        assert ids.ptr_diff % dict_access_size == 0, \
            'Accesses array size must be divisible by DictAccess.SIZE'
        n_accesses = ids.n_accesses
        if '__squash_dict_max_size' in globals():
            assert n_accesses <= __squash_dict_max_size, \
                f'squash_dict() can only be used with n_accesses<={__squash_dict_max_size}. ' \
                f'Got: n_accesses={n_accesses}.'
        # A map from key to the list of indices accessing it.
        access_indices = {}
        for i in range(n_accesses):
            key = memory[address + dict_access_size * i]
            access_indices.setdefault(key, []).append(i)
        # Descending list of keys.
        keys = sorted(access_indices.keys(), reverse=True)
        # Are the keys used bigger than range_check bound.
        ids.big_keys = 1 if keys[0] >= range_check_builtin.bound else 0
        ids.first_key = key = keys.pop()

[ ] Implementation

[ ] Unit tests

[ ] Integration test

Codecov Report

Merging #301 (4968c7f) into main (78638b1) will decrease coverage by 0.32%.
The diff coverage is 87.56%.

@@            Coverage Diff             @@
##             main     #301      +/-   ##
==========================================
- Coverage   96.26%   95.94%   -0.33%
==========================================
  Files          27       28       +1
  Lines        9284     9658     +374
==========================================
+ Hits         8937     9266     +329
- Misses        347      392      +45

Impacted Files
Coverage Δ

src/types/exec_scope.rs
97.70% <ø> (ø)

src/vm/hints/squash_dict.rs
87.26% <87.26%> (ø)

src/vm/hints/dict_hint_utils.rs
96.47% <100.00%> (ø)

src/vm/hints/execute_hint.rs
100.00% <100.00%> (ø)

src/serde/deserialize_program.rs
92.57% <0.00%> (+1.14%)
:arrow_up:


[iOS]How to properly manager AudiosSession to handle both recording live chart play sound effect at same time.

How to properly manager AudiosSession to handle both recording live chart play sound effect at same time
Should it be in a global level to setup AudiosSession, to avoid change it in every playing loop.

Full Description
My app grown like this bellow

Start from have the scene to play some audio.
Then there's an recording scene added, which also need play some sound effect in same page.
Then there's an live Chart room scene added, which also need play some sound effect, and need recording something in same page.

AudioSession are changed by in audio play, recording, live chart,
The result are not ideal.

sometime sound will turned from loudspeaker(bottom part of the iPhone)  to earphone(upside of the iPhone)
sometime sound will turned from AirPods to loudspeaker
AVAudioSession setActive also have effect some part.

I just wonder what would be the better setting for AudioCategory in this kind of scene,  should I comment all the updating AudioSession code in that page, and setup a general one in app level. or at lest at the page level.
Platforms
ios

Ah I agree! I was actually thinking of doing this, but then I realized (IIRC) that the android code does have a per player configuration. So I got to this conundrum where there was no good api for both platforms :/


Added margin to title to prevent overlap with the menu icon.

Quick fix for #32

Hi @mlliou112,
Thanks for the PR. I think there should be also a media query to target desktop screens.

I think screen size shouldn't actually affect this fix because the menu icon is in a fixed position 45 px from the right. I did however, up the margin to 70px because it clears the menu icon better.
Here's a picture of the 70px margin on 1440px wide screen, and 4k display.

I apologize, I misunderstood what you said. Hopefully this is better, I added the media query so the margin does not appear on smaller screens.

Hi @mlliou112, no need to apologize. Thanks!


[FEATURE]Articulation Point using Tarjan's Algorithm

What would you like to share?
Tarjan Algorithm is used to check whether is graph is strongly connected or not
it also find its uses to check the articulation points ,
articulation points are those points whose removal increase in the number of connected components
of graph , it also find its use in finding bridges , bridges are those edge whose removal increase in the
number of connected components.
Additional information
No response

For anyone that wants to contribute, please read the following:

The algorithm isn't a duplicate in this repository.
Make your code as per the repository standards.
Ensure that all the automated-tests pass

I'll look forward to reviewing your PR. Thank you for your interest! 😄


decode blend

Step 2 --decode blend-- I am receiving the error:
"The application has failed to start because its side-by-side configuration is incorrect. "

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/the-application-has-failed-to-start-because-the/5c6a015e-4162-491d-b7d9-f3b13612e304
You can take a try.

Step 2 --decode blend-- I am receiving the error:
"The application has failed to start because its side-by-side configuration is incorrect. "

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/the-application-has-failed-to-start-because-the/5c6a015e-4162-491d-b7d9-f3b13612e304
You can take a try.

ERROR: Cannot resolve reference Microsoft.VC90.OpenMP,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".

The issue appears to be with Blender.
I get this image when I attempt to open blender as well. Would it be possible to make this run with other copies of blender

ERROR: Cannot resolve reference Microsoft.VC90.OpenMP,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".

The issue appears to be with Blender.
I get this image when I attempt to open blender as well. Would it be possible to make this run with other copies of blender

https://answers.microsoft.com/en-us/windows/forum/all/the-application-has-failed-to-start-because-its/ef9b01d5-3c18-479e-bf71-a9c28123c807
You need to install a dependence called "Microsoft.VC90.OpenMP"  which can download from Microsoft Website.
"Microsoft.VC90.OpenMP" can be downloaded from the following redistributable packages ：
1）Microsoft Visual C++ 2010 Redistributable Package (x86)
2）Microsoft Visual C++ 2008 Redistributable Package (x86)

That fixed it! I was missing the x64 versions. Executes perfectly now. Thank you!


Add HTTP Basic Auth

Built on the work of @jondlm in #51. Using what I figured was the most popular basic auth library: https://www.npmjs.com/package/basic-auth
Can be configured with CLI options or env variables (separated out into its own commit in case you don't want that).
I've erred on the generous side when it comes to tests, as people will probably be pretty peeved if this stops working in some non-obvious way!

Cool, thanks for taking the torch on this one!

Implemented @bryce-gibson's idea to use secure-compare.
Since it didn't seem too widely used, I looked into it in some depth and wrote some caveats in the commit message (there's a JSPerf that might make some of it clearer here: http://jsperf.com/secompare/7). I've also pinned to the exact version. Obvious disclaimer, I'm no security expert.

Nice!

Would love to see this merged if a maintainer has the time :) cc @indexzero

+1 #270

+1

+1

Nice !
BTW Saw a typo (but do we care?) : authenication => authentication

Whoops — good catch, thanks @Alex-Werner!
Fixed the typo, squashed in, and rebased on latest master for good measure

Any relation to http-server-with-auth?

Yeah, sorry about that. But read the disclaimer I put on, whenerver this will be merge I delete the npm repo.
I copypasted the code here with little to none quick things and setup this for my needs I hope no-one being hurt with that :/

No objections from me @Alex-Werner!
Rebased onto upstream master to fix merge conflicts.

Please merge this!

Bumping thread. I'd want to see it merged


Batched Inference to Improve GPU Utilisation

Is your feature request related to a problem? Please describe.
When using this library in a loop, I am getting poor GPU Utilisation running zephyr-7b.
Describe the solution you'd like
It would be fantastic to be able to pass a list of prompts to a function of the Transformers class, and define a batch size like you can for a huggingface pipeline. This significantly improves speed and GPU utilisation.
Additional context
GPU utilisation for reference:

I feel like this is very important, if they don't implement batch inferencing I can't really consider it over llama.cpp's GBNF grammers.

+1
@drachs does GBNF in ggml support batched inference with different grammar constraints per generation in the batch? is that even possible? would love some guidance, if you please.

I'm not very strong on the theory, but llama.cpp does support continuous batch inference with a grammar file.   It had grammar support and continuous batching support for a while, but my understanding is it didn't start working together until this PR, maybe some clues in there: https://github.com/ggerganov/llama.cpp/pull/3624
You can try it out yourself, here are some instructions on how to use this with Docker from my notes.  Note that the version in the public docker images doesn't work, I assume they must have been published prior to the fix in October.
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
docker build -t local/llama.cpp:full-cuda -f .devops/full-cuda.Dockerfile .
docker run --gpus all -v .:/models -it --entrypoint /bin/bash local/llama.cpp:full-cuda
./parallel -m /models/ --grammar-file grammars/json.gbnf -t 1 -ngl 100 -c 8192 -b 512 -s 1 -np 10 -ns 128 -n 100 -cb

FWIW I get like 95+% utilization when running inference on Mac Metal (specifically using Mistral-7b, used via repeated ollama REST API queries).
Speculating, I feel like this has something to do with memory bandwidth on the 3090 setup.  Not sure though.

FWIW I get like 95+% utilization when running inference on Mac Metal (specifically using Mistral-7b, used via repeated ollama REST API queries).
Speculating, I feel like this has something to do with memory bandwidth on the 3090 setup. Not sure though.

Thanks, that's interesting to know.
I think it's unlikely to be a memory bandwidth issue. The 3090 is 90-100% utilised when using the same model via huggingface transformers (with much better throughput).
To speculate myself, I'm expecting the issue could be that much of the processing done in this library is CPU bound, so when running in a loop, the GPU is waiting while the CPU bound processes are being performed, then the CPU waits while the GPU inference is being run. This is why it would be great to see an implementation of batch inference, so that while the CPU is processing the output of the first item, the GPU can begin running inference on the next. That way, they aren't waiting for each other to finish and can work at the same time.

:+1:  Batch inference would greatly unlock synthetic data.

Any idea on how to perform batch inference? This applies especially in the context of applying guidance to many data in parallel.


add labeling of ocp objects

Add function for being able to add labels after creating objects.

@pehala I've found usecase for this PR. We need to be able to create secret and then to label it. This is not possible to do in one command oc secret. We need to create secret first and then label it.


fix #84: adds 404 and 500 pages

Title of the Pull Request

[ ] Have you renamed the PR Title in a meaningful way?

Related Issue

Closes: #84

Description

How Has This Been Tested? ⚙

Screenshots 📷

Type of change
What sort of changes have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

[x] My code follows the code style of this project.
[x] I have followed the contribution guidelines
[x] I have performed a self-review of my own code.
[x] I have ensured my changes don't generate any new warnings or errors.
[ ] I have updated the documentation (if necessary).
[x] I have resolved all merge conflicts.

Good


[BUG] Add-PnPPageWebPart Image web part. Image doesn't display until after editing and saving the page

Not sure if this is the correct process, but I found an bug that exactly describes my problem #1424 and it was closed due to no response. As the bug can't be reopened, i've created this new issue.
Reporting an Issue or Missing Feature
When you use Add-PnPPageWebPart to add an Image web part to a page, the web part gets added but the Image doesn't display until after editing and saving the page
Expected behavior
Add-PnPPageWebPart adds an Image web part to a page and the you can see the web part in the page without having to edit and save first
Actual behavior
Add-PnPPageWebPart adds an Image web part to a page, the web part gets added but the Image doesn't display until after editing and saving the page
Steps to reproduce behavior
$imgProps = @{imageSource="https://xxx.sharepoint.com/sites/test/SiteAssets/_SiteLogo/Homepage_Logo.jpg"}
$imgWebPart = Add-PnPPageWebPart -Page Home1 -DefaultWebPartType "Image" -Section 1 -Column 1 -WebPartProperties $imgProps
What is the version of the Cmdlet module you are running?
1.9.0 , 1.8.0 and 1.7.0
Which operating system/environment are you running PnP PowerShell on?

[x ] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

###Additional infomation
I've checked the suggestion of @veronicageek if this error occurs due to special home.aspx behaviour, but it doesn't.

I've done some tests and it seems that the reason why the image isn't displayed is, that the serverProcessedContent of the webPartData must be set to show the image. This happens actually when saving the page, not when adding the webpart via cmdlet.
So i've tried this
`$imgProps = @{}
$imgProps.serverProcessedContent = @{}
$imgProps.serverProcessedContent.imageSources=@{imageSource= "https://xxx.sharepoint.com/sites/$($currSiteInfo.siteName)/SiteAssets/_SiteLogo/Homepage_Logo.jpg"}
$imgProps.serverProcessedContent.customMetadata=@{imageSource=@{}}
$imgProps.serverProcessedContent.customMetadata.imageSource.siteId= "7c0808b4-c285-4c72-9818-e088e132e3c1"
$imgProps.serverProcessedContent.customMetadata.imageSource.webId= "3d6460bc-89c5-4f32-831d-b32ecda1ce7d"
$imgProps.serverProcessedContent.customMetadata.imageSource.listId= "c3712fa1-eddb-4cb6-b135-4cbb7ad23438"
$imgProps.serverProcessedContent.customMetadata.imageSource.uniqueId= "921796E7-88B6-43D0-B217-9B6FED3E8FE8"
$imgProps.serverProcessedContent.customMetadata.imageSource.imgWidth= 1000
$imgProps.serverProcessedContent.customMetadata.imageSource.imgHeight= 550
$imgProps.imageSourceType= 2
$imgProps.captionText= ""
$imgProps.altText= ""
$imgProps.linkUrl= ""
$imgProps.overlayText= ""
$imgProps.fileName= ""
$imgProps.siteId= "7c0808b4-c285-4c72-9818-e088e132e3c1"
$imgProps.webId= "3d6460bc-89c5-4f32-831d-b32ecda1ce7d"
$imgProps.listId= "c3712fa1-eddb-4cb6-b135-4cbb7ad23438"
$imgProps.uniqueId= "921796E7-88B6-43D0-B217-9B6FED3E8FE8"
$imgProps.imgWidth= 1000
$imgProps.imgHeight= 550
$imgProps.alignment= "Center"
$imgProps.fixAspectRatio= $false
Add-PnPPageWebPart -Page $tmpPageName -DefaultWebPartType "Image" -Section 1 -Column 1 -WebPartProperties $imgProps`
And the image is shown right after adding without saving the page manually.

No, this Script do not solve the issue as the Webpart does not work properly anymore.

hi @schieleingrid , we have added a cmdlet , Add-PnPPageImageWebPart which is available from tomorrow's nightly build and the next major release whenever that happens.


Team 10

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
No results submitted for task 2
Task 3 Prediction - Mean Distances
No results submitted for task 3
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
No results submitted for bonus task 1
Bonus Task 2 Prediction - Cell Volume
No results submitted for bonus task 2
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
22/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.789
Macro F1-score (Assessed): 0.636
Weighted F1-score: 0.773
Points: 5
Task 3 Prediction - Mean Distances
No results submitted for task 3
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
No results submitted for bonus task 1
Bonus Task 2 Prediction - Cell Volume
No results submitted for bonus task 2
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
27/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.789
Macro F1-score (Assessed): 0.636
Weighted F1-score: 0.773
Points: 5
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
No results submitted for bonus task 1
Bonus Task 2 Prediction - Cell Volume
No results submitted for bonus task 2
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
49/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
No results submitted for task 2
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
No results submitted for bonus task 1
Bonus Task 2 Prediction - Cell Volume
No results submitted for bonus task 2
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
44/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
No results submitted for bonus task 2
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
60/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
No results submitted for task 4
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
Mean Absolute Error: 271.837
R2: 0.113
Normalised Mean Absolute Error (Assessed): 0.305
Points: 3
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
63/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
Mean Absolute Error: 11.564
R2: -1.632
Normalised Mean Absolute Error (Assessed): 0.947
Points: 0
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
Mean Absolute Error: 271.837
R2: 0.113
Normalised Mean Absolute Error (Assessed): 0.305
Points: 3
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
63/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
Mean Absolute Error: 11.567
R2: -1.632
Normalised Mean Absolute Error (Assessed): 0.947
Points: 0
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
Mean Absolute Error: 271.837
R2: 0.113
Normalised Mean Absolute Error (Assessed): 0.305
Points: 3
Bonus Task 3 Prediction - Space Group Symbol
No results submitted for bonus task 3
Total Points
63/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
Mean Absolute Error: 11.567
R2: -1.632
Normalised Mean Absolute Error (Assessed): 0.947
Points: 0
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
Mean Absolute Error: 295.704
R2: 0.169
Normalised Mean Absolute Error (Assessed): 0.332
Points: 3
Bonus Task 3 Prediction - Space Group Symbol
Accuracy: 0.246
Macro F1-score (Assessed): 0.007
Weighted F1-score: 0.154
Points: 0
Total Points
63/130

Task 1 Prediction - Density
Mean Absolute Error: 0.059
R2: 0.906
Normalised Mean Absolute Error (Assessed): 0.039
Points: 22
Task 2 Prediction - Centrosymmetric
Accuracy: 0.842
Macro F1-score (Assessed): 0.682
Weighted F1-score: 0.814
Points: 7
Task 3 Prediction - Mean Distances
Mean Absolute Error: 0.255
R2: 0.852
Normalised Mean Absolute Error (Assessed): 0.035
Points: 22
Task 4 Prediction - Van der Waals Contacts
Mean Absolute Error: 11.567
R2: -1.632
Normalised Mean Absolute Error (Assessed): 0.947
Points: 0
Bonus Task 1 Prediction - Packing Coefficient
Mean Absolute Error: 0.031
R2: -0.118
Normalised Mean Absolute Error (Assessed): 0.044
Points: 9
Bonus Task 2 Prediction - Cell Volume
Mean Absolute Error: 295.704
R2: 0.169
Normalised Mean Absolute Error (Assessed): 0.332
Points: 3
Bonus Task 3 Prediction - Space Group Symbol
Accuracy: 0.246
Macro F1-score (Assessed): 0.007
Weighted F1-score: 0.154
Points: 0
Total Points
63/130


Recording Audio from the user

This is lower priority and not for launch.
TL;DR

Prefer getUserMedia (with mic selection and constraints) allows in-page audio experience
Use input type=file accept audio/* capture when not supported.

@petele it is low priority, but I am going to take a quick stab at this given that we have MediaRecorder and some other things.  This will live in web/fundamentals/native-hardware/ for now.

Merged - closing.


Bug with container actions and NPM (workspaces?) and github-repository links

Description
Please see my community post: https://github.community/t/bug-with-container-actions-and-npm-workspaces-and-github-repository-links/230977
Virtual environments affected

[ ] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
https://github.com/tetrasmolyn/containertest
Is it regression?
No response
Expected behavior
No response
Actual behavior
No response
Repro steps
I have a very bizarre scenario here, which I have spent several days trying to isolate.
Let me set the scene: medium sized monorepo using npm workspaces, with several packages in package.json pointing to (internal) github repositories directly.
Everything runs fine with the standard Github Action (ie. runs-on: ubuntu-latest).
The second I add “container: node:16-alpine” (or ubuntu:latest, or anything), it starts breaking with odd errors during “npm ci” / “npm install”.
Community post has more details
Here is an example simplified repo with the problem:
https://github.com/tetrasmolyn/containertest
Reproduction Steps
Please see community post:
https://github.community/t/bug-with-container-actions-and-npm-workspaces-and-github-repository-links/230977

@tetrasmolyn Hi!
Thanks for the report! We will take a look!

@tetrasmolyn
The root cause is the node:16-alpine sets $HOME env variable to the strange values /github/home - please contact the image developers to change this
The workarounds:

Grant write permission to the default npm cache dir: - run: mkdir -p /github/home && sudo chown -R 1001:121 /github/home
see the build https://github.com/akv-platform/containertest/actions/runs/2030958270

Change the npm cache dir to the location with write permissions npm ci --cache /tmp/.npm
see the build https://github.com/akv-platform/containertest/runs/5667982457?check_suite_focus=true

The root cause is the node:16-alpine sets $HOME env variable to the strange value /github/home

This is not correct, HOME=/github/home is set by GHA runner, probable here: https://github.com/actions/runner/blob/882f36dcf8a951dac2dc1bebd9e69bdc4de6b1a7/src/Runner.Worker/Handlers/ContainerActionHandler.cs#L169-L171
❯ docker run -ti --rm node:16-alpine env
NODE_VERSION=16.14.2
HOSTNAME=6010b15ff178
YARN_VERSION=1.22.18
SHLVL=1
HOME=/root
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/

@panekj could you please file an issue to the runner repo then?


Framework Architecture v2.0

The current metaanchor-framework is merely a draft and Proof-of-concept implementation lacking both, functionality and proper software design.
Requirements (Condensed from [concept document])(https://github.com/authenticvision/metaanchor/blob/bde637f2bf9f0cab4f0d268cf6a75a4e594b87e8/concept/README.md):

Multitenant (1 running instance, multiple isolated tenants). Will be often deployed with 1 tenant, will be run by AV and partners of AV as multi-tenant. Tenants defined as users logged in via their wallet, typically not having access to the server and database directly.
web3js is supported for direct blockchain-access
The MetaAnchor-API-Key (provided to users of the framework with the physical labels) as well as other secrets / keys must be well protected. Especially when people with mediocre programming and IT-Security skills edit the provided software in this repo, it shall be very hard to accidentially expose those keys
An "easy" programming language shall be used to allow people with mediocre programming skills to extend the framework and build their own functionality. It shall be widespread and have good community support in the context of Web3 (e.g. Javascript, Typescript, ..)
Reactive by default or large library of design templates with reactive design. Is typically displayed on Mobile and Desktop.
Shall support to Log in with WalletConnect, MetaMask, Coinbase-Wallets, Ledger, ...
Can handle a high amount of requests and concurrent connections on the backend (>100/s) without special mechansms. The api/collection/* (#3)  will be called frequently by many sources. When an NFT is transferred, many NFT Marketplaces listen to the "ERC-721" Transfer event on a blockchain and then request the metadata to cache it. So multiple Marketplaces will request metadata almost simultanously.
Small footprint, i.e. is deployable on the smallest tier of webservers you usually get. (In the 5-15$ / month range)
Persistend data storage (#4 )

Typically ~10.000 entries
Each entry 2-3 kB of JSON Metadata
Each entry an Image with ~ 1 MB

Can be licensed under MIT or similar license (opensource, commercial use)

Goal / Acceptance

Framework is deployed having the same functionality as the PoC framework.
A Test-NFT from United Friends of Cujo is transferred through a scan of SLID 123XYZ calling frontend/landing?av_sip=...&av_beneficiary=....
The NFT is configured (metdata + image) in the persistent data layer. The entry is indexed through the SLID 123XYZ.
The Metadata of this NFT is supplied via OpenSea Metadata Standards via api/collection/* including an image via api/artwork/*

Architecture and implementation is done


Upgrade to eslint 8

Upgrade to eslint 8.
Also upgraded all other packages to close all security issues.

Codecov Report

Merging #22 (079921f) into main (c955cd4) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   98.91%   98.90%   -0.01%
==========================================
  Files          18       18
  Lines         367      365       -2
  Branches      121      121
==========================================
- Hits          363      361       -2
  Partials        4        4

Impacted Files
Coverage Δ

src/util/decoratorValue.ts
100.00% <ø> (ø)

src/rules/invalid-decorated-type.ts
100.00% <100.00%> (ø)

src/rules/invalid-decorator-type.ts
100.00% <100.00%> (ø)

src/rules/invalid-nullable-input-type.ts
100.00% <100.00%> (ø)

src/rules/invalid-nullable-output-type.ts
100.00% <100.00%> (ø)

src/rules/missing-decorator-type.ts
100.00% <100.00%> (ø)

src/rules/wrong-decorator-signature.ts
100.00% <100.00%> (ø)

src/util/decoratedValue.ts
95.12% <100.00%> (ø)

src/util/typeGraphQLUtil.ts
100.00% <0.00%> (ø)

src/util/TypeGraphQLContext.ts
100.00% <0.00%> (ø)

... and 1 more

Continue to review full report at Codecov.

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

Any idea when you have time for the release of this?

Can I buy you a cup of coffee to get this released ? :)

Branch cannot be merged due to conflicts

That is wierd... I says This branch has no conflicts with the base branch!

Do you have any changes locally you could push to main - so I can resolve the conflicts?

That's odd. This is what I'm seeing on my side. I'll have a look

It was as simple as changing from rebase to merge

New version has been pushed to NPM!


Add a way to restart the Python Language Server

If the python language server crashes or gets into an unusable state, the only way to get it working again is to reload the entire editor window. This is very inconvenient.
Environment data

VS Code version: 1.28.2
Extension version (available under the Extensions sidebar): 2018.9.2
OS and version: Windows 10 version 1803
Python version (& distribution if applicable, e.g. Anaconda): N/a
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/a
Relevant/affected Python packages and their versions: N/a

Actual behavior
The only way to restart the Python Language Server is to reload the window
Expected  behavior
A menu option to restart the python language server should be present, like with Typescript

Steps to reproduce:
N/a
Logs
N/a

This is a much needed feature.

Much needed. This exists in the Jupyter version https://donjayamanne.github.io/pythonVSCodeDocs/docs/jupyter_getting-started/

Please add this command! It's crashing a lot! And I have to reload the whole workspace window!

@angelhdz @SIGSTACKFAULT
Please could you let is know why this is required.
I.e. if you are having issues with the language server, please could you file an issue with the details.
I understand the need for such a feature (a quick fix to get the extension working, without reloading the window), however at the same time I'd like to ensure we resolve the root cause, else restarting LS is merely going to mask the underlying problem.
Also please do upvote 👍 the issue so we can track and prioritize this issue.

Thank you for replying!
When I submitted the issue to the VSCode repository, it was implied that if there was any issue, that I must be an extension's fault. But I did my debugging. For my specific issue (issues with code hinting/intelli-sense), I removed every extension I could and only left this one (so I could debug Python files). The issue remained.
The issue is, after a while of working, intelli-sense just stops auto completing things, and sometimes, it throws errors like "undefined property asdfetasd". It looks like the language server just stops workings and remains with cached data.
So I decided to try other languages in my other workspaces, like Dart language, Javascript, Actionscript 3.0 with the Actionscript & MXML extension, etc.
And guess what? I had the same issues!!!!
So, it's either these language's language servers malfunctioning, or is an issue with VSCode's Intellisense!
This happens to me in every VSCode version I install.
For example, few days ago I was working with Javascript. And I had the Workspace Settings *.json file opened for configuration.
And suddenly, I started to have errors that there were undefined things or syntax errors in that file. So I reloaded the workspace without changing anything in the file, and the errors went away!
Sometimes, just by saving the files, the errors go away.
But the code hinting/auto-complete/intelli-sense only gets solved if I reload the workspace.

@angelhdz Sounds like you are experiencing issues with VS Code (if you have similar issues with other languages as well).
Please could you provide a link to the original issue.

@angelhdz Sounds like you are experiencing issues with VS Code (if you have similar issues with other languages as well).
Please could you provide a link to the original issue.

https://github.com/microsoft/vscode/issues/80289#issuecomment-528095659

@angelhdz Please could you try using the Python extension using Jedi (disable the Language Server). To do so, please open your user settings and ensure the setting Python: Jedi Enabled is selected, see below:

Let me know how that goes. If you still experience the same issues, then it is related to VS Code, else its related to the Language Server and we probably should get some logs from you (we can do that later - basically enable verbose logging).

Yes, Jedi was enabled since I started working with Python on VSCode. When this issue started, I read on the internet, and found out that disabling Jedi may solve the issue, but it didn't.
I'm just gonna wait 1 week, because VSCode made an auto-update recently, to see if this issue got solved.
Thank you for your time!

The language server hangs on "analyzing in background" sometimes.

The language server hangs on "analyzing in background, $x items left..." sometimes.

Yes.

@SIGSTACKFAULT @angelhdz
Please could you file an issue with the details on the following repo and we'll look into the underlying cause and hopefully fix it (without having to resort to restarts). I believe that's be best user experience - user not having to do anything, things just work.
https://github.com/microsoft/python-language-server

@SIGSTACKFAULT @angelhdz
Please could you file an issue with the details on the following repo and we'll look into the underlying cause and hopefully fix it (without having to resort to restarts). I believe that's be best user experience - user not having to do anything, things just work.
https://github.com/microsoft/python-language-server
@MikhailArkhipov @jakebailey @Anapo14 /cc

It's VSCode's fault, I'm convinced. Look at this:

Again, I jumped to work on another workspace, this time Actionscript 3.0 language.
It saying 'undefined property tr' and 'tr' is not found in the code, but 'tr' are the first 2 letters of the word 'trace' that is actually in the code, to me, it's like VSCode Intellisense or editor, stops functioning or I don't know. This happens to me in every language, every workspace, and with any extension.
It SOMETIMES gets solved if I save the file. And it always get solved by reloading the workspace.
Also happening to me in the new language I'm working as of 3 days ago, Google Dart, with the Dart extension dart-code.dart-code, but as I concluded, is a VSCode's fault, not an extension's fault.

FWIW I want this feature because the python language sever goes all screwy if I try and run it on the giant monolith at work and Jedi breaks every time I open a test file. I have to reload VSCode 5-10 times a day whenever I work with python.

Another situation, where I would want to restart PLS manually.
I work on refactoring old project code a lot as my job. I usually work in another branch, where code layout may be completely different from the active one. But still I need to change between them fairly often. This breaks the PLS's Go to definition and other functionality, as it's using some kind of cache, and doesn't refresh it on checkout (actually reasonable, why would it). And it shows some linting/syntax errors in places where they WAS in an old branch, but in the NEW branch (e.g. I had line too long on line 78 in my main.py in dev branch, I fix it in refactoring, there are completely different code on line 78 now, but when switching branches it still gets highlighted as line too long even though it can be completely empty).
Situations like this require Reload Window to resolve, which actually takes a long time, as I have plenty of extensions enabled. Having dedicated Restart/Rescan/Reanalyze for PLS would help a lot and speed up my workflow a fair bit.

Language servers are stateful, and supporting big branch changes is a bit of a difficulty for any implementation. Adding some option to restart the language server (the extension can call the client's restart function), or at least do a reload (which we have implemented, but only on package changes), is feasible.
FWIW we the language server does not produce "line too long" messages; those are from some other linter, which hints that there are more tools than just the LS that also need to have some ability to recognize when the data is stale.

Switching between 2 different python interpreter may make sense, I found doing like this will deal with the problem that losing intelli-code for new open file.
https://github.com/microsoft/python-language-server/issues/1754
I wondered will language server run a code analysis for the new open file?

Usually when I do a git rebase with edits and all sorts of craziness, the language server seems to get REALLY confused, in the screenshot provided, I have completely valid code but it highlighted queryset thinking that it's the self.ordering that is two lines above it (obscured by popup) then claiming that self is not defined (it is). It's like all state has been incorrectly mapped to different lines.
I expect these kinds of issues to keep popping up even after multiple fixes, because an external process (git) is doing a lot of simultaneous file changes (as part of rebase). So we just need a way to restart the language server elegantly when this happens.
Currently I have to kill the Microsoft.Python.LanguageServer process and allow the extension to start it again, but it feel like an uglier solution.

I really need this feature. Any time I install a new Python library, I have to reload the entire window before the language server picks it up, which destroys all my terminals.

If you're talking specifically about libraries, we made reloading on install opt-in as it was causing more issues than it was fixing. You can explicitly re-enable this behavior by looking at: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#completions-do-not-update-andor-import-is-still-being-reported-as-unresolved-after-pip-install

@jakebailey: I have the same problem as @Hubro. After reading the issues linked in your comment, I don't think I want to enable that option. A command to explicitly reload the language server would be much-appreciated. Or maybe refresh imports when trying to run code actions on a missing import and nothing was found?

If you're talking specifically about libraries, we made reloading on install opt-in as it was causing more issues than it was fixing. You can explicitly re-enable this behavior by looking at: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#completions-do-not-update-andor-import-is-still-being-reported-as-unresolved-after-pip-install

@jakebailey I have been using watchSearchPaths for a couple of months now and it has improved my workflow by a lot. However, it hasn't completely eliminated my need of a restart command. Some times the language server will start acting weird, telling me variables aren't defined when they are defined just a couple of lines above. Reloading the window resolves this, but being able to restart the language server instead would be far superior, as that wouldn't kill my terminal sessions. This happens on average once per day, often enough that it's a big pain.

The language server hangs on "analyzing in background, $x items left..." sometimes.

I am having the same issue for last few days. Any work around or solution yet? Without restarting VSCode ofc. :)

The language server hangs on "analyzing in background, $x items left..." sometimes.

I am having the same issue for last few days. Any work around or solution yet? Without restarting VSCode ofc. :)

You can kill the Microsoft.Python.LanguageServer process. It will be restarted automatically. This solves the issue for me. Sometimes.

Or reload the window - there is VS Code command for that.

Reloading the window when an extension misbehaves is like restarting your computer when chrome uses too much memory.
I don't understand the resistance to this. It's clearly possible since the Typescript server has had it since day one. Do you just not want to admit that your language server sometimes breaks and might need restarting?

TS server is a different product, implemented in a different language and running in a different environment. There are also fundamental differences in how LS are activated and wired up. Different LS are not always comparable.
It is doable but amount of work is far from small. Restart may be a solution for mentioned above issues with git or pip installs, but if LS crashed or got stuck analyzing something, it most probably will crash or get stuck again... The underlying issue is should be fixed preferably.

My apologies, I assumed from jakebailey's earlier comment that there was a function you could call.

The underlying issue is should be fixed preferably.

In the long term yes, but in the short term if I'm at work and my python completions system goes haywire my first thought is "Oh god how can I make this start working again as quickly as possible so I can complete my ticket" not "oh that's interesting let me start debugging my IDE"
If I have to reload the window, that means I have to stare at a blank screen while all my extensions re-initialise and I lose all the terminals I had open and any programs running in them. It's really not good for maintaining flow.

@MikhailArkhipov The problem I face isn't the LS crashing or getting stuck analyzing forever, but rather it suddenly has a completely invalid state (eg: it thinks a certain variable is defined at some line while it's a few lines above/below), this happens while I'm doing interactive rebases, my guess is that files change very quickly leading the LS to be very confused as the files change during its analysis.
If there was a command to restart the LS, I'd gladly run it after one of these intensive rebases. I feel like it will be easier than fixing the underlying bug because it's quite hard to reproduce.

I still think this is doable (just needs a PR), but @hassanselim0 I'd be curious if you had tried out Pylance as your LS to see if it solved any of your issues with the LS getting confused.

Was bored watching TV last night and made #12952 that implements this (but needs a bit more testing).

@jakebailey I actually learned about PyLance just 1 day after writing my last comment and I switched to it.
So far it's faster (don't have to wait a long time to analyze), and I can keep going to definition (F12) recursively in library code seemingly indefinitely (previously at some point I'd hit an invisible wall unable to analyse library code any further). But I'll need more time to see if this rebase confusion happens or not.

I would also vote to have a feature/command to manually restart the Language Server. It seems as though the longer it is active, the slower it goes.

I also would like to restart it when I install a new library

See: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#completions-do-not-update-andor-import-is-still-being-reported-as-unresolved-after-pip-install
(Or, try Pylance, which does not suffer from the shortcomings that make the above true)

Another scenario:
I need this feature when developing with ROS2 so intellisense finds libraries I source the ROS2 distribution
. /opt/ros2/<release>/setup.bash

This will modify PYTHONPATH which points to ros2 specific libraries which I want intellisense to pick up ... which is doesn't because I have to source this in each termina and vscode doesn't provide a way to do this automatically (to my knowledge).

Looks like this issue is resolved by #12952.

Yep, it's been in for a good bit. PR's here only mention the issue they fix, but I don't know exactly when someone goes back to "verify" that it works.

Seems to work, thanks a lot!


Depiction of Bat

Description
Depiction of Bat with styled alphabet B.
Fixes #189
Insert the image of the art below

Checklist:
To fill the checklists, put x inside the brackets. [x]

[x] My code follows the guidelines of this project
[x] I have tested my code and it works properly
[x] I have added just one folder that includes my Art files (jsx and css)
[x] I have not edited App.js file
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] This is my original code and I have NOT copied the code from anywhere else.

Do not edit app.js why did you tick the task then, please follow the rules.


Create a new spline from a partial derivative of a bivariate spline

Reference issue

Supersedes and closes gh-10129.
What does this implement/fix?

Implement a partial_derivative method of *BivariateSpline classes. This PR is nothing but a rebase of gh-10129 with a couple of trivial fixes on top. See gh-10129 for discussion and timings.
Additional information

closes gh-2047, closes gh-12480

Since this is just a rebase of the original gh-10129, my review conclusion is LGTM, let's merge this for the upcoming 1.9.0 release. Thanks @congma! and sorry it took so long


BUG: Hyperdrive jobs not possible with v2 SDK

In case it helps, this has been driving me a bit crazy today as well. I've found from older runs of mine that the shared memory is correctly taken into account when downgrading to azure-ai-ml==1.5.0. I was trying 1.15.0 so I think that feature was broken somewhere in between.

In case it helps, this has been driving me a bit crazy today as well. I've found from older runs of mine that the shared memory is correctly taken into account when downgrading to azure-ai-ml==1.5.0. I was trying 1.15.0 so I think that feature was broken somewhere in between.

I've run some tests. This is broken for azure-ai-ml>=1.13.0.


manifest tool dev init does not allow specifying vendor id

We should really allow specifying the vendor id, because Pelion Edge still has (at least briefly) the dependency on the vendor id for the gateway features. It's not possible with manifest tool v2.0 now.
https://developer.pelion.com/docs/device-management-edge/2.2/quick-start/lmp-quick-start.html

Actually, it does.
 --vendor-id 42fa7b48-1a65-43aa-890f-8c704daade54


Invalid community link

The message sent by the bot gives out an invalid link to people, and this can prevent people from getting in touch with the community, it might block them off from joining the community because I had same experience.
So I feel this is a major change that needs urgent attention and fixing.

PR merged. Thank you 👍


Inquiry

Hi, does the proposed watermark works also with other models? how about llama2?

Yes! This should work with any huggingface transformers model, and llama2 is available through gated access here https://huggingface.co/meta-llama/Llama-2-7b-hf.
Generally, any huggingface transformers model that supports the model.generate function should work, but the strength and generation quality impact of the watermark at various gamma and delta settings will need to be empirically evaluated for the usecase you're considering (starting with the default parameter values is a good choice!).


Implement schema registry - error typings

:tada: This issue has been resolved in version 0.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


exposure-weighted aggregate alignment for BO/PO should use net exposure weight

methodological issue:
currently, we disaggregate the company level net alignment metric into build out and phase out (BO/PO) components. these need to sum up to the net value.
When aggregating to the loan book level by applying exposure weights of each company based on the matched loan book, we currently weight the company level BO/PO metrics by a weight that is split based on the production shares of build out and phase out technologies for the given company.
This is wrong, as the disaggregated metric already includes this split. Instead they need to be weighted with the net exposure to ensure that the disaggregation of the exposure-weighted net aggregate alignment also sums up as BO + PO = Net

this is entirely covered on the package side: https://github.com/RMI-PACTA/pacta.aggregate.loanbook.plots/pull/88


Install OpenShift ServiceMesh Operator 1.0.8

ServiceMesh Operator 1.0.8 is a new version that contains fixes to work out of of the box when using Managed OpenShift 4.3 on IBM Public Cloud.
https://github.com/Maistra/istio/releases/tag/maistra-1.0.8
kabanero operator registry/catalog 0.6 installs version 1.04
https://github.com/kabanero-io/kabanero-operator/blob/0.6.0/registry/manifests/servicemeshoperator/servicemesh.package.yaml#L8
kabanero operartor registry/catalog 0.7 installs 1.0.7
https://github.com/kabanero-io/kabanero-operator/blob/0.7.0-alpha.1/registry/manifests/servicemeshoperator/servicemesh.package.yaml#L10

@csantanapr Kabanero 0.6.1-rc.1 is available for you to verify with, when you are ready.

@kaczyns - Was the fix for this issue included into 0.6.1-rc.1?  If yes, can we get this issue verified and closed, please?

I tried the installer 0.6.1-rc.1 and see some problems, please clarify
https://github.com/kabanero-io/kabanero-operator/releases/tag/0.6.1-rc.1
At the end is printing a message to use the collection/stack hub 0.6.0
***************************************************************************
*
*  The installation script is complete.  You can now create an instance
*  of the Kabanero CR.  If you have cloned and curated a collection set,
*  apply the Kabanero CR that you created.  Or, to create the default
*  instance:
*
*      oc apply -n kabanero -f https://raw.githubusercontent.com/kabanero-io/kabanero-operator/0.6.1-rc.1/config/samples/default.yaml
*
***************************************************************************

When I inspect the deafult.yaml
cat default.yaml
apiVersion: kabanero.io/v1alpha2
kind: Kabanero
metadata:
  name: kabanero
spec:
  version: "0.6.1"
  stacks:
    repositories:
    - name: central
      https:
        url: https://github.com/kabanero-io/kabanero-stack-hub/releases/download/0.6.0/kabanero-stack-hub-index.yaml
    pipelines:
    - id: default
      sha256: abbc2ed0e19349aa5e23b511b75449fb1a515cfd6a548b05b6516fb7c6de1aba
      https:
        url: https://github.com/kabanero-io/kabanero-pipelines/releases/download/0.6.0/default-kabanero-pipelines.tar.gz

I think this should point to 0.6.1 not 0.6.0?
https://github.com/kabanero-io/kabanero-stack-hub/releases/tag/0.6.1

Right, at the time we cut rc.1 we were not aware that there was a 0.6.1 stack hub to pick up.  We will address this in rc.2 tonight.  Feel free to open a different issue for this different problem if you'd like to track it.

verified that ServiceMesh 1.0.8 is getting installed with 0.6.1-rc.1


Update repositories.txt

This is a pull request that would require two manual changes:
The first is to update the URL of a library that is already in the Library Manager. The library (GDXLib) was moved from an individual's GitHub account ("dvernier") to the official GitHub account for Vernier Science Education.
The second request that would require a manual change is for an update of the libraries name. The original library was misnamed in libraries.properties as "GDXLIb". The name has been corrected and updated as "GDXLib".

Hello @per1234,
I have not received any notification or update on this request. I wanted to check to see if there was something I needed to do.
Thanks,

Hi @per1234
I just wanted to check that there was not an issue with the GDXLib library. After it was moved to a new Github repository and renamed I made some changes to the library. This updated library was released as version 2.0.0. The Library Manager indexer did show it found 2.0.0, but it had errors in the library.properties file and did not update to this version. I then made changes to fix the error and released the updated version as 2.0.1. When I open Arduino IDE version 2.0.1 is available to be installed. However, when I check the log page for the library it does not show that it was updated.
I am checking the log page at:  https://downloads.arduino.cc/libraries/logs/github.com/VernierST/GDXLib/
Can you confirm that there are no issues with the GDXLib library and that I did not make some mistakes? Thanks!

Hi @sswartley. Unfortunately the Arduino web team have instated a draconian caching policy on the indexer log web pages so they are often days out of date.
As you noticed, the actual Library Manager index has been updated even though the logs didn't reflect that. So all is well.

Thank you!


[BugFix] Fix gzip decompressor memory leak

Fixes #issue

What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

there will be no memleak, thread_local variable is static
https://stackoverflow.com/questions/22794382/are-c11-thread-local-variables-automatically-static

@letian-jiang
Do you need to cherry-pick this fix to other branches?

@letian-jiang Do you need to cherry-pick this fix to other branches?

No need. This compressor is added only in the main branch.


Update msgpack-cpp

The current version of msgpack-cpp 3.3.0 in VCPKG has an annoying issue so compilation under windows fails due to redefinition of a struct:
https://github.com/msgpack/msgpack-c/issues/1059#issue-1649754375
The latest version 6.6.0 fixes the issue. As 3.3.0 is pretty outdated anyway, it would be great, if vcpkg could be update to the latest version.

Fixed by https://github.com/microsoft/vcpkg/pull/30401.