OBJECT_TRACING for kernel objects

Unfortunately, the object tracing for kernel objects was dropped from version 2.5 to 2.6.
Our (Lauterbach) debuggers provide a Zephyr awareness, that allows to list and inspect threads and kernel objects. We used the linked list created by CONFIG_OBJECT_TRACING to show tables of created objects, e.g. semaphores or mutexes. Since Zephyr version 2.6, this linked list is no longer configurable, which makes it impossible for debuggers to find and display created objects.
It would be great to get the linked list back in the kernel objects, e.g. like it was in k_mutex of 2.5:
https://github.com/zephyrproject-rtos/zephyr/blob/8be935fe5cda14db37549446e2d571b485cddf0e/include/kernel.h#L3087

@rdienstbeck, can you bisect to the exact changeset that broke this feature for you?

@dleach02, thanks for looking into this. The bisect was easy, the change log actually says "kernel: remove object tracing":
https://github.com/zephyrproject-rtos/zephyr/commit/4d994af03284ce94616c00c741e21b9b22e8ff62#diff-d425c69d5282cb213b62e545f89a0aa44326d0187725db1d83c8209a9bb1585f
Change from May 8 2021.

Okay. So it was removed with this PR #34843

Interesting, I don't think there should be any problems re-adding this kind of feature as a "new" trace format within the updated tracing system that was introduced in PR #34843.

Hi @rdienstbeck, and nice to meet you again, we often meet at Embedded World ;-)
There were issues with the design of the original feature and realized the new tracing support added in 2.5 would mostly replace that, but I guess this will not replace the availability of this data in the debugger. Will take a look and see how we can solve this.

Hi @nashif, I remember our talks at EW, nice to talk to you again!
Thanks for looking into this, customers are already complaining...

@rdienstbeck have you had the chance to look at #40606 ?

Hi @edersondisouza ,
I had a quick look at it, implemented it and tested it in our debugger. It looks like this includes exactly what we need. Thanks a lot for this!
I will modify our Zephyr Awareness to use the linked list as defined in #40606 and will report my results here.
It's now part of CONFIG_TRACING, which also offers a lot of options (and additional code) for tracing, while it is not exactly for tracing but only for keeping a list of objects. Me, personally, I'd put it to kernel debugging options rather than to tracing, but then I'm not a Zephyr expert...

@rdienstbeck, recommend you provide your feedback/results directly to #40606. When that gets approved/merged it will automatically close this issue


Bug: error[E0308]: mismatched types (Windows)

Compilation of tao fails while running tauri dev on windows 10.
Error:
error[E0308]: mismatched types
    --> ...\tao-0.5.2\src\platform_impl\windows\window.rs:1051:20
     |
1051 |         userdata = createstruct.lpCreateParams as LONG_PTR;
     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `isize`

Setup:
Operating System - Windows, version 10.0.19041 X64
Webview2 - 92.0.902.84

Node.js environment
  Node.js - 14.17.2
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 7.19.1
  yarn - 1.22.11

Rust environment
  rustc - 1.56.0-nightly
  cargo - 1.56.0-nightly

App
  tauri.rs - 1.0.0-beta.8

For some reason I hade the 32-bit version of rust installed. Installing the 64-bit version using rustup solved the issue.

I have the same issue. I want to build a 32-bit app.


Update admission-controllers.md

Sentence seems grammatically incorrect

"objects, that are related to...."  adds an unnecessary pause with the comma and an unnecessary qualifier in "that are". both unneeded.

/approve


containsAny is not working properly

Both of these calls should return TRUE
    $string = 'foo bar';
    var_dump(s($string)->containsAny(['something', 'bar', 'somethingelse']));
    var_dump(s($string)->containsAny(['something', 'foo']));

Right now both of them are returning FALSE.

Thanks for the fix. Merged in version 5.4.10 (Portable UTF-8).


How to disable URL decoding (slash escaping) for specific HTTPRoutes ONLY?

We installed Envoy Gateway version v1.2.1 (docker.io/envoyproxy/gateway:v1.2.1, envoyproxy/envoy:distroless-v1.32.1).
Here are the configurations at EnvoyProxy, GatewayClass and Gateway level.
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
  name: private-dev
  namespace: envoy-gateway-system
spec:
  logging:
    level:
      default: debug
  mergeGateways: true
  provider:
    kubernetes:
      envoyDeployment:
        container:
          resources:
            limits:
              cpu: 150m
              memory: 500Mi
            requests:
              cpu: 150m
              memory: 500Mi
        pod:
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: node.type
                    operator: In
                    values:
                    - apps.low
          annotations:
            prometheus.io/port: "19001"
            prometheus.io/scrape: "true"
          labels: {}
          tolerations:
          - effect: NoSchedule
            key: node.type
            operator: Equal
            value: apps.low
          topologySpreadConstraints: []
        replicas: 2
      envoyService:
        annotations:
          service.beta.kubernetes.io/azure-load-balancer-internal: "true"
          service.beta.kubernetes.io/azure-load-balancer-ipv4: <IP_ADDRESS>
        externalTrafficPolicy: Local
        type: LoadBalancer
    type: Kubernetes
  routingType: Service

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
  name: private-dev
spec:
  controllerName: gateway.envoyproxy.io/gatewayclass-controller
  parametersRef:
    group: gateway.envoyproxy.io
    kind: EnvoyProxy
    name: private-dev
    namespace: envoy-gateway-system

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: gateway-private
  namespace: balancers-dev
spec:
  gatewayClassName: private-dev
  listeners:
  - allowedRoutes:
      namespaces:
        from: All
    name: http
    port: 80
    protocol: HTTP
  - allowedRoutes:
      namespaces:
        from: All
    name: https
    port: 443
    protocol: HTTPS
    tls:
      certificateRefs:
      - group: ""
        kind: Secret
        name: cf-wildcard-cert-secret
      mode: Terminate
...

We have an HTTPRoute for reaching a RabbitMQ management Web UI
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  labels:
  name: rabbit-route
  namespace: rabbit-dev
spec:
  hostnames:
  - rabbit-dev.farmhub.nadara.com
  - rabbit-dev.farmhub.renantis.com
  parentRefs:
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: gateway-private
    namespace: balancers-dev
    sectionName: https
  rules:
  - backendRefs:
    - group: ""
      kind: Service
      name: esb
      port: 15672
      weight: 1
    matches:
    - path:
        type: PathPrefix
        value: /

but, unfortunately, some of our Exchanges got slashes in their names (don't ask, don't even ask, please).

And so, their corresponding detail URLs are built this way

and, without this ClientTrafficPolicy applied to the whole Gateway
---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: ClientTrafficPolicy
metadata:
  name: rabbit-undecode
  namespace: balancers-dev
spec:
  path:
    escapedSlashesAction: KeepUnchanged
  targetRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: gateway-private

we end up with Envoy decoding the %2F in / so that the URL passed to the destination backend becomes
https://rabbit-dev.farmhub.nadara.com/#/exchanges/farmhub/esb/exchange/agent.jobs
instead of
https://rabbit-dev.farmhub.nadara.com/#/exchanges/farmhub/esb%2Fexchange%2Fagent.jobs
How can we avoid preparing another Gateway (thus, consuming another private Azure IP and LoadBalancer for its exposure) only to keep our RabbitMQ Web UI HTTPRoute functioning?
Thanks in advance.
I'm more than willing to provide clarifications.

since the feature lives in the HCM (attached to an xds listener) https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#extensions-filters-network-http-connection-manager-v3-httpconnectionmanager, its can't be set on a per route level, can you instead use a different hostname or port for that traffic, you could then attach the HTTPRoute to that specific listener

ArgoCD is also extremely prone to this problem. It will make requests with a Helm repo URL encoded in the request URL anytime the "Parameters" tab is accessed.


ability to open extensions.json from prompt

testing #52850
It would be nice to have a link on this prompt to open the workspace extensions.json.  that way i can see what was done.

Link in the text mostly is not possible, as that works only for actual links.
We might have to add a button that says View changes which opens the file that was edited.


Set dev version above released version

Pandas asserts that the xarray version that's running is above 2022.; locally it was set to 999 which failed this. It only applies when developing locally.

Its also mentioned in
https://github.com/pydata/xarray/blob/8215911a8e1c97e58c3db071276a185b931b4a35/pyproject.toml#L9


lint: fix lint error

I noticed the same on Wednesday and had the coco.rs changes made locally too but could not test them. The errors are not shown when people use make lint (like I did earlier). This PR could update Makefile too enable those checks again.


Use google benchmarks

Consider and perhaps move to google benchmarks instead of reinventing the wheel.

Fixed in #23


Fix issue with the meshes: convert from dae to stl

We need to convert the Collada DAE format meshes to STL format meshes for completing the RRBot Gazebo example model. This is not a functional requirement, but only for visualization enhancement purposes, so low priority.

[ ] Converting Collada (.dae) to URDF (.stl)
Collada URDF contains packages for converting from collada files to URDF. Collada to urdf command-line tool:
rosrun collada_urdf collada_to_urdf <input.dae> <output.urdf>

collada_urdf package has to be built and installed...

