Help to fix build process

Hi!
I would like to help in fixing the build process.
Could you please explain what's happening, what's the current error and the process?
I'll create a PR fixing it.
Thanks!

Don't have the cycles to set this up again (migrated to a new machine since the last build) but if you install the npm packages and try to run the grunt commands, you'll spot the errors. (Note that I hard-coded some of the paths in the gruntfile to get it working.)
The optimal solution would probably be to migrate from legacy grunt to new webpack instead but any working solution would be a step forward :)


Install failed on instances from astropy__astropy

Describe the bug
I found instances from astropy__astropy repo consistently fail because of environment installation failure.
For example astropy__astropy-14182. I reproduce the bug using the latest version of SWE-agent.
Steps/commands/code to Reproduce
python run.py --model_name bedrock:anthropic.claude-3-haiku-20240307-v1:0 --instance_filter astropy__astropy-14182 --config_file config/configs/xml_sys-env_window100-detailed_cmd_format-last_5_history-1_demos.yaml --split test

Error message/results
INFO     ▶  Beginning task 101
INFO     astropy__astropy not found in container, cloning...
INFO     astropy__astropy__5.1 conda env not found, creating...
INFO     Installing astropy__astropy at base commit...
ERROR    Install command failed to execute successfully: Obtaining file:///astropy__astropy
           Installing build dependencies: started
           Installing build dependencies: finished with status 'done'
           Checking if build backend supports build_editable: started
           Checking if build backend supports build_editable: finished with status 'done'
           Getting requirements to build editable: started
           Getting requirements to build editable: finished with status 'error'
           error: subprocess-exited-with-error

           × Getting requirements to build editable did not run successfully.
           │ exit code: 1
           ╰─> [27 lines of output]
               Traceback (most recent call last):
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                   main()
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                   json_out['return_val'] = hook(**hook_input['kwargs'])
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in
         get_requires_for_build_editable
                   return hook(config_settings)
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable
                   return self.get_requires_for_build_wheel(config_settings)
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
                   return self._get_build_requires(config_settings, requirements=['wheel'])
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
                   self.run_setup()
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
                   exec(code, locals())
                 File "<string>", line 69, in <module>
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 63, in get_extensions
                   for setuppkg in iter_setup_packages(srcdir, packages):
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 159, in iter_setup_packages
                   module = import_file(setup_package, name=packagename + ".setup_package")
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_utils.py", line 136, in import_file
                   loader.exec_module(mod)
                 File "<frozen importlib._bootstrap_external>", line 850, in exec_module
                 File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
                 File "./astropy/wcs/setup_package.py", line 13, in <module>
                   from setuptools.dep_util import newer_group
               ModuleNotFoundError: No module named 'setuptools.dep_util'
               [end of output]

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

         × Getting requirements to build editable did not run successfully.
         │ exit code: 1
         ╰─> See above for output.

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

INFO     Beginning environment shutdown...
INFO     Agent container stopped
Traceback (most recent call last):
  File "/home/code/SWE-agent/run.py", line 377, in main
    self.run(index)
  File "/home/code/SWE-agent/run.py", line 341, in run
    observation, info = self.env.reset(index)
  File "/home/SWE-agent/sweagent/environment/swe_env.py", line 316, in reset
    self.install_env()
  File "/home/SWE-agent/sweagent/environment/swe_env.py", line 826, in install_env
    self.communicate_with_handling(
  File "/home/SWE-agent/sweagent/environment/swe_env.py", line 639, in communicate_with_handling
    raise RuntimeError(msg)
RuntimeError: Install command failed to execute successfully: Obtaining file:///astropy__astropy
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Checking if build backend supports build_editable: started
  Checking if build backend supports build_editable: finished with status 'done'
  Getting requirements to build editable: started
  Getting requirements to build editable: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      Traceback (most recent call last):
        File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
          return hook(config_settings)
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable
          return self.get_requires_for_build_wheel(config_settings)
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 69, in <module>
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 63, in get_extensions
          for setuppkg in iter_setup_packages(srcdir, packages):
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 159, in iter_setup_packages
          module = import_file(setup_package, name=packagename + ".setup_package")
        File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_utils.py", line 136, in import_file
          loader.exec_module(mod)
        File "<frozen importlib._bootstrap_external>", line 850, in exec_module
        File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
        File "./astropy/wcs/setup_package.py", line 13, in <module>
          from setuptools.dep_util import newer_group
      ModuleNotFoundError: No module named 'setuptools.dep_util'
      [end of output]

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

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

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

WARNING  ❌ Failed on astropy__astropy-14182: Install command failed to execute successfully: Obtaining file:///astropy__astropy
           Installing build dependencies: started
           Installing build dependencies: finished with status 'done'
           Checking if build backend supports build_editable: started
           Checking if build backend supports build_editable: finished with status 'done'
           Getting requirements to build editable: started
           Getting requirements to build editable: finished with status 'error'
           error: subprocess-exited-with-error

           × Getting requirements to build editable did not run successfully.
           │ exit code: 1
           ╰─> [27 lines of output]
               Traceback (most recent call last):
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                   main()
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                   json_out['return_val'] = hook(**hook_input['kwargs'])
                 File "/root/miniconda3/envs/astropy__astropy__5.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in
         get_requires_for_build_editable
                   return hook(config_settings)
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable
                   return self.get_requires_for_build_wheel(config_settings)
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
                   return self._get_build_requires(config_settings, requirements=['wheel'])
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
                   self.run_setup()
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
                   exec(code, locals())
                 File "<string>", line 69, in <module>
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 63, in get_extensions
                   for setuppkg in iter_setup_packages(srcdir, packages):
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_setup_helpers.py", line 159, in iter_setup_packages
                   module = import_file(setup_package, name=packagename + ".setup_package")
                 File "/tmp/pip-build-env-m0abzb6s/overlay/lib/python3.9/site-packages/extension_helpers/_utils.py", line 136, in import_file
                   loader.exec_module(mod)
                 File "<frozen importlib._bootstrap_external>", line 850, in exec_module
                 File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
                 File "./astropy/wcs/setup_package.py", line 13, in <module>
                   from setuptools.dep_util import newer_group
               ModuleNotFoundError: No module named 'setuptools.dep_util'
               [end of output]

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

         × Getting requirements to build editable did not run successfully.
         │ exit code: 1
         ╰─> See above for output.

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

INFO     Beginning environment shutdown...

System Information
Linux x86
Python 3.9
Checklist

[X] I'm running with the latest docker container/on the latest development version
[X] I've searched the other issues for a duplicate
[X] I have copied the full command/code that I ran (as text, not as screenshot!)
[X] If applicable: I have copied the full log file/error message that was the result (as text, not as screenshot!)
[X] I have enclosed code/log messages in triple backticks (docs) and clicked "Preview" to make sure it's displayed correctly.

AHAHAHA

Hi there,
You still had the problem?


Update fs2-reactive-streams to 2.4.6

Updates co.fs2:fs2-reactive-streams from 2.4.5 to 2.4.6.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "co.fs2", artifactId = "fs2-reactive-streams" } ]

labels: library-update, semver-patch

Already in series/0.21.


Installation Error

https://github.com/pinokiocomputer/pinokio/assets/54758623/53c90adc-1314-4a6b-989e-c7280b5f77db

Appears when installing Stable Video Diffusion.
Traceback (most recent call last):
  File "C:\Users\Tom60\pinokio\bin\miniconda\Scripts\conda-script.py", line 12, in <module>
    sys.exit(main())
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\conda\cli\main.py", line 128, in main
    return conda_exception_handler(main, *args, **kwargs)
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\conda\exception_handler.py", line 388, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\conda\exception_handler.py", line 20, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\conda\exception_handler.py", line 51, in handle_exception
    from .exceptions import (
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\conda\exceptions.py", line 15, in <module>
    import requests
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\requests\__init__.py", line 43, in <module>
    import urllib3
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\urllib3\__init__.py", line 17, in <module>
    from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\urllib3\connectionpool.py", line 15, in <module>
    from ._request_methods import RequestMethods
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\urllib3\_request_methods.py", line 10, in <module>
    from .response import BaseHTTPResponse
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\urllib3\response.py", line 284, in <module>
    class BaseHTTPResponse(io.IOBase):
  File "C:\Users\Tom60\pinokio\bin\miniconda\lib\site-packages\urllib3\response.py", line 294, in BaseHTTPResponse
    DECODER_ERROR_CLASSES += (brotli.error,)
AttributeError: module 'brotli' has no attribute 'error'

Hello, same issue despite a complete reinstallation of Anaconda, Miniconda, and Visual Studio.

2024-02-12.18-40-37.mp4

What I did to make it work:

Downloaded and installed Pinokio Setup 0.2.18. Then I installed BRIA RMBG and all components were installed with it.
Download and run Pinokio-1.1.0 to update the version
It worked for me.


Nancy 19 retrieve crm

GET api to request user data for CRM
Query parameters supported:
page required, int) - page number
page_size (required, int) - number of entries in a page
name - client's name
email - client's email
phone - client's phone
street_name - client's street address
kin_name - kin's name

