CIP-0031 Reference Inputs

cardano-node related PR:
#3810
info
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0031
AC1 Possible to reference a transaction input allowing looking at it without spending it

[ ] Reference an input, check that the input is not consumed
[ ] Reference an output that is also a regular input of the same transaction (does cli option order affect the outcome) Important: Check if the cli option order affects the outcome and if meaningful error messages are returned
[ ] Reference spent outputs - Expect Failure (with meaningfull error message)
[ ] Reference an invalid input - Expect Failure (with meaningfull error message)

AC2 Outputs can be referenced multiple times, so we have non-interference even under heavy usage of referencing.

[ ] Reference the same input multiple times for a single transaction (no duplicates should arise in TxInfo)
[ ] Create a single UTXO with data to be used in multiple subsequent transactions, but only pay the cost for submitting it once.
[ ] 2 different transactions can fetch the same reference input in the same block (best effort as we don't have control in how the txs are included in blocks)

AC3 Scripts with old versions cannot be spent in transactions that include reference inputs, attempting to do so will be a phase 1 transaction validation failure.

[ ] Spend an old version script in a transaction that includes a reference input - Expect Failure (with meaningful error message)

AC4 A transaction must always spend at least one UTXO, and UTXOs can only be spent once.

[ ] Try to reference an input without spending any UTXO - Expect Failure (with meaningful error message)

AC5 Spending conditions on referenced outputs are not checked

[ ] referencing a utxo that has datum hash attached and at script address without attaching the script
[ ] referencing a utxo that is at a vkey address and the transaction is not signed by the associated skey

AC6 Plutus can see everything available in an Alonzo tx: value, tokens, datum hash - Plutus script required

[ ] Reference an input and run a Plutus script validating that it has visibility of it (to prove that a utxo created pre-Vasil can be referenced and is useful to Plutus)

AC7 the new cost model is respected

[ ] check that the cost provided by the CLI for storing and TX fee is accurate (respects the cost model)

AC8 new CLI commands/parameters

[ ] the new parameters/CLI commands have an option to display the output in JSON format
[ ] the new parameters/CLI commands have an option to export output to file (in JSON format)

cardano-node related PR:
#3810
info
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0031
AC1 Possible to reference a transaction input allowing looking at it without spending it

[ ] Reference an input, check that the input is not consumed
[ ] Reference an output that is also a regular input of the same transaction (does cli option order affect the outcome)
[ ] Reference spent outputs - Expect Failure

AC2 Outputs can be referenced multiple times, so we have non-interference even under heavy usage of referencing.

[ ] Reference same input multiple times for single transaction (no duplicates should arise in TxInfo)
[ ] Create a single UTXO with data to be used in multiple subsequent transactions, but only paying the cost for submitting it once.

AC3 Scripts with old versions cannot be spent in transactions that include reference inputs, attempting to do so will be a phase 1 transaction validation failure.

[ ] Spend an old version script in a transaction that include a reference input - Expect Failure

AC4 A transaction must always spend at least one UTXO, and UTXOs can only be spent once.

[ ] Try to reference an input without spend any UTXO - Expect Failure

AC5 Spending conditions on referenced outputs are not checked

using a reference input whose output contains a data hash, but the datum is not in the witness set
using a reference input whose output contains a data hash, and the datum is in the witness set

@dorin100 for AC2 - can we also make sure that 2 different transactions can fetch the same reference input in the same block?

@dorin100 can we please add an AC to create a reference input? Also, test the UTxO deposit and what happens with the native tokens - if all works as expected.
Also, please add another AC to check if the cost provided by the CLI for storing and TX fee is accurate.
And finally, a new AC to test if a user can destroy a reference input and recover the storage deposit back.
Thanks!

@dorin100 how can we test the following? This ACs shall apply to all CIPs, shall we add to each one of is enough to add to one of the CIPs ACs? Thanks

CLI has JSON output available
CLI has the option to export output to file

@dorin100 can we please add an AC to create a reference input?
I think any new input can be referenced so in that case this would be covered

Also, test the UTxO deposit and what happens with the native tokens - if all works as expected.

this should be simple regression as here there will not be any new functionality; if that is the case, we already have automated tests for this

@dorin100 can we please add an AC to create a reference input?

I think any new input can be referenced so in that case this would be covered

My understanding is that Reference Input is a special type of input. Can you please double-check?
From CDDL I can see:
transaction_body =  { 0 : set<transaction_input>    ; inputs  ...        , ? 16 : set<transaction_input> ; reference inputs  }

@dorin100 can we please add an AC to create a reference input?

I think any new input can be referenced so in that case this would be covered

My understanding is that Reference Input is a special type of input. Can you please double-check?
From CDDL I can see: transaction_body = { 0 : set<transaction_input> ; inputs ... , ? 16 : set<transaction_input> ; reference inputs }

good point;
@james-iohk, @Jimbo4350 do you have more details about this?

a new AC to test if a user can destroy a reference input and recover the storage deposit back.

I feel I don't understand this; IMO an input can be consumed/spent and in that case, it will not be available anymore (to be referenced)
I am not aware of any new type of deposit --> do you have more details about this, maybe I missed something...?

@dorin100 how can we test the following? This ACs shall apply to all CIPs, shall we add to each one of is enough to add to one of the CIPs ACs? Thanks

CLI has JSON output available
CLI has the option to export output to file

I will add this to any thicket as there will be different cli commands.
thank you

a new AC to test if a user can destroy a reference input and recover the storage deposit back.

I feel I don't understand this; IMO an input can be consumed/spent and in that case, it will not be available anymore (to be referenced)
I am not aware of any new type of deposit --> do you have more details about this, maybe I missed something...?

Destroy is not the correct nomenclature. Basically, the AC is the following:
Given I am a dapp developer
When I no longer need to use a reference input
Then I should be able to consume the UTxO containing the reference script and get the storage deposit back.

a new AC to test if a user can destroy a reference input and recover the storage deposit back.

I feel I don't understand this; IMO an input can be consumed/spent and in that case, it will not be available anymore (to be referenced)
I am not aware of any new type of deposit --> do you have more details about this, maybe I missed something...?

Destroy is not the correct nomenclature. Basically, the AC is the following:
Given I am a dapp developer When I no longer need to use a reference input Then I should be able to consume the UTxO containing the reference script and get the storage deposit back.
Can you please add such an AC to all CIPs, please? Since all will share the same mechanism.
Thank you!

My understanding is that when you don't need the reference input anymore, you consume/spend it and that is all (I am not aware of any storage deposit and I don't remember reading about it anywhere). Based on what did you create this expectation?

From CDDL I can see: transaction_body = { 0 : set<transaction_input> ; inputs ... , ? 16 : set<transaction_input> ; reference inputs }
This tells me that inputs and reference inputs are both the same type, a set of transaction ids and indices.
Afaik any utxo can be referenced regardless of how or when it was created. The executing script must be V2.

@dorin100 can we add: It shall be possible to review a reference script using the transaction view command - please


Fix a small typo in protocol.md

The parameters are for the document to format and not to rename.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@rcjsuen, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot


optimizations

logical updates to make codebase more pythonic. updates pre commit hook so that isort complies with black formatting standards, preventing potential issues

Thanks for this PR. I have just skimmed it but in general think the changes are good. I'm not sure how the other maintainers feel about some of them, e.g. the use of suppress, so I'd like to hear their opinion first.
The change regarding _extracted_from_save_29 should probably be reverted: This is a hot part of the code that'll probably change 5 times in the next month or so.
And just something for the future: This kind of change is appreciated but please open an issue first and quickly describe your intent. This way we can ensure that there is no wasted effort.

sounds good I've reverted _extracted_from_save_29
Ok sorry about that going forward I'll create and issue or address an existing issue :)

@seanabreau Are you still working on this?

Closing due to inactivity.


[Bug]: file base64 data updating to {} after multiple files are selected and removed any one file from Filepicker

Is there an existing issue for this?

[X] I have searched the existing issues

Description
when I select multiple files in filepicker and remove one file and try to access filepicker.files[0].data  then data is {}
Steps To Reproduce

add filepicker with more than one file
select multiple files
remove one file
try to access filepicker.files
data is blank inside array of files

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
v1.9.55-SNAPSHOT

@Nikhil-Nandagopal is there any workaround you can suggest ?

@vishalbende I'm not able to reproduce this. Can you create a public app showing this behavior?

Checkout data inside objects  should be base64 string .. happening after removing one selected file

Here he the public application link
https://app.appsmith.com/app/filepicker-issue/page1-657b49c49e573524db05cb35

@Nikhil-Nandagopal  How to replicate ?

@vishalbende thanks I'm able to reproduce it now.


lxc.rootfs.path not recognized once starting container

Required information
lxc.rootfs.path not recognized once starting container

