[Feature] New Authentication Module

Authentication Module
This feature proposes a new authentication module, replacing the current one, in order to simplify its operations (e.g., by limiting cross-cluster interactions, such as request/offers) and bringing in more modularity (e.g., declarative operations).
It is based on the concept of Identity and Tenant resources, which are used to authenticate and authorize the communication between two clusters: the provider (the cluster that provides resources) and the consumer (the cluster that consumes resources).
Design Goals

Fully declarative with CRDs

pluggable and extensible

The provider cluster should NOT have permission over the consumer

no resource should be replicated from provider to consumer
no port exposition is required from the consumer side (for the API server)

Resource hierarchy to make it possible to revoke permissions and have better visibility and readability
Signed first authentication

all the other interactions are done with the credentials created in the first step

New Resources
Identity
The Identity resource is the owner of a Kubeconfig secret, that can be used both by Liqo controllers and by the user to access the provider cluster.
They can be of two kinds: Control Plane or Resource; with different permissions and purposes.
Only one Identity resource of kind Control Plane can be created for each provider cluster.
Multiple Identity resources of kind Resource can be created for each provider cluster.
Spec

Field
Description
Optional

ClusterID
The ID of the cluster the identity is targeting to

API Server
The API Server address of the cluster the identity is targeting to

CA
The CA of the cluster the identity is targeting to

SignedCertificate
The signed certificate for this identity

Type
The type for this identity (one of ControlPlane or Resource)

Status

Field
Description
Optional

SecretRef
The reference to the secret containing the Kubeconfig created for this identity

ResourceSlice
The ResourceSlice resource is used to request resources from a provider cluster and map how much of them are provided.
There could be multiple ResourceSlice resources for each provider cluster, each one with a different amount of resources requested.
For each ResourceSlice resource, a new Identity resource is created, and the Kubeconfig secret ref is stored in the Status of the ResourceSlice resource.
ResourceSlices can have different classes, to allow the provider cluster to have different policies for different resources.
By default, the provider Liqo controllers will accept all the ResourceSlice resources allowing the usage of all the requested resources.
Spec

Field
Description
Optional

Resources
The amount of resources requested to the provider cluster
v

Class
The class for this slice, similar to ingress classes

ClusterID
The ID of the consumer cluster

Status

Field
Description
Optional

State
The state for this slice (one of Accepted or Denied)

Resources
The amount of resources provided by the provider cluster

AuthParams
The parameters required to fill an identity spec

Tenant
The Tenant resource maps the consumer cluster in the provider cluster, and it is the owner of a tenant namespace.
Only one Tenant resource can be created for each consumer cluster.
Spec

Field
Description
Optional

ClusterID
The ID of the cluster the tenant is referring to

PublicKey
The public key of the cluster the identity is referring to

CSR
The CSR of the cluster the identity is referring to

Signature
The signature proving the identity of the consumer cluster

Status

Field
Description
Optional

TenantNamespace
The name of the controlled tenant namespace

AuthParams
The parameters required to fill an identity spec

Workflow
Control Plane
The Control Plane is the first step of the authentication process, and it is used to authenticate the consumer cluster to the provider cluster and to provide the consumer cluster with a Kubeconfig to manage Liqo control plane resources and to check the health of the provider cluster.

A new pair of private and public keys will be created in the cluster when Liqo is installed

this will be the key of the cluster, used to sign and to authenticate

A nonce is used to prove that the consumer has the private key

prevents impersonation

The Tenant resource keeps the clusterID and its public key

it is the parent of the tenant namespace, where all Liqo control plane resources will live

The Identity resource keeps all the info required to create a Kubeconfig
Used by Liqo Control Plane (CRD Replicator, API server health check, …)

In the schema, dashed arrows represent manual actions where the user (or software acting for him) needs to move data between the two clusters.
In that way, no automatic action is performed between clusters by Liqo components, leading to full declarativity.

Interactions
The schema shows the lowest level interaction required to set up this step by using liqoctl.
Those steps can be wrapped by another liqoctl command, in which the user is the owner of both clusters, and they are reachable at the same time from the same machine.

Resource Acquisition
Resource Acquisition is the second step of the authentication process, and it is used to authenticate the consumer cluster to the provider cluster and to provide the consumer cluster with a Kubeconfig to manage the computing resources requested and scheduled to the provider cluster.

It can be done multiple times for each provider cluster
A new CR tracks a new set of resources that are made available by using the related Kubeconfig
A webhook may be implemented in the provider cluster to enforce its utilization
Multiple Resource Negotiations can be shared between the same couple of clusters
Multiple controllers can fill the RN Status based on class (similar to ingress classes)

pluggability

The resulting Kubeconfig can be mounted by one or more virtual nodes or used with kubectl

In the schema, red arrows represent resources replicated by the Liqo CRD Replicator; no manual action is required.

Interactions
The schema shows the lowest level interaction required to set up this step by using liqoctl.
The only step is creating the ResoruceSlice resource; then, everything is handled by the CRD replicator.
The creation of the related VirtualNode may be automatized by setting an annotation over the ResourceSlice.

@aleoli I'm interested in the feature discussed here and #2382. Would this improvement solve #1494? For example, if a foreign cluster could be devided into some virtual nodes by the labels of actual nodes, we can offload pods to nodes with specific labels by setting NodeSelector or NodeAffinity.

Hi @tiwatsuka! Yes, this, in combination with a custom offloading patch for each virtual node, could solve this issue

Thank you @aleoli. That sounds great! Could I ask you when is the feature released?

It should be released in the next weeks as a release candidate for testing and a release at the end of July

Any update on the expected timeline here?

This is currently available in liqo v1.0.0-rc.2


No buttons in the camera view

Hi,
In the camera view that opens up when you tap the button in the default input view, there are no buttons to take a photo or dismiss the view. Are we supposed to add them ourselves? If so, how?

There should be buttons. We'll fix it within the next few days.

Fixed in #36

fixed in #37


navbar_brand does not display in less nav_left set to True

Brand
        <?php $ot_navigation = new Bootstrap_Navigation(array('nav_left' => True));
        $ot_navigation->menu_output();
        ?>

No Brand
        <?php $ot_navigation = new Bootstrap_Navigation();
        $ot_navigation->menu_output();
        ?>

Both navbar_left and navbar_right have been deprecated. You no longer have to enable those to use their actions. Completed and merged into master.


esc cannot exist

i configure fzfx with default value.
but when i open any fzfx window, esc key operate only change mode from terminal to normal. not quit
if i :q to quit. it said exit error code 143

hi, will take a look

hi @Jaehaks ,
I cannot reproduce this issue on my Windows 10 machine, would you please share a minimal init.lua that reproduce your issue?


More FastFlags in the FastFlag editor?

(Yes, I know it sounds rather stupid... )
Like the Vulkan minimize crash fix flag and more?

Asking me to add just "more" isn't very descriptive.

A while back I emailed you a suggestion for an FFlag that allows GUI hiding @pizzaboxer

I can't find it, what flag did you suggest?

Here's a copy of the original email:
You might know Roblox disabled the key combos to hide in-game GUIs a long
time ago - a friend told me about a flag that brings that option back, and
I feel like it would be useful to have as a Bloxstrap setting
"DFIntCanHideGuiGroupId": "12477388"
ID needs to be replaced with that of any group the user is in, which will
probably take some extra work
Once this is on, you can use

Ctrl + shift + B to hide billboardguis, nametags, health bars,
surfaceguis etc
Ctrl + shift + C to hide game screenguis
Ctrl + shift + G to hide Roblox guis

