Engine API docs for /build missing description of response body

File: develop/sdk/index.md, CC @gbarr01
First of all, if this is the wrong forum to report this, please suggest a more suitable one. I chose to use this "Request docs changes" link because the Engine API docs are linked from that page.
The /build endpoint docs don't discuss the format or semantics of the response body: https://docs.docker.com/engine/api/v1.37/#operation/ImageBuild
Is this documented elsewhere, or can it be added to the API docs? I'd like to at least see answers for these questions:

What are the structures of the various JSON lines?
What do they represent?
Under what circumstances are the specific "types" present and absent?
How can I tell if the build succeeded or failed after it was initially accepted (and the API sent a 200 status)?

The following is what I've found out so far about the distinct message "types":
Keys: "stream"
Example: {"stream": "Step 1/9 : FROM debian:stretch-slim"}
Appears to be chunks of general information from the build, along with the output of commands run in the container. Lines may be spread over several JSON messages.
Keys: "id", "status"
Example: {"id": "stretch-slim", "status": "Pulling from library/debian"}
I've only seen at most one of these per build, but I wonder if there could be several in the event of a multi-stage build?
Keys: "id", "progressDetail", "status"
Example: {"id": "2a72cbf407d6", "progressDetail": {}, "status": "Pulling fs layer"}
I saw four of these in one build.
Keys: "id", "progressDetail", "progress", "status"
Example:
{
    "id": "2a72cbf407d6",
    "progressDetail": {"current": 228636, "total": 22488979},
    "progress": "[>                                                  ]  228.6kB/22.49MB",
    "status": "Downloading"
}

There were a lot of these, around 60. Possible values for status are "Downloading", "Verifying Checksum", "Download complete", and "Extracting".
Keys: "status"
Example: {"status": "Digest: sha256:613efd414e9818dcef858201484a94603a548a0e04fd4356e77eb758aeb16124"}
I only saw two of these. One with the hash of the parent image, and one with "Status: Downloaded newer image for debian:stretch-slim".
Keys: "aux"
Example:
{
    "aux": {
        "ID": "sha256:e7b81c7b21f3445eff249dc098092372ef1494caffaaf1c003bb0cb0ae9bb630"
    }
}

This only happened once, and the hash matches the ID of the completed image.
As far as I can tell, this is the most important JSON message, but the semantics are unclear. Will there ever be more than one? Does this message mean the image was successfully built, or are there other conditions that need to be met?
I'd appreciate any pointers towards existing docs, or even the source code where these messages are generated and emitted. I've been tearing my hair out for days looking for them without much success. Thanks in advance for any assistance you can provide.

Closing this ticket due to its age, and the impending refactor. If you think this is in error, feel free to reopen. Thanks!

Hi @L-Hudson, it's still unclear to me where the documentation for the API endpoints is located, so I don't know the proper place for this issue. I'd prefer if you could re-open (I apparently don't have that ability) at least until someone can help point to the proper place for this issue... the latest doc version still has the problem: https://docs.docker.com/engine/api/v1.39/#operation/ImageBuild


Add victory charts

I think we can start merged the working codes to master. Looks like we have 2 PR and this one includes the changes from the other.
Or should we wait for more features to go in before merging ?


add support for metadata on app & item level

