Reconfigure FirebaseApp instance after first time initialisation

For this use case, Since I am not initialising in AppDelegate, for the very first time, I cannot get FCM_TOKEN right away. The Actual GoogleServiceInfo.plist file's data will be available to me after I successfully login where I was planning to configure at that point. But the problem is, while login, I need FCM_TOKEN to be passed as a parameter.
To overcome that I added a dummy GoogleServiceInfo.plist (which belongs to a different project), initialised using this GoogleServiceInfo.plist  file and then got the FCM_TOKEN right away. Performed the Login and got the real(the one that I need for the client using my app currently, which I figure out during login) GoogleServiceInfo.plist data. But now when I'm trying to reconfigure the app using the new data, it says

*** Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.'

Is reconfiguration somehow possible, like disabling the previous one and initialising a new one or is there some other approach to resolve this ( other than not requiring FCM_TOKEN as parameter for the Login API call)
Also, If I change the approach the avoid FCM_TOKEN at login, when I reconfigure, I get this warning in console

Analytics requires Google App ID from GoogleService-Info.plist. Your data may be lost. Google App ID has been changed. Original, new ID: <GoogleServiceInfo.plist's App ID>,

Hey @bakshioye, this is currently not (cleanly) possible. You can delete the default app and reconfigure it, but it may result in lost Analytics events.

How do I delete it and reconfigure? I'm trying  FirebaseApp.app() = nil but gives the following error :

Expression is not assignable: function call returns immutable value

Use this method.

Also,  func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) method is being called multiple times, 3 to be precise, during fresh installation of the app with 3 different tokens. After fresh installation of the app, I am configuring the FirebaseApp twice, one at start of the app and second after Login. After this, for every following launch of the app, FirebaseApp is configured only once and this method is called only once
When exactly is this method called? What triggers it?

It's called when the system supplies a new APNs token. You can check when your app receives a new device token with this method.

@morganchen12  No I'm talking about the one that Apple Push Notification framework generates, that is only generated once, I am talking about the one that Firebase generates, the FCM_TOKEN, which is generated 3 times and in that too, all the 3 are completely different.

It's called whenever Firebase gives you a new FCM token, and is guaranteed to be called (asynchronously) when your app receives a new device token. It may be called more often than that though. You should use the latest token you receive.

@morganchen12  Is there a way to disable the incoming FCM token? Like the FCM token linked to the Device token is generated and now I tell Firebase please don't generate anymore FCM tokens ? Also, is it called/ generated (or in short, the above delegate method is called) when I configure the FirebaseApp ? Because after initial app setup (First time installation), I am not generating the device token on subsequent app launches but the delegate method is still called every time so I think it is somehow linked to the FirebaseApp initialisation as well because that is the only thing that I am performing on each app launch.
Also, I send the FCM Token to the backend in the Login API, at that point I have already generated 2 different FCM tokens (one from FirebaseApp init and one from Device token, I think) and the second one gets sent to the backend.
Now, I get the actual(related to the client) Firestore data in the login response and then reconfigure FirebaseApp using that data and then another FCM token is generated and on each subsequent launch of the app, this token(last, the third one) is provided via delegate method every time. But since I have already sent the FCM token to the server during login, this one is of no use but it is the latest one !  What should I do in this scenario ?

Messaging will return the existing token on each app launch, but this token should not be different from previous tokens on every app launch. When you get a new token, you should just overwrite the previous one in Firestore.

@morganchen12  But rather than each launch of the app, is it linked to Firebase's initialisation (as Firebase is also initialised during app launch) ? Because the thing I observed is the following:
During fresh(first) installation of the app:
1 FCM token(say abc) generated when the app is launched
1 FCM token(say def) generated when device token is generated
1 FCM token(say ghi) is generated when I reconfigure the default Firebase instance with other data (i.e. data fetched from the backend rather than GoogleServiceInfo.plist inside the app)
On each subsequent launch:
1 FCM Token (ghi) is generated on the launch of the app (Using the data that came in from the backend)
By generating, I mean Messaging's func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) is called
Now, after fresh installation, for each subsequent launch, I am not performing the following two tasks (or one can say the following tasks were only performed on fresh installation a.k.a first time app installation):

Reconfigure firebase app (meaning only configured once when inside didFinishLaunchingWithOptions) rather than twice as compared to first time installation
Device token generation

Since these two events are not performed for the subsequent launch, I think FCM token is not generated 2 more times i.e only generated 1 time compared to the 3 times for first time installation
So I think Firebase initialisation also triggers the delegate method and since I am initialising with the same data on each subsequent launch, the FCM token remains the same. Is the assumption correct ?

Messaging requires FirebaseApp to be initialized before it can run, so it should not return a new token before the FirebaseApp has been initialized. Each Messaging token is tied to a particular FirebaseApp, so it should give you a new token if you reconfigure Firebase with a new app.

Thank you @morganchen12 for the detailed explanation


Code release

Your work is excellent, but when will the code be released?

Thanks! It will be released as soon as possible, and will no later than the ECCV'24 (10.1).


Is it possible to use plugins with HttpMethodsClient?

This is my logic
    $client = new HttpMethodsClient($client, $messageFactory);
    $this->http = new PluginClient(
          $client,
          [$headerSetPlugin, $contentLengthPlugin]
    );

    $response = $this->http->post($path, $headers, $body);

I get the error Fatal error: Call to undefined method Http\Client\Common\PluginClient::get()
How can I use the methods of HttpMethodsClient with those plugins?

Hello, you have wrap the PluginClient into the HttpMethodsClient:
    $client = new PluginClient(
          $client,
          [$headerSetPlugin, $contentLengthPlugin]
    );
    $this->http = new HttpMethodsClient($client, $messageFactory);

    $response = $this->http->post($path, $headers, $body);

Also, this library is deprecated. You should use php-http/common


Use a specific version of libsodium

If possible I think that a very valid issue we could tackle is to use a specific version of libsodium and build it with a build.rs. This ensures we know what is built and tested with various tags etc.
A secondary but very beneficial feature of this would be cross compiled of rust code is now very simple, but libsodium requires separate build script etc. If we combine this then use of sodiumoxide in cross compile becomes much simpler.
If we did a PR for this, how would it be received?

I'm uncertain to be honest. When it comes to dynamic C-libraries I believe that they should be installed on the system and linked to (just like we are doing now). Otherwise if the underlying library has security issues we need to do a whole new update of sodiumoxide to not have the same issue. On the other hand I agree that the ergonomics could be better, somehow it would be nice if cargo allowed us to define external dependencies and print out a nicer error message if it's not found.

Yes I am thinking more static link here. For dynamic then not so sure. I am not all that comfortable with dynamic link and security software. I fear injection etc. I think if the underlying lib has a security issue then update is good actually as it helps take users to a new patched version of both (perhaps).
I wonder if there can be some comprimise, like conditional compilation or similar, although that screws with crates.io really?

@dirvine If you find out a good way to solve this then please let me know and we'll discuss it further. Closing the issue for now.

Wll do, we are working on some trial implementations and looking first at a sodiumoxide_extras crate.  The intention being to check these things out (also seeded rng etc.) and from there look to get these PR's to you if you see them as useful.
Thanks again for the work you do here. We will try and help where we can.


The closed dialog which previously opened by clicking one action on the 'Actions' panel pops up again after pressing Enter

Storage Explorer Version: 1.20.0-dev
Build Number: 20210604.1
Branch: main
Platform/OS: Linux Ubuntu 18.04/ MacOS Big Sur 11.3
Architecture: x64
How Found: Exploratory testing
Regression From: Not a regression
Bug Descriptions
Open a dialog by clicking one action on the 'Actions' panel ->  Close the dialog without executing any operation -> Press 'Enter' then the dialog pops up.
Steps to Reproduce

Expand one storage account -> Blob Containers.
Select the 'Blob Containers' node -> Go to its 'Actions' panel.
Click 'Open Container by Name...' -> Closed the prompt dialog by clicking 'X' or 'Cancel' button.
Press 'Enter' -> Check no dialog pops up.

Expected Experience
No dialog pops up.
Actual Experience
The 'Open Container by Name...' dialog pops up.
Additional Context
This issue doesn't reproduce on Windows 10.

@v-xianya for this test case, the behavior you are seeing on mac and linux is expected. So the bug here is against windows. We will look into this.

@v-xianya it seems this is a regression, at least for 1.19.1?

Hi @MRayermannMSFT yes, you are right. It is a regression from 1.19.1 on Windows.

Hi @JasonYeMSFT Could you help to take a look at bug 4521?


Consider cleaning up logs for no available runners

When restarting controllers or deploying a lot of modules, we end up with a lot of logs.
Each time we are looking for a free runner but fail to find one we log.
So if we are waiting for runners to come online, we get:
number of controllers (2) * number of waiting modules (10?) per second
We could coalesce these so that each controller just prints out one log of which modules are waiting?

Nevermind its all async and we probably don't want to delay the logs


fix: LoadBase Selector cannot follow the region distribution rules

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
fix LoadBase Selector cannot follow the region distribution rules
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@MichaelScofield @fengjiachun PTAL


JFoenix 8.0.8 does not seem to be compatible with ProGuard