I also remember using a flag - or maybe something else - that added way
more graphics options (like, full control of different features -
antialiasing and the like) -  I don't remember what it was, but I think it
had the word Harmony in the name somewhere. If you can find that, it would
be a great addition too!
On Wed, May 10, 2023 at 1:48 AM pizzaboxer @.***> wrote:

I can't find it, what flag did you suggest?
—
Reply to this email directly, view it on GitHub
https://github.com/pizzaboxer/bloxstrap/issues/230#issuecomment-1541441926,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT5H6T6E2LBY5IJAGP3ONUDXFM24TANCNFSM6AAAAAAX3GTSEU
.
You are receiving this because you commented.Message ID:
@.***>

"DFIntCanHideGuiGroupId": "12477388"

Oh, awesome! Never realized this was a thing. I think the best way to handle this would be to make a Bloxstrap group on Roblox, use the group ID for that, and then have people join the group to use it. I'll definitely consider this, thank you.

I think it had the word Harmony in the name somewhere

You mean the ZFeatureHarmony channel? Yep, it's been dead since September.

Anyway, I'll relay this to the v2.4.0 todo list. Though, now I need to get the Robux to make a group...

I'm going to close this since any actual suggestions should either be made under that todo list or submitted as a new issue.

why not just ask the users to put a group id they already joined?

Because that's just more work for the user to do, this way is simpler and quicker. If they really want to do so, then they can.


build goctl got many errors

