Have circuits capable of hosting services

We are interested in having a list of "services" assigned to a circuit.
This would be a new container in the GUI similar to what exists on devices.
We could use the current services configuration fields even though it is not directly applicable to my use-case.
I have another concept I´m trying to put together that relates to idea of Netbox managing a new object called services  ...but that is perhaps too extensive.
It would be useful to be able to assign/refrence a backup/secondary circuit to the service.
Assume same could apply to services hosted on devices?
The usecase relates to our setup.
We could have circuits either failing or being reported to go to scheduled down time (maintenance).
For this I want to see a list of services transported across that circuit and would be affected.
Also useful to see what services are being routed over secondary circuit as backup so they will be protected.
Assume this is a minor add-on as this feature already exists for devices and is to be applied to circuits the same way. At least for the simple version, without reference to secondary/backup device/circuit

NetBox models TCP/UDP services only as they relate to specific devices. Tracking higher-level modeling of dependencies is out of scope for the project.


Add flax.linen.ConvLocal, a.k.a. unshared convolution

What does this PR do?
Add local/unshared convolution, a.k.a. locally-connected layer - a convolution without weight sharing, i.e. having an individual kernel applied at each output spatial location (as opposed to a single kernel shared between all locations, which is used in standard convolutions).
Related to #1205 - this is equivalent to tf.keras.layers.LocallyConnected2D, or neural_tangents.stax.ConvLocal.
Checklist

[ ] This PR fixes a minor issue (e.g.: typo or small bug) or improves the docs (you can dismiss the other
checks if that's the case).
[ ] This change is discussed in a Github issue/
discussion (please add a
link).
[x] The documentation and docstrings adhere to the
documentation guidelines.
[x] This change includes necessary high-coverage tests.
(No quality testing = no merge!)

Is there a way to run tests at JAX head? This relies on a recent merge https://github.com/google/jax/pull/4671

We do need this to be in a JAX release before we can expose it in Flax

Codecov Report

Merging #1856 (5403a04) into main (cb5ebcd) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1856      +/-   ##
==========================================
+ Coverage   70.51%   70.68%   +0.16%
==========================================
  Files          58       58
  Lines        4887     4915      +28
==========================================
+ Hits         3446     3474      +28
  Misses       1441     1441

Impacted Files
Coverage Δ

flax/linen/__init__.py
100.00% <100.00%> (ø)

flax/linen/linear.py
99.16% <100.00%> (+0.11%)
:arrow_up:

Continue to review full report at Codecov.

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

Updated following JAX 0.3 release - please take a look!

Thanks @jheek, addressed your suggestions, ptal!


Increase duration of timeout countdown

NAME OF PAGE/COMPONENT
Timeout notification
PART OF DESIGN TO CHANGE
An edit to the design specification: the duration of the timeout countdown should be changed from 10s to 20s.

The countdown duration is 20s


--no-linker option

Sails version: 0.12.1
Node version: v4
NPM version: v2
Operating system: Ubuntu

Hi,
In the documentation, a --no-linker option is mentionned: http://sailsjs.org/documentation/reference/command-line-interface/sails-new
However, a sails new with this option do not seems to have any impact. Is this option deprecated ?
Regards,
Sylvain

ok, fixed!

However, a sails new with this option do not seems to have any impact.

This is not what I would call "reproducible steps".  I guess the question is, what impact were you expecting?
The --no-linker option does exactly what it says: removes the Grunt tasks that automatically "link" (i.e. inject) assets into your view files.  Specifically, the linkAssets task is not added to the default or watch tasks.  So your default layout.ejs file will never have anything inserted in between the <!--STYLES--><!--STYLES END-->, <!--SCRIPTS--><!--SCRIPTS END--> or <!--TEMPLATES--><!--TEMPLATES END--> tags.  Try it!

This is reproductible !
~/D/WORKSPACE> sails new test1
info: Created a new Sails app `test1`!

~/D/WORKSPACE> sails new test2 --no-linker
info: Created a new Sails app `test2`!

~/D/WORKSPACE> diff test1/tasks/ test2/tasks/
Les sous-répertoires test1/tasks/config et test2/tasks/config sont identiques
Les sous-répertoires test1/tasks/register et test2/tasks/register sont identiques

With or without this option, the tasks are the same.

Listing that as part of the original comment would have been better!  But try the magic -r (recursive) option of diff to actually compare files in those subdirectories:
diff -r testnolinker/tasks/config/watch.js sailstest/tasks/config/watch.js
26c26
<       tasks: ['syncAssets'  ]
---
>       tasks: ['syncAssets' , 'linkAssets' ]
diff -r testnolinker/tasks/register/default.js sailstest/tasks/register/default.js
20c20
<   grunt.registerTask('default', ['compileAssets',  'watch']);
---
>   grunt.registerTask('default', ['compileAssets', 'linkAssets',  'watch']);

Oh, my bad :/
Thanks


Document Manger for Splunk

Hereby I am pushing document manager code for Splunk. I have tested it and running in my environment.

@asifhj
This is wonderful! Thanks for making this. Probably the best way to publish this document manager is to put it in its own Python package. This offers a number of advantages:

You won't have to make more pull requests to make changes/additional versions of your DM.
You can write your own README and documentation on your DM's github page.
Issues and pull requests against your DM can be tracked separately from issues against MC itself.

There are instructions for how to do this here. Please let me know if there's anything I can do to support this.
I'll also start a "List of DocManagers for Mongo Connector" in the wiki or REAMDE that will point to your project.

Hello @asifhj did you ever publish the Splunk doc manager?

I did not publish can you help me to publish this doc manager.

Yes, what do you need help with?
In my opinion the most difficult part of publishing a separate doc manager is the namespace packaging, but you should just copy the elastic doc manager's package layout and setup.py.
There is also a wiki page for writing your own doc manager, https://github.com/mongodb-labs/mongo-connector/wiki/Writing-Your-Own-DocManager which should help with any implementation details.

Closing this because any new doc managers should be packaged separately.


bem meshes generated by brainsuite cannot be downsampled (mne.make_bem_model))

Hi guys,
I'm having some issues with the BEM meshes for my EEG data.  I've tried two approaches:
(1) Using freesurfer watershed and trying different preflood levels, but it seems to do a bad job with the outer_skull.surf being misplaced (it extends down to the neck, mostly following the outer_skin.surf).  Will this be problematic for source localization?  Is there a way to overcome this?

(2a) I've had better success with using Brainsuite and have followed the guidelines (https://martinos.org/mne/stable/manual/appendix/bem_model.html); converting it from dfs to surf using mne_convert_surface, and then reducing the number of triangles to 10,000 using mne_reduce_surface.  When I try to run mne.make_bem_model, I get the error:

File "/usr/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 344, in _ico_downsample
raise RuntimeError(bad_msg)
RuntimeError: A surface with 10000 triangles cannot be isomorphic with a subdivided icosahedron.

I can overcome this issue by setting 'ico=None' but am not sure if this affects source localization.  I've attached the .surf I generated using Brainsuite on the MNE sample dataset if anyone wanted to test it.
MNE sample dataset:
inner_skull.surf.gz
outer_skin.surf.gz
outer_skull.surf.gz
(2b) When I set the 'ico=None', I run into a new issue with mne.make_bem_solution after mne.make_bem_model.  I don't get this issue with the MNE sample dataset but with my acquired T1's.
My acquired T1's:
inner_skull.surf.gz
outer_skin.surf.gz
outer_skull.surf.gz
bem = mne.make_bem_solution(surfaces, verbose='INFO')