Also added cors and mysql2 to package.json

@python-plusplus
Here is the list of query parameters, all in the form of url parameters.


need audit trail capabilities in shield

Is your feature request related to a problem? Please describe.
As shield does authorisation and can modify resources/policies/groups/roles - it is imperative to keep track of all the changes done through the shield api's., as part of an audit trail. The earlier version of shield implements this(activities) and also has an endpoint exposed for the same.
Describe the solution you'd like
There are multiple to do this. Couple of solutions that can be discussed upon -

Keep track of all changes (create, update, delete) by saving them in a flat table in database. and expose endpoints in shield itself to see the data.
OR
Push these changes into kafka to save, and let a consumer(another app) consume and persist while allowing to view the data.

Shield should host this data and serve through APIs to show all historic changes for a given user or resource. +1 on the first approach.


docstring contradicts validation for tolerance args in scipy.optimize.bisect

http://docs.scipy.org/doc/scipy-dev/reference/generated/scipy.optimize.bisect.html

I believe this is fixed in master:
http://scipy.github.io/devdocs/generated/scipy.optimize.bisect.html
as compared to the old version:
http://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.optimize.bisect.html

thanks @person142, closing


fixed -Wreorder in ros_introspection.hpp

The now swapped variables were initialized in a different order than they were declared. On my compiler this triggered the warning -Wreorder, which prevented me to compile with warnings treated as errors.
With this change, client code should be able to compile with -Werror.

Thanks


Add: fibonacci memoization in JavaScript

I added a javascript memoization algorithm is an optimization of the standard recursive Fibonacci algorithm using a technique called memoization.

Done by commit<PHONE_NUMBER>06bb8102e7700a3d3437d7049f7b74.
Thanks anyway @eric-vantunes!


job system and scanner job refactoring

There are two main areas relating to jobs and the scanner job specifically that need addressing:

Jobs are kind of stateless right now. Sure, they have access to a minimal subset of context, but are stateless with respect to the jobs own state (e.g. what task it is currently working on, how many are left, etc). This lack of state prevents me from properly implementing features like:

pausing and resuming jobs
persisting job state to disk/db

We could probably use some sort of save file? Just spit the state to a file to save and then read it and deserialize to load

handling failures and retries without having to re-do the entire job

this would include shutting down the server while a job is running

The current implementation of the scanner and the jobs is not overly flexible and simply won't scale down the road, as exemplified by testers with enormous libraries. It's definitely quick, but I'd rather sacrifice on a little speed for memory efficiency for those larger libraries. I think part of the issue is that for really large libraries, there are simply too many threads being spawned, degrading memory efficiency and performance.

Brainstorming / Initial Ideas
Job System
I already have the concept of a JobWrapper which handles the kickoff of the actual job process as well as simple things like duration and what not. I think this should be extended to also manage some sort of state for the job, which can be mutated with on_progress callbacks, perhaps. The state, in general, needs to store the following:

What tasks were determined necessary for the job (i.e. a task list)
What tasks were completed
What tasks have yet to be completed

This needs to be MORE than just a numeric value, as it currently is.
A shutdown signal should also be added to the JobWrapper which listens for a signal of two kinds:

Cancel all jobs (all jobs get cancelled, should also clear the queue)
Cancel job by ID (only a job by a given ID should be cancelled)

I also think while I'm tackling this I might introduce a slight language change to the scan modes and how they work:

In-order scanning
In-order scanning processes one series at a time and inserts its media one-by-one as soon as they are discovered. This means that you can access new media files as soon as they are scanned, even if the rest of the series has not been scanned yet
Parallel scanning
Parallel scanning processes multiple series at once, up to 10 series in a batch. This significantly reduces the overall scanning time, but you may not be able to access some media files until the entire batch is processed.
For example, if you have a new library with 200 series, each containing 50 books, an in-order scan will start from the first series and insert all of its media one at a time before moving on to the next series. On the other hand, a parallel scan will divide the 200 series into two chunks of 100 series and process up to 10 series in parallel for each chunk before inserting all the media in a single batch per chunk.

Closing as completed, but is is in experimental


Starting working on the README file provided in the osmose config zip file

@agruss2 Start working on the README file that is provided in the osmose config zip file and keep @jhpoelen posted about your progress.
The README file lists the species making up each of the functional groups of the OSMOSE model, and details which parameter estimates were obtained through FishBase/SeaLifeBase and which parameter estimates remain to be entered by the user.
@agruss2 Write some text about which parameter estimates are obtained through FishBase/SeaLifeBase and which parameter estimates need to be entered by the user. Then, @jhpoelen will work on further populating the README file so that the user is informed about the species making up each of the functional groups of the OSMOSE model.

I have started working on this. Therefore, I am going to close the present issue.
Other issues related to the README file will be opened later.


Update content for schools who cannot order during lockdown

Context
Schools:

Responsible bodies:

Draft until I've checked the content

Morning @fofr.
I wonder whether it's better not to lead with 'we've invited all secondaries to open' because this isn't much comfort to primaries that will be waiting until 22 Jan.
How about:
'You cannot order devices yet
We're opening orders for primary schools gradually, and will invite all to order by 22 January.
We'll email you as soon as you can place an order.'

Morning @fofr.
I wonder whether it's better not to lead with 'we've invited all secondaries to open' because this isn't much comfort to primaries that will be waiting until 22 Jan.
How about:
'You cannot order devices yet
We're opening orders for primary schools gradually, and will invite all to order by 22 January.
We'll email you as soon as you can place an order.'


allow default imports in stories without .tsx extension

This lint error pops up in Hive repo for me. It's annoying because we also have one that forces you to change extension to .ts if there's no JSX syntax in the story file.

nvm, I see it's already fixed on main, I'll bump the version


Make runtime (un-)initialization implicit in most cases

... and allow STA initialization (fixes #62).
@rbtying @BenJKuhn Can you have a look at this?

Generally in the Rust crate ecosystem there are no strong stability guarantees for pre-1.0 versions. At least that is my impression. The versions are not semver-compatible anyway, so I think a hard removal is not a problem. But you might be able to convince me otherwise ;-)


Blank states: no results (filters)

Story
Whenever I combine filters so no records can be found, I get a message so I know what went wrong.
Context
As we allow "impossible" filter combinations now, we need to inform the users when no results are given.
Expected result
Example

Copy
Title: No records found
Text: Adjust your search or filter to find what you are looking for.
Component
https://biblio-ugent-prototype-emily-v2.vercel.app/styleguide/c-blank-slate.html#component-02-c-blank-slate
Example code
Inside the card body:

No records found.

Adjust your search or filter to find what you are looking for.

@mietcls isn't this a bit the result of the collapsed facet/filters?

@nicolasfranck just had a short conversation with @nics and @netsensei – I now understand better what the impact is of the intended implementation.

I will adapt this story to cover the "no search results" case.
It will not be the case for filters – we'll keep the way filters work for now and adapt according to feedback later (besides the fact that you can combine values within filters, that will change).


ROS# silently drops sensor_msgs/JointState messages including NaN values

[x] I am at the right place and my issue is directly related to ROS#. General technical questions I would post e.g. at ROS Answers or Stack Overflow. For library-specific questions I would look for help in the corresponding library forums.
[x] I have thoroughly read the Contributing Guideline and writing this issue is the right thing to do in my case.

I found a bug!

[x] I am using the latest ROS# version available here on the master branch.

[x] I am adding all required information, code and data files, screenshots and log files so that you can reproduce the problem.

My OS is: macOS Catalina  10.15.5 (19F101)

My Unity Version is: 2019.3.14f1

My ROS Distribution is: melodic (dockerized)

My Build Target Platform is: run from editor

Here is my bug description:
sensor_msgs/JointState messages are dropped/ignored silently when they contain NaN values. Possibly happens to other messages as well.
For the JointState this is a low-priority issue, as I built a helper node to drop nan-values before they get to Unity.
Perform the following steps reproduce the bug:

If you have a NAO available:

Start NAO and set it in "autonomous life mode", such that it starts "swaying" slightly. Alternatively, ask it to dance the Tai-Chi dance so that you have some real data.
Run roslaunch naoqi_driver naoqi_driver.launch nao_ip:=${NAO_IP} roscore_ip:=${ROSCORE_IP} network_interface:=eth0, it's from the naoqi_driver -- for me that's a docker container in a compose setup, see below.
Import NAO, setup a scene in Unity according to the GazeboSimulation Example.
Run the scene.

If you don't have a NAO available:

Run a ROS node to publish some NaN values in a sensor_msgs/JointState message and subscribe to those.

Observed results:

Only the odom messages are transferred correctly (the NAO changes its base_link properly), but other joints are not correct.
Expected results:

The NAO should move properly, or there should be a warning that the messages containing "nan" values are dropped.
I found out that the issue that some values reported from the naoqi_driver appear to be NaN, especially in the position and velocity arrays. If I send a custom message via rostopic pub, the robot behaves correctly. As a fix, I built a ROS node which drops NaN parts of JointState messages and republishes them. This fixes it and the NAO behaves correctly.
Also, the dropping must already occur somewhere in the RosBridgeClient, as the JointStateSubscriber never receives those message (ReceiveMessage is never called).
Relevant Code:
This node subscribes to the /joint_states from naoqi, drops all nan-values and publishes the resulting messages on /joint_states/no_nan:
#!/usr/bin/env python
from functools import partial
import numpy as np