Distribution: RHEL
Distribution version: 7
The output of "lxc info" or if that fails:
lxc c1<PHONE_NUMBER>2917.707 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1 cgroup already existed
lxc c1<PHONE_NUMBER>2917.707 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.707 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-1 cgroup already existed
lxc c1<PHONE_NUMBER>2917.707 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.707 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-2 cgroup already existed
lxc c1<PHONE_NUMBER>2917.707 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.707 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-3 cgroup already existed
lxc c1<PHONE_NUMBER>2917.707 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.708 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-4 cgroup already existed
lxc c1<PHONE_NUMBER>2917.708 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.708 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-5 cgroup already existed
lxc c1<PHONE_NUMBER>2917.708 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.708 WARN     cgfsng - cgroups/cgfsng.c:cgroup_tree_create:1157 - File exists - The /sys/fs/cgroup/cpuset//lxc.monitor.c1-6 cgroup already existed
lxc c1<PHONE_NUMBER>2917.708 ERROR    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1264 - Failed to create cgroup "(null)"
lxc c1<PHONE_NUMBER>2917.708 ERROR    cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1143 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.monitor.c1-7"
lxc c1<PHONE_NUMBER>2917.709 ERROR    cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1143 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.payload.c1"
lxc c1<PHONE_NUMBER>2917.711 ERROR    utils - utils.c:lxc_can_use_pidfd:1834 - Kernel does not support pidfds
lxc c1<PHONE_NUMBER>2917.713 ERROR    dir - storage/dir.c:dir_mount:152 - No such file or directory - Failed to mount "/var/lib/lxd/containers/c1/rootfs" on "/usr/lib64/lxc/rootfs"
lxc c1<PHONE_NUMBER>2917.713 ERROR    conf - conf.c:lxc_mount_rootfs:1256 - Failed to mount rootfs "/var/lib/lxd/containers/c1/rootfs" onto "/usr/lib64/lxc/rootfs" with options "(null)"
lxc c1<PHONE_NUMBER>2917.713 ERROR    conf - conf.c:lxc_setup_rootfs_prepare_root:3187 - Failed to setup rootfs for
lxc c1<PHONE_NUMBER>2917.713 ERROR    conf - conf.c:lxc_setup:3286 - Failed to setup rootfs
lxc c1<PHONE_NUMBER>2917.713 ERROR    start - start.c:do_start:1232 - Failed to setup container "c1"
lxc c1<PHONE_NUMBER>2917.713 ERROR    sync - sync.c:__sync_wait:41 - An error occurred in another process (expected sequence number 5)
lxc c1<PHONE_NUMBER>2917.713 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:852 - Received container state "ABORTING" instead of "RUNNING"
lxc c1<PHONE_NUMBER>2917.714 ERROR    start - start.c:__lxc_start:1953 - Failed to spawn container "c1"
lxc c1<PHONE_NUMBER>2917.714 WARN     start - start.c:lxc_abort:1030 - No such process - Failed to send SIGKILL to 7052
lxc c1<PHONE_NUMBER>2917.771 WARN     cgfsng - cgroups/cgfsng.c:cgfsng_monitor_destroy:1110 - No space left on device - Failed to move monitor 6999 to "/sys/fs/cgroup/cpuset//lxc.pivot"
lxc<PHONE_NUMBER>2917.772 WARN     commands - commands.c:lxc_cmd_rsp_recv:122 - Connection reset by peer - Failed to receive response for command "get_state"

Kernel version: 4.9.98
LXC version: 4.0.0
LXD version: 4.0.0
Storage backend in use: dir

Issue description
A brief description of the problem. Should include what you were
attempting to do, what you did, what happened and what you expected to
see happen.
Steps to reproduce

Create rootfs @ /containers/c1/rootfs
lxc init c1 --empty
Add lxc.rootfs.path=/containers/c1/rootfs to the raw.lxc entry in "lxc config edit c1"
lxc start c1

Information to attach

[ ] Any relevant kernel output (dmesg)
[ ] Container log (lxc info NAME --show-log)
[ ] Container configuration (lxc config show NAME --expanded)
architecture: x86_64
config:
raw.lxc: |-
lxc.rootfs.path=/containers/c1/rootfs
security.privileged: "true"
volatile.idmap.base: "0"
volatile.idmap.current: '[]'
volatile.idmap.next: '[]'
volatile.last_state.power: STOPPED
devices:
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:
default
stateful: false
description: ""

This isn't a setup that we can support.

