When there is a corrupted jar in Maven's local repo, it will fail.

https://github.com/sbt/sbt/issues/7506
When we use the local Maven repo as the first level cache of SBT, if there is a corrupted jar in this repo, it will directly fail.
When there is a corrupted jar in Maven's local repo, It should not fail, but rather automatically skip this cache.

FYI here's full stack trace from OP's https://github.com/panbingkun/spark/actions/runs/8105142421/job/22153031672:
[info] spark-hive: mimaPreviousArtifacts not set, not analyzing binary compatibility
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error]
[error] 	at lmcoursier.internal.shaded.coursier.Artifacts$.$anonfun$fetchArtifacts$9(Artifacts.scala:365)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.wrap(Task.scala:82)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
[error] 	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
[error] 	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] Caused by: lmcoursier.internal.shaded.coursier.cache.ArtifactError$NotFound: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] 	at lmcoursier.internal.shaded.coursier.cache.internal.Downloader.$anonfun$checkFileExists$1(Downloader.scala:590)
[error] 	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error] 	at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error] 	at scala.util.Success.map(Try.scala:213)
[error] 	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error] 	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error] 	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] (mllib-local / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] (mllib-local / mimaPreviousClassfiles) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] (sql-kafka-0-10 / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar: not found: /root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
[error] (streaming-kafka-0-10 / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar: not found: /root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
[error] (connect-client-jvm / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/com/lihaoyi/geny_2.13/0.7.1/geny_2.13-0.7.1.jar: not found: /root/.m2/repository/com/lihaoyi/geny_2.13/0.7.1/geny_2.13-0.7.1.jar
[error] file:/root/.m2/repository/org/scala-lang/modules/scala-collection-compat_2.13/2.9.0/scala-collection-compat_2.13-2.9.0.jar: not found: /root/.m2/repository/org/scala-lang/modules/scala-collection-compat_2.13/2.9.0/scala-collection-compat_2.13-2.9.0.jar
[error] file:/root/.m2/repository/com/lihaoyi/sourcecode_2.13/0.3.0/sourcecode_2.13-0.3.0.jar: not found: /root/.m2/repository/com/lihaoyi/sourcecode_2.13/0.3.0/sourcecode_2.13-0.3.0.jar
[error] Total time: 299 s (04:59), completed Mar 1, 2024, 1:42:34 AM

I wonder if file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/ contains POM but not JAR files?

FYI here's full stack trace from OP's https://github.com/panbingkun/spark/actions/runs/8105142421/job/22153031672:
[info] spark-hive: mimaPreviousArtifacts not set, not analyzing binary compatibility
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error]
[error] 	at lmcoursier.internal.shaded.coursier.Artifacts$.$anonfun$fetchArtifacts$9(Artifacts.scala:365)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.wrap(Task.scala:82)
[error] 	at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
[error] 	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
[error] 	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] Caused by: lmcoursier.internal.shaded.coursier.cache.ArtifactError$NotFound: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] 	at lmcoursier.internal.shaded.coursier.cache.internal.Downloader.$anonfun$checkFileExists$1(Downloader.scala:590)
[error] 	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error] 	at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error] 	at scala.util.Success.map(Try.scala:213)
[error] 	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error] 	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error] 	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] 	at java.base/java.lang.Thread.run(Thread.java:840)
[error] (mllib-local / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] (mllib-local / mimaPreviousClassfiles) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar: not found: /root/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[error] (sql-kafka-0-10 / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar: not found: /root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
[error] (streaming-kafka-0-10 / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar: not found: /root/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
[error] (connect-client-jvm / update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] file:/root/.m2/repository/com/lihaoyi/geny_2.13/0.7.1/geny_2.13-0.7.1.jar: not found: /root/.m2/repository/com/lihaoyi/geny_2.13/0.7.1/geny_2.13-0.7.1.jar
[error] file:/root/.m2/repository/org/scala-lang/modules/scala-collection-compat_2.13/2.9.0/scala-collection-compat_2.13-2.9.0.jar: not found: /root/.m2/repository/org/scala-lang/modules/scala-collection-compat_2.13/2.9.0/scala-collection-compat_2.13-2.9.0.jar
[error] file:/root/.m2/repository/com/lihaoyi/sourcecode_2.13/0.3.0/sourcecode_2.13-0.3.0.jar: not found: /root/.m2/repository/com/lihaoyi/sourcecode_2.13/0.3.0/sourcecode_2.13-0.3.0.jar
[error] Total time: 299 s (04:59), completed Mar 1, 2024, 1:42:34 AM

I wonder if file:/root/.m2/repository/org/slf4j/slf4j-api/1.7.5/ contains POM but not JAR files?

Yea, that's right, only pom, not jar.

it would be greate if we can delete the jars with command

@lefou @ghostbuster91 Sorry to bother you, do we have a way to bypass this case? Except for disable maven's local repo.

Because I found https://github.com/coursier/coursier/pull/2929, it seems that our scene is very similar.
Thanks.

@lefou @ghostbuster91 Sorry to bother you, do we have a way to bypass this case? Except for disable maven's local repo.

I don't know. I think the proper solution would require a change in coursier. At least I didn't found anything in the docs, that could help here.
Some developer note: Maven does use different implementations for Remote Repositories and Local Repositories. The local one stores extra information like lastest update attempts and other metadata and its core property is to store partial/incomplete dependency trees. Coursier has probably only one implementation for remote repositories and isn't able to detect a partial Maven repository state. So we either need to implement some local repository support or improve the existing implementation to better handle local repos. If you plan to rely on a Maven local repository, you better get prepared to contribute.

@lefou @ghostbuster91 Sorry to bother you, do we have a way to bypass this case? Except for disable maven's local repo.

I don't know. I think the proper solution would require a change in coursier. At least I didn't found anything in the docs, that could help here.
Some developer note: Maven does use different implementations for Remote Repositories and Local Repositories. The local one stores extra information like lastest update attempts and other metadata and its core property is to store partial/incomplete dependency trees. Coursier has probably only one implementation for remote repositories and isn't able to detect a partial Maven repository state. So we either need to implement some local repository support or improve the existing implementation to better handle local repos. If you plan to rely on a Maven local repository with coursier, you better get prepared to contribute.

Thank you for your patient and detailed explanation.
Additionally, I have another background to add about this case,
When we used sbt 1.9.3, it worked very well and the Courier version we used was as follows

"io.get-coursier" %% "lm-coursier-shaded" % "2.1.0"
"io.get-coursier" %% "coursier" % "2.1.2"

But when we use SBT greater than 1.9.3, it will encounter the above issues, such as sbt 1.9.4, using the following Courier version:

"io.get-coursier" %% "lm-coursier-shaded" % "2.1.1"
"io.get-coursier" %% "coursier" % "2.1.6"

I speculate that Courier has a regression in behaviour since 2.1.3 or 2.1.4 or 2.1.5 or 2.1.6.

I'd be tempted to close this as "won't fix". ~/.m2/repository use has always been strongly discouraged with coursier (https://github.com/coursier/coursier/issues/1832#issuecomment-1357764540, https://github.com/coursier/coursier/issues/667#issuecomment-332570998, but I'm pretty sure this has been mentioned in other places).
coursier has always been assuming that the repository that contains metadata (like POM files) also contains the JARs. That allows to limit network requests (single request to download the JAR), but also to know for sure that a JAR doesn't exist (checking if we get 404 is the only way to know that a dependency doesn't have a JAR), rather than check all repositories for dependencies that don't have a JAR.
I'm not sure breaking that assumption and issuing more network request for ~/.m2/repository support is worth the effort. Plus there are ways to use another directory to publish things to, and using that directory as a repository (with a URI like file:///…) from coursier is fine.


New version: PiecewiseLinearFunctions v0.2.1

Registering package: PiecewiseLinearFunctions
Repository: https://github.com/BatyLeo/PiecewiseLinearFunctions.jl
Created by: @BatyLeo
Version: v0.2.1
Commit: 42068c993b1d14eea6d2ce50471a388b6ca436a3
Git reference: v0.2.1
Description: Basic operations with piecewise linear functions

[merge approved]


not proper allignment of the headings in the browse by collection page

Describe the bug
the text is slightly left not properly aligned with respect to the logos.
screenshots:

way to solve:
we can just add the padding-left in the h1 and h3 to 0.3 rem as it solves it.
Additional context
i would like to take this up.

Since the CSS of the site is coming from the vocabulary project, You have to wait and see if this issue persists after the CSS changes cause it's under active development and major CSS changes are coming.
Do wait for mentor's review

Thank you for this suggestion @coderbabu10.
However @hemanth-hk and @akmadian are quite right, this will be revamped with Vocabulary, within two weeks.
Here is a screenshot of what the new design will look like, where the alignment is not an issue. Therefore your time is better spent on other issues.


Remove configure from the repo

When I update repo by git pull --ff-only, I get error from git:
error: Your local changes to the following files would be overwritten by merge:
        configure

Probably, the file configure should be added into .gitignore and removed from the repo.

The problem is if there was an out of date configure in the repo, which means the user will generate their own if they have autoconf installed, so a subsequent git pull will conflict if a newer configure is supplied.
The workaround is to git checkout -f first to discard changes, then git pull.  It might be possible to do this in one go with git pull -f.
A pre-generated configure should be part of the repo for those who need it, typically tarball downloads.
However, I'll see if I can improve the process.

The workaround is to git checkout -f first to discard changes, then git pull. It might be possible to do this in one go with git pull -f.

Then the timestamp of configure will be newer than the timestamp of some file it depends on.  And make build will regenerate it again (without a need). And the version in the working directory will again differ from the version in the repo.
What if you rename configure to configure.orig in the repo, and use it to create configure if autoconf is absent?
Something like:
configure : configure.orig configure.ac aclocal.m4
	{ command -v ${AUTOCONF} >/dev/null && ${AUTOCONF} -f ; } || ln -f $< $@

See also StackOverflow question: Should a "configure" script be distributed if configure.ac is available?
The idea is that the version control system should not be used as a distribution system.
According to this approach, the file configure can be automatically included into the tarbal, or downloaded from the Release section.
I used this approach to download a binary (example).

I have mix feelings on this.  Personally I prefer not to supply generated files ("just the facts source please"), BUT I have had other people with my other repositories complain when it is not supplied.  So currently I supply it.  Frankly I'd love to move away from autoconf and ./configure, but some projects do benefit from it (if only BSD and Linux had the same file system layout and naming conventions).  (And NO I do not want to learn cmake.)
Now, Post4 is originally suppose to be ISO C compatible (for the most part), so maybe I can assume more about that environment and I'm making the building less complex; though now I have Java support in the mix.  When I finally caved into autoconf about 20 years ago, I just accepted that some facts about a system can't always be assumed across all the platforms I've worked on and just assumed that many will need configure and it is a habit I carry into each project.
If I could prune back to a basic config.h and Makefile that installers twiddle (when defaults don't work), that would be nice.  Another Post4 user, @wboeke, has expressed his dislike of configure too and would welcome this direction.
Right now this is a meta distribution and build problem.  I'm going to park this while there are more immediate issues with Post4 standards conformance to address.

Right now this is a meta distribution and build problem. I'm going to park this while there are more immediate issues with Post4 standards conformance to address.

Agreed  :)

v0.10.0 I have modified the ./configure generate script to avoid unnecessary regeneration, however I won't remove it for now.  Still need to consider that choice more.
Going to leave this open for a while just to remind me review it ever so often.

Now it works: the configure  file is not changed at all.

Leaving as it is now.


[BUG] Create Desktop Icon

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
When launching Roblox; "Create Desktop Icon" deactivates.

Yes, because the desktop icon has been created at that point.

I am sorry, but how do I make the Roblox icon from grouping in my taskbar when I launch two accounts?

Are you asking how to stop it from grouping? You can't, you'll have to do that in your Windows taskbar settings.


Error in loading pre-trained model

Thanks for your amazing work! I met the following error when I load the coco pre-trained weights "efficientdet-d2.h5".
Loading model, this may take a second...
Traceback (most recent call last):
File "train.py", line 381, in
main()
File "train.py", line 333, in main
model.load_weights(args.snapshot, by_name=True)
File "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/engine/training.py", line 182, in load_weights
return super(Model, self).load_weights(filepath, by_name)
File "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/engine/network.py", line 1371, in load_weights
saving.load_weights_from_hdf5_group_by_name(f, self.layers)
File "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/saving/hdf5_format.py", line 745, in load_weights_from_hdf5_group_by_name
str(len(weight_values)) + ' element(s).')
ValueError: Layer #334 (named "fpn_cells/cell_0/fnode0/add") expects 0 weight(s), but the saved weights have 1 element(s).
Here is the cmd to reproduce the error:
!python train.py --snapshot "./weights/efficientdet-d2.h5" --phi 2 --gpu 0 --epochs 3 --random-transform --compute-val-loss --freeze-backbone --batch-size 4 --steps 300 --snapshot-path "./logs/" --tensorboard-dir  "./tensorboard/" coco "./data/"
And the same error happens for phi=4. I have not tested other pre-trained models. But it does not show any error when I use "--snapshot imagenet".
Thank you very much!

