Log format type "cri" not working as expected

The Release Notes for 1.3.0 document that CRI-O is also supported here (https://github.com/splunk/splunk-connect-for-kubernetes/releases). We tried that right away, and also rebuilt the Helm Charts with the corresponding variant:
Values.yml:
              # Log format type, "json" or "cri"
              logFormatType: cri

Unfortunately this did not change the final result. It always said "json" in the template.
ConfigMap:
             # CRI Log Example (not supported):
                  <parse>
                    @type json

If I chang the parameter there manually, the Splunk-Connector Pods will not start:
ConfigMap:
            # CRI Log Example (not supported):
                  <parse>
                    @type cri

Pod Logs:
            error="Unknown parser plugin 'cri'.

I am also slightly irritated by the message, CRI not supported? In the release notes it was announced as news.
The only way to get the splunk-connector working with CRI-O Logs is a workaround using regex.
ConfigMap:
  <parse>
    @type regexp
    expression /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/

Environment:

OpenShift version: 4.3.*
Splunk-connector version: 1.4

I was able to deploy 1.3 like this, with the only bug being 1.3 is missing indextime field definitions in the chart. Please share the steps you are taking cause I was able to render the chart.
global:
  logLevel: info
  splunk:
    hec:
      protocol: https
      insecureSSL: true
      host: splunk-mattymo
      token: 00000000-0000-0000-0000-000000000000
      port: 8088

#local config for logging chart
splunk-kubernetes-logging:
  containers:
    #for use with docker in past versions of MicroK8s
    #pathDest: /var/snap/microk8s/common/var/lib/docker/
    logFormatType: cri
    logFormat: "%Y-%m-%dT%H:%M:%S.%N%:z"
  kubernetes:
    clusterName: MicroK8s
  journalLogPath: /var/log/journal
  splunk:
    hec:
      indexName: em_events
  # sck-1.3.0 cri-o workaround, fixed in next release.
  indexFields: ["pod", "namespace","container_id"]
  logs:
    nginx-ingress:
      from:
        pod: nginx-ingress
        container: nginx-ingress-controller
      #keep default sourcetype for sake of avoiding complexity
      #if you really want to customize sourcetype you can
      #sourcetype: nginx:ingress:controller
      multiline:
        firstline: /^\w[0-1]\d[0-3]\d\s\d{2}:\d{2}:\d{2}.\d{6}\s|^\d+\.\d+\.\d+\.\d+[^\[]+|\d{4}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}[^\[]+|^NGINX\sIngress\scontroller|^----------/

#local config for objects chart
splunk-kubernetes-objects:
  rbac:
    create: true
  serviceAccount:
    create: true
    name: splunk-kubernetes-objects
  kubernetes:
    insecureSSL: true
    clusterName: MicroK8s
  objects:
    core:
      v1: [{"name":"pods", "interval":"60s"},{"name":"nodes", "interval":"60s"},{"name":"component_statuses", "interval":"60s"},{"name":"config_maps", "interval":"60s"},{"name":"namespaces", "interval":"60s"},{"name":"persistent_volumes", "interval":"60s"},{"name":"persistent_volume_claims", "interval":"60s"},{"name":"resource_quotas", "interval":"60s"},{"name":"services", "interval":"60s"},{"name":"service_accounts", "interval":"60s"},{"name":"events", "mode":"watch"},]
    apps:
      v1:
        [{"name":"daemon_sets", "interval":"60s"},{"name":"deployments", "interval":"60s"},{"name":"replica_sets", "interval":"60s"},{"name":"stateful_sets", "interval":"60s"},]
  splunk:
    hec:
      indexName: em_meta

#local config for metrics chart
splunk-kubernetes-metrics:
  metricsInterval: 60s
  kubernetes:
    #opened issue to allow user to set port for metrics and metrics-agg separately, as seems to be required in MicroK8s
    kubeletPort: 10255
    useRestClientSSL: false
    insecureSSL: true
    clusterName: MicroK8s
  rbac:
    create: true
  serviceAccount:
    create: true
    name: splunk-kubernetes-metrics
  splunk:
    hec:
      indexName: em_metrics

We used the following values.yaml for 1.3.0 (https://github.com/splunk/splunk-connect-for-kubernetes/blob/release/1.3.0/helm-chart/splunk-kubernetes-logging/values.yaml):
`global:
logLevel: info
splunk:
hec:
protocol: https
insecureSSL: false
indexRouting:
indexRoutingDefaultIndex:
kubernetes:
clusterName: "cluster_name"
prometheus_enabled: true
fluentd:
path: /var/log/containers/.log
exclude_path:
logLevel:
containers:
path: /var/log
pathDest: /var/lib/docker/containers
logFormatType: cri
logFormat: "%Y-%m-%dT%H:%M:%S.%N%:z"
serviceAccount:
create: true
name:
usePullSecrets: false
splunk:
hec:
host:
port:
token:
protocol:
indexName:
insecureSSL:
clientCert:
clientKey:
caFile:
indexRouting:
indexRoutingDefaultIndex:
ingest_api:
serviceClientIdentifier:
serviceClientSecretKey:
tokenEndpoint:
ingestAPIHost:
tenant:
eventsEndpoint:
debugIngestAPI: false
secret:
create: true
name:
journalLogPath: /run/log/journal
logs:
docker:
from:
journald:
unit: docker.service
timestampExtraction:
regexp: time="(?\d{4}-\d{2}-\d{2}T[0-2]\d:[0-5]\d:[0-5]\d.\d{9}Z)"
format: "%Y-%m-%dT%H:%M:%S.%NZ"
sourcetype: kube:docker
kubelet: &glog
from:
journald:
unit: kubelet.service
timestampExtraction:
regexp: \w(?[0-1]\d[0-3]\d [^\s])
format: "%m%d %H:%M:%S.%N"
multiline:
firstline: /^\w[0-1]\d[0-3]\d/
sourcetype: kube:kubelet
etcd:
from:
pod: etcd-server
container: etcd-container
timestampExtraction:
regexp: (?\d{4}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd
etcd-minikube:
from:
pod: etcd-minikube
container: etcd
timestampExtraction:
regexp: (?\d{4}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd
etcd-events:
from:
pod: etcd-server-events
container: etcd-container
timestampExtraction:
regexp: (?\d{4}-[0-1]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd-events
kube-apiserver:
<<: *glog
from:
pod: kube-apiserver
sourcetype: kube:kube-apiserver
kube-scheduler:
<<: *glog
from:
pod: kube-scheduler
sourcetype: kube:kube-scheduler
kube-controller-manager:
<<: *glog
from:
pod: kube-controller-manager
sourcetype: kube:kube-controller-manager
kube-proxy:
<<: *glog
from:
pod: kube-proxy
sourcetype: kube:kube-proxy
kubedns:
<<: *glog
from:
pod: kube-dns
sourcetype: kube:kubedns
dnsmasq:
<<: *glog
from:
pod: kube-dns
sourcetype: kube:dnsmasq
dns-sidecar:
<<: *glog
from:
pod: kube-dns
container: sidecar
sourcetype: kube:kubedns-sidecar
dns-minikube:
from:
pod: coredns
container: coredns
sourcetype: kube:dns-controller
dns-controller:
<<: *glog
from:
pod: dns-controller
sourcetype: kube:dns-controller
kube-dns-autoscaler:
<<: *glog
from:
pod: kube-dns-autoscaler
container: autoscaler
sourcetype: kube:kube-dns-autoscaler
kube-audit:
from:
file:
path: /var/log/kube-apiserver-audit.log
timestampExtraction:
format: "%Y-%m-%dT%H:%M:%SZ"
sourcetype: kube:apiserver-audit
image:
registry: docker.io
name: splunk/fluentd-hec
tag: 1.1.1
pullPolicy: Always
usePullSecret: false
pullsecretName:
resources:
requests:
cpu: 100m
memory: 200Mi
buffer:
"@type": memory
total_limit_size: 600m
chunk_limit_size: 200m
chunk_limit_records: 100000
flush_interval: 5s
flush_thread_count:  overflow_action: block
retry_max_times:tolerations:

key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
beta.kubernetes.io/os: linux
affinity: {}
priorityClassName:
kubernetes:
clusterName:
openshift: false
customMetadata:
customFilters: {}
indexFields: []
`

But the result is still the same. The Logformat is still @type json
# less template.yaml |grep -A30 'source.containers.conf:'   source.containers.conf: |-     # This configuration file for Fluentd / td-agent is used     # to watch changes to Docker log files. The kubelet creates symlinks that     # capture the pod name, namespace, container name & Docker container ID     # to the docker logs for pods in the /var/log/containers directory on the host.     # If running this fluentd configuration in a Docker container, the /var/log     # directory should be mounted in the container.     # reading kubelet logs from journal     #     # Reference:     # https://github.com/kubernetes/community/blob/20d2f6f5498a5668bae2aea9dcaf4875b9c06ccb/contributors/design-proposals/node/kubelet-cri-logging.md     #     # Json Log Example:     # {"log":"[info:2016-02-16T16:04:05.930-08:00] Some log text here\n","stream":"stdout","time":"2016-02-17T00:04:05.931087621Z"}     # CRI Log Example (not supported):     # 2016-02-17T00:04:05.931087621Z stdout [info:2016-02-16T16:04:05.930-08:00] Some log text here     <source>       @id containers.log       @type tail       @label @SPLUNK       tag tail.containers.*       path /var/log/containers/*.log       pos_file /var/log/splunk-fluentd-containers.log.pos       path_key source       read_from_head true       <parse>         @type json         time_format %Y-%m-%dT%H:%M:%S.%NZ         time_key time         time_type string         localtime false

We used the following values.yaml for 1.3.0 (https://github.com/splunk/splunk-connect-for-kubernetes/blob/release/1.3.0/helm-chart/splunk-kubernetes-logging/values.yaml):
`global:
logLevel: info
splunk:
hec:
protocol: https
insecureSSL: false
indexRouting:
indexRoutingDefaultIndex:
kubernetes:
clusterName: "cluster_name"
prometheus_enabled: true
fluentd:
path: /var/log/containers/.log
exclude_path:
logLevel:
containers:
path: /var/log
pathDest: /var/lib/docker/containers
logFormatType: cri
logFormat: "%Y-%m-%dT%H:%M:%S.%N%:z"
serviceAccount:
create: true
name:
usePullSecrets: false
splunk:
hec:
host:
port:
token:
protocol:
indexName:
insecureSSL:
clientCert:
clientKey:
caFile:
indexRouting:
indexRoutingDefaultIndex:
ingest_api:
serviceClientIdentifier:
serviceClientSecretKey:
tokenEndpoint:
ingestAPIHost:
tenant:
eventsEndpoint:
debugIngestAPI: false
secret:
create: true
name:
journalLogPath: /run/log/journal
logs:
docker:
from:
journald:
unit: docker.service
timestampExtraction:
regexp: time="(?\d{4}-\d{2}-\d{2}T[0-2]\d:[0-5]\d:[0-5]\d.\d{9}Z)"
format: "%Y-%m-%dT%H:%M:%S.%NZ"
sourcetype: kube:docker
kubelet: &glog
from:
journald:
unit: kubelet.service
timestampExtraction:
regexp: \w(?[0-1]\d[0-3]\d [^\s])
format: "%m%d %H:%M:%S.%N"
multiline:
firstline: /^\w[0-1]\d[0-3]\d/
sourcetype: kube:kubelet
etcd:
from:
pod: etcd-server
container: etcd-container
timestampExtraction:
regexp: (?\d{4}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd
etcd-minikube:
from:
pod: etcd-minikube
container: etcd
timestampExtraction:
regexp: (?\d{4}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd
etcd-events:
from:
pod: etcd-server-events
container: etcd-container
timestampExtraction:
regexp: (?\d{4}-[0-1]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d.\d{6})
format: "%Y-%m-%d %H:%M:%S.%N"
sourcetype: kube:etcd-events
kube-apiserver:
<<: *glog
from:
pod: kube-apiserver
sourcetype: kube:kube-apiserver
kube-scheduler:
<<: *glog
from:
pod: kube-scheduler
sourcetype: kube:kube-scheduler
kube-controller-manager:
<<: *glog
from:
pod: kube-controller-manager
sourcetype: kube:kube-controller-manager
kube-proxy:
<<: *glog
from:
pod: kube-proxy
sourcetype: kube:kube-proxy
kubedns:
<<: *glog
from:
pod: kube-dns
sourcetype: kube:kubedns
dnsmasq:
<<: *glog
from:
pod: kube-dns
sourcetype: kube:dnsmasq
dns-sidecar:
<<: *glog
from:
pod: kube-dns
container: sidecar
sourcetype: kube:kubedns-sidecar
dns-minikube:
from:
pod: coredns
container: coredns
sourcetype: kube:dns-controller
dns-controller:
<<: *glog
from:
pod: dns-controller
sourcetype: kube:dns-controller
kube-dns-autoscaler:
<<: *glog
from:
pod: kube-dns-autoscaler
container: autoscaler
sourcetype: kube:kube-dns-autoscaler
kube-audit:
from:
file:
path: /var/log/kube-apiserver-audit.log
timestampExtraction:
format: "%Y-%m-%dT%H:%M:%SZ"
sourcetype: kube:apiserver-audit
image:
registry: docker.io
name: splunk/fluentd-hec
tag: 1.1.1
pullPolicy: Always
usePullSecret: false
pullsecretName:
resources:
requests:
cpu: 100m
memory: 200Mi
buffer:
"@type": memory
total_limit_size: 600m
chunk_limit_size: 200m
chunk_limit_records: 100000
flush_interval: 5s
flush_thread_count:  overflow_action: block
retry_max_times:tolerations:

key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
beta.kubernetes.io/os: linux
affinity: {}
priorityClassName:
kubernetes:
clusterName:
openshift: false
customMetadata:
customFilters: {}
indexFields: []
`

But the result is still the same. The Logformat is still @type json
# less template.yaml |grep -A30 'source.containers.conf:'   source.containers.conf: |-     # This configuration file for Fluentd / td-agent is used     # to watch changes to Docker log files. The kubelet creates symlinks that     # capture the pod name, namespace, container name & Docker container ID     # to the docker logs for pods in the /var/log/containers directory on the host.     # If running this fluentd configuration in a Docker container, the /var/log     # directory should be mounted in the container.     # reading kubelet logs from journal     #     # Reference:     # https://github.com/kubernetes/community/blob/20d2f6f5498a5668bae2aea9dcaf4875b9c06ccb/contributors/design-proposals/node/kubelet-cri-logging.md     #     # Json Log Example:     # {"log":"[info:2016-02-16T16:04:05.930-08:00] Some log text here\n","stream":"stdout","time":"2016-02-17T00:04:05.931087621Z"}     # CRI Log Example (not supported):     # 2016-02-17T00:04:05.931087621Z stdout [info:2016-02-16T16:04:05.930-08:00] Some log text here     <source>       @id containers.log       @type tail       @label @SPLUNK       tag tail.containers.*       path /var/log/containers/*.log       pos_file /var/log/splunk-fluentd-containers.log.pos       path_key source       read_from_head true       <parse>         @type json         time_format %Y-%m-%dT%H:%M:%S.%NZ         time_key time         time_type string         localtime false

It is not a global option...you chart format is all mangled.Use mine as a template, you are missing sub-chart headers, for each chart!
https://mattymo.io/deploying-splunk-connect-for-kubernetes-on-microk8s-with-helm/

Okay we tested with your values and it worked partly. He changed in the template the logging Type from "json" to "regexp". But that is the same solution we already found and though it would just be a workaround. I guess thats why your comment: " # sck-1.3.0 cri-o workaround, fixed in next release."
We got the same result with the release 1.4.0. It seems it isn't fixes in this release yet?

no, my guess is that you arent seeing the fields cause the chart doesn't set them in the fields section of the output.conf in the configmap.
1.4 works fine, was probably your values.yaml.


Example Grafana dashboard

Hello!
An example Grafana dashboard would be really helpful.
Best regards!
Sven

We actually don't have a dashboard using the metrics from this exporter, at least not yet.  We do have numerous Prometheus record rules.  I've uploaded those record rules here: https://github.com/treydock/infiniband_exporter/blob/main/examples/infiniband.rules
The only dashboards we have currently using IB metrics would be the host level metrics from node_exporter.  They are very similar to what this exporter can collect for switches, mostly focused around transmitted and received bytes.
If we ever get around to creating dashboard for switches, I'll upload something to examples directory.

Any update on this?

Looks like some of my colleagues put some into our Grafana instance so I've dumped those into the examples folder at https://github.com/treydock/infiniband_exporter/tree/main/examples.  Most of the PromQL relies no the record rules also in the examples folder.

I appreciate this very much, thank you.


Issue on install

Angular + php sounds good. I'm really interested in looking into your code but
I unzipped the package on my local server and ran install.php as per instructions
http://www.cosmocms.org/install
I am getting Internal Server Error. Please let me know in case of any prerequisites.

Did it say the installation succeeded? If so, do you have mod_rewrite turned on?

i tried now hours to install cosmo on XAMPP in Folder COSMO (<IP_ADDRESS>/COSMO);
i change in autoload.php to:    define('FOLDER', 'COSMO/'); // /subfolder;
console shows this error:
GET http://<IP_ADDRESS>/COSMO/api/content?url=%2F 404 (Not Found)
what can i do ? could you help me please

I will add my commentary here instead of creating new issue:
I tried to install Cosmo also for meny hours on 3 differents machines, with MAMP, XAMPP, and real server... all without success, I really enjoyed demo, but it is very frustrating.
In installation on MAMP I see those errors in Console:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (en.json, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (angular.min.js.map, line 0)
Should I have to look it elsewhere? how could I debbug the reason of the failure?
On server installation this was SQL error 2002, script couldn't connect to database but somehow it showed localhost in the begining of the address.
On Windows I saw only [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (en.json, line 0).
I know that this is stile beta version, but I'm not sure if it should be version 1.0 if there is so many issues with installation.

@spee65 and @kosmaa 404 issues are typically with the .htaccess file not being active or you don't have mod_rewrite turned on Apache. I'll see about checking for that on installation for the next version.

@James-Dunn I've read the other issues before and I tried to do it right, altought I'm not so server savyy to tell for sure that it works as advised, but I've checked if mod_rewrite was uncommented (it was) I made some changes in apache .conf in directory to allow all that was possible ;) and still no result. Maybe you should add some more informations on requiered initial setup before installation? or explain it more thoroughly?

I think too, its not a htaccess or mod_rewrite problem. The problem is more the root folder and folder variable. Its to complecated. Its very pitty, i like the demo so much, but have never seen so much misprogramming. Make it easier or your cms will not have sucess.

@kosmaa @spee65 as a side note once betav5 is launched (in about a week or 2 depending on time it takes for some updates we're working on). I'm going to be creating walkthrough videos of the full install on a server and a local install.

If you are installing it in a sub-folder, that won't work currently. We'll add that feature a bit later, cause it requires manually editing the .htaccess file.

@jordanddunn I hope that beat5 will be finaly the lucky on and I'm looking for video! (although writen instruction works for me too ;) good luck with updates, we are counting on you!!!


Several proposals for improvement

Thank you for creating this promising addon. I'd like to offer several proposals to improve on it.

Currently it often fails to automatically translate some webpages. For example, on the following pages(even if "Always translate this language" is ticked):

(1) nasional.tempo.co/read/1491253/pasien-sembuh-covid-19-hari-ini-39-726-orang/full&view=ok
(2) jdih.tabanankab.go.id/berita/159/rapat-koordinasi-satpol-pp-disperindag-dan-dinas-lingkungan-hidup

Pls allow translation of webpages of any original language into English.This function is important and indispensible, because in many cases webpages are in mixed languages.
In many cases the original language of a webpage is not detected or wrongly detected. For example, the original language of the following webpage is detected as English by your addon and can not be translated, but actually it also contains many Indonesian words.

https://www.linkedin.com/search/results/people/?keywords=menteri pendidikan&origin=CLUSTER_EXPANSION&sid=6ld

When I use Chrome browser(with in-built Google Translate function), the original language of the above webpage is not detected because it is in mixed languages. However,the webpage can be translated into English with the Context Menu button as shown by the picture below.

(1) The original language of that linkedin page is not detected by Google Translate, because it contains both English and many Indonesian words. So it just shows "Detected Language" instead of any specific language.

(2) But I need to translate the Indonesian words on that page and I can achieve that by using the Context Menu button as shown by the picture below.

Original Text on mouseover. This funciton is also indispensible as shown by the picure below.

Could you pls consider these proposals? Thank you and best regards!

Thank you for your reports and suggestions, i consider it and will fix in near time.
Do you have some assumptions about cause of first problem with auto detect?  I already fixed a similar problem, and the reason was that lang attrubute set too late. I added one more chech after awaiting load page to fix it.
Popup with original text already in plans, but at this time i not have idea about grouping text for show result. For example i over my mouse on paragrapth from text on your screen, whats text this popup should show?
Text of all childs? Then what if user hover on body element? It will show text of all page in popup?

[ ] Fix auto detect langs
[ ] Allow translate page with same language direction

Done. Check version 2.1.3
You can get it from releases page of wait few minutes for update from mozilla addons.
Test it and write your feedback about fixes.
Popup with original text will implement later, but in near future

Thank you for your reports and suggestions, i consider it and will fix in near time.
Do you have some assumptions about cause of first problem with auto detect? I already fixed a similar problem, and the reason was that lang attrubute set too late. I added one more chech after awaiting load page to fix it.
Popup with original text already in plans, but at this time i not have idea about grouping text for show result. For example i over my mouse on paragrapth from text on your screen, whats text this popup should show?
Text of all childs? Then what if user hover on body element? It will show text of all page in popup?

Thank you for your kind feedback.

As for your first question, sorry I am a layman when it comes to coding and programming. So I cannot offer any help with this.

I think original text shoud be shown paragraph by paragraph. Actually the following screenshot is from another translation addon S3.Translator. Its Original Text Popup function is very good. When that addon is used, original text will be shown paragraph by paragraph or even sentence by sentence as shown by the picture below. The shortcomings of that addon are that it fails to automatically translate many webpages and the offical Google Translate webpage often pops out. Perhaps you could refer to that addon for the Original Text Popup function.
Best regards!

Done. Check version 2.1.3
You can get it from releases page or wait few minutes for update from mozilla addons.
Test it and write your feedback about fixes.
Popup with original text will implement later, but in near future

So far the Auto Detection and Translation funcion works well.  But the Same Language Translation function does not work.
Although the blue button can be clicked now, the Indonesian words on the linkedin page fails to be translated into English.
Thank you and Best regards!
https://www.linkedin.com/search/results/people/?keywords=menteri pendidikan&origin=CLUSTER_EXPANSION&sid=6ld

Try use "auto detect" in languages list. Is it work for your case?

Try use "auto detect" in languages list. Is it work for your case?

Hi, so far the Auto Detection function works well. But the Same Language Translation function does not work on the following page.
https://www.linkedin.com/search/results/people/?keywords=menteri pendidikan&origin=CLUSTER_EXPANSION&sid=6ld

Translate behavior depends on translation service modules. One module can translate mixed languages, when other can't.
We should not change this behavior to avoid convoluted logic. Site define page language as "english", then we should suggest english even it it not that actually.
We could add option which will detect cases when language set by page is different from actual text on the page and in this case set default language as "undetected" and suggest auto detection if translator support this feature and language which page set otherwise.
What you think about it? This option is would satisfy you?

Translate behavior depends on translation service modules. One module can translate mixed languages, when other can't.
We should not change this behavior to avoid convoluted logic. Site define page language as "english", then we should suggest english even it it not that actually.
We could add option which will detect cases when language set by page is different from actual text on the page and in this case set default language as "undetected" and suggest auto detection if translator support this feature and language which page set otherwise.
What you think about it? This option is would satisfy you?

I tried the "Auto Detect" just now. So far it works great. Thank you!

I don't sure that you really want enable option for remember language.
Pages usually have dynamic content and you will have to change language even more often. Even if direction remember functional will bind to domain
But i make issue for feature which can be useful for you: https://github.com/translate-tools/linguist/issues/37
What you think? Is it can satisfy you?

I don't sure that you really want enable option for remember language.
Pages usually have dynamic content and you will have to change language even more often. Even if direction remember functional will bind to domain
But i make issue for feature which can be useful for you: #37
What you think? Is it can satisfy you?

Thank you so much. What I mean is enabling the addon to remember the choice of "Auto Detect" not a certain language. So far the addon works great. I will continue to try it and offer my thoughts here. Hope the future Original Text Popup function will be similar to that of addon S3.Translator.  Best regards!

You know, maybe the remember "auto detect" it is not bad function. I will think about it.
Thank for your contribution. In future if you want report or suggest something more, create new issue to maintain cleanliness


Remove dependency on Illuminate

Hi,
looks like a well-written library, which i would love to use. I noticed that it has dependency on a Illuminate\Support\Collection which registers a lot of global functions and is generally annoying. Would you be comfortable merging a PR getting rid of it?
Thank you.

Hey. Thank you :) Although I must say I haven't had the time to invest in this project further.
I don't like Laravel's collections, but they do improve readability that native array functions don't. Do you have any other library candidates in mind, or were you thinking of arrays?


NaN related ops are not correct for burn-wgpu fusion backend

I am adding two new tensor methods related to NaN (is_nan and contains_nan). My unit tests are failing for burn-wgpu backend. See https://github.com/tracel-ai/burn/pull/2088 PR
Describe the bug
These two methods do not work as expected:
    /// Returns a new tensor with boolean elements indicating whether each element of the input is NaN.
    ///
    /// # Returns
    ///
    /// A boolean tensor where `true` indicates NaN and `false` indicates a non-NaN value.
    pub fn is_nan(&self) -> Tensor<B, D, Bool> {
        // Check if the input tensor is NaN by comparing it to itself
        // NaN is the only value that is not equal to itself
        K::not_equal(self.primitive.clone(), self.primitive.clone())
    }

    /// Checks if the tensor contains any NaN values.
    ///
    /// # Returns
    ///
    /// A boolean tensor with a single element indicating whether the tensor contains any NaN values.
    pub fn contains_nan(&self) -> Tensor<B, 1, Bool> {
        // Summing the tensor will result in NaN if the tensor contains any NaN values
        // This is faster than checking each element individually
        // because it rolls up the NaN values into a single value
        let sum = K::sum(self.primitive.clone());

        // Check if the sum is NaN by comparing it to itself
        K::not_equal(sum.clone(), sum)
    }

To Reproduce

check out this PR branch: https://github.com/tracel-ai/burn/pull/2088 PR
cd burn-wgpu
cargo test nan

Expected behavior
The tests should pass.
Screenshots

NOTE: The unit test should be enabled currently ignored for all backends.

@nathanielsimard @louisfd, this is only for fusion backend. Any particular difference?

For anyone coming here trying to find a solution, I found one in tensor.greater_equal_elem(f64::NEG_INFINITY).bool_not() for tensor.is_nan(), similar solution for tensor.any_nan().

@antimora Fusion has changed a lot since the issue was openned. We should check if this is fixed.

@antimora Fusion has changed a lot since the issue was openned. We should check if this is fixed.

OK. I'll check it.

What's the reasoning behind ignoring the tests when they don't work? There are other tests that rely on is_nan and contains_nan working properly, and if they don't work then a lot of other functions suddenly come under suspicion as well.


Fix 404 errors on Gdrive Webhooks

Handle multiple webhooks pointers for one Gdrive connector.
Added a field renewAt to differentiate between the renew time and the expire time, even though they are the same in success cases. This new field is needed because failing to renew a webhook would put it in an infinite retry cycle.
The field renewedByWebhookId is here to make sure we never renew a webhook that has already been renewed and to clean up expired webhook only if they have been renewed.

Needs to be fully re-tested before merging but I am too tired right now.


[Docs] Mention debugger statement as part of troubleshooting guide

Describe the problem
I found really usefull the debugger statement, for debugging js logic error inside widget actions. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger?retiredLocale=it

Maybe we could mention it, in this section of the readme
https://docs.appsmith.com/troubleshooting-guide/widget-errors

Please assign it to me.

Hey @mohitsaxenaknoldus assigning this to you. The docs are maintained in a separate repo "appsmithorg/appsmith-docs"
Please read our doc contribution guidelines before opening the PR.

Thanks for that @hetunandu. I've opened a PR for the same, please review: https://github.com/appsmithorg/appsmith-docs/pull/178


502 Bad Gateway after commit

Please check if there's anywhere wrong

It is a Nginx configuration mistake. Fixed after reconfigured CORS problem.


Cannot Run Bebop_Driver ( Exit Code -11)

I could run it without problems earlier, but when I got to continue the test, I got this sad result, I'm attaching my output. Does anyone knows how to solve it ? I am using a Bebop 1, Ubuntu 16.04 LTS, and ROS Kinetic.
totonzx@totonzx:~/bebop_ws$ roslaunch bebop_driver bebop_node.launch
... logging to /home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/roslaunch-totonzx-18182.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
started roslaunch server http://totonzx:41111/
SUMMARY
PARAMETERS

/bebop/bebop_driver/bebop_ip: <IP_ADDRESS>
/bebop/bebop_driver/camera_info_url: package://bebop_d...
/bebop/bebop_driver/cmd_vel_timeout: 0.2
/bebop/bebop_driver/odom_frame_id: odom
/bebop/bebop_driver/publish_odom_tf: True
/bebop/bebop_driver/reset_settings: True
/bebop/bebop_driver/states/enable_altitudechanged: True
/bebop/bebop_driver/states/enable_autotakeoffmodechanged: True
/bebop/bebop_driver/states/enable_camerastate_orientation: True
/bebop/bebop_driver/states/enable_commonstate_batterystatechanged: True
/bebop/bebop_driver/states/enable_commonstate_wifisignalchanged: True
/bebop/bebop_driver/states/enable_controllerstate_ispilotingchanged: True
/bebop/bebop_driver/states/enable_flightplanstate_availabilitystatechanged: True
/bebop/bebop_driver/states/enable_flightplanstate_componentstatelistchanged: True
/bebop/bebop_driver/states/enable_gpsstate_numberofsatellitechanged: True
/bebop/bebop_driver/states/enable_mavlinkstate_mavlinkfileplayingstatechanged: True
/bebop/bebop_driver/states/enable_mavlinkstate_mavlinkplayerrorstatechanged: True
/bebop/bebop_driver/states/enable_mediastreamingstate_videoenablechanged: True
/bebop/bebop_driver/states/enable_numberofsatellitechanged: True
/bebop/bebop_driver/states/enable_overheatstate_overheatchanged: True
/bebop/bebop_driver/states/enable_pilotingstate_altitudechanged: True
/bebop/bebop_driver/states/enable_pilotingstate_attitudechanged: True
/bebop/bebop_driver/states/enable_pilotingstate_flattrimchanged: True
/bebop/bebop_driver/states/enable_pilotingstate_flyingstatechanged: True
/bebop/bebop_driver/states/enable_pilotingstate_navigatehomestatechanged: True
/bebop/bebop_driver/states/enable_pilotingstate_positionchanged: True
/bebop/bebop_driver/states/enable_pilotingstate_speedchanged: True
/bebop/robot_description: <?xml version="1....
/rosdistro: kinetic
/rosversion: 1.12.7

NODES
/bebop/
bebop_driver (bebop_driver/bebop_driver_node)
robot_state_publisher (robot_state_publisher/robot_state_publisher)
auto-starting new master
process[master]: started with pid [18196]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 5ff6f482-beda-11e7-ad5d-20689d850533
process[rosout-1]: started with pid [18209]
started core service [/rosout]
process[bebop/bebop_driver-2]: started with pid [18226]
process[bebop/robot_state_publisher-3]: started with pid [18227]
[ INFO] [1509523079.104606977]: Initializing nodelet with 4 worker threads.
[ INFO] [1509523079.209727821]: [BebopSDK] 01:57:59:209 | Bebop:225 - Bebop Cnstr()
[ INFO] [1509523079.209786941]: Nodelet Cstr
[ INFO] [1509523079.229527584]: Connecting to Bebop ...
[ INFO] [1509523079.238822254]: [CB] 01:57:59:238 | Ardrone3PilotingStateFlatTrimChanged:388 - [STATES] Enabling states/ardrone3/PilotingState/FlatTrimChanged
[ INFO] [1509523079.243617567]: [CB] 01:57:59:243 | Ardrone3PilotingStateFlyingStateChanged:432 - [STATES] Enabling states/ardrone3/PilotingState/FlyingStateChanged
[ INFO] [1509523079.248799111]: [CB] 01:57:59:248 | Ardrone3PilotingStateNavigateHomeStateChanged:534 - [STATES] Enabling states/ardrone3/PilotingState/NavigateHomeStateChanged
[ INFO] [1509523079.251933856]: [CB] 01:57:59:251 | Ardrone3PilotingStatePositionChanged:592 - [STATES] Enabling states/ardrone3/PilotingState/PositionChanged
[ INFO] [1509523079.255235457]: [CB] 01:57:59:255 | Ardrone3PilotingStateSpeedChanged:657 - [STATES] Enabling states/ardrone3/PilotingState/SpeedChanged
[ INFO] [1509523079.257991711]: [CB] 01:57:59:257 | Ardrone3PilotingStateAttitudeChanged:722 - [STATES] Enabling states/ardrone3/PilotingState/AttitudeChanged
[ INFO] [1509523079.262638454]: [CB] 01:57:59:262 | Ardrone3PilotingStateAltitudeChanged:838 - [STATES] Enabling states/ardrone3/PilotingState/AltitudeChanged
[ INFO] [1509523079.279839823]: [CB] 01:57:59:279 | Ardrone3MediaStreamingStateVideoEnableChanged:1388 - [STATES] Enabling states/ardrone3/MediaStreamingState/VideoEnableChanged
[ INFO] [1509523079.283569309]: [CB] 01:57:59:283 | Ardrone3CameraStateOrientation:1490 - [STATES] Enabling states/ardrone3/CameraState/Orientation
[ INFO] [1509523079.294212442]: [CB] 01:57:59:294 | Ardrone3GPSStateNumberOfSatelliteChanged:1882 - [STATES] Enabling states/ardrone3/GPSState/NumberOfSatelliteChanged
[ INFO] [1509523079.305941224]: [CB] 01:57:59:305 | CommonCommonStateBatteryStateChanged:148 - [STATES] Enabling states/common/CommonState/BatteryStateChanged
[ INFO] [1509523079.319033361]: [CB] 01:57:59:318 | CommonCommonStateWifiSignalChanged:510 - [STATES] Enabling states/common/CommonState/WifiSignalChanged
[ INFO] [1509523079.328689962]: [CB] 01:57:59:328 | CommonOverHeatStateOverHeatChanged:1023 - [STATES] Enabling states/common/OverHeatState/OverHeatChanged
[ INFO] [1509523079.332624283]: [CB] 01:57:59:332 | CommonMavlinkStateMavlinkFilePlayingStateChanged:1118 - [STATES] Enabling states/common/MavlinkState/MavlinkFilePlayingStateChanged
[ INFO] [1509523079.336220417]: [CB] 01:57:59:336 | CommonMavlinkStateMavlinkPlayErrorStateChanged:1183 - [STATES] Enabling states/common/MavlinkState/MavlinkPlayErrorStateChanged
[ INFO] [1509523079.350745116]: [CB] 01:57:59:350 | CommonFlightPlanStateAvailabilityStateChanged:1568 - [STATES] Enabling states/common/FlightPlanState/AvailabilityStateChanged
[ INFO] [1509523079.352828330]: [CB] 01:57:59:352 | CommonFlightPlanStateComponentStateListChanged:1619 - [STATES] Enabling states/common/FlightPlanState/ComponentStateListChanged
[ INFO] [1509523079.370517112]: [ARCONTROLLER_Network] 01:57:59:370 | ARCONTROLLER_Network_GetAvailableSocketPort:128 - d2c_port port: 43210
[ INFO] [1509523079.370965483]: [ARCONTROLLER_Stream2] 01:57:59:370 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port stream: 55004
[ INFO] [1509523079.371069046]: [ARCONTROLLER_Stream2] 01:57:59:371 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port control: 55005
[ INFO] [1509523079.419875638]: [BebopSDK] 01:57:59:419 | CommandReceivedCallback:113 - Command Received Callback LWP id is: 18387
[ INFO] [1509523080.059378381]: [BebopSDK] 01:58:00:059 | Connect:321 - BebopSDK inited, lwp_id: 18226
[ WARN] [1509523080.059553515]: Resetting all settings ...
[ INFO] [1509523080.059741884]: [BebopSDK] 01:58:00:059 | ResetAllSettings:417 - All settings of the drone have been reset to default values.
[bebop/bebop_driver-2] process has died [pid 18226, exit code -11, cmd /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node __name:=bebop_driver __log:=/home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/bebop-bebop_driver-2.log].
log file: /home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/bebop-bebop_driver-2*.log
===============================================================================

EDIT: Adding GDB output running just the driver node

===============================================================================
rosrun --prefix 'gdb -ex run --args' bebop_driver bebop_driver_node
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node...(no debugging symbols found)...done.
Starting program: /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef52a700 (LWP 7662)]
[New Thread 0x7fffeed29700 (LWP 7663)]
[New Thread 0x7fffee528700 (LWP 7664)]
[New Thread 0x7fffedd27700 (LWP 7669)]
[New Thread 0x7fffed526700 (LWP 7671)]
[New Thread 0x7fffecd25700 (LWP 7672)]
[New Thread 0x7fffe7fff700 (LWP 7673)]
[New Thread 0x7fffe77fe700 (LWP 7674)]
[New Thread 0x7fffe6ffd700 (LWP 7675)]
[ INFO] [1509578495.449152352]: Initializing nodelet with 4 worker threads.
[New Thread 0x7fffe67fc700 (LWP 7679)]
[ INFO] [1509578496.045769350]: [BebopSDK] 17:21:36:045 | Bebop:225 - Bebop Cnstr()
[ INFO] [1509578496.045901685]: Nodelet Cstr
[ INFO] [1509578496.055230039]: Connecting to Bebop ...
[New Thread 0x7fffc7945700 (LWP 7768)]
[ INFO] [1509578496.171987529]: [ARCONTROLLER_Network] 17:21:36:171 | ARCONTROLLER_Network_GetAvailableSocketPort:128 - d2c_port port: 43210
[ INFO] [1509578496.172462643]: [ARCONTROLLER_Stream2] 17:21:36:172 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port stream: 55004
[ INFO] [1509578496.172567138]: [ARCONTROLLER_Stream2] 17:21:36:172 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port control: 55005
[ERROR] [1509578501.176467088]: [ARDISCOVERY_Device] 17:21:41:176 | ARDISCOVERY_Device_NewARNetworkAL:243 - error: timeout error
[ERROR] [1509578501.176689162]: [ARCONTROLLER_Network] 17:21:41:176 | ARCONTROLLER_Network_New:355 - error: Error during the getting of the ARNETWORKAL_Manager from the device
[ INFO] [1509578501.177108726]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StartRun:5123 - Start failed or canceled.
[ERROR] [1509578501.177348281]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5822 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_GENER
[ERROR] [1509578501.177499915]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5831 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_ARDRO
[ERROR] [1509578501.177658160]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5840 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_COMMO
[ERROR] [1509578501.177831394]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopRun:5166 - StopNetwork failed with error :Bad parameters
[ERROR] [1509578501.178021370]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StartRun:5131 - Start fail error :Error during the getting of the ARNETWORKAL_Manager from the device
[Thread 0x7fffc7945700 (LWP 7768) exited]
[ INFO] [1509578501.179101526]: [BebopSDK] 17:21:41:179 | Cleanup:326 - Bebop Cleanup()
[FATAL] [1509578501.179780735]: Init failed: Waiting for device failed: No error
[ INFO] [1509578501.180082726]: Bebop Nodelet Dstr: 0
[ INFO] [1509578501.180145729]: Killing Camera Thread ...
[ INFO] [1509578501.180200970]: Killing Aux Thread ...
[ INFO] [1509578501.182444926]: [Decoder] 17:21:41:182 | CleanupBuffers:181 - Buffer cleanup!
[ INFO] [1509578501.182552435]: [Decoder] 17:21:41:182 | Reset:200 - Reset!
[ INFO] [1509578501.182659093]: [Decoder] 17:21:41:182 | ~VideoDecoder:206 - Dstr!
[FATAL] [1509578501.182894839]: bebop_driver nodelet failed to load.
[Thread 0x7fffe77fe700 (LWP 7674) exited]
[Thread 0x7fffe7fff700 (LWP 7673) exited]
[Thread 0x7fffecd25700 (LWP 7672) exited]
[Thread 0x7fffed526700 (LWP 7671) exited]
[Thread 0x7fffe6ffd700 (LWP 7675) exited]
[Thread 0x7fffe67fc700 (LWP 7679) exited]
[Thread 0x7fffedd27700 (LWP 7669) exited]
[Thread 0x7fffef52a700 (LWP 7662) exited]
[Thread 0x7fffeed29700 (LWP 7663) exited]
[Thread 0x7ffff7fa0780 (LWP 7657) exited]
[Inferior 1 (process 7657) exited with code 01]

From what I can tell from the error log, it seems that the drone was not able to connect. The latest version of bebop autonomy has not been tested on the Bebop 1, so the issue may be with the upgrade. We just got access to a Bebop 1 in our lab, so we will be able to test this soon.

@thomas-bamford
Thanks for replying.
Indeed, it couldn't connect with the Bebop, but even with the Computer connected to the Bebop AP and I made a ping to it successfully, it appeared the same code, I got a friend's computer which it had not been updated any ROS packages and  I could run it without a problem, please tell me if you need more information or help, I will try to join you to fix it once I can finish my scholar duties.

After updating the ROS and Ubuntu dependencies, the driver could run again as expected, I could not find any specific reason. Closing issue...

After updating the ROS and Ubuntu dependencies, the driver could run again as expected, I could not find any specific reason to malfunction. Closing issue...

what commands do I have to use to do that?


editor.findWidgetResizeBorder is invalid.

Describe the bug
findWidgetResizeBorder is invalid flag in colorCustomization, at least in the latest version of vscode (1.24.1)
Setting accent color will add this incorect flag, instead of the right (or new) one : "editorWidget.resizeBorder"
To Reproduce
Steps to reproduce the behavior:

use quick command menu
set accent color to blue, for exemple
-> find feature (CTRL+F on windows) border is not colored with accent.

Expected behavior
-> No invalid flag in options
-> Color the widget border according accent color
Screenshots

Desktop (please complete the following information):
OS : win7x64
Vscode : 1.24.1
Ext: 2.2.0
edit : on the screenshot accent color is blue. i cleared whole color customisation object in the user-customisation json to let Material Theme rewrite it.

Thank you.


[Feat]: Migrate to Next.js

What feature?
Currently, the codebase is in react...I would like to migrate it to the next.js
I would like to work on it under gssoc23
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@s2sharpit, the project has been selected for GSSoC23, and there are frequent changes happening in the projects. We can consider migrating to Next.js once GSSoC23 is over.

@s2sharpit, the project has been selected for GSSoC23, and there are frequent changes happening in the projects. We can consider migrating to Next.js once GSSoC23 is over.

Hey @JasonDsouza212,
Actually, I was thinking to work on it under GSSoC23.


Port 9090 is no longer mentioned as a required rule

Port 9090 is no longer mentioned as a required rule while it is required by tunnelfront

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

ID: a38439d0-0125-3445-1c0a-a03b940e315d
Version Independent ID: c6436a35-94b9-6396-3b13-9291f0a17b21
Content: Restrict egress traffic in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/limit-egress-traffic.md
Service: container-service
GitHub Login: @palma21
Microsoft Alias: jpalma

It's not required by tunnel front. Tunnel requires 9000 as mentioned in the doc. 😊

That's odd because we have tunnel front logs saying otherwise..
Would it help if I post them?

Here you go:
[ Tue Feb  9 12:50:16 UTC 2021 ] WRN: Was not able to establish connection to tunnelend
[ Tue Feb  9 12:50:16 UTC 2021 ] INF: going to sleep for:[5] Seconds
[ Tue Feb  9 12:50:22 UTC 2021 ] INF: Tunnel front and end both server.version == local.version, no rotation needed
[ Tue Feb  9 12:50:22 UTC 2021 ] INF: Ssh to tunnelend is not connected.. attempting to connect
Warning: Permanently added the RSA host key for IP address '[<IP_ADDRESS>]:9000' to the list of known hosts.
Error: remote port forwarding failed for listen port 9090

Your log mentions 9000 as I mentioned. Where is the doc issue?

Thank you @tomkerkhove for the feedback.
Please contact support if you are still experiencing an issue.
#please-close

This was handled through support who acknowledged this was a doc bug but ok


Text Strings

When I try to use the library, I receive the following error: Text strings must be rendered within a <Text> Component.
Code Example:
<View style={styles.container}>   <LineChart       areaChart       curved       data={data}   />;   <StatusBar style="auto" /> </View>

It is possible to encapsulate the content within the  component, however, it is not appropriate and causes several problems.

@leonardodecastro-programmer how did you solve this?

@rzfzr
I guess the problem was the semi-colon after the closing of the <LineChart /> tag-
<View style={styles.container}>
  <LineChart areaChart curved data={data} />; <-- remove this semicolon
  <StatusBar style="auto" />
</View>


pop-icon-theme: 2020-03-04 -> 2021-11-17

Motivation for this change
Almost two years since the last update. Upstream has made several recent updates that make the icon theme more compatible and with better coverage of system icons.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 148246 run on x86_64-linux 1

1 package built:

pop-icon-theme


Wrong headers in per server dashboard

Error and read/writes headers are switched

Fix by https://github.com/scylladb/scylla-grafana-monitoring/commit/c23b059e956128c263801cc10d330375df6aa1a6

Look like this issue still exists in at least one dashboard
@tzach please take a look

Thanks @tzach (you could have do it yourself)
Look like this issue does not exist anymore.


installation issue

hello -   (newbie here)
having become an excellent code "indentor" with multiple nested async functions, i am most eager to try out asyncawait.
i attempted to do a simple install as per the instructions i read:
npm install asyncawait ;
and here is my error log below  - i read where it said to contact the author - i hope this is the correct forum.
http://edwardsmark.com/asyncawaitIssue/npm-debug.log

alias  nodejs=node ;
nodejs -v
v4.2.3
npm -v
2.5.1
npm owner ls fibers
laverdet<EMAIL_ADDRESS>
thank you very much.

Hi @edwardsmarkf,
It looks like a problem installing node-fibers (See line 535 in your debug log). Node-fibers is a binary (C/C++) module, so it has added requirements for building. Please check with that project for build requirements for your system, and open an issue there if you still have problems.

thank you - it turns out fibers wont install for me.  i contacted marcel.npm[at]laverdet[dot]com for assistance.


Add warning messages for using thread binding options on macOS

Attempt to fix #4349. @albestro would you mind testing the changes?

Thanks @albestro for testing! I've fixed the issues you found. Do the messages themselves seem clear enough for you?

Yeah, it looks perfect!
Thank you again!


scroll through sparkbutton will

i write code like this:
               view.findViewById(R.id.star_button1).setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.i("test", "sparkbutton click");
                        ((SparkButton) v).playAnimation();
                    }
                });

then if I scroll through this sparkbutton(R.id.star_button1) while not click this sparkbutton(R.id.star_button1), then the log will be printed and animation will play. How can I print the log and play the animation only in click situation and not in scroll through situation?

Instead of setting click listener, use event listener as stated in docs for listening click events.
SparkButton button = (SparkButton)view.findViewById(R.id.star_button1);
buttons.setEventListener(...);

ok, thanks


Error: Column 'azure_openai_embeddings_id' of relation 'profiles' does not exist

it been three days and i never seem to get pass this error...
in a previous question deleting the browser cache was suggested but i did not work for me.
i put the openai API key in the env.local file where it supposed to overriding any api keys users may enter, is that the issue ??

Need to run the latest migrations

For example, you might need to run the command sudo supabase migration up or sudo npm run db-push manually.
One potential cause of this issue is #1095 where you'll need to correct the migration file using the method proposed by @kkartunov first.

For example, you might need to run the command sudo supabase migration up or sudo npm run db-push manually.
One potential cause of this issue is #1095 where you'll need to correct the migration file using the method proposed by @kkartunov first.

this #1095 worked. thank u, ochen


Skip network checks

Description
Adds a --skip-network flag to skip all checks which require network access.
Checklist

[X] update CHANGELOG.md
[ ] wait for the tests to pass
[X] request a review

Other checks that require internet access are com.google.fonts/check/glyphsets/shape_languages and com.google.fonts/check/soft_dotted, which use Shaperglot, which uses youseedee, which downloads Unicode files.


install error

Ununtu OS
$ sudo gem install dmarcer
Building native extensions.  This could take a while...
ERROR:  Error installing dmarcer:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.2/ext/nokogiri

/usr/bin/ruby2.3 -r ./siteconf20180213-3658-17qdcwa.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/nokogiri-1.8.2 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.8.2/gem_make.out

fix:
sudo apt install ruby-dev
then try install again

@wifiuk I’d recommend strongly against using the system Ruby, except in cases where you’re deploying a system that’d not going to have users. While it is a bit more work, I encourage something like rbenv, which offers a user-centric Ruby environment.
At the very least, this will let you use the most up-to-date version of Ruby, instead of the one that Ubuntu packages, which is very likely to be quite out-of-date, and potentially insecure as a result.
That also means you won’t run into issues like this.


Separate Navigation and Data contexts

Summary of changes 🔍
Separated WizardNavigationContext data management into its own context: DataManagementContext. DataManagementContext still only has simple actions and reducers from components are yet to be migrated into it, this will be discussed further with the team and potentially be done in other PRs.
Components now take care of their own view models and commit to the global data store on unmount or navigation. This pattern can be seen in DataSourceStep component and ModelLists component.
Note:
TwinLists component requires a lot of work, would be best to leave that to another PR.
Also in this PR:

Minor styling changes to TwinVerificationStep, which will probably be reworked later.
File structure modification, moved Contexts into a folder below Legion folder.
i18n for Twin verification step components.

TODO (potentially in other PRs)

Rename steps to match newer patterns
UX of Modification step update
Content pass

Testing 🧪
Open any step stories and modify values.
Checklist ✔

[ ] Linked associated issue (if present)
[ ] Added relevant labels
[ ] Requested developer reviews
[ ] Request UI review from design / PM
[ ] Verify all code checks are passing

Looks like hte graph step was broken. Can you wire up the data?


Water and Jug Problem 365 from leetcode

Hey @Saikat2407 , I would like to contribute to CPP's water and jug problem.
where the problem statement is:-
given two jugs with capacities jug1Capacity and jug2Capacity liters. There is an infinite amount of water supply available. Determine whether measuring the exact target capacity liters using these two jugs is possible.

Hi @Saikat2407 please assign this issue to me as I am 4* star on codechef and specialist on codeforces.
I have a great command in data structures and algorithms solved more than 500 leetcode problems. will surely provide you the all the approaches to solve the problem with best explanation ever.


Better code style

https://devdocs.io/jsdoc

看到蠻多人用這個的
http://www.sphinx-doc.org/en/master/
範例：https://docs.godotengine.org/en/3.1/
還有這個
https://www.mkdocs.org/
不過比較少人用的樣子，但是他主打markdown

還有人用wiki
https://geom.io/bakery/wiki/index.php?title=Manual
GitHub的wiki也有人再用

But most of the snippets that I saw on the web use this code style. Moreover, I also checked for the google's standard which is the similar code style.

And I prefer documenting within the code. Instead of separating files. Regarding the benefits for coders who would like to inspect raw code. And also for our rapidly changing codebase.

And I prefer documenting within the code. Instead of separating files. Regarding the benefits for coders who would like to inspect raw code. And also for our rapidly changing codebase.

I got your point. We use the in-code document on game development as well 😁 (The built-in feature of C#)

Thx you sir. UuU


Dark mode

Eyes are getting strained, would love a dark mode toggle

Just download a dark mode extension. They have better things to do than spend time putting a dark mode toggle.

fixed in #55


Error in mxnet when building sockeye cpu container.

Hello everyone ;)
I have issues when building new sockeye containers as they are provided in sockeye_contrib/docker. When building new images without cache, when I run python -m sockeye.translate I get the following Error message:
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/sockeye/sockeye/translate.py", line 28, in <module>
    from sockeye.lexicon import TopKLexicon
  File "/opt/sockeye/sockeye/lexicon.py", line 26, in <module>
    from . import arguments
  File "/opt/sockeye/sockeye/arguments.py", line 26, in <module>
    from . import data_io
  File "/opt/sockeye/sockeye/data_io.py", line 36, in <module>
    from . import vocab
  File "/opt/sockeye/sockeye/vocab.py", line 25, in <module>
    from . import utils
  File "/opt/sockeye/sockeye/utils.py", line 756, in <module>
    def log_parameters(params: mx.gluon.ParameterDict):
AttributeError: module 'mxnet.gluon' has no attribute 'ParameterDict'

I think the problem is that the intgemm mxnet is not fixed and that there might be an issue with the current intgemm mxnet version (Commit 528b77d4393c011f8f3723904608e17ba6c79a0d), as this was the only difference I could find when I compared the installs in working containers.
Also when I built the container in the new sockeye version I was still able to get it running when older build stages were cached, but when I built it with --no-cache, I had the same intgemm mxnet commit hash and it didn't work anymore.
Best wishes
Tim

@mjdenkowski can you take a look?

I think the problem is in the Dockerfile.cpu, where mxnet is cloned.
 I was able to fix it with checking out a recent commit (7a20b91e6986fd774d85c838c3465d10391a7d82) after git checkout intgemm && \. I was then able to decode on CPU with --dtype int8, which should mean that i have an intgemm verison installed, correct?

I have now tested it again with removing git checkout intgemm from the Dockerfile and leaving the rest unchanged and it seems to work. I was able to build the container and I could decode with int8 and the installed mxnet version in the container according to pip3 freeze is now -e git+https://github.com/kpuatamazon/incubator-mxnet.git@b02dbc3387c38392b1be1570ba1fa7bfe1673d61#egg=mxnet&subdirectory=python.

Thanks for reporting this issue!  Your assessment is correct that the second checkout line is an error in the Dockerfile.
We've added commit 1ca2788948d92e678a796b7cf346aee5727d3a43 that credits you with the fix.


Develop

Issue that this pull request solves
Closes: # 396
Proposed changes
Added a feature to convert emoticons to emojis.
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Screenshots

Other information
Would like to get this PR considered under GSSOC'21

@sadaffateema Sorry for troubling you again but PR should be to rpotter12:develop from sadaffateema:develop.
master branch is for final release purpose.

@sadaffateema Sorry for troubling you again but PR should be to rpotter12:develop from sadaffateema:develop.
master branch is for final release purpose.

Edited that, please have a look at it.


httpx Library < 0.23 used by django-amplitude Contains Critical Vulnerability

The fixed version of the httpx dependency as defined in the "master" version of the poetry.lock (https://github.com/pyepye/django-amplitude/commit/c338ea5d87246c5c2022e4ef3942de4bc24b0b21) file contains a critical vulnerability that is described here: https://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-41945.

Thanks @colinbjohnson - this is finally fixed.

@pyepye Could you just remove upper constraints of dependencies?

Thanks for the PR @9128305


small fix: update with 'cluster manager' terminology

Signed-off-by: alicejw<EMAIL_ADDRESS>Description
Small fix to replace 'master' with 'cluster manager' terminology
Issues Resolved
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

There is another pull request for this one but not sure of the status....https://github.com/opensearch-project/documentation-website/pull/522

There are also instances of ".kibana" in this topic that need to change to ".opensearch-dashboards". And one example username "kibanaserver" that should be "dashboardserver" or something similar.

had to recreate from a new branch. there was a problem with it not finding the new backport.yml file.


Few more cases for estimate fee endpoint

Issue Number
#469
Overview

[x] I have added few cases for estimate fee endpoint (0 amt tx estimation and estimate in case of ErrInputDepleted)
[x] I have added validateSelection to TransationLayer API and corresponding impl
[x] I have added CLI integration tests illustrating the error for http-bridge

Comments

The amt = 0 tests could be merged now as pending tests if we changed the assertion from 20x to 40x.

@piotr-iohk let's wait for @KtorZ to accept this PR before the merge


Fix the formatting of the 'formatting' section

Closes #871.

I made these changes with 633ae4e238514025b85537532bfea8305d54d3ce
Thanks for raising the issue @shawwn

I kind of wanted to be listed as a contributor to the repo. :) Oh well.
I didn't understand your reply. Sorry about that. I see now what you were asking for.

No worries, @shawwn
I'd be happy to accept other contributions from you, if you find anything else that needs fixing.  Then you could be a contributor. :-)


AntennaRange and TweakableEverything depend on EVAManager.

Please don't merge this one until after #1093.  Thanks!

#rebuild


Add WSL section in install-guide.md

A small addition to the documentation of the container toolkit. After having struggled a bit to get the nvidia runtime to work for docker on windows with WSL, where WSL is used as backend following these docker instructions and this container-toolkit installation guide I figured out that the only change needed was to specify the daemon config file in the windows system. Thus, it would have helped me and will maybe help other to add to the following WSL instructions to the configuring docker subsection
Thanks and kind regards
Signed-off-by: Daniel Andreasen<EMAIL_ADDRESS>

Thanks very much @DKAndreasen!  Let me look at this a little more closely over the next day or two.  There are some nitpicky formatting items.  Unless you say otherwise, I'll push touchup commits to your branch.  Please let me know if you prefer otherwise.

@mikemckiernan you are more than welcome to fix formatting or any other issues you find. If you push them to me, I'll make sure to merge them in and update the pull request. Thanks!


Fixed incorrect detection of OpenAPI v3.* service contract.

Fixes #567.
If a specific format for the openApiSpecFormat property is set to either OpenApi30_Json or OpenApi30_Yaml, and the displayName property is also specified, the code tries to download and embed the service contract definition in order to update its title property.
This is to workaround an issue (#538) that Azure API Management seemed to not honor the displayName but always took that of the title property specified in the service contract.
Recently, this issue seems to have been resolved.
Nonetheless, the error reported in #567 is now fixed irrespective of whether the displayName is updated or not.

This project is now in "maintenance" mode. This means that no new features will be accepted and fixes will be limited to security fixes. We expect to retire the DevOps Resource Kit by the end of 2023. At that time, the DevOps Resource Kit repository will be archived and there will be no further updates.
While you are free to fork the DevOps Resource Kit yourself, we recommend that you migrate to the following products:

If you are using creator, switch over to using Bicep templates. Bicep is a descriptive language for describing infrastructure, fully supports all features of Azure API Management, and is covered in any support agreement that you have with Azure. You can find bicep modules and examples for handling API Management APIs at https://github.com/azure-samples/api-management-sample-apis.
If you are using extractor, switch your pipelines to use APIOps. APIOps applies the concepts of GitOps to API deployments. It is faster and more flexible than the DevOps Resource Kit.


This is only a suggestion, i want to help but you just want to prove your point. it's your player script you do want you want.

This is only a suggestion, i want to help but you just want to prove your point. it's your player script you do want you want.

Help? You need to check the definition. You were moaning about something so minor that no one out of the 8,000+ watchers has complained about. The whole point of providing the CSS and the ability to customise the HTML is so you can make it how you want. You have your opinion and that's fine but your opinion is no more important than anyone else's. Please understand that.


Improve the renderer's user interface and remove CSS code duplication

Provide more descriptive cursor shapes based on possible graph/interface interactions

Show a crosshair in box select mode
Show an alias cursor when hovering over a collapsed element

Provide a textual hint on what different keyboard and mouse buttons do in particular 'interaction modes'
Merge the updated CSS from the embedded overwork of the webclient back into the SDFV's main CSS to remove code duplication
Provide an error popover for invalid SDFGs

Zoom to the offending element(s)
Show an error popover describing the invalidity - this can be dismissed to continue working as usual

Adapt the box select rectangle's line width to the current zoom level

Thank you!


[Linux] SpotX-Bash currently broken with v<IP_ADDRESS>5

🧐 Have you fully read the README and viewed similar issues?

[X] I have read the README
[X] I have read the FAQ
[X] I have checked previous issues, open and closed
[X] I have completed all troubleshooting steps and the issue is not present on stock but returns after re-applying SpotX-Bash

Сountry of your account
Canada
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify version: <IP_ADDRESS>5
- OS: ZorinOS 17.2
- Shell: ZSH

📝 Description

Since this morning, Spotify doesn't work with SpotX. It works without

I uninstall SpotX, and Spotify works when uninstalled.
🖥 Terminal Input/Output
bash <(curl -sSL https://spotx-official.github.io/run.sh)
████╗███╗  ███╗ █████╗█╗  █╗  ███╗  ██╗ ████╗█╗ █╗
█╔══╝█╔═█╗█╔══█╗╚═█╔═╝╚█╗█╔╝  █╔═█╗█╔═█╗█╔══╝█║ █║
████╗███╔╝█║  █║  █║   ╚█╔╝██╗███╔╝████║████╗████║
╚══█║█╔═╝ █║  █║  █║   █╔█╗╚═╝█╔═█╗█╔═█║╚══█║█╔═█║
████║█║   ╚███╔╝  █║  █╔╝ █╗  ███╔╝█║ █║████║█║ █║
╚═══╝╚╝    ╚══╝   ╚╝  ╚╝  ╚╝  ╚══╝ ╚╝ ╚╝╚═══╝╚╝ ╚╝
Searching for client directory...
Found client Directory: /usr/share/spotify
Latest supported version: <IP_ADDRESS>5
Detected client version: <IP_ADDRESS>5
✔ Created backup
✔ Applied free-tier plan patches
✔ Enabled experimental features
✔ Finished
📸 Screenshots
No response

SpotX-Bash currently only supports 1.2.48.x on macOS.
The Linux release of v1.2.48.x which came in last ~24hrs is not yet ready for SXB.
SXB will be updated later today for Spotify v1.2.49.x on macOS and then eventually corrected for v1.2.48.x on Linux.

Since this morning, Spotify doesn't work with SpotX. It works without
...
I uninstall SpotX, and Spotify works when uninstalled.

I finally got around to checking today's <IP_ADDRESS>5 update on Linux and I can't replicate the issue you're seeing.
I'm wondering if it's a conflict with some previous app data?
Which version of Spotify was previously installed before upgrading to <IP_ADDRESS>5.. and was SpotX-Bash used on the previous version?
If you run the SpotX-Bash install and add the -c flag to clear cache.. any changes?
If -c doesn't resolve it -- have you tried the FULL uninstall steps mentioned in the Troubleshooting guide.. either the manual or automated script?
I'm curious what happens for you on a complete uninstall and fresh SpotX-Bash install -- ideally not launching STOCK Spotify prior to patching the client with SpotX-Bash.

Even with
bash <(curl -sSL https://spotx-official.github.io/run.sh) -c
I had the same results.
I have the same results with uninstallify and reinstalling using the command below
`bash <(curl -sSL https://spotx-official.github.io/run.sh) -c
████╗███╗  ███╗ █████╗█╗  █╗  ███╗  ██╗ ████╗█╗ █╗
█╔══╝█╔═█╗█╔══█╗╚═█╔═╝╚█╗█╔╝  █╔═█╗█╔═█╗█╔══╝█║ █║
████╗███╔╝█║  █║  █║   ╚█╔╝██╗███╔╝████║████╗████║
╚══█║█╔═╝ █║  █║  █║   █╔█╗╚═╝█╔═█╗█╔═█║╚══█║█╔═█║
████║█║   ╚███╔╝  █║  █╔╝ █╗  ███╔╝█║ █║████║█║ █║
╚═══╝╚╝    ╚══╝   ╚╝  ╚╝  ╚╝  ╚══╝ ╚╝ ╚╝╚═══╝╚╝ ╚╝
Searching for client directory...
Warning: Client not found. Starting interactive mode...
Latest supported version: <IP_ADDRESS>9
Requested client version: <IP_ADDRESS>5
✔ Started interactive mode [enter y/n]
Download & install client <IP_ADDRESS>5 deb pkg? y
Clear client app cache? y
Enable developer mode? y
Hide non-music categories on home screen? y
Set lyrics background color to black? y
############################################################################################################################################################################## 100.0%
✔ Downloaded and installing Spotify
✔ Installed in '/usr/share/spotify'
✔ Cleared app cache
✔ Created backup
✔ Applied free-tier plan patches
✔ Enabled developer mode
✔ Enabled experimental features
✔ Removed non-music categories on home screen
✔ Finished
`

Even with
bash <(curl -sSL https://spotx-official.github.io/run.sh) -c
I had the same results.
I have the same results with uninstallify and reinstalling using the command below

When you ran uninstallify then SXB afterwards.. did you have to sign back into Spotify after it launched? Just want to confirm things were properly deleted since you didn't share the uninstallify output.
if you re-run SXB with the -e flag to disable all experimental settings, does anything change?
bash <(curl -sSL https://spotx-official.github.io/run.sh) -ef

this can help narrow down if there's some experimental setting being used that your account doesn't like for some reason. if using -e doesn't change anything then we at least know it's not an experimental setting... but I still have no ideas what could be happening at the moment and am still unable to replicate this behavior. Both upgrading from the previous 1.2.47.x build.. and fully uninstalling everything and running the exact commands you used result in a fully working Spotify on my Arch, Debian and Ubuntu installs.

The issue seems to be about my network. If I enable a VPN, Spotify is working. If not, it doesnt work. Maybe my WAN IP was banned? I will take a look at my network.

Spotify asked me to relogin yes. I tried with -ef but the result is the same. It's really weird.

The issue seems to be about my network. If I enable a VPN, Spotify is working. If not, it doesnt work. Maybe my WAN IP was banned? I will take a look at my network.

Hmm.. it's even more strange because things seem to work with Spotify is NOT patched (right?) but breaks when patched with SXB. But... now it's fixed when VPN is used?!
I don't doubt this feedback.. Spotify can do some weird things.. but I can't recall ever coming across this exact error from any users.
If Spotify was broken, both with and without SXB, then it would make a little more sense.
But with the following requiring a VPN to work:
bash <(curl -sSL https://spotx-official.github.io/run.sh)

and then the following allows it to work WITHOUT a VPN:
bash <(curl -sSL https://spotx-official.github.io/run.sh) --uninstall

... I'm quite confused.
Please keep me posted of any findings and , if possible, be as detailed as you can.. and maybe this can get sorted.
I doubt your IP was BANNED by Spotify.. but there could be some sort of CDN issue or something.

is the VPN server you're testing with also in Canada.. or another region?
is your Spotify.com account set to Canada? https://www.spotify.com/account/profile/
you have no issues accessing Spotify.com and signing in (with VPN OFF)?
you have no issues accessing/using open.spotify.com web player (with VPN OFF)?

Perhaps the problem is related to this exp enableBrotliCompressionViaCDN

Spotify asked me to relogin yes. I tried with -ef but the result is the same. It's really weird.

The issue seems to be about my network. If I enable a VPN, Spotify is working. If not, it doesnt work. Maybe my WAN IP was banned? I will take a look at my network.

Hmm.. it's even more strange because things seem to work with Spotify is NOT patched (right?) but breaks when patched with SXB. But... now it's fixed when VPN is used?!
I don't doubt this feedback.. Spotify can do some weird things.. but I can't recall ever coming across this exact error from any users.
If Spotify was broken, both with and without SXB, then it would make a little more sense. But with the following requiring a VPN to work:
bash <(curl -sSL https://spotx-official.github.io/run.sh)

and then the following allows it to work WITHOUT a VPN:
bash <(curl -sSL https://spotx-official.github.io/run.sh) --uninstall

... I'm quite confused.
Please keep me posted of any findings and , if possible, be as detailed as you can.. and maybe this can get sorted. I doubt your IP was BANNED by Spotify.. but there could be some sort of CDN issue or something.

is the VPN server you're testing with also in Canada.. or another region?
is your Spotify.com account set to Canada? https://www.spotify.com/account/profile/
you have no issues accessing Spotify.com and signing in (with VPN OFF)?
you have no issues accessing/using open.spotify.com web player (with VPN OFF)?

I'm pretty sure that the problem comes from my PC because on my laptop, it's working. I played with routing table this weekend. I probably messed with something. My laptop is using Zorin OS too and it's working. When I activate VPN on my PC. It plays with routing table. That's why it's working I guess.

Perhaps the problem is related to this exp enableBrotliCompressionViaCDN
or with any other, sometimes they use convoluted descriptions
I would just compare the exp, what is enabled/disabled in the native client and compare it with what is in SpotX

As always, you've brought up some good ideas. Comparing remote config between stock and patched will be easiest route (assuming it's a remote config issue and not another patch made by SXB).

I'm pretty sure that the problem comes from my PC because on my laptop, it's working. I played with routing table this weekend. I probably messed with something. My laptop is using Zorin OS too and it's working. When I activate VPN on my PC. It plays with routing table. That's why it's working I guess.

is your laptop also running Linux
you previous mentioned that things WERE working with STOCK but WEREN"T working after SXB patched Spotify. Are you 1000% sure that is the case? As that variable changes what may be needed to sort this issue out.

If you turn OFF the VPN, exit Spotify and then run the SXB uninstall command, the home screen loads properly?
bash <(curl -sSL https://spotx-official.github.io/run.sh) --uninstall

If it DOES load properly, we need to debug your Spotify remote config values.. between stock/unpatched and after patching. I'll have to give you steps to gather these values on stock and patched.
If it DOESN'T load properly, then it would seem the issue is as you last described.. some network settings issue on your desktop.

Perhaps the problem is related to this exp enableBrotliCompressionViaCDN
or with any other, sometimes they use convoluted descriptions
I would just compare the exp, what is enabled/disabled in the native client and compare it with what is in SpotX

As always, you've brought up some good ideas. Comparing remote config and experimental features between stock and patched will be easiest route (assuming it's config/exp issue and not another patch made by SXB).

I'm pretty sure that the problem comes from my PC because on my laptop, it's working. I played with routing table this weekend. I probably messed with something. My laptop is using Zorin OS too and it's working. When I activate VPN on my PC. It plays with routing table. That's why it's working I guess.

You previously mentioned that things WERE working with STOCK but WEREN'T working after SXB patched Spotify. Are you 1000% sure that is the case? As that specific variable changes what may be needed to sort this issue out.
If you turn OFF the VPN, exit Spotify and then run the SXB uninstall command, the home screen loads properly next time you launch Spotify?
bash <(curl -sSL https://spotx-official.github.io/run.sh) --uninstall

and then running the following causes the home screen to NOT load again?
bash <(curl -sSL https://spotx-official.github.io/run.sh)

If the --uninstall command DOES load the Spotify home screen properly, we need to debug your Spotify remote config values.. between stock/unpatched and after patching. I'll have to give you steps to gather these values on stock and patched.
If it DOESN'T load properly, then it would seem the issue is as you last described.. some network settings issue on your desktop.

Content is loading on STOCK

But unable to play anything as it detects me offline
With PATCH, it's constantly loading.
I reapplied the patch and it's still loading. If I activate VPN again, it's working. When I deactivate the VPN. It's not working anymore. So it's a routing problem... Thanks guys for your support!

Since this issue seems to be caused by user editing routing tables on their device this issue will be closed for now.

I have the same problem! maybe this is releated to the countries? Cause I am facing similar ussues with a patched android version of spotify (only works with vpn)

I have the same problem! maybe this is releated to the countries? Cause I am facing similar ussues with a patched android version of spotify (only works with vpn)

Technically this could be related to the user's country... but only due to how the network's in those countries operate with GitHub servers. The issue discussed in this thread is the user having an issue connecting to the GitHub servers to download this script and nothing related to Spotify at all.
Your issue with the Spotify mod on Android is 100% unrelated to this. And if the Android mod was properly patched, it would be working with issues. Instead, the current mods only provide temporary "band-aids" to fix an old version of Spotify and make it appear as new (spoofing the client version).. therefore this will break every time a new update is pushed out by Spotify requiring a new mod APK with new version spoof. A proper mod would not need a version spoof and fully work without the missing playlists, random shuffling, sign in issues etc etc.
To summarize, your issue is unrelated to the issue in this thread and unrelated to SpotX/SpotX-Bash -- there is no need for further discussion here.

Technically this could be related to the user's country... but only due to how the networks in those countries operate with GitHub servers. The issue discussed in this thread is the user having an issue connecting to the GitHub servers to download this script and nothing related to Spotify at all

I have the problem of spotify no loading, like in the screenshot shared by @fegauthier in the first post. How is this related to github and not with spotify servers?

Technically this could be related to the user's country... but only due to how the networks in those countries operate with GitHub servers. The issue discussed in this thread is the user having an issue connecting to the GitHub servers to download this script and nothing related to Spotify at all

I have the problem of spotify no loading, like in the screenshot shared by @fegauthier in the first post. How is this related to github and not with spotify servers?

Yes, my mistake.. I confused this Issue with another recent Issue that was unrelated. Apologies.
However, the issue in this thread.. as shown by all the comments.. was due to a local computer routing configuration issue and unrelated to the users country and external network -- they had another computer on same network and same account that worked without issue.
If you have a new issue which is confirmed to only be happening only after SpotX-Bash is applied and you've already attempted all troubleshooting steps here, open up a new Issue with as much detail, screenshots of SpotX installation etc as possible.

I have tried it with two computers in two different networks with the same results (one of them fresh install). O will do some tests and open a new issue if it still do not work. Thanks


Need to add UI to List all inventories

As an inventory manager
I need a UI for List
So that I could see all the inventory items currently recorded
Details and Assumptions

We will use the sample UI code in lab-flask-bdd as an example

Acceptance Criteria
Given I am the inventory manager
When I go to the "Inventory Home Page" - "/inventories"
Then I should see a list of items currently in my inventory

As the query method is part of the List method, so a single button with two functionalities is enough.


Design suggestion for better type check of has-aux

Currently, various optimizers accept a generic Callable function and parameters for specifying how it should be used:
class LBFGS:
  fun: Callable
  value_and_grad: bool = False
  has_aux: bool = False

So, the user has to carefully initialize making sure that these three variables are consistent.
Instead, it might be a better user experience to have:
RealNumeric = jax.Array | float

class _ValueAuxAndGradProtocol(Protocol, Generic[T]):
    def __call__(self, x: T, /, *args: Any, **kwargs: Any
                 ) -> tuple[tuple[RealNumeric, Any], T]:
      ...

class _HasAuxProtocol(Protocol, Generic[T]):
    def __call__(self, x: T, /, *args: Any, **kwargs: Any
                 ) -> tuple[RealNumeric, Any]:
      ...

class ValueAuxAndGrad(Generic[T]):
  fun: _ValueAuxAndGradProtocol

  def __call__(self, x: T, /, *args: Any, **kwargs: Any
               ) -> tuple[tuple[RealNumeric, Any], T]:
      return self.fun(x, *args, **kwargs)

class HasAux(Generic[T]):
  fun: _HasAuxProtocol

  def __call__(self, x: T, /, *args: Any, **kwargs: Any
               ) -> tuple[RealNumeric, Any]:
      return self.fun(x, *args, **kwargs)

class LBFGS(Generic[T]):
  fun: Callable[[T], RealNumeric] | ValueAuxAndGrad[T] | HasAux[T]
  # No need for flags!

This way, the function parmeters and return values are type-checked in all three cases.  Also, there's no need for any flags.  Instead of
LBFGS(f, has_aux=True, value_and_grad=True)

you can do
LBFGS(ValueAuxAndGrad(f))  # type-checked

What do you think?

(Just discovered this library by the way, and it's a real gem!!)

Thanks a lot, this is an interesting suggestion.
One advantage of has_aux and value_and_grad is that those are familiar keywords for JAX users. I'm a bit concerned that your approach would make JAXopt too "frameworkish".
But we are aware that we should improve error checking, i.e., make sure that fun's output is compatible with what has been specified in the has_aux and value_and_grad options.

@mblondel That's fair enough, but the benefit to doing this in Jax is smaller since it's just one flag whereas here you hav two flags, and a somewhat complicated interacting that requires reading the documentation carefully when using them (if you only use one of the flags, which one are you allowed to use?—it's not obvious without reading the docs).  So that's why I proposed this since instead of reading the documentation to understand what code does, it becomes self-documenting.
Also, since you just generalized the has-aux/value-and-grad to all the optimizers, this woudl be a good time to make any architectural changes before people start using the flags.

I'm not saying your idea is bad but I would like to understand its pros and cons and I would like JAXopt to integrate well in the JAX ecosystem...
If we adopt objects to represent functions, this could also potentially be useful so that functions know how to initialize the parameters.

Thanks for starting the discussion in google/jax#12948. This would have the advantage of being able to use jax.* operators instead of creating new ones in JAXopt.

@mblondel Yeah, I started the discussion, but I wasn't sure if I should leave it open since the benefits are smaller in Jax (as I explained in my last comment).  I'll reopen and maybe someone from the Jax team will comment though.  There may be benefits that I'm missing.

This would be useful to "annotate" the returned Callable with its structure.


Add an example demonstrating integration with fluent for localization

This is an important wrinkle, and it would be great to showcase how this fits together.

The way I do this is implement Display for Id that writes Id's in hex 0xDEADBEEF. I then can insert these into labels with a prefix:
"item0xDEADBEEF" or pass them as tokens to fluent strings "crafting?item_type=item0xDEADBEEF".
Then I have a system that resolves all Text components that also have a UiLocalize component. Resolution involves first replacing the hex with the matching manifest entry's name "crafting?item_type=wood" and then passing that to bevy_fluent's content fn.
There are probably steps that could be removed, maybe the interim hex encoding, but I found that's useful for eyeballing problems.
Another neat thing you can do is mark any strings that fallback with a custom TextColor, so if you're playing in French, strings that fail to localize in French and fallback to English will show up red or whatever.


Upload strategy documentation

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Partially Fixes #2686
Description
Clear and concise code change description.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

why are there test changes in this pr? do you need to sync to the latest code?

This is a code refactor PR hence the changes. The title is confusing.

@MJ1998 can you pls sync this pr so that the code change is no longer included in the pr.
and pls address the comment in the readme.md file.
thx!


[tr] Variables-based models

Turkish translation has been completed. Ready for the review!

Thank you for your fantastic work @basakbuluz! Just put the label on!

Thank you so much for review on 'Variables-based models'. @ayyucekizrak ✔
All proposed corrections have been made ✌ @shervinea

Thank you very much for your hard work @basakbuluz and @ayyucekizrak! Merging the PR right now.

Thanks, @shervinea we are waiting for sharing the Turkish version of the awesome cheatsheets!


Add parsing vibration modes option.

Extract vibration modes from OUTCAR;
Output the modes info in molden format or vesta format.

Molden format requires atomic unit, ie, 1 au = 1 bohr.

Be care of the duplicated freq mode output when NWRITE = 3

Implemented in #13


Push tigris-debug to Quay.io as well

Describe your changes
Modified /metadata-action and added Quay.io login in our build-and-push-image workflow so We will push tigris-debug image to Quay.io registry as well.
How best to test these changes
Added debug image label to run the push-debug-image job.

Codecov Report
Patch coverage has no change and project coverage change: -0.06 :warning:

Comparison is base (2012fe7) 58.89% compared to head (f1e8391) 58.83%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #906      +/-   ##
==========================================
- Coverage   58.89%   58.83%   -0.06%
==========================================
  Files         180      180
  Lines       20565    20568       +3
==========================================
- Hits        12111    12102       -9
- Misses       7452     7461       +9
- Partials     1002     1005       +3

Impacted Files
Coverage Δ

server/middleware/measure.go
82.92% <0.00%> (-2.44%)
:arrow_down:

server/services/v1/database/query_runner.go
66.21% <0.00%> (-1.36%)
:arrow_down:

server/services/v1/auth/gotrue.go
0.00% <0.00%> (ø)

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

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

Describe your changes
Modified /metadata-action and added Quay.io login in our build-and-push-image workflow so We will push tigris-debug image to Quay.io registry as well.
How best to test these changes
Added debug image label to run the push-debug-image job.

Nit: saying /metadata-action makes it sound like we have changed the Tigris API. Could we change the description to something like "Modified the build to push debug images to quay.io in addition to dockerhub, as we intend to serve all deployments from quay.io"? This would give people some background on why we are doing it instead of describe the mechanics on how that is done which is visible through the PR.


Any cases to add @psalm-pure for really pure functions?

In some cases it may be useful to use few functions inside pure context.
Example:
/**
 * @psalm-immutable
 */
class Foo
{
    /**
     * @var list<Bar>
     */
    public array $bars;

    public function __construct(Bar $first, Bar ...$rest)
    {
        // Impure method call issue occurred here (because Foo is immutable, so requires pure context)
        $this->bars = asList([$first], $rest);
    }
}

Of course, there are more ways to compile list, but if we have asList why wouldn't we use it whenever we want?
I was just thinking about function asList, maybe there are few others function that are actually pure but not annotated yet

Are they really pure functions? Consider this example:
$generator = (function () {
    yield 1;
    yield 2;
    yield 3;
    return 4;
})();

$l1 = asList($generator);
$l2 = asList($generator);

You will get Uncaught Exception: Cannot traverse an already closed generator because of you can't rewind generators.

I missed the part that iterators are to pure (we also may have iterator that does io-operations)
Also, I think, it couldn't be mutation-free neither.
Thanks for your reply, I thinks this issue is resolved


⚠ Redacted has degraded performance

In 415180e, Redacted ($RED) experienced degraded performance:

HTTP code: 200
Response time: 5633 ms

Resolved: Redacted performance has improved in 46a8e39 after 8 minutes.


Create an admin guide for Atlassian integrations

cc: @lfbrock as FYI

Information looks good to me.  Wondering if this should live under the Integrations Guide instead or https://docs.mattermost.com/guides/administrator.html#mattermost-integrations (we should consider combining these two as well in the future).  Deployment already has so much in it and this one does not seem to fall into that category as easily as integrations.

@wiersgallak I envision this section be a generic overview of how to integrate with Mattermost, and the Integration Guide being more specific features/functionality supported by Mattermost.

Long-term (in a couple of months) I'd envision having
Admin > Mattermost Integrations
   Atlassian Tools
   CI/CD Tools
   Incident Response & Monitoring
   Audio, Video & Screenshare
   Bots
   Productivity Tools

and
Integrations Guide
   API
   Incoming Webhooks
   Outgoing Webhooks
   Slash Commands
   Plugins (Beta)
   Developer Toolkit
   etc...

Let me know what you think, though.

Should this be in a table of contents?

@amyblais Good catch, should be, PR here https://github.com/mattermost/docs/pull/2746