PoC opentelemetry-collector-builder

Description: Add .otelcol-builder.yaml to showcase building with opentelemetry-collector-builder
In order to build your own repo run:
GO111MODULE=on go get github.com/open-telemetry/opentelemetry-collector-builder
opentelemetry-collector-builder --config .otelcol-builder.yaml

Binary build with this PR's config: 77M, this repo main branch: 114M
NOTE: we'd need tags like (which I've pushed manually)

processor/k8sprocessor/v0.22.0-sumo
processor/cascadingfilterprocessor/v0.22.0-sumo

To include submodules.
Reference: https://github.com/open-telemetry/opentelemetry-collector-builder

This looks nice. Now, I am wondering if we can do something about the core dependencies (refer to them as packages?). We essentially make changes to filterprocessor and probabilisticprocessor there

So...
These tags are being added with make add-tag and make push-tag
As far as I can see it's not being done neither in out .circleci/config.yaml nor in upstream.
As for

... I am wondering if we can do something about the core dependencies (refer to them as packages?). We essentially make changes to filterprocessor and probabilisticprocessor there

I believe this is done by:
replaces:
  ...
  - go.opentelemetry.io/collector => github.com/SumoLogic/opentelemetry-collector v0.22.0-sumo

The problem with this, is that this is replacing the whole core and it cannot be done similarly as in contrib because core doesn't add per module tags - there are no submodules, e.g. https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/filterprocessor - mark the lack of go.mod file.
Hence we'd need to maintain the fork of core.

Thanks for checking that @pmalek-sumo !
As for the core, I am wondering if it would be possible to use the vanilla core and override with our fork-based processors.
Also, there's a fair chance that those changes will be eventually moved to upstream

I've made a small experiment and it seems it is doable, sources: https://github.com/pmalek-sumo/goreplaceexperiment

Superseeded by https://github.com/SumoLogic/opentelemetry-collector-contrib/pull/1300


Error writing configs: ('cannot represent an object', WindowsPath('C:/dev/hummingbot/logs')

Describe the bug
When creating a new strategy on Windows the following error is logged when it attempts to save
16812 - root - ERROR - Error writing configs: ('cannot represent an object', WindowsPath('C:/dev/hummingbot/logs'))
Steps To Reproduce
// A concise description of the steps to reproduce the buggy behavior:
Here are the steps to reproduce the issue (see attachments in the section below):

Open hummingbot, create a new strategy, enter parameters.
When saving error will be throw.
...

Screenshots

Release version
v1.7.0
Attachments
logs_hummingbot.log
WARNING: Do NOT publish any exchange API keys or your wallet's private key. Whoever has access to them may steal your assets!
Optional: your discord username:
j0e

Hi @lt7, Could you also please add your Hummingbot version, OS, machine type and installation type here?

Hi @lt7, Could you also please add your Hummingbot version, OS, machine type and installation type here?

v1.7.0 on Windows 11 (21H2) from source (development branch).

Hey @lt7, could you please specify steps to reproduce?
I can't reproduce using WSL and /mnt/c/test_instance path (latest development and master branch)
Could you please provide what terminal do you use (the app) and exact commands to reproduce?

hey @nikspz. I don't use WSL for development. I use PyCharm 2022.1.3 and get the error, or gitbash (https://gitforwindows.org/)
Steps to reproduce
1 - Pull latest development build (c:\dev\hummingbot)
2 - Fix the bitfinex bool issue mentioned in https://github.com/hummingbot/hummingbot/pull/5140 as it still exists in development branch (not a fix but you can change from bool to int so it compiles)

3 - ./clean & ./compile
4 - launch, try and create strategy, error occurs.

@lt7 We discontinued our support for windows gitbash.
We recommend to run it on WSL to run hummingbot on windows machines.
As Hummingbot is optimized for UNIX-based environments, install Windows Subsystem for Linux in order to deploy an Ubuntu environment in your Windows machine.
https://hummingbot.org/installation/source/#windows

It doesn't work with PyCharm on windows either, so it's not a gitbash issue per se.
I run HB on Ubuntu on AWS, but develop on windows and have been using this setup/configuration since v0.38 so this is a newly introduced bug, and easily reproducable and i've provided a PR so it's a bit disappointing if these sort of bugs don't get fixed.
The documentation https://hummingbot.org/developers/connectors/debug/ doesn't mention anything about WSL either, so some documentation on how to setup WSL configuration for pycharm debugging would be helpful ?

@lt7 Currently testing https://github.com/hummingbot/hummingbot/pull/5574
We will have a discussion regarding Pycharm later. Thank you very much for your feedback

Fixed with https://github.com/hummingbot/hummingbot/pull/5574


PCB

Is there any consideration to open-source the PCB shown in the README?

Hi,
I need to talk about this with the producer (Falbatech). We'll see.

I note the project is released under an MIT license. @mattdibi has contributed the schematic, someone else contributed a design for a 3d case. It seems not to be in the spirit of the project if the PCB designer has not contributed their work under the same license.
If Falbatech is unwilling to contribute the design please consider accepting an official design from someone who will provide an open source design.
The Ergodox is open source, but has not been updated in a while. The Infinity Ergodox is open source. The Altreus is open source. I think some people will chose this keyboard over others for that reason. I understand Falbatech is running a business, but I see no reason why people would not choose to purchase hardware from a business that supports open source, that spend more on printing their own PCB, unless transports costs and/or markup make that viable.

I may have worded poorly my answer, I'm sorry.
I am the designer of the PCB, the schematic, the original 3D printable case and the original prototype. Falbatech only manufactures and sells the PCBs and his cases.
I wanted to talk about this to him as a courtesy, since open-sourcing the PCB files might impact him directly.

Any news on this?

I wrote to him but he didn't answer. I'll write him again tonight, but if i don't get an answer I'll proceed with the "silent consent" rule.

PCB files uploaded.


feat: Add script to delete teams and associated data

The code changes include the addition of a new script delete-team.js that allows users to delete teams and their associated data. The script takes in one or more team IDs as command-line arguments and performs the deletion process. It uses the Prisma client to interact with the database and performs various deletion operations, including deleting the team, deleting team members, and deleting team subscriptions if applicable.

Fixes https://github.com/boxyhq/saas-starter-kit/issues/25


CI Integration and Arduino/PlatformIO description files

This merge request is splitted in 6 commits.

To make this library compatible with the Arduino/PlatformIO library managers, all source code need to be in a src subdirectory. This is also a good separation of source files and additional files.
Add extern "C" to coap.h so that it can be used in c++ code.
Add Arduino and PlatformIO library description files (json/ini formated files in the root of the repo)
Travis configuration file for continous integration. A simple arduino application is added to test/ which is build for arduino and plattformio. Gtest is used to perform actuall unit tests, but so far there is only a simple build+socket creation test added, but it is easy to expand the test coverage now.
Add travis ci status badge to the readme.
Resolve name clash. You have defined an "assert" macro, but that already exists in the assert.h system header file. I renamed all coap asserts.

For continous integration with travis to work, you have to add the travis service in the preferences of this repository :)
I very much like this library, it would be great if it is added to the platformio.org and arduino library manager.

Thank you, will integrate it / test it asap and post the status here. Ardruino support is nice and should be no problem since the "round" nature of the library.
Greetings Tobi

The changes are great and I try to apply them. I rebased your changes onto the current master and now the tests fail.
Some major changes are:

CoAP_Init signature changed
ifID got removed and we only use a SocketHandle_t

I'm not able to run the tests locally. I wish you could provide some help to fix the tests and maybe provide some manual how to run at least the basic_tests.cpp locally.
The rebased code with some efforts to fix the tests is on branch davidgraeff-rebased.
Any help to fix the tests is welcome.

I'm travelling the world and I'm in New Zealand at the moment, so can't really adapt the pull request in the near future unfortunately.

Okay since just the CI build is not working I might just disable the tests for now and rely on the build. There will be a chance that Arduino builds break in future until that gets fixed again.

Until I know how to move this Pull Request to another branch I just create a new Pull Request for branch davidgraeff-rebased

Merged in https://github.com/Lobaro/lobaro-coap/pull/5


SUGGESTION: Locally defined types

@oprogramador would you be open to either one of the following ideas?

A PR adding the types to this package by adding a file at src/index.d.ts that defines the types exported by the index file? Would be very much like the file at https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-equal-in-any-order with some improvements, many of which would come from the closed tickets to this repo.
A PR porting this package to Typescript?  We could talk about going to ESM and Chai v5 too.

In either case the @types package would also get a breaking change PR once the above was released marking the deprecation of the @types package.

Thanks for this suggestion but I'm not interested in having any TypeScript in this repo.
Generally, you can do whatever you want in a separate repo like creating a fork with TS or creating a new directory in https://github.com/DefinitelyTyped/DefinitelyTyped


Remove flamegraph from cargo deps

Remove flamegraph from cargo deps
Installing cargo flamegraph pumps an error in rust 1.70
We tried updating the rust version but it presents some regression in performance.
https://github.com/lambdaclass/cairo-vm/pull/1547
https://github.com/lambdaclass/cairo-vm/pull/1548
https://github.com/lambdaclass/cairo-vm/pull/1549
The temporal solution is to remove cargo flamegraph from the make cargo-deps command

Did you try updating the dependency? Current is 0.6.4 according to crates.io.

Did you try updating the dependency? Current is 0.6.4 according to crates.io.

The problem is that one

Did you try updating the dependency? Current is 0.6.4 according to crates.io.

Updating the dependency doesn't solve it (as the problem is that later versions use rust library features that got stabilized in higher rust versions.
Downgrading the version to 0.5.1 does work

I suggest commenting the targets rather than removing them and adding a comment indicating that they were temporarily removed due to version issues so we don't forget to restore them once we update the rust version in the future

Sure!
Done


Button Stateful Icon Mis-alignment

The icon in Button Stateful component is mis-aligned.

This appears to be a website only issue. Storybook is working dine http://design-system-react-components.herokuapp.com/?path=/story/sldsbuttonstateful--base


Installation issues: cmake failing on FindNumpy

