Can't generate SBOM with rpmdb

docker/packaging now generates provenance and sbom but it looks like SBOM is not generated for RHEL based images: https://github.com/docker/packaging/actions/runs/3922421368/jobs/6705347803#step:7:1141
#38 0.076 time="2023-01-15T07:48:22Z" level=info msg="starting syft scanner for buildkit v1.0.0"
#38 1.602 [0001]  WARN unable to access path="/usr/lib/debug/.dwz": lstat /usr/lib/debug/.dwz: no such file or directory
#38 5.388 [0005]  WARN cataloger failed cataloger=rpm-db-cataloger error=failed to create temp rpmdb file: open /tmp/syft-rpmdb897470986: read-only file system location=/var/lib/rpm/Packages

I think this is related to the chroot change in https://github.com/docker/buildkit-syft-scanner/pull/13
I tried to switch to unix.PivotRoot but requires extra privileges: https://github.com/docker/buildkit-syft-scanner/compare/master...crazy-max:buildkit-syft-scanner:pivot-root
Same with SwitchRoot from moby: https://github.com/docker/buildkit-syft-scanner/compare/master...crazy-max:buildkit-syft-scanner:moby-chroot

Looks to be there on syft repo: https://github.com/anchore/syft/blob/934644232ab115b2518acdb5d240ae31aaf55989/syft/pkg/cataloger/rpm/parse_rpm_db.go#L22

Repro with:
FROM centos:7
RUN yum install -y findutils


feat: [Feature] Upgrade spring boot version to 2.5.5

Description
Upgraded spring boot version from 2.2 to 2.5.5
Fixes #8937
Type of change

New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Manually
JUnit tests

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/ok-to-test sha=
5179243

/ok-to-test sha=5179243


[bugfix] browse actions shouldn't change url and screenshot, only observations

#2310

Need to fix lint problem before merge.

Fixed. Although I wonder why this isn't part of pre-commit checks?

have you tried to use the make lint locally?

frontend isn't linted in pre-commit indeed (just tried). would make a commit safer, in spite of adding time to it.

Need to fix lint problem before merge.

Fixed. Although I wonder why this isn't part of pre-commit checks?

It is a long story. IIRC , lint check and pre-commit check bother a lot at beginning. But I don't remember the details and the follow up.
If previous problem solved, I prefer to add lint back to pre-commit. WDYF? cc @li-boxuan

@frankxu2004
`
Diff:
--- /home/runner/work/OpenDevin/OpenDevin/tests/integration/mock/CodeActAgent/test_browse_internet/prompt_003.log	2024-06-07 09:06:47.574055654 +0000
+++ /tmp/tmpezug6yc1	2024-06-07 09:17:54.012024643 +0000
@@ -118,14 +118,13 @@
[8] heading 'The Ultimate Answer'
[9] paragraph ''
StaticText 'Click the button to reveal the answer to life, the universe, and everything.'

[10] button 'Click me'

[10] button 'Click me', clickable
`

It is a long story

it really is. i personally prefer to let the lint back to pre-commit.


Add deprecated method warn when called by user

What is the purpose of the change
Add deprecated method warn when called by user , related with #10850
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

As for https://github.com/apache/dubbo/issues/10850, we want to check all of the methods annotated with @Deprecated.

I have several doubts when I am looking for an abandoned method

How to find abandoned methods? At present, I am looking for all methods that have added @ Deprecated annotation. I find that there are a lot of data that meet the conditions. Is there a better way?

For methods with @ Deprecated, do you need to add logs? If the class is abandoned, do you need to add logs for all methods of the class. For abstract class, final class, and tool class, do you need to add warn logs? For some abandoned get/set methods, do you need to add warn logs?

I have several doubts when I am looking for an abandoned method

How to find abandoned methods? At present, I am looking for all methods that have added @ Deprecated annotation. I find that there are a lot of data that meet the conditions. Is there a better way?
For methods with @ Deprecated, do you need to add logs? If the class is abandoned, do you need to add logs for all methods of the class. For abstract class, final class, and tool class, do you need to add warn logs? For some abandoned get/set methods, do you need to add warn logs?

Is it possible to generate some code when compiling to achieve this?


Fork access

This should allow for forks to use secrets but first committers should not have access to run actions based on repo permissions. Next, we verify the user is a member of the container organization. If not we fail the run which would stop them from getting secrets.

@lmilbaum @Gregory-Pereira @sallyom PTAL


Failed to upload Slab

Current Behavior
So, uploading a file in multiparts sometimes fails. This seems to be intermittent as retrying for a second time the same command worked.
curl -v -i -u :MYPASSWORD -X PUT 'http://<IP_ADDRESS>:9880/api/worker/multipart/foo?bucket=default&uploadid=0477c079851130f86e7fe50196545dadb6fd5a219202d498f0c2e4e9beb17c05&partnumber=2' --data-binary<EMAIL_ADDRESS>-H "Content-Type: application/octet-stream"

Trying <IP_ADDRESS>:9880...
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 9880
Server auth using Basic with user ''

PUT /api/worker/multipart/foo?bucket=default&uploadid=0477c079851130f86e7fe50196545dadb6fd5a219202d498f0c2e4e9beb17c05&partnumber=2 HTTP/1.1
Host: <IP_ADDRESS>:9880
Authorization: Basic OmYxbDNtMG4zbGdyNG5kMw==
User-Agent: curl/8.7.1
Accept: /
Content-Type: application/octet-stream
Content-Length: 134217728
Expect: 100-continue

< HTTP/1.1 100 Continue
HTTP/1.1 100 Continue
<

upload completely sent off: 134217728 bytes
< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
< Date: Wed, 15 May 2024 18:28:41 GMT
Date: Wed, 15 May 2024 18:28:41 GMT
< Content-Length: 1561
Content-Length: 1561
<

couldn't upload object: failed to upload slab: launched=12 uploaded=4 remaining=2 inflight=0 pending=2 uploaders=12 errors=8
510b4467: failed to upload sector to contract fcid:7704449f0beb03195b3f05736e6765b047fb5617432e5280e7758817467487b4, err: AppendSector: WriteResponse: stream was gracefully closed
04e326a6: failed to upload sector to contract fcid:c26bfa9e44eda7ca6c194f2655c00855fda91bdf7392c5247f8b9d0fa2feab73, err: AppendSector: ReadResponse: stream was gracefully closed
96bf3099: failed to upload sector to contract fcid:d97168521e5c1d98d963c45d2f6a1cbf5e2a1528855a73e5ce2c6ef1140de82f, err: AppendSector: ReadResponse: stream was gracefully closed
a3aef7db: failed to upload sector to contract fcid:a2d6b8aafbaf7904ac41281383ce5b046ec3fcf75f7668ac5177e4a2d9839206, err: AppendSector: ReadResponse: stream was gracefully closed
95770d3b: failed to upload sector to contract fcid:ede8e61c21c3e97ecc664ec419722a28e94dab2264e15b1f2b3cb3a63f283dce, err: AppendSector: ReadResponse: stream was gracefully closed
a6711440: failed to upload sector to contract fcid:e01ce50140b1217d11f10c8eac50d324594c3cb1b73c0c261da5706613f0e162, err: AppendSector: ReadResponse: stream was gracefully closed
eb51aa36: failed to upload sector to contract fcid:e6976f167fdb1e429381b23412cae19afad79a75aa1e9c5b4b69a6585e8867a7, err: AppendSector: WriteResponse: stream was gracefully closed
34d5b8b7: failed to upload sector to contract fcid:170dfa6b0df661c4f7fc77dcabe779bd6b6dbd11f8338cd748eccc528b6c0556, err: AppendSector: WriteResponse: stream was gracefully closed

Connection #0 to host <IP_ADDRESS> left intact

Background:
This used to happen a lot on a computer, so I was advised to try with another. I installed renterd it on another hardware and the error went away (for a while), until today. It seems to be random.
I did some debug with the browser and the error happened as well. The only difference is that the browser hides it and retries until it works.
Expected Behavior
Working
Steps to Reproduce
Upload a multipart using the API.
Version
1.0.5
What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?
Mageia 9
Autopilot Config
{         "contracts": {                 "set": "autopilot",                 "amount": 12,                 "allowance": "2310000000000000000000000000",                 "period": 6048,                 "renewWindow": 2016,                 "download":<PHONE_NUMBER>0,                 "upload":<PHONE_NUMBER>00,                 "storage":<PHONE_NUMBER>000,                 "prune": false         },         "hosts": {                 "allowRedundantIPs": false,                 "maxDowntimeHours": 336,                 "minRecentScanFailures": 10,                 "scoreOverrides": null         } }
Bus Config
{         "default": "autopilot" }  {         "hostBlockHeightLeeway": 6,         "maxContractPrice": "15000000000000000000000000",         "maxDownloadPrice": "6000000000000000000000000000",         "maxRPCPrice": "1000000000000000000000",         "maxStoragePrice": "115740740741",         "maxUploadPrice": "300000000000000000000000000",         "migrationSurchargeMultiplier": 10,         "minAccountExpiry":<PHONE_NUMBER>0000,         "minMaxCollateral": "10000000000000000000000000",         "minMaxEphemeralAccountBalance": "1000000000000000000000000",         "minPriceTableValidity":<PHONE_NUMBER>00 }  {         "minShards": 2,         "totalShards": 6 }  {         "enabled": true,         "slabBufferMaxSizeSoft":<PHONE_NUMBER> }
Contract Set Contracts
12
Anything else?
PJ told me to say I am a grantee.

Additional note: after trying several times (with failing results). I got this:
curl -v -i -u :f1l3m0n3lgr4nd3 -X PUT 'http://<IP_ADDRESS>:9880/api/worker/multipart/foo?bucket=default&uploadid=0477c079851130f86e7fe50196545dadb6fd5a219202d498f0c2e4e9beb17c05&partnumber=8' --data-binary<EMAIL_ADDRESS>-H "Content-Type: application/octet-stream"

Trying <IP_ADDRESS>:9880...
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 9880
Server auth using Basic with user ''

PUT /api/worker/multipart/foo?bucket=default&uploadid=0477c079851130f86e7fe50196545dadb6fd5a219202d498f0c2e4e9beb17c05&partnumber=8 HTTP/1.1
Host: <IP_ADDRESS>:9880
Authorization: Basic OmYxbDNtMG4zbGdyNG5kMw==
User-Agent: curl/8.7.1
Accept: /
Content-Type: application/octet-stream
Content-Length: 134217728
Expect: 100-continue

< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
< Date: Wed, 15 May 2024 20:35:25 GMT
Date: Wed, 15 May 2024 20:35:25 GMT
< Content-Length: 84
Content-Length: 84
< Connection: close
Connection: close
<
couldn't upload object: 3 < 6: not enough contracts to support requested redundancy

Closing connection

@daniel-lucio the first error indicates the caller cancelled the request, the second error indicates you don't have enough contracts. Even though your configuration is correct and from the first error I can see you had 12 contracts at one point. Do these error occur on the same node? Can you add your renterd.log. I don't really know how to help you out here, everything indicates it's a problem on your end rather than an issue with renterd. Can you also upgrade to 1.0.6 to ensure you're on the most recent version.

Hi
I had no Internet for almost a week. I will try to reproduce the issue and upload the renterd.log file.
I will upgrade to 1.0.7 first.

@daniel-lucio reported he can no longer reproduce the error and his renterd is running fine. I think this was likely related to a networking related issue on his side, maybe dropping connections or a DNS resolving issue perhaps. I'll close this out, I added a TODO here though to test the renter with throttled connection speed to see if I can reproduce it locally.


[multikueue] Decrease the number logged errors

What type of PR is this?
/kind bug

What this PR does / why we need it:
Limit the number and severity of logged errors during normal operations.
Which issue(s) this PR fixes:

Fixes #1814
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

/lgtm
/approve
Thanks

/cherry-pick release-0.6

Can you post what the "errors" looked like?
Are they completely ignorable?

Can you post what the "errors" looked like?

The main one we care about is under the issue. It is returned when the watch expires:
{"level":"error","ts":"2024-03-06T08:21:44.586427722Z","caller":"multikueue/multikueuecluster.go:200","msg":"Cannot get workload key","clusterName":"multikueue-test-worker2","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet","jobKind":"/, Kind=","error":"not a jobset","stacktrace":"sigs.k8s.io/kueue/pkg/controller/admissionchecks/multikueue.(*remoteClient).startWatcher.func1\n\t/workspace/pkg/controller/admissionchecks/multikueue/multikueuecluster.go:200"}

The other one "log.V(3).Info("Watch error with unexpected type", "type", fmt.Sprintf("%T", s))" I never observed

^^ This is before the change. I don't have ready-to-paste output after the change. I could generate one easily.

This is how kueue logs now:
> kubectl logs kueue-controller-manager-5b48c8b59b-wg57n -nkueue-system 2>&1 | grep -i watch
{"level":"info","ts":"2024-03-13T14:38:41.164876413Z","logger":"controller-runtime.certwatcher","caller":"certwatcher/certwatcher.go:161","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2024-03-13T14:38:41.165088008Z","logger":"controller-runtime.certwatcher","caller":"certwatcher/certwatcher.go:115","msg":"Starting certificate watcher"}
{"level":"Level(-2)","ts":"2024-03-13T14:39:05.267615703Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker2","watchKind":"Workload.kueue.x-k8s.io"}
{"level":"Level(-2)","ts":"2024-03-13T14:39:05.27162791Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker2","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet"}
{"level":"Level(-2)","ts":"2024-03-13T14:39:05.285750407Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker1","watchKind":"Workload.kueue.x-k8s.io"}
{"level":"Level(-2)","ts":"2024-03-13T14:39:05.290619177Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker1","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet"}
{"level":"Level(-2)","ts":"2024-03-13T15:12:27.159711619Z","caller":"multikueue/multikueuecluster.go:217","msg":"Watch ended","clusterName":"multikueue-test-worker1","watchKind":"Workload.kueue.x-k8s.io","ctxErr":null}
{"level":"Level(-2)","ts":"2024-03-13T15:12:27.159799974Z","caller":"multikueue/multikueuecluster.go:223","msg":"Queue reconcile for reconnect","clusterName":"multikueue-test-worker1","watchKind":"Workload.kueue.x-k8s.io","cluster":"multikueue-test-worker1"}
{"level":"Level(-3)","ts":"2024-03-13T15:12:27.160910077Z","caller":"multikueue/multikueuecluster.go:204","msg":"Watch error","clusterName":"multikueue-test-worker1","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet","status":"Failure","message":"an error on the server (\"unable to decode an event from the watch stream: context canceled\") has prevented the request from succeeding","reason":"InternalError"}
{"level":"Level(-2)","ts":"2024-03-13T15:12:27.161043184Z","caller":"multikueue/multikueuecluster.go:217","msg":"Watch ended","clusterName":"multikueue-test-worker1","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet","ctxErr":"context canceled"}
{"level":"Level(-2)","ts":"2024-03-13T15:12:27.167277052Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker1","watchKind":"Workload.kueue.x-k8s.io"}
{"level":"Level(-2)","ts":"2024-03-13T15:12:27.171478071Z","caller":"multikueue/multikueuecluster.go:198","msg":"Starting watch","clusterName":"multikueue-test-worker1","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet"

I guess not too bad, note that now the message "Watch error" is V(3). WDYT?

I don't like the idea of hiding errors as V(3) Info. If they are expected, I have a hard time understanding why they are marked as InternalError.
Maybe @apelisse can provide some guidance?

What context are we passing to start the watch? I wonder if controller-runtime has a timeout for the context.

@trasc can you help to answer that?

I looked at this a little bit more, here is the summary:

I confirmed that the watch is closed depending on the min-request-timeout param. When set to 30s the watch usually ends in 30s - 1min. This is consistent for kind and GKE.
The watch ends with 200 status code, there is no error server side. Here is an example server-side log by the API server, when the watch was closed after 34s:

1 httplog.go:132] "HTTP" verb="WATCH" URI="/apis/jobset.x-k8s.io/v1alpha2/jobsets?labelSelector=kueue.x-k8s.io%2Fmultikueue-origin%3Dmultikueue&watch=true" latency="34.525929114s" userAgent="manager/v0.0.0 (linux/amd64) kubernetes/$Format" audit-ID="55d611cc-e3b5-4643-b5b1-92182703a262" srcIP="<IP_ADDRESS>:36440" apf_pl="workload-low" apf_fs="service-accounts" apf_iseats=1 apf_fseats=0 apf_additionalLatency="0s" apf_init_latency="320.89µs" apf_execution_time="323.26µs" resp=200

I think I traced down a little more what happens at the client side.

the client creates a new watcher with InternalError (500) as the default: https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/client-go/rest/request.go#L789-L791
the watcher wraps the closed connection with the error that we see in the logs: https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher.go#L120
this is further wrapped by the AsObject function which delegates to NewGenericServerResponse: https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L843-L857
The NewGenericServerResponse does the final wrapping (because 500 is the defualt): https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L487-L490

This seems also reported here: https://github.com/kubernetes/client-go/issues/12, and the suggestion seems to just break the loop when the channel is closed, regardless of the event.
Finally. handling of the nuances of watcher recreation seems to be already covered by the RetryWatcher here: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/tools/watch/retrywatcher.go#L149-L236. WDYT @alculquicondor? I can open a follow up issue to investigate / clean up.

Sg, closing the cherry pick. I will open the issue for client-go. I'm yet wondering about using the RetryWatcher to abstract out this craft. Any view, I think it makes sense to open an issue, maybe someone will pick this up.


Support Debian base images (Java 8, 11, 17)

Is it expected to support Debian base images for Java 8, 11 and 17?

Is there any chance to have these kind of base images? Right now no Debian-based image is available (or I am just unaware of), but base from Ubuntu (which I prefer not to use for several reasons).
Is this decision final to not provide these?

@FibreFoX - Unfortunately that is correct as we prefer to support the official base distros that DockerHub supports.  It's pretty easy to create your own via the guides: https://hub.docker.com/_/eclipse-temurin

@karianna
Not wanting to stress this old issue too much ... but Debian itself is an official base distro at DockerHub ... https://hub.docker.com/_/debian
Am I missing something?

@gdams to look when he gets back - I'm not close enough to it but I know we maxed out our supported list over there so to speak.

@karianna any progress on this one? Maybe re-opening this issue?