I have a project where I am using JFoenix via Gradle (compile 'com.jfoenix:jfoenix:8.0.8'). When I try to obfuscate the compiled fatJar, ProGuard fails with an error:
$ java -jar proguard.jar @rules.pro
ProGuard, version 6.0.3
Reading program jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar]
Reading library directory [C:\Program Files\Java\jdk1.8.0_201\jre\lib]
Preparing output jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0-obf.jar]
  Copying resources from program jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar]
Error: Can't write [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0-obf.jar] (Can't read [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar] (Duplicate jar entry [com/jfoenix/animation/JFXNodesAnimation$$Lambda$1.class]))

I've been trying to figure this out for a few days and this is the closest I can get to success. Anybody have any ideas?
System Info
OS
Windows 10
JDK Version
Oracle 1.8.0_201
ProGuard version
ProGuard, version 6.0.3
JFoenix version
8.0.8
rules.pro
-injars asta-2.0.jar
-outjars asta-2.0-obf.jar
-target 1.8
-libraryjars "C:\Program Files\Java\jdk1.8.0_201\jre\lib"
-overloadaggressively
-keep class com.jfoenix.**.**.** {*;}
-dontwarn
-obfuscationdictionary ..\..\obfuscation-dictionary.txt
-classobfuscationdictionary ..\..\windows-dict.txt
-keep class * { public static void main(java.lang.String[]);}
-keep class Server.ClientObject {*;}
-optimizationpasses 3
-allowaccessmodification
-keepparameternames
-dontnote

Here is a hexdump of the end of the JAR (when ProGuard stops writing):
$ cat asta-2.0.jar | xxd | tail -n 20
00000230: 502c cd03 cb1d 8670 a9dc 5110 c392 8c08  P,.....p..Q.....
00000240: 1405 1216 6308 214e 2617 5e63 86ec cce4  ....c.!N&.^c....
00000250: cbae bc8f 73df f4a6 2e5c bd55 0929 86ed  ....s....\.U.)..
00000260: 7f06 2361 8de2 18f9 e1f8 9ca1 d618 76e7  ..#a..........v.
00000270: 6ebe fd5b ef86 1828 83ac 8c34 720c 71df  n..[...(...4r.q.
00000280: b8c5 75d7 76ae d4bf 6ccb 3fcc 1a9c 4043  ..u.v...l.?...@C
00000290: e424 cb94 4e81 2172 4033 246b 5444 4059  .$..N.!r@3$kTD@Y
000002a0: d19d 12d9 d14f 1126 8d38 52b6 a8ca 5015  .....O.&.8R...P.
000002b0: a2b7 5cb9 c772 a57a 87c4 0dc4 4513 6325  ..\..r.z....E.c%
000002c0: 6072 01a3 546e 91a8 be60 f501 799f 8a61  `r..Tn...`..y..a
000002d0: 1d1b 0195 2667 26b4 2784 cec9 6df3 da43  ....&g&.'...m..C
000002e0: f00e 504b 0304 0a00 0008 0800 4e59 7e4d  ..PK........NY~M
000002f0: 340c e3fd 5c01 0000 8c02 0000 3700 0000  4...\.......7...
00000300: 636f 6d2f 6a66 6f65 6e69 782f 616e 696d  com/jfoenix/anim
00000310: 6174 696f 6e2f 4a46 584e 6f64 6573 416e  ation/JFXNodesAn
00000320: 696d 6174 696f 6e24 244c 616d 6264 6124  imation$$Lambda$
00000330: 322e 636c 6173 738d 524b 4bc3 4018 9ced<EMAIL_ADDRESS>00000340: c3d8 18db 5aed 4bab bd04 ece3 10db 9b54  ....Z.K........T
00000350: 8422 1691 a2b7 a2c7 6d9a d694 3681 184a  ."......m...6..J
00000360: fd57 0a                                  .W.

I don't know much about proguard. Have you tried with -verbose option ?
I'm curious, do you know if the following two lines are equivalent ?
-keep class com.jfoenix.**.**.** {*;}
-keep class com.jfoenix.** {*;}

Here is the output with the -verbose option:
ProGuard, version 6.0.3
Reading input...
Reading program jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar]
Reading library directory [C:\Program Files\Java\jdk1.8.0_201\jre\lib]
Initializing...
Ignoring unused library classes...
  Original number of library classes: 31511
  Final number of library classes:    1074
Backporting class files...
  Number of converted string concatenations:     0
  Number of converted lambda expressions:        0
  Number of converted static interface methods:  0
  Number of converted default interface methods: 0
  Number of replaced Java 7+ method calls:       0
Inlining subroutines...
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 980
  Final number of program classes:    980
Optimizing (pass 1/3)...
  ... snip ...
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 980
  Final number of program classes:    980
Optimizing (pass 2/3)...
  ... snip ...
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 980
  Final number of program classes:    980
Optimizing (pass 3/3)...
  ... snip ...
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 980
  Final number of program classes:    980
Obfuscating...
Setting target versions...
Preverifying...
Writing output...
Preparing output jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0-obf.jar]
  Copying resources from program jar [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar]
java.io.IOException: Can't write [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0-obf.jar] (Can't read [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar] (Duplicate jar entry [com/jfoenix/animation/JFXNodesAnimation$$Lambda$1.class]))
        at proguard.OutputWriter.writeOutput(OutputWriter.java:202)
        at proguard.OutputWriter.execute(OutputWriter.java:89)
        at proguard.ProGuard.writeOutput(ProGuard.java:515)
        at proguard.ProGuard.execute(ProGuard.java:210)
        at proguard.ProGuard.main(ProGuard.java:572)
Caused by: java.io.IOException: Can't read [E:\Backup stuff\Code\IdeaProjects\Asta\build\libs\asta-2.0.jar] (Duplicate jar entry [com/jfoenix/animation/JFXNodesAnimation$$Lambda$1.class])
        at proguard.InputReader.readInput(InputReader.java:214)
        at proguard.InputReader.readInput(InputReader.java:184)
        at proguard.OutputWriter.writeOutput(OutputWriter.java:191)
        ... 4 more
Caused by: java.io.IOException: Duplicate jar entry [com/jfoenix/animation/JFXNodesAnimation$$Lambda$1.class]
        at proguard.io.ZipOutput.createOutputStream(ZipOutput.java:155)
        at proguard.io.ZipOutput.createOutputStream(ZipOutput.java:120)
        at proguard.io.JarWriter.createOutputStream(JarWriter.java:137)
        at proguard.io.FilteredDataEntryWriter.createOutputStream(FilteredDataEntryWriter.java:110)
        at proguard.io.FilteredDataEntryWriter.createOutputStream(FilteredDataEntryWriter.java:110)
        at proguard.io.ClassDataEntryWriter.createOutputStream(ClassDataEntryWriter.java:93)
        at proguard.io.ExtraDataEntryWriter.createOutputStream(ExtraDataEntryWriter.java:135)
        at proguard.io.IdleRewriter.read(IdleRewriter.java:49)
        at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
        at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
        at proguard.io.JarReader.read(JarReader.java:83)
        at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
        at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
        at proguard.InputReader.readInput(InputReader.java:210)
        ... 6 more

Regarding **.**.** {*;} vs ** it should be the same. The double-asterisk in the package means every class under every package under that top-level package is kept.

Hi @cbrnrd,
I'm not a ProGuard expert, but could it be that you are referencing JFoenix jar more than once in your project?

@jfoenixadmin I've decompiled the jar to check just that and I'm sure. JFoenix is the only dependency in my project, so there couldn't be any other deps referencing it. If you mean am I importing it more than once, then yes.

yes multiple imports might be the cause

I'll test it and let you know.

It didn't change anything, still the same error trace. I also tried adding
-dontshrink
-dontobfuscate
-dontoptimize

to the rules, but it did nothing.
Is com.jfoenix.animation.JFXNodesAnimation the only abstract class in JFoenix? That might be causing something weird to happen within proguard.


Barplot visualization: site footer still shows behind barplot for Bob in FF and Chrome on Windows and Linux

See my comment on an older PR
@moontrip couldn't reproduce it, but I'm getting it all the time with barplot (after choosing a main variable).  The empty plot is OK (footer is beneath it) but when you choose a variable, the footer gets partially hidden behind the plot.
Other plots (scatter, histogram) are fine.
Reproduced in Chrome, so unlikely a FF extension problem.