Hi there. New Mac (M3 chip) and doing a fresh install of everything. Unfortunately I'm falling over on getting pyccl to install. I've tried a few permutations, but with the same failures:

Using python3.12 installed via the official python dmg file (located in /Library/Frameworks/Python.frameworks)
Using python3.11 installed via macports (in /opt/local/bin) - this worked on a previous laptop

I've also tried in both cases installing in a venv. I've tried installing without numpy (and indeed it compiles numpy as part of the install), and with numpy explicitly installed.
The error message I get is as follows (following pip3 install pyccl):

Building wheels for collected packages: pyccl
Building wheel for pyccl (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pyccl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [171 lines of output]
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
-- No build type selected, default to Release
-- CMAKE_BUILD_TYPE: Release
-- The C compiler identification is AppleClang <IP_ADDRESS>00100
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (PkgConfig)
does not match the name of the calling package (FFTW).  This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/opt/local/share/cmake-3.24/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
cmake/Modules/FindFFTW.cmake:18 (include)
cmake/Modules/BuildFFTW.cmake:6 (find_package)
CMakeLists.txt:51 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
  -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
  -- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES)
  -- FFTW not found, downloading and compiling from source
  CMake Warning (dev) at /opt/local/share/cmake-3.24/Modules/ExternalProject.cmake:3074 (message):
    The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
    not set.  The policy's OLD behavior will be used.  When using a URL
    download, the timestamps of extracted files should preferably be that of
    the time of extraction, otherwise code that depends on the extracted
    contents might not be rebuilt if the URL changes.  The OLD behavior
    preserves the timestamps from the archive instead, but this is usually not
    what you want.  Update your project to the NEW behavior or specify the
    DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
    robustness issue.
  Call Stack (most recent call first):
    /opt/local/share/cmake-3.24/Modules/ExternalProject.cmake:4170 (_ep_add_download_command)
    cmake/Modules/BuildFFTW.cmake:11 (ExternalProject_Add)
    CMakeLists.txt:51 (include)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found GSL: /opt/local/include (found suitable version "2.7.1", minimum required is "2.1")
  -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
  -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
  -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
  -- Found SWIG: /opt/local/bin/swig (found version "4.1.1")
  -- Found PythonInterp: /Users/Shared/env/py3.12/bin/python3.12 (found suitable version "3.12.2", minimum required is "3.12.2")
  -- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib
  -- Found PythonInterp: /Users/Shared/env/py3.12/bin/python3.12 (found version "3.12.2")
  CMake Error at cmake/Modules/FindNumPy.cmake:70 (list):
    list GET given empty list
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Error at cmake/Modules/FindNumPy.cmake:71 (list):
    list GET given empty list
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Error at cmake/Modules/FindNumPy.cmake:74 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Error at cmake/Modules/FindNumPy.cmake:77 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Error at cmake/Modules/FindNumPy.cmake:81 (string):
    string sub-command REGEX, mode MATCH regex "[0-9]*" matched an empty
    string.
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Error at cmake/Modules/FindNumPy.cmake:82 (math):
    math cannot parse the expression: "(NOTFOUND * 10000) + (NOTFOUND * 100) +
    NOTFOUND": syntax error, unexpected exp_TIMES (11).
  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:9 (find_package)

  CMake Warning (dev) at /opt/local/share/cmake-3.24/Modules/UseSWIG.cmake:775 (message):
    Policy CMP0078 is not set: UseSWIG generates standard target names.  Run
    "cmake --help-policy CMP0078" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.

  Call Stack (most recent call first):
    pyccl/CMakeLists.txt:28 (swig_add_library)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at /opt/local/share/cmake-3.24/Modules/UseSWIG.cmake:617 (message):
    Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
    flag.  Run "cmake --help-policy CMP0086" for policy details.  Use the
    cmake_policy command to set the policy and suppress this warning.

  Call Stack (most recent call first):
    /opt/local/share/cmake-3.24/Modules/UseSWIG.cmake:888 (SWIG_ADD_SOURCE_TO_MODULE)
    pyccl/CMakeLists.txt:28 (swig_add_library)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-install-i_3rhrtz/pyccl_6fbd45a12fdb4f0086f462260561c8a0/build/CMakeFiles/CMakeOutput.log".
  See also "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-install-i_3rhrtz/pyccl_6fbd45a12fdb4f0086f462260561c8a0/build/CMakeFiles/CMakeError.log".
  Traceback (most recent call last):
    File "/Users/Shared/env/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/Users/Shared/env/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/Shared/env/py3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in build_wheel
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
      self.run_setup()
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 82, in <module>
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/normal/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/private/var/folders/rf/0gffwms124s2pyftslxm1nlc0000gp/T/pip-build-env-cpj4rg9h/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "<string>", line 56, in run
    File "<string>", line 22, in _compile_ccl
  Exception: Could not run CMake configuration. Make sure CMake is installed !
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyccl
Failed to build pyccl
ERROR: Could not build wheels for pyccl, which is required to install pyproject.toml-based projects

I've also tried explicitly setting:

export CC=/opt/local/bin/arm64-apple-darwin23-gcc-13.2.0
export LD_LIBRARY_PATH=/opt/local/lib/
export LDFLAGS=-L/opt/local/lib/
export CPPFLAGS=-I/opt/local/include/
to tell the code where to find macport installs. Notably it still doesn't find FFTW, even though that is install by macports, so this might indicate some other linking error.

Any help greatly appreciated: I've exhausted my know-how unfortunately...

Under certain conditions (if I run setup.py explicitly) I get the following:

...
Scanning dependencies of target ccllib_swig_compilation
[ 93%] Swig compile ccl.i for python
:3: Error: Unable to find 'python.swg
...

Check if you can import numpy in your python interpreters.

