PDF file is not generated in specified output location

Expected Behavior
PDF file generated should appear in the location specified at the command line
Actual Behavior
I'm seeing 3 different behaviors with different inputs

Most results are written to the directory level immediately above the one specified
One result was written several levels above the expected location
The last variation is a file that fails to start the clean-preprocess: with Error: java.lang.NullPointerException. I have files in the temp folder and it has content

Possible Solution
I was using 3.0.1 when I initially discovered the problem. Going back to 2.5.2 yielded the correct results. I've also tested in 3.0.2 and the problem exists there as well.
Steps to Reproduce

run any input with the OT and specify an output location.
results will be written above the level specified. Not sure what is triggering the other results.

Copy of the error message, log file or stack trace

Environment

DITA-OT version:
3.0.1 and 3.0.2
Operating system and version:
Mac high Sierra
How did you run DITA-OT?
Command line
Transformation type:
custom PDF

Can you also attach a sample DITA project, maybe paste the entire command line that you use to start it? Also for the "NullPointerException" maybe attach the entire received console log output?

I see the same behaviour using DITA-OT version 3.0.3
Environment

DITA-OT version:
3.0.3
Operating system and version:
Mac Sierra
How did you run DITA-OT?
Command line, using ant
Transformation type:
Standard PDF (pdf2)

Project configuration
Project structure
The documentation folder structure:

build_project.xml (ant project file, see below)
oadtech.ditamap (the master ditamap)
main_source_folder

other_ditamap.ditamap
another_ditamap.ditamap
sub_source_folder_01

source_file_01.xml
source_file_02.xml
...

sub_source_folder_02

source_file_03.xml
source_file_04.xml
...

minor_source_folder

source_file_05.xml
source_file_06.xml

Ant project file
<?xml version="1.0" encoding="UTF-8" ?>

<project xmlns:dita="http://dita-ot.sourceforge.net" name="build-adtech" default="init" basedir="." >

  <property environment="env"/>

  <property file="${dita.dir}/local.properties"/>
  <property name="dita.output.dir" value="${basedir}${file.separator}out" />

  <tstamp>
    <format property="TODAY_FORMATTED" pattern="yyyy-MM-dd" />
  </tstamp>

  <echo message="The DITA base directory is ${env.DITA_INSTALLATION}"/>
  <echo message="Today's date is ${TODAY_FORMATTED}"/>

  <!--  />
  </target>

  <target name="adtech.init">
    <mkdir dir="${output.adtech.dir}" />
    <mkdir dir="${output.adtech.js.dir}"/>
  </target>

  <target name="adtech.js" description="Generate tocjs javascript file" depends="adtech.del_all,adtech.jsweb,pulse_ug.pdf">
    <ant antfile="${dita.dir}${file.separator}build.xml">
      <property name="args.input" location="${basedir}${file.separator}oadtech.ditamap"/>
      <property name="output.file" value="${output.adtech.js.dir}${file.separator}toctree.js"/>
      <property name="transtype" value="tocjs"/>
    </ant>
    <copy todir="${output.adtech.js.dir}">
      <fileset dir="${dita.dir}${file.separator}plugins${file.separator}com.sophos.tocjs${file.separator}basefiles">
        <include name="**/*"/>
      </fileset>
    </copy>
  </target>

  <target name="adtech.jsweb" description="build the adtech content for the web" depends="adtech.init">
    <ant antfile="${dita.dir}${file.separator}build.xml">
      <property name="args.input" location="${basedir}${file.separator}oadtech.ditamap"/>
      <property name="output.dir" location="${output.adtech.js.dir}"/>
      <property name="args.css" location="${dita.dir}${file.separator}plugins${file.separator}com.sophos.tocjs${file.separator}sample${file.separator}basefiles${file.separator}sample.css"/>
      <property name="args.copycss" value="yes"/>
      <property name="transtype" value="xhtml"/>
    </ant>
    <copy file="${basedir}${file.separator}frameset.html" tofile="${output.adtech.js.dir}${file.separator}frameset.html"/>
  </target>

  <target name="pulse_ug.init">
    <mkdir dir="${output.adtech.pdf.dir}"/>
  </target>

  <target name="pulse_ug.pdf" description="build the Pulse User Guide PDF" depends="pulse_ug.init">
    <ant antfile="${dita.dir}${file.separator}build.xml">
      <property name="args.input" location="${basedir}${file.separator}oadtech${file.separator}user_guide_pulse.ditamap"/>
      <property name="transtype" value="pdf2"/>
      <property name="output.dir" location="${output.adtech.pdf.dir}"/>
      <property name="outputFile.base" value="User Guide"/>
    </ant>
  </target>
</project>

Command used
Run from the top folder where the build project file is located.
ant -f build_project.xml pulse_ug.pdf
Expected PDF output location
I'd expect the pdf file to be located here:

out

pdf

User Guide.pdf

Actual PDF output location
The file is always located at the top folder:

out
User Guide.pdf

Other
I see a similar issue when building the xhmtl output. The files do end up in folders in the out directory, but not in the out/js directory as instructed.

Pretty sure the pull request #2923 will fix the problem reported in the title. It won't do anything about the null pointer error, but at least one NPE that ended at the same point was fixed in 3.0.2 so that may be resolved already (I don't think Radu got a response to the request for samples there, so I can't try to reproduce).

@robander close this if you think #2923 fixes this.

Marking closed - the pull request fixes the issue of PDF going to the wrong output directory. If other issues with PDF generation like the Null pointer error still exist in 3.0.3 or 3.0.4, please open another issue (ideally with a source sample) so we can track it down.


New Feature: Support the Bitbucket Server Web Post Hooks Plugin