Approximation method : Linear collocation
Three-layer model surfaces loaded.
Computing the linear collocation solution...
Matrix coefficients...
head (5002) -> head (5002) ...
/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py:151: RuntimeWarning: divide by zero encountered in double_scalars
miss /= (4.0 * n_memb)
head (5002) -> outer_skull (5002) ...
head (5002) -> inner_skull (5002) ...
outer_skull (5002) -> head (5002) ...
outer_skull (5002) -> outer_skull (5002) ...
outer_skull (5002) -> inner_skull (5002) ...
inner_skull (5002) -> head (5002) ...
inner_skull (5002) -> outer_skull (5002) ...
inner_skull (5002) -> inner_skull (5002) ...
Inverting the coefficient matrix...
Traceback (most recent call last):
File "", line 1, in
bem = mne.make_bem_solution(surfaces, verbose='INFO')
File "</dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/externals/decorator.py:decorator-gen-39>", line 2, in make_bem_solution
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils/_logging.py", line 88, in wrapper
return function(*args, **kwargs)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 326, in make_bem_solution
_fwd_bem_linear_collocation_solution(bem)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 267, in _fwd_bem_linear_collocation_solution
m['solution'] = _fwd_bem_multi_solution(coeff, m['gamma'], nps)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 225, in _fwd_bem_multi_solution
return linalg.inv(solids, overwrite_a=True)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/linalg/basic.py", line 945, in inv
a1 = _asarray_validated(a, check_finite=check_finite)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/_lib/_util.py", line 239, in _asarray_validated
a = toarray(a)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/numpy/lib/function_base.py", line 498, in asarray_chkfinite
"array must not contain infs or NaNs")
ValueError: array must not contain infs or NaNs

Any ideas?  Thanks for your help guys!

I cannot reproduce the issue you reported on the listserv with the sample surfaces. I put the unzipped surfaces in foo/bem and ran:
import numpy as np
import mne
bem = mne.make_bem_model('foo', None, subjects_dir='.', verbose=True)
with np.errstate(invalid='raise', divide='raise'):
    sol = mne.make_bem_solution(bem, verbose=True)

I just noticed that you uploaded the sample dateset surfaces. If we are going to debug the error you got (with the divide by zero), we'll need the actual problematic surfaces.

... I see you've now edited it include the surfaces (GitHub just updated the page for me -- we are not notified of edits.) I'll take a look now.

Your surface has topological defects, two of the vertices have fewer than 3 neighbors. This should be fixed somehow (not sure how). My guess is that it's in the eyes based on the output of:
mne.viz.plot_alignment(surfaces=('inner_skull', 'outer_skull', 'outer_skin'),
                       subjects_dir='.', subject='foo')

See #6133 where we raise an informative error message, in your case this is:

Surface outer skin  has topological defects: 2 / 10000 vertices have fewer than three neighboring triangles [1513, 2566]

Ok, thanks for the help.  I'll keep an eye out on the pull request.


read http_server handles delayed point arrival - unit test failure

Seen here:
https://travis-ci.org/juttle/juttle/jobs/111805037#L3229

Another occurence:
https://travis-ci.org/juttle/juttle/jobs/111810288#L3236

@demmer did some digging around in the code to figure this one out and the one thing I did find is that the pendingRead usage here: https://github.com/juttle/juttle/blob/master/lib/adapters/http_server.js#L80 since we rely on pendingRead which is always set before or after the timeout here: https://github.com/juttle/juttle/blob/master/lib/adapters/http_server.js#L108 It would mean that we'd be calling pendingRead even when the Promise created in read had already timedout and basically throwing points away. There doesn't seem to be an easy fix by attempting to set the pendingRead back to undefined as there's no point where you can set that back synchronously with the timeout occurring (hope that made sense). So I think we have to rewrite this adapter a bit to make this work just right as the test that is failing highlights the problem from time to time.


Add index.js

Could you detail why you proposed this change? Also, don't you think that changing the main file will break some of the installs? ;)

ping @Diyahon

This is comfortably for webpack. And is not broke if add this code to main file:
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){ module.exports = 'infinite-scroll'; }
Then don't need change main file in package.json.

Could you then update your PR so we don't have to update the package.json
file?
On Fri, 19 Feb 2016 at 08:17, Diyahon<EMAIL_ADDRESS>wrote:

This is comfortably for webpack. And is not broke if add this code to main
file:
if (typeof module !== "undefined" && typeof exports !== "undefined" &&
module.exports === exports){
module.exports = 'infinite-scroll';
}
Then don't need change main file in package.json.
—
Reply to this email directly or view it on GitHub
https://github.com/sroze/ngInfiniteScroll/pull/252#issuecomment-186113787
.

Sorry, I was busy with work. I will do it on this holidays.

closing in favour of https://github.com/sroze/ngInfiniteScroll/pull/271


Generate key for cosign

Please describe the Improvement and/or Feature Request

Scope (please mark with X where applicable)

New Functionality              [ ]
Install                        [ ]
Gateway API - GatewayClass     [ ]
Gateway API - Gateway          [ ]
Gateway API - HTTPRoute        [ ]
Gateway API - TLSRoute         [ ]
Gateway API - TCPRoute         [ ]
Gateway API - UDPRoute         [ ]
Gateway API - PolicyReference  [ ]
Ingress                        [ ]
Egress                         [ ]
MultiCluster                   [ ]
PIPY Control Plane             [ ]
PIPY Script/Config             [ ]
CLI Tool                       [ ]
Metrics                        [ ]
Certificate Management         [ ]
Sidecar Injection              [ ]
Logging                        [ ]
Debugging                      [ ]
Tests                          [ ]
Demo                           [ ]
CI System                      [ ]
Project Release                [ ]

Possible use cases

Generate key for cosign and configure COSIGN_KEY, COSIGN_PUB, COSIGN_PASSWORD in repository secret page.

DONE.


The localization example for Slovenia on your website is wrong.

I'm submitting a ...

[ x] bug report
[ ] feature request
[ ] other

Current behavior:

The example for localization on the Angular.js website is wrong for Slovenia.
You are displaying results for Slovakia.
Slovenia !== Slovakia // is not the same.
Look it up on Wikipedia or here:
https://countryeconomy.com/countries/compare/slovenia/slovakia
Expected / new behavior:

Minimal reproduction of the problem with instructions:

AngularJS version: 1.x.y

Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Anything else:

Can you add more info? What example are your referring to? What is the page URL?

On the Homepage maybe? We do use the "SK" locale, but there is no mention of "Slovakia" or "Slovenia".

Yes, SK is a hard-coded locale (for demonstation purposes). We don't try to detect the user's locale.


Add a shortcut key to quickly turn off Keyboard Manager

Description of the new feature / enhancement
In order to rapidly turn keyboard manager on or off when needed, try adding a shortcut key (such as F1 or ctrl+F1).
Scenario when this would be used?
This will make it easier to transition quickly between casual (like gaming) and formal (like office) use. To activate or deactivate the Keyboard manager, you don't need to launch the PowerToys app every time. Just hit the shortcut key to get started.
Supporting information
No response

/dup #4879


[ARM] az deployment sub/group what-if: Fix array alignment and error handling

Description
We found a couple of small issues in the newly added az deployment sub/group what-if commands. The PR contains fixes for them:

Fix a typo in a parameter help message
Fix alignment for non-empty array in What-If results
Added error handling for what-if error with 200 status code

Testing Guide
To execute a resource group level what-if, run:
az deployment group what-if --template-file <path-to-template-file>

To execute a subscription level what-if, run:
az deployment sub what-if --template-file <path-to-template-file>

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

add to S169

Hi @zhoxing-ms Could you help take a look when you get a chance?

Hello @Juliehzl and @qianwens, could one of you take a look this PR?


[Superseded by Rewrite] Limit queue input to 1 job per user at a time.

Currently when a user submits a multi-query job, we shotgun all the jobs onto the queue all at once.
Instead, the jobs should be submitted to the queue one at a time per user.  When one job finishes for their batch, another is submitted starting from the combined job then the individual sequences in the order they appear in the query.  Once a  user's job completes the next will be added to the queue, allowing other users to get jobs in between long running jobs.
This means the only way to "clog" the queue would be if 10 users submitted large overlapping jobs.
This will require reworking the queue system to provide feedback to the service as soon as a job completes.
This depends on issue #96

If resolved, this issue invalidates #110

Rewrite uses 2 queues, this may no longer be an issue.


[Analysis Server] Support for Snippets

As far as I can tell there is snippetSupport in the LSP spec. It seems like the Dart analysis server does set this to true in its capabilities, but I can't seem to get it to actually send any snippets (in Dartboard).
Useful snippets (that are also available in VSCode, but seem to be contributed directly and not by the analysis server) include:

Constructor for the currently selected class
import statements (with the cursor being set in between the '' of the statement)
function/method signatures

