K8SPS-244: Restart router pods on user created config CM change

CHANGE DESCRIPTION
Problem:
When the config is provided with user-created mysql config with <cluster-name>-mysql config map, mysql pods are not restarted.
Solution:
Add/update percona.com/configuration-hash on user-created CM change.
Note: This PR handles https://jira.percona.com/browse/K8SPS-278 as well since it is basically the same thing just for MySQL pods.
CHECKLIST
Jira

[x] Is the Jira ticket created and referenced properly?
[x] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[x] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[x] Is an E2E test/test case added for the new feature/change?
[x] Are unit tests added where appropriate?

Config/Logging/Testability

[x] Are all needed new/changed options added to default YAML files?
[x] Are the manifests (crd/bundle) regenerated if needed?
[x] Did we add proper logging messages for operator actions?
[x] Did we ensure compatibility with the previous version or cluster upgrade process?
[x] Does the change support oldest and newest supported PS version?
[x] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/34f8086c0daf783247d5ed4a0f3ec2387225acdf
image: perconalab/percona-server-mysql-operator:PR-381-34f8086

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
failure

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/d4a2fa5ce5c930d970cd3299dc89fc3b7b73250d
image: perconalab/percona-server-mysql-operator:PR-381-d4a2fa5

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/52dd80a1608fecfe572769dba8489fcf27a51fc3
image: perconalab/percona-server-mysql-operator:PR-381-52dd80a

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/52dd80a1608fecfe572769dba8489fcf27a51fc3
image: perconalab/percona-server-mysql-operator:PR-381-52dd80a

Test name
Status

async-ignore-annotations
passed

auto-config
failure

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/d9ef134359002df7452fbfbcc6e38705c9f7e214
image: perconalab/percona-server-mysql-operator:PR-381-d9ef134

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/d9ef134359002df7452fbfbcc6e38705c9f7e214
image: perconalab/percona-server-mysql-operator:PR-381-d9ef134

Test name
Status

async-ignore-annotations
passed

auto-config
failure

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
failure

sidecars
failure

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/f305d44e8eca1b9245974a3219beceb5d0d5e219
image: perconalab/percona-server-mysql-operator:PR-381-f305d44

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/6ddc04f73f655728680d76bbef46c2793fc26959
image: perconalab/percona-server-mysql-operator:PR-381-6ddc04f

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
failure

config-router
failure

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/0c79c50f7995943f3e21439e5d3712df04a50184
image: perconalab/percona-server-mysql-operator:PR-381-0c79c50

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
failure

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/6ff701da0387f8bf971cde06c8444d504d26549c
image: perconalab/percona-server-mysql-operator:PR-381-6ff701d

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/381/commits/ee179d9c82254d7d8257e2482036ba2ff4ca6354
image: perconalab/percona-server-mysql-operator:PR-381-ee179d9


python3Packages.aws-sam-translator: 1.60.1 -> 1.72.0

https://github.com/aws/serverless-application-model/releases/tag/v1.72.0
Description of changes
https://github.com/aws/serverless-application-model/compare/v1.60.1...v1.72.0

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2488


Fix a typo in the issue template

Coverage remained the same at 100.0% when pulling 4c3e0aeb6d76123cee1d77e2b3b1d64efe9f39fd on Calinou:fix-typo-in-issue-template into 2edaebb6793ac52527cea42e5e57c00693f60168 on glennjones:master.


Use prepopulated array for filesystem checks

This will make require() much faster since it won't have to use the Ti.Filesystem APIs which turn out to be extremely slow on Android (#22). The idea would be to find a way to use the same method as the encryptedFiles array for device builds, but find a way to do it for all builds.

Do you mind pointing me in the right direction to find usages of encryptedFiles?  I have been using a modified version of your library for almost a year now (and LOVE it!) on iOS and MobileWeb but have just now started using it on Android.  I hit the performance wall on Android and need to find a solution or workaround for the issue.   I have a few ideas but not sure they are the best way to tackle the problem.  Thanks!!

I see the encryptedFiles in this project and will start from there.  For some reason, I was thinking it was a reference to something in the titanium_mobile or alloy projects.


include raw data in searchEntry response

This adds the ability to resolve a problem if you have a thumbnailPhoto or jpegPhoto on an account. The data.object provides the attribute in a string format that doesn't seem to want to convert to a usable image. (If anybody knows a way to use the object version I would love to find out how)
const { _raw, ...object } = await ldap.get(userDn)
// This doesn't work
// const jpegPhotoRawBuffer = Buffer.from(object.jpegPhoto)
const jpegPhotoRawBuffer = Buffer.from(_raw.jpegPhoto)
const user = {
  ...object,
  jpegPhoto: `data:image/jpeg;base64,${jpegPhotoRawBuffer.toString('base64')}`,
}

ldapjs/node-ldapjs#107
ldapjs/node-ldapjs#290
There may be a more elegant solution, open to other options but would be awesome to get access to the raw data for this scenario.

Thanks!


ISPN-14294 Add counter set operation to REST

https://issues.redhat.com/browse/ISPN-14294

merged! thanks @dpanshug
(failures seem unrelated)


Potential Bug in JSMA implementation

When calling generate for a JSMA attack (saliency_map.py), after a single interation, the all_feat array is supposed to be updated for the two pixels that were chosen based on the map. Currently, it is implemented as:
# Update used features
 all_feat[active_indices][np.arange(len(active_indices)), feat_ind[:, 0]] = 1
all_feat[active_indices][np.arange(len(active_indices)), feat_ind[:, 1]] = 1

However, the actual array doesn't seem to be updated. I implemented the same function directly and found that printing all_feat seems to show the same before and after state of all 0's.
Furthermore, changing gamma from 1 to a very small number (such as 0.00000001) doesn't have an effect on the attack. It still runs until it finds a successful perturbation, thus ignoring gamma. This seems to be due to the fact that all_feat is always all 0's so the sum is never greater than gamma.
I'd expect that the attack would stop either when it finds a successful attack or if the # of modified pixels > gamma.

Hi @keykholt, Thank you for using ART and raising this issue! Could you please provide information about the library versions you are using (ART, TensorFlow, Keras, etc.)? If possible could you show us a short script on how to reproduce this issue?
Would you be interested to investigate and implement a possible solution?

Using ART version 1.0. Here is an example on MNIST for a single input.
import warnings
warnings.filterwarnings('ignore')
from keras.models import load_model
from art import DATA_PATH
from art.utils import load_dataset, get_file
from art.classifiers import KerasClassifier
import numpy as np

(x_train, y_train), (x_test, y_test), min_, max_ = load_dataset('mnist')
path = get_file('mnist_cnn_original.h5', extract=False, path=DATA_PATH,
                url='https://www.dropbox.com/s/p2nyzne9chcerid/mnist_cnn_original.h5?dl=1')
classifier_model = load_model(path)
classifier = KerasClassifier(clip_values=(min_, max_), model=classifier_model, use_logits=False)
from art.attacks import SaliencyMapMethod

#First we try with gamma=1, this means that the attack should run until it fools the classifier or uses all of the features
print("--------- Gamma = 1 ---------------")
print("Original Predicted Label:", np.argmax(classifier.predict(np.array([x_test[0]])),axis=1))
attack = SaliencyMapMethod(classifier=classifier, gamma=1)
x_adv = attack.generate(np.array([x_test[0]]), y=np.array([9]))
print("Adv Predicted Label:", np.argmax(classifier.predict(x_adv[:2]),axis=1))
print("Number of features changed", np.sum(np.array(x_adv[0],dtype=np.float32) != np.array(x_test[0],dtype=np.float32)))

#Now we set gamma to a very small value (close to 0). It should stop after the first iteration
print("--------- Gamma = 0.0000000000001 ---------------")
print("Original Predicted Label:", np.argmax(classifier.predict(np.array([x_test[0]])),axis=1))
attack = SaliencyMapMethod(classifier=classifier, gamma=.0000000000001)
x_adv = attack.generate(np.array([x_test[0]]), y=np.array([9]))
print("Adv Predicted Label:", np.argmax(classifier.predict(x_adv[:2]),axis=1))
print("Number of features changed", np.sum(np.array(x_adv[0],dtype=np.float32) != np.array(x_test[0],dtype=np.float32)))

Running the above code, I get the same number of features changed despite setting one of the gamma's close to 0. If I add print("Selected Features:", feat_ind, "all_feat sum:", np.sum(all_feat)) to line 125 of saliency_map.py, I see that the sum is always 0.
What worked for me was to change  123-124 from:
all_feat[active_indices][np.arange(len(active_indices)), feat_ind[:, 0]] = 1
all_feat[active_indices][np.arange(len(active_indices)), feat_ind[:, 1]] = 1

to
all_feat[active_indices, feat_ind[:, 0]] = 1
all_feat[active_indices, feat_ind[:, 1]] = 1

Hi @keykholt The proposed changes look good to me. Could you please make a fork and a pull request for these changes to branch dev_1.1.0?


Fix the latest nightly warnings

This depends upon the nightly breakage fixes.

Thank you for your interest, but this issue has been fixed.


