GSoC 2022 Idea: CloudStack OAuth2 Plugin

Background
Apache CloudStack currently support native, LDAP and SAML based authentication. The proposed idea is to write a new OAuth2 plugin which is UI-first and can perform Single-Sign-On (SSO) with 3-party identity providers such as Google, Facebook, Github etc and allows admins to manage the users/accounts.

Proposed Tasks

Get started on basic CloudStack codebase and development (building and running CloudStack)
Setup dev/test environment to test/develop authentication plugin w/OAuth2
R&D - OAuth2 protocol and libraries that may be integrated with CloudStack
Implement configuration: Global setting/options to enable/disable this plugin, specify the 3rd party providers (such as Google, Fb, Github etc) in both UI/backend
Implement authentication plugin and mechanism
Write tests and documentation, send pull request (with video/gif to demonstrate the feature)

Relevant Skills

Java
Javascript/Vue
OAuth2

Difficulty
Medium
Potential Mentors
Nicolas Vazquez<EMAIL_ADDRESS>Rohit Yadav<EMAIL_ADDRESS>Example and references
https://oauth.net/code/java/
https://spring.io/guides/tutorials/spring-boot-oauth2/
How to CloudStack Auth plugin: https://cwiki.apache.org/confluence/display/CLOUDSTACK/SAML+2.0+Plugin

Hello, I'm a master's student at Fudan University, China. I'm interested in this project and I'd like to apply it for GSoC 2021. Is there any guidance or suggestions for me? Thank you!

Hi @LeBW thanks for your interest.
I would advise that you read the community GSoC guidelines (https://community.apache.org/gsoc.html), join the dev mailing list (http://cloudstack.apache.org/mailing-lists.html) to discuss your GSoC idea/proposal/application, and start drafting your application (for example https://google.github.io/gsocguides/student/proposal-example-1). With your proposed mentor (see email above), start an early discussion with them and you can ask them to review your application draft (for example, compose your draft and share with a Google doc).
You can refer to the CloudStack course to help you draft your application and learn how to build something in CloudStack https://github.com/shapeblue/hackerbook

@LeBW hi, thanks for participating! Let us know if you need help with your application

Hi @LeBW if you are still interested in this project please submit your application by tomorrow

Hi @LeBW if you are still interested in this project please submit your application by tomorrow

I'm sorry for the late reply. I have drafted my proposal and sent it to your email. Hope to receive your suggestions :).
Thanks!

Thanks @LeBW, I have recieved your draft proposal over email and added some comments. Please address them and submit your application through the GSOC portal https://summerofcode.withgoogle.com/ by Tuesday 13th 18:00 UTC (which is the deadline). My timezone is UTC-3, will be online if you need more assistance or ping @rhtyd who's timezone is closest to yours if I'm still not available

@nvazquez , @rohityadavcloud I wanted to check if this feature is still open , if yes I would like to contribute to it.

Yes this is still open @khamarshaikh

@rohityadavcloud , I am interested to work on it, is there any standard process to get the issue assigned ? Also this year GSOC is open for all ( including working professionals) , I would like to begin and start contributing to the community.

@borisstoyanov can you suggest/advise potential student @khamarshaikh

@borisstoyanov @rohityadavcloud  I am trying to setup the development environment on mac OS , is there any documentation for it ? Currently I see only for CentOS

Try https://github.com/shapeblue/hackerbook @khamarshaikh

@rohityadavcloud @nvazquez  Hi Guys, the GSoC 2022 proposal acceptance begins in April officially. Since, I am interested in working on this issue, can I create and a send a proposal for review now instead instead of waiting till April ?

Hi @Damans227, it's great to hear you have interest! You can start creating a reviewing the proposal and you can get in touch with community, mentor etc. Please be advised that the mentor could help you out, by means of good will, but the application and review of your proposal needs to go through the official process and timeline.

Hi @Damans227, it's great to hear you have interest! You can start creating a reviewing the proposal and you can get in touch with community, mentor etc. Please be advised that the mentor could help you out, by means of good will, but the application and review of your proposal needs to go through the official process and timeline.

Understood, thanks for replying.

@rohityadavcloud @nvazquez Just an FYI. I have shared a draft design document for this issue and am awaiting your feedback. Thanks!

Hi folks, I'm interested in this idea and want to contribute to this project in gsoc being an open source beginner.

As far as I understand, users have to be authorized/imported beforehand by an admin. If this is the case, I figured that OpenID connect (authentication protocol built on top of Oauth) has a state parameter which can connect partner IdPs (from LDAP or SAML) with OpenID providers such as Google to provide authentication.

I also have a few questions:

What if someone tries to sign in who is not yet authorized from the admin (new user). Should the new user be granted access at all or set their role as a Read Only User or some different role?
What user data apart from: name, email, profile picture should be collected when the user authorizes access for cloudstack.

Hi @neogismm for the first stage we can assume that all users should be able to log in to CloudStack and are authorized. The role could be set as User (existing CloudStack role). About the second question, important fields should be username (which to try registering the user on CloudStack), first name, last name and email. The profile picture could be treated as a nice to have IMO

Hi @khamarshaikh @Damans227 @neogismm - I would like to remind you that the application starts on 4th April and closes 19th April. If you are still interested in this project, please submit your proposal within that timeframe

Hi @khamarshaikh @Damans227 @neogismm - I would like to remind you that the application starts on 4th April and closes 19th April. If you are still interested in this project, please submit your proposal within that timeframe

Thanks for the reminder, @nvazquez I am eagerly waiting for April 4th.

@nvazquez @rohityadavcloud @borisstoyanov Hi Guys, I hope you are doing well. I have submitted a project proposal for this issue today. PTAL when you get a chance. Thanks!

Thanks @Damans227, we'll have someone to look it up and get back to you if needed.

@rohityadavcloud @nvazquez @borisstoyanov hi mentors, I've submitted my gsoc proposal. I've also emailed the Google docs link. Hope to hear from you soon.
Thanks.

Closing the issue tracking, it seem there's a JIRA ticket too.
I see activity on PR https://github.com/apache/cloudstack/pull/6524


Avoid PHP 7.1 to print warnings/errors in response

After the last bump to PHP 7.* looks like the default is to throw errors and warnings on the screen even with WP_DEBUG set to false. This PR aims to fix it.

There's a php.ini file under /support/. Maybe some of those changes should be made there instead of in wp-config.php.
I haven't seen the issue for myself yet, but is it happening on the Vagrant and Heroku both? I'm also not sure if that php.ini file is utilized on both Heroku and Vagrant platforms. I'm curious about that.

@ryanburnette thanks for the insights. I've noticed that on a couple of deployments on Heroku right after the last version updates. I don't actually use Vagrant so I'm not sure if that was affected as well and I am not sure this php.ini is used by Heroku either. I can definitely change the PR by moving the set_ini's there if you find that is the right place to go.

Hi @xyu !
After updating several WPs on heroku, one of them got lots of Warnings printing very verbose on the screen... I was able to quickly resolve by applying this PR as is.
Would that be a possibility that we can use this PR to become a fix and avoid debugging on production sites?
Thanks again!

Hi @fagiani sorry for the extreme late in responses here, are you still getting those warnings now that Heroku's build pack is up to 7.2.7?

#162 should fix this.


Where can i find docs, haw configure bare-metal nodes?

qveensi yesterday
@qveensi have you tried the ccm from Syself? https://github.com/syself/hetzner-cloud-controller-manager
I picked up their solution, but I still did not find how to add iron nodes to the cluster, ccm still looks for nodes in hcloud, not robots, and there are no instructions on how to add nodes.
i used chart syself/ccm-hetzner with all the necessary keys in secret, including the login/password for robots.
logs from ccm:
I0907 09:23:52.146790       1 event.go:294] "Event occurred" object="k8s-node-2" fieldPath="" kind="Node" apiVersion="v1" type="Normal" reason="RemovingNode" message="Node k8s-node-2 event: Removing Node k8s-node-2 from Controller"
W0907 09:24:10.109757       1 actual_state_of_world.go:541] Failed to update statusUpdateNeeded field in actual state of world: Failed to set statusUpdateNeeded to needed true, because nodeName="k8s-node-2" does not exist
I0907 09:24:10.124833       1 range_allocator.go:367] Set node k8s-node-2 PodCIDR to [<IP_ADDRESS>/24]
I0907 09:24:12.150695       1 event.go:294] "Event occurred" object="k8s-node-2" fieldPath="" kind="Node" apiVersion="v1" type="Normal" reason="RegisteredNode" message="Node k8s-node-2 event: Registered Node k8s-node-2 in Controller"
W0907 09:24:19.007274       1 topologycache.go:199] Can't get CPU or zone information for k8s-node-2 node
W0907 09:24:46.685193       1 topologycache.go:199] Can't get CPU or zone information for k8s-node-2 node

and after append bare-metal nodes in my cluster, cluster-autoscaler not working yes:
E0907 10:19:22.011063       1 static_autoscaler.go:354] Failed to get node infos for groups: failed to check if server  exists error: failed to get servers for node k8s-node-2 error: server not found

maybe i can somehow set it to ignore bare-metal nodes?
I setup cluster over kubeadm with official docs: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

@qveensi I hope you where able to get it running. I close the issue, please ask again if you have issues.


Set defaults for Nested Resource