import rospy
from sensor_msgs.msg import JointState

def gather(values, mask):
    for value, valid in zip(values, mask):
        if valid:
            yield value

def bridge(publisher, message):
    vals = np.vstack((message.position,
                      message.velocity,
                      message.effort))
    # find NaN-columns
    nan_mask = np.isnan(vals)
    # collapse to one row which are not nan
    valid = ~np.any(nan_mask, axis=0)

    message.name = list(gather(message.name, valid))
    message.position = list(gather(message.position, valid))
    message.velocity = list(gather(message.velocity, valid))
    message.effort = list(gather(message.effort, valid))

    rospy.loginfo("%s", message)
    publisher.publish(message)

def main():
    publisher = rospy.Publisher('joint_states/no_nan', JointState, queue_size=10)
    rospy.Subscriber('joint_states', JointState, partial(bridge, publisher))
    rospy.init_node('fix_joint_states', anonymous=True)
    rospy.spin()

if __name__ == '__main__':
    try:
        main()
    except rospy.ROSInterruptException:
        pass

I am running the following stack -- if you need more details, you can check out my repository (https://github.com/shoeffner/ease_naoqi_dlu). In commit https://github.com/shoeffner/ease_naoqi_dlu/commit/57b62e46447e1ae939617d32b5de4dc954a98f68 the issue exists, by commit https://github.com/shoeffner/ease_naoqi_dlu/commit/d3a2ada4c868ed88df50c123d6634d4312f15425 it's fixed – the following commit updates the version of ros-sharp, which has the same issue.
version: "3.7"

services:
    roscore:
        image: osrf/ros:melodic-desktop-full
        command: roscore

    naoqi_driver:
        build:
            context: .
            dockerfile: docker/Dockerfile.naoqi
        image: ease:naoqi
        command: /start_after_rosmaster.sh roslaunch naoqi_driver naoqi_driver.launch nao_ip:=${NAO_IP} roscore_ip:=roscore network_interface:=eth0
        depends_on:
            - roscore

    naoqi:
        build: .
        image: ease:naoqi_dlu
        command: /start_after_rosmaster.sh rosrun ease_dlu_util fix_joint_states.py
        depends_on:
            - naoqi_driver

    rosbridge:
        build: .
        image: ease:naoqi_dlu
        command: /start_after_rosmaster.sh roslaunch file_server ros_sharp_communication.launch
        ports:
            - "9090:9090"
        depends_on:
            - roscore

Hello @shoeffner,
Please go over the issue #78, where the limitation of de-/serialization of NaN values has already been discussed. You can particularly try this suggestion regarding the use of nullable class members to be able to bring messages with null values into Unity (because rosbridge convertes NaN values to null values while serializing the message since this commit which are then not deserialized to non-nullable class members causing the callback function of the subscriber to be never called).
I hope this helps. Any improvement suggestions are welcomed regarding the limitation of de-/serialization of NaN values.

Thanks, I didn't find #78. Indeed, a warning would have been nice (maybe
even a one off thing) explaining that it is application dependent how to
handle nan values and that the values are dropped silently. The problem I
had was basically that I didn't see the issue nor is there a way to
trivially solve it on the unity side.
If course, it could be some setting somewhere how to handle nan values, but
I think the warning might be the simplest solution.
On Tue, Aug 11, 2020, 18:04 Berkay Alp Cakal<EMAIL_ADDRESS>wrote:

Hello @shoeffner https://github.com/shoeffner,
Please go over the issue #78
https://github.com/siemens/ros-sharp/issues/78, where the limitation of
de-/serialization of NaN values has already been discussed. You can
particularly try this suggestion
https://github.com/siemens/ros-sharp/issues/78#issuecomment-457105744
regarding the use of nullable class members to be able to bring messages
with null values into Unity (because rosbridge convertes NaN values to null
values while serializing the message since this commit
https://github.com/RobotWebTools/rosbridge_suite/commit/44495be0956dd6c6202b959bc97935715b4a0917#diff-8844e002e306884d690c34b324d23326
which are then not deserialized to non-nullable class members causing the
callback function of the subscriber to be never called).
I hope this helps. Any improvement suggestions are welcomed regarding the
limitation of de-/serialization of NaN values.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/siemens/ros-sharp/issues/334#issuecomment-672052278,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOAODY5RRIJWJX77NMXIPLSAFTZRANCNFSM4P3BH5MA
.

Hi @shoeffner .
We thought about how to handle NaN and Null values several times. Up to now I did not find a nice general answer:

rosbridge_suite converts NaN values to Null values before communicating them.
We could make our message classes Nullable to get rid of the error, but then we would have to handle the null values elsewhere (likely at many different places in the code).
The only way give a warning (or handle Null values in a different way) is to catch Null exceptions when deserializing.
This try-catch block will however cost additional performance for every message that we deserialize. Additionally we have lost the info whether the value originally was Null or NaN on the ROS side.
Thus, as already discussed in issue #78 , my preferred solution is to fix NaN/Null values on the ROS side.

