selectedIdentities property of layer-identities-list doesn't work properly in react application

Maybe I do something wrong but as per https://docs.layer.com/api_reference/webui-1.0/#!/api/layerUI.components.IdentitiesListPanel.List selectedIdentities - This property can be used both get and set the selected identities. So I use react adapter and try to set selectedIdentities using my array in IdentitiesList component in my render() method. Only one way I see how to populate my array - it's onIdentitySelected/onIdentityDeselected. So the main issue that checkbox doesn't work properly. I need to cleick twice for checking and twice for unchecking. The same issue with this component is in react example in layer-js-sampleapps.
I tried to use preventDefault() in onIdentitySelected/onIdentityDeselected. It doesn't help either. As I underastand the issue with checking function and react way of updating UI/dom. Like when I get onIdentitySelected callback I do setState with new selected participants. So same time react understands that UI should be updated and calls render function with new selected participants. After that identity item wants to set selected property using properties.selected but this value already updated cause of render.
layer-identity-item.js:
onClick: function onClick(evt) {
evt.stopPropagation();
var checked = this.selected;
var identity = this.item;
  // Trigger the event and see if evt.preventDefault() was called
  var customEventResult = this.trigger('layer-identity-item-' + (checked ? 'selected' : 'deselected'), { item: identity });

!!!render function was already called and this.properties.selected was changed to opposite value((
!!!if I use preventDefault in my function. evt.preventDefault() resets checkbox value. So we have same issue.
  if (customEventResult) {
    this.selected = !this.properties.selected;
  } else {
    evt.preventDefault();
  }
  this.onSelection(evt);
},

So right now I just don't use selectedProperties property and just build my array of selected using onIdentitySelected/onIdentityDeselected but I want to use this widget for editing conversation(for adding and removing identities) si I need to set selectedProperties  somehow in my react app. I want to use ref cause it's hack actually in this case.

There look to be some formatting issues in your message above around "!!!render".   We have seen some issues with requiring double selection but had thought those to have been resolved.  Please post information about:

What version of Layer UI you are using
What browser and browser version you are using

Thanks

Also for just experimenting with the API to see what works, you should try from the console some commands such as:
var identityList = document.querySelector('layer-identities-list');
identityList.selectedIdentities = [myLayerClient.user];

// Or...
identityList.selectedIdentities = myLayerClient.getConversation(conversationId).participants

This will let you sanity check that setting the selectedIdentities property works as expected.    If that works, but your assignment does not, I see two possibilities:

The timing with which you make that assignment is during some other event that is manipulating the selection state
The values you are passing into the array are not of the same Class Type as in the samples above

Check it out and let us know what you observe.

So I use latest npm - "layer-ui-web": "^1.0.6". Tested in new versions of firefox and chrome.
selectedIdentities property with your commands works as expected. Array contains elements from onIdentitySelected/onIdentityDeselected so it's same class type - Identity.
It's timing. But as I understand timing it's not an issue here. It's how react works actually) During setState react calls render() and changes all you internal state but trigger function is still active. So if it's possible not to do evt.preventDefault() in onClick() if I pass some special options it should work.


Webtoons function mentions reaction roles

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Duplicate of #54


GEOMESA-1059 Allow functions to be defined using scripting languages

Added a TransformerFunctionFactory that loads scripts out of a well known directory
and makes functions in them available as transformations

Signed-off-by: Anthony Fox<EMAIL_ADDRESS>

this is really cool

we'll need to put documentation in the convert readme and examples in geomesa-tools I think. Follow on ticket is OK as long as we do it before 1.2.0 release/rc

looks pretty good. gonna build it and try locally before a merge

doesn't work on command line yet...gonna try to fix that

97906de96771d0474b118db5e12190461b589b9b


Handle multiple coins (at least 3 because of tricrypto)

Factory pools are 2 coins but the code is mostly generic enough to handle more, e.g. tricrypto.  A few places in the copied vyper factory contract highlights where the n-coin logic was changed to 2 coins.  Those should likely be the only changes needed.  For testing, we should use two vyper contracts based on n = 2 or 3: 1) existing fixture based on factory cryptopool 2) tricrypto2 fixture
Todo:

[ ] create tricrypto2 fixture
[ ] create test suite for n=3 checking against tricrypto fixture
[ ] update CryptoPool to handle n=3

tricrypto contract: https://github.com/curvefi/curve-crypto-contract/blob/master/contracts/tricrypto/CurveCryptoSwap.vy

For now, we just need to test that swaps work properly to enable sims.  The more complex logic in adding and removing liquidity can be checked later, as part of an eventual release for full pythonic interaction.


fix(ci): tests are failing after recent package bumps

@petermetz @izuru0 @jagpreetsinghsasan
Describe the bug
After recent dependency bumps many tests are failing in CI - see https://github.com/hyperledger/cacti/pull/2805. I confirmed some of these errors on main branch (run locally).
TLDR I'd propose to rollback the following commits and investigate how to bump these packages without breaking the CI:

https://github.com/hyperledger/cacti/commit/71734b053379ff089ad5a2f03598aab14afdfecc
https://github.com/hyperledger/cacti/commit/61fc7001b1dd0849ab1d9bcab08e2475c695adae

As for now I've identified the following issues:
iroha-helpers
Cannot find module 'grpc' from 'packages/cactus-plugin-ledger-connector-iroha/node_modules/iroha-helpers/lib/proto/endpoint_grpc_pb.js'

    Require stack:
      packages/cactus-plugin-ledger-connector-iroha/node_modules/iroha-helpers/lib/proto/endpoint_grpc_pb.js
      packages/cactus-plugin-ledger-connector-iroha/dist/lib/main/typescript/iroha-transaction-wrapper.js
      packages/cactus-plugin-ledger-connector-iroha/dist/lib/main/typescript/plugin-ledger-connector-iroha.js
      packages/cactus-plugin-ledger-connector-iroha/dist/lib/main/typescript/public-api.js
      packages/cactus-plugin-ledger-connector-iroha/dist/lib/main/typescript/index.js
      packages/cactus-verifier-client/dist/lib/main/typescript/get-validator-api-client.js
      packages/cactus-verifier-client/dist/lib/main/typescript/public-api.js
      packages/cactus-verifier-client/dist/lib/main/typescript/index.js
      packages/cactus-test-plugin-ledger-connector-ethereum/src/test/typescript/integration/api-client/verifier-integration-with-ethereum-connector.test.ts

      21 | } from "iroha-helpers/lib/proto/primitive_pb";
      22 |
    > 23 | import { CommandService_v1Client as CommandService } from "iroha-helpers/lib/proto/endpoint_grpc_pb";
         | ^
      24 | import { QueryService_v1Client as QueryService } from "iroha-helpers/lib/proto/endpoint_grpc_pb";
      25 |
      26 | import commands from "iroha-helpers/lib/commands/index";

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha/node_modules/iroha-helpers/lib/proto/endpoint_grpc_pb.js:9:12)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha/src/main/typescript/iroha-transaction-wrapper.ts:23:1)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha/src/main/typescript/plugin-ledger-connector-iroha.ts:7:1)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha/src/main/typescript/public-api.ts:1:1)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha/src/main/typescript/index.ts:1:1)
      at Object.<anonymous> (packages/cactus-verifier-client/src/main/typescript/get-validator-api-client.ts:33:1)
      at Object.<anonymous> (packages/cactus-verifier-client/src/main/typescript/public-api.ts:2:1)
      at Object.<anonymous> (packages/cactus-verifier-client/src/main/typescript/index.ts:1:1)
      at Object.<anonymous> (packages/cactus-test-plugin-ledger-connector-ethereum/src/test/typescript/integration/api-client/verifier-integration-with-ethereum-connector.test.ts:42:1)

This is caused by invalid dependency in iroha-helpers package - after we upgraded to grpc-js it can't find grpc. I've opened an issue in their repository and proposed to add grpc dependency.

Issue: https://github.com/hyperledger/iroha-javascript/issues/173
PR: https://github.com/hyperledger/iroha-javascript/pull/174

Axios
    Cannot find module 'axios/lib/defaults' from 'packages/cactus-test-tooling/node_modules/axios-cookiejar-support/lib/index.js'

    Require stack:
      packages/cactus-test-tooling/node_modules/axios-cookiejar-support/lib/index.js
      packages/cactus-test-tooling/node_modules/nano/lib/nano.js
      packages/cactus-test-tooling/node_modules/fabric-network/lib/impl/wallet/couchdbwalletstore.js
      packages/cactus-test-tooling/node_modules/fabric-network/lib/impl/wallet/wallets.js
      packages/cactus-test-tooling/node_modules/fabric-network/index.js
      packages/cactus-test-tooling/dist/lib/main/typescript/fabric/fabric-test-ledger-v1.js
      packages/cactus-test-tooling/dist/lib/main/typescript/public-api.js
      packages/cactus-test-tooling/dist/lib/main/typescript/index.js
      packages/cactus-plugin-ledger-connector-iroha2/src/test/typescript/test-helpers/iroha2-env-setup.ts
      packages/cactus-plugin-ledger-connector-iroha2/src/test/typescript/integration/iroha2-setup-and-basic-operations.test.ts

      10 | } from "dockerode";
      11 |
    > 12 | import { Wallets, Gateway, Wallet, X509Identity } from "fabric-network";
         | ^
      13 | import FabricCAServices from "fabric-ca-client";
      14 |
      15 | import Joi from "joi";

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cactus-test-tooling/node_modules/axios-cookiejar-support/lib/index.js:8:40)
      at Object.<anonymous> (packages/cactus-test-tooling/node_modules/nano/lib/nano.js:17:31)
      at Object.<anonymous> (packages/cactus-test-tooling/node_modules/fabric-network/src/impl/wallet/couchdbwalletstore.ts:7:1)
      at Object.<anonymous> (packages/cactus-test-tooling/node_modules/fabric-network/src/impl/wallet/wallets.ts:7:1)
      at Object.<anonymous> (packages/cactus-test-tooling/node_modules/fabric-network/index.js:283:26)
      at Object.<anonymous> (packages/cactus-test-tooling/src/main/typescript/fabric/fabric-test-ledger-v1.ts:12:1)
      at Object.<anonymous> (packages/cactus-test-tooling/src/main/typescript/public-api.ts:51:1)
      at Object.<anonymous> (packages/cactus-test-tooling/src/main/typescript/index.ts:1:1)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha2/src/test/typescript/test-helpers/iroha2-env-setup.ts:14:1)
      at Object.<anonymous> (packages/cactus-plugin-ledger-connector-iroha2/src/test/typescript/integration/iroha2-setup-and-basic-operations.test.ts:32:1)