Currently, the bitbucket/stash webook only supports the External Hooks plugin, and even that has some issues (#25).
It would be good if this module also supported the following webhook plugin which is officially supported by Puppet's Code Manager:
https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-web-post-receive-hooks-plugin/server/overview

Long overdue @natemccurdy, you are right.  Thank you for the reminder.  Might be hitting you up this week with something related so I can move on to this issue.


Error when installing selective_scan

(vmamba) brcao@dawn:/eData05/brcao/Repos/VMamba/kernels/selective_scan$ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /eData05/brcao/Repos/VMamba/kernels/selective_scan
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/eData05/brcao/Repos/VMamba/kernels/selective_scan/setup.py", line 18, in <module>
          from torch.utils.cpp_extension import (
        File "/home/brcao/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 28, in <module>          from pkg_resources import packaging  # type: ignore[attr-defined]
      ImportError: cannot import name 'packaging' from 'pkg_resources' (/home/brcao/.local/lib/python3.8/site-packages/pkg_resources/__init__.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(vmamba) brcao@dawn:/eData05/brcao/Repos/VMamba/kernels/selective_scan$ pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/brcao/.local/lib/python3.8/site-packages (24.1.1)
WARNING: Error parsing dependencies of distro-info: Invalid version: '0.23ubuntu1'
WARNING: Error parsing dependencies of python-debian: Invalid version: '0.1.36ubuntu1'

GPU: 3090-Ti

It seems that you have not installed the package packaging. Install it and try again.

@MzeroMiko Thanks for the reply.
I tried this and got
(vmamba) brcao@dawn:/eData05/brcao/Repos/VMamba/kernels/selective_scan$ pip install packaging
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: packaging in /home/brcao/.local/lib/python3.8/site-packages (24.1)
WARNING: Error parsing dependencies of distro-info: Invalid version: '0.23ubuntu1'
WARNING: Error parsing dependencies of python-debian: Invalid version: '0.1.36ubuntu1'

It's related to CUDA, PyTorch and Python versions.    6 seconds ago    Up 4 seconds                         goofy_cori
814ed2da2305   anibali/pytorch:2.0.1-cuda11.8                "/bin/bash"              25 minutes ago   Up 25 minutes                        great_jackson
dd28bbe17556   chainguard/pytorch-cuda12                     "/usr/share/torchvis…"   35 minutes ago   Created                              condescending_fermat
80075526ea00   chainguard/pytorch-cuda12:latest              "/usr/share/torchvis…"   36 minutes ago   Created                              competent_goldberg
00f687f444b0   pytorch/manylinux-cuda121                     "/bin/bash"              2 hours ago      Up 2 hours                           blissful_elion
f7ffd30bb6ae   bryanbocao/tsa_net_pytorch                    "/bin/bash"              2 days ago       Up 2 days                            boring_ptolemy
87e0eeff525e   bryanbocao/tsa_net_pytorch                    "/bin/bash"              2 days ago       Up 2 days                            musing_spence
1acd0c9d4581   bryanbocao/tsa_net_pytorch                    "/bin/bash"              2 days ago       Up 2 days                            eloquent_raman
6c181005d7ea   nvcr.io/nvidia/pytorch:pytorchCompare         "/opt/nvidia/nvidia_…"   2 weeks ago      Up 2 weeks      6006/tcp, 8888/tcp   nervous_lamarr
8336aec918d2   nvcr.io/nvidia/pytorch:24.01-py3              "/opt/nvidia/nvidia_…"   2 weeks ago      Up 2 weeks      6006/tcp, 8888/tcp   quirky_hoover

(vmamba) brcao@dawn:/eData05/brcao/Repos/UDA_SCI$ sudo docker exec -it 829a32bfc380 /bin/bash
root@829a32bfc380:/workspace# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0
root@829a32bfc380:/workspace#

root@829a32bfc380:/workspace# cd /share/eData05/brcao/Repos/VMamba/
root@829a32bfc380:/share/eData05/brcao/Repos/VMamba# pip install -r requirements.txt

Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 kB 17.7 MB/s eta 0:00:00
Downloading portalocker-2.10.0-py3-none-any.whl (18 kB)
Building wheels for collected packages: fvcore, iopath
  Building wheel for fvcore (setup.py) ... done
  Created wheel for fvcore: filename=fvcore-0.1.5.post20221221-py3-none-any.whl size=61400 sha256=a7e1b0731ef02b4b05beb1061d56fe4202ae0254e161038d3bf9c0bd5c7e1ed1
  Stored in directory: /root/.cache/pip/wheels/01/c0/af/77c1cf53a1be9e42a52b48e5af2169d40ec2e89f7362489dd0
  Building wheel for iopath (setup.py) ... done
  Created wheel for iopath: filename=iopath-0.1.10-py3-none-any.whl size=31532 sha256=5abf8aa7d3d30fee13835e1c73359e2cc703a87e3408a040f9e8e92929ecc6dd
  Stored in directory: /root/.cache/pip/wheels/9a/a3/b6/ac0fcd1b4ed5cfeb3db92e6a0e476cfd48ed0df92b91080c1d
Successfully built fvcore iopath
Installing collected packages: yacs, tzdata, termcolor, tabulate, python-dateutil, pyparsing, protobuf, portalocker, pluggy, kiwisolver, iniconfig, fonttools, cycler, contourpy, cloudpickle, tensorboardX, submitit, pytest, pandas, matplotlib, iopath, seaborn, fvcore, timm
  Attempting uninstall: pluggy
    Found existing installation: pluggy 1.0.0
    Uninstalling pluggy-1.0.0:
      Successfully uninstalled pluggy-1.0.0
Successfully installed cloudpickle-3.0.0 contourpy-1.2.1 cycler-0.12.1 fonttools-4.53.0 fvcore-0.1.5.post20221221 iniconfig-2.0.0 iopath-0.1.10 kiwisolver-1.4.5 matplotlib-3.9.0 pandas-2.2.2 pluggy-1.5.0 portalocker-2.10.0 protobuf-5.27.2 pyparsing-3.1.2 pytest-8.2.2 python-dateutil-2.9.0.post0 seaborn-0.13.2 submitit-1.5.1 tabulate-0.9.0 tensorboardX-<IP_ADDRESS> termcolor-2.4.0 timm-0.4.12 tzdata-2024.1 yacs-0.1.8
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

root@829a32bfc380:/share/eData05/brcao/Repos/VMamba# cd kernels/selective_scan && pip install .
Processing /share/eData05/brcao/Repos/VMamba/kernels/selective_scan
  Preparing metadata (setup.py) ... done
Requirement already satisfied: torch in /opt/conda/lib/python3.10/site-packages (from selective_scan==0.0.2) (2.3.1)
Requirement already satisfied: packaging in /opt/conda/lib/python3.10/site-packages (from selective_scan==0.0.2) (23.2)
Collecting ninja (from selective_scan==0.0.2)
  Downloading ninja-<IP_ADDRESS>-py2.py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl.metadata (5.3 kB)
Collecting einops (from selective_scan==0.0.2)
  Downloading einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (4.11.0)
Requirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (1.12.1)
Requirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.2.1)
Requirement already satisfied: jinja2 in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.1.4)
Requirement already satisfied: fsspec in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (2024.6.0)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/lib/python3.10/site-packages (from jinja2->torch->selective_scan==0.0.2) (2.1.3)
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /opt/conda/lib/python3.10/site-packages (from sympy->torch->selective_scan==0.0.2) (1.3.0)
Downloading einops-0.8.0-py3-none-any.whl (43 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.2/43.2 kB 1.7 MB/s eta 0:00:00
Downloading ninja-<IP_ADDRESS>-py2.py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl (307 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 307.2/307.2 kB 8.4 MB/s eta 0:00:00
Building wheels for collected packages: selective_scan
^@  Building wheel for selective_scan (setup.py) ... -
root@829a32bfc380:/share/eData05/brcao/Repos/VMamba# cd kernels/selective_scan && pip install .
Processing /share/eData05/brcao/Repos/VMamba/kernels/selective_scan
  Preparing metadata (setup.py) ... done
Requirement already satisfied: torch in /opt/conda/lib/python3.10/site-packages (from selective_scan==0.0.2) (2.3.1)
Requirement already satisfied: packaging in /opt/conda/lib/python3.10/site-packages (from selective_scan==0.0.2) (23.2)
Collecting ninja (from selective_scan==0.0.2)
  Downloading ninja-<IP_ADDRESS>-py2.py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl.metadata (5.3 kB)
Collecting einops (from selective_scan==0.0.2)
  Downloading einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (4.11.0)
Requirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (1.12.1)
Requirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.2.1)
Requirement already satisfied: jinja2 in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (3.1.4)
Requirement already satisfied: fsspec in /opt/conda/lib/python3.10/site-packages (from torch->selective_scan==0.0.2) (2024.6.0)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/lib/python3.10/site-packages (from jinja2->torch->selective_scan==0.0.2) (2.1.3)
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /opt/conda/lib/python3.10/site-packages (from sympy->torch->selective_scan==0.0.2) (1.3.0)
Downloading einops-0.8.0-py3-none-any.whl (43 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.2/43.2 kB 1.7 MB/s eta 0:00:00
Downloading ninja-<IP_ADDRESS>-py2.py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl (307 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 307.2/307.2 kB 8.4 MB/s eta 0:00:00
Building wheels for collected packages: selective_scan
^@  Building wheel for selective_scan (setup.py) ... -

^done
  Created wheel for selective_scan: filename=selective_scan-0.0.2-cp310-cp310-linux_x86_64.whl size=11632618 sha256=be88055a89072fb382e7683a9b07b116a3476742cc6e6bfaa7560010b79f6739
  Stored in directory: /tmp/pip-ephem-wheel-cache-wvq_zmjn/wheels/96/47/2a/d6a5add371d500594ee7526422a3c61e7eabcaeaad4fe691a2
Successfully built selective_scan
Installing collected packages: ninja, einops, selective_scan
Successfully installed einops-0.8.0 ninja-<IP_ADDRESS> selective_scan-0.0.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv


Fix online monitor test

The online monitor is tested on a TTL collection. If this is empty, the test will fail. This PR patches the test.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 89.326%

Totals

Change from base Build<PHONE_NUMBER>:
0.03%

Covered Lines:
6452

Relevant Lines:
7223

💛  - Coveralls


Add translation/analyze-plain-text-sentiment capability

Description

This PR adds translation/analyze-plain-text-sentiment capability with mock, google-apis-language, ibm-cloud-natural-language-understanding providers and maps.
Motivation and Context
Extend toolbox capabilities.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I haven't repeated the code. (DRY)
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

@freaz, @Jakub-Vacek  this PR has already been approved by "Z" but I had to rebase it and update recordings, please check it quickly
Linter is passing, tests as well.


docs(contributing): fix broken link to translations sub-section

SUMMARY
Fix broken link to sub-section header.  You can see the header is "Contributing Translations" so the link needs to reflect that:

@rusackas tried to install a markdown link-checker before, not sure why it was held up (?)

@rusackas tried to install a markdown link-checker before, not sure why it was held up (?)

...because it works, and there are a slew of links that need to be cleaned up for it to pass its own CI :P
https://github.com/apache/superset/pull/28424

Thanks for this, and thanks for merging. FWIW, I'm about to merge #28424, but that doesn't seem to catch links like this that are relative, within docusaurus. I'll keep working on that problem. It did find a ton of other broken stuff though, so it's still worth keeping/merging that action, I reckon!


GUI Update not working on Samsung TV

Hi,
i have an application where i need to display a website with the build in browser of my samsung tv.
In general it works very good, the only thing that does not work is that i do net get gui updates.
When i execute the same code on my pc with chrome or any other browser it works fine.
Do you know how i can solve this?
Thanks in advance for your help :)

Sounds like the web socket isn't working. Do you know if the TV browser supports them?

Might need to include a fallback to a js compatibility library like socket.io, see the following: https://stackoverflow.com/questions/16162616/using-websockets-on-samsung-smart-tv
"Have you tried socket.io server and client libraries?
We have socket.io server on node.js, and TV can connect to it using socket.io-client library. On 2012 TV it uses websocket. On 2011 TV it uses XHR fallba"


API about Identifier's scope

I want to write a CustomTransformers for my webpack loader config.
Babel's visitors have API about scope
If I get a path of ImportDeclaration import * as React from "react", I can using  path.scope.getBinding('React').referencePaths to get all reference paths using React.
Is there any API in TypeScript to get identifier's scope or referenced nodes/identifiers?
Also, Is there any API in TypeScript to get  ImportDeclaration's moduleSpecifier's resolved source file? for example import * as React from "react"'s resolved source file is /home/me/my-ts-project/node_modules/react/cjs/react.development.js

I have written a utility function to get all references to a given declaration.
import {collectVariableUsage} from 'tsutils';

/**
  *`identifier` needs to be the name of the declaration and be located within `sourceFile`.
  * Note that this only works on one source file at a time and can therefore not detect references to global variables in other files.
  */
function getUses(sourceFile: ts.SourceFile, identifier: ts.Identifier) {
  // you might want to cache the result of `collectVariableUsage`
  return collectVariableUsage(sourceFile).get(identifier)!.uses;
}

Currently you can only look up the uses of a declaration. A reverse lookup is not possible. It also doesn't tell if an identifier is in scope at a given location.
Tough I'm planning on improving the API to make it more powerful and easier to use: https://github.com/ajafff/tsutils/issues/38

resolveName is now an API on TypeChecker: https://github.com/microsoft/TypeScript/blob/6ea273cdcca99db809074d2b2d38d0e5b59ee81b/lib/typescript.d.ts#L6884
Program has resolveModuleNames: https://github.com/microsoft/TypeScript/blob/6ea273cdcca99db809074d2b2d38d0e5b59ee81b/lib/typescript.d.ts#L10216
I think these are close enough to what you might be asking for?


Should toASCII lowercase the input first?

Code: punycode.toASCII('ОРГ.eu')
Expected: xn--c1avg.eu
Returned: xn--f0avg.eu

Workaround is to lowercase first before passing to punycode.toASCII.

toASCII aims to follow the specification here which doesn’t include lowercasing: https://tools.ietf.org/html/rfc3490#section-4.1
I’ll add a note to the README. Thanks!

Just wanted to note that you should probably be using toLocaleLowerCase().


How I can use CLI for different modules (RC5)?

Hi, I can't understand a small thing.. How I can configure and use angular CLI for different modules in RC5 and later?
For example I have a 4 modules:

src/module1
src/module2
src/module3
src/module4

and I want to generate new component for module3. How I can do it?

use ng g c module2/component-name to generate a new component inside module2 folder.
AFAIK, it will be declared inside the correct module.

@Brocco can you weigh in?

I can confirm that it's working as stated above

@wis-ekubesh The way the CLI injects/imports declare-ables (components/directives/pipes) into modules is folder based. When you generate the CLI will look for a single *.module.ts file in that directory and continue up the folder structure until it finds a matching module file. Once it finds that file it will import and declare your new component/directive/pipe in that module.
There are 2 scenarios (by design) where this will fail.

There are multiple module files in a directory
There are no module files found even in the application root directory

Both scenarios will error out to the console to notify you of what went wrong.
With that being said, in your example are module1 and module2 directories? If so, you'll be fine generating items in those directories. If not, you should really consider having each module in it's own folder to organize them.
The suggestions by @monojack are accurate for how to generate items into a given module.
I am closing this issue, but if you have further questions, please ask.


Add Apache-2 license header to the EdgeImpulse source code

This PR clarifies the existing Apache-2 license of the EdgeImpulse source code by adding Apache-2 license header to every EdgeImpulse source code file.
Signed-off-by: Dimitar Tomov<EMAIL_ADDRESS>

@automatiek I thought the change is needed only for our Firmware, since the fw-sdk is a clone of our monorepo.

@automatiek fw-sdk license headers updated to Apache-2 , could you please re-review

but after that you can merge!

Thank you @automatiek 🚀 The 2 files in fw-sdk/jpeg were also updated in a new commit. Merging now.


feat: add relative mixed perturbator

As per this issue, this PR adds a new type of perturbator to allow a target with mixed signals (positive and negative.)

@david26694 shouldn't we block automatically merges to main?

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.46%. Comparing base (7b86139) to head (845c5e0).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   96.44%   96.46%   +0.02%
==========================================
  Files          16       16
  Lines        1517     1529      +12
==========================================
+ Hits         1463     1475      +12
  Misses         54       54

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests

@david26694 shouldn't we block automatically merges to main?

I think it is blocked

With this implementation, the RelativePositivePerturbator becomes a bit redundant,right? But probably we don't want to deprecate it.

Good! It's missing from:

test_docs
README
init

Also need a library bump. Aside from that, lgtm!

Sorry forgot about those, it's done!

@david26694 shouldn't we block automatically merges to main?

I think it is blocked

Take a look
https://github.com/david26694/cluster-experiments/pull/199

great!


Advice re. Meteor 1.3

Hi thanks so much for this fantastic project.
We're using Meteor 1.3 which has module support. Do you have any recommendations on how to best use meteor-emails in this new setup?
Thanks!

Hi! Thanks for the warm words.
I haven't tried this package in a 1.3 setup yet, and I'd like to support both pre-1.3 and modules. It might be easily achievable, but I haven't tried yet.
Feel free to play around with this in a 1.3 app and report back with any issues.

meteor-emails works great under 1.3 as MDG has taken pains to ensure backwards compatibility. The main thing is the reliance on global objects and how you are doing paths to things in Templates. We'll try out a few things but it seems like there should be a different pattern that lets you import templates declaratively, keeping everything in the new imports folder.

I see, thanks!
Well, you don't have to use globals in 1.3 if you don't want to. You could for example take this approach:
import {myEmailTemplate, anotherTemplate} from './templates.';

Mailer.init({
   templates: {myEmailTemplate, anotherTemplate}
});

lookback:emails doesn't care how you provide the template hash.

Is this okay to close, @flippyhead ?

Sure, thanks!
On Mon, Apr 11, 2016 at 6:55 AM, Johan Brook<EMAIL_ADDRESS>wrote:

Is this okay to close, @flippyhead https://github.com/flippyhead ?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/lookback/meteor-emails/issues/58#issuecomment-208354819

--
Peter T. Brown, CTO
Pathable, Inc.
http://pathable.com


AddMemberTx: AllowRoleChanges option

I salvaged this code from my work on Y2K-1510. Work on Y2K-1510 was paused because it's not required for the release - or probably at all for GUI functionality - but I still want to finish it later because it opened a possibility for some nice refactors in AddMembers functionality.
If this is merged, I'll be able to rebase and make smaller (and easier to review) this PR: https://github.com/keybase/client/pull/23935

@mlsteele can you take a look as well?


[6.0][Concurrency] Fix @Sendable inference for global-actor-isolated function types.

Explanation: Consider the upcoming feature flags in the originating module when applying @Sendable. Otherwise, for libraries that do not enable GlobalActorIsolatedTypesUsability, clients that do will encounter mangling mismatches for any library APIs that have global-actor-isolated function types that are not explicitly @Sendable.
This is done in type resolution, the Clang importer, and the constraint system when inferring closure types. Note that the Clang importer change is not gated behind the upcoming feature flag, because the change does not impact mangling and Sendable mismatches are not diagnosed in Swift 5 mode.
This change also appears to have fixed some issues where region isolation was not considering global-actor-isolated function types to be @Sendable.

Scope: Only impacts global-actor-isolated function types. The Clang importer change impacts diagnostics in complete concurrency checking, which are only diagnosed as warnings. The rest of the change only impacts the GlobalActorIsolatedTypesUsability upcoming feature / -swift-version 6.

Issue: rdar://129978513, rdar://129384579, https://github.com/apple/swift/issues/74009

Risk: Low.

Testing: Updated tests.

Reviewer: TBD

Main branch PR: https://github.com/apple/swift/pull/74509

@swift-ci please test

@swift-ci please test


docs: update link to article

Updating a link to my article I wrote 2 years ago. I considered removing it, but @RandellDawson said it was relevant and helpful. There is domain name change and I did not realize this was still here. Normally we would have written an article on news and swapped it, and I will get to it when I get some time. This should help anyone who is seeing a 404 right now.

Sure thing Kris. I think I even half a draft of this lying around on Ghost. Let me look it up and share it with you for some of your editing magic.


Latest Install and Quickstart Fails

$ kubectl apply -f https://github.com/envoyproxy/gateway/releases/download/latest/install.yaml

error: unable to read URL "https://github.com/envoyproxy/gateway/releases/download/latest/install.yaml", server reported 404 Not Found, status code=404

@danehans Can you try it again, to see if this occurs again？

@Xunzhuo the install and quickstart now work for me. Was this an issue with GitHub hosting our artifacts?

I am not sure, but I guess is that maybe you apply the latest manifests when latest release workflow is running.
When the latest workflow runs, it will delete the old tag and release, and recreate one.
Maybe you apply the manifests, when the latest release workflow is running and before recreating one. @danehans

OK. Something for us to keep an eye out for. Thanks for the feedback.


Reverse Enum Member Initialization Order for Constants

Consider the following enum.
enum A {
    Name,
    LongName,
    ReallyLongName
}

It's javascript output is
var A;
(function (A) {
    A[A["Name"] = 0] = "Name";
    A[A["LongName"] = 1] = "LongName";
    A[A["ReallyLongName"] = 2] = "ReallyLongName";
})(A || (A = {}));

but would be much more succinct if it were output as
var A;
(function (A) {
    A[A[0] = "Name"] = 0;
    A[A[1] = "LongName"] = 1;
    A[A[2] = "ReallyLongName"] = 2;
})(A || (A = {}));

The only benefit to this change would be minification of the output javascript. Running the two versions in a minifier I'm getting the current output minified at 116 bytes and the proposed way at 96 bytes for a difference of about 17%. Obviously, this difference would be influenced by the number of enum members and the length of the enum members' names.
This change would only be applicable to enum members with a constant value.

this assumes a side-effect free initialization expressions. consider:
enum A {
    Name = increment(),
    LongName = increment(),
    ReallyLongName = increment()
}

with getters being part of the language, any property access can not guaranteed to be side-effect free, so we would have different emit for enums with auto-initialized members or const-expression-initialized, vs. ones with non-const-expression-initialized enums.
why not use const enums instead?

@mhegazy

why not use const enums instead?

const enums are early-bound and if you use preserveConstEnums to hack around that for consumers (like we do), you still run into the same exact problem.

this assumes a side-effect free initialization expressions

Precisely - the suggestion here is for enums which are known to be const-initialized, something we already have means of tracking.

It'd be a runtime breaking change to do this because enums with duplicate values would reverse map to a different name in this emit. const enum remains the best option for size-conscious codebases.


Can't create docker using sal

Try to create docker using sal but raise the following error
do = j.sal.docker.create(name="test", ports="22:8080")
Thu 09 07:12:25 Docker.py        - 247 - j.sal.docker:docker                : create:test
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/sandbox/lib/jumpscale/Jumpscale/tools/docker/Docker.py", line 249, in create
    running = [item.name for item in self.containers_running]
  File "/sandbox/lib/jumpscale/Jumpscale/tools/docker/Docker.py", line 97, in containers_running
    for container in self.containers:
  File "/sandbox/lib/jumpscale/Jumpscale/tools/docker/Docker.py", line 43, in containers
    for obj in self.client.containers():
  File "/root/.local/lib/python3.6/site-packages/docker/api/container.py", line 208, in containers
    res = self._result(self._get(u, params=params), True)
  File "/root/.local/lib/python3.6/site-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/root/.local/lib/python3.6/site-packages/docker/api/client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
JSX>

This error happens because docker is not installed. I am creating a builder for docker and fixing other bugs in the sal.

relates to https://github.com/threefoldtech/jumpscaleX/issues/501

The docker sal works fine now. However, to test this, if your jumpscale will already be running inside a docker then this docker needs to be started with --privilaged AND -v <any local dir>:/var/lib/docker otherwise having a docker inside a docker won't work.
For more info about using docker inside docker and why we need these arguments, please check this https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
Since this task is coupled with the docker builder, the fixes are pushed on development_builder not development_jumpscale.

error with container_get_by_id method

@Dina-Abd-Elrahman  I fixed the function to return the correct error if the id doesn't exist. Please pull and check again.

the problem in functionality not in syntax only,  it cannot find the docker even if the id exists.

I tried it with the Id yesterday and it was working fine. But I was using the full Id not the shortened one. Can you try the full Id and let me know.

it's working fine with full ID


Update OAP-User-Guide on cache separation

What changes were proposed in this pull request?
Update OAP-User-Guide on cache separation.
How was this patch tested?

cc @yeyuqiang

LGTM


Error: Contract could not be compiled. Try another pragma solidity version.

When trying to use some source i got the error: "Error: Contract could not be compiled. Try another pragma solidity version.". After eliminating it turns out the following contact is causing the error:
pragma solidity ^0.5.0;
import "./test.sol";

The developer console contains
bundle.js:48855 TypeError: Cannot read property 'legacyAssembly' of undefined
bundle.js:48856 [ERROR] parse standard output error
bundle.js:49459 Error: pretest failed

Thanks for this. Could you please help me reproduce this? When does is happen?

serapath:

the error message is because of the way we detect compiler problems with certain browsers. The version you specify (0.5.0) has a problem with the browser, BUT... it seems not with all possible contracts.

The contract example you use would actually work, but doesn't because of the unsupported local imports ...

it's just that there is another problem with this version that we detect first, but probably we shouldn't, because maybe if you compile a contract that would work with the compiler version you specified even though not all possible contracts work with that version as we detect ...... yeah...

For the record: i've tried all kinds of version numbers but they all show the same error message.


[BUG]: [QA] Stage is displaying as malayalam for few stages and english for few stages

Hi @iknoorkaur

can you please check now

Hi @rajeshcherukumalli tested in dpg-dev, malayalam text working fine in stage for judge and litigent user role:


Why Ryan?

It is funny!
My name is Ryan, so why Ryan for a lib?

To continue in the tradition of R for React libs.
Also the author happens to be named Ryan :-)


Redis keys command is evil

Removed keys command that are used in Superworker execution.
This should improve performance as well as start the support to redis clusters.

bump!

No response on this?

Great, this is an important improvement! I'll include an upgrade note in the README, and may also rename #{redis_prefix}:#{superjob_id}:members to #{redis_prefix}:#{superjob_id}:subjob_keys for clarity's sake. Many thanks!

Welcome! Thank you for supporting this awesome gem.


fix(mocha-env-loader): add webpack >= v4.0.0 support

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?
Currently the loader uses this.options, which is deprecated in webpack 4, causing an error.
What is the new behavior?
Adds the compilation name to the loader options and uses loader-utils to parse the loader context and retrieve the name.
Drops webpack < v4.0.0 support as it doesn't work due to webpack-dev-middleware not supporting anything less than v4.0.0.
Does this PR introduce a breaking change?

[x] Yes
[ ] No

https://github.com/webpack-contrib/karma-webpack/releases/tag/v4.0.0-beta.0 Already droppedwebpack > =< v4.0.0, this PR is semver patch :)

Released in v4.0.0-rc.0 🎉

finally helpful error messages on failing execution! 🙌 I was searching for hours why my typescripts tests are not executed when I import certain modules. Now I now: I have to put them in the files array! Thanks folks! 😍


Reduce the memory usage for huge transactions

Enhancement
During the huge transactions, memory usage of TiFlash rises quickly.
Currently, TiFlash caches all uncommitted transaction data in memory. For example, a transaction with over 100GB updates would like to cause OOM.

[ ] TiDB stores row values in Lock cf Percolator. And since TiFlash does not use the values, we can safely remove them. https://github.com/pingcap/tiflash/pull/4857
[x]  Flush Memtable and Persist Region operations could block the processing of apply logs, which cause more entry cache of raft logs

Confirmed that it is caused by huge transactions. Currently, TiFlash caches all uncommitted transaction data in memory. And looks like the space amplification is large. For example, ~50GB of uncommitted data causes TiFlash ~400GB to process.

Reproduce step:

load tpch50 to tiflash;
run the sql update lineitem set L_SUPPKEY=100000 limit 50000000;

tidb metric:

tiflash metric:

dashboard:

About 10GB memory is consumed by raftstore entry cache.

So the memory space amplification is ~6.5x.

According to https://github.com/pingcap/tiflash/pull/4883, the memory amplification is ~1.5x starting from v6.3.


When i apply filter for date , it move to up and cut header label .Grid header filter type Column in any field.

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
Steps:
1.i m using Grid header filter type column
2. i m using this const orderSuggestionHistoryModel = new UiModel({
title: "Order Suggestion History",
defaultSort: 'TimeStamp DESC',
titleDescription: 'Understand the history of the suggestive orders',
idProperty: 'id',
readOnly: true,
addCreatedModifiedColumns: true,
module: 'OrderSuggestionHistory',
defaultFilters: [{ field: 'TimeStamp', operator: 'onOrAfter', value: filterDate }],
isElasticScreen: true,
columns: [
{ field: "TimeStamp", type: 'dateTime', width: 300, label: "Status Date", pinned: true, keepLocal: true },
{ field: "LocationName", type: 'string', width: 310, label: "Outlet Name", filterField: 'LocationName.keyword', isKeywordField: true },
3. i want to change Status Date height and width

Current behavior 😯

Expected behavior 🤔
No response
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

@Mukesh280823 Could you provide a repro? You can fork this sandbox: https://mui.com/r/issue-template-latest


Optimize memory cache's singleflight performance

What is the problem your feature solves, or the need it fulfills?
Acquiring write locks is not that easy in a high-concurrency environment,
imagine there are many read lock requests, the write lock will be acquired later.
After write lock acquired perhaps another one has already completed the lookup and removed the lock from locker container.
Describe the solution you'd like
After write lock acquired,  we should first check whether data already exists at the current point.
Describe alternatives you've considered
What other solutions, features, or workarounds have you considered that might also solve the issue?
What are the tradeoffs for these alternatives compared to what you're proposing?
Additional context
This could include references to documentation or papers, prior art, screenshots, or benchmark
results.

suppose there are two threads(coroutine) t1 t2
t1 get data -> None
t1 get container read lock, get CacheLock -> None
t1 get container write lock, insert CacheLock
t1 lookup data
t2 get data -> None
t2 pause for some reason such as thread switching
t1 put lookuped data
t1 get container write lock, remove CacheLock
t2 resume and get container read lock, get CacheLock -> None
t2 get container write lock, insert another CacheLock
t2 lookup data
So it is waste that t2 lookup data in this situation.
Double check should be done when get write lock like thread-safe lazy initialization.


Testnet upgrade v11 with liquidstake globalcap (v11.7.0 software tag)

1. Overview
The branch for v11 mainnet with fixes is not compatible with testnet due to keys migration, liquidstake proxy address migration.
This PR contains patched version of https://github.com/persistenceOne/persistenceCore/pull/295  for release on the testnet, that skips mainnet migrations and adds proxy address unbondings.
DO NOT MERGE ⚠ 🥹

chain-id = ictest-core-1 has been paniced in the upgrade test, expected? causes the CI to fail


problem maven multiplatform dependencies

Hello.
Artifact ktor-client-cio published as multiplatform artifact. Using dependency snippet provided by add_ktor_artifact results in only metadata jar being downloaded without actual implementation jar.
Following the steps described in "Client Overview" (client.md) with maven results in unresolved reference compilation error for HttpClient and CIO. The only solution I know is to use platform version of cio artifact. Replacing ktor-client-cio dependency with ktor-client-cio-jvm makes it possible to compile HttpClient(CIO). In that cases ktor-client-core-jvm is downloaded as transitive dependency of ktor-client-cio-jvm.
I'm not sure what is correct documentation change. But I wanted to bring up that maven dependency snippets don't work multiplatform artifacts, ie ktor-client-cio.

@dubrovskip thanks for your contribution. Latest docs include the platform suffix in Maven code snippets (for example, jvm for JVM or macosx64 for Native targets):

https://ktor.io/docs/http-client-engines.html#dependencies
https://ktor.io/docs/http-client-engines.html#jvm
https://ktor.io/docs/http-client-engines.html#native


iOS Storage reads are never Auth'd

Some users (included me) are still getting this error. It makes Firebase Storage unusable and it has been around for 4 months.
It's stopping me from upgrading to the last version and I'm still using 7.2.0 because of that.
Please fix it!

Hi, I am also unable to read data storage when the auth conditional rule is enabled. I just updated firebase to the latest version 8.8.0 and the issue is still there. I am going to try 7.2.0. I wonder why there are no more reports about this, looks like some devs just opt to use public access and don't care to protect user data.

Hello, we encountered this issue when upgrading from Firebase 7.2.0 to 8.1.0.
On iOS exclusively trying to get file from Storage we get  "User is not authorized to perform the desired action" error.
We commented on this thread: https://github.com/firebase/quickstart-unity/issues/1115 But this thread appears to have died also.
We want to upgrade the SDK to make use of new features, but simply cannot as it breaks our app for our iOS clients.

Same issue here, have been stuck on this issue for months. I find it hard to believe that Firebase team haven't resolved this issue so far.

Just did a test upgrade to 8.8.0 and the error persists.

Hey there! Glad someone else made an issue. I keep posting about it, it has been ongoing for 5-6 months now and is a HUGE issue. Literally just broken right now! Please prioritize a fix for this.

Hi all,
I messaged on the other ticket, but to also post here, we've been struggling to reproduce this issue. We did recently ship a new version, 8.9.0, which contains a fix to EDM4U, the tool we use to manage iOS dependencies, to properly handle source Cocoapods. I'm not sure if that will resolve the problem though, as we haven't been able to reproduce it on older versions either.
To confirm, this only seems to be happening on Read, not on Write?

Hi, this happens when you read or write, it depends on the rule. maybe you did not add it to your test environment.
something like this:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /user_data/{userId}/{allPaths=**} {
allow read, write: if (request.auth != null) && (request.auth.uid == userId)
}
}
}
so, only the owner (userID) can change the data. but this doesn't work, looks like the auth user ID is not stored in the session when you try to access your data. if we remove the auth validation it works.

So I've been trying to replicate this issue in a new empty project but I was unable to do so. It works completely fine there with 8.9.0. I'll try to do the same migration (from 7.2.0 to 8.9.0) in that same project and see if the problem is there.

@a-maurice I can confirm having this issue only with read, writing is fine and works as expected

We've released a new version of the Firebase for Unity SDK, 9.0.0, available here: https://github.com/firebase/firebase-unity-sdk/releases/tag/v9.0.0, that includes the fix for this.
The problem seems to have been in how the C++ SDK was interacting with the iOS SDK, but the iOS SDK was rewritten into swift, so there isn't a PR on the Unity side that reflects the fix, but from personal testing, I wasn't able to reproduce it after updating. Thanks for flagging this, and sorry it took a while to fix.


Google.Cloud.Dialogflow.V2  Could not load file or assembly Google.Protobuf

I have created a new Azure functions projects using .net core 2.0
And when I try to reference this package it says the following:

Http Functions:
    Template: http://localhost:7071/api/Template

[2018-08-07 9:58:53 PM] Host started (1556ms)
[2018-08-07 9:58:53 PM] Job host started
[2018-08-07 9:58:53 PM] Host lock lease acquired by instance ID '0000000000000000000000007D34F7CB'.
[2018-08-07 9:59:06 PM] Executing 'Template' (Reason='This function was programmatically called via the host APIs.', Id=d2485387-4218-4fc9-8bc6-6599243eeb2b)
[2018-08-07 9:59:06 PM] Executed 'Template' (Failed, Id=d2485387-4218-4fc9-8bc6-6599243eeb2b)
[2018-08-07 9:59:06 PM] System.Private.CoreLib: Exception while executing function: Template. Project: Could not load file or assembly 'Google.Protobuf, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=a7d26565bac4d604'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'Google.Protobuf, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=a7d26565bac4d604'.

The function that is giving me the problem:
        [FunctionName("Template")]
        public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post")]HttpRequest req, [Table("Template", Connection = "")]ICollector<Log> outTable)
        {
            var json= new StreamReader(req.Body).ReadToEnd();

            var request = JsonConvert.DeserializeObject<WebhookRequest>(json);

I have tried installing the Nuget package manually but that didn't work. Should I go back to .Net framework meanwhile this gets fixed or is a solution for this?

Ok! Thanks for the fast response and very easy to understand!

I'm just sorry I couldn't give better news :(
I'm hopeful that Azure Functions will get past this over time - it really needs to in order to work for modern NuGet realities.

Hi @german95n and @jskeet - I work on Azure Functions and we've been doing a bunch of work to try to make it so that functions behaves correctly in cases like this.
I just tried this scenario out on our latest published V2 bits and I was not able to repro, but perhaps I am not following the right steps.
I made a V2 app with a http trigger, and then I referenced the DialogFlow NuGet and used it from the function:
  <ItemGroup>
    <PackageReference Include="Google.Cloud.Dialogflow.V2" Version="1.0.0-beta02" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.14" />
  </ItemGroup>

        [FunctionName("Function1")]
        public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]HttpRequest req, ILogger log)
        {
            var c = AgentsClient.Create();
            return new OkObjectResult("test");
        }

I get this error:
[8/14/2018 9:30:20 PM] Executing 'Function1' (Reason='This function was programmatically called via the host APIs.', Id=8c1ca969-93ae-4c52-bbb0-78d8dab9aaf0)
[8/14/2018 9:30:23 PM] System.Private.CoreLib: Exception while executing function: Function1. Google.Apis.Auth: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[8/14/2018 9:30:23 PM]
[8/14/2018 9:30:23 PM] Executed 'Function1' (Failed, Id=8c1ca969-93ae-4c52-bbb0-78d8dab9aaf0)
[8/14/2018 9:30:23 PM] System.Private.CoreLib: Exception while executing function: Function1. Google.Apis.Auth: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

Note that its not an assembly load error. You can make sure you're running on the same version as me by looking at this output:
[8/14/2018 9:30:13 PM] Starting Host (HostId=pbatumhost-377753225, InstanceId=bcc50f76-eb56-4e0a-906d-641aaff34a98, Version=2.0.11946.0, ProcessId=35640, AppDomainId=1, Debug=True, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=)
Let me know what you find. I would like to confirm that the work we've done has helped unblock scenarios such as this one.

@paulbatum: Could you try the JSON parsing code from the first code snippet, just with some arbitrary value? It's possible that you're running into the Auth issue before the versioning collision comes into play.

OK, this does not throw an error for me:
        [FunctionName("Function1")]
        public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]HttpRequest req, ILogger log)
        {
            var json = new StreamReader(req.Body).ReadToEnd();
            var webhookRequest = JsonConvert.DeserializeObject<WebhookRequest>(json);
            return new OkObjectResult("test");
        }

[8/14/2018 11:28:54 PM] Executing 'Function1' (Reason='This function was programmatically called via the host APIs.', Id=c649ed30-3f89-4716-a565-f4690c427711)
[8/14/2018 11:28:57 PM] Executed 'Function1' (Succeeded, Id=c649ed30-3f89-4716-a565-f4690c427711)

That's interesting. @german95n could you let us know which version of Google.Cloud.Dialogflow.V2 you were using? We released a new version with new dependencies a couple of weeks ago... I wonder whether that's why @paulbatum can't reproduce the problem. (This would only be "coincidentally correct" rather than due to any changes on our part around how dependencies are managed.)

@paulbatum I had a previous version of the Azure Host. Updating the Azure Host to your version had solved the problem. I'm very pleased to know that I can use .Net Core now with the Azure Functions without setting the bindings explicitly.
@jskeet I was using the beta 02.

@german95n thats great!
@jskeet Please reach out if you see any other users reporting problems loading these libraries in Azure Functions V2 so that we can investigate (unfortunately we do not have a good solution for users on V1)


feature: golang host gpfs

这个 PR 实现什么功能/修复什么问题:
feature: golang host gpfs
是否需要 backport 到之前的 release 分支:
release/2.10.0

/cc @swordqiu @Zexi @ioito

Codecov Report

Merging #1206 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1206   +/-   ##
======================================
  Coverage     7.9%    7.9%
======================================
  Files         368     368
  Lines       57855   57855
======================================
  Hits         4576    4576
  Misses      52881   52881
  Partials      398     398

Flag
Coverage Δ

#aFlag
7.9% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

pkg/compute/models/guests.go
0.73% <ø> (ø)
: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 f0b02fe...4dd1dca. Read the comment docs.

/lgtm
/approve

/lgtm


Pin AWS Terraform version

Pins AWS Terraform to earlier version to get around breaking changes described here.
Pull Request synchronized with Asana task

Testing to see if CF option is updated


Rename TRME, TRME_RR

The "T" prefix is a convention from the matlab codes indicating a class.  It is not helping with readability or clarity.
At a minimum these classes and references should be RME, and RME_RR
RME stands for Regression M-Estimate
Since we have a package for regression, these maybe named to the more descriptive labels "MEstimate() and MEstimateRemoteReference()

Done


Allow running docker-service-kill experiments on local k8s cluster

Currently, docker-service-kill experiments support only GKE and AKS platform only with docker runtime.
Need a support to allow docker-service kill experiments to run on local k8s cluster.

can you elaborate on the local k8s cluster type?


Climate inequalities

Coping 2018 tested on the three basic scenarios

Hello @chevaldemetal! Thanks for opening this PR.

In the file pygemmes/_core.py:

Line 36:101: E501 line too long (101 > 100 characters)
Line 134:9: E303 too many blank lines (2)
Line 291:72: E231 missing whitespace after ','
Line 513:101: E501 line too long (109 > 100 characters)
Line 540:88: E231 missing whitespace after ','
Line 540:101: E501 line too long (102 > 100 characters)
Line 544:93: E231 missing whitespace after ','
Line 544:101: E501 line too long (107 > 100 characters)
Line 548:88: E231 missing whitespace after ','
Line 548:101: E501 line too long (103 > 100 characters)
Line 552:93: E231 missing whitespace after ','
Line 552:101: E501 line too long (108 > 100 characters)
Line 555:9: E303 too many blank lines (2)
Line 605:28: E251 unexpected spaces around keyword / parameter equals
Line 605:30: E251 unexpected spaces around keyword / parameter equals
Line 611:39: E251 unexpected spaces around keyword / parameter equals
Line 611:41: E251 unexpected spaces around keyword / parameter equals

In the file pygemmes/_models/_def_fields.py:

Line 253:19: E241 multiple spaces after ':'
Line 260:19: E241 multiple spaces after ':'
Line 265:101: E501 line too long (106 > 100 characters)
Line 679:21: E241 multiple spaces after ':'
Line 684:21: E241 multiple spaces after ':'

In the file pygemmes/_models/_def_fieldsSAVE.py:

Line 253:19: E241 multiple spaces after ':'
Line 260:19: E241 multiple spaces after ':'
Line 265:101: E501 line too long (106 > 100 characters)
Line 569:20: E231 missing whitespace after ':'
Line 569:22: E203 whitespace before ','
Line 572:12: E203 whitespace before ':'
Line 576:12: E203 whitespace before ':'
Line 669:21: E241 multiple spaces after ':'
Line 674:21: E241 multiple spaces after ':'

In the file pygemmes/_models/_def_functions.py:

Line 15:101: E501 line too long (108 > 100 characters)
Line 35:101: E501 line too long (111 > 100 characters)
Line 41:44: W605 invalid escape sequence '\l'
Line 51:101: E501 line too long (111 > 100 characters)
Line 82:101: E501 line too long (167 > 100 characters)
Line 90:9: E266 too many leading '#' for block comment
Line 103:9: E266 too many leading '#' for block comment
Line 113:9: E266 too many leading '#' for block comment
Line 128:33: E241 multiple spaces after ','
Line 139:101: E501 line too long (125 > 100 characters)
Line 143:101: E501 line too long (130 > 100 characters)
Line 168:40: E231 missing whitespace after ','
Line 185:101: E501 line too long (118 > 100 characters)
Line 195:101: E501 line too long (114 > 100 characters)
Line 196:101: E501 line too long (102 > 100 characters)
Line 200:101: E501 line too long (104 > 100 characters)
Line 205:101: E501 line too long (110 > 100 characters)
Line 209:101: E501 line too long (124 > 100 characters)
Line 240:101: E501 line too long (160 > 100 characters)
Line 249:101: E501 line too long (138 > 100 characters)
Line 371:101: E501 line too long (183 > 100 characters)
Line 371:145: E261 at least two spaces before inline comment
Line 375:101: E501 line too long (163 > 100 characters)
Line 379:101: E501 line too long (110 > 100 characters)
Line 383:101: E501 line too long (142 > 100 characters)
Line 387:101: E501 line too long (105 > 100 characters)

In the file pygemmes/_models/_model_Coping2018.py:

Line 3:101: E501 line too long (140 > 100 characters)
Line 68:15: E261 at least two spaces before inline comment
Line 68:16: E262 inline comment should start with '# '
Line 77:16: E261 at least two spaces before inline comment
Line 77:17: E262 inline comment should start with '# '
Line 92:52: E271 multiple spaces after keyword
Line 96:101: E501 line too long (167 > 100 characters)
Line 120:5: E266 too many leading '#' for block comment
Line 127:54: E231 missing whitespace after ':'
Line 131:25: E231 missing whitespace after ':'
Line 131:45: W291 trailing whitespace
Line 134:69: E231 missing whitespace after ':'
Line 138:25: E231 missing whitespace after ':'
Line 138:54: W291 trailing whitespace
Line 142:56: E231 missing whitespace after ':'
Line 148:62: E231 missing whitespace after ':'
Line 160:55: E231 missing whitespace after ':'
Line 163:20: E231 missing whitespace after ':'
Line 174:5: E266 too many leading '#' for block comment
Line 174:17: W291 trailing whitespace
Line 184:44: E231 missing whitespace after ':'
Line 188:44: E231 missing whitespace after ':'
Line 192:43: E231 missing whitespace after ':'
Line 193:25: E203 whitespace before ':'
Line 199:45: E231 missing whitespace after ':'
Line 205:71: E231 missing whitespace after ':'
Line 205:101: E501 line too long (111 > 100 characters)
Line 212:55: E231 missing whitespace after ':'
Line 218:39: E231 missing whitespace after ':'
Line 224:48: E231 missing whitespace after ':'
Line 228:40: E231 missing whitespace after ':'
Line 228:49: W291 trailing whitespace
Line 234:95: E231 missing whitespace after ':'
Line 234:101: E501 line too long (138 > 100 characters)
Line 240:49: E231 missing whitespace after ':'
Line 246:70: E231 missing whitespace after ':'
Line 246:101: E501 line too long (133 > 100 characters)
Line 248:25: W291 trailing whitespace
Line 251:56: E231 missing whitespace after ':'
Line 253:18: E203 whitespace before ':'
Line 257:96: E231 missing whitespace after ':'
Line 257:101: E501 line too long (173 > 100 characters)
Line 258:70: W291 trailing whitespace
Line 262:62: E231 missing whitespace after ':'
Line 268:42: E231 missing whitespace after ':'
Line 294:9: E126 continuation line over-indented for hanging indent
Line 295:12: E231 missing whitespace after ':'
Line 296:12: E231 missing whitespace after ':'
Line 297:16: E231 missing whitespace after ':'
Line 298:16: E231 missing whitespace after ':'
Line 299:16: E231 missing whitespace after ':'
Line 300:12: E231 missing whitespace after ':'
Line 301:13: E231 missing whitespace after ':'
Line 302:12: E231 missing whitespace after ':'
Line 303:12: E231 missing whitespace after ':'
Line 352:9: E126 continuation line over-indented for hanging indent
Line 416:17: E231 missing whitespace after ':'
Line 416:27: W291 trailing whitespace
Line 421:17: E231 missing whitespace after ':'
Line 421:31: W291 trailing whitespace
Line 426:17: E231 missing whitespace after ':'
Line 426:34: W291 trailing whitespace

In the file pygemmes/_models/_model_GKReduced.py:

Line 37:101: E501 line too long (132 > 100 characters)
Line 41:101: E501 line too long (105 > 100 characters)

In the file pygemmes/run_model.py:

Line 9:12: E225 missing whitespace around operator
Line 13:1: W293 blank line contains whitespace
Line 16:1: W293 blank line contains whitespace
Line 26:1: W293 blank line contains whitespace
Line 27:5: E303 too many blank lines (2)
Line 31:5: E303 too many blank lines (2)
Line 40:101: E501 line too long (106 > 100 characters)
Line 41:101: E501 line too long (157 > 100 characters)
Line 43:1: W293 blank line contains whitespace
Line 49:1: W293 blank line contains whitespace
Line 58:1: W293 blank line contains whitespace
Line 59:1: W293 blank line contains whitespace
Line 60:1: W293 blank line contains whitespace
Line 61:1: W293 blank line contains whitespace
Line 62:1: W293 blank line contains whitespace
Line 63:5: E303 too many blank lines (5)

Do see the Hitchhiker's guide to code style

@guittcam I believe a few files comes from your version and should not be in the library. Can you :

Identify what are the .DStore and remove them (editing the .gitignore might do the trick)
Remove _def_fieldsSAVE from the PR
either remove run_model or put it with a good documentation (comments) in the doc folder if you want it to be shared

We need to do such thing to keep a clean code :)

