Unable to process block 5667197 because of broken token entity

Describe the bug
I ran a test subsquid for arrow squid
To Reproduce
run indexer at arrow squid branch.
update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity"DELETE FROM "token_entity" WHERE id = $1
{"detail":"Key (id)=(95-e43f299e96cf1b93d196654669ee5457) is still referenced from table \"nft_entity\".","state_code":"23503"}

QueryFailedError: update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity" at PostgresQueryRunner.query (/squid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async DataSource.query (/squid/node_modules/typeorm/data-source/DataSource.js:345:20) at async rollbackBlock (/squid/node_modules/@subsquid/typeorm-store/lib/hot.js:112:17) at async /squid/node_modules/@subsquid/typeorm-store/lib/database.js:82:17 at async EntityManager.transaction (/squid/node_modules/typeorm/entity-manager/EntityManager.js:73:28) at async TypeormDatabase.submit (/squid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24) at async Runner.withProgressMetrics (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:183:22) at async Runner.handleFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:140:9) at async Runner.processFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:124:25)

Expected behavior
Indexer should not stuck
Screenshots

Additional context
Add any other context about the problem here.

Assigning @daiagi as he implemented the TokenEntities

hi @vikiival
I'm trying to debug the issue and it seems that syncing the chain in arrow-squid branch is much much slower then main branch
is it just me?
another thing, seems that stop and start processing starts it again from beginning, not from last block (on arrow-squid branch)
also, you encountered the bug while syncing kusama or polkadot?

I'm trying to debug the issue and it seems that syncing the chain in arrow-squid branch is much much slower then main branch

ArrowSquid should be faster. Maybe internet.

another thing, seems that stop and start processing starts it again from beginning, not from last block (on arrow-squid branch)

It processes from last batch IMO, so depends which command you are using

also, you encountered the bug while syncing kusama or polkadot?

Polkadot ^-^

@vikiival
i started the indexer the old  fashioned way (squid up && sqd process)
and passed said block, did not get stuck

ill' try again with just upd && just process

ill' try again with just upd && just process

can't reproduce. all seems ok

processor 02.03.2024 08:57:36 ERROR sqd:processor QueryFailedError: update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity" at PostgresQueryRunner.query (/squid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async DataSource.query (/squid/node_modules/typeorm/data-source/DataSource.js:345:20) at async rollbackBlock (/squid/node_modules/@subsquid/typeorm-store/lib/hot.js:112:17) at async /squid/node_modules/@subsquid/typeorm-store/lib/database.js:82:17 at async EntityManager.transaction (/squid/node_modules/typeorm/entity-manager/EntityManager.js:73:28) at async TypeormDatabase.submit (/squid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24) at async Runner.withProgressMetrics (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:183:22) at async Runner.handleFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:140:9) at async Runner.processFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:124:25)
db 02.03.2024 08:57:36 ERROR update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity" {"statement":"DELETE FROM "token_entity" WHERE id = $1","state_code":"23503","detail":"Key (id)=(106-c3d6cc2c7d0af60bca5e4c3eceed0737:e4395888a1273967a2de3883df29ed4b) is still referenced from table "nft_entity"."}

@daiagi can you please check?

SPECK (5771669)
update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity"DELETE FROM "token_entity" WHERE id = $1
{"state_code":"23503","detail":"Key (id)=(106-c3d6cc2c7d0af60bca5e4c3eceed0737:e4395888a1273967a2de3883df29ed4b) is still referenced from table \"nft_entity\"."}

STICK (6534910)
update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity"DELETE FROM "token_entity" WHERE id = $1
{"detail":"Key (id)=(379-74a2f2ffa672e31bc0830ebb0ec445e2:f7794b23b5e0c4bb1aed22136ceaa19b) is still referenced from table \"nft_entity\".","state_code":"23503"}

So what is status on this?

Guess quickfix was merged, no one has opened a deploy PR

#234
#235

@daiagi still an issue
https://assethub-polkadot.subscan.io/block/5858315
update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity"DELETE FROM "token_entity" WHERE id = $1

{
  "detail": "Key (id)=(112-61dbec5f9f3ee7d511b16253dd4d43dd:ca874f6b5847ad42bb0bc05dba3f7a5f) is still referenced from table \"nft_entity\".",
  "state_code": "23503"
}

@vikiival
nothing here makes sense

delete is wrapped in try/catch. how could it possibly crash the indexer?

https://assethub-polkadot.subscan.io/block/5858315

only extrinsic here is set_price which is handled by nfts/list which does nothing with TokenEntity

local logs:
3.1: only thing about this token id is creation

3.2 no mention of delete in this block, only LIST, as expected

You have access to the https://app.subsquid.io/squids so please observe logs

yes i know it's there. I'm not claiming it isn't
but i can't make any sense of it


[BUG] Relationship Lines in Edit Mode

Describe the bug
I see that I do not get the relationship Lines in the Edit mode.
To Reproduce
Steps to reproduce the behavior (this is an example):

make sure you have relationship settings in the the theme set in Style settings

Expected behavior
I Wanted to have Relationship Line settings in the Edit mode like We have in the relationship lines in Other themes. I see by default we do not get relationship lines in Edit mode between bullet points
Screenshots
Edit Mode

Preview Mode

Version [Desktop or Mobile]:
latest
Additional context
Add any other context about the problem here.

That is not a bug. I didn't add relationship lines in Edit Mode because they tend to be quite buggy, and I wanted to wait for Live Preview in order to see if I could come up with something decent that worked for both modes.

Got you, This sounds good. I'll wait till you add the feature to Edit Mode. Thanks for clarifying.


Improve PythonBridge robustness inspecting special objects

Some Python objects have special attributes that cannot be inspected.
For example:
import openpyxl
wb = openpyxl.load_workbook(filename="/Users/sven/Documents/test.xlsx")
ws = wb.active
ws

fails.
Robustness should be improved.

The example above now works.

There remain attributes/objects in this library that act strange (i.e. can't be printed or string converted), this is now properly flagged by the machinery.


[ci_gen_kustomize_values] Add mac address mapping for nic1

This patch allow the mapping of the nic1 to the mac address of the default interface in compute node and is required due to [1]
[1] https://github.com/openstack-k8s-operators/architecture/pull/157
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[x] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[x] Content of the docs/source is reflecting the changes

[zuul@controller-0 ~]$ grep 'nic1:' ~/ci-framework-data/artifacts/ci_gen_kustomize_values/edpm-values/values.yaml
                        nic1: 52:54:00:b2:8a:98
                        nic1: 52:54:00:63:73:db
                        nic1: 52:54:00:53:b5:ef
[zuul@controller-0 ~]$ for i in {0..2};do ssh compute-${i} ip link show eth0|awk '$0 ~/link/ {print $2}' 2>/dev/null;done
Warning: Permanently added '<IP_ADDRESS>' (ED25519) to the list of known hosts.
52:54:00:b2:8a:98
Warning: Permanently added '<IP_ADDRESS>' (ED25519) to the list of known hosts.
52:54:00:63:73:db
Warning: Permanently added '<IP_ADDRESS>' (ED25519) to the list of known hosts.
52:54:00:53:b5:ef

/approve

I could successfully generate the snippet on my end, and it correctly listed the NIC.

/approve

/lgtm


https://github.com/dxos/dxos/pull/4757

https://github.com/dxos/dxos/pull/4757

this is blocking @zhenyasav's ability to recover his broken folders


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Other
Brief description of your issue
WinGet points to the wrong (legacy) installer. The new installer should be used instead.
Steps to reproduce
winget show KeePassXCTeam.KeePassXC
Actual behavior
Installer-URL: https://github.com/keepassxreboot/keepassxc/releases/download/2.7.6/KeePassXC-2.7.6-Win64-LegacyWindows.msi
Expected behavior
Installer-URL: https://github.com/keepassxreboot/keepassxc/releases/download/2.7.6/KeePassXC-2.7.6-Win64.msi
Environment
Windows: Windows.Desktop v10.0.22621.2134
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.20.2201.0

Screenshots and Logs
No response

Related KeepassXC issue: https://github.com/keepassxreboot/keepassxc/issues/9800

Updated locally, pushing to GitHub later

Close with reason: Resolved by linked PR;

installed KeePassXC today with freshly installed Windows 11, it still used the legacy installer. Shouldn't this fixed?


[monitoring] issue with rancher-monitoring in a k3s cluster

Hi everyone,
I am unable to install monitoring on my k3s cluster via rancher 2.5.5, every pods is running, but the solution not work.
In particular, I notice that pushprox-clients are unable to contact the pushprox-server.
By installing the various components separately without rancher, they work (there is not the pushprox)
Is there the possibility to remove the pushprox from the deployment or is it essential for rancher?
Has anyone with a k3s cluster had similar issues?
Thanks.

I'm encountering this issue as well, when trying to access Grafana I see:
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "error trying to reach service: dial tcp <IP_ADDRESS>:8080: i/o timeout",
  "code": 500
}

In the pushprox logs there are errors trying to connect to port 8080 on the host machine ip addresses.

Very thanks for your answer, changing the flannel backend from IPSec to wireguard fix the problem.


Where does the AListItem in the document come from?

document
Is it a custom component?

i know now ，i need upgrade pack

It's new component but isn't released yet.
Maybe i will make new release tomorrow.
Stay tuned 😇

It's live now 😍
Installation have breaking changes: https://github.com/jd-solanki/anu/blob/main/docs/guide/getting-started/installation.md


proteome comparison xls addition: feature links

The feature ids should be hotlinked back to the patric site.

@levinas @maovt I guess this issue was lost for a year. Any of you can double check whether this is already addressed? or still doable?

Also see #621

Implemented and made a pull request

The implementation is now available in production.


Add FC pp to the score info.

name says it all, adds fc acc to the score info. will be PRing a 1.34.2 version very soon.

Everything seems to be fine. The only thing i can mention is that you dont follow the project style (the editorconfig file with style preferences located in the root of the project).

Everything seems to be fine. The only thing i can mention is that you dont follow the project style (the editorconfig file with style preferences located in the root of the project).

Oh, I see what you mean (I think). That's my bad, I've literally never used C# until I made this PR. Would it be better for me to remake the pull request to match the style closer?

No need to remake the PR. You can just create a commit with the style changes (or revert the current one and apply only logic changes)