[ ] Create a Catkin workspace, build catkin package and install in workspace (https://wiki.ros.org/catkin/Tutorials).

Creating a workspace for catkin

This tutorial covers how to setup a catkin workspace in which one or more catkin packages can be built.
Creating a ROS Package

How to create a new ROS package using catkin.
Building and using catkin packages in a workspace

How to use catkin_make to build and install packages from source in a catkin workspace.
Overlaying with catkin workspaces

Describes how to overlay a catkin workspace on to an existing system for development and testing.

[x] Install catkin tools, from ROS packages (e.g. robostack).
Install robostack:conda create -n robostackenv python=3.8
conda activate robostackenv
conda config --env --add channels conda-forge
conda config --env --add channels robostack
conda config --env --set channel_priority strict
mamba install ros-noetic-desktop
mamba install compilers cmake pkg-config make ninja catkin_tools
conda deactivate
conda activate robostackenv

collada_urdf package has to be built and installed...

I think that that package converts a collada multibody model (that is different from an URDF model that use collada meshes) to a URDF model, to just convert a dae to an stl you can just use several available package online (see https://www.google.com/search?client=firefox-b-d&q=collada+to+stl) or software like meshlab.

Actually, I was interested anyway in trying the robostack packages, and a catkin workspacefor building ros packages in case it would be requiired in the future.
Regarding the collada files, I assumed that the collada multibody model was an all-in-one file including also the meshes. In such case, if applied to a .dae file having only a mesh, the tool would eventually generate an stl mesh in the conversion process. A lot of ifs, I know, but I was just going to give a quick try.

Actually, I was interested anyway in trying the robostack packages, and a catkin workspacefor building ros packages in case it would be requiired in the future.

Ack, however note that given that is not already built (see https://robostack.github.io/noetic.html) probably it has some kind of compilation failure.

to just convert a dae to an stl you can just use several available package online

I've tried https://anyconv.com/dae-to-stl-converter and https://3d-convert.com/en/convert/dae-to-stl.html. The first generates a binary file, while the later generates text file which can easily be previewed with Quicklook for instance (on MacOS). I kept the later.

The first generates a binary file (which actually didn't work),

In the past to convert from binary to ascii STL I used https://github.com/cmpolis/convertSTL and it worked fine.

Also tried meshlab, installing with brew: "binary damaged" 😒


Solar panel does not retain soul when broken

Is there an existing issue for this?

[ ] I did not find any existing issues.

Current Behavior
https://youtu.be/jpsyko2cpb0
Expected Behavior
No response
How to Test
No response
Local Environment
No response
Any Additional Information?
No response

pls fill out template, it's there for reason, video helpful but more information is needed and Versions your using as well

Don't worry about it this time, I referred them to GitHub.
This affects 7.0.0-alpha


Multi-File REPLs

This feature would allow users to place multiple files in a REPL. This would add a lot more flexibility and allow the user to use this as closer to a full development environment.

Too complex - slimming down.


Add ability to add Visual Find References to a toolbar.

Issue
In Visual Studio 2022, there does not appear to be a way to select Visual Find References from the Toolbar>Add or Remove Buttons dialog. Therefore, there does not appear to be a way to add this extension action to a toolbar.
Feature Request:
Show Visual Find References in the Add Command > Extensions: Commands. Then it can be selected and added to a toolbar.
Alternatively, provide a different approach you prefer along with easy instructions for adding this command to a toolbar.

Great idea. I am a little slower than usual at the moment due to very busy times both at work and at home, but will get this sorted.


Dynamic @ApiImplicitParam(allowableValues) using XBuilderPlugin

I've created query-parameter allowed values using Enum and the Model validation is validated with Hibernate Bean Validator, so the dynamic part missing; if any change in Enum allowed values is not automatically reflected in the documentation (runtime).

Springfox Swagger2 2.9.2

I found out that there was a request before to support this feature "Dynamic @ApiParam(allowableValues) #1877"
I've exhausted the suggestions on the #1877 but I could not find a way to reach the annotation (@ApiImplicitParam) outside the method. Another thing I discovered is that springfox.documentation.service.Parameter is abstracted in the way that it cannot be updated.
Isolating my use case, I wrote the following code and found that I can use:
springfox.documentation.builders.ParameterBuilder.
springfox.documentation.builders.OperationBuilder#parameters

But if the Parameter.name already exists, in an upgrade attempt (perhaps to avoid duplication) the entire annotation is discarded (not merged).
springfox.documentation.builders.ParameterMerger#merged()

So far, the only possible way to get my use case working is to use an existing annotation as a reference, and then use ParameterBuilder to create the elements with allowable "dynamic" values to document my query-parameters.
Please let me know if I'm on the right way, I don't find it too obvious since I had to review the code and use code snippets, thank you in advance.

This should no longer be an issue. Can you confirm with the latest 3.0.0 SNAPSHOT?


Setting git.basedir to relative directory causes NPE

Hi,
Right now setting baseDir to relative directory via properties...
spring:
  cloud:
    config:
      server:
        git:
          basedir: git-cache

...results in NPE being thrown.
The reason is that AbstractScmAccessor constructor... https://github.com/spring-cloud/spring-cloud-config/blob/2759ed4ba128257a20c1cd40b4cb50d2d434dffb/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/AbstractScmAccessor.java#L97 ...does not apply setter logic from AbstractScmAccessor...  https://github.com/spring-cloud/spring-cloud-config/blob/2759ed4ba128257a20c1cd40b4cb50d2d434dffb/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/AbstractScmAccessor.java#L163 As a result MultipleJGitEnvironmentRepository cannot read parent directory of baseDir and throwns NPE when attempt to read it... https://github.com/spring-cloud/spring-cloud-config/blob/2759ed4ba128257a20c1cd40b4cb50d2d434dffb/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepository.java#L103
I commited a test case demonstrating the issue and a fix (applying setter logic in AbstractScmAccessor constructor).

Please let me know if there is a way I can help with merging this PR. :)

Can you rebase to the 2.1.x branch?

@spencergibb Not sure what you mean here ;) You want this PR to be created against 2.1.x branch instead of master?
Thank you!

Yes

OK, done :) .

Was this self-signed certificate issue temporary or solved in a more generic way? Maybe someone could retry these tests?

Closing in favor of #1471


replace a unicode character to suppress warnings

Hi, I replaced a quote character in the comments of image_transforms/morphological_operations.h,
such that when compiling on Windows, it does not complain of file containing unicode character which is not in current codepage.
It is annoying because this warning pops up for every file compiled that includes this file.

Looks good. Thanks for the PR :)


Parallel runs with routing crash

When running parallel framework runs with routing enabled,  ngen crashes trying to load the routing module .  This crash occurs after the catchment formulations complete.
Current behavior
A segmentation fault occurs trying to use pybind for the routing integration in parallel.
Expected behavior
The parallel formulation execution should finish, and rank 0 should initialize and execute the t-route routing module.

example_crash_input.tar.gz
Attached here is a small, reproducible example when ngen is built with gcc 8.3.1.

Could NOT reproduce using gcc 6.3.1

Just to note, as I continue to investigate this issue, I have noticed that even on gcc 8.3.1 environment, this crash is not deterministic.  It acts like a pybind object is trying to be cleaned up at the end of main but after the interpreter has been removed.
The seg-fault does not happen on MPI rank 0, where the routing adapter is run, but instead comes from one of the other ranks.  On these ranks, a pybind interpreter is used to run the model formulations.  These should be independent interpreters, one per MPI processes.  I'm currently trying to debug the destructor chains to see if I can point to some scenario where the interpreter isn't available during the destruction of any bound python object.

Completely unrelated execution (this was a non-parallel build and had no routing in the realization config), but I happened to get this error when trying to run valgrind for a completely different reason:
> Executing task: valgrind-debug: valgrind-debug <

Starting valgrind...
==9909== Memcheck, a memory error detector
==9909== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==9909== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==9909== Command: /home/matthew.williamson/ngen-git2/cmake_build/ngen
==9909==

==9909== (action at startup) vgdb me ...
==9909==
==9909== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==9909==   /path/to/gdb /home/matthew.williamson/ngen-git2/cmake_build/ngen
==9909== and then give GDB the following command
==9909==   target remote | /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=9909
==9909== --pid is optional if only one valgrind process is running
==9909==

==9909==
==9909== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==9909==   /path/to/gdb /home/matthew.williamson/ngen-git2/cmake_build/ngen
==9909== and then give GDB the following command
==9909==   target remote | /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=9909
==9909== --pid is optional if only one valgrind process is running
==9909==

NGen Framework 0.1.0