@chevaldemetal the problem is in your units ! For the moment we only consider a limited amount of units acceptable (that can be edited in def_fields, with the latex formalism ( units/y is written units.y^{-1} )
Typically executing your model is raising an error :

Let's discuss which units you want to add (I think more than two of them needs new unit in your model to stay consistent), and I recommend executing the last lines of tutorial.py to be sure everything works without necessary launching unitary test
listofsolver = pgm.get_available_solvers(returnas=list)
listofsolver = [listofsolver[i] for i in [0]]
listofmodels = pgm.get_available_models(returnas=list)
for model in listofmodels:
    presets = pgm.get_available_models(returnas=dict)[model]['presets']
    for preset in [None]+presets:
        hub = pgm.Hub(model, preset=preset)
        hub.set_dparam(Tmax=1, verb=False)
        for solver in listofsolver:
            print(model, preset, solver)
            hub.run()

Or if you want to use pytest directly in the ipython terminal
!pytest pygemmes/tests/test_01_Hub.py -v
!pytest pygemmes/tests/test_00_get -v
!pytest pygemmes/tests/test_02_Hub_Multiple -v
!pytest pygemmes/tests/test_03_articles -v

@chevaldemetal I added a Coping2018-VPaul which is written slightly differently : the values for presets are directly in a dictionary, which makes the file lighter and IMHO more readable. I'm curious about what you think of this writing.
For the moment I have put comments on all units change to see if the pytests goes through this version :)
The original file has been transfedered in the folder Hidden inside _model ! That way tests are not runner on it (yet)