Since the @metadata field is quite useful and actually is being used by default configurations (depending on installation method of the elk stack) for the beat & type fields (to form the _index & _type fields I've modified the script to support metadata fields on both app & item level: item fields override app level fields
example usage:
bunyanLumberjackStream({
  metadata: {beat:"example",type:"test"}
}
...
log.info("meta-test")// will have the app's default metadata sent along
  log.info({"@metadata":{type:"testing"}},"meta-type-test") // beat will be example, type will be testing instead of test

Looks good.  Can I get you to add a note about it to the README.md, though?  Thanks!

@jwalton done

Published as v1.1.0.  Thanks again!


Expose service metrics

As the readme says:

Limitations
No monitoring. There is no monitoring of any kind, but both a health-checking endpoint and Prometheus metrics are planned.

It feels even more important now, since #2 seems not debuggable without them. For starters, it would be fine to have only the following:

Time of the last processed event, i.e., lag.

Twice, once for each stream.

Number of processed events in the last N seconds.

Maybe per collection?

@landland would you be able to try out the new https://github.com/radekmie/changestream-to-redis/tree/metrics branch? It exposes three metrics: time of the last processed MongoDB event, number of processed MongoDB events, and number of Redis invocations. The last two should be equal at all times, and the first should not fall far behind.

Cool thank you! It looks like it is running. Here's some sample metrics output:
# HELP last_event Timestamp of last MongoDB event
# TYPE last_event gauge
last_event<PHONE_NUMBER>
# HELP mongo Number of MongoDB events
# TYPE mongo counter
mongo 39
# HELP redis Number of Redis invokes
# TYPE redis counter
redis 39

I'll keep this in testing for a week and then if all is well I'll push it live. Question, could you clarify what you mean by "the first should not fall far behind"? I guess you mean that it should be close to the current time, and if it's really old and not close to the current time, something is not quite right? And what would it mean if the last two metrics are not equal?
Thanks again for this. 🙏

last_event should be roughly the current timestamp, assuming your database has no "breaks". If it falls behind, e.g., shows a few minutes old timestamp, that may be the reason we see those lacks of reactivity.
Every event that comes in increases mongo, and after it is processed, it is pushed to Redis, increasing redis. They should always be the same as long as there's no huge number of events being processed.

Wow, I didn't expect Redis to be the issue. So let's recap:

The last processed event is 2-3 minutes old, so changestream-to-redis cannot catch up with MongoDB.
The difference between redis and mongo is exactly 1025, which makes sense since the buffer has 1024 slots.
That means MongoDB is not a problem, but pushing events to Redis is.

A few questions then:

Are you using the DEDUPLICATION flag and deploying multiple changestream-to-redis instances?
How "far" is the changestream-to-redis from your Redis instance (e.g., is it the same data center)? Is there some unnecessary network hop you could get rid of? (I'm asking since I think Redis would hit almost 100% with low-enough latency.)
How much CPU is available to the changestream-to-redis and Redis? (I don't expect the former to be an issue, but maybe the latter...? I don't know yet.)

My responses:

No, just one changestream-to-redis instance and no DEDUPLICATION
They're both located in the same data center - NYC3 in Digital Ocean, as is the mongodb
This one I'm not sure how to answer. Redis is setup with one standby node, both have 1 vCPU. And changestream-to-redis has 2 vCPU using Premium Intel as defined by Digital Ocean. Is there something more I can check here that can give you a better answer? Do you think upgrading the Redis db specs would help?

By the way, I noticed this after re-installing monti apm. We were running into an incompatibility issue with monti apm and redis-oplog that was fixed. Last night I deployed it live, and that's when I noticed the app non-reactivity and then the metrics discrepancy.

In that case I'd suggest throwing in one more CPU for Redis and reducing changestream-to-redis to one (I strongly believe it will be enough, but please do confirm with your metrics so far).
In the meantime, I'll think about whether I could optimize Redis processing, e.g., by batching sent events.
This incompatibility with the MontiAPM agent doesn't seem like a problem since it was happening on the server side. Thanks for the heads up!

Thank you! I've upgraded Redis with more RAM and 2 vCPU. I'll let you know how it goes. I checked the metrics and mongo and redis are equal again.

It seems like the upgraded Redis didn't entirely solve the issue - when MongoDB gets busy metrics shows a difference of 1025 between redis and mongo as you previously noted and it takes quite a while to recover. Hopefully you'll be able to come up with a way to optimize the Redis processing 🤞

Ouch. And do you maybe graph those metrics? Or at least collect them periodically? I'd like to see, how many events per second/minute we're talking about here.

I can do that the next time this happens. Or do you mean even when it isn't happening as well?

Ideally you'd collect them 24/7. These are Prometheus-style metrics, so you can gather them and chart in Grafana or a similar tool.

Feel free to tell me this is beyond the scope of what you can help with, but I'm having a heck of a time getting Prometheus to return JSON, as required by Grafana. It seems when I try to add the source to Grafana I get the error "ReadObject: expect { or , or } or n, but found #, error found in #1 byte of...".
It's returning the text format. According to this article from Prometheus, I'm supposed to query the API and use the endpoints /api/v1/query.
When I try to curl from the host machine of the changestream-to-redis docker container, I get the same text format.
curl http://<IP_ADDRESS>:4000/api/v1/query?query=up
# HELP last_event Timestamp of last MongoDB event
# TYPE last_event gauge
last_event<PHONE_NUMBER>
# HELP mongo Number of MongoDB events
# TYPE mongo counter
mongo 205
# HELP redis Number of Redis invokes
# TYPE redis counter
redis 205

<IP_ADDRESS> is the changestream-to-redis docker internal IP. So it seems like I'm not able to get the JSON and so Grafana won't connect. Any ideas?

It works like this:

changestream-to-redis is your Prometheus data source (metric source, target, etc.).
Prometheus Server should be deployed next to it, collecting periodically asking for the metrics from all data sources.
Grafana connects to Prometheus Server.

And it looks like you skipped Prometheus Server and wanted to connect Grafana to changestream-to-redis directly.

That was it, you are the man. Thank you 🙏. I have it collecting now so I can share some graphs with you the next time this happens.


The inference video reports an error： ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.

Same here with trying python -W ignore llava/eval/run_vila.py     --model-path Efficient-Large-Model/Llama-3-VILA1.5-8b     --conv-mode llama_3     --query "<image>\n Please describe the traffic condition."     --image-file "demo_images/av.png"

The issue is numpy 2.0.0. Using 1.x.x version fixes the issue: pip install numpy==1.26.4

thx!


Patch gnu-install-dirs.patch for lldb 17

Closing! Fixed by 8ef7e82b3f0fc3d349e88f6c74bb72ca873edf4a and a5153044ef35c7e05e58b987129870a64a87712a .


Various improvements to VirtAddr and PhysAddr.

VirtAddr::new_unchecked didn't behave like the new_unchecked functions in core which just wrap the value without checks or modifications, but instead behaved like PhysAddr::new_truncate. This change renames it to new_truncate, and adds unsafe new_unchecked functions.
Unfortunately, that does mean it's a breaking change. However, I think following this convention for "unchecked" is important to not cause confusion:

When looking for something that fixes/truncates the address, I couldn't find any function that did that. (I didn't think that new_unchecked would do that.)
When looking for something that lets me unsafely wrap an address, I used new_unchecked, and was surprised by the compiler warning that the unsafe block was unnecessary.

Also fixes and adds some other small things.

Thanks a lot! I fully agree with your reasoning. However, I don't think that it's a good idea to use the same new_unchecked name for the new function because it could silently break user's code. For example, if the new_unchecked function was used inside an unsafe block (or an unsafe fn), the behavior silently changes without any compile time error. So I think a different name would be better to ensure that a compile-time error occurs.

Sure. Any suggestions? new_unsafe, or something else? Do you want to keep the old new_unchecked as #[deprecated]?

I don't have any good ideas, but new_unsafe seems fine.

Do you want to keep the old new_unchecked as #[deprecated]?

That's a good idea!

Updated. Now it's no longer a breaking change.

Given that this still involves some churn for users, I would like to release it as a new semver-incompatible version, preferable together with some other breaking changes that I want to make. This might take a few days, I hope this is fine with you.


[stable/ambassador] Apro/env+ambassador

What this PR does / why we need it:
AMBASSADOR_ID was not being set in the Ambassador Pro annotations configured in templates/ambassador-pro-service.yaml
Option to set additional environment variables in Ambassador Pro has also been added.
Possible conflict with differing AMBASSADOR_IDs in Ambassador and Pro has been handle by defaulting to Ambassador's AMBASSADOR_ID.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/ok-to-test

@nbkrause needs rebase after merge of other pr

/lgtm

CI hates me
/retest


is x11 necessary to run conveyal analysis

Hello, i am trying to run conveyal analysis by the guide in terminal.
when i do docker-compose build, i receive error:
"ERROR: failed to solve: openjdk:11: error getting credentials - err: exit status 1, out: Cannot autolaunch D-Bus without X11 $DISPLAY"
is it neccesary to have graphical process in order to run this?

Hello @changtung, is not necessary to have graphic processors to run this platform, actually, I have run it in a virtual with Ubuntu, and works without problems, but checking the UI repo https://github.com/conveyal/analysis-ui I noticed that the UI is compatible until R5 v6,4, so after to clone R5 you need to checkout  to
git checkout v.6.4
I will update the readme with this spet


Update to year 2023

2022 -> 2023

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Thank you for this update! 🙂

Is there a reason we don't just remove the end year? it serves no purpose and if anything weakens the copyright protection


Creating a move-to-UBlue script?

Rebasing to ublue images is already pretty easy. But what if it was fully automated?
Example:
I am on Fedora Kinoite and have the packages kate fish /home/user/RPMs/some-random-RPM.rpm layered and the package kwrite removed. Now when moving to ublue, those overrides and layers would be gone, and it would be somewhat of a headache to build the command like:
rpm-ostree rebase ostree-unverified-registry:ghcr.io/ublue-os/kinoite-main:38  && rpm-ostree override remove kwrite --install A --install B --install C

There are some problems here: 1.  You cant do an override-remove as a second argument for some reason, at least I think so 3. The packages may not need to be changed, as ublue uses kate instead of kwrite for example. Having those repalacements sit there spams the "rpm-ostree update" in my experience with "Package already provided" etc.
So why not automate this? It would be a really great improvement.

Get the users OS version and desktop
let them decide what version (main, nokmods, asus, framework, surface, asahi?)
detect if they use nvidia
Then I would say easiest would be to somehow read the rpm-ostree changes (layers, overrides) they did, and in that script hardcode packages ublue already changes, so they should be skipped.
Build the command for the unsigned image, add the signed image rebase command to run automatically after reboot

Questions:

what do you think of this?
do you think this is useful, or is the new fancy web installer already "chosen"?
how should package changes be dealt with?
how do you detect the path of locally installed RPMs? Or should that be entered manually?
how would you implement such a reboot autostart? would you need the user layering twice?
would you wait for this until direct rebasing to signed works?

I like this idea

This is pretty out of scope for us, unless someone wants to work on this outside the org.


The ability to enter a PIN code or a graphic key on the android

Hi. Please add DEVICE_CREDENTIALS as an alternative authorization method. This will be useful when the user of an android device does not have support for facial biometrics or problems with the fingerprint sensor.

@zakharov161, you have to use biometric Strong authentication available in an Android Device to perform plugin's underlying cryptographic operations. Thus your request becomes invalid.


bug: fluent-operator crashes when applying FluentBitConfig

Describe the issue
I am testing out the latest development branch that includes additional CRs for e.g. namespaced FluentBitConfig and Output. It looks to me that it solves my issues related to multi tenant fluentbit setup.
What I am trying to achieve is to have a a cluster-wide, generic ClusterInput that picks up all logs but then have a namespaced FluentBitConfig and Output for my tenants to configure their own endpoints to send logs. I could of course have misunderstood the namespaced CR setup, if so I apologize.
I have added to my FluentBit config the new namespaced config selector. When I do that, the operator pod errors out with the following logs output:
I0406 09:15:16.140700       1 request.go:690] Waited for 1.010012652s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/cilium.io/v2?timeout=32s
2023-04-06T09:15:16Z	INFO	controller-runtime.metrics	Metrics server is starting to listen	{"addr": ":8080"}
2023-04-06T09:15:16Z	INFO	setup	starting manager
2023-04-06T09:15:16Z	INFO	Starting server	{"path": "/metrics", "kind": "metrics", "addr": "[::]:8080"}
2023-04-06T09:15:16Z	INFO	Starting server	{"kind": "health probe", "addr": "[::]:8081"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.FluentBit"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1.Secret"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.ClusterFluentBitConfig"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.FluentBitConfig"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.ClusterInput"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.ClusterFilter"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.ClusterOutput"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.ClusterParser"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.Filter"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.Output"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.Parser"}
2023-04-06T09:15:17Z	INFO	Starting Controller	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1alpha2.FluentBit"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1.ServiceAccount"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "source": "kind source: *v1.DaemonSet"}
2023-04-06T09:15:17Z	INFO	Starting Controller	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "collector", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "Collector", "source": "kind source: *v1alpha2.Collector"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "collector", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "Collector", "source": "kind source: *v1.ServiceAccount"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "collector", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "Collector", "source": "kind source: *v1.StatefulSet"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "collector", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "Collector", "source": "kind source: *v1.Service"}
2023-04-06T09:15:17Z	INFO	Starting Controller	{"controller": "collector", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "Collector"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.Fluentd"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1.ServiceAccount"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1.StatefulSet"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1.Service"}
2023-04-06T09:15:17Z	INFO	Starting Controller	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.Fluentd"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1.Secret"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.ClusterFluentdConfig"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.FluentdConfig"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.Filter"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.ClusterFilter"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.Output"}
2023-04-06T09:15:17Z	INFO	Starting EventSource	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "source": "kind source: *v1alpha1.ClusterOutput"}
2023-04-06T09:15:17Z	INFO	Starting Controller	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd"}
2023-04-06T09:15:17Z	INFO	Starting workers	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "worker count": 1}
2023-04-06T09:15:17Z	INFO	Starting workers	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "worker count": 1}
2023-04-06T09:15:17Z	INFO	Starting workers	{"controller": "fluentd", "controllerGroup": "fluentd.fluent.io", "controllerKind": "Fluentd", "worker count": 1}
2023-04-06T09:15:17Z	INFO	Observed a panic in reconciler: runtime error: index out of range [0] with length 0	{"controller": "fluentbit", "controllerGroup": "fluentbit.fluent.io", "controllerKind": "FluentBit", "FluentBit": {"name":"stdout"}, "namespace": "", "name": "stdout", "reconcileID": "7b53b347-2fe1-47fa-863c-9a2d7265c5b5"}
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

goroutine 673 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:119 +0x1fa
panic({0x17ce660, 0xc0017b5fc8})
	/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/fluent/fluent-operator/v2/apis/fluentbit/v1alpha2.ClusterFluentBitConfig.RenderMainConfig({{{0x15d7e4b, 0x16}, {0xc000d3d0a0, 0x1c}}, {{0xc000d3c6a0, 0x19}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}, ...)
	/workspace/apis/fluentbit/v1alpha2/clusterfluentbitconfig_types.go:178 +0x7c5
github.com/fluent/fluent-operator/v2/controllers.(*FluentBitConfigReconciler).Reconcile(0xc00027a4b0, {0x1b21fb0, 0xc001cb1d40}, {{{0x0, 0x0}, {0xc001d838c6, 0x6}}})
	/workspace/controllers/fluentbitconfig_controller.go:145 +0xa3f
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x1b21fb0?, {0x1b21fb0?, 0xc001cb1d40?}, {{{0x0?, 0x1668cc0?}, {0xc001d838c6?, 0x40f91d?}}})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:122 +0xc8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000199360, {0x1b21f08, 0xc0002793b0}, {0x1738fc0?, 0xc0003237e0?})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:323 +0x377
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000199360, {0x1b21f08, 0xc0002793b0})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:274 +0x1d9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:231 +0x587

To Reproduce
Apply a "basic" setup of fluentbit with fluent operator:
# FluentBit config with added namespaceFluentBitCfgSelector
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBit
metadata:
  name: fluent-bit
  namespace: fluent
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  image: kubesphere/fluent-bit:v2.0.10
  resources:
    limits:
      cpu: 500m
      memory: 200Mi
    requests:
      cpu: 10m
      memory: 25Mi
  fluentBitConfigName: cluster-fluent-bit-config
  namespaceFluentBitCfgSelector:
    matchLabels:
      onboardedFluentbit: "true"
  tolerations:
    - key: McsComponentsOnly
      operator: Exists
      effect: NoSchedule
    - key: CriticalAddonsOnly
      operator: Exists
      effect: NoSchedule
  annotations:
    fluentbit.io/exclude: "true"

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterInput
metadata:
  name: tail
  labels:
    fluentbit.fluent.io/enabled: "true"