Hi, @zgzxy001 . You need to specify --weighted-bifpn when use pretrained coco.


[QUESTION] Injection error

I'm trying to inject a service on my server, and receiving this error:
INJECTION_ERROR: Injection failed on AccountServer > IAccountService > IAccountRepository > AccountRegistry > MONGOOSE_CONNECTIONS
Origin: MONGOOSE_CONNECTIONS provider is not injectable to another provider
The AccountServer is the injection that causes trouble.
I'm injecting the IAccountService in some controllers
The AccountRegistry is my mongoose model, and works fine without the new injection at Server.
I didn't found anything like this in other topics.
Can someone help me?

Did you use @inject decorator or the constructor?

Did you use @inject decorator or the constructor?

I'm using the @Inject

I'm using the @Inject

Ok I need a reproducible repo example please :)

Ok I need a reproducible repo example please :)


Conflicting requestCode

It seems that react-native-braintree-xplat and react-native-image-picker are using the same requestCode in android, this causes the error below:

09-21 20:40:59.763  1906  1906 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent {  }} to activity {com.gostudentmobile/com.gostudentmobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.braintreepayments.api.models.PaymentMethodNonce.getNonce()' on a null object reference

Would be nice if either of you used more unique numbers, so they wouldn't conflict. Is it possible to change it?
Conflicting lines:
https://github.com/marcshilling/react-native-image-picker/blob/master/android/src/main/java/com/imagepicker/ImagePickerModule.java#L61
https://github.com/kraffslol/react-native-braintree-xplat/blob/master/android/src/main/java/com/pw/droplet/braintree/Braintree.java#L23
Thanks!
Cross issue: https://github.com/kraffslol/react-native-braintree-xplat/issues/10

hi,
In react-native-braintree-xplat they have to check if there callback isn't null before continuing.
After all the process they just need to set callback = null
It's for me the most simple way to check if the result don't came from an other package :)

I went ahead and made the request codes more unique anyway. Can you try v0.22.8 on npm?

Wow! That's fast!
It works! Thanks, I can't express how happy I am with how fast this got solved!
Thanks again!


Abstract copyright statement