(To be clear, the issue is custom rootfs that's not managed by LXD and is passed through raw.lxc, the LXD generated config conflicts with the manual one and even if this was somehow successful, this would break very large parts of what LXD expects from a container)

Ok. Understood, I just noticed that once the I try to start the containers (2) lxc.rootfs.path entries are in: /var/log/lxd/c1/lxc.conf while the last entry is the default storage pool, if I remove the last entry and start the container with the forkstart everything works OK.
Reason for this is I'm using LXD in a offline setup where access to images (or the internet doesnt exist), so I manually overlayfs mount rootfs'es for my containers; this method worked in previous LXD releases. Do you have a recommendation on how to attack that scenario? Or should I migrate all of my processing back to LXC.

If you want normal LXD but offline, you can just run lxc image export on a connected system, then bring in the files to your server and import them with lxc image import, the rest will then work as normal.
Now if you need your custom overlayfs setup in an alternate path, then that may be better handled with just LXC.


cannot find mat files

Hi,
I was trying to run the codes tst_ifsc and gha_demo, but matlab is giving the error that it cannot find mat files for the same.
can you upload them????

The MAT files (that the MATLAB scripts are trying to find) are created by running the executable files tst_ifsc and gha_demo.
All chapro tests, including tst_* and gha_demo, require the following steps.

Compile the C code to obtain an executable file that performs the test.
Run the executable code to perform the test, which produces either a MAT or WAV output file.
Run the corresponding MATLAB script to display the contents of the output file.

For example, the following steps perform the tst_ifsc test.

compile tst_ifsc.c
run tst_ifsc, which produces the output file tst_ifsc.mat
run tst_ifsc.m in MATLAB to view the contents of tst_ifsc.mat.

Hope this helps.
-- Stephen Neely
From: dhanashri-innovision<EMAIL_ADDRESS>Reply-To: BoysTownorg/chapro<EMAIL_ADDRESS>Date: Friday, September 6, 2019 at 2:01 AM
To: BoysTownorg/chapro<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [BoysTownorg/chapro] cannot find mat files (#6)
Hi,
I was trying to run the codes tst_ifsc and gha_demo, but matlab is giving the error that it cannot find mat files for the same.
can you upload them????
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/BoysTownorg/chapro/issues/6?email_source=notifications&email_token=ACOKKHKIHAMJVZO6MHKWTXTQIH55TA5CNFSM4IUFWBQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJXKMIA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACOKKHKHQ7HL7LZRIODPEY3QIH55TANCNFSM4IUFWBQQ.

See comment above.


[Doc] improve document of performance optimization

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[x] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Modifications:

Remove in-memory table, which is a removed feature
Remove import section, which has nothing to do with performance optimization
Refactor table type selection, add primary key

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[x] 2.5
[ ] 2.4
[ ] 2.3

@mergify backport branch-3.0 branch-2.5


06/17/2018 18:53 : Create Pull Request for branch prTesting_2018061718 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Validate commands issued after workflow completion

Description
Customers have seen some difficult-to-diagnose errors from the server when they let activities dangle after the workflow ends.
Examples:
https://github.com/temporalio/temporal/blob/744f26d282c5891204d66aac0d77c93cdf1c1291/service/history/commandChecker.go#L789
https://github.com/temporalio/temporal/blob/43b4531277b4d5b519596ce4e78eaf778f572c99/service/history/workflowTaskHandlerCallbacks.go#L205
These errors are thrown when the server receives a terminal event followed by other events.  (I haven't figured out what differentiates which error is hit.)
Typically this seems to happen when teams don't wait for all their async activities before the workflow ends.
This error should be clearer and give them a proper callstack.
I made it a task failure so that the workflow will be retried and they can deploy to fix.
Test plan
temporal-ruby $ rspec -f d ./spec/unit/lib/temporal/workflow/state_manager_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.

Temporal::Workflow::StateManager
  #schedule
    fails to validate if Temporal::Workflow::Command::ContinueAsNew is not the last command scheduled
    fails to validate if Temporal::Workflow::Command::FailWorkflow is not the last command scheduled
   fails to validate if Temporal::Workflow::Command::CompleteWorkflow is not the last command scheduled

Finished in 0.00378 seconds (files took 1.04 seconds to load)
3 examples, 0 failures

./bin/trigger InvalidContinueAsNewWorkflow
Output:
E, [2022-02-04T17:53:57.107667 #57509] ERROR -- temporal_client: Workflow execution failed {"namespace":"ruby-samples","workflow_id":"2728fcb7-16ba-4fcd-b9c1-9119f72e7287","workflow_name":"InvalidContinueAsNewWorkflow","workflow_run_id":"db086762-c5a5-49f1-8334-bf477fed6b28","attempt":1,"task_queue":"general","run_started_at":1644026025.9409,"memo":{},"error":"#<Temporal::TryingToCompleteWorkflowError: You cannot do anything in a Workflow after it completes. You called continue_as_new. But then we received a new command: Temporal::Workflow::Command::ScheduleActivity.  This can happen, for example, if you've not waited for all of your Activity futures before finishing the Workflow.>"}
D, [2022-02-04T17:53:57.107744 #57509] DEBUG -- temporal_client: /Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/state_manager.rb:110:in `block in validate_append_command'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/state_manager.rb:99:in `each'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/state_manager.rb:99:in `validate_append_command'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/state_manager.rb:59:in `schedule'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/context.rb:316:in `schedule_command'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/context.rb:64:in `execute_activity'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/activity/workflow_convenience_methods.rb:23:in `execute'
/Users/drewhoskins/coinbase/temporal-ruby/examples/workflows/invalid_continue_as_new_workflow.rb:12:in `block in execute'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/future.rb:59:in `done'
/Users/drewhoskins/coinbase/temporal-ruby/examples/workflows/invalid_continue_as_new_workflow.rb:11:in `execute'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow.rb:16:in `execute_in_context'
/Users/drewhoskins/coinbase/temporal-ruby/lib/temporal/workflow/executor.rb:48:in `block in execute_workflow' {}

Sorry, I assumed the performance issue was your main point, which I fixed.
Context feels like the wrong abstraction layer, as this is basically "invalid state transition" and the state manager is what keeps track of the commands.


Add status for clustersetbinding

we can know whether a clusterset is bound
we can know whether there is clusters in the bound clusterset

Signed-off-by: Jian Qiu<EMAIL_ADDRESS>

/lgtm


Introduce autoWidth for TextEditors

Fixes #12441
Refs #12445
This pull-request is a proposal to introduce an autoWidth parameter on TextEditor instances. When instantiating an editor with this parameter, the width of the <atom-text-editor> element will be automatically adjusted to the width of its content (+ the width of the gutter, if present).

Since we explicitly assign a width to text editors that have enabled autoWidth, there's no need to resort to CSS hacks on the parent component (e.g. style.minWidth = '1em') or on the element itself (i.e. display: inline-block). This option will be off by default, meaning that editors will inherit the parent element's width, exactly like a display: block element. Because this will be an opt-in behavior it shouldn't introduce any regression and, thus, we might hot-fix stable and beta (respectively 1.9 and 1.10, as of this pull-request) with this new parameter.
/cc: @nathansobo @maxbrunsfeld

/cc @atom/facebook

🎉  Thanks @as-cii!

Great work @as-cii!


Vue CLI creates project directories that are readonly

Version
3.7.0
Environment info
  System:
    OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
  Binaries:
    Node: 10.15.3 - /usr/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/bin/npm
  Browsers:
    Chrome: 70.0.3538.77
    Firefox: 67.0
  npmGlobalPackages:
    @vue/cli: 3.7.0

Steps to reproduce
Create a new project with Vue CLI using sudo vue create project-name.
What is expected?
Create a project directory that is editable.
What is actually happening?
It creates the project directory as readonly.

Can't reproduce.
What does "readonly" exactly mean? Could you please paste the result of running ls -al . in the project directory here?

Readonly means that I can't edit anything inside that directory (I can't perform deletions, cutting, or pasting). And a lock icon is shown on the directory in the file explorer of the system. I ran the command ls -al . in the project directory and here is the output:
drwxr-xr-x   6 root         root           4096 May 23 18:48 .
drwxrwxr-x   6 ameer_taweel ameer_taweel   4096 May 23 18:45 ..
-rw-r--r--   1 root         root             53 May 23 18:47 babel.config.js
drwxr-xr-x   8 root         root           4096 May 23 18:48 .git
-rw-r--r--   1 root         root            214 May 23 18:47 .gitignore
drwxr-xr-x 817 root         root          32768 May 23 18:48 node_modules
-rw-r--r--   1 root         root            910 May 23 18:47 package.json
-rw-r--r--   1 root         root         427007 May 23 18:48 package-lock.json
drwxr-xr-x   2 root         root           4096 May 23 18:47 public
-rw-r--r--   1 root         root            365 May 23 18:48 README.md
drwxr-xr-x   4 root         root           4096 May 23 18:47 src

I will edit the issue as I discovered what is happening: If I create the project with sudo vue create project-name the directory will be readonly. If I use vue create project-name it will work fine and as expected. This means that I just can run vue create project-name. But I think it is still a bug that if I use sudo it will be readonly.

sudo will run it with the Admin super user privileges, which means you as a regular user won't get the rights on the generated content (only the Admin super user). This is unrelated to vue-cli.


Adding rules.md for infra folders and registry keys

@AndreiCsibi-msft Gentle remnder

@AndreiCsibi-msft Gentle remnder

@yogkumgit : I'll take a look at these comments later today. Thanks a lot!

@mansipatel-usl Please merge this PR. Thanks

@yogkumgit: Is there anyone else who can review/merge this PR if needed? Mansi is OOF for another week.

@tiburd Please help

@AndreiCsibi-msft
This pull request was opened in the public repo. PMs and content developers should work in the private repo, per the MARVEL Authoring Guide for Docs.
Please create a PR in the private repo to submit this content update. We'll close this PR.
Thanks!


Single page for portfolio

This is a good taste portfolio template however when clicking the items there is no portfolio work show up.
Found only list.html in layouts directory but no single.html.
Kind of impossible to present portfolio.

there is no single page designed for portfolio, but we can create it for you, please contact us<EMAIL_ADDRESS>


I get this error when I use explorer theme

Warning: React does not recognize the rowDirection prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase rowdirection instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (created by FileThemeNodeContentRenderer)
in FileThemeNodeContentRenderer (created by DragSource(FileThemeNodeContentRenderer))
in DragSource(FileThemeNodeContentRenderer) (created by Grid)
in div (created by FileThemeTreeNodeRenderer)
in FileThemeTreeNodeRenderer (created by DropTarget(FileThemeTreeNodeRenderer))
in DropTarget(FileThemeTreeNodeRenderer) (created by Grid)
in div (created by Grid)
in div (created by Grid)
in Grid (created by List)
in List (created by Scrolling(List))
in Scrolling(List) (created by AutoSizer)
in div (created by AutoSizer)
in AutoSizer (created by ReactSortableTree)
in div (created by ReactSortableTree)
in ReactSortableTree (created by DragDropContext(ReactSortableTree))
There isn't any problem when I just use the default one. However the app is not breaking. Is there any way to resolve this?

Me too.
@fritz-c, Could you check it?

Quick fix is to downgrade the react-sortable-tree package to ^1.5.2, you won't get any warnings anymore.

@mahammedzkhan Thanks.

I've made a PR with a proper fix which is compatible with react-sortable-tree ^2.2.0 (latest version)

I'm still getting that warning and I'm using the latest version i.e 2.2.0

I am getting the same error with  "react-sortable-tree": "^2.2.0"


Unable to disable Antiforgery Validation is forced on .net core app

I did not enable Antiforgery Validation on my Startup but my forms return error 400 if I do not add
@Html.AntiForgeryToken() to my html form.
I do not want to use AntiForgeryToken globally but I am unable to find any solution for this.
Is there even a way to disable anti forgery completely?
 [16:42:49 INF] Route matched with {page = "/Index", area = "Modbus", action = "", controller = ""}. Executing page /Index [16:42:49 INF] Antiforgery token validation failed. The required antiforgery request token was not provided in either form field "__RequestVerificationToken" or header value "RequestVerificationToken". Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery request token was not provided in either form field "__RequestVerificationToken" or header value "RequestVerificationToken".    at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)    at Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context) [16:42:49 INF] Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilter'. [16:42:49 INF] Executing HttpStatusCodeResult, setting HTTP status code 400

Razor Pages are protected by antiforgery tokens by default. You can use the IgnoreAntiforgeryTokenAttribute filter to disable XSRF protection for your pages, either by decorating it on individual pages, or by adding the filter globally.

I have already tried that but no luck.
Note: I tested my code in a Form under a razor library Area.
                   services.AddRazorPages().AddRazorPagesOptions(options =>             {                 options.Conventions.ConfigureFilter(new IgnoreAntiforgeryTokenAttribute());             })
I also tried


Allow Conditional Segments to Always Be Shown

This is a follow-up from #113
Some segments seem to be helpful in a "server"-like context, and some in a "project"-like one. For example, I work as a web developer and sometimes need to know about the PHP-Version on the server, but on my local machine I just need that information in development project. So if I am outside of that development project (-folder) that segment is not shown.
Maybe we need a variable SHOW_CONDITIONAL_$segment_name, so users can decide if they want to show that segment in a "project"-context or always ("server"-context). In extreme we could let the user decide how that condition looks like (e.g. find -maxdepth 2 -type f -name '*.php' | head -n 1 for a quick lookup of PHP-files).
The bullet-train guys have a similar "project-" approach in some of their segments (like the prompt_virtualenv or prompt_ruby).
I have implemented a first draft in my improve_rvm branch (and only for the ruby_version segment).
/cc @alexlafroscia

@dritter - I agree, better configuration of conditional segments would be very useful.
As you point out, in the extreme case, users could actually write the conditional statement. We may want to support this, but I don't think this should be the default - most users won't know how to take advantage of it.
I like the option to set an "ALWAYS_SHOW" option, as you modeled in your branch. Do you think there is a good way we can implement one function that can then be used for any segment we want to apply this to (like we did for color settings, for example)?

@dritter - Any more thoughts on this? It would be a great feature to get into a 0.3.0 release.

@bhilburn I think this takes some more time to mature. IMHO this is not ready for the next release. It is too complicated to write the conditions and I am not really content with my approach. I ported most segments to the new format, but I have some concerns about evaluating every piece of information.. Maybe this is a bit over-engineered, but I haven't come up with a better solution.
I need some time to overthink this..

@dritter - Understood. Let's prioritize this for 0.4.0, then.

I changed the milestone to 0.6.0, because this is already fixed there. 🎉

Closing this one out as its part of @dritter's awesome async work!


Adding filbertsalim.codeberg.page and filbertsalim.codeberg.site/id site

Important: Please read all instructions carefully.
Select the appropriate category for what this PR is about
This PR is:

[x] Adding a new domain
[ ] Updating existing domain size
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (512kb.club site)
[ ] Other not listed

Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

[x] I used the uncompressed size of the site
[x] I have included a link to the GTMetrix report
[x] The domain is in the correct alphabetical order
[x] This site is not a ultra lightweight site
[x] The following information is filled identical to the data file

- domain: filbertsalim.codeberg.page
  url: https://filbertsalim.codeberg.page/
  size: 232
  last_checked: 2021-11-26

- domain: filbertsalim.codeberg.page/id/
  url: https://filbertsalim.codeberg.page/id/
  size: 267
  last_checked: 2021-11-26

GTMetrix Report: (1)  https://gtmetrix.com/reports/filbertsalim.codeberg.page/J4ek8DiI/
(2) https://gtmetrix.com/reports/filbertsalim.codeberg.page/mp41N6jM/

Hi please put each addition on its own PR.
Also we only do home pages not specific pages.


[ROX-16647] Add support for multisort queries

Description
Add support for multiple sort options in graphQL so that queries with multiple sorts can made. I added a new field sortOptions and left the old field sortOption untouched to not break the API. If both are set, sortOptions is preferred over sortOption.
Checklist

[ ] Investigated and inspected CI test results
[X] Unit test and regression tests added
~Evaluated and added CHANGELOG entry if required~
~Determined and documented upgrade steps~
~Documented user facing changes~

If any of these don't apply, please comment below.
Testing Performed
Unit+Manual
imageCVEs new graphql resolver that uses SQF:

RuntimePolicyTest is seen on master and not related to changes in this PR.


/usr/bin/env: 'node': No such file or directory

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Could you please provide repro steps for this issue?

Could you please provide repro steps for this issue?

This is the workflow in question:
name: Lint Terraform

on:
  push:

jobs:
  lint-terraform:
    runs-on: self-hosted
    steps:
      - name: Check out Source Code
        uses: actions/checkout@v2
      - name: Setup Nodejs
        uses: actions/setup-node@v1
      - name: Setup Terraform
        uses<EMAIL_ADDRESS>      - name: Lint Terraform
        run: terraform fmt -check -recursive -diff

Everything works with v1 of setup-node. Updating to v2.1.4 exhibits the error.

This is the workflow in question:
name: Lint Terraform

on:
  push:

jobs:
  lint-terraform:
    runs-on: self-hosted
    steps:
      - name: Check out Source Code
        uses: actions/checkout@v2
      - name: Setup Nodejs
        uses: actions/setup-node@v1
      - name: Setup Terraform
        uses<EMAIL_ADDRESS>      - name: Lint Terraform
        run: terraform fmt -check -recursive -diff

Everything works with v1 of setup-node. Updating to v2.1.4 exhibits the error.

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

T

T

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Using 'actions/setup-node@v1' in a workflow step makes node available in subsequent steps. Updating to<EMAIL_ADDRESS>makes subsequent steps fail with "/usr/bin/env: 'node': No such file or directory"

Both v1 and v2 do the same thing - prepend node to the PATH. Subsequent steps should have node in the PATH with v2 so I would expect env node to resolve.
Is there a repro with terraform?  e.g. print out PATH or a shell script that does env node?  I can try later ...

Both v1 and v2 do the same thing - prepend node to the PATH. Subsequent steps should have node in the PATH with v2 so I would expect env node to resolve.
Is there a repro with terraform?  e.g. print out PATH or a shell script that does env node?  I can try later ...

I experience the same error.
For my tests I ran a migration via a child process.
// Migrating db
        const migrate = exec( // db:migrate does not seem to value the env var
            'cd ../src && npx sequelize db:migrate --env test',
            {env: 'test'},
            err => (err ? reject(err) : resolve())
        );

This results in:
/usr/bin/env: 'node': No such file or directory
node:child_process:333
      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^

Error: Command failed: cd ../src && npx sequelize db:migrate --env test
/usr/bin/env: 'node': No such file or directory

    at ChildProcess.exithandler (node:child_process:333:12)
    at ChildProcess.emit (node:events:379:20)
    at maybeClose (node:internal/child_process:1065:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:379:20)
    at Pipe.<anonymous> (node:net:667:12) {
  killed: false,
  code: 127,
  signal: null,
  cmd: 'cd ../src && npx sequelize db:migrate --env test'
}
npm ERR! code 1

I experience the same error.
For my tests I ran a migration via a child process.
// Migrating db
        const migrate = exec( // db:migrate does not seem to value the env var
            'cd ../src && npx sequelize db:migrate --env test',
            {env: 'test'},
            err => (err ? reject(err) : resolve())
        );

This results in:
/usr/bin/env: 'node': No such file or directory
node:child_process:333
      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^

Error: Command failed: cd ../src && npx sequelize db:migrate --env test
/usr/bin/env: 'node': No such file or directory

    at ChildProcess.exithandler (node:child_process:333:12)
    at ChildProcess.emit (node:events:379:20)
    at maybeClose (node:internal/child_process:1065:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:379:20)
    at Pipe.<anonymous> (node:net:667:12) {
  killed: false,
  code: 127,
  signal: null,
  cmd: 'cd ../src && npx sequelize db:migrate --env test'
}
npm ERR! code 1

I'm getting this error, too.
Mine triggers when I attempt to run npx webpack from a child_process.spawn within a jake task.
async function run(cmd, env):
        ...
        let proc = child_process.spawn(command, args, {stdio: "inherit", shell: true, env});
        ...
}

task('deploy', async function () {
    // start by building all the versions
    let buildName = generateBuildName();
    let commonArgs = {
        'BUILD_NAME': buildName,
        'API_KEY': '12345',
        'NODE_ENV': 'production',
    }
    await run(`npx webpack`, {'ENDPOINT': 'prod', 'VARIANT': 'public', ...commonArgs});
    await run(`npx webpack`, {'ENDPOINT': 'prod', 'VARIANT': 'internal', ...commonArgs});
    await run(`npx webpack`, {'ENDPOINT': 'dev', 'VARIANT': 'public', ...commonArgs});
    await run(`npx webpack`, {'ENDPOINT': 'dev', 'VARIANT': 'internal', ...commonArgs});
    upload({buildName});
    slack({text: `deployed \`${buildName}\` to S3`});
});


Improve cluster UX after error

Cluster connection form re-open with parameters user submitted.
Contributor Checklist:

[ ] I have added or updated my entry in the creators.json file
[ ] I have added a changelog entry for my contribution
[ ] I have included the rebuilt production build of the client (only if
changes were made to the GUI)

@skip is this okay?

Looks fine, I'll give it a quick test run

How can I verify if local storage is updated?

How can I verify if local storage is updated?

Check the "Applications" tab in the devtools:

Last time for successful Local connection, numWorkers would replace address in lastConnection. So only connection type is saved for Local connection.

is there anything else to do @sk1p

Don't think so, not at the office right now, will have a look / merge later. Thanks!


[REEF-408]: Fix violations of Indentation checkstyle

This addressed the issue by

adjusting indentation per checkstyle recommendations

JIRA: REEF-408

I'll merge this.


Random cleanups

Description of the pull request:
Random cleanups:

Removing the clean script since I discovered that the same can be done using git clean -fdx.
Removing ./node_modules/.bin from the scripts. npm adds node_modules/.bin to PATH anyways.
Removes Testling  from package.json since Testling appears to be non-functional.
Removes Jam from package.json since it appears to be inactive.
Minor reorganizing of package.json while I'm in there.

Fixes the following issues:
An intimidating codebase 😄
Is breaking:

If some build process used the newly added clean.
If anybody is still using Jam as their package manager.
If there's something in .gitignore that should have been ignored/not ignored.
If there's a reason why ./node_modules/.bin was there in the first place.

Reviewers:
Everyone, in particular those who know what goes on in the CI realm.

I recently discovered that the package manifest in the root dir isn't the one that gets published to npm. The manifest that gets published is a template in the scripts dir that gets adjusted during the build process.
LGTM :+1:


Update librustzcash to latest release

This adds support for TEX addresses, among other things.

zcash_client_backend-0.13.0
zcash_client_sqlite-0.11.1

This is blocked by https://github.com/hyperium/tonic/issues/1904


Reproducing result for the archived paper

Hi! Thank you for all the responses to earlier issues. I am able to successfully run ADFuzz without any issue.
I am trying to run ADFuzz in the same setup as described in the paper at https://arxiv.org/pdf/2109.06126.pdf, 140 simulations, and 100 warm-up simulations. Are the following the command arguments to use? Can I use the default value for all other arguments?
-a nsga2-un --rank_mode adv_nn --warm_up_len 100

--pop_size is set to 10 for this experiment. --has_run_num should be set to 140 accordingly. It has this warm-up/seed collection stage for which nsga2-un should be run. The folder consists of the seeds is then used as the value for --warm_up_path.
Another possible source of difference is that i used Apollo 6.0 (with Signal Sensor) so if modular testing is used, the results should be different.
Also, since I made multiple changes to the current repository after the results for that paper, if you see very different result, please let me and I will look into possible causes. Some reasonable randomness should be normal since the simulation is not deterministic and the fuzzing process also has some randomness. However, the superiority of the proposed method over the other two baselines should hold.

Thanks for the explanation!


Vulcan-using sites break when loaded inside archive.org

When a Vulcan-using website is rendered inside an archive.org snapshot (or a downloaded copy of the page, for that matter), the server-side rendered version displays briefly, and then is replaced with an Error404 component after Javascript initializes.

As an easier reproduction, load the site in Chrome, and use Chrome's Save As feature. It will save a resources directory alongside the HTML, and rewrite the page HTML to refer to that directory; when you load that HTML file, it will fail in the same way that archive.org fails.

Oh you're right, that just happened to me on https://zenshome.jp/ So you think it might be a React Router problem?

It's a react-router problem, but it's more of a flawed architectural assumption than a straightforward bug. In traditional webapps, the URL is parsed server side to figure out what route it is, and the server sends the page for that route. With react-router, the URL is parsed server-side for SSR, but is parsed again client-side, for an initial rerender. The problem is that the page may have been saved (by Chrome's Save As, or by archive.org) and then loaded at a different URL, in which case react-router gets that URL from the address bar, concludes that that URL is the one it's supposed to render, and renders an invalid page.
The correct behavior would be to inject the URL that was requested into the page via a side channel, and use that URL rather than the address-bar URL until some navigation is performed. react-router has an extension point that can probably be used for this; the Router component takes a history prop, and it gets URLs through that rather than from the address bar directly. So we can get the URL from the address bar at initialization time, and provide a wrapper around history which does the substitution.
Alternatively, we could disable Javascript entirely if the page is loaded from a different URL than expected. This would prevent links from getting rerendered with a weird base, and prevent any user code that inspects the address bar from going awry, but it would also prevent hover-overs and other nice Javascript things from functioning.

Trying to figure out step 1, passing down data from the server to the client.
We used to have injectData to handle this but this is not the case anymore in the Apollo 2 branch. It seemed a bit hackish anyway, so I'd like to find a cleaner way to do this instead now SSR has replaced fast-render. Still looking from documentation.


Bot doesn't respond to commands and thinks he's outside voice channel

[x] I am using Python 3.5.3 or higher (run python --version on the command line)
[x] I have followed the official guides to install the bot for my system
[x] I have updated my dependencies to the latest version using the appropriate update script

Which version are you using?

[x] The latest master version (release-260419)
[ ] The latest review version

What type of issue are you creating?

[x] Bug
[ ] Feature request
[ ] Question

Description of issue
So about two days ago this issue started where i paused my bot for a night and the next day it wen't silent
!resume
!play
Did nothing because bot thougt he's outside the voice channel
Tried kicking him out of voice channel and rejoining and kicking him out of the server
Then i tried to wipe the bot saving only configuration and that did nothing too
And after that bot stoped responding too only (!restart, !shutdown, !summon) worked
So i tried different OS's with it's config
Ubuntu 18.04
Ubuntu 16.04
and even macOS
Same behaviour
Then i wiped bot's config and did clean install configuring only the bot's token
Same thing
Then i tried making new bot account resoulting in the same thing
So i upgraded all my packages and moved from python 3.5 to 3.7 and that did nothing too
I'm out of ideas what could go wrong and what i could troubleshoot next
I'm not including bot's log because it contains nothing usefull (no errors no nothing) just bot not responding to my commands and standard startup messages

I've encoutered the same issue these last days, could be about a week or so.
I'm on raspbian, last master version of MusicBot, all dependencies updated.
The bot responds to commands that aren't related to the queue (!summon, !clean, !help, !perms, etc. working fine) but doesn't play anything and won't add nor remove songs from the playlist/queue.
Log doesn't show any kind of error, it just logs the "!play" messages and such.

I've had this issue for the past couple of days as well. There was a new update today (10/17) that seems to have fixed it for me.

The update does indeed seem to solve this issue, it's fixed for me.

Duplicate of #1962


Support for client certificate authentication

Currently the migration tool does not support client certificate authentication on source database.

PR https://github.com/aiven/aiven-mysql-migrate/pull/24


Wrong attribute name when generating .inf file for motorcycles

postAdForm.attributeMap[motorcyclesmake_s]=honda
postAdForm.attributeMap[motorcyclesmake_s+motorcyclesmodel_s]=othrmdl

should be
postAdForm.attributeMap[motorcyclesmake_s]=honda
postAdForm.attributeMap[motorcyclesmodel_s]=othrmdl

otherwise the ad won't be added, you'll get
kijiji_api.PostAdException: Could not post ad.

The problem is that the model depends on the make. On the Kijiji site, it looks like the models are being populated once the make is selected.


Prepending current PATH to PATH defined in "terminal.integrated.env.osx"

VSCode Version: 1.15.1
OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

Update workspace settings to something like

{
  "terminal.integrated.env.osx": {
    "PATH": "/home"
  }
}

Now open Terminal and look at PATH

echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/home

On Windows, having the same setting will not result in the current PATH being prepended, but instead, just setting the path to whatever is defined in terminal.integrated.env.*
Reproduces without extensions: Yes

Unless there's a more intuitive way of doing this through the terminal.integrated.env.* settings, I'd rather not support it. This would make replacing PATH impossible and inconsistent with how other keys work.
There is a workaround though by using something like --rcfile to run a script on init.

Hi @Tyriar , my description was confusing.
So on Mac, with the setting below
{
  "terminal.integrated.env.osx": {
    "PATH": "/home"
  }
}

the resulting PATH in terminal in VS Code will be something like /usr/local/bin:/usr/bin:/bin:/usr/sbin:/home. /usr/local/bin:/usr/bin:/bin:/usr/sbin was added to terminal.integrated.env.osx.PATH
Whereas on Windows, having the "same" setting
{
  "terminal.integrated.env.windows": {
    "PATH": "C:\bin"
  }
}

the resulting PATH in the integrated terminal will be just C:\bin, nothing else will be added to PATH besides whats defined for terminal.integrated.env.windows.PATH.
Having different behavior for Windows and Mac is strange. Also, on Mac, it seems that only the PATH key in terminal.integrated.env.osx is being changed, we have other env variables defined in terminal.integrated.env.osx and they all stayed the same, this is super confusing...
The reason I think this is an issue is that our app allows the user to open a project in our app using VS Code, and our app has a custom Python installed. We use terminal.integrated.env.osx.PATH to essentially tell the terminal to use the Python installed by our app instead of the Python in, say, /usr/local/bin. This works fine on Windows, but on Mac, things are broken because VS Code is modifying terminal.integrated.env.osx.PATH.

It's the same behavior, it's just that Windows PATH is typically set and complete when you login into Windows whereas on Mac it has more entries added to it through the ~/.bash_profile and ~/.bashrc files.

Also, on Mac, it seems that only the PATH key in terminal.integrated.env.osx is being changed, we have other env variables defined in terminal.integrated.env.osx and they all stayed the same, this is super confusing...

Are you sure your start up scripts are not overriding the values here?

but on Mac, things are broken because VS Code is modifying terminal.integrated.env.osx.PATH

It's fairly typical to set the system's python version using alias in one of these files. Could that be messing with it?

Hi @Tyriar , thank you for providing pointers on where to check. I've checked the Mac I'm using, there is no ~/.bash_profile or ~/.bashrc file. After some more investigation, looks like on Mac, there is a path_helper function which appends paths defined in /etc/paths and /etc/paths.d to PATH. And that is invoked in /etc/profile. I think this is causing the issue.
Thank you for the help, agree with you that this is not a VS Code issue.

Apparently tasks.json supports the syntax ${env:Name}. So I'll reopen this feature request to allow the following:
{
  "terminal.integrated.env.windows": {
    "PATH": "${env:PATH};C:\bin"
  }
}

@dbaeumer does this sound consistent with what's supported in tasks.json?

@Tyriar yes, ${env:Name} is consistent with tasks and debug. There is a configuration resolver service you can use to get the values.

@dbaeumer great!
This is open to PRs 😃

This would be a useful feature to have. Just now, I was searching for a way to amend the PATH environment variable, and I was quite surprised that there is no straightforward way to do it. (For now, I went with specifying --rcfile in terminal.integrated.shellArgs.linux, but it's far from a clean solution.)

+1, just tried appending or prepending the path in user settings, does not work.
Moreover, the terminal environment variables set in user settings, do not seem to apply to tasks - am I understanding that correct?
Another way around this, might be to enable tasks to run multiple commands, then I could add a batch file to set environment variables, such as Path.

Related: https://github.com/Microsoft/vscode/issues/2809


Deprecate concept of instance and identity

After many discussions with users, we've decided to remove the concept
of instance and identity from the torus secret storage mechanism.

A user can still set/unset a secret for a specific instance/identity
pair by providing the full seven segment path. If a secret has been set
for this level of specificity the full 7 segment path will be displayed
via torus view or torus list. However, in all other cases, a 5
segment path will be displayed (e.g. /org/project/env/sevice/secret).
To support these changes the docs have been updated and expanded where
necessary.

:white_check_mark: Build torus-cli 523 completed (commit https://github.com/manifoldco/torus-cli/commit/7da03109bc by @ianlivingstone)


[feat] refactoring func.yaml struct to match cmd lifecycle

Changes

:gift: updates func.yaml structure to have build, run and deploy sections
:gift: add migration strategy to 1.0.x version ? should we call it 1.8? or the internal 0.34.x?

/kind api-change

Fixes #817

Release Note

Changes func.yaml file structure to include nested build, deploy and run sections

Docs

/retest

@lkingland @lance all comments addressed and all test green

/lgtm

/cherry-pick release-1.7


WARN: Unable to fetch attribute for file...

Are these warning messages a problem for the outgroup files or can I safely ignore them?
WARN: Unable to fetch attribute for file: /app/becksts/.nextflow/assets/UPHL-BioNGS/Cecret/configs/NC_063383.1.gff - Hash is inferred from Git repository commit Id
WARN: Unable to fetch attribute for file: /app/becksts/.nextflow/assets/UPHL-BioNGS/Cecret/configs/NC_063383.1.gff - Hash is inferred from Git repository commit Id

You'll need to update your local version with
nextflow pull UPHL-BioNGS/Cecret

When I do that I get the following message:
(base) [becksts@awsgenomep Cecret]$ nextflow pull UPHL-BioNGS/Cecret
Checking UPHL-BioNGS/Cecret ...
UPHL-BioNGS/Cecret contains uncommitted changes -- cannot pull from repository

That's a new error message.
What happens if you delete the associtated nextflow asset?

I have been doing that. I just did that again and restarted, since I couldn't run "nextflow pull UPHL-BioNGS/Cecret" from the command-line.

Were you able to re-pull the repo with nextflow or are you still running into issues?

Doesn’t removing the Cecret folder from .nextflow/assets/UPHL-BioNGS do the same thing?
Stephen M. Beckstrom-Sternberg, PhD
Bioinformatics Contractor
Arizona State Public Health Lab
Arizona Department of Health Services
Cell:<PHONE_NUMBER>
Email:  @.***

On Aug 4, 2022, at 3:32 PM, Young @.***> wrote:
Were you able to re-pull the repo with nextflow or are you still running into issues?
—
Reply to this email directly, view it on GitHub https://github.com/UPHL-BioNGS/Cecret/issues/114#issuecomment-1205833812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVTVLJVKEIGZTZTS6AA4PU3VXRAHPANCNFSM55QI2YLQ.
You are receiving this because you authored the thread.

--
CONFIDENTIALITY NOTICE:  This e-mail is the property of the Arizona
Department of Health Services and contains information that may be
PRIVILEGED, CONFIDENTIAL, or otherwise exempt from disclosure by applicable
law.  It is intended only for the person(s) to whom it is addressed.  If
you have received this communication in error, please do not retain or
distribute it.  Please notify the sender immediately by e-mail at the
address shown above and delete the original message.  Thank you.

Yes. This issue is resolved.

Good! I was worried that more things were going wrong. Thank you for creating an issue!


Feature/video 10184/api calls to sign in flow and secure persistence session

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

Commit 1:

Implemented Secure LocalStorage with Encrypted SharedPreferences.
Implemented RemoteStorage to run REST API calls.
Implemented TwilioLiveService interface connected with Retrofit instance.
Implemented TwilioLiveRepository responsible to manage the data access to LocalStorage or RemoteStorage.
Implemented AuthenticatorManager in order to manage all task related to the passcode.
Added all the providers to MainModule, in order to let Hilt manage all the Dependencies injections.

Commit 2:

Implemented passcode verification connecting with Rest API
Implemented logic in the Interceptor to customize the base URL based on passcode.
Added validation to check stored credentials then route to Home Screen.
Added Util methods inside of AuthenticatorManager to manipulate the passcode.
Implemented generic error case when the passcode is not valid.
Added logic in the RemoteStorage to parse the error body when is needed.

JIRA link(s):

VIDEO-10183
VIDEO-10184

Description
In this PR the app is connected with the Local Storage to store the passcode and also to validate and keep the session on when the user already signed-in, then is redirected to the Home Screen.
Also, is implemented the first API call to /verify-passcode and connected to the UI to run the proper actions.
Implemented the first generic error flow, if the passcode is not valid.
Demo
https://user-images.githubusercontent.com/929504/175079959-1c5f81f8-95ee-4993-8d1b-31dadddb0964.mp4
Burndown
Before review

[ ] Added unit tests if necessary
[ ] Updated affected documentation
[ ] Verified locally with all effected platforms
[ ] Manually sanity tested running locally
[ ] Included screenshot as PR comment (if needed)
[ ] Ready for review

Before merge

[ ] Got one or more +1s
[ ] Re-tested if necessary

You should add some unit test cases to verify that interaction with the rest api is working.

I suppose you will be adding test cases with a different task?

@afalls-twilio yes, I will be adding Unit Test cases the coming sprint. This is the task: VIDEO-10441


Upgrade nacos sdk version to meet compliance

Signed-off-by: Shubham Sharma<EMAIL_ADDRESS>Description
Upgrades the Nacos SDK version from v1.0.8 to v2.0.1 due to compliance reasons. This is also an upgrade from v1 to v2 of the SDK and there are some deltas:

In ClientConfig, MaxAge translates to ClientLogRollingConfig.MaxAge

"MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename."
Previously, default max age was 3 days. Now, the default value is to not remove old logs.

In ClientConfig, RotateTime is no longer supported.

RotateTime is the rotation time for log, i.e. log.txt is renamed to log1.txt after RotateTime
Nacos SDK only supports MaxSize for log files before it is rotated, with default to 100 MB.
MaxSize is now added as a configurable setting.

DatumId is no longer supported. We were earlier passing in empty DatumId, and now it is removed.

Documentation references:

v1.0.8 (original<EMAIL_ADDRESS>v2.0.1 (new<EMAIL_ADDRESS>
Issue reference
Please reference the issue this PR will close: #1478
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@shubham1172 did you mean to merge this after https://github.com/dapr/components-contrib/issues/1549 was resolved?
cc @artursouza

@yaron2 these can go independently, right? The binding will be added to daprd once #1549 is resolved. This work item only unblocks a licensing issue with the old version.

@yaron2 these can go independently, right? The binding will be added to daprd once #1549 is resolved. This work item only unblocks a licensing issue with the old version.

Ok, I suppose it can.


Masking GLSurfaceView

Masking an opengl surface view doesnt seem to work. It just displays a blank white screen. Any idea how to fix this?

Hi,
Yes, the masking in done by the cpu. It does not support GPU based rendering.
I think you have to use shaders to solve this.
I'll close this as it is not a supported feature and will not be.


Small fixes

Pull Request Test Coverage Report for Build 712

8 of 11 (72.73%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 78.725%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/loaders/base_ondisk_js.ts
5
8
62.5%

Totals

Change from base Build 711:
0.02%

Covered Lines:
1482

Relevant Lines:
1811

💛  - Coveralls


Documentation build is failing

WARNING:psyplot.config.rcsetup:Failed to import EntryPoint(name='plugin', value='psy_reg.plugin', group='psyplot')!
WARNING:psyplot:Could not import EntryPoint(name='plugin', value='psy_reg.plugin', group='psyplot')
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/esmvaltool/conda/3628/lib/python3.11/site-packages/psyplot/__init__.py", line 132, in get_versions
    mod = ep.load()
          ^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/esmvaltool/conda/3628/lib/python3.11/site-packages/importlib_metadata/__init__.py", line 184, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/esmvaltool/conda/3628/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/docs/checkouts/readthedocs.org/user_builds/esmvaltool/conda/3628/lib/python3.11/site-packages/psy_reg/plugin.py", line 36, in <module>
    from psyplot.compat.pycompat import map, filter
ModuleNotFoundError: No module named 'psyplot.compat'

Seen when building the documentation in #3628 (https://readthedocs.org/projects/esmvaltool/builds/24538250/).

Looks like it started working again: https://readthedocs.org/projects/esmvaltool/builds/24673573/.

nope it did not, with a magic combo of:
(esmvaltool) valeriu@valeriu-PORTEGE-Z30-C:~/ESMValTool$ conda list psy
# packages in environment at /home/valeriu/miniconda3/envs/esmvaltool:
#
# Name                    Version                   Build  Channel
psy-maps                  1.5.0           py311h38be061_1    conda-forge
psy-reg                   1.4.0           py311h38be061_3    conda-forge
psy-simple                1.5.0           py311h38be061_1    conda-forge
psyplot                   1.5.0           py311h38be061_1    conda-forge

it die, like before. @Chilipp and meself are pushing to get psy-reg to 1.5.0 so it supports Python 3.12 too, but until then, it's a bit of a faff :beer:

The error message is still there, but the documentation build does not seem to fail because of it. In https://github.com/ESMValGroup/ESMValTool/pull/3628, I thought the build was failing because of this issue here, but it was actually another problem, which I subsequently fixed in #3675.

Bizarre - that's a serious import error, and RTD detects it, why wouldn't it treat it as a breakage. At any rate, feel free to re-close the issue, bud - but I'd still argue we ought to fix the diagnostic ie via #3687

FYI: the MR of psy-reg v1.5.0 (https://github.com/conda-forge/psy-reg-feedstock/pull/19) has been merged, so it should be available soon via the conda-forge channel


Record Upload time/date/location for each image

@

@nate-watson80 will work on the front end for location, I'll work on the back end

great work. I'll help write unit tests for these when you guys are done.


Boto3 support

Added boto3 support to Rigor. Rigor now attempts to load boto3 and if it can not loads boto2. All tests in test/test_s3.py pass. test/s3.py was modified as needed to generate a proper mock object.
Method:
I created simple private shadow methods in BotoS3Client to keep things simple. Each public method calls the private shadow method if boto3 is loaded.

Don't merge it yet. Found a bug and working on another potential issue while implementing rigor end to end.
I'll create a new pull request once I sort it out.
Brian
Brian Roy |<PHONE_NUMBER> | https://briantroy.com
On Tue, May 2, 2017 at 11:10 AM, Kevin R<EMAIL_ADDRESS>wrote:
@squidpickles commented on this pull request.
In lib/s3.py [https://github.com/blindsightcorp/rigor/pull/2#discussion_r114386061] :

@@ -2,8 +2,17 @@

from abc import ABCMeta, abstractmethod
from io import BytesIO
-from boto.s3.connection import S3Connection
-from boto.s3.key import Key
+import sys
(I would generally import sys , because it contains functions and constants; I reserve partial imports for modules containing specific objects I want to use)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [https://github.com/blindsightcorp/rigor/pull/2#discussion_r114386061] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AADH5A2_VFoZpoz52nPVhef3aubV1gKYks5r13F5gaJpZM4NK1uW] .

I've limited the import scope for boto3 and botocore, moved the import of botocore into the try block. I've also make the sys.modules check only happen once and added a boto version property to the object. Also added a method to return the current boto version and a new test to cover that method.

This repository has been archived. I recommend you work with a forked version of the project at https://github.com/rigorgt/rigor to get this improvement added.
I'm going to close this as it's a new feature/enhancement rather than a bugfix that existing users might find useful to still be able to discover.


Add arXiv and journal ref + citation

For arXiv let's add a badge similar to https://github.com/unitaryfund/mitiq#. Add a citation.bib file similar to https://github.com/unitaryfund/mitiq/blob/master/CITATION.bib with the citation info. Also add a citation section to the README which links to this file.
Links:

https://arxiv.org/abs/2311.11787
https://dl.acm.org/doi/10.1145/3624062.3624215

I can do this

I can do this

Closed by #51


Option to continue fetching certificate if some alternative names don't work

Hey there
It would be useful to have an option to continue fetching a certificate if not all alternative names work.  Sometimes multiple domains point to a single vhost, and if one of them expires it would be good to still get a cert for the remaining, valid, names.
For this purpose, I would typically use a challenge which will always pass as the "main" domain name.
From the looks of the way dehydrated works, this would probably require restarting the issuance process for a given cert, only for alternatives which have passed the challenges.
My specific use case is that when I give a person a domain name to use, I want to be able to fire up lets-encrypt with something, even if their domain name is not pointing at my server yet, so I create a private name (like theirtempsite.myhostingco.com).

This will not really work. The signing request is generated before any validation starts. If any domain is not validated the certificate order will fail completely.


Add script and data for testing.

Tests to make sure the tool does the right thing.

It currently does not do the right thing.

Pun intended, but I don't condone drug use.


Use a python script to generate package list

Lets us put a line up front in packages.txt about
where this file is coming from, and why it exists!
Without that, it was a bit confusing, as packages.txt is
a secondary source, not a primary one. I redid the
script in python rather than try to add this to the
bash version - as sorting was happening after the
script was run, it was difficult to prepend the comments
about source of packages.txt. So instead of adding more
hackery to the bash file, I rewrote it in python. It is
also hence clearer.
Provide packages.txt in format produced by pip freeze -
earlier it was just in a format I haven't seen anywhere
else. This does make diffs a bit more complex before
and after this change, but I think it is worth it to be
clearer.

Part of live streamed exploration of https://www.youtube.com/watch?v=f-Q3muKzKM4

So instead of adding more hackery to the bash file, I rewrote it in python.

Awesome :) There has been a fair amount of bash hackery in this repository

This does make diffs a bit more complex before and after this change, but I think it is worth it to be clearer.

Agreed! I think the diffs are most helpful between subsequent images anyhow, so going forward things will look just fine.

@scottyhq ty for the catches! I've fixed the suggestions :)


Update Main.java

I forgot to leave a summary. This commit adds the functionality to call the Haskell program from Java using the command prompt. I believe it works for me, but I am not sure what it will do on Mac.

Our first merge!


Still accepts noncanonic base64

The hash &sha252shasa2sha2sha252shasa2sha25sha252shas=.sha256 is valid, whereas &sha252shasa2sha2sha252shasa2sha25sha252shar=.sha256 is invalid (the last character of the base64 encoding is non-canonic). ref.isLink accepts both though.
Version 2.13.3

fixed in 2.13.4


Replace use of contextprovider resource files by SPI approach

Reduces complexity of supported contextprovider configuration.
There's no need for distinction of custom and default context providers if we are using a generic service locator approach.

Done


Single File Deployments are not Supported by IIS.

I think it would be beneficial to note in the Docs that Single File Deployments are not supported by IIS.
This has tripped me up twice.  Not a big issue, but a footnote somewhere just so it is documented.

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

ID: 85eba478-0374-bb9b-8fa7-d5cf7d520603
Version Independent ID: 89967250-8c3b-1999-078f-94ad7518ed49
Content: Application publishing - .NET
Content Source: docs/core/deploying/index.md
Product: dotnet-fundamentals
GitHub Login: @adegeo
Microsoft Alias: adegeo

in csproj File Add
  <PropertyGroup>
	<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
  </PropertyGroup>

@luoyunchong @gregoryagu does OutOfProcess fix the deployment problem?

@adegeo I tested by updated the Project to use the Out Of Process hosting model and the Single File option.  It did indeed run successfully on IIS.  However, it is worth noting that In Process is the default and, from what I have read, the currently recommended process model due to speed enhancements.  In any case, I am ok with closing this issue at this time.


Training Data Form

Kindly I've a dataset of 6 variables; 5 features ( 4 categorical & 1 numeric) & class label
1] loaded the data of 184 row
2] Split it 2/3 so I have 122 record for training & 62 record for Testing
3] So in order to to create the CNN I need to define the dims of the training so I added the following:
train<-data.matrix(Datatrain)
train.x<-train[,-6]
train.y<-train[,6]
train.array <- train.x
dim(train.array) <- c(122, 5, 1, ncol(train.x))
but actually I got the following error
Error in dim(train.array) <- c(122, 5, 1, ncol(train.x)) :
dims [product 3660] do not match the length of object [610]

Thanks to my colleague there was two steps I missed:

Matrix transpose
4D conversion to fit the 122 rows of observation & 5 features.

train<-data.matrix(Datatrain)
train.x<-train[,-6]
train.y<-train[,6]
train.array <- t(train.x)
dim(train.array) <- c(1,5,1,122)


Reduce memory footprint

Before this commit we kept all the node object for all nodes, while all we need is the IP address.

/lgtm


Please set a version?

I've done a clean DIY install as described in the readme.
I've got as far as no 5:
> nodist selfupdate
Installing latest stable version...
Sorry, there's a problem with nodist. Couldn't decide which node version to use. Please set a version.

I've tried setting the version like this:
> nodist 0.8.1

But it doesn't seem to help. Still getting the same error.
(I'm using a proxy which is set-up correctly. I was using node+npm before trying this)

same problem win 8.1

Had this same issue, seems to be related to the nodistPrefix and envVersion being parsed incorrectly from the environment variables.  PR above fixes the issue for me.

Cheers from the utilizers! :raised_hands:

Same Problem arises for me too..how to resolve this

@kpraveen797 please open a separate issue and provide information about a) what you did b) what you expected to happen c) what actually happened. Thank you ;)


AWS Amplify Support

Has anyone successfully gotten nodeify working with AWS Amplify? I'm attempting to use the library but am getting JS ERROR ReferenceError: Can't find variable: Buffer
Any help would be great!

Not sure how much this helps, but it looks like people using react and rn-nodeify were able to get it working https://github.com/aws/aws-amplify/issues/140

@EddyVerbruggen were you able to find anything in the repo I linked?

anyone found the working solution for aws-amplify

I am not getting same error message but the different one
navigator is not defined
Getting this message when trying to call "

Amplify.configure()

"
ERROR Error: Uncaught (in promise): ReferenceError: navigator is not defined
JS: ReferenceError: navigator is not defined
JS:     at standardBrowserEnv (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/helpers/isURLSameOrigin.js:11:39)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/helpers/isURLSameOrigin.js:60:5)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/adapters/xhr.js:7:23)
JS:     at require (<anonymous>:1:266)
JS:     at getDefaultAdapter (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/defaults.js:20:15)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/defaults.js:29:12)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/core/Axios.js:3:16)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/axios.js:5:13)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/index.js:1:78)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/aws-amplify/lib/API/RestClient.js:70:15)
Successfully synced application org.nativescript.awsamplify on device 3421353f0604.
ActivityManager: Start proc 17292:org.nativescript.awsamplify/u0a341 for activity org.nativescript.awsamplify/com.tns.NativeScriptActivity
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: ERROR Error: Uncaught (in promise): ReferenceError: navigator is not defined
JS: ReferenceError: navigator is not defined
JS:     at standardBrowserEnv (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/helpers/isURLSameOrigin.js:11:39)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/helpers/isURLSameOrigin.js:60:5)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/adapters/xhr.js:7:23)
JS:     at require (<anonymous>:1:266)
JS:     at getDefaultAdapter (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/defaults.js:20:15)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/defaults.js:29:12)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/core/Axios.js:3:16)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/lib/axios.js:5:13)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/axios/index.js:1:78)
JS:     at require (<anonymous>:1:266)
JS:     at Object.<anonymous> (file:///data/data/org.nativescript.awsamplify/files/app/tns_modules/aws-amplify/lib/API/RestClient.js:70:15)

Changed it to "aws-amplify": "^0.2.9" version and everything working fine now :)
just getting few warning messages only