I'm not sure how this would work, but it would be very cool to be able to set a default value for a Nested Resource, especially those that are suppressible lookups.
For example, see template: pcc:bf2:PlayingSpeed
Playing Speed requires its own template because we need to set the rdf:type to bf:PlayingSpeed, which is a subclass of bf:SoundCharacteristic.
We use the same property bf:soundCharacteristic for all the Sound Characteristic subclasses, so the subClass is very important to include in our RDF.
Other bf:SoundCharacteristic subproperties would also require similiar templates.
If I am creating a template to catalog a specific type of media format (e.g. CD, LP), then the bf:soundCharacteristic properties would be the same for many of the Instances.
It would be nice to be able to set the bf:PlayingSpeed to "33 1/3 rpm" on a template for LPs.
Describe alternatives you've considered
The only alternative I can conceive is to create a separate Nested Resource template for each value (https://id.loc.gov/vocabulary/mplayspeed.html)
template 1 for bf:PlayingSpeed = 33 1/3 rpm
template 2 for bf:PlayingSpeed = 78 rpm
template 3 for bf:PlayingSpeed = 1.4 m/s
template 4 for bf:PlayingSpeed = 7 1/2 ips
etc.
Thanks so much.
Kevin

Sorry I didn't answer this before but Nancy's suggestion to have the default set by an individual inspired another suggestion:
You could create your Sound Recording template with Sound Characteristic subtemplate, open the Sound Recording template for cataloging, add all default values that are appropriate say for an LP, and then save this "partially cataloged record".
Then, instruct catalogers who are cataloged an LP to copy your "partially cataloged record" as a way to start cataloging an LP. That way the default values will be there.
Also, you could save this "partially cataloged record" into a Group with a limited set of members so that no one can mess with your defaults.
And, if you give this Sound Recording template an rdfs label field and fill it in with something descriptive like "Default record for LPs", catalogers could find the "Default record" in Search.
Related suggestion:
I'm not sure if you are planning to create a subtemplate for every bf:SoundCharacteristic subclass? but if so, another way to approach it would be to create a generic bf:SoundCharacteristic template that has two fields: (1) is the field where the cataloger will type the value, like 78 rpm. (2) is the field where the cataloger will say what type (subclass) of bf:SoundCharacteristic this value is.
Then, in your Sound Recording template, you nest the generic Sound Characteristic template and make it repeatable. Cataloger creates however many repetitions needed for each Sound Characteristic they need to catalog. Here's an example (on DEV) of an Instance with a nested repeatable Sound Characteristic template (there are no other fields): https://development.sinopia.io/editor/rt5

Michelle, that is an interesting idea. We will need to try it out.
@kevkishi we need to talk about pcc templates vs MLA templates vs Stanford templates & some of the conceptualizing between them

Closing this since there's a workaround


Blocked time on calendar is not syncing with Bookings

There are appointments that already exist on Outlook. I have the staff set so that blocked time prevents booking over it. I have the time zone set correctly. Why are appointments being allowed during the blocked time?

@lucentraenna Thank you for your feedback. This looks more like a technical issue and I'd recommend you contact the Microsoft support team via the need help option on the admin center.
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @lucentraenna Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. You can contact Microsoft support via the need help section on the admin center. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


SkyModel.get_MIGHTEE_Sky() gives no warning and is double-checked on correctness

While checking for the distribution of frequencies, I looked at GLEAM and MIGHTEE. They both have the 76e6 frequency hard-coded:
survey = GLEAMSurveyDownloadObject()
path = survey.get()
gleam = SkyModel.get_fits_catalog(path)
df_gleam = gleam.to_pandas()
ref_freq = 76e6
df_gleam = df_gleam[~df_gleam["Fp076"].isna()]
ra, dec, fp = df_gleam["RAJ2000"], df_gleam["DEJ2000"], df_gleam["Fp076"]
sky_array = np.column_stack(
    (
        ra,
        dec,
        fp,
        np.zeros(ra.shape[0]),
        np.zeros(ra.shape[0]),
        np.zeros(ra.shape[0]),
        [ref_freq] * ra.shape[0],
    )
).astype("float64")

Same in mightee:
survey = MIGHTEESurveyDownloadObject()
path = survey.get()
mightee = SkyModel.get_fits_catalog(path)
df_mightee = mightee.to_pandas()
ref_freq = 76e6
ra, dec, fp = df_mightee["RA"], df_mightee["DEC"], df_mightee["NU_EFF"]
sky_array = np.column_stack(
    (
        ra,
        dec,
        fp,
        np.zeros(ra.shape[0]),
        np.zeros(ra.shape[0]),
        np.zeros(ra.shape[0]),
        [ref_freq] * ra.shape[0],
    )
).astype("float64")
sky = SkyModel(sky_array)

Gleam was fixed in #381

@kenfus close this issue?


Error of hosting the ord-interface locally

I was trying to host the server locally following the instructions listed in https://github.com/open-reaction-database/ord-interface/blob/main/README.md. I got some errors and I am guessing that's because of version changes. How can I fix this issue as I don't know the package/software versions for hosting the ord-interface? I was using WSL 2 in a Windows 10 machine. Thanks. @skearnes
error_info.txt

Thanks @FanwangM; this should be fixed by pinning the google-closure-compiler version (see #61)

Thanks for helping. It worked out. @skearnes


Using with libmpv

Hi.
I want use you plugin, but with libmpv in other apps.
I can't use mpv osd, I create my osd and display it from overlay-add command, in the future, generally output to a separate window.
I need to get info about the dlna servers and it's catalogs/files from libmpv, for example as playlist positions throught mpv_event_property MPV_OBSERVE_LIST_COUNT.
Can you do something like this?

I probably could store the list into shared-script-properties and then commands could be passed back through the same interface although this seems overly complicated.
What language are you using to write your code? It might be easier to just call mpvDLNA.py directly. If you are programming in python then you could literally just copy the code and reuse it.

I wanted to get by with minimal costs, but apparently I need to write my own code :)


Linking dynamic library as dependency on windows

One of project dependencies are dynamic library. Hunter build it and stored it in hunter root _Base/<ids..>/Install/bin directory. Compilation and linking of application is fine, but on runtime (for example running tests, debug on build location) library can't be found on windows, because windows do not look for dynamic libraries in this directory. How to handle this in general way?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34590235-linking-dynamic-library-as-dependency-on-windows?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github).

I have very little Windows experience but am curious about how this is done myself.  This discussion might be helpful:
http://cmake.3232098.n2.nabble.com/Windows-rpath-emulation-td7588537.html
It seems you have a couple options:

install the application and DLL in the same folder (bin)
add the DLL folder to your PATH variable
(perhaps preferably) you can use a manifest

Here are a few CMake + manifest links that might help:
https://gist.github.com/bjornblissing/6fc452fe7ec1fdfe3419
http://stackoverflow.com/questions/6335352/how-can-i-embed-a-specific-manifest-file-in-a-windows-dll-with-a-cmake-build

David provide a good answer here, closing.


[AIRFLOW-1760] Password authentication for experimental rest API

Modified the Password authentication to support HTTP Basic auth
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-1760

Description

[X] Here are some details about my PR, including screenshots of any UI changes:
Implemented HTTP Basic auth to allow Password authentication to be used to secure the experimental api.

Tests

[X] My PR adds the following unit tests OR does not need testing for this extremely good reason:
None, the current passwor auth in contrib does not have any tests either

Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #2730 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2730      +/-   ##
==========================================
+ Coverage   72.46%   72.48%   +0.01%
==========================================
  Files         154      154
  Lines       11836    11843       +7
==========================================
+ Hits         8577     8584       +7
  Misses       3259     3259

Impacted Files
Coverage Δ

airflow/logging_config.py
100% <0%> (ø)
:arrow_up:

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 2abead7...db4b1e0. Read the comment docs.

Tests please and please quash your commits.

@bolkedebruin I've added tests and squashed the commits

Thanks @NielsZeilemaker


cmd/compile: build -gcflags all="-N -l" nil pointer dereference

What version of Go are you using (go version)?
Reproduced on two developer machines, one Ubuntu and one Mac.

$ go version
go version go1.16.4 linux/amd64

$ go version
go version go1.16 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?

Archive.zip
I've attached as small of an example as I can get - the error seems to be extremely picky to whitespace - sometimes adding or removing a comment breaks things. I cannot reproduce the error with all code in one file.
The go:noinline are part of debugging what turned out to be a display glitch in GoLand's debugger, trying to create a minimal example in order to reproduce that bug, however now it just breaks the Go compiler.
The gcflags in the following example are what GoLand uses when producing an executable for debugging.
go build -gcflags all="-N -l" *.go
What did you expect to see?
Successful compilation
What did you see instead?

$ go build -gcflags all="-N -l" *.go
# command-line-arguments
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x16f6a7e]

goroutine 1 [running]:
cmd/compile/internal/types.(*Fields).Index(...)
	/usr/local/go/src/cmd/compile/internal/types/type.go:422
cmd/compile/internal/gc.typesByString.Less(0xc000878800, 0x2f, 0x2f, 0x1b, 0x26, 0x1)
	/usr/local/go/src/cmd/compile/internal/gc/reflect.go:1677 +0x19e
sort.doPivot(0x19bfd98, 0xc0005a10c8, 0x1b, 0x2f, 0xa, 0x1b)
	/usr/local/go/src/sort/sort.go:136 +0x4cd
sort.quickSort(0x19bfd98, 0xc0005a10c8, 0x1b, 0x2f, 0xa)
	/usr/local/go/src/sort/sort.go:203 +0x97
