I cannot build the examples from a clean environment

Hi,
I try to build one of the examples with a new PC.
It is a windows 10 machine, anaconda feshly installed.
I downloaded the last tagge version of sphinxcontrib-needs from github (0.7.4).
Then I run:
sphinx-build sphinxcontrib-needs-0.7.4\docs _build
I get always:
Extension error (sphinx_data_viewer.sphinx_data_viewer):
Handler <function install_lib_static_files at 0x00000211E4E24B80> for event 'env-updated' threw an exception (exception: [Errno 2] No such file or directory: 'C:\\z\\_build\\_static\\assets/jsonview.bundle.js')

What I wonder here is: the folder is empty, so why does the tool expect some files?
Here are the comandes copied from cli:
(base) PS C:\Users\Admin> cd ..
(base) PS C:\Users> cd ..
(base) PS C:\> cd z
(base) PS C:\z> pip install sphinxcontrib-needs
Collecting sphinxcontrib-needs
  Downloading sphinxcontrib-needs-0.7.4.tar.gz (2.3 MB)
     |████████████████████████████████| 2.3 MB 6.4 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting requests-file<2.0.0,>=1.5.1
  Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Requirement already satisfied: jsonschema==3.2.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinxcontrib-needs) (3.2.0)
Requirement already satisfied: sphinx>2.2 in c:\users\admin\anaconda3\lib\site-packages (from sphinxcontrib-needs) (4.2.0)
Requirement already satisfied: requests<3.0.0,>=2.25.1 in c:\users\admin\anaconda3\lib\site-packages (from sphinxcontrib-needs) (2.26.0)
Requirement already satisfied: matplotlib>3.1.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinxcontrib-needs) (3.4.3)
Collecting sphinxcontrib-programoutput<0.18,>=0.17
  Downloading sphinxcontrib_programoutput-0.17-py2.py3-none-any.whl (22 kB)
Collecting sphinx-data-viewer<0.2.0,>=0.1.1
  Downloading sphinx-data-viewer-0.1.1.tar.gz (6.5 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting sphinxcontrib-plantuml<0.22,>=0.21
  Downloading sphinxcontrib-plantuml-0.21.tar.gz (11 kB)
Collecting sphinx-panels<0.7.0,>=0.6.0
  Downloading sphinx_panels-0.6.0-py3-none-any.whl (87 kB)
     |████████████████████████████████| 87 kB 3.3 MB/s
Collecting sphinx-copybutton<0.4.0,>=0.3.0
  Downloading sphinx_copybutton-0.3.3-py3-none-any.whl (12 kB)
Requirement already satisfied: attrs>=17.4.0 in c:\users\admin\anaconda3\lib\site-packages (from jsonschema==3.2.0->sphinxcontrib-needs) (21.2.0)
Requirement already satisfied: setuptools in c:\users\admin\anaconda3\lib\site-packages (from jsonschema==3.2.0->sphinxcontrib-needs) (58.0.4)
Requirement already satisfied: six>=1.11.0 in c:\users\admin\anaconda3\lib\site-packages (from jsonschema==3.2.0->sphinxcontrib-needs) (1.16.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\admin\anaconda3\lib\site-packages (from jsonschema==3.2.0->sphinxcontrib-needs) (0.18.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (3.0.4)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (1.3.1)
Requirement already satisfied: numpy>=1.16 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (1.20.3)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (2.8.2)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib>3.1.0->sphinxcontrib-needs) (8.4.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\anaconda3\lib\site-packages (from requests<3.0.0,>=2.25.1->sphinxcontrib-needs) (3.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\admin\anaconda3\lib\site-packages (from requests<3.0.0,>=2.25.1->sphinxcontrib-needs) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\anaconda3\lib\site-packages (from requests<3.0.0,>=2.25.1->sphinxcontrib-needs) (2021.10.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\admin\anaconda3\lib\site-packages (from requests<3.0.0,>=2.25.1->sphinxcontrib-needs) (2.0.4)
Requirement already satisfied: sphinxcontrib-applehelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.0.2)
Requirement already satisfied: sphinxcontrib-devhelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.0.2)
Requirement already satisfied: sphinxcontrib-jsmath in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (2.0.0)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.1.5)
Requirement already satisfied: sphinxcontrib-qthelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.0.3)
Requirement already satisfied: Jinja2>=2.3 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (2.11.3)
Requirement already satisfied: Pygments>=2.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (2.10.0)
Requirement already satisfied: docutils<0.18,>=0.14 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (0.17.1)
Requirement already satisfied: snowballstemmer>=1.1 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (2.1.0)
Requirement already satisfied: babel>=1.3 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (2.9.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (0.7.12)
Requirement already satisfied: imagesize in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (1.2.0)
Requirement already satisfied: packaging in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (21.0)
Requirement already satisfied: colorama>=0.3.5 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>2.2->sphinxcontrib-needs) (0.4.4)
Requirement already satisfied: pytz>=2015.7 in c:\users\admin\anaconda3\lib\site-packages (from babel>=1.3->sphinx>2.2->sphinxcontrib-needs) (2021.3)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\admin\anaconda3\lib\site-packages (from Jinja2>=2.3->sphinx>2.2->sphinxcontrib-needs) (1.1.1)
Building wheels for collected packages: sphinxcontrib-needs, sphinx-data-viewer, sphinxcontrib-plantuml
  Building wheel for sphinxcontrib-needs (PEP 517) ... done
  Created wheel for sphinxcontrib-needs: filename=sphinxcontrib_needs-0.7.4-py3-none-any.whl size=2571201 sha256=37fa8964bfe395303f4fbe87c6139cd63a13b2bf57a7170bec30ba70a4788e33
  Stored in directory: c:\users\admin\appdata\local\pip\cache\wheels\3f\d1\89\f59b85728a698142d3b65a68022ad760e42fcc68b3648937a3
  Building wheel for sphinx-data-viewer (PEP 517) ... done
  Created wheel for sphinx-data-viewer: filename=sphinx_data_viewer-0.1.1-py3-none-any.whl size=7913 sha256=f851b8ae58e4dd9ca10ef6cbf7e5395a22391037444487a7e25888af2443fd5f
  Stored in directory: c:\users\admin\appdata\local\pip\cache\wheels\b8\b1\be\12df22dc5eba4e3ee14cfcca8d5d5628a80c75405993dcb0a9
  Building wheel for sphinxcontrib-plantuml (setup.py) ... done
  Created wheel for sphinxcontrib-plantuml: filename=sphinxcontrib_plantuml-0.21-py3-none-any.whl size=10435 sha256=3a03d115f9b37c4a01c3d487d5005b129462cb8f661a5311fd71aadd52741b39
  Stored in directory: c:\users\admin\appdata\local\pip\cache\wheels\1f\36\5a\68688bca21e00b5841e58650bf1a373ae229032affc8b34e4f
Successfully built sphinxcontrib-needs sphinx-data-viewer sphinxcontrib-plantuml
Installing collected packages: sphinxcontrib-programoutput, sphinxcontrib-plantuml, sphinx-panels, sphinx-data-viewer, sphinx-copybutton, requests-file, sphinxcontrib-needs
Successfully installed requests-file-1.5.1 sphinx-copybutton-0.3.3 sphinx-data-viewer-0.1.1 sphinx-panels-0.6.0 sphinxcontrib-needs-0.7.4 sphinxcontrib-plantuml-0.21 sphinxcontrib-programoutput-0.17
(base) PS C:\z> cd .\sphinxcontrib-needs-0.7.4\
(base) PS C:\z\sphinxcontrib-needs-0.7.4> cd .\docs\
(base) PS C:\z\sphinxcontrib-needs-0.7.4\docs> pip install -r requirements.txt
Requirement already satisfied: sphinx>=3.4 in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 1)) (4.2.0)
Requirement already satisfied: sphinxcontrib-plantuml in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 2)) (0.21)
Requirement already satisfied: matplotlib in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 3)) (3.4.3)
Requirement already satisfied: sphinx-copybutton in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 4)) (0.3.3)
Requirement already satisfied: sphinxcontrib-programoutput in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 5)) (0.17)
Requirement already satisfied: sphinx-panels in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 6)) (0.6.0)
Requirement already satisfied: click in c:\users\admin\anaconda3\lib\site-packages (from -r requirements.txt (line 8)) (8.0.3)
Collecting tabulate
  Downloading tabulate-0.8.9-py3-none-any.whl (25 kB)