I made an investigation - seems to be because the fullscreen barplot plot component does not have a pixel height (or width) and seems to be defaulting to 100%.  This could be fixed by setting width and height to e.g. 1000 and 600 (like the other viz's), but maybe there's a better solution for all plots that doesn't rely on fixed sizes? (I am no expert on this matter...)

@bobular Thank you for your tests and investigations 👍 I could reproduce the issue so I have decided to set the width and height for now like the style at histogram. Relevant changes are made at barplot component (at web-component) to allow number and string values for width and height.
changes at viz are also made in this PR


Fix function prototypes in simd.h test

Clang is no longer allowing function prototypes to leave out return types (see https://github.com/llvm/llvm-project/commit/2cb2cd242ca08d0bbd2a51a41f1317442e5414fc). Fix a test header that does this for no particularly good reason.
Part of rdar://113413583.

@swift-ci smoke test

Yes, the functions implicitly returned ints before. However, before the header's test functions were mass-updated in 2019, they had explicit void return types, so I think that's the actual intent of the test: https://github.com/apple/swift/commit/1a9ae47d062814934f02748d69031210a096d668#diff-15eb75e568c5d065782cde9f8f57dc9f85ee7fece17776a27f5ee0894bcce5cfR32-R33

@swift-ci please smoke test macOS platform


[Bug] Sticky teleportation has never worked

Repro steps:

Sit on a horse/pig
Teleport either yourself or the pig (I used (10, 0, 0))
Only the selected entity is teleported, not the entire stack

Tested on Fabric 0.10.3, 0.9.6, and 0.9.2, and Forge 0.10.3, 0.9.6, and 0.9.4.
See also: #186

I'm just gonna remove this whole mechanic, no one uses it and it's dumb

maybe people would use it if it worked? i think it's a neat tradeoff to get no drop teleporting but have to manage a living mob

如果它有效，也许人们会使用它？我认为这是一个巧妙的权衡，没有掉落传送，但必须管理一个活生生的生物

oh we can use the ender pearl to get this purpose, just throw it into a area of rising bubbles,   we can teleport it to any place that we want to go.


Button missing from github issues

Environment details

Operation system: Windows 10 - chrome 54.0.2840.71 m (64-bit)
Extension version: Version (1.0.12)

Expected behavior
Button to start/stop tracking in github issues.
Actual behavior
No more button.
Steps to reproduce the behavior
Go to github issues and no button appears.
Additional details

screenshots or screencapture

Fixed with 514928eb58f7822f921e27b9575f2be31ee25aef
It's just not released. We'll try to release as soon as possible.
Thank you for your input.


Added "Pro Bash Programming/Chris F.A. Johnson"

What does this PR do?
Add resource
For resources
Description
A great bash book that taught me how to not be afraid of scripting
Why is this valuable (or not)?
It's not long, amazingly explained, and not extremely old
How do we know it's really free?
My teacher sent our class this ebook. The author himself told him where he could've found this ebook free.
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

This appears not to be an authorized distribution. Please see docs/CONTRIBUTING.md guidelines.


Release 1.0.0 to signify maturity

This library rocks and hasn't changed recently.  Do you think it is worthwhile to release a 1.0?

Sounds good to me.  Closed with 6bbed5f

Sounds good to me.  Closed with 6bbed5f


CDN Purge requests getting 405 response

Adobe informed us that apparently many purge requests fail:
HTTP/2 405
retry-after: 0
accept-ranges: bytes
date: Tue, 13 Dec 2022 15:50:26 GMT
via: 1.1 varnish
x-served-by: cache-dub4336-DUB
x-cache: MISS
x-cache-hits: 0
expect-ct: enforce,max-age=86400
feature-policy: geolocation 'none'
strict-transport-security: max-age=31557600
server: Apache
content-length: 125

    <title>405 Not allowed.</title>

Error 405 Not allowed.

can be reproduced with
curl -X PURGE -H "Fastly-Key: REDACTED" https://www.netcentric.biz/foo/bar/baz

or

curl -i -X POST "https://api.fastly.com/purge/www.netcentric.biz/foo/bar/baz" -H "Fastly-Key: REDACTED"

Also we need to check that https://www.hlx.live/docs/byo-cdn-fastly-setup#create-vcl-snippets is correctly in place.

removed the custom VCL which blocked the purge and enabled authentication for purges via custom header


Events Committee Tracking

Resolve #767

[x] Create events-committee.near
[x] Deploy indexer
[x] Deploy Front end
[x] Deploy contract

@frol we will need to add EVENTS_COMMITTEE_PUBLIC_KEY and EVENTS_COMMITTEE_PRIVATE_KEY to the github action secrets in order to make the action work.


Release 1.0.0

          2 Messages

:book:
iOS: Executed 1 test, with 0 failures (0 unexpected) in 0.006 (0.021) seconds

:book:
tvOS: Executed 1 test, with 0 failures (0 unexpected) in 0.007 (0.020) seconds

  Generated by :no_entry_sign: Danger


Width issue

I've trying to resize the image to fit into my photo frame but when I change the width to 550 for example the image size in the web ui is showing correctly (550) but the kindle is still showing it as the previous width (600).  The image change is not reflected on the kindle.
My understanding is that the image is drawn from the top left corner of the display and the width and height are reflected accordingly.  Maybe my understanding is incorrect.   I don't seem to have the same issue with @sibbi's version as I can change the height and width and make it fit perfectly within the mounting of the picture frame so maybe this is one of the changed you implemented.
I've also tried the scaling and while this does resize the image it still doesn't change the width of the image in the kindle.
Any help grateful.

I'm not quire sure what you are trying to do.
Do you want to display an image that is not the native side to the kindle?
This repository just hosts code that takes screenshots from Home assistant. All kindle related code is here: https://github.com/lanrat/hass-kindle-screensaver

I have my kindle mounted in a picture frame which is slightly narrower than the width of the kindle display. By using RENDERING_SCREEN_WIDTH I’m trying to adjust the width of the generated PNG so that it fits within the frames aperture.
Although the height and scale options seem to be affecting the image the width doesn’t seem to make a difference.

Ok so I've checked width of the png generated by HASS-screenshot and it is, in this example, 550px as opposed to the default 600px which is correct based on the RENDERING_SCREEN_WIDTH specified. So, as you say, it appears to be an issue with how hass-kindle-screensaver is displaying the image on the kindle side.  I'll raise an issue on that repo.

Closing this in favor of tracking in: https://github.com/lanrat/hass-kindle-screensaver/issues/1


Discuss edge cases of indentation in pretty-format plugins

Do you want to request a feature or report a bug?
Report bugs with indentation in ReactElement and ReactTestComponent plugins
What is the current behavior?
The first problem I found and put aside while writing test cases for #3429 notice that the second and third lines of multiline string  are indented for points prop. If we change the hypothetical component to render a g element in the tree between svg and polyline then the additional level of indentation within a multiline string will defeat ignoring indentation for the points prop and it will appear in the diff as removed and added :(
<svg>
  <desc>
    JavaScript community logo as a stick figure
  </desc>
  <polyline
    id="J"
    points="0.5,0.460
  0.5,0.875
  0.25,0.875"
  />
</svg>

Compare to pretty-format for a similar object which respects the lack of indentation:
Object {
  "id": "J",
  "points": "0.5,0.460
0.5,0.875
0.25,0.875",
}

The second problem I found while studying the code in pretty-format and its plugins. It might become a more than theoretical problem when React components can render fragments.

The plugins call the bound indent function as if it represents one indent level. That assumption isn’t true for an array of elements (or for elements which are props of elements).
Also notice no indentation of the start tag close or the end tag because the code assumes that it is always at the margin.

For a minimal example of array of elements, see:
https://github.com/adriantoine/enzyme-to-json/blob/master/tests/core/__snapshots__/mount.test.js.snap#L222-L231
In the following example, notice how the indent level changes from 2 to 4 starting from the prop
because the total indentation at that point is used incorrectly as one level increment.
Array [
  <div
    id="A"
>
    text of A
</div>,
  <div
    id="B"
    prop={
        <Parent
            propBoolean={true}
            propString="valueA"
        >
            <Child
                propArray={
                    Array [
                        0,
                        1,
                        2,
                      ]
                }
            >
                text of child
            </Child>
        </Parent>
    }
>
    text of B
</div>,
  <div
    id="C"
>
    text of C
</div>,
]

What is the expected behavior?
Plugins (especially for React elements and test objects) return indentation that is consistent with pretty-format for similar data structures (for example, objects).
I am happy to receive your critique about an idea how to solve the problem. Provide as options to plugins two functions (please, please, please suggest better names than the following :-)

returnIndentationString(nLevels) returns the current indentation plus nLevels additional indent levels:

nLevels = 0: element start tag open <type or close > or end tag </type>
nLevels = 1: prop key prop="value" or prop={

returnPrintFunction(nLevels) returns a print function that is bound to the current indentation plus nLevels additional indent levels:

nLevels = 2: multiline prop values enclosed in braces
nLevels = 1: children

Jest 19.0.2 and Node 7.10.0
Depending on your feedback, I can create a sample project for Jest 20 and take a baseline perf profile for a few examples of the unexpected indentation. It seems like calling a print function that is bound with the correct indentation should outperform calling indent to replace the (sometimes incorrect) indentation afterward.

Seems like a nice enhancement, although we need to keep in mind this is a breaking change.

Yeah, for sure. Am interested to know if arrays of test objects might become more common if render method can return arrays of elements in React 16? So far, has been from enzyme query.
There is some irony in the digital archaeology or cultural anthropology:

3.2.0: all my stress tests work correctly in the first version with plugin for test objects :)
3.3.0: multiline strings as prop values of test objects over-indented :(

comment thread: https://github.com/thejameskyle/pretty-format/pull/10#r67083092
pull request: https://github.com/thejameskyle/pretty-format/pull/11

3.4.0 - 3.5.0: only tests plugins at the top level, so hides the other problems
3.5.1: tests plugins at lower levels, so you can see the other problems :(

under-indented end tags of test objects in an array
over-indented props or children child elements
over-indented element props of elements not at top level

3.7.0: React element plugin has same problems for same reasons

Sample of proposed changes to pretty-format/src/index.js so it and plugins indent consistently.
Have adapted perf/test.js and relevant parts of React-test.js plus a few of my stress tests. Need to take a break and get your feedback before I study other plugins than React.
The limiting factor to move forward is whether to adjust the plugin API:

baseline: return plugin.print(val, boundPrint, boundIndent, opts, colors);
proposed: return plugin.print(val, printer, indenter, level, opts, colors); see below

My first attempt a few weeks ago to leave args the same and add properties to opts ran slower than baseline, I guess because of the Object.assign calls and bound function closures.
Proposed version runs faster in many cases and is within measurement precision in the rest :)
internal function arguments

baseline: indent: string, prevIndent: string
proposed: indenter: Indenter, prevLevel: number

assignment statements

baseline: const innerIndent = prevIndent + indent;
proposed: const nextLevel = prevLevel + 1; const innerIndent = indenter(nextLevel);

initialization function, which is not called for basic values

createIndent(indent: number): string { return new Array(indent + 1).join(' '); }
return a function which caches indentations, as follows:

type Indenter = (level: number) => string;

function createIndenter(indent: number): Indenter {
  if (indent === 0) {
    return function () {
      return '';
    }
  }

  let indentation = ['', new Array(indent + 1).join(' ')];

  // Given number of indent levels, return indentation string.
  return function (n) {
    for (let i = indentation.length; i <= n; i += 1) {
      indentation[i] = indentation[i - 1] + indentation[1];
    }
    return indentation[n];
  }
}

bound print function for plugins

baseline: function boundPrint(val) { return print(val, indent, prevIndent, …); }
proposed: function printer(val, level) { return print(val, indenter, level, …); }

bound indent function for plugins

baseline: function boundIndent(str) { … }
proposed: indenter returned from createIndenter(indent) see above

Forgot to say that a way forward is support another key in plugin object for proposed arguments:

upgrade the built-in plugins
to support external plugins, fall back to call baseline print method if new key not in object

It has turned out as Fred Brooks advised: plan to throw one away; you will, anyhow.

After I wrote a memoized version described in the preceding comment, I had second thoughts about garbage collection of indentation array.
So I wrote a version that applies the indentation pattern from pretty-format core to plugins, so you can learn once, serialize anything :)

Measurements of 22 tests adapted from React-test.js plus 3 stress tests for previously incorrect indentation. Each value is a geometric mean for 3 runs of tests (each run after a restart and unconnected to network).

scenario
mean
ratio

baseline
1122281
1.000

memoized
932805
0.831

proposed
905215
0.807

Measurements of 22 tests for hypothesis in https://github.com/facebook/jest/pull/3745 that proposed version will make up the time lost from the plugin shortcut, because it replaces regexp with concatenation.

scenario
mean
ratio

baseline before 3745
679633
1.000

baseline after 3745
702370
1.033

proposed
580285
0.854

Bound print function for plugins

baseline: function boundPrint(val) { return print(val, indent, prevIndent, …); }
proposed: function boundPrint(val, argIndent) { return print(val, indent, argIndent, …); }

Bound indent function for plugins

baseline: function boundIndent(str) { … }
proposed: replaced by indent and prevIndent args (therefore, one less closure :)

Plugin API:

baseline: return plugin.print(val, boundPrint, boundIndent, opts, colors);
proposed: return plugin.WHAT(val, boundPrint, indent, prevIndent, opts, colors);

Both alternatives add an arg so plugin has the indentation. That was the root of the problem.
Y’all have given such super direction about API for my pull requests.
So WHAT do you suggest as an object key for serializers which support the proposed API?
function printPlugin(val, indent, prevIndent, /* and so on */) {}
  // Find plugin whose test matches val.

  if (typeof plugin.WHAT !== 'function') {
    // Old API
    function boundPrint(val) {
      return print(val, indent, prevIndent, /* and so on */);
    }
    function boundIndent(str) {
      const indentation = prevIndent + indent;
      return indentation + str.replace(NEWLINE_REGEXP, '\n' + indentation);
    }
    return plugin.print(val, boundPrint, boundIndent, opts, colors);
  }

  // New API
  function boundPrint(val, argIndent) {
    return print(val, indent, argIndent, /* and so on */);
  }
  return plugin.WHAT(val, boundPrint, indent, prevIndent, opts, colors);
}

What do you think about serialize as property name for the new API?
Because we have already merged breaking changes for edge cases of HTMLElement plugin, how about getting ahead of the current incorrect indentation which seems like it could affect snapshots when render function can return arrays of elements in React 16?
Here is some pseudo Flow.
export type PrintOld = any => string;
export type PrintNew = (val: any, indentation: string) => string;

export type Plugin = {
  print: (
    val: any,
    print: PrintOld,
    indent: Indent,
    opts: PluginOptions,
    colors: Colors,
  ) => string,
  serialize: (
    val: any,
    print: PrintNew,
    indentation: string, // current indentation
    indent: string, // string of spaces whose length is specified by indent number option
    opts: PluginOptions,
    colors: Colors,
  ) => string,
  test: any => boolean,
};

P.S. Thinking about adding an if statement to support old versus new API, I became worried that bound function declarations are “hoisted” within printPlugin to precede the existing if statement, see https://github.com/facebook/jest/blob/master/packages/pretty-format/src/index.js#L698-L724
Indeed, even with no plugins at all, look at the “massive” world.geo.json perf test case!

bound functions
time
ratio

baseline function declaration
70596180
1.0000

const initialized to function expression
46350463
0.6565

arrow function as arg
46068780
0.6526

Maybe this issue becomes “slow good” like a Heinz ketchup advert. Here’s a way to make API of (and code snippets in) plugins very similar to pretty-format core functions:

indentation, depth, refs arguments depend on location of val in tree structure
config object depends only on initial options or defaults

Plugin property:

baseline: print(val, printer, indenter, opts, colors)
proposed: serialize(val, config, printer, indentation, depth, refs)

Plugin callback arg to print descendants:

baseline: printer(val) is bound to the rest of the “state” of the current node
proposed: printer(val, indentation, depth, refs) is bound to unchanging config and plugin provides indentation for the descendant. It might make sense to allow depth or refs to default to the “state” of the current node if the caller leaves either argument undefined

Plugin object args:

baseline: colors and opts which has edgeSpacing, min, spacing properties
proposed: config which has callToJSON, colors, escapeRegex, indent: string, maxDepth, min, plugins, printFunctionName, spacingInner replaces spacing and still depends on min, spacingOuter replaces edgeSpacing and still depends on min

Example of a major core function:

baseline: printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex, colors)
proposed: printComplex(val, config, indentation, depth, refs)