Is this something that is planned? Or am I missing something, and this is already present?
(cc @DanTup)

The server doesn't currently have any code snippets so the ones shown in the other editors are provided themselves (VS Code's are at https://github.com/Dart-Code/Dart-Code/tree/master/snippets, which is basically a copy of those in IntelliJ/Android Studio). I think this has come up before but I can't find an existing open issue.
It would be nice to have these to the server but I'm not sure how it'd play with things like Flutter (the Flutter snippets should really be included in the Flutter SDK so they're maintained and versioned with it).
In the meantime, can you supply the snippets yourself like the other editors do? The ones we have in VS Code change very infrequently so it hasn't been too much of an overhead.

This came up in https://github.com/Dart-Code/Dart-Code/issues/3347 in the context of snippets being aware of the language version they're being inserted into (for example whether or not a library is opted in to NNBD and allowed to have ?). Some notes on possible implementation here:

https://github.com/Dart-Code/Dart-Code/issues/3347#issuecomment-842174815
https://github.com/Dart-Code/Dart-Code/issues/3347#issuecomment-844200616
https://github.com/Dart-Code/Dart-Code/issues/3347#issuecomment-844218472

Using completion might not be the right thing, although for LSP the snippets would need to be merged into the completion list since that's where it expects them. Some care will need to be taken to ensure VS Code can seamless switch to them (without producing dupes, or no snippets) but ultimately they should be included for LSP clients by-default (as long as the client supports the snippet format in completions).

@alexander-doroshko @jwren For input on the IntelliJ support that would be required.
@keertip For input on internal tools.

What is "ENABLE SERVER SNIPPETS" in VS CODE Dart

@fisforfaheem this setting does not currently do anything and should be left in its default state. It was added now so that it's an option in future for the LSP server to include server snippets by default (for the benefit of other editors using the LSP server) without causing duplicate snippets to appear in older versions of the VS Code extension (once from the server, and once from the extension itself).

This has been done - the LSP server now supplies snippets (they're enabled by default, and can be controlled by the dart.enableSnippets setting).

Oops, I assumed this issue was LSP-specific because of the original post, but there are comments above about IntelliJ and internal tools and I don't know the status of those.


Fix lint/IDE warnings in PocketUtils

As stated in the Readme we're currently not accepting PRs.
We're in progress of converting files to Kotlin so contributions to Java files are not required.


AttributeError: 'LlamaForCausalLM' object has no attribute 'score'

System Info
accelerate==0.21.0
torch==2.1.0
numpy==1.26.4

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction

Fine tune the model llm-models/Llama-2-7b-chat-hf using deepspeed, ray and accelerate
Generate a checkpoint of 16 shards
use the generated file named zero_to_fp32.py  to convert the deepspeed model to fp32 model using command python
zero_to_fp32.py ../checkpoint_000002/  pytorch_model.bin

[2024-02-22 15:23:38,445] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Processing zero checkpoint '../checkpoint_000002/global_step0'
Detected checkpoint of type zero stage 3, world_size: 14
Parsing checkpoint created by deepspeed==0.13.2
Reconstructed Trainable fp32 state dict with 291 params<PHONE_NUMBER> elements
Saving fp32 state dict to pytorch_model.bin

run the code below for inference

import torch
import ray
from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM
from accelerate import (
    init_empty_weights,
    infer_auto_device_map,
    load_checkpoint_and_dispatch,
)
model_name = 'llm-models/Llama-2-7b-chat-hf'
full_model_ckpt_path = '/checkpoint_000002'

with init_empty_weights():
    config = AutoConfig.from_pretrained(model_name)
    meta_model = AutoModelForCausalLM.from_config(config)
meta_model.tie_weights()

device_map = infer_auto_device_map(
    meta_model,
    # max_memory={0: "15GB", "cpu": "60GB"},
    no_split_module_classes=["LlamaDecoderLayer"],
)

model = load_checkpoint_and_dispatch(
    meta_model,
    checkpoint=full_model_ckpt_path,
    device_map=device_map,
)

get the error below
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 2
      1 # Load the model parameters
----> 2 model = load_checkpoint_and_dispatch(
      3     meta_model,
      4     checkpoint=full_model_ckpt_path,
      5     device_map=device_map,
      6 )

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/accelerate/big_modeling.py:490, in load_checkpoint_and_dispatch(model, checkpoint, device_map, max_memory, no_split_module_classes, offload_folder, offload_buffers, dtype, offload_state_dict, skip_keys, preload_module_classes)
    488 if offload_state_dict is None and device_map is not None and "disk" in device_map.values():
    489     offload_state_dict = True
--> 490 load_checkpoint_in_model(
    491     model,
    492     checkpoint,
    493     device_map=device_map,
    494     offload_folder=offload_folder,
    495     dtype=dtype,
    496     offload_state_dict=offload_state_dict,
    497     offload_buffers=offload_buffers,
    498 )
    499 if device_map is None:
    500     return model

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/accelerate/utils/modeling.py:1336, in load_checkpoint_in_model(model, checkpoint, device_map, offload_folder, dtype, offload_state_dict, offload_buffers, keep_in_fp32_modules, offload_8bit_bnb)
   1334                 offload_weight(param, param_name, state_dict_folder, index=state_dict_index)
   1335         else:
-> 1336             set_module_tensor_to_device(
   1337                 model,
   1338                 param_name,
   1339                 param_device,
   1340                 value=param,
   1341                 dtype=new_dtype,
   1342                 fp16_statistics=fp16_statistics,
   1343             )
   1345 # Force Python to clean up.
   1346 del checkpoint

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/accelerate/utils/modeling.py:255, in set_module_tensor_to_device(module, tensor_name, device, value, dtype, fp16_statistics)
    253 splits = tensor_name.split(".")
    254 for split in splits[:-1]:
--> 255     new_module = getattr(module, split)
    256     if new_module is None:
    257         raise ValueError(f"{module} has no attribute {split}.")

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/torch/nn/modules/module.py:1695, in Module.__getattr__(self, name)
   1693     if name in modules:
   1694         return modules[name]
-> 1695 raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")

AttributeError: 'LlamaForCausalLM' object has no attribute 'score'

Expected behavior
no error and generate a model which can be used for inferencing

find out why, close it. False alarm


istat/cities limited to 10000 records, but CSV has 34542 rows

By using the https://www.schema.gov.it/api/vocabularies/istat/cities endpoint we have that:
{
    "totalResults": 10000
}

But in the CSV we have 34542 rows at the moment.
Why?
Furthermore, if we try to access the entries at an offset greather than or equal to 10000, we have an HTTP 500 (Internal Server Error) response (example).

use sparql

@mlocati una soluzione potrebbe essere usare SPARQL come suggerisce @Riccardo644 stiamo provando a capire se cambiare l'endpoint


Release 1.10.4

:bug: Bug Fixes

[x] Fix #137.
[x] Fix #191.
[x] Fix #192.
[x] Fix #197.
[x] Fix #198.

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

npm package (@latest dist-tag)
Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:


Add JSON type for custom fields

Overview
Users often need to support more advanced data structures as a custom field.  This would add support for a JSON type to this list of available options when creating a CF.

User Story
As Austin a Network Automation Engineer,
I want to be able to create custom fields that can store JSON data,
so that I am not required to use config contexts.  This will allow me to ensure these fields are "required" when adding/editing objects.
Acceptance Criteria

[ ] Allows a CF to be of "JSON" data type
[ ] Validates submitted data is valid JSON
[ ] To view CF data of JSON type, a "View Value" link should be presented to see the full payload. This keeps the UI clean for large JSON values.
[ ] Basic searching (icontains) of JSON custom fields in UI and API

Out of Scope

Is it NOT expected to be able to search into the field value

I think this is a very desirable feature, right now I misuse the comment field for that, as a custom text field cannot be long enough...

Would the idea here be to use JSON custom fields to store "large"/"complex" data that isn't more suitably represented as a collection of individual value custom fields (text/integer/boolean)?
It seems like if we go this direction we'd also want to link JSON custom fields with the JSON schema feature for format validation/enforcement - does this make sense as an additional requirement?

Would the idea here be to use JSON custom fields to store "large"/"complex" data that isn't more suitably represented as a collection of individual value custom fields (text/integer/boolean)?

Yes, and data that inherently has some relationship and hierarchy to it.

It seems like if we go this direction we'd also want to link JSON custom fields with the JSON schema feature for format validation/enforcement - does this make sense as an additional requirement?

I didn't mention that as I thought we would have that as a separate issue and possibly not in the initial implementation. Thoughts?  Is it possible to use the implementation of the Context Schemas?

Would the idea here be to use JSON custom fields to store "large"/"complex" data that isn't more suitably represented as a collection of individual value custom fields (text/integer/boolean)?

Yes, for example I have VMs which have multiple assigned SSH Keys, and I don't know how many beforehand. So I have a JSON dict, which has this information. As well the storage information for a VM.
The "right" way would be to extend all the models with the relevant stuff, but I'd like to stay with the default nautobot installation, as everything else will cause problems in the future (with updates) etc...

It seems like if we go this direction we'd also want to link JSON custom fields with the JSON schema feature for format validation/enforcement - does this make sense as an additional requirement?

That would be cool - but I think a little bit grander: Why not having the relevant information from the schema available as direct fields, instead as one large JSON blob? I could then define my further required options without "coding", and maybe directly access and search for items in this json?
This, however, is a much larger scope then just adding the fields..

That would be cool - but I think a little bit grander: Why not having the relevant information from the schema available as direct fields, instead as one large JSON blob? I could then define my further required options without "coding", and maybe directly access and search for items in this json? This, however, is a much larger scope then just adding the fields..

Yes, 100%.  From a practical perspective, we can build out the feature in 3 steps:  1) add JSON support (no schema) 2) add JSON schema support 3) look to auto-generate forms based on the schema.  For this FR, it is just 1.