network/OutboundNatRulePropertiesFormat: Changed fieldname to singular as its type and description suggests.

As @brendandixon was kind enough to point out; there was some sort of irregularity with the specifications of this OutboundNatRulePropertiesFormat field.
It's type is an int exactly as its description hints, but the name of the field is a plural.
In hopes that the type and description are to be trusted, this PR changes the field's name to its singular form, and also removes some trailing spaces and adds a new line at EOF.

Hi @aznashwan, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


when using "handler.reject(error);" in onError of interceptors, I cannot DioException in .catchError(), but find it in .then().

Package
dio
Version
5.5.0+1
Operating-System
Android, Web
Adapter
Default Dio
Output of flutter doctor -v
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [版本 10.0.22631.3880], locale zh-CN)
    • Flutter version 3.22.2 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (7 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\14732\AppData\Local\Android\sdk
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] Connected device (3 available)
    • XIAOMI(mobile)    • <IP_ADDRESS>:8888 • android-arm64  • Android 12 (API 32)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [版本 10.0.22631.3880]
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 126.0.2592.113

Dart Version
No response
Steps to Reproduce
// in dio_request.dart
_dio.interceptors.add(
InterceptorsWrapper(
onRequest: (RequestOptions options, RequestInterceptorHandler handler) {
return handler.next(options);
},
onResponse: (Response response, ResponseInterceptorHandler handler) {
print(1111);
return handler.next(response);
},
onError: (DioException error, ErrorInterceptorHandler handler) {
print(2222);
return handler.reject(error);
},
),
);
// in login.dart
await Request().request("/login", method: DioMethod.post, data: {
"account": data['username'],
"password": data['password'],
}).then((res){
print(3333);
print(response is DioException);      // the actual result is ture
}).catchError((e){
print(4444);
print(e);
});
Expected Result
when I write "return handler.reject(error);"  in onError of interceptors, I can find the DioException in ".catchError()",
When the error.response,statuscode returned by the server is 400, the print execution order:  2222     4444
Actual Result
when I write "return handler.reject(error);" in onError of interceptors, I can find the DioException in ".then()".
The print execution order:  2222  1111

Please provide a minimal reproducible example.

received
小David
@.***

