[Bug]: Filter People task,  Full Name field not working properly

Steps to reproduce the bug
When I search for C. Hugh Fraser Rowell in the Filter People task, by entering the complete name in the *Full Name* field, I don't get any results.
If I complete the *Full Name* field only with: Rowell, then I do get results.
I have tried many alternatives for completing that field and also putting only "C. Hugh" in the *First name* field... but I do not get results.
The only ways it works is when I use the complete first name in the *First Name* field and only the last name in the *Full Name* field.

Screenshot

Expected behavior
I expect to get results when using any part of the name combined, such as Hugh Rowell, in the Full Name field.
Specially when working with certain names in which it is not easy for me to distinguish between the first name and the last name.
Additional Screenshots
SANDBOX - build 8f41d3fc8 on 2023-05-02T14:53:23Z Issues
Environment
Sandbox
Sandbox Used
sandcastle
Version
build 8f41d3fc8 on 2023-05-02T14:53:23Z
Browser Used
chrome

General search pattern for people is "Last name, First name" or "Last name, Initiales"

What happens if I don't know where to put the comma? Such as in: RODZAY BIN HAJI ABDUL WAHAB

Well, you will need to play. With such complete name, it is usually not a problem. Coma is optional. You can always do partial search. In this particular case, I would try "Wahab, R.B.", I am confident, that I would get a result. It is just experiment. I am using people search for several years, and it is very rare when I cannot find the name from the first attempt. The most complicated cases are diacritical marks, in such cases, I would try to avoid those if the name is long enough for example for Stål, Carl, I will search for "St l, C."

you example is quite unique. Search just for "Wahab" returns a single record in the database, you do not even need initials. "Rodzay" do not return anything. Like any search filters, you need to think the most unique part of the name. For the species name, if I search for "alba" I expect to see hundreds of the results. If I search for "R. alba" I will restrict the search to genera which start with R.. If I search for "Ro. alba" I will restrict it even more. For "cockcrofti" iI do not need generic name, since I have only a single species epithet like this in the database. The same with the authors, You need to find a unique combination. Often it could be abbreviated. For example I will search "Ossian" for Ossiannilsson, not even initials, because the last name is so unique, but you definitely need initials or first name if you search for "Zhang"

Actually, I prefer searching by initials. It does not need to be a first Initial, it could be a second initial, as long as combination is unique. There are a lot of people already in the DB, and for many, I do not have have full name spelled. If I find a person with initials only, and I know it is the same person. I will go to editing, and update the first and last name, if I have those. This will make my search easier next time. If I have very short last name with diacritical marks, which could be difficult to find, I will add an alternative spelling of the name without diacritics, to make my next search easier. If alternative spelling is available, it is also used for matching.

The general order is the same how TW represents the data. See an example below.
So you can search for "Linnaeus, Carolus", "Linnaeus, C.", "Linna C", "Lin Car", "nnaeus lus", and in all cases you should get the result.

The nice think also, if you enter the name properly, and you did not find the result, you can click "Add new", and the person will automatically created in a proper form for you. I cases of doubt or complicated names (with prefix or suffix) you can use "Expand" button, to manually adjust the name.

@proceps Thanks for the help.  I think we need to consciously start adding this type of help to docs.taxonworks.org and pointing the issue to the documentation added there rather than documenting in the issue and/or we need to consciously sweep through issues tagged with question and migrate the help to docs, noting in the comments when that happens.
Ping @debpaul.


Prefix seed_everything log messages with rank info

🚀 Feature
The message here is printed per rank on purpose https://github.com/PyTorchLightning/pytorch-lightning/blob/bfa8b7be2d99b980afa62f5cb0433326bcfd2ef0/pytorch_lightning/utilities/seed.py#L69-L71 but this confuses users who are not aware of the difference
Pitch
Prefix the message with the rank just as we do for EarlyStopping https://github.com/PyTorchLightning/pytorch-lightning/blob/bfa8b7be2d99b980afa62f5cb0433326bcfd2ef0/pytorch_lightning/callbacks/early_stopping.py#L256-L261
the above staticmethod should be pulled into a common utility function.

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @borda @awaelchli

@carmocca I would like to work on this.

Just noticed that seed_everything does not have a Trainer reference. I guess we should try to fall back to checking environment variables in that case. Thoughts @awaelchli?

We have a utility function _get_rank() in utilities/rank_zero.py that accesses the environment variables. We can use that. Of course, this wouldn't capture all (custom) cluster environments that get specified through trainer, as @carmocca mentioned. In such a case, the prefix will falsely display rank 0 for all messages.

If it steels needed, could I take it? :)

@MrShevan go for it.


history-substring-search: plugin not being loaded on startup

Hi,
I recently installed oh-my-zsh on my new notebook with Ubuntu 17.10 (Artful), zsh version 5.2.
However, I always have to source the history-substring-search plugin manually:
source .zsh/oh-my-zsh/plugins/history-substring-search/history-substring-search.plugin.zsh
My plugins line looks like this:
plugins=(git compleat dirhistory lol urltools history-substring-search)
I am using the same configuration on seven different systems, including Ubuntu 16.04, Arch linux and different Debian versions without problems, but since Artful I have to manually load that plugin.

Please run this and post the resulting file: zsh -xvic 'exit' &> ~/omz-debug.log.


Message_text error in inline mode

Hello! I've tried to realise inline mode to my bot, but Telegram sends me an error, something like "no message_text field". I assume it is that I am sending InlineQueryResultArticle with some text and urls for user, so InlineQueryResultNew should have field message_text.
see https://core.telegram.org/bots/api#inputtextmessagecontent
and after I added it in InlineQueryResultNew like this:
[JsonProperty("message_text", Required = Required.Always)]
public string MessageText { get; set; }
Inline mode works perfectly and no more errors.
so consider changing InlineQueryResultNew.cs
if you need detailed error text, i think i can provide it...

have you used the InputMessageContent property on InlineQueryResultArticle?

you can also look at the comments here

I used InlineQueryResultArticle

the important part is that you need to specify InputMessageContent, that is what is send by the user, if he selects a result


[#223] Remove unused IAM policies from shared-vpc-gke example

@juliocc @ludoo I don't find a sense to those IAM bindings, but please let me know if I'm missing something :)

This is my understanding:

roles/container.developer: required from the bastion to deploy to/query the cluster
roles/logging.logWriter, roles/monitoring.metricWriter, roles/stackdriver.resourceMetadata.writer: required by the nodes to send metrics/logs to Cloud Ops

@ludoo can you confirm

roles/container.developer: required from the bastion to deploy to/query the cluster

yes

roles/logging.logWriter, roles/monitoring.metricWriter, roles/stackdriver.resourceMetadata.writer: required by the nodes to send metrics/logs to Cloud Ops

yes

But Luca's point is that those are just cloned from the gke service project, and rference the gke node SA, in the gce project so they can be safely removed.

Yes, indeed @juliocc I see the same roles configured in the GKE project, where insteadI think they make sense.
I also brought up a cluster without those roles and I see everything working correctly.


Struggles with kubelet.service

I have compiled kubernetes from source (kubeadm, kubelet, kube-apiserver, kube-proxy, kube-scheduler).  Then I follow the documentation at https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/ - Bootstrapping clusters with kubeadm - to setup my cluster.  The documentation contains first the chapter “Creating a cluster with kubeadm”, where it is proposed to run just kubeadm init.  kubeadm init checks if the kubelet service is installed and active.
Then follows the chapter “Configuring each kubelet in your cluster using kubeadm”.  The latter discusses very briefly how to start kubelet using systemd integration.
In particular it says at https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration/#the-kubelet-drop-in-file-for-systemd:

kubeadm ships with configuration for how systemd should run the kubelet. Note that the kubeadm CLI command never touches this drop-in file.
This configuration file installed by the kubeadm DEB or RPM package is written to /etc/systemd/system/kubelet.service.d/10-kubeadm.conf and is used by systemd. It augments the basic kubelet.service for RPM or kubelet.service for DEB:

[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf
--kubeconfig=/etc/kubernetes/kubelet.conf"
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml"
# This is a file that "kubeadm init" and "kubeadm join" generate at runtime, populating
the KUBELET_KUBEADM_ARGS variable dynamically
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably,
# the user should use the .NodeRegistration.KubeletExtraArgs object in the configuration files instead.
# KUBELET_EXTRA_ARGS should be sourced from this file.
EnvironmentFile=-/etc/default/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS

kubeadm ships with configuration for how systemd should run the kubelet. Note that the kubeadm CLI command never touches this drop-in file.
This configuration file installed by the kubeadm DEB or RPM package is written to /etc/systemd/system/kubelet.service.d/10-kubeadm.conf and is used by systemd. It augments the basic kubelet.service for RPM or kubelet.service for DEB:

The above information is not correct.  The source code of kubeadm/kuebernetes/kubelet does not contain configuration how systemd should run the kubelet.  This information is provided by the package managers (red hat, debian).

Since configuring correctly the systemd service for the kubelet must be performed before kubeadm init is run, the chapter about kubelet.service must be before the chapter “Creating a cluster with kubeadm”.

Please include a full kubelet.service file, which shall be utilized, so that kubeadm init will not produce mystic errors.  This service shall be usable on Linux from Scratch systems, where no DEB or RPM packages are written.

This configuration file installed by the kubeadm DEB or RPM package is written to /etc/systemd/system/kubelet.service.d/10-kubeadm.conf and is used by systemd. It augments the basic kubelet.service for RPM or kubelet.service for DEB:

implies that you need to install kubeadm from a package to benefit from that feature.
I don't see a bug here @dilyanpalauzov
If this section could be more clear, we're keen to understand how.
/sig cluster-lifecycle
/remove-kind bug
/priority awaiting-more-evidence

By the way: these kubeadm pages are not yet localized into Russian and Ukrainian. Some parts of the docs already are, though:

Русский
Українська

If you happen speak either of those languages and would like to help out, I'm sure the project would appreciate that (see https://kubernetes.io/blog/2019/04/26/how-you-can-help-localize-kubernetes-docs/ for a starting point).

I want to install kuberenetes on a Linux from Scratch system.  It does not have packages.  The documentation shall state, how the final kubelet.service should like (e.g. does it include Restart=), as if packages (DEB, RPM) were never invented.

You'd like to have a document that explains how to configure systemd when building kubeadm from scratch?
To me, that sounds like a feature request more than a bug. We could consider it but I do not think it would be a priority for the Kubernetes project.
Documenting a wholly “from scratch” Kubernetes build is rather a daunting prospect (I say this as a technical lead for SIG Docs).

Yes, I want to have a document, which describes how to setup kubernetes from scratch.  One aspect is getting the right systemd service file for kubelet, so that it can be used by kubeadm init.  Another aspect is how to utilize kube-apiserver, kube-controller-manager, kube-proxy and kube-scheduler (and etcd, coredns), once they are compiled from kubernetes source code.

In any case, by its structure, the documentation shall first talk about the kubele-service drop-in, before mentioning kubeadm init.

If you want to use kubeadm, you'd understand how the docker images for the control plane components are built. You can then build your own images and tell kubeadm to use your own image registry.

If you go to https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
Under inatalling kubeadm, kubectl...there is a tab called "Without a package manager" and it has steps to download all systemd files. Isn't that what you are looking for?
The "configuring a kubelet" document is more about implementation details. If you want something changed in these docs PRs welcome.

I'm tempted to triage this as
/kind support
but absolutely, we welcome PRs and also sub-issues that clearly describe what changes might help.

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ does indeed contain information where to download the systemd service files for kubelet.  However this is mixed together with instructions how to download the compiled binaries.  Since I have compiled the binaries by myself, I am not interested in this information and I have overseen it.  Moreover, the file is split into two (base kubelete.service and a drop-in file) which adds unnecessary complexity.
I would prefer, if the kubelet.service file is included in the webpage.  Thus it will be harder to overee and, once the documentation is downloaded, searching in it with grep can find results.

@dilyanpalauzov would you be willing to revise the issue description to describe the enhancement you'd like to see? It's also OK to open a new issue and link it to this one.

My gut feeling is that if you want to build Kubernetes (and components) from source, you'd be better looking on https://k8s.dev/
We could consider adding more guides there. That's a lot of work across multiple special interest groups, and I don't think the appetite is there.


Sound Delay Gets Bad While Frontend Developing

The sound of the notes begins to get more and more delayed as the browser is not loading during the frontend development.

I believe I found out how to reproduce the lag, but not why it happens.
The lag happens when you create an ensemble through the interface. Going into an ensemble this way makes the sound play way behind. However, if you refresh the page or navigate to a room using a link instead, there is no sound delay.

I'll investigate a solution for the audio lag once PR https://github.com/JoshWannaPaas/eight-bar-line/pull/52 goes into main.

Mostly fixed in #64


ISSUE-407: OpenShift OKD will not run the pulsar-manager container as a root user

Original Issue: apache/pulsar-manager#407

OpenShift OKD does not support running containers as a root user. Is it possible to change the Dockerfile in a way that is it not running as a root user? Otherwise these errors will occur:
Starting Pulsar Manager Front end nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied) 2021/08/11 11:27:15 [warn] 8#8: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:3 2021/08/11 11:27:15 [emerg] 8#8: mkdir() "/var/tmp/nginx/client_body" failed (13: Permission denied) Starting Pulsar Manager Back end touch: /pulsar-manager/supervisor.sock: Permission denied chmod: /pulsar-manager/supervisor.sock: No such file or directory Start Pulsar Manager by specifying a configuration file. Traceback (most recent call last):   File "/usr/bin/supervisord", line 11, in <module>     load_entry_point('supervisor==3.3.4', 'console_scripts', 'supervisord')()   File "/usr/lib/python2.7/site-packages/supervisor/supervisord.py", line 357, in main     go(options)   File "/usr/lib/python2.7/site-packages/supervisor/supervisord.py", line 367, in go     d.main()   File "/usr/lib/python2.7/site-packages/supervisor/supervisord.py", line 71, in main     self.options.make_logger()   File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 1423, in make_logger     stdout = self.nodaemon,   File "/usr/lib/python2.7/site-packages/supervisor/loggers.py", line 346, in getLogger     handlers.append(RotatingFileHandler(filename,'a',maxbytes,backups))   File "/usr/lib/python2.7/site-packages/supervisor/loggers.py", line 172, in __init__     FileHandler.__init__(self, filename, mode)   File "/usr/lib/python2.7/site-packages/supervisor/loggers.py", line 98, in __init__     self.stream = open(filename, mode) IOError: [Errno 13] Permission denied: '/pulsar-manager/supervisord.log'

+1


Acme challenge 404 error

I'm getting this error while running 'letsencrypt-vesta admin mydomain.com':

Failed authorization procedure. www mydomain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www mydomain.com/.well-known/acme-challenge/some gibberish [Server IP]: 404, mydomain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http:// mydomain.com/.well-known/acme-challenge/some gibberish [Server IP]: 404
IMPORTANT NOTES:

The following errors were reported by the server:
Domain: www mydomain.com
Type:   urn:acme:error:unauthorized
Detail: Invalid response from http://www mydomain.com/.well-known
/acme-challenge/some gibberish
[Server IP]: 404
Domain: mydomain.com
Type:   urn:acme:error:unauthorized
Detail: Invalid response from http:// mydomain.com/.well-known/acme-
challenge/some gibberish
[Server IP]: 404

The same exact setup while using CentOS 6 instead of CentOS 7 it works fine and it generates cert. Only when using CentOS 7 i get this issue. I turned off the server firewall just in case.

I solved this by using 'letsencrypt-auto' and 'public_html' as webroot. 'letsencrypt-vesta' didn't work for me so i had to apply it via the control panel manually.

I had the same problem but after checking my config it worked. You get this errors when your apache and/or nginx config isn't set correctly. The ACME client cannot reach your server and the authentication fails. Retry to config your setup from the readme and it should work.

I cant get this to work either, you should probably fix something.
I am running CentOS 7 with latest VestaCP

I have the same problem on Ubuntu 14.04. How to solve this?
Thanks,

I have the same problem, also Ubuntu 14.04, this is my stpl for nginx:
server {
    listen      %ip%:%web_ssl_port%;
    server_name %domain_idn% %alias_idn%;
    root        %docroot%;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/%domain%.log combined;
    access_log  /var/log/nginx/domains/%domain%.bytes bytes;
    error_log   /var/log/nginx/domains/%domain%.error.log error;
    ssl         on;
    ssl_certificate      %ssl_pem%;
    ssl_certificate_key  %ssl_key%;
	if ($host != '%domain%' ) {
    		rewrite      ^/(.*)$  https://%domain%\$1  permanent;
  	}
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }
   location /.well-known/acme-challenge {
        alias /etc/letsencrypt/.well-known/acme-challenge;
        location ~ /.well-known/acme-challenge/(.*) {
            add_header Content-Type text/plain;
        }
    }
    location / {
        if ($request_uri !~* "(?:\?)|(?:\.\w+$)|(?:\/$)") {
            return 301 $request_uri/;
        }
        try_files $uri @rewrite;
        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
            expires     max;
        }

    }
    location @rewrite {
        rewrite ^/(.*)$ /index.php?q=$1;
    }
	location ~ \.php$ {
           try_files $uri =404;
           fastcgi_pass %backend_lsnr%;
           fastcgi_index index.php;
	       fastcgi_param SCRIPT_FILENAME $request_filename;
           include /etc/nginx/fastcgi_params;

        }
    error_page  403 /error/404.html;
    error_page  404 /error/404.html;
    error_page  500 502 503 504 /error/50x.html;
    location /error/ {
        alias   %home%/%user%/web/%domain%/document_errors/;
    }
    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
    include     /etc/nginx/conf.d/phpmyadmin.inc*;
    include     /etc/nginx/conf.d/phppgadmin.inc*;
    include     /etc/nginx/conf.d/webmail.inc*;
    include     %home%/%user%/conf/web/nginx.%domain%.conf*;
}

and tpl :
server {
    listen      %ip%:%web_port%;
    server_name %domain_idn% %alias_idn%;
   location /.well-known/acme-challenge {
        alias /etc/letsencrypt/.well-known/acme-challenge;
        location ~ /.well-known/acme-challenge/(.*) {
            add_header Content-Type text/plain;
        }
    }
    return 301 https://%domain_idn%$request_uri;
}

I will try spinning up a couple of test servers to try to recreate this as soon as I can.  I'm primarilly using CentOS 6.x boxes right now.  I did some testing on CentOS 7 and on Ubuntu before the last update was published, but I may not have hit all the right use cases.
In order to help me in testing, please update this ticket with the following:

OS and version
Whether you're using the standard Apache-Nginx config, or an Apache-only or Nginx-only configuration.
If using both Apache and Nginx, which server did you configure the to handle acme-challenge requests?

Also, if using Nginx to handle the acme-challenge, be sure that you've properly configured all of your sites. Unlike Apache, Nginx doesn't have the concept of a "global configuration," so the alias to the acme-challenge directory needs to be added to each and every site's configuration.  This is done by adding the configuration listed in the README file to any and all relevant Nginx templates in /usr/local/vesta/data/templates/web/nginx (and subdirectories thereof) AND running [[v-rebuild-web-domains USERNAME]] for every users AND restarting nginx to make it all take effect.

I'm also getting the same error. I'm using nginx only
I did the following to troubleshoot the problem

I checked the /etc/letsencrypt/webroot directory and it was empty.
I created a file /etc/letsencrypt/webroot/test.html and visited mysite.com/.well-known/acme-challenge/test.html and it opens, but the acme challenge url always returns a 404.

So I suppose the challenge file is not being written to the /etc/letsencrypt/webroot/ directory

same issue

i'm using the vesta default apache+nginx configuration and solved the issue by
cd /home/admin/web/mydomain.tld/public_html
and only after that I ran letsencrypt-vesta admin mydomain.tld

@mikhailnov
Sorry, I am having the problem but I couldnt understand what you mean by
"cd /home/admin/web/mydomain.tld/public_html"
just by CD'ing into the path of your domain resolved it ?!
or do you mean you created ( or removed ) a file ? ( index.html ? )
Thanks for any help !

I meant that I first changed the terminal working directory to that one and ran the command from there. But i'm not sure whether it will work now.
Try installing vim-common package

Sorry, I meant that the last Vesta release has a built in capability to obtaain Letencrypt certificate and it has a command line interface. Install vim-common and use it (or the web GUI). Installing vim-common solves error 400.

thank you @mikhailnov - it worked.

What exactly worked?
15 декабря 2016 г. 16:56:49 GMT+03:00, integrateddigital<EMAIL_ADDRESS>пишет:

@mikhailnov
Sorry, I am having the problem but I couldnt understand what you mean
by
"cd /home/admin/web/mydomain.tld/public_html"
just by CD'ing into the path of your domain resolved it ?!
or do you mean you created ( or removed ) a file ? ( index.html ? )
Thanks for any help !
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/interbrite/letsencrypt-vesta/issues/11#issuecomment-267333036

--
Простите за краткость, создано в K-9 Mail.

I resolved this issue by removing:
include /home/impact/conf/web/(s)nginx.domain.com.conf*;

the s from snginx.conf when including the automatically created files by vesta.
Hope that helps.


Add custom column example for existing Kind

Hey, I just made a Pull Request!

Related Issue: #27238
Note: I might have completely missed the point with my example. Should the user only be able to modify the App.tsx, in which case we want to pass in a CatalogTableColumnsFunc which checks for the User entity and adds the columns instead of an array to the CatalogIndexPage component? Or is what I wrote a valid approach too? In both cases the desired behaviour can be achieved.
Implemented User Email column based on example code:

Changelog

Added new examples to software-catalog/catalog-customization.md doc on how to create or modify columns for existing Kinds.
Clarified/reworded existing sections

Thank you for your work on this, @jescalada 🙏 Would it be possible to adapt this procedure to a Backstage app layout created using npx @backstage/create-app? This is the recommended approach for creating Backstage apps, and users will not have a /plugins/catalog/* folder.

I suspected this was the case 😅 Thankfully it only required redefining the email column definition on the App.tsx! Now the whole example only requires editing the App.tsx file.

Thanks for the review! I committed the requested changes.

Pinging @vinzscam for visibility :)


Bug fix: dropdown sometimes wouldn't close after the blur event

On blur the term is set to an empty string, which triggers the subscribe function if the term wasn't empty before. Before my change resultsVisible would then result in true, even if the select isn't focused anymore.

Codecov Report

Merging #15 into master will increase coverage by 1.39%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   89.45%   90.84%   +1.39%
==========================================
  Files           2        2
  Lines         294      295       +1
  Branches       70       72       +2
==========================================
+ Hits          263      268       +5
+ Misses         31       27       -4

Impacted Files
Coverage Δ

src/app/iq-select2/iq-select2.component.ts
91.25% <100%> (+1.71%)
:white_check_mark:

Continue to review full report at Codecov.

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


Azure Ear: usb.core.USBTimeoutError: [Errno 110] Operation timed out on Device Authentication

When I install the device, I always get "Operation time out"

I connect the USB
I allow udev access by adding SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0673", MODE="666" and reloading it
I run the Azure Ear example

Stack:
➜ python azure-percept-test.py
Authenticating sensor...
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/site-packages/azure/iot/percept/_device_authentication.py", line 94, in start_authentication
    read_msg = dev.read(self.read_endpoint, 5120)
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/site-packages/usb/core.py", line 1029, in read
    ret = fn(
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
    return self.__read(self.lib.libusb_bulk_transfer,
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/site-packages/usb/backend/libusb1.py", line 954, in __read
    _check(retval)
  File "/home/user/.pyenv/versions/3.8.12/lib/python3.8/site-packages/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

Not sure if relevant, but I have: "bcdDevice              :    0x8 Device 0.08"

Update: It progresses, but fails at "Authentication Failed" now:

Note: I patched the write part to use _send_to_usb to resolve the operation time out

https://github.com/christian-vorhemus/azure-percept-py/blob/main/iot/percept/_device_authentication.py#L92
Authenticating sensor...
Msg length: 2
Write: [119, 1] 2
Read: array('B', [119, 2, 22, 3, 3, 0, 153, 1, 0, 0, 149, 3, 3, 255, 255, 255, 255, 48, 91, 54, 136, 87, 73, 68, 226, 183, 90, 172, 215, 96, 16, 29, 143, 107, 200, 33, 157, 84, 35, 158, 163, 6, 185, 124, 47, 0, 0, 14, 192, 44, 192, 48, 192, 43, 192, 47, 0, 157, 0, 156, 0, 255, 1, 0, 0, 94, 0, 0, 0, 36, 0, 34, 0, 0, 31, 97, 117, 116, 104, 46, 112, 114, 111, 106, 101, 99, 116, 115, 97, 110, 116, 97, 99, 114, 117, 122, 46, 97, 122, 117, 114, 101, 46, 110, 101, 116, 0, 13, 0, 22, 0, 20, 6, 3, 6, 1, 5, 3, 5, 1, 4, 3, 4, 1, 3, 3, 3, 1, 2, 3, 2, 1, 0, 10, 0, 10, 0, 8, 0, 24, 0, 23, 0, 22, 0, 26, 0, 11, 0, 2, 1, 0, 0, 23, 0, 0, 0, 35, 0, 0])
160
Msg length: 5
Write: [22, 3, 3, 13, 177] 5
Read: array('B', [119, 4])
2
================================================================================================
Authenticating sensor...
Msg length: 2
Write: [119, 1] 2
Read: array('B', [0, 94, 0, 0, 0, 36, 0, 34, 0, 0, 31, 97, 117, 116, 104, 46, 112, 114, 111, 106, 101, 99, 116, 115, 97, 110, 116, 97, 99, 114, 117, 122, 46, 97, 122, 117, 114, 101, 46, 110, 101, 116, 0, 13, 0, 22, 0, 20, 6, 3, 6, 1, 5, 3, 5, 1, 4, 3, 4, 1, 3, 3, 3, 1, 2, 3, 2, 1, 0, 10, 0, 10, 0, 8, 0, 24, 0, 23, 0, 22, 0, 26, 0, 11, 0, 2, 1, 0, 0, 23, 0, 0, 0, 35, 0, 0])
96
================================================================================================
Authenticating sensor...
Msg length: 2
Write: [119, 1] 2
Read: array('B', [119, 3, 5, 0, 0, 0])
6
================================================================================================
Authenticating sensor...
Msg length: 2
Write: [119, 1] 2
Read: array('B', [119, 2, 22, 3, 3, 0, 153, 1, 0, 0, 149, 3, 3, 255, 255, 255, 255, 99, 162, 212, 105, 144, 56, 173, 16, 1, 107, 221, 191, 241, 136, 254, 173, 194, 239, 183, 130, 209, 239, 72, 245, 155, 36, 29, 115, 0, 0, 14, 192, 44, 192, 48, 192, 43, 192, 47, 0, 157, 0, 156, 0, 255, 1, 0, 0, 94, 0, 0, 0, 36, 0, 34, 0, 0, 31, 97, 117, 116, 104, 46, 112, 114, 111, 106, 101, 99, 116, 115, 97, 110, 116, 97, 99, 114, 117, 122, 46, 97, 122, 117, 114, 101, 46, 110, 101, 116, 0, 13, 0, 22, 0, 20, 6, 3, 6, 1, 5, 3, 5, 1, 4, 3, 4, 1, 3, 3, 3, 1, 2, 3, 2, 1, 0, 10, 0, 10, 0, 8, 0, 24, 0, 23, 0, 22, 0, 26, 0, 11, 0, 2, 1, 0, 0, 23, 0, 0, 0, 35, 0, 0])
160
Msg length: 5
Write: [22, 3, 3, 13, 177] 5
Read: array('B', [119, 3, 3, 0, 0, 0])
6
Msg length: 3
Write: [2, 0, 0] 3
Read: array('B', [119, 4])
2
Authentication failed

Hello @XavierGeerinck ,
concering the udev rules, there are already predefined ones in /etc/udev/rules.d/80-azurepercept-accessories.rules which apply to the group apdk_accessories - have you tried adding the user which executes the script to this group with sudo usermod -aG apdk_accessories,audio user ?

Hi @christian-vorhemus I added the authentication read / write responses since I indeed was able to get past the operation time out part. So I guess the udev is then correctly set up?

The communication to the USB device appears to be working indeed, the last write that happens
Write: [2, 0, 0]
seems to cause the issue because the device is responding with [119, 4] whereas 119 (or 0x77 in hex) is the message header and 4 is the payload which indicates a failed attempt to authenticate or in other words, the device expected a different message than what it got. Let me see if I can reproduce the issue on my end.

Awesome! Thanks a lot, if required I am available today (whenever you have time!) so I can show you as well on a teams call

@XavierGeerinck - I can confirm the bug on a newly flashed Azure Percept device. To unblock you, can you try to build and run this program with sudo gcc validator.c -lpthread -ludev -lusb-1.0 -o validator and sudo ./validator on your Percept? It takes care of the authentication of the audio sensor. Afterwards the azure-percept Python library should be capable of recording audio. This is just a workaround until the fix is in place.

That worked! Thank you so much, this unblocks me 😊
Wondering as well, is the root cause known? I am interested to learn more about what the issue was

@XavierGeerinck - the problem should be fixed in version 0.0.10 which is now published.
To give a bit more context, at one step in the process you posted above the sensor returned Read: array('B', [119, 3, 3, 0, 0, 0]). The first 2 bytes are header information, the next 4 bytes tell us how many bytes the SoM expects from the data we've received from the remote attestation service which is [3, 0, 0, 0] or 3 bytes. This is also why in the next step Write: [2, 0, 0] 3 bytes are written. However, what the sensor should have actually returned is [119, 3, 177, 13, 0, 0] which is 3505 interpreted as integer in little endian. Since the sensor didn't get the expected 3505 bytes, it returned [119, 4] which means "failed".
To be frank I don't know why the SoM reacts that way and why this suddenly appeared, however, my previous solution was error prone as it relied on timeouts to wait for web service calls to finish - while the new solution based on the validation of the azureeyemodule makes use of epolls to notify the authentication process when new data arrived at the socket.

Thanks a lot @christian-vorhemus ! This helped a lot to understand what is going on. I have now tested it on the latest version and it is indeed working as intended. So I will close this :)


Try and get create-preact-app package on NPM

Looks like @alexkuz owns the create-preact-app package on NPM.
It'd be amazing if he would be willing to transfer it in order to enable the new yarn create workflow.
yarn create preact-app

Sure, it's all yours :) Just give me instructions, I'll do that.

@developit what do you think?

Hmm - I'm open to anything here, but I actually feel like create-preact-app should continue to be a fork of create-react-app.  Perhaps we create a new package called create-preact-cli-app?

create-preact-cli-app feels like creating a CLI app with preact, not a web app
p/s IMHO

I see your point @developit, I think either would be okay though

Yup, just there's probably a use-case for both, and create-preact-app feels like a fork of create-react-app.  Maybe even create-preact-cli?  Weird name but it would allow yarn create preact-cli.

create-preact-pwa sounds awesome...
yarn create preact-pwa

Love it @developit

Love create-preact-pwa

Either way, while we are here - since I don't actually support create-preact-app repo (I really like preact, but I don't use it right now), I would gladly transfer it to someone who's willing to take care of it, as well as npm package.

I got bored last night & made https://www.npmjs.com/package/create-preact-pwa.
yarn create preact-pwa my-pwa 👍 .

you rock @ericclemmons

Awesome! Thank you @ericclemmons, @developit and everyone else :)


how to Intercepting application messages?

Hi:
I read the page of "Server" on wiki. about "Intercepting application messages" I have a little problem. that was how to Intercepting a message? I mean let the message stop, do not forward.
Look forward to your answer, thanks

oh,  I got it.
and thank you for your reply.
May you have a good day.


[Bounty] Implement sending to Silent Payment addresses - 0.01 BTC

A bounty has been opened on silentpayments.xyz from a trusted, anonymous source to implement sending support in Sparrow Wallet to Silent Payment addresses.
I wanted to open an issue here to raise awareness and ensure that prospective contributors are aware of open bounties for Sparrow from outside sources.
You can learn more about the bounty at https://silentpayments.xyz/docs/bounties/#wallet-implementation-bounties, find more development resources focused on Silent Payments at https://silentpayments.xyz/docs/developers/.

Without wishing to make comment on the Silent Payments, I do want to note that it is incompatible with the Electrum server protocol (or any general address index). This will necessitate a different network/server model for light clients using this protocol. One alternative is using compact block filters, but this has implications for privacy and performance. BIP47 does not have this limitation, for the tradeoff of requiring the notification transaction.

Without wishing to make comment on Silent Payments, I do want to note that it is incompatible with the Electrum server protocol (or any general address index). This will necessitate a different network/server model for light clients using this protocol. One alternative is using compact block filters, but this has implications for privacy and performance. BIP47 does not have this limitation, for the tradeoff of requiring the notification transaction.

I understand the hesitancy, but there are multiple projects underway to build this directly into Electrum server tools, with Cake Wallet even using Electrs today with Silent Payments support on mainnet. The goal long-term will be to properly support this from all major Electrum servers as they already have the data necessary from bitcoind to make this possible and serve it efficiently.
You can read more about the overall light-client approach here:
https://delvingbitcoin.org/t/silent-payments-light-client-protocol/891

as they already have the data necessary from bitcoind to make this possible and serve it efficiently.

I'm not sure this true, and having spoken to both the ElectrumX and Electrs teams recently I'm not aware of any current plans to integrate this support. From what I understand, the nature of this protocol means a simple address lookup is not possible, and the need to use private information to complete the scan makes the public server use case difficult. But I look forward to learning more.

One more note I want to add -- this issue and bounty are for sending only, and as such don't require any changes to the server architecture or back-end.
Want to keep it simple to start out and get broad sending support before asking for wallets to implement receiving (and thus scanning) which is of course more involved.


Refactor: Moved IServiceProxy and IHostServiceProxy to Coral.PluginBase.

…d Coral.PluginHost dependency from Coral.Plugin.LastFM
#101

@GOATS2K Would you mind testing it to see if everything behaves like it should?

Sure!

Loading a freshly built plugin fails with
System.MissingMethodException: 'Method not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure(Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Extensions.Configuration.IConfiguration)'.'

On this line

I'll have a look into it. I needed to reference a new package Microsoft.Extensions.Options.ConfigurationExtensions in Coral.Plugin.LastFM after removing the Coral.PluginHost dependency, otherwise I couldn't get it to compile in this line

Ah, it works without loading the extra Microsoft.* assemblies with the plugin. Any chance we can prevent them from built with the plugin in the first place?

Would it be suitable to reference Microsoft.Extensions.Options.ConfigurationExtensions from PluginBase project? So it would be a transitive dependency then for every plugin.

I don't see why not. :)

OK, fresh take :-)

Let's see if we can prevent the PluginBase dependencies from being built with the plugin itself - we can assume that the host has them already.

LGTM! 👍


Support Django 2.2 and add black autoformatter

Support import of Django 1.11 and 2.2 libraries
Additions

Support for Django 2.2 import paths
Add on_delete to the following lines in Django migrations:

models.ForeignKey(
fields.TreeForeignKey(
models.OneToOneField(

Removals

from __future__ import absolute_import, unicode_literals

Testing

tox -e lint
tox -e unittest-current
tox -e unittest-future

TODO
Fix the following issue:
django.db.utils.NotSupportedError: Renaming the 'teachers_digital_platform_activityspecialpopulation' table while in a transaction is not supported on SQLite < 3.26 because it would break referential integrity. Try adding `atomic = False` to the Migration class.

Checklist

[x] PR has an informative and human-readable title
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows the standards laid out in the development playbook
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Project documentation has been updated
[x] Reviewers requested with the Reviewers tool :arrow_right:

Development Services team decided not to support black autoformatter in teachers-digital-platform


Scala Kinesis Enrich: change back-off algorithm

Current algo leads to this:
sPUT-fPUT..........sPUT-fPUT..............sPUT-fPUT

where sPUT is a successful write to the stream and the fPUT is a failure (causing back-off).
We want something more like this:
sPUT-fPUT.sPUT-fPUT..sPUT-sPUT-fPUT.sPUT

Does this actually require a change in the algorithm rather than just making the minBackoff and maxBackoff smaller?

Good Q! Making the period smaller definitely works as a workaround. Let's push back this ticket and think about it some more...

Does this ticket require any work or are we happy to leave it up to the back-off timings?

This is Kinesis #7 so already pushed back...

My issues got confused with my milestones sorry!

Migrated to https://github.com/snowplow/enrich/issues/155


Add controller instance component relatives collection

Create branch from main
issue-47-add-controller-instance-component-relatives-collection


Allow non-shipping assets in manifest generation

Summary
Allow non-shipping assets to participate in asset manifest generation. The effect of this change is that these non-shipping assets are published to the dotnetbuilds blob storage account, however they are not available when acquiring the drop during the release staging job (because the --non-shipping flag is not used, which is correct) so there shouldn't be any issue with accidentally releasing non-shipping artifacts.
This change allows us to more easily acquire and verify the non-shipping assets without releasing them.
Example build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2088444&view=results

Release Notes Entry

/backport to release/7.x

/backport to release/6.x

/backport to release/7.0

/backport to release/7.0


Call to async_setup_platform fails in HA version 2023.3

Describe the bug
Please check out the Q&A page first!
A clear and concise description of what the bug is. Please make sure this bug is NOT about the Reolink HACS integration, only for the new Reolink HA integration.
To Reproduce
Steps to reproduce the behavior. Please provide the error from the log if possible.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Please provide useful information about your environment, like:

Home Assistant version
Reolink camera model
Camera firmware number

Additional context
Add any other context about the problem here.

Describe the bug Please check out the Q&A page first! A clear and concise description of what the bug is. Please make sure this bug is NOT about the Reolink HACS integration, only for the new Reolink HA integration.
To Reproduce Steps to reproduce the behavior. Please provide the error from the log if possible.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment: Please provide useful information about your environment, like:

Home Assistant version
Reolink camera model
Camera firmware number

Additional context Add any other context about the problem here.

Log Message: 2023-02-26 20:36:56.883 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for hacs using this method at custom_components/hacs/init.py, line 171: hass.config_entries.async_setup_platforms(

interesting ... as you can see in the code there is no mention to async_setup_platforms
Are you sure it's not HACS itself that needs an update?


Calls to undefined subroutines without parens should not be generated as strings

Calls to undefined subroutines without parens should not be generated as strings.  For example:
debug_print "message";

should not generate 'debug_print' 'message'

Fixed in v1.013


Added heightReference to models

Adds a heightReference property for models. If you use it scene is also required. This will render models on terrain (or relative to it). Tests were also added in ModelSpec.js.
In order to get this working properly #3921 was fixed. The issue was that the QuadTreePrimitive removes the updateHeight callback once we get to the highest resolution tile. If we changed terrain providers we never add the callback again. I added a terrainProviderChanged event to Globe and Scene and hooked them up to the Billboard and Model so it updates the clamped positions when the provider is changed.
Tests were added to Globe to make sure the event fires and to BillboardCollection and Model to make sure it gets the event when the provider is changed.
CHANGES.md was also updated.

All sounds good, thanks @tfili.  I will do a quick look.  @bagnell can you do a full review and merge when ready?

@tfili did you test this in Sandcastle with all the options that modify the model matrix like minimum pixel size and maximum scale?

@pjcozzi I tested with most of the options. I'll give it a quick run through with all the combinations just to be sure. Other than that I think I took care of everything else. @bagnell have a look when you get a chance.

Looks to checkout with all model options.

If you animate the model matrix with a model clamped to ground, the model only seems to update when the camera moves. Here is the example I used that is supposed to have a model and billboard clamped to ground at the same location:
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;

function createModel(url, height, heading, pitch, roll) {
    height = Cesium.defaultValue(height, 0.0);
    heading = Cesium.defaultValue(heading, 0.0);
    pitch = Cesium.defaultValue(pitch, 0.0);
    roll = Cesium.defaultValue(roll, 0.0);

    var origin = Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706, height);
    var modelMatrix = Cesium.Transforms.headingPitchRollToFixedFrame(origin, heading, pitch, roll);

    scene.primitives.removeAll(); // Remove previous model
    var model = scene.primitives.add(Cesium.Model.fromGltf({
        scene : scene,
        url : url,
        modelMatrix : modelMatrix,
        minimumPixelSize : 128,
        heightReference : Cesium.HeightReference.CLAMP_TO_GROUND
    }));

    var billboardCollection = viewer.scene.primitives.add(new Cesium.BillboardCollection({
        scene : viewer.scene
    }));
    var billboard = billboardCollection.add({
        position : origin,
        image : '../images/facility.gif',
        heightReference : Cesium.HeightReference.CLAMP_TO_GROUND
    });

    model.readyPromise.then(function(model) {
        // Play and loop all animations at half-speed
        model.activeAnimations.addAll({
            speedup : 0.5,
            loop : Cesium.ModelAnimationLoop.REPEAT
        });

        var camera = viewer.camera;

        viewer.scene.postRender.addEventListener(function(scene, time) {
            var ellipsoid = viewer.scene.mapProjection.ellipsoid;

            var modelMatrix = model.modelMatrix;
            var currentPosition = Cesium.Cartesian3.fromCartesian4(Cesium.Matrix4.getColumn(modelMatrix, 3, new Cesium.Cartesian4()), new Cesium.Cartesian3());
            var currentCarto = ellipsoid.cartesianToCartographic(currentPosition);
            currentCarto.longitude += Cesium.Math.toRadians(0.000001);
            var p = ellipsoid.cartographicToCartesian(currentCarto);
            Cesium.Matrix4.setColumn(modelMatrix, 3, Cesium.Cartesian4.fromElements(p.x, p.y, p.z, 1.0), modelMatrix);

            billboard.position = Cesium.Cartesian3.clone(p);

            var position = Cesium.Cartesian3.clone(camera.position);
            camera.lookAtTransform(model.modelMatrix);
            camera.position = position;
        });

        // Zoom to model
        var controller = scene.screenSpaceCameraController;
        var r = 2.0 * Math.max(model.boundingSphere.radius, camera.frustum.near);
        controller.minimumZoomDistance = r * 0.5;

        var center = Cesium.Matrix4.multiplyByPoint(model.modelMatrix, model.boundingSphere.center, new Cesium.Cartesian3());
        var heading = Cesium.Math.toRadians(230.0);
        var pitch = Cesium.Math.toRadians(-20.0);
        camera.lookAt(center, new Cesium.HeadingPitchRange(heading, pitch, r * 2.0));
    }).otherwise(function(error){
        window.alert(error);
    });
}

var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);
handler.setInputAction(function(movement) {
    var pick = scene.pick(movement.endPosition);
    if (Cesium.defined(pick) && Cesium.defined(pick.node) && Cesium.defined(pick.mesh)) {
        // Output glTF node and mesh under the mouse.
        console.log('node: ' + pick.node.name + '. mesh: ' + pick.mesh.name);
    }
}, Cesium.ScreenSpaceEventType.MOUSE_MOVE);

createModel('../../SampleData/models/CesiumMan/Cesium_Man.glb');

@bagnell Should be good to go.


Make DNS propagation delay more apparent when verifying a domain

I've noticed an increase in users asking why their newly added domains are showing an error when aliasing, due to DNS not propagating yet.
Since now can't verify that the alias works, there should probably be a more descriptive/apparent message given to the user. They really need to know that they need to sit tight and wait, from anywhere from a few minutes to 24 hours.
Right now  the domain verification error/message might need some love too.

Duplicate of #366

@timneutkens Awesome, thanks. :)


Build error in sock-js after adding "resolve.packageAlias" option

<EMAIL_ADDRESS>Just adding packageAlias: "whatever" in resolve section of my config, and build no more succeeds, failing with this:
ERROR in ./~/sockjs-client/~/faye-websocket/lib/faye/websocket/client.js
Module not found: Error: Cannot resolve module 'net' in /path/to/project/node_modules/sockjs-client/node_modules/faye-websocket/lib/faye/websocket
 @ ./~/sockjs-client/~/faye-websocket/lib/faye/websocket/client.js 2:13-27

ERROR in ./~/sockjs-client/~/faye-websocket/lib/faye/websocket/client.js
Module not found: Error: Cannot resolve module 'tls' in /path/to/project/node_modules/sockjs-client/node_modules/faye-websocket/lib/faye/websocket
 @ ./~/sockjs-client/~/faye-websocket/lib/faye/websocket/client.js 3:13-27

Without this option everything works.
Am I doing something wrong?

By adding packageAlias: "whatever" you are overwriting the default packageAlias ("browser"). This alias is used by many packages to provide browser versions (i. e. the faye-websocket lib). So configurate it with packageAlias: ["whatever", "browser"] to keep the browser mappings.

Hmm, strange, but this didn't help.
And I didn't found "browser" field in package.json of faye-websoket: https://github.com/faye/faye-websocket-node/blob/master/package.json

Sorry, it's here: https://github.com/sockjs/sockjs-client/blob/master/package.json#L6-L12

Closing as this has been answered.

@bebraw  how to fix this? i have the same  problem


Discord webhook URL as webhook_url has no effect

Describe the bug
Providing a Discord webhook URL as the string value to the the --webhook_url parameter to the transcribe command
To Reproduce
Steps to reproduce the behavior:

Create a Discord webhook
Test the webhook using Postman, confirming that it works as expected
Use the same URL as the value for --webhook_url
Nothing happens in Discord

Expected behavior
I should see something in Discord
Desktop (please complete the following information):

OS: macOS
CLI Version 1.17.3

Could this have something to do with the body that AssemblyAI sends?
If I send a typical Discord-y body like
{
    "username": "Test",
    "content": "Test post."
}

in Postman, it works, but if I send something like
{
    "transcript_id": "5552493-16d8-42d8-8feb-c2a16b56f6e8",
    "status": "completed"
}

I get an error in Postman:
{
    "message": "Cannot send an empty message",
    "code": 50006
}

Could that be why I'm not seeing anything in Discord? If so, how do I get fix it. There seems to be not way to provide the body that Discord expects from the AssemblyAI CLI.


stopRecording on Safari Version 12.1 returns Unhandled Promise Rejection: AbortError: The operation was aborted,

I have implemented recordRTC for recording video and audio, I used it for different browsers, which is working quite well, until trying it on safari it's breaking.
The method is supposed to record audio and after stopping the record it should autoplay what was already recorded, but unfortunately, it's throwing an error in the console and nothing is saved.
I'm not sure if it's related to the configuration of this component, especially when it comes to safari since there are no issues in other browsers, or there is an incompatibility with safari on macOS and IOS.
The error issued is:
Unhandled Promise Rejection: AbortError: The operation was aborted.

it seems that not only on safari, even trying to record on Mozilla and chrome but from a Mac device it's failing, and returning a warning: " It seems that recorder is destroyed or "startRecording" is not invoked for audio recorder."


Update microsoft-office-2011: https

After making all changes to the cask:

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

==>

1 modified cask: microsoft-office-2011

==>

Auditing language: 'de'

audit for microsoft-office-2011:
passed

==>

Auditing language: 'en'

audit for microsoft-office-2011:
passed

==>

Auditing language: 'ja'

audit for microsoft-office-2011:
passed

>>>
 brew cask style Casks/microsoft-office-2011.rb

1 file inspected,
no offenses
 detected


Linkify the reference to the Rust RFC process for background.

Caution: I didn't perform any rendering or proof reading of this patch! If it's relatively simple for me to do locally, I can do that first. (I also didn't notice any instructions for how to render, btw, so maybe that'll be another PR.)
This just links to the Rust RFC process, since I thought users like myself who aren't familiar with it might want to get caught up on that. I don't know if that's the best link, but I thought it'd be more productive to "ask via PR" than ask in a chat channel.
I also wonder if linking to the Zebra template RFC would be more direct. I don't know how to do cross-file links because I'm not sure what the rendering framework is, but as soon as I learn that I'll submit another "streamlining" PR.

Ohai!
I just noticed https://github.com/ZcashFoundation/zebra/issues/922 which this might be a teensy part of.

@nathan-at-least we're rendering the docs with mdbook, I just checked the rich diff via github and the markdown renders fine there so I'm sure it will look fine in mdbook as well, ty for linkifying this for us ^_^.


Type function name update

[x] I have reviewed the Contributing Guidelines
[x] I agree to license my contributions under the same license as in this repository
[x] I have verified that the tests pass

Description
This addresses issue #551
Proposed changes

change the getInputType and getOutputType function to getInjectionType and getExtractionType(),
make all the interfaces consistent in the use of getName/ getKey functions,
add getInterfaceUnits function and remove separate calls for each interface type.

That addressed all my comment. I think you can go ahead and merge it in

can you go ahead and approve if you think it is ready.


run --dry

explore ways to support a dry-run

option 1: set -x (resolves variables)
option 2: trap 'echo "# $BASH_COMMAND"' DEBUG (commands remain unchanged)

if it runs well, could you possibly generate a standalone script with it by excluding output?

trap 'echo "# $BASH_COMMAND" >&2' DEBUG
./test.sh > /dev/null

this is a nice-to-have feature which is not worth the effort


can't use GoogleOAuth2

Hello @omab I built a backend with django for mobile client and I use python-social-auth for sign up users and it works for facebook and twitter but fails for google-oauth2.
I get this error when try to use google-oauth2:

 {"detail":"{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\": \"usageLimits\",\n    \"reason\": \"dailyLimitExceededUnreg\",\n    \"message\": \"Daily Limit for Unauthenticated
 Use Exceeded. Continued use requires signup.\",\n    \"extendedHelp\": \"https://code.google.com/apis/console\"\n   }\n  ],\n  \"code\": 403,\n  \"message\": \"Daily Limit for Unaut
henticated Use Exceeded. Continued use requires signup.\"\n }\n}\n"}

I debugged google backend source code in social package and i find it failed on return statement:

return self.get_json(url, params={
'access_token': access_token,
'alt': 'json'
})

I don't know why it fails ! have you any idea about this ?

Do you solve your issue ?

why it was closed?

Because this library was deprecated on Aug 29, 2013


SEO crucial issue with title

Why zzo theme displays in source code a title taken from i18n language toml file? Exactly it takes from [tooltip-home] Why? Is there any guidance/tutorial for seo that is extremely crucial? How to avoid this and solve it the proper way described here: https://cloudcannon.com/tutorials/hugo-seo-best-practices/ or here https://moonbooth.com/hugo/seo/ It has to be explained very quickly. I will not switch to Hugo because of this.

Closing. It is my fault. I checked the example site and there is displays correctly. This is a nightmare, because it is much more complex than a WordPress - I mean you have to know extremely well the Hugo and the theme, to modify it and not break the functionality,.


updating documentation

Updated documentation for the remote sources branch.

@ericpgreen2 , this has the changes we discussed today and I did another pass across the documents and cleaned up a bit.

I just made a few more edits:

Fixed a broken link (I found it's easy to check by running npm run build from the /docs directory)
Noted that we don't have gzip or glob pattern support yet (and moved these to a "limitations" section near the bottom – I felt like we shouldn't start w/ limitations, but it's easy to change back if you think otherwise)
For Remote Sources: minor language edits
For DuckDB: clarified the --db flag applies to the rill init command


remove or update the pre-build geth binaries

The pre-build binary cannot sync past eth block 13107518 (or really Berlin 12244000).  Better to update or remove these binaries to avoid people getting confused.

They have been removed, instructions now explains to compile it directly.


proxy flag added

main.go simplified
network related lines moved to src/client.go
proxy is set to client.

I did not create a new file named as proxy.go, because it seems not really necessary for now. There is no special task related to proxy. But, we can discuss about creating a new file.
Usage
gURL is open source CLI tool written in Go.

Usage:
  gURL [options...] <url> [flags]
  gURL [command]

Available Commands:
  GET         Fetches data from given url
  help        Help about any command

Flags:
  -h, --help           help for gURL
  -x, --proxy string   [protocol://]host[:port] Use this proxy

Use "gURL [command] --help" for more information about a command.

--proxy or -x flags takes string input.
Example Usage
$ gurl --proxy proxy://myproxy:8080 www.mysite.com
$ gurl -x proxy://myproxy:8080 www.mysite.com

Before merging it, I need to add something.


(WIP) Disable RHEL crawler

The RHEL crawler is currently failing due to expired credentials, we can disable it while we get it sort out.

Closing this since renewing the RH credentials fix the crawler.


Warning/future error in React 16

Dropdown currently uses a link with a 'javascript:' href, see dropdown.cljs#L171. React 16.12.0 shows the following warning:

backend.js:6 Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:".
in a (created by re_com.dropdown.dropdown_top)
in re_com.dropdown.dropdown_top (created by re_com.dropdown.single_dropdown)
in div (created by re_com.dropdown.single_dropdown)
in re_com.dropdown.single_dropdown (created by scada_ui.components.event_annotations.user_defined_dropdown)

What is the rationale behind the 'javascript:' href? Could we do without? The comment says

Required to make this anchor appear in the tab order

I'm not sure what this means.

What is the rationale behind the 'javascript:' href? Could we do without? The comment says

Required to make this anchor appear in the tab order

I'm not sure what this means.

When a page is viewed in browser, pressing tab will cycle through giving focus to anchor tags or giving focus to various inputs (try it in the demo app). Since the markup for this widget doesn't use any input elements (it looks to be plain spans and divs) the href is required.
From what I gather here, providing a default value of 0 for tab-index could resolve the problem. All elements with tabindex=0 are inserted into the tab order according to their source order.

It seems this warning still exists on the latest version of re-com.

Yes, it does...will release a new version with this fix soon.


Dashboard: File Upload UI Component

Summary
Settings view in Dashboard needs a simple drag and drop file upload component. Drew on the editor for structure.

Relevant Technical Choices

Relies on native event handler functionality for drag and drop and file upload
Passes files to parent to process how the parent needs data to avoid locking use cases down
Delete functionality is passing the index of the upload as well as the file itself back to parent because of unknowns at the moment.
Uses story editor's getResourceFromLocalFile util to try and keep structures in sync behind the surface

To-do

[x] Update icon from placeholder x to upload svg - need permissions in figma to download assets
[x] Determine 'delete' functionality
[ ] Follow up on when the file name should be blue like in figma
[ ] Follow up on if the "You can also drag your logo here" text should only be visible if there's not currently uploads (I think this is the case?)
[ ] Follow up on delete functionality (this will be after updated designs, read something about the ability to delete or also edit)
[x] Get updated button style once PR for dialogs is merged
[x] Tests

User-facing changes

Changes only exist in storybook

Testing Instructions

See storybook Dashboard/Components/FileUpload
Upload file(s) with "button" (it's a label) and try drag and dropping, you should see an image show up for each with file name
Hover over an uploaded image and click the 'x' to delete it, see actions trigger in storybook.
See storybook Dashboard/Views/EditorSettings to see the fileUpload in the settings page. Please note that the dummy functionality isn't hooked up in the view storybook ONLY the components since the view relies on context and since we don't know for sure what all is going to happen here re hooking up the real data I didn't want to spend the time on it.

(placeholder UI for functionality)

Addresses #2747

This works well and I tested the story and the state correctly keeps track of assets as they are added and removed. The only visual glitch I see is the x appears to be pushed up a little bit and perhaps needs to be moved down to be more center. Extra points if it could fade it nicely when hovered.

This works well and I tested the story and the state correctly keeps track of assets as they are added and removed. The only visual glitch I see is the x appears to be pushed up a little bit and perhaps needs to be moved down to be more center. Extra points if it could fade it nicely when hovered.

All fixed ~

e.preventDefault?.(); should fix that.

One super nit, that is tangentially related, I attempted to test the file upload component using the "PublishLogo" story (Views/EditorSettings/PublisherLogo) an e.preventDefault is not a function error when I try and drag/upload a file. It looks like when that story was written it was expecting onUpdatePublisherLogo to pass in an event object, but now it's passing in different thangs and so the story is breaking.

ah! so this is actually because i spaced I did that in storybook temporarily before hooking up the fileUpload. the event's preventDefault is taken care of in the fileUpload for consistency - it just needed to be removed - but now we can show the actual props getting passed on upload! Thanks for testing this view!


Changes for handling $FILE_NAME attribute #19

Codecov Report

Merging #23 (6f731d9) into main (1201bda) will decrease coverage by 1.30%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
- Coverage   67.11%   65.80%   -1.31%
==========================================
  Files           2        2
  Lines         149      155       +6
==========================================
+ Hits          100      102       +2
- Misses         49       53       +4

Impacted Files
Coverage Δ

dfimagetools/file_entry_lister.py
73.38% <28.57%> (-1.81%)
:arrow_down:

Continue to review full report at Codecov.

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


Fetch people to be warned of instructor event closing

Helps with managing instructor training.

3 minor things, then it's ready for merge.

@gvwilson merge if you're happy with the code, but personally I'd still use QuerySet capabilities for sorting and displaying values list (https://github.com/swcarpentry/amy/pull/671#discussion_r51034659).


Android - App crashes when I change permission from settings

Describe your environment

React-Native version 0.5
Platform: iOS, Android, both? Android
Device (which one?), simulator? Samsung S8
OS version 9
react-native-permissions version 1.1.1
Devtools: Xcode? Android Studio version? Visual Studio Code
(Android only: buildToolsVersion) 26.0.2

How to repeat issue and an example
I request for permissions for the location and I authorized it. But, then with the app open, I go to setting and I denied the permission and the app crash. I read in the Troubleshooting that that's normal in IOs, but I wanna know if that's something normal in Android
Solution
Do you know what needs to be done to address this issue? Ideally, provide a pull
request with a fix.

This is standard android behavior. If you revoke permissions from an app, the system kills the app. Immediately. There is no workaround, it is system behavior.
To quickly address the opposite scenario - you will not receive any notification at all if the user uses the system settings to grant permission while your app is running.

@mikehardy Thanks, I just wanted to be sure that that was the expected behavior

You can check to see if a specific permission has been granted using the AppState API. For example, using Expo Location you can write something like this:
const [appState, setAppState] = useState(AppState.currentState);
const checkWhenAppStateChanges = (nextAppState) => {
if (appState.match(/inactive|background/) && nextAppState === "active") {
checkForPermission();
}
setAppState(nextAppState)
}
const checkForPermission = async () => {
const permission = await getPermissionAsync();
return permission.status === 'granted';
}

This is true but it should be noted that many (most?) times when permission changes from the system preferences in Android, the system kills and restarts your app

I came to this page with the same issue. While my app was running, if I revoked the permission for location, the app would re-start. If I did it a second time, the app would terminate without restarting. I thought it was a bug in my code or in React. Thanks for the info 👍🏻

This is standard android behavior. If you revoke permissions from an app, the system kills the app. Immediately. There is no workaround, it is system behavior.
To quickly address the opposite scenario - you will not receive any notification at all if the user uses the system settings to grant permission while your app is running.

@mikehardy Uber is able to manage this scenario. I have checked some other apps as well which are able to to check dynamic changes from settings.

@deepaksinghcb great report! If you can figure out how they do it (perhaps storing dehydrated local state / nav position, restoring it on restart?) then everyone here would know how to do it as well.
My statements above are facts though as far as I know. You can poll permissions perhaps - at important parts of your app - to get grants but there is no "I was granted a permission" listener you can set.  That is actually a system behavior, not app-specific

Is there any method to overcome this issue, .ie., keeping the app open even when the permission is denied from settings. As @deepaksinghcb mentioned apps like uber is handling it somehow. So does anyone know how to handle this scenario. The problem is that when this happens first time the app just restarts and when this happens next time onwards the andorid system starts to show a warning dialogue box telling that this app is crashing many time.

Does anyone have a solution for this problem?

Is their any solution ?


Support aerial

Support aerial https://github.com/stevearc/aerial.nvim

Thanks for your PR !
Can you provide a screenshot ?

Thanks for your PR !
Can you provide a screenshot ?

Yes!
It should look like this

I can change them if you are not satisfied with some highlights.

Look awesome ! Thanks !

What plugin do you use to colorize brackets ?

p00f/nvim-ts-rainbow


[KYUUBI #2717][FOLLOWUP] Fix BatchRestApiSuite due to jdbc state store UPPER the batch type

Why are the changes needed?

Because I did not rebase for pr #2717, so the UT is impacted because  jdbc state store UPPER the batch type when persisting to state store.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

thanks, merged to master to fix the UT faillure


Update Node dependency from 12.17.0 to 12.14.1

Is it possible to change the Node dependency from 12.17.0 to 12.14.1?
Currently we can't get the bindings to work in Atom because Atom bundles with 12.14.1. We can get it working by running npm install manually in the package folder, but that's not something we can ask our users to do.

Sure. https://github.com/pycom/pymakr-atom and https://github.com/pycom/pymakr-vsc.
I didn't write either library, but I have the good fortune of maintaining them.
I'm currently working on a new version for VSCode, written completely from scratch. As far as I know, it doesn't have any issues with serialport. https://github.com/pycom/pymakr-vsc/tree/next

Thanks for the clarification, @reconbot . For whatever reason it's working on Windows but not Mac/Linux.
Do you have a recommendation for how to best approach this?

Appreciate the effort and the great library. ❤


Move entity members under a 'members' property under each entity

Currently entity members are listed just below the entity level.
They belong to a separate propery.


Can't see the toogle button for positioning integrated terminal

Can't see the toogle button for positioning integrated terminal.
Is it removed or is this a bug?
Can I move integrated terminal to the right side any more?
https://i.stack.imgur.com/6d3Hh.png

/duplicate of #63034


Which level is Tota11y checking against?

Hi, There is no mention in the tool which level (A/AA/AAA) of WCAG (2.0/2.1?) recommendation it is checking against and making recommendations or an option to change level.
https://www.w3.org/WAI/WCAG21/quickref/?versions=2.0&currentsidebar=%23col_customize

Tota11y's tests are primarily for Level A.
I assembled a reference for a web extension I built on top of tota11y which is here: https://skeletonxf.gitlab.io/totally-automated-a11y-scanner/#rules-section Going off my memory tota11y has tests for 1.1.1, 1.3.1, 1.4.3, 2.4.4 and 2.4.9


Background noise removal verification

When applying background noise removal with the following parameters:
       "remove_background_noise": {         "ping_num": 40,         "range_sample_num": 10,         "noise_max": -125,         "SNR_threshold": 3,         }
We lose around 60-65% of data as noise.
This should be investigated to make sure we arent eliminating to much useful data.

The background noise detection implemented in oceanstream is based on the remove_noise function from the echopype library, which in turn is based on the techniques described in the article by De Robertis & Higginbottom (2007), titled 'A post-processing technique to estimate the signal-to-noise ratio and remove echosounder background noise,' published in the ICES Journal of Marine Sciences (64(6): 1282–1291).
The parameters for oceanstream's apply_remove_background_noise function, designed to address background noise issues, are as follows:

ds_Sv: xr.Dataset

Dataset containing Sv and echo_range [m].

ping_num: int, default=40

Number of pings to obtain noise estimates.

range_sample_num: int, optional

Number of samples along the range_sample dimension to obtain noise estimates. If not provided, it's computed based on a 10-meter vertical bin for each channel, and the minimum value is used.

noise_max: float, default=-125

The upper limit for background noise expected under the operating conditions (default=-125 dB).

SNR_threshold: float, default=3 [dB]

Acceptable signal-to-noise ratio.

The default values for the parameters in oceanstream's apply_remove_background_noise were chosen based on the default values tested in the article for calibrated Simrad EK60 echosounders operating at 18, 38, 120, and 200 kHz:

Horizontal cell size of 40 pings
Vertical cell size corresponding to a 10-m vertical bin
An acceptable signal-to-noise ratio defaulting to 3 dB
Noise max = -125 dB

Other important considerations highlighted in the article that should be taken into account when adjusting the input parameters for the apply_remove_background_noise include:

It is advisable that the SNR_threshold be greater than 0.
noise_max represents an upper limit for background noise expected under the operating conditions. It must be determined empirically and will depend on the echosounder. In the examples presented in the article, noise_max was set at -125 dB at all frequencies, and this value was never exceeded.
'The magnitude and the variability of the noise estimates rapidly level off as increasing numbers of pings are averaged, indicating that they are relatively insensitive to grid size when more than 20 pings are averaged, and 10-m deep cells are used. As a compromise between the stability of the noise estimate and the ability to compensate for rapidly changing noise levels, cell-size parameters of N = 40 pings in the horizontal and M corresponding to a 10-m vertical bin in the vertical were used in the analyses.'

Analysis of EK80 Dataset with Background Noise Removal
Raw Dataset Details:

Data Source: EK80 raw data - nice data D20190925-T133707.raw - link
Raw File Size: 46.3 Megabytes (MB)

Background noise removal applied on processed dataset, after the interpolation step
Parameters for the apply_remove_background_noise function:
process_parameters = {
        "remove_background_noise": {
        "ping_num": 40,
        "noise_max": -125,
        "SNR_threshold": 3,
    },

}

Proportion of Valid Samples Before Background Noise Removal:

(Valid Samples) / (Total Samples): 0.62053445

Proportion of Valid Samples After Background Noise Removal:

(Valid Samples) / (Total Samples): 0.55701218

Analysis of EK80 Dataset with Background Noise Removal
Raw Dataset Details:

Data Source: EK80 raw data - nice data D20190925-T133707.raw - link
Raw File Size: 46.3 Megabytes (MB)

Background noise removal applied on processed dataset, after the interpolation step
Parameters for the apply_remove_background_noise function:
process_parameters = {
        "remove_background_noise": {
        "ping_num": 40,
        "noise_max": -125,
        "SNR_threshold": 0,
    },

}

Proportion of Valid Samples Before Background Noise Removal:

(Valid Samples) / (Total Samples): 0.62053445

Proportion of Valid Samples After Background Noise Removal:

(Valid Samples) / (Total Samples): 0.57064969

Analysis of EK60 Dataset with Background Noise Removal
Raw Dataset Details:

Bucket Name: ncei-wcsd-archive
Base Path: data/raw/Bell_M._Shimada/SH1707/EK60/
Filename: Summer2017-D20170620-T011027.raw
Raw File Size: 26.2  Megabytes (MB)

Background noise removal applied on processed dataset, after the interpolation step
Parameters for the apply_remove_background_noise function:
process_parameters = {
        "remove_background_noise": {
        "ping_num": 40,
        "noise_max": -125,
        "SNR_threshold": 3,
    },

}

Proportion of Valid Samples Before Background Noise Removal:

(Valid Samples) / (Total Samples): 0.85527214

Proportion of Valid Samples After Background Noise Removal:

(Valid Samples) / (Total Samples): 0.68439682

Analysis of EK60 Dataset with Background Noise Removal
Raw Dataset Details:

Bucket Name: ncei-wcsd-archive
Base Path: data/raw/Bell_M._Shimada/SH1707/EK60/
Filename: Summer2017-D20170620-T011027.raw
Raw File Size: 26.2  Megabytes (MB)

Background noise removal applied on processed dataset, after the interpolation step
Parameters for the apply_remove_background_noise function:
process_parameters = {
        "remove_background_noise": {
        "ping_num": 40,
        "noise_max": -125,
        "SNR_threshold": 0,
    },

}

Proportion of Valid Samples Before Background Noise Removal:

(Valid Samples) / (Total Samples): 0.85527214

Proportion of Valid Samples After Background Noise Removal:

(Valid Samples) / (Total Samples): 0.72555448

Analysis of EK60 Dataset with Background Noise Removal
Raw Dataset Details:

Bucket Name: ncei-wcsd-archive
Base Path: data/raw/Bell_M._Shimada/SH1707/EK60/
Filename: Summer2017-D20170620-T011027.raw
Raw File Size: 26.2  Megabytes (MB)

Background noise removal applied on unprocessed dataset (raw data):
Parameters:
process_parameters = {
        "ping_num": 40,
        "noise_max": -125,
        "SNR_threshold": 3,
    },

}

Proportion of Valid Samples Before Background Noise Removal:

(Valid Samples) / (Total Samples): 0.9971564

Proportion of Valid Samples After Background Noise Removal:

(Valid Samples) / (Total Samples): 0.62754032

Conclusion:

After a thorough analysis, it has become evident that applying background noise removal is more effective after the interpolation step in the processed dataset. When the background noise removal function is applied to an unprocessed dataset, as demonstrated in the example above, approximately 36% of the data is invalidated. This significant loss of data underscores the importance of the sequence in which processing steps are applied.

Adjusting the threshold_SNR parameter can affect the proportion of invalidated samples. Decreasing the threshold_SNR leads to a reduction in invalidated samples; however, it is not advisable to set it below 0.

The parameter range_sample_num, which determines the number of samples along the range_sample dimension for noise estimation:

When not explicitly provided, it's computed based on a 10-meter vertical bin for each channel, with the minimum value being used. This default computation seems to be effective in most cases.

In the examples analyzed, different configurations of parameters were applied to a processed dataset. The percentage of invalidated data in these scenarios ranged between 5-17%, which is significantly lower than that observed in the unprocessed dataset. Based on these findings, it is recommended to use the default parameters for background noise removal in future analyses.


NMAKE : fatal error U1052: file 'ms\nt.mak' not found

Hi,
I am on windows 10, Visual Studio 2012 (vc110). I want to use the 32-bit versions of the POCO libraries. The build fails at the OpenSSL package, so to isolate the error, I now try to build the 32-bit libraries of OpenSSL only, which also fails.
Conan version: Conan version 0.29.2
my conanfile.txt
[requires]
#Poco/1.7.8p3@pocoproject/stable
#Boost/1.64.0@conan/stable
OpenSSL/1.0.2l@conan/stable

[generators]
cmake

When I execute
conan install .. -s build_type=Debug -s arch=x86 --build missing

I eventually get
...
OpenSSL/1.0.2l@conan/stable: WARN: Build folder C:\Users\wbi\.conan\data\OpenSSL\1.0.2l\conan\stable\build\aade09af893b263731251253842d2ccf0d0f70cf
ERROR: OpenSSL/1.0.2l@conan/stable: Error in build() method, line 107
        self.visual_build(config_options_string)
while calling 'visual_build', line 298
        self.run_in_src("%s && %s" % (vcvars, make_command))
while calling 'run_in_src', line 121
        self.run(command)
        ConanException: Error 2 while executing echo Conan:vcvars already set && nmake -f ms\nt.mak

When I manually execute:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\../../VC/vcvarsall.bat" x86 && nmake -f ms\nt.mak

I get
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1052: file 'ms\nt.mak' not found
Stop.

I found https://github.com/curl/curl/issues/1002
Maybe that is related.
If you need more info, please specify in small steps for a dumb person, because I do not have any experience with complicated C++ build tools!
Thank you for looking at this report.

The related issue is talking about the OpenSSL 1.1.0 branch, for 1.0.2 it should work ok. I've tried to build the x86 binaries and it's working, but I don't have Visual Studio 11, I don't know if it can be related. Please, try with OpenSSL/1.0.2m@conan/stable and post the result.

Hi, I've installed the visual 12. All built correctly, 1.0.2m

Thanks for the help lasote, still no luck.
conanfile.txt
[requires]
#Poco/1.7.8p3@pocoproject/stable
#Boost/1.64.0@conan/stable
#OpenSSL/1.0.2l@conan/stable
OpenSSL/1.0.2m@conan/stable

[generators]
cmake

Error
OpenSSL/1.0.2m@conan/stable:
OpenSSL/1.0.2m@conan/stable: ERROR: Package 'aade09af893b263731251253842d2ccf0d0f70cf' build failed
OpenSSL/1.0.2m@conan/stable: WARN: Build folder C:\Users\wbi\.conan\data\OpenSSL\1.0.2m\conan\stable\build\aade09af893b263731251253842d2ccf0d0f70cf
ERROR: OpenSSL/1.0.2m@conan/stable: Error in build() method, line 108
        self.visual_build(config_options_string)
while calling 'visual_build', line 299
        self.run_in_src("%s && %s" % (vcvars, make_command))
while calling 'run_in_src', line 122
        self.run(command)
        ConanException: Error 2 while executing call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\../../VC/vcvarsall.bat" x86 && nmake -f ms\nt.mak

I am trying to check my setup but I am probably too much of a noob to sort this out :(
I think conan is a very great think and I hope I get it to work someday...

No idea why your compiler is complaining about that escape sequence. I've followed exactly the same steps and works ok. Make sure you have the latest revision of the visual studio 11.0, it's the only thing that I can imagine...

We centralized the recipes we are creating in the https://github.com/conan-community/community/issues Please, open there the issue if still persist.


How can we contribute to this project?

Like the title, I'am very interested in this project, so I'm wondering if I cloud do anything helpful?

如果您对Go比较熟悉，欢迎参与迁移或者重写GmSSL的Go语言绑定。


Retrieve heating state

Did you read the instructions?

[X] I have read the README, including the advanced debugging section.

The request
I wonder if the heating state could be fetched from the server like the Cozytouch app is able?
First, I find that the integrated thermometers are not very accurate compared to the sensors that can be placed in the rooms. Then, if I want to manage the heaters completely by Home Assistant and no longer use the programming from the application, it could be interesting to know if the radiator is heating up or not in order to force the heating mode (by increasing the temperature target).
Is this data provided by when you retrieve the data from the server?

Thanks!!
Which gateway / hub do you use?
Cozytouch
Device model (optional)
Bolero Auto B
Device type (optional)
No response
Additional information
No response

@iMicknl Is that the logs you need?
config_entry-tahoma-15e7d1b36f7cf6b7c4c3d84c1c6a8852.json.txt
Yes I submitted it here because I'm not sure of where to post on the core git

Maybe I'm missing something but I don't see anything related to the state (the colomn "state" displays the hvac mode but not the heating-or-not state)

I will follow the integration to the core of course! :D

@waazdakka please try the core integration. From this Wednesday, the public beta of 2022.12 will support your device.
If your hvac_action is not exposed and you miss this functionality, please create an issue in core adding your diagnostic log (from core).

You can create an issue at https://github.com/home-assistant/core/issues, if you still face issues with 2022.12.


Question: Tenant-wide Deployment in SharePoint Server 2019

Is there any way to deploy an Application customizer to all site collections and/or subsites in SharePoint Server 2019? skipFeatureDeployment: true seems to have no effect.

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

ID: 7e41df74-a651-cfa5-a538-9397e6793f52
Version Independent ID: 9f272325-fdb3-68e3-634b-e7428128f75b
Content: Tenant Wide Deployment of SharePoint Framework Extensions
Content Source: docs/spfx/extensions/basics/tenant-wide-deployment-extensions.md
Product: sharepoint
Technology: sharepoint-framework
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Not directly. Tenant wide deployment only applies to SharePoint Online.
For SharePoint Server 2019, the only way to achieve this is to create a process that uses the SharePoint REST API (or via the PnP PowerShell cmdlets) that walks through the entire farm and adds it to sites where it isn't installed.


Counter.jsx Page Added

I have raised PR about counter..

Great!!

Can you assign level 2 for that because I have spent my tough time during my mid semester exam..


Performance improvement

Hi! The hoverfly does decoding response from a slice of bytes to a struct on every request. It causes high consumption of CPU and huge number allocations of memory. Can we avoid this effects by additional cache layer or by another way? Performance of hoverfly is valuable for us because we want to try use hoverfly for performance testing of microservices as a mock for external services.
pprof svg files

Hi @podtserkovskiy, before I dig into the code, can you let me know what your hoverfly configuration was when you were doing the profiling, please?

What about using https://github.com/patrickmn/go-cache to cache the struct directly, without encoding/decoding. What do you think @podtserkovskiy?

I've never used go-cache package, but I think it's a good idea to use cache without encoding/decoding.

Thanks @podtserkovskiy I will give it a try.

Using go-cache seems to solve the problem, my benchmark shows 150574 ns/op before the change, and 5729 ns/op after. It's a significant improvement.

It turns out that using LRU cache is better: https://github.com/hashicorp/golang-lru, it will cap the memory usage during load test.

Thank you!

This is fixed in v1.0.0-rc.2.


If the player icon has no winning icon, it will be stuck on the low health icon once reaching that point, even when you aren't dying.

Describe your bug here.
Basically the title lol.

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
no
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
None

I'm sorry to ping you @JordanSantiagoYT but no one is helping with this.

i aint no coder, but i think its because that the engine got confused if theres a winning icon or not, and using the losing icon as a placeholder

thats my guess

@TheKamboy I've not been able to reproduce, it should only attempt to load an winning icon if such exists, you sure you're on the latest version?

Yeah I am

Yeah I am

odd, I’m not sure since I’ve not been able to reproduce, you could try the latest version from actions, aka nightly

Even with Nightly, I still have the issue.

Even with Nightly, I still have the issue.

huh, well it’s not happening on my end, so idk honestly

Are you using an icon set for bf without a winning icon?

Are you using an icon set for bf without a winning icon?

yeah, I tested it

Alright, I will have to wait for the next update to test it.

okay, in the meantime I'll leave this open for now

Sadly, this is still an issue, even with the latest updates.

this should be fixed now in the latest commit


use registerDocumentRangeFormattingEditProvider instead of registerDocumentRangeFormattingEditProvider

Thank you for your extension.
This pull request adds Format Selection feature in addition to Format Document feature.

Some notes;

Are there any reason not to use semicolon in extension.ts?  ES-linter, which you enabled, warns a lot.
We don't have to define "systemverilog-formatter-vscode.formatDocument" and "systemverilog-formatter-vscode.formatSelection" commands.  The built-in "Format Document" and "Format Selection" commands do their jobs.

If you agree, I am happy to provide you fixes for above.
Again thank you for your sharing this extension.

Thanks a lot for your contribution!
Regarding semicolons vs no-semicolons I don't have a strong opinion, however, I happened to read this tweet minutes before starting the repo and upon reading about the topic it looks like there are situations in ts where no-sc makes errors surface earlier.
As for exposing the commands, I preferred to expose them even if you can use the built-in's because there are cases where you might want to fire them directly. For example, if you have several formatters and use another one by default but you'd like to run this one manually some times.
Please let me know if you'd like to add more commits before merging the PR or it's good to go.

I don't have any plan of additional commit now.  Please merge my fix.
Thanks.

Great, there it goes!


Create markdown cheatsheet

Create a half-page sized cheatsheet for someone who has never used markdown before to know how to use it in Chime

Here: https://docs.google.com/a/codeforamerica.org/document/d/1yAxLzkgfdPQ9IBzMF_k88jYI3ch7j45lU0Drlf9ee0I/edit?usp=drive_web Ended up having to be a double-sided to fit the images in.


'checked' attribute should be set when string boolean like "true" is used

I am using a key-value map as intialValues. The map is coming from server but the server has no knowledge about values so it sends all values as string.
String "true" is a valid value for the checked attribute in react so it should also be for redux-form.

Sure, seems reasonable.

Yeah, the test has failed, too. I'm repairing.

Published in v5.3.0.


Module from path not recognized properly

We are using modules defined with a path, and the path is code-generated code. The code is generated from a build.rs build script. rust-analyzer worked fine with this until a couple of days ago (not sure which version exactly).
Here is an example of the mod definition.
#[path = "../../target/to/my/path/generated_code.rs"]
pub mod generated_code;

In any module that imports this module now shows as an error. cargo check works fine and the code builds fine. Seems like a regression.

Verified that the Sept 28th 2020 release works fine, I rolled back to this one for now.

Using VS Code I downgraded to version 0.2.336 and it works fine for this use case. Hope that helps to find it.

RA does not currently(and maybe never will from what I remember) resolve #[path = ...] attributes.

@Veykril I see, but it used to work? And actually my earlier comment about it working with the earlier version was incorrect. I don't understand why I am seeing it now, and not before the last few days. We may switch to a proc_macro to get around this.

I'm pretty sure we do resolve path attributes, as long as they stay within the project workspace.

I'm pretty sure we do resolve path attributes, as long as they stay within the project workspace.

Our path is to the target dir. Can you define what qualifies as within the project workspace?

The issue was the target dir, we changed it to another path in the src dir and it works fine. Closing the issue, thanks for the quick help.


[Warning] Invalid argument supplied for foreach() (AssetAdmin -> DetailsView)

Hi!
We get the error posted below in the DetailsView of a folder (AssetAdmin) if we click the "Save" button.
We are using 3.1.X and we have tried it with the latest version of SilverStripe (3.1.5).
Since this error gets printed before the json output, the visible form does not update (only a success notification is displayed).
This comment exactly describes the problem:
https://github.com/silverstripe/silverstripe-framework/pull/2506#issuecomment-30998757
Error output:
ERROR [Warning]: Invalid argument supplied for foreach()
IN POST /admin/assets/EditForm
Line 1398 in /vagrant/silverstripe/framework/forms/Form.php

Source
  1389:	 * Sets the button that was clicked.  This should only be called by the Controller.
  1390:	 * @param funcName The name of the action method that will be called.
  1391:	 */
  1392:	public function setButtonClicked($funcName) {
  1393:		$this->buttonClickedFunc = $funcName;
  1394:		return $this;
  1395:	}
  1396:
  1397:	public function buttonClicked() {
* 1398:		foreach($this->actions->dataFields() as $action) {
  1399:			if($action->hasMethod('actionname') && $this->buttonClickedFunc == $action->actionName()) {
  1400:				return $action;
  1401:			}
  1402:		}
  1403:	}
  1404:

Trace
Form->buttonClicked()
CMSForm.php:23

CMSForm->validate()
Form.php:368

Form->httpSubmission(SS_HTTPRequest)
RequestHandler.php:288

RequestHandler->handleAction(SS_HTTPRequest,httpSubmission)
RequestHandler.php:200

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153

Controller->handleRequest(SS_HTTPRequest,DataModel)
LeftAndMain.php:441

LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
AdminRootController.php:93

AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:366

Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:152

Director::direct(/admin/assets/EditForm,DataModel)
main.php:189

I found this issue, because I get the same error when submitting a GridField via a custom Action. This only happens in a ModelAdmin context though. Triggering the same Action in an item edit view works fine.
I'll try to isolate the problem and supply an example to reproduce the issue.

Fix for PHP error at https://github.com/silverstripe/silverstripe-framework/pull/5665