Alright, I plan to remake it anyways when i get home from school as some of the logic is inconsistent. So I'll probably just stick to logic changes and keep the original style.

This should be a lot better than before I hope. Let me know if it isn't. Much thanks appreciated.


[DSA Array 1.1.2 Task 1]: Reverse an Array

Description 📜
I have made a documentation for the Task 1 of this issue.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes #110

## Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[x] DSA
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] Java#Script
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@Muskan-creator How to convert to draft? Yes, this is still in progress and 2 more tasks to be completed. I know markdown and have used it. Besides, the problem statement is specified in the heading itself. I have given code output as a hyperlink as the image is bigger. Code is already organised. Plz merge my PR !


add cape community operator to operator hub

Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[x] Does your operator have nested directory structure?
[x] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
Signed-off-by: Chakradhar Rao Jonagam<EMAIL_ADDRESS>

/test CVP

Can you fix following problems?
ERROR: crd spec.version not defined. [1.0.0/operator.cape.sh_installers_crd.yaml]
WARNING: csv metadata.annotations.categories not defined [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.description not defined [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.containerImage not defined [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.createdAt not defined [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.support not defined [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.certified not defined. [1.0.0/cape.clusterserviceversion.yaml]
WARNING: csv metadata.annotations.description not defined.Without this field, the description displayed in the tiles of the UI will be a truncated version of spec.description. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
WARNING: csv metadata.annotations.categories not defined.Without this field, the operator will be categorized as Other. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
WARNING: csv metadata.annotations.repository not defined.Without this field, the link to the operator source code will not be displayed in the UI. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
WARNING: csv metadata.annotations.createdAt not defined.Without this field, the time stamp at which the operator was created will not be displayed in the UI. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
WARNING: csv metadata.annotations.containerImage not defined.Without this field, the link to the operator image will not be displayed in the UI. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
ERROR: csv.spec.provider should be a singleton list. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
ERROR: UI validation failed to verify that required fields for operatorhub.io are properly formatted. [ebe1cf01-8725-4bef-88f3-b59f825fc1b6/cape.package.yaml]
Resulting bundle is invalid, input yaml is improperly defined.

@mvalahtv  i will update. thanks for taking a look

@mvalahtv can you check if the latest push is good?

/test CVP

/retest CVP

/test CVP

/ok-to-test

/test CVP

@debianmaster, plesse check the following error:
 error decoding CRD: no kind \"CustomResourceDefinition\" is registered for version \"apiextensions.k8s.io/v1\" in scheme \"pkg/registry/bundle.go:15\",

@J0zi  any workaround so that we can stick to latest version of CRD's  apiextensions.k8s.io/v1 ?  instead of apiextensions.k8s.io/v1beta

/test CVP

/test CVP

/test CVP

@debianmaster can you rebase? We have latest olm there now.

/test CVP

@debianmaster can you rebase?

Closing, due to no activity. You can reopen when needed.


V2 - Foundation Level CLA Group - CLA Manager Role is assigned to child projects for user with LFID and CLA Manager Role is assigned with only Organization scope for user without LFID

Due to this issue the user that has been added as CLA Manager is not able to add other CLA Managers and Approval List
Prerquisite

Create CLA Group at Foundation Level with CCLA Enabled
Sign CLA from Corporate Console
CLA Manager role for initla CLA Manager is at foundation which is as expected

Issue1 - User with LFID  is added as CLA Manager

Launch Corporate Console
Add user with LFID and associated to the same organization as CLA Manager
Observed that CLA Manager role is assigned for Child projects instead of foundation(or parent project)

User with LFID and associated with different organization also has same issue

Issue2 - User without LFID is added as CLA Manager

Launch Corporate Console
Add user without LFID  as CLA Manager
Accept Invite link in the email notification, create account
Observed that CLA Manager role is assigned with only Organization scope

Isssue1 is fixed
Issue2 is blocked due to #1733

Verified that the issue is fixed


FidelityStatevectorKernel

Hello,
I am testing qiskit-symb with FidelityStatevectorKernel, but encounter the following error: 'Statevector' object has no attribute 'data'
from qiskit_symb.quantum_info import Statevector
quantum_kernel = FidelityStatevectorKernel(feature_map=..., statevector_type=Statevector)

Hi @gcattan and thank you for posting this!
I'm sorry but I'm not even sure how to reproduce this issue. I tried to run the following code and it works for me.
from qiskit.circuit.library import ZZFeatureMap
from qiskit_machine_learning.kernels import FidelityStatevectorKernel
from qiskit_symb.quantum_info import Statevector

qc = ZZFeatureMap(feature_dimension=3).decompose()
quantum_kernel = FidelityStatevectorKernel(feature_map=qc, statevector_type=Statevector)

Maybe your error is raised when you call the FidelityStatevectorKernel.evaluate method?

Hello again! Yes, I can access the notebook and I see your issue now.
The short answer would be that you can't plug in the symbolic Statevector type in the construction of your FidelityStatevectorKernel like you're trying to do in your code. This is because the qiskit_symb.quantum_info.Statevector is internally different compared to the standard qiskit.quantum_info.Statevector. For instance, the latter has an attribute called 'data' (that your QSVC model is trying to access) but the former does NOT provide the corresponding member with the same name.
Even if this feature is not directly provided in qiskit_symb, I post here a simple snippet of code (far from being optimal in terms of performance) to workaround this problem and achieve exactly what you want to do:
import numpy as np
from qiskit_symb.quantum_info import Statevector

class SymbFidelityStatevectorKernel:
    def __init__(self, circuit):
        self.circuit = circuit
        self.function = Statevector(circuit).to_lambda()

    def evaluate(self, x_vec, y_vec=None):
        if y_vec is None:
            y_vec = x_vec
        shape = (len(x_vec), len(y_vec))
        kernel_matrix = np.empty(shape=shape)
        for i, x in enumerate(x_vec):
            for j, y in enumerate(y_vec):
                fidelity = abs(self.function(*x, *y)[0, 0]) ** 2
                kernel_matrix[i, j] = fidelity
        return kernel_matrix

Once you have defined this new SymbFidelityStatevectorKernel object, you can use it to build your QSVC model:
from qiskit.circuit.library import ZZFeatureMap
from qiskit_machine_learning.algorithms import QSVC

fm1 = ZZFeatureMap(feature_dimension=3, parameter_prefix="a")
fm2 = ZZFeatureMap(feature_dimension=3, parameter_prefix="b")
circuit = fm1.compose(fm2.inverse()).decompose()

quantum_kernel = SymbFidelityStatevectorKernel(circuit=circuit)
qsvc = QSVC(quantum_kernel=quantum_kernel)

# Get your data and fit the model
# ...

Ok. May be we can provide a property "data" like this to the Statevector inside this library:
@property
  def data(self):
    return self._data

Yes, making the 'data' attribute accessible as a property looks reasonable (I was actually trying to do something similar). However, this would not be enough to solve your issue with the QSVC model here.
To make qiskit-symb features fully compatible with the QSVC and possibly more qiskit_machine_learning models, a little bit more work is required. If you have any idea and want to give it a try, feel free to start working on it and open a PR as soon as you have something working so we can further discuss ;)

Hi @SimoneGasperini
I recently made some testing with real data on this, to improve the simulation time in our library.
The feature map contained 5 qubits.
The SymbFidelityStatevectorKernel ran in 172 s
The FidelityStatevectorKernel in 35s,
and the FidelityQuantumKernel in 572s.
Do you have may be some tips to optimize the code above?

Please, do not hesitate to comment on the PR above if you have some time :)

Hi @gcattan!
First of all, thank you for your work on the qiskit-symb integration within your project.
I took a quick look at the pyRiemann-qiskit repository and it seems interesting.
Concerning this issue here about the symbolic evaluation performance, I got few new ideas for potential improvements: in particular, I would like to integrate into my project the symbolic Quantum Mechanics module available in sympy, which offers an interesting set of tools that could lead a significant speed-up for several qiskit-symb features.
Unfortunately, this idea may require quite some time and I can't immediately deal with this and give you an exhaustive answer. However, I will go back to work during the next few weeks and I also have good reasons to believe that the planned upgrades will be beneficial for your quantum feature map evaluation use-case.
Thank you for you patience and let's keep in touch!

Hello again @gcattan!
I recently managed to complete the integration of the sympy Quantum Mechanics module into qiskit-symb (only dev branch, at the moment) and I think it should already be possible to appreciate an improvement in the symbolic evaluation performance compared to the previous version you used in your testing.
If interested, I would suggest you to run all your tests again as soon as you find some time. That would be great also for me to understand whether the effort I put into this code optimization lead to an actual benefit in the performance.
To install this "optimized" version of qiskit-symb (including the new implementation of the sympy-based evaluation engine), you can pip install the package directly from the dev branch of the GitHub repository:
pip install git+https://github.com/SimoneGasperini/qiskit-symb.git@dev


Can we get the steps to expose the Dashboard in a secure way?

As you mention in this article following the sample binding for the Dashboard would expose the dashboard in an insecure way. Could you please provide documentation on how to expose it in a secure way?
I know that the way you present above is a common attack vector for Kubernetes clusters in general.

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

ID: 2ba1dad2-9792-2a7b-cdb6-68da0524cff3
Version Independent ID: 42736112-f6db-d241-e89b-48fd2c35ceb7
Content: Manage an Azure Kubernetes Service cluster with the web dashboard
Content Source: articles/aks/kubernetes-dashboard.md
Service: container-service
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

This has already been requested and noted in a previous GitHub issue - https://github.com/MicrosoftDocs/azure-docs/issues/14983#issuecomment-422926288
@MicahMcKittrick-MSFT #please-close


cursor jump around when tabnine open

OS/Web Information

Web Browser: 93.0.4577.82
Local OS: Windows 10 OS Version 2009 (Build 22000.194)
Remote OS: linux
Remote Architecture: Debian GNU/Linux 10 (buster)
code-server --version: v3.11.0

Steps to Reproduce

with tabnine installed in code-server
write some code
the cursor just jumps around but not in the right place
everything is fine when I wrote code in vs code with tabnine

Hi there! Thanks for this.  Any logs or a video showing this behavior would be helpful


Support Splinter exporters (#555)

Add Splinter model in exporters.
Contributions related to @michaelbenayoun 's checklist from issue #555

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Fixed #24859 -- Make UUID field raise TypeError on bad value

For consistency with AutoField. I'm not entirely sure get_prep_value is the best place to do this validation, please advise if not.

Take a look at the get_db_prep_value method below. Better than checking for {} or [], if the value is not an instance of uuid.UUID and is also not a string type, try casting it to uuid.UUID and if that fails then throw the type error.

OK, thanks, will do.

Revised now.

OK, naked except is gone.

buildbot, test this please.

@mjtamlyn Whoops, I missed that the  except (ValueError, TypeError) was no longer required. Sorry, and thanks for your patience.

@timgraham Thanks. Amended to use assertRaisesMessage.

buildbot, add to whitelist.

merged in 20ff296cb15a53b8b9517a834688e57749b43e21, thanks!


Check if visualization fails after PR #1109

Check if visualization fails after PR #1109 that task_time_submitted is nullable.

visualization has had a lot of work and testing since this issue was opened, so I'm closing it.


SQL injection with Jinja 2 templates: how to escape values?

(Assuming we have
FEATURE_FLAGS = {
   # . . . . .
  "ENABLE_TEMPLATE_PROCESSING": True
}

)
For example, I have a filter
{% set filter_city = filter_values("example_filter_city_name", remove_filter = True) %}

{% if filter_city | length %}
  example_city_name IN  (
    {{ "'" + "','".join(filter_city) + "'" }}
  )
  OR example_city_name IS NULL
{% else %}
  TRUE
{% endif %}

How can I escape SQL values in {{ "'" + "','".join(filter_city) + "'" }} expression to make this filter template safe?
See also:

Superset doc on sql templating.

As a temporary poor man's solution I've added custom functions for jinja2 templates to escape PrestoDb strings. These functions use replacement of single quote with CHR(39) concatenation:
# >> escape_presto_string("Dr's")
# "Dr' || CHR(39) || 's"
def escape_presto_string(s = ''):
  return s.replace("'", "' || CHR(39) || '")

# >> escape_presto_strings(["Dr's", 't'])
# ["Dr' || CHR(39) || 's", 't']
def escape_presto_strings(ar = []):
  return list(map(escape_presto_string, ar))

# >> escape_presto_strings_in(["Dr's", 't'])
# "'Dr' || CHR(39) || 's','t'"
def escape_presto_strings_in(ar = []):
  escaped_ar = escape_presto_strings(ar)
  if (len(escaped_ar) == 0):
    return ""
  return "'" + "','".join(escaped_ar) + "'"

JINJA_CONTEXT_ADDONS = {
    "escape_presto_string": escape_presto_string,
    "escape_presto_strings": escape_presto_strings,
    "escape_presto_strings_in": escape_presto_strings_in,
    "list": list,
}

So code above becomes:
{% set filter_city = filter_values("example_filter_city_name", remove_filter = True) %}

{% if filter_city | length %}
  example_city_name IN  ({{ escape_presto_strings_in(filter_city) }})
  OR example_city_name IS NULL
{% else %}
  TRUE
{% endif %}

I want to improve escape_presto_string() function by calling data source escape function?
How to get current sql alchemy connection in escape_presto_string() and what methods should I call?

I think it's good practise to deny requests with non printable characters and check field length.
For example, mysql-real-escape-string function escapes  \x00, \n, \r, , ', " and \x1a characters but people usually don't have

@andrey-mikhailov don't have what?

mysql-real-escape-string function
Superset uses python, not php


Better exception when mock is invoked after expectations are verified.

In several instances during development, we have encountered situations where a NPE is thrown unexpectedly and without explanation. After some investigation it seems that it's happening when a mock is called after expectations have already been verified.
This can happen easily when using ScalaTest's PathSpec variants to test async code. The developer forgets to wait for their async call to complete, proceeds to call verifyExpectations, and only after the verification is the mock function invoked (at which point the mock's call log has been nullified by https://github.com/PagerDuty/ScalaMock/blob/master/core/src/main/scala/org/scalamock/MockFactoryBase.scala#L84).
This PR avoids the NPE by throwing a more appropriate exception if the callLog has been set to null.

👍


fix(CI): npm publish to be triggered when a GitHub release is published

☁ Nx Cloud Report
We didn't find any information for the current pull request with the commit 7d3573e8ecf689667eb283a8cfe5d7a4af1c4267.
Please verify you are running the latest version of the NxCloud runner.
Check the Nx Cloud Github Integration documentation for more information.
Alternatively, you can contact us at<EMAIL_ADDRESS>
Sent with 💌 from NxCloud.


Zap android wallet connection QR code

Please add an option of showing the QR code for connecting Zap android wallet, as it's not currently in the Connect/Mobile menu and it took me some time before I realized I need to get the Tor hostname from /mnt/hdd/tor/lndrpc10009/hostname as Zap does not support REST as Zeus does.
Not a problem for me now, since I have it configured already and it works, but it might help other new users.

closing because of duplicate


[JS] Arrow Flight JavaScript Client or Example

Is it possible to use Apache Arrow Flight to send data from a Python Web Server to a JavaScript browser client? If it is possible, is there a code example to use to get started?

If this is not possible, what is the fastest way to send data from a Python Web Server to Apache Arrow in the browser today? Would it be faster to send a Parquet file and unpack it client-side, or send Arrow directly/with gzip/ etc.?
Reporter: Alex Monahan
Note: This issue was originally created as ARROW-9860. Please see the migration documentation for further details.

Hi, can you please update if there is any update on this effort?

Hello, I am also in this same situation. I made a small grpc-web demo (you can take a look here https://git.ligo.org/martin.beroiz/grpc-demo) and I'm now expanding it to replace the grpc server to an arrow flight server.
The server side works as intended without much change, but I'm struggling on the browser side. I compiled the arrow flight protobuf's and included them in the web app (I can upload a work-in-progress repo if anyone is interested)
The client.js side looks a bit like this:
import { HandshakeRequest, Criteria } from "./arrow_pb.js";
import { FlightServiceClient } from "./arrow_grpc_web_pb.js";

var myFlightService = new FlightServiceClient("http://localhost:8080");

$(document).ready(function () {
  $("#send-button").on("click", async function (e) {
    e.preventDefault();

    var request = new HandshakeRequest();
    var criteria = new Criteria();

    myFlightService.listFlights(request, criteria).then((err, response) => {
      if (err) {
        console.log(err);
      }
      console.log(response);
    });
  });
});

This doesn't work mainly because I don't know much about calling flight from a client in general.

the function listFlight requires a request argument that I don't know how to create
I have no idea what myFlightService.listFlight returns (a promise?) or how to deal with it to get a response and unpack the data after

A short example with a do_get request or something of the sort could help tremendously. Hopefully this will help someone move forward with a working example.

@pbower I unfortunately could not move past that point. My javascript skills are lacking and I don't understand how to process the flight messages into JS objects. I think that without a proper javascript library it will be quite the challenge.

oh and for the record, I also tried the Rust WebAssembly route, but it didn't work for me because there are many rust dependencies (even built-in ones IIRC) that deal with OS calls and I/O and other stuff that fall out of scope of what can be compiled to WA and run in a browser. So I gave up on that as well.


fix(versions): update Activiti/activiti-cloud-full-chart-security versions

UpdateBot pushed helm dependency: activiti-cloud-full-example to: 7.1.362

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-full-example 7.1.362


reclassify terms according to Harrison's

address #2741

I'd like to review this with @cmungall and @pnrobinson on a Mondo call

ticket: need check for dbxef for synonyms (not source)
fix conflict


Query: Is It Possible to Extract Content Using All HTML Tags in ReadTheDocsLoader?

Issue you'd like to raise.
According to the ReadTheDocsLoader documentation, this loader iterates through all the files located under a specified path and extracts the actual content of the files by retrieving main html tags.
from langchain.document_loaders import ReadTheDocsLoader

loader = ReadTheDocsLoader("docs", encoding="utf-8", features="html.parser")
docs = loader.load()
len(docs)

Question: In my HTML files, I don't have main HTML tags. Is it possible to configure the ReadTheDocsLoader to extract content from files by capturing all HTML tags instead of just the main HTML tags? Alternatively, are there alternative loaders available that can traverse all files within a specified path and extract content by capturing all HTML tags?

from langchain.document_loaders import ReadTheDocsLoader

loader = ReadTheDocsLoader("docs", encoding="utf-8", features="html.parser", custom_html_tag=('p', {}))
docs = loader.load()
len(docs)

Is it possible to use '*' as a custom_html_tag to extract content from all HTML tags instead of specifying a specific tag like <p>?
cc: @hwchase17

from langchain.document_loaders import ReadTheDocsLoader

loader = ReadTheDocsLoader("docs", encoding="utf-8", features="html.parser", custom_html_tag=('p', {}))
docs = loader.load()
len(docs)

@dosu-bot Is it possible to use '*' as a custom_html_tag to extract content from all HTML tags instead of specifying a specific tag like <p>?
cc: @hwchase17


:sparkles: deleted unused code

Summary
Deleted unused functions and constants, set unused function parameters to underscore.
This was done in order to remove deletion noise from the to-be-made PR for issue #1730, which will delete a lot of functions.
Related issue(s)
#1730

@MikeSpreitzer technically this is of the lowest priority, but on the other hand rebasing on it should have no conflicts. I think what's most important is to get it through before my next. Up to you.

Now that #1735 has merged, I think it is OK to merge this next (after the needed rebase, of course). It should have little interaction with #1707.

rebased


Drag-and-drop images in Internet Explorer doesn't work

The training page for images doesn't allow drag and drop when using IE.

ignore the commit above.... in moving the repo from Github Enterprise to public Github, the issue numbers don't match up, so it refers to a closed issue from the old repo :(

This issue is documented in the Help screen
https://github.com/IBM/taxinomitis/blob/390954da60e4c75d2a13db911ddd8300f33ab826/public/components/help/help.html#L151-L160

IE usage isn't high enough to justify the effort for this, so I'm going to close it


bisbeeDiff

the diff.R script is not taking in all the samples correctly.. it only ever takes in 8 samples. furthermore, it keeps spitting out the "Error in solve.default(oout$hessian) :
Lapack routine dgesv: system is exactly singular: U[1,1] = 0" error.
Has anyone been able to fix this?
It looks like this is not being actively maintained still... that's a shame.

I have encountered the same problem, even with the test dataset or my dataset the error is always the same.


fix: avoid example make error on macos

avoid example make error on macos

Before we can integrate, please sign the ECA so that CI passes.


Number of inducing points

Hello,
Thanks for creating such a great GP library. I am about doing some experiments with GPflow and regression. One thing that is not so clear to me is to select the number of inducing points for sparse GP model.
I took a look at http://gpflow.readthedocs.io/en/latest/notebooks/Sanity_check.html. I can imagine I should create a sparse GP model using GPflow as follows:
m = gpflow.sgpr.SGPR(X, Y, kernel = some_kernel, Z=X.copy())
But how is about to select the number of inducing points instead of using a (fixed) number of data points for Z. Did I miss anything? Could you instruct me how to  so?
Thanks!
Best,
Hoang Cuong.

Glad you like GPflow!
By passing Z = X.copy() you have inducing points at every data point, so you may as well use GPR (which is exactly this model but implemented more efficiently). The notebook to which you refer is there to check method equivalence, and isn't an example of a practical use.
If you want to have a smaller number of inducing points you need to specify their initialization. Here are some options:
Z = np.random.choice(X, M, replace=False)  # a random subset of data

from scipy.cluster.vq import kmeans2
Z = kmeans2(X, M, minit='points')[0]  # use k-means. This is recommended for most situations

Z = np.random.randn(M, X.shape[1])  # random locations. NB be careful with this in high dimensions

In all cases, you then you create the model:
m = gpflow.sgpr.SGPR(X, Y, kernel=some_kernel, Z=Z.copy())
I would suggest taking M to be about 50-1000, depending on the complexity of your function and the computational available (lower is M cheaper, but less expressive). You'll find things very slow if you go much higher than 1000

Thanks @hughsalimbeni for your answer! Pretty clear!


[Improvement][rust] Set the default value for config key in toml

Code of Conduct

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

Search before asking

[X] I have searched in the issues and found no similar issues.

What would you like to be improved?
Currently, the optional value of conf key is scattered everywhere, we should set the default value if it is not shown in toml config file.
Refer: https://github.com/serde-rs/serde/issues/725
How should we improve?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

hi @zuston i am new here, let me have a try

hi @zuston i am new here, let me have a try

Thanks. Assigned


Web Components: [Card in card video variant] Visual QA

User Story

As a [user role below]:
DDS Designer and Developer

I need to:
test the Card in card video variant

so that I can:
be sure the developer's code correctly works as designed

Additional Information

See the Epic for the Design and Functional specs information
Creating a QA bug
Card in card Box folder
Development of React version will be done later.
Web Component Dev issue (#5488 )

Tasks
Ensure the Card in card video variant component has been tested and reviewed by design + dev.
Acceptance criteria

[ ] Pattern is reviewed by designer and design defects are identified
[ ] New issues are opened to log individual defects
[ ] Screenshots of as-is and to-be design should be added to the issue when needed
[ ] Developer associated with building the pattern is assigned to the new issues
[ ] Appropriate labels are added to the issue  eg.  bug, dev

FYI @DragosRistici we are rushing to get these merged for India team to start QA so I took another look at this guy. It was good. So this is off your plate now. Thanks!

Ooops sorry Roberta I missed "video" in title! I reversed my actions.


Implement the Cognitive Reflection Test (CRT) from Surveyor

Implement the CRT survey (found here) in SurveyJS, including a result named CRT which is an aggregation of the responses, scaled to a 0–1 interval. Other variables can have names like CRT_eggs.

Done


PubTator is not working

Describe the bug
The PubTator widget on the variant details page show an error instead of variant/gene related information.
"Error loading PubTator 3 data: Error: Error running PubTator 3 search: InvalidResponseContent: failed to parse PubTator 3 export: TypeError: l[c.pmid] is undefined"
To Reproduce
Steps to reproduce the behavior:

Open a case
click on Filter&Display
click on a variant in the list
scroll down on the variant details page to the PubTator widget

Expected behavior
PubTator should show gene or variant related literature.
Screenshots

Desktop (please complete the following information):

OS: Win10
Browser Firefox
Version 124

Issue also exists in Berlin

Works again. Re-open if issue persists.


Stack creation does not work properly when multiple clusters are running

When a new stack created, the master node invoke auto_hpcc.sh to initialize the HPCC cluster.  When there are multiple stacks running, this script failed to configure the cluster correctly.

This issue has been addressed.  You should able to create multiple stacks without any interference.  Need to verify again.
All code changes will be ported later.  See #30


CocoaPods could not find compatible versions for pod "RxSwift"

When I update my pod to 'Moya/RxSwift', '~> 14.0' I got an error, can someone help me resolving this error:
[!] CocoaPods could not find compatible versions for pod "RxSwift":
  In snapshot (Podfile.lock):
    RxSwift (= 4.5.0, ~> 4.0, ~> 4.1)

  In Podfile:
    Moya/RxSwift (~> 14.0) was resolved to 14.0.0, which depends on
      RxSwift (~> 5.0)

Specs satisfying the `RxSwift (= 4.5.0, ~> 4.0, ~> 4.1), RxSwift (~> 5.0)` dependency were found, but they required a higher minimum deployment target.

Thank you in advance.

Specs satisfying the RxSwift (= 4.5.0, ~> 4.0, ~> 4.1), RxSwift (~> 5.0) dependency were found, but they required a higher minimum deployment target.
tells you that you have to update your deployment target SDK in the podfile so that Cocoapods can use RxSwift 5

May I ask if what will be the desired deployment target in SDK in the podfile so that I can use RxSwift 5? Thank you.

You can see it in the podspec, either from the cocoapods repo or the RxSwift repo

But even I change my deployment target to 8.0 -> 10.0 still I'm getting the same error upon installing moya 14.0.0, also I check my podfile : platform :ios, '10.0' is my deployment target. :'(

I think this issue is unrelated to Moya. You need RxSwift ~> 5.0 in order to have Moya/RxSwift ~> 13.0.
If you cannot upgrade RxSwift for whatever reason, my approach would be to install Moya without RxSwift and manually add the RxSwift related files (look inside Moya’s RxSwift folder) to your code base.


Make ritual "item" in jei complete the ritual they are for

So in creative testing, it can be a pain needing to summon the various spirits manually making the pentacles and whatnot.
It would be cool if the "items" used for jei ritual integration would summon the spirit they are for as if you completed the ritual when right clicked.

That's definitely a neat idea, will look into that!


[Improvement][api] can set email list for each task

Describe the question
Version1.3.5 is using.

When editing a task, no place  to set the alert email list.
What are the current deficiencies and the benefits of improvement
Can set email alert list for each task.
Which version of DolphinScheduler:
-[1.3.5]

At present, the alert group config is process instance level, it is a good idea to implement the task level config.

This modification is not necessary. May close it.


add landscape and better touchscreen experience

Android
That's navigation bar, not status bar
my typo
Select/Start
Portrait: Game Boy Advance SP
Landscape: Game Boy Micro
screen orientation
auto
portrait
landscape
Landscape
open menu button to rewind or fast-forward

GBA/GBC/GB share same button position
Game screen at top (Close to Time, Camera, Battery)
Virtual Gamepad at Buttom (Close to Navigation bar, not Navigation bar position)
It costs me a lot of time

@skylersaleh


Random Double Battle: Update Raticate

It doesn't want Super Fang since it usually gets Guts anyways.

Is Guts the only ability it can get in RandBats? If not, I think you should just deny Super Fang with Guts.

Upon closer inspection, it can get either Guts or Hustle. And Super Fang works with neither.
Also, the randbats script chooses the ability last in order to tailor to the moves chosen , so one does not simply reject moves with abilities. This is important to make sure that, for example, non-mega Aggrons with Head Smash can get Rock Head instead of Sturdy.


os/mac/xquartz: fix handling of XQuartz 2.8.0+

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

This should go completely. We maybe need to properly deprecate ENV.x11 first though, not entirely sure.
Fixes #12115.

Review period skipped due to critical label.

I think yes, I'll remove this entirely but in a separate PR.


Comment/Documentation URL

Comment has a url to a documentation page that doesn't exist.
https://github.com/vis2k/Mirror/blob/db2e1488c1a6485e96aa379a4c931376242ebaa3/Assets/Mirror/Runtime/NetworkAuthenticator.cs#L15

Fixed -- Thanks!
Correct URL


Use gen-flow-files to generate Flow declarations

When the entire source is copied as a declaration, consuming projects have issues resolving the module imports via Flow, perhaps specifically imports that use Git repo (like @freckle/maybe here). Flow seems to use its own module resolution logic because it will complain about a missing module even when it resolves other modules in the same file path. For instance, lodash imports resolve fine.

This doesn't actually fix the issue since it retains import statements. I think it is difficult to filter out value-level imports since  import * as Identifier from ... combines value- and type-level imports, the latter of which is necessary to preserve.


[client] Regularize responsibility for setting up the game

Currently, the creator of the game does not necessarily get to decide the details of play, such as the playing deck and whether or not there is a private area.  If we added the ability to lock the game to landscape or portrait, this anomaly would get even more glaring.
The problem comes about because the order of play (and who gets to play first) is determined by randomly assigned order numbers.  As a result, the creator of the game is not necessarily first to play.   But, it is the player who is first to play that gets to determine the game characteristics.
Perhaps this could be fixed by reserving a low order number for the creator and otherwise using the same protocol.
But, playing first is arguably something that ought to be random.   A more comprehensive solution might be to have a formal "set up" phase that is not considered a turn at all.   In fact, it probably should occur prior to searching for players.

I'm not ready to reorganize the logic to the point of requiring setup of the game before finding players.   I believe that once we start putting logic to support specific games into the server this will be bound to change, and I don't want to change it twice.
So, I'm going to address this issue by giving the creator of the game the special order 1 and requiring all other players to have order in the range 2...UInt32.max.
There is subtlety, though.   When playing in "nearby only" mode, there is no player that has the role of creating the game.  There are just peer players who search for and find each other, after which both setup and play can begin.   So, the assignment of the special order 1 will apply only to server based games.   The "creator" in this case is the player who generated the game token (the other players have just passively received and entered the token).

I'm regarding this as fixed despite limited testing.


Print some meaningful statistics after a successful migration

Replaced by https://github.com/digiaonline/lumen-elasticsearch/issues/67


Where can I get the additional annotation of the NTU RGB+D dataset?

Hellow, Sir!
Firstly, thank you for your open source !!
I'm now doing a research project on the NTU RGB+D dataset. In my previous study, I have the the additional annotation provided in this project.
Since there is a new version of NTU RGB+D dataset, namly "NTU RGB+D 120",  I also want to use the additional annotation information in the experiment on"NTU RGB+D 120". But I just can not find the download link in the official website of 'NTU RGB+D'.
So, How can I get this the additional annotation from the raw provided data?
Thank you for your attention to this matter.

Hi @jin-miao-cai ,
I don't have this annotation for the NTU RGB+D 120.
If it has the same original annotation as the NTU RGB+D 60 dataset, you could compute the pose labels by taking the (x,y) in the image coordinates and concatenating it with the depth information in each point. To recover the depth information in each point, you could sample the depth map at the position (x, y).


Implement subword navigation option in the script editor

Issue description:
Most editors and IDEs nowadays support subword navigation, which allows you to hold control(usually) and use the arrow keys to navigate a chunk of text without skipping the whole thing. So with identifiers like my_variable_name, if the caret starts at my_variable_name| and you hold control and hit the left arrow, the caret would go to my_variable_|name instead of going to the beginning of the identifier. In addition to navigating snake case, it should also support camel case. This would also work for right arrow, backspace and delete. It would make renaming certain parts of variables a lot less annoying than it currently is.
I would love to see the Godot script editor support this feature.

It seems underscores are already considered not to be part of words, according to https://github.com/godotengine/godot/blob/e9999290241d81ac6f67686cf3704705a430262c/core/ustring.cpp#L65-L66. However, subword navigation doesn't work with underscores in the script editor.

Hi, I checked linked issue #46721, but it is about Text Server, which seems to be a runtime feature.
Unless it's also used by the engine itself for the script editor, but in this case, where is the editor setting equivalent to the usage example using TextServerManager?
If this doesn't help the script editor side, then we still need to work on the script editor to support either: an editor setting (flag) to consider underscore _ a word breaker, or better, brand new shortcuts to navigate per sub-word, separated by underscore or upper characters, we the user can quickly switch between full word and sub-word navigation.
This would be a feature request, not a bug though, so it would go to the Proposals repository.
I'd just like to ask if it is intended by design not to break at underscores in the script editor right now.

if by design, then we should "re-close" this issue as rejected (but not completed, as it would give a false impression to users checking this), and open a suggestion in the Proposals repository for subword navigation
if not by design, then we should reopen this issue since the behaviour is still the same. We can still open a suggestion in the Proposals repository for subword navigation on top of that, since users who also need to old full-word navigation will benefit from an option to switch between both navigation modes

Well, as you can see just above, I ended making a proposal so we can get started.


Make it easier to pass React props to cva component

Is your feature request related to a problem? Please describe.
Using React, it would be nice if I could pass all props to my cva component. Currently I always have to destructure className and pass it to class. Perhaps className could be added as an alias for class as a non-breaking change?
const foo = cva({/* ... */});

function Foo({ className, ...restProps }) {
  return

}

Describe the solution you'd like
const foo = cva({/* ... */});

function Foo(props) {
  return

}

Coming from stitches I also sometimes miss the ability to extract non-variant props from the component call:
const foo = cva({/* ... */});

function Foo(props) {
  const { className, props: remainingProps } = foo(props);
  return

}

Describe alternatives you've considered
I suppose I could wrap cva and the returned component function such that className is mapped to class. I haven't tried it  so perhaps it isn't so bad. Still, I imagine others using React might benefit from this type of functionality being built in.
Thanks 🙌

Thanks @sandgraham! It’s something I’ve thought about adding — as a prop and as a separate package — but it feels like a lot of overhead for one framework (FWIW I use React too)
Not ruling this out just yet, but I think it’s fairly unlikely I’ll do this anytime soon

@joe-bell I'm curious, when you're using cva with react do you manually unpack the class property to pass it to className?

I manually destructure className and pass it to class, yes

Moving this to an “ideas” discussion


[BUG] AzureLocation not supporting NULL check

Library name and version
Azure.Core 1.32.0
Describe the bug
ThanksI'm migrating Microsoft.Azure.Management.ResourceManager.Fluent.Core to Azure.Core which main changes are changing Region to AzureLocation.
We had the following code:
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
private Region _region;

if (_region == null)
{
   _region = Region.Create(displayName);
}

When I tried to migrate it to now use AzureLocation:
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
private AzureLocation _location;

if (_location == null)
{
   _location = new AzureLocation(displayName);
}

it didn't work, I got the following error, pointing to the line where I'm comparing _location == null, not where I'm setting _location = new AzureLocation .
Error Message:
   System.ArgumentNullException : Value cannot be null. (Parameter 'location')
  Stack Trace:
     at Azure.Core.AzureLocation..ctor(String location)
   at Azure.Core.AzureLocation.op_Implicit(String location)

I ended finding a workaround so I don't have to compare _location == null, but I saw something similar was reported before #34818 and you didn't find a way to reproduce it.
Should we be able to compare _location == null?
Expected behavior

Give a better error message

Actual behavior
The following error is thrown
Error Message:
   System.ArgumentNullException : Value cannot be null. (Parameter 'location')
  Stack Trace:
     at Azure.Core.AzureLocation..ctor(String location)
   at Azure.Core.AzureLocation.op_Implicit(String location)

Reproduction Steps
Added in description
Environment
No response

Thank you for answering!


A way to set global defaults

It would be cool with a way that you could specific defaults for all alerts. For instance, I need to change the default text of the cancelButton to something else, because I'm currently localizing my project. Or maybe I'd like to put a default class to the alerts, without having to specify this class on all alerts.
In other plugins, such as Dropzone.js, they have a built in way to define some globals (illustrated here as well: http://www.dropzonejs.com/#events)
Here you can specify Dropzone like this:
var myDropzone = new Dropzone("div#myId", { url: "/file/post", autoDiscover: false});

Now, if you'd like to turn autoDiscover off by default, on all Dropzone elements, you can simply set below variable:
Dropzone.autoDiscover = false;

So now below code will work as well, having autodiscover off:
var myDropzone = new Dropzone("div#myId", { url: "/file/post"});

If I wish to override the default setting, i.e. set autoDiscover to true again on a specific element, I can simply do:
var myDropzone = new Dropzone("div#myId", { url: "/file/post", autoDiscover: true});

Makes sense?

@canfiax if I understand your request correctly, you're looking for swal.setDefaults()

Exactly. Thanks!

@canfiax great! :) I added missing note about that function to docs: https://github.com/limonte/sweetalert2/commit/2454f6947598d6024a0a6da48959ca36e08f645f

Yeah I saw that @limonte great!


Add Alternatives section

This may help users to find more specific tool than ctop

merged; thanks @stokito !


Widget compact / full mode in Nova Launcher

Hi,
When I add the Dash Clock widget to the screen it stays in "compact" mode.
I have to set the widget size much bigger to see the widget in "full" mode.
Still "compact" mode for this size:

Minimum widget size for "full" mode:

Would it be possible to add a flag in settings to force "full" mode and make the content scrollable?
I like when I see detailed notifications in the widget but I cannot reserve over half screen for it.
Android version:5.0.1
Nova Launcher 4.0.1
Samsung Galaxy S4 GT-I9505

The same issue with Nova Launcher (Android 5). It sometime works but when I restart the phone then DashClock widget appears still in compact mode. It's very annoying. I want to see detailed notifications always.

I have the same issue. Galaxy s6 edge, android 5.1.1 and it occurs on both nova prime and action. Launcher 3.

I'm having a similar issue with Aviate Launcher

Looks like it's not going to be fixed. Closing the issue.


security/maltrail flagging its own blacklist.txt requests (solved by maltrail update)

Important notices
[Y] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[Y] I have searched the existing issues and I'm convinced that mine is new.
[Y] The title contains the plugin to which this issue belongs
Describe the bug
See https://github.com/stamparm/maltrail/issues/19044
Maltrail flags its own request for blacklist.txt as medium threat.
According to maltrail maintainer, this has been solved in newer versions.
To Reproduce
Check for the IP <IP_ADDRESS> (ipnoise.now.im) in maltrail (daily request)
Expected behavior
No threat logged.
Screenshots
See https://github.com/stamparm/maltrail/issues/19044
Environment
OPNsense 21.7.7 (amd64, OpenSSL).
os-maltrail 1.8

Fair enough, but I don't think we need a ticket as a reminder to release 21.7.8 which is only one version above 21.7.7 after all. ;)


connection.destroy() is not a function?

var mysql = require('mysql');

var connection = mysql.createPool(db_config);

ln 435:
if(connection._freeConnections.length > connection.config.connectionLimit) connection.destroy();
$ TypeError: connection.destroy is not a function
    at C:\nodeCode\Code\Code.js:435:89
    at C:\nodeCode\Code\node_modules\async\dist\async.js:421:16
    at processQueue (C:\nodeCode\Code\node_modules\async\dist\async.js:1565:20)
    at taskComplete (C:\nodeCode\Code\node_modules\async\dist\async.js:1588:9)
    at Query.<anonymous> (C:\nodeCode\Code\node_modules\async\dist\async.js:1612:17)
    at Query._callback (C:\nodeCode\Code\node_modules\async\dist\async.js:906:16)
    at Query.Sequence.end (C:\nodeCode\Code\node_modules\mysql\lib\protocol\sequences\Sequence.js:86:24)
    at Query._handleFinalResultPacket (C:\nodeCode\Code\node_modules\mysql\lib\protocol\sequences\Query.js:137:8)
    at Query.OkPacket (C:\nodeCode\Code\node_modules\mysql\lib\protocol\sequences\Query.js:72:10)
    at Protocol._parsePacket (C:\nodeCode\Code\node_modules\mysql\lib\protocol\Protocol.js:280:23)

Hi @PsyTae is it possible to provide the full code that causes this? Also may be useful to provide the version of Node.js and of this module you're using. connection.destroy() is used is almost every test we have without issue, so really not sure why you'd be getting that. A full reproduction case would help out unless you can submit a patch?

Oh, nevermind. As soon as I finished typing that, I see the issue. You have the following:
var connection = mysql.createPool(db_config);

But just because you assigned that result to a variable doesn't make it a connection object; the mysql.createPool function returns a pool object, which has no .destroy method.
I hope that helps!

Then why does the documentation have

If you would like to close the connection and remove it from the pool, use connection.destroy() instead. The pool will create a new connection the next time one is needed.

Hi @PsyTae connection.destory() is perfectly fine, but your code above doesn't have a connection object assigned to the connection variable; instead you accidentally have a pool object assigned to a variable named connection. Just assigning a pool object to a different variable doesn't really make it not a pool object any longer :)

So connection.query("SQL STATEMENT", function(sqlError, sqlResult){});
will create a connection from the pool, execute the SQL STATEMENT, and release the connection.
Basically, I need a large pool (300) for the first 10 minutes the script is active and then start pruning back the needed connections to somewhere around 10.
This is what I am trying to do.
SetTimeout at 10 minutes to change connection.config.connectionLimit to 10, and Then on each connection.query() after that 10 minutes destroy the connection and shrink the pool till open connections are down to the new value.  I thought connection.destroy() would be able to start killing off the open connections in te pool.

Hi @PsyTae in your code above, your connection variable is not a reference to a connection, but instead a reference to a pool object, which is why you're getting that error. You can only call .destroy() on a connection object, not a pool object. If you want to "destroy" the pool object, there is the .end() method you can use.

so there is a big difference between
var pool= mysql.createPool(db_config);

pool.query("SQL STATEMENT", function(sqlError, sqlResult){});

and
var pool= mysql.createPool(db_config);

pool.getConnection(function(err, connection) {
    connection.query("SQL STATEMENT", function(sqlError, sqlResult){});
});

Yea, so the first one will just queue up a query against the pool. It will just take whatever first available connection and run the query on it.
The second does something similar, though you have to go through all the motions yourself: first ask for a connection and wait, then perform a query and wait, then return the connection back to the pool.
But in the second one, you have more control, and especially in relation to this question, you get an actual connection object you can choose to destroy.


Import/Export Errors

Here is the log:
Import: Dependency 'sharedassets0.assets' has been loaded
Import: Asset collection has versions probably incompatible with each other. Here they are:
Import: 5.4.0p4
Import: 5.4.0f2
Export: Can't export 'GameSkin(MonoBehaviour)' because it isn't valid
Export: Can't export 'Font Texture(Texture2D)' because it isn't valid
Export: 'Internal-StencilWrite(Shader)' exported
game is working, but when i extract game resource i have this errors

There are no errors in your message. It is just a regular log. If you really have some problems with extracting please provide a file which you trying to process.


Console on website is small

The console only takes a small part of the page on desktop. When entering the help command you can't see much and need to scroll quite a bit. This scrolling is a bit unnecessary and it is generally more enjoyable to see more information on screen.

On a sidenote, not sure if it is worth the extra issue but the website could be a nice mention in the readme.md


dist-folder via npm install

hi,
i would like to use ng-iban in my application by using npm install. unfortunately i don't receive the dist-folder. with bower all works fine, but i don't want to use bower. could you please help me?
thank you.

It is in the lib folder; the dist is for bower; the lib for npm. I believe this is not a preferred way to work. I am in the process of refining the entire module.

yes, i tried the one in the lib folder, but i get an error saying the "require"-function is not defined...

Can you please describe the steps so I can try to reproduce?

I have the same issue. The file ng-iban/lib/ng-iban.js references to require(), which is not part of angular

The .js file in the lib folder is for use with npm; you can only use this with tools like webpack or browserify.

Ah yes, but not without :wink:

Since i don't want to use browserify or webpack just for ng-iban, isn't it possible to make it work with npm but without those tools?

How are you planning on getting it in a frontend app? Then I recommend using the bower way.

First off, thanks for this useful piece of code. However it could be improved by not having a dependency on webpack or browserify, which I personally don't use. Next to that, I've also ditched bower in favor of npm. The point is that how I choose to include ng-iban should be of no concern to it.
For now I'll stick to using version 0.4.0 of your library because that version does include a build version that doesn't depend on a module loader to offer require().


Uncaught Error: Cannot call function 'getPosition' on missing remote object 5961Error: Cannot ca...

[Enter steps to reproduce:]

...
...

Atom: 1.27.2 x64
Electron: 1.7.15
OS: Mac OS X 10.13.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot call function 'getPosition' on missing remote object 5961
Error: Cannot call function 'getPosition' on missing remote object 5961
at throwRPCError (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:143:17)
at EventEmitter. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:354:7)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
at WebContents. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:194:7)
At /Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:234

Error: Cannot call function 'getPosition' on missing remote object 5961
Error: Cannot call function 'getPosition' on missing remote object 5961
    at throwRPCError (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:143:17)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:354:7)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:204:7)
    at WebContents.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:13)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:194:7)
    at metaToValue (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:234:13)
    at Object.remoteMemberFunction (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:118:18)
    at AtomEnvironment.getWindowDimensions (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:694:40)
    at AtomEnvironment.storeWindowDimensions (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:731:40)
    at WindowEventHandler.handleWindowBlur (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:191:32)