./goctl.go:36:19: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:52:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:56:19: cannot use "github.com/urfave/cli".BoolFlag literal (type "github.com/urfave/cli".BoolFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".BoolFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:60:19: cannot use "github.com/urfave/cli".BoolFlag literal (type "github.com/urfave/cli".BoolFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".BoolFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:71:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:82:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:93:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:97:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:101:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:112:21: cannot use "github.com/urfave/cli".StringFlag literal (type "github.com/urfave/cli".StringFlag) as type "github.com/urfave/cli".Flag in array or slice literal:
"github.com/urfave/cli".StringFlag does not implement "github.com/urfave/cli".Flag (Apply method has pointer receiver)
./goctl.go:112:21: too many errors

GO111MODULE=on了吗？

OK,it works!
thx~


IPv6 addres parsing in KubeConfig.from_service_account

I noticed that when KUBERNETES_SERVICE_HOST/PYKUBE_KUBERNETES_SERVICE_PORT is set to IPv6 address then server url is calculated incorrectly. So I added IPv6 address bracketing the same way it is done in  official Kubernetes Python client

Thanks!


Incomplete Compliance with MIT License for larabug/larabug

I am the maintainer of the https://github.com/larabug/larabug repository, which is an open-source package released under the MIT License. It has come to my attention that your repository includes a significant portion of the code from https://github.com/larabug/larabug, but does not properly attribute the source or include the original MIT License and copyright notice.
Additionally, we've noticed that several other repositories from "sleuren" appears to contain code from other open-source projects that are also licensed under the MIT License. We strongly recommend that you review these as well to ensure you are in full compliance with their respective licenses. (Example: https://github.com/facade/flare-client-js vs https://github.com/sleuren/sleuren-js)
The MIT License requires that the copyright notice and the license text be included in any substantial copies or substantial portions of the Software. This is essential for maintaining the open-source nature of the project and crediting the contributors for their work.
In order to comply with the MIT License, please take the following actions:

Add the original copyright notice found in https://github.com/larabug/larabug to the relevant files in your repository.
Include a copy of the original MIT License from https://github.com/larabug/larabug in your repository.
Failure to comply with the terms of the MIT License could put you in a legal situation and undermine the principles of open-source software.

Please confirm the completion of these steps by replying to this issue. Thank you for your prompt attention to this matter, and for your respect for the terms of open-source licenses.

@fr3on is this fixed?

Project will closed

When?


zustand:useStore is deprecated

AppUi is using a deprecated api from zustand and its clogging up the console

https://github.com/pmndrs/zustand/discussions/1937
https://github.com/iTwin/appui/blob/master/ui/appui-layout-react/src/appui-layout-react/base/LayoutStore.tsx#L47

@GerardasB Could this be included in #436 ?

@GerardasB Could this be included in #436 ?

No, let's make a separate PR to address this.


return org id from /api/organization/members

so that it can be used from PATCH /v1/organization/members
to retrieve the corresponding object cache entry
and populate the audit headers.

Should we return org_name too?

Resolved offline


Fix https redirect from arewegameyet.rs

The http redirect from http://arewegameyet.rs works fine, but something's wrong with https certificate  and I can't figure out how to fix it on ninet.rs's admin panel yet.
Related to #7 ("Use https")

Should be fixed by #261 ("Make .rs domain primary?")

I can confirm it's fixed. Nice work 👌🏻


How to soft delete?

Hi @esbenp
good to found this repo and, currently I am using it. and great article about modern REST API.
I have checked the source code, but there is no soft delete currently. Or am I missed it?

@denielaa have you enable soft deletes?
Soft Deleting
To enable soft deletes for a model, use the  Illuminate\Database\Eloquent\SoftDeletes trait on the model and add the deleted_at column to your $dates property:
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Flight extends Model
{
    use SoftDeletes;

    /**
     * The attributes that should be mutated to dates.
     *
     * @var array
     */
    protected $dates = ['deleted_at'];
}

oh, so the implementation is still the same.
I thought it will be handled by genie.

so the implementation still the same.
I thought it will be in genie.
I will close this issue, thanks


Update to work with Web Component v1 Specs

Anyone working on this?  I've been using this web component for a while and I'm wanting to update to v1 specs for custom elements and shadow dom.  If no one is working on upgrading I'll fork and start a project.  If there is already a project I'd love to help migrate.

None that I'm aware of. Please feel free to fork. Happy to review/merge a PR if you decide to upstream your changes.

@jmalonzo Here is a repo for v1 compatibility.  under the components folder there is app-router.  It's in the right format for v1 but when I run gulp watch and it fires up no templates are brought in.  I don't get any errors though.  Leaving work now.  Will look into this later but would appreciate any help looking into the matter.  Side note: the HtmlElement javascript error in chrome that you may see is nothing.

@derekshull Thanks I'll take a look this evening, if not this weekend.

Soo that have been a long weekend?
TypeError: e.registerElement is not a function is being thrown in firefox

I did a PR to take care of this issue https://github.com/erikringsmuth/app-router/pull/170


Additional fixes to zed-primer

I did one more proofreading pass on the Zed primer and found a double hash in a hyperlink was messing up the ability to jump right to the intended spot. While I was in there I found one additional item to clarify.

Looks like we have a flaky test failure unrelated to this pr.


chat box

#99

Title :chatbox
Issue No. :#99
Code Stack : html,css,javascript
Close #99

Video (mandatory)

Checklist:

[ X] I have mentioned the issue number in my Pull Request.
[X ] I have commented my code, particularly in hard-to-understand areas
[X ] I have created a helpful and easy to understand README.md if its a new page/tech stack
[ X] I have gone through the  contributing.md file before contributing

Additional context (Mandatory )
Are you contributing under any Open-source programme?

[X ] I'm a GSSOC-EXT contributor
[X ] I'm a HACKTOBERFEST contributor

Please Merge

@Codewithmeowmeow, resend this PR. I can't see the deployed version. and it's showing of change in one line of code.


adding a prep/biom combination to the test db

After working on the study list page we realized that there is no direct biom/prep combination in the test environment. This PR add that and fixes all tests.

Coverage increased (+0.02%) to 83.043% when pulling 14002a695bc2faca2e6b005c671f37d21779d174 on antgonza:adding-biom-to-tests into 837d18d9f714169437d329c37a52331fd98c7d42 on biocore:master.

👍

Coverage increased (+0.02%) to 83.043% when pulling 9189ed703936a6bd2b6e92a354be59d684183218 on antgonza:adding-biom-to-tests into 837d18d9f714169437d329c37a52331fd98c7d42 on biocore:master.


Fix and improve header wrapping

Cherry-picks the commit from @kevincox and also converts the HeaderValueEncoder to use the email-encoding crate.
The only thing that should be left is to fix the fact that the email-encoding implementation doesn't consider tabs as separator characters
Closes #688

Assuming that this is a clean cherry-pick this have been working well for me for months.

Yup it's a clean cherry-pick. Other than the TAB character separator issue this should be ready as is. I'm thinking of temporarily removing it and have it done in a separate followup PR, as is requires modifying email-encoding too.

Let me know if you want to test this PR specifically in my production.

That would be awesome. No more guessing on our part on whether we're doing things right or not :smiley:

The DKIM-Signature header doesn't get wrapped anymore :sweat_smile:. I guess we'll need a custom encoder for it to avoid making the line too long

... test this PR in production. ... That would be awesome. ...

Ok, let me know when you think you are done the cleanups and I'll do some QA and ship it. Unfortunately my monitoring of this isn't excellent so I don't want to ship too many test versions. That being said our tests here should be good cover.

Ok, I am running ed6b9735e0703f65d7b24b2955f187cae9297b39 now. It seems good and I'll check the DMARC reports in a day.

The DMARC reports have come in and have seen no bad signatures so far. I think this is probably good to merge and if something comes up we can fix it.


FIX: fix AttributeError Xtick has no attribute label

@effigies The three functions that I changed (compcor_variance_plot, plot_melodic_components and confounds_correlation_plot ) should already covered by tests here, here and here.

Oh good. I didn't realize that the missing coverage was covered by the tests Taylor just added.

@effigies, but why is codecov complaining that the new lines are not covered by the test then?

Hmm. I thought the branches just weren't merged together, but it looks like the merge commit also didn't see these as covered: https://app.codecov.io/gh/nipreps/nireports/commit/9f62aca1759406934157255ebb4a66edd1bc8ea0


Network logger not displaying verbose messages

Describe the bug
Network logger is suppressing verbose messages.
Expected behavior
When setting the network log level to verbose and above, expect to see all verbose and above messages.
Steps to Reproduce
run lodecli with ./bin/lodecli beacon run --logger.network.level debug
Expect to see messages about peers connecting, about data sent/received over the wire, etc. Eg: https://github.com/ChainSafe/lodestar/blob/master/packages/lodestar/src/network/network.ts#L185
but these messages are never displayed.

Curious, :thinking: its now working on the latest master, closing for now


refactoring client

rewrite whole client code
use newest possible dependencies
reduce dependencies where ever possible
Typescript
define clear signalling interface

New client is here: https://github.com/edumeet/edumeet-client


Fix error: index.js:1 Uncaught SyntaxError: Cannot use import statement outside a module🤓🤓🤓

Had this one as well at first. You fix this by transforming your script tag in your html from:
<script src="./scripts/index.js"></script>

to
<script type="module" src="./scripts/index.js"></script>

If I add this I just get an error! Did you do npm install at the beginning? Maybe that is the reason that you just got the error?


feat: add CloudinaryUpload and new AwsS3Upload in shared-services

Pull Request Template
Issue Overview
This PR addresses #49

[ ] This change addresses the issue in full
[x] This change addresses only certain aspects of the issue
[ ] This change is a dependency for another issue
[ ] This change has a dependency from another issue

Description

Integrates https://github.com/bloom-housing/bloom/pull/3393 which moves CloudinaryUpload from ui-components to bloom. For doorway, it's in shared-services instead of the partners directory since it's only used in one place which is in shared-services, and we don't want to introduce a dependency from shared-services on the partners site.
Adds a new AwsS3Upload with a similar format to CloudinaryUpload. This first generates a presigned URL using a provided S3Client and then uses axios to make a put request to S3. Used the example from AWS documentation https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html.
Adds a new class AwsS3FileUploader following the existing CloudinaryFileUploader. This generates a key by using uuid, sets progress value and calls the above.
Adds only a basic test for CloudinaryFileUploader.

How Can This Be Tested/Reviewed?
There is no further unit testing since that would require using AWS credentials. Will test the S3 implementation end to end through the partners portal once additional changes are in. The changes so far are a no-op.
Checklist:

[x] My code follows the style guidelines of this project
[ ] I have added QA notes to the issue with applicable URLs
[x] I have performed a self-review of my own code
[ ] I have reviewed the changes in a desktop view
[ ] I have reviewed the changes in a mobile view
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have assigned reviewers
[ ] I have run yarn generate:client and/or created a migration if I made backend changes that require them
[ ] I have exported any new pieces added to ui-components
[ ] My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
[ ] Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:
Steps to review a PR:

Read and understand the issue, and ensure the author has added QA notes
Review the code itself from a style point of view
Pull the changes down locally and test that the acceptance criteria is met
Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

I see https://github.com/metrotranscom/doorway/pull/47 puts CloudinaryUpload in a different directory so I will rebase when that PR is merged.


Create devcontainer.json

The image doesn't have GraphViz. There is also a problem where the Jupyter extension in VS Code fails because pexpect isn't installed. If that is a required dependency, then there's a bug (a problem with how Pipfile.lock was generated) which should itself be fixed. If it isn't a required dependency, then that's a bug with this container.
It may be better to use conda for the dev container, which also will get GraphViz, though the image configured for the dev container does not have conda.
So there are multiple, substantial factors that suggest a different approach to the dev container would be better.

Now that #3 is fixed, it may make sense to work on this and investigate bug #5 at the same time.
I'm reopening this and converting it to a draft to experiment a bit with it.


CI Server

We are missing a critical step in our infrastructure. How can we continually ship this without a build process? I think we should debate the finer points of Jenkins vs Circle vs Travis here.

AcceptAllPullRequestsTest.java needs to pass


Mixed precision does not improve the speed

I'm using TF 2.2 to write reinforcement learning algorithms. Because I use a relatively large model, I try to apply mixed precision to improve the training speed. My network consists of three ResNet blocks of depth [16, 32, 32](features are downsampled using maxpooling layer with stride 2 before each block) following by 2 dense layers of size 512, and the input data is of shape [512, 64, 64, 3]. After applying the mixed_precision (following this guide), I see the memory usage drops from 3787MB to 1229MB, but the training speed decreases from 20 training steps per second to 15 training steps per second. My code restrictly follows the official guide, but I cannot get the improvement on the speed. What might cause the problem?
By the way, my GPU is RTX 2080Ti.

@xlnwel
Please share simple stand alone code to replicate the issue faced or if possible share a colab gist for us to analyse the issue

Hi, @Saduf2019 . Here's a colab file I create. Please check it
https://colab.research.google.com/drive/1nBuYrmmH5kM0jbtIZdsuiG6uJbU6mpA7?usp=sharing

@xlnwel
I ran the code shared but face a different issue,the code continous to run for ever after mixed precision result.
Please find the gist here

Maybe because you did not use GPU? Following "Runtime -> set runtime type -> GPU", you can set GPU. Running the gist you provided, I did not see any issue. Here's a screenshot of the result

I am able to replicate the issue faced, please find the gist here.

Hi, @Saduf2019 and @gowthamkpr. Any idea why using mixed_float16 takes longer time than using float32?

I cannot reproduce with TF 2.4rc3. On a Titan V, I get 16.7 seconds with float16 and 43.2 seconds with float32, so I'm assuming this has been fixed.


Automoderator triggers even when discord invite link is invalid.

If it's possible, could you modify the bot to detect whether or not a discord invite link is valid before triggering. I recently posted a invalid discord link as a joke, and was punished anyway.

Jonas knows about that. Right now he has it disabled for yagpdb becaue he can only check that many invites before he gets ratelimited / temp banned by Discord.


Folding: document we do use folding on degree 3 constraints

it seems we do not use exactly Nova's equation to compute the error terms, we do use folding with constraints of degree 3. We must write the equations in the documentation/code (like top-level folding/lib.rs).
Error terms computation: /// - "E_O = E_L + r·T_0 + r^2·T_1 + r^3·E_R"

It is done in https://github.com/o1-labs/proof-systems/pull/2259


 I modified it so that it works on linux instead of Windows. Can I open a PR? Maybe have a windows_main.cpp and a linux_main.cpp so linux people can play with it out of the box too
Thank you!
Nelson

What sort of changes were needed? Is it possible to make one cop file work
for both by chance (even if by adding an ifdef?)
Thanks for your effort Nelson :)
On Sun, May 12, 2019 at 1:01 PM Nelson Morrow<EMAIL_ADDRESS>wrote:

Hi,
I enjoyed playing around with your code last night. I modified it so that
it works on linux instead of Windows. Can I open a PR? Maybe have a
windows_main.cpp and a linux_main.cpp so linux people can play with it out
of the box too
Thank you!
Nelson
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Atrix256/TextMarkovChain/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AARSRF6I4WTAFM5BL24RUSTPVBZS5ANCNFSM4HMLD3GA
.

maybe with an ifdef. I'll work on it and get back to you!
I just had to change fopen_s to fopen and change dev/random to /dev/urandom

since this thread is (barely) relevant to my request, I want to ask it here:
I want to use this in https://github.com/AnySoftKeyboard/AnySoftKeyboard for next-word prediction and in other use-cases too. I would love to have it buildable with linux.

Neat. For what it's worth, i'll bet there are better algorithms for your word prediction, but if you want to explore things and have fun, this could fit that.  I think using an LSTM would work out better (https://colah.github.io/posts/2015-08-Understanding-LSTMs/) if you actually want reasonably good results though.

There is some neat info & resources here too about this. More might appear after i post this :P
https://twitter.com/Atrix256/status/1128040988457328640

Thanks for the links. I actually talked to a few engineers from Google TensorFlow team about  training and running TF on mobile and they weren't very optimistic about it.
Running an already trained network should work, but training a hard problem right now.
I'm interested in Markov mostly because it seems lightweighted enough that it will work on device. I'm not looking for amazing results, just pretty good ones.

ah ok, Interesting :)
On Mon, May 13, 2019 at 7:10 PM Menny Even Danan<EMAIL_ADDRESS>wrote:

Thanks for the links. I actually talked to a few engineers from Google
TensorFlow team about training and running TF on mobile and they weren't
very optimistic about it.
Running an already trained network should work, but training a hard
problem right now.
I'm interested in Markov mostly because it seems lightweighted enough that
it will work on device. I'm not looking for amazing results, just pretty
good ones.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Atrix256/TextMarkovChain/issues/1?email_source=notifications&email_token=AARSRFZ6TKWFTJFJQX4VS3LPVINQBA5CNFSM4HMLD3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKBV4Y#issuecomment-492051187,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARSRFZDFY5ZMW5A2SYT5X3PVINQBANCNFSM4HMLD3GA
.

I'll open a PR for this on Saturday btw, I have finals this week. Sorry I'm dragging my feet :)

don't sweat it :P
honestly, it's a minor enough thing, i think folks should be able to figure
it out like you did, if they need to build on linux.
Your work would save them from doing that, but if you end up being too busy
/ something else calls your time / etc, i think it'd be totally fine.
I doubt a whole lot of folks are going to be looking at this repo anyways...
On Wed, May 15, 2019 at 11:07 AM Nelson Morrow<EMAIL_ADDRESS>wrote:

I'll open a PR for this on Saturday btw, I have finals this week. Sorry
I'm dragging my feet :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Atrix256/TextMarkovChain/issues/1?email_source=notifications&email_token=AARSRF3TEZTJVZO74MWEC7LPVRGN7A5CNFSM4HMLD3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPPKDA#issuecomment-492762380,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARSRF5GROSJXV66N6DESK3PVRGN7ANCNFSM4HMLD3GA
.


Update to "1.0.85" changes behaviour

In a recent (dependabot) update from 1.0.83 to 1.0.85 I am seeing a change in behaviour where values produced using json!() shift from being integers to being floats.
The output is the result of a division:
    let dividend = inputs[0].as_f64().ok_or("Could not get dividend")?;
    let divisor = inputs[1].as_f64().ok_or("Could not get divisor")?;
    json!(dividend / divisor)

Output that before was "6" is now "6.0"?
So, maybe before it was "snapping" to an integer and now it always prints as a float?

Is that change expected?

It's quite possible this is now the "correct" behaviour, and I can easily change tests to work with it....but

Wouldn't such a change merit a minor semver version number bump (not just patch/micro)

I would do a rust playground code snippet to show the change...but don't think I can control versions used there?

Is that change expected?

Yes: https://github.com/serde-rs/json/pull/919
That has broken some unit tests of mine as well as some different output :/
Not a huge deal but it was probably worth a 1.1 since many people did use the Display impl to output text.


WIP: [DSW-236] Email templates

As for programming, it is done now...
In the future, the following part will be refactored to propagate error and log it (DSW-205)
  let parts = rights [plainBody, htmlBody]
  if length parts == 0
    then return ()
    else sendEmail [email] subject parts

The templates themselves will be improved and consulted via chat with project team...


One model per file

tables/views are created with the name of the file (sans .sql)

I'm good to go on this. I deployed everything with the new version of dbt, ran several of the analyses, and inspected all files by hand. Looks pretty straightforward.
Please hold off on merging this until the dbt branch you're waiting on is ready to be merged as well. I think that this should be merged at the same time as that branch.
:+1:

@jthandy merging


os.path.append('.') is causing error on linux

(ldm2) bernard@DESKTOP-4M9DSE4:~/stable-diffusion-cli$ python3 scripts/dream.py
posix
* Initializing, be patient...

Traceback (most recent call last):
  File "scripts/dream.py", line 279, in <module>
    main()
  File "scripts/dream.py", line 39, in main
    os.path.append('.')
AttributeError: module 'posixpath' has no attribute 'append'

Commenting line 37 fix this issue. If this is a fix for windown then perhaps it should only be applied on windows system an not linux.

It's causing the same error in Windows, fixed the same way.

My fault for accepting a reasonable-looking pull request that looked without testing it. The contributor meant sys.path.append('.'), and I've just made a commit to fix it.


v2.0.1 + ember 1.13 regression

I believe the new version regressed 1.13.
https://github.com/kellyselden/ember-tree/issues/223
https://travis-ci.org/kellyselden/ember-tree/builds/258502962

cc @cibernox


Allow ConnectQuery to be aborted

Looks good mate :+1:

Looks good but I wonder if we should allow a specific execution to be cancelled too? Does Q not have cancelling functionality out of the box?

What do you mean by allow a "specific execution to be cancelled"? @AdamPD
A call to abortAll would cancel any pending HTTP requests.
The promises would not be fulfilled.
Do you think we should be rejecting?
The more I talk about it the more I realise you can't leave them un-fulfilled :smile:

Yeah, we should probably reject promise. You cannot cancel a QPromise though
Q docs:
in short, Q will not implement cancellation on promises

Yea I don't think we can leave them unfulfilled. I mean abortAll will abort all executions of a particular query, whereas that may not be the desired behaviour.
Also - are the queries immutable? So if you modify them consequently and then abort you don't abort previous queries.
I'd rather somehow cancel the promise itself rather than the query object.

Yeah, the only time abortAll will abort multiples is if you have multiple calls to execute without modifying the query. I feel that it likely is the intended behaviour.

How about passing in a cancellation token to execute() as an optional parameter.
client will can say. cancellationToken.cancel(), which then rejects the promise and aborts underlying request.

I feel that you can't have execute return anything other than a promise.
What @bholdt is suggesting is another alternative.
Which do we feel is better:
const query = connect.query("purchases")
    .select({ "totalPrice": { "sum": "price" } });

query.execute()
    .then(function(result) {
        // Handle the result
    }, function(error) {
      // Handle an error
    });

query.abort();

const cancelationToken = Connect.CancelationToken();

connect.query("purchases")
    .select({ "totalPrice": { "sum": "price" } });
    .execute(cancelationToken)
        .then(function(result) {
            // Handle the result
        }, function(error) {
            // Handle an error
        });

cancelationToken.cancel();

Ok. Changed to function name to abort, and rejecting promise when query is still running.

:+1:

+1

:+1:


User Profile

Pending City and Country Migrations

@mbernst Do you have list of cities and countries we can allow at this stage? In other case, we can also use https://developers.google.com/places/javascript/ to fetch all information related to address.

I agree, let's go for any standardized set of places. Google's set — maybe
even using their widgets — doesn't seem like a terrible idea.
On Thu, Feb 18, 2016 at 8:15 PM, Shirish Goyal<EMAIL_ADDRESS>wrote:

@mbernst https://github.com/mbernst Do you have list of cities and
countries we can allow at this stage? In other case, we can also use
https://developers.google.com/places/javascript/ to fetch all information
related to address.
—
Reply to this email directly or view it on GitHub
https://github.com/crowdresearch/crowdsource-platform/pull/666#issuecomment-186042945
.

Google's standard set looks good. Can you user their dataset without using their map visualisation? Or is the map something we want?

@thunderboltsid I am specifically referring to this demo : https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
But after more discussion, data migration makes more sense I think since we might be linking city and country at other places too in future.

@thunderboltsid @shirishgoyal how are we doing on this one?

Bad option: So I found a data set that is updated weekly, but it's a bad idea since the raw files are extremely large. ftp://ftp.nga.mil/pub2/gns_data/ this is posted to enable comparison of alternatives, and this is the worst.

For now, have integrated google places API to fill in address.
City / Country are not linked.

move view/edit profile into the More_Vert drop down

some of the drop downs are too wide e.g gender and ethnicity

could we have no defaults here?
otherwise lgtm, see comment


Entroducing CQC kit. A syndicate tactical melee combat dedicaded drip

The holy syndicate soldier

Why balance
Its funny. Mostly syndicates will use stunmeta or slipping meta, but not chad close combat. So this set of armor will help them
Breaking changes
I made DisarmBonus
You add bonus to thing and if you shove you get bonus to shove mainly gloves
but this shit for some reason doesnt work on gloves but if you add this to Urist and shove itll work
the more it goes to 0 the more % of succes will be
I also made disarming event so game should understand if disarmer has bonus or not  and then apply it in the end but....
I made new glasses (god help) You can toggle them but i dont know how to make that when you toggle lights sick .ogg will play but not standart flashlight.ogg
I made new suit
I made new belt
I made new gloves (god help me)
I made new helmet
I made new silenced boots
I made 3 new sound for this set
Changelog
I hope itll be good
TO DO

[ ] Cool sound after toggling lights
[ ] Change suit layers so goggles sprite will go above any other spirte (This might incourage player not to change their armor)
[ ] Make a full working BonusDisarming thing  The heart of set shove\disarming gambling, so players will try to disarm their enemies or running from them
[ ] Put it uplink
[ ] Polish i guess?

Summary by CodeRabbit
Release Notes
The Gorlex LLC and Waffle.CO diceded to make a sick syndicate drip that is bad against bullets but good againts blunt and etc

New Features

Introduced DisarmBonusComponent to enhance disarming mechanics.
Added new entities including:

ClothingBeltSyndieWest (compact chest rig).
ClothingEyesSyndieVisor (visor with unique effects).
ClothingHandsSyndieCombat (close quarters potholders).
ClothingSyndieLeatherMask (armored mask).
ClothingUniformJumpsuitSyndieass (grey jumpsuit).
ClothingShoesSyndieBoots (silenced tactical boots).

New sound collection for silenced footsteps.

Bug Fixes

Adjusted disarm chance calculations for improved gameplay.

Documentation

Added metadata files for new texture resources.

WHAIT WHAIT WHAIT
NO NO NO NO NO
WRONG repo???

Okey, i did allright time to clean all stuff above

Also check the checkfails.

im not a fan of the sprites, they are all too dark
also, make the bundle come in the syndicate backpack so you dont need the extra purchase for full move speed
please dont resprite the syndicate recruit jumpsuit, that one is for ship vs ship and i'd prefer it stays that way, make a whole new jumpsuit prototype instead

im not a fan of the sprites, they are all too dark
also, make the bundle come in the syndicate backpack so you dont need the extra purchase for full move speed
please dont resprite the syndicate recruit jumpsuit, that one is for ship vs ship and i'd prefer it stays that way, make a whole new jumpsuit prototype instead
1 Yeah i agree, i made it a little more colourfull

.  you can dm or just write in generall Im bloodyspy on discord.
2 Yeah i guess, but ill try to check is if it possible to put all bundle into vest, because its all "compact" styled
3 I didnt resprite it, like i did but then i made syndidrip.rsi

Itll come with a bundle or ill ad it as pointless item\emmagged clothesmate item

im not a fan of the sprites, they are all too dark
also, make the bundle come in the syndicate backpack so you dont need the extra purchase for full move speed
please dont resprite the syndicate recruit jumpsuit, that one is for ship vs ship and i'd prefer it stays that way, make a whole new jumpsuit prototype instead
1 Yeah i agree, i made it a little more colourfull

.  you can dm or just write in generall Im bloodyspy on discord.
2 Yeah i guess, but ill try to check is if it possible to put all bundle into vest, because its all "compact" styled
3 I didnt resprite it, like i did but then i made syndidrip.rsi

Itll come with a bundle or ill ad it as pointless item\emmagged clothesmate item

yeah that looks way better

Since new stamina meta got merged that is pretty good for my PR
The bad side is that i wont be able physically continue any of my ideas for a year.
 BTW, i made odd sounds so dont be afraid about license. Wait me for next year and ill make syndicate look grate again
- With honor, BloodySpy


[Feature Request] Ability to create, list, update and delete pipeline environments

Command
Description

az pipelines environment create
Create an environment

az pipelines environment list
Show all environments in a project

az pipelines environment show
Show details of an environment

az pipelines environment delete
Delete an environment

az pipelines environment resource add
Add a resource to an environment

az pipelines environment resource list
List all the resources in an environment

az pipelines environment resource delete
Delete a resource in an environment

Any ETA for this?  It would be very useful for us to be able to read environment metadata (even if it was just in the form of hashtags in the description) and use that to influence the terraforming that's happening in our branch yaml pipeline.

Environments concept is still undergoing changes due to which they haven't made the APIs public yet. Until the APIs for environments are released we cannot support these commands or comment on an ETA for it.

