v1.29.2:  Bad Certificate when using http proxy (self signed cert)

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Home Assistant addon is using http proxy without an issue. Using TESLA_API_HOST in teslamate fails with Bad Certificate.
I believe it is due to a self-signed certificate.
I see there is already TESLA_WSS_TLS_ACCEPT_INVALID_CERTS for WebSockets. Can we have the same for the HTTP?
Thank you
Expected Behavior
to be able to use self-signed cert on HTTP proxy
Steps To Reproduce
Use HTTP proxy with self-signed cert
Relevant log output
2024-06-19 07:30:59.483 [notice] TLS :client: In state :wait_cert_cr at ssl_handshake.erl:2123 generated CLIENT ALERT: Fatal - Bad Certificate
2024-06-19 07:30:59.483 [error] GET https://pi.home:8443/api/1/vehicles/XYZ -> error: "TLS client: In state wait_cert_cr at ssl_handshake.erl:2123 generated CLIENT ALERT: Fatal - Bad Certificate\n" (78.470 ms)

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.29.2

It would seem logical to me to add it to allow http proxy installations without SSL to work.

Just to add up to this discussion, I also have http proxy running with self signed certificate
I having an hard time following the docs at https://docs.teslamate.org/docs/guides/api/#tesla-fleet-api
What I understand is I need to have http proxy running and then change TESLA_AUTH_HOST to my proxy domain?
I already have a developer account with public key hosted and tesla proxy working for HomeAssistant

Ultimately, I modified the HTTP proxy to run both HTTPS and HTTP. HA integration hits the HTTPS and teslamate hits the HTTP

Can you share your setup? How are you hosting the proxy?

sorry did not see the comment...
I have my own repo, where vehicle command repo is a dependency. and I run the proxy in my main module running this function:
func runProxy() error {
	fmt.Println(os.Args[0], version.Version, version.BuildTime)
	host := "<IP_ADDRESS>"
	port := 8443

	privateKey, err := protocol.LoadPrivateKey(keyFile)
	if err != nil {
		return err
	}

	ctx, cancel := CreateMainCtx()
	defer cancel()

	log.Println("Starting HTTP and HTTPS...")
	p, err := myproxy.New(ctx, privateKey, cacheSize)
	p.Timeout = 60 * time.Second

	go func() {
		addrHttp := fmt.Sprintf("%s:%d", host, port + 1)
		log.Println("Starting HTTP server on " + addrHttp)
		if err := http.ListenAndServe(addrHttp, p); err != nil {
			log.Fatalf("HTTP server error: %v", err)
		}
	}()

	addr := fmt.Sprintf("%s:%d", host, port)
	log.Println("Starting HTTPs server on " + addr)
}

Thanks for this @zlymeda . I'm looking to implement this as well and run HTTP on my HA Proxy addon as you have but not really familiar with customising addons.
If its not too much trouble would you mind writing a quick step by step on what you did?
In short, I understand it like this:
You created a copy of the Teslamate github into your own repository.
You then amended the code - and the code that you amended is what you mention here in your post? Where did you put that? which file?
You then added your github repo to the addon store in HA and installed the app and then just went through the same process as you would the official repo?
Thanks for your help


No nav buttons in HorizontalGallery for one page of participants

What

Changed HorizontalGallery to show page navigation buttons only if number of children greater than childrenPerPage prop.
Changed ResponsiveHorizontalGallery to first consider if all children can fit in container without buttons to calculate childrenPerPage.
Why

https://skype.visualstudio.com/SPOOL/_workitems/edit/2632983
How Tested

https://user-images.githubusercontent.com/79475487/141214360-721119d8-3f3b-47fe-9d98-fb3aaaaa22db.mp4
Process & policy checklist

[ ] I have updated the project documentation to reflect my changes if necessary.
[ ] I have read the CONTRIBUTING documentation.

Is this a breaking change?

[ ] This change causes current functionality to break.

@mgamis-msft According to the attached video, there is a left arrow even when the gallery was on the first page.
If that is correct, should we also remove the left arrow if someone is on the first page? That would make it even more intuitive.

Left arrow shouldn't be visible if the horizontal gallery is showing the first N participants. Similarly, right arrow shouldn't be visible if the gallery is showing last N participants.

For context on this, the reason why was due to this comment: https://github.com/Azure/communication-ui-library/pull/978#discussion_r735735007 . The button shifts when clicked meaning your mouse cursor is no longer over the button:

However, now we've tested when always having them in and seen problems were its non-obvious that there aren't anymore participants perhaps we revert back to the previous issue? I'm happy for either option

Left arrow shouldn't be visible if the horizontal gallery is showing the first N participants. Similarly, right arrow shouldn't be visible if the gallery is showing last N participants.

For context on this, the reason why was due to this comment: #978 (comment) . The button shifts when clicked meaning your mouse cursor is no longer over the button so you can't click it again and it feels confusing:
However, now we've tested when always having them in and seen problems were its non-obvious that there aren't anymore participants perhaps we revert back to the previous issue? I'm happy for either option

I understand what you mean. However, I thought we were doing this to get rid of the confusing arrows.
If you look at the current fix, it doesn't really help much since as soon as the number of participants grow, we are back to the same problem (non-obvious left/right buttons).

Left arrow shouldn't be visible if the horizontal gallery is showing the first N participants. Similarly, right arrow shouldn't be visible if the gallery is showing last N participants.

For context on this, the reason why was due to this comment: #978 (comment) . The button shifts when clicked meaning your mouse cursor is no longer over the button so you can't click it again and it feels confusing:
However, now we've tested when always having them in and seen problems were its non-obvious that there aren't anymore participants perhaps we revert back to the previous issue? I'm happy for either option

I understand what you mean. However, I thought we were doing this to get rid of the confusing arrows. If you look at the current fix, it doesn't really help much since as soon as the number of participants grow, we are back to the same problem (non-obvious left/right buttons).

I'm okay to remove right button on the last page but the original bug was simply to remove the buttons when there is only one page of participants. Also, if we make the left button disappear on the first page, are we okay with the shift of the right button after we go to the 2nd page?

Left arrow shouldn't be visible if the horizontal gallery is showing the first N participants. Similarly, right arrow shouldn't be visible if the gallery is showing last N participants.

For context on this, the reason why was due to this comment: #978 (comment) . The button shifts when clicked meaning your mouse cursor is no longer over the button so you can't click it again and it feels confusing:
However, now we've tested when always having them in and seen problems were its non-obvious that there aren't anymore participants perhaps we revert back to the previous issue? I'm happy for either option

I understand what you mean. However, I thought we were doing this to get rid of the confusing arrows. If you look at the current fix, it doesn't really help much since as soon as the number of participants grow, we are back to the same problem (non-obvious left/right buttons).

I'm happy to remove the right nav button if we are on the last page but the bug ticket specifies that I should only remove the buttons when there aren't more than one page of participants.
Also if we have no left button on the first page then are we okay with the right button shift after we click it to get to the second page?
Can we get a concesus here @anjulgarg @JamesBurnside @alkwa-msft @alcail?

I'm happy to remove the right nav button if we are on the last page but the bug ticket specifies that I should only remove the buttons when there aren't more than one page of participants. Also if we have no left button on the first page then are we okay with the right button shift after we click it to get to the second page? Can we get a concesus here @anjulgarg Anjul Garg FTE @JamesBurnside James Burnside FTE @alkwa-msft Alex Kwan (IC3) FTE @alcail Aline Caillaud (SHE/HER) FTE?

I'm happy with either :) Don't have a strong preference either way

I'm happy to remove the right nav button if we are on the last page but the bug ticket specifies that I should only remove the buttons when there aren't more than one page of participants. Also if we have no left button on the first page then are we okay with the right button shift after we click it to get to the second page? Can we get a concesus here @anjulgarg Anjul Garg FTE @JamesBurnside James Burnside FTE @alkwa-msft Alex Kwan (IC3) FTE @alcail Aline Caillaud (SHE/HER) FTE?

I'm happy with either :) Don't have a strong preference either way

I believe James, Miguel and myself had a chat at the end of the bug bash . Lets keep it simple
If there are not enough participants to require the buttons then don't include them.
If there are enough participants then keep both buttons
There are optimizations that could be done like removing certain buttons if you are at a certain side of the horizontal gallery. Lets defer this one for now
Lets modify the experience over time through customer feedback and internal usage.

I believe James, Miguel and myself had a chat at the end of the bug bash . Lets keep it simple

If there are not enough participants to require the buttons then don't include them.
If there are enough participants then keep both buttons

There are optimizations that could be done like removing certain buttons if you are at a certain side of the horizontal gallery. Lets defer this one for now
Lets modify the experience over time through customer feedback and internal usage.