Initially taking on the JSON support (no schema) per #1 above.

Does this also need support in pynautobot as well?

Implemented with #1075.


ModuleNotFoundError: No module named 'fedtrain'

Hi, I'm currently trying to learn and reproduce your paper's code. I am new to the field of AI security. I tried to run your code on Colab, but when I run "python3 sim-train.py", the error message says that the fedtrain package is missing. Could you please tell me how to install this package?
This is what I got.
[10, 11, 10, 10, 10, 9, 10, 10, 10, 10]
attacker ids:  [6, 11, 17, 18, 20, 24, 29, 36, 37, 38, 41, 42, 50, 51, 53, 56, 61, 94, 95, 96]
2023-03-22 03:45:57.772040: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-22 03:45:58.756744: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-03-22 03:45:58.756890: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.9/dist-packages/cv2/../../lib64:/usr/lib64-nvidia
2023-03-22 03:45:58.756911: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
  File "/content/gdrive/MyDrive/AISecurity/Learning-to-Attack-Federated-Learning-main/Learning-to-Attack-Federated-Learning-main/sim_train.py", line 38, in <module>
    import fedtrain
ModuleNotFoundError: No module named 'fedtrain'
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
[<ipython-input-13-2d7d316d0beb>](https://localhost:8080/#) in <module>
----> 1 get_ipython().run_cell_magic('sh', '', 'python3 /content/gdrive/MyDrive/AISecurity/Learning-to-Attack-Federated-Learning-main/Learning-to-Attack-Federated-Learning-main/sim_train.py\n')

4 frames
<decorator-gen-103> in shebang(self, line, cell)

[/usr/local/lib/python3.9/dist-packages/IPython/core/magics/script.py](https://localhost:8080/#) in shebang(self, line, cell)
    243             sys.stderr.flush()
    244         if args.raise_error and p.returncode!=0:
--> 245             raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
    246
    247     def _run_script(self, p, cell, to_close):

CalledProcessError: Command 'b'python3 /content/gdrive/MyDrive/AISecurity/Learning-to-Attack-Federated-Learning-main/Learning-to-Attack-Federated-Learning-main/sim_train.py\n'' returned non-zero exit status 1.

This is a bit urgent for me, so if you could reply as soon as you have time, I would really appreciate it.

By the way, Could you please provide the hardware specifications required to run the code, such as GPU?

Thanks for your quick answer!


Stream gets 401 in all versions after to 1.1.0

When I try and use the stream API with 1.2.x, I'm getting an immediate 401 error.    Rolling back to 1.1.0 resolves the 401 error.

Figured this out.   The config object no longer allows an array for the "follow" property.   The follow needs to be a comma delimited list of ids.
In other words, I had to change
{  follow: [123, 456, 789), track: ""}
to :
{ follow:"123,456,789", track: ""}

1.2 is not a valid API version...


Bug: useEffect not triggering on [deps] change

I stumbled upon this issue which initially I thought is React bug, but upon further investigation React Query seems like the next best candidate. Minimal project is created to demonstrate the problem. In card-status.js I registered useEffect which is watching for certain changes and it just displays the message whenever [deps] change. The problem is that one state change gets swallowed by useEffect. It can be seen if you click on a button and watch the console, useEffect is not triggered even though UI updates correctly aka rerender is triggered.
I have found that the issue is caused by line 60 in the same file.

if that line is commented out, then useEffect triggers properly when button is clicked. Also if setState on line 60 is called with number for example then it also behaves correctly.
Link to code example:
codesandbox: https://codesandbox.io/s/frosty-pateu-bh0ul
github repo: git@github.com:Tosheen/use-effect-bug.git
To Reproduce
Steps to reproduce the behavior:

Open the console and click on the activate trial button.
useEffect message is not visible upon clicking, even though [dependency] changed and UI is rerendered.

Expected behavior
useEffect should register new changes, since every other part of the UI does
Desktop (please complete the following information):

Windows 10
Browser: Chrome
Version: 92.0.4515.159

Additional context
React Query version: 3.21.1

Wow, I've just spent half an our going over your example, and I cannot get what's going on. At this point I'd guess you found a bug on react, but it seems crazy. I definitely wanna be a part of this conversation 😮

@Tosheen I made a fairly simpler version of your codesandbox that exhibits the same bug, in hope to get more people interested in this. I'm honestly perplexed.
Btw, I tried downloading the repo to my machine and building for production, but the bug is still there.

in mutation returning Promise is async, the docs says to use mutateAsync.
the line you suggested I believe re-renders the component, but the hook already changed the state while the re-render happens. Also I noticed that the hook it self is inconsistent.
you are returning a status field, or a status field with another 2 fields
using async:
https://codesandbox.io/s/inspiring-ride-cj35s
without changing anything except the dependency in useEffect (will work because of the mentioned above about inconsistency)
https://codesandbox.io/s/compassionate-currying-wr9g0
relevant docs:
https://react-query.tanstack.com/guides/mutations#promises
I generally prefer to refactor your code and split the mutation from the useQuery() hook

@lgenzelis Yeah your example is definitely easier to follow. Thanks for that. Hopefully we will get to the bottom of this.
@omaralsoudanii About inconsistency, original hook is using typescript and so called Algebraic Data types, it sounds fancy or complex but in essence depending on the status flag I know exactly which options are available thanks to typescript and I dont see any problems with that. Probably hook wont be that good when it comes to publishing it as a package, but for internal usage it works great.

Also why would setCounter(null) or setDummy(0) trigger a rerender if the actual state hasnt changed? New state and initial state are the same so the theory about rerendering while the hook changed doesnt seem that possible, even though it could be due to the bug :)

@Tosheen So did you check the examples I provided? Or did you stop when you read inconsistent?
I won't argue about the hook, but you can see in both links how the behaviour changed.
Regarding TS union types, I am not finding where I mentioned that, inconsistent is returning a promise in the useQuery hook.
And returning a regular object from the hook itself.
Otherwise what's your explanation for how it worked when I changed the dependency from status to the fancy complex word that you implied that ofcourse I don't know about it, the useEffect hook worked.
Actually ignore it, my bad for helping.

@omaralsoudanii I read your comment in detail, but the thing is there is nothing async in the example I provided nor in Igenzelis example so I dont think its relevant. I could be wrong of course. This just seems like a bug in general rather than improper usage.
I appreciate the help though.

@Tosheen what i meant while it's not async using promise in mutation you need to use the function provided in the docs, the behaviour is mentioned there is similar to this.
This sections:
https://react-query.tanstack.com/guides/mutations#mutation-side-effects
https://react-query.tanstack.com/guides/mutations#promises
From the docs:
When returning a promise in any of the callback functions it will first be awaited before the next callback is called
You might find that you want to trigger additional callbacks than the ones defined on useMutation when calling mutate. This can be used to trigger component-specific side effects. To do that, you can provide any of the same callback options to the mutate function after your mutation variable. Supported overrides include: onSuccess, onError and onSettled. Please keep in mind that those additional callbacks won't run if your component unmounts before the mutation finishes.
Use mutateAsync instead of mutate to get a promise which will resolve on success or throw on an error. This can for example be used to compose side effects.
I did exactly that in one of the examples and it worked. I think it boils down to this:

Please keep in mind that those additional callbacks won't run if your component unmounts before the mutation finishes.

@omaralsoudanii Exactly and I fully agree, in case I want to perform component specific use cases, like if mutation was successful then do some other things like fire analytics events etc, those events should not pollute the hook in any way. But what if I have a state which is hook specific, aka its available for every call site and which is independent from react query? In that case we are still left with this bug. Again I could be wrong, and there are many solutions to this problem, you have also provided a solution.
I am just curious to see if this is the actual bug or not.

is this similar to / related to this issue?
https://github.com/tannerlinsley/react-query/issues/1535
oddly enough, it also works in your example if you switch the order in onSuccess: The effects trigger correctly if you call setDummy(0) first 🤯
    onSuccess: (result) => {
      setDummy(0)
      queryClient.setQueryData("message-upgrade", result);
    }

I am not sure, re-render does happen cause its reflected in UI, but useEffect doesnt register new changes. Probably it is due to some optimizations but who knows. I couldnt reproduce this bug without react query though.

@Tosheen
The issue is using the setState function inside the onSuccess callback, if I understood what you're saying correctly then you want this functionality:
1- a custom hook where you can import from anywhere, which is independent from react query
2- however it does use react query to do some stuff
3- and you would like to have a react state to fire another events irrelevant to react query
4- and this state would be tied to the UI since you are adding it as a dependency in useEffect?
If this is correct, then useState needs to be in the upper level ( the caller of the custom hook) and do other logic based on what returned from the custom hook? and in useEffect you need to bind both status values from:
1- the local useState
2- the custom hook returned value
check this out if it's what you meant (I just moved useState to the render function and added both as dependencies):
https://codesandbox.io/s/snowy-water-mjwrb

@omaralsoudanii Yeah this could also work, its probably like a 4th workaround this bug :). Thanks