Requirement already satisfied: sphinxcontrib-applehelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.0.2)
Requirement already satisfied: sphinxcontrib-devhelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.0.2)
Requirement already satisfied: sphinxcontrib-jsmath in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.0.0)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.1.5)
Requirement already satisfied: sphinxcontrib-qthelp in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.0.3)
Requirement already satisfied: Jinja2>=2.3 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.11.3)
Requirement already satisfied: Pygments>=2.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.10.0)
Requirement already satisfied: docutils<0.18,>=0.14 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (0.17.1)
Requirement already satisfied: snowballstemmer>=1.1 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.1.0)
Requirement already satisfied: babel>=1.3 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.9.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (0.7.12)
Requirement already satisfied: imagesize in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: requests>=2.5.0 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (2.26.0)
Requirement already satisfied: setuptools in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (58.0.4)
Requirement already satisfied: packaging in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (21.0)
Requirement already satisfied: colorama>=0.3.5 in c:\users\admin\anaconda3\lib\site-packages (from sphinx>=3.4->-r requirements.txt (line 1)) (0.4.4)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (3.0.4)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (8.4.0)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (2.8.2)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: numpy>=1.16 in c:\users\admin\anaconda3\lib\site-packages (from matplotlib->-r requirements.txt (line 3)) (1.20.3)
Requirement already satisfied: pytz>=2015.7 in c:\users\admin\anaconda3\lib\site-packages (from babel>=1.3->sphinx>=3.4->-r requirements.txt (line 1)) (2021.3)
Requirement already satisfied: six in c:\users\admin\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->-r requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\admin\anaconda3\lib\site-packages (from Jinja2>=2.3->sphinx>=3.4->-r requirements.txt (line 1)) (1.1.1)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\anaconda3\lib\site-packages (from requests>=2.5.0->sphinx>=3.4->-r requirements.txt (line 1)) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\anaconda3\lib\site-packages (from requests>=2.5.0->sphinx>=3.4->-r requirements.txt (line 1)) (3.2)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\admin\anaconda3\lib\site-packages (from requests>=2.5.0->sphinx>=3.4->-r requirements.txt (line 1)) (2.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\admin\anaconda3\lib\site-packages (from requests>=2.5.0->sphinx>=3.4->-r requirements.txt (line 1)) (1.26.7)
Installing collected packages: tabulate
Successfully installed tabulate-0.8.9
(base) PS C:\z\sphinxcontrib-needs-0.7.4\docs> cd ..
(base) PS C:\z\sphinxcontrib-needs-0.7.4> cd ..
(base) PS C:\z> sphinx-build sphinxcontrib-needs-0.7.4\docs _build
Running Sphinx v4.2.0
GITHUB: No auth provided
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 29 source files that are out of date
updating environment: [new config] 29 added, 0 changed, 0 removed
Service github-issues requesting data for query: repo:useblocks/sphinxcontrib-needs node latexpdf is:issue
Service github-issues requesting data for query: repo:useblocks/sphinxcontrib-needs node latexpdf is:issue
Service github-issues requesting data for query: repo:useblocks/sphinxcontrib-needs node latexpdf is:issue
Service github-issues requesting data for query: repo:useblocks/sphinxcontrib-needs state:open needtable viewports is:issue
Service github-prs requesting data for query: useblocks/sphinxcontrib-needs/161
Service github-issues requesting data for query: repo:useblocks/sphinxcontrib-needs node latexpdf is:issue
Service github-commits requesting data for query: repo:useblocks/sphinxcontrib-needs python
Service github-commits requesting data for query: useblocks/sphinxcontrib-needs/a4a596113
reading sources... [100%] support
C:\z\sphinxcontrib-needs-0.7.4\docs\contributing.rst:60: WARNING: Command ['make', '--no-print-directory', '--directory', '../', 'list'] failed: [WinError 2] Das System kann die angegebene Datei nicht finden
WARNING: Scruffy tag definition found in need GH_166. Defined tag contains spaces only.

====================== slowest reading durations =======================
38.518 performance
1.772 services/github
0.468 api
0.464 directives/needservice
0.296 changelog

Extension error (sphinx_data_viewer.sphinx_data_viewer):
Handler <function install_lib_static_files at 0x0000019132E56E50> for event 'env-updated' threw an exception (exception: [Errno 2] No such file or directory: 'C:\\z\\_build\\_static\\assets/jsonview.bundle.js')

I tried secoundly to have only a minimu rst file. So I setup a minium project (took over C:\z\sphinxcontrib-needs-0.7.4\docs\examples\index.rst and conf.py).
But I get the same error.
(base) PS C:\z> cd docs
(base) PS C:\z\docs> dir

    Verzeichnis: C:\z\docs

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        02.12.2021     20:39                utils
d-----        02.12.2021     20:51                _images
d-----        02.12.2021     20:39                _static
-a----        30.11.2021     16:16          15184 conf.py
-a----        30.11.2021     16:16           4037 index.rst

(base) PS C:\z\docs> cd ..
(base) PS C:\z> sphinx-build docs _build
Running Sphinx v4.2.0
GITHUB: No auth provided
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index

====================== slowest reading durations =======================
0.046 index

Extension error (sphinx_data_viewer.sphinx_data_viewer):
Handler <function install_lib_static_files at 0x0000024A61985B80> for event 'env-updated' threw an exception (exception: [Errno 2] No such file or directory: 'C:\\z\\_build\\_static\\assets/jsonview.bundle.js')

Thanks for the really detailed report.
The problem is in the used dependency Sphinx-Data-Viewer, which is quite a new extension (also developed by me).
And I just detected, that my folder handling is not so clean and 1-2 paths are containing a hard-coded "/", but windows would need a "\".
That's the reason for the strange path C:\\z\\_build\\_static\\assets/jsonview.bundle.js.
I will fix it tomorrow and release a new version.
Sorry for the problem and I hope you will test it again for me, as I have no direct access to a windows machine :)

For sure I will do.

Closed this, as it is based on https://github.com/useblocks/sphinx-data-viewer/issues/2, which got solved.


Hanging Commit

@swilly22 - this code hangs on the commit():
        id2node = {}
        for n in in_graph.nodes (data=True):
            #print (f"{n}")
            i = n[0]
            attr = n[1]['attr_dict']
            id2node[i] = out_graph.add_node (label=attr['type'], props=attr)
        for e in in_graph.edges (data=True):
            #print (f"{e}")
            attr = e[2]['attr_dict']
            subj = id2node[e[0]]
            pred = attr['type']
            obj = id2node[e[1]]
            print (f"subj: {subj}")
            print (f"  pred: {pred}")
            print (f"    obj: {obj}")
            out_graph.add_edge (subj=id2node[e[0]],
                                pred=attr['type'],
                                obj=id2node[e[1]],
                                props=attr)
        print (f"---------> c2")
        out_graph.commit ()

where out_graph is an instance of this:
import redis
from redisgraph import Node, Edge, Graph

class KnowledgeGraph:
    ''' Encapsulates a knowledge graph. '''
    def __init__(self, graph, graph_name, host='localhost', port=6379):
        ''' Connect to Redis. '''
        self.redis = redis.Redis(host=host, port=port)
        self.graph = Graph(graph_name, self.redis)
    def add_node (self, label, props):
        ''' Add a node to the graph. '''
        n = Node(label=label, properties=props)
        self.graph.add_node (n)
        return n
    def add_edge (self, subj, pred, obj, props):
        ''' Add an edge. '''
        e = Edge(subj, pred, obj, properties=props)
        self.graph.add_edge (e)
        return e
    def commit (self):
        ''' Commit changes. '''
        self.graph.commit ()
    def query (self, query):
        ''' Query the graph. '''
        return self.graph.query (query)
    def delete (self):
        ''' Delete the entire graph. '''
        self.graph.delete ()

So, am I doing something wrong with regard to the usage of commit()?
The code above prints a bunch of nodes and edges, then:
subj: (ymmkesnfok:protein{description:"The liver X receptors, LXRA (NR1H3; MIM 602423) and LXRB, form a subfamily of the nuclear receptor superfamily and are key regulators of macrophage function, controlling transcriptional programs involved in lipid homeostasis and inflammation. The inducible LXRA is highly expressed in liver, adrenal gland, intestine, adipose tissue, macrophages, lung, and kidney, whereas LXRB is ubiquitously expressed. Ligand-activated LXRs form obligate heterodimers with retinoid X receptors (RXRs; see MIM 180245) and regulate expression of target genes containing LXR response elements (summary by Korf et al., 2009 [PubMed 19436111]).[supplied by OMIM, Jan 2010].",id:36,name:"UniProtKB:P55055",type:"protein",uri:"http://identifiers.org/uniprot/P55055"})
  pred: physically_interacts_with
    obj: (ftymebehpu:chemical_substance{description:"A fluorocarbon that is propane in which all of the hydrogens have been replaced by fluorines.",id:37,name:"CHEMBL.COMPOUND:CHEMBL1663",node_attributes:{'annotate': {'common_side_effects': None, 'approval': 'Yes', 'indication': 'Echocardiography', 'EPC': 'Contrast Agent for Ultrasound Imaging'}},type:"chemical_substance",uri:"https://www.ebi.ac.uk/chembl/compound/inspect/CHEMBL1663"})
---------> c2

where it hangs indefinitely.
FWIW, I'm using the docker container version of redisgraph on OSX.
On a related note, the first snippet is a nearly general insert for NetworkX, related to issue #4. It would be pretty great if redisgraph-py supported NetworkX natively in both directions.

Hi @stevencox,
Could you give an estimation on the amount of nodes and edges you're trying to create within a single call to commit
I would start of with a small graph and see if it still hangs.
Also it might be useful to use Redismonitor command to see the exact query which get send by redisgraph-py,
I'm not familiar with NetworkX, I would need to find some time and see what it's all about.

Hi @swilly22,
Thanks for getting back to me.
Graph size:
nodes 988
edges 888