From: James Burnside @.>
Sent: Friday, November 12, 2021 12:14 PM
To: Azure/communication-ui-library @.>
Cc: Alex Kwan (IC3) @.>; Mention @.>
Subject: Re: [Azure/communication-ui-library] No nav buttons in HorizontalGallery for one page of participants (PR #1069)
I'm happy to remove the right nav button if we are on the last page but the bug ticket specifies that I should only remove the buttons when there aren't more than one page of participants. Also if we have no left button on the first page then are we okay with the right button shift after we click it to get to the second page? Can we get a concesus here @anjulgarghttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanjulgarg&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631625298|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=qr8Ezf4VKXGrdc08tddwpGot2fDkmSEd7DANerIL3KY%3D&reserved=0 Anjul Garg FTE @JamesBurnsidehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJamesBurnside&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631625298|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=89okaArWgfTtQQKN8ZYUPBBCAXQm7GIpYvwSVxkyhB0%3D&reserved=0 James Burnside FTE @alkwa-msfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falkwa-msft&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631625298|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=CQS1ieG4Xa0rLowtF9v3uammSdfTJk78Flnd9em9wWU%3D&reserved=0 Alex Kwan (IC3) FTE @alcailhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falcail&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631675311|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=AuRSssWJvx1scH7T%2BnXD9L8mvAiCc1BqI%2FN5wV7kMrA%3D&reserved=0 Aline Caillaud (SHE/HER) FTE?
I'm happy with either :) Don't have a strong preference either way
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fcommunication-ui-library%2Fpull%2F1069%23issuecomment-967467990&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631675311|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=60rrPR1g3nmH7knfOz1vpQ%2FySnzPEEzF3Ivzp3pre48%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAS5HR7A2JV2YUTCQGWBOKX3ULVYRPANCNFSM5HZHCJQA&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631675311|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=iZeBA9Z3VVKloXqophMyU109HxrhDZ4QbLb%2BTwjHRpU%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631675311|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=OTYt5gtqzmIKY2IB4naogt%2FjJye%2FPFjOehTuZubkMlQ%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|alkwa%40microsoft.com|f2766e9d46f24620cb9108d9a619002f|72f988bf86f141af91ab2d7cd011db47|1|0|637723448631675311|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=B8AyrpbSKLhD%2BB8nKcuAlibj0Wi0J67LS%2F4wF0IaCeQ%3D&reserved=0.


Unsafe Serialization for Faster Public Parameter Caching

Begins to resolve #387.
The proposal is to add an (kind of unsafe) serde layer to a few of the public params related structs for faster public param caching.

Initial benchmarks show that it is around 5-6x faster (same space, we are simply avoiding all of the unnecessary repr conversions that slow us down).
Unfortunately, because we can't access the internals of ff or pasta_curves (nor do we want to), we must do unsafe conversions to move the bytes efficiently.
We have to add these to Neptune and Nova itself because we can't access the structs and implement any traits outside of the crate.

The plan is to manually add serialize/deserialize implementations that involve points and field elements, using unsafe conversions to directly move the bytes. This must be unsafe, as ff or pasta_curves does not expose API that allows us to access the raw byte representation of points (we can only access normalized/compressed points and reduced field elements). This will not conform with RFCs or standards for representing elliptic curves. However, this should be ok, as we won't be using serde, and will leave the current canonical default serialization untouched. Instead, we'll use rkyv or abomonation and #derive a separate class of serializing traits for all of the necessary structs. Most of the code will still be safe with minimal changes, but we can gate off this new serialization in a feature if the unsafeness is concerning. These changes will be applied in Neptune and Nova, with proof-of-concept PRs done here:

https://github.com/winston-h-zhang/neptune/pull/1
https://github.com/winston-h-zhang/Nova/pull/1

Concerning Nova, we should also discuss how to move the caching utility from Lurk into Nova, to make these improvements available to all Nova users.
The biggest upside is simply that this makes caching much much faster, making Nova easier to use.
@samuelburnham @huitseeker @porcuquine Any thoughts on how to continue with (1) and (2) would be appreciated!

I suggest closing in favor of #474

#474 is merged, thanks @winston-h-zhang !


Improve command line lesson

After the first run of this lesson at Millersville #143 we have some things to look into. People liked this lesson and were very engaged and played a lot, but it was a bit complex for a first example.

[x] Fix bugs in synopticplot.py

Plot format curly braces and comma placement
Set gfs level to int

[ ] Try to simplify a bit more? Or at least have a simpler version with fewer bells and whistles to explain?
[ ] Need to go over argparse slower

First issue addressed in #165


correct return types of stdout and stderr functions

Should fix the segfault for others.

Probably should double check all of the other signitures.


Casting doesn't work on a Nest Home Hub Max

It appears that this only works for devices which have the YouTube app installed on them. Do you know if there's an alternate method to cast a video to a surface that doesn't have the app?
pi@raspberrypi:~ $ ytcast -n attic https://www.youtube.com/watch?v=kt4Z2AA5Kj0
ytcast: "Attic display": GetAppInfo: "YouTube": GET http://<IP_ADDRESS>:8008/apps/YouTube: 404 Not Found: bad HTTP response status

It appears that this only works for devices which have the YouTube app installed on them.

correct, ytcast relies on the DIAL protocol to discover devices and on the YouTube on TV app to actually play videos via the Lounge api.
from the error it seems that your device supports the DIAL protocol, but as you noted, it doesn't have the app. can it be installed by any chance? or maybe the app is not integrated with DIAL.

Do you know if there's an alternate method to cast a video to a surface that doesn't have the app?

there is mkchromecast which works with Google Cast devices.
Miracast also comes to my mind, but that's more like "whole screen sharing". I don't know a tool for that.

I think I looked at mkchromecast before but if I recall I couldn't get it working because it requires node.js which doesn't have an ARMv6 version.
As best I can tell the Nest Home Hub Max doesn't support apps of any kind, it's akin to the older versions of the Chromecast which are not Android based. I may poke around and see if I can figure out an alternate way to initiate a cast from Go building upon what you've done here. I'll let you know what I find out.

I may poke around and see if I can figure out an alternate way to initiate a cast from Go building upon what you've done here. I'll let you know what I find out.

sounds great! happy hacking!


adding stylus imports to documentation

Not sure if this is just me but when I installed vue-toaster in Vue@3 I got the following error running it
Failed to compile with 1 errors                                                                                2:08:19 PM

Failed to resolve loader: stylus-loader
You may need to install it.

Just added installing stylus to the documentation but maybe it could be included in the dependencies.

You're right. Thank's for your help!
I'll accept the Pull Request and create an issue for update the package.json.


Support for named :memory: urls?

Some lore / background on this:  https://www.sqlite.org/inmemorydb.html
https://github.com/django/django/commit/3543fec3b739864c52de0a116dde3b0e5e885799
https://www.sqlite.org/inmemorydb.html
python 3.6.3
dj-database-url 0.4.2
django 1.11.8
3.19.3 2017-06-27 16:48:08 2b0954060fe10d6de6d479287dd88890f1bef6cc1beca11bc6cdb79f72e2377b
assuming
            'secondary': dj_database_url.config(
                env='SECONDARY_DATABASE',
                default='sqlite://testdb?mode=memory',
            ),

  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
    self.ensure_schema()
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 52, in ensure_schema
    if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
    return self._cursor()
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
    self.ensure_connection()
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/Users/me/work/python/django-polymorphic/.venv/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 198, in get_new_connection
    conn = Database.connect(**conn_params)
TypeError: keywords must be strings

Trying to debug an unrelated issue at https://github.com/django-polymorphic/django-polymorphic/pull/318#issuecomment-349707486 where we use dj-database-url in tests and I want to rule out if two :memory: sqlite connections could be causing stuff to fizzle or not.

I think this is effectively the same as #117 - if we can find a good syntax for it I'm fine with it, but until then I'm going to close.


New version: Kingsoft.WPSOffice version <IP_ADDRESS>53

Created by 🥟 Dumplings in workflow run #6439.

Log
Updated: <IP_ADDRESS>52 → <IP_ADDRESS>53
No ReleaseTime and ReleaseNotes (en-US) for version <IP_ADDRESS>53
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

/azp run


Add Animations to Buttons

We can add smooth animations to buttons and improve  the back to top button.

Can you please assign me this !

Got ahead

@goodchai0 Could you assign it to me?


Game Grading Issue

USAGE OF:

[ ] Frontend

[ ] Backend

[ ] API

[ ] Agile

HOOK:
Points: 3.6-4.0
Reason:
KNOWLEDGE:
Points: 3.6-4.0
Reason:
VALUE:
Points: 0.6-1.0
Reason:
WOW FACTOR:
Reason:

[ ] Screen Design
[ ] Animations
[ ] JavaScript
[ ] OOP

3.6 to 4 pts. HOOK! Key features achieved (shown in running demo to graders), 1 minute show
3.6 to 4 pts. KNOWLEGE, HOW IT IS MADE! Key features blogged (shown in demo time to graders), 2 minute show
0.6 to 1 pt.  VALUE. Most useful or valuable aspect of project.SELF and CROSS OVER GRADERS PROVIDE TOTAL, 9 of 10 is highest.
PROVIDE comment on WOW Factor of presentation.NOTE. Features discussed must be running, and must be proven to be running from GitHub Pages or Deployment to achieve 9 of 10.

USAGE OF:

[ ] import and export of .js files (functions)

HOOK: Points: 3.6-4.0 Reason:
Points: 3.95
Reason: Really good hook, explained the game well and let me play

KNOWLEDGE: Points: 3.6-4.0 Reason:
Points: 4.0
Reason: Extensive knowlede of the code

VALUE: Points: 0.6-1.0 Reason:
0.9

WOW FACTOR:
Reason:

Total: 8.85

[x] Screen Design
[x] Animations
[x] JavaScript
[x] OOP

HOOK:
Points: 4
Reason: They had all the key features: an animated character, NPC, playing character, platform (technically), and a background. They also had a functioning score system.
KNOWLEDGE:
Points: 4
Reason: Extremely well-functioning collision and apparent OOP code proved to us that they have adequate knowledge. Proper usage of Mr. Mort's code and alterations with successful outputs.
VALUE:
Points: 1
Reason: Experience and knowledge were well expressed and displayed properly, and they were able to explain their code accurately showing both knowledge and value from the experience.
WOW FACTOR: Smooth animation and appealing game.
Reason:  I loved their animation and it all functioned really seamlessly

Criteria/Key Features: Polaris
-Alien world, frontend
-music; Backend
-YouTube, API
-effort and team collaboration, Agile
HOOK: Points: 3.9
Reason: They started off by explaining a really cool game and showed their main idea. They also introduced their selves in a really friendly manner.
KNOWLEDGE: Points: 3.9
Reason:
Talked about their mute function and explained to us how they were able to connect to the YouTube API and get music from there. They explained their code really well and I was able to get a good understanding of what their project was.
VALUE: Points: 0.75
Reason:
I think this was already implemented, but it was really cool to see how they got over certain issues and how they really strove to make this work.
WOW FACTOR:
Reason:
They really did a lot and what they did was impressive. Their idea was really cool!
8.55/9

[x] Frontend

[x] Backend

[x] API

[x]  Agile

HOOK: 4.0
Points: 3.6-4.0
Reason: They were playing the game with music turned on
KNOWLEDGE: 4.0
Points: 3.6-4.0
Reason: They explained all of their code, so they were very knowledgeable about what they were discucssing.
VALUE: 0.85
Points: 0.6-1.0
Reason: They made a game and made further improvements by adding music.
WOW FACTOR: 0.9
Reason: Fun game!
9.75/10


single_image_counting error

i have an error in single_image_counting , it is bug ? because i can run all code in repository
Traceback (most recent call last):
File "single_image_object_counting.py", line 21, in
result = object_counting_api.single_image_object_counting(input_video, detection_graph, category_index, is_color_recognition_enabled) # targeted objects counting
File "C:\tensorflow_object_counting_api-master\api\object_counting_api.py", line 511, in single_image_object_counting
feed_dict={image_tensor: image_np_expanded})
File "C:\Users\USER\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\USER\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py", line 1075, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.