Commands
     -6:48.3.0 core:paste (input.hidden-input)
     -6:48 core:save (input.hidden-input)
     -6:43 emmet:insert-formatted-line-break-only (input.hidden-input)
     -6:43 editor:newline (input.hidden-input)
     -6:42.3.0 core:paste (input.hidden-input)
     -6:41.9.0 core:save (input.hidden-input)
     -5:56.6.0 tree-view:add-folder (span.name.icon.icon-file-directory)
     -5:45.6.0 core:confirm (input.hidden-input)
     -4:58.8.0 tree-view:add-folder (span.name.icon.icon-file-directory)
     -4:55.6.0 core:confirm (input.hidden-input)
     -3:34.3.0 editor:move-to-end-of-screen-line (input.hidden-input)
     -3:33.2.0 emmet:toggle-comment (input.hidden-input)
     -3:33.2.0 editor:toggle-line-comments (input.hidden-input)
     -3:32.8.0 core:save (input.hidden-input)
     -3:18.9.0 core:undo (input.hidden-input)
     -3:18.3.0 core:save (input.hidden-input)

Non-Core Packages
atom-beautify 0.32.5
atom-clock 0.1.16
atom-runner 2.7.1
auto-update-packages 1.0.1
autocomplete-paths 2.12.2
autocomplete-sql 0.5.0
busy-signal 1.4.3
emmet 2.4.3
es6-javascript 1.0.0
file-icons 2.1.21
goto-definition 1.3.4
highlight-selected 0.13.1
intentions 1.1.5
language-haml 0.31.1
language-rspec 0.11.0
linter 2.2.0
linter-eslint 8.4.1
linter-ui-default 1.7.1
merge-conflicts 1.4.5
project-manager 3.3.6
rails-i18n-autocomplete 0.4.0
rails-snippets 2.19.0
rails-transporter 1.7.1
rspec 0.4.0
ruby-block 0.3.6
show-ideographic-space 1.0.2
split-diff 1.5.2
teletype 0.13.3