spec:
  tail:
    tag: kube.*
    path: "/var/log/containers/*.log"
    parser: cri
    refreshIntervalSeconds: 10
    memBufLimit: 5MB
    skipLongLines: true

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFluentBitConfig
metadata:
  name: cluster-fluent-bit-config
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  service:
    parsersFile: parsers.conf
  inputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"

Then, apply the new namespaced CRs:
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
  name: ns-fluent-bit-config
  namespace: test-sbx
  labels:
    onboardedFluentbit: "true"
spec:
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
  name: azure-output
  labels:
    fluentbit.fluent.io/enabled: "true"
spec:
  customPlugin:
    config: |
      Name azure
      Match kube.*
      Customer_ID ************
      Shared_Key ***********

Expected behavior
Logs from my pods in the namespace where the new FluentBitConfig and Output resource resides ends up in the log analytics workspace described in Output.
Your Environment
- Fluent Operator version: latest
- Container Runtime: containerd
- Operating system: Ubuntu 18.04.6 LTS
- Kernel version: 5.4.0-1105-azure

How did you install fluent operator?
kubectl apply -f https://raw.githubusercontent.com/fluent/fluentbit-operator/master/manifests/setup/setup.yaml
Additional context
No response

You can try reinstall it with helm :
https://github.com/fluent/fluent-operator#deploy-fluent-operator-with-helm

You can try reinstall it with helm : https://github.com/fluent/fluent-operator#deploy-fluent-operator-with-helm

Thanks, that makes it a bit easier to work with. I cloned the repo and ran helm install fluent-operator --create-namespace -n fluent charts/fluent-operator/  --set containerRuntime=containerd with the following modifications done to template files:
Added this to fluentbit-fluentBit.yaml:
  namespaceFluentBitCfgSelector:
    matchLabels:
      onboardedFluentbit: "true"

Added a new file:
#ns-config.yaml
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
  name: ns-fluent-bit-config
  namespace: test-ns
  labels:
    onboardedFluentbit: "true"
spec:
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"

Still, I am seeing pod operator crashing with the same error log.

Still, I am seeing pod operator crashing with the same error log.

Use the released one: https://github.com/fluent/fluent-operator/releases/tag/v2.1.0

But v2.1.0 doesn't include the latest updated CRDs coming in from #630 which I am testing out?

We're going to release a new version soon and @wenchajun will test the new version before release it

We're going to release a new version soon and @wenchajun will test the new version before release it

All right nice! Will try with that release when it is available.


Move Shower class to framework def instead of server/client def

When generating models only, the framework definitions of the server and client are not rendered.  However, the Shower class is still required for models, so move it into the framework support definitions list.

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

Codecov Report

Merging #689 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #689      +/-   ##
==========================================
+ Coverage   81.17%   81.20%   +0.02%
==========================================
  Files          78       78
  Lines        5195     5197       +2
  Branches      129      139      +10
==========================================
+ Hits         4217     4220       +3
+ Misses        978      977       -1

Impacted Files
Coverage Δ

...nerators/Java/AsyncHttpClientClientGenerator.scala
94.39% <ø> (-0.01%)
:arrow_down:

...il/generators/Java/DropwizardServerGenerator.scala
98.01% <ø> (-0.02%)
:arrow_down:

...uardrail/generators/Java/DropwizardGenerator.scala
25.64% <100.00%> (+4.01%)
:arrow_up:

...n/src/main/scala/com/twilio/guardrail/Common.scala
100.00% <0.00%> (+1.19%)
:arrow_up:

Continue to review full report at Codecov.

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

No changes are required.  All this does is remove the same something from both the client and server generator's support defs, and add it to the framework's support defs.  The framework support defs are always rendered, regardless of whether it's a client or server, so there's no user-visible change (except that generating just models will now work, which did not work before).

Was wondering about package membership, but if these aren't static classes then ok

Ah, nah, they're toplevels, and the package ends up being the same.


st don't cover all screen

It build fine but the window of st don't cover all screen (I set my dwm to not having gaps).
On st's config.h I change fontsize to 24 and opacity to 0.95.
The gaps are located bottom of screen and to the right. (I include a picture

)
Not sure what should I change in config because before update 0.8.4 st was working fine.
Any ideas ?

Oh I think that my original build had the anygeometry patch, but the new one doesn't yet. I'll look into it. I think that's the patch.

Have you tried setting static const int resizehints in dwm's config.h to 0?

ok I change that setting to 0 rebilded and it works :) Problem solved. Thank you

I might just change this setting by default because I think most people would prefer it.

Running latest arch version of st-luke-git, still encountering this.
These are some instances with different font sizes under KDE Plasma with Krohnkite for tiling:

Well I can't help what KDE Plasma decides to do with windows. There might be a setting that enforces perfect tiling, but that is equivalent of how it's done in dwm.


Update README.md

More detail in guide
(maybe have some errors, plz edit it as you want

Thanks for your input! I've tried to make the instructions a bit more compact though, while keeping the step-by-step instructions proposed by you. Is this still helpful to you? 😝

Thanks for your input! I've tried to make the instructions a bit more compact though, while keeping the step-by-step instructions proposed by you. Is this still helpful to you? 😝

uh, yes, that look great
:D


Manedit v0.3.3 don't take priority into account

Hey, I'm trying to make a presentation comprising 7 classes.
After the generation using manim --save_sections hsf.py, they are order by default in alphabetic order in manedit.
Unfortunately, it's not the correct order so I change the priority in manedit, but it doesn't seem to be taken into account as the final order stays in alphabetic order during the presentation.
EDIT: it'll be easier with my presentation. Here it is: https://github.com/clementpoiret/manim_hsf
Sorry for bad coding quality, I'm mainly exploring manim + manedit :+1:
The order should be:
1/ Introduction
2/ State of Need
3/ Preprocessing
4/ Segmentation
5/ BaggingTta
6/ Postprocessing
7/ PreliminaryResults

For some reason --write_all didn't work for me but I managed to reproduce the error. I'm fixing it.

I think I've fixed it. Could you take a look at this. Is it supposed to look like that?

Yes, you have it in the correct order now! :+1:
Amazing reactivity :100:

Thank you very much for your top-notch problem description. It's really a joy to work with that!
PS: I'll bump the version now.


Swinject crash on iOS 14

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000102de8360
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [664]
Triggered by Thread:  0
Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   found                            	0x0000000102de8360 0x102be4000 + 2114400
1   found                            	0x0000000102de82e0 0x102be4000 + 2114272
2   found                            	0x000000010323059c 0x102be4000 + 6604188
3   found                            	0x00000001032308a8 0x102be4000 + 6604968
4   Swinject                      	0x00000001088ce40c partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed Resolver) -> (@out A) + 74764 (:0)
5   Swinject                      	0x00000001088ce468 partial apply for closure #1 in Container.resolve(:name:) + 74856 (:0)
6   Swinject                      	0x00000001088ce374 partial apply for thunk for @escaping @callee_guaranteed (@unowned @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) + 74612 (:0)
7   Swinject                      	0x00000001088ce39c partial apply for thunk for @callee_guaranteed (@guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) + 74652 (:0)
8   Swinject                      	0x00000001088c9204 Container.resolve<A, B>(entry:invoker:) + 53764 (Container.swift:309)
9   Swinject                      	0x00000001088c8ab8 Container.resolve<A, B>(name:option:invoker:) + 51896 (Container.swift:190)
10  Swinject                      	0x00000001088ca0dc Container.resolve(:) + 57564 (Container.swift:271)
11  Swinject                      	0x00000001088ca70c protocol witness for Resolver.resolve(:) in conformance Container + 59148 (:0)
12  found                            	0x0000000103230b0c 0x102be4000 + 6605580
13  Swinject                      	0x00000001088ce40c partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed Resolver) -> (@out A) + 74764 (:0)
14  Swinject                      	0x00000001088ce468 partial apply for closure #1 in Container.resolve(_:name:) + 74856 (:0)
15  Swinject                      	0x00000001088ce374 partial apply for thunk for @escaping @callee_guaranteed (@unowned @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) + 74612 (:0)
16  Swinject                      	0x00000001088ce39c partial apply for thunk for @callee_guaranteed (@guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) + 74652 (:0)
17  Swinject                      	0x00000001088c9204 Container.resolve<A, B>(entry:invoker:) + 53764 (Container.swift:309)
18  Swinject                      	0x00000001088c8ab8 Container.resolve<A, B>(name:option:invoker:) + 51896 (Container.swift:190)
19  Swinject                      	0x00000001088ca0dc Container.resolve(:) + 57564 (Container.swift:271)
20  灵感                            	0x000000010323007c 0x102be4000 + 6602876
21  libdispatch.dylib             	0x0000000191a61ac8 0x191a5e000 + 15048
22  libdispatch.dylib             	0x0000000191a63250 0x191a5e000 + 21072
23  libswiftCore.dylib            	0x0000000195ce74d0 0x195951000 + 3761360

See this issue: https://github.com/Swinject/SwinjectAutoregistration/issues/60 - it might be the same problem.
Otherwise paste the output of your console and your registration code.

@tkohout How to solve this  crash problem?

@Jovins You have to give me more information, as I said earlier

@Jovins I am closing this as duplicate. Feel free to reopen if you think it is a different problem.
I have also added section in documentation about this:
https://github.com/Swinject/SwinjectAutoregistration#swift-53


refs wheel改用better-scroll；popup增加createPortal；travis 增加TZ配置

Coverage decreased (-3.5%) to 62.128% when pulling 9b77be869884395167aa4f8dd9c57cfe36bc6096 on edison-hm:dev-ts into de3ff03ff7cda30933ef950d7d2cb705ce90c7fd on ZhonganTechENG:dev-ts.