With incremental commits at a batch size of 10, it seems to hang on the first commit:
    def to_knowledge_graph (self, in_graph, out_graph):
        ''' Convert a networkx graph to Ros KnowledgeGraph. '''
        id2node = {}
        print (f"---------> c0")
        for j, n in enumerate(in_graph.nodes (data=True)):
            i = n[0]
            attr = n[1]['attr_dict']
            id2node[i] = out_graph.add_node (label=attr['type'], props=attr)
            if j % 10 == 0:
                print ("commit")
                out_graph.commit ()
        out_graph.commit ()
        print (f"---------> c1")
        for i, e in enumerate(in_graph.edges (data=True)):
            attr = e[2]['attr_dict']
            subj = id2node[e[0]]
            pred = attr['type']
            obj = id2node[e[1]]
            print (f"subj: {subj}")
            print (f"  pred: {pred}")
            print (f"    obj: {obj}")
            out_graph.add_edge (subj=id2node[e[0]],
                                pred=attr['type'],
                                obj=id2node[e[1]],
                                props=attr)
            if i % 10 == 0:
                out_graph.commit ()
        out_graph.commit ()
        print (f"---------> c2")

But playing with the batch size, it seems to hang after around 6 objects. i.e. it will do five commits or so.
I restarted the docker container to be sure it wasn't hung in some way.
Any suggestions welcome.

Alright so the graph is quite small, the fact that you're able to commit in batches, feels like there might be an escaping issue, and so if you could either provide me with Redis monitor output or the actual raw data I'll be able to help further.


⚠ GitLab Server has degraded performance

In ecd284f, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 9086 ms

Resolved: GitLab Server performance has improved in 667f09f.


More Options In Terminal Error Modal

Provide more options in the terminal error modal based on the app. For example in read only context we can have a retry/reload button. Currently we have just two options:

ok button which will change the page location to a url that is defined in chaise config or just the root.
Dismiss button which will be available if allowErrorDismissal is available in the chaise config.

I tried to think about cases where we wanted to provide an alternative. I can only come up with one (assuming that we know the context of when the error is thrown)...

if the terminal error is thrown from a record or recordedit page, provide an option to go to recordset of the same table.

In other cases, we can provide an option for users to reload the page. But in some cases, that would lead back to the error again.

As per the discussion:

For record app OK button should take users to the recordset page
For recordedit, there should be two buttons. OK to take users to the recordset page and a Restart/Reload button to let user start over.

Error modal in recordedit.

There are two terminal error cases that I want to improve the error messages:

Request timeout. We should append "The server is temporarily unavailable. Please try submitting your request later."
In the case of record app without the filter/facet, it throws a generic terminal error. We should bring the "No filters have been specified" instead of embed that in the show error detail.

There are some terminal cases where URL would not be valid. In such scenarios, it is better to let existing behavior be in place (OK should take users to Home.). Some of such scenarios are:

MalformedURIError
InvalidFilterOperatorError
InvalidFacetOperatorError

As per discussion:
Three level of erros:

Chaise Specific
Ermrestjs Specific
Unknown(Terminal error)

For 1 and 2 separate listing will be created. For 1, OK and Reload will behave according to the app and table name that would be extracted from the reference. Record and Recordedit will be taking users to Recordset page. There will be a Reload button for Recordedit app.
For 3 there will be plain Site Admin error message with hard stop and OK going to Home Page.

To get the table display name, reading reference.displayname.value before throwing errors across all apps. The error object thrown will have an attribute gotoTableDisplayname which contains this table name value.
If this attribute is defined along with redirectlink (i.e. link to recordset) then it will be case 1 as described above otherwise case 2 (with  'Home Page' as goto Navigation display name and Link to home page fo OK button).

corresponding ermrestjs PR ermrestjs/pull/579


It had better add "my-vl3-network" definition in to example "features/vl3-basic"

In this example, NSC and NSE use the NetworkService  "my-vl3-network", but it has no definition in it!
Example "vl3-dns" has the same issue.

That is good point.
At this moment we're using self registration via env https://github.com/networkservicemesh/deployments-k8s/blob/main/examples/features/vl3-dns/nse-patch.yaml#L16
We'll do replace this to the netsvc defenition as you proposed.
Thank you!

Should be resolved with https://github.com/networkservicemesh/deployments-k8s/pull/6903


OSOE-423: Offer Media management testing as part of TestBasicOrchardFeaturesAsync() too in Lombiq.UITestingToolbox

OSOE-423

Please assign yourself to https://github.com/Lombiq/UI-Testing-Toolbox/issues/222, and reference it in the PR description.


Improvements to react-router-redux examples

I made some general improvements to things I noticed in the examples:

Removed duplicated imports;
Removed semicolons;
Changed indentation style;
Fixed authReducer which was removing any props other than isAuthenticated because of the spread operator and also triggering an update on default case;

Nit: The previous codebase prefers semicoloms which are now gone.

@bondz Nope, we prefer no semis.

BTW, I haven't had a chance to dive through this yet. But I think I'll end up merging it. Just need some free time.

Turns out adapting that other example wasn't worth it, so I just applied the suggestion @SadPandaBear made and further simplified the example.

Thanks!

I was checking around for examples of linking Redux with React Router v4 and found this PR. The example is great but I just noticed you flipped the naming convention of ComponentContainer and just Component. As you made the Container have the presentational code while the Component to have the interaction with Redux.
The positive thing is to write  directly instead of writing  in JSX every time you use an  for example.

@timdorr - I can agree with sharno: the naming of the container and presentational components has been flipped. Kind of confusing but otherwise a great example.

@sharno
The components were named that way so there wouldn't be a conflict between the component itself and the component wrapped with connect, since it's all in one file. It's true though that if the names were flipped around it'd make more sense, perhaps separating it different files or putting the component class directly inside connect's call would help as well.


Build fails with openssl 1.1.0

OpenSSL 1.1.0 makes some of its structures opaque to the user program (see https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes for more details), which breaks compatibility.

One possible way to resolve this is updating bundled Poco.
I don't see any other code relying in legacy openssl APIs.
/tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/src/RSAKeyImpl.cpp: In member function ‘Poco::Crypto::RSAKeyImpl::ByteVec Poco::Crypto::RSAKeyImpl::encryptionExponent() const’: /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/src/RSAKeyImpl.cpp:216:31: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’   return convertToByteVec(_pRSA->e);                                                                                ^~                                                                                In file included from /usr/include/openssl/crypto.h:31:0,                                                                     from /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/include/Poco/Crypto/OpenSSLInitializer.h:26,                  from /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/include/Poco/Crypto/RSAKeyImpl.h:24,                                   from /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/src/RSAKeyImpl.cpp:17:                      /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’                              typedef struct rsa_st RSA;                                                                                ^~~~~~                                                                                /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/src/RSAKeyImpl.cpp: In member function ‘Poco::Crypto::RSAKeyImpl::ByteVec Poco::Crypto::RSAKeyImpl::decryptionExponent() const’: /tmp/pkgbuilder-1000/clickhouse/src/ClickHouse-1.1.54198-stable/contrib/libpoco/Crypto/src/RSAKeyImpl.cpp:222:31: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’   return convertToByteVec(_pRSA->d);

You could disable USE_INTERNAL_POCO_LIBRARY CMake variable and specify path to new Poco library in Poco_ROOT_DIR.

Yes, that problem is fixed in newer version of Poco ( https://github.com/pocoproject/poco/commit/bfaa161c61cca06526eaf238bfdddd190381616b ). However USE_INTERNAL_POCO_LIBRARY is enabled by default and the issue will break the build if a user has a new version of openssl.
I suggest either to add the latest compatible version of openssl to contrib (and implement USE_INTERNAL_OPENSSL_LIBRARY option), or to update the bundled version of Poco.

@proller

Already fixed.
https://github.com/yandex/ClickHouse/commit/d2d7aaac692d30ef8422774f1a8d0bd327546061
And yes, we want update bundled poco to latest version, but not right now,

Sorry, missed that -- i was validating the latest -stable tag.
I will bundle then d2d7aaa into 1.1.54198 gentoo ebuild and archlinux pkgbuild.


Decouple Docker and Wasm CLI areguments from job specification

Background
The Docker and WASM CLI arguments are tightly coupled to the job specification. This coupling makes changing the Job specification cumbersome as the CLI must be updated, even if said changes are mechanical in nature. Furthermore, the Client (CLI) aims to build a job spec that it then forwards to a Requester node, which then mutates the spec depending on various conditions. We should instead opt to build job specs on the Requester nodes based on the arguments it receives from the client.
Action

The CLI around creating Docker and WASM jobs is a mess. Work completing this issue should aim to streamline the common flags shared by executors (like publisher, verifier, networkconfig, labels, etc.).
Create separate APIs on the Requester node for submitting Docker and WASM Jobs. Said API should expect "regular" types (things that make sense) and use those to build a job spec inside the context of the requester node.

For more details on the thrust of this change refer to https://www.notion.so/Separate-Protocols-from-APIs-2b8552ea1fe6428b832d111494b59f37 and https://www.notion.so/pl-strflt/API-Design-a024dbbb17354643aaa08a5eb665bcfa.

Why is creating Docker- and WASM- specific APIs a good idea when we are trying to move to more genericism in our executors?

You're right, I have removed that from the acceptance criteria and have aimed to just clean up the CLI instead.


TextInput autoCapitalize doesn't work

Environment
react-native 0.64.0:
npm ls react-native-macos: 0.64.13
node: 17.0.1
npm: 8.1.0
yarn: N/A
xcodebuild: 13A1030d

Steps to reproduce the bug
Create a TextInput and add autoCapitalize={'characters'}
Expected Behavior
Characters should display capitalized.
Actual Behavior
Characters display lower case.
Reproducible Demo
No response
Additional context
No response

Thanks for filing this- it seems like another engineer has hit this too so seems like a great candidate to get support for.

I'm ready for support. I need to understand the structure. Would be glad to get some documentation on the code base before getting started. Although I'm exploring this myself for now. @HeyImChris @jbcullis @sahrens @shergin 😃

@SPBabbar I've got no experience with making edits to RN so take this with a grain of salt.
What I've found so far, it seems the property is not mapped in the following file:
/node_modules/react-native-macos/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m
At Line 39:
RCT_REMAP_NOT_OSX_VIEW_PROPERTY(autoCapitalize, backedTextInputView.autocapitalizationType, UITextAutocapitalizationType) // TODO(macOS GH#774)
backedTextInputView is defined at node_modules\react-native\Libraries\Text\TextInput\RCTBaseTextInputView.m and looks like autocapitalizationType is not a supported prop for UIView on OSX.

I think this is addressed withhttps://github.com/microsoft/react-native-macos/pull/1292 @saadnajmi?

Yes I think so. That is checked into our main branch and should be in our next major release (0.70) :)