sort.Sort(0x19bfd98, 0xc0005a10c8)
	/usr/local/go/src/sort/sort.go:231 +0x76
cmd/compile/internal/gc.dumpsignats()
	/usr/local/go/src/cmd/compile/internal/gc/reflect.go:1548 +0x2b2
cmd/compile/internal/gc.dumpdata()
	/usr/local/go/src/cmd/compile/internal/gc/obj.go:124 +0x8a
cmd/compile/internal/gc.Main(0x18c4978)
	/usr/local/go/src/cmd/compile/internal/gc/main.go:803 +0x382b
main.main()
	/usr/local/go/src/cmd/compile/main.go:52 +0xb1

Looks like there is an interface type that the compiler thinks is an empty interface, but still has a method. That looks bad.
The type is an empty interface with a HookImpl method. Which doesn't make a whole lot of sense, as that's an embedded interface, not a method.
It's basically
type T interface {}
type U interface { T } // This type has a "method"

(But that by itself doesn't reproduce the problem - there's something more to it.)
I'm pretty sure this is not a problem at tip. Looks like @danscales fixed it (probably by accident) at https://go-review.googlesource.com/c/go/+/307209 The empty interface check changed from:
func (t *Type) IsEmptyInterface() bool {
	return t.IsInterface() && t.NumFields() == 0
}

to
func (t *Type) IsEmptyInterface() bool {
	return t.IsInterface() && t.AllMethods().Len() == 0
}

I think "fixed it" is probably too strong - maybe it is just papering over an invariant that should hold but doesn't.
@mdempsky

Shorter reproducible:
package main

type I interface {
	M() interface{}
}

type S1 struct{}

func (s *S1) M() interface{} {
	return nil
}

type EI interface{}

type S struct{}

func (S) M(as interface{ I }) {}

func f() interface{ EI } {
	return &S{}
}

func main() {
	var i interface{ I }
	(&S{}).M(i)
}

If I add this code to cmd/compile/internal/types/type.go:IsEmptyInterface
	if t.IsInterface() && t.NumFields() == 0 && t.Methods().Len() > 0 {
		panic("phantom method")
	}

Then all.bash almost passes. It dies with test/fixedbugs/bug419.go, which is very close to this, which also triggers that assertion:
type T interface{}
type U interface{ T }

@randall77 and still problem at tip

@cuonglm I'm not able to reproduce with your test case. Can you give more details on repro'ing?  I ran it in a loop for a while and didn't get any failures.
A bit more broadly, typecheck has certainly had issues with interface cycles in the past, and it sounds like this isn't a regression in behavior. If we can get a reliable repro, that would be great. But for the time being, I think it makes sense to leave this for Go 1.18 and revisit iff it's still an issue after switching to types2.

@mdempsky you have to use go build -gcflags="-N", or use go build -x for how to use go tool compile.
With -N, somehow interface { EI } in:
func f() interface{ EI } {
	return &S{}
}

isn't appeared in signatslice.

@cuonglm I see, thanks. I can repro with go build instead of go tool compile.


Istioctl analyzer: Clarify IST0110 and IST0111 for ambient

It's possible for Analyzer warnings for Sidecar resources (IST0110 and IST0111) to be thrown, even if such resources are created in ambient enabled namespaces that don't have any sidecar-based workloads to select.
Describe the feature request
Either suppress these analysis results when a Sidecar resource appears in an ambient-enabled namespace, or emit a new kind of warning about the use of Sidecar resources that select non-sidecar ambient workloads.
Describe alternatives you've considered
Affected product area (please put an X in all that apply)
[ x ] Ambient
[ x ] Docs
[ ] Dual Stack
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ x ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

We probably need to redesign the analyzers related to policies in the ambient environment. The Sidecar is a special case, and I think we also have errors with policies like telemetry in ambient namespaces.

I think having an analyze warning which informs users their sidecar resources have no impact in ambient makes sense. That likely also includes suppression of the other warnings/errors wrt sidecar resources as well so potentially this could be split out into 2 different issues.

@hanxiaop are you planning to create a design doc for this? I think this could be a beta blocker for UX, thoughts?

@hanxiaop are you planning to create a design doc for this? I think this could be a beta blocker for UX, thoughts?

The issue at https://github.com/istio/istio/issues/48273 which relates to other policies, has been resolved. I think what remains is dealing with the sidecar resource. I don’t think a design document is needed for the analyzer, and I am going to work on this issue this week.

I think having an analyze warning which informs users their sidecar resources have no impact in ambient makes sense. That likely also includes suppression of the other warnings/errors wrt sidecar resources as well so potentially this could be split out into 2 different issues.

This makes sense to me.


1649 multiple resources

According to #1649 I added the functionality to let events have multiple resources. The resourceId of an event can now also be an array of numbers, holding the related resourceIds.
I also modified the code to work with drag and drop for multi-resource events. There are 2 different modes:

CopyMode: By dragging an event into a different resource grid, the event gets assigned to both resourceIds
MoveMode: By dragging an event into a different resource grid, the event gets deleted from the source resource and added to the target resource.

Take a look in the dndresource.js example.
Fixes #1649

Is this something that will eventually be accepted?  I used this feature in one of my projects and everything seems to work as expected.

Hi! Is there anything further i can do to accept this feature? I would really appreciate to have this in the react big calendar

This feature is now available in the master branch, so everything done.

This feature is now available in the master branch, so everything done.

Is this actually in master? I don't see any of your changes in the master branch and the feature does not appear to be available.

Is this actually in master? I don't see any of your changes in the master branch and the feature does not appear to be available.

true! I was wrong! ... can someone merged it?

@jquense Is there something else needed to be done to get this Pull Request reviewed or committed?

Nice feature @georgebuciuman @mitsol  It's possible for the conflicts to be solved Could I help with that?

I corrected the error when resizing a multi-resource event. Should work now!

Should work now as expected, please check.

Just wondering if there are any updates on this?
This is a really useful feature.

Sorry guys, don't know why this is won't be merged 🤷♂

@mitsol Thanks for fixing the conflicts.
@jquense @georgebuciuman Just wondering if there's any timeline we can expect for this to get merged in? Or anything else that needs to be done first?

@mitsol The new docs site went live yesterday, and all examples were moved into storybook. If you can integrate changes from master, and move your examples into a story with documentation (plus any other documentation updates needed), I'll review everything for inclusion.

I'm looking into reconciling @mitsol 's changes with these updates.
May need a second pair of eyes on it though from someone more familiar with this package. Will link to the new PR once it's ready for review.

@jimhlad thanks a lot! Unfortunately i'm very busy at the moment, but everything I changed in the code I have already stated here:
https://github.com/jquense/react-big-calendar/issues/1649#issuecomment-669876579
So should not be a big deal to change! I recently had a look with the new storybook documentation, but it needs more effort for me to adapt my changes for this new documentation.

@mitsol No problem.
Just opened a PR here with the proposed changes: #2165  @cutterbl

Closing this PR in favor of #2165


Support previous "jsonify" behavior without pretty print JSON

The Problem
As of 0.50, the Allow "jsonify" to pretty print JSON issue, #5040, "breaks" existing code and provides no ability to retain the previous behavior. This issue proposes to solve this problem by either:

Reverting "jsonify" to previous behavior and introducing an optional means of pretty printing, or
At least, to please do the reverse and provide a means of specifying that "jsonify" (or other new function such as "jsonifyPlain") should use/support the previous behavior

Why?

There are existing Hugo projects which use Hugo to generate REST APIs serving JSON

e.g., here and see here

These Hugo projects tend to divide-and-conquer by implementing Hugo shortcodes and partials that piece-together multiple JSON segments at different indentation levels

Therefore, these projects do not expect, from past Hugo behavior, that indentation and formatting will be applied
They may prefer to minimize JSON size by eliminating much of the whitespace altogether
Or often they may have managed the indentation of multiple JSON segments/fragments as-needed in templates

The new behavior "breaks" the work that these projects have done to craft their output as desired and offers no way to retain previous Hugo behavior

OK, I'm sorry, I obviously didn't think before I merged this.
I'll revert it for now, and we can find a better solution (maybe add some kind of option) later.

Cool, many thanks @bep. I definitely like the pretty print option though. 👍

I'd love to help correct my patch that introduced pretty printing behaviour - maybe we should keep two  different options, one with and one without pretty printing?

Cool, many thanks @bep. I definitely like the pretty print option though

Yes, we'll do that. But in case I'm doing a 0.50.1 release, I thought the easiest was to revert.
I have reopened the original issue. I guess the alternatives are {{ "some json" | jsonify "pretty" }}  (or {{ "some json" | jsonify "  " }}  where you add indendation as an option) or {{ "some json" | jsonifyPretty }}. I suspect the "pretty" option is better, because then you can somehow configure it.


Beautiful site!

This is a test Really like kljadf

need to fix

:+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: : :+1: :+1: :+1: :

:heart:


Critical dependencies

I use physical engie Matter.js https://github.com/liabru/matter-js
i install it "npm install matter-js"
and require it require('matter-js')
i get error
bfdd3ae53ef99cd3b4c2.js:637 ./~/matter-js/build/matter.js
Critical dependencies:
56:88-96 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/matter-js/build/matter.js 56:88-96

