Jason's Windows Notes

@ git commit 7bf20ce217dd032a519fd86effd41e9890d2cf1c tested on Windows 7 with the latest Anaconda.

We need to make it explicit which environment.yml file windows users should use.
There are no scipy2017codegen win-64 packages in the conda channel. It is likely to do with this:

WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/sympy ==3.5

It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

code printers

I get this error on the theano print: https://pastebin.com/KKBgrydB

23-ordinary-differential-equations
Runs but with this odeint warning:
C:\Users\Jason\Anaconda3\envs\codegen17\lib\site-packages\ipykernel_launcher.py:4: RuntimeWarning: overflow encountered in double_scalars
  after removing the cwd from sys.path.
C:\Users\Jason\Anaconda3\envs\codegen17\lib\site-packages\ipykernel_launcher.py:11: RuntimeWarning: invalid value encountered in add
  # This is added back by InteractiveShellApp.init_path()

25-chemical-kinetics-intro
Runs great.
32-chemical-kinetics-symbolic-contruction
Runs great
40-chemical-kinetics-cython
Fails on cell 5:
Compiling C:\Users\Jason\Desktop\scipy-2017-codegen-tutorial-master\notebooks\ode_cython_9a390683f6.pyx because it changed.
[1/1] Cythonizing C:\Users\Jason\Desktop\scipy-2017-codegen-tutorial-master\notebooks\ode_cython_9a390683f6.pyx

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in load_module(name, pyxfilename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
    215             so_path = build_module(module_name, pyxfilename, pyxbuild_dir,
--> 216                                    inplace=build_inplace, language_level=language_level)
    217         mod = imp.load_dynamic(name, so_path)

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in build_module(name, pyxfilename, pyxbuild_dir, inplace, language_level)
    191                                   inplace=inplace,
--> 192                                   reload_support=pyxargs.reload_support)
    193     assert os.path.exists(so_path), "Cannot find: %s" % so_path

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyxbuild.py in pyx_to_dll(filename, ext, force_rebuild, build_in_temp, pyxbuild_dir, setup_args, reload_support, inplace)
    101         obj_build_ext = dist.get_command_obj("build_ext")
--> 102         dist.run_commands()
    103         so_path = obj_build_ext.get_outputs()[0]

~\Anaconda3\envs\codegen17\lib\distutils\dist.py in run_commands(self)
    954         for cmd in self.commands:
--> 955             self.run_command(cmd)
    956

~\Anaconda3\envs\codegen17\lib\distutils\dist.py in run_command(self, command)
    973         cmd_obj.ensure_finalized()
--> 974         cmd_obj.run()
    975         self.have_run[command] = 1

~\Anaconda3\envs\codegen17\lib\site-packages\Cython\Distutils\old_build_ext.py in run(self)
    184
--> 185         _build_ext.build_ext.run(self)
    186

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in run(self)
    307                                      dry_run=self.dry_run,
--> 308                                      force=self.force)
    309         customize_compiler(self.compiler)

~\Anaconda3\envs\codegen17\lib\distutils\ccompiler.py in new_compiler(plat, compiler, verbose, dry_run, force)
   1030     # argument.
-> 1031     return klass(None, dry_run, force)
   1032

~\Anaconda3\envs\codegen17\lib\distutils\cygwinccompiler.py in __init__(self, verbose, dry_run, force)
    300
--> 301         if is_cygwingcc():
    302             raise CCompilerError(

~\Anaconda3\envs\codegen17\lib\distutils\cygwinccompiler.py in is_cygwingcc()
    410     '''Try to determine if the gcc that would be used is from cygwin.'''
--> 411     out_string = check_output(['gcc', '-dumpmachine'])
    412     return out_string.strip().endswith(b'cygwin')

~\Anaconda3\envs\codegen17\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)
    335     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 336                **kwargs).stdout
    337

~\Anaconda3\envs\codegen17\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
    402
--> 403     with Popen(*popenargs, **kwargs) as process:
    404         try:

~\Anaconda3\envs\codegen17\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
    706                                 errread, errwrite,
--> 707                                 restore_signals, start_new_session)
    708         except:

~\Anaconda3\envs\codegen17\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
    989                                          cwd,
--> 990                                          startupinfo)
    991             finally:

FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-5-e50d416a0080> in <module>()
----> 1 cython_sys = mk_rsys(CythonODEsys, **watrad_data)

c:\users\jason\desktop\scipy-2017-codegen-tutorial-master\scipy2017codegen\chem.py in mk_rsys(ODEcls, reactions, names, params, **kwargs)
     23 def mk_rsys(ODEcls, reactions, names, params=(), **kwargs):
     24     f, symbs = mk_exprs_symbs(reactions, names)
---> 25     return ODEcls(f, symbs, params=map(sym.S, params), **kwargs)
     26
     27

c:\users\jason\desktop\scipy-2017-codegen-tutorial-master\scipy2017codegen\odesys.py in __init__(self, f, y, t, params, tex_names, lambdify)
     16         self.j = sym.Matrix(self.ny, 1, f).jacobian(y)
     17         self.lambdify = lambdify or sym.lambdify
---> 18         self.setup()
     19
     20     @property

<ipython-input-4-c205e7d2de46> in setup(self)
     44             library_dirs=[], libraries=[], extra_compile_args=[], extra_link_args=[]
     45         ))
---> 46         mod = __import__(self.mod_name)
     47         self.f_eval = mod.f
     48         self.j_eval = mod.j

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in load_module(self, fullname)
    443                                  self.pyxbuild_dir,
    444                                  build_inplace=self.inplace,
--> 445                                  language_level=self.language_level)
    446         return module
    447

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in load_module(name, pyxfilename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
    230                 name, traceback.format_exception_only(*sys.exc_info()[:2])))
    231             if sys.version_info[0] >= 3:
--> 232                 raise exc.with_traceback(tb)
    233             else:
    234                 exec("raise exc, None, tb", {'exc': exc, 'tb': tb})

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in load_module(name, pyxfilename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
    214                 module_name = name
    215             so_path = build_module(module_name, pyxfilename, pyxbuild_dir,
--> 216                                    inplace=build_inplace, language_level=language_level)
    217         mod = imp.load_dynamic(name, so_path)
    218         if is_package and not hasattr(mod, '__path__'):

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyximport.py in build_module(name, pyxfilename, pyxbuild_dir, inplace, language_level)
    190                                   setup_args=sargs,
    191                                   inplace=inplace,
--> 192                                   reload_support=pyxargs.reload_support)
    193     assert os.path.exists(so_path), "Cannot find: %s" % so_path
    194

~\Anaconda3\envs\codegen17\lib\site-packages\pyximport\pyxbuild.py in pyx_to_dll(filename, ext, force_rebuild, build_in_temp, pyxbuild_dir, setup_args, reload_support, inplace)
    100     try:
    101         obj_build_ext = dist.get_command_obj("build_ext")
--> 102         dist.run_commands()
    103         so_path = obj_build_ext.get_outputs()[0]
    104         if obj_build_ext.inplace:

~\Anaconda3\envs\codegen17\lib\distutils\dist.py in run_commands(self)
    953         """
    954         for cmd in self.commands:
--> 955             self.run_command(cmd)
    956
    957     # -- Methods that operate on its Commands --------------------------

~\Anaconda3\envs\codegen17\lib\distutils\dist.py in run_command(self, command)
    972         cmd_obj = self.get_command_obj(command)
    973         cmd_obj.ensure_finalized()
--> 974         cmd_obj.run()
    975         self.have_run[command] = 1
    976

~\Anaconda3\envs\codegen17\lib\site-packages\Cython\Distutils\old_build_ext.py in run(self)
    183             optimization.disable_optimization()
    184
--> 185         _build_ext.build_ext.run(self)
    186
    187     def build_extensions(self):

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in run(self)
    306                                      verbose=self.verbose,
    307                                      dry_run=self.dry_run,
--> 308                                      force=self.force)
    309         customize_compiler(self.compiler)
    310         # If we are cross-compiling, init the compiler now (if we are not

~\Anaconda3\envs\codegen17\lib\distutils\ccompiler.py in new_compiler(plat, compiler, verbose, dry_run, force)
   1029     # with classes that expect verbose to be the first positional
   1030     # argument.
-> 1031     return klass(None, dry_run, force)
   1032
   1033

~\Anaconda3\envs\codegen17\lib\distutils\cygwinccompiler.py in __init__(self, verbose, dry_run, force)
    299             entry_point = ''
    300
--> 301         if is_cygwingcc():
    302             raise CCompilerError(
    303                 'Cygwin gcc cannot be used with --compiler=mingw32')

~\Anaconda3\envs\codegen17\lib\distutils\cygwinccompiler.py in is_cygwingcc()
    409 def is_cygwingcc():
    410     '''Try to determine if the gcc that would be used is from cygwin.'''
--> 411     out_string = check_output(['gcc', '-dumpmachine'])
    412     return out_string.strip().endswith(b'cygwin')

~\Anaconda3\envs\codegen17\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)
    334
    335     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 336                **kwargs).stdout
    337
    338

~\Anaconda3\envs\codegen17\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
    401         kwargs['stdin'] = PIPE
    402
--> 403     with Popen(*popenargs, **kwargs) as process:
    404         try:
    405             stdout, stderr = process.communicate(input, timeout=timeout)

~\Anaconda3\envs\codegen17\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
    705                                 c2pread, c2pwrite,
    706                                 errread, errwrite,
--> 707                                 restore_signals, start_new_session)
    708         except:
    709             # Cleanup if the child failed starting.

~\Anaconda3\envs\codegen17\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
    988                                          env,
    989                                          cwd,
--> 990                                          startupinfo)
    991             finally:
    992                 # Child is launched. Close the parent's copy of those pipe

ImportError: Building module ode_cython_9a390683f6 failed: ['FileNotFoundError: [WinError 2] The system cannot find the file specified\n']

45-chemical-kinetics-cython-vode
Fails on cell [6] with same error as above notebook.
javascript_viz
Runs great.
the_harder_way

Fails on line 54 because cat is not an available program on windows
gcc compilation works on line 55 (assumingly with mingw) but !run.exe needs to be called for windows instead of the linux command.

the_easy_hard_way
fails on first cython cell with:
---------------------------------------------------------------------------
DistutilsPlatformError                    Traceback (most recent call last)
<ipython-input-2-a6a0404bd309> in <module>()
----> 1 get_ipython().run_cell_magic('cython', '--annotate', 'def cython_fib(int n):\n    cdef int i\n    cdef double a = 0.0, b = 1.0\n    for i in range(n):\n        a, b = a + b, a\n    return a')

~\Anaconda3\envs\codegen17\lib\site-packages\IPython\core\interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
   2101             magic_arg_s = self.var_expand(line, stack_depth)
   2102             with self.builtin_trap:
-> 2103                 result = fn(magic_arg_s, cell)
   2104             return result
   2105

<decorator-gen-128> in cython(self, line, cell)

~\Anaconda3\envs\codegen17\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188
    189         if callable(arg):

~\Anaconda3\envs\codegen17\lib\site-packages\Cython\Build\IpythonMagic.py in cython(self, line, cell)
    289             build_extension.build_temp = os.path.dirname(pyx_file)
    290             build_extension.build_lib  = lib_dir
--> 291             build_extension.run()
    292             self._code_cache[key] = module_name
    293

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in run(self)
    337
    338         # Now actually compile and link everything.
--> 339         self.build_extensions()
    340
    341     def check_extensions_list(self, extensions):

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in build_extensions(self)
    446             self._build_extensions_parallel()
    447         else:
--> 448             self._build_extensions_serial()
    449
    450     def _build_extensions_parallel(self):

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in _build_extensions_serial(self)
    471         for ext in self.extensions:
    472             with self._filter_build_errors(ext):
--> 473                 self.build_extension(ext)
    474
    475     @contextlib.contextmanager

~\Anaconda3\envs\codegen17\lib\distutils\command\build_ext.py in build_extension(self, ext)
    531                                          debug=self.debug,
    532                                          extra_postargs=extra_args,
--> 533                                          depends=ext.depends)
    534
    535         # XXX outdated variable, kept here in case third-part code

~\Anaconda3\envs\codegen17\lib\distutils\_msvccompiler.py in compile(self, sources, output_dir, macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
    302
    303         if not self.initialized:
--> 304             self.initialize()
    305         compile_info = self._setup_compile(output_dir, macros, include_dirs,
    306                                            sources, depends, extra_postargs)

~\Anaconda3\envs\codegen17\lib\distutils\_msvccompiler.py in initialize(self, plat_name)
    195         plat_spec = PLAT_TO_VCVARS[plat_name]
    196
--> 197         vc_env = _get_vc_env(plat_spec)
    198         if not vc_env:
    199             raise DistutilsPlatformError("Unable to find a compatible "

~\Anaconda3\envs\codegen17\lib\distutils\_msvccompiler.py in _get_vc_env(plat_spec)
     83     vcvarsall, vcruntime = _find_vcvarsall(plat_spec)
     84     if not vcvarsall:
---> 85         raise DistutilsPlatformError("Unable to find vcvarsall.bat")
     86
     87     try:

DistutilsPlatformError: Unable to find vcvarsall.bat

Tried install http://landinghub.visualstudio.com/visual-cpp-build-tools based on https://matthew-brett.github.io/pydagogue/python_msvc.html to see if this will provide the right compiler for Python 3.5+. Note that https://github.com/cython/cython/wiki/CythonExtensionsOnWindows says not to compile with Minggw, as it has to match whatever python was compiled with on windows (not sure what this is for anaconda)
need to add "import setuptools" right above (in same cell) as `%load_ext cython
Ok that worked! I just had to install that cpp-build-tools and add the import setuptools line and it found the correct compiler and ran!

50-chemical-kinetics-C
Same file not found error as Bjorn's other notebooks above
60-chemical-kinetics-reaction-diffusion
Got this warning on cell [3]
C:\Users\Jason\Anaconda3\envs\codegen17\lib\site-packages\sympy\core\decorators.py:38: SymPyDeprecationWarning:

_as_finite_diff has been deprecated since SymPy 1.1. Use
Derivative.as_finite_difference instead. See
https://github.com/sympy/sympy/issues/11410 for more info.

  _warn_deprecation(wrapped, 3)

Notebook runs otherwise.
Main conclusions

Add the visual cpp build tools to our windows installation instructions
Figure out what is going on with the missing file. It generates the c, pyx, and pyxbld files in the directory.
SKip theano?

This seems to be the main issue. For some reason when Cython checks for cygwin it calls:
ipdb> check_output(['gcc', '-dumpmachine'])
*** FileNotFoundError: [WinError 2] The system cannot find the file specified

and that gets and error but if you have mingw installed (like we do in our env) I can call this at the command line and it works:
(codegen17) C:\Users\Jason>gcc -dumpmachine
x86_64-w64-mingw32

Looks like cython needs a patch:
https://stackoverflow.com/questions/24291506/building-minimal-cython-file-with-python-3-3-anaconda-under-windows-7
out_string = check_output(['gcc', '-dumpmachine'], shell=True)

And this looks like some Aaron has already investigated:
http://bugs.python.org/issue21821

Regarding the win64 packages, I thought they were covered here:
https://github.com/sympy/scipy-2017-codegen-tutorial/blob/master/.drone.yml#L15
23: That is "intended" (Euler forward deviates)
40: Nice to see you came to the same conclusion regarding the cygwincompiler (https://github.com/sympy/scipy-2017-codegen-tutorial/issues/2#issuecomment-307812559). Do you know how to include the patch in our conda package?
+1 for skipping theano

Geez is that still an issue? I thought Continuum moved everything from .bat over to .exe.
I don't remember if there are some better workarounds for this. Might be worth some further investigation.
For theano, let's skip it. It isn't even really printed anyway. I couldn't even test it on my own computer because I couldn't install theano on the plane (and plus it's dumb to make theano a dependency of the tutorial just for this).

How does the distutils code get called? Can we monkeypatch it?

Interesting that the %%cython magic command compiles fine but the pyximport doesn't. They must not follow the same code paths.

Maybe related to the fact that pyximport uses Cython.Distutils and the cell magic doesn't.

This shows the win-64 packages: https://anaconda.org/SymPy/scipy2017codegen, not sure why it failed to download. Was it maybe because of the channel name: sympy ==3.5? What does it mean to version the channel?

What error is this in reference to?

With respect to:
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/sympy ==3.5

It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

Do you know how to include the patch in our conda package?

I think we'd have to make a custom disutils package on the sympy channel that had priority in downloading. Then we could include a patch via the meta.yml file.

Compiler:
Using msvc from:
http://landinghub.visualstudio.com/visual-cpp-build-tools
worked for me. But then we should try to make people download this before the conference (4 GiB download size).

The channel should not have been versioned. A silly mistake by me. I just changed it.

Regarding pyximport:
what examples are failing? (note that we I used a .pyxbld file)

@moorepants I just changed so that msvc is the default:
https://github.com/sympy/scipy-2017-codegen-tutorial/blob/d7d213aea043cbba623b7f116df3b87dbfccd2d0/scipy2017codegen/template.pyxbld#L3

We could introduce a conda package called e.g. scipy2017codegen_mingw which sets that environment variable to "mingw" (the conda package would contain bat files as per: https://conda.io/docs/using/envs.html#more-notes-on-environment-variable-scripts). But this is all very complicated :/

Let's try to avoid patching the standard library with conda if possible. I know there is a way to change the default compiler with some config file (Continuum has a package that does this, but I forgot what it's called).

I think everything here is fixed, no?
Except I don't know the status of the disutils patch needs? @bjodah Did you work around that?

The distutils patch was needed for Python 3 when using mingw32, I changed the default to msvc.

If we require msvc for our tutorial we can close this.
If we want to support mingw32 we still need to figure out how to workaround distutils calling gcc without shell=True. Monkey-patching the relatively short python function: distutils.cygwinccompiler.is_cygwingcc comes to mind. I actually think I could make that work.

I think monkey patching is fine for this purpose if we need to do it. The other option would be to ship a patched distutils in the sympy conda channel. I'm not completely sure how to monkey patch it without shipping a custom distutils. We could copy the relevant distutils modules into our scipy2017codegen package and then import from that?

I'm thinking something dead simple:
>>> import distutils.cygwinccompiler
>>> distutils.cygwinccompiler.is_cygwingcc()
False
>>> distutils.cygwinccompiler.is_cygwingcc = lambda: True
>>> distutils.cygwinccompiler.is_cygwingcc()
True

the monkeypatching would be performed in pyxbld when $SCIPY2017CODEGEN_COMPILER == mingw32. (I'm trying this right now)

That's a nice way to do it.

Thought you were going to bed :)

I was... and now I am :)
Tried it, but it didn't work unfortunately (it's a bit of whack-a-mole):
~\Anaconda2\envs\codegen17\lib\distutils\cygwinccompiler.py in __init__(self, verbose, dry_run, force)
    155             # Include the appropriate MSVC runtime library if Python was built
    156             # with MSVC 7.0 or later.
--> 157             self.dll_libraries = get_msvcr()
    158
    159     def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):

~\Anaconda2\envs\codegen17\lib\distutils\cygwinccompiler.py in get_msvcr()
     84             return ['msvcr100']
     85         else:
---> 86             raise ValueError("Unknown MS Compiler version %s " % msc_ver)
     87
     88

ImportError: Building module ode_cython_311c73e7fc failed: ['ValueError: Unknown MS Compiler version 1900 \n']

As a side note: there is a traceback from _msvccompiler.py in distutils when trying to use %%cython magic in our codegen17 environment, but it works in Anaconda2. :/
Not sure mingw is worth the trouble..

Is this conda-forge's python? It was fixed here, https://github.com/conda-forge/python-feedstock/pull/143

Thanks @isuruf, that got me a bit further:
c:/users/user/anaconda2/envs/codegen17/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:\users\user\scipy-2017-codegen-tutorial\notebooks\ode_c_c847e93dc6.cp36-win_amd64.def:1: syntax error
...
collect2.exe: error: ld returned 1 exit status

contents of ode_c_c847e93dc6.cp36-win_amd64.def:
LIBRARY ode_c_c847e93dc6.cp36-win_amd64.pyd
EXPORTS
PyInit_ode_c_c847e93dc6

(I still need to monkey-patch distutils.cygwinccompiler.is_cygwingcc to get this far)
For some reason I also had to manually add distutils/distutils.cfg:
[build]
compiler = ming32

to the conda environment (it was present in the root environment, this may have been caused by me manually upgrading python).

Thanks for all help. But I'm closing this for now (I need to focus more on content and less on mingw :) ).


Hello Guys.......

i am new on shopware 6 please any one  tell me from where i can learn query of shopwere 6 and from where to get help about shopware 6 .....except documentation ....

hey @thsekeer
I assume you already know the documentation https://docs.shopware.com/en/shopware-platform-dev-en/api/admin-api :grin:
It is probably easier for us to help, if you ask a specific question. otherwise it is quite impossible to guess what exactly your problem is :wink:
Beside that, I recommend our gitter channel, where you can find many Shopware developer from the community. Our forum is a good place to ask questions, too.

You can also find free training videos at our acadamy: https://academy.shopware.com/collections?category=english-trainings&page=2

hey @thsekeer
I assume you already know the documentation https://docs.shopware.com/en/shopware-platform-dev-en/api/admin-api 😁
It is probably easier for us to help, if you ask a specific question. otherwise it is quite impossible to guess what exactly your problem is 😉
Beside that, I recommend our gitter channel, where you can find many Shopware developer from the community. Our forum is a good place to ask questions, too.

hey @thsekeer
I assume you already know the documentation https://docs.shopware.com/en/shopware-platform-dev-en/api/admin-api 😁
It is probably easier for us to help, if you ask a specific question. otherwise it is quite impossible to guess what exactly your problem is 😉
Beside that, I recommend our gitter channel, where you can find many Shopware developer from the community. Our forum is a good place to ask questions, too.

thank you so much your value able reply...

@thsekeer,
i'm closing this for now as we hope that you will find some starting point for learning shopware 6 in the links we've provided here.
If you have some concrete issues don't hesitate to open another ticket.
Kind regards
Jonas


Can't load updated libicu

Not sure if this is the right place for this but when attempting to build haskell-ide-engine which relies on text-icu as a dependency, it complains about the following:
Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.58.dylib

However when running brew install icu4c, it installs the latest version which is 59.1. Does support for ICU 59.1 need to be added to text-icu or is this issue just unrelated?
More info regarding the error message can be found here https://github.com/haskell/haskell-ide-engine/issues/303.

I'm having the same issue on FreeBSD.

Looks like this was related to stack reusing already built packages. I've removed all snapshots in question and rebuilt the project, now it works.

Note that this package does not interface well with Homebrew, because in my experience, Homebrew doesn't really support pinned versions, and this would happen every time Homebrew updates its version of ICU. This breaks text-icu because the package is not rebuilt and stays linked to an old version of ICU. Not sure what a better solution looks like

Hard to say what to do here. ICU is actively developed and often updated to a new major version (there is a new Unicode revision almost every year, and ICU adds its own features as well). It's not like OpenSSL, where the interface is almost doesn't change, and only new algorithms or bug fixes are added.
So precise versioning (libicu58, libicu59, ...) is necessary.
Adding a symlink from libicu58 to libicu59 won't work in general case, since the new Unicode character blocks could be added, and the same function would return different results for the same input (like block code changing from NoBlock in ICU 68 to CyproMinoan in ICU 70). Some other algorithms may change as well, so versions are really different and not backwards compatible.
Neither stack nor cabal is checking for updates of system-wide libraries. No go there.
Perhaps the only two options are manual recompilation or statically linking the ICU library.


Countdown feature

In Tapo App there is a feature that you can set up a timer like "turn off after 5 minutes".
Is it possible to add such function in this integration ?

You could do that with a Home Assistant automation.

As @richard-scott said the easiest way to do this would be in an integration as I believe the countdown feature is handled away from the plug :)

Sorry, my English is bad(
I think, there are two possible ways how it made in Tapo App:

cloud implementation - after expiration of timer app/cloud sends "off" command to plug
plug implementation - app/cloud sends something like "set timer..." to plug and this timer handled in plug

If there are no way to send something like "set timer..." to plug - ok, there are only HA automation only.
If there exist something like "set timer..." - i'll prefer this instead of straight "plug on" in some situations.
For example - let there be some sensor(temp, humidity, etc.) and some to power on (heater, humidifier) and something gone wrong

sensor triggered "plug on"
sensor shuts down(battery fail - it's possible to overcome this via automation) or HA hangs up(watchdog ?)
plug continue to be in "on" state and there become overheat or anything else.
If there instead of "plug on" possible to use something like "plug on for an hour" - this will be way more fail safe. Plug will turn off by itself.


[AIRFLOW-863] Example DAGs should have recent start dates

Avoid unnecessary backfills by having start dates of
just a few days ago.
Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:
https://issues.apache.org/jira/browse/AIRFLOW-863
Testing Done:

Example DAGs are covered by unit tests

Codecov Report

Merging #2068 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #2068      +/-   ##
=========================================
+ Coverage    67.7%   67.7%   +<.01%
=========================================
  Files         139     139
  Lines       10579   10581       +2
=========================================
+ Hits         7162    7164       +2
  Misses       3417    3417

Impacted Files
Coverage Δ

...w/example_dags/example_latest_only_with_trigger.py
100% <100%> (ø)
:white_check_mark:

airflow/example_dags/example_latest_only.py
100% <100%> (ø)
:white_check_mark:

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 eea5ff8...1dba862. Read the comment docs.

Hey @jlowin I am not entirely sure but aren't some tests suffering from the same issue? Can you maybe broaden the pr to also fix those? It will limit Travis' run time.

Good call @bolkedebruin

@bolkedebruin adjusted all examples to have two-day lookbacks. This improves test times by about 15%, or 2-4 minutes depending on the build.
Also added a utility function for setting recent start dates, airflow.utils.dates.days_ago (with unit tests)

Nice! That a great win and now our build times won't linearly grow. I like the idea of airflow.utils.dates.*. We should make using that the best practice. That would remove some issues around datetime.now() as a start_date when we use end of interval.
LGTM!


Move more aws-serverless services down into the aws layer.

Followup to https://github.com/pulumi/pulumi-aws/pull/327 should only be reviewed once that goes in.

This can now be reviewed.

Note: the only area of "contention/discussion" of interest is simply around the naming of things.  for example, some resources are fairly un-opinionated on how they shoudl name their events.  i.e. you can just do eventRule.onEvent.  We could consider making those more like eventRule.onEventFired,  But i'm not sure if ends up adding that much value.

Going to merge in as is.  If anyone feels strongly about some of the names let me know.


Docker files

#155
This pull request adds docker files to backend and frontend projects and docker-compose to rule them all
ISSUES
We have two untracking configs: backend/config.json and frontend/webpack.config.js. In order to run project in docker this configurations should be slightly changed. I created alternative configurations, named backend/config-docker.json and frontend/webpack.config-docker.js and replace original configs with them in docker images
This is quite bad solution because we can't change config without changing config-docker now and I'm afraid we should keep config in repo somehow
USAGE
WARNIG: all commands should be run from project's root directory
To run application in docker you have to build it first:
docker-compose build

Now you can run everything form root folder just one command:
docker-compose up

Note that backend runs with RUST_LOG=debug by default. You can change it by adding environment variable to run command:
RUST_LOG=warn docker-compose up

You also can build and run every application separately like this:
docker-compose build frontend
docker-compose up frontend

You can run service or services in background using -d option:
docker-compose up -d

And also stop them both or one of them using
docker-compose stop frontend

And finally you can connect to logs of each docker using
docker-compose logs -f
docker-compose logs -f backend

Note: After approve we should add this information to wiki

I created page in wiki: https://github.com/Miol-Mor/battle-game/wiki/How-to-run


sysbench throws error in combination with MariaDB installed - with MySQL installed it works fine - Reason: image not found Abort trap: 6

With installed latest MariaDB from Homebrew sysbench --test=cpu throws error. This test needs no connection to MariaDB or MySQL.
After uninstalling MariaDB and installing latest MySQL the test runs without error.
$ sysbench --test=cpu --cpu-max-prime=20000 run
dyld: Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.20.dylib
  Referenced from: /usr/local/bin/sysbench
  Reason: image not found
Abort trap: 6

$ brew uninstall mariadb

$ brew install mysql

$ brew info sysbench
sysbench: stable 0.4.12 (bottled)
System performance benchmark tool
https://github.com/akopytov/sysbench
/usr/local/Cellar/sysbench/0.4.12_2 (7 files, 144.6K) *
  Poured from bottle on 2015-11-12 at 14:41:01
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/sysbench.rb
==> Dependencies
Build: autoconf ✔, automake ✔
Required: openssl ✔
==> Requirements
Recommended: mysql ✔
Optional: postgresql ✘
==> Options
--with-postgresql
        Build with postgresql support
--without-mysql
        Build without mysql support

$ sysbench --test=cpu --cpu-max-prime=20000 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000

Test execution summary:
    total time:                          26.4880s
    total number of events:              10000
    total time taken by event execution: 26.4837
    per-request statistics:
         min:                                  2.35ms
         avg:                                  2.65ms
         max:                                101.95ms
         approx.  95 percentile:               3.52ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   26.4837/0.00

$ brew config
HOMEBREW_VERSION: 1.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9cce3414fbd39d146d97911dbb3bf07fffaa1080
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d2e61040b2871d1ca7e054b1ea96b466007a719e
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.11.0 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_92
macOS: 10.12.2-x86_64
Xcode: N/A
CLT: <IP_ADDRESS>.1.1480973914
X11: 2.7.8 => /opt/X11

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  ruby

Please note we may immediately close your issue without comment if you do not fill out the issue template and provide the requested information.

https://github.com/Homebrew/brew/blob/master/.github/ISSUE_TEMPLATE.md.


[FEATURE] Hardware Support

We should aim to support hardware.
Specific hardware boards should be listed as separate issues below:

SR v4 Power Board
SR v4 Motor Board
SR v4 Servo Board
SR Ruggeduino
SourceBots Arduino / Servo Board

I'm going to close this ticket in order to use the individual tickets.


Console groups show escape codes instead of interpreting them

Describe the bug
If I do a console.log statement and use embedded styles (such as changing the colour), they are reflected in the debug console in VS Code. If I do the same in a console.group statement, I see an escape sequence instead of seeing coloured text.
To Reproduce

Connect VS Code to Chrome for debugging
In the Chrome Javascript console, execute this statement: console.group("%cThis is a green group", "color: green"); console.log("Inside the group"); console.groupEnd()
Note how it doesn't look great in VS Code.

Here's an image of several similar commands typed in the Chrome console:

Here's the output that's seen in VS Code:

The expected result is that the console.group command show interpret the escape codes and show the text in colour.
Log File
Not included, as I think you should be able to reproduce this more easily than look through a log.
VS Code Version:
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-11T01:11:34.018Z (2 wks ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 20.1.0
Additional context
None

@clintonblackmore thanks for reporting this. VS Code insiders will have this fix from Friday, so you can try it out then and let us know if it works well for you. I have verified and the issue is fixed now.
Stable will only have this end of January.

Thank you very much, @isidorn and @connor4312. I'm grateful to hear that.


Different font size and line spacing used in the key concepts page under : Functions

Different font size and lined spacing within the Key Concepts page under key concepts. http://ballerinalang.org/docs/user-guide/0.8/key-concepts/

This is a stylesheet issue that I reported a while back. Bullets should be the same font size as paragraphs, but bullets that include  tags are being increased in size relative to the bullets (if you increase the bullet font size, the bullets with  tags are increased even more). I am not a CSS expert, but I think I've figured out how to fix this. Please test on various browsers and platforms.

User guides are not there now. Hence, resolving.


Cancelling order did not return remaining funds

i cancelled a sell order on iota/smr exchange. order got cancelled but remaining iotas have not been returned.
remaining amount is 10,000-31-184.65-13-3-10=9758.35 IOTA and still sits on address https://explorer.iota.org/mainnet/addr/iota1qrh66wxdq0fek04u55tu2ryakar6wmtea90ayupfkkp8h6emud8uq5cw98k
my profile is https://soonaverse.com/member/0x5a22618a380a56c20a0c26664c3955d594f426e8/activity

@adamunchained @flyingrabbit-lab  Is this able to be resolved by releasing funds if they are on soonaverse controlled addresses?

should be fixed as part of the https://github.com/soonaverse/app/issues/182


inshellisense bind does not work when powershell config file is within onedrive

Describe the bug

Same problem here.

Same issue, I tracked down the problem to 'utils\bindings.js' where the path built from using os.homedir(). For the bind, to support properly with OneDrive, it should query poweshells $PSScriptRoot variable to get proper start directory.


Adjust the setup-qemu and test-qemu-hifive make actions to work with the new tock version.

PR #207 updated the tock submodule. The new submodule version includes the following PR: https://github.com/tock/tock/pull/1880, which changed the tock Makefile actions related to QEMU setup. This updates make setup-qemu to work with the new Tock makefile.
Tock no longer checks if QEMU was already setup when running setup actions, so I removed test-qemu-hifive's dependency on qemu-setup. make setup still depends on qemu-setup.

Because this is a small bugfix needed to fix CI, I'll go ahead and merge it without further review.
bors r+


INSTALL_FAILED_INVALID_APK

I apologize for the lack of information, but I'm attempting to install a package that's on my desktop to the android simulator. This is half of the stack trace from the PackageInstallationException. Any thoughts?
at SharpAdbClient.DeviceCommands.PackageManager.InstallRemotePackage(String remoteFilePath, Boolean reinstall) in C:\projects\madb\SharpAdbClient\DeviceCommands\PackageManager.cs:line 137
at SharpAdbClient.DeviceCommands.PackageManager.InstallPackage(String packageFilePath, Boolean reinstall) in C:\projects\madb\SharpAdbClient\DeviceCommands\PackageManager.cs:line 116

Pushing the apk to /data/local/tmp and then installing the package using PackageManager.InstallRemotePackage resolved my issue.


[Localization] Important updates to terms of use and data privacy

Awaiting final documents ...

Please do not merge. development is frozen.

This is a high priority escalation. Please see the ticket 1533.

All changes have been applied.
@haosap Please approve.
CHANGES MUST NOT BE MERGED BEFORE @haosap has APPROVED THIS PR.


Gatling Users abandons the job in middle and starts new job

I am running Gatling with Karate scenarios. For less number of users, Gatling is behaving fine. When I increase number of users from 10 to 100, I have seen that Gatling Users created and running that scenario abandons the scenario and starts the same scenario (fresh run) in middle. I am not sure why this is happening and how to fix this. The pace duration I have provided is also not reached before this happens. I have put gatling pause of 5 or more seconds in between various steps within the scenario. I need these pauses.
I have provided below code snippet. Feature file takes less than 60 seconds and I have provided pace duration as 60 seconds so that the feature file gets executed every 60 seconds to achieve throughput of 60 req / min. as I need 90 requests / min so I have used 90 users with initial rampup of 60 seconds. After 60 seconds, I can see Gatling report showing 60 users but in log file I see that these users abandon the feature file execution in middle and start new (even before pace duration of 60 seconds is reached).
class PerformanceTestSimulation extends Simulation(){

val protocol = karateProtocol(
    "/v1/prov/{id}/status" -> Nil,
    "/v1/prov/{id}/config" -> Nil,
    "/v1/car/{id}" -> Nil

  )

  def HappyPathFeature() = {exec(karateFeature("classpath:performance/happypath.feature"))}

  val happyPath = scenario("Happy Path Fixed Duration Load Simulation").forever() { pace(60 seconds).exec(HappyPathFeature())}

    setUp(happyPath.inject(rampUsers(90) during (60 seconds))).protocols(protocol).maxDuration(900 seconds)
}

Feature:

  Background:

    * def sleep = function(ms){ java.lang.Thread.sleep(ms) }
    * def pause = karate.get('__gatling.pause', sleep)
    * configure ssl = true

  Scenario: create

    When call read('classpath:shared/feature1.feature') {arg1: '#(arg1)'}
    * pause(5000)

    When call read('classpath:shared/feature2.feature') {arg1: '#(arg1)'}
    * pause(5000)

    When call read('classpath:shared/feature3.feature') {arg1: '#(arg1)'}
    * pause(10000)

    When call read('classpath:shared/feature4.feature') {arg1: '#(arg1)'}

    * pause(10000)
    When call read('classpath:shared/feature5.feature') {arg1: '#(arg1)'}
    * pause(5000)
    When call read('classpath:shared/feature6.feature') {arg1: '#(arg1)'}
    * pause(5000)

    When call read('classpath:shared/feature7.feature') {arg1: '#(arg1)'}
    * pause(300)

    When call read('classpath:shared/feature8.feature') {arg1: '#(arg1)'}
    * pause(300)

    When call read('classpath:shared/feature9.feature') {arg1: '#(arg1)'}
    * pause(300)

    When call read('classpath:shared/feature10.feature') {arg1: '#(arg1)'}

Logfile
--------

00:45:39.226 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  com.intuit.karate - [print] {
  print from feature file
}

00:45:39.389 [GatlingSystem-akka.actor.default-dispatcher-4] DEBUG com.intuit.karate - request:
1 > POST http://url
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 134
1 > Content-Type: application/json; charset=UTF-8
1 > Host: localhost:8002
1 > User-Agent: Apache-HttpClient/4.5.10 (Java/11.0.5)
1 > X-API-Key: **************************************************************************
1 > api-key: ************************************
{
  "data"
}

00:45:39.517 [GatlingSystem-akka.actor.default-dispatcher-4] DEBUG com.intuit.karate - response time in milliseconds: 126.95
1 < 200
1 < Content-Length: 15
1 < Content-Type: application/json
1 < Date: Mon, 10 Aug 2020 05:45:39 GMT
1 < Grpc-Metadata-Content-Type: application/grpc
1 < Vary: Origin
{
  "response"
}

00:45:39.521 [GatlingSystem-akka.actor.default-dispatcher-4] DEBUG com.intuit.karate - request:
2 > POST http://url2
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Content-Length: 31
2 > Content-Type: application/json; charset=UTF-8
2 > Host: localhost:8002
2 > User-Agent: Apache-HttpClient/4.5.10 (Java/11.0.5)
2 > X-API-Key: **************************************************************************
2 > api-key: ************************************
{
  "response"
}

00:46:10.246 [GatlingSystem-akka.actor.default-dispatcher-4] INFO  com.intuit.karate - [print] {
  print from feature file
}

did you even try this: https://stackoverflow.com/a/63178818/143475
@kushalkanwar please follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
note there are others who have done it and helped everyone solve issues in the past, see this example: https://github.com/intuit/karate/issues/845


add palettes

I saw some nice ones recently

https://www.refactoringui.com/previews/building-your-color-palette
https://github.com/nealmckee/penumbra
https://fffuel.co/pppalette/

I don't know if it exists for dotnet but I very much like the ones in colorbrewer

I don't know if it exists for dotnet but I very much like the ones in colorbrewer

Good point! This opens up a can of worms lol. Short story is that those palettes have a sticky non-standard license which also spilled over into heatmap discussions (#420, #458).
I feel like there was a recent discussion too as to whether a palette of colors can be copyrighted in a way that requires attribution but I'm struggling to locate it.
I just want to make sure we proceed in such a way that does not result in ScottPlot's users having to pollute their code bases with colorbrewer license files. One of my favorite things about this library is that it's 100% MIT-licensed code, and I'd like to keep that part as clean and simple as possible.
All that said, colorbrewer palletes sure are a standard in the scientific field

Here's the issue where we discussed colorbrewer legality in depth: https://github.com/ScottPlot/ScottPlot/pull/1314
It looks like then we decided that colors are not copyrightable, as long as we are not copy/pasting code to implement them
#notalawyer 😅

Wow, that's a very thorough analysis of the legal aspects... Given that the colorbrewer are available in numerous plotting libraries I don't think there is much risk re using them here, but I'm not a lawyer either!


Add remote control buttons, timeout, retries and pylint

Hello !
In order to improve Home-Assistant integration I got @adreznec commits and I added retries and pylint.
I really hope you will accept this PR and create a new release then I could improve the Home-Assistant component (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/media_player/aquostv.py).
Tell me if you want I change something.
Thanks !

PR looks good.  Merged.  I'll cut a new release this weekend when I get a moment.
Thanks!

@jmoore987 thanks for merging! and thanks for the release ! Could write here a message when you release it on pypi, then I will push the new version of the Home Assistant component.
Thanks !

@titilambert Your Pull requests should be reflected in v0.3 now on pypi.
https://pypi.python.org/pypi/sharp_aquos_rc/0.3
Hope this works for you guys!

Hello !
I can not get it from pypi
$ pip install sharp_aquos_rc==0.3
Collecting sharp_aquos_rc==0.3
  Could not find a version that satisfies the requirement sharp_aquos_rc==0.3 (from versions: 0.2)
No matching distribution found for sharp_aquos_rc==0.3

Do I need to wait for something ?


SipSignalingPort cannot be 0

According to this page, SipSignalingPort can be "0 to 65535".
If I try and enter the value 0, I get the error:
"SipSignalingPort must be greater than or equal to 1."

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

ID: ad7d5051-1177-c5cf-bf28-8639d7b6fbd1
Version Independent ID: 2a9aa4e1-3767-cd46-50fe-f9dd8b0997be
Content: Connect your Session Border Controller (SBC) to Direct Routing - Microsoft Teams
Content Source: Teams/direct-routing-connect-the-sbc.md
Service: msteams
GitHub Login: @CarolynRowe
Microsoft Alias: crowe

Hey Dave, it means the port needs to be between 0 to 65535. Standard practice is 5067 or 5061, but really as long as it matches what port the SBC is using to communicate with Teams it shouldn't cause any issues.

Thanks for the quick response, Zairians.
I wasn't very clear.
The documentation says that the port can be any value between 0 and 65535.
if I try and set the value to to 0 ( a valid number according to the documentation) powershell gives the error I mentioned.  So either the documentation is incorrect or there's a technical issue with configuring the gateway.  I'm not sure which one of the two it is.
There is another point here, which is why I'm trying to set the port to 0.  I don't want to hard configure Teams to use a specific port, but instead use the port that is in the DNS SRV records for the FQDN that's been configured. (This gives is the flexibility of changing the port without having to reconfigure the Teams gateway).  Typically (with many SIP devices) this is achieved by setting the port to 0.  Please could you advise that if this can't be achieved by setting the gateway port to 0, how do we configure the gateway to use DNS SRV records.
Thanks again,
David

Hey David,
I think the documentation is a bit misleading. The SipSignalingPort as far as I'm aware needs to be static as it sits idle and listening for inbound traffic, this is why its common for SIP to use 5060 (or 5061 for SIPS). It seems Teams/SFB are using 5067/5061 for TLS communication.
The only static port you would be using is for the SIP signalling. During the SIP signalling the call would negotiate the RTP ports to use for voice. The RTP port range which is dynamic as the media pool will usually have a range (0-65535) and the call will select a port from this range to use.
To my knowledge you can't change the SIP signalling port as any SIP Trunk/SBC would be looking to communicate on the configured port when they've been configured.
SIP Devices may have their port set to 0 although once they are configured to a platform/PBX the configuration will most likely contain the SBC address and port so the device knows where to route outbound traffic.
Hope this helps.
Thanks,
Adam

@davemidd
thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

Thanks. I've checked the documentation on this page:
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-connect-the-sbc
and it's still incorrect. Will it take a while for the corrected version to show up?

David


feat: Candid assist

Description
Ask for user input when candid argument is not provided. A nice side effect is that dfx deploy now works with multiple canisters with init args (we cannot use --argument flag when multiple canisters require init args)
How Has This Been Tested?
Not easy to write e2e test, because it's only activated when used in terminal.
Checklist:

[ ] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[ ] I have made corresponding changes to the documentation.

Not easy to write e2e test, because it's only activated when used in terminal.

DFX has a number of interactive tests in Expect format, in e2e/assets/expect_scripts. See here for an example, may require updating this line.

Should be good now. I move the install prompts at the top. It also helps with other warning messages. Restored the behavior of not asking for arguments when all types are optional.


Composer support?

It seems that the Kudu image doesn’t include PHP and common tools such as Composer.
Because of this, deployment of PHP applications needing to run composer to get their dependencies (Symfony, Laravel, …) is not possible.

Hello, I have added PHP5.6/7.0 and Composer to the Kudu image. It will go to production in our next deployment pipeline. When it becomes available, you can execute composer install in your Kudu window.
We are also going to make changes to KuduScript so Composer will automatically run if composer.json is found.


Image Re-link not working

I used this to exported notion files, with image styled with(I've not edit anything after exporting from notion)
![Untitled](Perceiver%20IO%20A%20General%20Architecture%20for%20Structured%206d4d05e8eeef470f9a3148f92e0250b2/Untitled.png)

but these are converted to ![[Untitled]] and this seems not working well.
I'm using Windows 11.
Is there anybody treating this issue?

I'm also having this issue

Hi @MilkClouds and @A1ic3-g! Thanks for submitting the issue and providing a good example. I can't guess at the problem right away, but I think it might be an issue with the script not selecting the right path due to the subdirectory that contains the Untitled.png image. I'll try to patch this soon.

Hey @MilkClouds and @A1ic3-g, I just got a chance to look at this tonight and I believe I can see what the problem is, but to make sure I'm understanding the right scenario so I can fix it, would either of you be willing to submit an example export with this issue? I'm unable to create any exports from Notion that create the same link structure.

@MilkClouds Thank you for the example export and for the pull request. :) I think I have a fix that should work well without disabling regex. I tested it a few times and tried to tweak the links in your export but it all seems to work well.

@connertennery I can confirm the fix works for my notion export :)

Hi, I've had another problem about this:
Link Before Convert:
Link After Convert: ![[/Draw call batching.png]]
But the name of the image is "Draw_call_batching.png", so it doesn't work as expected.

I'm having the same issue as @carlos-truong  mentioned. please re-open this issue. I actually made a fix.


Problem with maker label defaults

I need to show marker labels just by "mouse over" event by default and because the markers data are too much, it's not possible to set the  show: false and showByMouseOver: true in the controller's $scope and also there is not related attribute in ol-marker tag, so I changed these values in angular-openlayers-directive-js > olMarker directive > getMarkerDefaults function, but there in no change in showing labels, all the labels appear on the map!! How is it?

Please, could you provide a jsfiddle or plunker showing this behaviour?

Moreover what do you mean exactly by the markers data are too much ?

I've trie to change the angular-openlayers-directives.js but it's still not working.
Lines 697 to 708
     var getMarkerDefaults = function() {         return {             projection: 'EPSG:4326',             lat: 0,             lon: 0,             coord: [],             **show: false,             showOnMouseOver: true,             showOnMouseClick: false,             keepOneOverlayVisible: false**         };     };

@notph Can you try with our latest version if the problem persists? In case please re-open this issue, thx.


fix(index): exclude is ignored (options.exclude)

A simple demo of the problem can be found here.
The expected behavior is that chunks with a filename that match the given pattern will be excluded from uglify. This was the behavior exhibited by 0.4.6. The actual behavior is that all chunks are uglified.
It looks like the problem is that the options used to filter what chunks are processed, do not include the exclude configuration passed to the plugin constructor.

This fix doesn't seem to work for me.
Could it be that it is because the file I wish to exclude is in node_modules folder?

@everdimension can you provide configuration?

Well I wished I wouldn't have to make a demo repo :) But I can try later today.
But in short for now here's part of my module config:
module: {
  rules: [
    /** ...other rules... */
    {
      test: /\.js$/,
      use: [
        {
          loader: 'babel-loader',
        },
      ],
      include: path.resolve(__dirname, 'src'),
    },
  ],
}

Here are uglifyjsplugin options:
new UglifyJSPlugin({
  exclude: /ReactChartIQ\.translations.*\.js$/i,
  uglifyOptions: {
    ie8: false,
    warnings: false,
    sourceMap: true
  },
})

These work in 1.0.0-beta.1 (with according options shape)

@everdimension strange, minimum test repo will be very helpful

I think think the issue is that the plugin processes output files not input files. I'm not sure about the beta, but this is the same behavior as 0.4.6.
@everdimension I'm not sure about your use case - but we have some legacy code that can't be minified, so the way we did it (with the current version of the plugin - 0.4.6) was to group all the code into it's own chunk by defining an entry point just for those legacy files.

@rszewczyk yes, you are right
@everdimension move you code to entry and use exclude

test, include and exclude options works similar BannerPlugin (https://github.com/webpack/webpack/blob/6a26e9ba7f7f1be7e76054f219bf1e094f2c3264/lib/BannerPlugin.js)

Yep, this 'only' excludes compilation.assets (output), you can't exclude particular modules

It's not a particular module, i'm trying to exclude a filename within a module

it's not particular module <=> within a modulein the same sentence should ring a bell 😛(the import is/will be a module on it's own). At the point in the webpack lifecycle (hook) where uglifyjs-webpack-plugin is applied there are only the output files left without an easy way to add filters on a 'module-level' for particular modules within these assets. Why do you need this, what is the use case ?

in the same sentence should ring a bell

What?
I have a particular output file name. Otherwise it wouldn't have worked before either.


Fix crash when resuming previous game from v1.4

fixes #486
All of the methods to retrieve the main station position seem to be rather broken so I settled for spawning the player a safe distance away from the sun.

Hooray Jenkins reported success with all tests good!

This now becomes a question of "is the solution worse than the problem itself?"

Hooray Jenkins reported success with all tests good!

Don't merge this. #504 is probably the better solutions


[Metadata Improvement]: Evaluate ChatGPT performance on measurementTechnique Extraction

Issue Name
Evaluate ChatGPT performance on measurementTechnique Extraction
Issue Description
It would be good to be able to evaluate how well ChatGPT extracts measurementTechniques based on Dataset names and descriptions. While the performance may vary based on data type and repository, it would be good to at least evaluate some datasets that already have curated values for measurementTechniques to see how well the results overlap.
Approach:

[x] Identify records which have measurementTechnique values from the following repositories (@DylanWelzel since you've already done this, can you send @ZubairQazi the list of record ids?

[x] NCBI GEO
[x] LINCS
[x] REFRAMEDB

[ ] Randomly select 25 records from the measurementTechnique-containing subset of each of the above repositories
[ ] Run the ChatGPT measurementTechnique prompt (providing only the name and description) for each of the 75 records (25 per repo)
[ ] Confirm presence/absence of the measurementTechnique values for each record in the predictions by ChatGPT

Issue Discussion
No response
Please select the type of metadata improvement

[ ] Standardization (normalizing free text to an ontology)
[X] Augmentation (adding values for metadata fields missing values)
[ ] Clean up (addressing redundancy or messy metadata)
[ ] Structure (changing the structuring of the metadata to support front end UI features)

Meta URL
No response
Related WBS task
https://github.com/NIAID-Data-Ecosystem/nde-roadmap/issues/13
For internal use only. Assignee, please select the status of this issue

[ ] Not yet started
[ ] In progress
[ ] Blocked
[ ] Will not address

Status Description
No response
Request status check list

[ ] This metadata improvement has yet to be discussed between NIAID, Scripps, Leidos
[X] This metadata improvement does not need to be discussed between NIAID, Scripps, Leidos
[ ] This metadata improvement has been discussed/reported between NIAID, Scripps, Leidos
[ ] This metadata improvement has been implemented locally to generate data for review
[ ] This metadata improvement has been implemented on Dev
[ ] This metadata improvement has been implemented on Dev and the results have been reviewed and approved for staging
[ ] This metadata improvement has been implemented on Staging
[ ] This page/documentation/change has been approved for Production
[ ] This page/documentation/change has been implemented on Production

ChatGPT predictions using the measurement technique prompt:
https://docs.google.com/spreadsheets/d/1jkhidFmsp0f_yL8S5wpZ-oBA-eLhQQmESQEq4Lrhx3M/edit#gid=1310822148

@ZubairQazi based on the weaknesses of the Text2Term pipeline used for matching terms to ontology terms, and preliminary evaluations of the ChatGPT predictions, we need to reduce the number of generic "process" terms that ChatGPT is tacking onto various activities. Can you see if you can use prompt engineering to have ChatGPT produce similar results, minus the generic 'process' terms? E.g. Instead of giving "PCR testing", it would give "PCR". Instead of "Microscopy diagnosis", it would give "Microscopy". IF the term is "Survey" or "Diagnosis" or "Testing" alone, that's fine -- it's when these types of terms are unnecessarily added to other terms that it's messing with the downstream mappings.


batched nms not working properly?

above is the output of the model predicting only 1 class. Given that NMS with iou_threshold=0.5 is applied when outputing the detected bboxes.
top_detection_idx = batched_nms(boxes, scores, classes, iou_threshold=0.5)
it looks like the nms was not applied unless I am missing something?

haven't seen any other issues about this so chances are there is something off in your setup? could always try reverting to the old NMS that was in here in early commits, or pulling a soft-nms from somewhere else

@hamadichihaoui did you figure out why? I'm observing similar things, and seems like latest version is giving different/lower result than the version that kaggle kernel used (im closely following the kernels setup)

Hi @hamadichihaoui ,
Have you written the code to output the images with labels and can you share the code for outputing the images?


Add support for haplotag reads

init
haplotag support
haplotag support

Adds support for haplotag barcodes (https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>688v2 https://github.com/evolgenomics/haplotagging)
Haplotag barcodes take the form 'AxxCxxBxxDxx' where 'xx' are numbers in the range [01 - 96], and are placed in BX tags
The barcodes are encoded into uint32_t by 'AaaCccBbbDdd' -> (aa << 24) | (cc << 16) | (bb << 8) | (dd)
Adds:
-p option to ema count for haplotag mode, only outputs *.ema-ncnt in this mode
-p option to ema preproc for haplotag mode, no error correction is performed in this mode (haplotag barcodes are pre-corrected)
can output in BX format or ema fastq format
"haptag" option for platform (-p) to ema align, can process standard fastq format with BX tags or ema fastq format

Will this PR see any integration into EMA? It has tremendous value in increasing the adoption of Haplotagging

@EdHarry how does this modification handle missing barcodes 00, such as A00B12C33D14?

@arshajii I compiled the latest version and a few things pop up immediately:

ema count does not recognize the -p flag

$ ./interleave.sh file1.R1.fq.gz file2.R2.fq.gz  | ../ema/ema count -p -w whitelist.txt  -o ematest

count: invalid option -- 'p'
usage: ../ema/ema <count|preproc|align|help> [options]

Docstrings from --help dont list -p as an option for count or preproc
Docstring from --help for align does not list haplotag as an option

Another small note, sort of unrelated, is that the docstring for align is missing a newline character before -t threads

@EdHarry What do the GenerateAllHaplotagBC and GenerateAllHaplotagBC_Field functions do? I'm trying to understand the logic, but lack C++ literacy. My hope is to make the parsing sections you wrote generalizable for the different emerging haplotagging barcoding protocols.

Hi @pdimens, I haven't had too much time to look into this the past few days, but based on some of your messages here are a couple observations/clarifications:

Again I'm not too familiar with haplotag barcodes and all the datatypes involved, but it appears that GenerateAllHaplotagBC[_field] is just zeroing out all possible haplotag encodings in the counts map. The 4 for-loops iterate over {1, 2, ..., 96} ^ 4, encode the corresponding haplotag with PackHaplotag, and then set its entry in the map to zero.
For the segfault: In the changed code, that function is only being called if is_haplotag is false (i.e. see encode_bc). I would assume this flag is not being set when mapping when it should be.

Thanks! My understanding is that GenerateAll circumvents including a whitelist, which isn't really necessary. Would you know where to make the change to prevent the segfault ?

Hi @EdHarry and @arshajii  - I'm getting the same "ema: src/util.c:54: encode_bc_default: Assertion `0' failed" error when running the EdHarry:haplotag branch of the code. Any thoughts on how to fix this?

Hi @EdHarry and @arshajii - it turns out I was running the code from @EdHarry s master branch instead of the more recent code in the haplotag branch. When I used the more recent code it worked without crashing. Would it be possible to merge the haplotag branch, since I know of at least one other person that cloned from the master branch by mistake.

@arshajii I have been using the this fork (haplotag branch) for months now without issue. May this be merged into EMA?

@arshajii I would like to host harpy on bioconda, however I cannot do so without these haplotag changes being incorporated into a new release of ema and the package recipe being updated on bioconda. I understand your bandwidth is limited and can take on this effort if given collaborator permissions on this repository.

Hi @pdimens -- apologies for the delays. Happy to make you a collaborator; I'll do it now. Please feel free to merge this and/or make other additions as you see fit.

Thank you @arshajii . Are you comfortable with me also updating the conda release after?

Absolutely. Appreciate your effort :) Sorry again for the slowness on my side; things have been very busy for me lately.


Update faq.yml

duplicated question "What are the onboarding and use restrictions for Dedicated HSM?"

@rkarlin
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

No Customer is allowed to onboard to Dedicated HSM if they do not have $5M USD in annual ACR and an assigned Account Manager. No Exceptions!

#sign-off

Thanks @kprunella. Can you open a PR in the private repo to change the author metadata attribute to your GitHub alias? That way, updates to your articles in the public repos will be correctly assigned to you.


Outdated with major recommended protocol change local=v6.0.0 required=v7.0.0 recommended=v7.0.0

Won't sync; geth exits with "Outdated with major recommended protocol change local=v6.0.0 required=v7.0.0 recommended=v7.0.0"... I think I followed the instructions to a T.
geth logs:
geth-1  | ERROR[07-11|13:40:42.483] Outdated with major recommended protocol change local=v6.0.0 required=v7.0.0 recommended=v7.0.0
geth-1  | ERROR[07-11|13:40:42.483] Outdated with major required protocol change local=v6.0.0 required=v7.0.0 recommended=v7.0.0
geth-1  | ERROR[07-11|13:40:42.483] Opted to halt, unprepared for protocol change required=v7.0.0 local=v6.0.0
geth-1  | INFO [07-11|13:40:42.483] HTTP server stopped                      endpoint=[::]:8545
geth-1  | INFO [07-11|13:40:42.746] HTTP server stopped                      endpoint=[::]:8546
geth-1  | INFO [07-11|13:40:42.746] HTTP server stopped                      endpoint=[::]:8551
geth-1  | INFO [07-11|13:40:42.746] IPC endpoint closed                      url=/data/geth.ipc
node-1  | t=2024-07-11T13:40:42+0000 lvl=warn msg="failed to notify engine of protocol version" err="websocket: close 1006 (abnormal closure): unexpected EOF"
node-1  | t=2024-07-11T13:40:42+0000 lvl=error msg="Outdated with major recommended protocol change" node=engine
node-1  | t=2024-07-11T13:40:42+0000 lvl=error msg="Outdated with major required protocol change" node=engine
geth-1  | INFO [07-11|13:40:42.746] Ethereum protocol stopped
geth-1  | INFO [07-11|13:40:42.746] Transaction pool stopped
geth-1  | INFO [07-11|13:40:42.748] Writing snapshot state to disk           root=b2afcb..e18328
geth-1  | INFO [07-11|13:40:42.748] Persisted trie from memory database      nodes=0 size=0.00B time="3.046µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=0 livesize=0.00B
geth-1  | INFO [07-11|13:40:42.748] Blockchain stopped

.env.mainnet:
services:
  execution: # this is Optimism's geth client
    build:
      context: .
      dockerfile: ${CLIENT}/Dockerfile
    ports:
      - "<IP_ADDRESS>:8545:8545"
      - "<IP_ADDRESS>:8546:8546"
      - 7301:6060       # metrics
    command: [ "bash", "./execution-entrypoint" ]
    volumes:
        - ${HOST_DATA_DIR}:/data
    env_file:
      - .env.mainnet
  node:
    build:              # This section added 240620
      context: .
      dockerfile: ${CLIENT}/Dockerfile
    depends_on:
      - execution
    ports:
      - "7545:8545"     # RPC
      - "9222:9222"     # P2P TCP
      - "9222:9222/udp" # P2P UDP
      - "7300:7300"     # metrics
      - "6060:6060"     # pprof
    command: [ "bash", "./op-node-entrypoint" ]
    env_file:
      - .env.mainnet

.env:
CLIENT=${CLIENT:-geth}
HOST_DATA_DIR=./${CLIENT}-data

.env.mainnet:
RETH_CHAIN=base
RETH_SEQUENCER_HTTP=https://mainnet-sequencer.base.org
OP_GETH_SEQUENCER_HTTP=https://mainnet-sequencer.base.org

# [optional] used to enable geth stats:
# OP_GETH_ETH_STATS=nodename:secret@host:port

# [required] replace with your preferred L1 (Ethereum, not Base) node RPC URL:
OP_NODE_L1_ETH_RPC=https://REDACTED

# [required] replace with your preferred L1 CL beacon endpoint:
OP_NODE_L1_BEACON=https://REDACTED

# auth secret used by op-geth engine API:
OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a

OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
OP_NODE_L2_ENGINE_RPC=ws://execution:8551
OP_NODE_LOG_LEVEL=info
OP_NODE_METRICS_ADDR=<IP_ADDRESS>
OP_NODE_METRICS_ENABLED=true
OP_NODE_METRICS_PORT=7300
OP_NODE_NETWORK=base-mainnet
OP_NODE_P2P_AGENT=base
OP_NODE_P2P_BOOTNODES=enr:-J24QNz9lbrKbN4iSmmjtnr7SjUMk4zB7f1krHZcTZx-JRKZd0kA2gjufUROD6T3sOWDVDnFJRvqBBo62zuF-hYCohOGAYiOoEyEgmlkgnY0gmlwhAPniryHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQKNVFlCxh_B-716tTs-h1vMzZkSs1FTu_OYTNjgufplG4N0Y3CCJAaDdWRwgiQG,enr:-J24QH-f1wt99sfpHy4c0QJM-NfmsIfmlLAMMcgZCUEgKG_BBYFc6FwYgaMJMQN5dsRBJApIo>
OP_NODE_P2P_LISTEN_IP=<IP_ADDRESS>
OP_NODE_P2P_LISTEN_TCP_PORT=9222
OP_NODE_P2P_LISTEN_UDP_PORT=9222
OP_NODE_RPC_ADDR=<IP_ADDRESS>
OP_NODE_RPC_PORT=8545
OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
OP_NODE_VERIFIER_L1_CONFS=4
OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true

./geth-data dir contains very recent (2 days ago) snapshot base-mainnet-full-1720420879.tar.zst
What is this change from 6.0.0 to 7.0.0? Where is my misconfiguration?

What is odd is that the logs show geth-1 and not execution-1. There was a prior installation at that exact place where it was still called geth, not execution. Could it be a docker cache / image that doesn't get fully rebuilt based on the new docker-compose.yml?


export target locally (to use library without install)

Add the EXPORT feature to build a local cryptopp-targets.cmake that can be used to import library from the build directory without installing targets.

Thanks. This is very useful.


Response object

What should we return? Should we save the file on the server and return a URL instead? Might have a look at https://kraken.io/docs/wait-callback.

Yeah.


Saved search viewer_enabled

Set client to send 'viewer_enabled=true' along with user-created saved search.
Otherwise server defaults to false, which results in user-created saved search not being visible.
Also modifies error handling of dataTables to throw via the console instead of raising an alert. All error reporting that was delivered via the alert is still intact in the console message, making a far less intrusive user experience.

[Current coverage][cc-pull] is 69.67%

Merging [#522][cc-pull] into [develop][cc-base-branch] will not change coverage

@@            develop       #522   diff @@
==========================================
  Files            37         37
  Lines          1309       1309
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            912        912
  Misses          397        397
  Partials          0          0

[][cc-pull]

Powered by Codecov. Last updated by cfb165f
[cc-base-branch]: https://codecov.io/gh/Solinea/goldstone-server/branch/develop?src=pr
[cc-pull]: https://codecov.io/gh/Solinea/goldstone-server/pull/522?src=pr


Excel Macro in Power Automate

[Enter feedback here]
I wish this page had instructions for running an excel macro on a new file using macros from the PERSONAL.xlsb file
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 56dc55a7-126d-ffea-52e2-fae25bd36780
Version Independent ID: 39c7d75e-ede0-d333-fae6-e673fee1ed60
Content: Run macros on an Excel workbook - Power Automate
Content Source: articles/desktop-flows/how-to/run-macros-excel.md
Service: power-automate
Sub-service: desktop-flow
GitHub Login: @georgiostrantzas
Microsoft Alias: v-gtrantzas

Hello @TDog77
Thank you for pointing out this issue. We are working on adding information regarding running macros stored in the PERSONAL.xlsb file and you'll be able to see the updated content soon.
Note, that you may ask technical questions in the Power Automate community where technical experts can respond to questions and suggest solutions.


[mesheryctl] Unavailabilty of such command mesheryctl version update

Current Behavior
Currently mesheryctl doesn't include any command to update globally installed mesheryctl
Desired Behavior
Request to include a feature sub-command to update globally installed mesheryctl under version command such as mesheryctl version update

Thanks, @piyushsingariya. Good First Issue label removed. Design Required issue affixed.

Here are instructions on "Creating a Functional Specification" to get you going.


Not working if ng-model is of datatype number

Successfully tested your component with model-values of type string.
But if i bind it to a model of type number the component always Shows 'Nothing selected'.
I tried it with static values like in this sample code:

                        Beratungswunsch durch Kunden

                    Beratung durch Beraterinitiative

in JavaScript:
this works: $scope["testmodel"] = "1";
this does not work: $scope["testmodel"] = 1;

Then i tried to help myself using dynamic options. I created this array in my viewmodel:
$scope.GuidanceInitiatorOptions = [
{
Id: Model.GuidanceInitiator.Customer,
DisplayName: "Beratungswunsch durch Kunden"
},
{
Id: Model.GuidanceInitiator.Analyst,
DisplayName: "Beratung durch Beraterinitiative"
},
];
and modified my html to:

{{option.DisplayName}}

But this always writes the full option-object into my ng-model "testmodel".But i only want to store the numeric value "Id"!  I tried to change the select-statement to "option.Id as options in GuidanceInitiatorOptions". But that gives exceptions in your code.
Whats the correct way to bind to the Id in this case? Looks like there is no example for this in your collection.

You need to use value expression in each option, see the example of Value Expression
In your second example, you can add a attribute value="option.Id" to nya-b-option directive

           {{option.DisplayName}}

Can we add ng-change to nya-bs-select dropdown??
If yes,please share some example

ng-change relies on the native form controls, this directive is not a native form control


Support referencing resource ids in the Terraform Provider

Is your feature request related to a problem? Please describe.
The current Terraform provider requires explicitly setting depends_on existing resources like in this example below. It also requires defining the network_name and image in the virtual machine resource as string.
resource "harvester_network" "vlan1" {
  name      = "vlan1"
  namespace = "harvester-public"

  vlan_id = 1
}

resource "harvester_image" "k3os" {
  name      = "k3os"
  namespace = "harvester-public"

  display_name = "k3os"
  source_type  = "download"
  url          = "https://github.com/rancher/k3os/releases/download/v0.20.6-k3s1r0/k3os-amd64.iso"
}

resource "harvester_virtualmachine" "k3os" {
  depends_on = [harvester_image.k3os, harvester_network.vlan1]
  name        = "k3os"

  network_interface {
    name         = "nic-1"
    network_name = "harvester-public/vlan1"
  }

  disk {
    name       = "cdrom-disk"
    type       = "cd-rom"
    size       = "10Gi"
    bus        = "sata"
    boot_order = 2

    image       = "harvester-public/k3os"
    auto_delete = true
  }
}

Describe the solution you'd like
Other Terraform providers rely on specifying resource ids for dependent objects which reduces having to build out the strings for the names and automatically handle the dependency graph.
resource "harvester_network" "vlan1" {
  name      = "vlan1"
  namespace = "harvester-public"

  vlan_id = 1
}

resource "harvester_image" "k3os" {
  name      = "k3os"
  namespace = "harvester-public"

  display_name = "k3os"
  source_type  = "download"
  url          = "https://github.com/rancher/k3os/releases/download/v0.20.6-k3s1r0/k3os-amd64.iso"
}

resource "harvester_virtualmachine" "k3os" {
  name        = "k3os"

  network_interface {
    name         = "nic-1"
    network_id = harvester_network.vlan1.id
  }

  disk {
    name       = "cdrom-disk"
    type       = "cd-rom"
    size       = "10Gi"
    bus        = "sata"
    boot_order = 2

    image_id    = harvester_image.k30s.id
    auto_delete = true
  }
}

@phillipsj
Harvester  terraform resources ID format is "namespace/name", so you can just use it like:
resource "harvester_network" "vlan1" {
  name      = "vlan1"
  namespace = "harvester-public"

  vlan_id = 1
}

resource "harvester_image" "k3os" {
  name      = "k3os"
  namespace = "harvester-public"

  display_name = "k3os"
  source_type  = "download"
  url          = "https://github.com/rancher/k3os/releases/download/v0.20.6-k3s1r0/k3os-amd64.iso"
}

resource "harvester_virtualmachine" "k3os" {
  name        = "k3os"

  network_interface {
    name         = "nic-1"
    network_name = harvester_network.vlan1.id
  }

  disk {
    name       = "cdrom-disk"
    type       = "cd-rom"
    size       = "10Gi"
    bus        = "sata"
    boot_order = 2

    image       = harvester_image.k3os.id
    auto_delete = true
  }
}

For this issue, I think we don't need test it.
@guangbochen should I close it directly?

closed, the document has been added.


[Inconsistent Behavior] Cannot click-to-source from Jupyter notebook

Issue Type: Bug
When working with Python Notebooks from VSCode, i cannot click to source code (CTRL+click or CMD+click), defining a method/class/function, like I do for the rest of Python code in VSCode IDE. As a user of VSCode IDE, i expect integrated consistency of all features of Python language this extension aims to provide.
Extension version: 2021.2.582707922
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:45:54.515Z)
OS version: Darwin x64 19.6.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30256636
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt600cf:30251589

Thanks for raising the issue @nfx. Our new Notebook Experience does support ctrl + click (and everything you expect from a normal file). You can try it out on VS Code insiders. https://code.visualstudio.com/insiders/

@DavidKutu that’s very interesting. Will try it out.

Thanks for your feedback. This issue is addressed by VS Code's native notebook support. Please see https://github.com/microsoft/vscode/issues/91987.

@DavidKutu yes, isiders build looks cooler, but the issue still persists - i've created the new one #4972 and looking forward for that one to be addressed :)
@greazer newer native notebook support is definitely a move in the right direction - kudos to the team.
btw, i'm a bit annoyed that i see Python in the bottom of every cell. if you want to get markdown switch, please make it less visible.


feat(Header): Hide header on print views

Title
Adds a media query to hide header on print views.
PR Checklist

[x] Related to Abstract designs: Link
[x] Related to JIRA ticket: DISCO-202
[x] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

Note:

[ ] Confirmed this as a global change for headers on print view with Tímea (Discovery and Navigation team designer)

Description

Merging your changes
When you are ready to merge to master and publish your changes, use the "squash and merge" button in GitHub, and follow the PR Title Guide to format your PR title and write your PR merge description.
IMPORTANT: If your PR contains breaking changes, please remember to follow the instructions for breaking changes!

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5ebbfd2c7a239b3f424cd2e3--codecademy-styleguide.netlify.appDeploy Logs

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5ebc1f0cf2f1f96ac34dc78a--codecademy-styleguide.netlify.appDeploy Logs

💯. Maybe the footer should have this too?

Good call.  I'm embarrassed to say I didn't know the footer was in here.

💯. Maybe the footer should have this too?

@JoshuaKGoldberg, noted with @judahtanthony! When/if the footer is ported to client-modules we can add the rule. Right now, that would mean adding it in the respective repos (monolith and static-sites).


add support for websocket close code; other bug fixes

[x] adds onCloseCode(...) method to WebSocket.
[x] adds close(code:) overload to WebSocket close method.
[ ] remove debug print
[x] fixes #3
[x] adds maxFrameSize param to server protocol upgrader.
[x] fixes #4
[ ] randomly generate seckey

Hey @tanner0101, you just merged a pull request, have a coin!
You now have 43 coins.


Sending Webview to Second Screen

Describe the bug
I have copied the example code and attempted to replace the second screen with a webview. I can transmit data and text can be shown properly as I used a scaffold and set the title to whatever data I sent from the primary screen to the second screen. However, I am getting an error when trying to display a webview. Not sure if this is an installation issue but I am able to load the webview on the primary page.
To Reproduce
Steps to reproduce the behavior:

Go to copy example code.
Replace the  build in second screen with:
Widget build(BuildContext context) {  return SecondaryDisplay(    callback: (argument) {      setState(() {        value = argument;      });    },    child: Scaffold(      appBar: AppBar(        title: Text("Second Screen: "+value),      ),      body: Center(        child: WebView(initialUrl: 'https://www.google.ca',),      )      // body: Center(      //   child: Text(value)      // )    )  ); }

Expected behavior
The second screen is able to display a webview.
Screenshots
Getting the following errors:
E/flutter (23367): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method create on channel flutter/platform_views) E/flutter (23367): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7) E/flutter (23367): <asynchronous suspension> E/flutter (23367): #1      AndroidViewController.create (package:flutter/src/services/platform_views.dart:748:5) E/flutter (23367): <asynchronous suspension>
Desktop (please complete the following information):

OS: [e.g. iOS] Android
Version [e.g. 22] Latest as of November 1st

Smartphone (please complete the following information):

Device: [e.g. iPhone6] Sunmi T2s
OS: [e.g. iOS8.1] Android 9.0

I have the same problem when using camera plugin in second screen.
It seem that plugin can't use in second screen.
Can someone solve this problem?

Did you solved this issue?

Hello, I am getting the same error, when I try to play a video on the second screen. Any advice on that?

Hey question, did you get this to work at all?

the video does not play at the start on the second screen, any advice?

any update?

@VNAPNIC Is it possible to get this working? Can you at least point us to right direction?

The camera cannot be previewed on the secondary screen. how to do ?


ORC-1695: Upgrade gson to 2.10.1

What changes were proposed in this pull request?
This PR aims to upgrade Gson to 2.10.1.
Why are the changes needed?
Jan 7, 2023
https://github.com/google/gson/releases/tag/gson-parent-2.10.1
Oct 25, 2022
https://github.com/google/gson/releases/tag/gson-parent-2.10
Aug 1, 2022
https://github.com/google/gson/releases/tag/gson-parent-2.9.1
How was this patch tested?
GA
Was this patch authored or co-authored using generative AI tooling?
No

Merged to main/2.0


Fixed effects std. error and p-values

It maybe my fault, but I'm not finding these statistics on the fixed effects models.
From the PanelOLS().fit() results, can see the estimated_effects dataframe.
But what about these values errors and p-values? Is this something still to be included, or am I totally missing it?

There is no inference on estimated effects.  There is no clear sensible way to get reasonable asymptotic in the usual case of large N, fixed T for fixed effects.  If you have a FE that you want inference on, and it has a small dimension relative to sample size, you can include it as a regressor and get the usual standard errors (e.g., in a large N, small T panel, you can include the time dummies as regressors).

I see. Actually, my dataset is small in all dimensions (N=4, T=16), but eventually it will grow to the usual case.
I'm finding autocorrelation on the residuals (dw test = 0.91521) even when using time effects, something I guesses was impossible. I imagined that, if the FE inference showed lack of validity, maybe I could say it's because of this.
Any idea why I'm finding this? You clearly know the subject more than I 😆


Horizontal scroll bar disappears when scrolling up text output in the interactive window

Environment data

VS Code version: 1.62.3
Jupyter Extension version (available under the Extensions sidebar): v2021.10.1101450599
Python Extension version (available under the Extensions sidebar): v2021.11.1422169775
OS (Windows | Mac | Linux distro) and version: Windows 10
Python and/or Anaconda version: Anaconda
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local

Expected behaviour
The horizontal scroll should be pinned to the bottom of the interactive window once text output is rendered
Actual behaviour
The horizontal scroll bar disappears so it's not possible to scroll up to see the text output AND scroll horizontally
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

df = pd.read_csv("longfile.csv")
df.head(200)
Run cell and show output in interactive window

Horizontal scroll bar is not present

Logs

Output for Jupyter in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

duplicate of https://github.com/microsoft/vscode/issues/143915


fix: adapt button colors when contained+inherit

[x] I have followed (at least) the PR section of the contributing guide.

co-authored: @EduardoSCosta
This PR resolve #29749

@danilo-leal @mnajdova could you guys take a look at this please?

I will take a look at this tomorrow! thanks for the fix.

Thanks for looking into this. I would probably make the background a bit lighter in light mode. Also, could you please add a regression test for this? Using the codsandbox linked in the issue can be a great start: https://codesandbox.io/s/togglecolormode-material-demo-forked-1j544?file=/demo.js You can add the fixture here: https://github.com/mui/material-ui/tree/master/test/regressions/fixtures/Button

Looks like these changes affect both light and dark modes, should this be improved in v6? @mnajdova

Good point, maybe we should focus on changing only dark mode in this PR.

Hey @siriwatknp @mnajdova @danilo-leal , I'm Jessica's friend and will be dealing with this PR for now on :) I've added the regression test based on MultilineButton and the demo you guys pointed above, hope I get it right.  I've also changed the dark mode color to darker and the light mode to lighter

Mention me for futher feedback :) Thanks!


Incorrect icon used in flow diagram

The Icon used in the image for Event Grid is actually the Even Hub icon. Event Grid icon - https://github.com/David-Summers/Azure-Design/blob/master/PNG_Azure_All/Event Grid Subscription.png

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

ID: 2f5600ab-b0c4-d463-a6c8-19e877138d6b
Version Independent ID: 5236a870-4196-c950-a0f4-99aae8d19b2e
Content: Rotation tutorial for resources with two sets of credentials
Content Source: articles/key-vault/secrets/tutorial-rotation-dual.md
Service: key-vault
Sub-service: secrets
GitHub Login: @msmbaldwin
Microsoft Alias: jalichwa

@jaganth
Thanks for your feedback! We will investigate and update as appropriate.

Thank you @jaganth. Updated.

#please-close


[CI] Enable build/test and docker release in beats-ci

What

Migrate the existing GitHub workflows to Jenkinsfile.
Build/Test for 1.15 on Ubuntu-20
Docker build and release for PRs in the internal docker-registry
Docker build and release for branches in the public docker registry.
Docker build and release for tags with the format (v*) in the public docker registry.

Why
This is now under the observability umbrella, let's use the same pattern.
Docker registry

Docker images are tag with their (branch/tag/PR name) in addition with their git commit.

$ docker pull docker.elastic.co/observability/stream:v1.2.3
$ docker pull docker.elastic.co/observability/stream:master
$ docker pull docker.elastic.co/observability-ci/stream:pr-123
$ docker pull docker.elastic.co/observability-ci/stream:0f8bdc66967d5687c92016d71b4c85f0dc138b3f

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Branch indexing

Start Time: 2021-05-14T13:21:25.127+0000

Duration: 8 min 12 sec

Commit: 0f8bdc66967d5687c92016d71b4c85f0dc138b3f

Test stats :test_tube:

Test
Results

Failed
0

Passed
2

Skipped
0

Total
2

Trends :test_tube:


Add tuned lens support

This feature branch has languished for awhile with me being the only one using it. I'm fixing up the cursed bits and merging to dev now.
PR is a draft because I still want to iron out the API & add tests.

[x] Move API to ave
[x] Finalize API enough for PR (involves twiddling with tuned lens features and visualizations till I feel like everything is as easy as it should be)
[x] Add tests

Ready for review @alexander-turner @montemac if you want to take a look at my changes :)


[Main][Task]26138416: Fix FetchKeepAliveSender send duplicated events during unload

https://github.com/microsoft/ApplicationInsights-JS/issues/2205


Icons config

Adds the ability to change icons ('⏳', '✅ ', '🐼') to other icons or text.

Great enhancement! Thanks for contributing 👍🏾👌🏾


Modal focus should be on a hidden initial element so that it doesn't always show focus

It should probably focus on a hidden element defined inside modal somewhere so that when hitting the tab key it won't be outside of the modal and be a bad experience


print() is a function in Python 3

The CLA is only required for non-trivial changes but this is a trivial change.
Discovered via #7410 @ https://travis-ci.org/openssl/openssl/jobs/442003489#L440

Sorry for the lengthy explanation, @cclauss; of course you know about print_function :-)

Actually things are so simple because this PR already works as expected on both Python 2 and on Python 3.  The future import is only required for print statements that contain a comma or that will need a parameter like end= or file=.  With just 442 days left until the end of life of Python 2, it would be a mistake to put a Python 2-only shebang line on this file.  The goal of this PR is to allow this script to run on both Python 2 and Python 3, not to force it to run on Python 2 only.  Many Linux distros now ship with Python 3 only.  We do not want to force users to install legacy Python just to run the fuzzer.

Correct.  That is why the commas are an issue because they form a tip le.

Merged, thanks!
master (83e4533a71c5c78278e9763552a5e5f1806473ee)
1.1.1  (391f76f1a5869c228e75b4435656819b4dfb43a9)