Fix typo in log message

Motivation:
We had a typo in the log message.
Modifications:
Remove extra "s" in log message.
Result:
Correct spelling in log message.

lgtm

Cherry-picked into 4.0 (be0e5e8) and 4.1 (8f3a5e5b18d6e27281e3dba1d41e352065b129ad)


Add Nick Craver

Title
Nick Craver
Bluesky profile url
https://bsky.app/profile/nickcraver.com
Twitter profile (url or username)
nick_craver
Category
azure
Type
microsoft

Just happy that he's here :)


[Bug] Server Banner covered

I recently updated your theme and noticed this on servers that have a partnered or boosted banner

fixed


io_uring backend can hang sometimes.

https://github.com/socketry/async/issues/213
It was fixed by flushing all pending events, however we should add some test cases for this.
https://github.com/socketry/io-event/commit/affa67de865a8c1165a5ec4a4613b8b0d582c104

Out of curiosity, I removed that line, and the test suite hangs. That's good enough for me (as a test).


Blog only breaks post links

🐛 Bug Report
Setting routeBasePath: "",  as part of the blog preset breaks links to content.
https://v2.docusaurus.io/docs/blog/#blog-only-mode
Have you read the Contributing Guidelines on issues?
(Write your answer here.)
To Reproduce

Set routeBasePath: "",
Visit base page
Click blog post link redirect to /blog/<blog-id>

Expected behavior
Expect /blog/<blog-id> to return the page contents.
Actual Behavior
Returns blog feed.
Your Environment

Docusaurus version used: 2.0.0-alpha.53
Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome 81.0.4044.122
Operating system and version (desktop or mobile): desktop

Reproducible Demo
I deployed my blog to demo: https://afking.github.io/
Development branch blog

@afking there was a mistake in the docs, we fixed it now, sorry for misleading! https://github.com/facebook/docusaurus/commit/f8f6478c3652f375604d9ff8dd1c85ef4204475f


Add timeout

whoop first contribution 🥳
@kaansariveli you just need to update the configs in the unit tests. Do rake spec to run tests locally. Let me know if you need any help

whoop first contribution 🥳
@kaansariveli you just need to update the configs in the unit tests. Do rake spec to run tests locally. Let me know if you need any help

done 👍


Android Studio keeps complaining AndroidManifest.xml error

When I import project file to Android Studio (v2.0) and keep seeing this error.
Any hint?

are you importing as an existing project, or trying to import it into something else? it has to be as an existing project.
if not, have you edited anything? under "android application" where you have "Android Beacon" i think it should just say "app". (the string "Android Beacon" doesn't appear anywhere in the source which makes me think it's something you've changed.)

Yes, i'm importing existing project. I added 'Android Beacon'  because of when I Run -> Run 'App', I see this

It looks like I have to add a configuration in order to build, so that I add 'Android Application' under the name of 'Android Beacon'. This is where I showed you.
I also tried to start over again, clone a new repo from here and re-import from the existing project. Still no luck, thanks for helping out.

What version of android studio are you using?
Sent from my mobile device
On 10 Dec 2015 8:50 p.m., "Harry Chen"<EMAIL_ADDRESS>wrote:

Yes, i'm importing existing project. I added 'Android Beacon' because of
when I Run -> Run 'App', I see this
[image: screen shot 2015-12-10 at 3 31 37 pm]
https://cloud.githubusercontent.com/assets/693098/11727985/367b734a-9f55-11e5-9e42-b7033fdbeeb5.png
It looks like I have to add a configuration in order to build, so that I
add 'Android Application' under the name of 'Android Beacon'. This is where
I showed you.
I also tried to start over again, clone a new repo from here and re-import
from the existing project. Still no luck, thanks for helping out.
—
Reply to this email directly or view it on GitHub
https://github.com/google/beacon-platform/issues/24#issuecomment-163745445
.

Android Studio 2.0 Preview 2

ah, you're on the bleeding edge. i'll update my world here later today and see what's happening. i wouldn't be shocked if there has been a breaking change or two :-)

Thanks @mashbridge. Let me know if you want to test something on my side.