Tests not working for the moment, I'll check this Friday (something weird with time and a name of file that should not be there)


[hotfix][docs] fix error in Process Function Doc

What is the purpose of the change
In the example given,it used the ProcessFunction on a keyed stream. But in the new version, it has been deprecated and it has been replaced with KeyedProcessFunction. The example code also has some errors in the Scala snippet. Using the original scala example can cause unnecessary problems for users.

BTW, @zsq12138 please fill the description of this PR completely which should have Brief change log, Verifying this change section and other so on.


Unable to access remotely with web interface

Using the dockerfile to create a container. Works well when accessing browser locally. Does not work when accessing todo list web service from another machine (not localhost). Appears links on the page are always generated with localhost as host name. When I attempt to access remotely, the page is attempting to access http://localhost:7890/todos instead of http://[hostname]:7890/todos. The page displays an error stating "A backend failure occurred". http://[hostname]:7890/todos does provide proper json output.

Since we do not have any authentication mechanism embedded in this software, so once you expose the todolist container to public, it would be very dangerous.
However, you can still accomplish what you intend to do by offering docker command-line argument -P, which expose the same port on the remote host.

let us know if you need more help here.


intel_alm: direct LUTRAM cell instantiation

By instantiating the LUTRAM cell directly, we avoid a trip through altsyncram, which speeds up Quartus synthesis time. This also gives a little more flexibility, as Yosys can build RAMs out of individual 32x1 LUTRAM cells.
While working on this, I discovered that the mem_init0 parameter of <family>_mlab_cell gets ignored by Quartus. That means that until memory_bram can pass information about a cell RAM init file, LUTRAMs can only initialise to zero (which is the same as uninitialisable to memory_bram).
I'm aware of the duplication here between Cyclone V and Cyclone 10GX, but since there's already a lot of duplication, next on the TODO list is a big deduplication commit.