Hello, I am one of the co-maintainers of the official Docker Clojure images. We recently moved our upstream images from the old openjdk ones to these eclipse-temurin images. I want to make a case for using Debian base images here:
Ubuntu is less appropriate for Docker images than Debian due to their tendency to move packages from APT / DEB to snap. These snap packages are not easily installable in Docker containers because they need a daemon running. One example I recently ran into is the chromium-browser package. I use this in Docker containers to run headless ClojureScript tests. However, I can no longer easily do apt-get install -y chromium-browser because that executable just tells me I have to use the snap package now (which I can't easily do).
Debian is a much nicer distro for use in Docker containers for this reason alone. If this can still be considered it would be very helpful. Thank you!

@cap10morgan thanks for your comments here (and maintaining the clojure images). I'll report this back to the program management committee and see if there's any further updates. Just a thought but could the clojure images use multistage builds to copy the JDK into a debian base image? e.g:
FROM debian
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:17 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"

@gdams Yeah, potentially. I'm looking into it. Thanks for your attention to this!

@gdams Why are you offering this "easy way" and not provide a base debian image yourself? Seems to be no problem, and as the debian image is some official docker image, what is the problem to add debian to your images?
Using a self-build image is no good solution, especially for usage as build-images in tools like GitLab build pipelines. So from my point of view, this self-build image brings more problems than solutions. In addition, having a real debian based image would make it more a drop-in replacement for the previous openjdk ones.

@FibreFoX taking in too many OSes can take overhand and should be carefully considered IMO. If they are supported, they do have to be supported, right?
Just see the absurd amount here in the former project: https://hub.docker.com/r/adoptopenjdk/openjdk11
I do see a point for debian, but adding more to the scope of Adoptium also generates more efforts to make sure things keep working across all OS-variants.

@DRoppelt As Ubuntu is based on Debian .... do you expect this to be that kind of a trouble?
As part of "the community", I would prefer Debian-based images over Ubuntu-based images. The point mentioned by @cap10morgan regarding snap-packages, for me, is pretty big and crucial to specificly add Debian as an supported image.

@FibreFoX I use Ubuntu based images for build agents and alpine for runtime. I have no experience with the difference between Debian and Ubuntu.
I don't think it is about whether or not they can but if they should. @gdams said they would bring it up in a committee. Resources are limited so I think that's fair.
 It should be fairly straight forward to add besides Ubuntu. Maybe that helps accelerating the decision?

Is anyone looking at Debian-based images to be used as-is, without them having to write a Dockerfile at all? If yes, what is the use case?
I do assume that everyone is writing a Dockerfile anyways, but I'd love to hear cases where people are not defining downstream images of their own.

Is anyone looking at Debian-based images to be used as-is, without them having to write a Dockerfile at all? If yes, what is the use case?
I do assume that everyone is writing a Dockerfile anyways, but I'd love to hear cases where people are not defining downstream images of their own.

For downstream-from-this-but-upstream-from-users images like clojure, it's very inconvenient for them to have to start from this image. So we (the clojure image maintainers) provide images where we pull in the clojure bits from these Ubuntu-based images into Debian-based upstreams. Which is workable but not ideal. More work repeated for every such intermediate image type (there are a few on the JVM).
And ultimately this is about the best distro to base a Docker image on, regardless of use case. Ubuntu has fundamental shortcomings in this area with no real benefits. As has been outlined above.

@cap10morgan I don't want to go into the "Debian vs Ubuntu" matter right now.
My question is whether a user who wants to see a Debian image, wants that because they are not writing a Dockerfile at all and instead are using as-is. If so, then yes it makes sense to ask for a Debian-based image. Otherwise, I'd like to understand the challenge in adding two lines into their own Dockerfile to pull the JDK binary from another image.

@cap10morgan I don't want to go into the "Debian vs Ubuntu" matter right now.
My question is whether a user who wants to see a Debian image, wants that because they are not writing a Dockerfile at all and instead are using as-is. If so, then yes it makes sense to ask for a Debian-based image. Otherwise, I'd like to understand the challenge in adding two lines into their own Dockerfile to pull the JDK binary from another image.

And I've responded already to that with whole categories of use cases where it's a lot more than "adding two lines" and regardless of whether or not users are writing their own Dockerfiles this still makes sense to do. But it also seems weird to willfully ignore the primary reason to make a switch because it doesn't interest you. :/

And yet, I can't see the challenge in writing this:
FROM debian
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:17 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}
ADD app.jar
CMD ["java", "-jar", "app.jar"]

Instead of this:
FROM eclipse-temurin:17-debian
ADD app.jar
CMD ["java", "-jar", "app.jar"]

If this project adds Debian-based images, (or worse replaces Ubuntu with Debian), sooner or later, someone will want a Slackware base image. Or Arch Linux. Or any other Linux distribution.
IMO pre-built container images are meant to be conveniences, not fully baked products. Publishing images for every little variation is time-consuming, error-prone, security risk, adds little value to the broader set of users, and takes a lot of time from the very few maintainers around.

@brunoborges It seems like you're not engaging with the merits of the discussion. If you were it would be pretty clear that this is not about "my favorite distro" at all. 🤷🏼♂

Another thing why debian based images are important: build servers
When using GitLab CI runners, you can specify the base image you want to use for running your commands. It is not realistic to build a docker image to be used as part of the build pipeline.
I have to admit, I wanted to provide a PR, but lacked time to do so. I'll try to find some time to create that PR this week.