The Matter library itself works. How can I disable this warning? What should I do so that it does not exist?
Here's what the file looks like:  https://github.com/liabru/matter-js/blob/master/build/matter.js
Perhaps this code causes errors?
var Vertices = _dereq_('../geometry/Vertices');
var Vector = _dereq_('../geometry/Vector');
var Sleeping = _dereq_('../core/Sleeping');
var Render = _dereq_('../render/Render');
var Common = _dereq_('../core/Common');
var Bounds = _dereq_('../geometry/Bounds');
var Axes = _dereq_('../geometry/Axes');

What should I do? I want to create a game, not repair a webpack. Help(

oh, i just use webpack 1+ , but in 2+ has no this error


W-16620689 Add md files for [LWC Auth Debug] LSP to reduce OOM issues story

What does this PR do?
What issues does this PR fix or reference?

fyi:  We don't need doc link for mobieOfflineFriendly.ts due to sf core vscode will render inline help when mouse over the component, in the help there's link pointing to external doc for the component. if the component is mobile friendly, there will be a tag there.


A11y_SQL Azure Data Studio_Extensions - install_Screen reader: After invoking "Install" button Screen Reader is not announcing "Installation" status whether it is installation is completed or not.

GitHub Tags:
#A11yMAS; #A11ySev2; #A11yTCS; #DesktopApp; #BM_SQL Azure Data Studio_Win32_Aug2023; #SQL Azure Data Studio; #WCAG4.1.3; #ScreenReader; #Win32; #Benchmark; #FTP; #STP;
Environment Details:
Application Name: Sql Azure Data studio
Version: 1.45.1
OS: Win11
Repro Steps:

Launch Azure Data Studio.
From the left menu, click the 'Extensions' icon to open the Extension Manager.
Choose any extension from the library.
Click the green 'Install' button to install.
Now verify that NVDA/Narrator is not announcing installation is completed or not.

Actual Results:
After invoking "Installation" button Screen Reader is not announcing "Installation" status whether it is installation is completed or not.
Note:
1.Similar issue observed with chrome+ NVDA.
2.Similar issue is also reproducing in the below scenario:
1. Issue: Extensions - Uninstall

Launch Azure Data Studio.
From the left menu, click the 'Extensions' icon to open the Extension Manager.
Choose any extension from the library.
Click the green 'Install' button to install. Blue 'Uninstall' button should now appear.
Click the blue 'Uninstall' button to uninstall.
Now verify that NVDA/Narrator is not announcing "Uninstallation" is completed or not.

Expected Results:
After invoking "Installation" button Screen Reader should announce "Installation" status whether it is installation is completed or not.
User Impact:
Screen reader user will not be able to know installation status whether it is installation is completed or not. If NVDA/Narrator not announcing.
Attachment:
install and uninstall (1).webm
Install and Uninstall NVDA .webm

@PadminiGariki this is the as the same first bug in https://github.com/microsoft/azuredatastudio/issues/24161 about the extension install status that has been fixed. The new bug that should have been opened is for the plus sign terminal button

@kisantia
This issue is fixed .After invoking "Plus" sign button Screen reader is announcing whether it is New Terminal created or not.
Attachments is added for reference.
Attachments:
similar issue.webm
NVDA similar issue (2).webm
This issue is not fixed .After invoking "Install" or "Uninstall" button Screen Reader is not announcing "Installation" or "Uninstallation" status whether it is (installed/uninstallation) completed or not. This is still repro.
Attachments is added for reference.
Attachments:
https://github.com/microsoft/azuredatastudio/assets/142479541/b791bf0e-6680-4d93-a7bf-200e5bbe051f
Narrator issue not fixed.webm

@PadminiGariki please install the latest insiders build for testing this. The gear icon in the bottom left of the videos in your post has a "1" next to it, which means there is an update available.
In the latest insiders build, the installation completion is announced, as well as uninstalling:

@kisantia
verified the bug in this environment Latest insiders build.
Here issue is partially fixed.
note issue is partially fixed but main issue is fixed. So, we create new bug for that note issue. hence the closed this bug.
for reference, please find the attachment.
#Closed; #Regressed:10-10-23;
Attachments:
Uninstalled not fixed Narrator.webm
Uninstalled not fixed NVDA.webm
installation Narrator fixed.webm
installation NVDA fixed.webm

@kisantia
As per Above comment. We create new bug for Note issue.
bug https://github.com/microsoft/azuredatastudio/issues/24629


cfa_azure upgrade + new pools

updating cfa_azure verison
introducing low/med/high prio autoscales
switching 2/4/8 cpu nodes to A series
some minor tweaks to azure utilities.

CLOSES #216

Closing this PR due to lack of movement. It was uncovered that pricing differences given necessary hardware requirements were negligible (AM series versus Dv3 series), and autoscaling was prone to issues.


Fix for installer.sh failing when running "sap_library" stage greenfield deployment .

Problem
When performing a deployment via scripts, sap_library deployment will fail with below message immediately after terraform plan. This happens when no previous sap_library state file exists locally or remotely.
<< EOF >>
╷
│ Warning: No outputs found
│
│ The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration with the output keyword and run terraform refresh for it to become
│ available. If you are using interpolation, please verify the interpolated value is not empty. You can use the terraform console command to assist.
╵
╷ │ Warning: No outputs found │  │ The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration with the output keyword and run terraform refresh for it to become │ available. If you are using interpolation, please verify the interpolated value is not empty. You can use the terraform console command to assist. ╵
The subscription of '╷ │ warning: no outputs found │  │ the state file either has no outputs defined, or all the defined outputs are empty. please define an output in your configuration with the output keyword and run terraform refresh for it to become │ available. if you are using interpolation, please verify the interpolated value is not empty. you can use the terraform console command to assist. ╵' doesn't exist in cloud 'AzureCloud'.
Trying to find the storage account
Warning: No outputs found
<>
This is due to lack of test condition in file installer.sh : 630.  Script attempts to fetch 'terraform xxxx output'  of a state file that either is not present or populated with actual output data block.
This will cause continuous failure unless Terraform is run manually with correct backend parameters.
Repeated execution of 'installer.sh' or 'prepare_region.sh' will continue to throw same error with no recovery possible without manual intervention.
Solution
Add a condition to the block in installer.sh: 630 to 642. Use the variable $deployment_parameter to check if this is a new deployment of not. In case of new deployment, do not execute this entire block.
$deployment_parameter is already being populated to identify if a given bootstrap is fresh deployment or existing.
Tests
Can successfully deploy sap_library  on a fresh environment. Existing sap_library state file when present is being correctly looked up from Azure storage account.
Notes
Add fixes to various IF conditions, where due to usage of single square brackets is causing Bash to throw errors about expecting unary operator. This has been fixed by enclosing variables within the brackets in double quotations. This ensures POSIX standard compliance along with Bash on WSL as well as Ubuntu VM
example : IF [ $variable == "test" ]   changed to IF [ "$variable" == "test" ] where ever script throws error during execution.

Hi @shekharsorot , thanks for the PR. Could you target the experimental branch with this PR, please?


Clean up TestUtil #295

Fixes #295.

v1
@Zhiyuan-Amos submitted v1 for review.

[v1 1/8] TestUtil: Remove unused methods
[v1 2/8] TestUtil: Remove asList(T[])
[v1 3/8] TestUtil: Update assert false to throw AssertionError
[v1 4/8] TestUtil: Update access modifiers
[v1 5/8] TestUtil: Remove generateSamplePersonData()
[v1 6/8] TestUtil: Remove removePersonFromList(...)
[v1 7/8] TestUtil: Remove addPersonsToList(...)
[v1 8/8] TestUtil: Inline compareCardAndPerson(...)

(:books: Archive)

Checkout this PR version locally
git fetch https://github.com/se-edu/addressbook-level4.git refs/pr/560/1/head:BRANCHNAME

where BRANCHNAME is the name of the local branch you wish to fetch this PR to.

@damithc for review on the validity of this PR (i.e 'architecture' review)

@yamgent I can actually clean up TestUtil a bit more, just that the other methods look pretty confusing....

v2
@Zhiyuan-Amos submitted v2 for review.

[v2 1/8] TestUtil: Remove unused methods
[v2 2/8] TestUtil: Remove asList(T[])
[v2 3/8] TestUtil: Remove generateSamplePersonData()
[v2 4/8] TestUtil: Remove removePersonFromList(...)
[v2 5/8] TestUtil: Remove addPersonsToList(...)
[v2 6/8] TestUtil: Inline compareCardAndPerson(...)
[v2 7/8] TestUtil: Extract createDataFileWithData(T, String) to TestApp
[v2 8/8] TestUtil: Update access modifier of SANDBOX_FOLDER

(:books: Archive) (:chart_with_upwards_trend: Interdiff between v1 and v2)

Checkout this PR version locally
git fetch https://github.com/se-edu/addressbook-level4.git refs/pr/560/2/head:BRANCHNAME

where BRANCHNAME is the name of the local branch you wish to fetch this PR to.

Clean up TestUtil #295 #348

I think the PR title should only specify one issue. Should just specify the one that it specifically fixes.

Can we leave TestUtil in this state whereby it has 2 random methods (assertThrows and getFilePathInSandboxFolder)? We can create a new class for assertThrows, maybe something like Asserts, but it will only have this one method... :/

Yes we should have a specialized Assert class.

v3
@Zhiyuan-Amos submitted v3 for review.

[v3 1/10] TestUtil: Remove unused methods
[v3 2/10] TestUtil: Remove asList(T[])
[v3 3/10] TestUtil: Remove generateSamplePersonData()
[v3 4/10] TestUtil: Remove removePersonFromList(...)
[v3 5/10] TestUtil: Remove addPersonsToList(...)
[v3 6/10] TestUtil: Inline compareCardAndPerson(...)
[v3 7/10] TestUtil: Extract createDataFileWithData(T, String) to TestApp
[v3 8/10] TestUtil: Update access modifier of SANDBOX_FOLDER
[v3 9/10] TestUtil: update header comments for getFilePathInSandboxFolder(String)
[v3 10/10] TestUtil: Move assertThrows(...) to Assert

(:books: Archive) (:chart_with_upwards_trend: Interdiff between v2 and v3)

Checkout this PR version locally
git fetch https://github.com/se-edu/addressbook-level4.git refs/pr/560/3/head:BRANCHNAME

where BRANCHNAME is the name of the local branch you wish to fetch this PR to.

@yamgent I hold a differing view concerning the helper method in TestApp. But that we can resolve later, you can vet through the rest of the code first :)