Layout > Secondary Navigation

[x] When navigation have more items, than we can fit in the screen height, we should display scroll, like in main navigation.

[x] When navigation is fixed, arrows has unnecessary shadow on them:

[x] Pointing arrow, of active menu element, has higher z-index, than dropdown:

Sub Nav

[x] 1. sub-nav items should not have icons,
[x] 2. sub-nav items should be aligned to it's parent text. Set up padding-left: 60px
[x] 3. Add 16px space, between sub-nav and separator

All tasks has been fixed correctly. I'm closing this issue.


Unable to verify CrowdsaleTokenExt

Hello, We have been able to verify the rest except CrowdsaleTokenExt
We have tried with and without ^ and :  but non seems to work. Instruction was followed but non was positive

Please advice. The token have already been sent to reserve account and the contract has been finalized.

@Bitacium open the link like this: https://etherscan.io/verifyContract?a=[ADDRESS_OF_YOUR_CROWDSALE] and fill all empty fields with the info from your zip file (do not rewrite ABI ENCODED parameters). Does it help?

@Bitacium follow the instruction, I gave you above. Your ABI encoded parameters on the screenshot don't match the parameters from this page https://etherscan.io/verifyContract?a=0x19d6c93f2d298362045d63c6e32f741954379a6f. Do not rewrite them.


Sync states for xpu fsdp

Adds sync state for fsdp loading on rank 0 -> broadcasted to other xpu ranks.
Links to #1777
cc @pacman100 @muellerzr

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

cc @muellerzr  and @BenjaminBossan

@muellerzr  could you re-review? Thanks.

Thanks!


Feature/class interpolations

This fixes issue #124.
In order to maintain backwards compatibility with existing implementations using Stapler, the :class interpolation remains unchanged and will render the full namespace and class name combined. As such, two interpolations have been added:

:class_name
:namespace

Also, additional tests have been written for these two interpolations.

I see that I accidentally branched from my own (forked) master branch, which means that #125 and #130 are included in this pull request as well; sorry about that. Please let me know if you'd like me to create a new pull-request with a fresh branch without those changes.

Merging this in now.  Might need to do a bit of cleanup (maybe) on some of this later, but it looks good man.  The :class_name interpolation was something I've been thinking about getting in here for awhile but just never got around to it and the data URI stuff looks very nice.  Thx a lot for these.

Great!


Simplify optional argument generated interface by using Into trait

WebIDL has the possibility of having attribute DOMString? crossOrigin;
There are 46 attribute definitions in available/ and enabled/ that would benefit from this (once long and other attribute types are supported).
scriptEl.set_cross_origin(Some("crossorigin"));

Could be simplified to:
scriptEl.set_cross_origin("crossorigin");

By changing the implementation to:
impl HTMLScriptElement {
...
    pub fn set_cross_origin<'a, T: Into<Option<&'a str>>>(cross_origin: T) -> String {
        cross_origin.into();
        ...
    }
...

There are many more methods that would benefit:
boolean isSameNode(Node? node);

Could be: node.is_same_node(node) instead of node.is_same_node(Some(node))
This shouldn't increase any runtime cost, and make the interface less boilerplate.

Perhaps yeah! Although the webidl bindings are intentionally intended to be low-level rather than ergonomic. There's a whole host of reasons they're not super ergonomic to use, this only being one of them!
I'd personally be inclined to avoid this for now, leaning on concrete types in the low-level bindings and community abstractions to make it less boiler-plate-y

Yeah OK, I'm going to close this for now :+1: thanks for the super fast explanation!


Over-estimated semi-transparent class for S2 rasters since 2022

Since 2022, per-band RADIO_ADD_OFFSET parameters were introduced in the metadata of S2 L1C and L2A products. Neither km_predict nor cm_vsm accounts for that yet. As a consequence, the semi-transparent class for products since 2022 has been over-estimated.

Starting from processing baseline 4.0 (https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-2-msi/processing-baseline):

Provision of negative radiometric values (implementing an offset): A radiometric offset will be added up to the image reflectance at Level-1C. The dynamic range will be shifted by a band-dependent constant, i.e. RADIO_ADD_OFFSET. From the user’s point of view, the L1C Top of Atmosphere (TOA) reflectance (L1C_TOA) shall be retrieved from the output radiometry as follows: L1C_TOAi = (L1C_DNi + RADIO_ADD_OFFSETi) / QUANTIFICATION_VALUEi

The offset will be reported in a new field in the General_Info/Product_Image_Characteristics section of the Datastrip and User Product Metadata. This evolution allows avoiding the loss of information due to clamping of negative values in the predefined range [1-32767] occurring over dark surfaces.

To address this issue, the following changes were made to km_predict.

km_predict now verifies the presence of the radiometric_offset list in the MTD_MSIL1C.xml (or MTD_MSIL2A.xml) file. If the offsets are present, they are applied to the normalization parameters and band arrays for each band.

Below are examples of the product "S2B_MSIL1C_20220830T103629_N0400_R008_T33VUE_20220830T112540.SAFE" both without applying the offset and with the offset:


Made it possible to configure idProperty in DataView (small change)

Hi
Happy SlickGrid user here :-)
This small patch to slick.dataview,js makes idProperty configurable. This saves us a lot of time renaming the key in all our data structures.
--
Tore Bastiansen

You can already pass in the "idProperty" as a second argument in the .setItems().


New increment

Merge
~~embedded_ai/2017-08-07.md at bi-weekly-2017-08-07 · PerfXLab/embedded_ai
https://github.com/PerfXLab/embedded_ai/blob/bi-weekly-2017-08-07/bi-weekly-reports/2017-08-07.md~~
Company
Lift: A novel approach to achieving performance portability on parallel accelerators. | Where High-Level Programming Meets Performance Portability
mlmodelzoo.com – deep learning models on mobile
Other list
ZhishengWang/Embedded-Neural-Network: collection of works aiming at reducing model sizes or the ASIC/FPGA accelerator for machine learning
https://github.com/ZhishengWang/Embedded-Neural-Network
Neural-Networks-on-Silicon/README.md at master · fengbintu/Neural-Networks-on-Silicon
https://github.com/fengbintu/Neural-Networks-on-Silicon/blob/master/README.md

理解 product quantization 算法
http://vividfree.github.io/机器学习/2017/08/05/understanding-product-quantization

doonny/PipeCNN: An OpenCL-based FPGA Accelerator for Convolutinal Neural Networks
https://github.com/doonny/PipeCNN
soumith/convnet-benchmarks: Easy benchmarking of all publicly accessible implementations of convnets
https://github.com/soumith/convnet-benchmarks

百度NLP | 神经网络模型压缩技术 | 机器之心
https://www.jiqizhixin.com/articles/e70180f5-4274-4855-b749-23be41c800d7

OAID/YSQfastfd: A fast binary library for face detection and face landmark detection in images. No float point operations, especially suit for low cost ARM CPUs, The highest accuracy on FDDB among non deep learning methods
https://github.com/OAID/YSQfastfd

blog
深度学习神经网络训练技巧（by 李宏毅）（国语）_演讲•公开课_科技_bilibili_哔哩哔哩
https://www.bilibili.com/video/av14293926/
DIY Prisma app with CoreML – Prisma Labs Blog
https://blog.prismalabs.ai/diy-prisma-app-with-coreml-6b4994cc99e1
递归神经网络RNN怎样加速？看PyTorch如何进行动态批处理
https://mp.weixin.qq.com/s/_6WsbDKZ2Pfipi-blrhzWw
paper
[1709.02043] The Mating Rituals of Deep Neural Networks: Learning Compact Feature Representations through Sexual Evolutionary Synthesis
https://arxiv.org/abs/1709.02043
[1709.00643] Fast Image Processing with Fully-Convolutional Networks
https://arxiv.org/abs/1709.00643
[1709.01041] Domain-adaptive deep network compression
https://arxiv.org/abs/1709.01041
[1709.01427] Stochastic Gradient Descent: Going As Fast As Possible But Not Faster
https://arxiv.org/abs/1709.01427
[1709.00584] Deep Learning-Guided Image Reconstruction from Incomplete Data
https://arxiv.org/abs/1709.00584

