text:
PHPLIB-858: Adding tests against MongoDB 6.0

https://jira.mongodb.org/browse/PHPLIB-858

There was one test failure, but it appears to be unrelated. Likely just another flaky change stream test for sharded clusters:
MongoDB.Tests.Operation.WatchFunctionalTest.testNextAdvancesKey
 [2022/05/23 22:32:34.665] FAILURE:  (PHPUnit\Framework\ExpectationFailedException)
 [2022/05/23 22:32:34.665] MongoDB\Tests\Operation\WatchFunctionalTest::testNextAdvancesKey
 [2022/05/23 22:32:34.665] Failed asserting that null is identical to 1.
 [2022/05/23 22:32:34.665] /data/mci/cafef06d16c376cb3e1ba9a9592540e1/src/tests/Operation/WatchFunctionalTest.php:1079

@aleksandr-rudo: Please hold off on merging this. I just realized that the corresponding PHPC PR (https://github.com/mongodb/mongo-php-driver/pull/1323) encountered a build failure attempting to download http://downloads.10gen.com/linux/mongodb-linux-x86_64-enterprise-debian92-6.0.0-rc5.tgz.
Since PHPLIB does not include 6.0 in its CI matrix for PRs, we didn't see an error here. I'll dig into this a bit to see what's wrong.

GitHub CI changes look good. Let's just remove the Evergreen changes for now and merge with only GitHub. Then we can bump PHPLIB-858 back to blocked on the corresponding BUILD ticket and deal with Evergreen in a second PR.

authors: aleksandr-rudo jmikola

repo: mongodb/mongo-php-library


text:
(DOCSP-16656) Backfills docs content for dbusers and events commands

Proposed changes
Backfills docs content for dbusers and events commands
Jira ticket:
https://jira.mongodb.org/browse/DOCSP-16656
https://jira.mongodb.org/browse/DOCSP-16657
https://jira.mongodb.org/browse/DOCSP-16658
https://jira.mongodb.org/browse/DOCSP-16659
https://jira.mongodb.org/browse/DOCSP-16661
Checklist

[ ] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[ ] I have updated test/README.md (if an e2e test has been added)
[ ] I have run make fmt and formatted my code

@gssbzn I removed the AWS examples altogether for now, may investigate later if I can add them in for only Atlas ones using annotations and editing the template. I also changed it to use a new variable for the Atlas CLI, not for MCLI. RFAL when you have time. Thank you!

source: gharchive/pull-request

repo: mongodb/mongodb-atlas-cli

license_type: permissive

license_source: github-api


text:
(DOCSP-28639) Adds outputs to docs for list commands

Proposed changes
Adds outputs to docs for list commands
Jira ticket:
https://jira.mongodb.org/browse/DOCSP-28639
Checklist

[x] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[ ] I have updated test/README.md (if an e2e test has been added)
[x] I have run make fmt and formatted my code

Hi @andreaangiolillo, I rebased to include that fix for the metrics commands. Can you restamp when you have a moment? Thank you!


text:
Observable.toInputStream

We have Observable.fromInputStream but we're missing toInputStream.
FS2 and Akka Streams implementations for reference

I'd like to work on this :)

That's awesome @heraklos :D Let me know if I can help with anything.
Although I think @rahilb was attempting something. Are you still working on it?
If so, I could find something else for either of you if you have a time and interest to contribute
Link to gitter, has some extra info:
https://gitter.im/monix/monix?at=5d51768fc87a0963e759dea4

Hey @heraklos go for it; I made very little progress and I don't really have time for OSS this week :(

@Avasil
Thank you for guiding me :) I'll give it a shot, maybe I will submit PR this week
@rahilb
Sorry I didn't notice you had already worked on this issue...
Thank you for letting me do it :)

Hi!
I have started hacking on this issue and I am a little stuck.
The InputStream api is blocking. So, let's say I have a Subscriber and an interaction flow:

client code calls inputStream.read
the Subscriber.onNext has never been called yet
inputStream.read waits
Subscriber.onNext receives the next bytes chunk and sets into a shared state
inputStream.read stops waiting and reads the bytes, because they have been already received.

I was not able to imagine any solution without the step 3 where the read waits for data to arrive, because the time of onNext call is not determined.
After investigating the fs2 and akka-streams code, I have figured out that they use a queue to synchronize the communication between InputStream and the stream that runs in another thread/asynchronously.
Akka streams uses java.util.concurrent.LinkedBlockingDeque with a fixed size.
Fs2 uses fs2.concurrent.Queue.synchronous which seems to be a queue of at most 1 element.
So I also decided to introduce smth to pass values from onNext into the InputStream state.
BlockingQueue is not available in scalajs.
monix.execution.internal.collection.LowLevelConcurrentQueue seems to be non-blocking (tried it via LowLevelConcurrentQueueBuilders.apply(1,SPSC,false)).
After that I took AtomicAny. And it seems to work. I subscribe in a separate thread to the observable and set/read this atomic. The wait for data to be set in the atomic is just a loop.
The problem appeared after I had begun writing tests:

TestScheduler worked only in a single thread for me, making my waiter run infinitely, because the thread never gets to onNext
changing the scheduler to monix.execution.Scheduler.Implicits.global made the test pass in jvm but js again stucks in a single thread.

@Avasil could you please give me any advice on what I possibly do wrong? Probably, my assumptions/conclusions are not true. Thank you in advance.
The current state of my implementation is here https://github.com/melgenek/monix/commit/b736177ffe184827014ebfbe98f1e752f87a38a2.

Hello @melgenek, thank you for picking it up!

I was not able to imagine any solution without the step 3 where the read waits for data to arrive, because the time of onNext call is not determined.

Yes, I think blocking is unavoidable in this operation.

monix.execution.internal.collection.LowLevelConcurrentQueue seems to be non-blocking (tried it via LowLevelConcurrentQueueBuilders.apply(1,SPSC,false)).

We need blocking queue to wait before returning from onNext, I assume? We could also try AsyncQueue,  ConcurrentQueue or MVar (there is a Future version as well). It could block asynchronously ("blocks" Future / Task but not the thread) in Subscriber and await on it in InputStream.read(). Maybe we could even optimize it and do tryTake first and block on take if it fails

After that I took AtomicAny. And it seems to work. I subscribe in a separate thread to the observable and set/read this atomic. The wait for data to be set in the atomic is just a loop.

@tailrec
private[this] def setStateEventually(value: Option[Bytes]): Unit = {
  if (!state.compareAndSet(null, value)) setStateEventually(value)
}

It seems like between the onNext and read() it will be essentially busy waiting until the element is taken. My hunch tells me it could be an issue

TestScheduler worked only in a single thread for me, making my waiter run infinitely, because the thread never gets to onNext
changing the scheduler to monix.execution.Scheduler.Implicits.global made the test pass in jvm but js again stucks in a single thread.

We can put the test in jvm module and possibly only allow to use the function on JVM, like final def runSyncUnsafe(timeout: Duration = Duration.Inf)(implicit s: Scheduler, permit: CanBlock): A. I think we can't avoid blocking and the method is mostly for interop with Java APIs so we shouldn't allow in in ScalaJS.
I remember @alexandru not wanting this method at all. In my opinion it would be nice to have it for symmetry and people ask about it from time to time. We could consider putting it in a different place than monix-reactive but I don't know where. We don't have monix-io and  monix-nio seems to not be under active development.

source: gharchive/issue

authors: Avasil heraklos melgenek rahilb

repo: monix/monix


text:
Totally confused (*not a useful github issue)

I am totally confused by the number of streaming and flow processing libraries and am unable to compare and make a decision as to what is most suitable for me. Does anyone else feel like this?

Probably there are other people feeling like this, yes.

The problem is that to make a decision I must go in depth and use one of these, and then use another and use another in order to see what is good and bad, but the amount of time and learning is quite high.
Its like Java Hibernate vs other methods in the past, if you didn't really get to know Hibernate in depth you didn't understand it and therefore didn't see what was good about it and couldn't make a fair comparison. Had to go in deep to fully understand.

I feel you @PhilAndrew, but as a library author, my view will naturally be biased, so it won't help you much.
If you want the difference in phylosophy between Monix and Akka Streams, I wrote a (biased) blogpost about it that still holds: https://alexn.org/blog/2015/09/06/monifu-vs-akka-streams.html
Cheers,

authors: PhilAndrew alexandru

repo: monixio/monix

license_source: bigquery


text:
Cross-platform PCL project errors out when referencing MonoGame.

".dll not found. Can not load 3.1.2 version of MonoGame.Framework.dll".  This only seems to be happening on Windows.

Closed via commit https://github.com/mono/CocosSharp/commit/01d7e067ff00779f1caace0367921e363828d35b

This now needs to be tested on Mac and Xamarin Studio.

repo: mono/CocosSharp

license: mit


text:
CCTileMapLayer: Handle drawing of maps with more than 16384 tiles / 6553...

...5 vertices. #148

@charliekilian Merged. Thanks!
Also, keep in mind that culling support will be coming soon, meaning that the use of large tile maps should not have an adverse effect on performance.

authors: charliekilian rtabbara


text:
[FEATURE] Include libSkiaSharp.dll PDB files to the nuget package

It would be super helpful for performance profiling. Is it possible?

I am against this because the current package is already gigantic.