Serializers can handle Null values differently. You could for example also implement an ISerializer that fills Null values with default values.
For the ´MicrosoftSerializer` for example you can adjust Null value handling in [this](https://github.com/siemens/ros-sharp/blob/master/Libraries/RosBridgeClient/Serializers/MicrosoftSerializer.cs#L36 Method).

Thanks @MartinBischoff, I also handle NaN in ROS at the moment, but implementing a custom serializer might also be a good idea in the future.
Thank you!


Customize notifications for twitter

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
I would need to customize a minimum of notifications by posting tweets someone has had similar needs? to automatically post use
twitter://$TWITTER_CONSKEY/$TWITTER_CONSSECRET/$TWITTER_ACCTOKEN/$TWITTER_ACCSECRET/?mode=tweet
🐻 Uptime-Kuma Version
1.15.1
💻 Operating System and Arch
proxmox
🌐 Browser
chrome
🐋 Docker Version
20.10.9
🟩 NodeJS Version
No response

Currently there is no notification provider for twitter but you could try using the webhook notification and calling twitter's API. If you know about programming you could also take a crack at creating a new notification provider for twitter.


Can't delete messages

I want to delete all messages from the Travis-CI App older than one month. However, I only get exceptions.
When executing this command:
slack-cleaner --token <hidden> --message --channel ci --bot --before 20200801 --perform
Failed to delete (invalid_arguments)->
{   u'attachments': [   {   u'color': u'2eb886',
                            u'fallback': u'Build <https://travis-ci.com/spockframework/spock/builds/177459089?utm_source=slack&utm_medium=notification|#2105> (<h
ttps://github.com/spockframework/spock/pull/1181|ca74b05>) of spockframework/spock@master in PR <https://github.com/spockframework/spock/pull/1181|#1181> by Marcin Z
aj\u0105czkowski passed in 46 min 55 sec',
                            u'id': 1,
                            u'mrkdwn_in': [u'text'],
                            u'text': u'Build <https://travis-ci.com/spockframework/spock/builds/177459089?utm_source=slack&utm_medium=notification|#2105> (<https
://github.com/spockframework/spock/pull/1181|ca74b05>) of spockframework/spock@master in PR <https://github.com/spockframework/spock/pull/1181|#1181> by Marcin Zaj\u
0105czkowski passed in 46 min 55 sec'}],
    u'bot_id': u'B0556QQP4',
    u'subtype': u'bot_message',
    u'text': u'',
    u'ts': u'1595948956.000100',
    u'type': u'message'}
^CTraceback (most recent call last):
  File "/usr/local/bin/slack-cleaner", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 516, in main
    message_cleaner()
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 445, in message_cleaner
    clean_channel(channel_id, time_range, user_id=_user_id, bot=args.bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 219, in clean_channel
    _clean_messages_impl(list_f, channel_id, time_range, user_id, bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 190, in _clean_messages_impl
    delete_message_on_channel(channel_id, m)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 236, in delete_message_on_channel
    slack.chat.delete(channel_id, message['ts'], as_user=args.as_user)
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 552, in delete
    'as_user': as_user
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 126, in post
    api, **kwargs
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 77, in _request
    url, timeout=self.timeout, proxies=self.proxies, **kwargs
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 114, in _session_post
    method='post', url=url, data=data, **kwargs
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 417, in _make_request
    httplib_response = conn.getresponse(buffering=True)
  File "/usr/local/lib/python2.7/httplib.py", line 1161, in getresponse
    response.begin()
  File "/usr/local/lib/python2.7/httplib.py", line 448, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python2.7/httplib.py", line 404, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/local/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "/usr/local/lib/python2.7/ssl.py", line 754, in recv
    return self.read(buflen)
  File "/usr/local/lib/python2.7/ssl.py", line 641, in read
    v = self._sslobj.read(len)
KeyboardInterrupt

I've tried the --as_user as was mentioned in #73
I get a slew of these messages
Failed to delete (cant_delete_message)->
{   u'attachments': [   {   u'color': u'a30200',
                            u'fallback': u'Build <https://travis-ci.com/spockframework/spock/builds/177258959?utm_source=slack&utm_medium=notification|#2099> (<h
ttps://github.com/spockframework/spock/pull/1204|7f057e6>) of spockframework/spock@master in PR <https://github.com/spockframework/spock/pull/1204|#1204> by Bj\xf6rn
 Kautler failed in 37 min 54 sec',
                            u'id': 1,
                            u'mrkdwn_in': [u'text'],
                            u'text': u'Build <https://travis-ci.com/spockframework/spock/builds/177258959?utm_source=slack&utm_medium=notification|#2099> (<https
://github.com/spockframework/spock/pull/1204|7f057e6>) of spockframework/spock@master in PR <https://github.com/spockframework/spock/pull/1204|#1204> by Bj\xf6rn Kau
tler failed in 37 min 54 sec'}],
    u'bot_id': u'B0556QQP4',
    u'subtype': u'bot_message',
    u'text': u'',
    u'ts': u'1595840987.000100',
    u'type': u'message'}
^CTraceback (most recent call last):
  File "/usr/local/bin/slack-cleaner", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 516, in main
    message_cleaner()
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 445, in message_cleaner
    clean_channel(channel_id, time_range, user_id=_user_id, bot=args.bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 219, in clean_channel
    _clean_messages_impl(list_f, channel_id, time_range, user_id, bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 190, in _clean_messages_impl
    delete_message_on_channel(channel_id, m)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 236, in delete_message_on_channel
    slack.chat.delete(channel_id, message['ts'], as_user=args.as_user)
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 552, in delete
    'as_user': as_user
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 126, in post
    api, **kwargs
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 87, in _request
    response.headers.get('retry-after', DEFAULT_WAIT)

The Slack-Cleaner app has these scopes:

channels:history
channels:read
chat:write
groups:history
groups:read
users:read

Context

Version: 0.7.4
via Docker image

Side Note
It seems that one has to add the app to a channel, otherwise I get this error.
Deleting messages from channel scm
Traceback (most recent call last):
  File "/usr/local/bin/slack-cleaner", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 516, in main
    message_cleaner()
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 445, in message_cleaner
    clean_channel(channel_id, time_range, user_id=_user_id, bot=args.bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 219, in clean_channel
    _clean_messages_impl(list_f, channel_id, time_range, user_id, bot)
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 141, in _clean_messages_impl
    res = list_f(latest, oldest).body
  File "/usr/local/lib/python2.7/site-packages/slack_cleaner/cli.py", line 217, in list_f
    return slack.conversations.history(channel_id, latest=latest, oldest=oldest, limit=1000)
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 172, in history
    'limit': limit
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 120, in get
    api, **kwargs
  File "/usr/local/lib/python2.7/site-packages/slacker/__init__.py", line 102, in _request
    raise Error(response.error)
slacker.Error: not_in_channel

maybe related to https://github.com/sgratzl/slack-cleaner/issues/73

Yes, as I wrote with --as_user it changes from Failed to delete (invalid_arguments) to Failed to delete (cant_delete_message)

Seemed to happen upon the same issue (at the same time no less!). Ran it with full perms on the bot user and the app access tokens; ran with both tokens as well (with --as_user as needed). I'm not getting backtraces (even on the first error), just this:
Failed to delete (cant_delete_message)->
{   u'team': u'T0L1219F0',
    u'text': u'working on the last couple slides and synopsis',
    u'ts': u'1462823492.000121',
    u'type': u'message',
    u'user': u'U0L12DXB2'}

ad nauseum

can you verify that you created the token as described in https://github.com/sgratzl/slack_cleaner2#token, please

Indeed! It's made just according to that, and in fact I went ahead and gave it permissions it didn't even need. Everything short of admin.*, since those are enterprise.
If it helps, I'm trying to delete from the primary/#general channel:
slack-cleaner --token xoxb-00000000000-0000000000000-EEEEEEEEEEEEEEEEEEEEEEEE --message --channel gen --user "*" --as_user --perform
It definitely recognizes all the messages in there, but it doesn't seem to be capable of deleting them.

@sgratzl as I already wrote in my initial post, I've created the token with the following scopes

channels:history
channels:read
chat:write
groups:history
groups:read
users:read

these should suffice as far as I understand the instructions you mentioned.

slack-cleaner --token xoxb-00000000000-0000000000000-EEEEEEEEEEEEEEEEEEEEEEEE --message --channel gen --user "*" --as_user --perform

see instructions:

The token should start with xoxp and not like bot tokens with xoxb.

That was the problem, I used a Bot Token and not a User Token, maybe update the docs to make it more explicit, or better log an error with a helpful message when an xoxb token is used.


Replace :masterIssue with :dependencyDashboard in renovate.json

Describe the bug
Renovate bot does not use :masterIssue anymore, it's now called :dependencyDashboard.
To Reproduce
https://github.com/openequella/openEQUELLA/blob/b366c33254afa4d59e508c8e42a712045fbd407b/renovate.json#L2
Expected behavior

:masterIssue is replaced by :dependencyDashboard

Screenshots
Not needed.
Stacktrace
Not needed.
Platform:
Does not matter, problem with source files.
Additional context
Renovate bot no longer uses the term Master Issue anywhere, this concept is now called the "Dependency Dashboard".
The preset was also renamed.
There's no "bug" as Renovate bot migrates old terms behind the scenes, but it's still better to use current terms, that way if you ever need to search the docs, you can find the relevant explanations easily.
Renovate docs for the "new" dependencyDashboard preset: https://docs.renovatebot.com/presets-default/#dependencydashboard

Thanks @HonkingGoose! :bow:
Opened #2900 to address this, any other deprecated properties you see?
Or other improvements that could be made to the configuration?

Thank you muchly @HonkingGoose , great to have your advice.
We definitely appreciate the value your tool brings to our project, and we also know that our adopters greatly value the increased activity around having up to date dependencies. Thanks!


input data format

Hi,
Many thanks sharing this code.
Having the output file, how is it possible to connect it to the original dataset ? I'm using  panda, is there any special command doing it ? Appear to me that the usual "merge on" command is not working with multiple columns

I solved by my self just listing in an array the list of keys/category in on parameter of merge instruction

I joined the output with the original data, separately on train and test.  As you did, you need to use the columns that are aggregated here as keys for merge.


Tests for TriangleMesh

We need simple and verifiable test cases for the TriangleMesh<T> implemented in blazert/primitives/trimesh.h
Simliar to the tests for the other primitives, we need tests regarding the bounding box, centers and intersections for a TriangleMesh with only 1 triangle. (easiest case imaginable)
Second, for the intersections we need tests with more complicated triangle meshes (e.g. found in test_helpers.h.
Summary:

1 triangle

[ ] bounding box
[x] centers
[x] intersections

real triangle mesh

[x] intersections

Some work has already been done in https://github.com/tobiask-hfs/blazert/tree/test_trimesh.

The work in PR #55 need to be merged manually since it diverged to far from the develop branch

addressed by #55 which has been merged


Add pitfalls of using other than hex hashDigest.

There are some drawbacks of using other than the default hex hashDigest. This describes them a little bit.

@viktor-izettle Can you rebase?

@dhruvdutt done :)


Error when installing a dotnet App on my Windows 10 desktop (dev mode)

Operating System: Windows 10
I am trying to install an app via ps script on my windows 10 desktop (dev mode).
I am getting the following error:
"Windows cannot install package XXXXX.com.op2b.smartax_<IP_ADDRESS>_x86__v1qg3v2068v1t because this package depends on a
framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.1.0" published by "CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and
minimum version 1.0.23819.0, along with this package to install. The frameworks with name
"Microsoft.NET.CoreRuntime.1.0" currently installed are: {}"
I already installed some versions of "dotnet.runtime" as you can see:
dotnet --info
.NET Core SDK (reflecting any global.json):
Version:   2.2.204
Commit:    8757db13ec
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.17134
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.2.204\
Host (useful for support):
Version: 2.2.5
Commit:  0a3c9209c0
.NET Core SDKs installed:
2.2.204 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
On "microsoft-downloads" I only found binary versions for runtime 1.0.0. (without installer)
How can I install the 1.0.0 (binary) and make the Windows recognize it as installed?

Get the 1.0 download: https://dotnet.microsoft.com/download/dotnet-core


WIP Node

This will require ipywidgets 5.0.

The first three commits are compatibility changes to use ipywidgets 5.0dev.
The last commit is about create requirejs shims for node.

This is superseeded by coming PR.


Add "color" to the logging based on logging level

Summary
Based on logging level have different colors for the logs for better reading and debugging.

I would like to work on this issue. Can you please assign this to me if it is yet to be picked up?


thelounge: migrate to prefetch-yarn-deps

Description of changes
#240174
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Priorities
Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 269310 run on x86_64-linux 1

1 package built:

thelounge

Just going to re-run the eval since it's been a bit of time since they ran.
@ofborg eval

reminder @winterqt

ping @winterqt and @RaitoBezarius ? can I merge this one day?

💪🏻
Thanks for moving it forward.


make test is broken with cappa dependency

Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML

[ ] Yes 👉 Please report a bug to the Argo Workflows GitHub 👈
[x] No

If yes, it is more likely to be an Argo bug unrelated to Hera. Please double check before submitting an issue to Hera.
2. This bug occurs in Hera when...

[ ] exporting to YAML
[ ] submitting to Argo
[ ] running on Argo with the Hera runner
[x] other:

Bug report
Describe the bug
make lint testand make test are throwing this error
I tried with python 3..8 and python 3.11, same issue occurs for both python versions
Error log if applicable:
397 files left unchanged
src/hera/_cli/base.py:7: error: Cannot find implementation or library stub for module named "cappa"  [import]
src/hera/__main__.py:15: error: Cannot find implementation or library stub for module named "cappa"  [import]
src/hera/__main__.py:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 2 errors in 2 files (checked 113 source files)
make: *** [lint] Error 1

Environment

Python Version: 3.11 and 3.8

Additional context
Add any other context about the problem here.

Hey @paravatha - could you rerun make install? I think you just need to refresh your python environment! This was fixed in #905 here. Closing as fixed (reopen if a new environment doesn't help!) - I couldn't reproduce in a fresh environment:
$ make install
Creating virtualenv hera-ZUOVT4Nk-py3.10 in /home/codespace/.cache/pypoetry/virtualenvs
...

Installing the current project: hera (0.0.0-dev)
$ make lint
396 files left unchanged
Success: no issues found in 113 source files


Permanent redirect in FCC express backend challenge

Describe the Issue
When trying to submit the code for the env challenge, an error is reported by the editor.
[Error: Unexpected token < in JSON at position 0]
Upon further analysis , the content it is trying to parse is Permanent Redirect.  The href being the Repl.it url.
Affected Page
https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/use-the--env-file
Your code
app.get("/json", function(req, res) {

  var objectMessage = {
    "message": "Hello json"
  };

  if (process.env.MESSAGE_STYLE == "uppercase") {
    objectMessage.message = objectMessage.message.toUpperCase();
  }
  else {
    //Do nothing
  }
  res.json(objectMessage);
})

Expected behavior
I expect to be able to submit the challenge correctly without any issues.
Screenshots

System

Device: Desktop
OS: Windows 10
Browser: Firefox
Version: 117.0 (64-bit)

Additional context
The issue is formally on this repo in index.js. I'm not quite sure how to resolve this though and would like a hint. I know it redirects with the https library, but how do I get to the resource route so things can proceed?

Thanks for taking the time to open this.
I am unable to reproduce any error with this challenge. Are you able to provide more information about your code? Maybe share your Replit code link.

I used the code from issue to pass the challenge without any troubles. It was on a fresh started replit from the boilerplate, with passed previous challenges in that section.

I guess I should have updated my node_modules. I'm going to close this issue then.


Reactivate unit test using TemporaryFolder

Currently, there's no native TemporaryFolder support in JUnit5, so we disable the following test cases. As soon there's a proper support TemporaryFolder, enable the following test cases.
Class: de.digitalcollections.commons.file.backend.impl.FileResourceRepositoryImplTest, line 214

Implement tests now with org.junit.jupiter.engine.extension.TempDirectory


CLI is not working (v1.0.4)

Issue:
I followed the commands, checked the requirements and im getting this error:

Here is my Node and npm versions:

Node: v22.9.0
npm: v10.8.3

I am working on the new update. Give me some time and I will fix this with a new feature 😁
Thanks for using react-native-lab

I am working on the new update. Give me some time and I will fix this with a new feature 😁
Thanks for using react-native-lab

No problem!
Btw, would be great to have some kind of Discord or way to contribute to this project if you are willing to
Thx in advance!

Yeah sure 👍!
I was thinking the same but doubted that anyone would ever join it.
Use lowercase letters until I patch this.

Yeah sure 👍!
I was thinking the same but doubted that anyone would ever join it.
Use lowercase letters until I patch this.

Just tried with challenge on first CLI input step but same error.

Check<EMAIL_ADDRESS>Bug is fixed with a new feature included in it. Now you can use NativeWind.
Run the command
npx react-native-lab@latest


Problem with reproducing w4a4 using lwc

Dear author,when I try to reproduce by running run_lwc.sh with
"python main.py
--block_size 128
--max_rotation_step 256
--epochs 20
--wbits 4
--abits 4
--model /mypath/llama-7b-hf
--lwc
--save_dir ./log/myw4a4_lwc
--alpha 0.5
--smooth
--lac 0.9
--task piqa",
I only get the results of
" 'results': {'piqa': {'acc': 0.5380848748639826,
'acc_norm': 0.5353645266594124,
'acc_norm_stderr': 0.011636607860111548,
'acc_stderr': 0.011631933367846709}},"
Is there any problem or hyperparameter may cause this problem?Many thanks

Hi, thank you for your question!
The parameters appear to be correct, as I have reproduced the experiment and obtained results similar to those reported in the paper. Could you confirm if the PPL results are as expected? If the PPL seems reasonable, I suggest checking the version of the lm_eval package, as it could impact the results. If you could share more details, we can further investigate the issue together.

Dear sir, I rerun the script again and tested the perplexity，I got “ INFO wikitext2 : 93.02549743652344. But I have run the script of "run.sh" before and get the similar results of the paper, so I think the lm_eval package is fine. By the way ,when I try to execute the code in the very beginning, it throw errors of"len(optimizer_state["found_inf_per_device"]) > 0AssertionError: No inf checks were recorded for this optimize", after searching on the Internet, I set the line 33 of the uitils.py to"self.scaler = torch.cuda.amp.GradScaler(enabled=False)", and add "loss.requires_grad(True)" to the begging of the call of NativeScalerWithGradNormCount. Was it cause the problem? If it is, how should I properly deal with it. Thank you very much.

Hi, it seems the problem is caused by torch.cuda.amp.GradScaler for mixed precision training of lwc. Maybe you could try directly training with float32 by setting dtype=float32.

Thanks！It really fixed the problem！


redpanda: move golden files into txtars

Previously, all golden files where kept as individual files in the testdata directory. This would result in very noisy diffs on Github upon most changes to the helm chart.
This commit adds functionality to run golden tests using a txtar archive which is a plain text "tar" archive. This limits diffs to instead be to a small set of very large files but preserves the ability to inspect diffs in plain text.

Hmmmm. So this is interesting. The txtar diff is now too long to be displayed on github which is certainly a major drawback. We could potentially chunk the txtar file so it doesn't exceed github's limits? WDYT @RafalKorepta? Worth it or should we stick with flat files?

Hmmmmmm. Let's hold off on merging this for a minute. I keep having trouble getting the txtars to update for some reason. I thought I had fixed the issue but it keeps coming back. Going to move this into a draft state and revisit it later.

Ah, might have figure it out. I think I messed up a loop and wasn't capturing a value correctly. Will still revisit this a bit later though because I found the issue in a conflict with a different patch.


Add mouseButton attribute in ReorderableListView

Use case
We want to write a reordered tab which can pop up menu when right mouse button is clicked, but it's easy to cause shaking When the right mouse button is clicked. So I need a ReorderableListView which only works on left mouse button.
In this code, It's easy to print "move" when clicking right mouse button.

Code
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  List<Color> list = [Colors.red, Colors.green, Colors.blue];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: Listener(
          onPointerMove: (event) => print("move"),
          child: ReorderableListView(
            scrollDirection: Axis.horizontal,
            children: [
              for (int i = 0; i < list.length; i++)
                ReorderableDragStartListener(
                  key: ValueKey(i),
                  index: i,
                  enabled: true,
                  child: Container(
                    width: 100,
                    height: 100,
                    color: list[i],
                  ),
                )
            ],
            onReorder: (int oldIndex, int newIndex) {
              setState(() {
                if (oldIndex < newIndex) {
                  newIndex -= 1;
                }
                final item = list.removeAt(oldIndex);
                list.insert(newIndex, item);
              });
            },
          ),
        ));
  }
}

Gif

Proposal
Add mouseButton attribute in ReorderableListView , or add  EventFilter  widget like Qt.

Thanks for the report @21pages. Can you check this issue and see if it helps in your case ? or your proposal is different from it ?

Different. That issue wants a grab handle instead of long press, I want a option reponse to specific mouse buttons, left/middle/right or .their combinations.

Presumably this issue generalizes to any component that handles mouse gestures by virtue of tap handling code, i.e. mobile input handlers that assumed single finger tapping, not 2 distinct mouse buttons.


Automatic media tracking in WebView

We are using webtrekk in an iOS App that has a WebView and automatic tracking enabled. Inside the Webviev we would like to track the events the user invokes (standard webtracking), including playing and pausing a <video> and which file is played.
Is it also possible to attach further properties of the video, like duration, id and so on and send that along the other data/events to the tracking?

Hi KonradCLAPP,
generally your problem is not something you'd solve in the SDK. When you use the webview you need to have the Webtrekk Tracking Pixel on that web content to track pageviews and video interactions. To ensure that both SDK and tracking pixel are tracking into the same session, please refer to chapter 9 of the SDK documentation.


Tag(add) not creating or adding tags

One click child link is not creating the tags on child..

I just tried this, and really wished this would be implemented.

Hi All, I have the same issue. Any chance it will be fixed soon?

I have looked through the code, it's just not taking into the account tags in the template:

And it is not entering block of code to push tags from the template:

But really, I don`t see reason why tags population is skipped :(

Has there been any further discussion on supporting tags yet?  I think it would be super helpful.

Is there any news on this topic?

This one works for me: https://marketplace.visualstudio.com/items?itemName=wilksmatt.create-child-tasks-public#:~:text=Create Child Tasks is an,single pre-defined Task template.


Mutation code breaks if method returns void.

https://github.com/graphql/graphql-relay-js/blob/481cae9ef6c0eb33849915caac21398307d9be54/src/mutation/mutation.js#L107
I am using loopback-graphql-relay package in my project. There are few loopback methods that don't return anything. For those methods graphql-relay's code break.
Below is the example mutation.
mutation {   User {     UserResetPassword<EMAIL_ADDRESS>{       obj        clientMutationId     }   } }

Fixed by #268


Extract/Transform HCMI and Cell Model Passports into PDCM template format

As a PDCM Finder dev, I would like to add the new organoid data sets to the raw data store
Code should be written to transform both datasets into the PDCM format so when the databases are updated we can pull changes.
####### ACCEPTANCE CRITERION #######

[x] CMP is tranformed
[x] CMP is in the data repo
[x] HCMI is transformed
[x] HCMI is in the data repo
[x] Correspondence with CMP as started
[x] Correspondence with HCMI as started

Waiting on correspondence.

@CsabaHalmagyi done


Remember original URL when you need to log in

Now it's annoying when you follow a link, and you log in, you are redirected to the home page, in stead of your url.

Assigning @grdw

I am still not redirected after signing in on beta.

Sign out
Go to http://beta.moses.et-model.com/testing_grounds/383
You're redirected to the login
You log in
You end up in the welcome page, while I would expect page under 2 above.

That's weird, I would expect the url from 2. to be in the session variable declared at: here.
Hmm, I'll take a look! :+1:


Proposal: /// should allow for accessing DefinitelyTyped URLs

Creating TypeScript files using build/runtime environments, like Node, Gulp, etc., I regularly find myself referencing public repositories.
Currently it looks like the /// <reference path="" /> syntax only allows for referencing local files (at least I couldn't find any information of IRIs being supported, and TSC claims File not Found error when using a DefinitelyTyped URL).
But this results in a requirement to deliver .d.ts files of public repositories along with the project and to keep their relative position in sync with locally generated .d.ts files. (See SetTrend/TS18N failing project for reference).
So I propose to allow to use IRIs for reference:
/// <reference path="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts" />

@SetTrend Just a note, but you can use a project like Typings or TSD to manage these type dependencies. The URL you reference wouldn't be useful though, it's a page on GitHub - what you might mean is the raw URL.

There are a lot of good reasons not to do this (security, compiling on an airplane, etc) and not a lot of convenience saved over using one of the tools mentioned above.

@blakeembrey : These tools don't update or even deal with TypeScript references in code. They just download the files - something that can be done manually as well. I'm referring to add an option for providing a CDN for type definitions.
@RyanCavanaugh : I suggest to allow URLs as an option - not a mandatory change. - TSC could maintain a local cache of downloaded TypeScript definitions. Then no online access would even be required - except for the first time a TypeScript definition would be downloaded. Security can't be an issue here as the TypeScript definitions are in fact coming from the same online website TSD downloads them from.
So, allowing for the /// <reference path="" /> to access URLs would in fact change nothing. But it would spare the referencing errors that occur when the output directory is not in the same directory hierarchy level as the referenced 3rd party .d.ts files.

No, they don't. They make it easier to manage, update and share.
I can attest to the fact that supporting URLs will most definitely be a pain. For instance, you suggest using a local cache for files. For one, the file you used in the example won't work anyway, so there's already user confusion there. Secondly, you're referencing a file that can change at any time, so your TypeScript project could breakdown any time depending on when TypeScript fetches updates on the URLs. Thirdly, it's a confusing case for users and definitely is definitely a complicated feature to implement correctly that's best left to third-parties for now - if someone wants to develop offline for a time, how do they download the definitions they'll need ahead of time?
As someone who has spent the last 10 months working on TSD and Typings, I can say it's definitely not as straight-forward as you may think. There's an unlimited amount of edge-cases, user messaging and features that'll need to be handled.

I don't see any of your points being valid:

For one, the file you used in the example won't work anyway, so there's already user confusion there.

That's because no official links have been provided so far. That's not a procedural issue.

Secondly, you're referencing a file that can change at any time, so your TypeScript project could breakdown any time depending on when TypeScript fetches updates on the URLs.

Again, that's because I have used a hyperlink to a non-versioned file. I could as well have been using https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0.9.5/node/node.d.ts - and, voilà ... The versioning issue disappears.

if someone wants to develop offline for a time, how do they download the definitions they'll need ahead of time?

Counter question: How would the do it using TSD - offline?
If TSC used a (global) cache that'd be the same functionality TSD provides right now, but without the hassle of either copying locally providing external .d.ts files along with your projects or having to redo all the external references after having downloaded your projects' .d.ts.

There's an unlimited amount of edge-cases, user messaging and features that'll need to be handled.

Which would these be? I don't see any difference between having TSC doing the same thing TSD does, but inline.

Moreover, TSD is a tool specific to DefinitelyTyped. Leaving the competence of TypeScript to TSC and allowing the compiler to utilize URLs would allow other repositories to store their own .d.ts files.
So Node may store their own version in their project, Angular may store their own version in their project and so on.

Whether or not it's easy (I am inclined to believe the person who's actually worked on it...) and whether or not it's a good idea (I'm not going to pass judgement either way), it's unquestionably out of scope for TSC. Maintaining a system for mapping arbitrary URLs to some cache in the filesystem is not the job of a compiler.