Thanks @tilmantroester, I can install with Conda, but the script requires use of namaster (which is not currently hosted on Conda in arm form as far as I can tell, but also is another project I'm struggling to install anyway...) and glass (which is only hosted on PyPi). I'm not very familiar with Conda, and I think it can be set up to mix Conda forge with PyPi so I'm willing to try, but ideally could rely on PyPi entirely.
@hsinfan1996 thanks for the suggestion: the python interpreters can all see numpy. Even running your suggestion outputs:

1.26.3
/Users/Shared/env/py3.11/lib/python3.11/site-packages/numpy/core/include
as expected

Aha, I got it. I can install directly using python setup.py install. There were only two issues:

I had installed swig using macports, but had not pip installed swig
I had to force a completely clean install.

Thanks to all who responded. One step forward...


link to near-sdk.io site in the Rust SDK section

This effort is to provide a link to the SDK Docs site so that search engines can begin indexing this site. While it's in good shape, we cannot consider it fully complete at this time. When that time comes, we can discuss reworking other parts of this page in docs.

LGTM 👍


Overlap check is not acting as intended

overlap_amount=>0.003

Server is reporting overlap for files that do not actually overlap:
For example:
existing:

start Wed, 22 Oct 2014 20:01:00 AEST +10:00,
end Wed, 22 Oct 2014 22:01:00 AEST +10:00,
duration 7200.003 seconds

new:

start 2014-10-23T00:01:00.000+10:00
end 2014-10-23T00:03:00.000+10:00
duration 7200.003

Reports overlap of 0.003, "start of new, end of existing".
Two problems:

these starts and ends do not overlap
the overlap amount is under the threshold, even if they did overlap, and should be modified.

:+1:

Overlap check works as intended, but the overlap is not being fixed.
Places to investigate:

https://github.com/QutBioacoustics/baw-server/blob/develop/lib/modules/audio_recording_overlap.rb#L241
https://github.com/QutBioacoustics/baw-server/blob/develop/app/models/audio_recording.rb#L292

Decision is to get rid of validations, and do all checks in create action. This should be fine, since audio_recordings are not modified once created (apart from via the harvester, which this will cater for).


Missing scroll sync in markdown mode

Markdown mode looks and works great (even better than in Github's Atom), still one thing missing is scroll sync.
Whenever I scroll either window the other stay still, it'll be great to have an option so preview always matches content in left window

If it's not too hard to get started with I could start looking at implementing this, as it's something I'd like to have too. :)


Cannot find module ../electron.asar/browser/init.js

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
Once I build my electron app using electron-packager, my requirement is to run it on a clean mac with no node installed. The app spawns a child process to which I used 'process.execPath' as command which is the path to the node executable bundled into electron app. But I am facing the following issue. My code looks like this:
'use strict'
 const fixPath = require('fix-path');

 let func = () => {
   fixPath();
   const child = childProcess.spawn(process.execPath, ['/src/script.js', ...someFlag arguments],  {
     detached: true,
     // stdio: 'ignore',
 });
 child.on('error', (err) => {
   console.log("\n\t\tERROR: spawn failed! (" + err + ")");
 });

 child.stderr.on('data', function(data) {
   console.log('stdout: ' +data);
 });

 child.on('exit', (code, signal) => {
   console.log(code);
   console.log(signal);
 });

 child.unref();
 }

Console output when you run electron-packager with the environment variable DEBUG=electron-packager. Please include the stack trace if one exists.
    stdout: module.js:545
    throw err;
    ^

Error: Cannot find module '/Users/testpc/Desktop/appName.app/Contents/Frameworks/appName Helper.app/Contents/Resources/electron.asar/browser/init.js'
    at Function.Module._resolveFilename (module.js:543:15)
    at Function.Module._load (module.js:473:25)
    at Function.Module.runMain (module.js:683:10)
    at startup (bootstrap_node.js:196:16)
    at bootstrap_node.js:622:3

What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager() function?
      electron-packager . appName --overwrite --electron-vesrion=2.0.4 --no-asar --platform=darwin
      --arch=x64 --icon gui/assets/icons/mac/logo.icns --out=package

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-quick-start
is a good starting point.

Sorry, I don't think this is a bug with Electron Packager, but rather a question about some behavior that happens when an Electron app is bundled. This issue tracker is for bugs with and feature requests for Packager only. Help with using Electron when packaged should be asked in one of the community-driven sites.

Well, I'm here because the Google Chat client, which uses electron underneat, is throwing this error when I try to start it (no, I don't work for Google). So clearly this is happening to mature developers with relatively mature products out in the wild.

I still don't think this is a bug in Electron Packager itself. I don't know what the Google Chat client uses to bundle and package its app.


fix: pass runtime to video service

Relates to:

Risks
Low

Background
What does this PR do?
This lets me do video generation. Without these changes the video summarization would fail on accessing runtime.cacheManager
What kind of change is this?
Bug fix

Why are we doing this? Any context or related work?
I set up eliza and was getting exception generating videos (luma)
Documentation changes needed?
none

Testing
Where should a reviewer start?
See video.ts:processVideoFromUrl function. This function requires a runtime, thus the runtime is not optional in this implementation of IVideoService
Detailed testing steps

LGTM!


Fix FileProvider Authority String to comply with Manifest declaration

 Issue by mvillegas13
Thursday Oct 20, 2016 at 15:31 GMT
Originally opened as https://github.com/android/android-CommitContentSampleIME/pull/1

Discrepancy between Manifest and ImageKeyboard file provider Authority string creates a null pointer exception in ImageKeyboard line 97 every time the keyboard is used.

mvillegas13 included the following code: https://github.com/android/android-CommitContentSampleIME/pull/1/commits

 Comment by googlebot
Thursday Oct 20, 2016 at 15:31 GMT

Thanks for your pull request.  It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify.  Thanks.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address.  Check your existing CLA data and verify that your email is set on your git commits.
If you signed the CLA as a corporation, please let us know the company's name.

 Comment by mvillegas13
Thursday Oct 20, 2016 at 17:57 GMT

CLA signed


Usage data response is not filtered by date range.

A call to api/vi/userdata.json returns a response usage data which is filtered by fromdate and todate.

It does filter though if you pass the query Params, as with the front end code that does this. If you don't pass a date range it currently returns all results, which is probably bad/wrong.

Perhaps the default with no query Params should be the previous 30 days.

How should it work with a request by super user?

I see that there are two auth backends for user authentication.
I think there is an issue in frontend which doesn't send a request without username in params when the login user is super user. So it returns all userdata according the current api module.

The default behaviour should always be to return the values for the current user unless a username is passed I think. The permissions let a SU add the username to the URL to get someone else's usage, so if the user is a super user and no user is specified it should probably only return their own (non existent, most likely) data.

@andrewyager It looks like working as intended except for returning all usage data when login is SU and param is not passed. Maybe I was confused with current user and username in params.
So I am doing a minor fix to return their own data when it is SU.
But I think returning all data for SU when user name is not pass is also appropriate behaviour either.
What do you think? Should I make a pull request for this?


Error a long task

I start a long task using a framework PlayWright
ERROR:saq:Error processing job Job<function=fgis, kwargs={'cmd': 'parse', 'cn': '67:17:0010333:59'}, queue=fgis, id=saq:job:fgis:57646e99-7bcd-11ed-b618-2d9cfaea7267, scheduled=0, progress=0.0, start_ms=23, attempts=1, status=active, meta={}>
Traceback (most recent call last):
  File "/root/playwright/saq_srv.py", line 18, in fgis
    return await w.job(cmd, **kvargs)
  File "/root/playwright/rosreestr/fgis/worker.py", line 51, in job
    self.current = await self.search.cadnum(cn, regions[cn[:2]])
  File "/root/playwright/rosreestr/fgis/_page/search.py", line 14, in cadnum
    await page.locator(".v-filterselect-input").first.type(region, delay=100)
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 15250, in type
    await self._impl_obj.type(
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 558, in type
    return await self._frame.type(
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 710, in type
    await self._channel.send("type", locals_to_params(locals()))
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 44, in send
    return await self._connection.wrap_api_call(
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 419, in wrap_api_call
    return await cb()
  File "/root/playwright/.pw/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 70, in inner_send
    done, _ = await asyncio.wait(
  File "/usr/lib/python3.10/asyncio/tasks.py", line 384, in wait
    return await _wait(fs, timeout, return_when, loop)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 491, in _wait
    await waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/playwright/.pw/lib/python3.10/site-packages/saq/worker.py", line 247, in process
    result = await asyncio.wait_for(task, job.timeout)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

the default timeout is 10 seconds, you can set this to be much longer or even infinite https://github.com/tobymao/saq/blob/master/saq/job.py#L65

Something timeout is not working
print(await queue.enqueue('fgis', cmd = 'parse', cn = '67:17:0010333:59', timeout=0) )
...
Job<function=fgis, kwargs={'cmd': 'parse', 'cn': '67:17:0010333:59'}, queue=fgis, id=saq:job:fgis:e44ddb81-7c3d-11ed-b618-2d9cfaea7267, scheduled=0, progress=0.0, attempts=0, status=queued, meta={}>

can you try commit 06e0b65?


additional sleep time after powering up DHTxx

Datasheet states:
"When power is supplied to the sensor, do not send any instruction to the sensor in within one second in order to pass the unstable status."
So after poweing up the sensor using the powerPin wait an additional 800ms to stay within specs

Hi Allyourcodearebelongtous.
Where di you get this spec ?
The only thing I found out was  2 seconds!  But in reality mine never had problem with 100ms.

Hi Daniel,

sorry for being late...

Infos can be found in the datasheet https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf

Power and Pin

DHT11’s power supply is 3-5.5V DC. When power is supplied to the sensor, do not send any instruction to the sensor in within one second in order to pass the unstable status. One capacitor valued 100nF can be added between VDD and GND for power filtering.

But you are right, it worked with the shorter timeout as well.

Cheers,
Hampf

Gesendet: Freitag, 09. April 2021 um 16:25 Uhr
Von: "Daniel Perron" @.>
An: "danjperron/PicoDHT22" @.>
Cc: "Hampf" @.>, "Author" @.>
Betreff: Re: [danjperron/PicoDHT22] additional sleep time after powering up DHTxx (#2)

Hi Allyourcodearebelongtous.
Where di you get this spec ?
The only thing I found out was 2 seconds! But in reality mine never had problem with 100ms.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Refactoring

What does this change?

Replace FutureProvider to Provider
Use CachedNetworkImage
Add font

What is the value of this and can you measure success?

Pass CI

Codecov Report

Merging #40 (979c18e) into master (bd1d7c4) will increase coverage by 0.24%.
The diff coverage is 94.33%.

@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
+ Coverage   53.36%   53.61%   +0.24%
==========================================
  Files          33       36       +3
  Lines         461      457       -4
==========================================
- Hits          246      245       -1
+ Misses        215      212       -3

Impacted Files
Coverage Δ

lib/constants.dart
66.66% <ø> (ø)

lib/data/repository/theme_repository_impl.dart
100.00% <ø> (ø)

lib/gen/assets.gen.dart
37.50% <ø> (ø)

lib/gen/fonts.gen.dart
0.00% <0.00%> (ø)

lib/ui/app_change_notifier.dart
0.00% <ø> (ø)

lib/ui/component/network_image.dart
50.00% <50.00%> (ø)

lib/app.dart
81.81% <100.00%> (-1.52%)
:arrow_down:

lib/data/app_error.dart
87.50% <100.00%> (ø)

lib/data/local/app_shared_preferences.dart
100.00% <100.00%> (ø)

lib/data/local/theme_data_source_impl.dart
100.00% <100.00%> (ø)

... and 13 more

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 bd1d7c4...979c18e. Read the comment docs.


Receive with children fails without cache

Given the example below, the receive fails with:
Could not find the referenced child object of id {whatever the id is} in the given read transport: SQLite
Interestingly if the child_count is set to 0 the receive succeeds.
from typing import List
from specklepy.api.wrapper import StreamWrapper
from specklepy.objects import Base
from specklepy.api import operations
import string
import random

class Sub(Base):
    bar: List[str]

def random_string():
    letters = string.ascii_lowercase
    return "".join(random.choice(letters) for _ in range(10))

def create_object(child_count: int) -> Base:
    foo = Base()
    for i in range(child_count):
        stuff = random_string()
        foo[f"@child_{i}"] = Sub(bar=["asdf", "bar", i, stuff])
    return foo

if __name__ == "__main__":

    stream_url = "{your test stream url}"

    child_count = 10
    foo = create_object(child_count)

    wrapper = StreamWrapper(stream_url)
    transport = wrapper.get_transport()

    hash = operations.send(base=foo, transports=[transport], use_default_cache=False)

    rec = operations.receive(hash, transport)
    print(rec)

After pulling the latest version of the main branch, the issue is resolved.


docstring-code-line-length = "dynamic" not Working Correctly

Hey. I found another instance where docstring-code-line-length = "dynamic" is not corking correctly. I've already seen https://github.com/astral-sh/ruff/issues/13358, but the fix for that apparently is not sufficient for the following example:
"""This is a module docstring

Example:
    .. code-block:: python

        SomeClass(long_param_name_1="long_param_value_1", a_very_long_param_name_2="long_param_value_2")
"""

class SampleClass:
    """This is a class docstring

    Example:
        .. code-block:: python

            SomeClass(
                long_param_name_1="long_param_value_1", a_very_long_param_name_2="long_param_value_2"
            )
    """

Output:
(.venv313) ~\PycharmProjects\chango git:[section-note]
ruff --version
ruff 0.8.3
(.venv313) ~\PycharmProjects\chango git:[section-note]
ruff format foo.py --line-length 99
1 file left unchanged
(.venv313) ~\PycharmProjects\chango git:[section-note]
ruff check foo.py --line-length 99
foo.py:7:100: E501 Line too long (104 > 99)
  |
5 |     .. code-block:: python
6 |
7 |         SomeClass(long_param_name_1="long_param_value_1", a_very_long_param_name_2="long_param_value_2")
  |                                                                                ^^^^^ E501
8 | """
  |

foo.py:18:100: E501 Line too long (101 > 99)
   |
17 |             SomeClass(
18 |                 long_param_name_1="long_param_value_1", a_very_long_param_name_2="long_param_value_2"
   |                                                                                ^^ E501
19 |             )
20 |     """
   |

Found 2 errors.

Unfortunately, I don't know enough about rust to dig into this myself.
Thanks for the great tool, btw ❤

Hi.
Can you tell me more about what settings you're using (line lengths, preview mode?).

Ah, damn, I forgot the --isolated … But Apparently you can't set docstring-code-format via the command line, so I reduced my config to this minimal set:
[tool.ruff]
line-length = 99

[tool.ruff.lint]
select = ["E501"]

[tool.ruff.format]
docstring-code-format = true

Sorry, should have thought of that

No worries and thanks for the details. I can reproduce your problem when format.preview = false. This makes sense to me because the fix for #13358 hasn't been promoted to the stable style yet, because it can change the formatting of existing code.
Can you try setting tool.ruff.format.preview = true but be careful to have a backup of your code (e.g. commit all your changes) because the preview style has a few experimental formattings that you might not like. Or you can try it in our Playground (here with preview = true).
You can subscribe to #13371 to be notified when we promote the fix to stable. We plan to do so in early January.

Awesome, thanks for the explanation! I'll close, then :)


Feature/issue 1565 sparse multiply

Summary:
Add sparse matrix by vector multiplication function into Stan language with tests nd doc.
Intended Effect:
Allow faster sparse multiplies with less memory.
How to Verify:
Unit tests for model compilation.  Rea doc.
Unit tests and doc already in stan-dev/math to support this.
Side Effects:
None.
Documentation:
Yes, new chapter to manual.
Reviewer Suggestions:
anyone.

New unit tests I added for function signatures are parsing but failing to compile in the integration tests.

I pushed some tweaks to the doc but it is still not going to compile. The csr_extract_v.hpp in math has the signature
csr_extract_v(const SparseMatrix<T, RowMajor>& A)

and there is no SparseMatrix in the Stan language. In other words, if you pass it a dense matrix in the Stan language, it won't compile.

I haven't had a chance to look at Bob's version of the code but the
original motivation for having a sparse and dense signature for those was
to make it easier to use from interfaces without exposing the sparse ones
to Stan (yet). It makes it easier to have a consistent constructor in R via
RcppEigen...
On Sep 6, 2015 1:32 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

I pushed some tweaks to the doc but it is still not going to compile. The
csr_extract_v.hpp in math has the signature
csr_extract_v(const SparseMatrix<T, RowMajor>& A)
and there is no SparseMatrix in the Stan language. In other words, if you
pass it a dense matrix in the Stan language, it won't compile.
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138102843.

That makes sense, but the .stan files are not finding the dense matrix
version.
On Sun, Sep 6, 2015, 2:39 PM Krzysztof Sakrejda<EMAIL_ADDRESS>wrote:

I haven't had a chance to look at Bob's version of the code but the
original motivation for having a sparse and dense signature for those was
to make it easier to use from interfaces without exposing the sparse ones
to Stan (yet). It makes it easier to have a consistent constructor in R via
RcppEigen...
On Sep 6, 2015 1:32 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

I pushed some tweaks to the doc but it is still not going to compile. The
csr_extract_v.hpp in math has the signature
csr_extract_v(const SparseMatrix<T, RowMajor>& A)
and there is no SparseMatrix in the Stan language. In other words, if you
pass it a dense matrix in the Stan language, it won't compile.
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138102843.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138109479.

That's weird, before the changes I had a complete set of Stan files that
ran fine. I'll check but it won't be till Tuesday. K
On Sep 6, 2015 2:41 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

That makes sense, but the .stan files are not finding the dense matrix
version.
On Sun, Sep 6, 2015, 2:39 PM Krzysztof Sakrejda<EMAIL_ADDRESS>wrote:

I haven't had a chance to look at Bob's version of the code but the
original motivation for having a sparse and dense signature for those was
to make it easier to use from interfaces without exposing the sparse ones
to Stan (yet). It makes it easier to have a consistent constructor in R
via
RcppEigen...
On Sep 6, 2015 1:32 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

I pushed some tweaks to the doc but it is still not going to compile.
The
csr_extract_v.hpp in math has the signature
csr_extract_v(const SparseMatrix<T, RowMajor>& A)
and there is no SparseMatrix in the Stan language. In other words, if
you
pass it a dense matrix in the Stan language, it won't compile.
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138102843.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138109479.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138109563.

This should pass now if lib/stan_math gets updated to stan-dev/math/develop --- it passes for me locally.

The issue was just behind on the math lib.

On Sep 6, 2015, at 6:18 PM, Krzysztof Sakrejda<EMAIL_ADDRESS>wrote:
That's weird, before the changes I had a complete set of Stan files that
ran fine. I'll check but it won't be till Tuesday. K
On Sep 6, 2015 2:41 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

That makes sense, but the .stan files are not finding the dense matrix
version.
On Sun, Sep 6, 2015, 2:39 PM Krzysztof Sakrejda<EMAIL_ADDRESS>wrote:

I haven't had a chance to look at Bob's version of the code but the
original motivation for having a sparse and dense signature for those was
to make it easier to use from interfaces without exposing the sparse ones
to Stan (yet). It makes it easier to have a consistent constructor in R
via
RcppEigen...
On Sep 6, 2015 1:32 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

I pushed some tweaks to the doc but it is still not going to compile.
The
csr_extract_v.hpp in math has the signature
csr_extract_v(const SparseMatrix<T, RowMajor>& A)
and there is no SparseMatrix in the Stan language. In other words, if
you
pass it a dense matrix in the Stan language, it won't compile.
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138102843.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138109479.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138109563.

—
Reply to this email directly or view it on GitHub.

?  This one's failing now because of inv_Phi in the integration test --- it can't find it.  Probably just a model header include issue.

How did it pass when the inv_Phi branch was merged?

I don't know... I just updated the submodule. Hopefully this will get everything to pass. Sorry you were struggling with it today.

Allright, let's merge this before it breaks again. @sakrejda Do we need something for rstan? I was thinking that a csr_extract() function that took a matrix and returned a list of w, u, and v would be nice.

Yeah. Maybe just that. For consistency I had one that used the Stan math
library extractors (pasted below).  You can take an R sparse matrix (Matrix
package) in row major format, pass it through Rcpp as an Eigen sparse
matrix without making any copies, and then use the extractors  with sparse
Eigen matrix signatures from the Stan math library.
The alternative is to make an R function that plays with the Matrix package
object slots directly (they're close to what we extract) but then we're
depending on Matrix keeping it's implementation the same. It'll probably
stay, so your choice, but I'd rather take a path that will be similar
enough in the different interfaces
Just for reference I had a function like this in rstan/R/sparse.R
extract_sparse_parts <- function(A, type='CSC') {
if (class(A) == 'matrix') {
A <- Matrix(A, sparse=TRUE)
}
if (type == 'CSR') {
A <- t(A)
}
if (class(A) == 'dgCMatrix') {
o <- .Call("extract_sparse_components",A)
} else {
stop("Argument 'x' must either be of class 'matrix' or 'dgCMatrix'.")
}
o[['type']] <- type
return(o)
}
Then in rstan/src/aaa_sparse_extractors.cpp I added:
#include <stan/math/prim/mat/fun/sparse_extractors.hpp>
#include <Rcpp.h>
#include <RcppEigen.h>
RcppExport SEXP extract_sparse_components(SEXP A) {
Eigen::SparseMatrix AA(Rcpp::as<Eigen::SparseMatrix >(A));
Eigen::Matrix<double, Eigen::Dynamic,1> w = stan::math::extract_w(AA);
std::vector ww(w.size());
for (unsigned int i=0; i < w.size(); ++i)
ww[i] = w(i);
std::vector v = stan::math::extract_v(AA);
std::vector u = stan::math::extract_u(AA);
std::vector z = stan::math::extract_z(AA);
return Rcpp::List::create(
Rcpp::Named("w") = ww,
Rcpp::Named("v") = v,
Rcpp::Named("u") = u,
Rcpp::Named("z") = z
);
}
and exposed that through init.cpp so it could be called from R.  That's
it.  Let me know if you want me to figure out what this would look like for
the current rstan (the above was vs. 2.6.2, I think).
Krzysztof
On Sep 6, 2015 11:32 PM, "bgoodri"<EMAIL_ADDRESS>wrote:

Allright, let's merge this before it breaks again. @sakrejda
https://github.com/sakrejda Do we need something for rstan? I was
thinking that a csr_extract() function that took a matrix and returned a
list of w, u, and v would be nice.
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138171531.

Just read the last two comments. Mind continuing the discussion on rstan?

Yep, good reminder that I should do issues for all the interfaces and see
if there's enough interest to expose this stuff everywhere. K
Krzysztof Sakrejda
Department of Biostatistics and Epidemiology
University of Massachusetts, Amherst
319 Morrill Science Center South
611 N. Pleasant Street
Amherst, MA 01003
work #:<PHONE_NUMBER>
email<EMAIL_ADDRESS>2015-09-08 8:02 GMT-04:00 Daniel Lee<EMAIL_ADDRESS>
Just read the last two comments. Mind continuing the discussion on rstan?
—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1605#issuecomment-138532681.


Rigged hand visualizer

Overview
Implemented a RiggedHandVisualizer that can be used to visualize a skinned mesh for hands.

Implementation is based on and has visual parity with the LeapMotion RiggedHand/RiggedFinger combi. Fixed an issue in the LeapMotionArticulatedHand where the wrong thumb metacarpal index was copied from the leapmotion data. The handmodels are a customization of the LeapMotion handmodels with a bit rounder shapes and a different material.
Cleaner handmodels may be needed, but my rigging skills are lacking.
Tested in editor with Leapmotion and on HoloLens 2.
Gifs

WMR Headset + Leap
Input Simulation

Changes
Related to #4257

@CDiaz-MS I cleaned up a little too much which caused the meshes to be empty. I reimported the models that are used by the prefabs and restored the connections. I should work now.

@CDiaz-MS Ok, replaced with FBX versions. Hopefully you will some hands now. :)

The .blend -> .fbx worked.  I am seeing the hands!

@rolandsmeenk  Added some gifs to the PR description so people can see it in action

Would be nice to have a way to easily tie this into the HandMesh bool found in the HandTracking profile.
Also, I'd love to see the distance between index and thumb used to create a visual feedback in the material to signal pinch strength.
Otherwise nice work! This is a great contribution!

Would be nice to have a way to easily tie this into the HandMesh bool found in the HandTracking profile.

Do you mean the HandMesh Prefab? I looked at adding this into the BaseHandVisualizer, but chose to not add more functionality to that and implement a separate visualizer for now. Maybe there can be a composite hand visualizer where a user can mix joint prefabs, hand mesh and a skinnedmesh to their liking.

Also, I'd love to see the distance between index and thumb used to create a visual feedback in the material to signal pinch strength.

Pinch strength visualization would be indeed be a nice feature, but I would prefer to keep that outside of this PR. I can imagine this would also be useful on the dynamic handmesh.

/azp run

Looks like this file is missing a namespace declaration:
WARNING: f:\aipmragent_work\3\s\Assets\MRTK\SDK\Experimental\RiggedHandVisualizer\RiggedHandVisualizer.cs is missing a
namespace declaration (i.e. missing namespace Microsoft.MixedReality.Toolkit.*

/azp run

Ok, I'll cook something up

/azp run

@rolandsmeenk Looks like docs validation did not pass, there is an invalid file link in the documentation
[20-06-09 10:40:15.769]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save](Assets/MRTK/SDK/Experimental/RiggedHandVisualizer/README_RiggedHandVisualizer.md#L15)Invalid file link:(~/Assets/MRTK/Examples/Experimental/RiggedHandVisualizer/Scenes).

I do not understand exactly why this goes wrong. I moved the example scene into a separate folder to be in lign with the other examples. The documentation is linking to that scene folder with a relative path and that works in my branch. It's not really a file link, but a link to the folder that contains the example.

/azp run

@rolandsmeenk Unfortunately we cannot merge the hand models used in this PR because they belong to Ultraleap.  Can you try using the existing hand models in MRTK from this PR:
https://github.com/microsoft/MixedRealityToolkit-Unity/pull/6943/files

@CDiaz-MS I tried the handcoach hands before, but they are rigged a bit differently and the results do not look good. I was thinking of extracting a handmesh from HoloLens 2 and trying to rig, but that is still WIP.

@rolandsmeenk - This is great work. Instead of UltraLeap/LeapMotion Sensors, Would the RiggedHandVisualizer.cs work with the the HandTracking data from Hololens-2?

@rolandsmeenk Tested this out and I cannot see the new hands.  I saw that you removed the modified leap motion rigged hands, and you mentioned that there should be rigged hands based on the MRTK hand coach models.  Are the new rigged hands missing?

@CDiaz-MS Forgot to check in the adjusted hand models.

@isrg-marvel Yes, this works with the HoloLens 2 too. This is an alternative for the BaseHandVisualizer based hand visualization.

@rolandsmeenk I cannot see the left hand when I test this with leap in editor.  The RiggedHandRight prefab does not have a runtime animation controller while the left does

@CDiaz-MS Mmm, from what you describe I would either expect that the "Global Left Hand Visualizer" in the  controller mapping was not set or that the prefab would not have "Update when offscreen" enabled on the SkinnedMeshRenderer. Both are not the case. I made a fresh clone, but both hands show up with LeapMotion in the editor. Did a rebase of the branch, but I did not see any issues there. Can you see the RiggedHandLeft and RiggedHandRight instances appear in the MixedRealityPlaySpace when a hand is detected by LeapMotion? In my experience I sometimes need to reenter the LeapMotion FOV to get both of my hands recognized (LM in desktop setup). Otherwise I don't know what could cause this.

/azp run

@rolandsmeenk Tested again and both of the hands are showing up for me.  I also added some updated gifs to the description with the new hand models.


New educational material.

Description
As an administrator, the system must allow me to add new learning content to the platform index.
Acceptance criteria

The administrator menu must allow entering new educational material.
The materials entered must have among the information, its type of content, its theme and its source.

As and administrator we tried to put new educational material (resources) in the DB

we create a new administrator menu for the eduacational resources
now the administrator can create new resources and put the: Type of content, theme and source


hubot foursquare someuser as 12345 not saving

I think the implementation of hubot-brain is likely outdated.

Not writing to the brain at all (new issue)
Not persisting between restarts while other Redis-backed services have no issue

Turns out the trouble was how the regex was capturing the values. It was always storing them as foursquare or swarm instead of the name.


propose new faster hopefully method of counting score

@jakubczakon @apyskir We should merge it to the dev-solution-5 branch.

I created also a PR to dev-solution-5. Choose the PR you want to merge :-)

@apyskir merged to dev-solution-5


[Codelab Issue] Testing Codelab 5.#, Step # - Issue description

The first function is missing the parenthesis after in the function declaration:
At the moment it is :
@Test
fun getActiveAndCompletedStats_noCompleted_returnsHundredZero {
Should be:
@Test
fun getActiveAndCompletedStats_noCompleted_returnsHundredZero**()** {

Fixed in next release thanks


[INFRA] Reduce size of TFLEARN models for brain extraction

It investigates ways to address #52 to optimize model size to be able to publish pymialsrtk to PyPi,
Code contained in https://nbviewer.jupyter.org/github/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/blob/52_tflearn_model_size/notebooks/optimize_tensorflow_checkpoint.ipynb.
However, it seems as we rely on tflearn way it is impossible or very challenging to optimize models as we can with tensorflow models for serving prediction.  I do not think it is worst to dedicate time.
For more details see report in https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pull/55#issuecomment-739240468

Based on a number of discussions, it seems it is indeed challenging to save properly TFlearn models in the tensorflow SavedModel which would allow to freeze and optimize the graph.
Discussions and resources

https://github.com/tflearn/tflearn/issues/964#issuecomment-350717215

https://gist.github.com/morgangiraud/249505f540a5e53a48b0c1a869d370bf#file-medium-tffreeze-1-py

I made several attempts with no success until now (See results in https://nbviewer.jupyter.org/github/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/blob/52_tflearn_model_size/notebooks/optimize_tensorflow_checkpoint.ipynb).
del tf.get_collection_ref(tf.GraphKeys.TRAIN_OPS)[:] before saving model.
It also seems tf.train.Saver() is more adapted for serving training than prediction. However, it seems TFLEARN was not developed using the cleanest tensorflow builder approach and so it explains the challenges.
This is an additional argument in direction to use only tensorflow to create all the layers which would give more control in producing optimized models for prediction (i.e. application). This adds to the first limitation in using tflearn the development of which has stopped and depends on tensorflow 1, which causes issues in compatibility as we found only a combination of packages that works only in a Python 3.6 environment.
However, I still managed to reduce both sizes from ~90MB down to ~30MB, which allows us to create packages publiable on Pypi 🍾

Hi @fffupeng!
I use an additional script to do that.
Tensorflow graph freezer
Converts Tensorflow trained models in .pb

Code adapted from:
https://gist.github.com/morgangiraud/249505f540a5e53a48b0c1a869d370bf#file-medium-tffreeze-1-py
"""

import os, argparse
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from tensorflow.python.framework import graph_util

def freeze_graph(model_folder,output_graph="frozen_model.pb"):
    # We retrieve our checkpoint fullpath
    try:
        checkpoint = tf.train.get_checkpoint_state(model_folder)
        input_checkpoint = checkpoint.model_checkpoint_path
        print("[INFO] input_checkpoint:", input_checkpoint)
    except:
        input_checkpoint = model_folder
        print("[INFO] Model folder", model_folder)

    # Before exporting our graph, we need to precise what is our output node
    # This is how TF decides what part of the Graph he has to keep and what part it can dump
    output_node_names = "FullyConnected/Softmax" # NOTE: Change here

    # We clear devices to allow TensorFlow to control on which device it will load operations
    clear_devices = True

    # We import the meta graph and retrieve a Saver
    saver = tf.train.import_meta_graph(input_checkpoint + '.meta', clear_devices=clear_devices)

    # We retrieve the protobuf graph definition
    graph = tf.get_default_graph()
    input_graph_def = graph.as_graph_def()

    # We start a session and restore the graph weights
    with tf.Session() as sess:
        saver.restore(sess, input_checkpoint)

        # We use a built-in TF helper to export variables to constants
        output_graph_def = graph_util.convert_variables_to_constants(
            sess,                        # The session is used to retrieve the weights
            input_graph_def,             # The graph_def is used to retrieve the nodes
            output_node_names.split(",") # The output node names are used to select the usefull nodes
        )

        # Finally we serialize and dump the output graph to the filesystem
        with tf.gfile.GFile(output_graph, "wb") as f:
            f.write(output_graph_def.SerializeToString())
        print("%d ops in the final graph." % len(output_graph_def.node))

        print("[INFO] output_graph:",output_graph)
        print("[INFO] all done")

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description="Tensorflow graph freezer\nConverts trained models to .pb file",
                                     prefix_chars='-')
    parser.add_argument("--mfolder", type=str, help="model folder to export")
    parser.add_argument("--ograph", type=str, help="output graph name", default="frozen_model.pb")

    args = parser.parse_args()
    print(args,"\n")

    freeze_graph(args.mfolder,args.ograph)

However, before doing model.save(...) on TFLearn i have to do
del tf.get_collection_ref(tf.GraphKeys.TRAIN_OPS)[:]
Then I call this command
 python tf_freeze.py --mfolder=<path_to_tflearn_model>
Note
* The <path_to_tflearn_model> must not have the ".data-00000-of-00001".

* The _output_node_names_ variable may change depending on your architecture. The thing is that you must reference the layer that has the softmax activation function.

However, I still managed to reduce both sizes from ~90MB down to ~30MB, which allows us to create packages publiable on Pypi 🥳
By testing on the first scan, it seems that the brain masks are exactly the same. Let's see if it passes all tests!

Seems even if checkpoints are correctly used on my local installation on MacOsX (where I regenerated the new checkpoints)
Tensorflow is not happy raising a DatatLoss error.
I do not think it is worst to dedicate more time here and I reverted changes to use the original checkpoints. By merging this PR, it will still add the notebook that makes a full report of the study for the sake of transparency, that could help future investigations if someone wish to do so.


Can't use Spark's .alias() to rename column

I would like to rename a column using .alias() instead of the pandas syntax (it's cleaner in this case), but I get the error message seen below. .toDF() works for renaming all the columns. Can we implement .alias() please?

@brookewenig
You can use spark methods like this :
from databricks import koalas
import pandas as pd

df = pd.DataFrame(
    {'a': [4, 2, 3, 4, 8, 6], 'b': [1, 2, 9, 4, 2, 4],
     'c': ["one", "three", "six", "seven", "one", "5"]},
    index=[10, 20, 30, 40, 50, 60])

ddf = koalas.from_pandas(df)

ddf = ddf._spark_select(ddf.a.alias("e"))
print(ddf.show())

+---+
|  e|
+---+
|  4|
|  2|
|  3|
|  4|
|  8|
|  6|
+---+

@garawalid I find it confusing that some Spark methods work (like .toDF), but not others.

@brookewenig
I agree it's a little bit confusing.
Some Spark methods still work like toDF and toPandas(), but methods applied to a Spark DataFrame should start with _spark_ like ddf._spark_select()
The idea behind Koalas is to create an API like Pandas. So, we expect users to use Pandas methods not Spark methods.

Hi,
If koalas is like pands, then how come the "rename" function doesn't work on koalas dataframe?
I tried to do ks_df.rename(), and I get the following error:
PandasNotImplementedError: The method pd.DataFrame.rename() is not implemented yet.

@GeorgeEatsData2018
Koalas is under development, we will add the rename method soon.
You can find implemented methods in the documentation

@GeorgeEatsData2018
Koalas is under development, we will add the rename method soon.
You can find implemented methods in the documentation

Ok, thanks for letting me know. When koalas was introduced last week, I thought everything from pandas has been implemented to koalas. I will check the koalas documentation time to time.
Also, the head() method doesnt work on koalas dataframe. I tried doing koalas_df.head(), it returns
Out[21]: <databricks.koalas.frame.DataFrame at 0x7fa065580748>
Any idea how I can display the dataframe?
Thanks,
George

@GeorgeEatsData2018  You are welcome!
If you are using Jupyter notebook, it should work. Also,  calling koalas_df will display the dataframe.

For adding alias into Koalas which only exists in Spark side, it's arguable. I think personally we should avoid adding Spark APIs into Koalas APIs but only Pandas corresponding APIs to avoid confusion and potential overhead to dev and users (see https://github.com/databricks/koalas/issues/139).
For Serise, seems working as @garawalid noted:
>>> from databricks import koalas
>>> import pandas as pd
>>>
>>> df = pd.DataFrame(
...     {'a': [4, 2, 3, 4, 8, 6], 'b': [1, 2, 9, 4, 2, 4],
...      'c': ["one", "three", "six", "seven", "one", "5"]},
...     index=[10, 20, 30, 40, 50, 60])
>>>
>>> ddf = koalas.from_pandas(df)
>>> ddf.a.alias("e")
10    4
20    2
30    3
40    4
50    8
60    6
Name: e, dtype: int64

For DataFrame, it does not exist. I will resolve this issue by adding rename into DataFrame.


[FEATURE] Opensearch 2.7.x client documentation improvements

Is your feature request related to a problem?
While I have been checking the documentation of opensearch clients for 2.7.x on Java client - OpenSearch documentation I have seen that some of the examples (eg Java client - OpenSearch documentation) are using
org.apache.hc.client5 and org.apache.hc.core5 packages, but sample program on Java client - OpenSearch documentation is done with org.apache.http. packages.
What solution would you like?
Documentation should state that I need a additional third party dependencies to run the example which uses the hc packages.
Also, It would be good if we could see a complete example on the create client part of the developer guide for each versions.
opensearch-java/USER_GUIDE.md at main · opensearch-project/opensearch-java · GitHub
What alternatives have you considered?
Do you have any additional context?
Version : OpenSearch 2.7.x
OS Forum Question Link : https://forum.opensearch.org/t/opensearch-2-7-x-client-documentation/14424
implementation ‘org.opensearch.client:opensearch-rest-client:2.7.0’
implementation ‘org.opensearch.client:opensearch-java:2.4.0’
PS: There is an extra space on documentation of gradle script (between rest-client and 2.7.0 parts)
dependencies {
implementation 'org.opensearch.client:opensearch-rest-client: 2.7.0'
implementation 'org.opensearch.client:opensearch-java:2.4.0'
}
Thanks!

I believe the documentation snippet for 2.x line includes RestClient usage for OpenSearch 3.x line, I will fix that


latest kubeclient(3.0.0) breaks this module

The README.md specifies the version of kubeclient that works which is helpful for those following the readme.

I have faced this same issue while using kubeclient 4.4.0, but I noticed that if I change the 2 references to #{klass} in lib/puppet_x/puppetlabs/kubernetes/provider.rb to Resource this module works fine:
sed -i 's/#{klass}/Resource/g' lib/puppet_x/puppetlabs/kubernetes/provider.rb
Have you faced any other issues other than this ? I am trying to decide whether to force an old version of the gem or to just continue using the module with this fix.


About the "arguments"

function a(x) {
  arguments[0] = 'hello';
  console.log(x);
}

a(); // -> undefined
a(1); // -> "hello"

arguments and x is 2-way binding, If no x, then no 2-way binding, so a() is undefined.

@zswang would you like to send a PR?

Added. Will be published soon.


[receiver/discovery] Do not allow empty receivers config value

The empty receivers field makes the discovery receiver useless except for seeing observed entities with log_endpoints=true, which is a debug feature that likely needs to be removed later. It should fail to start instead. The discovery mode automatically fills this value. This change is only applicable if users configure the discovery receiver manually.

PTAL at the failing test:
Error: invalid configuration: receivers::discovery: `receivers` must be defined and include at least one receiver entry
2024/03/31 04:11:17 main.go:89: application run finished with error: invalid configuration: receivers::discovery: `receivers` must be defined and include at least one receiver entry

    testcase.go:223:
        	Error Trace:	/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/testutils/testcase.go:223
        	            				/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/testutils/testcase.go:171
        	            				/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/testutils/testcase.go:186
        	            				/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/testutils/testcase.go:157
        	            				/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/testutils/testcase.go:264
        	            				/home/runner/work/splunk-otel-collector/splunk-otel-collector/tests/receivers/discovery/host_observer_test.go:30
        	Error:      	Received unexpected error:
        	            	failed to start container: container exited with code 1
        	Test:       	TestDiscoveryReceiverWithHostObserverProvidesEndpointLogs
Logs:
--- FAIL: TestDiscoveryReceiverWithHostObserverProvidesEndpointLogs (0.57s)

Actually, we can hold off on this until the log_endpoints is removed


Added support for the null coalescing operator ??

No one updated https://github.com/fasterthanlime/nagaqueen, did they?

@davidhesselbom  https://github.com/fasterthanlime/nagaqueen/blob/master/grammar/nagaqueen.leg#L1366
It's there!

Wait, it was added in... um. I don't know what I was thinking, this is over a year old and so is the commit in NagaQueen. Forget I said anything :P

Haha no worries, I missed the Nagaqueen.c diff too for a bit and was wondering if it was pushed before it got implemented in rock ^^

@davidhesselbom I think there is a double evaluation bug with it still, I'll take a look at it right now
(I think I naively translated a ?? b to a != null ? a : b without taking the side effects of a into account)

You did...
honk: func -> Bool { println("honk"); true }
toot := honk() ?? false

prints
honk
honk

but it should only do it once.

Also, your test includes this line:
if ((1 ?? 2 ?? 3) != 3)

which gives me the following warnings:
test.ooc: In function ‘test_rtest_load’:
test.ooc:7:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 if ((1 ?? 2 ?? 3) != 3)
                   ^
test.ooc:7:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 if ((1 ?? 2 ?? 3) != 3)
                                                       ^

Huh, interesting how the operator works with bool too, probably because I actually translate to a ? a : b, I'm not sure if even that is intended.
Translating to
a_temp : typeof(a)

... (a_temp = a, a_temp ? a_temp : b) ...

Should do the trick, grabbing a coffee and going to town :)

I don't get warnings on my test but I could see how you would if you ignore the overload
operator ?? (l, r: Int) -> Int { r }

In which case you are comparing integers to null, thus "cast from pointer to integer of different size"

Ah, yes, I did, I just took that one line from the test file. That explains it.

Should be somewhat better to use now!


String concat issue

Simple code:
short s = 1;
System.out.println(s + "2");
fails during the compilation to JS with:
Method java.lang.StringBuilder.append(S)Ljava/lang/StringBuilder; was not found
Obviously it's due to the fact that TeaVM unwraps Java 9+ concat code to StringBuilder, but we need to include that fact that there is no append(short) and append(byte) methods in StringBuilder.
I think that I can try to fix it myself, but I need a hint where to look at.

I will fix it myself. Identifying the actual place that causes a bug is 90% of work, so it was trivial to just make remaining 10%.


Write a Scala program to check special character

Description
Write a Scala program to check special character
Check if given character is a special character (not a letter or a number).
Input  : @
Output : Special Character

How to contribute

Save the solution in program/checkSpecialCharacter.scala file
Add checkSpecialCharacter.scala file in check-special-character folder

!assign


评估过程失败，npy文件不存在。

Please download the pre-extracted TSN features of YouCook2 using download_yc2_tsn_features.sh.

@Whutmc You need to change the default value of '--eval_caption_file'  in eval.py, otherwise it will find ActivityNet ae-val TSN features to do the evaluation which does not exist in your YouCook2 folder.

作者您好，很高兴你能够回复我，我已经使用 download_yc2_tsn_features.sh. 下载了 train、validation、test，训练没有问题，但运行eval.py进行评估就会报错。
------------------ 原始邮件 ------------------
发件人: "Teng @.>;
发送时间: 2022年9月3日(星期六) 凌晨0:48
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [ttengwang/PDVC] 评估过程失败，npy文件不存在。 (Issue #36)
Please download the pre-extracted TSN features of YouCook2 using download_yc2_tsn_features.sh.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Upload builds to PyPI and conda

We should upload builds to PyPI and conda to facilitate use in other projects. Builds should be tested in CI and build+upload should be done as part of a proper release process. See Payu for an example.

We could consider including test 'artifacts' with the release. This would cover the percentage of tests passing, but also the dependencies used (in case there is some issue in the future caused by changing dependencies).


Write logfiles to stdout rather than filesystem?

I am trying to use rails-latex on Heroku and am having some issues, so I would like to be able to see the logfiles. However, Heroku does not keep anything written to /app/tmp, so the only way to read this is if the log files are written to stdout so they are included in Heroku logs.
Is there a way to do this, or to write the contents of the log to screen?

I changed that part of the code to use Kernel.spawn instead of forks (gets rid of pdflatex output on stdout). To make the code simpler I removed double parsing, maybe the code works for you: https://github.com/phillipp/rails-latex/commit/d3a1ec4aa933b43535153f225e0db38130660ad8

Any updates on this? Im thinking of using this gem for a project and it would be great to see, that this feature is working.

I suggest that you could handle this yourself.
I added an exception handler with something like this:
    logger.error "Failed to create PDF..."

    log_file = e.message.scan(/\/.*\.log/).first
    if log_file && File.exists?(log_file)
        puts "--- Latex Log ---\n"
        puts File.read(log_file)
        puts "---    End    ---\n\n"
    end


configuring --with-libunbound-only causes .pc file not to be installed

Describe the bug
When you build and install just libunbound, the .pc file isn’t installed. This makes it unduly complex to link against libunbound.
To reproduce
Steps to reproduce the behavior:

Unpack Unbound 1.15.0
./configure --with-libunbound-only --prefix=$(pwd)/mybuild && make install
find mybuild | grep pc

Expected behavior
The above should show mybuild/lib/pkgconfig/libunbound.pc.
System:

Unbound version: 1.15.0
OS: Ubuntu 20
unbound -V output: n/a

Additional information
The pkg-config file does install if you omit --with-libunbound-only.

The merged fix should fix the problem. The issue is closed.


Troubleshoot "Transaction time is invalid or TTL is expired" on faucet-deploy

I finally got to running the tutorial for real instead of just reading parts of it. This is the first issue I bumped into. How to best troubleshoot this issue?
I am doing the steps of the tutorial on Ubuntu 22.04.2 and nix (Nix) 2.16.1
[real-world-pact]$ devnet-start
Starting devnet (takes about 60 seconds...)
[+] Running 6/6
 ⠿ common-node Pulled                                                                                1.1s
 ⠿ api-node Pulled                                                                                1.1s
 ⠿ api-proxy Pulled                                                                                1.2s
 ⠿ simulation-miner Pulled                                                                                1.0s
 ⠿ bootstrap-node Pulled                                                                                1.0s
 ⠿ mining-api-node Pulled                                                                                1.2s
[+] Running 4/4
 ⠿ Network devnet_default             Created                                                                                0.1s
 ⠿ Container devnet-bootstrap-node-1  Healthy                                                                                31.1s
 ⠿ Container simulation-miner         Started                                                                                31.5s
 ⠿ Container devnet-api-proxy-1       Started                                                                                31.6s
[real-world-pact]$ faucet-deploy
./01-faucet-contract/run-deploy-contract.js

-----
executing 'local' request: faucet-details.yaml
-----
Faucet account not found on local Chainweb node. Funding faucet account...

-----
executing 'send' request: fund-faucet-account.yaml
-----
Validation failed for hash "J2rtGRdjc2jD4N3_wfO9iKqyEaoMNsgg9zv82gWa6yk": Transaction time is invalid or TTL is expired
/home/x/Documenten/real-world-pact/01-faucet-contract/run-deploy-contract.js:32
    if (result.status === "success") {
               ^

TypeError: Cannot read properties of undefined (reading 'status')

@trendzetter That's odd — I wonder whether devnet has been updated since I last ran this code; when devnet updates I sometimes start to see this error (the snapshots in devnet-backups stop working).
You also see it if you're not using the backups and the block height is too low. If you start devnet and then run this locally do you see a low height (like 20-30 blocks) or do you see a couple hundred?
curl -s http://localhost:8080/chainweb/0.0/development/cut | jq '.hashes."'0'".height'

In general, "Validation failed for hash ... transaction time is invalid" errors indicate that something has gone out of sync with devnet. To resolve them I generally start devnet from scratch and let it run a couple hundred blocks and then start deploying contracts. It's very annoying and takes forever so I don't do it often.

Looks like there's now a "fat client" for devnet that doesn't require waiting for all the blocks to be mined and then snapshotting that db. An example got put up here:
https://github.com/kadena-community/getting-started
I'll need to adapt this project at some point to take advantage of that.

that "fat client" does look nice. I think I have issues with my devnet setup because some of the ports are occupied by another process. I need to run this on a different host.


Task System - Reduce Boiler Plate Jobs

There are lots of times where data comes into a top level task driver like NavigateStart that just needs to be converted into a PathfindStart for a sub task driver.
Same kind of thing when a FollowPathComplete happens and the NavigateTaskDriver grabs that and just converts it to a NavigateComplete.
We still have to write a job that does that and it's tedious. It would be nice to have something create a generic job or code-gen a way to reduce this boiler plate.

There may be a way to leverage Unity's LambdaSingleJobDescription. I've started going down the route of using it in a class outside of a system before but not far enough to check if the code gen actually works in a different context.

Here's what looks like a fairly simple example of code gen working in Unity that may be a good starting point.
https://forum.unity.com/threads/sources-included-polymorphism-in-dots-now-with-source-generators.1264616/


Fix fields and methods properties on EnumDeclaration

Fixes #47

Looks like an error in the travis job. All are actually passing.


[QUESTION] how to get number of rows in excel file

How to get the number of rows in excel file after load it  ?

``$excel=Excel::load($_FILES["file"]["tmp_name"], function($reader) {
        })->get();
        return count($excel);

As the response will be an array of objects,you will be able to get it by calling the count method.If there are multiple sheets,the case is different.
`$excel=Excel::load($_FILES["file"]["tmp_name"], function($reader) {
        })->get();
        return count($excel);`


Rendering Issue when not in dialog

Used on polymer 1.0+; It renders fine when in a dialog.
Works great:
    <paper-dialog id="dialog" modal class="paper-time-picker-dialog">
      <paper-time-picker id="timePicker"></paper-time-picker>

        <paper-button dialog-dismiss>Cancel</paper-button>
        <paper-button dialog-confirm>OK</paper-button>

    </paper-dialog>

Renders all the clock numbers on top of each other:
        <paper-time-picker id="timePicker"></paper-time-picker>

Can you give some code to reproduce this?

I'm unable to reproduce this, but I've been making a bunch of bugfixes lately. Can you check again using master?

I think paper-input interacts with paper-time-picker, because:
This works to me:
<paper-button on-tap='showDialog'>dsfs </paper-button>
<paper-dialog on-iron-overlay-closed="closing" id="dialog" modal class="paper-time-picker-dialog">
  <paper-time-picker id="timePicker" force-narrow></paper-time-picker>

    <paper-button dialog-dismiss>Cancel</paper-button>
    <paper-button dialog-confirm>OK</paper-button>

</paper-dialog>

and this not
<paper-input on-tap='showDialog' label="Input label"></paper-input>
<paper-dialog on-iron-overlay-closed="closing" id="dialog" modal class="paper-time-picker-dialog">
  <paper-time-picker id="timePicker" force-narrow></paper-time-picker>

    <paper-button dialog-dismiss>Cancel</paper-button>
    <paper-button dialog-confirm>OK</paper-button>

</paper-dialog>

The only difference is triggering node.

Same problem for me, even with paper-button:

This https://github.com/bendavis78/paper-time-picker/commit/d8ec0fb08245b43b94978f1ce6cc5bacfc09f6c4 from https://github.com/bendavis78/paper-time-picker/issues/16 solved me issue.

Thank you @xliiv , it works perfectly.
Saved my day!

What do you think about make soon a new release and close this issue ?

This should be fixed in master.


RDKTV-13125: WPEFramework timeout during shutdown

Reason for change:Due to maintenance running the task seems to be
blocked.
Test Procedure:Refer Ticket.
Risks: Low
(cherry picked from commit b8154719a21bcd3f4a64766edd93eaf4b65d81f3)

Do not merge. Dev Testing in progress.

Hi Livinsunny,
Github has a problem with the CLA status.  This is external to RDK - we don't have control of the check.  There are a few workarounds but the easiest may be to update the commit with an extra comment or other neutral change and see if it gets processed properly.  So when you are ready to merge, please try this first.  If it doesn't work, please report back (Comcast slack may be best).  I am not fully back from vacation until next week so it may take a little longer to sync with you.
Thank you,
Martin Hughes, RDK CMF Compliance Team

Can one of the admins verify this patch?

Closing older PRs. Pls resubmit to latest 2205 sprint.


On clicking on logo of the site it does not redirect to homepage and the Read manifesto link does not work

When on any page, clicking on the logo should take me to the home page but it does not. Instead only "#home" link is added.
To Reproduce

Click on the logo from any page
It does not get redirected.
Same is the case for Read Manifesto

@padmajabhol can I work on this issue?

We don't yet have a link for the manifesto part. You can work on the logo.


[Feature Request]: soil moisture calculator

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
soil moisture calculates moisture in the soil
Use Case
calculates moisture in soil
Benefits
Helpful to farmers
Add ScreenShots
This is the preview of how it works
https://github.com/user-attachments/assets/d478ebad-f478-4296-bc6e-2bd4ab237f9a
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

wanted to work on it

please assign it to me @manikumarreddyu

it is already assigned to @KapuluruBhuvaneswariVspdbct ..


Simple question

Are there any differences in jazzer_standalone.jar releases between linux, windows, macos platforms?

Indeed there are. The different releases contain platform specific libraries (dll, dylib, so) for the C++/Java interop.


Group Finder Member Lists should not show pending members

Acceptance Criteria

[ ] It should not show pending members

Context
Given that a person is viewing a groups details when they see the members then they should only see actual approved members of the group and not pending members. This is current functionality on Holtzman.
UI Screenshot or Wireframe (optional)
On Holtzman:

On Apollos:

Weird. I swear a copied and pasted the same user filtering logic from Holtzman. Guess I missed something... 😭


LINK-1412| Split name field into a separate first name and last name fields

Description

Split name field into a separate first name and last name fields in enrolments form
Show full name of the participant in the enrolments table
Fix enrolments page filter summary layout
Fix unit tests

PR to BE implementation: https://github.com/City-of-Helsinki/linkedevents/pull/655
Closes
LINK-1412
Screenshots

Codecov Report

Merging #205 (167ede7) into develop (e459a01) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #205   +/-   ##
========================================
  Coverage    99.85%   99.85%
========================================
  Files          507      507
  Lines         9467     9470    +3
  Branches      2081     2081
========================================
+ Hits          9453     9456    +3
  Misses          14       14

Files Changed
Coverage Δ

src/domain/enrolment/validation.ts
94.91% <ø> (ø)

.../domain/enrolments/filterSummary/FilterSummary.tsx
100.00% <ø> (ø)

...nrolmentFormFields/attendees/attendee/Attendee.tsx
100.00% <100.00%> (ø)

...ncelEnrolmentModal/ConfirmCancelEnrolmentModal.tsx
100.00% <100.00%> (ø)

src/domain/enrolment/utils.ts
100.00% <100.00%> (ø)

...ain/enrolments/enrolmentsTable/EnrolmentsTable.tsx
100.00% <100.00%> (ø)

src/domain/enrolments/utils.ts
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


GUACAMOLE-36: Add support for password policies

This change adds support to the database authentication backend for password policies defined within guacamole.properties which control the complexity of passwords allowed for database user accounts.
The restrictions allow for controlling:

Minimum password length
Required character classes (uppercase/lowercase, digits, symbols, etc.)
Whether the password can contain the username

The properties take the form:
# PostgreSQL properties
postgresql-user-password-min-length: 8
postgresql-user-password-prohibit-username: true
postgresql-user-password-require-multiple-case: true
postgresql-user-password-require-digit: true
postgresql-user-password-require-symbol: true

# MySQL properties
mysql-user-password-min-length: 8
mysql-user-password-prohibit-username: true
mysql-user-password-require-multiple-case: true
mysql-user-password-require-digit: true
mysql-user-password-require-symbol: true

Ok, I don't see any issues here. Everything looks alright to me.


UI - owner/member/readonly options are still presented as option when the built-in roles are locked.

**Rancher versions: Build from master
Steps to Reproduce:
Lock all the built in roles.
When trying to add members to cluster/project , owner/member/readonly options are still presented to the user. Can these options not be shown similar to the locked ones under "custom" ?

Tested with v2.0.1-rc4.
owner/member/readonly options are not presented as option when the corresponding built-in roles are locked.


Fix the vNext_yarong_417_812 branch to pass in CI.

The branch vNext_yarong_417_812 should be a start point for any other new branches.
But now it fails in CI. So the branch must be fixed and pass CI.

All test pass locally on mocked Mobile, but on CI with real Mobile some of tests failed.
The 'superbranch' brought new test files:
testLocalSeqManager.js
testLocalSeqManagerCoordinated.js
testNativeMethod.js
testPouchDBGenerator.js
testThaliManager.js
testThaliManagerCoordinated.js
testThaliPullReplicationFromNotification.js
testThaliPullReplicationFromNotificationCoordinated.js
testThaliReplicationPeerAction.js
testThaliReplicationPeerActionCoordinated.js
and big changes were made in
testThaliPeerPoolInterface.js
testthaliPeerPoolDefault.js
So I'm going to exclude some of 'bad' new files to see how will CI work.

Well, the testLocalSeqManager.js is broken for sure. It works on the Mobile mock but does not on a real Mobile.
Proofs:
Seach for the doImmediateSeqUpdate - create new seq doc in the CI [log].(https://github.com/ThaliTester/TestResults/blob/846186378976bee_Returned_setImmediate_workaround_artemjackson/thali01_motorola-Nexus 6.md)
See #1029.

Well, we can say for sure that
testLocalSeqManager.js
testLocalSeqManagerCoordinated.js
testThaliManager.js
testThaliManagerCoordinated.js
testThaliPullReplicationFromNotificationCoordinated.js
are broken.
See #1029 for more details.

It's horrible... The log shows that there is an issue with tests.
So I installed Android Studio to run test locally on Android devices because it takes an eternity to build and run tests on CI.
And I got unpredictable result: tests passed.
I can't say that CI has 'bad' devices, because these test fail on iOS devices locally.
Probably we need to disable the 'bad' test and get CI working and then fix tests one-by-one.

Oh, cool
The second tests run failed. Wunderful, at least we know that something is broken.
I got an error
09-14 10:43:52.449 30276-30328/com.test.thalitest I/jxcore-log: # 133. Make sure docs replicate
09-14 10:43:54.538 30276-30328/com.test.thalitest I/jxcore-log: DEBUG thaliReplicationPeerAction: Replication resumed
09-14 10:43:55.089 30276-30328/com.test.thalitest I/jxcore-log: DEBUG localSeqManager: Got an error trying to update seq {"onPut":true}
09-14 10:43:55.090 30276-30328/com.test.thalitest I/jxcore-log: DEBUG thaliReplicationPeerAction: Got error in update, waiting for main loop to detect and handle -   Stop Called
09-14 10:43:57.254 30276-30328/com.test.thalitest I/jxcore-log: not ok 528 failed with Error: response code was 404
09-14 10:43:57.254 30276-30328/com.test.thalitest I/jxcore-log:   ---
09-14 10:43:57.254 30276-30328/com.test.thalitest I/jxcore-log:     operator: fail
09-14 10:43:57.254 30276-30328/com.test.thalitest I/jxcore-log:   ...
09-14 10:43:57.288 30276-30328/com.test.thalitest I/jxcore-log: # teardown

So my offer about disabling some 'bad' test is still stands.

We agreed that what we will do is:

Disable all problematic tests for now
Submit a PR to vNext_yarong_417_812 that passed in CI
Then submit a PR from vNext_yarong_417_812 to vNext and get passing in CI
Then go back and fix each test one by one in vNext
Once all tests are passing on WiFi then we will go to master from vNext

We'll revisit this when we have Android WiFi only mode in some kind of decent shape.


[Error] 'id_list2' is not defined when capturing pokemon

I've got NameError: global name 'id_list2' is not defined when capturing an pokemon, here is the log of error
2016-07-24 12:20:31 [#] A Wild Zubat appeared! [CP 62] [Potential 0.76]
[2016-07-24 12:20:31] [#] IV [Stamina/Attack/Defense] = [13/11/10]
[2016-07-24 12:20:34] [x] Using Pokeball... (107 left!)
2016-07-24 12:20:35 [x] Captured Zubat! [CP 62] [IV 0.76] - Checking Release Config
Traceback (most recent call last):
  File "pokecli.py", line 203, in <module>
    main()
  File "pokecli.py", line 194, in main
    bot.take_step()
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/__init__.py", line 36, in take_step
    self.stepper.take_step()
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/stepper.py", line 67, in take_step
    self._work_at_position(position[0], position[1], position[2], True)
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/stepper.py", line 140, in _work_at_position
    self.bot.work_on_cell(cell, position, pokemon_only)
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/__init__.py", line 121, in work_on_cell
    worker.work()
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_fort_worker.py", line 30, in work
    self.stepper._walk_to(self.config.walk, *position)
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/stepper.py", line 93, in _walk_to
    alt, False)
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/stepper.py", line 140, in _work_at_position
    self.bot.work_on_cell(cell, position, pokemon_only)
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/__init__.py", line 91, in work_on_cell
    if worker.work() == -1:
  File "/Users/adhip/folgit/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 137, in work
    pokemon_to_transfer = list(Set(id_list2) - Set(id_list1))
NameError: global name 'id_list2' is not defined

and here is my release_config.json
{
	"any": {
		"release_under_cp": 400,
		"release_under_iv": 0.8,
		"cp_iv_logic": "or"
	},
	"My Pokemon": {
		"release_under_cp": 400,
		"release_under_iv": 0.8,
		"cp_iv_logic": "or"
	},
	"exceptions": {
		"always_capture": [
		    "Arcanine",
		    "Lapras",
			"Dragonite",
			"Snorlax",
			"Blastoise",
			"Moltres",
			"Articuno",
			"Zapdos",
			"Mew",
			"Mewtwo"
		]
	}
}

is there any missing config ?

fixed in commit efad5ca94df3eb16045d653cbb9b457e29a3fd3e

Run git pull to update to the latest version. This issue was fixed.

Great, Thanks


unstable unit not found

when i ran my witness, the error came, can anyone help me?

I am closing this since Tony fixed this error about two weeks ago. See https://github.com/byteball/byteballcore/commit/d6f72867a942587fab5c2e9c43d339d6a85eae22


FlowController must be successfully initialized using configureWithPaymentIntent(), configureWithSetupIntent() or configureWithIntentConfiguration() before calling presentPaymentOptions() on Android

Describe the bug
I am getting this error on Android right before the element appears, it works fine on iOS: FlowController must be successfully initialized using configureWithPaymentIntent(), configureWithSetupIntent() or configureWithIntentConfiguration() before calling presentPaymentOptions() on Android
React Native: 0.66.5
stripe-react-native: 0.33.0
gradle version: 7.5
gradle plugin version: 7.4.2
The APK file was working fine before and one day it showed this error as well
Screenshots

Is this problem solved?   update version?

this was solved. Not sure what caused the issue, just re-install node_modules and sync gradle again.

thx replay，when I  update version to 0.37.3, this was sovled. Maybe because re-install node_modules