Moving the copyright statement out of the /src/*.js files and using the LICENSE.txt that exists in each folder to auto-populate that string at the top of each compiled JS file.
Also added a way to push out an updated LICENSE from the root down to the children for copyright updates.

@kylebuch8 We can run this by legal to confirm but I suspect this would be okay with them as it enables us to make global updates to the copyright more effectively.  If you share the contact information with me of our legal rep on this issue via my Red Hat e-mail, I'm happy to handle the conversation too.


support import data

I can't find a controller to import collection data,   already have this feature?

Not yet. We would love a pull request :)


Gradle: utils methods

Similar to what was done for Maven, this ticket is for adding different utils methods:
https://github.com/jhipster/jhipster-lite/blob/main/src/main/java/tech/jhipster/lite/generator/buildtool/maven/domain/MavenService.java#L11
At the same time, for each methods, we need to add the entry in https://github.com/jhipster/jhipster-lite/blob/main/src/main/java/tech/jhipster/lite/generator/buildtool/generic/domain/BuildToolDomainService.java

You can assign it to me, already started something.

Currently reading source (Maven and Gradle) to have a first insight on what has been done and see if I can start something.

I have already started small things. Hope to create a first PR during the weekend. If you find time before please go ahead.

To do

[ ] Add Dependency without version
[ ] Add Dependency with version
[ ] Add Dependency with exclusion
[ ] Add Test Dependency
[ ] Delete dependency
[ ] Add Repository
[ ] Add Plugin (https://docs.gradle.org/current/userguide/plugins.html)
[ ] Add Plugin Management (https://docs.gradle.org/current/userguide/plugins.html)
[ ] Add Plugin
[ ] Add Property

@pascalgrimaud, I have some question :

It look like the Parent relationship doesn't exist in Gradle, should we throw an error for it ?
It look like dependencyManagement mechanism in Maven help to have simpler child POM. Do you know if an equivalent thing exist for Gradle and do you have an hint on how it should be done ?
It look like plugin repository declaration can't be separated from plugin declaration in Gradle, how should I handle this ? Knowing that BuildToolService.addPluginRepository(Project project, Repository repository) doesn't have a plugin as argument ?

I will try to answer your questions later.

In fact, I'm not a user Gradle, so I don't know. It's really cool if you can help here @atomfrede , thanks :-)

I'm removing the bounty and move it to https://github.com/jhipster/jhipster-lite/issues/1862
The work should be done in the module system so let's close this one in favor of https://github.com/jhipster/jhipster-lite/issues/1862


fix fix export case

Proposed changes
Fix a export case because the machine that performs the export is randomized when there are multiple nodes.
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

2.0也需要合入


Restoring Docker Installs

Rancher Server Setup

Rancher version:
Rancher	v2.8.2
Dashboard	v2.8.0
Helm	v2.16.8-rancher2
Machine	v0.15.0-rancher106
Installation option (Docker install/Helm Chart):
from Marketplace
Kubernetes Version and Engine:
kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.9", GitCommit:"d1483fdf7a0578c83523bc1e2212a606a44fd71d", GitTreeState:"clean", BuildDate:"2023-09-13T11:32:41Z", GoVersion:"go1.20.8", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.6+k3s1", GitCommit:"bd04941a294793ec92e8703d5e5da14107902e88", GitTreeState:"clean", BuildDate:"2023-09-20T23:05:58Z", GoVersion:"go1.20.8", Compiler:"gc", Platform:"linux/amd64"}

Describe the bug
When trying to restore getting next errors in operator:
INFO[2024/02/12 17:52:16] Marking resource projects.management.cattle.io#v3/local/p-sjvvt for deletion
ERRO[2024/02/12 17:52:16] Error pruning resources: [admission webhook "rancher.cattle.io.projects.management.cattle.io" denied the request: System Project cannot be deleted]
2024-02-12T17:52:16.891561589Z INFO[2024/02/12 17:52:16] Will retry pruning resources by removing finalizers in 10s
INFO[2024/02/12 17:52:26] Retrying pruning resources by removing finalizers
INFO[2024/02/12 17:52:26] Processing controllerRef apps/v1/deployments/rancher
INFO[2024/02/12 17:52:26] Error getting object for controllerRef apps/v1/deployments/rancher: deployments.apps "rancher" not found
ERRO[2024/02/12 17:52:26] error syncing 'restore-blt2f': handler restore: error pruning during restore: [admission webhook "rancher.cattle.io.projects.management.cattle.io" denied the request: System Project cannot be deleted], requeuing
To Reproduce
Steps to reproduce the behavior:

Spin-up new cluster: docker run --privileged -d --name rancher -p 443:443 rancher/rancher
Install Rancher Backups v103.0.0+up4.0.0
Do the backup
Stop and remove rancher container
Spin-up new cluster: docker run --privileged -d --name rancher -p 443:443 rancher/rancher
Install Rancher Backups v103.0.0+up4.0.0
Create restore configuration

Expected behavior
Cluster is restored. No errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I know that there is separate instruction for the Docker installation https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/backup-restore-and-disaster-recovery/restore-docker-installed-rancher. I'm not sure if this is by design that backup-operator doesn't support Docker installation. I thought that "docker" instruction made for the sake of simplicity when you don't need backup-operator and can just save all files. But the result archive have size of 2.8GB compare to 1.5MB file from backup-operator.

FWICT, the docker backup just backs up the file tree that rancher uses, while the backup-restore operator grabs a subset of the current k8s objects, and serializes them to YAML, so it's no surprise that the docker backup is twice the size.
What commands did you run to install the backup-restore operator, run a backup, and then run the restore?

I see a different problem, that has nothing to do with pruning, but is probably related due to the appearance of the webhook:

Error restoring resource restricted-admin of type management.cattle.io/v3,
Resource=globalroles: restoreResource: err updating resource admission webhook
"rancher.cattle.io.globalroles.management.cattle.io" denied the request:
globalrole: Forbidden: updates to builtIn GlobalRoles for
fields other than 'newUserDefault' are forbidden

Error restoring cluster-scoped resources [error restoring
restricted-admin of type management.cattle.io/v3,
Resource=globalroles: restoreResource: err updating resource admission webhook
"rancher.cattle.io.globalroles.management.cattle.io" denied the request:
globalrole: Forbidden: updates to builtIn GlobalRoles for
fields other than 'newUserDefault' are forbidden]

What commands did you run to install the backup-restore operator, run a backup, and then run the restore?

I did everything from rancher.
Created hostPath volume:

Installed Rancher Backups from Cluster Tools:

For the backup only provided its name:

Killed this docker container and ran new one. Then again did steps above to install Rancher Backups.
For the restore provided file name:

Logs
rancher-backup.log

Thank you. I managed to reproduce the error with a docker-based install of rancher on Ubuntu. Here's what's in the logs, formatted for better readability:
Error restoring namespaced resources
[ error restoring u-b4qkhsnliz-admin of type management.cattle.io/v3,
  Resource=clusterroletemplatebindings:
  restoreResource: err updating resource
  Internal error occurred:
     failed calling webhook "rancher.cattle.io.clusterroletemplatebindings.management.cattle.io":
     failed to call webhook:
       Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation/clusterroletemplatebindings.management.cattle.io?timeout=10s":
           tls: failed to verify certificate:
           x509: certificate signed by unknown authority error restoring local-fleet-local-owner of type management.cattle.io/v3,
           Resource=clusterroletemplatebindings:
                restoreResource: err updating resource
                Internal error occurred:
                 failed calling webhook
     "rancher.cattle.io.clusterroletemplatebindings.management.cattle.io":
     failed to call webhook:
     Post
      "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation/clusterroletemplatebindings.management.cattle.io?timeout=10s":
      tls: failed to verify certificate:
      x509: certificate signed by unknown authority]

I need to investigate further to determine if this is in fact a breaking restore. The restore did continue, and the logs end with the usual messages I see on a successful restore ("Waiting for CRD ... to become available").

Need to know more about what happens on Restore, but I noticed in this configuration that after finishing a restore the admin password was reset to the one set when the backup was made. This isn't surprising, but it doesn't sound 100% desirable to me.
Also, when I selected Apps > Charts I got these error messages after doing a restore:
configmaps "rancher-charts-0-<GUID>" not found

configmaps "rancher-partner-charts-0-<GUID>" not found

configmaps "rancher-rke2-charts-0-<GUID>" not found

We tested a restore on a self-signed HA RKE1 cluster and there are no mentions of "authority" in the logs, nor any error logs. So this appears to be specific to docker installs.

@SanekP - Hey, I think it would be really beneficial for your use-case to actually use a proper k8s based setup. The crux of the issue is running Rancher directly on Docker requires us to run a k8s instance for the node.
So when you get rid of your rancher container, it deletes the "local" k8s cluster too. Meaning when you attempt to restore Rancher Backup, then you end up on a new cluster - meaning this action is a "migration" not a "restore". And as such you should actually be following the migration docs which specify to use prune: false in your Restore job.
HOWEVER, because you directly launching the rancher container (which spins up the k8s) you cannot simply "install Rancher backup first, then restore before starting rancher". Since the rancher-backup chart will be expecting/needing k8s not Docker alone.

ultimately, as @MKlimuszka said this isn't a supported method for running Rancher. Running it like this is really just intended for short term Demos, not for production use. you would be much better off running RKE1 if you like to use Docker, or even opting to setup a single node k3s to run Rancher on.


refresh slots documentation to diminish emphasis on slot types

In their existing state, the slots documentation puts too much emphasis on the "Delegate" and other types that folks generally found confusing.

This is a good improvement, every time I had to read this page I got confused about the 3 types of slots :face_with_head_bandage:


updating the build, so the server is closed by ourselves, close #825

Deploy preview for landscape ready!
Built with commit c52d8391d110785feea707f3c226b20a868ee991
https://deploy-preview-879--landscape.netlify.com


KISS principle & fluent builder pattern

If it's good practice, may I do the same for the rest of the project's setters?

I'm just curious as I try to understand the changes being proposed here. How does the KISS principle apply to having SetSomeProperty methods (potentially many methods if you're doing them individually)? Doesn't introducing setter methods make the Constructor, which itself is a setter, more complex?

I'm just curious as I try to understand the changes being proposed here. How does the KISS principle apply to having SetSomeProperty methods (potentially many methods if you're doing them individually)? Doesn't introducing setter methods make the Constructor, which itself is a setter, more complex?

Hello Kyle,
Thanks for your review
I wanted to bring to your attention that three commits have been made with the intention of following the KISS, DRY, and CQRS principles. Regarding the first commit you mentioned, I agree that it may not fully adhere to the KISS principle, but it does demonstrate the DRY principle. Specifically, the line Guard.Against.NullOrEmpty(name, nameof(name)) appears to be duplicated in both the constructor and the UpdateName method.

I'm going to pull these in for now. My goal regarding checking Name in multiple places is to fix that using a Value Object rather than using a primitive, and then the check will live in the Value Object (only). But this will work for now and overall the other changes are helpful.


Configure azure pipelines

This configuration builds the application and produces builds for both Debug and Release configurations.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: iNgsane sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


doc/install_mne_c.rst: Update setup setion and add some more detail

including setup for zsh and how to get free matlab runtime distribution
doc/Makefile: add "first_target:" as the first makefile target to build
target html_dev-noplot by default when typing "make" with no args.
Thanks for contributing a pull request! Please make sure you have read the
contribution guidelines
before submitting.
Please be aware that we are a loose team of volunteers so patience is
necessary. Assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
Again, thanks for contributing!
Reference issue
Example: Fixes #1234.
What does this implement/fix?
Explain your changes.
Additional information
Any additional information you think is important.

Thanks @buildqa

it should be Robert Dicamillo
On Tue, Nov 13, 2018 at 3:07 AM Eric Larson<EMAIL_ADDRESS>wrote:

@buildqa https://github.com/buildqa do you have a proper name and/or
URL you would like to associate with your commits? In whats_new.rst there
are no such links currently
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-python/pull/5687#issuecomment-438101055,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ1HMNFMTaodqLywu-SbLr5c0HAJCN0ks5uuieNgaJpZM4YKuAF
.

Thank you larsoner for the heads up.  I prefer to just use buildqa as a userid/name for contributing to  projects on GitHub.

Thanks, will keep it that way and just link to your GitHub profile


Package request: lldap

Project description
An lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication: clients that can only speak LDAP protocol can talk to it and use it as an authentication server.
Metadata

homepage URL: https://github.com/nitnelave/lldap
source URL: https://github.com/nitnelave/lldap
license: GPL-3.0
platforms: unix

Here is what I came up with so far (with big help from @alyssais :heart:): https://github.com/NixOS/nixpkgs/compare/master...aanderse:lldap?expand=1

Still relevant

I gave it a try in #227916 in case someone would like to take a look at it :)


refactor: runtime ty check and add more test cases.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

refactor: runtime ty check and add more test cases.

2. What is the scope of this PR (e.g. component or file name):

kclvm/runtime/src/value/api.rs
kclvm/runtime/src/api/kclvm.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[x] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

test/grammar/types/runtime_ty/**/*.k

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 7 (42.86%)  changed or added relevant lines in 3 files are covered.
31 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-20.0%) to 68.029%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