News

Why the PowerVR 2NX NNA is the future of neural net acceleration | Imagination Technologies
“NVIDIA Deep Learning Accelerator (NVDLA) - free and open architecture that promotes a standard way to design deep learning inference accelerators” | NVIDIA
NVIDIA DeepStream SDK | NVIDIA Developer
NVIDIA DeepStream SDK, High performance deep learning inference for video analytics
如何评价百度刚刚开源的mobile-deep-learning | 知乎 [code]
MATLAB for Deep Learning: Design, build, and visualize convolutional neural networks | MATLAB & Simulink
Run deployed models up to 4.5x faster than Caffe2 and up to 7x faster than TensorFlow
精确度达30cm，这款超精准GPS芯片将在2018年“空降”智能手机 | DeepTech深科技 [英文原文]

Paper

[1709.09161] EDEN: Evolutionary Deep Networks for Efficient Machine Learning [video]
[1709.08568] The Consciousness Prior
[1709.07566] Smart Mirror: Intelligent Makeup Recommendation and Synthesis
[1709.07638] Approximate Bayesian Inference in Linear State Space Models for Intermittent Demand Forecasting at Scale
[1709.07626] BreathRNNet: Breathing Based Authentication on Resource-Constrained IoT Devices using RNNs
[1709.06622] Distributed Training Large-Scale Deep Architectures
[1709.06053] Coupled Ensembles of Neural Networks

Code

deeplearn.js style transfer [demo]
Binarized Convolutional Landmark Localizers for Human Pose Estimation and Face Alignment with Limited Resources | Adrian Bulat [code] [paper]
fregu856/2D_detection: TensorFlow implementation of SqueezeDet, trained on the KITTI dataset.

Blog

一文概览深度学习中的卷积结构 | 机器之心 [英文原文]
黄教主的开源NVDLA，“核”爆还是“核”平？ | 痴笑、小张 矽说
深度学习只能用实数？凭什么不能用复数？！ | 机器人圈 [英文原文]

Intel Gears Up For FPGA Push
https://www.nextplatform.com/2017/10/02/intel-gears-fpga-push/


Fix debouncing when using a controlled input component

Changes the useMemo dependency for debounceData  to correct an issue that can occur if the parent component re-renders often -  this happens if you are using a custom input control that is a controlled component. In this case, the debounceData function is constantly re-created due to props.query being a new object (even if none of its props have changed). As a result, debouncing does not function correctly and you will get a server request for every character press.
The memoized request function now takes the requestUrl and query params as arguments so that up to date values are always used.

I'm am going through this same thing. Excited for this MR to be approved. I had to patch-package for now

🎉  Patch-package for now, waiting for merge


peripheral manager wrapper class

Have a "peripheral manager" to help manage peripherals such as I2C and SPI that may be shared between several chips. The idea is to make it easy to keep track of when to switch on / off the peripherals when needed or not, in particular to save power.
I think it may be a simple wrapper class, something like:
size_t max_nbr_users = 8;
using userid = char[3];

template<typename T>
PeriphepheralManager{
  public:
    begin(userid)
    end(userid)
    peripheral
    force_end
    active_users
  private:
    etc::vector<char[3], max_nbr_users> active_users
}

implementation ongoing


secret_id is no longer required

It is possible to configure AppRoles to not require a secret_id.
https://www.vaultproject.io/docs/auth/approle.html
https://www.vaultproject.io/api/auth/approle/index.html#create-new-approle
https://www.vaultproject.io/api/auth/approle/index.html#login-with-approle
This PR allows appRoleLogin() to be used without secret_id.
Tested locally without issue.

@ryanlewis Thanks for your PR 🙏 Released as v0.9.9.


What about SpringBoot version 2.3.x

SpringBoot version 2.3.x uses the spring-cloud-alibaba version?

Yes, Spring Cloud Alibaba will be release in this week.


Move loggers to loggers.py file

This move allows us to stop tracking tests for these two objects and
have the package's coverage report more closely representing what
it should.

Codecov Report

Merging #150 into master will increase coverage by 13.36%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           master     #150       +/-   ##
===========================================
+ Coverage   84.46%   97.82%   +13.36%
===========================================
  Files           6        6
  Lines         399      322       -77
  Branches       44       32       -12
===========================================
- Hits          337      315       -22
+ Misses         60        5       -55
  Partials        2        2

Impacted Files
Coverage Δ

bayes_opt/observer.py
100% <ø> (+52.38%)
:arrow_up:

bayes_opt/bayesian_optimization.py
96.9% <100%> (ø)
:arrow_up:

bayes_opt/__init__.py
100% <100%> (ø)
: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 d34f890...6210a93. Read the comment docs.


Support linking external download site per version

Support external download link when creating a new version instead of uploading a jar/zip file.
Mainly for projects that would require multiple jar uploads with the same version strings (plugins that support multiple platforms).

Have a whitelist for allowed sites to link to with a warning displayed otherwise

Warning would be something like "This site has not been verified by the PaperMC Team. The site may be unsafe or unavailable, and we are not responsible for site outages or other problems. Click to continue to the site away." as a middleman page I suppose.


Templating: week number in templates should use NP API to get NP week, not isoWeek

