[azure-kinect-sensor-sdk] build failure

Host Environment

OS: [Ubuntu]

To Reproduce
Steps to reproduce the behavior:
./vcpkg install azure-kinect-sensor-sdk
Failure logs
Computing installation plan...
The following packages will be built and installed:
    azure-kinect-sensor-sdk[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: azure-kinect-sensor-sdk:x64-linux
Building package azure-kinect-sensor-sdk[core]:x64-linux...
Could not locate cached archive: /home/benebot/.cache/vcpkg/archives/a9/a98e910b32ea3d3d79dd203f9f798ea7c1f8542c.zip
-- Using cached /home/benebot/vcpkg/downloads/microsoft-Azure-Kinect-Sensor-SDK-v1.4.0-alpha.0.tar.gz
-- Cleaning sources at /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/benebot/vcpkg/downloads/microsoft-Azure-Kinect-Sensor-SDK-v1.4.0-alpha.0.tar.gz
-- Applying patch fix-builds.patch
-- Applying patch disable-c4275.patch
-- Applying patch fix-dependency-imgui.patch
-- Using source at /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: /home/benebot/vcpkg/downloads/tools/cmake-3.17.2-linux/cmake-3.17.2-Linux-x86_64/bin/cmake /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean -DK4A_BUILD_DOCS=OFF -DBUILD_TOOLS=OFF -DK4A_SOURCE_LINK=OFF -DK4A_MTE_VERSION=ON -DBUILD_EXAMPLES=OFF -DWITH_TEST=OFF -DIMGUI_EXTERNAL_PATH=/home/benebot/vcpkg/installed/x64-linux/include/bindings -DCMAKE_MAKE_PROGRAM=/home/benebot/vcpkg/downloads/tools/ninja-1.10.0-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/benebot/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/benebot/vcpkg -D_VCPKG_INSTALLED_DIR=/home/benebot/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/benebot/vcpkg/packages/azure-kinect-sensor-sdk_x64-linux/debug
    Working Directory: /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/x64-linux-dbg
    Error code: 1
    See logs for more information:
      /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-out.log
      /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:309 (vcpkg_execute_required_process)
  ports/azure-kinect-sensor-sdk/portfile.cmake:24 (vcpkg_configure_cmake)
  scripts/ports.cmake:79 (include)

Error: Building package azure-kinect-sensor-sdk:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: azure-kinect-sensor-sdk:x64-linux
  Vcpkg version: 2020.06.15-unknownhash

Additionally, attach any relevant sections from the log files above.

Additional context
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:455 (_find_package):
  Could not find a package configuration file provided by "gtest" with any of
  the following names:

    gtestConfig.cmake
    gtest-config.cmake

  Add the installation prefix of "gtest" to CMAKE_PREFIX_PATH or set
  "gtest_DIR" to a directory containing one of the above files.  If "gtest"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:104 (find_package)

Please provide failure log:
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-out.log
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-err.log

config-x64-linux-dbg-out.log:
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- target architecture: x86_64
-- Performing Test CXX_FLAG_CXX11
-- Performing Test CXX_FLAG_CXX11 - Success
-- Configuring incomplete, errors occurred!
See also "/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/x64-linux-dbg/CMakeFiles/CMakeOutput.log".

config-x64-linux-dbg-err.log:
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:455 (_find_package):
Could not find a package configuration file provided by "gtest" with any of
the following names:
gtestConfig.cmake
gtest-config.cmake

Add the installation prefix of "gtest" to CMAKE_PREFIX_PATH or set
"gtest_DIR" to a directory containing one of the above files.  If "gtest"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:104 (find_package)

Could you remove gtest and rebuild azure-kinect-sensor-sdk?
Thanks.

I've tried it but it seems like not works.
benebot@benebot:~/vcpkg$ ./vcpkg remove gtest
The following packages will be removed:
gtest:x64-linux
Removing package gtest:x64-linux...
Removing package gtest:x64-linux... done
benebot@benebot:~/vcpkg$ ./vcpkg install azure-kinect-sensor-sdk
Computing installation plan...
The following packages will be built and installed:
azure-kinect-sensor-sdk[core]:x64-linux

gtest[core]:x64-linux
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Starting package 1/2: gtest:x64-linux
Building package gtest[core]:x64-linux...
Using cached binary package: /home/benebot/.cache/vcpkg/archives/a9/a9c3aad0fe70fa09435d8644c61271ffbd65452b.zip
Building package gtest[core]:x64-linux... done
Installing package gtest[core]:x64-linux...
Installing package gtest[core]:x64-linux... done
Elapsed time for package gtest:x64-linux: 56.76 ms
Starting package 2/2: azure-kinect-sensor-sdk:x64-linux
Building package azure-kinect-sensor-sdk[core]:x64-linux...
Could not locate cached archive: /home/benebot/.cache/vcpkg/archives/88/88d71ae7ba07a518719462cd9d615e8a817b583e.zip
-- Using cached /home/benebot/vcpkg/downloads/microsoft-Azure-Kinect-Sensor-SDK-v1.4.0-alpha.0.tar.gz
-- Cleaning sources at /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/benebot/vcpkg/downloads/microsoft-Azure-Kinect-Sensor-SDK-v1.4.0-alpha.0.tar.gz
-- Applying patch fix-builds.patch
-- Applying patch disable-c4275.patch
-- Applying patch fix-dependency-imgui.patch
-- Using source at /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: /home/benebot/vcpkg/downloads/tools/cmake-3.17.2-linux/cmake-3.17.2-Linux-x86_64/bin/cmake /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859.clean -DK4A_BUILD_DOCS=OFF -DBUILD_TOOLS=OFF -DK4A_SOURCE_LINK=OFF -DK4A_MTE_VERSION=ON -DBUILD_EXAMPLES=OFF -DWITH_TEST=OFF -DIMGUI_EXTERNAL_PATH=/home/benebot/vcpkg/installed/x64-linux/include/bindings -DCMAKE_MAKE_PROGRAM=/home/benebot/vcpkg/downloads/tools/ninja-1.10.0-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/benebot/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/benebot/vcpkg -D_VCPKG_INSTALLED_DIR=/home/benebot/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/benebot/vcpkg/packages/azure-kinect-sensor-sdk_x64-linux/debug
Working Directory: /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/x64-linux-dbg
Error code: 1
See logs for more information:
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-out.log
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:309 (vcpkg_execute_required_process)
ports/azure-kinect-sensor-sdk/portfile.cmake:24 (vcpkg_configure_cmake)
scripts/ports.cmake:79 (include)
Error: Building package azure-kinect-sensor-sdk:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: azure-kinect-sensor-sdk:x64-linux
Vcpkg version: 2020.06.15-unknownhash
Additionally, attach any relevant sections from the log files above.

Oh, sorry, x64-linux.

you mean it's not supported for x64-linux,right? and when will it be supported?thanks @JackBoosY

@Crazysiri Yeah, that's what I mean.

Since we don't have libuvc, and this port depends on it, I can't support it now.

where to see support list ? thanks
and how about clone from the original git and cmake and make ? do you just mean vcpkg not support it or the sdk doesn't support it.

In SOUCE_PATH\extern\libuvc\CMakeLists.txt:
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
    if (NOT TARGET uvc_static)
        set(CMAKE_BUILD_TARGET Static)
        add_subdirectory(src EXCLUDE_FROM_ALL)
    else()
        message(STATUS "uvc_static is already a target. Skipping adding it twice")
    endif()

    add_library(libuvc::libuvc ALIAS uvc_static)
    target_include_directories(uvc_static PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src/include>")
    target_include_directories(uvc_static PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src/include>")

endif()

Since this folder is a git link, vcpkg did not download it.

could I build uvc myself and put it in some folder?and where's the folder

@Crazysiri You may also need #12997, and modify SOURCE_PATH/CMakeLists.txt, change find_package(gtest to find_package(GTest.
Using command ./vcpkg install azure-kinect-sensor-sdk --editable, put uvc source to VCPKG_ROOT/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859/extern/libuvc/src.

what's the SOURCE_PATH? the azure-kinect-sensor-sdk path?

SOURCE_PATH == VCPKG_ROOT/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859

ok , I'll try.thanks!

hi, there is new errors after I do all the thing you tell me . @JackBoosY
cat /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/config-x64-linux-dbg-err.log
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LibUSB
linked by target "k4a_usb_cmd" in directory /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-30d96b3859/src/usbcommand
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a_color" links to target "libuvc::libuvc" but the target was not
found.  Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
src/color/CMakeLists.txt:17 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a_color" links to target "libjpeg-turbo::libjpeg-turbo" but the
target was not found.  Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/color/CMakeLists.txt:17 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a" links to target "libuvc::libuvc" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
Call Stack (most recent call first):
src/sdk/CMakeLists.txt:5 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a" links to target "libjpeg-turbo::libjpeg-turbo" but the target
was not found.  Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/sdk/CMakeLists.txt:5 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a" links to target "libuvc::libuvc" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
Call Stack (most recent call first):
src/sdk/CMakeLists.txt:5 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a" links to target "libjpeg-turbo::libjpeg-turbo" but the target
was not found.  Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/sdk/CMakeLists.txt:5 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a_color" links to target "libuvc::libuvc" but the target was not
found.  Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
src/color/CMakeLists.txt:17 (add_library)
CMake Error at /home/benebot/vcpkg/scripts/buildsystems/vcpkg.cmake:372 (_add_library):
Target "k4a_color" links to target "libjpeg-turbo::libjpeg-turbo" but the
target was not found.  Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/color/CMakeLists.txt:17 (add_library)
CMake Warning:
Manually-specified variables were not used by the project:
IMGUI_EXTERNAL_PATH
VCPKG_PLATFORM_TOOLSET
VCPKG_SET_CHARSET_FLAG

CMake Generate step failed.  Build files cannot be regenerated correctly.

Target "k4a_color" links to target "libuvc::libuvc" but the target was not found.
This proves that libuvc was not configure correctly.

here is the screenshots for the folder.  is it correct? what should I do  after put the source to the folder? thanks.

I think it's becuase the libuvc version is incorrect, you may need to download it using this url.

I clone git from  https://github.com/microsoft/libuvc.git
then git checkout  5fc483d596c63f1bcd36be35d512468c0b75c5f3
then put the file to the path
I get the same issues

after run './vcpkg install azure-kinect-sensor-sdk --editable' I get the same issues

I will give you a complete solution tomorrow.

For some reason libusb cannot be found, I need to fix it first (Requied by this port).

ok，thanks .

Since #13057 merged, I will continue to add this support.

Sadly, akss doesn't support latest libuvc, we need to wait for upstream fix it.
Here is modified akss and libuvc port files:
ports.zip

thanks, and Can I do something to complete this? like put  libuvc source to the folder and install it ?

@Crazysiri In the zip package, I already added libuvc as a new port. So you can unzip that and put them into VCPKG_ROOT/ports, them use ./vcpkg install azure-kinect-sensor-sdk --editable.

new error:
is it the libuvc not correct?
[8/64] /usr/bin/c++  -DARCHITECTURE_x86_64=1 -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/benebot/vcpkg/installed/x64-linux/share/inc -I/home/benebot/vcpkg/installed/x64-linux/share/pal/linux -I/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/../include -Isrc/sdk/include -isystem /home/benebot/vcpkg/installed/x64-linux/include/azureiot -isystem /home/benebot/vcpkg/installed/x64-linux/include -fPIC -Werror -Werror -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Wall -Wextra -Wno-missing-field-initializers -Werror -std=gnu++11 -MD -MT src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o -MF src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o.d -o src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o -c /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp
FAILED: src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o
/usr/bin/c++  -DARCHITECTURE_x86_64=1 -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/benebot/vcpkg/installed/x64-linux/share/inc -I/home/benebot/vcpkg/installed/x64-linux/share/pal/linux -I/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/../include -Isrc/sdk/include -isystem /home/benebot/vcpkg/installed/x64-linux/include/azureiot -isystem /home/benebot/vcpkg/installed/x64-linux/include -fPIC -Werror -Werror -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Wall -Wextra -Wno-missing-field-initializers -Werror -std=gnu++11 -MD -MT src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o -MF src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o.d -o src/color/CMakeFiles/k4a_color.dir/uvc_camerareader.cpp.o -c /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp: In member function ‘k4a_result_t UVCCameraReader::Start(uint32_t, uint32_t, float, k4a_image_format_t, void ()(k4a_result_t, k4a_capture_t, void), void*)’:
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp:111:23: error: ‘UVC_COLOR_FORMAT_NV12’ was not declared in this scope
frameFormat = UVC_COLOR_FORMAT_NV12;
^
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp: In member function ‘void UVCCameraReader::Callback(uvc_frame_t*)’:
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp:1126:44: error: ‘uvc_frame_t {aka struct uvc_frame}’ has no member named ‘metadata_bytes’
size_t bufferLeft = (size_t)frame->metadata_bytes;
^
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp:1129:89: error: ‘uvc_frame_t {aka struct uvc_frame}’ has no member named ‘metadata’
PKSCAMERA_METADATA_ITEMHEADER pItem = (PKSCAMERA_METADATA_ITEMHEADER)frame->metadata;
^
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp:1244:44: error: ‘uvc_frame_t {aka struct uvc_frame}’ has no member named ‘capture_time_finished’
uint64_t ts = (uint64_t)frame->capture_time_finished.tv_sec *<PHONE_NUMBER>;
^
/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/uvc_camerareader.cpp:1245:36: error: ‘uvc_frame_t {aka struct uvc_frame}’ has no member named ‘capture_time_finished’
ts += (uint64_t)frame->capture_time_finished.tv_nsec;
^
[9/64] /usr/bin/c++  -DARCHITECTURE_x86_64=1 -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/benebot/vcpkg/installed/x64-linux/share/inc -I/home/benebot/vcpkg/installed/x64-linux/share/pal/linux -I/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/../include -Isrc/sdk/include -isystem /home/benebot/vcpkg/installed/x64-linux/include/azureiot -isystem /home/benebot/vcpkg/installed/x64-linux/include -fPIC -Werror -Werror -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Wall -Wextra -Wno-missing-field-initializers -Werror -std=gnu++11 -MD -MT src/color/CMakeFiles/k4a_color.dir/color.cpp.o -MF src/color/CMakeFiles/k4a_color.dir/color.cpp.o.d -o src/color/CMakeFiles/k4a_color.dir/color.cpp.o -c /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/color/color.cpp
[10/64] /usr/bin/c++  -DARCHITECTURE_x86_64=1 -DEBML_STATIC_DEFINE -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/benebot/vcpkg/installed/x64-linux/share/inc -I/home/benebot/vcpkg/installed/x64-linux/share/pal/linux -I/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/../include -Isrc/sdk/include -I/home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/include -isystem /home/benebot/vcpkg/installed/x64-linux/include/azureiot -isystem /home/benebot/vcpkg/installed/x64-linux/include -fPIC -Werror -Werror -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Wall -Wextra -Wno-missing-field-initializers -Werror -std=gnu++11 -MD -MT src/record/internal/CMakeFiles/k4a_record.dir/iocallback.cpp.o -MF src/record/internal/CMakeFiles/k4a_record.dir/iocallback.cpp.o.d -o src/record/internal/CMakeFiles/k4a_record.dir/iocallback.cpp.o -c /home/benebot/vcpkg/buildtrees/azure-kinect-sensor-sdk/src/.0-alpha.0-b125ea5fc7/src/record/internal/iocallback.cpp
ninja: build stopped: subcommand failed.

@Crazysiri Yes, that's what I said "doesn't support latest libuvc".

can I use a correct version ? the version in the portfile.cmake is f3f6d8a646480fcbecc433a3a81066ddc24476e1,can I change it and ./vcpkg install libuvc --editable ? and which version support this?

I mean the correct commit id.

@Crazysiri Fine, you need to change the repo to microsoft, and set the REF to f3f6d8a646480fcbecc433a3a81066ddc24476e1.

Will this be fixed in the official version anytime soon?

@jvhoffbauer I wish that.

I see. Can I do anything to fix it?

Do I understand correctly, that the problem is that both azure-kinect-sensor-sdk and akss are requiring different versions of libuvc?

@jvhoffbauer You may need to report this issue to upstream and wait for them to support the latest libuvc.


feat(typescript): convert to typescript

Convert to typescript.
The test script has been run and passed. Also I put this generated js file in the webpack repo, replace the Tapable in the node_modules, and the test results are same as before.
Here're the questions need to be discussed:

Currently the generated js file is pointing to lib folder, which means it will be overwritten everytime we run the npm run dev command. Do we need to change it to another directory (but we have to update package.json as well)?
This PR also include the functionality to generated typing file automatically. Currently it's pointing to typings folder and I haven't include that in the PR. Do I need to include it?

For the sake of keeping this compatiable with current API, the code hasn't change to much other than using arrow functions and adding typing informations.  But as I mentioned in issue #15 , we can create documentations automatically after this.

We don't want to convert to typescript


Redesign and implement the lobby class according to user stories

Goal: [Data Modeling for Lobby] Based on our user stories from Sprint 1, the current lobby table needs more attributes (or perhaps a different way of modeling). For example, user stories mention match start times as well as the modified game features. We need to redesign and implement the Lobby class to account for these additional features.
Possible Deliverables:

ERD
Pull Request to implement new tables/classes
Documentation detailing changes

Confirmed @nugerhard 's updates to the Lobby model and added game_modification_status attribute for simple y/n type to help with advanced filtering

When trying to merge (PR #140), CI/ run-tests is failing. I attempted to resolve this by pushing migrations/0002_lobby.py, but it didn't resolve it.

Resolved the testing issue by specifying defaults for match_status, game_mod_status, and time_constraint and pushing an updated version of migrations/0002_lobby.py.
PR #140 should be good to go now; just waiting for reviews!

Closing Comment:
PR #140 has been merged and task is finished
Nat: Identified necessary attributes that needed to be added to lobby class; Edited Lobby class in models.py to include match_status, time_constraint, and lobby_created attributes
Chloe: Added game_mod_status attribute to Lobby class in models.py; Debugged PR test errors by making & committing migration and adding defaults to match_status, time_constraint, and game_mod_status attributes

Issue Score: Excellent
Comments:
Similar comments to the ones left on your PR - good work! For sprint 3, it'd be nice to see simple documentation on the changes you guys made to the model.


Update circe-core, circe-generic, ... to 0.12.2

Updates

io.circe:circe-core
io.circe:circe-generic
io.circe:circe-parser

from 0.12.1 to 0.12.2.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.circe" } ]

labels: semver-patch

Codecov Report

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

@@           Coverage Diff           @@
##           master     #160   +/-   ##
=======================================
  Coverage   61.42%   61.42%
=======================================
  Files          36       36
  Lines        1203     1203
  Branches        7        7
=======================================
  Hits          739      739
  Misses        464      464

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 3b58dad...932202f. Read the comment docs.


Bug - Total request count is shown wrong, it's exactly double of number of iterations

run your k6 script.
Observe the number of iterations on the terminal
Now go to the summary.html report
Note that Total request count is shown wrong, it's exactly double of number of iterations
In my case total iterations were 832, whereas Total request count was showing as 1664

Iterations represent how many times default function has been called which can contains more than one http request performed in defulat function.


RefNerf Predicted Normals

Hi,
Thanks a lot for this repo.
To the best of my knowledge you never actually visualize the normals, so I added some lines basically saying the normals are the weighted (by rendering weights) sum of the per-ray-sample normals, then normalized again.
       normals_deriv = (rendered_results[1]["weights"][..., None] * rendered_results[1]["normals"]).sum(1)
        normals_deriv = ref_utils.l2_normalize(normals_deriv)
        normals_pred = (rendered_results[1]["weights"][..., None] * rendered_results[1]["normals_pred"]).sum(1)
        normals_pred = ref_utils.l2_normalize(normals_pred)

What I get makes sense for the derived normals, but not for the predicted ones. They seem to be collapsing, such that the shading part of the MLP just doesn't use them and only the view direction?
Thanks in advance for any tips

@seungjooshin Could you check for this issue?

Thank you for mentioning the predicted normal issue. As you mentioned, the predicted normals of the lego scene do not used in MLP and this is why there is no performance difference between mip-nerf and ref-nerf.
In ref-nerf, the predicted normals are used for solving the noisy issue of density-based normals (derived normals). Thus, I have checked the results of other scenes in the blender dataset and shiny blender dataset as below (Left: density-based, Right: predicted).
As a result, the normals are predicted well in other scenes, constrast to lego scene. Therefore it is more reasonable to uses predicted normals, which are smoother, than density-based ones. For exceptional case of lego scene, replacing normals_to_use=normals can be a solution.
https://github.com/kakaobrain/nerf-factory/blob/31d74696afc89c23609e81d20c7c2eabc3f1c928/src/model/refnerf/model.py#L171


Chore: move set_logging out of init

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
19 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.2%) to 79.26%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

charon/cmd/command.py
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

charon/utils/logs.py
19
28.57%

Totals

Change from base Build<PHONE_NUMBER>:
-1.2%

Covered Lines:
1307

Relevant Lines:
1649

💛  - Coveralls

Ok, @ligangty, I'll merge this and fix based on it


Unknown script 'context.lua' or 'mtx-context.lua'

Hi,
First of all thank you for creating the pandoc way of generating resume in different ways. It is really helpful for me.
I gitclone your repo and followed the Read me to install ConTeXt (by installing MacTex) in MacOS.
As soon as I ran the make command, the error was thrown as follows.
Unknown script 'context.lua' or 'mtx-context.lua'
Have you had this problem or is it just some dependencies missing on my machine?

Sorry for raising this issue. I made it work as it was installation of Mactex that wasnt complete on my machine. I ran the below command
mtxrun --generate
it works now. Thank u


Fix for #48 (Colour codes included in slack message)

Fix proposal for https://github.com/KrauseFx/fastlane/issues/48
Coloured console output is preserved but message of exception passed to error block is plain.

Looks great, thanks :+1:


To transfer ElasticSearchClient information to new release during /v1/bequeath-your-data-and-die

In the Elastic search , currently we removed the forwarding PromptForBequeathingDataCausesTransferOfListOfRecords  from /v1/bequeath-your-data-and-die service. This is good as practically it is not good to transfer all the records via REST from the previous version to new version.
Can we include a mechanism to transfer the details of the ElasticSearchClient  from the oldRelease to newRelease ?
so that the configured ElasticSearchClient information and the index details from the oldRelease can be passed to the newRelease and we can access the previously stored records.
If this transfer of ElasticSearchClient from oldRelease  to newRelease via REST is not preferred.
we can try to include a script during the startup of the newRelease  to configure the “elasticsearch-client-interface-configuration” via OAM layer with the following required information ,
•	auth
•	index-alias
•	service-records-policy
Also kindly please let me know if already a procedure is planned which I overlooked in the specification and if not can we discuss regarding this subject further. Many thanks.

Can we include a mechanism to transfer the details of the ElasticSearchClient from the oldRelease to newRelease ?
Yes, such transfer of the details of the ElasticSearchClient from the oldRelease to newRelease is planned.
Transfer via REST is preferred.

Whether to schedule into AP v2.0.0 or AP v3.0.0 is undecided (v3.0.0 more likely).

Many thanks for providing your views.
Since version 1.0.0 don’t have ElasticSearchClient information stored in the CONFIG file, in version 2.0.0 there will not be much utilization if we include this mechanism. Including this in v3.0.0 should be fine.
Meanwhile , if we include any patch release for example 2.0.1, manually we can make the new version to point to the expected alias using the OAM services.

Agree with your points.

Thanks for creating the issue https://github.com/openBackhaul/ApplicationPattern/issues/435.
Closing this issue as https://github.com/openBackhaul/ApplicationPattern/issues/435 covers the required change.


makefile: add target to checkout timestamp only changes in bundle

Signed-off-by: Nitin Goyal<EMAIL_ADDRESS>

/override ci/prow/odf-operator-e2e-aws
e2e is not effected by this change.


Forum entry solved

Thanks Marco, the Forum entry worked! The issue was that a different email for the forum and the bot was used and I changed it to have the same email for both.
best, Sara the new member (ufdermuur is my git alias)

Perfect, thanks for the info :-)


aip.updated model property is not consistent with markdown front-matter

For example, look at the latest change to aip-162: https://github.com/aip-dev/google.aip.dev/commit/e487231e8e04afd005cd1cecaf94422dbdc29010
In that change the author updated the updated field on line 3 of 0162.md
But, the had no impact on the date displayed in the generated HTML.

It looks like the logic of the update property in aip.py is to look for index 0 of the changelog and fall back to the created date if there isn't a changelog.
Perhaps the order of the changelog entries is upside down? Because, the author also updated the changelong in the same change and it still looks like the logic fell back to the created time.

This seems important to fix soon. It gives the incorrect impression that the information is out of date.


[4pt]  -Display Comments pop up with selected item's details - Student B

Create a comments popup only with the top section (displaying details of the selected item)

When the popup loads, the webapp retrieves data from the selected API and shows details about the selected item.
Add event to button prepared by your teammate that will open your popup. You need to communicate with your team member to make sure that you do not block each other (most likely the easiest solution is to merge the list of items feature to the dev branch before you try to add that event).

https://github.com/Kashif-Saleem-Ghuman/JavaScript-Capstone-Project/pull/29


uninstalling yt-dlp

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2022.06.29 (update instructions) or later (specify commit)
[X] I've searched the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
since my question is called "offtopic" in dropping python 3.6 topic i have to open new topic.
how do i uninstall yt-dlp on linux mint 19 tara (which doesn't have python 3.7) and replace it by that binary file instead?
back in the day i used following two commands to install yt-dlp:
sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
has there been copied only one binary to /usr/local/bin/yt-dlp? no other files?
so do i only have to replace that yt-dlp script file by that standalone yt-dlp file in that same /usr/local/bin folder yt-dlp script used to be?
and is https://github.com/yt-dlp/yt-dlp/releases/download/2022.06.29/yt-dlp_linux that standalone executable for linux we are talking about?
btw. i already searched in readme file (https://github.com/yt-dlp/yt-dlp#readme) for the word "uninstall" but search didn't find anything. and by searching in bugtracker i only find that dropping python 3.6 topic where my questions about uninstalling are hidden and not answered because marked "offtopic".
since my question is no bug report, there is also no output to be attached. this question is only about uninstalling yt-dlp script based on no longer supported python 3.6 and replacing that by yt-dlp standalone...
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

how do i uninstall yt-dlp on linux mint 19 tara (which doesn't have python 3.7) and replace it by that binary file instead? back in the day i used following two commands to install yt-dlp: sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp sudo chmod a+rx /usr/local/bin/yt-dlp
has there been copied only one binary to /usr/local/bin/yt-dlp? no other files?

Those commands only place one file (yt-dlp) in /usr/local/bin and make it executable.

so do i only have to replace that yt-dlp script file by that standalone yt-dlp file in that same /usr/local/bin folder yt-dlp script used to be?
and is https://github.com/yt-dlp/yt-dlp/releases/download/2022.06.29/yt-dlp_linux that standalone executable for linux we are talking about?

Yes and yes. 🙂
You can rename it to just yt-dlp, if you wish.
Then usage is the same.

run yt-dlp --rm-cache-dir (I'm not sure if the standalone executable can reuse the other executable's cache, but better safe than sorry)
delete the binary in /usr/local/bin/yt-dlp
add yt-dlp-linux to that folder, and rename it to yt-dlp

3. add `yt-dlp-linux` to that folder, and rename it to `yt-dlp`

Doesn't that give problems when you want update with sudo yt-dlp U?
That's why I suggested the symlink.

3. add `yt-dlp-linux` to that folder, and rename it to `yt-dlp`

Doesn't that give problems when you want update with sudo yt-dlp U? That's why I suggested the symlink.

No, I think you can rename the executable, and theoretically yt-dlp should find the right version to update with.
I can only speak to Windows systems though, where I rename yt-dlp_min to youtube-dl for comparability's sake, and when I update it, it seems to find the right windows executable (yt_dlp_min.exe) to update with.
Though I don't see anything wrong with a symlink either. Why rename the executable when you can just create an arbitrarily named link, and leave the executable alone?

Doesn't that give problems when you want update with sudo yt-dlp -U?

No. The executable variant is determined by other factors, not by filename

I can only speak to Windows systems though, where I rename yt-dlp_min to youtube-dl for comparability's sake, and when I update it, it seems to find the right windows executable (yt_dlp_min.exe) to update with.

And does that leave your custom name youtube-dl.exe intact?

And does that leave your custom name youtube-dl.exe intact?

It does. When it updates, it keeps whatever filename I gave it.

another question: why is yt-dlp_linux that big in filesize (30mb)? on windows standalone yt-dlp.exe only takes about 14mb so linux standalone is twice as big...

another question: why is yt-dlp_linux that big in filesize (30mb)? on windows standalone yt-dlp.exe only takes about 14mb so linux standalone is twice as big...

Maybe that's because the Windows executable is UPX-compressed?
I don't know why UPX is not applied on the Linux executable.

another question: why is yt-dlp_linux that big in filesize (30mb)? on windows standalone yt-dlp.exe only takes about 14mb so linux standalone is twice as big...

Maybe that's because the Windows executable is UPX-compressed? I don't know why UPX is not applied on the Linux executable.

I don't know either - and honestly, I can't be bothered to look into it. If anyone wants to "fix" this, feel free to try
Closing since original question is answered

All binaries (including embedded shared libraries) from yt-dlp doesn't have UPX applied.

All binaries (including embedded shared libraries) from yt-dlp doesn't have UPX applied.

Oh, I saw UPX being applied when compiling myself (I have UPX in my PATH).
There is also this line in pyinst.py:
'--upx-exclude=vcruntime140.dll'

Would UPX compression make yt-dlp slower?

Would UPX compression make yt-dlp slower?

From:
https://upx.github.io/

very fast decompression: ~10 MB/sec on an ancient Pentium 133, ~200 MB/sec on an Athlon XP 2000+.

Pyinstaller will use UPX by default if that's installed and in PATH.
There is ~1MB difference in file size (Windows .exe):
13.484.821 bytes vs 12.307.928 bytes with UPX.


upgrade to prima-core-libs 1.5

There is a new release 1.5 for https://github.com/PRImA-Research-Lab/prima-core-libs which supports PAGE-XML version 2019-07-15.
Most important changes in the 2019-07-15 schema are:

Added TextStyle to Page element (default text style for whole page)

Added "orientation" float attribute to Page element (skew for the whole page)

Added underlineStyle attribute to TextStyleType (valid values: singleLine, doubleLine, other)

(So this is related to #173 – sorry, I did not realize before.)
Do you already have plans on upgrading the libraries, or can I even do it myself (perhaps by just replacing the src/lib/repository/org/primaresearch/*/*.{jar,pom}) and make a PR?

We're currently working a release 0.3 for both OCR4all and LAREX and the latter's dev branch already uses builds of prima-core-libs based on a commit newer than 1.5 as that commit fixes a bug which in turn caused a bug in LAREX.

Wow, thanks for your super-fast response!
Ok, that's great news, and I'll switch to dev for now then.


The 'Access-Control-Allow-Origin' header contains multiple values '*, http://localhost:3000', but only one is allowed.

first I did all the instructions that I set before I created this issue
in nuxt project, I get this error.

this OPTIONS method request:

my Kernel.php
<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;
use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;

class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        \App\Http\Middleware\TrustProxies::class,
        \Fruitcake\Cors\HandleCors::class,
        \App\Http\Middleware\CheckForMaintenanceMode::class,
        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
        \App\Http\Middleware\TrimStrings::class,
        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
    ];

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            \Illuminate\Session\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
            \App\Http\Middleware\App::class,
            // \App\Http\Middleware\Permissions::class,
            \App\Http\Middleware\RestrictIp::class,
        ],

        'api' => [
            'throttle:200,1',
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
            'localization',
        ],
    ];

    /**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    protected $routeMiddleware = [
        'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
        'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,

        'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
        'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
        'localization' => \App\Http\Middleware\localization::class,
    ];
}

my config/cors.php
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Laravel CORS Options
    |--------------------------------------------------------------------------
    |
    | The allowed_methods and allowed_headers options are case-insensitive.
    |
    | You don't need to provide both allowed_origins and allowed_origins_patterns.
    | If one of the strings passed matches, it is considered a valid origin.
    |
    | If array('*') is provided to allowed_methods, allowed_origins or allowed_headers
    | all methods / origins / headers are allowed.
    |
    */

    /*
     * You can enable CORS for 1 or multiple paths.
     * Example: ['api/*']
     */
    'paths' => ['api/*'],

    /*
    * Matches the request method. `[*]` allows all methods.
    */
    'allowed_methods' => ['*'],

    /*
     * Matches the request origin. `[*]` allows all origins.
     */
    'allowed_origins' => ['*'],

    /*
     * Matches the request origin with, similar to `Request::is()`
     */
    'allowed_origins_patterns' => [],

    /*
     * Sets the Access-Control-Allow-Headers response header. `[*]` allows all headers.
     */
    'allowed_headers' => ['*'],

    /*
     * Sets the Access-Control-Expose-Headers response header with these headers.
     */
    'exposed_headers' => [],

    /*
     * Sets the Access-Control-Max-Age response header when > 0.
     */
    'max_age' => 0,

    /*
     * Sets the Access-Control-Allow-Credentials header.
     */
    'supports_credentials' => false,
];

this error when use all methods get, post, patch ..

Are you also adding headers with php or nginx directly?

no, I just use laravel valet.
and laravel 7.

@barryvdh plz can help me?

Hi @barryvdh I have the same issue

Hi @barryvdh  @AbdullahGhanem, my issue was with the paths array.
I setted the full url instead of set just the paths

Hi @barryvdh @AbdullahGhanem, my issue was with the paths array.
I setted the full url instead of set just the paths

Could you provide a example for this?

Hi, a have passed to the same problems when update my laravel to 5.8 to 6.*, using v1.0.5 from laravel-cors.
add to config/app.php
providers => [
...
\Fruitcake\Cors\CorsServiceProvider::class
]

Hi @CesarGomezTissini I was not using the api/ prefix for the api but I was using the full domain api.site.ext/.
The paths array was setted with api.site.local/ and this is wrong, I updated with'*' it's the path with out the domain and now works fine.
The paths should contains the prefix of your api route group.
The default api route group prefix is api, so the default path config contains only api/*.
This is my cors.php file:
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Cross-Origin Resource Sharing (CORS) Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure your settings for cross-origin resource sharing
    | or "CORS". This determines what cross-origin operations may execute
    | in web browsers. You are free to adjust these settings as needed.
    |
    | To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
    |
    */

    'paths' => ['*'],

    'allowed_methods' => ['*'],

    'allowed_origins' => [
        'https://site.local',
    ],

    'allowed_origins_patterns' => [],

    'allowed_headers' => [
        '*',
    ],

    'exposed_headers' => [
        '*',
    ],

    'max_age' => 0,

    'supports_credentials' => true,
];

Hi,
same problem. Ok if I put my url it works fine, but the of "*" is that works for all domain. Is it a bug from last Laravel version ?

What do you mean? ['*'] doesn't work? Do you need the credentials? Do you get any headers back?

If so, please update to v2 and create a new issue with all details.

it is work for me, with multiple "," on allowed_origins At config/cors.php
    'allowed_origins' => ['*,*'],

The suggestion of @dhavaldav fixed this issue for me. This is not a bug of the laravel-cors package, but more of a misunderstanding of how to configure it properly. Looks like some (or all?) requests to the laravel backend use multiple headers which are not allowed by the default laravel-cors configuration 'allowed_origins' => ['*'], so you have to update that to allowed_origins => ['*,*'] to allow that.

it is work for me, with multiple *,*  on allowed_origins At config/cors.php
    'allowed_origins' => ['*,*'],

This solution work for me, thanks.

Hi guys,
@dhavaldav  solutions works; but not for the reasons mentioned here (I think) ; let me explain,
I was facing the same issue on my app hosted on Heroku,
When I was curling my app on Heroku ; I saw 2 headers (curl -vI https://)
HTTP/1.1 200 OK
Connection: keep-alive
Date: Tue, 01 Dec 2020 15:11:44 GMT
Server: Apache
Cache-Control: no-cache, private
X-Ratelimit-Limit: 60
X-Ratelimit-Remaining: 59
Access-Control-Allow-Origin: *  # here
Access-Control-Allow-Origin: *  # and here
Access-Control-Allow-Methods: *
Access-Control-Allow-Headers: *
Content-Type: application/json
Via: 1.1 vegur

That was causing the "header contains multiple values" error message.
But on local, I only had one header
curl -I http://localhost:8000/api/finders/5f64b539e623250dc5473762
HTTP/1.1 200 OK
Host: localhost:8000
Date: Tue, 01 Dec 2020 15:12:27 GMT
Connection: close
X-Powered-By: PHP/7.4.11
Cache-Control: no-cache, private
Date: Tue, 01 Dec 2020 15:12:27 GMT
Content-Type: application/json
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
Access-Control-Allow-Origin: *

That's because Apache2 is running on Heroku ; but on local it's only the php artisan server
The issue is : I had this in my .htaccess
Header add Access-Control-Allow-Origin: "*"
Header add Access-Control-Allow-Methods: "*"
Header add Access-Control-Allow-Headers: "*"

SO basically, the issue is that the header Access-Control-Allow-Origin is added twice .
Once by the .htaccess (parsed by Apache)
And twice by the Laravel/cors something feature.
Putting
'allowed_origins' => ['*,*'],

Is actually a error of syntax , so the Laravel package actually skips that configuration line, and ends up not adding the header to the request.
Want to test ? Try another incorrect value, like '*,'  or '*,*,*' . The result will be the same .
So basically, what we're doing, is making the Laravel package skips the allowed_origins configuration ; so .htaccess is the only one who adds the Header . Result : we only have 1 header, et voilà !
Now, a nicer way to achieve the same result, is to leave the array empty 'allowed_origins' => [],
That's what solved the issue for me ! Let me if that works for you

Yep, just lost ~20 minutes myself. A previous developer added the following to the API htaccess file:
// try to sort cors issues
Header set Access-Control-Allow-Origin "*"
# Header set Access-Control-Allow-Origin "all"
# Header set Access-Control-Allow-Origin ""

Removing tall that of course solved the issue :+1:


Add parameters for outputting both common and identifiers documents

Since it now has the way to output both identifiers and common data, the -x parameter might not be needed. You could just output what is required from -oo and -oi. But that would break backward compatibility and this implementation is also fine.

That is a valid point except that the app does not require output filenames in which case it decides the filenames on its own. But is this feature essential, I don't know. But at least the app is quite flexible in this regard.


Fix typo

Github -> GitHub

@changeworld : Thanks for your contribution! The author, @lgayhardt, has been notified to review your proposed change.

Editorial fix verified.


Refactor TypeScript definition to CommonJS compatible export

Waiting for https://github.com/sindresorhus/fnv1a/pull/6.

Waiting for sindresorhus/fnv1a#6.

✅


DBZ-4463 Upgrade to SQL Server driver 9.x

https://issues.redhat.com/browse/DBZ-4463

Vitess failure fixed via https://github.com/debezium/debezium-connector-vitess/pull/62

POstgres/server/REST extension failures solved via https://github.com/debezium/debezium/pull/3060

Db2 failure solved via https://github.com/debezium/debezium/pull/3061

@jpechane, pushed a commit for handling the Vitess issue.

Let's make it a habit to check the license on any such major version bump of a dependency and put a comment on it to the PR or issue (I wouldn't expect changes in minor/micro updates). I just did it, it's still using MIT, i.e. all good. Thx!


"github_release" task fails when git SSH is using custom SSH host

Describe the bug
The "github_release" task fails when using SSH custom Host configuration with the error:
2021-02-05 19:30:26: ------------------------------------------------------------
2021-02-05 19:30:26: Running task: github_release
2021-02-05 19:30:26: ------------------------------------------------------------
2021-02-05 19:30:26:
2021-02-05 19:30:26: Options:
2021-02-05 19:30:26:   version: 1.1 (Beta 2)
2021-02-05 19:30:26:   dependencies: []
2021-02-05 19:30:26: Beginning task: CreateRelease
2021-02-05 19:30:26:
2021-02-05 19:30:27: Exception in task github_release

404 Not Found

Reproduction steps
Set the following git configuration.
Content of .git/config:
[remote "origin"]
    url = git@github-config:myusername/Food-Bank.git
    fetch = +refs/heads/*:refs/remotes/origin/*

Content of ~/.ssh/config:
Host github-config
    HostName github.com
    IdentityFile ~/.ssh/***
    User git

Then cci shell --python "print(project_config.repo_owner, project_config.repo_name)" shows:
git@github-config:myusername Food-Bank

The expected result should be:
myusername Food-Bank

Context

CumulusCI version: 3.28.0
Python version: 3.8.7
MacOS Big Sur 11.2
CumulusCI installed with brew

Additional information
HTTPS url works fine. Also, works fine with "normal" SSH url without the custom SSH host.
edit: minor fixes with English grammar.

@lordgordon We have code that is handling ssh urls by specifically looking for<EMAIL_ADDRESS>which isn't matching your URL because of using the github-config alias. Can you change the name of the Host to github.com in ~/.ssh/config?

@lordgordon We have code that is handling ssh urls by specifically looking for<EMAIL_ADDRESS>which isn't matching your URL because of using the github-config alias. Can you change the name of the Host to github.com in ~/.ssh/config?

Yes, setting github.com as the Host in ~/.ssh/config allows cci to properly recognize the configuration and solves the issue.


Improve complexity of objects.include/objects.exclude

The current implementation uses a second, nested reduce to perform lookups on the input filter param. This makes the time complexity of the function O(n²).
To improve this, filter can be fed into a Set at the start of the function then lookups can be called via filterSet.has(). This will reduce individual lookups to O(1) and reduce the overall time complexity of the function to O(n).

Fixed in 0.37.1


Original Article is Missing

It looks like the excellent article content at http://welcometothebundle.com/symfony2-rest-api-the-best-2013-way/ is missing. Is that, by chance, duplicated anywhere?

some problem!


Bug: middleware with withAuth does not work: TypeError: Cannot read properties of undefined (reading 'value')

Prerequisites

[X] I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
[X] I have checked the latest version of the library to replicate my issue
[X] I have read the contributing guidelines
[X] I agree to the terms within the code of conduct

Describe the issue
A simple app with one protected page using middleware does not work
import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware";

export default withAuth(async function middleware(req) {
  console.log("look at me", req.kindeAuth);
});

export const config = {
  matcher: ["/admin"],
};

however, when doing this, it works
import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware";
export default function middleware(req) {
  return withAuth(req);
}
export const config = {
  matcher: ["/admin"],
};

This is the error I'm getting

I don't have any special setup in-place. Just a public page with a <Link> to a protected page.
Library URL
https://github.com/kinde-oss/kinde-auth-nextjs
Library version
2.2.4
Operating system(s)
macOS
Operating system version(s)
14.4.1
Further environment details
No response
Reproducible test case URL
No response
Additional information
No response

Hey,
Seems like it can be the same issue happened to me: https://github.com/kinde-oss/kinde-auth-nextjs/issues/151

released 2.2.5-1 which should resolve this issue

I am experiencing the above issue on Vercel, I am using version 2.4.6


Fix CI failure on sympy master

By being a little more explicit about the simplification, we can get this test to pass.
Closes #441, assuming it works.

Put this in, so CI is finally green again.

Lovely workaround!


Issues Building against a Private Dataset

Thanks for building this great starter template!
I've been running into an issue on build (both local + Vercel) and when testing out redirects using a private dataset -- it appears that the token is missing from the Sanity client declaration in a few places:
https://github.com/nuotsu/sanitypress/blob/e17f92e279fd37cbdcd777adf288b6fbbf09dced/src/lib/sanity/fetch.ts#L35-L40
https://github.com/nuotsu/sanitypress/blob/e17f92e279fd37cbdcd777adf288b6fbbf09dced/next.config.ts#L4-L9
Adding token: process.env.NEXT_PUBLIC_SANITY_TOKEN seems to have resolved it. Is this expected behavior?
These build failures manifested as a different error (e.g. Missing 'site' document in Sanity Studio) which could be misleading when trying to debug.

@kennethwyu Hi thanks for noticing this! (I haven't used private datasets before)
I've updated the codebase to add some documentation for token (7b86c05056f139b67444bf8aa4864405a365d764)


v1 - Refactor/Upgrade

Looking to refresh this lib, improve developer experience and put some effort into making it play nicely with ASP.NET Core.
Roadmap:
Add support for asp.net core dependency injection
Refactor to clean SOLID standards
Address any async issues
Refactor internals
Improve developer experience
Update readme, add docs if necessary
Extend library to include more endpoints
Potentially move to v4 of TMDB
Heads up to any users that v1 will most likely include some major breaking changes
See project for details https://github.com/tonykaralis/TMdbEasy/projects/1

Will address #9 #10 #11 #12

@VPKSoft hope all is well, been a while. Just thought I would give you a heads up in case you are using this project, will be making some major changes to the lib over the next month or so. This will lead to breaking changes no doubt.

Thanks for the heads up. Some times breaking changes are required to keep the code base in shape 👍


fix(formatter): zero triggering fallback return

Proposed changes
This pull request fixes issue #38
When passing zero in formatNumber, it was considered falsey and triggered the fallback return statement resulting in a null return.
Types of changes

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

Checklist

[ ] I have read the CONTRIBUTING doc
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added necessary documentation (if appropriate)

Coverage remained the same at 95.918% when pulling f111616236bc74d9471e5c0a39a3df71cb38a47d on seanc:develop into 0b0eff267a38ff2c74111e183e3a772f3c3f4021 on adonisjs:develop.

Thanks! 💜


Add tag expressions for ruby

Summary
Implements tag expressions for ruby.
Motivation and Context
Related issues:

https://github.com/cucumber/cucumber/issues/60
https://github.com/cucumber/cucumber-ruby/issues/1003

How Has This Been Tested?
The changes implements rspec unit tests and coverage reporting. The tests are similar to tag-expressions for javascript and java versions.
Types of changes

New feature (non-breaking change which adds functionality).

Checklist:

[x] I've added tests for my code.

@aslakhellesoy I have implemented tag-expressions-ruby. It is working and almost ready to be mirrored as a gem.
I have a doubt regarding the naming convention. At the moment, the gem is called "tag-expressions-ruby". However, it will be required by the code as "tag_expressions_ruby" (with underscores). Besides, the main module is called TagExpressions.
Do you have a convention to follow in cucumber? Or do you have a suggestion regarding this point?
Looking forward to see your comments and improve the code.

Awesome work @nodo.
Regarding names, I suggest we put this into a Cucumber namespace, so the require statements become cucumber/tag_expressions.
The idiomatic way to name the gem itself would then be cucumber-tag_expressions. That might look a bit awkward, but I think it's fine.
WDYT? @aslakhellesoy?

Thanks @mattwynne !
I totally agree with your suggestion. I have changed the naming, but I am happy to discuss further.

Rebased and merged in f64f7a5fb7bfba0c0b44027e3bb3af2adb3f4e8c. I took the liberty to remove the monkey patch in 55092fe1fde0b023719c3221fa59a41b17c2e34e.
Excellent work @nodo - I like how it follows the original implementation while adopting a few rubyisms to make it more idiomatic. Enjoy the commit bit!
This is a tiny library, so straying from the structure of the other libraries is not a problem. For bigger libraries (like Cucumber Expressions) I think it's better to keep exactly the same structure, even if it means non-idiomatic code. That makes maintenance easier for people who aren't fluent in every language.
I'll see if I can push a gem :-)

I forgot to mention:

https://travis-ci.org/cucumber/tag-expressions-ruby
github.com/cucumber/tag-expressions-ruby (read-only mirror)

Thanks @aslakhellesoy and @mattwynne . Really happy you like it!
Just a minor point, there is a typo in the description of the repository:
[READ-ONLY] Tag Expression Parser for Java - subtree of monorepo https://github.com/cucumber/cucumber

Java -> Ruby

Thanks @nodo - fixed the description


Smooth Signature like signature-mark.js

Is there a way to draw a smoother signature like the one signature mark provides?
Thanks!

Nope. I haven't seen signature-mark.js before, but it looks really great. I don't have time to check how it works exactly at the moment, but it looks like it's using a completely different drawing method than my library.


Validate AZ order and selection

Towards: https://github.com/giantswarm/giantswarm/issues/13481

I adressed the comments and tested this in gauss :) All appears to work fine.

I'll merge this and then start a separate PR for more refactoring


Add FABNetv4Ext and FABNetv6Ext NS

An example model file is here: https://github.com/fabric-testbed/aggregate-ads/blob/al2s-arm-review/ARMs/Network-dev.graphml
Part of a PR pending merge in the Ads repo.

This is now part of fim_utils 1.4.5 in PiPy


GLB_RT -> GRT + Remove older deprecated variables

~ For consistency's sake, all variables previously starting with GLB_RT have been changed to ones starting with GRT (except for PDK variable GLB_RT_LAYER_ADJUSTMENTS)
~ GLB_RT-prefixed variables deprecated, automatically translated to equivalents by OpenLane (for now)

Removed GLB_RT_[CLOCK_]{MIN/MAX}LAYER deprecated variable translation behavior
Removed ROUTING_OPT_ITERS deprecated variable translation behavior

As requested by @shalan

what happens if a configuration file still has ROUTING_OPT_ITERS


Upgrade to 2021 version

Tonic went back to 2018 https://github.com/hyperium/tonic/pull/847

Now it uses 2021.


feat(eula): update cargo-wix and use new eula APIs for extra files

Query the possible renders
Diff them all
Write them all
Default to emitting license=false and eula=false to disable all the auto-eula stuff

requires https://github.com/volks73/cargo-wix/pull/247 to land and for a release to be cut


[efr32] Remove UART retargeting

Remove redundant retargetserial.c as retargeting may
conflict with OT UART. Also retargeting doesn't work
without retargetio.c and just consumes flash and RAM.
Signed-off-by: Oleksandr Grytsov<EMAIL_ADDRESS>

Is this still an issue with EFR32MG12? Enabling serial port leads to build errors related to retargetserial.


TypeError: Cannot read property 'elements' of undefined

TypeError: Cannot read property 'elements' of undefined
in oM
in Unknown
in bs
in Unknown
in xA
in Unknown
in Qc
in Unknown
in $l
in QN
in Se
in te
in NH
in v

Hi @davigasparino, thanks for your report! What browser and which version are you currently using, and on which operating system (Windows/Mac)?

Duplicate of #2930
@davigasparino Please follow #2930 for updates.


[FEAT] Allow changing strict mode on a per-route basis

I have a single route for which I want to disable strict mode. Can this feature be added?

If you don't want write params type for a particular route, you can just export a "any".


How get deleted/archived messages in list ?

Hi,
How get deleted/archived messages in list ?
I want to make a page to list the deleted and archived messages and I want too make another page to list the unread messages only.
Thanks.

Hey @pirmax,
All of the models have the soft deletes trait on them, so you can use onlyTrashed() to get the deleted/archived ones. Calling the models without onlyTrashed() will return the active models.


Hide disabled piped on the add application form

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1031
Does this PR introduce a user-facing change?:

NONE

Thank you.
/approve


Any plan to support Angular 8 with ivy enabled?

My project has ng2-currency-mask as a dependency. Today I tried to build my app with ivy enabled and get following error
ERROR in ../node_modules/ng2-currency-mask/src/currency-mask.module.d.ts:1:22 - error TS-996002: Appears in the NgModule.imports of GeneralSettingsModule, but could not be resolved to an NgModule class
Do we have any plan to support ivy as I think it will be a very cool feature coming out of box in Angular 9

we need this .. any predictions?

i am also getting the same error with ivy enabled in angular8+

@javed23 use ngx-currency

Please upgrade to version 9.0.0.


Tox test error

I'm trying to run the test with Tox (I never used it) and it give me an error but I was triying to solved but anything worked.
When I run Tox it says me:
ImportError: No module named 'testapp'
pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked  up.
ERROR: InvocationError for command 'E:\MachinaData\Escritorio\ToxTest\django-afip\.tox\py310-django40-sqlite\Scripts\pytest.EXE' -vv -m 'not live' (exited with code 1)
So i supposed that it's a configuration error on the setup.cfg or in the tox.ini but i'm running out of ideas. The files now are exactly in the same way that in this repository

Is that the whole error output? Isn't there some ImportError with more details printed above?
On Mon, 12 Sep 2022, at 15:27, erebodino wrote:

I'm trying to run the test with Tox (I never used it) and it give me an error but I was triying to solved but anything worked.
When I run Tox it says me:
ImportError: No module named 'testapp'
pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.
ERROR: InvocationError for command 'E:\MachinaData\Escritorio\ToxTest\django-afip\.tox\py310-django40-sqlite\Scripts\pytest.EXE' -vv -m 'not live' (exited with code 1)
So i supposed that it's a configuration error on the setup.cfg or in the tox.ini but i'm running out of ideas. The files now are exactly in the same way that in this repository
—
Reply to this email directly, view it on GitHub https://github.com/WhyNotHugo/django-afip/issues/160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSNOYODVXDDGD5LZ5AIULV54VVTANCNFSM6AAAAAAQKPBDDA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

--
Hugo Osvaldo Barrera

the whole error is:
`Traceback (most recent call last):
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pytest_django\plugin.py", line 179, in handle_import_error
yield
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pytest_django\plugin.py", line 351, in pytest_load_initial_conftests
dj_settings.DATABASES
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\django\conf_init.py", line 87, in getattr
self.setup(name)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\django\conf_init.py", line 74, in setup
self.wrapped = Settings(settings_module)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\django\conf_init.py", line 183, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Users\Machina\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'testapp'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Machina\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\Machina\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\Scripts\pytest.EXE_main.py", line 7, in
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 187, in console_main
code = main()
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 145, in main
config = prepareconfig(args, plugins)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 324, in _prepareconfig
config = pluginmanager.hook.pytest_cmdline_parse(
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_hooks.py", line 265, in call
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_callers.py", line 55, in multicall
gen.send(outcome)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\helpconfig.py", line 102, in pytest_cmdline_parse
config: Config = outcome.get_result()
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_callers.py", line 39, in multicall
res = hook_impl.function(*args)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 1017, in pytest_cmdline_parse
self.parse(args)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 1305, in parse
self.preparse(args, addopts=addopts)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages_pytest\config_init.py", line 1207, in _preparse
self.hook.pytest_load_initial_conftests(
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_hooks.py", line 265, in call
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_callers.py", line 60, in _multicall
return outcome.get_result()
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pluggy_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pytest_django\plugin.py", line 350, in pytest_load_initial_conftests
with _handle_import_error(_django_project_scan_outcome):
File "C:\Users\Machina\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\lib\site-packages\pytest_django\plugin.py", line 183, in _handle_import_error
raise ImportError(msg)
ImportError: No module named 'testapp'
pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked
up.
ERROR: InvocationError for command 'E:\MachinaData\Escritorio\ToxTest\django-afip.tox\py310-django40-sqlite\Scripts\pytest.EXE' -vv -m 'not live' (exited with code 1)
in both the error is the same.

The problem is windows, I tried in ubuntu and it run perfectly. In windows I can't run Tox neither run the testapp. I don't know what is the exact problem, but it seems that is the way in like windows construc the paths (just an idea).
Perhaps someone with windows can reproduce this issue and find a solution.

Does tox support windows? Might be good to ask there if there are any quirks you should keep in mind.

I research a little bit but, nothing works for me, also in ubuntu everything work as is expected so I switched and I will keep working in ubuntu to test the CAEA support. I'm done with having troubles with windows.


feat(keystone): filter domain/user by idp_entity_id

filter domain/user by idp_entity_id
这个 PR 实现什么功能/修复什么问题:
改进：允许用idp_entity_id过滤域和用户

是否需要 backport 到之前的 release 分支:

release/3.5

/cc @zexi
/area keystone

Codecov Report

Merging #8906 (b27b086) into master (415ab23) will increase coverage by 11.96%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #8906       +/-   ##
===========================================
+ Coverage    5.89%   17.85%   +11.96%
===========================================
  Files         825       88      -737
  Lines      128484     8847   -119637
===========================================
- Hits         7575     1580     -5995
+ Misses     120230     7094   -113136
+ Partials      679      173      -506

Flag
Coverage Δ

aFlag
17.85% <ø> (+11.96%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/util/ansible/parser.go

pkg/util/samlutils/metadata.go

pkg/appsrv/workers_watchdog.go

pkg/cloudcommon/db/quotas/errors.go

pkg/cloudcommon/db/quotas/utils.go

pkg/util/coreosutils/coreosutils.go

pkg/apis/share.go

pkg/compute/models/dns_zonecaches.go

pkg/multicloud/aws/iam_user.go

pkg/lbagent/models/agentparams.go

... and 726 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 415ab23...b27b086. Read the comment docs.

/lgtm
/approve


General cleanup and performance boost

Contains both a series of smaller fixes spotted by static analysis and several performance improvements.

Thank you for this!  Awesome stuff.

thanks for checking :)


Disable reanimate options change

I'm submitting a new:
[ ] Bug Fix
[ x ] Feature
[ ] Other (Refactoring, Added tests, Documentation, ...)

Description
Adds support for a new option disableReanimateOnOptionsChange to prevent a component controlled by countUp from reanimating when options are changed.
When this option is set to true, the component will only reanimate when endVal is changed, or explicitly triggered by other means.
Does this PR introduce a breaking change?
[ ] Yes
[ x ] No

How to test:

Add the new optional property to countUp.d.ts
Under useOptions() in app.component.ts, add the additional option disableReanimateOnOptionsChange: true
Run the app, observe that changing the options does not trigger a reanimation, but the new options are still reflected when the endVal is changed and the reanimation is triggered.

@inorganik Hey Jamie, first time making an open source contribution so forgive the noob question: This PR depends on changes to countUp.d.ts, which isn't tracked here. Do I need to make a PR against the core countUp library first?
Thanks in advance!

Hey Will, so is there a bug where it re-animates when options besides endVal are changed, and you are trying to fix it here?

Hey Will, so is there a bug where it re-animates when options besides endVal are changed, and you are trying to fix it here?

It was unclear to me if this was a bug or a feature.
My use case is this: On first load, I'd like countUp to run with a certain duration. On subsequent animations (i.e. when the countUp value changes), I want the animation to run with a shorter duration. However, changing the options input immediately triggers a reanimation even if the underlying count hasn't changed.
I'm sure there are some workarounds for this on the app side, but having official support would be better.

Couldn't you just update the options and the endVal at the same time? The reason we don't already have this option is because you would only ever need to update the options if you plan to animate again. And if you are animating again, then just set the options when you want it to animate. You can set the endVal inside the options object.
Regarding your first question about the dependency on CountUp, no you don't need to PR there (I maintain both repos). But instead of going straight to making a PR, always create an issue first to validate that you have an issue, then usually the repo maintainers will tell you if it needs a PR or not. In this case I don't think you do.

Thanks for the suggestion, I was able to get it to work this way. One oddity, I have to manually trigger the change detection to get it to register the new settings:
  public countUpOptions = {duration: 1.5}
  public showStep2: boolean = false;

  updateTotals(){
    if (this.showStep2) {
      this.countUpOptions = {duration: 0.2}
      this.changeDetectorRef.detectChanges();
    }

    this.totalWattHours = this.calculationUtils.totalWattHours(this.build)
    this.peakWattage = this.calculationUtils.peakWattage(this.build)

    this.showStep2 = true
  }

Without the detectChanges() it will always just use the original {duration: 1.5}
At any rate, I will close this if this is the preferred way to use the lib. Thanks for the thoughtful replies and awesome library!

I looked into your issue and there is indeed a bug - you can't set options and endVal at the same time. I tested it in the test app of this repo and in a new angular 18 app. Also, I was wrong about being able to set endVal in the options (sorry).
The reason is because in the directive, there's an if/else statement in ngOnChanges, making it so it's an either/or situation.
I can make a fix for this, but it probably won't get merged till next week. I would encourage you to take a crack at it if you want but really I should update angular and have it depend on the latest countUp as well. Thanks for finding this issue!

Thanks for looking into this, glad to take a stab at a fix!


Update compute.json to add ProtectFromScaleIn property to VMScaleSetVM properties

Add ProtectFromScaleIn property to VMScaleSetVM properties
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-js

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Can one of the admins verify this patch?

@ashintre is this behavior live?

Automation for azure-sdk-for-java

Automation for azure-sdk-for-node

Automation for azure-sdk-for-go

@ashintre is this behavior live?

not yet

@ashintre hello any update?


Added an SPI reinit function

When using the library embedded-sdmmc i needed a way to reset the clock of the spi peripheral without having ownership of the spi device. This is the way i came up with.
Note: The diff looks kind of weird the new function has not moved but the set_baudrate and set_format functions has moved to be available internally both in enabled and disabled state.
Example usage code can be found here:
https://github.com/JoNil/pico_plant/blob/fc872a3b145f54c2835442413a1a1673e1803d01/src/main.rs#L208

Your pico_plant repo may be private it 404's me.

I'm very curious about why resetting the clock is useful for this, looking forward to seeing your use-case

Now it is public!
This is my first time talking to sd cards so I'm by no means an expert. Form what i understand sd card only talk spi if you ask them in a specific way. And this involves sending commands at a low spi clock, Then after you have inited the card to use spi then you can increase the spi clock to get better performance.
From the embedded-sdmmc-rs init function docs:
/// This routine must be performed with an SPI clock speed of around 100 - 400 kHz.
/// Afterwards you may increase the SPI clock speed.
Then they have a spi function to get access to the underlying spi device with this interface:
/// Get a temporary borrow on the underlying SPI device. Useful if you
/// need to re-clock the SPI after performing init().
pub fn spi(&mut self) -> core::cell::RefMut ...

Yes, speed negotiation is rather common on SPI/I²C and serial (for the most common ones).
I wonder if a full re-init is necessary or if a limited set_frequency would be enough?
Reinit kind of implies reset (bus state, clearing fifo, reset dma settings) to me which seems to be what you implemented but it's probably not necessary, simply changing the clock divider should do the trick.

You could also keep a handle to the spi bus using https://crates.io/crates/shared-bus, which would ensure your reclocking code has exclusive access at the time it changed the frequency

oh, sdmmc already has a method for accessing the underlying spi interface.
https://docs.rs/embedded-sdmmc/0.3.0/embedded_sdmmc/struct.SdMmcSpi.html#method.spi

We could make spi::set_baudrate() public, then you could use that.
Would that work for you JoNil?

That would work for me! Is it ok to change that register wile the hardware is enabled?

I think it should be fine even when there's data being transmitted, thought I think for now we should recommend that you only change that register when there is no data in flight.

I now updated this pr to make the set_baudrate method public


Pseudo mailing list to discuss the project and it's future.

There are a number of users and as the project isn't big enough to have an IRC channel or making list...  I made this issue to function as a makeshift making list/forum.
I can be found on Matrix as @cheako:matrix.org and perhaps I'll start a nom channel if we need to have a meeting.
These issues are relatively new and if I mention them the participants will hopefully be invited:
https://github.com/rust-bakery/nom-bufreader/issues/9#issuecomment-989459539
https://github.com/Geal/nom/issues/1468
https://github.com/Geal/nom/issues/1464
https://github.com/Geal/nom/issues/1459

maybe you should ping me privately before opening issues like that. While I appreciate that people care enough about nom to think about its maintenance, it is not actually unmaintained. There was a release just one month ago. Ad if I have not been active here during that month, it is because I am busy preparing releases for other projects.
If you want a venue to discuss about nom, you can go to gitter, there are people there regulrly chatting and helping each other: https://gitter.im/Geal/nom

I didn't know there is a way to ping ppl privately...

I am not hard to find. email, twitter, irc, etc.


Unexpected behavior when partial mocking.

Suppose I have a class with two methods: methodA and methodB. Suppose methodB delegates to methodA. Finally, suppose that I have set up a spy on an instance of the class that will modify the behavior of methodA, but leaves methodB alone.
I would expect that when methodB is invoked, it will get the mocked behavior for methodA.
Here is an example in Java that demonstrates the behavior I would expect:
class TestClass {
  public String getMessage() {
    return "real message";
  };
  public String delegatingMethod() {
    return this.getMessage();
  };
}

public class SpyTest {
  @Test
  public void test() {
    TestClass testClass = new TestClass();
    TestClass spy = Mockito.spy(testClass);

    System.out.println("BEFORE MOCKING: testClass.getMessage()=" + spy.getMessage());
    System.out.println("BEFORE MOCKING: testClass.delegatingMethod()=" + spy.delegatingMethod());

    doReturn("spy value").when(spy).getMessage();

    System.out.println("AFTER MOCKING: testClass.getMessage()=" + spy.getMessage());
    System.out.println("AFTER MOCKING: testClass.delegatingMethod()=" + spy.delegatingMethod());
  }
}

the following lines are output:
BEFORE MOCKING: testClass.getMessage()=real message
BEFORE MOCKING: testClass.delegatingMethod()=real message
AFTER MOCKING: testClass.getMessage()=spy value
AFTER MOCKING: testClass.delegatingMethod()=spy value

When I try something similar in typescript, my code doesn't even run:
class TestClass {
  getMessage = () =>  {
    return 'real message';
  };
  delegatingMethod = () => {
    return this.getMessage();
  };
}

describe('Test partial mock', () => {
  it('test', () => {
    const testClass = new TestClass();
    console.log(`*** BEFORE MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** BEFORE MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);

    const spyTestClass = spy(testClass);
    when(spyTestClass.getMessage()).thenReturn('mocked message');

    console.log(`*** AFTER MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** AFTER MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);
  })
});

The following shows up in my log:
*** BEFORE MOCKING: testClass.getMessage()=real message
*** BEFORE MOCKING: testClass.delegatingMethod()=real message
*** AFTER MOCKING: testClass.getMessage()=mocked message

TypeError: Cannot read property 'get' of undefined
    at Spy.getEmptyMethodStub (node_modules/ts-mockito/src/Spy.ts:34:50)
    at Spy.Mocker.getMethodStub (node_modules/ts-mockito/src/Mock.ts:242:25)
    at TestClass.delegatingMethod (node_modules/ts-mockito/src/Mock.ts:161:37)
    at Context.it (tests/DbSupportSdkTest.ts:37:78)

So It gets to where the spied version of delegatingMethod() is called, and fails.
While experimenting, I tried moving the spy declaration to the beginning of the test (without doing any stubbing), I would expect the first two calls to execute according to their original implementations. However, instead I get the same error as above, just sooner.
Here is the updated code:
describe('Test partial mock', () => {
  it('test', () => {
    const testClass = new TestClass();
    const spyTestClass = spy(testClass);
    console.log(`*** BEFORE MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** BEFORE MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);

    when(spyTestClass.getMessage()).thenReturn('mocked message');

    console.log(`*** AFTER MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** AFTER MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);
  })
})

In the log, I get no log output, just the error message:
TypeError: Cannot read property 'get' of undefined
    at Spy.getEmptyMethodStub (node_modules/ts-mockito/src/Spy.ts:34:50)
    at Spy.Mocker.getMethodStub (node_modules/ts-mockito/src/Mock.ts:242:25)
    at TestClass.getMessage (node_modules/ts-mockito/src/Mock.ts:161:37)
    at Context.it (tests/DbSupportSdkTest.ts:30:73)

This seems to imply that when I spy on a class, any method that hasn't had its behavior stubbed will give me an error. That doesn't seem like it could possibly be right, and the examples in your README seem to imply otherwise. I'm hoping I'm missing something obvious.
For reference, here are my dependencies from package.json:
  "dependencies": {
    "@types/aws-lambda": "^8.10.13",
    "@types/jsonwebtoken": "^8.3.3",
    "@types/yesql": "^3.2.1",
    "aws-sdk": "^2.544.0",
    "jsonwebtoken": "^8.5.1",
  },
  "devDependencies": {
    "@types/chai": "^4.1.7",
    "@types/mocha": "^5.2.6",
    "chai": "^4.2.0",
    "mocha": "^6.0.2",
    "ts-mockito": "^2.5.0",
    "ts-node": "^8.0.2",
    "typescript": "^3.3.3333"
  }

And, in case it matters, my tsconfig.json:
{
  "compilerOptions": {
    "target": "es2017",
    "module": "commonjs",
    "strict": true,
    "typeRoots": [
      "node_modules/@types"
    ],
    "types": [
      "node"
    ],
    "esModuleInterop": true
  },
  "exclude": [
    "**/tests"
  ]
}

Hi @besk-cerity, since you don't have class methods but class properties holding functions, you need to mock the property.
Could you please try like this?:
when(spyTestClass.getMessage).thenReturn('mocked')

Thanks for the quick response.
That actually doesn't compile:
TS2345: Argument of type '"mocked message"' is not assignable to parameter of type '() => string'.

Instead I tried:
    const spyTestClass = spy(testClass);
    when(spyTestClass.getMessage).thenReturn(() => 'mocked message');

Now when I run the test, It fails with the message:
TypeError: testClass.getMessage is not a function
    at Context.it (tests/DbSupportSdkTest.ts:35:72)

Your suggestion makes sense, but in my example I was able to get the mocked version of getMessage() to behave correctly. It was the other method (that didn't have any stubbing) that was causing problems. What I was seeing is that if I spied on a class and then tried call a method on it that hadn't been stubbed, the method invocation failed with TypeError: Cannot read property 'get' of undefined.

it does seem to be a function declaration issue though.
I rewrote the class as follows:
class TestClass {
  getMessage() {
    return 'real message';
  };
  delegatingMethod() {
    return this.getMessage();
  };
}

Now when I run the test:
describe('Test partial mock', () => {
  it('test', () => {
    const testClass = new TestClass();
    const spyTestClass = spy(testClass);
    console.log(`*** BEFORE MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** BEFORE MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);

    when(spyTestClass.getMessage()).thenReturn('mocked message');

    console.log(`*** AFTER MOCKING: testClass.getMessage()=${testClass.getMessage()}`);
    console.log(`*** AFTER MOCKING: testClass.delegatingMethod()=${testClass.delegatingMethod()}`);
  })
});

I get the following output.

Any idea how I can work around this issue using arrow functions. Sometimes the context calls for them. Plus, I'd prefer not to rewrite a bunch of classes because there was a possibility I might partially mock it.

Sure, Tomorrow I'll check and I let you know

Sorry for the late response @besk-cerity. For those partially mocked objects, Spy is inspecting the object's property descriptor, and evaluating getters and setters. Since arrow function doesn't have it, then the issue comes.
I don't know if this could be tackled in another fashion or not. I need to investigate further to check.

Thanks for continuing to investigate. I'm surprised this hadn't come up before.


fix for non_release images

Supersedes #64
@tbielawa @sosiouxme - this should do the trick and is meant to be flexible. Instead of hardcoding a specific exclude list name, you can pass config_excludes='non_release' and it will look for non_release in the group config and if it contains an images or rpms section it will add those to the exclusions. This way we could have other exclusions in the config with different names but not have to change the code, just the call to initialize().

/lgtm


Unable to locate e2convertrelion.py

Hello,
Thanks for developing and sharing awesome software.
I have some datasets I'd like to try but they are all in Relion so I would like to convert them to try e2gmm.
Unfortunately, I wasn't able to locate e2convertrelion.py as mentioned in https://blake.bcm.edu/emanwiki/EMAN2/e2gmm
Can you please enlighten me where I can find it or how I can appropriately convert it for e2gmm?
thank you so much.
best,
heejong

It is in the examples/ folder. You can add the folder to your PATH to use it.
Of course, being in the examples folder means it is not as ready as other programs in the main pipeline. If you notice anything wrong please let me know.

On Aug 23, 2021, at 12:28 PM, heejongkim @.***> wrote:
Hello,
Thanks for developing and sharing awesome software.
I have some datasets I'd like to try but they are all in Relion so I would like to convert them to try e2gmm.
Unfortunately, I wasn't able to locate e2convertrelion.py as mentioned in https://blake.bcm.edu/emanwiki/EMAN2/e2gmm https://blake.bcm.edu/emanwiki/EMAN2/e2gmm
Can you please enlighten me where I can find it or how I can appropriately convert it for e2gmm?
thank you so much.
best,
heejong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/cryoem/eman2-jupyter/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4AZ2CDOXFIN2Z6OGB7UITT6KALFANCNFSM5CVBIJHQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

Ah.
It's under eman2's examples folder.
Thank you so much for your help.
best,
heejong