------------------ 原始邮件 ------------------
发件人: "Alex @.>;
发送时间: 2024年10月7日(星期一) 上午10:16
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [cfug/dio] when using "handler.reject(error);" in onError of interceptors, I cannot DioException in .catchError(), but find it in .then(). (Issue #2273)
Closed #2273 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


ViT-B/16 pre-computed embeddings?

Since you have the ViT-B/16 aesthetic model, was just wondering whether you would have the ViT-B/16 pre-computed embeddings too

I don't have ViT-B/16 embeddings over laion2b or laion400m so I would need to compute some (10M is enough to do that aggregation)
Is B/16 useful?

It would be. I have already hooked the ViT-B/32 and 14 embeddings to Majesty Diffusion, and ViT-B/16 is very useful on image generation as it's still one of the most used for quality vs. vram usage purposes

Ok will get that


[feat] Declarative interface for Clace configuration

Currently, Clace apps are created using a CLI interface. An UI interface to manage Clace apps will be added later. For complex installations, a declarative interface is required. The intent is to avoid ClickOps/ShellOps.
The declarative interface should be readable, expressive, idempotent and git compatible (diffable text format). Modularity, reusability, support for variables and parameters are other criteria to consider. Interoperability with CLI and UI is another consideration.

The various config formats already in use in Clace are

TOML files (for server config)
JSON files (for lock file)
Starlark config (for app definition)
Go Template (for HTML templating)

The other options are YAML and a domain specific language (like HCL).
Clace has a CLI interface which can be considered a DSL. Using the CLI command as declarative interface will mean something like

A way to export the current state, which generates a text file will the app create commands for all the apps. All options needs to be present in the output. The output should be sorted by app name and options also need to be sorted (for diffability)
A way to import a state file. The create commands will figure out the diff which needs to be applied and do just that. If there no change required, the import is a no-op.

Further considerations for the CLI DSL option

The text file could be a go template which resolves to the CLI DSL. That enables some modularization and parameter support. The downside is that a exported state file cannot be easily diffed with the template file
Comment support would be good to have, but that also has the issue that a exported state file will not be diffable with commented state file. A complex option would be to figured out the comments and somehow retain them in the export output.
The export should have the exact git version of the version each app is at. Import should maybe have a option to restore to exact version or stay on the latest version on the branch.
The implication of combining CLI/UI based updates with export/import have to be considered.

If there are five apps installed, and an import is done with a state file having three of those apps, what should happen to the two apps missing in the state file. Should they be deleted? Most probably not. An separate cleanup command to delete such apps would be safer.


Add btl_vader_single_copy_mechanism MPI flag to fv3run

This PR adds the flag --mca btl_vader_single_copy_mechanism none to mpirun in fv3run. It prevents a certain "error" message from being printed repeatedly when the model runs. The error does not affect output, and currently appears so often it is difficult to read the log file.

No, I do not know. It seemed to me that the only change was the "error" message doesn't print when I was trying with and without in September.


Javanica: requestLog.enabled property is not respected in AbstractCommand

When using Javanica, command properties are not passed to the constructor of AbstractCommand and therefore all default values are used there. In particular the requestLog.enabled is always evaluated to true here: https://github.com/Netflix/Hystrix/blob/master/hystrix-core/src/main/java/com/netflix/hystrix/AbstractCommand.java#L263
This breaks the feature that was implemented in https://github.com/Netflix/Hystrix/pull/724
First the super() constructor is called and only then commandProperties are set: https://github.com/Netflix/Hystrix/blob/master/hystrix-contrib/hystrix-javanica/src/main/java/com/netflix/hystrix/contrib/javanica/command/AbstractHystrixCommand.java#L55-L57

@dmgcodevil Any thoughts on this one?

Hi @chornyi
Yes, I hear you man. I think the reason why I implemented setting properties using
ConfigurationManager.getConfigInstance().setProperty
because the fields
protected HystrixCommandProperties.Setter commandPropertiesDefaults;
protected HystrixThreadPoolProperties.Setter threadPoolPropertiesDefaults;

weren't in Setter class at that moment and were added latter, I don't know when those fields were added exactly, but looks like using ConfigurationManager.getConfigInstance().setProperty isn't good idea because some properties used when command constructor invoked. I'll fix this

@mattrjacobs please close this issue


[BUG]: Docker Vite Build Segmentation Fault on macOS

How are you running AnythingLLM?
Docker (local)
What happened?
Tried installing Docker as described in readme, both the simplified and build from source method. Segmentation fault with yarn when trying to build Vite. Host is iMac (Intel) running macOS 14.4.1 with Docker Desktop 4.29.0
➜  docker git:(master) docker compose up -d --build
WARN[0000] /Users/jon/Sites/anything-llm/docker/docker-compose.yml: `version` is obsolete
[+] Building 89.6s (24/37)                                                                                docker:desktop-linux
 => [anything-llm internal] load build definition from Dockerfile                                                                       0.0s
 => => transferring dockerfile: 7.21kB                                                                                0.0s
 => [anything-llm internal] load metadata for docker.io/library/ubuntu:jammy-20230916                                                   1.4s
 => [anything-llm internal] load .dockerignore                                                                                0.0s
 => => transferring context: 418B                                                                                0.0s
 => [anything-llm base 1/1] FROM docker.io/library/ubuntu:jammy-20230916@sha256:9b8dec3bf938bc80fbe758d856e96fdfab5f56c39d44b0cff351e8  0.0s
 => => resolve docker.io/library/ubuntu:jammy-20230916@sha256:9b8dec3bf938bc80fbe758d856e96fdfab5f56c39d44b0cff351e847bb1b01ea          0.0s
 => => sha256:9b8dec3bf938bc80fbe758d856e96fdfab5f56c39d44b0cff351e847bb1b01ea 1.13kB / 1.13kB                                          0.0s
 => => sha256:b4b521bfcec90b11d2869e00fe1f2380c21cbfcd799ee35df8bd7ac09e6f63ea 424B / 424B                                              0.0s
 => => sha256:3565a89d9e81a4cb4cb2b0d947c7c11227a3f358dc216d19fc54bfd77cd5b542 2.30kB / 2.30kB                                          0.0s
 => [anything-llm internal] load build context                                                                                0.1s
 => => transferring context: 4.82MB                                                                                0.1s
 => [anything-llm build-amd64 1/7] RUN echo "Preparing build of AnythingLLM image for non-ARM architecture"                             0.3s
 => [anything-llm build-amd64 2/7] RUN DEBIAN_FRONTEND=noninteractive apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get in  40.5s
 => [anything-llm build-amd64 3/7] RUN groupadd -g "1000" anythingllm &&     useradd -l -u "1000" -m -d /app -s /bin/bash -g anythingl  0.2s
 => [anything-llm build-amd64 4/7] COPY ./docker/docker-entrypoint.sh /usr/local/bin/                                                   0.2s
 => [anything-llm build-amd64 5/7] COPY ./docker/docker-healthcheck.sh /usr/local/bin/                                                  0.0s
 => [anything-llm build-amd64 6/7] COPY --chown=anythingllm:anythingllm ./docker/.env.example /app/server/.env                          0.0s
 => [anything-llm build-amd64 7/7] RUN chmod +x /usr/local/bin/docker-entrypoint.sh &&     chmod +x /usr/local/bin/docker-healthcheck.  0.2s
 => [anything-llm build 1/2] RUN echo "Running common build flow of AnythingLLM image for all architectures"                            0.2s
 => [anything-llm build 2/2] WORKDIR /app                                                                                0.0s
 => [anything-llm server-deps 1/7] COPY ./server/package.json ./server/yarn.lock ./server/                                              0.0s
 => [anything-llm frontend-deps 1/4] COPY ./frontend/package.json ./frontend/yarn.lock ./frontend/                                      0.0s
 => [anything-llm server-deps 2/7] WORKDIR /app/server                                                                                0.0s
 => [anything-llm frontend-deps 2/4] WORKDIR /app/frontend                                                                              0.0s
 => CANCELED [anything-llm server-deps 3/7] RUN yarn install --production --network-timeout 100000 && yarn cache clean                 46.3s
 => [anything-llm frontend-deps 3/4] RUN yarn install --network-timeout 100000 && yarn cache clean                                     44.6s
 => [anything-llm frontend-deps 4/4] WORKDIR /app                                                                                0.1s
 => [anything-llm build-stage 1/4] COPY ./frontend/ ./frontend/                                                                         0.1s
 => [anything-llm build-stage 2/4] WORKDIR /app/frontend                                                                                0.0s
 => ERROR [anything-llm build-stage 3/4] RUN yarn build && yarn cache clean                                                             0.7s
------
 > [anything-llm build-stage 3/4] RUN yarn build && yarn cache clean:
0.374 yarn run v1.22.19
0.399 $ vite build
0.476 Segmentation fault
0.485 error Command failed with exit code 139.
0.485 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
failed to solve: process "/bin/bash -o pipefail -c yarn build && yarn cache clean" did not complete successfully: exit code: 139
➜  docker git:(master)

Are there known steps to reproduce?
Follow instructions on https://github.com/Mintplex-Labs/anything-llm/blob/master/docker/HOW_TO_USE_DOCKER.md

git clone this repo and cd anything-llm to get to the root directory.
touch server/storage/anythingllm.db to create empty SQLite DB file.
cd docker/
cp .env.example .env you must do this before building
docker-compose up -d --build to build the image - this will take a few moments.

No related to code we wrote - seems to be an odd thing people encounter but our builds are completing, so if this was a systemic thing resulting from the code-change we made we would see on everything. We local dev on mac as well
https://github.com/vitest-dev/vitest/issues/317

For anyone else who runs into this issue, the fix was released in Docker v4.30.0 and is applicable with Docker run on x86_64 macOS.


Remove "Playlist not yet implemented" message

...because it is 🎉

I had totally forgotten! Thanks!!!


Issue deploying website to Azure Web Apps

Does this occur consistently?
Repro steps:
I initiated the deploy from Visual Studio Code for Mac

Action: appService.Deploy
Error type: 400
Error Message: redacted:id BadRequest
Version: 0.24.9
OS: darwin
OS Release: 22.5.0
Product: Visual Studio Code
Product Version: 1.78.2
Language: en

Call Stack
new RestError extension.bundle.js:2:1709073
extension.bundle.js:2:1696547

Please fill out the information requested in the issue description.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


How to know ledger's model? Nano S or Blue…

how to get connected devices' info?

https://github.com/LedgerHQ/ledger-node-js-api/blob/master/examples/node-device-info.js

@will123195 Thanks


Text for link from Design System pages to Github threads

All the Design System pages have a link at the bottom

Share your research or feedback on GitHub

That is not the reason I and others use the link. Often we are looking for insights into why the pattern is what it is. The discussion on GitHub is fantastic for that. I suspect many never realise the rich seam of information that is there.
The usefulness of mentioning GitHub in the link text is also questionable.
The link text should cater for this use case and advertise the resource.
While the current text is valid, some suggestions on Slack include additional/different text such as:

See the rationale and how this pattern has been developed
See what people are saying about this pattern or ask a question.
Discussion about [thing] pattern?

Just adding that 3 other users indicated they agreed this is an issue

The bullet text "share your research or feedback on GitHub" also appears on the component pages, as well as on the pattern pages.
In all cases, it's prefaced by the stem sentence "To help make sure that this page is useful, relevant and up to date, you can". We'd probably want the updated text to follow on from that, both as a sentence and to reflect the point made in the stem, i.e., that we're looking for user input to improve the page.
So, maybe something like "take part in the [name of component or pattern]".

I don't see the 'Help improve this page' content in any of the individual component/pattern files. Is this because there's one file somewhere, from where this generic content is extracted for display across multiple pages?

Ok, so the 'Help improve this page' content is in one file, from where we extract it for display across multiple pages.
Maybe that suggests we should keep the update generic - "take part in the discussion"? Or "take part in the discussion on its development" (unless that could make users think that "its" refers to the page, not the component/pattern)?

Just so you know @EoinShaughnessy, you can use Nunjucks variables to pass information like the name of the page into a sentence. So if you made it say something like share your research or feedback about {{ title }} on GitHub it will include the title from each particular page. You can use any of those bits of information at the top of each page's markdown file – so the description or section might be useful too, depends what you want to say. Might not be the right content anyway but gives you more options 🙂

@christopherthomasdesign I didn't know that - thanks, v useful to know!

Defo a good idea, we've been working to encourage more people to get into the Github pages.
As @EoinShaughnessy says, changing the bullet point around "discuss" sounds good to me!
Maybe something like (though it might be slightly long?):

To help make sure that this page is useful, relevant and up to date, you can:

take part in the [name of component or pattern] discussion on Github and share your research

@jbuller Thanks for reporting this issue! We've put in a fix for it.

Thanks both!
I'm putting in a reminder to Google Analytics in a month's time and see if we see any difference on external links to GitHub issues pages.

Was there an impact of this change that can be discerned?


albert: 0.8.10 -> 0.8.11

Motivation for this change
Update albert to latest version.
Include also a small meta cleanup.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Passed nox-review locally.

Thanks for merging!


Fixes memory leak and reference release issues...

Closes #102
Closes #103

@tingshao PTAL

Merge it.


run-vcpkg's vcpkg.exe no longer being picked up by MSBuild/Visual Studio even with vcpkg integrate install

Something changed in the last week, maybe in the os image, maybe something else, which broke how run-vcpkg was setting up the custom vcpkg checkout.
The 'good' setup would end up with vcpkg.exe from run-vcpkg being picked up automatically by msbuilds. Eg. [https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/3286865811/jobs/5415429788#step:15:61
         "D:\a\Cataclysm-DDA\b\vcpkg\vcpkg.exe" install "--host-triplet=x64-windows-static" --x-wait-for-lock --triplet "x64-windows-static" --vcpkg-root "D:\a\Cataclysm-DDA\b\vcpkg\\" "--x-manifest-root=D:\a\Cataclysm-DDA\Cataclysm-DDA\msvc-full-features\\" "--x-install-root=D:\a\Cataclysm-DDA\Cataclysm-DDA\msvc-full-features\vcpkg_installed\x64-windows-static\\" --clean-after-build

Whereas now we get https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/3290143305/jobs/5422607241#step:15:62
         "C:\vcpkg\vcpkg.exe" install "--host-triplet=x64-windows-static" --x-wait-for-lock --triplet "x64-windows-static" --vcpkg-root "C:\vcpkg\\" "--x-manifest-root=D:\a\Cataclysm-DDA\Cataclysm-DDA\msvc-full-features\\" "--x-install-root=D:\a\Cataclysm-DDA\Cataclysm-DDA\msvc-full-features\vcpkg_installed\x64-windows-static\\" --clean-after-build

Our workflows are pinned to<EMAIL_ADDRESS>so we didn't pick up an automatic update to the action.
The only difference I can see is in the vcpkg integrate install step there is now this output https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/3290143305/jobs/5422607241#step:6:11
warning: Ignoring VCPKG_ROOT environment variable; use --vcpkg-root "D:\a\Cataclysm-DDA\b\vcpkg" to use the environment value or unset the VCPKG_ROOT environment variable to suppress this message. Using detected vcpkg root: "C:\vcpkg".

So I will work around the issue by manually specifying that in our vcpkg integrate install command. However, I'm still filing this issue for awareness and to see if there is anything run-vcpkg maintainers think should be handled by the action itself.

@akrieger thanks for reporting this. The root of the problem is that accidentally the GH runner deployed recently had the  VCPKG_ROOT variable defined, and the change will be soon reverted, but not yet. Your best fix is to unset the variable as I've done here for example:
https://github.com/lukka/run-cmake/blob/main/.github/workflows/build-test.yml#L53
where the variable is undefined for the whole job.
Could you please link your workflow file? As far as I remember run-vcpkg redefines the VCPKG_ROOT variable.

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/.github/workflows/release.yml#L226-L241
run-vcpkg does redefine it. vcpkg.exe from the base image is now ignoring it.

Working builds:
Run vcpkg integrate install
  vcpkg integrate install
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    GITHUB_TOKEN: ***
    ZSTD_CLEVEL: 17
    VCPKG_DEFAULT_BINARY_CACHE: D:/a/Cataclysm-DDA/b/vcpkg_cache
    RUNVCPKG_VCPKG_ROOT: D:\a\Cataclysm-DDA\b\vcpkg
    VCPKG_ROOT: D:\a\Cataclysm-DDA\b\vcpkg
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=D:/a/Cataclysm-DDA/b/vcpkg/scripts/buildsystems/vcpkg.cmake"

All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.

Broken builds:
Run vcpkg integrate install
  vcpkg integrate install
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    GITHUB_TOKEN: ***
    ZSTD_CLEVEL: 17
    VCPKG_DEFAULT_BINARY_CACHE: D:/a/Cataclysm-DDA/b/vcpkg_cache
    RUNVCPKG_VCPKG_ROOT: D:\a\Cataclysm-DDA\b\vcpkg
    VCPKG_ROOT: D:\a\Cataclysm-DDA\b\vcpkg
warning: Ignoring VCPKG_ROOT environment variable; use --vcpkg-root "D:\a\Cataclysm-DDA\b\vcpkg" to use the environment value or unset the VCPKG_ROOT environment variable to suppress this message. Using detected vcpkg root: "C:\vcpkg".
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"

All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.

Only difference in output is that warning: Ignoring ... output.

@akrieger thank you for the additional data! It occurs to me that you are using the executable at c:\vcpkg\vcpkg.exe when running the integration install command, while the VCPKG_ROOT is pointing to another directory (d:\a\cataclysm\dda\b\vcpkg\). If you modify your workflow to use the vcpkg.exe from the VCPKG_ROOT directory it should just work, i.e.:
${{ runner.workspace }}/b/vcpkg/vcpkg.exe integrate install --vcpkg-root '${{ runner.workspace }}\b\vcpkg'
or
$VCPKG_ROOT/vcpkg.exe integrate install
should be working.
I think I may ponder whether adding the provisioned vcpkg executable to the PATH is a good idea.

The vcpkg location is added to PATH from run-vcpkg@v11, i.e.: https://github.com/lukka/run-vcpkg/releases/tag/v11.0


Uncaught TypeError: e.target.getBoundingClientRect is not a function

Cordova version: 5.4.1
Ionic CLI version: 1.7.14
Ionic version: 1.2.4
Maps are working fine and both Android or iOS are not crashing, but I see these errors popping up in my log when I tap/drag/zoom the map:
Uncaught TypeError: e.target.getBoundingClientRect is not a function

Am I doing something wrong in my configuration or is this a known bug? I couldn't find something about it in the issues.
My current code:
var latLng = new $window.plugin.google.maps.LatLng(vm.trip.stop_lat, vm.trip.stop_lon);

var mapParams = {
  mapType: $window.plugin.google.maps.MapTypeId.ROADMAP,
  backgroundColor: '#3e3e3e',
  controls: {
    compass: false,
    myLocationButton: false,
    indoorPicker: false
  },
  gestures: {
    scroll: true,
    tilt: true,
    rotate: true,
    zoom: true
  },
  camera: {
    latLng: latLng,
    zoom: 16
  }
};

var mapDiv = document.getElementById('home-map');
var map = $window.plugin.google.maps.Map.getMap(mapDiv, mapParams);

map.on($window.plugin.google.maps.event.MAP_READY, ready);

function ready(map) {
  map.addMarker({
    animation: $window.plugin.google.maps.Animation.DROP,
    position: latLng,
    icon: {
      url: 'www/content/img/map-marker-mini.png',
      size: {
        width: 100,
        height: 40
      }
    }
  }, function(marker) {
  });
}

Well, I guess it's depends on your code, because no body people report this issue except you.
Please try to inspect in your code one more time.

@koenoe Since I'm not familiar with ionic, could you provide an example project?
Please create an example app that reproduce your issue, and deploy to github on your repository, then tell me the repository link.
If so, I will check your code.

@wf9a5m75 Thanks for your reply, but I'll close this comment. We switched back to the Javascript SDK since we needed multiple maps anyway.


Extra bugfixes

1a5ab39 - (2023-02-04) Don't send 'ending in 1 min' announcements to physical talks, they're more spammy than useful - Olivier Wilkinson (reivilibre) (origin/rei/fd23_extra_bugfixes)

sounds useful, will PR

7fc51d8 - (2023-02-04) Prevent log spam by ignored events in physical talk rooms - Olivier Wilkinson (reivilibre)

sounds useful, will PR

b10d941 - (2023-02-04) Don't miss physical talks in the scheduler (fixed version) - Olivier Wilkinson (reivilibre)

sounds very useful, will PR

be110ff - (2023-02-04) HACK Fosdem 2023 stream names again - Olivier Wilkinson (reivilibre)

WORTH INVESTIGATING!!! this bit us last year after all!

9738634 - (2023-02-04) Revert "Don't miss physical talks in the scheduler" - Olivier Wilkinson (reivilibre)

discard (also discard the earlier one)

8a2246a - (2023-02-04) HACK Fosdem 2023 stream names - Olivier Wilkinson (reivilibre)

investigate how much of this and the later one above is needed

ec846b3 - (2023-02-04) Don't miss physical talks in the scheduler - Olivier Wilkinson (reivilibre)

discard (was reverted)

8a186a1 - (2023-02-03) Don't require all people to be resolved to do invites: carry on anyway - Olivier Wilkinson (reivilibre) (origin/rei/fd22_nodupe_people)

sounds useful if it's not already present: investigate. N.B. the commits below are also in https://github.com/matrix-org/conference-bot/pull/180

404f9f8 - (2023-02-03) Add all speakers to the speaker support room (even physical ones) - Olivier Wilkinson (reivilibre)

sounds useful

32b0d10 - (2023-02-03) Comment out D.* hack - Olivier Wilkinson (reivilibre)

sounds good

c0747a2 - (2023-02-03) Work around not picking up any coordinators for physical auditoriums - Olivier Wilkinson (reivilibre)

sounds good on the tin, but apparently this already works right now

a756aa3 - (2023-02-03) Comment out legacy behaviour - Olivier Wilkinson (reivilibre)

??? investigate

701ac77 - (2023-02-03) Thread the PentaDb through the interface rather than downcasting - Olivier Wilkinson (reivilibre)

sounds obsolete, particularly as we don't like the PentaDb anymore :p

superseded by https://github.com/matrix-org/conference-bot/pull/219 which integrates the commits that I thought were worthwhile from here


Please add : Bond Buddy

Bond Buddy - A therapist for personal relationships advice and support : Bond-buddy

Please raise a pull request for the same


Reduce wasted render for activities

Fixes #2709.

Changelog Entry
Fixed

Fixes #2709. Reduce wasted render of activities by memoizing partial result of <BasicTranscript>, in PR #2710

Description
Add a new useMemoArrayMap hook for. It works like Array.map but also memoizing partial result from the mapper. The resultant array is a new one, but items in it will be memoized as needed.
If the mapper function changed, all memoized result will be invalidated.
Specific Changes

Added useMemoArrayMap.js hook for memoizing partial result for Array.map.
Updated BasicTranscript.js to use useMemoArrayMap for the first-pass of render.

[ ] Testing Added

Coverage increased (+0.1%) to 61.108% when pulling 8a6502606c12bfdd5cb24f5e016d2b179d99d81e on compulim:fix-2709 into eb750b3487b12a78946911497480efea4acc0e9b on microsoft:master.


Bordered Arrow Mixin - Updated for 2.0 wip

So you can get borders that look like this:
http://i.minus.com/jba9XPJWv82ysJ.png
By using the mixin this way:
.arrow {
  #borderArrow > .below(15px, 1px, @color, #f9f9f9);
}

You can use .below, .above, .left, .right and the parameters are: width of the arrows, border width, color of the border, color of the inside
Given this HTML:

although this is cool, i don't think we'll add it at this point - only because it's not neccerary for any of components at this point. Thanks though!


Make it easy to set up a very compact page (and other ideas)

I'm quickly relating my experiences and brainstorming below in case they might help in further development. Of course I would be happy if you implemented this, but don't want to come off as being ungrateful for your excellent work thus far.
I work with large queries and result sets and so I am sensitive about wasting screen space. I've attached a screenshot of what a page I'm hacking on looks like. However I find it fairly difficult to figure out what things to set. In this I've changed the SPARQL editor font (googles "Source Code Pro"), size and spacing, have made the SPARQL window autosizing (still can't figure out how to set this as default I have to  yasqe.setSize(null,"auto") for each instance) and have changed the result table font size, spacing, and column layout.
I'm hacking this using insertRule(http://davidwalsh.name/add-rules-stylesheets). The settings are below. I'm no javascript/css master, so don't laugh at my stumbling aroung ;-)
This: YASR.plugins.table.defaults.useGoogleCharts=false; is obviously not the way to turn off the google chart. How should I?
The other interface elements are still larger than they I need them to be.   is larger than it needs to be. I love the raw response vs table view but don't need the pivot table or google chart, so a simple checkbox would suffice. Perhaps the search window can be placed up with the tabs.
For the editor it would be nice to have a quick switch to move between autosize and a fixed size editor (with the number of lines when fixed size settable). As I mentioned in another report, folding the PREFIX section would be great. My style is never to use bare URIs in the query, instead defining a prefix with a readable label (our URIs are opaque). So that section can get large. However, if it were possible I would rather have the actual labels (completed) in the sparql query, with the query sent to the endpoint using the URIs.
I've also written an applescript that lets me programmatically send a query to YASGUI - That's nice for development where I'm generating queries in the R environment but can toss them to YASGUI for debugging. I can send this along if you would like.
sheet.insertRule(".yasgui .CodeMirror { position:left!important;font-size:11px!important;line-height:12px!important;font-family:Source Code Pro!important}", 0);
sheet.insertRule(".yasr table.dataTable tr {line-height:1px}",0)
sheet.insertRule(".yasr table.dataTable td { overflow:hidden; text-overflow: ellipsis;white-space: nowrap}",0)
sheet.insertRule(".yasr table.dataTable th sorting {width:auto!important}",0)
sheet.insertRule(".yasr table.dataTable thead tr th {width:auto!important;}",0)
sheet.insertRule(".yasr table.dataTable {width:auto!important;margin-left:0}",0)
sheet.insertRule(".yasgui .controlbar .endpointText {font-size:13px;width:500px!important}",0)

hi @alanruttenberg , thanks, feedback is appreciated ;).
below some inline comments:

In this I've changed the SPARQL editor font (googles "Source Code Pro"), size and spacing, have made the SPARQL window autosizing (still can't figure out how to set this as default I have to yasqe.setSize(null,"auto") for each instance) and have changed the result table font size, spacing, and column layout.
About the auto-sizing: I'll add this to the yasqe options (https://github.com/YASGUI/YASQE/issues/63)
About the font: I like the font. I'll add it to the YASQE part of the YASGUI lib (https://github.com/YASGUI/YASGUI/issues/50). I won't add it to the YASQE standalone verison though, as this would introduce a third dependency (next to css/js) for people to include.
About the spacing and column widths: I'll try your configuration out to see the effect on small and large tables. Have to watch out though, as the datatables plugin I use for the table has some smart resizing optimizations, which we'd disable when overwriting these css attributes.

This: YASR.plugins.table.defaults.useGoogleCharts=false; is obviously not the way to turn off the google chart. How should I?
To disable google chart, set YASR.defaults.useGoogleCharts = false (see http://yasr.yasgui.org/doc/).

The other interface elements are still larger than they I need them to be. I love the raw response vs table view but don't need the pivot table or google chart, so a simple checkbox would suffice. Perhaps the search window can be placed up with the tabs.
If you'd like to disable the pivot plugin, you could modify YASR.defaults.outputPlugins (remove 'pivot' from the array)

For the editor it would be nice to have a quick switch to move between autosize and a fixed size editor (with the number of lines when fixed size settable).
You should be able to modify the height by dragging the bottom part of the query editor. Is that sufficient? And I'd like to see an option to switch between fixed and dynamic, but would like to do this without interface clutter (as many won't use this option, considering the majority of queries are relatively small).
An option (more of a hidden feature) I'm thinking about is toggle dynamic/static width by single-clicking the bottom border of the query editor (otherwise used for resizing the editor manually via dragging)