@omaralsoudanii I don't understand that last example. Why would you want to call setStatus in the useEffect? It will just make sure that status in state is the same as status returned from the custom hook, so it's superfluous, isn't it?
one use-case that I'm seeing for calling setState to a local state from a mutation / query is because you want to control certain things, like staleTime or refetchInterval from the response of your query, so you have to "sync" it back to local state:
const [ staleTime, setStaleTime] = useState(0)
useQuery(key, fn, { staleTime, onSuccess: data => setStaleTime(data.validUntil) }

I find it very weird that this seems to affect the triggering of useEffects, depending on if you call setState with the value it already contains or not, and apparently also the ordering seems to be important?

@TkDodo
That's what I've been trying to say, my example is redundant and pointless. It's just to prove that there is some race condition with useEffect and the custom hook.
You said your self the ordering seems important, in fact take the original example and swap the setState to be before mutate and the example will work.
Remove the whole local state from code and it works.
I suspect that the logic of react query inside the custom hook is not in sync with the component itself ( otherwise how the UI changes but useEffect doesn't trigger?)
When I swapped mutate with mutateAsync  then useEffect triggered.
The thing is if you carefully look at useQuery and useMessagingUpgrade you find 2 different types.
useQuery returns Promise.resolve for status value
useMessagingUpgrade returns a regular object for status
useMessagingUpgrade returns Promise.resolve incase of mutation
UseMessagingUpgrade returns a regular object after the mutation happens.
Promise.resolve is async
Regular object is sync
Go ahead and enable the debugger locally and you will see that the local state is not in sync with the custom hook due to mixing sync and async returns.
My previous example using mutateAsync triggered useEffect (but it is still not the correct solution)
The last example your confused about, I made it on purpose to prove that the custom hook is not in sync with the component, by using setState inside useEffect I am forcing it to be a dependency.
Even if you see my previous comment the docs state the same thing.

I'm 99% sure the bug is in react rather than in react-query. If the bug were that the component is not re-rendering, I would bet for react-query. But here the component does re-render, but useEffect doesn't run, even though its dependencies change.
Reading through the comments, I feel we're tackling this the wrong way. This has nothing to do with custom hooks or with mutate vs mutateAsync. To demonstrate, here is an even simpler version of the bug, without using mutations at all. Click the Rerender button repeatedly,  and you'll see the bug in action.
The problem is that I can't replicate this issue without using react-query. I cloned the repo and tried to understand what setQueryData is exactly doing, but no luck so far 😓 If we can surgically extract the piece of related code and still replicate the issue, we may open a ticket in the repo for react.
tl;dr
Please check this sandbox

@TkDodo @lgenzelis @Tosheen
I give up, solve this mystery ( used the sandbox from @lgenzelis ) useEffect runs again when you re-focus window  ONLY when the value is true.
Check this recording, and pay attention to the status value from clicking, and the console when refocus based on the status value.
https://user-images.githubusercontent.com/7079173/132187687-db0bfcf5-cfb1-4b51-b121-17009c46f5b4.mp4
Also the note here could be relevant: https://reactjs.org/docs/hooks-reference.html#conditionally-firing-an-effect

@lgenzelis I am trying to replicate the bug on your latest example but it seems that effect function is triggering correctly on every button click.

What am I missing?
Anyhow your approach seems most reasonable.

@omaralsoudanii unluckily I'm too intrigued to give up at this point! 😂
@Tosheen those logs correspond to the rerenders (which always happen correctly). But useEffect is not running after any of the renders, that's the bug. Comment out setDummy(0); and you'll note the difference 🙂

So this was happening with us as well.  I was never able to narrow it down more than if our user query was used in a React Query mutation, then the user query could update once, but after it was invalidated and the user was signed out (no jwt, so the user query would return null), the user query would no longer trigger any useEffect deps!

Any update on this one, in my case sometimes useEffect is triggering sometimes its not.

so the somewhat good news is that I tried out the simple reproduction of this issue on the react 18 branch, where we useSyncExternalStorage, and the issue does not occur there:

https://codesandbox.io/s/useeffect-bug-react-18-ni2sr

now it still occurs if we downgrade to react17, where the uSES shim is used, and just upgrading to react18 doesn't solve it either.
so it seems to be a combination of both things:

something in react
something in react-query on how we setup subscriptions currently in an effect, or something how we do batching.

I guess the only thing that I can tell you now is that it seems to work with 18, even in sync mode, when we migrate to uSES. Not sure when that will happen though.

Hi! I was really interested to figure this out.
@lgenzelis Here's your version of code, but without react-query:
https://codesandbox.io/s/react-or-react-query-bug-version-2-forked-fnebv?file=/src/example.js
I just noticed, that useQuery gets result from observer.getOptimisticResult and it's actually not a part of react state.
Thus, it's the same as if I move value out of render function and change it as a variable.
And I cannot reproduce it with react 18, so I guess it's really some kind of bug in react 17.

very interesting - thank you @dmitryKochergin . Do you think it would make sense to open issue for react itself with that reproduction?

@dmitryKochergin you're awesome! 😁😁 I spent some time myself trying to get react query out of the equation but I had failed. It's really cool to have such a small reproduction for this bug.
Here's a new version of the sandbox, where I completely removed react query, and upgraded react and react-dom to v18.0.0-rc.
@dmitryKochergin , you said you couldn't reproduce it in react 18, but I'm guessing you went straight to the new API (ReactDOM.createRoot and root.render). Using the new API the bug does indeed disappear, but it persists in the legacy API (ReactDOM.render).
Since you're the one that got it to this point, dmitry, I'd say you get the honor to report it to react 😄

@TkDodo @lgenzelis thanks 😄
I also found something else, and I guess it can explain current behaviour:
https://github.com/facebook/react/issues/23055#issuecomment-1003712895

If you update a State Hook to the same value as the current state, React will bail out without rendering the children or firing effects.

So, in our case we have dummy and forceRerender state variables.
After calling rerender function, dummy updates with the same value, and React bails out without rendering the children or firing effects. I suppose that somewhere here the effect should've been scheduled, but it didn't because of that react behaviour.
BUT, the render function was actually called and useEffect received updated value in deps (you can see this by checking how many times console.log was called in render).
And then on the next tick forceRerender causes another update, but this time it doesn't schedule the effect because it has the same deps (value) that were captured in the previous render function call.
I'll create an issue in react repo to check if I'm right with this explanation and to clarify how and why this behaviour has changed in react 18 with the new root api.


linux-aarch64: target does not support the following CPU features: [FP, ASIMD]

Using the sysroot that @jperedadnr provided, I was able to build and link a aarch64 build. However, when running it the following happens :
pi@RasPI:~/stream-pi/client$ DISPLAY=:0 mvn -Plinux-aarch64 client:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.stream-pi:client >------------------------
[INFO] Building client 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- client-maven-plugin:0.1.39:run (default-cli) @ client ---
[Sun Apr 25 14:05:50 BST 2021][INFO] ==================== RUN TASK ====================
[Sun Apr 25 14:05:50 BST 2021][INFO] [SUB] determineCPUFeatures asked, not supported
[Sun Apr 25 14:05:50 BST 2021][INFO] [SUB] Fatal error: Current target does not support the following CPU features that are required by the image: [FP, ASIMD]
[Sun Apr 25 14:05:50 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:50 BST 2021][INFO] [SUB] JavaFrameAnchor dump:
[Sun Apr 25 14:05:50 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   No anchors
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] TopFrame info:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   TotalFrameSize in CodeInfoTable 64
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] VMThreads info:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   VMThread 0000aaaafa870b40  STATUS_IN_JAVA (safepoints disabled)  java.lang.Thread@0xffff89062ca8
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] VM Thread State for current thread 0000aaaafa870b40:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0 (8 bytes): com.oracle.svm.jni.JNIThreadLocalEnvironment.jniFunctions = (bytes)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     0000aaaafa870b40: 0000ffff887e5010
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   8 (8 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.stackBoundaryTL = (Word) 1<PHONE_NUMBER>000001
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   16 (4 bytes): com.oracle.svm.core.thread.Safepoint.safepointRequested = (int)<PHONE_NUMBER>  7ffff273
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   20 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.statusTL = (int) 1  00000001
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   24 (32 bytes): com.oracle.svm.core.genscavenge.ThreadLocalAllocation.regularTLAB = (bytes)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     0000aaaafa870b58: 0000ffff87c00000 0000ffff87d00000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     0000aaaafa870b68: 0000ffff87c02ba8<PHONE_NUMBER>000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   56 (8 bytes): com.oracle.svm.core.thread.JavaThreads.currentThread = (Object) java.lang.Thread  0000ffff89062ca8
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   64 (8 bytes): com.oracle.svm.core.stack.JavaFrameAnchors.lastAnchor = (Word) 0<PHONE_NUMBER>000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   72 (8 bytes): com.oracle.svm.core.heap.NoAllocationVerifier.openVerifiers = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   80 (8 bytes): com.oracle.svm.core.identityhashcode.IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   88 (8 bytes): com.oracle.svm.core.snippets.ExceptionUnwind.currentException = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   96 (8 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.activeTimer = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   104 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileClient.currentClient = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   112 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileContext.currentContext = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   120 (8 bytes): com.oracle.svm.jni.JNIObjectHandles.handles = (Object) com.oracle.svm.core.handles.ThreadLocalHandles  0000ffff87c01128
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   128 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPendingException.pendingException = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   136 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   144 (8 bytes): com.oracle.svm.jni.JNIThreadOwnedMonitors.ownedMonitors = (Object) null
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   152 (8 bytes): com.oracle.svm.core.thread.VMThreads.IsolateTL = (Word)<PHONE_NUMBER>47584  0000ffff87e00000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   160 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadHandleTL = (Word)<PHONE_NUMBER>52560  0000ffff8a132010
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   168 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadIdTL = (Word)<PHONE_NUMBER>52560  0000ffff8a132010
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   176 (8 bytes): com.oracle.svm.core.thread.VMThreads.nextTL = (Word) 0<PHONE_NUMBER>000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   184 (8 bytes): com.oracle.svm.core.thread.VMThreads.unalignedIsolateThreadMemoryTL = (Word)<PHONE_NUMBER>16480  0000aaaafa870b40
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   192 (4 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.yellowZoneStateTL = (int) -16843010  fefefefe
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   196 (4 bytes): com.oracle.svm.core.snippets.ImplicitExceptions.implicitExceptionsAreFatal = (int) 0  00000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   200 (4 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.currentPauseDepth = (int) 0  00000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   204 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnExitSafepointSupport.actionTL = (int) 0  00000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   208 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnTransitionToJavaSupport.actionTL = (int) 0  00000000
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   212 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.safepointsDisabledTL = (int) 1  00000001
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] VMOperation dump:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   No VMOperation in progress
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   The 10 most recent VM operation status changes (oldest first):
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Dump Counters:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Raw Stacktrace:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fe80: 0000ffff87c028e0 0000ffff87c02a48
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fe90: 0000ffff87c028e0 0000ffff87c02b88
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fea0: 0000ffff87e00000 0000aaaad3c76ff8
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654feb0: 0000ffffc6550060 0000aaaad3ce1b48
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fec0:<PHONE_NUMBER>85692e 0000ffff88587650
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fed0: 0000ffff87c028e0 0000ffff87c02b10
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fee0: 0000ffffc6550060 0000aaaad3c76ff8
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   0000ffffc654fef0: 0000ffffc654fea0<PHONE_NUMBER>77a1d0
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Stacktrace Stage 0:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fe80 IP 0000aaaad3cba6e4  FrameSize 64
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fec0 IP 0000aaaad3ce1b48  FrameSize 48
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fef0 IP 0000aaaad3c76ff8  FrameSize 128
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654ff70 IP 0000aaaad3c862d0  FrameSize 240
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Stacktrace Stage 1:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fe80 IP 0000aaaad3cba6e4  com.oracle.svm.core.code.CodeInfo@0xffff88f90ab8 name = image code
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fec0 IP 0000aaaad3ce1b48  com.oracle.svm.core.code.CodeInfo@0xffff88f90ab8 name = image code
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fef0 IP 0000aaaad3c76ff8  com.oracle.svm.core.code.CodeInfo@0xffff88f90ab8 name = image code
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654ff70 IP 0000aaaad3c862d0  com.oracle.svm.core.code.CodeInfo@0xffff88f90ab8 name = image code
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Stacktrace Stage 2:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fe80 IP 0000aaaad3cba6e4  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shutdown(VMErrorSubstitutions.java:111)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fe80 IP 0000aaaad3cba6e4  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shouldNotReachHere(VMErrorSubstitutions.java:104)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fec0 IP 0000aaaad3ce1b48  [image code] com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:63)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654fef0 IP 0000aaaad3c76ff8  [image code] com.oracle.svm.core.aarch64.AArch64CPUFeatureAccess.verifyHostSupportsArchitecture(AArch64CPUFeatureAccess.java:133)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654ff70 IP 0000aaaad3c862d0  [image code] com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:127)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654ff70 IP 0000aaaad3c862d0  [image code] com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:182)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   SP 0000ffffc654ff70 IP 0000aaaad3c862d0  [image code] com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(IsolateEnterStub.java:0)
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] [Heap settings and statistics:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Supports isolates: true
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Object reference size: 8
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Incremental collections: 0
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Complete collections: 0]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] [Native image heap boundaries:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   ReadOnly Primitives: 0xffff87e01028 .. 0xffff884d6530
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   ReadOnly References: 0xffff884d6540 .. 0xffff887e4f68
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   ReadOnly Relocatables: 0xffff887e5000 .. 0xffff88a68a28
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Writable Primitives: 0xffff88a69000 .. 0xffff88fd0010
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Writable References: 0xffff88fd0020 .. 0xffff8958d270
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   Writable Huge: 0x0 .. 0x0
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   ReadOnly Huge: 0xffff89600030 .. 0xffff8a011110]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] [Heap:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   [Young generation:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     [Eden:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]       [edenSpace:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]         aligned: 0/0 unaligned: 0/0]]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     [Survivors:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]       ]]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   [Old generation:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     [oldFromSpace:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]       aligned: 0/0 unaligned: 0/0]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     [oldToSpace:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]       aligned: 0/0 unaligned: 0/0]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     ]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]   [Unused:
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]     aligned: 0/0]]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB]
[Sun Apr 25 14:05:51 BST 2021][INFO] [SUB] Fatal error: Current target does not support the following CPU features that are required by the image: [FP, ASIMD]
[Sun Apr 25 14:05:51 BST 2021][SEVERE] Process run until end failed with result: 99
Check the log files under /home/pi/stream-pi/client/target/client/aarch64-linux/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.
[Sun Apr 25 14:05:51 BST 2021][INFO] Logging process [run until end] to file: /home/pi/stream-pi/client/target/client/log/process-run until end-1619355951519.log
             _______  ___      __   __  _______  __    _
            |       ||   |    |  | |  ||       ||  |  | |
            |    ___||   |    |  | |  ||   _   ||   |_| |
            |   | __ |   |    |  |_|  ||  | |  ||       |
            |   ||  ||   |___ |       ||  |_|  ||  _    |
            |   |_| ||       ||       ||       || | |   |
            |_______||_______||_______||_______||_|  |__|

    Access to the latest docs, tips and tricks and more info on
    how to get support? Register your usage of Gluon Substrate now at

    https://gluonhq.com/activate

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.228 s
[INFO] Finished at: 2021-04-25T14:05:54+01:00
[INFO] ------------------------------------------------------------------------
pi@RasPI:~/stream-pi/client$