kclvm/runtime/src/stdlib/builtin_api.rs
0
1
0.0%

kclvm/runtime/src/value/api.rs
0
1
0.0%

kclvm/runtime/src/value/val_plan.rs
3
5
60.0%

Files with Coverage Reduction
New Missed Lines
%

compiler_base/session/src/lib.rs
31
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
-20.0%

Covered Lines:
30815

Relevant Lines:
45297

💛  - Coveralls


provide hint about other gh commands

to use after gh auth login

Why:
Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[ ] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
[ ] For content changes, I have completed the self-review checklist.

@joee Thanks so much for opening a PR! I'll get this triaged for review :zap:

Hi @joee, thanks for raising the PR. I'm not sure this addition is needed here, because the article is specifically about methods for caching your credentials. Authenticating to the CLI does allow you to use other CLI commands, but it also stores your credentials so you can, for example, access your private repos with a standard git clone. I worry the addition would take the focus away from the purpose of the article, and imply this method is only caching your credentials for other gh cli operations.
I'll close this PR, but feel free to come back if I've missed something or you'd like to make a new suggestion.


Port existing API business logic from aiohttp to fastapi

overview
Move business logic from aiohttp request handlers to the fastapi ones.
Additionaly, use fastapi's WebSockets for RPC.
expected behavior
existing aiohttp client in unit tests is replaced with starlette client and all tests pass.

Epic completed


update eRSDL image and metadata

update eRSDL-unFederalReserve token image and project info metadata

@jiro-ono could we also have the json file updated ?  The current info is outdated.
Also, do you know how often Cloudinary updates their images ? See the repo is updated :) (many thanks) but cloudinary still has the old image. https://res.cloudinary.com/dnz2bkszg/image/fetch/f_auto/https://raw.githubusercontent.com/sushiswap/assets/master/blockchains/ethereum/assets/0x5218E472cFCFE0b64A064F055B43b4cdC9EfD3A6/logo.png
Thanks for all the help!


SCT-1486 Get builds working

attempt one. No dockerhub push at this point

Looks fine. Big blob o' boilerplate.


Khan Academy extractor not working

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[x] I've read about sharing account credentials and I'm willing to share it if required