As I mentioned in another report, folding the PREFIX section would be great.
This should be taken care of now. Will integrate this YASQE version in YASGUI soon

However, if it were possible I would rather have the actual labels (completed) in the sparql query, with the query sent to the endpoint using the URIs.
More tricky than expected. This needs a proper js SPARQL parser, e.g. https://github.com/RubenVerborgh/SPARQL.js. However, this one isnt included at the moment in YASGUI, and considering the library size I'm a bit hesitant on doing that.

I've also written an applescript that lets me programmatically send a query to YASGUI - That's nice for development where I'm generating queries in the R environment but can toss them to YASGUI for debugging. I can send this along if you would like.
Not sure how that would look like, so yes, I'd like to have a look at these ;)

About the spacing and column widths: I'll try your configuration out to see the effect on small and large tables. Have to watch out though, as the datatables plugin I use for the table has some smart resizing optimizations, which we'd disable when overwriting these css attributes.

Actually I change the column layout because the default seemed to have large minimum sizes. Now it resizes each column to just what's needed for display. What I'd prefer would be that URI results have a minimum size that is less than what's needed for their display, and when they overflow it is the left side that is truncated, since the part I'm usually interested in is the last bit. For textual fields, a minimum size again, but also a maximum size beyond which text is wrapped (unless there is room to display it without forcing something off window to the right. Maybe even a maximum height after which overflow is truncated with ellipsis. It's a compromise between being able to see longer text fields and seeing enough rows. In both cases, when overflow, hover shows the full value.
Regarding the applescript, I've included it below.  It is invoked from command line with the first argument being the URL of the editor and the second the name of a file where the sparql is written. Most of the hassle is in quoting. This version tries to accommodate bother graphdb and yasgui. If the front window has YASGUI in the title then it sends the sparql there. Otherwise it assumes that I want graphdb and opens a new editor. It also currently uses "|" as a line separator, fixing that in javascript as I was having trouble working with the newlines. That's suboptimal as "|" can be used in expressions.
I my dev environment I have a switch that will have queries otherwise executed to be put into the editor instead.
osascript putsparql.scpt http://<IP_ADDRESS>:8080/graphdb-workbench-ee/sparql /tmp/sparql.sparql 2>&1

Thanks,
Alan
on run argv
	set theurl to (item 1 of argv)
	set thefile to (item 2 of argv)
	--	set thefile to "/tmp/sparql.sparql"
	set AppleScript's text item delimiters to "
"
	set thecontent to text items of (read thefile)
	set whole to ""
	repeat with i from 1 to the count of items of thecontent
		set whole to whole & item i of the thecontent & "|"
	end repeat
	set thecontents to (replaceText(whole, "\"", "\\\"") & "\"" & ".split(\"|\").join(\"\\n\")")
	set thefunction to "if(typeof(window.editor)==\"undefined\") {tab=window.yasgui.addTab();tab.yasqe.setValue(\"" & thecontents & ");tab.yasqe.setSize(null,\"auto\")} else {window.editor.setValue(\"" & thecontents & ")}"
	copy thefunction to stdout
	tell application "Google Chrome"
		if title of active tab of window 1 does not contain "YasGUI" then
			open location theurl
			delay 2
		end if
		tell window 1
			execute active tab javascript (thefunction)
		end tell
	end tell
	thefunction
end run

to replaceText(someText, oldItem, newItem)
	set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, oldItem}
	try
		set {itemList, AppleScript's text item delimiters} to {text items of someText, newItem}
		set {someText, AppleScript's text item delimiters} to {itemList as text, tempTID}
	on error errorMessage number errorNumber -- oops
		set AppleScript's text item delimiters to tempTID
		error errorMessage number errorNumber -- pass it on
	end try

	return someText
end replaceText

You should be able to modify the height by dragging the bottom part of the query editor. Is that sufficient? And I'd like to see an option to switch between fixed and dynamic, but would like to do this without interface clutter (as many won't use this option, considering the majority of queries are relatively small). An option (more of a hidden feature) I'm thinking about is toggle dynamic/static width by single-clicking the bottom border of the query editor (otherwise used for resizing the editor manually via dragging)

It is sufficient, of course, but my preference is to have the switch. First, the editor won't shrink beyond a certain size, and second I find that I just don't like to scroll as most times, if I'm in the editor, I'm debugging something and it helps to see everything at once.
Putting the control on the bottom bar is clever, but note that it is a very small target and so it isn't fluid to make the change. Another choice would be to hide it in a popup menu inside the editor (with some other options), or use a small icon in the bottom right of the editor. In the interest of less clutter, I wouldn't mind if it faded from view when the mouse is away, as long as the target area is memorable and large enough to easily click. Maybe an icon along the lines of

However, if it were possible I would rather have the actual labels (completed) in the sparql query, with the query sent to the endpoint using the URIs.

More tricky than expected. This needs a proper js SPARQL parser, e.g. https://github.com/RubenVerborgh/SPARQL.js. However, this one isnt included at the moment in YASGUI, and considering the library size I'm a bit hesitant on doing that.

Hmm, why the need for a sparql parser? I'm thinking that if you ask for label completion and it is successful then the label is inserted into the editor and a property holding the URI added to the span (does codemirror support that?). Then, before sending to the endpoint the marked spans are replaced with their URIs.
That approach means that you have to do a completion each time - you can't just write the labels, although a completion on text that is already complete doesn't have to pop up the choose a completion menu. Maybe you do the completion again to interpret an already complete string as something that still needs completion (because there are other labels that start with the same string).
An alternative to the span would be to, on recognition of a label, do as I do and create a prefix for the term and substitute the prefix in the query.  That round trips better, though you have to watch out for possible escaping issues (space -> underscore is a given).

You should be able to modify the height by dragging the bottom part of the query editor. Is that sufficient? And I'd like to see an option to switch between fixed and dynamic, but would like to do this without interface clutter (as many won't use this option, considering the majority of queries are relatively small). An option (more of a hidden feature) I'm thinking about is toggle dynamic/static width by single-clicking the bottom border of the query editor (otherwise used for resizing the editor manually via dragging)