Example of minor core function:

baseline: printList(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex, colors)
proposed: printList(val, config, indentation, depth, refs)

As suggested in preceding comments, we can:

upgrade built-in plugins to new serialize property
support print property in external plugins for as long as needed

Performance tests suggest that:

config object does not slow things down
there is some room for improving lazy conversion from initial options (if any) to config especially for the use case outside Jest of printing a basic value with no plugins.


Error Setting up windows11/windows10 Autolab/Inability to automatically create NetNat

I have built the Windows 11 lab many times on different machines with no errors, so let's see what is different about your setup. First, run Get-PSAutoLabSetting and post the result.  I am assuming no VM gets created.

Initially, I have deployed the Autolab and everything was working fine. But while trying to upgrade to the latest version, I can only setup servers but windows11/windwos10 are showing errors.

Are you logged on with an account name of 'Administrator'? If so, that is the problem.  The configuration assumes you are logged on to your desktop with an account other than Administrator, such as victor. The configuration will create a local admin account in the VM called victor using the lab's default password. It also sets the local administrator account in the VM to the same password.
Either log on with a different account, or edit the VMConfiguration.ps1 file and comment out this section:
        #create a local account with the same name as the person
        #running this config
        user $env:username {
            UserName               = $env:username
            Disabled               = $false
            Password               = $credential
            PasswordChangeRequired = $false
            PasswordNeverExpires   = $True
        }

This should get you past the duplicate resource problem. Then you can log on to the VM using the VM's local administrator account.

I comment out the

Are you logged on with an account name of 'Administrator'? If so, that is the problem. The configuration assumes you are logged on to your desktop with an account other than Administrator, such as victor. The configuration will create a local admin account in the VM called victor using the lab's default password. It also sets the local administrator account in the VM to the same password.
Either log on with a different account, or edit the VMConfiguration.ps1 file and comment out this section:
        #create a local account with the same name as the person
        #running this config
        user $env:username {
            UserName               = $env:username
            Disabled               = $false
            Password               = $credential
            PasswordChangeRequired = $false
            PasswordNeverExpires   = $True
        }

This should get you past the duplicate resource problem. Then you can log on to the VM using the VM's local administrator account.

I commented out the section as instructed and the lab setup was successful. Thank you so much for your support and mentorship.

Glad you got it working. I will have to double-check the documentation to make sure I mention this.


Logging Into OpenSubtitles...