Am Getting the same error.

Hey, it's an identation problem on the object_counting_api on lines (503,506,509) they should be inside "with tf.Session(graph=detection_graph) as Sess:". Ping me if you need help.


Update polyfills documentation links

Description:
This pull request updates the Babylon Native Polyfills documentation to correct broken links and update references to the polyfills currently in use.
Changes Made:

Corrected the link to the window API in the documentation.
Removed non-existent polyfill references for Console and XMLHttpRequest.
Corrected the paths for existing polyfill documentation links for Canvas and Window.

Updated Documentation:
Old:
# Babylon Native Polyfills
Babylon Native Polyfills add support for certain JavaScript browser APIs, such as [`canvas`](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) and [`window`](https://developer.mozilla.org/en-US/docs/Web/API/console). They do not attempt to fulfill the web specification exactly, nor do they mirror the behavior of browsers. The polyfills only provide functionality that is either required by Babylon.js, or would be frequently used by Babylon developers.

The polyfills are still in an early stage and are subject to change.

At the moment, we are using the following polyfills:
* [Canvas](../Polyfills/Canvas/readme.md)
* [Console](../Polyfills/Console/readme.md)
* [Window](../Polyfills/Window/readme.md)
* [XMLHttpRequest](../Polyfills/XMLHttpRequest/readme.md)

New:
# Babylon Native Polyfills
Babylon Native Polyfills add support for certain JavaScript browser APIs, such as [`canvas`](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) and [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window). They do not attempt to fulfill the web specification exactly, nor do they mirror the behavior of browsers. The polyfills only provide functionality that is either required by Babylon.js, or would be frequently used by Babylon developers.

The polyfills are still in an early stage and are subject to change.

At the moment, we are using the following polyfills:
* [Canvas](../Polyfills/Canvas/Readme.md)
* [Window](../Polyfills/Window/Readme.md)

Rationale:

The link to the window API was incorrectly pointing to the console API.
References to non-existent polyfills have been removed to avoid confusion.
Paths to the Canvas and Window polyfill documentation have been corrected to ensure accurate navigation.

@microsoft-github-policy-service agree


[BUG] CUDA illegal memory access on large batch with ZeRO-infinity

When training the 0.1T model with ZeRO-infinity(NVMe) at more than 32 batch size, a CUDA illegal memory error occurs.
RuntimeError: CUDA error: an illegal memory access was encountered
Unexpectedly, it works well without any error message up to the 24 batch size, but from the 32 batch, an illegal memory error related to NCCL occurs. It would make more sense if it was O-O-M, but it is an error of unknown cause and works well in small batches, so I don't know what to do.
System info: 4 A100 GPUs(80GB), 1TB CPU DRAM, 11TB SSD
Do you have any guesses or a good link for me to refer to?

I got an error below, it occures when start of training(FWD):
RuntimeError: CUDA error: an illegal memory access was encountered
Traceback (most recent call last):
File "../pretrain_gpt2.py", line 133, in
pretrain(train_valid_test_datasets_provider, model_provider, forward_step,
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/training.py", line 109, in pretrain
iteration = train(forward_step_func,
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/training.py", line 481, in train
loss_dict, skipped_iter = train_step(forward_step_func,
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/training.py", line 332, in train_step
loss, loss_reduced = forward_step_func(data_iterator, model)
File "../pretrain_gpt2.py", line 100, in forward_step
losses = model(tokens, position_ids, attention_mask, labels=labels)
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/engine.py", line 1105, in forward
loss = self.module(*inputs, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/gpt2_model.py", line 76, in forward
lm_output = self.language_model(input_ids,
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/language_model.py", line 330, in forward
transformer_output = self.transformer(embedding_output,
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/transformer.py", line 987, in forward
hidden_states = self.checkpointed_forward(hidden_states,
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/transformer.py", line 963, in checkpointed_forward
hidden_states = mpu.checkpoint(
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/activation_checkpointing/checkpointing.py", line 682, in checkpoint
CheckpointFunction.apply(function, all_outputs, *args)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/activation_checkpointing/checkpointing.py", line 486, in forward
outputs = run_function(*inputs_cuda)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/transformer.py", line 955, in custom_forward
x = layer(x, inputs[1])
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/transformer.py", line 761, in forward
self.attention(layernorm_output,
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 744, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/skchoi/DeepSpeedExamples/ZeRO3-skchoi/megatron/model/transformer.py", line 413, in forward
output, bias = self.dense(context_layer)
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 736, in _call_impl
result = hook(self, input)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/stage3.py", line 1445, in _pre_forward_module_hook
self.pre_sub_module_forward_function(module)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/stage3.py", line 1552, in pre_sub_module_forward_function
self.param_coordinator.fetch_sub_module(sub_module)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/stage3.py", line 451, in fetch_sub_module
self._all_gather(partitioned_params, async_op=True)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/stage3.py", line 528, in _all_gather
handles = partitioned_params[0].all_gather(
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 566, in all_gather
return self._all_gather(param_list, async_op=async_op, hierarchy=hierarchy)
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 660, in _all_gather
handle = self._allgather_param(param,
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 845, in _allgather_param
torch.cuda.synchronize()
File "/opt/conda/lib/python3.8/site-packages/torch/cuda/init.py", line 380, in synchronize
return torch._C._cuda_synchronize()
RuntimeError: CUDA error: an illegal memory access was encountered
terminate called after throwing an instance of 'std::runtime_error'
what():  NCCL error in: ../torch/lib/c10d/../c10d/NCCLUtils.hpp:155, unhandled cuda error, NCCL version 2.8.3
ncclUnhandledCudaError: Call to CUDA function failed.
terminate called after throwing an instance of 'std::runtime_error'
what():  NCCL error in: ../torch/lib/c10d/../c10d/NCCLUtils.hpp:155, unhandled cuda error, NCCL version 2.8.3
ncclUnhandledCudaError: Call to CUDA function failed.
terminate called after throwing an instance of 'std::runtime_error'
what():  NCCL error in: ../torch/lib/c10d/../c10d/NCCLUtils.hpp:155, unhandled cuda error, NCCL version 2.8.3
ncclUnhandledCudaError: Call to CUDA function failed.
terminate called after throwing an instance of 'std::runtime_error'
what():  NCCL error in: ../torch/lib/c10d/../c10d/NCCLUtils.hpp:155, unhandled cuda error, NCCL version 2.8.3
ncclUnhandledCudaError: Call to CUDA function failed.
Killing subprocess 25464
Killing subprocess 25465
Killing subprocess 25466
Killing subprocess 25467

I meet a similar problem. With ZeRO-3, setting micro_batch_size > 12 will trigger CUDA error: an illegal memory access was encountered. However, the GPU memory usage is only 60% (80GB A100) with MBS=12.
There seems to be a bug with larger micro_batch_size, as setting MBS=14 should not cause OOM and it triggers CUDA error.

@kiehls90, from your stack trace it seems the failure is occuring during allgather and hence NCCL-related. My guess is that the memory allocation required by allgather is failing because of the high memory pressure of large batch sizes. My further guess is that the failure is occuring in C++ land which is why you don't see the nice familiar OOM error message.
One way to test my hypothesis is to indirectly reduce the memory footprint of allgather by disabling parameter prefetching and caching. You can do this with setting the following zero stage 3 configuration knobs as follows in ds_config:
     "stage3_max_reuse_distance": 0,
    "stage3_prefetch_bucket_size": 0

@drcege, how did you measure the 60% GPU memory usage for MBS=12? You could estimate the expected memory usage by comparing a smaller MBS.

@barius, @drcege, since these memory issues occur with larger batch sizes, I believe they are due to the increased activation memory footprint. Unfortunately, ZeRO does not help with that memory problem. Rather, you would need to apply gradient checkpointing if possible.

@barius  The feasible  solution is just to reduce batch size.
As others stated, this memory issue maybe indeed a sign of out of memory (OOM), but was triggered in the C++ land.

Closing this as out of scope for zero-infinity.


Fixed the issue #31

This library is very useful!  Now it works !

Thanks! Were you able to reliably reproduce?

@rfink Thanks for the reply!
Yes, this can be a steady reproduction. This is because the cache key name uses the public variable of the top-level namespace. When multiple queries are made at the same time, the database asynchronous query causes the key name to be updated and the same value is assigned to the different keys when the result is returned. If we use the function parameter to pass the key name, we can prevent this from happening. After many verification, the fact is true, and we are using the revised version, stable operation!

Wow that makes sense. Thanks a ton for finding that, I was pulling my hair out trying to reproduce and find the issue. I hope the module is working out well for you.


Imposed constraint update

Happened to find this change somewhat randomly:
https://hg.mozilla.org/projects/nss/rev/023f640c52040ff02bdd3c44df2b5ae927fa9e4f
https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/DotaWOS0v1E/m/icFj9tAzBQAJ
https://bugzilla.mozilla.org/show_bug.cgi?id=1802944
Propose to publish yet another release after this is merged.

I was looking at that earlier. Using that would enable noticing changes, but going from *.tr to the constraints encoding would be a manual step. For now, I've subscribed to https://hg.mozilla.org/projects/nss/atom-log/tip/lib/certdb/genname.c in my RSS reader.

but going from *.tr to the constraints encoding would be a manual step.

Why is that?

Why is that?

I guess we'd need to write an encoder to put these strings into the form of a NameConstraints extension body, but that is definitely doable?

Way back I had added a test for this root's constraints -- unfortunately I never landed it because the test failed, because the webpki crate didn't have working name constraints support back then. That is fixed since January. The old commit is here: https://github.com/rustls/webpki-roots/commit/65282d9f07f46d9f272c82034811f9155920844b - unfortunately only a positive test.

I guess we'd need to write an encoder to put these strings into the form of a NameConstraints extension body, but that is definitely doable?

That's what I was thinking but wasn't sure if I was overlooking some inherent ambiguity that would make it harder than it seems.

Way back I had a test for this root's constraints -- unfortunately I never landed it because the test failed, because the webpki crate didn't have working name constraints support back then. That is fixed since January. The old commit is here: 65282d9 - unfortunately only a positive test.

Oh great -- that was pretty easy to rebase onto the current state of affairs, and allowed me to verify that your suggested fix works.

Published 0.25.1.


init and install logic improvement:

What should happen when install is called without calling init first?
Shall we run the init anyway for the user, or only a warning should be given and let the user take control of the whole process?
We can refer to other open-source tools, like Terraform init/apply.

With the current logic, and with the implementation of plugin md5 check, apply will always try to download if local plugins are newly built, since the md5 sums differ.
A new design:

dtm apply will not call dtm init logic
dtm apply will:

read config to get a list of plugins needed
check if each plugin exists locally
if any plugin is missing, create an error that reminds the user to init first, then quit without applying
if every plugin exists locally, proceed


Add Topology and CurrentForwardable spec helpers

I got annoyed having to continually write out the with_modified_env and the whole stubbing of the current_forwardable headers, so I figured there would be a cleaner way to do it with rspec types.
Ideally we probably move the approval and sources with_modified_envs into their own spec helpers, and change the localhosts there to approval and sources respectively so that when you are stubbing/expecting your requests, it ensures that it's going to the "correct" endpoint.
@syncrou @lindgrenj6 Please Review.

@eclarizio Is this because we are going down to the web mock layer to return a call as opposed to using an instance double at the API layer. If you mock out the API call you don't need to worry about  passing the headers anywhere.
Also since our service objects are dependent on the controller setting the current request so that it can run in the correct context, is there any harm in running everything with a default request so all our specs will run with a request.

@mkanoor I would rather not mock out the API, I think there's value in ensuring that when we create the stubs for the external requests in the spec that the request and response are formed properly. I don't remember when I introduced webmock but I'm almost positive that when I did we found that either our request parameters or the return values were incorrect and needed to be fixed.
As far as setting the current request with a default request, that's probably fine to do, unless the specific spec needs something other than a default request.

@eclarizio If you had a Gem that was making a web call would you go into the bowels of the web call that it makes and stub it out with a web mock or would you stay at a higher layer and use the API and mock out the calls and return validated instance doubles?
Also imagine the amount of stubbing that would be needed to go thru all the paths that the Gem is going to take. We have several RBAC API calls which is a separate gem and if we had to use web mock for that with a JSON payload as opposed to using a verifying double that would be whole lot of json payloads.

@mkanoor I can see your point, but if you look at the gem we're using https://github.com/ManageIQ/topological_inventory-api-client-ruby/blob/master/spec/api/default_api_spec.rb, all of the specs are doing nothing. Even if we could trust the specs there, I would maintain that we should be ensuring that at least the call we're making is hitting the correct endpoints. Also, if that gem changes the way it handles the request input/output, if you just stub it out our tests will pass but the real thing will fail.
Going to the RBAC thing, maybe that's an indication of a separate issue? I would potentially suggest having a service class than handles that stuff for us, that we have tested with webmock, and then everything else can simply use that service class that we could stub.
I don't want to stub interfaces we don't own (within reason, obviously we can't actually make requests), we don't stub ActiveRecord.find if we can help it, right? We simply create/update the object and let Rails do its thing.

@syncrou Rebased and everything looks green, please re-review.
@mkanoor We can debate more about the stub_request and how we're handing specs, but I still think this PR would be a change in the right direction mostly for the reasons that @lindgrenj6 mentioned. Plus, if we decide later to abandon stubbing requests, we could simply add changes to the topology helper to set up the various allows on TopologicalInventory.call to return an api_instance, and then we wouldn't need to duplicate that code everywhere either.


The session message icon is shifting

Kind (Required)

Other

Overview (Required)

The session message icon is shifting

Links

🙌

@sugoi-wada I am in a rush in today's release. Are you likely to finish in a few hours? 🙇

Yes! I'm working on this issue 👍

Thanks!!!!! 😭


RFC 2: Group Spotify Playlists

Tracking issue: #2
Rendered version

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license

@arjunr00 i think the name of the file should be 0004-....md

@arjunr00 i think the name of the file should be 0004-....md

nah, the RFC number is the tracking issue number not the PR number

Ahhh ur right my b read that wrong!
Are we waiting for anything? Should we flesh out our data model more?

Ahhh ur right my b read that wrong!
Are we waiting for anything? Should we flesh out our data model more?

I think we should also flesh out our auth process before approving the RFC
I have some experience with the Spotify API w/ auth through PKCE. But it's a process and we need to talk about how to handle non-premium users!

non-premium users are second-class citizens and we should treat them as such

kidding, yeah that's a good point, let's hash out this and any other concerns on a call and we can approve this during then

@arjunr00 can we still rename the file to have 4 digits.. so 0002-...md


S3 Checker

Adding checks for S3 public opened buckets check
Options:
https://gist.githubusercontent.com/random-robbie/b0c8603e55e22b21c49fd80072392873/raw/bucket_list.sh
https://gist.githubusercontent.com/jhaddix/4769f5e3e4dbcaaf9032fbb741ef6f83/raw/fdfc8ded52a6746d8ecb0fc522cf492e42ba0dec/bucket-disclose.sh

Done with subdomainizer

Done with subdomainizer


WSL being detected but isn't starting

Windows Version
23H2
WSL Version
2
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
Ubuntu
Other Software
No response
Repro Steps
I tried running WSL by typing WSL in powershell by typing wsl
Expected Behavior
It used to start Ubuntu cmd
Actual Behavior

Diagnostic Logs
No response

/logs

Should I collect the network logs?


Uncaught TypeError: Super expression must either be null or a function

hey guys!
So, I spend a couple of days building a landing page with react-parallax, and everything went fine, but when I deployed the bundle strange Error happened:
Uncaught TypeError: Super expression must either be null or a function
    at 5.9b604282.chunk.js:1
    at 5.9b604282.chunk.js:1
    at Module.<anonymous> (5.9b604282.chunk.js:1)
    at r (5.9b604282.chunk.js:1)
    at e.exports (5.9b604282.chunk.js:1)
    at Object.<anonymous> (5.9b604282.chunk.js:1)
    at s (localhost/:1)
    at Module.1141 (main.02f04cab.chunk.js:1)
    at s (localhost/:1)
    at Object.432 (main.02f04cab.chunk.js:1)

I don't know what causes the error, but I double checked everything – and it is certainly something with react-parallax lib, and doesn't really depends on OS – same thing is happening on my prod server (Ubuntu) and local machine (Mac OS) when I serve the bundle. In development mode everything is ok.
The error happens when I use the basic example.
How to debug this further?

Hi,
glad you use the package.
Can you provide some more info about your system and/or setup? It is really hard for me to get an idea without more info. Are you using next.js, or do you bundle it with a custom webpack configuration? Such things would be very helpful.
Maybe you can provide a minimal repo or a codesandbox setup (see description in readme)?
Thanks

Sure!
I will do repo today later, in the meanwhile
this is my package.json
Its basically Create React App, React-Router with Apollo server
  "dependencies": {
    "@google-cloud/speech": "^3.2.3",
    "@google-cloud/storage": "^3.0.3",
    "@lingui/react": "^2.8.3",
    "amr-duration": "^0.2.0",
    "apollo-cache-inmemory": "^1.4.3",
    "apollo-cache-persist": "^0.1.1",
    "apollo-client": "^2.4.13",
    "apollo-link": "^1.2.11",
    "apollo-link-context": "^1.0.14",
    "apollo-link-error": "^1.1.10",
    "apollo-link-ws": "^1.0.17",
    "apollo-server": "^2.4.8",
    "apollo-server-express": "^2.4.2",
    "apollo-upload-client": "^11.0.0",
    "apollo-utilities": "^1.3.1",
    "aws-amplify": "^1.1.40",
    "aws-amplify-react": "^2.5.3",
    "babel-plugin-styled-components": "^1.10.0",
    "bcrypt": "^3.0.6",
    "body-parser": "^1.18.3",
    "concurrently": "latest",
    "cors": "latest",
    "dayjs": "^1.8.13",
    "dotenv": "^8.0.0",
    "draft-convert": "^2.1.4",
    "draft-js": "^0.11.0",
    "esm": "^3.2.22",
    "express": "latest",
    "ffmpeg-peaks": "^0.3.3",
    "fluent-ffmpeg": "^2.1.2",
    "graphql": "latest",
    "graphql-subscriptions": "^1.1.0",
    "graphql-tag": "^2.10.1",
    "graphql-tools": "latest",
    "graphql-type-json": "^0.3.0",
    "graphql-upload": "^8.0.4",
    "if-env": "^1.0.4",
    "immutable": "^4.0.0-rc.12",
    "jsdom": "^15.1.0",
    "jsonwebtoken": "^8.2.1",
    "jwt-decode": "^2.2.0",
    "lodash": "^4.17.15",
    "mongoose": "^5.1.3",
    "mongoose-float": "^1.0.4",
    "music-metadata": "^4.2.1",
    "progress-stream": "^2.0.0",
    "prop-types": "^15.7.2",
    "react": "^16.8.2",
    "react-apollo": "^2.4.1",
    "react-dom": "^16.8.2",
    "react-dropzone": "^10.1.5",
    "react-router": "^5.0.1",
    "react-router-dom": "^5.0.1",
    "react-scripts": "latest",
    "react-scroll-parallax": "^2.2.0",
    "semantic-ui-react": "^0.88.1",
    "slate": "^0.47.4",
    "slate-react": "^0.22.4",
    "styled-components": "^4.1.3",
    "subscriptions-transport-ws": "^0.9.16",
    "wavesurfer.js": "^3.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.6.0",
    "@lingui/cli": "^2.8.3",
    "@lingui/loader": "^2.8.3",
    "@lingui/macro": "^2.8.3",
    "babel-core": "^7.0.0-bridge.0",
    "babel-plugin-dynamic-import-node": "^2.3.0",
    "babel-plugin-syntax-dynamic-import": "^6.18.0",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "eslint-config-prettier": "^6.7.0",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jsx-a11y": "^6.1.1",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-react": "^7.11.0",
    "nodemon": "^1.17.5",
    "prettier": "^1.19.1",
    "slate-prop-types": "^0.5.37"
  },

Here is the repo – https://github.com/sorokinvj/test-react-parallax
Just build it locally
yarn build

and serve locally with
serve -s build

I'm also having the same problem here using nextjs. Works perfectly in development mode, but spitting out an error when the production build is run.
TypeError: Super expression must either be null or a function
    at index.js:1
    at index.js:1
    at Object.Otrq.e.exports (index.js:1)
    at n (index.js:1)
    at Object.Otrq.e.exports (index.js:1)
    at n (index.js:1)
    at Otrq.e.exports (index.js:1)
    at Object.Otrq (index.js:1)
    at l (webpack-08f7b238829422e3b9b2.js:1)
    at Module.RNiq (index.js:1)

Thanks for the repository link. I could reproduce it. I will also try it with a nextjs setup. Think it is due to an uglify/terser issue. Don‘t know which one cra and nextjs is using but I saw some issues on their repositories that look similar.
I will investigate.

So I found a solution. It was a terser plugin configuration issue. I added the keep_fnames option to prevent function/class names getting mangled during production builds. Fix is in version 3.0.3.
I'm happy about a note if the solution works for you guys.

Updated to 3.0.3 and it seems to be working perfectly. Thanks!

Closing the issue now. Feel free to reopen it if there is still related problems.

Thanks!!!! Works perfectly now and mobile is awesome!

@rrutsche getting the same error in v3.5.1
TypeError: Super expression must either be null or a function

Same error here with nextjs 14. I tried to downgrade to 3.0.3 with no success.


[REQUEST] Velocity graph, eb and jb indicators

and uh a speed graph that shows when you're losing/gaining speed

Is there even edgebug or jumpbug here lol

and uh a speed graph that shows when you're losing/gaining speed

pass me ur discord

and uh a speed graph that shows when you're losing/gaining speed

pass me ur discord

sapphire#2912

and uh a speed graph that shows when you're losing/gaining speed

pass me ur discord

sapphire#2912

lmao hi sapphire

and uh a speed graph that shows when you're losing/gaining speed

pass me ur discord

can you add me too
asu#4756

itscraused#5786

and uh a speed graph that shows when you're losing/gaining speed

pass me ur discord

hey, whats ur discord i need some help


Fix color picker showing incorrect number of digits when changing display scale

fixes #68466
When setting the offset, the difference between the side and the width of the text should be rounded up to make sure that the text always fits.

The fix looks good to me, but maybe someone else should chime in too.
The commits should be squashed into one. Here's a link to our tutorial on this: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html#the-interactive-rebase

Thanks, I have also squashed the commits now.

@LucasLaukka FYI, the email used to sign your commit (you can see it in the header here: https://patch-diff.githubusercontent.com/raw/godotengine/godot/pull/69680.patch ) doesn't seem to be linked to your GitHub account. It's not a problem per se but if you want this commit to "count" towards contributions made by your GitHub account, you can add this email as secondary email in your GitHub profile (or amend the commit with a different email linked to your GH account).

Great, thanks for the help! I have updated to the 'Math::ceil()' now as well.

Thanks! And congrats for your first merged Godot contribution :tada:


Suggestion: add Admob support on firebase

Im trying use Google Play Services with Firebase/Admob, but after many tests combining several modules, no success.
like this one has Admob but no play services:
https://github.com/FrogSquare/GodotFireBase

Im trying with another module, but im using for reference. tanks

@felipemattar I get you, however I dislike having ad in mobile games, so I won't support it in the module. Unless you implement it otherwise it won't be part of this module.


Chargeback no longer depend on MetricRollup

What
Extract MetricRollup manipulation into Consumption and ConsumptionHistory classes.
Why
Needed for upcoming chargebacks without metric rollups.
Details
Previously, chargeback relied on existing metric_rollups and chargeback code was tightly bound to metric_rollup class. In future, we want to charge for VMs that do not have metric_rollups assigned.
Thus, we need to break the bound between chargeback code and metric_rollups. We need chargeback code to depend only on Consumption class fetching this class from ConsumptionHistory. Then we can change Consumption to operate over VMs without metric_rollups.
/cc @lpichler -- Thanks for consultation, sir!
@miq-bot add_label chargeback, refactoring, euwe/no
@miq-bot assign @gtanzillo

Backported to Euwe via https://github.com/ManageIQ/manageiq/pull/13419


Add ryan chua info

Add profile photo for Ryan: images/ryanczx.png
About.md: Update image link for Ryan
About.md: Update github link for Ryan

LGTM my g

Looks good


Unwanted gap above some cards

So, i was trying to make a grid of cards, and a very stange gap appeared above some of the cards that have a line break in their title. When i decrease the font size, the gap gets smaller, and if i remove some text, so that there's no line break, the gap disappears.
This does not always happen, for example when all of the cards have a line break or when there's some number of columns in the grid (which is different depending on which cards have a line break in their title) but i've made a very simple example where it occurs. In this example, it does not happen when there's only one or two columns in the grid, increase the width of the document to make more columns appear. This also only happens when the title container div has a fixed height.
Minimal example:
https://jsfiddle.net/AvocadoBoi/zyxr4tya/
I'm using MDL 1.3.0, the latest version right now.

There isn't a gap. The minimum height of cards is 300px by default. If you want smaller cards, then you'll need to overrride that style.

what? I used the class mdl-card-wide, which does not make the minimum card height be 300px. Also, how does that have to do with the gap? Can't you see it? When there's three columns in the grid, there's a gap above the two last cards.

You may want to read my post again.


Create Test for Rendering: Autolinks (GFM)

test does not pass because github returns:
http://foo.bar.baz
and commonmark returns:
http://foo.bar.baz
commonmarks version of autolink still works but we should discuss the importance of adding the missing: rel="nofollow"


Register version 0.4.9

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/106654
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.4.9 -m "<description of version>" 9474a0078b482da94cf348e2570a07ba2c033036
git push origin v0.4.9


Support websocket servers

Witchcraft rust doesn't currently support setting up websockets. We should add in some basic support for creating websockets. I don't think we need to be super opinionated about the websocket support, and we could probably get away with an interface that is like
pub fn websocket(template: &'static str, handler: WebsocketHandler) {
   ...
}

trait WebsocketHandler {
   pub fn handle(WebSocketConnection websocket);
}

Where WebSocketConnection has a read and write message stream, as well as methods for closing the connection.
It doesn't seem like this would be too difficult to accomplish. We could probably just leverage some existing websocket library like https://docs.rs/tokio-tungstenite/latest/tokio_tungstenite/ and there's some rough guidance on how to handle this with hyper: https://seanmonstar.com/blog/better-http-upgrades-with-hyper/

I think this should probably be implementable today without any witchcraft-rust changes using Hyper's built-in upgrade support and tokio-tungstenite.
The upgrade support in Hyper has changed since that blog post was written - it's handled via this module: https://docs.rs/hyper/latest/hyper/upgrade/index.html.
I think it'd definitely make sense to add a crate to integrate websockets into witchcraft-server in a more first-class way though.


About restricted files

Hello i really liked your server but i want to download some shared folder files but the thing is i cannot access the Anyone link. The files are restricted to specific users. Even if i have auth from the same id i cannot download them using your gdriver program what can i do please tell me. it gives this error
Read folder metadata for "17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g"
Error: downloading files failed: can't read folder metadata (ID: 17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g): googleapi: Error 404: File not found: 17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g., notFound

There are two actions required to perform before you start using the software:

Create and import the client configuration (for the Google Account that has access to the shared folder).
Authenticate your personal account to use the gdriver in the context of your own drive.

I assume you did both correctly. Could you please double-check these items:

Do you have access to other folders stored in your own Drive? (you can use gdriver check for that).
Do you have access to 17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g while navigating there with your browser? The application behaves like the client browser, so it should access same resources.

There are two actions required to perform before you start using the software:

Create and import the client configuration (for the Google Account that has access to the shared folder).
Authenticate your personal account to use the gdriver in the context of your own drive.

I assume you did both correctly. Could you please double-check these items:

Do you have access to other folders stored in your own Drive? (you can use gdriver check for that).
Do you have access to 17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g while navigating there with your browser? The application behaves like the client browser, so it should access same resources.

Okay let me check

na didn't worked check this i tried this with different folder also i am in the group i can see those files and i can watch them online in 360p. Also the folder is shared in our member party only. I tried this different folder. I can download those files after they are zipped i have authenticated with the same account that have the access to those files. But i cannot generate it's public(anyone with the link) link.

hope this screen shot will help

There are two actions required to perform before you start using the software:

Create and import the client configuration (for the Google Account that has access to the shared folder).
Authenticate your personal account to use the gdriver in the context of your own drive.

I assume you did both correctly. Could you please double-check these items:

Do you have access to other folders stored in your own Drive? (you can use gdriver check for that).
Do you have access to 17bOYXU3lpoDlg-yYgDPea_frqWbAEY6g while navigating there with your browser? The application behaves like the client browser, so it should access same resources.
I have the access while browsing with my browser. I can download the files or view them.

Are you referring to the "Anyone link"? I tried to reproduce it this way:
on account A:

I created a directory on Drive and put some files there.
I shared the directory as "Anyone link".

on account B:

I opened the shared link in the browser.
I used the gdriver with the folder ID.

It worked without any issues. Could you write down steps to reproduce your issue? Maybe you're using a different mode I didn't try out.

Anyway, didn't reproduce it so far, so resolving.


Module for CONTES NER

@ArnaudFerre commit link pls

No commit for now.
The code is only local (or in your mailbox with subject "Première version code Reco" the 13/10/2019).
Unfortunately, GitHub doesn't enable to create a private branch on a public repository...
I will be able to create a private repository for the beginning of February.


Update amcache.py

Solving some problems with csv exports.

Of course, in this link a user commented an error when trying to perform the parse (https://gist.github.com/williballenthin/ee512eacb672320f2df5), the problem was in the csvwriter declaration since when adding information to the file we obtained " TypeError: write() argument must be str, not bytes"


Can we use same script for OpenCV's older versions like 3.3.1?

I have OpenCV 3.3.1 installed on Nano. I want to  rebuild it with Cuda enabled on it. Can we use same script for OpenCV 3.3.1 or any older version than OpenCV 4?

Probably. You can specify a version like this. Please let me know if any problems with a specific version and I will try to adjust the script to be more flexible to accomadate.

@mdegans Thanks for the reply. For now I have reinstalled the OpenCV with latest version on Nano and able to build it with Cuda enabled. I will try this version specific re-compilation on another Nano.

I tried installing opencv_python==<IP_ADDRESS> version and I get this message:
Getting version '<IP_ADDRESS>' of OpenCV
Cloning into 'opencv'...
warning: Could not find remote branch <IP_ADDRESS> to clone.
fatal: Remote branch <IP_ADDRESS> not found in upstream origin

Hi mdegans,
First, I would like to thank you very much for providing this script. It allowed me to install opencv 4.4 flawlessly on my jetson nano jetpack 4.4, so really, thank you!
I'm trying to make an old piece of code to work on my jetson nano as well, and this project uses opencv 3.2.0.
I decided to try your script to install this opencv version but unfortunately it fails, after some time.
The fail seems to be related to cmake configuration, but as I have no knowledge of cmake, I'm struggling to find the reason why.
If by chance you have some free time and you would like to help me use your script to install opencv 3.2.0, here is a link to my terminal output, the CMakeOutput.log and the CMakeError.log
Thank you, happy new year!
Laurent

Hi mdegans,
First, I would like to thank you very much for providing this script. It allowed me to install opencv 4.4 flawlessly on my jetson nano jetpack 4.4, so really, thank you!
I'm trying to make an old piece of code to work on my jetson nano as well, and this project uses opencv 3.2.0.
I decided to try your script to install this opencv version but unfortunately it fails, after some time.
The fail seems to be related to cmake configuration, but as I have no knowledge of cmake, I'm struggling to find the reason why.
If by chance you have some free time and you would like to help me use your script to install opencv 3.2.0, here is a link to my terminal output, the CMakeOutput.log and the CMakeError.log
Thank you, happy new year!
Laurent


Avoid uninitialized variable error in Duration component with Svelte 5

related to #144

Much appreciated @dimfeld!  I tried fixing this using import { get } from 'svelte/store' but that didn't work.  I appreciate the explanation as well

Yeah, using get is sort of what the svelte 5 code is doing under the hood anyway.


feat(robot-server): Add physical module usb port information to the http server

Overview
closes #7198. This PR adds the physical port information to the http server for modules so that it can be displayed in the app.
Changelog

Add a new model called PhysicalPort which sends both hub and port information to the client inside of the Module pydantic model
Add this new parameter to all of the module http tests

Review requests
You should (I think) be able to see the new parameter being returned in redux on the app. Please test on a robot.
Risk assessment
Medium. Adding a new parameter to a pydantic model in the http server, so we should check to make sure there are no type errors by:

uploading this branch to the robot
plugging/unplugging modules and making sure they show up OK in the app

Sorry to resurrect an already-merged PR...
What happens if you have a module plugged into a hub plugged into another hub? Is "hub number" meaningful there?


Dependency errors with awscli

I get different errors when running cassandras3 and awscli when they are both installed with pip. The last one that was installed works but the other one breaks.
Docker image: cassandra:latest
OS: debian jessie
Python 2.7.9
Error running cassandras3 after awscli is installed.
Traceback (most recent call last):
  File "/usr/local/bin/cassandras3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 451, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 464, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-dateutil==2.5.3

Error running awscli after cassandras3 is installed.
Traceback (most recent call last):
  File "/usr/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 35, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 27, in <module>
    from awscli.clidocs import ProviderDocumentEventHandler
  File "/usr/local/lib/python2.7/dist-packages/awscli/clidocs.py", line 18, in <module>
    from botocore.utils import is_json_value_header

@vicentllongo should be fixed if you use v0.1.1; you also had a problem with restore, is that still something you have handy?


Enabling CodeInterpreter

Hello,
I am attempting to enable code interpreter on a assistant I am creating however I cannot seem to figure out how to get this working and cannot find anything in the docs for the built in tools.
Thanks!

Just need to specify it as one of the tools when you create an assistant.

Thanks! I am trying to go ahead and do that but the only docs on the syntax I can find is defining your own custom tools. I tried something like this to no avail based off the openAI docs.
tools: new Tool[] { new Tool(type: "code_interpreter") }

Just figured it out actually. This seems to be the syntax in case anyone else is having the issue in the future!
tools: new Tool[] { Tool.CodeInterpreter }


esm version of marked-linkify-it

Thank you for making this plugin. Is it possible to have an esm version of it that will work with marked.esm.js in the browser without a build system?

I've attempted to accomplish this here

I've attempted to accomplish this here

ES module should be working in v1.1.0

ES module should be working in v1.1.0


Feature/orientation vertical

Now the RecyclerView is usable with vertical orientation. The pager2 implementation is not checked yet, but because it's based on RecyclerView it should be easy to implement.
The demo was also updated to show the vertical usage.

I've added your suggestions.


support nonblocking behavior.

i check the lua redis client in https://github.com/agentzh/lua-resty-redis, it support 100% nonblocking behavior. because it uses cosocket api,
dose this client api support non blocking
thanks

You can make a non-blocking (asynchronous) implementation using copas. It will look like this ( example with benchmark):
local redis  = require("redis")
local copas  = require("copas")
local socket = require("socket")

local get_connection = function(host, port, pass)
	local sock = socket.tcp()
	sock = copas.wrap(sock)
	sock:connect(host, port or 6379)

	local client = redis.connect({
		socket = sock,
	})
	client:auth(pass)
	return client
end

local now = socket.gettime
local start = now()
local reps = 1000
for i = 1, reps do

	copas.addthread(function()
		local host, port, pass = "redis", 6379, "redis-pass"
		local client = get_connection(host, port, pass)

		print(i, client:incr("bench") )
		reps = reps - 1
		if reps == 0 then
			print("finished in " .. (now() - start) .. " seconds") -- 0.18 seconds for 1000 requests
		end
	end)
end

copas.loop()

⚠ Yes, we making a new connection for every request, but you always can implement connection pool with copas.queue and copas.semaphore like I done it here: click, so you will not have to create new connections for every request

Here is the benchmark for the default implementation:
local redis = require("redis")

local host, port, pass = "redis", 6379, "redis_pass"

local client = redis.connect(host, port or 6379)
client:auth(pass)

local now = require("socket").gettime
local start = now()
for _ = 1, 1000 do
	print( client:incr("bench1") )
end
print("finished in " .. (now() - start) .. " seconds") -- 11.95 seconds

As you can see, 1000 queries in the synchronous implementation are executed in 11 seconds, while "async" queries are executed in 0.18 seconds


refactor!: replace searchParam(s) to query/queries

#23  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @dhrjarun and the rest of your teammates on  Graphite


[flutter_plugin_android_lifecycle] Add example notice like android_intent_example

Description
I did some automation tools for plugins, and find flutter_plugin_android_lifecycle example is whiteboard.
At first I thought something went wrong, so I review the document and project, but this is not an exception.
I suggest adding notice like other platform function plugin e.g. android_intent_example show 'This plugin only works with Android'.

Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

@ened, can you please review this?

Hi @ened, can you please look this PR.


Get the old repo running

Will require air table config

I was able to get the old code base up and running. Created a new user and confirmed it in the Airtable


UI enhancement

Is your feature request related to a problem? Please describe.
The UI of the website is really dull, it can be made to look way better.
Describe the solution you'd like
Adding some kind of UI tools to better the cards and buttons and dropdowns.
Describe alternatives you've considered
Using Material Ui or anything similar to better the UI for the pages.
Additional context
Please assign this issue to me, I am a GSSoC '24 contributor.

Please share the New UI So that we can proceed with !
Thank You

Sure I would edit it and share it!

Where did you shared it @Rakshit-gen

I would share it, haven't done it yet @thestarsahil

Okay , When the edit will done share it !

Okay for sure!

Hey @thestarsahil
Can this issue be assigned to me for gssoc '24
Regards,
V Meenakshi Iyer

@meenakshiiyer2531 No,
I'm currently working on it
Kindly find other issues to work on thank you.


refactor: Remove unnecessary instances of keepReconnecting

Description
closes: #1380

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] added appropriate labels to the PR
[ ] targeted the correct branch (see PR Targeting)
[ ] provided a link to the relevant issue or specification
[ ] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Codecov Report

Merging #1442 (96920cc) into main (7c5df71) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1442      +/-   ##
==========================================
- Coverage   52.77%   52.76%   -0.01%
==========================================
  Files          71       71
  Lines        6759     6762       +3
==========================================
+ Hits         3567     3568       +1
- Misses       2922     2924       +2
  Partials      270      270

Impacted Files
Coverage Δ

app/upgrades/v3/min_commission.go

app/upgradev3/migrations.go
78.26% <0.00%> (ø)

ante/ante.go
60.00% <0.00%> (+1.37%)
:arrow_up:

@mergifyio backport release/price-feeder/1.x.x

@mergifyio backport release/price-feeder/v1.x.x


[4.0] The select_from_array column breaks on the Preview screen if there is only one option

Bug report
What I did
I used the "select_from_array" column with only one option in the array of the "options" attribute. For example, I have a column named Sizes, which I used to show them on the Preview screen:
[
    'name' => 'sizes',
    'label' => "Sizes",
    'type' => 'select_from_array',
    'options' => [1 => 'S'],
],

In the database, the sizes column is a JSON one, and it is saved like this: ["1"]. The attribute is also added to the $casts property to cast it as array.
This works properly when multiple options are chosen (and the value on the database look something like this: ["1", "2", "3", "4"]). I'm also not exactly sure if the options attribute value is correct, since on the documentation the example uses an array of two elements.
What I expected to happen
In the preview screen, the column should read:
Sizes: S
As an added note, when multiple options are chosen, the column reads like this (which is correct):
Sizes: S, M, L
What happened
I get an Array to string conversion error.
What I've already tried to fix it
So from looking at the select_from_array.blade.php file on the views/columns folder inside the Backpack package, I find this bit of code starting from line 9:
if (is_array($values)) {
        $array_of_values = [];

        foreach ($values as $key => $value) {
              $array_of_values[] = $column['options'][$value];
        }

        if (count($array_of_values) > 1) {
             echo implode(', ', $array_of_values);
        } else {
            echo $array_of_values; // This tries to print the array directly.
        }
} else {
       echo $column['options'][$values];
}

Because $array_of_values has only one option, this executes the else block, which tries to echo an array. Unless I'm doing something wrong with how the options are passed when defining the column on the CrudController or how the value is saved to the database, looks like there are two solutions here:

Instead of checking if the count is > 1, it should be >= 1.
On the else block, it should echo $array_of_values[0].

Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
PHP version: 7.2.1
Laravel version: 6.5.1
Backpack CRUD version: 4.0.14
MySQL version: 5.7.23
Also, just wanted to let you know that this is a great library, thank you for the excellent work on this!

Hello @nahuelmino
Thank you for spotting this issue.
I could indeed confirm and submit a PR to fix it.
I will be closing this issue as we already have a working solution, please if you have something to add on this conversation do it here in PR #2229
One more time, thank you very much.
Best,
Pedro

Merged! Thank you @nahuelmino & @pxpm .


onnx float16 compatibility

Currently validation all passes locally for me (on METAL)
I tried running it with CUDA on a colab notebook but it fails on CLANG validation... (spent quite awhile trying to figure out why but no luck.)
probably not CUDA's fault.
A little unsure the validation will pass for CI...

I see many type improvements and debug message in this one. Can we get a pr that fixed device specific checking in first? Separating behavior change v.s. test improvement would make this one easier to review. Fine to add type change and debug message change in that too.

i'd merge the test fix first then i will review this one. ci benchmark failed too

it's weird that it's a dtype error not precision error, maybe it's different torch version? you can sync to master to remove the flaky mac test

can we get the buffer_parse cleanup merged? i think it's quite nice

Want to update this? I think there's good stuff in here


Equal val_mean_pos and val_mean_neg during training

Hi everyone!
After upgrade tfsim to 0.15.2 and start using EfficientNetSim i have same mean_pos and mean_neg on validation set:
Epoch 2/128
256/256 [==============================] - 57s 225ms/step - loss: 1.5161 - mean_pos: 0.0641 - mean_neg: 0.1761 - val_loss: 1.0291 - val_mean_pos: 0.0828 - val_mean_neg: 0.0828
Epoch 3/128
256/256 [==============================] - 57s 222ms/step - loss: 1.3810 - mean_pos: 0.0529 - mean_neg: 0.1934 - val_loss: 0.8178 - val_mean_pos: 0.0771 - val_mean_neg: 0.0771
Epoch 4/128
256/256 [==============================] - 56s 218ms/step - loss: 1.2050 - mean_pos: 0.0454 - mean_neg: 0.2100 - val_loss: 0.7022 - val_mean_pos: 0.0855 - val_mean_neg: 0.0855
Epoch 5/128
256/256 [==============================] - 56s 217ms/step - loss: 1.0587 - mean_pos: 0.0417 - mean_neg: 0.2269 - val_loss: 0.6784 - val_mean_pos: 0.0712 - val_mean_neg: 0.0712
Epoch 6/128
256/256 [==============================] - 56s 217ms/step - loss: 0.9288 - mean_pos: 0.0385 - mean_neg: 0.2400 - val_loss: 0.5951 - val_mean_pos: 0.0586 - val_mean_neg: 0.0586
Epoch 7/128
256/256 [==============================] - 56s 217ms/step - loss: 0.8379 - mean_pos: 0.0359 - mean_neg: 0.2513 - val_loss: 0.4841 - val_mean_pos: 0.0930 - val_mean_neg: 0.0930
Epoch 8/128
256/256 [==============================] - 56s 217ms/step - loss: 0.6939 - mean_pos: 0.0347 - mean_neg: 0.2650 - val_loss: 0.5244 - val_mean_pos: 0.0813 - val_mean_neg: 0.0813
Epoch 9/128
256/256 [==============================] - 56s 219ms/step - loss: 0.6005 - mean_pos: 0.0333 - mean_neg: 0.2800 - val_loss: 0.4762 - val_mean_pos: 0.0842 - val_mean_neg: 0.0842
...

Could you please suggest a possible reason for this behavior?
Use this model:
model = tfsim.architectures.EfficientNetSim(
    input_shape=(224 224, 3),
    embedding_size=128,
    weights='imagenet',
    trainable='partial',
    l2_norm=True,
    include_top=True,
    pooling='max',    # Can change to use `gem` -> GeneralizedMeanPooling2D
    gem_p=3.0,        # Increase the contrast between activations in the feature map.
)

model.compile(
    optimizer=tf.keras.optimizers.Adam(0.0001),
    loss=tfsim.losses.MultiSimilarityLoss(distance='cosine'),
    metrics=[
        tfsim.training_metrics.avg_pos(distance='cosine'),
        tfsim.training_metrics.avg_neg(distance='cosine'),
    ],
)

history = model.fit(sampler, epochs=128, validation_data=(x_test, y_test))

Test set contain 60 classes and 24 samples per class.

Hi @DanilZittser, thanks for raising this issue. I'll try and take a look into it this week.

@owenvallis, looking forward to it!
TodayI started training the model in the Yandex.Cloud and get the same problem:
...
Epoch 12/64
256/256 [==============================] - 145s 566ms/step - loss: 0.4077 - mean_pos: 0.0194 - mean_neg: 0.2479 - val_loss: 0.4174 - val_mean_pos: 0.3327 - val_mean_neg: 0.3327
Epoch 13/64
256/256 [==============================] - 145s 567ms/step - loss: 0.3559 - mean_pos: 0.0174 - mean_neg: 0.2489 - val_loss: 0.4322 - val_mean_pos: 0.3646 - val_mean_neg: 0.3646
Epoch 14/64
256/256 [==============================] - 145s 566ms/step - loss: 0.3199 - mean_pos: 0.0154 - mean_neg: 0.2508 - val_loss: 0.4136 - val_mean_pos: 0.3415 - val_mean_neg: 0.3415
Epoch 15/64
256/256 [==============================] - 145s 567ms/step - loss: 0.2805 - mean_pos: 0.0155 - mean_neg: 0.2600 - val_loss: 0.4218 - val_mean_pos: 0.3268 - val_mean_neg: 0.3269
Epoch 16/64
256/256 [==============================] - 145s 566ms/step - loss: 0.2463 - mean_pos: 0.0143 - mean_neg: 0.2526 - val_loss: 0.4155 - val_mean_pos: 0.3323 - val_mean_neg: 0.3323
...

Today i used this versions of packages:
tensorflow==2.6.0
tensorflow-datasets==4.5.2
tensorflow-estimator==2.7.0
tensorflow-metadata==1.5.0
tensorflow-similarity==0.15.2

In first my post i used this version:
tensorflow==2.4.4
tensorflow-datasets==4.4.0
tensorflow-estimator==2.4.0
tensorflow-io-gcs-filesystem==0.23.1
tensorflow-metadata==1.5.0
tensorflow-similarity==0.15.2

Hi @DanilZittser,
Since this is just happening on the validation set, it might be that the model isn't generalizing and is unable to separate the validation examples. Can you try adding the min_ and max_ training metrics as well?

Hello, @owenvallis!
The problem was that the validation data was sorted by labels, so the batch rarely consisted of different labels.
How correct is it to use MultiShotMemorySampler for validation data?

Hmm, that's odd though, the sampler randomly samples elements from each class to ensure we get at least a pair of examples per class per batch. Can you share the size of the contiguous blocks of class labels in y_validate and the values you had for:

env.classes_per_batch
env.examples_per_class_per_batch
env.steps_per_epoch

I'd like to check the batch outputs of the MultiShotMemorySampler.

env.classes_per_batch = 128
env.examples_per_class_per_batch = 4
env.steps_per_epoch = 1024

I using Sampler only for train data, validation data was simple tuples ((x[test_mask, ...], y[test_mask, ...])) sorted by labels.

Ah, I see! Yeah, this would totally cause the issue you saw.
Glad to see you isolated the issue and let us know if anything else comes up.
Cheers,


Rename process.runtime.jvm.cpu.utilization to process.runtime.jvm.cpu.recent_utilization

Fixes #42
Renames process.runtime.jvm.cpu.utilization to process.runtime.jvm.cpu.recent_utilization to make it clear that this is not "utilization since last measurement" (or "utilization since start").

Shouldn't you add the rename to the schema file?

@specs-semconv-maintainers I think this is ready to merge now, thx


Nightly builds don't work on linux and windows.

On linux, zip files don't preserve file permissions and you can't successfully launch tofino. (I imagine that's the same for Mac?)
On windows, tofino is completely black. UI "works" as I'm able to close the browser by clicking blindly on the close button on the upper right, but everything is black.

Is the problem with the packaged builds or is everything working on when building yourself from source?

Haven't tried building it from sources.
For linux, it is only a packaging issue.
It is harder to say for the issue on Windows...

Packaged builds work for me on OS X

Let's use this issue to track the linux issue, we probably need to switch to tar.bz2 packaging. For windows please file a new issue if you can reproduce it, it seems to work for me.


Added list operations

Added two files adding examples about list operations in python(reversing a list - with list slicing or with a python base function)
Feel free to edit the code at your convenience

Thank you sir, deployed here with some format edits:
https://onelinerhub.com/python/reverse_a_list
https://onelinerhub.com/python/reverse_a_list_slicing


Detect order of execution of the steps by producer consumer variables

Based on the calls to produce and to consume, we should be able to define the order of the tests.

Start first by steps that neither produce nor consume

execute steps that produce only

execute steps that produce; but consume elements in previous steps

execute steps that consume

This is covered by permutation tests


Make the warning about JSON BigQuery column type more precise

Took me a while to figure I should use com.fasterxml.jackson.databind.JsonNode to map to JSON BigQuery column, so updating the warning log accordingly to help the next ones.
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

assign set of reviewers
(test fail due to unrelated timeout)


Error in Pip install

When I try pip install ., I run into
'setuptools.build_meta' has no attribute '__legacy__'

Following some recommendations online, I also tried pip install . --no-use-pep517, however, to no avail, since that leads to ImportError: No module named 'skbuild'.
Full installation error output:
Processing /home/aalok/code/hanabi/hanabi-learning-environment
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmphjwdxubr
       cwd: /tmp/pip-req-build-6lvo9jzu
  Complete output (10 lines):
  Traceback (most recent call last):
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 85, in get_requires_for_build_wheel
      backend = _build_backend()
    File "/home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py", line 76, in _build_backend
      obj = getattr(obj, path_part)
  AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /home/aalok/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmphjwdxubr Check the logs for full command output.

I run into a similar problem where I got ImportError: No module named 'setuptools.build_meta'. I'm running it in virtualenv and it got fixed by creating the virtualenv without -system-site-packages flag. You can check out this thread for a more detailed discussion. I think there is someone having the same issue without using virtualenv.
https://github.com/pypa/pip/issues/6264


Build App is broken

Apktool Version 2.2.2
Operating System (Mac, Linux, Windows) - Windows
APK From? (Playstore, ROM, Other) - Internal

Stacktrace/Logcat
App cannot be installed something is broken
I only decoded and build the app with:
java -jar C:\Windows\apktool.jar d D:\MScAN_2.2.apk D:\test
D:\test>java -jar C:\Windows\apktool.jar b .
On installing the app there comes an error:
App is broken...
Compiling without any errors

Run adb logcat during application install to get the real error as there isn't much, if any, information to go on here.

Closing due to no response in 1+ month. If you can get an adb logcat of the failure and potentially apk as well we can revisit.