Thanks for the report!
This looks like a duplicate of #16630 so you can subscribe there for updates if you'd like.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


Bumped logger to 1.0.0

This changes the project initial features in favor for:

nonnullability
less dependencies (removed sensors)
the ability to copy logs into the clipboard by selecting all
removed the ANSI parser because of nonnullability, but this could be returned

@leisim Any chance you want to merge this PR so it continues to work with logger 1.0+ ? BTW, I see you're at ClickUp 👍.  It's quickly become my favorite PM suite.

Hmm this is a strangest thing here. @leisim could you please either close this or give some kind of comment about the future :)  Thanks

Maybe it would be better to simply add these 3-4 classes directly to the logger project and activate the shake log through some config?

@leisim Hallo Simon, möchten Sie Hilfe, logger_flutter zu aktualisieren? Dieses PR LGTM und ich würde Ihnen gerne mit dem lib helfen, wenn das der Fall ist.
Was sagen Sie? Danke!


Update to match js

Matching updates on https://github.com/terminusdb/terminus-client/commit/be0edb5bb96cd1f5bbdfb98e0577359c68e73b47#diff-570783399d4b24c05d37d10093c3b8d5

@kevinchekovfeeney I have updated the test and fix the bugs for the new methods. The Python should be able to make the same call as js now. Could you please check?


