accelerate test TPU v2-8 Error: Unsupported nprocs

System Info
- `Accelerate` version: 0.33.0
- Platform: Linux-5.4.0-1043-gcp-x86_64-with-glibc2.31
- `accelerate` bash location: /home/kojoe/.local/bin/accelerate
- Python version: 3.10.14
- Numpy version: 1.26.4
- PyTorch version (GPU?): 2.4.0+cu121 (False)
- PyTorch XPU available: False
- PyTorch NPU available: False
- PyTorch MLU available: False
- PyTorch MUSA available: False
- System RAM: 334.58 GB
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: XLA
        - mixed_precision: no
        - use_cpu: False
        - debug: False
        - num_processes: 2
        - machine_rank: 0
        - num_machines: 1
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - enable_cpu_affinity: False
        - downcast_bf16: no
        - tpu_use_cluster: False
        - tpu_use_sudo: False
        - tpu_env: []

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[ ] My own task or dataset (give details below)

Reproduction
kojoe@t1v-n-c3d71aed-w-0:/$ accelerate test
WARNING:root:libtpu.so and TPU device found. Setting PJRT_DEVICE=TPU.

Running:  accelerate-launch /home/kojoe/.local/lib/python3.10/site-packages/accelerate/test_utils/scripts/test_script.py
stderr: WARNING:root:Unsupported nprocs (2), ignoring...
stderr: concurrent.futures.process._RemoteTraceback:
stderr: """
stderr: Traceback (most recent call last):
stderr:   File "/usr/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
stderr:     r = call_item.fn(*call_item.args, **call_item.kwargs)
stderr:   File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in _process_chunk
stderr:     return [fn(*args) for args in chunk]
stderr:   File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in <listcomp>
stderr:     return [fn(*args) for args in chunk]
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 58, in _run_thread_per_device
stderr:     initializer_fn(local_rank, local_world_size)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 121, in initialize_multiprocess
stderr:     devices = xm.get_xla_supported_devices()
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/core/xla_model.py", line 88, in get_xla_supported_devices
stderr:     devices = torch_xla._XLAC._xla_get_devices()
stderr: RuntimeError: Bad StatusOr access: UNKNOWN: TPU initialization failed: open(/dev/accel0): Operation not permitted: Operation not permitted; Couldn't open device: /dev/accel0; Unable to create Node RegisterInterface for node 0, config: go/nodeserialize    device_path: "/dev/accel0" mode: KERNEL debug_data_directory: "" dump_anomalies_only: true crash_in_debug_dump: false allow_core_dump: true; could not create driver instance
stderr: """
stderr:
stderr: The above exception was the direct cause of the following exception:
stderr:
stderr: Traceback (most recent call last):
stderr:   File "/home/kojoe/.local/bin/accelerate-launch", line 8, in <module>
stderr:     sys.exit(main())
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1112, in main
stderr:     launch_command(args)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1102, in launch_command
stderr:     tpu_launcher(args)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 825, in tpu_launcher
stderr:     xmp.spawn(PrepareForLaunch(main_function), args=(), nprocs=args.num_processes)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 37, in spawn
stderr:     return pjrt.spawn(fn, nprocs, start_method, args)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 209, in spawn
stderr:     run_multiprocess(spawn_fn, start_method=start_method)
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 169, in run_multiprocess
stderr:     replica_results = list(
stderr:   File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 170, in <genexpr>
stderr:     itertools.chain.from_iterable(
stderr:   File "/usr/lib/python3.10/concurrent/futures/process.py", line 575, in _chain_from_iterable_of_lists
stderr:     for element in iterable:
stderr:   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
stderr:     yield _result_or_cancel(fs.pop())
stderr:   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
stderr:     return fut.result(timeout)
stderr:   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
stderr:     return self.__get_result()
stderr:   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
stderr:     raise self._exception
stderr: RuntimeError: Bad StatusOr access: UNKNOWN: TPU initialization failed: open(/dev/accel0): Operation not permitted: Operation not permitted; Couldn't open device: /dev/accel0; Unable to create Node RegisterInterface for node 0, config: go/nodeserialize    device_path: "/dev/accel0" mode: KERNEL debug_data_directory: "" dump_anomalies_only: true crash_in_debug_dump: false allow_core_dump: true; could not create driver instance
Traceback (most recent call last):
  File "/home/kojoe/.local/bin/accelerate", line 8, in <module>
    sys.exit(main())
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
    args.func(args)
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/test.py", line 53, in test_command
    result = execute_subprocess_async(cmd)
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/test_utils/testing.py", line 584, in execute_subprocess_async
    raise RuntimeError(
RuntimeError: 'accelerate-launch /home/kojoe/.local/lib/python3.10/site-packages/accelerate/test_utils/scripts/test_script.py' failed with returncode 1

The combined stderr from workers follows:
WARNING:root:Unsupported nprocs (2), ignoring...
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in _process_chunk
    return [fn(*args) for args in chunk]
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in <listcomp>
    return [fn(*args) for args in chunk]
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 58, in _run_thread_per_device
    initializer_fn(local_rank, local_world_size)
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 121, in initialize_multiprocess
    devices = xm.get_xla_supported_devices()
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/core/xla_model.py", line 88, in get_xla_supported_devices
    devices = torch_xla._XLAC._xla_get_devices()
RuntimeError: Bad StatusOr access: UNKNOWN: TPU initialization failed: open(/dev/accel0): Operation not permitted: Operation not permitted; Couldn't open device: /dev/accel0; Unable to create Node RegisterInterface for node 0, config: go/nodeserialize    device_path: "/dev/accel0" mode: KERNEL debug_data_directory: "" dump_anomalies_only: true crash_in_debug_dump: false allow_core_dump: true; could not create driver instance
"""

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

Traceback (most recent call last):
  File "/home/kojoe/.local/bin/accelerate-launch", line 8, in <module>
    sys.exit(main())
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1112, in main
    launch_command(args)
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1102, in launch_command
    tpu_launcher(args)
  File "/home/kojoe/.local/lib/python3.10/site-packages/accelerate/commands/launch.py", line 825, in tpu_launcher
    xmp.spawn(PrepareForLaunch(main_function), args=(), nprocs=args.num_processes)
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 37, in spawn
    return pjrt.spawn(fn, nprocs, start_method, args)
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 209, in spawn
    run_multiprocess(spawn_fn, start_method=start_method)
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 169, in run_multiprocess
    replica_results = list(
  File "/home/kojoe/.local/lib/python3.10/site-packages/torch_xla/_internal/pjrt.py", line 170, in <genexpr>
    itertools.chain.from_iterable(
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 575, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
    yield _result_or_cancel(fs.pop())
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
    return fut.result(timeout)
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
RuntimeError: Bad StatusOr access: UNKNOWN: TPU initialization failed: open(/dev/accel0): Operation not permitted: Operation not permitted; Couldn't open device: /dev/accel0; Unable to create Node RegisterInterface for node 0, config: go/nodeserialize    device_path: "/dev/accel0" mode: KERNEL debug_data_directory: "" dump_anomalies_only: true crash_in_debug_dump: false allow_core_dump: true; could not create driver instance

Expected behavior
Should test successfully. I have seen similar problems with Unsupported nprocs, so only try 2 for num_processes and it fails, this should have worked also for 8 for num_processes.

To be clear: did it work for 8 processes? It seems torch_xla doesn't support just using 2, based on what the error states

No for 8 as well @muellerzr

Same error here, any ideas what's wrong?  @muellerzr
It seems that something is missing judging from the traceback error, why is it assuming that colab runs on GPU?
[/usr/local/lib/python3.10/dist-packages/accelerate/launchers.py](https://localhost:8080/#) in notebook_launcher(function, args, num_processes, mixed_precision, use_port, master_addr, node_rank, num_nodes, rdzv_backend, rdzv_endpoint, rdzv_conf, rdzv_id, max_restarts, monitor_interval, log_line_prefix_template)
    149         print(f"Launching a training on {num_processes} TPU cores.")
    150         xmp.spawn(launcher, args=args, nprocs=num_processes, start_method="fork")
--> 151     elif in_colab and get_gpu_info()[1] < 2:
    152         # No need for a distributed launch otherwise as it's either CPU or one GPU.
    153         if torch.cuda.is_available():

I see that the code checks:
    if (in_colab or in_kaggle) and (os.environ.get("TPU_NAME", None) is not None):

But here (using TPU)
print(os.environ.get("TPU_NAME"))

Is indeed None.

For anyone working with TPUs and can not use all tpu devices, nprocs only works with either 1 or all devices.
To utilize all tpu devices with accelerate. Follow this
site_pkg_path=$(python3.10 -c 'import site; print(site.getsitepackages()[0])')

# TPU all gather implementation
cd $site_pkg_path/accelerate/utils/
sudo rm -rf operations.py
sudo wget -O operations.py https://raw.githubusercontent.com/radna0/EasyAnimate/75206e17b95a48001d97fb870a53f81272c749b6/accelerate/operations.py

# Accelerate TPU config

accelerate config default
cd ~/.cache/huggingface/accelerate/
rm default_config.yaml
wget -O default_config.yaml https://raw.githubusercontent.com/radna0/EasyAnimate/75206e17b95a48001d97fb870a53f81272c749b6/accelerate/config.yaml


[Not an issue] Just want to say thank you

This is not an issue.
Thanks @nolanlawson for this great picker and all the hours you’ve put into it.
In a time of overly huge and complex components, when most of all web-apps on the web are heavy and complex bundled beasts - having a great example how to use modern technology to make a great custom element.
The repository structure is probably the second best thing for me. It shows how to have a comprehensive suite for a modern and not-too-simple custom element. It will be an inspiration for me, when I create custom elements.
(Feel free to close it and sorry for the spam)

Thanks a lot! I appreciate seeing issues like this; just makes my day a bit brighter. :slightly_smiling_face:
In case you're looking for inspiration on your next custom element project, there's one thing I would say: if I could go back in time, I might choose to use Karma instead of Jest for the tests. Jest tests are neat because they run in-Node rather than in-browser, but there are enough differences between a real browser and Jest/JSDom that I'm starting to feel like it's more trouble than it's worth.
But hopefully other than that, the repo is pretty decent to look at. :sweat_smile: Anyway, thanks!


add doxygen blocks

branch for code documentation
this is a WIP to write doxygen blocks per function in all tiers which will be use later on as a base for autogeneration of higher level user API (pyclesperanto, clesperantoJ, etc).

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (654a5e2) 49.82% compared to head (3a0c0a9) 49.82%.

:exclamation: Current head 3a0c0a9 differs from pull request most recent head b4989ac. Consider uploading reports for the commit b4989ac to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #223   +/-   ##
=======================================
  Coverage   49.82%   49.82%
=======================================
  Files          14       14
  Lines        3157     3157
  Branches     1329     1329
=======================================
  Hits         1573     1573
  Misses        537      537
  Partials     1047     1047

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

let's try an other approach


PressableButtonCube position shift

Describe the bug
PressableButtonCube shifts positions in play mode.
To reproduce
Steps to reproduce the behavior:

Navigate to PressableButtonExample
Run Scene

Expected behavior
No position shift.
Screenshots
Video of Issue

Your Setup (please complete the following information)

Unity Version: 2018.4.7f1
MRTK Version: v2.1

Target Platform (please complete the following information)

HoloLens
HoloLens 2
WMR immersive
OpenVR

@CDiaz-MS, I have a fix for this locally.  Sending out a PR shortly.


Response divergence from AWS S3

Describe the bug
Versity Gateway shows divergent behaviour from Amazon S3 in the following scenario. We have created a bucket called 'titest' and uploaded a file called 'test21'. We then used the s3api interface to retrieve the file as follows:
Using aws:
aws s3api get-object --bucket titest --key test1 test1 [operation succeeds]
aws s3api get-object --bucket titest --key test1/ x1
An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist.
In the second instance we are specifying a trailing / in the key and S3 responds with 'key does not exist'.
If we try the second scenario with Versity, the second operation (with trailing /) succeeds:
vgaws s3api get-object --bucket titest --key test1/ x1
{
"AcceptRanges": "",
"LastModified": "Thu, 01 Aug 2024 10:55:26 GMT",
"ContentLength": 1024,
"ETag": "187448fd5bc7e992c124a773eccee369",
"ContentRange": "",
"ContentType": "text/plain; charset=utf-8",
"Metadata": {},
"StorageClass": ""
}
We get an identical response whether or not the key has a trailing /.
Using the delve debugger, we can see how this comes about via the parsing of the gofiber front-end package.
Base.go line 78 onwards:
78:
79: func (c S3ApiController) GetActions(ctx *fiber.Ctx) error {
80:         bucket := ctx.Params("bucket")
81:         key := ctx.Params("key")
82:         keyEnd := ctx.Params("*1")
=>  83:         uploadId := ctx.Query("uploadId")
84:         maxParts := int32(ctx.QueryInt("max-parts", -1))
85:         partNumberMarker := ctx.Query("part-number-marker")
86:         acceptRange := ctx.Get("Range")
87:         acct := ctx.Locals("account").(auth.Account)
88:         isRoot := ctx.Locals("isRoot").(bool)
(dlv) p key
"test1"
(dlv) p keyEnd
""
(dlv) p ctx
[some lines removed for clarity]
method: "GET",
methodINT: 0,
baseURI: "",
path: "/titest/test1/",
pathBuffer: []uint8 len: 14, cap: 16, [47,116,105,116,101,115,116,47,116,101,115,116,49,47],
detectionPath: "/titest/test1/",
detectionPathBuffer: []uint8 len: 14, cap: 16, [47,116,105,116,101,115,116,47,116,101,115,116,49,47],
treePath: "/ti",
pathOriginal: "/titest/test1/",
values: [30]string ["titest","test1","","","","","
We can see that in the gofiber context structure, the incoming path shows the trailing slash, but this is removed when the URI is parsed into key values. Versity is never aware that the key was originally supplied with a trailing slash.
To Reproduce
Use
aws s3api get-object --bucket  --key
then
aws s3api get-object --bucket  --key
AWS S3 fails the second command with 'key not found'. Versity treats the two cases the same and both succeed.
Expected behavior
The second case described above should return the same error as aws s3, "specified key does not exist"
Server Version

./versitygw -version && uname -a
Version  :
Build    : release-rpm
BuildTime: 2024-07-26_09:16:00AM
Linux ip-10-100-0-246 4.18.0-513.18.1.el8_9.x86_64 #1 SMP Thu Feb 1 03:51:05 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

Additional context

aws --version
aws-cli/1.24.10 Python/3.6.8 Linux/4.18.0-513.18.1.el8_9.x86_64 botocore/1.26.10

Thank you for the detailed bug report. I think we had a similar issue when trying to put keys with trailing / to create the resulting directory. I'll look to see if we can do a similar fix for this case.

this is affecting head-object and delete-object as well


Feature request: allow extra packages by VCS import or git submodules

This follows https://github.com/micro-ROS/micro_ros_espidf_component/pull/30
When setting up an application and tracking it with git, I import micro_ros_espidf_component as a git submodule.
I'd like to track additional application-specific ROS2 packages as either more git submodules, or with an extra_packages.repos file.
At the moment, extra packages cannot be tracked with git submodules without a race condition on import (my bad)
It seems like either the extra_packages folder or extra_packages.repos (or both) should sit outside this component, in the application root.
However, looking for a file in $(EXTENSIONS_DIR)/../../extra_packages.repos would prevent the user from being able to install this component IDF-wide.
Is there a makefile variable that can target the application root? or can the application CMakeLists.txt pass it on?

I really don't know, I will check it when I have a moment. Let me know if you find a solution.

I really don't know, I will check it when I have a moment. Let me know if you find a solution.

I've found a workaround, but it's kinda ugly.
In the project root, create a folder called extra_ros_packages, and use the CMakeLists.txt file from the project root to copy it into the micro_ros component at build time:
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/extra_ros_packages DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/components/micro_ros_espidf_component/extra_packages)

This might be viable for extra_packages.repos and does work for submodules, but I'd prefer not to have such excessive duplication.
I'll keep looking for a solution based on parameter passing.

I've found a workaround, but it's kinda ugly.
In the project root, create a folder called extra_ros_packages, and use the CMakeLists.txt file from the project root to copy it into the micro_ros component at build time:
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/extra_ros_packages DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/components/micro_ros_espidf_component/extra_packages)

This might be viable for extra_packages.repos and does work for submodules, but I'd prefer not to have such excessive duplication.
I'll keep looking for a solution based on parameter passing.

I agree that it would be nice if additional ROS2 packages could be managed outside of this component.
Therefore I created this PR #83 , which makes it possible to have additional ROS2 packages in the extra_ros_packages which should be located in the IDF project's root directory.
It also also imports packages from a extra_packages.repos file, which should be located inside the extra_ros_packages folder.

Closed by https://github.com/micro-ROS/micro_ros_espidf_component/pull/83


Respond to feedback about handler factory

Handler factories are now associated with the dispatcher entry
Handler factory is now an interface

/cc @davidfowl @jbagga - responding to more of the feedback from wednesday


docs(README): update TS example

Description
Updates the TypeScript example
Motivation and Context
Makes it up to date.
How has this been tested?

Tested locally
Types of changes

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

Checklist:

[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

The proposed change is dependent on the settings of your tsconfig.json.
These is no right or wrong. Really depends on your project...

Ah well I was just trying to make it easier to copy & paste the TS example from the README. If you disagree, feel free to reject PR and close

keeping types as part of documentation


Add Poland flag

Added flag of Poland

@mschweichler Hey!
I just checked and found colors of Poland's flag are white and red. Source. Could you please check and let me know if this is correct?

Well, yeah, it's true, we can say it's white and red, but official shades are #E9E8E7 white and #D4213D red :)
You can take a look at wikipedia's html to see hex values of colors used in the table.

Ok, I changed colors to  #FFF and #F00 - not official shades, but more popular for sure :)

@mschweichler If its official then yes, we should use it. :)

@ManrajGrover  done :)

Thank you @mschweichler :smile: Awesome work! Keep contributing!


Added rate limiting to prevent submitting requests to the Nexmo APIs too quickly

Nexmo will reject requests if they are submitted too quickly with a "429 Too Many Requests" error. The limit for the Developer API is 3 requests per second, and the SMS and Voice APIs limit at 30 requests per second (except US/Canada, it's 1 request per second). Details at https://help.nexmo.com/hc/en-us/articles/203993598
This commit includes changes to use a RateLimitSubscriber, which is a native hook for the Guzzle HTTP client. It times the previous request, and if it is faster than the minimum to stay below the rate limit, it will sleep long enough so the second request does not violate the rate limit. SMS and Voice requests are timed on a per-LVN basis so the delay will only occur when sending from the same LVN too quickly would trigger the limit, but sending from different LVNs will still be fast. Each service class is given a getRateLimit() method which returns the limit for that specific API endpoint.

I'm not sure it should be a part of this lib. Does it make sense to extract it to a separate package?

At Connect we have our own wrapper which is responsible for rate limiting. It should be a part of your framework not a part of this particular lib. See for instance http://www.yiiframework.com/doc-2.0/yii-filters-ratelimiter.html

Hello Artem,
It's true there are many ways to implement a rate limiter, and users may want to integrate their own or leverage an existing package.
But what about this idea: no matter what method of rate limiting the user choses, the ultimate goal will always be to avoid exceeding the limits set by Nexmo (e.g., 1/sec for US→US messages). Positing this, if a user has their own rate limit layer, then a rate limiter built into the nexmo-client would never trigger. Or if the user doesn't have their own rate limiter, then one build into the nexmo-client would help prevent their requests from failing. In the former case, it doesn't hurt if it exists, and in the latter, it is a helpful fallback in case the user doesn't want to construct their own. In any case, it could be enabled with a configuration flag.
If we follow this philosophy, then nexmo-client can satisfy both situations. =) What do you think?

I support you Quinn.
On Fri, Sep 11, 2015 at 7:34 AM Quinn Comendant<EMAIL_ADDRESS>wrote:

Hello Artem,
It's true there are many ways to implement a rate limiter, and users may
want to integrate their own or leverage an existing package.
But what about this idea: no matter what method of rate limiting the user
choses, the ultimate goal will always be to avoid exceeding the limits set
by Nexmo (e.g., 1/sec for US→US messages). Positing this, if a user has
their own rate limit layer, then a rate limiter built into the nexmo-client
would never trigger. Or if the user doesn't have their own rate limiter,
then one build into the nexmo-client would help prevent their requests from
failing. In the former case, it doesn't hurt if it exists, and in the
latter, it is a helpful fallback in case the user doesn't want to construct
their own. In any case, it could be enabled with a configuration flag.
If we follow this philosophy, then nexmo-client can satisfy both
situations. =) What do you think?
—
Reply to this email directly or view it on GitHub
https://github.com/ConnectCorp/nexmo-client/pull/12#issuecomment-139450382
.

@quinncomendant I see your point and do agree with it. However, I still think it should be a separate optional package. Two reasons for that:

It is a good practice to keep the project as simple as possible and make sure it does only one thing
Adding rate limiting feature breaks single responsibility principle
It reduces overall unit test code coverage (your code doesn't have tests at all)

So my suggestion: lest extract your solution into a separate nexmo-client-rate-limit package and add it as optional dependency to composer.json

@vood, I agree with your points. However, I can't think how it would be possible to include this as an external package that is executed during the Service->exec() method. That is the logical location to attach a Guzzle client emitter, and is a good location to access the $params['from'] value (to use as a timer key) and the Service->getRateLimit() method (which is a very close analog to the Service->getEndpoint() method: both retrieve a setting that is specific to the service endpoint being called).
Do you have an idea how best to tie-in an external package to the nexmo-client functionality without exposing a complex plugins architecture? I'm open to all suggestions you might have.
Also, FYI, the work I've done on this was for a client who's budget has been exhausted; further work I'll only be able to manage when I have free time. But I would like to help bring this feature to the nexmo-client if people feel it will be useful.

@quinncomendant oh, one more thing I've noticed after careful code review. Your implementation works only within a single process. It will not limit requests in the case when the same method is called twice within the rate limit timeframe but in separate processes. In order to implement this feature properly, you'll have to save the counter in some kind of shared key value store. Furhtermore, I'd recommend implementing at least four key value store backends: in memory (you already have it), APCu, Redis, Memcached.


Update datasets dependency to 2.14.2 version

Update datasets dependency to version 2.14.2, instead of 2.14.1 because there were issues. See:

https://github.com/huggingface/datasets/pull/6094
https://github.com/huggingface/datasets/pull/6095

Fix #1589.
Fix partially #1550.
Supersede and close #1577.

Codecov Report
Patch coverage has no change and project coverage change: +1.66% :tada:

Comparison is base (e792862) 91.15% compared to head (f92ea34) 92.81%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1588      +/-   ##
==========================================
+ Coverage   91.15%   92.81%   +1.66%
==========================================
  Files         141        7     -134
  Lines       10318      320    -9998
==========================================
- Hits         9405      297    -9108
+ Misses        913       23     -890

Flag
Coverage Δ

jobs_cache_maintenance
?

libs_libapi
92.81% <ø> (?)

libs_libcommon
?

services_admin
?

services_rows
?

services_worker
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 148 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks a lot, @AndreaFrancis for your insights! I had missed those specific errors.
I think more fixes are needed in the datasets library to address all these backward incompatibility issues. I am addressing them and will do a new patch release.

we can close this PR, right?

Superseded by:

#1614


Add casts in additional place to satisfy strict typing for complex case

Split off https://github.com/patrick-kidger/lineax/pull/64, see https://github.com/patrick-kidger/lineax/issues/57

Looks like that the failed test is just unlucky seed?

So I think it's probably best to avoid casting absolutely everything to the same dtype, as discussed over in #64.
Probably the simplest thing to do is just to locally allow dtype casting -- I do this in a few places where it's awkward not to:
with jax.numpy_dtype_promotion("standard"):
    ...

As for an unlucky seed -- yup, that seems plausible.  I'm not sure I have a nice way to guard against this error, so I'm happy to just ignore it.

So there are four cases where this PR introduces casts:

Finite difference in test helpers.
Scalar in DivLinearOperatoroperator
Scales in CG and friends
eps in GMRES normalization.

So I think for 2 and 4 it makes sense to cast since the value multiplies the input, and for 1 it doesn't really matter. No strong opinion about 3. What do you think?

I think I'd probably suggest using with jax.numpy_dtype_promotion("standard") for all of them, actually! For example on 2: note that right now, if you have a pytree of (f32, c64) then the scalar will get promoted to result_type = c64 and as such the entire output will be as well.

LGTM -- thank you as always! Where are we at now for complex support in Lineax?


Add smooth transitions to interactive ui elements

the changes are simple css transitions to make the transition between different element states smoother.
closes #203910

@hichemfantar please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree


Add GitHub action to build jars

Please also give the jar a reasonable name like wherobots-jdbc not just lib-0.1.0

@mpetazzoni The vast majority of the cloud hosting service including Databricks, AWS EMR, Microsoft Fabric are still stuck at Java 8 and some just migrated to Java 11.


Cleanups and docs after #135.

Crucially I bump the patchlevel version number.

Fix the typo in your next PR?


[Background Sounds] ... "Toggle Background Sounds" not working

Extension
https://www.raycast.com/SebDanielsson/background-sounds
Raycast Version
1.8.0
macOS Version
15.1 DB
Description
"Toggle background sounds" doesn't appear to be working any more, toggling off works, but toggling on doesn't work currently - I am on 15.1 beta which could be the cause.
 Toggle background sounds (to turn on)
2. Error
3. Go into System settings and toggle manually
4. Toggle background sounds (in Raycast)
5. Turns off
6. Toggle background sounds (to turn on)
7. Error

### Current Behaviour

_No response_

### Expected Behaviour

_No response_

This appears to now be fixed, I'm not too sure what the issue was.

I'm also experiencing this issue starting today, don't think it's isolated.
Error from Raycast 1.8.0 on macOS 14.6.1
Error: Command failed with exit code 1: osascript
Background sound is off
Background sounds turned on
757:788: execution error: No matching processes belonging to you were found (1)

Background sound is off
Background sounds turned on
O9:run-applescript.js:38:21

---
35:         timedOut,
36:         command: "osascript",
37:         options,
38:         parentError: new Error(),
39:     });
40: }
41: exports.runAppleScript = runAppleScript;
---

Tried it again today and like OP it randomly started working again. ¯\_(ツ)_/¯


Symlinking of emacs executable appears to be happening incorrectly

I've seen this in the wild (i.e. running setup.sh on someone else's computer), in which the symlinking of emacs and emacsw did not happen correctly—so that emacs would open in windowed mode but emacsw would open in terminal mode.
Needs a reproducible test case, obviously.

This has not been reproduced since.


Dependencies can only be accessed through their immediate interfaces

Take the following class hierarchy for example;
TomcatServer extends AbstractServer implements Server
Although TomcatServer indirectly implements Server through AbstractServer, attempting to retrieve it using the Server interface will cause a MissingDependency error, as the DependencySupplier only checks immediate interfaces.
A fix will be implemented to 'walk' through the superclass hierarchy and add interfaces implemented at each level.

Related: @Inject annotations in superclasses are not scanned on instantiation


Dead url links

There are bunch of dead links in the README.md file.
I have found these ones: "bulut, cyonix, havo, korrektor, korrektor rust lib, kusari, osmon, xinux"

Please, keep reporting further dead links and I'll fix it on the fly. Thanks for your contribution!

fixed: https://github.com/floss-uz/awesome/commit/883d5e27239f7b4f772ffef149e40a1ef3ebb240

Thanks for doing so much for your country. I appreciate it.
On Mon, Apr 22, 2024, 3:23 PM Sokhibjon Orzikulov @.***>
wrote:

Please, keep reporting further dead links and I'll fix it on the fly.
Thanks for your contribution!
—
Reply to this email directly, view it on GitHub
https://github.com/floss-uz/awesome/issues/5#issuecomment-2069030566,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBL4HFIUY5Y2LLPKWYFTMWDY6TQJXAVCNFSM6AAAAABGSHFTEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGAZTANJWGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Whitelist regex doesn't match crushinator

It looks like crushinator can crush any ted.com domain (https://github.com/tedconf/crushinator/blob/master/config.json#L7), but the helper has a stricter whitelist. Can we make the helper's whitelist allow *.ted.com? This will help us on the conference team because we're constantly launching new websites/subdomains for each event we put on.
https://github.com/tedconf/crushinator_helpers/blob/master/app/helpers/crushinator_helpers/view_helpers.rb#L36
@celly @DanielRussell @CpuID

Looks like https://github.com/tedconf/crushinator_helpers/pull/11 can fix the issue


Deleting volunteer

Steps
Creating the volunteer deleting option

[ ] Create GUI view with selection
[ ] Functionality - connect to the DB

Implemented delete volunteer via Admin's dashboard


error "Unhandled incoming RPC 1XX" upon login on Windows client

Upon login attempt (and only successful ones, failed ones return 'invalid login' as expected) I receive the following error, and am not logged in:
Unhandled incoming RPC 1XX
keybase.1.provisionUi.PromptNewDeviceName

appears in red text below the passphrase entry.  (1XX being a redacted decimal number, not literal '1XX'.)
Additionally, due to the line break, some of the text overflows to another line beneath the "Log In" button.  Thankfully, the button turns semitransparent when clicked, so I was able to read it by repeatedly attempting login.
Keybase GUI Version: 1.0.17-20160822153555+692af12

Interesting, sorry about this! Please can you run keybase log send and tell us the ID?
CC @marcopolo @chromakode

Okay, done, but I got a warning saying it wasn't able to find a local log file.  If it didn't send anything useful, I can try to reproduce again.
b54f 0932 dc97 4ebe 9e72 da1c


Using mbedTLS to sign a certificate given the CA and CSR on an embedded device during provisioning.

Hello,
I am working on a project that uses a hardware secure element. This is an embedded bare metal project running on a ARM.
During our provisioning process we need to generate device certificate but these certificate cannot be generated before hand because the hardware secure element generate a public/private key pair.
What I can do is generate the CSR for the device certificate I want and I have a CA.
So I am looking for a method where I can feed in

The device CSR
The CA key pair
The CA certificate

Then the output will be the device certificate, which I will then use to provision my hardware secure element.
How can I do this with the mbedTLS stack?

Hi @umanayana
I apologize for delay
we have an example that writes a certificate given  the CA key ( issuer key ), and an optional CSR.
Note this example doesn't take the V3 extensions from the CSR, though, I'm afraid.
You will need to set the extensions manually, using the mbedtls_x509write_crt_set_extension() or the specific extension setting function.

We believe this issue has been addressed and answered, therefore closing.
If you believe it needs further action, please reopen with additional questions.
Thanks!

I have manage to get this working but the certificate has additional data which can't be there. It can't be there because we store parts of the certificate in a hardware secure elements and then rebuild the certificate when it's needed. These additional data elements is causing issue with our rebuilding algorytm.
The certificate that generated is correct and was verified against the ca_chain, but the additional data has to go. We normally generate the certificate using python with the CSR obtained from the hardware secure element at production time, then transfer it back to the device to be stored securely.
In the picture below the signature field on the right has the parameter 0x05 0x00. But it shouldn't as the python generated certificate don't have this and out rebuild algorithm is based on that.
How could I remove this or not have it generated at all.

Resolved, by removing NULL asn1 encoding from the certificate. Certificate validate correctly still.
int mbedtls_asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start,
                                     const char *oid, size_t oid_len,
                                     size_t par_len )
{
    int ret;
    size_t len = 0;
#ifndef CUSTOM_MBEDTLS_NO_NULL_TLV_IN_X509_GENERATION
    if( par_len == 0 )
        MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_null( p, start ) );
    else
        len += par_len;
#else
    len += par_len;
#endif

    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) );

    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) );
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start,
                                       MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE ) );

    return( (int) len );
}```


Little fix to spanish content

Pull Request
Description:
Add some little fixes to the spanish traslation of the site

@all-contributors add @cristianbgp for translations


Broken external links in the "Mechanism of Action" column in evidence page drugs tables

@andrewhercules commented on Wed Jun 20 2018
@andrewhercules commented on Mon Jun 04 2018
Observed behaviour
In the Mechanism of Action column in the known drugs table, the external links do not work if there are both publications and non-publications links.
For example, on the CACNA1B in asthma evidence page, the ISBN link is http://europepmc.org/abstract/MED/18299583,http://www.accessdata.fda.gov/drugsatfda_docs/label/2012/022544s008lbl.pdf,http://www.isbnsearch.org/isbn/0121844536,http://en.wikipedia.org/wiki/Gabapentin, a comma-separated list of all the external links that the API returns. Instead, it should just be http://www.isbnsearch.org/isbn/0121844536. See below for a screenshot of the issue.

The same issue can be found on other evidence pages including BRAF and lung carcinoma and KDR and liver disease. The issue can also be found on target profile pages (e.g. KCNQ3) and disease profile pages (e.g. liver disease).
Expected behaviour
The links should be properly formatted so that only one link appears per external link reference. So taking the above example of CACNA1B in asthma evidence page, in the Mechanism of Action column, there should be the following links:
1 publication
FDA
ISBN
Wikipedia
Environment

Version: 3.6.11
Browser: Chrome, Firefox

@LucaFumis commented on Mon Jun 04 2018
This needs to be fixed at data level / API first. Splitting the string on commas is not a big problem but must have corresponding nice_names.
Ideally we have one link only per url array item.

@andrewhercules commented on Wed Jun 20 2018
Thanks @LucaFumis. I'll close the issue here and copy it to the data_pipeline repo.

@MichaelaEBI commented on Mon Jul 16 2018
I looked into this and it looks like the data is not separated properly in the CHEMBL evidence file. In 'evidence' - 'target2drug' - 'urls' there are usually three types of links:
  "evidence": {
    "target2drug": {
      "urls": [
        {
          "nice_name": "ChEMBL molecule information",
          "url": "https:\/\/www.ebi.ac.uk\/chembl\/compound\/inspect\/CHEMBL98"
        },
        {
          "nice_name": "ChEMBL target information",
          "url": "https:\/\/www.ebi.ac.uk\/chembl\/target\/inspect\/CHEMBL325"
        },
        {
          "nice_name": "DailyMed",
          "url": "http:\/\/dailymed.nlm.nih.gov\/dailymed\/lookup.cfm?setid=cd86ee78-2781-468b-930c-3c4677bcc092#section-13"
        }
      ],

Looking at the data, it seems that whenever there is more than one link for the third category (i.e., not ChEMBL target or molecule information), then they have a random nice_name and all links are concatenated:
  "evidence": {
    "target2drug": {
      "urls": [
        {
          "nice_name": "ChEMBL molecule information",
          "url": "https:\/\/www.ebi.ac.uk\/chembl\/compound\/inspect\/CHEMBL940"
        },
        {
          "url": "https:\/\/www.ebi.ac.uk\/chembl\/target\/inspect\/CHEMBL2363032",
          "nice_name": "ChEMBL target information"
        },
        {
          "nice_name": "ISBN",
          "url": "http:\/\/europepmc.org\/abstract\/MED\/18299583,http:\/\/www.accessdata.fda.gov\/drugsatfda_docs\/label\/2012\/022544s008lbl.pdf,http:\/\/www.isbnsearch.org\/isbn\/0121844536,http:\/\/en.wikipedia.org\/wiki\/Gabapentin"
        }
      ],

I will check with Paula from ChEMBL to see whether they can fix this for 18.08. @ckongEbi and myself will follow up on this.

@MichaelaEBI commented on Tue Jul 17 2018
Paula is looking into it and will change it so that we get nice_name - URL pairs for external links.

@afaulconbridge commented on Thu Sep 20 2018
If this is "fixed" can it be closed @MichaelaEBI ?

Yes, as far as I can see it has been fixed since 18.08.


[5.7] [stdlib] Implement String.WordView

This is a cherry pick of https://github.com/apple/swift/pull/42414
Resolves: rdar://96164181

@swift-ci please test


Disable schedule webjob when it is Basic site

when site is basic, upload a trigger job with scheduled setting will see below log:
[07/02/2015 23:12:42 > 0f3ee9: SYS INFO] 'Basic' tier website doesn`t support scheduled WebJob.

when site was other SKU but not Basic, and later change to Basic, will see below log:
[07/02/2015 23:00:42 > 0f31d2: SYS INFO] Scheduling WebJob with 0,10,20,30,40,50 * * * * * next schedule expected in 00:00:00
[07/02/2015 23:00:42 > 0f31d2: SYS INFO] WebJob invoked
[07/02/2015 23:00:42 > 0f31d2: SYS INFO] Next schedule expected in 00:00:07.2740780
[07/02/2015 23:00:50 > 0f31d2: SYS INFO] WebJob invoked
[07/02/2015 23:00:50 > 0f31d2: SYS INFO] Next schedule expected in 00:00:09.9296460
[07/02/2015 23:01:00 > 0f31d2: SYS INFO] WebJob invoked
[07/02/2015 23:01:00 > 0f31d2: SYS INFO] Next schedule expected in 00:00:09.8526465
[07/02/2015 23:01:10 > 0f31d2: SYS INFO] WebJob invoked
[07/02/2015 23:01:10 > 0f31d2: SYS INFO] Next schedule expected in 00:00:09.9154028
[07/02/2015 23:01:21 > 0f31d2: SYS INFO] WebJob invoked
[07/02/2015 23:01:21 > 0f31d2: SYS INFO] Next schedule expected in 00:00:08.7271807
[07/02/2015 23:01:59 > 0f3ee9: SYS INFO] 'Basic' tier website doesn`t support scheduled WebJob.

:shipit:

Merged in https://github.com/projectkudu/kudu/commit/012114c74bc310d9daa36a2c2d6240c3e30b482e


TypeError when using Cython

Hi , i am using Cython to write my bottle based application .
inside my application i serve static files like this :
@controller.route('/Apps/filepath:path')
def server_static(filepath):
return static_file(filepath,root='%s/Apps' %myPath)
When i run this code as Python code , static files being served as intended ,
but when i compile my project to Cython code , and try to access a static file
i get following error :
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 763, in _handle
return route.call(*_args)
File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1572, in wrapper
rv = callback(_a, **ka)
TypeError: server_static() takes no keyword arguments
Note : i am compiling only my modules to Cython , Bottle module is not touched .
Also everything else works as it should .. only accessing static files rises the exception.
Python 2.7 Linux , Bottle 11.4 , Cython 0.16

This is actually an incorrect assertion, and there is quite a simply fix.
By default, Cython compiles functions with 0 or 1 arguments, as special PyCFunction METH_O or METH_NOARGS. This functions do not accept in keyword arguments.
You can tell Cython to disable this optimization by changing the always_allow_keywords compiler directive to True (you can do it per function, per file or globally, check cython's documentation on how to do it).
This issue happens actually in all web frameworks who use tricks like this.

This issue happens actually in all web frameworks who use tricks like this.

It's not a trick, its how Python is supposed to work.
>>> def test(x):
...     print(x)
>>> test(5)
5
>>> test(x=5)
5
>>> test(**{'x':5})
5

See https://docs.python.org/2/reference/expressions.html#calls
"If keyword arguments are present, they are first converted to positional arguments, as follows. [...] Next, for each keyword argument, the identifier is used to determine the corresponding slot (if the identifier is the same as the first formal parameter name, the first slot is used, and so on). [...] When all arguments have been processed, the slots that are still unfilled are filled with the corresponding default value from the function definition. [...]"
If Cython optimizes some functions in a way that they no longer accept keyword arguments, then it behaves differently than CPython or the official Python documentation and therefor is in fact incompatible to standard Python. Thats not surprising. Cython does not claim to be a full Python implementation.

First, let me say that the reason I've commented here, is when I googled this issue (happened to me with another web framework) , this was the first hit.
Second, CPython itself does this trick a lot in the name of optimization as well (which is why Cython allows itself to do it as well).
Your statement is wrong, your are quoting the Python Language Reference, but CPython has another side to it, the Python C API Reference which allows you to do wonderful and weird things in the name of speed and C interoperability. You can read about METH_O and PyCFunction there:
https://docs.python.org/2/c-api/structures.html
>>> sum([1,2])
3
>>> sum(**{'x': [1, 2]})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sum() takes no keyword arguments

Why is this ? Because lots of builtin functions are defined as METH_O PyCFunction:
https://github.com/python/cpython/blob/2.7/Python/bltinmodule.c#L2614
in 2.7, METH_O functions cannot be passed keyword arguments by the CPython interpreter itself:
https://github.com/python/cpython/blob/2.7/Objects/methodobject.c#L123
Cython is all about compiling code to Python C API, and by default gives you the METH_O optimization. As I've written before, it also allows you (by a flag) to easily disable that optimization.
You would be hard pressed (asides from compiler bugs) to find python code which does not compile under Cython:
https://github.com/cython/cython/wiki/FAQ#is-cython-a-python-implementation

We are going off-topic now, but the original issue is resolved and closed, so why not.
https://docs.python.org/2/reference/expressions.html#calls
"CPython implementation detail: An implementation may provide built-in functions whose positional parameters do not have names, even if they are ‘named’ for the purpose of documentation, and which therefore cannot be supplied by keyword."
As you can see, the METH_O optimization is only allowed for built-ins, not for user-defined functions.
Some third party CPython modules may also violate this rule, because the C-API does not prevent it. But only because you can do something with an implementation dependent C-API, it is not automatically part of the language specification. The Python language is defined by the language reference, not by the capabilities of the CPython C-API.
My statements are: 1) Cython in its default configuration violates this specific part of the Python language specification. 2) Bottle is not relying on undefined behavior or implementation details, and is fully compatible with conforming implementations of the python language. This issue is not a bug in Bottle.
I'll say it again: This is totally fine. Cython does not claim to be 100% compatible (yet). It's a behavior-changing optimization that can be disabled. Nothing wrong with that. I just find it inappropriate to blame library authors for using well documented language features, just because Cython stumbles over them. This discussion should happen in a Cython mailing-list or issue thread, not here.


Change in UI behavior after running nuitka on PyQt (5.11.1) application

Search did not find any existing issues related to PyQt or PyQt 5.11.1

Please check out if the develop version of Nuitka works better for you.
We are currently using Anaconda, what is the procedure for installing the development version of nuitka?

Nuitka version, full Python version and Platform (Windows, OSX, Linux ...)
Nuitka - 0.5.30
Python - 2.7.13
Windows 10

How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source,
what is a virtualenv ...), this is very important usually.
Anaconda

If possible please supply a Short, Self Contained, Correct, Example
that demonstrates the issue i.e a small piece of code which reproduces
the issue and can be run with out any other (or as few as possible)
external dependencies.
Sorry, not possible

If this is a regression (used to work in an earlier version of Nuitka),
please note what you know about that.
It is regression in that previous versions of the application worked with nuitka but as of about 6 weeks ago, we discovered this issue.

@tslator Hello, at first I had "downvoted" your issue as I thought you were asking something code related and posting the mcve but then I've realized you were actually just asking something more general ;). Next time if it's just a simple question where we won't need any of the template details so the question becomes more clear by doing so just skip it. Anyway, your question being:

We are currently using Anaconda, what is the procedure for installing the development version of nuitka?

You can refer to the official download docs:
pip install -U 'http://nuitka.net/gitweb/?p=Nuitka.git;a=snapshot;h=refs/heads/develop;sf=tgz'

that should do, if that doesn't work with you, just:
- `git clone https://github.com/kayhayen/Nuitka && cd Nuitka`
- pip install -e .
- `git checkout <the-branch-you-want-to-use>`

But if you just want to use nuitka casually, I'd strongly recommend you to follow the official download docs as those ones are already providing nicely some packages ready to be consumed by users. That will make easier bug reporting, helping and so on... ;)

@brupelo Please never downvote anything, I do not welcome that, even if it were appropriate, which it is not. I do not want this to be an unwelcoming place. And do not discourage from filling out the issue template, the reporters can and do never know, and often it helps me.
@tslator Although develop version will be substantially different from stable, there is no need to try it out though. In this instance, you reported using an older version. Did you try the latest stable version, updating via conda there? It is relatively old. Or did you mean to say that was the version still working, and the recent one is not?
Would it be possible for you to "git bisect", or is that going to be too difficult for you? In that you would checkout a good state of Nuitka from git, the version that works, tag it as good, then the recent version, try it and tag it as bad, then git picks version between, you test.
Depending on the range, it takes a few tries, but not a lot, typically just a couple. If you cannot give us a minimal reproducer, fine if you do the git bisect. Otherwise there is no way forward @tslator as how will I know anything? Given the commit that changed it for you, I can at least critically examine how it would cause something and provide you with instructions to see the delta effect in generated code.
@brupelo I wonder where to put debugging techniques for users to use. I suppose User Manual should be a good place for that. So instead of giving instructions, I want to have pre-canned text there, and point to it, with links. Debugging standalone ImportError also has that. Of course only stuff, users can actually do.

@brupelo Please never downvote anything, I do not welcome that, even if it were appropriate, which it is not. I do not want this to be an unwelcoming place. And do not discourage from filling out the issue template, the reporters can and do never know, and often it helps me.
Makes total sense, my bad. Thanks to clarify! ;)
@brupelo I wonder where to put debugging techniques for users to use. I suppose User Manual should be a good place for that. So instead of giving instructions, I want to have pre-canned text there, and point to it, with links. Debugging standalone ImportError also has that. Of course only stuff, users can actually do.
Your call, few remarks here, as I told in other threads, at the end of the day, try to be very simplistic when it comes to provide casual-user docs, period:

Make the docs as simple as possible and try get rid of irrelevant details. Give them little text for to read (I usually favour cheatsheets when it comes to pypi packages usage)
Put more effort writing about specific casual user use-cases, that's what they're interested about (cool examples so you'll attract their attention), agressive marketing claims about those use-cases are not a bad thing either, at least at the beginning when we want to get traction with the project ;)
Summing up: Simplify their lives and try to engage them ;)

Plus, chances casual users will become dev-contributors is usually very low (maybe i'm wrong about this one)... but if they get interested they will definitely help us by providing more bug reports.
Of course, what's exposed above doesn't apply to developers, in that case I guess proper documentation is very relevant (I like the one who's living in the official site)... and don't get me wrong, when I say proper documentation I don't mean breaking the DRY principle, to see what i mean, here

@tslator Any news on this?

Hi @kayhayen
Sorry for the late response.  To clarify, we have been using the same nuitka version.  What we recently observed was a change in our application behavior.  Admittedly, it is possible this behavior has always been there but wasn't detected or that recent application changes are contributing to the issue.  We know that this behavior does not occur when running from source and only occurs in the nuitka output.  I think the best course of action is to test with the latest stable release of nuitka.

That latest release in CondaForge for win64 is 0.5.30 which is what we are using.  The latest noarch release is 0.5.33.  Can I use the noarch release on windows?

Yes you can, Tim, in fact Nuitka was always "noarch" and they were packaging it wrongly. Definitely should use that release, there have been many fixes. I also think for the PyQt plugins.
Let me know if the your issue persists be re-opening this. However, without a reproducer, there is only so much that can be done.


fix: stale selected item reference in NE details panel

TL;DR
Fixes an issue where status of a NodeExecution doesn't update in the DetailsPanel if you have the panel open when the status changes.
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[x] Code completed
[ ] Smoke tested
[x] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
We were assigning the selected item for the Details Panel using an object reference, instead of an id reference. When the node executions update, new copies of the items are returned. But the DetailsPanel was still rendering the previously referenced object. To fix it, I updated the state tracking the selected item to be by id / cache key and am now computing the object to return using a memoized find call on the array of executions whenever the array or the selected id change.
Also added a test to cover the regression.
Tracking Issue
https://github.com/lyft/flyte/issues/505
Follow-up issue
NA

Codecov Report

Merging #115 into master will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   70.59%   70.68%   +0.08%
==========================================
  Files         387      387
  Lines        6516     6525       +9
  Branches     1044     1047       +3
==========================================
+ Hits         4600     4612      +12
+ Misses       1916     1913       -3

Impacted Files
Coverage Δ

src/components/common/DetailsPanel.tsx
92.30% <ø> (ø)

...s/Executions/Tables/useNodeExecutionsTableState.ts
100.00% <100.00%> (ø)

...ponents/Executions/Tables/nodeExecutionColumns.tsx
93.61% <0.00%> (+2.12%)
:arrow_up:

.../components/Executions/Tables/NodeExecutionRow.tsx
100.00% <0.00%> (+2.22%)
:arrow_up:

...mponents/Executions/Tables/NodeExecutionsTable.tsx
96.55% <0.00%> (+3.44%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6685288...d22a70a. Read the comment docs.

:tada: This PR is included in version 0.17.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Key attributes = "rsa0 rsa0 rsa0" when using ECC

Hallo,
I'm having a problem with key generation, gpg reportes key attr rsa0 rsa0 rsa0, but my settings for the key templates are brainpool-p256
~$ gpg --version
gpg (GnuPG) 2.2.4
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/XXXXXXXX/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

~$ gpg --card-status                                                                                [125/126]
Reader ...........: Ledger Token [Nano S] (0001) 00 00
Application ID ...: D2760001240103032C97XXXXXXXX0000
Version ..........: 3.3
Manufacturer .....: unknown
Serial number ....: XXXXXXXX
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa0 rsa0 rsa0
Max. PIN lengths .: 12 12 12
PIN retry counter : 3 0 3
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]

I have no clue on this, any help is appreciated.
Regards,
Luginbash

Strange, I tried to figure out what happened by installing the SDK and compile it for myself. The problem disappeared:
(ledger) zhouquan@greenriver:~/src/ledger-app-openpgp-card$ gpg --card-status
Reader ...........: Ledger Token [Nano S] (0001) 00 00
Application ID ...: D2760001240103032C97XXXXXXXX0000
Version ..........: 3.3
Manufacturer .....: unknown
Serial number ....: EE933591
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: ed25519 cv25519 ed25519
Max. PIN lengths .: 12 12 12
PIN retry counter : 3 0 3
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]


Expand RetryScheduler to support more granular decision when to retry

Enhancement Description
The user of a Command gateway should be able to choose if a command that failed should be retried or not, regardless of the exception hierarchy on the handling side. In some cases, commands A and C should be retried, but B should not, regardless of the handler throwing an AxonNonTransientException or not.
Current Behaviour
The current implementation of RetryScheduler will either retry a command or not, based on command handling's side exception hierarchy to decide if a given command should be retried or not. If the handler threw an exception that does not extend the AxonNonTransientException, the command will be retried.
Wanted Behaviour
Allow for a programmable way to configure the RetryScheduler to either retry the command or not, based on the resulting Exception or Error. One possible way to achieve this is to make a decision based on the details object on the CommandExecutionException that will be inspected by a collection of predicates.

Closing this issue because #1910 resolved it.


Database error when logging in

After a successful install I was logged in by default. I logged out. After trying to login again, I get the attached screen shot of a database error. I'm still logged in if I navigate manually to the homepage. This happens on ALL login attempts.

check this #6198


feat: add support for indeterminate state to FluentCheckbox

🙋 Feature Request
Checkboxes support an indeterminate state. Fluent UI should support using it easily.
🤔 Expected Behavior
There is an easy-to-use API for working with the indeterminate state on FluentCheckbox.
😯 Current Behavior
JavaScript interop is required.
💁 Possible Solution
Add a .NET API to FluentCheckbox.
🔦 Context
We want to use a checkbox with this state in Aspire dashboard. We could put a checkbox in this state but it required JavaScript interop that isn't ideal. See:

https://github.com/dotnet/aspire/blob/60bd2b0b5c29ea02507265199070d4dac1fad712/src/Aspire.Dashboard/Components/Pages/Resources.razor.cs#L58-L83
https://github.com/dotnet/aspire/blob/60bd2b0b5c29ea02507265199070d4dac1fad712/src/Aspire.Dashboard/wwwroot/js/app.js#L196-L200

💻 Examples
https://css-tricks.com/indeterminate-checkboxes/

Hi James,
I can work on this quickly.
I suggest imitating WinForms, by adding a ThreeState (bool) property 😁

The Value property will be nullable bool?.
A new ThreeState property could define whether the user can switch from one state to another.

In the meantime, you don't necessarily have to use JavaScript code, you can simply add an indeterminate class to the FluentCheckbox to have this "indeterminate" state.

I am just wondering how it could work with databinding. I mean if it wouldn't follow strictly the HTML way but rather would take a nullable bool as a value and null would mean indeterminate then it would be easy to bind to data.
Yes i understand it is not the same because having two different states allows you to be checked or unchecked meanwhile indeterminate, but in datawise indeterminate is just null, isn't it?

My first idea was to change the Value property to a nullable Boolean. But this introduces a breaking change: all current FluentCheckboxes have to be modified, and I don't think that's a good thing (maybe in v5?).
One solution is therefore, as WinForms does, to add a CheckState property with three states. Indeed, it could be a Nullable boolean in this case. It's probably better for this property.

Ok, it also works. So I just have to bind to the CheckState and that drags the Value with it in case it is not null.
Thanks.

Pushed this PR #1022

All merged, will be in next release


About DEC64

http://dec64.com/
https://github.com/douglascrockford/DEC64

Yes, I have visited those links before - they're great.
But what exactly is the issue here?

By curiosity, can you explain me, if we have the same range of values capabilities with BigNumber, and if we can gain performances by wrapping an ASM.js impl. behind the scene.
No doubt, that bignumber is suitable and already performant for all case of computing.
You can close this "curio'issue" ;)

Your question is not clear to me, but DEC64 seems to be limited to 17 significant digits and exponents in the range -127 to 127, so it does not have the same capabilities as this library. I am sure that using asm.js could result in performance gains, yes.


Photos for "Overview" of starting a franchise

Purpose:
The purpose of this issue is to enhance the visual representation of the "Starting a Franchise" overview by updating images in three key areas: Entrepreneurship, Community, and Build Network. These images are crucial in conveying the essence of franchising with SILK Corp, showcasing the spirit of entrepreneurship, the sense of community, and the value of building a strong network.
Importance:
Images play a vital role in creating a lasting impression and conveying complex ideas succinctly. In the context of starting a franchise, these images are significant because they visually communicate the core values and benefits of joining the SILK franchise. Entrepreneurship represents the opportunity for growth and independence. Community signifies support and belonging, and Building a Network exemplifies collaboration and expansion. Updating these images ensures alignment with SILK's evolving franchise culture.
Outcome:
Changing the images in the "Starting a Franchise" overview will result in a more engaging and relatable portrayal of the franchise experience. Prospective franchisees will gain a clearer understanding of the entrepreneurship journey, the sense of belonging to a supportive community, and the advantages of a robust professional network. This visual enhancement will help individuals envision their role within the SILK franchise, making the decision to join a more informed and inspired one.

You can use Envato Elements or Flickr to find high-quality photos.
You can use Pixlr to resize the image.

Note:

All images should be saved inside this folder: SILK Images
Be organized on how you're naming your images.

I'm going to work on this issue. I'll find good and representative images for these three parts from Envato Elements. I'll resize the images to the size needed. I will create a pull request on it within in an hour.


Compiler API compiles arrow functions without curly brackets

Hi,
I use typescript compiler API for compiling files from this article. But instead of setting target in compile options like ts.ScriptTarget.ES5, I read from file system a tsconfig.json file and pass "compilerOptions" from it to the ts.createProgram as a second parameter. I ran into some problem with compiling. If I pass to the ts.createProgram options with invalid target value, it will compile arrow functions without curly brackets.
TypeScript Version:
1.8.10
Code
var ts = require("./tsCompiler/typescript"),
      program = ts.createProgram(["./program.ts"], { target: "ES5", module: "CommonJS"}),
      emitResult = program.emit();

program.ts looks like:
var b = [1,2,3].filter(a => a < 2);

Expected behavior:
I expected two possible results:

It should throw an error because of invalid target value in compiler options.
Instead of invalid compile options it will use a default "ES3" target and compile the code of program.ts to:

var b = [1,2,3].filter(function(a) { return a < 2; });

Actual behavior:
It compiles without errors and generate invalid javascript code without curly brackets like:
var b = [1, 2, 3].filter(function (a) a < 2);

Thanks in advance.

looks like a dupe of https://github.com/Microsoft/TypeScript/issues/7980 that should be fixed in master. Can you give a try to typescript@next on npm to see if you still see this issue?

Yes, it still exists. I use "ES5" and "es5" string intead of ts.ScriptTarget.ES5.

The createProgram API does not accept strings.  please see the declaration in https://github.com/Microsoft/TypeScript/blob/c98166ccc7b92e41d09e640fb4f06ac35385d49d/lib/typescriptServices.d.ts#L1852. you need to pass it a valid CompilerOptions, and that expects a numeric value that is part of the ScriptTarget enum and not a string.
Also it is worth noting if you were to compile this code with the TS compiler, you woudl get:
error TS2345: Argument of type '{ target: string; module: string; }' is not assignable to parameter of type 'CompilerOptions'.
  Types of property 'module' are incompatible.
    Type 'string' is not assignable to type 'ModuleKind'.


Add waffle 4 support for @nomiclabs/hardhat-waffle

Waffle upgraded to version 4, trying to use it with hardhat-waffle leads to dependency issues with npm
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving:
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/ethereum-waffle
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Did this ever actually get worked on? I see version 4 in this repos package.json but latest version on n still requires 3.2.0? @feuGeneA

I needed waffle 4 support to test for custom errors, I ended up migrating to @nomicfoundation/hardhat-toolbox, if you have the same problem

Thank you!


Fix OpenBSD include order to correct unknown type errors and broken compilation

After 4.0.5, the proc/openbsd.c has had the list of includes sorted in alphabetical order, which breaks compilation with numerous unknown type name errors. This fix reverts back the ordering and allows compilation to complete successfully. Tested OK on OpenBSD 6.9.

Having looked at the fuzzer output, it appears that the fuzzer crashed owing to a missing file rather than as a result of my proposed change. Any way to force the fuzzer to retry the job?


get_default_options() is now common way to add new default options

Coverage remained the same at 95.886% when pulling df7b551e092a0de6d77225bc8c3367af3ac3cd74 on options_rework into 699c233086e4146b842d03b05fc600096f0368b0 on master.

Coverage increased (+0.06%) to 95.95% when pulling ab7d7360177f3a2b9e33bc2b5bdd6d551bafe9d6 on options_rework into b4c1a1d6ceefd09e05bd0694b3ca22e79f44b84b on master.

Coverage increased (+0.06%) to 95.95% when pulling a71ccf64629b58a5b36c3e5483a59260e508f179 on options_rework into b4c1a1d6ceefd09e05bd0694b3ca22e79f44b84b on master.

Coverage increased (+0.06%) to 95.95% when pulling 68c72a70fdfa76d3d5cd3db1528b2eb2eb2b7738 on options_rework into b4c1a1d6ceefd09e05bd0694b3ca22e79f44b84b on master.

Coverage increased (+0.03%) to 95.918% when pulling 739a0a5426d2ea3c0f704cdac5905fe8abffa778 on options_rework into b4c1a1d6ceefd09e05bd0694b3ca22e79f44b84b on master.


Feature request: Filter audience (or other post properties)

I have posts that are not shown on my home or archive pages. They show in feeds, but they're not followers-only, because anyone with the URL can access them. I call them "unlisted." (Some would call them "RSS Cl...") :-D
Either way, it would be cool if I could also filter the to and cc properties of posts.
Might be as simple as adding a filter to https://github.com/Automattic/wordpress-activitypub/blob/ba7f57d6ff346eddba2c3f861c969542227b5fff/includes/model/class-post.php#L169 (although I'm not entirely sure which properties could then be filtered and which could not).

I just noticed apply_filters( 'activitypub_post', $array, $this->post ), my bad!

For anyone interested:
add_filter( 'activitypub_post', function( $array, $post ) {
	if ( has_category( 'rss-only', $post ) ) { // Just an example.
		// Make this post "unlisted."
		$array['to'] = array( rest_url( "activitypub/1.0/users/{$post->post_author}/followers" ) );
		$array['cc'] = array( 'https://www.w3.org/ns/activitystreams#Public' );
	}

	return $array;
}, 99, 2 );


datasets not available

I think the datasets are not available due to issues with git lfs. Can you please provide a way to download them?(google drive maybe)

Hey, the issue should be resolved now. You should be able to clone/download the repository.


Consider utility functions that require type arguments

https://downloads.haskell.org/ghc/9.10.1/docs/users_guide/exts/required_type_arguments.html
from Int 1
into Text "x"

Since this would require either conditional compilation or CPP, I'm going to avoid providing this until required type arguments are supported by the three latest versions of GHC. Perhaps someone could implement this as a companion library if they're interested.


avalanchego: 1.10.8 -> 1.10.9

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/ava-labs/avalanchego/releases.
meta.description for avalanchego is: Go implementation of an Avalanche node
meta.homepage for avalanchego is: https://github.com/ava-labs/avalanchego
meta.changelog for avalanchego is: https://github.com/ava-labs/avalanchego/releases/tag/v1.10.9
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.10.9 with grep in /nix/store/i5cj0jf7wy1r25xx9c6lmns0xjqgx6yz-avalanchego-1.10.9
found 1.10.9 in filename of file in /nix/store/i5cj0jf7wy1r25xx9c6lmns0xjqgx6yz-avalanchego-1.10.9

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
avalanchego

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/i5cj0jf7wy1r25xx9c6lmns0xjqgx6yz-avalanchego-1.10.9 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A avalanchego https://github.com/r-ryantm/nixpkgs/archive/e39acdddb0a82e4c0e2472f3b51d2f9be14613d3.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/i5cj0jf7wy1r25xx9c6lmns0xjqgx6yz-avalanchego-1.10.9
ls -la /nix/store/i5cj0jf7wy1r25xx9c6lmns0xjqgx6yz-avalanchego-1.10.9/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

avalanchego

Maintainer pings
cc @urandom2 @qjoly for testing.

Result of nixpkgs-review pr 252231 run on aarch64-darwin 1

1 package built:

avalanchego


Compact dependency graph

Not ready to merge! But I think we can use this for discussion .
What this pull request is about:
When generating a dependency graph of a large project with many external libraries, there are so many external libs that one doesn't see the important dependencies any more.
So with this patch, I can define regex replace rules to group the external libraries together. The replace rule I mentioned in the documentation gives me only one graph node for all boost libraries, only one graph node for the visualization library, and only one node for the numerics library.
My first implementation was using std::regex, but since cmake has to compile with older compilers, I extracted the RegexReplace functionality from the string processor, and put it in a new file. For the moment I commented out the error reporting. I'm not sure how that would be handled best. That's where I could use some input.

Thanks for working on this.  The developer's mailing list referenced in CONTRIBUTING.rst may be a better place to post this work and ask for feedback.  It is a better place for design discussion with a broader audience.


Yatin: Watch benefitsoflifechanges.blogspot.com

Yatin requests the watch of the watch_keyword benefitsoflifechanges\.blogspot\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

benefitsoflifechanges\.blogspot\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Coinomi

Expected Behavior
Link to the documentation or explain the expected outcome of following the documentation.
Actual Behavior
Explain what actually happens when you follow the documentation.
Section that requires update
Provide a link to the page that needs an update and be specific about which section requires the update.
Additional information
Any other details or screenshots you think are relevant.

Hello my name is warith akbar my name  warith akbar . I'm the owner of fact
News Network and owner of S&P 500 future.   I need a tec to my headquarters
asap to help secure my company.
On Fri, Dec 3, 2021, 3:39 AM Mtan6666666 @.***> wrote:

Expected Behavior
Link to the documentation or explain the expected outcome of following the
documentation.
Actual Behavior
Explain what actually happens when you follow the documentation.
Section that requires update
Provide a link to the page that needs an update and be specific about
which section requires the update.
Additional information
Any other details or screenshots you think are relevant.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare/cloudflare-docs/issues/2840, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWS2SNLRXAFRCM7QZ6CYVZTUPCT5JANCNFSM5JJPQWDA
.

I've tried all that. . Learning curve. Would take me a year to get up to
speed.  If you don't do more to help and I'm asking for your help send
someone to my headquarters asap so I don't have to out search the work. It
would be a good idea to do all you can. And get on the phone and make some
phone calls.  I got some passed of GOP trying to shut me down.
Check my LinkedIn post . A call of action is in it.  Please read.  This is
the time in your life to act
On Fri, Dec 3, 2021, 3:39 AM Mtan6666666 @.***> wrote:

Expected Behavior
Link to the documentation or explain the expected outcome of following the
documentation.
Actual Behavior
Explain what actually happens when you follow the documentation.
Section that requires update
Provide a link to the page that needs an update and be specific about
which section requires the update.
Additional information
Any other details or screenshots you think are relevant.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare/cloudflare-docs/issues/2840, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWS2SNLRXAFRCM7QZ6CYVZTUPCT5JANCNFSM5JJPQWDA
.

Howdy @Mtan6666666, closing since there isn't enough info to take action on this ticket.


Brige: Incorrect relative change for SLI if value is 0

If the previous value and the current value for an SLI is 0, the bridge incorrectly shows -100% instead of 0.

Seems like it is already fixed with #8605. I will look into it

Already fixed by #8605


DIV is not working properly

Hello the DIV command is returning a real number with decimals, whilest it should return only integer part. This makes that some of the samples and exercises doesn't work in the right way. Please fix it, then everything should work Ok.
For example the even sample for 5 is doing 5 / 2 = 2.5 then 5 * 2.5 = 5 then 5 - 5 = 0 and returning it is even what is not correct.
Thanks.

Fixed. Thanks!


Access multiple fields

It would be nice to access multiple fields like this:
("a", "b", "c").tryGet[(A, B, C)](json)

The current way, unless I'm missing something, has a lot of repetition:
for {
    a <- "a".tryGet[A](json)
    b <- "b".tryGet[B](json)
    c <- "c".tryGet[C](json)
} yield (a, b, c)

The reason, that this is currently not possible is that a lens can only extract a JsValue (this is everywhere hardcoded in the types). What would be needed to support your case would be extracting a tuple which currently is not possible. What you can do instead, especially if you are only interested in three fields named a, b, and c, is defining a case class ABC that receives a, b, and c, then define a JsonFormat[ABC] and with the format in scope, use extract[ABC] instead of tryGet to receive the values together.
Does that make sense?

Yes, that makes sense. Thanks! tryGet[ABC] seems to work as well, by the way.


Merge release 1.7.0

Description
Housekeeping for past 1.7.0 release.

Another wrong approach... sigh.


Inventory Works Odd.

When I use the inventory, items tend to move around as they want to with controllable. Especially with then a keyboard and mouse.
If I move an item to a specific slot, the items tend to split the stack and move into either the chest inventory or the player inventory at random.
Not sure why this is happening, I also use inventory tweaks renewed and optifine but the issue seems to lie solely with Controllable.
1.16.5 forge 36.0.1

Thanks for the report! I've done some testing and have run into the issue you have described. I will get a fix out soon.


entity tracking audience

Signed-off-by: liach<EMAIL_ADDRESS>

Good point, i can rename to listener. Wait for my free time

How I see it, an audience would refer to an object that can receive messages in very generic terms.

@modmuss50 mind review?


Add coingeckoid to DARC token #19145

Hi Team ,
I need to update our token DARC Information
ADD coingeckoId "darcmatter-coin"
Please help us to merge this request
https://github.com/solana-labs/token-list/pull/19145
Having issue below
Not eligible for automerge (click details for more information) failed to normalize: failed to parse JSON: json: unknown field "coingeckoId"
Our token already listed on COINGECKO
https://www.coingecko.com/en/coins/konstellation
Thank you

merged


API Playground /location for DB-API has two variables mixed up

Hi,
when using your API playground I noticed that the bools poi and addresses are mixed up in the GUI:

Thanks a lot for your work, greetings

Thanks!

The fix will be deployed to v5.db.transport.rest once I have published a new version of hafas-rest-api@3.


Correct PAN to +100 (100% R) on AUX 6 (Bkg Music R)

Today the PAN on AUX 6 (Bkg Music R) was at -100 (full left)
Hence, there were no music coming out the right speaker.
Since the mixing table is on the left, it was only noticeable by
looking at the meter.
Note that was edited manually since using a M32 Edit for linux
result in a lot of changes.

Already changed in https://github.com/mosaikberlinsound/m32-scenes-and-presets/commit/70115c93436115107616f21cc071f9a209004a60 and therefore implemented in v4.4.0.


Add support for multiple targets

Currently it's only possible to have on target. This limitation was only due to lack of time to implement proper string handling, but should be possible with not too much work.

Implemented in 37c4786038d41251bd3a0054a0ea46e05b1fbbea


Can't find the pg-core exports when using Postgres with Payload.

Describe the Bug
Hello, I am trying to override a column type in Postgres using extendTable, but I am unable to locate the pg-core types.
Link to the code that reproduces this issue
https://github.com/himanshu-ntml/extend-table-issue
Reproduction Steps

change db connection
npm run dev

Which area(s) are affected? (Select all that apply)
db-postgres
Environment Info
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: 1.22.22
  pnpm: 9.12.3
Relevant Packages:
  payload: 3.9.0
  next: 15.1.0
  @payloadcms/db-postgres: 3.9.0
  @payloadcms/email-nodemailer: 3.9.0
  @payloadcms/graphql: 3.9.0
  @payloadcms/next/utilities: 3.9.0
  @payloadcms/payload-cloud: 3.9.0
  @payloadcms/richtext-lexical: 3.9.0
  @payloadcms/translations: 3.9.0
  @payloadcms/ui/shared: 3.9.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10

Seems like on the website the docs are updated, but the PR itself https://github.com/payloadcms/payload/pull/9953 hasn't released yet. It should work in the next release!


added new osci author-AManaswini

Description
added new osci author-AManaswini
By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Closing this as you have #2062 open as well


Can't close side menu in toolbar popup when clicking on menu bar.

If you open the side menu in the toolbar popup you can only close it by clicking anywhere that isn't the menu itself or the purple navigation bar on the page behind it.
This means you can only close it by pressing the tiny light grey is that is still exposed.
The side menu also hides the close button, which is visible for a brief second when you close the side menu.

In all honesty, you could just remove the side menu altogether. I don't see a reason to have a direct link to the about page there in the toolbar. So you could move the Logout button and My Links in the actual purple navigation bar.


when call driver.stop(), pymesos throws a RuntimeError.

I just want to stop the scheduler, so I call driver.stop() , but pymesos throws an exception,  I'm a newbie to mesos, so I really can't figure out what's wrong, the following is the traceback:
2015-09-07 09:52:57,059 - [process.py:72 -        run_jobs() ]: ERROR    error while call <function handle at 0x7f22dfdefd70> (tried 0 times)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pymesos/process.py", line 69, in run_jobs
    func(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/pymesos/process.py", line 138, in handle
f(*args)
  File "/usr/local/lib/python2.7/dist-packages/pymesos/scheduler.py", line 108, in onStatusUpdateMessage
self.sched.statusUpdate(self, update.status)
  File "/home/yangyu/Documents/my-code/geetest/gt-mesos-framework/gmesos/scheduler.py", line 130, in statusUpdate
driver.stop()
  File "/usr/local/lib/python2.7/dist-packages/pymesos/scheduler.py", line 155, in stop
Process.stop(self)
  File "/usr/local/lib/python2.7/dist-packages/pymesos/process.py", line 146, in stop
self.join()
  File "/usr/local/lib/python2.7/dist-packages/pymesos/process.py", line 152, in join
self.delay_t.join()
  File "/usr/lib/python2.7/threading.py", line 940, in join
raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

it seems that driver.stop() should only be invoked in a new thread or the main thread.


Map int[] with many dropdownList

Hi,
I have to map a int[] with many @dropdownlist
@Html.DropDownList("MyModel.MyIntArray[0]", this.Model.MySelectList,
new {@class = "form-control" @id ="MyModel_MyIntArray_[0]" })
// value = 4
@Html.DropDownList("MyModel.MyIntArray[1]", this.Model.MySelectList,
new {@class = "form-control" @id ="MyModel_MyIntArray_[1]" })
// value = 5

When i wrote this, i got MyModel.MyintArray { 4 }
But, I exptected {4,5}
How to map a int array with many dropdownlist with Razor ?
And where is the official documentation for razor ?
Thank's a lot :)

Use @Html.ListBox() if you want multi-selection.

@tango-charly can you clarify what kind of UI you are trying to generate and what the models look like?

Sorry, it is unclear what is being asked here.


Mana Potions and the ExtendedStatusEffectInstance

Potions to manipulate mana regeneration are supposed to be added.
In Addition to that, prototyping for an extended StatusEffectInstance will be implemented.

Mana Potions have been implemented in another branch. ExtendedStatusEffectInstance still needs to be done.


Resolve warnings "No Source Link" and "Non deterministic".

Deal with the "No Source Link" and "Non deterministic" flags when viewing a library on a site in "NuGet Package Explorer". It doesn't seem to affect anything, but it would be nice to get rid of it.
The "No Source Link" sign is displayed, although the "Source repository" link is also displayed. Looks like a bug on the NuGet gallery. We need to look for workarounds to deal with this.
To get rid of the "Non deterministic" sign, it seems that it is enough to set a special parameter during assembly. I'm guessing to find the right options locally and then add them to the repository action script.

What is deterministic build about? Deterministic build is a reproducible build that allows the user to independently verify that the source code matches the binary code. But will the user be able to reproduce input conditions similar to an automatic runner?

You need to try to reproduce the assembly on your machine so that it matches bit by bit with the file downloaded from the nuget repository. If this works successfully, then add to readme file a separate paragraph with user instructions on how to do this.


Update ns-winuser-rawinputdevice.md

Change HID Usage Page/ID to link to internal docs with full list of supported values in various Windows versions.

@DJm00n : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Hotspots Documentation

There's no docstrings in zulip/static/js/hotspots.js to explain what the functions do specifically. This is perhaps not that large of an issue.

@patricknaughton01 what information specifically are you looking for?


TL-26984: 1PlusX boilerplate - ALT

Epic: https://triplelift.atlassian.net/browse/TL-27574
PR Review ticket: https://triplelift.atlassian.net/browse/TL-28208
This PR allows for our bid adapter to pick up the 1plusx localStorage and add to the bid request. The PR includes 2 tests: one to check that the relevant nested objects are created if no fpd exists; and the other that checks that the 1plusx segment is added to existing segments.

[x] !isEmpty(oneplusx) is prob overkill
[x] what if fpdUser.data exists and it isn't an array (shouldn't be, but still)
[x] check for malformed json following JSON.parse(oneplusx)

Added to connections-extend 88 for a consultative look

Converting to draft as to not interfere with https://github.com/prebid/Prebid.js/pull/8488
Will merge and submit PR once the above is through


Bugs in using Differential Evolution

Dear all the Contributors:
When using Differential Evolution (DE) algorithm in pymoo, I have encountered bugs when using 'DE/current-to-rand/1/bin',
'DE/current-to-best/1/bin', or 'DE/rand-to-best/1/bin' as a DE variant. The error message shows that:
in line 109 of pymoo/operators/crossover/dex.py,   X, _, _ = X,    too many values to unpack (expected 3).
Exactly, I have tried several variants of DE including 'DE/rand/1/bin', 'DE/best/1/bin','DE/current-to-rand/1/bin', 'DE/current-to-best/1/bin', and 'DE/rand-to-best/1/bin',  only the first two variants  'DE/rand/1/bin', 'DE/best/1/bin' works. The latter three variants occurs the same bugs presented above.
The test codes I used are the following:
from pymoo.algorithms.soo.nonconvex.de import DE
from pymoo.factory import get_problem
from pymoo.operators.sampling.lhs import LHS
from pymoo.optimize import minimize
problem = get_problem("ackley", n_var=10)
algorithm = DE(
pop_size=100,
sampling=LHS(),
variant='DE/rand-to-best/1/bin')
res = minimize(problem,
algorithm,
seed=1,
verbose=False)
print("Best solution found: \nX = %s\nF = %s" % (res.X, res.F))

Thanks for letting us know. Replace in pymoo.operators.crossovers.dex
Line 109: X, _, _ = X
by X = X[0] and is should work.
It will be fixed in the next release.


Revert "ci add required (#30155)"

This reverts commit f9c274c338afbe14f97cc16d1327e9a548e524b3.
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buidlall

run buildall


AttributeError: 'StableDiffusionPipeline' object has no attribute 'encode_prompt'

Hello I am facing the AttributeError: 'StableDiffusionPipeline' object has no attribute 'encode_prompt' . I upgraded the diffusers, what else can I do? Thanks in advance.
I get this error when I try to run the following from ip_adapter_demo.ipynb:
generate image variations
images = ip_model.generate(pil_image=image, num_samples=4, num_inference_steps=50, seed=42)
grid = image_grid(images, 1, 4)
grid

Hello,may I know how did you solve this problem? Thx.

Hello,may I know how did you solve this problem? Thx.

Hello, as far as I remember after upgrading the diffusers and restarted the terminal it was ok. But unfortunately it has been a long time since I used it so I' m not 100% if it was just that.


Uncoolify not working for wavy dictionary

@jaynilshah would you like o work on this issue?

@jaynilshah would you like to work on this issue?

I m working on it.


ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP

First I use the create function to create the table.  Then I use the select1 function to select from the table.  When I run stmt.execute(true) it throws the exception:
ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP
int create(session &a_sql)
{
try
{
a_sql.once << "DROP TABLE soci_t1";
}
catch (soci_error &exception)
{
// This is ok.  Oracle has no DROP TABLE IF EXISTS.
}
a_sql.once << "CREATE TABLE soci_t1 (pkey VARCHAR(100) NOT NULL, vali INTEGER, vald FLOAT, valdt TIMESTAMP, PRIMARY KEY (pkey))";
}
int select1(session &a_sql)
{
row r;
statement stmt = (a_sql.prepare << "SELECT * FROM soci_t1", into(r));
stmt.execute(true);

@boom0192 I don't suppose you ever resolved this? looks like I'm hitting the same error.

This looks like a duplicate of #511 and #756 (fixed in SOCI 4.0.0).

Thanks for testing! Closing this if it works in 4.0 -- @fluxmunki please reopen if it still doesn't.


Support for HOS 12.0.0: "Software closed because an error occured"

Occurring with a multitude of other homebrew after updating to AMS 0.19 + and HOS 12.0.0 +
Please recompile with latest libnx and stuff?

Has anyone enough knowledge to recompile this project? It would be a blessing! I tried, but failed

I kept getting errors around threading. Most likely because devkitpro has changed the structure of the SDKs since 2018. But I have no clue how to fix it. Probably need a rewrite, which is way out of my scope.

Hey!, Its been a while since I have no working modded switch anymore. I have not looked into this project since. One of my repositories has a preCompiled version. Perhaps this works for you until you guys figured the rest out. I've also documented what I did back then. Feel free to take a look: https://github.com/0x78f1935/Particle-Fire-Explosion

Hey, Its been a while for me since I do not own a modded switch anymore which actually works. I made a project back in the day with PyNX which has a pre-compiled version of PyNX. Perhaps you could use that one for now until you guys found a fix: https://github.com/0x78f1935/PyNX_Terminal

Unfortunately I get the same issue.

Does it work on 14.1.2? Can't test it right now :/

It does not.

I hope this can at some point be fixed, being able to use python homebrew on Switch was super convenient.


MSI Installer

Uses go-msi to generate a .msi installer for windows, and allows for distribution via chocolately.

:x: Build torus-cli 400 failed (commit https://github.com/manifoldco/torus-cli/commit/d7c612ed5e by @morochena)

:white_check_mark: Build torus-cli 409 completed (commit https://github.com/manifoldco/torus-cli/commit/64ae3225fa by @morochena)