@FibreFoX I have submitted a PR in the past (https://github.com/adoptium/containers/pull/313), it was not about the lack of someone providing the code for the support, but a PMC decision.

I've labelled this to go back to the PMC to revisit.

Just to add another reason: Debian is available for platforms amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x while Ubuntu is only available for amd64, arm32v7, arm64v8, ppc64le, s390x.

That's true, but adoptium does not support any more than the five Ubuntu ones and that's not likely to change any time soon. (Although I'm hoping riscv64 will be next on the list, but there are versions of Ubuntu for that architecture too)

This topic was discussed at the Adoptium Project Management Committee meeting on April 26th.
We debated the benefits/disadvantages to our users, and costs to the project of providing Debian base OS images. We remain of the option that providing clear instructions for users to use Temurin with a base OS of their choice remains the most sustainable way of proceeding.
Each time we add a new base OS container image incurs  overhead to the project in terms of maintenance, testing, and support. As pointed out by Dennis (@DRoppelt) above, this soon became unmanageable at AdoptOpenJDK where we has a different policy and produced many variants.
Bruno (@brunoborges) shows clearly how we would expect users to build an image with their preferred base OS, based on those we publish through Dockerhub.
Without compelling evidence of an important use case where this won't work, the PMC agreed to continue to provide only the images that are in plan and will, to the best of our ability, support the use of Temurin used in a multi-stage build into a compatible base OS.

This is very disappointing, especially because it is no drop-in replacement anymore!

@FibreFoX can you describe a bit more on what you mean by "drop-in replacement"?


Make left sidebar into an off-canvas drawer on mobile/tablet

Is your feature request related to a problem? Please describe.

The (left) sidebar "comes in from the top" of the page, through resizing of the corresponding element. This implementation requires JS to work [^1] and shows up in a different place than the desktop sidebar.
The (left) sidebar does not degrade gracefully when JS is disabled. A user who has JS disabled for some reason (ahem like me) cannot view documentation built with this theme on mobile, since the sidebar cannot be collapsed and covers regular content. And they can't access the navigation either.

A link to the documentation page where you see an issue.
Any page works TBH. Here's the page I have open right now: https://sphinx-book-theme.readthedocs.io/en/latest/index.html
Describe the solution you'd like
I suggest we switch to the same mechanism+design for providing the sidebar as the mkdocs-material theme: https://squidfunk.github.io/mkdocs-material/getting-started/. Try it on ~1024px wide windows, which shows how it works best IMO. That mechanism works without needing JS (it's pure-CSS) and, thus, degrades gracefully.
Note that I'm not suggesting we change the contents/design of what's in the sidebar in this issue, but only how it is handled in terms of being visible/not visible.
FWIW, I have experience with implementing this style of a sidebar, from when I was working on re-implementing mkdocs-material for Sphinx here. I'm happy to try re-implementing it in the context of this theme, if there's interest in making this switch.

Oops, I used the wrong template.

Totally I agree, I think this is a more common and probably better pattern here. To be brutally honest the only reason that the sidebar comes down from the top is because I spent two days trying to figure out how to do it from the left and couldn't find the right CSS / JS incantation to do it in bootstrap 🤦♂

Yep definitely. You're beating me to features I wanted to look into @pradyunsg, which I absolutely have no problem with 😄

@DrDrij would you be able o take a look at this feature request?

I believe that in the mock-up that @DrDrij showed a few months back he had some nice modifications made to the left sidebar, would love to see some of those in code form as well if you’re thinking of tackling this one too!

Added a PR for tidying animations as discussed above, including tidying the SCSS so element and media query stylings are together. Added one new variable $leftbar-width.

closed by #298  many thanks @DrDrij !

How do we have the primary sidebar move in  from the left on mobile view? it's currently showing up from the top on mobile

hmmm - I think that you might be using a different theme, can you share a screenshot of the theme you're using?

this is the screenshot:

it's based on the 'Book' theme:
https://sphinx-book-theme.readthedocs.io/en/stable/
<EMAIL_ADDRESS>

that does not look like the latest version of the sphinx-book-theme (look at the behavior of the left sidebar in the link you shared: https://sphinx-book-theme.readthedocs.io/en/stable/)
If you are using Jupyter Book, then this will be available in the next release of Jupyter Book - or you could install jupyter book from the github repository for the latest version

Thanks, I'll check and get back to you.
For the book theme, are there settings to control the sidebar behavior on mobile devices?

Nope - the sidebar behavior is baked into the theme


Addon for Table methods?

Hi! great package! :D
I have a question, right now i need to add a record only if the unique key doesn't exist.
Right now im actually making a .put and if fails, on the .catch i make the .update, but i would love to make an Addon to do something like:
Table.createOrUpdate like Laravel's .firstOrNew, is there something like that actually or a way to add it as an Addon? the Addon examples I've seen seems like only expand's the Collection methods.
Any help? Thank you!

In case it helps anybody, here's how i ended up doing it:
https://gist.github.com/javisperez/5fdd8d149bbcadb35362ddc1683456f8
I don't know if that's the proper or better way to do it, but was the only way I could figure.
Please feel free to comment (on the gist or this issue) if that code could be improved, thank you!


Issue with k8s.io/docs/tutorials/kubernetes-basics/deploy-app/deploy-interactive/

This is a...

[ ] Feature Request
[ ] Bug Report

Problem:
Proposed Solution:
Page to Update:
https://kubernetes.io/...

/triage needs-information
@xiaosilao , what exactly is the problem on the site? Please describe it in detail.

/close
Please feel free to reopen this or file a new issue with specific defects you want to report.


WSGI additional args

Updating doc regarding https://github.com/openmicroscopy/openmicroscopy/pull/4352 to show how to use additional wsgi args

http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/unix/install-web/install-nginx.html Looks good, but the 'property' link to omero.web.wsgi_args is not working (and I don't see it on http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html).

@will-moore staging build is running again now with the autogen branch included this time. You should be able to see updated config staging page in about 25 mins.

http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html#std:property-omero.web.wsgi_args is indeed working now.
An autogen PR will be needed once the code PR is merged to propagate this into the docs properly.

As https://github.com/openmicroscopy/ome-documentation/pull/1392 is no longer conflicting could we merge this please?

http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html#omero-web-wsgi-args and http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/unix/install-web/install-nginx.html are not showing appropriate links

http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html#omero-web-wsgi-args and http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/unix/install-web/install-nginx.html are now showing appropriate links

Other than tiny . fixes, looks good.

@will-moore is there anything else you spot here?

Looks good now, thanks


Error refreshToken

I call refreshToken with param like this:
final newCredentials = await FitbitConnector.refreshToken(
        clientID: FitbitHelper.clientID,
        clientSecret: FitbitHelper.clientSecret,
        fitbitCredentials: fitbitCredentials);

but response return error :
https://user-images.githubusercontent.com/104921630/221084353-86881669-76c9-4b28-9b65-5dc047625449.png
can you help me check it.

Is this plugin, any useful for writing data to Fitbit id.
Because I have followed all the steps, as mentioned in the document. Registered the application on Fitbit portal, provided with Client ID, Client Secret and Redirected URl. But I am not able to get the credentials, neither I am able to establish any connection between by Application and fitbitter I believe.
I need help on this and I cannot even find any reference.

I call refreshToken with param like this:
final newCredentials = await FitbitConnector.refreshToken(
        clientID: FitbitHelper.clientID,
        clientSecret: FitbitHelper.clientSecret,
        fitbitCredentials: fitbitCredentials);

but response return error : https://user-images.githubusercontent.com/104921630/221084353-86881669-76c9-4b28-9b65-5dc047625449.png can you help me check it.

I think there is something wrong with the management of async calls since I see there is an asyncronous suspension going on.

Is this plugin, any useful for writing data to Fitbit id. Because I have followed all the steps, as mentioned in the document. Registered the application on Fitbit portal, provided with Client ID, Client Secret and Redirected URl. But I am not able to get the credentials, neither I am able to establish any connection between by Application and fitbitter I believe. I need help on this and I cannot even find any reference.

fitbitter is not currently able to write data to Fitbit. Anyway, establishing a connection and getting data are both working.

What should be the valid format of "callbackUrlScheme" parameter?
I am getting the following error:-
"Invalid argument (callbackUrlScheme): must be a valid URL scheme"

Hi! If during the app registration you set the callback url to something like "example://fitbit/auth", then your callbackUrlScheme is "example".

@gcappon Thanks for your quick response. Will try and update. Thanks

@gcappon Is there way to define scope i.e. (For e.g just grant access to weight data and do not show other parameters like temperature, sleep etc on Fitbit auth page)?

Currenlty there is not. The only way to do it right now is to fork the repo and modify manually the url at line 57 of lib/src/urls/fitbitAuthAPIURL.dart which is defining the scopes.

@gcappon Ok will check. Thanks

@gcappon  I getAccessToken
this code.
Future<String?> getAccessToken() async {
    final currentFitbit = await getCurrentFitbit();
    if (currentFitbit == null) {
      return null;
    }
    final fitbitCredentials = currentFitbit.fitbitCredentials;
    final isTokenValid = await FitbitConnector.isTokenValid(
        fitbitCredentials: fitbitCredentials);
    if (isTokenValid) {
      return currentFitbit.accessToken;
    } else {
      final newFitbitModel = await refreshToken();
      return newFitbitModel?.accessToken;
    }
  }

but I get respons

e

I want call syncall data, I getAccessToken first,  but in step check Token valid I see an error on function and my app was stopped because it couldn't pass await

I want call syncall data, I getAccessToken first,  but in step check Token valid I see an error on function and my app was stopped because it couldn't pass await

Are you awaiting? It seems not.


How to hide/encrypt jwplayer ajax requests that contains the video id .

Hi, I want to hide or encrypt the ajax calls send by jwplayer that contains the google video id and someone can steal this id to leach the video. Is there any way to hide/encrypt the ajax calls?

@ArdiArtani I need your help about this issue. I want to hide these id's (1i........3A_uw) in the ajax request.

@kamran-tahir You can't.

You can use a proxy script.

@chopraaa  would you please explain a bit about proxy script?

@ArdiArtani I need your help. i am waiting for your reply.

Duplicate issue, please checkout this closed issue https://github.com/ArdiArtani/Google-Drive-Player-Script/issues/13

@ArdiArtani  no it is totally different issue. Please read it . the #13 issue is about hide/encrypt video source not hide/encrypt google drive video id in ajax call. Both are totally different things. Please reopen the issue.

@ArdiArtani  do you have any soulution about this issue?

You can use this php function to encrypt your id.
<?php
function my_simple_crypt( $string, $action = 'e' ) {
  $secret_key = 'drivekey';
  $secret_iv = 'google';
  $output = false;
  $encrypt_method = "AES-256-CBC";
  $key = hash( 'sha256', $secret_key );
  $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );
  if( $action == 'e' ) {
    $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );
  }else if( $action == 'd' ){
    $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );
  }
  return $output;
}

// Encrypted Google Drive ID
$id = my_simple_crypt($_GET['id']);
// This will echo a random string. Example: NCtLVmJ0WjJEWUZCQkQ5Nk5qcFB6Zz09

// Decrypted Google Drive ID
$original_id = my_simple_crypt($id, 'd');
// This will echo your google drive id.
?>

Change $secret_key & $secret_iv to whatever you want.

@ArdiArtani Can you write ajax function? Thanks.


/invite support, and any other missing slash commands

the following commands are not defined
/nick change your nickname
/topic change the topic
/invite invite an user
/part leave room by alias

Should be in https://github.com/vector-im/vector-android/commit/df5cdd38daffe5bdd427f2d95b69ec56cdae6d93


React Native bridge modules not properly imported during test execution

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
React native bridges imported in a test file as a module are not properly imported during the test. It seems like only the first, or first two levels of the modules are visible, and none of the constants or methods are callable.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
git clone git@github.com:jooleeanh/JestImportBug.git
cd JestImportBug/__tests__
yarn test fcm.test.js ; yarn test fcm.test.js

See errors and console.log outputs:

For apm.test.js

TypeError: Cannot read property 'getInitialNotification' of undefined
console.log __tests__/apm.test.js:3
    { APMServicesModule: [Function: APMServicesModule],
      APMServicesUserModule: [Function: APMServicesUserModule] }

For fcm.test.js

TypeError: Cannot read property 'getInitialNotification' of undefined
console.log __tests__/fcm.test.js:3
    { getInitialNotification: [Function],
      ...
      send: [Function] }

What is the expected behavior?
The methods in fcm.test.js and apm.test.js should properly be called. The modules should be fully functional. These modules were tested in the react native app and the methods work.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
Global versions:
jest: 22.1.2
node: 9.3.0
yarn: 1.3.2
Mac OS 10.12.6
package.json
{
  "name": "JestImportBug",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest --no-cache"
  },
  "dependencies": {
    "react": "16.2.0",
    "react-native": "0.52.0",
    "react-native-appsmiles-apmservices": "^1.0.0-beta.14",
    "react-native-fcm": "^11.2.0",
    "react-native-google-analytics-bridge": "^5.4.1"
  },
  "devDependencies": {
    "babel-jest": "22.1.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.1.2",
    "react-test-renderer": "16.2.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

Jest doesn't run on a device and therefore cannot import real bridged modules. The ones you are receiving in your version of React Native are all mocked within the React Native package. I suggest sending a PR for that to fill in the mocks the way you'd like.


Remove AdvanceDLSupport from project.

It is great and all, but we aren't using all the features of it. The only thing we get from it is the ability to have a single PInvoke/DllImport for each assembly. We could implement this ourselves by emitting custom classes with os-specific DllImport attributes.
Also, the every project the references Qml.Net adds multiple files in the root.

I've been on vacation and haven't had time to address the issue with the external annotation files. I'd expect to be able to fix that during next week.

Found some time - the issue is now fixed.

This one is fixed right? https://github.com/qmlnet/qmlnet/commit/6ace3a1bb74b3f06210487795ac779ed8831f6f3

@MaxMommersteeg At the moment, there's a licensing issue with the new library that Qml.NET uses, since it's copied large portions of code directly from ADL without retaining the LGPL license or the copyright notice.

@pauldotknopf This is a serious issue. Right now I would not use qml.net in a commercial application due to this and this licensing uncertainties.

Qml.NET needs to stop using the other lib as it’s technically illegal, and I wouldn’t want to be affected by copyright disputes. Plus half of the issue is fixed in ADL now.
I ask that you revert the commit in which the library was replaced. I also advise on adding a PrivateAssets entry on the PackageReference to prevent unneeded redistribution, similar to the one added in ADL with StrictEmit.

I've re-licences NetNativeLibLoader, so there shouldn't be any issues anymore.
And yes, @MaxMommersteeg, this issue is now resolved. Thanks for linting the issues for me.


HDDS-3420. Enable TestSCMSafeModeWithPipelineRules test cases

What changes were proposed in this pull request?
The changes that fix the test :

Setting OZONE_DATANODE_PIPELINE_LIMIT to 1 , earlier set to 50 . With Multi-Raft enabled by default, each DN was participating in multiple pipelines which caused failures in some assertions that asserted pipeline count. This test was written prior to multi raft.
Outdated waiting logic : When pipeline scrubber creates pipelines , SCM persists its info in its RocksDB. After a cluster/SCM restart, SCM loads back the persisted pipelines in its memory . pipelineManager.getPipelines() returns this info.
This is independent of how many dataNodes are up or down as it is purely loading it from SCM DB. Removed such redundant checks.

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3420
How was this patch tested?
Unit test fix
Ran the test for 100 iterations :  https://github.com/sadanand48/hadoop-ozone/actions/runs/6008530745

Thanks @sadanand48 for the patch, @aryangupta1998 for the review.


Windows: No ZFS graphdriver

Signed-off-by: John Howard<EMAIL_ADDRESS>@swernli
This PR is part of the proposal described in issue 10662 to port the docker daemon to Windows. Looks like ZFS came in recently. Change so that it doesn't build on the Windows daemon

This is reasonable.
LGTM

LGTM


Document endpoint tags

What do these changes do?
Document #57 changes
Checklist

[ ] I think the code is well written
[ ] Unit tests for the changes exist
[ ] Documentation reflects the changes

Probably just adding it the API docs would be fine.

Probably just adding it the API docs would be fine.

Which API docs?

https://aiohttp-apischema.aio-libs.org/en/stable/api.html
Should be api.rst (you can preview the rendering by clicking the details link next to the readthedocs CI item).


Add description of gv.log method to contributor docs

@daren-thomas is this still needed?

Yes. I will add it.


Encountered compilation errors while building app manager for Zephyr

Hello, I'm attempting to adapt the simple sample to function as a Zephyr app directly, without utilizing wasm-micro-runtime as a module. However, during this process, I encountered 2 issues:
wasm_runtime_lookup_function

Since this commit the wasm_runtime_lookup_function definition has changed:
wasm_runtime_lookup_function(WASMModuleInstanceCommon *const module_inst,
-                             const char *name, const char *signature)
+                             const char *name)

So it need to be fixed in app-mgr/app-manager/module_wasm_app.c
diff --git a/app-mgr/app-manager/module_wasm_app.c b/app-mgr/app-manager/module_wasm_app.c
index 6fd929b..979a3f3 100644
--- a/app-mgr/app-manager/module_wasm_app.c
+++ b/app-mgr/app-manager/module_wasm_app.c
@@ -193,9 +193,9 @@ app_manager_lookup_function(const wasm_module_inst_t module_inst,
 {
     wasm_function_inst_t func;

-    func = wasm_runtime_lookup_function(module_inst, name, signature);
+    func = wasm_runtime_lookup_function(module_inst, name);
     if (!func && name[0] == '_')
-        func = wasm_runtime_lookup_function(module_inst, name + 1, signature);
+        func = wasm_runtime_lookup_function(module_inst, name + 1);
     return func;
 }

📄: Notes: May be removing the const char *signature argument need to be done for app_manager_lookup_function, but I didn't go that far.

The host-tool build Policy

In the CMakeList.txt, it's hardcoded in a way that we need to clone the repo with submodules. I also saw that a PR is open to address this issue but it's a month old.
22 set (IWASM_DIR  ${REPO_ROOT_DIR}/deps/wasm-micro-runtime/core/iwasm)
24 set (SHARED_DIR ${REPO_ROOT_DIR}/deps/wasm-micro-runtime/core/shared)

But In my case I have a fork of wasm-micro-runtime and I want to use this environment. So this cause this kind of errors when I build:
CMake Error at CMakeLists.txt:49 (include):
  include could not find requested file:

    /home/user/wamr-app-framework/test-tools/host-tool/../../deps/wasm-micro-runtime/core/shared/platform/linux/shared_platform.cmake

CMake Error at CMakeLists.txt:50 (include):
  include could not find requested file:

    /home/user/wamr-app-framework/test-tools/host-tool/../../deps/wasm-micro-runtime/core/shared/utils/shared_utils.cmake

CMake Error at CMakeLists.txt:51 (include):
  include could not find requested file:

    /home/user/wamr-app-framework/test-tools/host-tool/../../deps/wasm-micro-runtime/core/shared/mem-alloc/mem_alloc.cmake

CMake Error at CMakeLists.txt:53 (include):
  include could not find requested file:

    /home/user/wamr-app-framework/test-tools/host-tool/../../deps/wasm-micro-runtime/core/shared/coap/lib_coap.cmake

📄: Notes: I commented my implementation, that why the lines correspond to nothing, but the errors come from:
31 include (${SHARED_DIR}/platform/${WAMR_BUILD_PLATFORM}/shared_platform.cmake)
32 include (${SHARED_DIR}/utils/shared_utils.cmake)
33 include (${SHARED_DIR}/mem-alloc/mem_alloc.cmake)
35 include (${SHARED_DIR}/coap/lib_coap.cmake)

So I propose to change the build policy to something like that:
# Treatment for SHARED_DIR and IWASM_DIR
# if:
#     1. WAMR_ROOT_DIR or WAMR_DIR are set in the env
#     2. The submodules exist.
# else:
#     Throw an error message
if(DEFINED ENV{WAMR_ROOT_DIR})
    set(CORE_DIR $ENV{WAMR_ROOT_DIR}/core)
elseif(DEFINED ENV{WAMR_DIR})
    set(CORE_DIR $ENV{WAMR_DIR/core})
elseif(IS_DIRECTORY ${REPO_ROOT_DIR}/deps/wasm-micro-runtime/core/)
    set(CORE_DIR ${REPO_ROOT_DIR}/deps/wasm-micro-runtime/core/)
else()
    message(FATAL_ERROR "'WAMR_ROOT_DIR' or 'WAMR_DIR' environment variables are not set and\
                         the directory '${REPO_ROOT_DIR}/deps/wasm-micro-runtime/core/' does not exist.\
                         Please set one of these environment variables or clone the git repository with submodules.")
endif()

set(IWASM_DIR  ${CORE_DIR}/iwasm)
set(SHARED_DIR ${CORE_DIR}/shared)

📄: Notes: The WAMR_ROOT_DIR or WAMR_DIR could be set in an other CMakeList.txt file, exported in a .sh, or passed as command line parameters.

I'm also quite interested in the setup used for the app-manager demo on Zephyr, because I'm able to make it compile but it doesn't work as expected, and the readme doesn't really detail this aspect. Should I open an issue on wasm-micro-runtime or pass by another mean of communication ?

Thanks for reporting this issue, the compilation error and source code should be fixed with those two PRs: https://github.com/bytecodealliance/wamr-app-framework/pull/6 and https://github.com/bytecodealliance/wamr-app-framework/pull/7
As for your question:

I'm also quite interested in the setup used for the app-manager demo on Zephyr, because I'm able to make it compile but it doesn't work as expected, and the readme doesn't really detail this aspect. Should I open an issue on wasm-micro-runtime or pass by another mean of communication ?

I think we can discuss it here since it's app-manager related issue, could you please share more details about the unexcepted behavior?

@lucasAbadFr The PR #7 was merged to fix the compilation errors, could you try again?

I only tested it on my Ubuntu machine, I don't have a physical board to test it on.  I see there is a macro in the sample simple: https://github.com/TianlongLiang/wamr-app-framework/blob/ded92a3f7d9cef3115d2493d799c0d265c326b70/samples/simple/CMakeLists.txt#L36 Maybe you can add it in your application to try if it works
Per your suggestion, I created this pr https://github.com/bytecodealliance/wamr-app-framework/pull/8 feel free to leave some comments

I think the PR name is quite explicit. I'm closing this issue.


Support Python 3.9

Description
Add Python 3.9 support. This required 2 changes:

Use typing.Optional and typing.Union instead of the | operator (PEP 604)
Use typing_extensions.TypeGuard instead of typing.TypeGuard (PEP 647)

Additionally:

Use 3.9 in CI. Stopped using 3.10 and 3.11 in CI since it's overkill: it seems OK to use only the lowest and highest Python versions we support
Update minimum typing_extensions to 4.8.0, since this is what fastapi==0.104.0 requires

Issue
#61
Review
This PR has a lot of changes but they're very low risk since they're almost entirely type annotations. We have a thorough test suite, so these changes should be OK as long as everything passes

@goodoldneon Can user code can still use the newer features like the | operator even though the types are created using typing.Union?
Also we should update the badge on the README to show 3.9 and maybe supported version ranges of the frameworks too?

Can user code can still use the newer features like the | operator even though the types are created using typing.Union?

Yes, type checkers treat typing.Union the same way as |, so users are free to continue using | in their code.

Also we should update the badge on the README to show 3.9 and maybe supported version ranges of the frameworks too?

The badge will automatically update when we publish next. I added framework versions to the readme


dfn-panels no longer stay visible after you click a use.

Some time in https://github.com/tabatkins/bikeshed/compare/ca4f7b75...e2ae065, dfn-panels stopped getting 'position:fixed' to the bottom-left corner when I click on a use. The panel stays visible in its original location, but that's now off-screen and not useful.

Probably a misfire in the code to recognize that you're clicking a link in the . I'll have to make it smarter to still recognize links in the panel.
I'm planning to rewrite it a little to make all the panels be children of  anyway, so that'll clear up these issues easily.

Fixed!


Added install targets for JNI lib and .jar archive

Added OCIOFindJava that supports finding the current Java version on OSX
Added initial Manifest.txt.in to be included in .jar
Added .jar creation stage
Added install targets for JNI lib and .jar archive

@2bits, can you review this and confirm it works?  Thanks!

You will need to make sure your CLASSPATH=/foo/bar/lib/OpeColorIO.jar and LD_LIBRARY_PATH or DYLD_LIBRARY_PATH (on mac) are set.
When I get some more time I will most likely look at adding the option to copy both the libOpenColorIO.dylib and libJNIOpenColorIO.dylib into the jar with some additional loading code to source this relative to the .jar root. This would be mostly for convenience with how I have seen other java setup. Maybe I should add the version number to the .jar as well in this case.

Reading... trying to figure how to build off his fork+branch.

Ok, here's what I saw.  It builds and installs, though Homebrew may need it in libexec, which might be my issue.  I'll let you read the warning.
Detection Sequence
-- Not building Nuke plugins. Add the flag -D NUKE_INSTALL_PATH=... or set the NDK_PATH environment variable
-- Found Java: /usr/bin/java
-- Found JNI: -framework JavaVM
-- Creating Jar Manifest.txt
-- Creating OpenColorIOJNI.h that includes all the ocio jni headers
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/homebrew-opencolorio-1.0.6a-2msR/macbuild

Post Install Warning from Homebrew Installer
Warning: JARs were installed to "lib".
Installing JARs to "lib" can cause conflicts between packages.
For Java software, it is typically better for the formula to
install to "libexec" and then symlink or wrap binaries into "bin".
See "activemq", "jruby", etc. for examples.
The offending files are:
/usr/local/Cellar/opencolorio/1.0.6a/lib/org.OpenColorIO.jar

The warning is wants me to read a few other formula where Java installs work well,
which I will now do, but you can also:
https://github.com/mxcl/homebrew/blob/master/Library/Formula/activemq.rb
Interesting.

Try this I just quickly moved the jar into share/java, jruby also installs jars in lib/ but it puts the whole project in a custom sub directory.. this seems really ugly. I think this is mostly to manage when using the brew link command which will symlink things into your normal /usr/local/lib dir where multiple jars could be a problem.

Yes it's a package management thing.  They have a lot experience at averting very bad things.
I suggest you put the jar in share/ocio if it's all the same.  Your software already creates that path, plus there's that shell script in there, inside which you can set CLASSPATH.
share/ocio/setup_ocio.sh

I tried your commit and the code worked as you described it would.

It works great.  Nicely done.

Committed per @2bits


gracefully failing workflow on ExecutionNotFound error

Signed-off-by: Daniel Rammer<EMAIL_ADDRESS>TL;DR
Gracefully fail on ExecutionNotFound by transitioning the workflow the the 'FAILING' state. Subsequently, propeller will abort workflow tasks and transition the phase to 'FAILED'.
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[x] Code completed
[x] Smoke tested
[x] Unit tests added
[x] Code documentation added
[x] Any pending items have an associated Issue

Complete description
This facilitates graceful failures when experiencing an ExecutionNotFound error during workflow transitions. The error occurs when flyteadmin either doesn't have the provided workflow or the workflow is deleted. Either case is an invalid state and should result in the failure of the specified workflow.
We handle the race condition where flyteadmin, during the two phase execution, is between initializing the CRD and writing to the DB by checking if the workflow is in the 'READY' phase.
By transitioning the workflow to the 'FAILING' phase propeller will attempt to abort all active tasks on subsequent processing before transitioning to the 'FAILED' phase and concluding processing. This approach is similar to the failing status transition when a flyte workflow is too large to update in the wfStore.
Tracking Issue
fixes https://github.com/flyteorg/flyte/issues/1048
Follow-up issue
NA

@EngHabu tests will fail because the flyteidl version is still set to 0.19.22 and doesn't contain our recent fix to the eventErrors.IsNotFound function. Is it OK to increase the version in this PR? Or do we handle that with a separate process?

@EngHabu tests will fail because the flyteidl version is still set to 0.19.22 and doesn't contain our recent fix to the eventErrors.IsNotFound function. Is it OK to increase the version in this PR? Or do we handle that with a separate process?

Yes, feel free to go ahead and update flyteidl

@hamersaw you can test this on sandbox, by simply deleting the database and restarting it, or just deleting some executions in the table

@hamersaw you can test this on sandbox, by simply deleting the database and restarting it, or just deleting some executions in the table

sure, i've been testing by deploying flyte on a k3d cluster, scaling the flytepropeller deployment to 0, and starting a local instance with the correct connection configurations, then modifying the db as you suggested. i'm convinced everything is working.


Add support for custom SQLAlchemy dialects

Closes #455
Also removes support for dialects that have since been dropped from SQLAlchemy. See http://docs.sqlalchemy.org/en/latest/dialects/

I'm not super confident about dialects.__all__ - but it's an improvement over having a bug.


Fixed the A to be : to make more sense in the first game in java

It made it confusing on what to click if you don't want to bet

great, thank you! 👏


BUG: "No Compatible Sources Found"

Hi Twoure
After the selection menu into the video sources. The channel does not list the videos sources as it would normally based off the list of sources from the Unsupported Services bundle. Instead it displays
"No Compatible Sources Found"
Steps I have checked:

I have checked the main primewire.ag website through a browser and it seems to be working based off the sources available.
Updated Plex server to see if there were any differences. Result: None
Rolled back a version  of Plex server that has previously worked with this channel. Result: Still not working

Hoping for your guidance and support.
Thanks
StormR2010

I also have encountered this problem. Following advice from this link I changed goto.php in the init.py to gohere.php https://forums.plex.tv/discussion/265246/primewire-channels
I did not change anything in the Servicelist.pinfo like suggested but after a restart it works again.

Thanks Scott. I have followed the instructions and it's back up and running. Hoping Twoure updates the source so theses changes are reflected in the channel.

Just to clarify, this isn't an issue isolated to Primewire. I get the same message using the UnsupportedService bundle with FMovies channel as well, which also started at the same time.

Fixed in https://github.com/Twoure/lmwt-kiss.bundle/commit/6bfbfce3638e3b97c76f393d16051dc4e7ed28eb.


added MONGODB_URI field

Description
Added MONGODB_URI field in /labellab-server/.env file that was missing initially.
Fixes # (issue) #564
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

Manually by successfully connecting mongodb by provided MONGO_URI

@sachinsom93 We dont use the node sever now


Using stacked bar in QPS might not be correct

Bug Report
QPS = Queries per second. When using stacked bars, values may not be semantically correct. Need to confirm and change if necessary.

This issue still worth to check.


Looking for the additional information

[Enter feedback here]
Reference Page : https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-specs-create-linked?tabs=azure-powershell
 Note Template Specs is currently in preview. To use it, you must sign up for the preview.
Hi Team, could you please add more details or reference link to the page which describes,

How should we know that our subscriptions are enabled with requested previews.
What are steps we need to follow to use this requested preview.

sorry, I am not familar with Azure preview feature, so it will really helpful for beginners like me.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 78acfe06-c626-fd75-d3a4-13f7149ca40a
Version Independent ID: 4d04da8a-df33-50ec-080b-8f983e38ecff
Content: Create a template spec with linked templates - Azure Resource Manager
Content Source: articles/azure-resource-manager/templates/template-specs-create-linked.md
Service: azure-resource-manager
Sub-service: templates
GitHub Login: @mumian
Microsoft Alias: jgao

@AdimUser Thanks for the feedback. We are investigating the issue and will update you shortly.

@AdimUser Thanks for reaching out.  You might have missed it , but the process to sign up for preview is documented. The highlighted portion in the image is the hyperlink for signing up for preview.

@AdimUser - any additional steps are handled through the sign up process. Sometimes new sign ups are paused. When did you complete the sign up form?

@AdimUser Did you get chance to review previous comments? Let me know if you have any further queries regarding it.

@AdimUser Hope the above information was helpful. Let me know if you have any further queries regarding it.
As there are no further documentation changes, we will close the issue for now. If there are further questions , please revert and we will be glad to assist you.


Thumbs Up/Down and Favorite counts should be included with product info.

This may use a Django annotate query to avoid having too many reads/write on Product table records

We plan to change the functionality of the various card buttons. This issue no longer applies.


Add menu to document tab and fix solution items not at root

Fix https://github.com/nanangp/vs-shell-contextmenu/issues/5
Fix https://github.com/nanangp/vs-shell-contextmenu/issues/6

The documentation seems to indicate that a solution item might represent multiple files but I couldn't find a case where that was true. If that was true, this should probably:
for (int i = 1; i <= solutionItem.FileCount; i++)
{
    yield return solutionItem.FileNames[i];
}


Update auditing-analyze-audit-logs.md

added reference to Fabric event streams

I updated documentation please approve pull request for documentation


crd doc generation

crd doc generation

Codecov Report
Patch and project coverage have no change.

Comparison is base (d299988) 80.10% compared to head (8635047) 80.10%.
Report is 36 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1691   +/-   ##
=======================================
  Coverage   80.10%   80.10%
=======================================
  Files           9        9
  Lines         548      548
  Branches      246      246
=======================================
  Hits          439      439
  Misses        109      109

Flag
Coverage Δ

idp-domain-service
80.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Assets\Scripts\Plugins\Utilities\SerializableDictionary (azix)\Editor\SerializableDictionaryPropertyDrawer.cs(12,53): error CS0246: The type or namespace name 'PropertyDrawer' could not be found (are you missing a using directive or an assembly reference?)

this happens when compiling to IL2CPP in .net 4 mode

having the same problem

this happens when compiling to IL2CPP in .net 4 mode

Hello, I've just found the solution to this problem. Since most of my project make use of Unity Package Manager, I made a Unity Package of this repository manually.
However, the asmdef file I wrote is wrong. The asmdef should target at editor platform. Since the Unity build version should not include any editor scripts. If you are using asmdef, you should also do this. Or you should add #if UNITY_EDITOR


improvbe documentation

link https://docs.exasol.com/database_concepts/virtual_schemas.htm maybe reduce redundancy; right now it is unclear which tutorial to use. I used both. Gihub and the documentation.
add notice like: "Unlike the External Table of other databases, Exasols Virtuals Schemas do not only link one table but a whole schema. This makes setup much easier as not each individual table needs to be mapped. If only one table shall be mapped, this can be achieved by using TABLE_FILTER. The schema of the external table is provided by the Virtual Schema on CREATE VIRTUAL SCHEMA or on REFRESH..."
add notice on predefine schema like: "The schema (table structure) of the Virtual Schema is stored in the Exasol database. That implies that only coulmns defined in the schema can be part of the request." (if so)

To the third point: The exasol optimizer needs to know the result columns before execution. --> only columns deactivates (by agregation etc.) are possible

one more thing: add notice about read only access.
Maybe a limitations sections would be helpful. There also the third point could be added.

another one for the page https://github.com/exasol/virtual-schemas/blob/master/doc/development/virtual_schema_api.md I would sugest to add to the introduction:

System structure of Virtual Schemas (virtual schemas are executed in a UDF container?)
How this api technicaly works. (HTTP?)
At Pushdown: sequence diagram how the query is further handled

Here an idea for the pushdown sequence diagram:


USB Tether Possible?

In the readme, it says "turn on data saver this only works with usb tethering"
How do I use this with USB? Since the how-to says to enable hotstop on tetherfi.

I think I figured out how to USB Tether from Googling. But now I can't get my VPN to work.


fix: Replace login by user for clickhouse profile

Description
The clickhouse profile is currently not working. Changing the login parameter to user
Related Issue(s)
closes #1249
Breaking Change?
No
Checklist

[x] I have made corresponding changes to the documentation (if required)
[x] I have added tests that prove my fix is effective or that my feature works

Can I let you merge it to main ?

Can I let you merge it to main ?

We will merge it once CI is green

@petershenri, thank you very much for reporting/fixing this issue.
This change is available in Cosmos 1.7.1a3 - please, could you help us confirm that it now works as expected?

It works as expected on my docker.
Thanks 🚀


HTTP::Client: follow redirects

This is something that's missing from HTTP::Client right now and would be nice to have. Questions are:

Should it be turned on by default?
How to implement it?
How to make it configurable? (maybe allowing more flexibility than just a limit number)

We could follow the pattern we have in the server and popular ruby gems (for example faraday) and add a middleware stack.

An optional middleware stack is probably good. I saw crystal-cossack the other day and although I like the idea, I wouldn't like thousands of HTTP clients for Crystal if we can have a good and complete one in the standard library.
@greyblake Feel free to comment here based on your experience so far with your library :-)

Hey)
What I am aiming to with Cossack is something similar to Faraday and Hurley, including:

Simple user friendly interfaces
Middleware support
Ability to  swap connections (might be useful for tests)
SSL support
Follow redirections things
Timeout

What else?:)
In my understanding the standard library shouldn't be too complex, but must allow to everything whatever the protocol allows.
Maybe, it also makes sense to have two HTTP entries in the standard library:

Low level thing
HIgh level client (e.g. like Fraday) , based on the "low level thing"

So user can pick what he wants (in most cases it will be the high level client). If the high level can not do something specia, user can allways fallback on the "law level thing".
Regarding Cossack: I just started working on it. Once it's finished (I hope it will happen), and I'll get more feedback from users, and if everybody likes it, maybe if you don't mind, it can be merged (probably with different name and some updates) into the standard library as "high level client".
Those are my thoughts :)

@greyblake Thanks for the thorough explanation!
Some comments on your points:

Simple user friendly interfaces: we have HTTP::Client.get("http://www.example.com"). Can it be simpler than that? :-)
Middleware support: missing (maybe part of this issue)
Ability to swap connections: missing too. Maybe this is similar to Go's http client transport? This will definitely make testing easier.
SSL support: I think that's being worked on, in the standard library
Follow redirections: missing, part of this issue
Timeout: already supported by HTTP::Client

I believe there can be one HTTP::Client that is configurable before executing requests. The simple class methods get and others would be the fast and simple way to execute requests, and the "low-level" API would actually involve configuring an instance. I think this is a simpler design, and it also removes a decision the user has to make.
Anyway, just my opinion :-)