I think this one is caused by axios-cookiejar-support that lists axios as peer depdendency "axios": ">=0.16.2", (so matches 1.* we use) but it should list only 0.* releases. I'll open an issue in their repo once I confirm this.
Axios 2
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/defaults' is not defined by "exports" in /home/runner/work/cacti/cacti/packages/cactus-test-tooling/node_modules/axios/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:453:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:731:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/home/runner/work/cacti/cacti/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/runner/work/cacti/cacti/packages/cactus-test-tooling/node_modules/axios-cookiejar-support/lib/index.js:8:40)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Object.require.extensions.<computed> [as .js] (/home/runner/work/cacti/cacti/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

ipfs-http-client
    Cannot find module 'ipfs-http-client' from 'extensions/cactus-plugin-object-store-ipfs/src/main/typescript/plugin-object-store-ipfs.ts'

    Require stack:
      extensions/cactus-plugin-object-store-ipfs/src/main/typescript/plugin-object-store-ipfs.ts
      extensions/cactus-plugin-object-store-ipfs/src/main/typescript/public-api.ts
      extensions/cactus-plugin-object-store-ipfs/src/test/typescript/unit/api-surface.test.ts

      1 | import path from "path";
      2 | import type { Express } from "express";
    > 3 | import { create, IPFSHTTPClient } from "ipfs-http-client";
        | ^
      4 | import type { Options } from "ipfs-http-client";
      5 | import { RuntimeError } from "run-time-error";
      6 | import { Logger, Checks, LoggerProvider } from "@hyperledger/cactus-common";

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (extensions/cactus-plugin-object-store-ipfs/src/main/typescript/plugin-object-store-ipfs.ts:3:1)
      at Object.<anonymous> (extensions/cactus-plugin-object-store-ipfs/src/main/typescript/public-api.ts:4:1)
      at Object.<anonymous> (extensions/cactus-plugin-object-store-ipfs/src/test/typescript/unit/api-surface.test.ts:1:1)

@outSH Yeah, sorry, this is on me, going fast and breaking things (as much as I don't like to do that). Deadlines are a bit tight right now and that's been a forcing function.
Below is my step by step update on each of the issues you mentioned:
For the iroha-helpers issue: old grpc is so bad that if Iroha v1 keeps depending on it in my opinion we should just deprecate the Iroha 1 connector. With that said, I'd guess there's a good chance if we update your PR to use the new pure JS grpc package instead of the legacy grpc, it will just work and then Iroha v1 is no longer an issue.
For the axios problems: I'll submit another PR with fine-tuning my earlier changes (I figured out a way to not have the vulnerable versions and yet keep the tests functional)
ipfs-http-client: This one is the hardest. This package is also entirely deprecated and won't receive security updates (which  means we shouldn't be using it at all for production code) but I haven't yet been able to find a quick and dirty solution to fix this. The only solution right now seems to be to do a full migration over to this new helia package that they point to in their readme (but that seems like a much bigger chunk of work and I'm really tight on time right now). I'm looking into options here, any help is most welcome.

@petermetz

ipfs-http-client: This one is the hardest. This package is also entirely deprecated and won't receive security updates

I think the replacement for it is https://github.com/ipfs/js-kubo-rpc-client (for HTTP API), but it claims to be Work In Progress. They didn't commit any significant change this year so maybe they are done, but I'm not sure.
Either way I didn't find any other alternative, so it seems we are between a rock and a hard place on ths one :S

@petermetz BTW If you're OK with using https://github.com/ipfs/js-kubo-rpc-client I can migrate to it

@petermetz BTW If you're OK with using https://github.com/ipfs/js-kubo-rpc-client I can migrate to it

@outSH I'm 100% OK with that, whatever that actually works and isn't vulnerable is still better than something that is known to never again receive security updates. So the kubo RPC client is a step forward IMO even if it's right now unstable.

@petermetz Hi, I've prepared a draft with some comments for fixing IPFS issues, have a look - #2829


Set proper ownership command performance improvement

By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.
On a ceph cluster with a significant amount of directories and files in /var/lib/ceph, the file module has to run checks on ownership of all those directories and files to determine whether a change is needed.
In this case, we just want to explicitly set the ownership of all these directories and files to the ceph_uid

@kjw3 please, add a sign off to your commit message

By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

interesting, did you make some tests? how did you measure this?  I would be interested.

@kjw3 please, add a sign off to your commit message

By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

interesting, did you make some tests? how did you measure this? I would be interested.

This rolling upgrade was part of a Red Hat OpenStack Platform FFWD upgrade from version 10 -> 13. During that process, Ceph is upgraded from 2 (Jewel) -> 3 (Luminous). By making this change the time for these set proper ownership on ceph directories tasks went from 10+ minutes each down to seconds.

@kjw3 please, add a sign off to your commit message

By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

interesting, did you make some tests? how did you measure this? I would be interested.

I decided to run a quick test playbook against the same environment using the two different approaches.
The playbook is:
(undercloud) [stack@director ~]$ cat chown.yml
---
- hosts: Controller,Compute
  gather_facts: no
  become: yes
  tasks:
  - name: set proper ownership on ceph directories (raw chown non verbose)
    command: "chown -R 167 /var/lib/ceph /etc/ceph"
    changed_when: false

#  - name: set proper ownership on ceph directories (raw chown verbose)
#    command: "chown --verbose -R 167 /var/lib/ceph /etc/ceph"
#    changed_when: false

  - name: set proper ownership on ceph directories (file module)
    file:
      path: "{{ item }}"
      owner: 167
      recurse: yes
    with_items:
      - /var/lib/ceph
      - /etc/ceph

The results are:
(undercloud) [stack@director ~]$ ansible-playbook -i /usr/bin/tripleo-ansible-inventory chown.yml

PLAY [Controller,Compute] *********************************************************************************************************************************************************************************************************************

TASK [set proper ownership on ceph directories (raw chown non verbose)] ***********************************************************************************************************************************************************************
Monday 19 August 2019  11:27:36 -0400 (0:00:00.381)       0:00:00.381 *********
 [WARNING]: Consider using the file module with owner rather than running chown.  If you need to use command because file is insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid
of this message.

ok: [overcloud-compute-1]
ok: [overcloud-compute-2]
ok: [overcloud-compute-0]
ok: [overcloud-controller-0]

TASK [set proper ownership on ceph directories (file module)] *********************************************************************************************************************************************************************************
Monday 19 August 2019  11:27:49 -0400 (0:00:12.564)       0:00:12.946 *********
changed: [overcloud-compute-1] => (item=/var/lib/ceph)
ok: [overcloud-compute-1] => (item=/etc/ceph)
ok: [overcloud-compute-2] => (item=/var/lib/ceph)
ok: [overcloud-compute-2] => (item=/etc/ceph)
ok: [overcloud-compute-0] => (item=/var/lib/ceph)
ok: [overcloud-compute-0] => (item=/etc/ceph)
ok: [overcloud-controller-0] => (item=/var/lib/ceph)
ok: [overcloud-controller-0] => (item=/etc/ceph)

PLAY RECAP ************************************************************************************************************************************************************************************************************************************
overcloud-compute-0        : ok=2    changed=0    unreachable=0    failed=0
overcloud-compute-1        : ok=2    changed=1    unreachable=0    failed=0
overcloud-compute-2        : ok=2    changed=0    unreachable=0    failed=0
overcloud-controller-0     : ok=2    changed=0    unreachable=0    failed=0

Monday 19 August 2019  12:16:24 -0400 (0:48:35.394)       0:48:48.341 *********
===============================================================================
set proper ownership on ceph directories (file module) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2915.40s
set proper ownership on ceph directories (raw chown non verbose) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 12.56s
Playbook run took 0 days, 0 hours, 48 minutes, 48 seconds

@kjw3 could you squash your commits, please?

@kjw3 could you squash your commits, please?

Done

@kjw3 could you fix your commit message:
By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

On a ceph cluster with a significant amount of directories and files in /var/lib/ceph, the file module has to run checks on ownership of all those directories and files to determine whether a change is needed.

In this case, we just want to explicitly set the ownership of all these directories and files to the ceph_uid

Add context to change from file module to raw chown command

Signed-off-by: Kevin Jones<EMAIL_ADDRESS>
Add context note to all set proper ownership tasks

Signed-off-by: Kevin Jones<EMAIL_ADDRESS>
I think something was wrong when you squashed your commits.

@kjw3 could you fix your commit message:
By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here.

On a ceph cluster with a significant amount of directories and files in /var/lib/ceph, the file module has to run checks on ownership of all those directories and files to determine whether a change is needed.

In this case, we just want to explicitly set the ownership of all these directories and files to the ceph_uid

Add context to change from file module to raw chown command

Signed-off-by: Kevin Jones<EMAIL_ADDRESS>
Add context note to all set proper ownership tasks

Signed-off-by: Kevin Jones<EMAIL_ADDRESS>
I think something was wrong when you squashed your commits.

Corrected

unrelated failure

chown will unconditionally re-apply the ownership causing lot of write OPs , maybe a further optimization could be to run something like the following:
find /var/lib/ceph /etc/ceph -not -\( -user ceph -or -group ceph -\) -execdir chown ceph:ceph {} +


Removing revocation comments for now.