Can't you release an preview just like with AKS preview features that were associated by an Azure-Cli preview?

@BoSoeborgPetersen Preview features still require the API to be exposed publically even if it is released in preview mode. So we will have to wait for the API release before we can introduce these commands.
If you still need to automate something related.. you can checkout the API being called from the UI and use CLI az devops invoke command to send the same request from CLI.

@atbagga Okay, fair enough, thanks for the info.
I am not using Azure DevOps Server, so how would you suggest that I "checkout the API being called from the UI"?

@BoSoeborgPetersen Networks tab in the browser developer tools windows.
e.g. here is a screenshot from chrome..

@atbagga Thank you very much.
I figured out that to perform CRUD operations on environments using 'az devops invoke' either:
az devops invoke --area distributedtask --resource environments --route-parameters project=<project> [enviromentId=<id>] --http-method <CRUD> --api-version 6.0-preview -o json --in-file <config_file_path>.json
or:
az devops invoke --area environments --resource environments --route-parameters project=<project> [enviromentId=<id>] --http-method <CRUD> --api-version 6.0-preview -o json --in-file <config_file_path>.json
can be used, as specified by the templates returned from 'az devops invoke':
{
    "area": "distributedtask",
    "id": "8572b1fc-2482-47fa-8f74-7e3ed53ee54b",
    "maxVersion": 6.0,
    "minVersion": 5.0,
    "releasedVersion": "0.0",
    "resourceName": "environments",
    "resourceVersion": 1,
    "routeTemplate": "{project}/_apis/{area}/{resource}/{environmentId}"
}

or:
{
    "area": "environments",
    "id": "d86b72de-d240-4d6f-8d06-08c2d66b015d",
    "maxVersion": 6.0,
    "minVersion": 5.2,
    "releasedVersion": "0.0",
    "resourceName": "environments",
    "resourceVersion": 1,
    "routeTemplate": "{project}/_apis/pipelines/{resource}/{environmentId}"
}

Also to add Kubernetes resources to environments using 'az devops invoke' either:
az devops invoke --area distributedtask--resource kubernetes --route-parameters project=<project> environmentId=<environment_id> [resourceId=<id>] --http-method POST --api-version 6.0-preview --in-file <config_file_path> -o json
or:
az devops invoke --area environments --resource kubernetes --route-parameters project=<project> environmentId=<environment_id> [resourceId=<id>] --http-method POST --api-version 6.0-preview --in-file <config_file_path> -o json
can be used, as specified by the templates returned from 'az devops invoke':
{
    "area": "distributedtask",
    "id": "73fba52f-15ab-42b3-a538-ce67a9223a04",
    "maxVersion": 6.0,
    "minVersion": 5.0,
    "releasedVersion": "0.0",
    "resourceName": "kubernetes",
    "resourceVersion": 1,
    "routeTemplate": "{project}/_apis/{area}/environments/{environmentId}/providers/{resource}/{resourceId}"
}

or:
{
    "area": "environments",
    "id": "73fba52f-33ab-42b3-a538-ce67a9223b15",
    "maxVersion": 6.0,
    "minVersion": 5.2,
    "releasedVersion": "0.0",
    "resourceName": "kubernetes",
    "resourceVersion": 2,
    "routeTemplate": "{project}/_apis/pipelines/environments/{environmentId}/providers/{resource}/{resourceId}"
}

The only problem now is that I cannot figure out how to get a list of resources for an environment, so that I can use the ID's of the resources to delete and replace them with new ones?
I tried:
az devops invoke --area environments --resource kubernetes --route-parameters project=<project> environmentId=<environment_id> --http-method GET --api-version 6.0-preview -o json
but it is not supported without an resource ID.
I cannot find any relevant templates that seem to cover this either with 'DistributedTask' or 'Environment', as the area.

Would be useful if this could also include the ability to manipulate and list tags associated with pipeline environments as well.
I am currently using a number of VMs in an environment and use tags to target specific deployments to the correct machines (think 3 tier app sort of arrangement), I would like to be able to get a list of VMs that match a certain tag so that I can then use the Agent Name as a variable for other pipelines.

I would truly appreciate this as well.

Any update on this? This would be really helpful. Surely the environment API is set by now.

i'm able to get the list of kubernetes resources with curl, same should work with az rest i guess:
curl -u:<PAT> "https://<ORGANIZATION>/<PROJECT>/_apis/distributedtask/environments/<ENVIRONMENT_ID>?expands=resourceReferences&api-version=6.0-preview.1"

Any ETA for this? specifically the add/delete VMresources to a environments.

Related https://github.com/MicrosoftDocs/azure-devops-docs/issues/11921 @tl24. Until then our best bet is to utilize the REST API As mentioned above with the documentation starting here: https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/environments?view=azure-devops-rest-6.0.
A bit of a bummer because of the need to manage the PAT ourselves instead of allowing the Azure CLI to handle it...

Apologizes for double posting; but I have been digging on this more, our need was to understand who had access to Approve in the checks, this led me to this StackOverflow Post: https://stackoverflow.com/questions/61471634/add-remove-pipeline-checks-using-rest-api
The original comments seemed to indicate that this was not possible, however after a bit more digging I found @JtMotoX 's Repository which gave a semi decent work around. I have reproduced the contents of that StackOverflow Post here:
This is an older question but we had a similar need. There does not appear to be a direct API To query this, but this GitHub Project pointed us in the right direction:
# GET ENVIRONMENT CHECKS (stored under .fps.dataProviders.data['ms.vss-pipelinechecks.checks-data-provider'].checkConfigurationDataList)
GET https://dev.azure.com/{{organization}}/{{project}}/_environments/{{environment_id}}/checks?__rt=fps&__ver=2

As mentioned above under .fps.dataProviders.data['ms.vss-pipelinechecks.checks-data-provider'].checkConfigurationDataList the list of who is authorized is provided.
The officially documented APIs can tell you that there are checks in place; for example:
GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/checks/configurations?resourceType=environment&resourceId={id}

Can tell you that you have checks enabled (including an Approval check) but this isn't super useful as it does not give a list of who can Approve.
Note that you can get the list of environments (to get their resource ID) using this documented API:
GET https://dev.azure.com/{organization}/{project}/_apis/distributedtask/environments?api-version=7.1-preview.1


Disperse and inconsistent endpoints details

The endpoints section does not match with the endpoints listed at:
https://docs.microsoft.com/en-us/sccm/desktop-analytics/enable-data-sharing and
https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/configure-proxy-internet#enable-access-to-microsoft-defender-atp-service-urls-in-the-proxy-server
I would suggest to either consolidate all endpoints here and point DA/ATP/other documentation here, providing details of what service uses what endpoint and what for, or maybe better, just providing links here to specific products documentation.
Also, as the article focuses on diagnostics data, I would also suggest moving the "Functional" and "Settings" endpoints to https://docs.microsoft.com/en-us/windows/privacy/manage-windows-1903-endpoints and similar documentation.
Maybe something like this would work??
Endpoints
The Microsoft Data Management Service routes data back to our secure cloud storage. Only Microsoft personnel with a valid business justification are permitted access.
Solutions like Desktop Analytics or Microsoft Defender Advanced Threat Protection need Windows devices to reach diagnostics endpoints to enable organizations leverage solutions based on diagnostics data. These solutions leverage Windows components like the Connected User Experiences and Telemetry service, Windows Defender Advanced Threat Protection service, Windows Error Reporting, and Online Crash Analysis.
For a complete list of diagnostics endpoints leveraged by Desktop Analytics, see here.
For a complete list of diagnostics endpoints leveraged by Microsoft Defender Advanced Threat Protection, see here.
The following table defines additional diagnostics endpoints not covered by services in the links above:

Service
Endpoint

OneDrive app for Windows 10
https://vortex.data.microsoft.com/collect/v1

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

ID: 893c364e-fcf4-8667-17d7-f9a3ec71e1a9
Version Independent ID: f98f8870-d594-f5df-f6b6-44c9806db7d8
Content: Configure Windows diagnostic data in your organization (Windows 10)
Content Source: windows/privacy/configure-windows-diagnostic-data-in-your-organization.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@juanandmsft  - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

Added information on PR #5475

@juanandmsft - From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/c605e338e41ba54d002b6a184906f37aecb5e386.
Thank you for your contribution to make the docs better! Much appreciated!


⚠ Turnos 24x7 has degraded performance

In 1ae33e5, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1011 ms

Resolved: Turnos 24x7 performance has improved in a696da5.


Make sure to run Homebrew as a non-root user only

Fixes https://github.com/microsoft/vscode-dev-containers/issues/1492

Thanks @andreiborisov!
@joshspicer it looks like some tests didn't pass this PR - is that a concern?

I need to look into this again, it seems like there is an issue upstream that need to be fixed first

Thanks, @andreiborisov!

@Michaelvsk we migrated Homebrew installation script on the Devcontainer Features spec. Please, use the new feature: https://github.com/meaningful-ooo/devcontainer-features/tree/main/src/homebrew


feat: evalperf

run following command to generate stats and save into results/evalperf/COMBINED-RESULTS.json
python results/evalperf/stats.py

[ ] winrate stats
[ ] heatmap of winrate
[ ] docs @ganler


ipscan: 3.7.3 -> 3.7.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/angryip/ipscan/releases.
meta.description for ipscan is: "Fast and friendly network scanner"
meta.homepage for ipscan is: "https://angryip.org"
meta.changelog for ipscan is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

Warning: no invocation of /nix/store/jm5z8avf0qn7mcgzjzr8gbmpd0lcqhqk-ipscan-3.7.6/bin/ipscan had a zero exit code or showed the expected version

0 of 1 passed binary check by having a zero exit code.

0 of 1 passed binary check by having the new version present in output.

found 3.7.6 with grep in /nix/store/jm5z8avf0qn7mcgzjzr8gbmpd0lcqhqk-ipscan-3.7.6

found 3.7.6 in filename of file in /nix/store/jm5z8avf0qn7mcgzjzr8gbmpd0lcqhqk-ipscan-3.7.6

directory tree listing: https://gist.github.com/648e93eaac04acfd7096013d92f71648

du listing: https://gist.github.com/ce9261e4152adcca58ee3daa90ed2b80

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

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
ipscan

Instructions to test this update (click to expand)

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

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

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

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

1 package built:

ipscan

Maintainer pings
cc @kylesferrazza for testing.

Result of nixpkgs-review pr 120954 at 273d270e run on x86_64-linux 1

1 package built successfully:

ipscan

2 suggestions:

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/tools/security/ipscan/default.nix:37:5:
   |
37 |     license = licenses.gpl2;
   |     ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/tools/security/ipscan/default.nix:18:3:
   |
18 |   installPhase = ''
   |   ^

Unable to test:
***WARNING: GTK+ version too new (major mismatch)
***WARNING: SWT requires GTK 2.18.0
***WARNING: Detected: 2.24.32
(java:856158): GLib-GObject-WARNING **: 23:41:07.535: specified class size for type 'SwtTextRenderer' is smaller than the parent type's 'GtkCellRendererText' class size

(java:856158): GLib-GObject-WARNING **: 23:41:07.535: specified class size for type 'SwtPixbufRenderer' is smaller than the parent type's 'GtkCellRendererPixbuf' class size

(java:856158): GLib-GObject-WARNING **: 23:41:07.535: specified class size for type 'SwtToggleRenderer' is smaller than the parent type's 'GtkCellRendererToggle' class size

(Angry IP Scanner:856158): GLib-GObject-WARNING **: 23:41:07.536: cannot register existing type 'GtkWidget'

(Angry IP Scanner:856158): GLib-GObject-CRITICAL **: 23:41:07.536: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(Angry IP Scanner:856158): GLib-GObject-WARNING **: 23:41:07.536: cannot register existing type 'GtkBuildable'

(Angry IP Scanner:856158): GLib-GObject-CRITICAL **: 23:41:07.536: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed

(Angry IP Scanner:856158): GLib-CRITICAL **: 23:41:07.536: g_once_init_leave: assertion 'result != 0' failed

(Angry IP Scanner:856158): GLib-GObject-CRITICAL **: 23:41:07.536: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(Angry IP Scanner:856158): Gtk-CRITICAL **: 23:41:07.536: IA__gtk_widget_get_window: assertion 'GTK_IS_WIDGET (widget)' failed

(Angry IP Scanner:856158): Gdk-WARNING **: 23:41:07.536: gdkdrawable-x11.c:952 drawable is not a pixmap or window
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2dd6e5f97c, pid=856158, tid=856159
#
# JRE version: OpenJDK Runtime Environment (16.0+36) (build 16+36-nixos)
# Java VM: OpenJDK 64-Bit Server VM (16+36-nixos, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libX11.so.6+0x3097c]  XInternAtom+0x3c
#
# Core dump will be written. Default location: Core dumps may be processed with "/nix/store/ixpwj1cxl4rp2qbyn0s2h4k5zj731q7c-systemd-247.6/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/tom/.cache/nixpkgs-review/pr-120954/core.856158)
#
# An error report file with more information is saved as:
# /home/tom/.cache/nixpkgs-review/pr-120954/hs_err_pid856158.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

I get the same error as @tomberek


Minify codegen / Optimize Types / True Custom Scalar Support / Pre-Lazify Ops (WIP)

This PR contains work in preparation for the upcoming $lazy feature which lazifies root operations (queries / mutations) plus additional new features which we implemented along the way.
Type optimization & output size reduction
The generated types and the code is optimized, so that repetitive code and types are removed by condensing them into generic types and a factory function. Each selector function was the same with different type arguments.
This results in a 25% reduction in output size!
True Custom Scalar Support
With the above described type optimization it's also now possible to extend the built-in GQL-Scalar-To-TS-Type map!
Therefore it's now possible to have completely custom scalar types:
You just need to extend the interface ScalarTypeMapWithCustom with your custom mappings.
You can even override existing types and it will reflect in your resulting types. Example:
declare module "./unions6" {
    interface ScalarTypeMapWithCustom {
        String: "MY CUSTOM STRING";
    }
}

Note that the type of const titles = op1.b.map((b) => b.title); is now correctly inferred as
const titles: "MY CUSTOM STRING"[]

You can put your own custom scalar name in interface ScalarTypeMapWithCustom
interface ScalarTypeMapWithCustom {
    YOUR_TYPE: InstanceType<typeof YourTypeClass>
}