Changed it to "aws-amplify": "^0.2.9" version and everything working fine now :)
just getting few warning messages only

Are you still using aws-amplify along with nativescript-nodeify? And if yes, have you been able to get it to work with a newer version of aws-amplify as we're now on 1.+?

@envisean yes it’s working fine with latest amplify version.

Hello guys, can any of you explain to me how did you get it to work with Amplify v3?
I am having the window is not defined error for ages now, and I cannot find how to define it. Should I create a shim or how?

@collindutter Did you arrive to a solution?

@diegovincent sorry I dropped this a couple years ago. I don't think I ever reached a solution myself.

Oh no! I hope it turned out ok!
Well, thanks for posting it anyways, if by any chance you are interested, leave a like at my message here so maybe we can attract developers of the community to solve this important issue (I think "officially" supporting AWS is a pressing matter if we want people to adopt and improve the NativeScript community and technology).
Thanks for your fast reply! And good luck with your projects.
D.

Just dropped a like, best of luck!

@collindutter could you re-open it?


Can not support a variety of worlds

example:
I need this plugin to work in a world (world name: Envoy)
But he can only specify a world
Can not support multiple worlds (Multiverse)
He can only support the broadcast in other worlds
   World-Messages:
     Toggle: true
     Worlds:
       - 's1'