Region
Australia
Description
Downloading of videos from Khan Academy, it says "400 Bad Request"
Verbose log
[debug] Command-line config: ['-vU', 'https://www.khanacademy.org/computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65]
[debug] Python version 3.10.2 (CPython 64bit) - macOS-12.3-x86_64-i386-64bit
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1, rtmpdump 2.4
[debug] Optional libraries: brotli, certifi, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [khanacademy] Extracting URL: https://www.khanacademy.org/computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9
[khanacademy] computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9: Downloading JSON metadata
ERROR: [khanacademy] computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 641, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/khanacademy.py", line 30, in _real_extract
    component_props = self._parse_json(self._download_json(
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1029, in _download_json
    res = self._download_json_handle(
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1008, in _download_json_handle
    res = self._download_webpage_handle(
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 800, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 785, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 767, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/Cellar/yt-dlp/2022.4.8/libexec/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3601, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File<EMAIL_ADDRESS>line 525, in open
    response = meth(req, response)
  File<EMAIL_ADDRESS>line 634, in http_response
    response = self.parent.error(
  File<EMAIL_ADDRESS>line 563, in error
    return self._call_chain(*args)
  File<EMAIL_ADDRESS>line 496, in _call_chain
    result = func(*args)
  File<EMAIL_ADDRESS>line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

It's work at version 2022.05.18
Here's the log :
C:\Users\USER\Downloads>yt-dlp -v -s "https://www.khanacademy.org/computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9"
[debug] Command-line config: ['-v', '-s', 'https://www.khanacademy.org/computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9']
[debug] Portable config "C:\Users\USER\Downloads\yt-dlp\yt-dlp.conf": ['-v', '--netrc-location', 'C:UsersUSERDownloadsyt-dlp.netrc', '-f', 'bv+ba/b', '--compat-options', 'format-sort', '--embed-metadata', '--embed-subs', '--sub-langs', 'all', '--console-title', '--downloader', 'aria2c']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d523] (win_exe)
[debug] Compatibility options: format-sort
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 5.0.1-full_build-www.gyan.dev (setts), ffprobe 5.0.1-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] [khanacademy] Extracting URL: https://www.khanacademy.org/computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9
[khanacademy] computing/computer-science/informationtheory/info-theory/v/history-of-the-alphabet-language-of-coins-3-9: Downloading JSON metadata
[debug] [youtube] Extracting URL: 6NrTrBzC6dk
[youtube] 6NrTrBzC6dk: Downloading webpage
[youtube] 6NrTrBzC6dk: Downloading android player API JSON
[debug] Sort order given by user: hasaud, lang, quality, tbr, filesize, vbr, height, width, proto, vext, abr, aext, fps, fs_approx, source, id
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, hasaud, lang, quality, tbr, filesize, vbr, height, width, proto, vext, abr, aext, fps, fs_approx, source, id, res, hdr:12(7), vcodec:vp9.2(10), acodec, asr
[debug] Downloading subtitles: bn, bg, cs, en, it, ja, ko, pl, pt-BR, ro, es-419, th, vi
[info] 6NrTrBzC6dk: Downloading 1 format(s): 136+140

Fixed in 4f7a98c565873ea7a758efcd86e4296b6a06e817


Started throwing an exception today!

Good evening,
I have a C# app using your worderful wrapper for Yahoo Finance. This afternoon, I noticed it was throwing an exception;
Fynance.FynanceException: Fynance.Yahoo: This result was not possible to get from Yahoo Finance.
This is a sample of my call - the strTicker = "SPY"
var result = await Ticker.Build()
.SetSymbol(strTicker)
.SetTimeZone(TimeZoneInfo.Local)
.SetPeriod(Period.OneYear)
.SetInterval(Interval.OneDay)
.GetAsync();
The resulting URL I see in your code is
https://query1.finance.yahoo.com/v8/finance/chart/SPY?range=1y&interval=1d
This URL works fine from a browser...
Any ideas?
Thanks for the great work!
Mark

Felipe, thanks for getting back.  I will attempt to open a pull request and take a look.
Thanks,
Mark

From: Felipe Oriani @.>
Sent: Friday, May 31, 2024 10:09 AM
To: felipeoriani/Fynance @.>
Cc: atsmark @.>; Mention @.>
Subject: Re: [felipeoriani/Fynance] Started throwing an exception today! (Issue #20)
Hi @atsmarkhttps://github.com/atsmark, thanks for opening this issue. I haven´t look into this package from a long time but I can try to take a look soon. I will update a new version in case I find any particular issue, but please, since you´re using it, feel free to open a PR into this repo to contribute on it as well.
Thank you!
—
Reply to this email directly, view it on GitHubhttps://github.com/felipeoriani/Fynance/issues/20#issuecomment-2142290254, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDMCV6UJKWQUYENBWBORZHDZFCACPAVCNFSM6AAAAABIRYTFB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGI4TAMRVGQ.
You are receiving this because you were mentioned.Message ID: @.***>

Felipe, I'm new to GitHub and don't want to muck up your project...  So I downloaded a zip and ran the Test you provided.  Here is what fixed most of it.
YahooTickers.cs starting at line 114
///
            /// Get a http response message from the client instance.
            ///
            /// Url to invoke.
            /// An instance of HttpResponseMessage.
            private async Task GetResponse(string url)
            {
                  if (Client == null)
                  {
                        Client = new HttpClient(new HttpClientHandler { UseProxy = false })
                                                       //MJM May 31 2024 - Needs something in the user-agent or fails...                         <<<  I added
                                                       Client.DefaultRequestHeaders.Add("User-Agent", "C# App");                                  <<<  I added
                                     }

return await Client.GetAsync(url).ConfigureAwait(false);
            }
This fixes all tests except Splits and Dividends?  I will keep working on it!
Thanks,
Mark

From: Felipe Oriani @.>
Sent: Friday, May 31, 2024 10:09 AM
To: felipeoriani/Fynance @.>
Cc: atsmark @.>; Mention @.>
Subject: Re: [felipeoriani/Fynance] Started throwing an exception today! (Issue #20)
Hi @atsmarkhttps://github.com/atsmark, thanks for opening this issue. I haven´t look into this package from a long time but I can try to take a look soon. I will update a new version in case I find any particular issue, but please, since you´re using it, feel free to open a PR into this repo to contribute on it as well.
Thank you!
—
Reply to this email directly, view it on GitHubhttps://github.com/felipeoriani/Fynance/issues/20#issuecomment-2142290254, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDMCV6UJKWQUYENBWBORZHDZFCACPAVCNFSM6AAAAABIRYTFB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGI4TAMRVGQ.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @atsmark, I don´t know how familiar you are with git, but usually we create a fork of the repository, push our changes and open a pull request into the original repository. I will take a look soon as this weekend and add some extra methods if we need.
Did you identify if adding the user-agent on the request header solves the issue?
Please, let me know if you find potential fixes and I can do it.

Felipe,
I am not familiar with GitHub!
Yes, the "user-agent" addition fixes most of the problems and indeed allows for normal operation until you ask for Splits or Dividends.
I have never run the Tests before and I don't user either Splits or Dividends so I don't know if these two where working before yesterday.
Before change
[cid:02b89e13-c3ca-49a0-928a-3042532a3bc1]
After change
[cid:9a88d62c-4ad7-44ce-9ea6-0fb2d00a623c]
Thanks,
Mark

From: Felipe Oriani @.>
Sent: Friday, May 31, 2024 1:00 PM
To: felipeoriani/Fynance @.>
Cc: atsmark @.>; Mention @.>
Subject: Re: [felipeoriani/Fynance] Started throwing an exception today! (Issue #20)
Hi @atsmarkhttps://github.com/atsmark, I don´t know how familiar you are with git, but usually we create a fork of the repository, push our changes and open a pull request into the original repository. I will take a look soon as this weekend and add some extra methods if we need.
Did you identify if adding the user-agent on the request header solves the issue?
Please, let me know if you find potential fixes and I can do it.
—
Reply to this email directly, view it on GitHubhttps://github.com/felipeoriani/Fynance/issues/20#issuecomment-2142651452, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDMCV6TFJ5NYX6WEAI4OZJ3ZFCUC7AVCNFSM6AAAAABIRYTFB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGY2TCNBVGI.
You are receiving this because you were mentioned.Message ID: @.***>

Felipe,
Upon further looking, the symbol in the TESTs for dividend and splits had been delisted (or no longer available on Yahoo).  I used ADP for stock, splits and dividends and not ALL tests are working.
So the user-agent addition (and changing stock symbols) allows all TESTs to run with success.
Thanks,
Mark

From: Felipe Oriani @.>
Sent: Friday, May 31, 2024 1:00 PM
To: felipeoriani/Fynance @.>
Cc: atsmark @.>; Mention @.>
Subject: Re: [felipeoriani/Fynance] Started throwing an exception today! (Issue #20)
Hi @atsmarkhttps://github.com/atsmark, I don´t know how familiar you are with git, but usually we create a fork of the repository, push our changes and open a pull request into the original repository. I will take a look soon as this weekend and add some extra methods if we need.
Did you identify if adding the user-agent on the request header solves the issue?
Please, let me know if you find potential fixes and I can do it.
—
Reply to this email directly, view it on GitHubhttps://github.com/felipeoriani/Fynance/issues/20#issuecomment-2142651452, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDMCV6TFJ5NYX6WEAI4OZJ3ZFCUC7AVCNFSM6AAAAABIRYTFB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGY2TCNBVGI.
You are receiving this because you were mentioned.Message ID: @.***>

Hi Mark,
I've just released the version 1.2.0, please, update your package on your code.
You can check details here https://www.nuget.org/packages/Fynance/1.2.0
I am planning to start a new version soon by doing some improvements regarding package version.
And please, let me know if it solves the problem for you and we can close this issue.
Thanks for catching this.
Note: Recently I've received some notifications from paypal about a donate, I don't know if it was you but you've tried to donate something, please retry again if you want, I've fixed my account.

Felipe,
Yes, v1.2.0 fixed the problem completely!
Thank you very much.
Thanks,
Mark

From: Felipe Oriani @.>
Sent: Monday, June 3, 2024 9:30 PM
To: felipeoriani/Fynance @.>
Cc: atsmark @.>; Mention @.>
Subject: Re: [felipeoriani/Fynance] Started throwing an exception today! (Issue #20)
Hi Mark,
I've just released the version 1.2.0, please, update your package on your code.
You can check details here https://www.nuget.org/packages/Fynance/1.2.0
I am planning to start a new version soon by doing some improvements regarding package version.
And please, let me know if it solves the problem for you and we can close this issue.
Thanks for catching this.
Note: Recently I've received some notifications from paypal about a donate, I don't know if it was you but you've tried to donate something, please retry again if you want, I've fixed my account.
—
Reply to this email directly, view it on GitHubhttps://github.com/felipeoriani/Fynance/issues/20#issuecomment-2146396496, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDMCV6RVNNI2N3TIX4FJ743ZFUKEXAVCNFSM6AAAAABIRYTFB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGM4TMNBZGY.
You are receiving this because you were mentioned.Message ID: @.***>


Introduce edebug in mappings module

Signed-off-by: Vasil Petkov<EMAIL_ADDRESS>

Coverage increased (+0.005%) to 89.905% when pulling 9c7c6a592b92699e685224d2ba3ef39e43d4e066 on SAP:edebug2 into ec726757a36f155c535695a12ea955d2fb66ad96 on cloudfoundry-incubator:master.


Fixed a bug with mongodb connection.

These changes have been published! View these changes here.

Lookin' Good! (To Me)

Thanks, merging!


Fix showfixtures command for Django 1.10

Codecov Report

Merging #12 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   96.35%   96.39%   +0.03%
==========================================
  Files          13       13
  Lines         549      555       +6
  Branches       91       92       +1
==========================================
+ Hits          529      535       +6
  Misses         10       10
  Partials       10       10

Impacted Files
Coverage Δ

django_north/management/permissions.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


AttributeError: 'SMB' object has no attribute '_Connection'

Describe the bug
Using SMB protocoll throws an unhandled exception
To Reproduce
Steps to reproduce the behavior:
crackmapexec smb ../scope/private-ip.txt -u [REDACTED] -p '[REDACTED]' -d [REDACTED].local --shares
Expected behavior
It should not crash
Screenshots

Crackmapexec info

OS: Kali
Version of CME v5.2.2
Installed from apt or using latest release ? YES

My pull request fixes this and two other crashes #560 (no _Connection crash, NetBIOSTimeout crash, UnsupportedFeature-crash)


feat(protocol-designer): add DOM identifiers for e2e tests

Overview
This PR adds a bunch of identifiers to be used by e2e tests.
closes #7607
Changelog

Add DOM identifiers for e2e tests

Review requests
Code review, make sure names and all that make sense
Make sure identifiers show up on the DOM
Risk assessment
Low

Great feedback, thanks @IanLondon. I like this PR much better now 😄

Missing: within the tip position modal, if you click "custom", the input type="text" field where you can enter mm still could use a selector.

Good catch, added <input type="text" value="" id="TipPositionModal_custom-input">

For well order field: I think Neha wanted to be able to "read" the button without opening the modal (which way the zig-zag icon is oriented. In the ticket, we had the idea data-test="t2b,l2r" to represent first: top to bottom & second: left to right, for example. to do right to left, top to bottom the data-test of the icon/button would be data-test="r2l,t2b" and so on)
Also, ids are supposed to be unique but there are 2x id=WellOrderField_button elements in Transfer. Common id for aspirate well order vs dispense well order. Maybe address by doing WellOrderField_button_${aspirate|dispense} or something like that?

Gocha, I added data-test but also kept the id so we can more semantically click on the button if need be. Also, to follow our convention of ${ComponentName}_${Indentifer} where component name is pascal case identifier is snake case I did:

For selector number 6, the path button selectors, I think they're supposed to differentiate disabled vs simply deselected. Right now you can only tell that they're deselected, but I'm pretty sure we want to be able to confirm that they're disabled or not. It might be easier for E2E if the ID is constant for each button (eg id="PathButton_single" with no modifiers to the id) and data-test can be the lookup for selected vs deselected, and disabled or not disabled??

Oof, this one kinda sucks because we're adding a lot of extra stuff here. I wish we could more semantically query the class name (since thats is actually what is being used to render what the button actually means), but that is not very reliable. Anyway, I did:

For selector number 7, the disposal volume > blowout field may need a selector?

Good call, I added:
<select id="DisposalVolumeField_dropdown">
   <option value="trashId">Trash</option>
   <option value="source_well">Source Well</option>
   <option value="dest_well" disabled="">Destination Well</option>
</select>

For selector number 8, would it make more sense for it to be name="pipette" rather than using id="PipetteField_dropdown" to match eg the name="aspirate_labware" and name="dispense_labware" dropdowns?

Another good call! I did:
<select name="pipette">
   <option value="56ac2870-9bae-11eb-8a4b-e7b378696bf6">P20 Single-Channel GEN2</option>
   <option value="56ac2871-9bae-11eb-8a4b-e7b378696bf6">P20 8-Channel GEN2</option>
</select>


Error running ./example/spectrogram.py on fresh install with all dependencies

Just installed. Trying out examples. Error produced as follows.
./spectrogram.py '/path/to/sound.wav'
Traceback (most recent call last):
  File "./spectrogram.py", line 84, in <module>
    scl = scale(args.fmin, args.fmax, args.bins, beyond=int(args.reducedform == 2))
TypeError: __init__() got an unexpected keyword argument 'beyond'

Proceeds fine when arg removed (creates the log scale object with the default beyond value). However we then hit a warning and then another error:
/home/james/anaconda2/envs/nolearn/lib/python2.7/site-packages/nsgt/nsgfwin_sl.py:113: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  g[kk-1][M[kk-1]//2-M[kk]//2:M[kk-1]//2+ceil(M[kk]/2.)] = hannwin(M[kk])
Traceback (most recent call last):
  File "./spectrogram.py", line 102, in <module>
    ncoefs = int(sf.frames*slicq.coef_factor)
AttributeError: NSGT_sliced instance has no attribute 'coef_factor'

I see that, whilst NSGT_sliced indeed doesn't have an attribute coef_factor, it does have a method!

Hi James, i am pretty sure you have an old version of nsgt installed which overshadows the new one.

Am 15.06.2016 um 15:17 schrieb James Owers<EMAIL_ADDRESS>Just installed. Trying out examples. Error produced as follows.
./spectrogram.py '/path/to/sound.wav'
Traceback (most recent call last):
File "./spectrogram.py", line 84, in
scl = scale(args.fmin, args.fmax, args.bins, beyond=int(args.reducedform == 2))
TypeError: init() got an unexpected keyword argument 'beyond'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/grrrr/nsgt/issues/14, or mute the thread https://github.com/notifications/unsubscribe/AAJ-JtXBhyb83iKi8uPLVWNXMOX90Pkxks5qL_tzgaJpZM4I2WGD.

Yep! Had done a sudo python setup.py build. This uses the wrong python. Your instructions are all correct. Sorry to bother!


types/config: add version field

Add version field. Only allow 0 or unspecified. This starts versioning
the spec in a backwards compatible way.

@ajeddeloh sorry for the delay, I was mostly offline yesterday. Two general comments on this:

we may want to split unmarshaling version as its own earlier step, as the Config structure itself may change in breaking ways. This can be done now or at the first breaking change at some point in the future.
I agree on the non-semver comment. However I still think we should have a kind-string here (as opposed to a version-integer) and default the missing/empty case to cl-config-v0, so that we can accommodate any additional flavors (rhcos, fcos, cl, and version bumps) if we need to.

On the first point: Since Ignition spec 3.0.0 won't ship to CL we don't anticipate breaking changes and needing to use this. We'll split that out if that time comes.
On the second point: We're planning on leaving it unversioned unless there is breaking change, so non-breaking changes wont need version bumps. Since FCOS is a different distro, it will have it's own config and we can revisit versioning there.

Ack. Note to self: we plan to have the CL / FCOS selector external of the config object itself (e.g. a different binary) instead of embedding the kind in here.


Atom stopped working properly after updating to version 1.27.2

I have been running Atom on Ubuntu 16 without any problems but today I decided to update from version 1.24 to version 1.27 because of a Hydrogen package error I was getting whenever I opened Atom.
I did so via command line with apm udpate
After that I can open Atom but then I can't do anything else. I try to manually open files selecting the folders they're in but nothing happens.
When I try opening Atom with atom --safe everything seems ok though.

Thanks for reaching out!

When I try opening Atom with atom --safe everything seems ok though.

If there's no problem in safe mode, then that likely means a community package is causing the issue:
http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
You can disable each community package one by one to try and pinpoint which is causing the problem (maybe start with Hydrogen?).  If you have any trouble with this let me know.
Additionally, for future issues please fill out the issue template - the information in the template is super helpful for us when triaging issues.


Message Cleaner should close message resources

Message Cleaner should close message resources. However this has a lot of code impact and I don't like that, even though we should.

If we'll do this, we're going to do this a different way. Closing the PR.


Description field formatting

Would be amazing to have the description field to

respect page breaks.
Markdown would be a plus too

Respecting line breaks for now.
Thanks!


Notes area

It would be great if there was an option to have a Notes area on every bullet. I saw from your Twitter that you're aware of WorkFlowy so you've probably seen the feature before but Dynalist has a more flexible implementation of this:

They allow switching between:

'1st line' view (default and only option in WorkFlowy) which shows only the first line of whatever you type in the Notes area
'Show' (which shows all lines in Notes)
'Hide' which hides it completely (unless you zoom into that bullet of course).

The 'Show' option looks like this (under 'Credit'):

Hi @LeapingDragon . Thanks for your feedback. This is an idea I've been considering, along with the idea of multi-line text, i.e. pressing shift + enter would start a new line of text within the same item. The problem is that that would break some functionality that is built on the assumption that an item can only ever have a single line of text. I haven't figured out how to work around that yet. Hopefully I can figure something out soon. I will update this issue as the feature evolves.

I've no skill with coding so forgive me if this doesn't make sense but how about a different prefix/bullet point style for each line to denote this?
For example:
Denoting the Notes text area for a bullet
- Normal bullet #1
> Notes area line 1
> Notes area line 2
- Normal bullet #2

Multi-line text
- Normal bullet #1 line 1
* line 2
* line 3
- Normal bullet #2

Code blocks?


Mattermost apply error Kubernetes

Hello!
Error trying to apply mattermost-installation.yaml (v1bta1 or v1, both version) in microk8s, 1.23.

error: unable to recognize "mattermost-installation.yaml": no matches for kind "Mattermost" in version "installation.mattermost.com/v1

error: unable to recognize "mattermost-installation.yaml": no matches for kind "Mattermost" in version "installation.mattermost.com/v1bta1"

Hi @cleitonpena, would you be open to posting this troubleshooting question either on our troubleshooting forum or on our Peer-to-peer Help channel? One of our developers or other community members can likely help with this.

Hello, @amyblais
Thank you for your reply.👏
I solved  not from Mattermost's docs but from this link:
INSTALL MATTERMOST KUBERNETES


Day361

Resolves #712.

Pull Request Test Coverage Report for Build 1305

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1303:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls


Single Path String Parsing API

This adds a new parsing end point so clients can request single path objects parsed just from the d attribute of a path.
This is useful to clients that do their own xml parsing (because they need to handle special cases for text and groups) but want to take advantage of this libraries very fast parsing for path strings.
Thank you for submitting a PR for PocketSVG 😀

If you're fixing an issue, please briefly describe the current behaviour and the new behaviour. If you're addressing an open issue, please link to it.

If you're introducing a new feature, please briefly describe the new behavior and provide code + sample SVGs for us to see it in action.

Please also add that as an entry in our CHANGELOG.md file to explain your changes and credit yourself. Add the entry in the appropriate section (New Features / Fixes / Internal Change / Breaking Change) under Unreleased. Add links to your GitHub profile and to the related PR and issue after your description. Be part of history.

Thanks for the PR @scottsykora
Can you please elaborate on the use case for this? If a client is carrying out custom parsing of the SVG, why wouldn't they use this pre-existing method instead:
+ (NSArray<SVGBezierPath*> *)pathsFromSVGString:(NSString *)svgString;

@arielelkin the app we're using this in consumes svgs but converts them into specific models for our own scene graph. It's an editing app where you can move shapes and add layers after the svg is imported.
Because of this we handle things in svg like text boxes and groups in specific ways and have written our own xml parser for the svg structure. For our needs the component we really wanted to use PocketSVG for was the parsing of the d= string in the path components of the svg. We could write it ourselves but the PocketSVG version was very fast and more full featured.
In this use case we need to tie the path that comes out of PocketSVG to the specific part of the xml structure in the original svg, and we only need specific ones, so pathsFromSVGString gave us way too much and no way to tie it back to the svg structure.

I understand, thanks for the PR, it's looking good.


Hack to make it work on window

The title says it all, I think there is probably a way of doing this whitout alloc, but is not really important in the long scheme of things

100% agree the alloc is a non-issue. Thanks a lot !


Add support for all_fields

In Strawberry's pydantic extension we have support all_fields. I think we should add it for strawberry django too :)
https://strawberry.rocks/docs/integrations/pydantic#pydantic-support

Personally I think all_fields is not the way to go. Other libraries like django-ninja or djantic have a more useful mechnanism where you can include or exclude fields.
How do you include all fields except one or two fields?

I have mixed feelings regarding this...
Coming from graphene myself, I feel that automatically exposing all fields from the django model is can lead to a lot of security issues.
For example, I used to love the simplicity of having everything exposed and only defining a few "exclude" that should not be exposed, but one day we had an issue with some leaked sensitive information that got exposed by mistake when someone added a new column and forgot to add it to the "exclude" list. Since then we changed everything to a "opt-in" approach instead of "opt-out".
Having said that, I don't fully oppose to the ideas here, but I think that if it gets implemented, it should be documented with a "warning" message mentioning that possibility of sensitive data leak by mistake.
Regarding the implementation, we have 2 use cases here:

We have an "opt-in" approach, which is basically the way the integration works right now. I don't see a reason to why we would require a "fields" list since the current approach of defining that "list" as attributes of the type, and typing them as "auto" is almost as simple as the list itself.

We have an "all-in"/"opt-out" approach in which we assume that all fields are included by default, and we can define some to be "excluded". We could go with a new argument all_fields=True (false by default) that triggers the "include all fields" introspection, and an optional exclude_fields list that defines a list of fields to be excluded when all_fields is True

This would ease a lot the migration from graphene-django, to be fair

There are a lot of people migrating from graphene to strawberry (I'm also included in that list), I imagine if it would be worth to write a small compatibility layer to apply on top of graphene types/fields to transform them into strawberry ones, which would allow people to migrate more easily instead of having to make an "all or nothing" migration.

I am really in favor of implementing the features described in this thread. Though I have some notes on top of what has already been discussed and argued:

Regarding an all_fields implementation:

I think if we were to implement an all_fields flag, this should not be implemented as in Pydantic (that is, passing all_fields=False to the class constructor). I propose we instead follow the already "djangonic" pattern of setting field-inclusion related logic as class.Meta fields (or something similar to class.Meta that is more adequate for dataclasses). Because that lets us put all field-inclusion related logic in one place.
When it comes to the default value of this, we could either set it to True by default or set it to False and raise an error (that would rise when running ./manage.py check) if nothing else was set (no explicitly defined fields and no exclude or include iterables) and maybe even point to a url in the docs for a fields section reference inside the error message.

Regarding a exclude/include implementation:

About this

I don't see a reason to why we would require a "fields" list since the current approach of defining that "list" as attributes of the type, and typing them as "auto" is almost as simple as the list itself.

I argue that only typing the field name is not "almost as easy" as manually typing each field alongside it's type. Every time you change a model's field type, you'll have to go back and change it again in the type definition (which you might also have a hard time picking if you are new to typed Python and don't know your way around Optional and UNSET). Needless to say this is not a zero-sum game, by implementing this feature you don't loose the ability to manually type each field if you wished so still.

About this:

it should be documented with a "warning" message mentioning that possibility of sensitive data leak by mistake.

If the argument in favor of implementing a warning for the (btw pretty much default Django logic style, followed in forms and serializers as well) all_fields, include, exclude features  is that it this feature is prone to human error (in this case, someone might include a new sensitive field in their model that could be exposed), we might as well forbid all kinds of framework simplifications. Checking that a piece of logic behaves as expected is the job of unit tests.

Again this time, a security/simplicity tradeoff shouldn't even necessarily exist. If we were to implement the all_fields and set it to False by default. The developer could either opt to manually and explicitly set all the fields as @bellini666  suggests or, he could opt to set them inside in any of the automatic options (all_fields, include, exclude). If he does none he'll see an error asking him to set the fields for the type representation.

The key takeaways of my intervention are that:

We shouldn't create a framework around "baby-proofing" everything at the expense of simplicity. That doesn't mean we shouldn't make our framework safer when the positive tradeoff is self evident (i.e: setting all_fields=False by default as I pointed out earlier).
When in doubt, we have the example of DRF and Django itself and they (the contributors) already implemented such features. We are already on top of Django why break such a succesful pattern?

@Lucasmiguelmac It is really similar to the approach used by graphene-django, with the ability to pass an empty exclude list to include everything

@Lucasmiguelmac It is really similar to the approach used by graphene-django, with the ability to pass an empty exclude list to include everything

Yes

Hey @Lucasmiguelmac and everyone interested here,
I totally get your points, and as I mentioned previously, I don't fully oppose to the idea and I think that it should be fine to have support for it if that's something people really wants, but still, based on the fact that the whole strawberry philosophy is to use dataclasses + typing and map those the closest as possible to graphql, I would take care to not consider that as the "default way" but a "you can also do this if you need".
Even auto is somewhat magical and goes against that philosophy, but is a necessary evil for simplicity of the integration.

Needless to say it would be awesome to use Djantic itself in the implementation.

I don't think we need to add Djantic as a dependency here, the implementation here would actually me even simples IMO.
Basically, when someone wants to use this feature, he would need to inherit from a base class that has a custom metaclass. That metaclass would access the type's Meta (or Config) to retrieve the model and the fields (defined as include, exclude, etc) and inject the fields name in the class's __dict__ and also put an auto in the __annotattions__. Then the strawberry.django.type would take care of creating the type correctly, just like if you added those fields by hand.
The only complex part here would be to handle references like in this example:
@strawberry.django.type(models.Fruit)
class Fruit:
    id: auto
    name: auto
    color: 'Color'

@strawberry.django.type(models.Color)
class Color:
    id: auto
    name: auto
    fruits: List[Fruit]

Both Fruit.color and Color.fruits can't be automatically resolved easily because strawberry-django doesn't keep a registry of model => type mapping. It would be necessary to create such mapping, and also allow those to be lazily resolved (in the case above, Fruit would need to lazily resolve to Color since it would be created by the metaclass and also by the type decorator before Color).
Also it is worth noting that this imposes a natural downside that graphene also have: If you are automatically resolving any ForeignKey to models.Color to a type created for Color, what happens if you have more than one type? For example, you might want to have something like this:
@strawberry.django.type(models.Color)
class Color:
    id: auto
    name: auto

@strawberry.django.type(models.Color)
class ColorWithFruits:
    id: auto
    name: auto
    fruits: List[Fruit]

In graphene-django, I already faced this problem and I know that the latest created type for a model would be used because it would override the registry mapping (which is not obvious when first looking at it without looking at its source code). Due to the fact that this is a very specific corner case, it can be easily resolved by not adding colors to the fields list and defining it with a proper annotation at the class as a workaround, but I think it is worth mentioning.
Having said all of that, I would encourage anyone wanting this feature to try to open a PR and I'll gladly review it to incorporate into the source code. Feel free to also ping me on discord if you need any help with the implementation :)

For graphene I think it was a meta class used to do the all_fields
So they have:
class Object:
       class Meta:
              model =Django model
               fields =  (fields, fields)a list of fields or  "__all__" for all fields
              exclude =(fields, fields) an option for fields to exclude

If this was implemented in strawberry to be similar I would think you want something like this
@strawberry.django.type(models.Fruit)
class Fruits:
    Optional fields: type
    class Meta:
          fields = "__all__" or (List of fields)
          exclude= (List of fields)

This format uses more characters than Graphene, we probably want to come up with something with less characters.

This was fixed by https://github.com/strawberry-graphql/strawberry-graphql-django/pull/293


Incorrect import path for descriptor.proto

descriptor/descriptor.go depends on "google.golang.org/genproto/protobuf" for proto artifacts generated from descriptor.proto.  The import path should instead be github.com/golang/protobuf/protoc-gen-go/descriptor.
CC https://github.com/google/go-genproto/issues/18

If project is loaded in Eclipse GO, then it catches this error.  I had to change import line to be:
protobuf "github.com/golang/protobuf/descriptor"

I'm hitting this problem, too.

Many apologies for the delay in addressing this, and thank you for the fix.


There is a fatal error in Metatron UI

I 've hosted the metatron-discovery in our company's own server.I've experienced several times if there any server restart or server shutdown the metatron-discovery fails to save a workbook or created dashboard . The all the workbooks and created are vanised or destroyed . Is there any backup option to save workbooks or the dashboards !

@alchan-lee
Thanks for the quick reply . After removing the --init option the metatron-discovery workbooks are not vanished :-) . So the problem solved :-) .


Apk did not install

I'm using Android 9. And I want to download the apk but the downloader says that There was a problem parsing package.

The minimum Android version is 11, as stated in the readme.


Add circleci unittest

Integrated this repo with CircleCI and added config.yml to bringup mysql and python3.6 container setup in the background to test checked out code.


Missing elements in resulting image from svg

Trying to convert certain svg files (mouse.txt) but end up getting missing elements in the png:

expected:
output:

const sharp = require('sharp');
sharp('mouse.svg').toFile('output.png', (err, info) => { console.log(err, info) });

Weirdly, it's something different missing every time.. Might spend some time trying to figure out what sharp is skipping but wondering if there's a fix to this?

The rsvg-convert command line tool produces the same output as sharp:
$ rsvg-convert mouse.svg > mouse.png

Please can you report this upstream at https://gitlab.gnome.org/GNOME/librsvg

@xDeda Were you able to report this upstream at https://gitlab.gnome.org/GNOME/librsvg ? (I had a quick look but couldn't see a related issue.)

@lovell ....no, sorry, I was being lazy back then...... but I might do some tests these days and see if I can replicate the issue and then  write an issue :)

@lovell I seem to just get a blank png when I run rsvg-convert and I'd love to report an issue upstream but it's so above my head trying to get and build all the software required to update to a more recent librsvg T_T you think it would be kosher to just post them my svg and ask what's up anyway?

A quick way to test the latest version is via an Alpine Edge container.
$ docker run -it --rm alpine:edge
/ # apk add rsvg-convert
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
...
OK: 34 MiB in 52 packages
/ # rsvg-convert -v
rsvg-convert version 2.55.1

Reported upstream at https://gitlab.gnome.org/GNOME/librsvg/-/issues/912
sry for the delay

Follow-up: it seems like they fixed this upstream: https://gitlab.gnome.org/federico/librsvg/-/commit/344d4c9f9d8b4efce6064d469b71266c25fd462b

Thanks for the update. This was included in libsrvg v2.55.90 via commit https://gitlab.gnome.org/GNOME/librsvg/-/commit/344d4c9f9d8b4efce6064d469b71266c25fd462b and will be picked up by the prebuilt binaries provided by sharp from v0.32.0 onwards.


add full api to engine

following #36
to move the rest of the user-API from interpreter to engine

Can you explain why? I don't see anything in the prepare_for_eval function that depends on the input.

Can you explain why? I don't see anything in the prepare_for_eval function that depends on the input.

I'm thinking a rule that depends on input values like below would need to be reevaluated when input changes
package test
a = input.a


Need to comment render (time / title / description / scenario

it will be nice to use the QImage setText method to add some informations into pictures headers files

Please use our [mailing list] (https://groups.google.com/forum/#!forum/phantomjs) to discuss new (or existing) API.

Hi vitallium,
http://degooglisons-internet.org/

I can't access to google groups


Bleed overflows incorrectly in firefox

Chrome:

Firefox:

Example used

ty for the catch, will be fixed in v3


enable 32-bit compilation on OS X

With this, I was able to build C# native extension compiled in 32-bit
make DARWIN_ARCH=i386 HAS_SYSTEM_ZLIB=false grpc_csharp_ext
sudo make DARWIN_ARCH=i386 HAS_SYSTEM_ZLIB=false install_grpc_csharp_ext
The solution is not ideal, but works.
Fixes #1239

Is this dead?

I think it would still be good to consider this.


docker: returns 403 when calling POST method

When I run on windows, everything works and authorizes, but when running in docker asp net:6.0-alpine on the POST method returns 403
The assumption is that because of TLS, there are no other solutions

As work around change mcr.microsoft.com/dotnet/aspnet:6.0-alpine to mcr.microsoft.com/dotnet/aspnet:6.0
and all requests to return 200 😀


Feature: Make the ImageResizer handles more intuitive

I would like to be able to drag and resize, for example an SVG, on only one axis, as known from other Vector graphic software or photoshop.
Origin of issue: https://github.com/facebook/lexical/pull/1851#issuecomment-1108310710

Can I also work on this if this issue will be labeled as 'good first issue' or 'help wanted'?

Sure, thanks!

Hi, did I understand correctly that you just need to add new buttons? Will the image change also taking into account the proportions?


fix: Remove IfElse To Keep State Correct

Refs: #12
This PR addresses the SwiftUI identification issue. When a view to which the shimmering modifier is applied has its own state and toggles between shimmering active true or false the view would lose its state. Here's a video representing the issue:
https://github.com/markiv/SwiftUI-Shimmer/assets/24592433/d9502996-7b56-4c16-87e0-a145debef83a
Here is a video with the expected behavior:
https://github.com/markiv/SwiftUI-Shimmer/assets/24592433/75e6ca78-36e0-4eff-91f1-a0ab2f05f80b
why is this an issue described in the following article:
https://www.objc.io/blog/2021/08/24/conditional-view-modifiers/

Thanks for this @vladyslavsosiuk. It's a critical issue imo, let's hope it gets merged sometime soon.

Did you notice that on the video with expected behavior part of the toggle button on the right is cut off?

Did you notice that on the video with expected behavior part of the toggle button on the right is cut off?

Yes, it's just a preview


reapder: Log only the number of reaped buckets

Logging individual buckets is too noisy.

Hmm, looks like the presubmit checks no longer work after the repo migration..? Looking.


Upgrade wheel package

Context

addresses pypa/wheel vulnerable to Regular Expression denial of service (ReDoS)
upgrades 'wheel' to 0.38.4

Codecov Report
Base: 53.21% // Head: 53.21% // No change to project coverage :thumbsup:

Coverage data is based on head (1451e95) compared to base (9568005).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #325   +/-   ##
========================================
  Coverage    53.21%   53.21%
========================================
  Files          204      204
  Lines        11562    11562
  Branches      1492     1492
========================================
  Hits          6153     6153
  Misses        5409     5409

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


fix(core) stop percent decoding regex path

It's not a very reliable and sound way to support percent-encoding in regex. We choose to tell users that we have a normalized (standard) form to match with so there's no ambiguity.
https://github.com/Kong/kong/pull/8140#issuecomment-1168371378
fix CT-344

Percent decoding of router.path is an undocumented feature, so we don't need a change to document for this PR.

I've tested migration in my local env and it works as expected.


CSS not loading when built on Netlify

When running a server locally the link to the CSS is generated correctly, however, when built on Netlify the link to the CSS includes the baseURL string. E.g:
Running local server:
localhost:1313/css/styles.css
Built on Netlify:
example.com/example.com/css/styles.css
The workaround I am currently using is to set the baseURL to "/" which fixes it but doesn't address the issue.

Hey @OliverStenning
Can you set the baseURL value to the domain of your netlify website? That should solve this issue
ex: my-website.netlify.app

I've changed the baseURL to my-website.netlify.app and then when I look at the html of the website the link to the CSS is:
https://my-website.netlify.app/my-website.netlify.app/css/styles.css

I think this can be solved by adding "https://" at the start

I have trouble locally getting errors and I have no idea how to resolve it. the error says failed to transform "css/styles.css"
tried unsuccessful attempts but no luck.

@riseekrthakur Can you try following the instructions here? → #1

Closing due to inactivity


[file-format] establish a common ground for visibility extensions

Motivation
This is an extraction of #7343 by removing all "friend" / protected stuff but retaining the changes to the bytecode format. The goal is to establish a common ground for future extension of visibility, being it "friend" or "script" or "package", etc.
With this PR:

Visibility is not a boolean flag is_public anymore. It is an enum now, although there are only Public and Private in the enum.
For serialization and deserialization, the visibility info is not mixed into a one-byte flag. Instead, the visibility info is stored a separate byte with 0x0 being 'private' and being 0x1 being public. The old flag byte now has only 0x2 bit in use, which is to store the is_native information. The bytecode version is updated to version 2 to reflect this change.

Test Plan
All tests should pass, several tests are updated:

deserializer_tests.rs are updated such that the simple_malformed test is applied to not only the most recent version, but also any prior versions.
E2E tests that stores compiled module bytes in the golden files are updated (golden files regenerated)

@tnowacki waiting for your final say on the PR :)

Should we go ahead and add the Script visibility mode here?

Should we go ahead and add the Script visibility mode here?

A different PR :) But this opens the way for it

/land

:broken_heart: Test Failed - Build images and run cluster test

/land

:broken_heart: Test Failed - Build images and run cluster test

Rebase past #7443 for cluster test

Rebase past #7449 for unit test

/land

:broken_heart: Test Failed - Build images and run cluster test

/land

:broken_heart: Test Failed - Build images and run cluster test

Rebase past #7436, merge conflict resolved

/canary

I'm not sure what is going on with this versioned serializer. It is definitely not something we can support for abilities

:sunny: Canary successful

Versioned serializer is dropped by the two "reverts", seems to be an overkill and can soon become intractable.
The serializer is still programmed to serialize in old format (in commit 6f064ad), just to make cluster test happy. This behavior will be reverted (by a follow-up PR) as soon as this PR is merged in.

Bring the PR to the state where @tnowacki last reviewed. Pending rebase after #7493 lands.

/land


Binding an array element using the indexer throws an error at compile time, while a List works properly

Describe the bug
Accessing an element inside an array using the indexer from the view:
<TextBlock Text="{Binding Stats[0].Stat.Name }" />

throws an error at compile time:
> PokemonView.axaml(15,24):
Error AVLN:0004 Avalonia: Unable to resolve property or method of name 'Stat' on type 'System.Array'

If I use a List or an ObservableCollection, instead of an Array, the project compiles and starts correctly. Am I missing some basic concept here?
To Reproduce
Steps to reproduce the behavior:
Create a view that uses PokemonFull as view model, and binds a TextBlock.Text to Stats[0].Stat.Name:
<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:models="clr-namespace:PokeloniaUI.Models"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="PokeloniaUI.Views.PokemonView"
             x:DataType="models:PokemonFull"
             d:DataContext="{x:Static models:PokemonFull.CreatePokemon}">

    <StackPanel Orientation="Vertical" Spacing="10">
        <TextBlock Text="{Binding Name}" Margin="15" Theme="{StaticResource TitleTextBlockStyle}"/>
        <Rectangle Width="96" Height="96" Fill="Aquamarine"/>
        <StackPanel Orientation="Horizontal" Margin="15" HorizontalAlignment="Center" >
            <TextBlock Text="{Binding Stats[0].Stat.Name }" Margin="0 0 30 0"/>
            <TextBlock Text="{Binding Stats[0].BaseStat}" Margin="0 0 30 0"/>
            <ProgressBar Value="{Binding Stats[0].BaseStat}" Maximum="200"/>
        </StackPanel>
    </StackPanel>

</UserControl>

Create the PokemonFull record:
public record PokemonFull(
    int BaseExperience,
    string Name,
    PokemonStat[] Stats,
    PokemonType Types,
    PokemonSprite Sprites)
{
    public static PokemonFull CreatePokemon =>
        new(150,
            "Bulbasaur",
            [new PokemonStat(69, 0, new ExternalReference("boh", "boh"))],
            new PokemonType(1, new ExternalReference("", "")),
            new PokemonSprite("", ""));
}

Compile and see the error.
Expected behavior
The project is able to compiler and run. The view is able to PokemonFull.Stats elements using the indexer.
Environment

OS: Windows
Avalonia-Version: 11.0.6

Duplicate of #12886?

Duplicate of #12886?

Yes, thanks for pointing out. Should I close this?

@MammaMiaDev yes, in Avalonia we close duplicates 🙂. Otherwise these issues stay open for ever.