There are convenience functions in templates that get the weekNumber, e.g.
  weekNumber(pivotDate = '') {

@EduardMe has added functionality to get the NP week number instead, since iso may or may not match what you see in your NP interface, depending on what day you pick for the beginning of a week.
For example, here's how I told a user recently to do it:
---
title: Weekly Note Template Tag
---
Using now/today, no matter where you are, this gives you the current weekly note:
[[<%- Calendar.weekYear(new Date()) %>-W<%- Calendar.weekNumber(new Date()) -%>]]
output: 2022-W49

Using week date (this is the best one if you want the weekly note corresponding to a Calendar note which doesn't have to be today):
[[<%- Calendar.weekYear(Editor.note.date) %>-W<%- Calendar.weekNumber(Editor.note.date) -%>]]

Using title (should normally work as above:
[[<%- Calendar.weekYear(new Date(Editor.note.title)) %>-W<%- Calendar.weekNumber(new Date(Editor.note.title)) -%>]]

@jgclark You deal with these kinds of things more than I do. What other things like weekNumber should be fixed/added to the templating date module to give users access to this info?

I'd also add startOfWeekDate as that's available as Calendar.startOfWeek returning a Date.


The question of func to_dense_batch

❓ Questions & Help

I use a dataset that every batch has N graphs and every graph with n_i nodes has a feature matrix(dimension is n_i*d).
Fisrst, When I use the func pytorch_geometric.utils.to_dense_batch,I hope I give a batch matrix A[dimension is (Nn_i)d] then the func return a matrix B[dimension is N(n_id)]
I use the code as fellow:
dataset = TUDataset(root='./data/DD', name='DD')
num_training = int(len(dataset)*0.8)
num_val = int(len(dataset)*0.1)
num_test = len(dataset) - (num_training+num_val)
training_set,validation_set,test_set = random_split(dataset,[num_training,num_val,num_test])

train_loader = DataLoader(training_set, batch_size=50, shuffle=True)

@torchsnooper.snoop()
def test():
        for i, data in enumerate(train_loader):
                a, b = to_dense_batch(data.x)

test()

but I got two matrix like this:
00:15:47.791810 call       189 def test():
00:15:47.792774 line       190         for data in train_loader:
New var:....... data = Batch(batch=[13186], edge_index=[2, 65626], x=[13186, 89], y=[50])
00:15:47.809728 line       191                 a, b = to_dense_batch(data.x)
New var:....... a = tensor<(1, 13186, 89), float32, cpu>
New var:....... b = tensor<(1, 13186), bool, cpu>
00:15:47.809728 line       190         for data in train_loader:
Modified var:.. data = Batch(batch=[14140], edge_index=[2, 70690], x=[14140, 89], y=[50])
00:15:47.830673 line       191                 a, b = to_dense_batch(data.x)
Modified var:.. a = tensor<(1, 14140, 89), float32, cpu>
Modified var:.. b = tensor<(1, 14140), bool, cpu>

If I set the batch_size is 50,I think I should get matrix that dimension is (50,(MAX(n_i)*89)),did I misunderstand?
Looking forward to your reply. Thank you very much!

You need to also pass data.batch to to_dense_batch.

You need to also pass data.batch to to_dense_batch.

It's work.Your reply is so useful.Thank you!
I have another question:If in one batch, MAX(n_i) = 500, some graphs's n_i<500 so that vector's size(0) of these graphs may less then 500.
Is the func to_dense_batch use '0' fill the vector make it's size(1) become 500?

Yes, and the second tensor holds information about valid nodes too.

Yes, and the second tensor holds information about valid nodes too.

Ok,I try to think a question:If we make MAX(n_i) in every batch be equality,is there any methods can realize it?

In that case, you can simply reshape your tensor to [batch_size, num_nodes, num_features].

In that case, you can simply reshape your tensor to [batch_size, num_nodes, num_features].

But in this case,every graph has different number of nodes that means python [batch_size, num_nodes, num_features] of every batch is different,isn't it?

If you do not now the number of nodes for a batch in advance, you can do:
x = x.view(data.num_graphs(), -1, out_channels)

where -1 indicates that num_nodes should be automatically inferred.

.num_graphs(), -1, out_c

Is there x means the first tensor returned of to _dense_batch?
If x is the first tensor returned of to _dense_batch, the out_channels should be pre-computed in every batch.Is this feasible?

Out_channels corresponds to the size of the last dimension

Out_channels corresponds to the size of the last dimension

em......I'm sorry.
the size of last dimension is feature_num?

Yes

Yes
Thank you for taking the time to reply,I try it success!


Add sa_key_provision_ta function and unit tests.

#1. support key provision of wideivine, playready 2000, Netflix, apple Mfi, FairPlay.
#2. enable key provision tests.
#3. provide example of read key and confidential data from files.

Implementation appears to be incorporated within REE rather than TEE domain. Need to revise implementation to correspond to secapi3 architecture: build REE client message, send message to secapi3 TA for processing, TA function to process the data passed in from REE client importing key and then passing to corresponding DRM TA. Take a look at existing secapi3 function like sa_key_import() as an example.

Tests need to be restructured like other secapi3 tests. Again look at other secapi3 functions like sa_key_import() as example.

Test keys like apple_fairplay_secret.key should existing the in test directory space like tasecureapi/reference/test and not in the src/client code.

[Sean] Implemented.


Adapt travis tests to gdal master

There are currently two issues with the tests and gdal master.
The mock debian tmpdir is missing a path for gdal 3.1. I changed the creation of the mockdir to use gdal_version. However, I'm not sure if there was a reason that the paths were hardcoded and I did not notice.
The second issue is, that gdal now something returns for the  COMPD_CS projection. As far as I understand the test_compound_crs test, it is only important that a crs (empty or not) is returned and no crash happens. Thus I changed it to just test if a dict is returned.
Finally, the PR disables that the gdal master installation is always deleted and not cached.

There was a bug in the caching of gdal master that prevented a new build of gdal master when the proj version is changed until the gdal repository has a new commit. This case is probably extremely rare.
Also, I was wondering about the make -j 4 in travis_gdal_install.sh, because if I remember correctly the travis workers only have two cores.
The following command returns the unix timestamp of the last commit.
TZ=UTC git show --quiet --date='unix' --format="%cd"
We could use this command in a similar manner as the current caching mechanism to cache gdal master e.g. for one or two weeks.


Make relaxed parameter type checking less strict

We previously allowed float to vec3 conversions, and it turns out some workflows at SPI could lead to float parameters being passed in as int which we need to perserve.
However, we don't want to get too much more relaxed that this, so make all other cases errors because other mismatches should be flagged as bigger problems and not silently make the wrong picture.

LGTM


Feature request for Keyboard Manager

Description of the new feature / enhancement
It would be nice if, in the text mode you could have special keys or key combinations, like I want to map Alt (Right) to Win+R cmd Enter, because I use command prompt so much.
Scenario when this would be used?
It could be used for more complex key combinations
Supporting information
No response

@xkcd00
Would being able to map keys to programs (e.g. Strg opens cmd.exe) help you? Because we are working on this feature ().

Yes, that would help me, though being able to map keys to more advanced sequences would also be useful.


Prospector failing in cp2k-ci

While prospector passes in the TravisCI it fails in the cp2k-ci. Any ideas?

I think it is related to py2 vs py3 compatibility. On travis we are testing against py3 and we have pylint=2.3.1, while you are testing against py2 and you have pylint=1.9.4 (see here).
If I make a new PR with fixing the problems would you be able to test it?

I think, in that I case I'd rather convert the cp2k-ci test to Python3 instead.

Sure. In case you need inspiration, check the aiida-docker-base container.

Hmm, now I'm getting:
$git clone https://github.com/aiidateam/aiida-cp2k.git
Cloning into 'aiida-cp2k'...

$pip3 install './aiida-cp2k/[pre-commit,test]'
Processing ./aiida-cp2k
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-2hdnlhpq-build/setup.py", line 27, in <module>
        run_setup()
      File "/tmp/pip-2hdnlhpq-build/setup.py", line 18, in run_setup
        kwargs = json.load(info)
      File "/usr/lib/python3.6/json/__init__.py", line 296, in load
        return loads(fp.read(),
      File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 160: ordinal not in range(128)


iCloud calendar events not appending (v2.2.2)

I just installed this plugin for the first time on Logseq v0.9.1, and after configuring the proper iCloud public calendar link (after checking to make sure opening the link downloads the proper .ics file) in the plugin settings, clicking the calendar plugin icon brings up "Fetching calendar items..." and then nothing happens. It adds no past events to previous journals, and none to today. I'm assuming this has something to do with 0.9.1, but I haven't tested any other calendar apps as I don't use any other than iCloud. I've tried restarting Logseq, uninstalling and reinstalling the plugin, configuring my calendar link before enabling the plugin, and everything in between. Plugin just doesn't seem to work as intended.

Sorry, user error... calendar link needs to be prefixed by https:// in the plugin settings.


Put in car Police

so i restrained someone i put him in the car cuffed and then he got out and was uncuffed,

Will be fixed in 4.2.4


Initialisation of layers and weights not available

I ran through the code and i couldnt find any snippet for initialisation of layers. do the layers need initialisation ?
and when "pretrain" parameter is set to TRUE, then nothing happens. Do we need to download the weights from somewhere ?

the layers are initialised. my bad!


Check launch file only if testing

When building husky_control, husky_description, husky_navigation or husky_viz without tests, CMake fails as it does not find catkin_run_tests_target command. This patch adds conditions to fix this problem.

Thanks @erdnaxe !!


How can I use hosted UI with cognito user pool?

** Which Category is your question related to? **
Auth,
** What AWS Services are you utilizing? **
Cognito
** Provide additional details e.g. code snippets **
With amplify-cli how can I use the hosted UI? i.e. I am using amplify add auth to add authentication and create the cognito user pool. When I create the cognito user pool standalone I can use the hosted UI in my javascript app. How can I do the same with amplify?
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html
Please note I am not looking for integrating Cognito with any third party IDP like Facebook or google.

@groundswel You can use the CLI you can amplify add auth and then choose the Default configuration with Social Provider (Federation) for Hosted UI with Cognito user pools.

@groundswel You can use the CLI you can amplify add auth and then choose the Default configuration with Social Provider (Federation) for Hosted UI with Cognito user pools.

What worked for me was using the HOC in my react app.


updated example working with botkit slack adapter?

@benbrown I would like to know what changes are required for this to continue to work 😓 SlackAdapter does not accept .storage

I see I should use: https://www.npmjs.com/package/botbuilder-storage-mongodb

Actually, it does not support tables features 😢

@casz yes, this project is going to be deprecated soon, or at least marked as for legacy Botkit only.
For conversation state persistence, use the botbuilder-storage module.  For your own tables, I would use Mongoose directly.

@benbrown it would be great with more examples of how to use userstate with mongodb storage.
Sadly, I don't have any conversations in my current bot.

Examples of using the Bot Framework userstate?

I guess I don't know what I am asking for 😰
I mainly use botkit and I have some need for storing user data in the mongodb for caching / reduced api requests

Gotcha.
Yeah, the approach I am taking with new Botkit is, Botkit isn't in the business of database handling. It is better to manage that yourself.
To be honest, if this module works for you, just use it -- it can be plonked into the new Botkit using the addPluginExtension method.  Something like this:

Neat, that should at least allow me to migrate quickly and then, later on, remove the usage of this module.

@casz let me know how that goes! :)

@casz did this work out?

I haven't had a chance yet. Hopefully sometime during the weekend :sweat:

Migrating is not easy. Lots of things that have to be rewritten and readjusted :cry:
The docs for testing could use some love cause that is what I am struggling with not knowing whether my changes work or not is like hit or miss at this point :cold_sweat:

I wonder why you chose memory example for bot access/user token
This should do the trick
controller.webserver.get('/install/auth', async (req, res) => {
  try {
    const results = await controller.adapter.validateOauthCode(req.query.code)

    console.log('FULL OAUTH DETAILS', results)

    // Store token by team in bot state.
    storage.write({
      [results.team_id]: {
        bot_access_token: results.bot.bot_access_token,
        bot_user_id: results.bot.bot_user_id,
      },
    })

    res.json('Success! Bot installed.')
  } catch (err) {
    console.error('OAUTH ERROR:', err)
    res.status(401)
    res.send(err.message)
  }
})

async function getTokenForTeam(teamId: string): Promise<string> {
  const team = await storage.read([teamId]);
  if (team && team.bot_access_token) {
      return team.bot_access_token
  } else {
      console.error('Team not found in tokenCache: ', teamId);
  }
}

async function getBotUserByTeam(teamId: string): Promise<string> {
  const team = await storage.read([teamId]);
  if (team && team.bot_user_id) {
      return team.bot_user_id
  } else {
    console.error('Team not found in userCache: ', teamId);
  }
}

Yes, that works.  I am trying to avoid any sort of prescription on using external databases, as every app is different.

FWIW, and for others Googling, I received the following error:
TypeError: this.storage.read is not a function
This issue was helpful for understanding what was going on.

I am also getting the same error TypeError: this.storage.read is not a function
What is the solution?


OnChanged Event Undocumented Change in Behavior

The OnChanged event returns a new Change Type "RowInserted" in version API 1.9 Version 1908. This was not included in API 1.8
Article URL
OnChanged
Issue
This not documented and we do not know how to receive notifications about changes like this  and as result the application failed.

Hi @david-ps,
I'm sorry to hear your application is failing as a result of this change. Just to clarify, is the issue that DataChangeType does not specify the requirement sets in which the change event types were added? Or is it that adding an enum value to the enum caused the issues?

Also tagging @lumine2008 for help track down API requirement sets for the DataChangeType values. Let's sync up to properly document this API.

@AlexJerabek Both. It was not specified in what requirement set the changes to DataChangeType change event types were added, there was no release log or prior notification and, adding an enum value to the enum caused the failure. Coincidently the new functionality seems to be related to a serious bug we have raised and are awaiting advice.

Thanks @david-ps. I'll work with the product team to get the enum requirement sets properly documented. https://github.com/OfficeDev/office-js/issues/728 will track the underlying product bug.

@AlexJerabek Any update on this? Thanks.

@ElizabethSamuel-MSFT Not yet. I've pinged the product team for an update on their end.

Hi @david-ps,
The product team dug into the build history regarding these changes. It appears all of the DataChangeTypes were added as part of ExcelApi 1.7 except for "Unknown". "Unknown" was added in 1.8 and replaced "Others", which only existed for 1.7. Documenting this change is tracked as this internal bug.
Since the documentation for "RowInserted" as accurate, I'll close this issue. I'm following your related iusse, since there are documentation updates that will arise from that.
On a more meta note, we will look into adding better channels to communicate behavior changes, should a situation like this happen again. Thank you pointing out that gap.


[SPARK-29307][BUILD][TESTS] Remove scalatest deprecation warnings

What changes were proposed in this pull request?
This PR aims to remove scalatest deprecation warnings with the following changes.

org.scalatest.mockito.MockitoSugar -> org.scalatestplus.mockito.MockitoSugar
org.scalatest.selenium.WebBrowser -> org.scalatestplus.selenium.WebBrowser
org.scalatest.prop.Checkers -> org.scalatestplus.scalacheck.Checkers
org.scalatest.prop.GeneratorDrivenPropertyChecks -> org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks

Why are the changes needed?
According to the Jenkins logs, there are 118 warnings about this.
 grep "is deprecated" ~/consoleText | grep scalatest | wc -l
     118

Does this PR introduce any user-facing change?
No.
How was this patch tested?
After Jenkins passes, we need to check the Jenkins log.
Closes #25982 from dongjoon-hyun/SPARK-29307.
Authored-by: Dongjoon Hyun<EMAIL_ADDRESS>Signed-off-by: Dongjoon Hyun<EMAIL_ADDRESS>
What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

error option


Need a way to set a custom AABB per visual instance

In latest Godot 3.0 I didn't find any function to set a custom AABB on MeshInstances and various other objects, except particles. It's useful to have this so that visuals transformed using shaders won't get culled wrongly.
I currently need it in my HeightMap module because all chunks of the map re-use the same mesh for memory efficiency, and the Y component of the vertices is offset in the vertex shader from a height map texture. But because the AABB of the mesh is still a flat zero Y, holes suddenly appear in the map because they get culled.

What about VisiblityEnabler and VisiblityNotifier?

I believe they are based on those AABBs too, the root of the issue lies in the culling system itself, in VisualServer. I'm also not even using nodes in my module.

Ok in 2.x there indeed was Mesh.set_custom_aabb( AABB aabb) method. In 3.0 I cant find anything like that in gdscript.
On the c++ site there is surface_set_custom_aabb(int p_surface, const Rect3 &p_aabb); //only recognized by driver (https://github.com/godotengine/godot/blob/master/scene/resources/mesh.h#L190)
But surface api is not exposed. Not sure if it should be or what is the workflow for that in 3.0.
@reduz would be great if you would give us a hint, maybe someone will be able to contribute.

Actually, as I explained in the issue, I need a custom AABB on the instances, not the mesh itself.

@Zylann but  MeshInstances are nodes that are providing interface for the mesh resource which they are holding..?

Read my issue again :)
I need custom AABBs per instance because they all re-use the same mesh, which is displaced in a shader in different ways depending on world position. So I just can't use an AABB that comes from the mesh.

@Zylann Oh, yeah, right! :+1:

What is the status on this?


Change Mexico City short code to the new one imposed in nov 2016

Correct Mexico City Short code
as per

ISO

Thanks!

@benkeen Do you know if there's a scheduled release to include this change?

I generally just release updates whenever I get pinged about it. :) Will release a new version today, thanks again @brianrios33.

2.2.0 is now available.


Better cleanup when unmounting

No need to create a dummy vnode.

conflict :(

No more :-)

wow, that was fast. Awesome :)