Crazy Envoy spawn support less than the rest of the world
data.yml
Center: s1:s1, X:0, Y:0, Z:0
Locations:
Spawns: []
Next-Envoy:

Still not sure on what you mean. Can you specify where you want to see multi-world support?

Yes, he can not work outside the world of "world"
my English is not very good

That can be added to support other worlds?

I figured you didn't know English very well since you keep saying "he". Its fine thought but could to point out what part of the file you mean.

I am sorry, English is not very good! Make you feel
I mean "he" is another world

Https://www.spigotmc.org/resources/multiverse-core.390/
Multiverse is able to produce a world
But I produced the s1 world
Crazy Envoy can not work in s1 world
Broadcast can be
Produce box can not

Wait, why do you have it like this.
Center: s1:s1, X:0, Y:0, Z:0
It should be this.
Center: World:s1, X:0, Y:0, Z:0

Thank you, the problem is solved
I admire you as a teacher


Fix the Windows build

Forgot to update the Windows version of fsnotify

Tested on Windows. The build was broken. Now it's fixed.


Improve bitmap icon decoding on Windows

What does the pull request do?
Currently, icon decoding logic on Windows is following:
Try to create a new System.Drawing.Icon from the stream. If it fails (like when the stream wasn't a .ico file), then create System.Drawing.Bitmap first, and convert it to HIcon from the bitmap.
This PR changes this a little:

If the stream is not seekable - don't try to use multiple APIs, just use Bitmap right away, as we won't be able to seek back if ico fails.
Check a file header, if it's not a 0010 (ico file format), then we don't even need to try to create ico
Additionally: makes headless platform icon stub more useful (actually keep memory stream internally).

Fixes #7784

You can test this PR using the following package version. 11.0.999-cibuild0036420-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

It's possible to copy the stream to MemoryStream, which is always seekable. Completely changing behaviour just because the stream doesn't support seeking is surprising behaviour.

Completely changing behaviour just because the stream doesn't support seeking is surprising behaviour.

But that's an implementation detail in the end. Resulting icon will still be created from the decoded bitmap.
It does make sense to make an in-memory stream, if input stream is not seekable. But I would leave it for another time.

A ICO file can contain many different image resolutions, but Bitmap loads only the largest and throws away the rest. This leads to terrible quality when e.g. a 512px image is downscaled to 16px.
Luckily file and resource streams are both seekable, so this issue shouldn't have much impact in practice.
BTW, I already have a branch with substantial changes to window icons to fix #11569. I'll open a PR after 11.0 is finalised,


Tiled windows do not respect the "Windows Go Below" panel setting.

Symptom
Thanks for maintaining this amazing script! As the title says, setting the "Windows Go Below" panel setting, makes tiled windows just go behind the panel instead of correctly tiling below it.
How to Reproduce

Edit panel and set it as "Windows go below"
Windows get behind the panel

Expected behavior
Windows must go below instead of behind.
Environment

Distro: Artix Linux (openrc)
KWin version: kwin <IP_ADDRESS>-1
Krohnkite version: 15e916b
List of KWin scripts in use: N/A

Notes
Anything that you want to tell developers about.

Windows must go below instead of behind.

I cannot understand what difference between 'below' and 'behind' in this context. Could you disable the script, reboot and make screenshot with the right window arrangement.


Execution tests for typing tests passing rows in typing_tests

Part of https://github.com/cupy/cupy/issues/4831.

/test mini


Possible to launch app NOT in chrome tab?

As discussed in #2996 I am trying to get crouton working and launching apps without using a linux desktop environment.
Assuming that I can get this working I was wondering if it is possible to launch application using the x-windows server thing (sorry, very new to this, don't know correct terminology) but not in a chrome tab.
The address bar, tabs and book mark bar and so on at the top of the browser takes up a significant amount of room and if I am working in Visual Studio Code for example and more pixels I can use to display my code is a win!
Is there a way to launch apps in a "chromeless" chrome tab?
Thanks

@roaders I don't know of a way to launch the chroot without having the crosh shell tab open - but you might be able to full screen the browser window/tab that would give you more screen real estate?
You can try:
Shift + F4 (maximise window)

Or - if you browse to: chrome://flags in a tab
One of the options there should be 'Immersive Fullscreen' which you can enable (requires a restart).

I found some more wisdom -you might be able to launch it full screen using the -F argument:
Options:
$("$ENTERCHROOT" -h 2>&1 | grep -e ' -[bckntu]')
    -F          Launch the chroot_app full-screen.
    -T          Launch the chroot_app in a tab.
    -f          Prevent xiwi from quitting automatically. (see NOTE below)

Aha- that help screen did the trick, many thanks.


org settings: Fix word-wrapping CSS in "users" section.

Fixes: #9225.
I think this is the desirable behavior (here is IagoIago... is a very large name and only it gets split)

Great, thanks @shubhamdhama!


Weird dialog behavior

https://github.com/material-components/material-web/assets/8685280/adb05cbd-d5f0-4bff-b3d8-c3f2d0461d4b
Quick explainer
In the video you see the first dialog doesn't register the button click, it "clicks" the scrim but when pressing enter the button does register!
Second one works as expected registers button click and shows a pointer as cursor
note that the working one is without the focus

Also encountered that dialog listens to the mouse out event (understandable) but should add a way to prevent it closes when selecting text like in an input field
Probably best to check if the click started in the dialog
https://github.com/material-components/material-web/assets/8685280/6dc60f26-4387-47cc-801b-9b3298cc86ed

For OP https://github.com/material-components/material-web/issues/4756#issue-1858248455, I'm not able to reproduce that. Can you provide a reproduction or the html/js you're using for the dialog?
For https://github.com/material-components/material-web/issues/4756#issuecomment-1688665859 #1, I'm not sure how we'd go about that, since a parent can't know about the size of its absolutely positioned children. You'll always need an explicit height and width on the parent.
If you have something else in mind, can you provide an example with the browser <dialog> element of what you're looking for?
For https://github.com/material-components/material-web/issues/4756#issuecomment-1688665859 #2, what styles do you have on your content? It looks like it's setting width: 100%, which shouldn't be needed. I agree with your points on padding vs margin though, I'll see if I can make that swap.
For https://github.com/material-components/material-web/issues/4756#issuecomment-1690548111 I filed https://github.com/material-components/material-web/issues/4894

Swapped to padding in https://github.com/material-components/material-web/pull/4896

"For OP https://github.com/material-components/material-web/issues/4756#issue-1858248455"
I can't reproduce except in that one use case, it's a weird one, it works in allot of other projects and they are all setup the same but with easy-home its a problem, so for now just added all in shell instead of the imported views (when selected)
https://github.com/material-components/material-web/issues/4756#issuecomment-1688665859 https://github.com/material-components/material-web/issues/1
I don't  have a better solution that would "fix" one would think flex-box would fix it but it doesn't, I hoped you would know some hack
https://github.com/material-components/material-web/issues/4756#issuecomment-1688665859 https://github.com/material-components/material-web/pull/2
In some cases setting the width is needed
When using like list-item without list you would need to set the width to 100% else it wouldn't take the whole space

I don't have a better solution that would "fix" one would think flex-box would fix it but it doesn't, I hoped you would know some hack

You could have the first "pane" of content be real content with position: relative to get the width and height, then use CSS to slider/layer other absolutely positioned child panes. That requires them all to be the same size, though.
You can also programmatically update the width/height of the dialog when it opens based on the size of one of the absolutely positioned panes.

In some cases setting the width is needed
When using like list-item without list you would need to set the width to 100% else it wouldn't take the whole space

I don't think I'm able to reproduce that problem https://lit.dev/playground/#gist=be36f7c9190534c0fe0f7838f934bdc1
Setting width on a content child to 100% should make it stretch to the slot="content" element.

"For OP https://github.com/material-components/material-web/issues/4756#issue-1858248455"
I can't reproduce

I'm going to close this issue since there isn't much actionable right now, but feel free to keep the discussion going!

You could have the first "pane" of content be real content with position: relative to get the width and height, then use CSS to slider/layer other absolutely positioned child panes. That requires them all to be the same size, though.

Thanks @asyncLiz That gave me an idea


Update Composer dependencies (2023-11-21-00-18)

Visual regression test passed!
View the visual regression test report


Update 0033-search-in-rotated-sorted-array.java

Removed some unnecessary functions to make the code simpler and make it similar to the python solution.

File(s) Modified: 0033-search-in-rotated-sorted-array.java
Language(s) Used: java
Submission URL: https://leetcode.com/problems/search-in-rotated-sorted-array/submissions/937246213/

Hello, thanks for your contribution but a PR for fixing this problem was made before yours already.


Expose Embrace client's metadata to ObjC

Description
MetadataHandler is defined as an ObjC class but not exposed to ObjC - Adding @objc to metadata prop in Embrace client to use in ObjC.
Checklist

[x] PR Description to summarize changes
[x] Add sufficient test coverage - Not sure if this is applicable as I just added one tiny change to prop
[x] Read Contributing Guidelines
[x] Agree to Embrace CLA

The "Run Swift Tests" action failed, but not because any tests in the suite failed; it was due to an internal issue (which I address in this PR). Therefore, I see no issue with merging since the real check is that none of the tests are broken. Again, thank you for your contribution @Germantv!

Super excited to be able to contribute! Love your guys' work!! 😄

Quick question @ArielDemarco - When will this go out into a release?


[DC-712] Create Validation Framework for Individual Cleaning Rules

Signed-off-by: Krishna Kalluri<EMAIL_ADDRESS>

This is potentially problematic. This will allow the _affected_tables variable to be set differently under different conditions (constructor setting vs. property setting where a class may override the property). This has the potential of diverging conditions. You should use the setter method in the initialization.
self.set_affected_tables(affected_tables)

This is an example of potentially diverging behavior, using a setter function and using an assignment statement in the constructor. The constructor allows the variable to be a string but the setter function doesn't not. This is divergent behavior and will be hard to debug.
class Example2(object):
    def __init__(self, var1=None):
        self._var1 = 'booya'

    def get_var1(self):
        return self._var1

    def set_var1(self, value):
        if not isinstance(value, int):
            raise RuntimeError('Wrong type')

        if value:
            self._var1 = value
        else:
            self._var1 = 3

    var1 = property(get_var1, set_var1)

if __name__ == "__main__":
    print('====================================================')
    e2 = Example2()
    print('-----------------------------------------------------')
    print(f'e2 var1 is:\t{e2.var1}') # will call the method get_var1()  # proves that the variable was initialized with a string value
    print('-----------------------------------------------------')

    e2.var1 = 'alsdfjk' # will call the method set_var1().  this will cause a runtime error because the setter doesn't accept string values.
    print(f'e2 var1 is:\t{e2.var1}') # will call the method get_var1()

so essentially changing self._affected_tables = affected_tables if affected_tables else [] to
self.set_affected_tables(affected_tables)  would fix the issue?

so essentially changing self._affected_tables = affected_tables if affected_tables else [] to
self.set_affected_tables(affected_tables) would fix the issue?

yes, then it would use the same logic to set the variable via the class initialization method or via the variable assignment function.


Module not found: Can't resolve 'moment' in '/Users/xxx/react/project_name/node_modules/react-datepicker/es'

I installed the momentjs using "npm i react-moment --save"
My moments js is installed in node_modules/react-moment
Should I import
import moment from 'react-moment';
or
import moment from 'moment'; (this is given in example)
Although both are not working, I get the same error!
Expected behavior
Should be able to import react correctly
Actual behavior
Gives module not found error
Steps to reproduce
Installed datepicker using npm
installed momentjs using npm
Still getting this error

Did you restarted your builder watch mode?

Moment.js was removed in #1527, starting v2.0.0, this package doesn't use Moment anymore.


[GUI] Leave the device creation screen without select any template

In the device creation screen you can not exit the screen (except through the main menu) if you give up the creation and have not selected any template.
The behavior on the other screens is different: it has a "return" button.

Return button has been added in device creation/edition.