Java client for Jobs REST Api

This pull request provides a Java client for the Jobs Rest Api including OAuth support.

Coverage decreased (-5.08%) to 87.78% when pulling fce4868d48503b427687af399ac6f4f9b732c6e2 on amitsharma1981:develop into aaf2512b2a9e646f4d9c32c358c786ff48a44710 on Netflix:develop.

Coverage decreased (-5.06%) to 87.849% when pulling fb1b2fdfe52e94bd018b25177c0b27222fcd9409 on amitsharma1981:develop into 5c4772d122e3ef6433a49ed832019cf2f839c6de on Netflix:develop.


List reduction keywords common between IRDIS and IFS

List them and try to make them compatible between the two instruments to simplify the class implementation.

Will not answer this issue. Different solution foreseen to be more general.


Learn RF not working

I have multiple Broadlink RM devices and the UDP doesn't seem to be working on my network so I have to use the learn-code function.  I'm trying to grab the RF codes off of my Broadcom RM3 Pro Plus.  Below is my config code.
                {
                    "accessory": "Broadlink RM Learner",
                    "name": "Learn RF",
                    "type": "learn-code",
                    "scanFrequency": true,
                    "host": "<IP_ADDRESS>"
                },

It comes back with  showing that it found a frequency but it never prints out the results.
 [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
 [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
 [Broadlink RM] [INFO] Scan RF (stopped - 20s timeout)
 [Broadlink RM] [INFO] Scan RF (stopped)

I've heard that you need to switch on the learn IR but when I have this custom learn-button it doesn't seem to provide the default buttons.  Is there a way to work around this?

Hey @mbriney! I ran into this issue just 15 hours after you reported it. I added the learn-code accessory after hooking up a BroadLink Pro and got the same result.
Thankfully, in #496 I found a recommendation to create a hosts array and set "isRFSupported": true to get around this issue. So, I added the array just above my accessories array, removed the  custom learn-code accessory, and was able to successfully learn an RF code by tapping the Learn accessory in the Home app.
This is what my hosts array looks like:
"hosts":[{
  "address": "xx.xx.xx.xx",
  "mac": "xx:xx:xx:xx:xx:xx",
  "isRFSupported": true
}]

Hope this helps!

While this is not ideal, I was able follow these steps to learn RF codes:

Ensure both the Scan Frequency and Learn buttons are configured to be shown in the Homebridge config file
Tap Scan Frequency in the Home app
Hold the button on my RF remote until "Scan RF (found frequency - 1 of 2)" appears in the Homebridge log
Tap Learn in the Home app
Tap and hold the button on my RF remote until "Scan RF (complete)" is shown followed by "Hex Code: ..." on the next line of the Homebridge log

I see the same issue, and the above workaround stopped working after updating the firmware to v56.

@ascl00 v56 of what?

Sorry, the RM Pro (device code 0x9d27) firmware.

The issue here is definitely when you have multiple RM devices.  In my case, I even have multiple RM+ devices.  It would be really helpful if we could manually define the learn and scan RF codes and in each specify the IP address of the device, like in the example above.  The custom button with the scan frequency works just fine in finding the code but the lack then of the learn button makes it impossible to retrieve the code.

I'm still waiting on a new RM device to re-develop the RF learning fully but in the meantime I'll add some code that allows you to specify the IP of the RF Learn device (and more importantly, have it use it)

@mbriney This definitely works in order to choose a specific IP address for the learn device:
Add "hideLearnButton": true and "hideScanFrequencyButton": true to your config
Add accessories with the following types: learn-ir and learn-code and a host key with the ip-address
I've just pushed out release 3.6.17 which logs the device of the IP address Learn Code is associated with.
I think I've fixed the issue with only step 1 occurring too but I can't test, can you give it a shot please?

@lprhodes ok I've got 3.6.17 installed.  I can get it to target the learning on the right IP device now, it finds code 1 of 2 no problem.  But then when I click the learn it times out.  I suspect there may be an issue with the way I have configured the new button.
Here are my two entries:
                {                     "accessory": "Scan RF",                     "name": "Learn RF",                     "type": "learn-ir",                     "scanFrequency": true,                     "host": "<IP_ADDRESS>"                 },                 {                     "accessory": "Learn Code",                     "name": "Learn Code",                     "type": "learn-code",                     "host": "<IP_ADDRESS>"                 }
And above I have hideScanFrequencyButton and hideLearnButton set to true.

I don't think it should really matter but the type should be swapped for those two accessories.
Once you've done that can you try again and send me the logs please?

Running latest RM Pro+ firmware v56 with this plugin v3.6.18.  Unfortunately no change for me.
IR works fine, but RF still times out as described by so many others.
The 2 RF remotes I tested with all scan (and work) fine in IOS apps "Broadlink", "e-Control" and "ihc For EU" but just cannot get it to work in homebridge as I cannot identify the correct HEX code.
Just FYI:
only app that allowed me to upgrade firmware was "Broadlink". Seems the most recent with ipad and limited Siri support via Shortcuts.
(https://apps.apple.com/app/broadlink/id1450257910)
I have the identical RF scanning issue using Broadlink Manager (https://sourceforge.net/projects/broadlink-manager/) so I do assume it is related to the new firmware.
Running minimal config for this testing:
{
"platform": "BroadlinkRM",
"name": "RM pro+",
"debug": true,
"accessories": [
{
"name": "Learn RF",
"type": "learn-code",
"scanFrequency": true
},
{
"name": "Learn IR",
"type": "learn-ir"
}
]
}
Hope this helps.  If I can assist any further, please let me know. I would love to get this working :-)
[2020-1-8 12:57:32] [RM pro+] Initializing BroadlinkRM platform...
[2020-1-8 12:57:32] [RM pro+] [INFO] Automatically discovering Broadlink RM devices.
[2020-1-8 12:57:32] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:39756 (UDP)
[2020-1-8 12:57:32] [RM pro+] Initializing platform accessory 'Learn RF'...
[2020-1-8 12:57:32] [RM pro+] Initializing platform accessory 'Learn IR'...
[2020-1-8 12:57:32] [RM pro+] [INFO] Discovered Broadlink RM3 Pro Plus (279d) at <IP_ADDRESS> (77:0f:78:b9:32:4c)
[2020-1-8 12:57:33] [RM pro+]
[2020-1-8 12:57:33] [RM pro+] **************************************************************************************************************
[2020-1-8 12:57:33] [RM pro+] ** Welcome to version 3.6.18 of the Homebridge Broadlink RM Plugin!
[2020-1-8 12:57:33] [RM pro+] **
[2020-1-8 12:57:33] [RM pro+] ** Find out what's in the latest release here: https://github.com/lprhodes/homebridge-broadlink-rm/releases
[2020-1-8 12:57:33] [RM pro+] **
[2020-1-8 12:57:33] [RM pro+] ** If you like this plugin then please star it on GitHub or better yet
[2020-1-8 12:57:33] [RM pro+] ** buy me a drink using Paypal https://paypal.me/lprhodes or crypto https://goo.gl/bEn1RW.
[2020-1-8 12:57:33] [RM pro+] **
[2020-1-8 12:57:33] [RM pro+] ** Keep up to date with this plugin along with everything HomeKit and homebridge
[2020-1-8 12:57:33] [RM pro+] ** by signing up to my newsletter at http://workswith.io
[2020-1-8 12:57:33] [RM pro+] **
[2020-1-8 12:57:33] [RM pro+] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[2020-1-8 12:57:33] [RM pro+] **
[2020-1-8 12:57:33] [RM pro+] **************************************************************************************************************
[2020-1-8 12:57:33] [RM pro+]
[2020-1-8 12:57:34] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:41405 (UDP)
[2020-1-8 12:57:36] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:50098 (UDP)
[2020-1-8 12:57:38] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:46056 (UDP)
[2020-1-8 12:57:40] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:59686 (UDP)
[2020-1-8 12:57:42] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:34767 (UDP)
[2020-1-8 12:57:44] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:60900 (UDP)
[2020-1-8 12:57:46] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:46473 (UDP)
[2020-1-8 12:57:48] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:40464 (UDP)
[2020-1-8 12:58:04] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:35088 (UDP)
[2020-1-8 12:58:06] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:45614 (UDP)
[2020-1-8 12:58:08] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:50503 (UDP)
[2020-1-8 12:58:10] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:43781 (UDP)
[2020-1-8 12:58:12] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:35591 (UDP)
[2020-1-8 12:58:14] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:37769 (UDP)
[2020-1-8 12:58:16] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:46643 (UDP)
[2020-1-8 12:58:18] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:52103 (UDP)
[2020-1-8 12:58:19] [RM pro+] [INFO] Learn Code initializing (undefined)
[2020-1-8 12:58:19] [RM pro+] Learn Code (ready)
[2020-1-8 12:58:20] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:38516 (UDP)
[2020-1-8 12:58:22] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:53897 (UDP)
[2020-1-8 12:58:23] [RM pro+] [RESULT] Learn Code (learned hex code: 260006016d350f0c0f0c0f27100c0f270f0c0f0d0f0b10270f270f0c100b100c0f270f27100b100c0f0c0f0c100b100c0f0c0f0c0f0c100c0f0c0f0c0f0c10270f0c0f0c0f0c100c0f0c0f0c0f0c10270f0c0f0c0f0c100c0f270f270f2710270f270f2710270f270f0c0f0c10270f0c0f0c0f0c100b100c0f0c0f0c100b10270f270f0c100b10270f0c0f0c100b100c0f270f27100b10270f270f0c100c0f0c0f0c0f0c100b100c0f0c0f27100b100c0f0c0f0c0f0c100c0f270f0c0f0c10270f0c0f0c100b10270f270f0c100c0f0c0f0c0f0c0f0c100c0f0c0f0c0f2710270f0c0f270f0c100c0f0c0f0c0f0c100c0f270f0c0f0c10270f270f0c0f280f270f0c0f2710270f000d050000)
[2020-1-8 12:58:23] [RM pro+] [INFO] Learn Code (complete)
[2020-1-8 12:58:23] [RM pro+] [INFO] Learn Code (stopped)
[2020-1-8 12:58:24] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:41759 (UDP)
[2020-1-8 12:58:26] [RM pro+] [INFO] Learn Code initializing (undefined)
[2020-1-8 12:58:26] [RM pro+] Learn Code (ready)
[2020-1-8 12:58:26] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:50105 (UDP)
[2020-1-8 12:58:28] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:47146 (UDP)
[2020-1-8 12:58:29] [RM pro+] [RESULT] Learn Code (learned hex code: 260076006e340f0c100c0f270f0c0f27100c0f0c0f0c0f271026100c0f0c0f0c0f271026100c0f0c0f0c0f0c100c0f0c0f0c0f0c100c0f0c0f0c0f0c100c0f270f0c0f0c0f0c100c0f0c0f0c0f0c10270f0c0f0c0f0c100b10270f0c0f0c0f0c100c0f0c0f0c0f27100c0f270f270f270f27102610270f000d050000)
[2020-1-8 12:58:29] [RM pro+] [INFO] Learn Code (complete)
[2020-1-8 12:58:29] [RM pro+] [INFO] Learn Code (stopped)
[2020-1-8 12:58:30] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:33218 (UDP)
[2020-1-8 12:58:32] [RM pro+] [INFO] Scan RF (scanning)
[2020-1-8 12:58:32] [RM pro+] [ACTION] Hold down the button that sends the RF frequency.
[2020-1-8 12:58:32] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:46932 (UDP)
[2020-1-8 12:58:34] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:32986 (UDP)
[2020-1-8 12:58:35] [RM pro+] [INFO] Scan RF (found frequency - 1 of 2)
[2020-1-8 12:58:35] [RM pro+] [ACTION] Keep holding that button!
[2020-1-8 12:58:36] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:36165 (UDP)
[2020-1-8 12:58:38] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:60117 (UDP)
[2020-1-8 12:58:40] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:34754 (UDP)
[2020-1-8 12:58:42] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:38291 (UDP)
[2020-1-8 12:58:44] [RM pro+] [INFO] Listening for Broadlink devices on <IP_ADDRESS>:48685 (UDP)
[2020-1-8 12:58:53] [RM pro+] [INFO] Scan RF (stopped - 20s timeout)
[2020-1-8 12:58:53] [RM pro+] [INFO] Scan RF (stopped)
[2020-1-8 12:59:00] [RM pro+] [INFO] Scan RF (scanning)
[2020-1-8 12:59:00] [RM pro+] [ACTION] Hold down the button that sends the RF frequency.
[2020-1-8 12:59:02] [RM pro+] [INFO] Scan RF (found frequency - 1 of 2)
[2020-1-8 12:59:02] [RM pro+] [ACTION] Keep holding that button!
[2020-1-8 12:59:21] [RM pro+] [INFO] Scan RF (stopped - 20s timeout)
[2020-1-8 12:59:21] [RM pro+] [INFO] Scan RF (stopped)

Seeing something similar with the RF and the 3.6.17 version.  It scans and it says it finds it but then doesn't log the code.
[2020-1-8 21:48:52] [Broadlink RM] [INFO] Scan RF (scanning)
[2020-1-8 21:48:52] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[2020-1-8 21:49:01] [Google Smart Home] Sending Sync Request
[2020-1-8 21:49:02] [Google Smart Home] Received SYNC intent
[2020-1-8 21:49:13] [Broadlink RM] [INFO] Scan RF (stopped - 20s timeout)
[2020-1-8 21:49:13] [Broadlink RM] [INFO] Scan RF (stopped)
[2020-1-8 21:49:16] [Broadlink RM] [INFO] Learn Code initializing (<IP_ADDRESS>)
[2020-1-8 21:49:16] [Broadlink RM] Learn Code (ready)
[2020-1-8 21:49:17] [Broadlink RM] [INFO] Scan RF (scanning)
[2020-1-8 21:49:17] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[2020-1-8 21:49:26] [Broadlink RM] [INFO] Learn Code (stopped - 10s timeout)
[2020-1-8 21:49:26] [Broadlink RM] [INFO] Learn Code (stopped)
[2020-1-8 21:49:38] [Broadlink RM] [INFO] Scan RF (stopped - 20s timeout)
[2020-1-8 21:49:38] [Broadlink RM] [INFO] Scan RF (stopped)

@lprhodes this would be a whole lot easier if you had one of these devices. Do you have one on order? If not, maybe I can get one to you?

Thanks @ascl00 I do have one coming on Wednesday :)

I'm also having this issue, I just updated from the old 2018 version, RF Code learning worked perfectly, now on 3.6.22 and it doesn't work, I have only one hub, and its firmware version is 20025 which is old, the Broadlink IOS app works and can learn codes.

v3.6.22 doesn't work
v3.6.21 doesn't work
v3.6.16 works!
I suggest anyone who is have this issue, wind back one version at a time and test, the the developer can see what he may have changed to cause the issue.
Hope this helps ;)

v3.6.22 in combination of Broadlink RM Pro+ and RM3 Mini doesn't work on Hoobs. The first one on firmware v44. Word around mentioned in this thread is crushing HomeBridge.
[Homebridge] [2/14/2020, 18:27:45] [Broadlink RM] Schowek LearnCode IR getSwitchState: undefined[Homebridge] [2/14/2020, 18:27:45] [Broadlink RM] Apple TV On getSwitchState: false[Homebridge] [2/14/2020, 18:27:50] [Broadlink RM] Schowek LearnCode RF getSwitchState: undefined[Homebridge] [2/14/2020, 18:27:51] [Broadlink RM]  [35m[INFO] [0m Scan RF (scanning)[Homebridge] [2/14/2020, 18:27:51] [Broadlink RM]  [35m[ACTION] [0m Hold down the button that sends the RF frequency.[Homebridge] [2/14/2020, 18:27:54] [Broadlink RM]  [35m[INFO] [0m Scan RF (found frequency - 1 of 2)[Homebridge] [2/14/2020, 18:28:11] [Camera ffmpeg] Snapshot from Kamera Dahua at 480x270[Homebridge] [2/14/2020, 18:28:12] [Broadlink RM]  [35m[INFO] [0m Scan RF (stopped - 20s timeout)[Homebridge] [2/14/2020, 18:28:12] [Broadlink RM]  [35m[INFO] [0m Scan RF (stopped)[Homebridge] [2/14/2020, 18:28:15] [Camera ffmpeg] Snapshot from Kamera Dahua at 480x270[Homebridge] [2/14/2020, 18:28:22] [Broadlink RM] Schowek LearnCode RF getSwitchState: undefined[Homebridge] [2/14/2020, 18:28:22] [Broadlink RM]  [35m[INFO] [0m Scan RF (scanning)[Homebridge] [2/14/2020, 18:28:22] [Broadlink RM]  [35m[ACTION] [0m Hold down the button that sends the RF frequency.[Homebridge] [2/14/2020, 18:28:24] [Broadlink RM]  [35m[INFO] [0m Scan RF (found frequency - 1 of 2)[Homebridge] [2/14/2020, 18:28:26] [Broadlink RM] Schowek LearnCode IR getSwitchState: undefined[Homebridge] [2/14/2020, 18:28:26] [Broadlink RM]  [35m[INFO] [0m Scan RF (scanning)[Homebridge] [2/14/2020, 18:28:26] [Broadlink RM]  [35m[ACTION] [0m Hold down the button that sends the RF frequency.[Homebridge] [2/14/2020, 18:28:30] [Air Quality] AirNow Polling...[Homebridge] [2/14/2020, 18:28:31] [Air Quality] AirNow air quality AQI is: 90[Homebridge] [2/14/2020, 18:28:43] [Broadlink RM]  [35m[INFO] [0m Scan RF (stopped - 20s timeout)[Homebridge] [2/14/2020, 18:28:43] TypeError: closeClient is not a function at Timeout._onTimeout (/home/hoobs/.hoobs/node_modules/homebridge-broadlink-rm-tv/helpers/learnRFData.js:135:7) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7) [Homebridge] [2/14/2020, 18:28:43] Got SIGTERM, shutting down service...

v3.6.22 doesn't work
v3.6.21 doesn't work
v3.6.16 works!
I suggest anyone who is have this issue, wind back one version at a time and test, the the developer can see what he may have changed to cause the issue.
Hope this helps ;)

@Kung-Foo-Kamel You are totally correct, no matter how I tried, nothing works for versions post 3.6.16. I reinstall my plugin to 3.6.16 and it worked immediately.

Yes, I'm still using that version, if it aint broke, don't fix it :)

Yes, I'm still using that version, if it aint broke, don't fix it :)

If I install the v3.6.16 plugin from terminal, it will not recognize it from config file. Can you let me know how I can make this work?
Also, with v3.6.22 I was able in the end to get the hex code for RF but it doesn't do anything. I can see the broadlink flashing but that is it. Nothing else happens.
Here is also my config:
{
"platform": "BroadlinkRM",
"name": "Broadlink RM",
"hideScanFrequencyButton": false,
"hideLearnButton": false,
"hideWelcomeMessage": false,
"accessories": [
{
"name": "AC On/Off",
"type": "switch",
"data": {
"on": "260068…",
"off": "260068…"
}
},
{
"name": "Light On/Off",
"type": "switch",
"data": {
"on": "aa009a0000012….",
"off": "aa009a0000012…."
}
}
]
}
The first one is an IR and the second is the RF one. Maybe this is my problem....

Same here I get a code form the learning button but when entering that code nothing is working.

I dont think he maintains this branch much anymore, there is some newer forks of this plugin that I use now.
Maybe give this one a go: https://github.com/newt10/homebridge-broadlink-rm-enhanced

Yeah that one does not work either. I just need to find out how to Learn my RF codes and then I can input them in the config file the learn command learns the wrong code that does not work. The new broadlink iPhone app learns the code on first try works every time I try it. I wish there was a way I could look inside the broadlink app and see the codes.

On Aug 8, 2022, at 4:27 PM, NexGen-3D @.***> wrote:
I dont think he maintains this branch much anymore, there is some newer forks of this plugin that I use now.
Maybe give this one a go: https://github.com/newt10/homebridge-broadlink-rm-enhanced https://github.com/newt10/homebridge-broadlink-rm-enhanced
—
Reply to this email directly, view it on GitHub https://github.com/lprhodes/homebridge-broadlink-rm/issues/514#issuecomment-1208630337, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2NXRAJDDVITAJFIS7D3JPTVYF3VZANCNFSM4JX5ZWAA.
You are receiving this because you commented.

Have you tried rolling back a few versions, this is what I did originally, I captured the codes I needed, saved them then installed the newer version.
Like others, most have moved away from these 433 products to Zigbee gear, Ive been slowly pulling mine out as cost wise, Zigbee is just as cheap now.


vendor.bundle.js syntax error on IE10 Windows 7

Versions
Angular CLI: 1.5.4
Node: 8.6.0
OS: win32 x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.4
@angular-devkit/build-optimizer: 0.0.35
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.41
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.4
@schematics/angular: 0.1.10
@schematics/schematics: 0.0.10
typescript: 2.4.2
webpack: 3.8.1

Internet Explorer version 10.0.9200.17609
Repro steps

Step 1: install angular cli 1.5.4
Step 2: create new app with ng new sample
Step 3: install and uncomment everything in the polyfill.ts file except web-animation.js
Step 4: ng serve
Step 5: open app on IE 10 with console

Observed behavior
The IE console displays this message:
SCRIPT1002: Syntax Error
vendor.bundle.js, Line 446 Character 1

The source line starts with:
eval("/* WEBPACK VAR INJECTION */(function(__resourceQuery) {\n\n/* global __resourceQuery ...

Desired behavior
What should I do to make it work?
Mention any other details that might be useful (optional)
I try to serve the application in production mode with ng serve --prod. The IE console displays a similar message:
SCRIPT1002: Syntax Error
main.6452b0e0d49fae94852f.bundle.js, Line 1 Character 9106

The source fragment starts with:
const r=n("VtmP"), ...

the keyword const are not supported by IE 10!

+1,but build work well

@clydin says in issue #8596 the live reload feature of the webpack-dev-server require ES2015 but IE10 doesn't support it.
Using --no-live-reload solves the error.
But i don't understand why an error occurs in prod mode?

ng serve uses live reload by default in all cases as it's the defining characteristic of the command (i.e., a development server without live reload is of fairly minimal utility).
The reason the error originates from the main bundle instead of vendor in production is because the vendor bundle is combined and optimized with the main bundle.  This allows for more comprehensive size reductions in the final output.

Closing as things appear to be working as intended.  Please re-open if you feel this is in error.

The prod build error was due to the URL class usage. So actually there is no more error :)

Error persists:

eval("/* unused harmony export VERSION /\n/ unused harmony export JitC...

Angular CLI: 1.6.3
Node: 9.2.0
OS: win32 x64
Angular: 5.1.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.6.3
typescript: 2.5.3
webpack-dev-server: 2.9.2
After applying solutions listed here, we have additional error "SecurityError"