I was about to say the conflict meant you had been faster still, but the log says this was written before you reverted the deletion, you beat me because of the PR overhead. Rats.
;-)


Library status

Hello. Is this library under development or is it abandoned?

Hi, I'm interested too

Hello @kmaestro and @lobodol
tricky to say. In general it is under development :) But the time I am able to spend is pretty limited at the moment :(


Documentation

Could you give any short hints on how this can actually be integrated with Flynn instead of standalone? The README doesn't give any clues and I can't find any documentation within Flynn either.

:+1: on this. I have no clue how to use this with Flynn.

up :+1:

+1

❤

👍


Iam delete inline policy

It's the bot that i'm working on now.

It's shouldnt be in the bruch.
I will change it.


remove all references to output$plot02 both here, and elsewhere that it's called

https://github.com/benda18/Rollercoaster_Evolution/blob/700e992c06997bfb438e5c6c912dd75a56237eb0/shiny/rollercoasters/app.R#L217C2-L265C24

[ ] output$plot02
[ ] xxxId = "plot02"
[ ] ???


fix issue: Incorrectly Calculates Time and Penalty for After-Accept Submissions

We rebase PR’s instead of merging them, that is why your commits from the other PR are also on this one. You can fix this by doing some rebasing or cherry picking but I can also fix that.
(For the next PR if you first pull and hard reset your master to the upstream master this should not happen anymore)


Fix Lightbox error with non existent index

When change current index to second slide, and jump to another app with only one image, an exception was launched.
This PR fix this problem, by preventing a non existent index.
Fixes #2416

Thank you


Simplify code in Follow Redirect: No Options

Some changes to simplify the code in FollowRedirect by removing false options.

The variable pureBody was defined as a Some, so there was no   need for the Option in its type.
The Method nextRequest was identical in both branches except for the last instruction, about the body, which depends on whether bodyOpt is a Some or a None
The bodyOpt parameter was fixed in each call to either a Some or a None, which means we can fold last part of the def nextRequest method after the call.
The nextRequest was an Option only because the pureBody was.  Since pureBody is always Some, we can remove branching there.
And thus remove the nextReq.fold(dontRedirect) at the end.

@rossabaker After digging a bit deeper, I ended up with a change a bit larger that what I started with at first. I have extracted a pure, non-effectful, non-optional function nextRequest, which carries the whole process of building the redirection-request from the previous request and response.

The test failures look related.  I think something broke in the refactoring.

@rossabaker There was a mistake in composing the operations of nextRequest, which I have fixed.


Modal: fixed add body class

Add class to body if modal is open

@Asgator
This is for IE compatibility?
I don't think that it's the right place. Probably better to put these classes in dimmer component when 'page' prop is given.

@Asgator No
Anyway, i'd implement this change in dimmer itself.


Hardware raytracing acceleration

This is probably a bad idea.
This is a feature branch in which I'm attempting to add RTX support to the Vulkan branch. Current status is it can check if raytracing is supported, enable it if so, and report back to Lua what it did.
This feature is problematic for reasons including RTX being questionably practical at VR framerates, unlikelihood of support on Android and raytracing being overall simply complex. But, I want to experiment with it. Long term, if we choose to add this feature it should probably have a shader-based fallback implementation for systems that lack RTX.

re questionably practical at vr framerates: i have to contest this on a couple points:

this is unlikely to be true for too much longer (i.e. a hardware generation or two if i'm being a bit more conservative)
vr eye buffer resolutions are only a subset of relevant use cases.
vr framerates at the bottom end of the scale are only around 45fps if we're accounting for tech like ASW - and i believe that's not outlandish on current gen hw

i agree that there should ideally be a fallback path, though, i'm going to have useful systems without RT hardware for quite some years to come where it'd still be very useful for experimentation.

dev branch is probably in a mature-enough state for this feature now

This is now rebased on the dev branch and "works" (can successfully report raytrace capability when run with https://github.com/mcclure/lovr-gpu-sample test "1-info").

Poke, wondering if this is still active and should be kept open?  Still excited about it and would be interested in contributing design/code at some point.


Default language

Hi, thanks for this awesome plugin. There is a way to set a default language? i want to have a lang subfolder only for the other languages. Example with this languages languages: ['en', 'de', 'fr'] i want this output
index.html
/de
/fr

instead of
index.html
/en
/de
/fr

Duplicate of #1


Questions about the usage of two-view refinement

Thank you very much for your amazing work and kind sharing.
I am sorry to bother you in your busy time, but could you teach me how to use your two-view refinement code?
I currently have an algorithm that extracts matched keypoints from two images.
I save them as:

keypoints1 (with shape (2000, 2)) and keypoints2 (with shape (2000, 2))
2000 means the number of keypoints, and 2 means two coordinates (x and y)

They are already matched, which means (keypoints1[i][0], keypoints1[i][1]) is corresponding to (keypoints2[i][0], keypoints2[i][1]).
In this case, how can I apply your two-view refinement?
Since I am now focusing only on two-view scenario, I hope to try your powerful method.
I will really appreciate it if you can help me with this naive question.
Thank you again for the great contributions to the community.

Currently, there is no easy way to run the refinement on two-views only. In theory, you have to call refine_matches as follows:
displacements12 = refine_matches(
    image1, keypoints1,
    image2, keypoints2,
    matches,
    net, device, batch_size, symmetric=False, grid=False
)

where keypoints1 is N1x2, keypoints2 is N2x2, matches is Mx2 (feature id 1, feature id 2). This will return an Mx2 vector corresponding to the "correction" that needs to be applied to the keypoint of the second image for each match.
Please take care at the fact that the keypoints are expected in format x, y where x points right, y points down, while the returned flow is y, x.
To update the keypoints, you can do something along the lines:
dx = displacements12[:, 1]
dy = displacements12[:, 0]
keypoints2[matches2[:, 1], 0] += dx
keypoints2[matches2[:, 1], 1] += dy

Take a look at compute_match_graph.py for more information:
https://github.com/mihaidusmanu/local-feature-refinement/blob/d7766e47f22559e174b84b9e50ac24218317254f/two-view-refinement/compute_match_graph.py#L154-L159
I will try to prepare a quick script for the two-view case and add it to the repository next week!

hello, Mihai.
I am an software engineer and interested in sfm. I have read your excellent paper <> and this excellent code. I the follow souce code file
local-feature-refinement/multi-view-refinement/cost.cc, line 20 ~23.
const double lagrange_row[3] = {2. * row * (row - .5), (-4.) * (row - .5) * (row + .5), 2. * row * (row + 0.5)};
const double deriv_lagrange_row[3] = {2. * row + 2. * (row - .5), (-4.) * (row - .5) + (-4.) * (row + .5), 2. * row + 2. * (row + 0.5)};
const double lagrange_col[3] = {2. * col * (col - .5), (-4.) * (col - .5) * (col + .5), 2. * col * (col + 0.5)};
const double deriv_lagrange_col[3] = {2. * col + 2. * (col - .5), (-4.) * (col - .5) + (-4.) * (col + .5), 2. * col + 2. * (col + 0.5)};
It is a little hard to understand these code. Could you show the original cost function, and how to get these lagrange_row, deriv_lagrange_row,lagrange_col, deriv_lagrange_col, and why is 0.5.
Best wishes!
Hanlun Li
<EMAIL_ADDRESS>

Hi mihaidusmanu
Thanks a lot for your amazing work and kind sharing. I am very sorry to bother you. I found that the output of refine_matches_coarse_to_fine always less than one pixels (test dataset Herzjesu, Fountain).  If I add an extra pixels for the key points location, the out of the refine_matches_coarse_to_fine is still less than one pixels. Is that this function can only  handle errors of less than one pixel.
I would really appreciate it if you could answer my question.
Thanks again for sharing your code.

Hello. Inside our pipeline, we use 33x33 patches for refinement and the coordinates are normalized such that the top left corner is (-1, -1) and bottom right is (1, 1). The outputs of refine_matches_coarse_to_fine is also normalized. If you want to get pixel displacements, you will need to multiply by 16 (to undo the normalization) and potentially also by the scaling factor used during feature extraction. You can refer to the following piece of code for instance https://github.com/mihaidusmanu/local-feature-refinement/reconstruction-scripts/colmap_utils.py#L136

Oh, I understand. Thank you very very much for your help.


Korean Scrap doesn't work

if(region === 'kr'){
await page.goto(https://$www.op.gg/summoner/userName=${user})
}else{
await page.goto(https://${region}.op.gg/summoner/userName=${user})
}

Yeah, I think it should be op.gg only cause it goes to Korea by default

I have created a pull request and added a necessary change! you can merge to fix it

Merged it


Timed out waiting for chrome connection

Hello I am having issue of "timed out waiting for chrome connection".
because of this issue getting 504s status code in response.
If i will restart the prerender server it will work fine, But again after some day it will throw same error.

Which version of Chrome and Prerender are you using? Also, which operating system and version? That sounds like Chrome was unable to start properly.

@thoop I am using ubuntu operating system.
System - Ubuntu 16.04.5 LTS
Chrome version - Google Chrome 69.0.3497.100
Prerender version - 5.4.4

@thoop any update?

I am having the same issue on two different machines, both Linux x64 running latest google-chrome-stable and prerender

Does it give the error every time Prerender starts up Chrome? Can you send over your Prerender server logs? I haven't run into this and would need some more info to look into what could be the cause.

It was my mistake, I never called server.start() :man_shrugging:
It was somehow answering requests anyway. Maybe when answering a request it could throw an error if not started just to avoid this dumb mistake in the future.

Ah, yes server.start() is the one that actually starts the browser after the web server has already been started. We might want to do something there to alert you that Chrome isn't running

You can run a cronjob to check for Timed out waiting for chrome connection in syslog
#!/bin/bash
search_string="Timed out waiting for chrome connection"

if tail -n 20 /var/log/syslog | grep -q "$search_string"; then
    echo "Restarting the prerender service."
    systemctl restart prerender

    if [ $? -eq 0 ]; then
        echo "The prerender service has been successfully restarted."
    else
        echo "Failed to restart the prerender service. Please check the service status."
    fi
else
    echo "No issues have recently occurred."
fi

this solution helps, but still we will regularly get false 504 error canceled long ago, but the problem is still there ((


Store v128 as u128 in wasmtime crate

As suggested, this seems like a better and more ergonomic idea than
using [u8; 16]!

Seems like an improvement to me.
Any way we could do the same for RuntimeValue?

When I first added some v128 support in wasmtime and cranelift, I talked to @sunfishcode and I think we agreed to use a [u8; 16] in a few places. I can't remember why we agreed that but it made me think: what is preferable about u128 in this case over [u8; 16]?


Add new port nyan

Fixes 32249

[x] Changes comply with the maintainer guide
[x] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
[x] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx
[x] The versioning scheme in vcpkg.json matches what upstream says.
[x] The license declaration in vcpkg.json matches what upstream says.
[x] The installed as the "copyright" file matches what upstream says.
[x] The source code of the component installed comes from an authoritative source.
[ ] The generated "usage text" is accurate. See adding-usage for context.
[ ] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is in the new port's versions file.
[x] Only one version is added to each modified port's versions file.

Name should be nyan-lang

Let me figure out what this means
warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.

    D:\packages\nyan-lang_x86-windows\bin\nyancat.exe

warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.

    D:\packages\nyan-lang_x86-windows\debug\bin\nyancat.exe

Hi @Adela0814 , how should I handle these exe files? Should I put them under tools\ instead of bin\ ?

Hi @Adela0814 , how should I handle these exe files? Should I put them under tools\ instead of bin\ ?

Yes, please move the executable file to the tools\.

Will contact upstream for build failures

UWP builds are failing because SymInitialize is not available.

Hi @Adela0814 , is there a way to detect UWP builds? I contacted upstream and the maintainers want to remove the usage of SymInitialize in UWP builds.

I would still recommend switching to setting FLEX_EXECUTABLE.

nyan/CMakeLists.txt has find_package(FLEX 2.6 REQUIRED). Does setting FLEX_EXECUTABLE work for find_package?

Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags.

I would still recommend switching to setting FLEX_EXECUTABLE.

@dg0yt nyan/CMakeLists.txt has find_package(FLEX 2.6 REQUIRED). Does setting FLEX_EXECUTABLE work for find_package?

Yes. The package does a find_program(FLEX_EXECUTABLE ...), and setting this cache variable (aka input variable) in advance is a public interface. In vcpkg, it is used in five other ports.

Applied suggested changes and rebased to latest master branch.


ELK Output

:)

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 14 Sep 2014 at 5:50

👍


CVAT UI: batch of fixes

Motivation and context

Resolve #1825
Also resolved few linting isuues
How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[x] I have added description of my changes into CHANGELOG file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
[x] I have linked related issues (read github docs)
[x] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

Pull Request Test Coverage Report for Build 6641

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.009%) to 65.01%

Files with Coverage Reduction
New Missed Lines
%

cvat/apps/engine/media_extractors.py
2
76.99%

Totals

Change from base Build 6627:
-0.009%

Covered Lines:
11102

Relevant Lines:
16675

💛  - Coveralls


Fix http connection reuse

At Datameer, we have had failing communication between client and server when the client reused HTTP connections. When I looked at the code, I noticed that the author(s) of the ConnectionKeepAliveStrategy seemed to think that it does what is actually the purpose of a ConnectionReuseStrategy. The comments within getKeepAliveDuration(..) suggest that they thought that by returning -1 they disable connection reuse (it actually means "keep the connection alive indefinitely").
However, I'm not sure if that is the real root cause of our issues regarding failing communication between client and server when connections are reused, so I designed the new code so that connections are never reused unless told to via property.

Thanks @kschubert. To respect server keep-alive timeout setting, PR #515 was merged and released in 0.2.5. Connection setting keepAliveTimeout is deprecated and will be removed in 0.3.0. What's the issue you had? Did you find disabling connection reuse helpful? If the issue is "host failed to respond", I'm afraid we have to go with retry(as in #540).