Hey there, I use Kodi across multiple devices and platforms. I stick with Jarvis and use the filmkodi beta repo in most cases. Anyhow, I notice that whenever I am using Specto I get messages that to get rid of ads I need to log into OpenSubtitles. I have an OpenSubtitles account, and I have configured that add-on with my login credentials, but Specto doesn't seem to use them. I think it is using it's own fork of OpenSubtitles, which is fine. However, when configuring the accounts within the Specto add-on "Tools" there doesn't seem to be a place to configure your login credentials for OpenSubtitles. So, it will always end up throwing that error. I am hoping that this feature could be added or that somehow it could/will pull the credentials from the actual OpenSubtitles add-on. Thank you in advance and have a nice day!

OK
OK, i next weekend (28.11.2016) I will add  option to log on to OpenSubtitles account

I know I'm way late in responding, but I wanted to say THANKS A BILLION! You rock mate =D

Joel, can you tell me what you had to do? When I try to use Open subs it
tells me I haven't logged in or something close to that. Was that your
problem?
On Jan 4, 2017 3:19 PM, "joelthepirate"<EMAIL_ADDRESS>wrote:

I know I'm way late in responding, but I wanted to say THANKS A BILLION!
You rock mate =D
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mrknow/filmkodi/issues/608#issuecomment-270475525,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUPc7BrNPL7ce2zUay-XZD99Fd61Tbnvks5rO_6_gaJpZM4KxwyE
.


Workflows are referencing vulnerable actions

Hello, there!
As part of the university research we are currently doing regarding the security of Github Actions, we noticed that one or many of the workflows that are part of this repository are referencing vulnerable versions of the third-party actions. As part of a disclosure process, we decided to open issues to notify GitHub Community.
Please note that there are could be some false positives in our methodology, thus not all of the open issues could be valid. If that is the case, please let us know, so that we can improve on our approach. You can contact me directly using an email: ikoishy [at] ncsu.edu
Thanks in advance

The workflow changelog.yml is referencing action gittools/actions/gitversion/setup using references v0.9.8. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
The workflow changelog.yml is referencing action gittools/actions/gitversion/execute using references v0.9.8. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
The workflow release.yml is referencing action gittools/actions/gitversion/setup using references v0.9.8. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
The workflow release.yml is referencing action gittools/actions/gitversion/execute using references v0.9.8. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.

The vulnerability fix that is missing by actions' versions could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider updating the reference to the action.
If you end up updating the reference, please let us know. We need the stats for the paper :-)

Hi, I will update this to use semantic-release instead


Added case-sensitivity option for phrases

Alright, I've never messed up a merge conflict resolution so bad before but It's fixed now.


Add current version in list command

Hi,
Here a PR to have the current version and the config file on 'tfenv list', like this :
% tfenv list
* 0.10.7 (set by /opt/tfenv/version)
  0.10.6
  0.9.11
  0.8.8
  0.8.4
  0.6.1

This adds a dependency on sed.
Let me know if it's ok for you.
Regards

LGTM 👍


Fix #821

Fix bug #821

Coverage remained the same at 91.53% when pulling d524d2f350a501ad12c6cade13635e678d1d3dab on carloscds:fix821 into 25b0270b2a54edaed4060365b67e37f8ecfb9c2c on code-cracker:v1.0.x.


[Linux] desktop file is lacking a Categories= entry

The desktop file is lacking a Categories= entry in the *.desktop file.
According to the menu spec,

By including one of the Main Categories in an application's desktop entry file, the application will be ensured that it will show up in a section of the application menu dedicated to this category. If multiple Main Categories are included in a single desktop entry file, the entry may appear more than once in the menu.

Hence, please add at least one of the following in the Categories= key.

Main Category
Description
Notes

AudioVideo
Application for presenting, creating, or processing multimedia (audio/video)

Audio
An audio application
Desktop entry must include AudioVideo as well

Video
A video application
Desktop entry must include AudioVideo as well

Development
An application for development

Education
Educational software

Game
A game

Graphics
Application for viewing, creating, or processing graphics

Network
Network application such as a web browser

Office
An office type application

Science
Scientific software

Settings
Settings applications
Entries may appear in a separate menu or as part of a 		"Control Center"

System
System application, "System Tools" such as say a log viewer or network monitor

Utility
Small utility application, "Accessories"

In addition, you could specify one or more from the longer list of Additional Categories.
Please test the result with desktop-file-validate and make sure it passes.
electron-builder offers native support for this since v19.22.1.
Reference: https://github.com/AppImage/AppImageHub/issues/2

I'll update the electron builder while building the package next time. Thanks for the heads up. :-)

Thanks. If you ping me once the next release is up, I'd be happy to include it in the AppImageHub central directory of available AppImages (hey, free advertising!).

That would be great. Thanks a lot.


Serach classifications results are unstable

Describe the bug
Serach results are unstable
To Reproduce
?

Fixed with a reload button. But never happened again in version later than v0.4


Documentation Refactor

RFC: https://github.com/apache/tvm-rfcs/blob/main/rfcs/0027-formalize-documentation-organization.md
Tracking Issue: #8987
Stage 1 of the documentation refactor reorganizes the docs structure,
moving files (without content changes) and adding new scaffolding to
generate the proper document tree.
It does not address naming, style, content, links, or other existing
content in documents that were moved. State 2 will address fixing these
issues with existing content.
Major changes include but are not limited to:

Dividing the existing tutorials into two sections:

Tutorials
How Tos

Moving all of the existing tutorials out of the /tutorial
directory and into the more general /gallery directory.
Breaking up how-tos into individual sections for more
flexibility and more consistent rendering.
Moving content into new classifications:

/docs/arch for architecture guides
/docs/reference for API guides and other reference material
/docs/topic for topic specific guides such as microTVM and VTA
Restructuring /docs/dev

Adding a table of contents to the doc index
Adding instructions on how to install using third-party tlcpack

Stage 2 of the documentation refactor fixes naming and links
in the documentation to be consistent with the overall structure.
Major changes include:

an update to how to contribute to docs.
several updated index pages with title changes to match
the organization style and bring consistency to the sections
expanded descriptions of some page collections
fixed links

Stage 3 of the documentation refactor adjusts CI for the new structure.
The CI build script takes into account the new gallery format. It
also prevents deleting existing documents, and takes advantage of the
_staging and _build directories to clean out previous builds

@Lunderberg I just came to the same conclusion, and addressed it by making a tvm_path_rel variable to use in the Sphinx Gallery ExplicitOrder.

Thanks @hogepodge @Lunderberg @areusch . All the comments are resolved.
I am merging this in given that this is a refactor that could conflict/block future changes and would benefit from prioritization. Let us send followup PRs for future tweaks.


Error when importing Docusaurus Swizzle component into Netlify CMS

Have you read the Contributing Guidelines on issues?

[x] I have read the Contributing Guidelines on issues.

Prerequisites

[ ] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[ ] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
Description
I am encountering an error when attempting to import a Docusaurus Swizzle component into Netlify CMS. For each Docusaurus client API component used within the Swizzle component, Webpack throws an error.
Swizzle Component

Error Example
When including a Docusaurus component such as Link within the Swizzle component, Webpack throws the following error:

Dependencies Structure
Here is the structure of the node_modules directory for Docusaurus and its dependencies:

Reproducible demo
No response
Steps to reproduce
Steps to Reproduce:

Create a Docusaurus app.
Add Netlify CMS to the Docusaurus app.
Import Docusaurus components such as Link into the Swizzle component.
Run Webpack to compile the project.

Expected behavior
the project should compile successfully without any errors from Webpack. Specifically, Webpack should be able to resolve and import Docusaurus components such as Link within the Swizzle component without encountering any issues.
Actual behavior

Your environment

Public source code: No
Public site URL:No
Docusaurus version used:2.4.1

Self-service

[ ] I'd be willing to fix this bug myself.

Please provide a minimal docusaurus.new repro, and use the latest version of Docusaurus. If you do that and can see a bug, we'll reopen.


TAJO-2135: Invalid join result when join key columns contain nulls

First of all, apologize for a large patch.
I added null values to every TPC-H tables in our test, and it makes a lot of changes in tests. However, fortunately, I could find several critical bugs with null values.
Here are the changes of this patch.

Fixed invalid join result problem with null values.
When executing hash join, null values of the right table are filtered out while constructing a hash table.
Fixed invalid cast exception in outer joins with null values.
Fixed the problem of that sort-merge algorithm for full outer join is not executed in tests.
Fixed wrong result of full outer hash join with null values.
Fixed wrong result of RightOuterMergeJoinExec.
Fixed wrong query result on partitioned tables when partition keys contain nulls.
Changed the default null character of text file as '\N'.
Added null values to every TPC-H tables.

I also found two additional bugs in anti join and window function executions with nulls. I think we need to fix these problems in other jiras.

I also added some changes to fix window function test failures because the bug fix is really simple.

@jihoonson
Thanks for your contribution, this PR looks good overall.
After finishing testing on my laptop, I'll leave comments.

+1
The change looks great to me.  Thanks for you effort!

Thanks for your review!


Follow-up tasks for MySQL rewrite

@gunnarmorling This is ready for review, DBZ-3099 will be handled in a separate PR

@jpechane, can you please add a few sentences what's happening on a high level here? Let's make that a habbit for any PR of this size.

Also link to issue, please. Have some compassion for the pour soul reviewing such large PR ;)

Closing, as it's superseded by #2123.


Fix boundary parsing on partial reads