Apparently it says that the CPU features FP and ASIMD are not supported by the target.
Doing a quick cat /proc/cpuinfo does show that both fp and asimd is supported by the Pi.
pi@RasPI:~/stream-pi/client/target/client/aarch64-linux$ cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 108.00
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 1
BogoMIPS	: 108.00
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 2
BogoMIPS	: 108.00
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 3
BogoMIPS	: 108.00
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

Hardware	: BCM2835
Revision	: d03114
Serial		:<PHONE_NUMBER>b21ccf
Model		: Raspberry Pi 4 Model B Rev 1.4

That has just been fixed: https://github.com/gluonhq/substrate/pull/916
For now use the 0.1.40-SNAPSHOT version adding to your pom:
<pluginRepositories>
        <pluginRepository>
            <id>Sonatype</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </pluginRepository>
    </pluginRepositories>

Super! I will try it right now and get back!!


robot-driver 0.8.0 depends on remote-robot 0.11.2, which is not yet on Maven Central

https://mvnrepository.com/artifact/org.virtuslab.ideprobe/robot-driver_2.13/0.8.0:

This breaks the build :///
Execution failed for task ':uiTests:compileTestScala'.
> Could not resolve all files for configuration ':uiTests:testCompileClasspath'.
   > Could not find com.intellij.remoterobot:remote-robot:0.11.2.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://repo.maven.apache.org/maven2/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://jetbrains.bintray.com/intellij-third-party-dependencies/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
     Required by:
         project :uiTests > org.virtuslab.ideprobe:robot-driver_2.12:0.8.0
   > Could not find com.intellij.remoterobot:remote-robot:0.11.2.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://repo.maven.apache.org/maven2/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://jetbrains.bintray.com/intellij-third-party-dependencies/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/intellij/remoterobot/remote-robot/0.11.2/remote-robot-0.11.2.pom
     Required by:
         project :uiTests > org.virtuslab.ideprobe:robot-driver_2.12:0.8.0 > com.intellij.remoterobot:remote-fixtures:1.1.18