Thanks, I'll take a look at Go's transport.
So the missing things are:

Middleware
Swap connection

Also what I'd like to do as a user, is to pass some params to get, post methods. If it's a GET requests, the params should appear in a query part of URI.

If we could do all those things in the standard library, definitely the community will benefit)

Transports: I don't think we need them, just allowing to pass an IO object may be enough?
Inspiration: I'm personally more fond of the http gem —deapite missing a logger— than faraday for the design.

Low level API: required to support HTTP2. One can't write its own implementation without spending many weeks on it (I'm almost there).
BTW: the multiplexed nature of HTTP2 (along with priorities and flow control) is worth considering for the design of a HTTP client. Long lived connections and parallel requests processing will become more common. Chrome, for example, keeps the HTTP2 connection open after the page and assets are fully loaded, ready to send another request as quickly as possible.

@ysbaddaden I guess a HTTP2 client/server would require a event based API?

Hi All,
So the original discussion was about adding Redirect follow for the HTTP client, this feature is really needed by me for a production solution, Right now I use @greyblake cossack client and even though It's really good, I would much rather using the STDlib instead of relaying on a full different shard just for this one feature, is there anyway that this feature can be added ?

I've implemented follow redirects in a POC branch.
The implementation is quite minimal (~60 additions, ~20 deletions) and could be better, but this may need a refactoring.
I've first tried to modify the current HTTP::Client object itself, with redirects modifying ivars @host, @port and the Host header.
This is more efficient, but I haven't found a clean way to redirect to http => https without duplicating some checks and logics for tls/socket.
I think also yielding each HTTP::Client object for each redirection would be nice to have, for example to keep track of each URLs followed, and also to use the last HTTP::Client returned to avoid having to follow the redirects later. I haven't managed to do that yet.
Some sample code:
HTTP::Client.follow("http://www.github.com/").get