@nicolas-cherel
No externally breaking changes that I can see right now.
I added a new test to make sure that it doesn't break on partial reads. Fixing the partial reads issue required copying BufReader from std and adding a method that reads more data into the non-empty buffer. I'll be drafting an RFC to have this method added to BufReader soon.
The test for Stable fails... because of APIs that have been stabilized since the last Stable release. So... while this is technically still compatible with Stable, it doesn't build on it right now. I don't know when the next release is because I don't keep track of the trains. RFC on what to do about this.
Closes #18.

I commented out the use of recently stabilized APIs that were breaking the Stable build, and replaced them with a substitute. The original code should be reinstated once the next Stable release drops and those APIs are recognized as stable.


Go To Implementation not working with Python

VSCode Version:  1.27.1
OS Version: Ubuntu 18.04

Steps to Reproduce:
Create a new python file and use the following code:
class TestClass:

    def run_this(self):
        self.try_and_click_through()

    def try_and_click_through(self):
        print('Does this work?')

def test_functions():
    does_this_work()

def does_this_work():
    print('How about this?')

If I try "Go To Definition" on either self.try_and_click_through() or does_this_work(), it takes me to the definition. However, once I am at the definition, I cannot "Go To Implementation". I have tried both using the "Ctrl + F12" as well as manually trying to do it. I know you can use "Find All References" to do something similar, but it's not the same.
I think ideally this would work with a "Ctrl + right click", like "Go To Definition" but in reverse, if you are already at the definition.

Does this issue occur when all extensions are disabled?: Yes
(This is the last hurdle I have come across when trying to migrate from PyCharm to VS Code.)

Reading your description it seems that the issue originates from an extension and not VS Code itself. Thereby I will close this issue and kindly ask you to report this issue against the extension repository.
Most extensions are on GitHub as well so it should be easy to file it against the extension. If you open an extension on the market place, click on the Support link to find out more.

Thanks again for your feedback!


Non uniform workgroup size is not supported!!

Output of 'strings libarm_compute.so | grep arm_compute_version':
arm_compute_version=v0.0-unreleased Build options: {'embed_kernels': '1', 'extra_cxx_flags': '-fPIC', 'validation_examples': '0', 'opencl': '1', 'neon': '1', 'build_dir': 'aarch64', 'validation_tests': '0', 'build': 'native', 'benchmark_tests': '0', 'internal_only': '0', 'compiler_cache': 'ccache', 'benchmark_examples': '0', 'arch': 'arm64-v8a', 'Werror': '0', 'examples': '0'} Git hash=d5694c94c4eab2a774d34705959a6d73edad6e2e

Platform:
khadas VIM3
Operating System:
Ubuntu 20.04.3 LTS (Focal Fossa)

Problem description:
I was trying to run a sample image classifier by issuing the following command
python3 run_classifier.py --input_image cat.png --model_file mobilenet_v2_1.0_224_quantized_1_default_1.tflite --label_file labelmappings.txt --delegate_path ~/ArmNNDelegate/libs/libarmnnDelegate.so --preferred_backends GpuAcc CpuAcc CpuRef

The code fails and prints the given output
Info: ArmNN v27.0.0

Warning: WARNING: The given backend path "/build/armnn-SLuJo4/armnn-21.11" does not exist
Info: Initialization time: 134.68 ms