I installed the latest 2.0 3b build (linux) of Studio from http://tools.android.com/download/studio/canary/latest and tried opening the BeaconServiceDemoApp project. After indexing for a while it failed because it couldn't load one of the .iml files. (I'm not too surprised the files are incompatible -- the build structure of 2.0 is very different and often enough a major version bump implies some level of backwards incompatibility.)
I closed studio, deleted the current build state with cd BeaconServiceDemoApp &&  rm -rf .gradle local.properties .idea build captures *.iml app/*.iml app/build, opened studio again and re-imported the project. Then it worked fine.
You may not need to blow away your entire state -- it may just be the .iml files that need to be deleted. But it seems easy enough to get things working now. Hope that helps!


feat: Collector Metric Exporter[2/x] Create CollectorMetricExporterBase

Summary
This PR addresses Issue #1109.
Currently, the Collector Exporter only sends traces to the collector. In Python, Java, and Go, for example, metric exporting already exists for the collector. This PR adds that feature. I created two versions, one for Node and the other for browser. The node version uses gRPC, and the browser uses Beacon or XHR. It's up to date with all previous collector exporter commits.
What this PR does
This is the 2nd part of this long PR.
This PR creates CollectorMetricExporterBase, modeled off CollectorTraceExporterBase. I also create unit tests and add two mock metrics to test with, a mock counter and a mock observer. The base class does nothing, so this won't break anything.
Next Steps
The next diffs will be as follows

Add transform functions and tests
E2E Metric exporter for Browser with tests
E2E Metric exporter for Node with tests

This PR: https://github.com/open-telemetry/opentelemetry-js/pull/1254 reverted my proto change, so I'm doing it again.

@naseemkullah Actually, I realized that this.hostname is also set in CollectorTraceExporterBase and is never used. Is it okay to just remove it from both?

@naseemkullah Actually, I realized that this.hostname is also set in CollectorTraceExporterBase and is never used. Is it okay to just remove it from both?

At a quick glance, imho, we can remove hostname but we should add host and port, which should be used with Node, whereas url with browser, since for reasons beyond my understanding they must be configured differently. @open-telemetry/javascript-maintainers please advise.

All that to say I'm ok with removing hostname and (eventually adding host and port, probably not in this PR,  if Node cannot be configured via url with a url).

Thanks @naseemkullah! For now, I just changed hostName to hostname and added more unit tests. I'll make another PR to remove it and replace it with host/port.


Documentation changes

Codecov Report

Merging #209 (2015cc9) into master (601f1ff) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #209   +/-   ##
=========================================
  Coverage     51.10%   51.10%
  Complexity      536      536
=========================================
  Files           121      121
  Lines          2532     2532
  Branches        267      267
=========================================
  Hits           1294     1294
  Misses         1137     1137
  Partials        101      101

Impacted Files
Coverage Δ
Complexity Δ

...n/java/seedu/budgetbaby/model/record/Category.java
81.81% <ø> (ø)
6.00 <0.00> (ø)

Continue to review full report at Codecov.

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


improve ACK algorithm

We currently send ACKs only with other frames, or after 5ms have expired. Under some situations this can cause problems, since it massively delays the congestion window increase, see the attached traces. #340 is a workaround, but we should still fix this issue.

We should fix this issue soon.
With the the client I'm now at a point (in the wip-client branch) where I can do GET requests, but client and server always end up sending each other ACKs indefinitely.


Update to 1-incubating parent POM

Update to 1-incubating after parent POM is officially released.

Should this onl be merged after the parent pom is released?

Yes. That was the idea. Only after the parent pom is released.

I completely missed the initial comment


Add support for prediction columns in mosaic

Include the ability to add prediction columns directly to testbenches for evaluating models.
Potential design:
prediction mixin --> ClassifierMixin [logits, probs, argmax -- moving between things]
Need to support more than classification (e.g. segmentation, text generation).
Linking the prediction to the task.
One caveat for ClassifierMixin is supporting multi-label problems (i.e. imageA can be both class1 and class2)

#46


Filters

I created a framework for inserting filter graphs into Uncompressed sample providers and implemented an example audio filter class (which works out of the box).
You can pass filters using the configurations described in the link bellow by creating AvEffectDefinition objects
For example, you can insert an aecho effect like so
new AvEffectDefinition("aecho", "aecho=0.8:0.88:60:0.4")
Effects can be enabled or disabled during playback at will.
I have tested this branch a little, it has no obvious memory leaks or hard hitting errors.
I haven't done anything for videos yet (should be roughly similar to the existing AudioEffect class, but with different configurations for buffer source and resampler filter), and I am not sure if it is even possible for compressed samples.
https://ffmpeg.org/ffmpeg-filters.html#Audio-Filters
PS: I am not sure why the entire history of the repository is visible here, only the last 2 commits matter.
PS2: I know filters have several ways of initialization, but i find the string based approach the best, and it seems to work every time, and is easiest and most versatile to implement. The context options API doesn't seem to work every time. I only used it for the abuffer source because that filter has many options that would be harder to express as strings.

@mcosmin222 I know this problem. I solve it this way: Create a new clean branch, based off the branch where you want to merge (in this case, master). Checkout that branch, then use git bash: git merge --squash  ( could then be "lukasf/filters" or just a different branch in the same repo).

This was my mistake. The PR should have been in your parallel repo, not here. I guess the coxe was eager to come here :)

Oh ok I see :)

We can move over there :)


Redirect problems when project is created using dotnet template

Describe the bug
I created a new project using DotNet Template, but I have to resolve some issues to run it properly. However, I get the following error when I try to load any page:
NotImplementedException: The type Microsoft.AspNetCore.Mvc.ViewFeatures.HttpNavigationManager does not support supplying NavigationOptions. To add support, that type should override NavigateToCore(string uri, NavigationOptions options).
To Reproduce
Steps to reproduce the behavior:

Create new project through dotnet template
Run it
Try to Login
App shows the error "NotImplementedException: The type Microsoft.AspNetCore.Mvc.ViewFeatures.HttpNavigationManager does not support supplying NavigationOptions. To add support, that type should override NavigateToCore(string uri, NavigationOptions options)."

Expected behavior
No error
Logs
If applicable, add logs to help explain your problem.
Platform (please complete the following information):

OS: MacOS
.Net Core Version 7.0

Additional context

Works great!, thank you!


Jiggling wiggling UI on web

Describe the bug
various parts of the UI will start shifting up and down by one pixel when viewing the timeline / feeds. this may or may not be related to the other reports of unexpected motion (those seem to be describing a much more major jump)
To Reproduce
a big part of what makes this bug so hard to pin down is that I don't think I've seen anyone find a reliable way to reproduce it, it just sort of tends to happen randomly after you've scrolled a certain amount
Expected behavior
the webpage should not get the shakes
Screenshots
Screencast from 2024-01-23 13-22-17.webm
Details

Platform: Desktop Chrome (Linux) 120.0.6099.224 (Official Build) (64-bit)
App version: 1.66.0

Additional context
honestly this is probably a Blink/Skia bug, i'm mostly just reporting it here as an excuse to post that screengrab. here's that post about the Terminator's junk if you want to see if you can get it to reproduce

In my case, it looks like part of an image is showing up while scrolling.


Divide and Remainder are missing overflow corner case test

The RISC-V specification Section 7.2 defines a corner case for divide and remainder for the most negative integer divided by -1.
It appears that this case is not tested in div-01 and other divide and remainder tests.

I think patch #302 is relevant to issue #299, not #300.  I didn't see changes about divide and remainder corner cases in #302.

You are correct that it fixes #299. It is a bit of a surprise to me that the most negative integer is caught by a walking one dividend and a walking zeroes divisor test, but it may not be looking for those simultaneously (or -1 might not be considered walking zero value.
In the version of the unpriv spec Im looking at, section 7.2 has no mention of divide at all, it is now section 9.2

Allen, I think you might have meant "isn't caught" rather than "is caught".  In any case, I searched div-01.S for op2val:-0x1 and didn't find any hits, so I'm pretty sure the corner case is missing.

Yes, you're correct, that should have been "isn't".
I think the tests are structured so they hit all walking 0s and walking 1 patterns - but not all crossproducts.
IF div didn't have any op2val=-1, then something went wrong.
There should be max[u/s]int/min[u/s]int combinations for that (e.g. 2^XLEN-1, -2^XLEN, 0,1,-1) for most tests.
If DIV has no tests with rs2 = -1, then something is buggy.

Looking at div test inst_2:
// rs2 == rd != rs1, rs1==x26, rs2==x11, rd==x11, rs1_val < 0 and rs2_val < 0, rs1_val == -8193
// opcode: div ; op1:x26; op2:x11; dest:x11; op1val:-0x2001;  op2val:-0x1 <--
so it does test dividing by -1, but not with the max negative dividend.

Ah, -1 shows up in rv32_m/M/src/div-01.S but not in rv64_m/M/src/div-01.S.
I wonder why walking 1s doesn't produce the -1 case in rv64?

I was wrong. Walking X always has at least one X in it (and -1 has no 0s in
it)
But, looking at the code, both rs1 and rs2 should have generated a test
for every integer in the range -10..10.
But, looking at the test, -1,-2,-4,-8,+/-7, and +10 are missing.
In RV32, -6, +/-7, -8, +/-10, and  +9  are missing.
Clearly I'm not understanding something about how ctg works.
Even if it did, though, there's no guarantee it would have paired that with
the max negative number.
That special test needs to be added, in any case.
On Mon, Dec 26, 2022 at 7:14 AM davidharrishmc @.***>
wrote:

Ah, -1 shows up in rv32_m/M/src/div-01.S but not in rv64_m/M/src/div-01.S.
I wonder why walking 1s doesn't produce the -1 case in rv64?
—
Reply to this email directly, view it on GitHub
https://github.com/riscv-non-isa/riscv-arch-test/issues/300#issuecomment-1365243705,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXVJT6J6AF2ZJV5NPN7ALWPGY6ZANCNFSM6AAAAAAS27GL7A
.
You are receiving this because you commented.Message ID:
@.***>

The coverpoints for which the tests have been generated can be found here. If the coverpoint is not present in this file, then the test will not contain the corresponding test case. For -1 there is no coverpoint defined. It is present in the rv32i_m test only by change. If we are looking at particular values to be present in any of the operands, we should not be looking at the op*val in the tests. We should be looking at the coverpoints file to see what particular coverpoints are missing because in the end its the coverpoints which matter(and drive CTG).

But, looking at the code, both rs1 and rs2 should have generated a test
for every integer in the range -10..10.

Are you talking about the CTG code here? Cause I don't see the coverpoints for these in the coverage yaml itself.

Even if it did, though, there's no guarantee it would have paired that with
the max negative number.

Yes. You are right. If we want it to be paired with the max negative number, the coverpoint should look like
 rs1_val == <max_negative_number> and rs2_val == -1. If for a particular coverpoint, no condition is defined over one of the operands, a random value is assigned which may or may not satisfy another coverpoint defined over that operand register.

I was looking at the definition of gen_sign_dataset
in riscv_ctg/constants.py
and
rs2_val_data: 'gen_sign_dataset(xlen) + gen_sp_dataset(xlen,True)
in the div definition    in riscv_ctg/data/imc.yaml
On Mon, Dec 26, 2022 at 10:29 PM S Pawan Kumar @.***>
wrote:

The coverpoints for which the tests have been generated can be found here
http://htmlpreview.github.io/?https://github.com/riscv-non-isa/riscv-arch-test/blob/revert-294-canary-patch/riscv-test-stats/coverage/rv32i_m/M/coverage.html.
If the coverpoint is not present in this file, then the test will not
contain the corresponding test case. For -1 there is no coverpoint
defined. It is present in the rv32i_m test only by change. If we are
looking at particular values to be present in any of the operands, we
should not be looking at the op*val in the tests. We should be looking at
the coverpoints file to see what particular coverpoints are missing because
in the end its the coverpoints which matter(and drive CTG).
But, looking at the code, both rs1 and rs2 should have generated a test
for every integer in the range -10..10.
Are you talking about the CTG code here? Cause I don't see the coverpoints
for these in the coverage yaml itself.
Even if it did, though, there's no guarantee it would have paired that with
the max negative number.
Yes. You are right. If we want it to be paired with the max negative
number, the coverpoint should look like
rs1_val == <max_negative_number> and rs2_val == -1. If for a particular
coverpoint, no condition is defined over one of the operands, a random
value is assigned which may or may not satisfy another coverpoint defined
over that operand register.
—
Reply to this email directly, view it on GitHub
https://github.com/riscv-non-isa/riscv-arch-test/issues/300#issuecomment-1365647614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXVJQTXNJQACM3GAHXHKTWPKEEHANCNFSM6AAAAAAS27GL7A
.
You are receiving this because you commented.Message ID:
@.***>

Those are just the datasets which define the domain for each of the variables. In the end only the cases covered by the coverpoints will be present in the tests. You should look at the coverage yaml file under the releases folder in the drive and the corresponding function definitions in the riscv-isac/cgf_normalise.py

This will require updating the coverpoints in the cgf files for the div operations. This is similar to #306 and can be clubbed with that issue.

Well, the #306 issue is probably more general than divide, so at some point
(only if we're going through the exercise of regenerating tests for some
reason) we should think about updating other tests as well,
On Thu, Jan 26, 2023 at 8:24 AM Neel Gala @.***> wrote:

This will require updating the coverpoints in the cgf files for the div
operations. This is similar to #306
https://github.com/riscv-non-isa/riscv-arch-test/issues/306 and can be
clubbed with that issue.
—
Reply to this email directly, view it on GitHub
https://github.com/riscv-non-isa/riscv-arch-test/issues/300#issuecomment-1405264130,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXVJQHW7CPB6OI2F2VBILWUKQNFANCNFSM6AAAAAAS27GL7A
.
You are receiving this because you commented.Message ID:
@.***>

@davidharrishmc @allenjbaum @pawks This issue is resolved (by regenerating tests) in #365 of riscv-arch-test and the riscv-ctg related PR through which the test is generated is this.

Pull 365 has which fixes this has been merged, so closing it.


Manage credentials

Offer a way to manage credentials. Ideally it should be generic enough to be used across protocols and for different credential types per protocol (ex http : oauth, basic auth, API keys).

Might be solved by #63 - better to let users to use their own http client instead of offering an API on top of it.

We currently have cookies and headers to configure requests. Both can be used for different kind of credentials:

basic auth: with Authorization header
bearer token: with Authorization header
session based: with cookies sent by the API server

however we can improve the API by following the same reqwest exposes with basic_auth and bearer_auth. Supporting the header function to configure the client could also be useful in the future.


question about permission

HI,
I was wondering if its possible for the scan user to have full permission but the user 1 can only see the folder but cannot add nothing or delete from that folder?
Thank you

Hi,
Thats currently not possible. There is just the one global Samba user, that has full permissions.
In general this container is to just proxy legacy devices, so the normal access to the files should be done via the target system, where the file is proxied to.
I don't use the container for myself at the moment, as i don't have the usecase anymore.


Manual Azure AD configuration page

I think the manual Azure AD on this page requires updating. I found that adding users to a replied application also required the Microsoft graph User.ReadBasic.All permission in addition to User.Read.

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

ID: 3eb2e7c5-e153-4067-ae8c-45eb64add7da
Version Independent ID: 3c87633d-44b7-525d-0e29-75f2d4bcbf2b
Content: Deploy Azure Blockchain Workbench Preview - Azure Blockchain
Content Source: articles/blockchain/workbench/deploy.md
Service: azure-blockchain
GitHub Login: @PatAltimore
Microsoft Alias: patricka

@ben-oxley Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Hi @ben-oxley,
That sounds correct. I'll put it on my backlog to take a look at it and fix it. Thanks for the feedback.
Thanks,
Pat
#in-progress

Hi @ben-oxley,
Thanks for opening an issue. I've updated and published a fix to the article.
Thanks,
Pat
#please-close


Test and fix (if necessary) partitioning for HFB package

In GitLab by @JoerivanEngelen on Nov 22, 2023, 12:37

Found the following issues: https://github.com/Deltares/imod-python/issues/696, https://github.com/Deltares/imod-python/issues/697


The paper says "the code is available on GitHub"...

As per title, where can I find the code of the Transformer-Based Lip-Reading with regularized dropout and relaxed attention paper? Thanks!

大佬你好，请问可以哪里可以查看您的代码？


feat(elk): add elk-based observability tools stack (kibana + vector)

This PR aims to provide tools to enable log overviews against the environment and allow developers to experiment with observability tech for free.
It is DRAFT since I need to push the corresponding PR into the images repo and polish some configs. Still, I want the community to be able to start a discussion as early as possible.

the problem is that kibana and its opensearch-ed variant requires versions to be nearly equal with the engine itself (7.17 kibana wont start with the 7.8 elastic, etc.), so (as far as I see) it would be impossible to have one service for all the envs(


Implement SMF writer.

I'm struggling a bit with this PR. There's no question that a SMF writer is very useful to have, but I would put that into a separate crate instead of merging it here.

I totally agree so I'm closing out this PR.
Also related, I've written a parser for SMF. https://github.com/Musical-Fruit/musical-fruit/blob/main/wmidi-smf/src/lib.rs
I have not open sourced it because it does not handle all SMF features and has not been thoroughly tested. but... I should release this while disclosing the previous statement as a caveat.


Update brisk to 1.0.1

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Note that the appcast has been updated since Brisk now supports Sparkle

Note that the appcast has been updated since Brisk now supports Sparkle

Even so, we prefer the Github appcast as it was. Sparkle appcasts are often neglected/forgotten. Github appcasts are automated.
I understand you’re the developer of the app, but even so. For our purposes, we’d rather have the automatically updated one (github).

okey dokey, just pushed that


Better way to output arrays

arrays are converted to String by .toString() method, which renders them unreadable
Example:
Expected: <Hello, друг!
> equal to value
     but: was <[B@3a7e45e7>

Proposal: use Arrays.toString() instead

I think it is duplicate of: https://github.com/objectionary/eo-hamcrest/issues/36

@Graur you are right


docs: Add Component library ionic-qwik to community projects on docs.

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests / types / typos

Description
I have added ionic-qwik to the community projects on the docs page. It's a third-party wrapper for @ionic/core.

Hi, how is it working with SSR rendering?

Hi, how is it working with SSR rendering?

When rendering, ionic components look like:
// input
export default component$(() => (
  <body>
    <IonList>
      <IonItem button onClick$={() => console.log('click!')}>item - 1</IonItem>
    </IonList>
  </body>
));

<!-- output -->
<body>
  <ion-list>
    <ion-item button="true">item - 1</ion-item>
  </ion-list>
</body>

It just render a custom-element, and binding event-handler or some json-data.

Oh wow, this is exciting!


[SVC-2681] Design ability for developers to list & connect to servers

Motivation
Developers often have custom use cases where they want to send requests to game servers from outside of the game server, without using find.
Currently, Game Guard has a strict firewall that prevents making this request.
Context
https://discord.com/channels/822914074136018994/1093217973197615155/1127091151665647616
From SyncLinear.com | SVC-2681

Out of sync with Linear


Any plans to implement multi-query attention

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Not at present, but you're welcome to submit a PR!


Xamarin.Forms: VideoView does not appear

Environment is Visual Studio 2017 with Xamarin.Forms <IP_ADDRESS> (which is the latest release), with a shared project (not a PCL) and iOS, Android and UWP projects.  Plug.MediaManager & Plugin.MediaManager.Forms 0.4.0 is installed. in each project.
I have the following XAML:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    x:Class="VideoApp.Pages.VideoDetail"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:forms="clr-namespace:Plugin.MediaManager.Forms;assembly=Plugin.MediaManager.Forms">
    <StackLayout>
        <forms:VideoView
            x:Name="VideoPlayer"
            AspectMode="AspectFill"
            HorizontalOptions="FillAndExpand"
            Source="http://zumobook.streaming.mediaservices.windows.net/007f9e4a-92c2-4d3b-aa12-a428126e0eef/Sample 1.ism/manifest" />
        <StackLayout Orientation="Horizontal">
            <Label Text="Duration: " />
            <Label x:Name="Duration" />
        </StackLayout>
        <ProgressBar x:Name="ProgressBar" HorizontalOptions="FillAndExpand" />
        <StackLayout Orientation="Horizontal">
<!-- Some buttons removed for sake of brevity -->
        </StackLayout>
    </StackLayout>
</ContentPage>

In addition, I've added the var window=typeof(VideoView); in the App.cs in the shared project.
Compiling for UWP:
If I remove the <forms.VideoView> then the page loads normally, albiet without the video.  If I add the VideoView back in, then the title remains as on the previous page and there is a blank page otherwise.   No video is played.
It doesn't matter if the source is empty, valid, bound to a property, etc. Looking at the output, there is no strange log messages.  If I set a breakpoint at the end of the VideoDetail constructor (after the InitializeComponent()), then the VideoPlayer variable is a Plugin.MediaManager.Forms.VideoView type.
Any idea on how to debug further?

Did you include VideoViewRenderer.Init(); in the OnCreate() method in each native project?
You also need a using reference for Plugin.MediaManager.Forms.Android/iOS.

Yes - I included both of those.  I moved on to a different library.

Adrian,
If you don't mind,  what library did you use?

Regarding the error:
The type or namespace name 'Forms' does not exist in the namespace Plugin.MediaManager are you missing an assembly reference?
You must also install the Nuget Package:
Plugin.MediaManager.Forms

I am having the same problem on my xaml

I am having the same issue. Has anyone find the solution yet or not?

Just to Note a Successful build
I had to install the Nuget Package and add a using reference of same
Plugin.MediaManager.Forms


Updating to 4.1.0 causes build failure

Steps to reproduce
The build for this dependency update PR on my website is failing: https://github.com/uncenter/uncenter.dev/pull/234.

20:03:44.311 | [11ty] Problem writing Eleventy templates:
-- | --
20:03:44.311 | [11ty] 1. Having trouble rendering vto template ./src/posts/index.vto (via TemplateContentRenderError)
20:03:44.312 | [11ty] 2. [22:13-22:18]: Await is only valid in async functions (via SyntaxError)
20:03:44.312 | [11ty]
20:03:44.312 | [11ty] Original error stack trace: SyntaxError: [22:13-22:18]: Await is only valid in async functions

I can't even see what is async about https://github.com/uncenter/uncenter.dev/blob/main/src/posts/index.vto (which just wraps the https://github.com/uncenter/uncenter.dev/blob/main/src/components/postlist.vto component, which also doesn't appear to be async). Is this an issue with Vento 1.12.12 that was bumped in this update? I don't see anything about it in the upstream issues or release notes for the recent 1.12.13 release.
Expected behavior
Successful build, as it is with v4.0.1.
Actual behavior
Got error as above.
Plugin version
4.1.0
Eleventy version
3.0.0
Reduced Test Case URL
No response
Additional information
No response

Will investigate. Apologies for all the weird errors! Hopefully we'll get to something stable eventually 😅

No worries ahah, this plugin is amazing and I am so glad I switched to Vento - happy to help debug whatever and hopefully get other 11ty users to switch over as well :)

Could you try running your build with the environment variable DEBUG=Eleventy:Vento*? I've got the plugin set up to print the transformed template function just before render, so that might help determine where the error is getting thrown.
Output should be similar to something like this:
Eleventy:Vento Getting template function for `page.vto` +20ms
Eleventy:Vento:Cache Cache MISS for `page.vto`, compiled new template:
Eleventy:Vento:Cache Use Vento cache: false
Eleventy:Vento:Cache
Eleventy:Vento:Cache async function (it) {
Eleventy:Vento:Cache         let __pos = 0;
Eleventy:Vento:Cache         try {
Eleventy:Vento:Cache           it = Object.assign({}, __defaults, it);
Eleventy:Vento:Cache           const __exports = { content: "" };
Eleventy:Vento:Cache           __exports.content += "\n\t";
Eleventy:Vento:Cache __pos = 8;
Eleventy:Vento:Cache for (let [name, content] of __env.utils.toIterator(it.meta, true)) {
Eleventy:Vento:Cache   __exports.content += "\n\t\t<meta name=\"";
Eleventy:Vento:Cache   __pos = 54;
Eleventy:Vento:Cache   __exports.content += name ?? "";
Eleventy:Vento:Cache   __exports.content += "\" content=\"";
Eleventy:Vento:Cache   __pos = 75;
Eleventy:Vento:Cache   __exports.content += content ?? "";
Eleventy:Vento:Cache   __exports.content += "\"> \n\t";
Eleventy:Vento:Cache }
Eleventy:Vento:Cache __exports.content += "\n\n\n\n\t";
Eleventy:Vento:Cache __pos = 121;
Eleventy:Vento:Cache {
Eleventy:Vento:Cache   const __result = await __env.utils.eleventyFunctions.shortcodes.testShortcode.call({
Eleventy:Vento:Cache     page: it.page,
Eleventy:Vento:Cache     eleventy: it.eleventy
Eleventy:Vento:Cache   }, "arg1", "arg2");
Eleventy:Vento:Cache   __exports.content += __result;
Eleventy:Vento:Cache }
Eleventy:Vento:Cache __exports.content += "\n\n\t";
Eleventy:Vento:Cache __pos = 158;
Eleventy:Vento:Cache __exports.content += await __env.filters.test.call({
Eleventy:Vento:Cache   data: it,
Eleventy:Vento:Cache   env: __env
Eleventy:Vento:Cache }, "{{ 2 + 2 }}") ?? "";
Eleventy:Vento:Cache __exports.content += "\n\n\n";
Eleventy:Vento:Cache
Eleventy:Vento:Cache           return __exports;
Eleventy:Vento:Cache         } catch (cause) {
Eleventy:Vento:Cache           const template = __env.cache.get(__file);
Eleventy:Vento:Cache           throw new __err(__file, template?.source, __pos, cause);
Eleventy:Vento:Cache         }
Eleventy:Vento:Cache       } +0ms
Eleventy:Vento:Render Rendering `page.vto` +0ms

If it helps, I just put 4.1.1-beta.0 (with ventojs v1.12.13) on npm via https://github.com/noelforte/eleventy-plugin-vento/pull/97.

Thinking out loud:
Given the file is empty, whatever's in ./src/posts/index.vto isn't yielding anything, meaning the error is probably originating from some internal operation. That said this section seems the most likely.
let { PostList: PostList } = await __env.run("../components/postlist.vto", {
  ...it
}, __file)

This is where this plugin and Vento differ in implementation. This plugin uses Vento's compile() method directly since it allows for Eleventy to handle caching of template functions used directly and returns the template code as a string.
However, when Vento runs a template internally, it uses __env.runto load, cache, and execute the template function in one go, which is what's in the docs.
Couple ways we could proceed to identify the cause of the issue:

I think adding test cases for function/export tags in https://github.com/noelforte/eleventy-plugin-vento/tree/main/tests could help rule out issues compiling those tags.
Could also go insert some console.logs into node_modules for the run() method, and/or insert some directly in the generated template function.
Since Vento has the ability to run real JS at runtime via its Function constructor, adding {{ console.log() }} statements in your template might also help nail down where the await in non-async issue is stemming from.

With 4.1.1-beta.0, the changes from https://github.com/ventojs/vento/pull/89 are in there, but as you've already seen, this:
[11ty] Problem writing Eleventy templates:
[11ty] 1. Having trouble rendering vto template ./src/posts/index.vto (via TemplateContentRenderError)
[11ty] 2. Error in template src/posts/index.vto:1:1
[11ty]
[11ty] <empty file>
[11ty]
[11ty] (via TemplateError) (via TemplateError)

is even more vague than this:
20:03:44.311 | [11ty] Problem writing Eleventy templates:
-- | --
20:03:44.311 | [11ty] 1. Having trouble rendering vto template ./src/posts/index.vto (via TemplateContentRenderError)
20:03:44.312 | [11ty] 2. [22:13-22:18]: Await is only valid in async functions (via SyntaxError)

Eleventy doesn't correctly report the entire error chain, including Errors with a cause property attached. Therefore, releasing<EMAIL_ADDRESS>with<EMAIL_ADDRESS>is blocked until https://github.com/11ty/eleventy/pull/3572 (and possibly https://github.com/11ty/eleventy/issues/3582) gets resolved.
Think that just about covers everything for now. Unfortunately, I don't have time in the next couple days to work on this but if you want to raise any PRs I can look and review. Otherwise, I'll get back to this when I have a moment.

Oh! One other thing: DEBUG=Eleventy* will log the entire error object which could help trace the error through causes. Might help reveal something.

@uncenter I was able to ID this for you by cloning uncenter.dev and fiddling with the code. That, combined with the changes now in Vento v1.12.13 and Eleventy 4.0.1-alpha.1 yielded this error message:
[11ty] Problem writing Eleventy templates:
[11ty] 1. Having trouble rendering vto template ./src/tags.vto (via TemplateContentRenderError)
[11ty] 2. Error in template src/tags.vto:1:2
[11ty]
[11ty] <empty file>
[11ty]
[11ty] (via TemplateError) (via TemplateError)
[11ty] 3. Error in template src/components/postlist.vto:7:92
[11ty]
[11ty]
 slugify }}">
[11ty]
[11ty] (via TransformError) (via TemplateError)
[11ty] 4. [meriyah] [22:13-22:18]: Await is only valid in async functions while parsing compiled template function:
[11ty]
[11ty] 22 __output += (await __env.filters.slugify.call({data:it,env:__env}, post.data.title)) ?? "";
[11ty]              ^ (via TransformError)
[11ty]
[11ty] Original error stack trace: TransformError: [meriyah] [22:13-22:18]: Await is only valid in async functions while parsing compiled template function:
[11ty]
[11ty] 22 __output += (await __env.filters.slugify.call({data:it,env:__env}, post.data.title)) ?? "";
[11ty]              ^
[11ty]     at transformTemplateCode (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/node_modules/.pnpm/ventojs@1.12.13/node_modules/ventojs/esm/src/transformer.js:114:15)
[11ty]     at Environment.compile (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/node_modules/.pnpm/ventojs@1.12.13/node_modules/ventojs/esm/src/environment.js:48:24)
[11ty]     at Environment.load (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/node_modules/.pnpm/ventojs@1.12.13/node_modules/ventojs/esm/src/environment.js:99:35)
[11ty]     at async Environment.run (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/node_modules/.pnpm/ventojs@1.12.13/node_modules/ventojs/esm/src/environment.js:19:26)
[11ty]     at async eval (eval at compile (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/node_modules/.pnpm/ventojs@1.12.13/node_modules/ventojs/esm/src/environment.js:57:29), <anonymous>:10:28)
[11ty]     at async renderVentoTemplate (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/dist/plugin.js:122:23)
[11ty]     at async Object.<anonymous> (file:///Users/noel/Developer/projects/tools/eleventy-plugin-vento/dist/plugin.js:224:30)
[11ty]     at async Template._render (file:///Users/noel/Developer/projects/external/uncenter.dev/node_modules/.pnpm/@11ty+eleventy@3.0.1-alpha.1/node_modules/@11ty/eleventy/src/TemplateContent.js:586:19)
[11ty]     at async file:///Users/noel/Developer/projects/external/uncenter.dev/node_modules/.pnpm/@11ty+eleventy@3.0.1-alpha.1/node_modules/@11ty/eleventy/src/TemplateMap.js:555:8
[11ty]     at async file:///Users/noel/Developer/projects/external/uncenter.dev/node_modules/.pnpm/p-map@7.0.3/node_modules/p-map/index.js:121:20
[11ty] Copied 13 Wrote 0 files in 3.40 seconds (v3.0.1-alpha.1)
 ELIFECYCLE  Command failed with exit code 1.

At last, we have a good trace of the error chain. This plugin wraps all Eleventy filters in async functions, so this:
{{ post.data.title |> slugify }}

becomes this:
__output += (await __env.filters.slugify.call({data:it,env:__env}, post.data.title)) ?? "";

Because postlist.vto exports a regular function that includes an async filter, the error gets thrown. Couple of ways we can resolve this:

You could update postlist.vto and any other components that use filters in this way to be async-friendly:

- {{ export function PostList(posts) }}
+ {{ export async function PostList(posts) }}

I can patch the code introduced to resolve #72 so that non-async functions aren't converted, which I'll probably do anyway to avoid any further unexpected behavior.

If there's another way I haven't mentioned that you think would be better used to solve this, let me know!

Ok, progress. Unfortunately, it seems that even when addFilter has an async callback, the resulting filter that exists in Eleventy's filters.universal object is a synchronous function:

It's a shame, since Vento has the ability to identify if a filter is an instance of AsyncFunction and await it automatically in the resulting code, even though it maybe makes things more abstract.
I would rather not coerce all filters to be sync-by-default and then have to force {{ value |> await asyncFilter }} patterns over everyone's templates, but it looks like that might be the cleanest solution so far...

Sorry for the delayed response, thank you for taking the time to look into it further!
I wonder if Eleventy could add methods for extracting only synchronous or asynchronous filters? Such as eleventyConfig.getSyncFilters() and eleventyConfig.getAsyncFilters()? Then it would be possible to handle this better I think.

Perhaps? I dig a bit more digging to confirm I understood await properly. Even if async filters get wrapped in sync functions by Eleventy it shouldn't matter when using {{ dataValue |> await myFilter }}.
As I understand it, if myFilter is async, then what happens is:

The sync wrapper function returns a call to the async filter function
The async filter function returns a Promise, either inherintly because it's declared with async or it returns a Promise explicitly.
The Promise gets passed to the wrapper, and then back to the template.

Behavior shouldn't change, it just means that if you use async filters in your Eleventy config, you'll have to remember to use await syntax when calling the filter in your template is all.


bundle check should fail when missing git dependency after bundle package --all

bundle package --all
rm -rf vendor/cache/something-sha
bundle check
The Gemfile's dependencies are satisfied

expected behavior: bundle check should read bundle config and tell me that something-sha is missing

workaround is to use BUNDLE_PATH=vendor/bundle bundle check

ok ... so even this does not work when a .gem is missing ... I'm out of ides ...

@indirect any idea what the proper solution is ?

bundle package --all
rm vendor/cache/something.gem
BUNDLE_CACHE_ALL=true BUNDLE_PATH=/dev/null bundle check
The Gemfile's dependencies are satisfied

solving this via bundle_package_check for the meantime ...

I believe there were some changes to bundle package and git dependencies recently, so this issue may be resolved already

still some on 1.12.5

I'm working on this ;)

For this issue, I want to mention that currently the check is based on Gemfile.lock, that means whenever a user runs bundle package, Gemfile.lock will not be changed - and that is expected. So when we look from Gemfile.lock, we can't decide whether it was packaged or not.
So maybe we need add logic to check if /vendor/cache exists?

But on a second thought, if a user deletes /vendor/cache, we don't have this evidence.
Maybe we need other evidence?

@grosser bundle check doesn't care at all about your sources, it only cares about when gems you have installed. bundle package builds a directory that can function as a source. The only command that currently checks to see if the available sources are able to provide the gems needed for install is running bundle install itself.
This is definitely not a bug, but it could be a feature request for bundle package --check or something like that. @grosser, can you explain more about why you want this, and why you think it would be useful to build into Bundler?

what use is bundle check if it does not 'check' that I can install ?
On Tue, Jul 12, 2016 at 4:41 PM, André Arko<EMAIL_ADDRESS>wrote:

@grosser https://github.com/grosser bundle check doesn't care at all
about your sources, it only cares about when gems you have installed. bundle
package builds a directory that can function as a source. The only
command that currently checks to see if the available sources are able to
provide the gems needed for install is running bundle install itself.
This is definitely not a bug, but it could be a feature request for bundle
package --check or something like that. @grosser
https://github.com/grosser, can you explain more about why you want
this, and why you think it would be useful to build into Bundler?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bundler/bundler/issues/3344#issuecomment-232214168,
or mute the thread
https://github.com/notifications/unsubscribe/AAAsZxsGoN41S8ISSe7CiDV86Nh4SMTxks5qVCYVgaJpZM4DQnmY
.

@grosser I feel like "Checks if the dependencies listed in Gemfile are satisfied by currently installed gems" is pretty clear about what it does, and about how that has nothing to do with checking sources or potentially installable gems. Do you think there is other language that would be clearer? There's more in the docs for check: http://bundler.io/v1.12/bundle_check.html

One more time: can you explain more about why you want this, and why you think it would be useful to build into Bundler?

the git dependencies are not satisfied / installed ... so I think the check
should fail ... for me check means "I can bundle exec" and don't need to
install ... otherwise it's like a "some of the gems you need are installed"
... which is useless ... which is why I built then bundle_package_check ...
On Wed, Jul 13, 2016 at 12:01 AM, André Arko<EMAIL_ADDRESS>wrote:

@grosser https://github.com/grosser I feel like "Checks if the
dependencies listed in Gemfile are satisfied by currently installed gems"
is pretty clear about what it does, and about how that has nothing to do
with checking sources or potentially installable gems. Do you think there
is other language that would be clearer? There's more in the docs for
check: http://bundler.io/v1.12/bundle_check.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bundler/bundler/issues/3344#issuecomment-232272990,
or mute the thread
https://github.com/notifications/unsubscribe/AAAsZ1iOH5O0cxV9vrOGY4fjmurvDvoiks5qVI1bgaJpZM4DQnmY
.

Any feedback on this? @indirect

Just to make a note - I've added a failing test at https://github.com/allenzhao/bundler/tree/issue-3344

After looking into this, I believe bundler is behaving correctly. bundle package  (without any options passed) won't write anything into the bundler config, and thus with vendor/cache gone, it's completely valid for bundler to pull from the locally installed gems. If you delete those, bundle check will fail as expected.


How to use DSLocalForageAdapter

How can i use DSLocalForageAdapter with js-data-angular?
If i try to use as shown here http://www.js-data.io/docs/js-data-angular i get this:
Uncaught Error: [$injector:unpr] Unknown provider: DSLocalForageAdapterProvider <- DSLocalForageAdapterAdapter
After reading the code js-data-angular seems to only support DSHttpAdapter despite what the documentation is saying.

Since you provided no context (versions, example code, etc.) with which I could help you debug, I'm going to ask that you fork this plunker and use it to reproduce the issue you're seeing: http://plnkr.co/edit/XXlEKD?p=preview

Hi,
turns out i was using the exact same Versions you do. So i looked deeper and debugged what was happening during the provider registration.
I used something like this which didn't work (using browserify with babel etc.):
import angular from 'angular';
import 'js-data';
import 'js-data-localforage';
import 'js-data-angular';

window.app = angular.module('app', ['js-data']);
angular.module('app').config(['DSLocalForageAdapterProvider', function(DSLocalForageAdapterProvider){
}])

The import 'js-data-localforage' statement does not load the adapter in a way that js-data-angular can find it. Maybe it was foolish to think that these import statement are supported with browserify. I am new to this Webstuff
I solved it doing this:
window["DSLocalForageAdapter"] = require('js-data-localforage');
require('js-data-angular');

You could also do something like this:
...
import DSLocalForageAdapter from 'js-data-localforage'
import jsDataModuleName from 'js-data-angular'

angular.module('app', [jsDataModuleName])
.provider('DSLocalForageAdapter', function () {
  this.defaults = {}
  this.$get = () => new DSLocalForageAdapter(this.defaults)
})

Thank you for that insight. Works for me too and is cleaner.


Driver does not populate IPAddress field in BaseDriver struct

Elastic IP Address should be populated in the IPAddress field of the Driver struct. See https://github.com/docker/machine/blob/d889abc3528b09753746caaa79bb943bc835c20f/libmachine/drivers/base.go#L17.

make sense to me.
but Driver struct gets both  ElasticIPId and ElasticIP fields in it. these two fields seem related, it will be much more clear to put them together.
Any particular reason to use IPAddress?


Doesn't do map missions

Hi, as per the title using the latest script it doesn't seem to start map missions, it just looks at the map and then goes to the next function.
Any ideas why?
Using the resolution specified in the readme - Windows 10,  Steam version of the game.

Do you have the game in another language? The script starts the map missions by looking for the idle squads message at the bottom of the screen.

Will double check later today when i'll get my next map reset.

Something about the window size, actually checked what my game size is as I was unsure and turn out it ends up on 1920x1074, so if you stay on 1920x1080 it might go bad on coords/ image searches.

Hmm, it loops somewhere, please add me on discord for a bit of an easier debugging. discord.com/users/187582178606055424

Any other issue appearing for the rest of script? Last someone mentioned issue on map, return to main menu after gem confirmation didn't worked as well, and after the resolution "fix"(not sure how to properly make the script recognise a resolution to work only on that) that worked as well along with the map function.

Can you give it a try with this version? Not sure it would help much but tried something, there is a chance that the loop is fixed, but most likely it will run into map nodes issue https://github.com/Dandey/Firestone-bad-bot/releases/tag/Map-beta

It's most likely something related to resolution, that was also the reason it was ending on loop on closing, I'm surprised how the gem confirmation does not get skip instead of just going along with the normal flow of alchemist/ firestone instead of just closing, and not sure if i can somehow make the nodes scale along with the game
As i matter of fact this is how i make the game "ready" for the script as when i'm not scripting i'm keeping it small
https://github.com/Dandey/Firestone-bad-bot/assets/17856136/f4802308-7e0a-492d-a48e-0546cbf9488f

If this doesn't work I'm out of ideas, game will move alone on your main display( will have to look if I can make it remain on the display where the game was before starting the script)
https://github.com/Dandey/Firestone-bad-bot/releases/tag/Map-beta

Sorry for late reply, meant to get back earlier but wasn't able, I try every change I make for at least an hour so it could do twice a cycle of everything, sometime I overlook stuff so I come back with fixes

I think I might have a lead regarding this issue, someone that mentioned the same flow on discord was nice enough to help me a bit, and noticed that for some reasons sometimes the map screen have different coordinates(instead of 800-600 it was something like 900-1100), will have to look further into it to learn why it goes like that. May i ask if you have your windows in another language than english?

Not sure what could go wrong, only thing that I found that changes coords is the scale in windows(as I have made them on 100%) , not sure how it scales in case of monitor with higher resolution as I don't have to test it out

Multiple monitors setup? And if yes they are same resolution?

Nope, single monitor in use.
I have other monitors stored away that I could try; however, I don't think that would make a difference?

Yeah, probably wouldn't make any difference, will have to look more into it but no idea if i can figure it out

Hey there,
i just tried to record my "map loop/script not doing map mission" and this just happened... whatsoever.
I dont have a 1080p Screen - its happening via Steam and Epic Version - Windowssize: 1936x1056
recorded via Win10/11 Snippingtool (Win+Shift+S)
Any chance/idea to fix this? Im quite sure i do the have the wrong window size due to having "that bar" attached to the games window (Name... minimize, maximize, close)
https://streamable.com/4zxthy
Sorry record was too big for github and too long for imgur

Hey there,
i just tried to record my "map loop/script not doing map mission" and this just happened... whatsoever. I dont have a 1080p Screen - its happening via Steam and Epic Version - Windowssize: 1936x1056 recorded via Win10/11 Snippingtool (Win+Shift+S)
Any chance/idea to fix this? Im quite sure i do the have the wrong window size due to having "that bar" attached to the games window (Name... minimize, maximize, close) https://streamable.com/4zxthy
Sorry record was too big for github and too long for imgur

if the game is another resolution that the given one it would fail on some functions that have pixel/ image recognition and some functions like map that would need given coordinates to work


[AutoDiff] NFC: garden tests.

Move muliti-functionality SIL tests to test/AutoDiff/SIL.
I accidentally moved them to the wrong location (test/AutoDiff) in https://github.com/apple/swift/pull/30588, sorry.

In test/AutoDiff/SIL/differentiable_function_inst.sil: add with_derivative clause to differentiable_function instructions.
Otherwise, IRGen fails on tensorflow branch because the differentiation transform cannot differentiate external functions.

@swift-ci Please smoke test and merge

@swift-ci Please smoke test macOS

@swift-ci Please clean smoke test macOS

@swift-ci Please smoke test macOS


Best practice for relations

I'm submitting a...

[x] Question regarding relations

Current behavior
all the documentation currently describes a 1:1 map of models and tables. If you were to have a customer->orders-orderline->[product, user, state] what would be the best practice for Akita ?
Should we have a store per model - how would you then link the relations together ? Is that done in the service - so should the customer service use the order service, or should it create a method to get the orders of the customer

It depends. Can you give me an example of how the data returns from the server?

at the moment, I can make a query that "includes" the relation. so I would get
{name: 'abc inc', address: 'somewhere', orders: [{ordernum: 123, orderlines: [{}...]}}
or I can exclude the relations and make three requests, one for customer, one for orders of customer, and 1..n for orderlines of each order
so I'm just trying to figure out what the best solution would be.
Also, is there any built-in caching ?

The best practice is to keep your state flat as possible and use derived selector. Always think about your state as a database. There are good examples in the official redux docs that can help you with that.
I'm not sure what do you mean by saying caching. If you have the data in the store, there is no need to make an additional request.
I encourage you to go over the shopping cart example.
If you have any further question, tell me.