It is sufficient, of course, but my preference is to have the switch. First, the editor won't shrink beyond a certain size, and second I find that I just don't like to scroll as most times, if I'm in the editor, I'm debugging something and it helps to see everything at once.

Putting the control on the bottom bar is clever, but note that it is a very small target and so it isn't fluid to make the change. Another choice would be to hide it in a popup menu inside the editor (with some other options), or use a small icon in the bottom right of the editor. In the interest of less clutter, I wouldn't mind if it faded from view when the mouse is away, as long as the target area is memorable and large enough to easily click. Maybe an icon along the lines of

This should be taken care of now (see #51). The resize handler is still a bit too small, but it has been surprisingly tricky to get this larger. I might spend some more time on that later

However, if it were possible I would rather have the actual labels (completed) in the sparql query, with the query sent to the endpoint using the URIs.

More tricky than expected. This needs a proper js SPARQL parser, e.g. https://github.com/RubenVerborgh/SPARQL.js. However, this one isnt included at the moment in YASGUI, and considering the library size I'm a bit hesitant on doing that.

Hmm, why the need for a sparql parser? I'm thinking that if you ask for label completion and it is successful then the label is inserted into the editor and a property holding the URI added to the span (does codemirror support that?). Then, before sending to the endpoint the marked spans are replaced with their URIs.

That approach means that you have to do a completion each time - you can't just write the labels, although a completion on text that is already complete doesn't have to pop up the choose a completion menu. Maybe you do the completion again to interpret an already complete string as something that still needs completion (because there are other labels that start with the same string).

An alternative to the span would be to, on recognition of a label, do as I do and create a prefix for the term and substitute the prefix in the query.  That round trips better, though you have to watch out for possible escaping issues (space -> underscore is a given).

Ah, I was completely on the wrong page here. What you'd like is tricky to support, as I can imagine the SPARQL query won't often be syntactically correct right? E.g. when the predicate uri is substituted by a label.
Could you post a with and without label example of what you'd like to achieve?

If you'd like to disable the pivot plugin, you could modify YASR.defaults.outputPlugins (remove 'pivot' from the array)

Doesn't seem to be there:
YASR.defaults.outputPlugins
->["table", "error", "boolean", "rawResponse"]

It seems YASR was drawing all the registered plugins, instead of listening to this option. (i.e., this option was completely ignored).
I've fixed it now (https://github.com/YASGUI/YASR/issues/69). The YASGUI version I just pushed (will be online in a few minutes) has the new YASR version as well

most of the issues mentioned seem to have been resolved or submitted as other issues. If there are some important issues left open, let me know. Closing this for now


Abort queries that have been killed already

:memo: Checklist

[x] All user-facing changes have changelog entries.
[x] The changes are reflected on docs.tenzir.com/vast, if necessary.
[x] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions
Test by starting a large amount of queries in parallel and kill the export processes right away.

This is not a regression, but annoying enough to make it work fixing.

The problem persists with this change, so I'm closing this for now.


Sync master and development branches

This PR is to sync the master and development branches

          2 Warnings

:warning:
Consider adding supporting documentation to this change. Documentation can be found in the docs directory.

:warning:
The podspec was updated, but there were no changes in either the Cartfile nor Cartfile.resolved. Did you forget updating Cartfile or Cartfile.resolved?

  Generated by :no_entry_sign: Danger


Cannot stream with DashCast

When I attempt to stream with WebRTC Camera: DashCast, the Google Home Display comes up with the DashCast logo and then just goes to a blank black screen. I enabled debug logging, but the only message generated is: DEBUG (SyncWorker_6) [custom_components.webrtc.utils] DashCast to media_player.office_display.
I've attempted to cast to a Nest Home Display as well as an nVidia Shield; both act the same. I can cast to these device using the native Home Assistant camera devices through the cloud Google Assistant path, and casting other pages using DashCast seems to be working.
I've tested using my own RTSP feed as well as the Big Buck Bunny version and neither work.
Is there any other debugging that I can do to figure out why I'm not able to cast an RTSP stream using WebRTC Camera: DashCast?

I forgot to mention. I also created a temporary web link. I can open this page find on other devices on the same network as the google home, but casting this page using DashCast also displays a blank screen, but casting it from a browser displays the page properly.

Maybe your Hass and devices in different networks. Also check Configuration > General > Internal URL setting

Maybe your Hass and devices in different networks. Also check Configuration > General > Internal URL setting

My Home Assistant and Google/Nest Home devices are on the same network. I've also tried several variations of Internal URL setting and it has not changed anything. The nests are able to stream other things from Home Assistant, so I'm pretty sure the network & resolution are working correctly.

Do you mean https://cast.home-assistant.io/ ? If so, yes - that works properly.

Ahh... @AlexxIT, I believe I found the issue. I spun up a development version of the dashcast service and found that from:
https://github.com/AlexxIT/WebRTC/blob/358d4c27cfd2db974891786a3446a5e686567f5c/custom_components/webrtc/www/index.html#L22
when loading through DashCast, the referrer is getting set to to the DashCast URL. In my case, https://bekriebel.github.io/dashcast/receiver.html. Because of this,
https://github.com/AlexxIT/WebRTC/blob/358d4c27cfd2db974891786a3446a5e686567f5c/custom_components/webrtc/www/index.html#L28
can't find the url or entity values and you get the error
Uncaught Error: Missing `url` or `entity`
    at HTMLElement.setConfig (VM19 webrtc-camera.js:605)
    at embed?url=test2021061005:39

Changing line 22 of index.html to const url = window.location; makes the dashcast service work exactly as expected, as well as makes a URL generated by the Create Link service work properly. Is there any reason the referrer was being captured in this? I'm not sure why that would be desired.
I'll submit a PR in a moment if that is an okay change.

There was some reason with referrer but I don't remember it. I should do some tests

There was some reason with referrer but I don't remember it. I should do some tests

Sounds good. I tested several scenarios and couldn't find a case where it was needed. It looks like prior to v2, it wasn't using the referrer either. If there's a case where it is needed, I can add additional logic that tries both options.

Have you had a chance to look at this? I saw a new version was released, but don't want to updated without this fix in place as well since DashCast is non-functional without it.

Not at home for few weeks

i have same problem, chromecast 2013 and black screen after DashCast logo

whats the crack with this then?

I can't find the solution, same me problem here only dashcam logo, after update hassio to 2021.12.1

Hi, it doesn't work for me anymore...

hi @bekriebel  , i want to apply your fix too...
but you say, line 22 =
const url = document.referrer ? new URL(document.referrer) : window.location;
i dont see that line there?
i have on line 22 this on below, how can i fix it?
    const hass = {}
thnx

hi @bekriebel , i want to apply your fix too...
but you say, line 22 = const url = document.referrer ? new URL(document.referrer) : window.location;
i dont see that line there?
i have on line 22 this on below, how can i fix it?  const hass = {} thnx

It looks like the code has changed since I first did this. I haven't been using dashcast at all recently, so I'm not sure if this is still needed or what the new fix would be if it is.

the issue still persist :-)

I originally opened issue number 88 regarding problems with DashCast on a Google Home Display.  The results have changed since I last reported this issue and I thought I would explain how DashCast and lovelace cast now work on my system and version 2.3.0 of WebRTC Camera.
First of all, I get the exact same results if I use Dashcast to display a rtsp steam, or if I use the lovelace cast view service to display a view which utilizes the WebRTC card.  When the service is first called, the Google Home Display acts like it is working, and it displays a single still image of the camera.  The timer at the bottom left of the screen (by the play icon) starts to count up in seconds, but the video is not playing - it continues to display just a still image.  This goes on for exactly 37 seconds, at which time the video starts to play and everything works normally.  Like I said, this same behavior happens if I use the cast service to display a WebRTC camera view.  Hopefully this info will help.

Any news on this issue?

Should be fixed in v3

Are you sure your Chromecast has access to your server?

@ahaverty and @AlexxIT I think this might be useful. I tested dashcast from the same instance of Home Assistance and casted the same stream to a Google Hub gen 1 and a Google Hub gen 2. Then gen 1 cast works 100% of the time, but the gen 2 did not work any single time, everything else being equal for both devices and HA instance, same network, same config, etc.

same problem here v3.0.1 and a 2 generation nest hub

All of you can try to use https://stestagg.github.io/dashcast/ service and cast stream.html page from your go2rtc WebUI.

All of you can try to use https://stestagg.github.io/dashcast/ service and cast stream.html page from your go2rtc WebUI.

I got the DashCast logo with a subtext that says: "Loading: http://[private ip]:1984/stream.html?src=camera.front_door_camera"
That same url works well in my browser.
I also tested using the hostname (same results). And I tested with and without "Force display" - but that didn't help either (just displayed a never-ending loading circle).