and configure the client with a custom scalar parse function, so that the serialized string from the server response will be deserialized upon accessing the value (see https://github.com/liontariai/samarium/pull/3#issue-2378129075):
import unions from "./unions6";

declare module "./unions6" {
    interface ScalarTypeMapWithCustom {
        YOUR_TYPE: InstanceType<typeof YourTypeClass>
    }
}

unions.init({
    scalars: {
        YOUR_TYPE: (v: string) => new YourTypeClass(v),
    },
});

'Short-cutting' operations: allow object-spreading operations in the root function
Until now, it was necessary to always define an operations with a name, to execute a query.
For example you always have to do the following:
import unions from "./unions6";

const { op1 } = await unions((op) => ({
    op1: op.query((s) => ({
        books: s.books((s) => ({
            title: s.title,
        })),
        articles: s.articles((s) => ({
            title: s.title,
        })),
    })),
}));

const bookTitles = op1.books.map((b) => b.title);
const articleTitles = op1.articles.map((a) => a.title);

Even though you probably just wanted to quickly query the Query.books and Query.articles field, you needed to define op1 as operation. Also your books & articles query will be sent in one operation this way.
Now, you can save some time while typing and skip op1 by spreading it:
import unions from "./unions6";

const { books, articles } = await unions((op) => ({
    ...op.query((s) => ({
        books: s.books((s) => ({
            title: s.title,
        })),
        articles: s.articles((s) => ({
            title: s.title,
        })),
    })),
}));

const bookTitles = books.map((b) => b.title);
const articleTitles = articles.map((a) => a.title);

or even skip the await unions((op) => ({ ... })) part and do await unions((op) => op.query(....)).
This significantly improves the developer experience when writing queries, as it's even more natural to write and just feels like you're just using the data from the api, without thinking about constructing a query.

Lazify Operations with magic $lazy property (from https://github.com/liontariai/samarium/pull/10)

This PR implements the Lazy Queries and Lazy Mutations features.
Use cases / requirements
Using the generated client to execute queries and mutations is nice and doing so always in direct manner may be useful and sufficient in many cases but GraphQL - especially in a frontend context - thrives by defining queries and mutations once and reusing them all over your application.
In Samarium's context this would mean that the defined operations need to defer their executions and instead of having the returned result from the server with the appropriate type instantly after await, the returned values from the client root function need to be async functions themselves which on execution will send the operation to the server. Also one would expect to be able to pass query/mutation arguments to the function.
Implementation
To make this as easy as possible for the user, a magic $lazy property is added to the Query/Mutation/Subscription Operation Type fields. This way you can define your operation as usual and in the end decide whether it should be a lazy operation or not.
Full example:
import unions from "./unions6";

const { all, books } = await unions((op) =>
    op.query((s) => ({
        all: s.search({ title: "default title" })(({ $on }) => ({
            ...$on.Book((s) => ({
                ...s.$scalars(),
            })),
            ...$on.Article((s) => ({
                ...s.$scalars(),
                dice: s.rollDice({ numDice: 3, numSides: 6 }),
            })),
        })).$lazy, // <--- return the $lazy prop
        books: s.books((s) => ({
            title: s.title,
        })).$lazy, // <--- return the $lazy prop
    })),
);

const defaultSearches = await all({});
console.log(defaultSearches.map((a) => a.title));

const defaultBooks = await books();
console.log(defaultBooks.map((a) => a.title));

const testSearches = await all({ title: "test" });
console.log(testSearches.map((a) => a.title));

const test2Searches = await all({ title: "221234" });
console.log(test2Searches.map((a) => a.title));

Explanation
Each field from the Query root type has the $lazy property which is accessed after defining your selection. You can pass arguments to your selection and these will serve as default arguments later on.
Now, instead of being executed and sent to the server, an async function is returned for every lazy operation.
These functions can now be called and awaited later in the code and arguments passed to it will be merged with the given default arguments in the original definition of the operation.
That's it. Your operations are now async typescript functions you can use anywhere in your code! 🎉
You can also mix instant and lazy operations!

This PR removes limitations (https://github.com/liontariai/samarium/pull/3#issuecomment-2200555676) in the Custom Scalar feature and thus provides a fully functional implementation of what's discussed at Apollo Client https://github.com/apollographql/apollo-feature-requests/issues/368 .


Stm32 cube updates pr75

west.yml: update revision  modules/hal/stm32/hal_stm32
Point to PR 75 of modules/hal/stm32/hal_stm32
stm32cube: update stm32f0 to version V1.11.1
stm32cube: update stm32f1 to version V1.8.2
stm32cube: update stm32f2 to version V1.9.1
stm32cube: update stm32f3 to version V1.11.1
stm32cube: update stm32f4 to version V1.25.1
stm32cube: update stm32f7 to version V1.16.0
stm32cube: update stm32g4 to version V1.3.0
stm32cube: update stm32h7 to version V1.8.0
stm32cube: update stm32l0 to version V1.11.3
stm32cube: update stm32l4 to version V1.16.0
stm32cube: update stm32l5 to version V1.3.1
stm32cube: update stm32wb to version V1.9.0

Delete switches USE_STM32_HAL_RCC and USE_STM32_HAL_RCC_EX
With STM32Cube updates https://github.com/zephyrproject-rtos/hal_stm32/pull/75
'..._hal_rcc.c' and '..._hal_rcc_ex.c' are now systematically
compiled, due to more and more dependencies from HAL IP on rcc.
So USE_STM32_HAL_RCC and USE_STM32_HAL_RCC_EX becomes useless.

Tested on STM32 testbench, no regression found.

Need few days to test it on my HW, since I do not have access to it.

@galak I updates west.yml to point to merged commit, but it is not the last commit of hal_stm32 master branch.
So be careful if merged as is it may revert other PRs

@galak I updates west.yml to point to merged commit, but it is not the last commit of hal_stm32 master branch.
So be careful if merged as is it may revert other PRs

@erwango any reason not to point to the HEAD of hal_stm32?  I know we'll pick up DTS pinmux changes, but feels like those are pretty safe at this point.

@erwango any reason not to point to the HEAD of hal_stm32? I know we'll pick up DTS pinmux changes, but feels like those are pretty safe at this point.

Will be easier indeed. Fine with me.

@erwango any reason not to point to the HEAD of hal_stm32? I know we'll pick up DTS pinmux changes, but feels like those are pretty safe at this point.

Will be easier indeed. Fine with me.

Done


clean up prototypes

maybe we leave them in for now, but centroid_sizes, circle_map_total, circle_map_thermoelectric, circle_map_publicsupply, circle_map_irrigation, and circle_map_industrial are all viz items that don't make it into the dynamic viz and use different methods for preparing both spatial and water use data.
ultimately i'd like to see us either streamline the methods (if we find another use for these prototypes) or delete them.

Yes, I think they should be removed and I always feel a bit odd about where the prototyping stuff fits into the viz repo. Should it be separate and included in viz-scratch in the future? Is that too decoupled or redundant from the data fetching/processing steps?

Not sure - seemed like the right place at the time, but maybe the cleanup effort would have been smaller if we'd kept it separate in viz-scratch.

Since you're good with removing, and I'm hitting errors in trying to get them to work again with some recent spatial data changes. I'm going to remove them right now.

closed by #75


[iOS-Wallet-App] Dont accept the generated TAN

Describe the bug
a new generated certificate (VAC, Test) from the web page cannot store in the App
because the tan are not accepted
Expected behaviour
after accepting the TAN, the certificate is claimed
Steps to reproduce the issue

Create a certificate in the web app
scan the qr-code with the wallet app
click save
enter the tan whis is shown at the web page

Technical details

iPhone 7, IOS 15.3.1
WalletApp 1.3.3 (4)

fixed with
DGCA Wallet
1.3.3 (5)
for iOS

retest failed iOS Wallet 1.3.3(7)  No new TAN is shown for claimed certificates. I.e., once a certifificate is claimed with the original TAN, there is no new TAN generated and therefore the Code cannot be claimed again.

Indeed, fixed

I deleted my previous comment because it was in the wrong ticket. This one must remain closed.


Added dotAll flag

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis<EMAIL_ADDRESS>

Please rebase after #3979.

@dbatyai  @rerobika  thank you for the review! i updated  the pull request