That's because no official links have been provided so far.

I was talking about your example link - you provided it to start the conversation. It's not valid. Also, the link you provided for versioning is also not valid. When you open a rabbit hole which involved linking via a URL arbitrarily, I think it's safe to assume more links than just GitHub will be used and most links can be updated at any time, which can create confusion for users. This is especially important, as everything would be in a global cache and it would be difficult to discover why things aren't working suddenly.
For reference, the URL you'd need to put is https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/0.9.5/node/node.d.ts. Without that, you're loading a HTML page. This is one such thing that could cause confusion if TypeScript supported URLs and it's meant to "just work".
I understand that the core issue feels very trivial, but once you start on one small thing like this it does turn into a cascade of features that need to be handled correctly. I believe the core teams time would be better spent improving TypeScript itself, while community members (like myself) can work on improving tooling of things like this (whether official or unofficial).

Counter question: How would the do it using TSD - offline?

I only asked about ahead of time, not about it being offline. With TSD or Typings you can just install them locally (explicitly) ahead of time, just as you'd install the NPM packages you want to use ahead of time.

Which would these be? I don't see any difference between having TSC doing the same thing TSD does, but inline.

There's the things I've mentioned so far and it's mostly usability issues and messaging. Here's a couple of thoughts, but how do you know the files have been downloaded correctly? What about if a response is corrupt? Local caches vs global caches? What if someone injected content when you downloaded something (a proxy, an ISP or even the wifi router)? Sure, it comes down to implementation and visibility into that implementation, but I suspect it could be hard to debug. Typings content updates, registry search, issues logging, getting help, corporate proxies, environment replicate - some more things to think about.
In any case, you're welcome to try using TSD or Typings to solve your issues. If there's something missing, you're welcome to contribute.