Sorry, I updated the docs, you should now add this resolver:
https://packages.jetbrains.team/maven/p/ij/intellij-dependencies.
The publishing of robot is a mess, I also hoped it actually was moved to maven central, but it was only temporary. Latest versions are in the repo I pasted above.
Previously, you had https://jetbrains.bintray.com/intellij-third-party-dependencies`, but it is bintray, so it was changed during migration.


Fixed WebSockets (subprotocol) support

I think this test works again. Let's see,

@mikaelm12

I was just trying out, because this test passes on my computer on .net 461.

Ah, well please only create PRs when you think it's valuable for us to consider taking the change. Would you please close this PR until you finished your experiments?

@mikaelm12 I did it ;)
This PR fixes:
#53

It also extends the list of not-forwarded Sec-WebSocket-* headers
If fixes support for subprotocol what was the root cause for this test to fail.

Some explanation:
Earlier it was failing on Linux due to broken WebClientSocket and we disabled this test, however disabled test failed to detect a regression which was in area of subprotocol support.

@davidfowl would you mind merging this PR? It fixes SignalR support.

@mikaelm12 @davidfowl bump

This looks good. I'm gonna let @Tratcher or @davidfowl give the final sign off though, then I'll merge this.

Thanks for the contribution @mkosieradzki!


Add test data in vdb format

Resqpy supports import of grid geometry and properties from the Nexus vdb format (and time series from Nexus summary output files).  In order to include unit tests for this functionality, suitable test data should be included in the repository.
Nexus is a trademark of Halliburton.

Basic grid, grid properties and blocked wells prepared in resqpy and exported in Nexus ascii format.  Next step is to flesh out a Nexus deck and simulate – Rob King is kindly helping with this.

The vdb binary data caused test failures in pycharm only (working fine from command line python interpreter and Bifröst JupyterLab).


Add --output json support to ockam node list

Current behavior
Currently running ockam node list --output json produces an error like the following:

It also shows a spinner before it displays the error message.
Desired behavior
It should not display a spinner while it is working.
It should provide a list of node information in JSON format.
Please take a look at this file to get started.

We love helping new contributors! ❤
If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.

Hello! How does this output look? Do you have any other preferences for how it should be formatted? Does it need color?

@solidiquis the format looks great, we don't want to color this output since we want it to be readable by other programs. For example jq

Thanks @mrinalwadhwa! I'll open a PR shortly.

@mrinalwadhwa Looks like this issue we closed prematurely due to my mention of it in a different PR. Would you mind reopening it until my PR gets merged?
Additionally, regarding the desire to remove the spinner, I noticed that there was a separate issue for it and it's already being tackled: https://github.com/build-trust/ockam/issues/6147
Hence I decided not to remove the spinner in this PR. Let me know if that's okay.