There are 2 types of pdb files, the debug which is several hundred MB each and the release which is also pretty size-y (somehow a 80-90MB comes to mind...). We could use a symbols package that you opt into - like with snupkg or symbols.nupkg (whatever the new trend is) - but I am not sure if that applies to native code (I'll have to check).
But this has been on my mind for some time though. What/how does the other projects in the community deal with this?

For the native bits, we would need a special build that includes debugging symbols. Currently, these are excluded.

Maybe you can configure your pipeline to somehow upload these pdb files to the microsoft symbol server. It would be perfect.

I think this is what will work: https://github.com/mono/SkiaSharp/pull/1797
The symbols are actually available via the preview feed in a custom package, but this makes it a bit better.

authors: Gillibald Mikolaytis mattleibow

repo: mono/SkiaSharp


text:
SkiaSharpSample project now default startup project in the WPF SkiaSharpSample solution

Description of Change
In the samples\Gallery\WPF\SkiaSharpSample.sln solution, I made the SkiaSharpSample project the default startup project by listing it first in the sln file.
API Changes
None
Behavioral Changes
No runtime changes.
This change improves the development experience.  When first cloning the repo or after deleting the samples\Gallery\WPF\.vs folder and then opening samples\Gallery\WPF\SkiaSharpSample.sln with Visual Studio, the default startup project will now be the SkiaSharpSample project.  This is an improvement because it is the only project that can be started.
PR Checklist

[ ] Has tests (if omitted, state reason in description)
[x] Rebased on top of master at time of PR
[ ] Changes adhere to coding standard
[NA] Updated documentation

Thanks for this.


text:
Don't stop looking for symbols if we can't load a native pdb symbol provider. Fixes #56808.

We might run into native pdbs, but we might not include support for native
pdbs, in which case we shouldn't stop looking for other debug symbols we might
be able to load (mdbs).
https://bugzilla.xamarin.com/show_bug.cgi?id=56808

I've opened an identical PR for jbevain/cecil#419

@marek-safar I've created a mono-2017-04 branch based on the current cecil hash mono/2017-04 uses, and changed the merge branch in this PR to the mono-2017-04 branch.
Also JB merged the upstream fix.

repo: mono/cecil


text:
Unable to bootstrap cluster due to missing artifacts.

Hi, I'm trying to get started with Monogon but currently can't bootstrap due to missing artifacts, see attached Bazel build log:
$ bazel run //metropolis:launch-cluster
IntelliJ found at /home/jpg/.local/share/JetBrains/IntelliJIdea2023.3, aspect repository already patched.
INFO: Invocation ID: cef4f201-628e-427f-a55d-c55210ac6127
WARNING: Download from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository linux-firmware instantiated at:
  /home/jpg/src/monogon/WORKSPACE:183:24: in <toplevel>
  /home/jpg/src/monogon/third_party/linux-firmware/external.bzl:21:17: in linux_firmware_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'linux-firmware':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:183:24: fetching http_archive rule //external:linux-firmware: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:33:22: //metropolis/node:firmware depends on @@linux-firmware//:all_files in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:33:22: //metropolis/node:firmware depends on @@linux-firmware//:metadata in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:40:11: //metropolis/node:ucode depends on @@linux-firmware//:amd_ucode in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp790376834398890193/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
INFO: Repository rules_oci~1.6.0~oci~distroless_base instantiated at:
  <builtin>: in <toplevel>
Repository rule oci_alias defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl:500:28: in <toplevel>
ERROR: An error occurred during the fetch of repository 'rules_oci~1.6.0~oci~distroless_base':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 449, column 55, in _oci_alias_impl
		manifest, _, digest = downloader.download_manifest(rctx.attr.identifier, "mf.json")
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 322, column 74, in lambda
		download_manifest = lambda identifier, output: _download_manifest(rctx, state, identifier, output),
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 265, column 23, in _download_manifest
		result = _download(rctx, state, identifier, output, "manifests", allow_fail = True)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 230, column 22, in _download
		auth = _get_token(rctx, state, rctx.attr.registry, rctx.attr.repository)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 137, column 24, in _get_token
		pattern = _get_auth(rctx, state, registry)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 98, column 55, in _get_auth
		pattern = _fetch_auth_via_creds_helper(rctx, host_raw, helper_val)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 189, column 13, in _fetch_auth_via_creds_helper
		fail("credential helper failed: \nSTDOUT:\n{}\nSTDERR:\n{}".format(result.stdout, result.stderr))
Error in fail: credential helper failed:
STDOUT:

STDERR:
/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0~oci~distroless_base/gcloud.sh: line 2: exec: docker-credential-gcloud: not found
ERROR: <builtin>: fetching oci_alias rule //:rules_oci~1.6.0~oci~distroless_base: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 449, column 55, in _oci_alias_impl
		manifest, _, digest = downloader.download_manifest(rctx.attr.identifier, "mf.json")
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 322, column 74, in lambda
		download_manifest = lambda identifier, output: _download_manifest(rctx, state, identifier, output),
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 265, column 23, in _download_manifest
		result = _download(rctx, state, identifier, output, "manifests", allow_fail = True)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 230, column 22, in _download
		auth = _get_token(rctx, state, rctx.attr.registry, rctx.attr.repository)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 137, column 24, in _get_token
		pattern = _get_auth(rctx, state, registry)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 98, column 55, in _get_auth
		pattern = _fetch_auth_via_creds_helper(rctx, host_raw, helper_val)
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0/oci/private/pull.bzl", line 189, column 13, in _fetch_auth_via_creds_helper
		fail("credential helper failed: \nSTDOUT:\n{}\nSTDERR:\n{}".format(result.stdout, result.stderr))
Error in fail: credential helper failed:
STDOUT:

STDERR:
/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0~oci~distroless_base/gcloud.sh: line 2: exec: docker-credential-gcloud: not found
ERROR: no such package '@@rules_oci~1.6.0~oci~distroless_base//': credential helper failed:
STDOUT:

STDERR:
/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0~oci~distroless_base/gcloud.sh: line 2: exec: docker-credential-gcloud: not found
ERROR: /home/jpg/src/monogon/metropolis/test/e2e/preseedtest/BUILD.bazel:36:10: //metropolis/test/e2e/preseedtest:preseedtest_image depends on @@rules_oci~1.6.0~oci~distroless_base//:distroless_base in repository @@rules_oci~1.6.0~oci~distroless_base which failed to fetch. no such package '@@rules_oci~1.6.0~oci~distroless_base//': credential helper failed:
STDOUT:

STDERR:
/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/rules_oci~1.6.0~oci~distroless_base/gcloud.sh: line 2: exec: docker-credential-gcloud: not found
WARNING: Download from https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository xfsprogs instantiated at:
  /home/jpg/src/monogon/WORKSPACE:215:18: in <toplevel>
  /home/jpg/src/monogon/third_party/xfsprogs/external.bzl:25:17: in xfsprogs_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'xfsprogs':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp6002759322421218556/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:215:18: fetching http_archive rule //external:xfsprogs: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp6002759322421218556/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@xfsprogs//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp6002759322421218556/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
WARNING: Download from https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository cap instantiated at:
  /home/jpg/src/monogon/WORKSPACE:272:13: in <toplevel>
  /home/jpg/src/monogon/third_party/cap/external.bzl:24:17: in cap_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'cap':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp14842024153914983823/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:272:13: fetching http_archive rule //external:cap: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp14842024153914983823/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@cap//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp14842024153914983823/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/chrony/BUILD.bazel:138:11: @@chrony//:sys depends on @@cap//:cap in repository @@cap which failed to fetch. no such package '@@cap//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp14842024153914983823/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:49:12: //metropolis/node:rootfs depends on @@xfsprogs//:mkfs in repository @@xfsprogs which failed to fetch. no such package '@@xfsprogs//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp6002759322421218556/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
INFO: Analyzed target //metropolis/test/launch/cli/launch-cluster:launch-cluster (0 packages loaded, 0 targets configured).
WARNING: errors encountered while analyzing target '//metropolis/test/launch/cli/launch-cluster:launch-cluster', it will not be built.
Analysis failed
INFO: Found 0 targets...
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 0.364s, Critical Path: 0.05s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

So trying to debug one part of that I double checked that docker-credential-gcloud was on PATH and it is:
$ which docker-credential-gcloud
/home/jpg/.google-cloud-sdk/bin/docker-credential-gcloud

Which is strange because I actually use GAR with Bazel and rules_oci for another project and it works fine.

Artifacts from kernel.org do indeed appear to be missing though:
$ wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz
--2024-03-29 23:44:20--  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving git.kernel.org (git.kernel.org)... 2604:1380:40e1:4800::1, 145.40.73.55
Connecting to git.kernel.org (git.kernel.org)|2604:1380:40e1:4800::1|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-29 23:44:24 ERROR 404: Not Found.

Ok so oci.pull mystery solved. My Docker config is setup to use helper to download from gcr.io because I pull and push private images there, for some reason this doesn't work with this Bazel setup but does with mine (likely different sandboxing settings?).
I was able to work around that part by invoking Bazel with DOCKER_CONFIG="", i.e disable my own configuration and use Docker defaults.

This gets it down to just these missing/not available URLs which I am not sure are truly unavailable or just not available to me given I am based in Thailand and country specific blocking is unfortunately something I run into quite often:
$ DOCKER_CONFIG="" bazel run //metropolis:launch-cluster
IntelliJ found at /home/jpg/.local/share/JetBrains/IntelliJIdea2023.3, aspect repository already patched.
INFO: Invocation ID: ee54593d-325a-4112-ba33-06cd236f2fdd
WARNING: Download from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository linux-firmware instantiated at:
  /home/jpg/src/monogon/WORKSPACE:183:24: in <toplevel>
  /home/jpg/src/monogon/third_party/linux-firmware/external.bzl:21:17: in linux_firmware_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'linux-firmware':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:183:24: fetching http_archive rule //external:linux-firmware: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:33:22: //metropolis/node:firmware depends on @@linux-firmware//:all_files in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:33:22: //metropolis/node:firmware depends on @@linux-firmware//:metadata in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:40:11: //metropolis/node:ucode depends on @@linux-firmware//:amd_ucode in repository @@linux-firmware which failed to fetch. no such package '@@linux-firmware//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20231211.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/linux-firmware/temp906252692376987136/linux-firmware-20231211.tar.gz: GET returned 404 Not Found
WARNING: Could not find the `$HOME/.docker/config.json` and `$XDG_RUNTIME_DIR/containers/auth.json` file.
 Running one of `podman login`, `docker login`, `crane login` may help.
WARNING: Download from https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository cap instantiated at:
  /home/jpg/src/monogon/WORKSPACE:272:13: in <toplevel>
  /home/jpg/src/monogon/third_party/cap/external.bzl:24:17: in cap_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'cap':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp3423818194129872951/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:272:13: fetching http_archive rule //external:cap: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp3423818194129872951/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@cap//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp3423818194129872951/v1.2.55.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/chrony/BUILD.bazel:138:11: @@chrony//:sys depends on @@cap//:cap in repository @@cap which failed to fetch. no such package '@@cap//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v1.2.55.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/cap/temp3423818194129872951/v1.2.55.tar.gz: GET returned 404 Not Found
WARNING: Download from https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Repository xfsprogs instantiated at:
  /home/jpg/src/monogon/WORKSPACE:215:18: in <toplevel>
  /home/jpg/src/monogon/third_party/xfsprogs/external.bzl:25:17: in xfsprogs_external
Repository rule http_archive defined at:
  /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl:384:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'xfsprogs':
   Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp8836237225728853799/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/WORKSPACE:215:18: fetching http_archive rule //external:xfsprogs: Traceback (most recent call last):
	File "/home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/bazel_tools/tools/build_defs/repo/http.bzl", line 145, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp8836237225728853799/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
ERROR: no such package '@@xfsprogs//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp8836237225728853799/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
ERROR: /home/jpg/src/monogon/metropolis/node/BUILD.bazel:49:12: //metropolis/node:rootfs depends on @@xfsprogs//:mkfs in repository @@xfsprogs which failed to fetch. no such package '@@xfsprogs//': java.io.IOException: Error downloading [https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-5.10.0.tar.gz] to /home/jpg/.cache/bazel/_bazel_jpg/d7f18bc350c43d8020bc6f28b99ca7e9/external/xfsprogs/temp8836237225728853799/xfsprogs-dev-5.10.0.tar.gz: GET returned 404 Not Found
INFO: Analyzed target //metropolis/test/launch/cli/launch-cluster:launch-cluster (3 packages loaded, 22 targets configured).
WARNING: errors encountered while analyzing target '//metropolis/test/launch/cli/launch-cluster:launch-cluster', it will not be built.
Analysis failed
INFO: Found 0 targets...
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 69.429s, Critical Path: 0.06s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

Yeah it's a geo-block or mirror problem. I connected to a VPN node an Belgium and was able to download the archive.

Yes it's fixed now!
NODE ID                                       STATE   ADDRESS    HEALTH    ROLES                                  TPM   VERSION                   HEARTBEAT
metropolis-f78f41dfe71f307e91a8eceadc5e6e61   UP      10.1.0.2   HEALTHY   ConsensusMember,KubernetesController   yes   v0.1.0-dev561.gae076614   2s
metropolis-fa1d0758437de8f0ef96cbb06dad6b0f   UP      10.1.0.4   HEALTHY   KubernetesWorker                       yes   v0.1.0-dev561.gae076614   4s
metropolis-fc0500b89d26283335e6f6bbc5a7ef32   UP      10.1.0.3   HEALTHY   KubernetesWorker                       yes   v0.1.0-dev561.gae076614   4s

repo: monogon-dev/monogon


text:
License

Is this utility licensed under ISC / MIT or another open-source license?

:+1:

repo: monterail/keys


text:
Implement aurelia menu for monterey

We should at minimum have the help menu with several menu-items like

on-line documentation
check for updates
report a problem
...

This list was not created after a deep thinking sessions - we need to discuss it. I am only sure that the online documentation will be in GitBooks

Question: should we build this in monterey and not the menu (we both missed the menu in mac). There already is a support button in the taskbar that leads to this github repository so can we extend that?

This way we can use aurelia to create a nice UI, and perhaps we can create a registry (https://github.com/monterey-framework/registries?files=1) with a collection of gitbooks that drives the UI

should we build this in monterey and not the menu (we both missed the menu in mac):

Can you expand this a bit (in monterey and not the menu)?
I m also curious about the concept of using a "registry" of UI parts that are "composed" into the application. That seems like a trip into the future that nobody has done before (assuming that I get your drift)

I understand and think that this is a better approach

Also needs to show version of monterey

I believe that most of this information (if not all) would be good to have

Note that click on the About menu item results with

https://github.com/monterey-framework/registries/blob/gh-pages/gitbooks.json is used in the popup, so we can edit the json and it'll show up in monterey

It took me a while to find the Support item on the footer, which is being used to open that pop-up. It does not seem intuitive to look for Monterey version there.

I agree

What about an "about" item in the taskbar. That would open a popup with info about general info about monterey and the version

Much better - as asking to see this information requires to run a task of some kind

authors: JeroenVinke adriatic

repo: monterey-framework/monterey


text:
Copy map argument in extraVars

See https://github.com/moolitayer/awx-client-go/pull/19#discussion_r186282175

@zgalor do we need a deep copy?

if we want to support interface{} (as we should), we should probably deepcopy it.
See https://github.com/openshift/autoheal/blob/master/pkg/apis/autoheal/types.go#L59-L75

Requiring deep copy will probably be a problem for other users of the library. I'd suggest to avoid it. I think it is OK if you clearly document it.

authors: jhernand moolitayer zgalor

repo: moolitayer/awx-client-go


text:
fix(double): op_mod for subnormal double (#1303)

Closes #1303
Rewrite op_mod for Double using MUSL implementation (src/math/fmod.c). The origin license of the file is in commit b69f695.
More tests are provided.

Pull Request Test Coverage Report for Build 4317
Details

17 of 22 (77.27%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 81.35%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

double/mod_nonjs.mbt
17
22
77.27%

Totals

Change from base Build 4313:
0.1%

Covered Lines:
4628

Relevant Lines:
5689

💛  - Coveralls

repo: moonbitlang/core


text:
add draft moosecritics

Blog post on MooseCritics (waiting for review)

accept to be able to see the draft

authors: NicolasAnquetil RomainDeg

license: MIT


text:
Clean up read/write tests

Similar to #878

Codecov Report

Merging #880 (e71b0e5) into master (ca0eaaf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #880   +/-   ##
=======================================
  Coverage   92.27%   92.27%
=======================================
  Files          66       66
  Lines        5129     5129
=======================================
  Hits         4733     4733
  Misses        233      233
  Partials      163      163

authors: codecov-io nlakritz

repo: moov-io/ach


text:
refactor: less amazon forwarding email validation

Proposed change

Use less validation on amazon forwarding email entries.
Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality)
[ ] Breaking change (fix/feature causing existing functionality to break)
[x] Code quality improvements to existing code or addition of tests
[ ] Documentation update
[ ] Adds a new shipper
[ ] Update existing shipper

Additional information

This PR is related to issue: n/a

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.52%. Comparing base (8608d22) to head (6c3a2a5).
Report is 32 commits behind head on dev.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

@@            Coverage Diff             @@
##              dev     #960      +/-   ##
==========================================
- Coverage   95.07%   93.52%   -1.55%
==========================================
  Files           8        8
  Lines        1482     1561      +79
==========================================
+ Hits         1409     1460      +51
- Misses         73      101      +28

Files
Coverage Δ

custom_components/mail_and_packages/config_flow.py
92.88% <100.00%> (-7.12%)
:arrow_down:

... and 3 files with indirect coverage changes


text:
Deprecation warning message appearing

When running atcss at a command prompt, I'm getting a Container#eachRule is deprecated. Use Container#walkRules instead. warning - I think something needs to be updated in the plugin?

Thank you for your report. I will fixe it :)

authors: alexlibby morishitter

repo: morishitter/atcss


text:
Error: Please call useProvideUnity on the appropriate parent component

I cannot make it work. I tried both in a nuxt page as well as in the nuxt main app.vue file. I always get this error:
[nitro] [dev] [unhandledRejection] Error: Please call useProvideUnity on the appropriate parent component
code:
<template>
    <div class="w-full h-full container">
        <NuxtUnity
            width="500px"
            height="500px"
            unity-loader="players/unity/Build.loader.js"
            :config="{
                dataUrl: 'players/unity/antechamber_uncompressed.data',
                frameworkUrl: 'players/unity/antechamber_uncompressed.framework.js',
                codeUrl: 'players/unity/antechamber_uncompressed.wasm',
            }"
            :resizable="true"
            :refresh-delay-time="100"
        />
    </div>
</template>

<script setup>

const { NuxtUnity, loaded, SendMessage } = useNuxtUnityOrThrow()
const callUnityFunction = () => {
    // scalar or json object are enable as argument
    SendMessage('GameObject', 'HelloMethod', { message: 'hello' })
}

const nuxtApp = useNuxtApp()
nuxtApp.$nuxtUnityEvent('nuxt-unity:ready').on(({ providerId, unityInstance }) => {
    // eslint-disable-next-line no-console
    console.log(providerId, unityInstance)
})

</script>

Sorryi forgot to use the useProvideNuxtUnity composable 😓 it works!!

repo: moritetu/nuxt-unity-webgl


text:
Dynamically switch suggestions-property

When I try to switch Autosuggest's suggestions-property on runTime, it seems the initial suggestions-function keeps on getting invoked instead of the new one.
How to achieve the expected behavior?

@DERIIIFranz At the moment, unfortunately, this is not possible. This will be possible in v3.0 (see 3.0 branch).

do you know a workaround to get there?

@DERIIIFranz You'll probably have to fork the repo, and update suggestions in componentWillReceiveProps().

If it's that simple, why isn't it just pushed to master-branch?

@DERIIIFranz I didn't say it's simple ;) We already have componentWillReceiveProps() in the 2.0 branch which will be released soon. At the moment, it allows you to update input's value on the fly. You are more than welcome to submit a Pull Request (to the 2.0 branch) that allows to update suggestions.