I was talking about your example link - you provided it to start the conversation. It's not valid. Also, the link you provided for versioning is also not valid.

Yes, agreed. But giving technically invalid, yet semantically valid, examples should not be regarded a reason for declining a semantic proposal. Don't you think so?

I think it's safe to assume more links than just GitHub will be used and most links can be updated at any time, which can create confusion for users.

AngularJS is hosted at various CDNs. Same for jQuery. Do you believe they are causing less confusion? I regard it a good idea to have .d.ts files stored along with their corresponding '.js' files.
Wouldn't you believe it wouldn't be fairly more confusing to use a particular CDN version and being required to download some entirely unrelated version, maintained by someone else, from somewhere else (i.e. DefinitelyTyped)?

I believe the core teams time would be better spent improving TypeScript itself, while community members (like myself) can work on improving tooling of things like this (whether official or unofficial).

I believe there are two types of TypeScript team: (a) The ones concerned with the language and (b) the others concerned with the technical implementation, i.e. the compiler. Compiler and language are two entirely different things. Otherwise there'd be only one compiler per language - which there isn't.
From my perspective, the team concerned with the compiler is responsible for providing the most seamless compiling experience possible. And, hence, requiring the user to manually maintain generated references I don't regard as a seamless compilation experience in any way.
Instead of flooding the hard drive with unnecessary local copies of .d.ts files which the user is required to maintain manually it would be a far better compiling experience if the TSC compiler maintained a global ZIP file containing all the .d.ts files in all their different versions. The ZIP file content's file names would be the URL of the .d.ts files. That would make things so much easier. And quicker. And leaner. And available offline.