@yamgent my PR fixes both issues though hmm

@Zhiyuan-Amos this needs deconflicting.

v4
@Zhiyuan-Amos submitted v4 for review.

[v4 1/10] TestUtil: Remove unused methods
[v4 2/10] TestUtil: Remove asList(T[])
[v4 3/10] TestUtil: Remove generateSamplePersonData()
[v4 4/10] TestUtil: Remove removePersonFromList(...)
[v4 5/10] TestUtil: Remove addPersonsToList(...)
[v4 6/10] TestUtil: Inline compareCardAndPerson(...)
[v4 7/10] TestUtil: Extract createDataFileWithData(T, String) to TestApp
[v4 8/10] TestUtil: Update access modifier of SANDBOX_FOLDER
[v4 9/10] TestUtil: update header comments for getFilePathInSandboxFolder(String)
[v4 10/10] TestUtil: Move assertThrows(...) to Assert

(:books: Archive) (:chart_with_upwards_trend: Interdiff between v3 and v4)

Checkout this PR version locally
git fetch https://github.com/se-edu/addressbook-level4.git refs/pr/560/4/head:BRANCHNAME

where BRANCHNAME is the name of the local branch you wish to fetch this PR to.

@yamgent deconflicted


Add a test suite to ensure examples are working

This will avoid breaking them without noticing, like it happened too many times in the past.

Done in fd07b389524f54f79175a5ac5d9f9050fb66bc61. More examples will be tested as they are getting fixed.


Can't seem to let pack work

I followed the full tutorial, added the things in de level.dat file but it still doesnt say that the pack is there.
If i want to do /datapack enable (pack) it says "Pack 'update_1_21' cannot be enabled, since required flags are not enabled in this world: minecraft:update_1_21!"
Does anyone know a fix for this?

@GewoonNiek Do NOT run /datapack enable on the separate update_1_21 (feature) entry. Only enable the no trial chambers one. Make sure that you edit and save the level.dat while the world/server is fully closed and then reopen the world.
If those tips do not fix your issues, could you let me know whether you're using any mods/plugins/other data packs?

It's fixed, thanks for the help! I think the issue was me not fully stopping the server while updating the level.dat file


[BUG] Restore is successful even when there is "Replica Scheduling Failure" during a backup restore of volume

Describe the bug
Restore is successful even when there is "Replica Scheduling Failure" during a backup restore of volume
To Reproduce

Number of worker nodes - 4
Cordon a worker node. Node is marked "Unschedulable"
Restore from a backup with replicas - 4.
The volume is seen in Replica Scheduling Failure state. But the restoring happens on the remaining healthy replicas.

Expected behavior
Restoring from backup should FAIL when this issue - "Replica Scheduling Failure" is hit
Environment:

Longhorn version: master - 05/18/2020 - ui tag: wangsiye/longhorn-ui:941d022

This is the case for a DRV volume also

The manual test step is the same as the reproducing step. And the final result should be:
The restore/DR volume will keep detached and won't start restoration after the creation and scheduling failure.

Pre-merged Checklist

[x] Does the PR include the explanation for the fix or the feature?
[ ] Is the backend code merged?
[x] Is the reproduce steps/test steps documented?
[x] If labeled: area/ui Has the UI issue filed or ready to be merged?
[x] If labeled: require-automation-e2e Has the end-to-end test plan been merged? Have QAs agreed on the automation test case?
[x] if labeled: require-automation-engine Has the engine integration test been merged?
[x] if labeled: require-doc Has the necessary document PR submitted or merged?
[x] if labeled: require-manual-test-plan-doc Has the manual test plan been documented?

Verified on master - latest - 05/22/2020

Number of worker nodes - 4
Cordon a worker node. Node is marked "Unschedulable"
Restore from a backup with replicas - 4.
The volume is seen in Replica Scheduling Failure state.
All the replicas are in "Stopped" status
Navigate to volume details page. The condition says - Reason: RestoreInProgress.

@yasker Is this condition correct here? Should it not say "restore failure" in Red color?

@sowmyav27 what if we restore the node? Will the restore continue? The restore was in fact in progress, but it's blocked by scheduling failure. Once the volume is scheduled, we should be able to continue the restoration.

@yasker
When the node is uncordoned, yes the restore continues. The volume gets restored correctly.

@sowmyav27 Sounds like we're good then.

Validation: PASSED


Windows: Fix for CI

Signed-off-by: John Howard<EMAIL_ADDRESS>@jfrazelle @tianon @icecrime. This is a fix for Windows CI failures. It needs a change on the Windows CI servers to set DOCKER_REMOTE_DAEMON=1 where indicated below.

export TIMEOUT=60m
TIMEOUT=60m
export DOCKER_HOST=tcp://<IP_ADDRESS>:2375
DOCKER_HOST=tcp://<IP_ADDRESS>:2375
export DOCKER_TEST_HOST=tcp://<IP_ADDRESS>:2375
DOCKER_TEST_HOST=tcp://<IP_ADDRESS>:2375
unset DOCKER_CLIENTONLY

<---- ADD HERE ---> export DOCKER_REMOTE_DAEMON=1

hack/make.sh binary test-integration-cli

WARNING! I don't seem to be running in the Docker container.
The result of this command might be an incorrect build, and will not be
officially supported.

Try this instead: make all

Windows CI will look horrible until the CI server is updated as indicated above.

updating now

updated!

Superstar @jfrazelle :+1:

Yay, Windows CI is clean again :)

sigh janky...

All green :)

LGTM

LGTM


Selectize programmatic value selection.

Is it possible to programmatically select and set a value in the Selectize field?
I have a form with Selectize field. I added a button near this field. When I press this button I call the form for adding a new item to a base table, which is set as foreign_key in the Selectize field. The form is called modally. After closing the form, the new element is added to the base and I would like to set this element as selected in the Selectize field.
Could you please advise me the way to solve the problem?

In version 1.4 there is full support for dialog forms. There the use-case you're describing is not handled but it seems interesting enough to be implemented.

I will implement this soon. Have been busy with releasing version 1.4.

wow :) Great! thank you!

In version 1.4 the Selectize web component offers a getter and setter function for value. Please try them out.

is there any documentations how to use setters/getters?

Just find the original HTMLSelectElement in the DOM using querySelector or getElementById.
Then you can just set and get its value. Internally this then is retrieved/applied to the TomSelect component, which is doing the heavy lifting.

I see. Ok. Thank you.

I've just had a chance to test this. It works fine when all list of selected values are uploaded to a browser. If I added new item in the backend and set the value of select in frontend it doesn't work. Could you make update selected options?

I'm glad that you ask.
This feature has been implemented in version 1.5 – you may have a look at the develop-branch. There are still some issues in 1.5, hence I havn't released it yet.


add CHANGES.md for track.

What's the purpose of this PR
add CHANGES.md for track.
NOTE:
Content needs to be updated  in envery PR and after the each version release
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Read the Contributing Guide before making this pull request.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit tests to verify the code.
[ ] Run mvn clean test to make sure this pull request doesn't break anything.

Codecov Report

Merging #3747 (62e64c8) into master (a64ed3e) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3747      +/-   ##
============================================
- Coverage     50.39%   50.32%   -0.07%
+ Complexity     2375     2374       -1
============================================
  Files           457      457
  Lines         14435    14435
  Branches       1457     1457
============================================
- Hits           7274     7264      -10
- Misses         6657     6665       +8
- Partials        504      506       +2

Impacted Files
Coverage Δ

...mework/apollo/portal/component/PortalSettings.java
57.81% <0.00%> (-7.82%)
:arrow_down:

...ework/apollo/internals/RemoteConfigRepository.java
86.25% <0.00%> (-3.13%)
:arrow_down:

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 bc4c5e4...62e64c8. Read the comment docs.


Update models.py

Column type in the dataset has enum enum('Submitted','Progressing','Processed') which don't match with the model status key in lowercase .

@vinay-ebi I suspect this required corresponding migration file.


Compiler not smart enough to infer a type variable

class Matrix(N, M)

  def initialize
  end

  def *(other : Matrix(M, P)) : Matrix(N, P)
    Matrix(N, P).new
  end

end

m = Matrix(2, 2).new
m * m

undefined constant P

I'd expect compiler to figure out that both P's are supposed to be of the same value

try adding forall M, P at the end of the method definition:
  def *(other : Matrix(M, P)) : Matrix(N, P) forall M, P

Same error 🤔

It actually works with forall if you omit the return type. That's maybe a bug, not sure.