==9909== Invalid read of size 4
==9909==    at 0x51690F2: PyObject_Free (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AE7AB: ??? (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AFB51: PyDict_SetItem (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51799FB: PyType_Ready (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5258030: _PyTypes_Init (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x52C5351: Py_InitializeFromConfig (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5165300: Py_InitializeEx (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)

==9909==    by 0x42F556: pybind11::initialize_interpreter(bool) (/home/matthew.williamson/ngen-git2/extern/pybind11/include/pybind11/embed.h:107)
==9909==    by 0x42F826: pybind11::scoped_interpreter::scoped_interpreter(bool) (/home/matthew.williamson/ngen-git2/extern/pybind11/include/pybind11/embed.h:184)
==9909==    by 0x4AFA61: void __gnu_cxx::new_allocator<pybind11::scoped_interpreter>::construct<pybind11::scoped_interpreter>(pybind11::scoped_interpreter*) (/opt/rh/devtoolset-8/root/usr/include/c++/8/ext/new_allocator.h:136)
==9909==    by 0x4A6246: void std::allocator_traits<std::allocator<pybind11::scoped_interpreter> >::construct<pybind11::scoped_interpreter>(std::allocator<pybind11::scoped_interpreter>&, pybind11::scoped_interpreter*) (/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/alloc_traits.h:475)
==9909==    by 0x49ADEA: std::_Sp_counted_ptr_inplace<pybind11::scoped_interpreter, std::allocator<pybind11::scoped_interpreter>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<>(std::allocator<pybind11::scoped_interpreter>) (/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr_base.h:545)
==9909==  Address 0x7781020 is 400 bytes inside a block of size 2,208 free'd
==9909==    at 0x4C2AFBD: free (/builddir/build/BUILD/valgrind-3.14.0/coregrind/m_replacemalloc/vg_replace_malloc.c:540)
==9909==    by 0x51AE7AB: ??? (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF13C: PyDict_SetDefault (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF21F: PyUnicode_InternInPlace (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF2B9: PyUnicode_InternFromString (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5277152: ??? (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x52771AE: PyDescr_NewMethod (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5179B46: PyType_Ready (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5258030: _PyTypes_Init (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x52C5351: Py_InitializeFromConfig (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5165300: Py_InitializeEx (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)

==9909==    by 0x42F556: pybind11::initialize_interpreter(bool) (/home/matthew.williamson/ngen-git2/extern/pybind11/include/pybind11/embed.h:107)
==9909==  Block was alloc'd at
==9909==    at 0x4C29EC3: malloc (/builddir/build/BUILD/valgrind-3.14.0/coregrind/m_replacemalloc/vg_replace_malloc.c:309)
==9909==    by 0x5171367: PyObject_Malloc (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AE498: ??? (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF13C: PyDict_SetDefault (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF21F: PyUnicode_InternInPlace (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x51AF2B9: PyUnicode_InternFromString (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5276FE8: ??? (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5178B6F: PyType_Ready (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5258030: _PyTypes_Init (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x52C5351: Py_InitializeFromConfig (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)
==9909==    by 0x5165300: Py_InitializeEx (in /opt/rh/rh-python38/root/usr/lib64/libpython3.8.so.rh-python38-1.0)

==9909==    by 0x42F556: pybind11::initialize_interpreter(bool) (/home/matthew.williamson/ngen-git2/extern/pybind11/include/pybind11/embed.h:107)
==9909==
==9909== (action on error) vgdb me ...

Possibly related???

This may not be entirely parallel related.  A similar issue seems to have come up during calibration runs.  Reported as random seg faults during the calibration runs, but the symptoms are eerily similar.  Notes on a reported crash:
compiler: gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0
output log:
Finished 59161 timesteps.
Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
'HDF5_DISABLE_VERSION_CHECK' environment variable is set to 1, application will
continue at your own risk.
Headers are 1.12.2, library is 1.10.4
	    SUMMARY OF THE HDF5 CONFIGURATION
	    =================================
General Information:
-------------------
                   HDF5 Version: 1.10.4
                  Configured on: Mon, 13 Apr 2020 12:15:08 +0000
                  Configured by: Debian
                    Host system: x86_64-pc-linux-gnu
              Uname information: Debian
                       Byte sex: little-endian
             Installation point: /usr
		    Flavor name: serial
Compiling Options:
------------------
                     Build Mode: production
              Debugging Symbols: no
                        Asserts: no
                      Profiling: no
             Optimization Level: high
Linking Options:
----------------
                      Libraries: static, shared
  Statically Linked Executables:
                        LDFLAGS: -Wl,-Bsymbolic-functions -Wl,-z,relro
                     H5_LDFLAGS: -Wl,--version-script,$(top_srcdir)/debian/map_serial.ver
                     AM_LDFLAGS:
                Extra libraries: -lpthread -lsz -lz -ldl -lm
                       Archiver: ar
                       AR_FLAGS: cr
                         Ranlib: x86_64-linux-gnu-ranlib
Languages:
----------
                              C: yes
                     C Compiler: /usr/bin/gcc
                       CPPFLAGS: -Wdate-time -D_FORTIFY_SOURCE=2
                    H5_CPPFLAGS: -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112L   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS:
                        C Flags: -g -O2 -fdebug-prefix-map=$(top_srcdir)=. -fstack-protector-strong -Wformat -Werror=format-security
                     H5 C Flags:  -std=c99  -pedantic -Wall -Wextra -Wbad-function-cast -Wc++-compat -Wcast-align -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wunused-macros -Wunsafe-loop-optimizations -Wwrite-strings -finline-functions -s -Wno-inline -Wno-aggregate-return -Wno-missing-format-attribute -Wno-missing-noreturn -O
                     AM C Flags:
               Shared C Library: yes
               Static C Library: yes
                        Fortran: yes
               Fortran Compiler: /usr/bin/gfortran
                  Fortran Flags: -g -O2 -fdebug-prefix-map=$(top_srcdir)=. -fstack-protector-strong
               H5 Fortran Flags:  -pedantic -Wall -Wextra -Wunderflow -Wimplicit-interface -Wsurprising -Wno-c-binding-type  -s -O2
               AM Fortran Flags:
         Shared Fortran Library: yes
         Static Fortran Library: yes
                            C++: yes
                   C++ Compiler: /usr/bin/g++
                      C++ Flags: -g -O2 -fdebug-prefix-map=$(top_srcdir)=. -fstack-protector-strong -Wformat -Werror=format-security
                   H5 C++ Flags:   -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wredundant-decls -Winline -Wsign-promo -Woverloaded-virtual -Wold-style-cast -Weffc++ -Wreorder -Wnon-virtual-dtor -Wctor-dtor-privacy -Wabi -finline-functions -s -O
                   AM C++ Flags:
             Shared C++ Library: yes
             Static C++ Library: yes
                           Java: yes
                  Java Compiler: /usr/bin/java (openjdk 11.0.7-ea 2020-04-14)
Features:
---------
                   Parallel HDF5: no
Parallel Filtered Dataset Writes: no
              Large Parallel I/O: no
              High-level library: yes
                    Threadsafety: yes
             Default API mapping: v18
  With deprecated public symbols: yes
          I/O filters (external): deflate(zlib),szip(encoder)
                             MPE: no
                      Direct VFD: no
                         dmalloc: no
  Packages w/ extra debug output: none
                     API tracing: no
            Using memory checker: no
 Memory allocation sanity checks: no
             Metadata trace file: no
          Function stack tracing: no
       Strict file format checks: no
    Optimization instrumentation: no
Finished routing
/home/west/git_repositories/ngen_10242022/ngen/venv/lib/python3.8/site-packages/h5py/__init__.py:36: UserWarning: h5py is running against HDF5 1.10.4 when it was built against 1.12.2, this may cause problems
  _warn(("h5py is running against HDF5 {0} when it was built against {1}, "
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/python_routing_v02/troute/routing/compute.py:597: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  pd.Series(index=lastobs_df_sub.index, name="Null"),
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/python_routing_v02/troute/routing/compute.py:601: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  pd.Series(index=lastobs_df_sub.index, name="Null"),
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/python_routing_v02/troute/routing/compute.py:597: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  pd.Series(index=lastobs_df_sub.index, name="Null"),
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/python_routing_v02/troute/routing/compute.py:601: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  pd.Series(index=lastobs_df_sub.index, name="Null"),
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/nwm_routing/src/nwm_routing/__main__.py:566: PerformanceWarning:
your performance may suffer as PyTables will pickle object types that it cannot
map directly to c-types [inferred_type->mixed,key->axis0] [items->None]
  flowveldepth.loc[csv_output_segments].to_hdf(output_path.joinpath(filename_fvd), key="qvd")
/home/west/git_repositories/ngen_10242022/ngen/extern/t-route/src/nwm_routing/src/nwm_routing/__main__.py:566: PerformanceWarning:
your performance may suffer as PyTables will pickle object types that it cannot
map directly to c-types [inferred_type->mixed,key->block0_items] [items->None]
  flowveldepth.loc[csv_output_segments].to_hdf(output_path.joinpath(filename_fvd), key="qvd")
creating supernetwork connections set
supernetwork connections set complete
... in 0.007495403289794922 seconds.
setting channel initial states ...
channel initial states complete
... in 1.430511474609375e-06 seconds.
creating qlateral array ...
qlateral array complete
... in 61.56017208099365 seconds.
WARNING: Lateral flow time series is larger than provided nts. Adjusting nts.
If this was unintended, double check the configuration number of time steps and the lateral flow input time series
executing routing computation ...
JIT Preprocessing time 5.0067901611328125e-05 seconds.
starting Parallel JIT calculation
PARALLEL TIME 0.4558742046356201 seconds.
ordered reach computation complete
... in 0.45807576179504395 seconds.
Handling output ...
- writing flow, velocity, and depth results to .csv
output complete
... in 4.025044918060303 seconds.
process complete
66.17824506759644 seconds.
Segmentation fault (core dumped)

In the output, you can see that routing has finished process complete, so I'm assuming control passed back to ngen at that point and the seg fault occurs trying to finish the main loop (which involves destructing the python interpreter) and the segmentation faults occurs.
This is very hard to debug with certainty, as it may takes hundreds of executions to reproduce this error (the calibration runs were up to 300+ iterations when this randomly occurred.)
The difference in this serial run and the parallel is that in parallel, the "non-routing" ranks cause the error so routing never finishes.  In the case this is triggered in serial, the routing is able to finish before the seg fault occurs in the destruction chain.
as @mattw-nws noted, this MAY be related to modules built and linking against mis-matched binary versions at runtime in the embedded interpreter.  I'm not real sure what that would do in the destructor chain here.

I was also finally able to reproduce this on serial runs using
Apple clang version 14.0.0 (clang-14<IP_ADDRESS>)
Target: arm64-apple-darwin21.6.0

It is indeed an issue in the order of destruction of resources where the python interpreter is shutdown before the destruction of the locally held module/objects that the utility is holding are destroyed.  I'm pretty sure this is due to the static singleton use and the destruction order of static variables across compilation units is not well defined.
I have a fix that I should get pushed to a PR soon that at least resolves the persistent seg fault I was able to produce locally.  Will need to test that fix on the reproducible example above using the known failing compiler configuration.

Tested #470 on gcc 8.3.1 in parallel, and no longer get crashes as non-routing ranks after they finish running catchments and shutdown.


Cleanup 2

Use WS2812 mode and fix naming.

Just wondering about the NUM_OF_LEDS—is that for if you have more than one blinkstick connected to the Pi?

NUM_OF_LEDS is the number of leds being controlled by the script, the nano stick has 2 leds actually, and due to a limitation in blinkstick's package, using the nano.turn_off() turns off only the first led, thus we have to address all the leds on the device.

I'm not sure though whether to ship those 2 commits of supporting the 2 leds in raspberry-pi-dramble.j2 or not.
Taking into consideration that I've created another whole package advanced-led-control  that eases the control of nano blinksticks to show status over the 2 leds based on callbacks, and we could, may be, add another small script that utilizes it in another .j2 file here if desired.


The node may have a bug when dealing with unformatted packet and lead to a crash

Describe the bug
A malicious node can send a packet continuously. The packet is in an incorrect format and cannot be decoded by the node correctly. As a result, the node may consume the memory sustainably, as the flowing figure shows:

After 100 seconds, over 4000 MB memory has been consumed. If I continue sending the packet, the node will consume all the memory. At last it be killed by the OS.
In order to analyze the reason for this bug, I try to debug the code of the node.  Here is what I found:
First, I found that in the file libp2p/P2PMessageRC2.cpp, at line 109 in the function decode:
ssize_t P2PMessageRC2::decode(const byte* buffer, size_t size)
{
    ...
    m_length = ntohl(*((uint32_t*)&buffer[offset]));
    if (size < m_length)    {
       return dev::network::PACKET_INCOMPLETE;
    }
    ...
}

the variable size is 72 and the variable m_length is a very big number under my packet. So the function will return dev::network::PACKET_INCOMPLETE  whose value is 0.
The variable which accepts the return value is result in libnetwork/Session.cpp at line 421 in the function doRead:
ssize_t result = message->decode(s->m_data.data(), s->m_data.size());

and the program will enter into a if-else cluse:
if (result > 0){
    ...
}
else if (result == 0)  {
    s->doRead();
    break;
}
else {
    ...
}

Because the value of result is 0, so here the program will call the function doRead recursively. If I delete this call, the problem will not occur anymore.
else if (result == 0)  {
    // s->doRead();
    break;
}

So I think the reason maybe the developers forget to release certain memory before the return statement if the packet is not decoded correctly!
To Reproduce
Steps to reproduce the behavior:

Construct a P2P packet which claims to have a big length (set a big value for variable m_length)
Continuously send the packet to a running node
The node will consume the memory continuously and crash.

Expected behavior
By handling the abnormal packets correctly, the memory cost will not sustainably increase and the node will not crash.
Screenshots
I have give the screenshots of the memory usage of the node in the description part.
Environment (please complete the following information):

OS: Ubuntu 16.04
FISCO BCOS Version: v2.7.2

Additional context
None!

We will follow up on this issue and resolve it in 2.8.0.


Number chat data is over lapping

Cant we put each in 2 table rows and get it fixed ?

We can't use the table as these two text are rendered inside a SVG, The problem occurs due to font size being dependent of the width of the Chart in number charts. We might be able to fix the issue by introducing a font size attribute to the chart configuration.

Cant we make them 2 SVGs and have both in a table?

I think if we give width height to the wrapper (not to the chart) this overlap would not happen and it will scale accordingly. Shall we do this restrict to number charts?
`

`


[FR] use integers at purchase order export if unit is pieces

Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find a similar feature request

Problem statement
hi,
We try to use the InvenTree purchase orders to track our purchases at different suppliers and in general this works very well but there is one problem if you want to get the data into the suppliers systems: they sometimes only allow integers as quantity and will just reject any other kind as value even if it is a .0 float. Most notable interface where we noticed it was the bom-import tool of Digi-Key if we used the unmodified purchase order export list.
Suggested solution
In case the quantity unit is pieces the export should use integer values instead of floats as it is very unlikely that you can use/order half or quarter pieces of anything.
Describe alternatives you've considered
If it is needed to also reflect decimal values for cases I am not aware of it could be also an idea to allow the use of supplier based export templates which define which values, formats and maybe even columns are needed for the data transfer.
Examples of other systems
No response
Do you want to develop this?

[ ] I want to develop this.

@T0jan I think that this old issue would potentially be a cleaner implementation

@SchrodingersGat cleaner yes, but also more restrictive. I can imagine that there are use cases where one wants to track half, quarter, etc. pieces. E.g. to remind someone that only half a cake is left in the fridge :smile:

just noticed I am to focused on CSV. if you do an XLS or XLSX export the quantity will be an integer by default. so yeah there is a bit inconsistency in how pieces are handled in the export, but at least our problem with the data transfer is solved for now.


Skipping past the end of an OGG file causes infinite loop.

When I run the following code, "Skipping..." is printed but not "Successfully skipped 31 seconds of audio!".
use rodio::{source::Source, Decoder};
use std::fs::File;
use std::io::BufReader;
use std::time::Duration;

fn main() {
    // metronome120.ogg is an ogg file with 15 measures of a 120 BPM click track
    // (hence the file is only 30.0 seconds long).
    let file = BufReader::new(File::open("src/metronome120.ogg").unwrap());
    let source = Decoder::new(file).unwrap();

    println!("Skipping...");
    let _ = source.skip_duration(Duration::from_secs_f32(31.0));
    // The line below will never print, instead the program just locks up on the line above.
    println!("Successfully skipped 31 seconds of audio!");
}

Note that this seems to happen only with ogg files. When I try this with a WAV file instead, the program prints the second line as expected. It also only happens when going "out of bounds" of the ogg file--if I only skip 5 seconds, then the program works also.
Here is a zip containing a minimal example: rodio-bug.zip
I am using version 0.14.0 of Rodio on Windows 10.

Doing some more testing shows that this doesn't happen with mp3 or flac files, only ogg. Maybe this is a lewton bug?

I think I figured out the problem, do_skip_duration doesn't check if the frame length is zero, which indicates that there's no more data left in the Source, causing it to try and skip zero samples forever. I've created a PR to fix this: #388


Not able to install anything in project directory using yarn like Redux , react-bootstrap, react-router etc

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Step 1
Step 2
...

Context

Your Environment

NodeJS Version (v12):
Operating System and Version (e.g. Ubuntu 14.04):
Browser Information:

If you install the frontend packages inside packages/app and the backend packages inside packages/backend.
Also the issue needs more information with logs and errors.

Actually I was trying to install outside packages/app. Now it's working
Thank you


reproducing the result

Hello, thank you for the great work!
I'm trying to reproduce the POPE / CHAIR results.
when I evaluate the POPE popular set on LLaVA-1.5, I get the result
Accuracy: 0.868
Precision: 0.8780821917808219
Recall: 0.8546666666666667
F1 score: 0.8662162162162163
Yes ratio: 0.4866666666666667

which is a bit higher than issued in README.md.
the result was the same when i set the random seed to 42(default), or not set.
is there any other possibility affecting the result?
I have also run the LLaVA-1.5 CHAIR evaluation:
CHAIRs    : 49.9
CHAIRi    : 14.1
Recall    : 78.3
Len       : 94.7

this is worse than any baseline from Table 1.
can you please share the 500 random COCO list to reproduce the paper result?

Thank you for replying,
I will keep trying on reproducing the POPE result.
Also I sent you an email requesting the list.
Thank you for sharing the list.


[FontIcon] "color" property having no effect

I'm having no luck trying to use the color and hoverColor properties on the FontIcon to change the icon's color. When I look in the devtools, the element gets a "color" attribute, but is never used in the CSS (the default color of "rgba(0, 0, 0, 0.4);" is what's there instead).
<FontIcon color='white' hoverColor='yellow'>save</FontIcon>

Versions
Material-UI: 0.15.0-alpha.2
React: 0.14.7
Browser: Electron (Chrome)

@ndugger It looks fine in the docs: http://www.material-ui.com/v0.15.0-alpha.2/#/components/font-icon
Can you provide a sample component to reproduce the issue?

Yeah, it does look fine in the docs. Are the docs using the version that I am?
What do you mean a sample component; would you like me to make a jsfiddle, or something? I can do that. Let me know.

Ahah! Found out why mine doesn't work. It's wrapped inside of a ToolbarGroup, which is inside of a ToolBar. Something about the ToolBar must be overwriting my ability to style the icon.
If I move the FontIcon outside of the toolbar, it works as expected.

@nathanmarks Any thoughts now that I've found the special case where this is true? It seems that the global theme takes over if the icon is inside of a toolbar.

@ndugger That's annoying, thanks for figuring it out.
It's due to some awful magic that needs removing from ToolbarGroup. With some simple styles though the ToolbarGroup is not even needed.

Hello there,
Actually I also have this problem by using an SVG icon in a MenuItem.
I had to use the style property to color my icons :
<IconMenu iconButtonElement={menuButton}>         <MenuItem primaryText="My item" leftIcon={<BookmarkIcon style={{fill: 'red'}}/>}/> </IconMenu>
Maybe it is the same issue ?
Thank you !

@andrejunges - thanks for picking this up. I've had a look at your PR, but I'm commenting here, since, as you point out, it's a hack in FontIcon to fix issues in ToolbarGroup.
As @nathanmarks pointed out, there's some really hacky logic in ToolbarGroup:

I'm not totally convinced it should be opinionated about default colors for wrapped components - I get that it makes certain components look nice in Toolbar by default, but it isn't being applied consistently - only a small subset get styled, so a dev is gong to have to style others anyway.

It is unnecessarily reimplementing the hovorColor feature of FontIcon.

There is also the question of what should take precedence in components, style or specific style props. The root cause here is that ToolbarGroup sets FontIcons style, which overrides its color related
props.
Since changing 1) would be a breaking change, and there is already work started to redesign AppBar & Toolbar, I suggest we address 2) by:

Removing the FontIcon hover logic from ToolbarGroup
Using the color and hovorColor props
Ensuring those are overridden if set on the child

That also neatly avoids having to solve the precedence problem. :)

@mbrookes I was trying to avoid refactoring these other components (ToolbatGroup, ListItem`) but I agree with you that changing those would be a better and cleaner option for us..

@mbrookes @andrejunges
Until this is sorted I would just use a flex container tbh.


Add recurrent transactions

Monthly transactions would be great to automatically handle recursive expenses as rent, salary, phone contract, etc...
Would need a starting date, potentilly an ending date. Need to update backend with data structure first. Ticket as been created : https://github.com/sebastienbarbier/seven23_server/issues/26.

Recurrent transaction will be stored in transaction meta data, and fully handle on the front-end side. This solution does not involve any adaptation on db, sync, migration, and export/import process 🙌.

Has been release 🎉


Event Failures

Related: #https://github.com/choojs/nanomorph/issues/89
I created tests for the events listed in https://github.com/choojs/nanomorph/blob/master/lib/events.js#L32
The following events fail to parse from HTML attribute. I believe this is a problem in bel. But I am not sure where this problem originates.

onfocusin
onfocusout
ontouchcancel
ontouchend
ontouchmove
ontouchstart
onunload

The first two are listed as problematic and fail

Note: these event may not work as expected in Chrome, Safari and Opera 15+ using the JavaScript HTML DOM syntax. However, it should work as an HTML attribute and by using the addEventListener() method (See syntax examples below).

onfocusin
https://www.w3schools.com/jsref/event_onfocusin.asp
onfocusout
https://www.w3schools.com/jsref/event_onfocusout.asp
These events are listed as Editor's Draft(Non-stable version), but should work in chrome. They also fail.
ontouchcancel
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ontouchcancel
https://developer.mozilla.org/en-US/docs/Web/Events/touchcancel
ontouchend
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ontouchend
https://developer.mozilla.org/en-US/docs/Web/Events/touchend
ontouchmove
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ontouchmove
https://developer.mozilla.org/en-US/docs/Web/Events/touchmove
ontouchstart
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ontouchstart
https://developer.mozilla.org/en-US/docs/Web/Events/touchstart
This event should only work on the body tag, but also seems to fail.
onunload
https://www.w3schools.com/jsref/event_onunload.asp
Should only work on the body tag. Testing on the body tag fails.
I will submit a pull request that contains the event tests.
Note: Failing tests have been commented out.

@him2him2 I think you're right. I also believe it's a problem in bel which prevents the use of custom events as well. For instance, hyperHTML uses addEventListener to attach events after parsing out the on prefix.
bel does not do this so projects based on bel can't pass the declarative-event tests at https://custom-elements-everywhere.com/. So far, I've tested bel, choo and gza but none pass.

I also believe it's a problem in bel which prevents the use of custom events as well. For instance, hyperHTML uses addEventListener to attach events after parsing out the on prefix.

If we were to use this method, how would we access the event handlers? Right now we can iterate over the list, and access it as for example an onclick property on the object. Afaik using event listeners prohibits that.
An idea might be to only attach listeners that aren't registered in the list through .addEventListener(), but then we'd have diverging behavior because the listeners cannot be copied over.
Ideally the DOM spec would allow enumerating listeners, but afaik it's not possible at the moment. I'm keen for someone to prove me wrong though, as I agree using .addEventListener would definitely be a preferred method.

I've been trying some stuff out with hyperHTML. I noticed it's using handleEvent (blog post here). You might be able to keep all handlers in one collection and only copy the collection by reference instead of doing the physical copy because everyone element would have a handleEvent method with a default noop handler.

@AutoSponge that's a really cool article! We should try out some stuff with that for sure!

Woah that is super neat! Thanks for sharing :D

@AutoSponge Thats a great blogpost! Would you be willing to talk about this some more in irc sometime? https://www.irccloud.com/invite?channel=%23hypermodules&hostname=irc.freenode.net&port=6697&ssl=1 (ping bret) . This seems super useful for https://github.com/choojs/nanocomponent as well

I'll work on a branch and see if I can make it work then we might have something to talk about :)

Issue in OP could also be related to https://github.com/choojs/nanomorph/blob/master/lib/events.js


UE5.1 Error when sending bake to Azure

Hello. In the process of putting Acoustics into Lyra and after setting up everything with Azure the “Submit Azure Bake” button becomes clickable and when I hit I get this error:
LogPython: Error: Value cannot be null.
Parameter name: Need a valid VOX file
LogPython: Error: Triton.BakeService

@FireCode117 Please check that you have generated a VOX file by using the Probes tab to calculate the probe locations and voxelize the scene.  This Probe calculation step needs to complete successfully before submitting to Azure for a bake operation.

@FireCode117 Please check that you have generated a VOX file by using the Probes tab to calculate the probe locations and voxelize the scene. This Probe calculation step needs to complete successfully before submitting to Azure for a bake operation.

Thank you this helped, however after submitting the bake I get an error on the azure portal saying that the job failed due to a quota limit with the pools and that I should request a qutoa increase. I have no idea on how to successfully go about the request process and none of the videos on project acoustics goes into much detail about it

@FireCode117 Please consult the documentation on the Project Acoustics doc site: upgrading-your-quota
This documentation link redirects you to the Azure site for managing your quota.


getapplicationlog error

when i was doing
curl -X POST
http://seed5.cityofzion.io:8080
-H 'Content-Type: application/json'
-d '{
"jsonrpc": "2.0",
"method": "getapplicationlog",
"params": ["0xd1c7ea5f406e0f3ade3e8a9cd575a7b08a73f440ede947d16c325c09eaedb33e"],
"id": 1
}
its was giving :: {"jsonrpc":"2.0","id":1,"error":{"code":-100,"message":"Unknown transaction"}}
is there any issues with 'Cityofzion' SEED node?

this is the wrong place to get help for such issues. Please use discord.


Number guessing game kaveen laksitha

Description

Here Add your Description of Project.

Add GIF/ScreenShot

Create a GIF of your Working Project and Add it for a quick PR review.

Task Checklist
Put x in between the square brackets without any spaces to tick your Task.

[x] You have created a new branch for contribution.
[x] Added README.md for your project in a specified folder.
[x] Add Demo in GIF or Screenshot form.
[x] You are Registered Officially for HacktoberFest 2021 as Partcipant.
[x] Followed Contribution Guidelines.

Issue
Issue no: 88.

@KaveenLaksitha Can you modify one change?
The input field is not clearing the value after clicking on the button and you have to do it manually. But it's better if you can implement the thing which just wipes out the input field after clicking the button.

@Harshil-Jani thanks. I'll do that


Declare write_packet function as const

Otherwise llvm 17 complains
_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/python3.11 -c src/av/container/pyio.c -o build/temp.macosx-10.9-x86_64-cpython-311/src/av/container/pyio.o
  src/av/container/pyio.c:3329:157: error: incompatible function pointer types passing 'int (void *, const uint8_t *, int)' (aka 'int (void *, const unsigned char *, int)') to parameter of type 'int (*)(void *, uint8_t *, int)' (aka 'int (*)(void *, unsigned char *, int)') [-Wincompatible-function-pointer-types]
   3329 |   __pyx_v_self->iocontext = avio_alloc_context(__pyx_v_self->buffer, __pyx_t_9, __pyx_t_10, ((void *)__pyx_v_self), __pyx_f_2av_9container_4pyio_pyio_read, __pyx_f_2av_9container_4pyio_pyio_write, __pyx_v_seek_func);
        |                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/runner/miniforge3/conda-bld/av_1725460421270/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/libavformat/avio.h:420:25: note: passing argument to parameter 'write_packet' here
    420 |                   int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
        |                         ^
  1 error generated.
  error: command '/Users/runner/miniforge3/conda-bld/av_1725460421270/_build_env/bin/x86_64-apple-darwin13.4.0-clang' failed with exit code 1
  error: subprocess-exited-with-error

Seems like upstream declares it as const in 7.0
https://www.ffmpeg.org/doxygen/7.0/avio_8h.html#a50c588d3c44707784f3afde39e1c181c
But not in 5.0
https://www.ffmpeg.org/doxygen/5.0/avio_8h.html#a853f5149136a27ffba3207d8520172a5
or 6.0
https://www.ffmpeg.org/doxygen/6.0/avio_8h.html#a853f5149136a27ffba3207d8520172a5


[sandbox][evomorphey-work] Serliog

@Alkamal30 need to check, if this changes are broke your React


memory_limit

Seems that when processing images in a loop with Intervention/Image memory tends to run away...  Even when using destroy() method at the end of each loop.    It's easy enough to disable memory_limit in php, but when processing large batches of images memory eventually exceeds cpu memory.   Any thoughts on this?

I had same problem with loop:

one Image object
backup() before loop
in loop resizing sending to s3
at the end of loop reset()
after loop destroy()

Memory was going away pretty quick.
When I changed that to:

destroy() before loop
in loop new object
at the end of the loop destroy

Suddenly there is no problem.


Add a target value for attributes

Along with the current ranking, record a target value for each attribute.
Work Breakdown:

[x] add tests to the measurement api to support multiple ratings (as well as still support single ones)
[x] update model to store multiple ratings for a given measurement
[x] update model to include a rating type (ie. Current vs Target)
[x] refactor existing app calls to work with the new multi-rating interface
[x] update RatingList component to include a multi select. Intent is to be able to label a given rating as:

current
target
current / target
nothing

[x] add validation to the form so the user know when they have finished making the right selections
[x] hook the new component into the multiple-rating api to persist the selection

.....really puzzled on how to best to do the ui for this one.
was thinking maybe just some check boxes on each rating for now and evolve from there.

Re: UI - had an idea yesterday that we could show a floating footer once a rating is selected. It would horizontally show n buttons to select a target. Use of colour will make it easy to link the button with the full description which is visible in the main rating window.
I think a floating footer would work on mobile as well as desktop.
It can be optionally dismissed.

What do you think @rloomans ?
https://measuremate-pr-96.herokuapp.com/

Seems a little inconsistent, but it works for now... we'll test it out.

the tabs on the right now update to a tick when you select both a rating and a target. subtle but I think does the job for now.


CTC instead of HMM

http://www.cs.toronto.edu/~graves/icml_2006.pdf
https://www.tensorflow.org/versions/r0.11/api_docs/python/nn.html#conectionist-temporal-classification-ctc
We already have CTC implementation in tensorflow. So could we try local conditioning based on CTC?

I'd prefer to not use a separate HMM for the alignments, so yes, any
alternative is welcome :)
On Fri, Oct 21, 2016, 21:17 Nako Sung<EMAIL_ADDRESS>wrote:
http://www.cs.toronto.edu/~graves/icml_2006.pdf
https://www.tensorflow.org/versions/r0.11/api_docs/python/nn.html#conectionist-temporal-classification-ctc
We already have CTC implementation in tensorflow. So could we try local
conditioning based on CTC?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ibab/tensorflow-wavenet/issues/160, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADCF5iNrRWrPPlgoLvivm3Lp_QwvWDSjks5q2WQugaJpZM4Kdt6f
.


Add merge_method option for a project

The feature I would like to propose is the ability to specify the "merge_method" for projects. The implementation should be achievable using this API: https://docs.gitlab.com/ee/api/projects.html#edit-project by setting the "merge_method" attribute.

Hello @Panicali . This is already supported because merge_method is part of Project settings. The config would look like this:
projects_and_groups:
  group_1/project_1:
    project_settings:
      default_branch: main
      merge_method: rebase_merge
      .... # other project settings supported by the Edit Project API

Going to close this issue. Please re-open if this still appears to be a problem or not working.


fix: broken link in README.md

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@hansnow Thanks😁


We need to support versioning in Hive DB. Please help

Question
We had 4 keys in Hive DB and app is live. We changed the requirement and updated Hive DB with 4 more params.

Same challenge to me :D

https://docs.hivedb.dev/#/custom-objects/generate_adapter?id=updating-a-class
Look at this, and this #640

I had this same problem on a personal project, because I needed to make the current model definitions compatible with any future version, in any order, without losing any previous information while loading.
So I implemented this architecture for model versioning using Flutter and Hive. The idea is to read and write data respective to each version model and deliver it transparently using a model interface. That way, if you need to update the current model, you just need to create a new version of it and update the respective adapters. The OOP principles will force the developer to create an adapter for each existing field, automatically.
And this implementation is 100% transparent to any project.
And you can use all code generators available with flutter pub run build_runner build (In the example i used JsonSerializable).

Here is my GitHub repository containing a short example of how to implement it:
https://github.com/rafaelsetragni/hive_versioning


ESP32 CAN BUS same Packet

I'm realizing tests of a car's can bus, by reading OBD2 informations. At the beggining I recieve diferent data but then they stuck on the same values.
Someone knows what's happenning and how can I solve it?
I'm using a sn65hvd230 and a ESP32.

I made a likely oberservation about "same data", but my conclusion is different:

As long as frames are sent by the other node, everything looks fine
But if the other nodes stops sending frame, still the queue acts like there are frames received
_ This "new" frames are not there in my scenario and the data is the one from the real last recevied

To cross check this, I reverted it to the variant from the demo
https://github.com/nhatuan84/esp32-can-protocol-demo
With this one, the "ghost" frame are gone. Looks for me little like that the queue is not properly deleting the last processed one.


prevent build breakages

Hi @biilmann @erquhart @eliwilliamson and team,
First up love what you guys are doing with netlify/staticgen - big fan of the JAM stack!
In two previous PRs I made (#340, #348), builds broke (1, 2) due to some repo moving and not related to the change I was making.
Since upstream dependencies (repos out of staticgen's control) could break you, it would be nice to have some sort of cron build checker going on - it doesn't have to deploy, just ensure build does not break and open issue if it does.
Alternately, you could have a TravisCI project which allows daily cron builds but more frequent than daily would be better.
Not sure if this is already done - or on the cards?

I believe the breakage is always due to a (re)moved GitHub repo, so the request results in a redirect or 404, and we break on both. We could just catch the error during the build, maybe print a warning, and keep moving.
This would still cause moved or removed repos to simply be excluded from the output, but I guess we could just check the build output every once in a while for those warning messages.

Fixed in #411.


Bump docfx to 2.62.2 and dotnet sdk to 7.0.201

Closes #13

Codecov Report

Merging #14 (aa07cfd) into master (039e5cd) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##           master      #14   +/-   ##
=======================================
  Coverage   48.85%   48.85%
=======================================
  Files          30       30
  Lines        1224     1224
  Branches      121      121
=======================================
  Hits          598      598
  Misses        600      600
  Partials       26       26


Create Chicago CTA Data API Extraction Code

at end of ticket create new issue for GTFS if needed and communicate

GTFS static/scheduled feed is pretty easily obtained for all three cities without needing API key. Putting off GTFS live feed extraction for now.
Checklist for handling GTFS feeds in advance of 4/16 meeting:

[ ] Download static feed to local directory to start, saving routes for repeat download if necessary (New York MTA train, New York MTA bus, Chicago CTA train, Chicago CTA bus, Chicago Metra, Portland TriMet)

[ ] note: stop_times.txt can be larger than GitHub max file size so should be kept locally or obtained only via API request directly into memory

[ ] Write code (i.e. use existent library code) to load a particular feed into memory as geoPandas dataframes or similar manipulable table

[ ] create primary keys of city_agency_mode

[ ] Write test for load-in process
[ ] Write code (i.e. use existent library code)to visualize feed routes (ideally color coded for train lines)
[ ] save shapes.txt as geometry line objects

Resolved by later pull requests; deleting branch since no longer needed


Code reformat

@grzanka Another, this time small, testing improvement ready to review 😄

Solves #87

resolves #87

Current coverage is 42.03% (diff: 58.33%)

Merging #108 into master will not change coverage

@@             master       #108   diff @@
==========================================
  Files             5          5
  Lines           502        502
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            211        211
  Misses          291        291
  Partials          0          0

Powered by Codecov. Last update 232b1bf...ffa335a


Failure on valgrind check

Hi, Felipe. I ran a valgrind check in my code, and somehow there was an invalid read in the function iftSICLE_CalcTStats.
This is a snippet of the code that I used:
iftSICLEArgs *sargs;
iftSICLE *sicle;

sargs = iftCreateSICLEArgs();
sargs->n0 = num_init_seeds;
sargs->nf = num_superpixels;
//sargs->connopt = IFT_SICLE_CONN_FSUM;

sicle = iftCreateSICLE(img, NULL, p_mask);
v_mask = iftRunSICLE(sicle, sargs);
iftDestroySICLEArgs(&sargs);
iftDestroySICLE(&sicle);

num_init_seeds was 15800 and num_superpixels was 800. The image and mask are volumetric.

I think data->root_map is nil for pixels outside the ROI.

The command iftSICLE_InROI(sicle, v_index) doesn't prevent that. Sometimes, some indexes are negative in the root map but still defined in the ROI.


NSComparisonPredicate tests fail on OSX

[ RUN      ] NSComparisonPredicate.NSAnyPredicateModifier
2016-08-01 10:46:01.418 Foundation.UnitTests.exe[4412:468597] -[NSConstantValueExpression compare:]: unrecognized selector sent to instance 0x7fae9b245360
unknown file: Failure
Unknown C++ exception thrown in the test body.
[  FAILED  ] NSComparisonPredicate.NSAnyPredicateModifier (2 ms)
[ RUN      ] NSComparisonPredicate.NSAllPredicateModifier
2016-08-01 10:46:01.421 Foundation.UnitTests.exe[4412:468597] -[NSConstantValueExpression compare:]: unrecognized selector sent to instance 0x7fae9b201550
unknown file: Failure
Unknown C++ exception thrown in the test body.
[  FAILED  ] NSComparisonPredicate.NSAllPredicateModifier (7 ms)
[ RUN      ] NSComparisonPredicate.NSAllPredicateModifier2
2016-08-01 10:46:01.430 Foundation.UnitTests.exe[4412:468597] -[NSConstantValueExpression compare:]: unrecognized selector sent to instance 0x7fae98c2f640
unknown file: Failure
Unknown C++ exception thrown in the test body.
[  FAILED  ] NSComparisonPredicate.NSAllPredicateModifier2 (2 ms)
[ RUN      ] NSComparisonPredicate.NSContainsPredicateOperatorType
Foundation/NSComparisonPredicateTests.m:633: Failure
Value of: [comparisonPredicate evaluateWithObject:nullptr substitutionVariables:nullptr]
Actual: false
Expected: true
FAILED: Comparison failed.
[  FAILED  ] NSComparisonPredicate.NSContainsPredicateOperatorType (1 ms)
[ RUN      ] NSComparisonPredicate.ArchiveAndUnarchiveObject
unknown file: Failure
Unknown C++ exception thrown in the test body.
[  FAILED  ] NSComparisonPredicate.ArchiveAndUnarchiveObject (0 ms)
[ RUN      ] NSComparisonPredicate.copy
unknown file: Failure
Unknown C++ exception thrown in the test body.
[  FAILED  ] NSComparisonPredicate.copy (0 ms)

https://github.com/Microsoft/WinObjC/issues/747 has a similar issue re: archiving/unarchiving


error in documentation

I found an issue with the documentation:
instead of
    const inputProps = {
      placeholder: 'Type a programming language',
      value,
      onChange: this.onChange
    };

it should be
    const inputProps = {
      placeholder: 'Type a programming language',
      value:value,
      onChange: this.onChange
    };

Actually it is correct. I is just a new property shorthand in ES6
https://alligator.io/js/object-property-shorthand-es6/

No error


dask scheduler num_workers

See here for context.
We need to consider how we easily control the number of threads, processes or workers that the dask scheduler uses - particularly for users targeting a shared resource such as a server or cluster.
Ping @marqh

Fwiw if a Distributed scheduler is defined then that will be used by default, so the current implementation will work with either the threaded / distributed scheduler depending on what the user has done.
Defining a way to pass arguments into the scheduler is definitely useful. I feel like I would want the default settings to use 100% of available resources and let dask / my cpu worry about the consequences, but maybe that's naive.

I briefly discussed this with @marqh, and he mentioned some of the multi-user systems where Iris is deployed and used.
I agree that we should test how dask behaves on these systems before going 'live', but I still believe that if you're running a multi-user system it's your responsibility to ensure that your users cpu access is managed. Making our code slower by default seems wrong to me, but I appreciate that we may need to be pragmatic...

My feeling about this is that Iris should run single thread/process by default, with users needing to opt in if they wish to use the multiprocess goodness that dask offers. This needn't be the default long-term, but I think it is the most appropriate introductory approach.
I have a couple of reasons to back up this assertion:

many Iris users may not be used to parallel processing and may be put out if an innocent processing command given to Iris uses up all the available compute resource and physical memory on their machine, causing it to crash.
Python multiprocessing seems to disregard the amount of resource offered by slurm, so if we open up unrestricted multiprocess capability (both in terms of being on by default in Iris and in terms of not heeding slurm limits) then we may enter a realm where Iris is regularly taking out scalable compute resource through numerous, concurrent, resource unrestricted uses of Iris. This would look bad.

Of course once the two concerns above are resolved then we can reconsider the default multiprocess behaviour in Iris.

In #2457 @bjlittle suggested the pattern of having iris.options. I wonder if we could make use of that here, both for setting the number of workers and setting the scheduler. Consider:
with iris.options.parallel(num_workers=6, scheduler='multiprocessing'):
    iris.load('my_dataset.nc')

Or
iris.options.parallel(num_workers=6, scheduler='multiprocessing')
iris.load('my_dataset.nc')

We can get allowed values for scheduler from the options available in dask. We could even set this to point to the IP address and port of a running distributed scheduler and use that in all following user code:
iris.options.parallel(scheduler='<IP_ADDRESS>:8786')

In _lazy_data we could interface with these options as follows:
def as_concrete_data(array):
    if is_lazy_data(array):
        num_workers = iris.options.parallel.get('num_workers')
        scheduler = iris.options.parallel.get('scheduler')
        result = array.compute(num_workers=num_workers, get=scheduler.get)
        ...

Alternatively, we could use dask.set_options to apply these options and call this in iris.options to globally set the state of dask for the lifetime of this session.
Thoughts please people!

My feeling about this is that Iris should run single thread/process by default, with users needing to opt in if they wish to use the multiprocess goodness that dask offers. This needn't be the default long-term, but I think it is the most appropriate introductory approach.

I think this represents a reasonable approach
I would advocate a '1' being explicitly set somewhere and I would like to make time to investigate the potential implications of selecting a different, suitably small number, such as 'Three' (it's a magic number ;)
as this might provide some neat benefit with limited risk

Alternatively, we could use dask.set_options to apply these options and call this in iris.options to globally set the state of dask for the lifetime of this session.

I don't know how clear this would be
As part of the documentation for the release, I think we must provide a page on dask.  As part of this, we should explore scenarios where I want to reconfigure dask in a certain way.  A couple come to mind:

I want to have dask use all available resources on this host
I want to have dask use most of the available resources on this host, but it is my laptop, so leave enough to keep my browser session and chat windows working smoothly

So, all in favour, keen to contribute to the thought process and implementation

such as 'Three' (it's a magic number ;)

Unbelievable :musical_note:

Alternatively, we could use dask.set_options

I don't know how clear this would be

The methodology preferred by dask to set runtime options is dask.set_options, so I think using it is worthwhile. It is the approach I ended up following in #2462, which does hide calling dask.set_options behind an Iris API, but I'm not convinced that's a bad thing, especially if we document what Iris does and how users can also make use of this. I also like the idea of the documented parallel-processing examples :+1:


How to use the interactive tool on End2End model?

Currently, we only support pipeline agents. We are plan to support the end2end model as well in the future. You may look at https://github.com/thu-coai/ConvLab-2/blob/master/deploy/server.py and adapt end2end models.

Thanks


glyphsLib treats some quoted values as numeric

The glyphsLib parsing/casting code treats some values as numeric although they are stored in (at least some versions of, e.g. appVersion 998) .glyphs files as quoted strings.  These are:
appVersion
panose values in list
weightClass value
Believing they are numeric, glyphsLib writes these values out without quotes.
This difference in representation means glyphsLib cannot read and then write files without modification.  When using glyphsLib to make bulk changes to .glyphs files, this leads to extraneous changes in the diffs.  Glyphs appears to read these values in ok when unquoted.
On the other hand, it seems like panose and weightClass (if not appVersion) are indeed numeric.  It seems consumers of the parsed data returned by glyphsLib should be able to continue to expect them to be numbers and not strings. So it's not clear glyphsLib is at fault here.
In addition, glyphsLib represents all character data in strings under 0x20 as octal escape sequences.  This causes tabs in strings to be converted to the sequence "\011".  Perhaps glyphsLib should make an exception for tab.

Let me summarise what I've understood so far from the discussion at https://github.com/googlei18n/noto-source/pull/85.
It would be great if Georg (@schriftgestalt) could find some spare time to comment on each of these points.
There seems to be two kinds of custom parameters: the built-in ones which are supported by Glyphs.app and whose type (whether string or numeric) is known, and arbitrary ones that are user-defined and, because their type is not known in advance, are implicitly treated as strings.
For example, xHeight is not one of the supported custom parameters; it's actually a public property of font masters, and the type is numeric (unquoted).
xHeight = 500;

The Noto fonts however sometimes store xHeight as an instance custom parameter in addition to the homonymous xHeight master property. In the case of the instance custom parameter, even though its value only contains decimal numbers, Glyphs.app stores it as a quoted string: that's because all the non-supported custom parameters' values are treated as strings; and in order to make it clear that their type is string and not integer or real, Glyphs.app quotes them when they look like a number. E.g.:
name = xHeight;
value = "530";
}

Actually, it's sufficient that such unsupported custom parameters values only start with a digit for them to be wrapped in quotes. They are not quoted if they only comprise letters, or they contain digits but not in the start position.
{
name = all_letters_unquoted;
value = abc;
},
{
name = starts_with_digit_quoted;
value = "1abc";
},
{
name = contains_digit_unquoted;
value = abc1;
}

The types for the supported custom parameters appears to be registered in a plist file inside the Glyphs.app bundle:
/Applications/Glyphs.app/Contents/Frameworks/GlyphsCore.framework/Versions/A/Resources/customParameterTypes.plist
I assume that any custom parameter which is not listed there, will be implicitly treated as a string value by Glyphs.app.
For example, the above mentioned xHeight is not in there (as it's not actually a custom parameter but a property of masters).
However, I noticed some inconsistencies.
For example, the weightClaass instance custom parameter, which supposedly is among the supported ones (it shows up in the drop-down menu and is used extensively in the Noto fonts), is not present in this list, even though for some reason the equivalent openTypeOS2WeightClass is present, and has the correct integer type. Because weightClass custom parameter doesn't have an explicit type assigned, it is stored as a quoted string, even if it really should be an integer:
{
name = weightClass;
value = "500";
}

Furthermore, the codePageRanges (and the equivalent openTypeOS2CodePageRanges) and the panose custom parameters (and maybe other similar ones) are simply marked as array type; but the plist does not specify what type the array items should be; this may explain why codePageRanges or panose values are being treated as quoted strings even though one would expect them to be treated as intengers.

Similarly to the unsupported custom parameters, the values of the userData dictionary also seem to be stored as quoted strings when they start with , I guess following the same logic: i.e. unknown type, string type implied, starts with digits, thus wrap it in quotes.
userData = {
GSDimensionPlugin.Dimensions = {
"0A718E2F-231D-484E-9433-16A5230D2CE8" = {
HH = "158";
HV = "194";
OH = "158";
...

Finally, the .appVersion seems to be always treated as a string by Glyphs.app (quoted, since it usually starts with a digit); so we need to change our glyphsLib.casting._TYPE_STRUCTURE to treat .appVersion as a string instead of an integer.

I already fixed the weightClass and codePageRanges data types in version 2.5.
The userData tries to keep the data type of the values you put in. The GSDimensionPlugin.Dimensions are just strings that happen to look like numbers. But if you set the values from a script or open an .ufo and some of the font info is stored in the userData, the type should be kept.

I think this should be fixed now.


Add Python 3.11 to GHA

Signed-off-by: Gábor Lipták<EMAIL_ADDRESS>

https://github.com/apache/arrow/issues/14572
https://arrow.apache.org/docs/python/install.html#python-compatibility

Thanks for the PR, @gliptak. I see why you closed due to pyarrow not yet supporting python 3.11. Once that is added, we'll be glad to take a look at adding 3.11 to the GH checks, though.
Thanks again!


Error after upgrading Homeassistant Operating System to 12.2, Entity None (<class 'custom_components.tuya_local.climate.TuyaLocalClimate'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method

Logger: homeassistant.components.climate
Source: components/climate/__init__.py:363
integration: Climate (documentation, issues)
First occurred: 11:22:21 PM (18 occurrences)
Last logged: 11:22:25 PM

Entity None (<class 'custom_components.tuya_local.climate.TuyaLocalClimate'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/make-all/tuya-local/issues
Entity None (<class 'custom_components.tuya_local.climate.TuyaLocalClimate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/make-all/tuya-local/issues
Entity None (<class 'custom_components.tuya_local.climate.TuyaLocalClimate'>) implements HVACMode(s): off, heat, cool, fan_only, dry and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/make-all/tuya-local/issues

upgrade tuya-local version, solved the problem. Homeassistant OS takes full responsibility for this problem :)


ci: release please config sync check job

https://github.com/googleapis/google-cloud-java/pull/8525

This needs to wait for GitHub Actions to come up.

Now GitHub Actions work.


Can't get it up

Trying to import xml's and get the error:
"ERROR #6301 Line: 3 Offset: 34 ERROR #5883: Item '%SourceControl.Git' is mapped from a database that you do not have write permission on. Will skip this item."
I'm running on Windows 10 server with full privileges in Cache and in Windows. Export and Import of other cls files (not part of this pull) work fine. Any suggestions?

Check readme, section Installation in Caché, step 1: Enable write-access to CACHELIB database via the Management Portal. (This is required for csp-page with settings import.)

Thanks for the input, but I think I've got this set up already.  See attached screen shots. Is there any other place except  System > Security Management > Resources where this needs to take place?

@SaturnCorp .
Yes, you should enable RW-access to CACHELIB in Management Portal -> System Administration -> Configuration -> System Configuration -> Local Databases -> CACHELIB.
Clear checkbox near "Mount Read-Only"


Wront temperature

Describe the bug
Wront temerature on termostat.
Expected behavior
the temperature shown is 5 times higher than it actually is.
Screenshots

Home Assistant Version
2022.4.2
Diagnostics for integrations and devices
{
"home_assistant": {
"installation_type": "Home Assistant Core",
"version": "2022.4.2",
"dev": false,
"hassio": false,
"virtualenv": true,
"python_version": "3.9.2",
"docker": false,
"arch": "armv7l",
"timezone": "Europe/Warsaw",
"os_name": "Linux",
"os_version": "5.15.32-v7+",
"run_as_root": false
},
"custom_components": {
"google_home": {
"version": "1.9.10",
"requirements": [
"glocaltokens==0.6.3",
"google-api-python-client==2.38.0"
]
},
"webrtc": {
"version": "v2.3.0",
"requirements": []
},
"sonoff": {
"version": "v2.4.7",
"requirements": [
"pycryptodome>=3.6.6"
]
},
"localtuya": {
"version": "3.2.1",
"requirements": []
},
"diskspace": {
"version": "0.8",
"requirements": []
},
"securityspy": {
"version": "1.1.3",
"requirements": [
"pysecspy==1.2.1"
]
},
"tuya_v2": {
"version": "1.5.0",
"requirements": [
"tuya-iot-py-sdk==0.4.1"
]
},
"taipower_bimonthly_cost": {
"version": "0.51.5",
"requirements": []
},
"xiaomi_gateway3": {
"version": "2.0.9",
"requirements": [
"zigpy>=0.33.0"
]
},
"miwifi": {
"version": "2.3.0",
"requirements": []
},
"config_editor": {
"version": "4.1",
"requirements": []
},
"hacs": {
"version": "1.24.4",
"requirements": [
"aiogithubapi>=21.11.0"
]
}
},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"documentation": "https://www.home-assistant.io/integrations/tuya",
"requirements": [
"tuya-iot-py-sdk==0.6.6"
],
"dependencies": [
"ffmpeg"
],
"codeowners": [
"@Tuya",
"@zlinoliver",
"@METISU",
"@frenck"
],
"config_flow": true,
"iot_class": "cloud_push",
"dhcp": [
{
"macaddress": "105A17*"
},
{
"macaddress": "10D561*"
},
{
"macaddress": "1869D8*"
},
{
"macaddress": "381F8D*"
},
{
"macaddress": "508A06*"
},
{
"macaddress": "68572D*"
},
{
"macaddress": "708976*"
},
{
"macaddress": "7CF666*"
},
{
"macaddress": "84E342*"
},
{
"macaddress": "D4A651*"
},
{
"macaddress": "D81F12*"
}
],
"loggers": [
"tuya_iot"
],
"is_built_in": true
},
"data": {
"endpoint": "https://openapi.tuyaeu.com",
"auth_type": 0,
"country_code": "48",
"app_type": "tuyaSmart",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Termostat w Jadalni",
"model": "HY369RT ZIGBEE",
"category": "wk",
"product_id": "ckud7u2l",
"product_name": "Zigbee Smart",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2022-04-11T17:34:53+00:00",
"create_time": "2022-04-11T05:32:00+00:00",
"update_time": "2022-04-11T17:35:19+00:00",
"function": {
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 10,
"max": 700,
"scale": 1,
"step": 5
}
},
"mode": {
"type": "Enum",
"value": {
"range": [
"comfortable",
"auto",
"holiday",
"eco"
]
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status_range": {
"temp_set": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 10,
"max": 700,
"scale": 1,
"step": 5
}
},
"temp_current": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": 0,
"max": 700,
"scale": 1,
"step": 5
}
},
"mode": {
"type": "Enum",
"value": {
"range": [
"comfortable",
"auto",
"holiday",
"eco"
]
}
},
"child_lock": {
"type": "Boolean",
"value": {}
}
},
"status": {
"temp_set": 160,
"temp_current": 205,
"mode": "manual",
"child_lock": false
},
"home_assistant": {
"name": "Termostat w Jadalni",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "climate.jadalnia",
"state": "heat_cool",
"attributes": {
"hvac_modes": [
"off",
"heat_cool"
],
"min_temp": 5.0,
"max_temp": 350.0,
"target_temp_step": 0.5,
"current_temperature": 102.5,
"temperature": 80.0,
"friendly_name": "Termostat w Jadalni",
"supported_features": 1
},
"last_changed": "2022-04-12T06:52:16.488177+00:00",
"last_updated": "2022-04-12T06:52:16.488177+00:00"
}
}
]
}
}
}

I have exactly the same problem, 100 in HA equals 20 in smart life.
In addition, the error with the change of the state of the sockets still occurs

I have the same.  Current temp is correct, but set temp is 5 times higher.

Same here x5

Same here. Temperature is 5x in home assistant. It shows it correctly in smartlife app and google home app.

My temporary solution (which I will probably leave by now) is as follows:

create input_number

input_number:
  trv1:
    name: Niebieski
    initial: 20
    min: 15
    max: 25
    step: 1

use input to set trv value

- id: '1649847003643'
  alias: TRV niebieski
  trigger:
  - platform: state
    entity_id: input_number.trv1
  condition: []
  action:
  - service: climate.set_temperature
    data:
      temperature: '{{ states(''input_number.trv1'') | int * 5 }}'
    target:
      entity_id: climate.niebieski
  mode: single

@pawelZminkowski can you tell where to place second part?

edited

Hi Gent,
Could me support how to fix issue with x5 temp? I just want to integrate 12 wall thermostats to the HA and some supla curtains (that is working). HA is on my local Asustor drive and integration of the Tuya is done by Tuya IoT.
Not worth my time.
Wanna support? Ok, 5000€ 😂


Fix archive undo branch

Refactor archive command. Shifted logic in MainWindow and LogicManager to within ArchiveCommand since it didn't need to alter GUI. This also automatically allow Undo/Redo to work for archive.

Remove addressbook and archivebook instance in LogicManager.  Should have been encapsulated within Model.

Saved both addressbook and archivebook state in RedoableCommand, which fixed issues with Undo/Redo not working with archive.
Closes #150 #165 #195

Switch should be redoable or it would feel buggy to undo/redo changes in addressbook while in archivebook and vice versa. It also changes state in model, so it should be redoable as it would be buggy. Updated UG.

Find and filter should not be redoable, as redo/undo should only be for state changes in addressbook (unless want to save predicate for each command as well).
Closes #191

Changed regex for module.
Closes #190

Altered user guide for sort and copy.
Closes #143 #163

Fixed the bug where the application automatically showed all persons after apply commands:

AddModuleCommand
ClearModulesCommand
CommentCommand
DeleteModuleCommand
EditCommand
StatusCommand
Closes #131

Redo not working with deletemodule was fixed.
Closes #174

Updated DG for archive.

Fix bug in sort where it considered uppercase and lowercase instead of just sorting by alphabets.

Codecov Report

Merging #195 (84580b1) into master (1fcc8d2) will increase coverage by 1.49%.
The diff coverage is 53.52%.

@@             Coverage Diff              @@
##             master     #195      +/-   ##
============================================
+ Coverage     62.02%   63.52%   +1.49%
- Complexity      613      619       +6
============================================
  Files           100      100
  Lines          2328     2289      -39
  Branches        284      279       -5
============================================
+ Hits           1444     1454      +10
+ Misses          784      737      -47
+ Partials        100       98       -2

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
54.54% <0.00%> (ø)

...a/seedu/address/logic/commands/ArchiveCommand.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/FilterCommand.java
100.00% <ø> (ø)

...java/seedu/address/logic/commands/FindCommand.java
100.00% <ø> (ø)

...va/seedu/address/logic/commands/SwitchCommand.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...c/main/java/seedu/address/model/module/Module.java
90.90% <ø> (ø)

...ain/java/seedu/address/storage/StorageManager.java
87.50% <ø> (+23.21%)
:arrow_up:

src/main/java/seedu/address/ui/AddWindow.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/MainWindow.java
0.00% <ø> (ø)

... and 23 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 1fcc8d2...84580b1. Read the comment docs.

LGTM. I added text wrapping for errorLabel in both EditWindow and AddWindow

LGTM. I added text wrapping for errorLabel in both EditWindow and AddWindow
Also, possible to remove undo and redo from switch? Feels a bit trippy, plus switch is intuitively a UI thing, so I think it would make sense to not be able to undo a switch command
@fantablack @Btaykb @junlee1991 would like to hear your inputs on this as well.

I think switch should be able to use undo and redo.
From UI/UX perspective, without undo and redo, you would be able to undo changes off-screen, for e.g. undo adding modules in default addressbook while you are viewing archive addressbook. Allowing switch to undo forces user to have to be on the addressbook that they are undoing.
What is more important however is the implementation perspective. Currently, UI is observing one specific addressbook, and we switch by swapping addressbook data between that observed addressbook. Therefore, we need to let switch be RedoableCommand in this implementation, or you would be able to undo/redo commands in unintended addressbook.

To change, we would have to be able to swap the observation of the UI between AddressBook and ArchiveBook, instead of swapping the data in and out of the addressbook that is observed. And would have to handle data methods for both addressbook and archivebook, instead of just for the addressbook that is currently observed. Quite a bit to change just for switch to not be a RedoableCommand.

Hm, indeed does sound like a very cumbersome thing to do. Ignore my comment regarding switch, we can go with the current!

LGTM. I added text wrapping for errorLabel in both EditWindow and AddWindow
Also, possible to remove undo and redo from switch? Feels a bit trippy, plus switch is intuitively a UI thing, so I think it would make sense to not be able to undo a switch command
@fantablack @Btaykb @junlee1991 would like to hear your inputs on this as well.

@bakano98 's example makes sense when viewing switch purely as the only command executed and I was all for it, but when viewed as a bigger picture whereby switch is executed after commands such as add, then @lawwm perfectly explains the UX problem that can occur, changing my opinion immediately. Interesting case of how not-immediately obvious use cases can totally change the perceived implementation of a feature.
Finally, I am in support of the way UI observes only 1 addressbook instead of explicitly choosing and referencing both addressbooks, which is another reason why I vote on leaving switch capable of undo redo. :thumbsup:

I am in favor of the UI monitoring a single addressbook rather than split referencing 2 addressbooks. Hence, switch should be redoable / undoable.

What is more important however is the implementation perspective. Currently, UI is observing one specific addressbook, and we switch by swapping addressbook data between that observed addressbook. Therefore, we need to let switch be RedoableCommand in this implementation, or you would be able to undo/redo commands in unintended addressbook.

I am in agreement with what @lawwm mentions here, definitely will lead to quite a bit of unwanted behaviors if we don't allow switch to undo/redo.
Also LGTM with regards to the PR.


How to query base on a list of id's

I'm trying to create a query the finds records who id is in a list, so I don't have query the database multiple times. My query however is throwing an error. How can I fix this?
Query
public static IEnumerable<CareTask> GetByIds(List<string> Ids)
{
    return DBUtils.DBService.Cypher
        .Match("(node:Task)")
        .Where((Task node) => Ids.Contains(node.Id))
        .Return(node => node.As<Task>())
        .Results.ToList();
}

Exception
SyntaxException: Invalid input 'n': expected whitespace, '.', node labels, '[', \"=~\", IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', \"<>\", \"!=\", '<', '>', \"<=\", \">=\", AND, XOR, OR, LOAD CSV, START, MATCH, UNWIND, MERGE, CREATE, SET, DELETE, REMOVE, FOREACH, WITH, RETURN, UNION, ';' or end of input (line 2, column 11 (offset: 33))\n\"WHERE {p0}node.Id\r\"\n           ^

I was able to get it working by using IN instead of Contains.
.Match("(node:Task)")
            .Where("node.Id IN {Ids}")
            .WithParam("Ids", Ids)
            .Return(node => node.As<Task>())
            .Results.ToList();


Update request: static-web-server 2.33.0 -> 2.33.1

Package name: static-web-server
Latest released version: 2.33.1

Current version on the unstable channel: 2.33.0
Current version on the stable/release channel: 2.24.2

[x] Checked the nixpkgs pull requests

Notify maintainers

Note for maintainers: Please tag this issue in your PR.

@figsoda
Add a :+1: reaction to issues you find important.

PR: #353280

https://nixpk.gs/pr-tracker.html?pr=353280
https://nixpk.gs/pr-tracker.html?pr=361561


log reports DataProtection-Keys using non-existent directory - causes VS to hang

From @esargent on June 10, 2016 21:35
I ran into this after I ran into the issue https://github.com/aspnet/Hosting/issues/791
The stack exchange article mentions deleting old DataProtection-Keys directories which is what I did - and it got me past the issue in 791.
But then I ran into an issue where Visual Studio hung on the "Debug is Starting" window. So I left VS and went directly to powershell, which let me see this line:
User profile is available. Using 'C:\Users\esargent\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
However the directory didn't exist, so I recreated it and that fixed the problem.
I admit this is self-inflicted, but I am reporting it as an issue because the log output claims it found and is using that directory, even though the directory doesn't exist. And, apparently, that causes Visual Studio to hang.

Screenshot shows Windows Explorer and powershell output side-by-side.
Copied from original issue: aspnet/Hosting#798

@esargent does this still repro with RTM bits?

The RTM install didn't have any issues. But I had already recreated the directory and everything was working fine.
Just to confirm I went in when I got your message and deleted the directory. 'dotnet run' recreated the directory and once I logged in a user recreated the needed key in that directory so it appears everything is working properly. Looks good to close.

@esargent Thanks!