Maybe you have some errors in Hass logs?

Unfortunately, none (with hass logger set to "info" level). I did try it with logger set to "debug" but was very verbose and difficult to find anything related (though i did try grepping for things like 1984 (the port number), the device names, etc without luck)

On homeassistant I ran tcpdump -i any -n -w go2rtc-hass-to-anyhost-port9184.pcap -v "port 1984" and then retested. The google nest hub never reaches out to homeassistant:1984.
I could certainly be wrong about this but it seems like its an issue with the google nest hub (perhaps a restriction on using plain http?).

My Google Nest Hub Max shows HTTP sites without problem

You are right. I was able get casting working using the built-in play_media service (bit of a delay but decent enough for now):
    data:
      media_content_type: image
      media_content_id: >-
        http://[LOCAL IP]:1984/api/stream.mp4?src=camera.front_door_camera
    target:
      entity_id: media_player.nesthub```

Open HTTP link from DashCast and play MP4 file are different technologies and can have different restrictions.
Maybe Google Nest Hub 2nd gen has additional restrictions vs Google Nest Hub Max. I don't know...

Ты прав. Мне удалось заставить работать кастинг с помощью встроенного сервиса play_media (с небольшой задержкой, но пока достаточно):
  - service: media_player.play_media
    data:
      media_content_type: image
      media_content_id: >-
        http://[LOCAL IP]:1984/api/stream.mp4?src=camera.front_door_camera
    target:
      entity_id: media_player.nesthub

Thanks a lot! This is the only way to help! No other way!

I actually got it to work with the DashCast force option. http://LOCAL_IP:5000/live/webrtc/stream.html?src=NAM_OF_CAMERA
It did show the stream for less than a minute though.

It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago..

It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago..

I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working

@@.***> any thoughts? Looks like HA or the latest webrtc update broke something. But the webrtc update was 2 weeks ago and I don’t remember when I last updated.
Can you test rtsp casting using the latest Homeassistant ?

From: haroldboom @.>
Sent: 08 September 2023 23:43
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago..
I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712306199, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFUYND4W3OLNSOBOCRQLXZONQTANCNFSM46O46EAQ.
You are receiving this because you commented.Message ID: @.***>

@@.> any thoughts? Looks like HA or the latest webrtc update broke something. But the webrtc update was 2 weeks ago and I don’t remember when I last updated. Can you test rtsp casting using the latest Homeassistant ?
…
________________________________ From: haroldboom @.> Sent: 08 September 2023 23:43 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Comment @.> Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88) It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago.. I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working — Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFUYND4W3OLNSOBOCRQLXZONQTANCNFSM46O46EAQ. You are receiving this because you commented.Message ID: @.>

Hi, I am casting using the following;
service: webrtc.dash_cast
data:
entity_id: media_player.nesthubmax
url: rtsp://frigateip:8554/Porch_sub
I can open the rtsp on VLC so its working. I just updated to 2023.9.1 and still not working

Same here. Using latest Homeassistant and restreamed frigate rtsp urls which open fine from VLC.
I’m guessing you just get the dashcast logo as well and it just sits there?

From: haroldboom @.>
Sent: 09 September 2023 08:58
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
@@.> any thoughts? Looks like HA or the latest webrtc update broke something. But the webrtc update was 2 weeks ago and I don’t remember when I last updated. Can you test rtsp casting using the latest Homeassistant ?
…
________________________________ From: haroldboom @.> Sent: 08 September 2023 23:43 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Comment @.> Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88https://github.com/AlexxIT/WebRTC/issues/88) It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago.. I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working — Reply to this email directly, view it on GitHub<#88 (comment)https://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712306199>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFUYND4W3OLNSOBOCRQLXZONQTANCNFSM46O46EAQ. You are receiving this because you commented.Message ID: @.>
Hi, I am casting using the following;
service: webrtc.dash_cast
data:
entity_id: media_player.nesthubmax
url: rtsp://frigateip:8554/Porch_sub
I can open the rtsp on VLC so its working. I just updated to 2023.9.1 and still not working
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712450895, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU4EQKOFVDPRRLXP6S3XZQOSPANCNFSM46O46EAQ.
You are receiving this because you commented.Message ID: @.***>

Yeah just sits on DashCast screen with a HA URL. Attached,
Also debug logging doesnt show anything;
2023-09-09 18:10:44.502 DEBUG (SyncWorker_0) [custom_components.webrtc.utils] DashCast to media_player.nesthubmax
2023-09-09 18:10:56.945 DEBUG (SyncWorker_9) [custom_components.webrtc.utils] DashCast to media_player.nest_hub
2023-09-09 18:11:11.572 DEBUG (SyncWorker_8) [custom_components.webrtc.utils] DashCast to media_player.living_room_tv

Same. Do you remember if this happened after the webrtc update?

From: haroldboom @.>
Sent: 09 September 2023 09:15
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Yeah just sits on DashCast screen with a HA URL. Attached,
Also debug logging doesnt show anything;
2023-09-09 18:10:44.502 DEBUG (SyncWorker_0) [custom_components.webrtc.utils] DashCast to media_player.nesthubmax
2023-09-09 18:10:56.945 DEBUG (SyncWorker_9) [custom_components.webrtc.utils] DashCast to media_player.nest_hub
2023-09-09 18:11:11.572 DEBUG (SyncWorker_8) [custom_components.webrtc.utils] DashCast to media_player.living_room_tv
[unnamed]https://user-images.githubusercontent.com/42967743/266769076-f8edf108-db07-4e18-b114-dd9cd1dec669.jpg
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712454325, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU3BC3NEGE6DBIYGHVDXZQQSTANCNFSM46O46EAQ.
You are receiving this because you commented.Message ID: @.***>

I think that was 2 weeks ago? It has only stopped working today or
yesterday
On Sat, 9 Sep 2023 at 19:17, atv2016 @.***> wrote:

Same. Do you remember if this happened after the webrtc update?

From: haroldboom @.>
Sent: 09 September 2023 09:15
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Yeah just sits on DashCast screen with a HA URL. Attached,
Also debug logging doesnt show anything;
2023-09-09 18:10:44.502 DEBUG (SyncWorker_0)
[custom_components.webrtc.utils] DashCast to media_player.nesthubmax
2023-09-09 18:10:56.945 DEBUG (SyncWorker_9)
[custom_components.webrtc.utils] DashCast to media_player.nest_hub
2023-09-09 18:11:11.572 DEBUG (SyncWorker_8)
[custom_components.webrtc.utils] DashCast to media_player.living_room_tv
[unnamed]<
https://user-images.githubusercontent.com/42967743/266769076-f8edf108-db07-4e18-b114-dd9cd1dec669.jpg>
—
Reply to this email directly, view it on GitHub<
https://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712454325>, or
unsubscribe<
https://github.com/notifications/unsubscribe-auth/AEBCFU3BC3NEGE6DBIYGHVDXZQQSTANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: @.***>
—
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712466184, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKH2FPZXZWLV26JUJP2OTSTXZQX4PANCNFSM46O46EAQ
.
You are receiving this because you commented.Message ID:
@.***>

You can try to add force option. Latest version supports it

You can try to add force option. Latest version supports it

Tried the force option and still no good. Something isn't right with the embedded URL because it wont open even on my laptop browser (chrome)

This url can be opened only once.

Ah ok, I am stumped then. Nothing has changed on my network. Is there
anything else that could help narrow it down?
On Sat, 9 Sep 2023 at 21:21, Alex X @.***> wrote:

This url can be opened only once.
—
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712488067, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKH2FP2YNEHJ63S4RXQRLOTXZRGNFANCNFSM46O46EAQ
.
You are receiving this because you commented.Message ID:
@.***>

It can only be webrtc or HA, as the RTSP streams themselves work fine.
@@.***> Does it work for you still? can you still cast RTSP streams to a chromecast (or any device) ?
Many thanks for your help.
This is a big thing to not have as a lot of automations runs on having RTSP streams casted (Frigate birdseye CCTV for one, but also loads of others).

From: haroldboom @.>
Sent: 09 September 2023 12:27
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Ah ok, I am stumped then. Nothing has changed on my network. Is there
anything else that could help narrow it down?
On Sat, 9 Sep 2023 at 21:21, Alex X @.***> wrote:

This url can be opened only once.
—
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712488067, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKH2FP2YNEHJ63S4RXQRLOTXZRGNFANCNFSM46O46EAQ
.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712489123, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU7ITT4U5NG4M27ZGCLXZRHC7ANCNFSM46O46EAQ.
 Like 5 second delay

@haroldboom yeah don't do that. Use the force option (make sure to set it to true) that works for me.

From: haroldboom @.>
Sent: 10 September 2023 03:29
To: AlexxIT/WebRTC @.>
Cc: atv2016 @.>; Comment @.>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
I added the RTSP feed as a generic camera integration and I’m casting that to my Nest as a work around but it sucks. Like 5 second delay
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/88#issuecomment-1712692566, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU33MLNJ5HZNCKP4VGTXZUQZVANCNFSM46O46EAQ.
You are receiving this because you commented.Message ID: @.***>

@atv2016 ah far out thanks mate, I used the GUI option to force but when I checked the yaml it wasn't there, working again now!
@AlexxIT Hey Alex thanks for you help, the issue was fixed by the force option but I had to write it into the yaml, the GUI checkbox option in the automation didnt work (it was still checked) but nothing in the yaml. Setting my yaml to below worked.
service: webrtc.dash_cast
data:
url: rtsp://frigateip:8554/Driveway_sub
entity_id: media_player.nesthubmax
force: true
enabled: true
Thanks again for a great integration

@atv2016 ah far out thanks mate, I used the GUI option to force but when I checked the yaml it wasn't there, working again now!
@AlexxIT Hey Alex thanks for you help, the issue was fixed by the force option but I had to write it into the yaml, the GUI checkbox option in the automation didnt work (it was still checked) but nothing in the yaml. Setting my yaml to below worked.
service: webrtc.dash_cast
data:
  url: rtsp://frigateip:8554/Driveway_sub
  entity_id: media_player.nesthubmax
  force: true
enabled: true

Thanks again for a great integration

This works good to me, thank you

Unfortunately i've got a black screen here too on my Nest Hub first gen. It shows MSE on the top right corner.
When casting starts i see something like this; https://private-user-images.githubusercontent.com/42967743/266769076-f8edf108-db07-4e18-b114-dd9cd1dec669.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTEzODI2NTYsIm5iZiI6MTcxMTM4MjM1NiwicGF0aCI6Ii80Mjk2Nzc0My8yNjY3NjkwNzYtZjhlZGYxMDgtZGIwNy00ZTE4LWIxMTQtZGQ5Y2QxZGVjNjY5LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzI1VDE1NTkxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxMTM1YjBmMWVmMDNkOTA1N2Y4NDY5ZWMxYmJiZjkzMjk4NjhmMTUwNjQzZjM4OWJmYjQwZTI1NGIwNjVmNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.U9KpUHrVfbhi0XxLmn6Ufl2aALq98B11h0crLmbhf-g
but after that, black screen, nothing more...

Also getting just a black screen. Widget works fine and latency is below a second on dashboard...

Did you update by any change your Unify Protect camera's?

Using Reolink but just read that the Nest hub doesn't support the clear (2.5K) resolution :D
Trying to get a lower quality stream to work next.

Did you update by any change your Unify Protect camera's? If so turn the encoding back to standard under recording settings

Soo, the lower quality (sub) stream works flawlessly and the latency is ridiculously low! Really impressed.

https://developers.google.com/cast/docs/media


Can't seem to install correctly- cannot import name 'CuImage' from 'cucim'

Describe the bug
I followed the installation instructions and can't seem to get this to install correctly
I also spun up a docker instance in WSL2 and that didn't appear to work either
Steps/Code to reproduce bug
Base-os
docker run -it -v `pwd`:/data --gpus all -p8888:8888 ubuntu bash

within docker:
apt update
apt install python3 python3-pip
pip install cucim
nvidia-smi # to check cuda version
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.70       Driver Version: 517.13       CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   56C    P0    29W /  N/A |      0MiB / 16384MiB |      0%      Default |

pip install scipy scikit-image cupy-cuda117

python3 -c 'from cucim import CuImage'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'CuImage' from 'cucim' (/usr/local/lib/python3.10/dist-packages/cucim/__init__.py)

I feel like I'm missing something....what is it? : )  Thank you!

Quick update, this appears to happen in both python 3.10 (docker) and python 3.8 (WSL2 base)
----:/mnt/c/data/$ python3 --version
Python 3.8.10
----:/mnt/c/data/$ python3 -c 'from cucim import CuImage'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'CuImage' from 'cucim' (/home/ajanowc/.local/lib/python3.8/site-packages/cucim/__init__.py)

----:/mnt/c/data$ pip freeze | grep cuc
cucim==22.12.0
----:/mnt/c/data$ pip freeze | grep cup
cupy-cuda117==10.6.0

Hi @choosehappy, sorry that this issue was overlooked. I think the problem was that Python 3.10 was not supported in cucim 22.12. If you either update to cucim >= 23.02 or downgrade to Python 3.9, I think it should work.

please reopen if the suggestion in the prior comment does not resolve your issue


Update cover.html

added bulma 0.6.2.
changed navigation
placeholder with real photos

@diomed Thanks again for the update. Great work!


Behavior for opening news items is confusing

Ideally I'd like to be able to click anywhere on the "card" to open the news item. However for some of the hosted portals I've looked at you have to click the title of the news item to open it up. On the BISON hosted portal you can also click on the image as well as the title and the news item opens up (at least for me on Chrome, Windows) but this functionality is not there in other hosted portals I've tested (like GBIF-NA and SPREP).

Can we make the cards so you can click anywhere in the news item and it opens up the full post?
If not, is there a way to change the title color to make it more obvious to users that you click the title of the news item to open the full post?

The way we display images was recently changed. This was done to reduce images sizes. A part of that exercise was to rewrite all image usage. In that process the image link was lost. That was fixed afterwards. But websites that haven't had any changes since still have the previous behaviour. So when those sites are edited, the fix will show on those sites as well. I can  deploy the NA website now :)
As for changing link color for headlines, then https://github.com/gbif/hp-north-america/blob/master/_config.yml#L51 should be what you are looking for.

The use of images was changed from just using the provided image as uploaded, to instead scale it to various device sizes and automatically detect what to load when
And secondly to convert the image to webp and  jpg and use the smallest when the browser supports it. This will in many cases dramatically reduce images sizes for mobile devices (say 1/10 of the size or so)


GRAPHQL SCHEMA REVIEW: drop property search by id

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5aadaf5) 100.00% compared to head (200d4a3) 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##            master      #115   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           16        16
  Lines          137       135    -2
  Branches        18        18
=========================================
- Hits           137       135    -2

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


The tutorial "Build Bot Framework bots with Microsoft Graph" will fail in Bot Emulator as written

The Bot Emulator requires ngrok and an ngrok setup step in order to work with OAuth login prompts. This is missing from the tutorial and needs to be added.
To Reproduce
Steps to reproduce the behavior:

Follow the steps as written in the tutorial here: https://docs.microsoft.com/en-us/graph/tutorials/bot-framework
At the end of the step, "Add Microsoft identity platform authentication", the Bot emulator will fail to launch the oauth popup with a slightly cryptic message about ngrok

Expected behavior
At the end of the step, "Add Microsoft identity platform authentication", the Bot emulator should display an Azure AD login popup (browser) and allow the user to log in and view their access token.
Suggesting the following changes:

The missing instructions are here in another tutorial: https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample#configure-the-emulator-for-authentication
Specifically the section "Configure the emulator" should be copied into this tutorial.
ngrok should be added to the prerequisites in the 1st page
The note at the bottom of the "Add Microsoft identity platform authentication" page is misleading; restarting the Bot emulator does not help; setting up the bot emulator correctly is what fixed it for me.

Desktop (please complete the following information):

OS: Windows 10
Browser: n/a - Bot Emulator
Version:  v4,11,9

Thanks Bob! My emulator was already configured for ngrok, so I missed having to configure it as a step. I'm curious about this:

The note at the bottom of the "Add Microsoft identity platform authentication" page is misleading; restarting the Bot emulator does not help; setting up the bot emulator correctly is what fixed it for me.

I had the problem pretty consistently even though I already had ngrok setup. However I didn't tick the version 1.0 token option. I'm guessing that's the difference. I'll test it out and update.

Awesome - thanks for the quick response!

Turns out it was the Run ngrok when the Emulator starts up option that needed to be enabled.

This was fixed in #5


Fix 3.10 and 3.11 support

Fixes #3

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

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

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
543

Relevant Lines:
558

💛  - Coveralls


Misc fixes

Check for content type application/json before trying to parse.
Storying the modified http_path in _http_path to avoid corruption of path url when making requests. This happens in the case where a valid path: /.well-known/openid-configuration is replace with the invalid path: /well_known/openid_configuration during the request.

Codecov Report

Merging #448 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #448      +/-   ##
=========================================
+ Coverage   85.09%   85.1%   +<.01%
=========================================
  Files          39      39
  Lines        1825    1826       +1
=========================================
+ Hits         1553    1554       +1
  Misses        272     272

Impacted Files
Coverage Δ

hca/util/__init__.py
86.95% <100%> (+0.03%)
: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 4d82efc...e821b84. Read the comment docs.

Would urllib.parse.urlparse be appropriate for parsing out URL components?

Is it possible to write a test for this? Perhaps in test/integration/util/test_swagger_client.py?

@xbrianh the urls is already parsed in the OpenAPI spec.
@chmreid I will add some


[Build] CI Job 'Build Docker CHIP Build images - base' is failing

Build issue(s)
The build process started by CI for this PR (https://github.com/project-chip/connectedhomeip/pull/35207) is failing.
The failing seems not be related with the code changes in the PR.
Build Logs: https://github.com/project-chip/connectedhomeip/actions/runs/10569074862/job/29281187600?pr=35207#step:4:4810
Platform
other
Anything else?
No response

Issue should be fixed, please remerge master into your PR and check again