https://play.crystal-lang.org/#/r/4qy0

Yeah, it looks that way. And it should only be forall P because M is already a generic argument.

And you're using 2 as type, you should use a type for N, M and P.
class Matrix(N, M)

  def initialize
  end

  def *(other : Matrix(M, P)) : Matrix(N, P) forall M, N, P
    Matrix(N, P).new
  end

end

m = Matrix(Int32, Int32).new
m * m

https://carc.in/#/r/4qxv

If you omit the return type it works without forall as well.

However, I suspect you are not using generics properly (though I don't know your use case).
class Matrix(T)
  def initialize(@n : Int32, @m : Int32)
  end

  def *(other : Matrix(T))
    Matrix(T).new(@n, @m)
  end
end

m = Matrix(Int32).new(2, 2)
m * m

https://carc.in/#/r/4qz9

@hugoabonizio M and N are not free variables, they're already specified in the generic type arguments and should properly resolve. Only P should be declared explicitly.
I suppose this is just another edge case where the specific implementation for generic type arg as integer is incomplete.

Using integers as generic type arguments to define the dimensions of a matrix is completely legitimate. That's what they're made for.

@hugoabonizio These are just compile-time variables. The main reason I'm using them is to prevent invalid operations at runtime.

A bug in error messages, this should error that the type variable could not be inferred:
def foo(in : Array(A)) : Array(P) forall A, P
  in
end

foo(Array(Int32).new)

https://carc.in/#/r/4rgo
A bug in numerical generics, this should infer P:
class Foo(A)
end

def foo(in : Foo(P)) : Foo(P) forall P
  in
end

# works
# foo(Foo(Int32).new)

# broken
foo(Foo(1).new)

https://carc.in/#/r/4rgp

Using integers as generic type arguments to define the dimensions of a matrix is completely legitimate.

Really nice to know! We learn something new everyday :smile:
class Foo(A)
  def sum
    A + A
  end
end
puts Foo(1).new.sum

https://carc.in/#/r/4rgz

The first example from https://github.com/crystal-lang/crystal/issues/6543#issuecomment-413845179 now errors correctly in 0.35.1:
def foo(a : Array(A)) : Array(P) forall A, P # Error: undefined constant P
  a
end

foo(Array(Int32).new)

The second one still doesn't infer P.
NOTE: The variable names in the examples need to be changed because in is interpreted as a keyword.

Could you specify which one is the second example?

class Foo(A)
end

def foo(a : Foo(P)) : Foo(P) forall P # Error: undefined constant P
  a
end

foo(Foo(1).new)

It works with Foo(Int32).new in the last line.


Adding Webjobs Prefix and consolidation of namespaces

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Add all name changes in changelog.md

@HarmanDhunna Should we add prefix to EventTriggerMetrics?


Error while downloading

I extracted device.wvd and did all the process correctly

You're using an old FFmpeg version or an incompatible build. Try using a different one.
I recommend using this FFmpeg build with gamdl on Windows: https://github.com/AnimMouse/ffmpeg-stable-autobuild/releases

Thanks I updated to latest ffmpeg and now songs are downloading fine.
I tried  music video. Video downloaded and decrypted properly but audio isn't.
Audio is like stucking.
I tried this one https://music.apple.com/in/music-video/pranama-from-darling/895357991


RuntimeError: Unknown model (pretrain_mae_base_patch16_224)

class MaskedAutoEncoder(nn.Module):
def init(self, opts):
super(MaskedAutoEncoder, self).init()
self.fm_distillation = opts.fm_distillation
self.hidden_dim = opts.hidden_dim
self.mae = create_model(
'pretrain_mae_base_patch16_224',
pretrained=False,
drop_path_rate=0.0,
drop_block_rate=None,
)
File "/media/ubuntu/BC22783B2277F92A/zack/LibreFace-main/AU_Recognition/models/mae.py", line 14, in init
self.mae = create_model(
File "/home/ubuntu/anaconda3/envs/LibreFace/lib/python3.8/site-packages/timm/models/_factory.py", line 113, in create_model
raise RuntimeError('Unknown model (%s)' % model_name)

@yanzichuan that's a 3rd party library using timm so you'll need to get help there, may work if you downgrade timm depending on what they were doing, whether it worked in the past.


[Workshop details] - fix length of link in workshop details

Limit length of displayed link

Verified and closed


Bot not responding

First off, I love your bot and it's been working quite well for months now.
Today though, it just completely stopped working in one server (no answers to any prompts at all), and I have no idea why. Still shows online, and no permissions were changed at all since the last time it worked, so I have no idea what the problem is. I've tried kicking and reauthorizing the bot or giving it Admin permissions, but nothing seems to work. It does still work fine in other servers, including a test one I just created and installed the bot in. Not sure what else to try...

Usually this kind of problem will be solved with a bot restart, but I've just finished configuring a gradual shard auto-restart (cf. https://www.patreon.com/posts/broken-mirror-15681433), so please check in a few hours and tell me whether it's working, if it's not too much trouble.
It it isn't working by tomorrow, then I'd have to investigate closer, probably asking you for a server invite.

It's working again! Thanks!


Please add support for Scene Curtain WIFI X (leshi.curtain.v0001)

Please add support for Scene Curtain WIFI X (leshi.curtain.v0001)

Will add the device and let you know when it is ready!

The device should now be support in version 0.8.0. Please let me know if it works!

Thank you! Now it is working !


Add configuration to react/jsx-handler-names (e.g. whitelist some name)

In my case, I often use _.noop as event handler in my unit tests. I'd like to whitelist this case.
Perhaps this could be solved in some generic way, i.e. since the rule uses RegExps anyway, these RegExps could be configurable.
This was originally reported by me in https://github.com/yannickcr/eslint-plugin-react/issues/571#issuecomment-233586806

Would also be useful for some react native props like onTintColor
https://facebook.github.io/react-native/docs/switch.html#ontintcolor

Using things like _.noop has become pretty discouraged in the ecosystem, since () => {} is supremely optimized and much clearer.
@sheshbabu onTintColor should just work fine, because of the "on" prefix.


support for mega2560 ?

support for mega2560 ?

Partially.
The CoreSensors library offers voltage and temperature measurement.
The ATmega2560 supports voltage measurement, but not temperature.
According to the datasheet (figure 26-1 on page 269) the ATmega2560 offers a second internal voltage reference instead of i.e. the ATmega328's thermal diode. So the ATmega2560 unfortunately lacks the hardware required to measure internal temperature.


Project Level 6

Summary
Put a summary of the question
Description
Hi! Is anyone aware of any ways to overcome the problem when a server serves 2 customers waiting in a queue at the same time? What I did was I used an ImList to represent the number of customers waiting in queue and once the size of the ImList exceeded qMax, the server boolean will be switched to canWait == false. Would appreciate any input. Thank you!

Screenshots (if any):
Insert Images here if necessary

Hi I have the same problem. How did you implement the time to serve the next customer? I tried using a supplier to pass a method call for a server's finishing time but that doesn't work since you can't compare event times without calling the supplier early.
On a side note I think you can drop the boolean and return imlist.size() <= qMax instead.

Hi I have the same problem. How did you implement the time to serve the next customer? I tried using a supplier to pass a method call for a server's finishing time but that doesn't work since you can't compare event times without calling the supplier early.
On a side note I think you can drop the boolean and return imlist.size() <= qMax instead.

Hi Alan. Initially I only call for the getServiceTime within my Serve Event and that is how I get the server nextAvailableTime. However, it seems like for level 6, both customers who are stored in an ImList of Wait, are going into Serve Event together. So it is like there must be a mechanism within the Wait Event that could be implemented to only allow server to serve the customers at the start of the queue first? (ImList.get(0)) hmm..

Hm, that sounds possible. I think you could check which one to send the customer to in arrive then just hold it there? But I'm not sure how to manage the time of that event though, it might run into the same problem of not being able to pass in the right time to be able to sort.

hi, i faced the same issue and #153 helped me solve it!

hi, you can refer 2 to the two comments at the bottom of #153 that helped me solve it!

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait  event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Wait event should return Optional.empty(). Done event should return a Serve event. (If present)

Thank you all for your responses! I will try all the methods out. Thank you.

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

For me I created a nextAvailableTime field in my server. So everytime I execute a Serve, I will update this nextAvailableTime.
And your pending event class can query this nextAvailableTiming

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

ive gotten the right outputs but my waiting average time is still at 0.27, do u have any idea why that could be? for my pending time it only works if i put the event time as the servers next available time

#153

i got the same issue as you too now..

If your statistic uses the event time you could try adding both wait->hold & hold->serve times?

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hello! Just to clarify, your logic flow is Wait can call

Serve when customer is first in the waiting queue
Pre-serve when customer is not first in the waiting queue

In Pre-serve, it can call

Serve when customer is first in the waiting queue
Pre-serve if not customer is still not first in the waiting queue

So Pre-serve acts as a checker for updates to the queue right?

#153

Hi. Did you manage to solve the issue?

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

ive gotten the right outputs but my waiting average time is still at 0.27, do u have any idea why that could be? for my pending time it only works if i put the event time as the servers next available time

Hi. Did you manage to where is the issue? I am still having this error. Thank you.

u can create a attribute in pending and serve to state the start wait time

E0857389

Hi, can I ask whats the logic behind your implementation?

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

ive gotten the right outputs but my waiting average time is still at 0.27, do u have any idea why that could be? for my pending time it only works if i put the event time as the servers next available time

Hi, can I ask whats the logic behind your implementation?

hey can i ask how did you guys use the input of maximum queue length? if i have a variable maxlength in my class, it is not initialised since i have to compile before entering in the input and so im unsure of how to use the input

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

ive gotten the right outputs but my waiting average time is still at 0.27, do u have any idea why that could be? for my pending time it only works if i put the event time as the servers next available time

Hi, can I ask whats the logic behind your implementation?

sorry for the late reply but I have a pending to serve and wait event. so I implemented a PQ of type customer inside my server to record the customers that are waiting in queue.
afterwards, within my wait event, it will return a pending to serve event. my pending to serve event will check the first customer in the PQ by polling the PQ and compare it with the customers that it's constructor takes in. if it is the same customer, then I will return a serve event. otherwise, I will return a pendingtoserve event.

Hi! I faced the same issue and just managed to resolve this. The idea is that the wait event can only return one "legit" serve event for the first in the waiting queue, but to protect the rest of the customers in the queue with the correct timing for them, some other event implementation must also be returned when we execute a wait event for a customer not on top of the queue. The detailed implementation can vary from person to person based on your logic, yet I feel the idea is to have a pre-serving event class that bridges the gap for the customers not yet at the top of the queue. Executing this pre-serve class event should return a legit event only when the customer becomes top of the queue, and return another pre-serving event if not.
Generally the idea is that some event class will have to return events of their own type to fix this problem, so the customers not at the top of the queue are "on hold" until they reach the top. Hope this helps!

Hi! how do you get the timing for the pending events? i created a pending event class but still has the same result'

Hii! My pending event is quite naive as it’s basically the same as my wait event. I did not change the event times until the pending events are executed to return serve events. Hope this helps!

ive gotten the right outputs but my waiting average time is still at 0.27, do u have any idea why that could be? for my pending time it only works if i put the event time as the servers next available time

Hi, can I ask whats the logic behind your implementation?

sorry for the late reply but I have a pending to serve and wait event. so I implemented a PQ of type customer inside my server to record the customers that are waiting in queue.
afterwards, within my wait event, it will return a pending to serve event. my pending to serve event will check the first customer in the PQ by polling the PQ and compare it with the customers that it's constructor takes in. if it is the same customer, then I will return a serve event. otherwise, I will return a pendingtoserve event.

hello may i ask how do you prevent your pendingtoserve event from recursively calling itself if the customer is not the first in the queue?

Wait event should return Optional.empty(). Done event should return a Serve event. (If present)

Hi my implementation was like this as well but CodeCrunch failed me for cyclic dependency. Can I ask how did you resolve this issue?

Hi @hengyjj , sorry would you mind further elaborating on your solution?

Hi @hengyjj , sorry would you mind further elaborating on your solution?

Within my server class, I had a PQ<Customer> Waiting to record the customers waiting in queue of each server. Afterwards, I had a holdCustomer method within the Server method to check if the size of the PQ is < qMax. If PQ > qMax, I would know a server cannot hold anymore customers and would move on to the next server to check.
Within my Shop class, there are several methods such as serveCustomer, holdCustomer and finishCustomer. All these 3 methods would update the Imlist servers that reside inside the shop, and these methods can be called inside the event classes to update the different shop status.
Inside my Arrival and Wait event, I no longer need to calculate the next available time of the customer by asking for getServiceTime() because I could just call the helper methods from Shop class and Server class to do it for me. I would only need to call the getServiceTime() in Serve Event.


Get tests running under node, browser, desktop and web

We need to ensure that:

common tests run under node and browser
api tests run under desktop and web

Done.


iOS Mobile Add-in embedded browser control uses Safari and our client requires to use a more secure Edge browser. How can we achieve this?

Article URL
 https://docs.microsoft.com/en-us/office/dev/add-ins/concepts/browsers-used-by-office-web-add-ins
Issue

Outlook Add-in in iOS Mobile uses Safari as the embedded browser (see article) and our client's security policies requires them to use a more secure Edge browser.
Client has Azure Single Sign-on policies so that a user can only use the Edge browser to log in. See image

Client does not want to update Conditional Access policy to Allow Safari which leaves us with switching the browser in iOS for the Outlook Add-in to Edge which, from the article, is not supported by Microsoft
Looking for suggestions of option we have to allow our clients a secure access into out Outlook Add-in using Mobile:

To see if there is a way we can use Edge somehow that Microsoft has seen others firms use that we can build for the product in the long term for a more secure access. (And/Or)
Asses the risk of using Safari, with Microsoft  for our clients to feel safe about conditionally allowing Safari as the embedded browser control, if not, see what else Microsoft can suggest in these cases

Thank you for taking a look
Intapp Inc

Hi @priyankak9,
Sorry for the delayed response. Currently, iOS add-ins only run through an embedded Safari browser, as documented here: https://docs.microsoft.com/en-us/office/dev/add-ins/concepts/browsers-used-by-office-web-add-ins
To request the feature of Edge support, please go to the M365 feedback portal and create an issue. Because there's nothing actionable to do in the documentation, I'll close the issue.


v1.1

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@93fda8e). Click here to learn what that means.
The diff coverage is 41.17%.

@@            Coverage Diff            @@
##             master      #56   +/-   ##
=========================================
  Coverage          ?   58.33%
=========================================
  Files             ?        2
  Lines             ?      132
  Branches          ?        0
=========================================
  Hits              ?       77
  Misses            ?       49
  Partials          ?        6

Impacted Files
Coverage Δ

utils/utils.go
84% <0%> (ø)

app/conf/conf.go
42.68% <42.68%> (ø)

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 93fda8e...9f01e1f. Read the comment docs.


USER STORY: Change colors according to NSC’s theme colors (frontend)

At the moment, the color of the application is purplish but we want it to match the school’s colors. Similar to the color palette of Belinda’s Closet app, we want to mimic that same color palette in NSC’s app
Issues:

[x] I would like the theme and color of the application to be similar to NSC theme and colors using this media kit

Hey @MuhammadNSC, please create an issue for #154 when you get a chance


Failed pytest

Hi,
I did everything step by step as it is described in readme file, but pytest failed with 26 errors.
Please, take a look at pytest.txt
Python version is 3.6.9 on Ubuntu 18.04 bionic
How can I resolve this issue?
Thanks in advance!

pytest is not mandatory. you can still continue.


Enable auto closing the } bracket inside string templates