For the sake of transparency to the - zero? - people watching this: it seems like trying to get synthesis working using Quartus as a back-end is really tricky. I can make a series of non-functional changes and end up with broken synthesis. Some major test additions are in order before this gets anywhere.

ping @mwkmwkmwk


command_runner with psutil 5.5.1 (or lower)

I tried installing command_runner on via an embedded linux build system targeting a Debian 10 Buster distribution.
The build effectively does a pip install command-runner inside a ARM qemu system.
However the install fails due to the requirement for psutil>=5.6.0.  pip tries to download this and build it, however I don't have the necessary build tools (i.e. gcc and friends) installed in the qemu system.
Debian 10 does have psutil 5.5.1 available as a package so I can install that easily.
Is there anyway to make command_runner work (install) with psutil 5.5.1 ??
What features of command_runner specifically need psutil > 5.6.0?
Interestingly command_runner installs ok for Python 2 (pip install command_runner), but not for Python 3 (pip3 install command_runner).  I had to use psutil-5.7.2 from buster-backports to get it to install for Python 3.
# pip list | grep "runner\|psutil"
command-runner                1.4.0
psutil                        5.5.1

# pip3 list | grep "runner\|psutil"
command-runner     1.4.0
psutil             5.7.2

NOTE:

psutil 5.7.2 is available from Debian Buster Backports repo, but only for Python 3.
I could install the build tools (gcc, etc) but I didn't want them on my embedded filesystem (might take up too much space) - I might be able to remove those tools after the build?
I might be able to build a wheel manually and locate that somewhere where I could install it.
Might be time to finally upgrade legacy Python2 codebase to Python3 ;-)