INFO: TfLiteArmnnDelegate: Created TfLite ArmNN delegate.
Error: An error occurred when preparing the network workloads:  in generate_build_options src/core/CL/CLCompileContext.cpp:265: Non uniform workgroup size is not supported!!
Traceback (most recent call last):
  File "run_classifier.py", line 237, in <module>
    main(args)
  File "run_classifier.py", line 185, in main
    interpreter = load_tf_model(args.model_file, armnn_delegate)
  File "run_classifier.py", line 104, in load_tf_model
    interpreter = tflite.Interpreter(
  File "/home/khadas/.local/lib/python3.8/site-packages/tflite_runtime/interpreter.py", line 503, in __init__
    self._interpreter.ModifyGraphWithDelegate(
RuntimeError: TfLiteArmnnDelegate: Exception (TfLiteArmnnDelegate: Network could not be loaded:An error occurred when preparing the network workloads:  in generate_build_options src/core/CL/CLCompileContext.cpp:265: Non uniform workgroup size is not supported!!) caught from LoadNetwork.
Info: Shutdown time: 45.04 ms

Whereas when I execute the same code without GpuAcc, it runs fine and gives the following output
Info: ArmNN v27.0.0

Warning: WARNING: The given backend path "/build/armnn-SLuJo4/armnn-21.11" does not exist
Info: Initialization time: 134.86 ms

INFO: TfLiteArmnnDelegate: Created TfLite ArmNN delegate.
Prediction:  tabby, tabby cat

Info: Shutdown time: 92.84 ms

Attaching my OpenCL version (output of clinfo)
khadas@Khadas:~/armnn/samples/ImageClassification$ clinfo
Number of platforms                               1
  Platform Name                                   ARM Platform
  Platform Vendor                                 ARM
  Platform Version                                OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory
  Platform Extensions function suffix             ARM

  Platform Name                                   ARM Platform
Number of devices                                 1
  Device Name                                     Mali-G52
  Device Vendor                                   ARM
  Device Vendor ID                                0x72120000
  Device Version                                  OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Driver Version                                  2.0
  Device OpenCL C Version                         OpenCL C 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               2
  Max clock frequency                             750MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             384x384x384
  Max work group size                             384
  Preferred work group size multiple              8
  Preferred / native vector sizes
    char                                                16 / 4
    short                                                8 / 2
    int                                                  4 / 1
    long                                                 2 / 1
    half                                                 8 / 2        (cl_khr_fp16)
    float                                                4 / 1
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
  Global memory size<PHONE_NUMBER> (3.621GiB)
  Error Correction support                        No
  Max memory allocation                           971970560 (926.9MiB)
  Unified memory for Host and Device              Yes
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Shared Virtual Memory (SVM) capabilities (ARM)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             0
  Global Memory cache type                        Read/Write
  Global Memory cache size                        131072 (128KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            65536 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   32 bytes
    Pitch alignment for 2D image buffers          64 pixels
    Max 2D image size                             65536x65536 pixels
    Max 3D image size                             65536x65536x65536 pixels
    Max number of read image args                 128
    Max number of write image args                64
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    1
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max number of constant args                     8
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                2097152 (2MiB)
    Max size                                      16777216 (16MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  ARM Platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [ARM]
  clCreateContext(NULL, ...) [default]            Success [ARM]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 ARM Platform
    Device Name                                   Mali-G52
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 ARM Platform
    Device Name                                   Mali-G52
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 ARM Platform
    Device Name                                   Mali-G52

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1

Hi @saswat0
I noticed the following warning:
Warning: WARNING: The given backend path "/build/armnn-SLuJo4/armnn-21.11" does not exist
and ACL version
arm_compute_version=v0.0-unreleased Build options: {'embed_kernels': '1', 'extra_cxx_flags': '-fPIC', 'validation_examples': '0', 'opencl': '1', 'neon': '1', 'build_dir': 'aarch64', 'validation_tests': '0', 'build': 'native', 'benchmark_tests': '0', 'internal_only': '0', 'compiler_cache': 'ccache', 'benchmark_examples': '0', 'arch': 'arm64-v8a', 'Werror': '0', 'examples': '0'} Git hash=d5694c94c4eab2a774d34705959a6d73edad6e2e
It looks like you are using armnn 21.11 with an acl build from dev branch?
I'd suggest you build both ACL and ArmNN v22.02
Can you please try with the latest release v22.02 and confirm you see the error?

Using the same version of armnn and ACL fixed the issue. Thanks @morgolock


[documentation] make install command doc more explicit

The helm install command can have unexpected behavior when running helm install stable/foo which could
be both a local chart directory or a chart reference.  Providing some notes to this effect seems prudent.
Signed-off-by: Paul Czarkowski<EMAIL_ADDRESS>
What this PR does / why we need it:
Special notes for your reviewer:
If applicable:

[x] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

Hi, @paulczar - good news! It's much much less work to edit Helm docs moving forward, as we're moving them into the www repo. Would you mind putting this edit here:
https://github.com/helm/helm-www/blame/dev-v3-docs/content/docs/helm/helm_install.md#L59
That's the dev-v3-docs branch for now. Later of course the master branch in helm/helm-www would be the right place.
We'll close out this PR but would appreciate that edit over in the right place. Thanks!


[BUG] The LetsEncrypt client is not using ACMEv2 protocol and fails

LetsEncrypt support (via DNS) seems not to work anymore.
zappa certify gives:

Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2

or in more detail:
 Error registering: 403 b'{\n  "type": "urn:acme:error:unauthorized",\n  "detail": "Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555. See https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 for details.",\n  "status": 403\n}'
Failed to generate or install certificate! :(

I have zappa 0.51.0, as I believe this error has nothing to do with my project I will not post code, let me know if I should

I have the same problem

I am now doing this independently to zappa using certbot

How can we fix this?   "zappa certify" does not now work with letsencrypt certs for me either.

I cicumvented zappa for this step and am now using certbot directly.


Setting thresholds for identifying duplicates, near duplicates, or non duplicates

Do we want to help the user in setting thresholds for selecting duplicates, near duplicates, or nonduplicates? http://en.wikipedia.org/wiki/Loss_function

This has gotten a little twisted, so I re-explained the issue here #408


Pyworld undefined symbol: PyVectorcall_Function

Hi, I am getting this while trying to run:
Checking installs and venv + autodebug checks
Python version:  3.10.12 (main, Jun 28 2023, 17:56:55) [GCC]
Webui version: 0fd174d515fb53f4c119506b5b1411fc1e3cc7d5 - Tue Jul 18 20:57:17 2023 +0200
activating venv
no venv found, creating venv
Checking installs and venv + autodebug checks
Python version:  3.10.12 (main, Jun 28 2023, 17:56:55) [GCC]
Webui version: 0fd174d515fb53f4c119506b5b1411fc1e3cc7d5 - Tue Jul 18 20:57:17 2023 +0200
Installed packaging!
Installed numpy!
Installed PyTorch!
Installed transformers!
Installed diffusers!
Installed gradio!
Installed audio2numpy!
Installed bark!
Installed sox!
Installed audiolm!
Installed praat-parselmouth!
Installed pyworld!
Installed faiss!
Installed torchcrepe!
Installed ffmpeg-python!
Installed noisereduce!
Installed demucs!
Installed TTS!
Installed pytube!
Installed openai-whisper!
Installed audiocraft!
Done installing/checking installs.
Preparing
2023-07-21 17:28:58 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
2023-07-21 17:28:59 | WARNING | xformers | Blocksparse is not available: the current GPU does not expose Tensor cores
/audio-webui/venv/lib64/python3.10/site-packages/whisper/timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
def backtrace(trace: np.ndarray):
Traceback (most recent call last):
File "/audio-webui/main.py", line 19, in
from webui.modules.implementations.tts_monkeypatching import patch as patch1
File "/audio-webui/webui/modules/implementations/init.py", line 1, in
import webui.modules.implementations.ttsmodels as tts
File "/audio-webui/webui/modules/implementations/ttsmodels.py", line 14, in
from webui.modules.implementations.patches.bark_custom_voices import wav_to_semantics, generate_fine_from_wav,
File "/audio-webui/webui/modules/implementations/patches/bark_custom_voices.py", line 8, in
from webui.modules.implementations.patches.bark_generation import generate_text_semantic_new, generate_coarse_new, generate_fine_new
File "/audio-webui/webui/modules/implementations/patches/bark_generation.py", line 7, in
from webui.ui.tabs import settings
File "/audio-webui/webui/ui/tabs/init.py", line 7, in
from .training_tab import training_tab
File "/audio-webui/webui/ui/tabs/training_tab.py", line 2, in
from webui.ui.tabs.training.rvc import train_rvc
File "/audio-webui/webui/ui/tabs/training/rvc.py", line 2, in
import webui.ui.tabs.training.training.rvc_workspace as rvc_ws
File "/audio-webui/webui/ui/tabs/training/training/rvc_workspace.py", line 32, in
from webui.modules.implementations.rvc.custom_pitch_extraction import pitch_extract as pe
File "/audio-webui/webui/modules/implementations/rvc/custom_pitch_extraction.py", line 4, in
import pyworld
File "/audio-webui/venv/lib64/python3.10/site-packages/pyworld/init.py", line 17, in
from .pyworld import *
ImportError: /audio-webui/venv/lib64/python3.10/site-packages/pyworld/pyworld.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyVectorcall_Function
/audio-webui/venv/lib64/python3.10/site-packages/pyworld/pyworld.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyVectorcall_Function
Your install might have failed to install one of the requirements, are you missing a package?
To Reproduce:
Opensuse Tumbleweed with latest updates
Running run.sh
Tried:
Installing pyworld from source
Older version of pyworld
--no-binary and --no-build-isolation install arguments
I'm really excited to start using this webui. Thank you for creating and maintaining it, and I hope it's going to become the automatic1111 for audio generation!

The install still works for me, make sure you're up to date, and make sure you tried running twice, as it might not always install correctly on the first try.

Thank you for taking time to look into this
Everything seems to be up to date, and indeed I tried a few times to install from scratch, also asked AIs to help, to no avail sadly

Try python 3.10.8, you can still compile from source. Make sure to set it as your base python 3.10 interpreter

Did you get it working?

Checking installs and venv + autodebug checks
Python version:  3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Traceback (most recent call last):
File "C:\audio-webui-master\main.py", line 38, in
autodebug.catcher(e)
File "C:\audio-webui-master\autodebug\autodebug.py", line 79, in catcher
raise e
File "C:\audio-webui-master\main.py", line 15, in
prelaunch_checks()
File "C:\audio-webui-master\autodebug\prelaunch.py", line 30, in prelaunch_checks
print_git()
File "C:\audio-webui-master\autodebug\prelaunch.py", line 21, in print_git
result = subprocess.run(command, capture_output=True)
File "C:\Users\Omar\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Omar\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Omar\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Press any key to continue . . .

Delete your venv folder, you cannot switch from linux to windows without deleting the venv folder

@onasre Do you have git installed? It's the first thing in the readme

Do you have git installed

Oops !  Thx

all working , but Training Module gives error ,
gin_channels: 256 self.spk_embed_dim: 109 <All keys matched successfully> <All keys matched successfully> D:\audio-webui\audio-webui\venv\lib\site-packages\torch\cuda\amp\grad_scaler.py:120: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available.  Disabling.   warnings.warn("torch.cuda.amp.GradScaler is enabled, but CUDA is not available.  Disabling.") D:\audio-webui\audio-webui\venv\lib\site-packages\torch\functional.py:641: UserWarning: stft with return_complex=False is deprecated. In a future pytorch release, stft will return complex tensors for all inputs, and return_complex=False will raise an error. Note: you can still call torch.view_as_real on the complex output to recover the old return format. (Triggered internally at ..\aten\src\ATen\native\SpectralOps.cpp:867.)   return _VF.stft(input, n_fft, hop_length, win_length, window,  # type: ignore[attr-defined] D:\audio-webui\audio-webui\venv\lib\site-packages\torch\amp\autocast_mode.py:204: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling   warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling') Traceback (most recent call last):   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\routes.py", line 437, in run_predict     output = await app.get_blocks().process_api(   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\blocks.py", line 1352, in process_api     result = await self.call_function(   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\blocks.py", line 1093, in call_function     prediction = await utils.async_iteration(iterator)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\utils.py", line 341, in async_iteration     return await iterator.__anext__()   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\utils.py", line 334, in __anext__     return await anyio.to_thread.run_sync(   File "D:\audio-webui\audio-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync     return await get_asynclib().run_sync_in_worker_thread(   File "D:\audio-webui\audio-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread     return await future   File "D:\audio-webui\audio-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run     result = context.run(func, *args)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\gradio\utils.py", line 317, in run_sync_iterator_async     return next(iterator)   File "D:\audio-webui\audio-webui\webui\ui\tabs\training\training\rvc_workspace.py", line 683, in train_model     ) = net_g(phone, phone_lengths, pitch, pitchf, spec, spec_lengths, sid)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\parallel\distributed.py", line 1156, in forward     output = self._run_ddp_forward(*inputs, **kwargs)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\parallel\distributed.py", line 1113, in _run_ddp_forward     return module_to_run(*inputs, **kwargs)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs)   File "D:\audio-webui\audio-webui\webui\modules\implementations\rvc\infer_pack\models.py", line 742, in forward     o = self.dec(z_slice, pitchf, g=g)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs)   File "D:\audio-webui\audio-webui\webui\modules\implementations\rvc\infer_pack\models.py", line 495, in forward     har_source, noi_source, uv = self.m_source(f0, self.upp)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs)   File "D:\audio-webui\audio-webui\webui\modules\implementations\rvc\infer_pack\models.py", line 418, in forward     sine_merge = self.l_tanh(self.l_linear(sine_wavs))   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs)   File "D:\audio-webui\audio-webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward     return F.linear(input, self.weight, self.bias) RuntimeError: mat1 and mat2 must have the same dtype

Which version of CUDA do you have installed? pytorch can't detect it it seems, it uses CUDA 1.17

latest release v12.2

By the way when i installed CUDA 12.2  ,, the installation done but with this Note .
Installed:
- Nsight Monitor
Not Installed:
- Nsight for Visual Studio 2022
Reason: VS2022 was not found
- Nsight for Visual Studio 2019
Reason: VS2019 was not found
- Nsight for Visual Studio 2017
Reason: VS2017 was not found
- Integrated Graphics Frame Debugger and Profiler
Reason: see https://developer.nvidia.com/nsight-vstools
- Integrated CUDA Profilers
Reason: see https://developer.nvidia.com/nsight-vstools

i Have a module i already trained using google colab , how can i add it manually to venv folder ..

i Have a module i already trained using google colab , how can i add it manually to venv folder ..

Do you mean a model? It's in the data/training/RVC, or data/models/RVC if you already clicked the move model button

yes ,thanks , got it .. still though won't let me train model ..

I'll close the issue, reopen it if you're still having this issue after updating.


Changed HttpLoggingPolicy to ensure a response is logged even if its body is never consumed by a client.

Currently, the HttpLoggingPolicy.LoggingHttpResponse class we use for logging a response will only log when either its Flux<ByteBuffer> getBody() or BinaryData getBodyAsBinaryData() methods get called (I assume to avoid eagerly buffering the response body). This causes a situation where policies such as BearerTokenAuthenticationPolicy don't log the response because they don't care about accessing the body but only the headers.
We're changing the logic in HttpLoggingPolicy to log the response no matter if the body is accessed or not. If the HttpLogLevel does not include the body (e.g. HEADERS), then it will not be consumed eagerly, otherwise we will include it in the log. We assume body logging is used in non-production scenarios, as it is more resource intensive, and it usually is enabled only when debugging issues.
As for tests, there are still a few failing ones, so I'll spend some time this week fixing that scenario.

API change check
API changes are not detected in this pull request.


Setting up liveness and readiness probes on falco

Motivation
As part of Kubernetes' best practices, I'd like to set Readiness and Liveness probes on all the containers deployed on my infrastructure. As of now, the chart lacks this capability.
Feature
At the moment Falco doesn't define any probe. We'd like to have a way to check if the container is running correctly; this is a bit challenging since it's not clear what we could check to ensure falco's is up.
Alternatives
Possible ways to ensure Falco is running would be:

Checking on running processes inside the container
Checking on logs/files used by falco

Any option would be welcome.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

/help

@leogr:
This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/reopen
i will work on that

/reopen
i will work on that

/assign

/assign

@cpanato: Reopened this issue.

In response to this:

/reopen
i will work on that

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cpanato: Reopened this issue.

In response to this:

/reopen
i will work on that

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/remove-help

/remove-help

/remove-lifecycle rotten

/remove-lifecycle rotten


The sentence count regex only checks Latin characters

This means Russian is not supported for flesch_reading_ease because the average sentence length is calculated incorrectly.

Hi @AjBreidenbach, thank you for raising this. You're right, the look ahead ?=[A-Z] should probably be ?=[w], or similar.
Do you have an example where this isn't working as expected for a failing test case? If you could add it here, or raise a pull request with a failing test, that would be great.

Just taking a look at a regex inspector, I guess there would need to be a case-sensitive version of ?=[\w]
Would it be worth considering having the sentence count regex be a property that could be set on the texstat object, similar to set_lang?  My own use cases involve processing some messier texts.

I made another fork to get on with my project.  This is what I did to get it implemented https://github.com/AjBreidenbach/bvtextstat/commit/daab1d2242e3f37a20c0b6a08e9ed7eaf2429d6b
It sets the regex for Russian when set_lang is used to switch to Russian.
It just breaks the readability test, because the regex I used ignores Latin characters

@AjBreidenbach, sure. I'll drop the diff below for reference later.
I'm meaning to do some work around language support, but I'm not 100% on the best implementation so it's been on the back burner for a long time. More use cases like this help though!
diff --git a/textstat/textstat.py b/textstat/textstat.py
index 94f8076..71230f1 100644
--- a/textstat/textstat.py
+++ b/textstat/textstat.py
@@ -54,6 +54,11 @@
     },
 }

+sentence_regexes = {
+    "en": re.compile(r' *[\.\?!][\'"\)\]]*[ |\n](?=[A-Z])'),
+    "ru": re.compile(r' *[\.\?!][\'"»«\)\]]*[ |\n](?=[А-Я])')
+}
+

 def legacy_round(number, points=0):
     p = 10 ** points
@@ -90,6 +95,7 @@ def _cache_clear(self):

     def set_lang(self, lang):
         self.__lang = lang
+        self.__sentence_regex = sentence_regexes.get(self.__get_lang_root()) or sentence_regexes["en"]
         self.pyphen = Pyphen(lang=self.__lang)
         self._cache_clear()

@@ -163,7 +169,7 @@ def sentence_count(self, text):
         Sentence count of a text
         """
         ignore_count = 0
-        sentences = re.split(r' *[\.\?!][\'"\)\]]*[ |\n](?=[A-Z])', text)
+        sentences = self.__sentence_regex.split(text)
         for sentence in sentences:
             if self.lexicon_count(sentence) <= 2:
                 ignore_count += 1


docs: fix broken link on outside nextjs usage

This PR updates the docs link related to the usage of the Local API outside of Next.js previously resulting in a 404.

This was changed here https://github.com/payloadcms/payload/pull/8764 already

It's a shame cause it was done ages ago, nvm.

Sorry, didn't see


Return image instead of printing

Would it be possible to return the image as a string instead of printing it directly to the screen?

Hey Stefan,
Sure, it would require rearranging things a little and adding another function to the interface that would return the string instead of printing it.
I'm happy to do it over the weekend.

@stfnhrrs you can use https://github.com/posva/catimg to do that in the meantime


Fix memory leaks, add MultiString type

Cleanup memory usage by using shared_ptr
Fix memory leaks by using std::shared_ptr. Leaks found using valgrind.
Implement MultiString type
Adds a MultiString type that reads arguments until the next flag or known subcommand, and provides them as a vector of strings.
Prepare for 0.13.0 release

This is potentially ready to go. I'd like to explore using undefined functions that are defined by specific template instances for making Horsewhisperer types extensible, but that's not necessary for PCP-405.

Oh, this should really have new tests.

Planning to add more tests around making sure MultiString doesn't interfere with actions.

Given that Horsewhisperer allows flags to be interspersed with action arguments, this may be a dead-end. The parsing would have to be more complicated to ensure the action arity is met while still accepting multiple options on a flag.

Ok, updated this so it should work. Added tests. Also added a note in the README with caveats around using it: can't accept arguments starting with dashes, and is finicky when used with actions with arguments. Neither apply to its usage in pxp-agent.

The caveats are a very reasonable price to pay for having such new feature.
Tested the old behaviour with a CL tool that supports chained actions; no regressions.
The modified example (see above) works fine now.
👍


Update README.md

Here are links to notebooks available in this branch:

Notebook
Colab

1_example.ipynb


Portal support

It's better to give portal support for the popover. Some time height is less in what we are showing date picker that popover we can't control z-index if we give portal support that will solve these issues.

What would be involved in portal support?

For Rendering children into a DOM node that exists outside the DOM hierarchy of the parent component.
https://reactjs.org/docs/portals.html
It's just simple implementation.


react-native starting the application

I installed all the requirements :
1.android studio
2.java jdl 8 and 9
3.paython 2
4.node.js 6
5.npm 3
6.set the android home and java home variables
but I keep seeing this error
-> failed to notify project evaluation listener
->java/xml/bind/JAXBException

Assuming you want to run app on android.
What about:

react-native-cli ?

Also you need to install specific SDKs inside android Studio:

Android SDK
Android SDK Platform
Performance (Intel ® HAXM)
Android Virtual Device

Please confirm you installed all of the above and restarted computer (just in case)?


Remove a application listing from a users HUD if the application becomes disabled.

If an application becomes disabled the user should not see the application on its HUD
If the application becomes enabled again the user should not have to re-bookmark the application to view it on their HUD.
Reference - #76

waiting on backend changes #144 to be conpleted

Passed on latest.


Keylime Interactive Usability Studies

Describe the blog post your would like to write
We recently hired Keylime Interactive to help us create a baseline usability study for our Admin and Dashboard users. In this blog post, I would like to write about the initiative, provide some background on Keylime, what a usability study is, and how this can benefit community members. Additionally, I would like to request community members to participate in this study.
What is the title of the blog post?
Keylime Interactive Usability Studies
Who are the authors?
Who will be listed as the authors of this blog post
Dr. Aparna Sundar
What is the proposed posting date?
Provide the date which you wish this post to go live
March 10th as we need to finalize recruitment for the Admin usability study by the 19th

Published to the forum here: https://forum.opensearch.org/t/looking-for-opensearch-usability-study-candidates/13045


can not upload image in demo.

as title

Can you tell me more?

go to your demo page: https://huggingface.co/spaces/szymanowiczs/splatter_image   (this page is very slow.)
upload any png image (I tried different images)
no any response.
but, if I click the demo images that is OK.

tried:

From what I gather it might be something to do with the Gradio version. I've rebuilt the space and it works fine again but I'll keep looking into it.

Hi, great-master:
It is OK now; and the quality is very good.
Thanks

Dear @szymanowiczs:
a question about pose, including camera pose and object pose.
your code:
"pos = torch.bmm(pos<HERE>, source_cameras_view_to_world)"

 source_cameras_view_to_world:  means the 200 preset camera poses?
 pos<HERE>:  the pose of object: while infer, the pose is predicted by network; while train, if dataset is 3D objects, the pose is known in loop rendering, right?   (if dataset is NOT 3D objects, we need colmap or others pose estimation step? right?)

Thanks

Yes, if the cameras are not known you need to set them to where you want to render the reconstruction from for visualisation. In this case we have objects, so a loop is a reasonable way to visualise them. For scenes you might want to choose another camera visualisation path, for example figures of 8, small circles, camera going around. Essentially depends on how you want to visualise the reconstruction.
But note that you don't need them to run the network or reconstruction, you only need them for visualisation.


Remove redundant semicolon in code example

What does this pull request do?
See the title :)

@elasticmachine, run elasticsearch-ci/docs


Remove Cell Phone Fields

Remove cell phone fields from Campus and Community Partner forms.
Make Work Phone required on Campus Partner form, not required on Community Partner form.

This has been resolved.