This is an enhancement request.

VSCode Version: 1.12.2
OS Version: macOS Sierra 10.12.3

Steps to Reproduce:

Type console.log(`this is ${`)
Enable vscode to insert '}' and place cursor between {}.

console.log(`this is ${|}`)

This may depend on #34857

Auto-closing works in cases such as:
`a ${ a`

but not in cases like:
`a ${a`
`a ${`

The root cause is detailed #18120.
Our current behavior is consistent with sublime, but Atom has the described auto-closing behavior in the a ${ case

Closing as duplicate of #18120


Find a solution to support multiple httpd callback URLs

Currently the approach is to create one
<Location "/<project>/<venue>/">
   ProxyPass <URL_OF_VENUE_HTTPD_ALB>
   ...
</Location>

section  for each project/venue installation in a venue account corresponding to the shared services account.
There is also a vanity URL that looks like this:
# OIDCRedirectURI is a vanity URL that must point to a path protected by this module but must NOT point to any content
    OIDCRedirectURI https://www.dev.mdps.mcp.nasa.gov:4443/unity/dev/redirect-url

Multiple URLs are allowed in Cognito. But in mod_auth_openidc, there is one callback URL. I am looking for a workaround to support multiple callback URLs with mod_auth_openidc.

It is not required to support multiple redirect URLs for our usecase. We can protect multiple locations with mod_auth_openidc as follows.
<VirtualHost *:443>
# Other httpd related configurations go here.......
.
.
    OIDCScope "openid email profile"
    OIDCProviderMetadataURL https://cognito-idp.us-west-2.amazonaws.com/<COGNITO_USER_POOL_ID>/.well-known/openid-configuration
    OIDCClientID <COGNITO_CLIENT_ID>
    OIDCClientSecret <COGNITO_CLIENT_SECRET>

    # OIDCRedirectURI is a vanity URL that must point to a path protected by this module but must NOT point to any content
    OIDCRedirectURI https://httpd-experimeantal-alb-************.us-west-2.elb.amazonaws.com:4443/redirect-url
    OIDCCryptoPassphrase *******************

   <Location / >
      ProxyPreserveHost on
       AuthType openid-connect
       Require valid-user
    </Location>

    <Location /path1 >
      ProxyPreserveHost on
       AuthType openid-connect
       Require valid-user

       ProxyPass https://www.site1.com
       ProxyPassReverse https://www.site1.com
    </Location>

    <Location /path2 >
       ProxyPreserveHost on
       AuthType openid-connect
       Require valid-user

       ProxyPass https://www.site2.com
       ProxyPassReverse https://www.site2.com
    </Location>

    <Location /unity/dev>
       ProxyPreserveHost on
       AuthType openid-connect
       Require valid-user

       # Added to point to httpd within the unity-venue-dev account
       ProxyPass  https://ucs-httpd-alb-*********.us-west-2.elb.amazonaws.com:4443
       ProxyPassReverse  https://ucs-httpd-alb-**********.us-west-2.elb.amazonaws.com:4443
    </Location>
 </VirtualHost>


Expected size for first two dimensions of batch2 tensor to be: [1, 4] but got: [1, 512]. [BUG]

RuntimeError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
Expected size for first two dimensions of batch2 tensor to be: [1, 4] but got: [1, 512].
File "/data/miniconda3/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
File "/data/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/modules/mlp_mixer.py", line 30, in forward
y = self.dense1(x)
File "/data/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/modules/mlp_mixer.py", line 63, in forward
y = self.tokens_mlp(y)
File "/data/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/modules/mlp_mixer.py", line 125, in forward
x = mixer_block(x)
File "/data/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/modules/mlp_mixer.py", line 145, in
output = mlp_mixer(example_input)
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/modules/init.py", line 47, in
from zeta.nn.modules.mlp_mixer import MLPMixer
File "/data/miniconda3/lib/python3.10/site-packages/zeta/structs/local_transformer.py", line 8, in
from zeta.nn.modules import feedforward_network
File "/data/miniconda3/lib/python3.10/site-packages/zeta/structs/init.py", line 4, in
from zeta.structs.local_transformer import LocalTransformer
File "/data/miniconda3/lib/python3.10/site-packages/zeta/models/andromeda.py", line 4, in
from zeta.structs.auto_regressive_wrapper import AutoregressiveWrapper
File "/data/miniconda3/lib/python3.10/site-packages/zeta/models/init.py", line 3, in
from zeta.models.andromeda import Andromeda
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/attention/mixture_attention.py", line 8, in
from zeta.models.vit import exists
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/attention/init.py", line 14, in
from zeta.nn.attention.mixture_attention import (
File "/data/miniconda3/lib/python3.10/site-packages/zeta/nn/init.py", line 1, in
from zeta.nn.attention import *
File "/data/miniconda3/lib/python3.10/site-packages/zeta/init.py", line 28, in
from zeta.nn import *
File "/data1/baseline/PALI3/pali3/tokenizer.py", line 2, in
from zeta.tokenizers import TokenMonster
File "/data1/baseline/PALI3/pali3/init.py", line 1, in
from pali3.tokenizer import tokenize, detokenize
File "/data1/baseline/PALI3/example.py", line 2, in
from pali3.main import Pali3
File "/data/miniconda3/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/data/miniconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [1, 4] but got: [1, 512].

I encountered the above error while running example.py. Here are the versions of the relevant packages. How can I resolve this bug?
pali3                         0.0.7
zetascale                 0.9.1
torch                         2.0.1

I have the same bug.


New Sample: Client-side data validation for user input

It would be great to see a sample demonstrating the new ValidationErrors property along with its companion properties ValidationState, ValidationIndicatorStyle & IsValidationIndicatorEnabled.
It would also be good to see how it integrates with ValidationAttribute and IValidatableObject.

I need this demo too. I saw this feature on msdn, but there have not any documents.

@h82258652 I looked more into it on VS 2015 RC, and the properties aren't even available. But, as you said, it's mentioned in What’s new for developers in Windows 10.

@bricelam
Thanks, I can not find these classes on VS 2015 RC either. But I had been seen them on VS 2015 CTP6. Maybe MS remove this feature now?
Hopefully this feature can come back in the official Win 10 version. Validate input is necessary. Just like the model validation in asp.net mvc.

FYI, PnP has some good guidance on implementing validation yourself, but it will sure be nice to have it built in.

Emm, great article. But I think this:
<TextBox x:Name="FirstNameValue"
         Grid.Row="2"
         Text="{Binding UserInfo.FirstName, Mode=TwoWay}">
    <interactivity:Interaction.Behaviors>
        <quickstartbehaviors:HighlightFormFieldOnErrors PropertyErrors="{Binding UserInfo.Errors[FirstName]}" />
    </interactivity:Interaction.Behaviors>

</TextBox>

can be more better. We write "FirstName" twice. The validation system should know what property we are binding.
I found this method on msdn: https://msdn.microsoft.com/en-us/library/ms598124(v=vs.110).aspx
This method is also available in WPF and Windows Runtime.
We pass a dependency property to this method, if this dependency property is binding now, it will return a object which contains binding path, binding source and etc.
Maybe we can use this to build our validation framework.

@AdamBraden
So MS decided to remove this feature?

I've reached out to the owners of this API to respond ... about samples in this area.
Thank you.

Hi @bricelam thanks for this note.  Unfortunately, yes these features for validation will not make it in the final release for Windows 10 right now.  We had some good initial feedback from customers that we weren't delivering the expectations and we want more time to get this right before delivering something that wasn't going to meet customers needs primarily.  This remains on our backlog for prioritizing against ongoing/new customer requests.

@timheuer
Thanks you.
Emm, I‘m trying now, but resolve the binding path to property is difficult.


Inconsistent queryStringParameters representation

When using the proxy integration with sam-local, if you call a method without any query string parameters, you get this as part of your input:
"queryStringParameters": {}

However, In production this is represented as:
"queryStringParameters": null

Same inconsistency with body parameter. In sam local empty body is represented as an empty string, while in production it is null.

This inconsistency was corrected in the 0.3.0 release. Closing since this has been addressed.

I was debugging my API with sam local and notice that the queryStringParameters  was just getting the last char of the parameters passed on URL.
?param=value
queryStringParameters with sam local:
"queryStringParameters": {"param":"e"}
queryStringParameters on Production:
"queryStringParameters": {"param":"value"}


Fix num_rows in sys.segments

num_rows column of sys.segments was incorrectly reported for some case.  It happened because the segmentMetadataInfo in DruidSchema was not being updated properly in setSegmentSignature and the value was overwritten in addSegments when the segment had more than one replica. This PR fixes:

segmentMetadataInfo update in DruidSchema
Add numRows to SegmentMetadataHolder builder's constructor, so it's not overwritten
Rename setSegmentSignature to setSegmentMetadataHolder and fix it so nested map is appended instead of recreated
Replace Map<String, Set<String>> with Set<String> for num_replica

@surekhasaharan would you please fix the conflicts?


BayWa-re - Scraper-UI Error 404

ENVIROMENT: production
COMPANY: BayWa-re
URL: BayWa-re peviitor.ro
Browser: Google Chrome
Device: laptop
OS: MacOS
Precondition:
The site must be open in browser.
Steps:
Click on Firme from footer.
Enter BayWa-re in the search bar.
Click the button under the company's logo.
Expected result:
The Scraper-UI related to the company opens.
Actual result:
Error 404 "Page Not Found"
https://github.com/peviitor-ro/Scrapers-UI/assets/137428958/8fc8d8be-1a48-4442-89d8-f5f81f760b85

@cristiol change company name from baywa to bayware and baywa_scraper.py file to bayware_scraper.py to work


How to replace attributes?

I have used this plugin successfully for SVG to React Component, but I get some struggle to figure out how to replace fill attribute. This is my configuration
    {
      resolve: 'gatsby-plugin-svgr',
      options: {
        icon: true,
        viewBox: false,
        expandProps: 'end',
        replaceAttrValues: {
          '#FFBB00': 'currentColor',
        },
      },
    },

It didn't work as expected

Turn out SVGR treat color with six-digit form as three-digit form. Weird 🤔

Oops, I forgot this issue. I got some trouble yesterday with<EMAIL_ADDRESS>I don't know why Gatsby always complain that Module cannot be parsed for each svg file when building for production. So I have to go back with @svgr/cli to meet the deadline.

Does this work? I tried it in the latest build and can't get the colors working...


[Android] vibration patterns with examples

and "not supported" warnings for ios

according to @satya164 note https://github.com/facebook/react-native/pull/6061#issuecomment-188847083

@satya164 could you please take a look?

@skv-headless Hey, sorry, totally missed this. Will take review tomorrow. Thanks for pinging me.

Can the cancel method be supported on iOS? What'll happen if I do Vibration.vibrate(0) when a vibration is in progress?

cc @dmmiller

https://github.com/facebook/react-native/blob/master/Libraries/Vibration/RCTVibration.m#L20
ios implementation and I don't see way to stop vibration.

@satya164 done

@facebook-github-bot shipit


Update htmlunit to 2.64.0

Updates net.sourceforge.htmlunit:htmlunit from 2.46.0 to 2.64.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "net.sourceforge.htmlunit", artifactId = "htmlunit" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "net.sourceforge.htmlunit", artifactId = "htmlunit" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #204.


Add ShiftType.FIXED

Adding a new shift type that replaces the base value with the shift amount

I think part of the reason it looks weird is that the enum is called ShiftType, whereas ShockType would be more appropriate. Typically this enum is used for defining the scenarios which get executed as part of a VaR calculation. And defining scenarios in terms of fixed prices is a pretty reasonable approach


Move Next-Item-Prediction-with-Transformers examples from models

This is a part of larger ongoing work that we are tracking under https://github.com/NVIDIA-Merlin/Merlin/issues/1027.
Here I am only moving the examples from models to Merlin and making sure the tests run. Once this is in place, I'll work on merging a PR in models to remove the examples and clean up tests, etc.

What are the changes in [01-Building-Recommender-Systems-with-Merlin.ipynb](https://github.com/NVIDIA-Merlin/Merlin/pull/1028/files#diff-ae3151beaa9bd704ff7c957b3a35394e15f72122a4746c79ea132feb02e645eb) - I checked the diff with ReviewNB but it seems there are no changes (except of output prints). If that is the case, should we remove it from the PR?

Thank you very much for catching this, Benedikt! My bad. I have now removed the file.