The requirements seems to be introduced in commit 7ac85be9a1cb23475f957bc70a5331882ce689b9.
https://github.com/netinvent/command_runner/commit/7ac85be9a1cb23475f957bc70a5331882ce689b9

Actually psutil 5.6.0 was a requirement since I built command_runner when that was the actual version.
Having read the changelogs at https://github.com/giampaolo/psutil/blob/master/HISTORY.rst, I see no reason you could not use psutil 5.5.1.
Btw, really still on Python 2 ? Python 2 gives me so much work for retrocompat :(

Yes I know.  I still have legacy code to support.  Eventually I will be able to migrate it to Python 3, but not now unfortunately.
Would you be able to do another release will the psutil dependency lowered to 5.5 or 5.5.1?

I have migrated all my code to Python3 and am using psutil 5.7.2 from Debian Buster Backports (buster-backports).
I intend to update my embedded distro to a newer version (Debian 12 Bookworm) sometime in 2023, which will avoid the backports (for a while at least).
I will close this issue.

Worked around using psutil 5.7.2 from Debian Backports (python3-psutil/buster-backports)

Thanks for the feedback.


Incoming/Outgoing links tables not working as expected

Feel free to close this issue if its a duplicate of another previously made one... I suspect it is.
Seen in Brokered address space with topic address created, sender and receiver attached ( cli-proton-python)  ... will test standard addr space and other addr types, other clients asap.
The incoming and outgoing links tables dont work as expected when attaching senders and receivers to a topic address,  please see below two snapshots...
I have 1 sender and 1 receiver attached to a topic...

and here is the address page ...

There is no link shown at all for the receiver table.
furthermore, when I hover over the table cells for the sender links, I can see the "id" info that presumably should be in the cells themselves.

example of cli-proton-python connections used :
sender
cli-proton-python-sender --broker amqps://:@<deployment_and_my_ip>/topic1 --log-msgs dict --count 10000
receiver
cli-proton-python-receiver --broker amqps://:@<deployment_and_my_ip>/topic1 --log-msgs dict --count 10000
bonus points : There is a empty "extra" column after backlog column on both tables... clearly visible in the second screenshot above, after resizing the columns to see the extra one, its just blank and doesnt seem to be needed, can it be removed? is it needed for anything?

Not seen in standard addr space.

#1839 fixes the absence of the rows corresponding to the receiving links, but the whole thing looks daft as there is no data in the table!   Artemis doesn't make the container ids of the connection available and we don't substitute a surrogate.  Also the delivery count is absent as Artemis does not have this statistic.  It does have DeliveringCount but this seems to the number of messages on the way to the receiving link at that moment.


CSRF as a separate package

I was wondering if we would be opening to breaking out CSRF into its own package. To give you context into why someone would want this:
I am looking exclusively for a CSRF solution at the moment. Those which I found were either too single minded (wouldn't catch people missing CSRF fields in tests) or did too much/made it hard to verify they were secure.

https://bitbucket.org/sjl/flask-csrf/overview
https://github.com/maxcountryman/flask-seasurf

I don't plan on using WTForms at the moment (my server side validation is done by another service) and would not like the excess weight.
It looks like this could easily be done as the CSRF module doesn't use any parts from the WTForms module nor the rest of this repo (except for compatibility):
https://github.com/lepture/flask-wtf/blob/v0.12/flask_wtf/csrf.py#L18
Would we be open to breaking it out?

@twolfson Our form is using CSRF module: https://github.com/lepture/flask-wtf/blob/v0.12/flask_wtf/form.py#L12
My theory is form should be working together with csrf. They should be in the same repo. If you don't need forms, you can just use the csrf module, it has no harm. Otherwise, use flask-seasurf.

Yep, I am aware of the rest of the repo utilizing CSRF support. However, it doesn't have to be in the same repo; it could be an external module depended on by WTForms. The benefits of this would be:

More targeted code in each scenario
Ability to download exactly what you need (e.g. only CSRF)

It sounds like you have made up your mind though so I will respect your decision. Thanks for the quick reply!


[NT-732] Consume category name from v1 API

📲 What
Improves deserialization of the parent category from our v1 api so that it includes the category name.
🤔 Why
This is information that we would like to include in our tracking properties.
🛠 How

Removed the old workaround for deserializing our Swift.Decodable Category model within our Argo.Decodable Project model.
Split out the v1 Category info into a Project.Category model.
Also added tryDecodable(_:) described in the RFC for deprecating Argo for future use.

✅ Acceptance criteria

[ ] No regressions introduced in current deserialization of Category (discover feed, discover filter).
[ ] Parent category name is deserialized correctly.

⏰ TODO

[ ] Add the parent category name to our tracking properties.

Blocking this as it's still WIP

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger


Move generator tests to usage directory

Issue https://github.com/basemate/matestack-ui-core/issues/242: Add generator tests to circleci
Changes

[x] Move tests to the usage directory so they are tested by CircleCI

This one will have to wait, I can't figure out how to get the tests to pass


'list' operation does not work as expected in interactive mode

After loading some classes, running 'list' shows the loaded classes, but it also shows this error: 'No classes loaded. Use < load > first'  and exits the program.

Fixed in PR #47

I confirm that the bug is corrected. Thanks!


getrawtransaction fails only on transaction in genesis block

getrawtransaction e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7 returns with "No information available".
I ran with txindex=1 and -reindex, so far all other transactions seem to be available. Before I start to sync with a completely new data folder from network, is this happening to others too or is this just an error on my end that I need to debug further? I use v<IP_ADDRESS>-g90ad641-beta, seems to be the latest version at the moment.

e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7  is the coinbase transaction of the genesis block, which has by design no transaction.
See also https://github.com/bitcoin/bitcoin/issues/3303

http://explorer.darkcoin.io/block/00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6 seems to have been able to retrieve + decode (?!) this transaction:
http://explorer.darkcoin.io/tx/e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7
Anyways, as far as I understand it, while the merkle root in the genesis block of course can be used to calculate a theoretical TXID, the value in the genesis merkle root actually is not pointing to any valid transaction at all for bootstrapping reasons. Right? The I'll just mask out this specific "TXID" and move on...

explorer is only able to decode it, because the tx is hardcoded in the abe code
https://github.com/bitcoin-abe/bitcoin-abe/blob/master/Abe/genesis_tx.py#L52-L54
My understanding of the genesis block bootstrapping matches yours.


Revert "Upgrade Ozone ufs to 1.0.0 version"

This reverts commit 118769ba1ff5da6ca9382e9358e6a939e32fb8f6 to fix https://github.com/Alluxio/alluxio/issues/12338
otherwise, maven build may stuck in shading

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.4 please


Cannot unsubscribe

Hi!
I execute that:
netstat | grep :6379 | grep ESTABLISHED |wc -l
That command shows amount of open connections if I'm not making a mistake.
6379 is redis' port.
I initialize pubsub object:
sub = redis_obj.pubsub()
sub.subscribe(channel)
Then I try to receive some message from my channel.
And after that I try to unsubscribe:
sub.unsubscribe(channel)
But again I execute that:
netstat | grep :6379 | grep ESTABLISHED |wc -l
And I see that there are lots of connections which were not released. Why?
It's too important because I have lots of such connections because of that.
 Unfortunatelly, that method is not a solution for me because I have to keep listening that channel.
Can you help me?

redis-py uses a connection pool to manage connections. After a command is executed, the still-connected connection object is returned to the pool. It remains connected to the server so that the next command that needs a connection doesn't have to go through the connection setup process. When you unsubscribe from a pubsub channel, the TCP connection to the server is still maintained.
Are you using a single connection pool in your app? If so, you can put limits on the maximum number of connections.

Yes, I use a single connection pool. With setting max_connections there I just get
...
  File "/usr/local/lib/python3.7/dist-packages/redis/connection.py", line 1215, in make_connection     raise ConnectionError("Too many connections")

I would suggest either:
A. You could increase the number of connections in the pool to the number of clients you want to handle at any given time.
or
B. You can (and probably should) be calling pubsub.close() after you're done with that connection. That will shutdown the TCP connection and return it to the pool in a disconnected state.

Thanks!


Julio merge fixes

merging this to keep things moving, but i think we should cleanup the k7r scripts


Improved peer-discovery protocol

We can improve the peer-discovery protocol by allowing each client to share a list of IP addresses that they could be reachable on. Currently peer-discovery uses the IP address which the peers are connected from but this address is often an address that is behind an NAT.
See this discussion for more information. Specifically this part about how WebRTC handles peer-discovery:

As far as I know, at least some modern peer-discovery protocols (see e.g. WebRTC) have the client explicitly share all of its IP addresses with the discovery server – e.g. even if you connected via IPv4, the server (and other peers) also learn your IPv6 address, your other IPv4 addresses (internal, external, perhaps internal #2), etc.

This could work if a client shared the IPv6 addresses that it could be reachable on. That would be a nice feature to add to the handshake.


repeatable crash in new damerau implementation

pip install -e .; python -c "import jellyfish; print jellyfish.damerau_levenshtein_distance(u'test', u'test')"
crashes w/ a MemoryError
initial debugging points to the malloc((len1+2)) * cols * sizeof(size_t)) call

notably doesn't crash locally w/ tox, but does crash on travis... memory errors :-1:


lttp typo?

Is this supposed to be http here instead of lttp? Or was it intention so the resolution of this URI fails and then it switches to UDS path?
https://github.com/hyperium/tonic/blob/372da52e96114ca76cc221f3c598be82bfae970c/examples/src/uds/client.rs#L20
Either way the example works fine as it ignores the string that is used for URI here.

Yeah, that is a typo haha

To be honest, I thought that was intentional to make it clear that it was invalid.


[UNR-2425][MS] Doc update SimPlayer UnrealExampleProject batch files.

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.

Description
Doc update SimPlayer UnrealExampleProject batch files. Two batch files have been added to the UnrealExampleProject. One allows you to spin up a single clients that will run a simulated player. The other will run 10 simulated player clients.
Primary reviewers
@ElleEss @MarkWoulfeImprobable

I've pinched the "There are two ways to..." structure from cloud-deployment#step-2-build-workers in order to better structure this:

I also fixed an unrelated improbadoc lint failure in the glossary.


Nc/75 acl ui

Resolves #75
Resolves #74
Resolves #79
Proposed Changes:

Edit and Delete buttons hidden when no data is selected
Nodes created from dataviewer have default ACL now
ACL div cleared when no info
Clearing selectedNode in the tree when nothing is selected + error handling of when selectedNode is null

DCO1.1 Signed-off-by: Narine Cholakyan<EMAIL_ADDRESS>

Hi narinearraul,
Thanks for submitting this pull request!
I can confirm that the DCO1.1 sign-off has been included. It is okay to process this pull request.
dco-bot

When I add a node to a csync that is empty and then delete that node, I am unable to add any more new nodes. After deleting the first node the add button turns grey and won't allow adding more nodes until refreshing the page.

@krbrewer https://github.com/csync/csync-server/issues/79

I found a bug.
Make node a.
make node a.b
Make node a.b.c
Write "test" to a.b.c.
Hit refresh
Expected Behavior: See "test" when a.b.c loads
Actual Behavior: See nothing until a.b.c is reselected

@krbrewer  https://github.com/csync/csync-server/issues/82

@boopt2 I've addressed #79 here also. Could you test and merge if all good?


Removes redundant else in registry/session.go

Very small contribution; fixes #12523.

NOT LGTM (sorry for the confusion)
You can update this PR by amending your last commit and a forced push, this should update this PR

Whoops, my bad. Fixed it :wink:

No worries, the description wasn't clear :)

LGTM (but I'm not the maintainer), thanks!

LGTM

Personally I think it should be switch-case.
But LGTM for now.


Name the app

Set the app name properly in package.json.

Simple change, going to self-merge to test it, sorry if that causes any inconvenience.
@amirfefer FYI


Building TF 2.0 from source returns 1.14 wheel

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
TensorFlow installed from (source or binary): source
TensorFlow version: 2.0 (master branch)
Python version: 3.6.8
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): 0.26.1
GCC/Compiler version (if compiling from source): 7.4.0
CUDA/cuDNN version: 10.1/7.6.3
GPU model and memory: RTX2080TI

I am trying to build tensorflow 2.0 with GPU support. During the ./configure I enable CUDA (the locations are properly found). Afterwards I start the build with:
bazel build --config=v2 //tensorflow/tools/pip_package:build_pip_package
I had to link python to python3, since Ubuntu 18 has no python 2 and bazel has problems, when no python link is available. The build finishes without any fails.
./bazel-bin/tensorflow/tools/pip_package/build_pip_package --nightly_flag /tmp/tensorflow_pkg
After building the wheel with the above line I can only build tensorflow 1.14
$ ls /tmp/tensorflow_pkg/
tf_nightly-1.14.0-cp36-cp36m-linux_x86_64.whl
Have been trying it multiple times now, even on a clean and fresh Ubuntu 18 setup.
Cheers

This is because you are compiling the master branch which is the stable version of tensorflow version 1.14. Your gonna need to checkout to the r2.0 branch and recompile.
Run git checkout r2.0 inside the tensorflow repo.

We will change version number in master after 2.0 is released.

Thanks to both of you. Expected the master to be the nightly TF2.0 version. With the correct branch everything worked out fine.
Cheers


Replace returns with return

Thanks for the contribution! But after rethinking, I propose to change it the other way around: #445


Update ray to 1.9.2

What this PR does / why we need it:
Updates ray to 1.9.2 https://github.com/ray-project/ray/releases/tag/ray-1.9.2
It only bumps log4j version, no changes to core etc.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Type of changes
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Feature/Issue validation/testing:
Please describe the tests that you ran to verify your changes and relevent result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

[ ] Test A

[ ] Test B

Logs

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

[ ] Have you added unit/e2e tests that prove your fix is effective or that this feature works?
[ ] Has code been commented, particularly in hard-to-understand areas?
[ ] Have you made corresponding changes to the documentation?

Release note:

/lgtm
/approve

/retest

@markwinter seems your branch is behind for quite a few commits, can you help rebase from the master? there was a fix for the storage uri with lightgbm e2e tests

/lgtm
/approve


Changing background color of splash screen as theme preference as users options.

How can we change the background color of the splash screen programmatically that applicable to preview window?
We know when windowDisablePreview is false (as its default value), launching the app quickly shows the theme of the activity as a MainLauncher. Now the question is here, how can we change the background color of the preview window? When it is changed programmatically in the activity's OnCreate method before base.OnCreate method it works but first for a moment it shows the background color that exists in the layer-list then changes the color according to the code.

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

ID: 5823a3fa-87be-0b27-155b-b44130c67e84
Version Independent ID: c90633f5-22b9-f7dd-fd08-c9affc251dd4
Content: Splash Screen - Xamarin
Content Source: docs/android/user-interface/splash-screen.md
Product: xamarin
GitHub Login: @mgmclemore
Microsoft Alias: mamcle

Hi @ma17961363, unfortunately we can't answer specific questions here; your best bet is to visit https://developercommunity.visualstudio.com/spaces/8/index.html to get help. (Also, it looks like the answer to your specific question has been provided here.)


Vanilla - High Life - full album (2011)

https://www.youtube.com/watch?v=O33zlV_c6fs

https://github.com/deeppaz/serenes/commit/1d13bd09b4f0f289aca006bad17d3f05c31b3b79 closed


support trino query paimon file index for map type with map-keys

support trino query paimon file index for map type with map-keys
enable map type  index as follow
CREATE TABLE my_table (age int , jsonmap MAP<STRING,STRING> ) WITH
(
"file-index.bloom-filter.columns" = "jsonmap[a]",
)

query map type  index as follow  inpaimon trino must use fun element_at to extract value
select * from paimon.default.my_table where age = 30 and element_at(jsonmap, 'a')  = '1';

+1


Duplicate Labels when merging

The merge-function could be improved when labels would be checked if they already exist. Currently they're duplicated. If the Name is identical even the "Legacy name (merge)"-label doesn't really make sense
-- | --

That depends. The legacy name label makes it explicit what the name of the previous entities was. If we set it only if the names change, you have to assume that they were the same

Let's go through this:

Entry A and entry B are named the same, they are merged. What information-value is there to know that once there were two entries of the same name? E.g. take Italien, where several merges happened because it didn't treat the geonames ID properly before:

https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/40306/detail

Entry A and B are named differently. Then it is okay to conserve the name.

P.S. And a real life user experience: As there is no merge function in "Places" edit-view but only in the search-page I usually rename entry B (say Danzig) to the Name of entry A (say Gdansk) so they show up in the same list and only then I can merge them.


Network: please provide internal mode

Currently, network only has 2 mode: share and bridged model (Mac M1 Pro. Host Mac: 12.6. VM: 12.6. UTM Version: 3.2.4 58)
Request: please provide internal mode. Etc host machine can access VM shared folder. But VM cannot access Internet.
Thanks.

Are you referring to 'host-only' mode? This is where the host can contact the VM.
'Internal' mode has traditionally referred to a mode where two or more VMs could network together, but the host could not connect. This is an important difference and a very useful mode for emulating routers and gateways.

Host-only mode. I am running UTM 4.0.9 (68)
Host: macbook pro 14 inch: 12.6.1
Here is what I observed:

I do not see "Host only" option.
So is "Host only" option supported now?
Thanks.

See also  #4202 (host-only  mode with static IPs)

Are there any plans to implement this?


building from .devcontainer failing when repository downloaded on Windows

Changes in this pull request
Added .gitattributes for .sh .csh and .bashrc setting the eol as lf.
I noticed that git tracks all the code in the repository as modified with this solution, and one needs to set: git config --global core.autocrlf true to stop this...
Testing performed
Rebuilt the container and it did not break, I was able to use yardl.
Related issues

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I have added docstrings/doxygen in line with the guidance in the developer guide
[x] The code builds and runs on my machine

Contribution Notes
Please read and adhere to the contribution guidelines.
Please tick the following:

[x] The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in the ETSI software (the Work) under the terms and conditions of the Apache-2.0 License.

feel like doing the same for https://github.com/ETSInitiative/PETSIRDUseCaseTemplate/?

I noticed that git tracks all the code in the repository as modified with this solution, and one needs to set: git config --global core.autocrlf true to stop this...

This didn't happen for me (on Windows)


Connection issues with MCP server

The MCP server is causing connection issues and needs to be removed or fixed. Users are receiving "Could not connect to MCP server" errors when trying to connect to this server.

I am having the same problem too. Is it possible to have like a setup demo? So we can follow better.

I fixed the issue. Here is what I did:
Followed the commands where it is-->

Clone the repository

git clone https://github.com/QuantGeekDev/docker-mcp.git
cd docker-mcp

Create and activate a virtual environment

python -m venv venv
venv\Scripts\activate
uv sync

Where I have added:

Created the @server.read_resource() and @server.list_resources() in server.py
In claude_desktop_config.json :

{
  "mcpServers": {
"docker-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\Users\\btuud\\docker-mcp",
        "run",
        "docker-mcp"
      ]
    }
    }
    ```

    To debug try to use:
    npx @modelcontextprotocol/inspector uv --directory <path-to-docker-mcp> run docker-mcp


fix: Remove incorrect use of PORT env in Dockerfiles for languages samples

b/314683443

This PR has been lingering for a while, closing for now


API POST call not updating group name, despite correct group_edit scope permissions

The API POST call for the https://www.meetup.com/meetup_api/docs/:urlname/#edit is not updating the group name, despite having the correct group_edit scope authorisation (I am checking the headers on the response to confirm)
Whilst it runs and the console.log say update successful, the name of the group does not change from it's current name to the "Entrepreneurs in NEW CITY NAME'.
I have tried changing the data option to params as well, but no luck.
Is there an issue with this endpoint updating group names?
            HTTP.call( 'POST', 'https://api.meetup.com/' + urlName, {                 params : {                     name: "Entrepreneurs in NEW CITY NAME",                     description: "A community of Entrepreneurs in NEW CITY NAME"                 },                 headers : {                     'Authorization': 'Bearer ' + accessToken,                     'Content-Type': 'application/json',                     'X-OAuth-Scopes': 'group_edit',                     'X-Accepted-OAuth-Scopes' : 'group_edit'                 }             }, function( error, response ) {                 if ( error ) {                     console.log( error );                 } else {                     console.log("Updated Successfully");                     console.log("Response: " + response.data.name);                     console.log("Response: " + response.headers);                     //ResponseData.insert([response.headers, response.data]);                 }             });

You need to implicitly pass the params in the url i.e
"https://api.meetup.com/" + urlName + "?name=New Group Name"


Fix: mobile table styling

What does this PR do?
Adds styling to table-col to prevent narrow columns
Test Plan
Manual
Related PRs and Issues

#33

Have you read the Contributing Guidelines on issues?
Yes

@TorstenDittmann Conflict resolved :slightly_smiling_face:


How to achieve the IBL as in the demo?

I'm quite impressed with this demo.
My question is, how did you achieve that IBL (Image Based Lighting) in that scene?

Hi
The effect in that demo was achieved using a cubemap.
Cheers

Impressive!


Override gateway deployment selector with k8s Ingress's annotation

Signed-off-by: Roland.Ma<EMAIL_ADDRESS>Please provide a description of this PR:
Override default gateway deployment selector with k8s Ingress's annotation, so that users can selector which one to use.
Currently, I found only one deployment can be used to serve the k8s ingress, even I setup up with multiple Gateway deployments.  The default Selector can be either "isito:ingressgateway " or from the mesh config.
So I added an annotation to override the default setting in the ingress to allow users to override the selector config.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: foo
  namespace: ns
  annotations:
    istio.io/gateway.selector: "istio=ingressgateway-foo"

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

Hi @RolandMa1986. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

I am not a huge fan of adding this complexity. If you need this, you would likely be better suited with Istio gateway or https://gateway-api.sigs.k8s.io/. Istio generally is not trying to be an advanced Ingress controller, and this is functionality that other ingress controllers do not even have.


How to add a dual-wheel robot like Segway-Ninebot?

Hi everyone!
Could it be possible to add a dual-wheel robot into Carla? I read the doc and found it just suitable for vehicle with 4 wheels. For 2 wheels bikes it's even more complicated. The robot I want to add is similar to this:

You will need to change the way of steering, guess not many ppl are interested in this issue at this moment :-(