# Follow redirects up to 8 times
HTTP::Client.follow("http://www.github.com/", 8).get

# In fact #follow is a thin practical wrapper atop of the .new methods, that then call the constructor.
# To have the full features, like block yielding, call them directly
client = HTTP::Client.new("www.github.com", 80, false, redirects: 4)
# Actually I want 6
client.redirects = 6
client.get "/"

@j8r how would a block yield look for redirects? Would I be able to yield each redirect answer back up?

I think this feature can only efficiently be implemented with a transport interface as proposed in #6011.

+1 on this, it would be very useful!


Unloading assignment bug

Previously, we handled compound assignments by converting x += 1 into x = x + 1 and leaving it at that. However this meant that we converted a[i++] += 1 into a[i++] = a[i++] + 1, which is not equivalent. This fixes this by extracting volatile subexpressions like i++, but still cloning things like index accesses. This is necessary because just extracting the lhs to a constant and cloning that would assign to the 'constant', not to the element in the array

Converted to draft whilst I check one final case

Case I was concerned about is not actually valid (assignments are not lvalues), so nothing more to be added since the review


Why ApiScope's name field is unique?

Well for my authorization server I have started building a simple admin backend , while inserting ApiResource's scopes, I saw that name field of ApiScope table is unique. Shouldn't it be unique with ApiResourceId  together (a composite)? Becasue another ApiResource might have exactly the same scope name.

Scope names must be unique. We didn't want to enforce any composite naming format, so you need to do that yourself, e.g.
resourceName.ScopeName


AES CMAC - VerifyInit/Verify

AES CMAC Verify and VerifyInit. Required for NTP Client.

/bot run checks

/bot run checks

replacing with this PR


Normalize cache_dir path to be compatible with pip v20

Fixes #1061
Always use normalized path for cache directory as it is required in newer versions of pip
Contributor checklist

[x] Provided the tests for the changes.
[x] Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md on release).
[ ] Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

While I'm here -- heads up that we'd be making changes to pip's resolver interface in the coming release; I suggest you track how master evolves (and provide inputs!) to make sure y'all aren't completely blindsided. :)

@pradyunsg thanks for the heads-up! Eagerly waiting for new resolver 😊

@kammala thanks for your first contribution! 👍 👏

pip-tools v4.5.0 is released.


Branch 0.10.3

Version 0.10.3 - Unreleased
Added

Added progkw as argument to JobPool.as_completed to control progress reporting
Added progkw as argument to ub.download / ub.grabdat to control progress reporting
Added util_zip with the zopen function. Access a file inside a zipfile with a standard open like interface.

Fixed

ubelt.hash_data now handles non-numeric float values.
ubelt.chunks now works correctly when nchunks is specified.

Changed

Changed default of _hashable_sequence types arg from True to False to be
consistent, but kept existing types=True behavior in hashable extensions. Changes
should be backwards compatible, but in the future we may introduce a breaking
change to make hash behavior more consistent.

Superseded by #92


Unknown error of 'An error occurred'

...
download succeeded
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:7000 CPRV:11 CPFM:03 SCEP:01 BDID:08 ECID:001339E21AD10026 IBFL:1C SRTG:[iBoot-19<IP_ADDRESS>.19] PWND:[gaster]
Found the USB handle.
Now you can boot untrusted images.
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
Found the USB handle.
[-] An error occurred

The device is ipad mini 4, ios 15.8

problem decrypting firware, sometimes it is fixed by restoring with itunes or other tool


Completing CEL validation for Gateway

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow up to @gauravkghildiyal's PR that added CEL validation (#2226). It contains a few things:

IPAddress validation (using ~~https://regex101.com/r/Kzijkp/1~~ our custom CRD generation + oneOf)
Validation for GatewayStatusAddress
A few typo fixes

Does this PR introduce a user-facing change?:
NONE

I don't think the generator hack is that bad. 😁
/lgtm


Adding device builds

I am adding back IOS and Android builds back due to a linking issue reported at https://github.com/Azure/azure-sdk-for-net/issues/9294

Hi @serkantkaraca.  Would you please be so kind as to let us know if this is still an active work stream or if the PR should be closed out?

Since there hasn't been recent engagement, I'm going to close this out.  Please feel free to reopen if you'd like to continue working on these changes.


Mobile first

Created the desktop version of the portfolio app.

Thanks @1GORDON
I have developed the desktop version of the portfolio app and this is what is in the landing-page branch that I now want to merge to the mobile-first-branch.

The desktop version is what is contained in the landing-page branch that I now want to merge to the mobile-first branch. Could you kindly help me understand what you mean that I have only developed the mobile version?

Thank you for your question @kennankole. The requirement for this project is to have one branch containing both the desktop version and the mobile version. You are not supposed to create two branches for each version. Hopefully, you will understand the milestone if you read the project requirement again. This approach of mobile-first can be better achieved by using media queries in your stylesheet.

Remember, this is why I had suggested your branch be merged into the main, not into another feature branch. Kindly check my optional suggestion in the main comment.

Hello, again @kennankole ✋

[ ] Kindly update me if you fail to understand the requirement. I will be glad to join a zoom call and narrate to you better. Kindly slack me on, Tinyefuza Gordon. I will be happy to help. Thank you.

Yes, I think a zoom call will be great so that you help me out on media queries that I don't seem to understand.
Thanks @1GORDON

That's very fine @kennankole. Can we join the call after the morning session? That's at 9 am microverse time.

That will be great. How about now so that I have more time to implement the changes

Hello, @kennankole

Kindly contact me after your morning session. Or when you get free

Hello @1GORDON am free now

Hi @1GORDON
I have realized that I need to merge my desktop version to the main branch and not to the mobile-first branch. As such, I will have to create a new pull request and specify in the PR comments why this new pull request.
Thanks again for your input

You are welcome @kennankole 👌 and good luck with the project.

You may use markdown syntax for that comment about the reason you have created a new branch. This will make the comment more visible and guide the reviewer better.


CutMix on detection

Hi, thanks for your great job!
I have a question about applying CutMix on detection tasks.
Can I just use CutMix on detection datasets like coco, if I can, should I choose objects from the same image to paste or those in the same batch? :)

@wtupc96
Our paper only shows the effectiveness of CutMix-pretrained model when it is used as a pretrained backbone for object detection.
In fact, we didn't try to directly apply CutMix for object detection like coco dataset, because, as you know, CutMix on the detection dataset is not straightforward (the discontinuity on the boundary may raise problems..)


Plugin: Audio / Media

It is not possible today with Flutter, right?

Possible using https://flutter.io/platform-services/ (e.g. https://github.com/flutter/flutter/tree/master/examples/hello_services).
We definitely need an example of this common case.  We used to have one via https://github.com/vlidholt/game, but the system has changed since that time and that example no longer works.

There's also a "proof of concept" plugin here: https://github.com/rxlabz/flutter-mediaplayer-plugin

a little update :) the POCs have evolved, there is 2 simple plugins now :

video_launcher https://pub.dartlang.org/packages/video_launcher
audioplayer https://pub.dartlang.org/packages/audioplayer
with support for remote and local files for both

Sweet!
@mit-mit what do you recommend we do with this issue?

Let's close it now we have plugins. Thanks again @rxlabz!

my pleasure !

Some time ago I was trying to build a media player app in cordova for Android.
One problem I had was that the existing plugins did play media on the main thread instead of playing it in a service and that caused the device to kill it when it was in background.
I imagine this plug in would have a similar issue.

Backgroundprocessing for Flutter is being worked on. That might allow better solutions.


Failed to initialize logging driver: dial tcp <IP_ADDRESS>:24224: i/o timeout