how do you know the files have been downloaded correctly?

What is the semantic difference be between TSC downloading the file and TSD downloading the file?

What about if a response is corrupt?

What about if any of a CDN's JavaScript files is corrupt? Wouldn't that be a rather more severe issue?

Local caches vs global caches?

No local cache. What for?

@RyanCavanaugh : Please discuss and eventually re-open.

I have other tasks to accomplish.

So does the TypeScript team. We don't consider this within our scope a this time, nor do we feel it is necessarily a good idea. We'll continue weighing out what will make for a great experience while you use TypeScript, but like anyone else, we're not a team with unlimited resources.

But giving technically invalid, yet semantically valid examples should not be regarded a reason for declining a semantic proposal.

 There's a layer of confusion here to diffuse when a bunch of parser errors start popping up in tsc because it's downloaded HTML.

From my perspective, the team concerned with the compiler is responsible for providing the most seamless compiling experience possible.

I agree and I believe that's their goal too, I just believe there's more seamless ways to go than supporting URLs - for the reasons I stated previously.
As for all the comments on what if this or that is corrupt, yes, they are all issues. I'm trying to provide examples of failure points in HTTP and the current team already has a lot of work on their hands - I'm not sure it'd be valuable to take on additional debt when it's unwarranted. The existing tools work, and expand on just supporting URLs with a lot of additional features. Maybe they'll exist in the compiler one day, but for now it's a lot of work.

No. I'm not getting paid for contributing to either TSC nor TSD. I'm not working for Microsoft nor am I officially invited to TypeScript meetings or teams.

I am not paid to contribute to TSC, TSD or Typings - yet I help maintain them. I do not work for Microsoft either, nor do I get invited to TypeScript meetings or teams. There is no barrier stopping you from contributing.

AngularJS is hosted at various CDNs. Same for jQuery. Node packages are published at npm. Do you believe using these sources is causing less confusion?

Yes, but in clearly versioned semantics in all cases.  A user does not arbitrarily get X one day and Y another.
Also, npm (a package manager) does not auto-magically go fetch my dependencies.  I have to explicitly instruct it to do so.  I would be even more scared if my compiler did it.

Also, npm (a package manager) does not auto-magically go fetch my dependencies.

That's not correct, I'm afraid: npm does fetch dependencies intrinsically. Check for the node_modules folder.

So does the TypeScript team. We don't consider this within our scope a this time, nor do we feel it is necessarily a good idea. We'll continue weighing out what will make for a great experience while you use TypeScript, but like anyone else, we're not a team with unlimited resources.

I may have phrased my posting in an unfortunate manner. I'm sorry for that. Yet you're writing exactly what I have been writing, just with other words:

@blakeembrey :+1:


Sign in with Google dead link

Web page screws up if you press the "Sign up with Google" button on the front page whilst being online on a regular Gmail account. Subsequent entries into the form end up with a blank page.
What it is:
<form class="form-inline" id="send_confirm" name="email_form" action="" method="post" novalidate="novalidate">

If you were to press the register button on the top right corner the action tag wouldn't be empty and I'm guessing it should be like this:
<form class="form-inline" id="send_confirm" name="email_form" action="/register/" method="post" novalidate="novalidate">

Code in question:
           <form class="form-inline" id="send_confirm" name="email_form"
                  action="{{ current_url }}" method="post">

Link to HTML

@Plonski can you give a bit more detail on the situation?  Is this in a development environment or production?

It is occurring in production.
How to recreate it:

Open a incognito page
Go to Zulip.com
Press the Sign in with Google button
Sign into a non-work email.
The standard "Your e-mail does not match any existing organization." message should pop up.
Enter your email again.

The dead link should show up there. The register button on the top right works fine though.

I think this was fixed months ago.


Android image_picker crashes when non-image file selected

