Unable to use torch geometric with deepsnap [Unable to cast Python instance to C++ type]

Example code:
import networkx as nx
G = nx.DiGraph()
G.add_node(0, node_type='n1', node_label=1, node_feature=torch.Tensor([0.1, 0.2, 0.3, 0.7]))
G.add_node(1, node_type='n1', node_label=1, node_feature=torch.Tensor([0.2, 0.3, 0.4, 0.4]))
G.add_node(2, node_type='n2', node_label=0, node_feature=torch.Tensor([0.3, 0.4, 0.5]))
G.add_edge(0, 1, edge_type='e1', edge_feature=torch.Tensor([0.1,0.1]))
G.add_edge(0, 2, edge_type='e1', edge_feature=torch.Tensor([0.1,0.1]))
G.add_edge(1, 2, edge_type='e2', edge_feature=torch.Tensor([0.1,0.1, 0.1]))
H = HeteroGraph(G)
H = Batch.from_data_list([H]).to("cuda")

import torch_geometric.nn as pyg_nn
nf, batch = H.node_feature, H.batch
H = pyg_nn.global_add_pool(nf, batch)

Can you post your error message? I am not sure whether the HeteroGraph currently supports the pyg_nn.global_add_pool etc.


Support transactions

Which @ngneat/elf-* package(s) are relevant/releated to the feature request?
store
Description
When updating a store multiple times it would increase the performance  if these updates can be performed within an transaction.
This way the subscribers would noticed less and it would also have a visible optimization in the DevTools (less updates).
Proposed solution
same behaviour as applyTransaction in akita.
Alternatives considered
/
Do you want to create a pull request?
No

You can perform multiple updates using the update method:
store.update(
  setProp('foo', 1),
  updateEntities(),
  ...
)

There is also emitOnce function. Check out the docs.

@NetanelBasal Do transactions also play together with elf-persist-state even in async case? Use case: using React Native's AsyncStorage I'm afraid in-memory data and persisted data can go inconsistent in case of an unexpected termination. Is there a protection against that?

I think it's a rare case. No one also complains about it in Akita.

@NetanelBasal Thanks, this is good news! This is what blocks me though these days, however I don't see this issue addressed by anyone even in the wider community, maybe core database guys.


Error: market and outcome not found for shareToken