Coverage remained the same at 61.136% when pulling 2ba6e1e3d5e3e21974425415fcd55923990af026 on kevgliss:revocation-fixes into bb08b1e637698d1bdb8c55bfdd0c8a4b9e6d8a37 on Netflix:master.


Fix Default Parameter Problem

Fix #4

Is it possible to also release a new version so that I can use that on my GitHub Actions?

Hi @pourmand1376, it's rolled out in v1.0.3.

Thanks. The problem is now fixed.


After netbird up, server can not be accessed by public IP.

Describe the problem
I'm netbird newbie.
I installed self-hosted version. this is my infra setup.

Some devices are in private area, home and office usually: netbird works nicely.
Some servers are on vultr hosting.

it has public IP and domain.
netbird works nicely too, but It makes accessing public IP and domain unusable.

Before netbird up(or after netbird down).

I can access A.A.A.A(public IP) and http://demo.mysite.com to serverA on vultr hosting.
I can not access server-a.netbird.selfhosted.
server-a peer is disconnected.

After netbird up.

I cannot access A.A.A.A(public IP) and http://demo.mysite.com to serverA on vultr hosting.
I can access server-a.netbird.selfhosted.
server-a peer is online.

How can I enable public IP accessing?
To Reproduce
Steps to reproduce the behavior:

Install self-hosted netbird.
create new small instance named "server A" on vultr.
Install latest netbird client on server A.

curl -fsSL https://pkgs.netbird.io/install.sh | sh

netbird up

netbird up --management-url https://vpn.mysite.com:33073 --setup-key XXXXX

Check peer is alive on dashboard.
Access server-a.netbird.selfhosted and check it's okay.
Access public IP and domain of server A.

Expected behavior
Can access public IP and domain of server A.
Are you using NetBird Cloud?
No.
I use self-host netbird.
NetBird version
0.29.4

NetBird status -dA output:
Peers detail:
 jjjj-mbp16.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>/32
  Public key: WvzlfOaOdvoEL58I2G65RF6YDrPZy9GGskCxaAR29jc=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 1 minute, 5 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 kkkk-1.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>/32
  Public key: APLRm4PzviXz/my6zL7W83EbakpntQMeH3Hr1/sDtwg=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 1 minute, 5 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 hhhh.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>/32
  Public key: 0QMKayEh1Zotxd0fjkG9PY4TuTzDHR2+tOdrfmFEQnQ=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 1 minute, 5 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 iiii.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>/32
  Public key: /vIMf0EL8Iuus3UR4d4S18315aKhc9ipxXIzBfq2smk=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 1 minute, 5 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 ralabdev.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: RqmwwDMD7jo647NfyREx+3DmbDYvGgxUQLKANVbm/jw=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 dev1.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: EiVVdbQBc4sljZsWf5XZUtX8ncWgnPI6DeYA+Z+kBTc=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 vpn.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: c/QRxOPEpimFN3H8VJaAA1r6hOpP7k7IRMQwUnpUonk=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:50340
  Relay server address: rel://vpn.mycoolsite.com:33080
  Last connection update: 1 minute, 5 seconds ago
  Last WireGuard handshake: 1 minute ago
  Transfer status (received/sent) 2.4 KiB/2.4 KiB
  Quantum resistance: false
  Routes: <IP_ADDRESS>/0
  Latency: 3.32751ms

 timlee-gram16z.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: 4uwK3BhnBXYTbo3DmBdkM2pPUHiwlfRxm2u6c8sBDyo=
  Status: Connected
  -- detail --
  Connection type: Relayed
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: rel://vpn.mycoolsite.com:33080
  Last connection update: 25 seconds ago
  Last WireGuard handshake: 1 minute ago
  Transfer status (received/sent) 272 B/484 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 gpu-aaaa.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: wI2lezpk2x71GV74SAOBtjrvali17kPRfgMI1qNfTGY=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
  Relay server address: rel://vpn.mycoolsite.com:33080
  Last connection update: 1 minute, 4 seconds ago
  Last WireGuard handshake: 1 minute ago
  Transfer status (received/sent) 336 B/484 B
  Quantum resistance: false
  Routes: -
  Latency: 3.472606ms

 iphone-tim.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: PjRylF2HjANwkl5HuHq2/eUDVB5MahoYmCh0a9tK5Rs=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 pms.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: QrlGRYd5tieJzHE0eZSB9pqrWuD6Z6nlTkTXDm/6vQo=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

 tim-macbook-pro-m2-14inch.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: 7knQk+6HfozpqJuUVWG+6F2HvYoOPGt9ESfYzAHX/0I=
  Status: Connected
  -- detail --
  Connection type: Relayed
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: rel://vpn.mycoolsite.com:33080
  Last connection update: 25 seconds ago
  Last WireGuard handshake: 1 minute ago
  Transfer status (received/sent) 14.4 KiB/10.0 KiB
  Quantum resistance: false
  Routes: -
  Latency: 0s

 gpu-llll.anon-zDCem.domain:
  NetBird IP: <IP_ADDRESS>
  Public key: WiRm++U86sBSdtNtwnwqwm/SAlUkNc3VOn4YUGPLdBs=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: -
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Routes: -
  Latency: 0s