When using ImagePicker.pickImage on Android it is possible to launch into external apps to select a file. Some of these external apps, including Microsoft OneDrive and Google Drive, do not respect the image/* mime type filter, allowing the user to pick a file that is not an image. Doing so crashes the flutter app.
Flutter obviously shouldn't be responsible for the behaviour of these file providers, but it would be good to have this situation handled elegantly by the plugin. Preferably with an error that could be caught in the Flutter application so that a message could be shown to the user.
Steps to Reproduce

Using: image_picker: ^0.6.1+4. Tested on Galaxy S10+
Launch ImagePicker.pickImage(source: ImageSource.gallery). Minimal sample app:

import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(),
        body: Center(
          child: RaisedButton.icon(
            icon: Icon(Icons.camera_alt),
            label: Text('Pick Image'),
            onPressed: () async {
              final file = await ImagePicker.pickImage(source: ImageSource.gallery);
              print(file.path);
            }
          ),
        ),
      )
    );
  }
}

Open the side menu and select to launch a different file provider app, like Google Drive or Microsoft OneDrive

Selecting any of the file sources in the black box below results in the files from that provider being displayed within the Android native file picking window. This window does correctly prevent selection of non-image files, so there is no issue.
However, selecting a file source from the red box launches the selected app directly to pick the file. This is where choosing Google Drive or Microsoft OneDrive will result in the image/* restriction being ignored.

Select a non-image type file. E.g. a markdown file from Google Drive. The flutter application crashes.

Logs
Logs from flutter run including exception
[        ] Connected to _flutterView/0x71f427af20.
[   +2 ms] �  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[   +2 ms] An Observatory debugger and profiler on SM G975F is available at: http://<IP_ADDRESS>:60020/Ye6dFqZSHkY=/
[        ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+3213 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): ViewPostIme pointer 0
[  +54 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): ViewPostIme pointer 1
[  +62 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): MSG_WINDOW_FOCUS_CHANGED 0 1
[        ] D/InputMethodManager(13647): prepareNavigationBarInfo() DecorView@30a6393[MainActivity]
[        ] D/InputMethodManager(13647): getNavigationBarColor() -855310
[ +308 ms] D/InputTransport(13647): Input channel destroyed: fd=95
[  +60 ms] D/SurfaceView(13647): onWindowVisibilityChanged(8) false io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154} of ViewRootImpl@30dbb01[MainActivity]
[   +1 ms] D/SurfaceView(13647): show() Surface(name=SurfaceView - com.buntagon.image_pick_failure/com.buntagon.image_pick_failure.MainActivity@48b1b94@0[13647])/@0xa1a063d io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154}
[   +9 ms] D/SurfaceView(13647): surfaceDestroyed callback.size 1 #2 io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154}
[   +2 ms] W/libEGL  (13647): EGLNativeWindowType 0x71d3e77010 disconnect failed
[        ] D/SurfaceView(13647): destroy() Surface(name=SurfaceView - com.buntagon.image_pick_failure/com.buntagon.image_pick_failure.MainActivity@48b1b94@0[13647])/@0xa1a063d io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154}
[        ] W/libEGL  (13647): EGLNativeWindowType 0x71d3e76010 disconnect failed
[        ] D/OpenGLRenderer(13647): eglDestroySurface = 0x71edceb800, 0x71d3e76000
[  +15 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x5 surface={valid=false 0} changed=true
[   +4 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): setWindowStopped(true) old=false
[        ] D/SurfaceView(13647): windowStopped(true) false io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154} of ViewRootImpl@30dbb01[MainActivity]
[   +1 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): Surface release. android.view.WindowManagerGlobal.setStoppedState:669 android.app.Activity.performStop:7650 android.app.ActivityThread.callActivityOnStop:4378
android.app.ActivityThread.performStopActivityInner:4356 android.app.ActivityThread.handleStopActivity:4431 android.app.servertransaction.StopActivityItem.execute:41 android.app.servertransaction.TransactionExecutor.executeLifecycleState:145
android.app.servertransaction.TransactionExecutor.execute:70
[+8034 ms] D/SurfaceView(13647): onWindowVisibilityChanged(4) false io.flutter.view.FlutterView{48b1b94 VFE...... ........ 0,0-1080,2154} of ViewRootImpl@30dbb01[MainActivity]
[   +1 ms] D/ViewRootImpl@30dbb01[MainActivity](13647): Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] result=0x1 surface={valid=false 0} changed=false
[ +548 ms] D/skia    (13647): --- Failed to create image decoder with message 'unimplemented'
[   +1 ms] D/AndroidRuntime(13647): Shutting down VM
[        ] E/AndroidRuntime(13647): FATAL EXCEPTION: main
[        ] E/AndroidRuntime(13647): Process: com.buntagon.image_pick_failure, PID: 13647
[        ] E/AndroidRuntime(13647): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { act=android.intent.action.VIEW
dat=content://com.google.android.apps.docs.storage.legacy/enc=TArrOdHjdu0KBanoTM4i_vmVWthVLEGGE9zKprXizkaxwDW1nePWL80GLvN_a5ewzDmP3x_CZtSG
[   +1 ms] E/AndroidRuntime(13647): nzuBAiSadZhQFY0QWmeSDvAvDTuKGpRnojrFEb2SZzcdfGn5UCXT46Hr5Q==
[   +3 ms] E/AndroidRuntime(13647):  (has extras) }} to activity {com.buntagon.image_pick_failure/com.buntagon.image_pick_failure.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null
object reference
[   +1 ms] E/AndroidRuntime(13647):     at android.app.ActivityThread.deliverResults(ActivityThread.java:4609)
[   +1 ms] E/AndroidRuntime(13647):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:4651)
[        ] E/AndroidRuntime(13647):     at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
[        ] E/AndroidRuntime(13647):     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
[        ] E/AndroidRuntime(13647):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
[        ] E/AndroidRuntime(13647):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1947)
[        ] E/AndroidRuntime(13647):     at android.os.Handler.dispatchMessage(Handler.java:106)
[        ] E/AndroidRuntime(13647):     at android.os.Looper.loop(Looper.java:214)
[        ] E/AndroidRuntime(13647):     at android.app.ActivityThread.main(ActivityThread.java:7037)
[        ] E/AndroidRuntime(13647):     at java.lang.reflect.Method.invoke(Native Method)
[        ] E/AndroidRuntime(13647):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
[        ] E/AndroidRuntime(13647):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
[        ] E/AndroidRuntime(13647): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
[        ] E/AndroidRuntime(13647):     at io.flutter.plugins.imagepicker.ImageResizer.resizedImage(ImageResizer.java:52)
[        ] E/AndroidRuntime(13647):     at io.flutter.plugins.imagepicker.ImageResizer.resizeImageIfNeeded(ImageResizer.java:40)
[        ] E/AndroidRuntime(13647):     at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleImageResult(ImagePickerDelegate.java:530)
[        ] E/AndroidRuntime(13647):     at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:463)
[        ] E/AndroidRuntime(13647):     at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:442)
[        ] E/AndroidRuntime(13647):     at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:204)
[        ] E/AndroidRuntime(13647):     at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:132)
[        ] E/AndroidRuntime(13647):     at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:142)
[        ] E/AndroidRuntime(13647):     at android.app.Activity.dispatchActivityResult(Activity.java:7762)
[   +1 ms] E/AndroidRuntime(13647):     at android.app.ActivityThread.deliverResults(ActivityThread.java:4602)
[        ] E/AndroidRuntime(13647):     ... 11 more
[        ] I/Process (13647): Sending signal. PID: 13647 SIG: 9
[  +90 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +2 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.buntagon.image_pick_failure/code_cache/image_pick_failureNAIRNV/image_pick_failure/)
[        ] Sending to VM service: _deleteDevFS({fsName: image_pick_failure})
[ +252 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +2 ms] "flutter run" took 44,098ms.

Flutter analyze
flutter analyze
Analyzing image_pick_failure...
No issues found! (ran in 2.5s)

Flutter Doctor
flutter doctor -v
[√] Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows [Version 10.0.18362.295], locale en-AU)
    • Flutter version 1.9.1+hotfix.2 at C:\flutter
    • Framework revision 2d2a1ffec9 (4 days ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\Alex\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 38.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.37.1)
    • VS Code at C:\Users\Alex\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.3.0

[√] Connected device (1 available)
    • SM G975F • R58M20N3HSM • android-arm64 • Android 9 (API 28)

• No issues found!

Does it really work if you pick a valid image file from OneDrive? In my test environment (Galaxy S7/Android 8) it will crash to #38775.

You're right, looks like even valid images picked OneDrive cause crashes as well. That seems like a separate problem from this issue.

This is fixed with https://github.com/flutter/plugins/pull/2293. Closing the issue.


Upgrade guidance for Scoped ConsumeContext

Update guidance for v8.1
Mark methods with obsolete
Refactor TestHarness to use correct Query/Load repository implementation

looks like flaky test: https://github.com/NooNameR/MassTransit/actions/runs/4960601901


Reproduce the result

          Hi,

you can either train the model yourself (option 1) or use one of the provided checkpoints directly for evaluation, skipping the training (option 2). Note that after training your model, you still need to run evaluation with your obtained checkpoint!
For option 1, training is explained here.
For option 2, evaluation with a given checkpoint path is explained here.
What you will get in the end is a directory with reconstructed views of test scenes.
For computing the statistics, I used the src/scripts/compute_metrics.py script in combination with the evaluation config files in config/evaluation. Not that in the evaluation config file, e.g. config/evaluation/co3d_hydrant_extra.yaml, you need to specify the paths to the generated image directories from evaluation (you can comment out all other baseline methods).
The example for extrapolation on CO3D hydrants would look like this:
python -m src.scripts.compute_metrics evaluation=co3d_hydrant_extra
Feel free to reopen the issue in case of any further questions :)
Best
Chris
Originally posted by @Chrixtar in https://github.com/Chrixtar/latentsplat/issues/7#issuecomment-2109979521
hi Chris,
Thanks for the detailed reply.
With your provided ckpt, I am able to reproduce the statistics of paper.
However, I also tried to train the model by myself.
Here is what I have done:
I ran on python3 -m src.main +experiment=co3d_hydrant on 2 gpus with config files unchanged. After training is done, I took last.ckpt and ran eval for hydrant extra:
And got: dist 0.266, lpips: 0.529, psnr: 13.855, ssim: 0.192. which is apparently not correct.
Is there anything wrong with my settings? Thanks!

Sorry that I didn't find the reopen button so I started a new issue.
I used two GPU to train because my GPU is relatively old and slow.

Hi,
I trained another two models using 2 GPU BS 1 setting and 1 GPU BS 2 setting. However the reproduced result is still much lower than the ckpt you provided.
Could you provide the config file (hyperparams) that you use to train so that I can reproduce it? Thanks

Hi,
sorry for the late response. The config files are exactly the ones given in the repository and command python3 -m src.main +experiment=co3d_hydrant you mentioned is correct.
Have you trained for the full number of iterations?
And the batch size matters. Reducing the batch size can affect the performance, as 1) the learning rate might be suboptimal, as gradients become more noisy for smaller batch sizes (note that the learning rate for training the decoder is scaled by the batch size to account for that), 2) you need more iterations with a smaller batch size to effectively train for the same number of epochs (i.e. see the same amount of data (with repetitions)).
I will train it myself again as well to see the effect of different batch sizes and hopefully find out the reason why you cannot reproduce the results.


Invalid return value when call room.qrCode()

Important：Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

Please run the following command and check whether the problem has been fixed：

npm install wechaty-puppet-padlus@next

Please search in the issue first, and make sure your problem had not been reported before

1. Versions

What is your wechaty version?
Answer: 0.28.3

What is your wechaty-puppet-macpro version?
Answer: 0.1.22

What is your node version? (run node --version)
Answer: 11.10

What os are you using
Answer: macOS 10.14

2. Describe the bug
Give a clear and concise description of what the bug is.

Puppet interface define a roomQrcode method and mac-api/room.ts implements it, but the return value of this method change to Promise expected Promise.
Now I want get the QR code of room, but this API returned status value .
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Steps to reproduce the behavior:

room.qrcode().then(qrcode => log.info(qrcode))

4. Expected behavior
Give a clear and concise description of what you expected to happen.
5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.
6. Full Output Logs
Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)
We need full log instead of log screenshot or log fragments!

14:39:17 SILL GRPC_GATEWAY
      ===============================================================
      API Name : getRoomQRCode
      Request data : {"g_number":"18341181721@chatroom","my_account":"wxid_mrna519vu30q22"}
      Response data : 1
      ===============================================================
14:39:17 SILL MacproRoom roomQrcode message : {"code":1,"msg":"发送成功"}

$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context
Add any other context about the problem here.
[bug]

Already resolved, please check it again, if this problem not exist, please close this issue, thank you.


when writing and reading a line the first character is lost

You need to provide the Message.Create method with a message ID (ushort) if you're sending it via Reliable or Unreliable mode, or you need to manually add the message ID (via message.AddUShort) before anything else.
The overload you're using there which only takes the send mode as a parameter is intended for use with the Notify send mode (as indicated by the documentation/XML doc comments which should show in your intellisense) since that doesn't make use of message IDs.


Add note on usage of email links in Condition Tiles

We need to clarify to the Cx the needed pre-requisite for the usage of email links in and If/Then tiles.
Work Item for reference : https://dev.azure.com/dynamicscrm/CXPlatform/_workitems/edit/2879005

@monaessam1 thank you -- merged!


URL action

Initial URLAction implementation.
The test configuration simply calls /health and logs the result.

This is done for now. I'm going to merge into release-jobs and make any changes there.


Cache the request locally...

...and create some sort of hash for reproducibility. That way we can know if the same request yielded different data.

What is a "has for reproducibility"? I will use lru to cache stuff as best I can

What is a "has for reproducibility"? I will use lru to cache stuff as best I can

It was supposed to read hash. I just updated it. Typing with one hand and holding the baby in another one has some consequences ;-p

Ah cool, working those ninja baby juggling skills :P
lru first then I'll look up hashes