@DERIIIFranz Just wanted to let you know that 3.0 alpha version is available on npm:
npm install react-autosuggest@3.0.0-alpha.1 --save

authors: DERIIIFranz moroshko

repo: moroshko/react-autosuggest


text:
SWA has no tests

We should have unit test coverage for SWA.

Closing. Tracking elsewhere as low pri

repo: mosaicml/composer


text:
Please add a license

https://help.github.com/articles/open-source-licensing/#what-happens-if-i-dont-choose-a-license

In short, without license no-one can use your code.

I also want to use this library. So it's great if this provides license

Thanks, added LICENSE of MIT.

authors: AlekSi motemen tcnksm

repo: motemen/gompatible


text:
Actualizacion

Describe tus cambios
(Opcional) Sobre todo aconsejable si la "Pull Request" se corresponde con una corrección adicional y no con la presentación de un ejercicio.
Comprobaciones
Asegúrate de cumplir los siguientes puntos antes de realizar la "Pull Request":

[ ] El título de mi Pull Request sigue este formato: "#[número] - [lenguaje_utilizado]". (Ej: #00 - Python")
[ ] El nombre el fichero que se corresponde con el de mi usuario en GitHub más la extensión del lenguaje. (Ej: mouredev.py)
[ ] El fichero de corrección se encuentra dentro del directorio del ejercicio y en una carpeta con el nombre del lenguaje de programación utilizado en minúsculas. (Ej: 00/python/mouredev.py)
[ ] He revisado que el nombre del directorio del lenguaje no es conflictivo:

c#, no csharp
c++, no cplusplus
go, no golang
javascript, no js

[ ] Únicamente he incluido los ficheros de ejercicios. No se aceptarán Pull Requests que contengan archivos adicionales asociados a editores de código o semejantes.

Información

Tienes toda la información sobre los retos semanales en retosdeprogramacion.com/roadmap.
Cada semana se realizará la corrección en directo y publicación de un nuevo reto en twitch.tv/mouredev.
Recuerda que tienes un grupo de apoyo llamado "reto-semanal" en Discord.

.

repo: mouredev/roadmap-retos-programacion


text:
Duplicate planning scene msgs in solution

I think part of #432 introduced the redundant msgs.
Setting a planning scene in the FixedState stage results in having identical scene msgs when filling the solution :
# Solution.msg
task_id
start_scene                           # identical
sub_trajectory[0]: scene_diff         # identical (should be empty because the FixedState scene is stored in the start_scene ?)
sub_trajectory[1]: scene_diff         # OK real diff

Example with an object in the scene, the start scene world is the same as the first diff scene from the first sub trajectory.
Also should the sub trajectories scene_diff parameters be all real diff's ?
Start scene
name: (noname)
robot_state: ...
world:
  collision_objects[]
    collision_objects[0]:
        header:
        seq: 0
        stamp: 0.000000000
        frame_id: base
      pose:
        position:
          x: 0
          y: 0
          z: 0
        orientation:
          x: 0
          y: 0
          z: 0
          w: 1
      id: sphere
      type:
        key:
        db:
      primitives[]
        primitives[0]:
                type: 2
          dimensions[]
            dimensions[0]: 0.01
      primitive_poses[]
        primitive_poses[0]:
                position:
            x: 0
            y: 0
            z: 0
          orientation:
            x: 0
            y: 0
            z: 0
            w: 1
      meshes[]
      mesh_poses[]
      planes[]
      plane_poses[]
      subframe_names[]
      subframe_poses[]
      operation: 0
  octomap: ...

is_diff: 0

Scene Diff of first sub trajectory
name: (noname)
robot_state: ...
world:
  collision_objects[]
    collision_objects[0]:
        header:
        seq: 0
        stamp: 0.000000000
        frame_id: base
      pose:
        position:
          x: 0
          y: 0
          z: 0
        orientation:
          x: 0
          y: 0
          z: 0
          w: 1
      id: sphere
      type:
        key:
        db:
      primitives[]
        primitives[0]:
                type: 2
          dimensions[]
            dimensions[0]: 0.01
      primitive_poses[]
        primitive_poses[0]:
                position:
            x: 0
            y: 0
            z: 0
          orientation:
            x: 0
            y: 0
            z: 0
            w: 1
  octomap: ...
is_diff: 0


text:
openlane fails when clock tree is enabled

Hi,
I was just checking I can locally re-harden projects using my 'golden config'.
https://github.com/TinyTapeout/tt02-submission-template/blob/main/src/config.tcl
We added clock tree synthesis a while ago, which I think will be important for your design.
With this added, openlane fails at clock tree synthesis.
I'll take a longer look but I just wanted to let you know.

Thanks for the notice.  I made the following changes:

I removed non-clock usage of input0 (the clock). Now input7 is inverted and mirrored onto output7 for debug/bring-up use. Input0 and input7 can both be connected to the clock for testing purposes.
I synced M0 with the latest tt02-verilog-demo template.

Github actions build a working GDS.zip, and the GDS.zip gatelevel model passes local tests.

authors: mattvenn moyesw


text:
cargo-vet on riscv64 platform

Hi all,
I am building cargo-vet from link: https://github.com/mozilla/cargo-veton target board having  riscv64 platform, with gcc-10.2.0 and glibc-3.2.
previous i was facing issue of ring v0.16.20 that is resolved after changing inside source path-.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20
now ring issue is resolved and getting output-
root@kush-Linux-1:~/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20# cargo build -v
       Fresh cc v1.0.72
       Fresh autocfg v1.0.1
       Fresh pkg-config v0.3.24
       Fresh foreign-types-shared v0.1.1
       Fresh foreign-types v0.3.2
       Fresh libc v0.2.112
       Fresh bitflags v1.3.2
       Fresh openssl-sys v0.9.72
       Fresh cfg-if v1.0.0
       Fresh once_cell v1.8.0
       Fresh openssl v0.10.38
       Fresh untrusted v0.9.0
       Fresh base64 v0.13.0
       Fresh hex v0.4.3
       Fresh ring v0.17.0-not-released-yet (/home/root/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20)
warning: field `cpu_features` is never read
  --> src/digest.rs:50:5
   |
39 | pub(crate) struct BlockContext {
   |                   ------------ field in this struct
...
50 |     cpu_features: cpu::Features,
   |     ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
   = note: `BlockContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis

warning: `ring` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.36s

After ring build i want to build cargo-vet when i am running cargo build inside cargo-vet source, its giving error-
root@kush-Linux-1:~/cargo-vet# cargo build
error: failed to download `ring v0.16.20`

Caused by:
  unable to get packages from source

Caused by:
  failed to find ring v0.16.20 in path source
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.65.0 (4bc8f24d3 2022-10-20)

I checked inside Cargo.lock-

[[package]]
name = "ring"
version = "0.16.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
dependencies = [
 "cc",
 "libc",
 "once_cell",
 "spin",
 "untrusted",
 "web-sys",
 "winapi",
]

Can anyone suggest me to build cargo-vet on riscv64 target board.
T&R
luvkush

linking the issue you filed on the ring project to add support for this platform as that is what would need to be resolved first:

https://github.com/briansmith/ring/issues/1612

repo: mozilla/cargo-vet


text:
Self is undefined when server rendering.

I'm struggling with Angular2 server rendering via Angular Universal. The main idea of that solution is that all Angular2 code executes in Node.js server. So, you can't use "self" variable in Node. When compiler runs my code where localforage is defined, I get:
node.exe : C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:1184
строка:1 знак:5
+ node <<<<  dist/server/server.js -n vd* -verbose 2>log.log
    + CategoryInfo          : NotSpecified: (C:\Users\slava\...lforage.js:1184:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    })(typeof window !== 'undefined' ? window : self);
                                                ^

ReferenceError: self is not defined
    at Object.exports.__esModule (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:1184:46)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:719:30)
    at exports.__esModule (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:739:18)
    at C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:742:10
    at webpackUniversalModuleDefinition (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:692:20)
    at Object.<anonymous> (C:\Users\slava\dev\mea2n\node_modules\localforage\dist\localforage.js:699:3)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.c (C:\Users\slava\dev\mea2n\dist\server\server.js:967:19)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\dist\server\server.js:20:30)
    at Object.<anonymous> (C:\Users\slava\dev\mea2n\dist\server\server.js:907:20)
    at __webpack_require__ (C:\Users\slava\dev\mea2n\dist\server\server.js:20:30)

I'm not shure, that it's an issue of localforage itself, but
var globalObject =  Function('return this')();
// global in node
// window in browser
// worker global in web worker

solves my problem.

Thanks for the issue! Sadly, I don't think this is an issue with localForage.
Including Function like that isn't something we can include as it's likely to violate CSP rules and isn't a good practice.
We also don't focus on node support. If Angular Universal is meant to be drop-in I would file an issue with them.

authors: byavv tofumatt

repo: mozilla/localForage


text:
Add modal to body following jqmodal update

Fixes #1301
The update to jqModal means that if you override onShow you need to prepend the overlay yourself too.

r+

authors: magopian muffinresearch

repo: mozilla/olympia


text:
A compiled ready to use file should be supplied

As every other library an easy way to use it should be available without me to need to build it. I want to test it so, a script tag should be enough to get started.
In my case I use webpack and require('pdf.js') doesn't work because of your coffee files. NPM should work out of the box. I've installed with npm install pdf.js.
I also get an error if I follow your instructions:
module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\a\node_modules\pdf.js\make'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

I think I need make library. I suppose this is the command? npm install make -g

PDF.js is written in JavaScript, not CoffeeScript. Perhaps you're confusing this repository with something else?
There are some straightforward instructions for setting up PDF.js at https://github.com/mozilla/pdf.js/wiki/Setup-pdf.js-in-a-website.

Sorry, my bad, I've installed this library: https://www.npmjs.com/package/pdf.js
You should really talk to this guy and figure out something because there is a conflict: https://github.com/mozilla/pdf.js/blob/master/package.json#L2
Thanks for further help

The npm to install is this: pdfjs-dist, right?

Yes. And pdfjs-dist is hosted at https://github.com/mozilla/pdfjs-dist.

Shouldn't be added on your readme? Instead of all that complicated way which requires to build it manually? Just drop: npm install pdfjs-dist and is pretty done. You can also add bower.

Pull requests are welcome ;) And if I'm not mistaken, you can also edit the wiki that I linked before.

Updated.

Could you try out your instructions before saving them? There is a Preview tab in the wiki editor, so you can see how your changes are going to look without saving. Ping me if you're done and want me to review your changes.

Thanks, I didn't knew about it. Ok.

This promise workerInitializedCapability.promise.then(function transportInitialized() { never ends.
Here is the code with webpack:
require('pdfjs-dist/build/pdf');
PDFJS.disableWorker = true;
PDFJS.workerSrc = '';

should I open a new issue or?

Yes, preferably with all steps needed to reproduce the bug.

Ok, I've figured out how to do it.

You can review my changes. I've done the setup for webpack.

Looks like this issue is not connected with Mozilla's PDF.js. Closing as invalid.

authors: Rob--W totty90 yurydelendik


text:
Can I get a link in the wiki?

I just released this and would like a link in the wiki:
https://github.com/burtonator/polar-bookshelf
https://www.inputneuron.io/polar-bookshelf-a-cross-platform-ebook-system-for-incremental-reading-and-spaced-repetition/

I just added the link to your project to https://github.com/mozilla/pdf.js/wiki/Gallery-of-user-projects-and-modifications. I think it's a nice idea and it's really good to see another useful custom deployment of PDF.js. Thank you!

authors: burtonator timvandermeij


text:
Fix highlighting of search results when the textLayer contains br-elements (PR 13257 follow-up, issue 13323)

Apparently we need to layout br-elements in the same exact way as the regular span-elements which contain the text-content.
Fixes #13323

/botio-linux preview

Both issues in #13323 are fixed thanks to this patch.

Thanks!

authors: Snuffleupagus calixteman timvandermeij


text:
Don't add the grey outline when hovering a selected highlight

When playing with a pen, I noticed that sometimes a free highlight has still its gray outline when an other one is drawn: for any reason the pointerleave event isn't triggered.

/botio integrationtest


text:
Convert canvas thumbnails to PNG

fixes #6035 , converting canvas thumb nails to png images

@zinking Once you have addressed the review comment, please squash the commits into one commit. See https://github.com/mozilla/pdf.js/wiki/Squashing-Commits on how to do that easily.

It appears that the following from https://github.com/mozilla/pdf.js/issues/6035#issue-78226866 isn't implemented by the PR yet:

This should be done when the viewer is idle, i.e., not when the user is scrolling.

/botio-windows preview

The solution looks fine to me. @Snuffleupagus I think we can leave without reencoding-on-cleanup part -- unless there is a clear indication the encoding of the png takes unreasonable amount of CPU. It will use some CPU but I'm thinking in overall not using lots of canvases might be a better choice. It will be better if we will have some benchmark with this PR.
Also, using canvas'es toBlob() instead of toDataURL in some way might help with memory usage (similar to PDFJS.createObjectURL but it shall be async).

Looks good to me too with the nit addressed and re-squashed after that. toBlob might be better indeed, but having a benchmark to confirm that would be nice. Does not have to be too exact, just measuring the process memory usage a couple of times and taking the average before and after the patch should be enough.

@zinking Do you have time to finish up this PR by addressing the above comments?

@timvandermeij  do you mean manually testing the memory usage ?   I can do the rough testing using a few documents at hand, and provide some statistics, but this comment probably should be framed better so that my manual test is useful

Yes, all that needs to be done is address the nit above and manually test the memory usage before and after your patch.

browser
pdf
Page
before(private)
After (private)
comment

chrome
compressed.tracemonkey-pldi-09.pdf
14
406,260k
158,820k

chrome
abel.pdf
285
638,996k
394,564k
this has more pics

chrome
AkkaScala.pdf
387
768,476k
434,732k

The test is conducted on OSX 10.9.5 , Chrome 44.0.2403.157 (64 bit)
memory stats is generated from : chrome://memory-redirect/
looks saving memory as expected.

@zinking Great, thank you for confirming that! Could you squash the commits into one commit? Then this should be good to merge.

/botio-linux preview

Thank you for the patch!

authors: Snuffleupagus timvandermeij yurydelendik zinking


text:
Add possibility to define http headers

Many services uses http headers for authentication and format defintions, having the possibility to define these would increase support for more services.
For example:
Content-Type: application/json
Authorization: Basic
X-Auth-Token: MtRbM7ipKUsjRh6RwJE0ofIQo0KqoG

Added to dev

repo: mp-se/gravitymon


text:
ApiException No message

Having issues with this and Laravel 5.7 module. Both return same issue with no real diagnosis.
Any api call returns API Exception: No Message

@mpclarkson Any update on this?

Hi Greg, the author of this repository, Matthew,  is no longer with this organisation and I doubt he is wishing to maintain it in the future.
Regards,
Julian.
Sent from my iPhone

On 6 Apr 2019, at 4:40 am, Greg Avola notifications@github.com wrote:
@mpclarkson Any update on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

authors: aotearoait gregavola mpclarkson

repo: mpclarkson/freshdesk-php-sdk


text:
Release checklist for 0.4

[x] documentation #131
[ ] bump version numbers
[ ] new pypi package
[ ] new docs on pythonhosted

FYI to @josePhoenix - As of commit faf3e56 I think poppy is all ready to go. I am just going to hold off on pulling the trigger in case any last minute minor fixes are needed in the course of polishing the webbpsf release.

Sounds good.
The only other thing I can think of is whether you want to fiddle with the way the Instrument.display() or Instrument.calcPSF(display=True) plots look. That might not be worth the trouble, because I think at least one of those is totally overridden in WebbPSF anyway.

authors: josePhoenix mperrin

repo: mperrin/poppy


text:
Add cs_CZ locale

Add cs_CZ locale

Thanks.

authors: mplodowski vojtasvoboda

repo: mplodowski/DynamicPDF


text:
Vertical camera adjustment

Hi, I'd like to know where I can find the lines for the vertical camera adjustment, and if it's possible to modify it?
Thank you so much,all for your addons and your work. ♥

Hello. DynamicCam only sets the value of the cvar "test_cameraDynamicPitch" which controls the vertical camera adjustment. How the game engine is reacting to this variable cannot be changed by an addon.

authors: LudiusMaximus RavenTsoni

repo: mpstark/DynamicCam


text:
Division of vector quantities?

Acceleration is a change of velocity over time (a = V / t). Acceleration and velocity are defined as vector quantities, whereas time is scalar.
If I want to calculate t = V / a, it is impossible if representation types of a and V are linear algebra vectors as it is impossible to divide two vectors. Additionally, the characteristics of a derived quantity of velocity divided by acceleration is vector as well so it will not allow assigning to a scalar time.
This is a simple and common case but also so complicated now after #405. How to handle that?

If it's not mathematically defined in the first place, there's nothing we can do.
ISO 80000-6 actually has many quantities that are a coefficient of two vector quantities:
inline constexpr auto permittivity            = defn<"𝜀", "𝘿 = 𝜀𝙀", electric_flux_density("𝘿"), electric_field_strength("𝙀")>();
inline constexpr auto electric_susceptibility = defn<"𝜒", "𝙋 = 𝜀₀𝜒𝙀", electric_polarization("𝙋"), electric_constant("𝜀₀"), electric_field_strength("𝙀")>();
inline constexpr auto permeability          = defn<"𝜇", "𝘽 = 𝜇𝙃", magnetic_flux_density("𝘽"), magnetic_field_strength("𝙃")>();
inline constexpr auto magnetic_susceptibility = defn<"𝜅", "𝙈 = 𝜅𝙃", magnetization("𝙈"), magnetic_field_strength("𝙃")>();
inline constexpr auto conductivity = defn<"𝜎", "𝙅 = 𝜎𝙀", electric_current_density("𝙅"), electric_field_strength("𝙀")>();

Well, I think that an LA vector is not the only way to model a vector quantity, and maybe not even a good choice at all. I can imagine a type like vector<Rep, Direction> where direction can be any coordinate system specified by the user. For such a type, a division may be defined, assuming that the Direction is the same for both objects.
Maybe we should provide such a type in the library?

Although I haven't gotten far using it, at some point I made something like that:
template<class Id, units::Dimension D> struct linear_dimension : units::kind<linear_dimension<Id, D>, D> { };
template<class Id, units::Dimension D> struct coordinate
  : units::point_kind<coordinate<Id, D>, linear_dimension<Id, D>> { };

// Cartesian coordinate systems

struct x;
struct y;
struct z;

export template<class D, class U, class R> using x_dimension = units::quantity_kind<linear_dimension<x, D>, U, R>;
export template<class D, class U, class R> using y_dimension = units::quantity_kind<linear_dimension<y, D>, U, R>;
export template<class D, class U, class R> using z_dimension = units::quantity_kind<linear_dimension<z, D>, U, R>;

export template<class D, class U, class R> using x_coordinate = units::quantity_point_kind<coordinate<x, D>, U, R>;
export template<class D, class U, class R> using y_coordinate = units::quantity_point_kind<coordinate<y, D>, U, R>;
export template<class D, class U, class R> using z_coordinate = units::quantity_point_kind<coordinate<z, D>, U, R>;

export template<units::Dimension D, units::UnitOf<D> U, units::Representation R> struct cartesian_size3d {
  using x_type        = x_dimension<D, U, R>;
  using y_type        = y_dimension<D, U, R>;
  using z_type        = z_dimension<D, U, R>;
  using quantity_type = units::quantity<D, U, R>;
  using dimension     = D;
  using unit          = U;
  using rep           = R;

  x_type x;
  y_type y;
  z_type z;

  template<class D2, class U2, class R2>
    requires std::convertible_to<x_type, x_dimension<D2, U2, R2>>
  [[nodiscard]] constexpr explicit(false) operator cartesian_size3d<D2, U2, R2>() const { return {x, y, z}; }

  template<class D2, class U2, class R2> [[nodiscard]] constexpr bool operator==(const cartesian_size3d<D2, U2, R2>& r)
    const requires std::equality_comparable_with<x_type, x_dimension<D2, U2, R2>> {
    return x == r.x and y == r.y and z == r.z;
  }

  // clang-format off
  constexpr cartesian_size3d& operator+=(const x_type& r) requires requires { x += r; } { x += r; return *this; }
  constexpr cartesian_size3d& operator+=(const y_type& r) requires requires { y += r; } { y += r; return *this; }
  constexpr cartesian_size3d& operator+=(const z_type& r) requires requires { z += r; } { z += r; return *this; }

  constexpr cartesian_size3d& operator-=(const x_type& r) requires requires { x -= r; } { x -= r; return *this; }
  constexpr cartesian_size3d& operator-=(const y_type& r) requires requires { y -= r; } { y -= r; return *this; }
  constexpr cartesian_size3d& operator-=(const z_type& r) requires requires { z -= r; } { z -= r; return *this; }

  constexpr cartesian_size3d& operator%=(const auto& r) requires requires { x %= r; } { x %= r; return *this; }
  constexpr cartesian_size3d& operator%=(const auto& r) requires requires { y %= r; } { y %= r; return *this; }
  constexpr cartesian_size3d& operator%=(const auto& r) requires requires { z %= r; } { z %= r; return *this; }
  // clang-format on

  template<class D2, class U2, class R2> constexpr cartesian_size3d&
  operator%=(const cartesian_size3d<D2, U2, R2>& r) requires(requires { x %= r.x, y %= r.y, z %= r.z; }) {
    x %= r.x;
    y %= r.y;
    z %= r.z;
    return *this;
  }

  constexpr cartesian_size3d& operator/=(const auto& r) requires(requires { x /= r, y /= r, z /= r; }) {
    x /= r;
    y /= r;
    z /= r;
    return *this;
  }

  constexpr cartesian_size3d& operator*=(const auto& r) requires(requires { x *= r, y *= r, z *= r; }) {
    x *= r;
    y *= r;
    z *= r;
    return *this;
  }

  template<class D2, class U2, class R2> [[nodiscard]] friend constexpr specialization_of<cartesian_size3d> auto
  operator+(const x_dimension<D2, U2, R2>& l, const cartesian_size3d& r) requires(requires { l + r.x; }) {
    return jegp::cartesian_size3d{l + r.x, r.y, r.z};
  }
};

Even for the single use case of Cartesian coordinate system, it takes effort to specify.

Is there any other concept than the linear algebra concept of vectors? If so, there may be a need to clarify the concept of a "vector quantity", as I do not know anything else than linear algebra.
With that, the following is simply not true:

Additionally, the characteristics of a derived quantity of velocity divided by acceleration is vector as well so it will not allow assigning to a scalar time.

Instead, the general division between two vectors is mathematically undefined. However, the expression V / a is well defined for projections of the two vectors onto a chosen axis, which is a scalar. Therefore, the result is in fact a scalar.
However, In the case 𝘿 = 𝜀𝙀, 𝜀 may be a tensor, and things can become much more complicated. Still, an experimentalist may determine 𝜀 using a hand full of measurements of 𝘿 and 𝙀. They should be able to express the relevant computation using mp-units, which may involve both vectors of 𝙀 represented using an LA vector type, as well as scalar projections represented using a scalar representation (and either of them can additionally be complex, if we talk about AC-characteristics).
My gut feeling is thus that, maybe it would be best to simply leave the scalar/vector characteristic to the representation type.

My gut feeling is thus that, maybe it would be best to simply leave the scalar/vector characteristic to the representation type.

That makes sense. One argument raised by @mpusz is that int can be both a vector and a scalar. But of course, int can also be milliseconds or student ID. In that sense, we should leave it to the user to use a wrapper over int that represents a vector if that's what the user wants.

Is there any other concept than the linear algebra concept of vectors? If so, there may be a need to clarify the concept of a "vector quantity", as I do not know anything else than linear algebra.

As I stated in https://github.com/mpusz/units/issues/409#issuecomment-1356401950 I think that we could introduce a physical quantities vector<Rep, Direction> type where a direction would be a policy type that specifies a behavior (i.e. compile-time 2D, 3D, or maybe even runtime specified direction). For example, glide_computer could be rewritten in terms of vectors quantities where we specify that distance, height, sink_rate, etc are position_vectors over the different axis.

authors: JohelEGP burnpanck mpusz

repo: mpusz/units


text:
z=0 changed for yappCoordPCB?

For cutouts on front/back/left/right sides, the p(1) coordinate (z height in model coordinate) currently aligns with the underside of the PCB, though the coordinates documentation indicates it should align with the top surface of the PCB. It looks like this was changed when introducing support for multiple PCBs - references to pcbZ were replaced with getPCB_Z which doesn't include the board thickness.
Was this a deliberate change to the z=0 reference point? If it's a bug, I think replacing all 7 usages of getPCB_Z with getPCB_Za will restore the z=0 level to the top surface of the PCB. So far I've only testing with side plane cutouts, so I'm not sure if there are wider impacts of this Z->Za change.
The example Multiple_PCB_v30.scad includes pcbThickness() offsets for the p(1) components which is why those cutouts align to the board top surface.

Update released

Thank you!


text:
Fix the "hacky" solutions to the integration problems

We had to hack some stuff together today, such as:

Stripping spaces from parameter names when sending them back to the server
Casting use case names to lower case when registering a robot

We should find more elegant solutions for this.

Fixed in #149

@mrbenshef Specifically which changes does this address? (So I know what to change on the app side)

I hadn’t read this issue properly! #149 adds ID’s to the parameter names. I’ll take a look at usecases in a bit.

Kind of fixed :P

authors: mrbenshef theoxo

repo: mrbenshef/SmartHomeAdapters


text:
fix: do not replace non existing notifications + protect error-prone function calls

When I dismiss the "LSP loading" message, I have an infinite stream of "No matching notification found to replace" spamming me.
The problem was that the spinner was trying to replace the notification that I just dismissed, the solution was to set the self.notification to nil when closing the notification(s).
The next problem that arose was due to self.window having the same problem and triggering an error, the solution was to set it to nil as well, one particular call (line 208) sometimes was called before nvim-notify had the time to set self.window to nil, so I wrapped it in a pcall to suppress the error.
Lastly, it's a hack I've seen in other plugins but options.notify expects a string as first parameter (msg), passing an empty string causes the message to flicker when the spinner animates so it needs to stay nil.
My solution was topcall spinner_start (line 325).
I tried to change as little code as possible and this was the only way I've found to solve that bug.
This would fix #13

I got some errors because something is trying to access a nil value from time to time. I'll convert this PR to draft until this is fixed :)

repo: mrded/nvim-lsp-notify


text:
Propose (and implement) a way to manage assets.

Each plugin might have optional JS and CSS assets that it should expose to the framework
We have webassets/Flask-webassets on board already to work with merges that belongs to the framework (check assets.py for details).
On plugin pages we want to include both types of merges, those from framework and those from current plugin (so plugin might talk to frameworks methods defined in Vulyk object).
Please investigate if we can use webassets to manage plugin's assets as well. Take into account, that at least CSS assets for plugin aren't mandatory.
Please reflect that in documentation.

#15

Forsaken and forgotten issue... rest in peace.

authors: dchaplinsky mrgambal

repo: mrgambal/vulyk


text:
API response time in Rapidoc

In Swagger UI, I can have a response time display for each endpoint by enabling displayRequestDuration. Do we have similar feature in Rapidoc?
In case we don't have one, I don't mind writing additional script with before-try and after-try, but I don't have any clear idea to show the response time. Do you have any suggestion?

Do we have similar feature in Rapidoc?

No we dont

Do you have any suggestion

you can put a <div>  element  in  <slot> lets say on the header.
and then update this elements body with result from your calculation.
Alternatively  if you can provide a PR for this functionality I will accept it , that way it will be much cleaner solution

@mrin9 I wrote additional script with before-try and after-try to measure the response time. Yes, I used  element to show the respone time on the header.
However, I realize the response times I got are not very accurate (error from a few to a hundred milliseconds), compared to the response times in Chrome devtools's network tab. And the response time returns by displayRequestDuration in Swagger UI is even more inaccurate than mine.
Therefore, I don't think it's a good idea to make response time as a feature for rapidoc, although it gives some sense for developer about the duration of each requests.

Response time is now printed under the response-status in the latest beta


text:
Segmentation fault on WSL (Debian and Ubuntu)

Hi,
Thanks for implementing bart, it's an excellent tools.
Tried to compile (with default options, except turning DEBUG=1 in the Makefile after encounter problem) and run bart on both Debian (4.4.0) and Ubuntu (4.4.0) on WSL.
Both version compile successfully on WSL, Running benchmark and other commands on version 0.4.00 seems fine, but version 0.4.03 cause segmentation fault.
Bart 0.4.03
simon@DESKTOP-6P96G2J:~$ ./bart-0.4.03/bart bench
Segmentation fault (core dumped)
Bart 0.4.00
simon@DESKTOP-6P96G2J:~$ ./bart-0.4.00/bart bench
add (md_zaxpy) | 0.0070 0.0060 0.0059 0.0084 0.0061 | Avg: 0.0067 Max: 0.0084 Min: 0.0059
add (md_zaxpy), contiguous | 0.0027 0.0028 0.0028 0.0028 0.0028 | Avg: 0.0028 Max: 0.0028 Min: 0.0027
add (for loop) | 0.0249 0.0247 0.0249 0.0248 0.0248 | Avg: 0.0248 Max: 0.0249 Min: 0.0247
sum (md_zaxpy) | 0.0983 0.1067 0.1105 0.1083 0.1087 | Avg: 0.1065 Max: 0.1105 Min: 0.0983
sum (md_zaxpy), contiguous | 0.0381 0.0393 0.0394 0.0402 0.0402 | Avg: 0.0394 Max: 0.0402 Min: 0.0381
sum (for loop) | 0.0076 0.0079 0.0083 0.0086 0.0077 | Avg: 0.0080 Max: 0.0086 Min: 0.0076
complex transpose | 0.0151 0.0090 0.0090 0.0089 0.0090 | Avg: 0.0102 Max: 0.0151 Min: 0.0089
complex resize | 0.0012 0.0012 0.0028 0.0016 0.0012 | Avg: 0.0016 Max: 0.0028 Min: 0.0012
complex matrix multiply | 0.0256 0.0246 0.0249 0.0247 0.0246 | Avg: 0.0249 Max: 0.0256 Min: 0.0246
batch matrix multiply 1 | 0.0045 0.0061 0.0043 0.0044 0.0043 | Avg: 0.0047 Max: 0.0061 Min: 0.0043
batch matrix multiply 2 | 0.0319 0.0249 0.0246 0.0246 0.0249 | Avg: 0.0262 Max: 0.0319 Min: 0.0246
tall matrix multiply 1 | 0.0659 0.0654 0.0653 0.0653 0.0653 | Avg: 0.0654 Max: 0.0659 Min: 0.0653
tall matrix multiply 2 | 0.0138 0.0135 0.0150 0.0167 0.0151 | Avg: 0.0148 Max: 0.0167 Min: 0.0135
complex dot product | 0.0103 0.0103 0.0103 0.0103 0.0104 | Avg: 0.0103 Max: 0.0104 Min: 0.0103
complex dot product | 0.0103 0.0103 0.0103 0.0102 0.0103 | Avg: 0.0103 Max: 0.0103 Min: 0.0102
real complex dot product | 0.0012 0.0011 0.0011 0.0010 0.0011 | Avg: 0.0011 Max: 0.0012 Min: 0.0010
l2 norm | 0.0008 0.0009 0.0009 0.0008 0.0009 | Avg: 0.0008 Max: 0.0009 Min: 0.0008
l1 norm | 0.0026 0.0098 0.0022 0.0027 0.0022 | Avg: 0.0039 Max: 0.0098 Min: 0.0022
copy 1 | 0.0319 0.0312 0.0316 0.0327 0.0314 | Avg: 0.0318 Max: 0.0327 Min: 0.0312
copy 2 | 0.0328 0.0331 0.0328 0.0325 0.0332 | Avg: 0.0329 Max: 0.0332 Min: 0.0325
wavelet soft thresh | 0.0206 0.3222 0.0209 0.0208 0.0217 | Avg: 0.0812 Max: 0.3222 Min: 0.0206
wavelet soft thresh | 0.0267 0.0215 0.0281 0.0217 0.1693 | Avg: 0.0534 Max: 0.1693 Min: 0.0215
simon@DESKTOP-6P96G2J:~$ ./bart-0.4.03/bart zeros 2 256 256 m
Segmentation fault (core dumped)
Compile in debug mode and debug using gdb with bt
simon@DESKTOP-6P96G2J:~/bart-0.4.03$ gdb --arg ./bart bench
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./bart...done.
(gdb) run
Starting program: /home/simon/bart-0.4.03/bart bench
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff9f90700 (LWP 2861)]
[New Thread 0x7ffff7780700 (LWP 2862)]
[New Thread 0x7ffff4f70700 (LWP 2863)]
[New Thread 0x7ffff2760700 (LWP 2864)]
[New Thread 0x7fffeff50700 (LWP 2865)]
[New Thread 0x7fffed740700 (LWP 2866)]
[New Thread 0x7fffeaf30700 (LWP 2867)]
[New Thread 0x7fffe8720700 (LWP 2868)]
[New Thread 0x7fffe5f10700 (LWP 2869)]
[New Thread 0x7fffe3700700 (LWP 2870)]
[New Thread 0x7fffe0ef0700 (LWP 2871)]
[New Thread 0x7fffdcdd0700 (LWP 2872)]
[New Thread 0x7fffdc5c0700 (LWP 2873)]
[New Thread 0x7fffdbdb0700 (LWP 2874)]
[New Thread 0x7fffdb5a0700 (LWP 2875)]
[New Thread 0x7fffdad90700 (LWP 2876)]
[New Thread 0x7fffda580700 (LWP 2877)]
[New Thread 0x7fffd9d70700 (LWP 2878)]
[New Thread 0x7fffd9560700 (LWP 2879)]
[New Thread 0x7fffd8d50700 (LWP 2880)]
[New Thread 0x7fffd8540700 (LWP 2881)]
[New Thread 0x7fffd7d30700 (LWP 2882)]
Thread 19 "bart" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd9d70700 (LWP 2878)]
0x00007ffffffed848 in ?? ()
(gdb)
(gdb) bt
#0  0x00007ffffffed848 in ?? ()
#1  0x00000000080783dd in md_nary (fun=0x7ffffffed848, ptr=0x7fffd9d6fb80, str=0x7ffffffed630, dim=0x7ffffffed530,
D=, C=3) at /home/simon/bart-0.4.03/src/num/multind.c:60
#2  md_nary (fun=0x7ffffffed848, ptr=0x7fffd9d6fba0, str=0x7ffffffed630, dim=0x7ffffffed530, D=1, C=3)
at /home/simon/bart-0.4.03/src/num/multind.c:71
#3  md_nary (C=3, D=, dim=0x7ffffffed530, str=0x7ffffffed630, ptr=0x7fffd9d6fd90,
fun=0x7ffffffed848) at /home/simon/bart-0.4.03/src/num/multind.c:71
#4  0x000000000807868a in md_nary (fun=, ptr=0x7fffd9d6fdb0, str=,
dim=, D=, C=) at /home/simon/bart-0.4.03/src/num/multind.c:71
#5  md_parallel_nary._omp_fn.0 () at /home/simon/bart-0.4.03/src/num/multind.c:142
#6  0x00007ffffdda66b6 in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#7  0x00007ffffdb77494 in start_thread (arg=0x7fffd9d70700) at pthread_create.c:333
#8  0x00007ffffd8b8acf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
(gdb)
Also try to reproduce the results with command zeros, and gdb bt return
Thread 1 "bart" received signal SIGSEGV, Segmentation fault.
0x00007ffffffedc68 in ?? ()
(gdb) bt
#0  0x00007ffffffedc68 in ?? ()
#1  0x000000000807838c in md_nary (C=, D=, dim=0x7ffffffedbd0, str=,
ptr=0x7ffffffedb80, fun=0x7ffffffedc68) at /home/simon/bart-0.4.03/src/num/multind.c:60
#2  0x0000000008078a73 in md_parallel_nary (C=C@entry=1, D=D@entry=0, dim=dim@entry=0x7ffffffedbd0,
flags=flags@entry=0, str=str@entry=0x7ffffffedb70, ptr=ptr@entry=0x7ffffffedb80, fun=0x7ffffffedc68)
at /home/simon/bart-0.4.03/src/num/multind.c:87
#3  0x0000000008088d17 in optimized_nop (N=N@entry=1, io=io@entry=1, D=D@entry=2, dim=dim@entry=0x7ffffffedd20,
nstr=nstr@entry=0x7ffffffedd48, nptr=nptr@entry=0x7ffffffedd50, sizes=0x7ffffffedd58)
at /home/simon/bart-0.4.03/src/num/optimize.c:618
#4  0x000000000807988b in md_clear2 (D=2, dim=, str=str@entry=0x7ffffffeddd0,
ptr=ptr@entry=0x7fffff710000) at /home/simon/bart-0.4.03/src/num/multind.c:569
#5  0x0000000008079952 in md_clear (D=D@entry=2, dim=dim@entry=0x7ffffffede10, ptr=ptr@entry=0x7fffff710000,
size=size@entry=8) at /home/simon/bart-0.4.03/src/num/multind.c:610
#6  0x00000000080114ce in main_zeros (argc=, argv=) at src/zeros.c:48
#7  0x000000000800fd74 in main_bart (argc=, argv=)
at /home/simon/bart-0.4.03/src/bart.c:104
#8  0x00007ffffd7f02e1 in __libc_start_main (main=0x800fa90 , argc=6, argv=0x7ffffffedfd8,
init=, fini=, rtld_fini=, stack_end=0x7ffffffedfc8)
at ../csu/libc-start.c:291
#9  0x000000000800faea in _start ()
Am I missing anything?
Thanks in advance.
Simon

I think it is related to the fact that we now require an executable stack (for nested functions). Apparently WSL does not support this. Oh well, I have to think about whether we can do something about this...

Dear Martin,
Thanks for the prompt reply!  Let me try and revert.
Simon

From: Martin Uecker notifications@github.com
Sent: Monday, August 6, 2018 2:18:29 PM
To: mrirecon/bart
Cc: smyeungx; Author
Subject: Re: [mrirecon/bart] Segmentation fault on WSL (Debian and Ubuntu) (#140)
A possible alternative may be to try clang. Put the following in Makefile.local
OMP=0
CC=clang-3.8
CFLAGS+= -fblocks
LDFLAGS+= -lBlocksRuntime
You will loose parallelization with OpenMP though. I had some trouble using other versions of clang.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/mrirecon/bart/issues/140#issuecomment-410600477, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AoLSoovzLFHwJ4Qsj1cEV0_OqAmb3213ks5uN9-1gaJpZM4VvthK.

Let me know whether this worked. Then we could document this as a workaround.

Hi,
After recompilation with the Makefile.local in 0.4.03 with the corresponding flags, zeros command works.
simon@DESKTOP-6P96G2J:~/bart-0.4.03$ ./bart zeros 1 1 a
The following matlab from website tutorial also works:
% Zero padding to make square voxels since resolution in x-y for this
% data set is lower in phase-encode than readout
smallfov = readcfl('data/smallfov');
smallfov = bart('resize -c 2 252', smallfov);
% Direct calibration of the sensitivities from k-space center for SENSE
sensemaps = bart('caldir 20', smallfov);
% SENSE reconstruction
sensereco = bart('pics -r 0.01', smallfov, sensemaps);
But doesn’t work for the ecalib
% ESPIRiT calibration with 2 maps to mitigate with aliasing in the calibration
espiritmaps = bart('ecalib -r 20 -m 2', smallfov);
gdb bt the above command gives the following return:
bart: /home/simon/bart-0.4.03/src/num/casorati.c:40: void casorati_dims(unsigned int, long *, const long *, const long *): Assertion `dim[i] >= dimk[i]' failed.
Thread 1 "bart" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffffdc7442a in __GI_abort () at abort.c:89
#2  0x00007ffffdc6be67 in __assert_fail_base (fmt=,
assertion=assertion@entry=0x48d5ef "dim[i] >= dimk[i]",
file=file@entry=0x48d601 "/home/simon/bart-0.4.03/src/num/casorati.c", line=line@entry=40,
function=function@entry=0x48d62c "void casorati_dims(unsigned int, long *, const long *, const long *)")
at assert.c:92
#3  0x00007ffffdc6bf12 in __GI___assert_fail (assertion=0x48d5ef "dim[i] >= dimk[i]",
file=0x48d601 "/home/simon/bart-0.4.03/src/num/casorati.c", line=40,
function=0x48d62c "void casorati_dims(unsigned int, long *, const long *, const long *)") at assert.c:101
#4  0x000000000045584c in casorati_dims (N=, odim=, dimk=,
dim=) at /home/simon/bart-0.4.03/src/num/casorati.c:40
#5  0x0000000000448426 in calibration_matrix (calmat_dims=0x7ffffffecc60, kdims=,
calreg_dims=0x7ffffffed960, data=0x6aa1f0) at /home/simon/bart-0.4.03/src/calib/calmat.c:34
#6  covariance_function (kdims=, N=, cov=, calreg_dims=0x7ffffffed960,
data=0x6aa1f0) at /home/simon/bart-0.4.03/src/calib/calmat.c:161
#7  0x000000000044365e in compute_kernels (conf=0x7ffffffedd70, nskerns_dims=,
nskerns_ptr=, SN=288, val=0x7ffffffed4e0, caldims=, caldata=)
at /home/simon/bart-0.4.03/src/calib/calib.c:693
#8  0x00000000004452e1 in calone (conf=0x7ffffffedd70, cov_dims=, SN=288, svals=0x7ffffffed4e0,
calreg_dims=, data=0x68024f0, imgcov=)
at /home/simon/bart-0.4.03/src/calib/calib.c:318
#9  calib2 (conf=, out_dims=, out_data=, eptr=0x7fffff650000,
SN=, svals=, calreg_dims=, data=,
msk_dims=, msk=) at /home/simon/bart-0.4.03/src/calib/calib.c:537
#10 0x0000000000445e5e in calib (conf=0x2, out_dims=0x7ffffffec910, out_data=0x0, eptr=0x8, SN=0,
svals=0x7ffffffec910, calreg_dims=0x7ffffffed960, data=0x6aa1f0) at /home/simon/bart-0.4.03/src/calib/calib.c:577
#11 0x0000000000420387 in main_ecalib (argc=, argv=) at src/ecalib.c:223
#12 0x000000000040f2a3 in main_bart (argc=, argv=)
One more try with a 3D data set of dimension 308x384x64x16 (FE x PE x SE x Ch) natively in WSL, the core dumped occurs.
simon@DESKTOP-6P96G2J:~/bart-0.4.03$ /home/simon/bart-0.4.03/bart ecalib -c0 -m1   /mnt/c/Users/simon/AppData/Local/Temp/tpc0842209_212e_4435_a59e_90081898a371in1  /mnt/c/Users/simon/AppData/Local/Temp/tpc0842209_212e_4435_a59e_90081898a371out1 /mnt/c/Users/simon/AppData/Local/Temp/tpc0842209_212e_4435_a59e_90081898a371out2
bart: /home/simon/bart-0.4.03/src/num/casorati.c:40: void casorati_dims(unsigned int, long *, const long *, const long *): Assertion `dim[i] >= dimk[i]' failed.
Aborted (core dumped)
gdb bt gives the following return:
Thread 1 "bart" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffffdc7442a in __GI_abort () at abort.c:89
#2  0x00007ffffdc6be67 in __assert_fail_base (fmt=,
assertion=assertion@entry=0x48d5ef "dim[i] >= dimk[i]",
file=file@entry=0x48d601 "/home/simon/bart-0.4.03/src/num/casorati.c", line=line@entry=40,
function=function@entry=0x48d62c "void casorati_dims(unsigned int, long *, const long *, const long *)")
at assert.c:92
#3  0x00007ffffdc6bf12 in __GI___assert_fail (assertion=0x48d5ef "dim[i] >= dimk[i]",
file=0x48d601 "/home/simon/bart-0.4.03/src/num/casorati.c", line=40,
function=0x48d62c "void casorati_dims(unsigned int, long *, const long *, const long *)") at assert.c:101
#4  0x000000000045584c in casorati_dims (N=, odim=, dimk=,
dim=) at /home/simon/bart-0.4.03/src/num/casorati.c:40
#5  0x0000000000448426 in calibration_matrix (calmat_dims=0x7ffffffe9490, kdims=,
calreg_dims=0x7ffffffed910, data=0x6a3e50) at /home/simon/bart-0.4.03/src/calib/calmat.c:34
#6  covariance_function (kdims=, N=, cov=, calreg_dims=0x7ffffffed910,
data=0x6a3e50) at /home/simon/bart-0.4.03/src/calib/calmat.c:161
#7  0x000000000044365e in compute_kernels (conf=0x7ffffffedd20, nskerns_dims=,
nskerns_ptr=, SN=3456, val=0x7ffffffea310, caldims=, caldata=)
at /home/simon/bart-0.4.03/src/calib/calib.c:693
#8  0x00000000004452e1 in calone (conf=0x7ffffffedd20, cov_dims=, SN=3456, svals=0x7ffffffea310,
calreg_dims=, data=0x7ffffffe9e60, imgcov=)
at /home/simon/bart-0.4.03/src/calib/calib.c:318
#9  calib2 (conf=, out_dims=, out_data=, eptr=0x7fff67990000,
SN=, svals=, calreg_dims=, data=,
msk_dims=, msk=) at /home/simon/bart-0.4.03/src/calib/calib.c:537
#10 0x0000000000445e5e in calib (conf=0x2, out_dims=0x7ffffffe9140, out_data=0x0, eptr=0x8, SN=0,
svals=0x7ffffffe9140, calreg_dims=0x7ffffffed910, data=0x6a3e50) at /home/simon/bart-0.4.03/src/calib/calib.c:577
#11 0x0000000000420387 in main_ecalib (argc=, argv=) at src/ecalib.c:223
#12 0x000000000040f2a3 in main_bart (argc=, argv=)
Thanks.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Martin Uecker notifications@github.com
Sent: Wednesday, August 8, 2018 5:09:57 AM
To: mrirecon/bart
Cc: smyeungx; Author
Subject: Re: [mrirecon/bart] Segmentation fault on WSL (Debian and Ubuntu) (#140)
Let me know whether this worked. Then we could document this as a workaround.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/mrirecon/bart/issues/140#issuecomment-411203548, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AoLSov6d6wX16pj5Slv3xElnBayvJFKwks5uOgIlgaJpZM4VvthK.

Hi, I am also hitting this bug. Just wanted to +1 it. Please let me know if there is any experiments I can do to help out.

Thanks!  Forgot to report that NOEXEC_STACK feature actually work very well for me.  The same approach is working for nufft, with the following minor modification:

in the source code "src/noncart/grid.c"
replace the code  update(ind, d);  with NESTED_CALL(update, (ind, d));

I can add that compling with clang worked much better.

authors: johannestoger smyeungx uecker

repo: mrirecon/bart


text:
Added a simple example in the end of file

Added a simple example of bart resize with and without -c flag. The outputs are different based on whether the flag is used or not.

Please keep the help strings short. You could add a document to doc/

Martin is always right!

Thanks! I think you still need to add the doc/resize.txt file.

authors: jtamir sidharthkumar10500 uecker


text:
Upgrade mypy, pylint and black to latest

This patch upgrades:

black to 21.12b0,
mypy to 0.931, and
pylint to 2.12.2.

This makes the future maintenance easier since we won't have to make a
large leaps later.

Pull Request Test Coverage Report for Build 1760771176

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 96.121%

Totals

Change from base Build 1760735359:
0.0%

Covered Lines:
223

Relevant Lines:
232

💛  - Coveralls

authors: coveralls mristin

repo: mristin/fastapi-icontract


text:
Header Name

Reading header name from Description Attribute instead of property name
if specified

Thanks! I'll check it out