@solidiquis The requirement to remove the spinner has been dropped (in this issue https://github.com/build-trust/ockam/issues/6147). So this PR is scoped well! 👍🏽


Make lower dimensional objects preserve their parent's header

This is a bugfix and comes with a regression test

Coverage increased (+0.03%) to 74.077% when pulling 1b3a2671e6e17356e7a7c378acc2cf37d6d3472f on keflavich:preserve_header_in_ldos into 9577ff198ce226499542fb723cf8b8f22344d0ba on radio-astro-tools:master.


Server validation errors not using Promises

I'm using websockets to validate on the server, how can I attach errors to the form after server response received?
channels.methods.push('create:seo', {data: data})
  .receive("ok", () => {
    // success, flush the form and redirect
  })
  .receive("error", (response) => {
    const { errors } = response;

    // how to pass errors to the form ?
  });

So, with action creators I managed to do this:
handleSubmit(data, dispatch) {
  dispatch(startSubmit('seoCreateForm'));

  channels.methods.push('create:seo', {data: data})
    .receive("ok", () => {
      // form is destroyed on redirect
      dispatch(pushPath('/seo'));
    })
    .receive("error", (response) => {
      const { errors } = response;

      dispatch(stopSubmit('seoCreateForm', errors));
    });
}

@erikras can you have a quick look, is it ok to do this or is there a better option?

:+1: Looks good. That's the answer.
For other people following this, if you are not destroying the form via a redirect, then you should also call dispatch(stopSubmit('seoCreateForm')) (with no errors) in the ok branch.

I added your example to the FAQ.

@erikras great, thank you!

Hey I am trying to use this approach like so:
<form onSubmit={handleSubmit(save)} >
In save I am dispatching startSubmit and then later (asynchronously) I either redirect (in the success case) or in the error case I dispatch ReduxForm.stopSubmit('MyFormName', { _error: error }) followed by but i notice that (since my save function returns nothing) redux-from's handleSubmit function deploys setSubmitSucceeded.
Am I doing something wrong or is it fine that setSubmitSucceeded is deployed?
Am I supposed to be wrapping my save function in redux-form's handleSubmit function?
In @VladShcherbin's example above or in the docs there are no mentions of how to wire this into the form's onSubmit function.

@nzjoel1234 I faced the same issue since I am using redux-logic to handle all async stuff. The easiest solution I could come up with was just to follow what was said above + return a Promise in my onSubmit. This will leave redux-form in a 'submitting' state until either the promise resolves (not happening) or I dispatch a stopSubmit Action in my logic.
function onSubmit(values, dispatch) {
  return new Promise(() => { dispatch(signupSubmit(values)); });
}

export default reduxForm({
  form: 'signup',
  onSubmit
})(SignupForm);

Please let me know if in the meantime you found a better solution to this problem.


Include 678 Bio/Admin MARC AF 678 information?

MARC AF 678 is meant to be a Public Note so it has good information for this type of display. Not sure if the links below will work.

To add this to the list we would use the MADS property http://www.loc.gov/mads/rdf/v1#note in ID

Ok, sounds good, I do not see another MADS property that would work for this. Paul
From: Matt Miller<EMAIL_ADDRESS>Sent: Thursday, February 21, 2019 4:15 PM
To: lcnetdev/bfe<EMAIL_ADDRESS>Cc: Frank, Paul<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [lcnetdev/bfe] Include 678 Bio/Admin MARC AF 678 information? (#57)
To add this to the list we would use the MADS property http://www.loc.gov/mads/rdf/v1#note in ID
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lcnetdev/bfe/issues/57#issuecomment-466169212, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMQQaOPEY3kewzCUl8XlV6_T7nkZHbfKks5vPwxbgaJpZM4aypu4.


Allow overriding encryption key in core.session()

I can work with this.
But I am curious too when do you imagine having multiple sessions with different encryptionKeys useful. Even if the goal is to support rotating encryption keys, it might be better to expand the headers to include all the encryption keys at different ranges.
If the integrity of Hypercores depends on the ability to decrypt it, why leave housekeeping to higher-level abstraction?

Unless I'm mistaken, #97 completely defeats at-rest encryption.

As for the sessions with different encryption keys, the immediate use case is corestore.


Create a Github Action that runs all unittests before every PR

Currently all unittests require a memphis docker container running in the background, so until we mock them we should run such a container withing the Action.

-- if this PR is merged, kindly close this issue :)


embed::inout_pin

Using an embed::input_pin and an embed::output_pin create a embed::inout_pin which can have its direction controlled at runtime.

After some thought, I would assert that this particular soft driver is not necessary because output pins can be, in effect used as input pins.
embed::output_pin has both void level(bool) and bool level() meaning it can set the level of the pin and also read it. Normally this can only tell you what the state of the output pin was last set to, or if it cannot set the pin correct. But this pin can also be configured as open drain.
Thus converting the pin to an open drain and setting the active level to "true" (meaning a value of 1 or HIGH voltage), will High-Z the line, as it does with I2C and open collector interrupt pins. This means that other devices can control that line. And so long as bool level() always returns the voltage of the pin and not simply the stored result from the last all to void level(bool) then the output can act as an input pin.


Recursion Loop Error with the Graph Loop Class

Tested versions
4.1.3-stable_win64
System information
Windows 10-Godot4.1.3-stable_win64
Issue description
For example, we wanted to make a state classes that have variable, which contain the info of next state.
It is typical things that the State can loop each other. However, the recursion error will occur even if the classes doesn't contain any function that can caused the recursion error.

Steps to reproduce
make the class that contain variable of the same classes and have the repeat loop value.
Minimal reproduction project (MRP)
extends Resource

class_name StateTest

@export var connectedState:StateTest

Circular references are not supported, instead you should use weak references, see:

https://github.com/godotengine/godot-proposals/issues/7363

Closing as this is not a bug, and it has a clear warning, see the above documentation and proposal

Sorry, I have read the discussion and still a bit confused. So in summary, we should use WeakRef instead but WeakRef still not serializeable and not able to be @export. Therefore, we still dont have a way to hack the circular reference with @export and Serializeable????. If there are ways to please guide me a bit. This is very confused me. I also saw the uID method but it seem to be a bit lousy practice or that the best we got??

Please discuss this on the proposal issue, where I explain things a bit more, and my suggestion for a solution using weak references in export :)


Register a death - Libya

Trello card: https://trello.com/c/QhANM5Vi/209-30-jun-register-a-death-libya-content-change-request
Factcheck
Register a death Libya
Expected Changes
URL on GOV.UK
* Selecting Libya should send you straight to an outcome
Before

After

@leenagupte could you please accommodate your commits to 50 chars for the title and 72 characters per line in the description

@floehopper @chrisroos: regarding e225ed6c1736d9f3173567ab9dde087e7982fa7b,  would you know why are we getting changes in North-Korea artefacts if nothing related to this country has been modified in this PR? Is there any document, or any point of the codebase we can look into?

@pmanrubia:

regarding e225ed6, would you know why are we getting changes in North-Korea artefacts if nothing related to this country has been modified in this PR? Is there any document, or any point of the codebase we can look into?

Since it's possible to visit the same question page via a number of different routes, the regression tests only capture the HTML from the first visit to a question page. I'm not sure whether this is documented anywhere - I'll add a Trello card to make sure that it is.
If you look at both the commits where the regression test artefacts are changed, you can see that the following question page artefacts are removed:

test/artefacts/register-a-death/overseas/libya.html
test/artefacts/register-a-death/overseas/libya/another_country.html

And replaced with the following question page artefacts:

test/artefacts/register-a-death/overseas/north-korea.html
test/artefacts/register-a-death/overseas/north-korea/another_country.html

I assume this is because the regression test no longer first (or ever) reaches these question pages via a libya response, but now reaches them via a north-korea response. Does that make sense?

I've just created a new Trello card to ensure how/when question page artefacts are captured is documented.

@pmanrubia Done.

Thank you @leenagupte. Still, the lines of the description are not 72 characters max. I guess you are doing it because Github is able to wrap it nicely, but there are other editors out there that are not that smart / user-friendly (particularly terminal-based editors). So, I would follow the conventions until it is agreed that this is not necessary.

It makes sense @floehopper, thank you for the clarification.

If you look at both the commits where the regression test artefacts are changed, you can see that the following question page artefacts are removed [...] and replaced with the following question page artefacts [...]

I think it would be clearer if all the changes to the question page artefacts were in the same commit, then a single commit note could explain the removals and the additions i.e. I'm not convinced it's useful to split the artefact commits by country in this particular case.

@floehopper They were originally split because I had no idea what was going on and I wanted to highlight the anomaly.  However, they have squashed now and the commit message has been updated to reflect how I interpreted your explanation.

LGTM


Manually repositioning drop when generated calculation is off?

Several times the calculated position generated for my drops are slightly off. I've attempted applying a class to the drop and then specifying margins, but the behavior is odd and inconsistent. Referencing the the image below which has the 'position' set to 'top left'.

It seems like it should be a relatively easy task to set the margin-left of the drop to -10px so the arrow is centered with the icon, but I don't know how to do this in a way that works well with the code.

Use tetherOptions.offset:
tetherOptions: {
    offset: '0 20px',
},


ValueError in Run segmentation （attempt to get argmax of an empty sequence）

Nice to meet you. Thanks for such a great model.
I am trying to run Segment_every_grain.ipynb on VScode.
I rewrote part of the contents of the distributed Segment_every_grain.ipynb (see attached photo), and when I ran it, I got a "ValueError: attempt to get argmax of an empty sequence sequence" in "Run segmentation".
I would like to know the solution.
*I am using Google Translate.
Environment
・Mac book pro14 (M1pro)
・VScode(anaconda)
・Python(3.12.2)
・library list (see attached photo)

请问您加载的unet模型可以发给我一份吗，十分感谢