@eyezick commented on Wed Aug 08 2018
OS: Ubuntu 16.0.4
On an untouched Ubuntu instance with a local Parity node, npm installed successfully. Below output is from executing npm run clean-start/setting up augur-node for first time.
connecting to ethereum-node: {"http":"http://localhost:8545","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
Deleting existing DB for this configuration as the upload block number is not equal: OLD: 0 NEW: 5926223
Moving database /home/ubuntu/augur-node/augur-1-2.db to /home/ubuntu/augur-node/backup-augur-1-1533755130009.db 2
(node:31515) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, rename '/home/ubuntu/augur-node/augur-1-2.db' -> '/home/ubuntu/augur-node/backup-augur-1-1533755130009.db 2'
(node:31515) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31515) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/ubuntu/augur-node/augur-1-2.db
Getting Augur logs from block 5926223 to block 6112095
got 1156 logs in blocks { fromBlock: 6077535, toBlock: 6083294 }
Fetching blocks details from 6080002 to 6083282
new block: 6080002,<PHONE_NUMBER> (Fri Aug 03 2018 09:22:00 GMT+0000 (UTC))
Processing 3 logs
market and outcome not found for shareToken 0x19b11dc141d21e014faf08bd04185d635c58119a (0xe06c295508cf34df5b1bab4ee2b24b9772115a10a54336629e886bd94dba3e48
Stopping Augur Node Server
Unhandled rejection Error: market and outcome not found for shareToken 0x19b11dc141d21e014faf08bd04185d635c58119a (0xe06c295508cf34df5b1bab4ee2b24b9772115a10a54336629e886bd94dba3e48
    at db.first.from.where.asCallback (/home/ubuntu/augur-node/build/blockchain/log-processors/order-created.js:20:29)
    at tryCatcher (/home/ubuntu/augur-node/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.successAdapter [as _fulfillmentHandler0] (/home/ubuntu/augur-node/node_modules/bluebird/js/release/nodeify.js:22:30)
    at Promise._settlePromise (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:566:21)
    at Promise._settlePromise0 (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)

connecting to augur-node: undefined
connecting to ethereum-node: {"http":"http://localhost:8545","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
got 1156 logs in blocks { fromBlock: 6077535, toBlock: 6083294 }
Fetching blocks details from 6080002 to 6083282
got 1521 logs in blocks { fromBlock: 6083295, toBlock: 6089054 }
Fetching blocks details from 6083321 to 6089044
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `node ./build/runServer`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>clean-start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

NPM log below:
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'clean-start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'preclean-start', 'clean-start', 'postclean-start' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>7 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
8 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ubuntu/augur-node/node_modules/.bin:/home/ubuntu/bin:/home/ubuntu/.l$
9 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/ubuntu/augur-node
10 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'npm run rebuild && npm start' ]
11 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
12 info lifecycle<EMAIL_ADDRESS>Failed to exec clean-start script
13 verbose stack Error<EMAIL_ADDRESS>clean-start: `npm run rebuild && npm start`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/ubuntu/augur-node
16 verbose Linux 4.4.0-1061-aws
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "clean-start"
18 verbose node v8.11.3
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error<EMAIL_ADDRESS>clean-start: `npm run rebuild && npm start`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>clean-start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

@bthaile commented on Thu Aug 09 2018
Are you using newest augur-node master branch?

@eyezick commented on Thu Aug 09 2018
Git log shows latest commit 2a4537d197ad0fc9fde3ce7d868785d1f803c459

@bthaile commented on Thu Aug 09 2018
That is up to date.
Also btw, noticed the default URL for the websocket connection (when ETHEREUM_WS is undefined) is an HTTP link "http://localhost:8546"but it should be a WS link right?
$ DELAY_WAIT_MILLIS=2000 npm run clean-start

><EMAIL_ADDRESS>clean-start /home/ubuntu/augur-node
> npm run rebuild && npm start

><EMAIL_ADDRESS>rebuild /home/ubuntu/augur-node
> npm run clean && npm run build

><EMAIL_ADDRESS>clean /home/ubuntu/augur-node
> rm -rf augur*.db build definitions

><EMAIL_ADDRESS>build /home/ubuntu/augur-node
> tsc

><EMAIL_ADDRESS>start /home/ubuntu/augur-node
> node ./build/runServer

connecting to augur-node: undefined
connecting to ethereum-node: {"http":"http://localhost:8545","ws":"ws://<IP_ADDRESS>:8546"}
websocket ws://<IP_ADDRESS>:8546 closed: 1006 connection failed
websocket ws://<IP_ADDRESS>:8546 closed: 1006 connection failed
connected to ethereum
/home/ubuntu/augur-node/augur-1-2.db
Getting Augur logs from block 5926223 to block 6121190
got 105 logs in blocks { fromBlock: 6075110, toBlock: 6080869 }
Fetching blocks details from 6080002 to 6080869
new block: 6080002,<PHONE_NUMBER> (Fri Aug 03 2018 09:22:00 GMT+0000 (UTC))
Processing 3 logs
market and outcome not found for shareToken 0x19b11dc141d21e014faf08bd04185d635c58119a (0xe06c295508cf34df5b1bab4ee2b24b9772115a10a54336629e886bd94dba3e48
Stopping Augur Node Server
Unhandled rejection Error: market and outcome not found for shareToken 0x19b11dc141d21e014faf08bd04185d635c58119a (0xe06c295508cf34df5b1bab4ee2b24b9772115a10a54336629e886bd94dba3e48
    at db.first.from.where.asCallback (/home/ubuntu/augur-node/build/blockchain/log-processors/order-created.js:20:29)
    at tryCatcher (/home/ubuntu/augur-node/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.successAdapter [as _fulfillmentHandler0] (/home/ubuntu/augur-node/node_modules/bluebird/js/release/nodeify.js:22:30)
    at Promise._settlePromise (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:566:21)
    at Promise._settlePromise0 (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/home/ubuntu/augur-node/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/ubuntu/augur-node/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)

got 1730 logs in blocks { fromBlock: 6080870, toBlock: 6086629 }
connecting to augur-node: undefined
connecting to ethereum-node: {"http":"http://localhost:8545","ws":"ws://<IP_ADDRESS>:8546"}
websocket ws://<IP_ADDRESS>:8546 closed: 1006 connection failed
websocket ws://<IP_ADDRESS>:8546 closed: 1006 connection failed
connected to ethereum
got 105 logs in blocks { fromBlock: 6075110, toBlock: 6080869 }
Fetching blocks details from 6080002 to 6080869
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `node ./build/runServer`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>clean-start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2018-08-10T08_04_57_868Z-debug.log

@bthaile commented on Fri Aug 10 2018
Augur-node can use http or Websockets.
http":"http://localhost:8545","
ws":"ws://<IP_ADDRESS>:8546
These look correct depending on the parity setup. We’re investigating the correct setup for parity, so augur-node can process logs.

@eyezick commented on Sat Aug 11 2018
I understand it can use either, below are the default links when the environment variables are undefined. You're saying "ws":"http://localhost:8546" is correct?
connecting to ethereum-node: {"http":"http://localhost:8545","ws":"http://localhost:8546"}
And cool, I'll just use the public geth nodes until then.

@bthaile commented on Sat Aug 11 2018
We are going to push out recommended arg for running local parity node. Stay tuned.

@eyezick commented on Sun Aug 19 2018
hi @bthaile , any eta?

@bthaile commented on Sun Aug 19 2018
We have a draft fix for the .deb issue, just testing. Our usually .deb installer tester is out.

@eyezick commented on Mon Sep 03 2018
@bthaile do you guys happen to know if there any other EC2 supported operating systems that are working with Parity & Augur-node?

@bthaile commented on Mon Sep 03 2018
I’m not sure, @petong @epheph @pg might know.

@adrake33 commented on Thu Sep 13 2018
This is being tracked at https://app.clubhouse.io/augur/story/15116/github-parity-node-could-not-find-balance-for-token-decrease.

@adrake33 commented on Mon Sep 24 2018
@eyezick Are you using warp sync? If so, the issue seems to be that you need to wait longer. Parity in warp sync will give the false impression of when it is ready because it is only up-to-date for new blocks, but not old blocks.  See here for more info: https://github.com/AugurProject/augur-app/issues/291#issuecomment-418540421.
There isn't really anything we can do to fix this, but @epheph recently created 2 PRs to let the user know that there's an issue with their Parity node:
https://github.com/AugurProject/augur.js/pull/517
https://github.com/AugurProject/augur-node/pull/651

@adrake33 commented on Wed Sep 26 2018
Closing this issue for now. @eyezick Please let me know if this should be reopened.

@eyezick commented on Thu Dec 06 2018
@adrake33 I'm now having the same error with Infura.
This Augur Node has been running for days with this Infura provider, but today it keeps throwing this error.
I've further tried with multiple Infura endpoints, as well as https://gethnode.com/http
connecting to augur-node: undefined
connecting to ethereum-node: {"http":"https://mainnet.infura.io/v3/******************","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
Found prior database: /home/ubuntu/augur-node/augur-1-2.db
/home/ubuntu/augur-node/augur-1-2.db
Starting websocket secure server on port 9002
Starting websocket server on port 9001
Getting Augur logs from block 6834717 to block 6837137
got 41 logs in blocks { fromBlock: 6834717, toBlock: 6834976 }
Fetching blocks details from 6834718 to 6834944
new block: 6834718,<PHONE_NUMBER> (Thu Dec 06 2018 05:04:35 GMT+0000 (UTC))
Processing 3 logs
market and outcome not found for shareToken 0xd6917729fdbdb8dd7f4a80a6472747838957af2b (0xfc8794e35702640666f5d4a23246f1ed7f26f4b8bed2d3c257ecb3734581ac09
Stopping Augur Node Server
got 58 logs in blocks { fromBlock: 6834977, toBlock: 6835696 }
connecting to augur-node: undefined
connecting to ethereum-node: {"http":"https://mainnet.infura.io/v3/******************","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
got 41 logs in blocks { fromBlock: 6834717, toBlock: 6834976 }
Fetching blocks details from 6834718 to 6834944
got 58 logs in blocks { fromBlock: 6834977, toBlock: 6835696 }
connecting to augur-node: undefined
connecting to ethereum-node: {"http":"https://mainnet.infura.io/v3/******************","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
got 41 logs in blocks { fromBlock: 6834717, toBlock: 6834976 }
Fetching blocks details from 6834718 to 6834944
connecting to augur-node: undefined
connecting to ethereum-node: {"http":"https://mainnet.infura.io/v3/******************","ws":"http://localhost:8546"}
websocket http://localhost:8546 closed: 1006 connection failed
websocket http://localhost:8546 closed: 1006 connection failed
connected to ethereum
got 41 logs in blocks { fromBlock: 6834717, toBlock: 6834976 }
Fetching blocks details from 6834718 to 6834944
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `ts-node ./src/runServer && ETHEREUM_HTTP=https://mainnet.infura.io/v3/******************`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2018-12-06T14_39_29_174Z-debug.log

@adrake33 commented on Thu Dec 06 2018
@eyezick We're in the process of transitioning to a new repository for version 2 of Augur: https://github.com/AugurProject/augur. As a result, we'd like to consolidate all of our tickets here (both for v1 and v2), so please file all future tickets in this repository. I'll go ahead and move this ticket over to the new repository. We'll also be adding a note to the old repositories to file tickets in the new one.

@eyezick Gethnode is currently offline. (The Augur team does not run this server, so we have no control over it.) Infura is also unusable right now. We are currently looking into other alternatives. In the meantime, users can run a local full node or a hosted node they trust. We will provide an update once we have more info.

Closing this since the Alchemy endpoint is now useable by selecting the mainnet option in Augur App.


first test

Advantage 360 Pro PR template
What's changed:
Why has this change been implemented:
What (if any) actions must a user take after this change:

Please don't open personal PRs into the official repo


Multi checkbox – correct way to group checkboxes ?

Thank's for this great plugin.
I did not find in the documentation how to use the multiple checkbox field ?
Whith this code
 <input type="checkbox" name="chk_group" value="value1" />Value 1

 <input type="checkbox" name="chk_group" value="value2" />Value 2

 <input type="checkbox" name="chk_group" value="value3" />Value 3

the plugin store only the last checked checkbox value.
I need to use :
<input type="checkbox" name="chk_group[]" value="value1" />Value 1

<input type="checkbox" name="chk_group[]" value="value2" />Value 2

<input type="checkbox" name="chk_group[]" value="value3" />Value 3

in order to get grouped values.
chk_group : _Value 1, Value 2 ... _
This can be retrieved in PHP with a simple loop:
<?php
if (isset($_POST['chk_group'])) {
    $optionArray = $_POST['chk_group'];
    for ($i=0; $i<count($optionArray); $i++) {
        echo $optionArray[$i]."
";
    }
}
?>

Is there a way to get this working in Magic Forms ?

Hello @damsfx
Using
<input type="checkbox" name="chk_group[]" value="value1" />Value 1

<input type="checkbox" name="chk_group[]" value="value2" />Value 2

<input type="checkbox" name="chk_group[]" value="value3" />Value 3

the values are stored on the database but the record details page throw an error.
I'm fixing this page to display a list with the values, but i think the only way to get this data is to name the fields like chk_group[]

Hi @skydiver
Yes, I've take look at the DB and see that only the details page wait for a string when an array is used.
And yes, it's the only known HTML method to get group values in forms treatment.
Thanks again for your time.

Record detail page was fixed
Thanks @damsfx for the report

Can't get it working ...
"An exception has been thrown during the rendering of a template ("nl2br() expects parameter 1 to be string, array given") ...
Any ideas ?

@damsfx have you updated to version 1.3.3?

Yes ...
Of course.
Showing form is ok, submitting too.
DB update look fine but Ajax function return the error.
I didn't have the problem with previous version.
Will try with a fresh site.
Le 18 févr. 2017 01:08, "Martin M."<EMAIL_ADDRESS>a écrit :
@damsfx https://github.com/damsfx have you updated to version 1.3.3?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/skydiver/october-plugin-forms/issues/29#issuecomment-280800784,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAROgorDxBbU8n986gO8qPJRVvQ75Nsdks5rdjaIgaJpZM4MDVV5
.

Yes ...
Of course.

Sorry for asking @damsfx ...

Hello @damsfx, the problem is still there?
Thanks.-

Hi,
Yes problem still there.
The origin of the error seems to lie when adding these 2 lines
    {{ form_token() }}

This form work :
<form data-request="{{ ContactForm }}::onFormSubmit">
	<input type="checkbox" name="color[]" id="checkbox-1" value="red"   />Red
	<input type="checkbox" name="color[]" id="checkbox-2" value="blue"  />Blue
	<input type="checkbox" name="color[]" id="checkbox-3" value="green" />Green

	<input class="btn btn-success" value="Envoyer" type="submit" required>
</form>

This not :
<form data-request="{{ ContactForm }}::onFormSubmit">
	{{ form_token() }}

	<input type="checkbox" name="color[]" id="checkbox-1" value="red"   />Red
	<input type="checkbox" name="color[]" id="checkbox-2" value="blue"  />Blue
	<input type="checkbox" name="color[]" id="checkbox-3" value="green" />Green

	<input class="btn btn-success" value="Envoyer" type="submit" required>
</form>

Im still having this problem using v.<IP_ADDRESS>


Improve Spreadsheet Workflow - sort output columns

As step 1 of an improved spreadsheet workflow, make the output sheet have columns in the same order as the input sheet for easy copy-pasting into the original spreadsheet format (data validated, highlighted etc).

Closing this and folding into larger issue after discussing with Eliot


Yin Media Encoder not recognized

After add source video to Yin Media Encoder show problem with identification source video.

If the video cannot load, click the option "Convert to AVI" and it will open it using an alternative method.


Index out of range if version_signature is empty but exist

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I run k8s in lxc on proxmox, procfs + "/version_signature" exist but empty.
This cause versionStrings with zero length, and a OOB in versionStrings[len(versionStrings)-1].
Pod Failed to start.
It work fine if I add check to length of versionStrings and rebuild myself.
Tetragon Version
tetragon:v0.9.0
Kernel Version
Linux hostname 5.15.107-2-pve #1 SMP PVE 5.15.107-2 (2023-05-10T09:10Z) x86_64 GNU/Linux
Kubernetes Version
v1.26.3
Bugtool
No response
Relevant log output
panic: runtime error: index out of range [-1]

goroutine 1 [running]:
github.com/cilium/tetragon/pkg/kernels.GetKernelVersion({0x0?, 0x18b5c13?}, {0x1f431c2?, 0x2255a08?})
	/go/src/github.com/cilium/tetragon/pkg/kernels/kernels.go:65 +0x1e5
github.com/cilium/tetragon/pkg/kernels.EnableV60Progs()
	/go/src/github.com/cilium/tetragon/pkg/kernels/kernels.go:127 +0x4a
github.com/cilium/tetragon/pkg/sensors/base.ExecObj()
	/go/src/github.com/cilium/tetragon/pkg/sensors/base/base.go:100 +0x17
github.com/cilium/tetragon/pkg/sensors/base.glob..func1()
	/go/src/github.com/cilium/tetragon/pkg/sensors/base/base.go:15 +0x1d
github.com/cilium/tetragon/pkg/sensors/base.init()
	/go/src/github.com/cilium/tetragon/pkg/sensors/base/base.go:21 +0x1d

Anything else?
Should it be fixed and can I fix this ?
Code of Conduct

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

Hello, thanks for the bug report!

It work fine if I add check to length of versionStrings and rebuild myself.
Would you like to submit your patch? I guess it can be quickly fixed but since you already have something, maybe you want to share it :)


MAINT: Remove deprecated unused code

Overview
Supports #3507
Removes unused functions which have previously been deprecated:

shap/utils/_masked_models.py:_build_delta_masked_inputs()
shap/explainers/_explainer.py:Explainer._compute_main_effects()

@connortann Let's include this change in the changelog, just to be on the safe side.


User should see a message if FV duplicate is being deleted

currently we just detect if the user own faceid is being deleted
in case the server duplicate result is a faceid being deleted it should return to client result that duplicate is being deleted
and client should show the face record is being deleted popup

@sirpy @patpedrosa Does it still relevant or could be closed / moved to the IceBox ?


Signing in does not work in WSL 2

Describe what happened:
When trying to start a session, the login can't be successfully completed. Once the key is given it is stuck on signing in until it errors out at some point (likely timeout).
Joining a session works (anonymously).
I tried both on my existing Ubuntu 20.04 install as well as a fresh debian distro. Both produced exactly the same error.
I'd be happy to supply more information and am open for ideas/suggestions.
I tried reinstalling both VScode & liveshare several times, repair utilities etc. Nothing changed the error :(
What was your system configuration?
Product and Version [VS/VSCode]:
OS Version[macOS/Windows]: Windows with WSL 2 installed (Debian & Ubuntu 20.04)
Live Share Extension Version: 1.0.3121
Target Platform or Language [e.g. Node.js]:
Steps to Reproduce / Scenario:

Install Deb/Ubuntu for WSL 2
Install VS Code through remote WSL (Windows VS Code required)
Try to start a session

Please attach logs to this issue:
You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to this issue
[Client I] Trace log: /tmp/VSFeedbackVSRTCLogs/20201115_145301_16054519810760_VSCode.log
[Client I] Passed version check for Linux: found 4.19.128-microsoft-standard
[Client.Rpc V] RPCClient.init retryCount:0 currentRetryInterval:0
[Debug.Rpc.Host V] TrackDebugManager created
[Client.Rpc V] Agent connection not completed: Error: connect ECONNREFUSED /tmp/CoreFxPipe_vscode.cb014368c23c0f30483f53aafffb19f1; Retrying...
[Client.Rpc V] RPCClient.init retryCount:1 currentRetryInterval:100
[Client.Agent V] Agent lock on:</<redacted>/<redacted>.lock>
[Client.Agent I] starting agent with pipe:vscode.cb014368c23c0f30483f53aafffb19f1
[Client.Agent I] signalR service -> uri:https://signlr-prod.core.vsengsaas.visualstudio.com/api/signalr/signalrhub
[Client.Agent V] Finished agent startup...
[Client.Agent V] Agent unlocked
[Client.Rpc I] Agent connection success - net.pipe://localhost/vscode.cb014368c23c0f30483f53aafffb19f1
[Client.Rpc V] finish initialize agent session with rpcConnectId:null hostSessionId:1
[Client.Rpc.Auth V] < version.exchangeVersions()
[Client.Rpc.Auth V] > version.exchangeVersions() succeeded t:10.0
[Client I] Client version: 1.0.3121 (VSLS/2.2), agent version: 1.0.3121.3144 (VSLS/2.2)
[Client.Rpc.Auth V] < version.exchangeSettings()
[Client.Rpc.Auth V] > version.exchangeSettings() succeeded t:10.0
[Client I] Hub connection is being enabled...
[Hub.Connection V] < hubConnection.setEnabled()
[Hub.Connection V] > hubConnection.setEnabled() succeeded t:5.0
[Client I] No workspaceId found in workspace settings.
[Client I] No workspace url found in cascade.json file.
[Client I] "Planned sessions are disabled, state: SigningIn
[Client.Rpc V] < telemetry.initialize()
[Contact.Manager E] Failed to register Git provider error:Error: Git model not found
[Contact.Manager I] registerContactProvider-> serviceId:selfInvite
[Contact.Service V] _Initialize:selfInvite
[Contact.Service V] Request 'initialize' serviceId:selfInvite
[Client.Rpc.SessionContext V] < sessionContext.getServiceNames()
[Client.Rpc V] > telemetry.initialize() succeeded t:42.0
[Client.Rpc.Auth V] < auth.loginWithCachedToken()
[Client.Rpc.SessionContext V] > sessionContext.getServiceNames() succeeded t:22.0
[Contact.Manager I] registerContactProvider-> serviceId:LivesharePresence
[Contact.Service V] _Initialize:LivesharePresence
[Contact.Service V] Request 'initialize' serviceId:LivesharePresence
[Client.Rpc.Contact V] < contactService-LivesharePresence.request()
[Hub.Connection V] < hubConnection.getIsConnected()
[Client.Rpc.Contact V] > contactService-LivesharePresence.request() succeeded t:56.0
[Client.Rpc.Auth E] > auth.loginWithCachedToken() error: undefined
[Client I] "Planned sessions are disabled, state: SignedOut
[Contact.Manager V] ->loadRecentCollaborators:onStateChanged
[Contact.Manager V] SelfInviteProvider-> status:false
[Contact.Service V] onNotified-> serviceId:selfInvite name:suggestedUsers
[Contact.Manager I] onSuggestedUsersUpdate-> serviceId:selfInvite count:0
[Contact.Manager V] ->updateSuggestedUsers
[Contact.Manager V] suggest contacts from provider:selfInvite ids: emails:
[Contact.Manager V] ->updateRecentContacts -> count:0
[Contact.Manager I] <- updateSuggestedUsers count:0
[Contact.Manager V] <-updateRecentContacts
[Hub.Connection V] > hubConnection.getIsConnected() succeeded t:65.0
[Communications.Manager I] [Chat View Controller] initialize
[Hub.Connection V] < hubConnection.registerHubMethodNotify()
[Hub.Connection V] < hubConnection.registerHubMethodNotify()
[Hub.Connection V] < hubConnection.registerHubMethodNotify()
[Client.Rpc.Auth V] < auth.getCurrentUser()
[Hub.Connection V] > hubConnection.registerHubMethodNotify() succeeded t:16.0
[Hub.Connection V] > hubConnection.registerHubMethodNotify() succeeded t:17.0
[Hub.Connection V] > hubConnection.registerHubMethodNotify() succeeded t:17.0
[Client.Rpc.Auth V] > auth.getCurrentUser() succeeded t:18.0
[Command:Object I] Decorator: SingleInvocation Starting
[Command:Object I] Decorator: CancellationDecorator Starting
[Command:Object I] Decorator: ErrorNotification Starting
[Command:Object I] Decorator: FirstRunTracking Starting
[Command:Object I] HasRunPreviously: Starting collaboration session -> true
[Command:Object I] Decorator: Telemetry Starting
[Command:Object I] Decorator: TelemetryStatus Starting
[Command:Object I] Decorator: Validation Starting
[Command:Object I] Decorator: SessionStateTransitions Starting
[Client I] "Planned sessions are disabled, state: SharingInProgress
[Command:Object I] SessionContext: State update from "SignedOut" (SignOut) to "SharingInProgress" (AttemptSharing).
[Command:Object I] Decorator: Progress Starting
[Progress I] Progress notifier opened: 0.
[Command:Object I] Decorator: InfoPage Starting
[Command:Object I] Decorator: Authentication Starting
[Command:Object I] SessionContext: Status update from "undefined" to "SigninCheckStarting".
[Client I] "Planned sessions are disabled, state: SigningIn
[Command:Object I] SessionContext: State update from "SharingInProgress" (AttemptSharing) to "SigningIn" (AttemptSignIn).
[Command:Object I] SessionContext: Status update from "SigninCheckStarting" to "AttemptDefaultLoginStarting".
[Client.Rpc.Auth V] < auth.loginWithCachedToken()
[Client.Rpc.Auth E] > auth.loginWithCachedToken() error: undefined
[Command:Object I] SessionContext: Status update from "AttemptDefaultLoginStarting" to "SigninCheckCompletedError".
[Client I] "Planned sessions are disabled, state: SignedOut
[Contact.Manager V] ->loadRecentCollaborators:onStateChanged
[Contact.Manager V] SelfInviteProvider-> status:false
[Contact.Service V] onNotified-> serviceId:selfInvite name:suggestedUsers
[Contact.Manager I] onSuggestedUsersUpdate-> serviceId:selfInvite count:0
[Command:Object I] SessionContext: State update from "SigningIn" (AttemptSignIn) to "SignedOut" (SignInError).
[AuthenticationFlow E] Suppressed Exception (AuthenticationFlow.attemptAuthenticationCheckFlow): secret_password_lookup_sync() failed with error code 0: Cannot autolaunch D-Bus without X11 $DISPLAY
[Command:Object I] SessionContext: Status update from "SigninCheckCompletedError" to "SigninCheckCompleted".
[Contact.Manager V] ->updateSuggestedUsers
[Command:Object I] SessionContext: Status update from "SigninCheckCompleted" to "SigninStarting".
[Contact.Manager V] suggest contacts from provider:selfInvite ids: emails:
[Client.Rpc.Auth V] < auth.getLoginUri()
[Contact.Manager V] ->updateRecentContacts -> count:0
[Contact.Manager I] <- updateSuggestedUsers count:0
[Contact.Manager V] <-updateRecentContacts
[Client.Rpc.Auth V] > auth.getLoginUri() succeeded t:3.0
[Client I] "Planned sessions are disabled, state: ExternallySigningIn
[Command:Object I] SessionContext: State update from "SignedOut" (SignInError) to "ExternallySigningIn" (AwaitExternalSignIn).
[Command:Object I] SessionContext: Status update from "SigninStarting" to "ExternalSignInStarting".
[Client E] Command failed: xprop -id $(xprop -root 32x '	$0' _NET_ACTIVE_WINDOW | cut -f 2) WM_NAME
xprop:  unable to open display ''
xprop:  unable to open display ''

[Command:Object I] SessionContext: Status update from "ExternalSignInStarting" to "ExternalSignInComplete".
[Client I] "Planned sessions are disabled, state: SigningIn
[Command:Object I] SessionContext: State update from "ExternallySigningIn" (AwaitExternalSignIn) to "SigningIn" (AttemptSignIn).
[Command:Object I] SessionContext: Status update from "ExternalSignInComplete" to "AttemptLoginStarting".
[Client.Rpc.Auth V] < auth.login()
[Client.Rpc V] > telemetry.genericOperation:
[Client.Rpc.Auth E] > auth.login() error: undefined
[Command:Object I] SessionContext: Status update from "AttemptLoginStarting" to "SigninCompletedError".
[Client I] "Planned sessions are disabled, state: SignedOut
[Contact.Manager V] ->loadRecentCollaborators:onStateChanged
[Contact.Manager V] SelfInviteProvider-> status:false
[Contact.Service V] onNotified-> serviceId:selfInvite name:suggestedUsers
[Contact.Manager I] onSuggestedUsersUpdate-> serviceId:selfInvite count:0
[Command:Object I] SessionContext: State update from "SigningIn" (AttemptSignIn) to "SignedOut" (SignInError).
[Contact.Manager V] ->updateSuggestedUsers
[Command:Object I] Decorator: Authentication Completed Failed (121931ms)
[Contact.Manager V] suggest contacts from provider:selfInvite ids: emails:
[Command:Object I] Decorator: InfoPage Completed Failed (121931ms abs=0ms pre=0ms post=0)
[Contact.Manager V] ->updateRecentContacts -> count:0
[Contact.Manager I] <- updateSuggestedUsers count:0
[Command:Object I] Decorator: Progress Completed Failed (121935ms abs=4ms pre=3ms post=1)
[Client I] "Planned sessions are disabled, state: SignedOut
[Contact.Manager V] ->loadRecentCollaborators:onStateChanged
[Contact.Manager V] SelfInviteProvider-> status:false
[Contact.Service V] onNotified-> serviceId:selfInvite name:suggestedUsers
[Contact.Manager I] onSuggestedUsersUpdate-> serviceId:selfInvite count:0
[Command:Object I] SessionContext: State update from "SignedOut" (SignInError) to "SignedOut" (SharingError).
[Contact.Manager V] <-updateRecentContacts
[Command:Object I] Decorator: SessionStateTransitions Completed Failed (121939ms abs=4ms pre=2ms post=2)
[Contact.Manager V] ->updateSuggestedUsers
[Command:Object I] Decorator: Validation Completed Failed (121941ms abs=2ms pre=0ms post=2)
[Contact.Manager V] suggest contacts from provider:selfInvite ids: emails:
[Command:Object I] Decorator: TelemetryStatus Completed Failed (121942ms abs=1ms pre=0ms post=1)
[Command:Object E] Command [Starting collaboration session]: Share Failure: Request was cancelled (122655ms)
[Command:Object E] Error: Request was cancelled
	at handleResponse [PATH]/extension-prod.js:129153:48)
	at processMessageQueue [PATH]/extension-prod.js:128980:17)
	at Immediate.<anonymous> [PATH]/extension-prod.js:128964:13)
	at processImmediate [PATH]/timers.js:439:21)
[Command:Object I] Decorator: Telemetry Completed Failed (122657ms abs=715ms pre=1ms post=714)
[Contact.Manager I] <- updateSuggestedUsers count:0
[Command:Object I] Decorator: FirstRunTracking Completed Failed (122657ms abs=0ms pre=0ms post=0)
[Contact.Manager V] ->updateRecentContacts -> count:0
[Contact.Manager V] <-updateRecentContacts
[Command:Object I] Decorator: ErrorNotification Completed Success (141269ms abs=18612ms pre=0ms post=18612)
[Command:Object I] Decorator: CancellationDecorator Completed Success (141269ms abs=0ms pre=0ms post=0)
[Command:Object I] Decorator: SingleInvocation Completed Success (141269ms abs=0ms pre=0ms post=0)```
**Screenshots**
If applicable, add screenshots to help explain your problem.

<!--
For Visual Studio problems/feedback, please use the "Report a Problem..." feature built into the tool. See https://aka.ms/vsls-vsproblem.

For VS Code issues, attach verbose logs as follows:
1. Press F1 (or Ctrl+Shift+P / Cmd+Shift+P), type "export logs" and run the "Live Share: Export Logs" command.
2a. Drag and drop the zip to the issue on this screen and wait for it to upload before creating the issue.
2b. Alternatively, send the zip file to<EMAIL_ADDRESS>-->

Any update here? :) @alyssajotice

Thanks for reaching out! This bug still needs to be triaged and assigned. We'll provide updates here.
cc @olegoid

Hey @moekify, our best suggestion at this time is to await the rollout of our new native authentication service. You can start using VS Code Insiders now, and it will be rolled out to you soon.

Closing this as a duplicate of #2916.


Error while deploying/saving: ValueError: Must pass 2-d input

Keras RNN models require input data to be 3 dimensional, so I reshaped my training data to fit the RNN model. However, this forbids me from saving my model results because talo requires input to be 2-D.

Complete Trace:
Deploy package best_mymodel have been saved.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-12-a2ea066d7165> in <module>
      3 #choose the best model by sorting the lowest 1-r_value for the validation and save it
      4 data=ta.Predict(t).scan_object.data.sort_values("val_r_value")
----> 5 ta.Deploy(t, 'best_mymodel',metric='val_r_value',asc=True)
      6
      7 #save all performance of all models in para_space

~/anaconda3/lib/python3.6/site-packages/talos/commands/deploy.py in __init__(self, scan_object, model_name, metric, asc)
     32         self.save_model_as()
     33         self.save_details()
---> 34         self.save_data()
     35         self.save_results()
     36         self.save_params()

~/anaconda3/lib/python3.6/site-packages/talos/commands/deploy.py in save_data(self)
     58     def save_data(self):
     59
---> 60         x = pd.DataFrame(self.scan_object.x[:100])
     61         y = pd.DataFrame(self.scan_object.y[:100])
     62

~/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy)
    422             else:
    423                 mgr = init_ndarray(data, index, columns, dtype=dtype,
--> 424                                    copy=copy)
    425
    426         # For data is list-like, or Iterable (will consume into list)

~/anaconda3/lib/python3.6/site-packages/pandas/core/internals/construction.py in init_ndarray(values, index, columns, dtype, copy)
    144     # by definition an array here
    145     # the dtypes will be coerced to a single dtype
--> 146     values = prep_ndarray(values, copy=copy)
    147
    148     if dtype is not None:

~/anaconda3/lib/python3.6/site-packages/pandas/core/internals/construction.py in prep_ndarray(values, copy)
    247         values = values.reshape((values.shape[0], 1))
    248     elif values.ndim != 2:
--> 249         raise ValueError('Must pass 2-d input')
    250
    251     return values

ValueError: Must pass 2-d input

Thanks. This will be fixed in the next couple of days no doubt.
For the time being you can overcome this by:
t.x = np.zeros(500)
t.y = np.zeros(500)

The line of code where the issue arise is not really important even you override it this way as it merely stores a small sample of x and y data for reference purpose.

Thanks. This will be fixed in the next couple of days no doubt.
For the time being you can overcome this by:
t.x = np.zeros(500)
t.y = np.zeros(500)

The line of code where the issue arise is not really important even you override it this way as it merely stores a small sample of x and y data for reference purpose.

Appreciate it!

This is also happening while saving CNN - it is not specific to RNN.

This issue would manifest in all cases where x (or y) is not 2d. Given there can be many different data formats, it's not a straightforward thing to resolve. I have to investigate this further.

Closing here as this is already dealt with in v.0.6 onwards.


Hourly data

Hi,
Is it possible to get hourly data? (each candle is 1 hour)
Thanks.

I'll try, but first let me identify the API.

currently you can use get_chartdata
in this we are getting every second data

@chsivateja No for now
I will check if I can add


Using electron packager signing for mac desktop app has microphone and camera access issue

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
We are building the angular desktop app with electron for mac os.
Current app electron version is v4.1.3 and electron packager is v13.1.1. Our app needs to access camera and microphone. We know that mojave has strict access on microphone and camera and we already use request permission to access these. The permission window is pop up and already allowed. Running app from command line with electron is working ok. But when we are trying to package the app, we found that after packing and signing with osxSign, the app cannot access to microphone and camera on mojave. If we just simply use electron packager without osxSign, then the app is working ok and can access microphone and camera. But after signing, then cannot access to microphone and camera on mojave.
Put the console output here
{ buildVersion: '20190401.1',
  dir: './',
  asar: true,
  platform: 'darwin',
  arch: 'x64',
  appCopyright: 'Copyright © 2017 xxx Corp. All rights reserved.',
  appBundleId: 'com.xxxx.eappxxx',
  icon: 'build/resources/mac/AppIcon.icns',
  entitlements: 'build/entitlements/mas.default.entitlements',
  ignore: 'deps/cld|^/build|^/src|^/.*provisionprofile|^/out|.svn|.idea|.DS_Store',
  extendInfo: 'build/plist/info.plist',
  osxSign:
   { entitlements: 'build/plist/parent.plist',
     'entitlements-inherit': 'build/plist/child.plist',
     type: 'distribution' },
  'provisioning-profile': 'dev_distribution.provisionprofile',
  out: '/Users/xxx/xxxx/xxxx/trunk/out/dist' }
Packaging app for platform darwin x64 using electron v4.1.3

After packing and signing,
check the code sign result with command line : codesign -dv --verbose=4 xxxx.app
The signing is ok. But running the application has the issue.

So I think that the electron packager code signing has some issue on the Mojave platform.
Could someone help to take a look for this?

Thanks a lot.

I may post this issue wrong here. I think i should post in electron for this issue.


Add VBA flow Part 1

Details
Adds the Verified Bank Account flow to E.cash
For this PR I am just cleaning things up a bit and laying down some scaffolding. We will:

[x] Create a new route /bank-account/new for adding the VBA
[x] Extract the Plaid logic we need from the PBA flow so it can be used in both views
[x] Add the view for manually adding a bank account

We will not be hooking up to any APIs just yet...
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/166041
Tests

Navigate to /bank-account/new
Verify the add method selection options are shown
Select manual
Verify you can only press the button when valid account number + routing number are entered
Select Log Into Bank
Verify the Plaid widget appears
Enter chase bank info user_good pass_good + Continue
Verify the options are shown in a Picker
Select an option and enter password
Repeat Plaid steps for /add-personal-bank-account route and verify the selection screen appears + an account can be added (confirm via Web-Expensify).

Note: Testing on native/desktop is tricky atm but can be done by using a deep link for native and/or putting the navigate() method on window like this:
diff --git a/src/libs/Navigation/Navigation.js b/src/libs/Navigation/Navigation.js
index 7fe26fcf3..0abf6ddee 100644
--- a/src/libs/Navigation/Navigation.js
+++ b/src/libs/Navigation/Navigation.js
@@ -66,6 +66,8 @@ function navigate(route = ROUTES.HOME) {
     linkTo(navigationRef.current, route);
 }

+window.ecashNavigate = navigate;
+
 /**
  * Dismisses a screen presented modally and returns us back to the previous view.
  *

then calling window.ecashNavigate('/bank-account/new') from console / native debugger session
QA Steps
No QA - We will test the entire flow together at the end
Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[x] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

Still waiting on some assets but this should be ready for an initial review.

Thanks for the review @roryabraham !

Also NAB but if you wanted to Checkbox and CheckboxWithLabel would probably be good candidates to include in storybook

Fixed up a few things but I'm going to create a follow up issue for this one and a few others you've mentioned. Great stuff overall.

@MonilBhavsar gonna move forward with this one but lemme know if you have any additional comments :)

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

Thanks looks good and tests well for me considering the scope of the PR

🚀 Cherry-picked to staging in version: 1.0.68-0🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production in version: 1.0.68-4🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


feature: auto search word at cursor.

i thought about this, but decided against it. Auto search is nice but will mess up the workflow where you go to each match, edit a little, resume the search and go back the next search.
could add a new command swiper-resume

done with swiper.swiper-grep-word-at-cursor


Reimplement the model metadata console to allow dynamic visualization of realtime model performance data

Context
One of NEBA's unique features is the performant collection of performance metadata for resource models. The metadata is currently visualized in the system console (resource model metadata). This allows real-time analysis of model performance on any system and is a valuable tool for both optimizing model implementations and assessing the effect of (unsuspected) content changes on site performance.
Current implementation issues
As of 3.4.0, the visualization employs a two-dimensional graph with logarithmic axes. This approach is problematic, as collisions of models with the same coordinates (performance charactierstics) are inevitable. Also, clustering tends to hapen which furhter downgrades the quality of visualization. This makes often makes it hard to spot resource models in unfavorable performance characteristics.

In addition, the user has no means to dynamically filter the displayed models.
New implementation proposal
A better approach is to always draw one diagram per model. The diagramm shall allow immeedia recognition of unfavorable performance patterns without forcing a user to read axis values or perform calculations. For instance, D3 star plot would be an effective solution for this purpose:

A careful selection of the dimensions would allow the user to immediatly spot "odd" patterns, such as models causing to many subsequent mappings or generally taking unusual amounts of mapping time.
In addition, users should be allowed to dynamically filter the models displayed using a suitable query expression. This query expression should be validated. If possible, the user should be provided with content assist while specifying the query. This could be achieved using a suitable parser, for instance PEG.js.

Implemented and merged in https://github.com/unic/neba/pull/26 - done!


AADSTS165000: Invalid Request: The request did not include the required tokens for the user context.

➜  ~ o365 version
1.10.0
When trying to connect using:
o365 spo login https://tenantname-admin.sharepoint.com
I enter the device code and get prompted for username and password.  After entering the password I get the following error:
AADSTS165000: Invalid Request: The request did not include the required tokens for the user context. One or more of the user context values (cookies; form fields; headers) were not supplied, every request must include these values and maintain them across a complete single user flow. The request did not return all of the form fields. Failure Reasons:[Token was not provided;]
The URL at the time of the error is:
https://login.microsoftonline.com/federation/redirecttoexternalprovider

Is this a regular tenant or something specific like O365-D, government cloud, etc?

@waldekmastykarz It's a regular tenant

Did you setup anything specific regarding authentication, like MFA, conditional access, etc?

@waldekmastykarz MFA using Duo (3rd party)

I had a quick look and it seems like it's an issue with AAD rather than something specific to the CLI. Have you tried looking up the error and seeing if any of the suggestions help?

Closing due to lack of response


Unable to sync/import tiddlers with moderately long titles in cyrillic.

Full bug report here
What I think are relevant excerpts:
1.
It looks like your wiki may contain a tiddler with an extremely long name, which cannot be synced due to limits on the length of a filename in your operating system. Please reduce the length of this tiddler name and then try syncing again. The exact length allowed will depend on your operating system and the language your tiddler title is written in, but should generally not be more than 200 characters (sometimes less).
Tiddler path: /var/folders/mg/nhb03std5537jk85fwpy31_00000gn/T/tmpuynyv5zu/render/%D0%9A%D0%BE%D0%BD%D1%84%D1%96%D0%B4%D0%B5%D0%BD%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%96%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D1%96%D1%8F%20vs%20%D0%BA%D0%BE%D0%BC%D0%B5%D1%80%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%82%D0%B0%D1%94%D0%BC%D0%BD%D0%B8%D1%86%D1%8F.html
2.
Rendering "Конфіденційна інформація vs комерційна таємниця" to "/var/folders/mg/nhb03std5537jk85fwpy31_00000gn/T/tmpuynyv5zu/render/%D0%9A%D0%BE%D0%BD%D1%84%D1%96%D0%B4%D0%B5%D0%BD%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%96%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D1%96%D1%8F%20vs%20%D0%BA%D0%BE%D0%BC%D0%B5%D1%80%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%82%D0%B0%D1%94%D0%BC%D0%BD%D0%B8%D1%86%D1%8F.html"
node:internal/fs/utils:344
throw err;
^
Error: ENAMETOOLONG: name too long, open '/var/folders/mg/nhb03std5537jk85fwpy31_00000gn/T/tmpuynyv5zu/render/%D0%9A%D0%BE%D0%BD%D1%84%D1%96%D0%B4%D0%B5%D0%BD%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%96%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D1%96%D1%8F%20vs%20%D0%BA%D0%BE%D0%BC%D0%B5%D1%80%D1%86%D1%96%D0%B9%D0%BD%D0%B0%20%D1%82%D0%B0%D1%94%D0%BC%D0%BD%D0%B8%D1%86%D1%8F.html'

Sorry, I don't think there's much I can do about this – as the error message explains, it's a Windows limitation.
I will continue to consider other ways of selecting a filename for the exports (see #40 where this is also causing issues), but I'm not sure there is anything available as a TW filter other than URL encoding that's guaranteed to produce a unique name without any characters that could be illegal in filenames.


Flash and transition painter

Describtion :
(this extension has nothing to do with the existing flash extension which make objects blink)
this extension is a behavior for shape painter object, allows you to paint a color all over the screen for period of time with different effect (useful for simulate flash and transition effect).

Paint effect : Action to paint a color all over the screen for a period of time with specific effect.
the effect type is indicated with these strings as arguments :

Flash: is a monochrome color appear with fade then disappear with fade out.
Vertical : is a monochrome color comes from right side then comes back.
Horizontal : is a monochrome color come from top side then comes back.
Circular: is a circle which increases from the center and narrows.

Paint effect ended: event when the paint effect ends.

Checklist

[x] Extension has a proper name and description.
[x] Extension has tags (for example: "platform, brick, breakable").
[x] All behaviors have a description.
[x] All functions (actions, conditions, expressions) have descriptions.
[x] I confirm that this extension can be intergrated to this GitHub repository, distributed and MIT licensed.

Game file exemple :
Game.zip
Extension file :
Extension.zip
Screenshot :

This is brilliant!  I was trying to come up with ways to provide good scene transitions, but I didn't think about using a shape painter object.  Now I think it is the perfect thing for the job; it's dynamic, configurable, and doesn't require an existing object.
I love what you have done so far, especially the "Damage Here" effect.
I want to think about other possible uses for this extension to see if there are more options I would want as a user.

This is brilliant! I was trying to come up with ways to provide good scene transitions, but I didn't think about using a shape painter object. Now I think it is the perfect thing for the job; it's dynamic, configurable, and doesn't require an existing object.
I love what you have done so far, especially the "Damage Here" effect.
I want to think about other possible uses for this extension to see if there are more options I would want as a user.

thank you , what could be good is if community could bring more differents effects i just make very basic painting shapes , i mean something like we can find in video editing software

That's a nice idea to use the shape painter for such transitions :) I think we should name this extension "Transition Painter" maybe?

That's a nice idea to use the shape painter for such transitions :) I think we should name this extension "Transition Painter" maybe?

As you want , to be sincere i wasn't inspired by the name , i took first thing on my mind

I don't know if it's a bug, but the effects of one object are affecting the others, for example I created two shape painters with painter transition extension and condition
"When the X painting effect ends"
Effects all objects with the TransitionPainter

I don't know if it's a bug, but the effects of one object are affecting the others, for example I created two shape painters with painter transition extension and condition
"When the X painting effect ends"
Effects all objects with the TransitionPainter

Probably scene variables that should be moved to object variables?

Probably scene variables that should be moved to object variables?

for better exemplification

for better exemplification

Probably scene variables that should be moved to object variables?

it doesn't seem to be something related to a global variable, I have no idea for me the existing code seems ok

Probably scene variables that should be moved to object variables?

it doesn't seem to be something related to a global variable, I have no idea for me the existing code seems ok

I thought about it, and I don't know the causes, they are not scene variables because there is no scene variable, maybe you are drawing your button with the same painter, in this case that explains everything, otherwise it could be a layer or a camera issue, as the plugin uses the default camera and painter's layer, hope this helped you.

I thought about it, and I don't know the causes, they are not scene variables because there is no scene variable, maybe you are drawing your button with the same painter, in this case that explains everything, otherwise it could be a layer or a camera issue, as the plugin uses the default camera and painter's layer, hope this helped you.

ok I did a test on a new project, and those were the results

ok I did a test on a new project, and those were the results

testing on a new project and those were the results

testing on a new project and those were the results

@westboy31
I removed the paint action and look what is happening, maybe the behavior without a set timer is conflicting with the paint effect ended action

@westboy31
I removed the paint action and look what is happening, maybe the behavior without a set timer is conflicting with the paint effect ended action

First @GustavoMarciano :
very nice your example really helped me to fix the problem ;
I'm not sure the reason, but I think when you check a timer, in our case the timer of "when the paint effect ends", it automatically initializes and starts the timer, i paused the timer when creating the object and deactivated the pause when starting the behavior.

than :
I added an enhancement to the condition that detects the end of the effect, the problem was that the condition became true a little after the effect ended, I increased the value of the effect with a few milliseconds (3Delta) and decreased the same value for the condition which detects the end, so the painting effect becomes longer but the condition which detects its end is more precise, and in addition to this we have a better transition .

the game exemple of @GustavoMarciano with correction :
gameExemple2.zip
the extension with correction :
Extension2.zip

First @GustavoMarciano :
very nice your example really helped me to fix the problem ;
I'm not sure the reason, but I think when you check a timer, in our case the timer of "when the paint effect ends", it automatically initializes and starts the timer, i paused the timer when creating the object and deactivated the pause when starting the behavior.

than :
I added an enhancement to the condition that detects the end of the effect, the problem was that the condition became true a little after the effect ended, I increased the value of the effect with a few milliseconds (3Delta) and decreased the same value for the condition which detects the end, so the painting effect becomes longer but the condition which detects its end is more precise, and in addition to this we have a better transition .

the game exemple of @GustavoMarciano with correction :
gameExemple2.zip
the extension with correction :
Extension2.zip

I reworded the extensions for better consistency and prefixed the variables as described in the best practices: https://trello-attachments.s3.amazonaws.com/5fd532f01e99c97130e99fe9/5fe0e6f737cef020a42b50ba/2e9b53e7a80d374e2603bac217428c4e/Transitions.json.
I also think I found a bug, not sure if my modifications are the cause though: If I go in damage then on flash with the initial example and the updated extension, the flash finishes too early.

I reworded the extensions for better consistency and prefixed the variables as described in the best practices: https://trello-attachments.s3.amazonaws.com/5fd532f01e99c97130e99fe9/5fe0e6f737cef020a42b50ba/2e9b53e7a80d374e2603bac217428c4e/Transitions.json.

The link you provided isn't working now. Could you upload it again?
:)

Hi, I wasn't able to go through the whole extension, and only got the time to see some parts
The parameter that asks for the transition type (circular, vertical, horizontal, etc..) can be a option parameter for easier use. Also for the direction (it can be forward, backwards, both). Also, the parameter labels can be better("duration" instead of "How long time the color keep on screen.", ''End Opacity" instead of "The maximum of the opacity only for flash."). Also, I don't think full stops are needed in the parameter labels
:)

@arthuro555  you were right, the event that detects the end was wrong for the forward and the backward, I added
a condition, it works now.
I have taken into consideration @Midhil457  remarks and send you the extention and the game with corrections.
Just for "End Opacity", I kept "(only for flash )" because the opacity does not change with the other transitions.
This extension was done 9 months ago, I think at that time the option parameters were not available.
game + extention.zip

Here is my quick review:

The extension is not following the best practices. Please ensure that they are followed.
Try to make the comments more readable (no space between last word and dots, capitalize, write full sentences...)

Those are just details to keep the extension maintainable, otherwise everything looks good to me!

It's been a month without updates, I am assuming the extension has been abandoned. If the original poster does not come back or no one takes over finishing this extension, the submission will be closed in 10 days.

It must be a misunderstanding, i thought the extension was ready to be pulled, and really I don't know what to change in the extension to follow best practices.

Ah, I see, sorry for the confusion. I recommend you go through the best practices and check for each point if your extension is complying. From what I remember, at least semantic versioning + variable and timer naming conventions are not respected.

I think it's done, I made some corrections to the comments, and rename the variables and timers, from what I read they must contain specific prefixes.
TransitionPainter.zip

LGTM!

Thanks for your contribution 🥳


JS version

Hello. I made a plugin for obtaining original resin in the browser (it’s not convenient for me to do this from my phone).
But after replit became paid, my server no longer works.
I'm now trying to rewrite my program in pure JS.
This code works fine in Python, but doesn't want to work in JS.
import requests
USER_AGENT = {'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"}
cookies = {
    "ltuid_v2": _,
    "ltoken_v2": _,
    "ltmid_v2": _
}
r = requests.get("https://api-os-takumi.mihoyo.com/binding/api/getUserGameRolesByCookie", headers=USER_AGENT, cookies=cookies)
print(r.status_code)
data = r.json().get('data')
print(data.get('list'))

It says that you cannot set cookies in xhr to a third-party server.
let xhr = new XMLHttpRequest();
xhr.open("GET", "https://api-os-takumi.mihoyo.com/binding/api/getUserGameRolesByCookie", true)
xhr.withCredentials = true;
// xhr.setRequestHeader("Credentials", 'include')
// xhr.setRequestHeader("Access-Control-Allow-Origin", "https://www.hoyolab.com")
// xhr.setRequestHeader("Access-Control-Allow-Credentials", true)
// xhr.setRequestHeader("Origin", "https://act.hoyolab.com")
// xhr.setRequestHeader("Referer", "https://act.hoyolab.com")
// xhr.setRequestHeader('Cookie', 'ltuid_v2=_; ltoken_v2=_; ltmid_v2=_');
// xhr.setRequestHeader('Set-Cookie', 'ltuid_v2=_; ltoken_v2=_; ltmid_v2=_');
xhr.onload = _=>{
	if (xhr.status == 200){
		let answer = JSON.parse(xhr.response);
		console.log(answer)
	}
}
xhr.send()

Can someone help me pleeeeease

Dont use xhr request just use a normal fetch

fetch also sends requests without cookies
fetch("https://api-os-takumi.mihoyo.com/binding/api/getUserGameRolesByCookie", {
	headers: {
		Cookie: 'ltuid_v2=_; ltoken_v2=_; ltmid_v2=_'
	}
}).then(response => response.json()).then(data => console.log(data));

fetch also sends requests without cookies

fetch("https://api-os-takumi.mihoyo.com/binding/api/getUserGameRolesByCookie", {

	// credentials: 'same-origin',

	credentials: 'include',

	headers: {

		Cookie: 'ltuid_v2=_; ltoken_v2=_; ltmid_v2=_'

	}

}).then(response => response.json()).then(data => console.log(data));

It worked tour cookies are invalid, check or regenerate your cookies

It worked tour cookies are invalid, check or regenerate your cookies if that doesnt work check if you need headers like xpc

It's not working, because there are no cookies in request header.
My cookies correct, cuz it's working with Python.
What is xpc?

Chat gpt and copy the code

@SuperZombi May I ask how you are resolving CORS? Seems to be related to that.
@teehee567 Telling someone to use ChatGPT is not really helpful, especially not for debugging.

@SuperZombi May I ask how you are resolving CORS? Seems to be related to that.
@teehee567 Telling someone to use ChatGPT is not really helpful, especially not for debugging.

Mb more useful tgan saying nothing

How you are resolving CORS? Seems to be related to that.

Hmm. idk. i know that cors need to be specified on server side, to allow access from another domains.
But the problem is that the browser does not allow sending a request with cookies for another domain.

The browser does allow sending cookies but they must not be sameSite and you must explicitly say you want them sent. I'm pretty sure setting them as a header shouldn't be possible, since they can only be sent when they are actual cookies stored in the browser but don't quote me on that.

Maybe the problem that it is chrome extension for hoyolab?

OK. I finally did it.
You need to add "permissions": ["cookies"] to your manifest and create a service worker.
But now, I am faced with the question of how to correctly make a request for original resin.
I tried to understand the source code and this is what I managed to do:
import requests
UID = ""
url = f"https://bbs-api-os.hoyolab.com/game_record/genshin/api/dailyNote?role_id={UID}&server=os_euro"

USER_AGENT = {'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"}
cookies = {
    "ltmid_v2": "_",
    "ltoken_v2": "_",
    "ltuid_v2": "_",
}
r = requests.get(url, headers=USER_AGENT, cookies=cookies)
print(r.status_code)
print(r.json())

But it doesn't work:
200
{'data': None, 'message': 'invalid request', 'retcode': -10001}

I'm trying to do that in Python first, but then I'll rewrite this code in JS.

OK. I finally did it.
You need to add "permissions": ["cookies"] to your manifest and create a service worker.

background.js:

chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {

	if (request.type == "getOriginalResin"){

		for (const [key, value] of Object.entries(request.cookies)) {

			chrome.cookies.set({

				"url": "https://api-os-takumi.mihoyo.com/",

				"name": key,

				"value": value

			});

		}

		fetch('https://api-os-takumi.mihoyo.com/binding/api/getUserGameRolesByCookie')

		.then((response) => response.json())

		.then((answer) => {

			if (answer.data){

				sendResponse({...})

			}

		})

		return true

	}

});

scripts.js:

chrome.runtime.sendMessage({type: "getOriginalResin",

	cookies: {

		ltuid_v2: ltuid,

		ltmid_v2: ltmid,

		ltoken_v2: ltoken

	}

}, (response) => {...})

But now, I am faced with the question of how to correctly make a request for original resin.
I tried to understand the source code and this is what I managed to do:

import requests

UID = ""

url = f"https://bbs-api-os.hoyolab.com/game_record/genshin/api/dailyNote?role_id={UID}&server=os_euro"

USER_AGENT = {'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"}

cookies = {

    "ltmid_v2": "_",

    "ltoken_v2": "_",

    "ltuid_v2": "_",

}

r = requests.get(url, headers=USER_AGENT, cookies=cookies)

print(r.status_code)

print(r.json())

But it doesn't work:

200

{'data': None, 'message': 'invalid request', 'retcode': -10001}

I'm trying to do that in Python first, but then I'll rewrite this code in JS.

You need xrpc headers if you join the discord you can get faster responces from more people btw. Anyway there are only 3 headers you need or you can copy from genshinpy default headers
  headers.insert("x-rpc-app_version", HeaderValue::from_static("1.5.0"));
        headers.insert("x-rpc-client_type", HeaderValue::from_static("5"));
        headers.insert("x-rpc-language", HeaderValue::from_static("en-us"));

You need xrpc headers

Tnx. Now the final code is:
USER_AGENT = {
    'User-Agent': "_",
    "x-rpc-client_type": "5",
    "x-rpc-app_version": "1.5.0",
    "ds": generate_dynamic_secret()
}

and i need to translate this function to JS 💀.

IT WORKS! Thanks everyone for help

 generate_dynamic_secret function in JS
function generate_dynamic_secret(salt="6s25p5ox5y14umn1p61aqyyvbvvl3lrt"){
	let t = Math.floor(Date.now() / 1000);
	let r = Array.from({ length: 6 }, () => Math.random().toString(36)[2]).join('');
	let data = `salt=${salt}&t=${t}&r=${r}`;
	let hash = MD5(data);
	return `${t},${r},${hash}`;
}


Add character:  to font:

Added character: <U> to font: <Block>.
Here is the output:

Referenced Issues
closes #1120

Thanks for your contribution <3


include devDependencies

Include devDependencies in package.json to make it ready to use out of the box

@zdolny you are correct, it makes sense. I will add that. Thanks for raising an issue.

@zdolny Issue has been resolved with the second release. FYI https://www.npmjs.com/package/npm-build-boilerplate.


Helmcharts not easy to consume, missing logic in processing one of Localization, Configuration or Resource

I would like to have objects 'feeding' each other like so
ComponentVersion -> Localization -> Configuration -> FluxDeployer
Where

Localization localizes values.yaml of a helm chart in my Component
Likewise for Configuration
FluxDeployer sets up the install of my helm chart

This doesn't work because Flux/Helm require that helm charts be in a namespaced repo instead of the being at the root of the registry.
The helm-controller complains about a 404 due to the path it is looking for not existing.
Currently this can be worked around by changing the above to be
ComponentVersion -> Localization -> Configuration -> Resource -> FluxDeployer
where Resource has
extraIdentity:
helmChart: my-helm-chart-name
So the first question, why can't placement of extraIdentity on Configuration have the desired effect?
Second problem is, even after introducing a Resource as described above the deploy fails because the only tag in the repo is 'latest'.
Helm controls that no tags were found in the repo.
This is because Flux/helm require that the tags match a strict semver check and 'latest' doesn't pass this.    I don't understand why the tag is 'latest' when my ComponentVersion is festooned with version info.    Why can't one of those version numbers be utilized?
You can hack around this by adding a version spec on the resource like so
sourceRef:
kind: Configuration
name: *name
resourceRef:
name: chart
version: "1.0.37"
Of course this isn't maintainable so this isn't a solution that one can live with.
And in any case, even adding the version still doesn't give you something that actually is usable.   This because the Resource is picking up the helm chart from the ComponentVersion instad of the Snapshot created from the Configuration.   Comparing resource_controller.go  and localization_controller.go ( see the findObjects func ) provides an idea of why Resource is not producing the desired results.
I can try and work around all of this by adding

HelmRepository and HelmRelease to my component, and
Changing Localization and Configuration to update HelmRepository and HelmRelease instead of my helm chart
Of course the HelmRelease would have a values section that would receive the config updates.

This is what the ocm demo here is doing.   However the problem with this approach is that I am now assuming that ops is using Flux for deploying my service.   I can accept the assumption that helm and ocm are in use but assuming Flux is too much.
Anyhoo as it stands at the processing of at least of the types Localization, Configuration or Resource needs to be changed in order to make it easier to consume helm charts as part of an ocm component.
I'll attach my component.yaml and the manifest file with the ComponentVersion etc.

config.yaml.txt
ocm-manifest-for-ops.yaml.txt
component.yaml.txt

@Skarlso , although only starting officially on Friday, maybe you can have a first look at this issue (#353, #354, #355 and #357 are related to the same scenario Dan's testing)?

Resource is a standalone thing. I'll have to read this again to figure out what you are looking for.
Please include the setup you are trying to attain / test in yaml format.
You don't need the Resource object for Helm Charts. You should be able to define the resource for Configuration or Locatlization. The Resource is only used if you don't want to do any of the two others ( Loc or Conf ).

Hey @Skarlso
component-and-config.zip
I have attached component-and-config.zip which contains :

component.yaml  :  Component description.   Note the helm-chart included as a dir resource
cluster-config.yaml : Manifest file with ComponentVersion, Localization, Configuration, FluxDeployer

These should be the file versions I was using when I first ran into problems.   Obviously with these files I was hoping my helm chart would be installed.   However additional goals were

component.yaml and helm chart are in git repo owned by the team owning the component
cluster-config.yaml is in git repo owned by the team that owns the landscape/cluster definition
the team owning the component should only need to work with their helm chart and component description.   That is, whether the team owning the landscape/cluster definition is deploying the helm chart with argocd or flux or anything else is an implementation detail hidden from the component team
avoid involving kustomize, helm should be sufficient
the helm chart should be able to be local to the component.  This as opposed to being stored in a separate helm repository

The attached almost worked.   Using crane I could see that localization and configuration worked and a helm repo and helm release were created.    However helm was unable to use the output from the localization because it requires a chart be in a namespace repo.
This work around was put in place to make helm happy by adding a namespace to the repo in the case that an extra 'helm' identify has been added to the resource.   However as I mentioned in the description above the only way to trigger this work around is to use a Resource.
And as stated above, even if you do this you still don't get something that works for the other reasons I mentioned in the initial description.

Hm, can you provide something that I can use to reproduce your problem locally?

From the component it looks like your chart resource isn't a chart resource. It's just a tarred up folder. You need to define a helmChart type resource in order for it to be handled as a helm chart.

Hey @Skarlso
That doesn't work because then

The chart is in a separate repo, which is something we don't want
Localization isn't able to work on it
Output tag from localization will be 'latest' and helm is unwilling to consume that

I think it should be pretty easy to the scenario we want to have work.   This by either

Making it so that I can make it so the output from localization is consumable by helm, or
Making it so that when I have Localization -> Resource,  Resource actually outputs the resource from the localization rather than getting the unlocalized resource from the ComponentVersion.

Localization already has an output snapshot. 🤔 There is no point on having a Resource after localization.
I'm still not sure what you are trying to accomplish. If the resource is not marked as a helm chart it will not be handled as a helm chart. We can't detect if it's a helm chart otherwise.

The chart is in a separate repo, which is something we don't want

I'm not sure I follow this. Can you elaborate what your mean by separate repo? And you "don't want that"?

For reference, here is a working helm chart example https://github.com/Skarlso/ocm-helm
I'll analyze the rest of the issue later. :) Not sure about that latest tag thing. :D

In the attached image I have circled in red the extra repo.
The problem with the extra repo is that then we have to negotiate with the teams managing the various repositories we have to work with to request permission for 2 repositories instead of 1.   Basically it will double the 'paperwork' involved in getting this to work.

Hey @Skarlso
Is that sample actually working?   I see there is a Localization but I don't 'backend-end-config' definition anywhere.
Btw, in my case Localization and Configuration are updating the values.yaml of the helm chart.   Not sure if that is clear with the data I provided so far.
As stated in the bug description, to get something to work for my PoC I followed the ocm-setup-demo.   Of course that deviates from our use case quite a bit so isn't something we would actually adopt.

ocm-setup-demo was waaaay before we started supporting helm chart so that "cheats" a bit by doing some manual things with the charts and preloading them. :)
uh, it used to work. 🤔  but we changed to cue lang for values. So you're probably right that the values file things no longer works. We ran out of time to update and samples sadly.


New Feature if Receiver is shut off

Hi, is it possible to get a propertie if the set top box isn´t reachable, that will be shown as false in Homekit?

HomeKit Shows „no answer“ when the Receiver is Not reachable?!?!

It is correct

Yes in the dreambox plugin, there is possiblilty to overwrite this behavior with false?

This can be done but is not correct behavior, so I close this.


Gitrob results

I ran gitrob against the repository and got the following results if you wanted to include them in the benchmark.

Great, thanks! I'm working on getting some better setup around benchmarking, so I can get these results integrated in once I've done that.


[Bug]: Default path behaviour is incorrect in SvelteKit adapter

Package
lucia-auth
Describe the bug
#1301 added a default path of '' to the SvelteKit adapter, since path is now a required option. In the process I believe it introduced a bug.
The intent of the PR as I understand it was to reinstate the default behaviour of browsers when no Path is specified in the Set-Cookie header, which is described in RFC 6265:

The user agent MUST use an algorithm equivalent to the following algorithm to compute the default-path of a cookie:

Let uri-path be the path portion of the request-uri if such a portion exists (and empty otherwise).  For example, if the request-uri contains just a path (and optional query string), then the uri-path is that path (without the %x3F ("?") character or query string), and if the request-uri contains a full absoluteURI, the uri-path is the path component of that URI.
If the uri-path is empty or if the first character of the uri- path is not a %x2F ("/") character, output %x2F ("/") and skip the remaining steps.
If the uri-path contains no more than one %x2F ("/") character, output %x2F ("/") and skip the remaining step.
Output the characters of the uri-path from the first character up to, but not including, the right-most %x2F ("/").

So for a path like /a/b/c, the default path is /a/b (at least in most browsers, though hopefully that's no longer an issue for anyone that doesn't care about Internet Explorer). This is a somewhat confusing default that few people are aware of.
Of course, browsers do not in fact appear to respect step 2 — an empty string aka Path= is treated as 'unspecified', while any path that doesn't begin with / seems to be treated as malformed and thus discarded altogether.
In other words, it's a mess of ambiguity, which is why SvelteKit 2 requires you to set the path option explicitly. Since it's helpful to be able to use relative paths, SvelteKit will resolve the path before setting the cookie. And since '' relative to any URL x is identical to x...
new URL('', any_url).href === url.href; // true

...the empty string means 'the current path', not the browser default behaviour that you want to preserve. To do that, you'll need the snippet of code that we removed from SvelteKit:
const default_path = event.url.pathname.split('/').slice(0, -1).join('/') || '/';
event.cookies.set(cookie.name, cookie.value, { path: default_path, ...cookie.attributes });

To be honest I don't fully understand why you're trying to preserve that default when you already set a default path of / here:
https://github.com/lucia-auth/lucia/blob/625350e1dba70c68a7eb47ec792b768bb7353741/packages/lucia/src/auth/cookie.ts#L20-L23
I would have thought that you'd want to use that default in the absence of an override. Unless the expectation is that people will call a middleware's setCookie with something other than the result of calling createSessionCookie? In that case there's another inconsistency between SvelteKit and other frameworks, in that we (unlike some others) set secure and httpOnly to true by default (similar to createSessionCookie, except that it can be overridden if necessary).

Thanks for the bug report. Seems like I mistakenly assumed an empty string would mean SvelteKit would not set a Path attribute.

Unless the expectation is that people will call a middleware's setCookie with something other than the result of calling createSessionCookie?

Yes, since that's just easier to work with

We (unlike some others) set secure and httpOnly to true by default (similar to createSessionCookie, except that it can be overridden if necessary)

This isn't a big issue since the types are still the same, and Lucia always set HttpOnly and Secure flag (for prod)

Not sure I follow — you're saying that people will call setCookie directly but also that Lucia will override httpOnly and secure? I couldn't see in the code where that happens.
I'm still not sure how to reconcile your "I'd expect it to work exactly like how HTTP cookies would" statement with the decision to forcibly override httpOnly and secure, but that's just me :)

Oh no, my bad - setCookie() is only intended to be used to set Cookie returned by createSessionCookie(). However, Cookie is a generic interface that can represent any cookie, not just session cookies, so setCookie() should be able to handle all cookies (including those where Path attribute is undefined).

I don't think I follow either 😅. setCookie() just sets a cookie represented by a generic interface Cookie. It doesn't override attributes or anything. The Cookie passed to it can be anything, not just session cookies, including those where the Path attribute is absent.

In that case the behaviour will differ between frameworks, because SvelteKit defaults secure and httpOnly to true while other frameworks don't


Loki 3.0 upgrade issues

Issue description
Major new release 6.x of Loki helm chart, linked to new Loki 3.0, contains breaking changes. Loki installation procedure need to be reviewed.
The new helm chart requires an schema_config to install loki. 5.x helm chart provides a default schema_config.
Error: execution error at (loki/templates/validate.yaml:40:4): You must provide a schema_config for Loki, one is not provided as this will be individual for every Loki cluster. See https://grafana.com/docs/loki/latest/operations/storage/schema/ for schema information. For quick testing (with no persistence) add `--set loki.useTestSchema=true`
helm.go:84: [debug] execution error at (loki/templates/validate.yaml:40:4): You must provide a schema_config for Loki, one is not provided as this will be individual for every Loki cluster. See https://grafana.com/docs/loki/latest/operations/storage/schema/ for schema information. For quick testing (with no persistence) add `--set loki.useTestSchema=true`

It can be fixed provided schema_config configuration.
# Storage Schema
loki:
  storage:
    schemaConfig:
      configs:
      - from: 2024-04-01
        store: tsdb
        index:
          prefix: loki_index_
          period: 24h
        object_store: s3
        schema: v13

This config uses Loki's TSDB index schema which it is the recommended from Loki v2.8.
Old helm charts (previous to 3.0) were providing the following default schemaConfig value:
schema_config:
      configs:
        - from: 2022-01-11
          store: boltdb-shipper
          object_store: {{ .Values.loki.storage.type }}
          schema: v12
          index:
            prefix: loki_index_
            period: 24h

By default, if no schemaConfig was providing, schema config used was boltdb-shipper


Emphasize configuration location for oh-my-zsh installation instructions

See https://github.com/spf13/cobra/issues/1534 for motivation.

I think https://github.com/zsh-users/zsh-syntax-highlighting/pull/870 supersedes this; it makes it easier to update config without manually updating the .zshrc file.


The "Run Test at Cursor" should save the file and rediscover tests before executing

Behaviour
The "Run Test at Cursor" command doesn't save the file first.
Expected vs. Actual
Two notable things happen when this command is executed immediately after making changes to the test in which the cursor lies:

The changes you just made will not be executed.
If this is the last test in the file, and you've added lines at the end of the file and the cursor is in one of the new lines, the test doesn't execute at all because "the cursor is not inside a test".

The command should save the file and wait for test discovery before checking the cursor position to decide which test to run.
(I am using Pytest)
Steps to reproduce:

Create a test file and create two unit tests. Save the file.
Add a new line in the top unit test. Do not save the file. Put the cusor on the first line of the test and execute the command. This new line will not have run.
Execute the command again. The line you added will be included.
Go to the second unit test in the file. Add a line. Do not save the file. Leave the cursor on that line. Execute the command. You'll observe the test does not execute at all.

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.8.10
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Default

languageServer: "Pylance"
linting
• flake8Enabled: true
• flake8Path: ""
• mypyEnabled: true
• mypyPath: ""
formatting
• autopep8Args: ""
• autopep8Path: ""
testing
• pytestEnabled: true

</p>
</details>

@connor4312 Should this be handled by the extension or core? since the command is provided by core, I think we directly get a run instance. Also, the behavior might apply to all languages.

Currently, when this action is executed, we do not save the file prior to discovering the tests to execute (only once we have the tests to run and starts forming the "run" request.) I dislike the idea of triggering the refreshHandler since this has the potential to be expensive.
If we save the document, will the Python extension trigger discovery on it, and is there a way it can signal its discovery is complete? For example, core could wait until all the TestItem.busy states for tests in the document URI are false.

We have a configuration to auto-detect on save (which is on by default). And we do indeed set the TestItem.busy when we start discovering.

Cool, I will try to solve this in core then.


Implement limited MegaLinter autocorrect for YAML

💡 Summary
There is an existing workflow that uses MegaLinter for linting YAML files.  Some of the issues that it detects are borderline trivial (e.g., no extra spaces at the end of a line) and can be autocorrected by MegaLinter.  This issue is about testing and possibly implementing the autocorrect feature for a limited number of YAML linting rules.
This issue is part of an epic:  https://github.com/cisagov/ScubaGear/issues/819
Motivation and context
This would be useful because it would save developers from the time and hassle of constantly fixing trivial issues themselves.
Implementation notes

Learn how MegaLinter implements autocorrect
Verify that MegaLinter has the ability to autocorrect some linting rules but not all
Modify existing YAML lint workflow to include the autocorrect feature
Document which rules are autocorrected
Test, test, test
If the testing is successful, implement the changes in the workflow.

Acceptance criteria
How do we know when this work is done?

[ ] The YAML lint workflow can autocorrect a limited set of linting rules.

MegaLinter is using yamllint under the covers.  Yamllint does not provide any capability to autofix the linting errors that it reports.  MegaLinter has the ability to fix them, but it is all or nothing.  There is no capability to say "fix this type of error" but not "that type of error".
There are other tools that are YAML fixers.  At least one that I found is configurable:
https://github.com/lyz-code/yamlfix/tree/main
https://lyz-code.github.io/yamlfix/#auto-configure-through-pyprojecttoml
Options on how to proceed:

Skip it!  Autofixing is not important, especially since there are VSCode extensions that do this easily.
Go for it!  Let's let MegaLinter do whatever it wants.  What could possibly go wrong autofixing everything!?
Find a fixer!  Do some research on the various YAML fixers that are out there and see if there is one that can be configured like we want and plays nicely with GitHub Actions.

@schrolla 's thoughts:  "Given the fact that this would require more tooling beyond MegaLinter and the fact that pre-commit seems to be working well (for me).  I'd rather push toward a pre-commit build to handle autofixes for basic things and push devs to use it locally."
Therefore, I am closing this issue for now.  If we find later that pre-commit (or VSCode extensions) are not effective, we can open this back up.


release binary does not embedded version

I had just mistakenly taged before pulling latest commits to the main branch.


How to get location of data after IncludeFile()

I'm struggling to use Metaflow in my project to use it on AWS. In the project, I use lmdb package to store and load images from .mdb files. Each data set is written in binary files data.mdb and lock.mdb. To load the data, we have to pass the directory containing these two files to lmdb.open() function and there's no other way to use the package at the moment. However after using IncludeFile() I have these two files in object fields and they are stored somewhere on s3 in the directory that I can find.
Is there any way to dump data from self to a directory in a correct format? Or should I approach the problem differently? For example, I could get the path on a target docker of the cached data sets but I don't know how to look for it
Thanks

Sorry if the question wasn't clear enough. Somehow I can't use the last solution you wrote, because I can't dump this object to file like that. Maybe some pickling would help but it may have other problems.
The idea of utilizing s3 bucket is simple and good enough. I didn't get this idea on my own, I have to get used to AWS. I solved my problem uploading data to s3 in local @step and downloading it in @batch @step.
Thanks


Lag when shift-click crafting with Crafting Grid

Issue description:
This may not be fixable easily, but when I craft a bunch of modded blocks (Tiny Progressions bone block, Extreme Reactors reactor casing, Mystical Agriculture inferium block, etc) with shift-click on the crafting grid, the server lags for a while; a couple times it has lagged for over 40 seconds.
NOTE: I have tested with vanilla blocks (gold, iron, diamond) and this has not occurred.
What happens:
Lag
What you expected to happen:
No lag
Steps to reproduce:

Craft a lot of blocks (iron, gold, diamond, etc)

Version (make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>1
Refined Storage: 1.2.25

Does this issue occur on a server? yes
If a (crash)log is relevant for this issue, link it here:
This is happening in SkyFactory 3.0.10

missing profling report

Sorry, didn't know how to do that. Looking through issues allowed me to figure it out, but I suggest that you add the link to that one thread into your response in the future. :)
Here is a profiling report.

Just noticed, some other things, like vanilla spider eyes, are doing this too.

Here is another report, this time using bones to Tiny Progressions bone blocks. From what I can understand from my very limited and literally picked up about ten minutes ago understanding, most of the overhead is coming from your ExternalStorage.detectChanges() method? I'm going to try doing it with something that isn't in my bank of drawers.

Looking at this report, this time converting dirt to compressed dirt, it seems that the most lag is coming from ItemStorageCache.remove().

Oh, now I managed to get a
stall report about this. Just thought it might be helpful.

This lag is caused by #1245.


State dependencies for bosh create-env in README

Should help avoid eg https://github.com/EngineerBetter/concourse-up/issues/55

LGTM 👍


Apictl tool issue with enabling the APIM hashing

Description
Tested the some apictl commands as per the customer issue and getting some errors with the apictl tool.The APIM version is 4.0.0 and the apimctl tool version is 4..0.4. We have tested the below command with enabling the OAuth2 token hashing to protect OAuth2 keys according to the customer cenario. To enable the token hashing, the below config is added to the deployment.toml file.
[apim.oauth_config]
enable_token_hashing = true
Using the apictl tool tool performed the get command at first time the “./apictl get apis -e dev -k --verbose” command is given the results without any issues. But on the second attempt it will fail.
Steps to Reproduce
To create the environment -: dev :
./apictl add env dev --apim https://localhost:9443/
To login to the dev environment :
./apictl login dev -u admin -p admin -k --verbose
Get apis from the environment -:
./apictl get apis -e dev -k --verbose
Affected Component
APICTL
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Quoted from internal discussion:
As per our analysis, clientId and clientSecret are given to a particular user only once when token hashing is enabled, and they are saved in the keys.json file. The saved entry is deleted when the user logs out. If the user wants to log in again, [1] is returned from the DCR endpoint, and APICTL saves the BASE64 encoded value of it in the keys.json file as the clientSecret value.
When the user attempts operations such as "apictl get apis -e dev -k --verbose," the BASE64 encoded value of [1] is used as the clientSecret, causing these problems. However, this behaviour is expected when token hashing is enabled because, according to [2], we must copy and save it for later use.
Solution
After logging into the system for the first time using a particular user credential, content related to the user in the keys.json should be backed up. When attempting to log into the system using the same user, the backed-up content should be mounted to the keys.json file under the user-related content.
[1] "{"hash": "Some Value", "algorithm": "SHA-256"}"
[2] The Consumer Secret value is displayed in plain text only once. Therefore, be sure to copy and save it for later use. ( Source: https://is.docs.wso2.com/en/latest/guides/access-delegation/oauth-token-hashing/#configure-the-service-provider )


Make a consistent scrollbar across all pages

🎇 Description
Make a consistent scrollbar across all pages
we need to modify the scrollbar across all HTML pages
🖼 Screenshots
No response

@KiranAminPanjwani please assign me this issue

@KiranAminPanjwani please review my PR #119 and merge it.


⚠ Turnos 24x7 has degraded performance

In 776c3f7, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 969 ms

Resolved: Turnos 24x7 performance has improved in a1a2560.


Fix ServerConnect using the wrong trigger type

and fix triggering on singleplayer worldjoin

oops, fixed in 2bffbcf. Sorry :smiley:


Add Fuzzy matching + Highlighting

https://github.com/ssleptsov/ninja-keys/issues/16
https://github.com/ssleptsov/ninja-keys/issues/17

This ended up being more complicated than expected.
I'm leaning towards
https://github.com/jhawthorn/fzy.js simply due to syntax and it's lightweight. Most are old, bloated, or both.


Check and remove MariaDB 10.x fake prefix in version

MariaDB 10.x has a replication hack that sends a prefixed version 5.5.5- in the handshake. e.g. 5.5.5-10.6.6-MariaDB
Check the replication hack and remove fake prefix in ServerVersion#parse.
Consider adding a boolean property to ServerVersion to check if the server is MariaDB instead of just checking via capabilities.
See also r2dbc-mariadb does

for future ref

https://jira.mariadb.org/browse/MDEV-4088


Add plotting scripts and automate running them

First go at automatically running scripts on deployment.

Initial conversion from template and adding some plotting code.


models.device.pin_to_release not working

Version of balena-sdk-python: 15.0.2
Version of python: Python 3.12.2
When I run balena.models.device.pin_to_release(device_uuid, int(release_id)) I got back
Request error: "No fields to update" 400

Using the api with the same data worked just fine.
import requests
        url = f'https://api.balena-cloud.com/v7/device(uuid=\'{device_uuid}\')'
        headers = {
            'Content-Type': 'application/json',
            'Authorization': f'Bearer {self.auth_token}'
        }
        data = {"is_pinned_on__release": int(release_id)}
        response = requests.patch(url, headers=headers, data=json.dumps(data))

Hello thanks for your reporting. Today one customer was able to find a reproduction of this and we figured it out this was actually coming from a bad cache of the API underlying version on balena.cfg. In fact, this version should not be accounted from the settings cache. We are working on a fix for the next version


Dependency problem

You need to set
compile "com.google.android.gms:play-services-base:9.8.0"
compile "com.google.android.gms:play-services-maps:9.8.0"

to
compile "com.google.android.gms:play-services-base:9.+"
compile "com.google.android.gms:play-services-maps:9.+"

not to receive DexException: Multiple dex files define Lcom/google/android/gms/common/api/zza; if other package also use them.

you might have needed a ./gradlew clean and the problem solves itself.


Crafting Sorting (Question)

Good, I would like to know if there is a way that when having several recipes of the same item or processing of item (like cooking sand), it is possible that when requesting 800 pieces of glass (For example) the processing of those 800 pieces is distributed by all The crafters that contain that recipe?

Yes its possible in 1.11.