OS: linux/amd64
Daemon version: 0.29.4
CLI version: 0.29.4
Management: Connected to https://vpn.anon-R8VTi.domain:33073
Signal: Connected to http://vpn.anon-R8VTi.domain:10000
Relays:
  [stun:vpn.anon-R8VTi.domain:3478] is Unavailable, reason: stun request: context deadline exceeded
  [turn:vpn.anon-R8VTi.domain:3478?transport=udp] is Unavailable, reason: allocate: all retransmissions failed for Gb1263WLrQqMZd8Q
  [rel://vpn.anon-R8VTi.domain:33080] is Available
Nameservers:
  [<IP_ADDRESS>:53, <IP_ADDRESS>:53] for [.] is Available
FQDN: server-a.anon-zDCem.domain
NetBird IP: <IP_ADDRESS>/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 4/13 Connected

Do you face any (non-mobile) client issues?
Please provide the file created by netbird debug for 1m -AS.
netbird.debug.375981251.zip
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
SSH always got operation timed out error, when netbird is connected.
ssh  -p 20220<EMAIL_ADDRESS>ssh: connect to host 158.247.XXX.YYY port 20220: Operation timed out

I figure out the issue was cuased by exit-node. After exit-node routing was disabled on server side, this issue has gone. Disabling it on client side doesn't work.
But, the exit-node feature is I wanted to use. I don't know what settings cause this issue.
I found another issue is, network transmission is really slow when exit-node routing is active, even both vpn and device in the same network.

try to add inside netbird catch-all DNS service via google/cloudflare. I have same problem and this strange solution works. And it works for fix strange internal dns servers resolving problems

@lixmal I thought exit node peers can be by installing netbird client. I didn't realize it has ingress issue. I installed the netbird client to make an exit node within my VPN server which was already netbird self-hosted. I understand this behavior that you said if exit node is active. But, I don't get it how I can make the routing to accept external access from public IP using netbird. Do I have to set some internal routing between wg IPs in netbird? Or just settings up "the routing server" is enough? And, I can't figure out what's the routing server in your comment.


開啟外部連結時呼叫瀏覽器

http://stackoverflow.com/questions/17887348/phonegap-open-link-in-browser
www.kidzout.com
cordova plugin add org.apache.cordova.inappbrowser
As suggested in a similar question, use JavaScript to call window.open with the target argument set to _system, as per the InAppBrowser documentation:
www.kidzout.com
This should work, though a better and more flexible solution would be to intercept all links' click events, and call window.open with arguments read from the link's attributes.
Remember you must install the InAppBrowser plugin for this to work:
cordova plugin add org.apache.cordova.inappbrowser

成功

不行，paypal的form失敗了

要改用window.open傳遞get參數
我再想想要怎麼做

不行，來放棄改用PGB的plugin

https://build.phonegap.com/plugins/1769
這篇看起來合理多了


include node_modules in 6to5 loader due to macropod-components being in ...

...node_modules

So I figure the only potential issue with this is like, overhead?


Migrate Hourly Operating Endpoint to Streaming Services

As an ERG team member, I need to be able to access hourly operating emissions data from the hourly operating table in order to support emissions-loading jobs
Given an Hourly Operating Emissions Endpoint is created
When the API calls the Hourly Operating endpoint
Then the API will return Hourly Operating Data emissions data based on a date range and a combination of ORIS codes and location names. If no location names are specified, then all locations for the ORIS codes are returned.
This should be tagged under hourly operating data
The Endpoint is only for the global view NOT the workspace
Endpoint Parameters:
ORIS Code
Unit ID
Stack ID
Begin Date
End Date
Parameter Logic
If more than one oris code is provided the location is not provided (edited)
If more than 1 location is provided only 1 oris code
This will only be for the official camdecmps schema and the url will be
/streaming-services/emissions/hourly/operating
https://usepa.sharepoint.com/:w:/r/sites/CAMDITLegacyReeng/Shared Documents/General/ECMPS 2.0 Additional API Endpoints from ERG.docx?d=w742168a2451f4f839e683bb481d2059a&csf=1&web=1&e=YCXLP7

Need clarification on elements. The API is returning the following
[
{
"reportingPeriodId": "109",
"monitoringLocationId": "LSYSGMX04X-761F51553F2E4447950FDB444A795B64",
"date": "2020-01-07T05:00:00.000Z",
"hour": "2",
"operatingTime": "1.00",
"hourLoad": "271",
"loadRange": null,
"commonStackLoadRange": "8",
"fcFactor": "1800.0",
"fdFactor": null,
"fwFactor": null,
"fuelCode": null,
"multiFuelFlg": null,
"userId": "elamerso",
"addDate": "2020-04-13T18:31:21.000Z",
"updateDate": null,
"loadUnitsOfMeasureCode": "MW",
"operatingConditionCode": null,
"fuelCdList": null,
"mhhiIndicator": null,
"matsHourLoad": null,
"matsStartupShutdownFlag": null
},


Publish releases with version numbers

I'm using the LLM libraries from this repo in an app that will soon be available for distribution, and it would be helpful to specify release versions to determine compatibility with new models as they're released and the libraries are updated to run them. Otherwise, older versions of the app might crash or not function properly if they try to run a newer model with an older, incompatible version of the libraries.

So specifically start tagging releases of mlx-swift and mlx-swift-examples?

Yes, that would be helpful. My current workaround is to specify commit hashes for those libraries, but it would be more convenient if they followed semantic versioning conventions.

OK, added 0.12.1 (matching v0.12.1 from mlx) on mlx-swift and added a PR (#80) to adopt that.  Once that is in I can tag mlx-swift-examples.

Thanks!

https://github.com/ml-explore/mlx-swift-examples/releases/tag/0.12.1


Threading module

Adds a threading module. It grew bigger than I hoped but I think its current form is an acceptable tradeoff. It currently includes:

thread_data and friends
execution_agent
thread_data-related helper functions (get_self_ptr, get_pool etc.)
scheduler_base
thread_pool_base

It does not include the actual schedulers, thread pool implementations, the hpx::thread class, or the IO service pools (these will come in follow-up PRs). The critical dependency chain is thread_data_stackful -> execution_agent -> scheduler_base -> thread_data_stackful. After a discussion with @sithhell it seems like breaking this up is not worth the effort (at least now), but ideas are welcome.
I initially named the module thread_data in the hope that it would only contain thread_data/thread_data_stackful/thread_data_stackless, but it should be renamed now. Options: threading, threading_base, thread_base, basic_threading, basic_thread. Others? I vote for threading_base.
Refactoring that had to happen for this:

Move things around in the thread_data_fwd.hpp, thread_helpers.hpp, thread_pool_helpers.hpp headers to make sure this module is self-contained.
Add a callback to get a default boost::asio::io_service instead of relying on the runtime
Add a callback to get the locality id.
Move the state enum to this module to have it defined for the scheduler state. I did not rename it.
Move the yield_k/yield_while functionality to basic_execution. They originally depended on thread_state_enum but did not use that information. I think we can do without that.
Move the get_action_name declaration to the functional module.

To do:

[x] rebase on naming module PR (#4259)
[x] rename the module (threading_base)
[x] update deprecated headers to new ones
[x] format module

This is currently failing until the deprecated headers are changed and until #4264 is merged.

Thanks a lot ! :)

The CircleCI failure is spelling only (fixed here: #4362). Unfortunately we can't really trust the pycicle builders at the moment (potentially due to the update; I will clean and restart them).
Are there remaining comments on this one?

Only the spell checker is complaining now on CircleCI.

I'd like to go ahead with this one. Are there more comments?


Multiple Filtizr on one page

Hey man,
thanks for your work! I'm really enjoying Filterizr on a current project of mine. There is just one point I can't cope with. I would like to set up two galleries on one page with default settings but for the moment the filter controls affect both galleries. I would like to control them separatly. This is a Jekyll project.
This is my two html gallery containers:
https://github.com/Lobotomizer/LS-Page/blob/master/1_artist.html
Here is the main sass file:
https://github.com/Lobotomizer/LS-Page/blob/Filterizr/css/main.scss
This is where I'm initiate Filterizr:
https://github.com/Lobotomizer/LS-Page/blob/Filterizr/js/filterizr-app.js
Here the javascript is called
https://github.com/Lobotomizer/LS-Page/blob/Filterizr/_includes/scripts.html
That should be the most important stuff. Thanks for your help in advance.
Hannes

Hello Hannes,
I am glad you're enjoying Filterizr. To set up two galleries on a single page, you need indeed to set up your own controls.
To do this you need to pass in the option to disable setting up default controls when instantiating your Filterizrs.
e.g.
var fltr = $('.filtr-container').filterizr({setupControls: false});

and then manually set up your controls calling Filterizr's methods from its public API depending on what you're trying to achieve.
e.g.
$('.show-all').click(function() {
  fltr.filterizr('filter', 'all');
});

Thanks a lot. With my own controls I could trigger both galleries.


Closes a task with an error when run with watch

❯ mise watch -t start:server
mise $ watchexec -- mise run start:server
[Running: mise run start:server]
[lint] sources up-to-date, skipping
[build] sources up-to-date, skipping
[start:server] $ node --enable-source-maps dist/server/index.js
[start:server] Server listening on port 3000
^C[Waiting 60s for processes to exit before stopping...]
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: SendError { .. }
Location: src/cmd.rs:311

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
mise command ["kill", "-15", "42730"] exited with code <signal 15>
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: SendError { .. }
Location: src/cmd.rs:281

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

I don't believe this happens anymore but let me know if it does


bcpkix-jdk15on vulnerability for CVE-2022-21449

I used https://github.com/jfrog/jfrog-CVE-2022-21449 to check for our microservice and found that bcpkix-jdk15on might be vulnerable. Can you please confirm which version should we upgrade to if available for this CVE?
In build/libs/<microservice>.jar/BOOT-INF/lib/bcpkix-jdk15on-1.70.jar/org/bouncycastle/eac/operator/jcajce/EACHelper.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcpkix-jdk15on-1.70.jar/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcpkix-jdk15on-1.70.jar/org/bouncycastle/its/jcajce/JcaITSContentSigner.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcpkix-jdk15on-1.70.jar/org/bouncycastle/its/jcajce/JcaITSContentVerifierProvider.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/jjwt-0.9.1.jar/io/jsonwebtoken/SignatureAlgorithm.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jcajce/BCFKSLoadStoreParameter$Builder.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jcajce/BCFKSLoadStoreParameter$SignatureAlgorithm.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jcajce/provider/asymmetric/EC$Mappings.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jcajce/provider/asymmetric/x509/X509SignatureUtil.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jcajce/provider/keystore/bcfks/BcFKSKeyStoreSpi.class: potential use of ECDSA - may be vulnerable In build/libs/<microservice>.jar/BOOT-INF/lib/bcprov-jdk15on-1.70.jar/org/bouncycastle/jce/provider/X509SignatureUtil.class: potential use of ECDSA - may be vulnerable

bcpkix uses "ECDSA" from other installed cryptographic providers. It is the implementation of ECDSA within the JDK/JRE class libraries that is vulnerable (specifically the SunEC provider).
You should just update to the appropriate JDK/JRE update. Technically you should not be vulnerable anyway if you are using the BC provider, either explicitly via the API or by default with the BC provider installed at higher priority than SunEC. However provider configurations are somewhat error-prone so I would not risk having the broken ECDSA implementation around.

Closing as now resolved.


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 18452f6, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 4755 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in a024741.


Feature Request: Prettier plugin for toml

https://github.com/bd82/toml-tools/issues/39
The current prettier plugin isn't able to be maintained, so it is going to be deprecated, but it'd be great if there was a way to integrate with prettier to add toml support?

I don't know about prettier, but Taplo is available as a JS library with formatting exposed. https://taplo.tamasfe.dev/lib/#javascript

I think currently this is out of the scope of this project and it already provides ways to use as a library or a standalone formatter.
I won't stop anyone writing a prettier integration though, and I'm happy to help if there are any questions.

Hello! I'm interested in building a prettier plugin using Taplo, where should I look to see the JS code generation? I poked around briefly but couldn't find it :(

hi @caass sorry I forgot to reply.
I decided to drop WASM support and focus on other targets for the near future. I will update the WASM bindings at some point, but I don't know when (PR also welcome). You can use @taplo/lib for the time being, it's an old version though.

After realizing that native builds won't be enough (e.g. for the vscode on the web), I actually bit the bullet during the weekend and went for restoring the WASM target.
The documentation on the website is not yet updated, but the code is short and mostly documented, it can be found here. The latest version is published on npm.
You can also pass in environment callbacks, which can be used to read configuration files (e.g. with formatting options), this is not yet documented, but an example can be found here.
I don't know how prettier works, so tell me if there's anything missing that you need.

Prettier generally expects a parser and a printer function: one takes in documents and spits out an AST, and the latter takes in AST and spits out Prettier printing ast
So is there an option for returning an AST of the TOML from the wasm?
ex of this all working together w/ a wasm parser is https://github.com/withastro/prettier-plugin-astro

Ah, it looks like it uses a custom AST format. You will have to take the syntax tree returned by parse, traverse it and build up an AST for prettier and then serialize that at the js boundary.
And vice versa if you also need taplo to format the prettier AST (but at this point why would you need prettier).
The WASM bindings are in a separate crate, and the js packages that are set up to use it are here. I accept PRs if you wish to reuse the boilerplate ci/cd setup.


include emerald dependency with dist

The wallet needs to have an ~/Library/Application Support/Emerald Wallet/bin/emerald executable in order to work right (sign txs and manage accounts).
Options may include but are not limited to:

Include a static binary with the distribution
Implement a downloader like the one for geth
Run some shell scripts and

Ensure rust is installed (ie rustup)
Use cargo install emerald-cli to grab install it and move/copy it to our appdata/bin/

My preference would probably be 2, 1, 3.
Relates to #157, too.

I prefer 1 for now. Because it's an additional point of failure, and we want to eliminate it for first release.
PS one of the big issues with current Mist that it fails to download & unpack Geth on some machines

Related to https://github.com/ethereumproject/emerald-rs/issues/137.


hot reload dev for static files

When I modify the front static file, I hope tauri dev can automatically hot reload.

Hey @SOVLOOKUP !
Thanks for this suggestion. We've been talking about it and came to the conclusion we could work on such feature, probably once we've passed the security audit. :smile:

I use Live server in VSCode to and configure tauri.conf.json to point to the default port of Live server like so 👇
{
    "build": {
        "devPath": "https://localhost:5500"
    }
}

Yeah Tauri would probably just leverage one of the existing dev servers libraries and expose it to the users. Live server is a very good idea, I think we can close this and reopen if more people request this feature.

More people requesting this feature :)

I use Live server in VSCode to and configure tauri.conf.json to point to the default port of Live server

I use create-react-app which already has it's fast reload - I guess it's the same principle as Live server (is it ?) and still my app is not reloading - do you have a trick for me ? 😬

@arnaudambro Unless manually disabled, create-react-app uses a technology called HMR (Hot module reloading) where only that particular component/function/element is resent through a websocket...
With the Live server VSCode extension, a JavaScript full-page refresh is triggered. Have your tried visiting http://localhost:5500 in your browser to check if reloading is working there?

actually it works good now ! I tried a few times before sending this message, not working, but today everything works like a charm... thanks !

I am working on vscode, and live server is running, but the window can't move by drag. btw, the titlebar has "data-tauri-drag-region", it works well while 'devPath: "../dist"'.

I am working on vscode, and live server is running, but the window can't move by drag. btw, the titlebar has "data-tauri-drag-region", it works well while 'devPath: "../dist"'.

Just wanted to add, I am using sveltekit for my web framework. It uses Vite to package up the JS and Vite also has HMR which seems to work as long as you point tauri.conf.json at the right devPath as was mentioned for live server.

I also think there should be an out-of-the-box solution that doesn't require additional setup from the user.

This is an incredibly painful workflow. I'm trying to use vanilla js with the new import maps feature, and the build times are incredibly slow since I have to touch build.rs every time.


Relay and node part of docs not working

Hi!
In the docs site the relay spec link/page isnt working.
I would just like an explanation of what the nodes and edges are used for and how they work. :)
https://docs.wpgraphql.com/guides/relay-spec

@Dongerina Hey! Thanks for pointing this out. This has been on my "todo" list for a while and I just had some time to write out some content for this.
You can see the raw page here: https://github.com/wp-graphql/docs.wpgraphql.com/blob/master/src/content/guides/relay-spec.mdx
and in its rendered form on the site here: https://docs.wpgraphql.com/guides/relay-spec


Support streaming from cloud storage for downloading training data

⚠ Please check that this feature request hasn't been suggested before.

[X] I searched previous Ideas in Discussions didn't find any similar feature requests.
[X] I searched previous Issues didn't find any similar feature requests.

🔖 Feature description
Streaming data straight from cloud storage as the training of a model is ongoing is a great feature to have because it will inevitably be cheaper to stream than to rent large clusters and download a large dataset. Especially when running multi-node, this becomes important.
The idea is that you can store your data in an S3/cloud storage and directly stream batches of examples as you are training. This enables deterministic training and it will make it easier to recover from a hardware failure.
✔ Solution
Integrate with MosaicML's streaming library.
https://github.com/mosaicml/streaming
❓ Alternatives
No response
📝 Additional Context
No response
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this feature has not been requested yet.
[X] I have provided enough information for the maintainers to understand and evaluate this request.

I just created a PR #765 for loading dataset from cloud storage (S3,GCS). This is not same as Streaming as it downloads the entire thing, but just wanted to share in case it fits anyone's use case.
Streaming is definitely on our TODO radar as well!

The new PR is a good use-case as well. Just need streaming enabled to stream in data

I'm working on this.
I propose the following addition:
    # loading from s3 or gcs
    # s3 creds will be loaded from the system default and gcs only supports public access
  - path: s3://path_to_ds # Accepts folder with arrow/parquet or file path like above. Supports s3, gcs.

→
    # loading from s3 or gcs
    # s3 creds will be loaded from the system default and gcs only supports public access
  - path: s3://path_to_ds # Accepts folder with arrow/parquet or file path like above. Supports s3, gcs.
    streaming: true

So a new key to datasets.path (streaming) with a default value of no. If set to yes then it shall use StreamingDataset.
What do you think?

@fmv1992 , hey, thanks for comment. This sounds great. Would you be able to let us know what’s the drawback to using mosaic’s streaming dataset method?

@NanoCode012  ,

Would you be able to let us know what’s the drawback to using mosaic’s streaming dataset method?

The only drawback I can see is the introduction of a new optional dependency (with everything that comes with it). Other than that their implementation looks pretty solid.
The alternative would be for us to implement this ourselves, and this can get quite big depending on the features you want. At the very least one needs to download a few files in parallel (or use a "view" of a file that supports this partial reading feature), manage their rotation after use, and keep track of this rotation. All in all using a 3rd party library seems the most efficient solution here.
I'm eager to hear your thoughts and I'm open to alternatives as well.

What about pretraining

What about pretraining

I like the idea, but this is my first contribution to this repo. I would feel more comfortable doing this as small sized and small scoped as possible. I think supporting pretraining later will be easy once we have this merged and agreed upon the details (when the PR is merged).

Mosaic's streaming sound like a solid option. The dependency should be fine as the base packages required by it does not seem to clash with current packages.
Do you want to outline the changes you make first, so we can run through it, or would you prefer making a PR directly instead?

@NanoCode012  , this is a sketch of what I'm doing:
——————————

——————————
Any criticism is welcome.
If I move the import to inside load_streaming_dataset I prevent any import errors from the optional package. I've seen the alternative pattern of:
has_mosaic_streaming_support = False
try:
    from streaming import StreamingDataset
    has_mosaic_streaming_support = True
except ImportError:
    pass

I think the section you're editing is for pretraining_dataset. If that was your intention, that's correct, else, you would need to edit in the current cloud section https://github.com/OpenAccess-AI-Collective/axolotl/blob/5ed29393e34cf57b24a20ac1bafa3a94272ac3f5/src/axolotl/utils/data/sft.py#L221-L250 and https://github.com/OpenAccess-AI-Collective/axolotl/blob/5ed29393e34cf57b24a20ac1bafa3a94272ac3f5/src/axolotl/utils/data/sft.py#L318-L333 . One part I recall about Mosaic streaming was that it required conversion to its DatasetFormat: https://docs.mosaicml.com/projects/streaming/en/stable/preparing_datasets/dataset_format.html#introduction
How would you deal with this? Or does this expect that the user has already converted it?
Imo, the current dataset cloud implementation is quite bare. I'm open to removing it to this streaming method if it's cleaner.

Re: import. I don't think we have a specific preference. Maybe just a simple utility, check_streaming_installed . See this function: check_mamba_ssm_installed

I thought it was better to add the PR directly: https://github.com/OpenAccess-AI-Collective/axolotl/pull/1525 . Let me know what you think.
(I suggest we move further discussion to that PR).


No Data displaying for some LTM's

I have added all my LTM's to the AST.  For some of the LTM's, certain dashboards are displaying No data for objects.  For example, on the Virtual Servers dashboard, some of the LTM's display virtual server data and some say No data.  What would be causing this to happen and are AST logs that would show what the problem is?

In addition, remember you'll need to be an administrator of the BIG-IP to collect the full stat portfolio. If you have different administrative IDs you'll need to modify the yaml file and designate a user per BIG-IP. For those that may not be familiar, just remember, it's using environmental variables/secrets. So, once the container is started, it will go into memory. I'd highly suggest looking at this: https://f5devcentral.github.io/application-study-tool/config/secret_management/vault_based.html

Going to mark as closed. If you need this reopened, please do so.

Sorry for the late response, but I was out of office for a week.  But I am still having this problem.    I ran the command "docker logs application-study-tool-otel-collector-1 --tail 1000" and attached is some of the output.  Does this provide any information about the problem?
output from command.txt

Can you share your receivers and default yaml files? With all the personal data removed?

Attached.
bigip_receivers.txt
ast_defaults.txt

Can you modify the timeout value to 50s?

Given how ubiquitous the timeouts are, suspect it's not actually a timeout issue and something on the network side. I notice that the 10.105.x.x subnet seems to have no trouble, but the 10.101-104 are all logging errors.
Is the AST host sitting on that 10.105 network? Routing issues? Should be able to traceroute / etc from the AST host and check for connectivity / traceroute / etc.

I modified the timeout value and it appears to be working now.  Thanks for all the help.


Deprecate PM::Logger in favor of motion_print

I'd like to deprecate PM::Logger in favor of the much better motion_print by our very own @markrickert. We do use informational output in various spots in ProMotion, so I think specifying it as a dependency (development and runtime) is reasonable.
Thoughts?

Love motion print.   One thing I like is that you can put smart object printing in mp and have it understand and create super-useful output.

:+1:

:+1:
could probably put it in place, delegate any current use of it of an existing app to use mp and give a deprecation warning, and remove it completely in a later release

:+1: to @squidpunch's idea.
Also, it would be cool if it were simple to colorize random strings.
mp "This method fired", color: :red

That would allow me to port over PM.logger.warn and whatnot, easier.

Ask and ye shall receive! :+1:
Can you test this feature out a bit for me before I push a new gem version?
https://github.com/OTGApps/motion_print#fancy-debugging-tips
mp "My String", force_color: :blue # This is usually yellow

works with all object types.

:+1: Looks great! We'll give it a go on our latest projects.
@kevinvangelder, @carlinisaacson, @yulianglukhenko, maybe try this out on your respective projects?

@jamonholmgren as a end result, do we envision removing the PM.logger completely and leaving it up to the users to use mp blah themselves as well as in our base here - or do we want some sort of "happy path wrapper" that we can use easily internally to send output in the various places that PM.logger is used already here in PM.
I have quick commit that adds the warning for deprecation and adds the dependency - but I would like to update the current places we use PM.logger in that same commit as to not include deprecation warnings from our own code :smile:
Depending on your final vision, will depend on the next steps before I consider this "PR Ready"

I don't think anybody really uses PM.logger anymore, so it's fine if we deprecate it. And yes, let's update those places with mp. :) Let's keep the various colors, though.

Sounds good. I'll push something up for review soon!


werkzeug.Response.add_etag docstring is not clear enough!

Hello there,
This is not a bug, It's related to documentation, I found Response.set_etag and Response.add_etag docs a little confusing!

Open a Python console
Import werkzeug.Response
Run help(werkzeug.Response.set_etag)
Run help(werkzeug.Response.add_etag)

I expected the werkzeug.Response.add_etag docstring be more specific about using the werkzeug.Response.get_data.
Environment:

Python version: 3.8.6
Werkzeug version: 2.0.0.dev

Seems clear to me, and the suggested fix didn't make this clearer, so I'm going to close this.

@davidism The key element is the "Based on" part, The way I see it, both set_etag and add_etag, can add or set etag on the response, but one of them takes an argument which is the actual etag, while the otherone does the etag calculation based on the response.get_data, regardless of the etag you may wanna set!
just having them as set and add does not clarify that one of them gets calculated automatically


Remove what's left of the AYLIEN plugin

Wrong branch, CONTRIBUTING clearly states to raise against dev.
https://github.com/botlabs-gg/yagpdb/blob/7d48f95bcd17d8fd61cb3ffd4577c6e83b040150/CONTRIBUTING.md?plain=1#L5
Also, provide a little bit of explanation, even though this is a trivial
change.


script hook v unhandled exception

so i was trying to play when i got this message
[02:25:51] [ERROR] Caught fatal unhandled exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate)
at ScriptManager.ScriptMain.GetScriptInstances()
at ScriptManager.ScriptMain.ManagedScriptMenuFrame()
at ScriptManager.ScriptMain.ScriptMain_Tick(Object sender, EventArgs e)
at SHVDN.Script.MainLoop()
[02:25:51] [ERROR] The exception was thrown while executing the script ScriptManager.ScriptMain.
[02:25:51] [WARNING] Aborted script ScriptManager.ScriptMain.
can i please get help

This looks like an issue with a Mod you have installed.
ScriptManager is not part of the SHVDN.

Reaper1231 as the log said, the problem is in your tick event.
Need to check code.
If you need help with code, you can join in SHV/SHVDN discord server:
https://discord.gg/XV8HxWB


Slow responses as the length of the chat history increases

Copilot chat seems to respond fast in the beginning but as the length of the chat history increases, it gets slow and even stops responding. I have to clear the chat and start again to make it start working again.

@hussenmi it is slow to start, or also slow to stream in?

Closing due to lack of followup and unable to repro.
It is expected that the LLM will slow down somewhat as it accepts more context and has to reason about it, but it should not be significant to the point you feel like you need to clear your chat. Please open a new issue if this is still negatively impacting you.


Instructions regarding Windows Defender Credential Guard EFI variables do not work

Specifically the command mountvol X: /S does not work resulting in The parameter is incorrect.
mountvol /? gives me the following allowed usage:
MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P
MOUNTVOL /R
MOUNTVOL /N
MOUNTVOL /E

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

ID: 41c2cb44-269d-3334-019a-726eb5432f1c
Version Independent ID: 251024cc-b818-18c6-a112-4ac0276cb4b1
Content: Manage Windows Defender Credential Guard (Windows 10)
Content Source: windows/security/identity-protection/credential-guard/credential-guard-manage.md
Product: w10
Technology: windows
GitHub Login: @DulceMontemayor
Microsoft Alias: dolmont

I realized that this has already been reported as #3234, so I'll close this.


Unicode issue with HDFS

When running , I faced Unicode issues:
odo(df_pd, 'hdfstore://F://data.h5::/data/')
In pandas, we can filter it and re-code it.
types = df_pd.apply(lambda x: pd.lib.infer_dtype(df_pd.values))
types[types=='unicode']
for col in types[types=='unicode'].index:
   df_pd[col] = df_pd[col].astype(str)

Is there a way to do it in Blaze ?

I believe this issue is just with odo so I opened an issue here: https://github.com/blaze/odo/issues/514


Unify asset path seperators for all platforms

What problem does this solve or what need does it fill?
Currently, Bevy supports both / and \ to load assets. This can lead to surprising paths in asset handles:
(on main 0db999c795bb7f34885ddbb5438288486aae6f31)

Load a file with asset_server.load("images/tree.png")
Load a folder with asset_server.load_folder("audio/background")

Based on the loaded paths I would expect the resulting handles to use / as the path separator on all platforms. On Linux this works as expected.
On Windows, the "images/tree.png" path contains a / as expected. But the handles from the folders contain both \ and / (e.g. audio/background\car.ogg).
What solution would you like?
We should probably only use one separator in asset paths.
What alternative(s) have you considered?
We could use other separators, but / looks like the most obvious choice.
Additional context
There has been some relevant discussion on Discord:
https://discord.com/channels/691052431525675048/749332104487108618/1167563412277047396
https://discord.com/channels/691052431525675048/1164297864441249823

More discussion here: https://github.com/bevyengine/bevy/pull/9528
The plan we discussed is to remove the use of PathBuf internally from within AssetPath and instead implement a Bevy-specific equivalent that would be platform-neutral (perhaps called AssetPathBuf). We would only convert to Path at the last possible moment before interacting with the filesystem.
One option is to simply fork PathBuf and cut out 90% of what it's doing - so it would no longer recognize drive letters, backslashes and so on. It only really needs the basic push() and pop() methods that understand directory separators.
AssetPath has fairly comprehensive unit tests, so this should not be a risky change so long as all the tests pass.

Instead of forking PathBuf, we could "normalize" incoming paths with something like https://crates.io/crates/path-slash.

A question: currently Path stores the characters as an OsStr. For an asset path, which is intended to be platform neutral, would it be better to store the path as an OsStr or as a String?

Probably #10511 ?

Closing in favor of #10511


Aborted (core dumped) with tf.raw_ops.LSTMBlockCellGrad

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf 2.16.1
Custom code
Yes
OS platform and distribution
Ubuntu 20.04
Mobile device
No response
Python version
3.11
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
The parameter x is expected to be two-dimensional, and an error will occur when x is one-dimensional
Standalone code to reproduce the issue
import tensorflow as tf

use_peephole = False
x = tf.constant(0, shape=[17], dtype=tf.float32)
cs_prev = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
h_prev = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
w = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
wci = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
wcf = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
wco = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
b = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
i = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
cs = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
f = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
o = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
ci = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
co = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
cs_grad = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
h_grad = tf.constant(0.837607, shape=[28,29], dtype=tf.float32)
tf.raw_ops.LSTMBlockCellGrad(x=x, cs_prev=cs_prev, h_prev=h_prev, w=w, wci=wci, wcf=wcf, wco=wco, b=b, i=i, cs=cs, f=f, o=o, ci=ci, co=co, cs_grad=cs_grad, h_grad=h_grad, use_peephole=use_peephole)

Relevant log output
2024-05-01 03:41:18.804132: F tensorflow/core/framework/tensor_shape.cc:357] Check failed: d < dims() (1 vs. 1)
Aborted (core dumped)

Hi @LongZE666 ,
Thanks for reporting. I have reproduced the reported behaviour and attached gist here.
The checkfail is happening with 1D input to the argument x .
Attaching also snapshot of same below.


Adding collateral. Transaction failed???

I have deposited a large amount of ADA to my Nami wallet to buy some CNFTs, however when I try to set my collateral I keep getting the following error message 'Transaction failed
Mempool full. Try again.' What do I do???

Hi, to set a collateral the wallet needs to do a transaction to create a small UTxO of 5 Ada.
There is actually to much activity going on and Nami backend provider mempool is saturated. A mempool is like a queue where your transaction is waiting to get pushed to the blockchain.
Read this twitter chain post to learn more on what's going on: https://twitter.com/berry_ales/status/1483936557954486272


Snippet Usage Questions (auto-tagging & docker socket)

When creating new monitors via snippets:

Tags are automatically created even though AUTOKUMA_TAG_NAME and AUTOKUMA_TAG_COLOR are not used. Is there a way to disable tagging while using snippets?
Docker-type monitors are not linked to the appropriate docker host; docker socket is mounted to both uptime-kuma and autokuma. Once manually configured using the edit menu within Uptime Kuma, the monitor created by the snippet works. How to link a docker monitor created by a snippet to the docker host in Uptime Kuma?

I am running on unraid in case that changes anything.
Here is my config:
services:
    homepage:
        image: ghcr.io/gethomepage/homepage:latest
        container_name: homepage
        volumes:
          - /mnt/user/appdata/homepage/config:/app/config
          - /mnt/user/appdata/homepage/icons:/app/public/icons
          - /var/run/docker.sock:/var/run/docker.sock
        ports:
          - 4060:3000
        labels:
          - kuma.__web="<my local IP>", "4060"

    uptime-kuma:
        image: louislam/uptime-kuma:1
        container_name: uptimekuma
        restart: unless-stopped
        ports:
          - 3001:3001
        volumes:
          - /mnt/user/appdata/uptime-kuma:/app/data
          - /var/run/docker.sock:/var/run/docker.sock

      autokuma:
        image: ghcr.io/bigboot/autokuma:latest
        container_name: autokuma
        restart: unless-stopped
        environment:
          AUTOKUMA__KUMA__URL: http://<my local ip>:3001
          AUTOKUMA__KUMA__USERNAME: <my uptime-kuma user>
          AUTOKUMA__KUMA__PASSWORD: <my uptime-kuma pw>
          # AUTOKUMA__TAG_NAME: AutoKuma
          # AUTOKUMA__TAG_COLOR: "#42C0FB"
          AUTOKUMA__DEFAULT_SETTINGS: |-
             docker.docker_container: {{container_name}}
             http.max_redirects: 10
             *.max_retries: 3
             *.interval: 60
          AUTOKUMA__SNIPPETS__WEB: |-
             {{container_name}}.docker.name: {{container_name}}
             {{container_name}}.docker.docker_container: {{container_name}}
          AUTOKUMA__DOCKER__HOSTS: unix:///var/run/docker.sock
          AUTOKUMA__DOCKER__LABEL_PREFIX: kuma
        volumes:
          - /var/run/docker.sock:/var/run/docker.sock

The monitor connects once I populate the "Docker Host" field in this screenshot.

Just found your previous reply here  which answers my first question...not sure why I didn't find it either. Looks like it's not possible to disable the tagging.

AutoKuma requires the tag to associate a monitor with a "autokuma id" (i.e. the id portion of a label), I've though about using the description or the title instead but ultimately settled for labels as the least intrusive way

Is there a workaround for the 2nd item (docker host is not automatically assigned to the new monitor created by autokuma)?

Sorry I must've missed the comment, you can assign a docker host you created using the UI or the CLI, e.g.
kuma.my_monitor.docker.docker_host: <id>

To get the id use the kuma CLI:
kuma docker-host list --pretty

You can also assign this as default to all docker montors using AUTOKUMA__DEFAULT_SETTINGS or snippets
Additionally I've recently added support for creating docker hosts using AutoKuma itself, though this is only available on master and is still experimental.

that worked! Thanks very much. For anyone else in the future, here is my snippet (I manually created the docker-host in Uptime Kuma):
AUTOKUMA__SNIPPETS__DOCKER: |-
         {{container_name}}.docker.name: {{container_name}}
         {{container_name}}.docker.docker_container: {{container_name}}
         {{container_name}}.docker.docker_host: 1

Using the kuma.__docker label automatically creates the appropriate monitor in Uptime Kuma.


Unset Command not working

Hi All,
I am trying to remove the time schedule from a firewall filter.
This can be easily done in the terminal with the following command:
/ip/firewall/filter/unset number=4 time
This removes the time schedule for rule number 4.
Using the API, I tried following the same command format, using the .id instead of number:
ip/firewall/filter/unset .id=*9 time
However, it keeps failing. I do not want to remove the entire firewall rule, just the time schedule.
Is there a different way to achieve this from the API?
Thanks
Rgs
Etienne

Does the API throw an exception, and if so, can you show me the stack trace?
Gideon

Just managed to solve it last night.
Was going through the PHP API forum and someone quoted a command with "value-name" parameter for unset functionality.
I tried it on the JAVA API and it worked.
Therefore, the command must be as follows:
/ip/firewall/filter/unset .id=*9 value-name=time
Thanks for replying.
Rgs
Etienne

Thanks. This is interesting.
The use of .id is partially documented, but I've not seen value-name before. I'll look into that, maybe I should improve my own documentation at least.
Gideon


Add babel-runtime for Symbol

Presently, the usage of Symbol.iterator throws in engines that don't natively support Symbol. For example, Safari 8.
I've added babel-runtime to polyfill that out.

@jasisk thank you!


Text size update

Summary
Resolves #1996
Deployment Link
https://terra-core-deployed-pr-1998.herokuapp.com/#/components/terra-text/text/text

Tested: PR #1998
Reviewed:

minor update to add requested additional sizes and weight as specified as Cerner standards
update to documentation description to include theming warning

Verified by @neilpfeiffer, ready for release after engineering/functional validation.

Pass

UX Review

Functional verification completed. The text examples display as expected with the OCS changes.


EcctrlAnimation walking animation doesn't loop

Hi,
the walking animation plays only once. often this occurs. i've got a rigged and animated 3d character .glb and am using it with EcctrlAnimation.
Any idea why walking animation gets stuck and stops looping? sometimes it works fine,

How did you set up the animationSet?

const animationSet = {
idle: 'Idel',
walk: 'Walking',
run: 'running',
jump: 'Walking',
jumpIdle: 'Walking',
jumpLand: 'Walking',
fall: 'Idel',
action1: 'Talking',
action2: 'Talking 2',
}
This is the name of the actions that they gave me for this animated character.

Note jump is disabled with jumpVel={0} I believe.

Try this, setting these to Idle:
{jump: 'Idel', jumpIdle: 'Idel', jumpLand: 'Idel'}

Thanks, that resolved the issue.


feat: switch to github packages

Context
https://hpinc.kanbanize.com/ctrl_board/49/cards/14048/details/

Congrats! The repository doesn't have any security vulnerability issues.

:tada: This PR is included in version 1.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Allow webhook creation for load balancer

https://github.com/rancher/rancher/issues/7449
https://github.com/rancher/validation-tests/pull/272 This PR includes validation tests for:

Min/max setting
Executing webhook whose service has been deleted
Creating webhooks for kind=loadBalancerService and kind=externalService
The third test test_validate_service_type https://github.com/rancher/validation-tests/pull/272/files#diff-ea4a835e3cc399810b8f0225ad7130c5R160 will only pass against this PR

@cjellick can you review this?

LGTM


Boyle Temperature Calculator is added

Fixed #1574

Closes #
Description👨💻

Type of Change📄

[ ] Bug fix (non-breaking change which fixes a bug)
[x] New feature (non-breaking change which adds functionality)
[ ] Style (non-breaking change which improves website style or formatting)
[ ] Documentation (non-breaking change which updates or adds documentation)
[ ] Responsiveness (non-breaking change which improves UI/UX on different screen sizes)

Checklist✅

[x] I am an Open Source contributor
[x] I have performed a self-review of my code
[x] My code follows the style guidelines of this project
[x] I have commented on my code, particularly in hard-to-understand areas

Screenshots/GIF📷

@Ishitamukherjee2004  Please add necessary validations.

@Nihal4777 @Rakesh9100 Changes have been done. Please check


NFTs: Global Dynamic Properties

Related issue(s):
Closes #257
Summary of the change:
Added configurational global dynamic properties for Batch Size, Query Range and Metadata validation. Unit tests were also added.
External impacts:
None.
Applicable documentation

[ ] Javadoc
[ ] HAPI protobuf comments
[ ] README

Lets add E2E tests for the prechecks

We will need to add new global dynamic property for the number of serialNumbers that can be transferred within one cryptotransfer transaction.


improve README.md organization

As more and more units are added, the README.md file is getting quite cumbersome. It should be reorganized to better display available units in a smaller space.

I suggest use the readme to show installation instructions and add a markdown file to each type of unit. Something like:
acceleration.md
angle.md
area.md
...

And so on. And point link to them on the readme on a section called "Converts To".
What do you think?

Thanks for your suggestion. That's definitely one possible approach.
I currently prefer to keep all README related things in one file for organizational purposes, as splitting it up into multiple files could become more trouble than it's worth (such as requiring additional clicks to find information and increasing project bloat). I do like the idea of adding installation information, as that is something iterami READMEs lack.
I haven't updated any issues lately regarding much needed README updates, but I have been thinking of a few options:

Move units into a multi-column table with one unit per table cell. That would greatly shorten the vertical length of the README.md file, but potentially make it more difficult to glance over. That might not be a big issue, as simply having the units listed within the README may be sufficient.
Don't provide a list of converted units. I don't like this one much, but listing the units within <select>s gives users the same amount of information as a list in the README.
Redo all iterami README.md files to only include repository descriptions and useful links, and move all other information (such as installation guides, lists of units, etc) to a separate iterami repository to standardize information in one location.

At the moment I like option 3 the most, but I've been distracted by other ideas so I haven't even started that process. I'm always open to ideas and thoughts if you have more.

I've suggested that approach thinking in the readme as a location to explain the project & the proceedures to get it running. But you're right, too much clicks will be needed for the user to see the units available.
What you think about abstracting it from the readme and putting it on a presentation page on ghpages?
I think that the third option is the best two. But it will demand much time, I think.

I've thought about it a lot more, and I've decided to go with a central repository to contain all the documentation, so I made https://github.com/iterami/Documentation.htm. It'll allow storage of more detailed information about specific repositories and also have generic files like CONTRIBUTING.md to be shared between repositories. This will mean that I'll simplify repository README.md files to mostly only include links to more detailed information.
It'll take a lot of time, but I think it will be worth it. Thanks for reminding me to take care of this! I'm going to close this issue for now because the README.md file seems sufficiently organized.


chef vault ssl private key and certificate

Chef vault ssl-private-key and ssl-certificate and related changes

this pull request is covered by PR#257, so can be merged in PR#257.

Covered by PR#260


feat: 🎸 add usePrevious hook with test

Ref #8

@codyarose This looks REALLY solid. Could you add the documentation for this hook to our Readme? Doesn't need to be very elaborate. Something similar to what's seen for useDialog in the readme is sufficient.


Upgrade expo

Before sending your pull-request 💌 make sure :

[x] The tests are up-to-date and your code is tested

4 errors we need to fix
On FeedbackButton (and any other component that uses an icon from @expo/vector-icons
  console.error
    Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

    Check the render method of `Icon`.
        in Icon (created by Icon)
        in Icon (created by FeedbackButton)
        in View (created by View)
        in View (created by AnimatedComponent)
        in AnimatedComponent (created by ForwardRef(AnimatedComponentWrapper))
        in ForwardRef(AnimatedComponentWrapper) (created by TouchableOpacity)
        in TouchableOpacity (created by ForwardRef)
        in ForwardRef (created by FeedbackButton)
        in FeedbackButton

On HomePage
/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/node_modules/scheduler/cjs/scheduler.development.js:47
        throw e;
        ^

TypeError: _reactNative.Linking.removeEventListener is not a function
    at /home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/@react-navigation/native/lib/commonjs/useLinking.native.js:186:35
    at Object.invokeGuardedCallbackImpl (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9897:10)
    at invokeGuardedCallback (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10073:31)
    at safelyCallDestroy (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10231:5)
    at /home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10702:21
    at unstable_runWithPriority (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/node_modules/scheduler/cjs/scheduler.development.js:653:12)
    at runWithPriority (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1775:10)
    at commitUnmount (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10695:15)
    at unmountHostComponents (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11074:7)
    at commitDeletion (/home/martin/Documents/Ultimate/disc in/UltimateApp/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11110:5)

In DrillPage (and other)
    console.error
      Warning: You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);

In DrillPage (and other)
    console.error
      Warning: An update to ForwardRef(NavigationContainer) inside a test was not wrapped in act(...).

      When testing, code that causes React state updates should be wrapped into act(...):

      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */

      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act
          in ForwardRef(NavigationContainer)
          in Provider


Fill builder form using existing transaction

I got this feature working on a prototype I worked on earlier this year, I started from extrapolateFromXdr.js and made some adjustments to fit it to a new purpose. I don't recall specifically what changes I had to make, but the resulting code is here, which then gets used here to build form state.
We might be able to use some of that logic to build our state, and then make some adjustments to reducers/transactionBuilder.js to make use of the data.


Add CLI option to force transfer speeds to be displayed consistently

When using the -P option, transfer speeds are displayed in megabytes/sec.  Typically when moving data or measuring througput, bandwidth is displayed in megabits/sec. Storing data is usually displayed in megabytes. It gets really confusing when MOVING stored data, so I get why rclone is displaying in MB instead of mb. (Some would argue that it is doing this correctly, I can't argue against that but it would make my life easier if I had the option to change the label)
Adding a command line switch, such as --display-bandwidth=megabits or --display-bandwidth=kilobits would make the display easier to read, conform with typical measurement practices, and make the interface more consistent. (Speed is also reported for each active transfer, but it is displayed as KB. I'm less concerned about this and more interested in seeing the aggregate speed displayed as I requested).
It's my own dumb fault, but I just spent a week trying to figure out why my uploads to google drive were maxing out at 1.5 Mb/sec when I thought it was showing me 1.5 mb/sec. 1.5MB = 12mb, my max upload speed from my ISP.

I didn't realize this, but it already exists:
--stats-unit string                            Show data rate in stats as either 'bits' or 'bytes'/s (default "bytes")
The default is bytes rather than bits though.

I'll close this since --stats-unit should fit the requirement.  If it doesn't then let me know!

Yes, this suffices. Sorry I didn't know about this switch until after I opened the request... I looked through the docs and apparently missed it too. The only thing left to say about stas-units is that it displays megabits with a capital M in the transferring section. It also has a capital M in the combined throughput section, but it suffices the M with the word "bits", so this is not a HUGE deal as well. Thanks for everything you do.

Yes, this suffices. Sorry I didn't know about this switch until after I opened the request... I looked through the docs and apparently missed it too.

No worries!

The only thing left to say about stas-units is that it displays megabits with a capital M in the transferring section. It also has a capital M in the combined throughput section, but it suffixes the M with the word "bits", so this is not a HUGE deal as well. Thanks for everything you do.

I think the M should always be capitalized as it is an SI prefix, small m would mean milli. I did do a physics degree so maybe that is just me ;-)

Hi folks, I just thought I would drop a note here that states the ETA when using --stats-units bits is way off. I'm thinking maybe the math behind it is looking at the bits and thinking it is bytes as the time is roughly 1/8 the time I would expect it to be.
Take a look at the elapsed time, the percentage complete and the ETA. Of course this appears to be just aesthetics, but it does appear to be a bug, so I thought I would let you know. Thanks!
[quote]
UID@flamflam:/mnt/Arcade$ rclone -vP --bwlimit=1.2m --transfers=2 --checkers=10 --tpslimit=10 --drive-chunk-size=32M --stats-unit=bits --log-file=/home/UID/rclone-logs/arcade.log copy  "/mnt/raid1/Arcade" "crypt:arcade"
Transferred:       66.206G / 411.645 GBytes, 16%, 9.589 MBits/s, ETA 10h14m50s
Errors:                 0
Checks:                 0 / 0, -
Transferred:          130 / 728, 18%
Elapsed time:  15h42m42.5s
Transferring:

                             Contrast.rar: 44% /1003.078M, 4.833M/s, 15m19s

                               Jumper.rar: 46% /1.974G, 4.763M/s, 30m30s

[/quote]

If you are seeing a separate item, I'd raise a new topic as this one is closed out.


Fix font size in themes for new textarea

Fixes #530

For the record, Before/After:

Before
After

@vectr0n, could you give it a try, please? :-)
LGTM, but waiting for @vectr0n's approval before giving a +1.

It is already confirmed, I had him add it to his custom CSS. That's why I thought it was already fixed 😄

@astorije tested with @maxpoulin64 and it resolved the problem :smile:

Perfect, 👍 and merging.


Python 2 and 3: forward-compatible

Changed apns.py to work with Python3.
Still need changed to tests

Added test cases for Python3, also saved test cases for Python2


Tensor flow: append tensor operation

Hello.
I have the following operation with numpy array:
data.append(dataset[indices])
dataset[indices] -  numpy.ndarray array with data [0.0345, 0.0522, -0.234, 0.118, -0.568, 0.772,...]
The number of data is big, so it takes a long time for calculation on CPU. To make calculations faster I used TensorFlow.
I found out that only tensor operations can be performed on GPU.
That's why I needed such operation as tf.append(...) that could be add an element to an array inside of the tensor, declared by the following way: tf.Variable([],tf.float32) And after certain number of these operations an inside array of the tensor should be changed from empty to [0.0345, 0.0522, -0.234, 0.118, -0.568, 0.772,...]. After reading of documentation I didn't find such operation in TensorFlow
And the question is following: What is the way to make what I want, using Tensor operations?

If you are working with numpy code you could explore (with tf-nightly) https://www.tensorflow.org/api_docs/python/tf/experimental/numpy/append.
See also
https://youtu.be/DpOq0PJ0H38

I was trying to install tf-nightly and I've got an error:
ERROR: Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process: 'I:\Python\Python37\Lib\site-packages\tensorflow\python\keras\layers\core.py'
Consider using the --user option or check the permissions.

Cause Tensorflow Is running

So I have to delete Tensorflow?

How can I stop TensorFlow? I tried to install tf-nightly and no one of my programs, that uses TensorFlow, was running

Check https://gallery.technet.microsoft.com/How-to-find-out-which-c0d4e60e

I installed another version of Python (3.7.6). Then I installed tf-nightly and tf-nightly-gpu (version 2.5), CUDA 11.0 and cuddn v8.0.5
And I got an error:
W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
This DLL has written in the Environment Variable PATH

What else should I install?

TF by next version (2.4.1) requires CUDA 11

I have already installed CUDA 11.
But TF 2.4.1 don't want to install because of installed tf-nightly

May be my GPU is not compatible with tf-nightly 2.5? That's why an error "W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found" appears?

It seems that doesn't find that CUDA file in your system paths. Check https://www.tensorflow.org/install/gpu?hl=en


Update README.md

PR Type
[Feature | Fix | Documentation | Other() ]
Short Description
...
Tests Added
...

link added


emitFile is required from module system

Curious why an error is thrown for this. Should it not fail silently (or still warn), but at least return the same path to the file and just not call emitFile?
I noticed the issue raised over at enhanced-require:  https://github.com/webpack/enhanced-require/issues/3, and I understand why, but here's my use case:
I'm using webpack via the Node.js API to server-side render a site built heavily with React. In order to benefit from the server-side rendering, the client side code must render the same thing when the React component is mounted to the DOM. Using require('url!mylogo.png'); renders the logo fine but where emitFile can't be used I need to at least get the same path to the image for the React client side rendering to match the prerender from the server.
In order to get this to work properly I amended the loader as follows:

Remove error thrown when no emitFile present (ie: via node api / enhanced-require)
Check for emitFile and don't call it if it's not there

I also had to set __webpack_public_path__ at runtime if it was not set to avoid an issue there.
Then it works. Hopefully you understand the React bit. I can see why you might want to alert the user but for my purposes it helps if the loader fails silently when emitFile is not present.

Is this issue still relevant? It's been two years :).

@SpaceK33z checkout https://github.com/webpack/file-loader/pull/33

Closing since it was fixed a while ago (use emitFile=false).


Changes google client id to a placeholder

While deploying, you may need to use a shell script to change the placeholder to an actual client id. The command to do that would be something like find ./opendc-frontend/build -type f -exec sed -i "s/GOOGLE_OAUTH_CLIENT_ID/$OAUTH_CLIENT_ID/g" {} \;

I agree that this is necessary, but I find it a bit cumbersome to have to copy-paste it for every time I build the frontend. I can, however, integrate this in my gulpfile.js, which I think would make things easier and more straight-forward.
Are you OK with me closing this PR and implementing an alternative one to add it to gulp? That would mean that the user would have to add a file to this folder root (e.g. GOOGLE_OAUTH_CLIENT_ID.txt), which would be read by the gulp process and then string-replaced in all build files.

Can you take the config file as a command line argument to gulp? The best case would be to take a json file as command line argument like we do for the web server. gulp config.json. Yes, you can close the PR.

That sounds better, but can I make that argument optional (to minimize the amount of typing needed to build stuff)? Is there a default config.json location defined that I can link to when no argument is provided?

There will be a sample config.json in the main repo inside the build folder. But that would outside the frontend repo, so we can't really have a default. For now, it is ok if the build fails if the config file is not supplied. In the future, when we modify opendc to run without google auth, we can make it optional.

Sounds good, I'll get busy then with a gulp alternative


When exporting app, it's not packing volume data folder.

It would be great to doing that.

Currently the only apps that use data volumes are database appliances, which have separate commands to export specific databases, as well as a cluster-wide backup command.


How to create and use tokens with oauth2_proxy

Hello guys!
I configured my endpoint with oauth2_proxy using google as provider on kubernetes in GCP. For use via browser it worked normally however to make a request by code I need a token to validate the request. I would like to know if with the pusher / oauth2_proxy container it is possible to generate this token for my request. I will pass the configuration I made of my oauth2_proxy.yml and pass my endpoint (I put it to return the _oauth_proxy which is the cookie, to do a test only).
Oauth2_proxy.yml:
oauth2_proxy.zip
This is my API: https://pedro.4intelligence.com.br
This is my ingress:
ingress.zip

I am interested in this too!

It would be nice to generate tokens that could be used by CLIs for sure and not have to rely on a different tool for the job. +1

Hi @JoelSpeed, I too would like to know if this is possible and if it is, we can have an example in curl / postman to show the steps in the Readme perhaps?

@pedreen do you mean cookie rather than token?

Hi @pedreen , Are you able to achieve, what you are trying to do, i am also looking for solution


Add more details to user manuals

User manuals are incomplete. We need more docs about:

How to use Nirvana
How to contribute Nirvana

/kind documentation


Replace JodaTime in Meetup with standard lib

As of Java 8, the DateTime libraries have become more usable and less bizarre.
This PR replaces the Joda dependency from the meetup exercise with references to the standard library, as discussed in #116.

Thanks, @matthewmorgan !