Hey there,
this is an amazing work you've put there!
I tried to run it and I get:
(master)~/D/d/bean-seed ❯❯❯ docker-compose up
beanseed_elasticsearch_1 is up-to-date
redis is up-to-date
beanseed_influxdb_1 is up-to-date
beanseed_fluentd_1 is up-to-date
beanseed_site_1 is up-to-date
db is up-to-date
beanseed_kibana_1 is up-to-date
beanseed_kapacitor_1 is up-to-date
beanseed_grafana_1 is up-to-date
Recreating beanseed_apis_1
beanseed_telegraf_1 is up-to-date

ERROR: for apis  Cannot start service apis: Failed to initialize logging driver: dial tcp <IP_ADDRESS>:24224: i/o timeout
ERROR: Encountered errors while bringing up the project.

Any idea?

Fixed. Added fluentd in depends_on:
     depends_on:
        - db
        - redis
        - fluentd


No audio on Chromebase 21.5 aa0050t

Installed Breath on a Chromebase 21.5 aa0050t (DOOLY) with Ubuntu Jammy (22.04) with GNOME desktop environment.
Device has a Comet Lake processor with Intel UHD graphics.
No audio setup script has worked so far, with no sound card being available upon attempting to open the ALSA mixer in terminal.

Give the logs as stated on the docs… output of the files created by alsa-info too.

alsa-info result: http://alsa-project.org/db/?f=02d4cc7e493522fce0c39a073f3901a2616dc740

setup-audio borked your install, the docs clearly stated that the script is only SKL/KBL.
Reflash the ISO and give the same logs but with root access…

sudo alsa-info result: http://alsa-project.org/db/?f=e447cf981553804a386d38321611fe435c14d96c

lsmod result
Module                  Size  Used by
snd_soc_rt1015         32768  2
snd_soc_rt5682_i2c     16384  1
snd_soc_skl           180224  0
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_soc_sst_dsp        40960  1 snd_soc_skl
snd_sof_pci_intel_cnl    16384  0
snd_sof_intel_hda_common   102400  1 snd_sof_pci_intel_cnl
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            24576  2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_soc_hdac_hda       24576  2 snd_sof_intel_hda_common,snd_soc_skl
snd_soc_acpi_intel_match    57344  3 snd_sof_intel_hda_common,snd_soc_skl,snd_sof_pci_intel_cnl
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
snd_intel_dspcfg       32768  2 snd_sof_intel_hda_common,snd_soc_skl
snd_soc_dmic           16384  1
snd_hda_codec_hdmi     73728  1
snd_soc_sof_rt5682     32768  0
snd_soc_intel_hda_dsp_common    20480  1 snd_soc_sof_rt5682
snd_sof               155648  3 snd_soc_sof_rt5682,snd_sof_pci,snd_sof_intel_hda_common
snd_soc_intel_sof_maxim_common    20480  1 snd_soc_sof_rt5682
snd_soc_hdac_hdmi      45056  1 snd_soc_sof_rt5682
snd_hda_ext_core       36864  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_soc_rt5682s        98304  1 snd_soc_sof_rt5682
snd_soc_rt5682         98304  2 snd_soc_sof_rt5682,snd_soc_rt5682_i2c
snd_soc_rl6231         20480  2 snd_soc_rt1015,snd_soc_rt5682
snd_hda_codec         167936  3 snd_hda_codec_hdmi,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core          106496  9 snd_hda_codec_hdmi,snd_hda_ext_core,snd_hda_codec,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
ledtrig_audio          16384  1 snd_sof
snd_soc_max98357a      20480  0
btusb                  57344  0
btrtl                  28672  1 btusb
btbcm                  20480  1 btusb
btintel                45056  1 btusb
crc32c_intel           24576  0
bluetooth             724992  27 btrtl,btintel,btbcm,btusb
acpi_als               20480  1
cros_ec_sensorhub      32768  0
industrialio_triggered_buffer    16384  1 acpi_als
joydev                 28672  0
ecdh_generic           16384  2 bluetooth
kfifo_buf              16384  1 industrialio_triggered_buffer
industrialio           90112  3 industrialio_triggered_buffer,acpi_als,kfifo_buf
ecc                    36864  1 ecdh_generic
vfat                   20480  0
fat                    86016  1 vfat
nls_cp437              20480  0
nls_iso8859_1          16384  0
uvcvideo              131072  0
videobuf2_vmalloc      20480  1 uvcvideo
dm_multipath           45056  0
iwlmvm                405504  0
iwlwifi               372736  1 iwlmvm
fuse                  143360  5

Wait a minute...!
The headphone jack works!
Now I just need speakers to work.

This is a UCM/mixer settings issue that will take more steps to debug and fix. For faster communication, would you mind joining the Discord?

I am infact, already on the Discord actually. I've been trying to contact you there directly for a bit. Ski#7905.


ruby_3_0: unpin openssl_1_1

Description of changes
The logic was introduced in https://github.com/NixOS/nixpkgs/commit/a90227726294c7de57fee120c3a193d9272a89a7, but still pinned ruby 3.0+ to openssl_1_1 (due to typo?). cc @ajs124

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

And ruby 2 is already EOL a month ago. we may as well drop it, what a bad timing for 23.05.

This broke build of rubyPackages_3_0.nokogiri on all four platforms. Log:
https://hydra.nixos.org/build/219301132/nixlog/1/tail
/cc #231026  Around a hundred builds are reported as caused by this, currently.

The patch below seem to fix the build.
--- a/pkgs/top-level/ruby-packages.nix
+++ b/pkgs/top-level/ruby-packages.nix
@@ -2356,7 +2356,7 @@
     version = "2.5.9";
   };
   nokogiri = {
-    dependencies = ["mini_portile2" "racc"];
+    dependencies = ["mini_portile2" "racc" "openssl"];
     groups = ["default"];
     platforms = [];
     source = {

And indeed lib/ruby/3.0.0/openssl.rb is present before this change.


mods_mods gui question

Hi spoter! im currently making my first script mod and I want to use your mod for settings. How do I do that? Ive looked at your mods, and and written some code based on that, but it doesnt seem to work. Please let me know how, thanks :)
This is my repo for this mod: https://github.com/Arkhorse/wot-Camo-Mod
Currently just want to get the settings working first.

you forget init
config = Config()

Yeah, I added it, and alot of the other stuff locally. However, until the mod is finished, Im going to just remove that but for now.
But, could you help me a bit? I think I got it working, but not sure. Just pushed my most up to date version. Can you see anything that might make it not work?


 What does the redirect URLs need to do?.
From what I googled it they should redirect to success or fail message.
But there is a redirect URL and Server URL, here I lost it :\
In addition,  if I also want to get user public playlists, do I need to use Auth for a user public list?
        AuthorizationCodeAuth auth =
            new AuthorizationCodeAuth(_clientId, _secretId, "http://localhost:4002", "http://localhost:4002",
                Scope.PlaylistReadPrivate | Scope.PlaylistReadCollaborative);

while surrly i receive his:
INVALID_CLIENT: Invalid redirect URI

Anyone


Multiprocessing_230802

This PR is a spin off mantis deskew/affinetransform, PR #380 and solves issue #352.
TODO:

[x] Implement birefringence 2D/3D with apply_reconstruction_to_zyx_and_save() scheme.
[x] Implement the reconstructions for Phase2D/Phase3D with the apply_reconstruction_to_zyx_and_save()
[x] Handle the bire and phase reconstruction such that it's compatible to process_single_position() workflow.
[ ] Update and migrate the mantis.utils. to recOrder.

Closing this by #412


[Q] How to increase the max trial limit

wandb: Network error (ConnectionError), entering retry loop.
wandb: ERROR HTTPSConnectionPool(host='maglev.wandb.io', port=443): Max retries exceeded with url: /graphql (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f1fff425610>: Failed to re
solve 'XXX.wandb.io' ([Errno -3] Temporary failure in name resolution)"))

In the middle of the training there was network disconnection. After a few hours the network recovered, but wandb has run out of trials. Any way to increase the max trial limit to let it keep trying to connect?

Hey @Guptajakala, you can change the environment variable for the HTTP timeout with export WANDB_HTTP_TIMEOUT=30  or 60 (our default for wandb.Api() is currently 10 [here]). Please let me know if this helps.

@umakrishnaswamy Great, is the unit in min?

@Guptajakala Unit is in seconds


curl: (35) error:0A000126:SSL routines::unexpected eof while reading

I can use the cli week ago, but now when I try to prompt in the shell, it show above error.
It look like the curl error itself, and I try "curl https://api.openai.com/v1/chat/completions" in the shell, it show the same error.
How I can try to debug the error. Or the opneAi api alread change something to block the access from "curl"?

It looks my IP is block by the openai, if I change use a openai api proxy to replace the api.openai.com, then it works again.


Connection not close when not have new data in a long time

Hi all,
I use logstash to push data from csv to mysql with bellow config:

  max_pool_size => 20
  connection_timeout => 10000
  retry_initial_interval => 3
  retry_max_interval => 60

when not have new data in a log time, connection in mysql server not auto close and still at sleeping.
Can you help me resolve it ?
Thank you.

The plugin uses HikariCP to maintain a pool of connections. As the timeout is reached the existing connection should be closed and a new one created... This is intentional as it allows the plugin to not have to perform a logon every time there's new data... Whats the actual problem you're having?

I think it always maitain a lot of connection to MySQL server is not good for my server and now i understand. I will close issue now.
Thank for helping.

If you have too many open reduce the max pool size 👍🏻


Add the ability to put color on the files in the Explorer

That’d be great if we could add color to the files in the files explorer as well (akin to what macOS does in the Finder with color tags).
I love this kind of thing and I’m definitely gonna use it, thank you for your work!

Thanks for the suggestion, I like the idea, it would definitely fit in a new extension.
I am happy that you like the extension :)


Alt Tab not working properly

Nice start on this window manager.  You may already know, but the Alt-Tab function is not cycling through all open applications. It will sometimes lower one application but then have no effect when pressing again on the next open application.   If I raise an application with Alt-left mouse button, the Alt-Tab seems to lower it again but not cycle back to it without raising it again with.  Looking forward to future improvements.

Hi, thanks for leaving feedback!
This issue is now solved, since I switched the logic of workspaces to be a two-dimensional vector instead of an hash map, and now switching windows based on the active window (and not the event's window/subwindow), and only in the active workspace.
See commit https://github.com/orellazri/mswm/commit/55f0214e00b0e7a1067de7dc0b3a06f2e8bfb0f5