[BUG] Resource tags updates always fail in AppContainers SDK

Library name and version
Azure.ResourceManager.AppContainers 1.0.1
Describe the bug
Whenever I try to add a resource tag to the Container Apps Managed Environment, it always returns a 409 Conflict error and fails to add it.
Details of the errors returned by the Azure SDK are as follows
Azure.RequestFailedException
  HResult=0x80131500
  Message={"error":{"code":"ManagedEnvironmentOperationInProgress","message":"Cannot modify Container Apps environment cae-acmebot-dev because another operation is in progress."},"code":"ManagedEnvironmentOperationInProgress","message":"Cannot modify Container Apps environment cae-acmebot-dev because another operation is in progress."}
Status: 409 (Conflict)
ErrorCode: ProviderError

Content:
{"error":{"code":"ProviderError","message":"{\"error\":{\"code\":\"ManagedEnvironmentOperationInProgress\",\"message\":\"Cannot modify Container Apps environment cae-acmebot-dev because another operation is in progress.\"},\"code\":\"ManagedEnvironmentOperationInProgress\",\"message\":\"Cannot modify Container Apps environment cae-acmebot-dev because another operation is in progress.\"}"}}

Headers:
Cache-Control: no-cache
Pragma: no-cache
x-ms-failure-cause: REDACTED
x-ms-request-id: 46c24610-2e54-466f-a499-2f1183c511e5
x-ms-correlation-request-id: REDACTED
x-ms-routing-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
Date: Sat, 07 Jan 2023 09:13:18 GMT
Content-Type: application/json; charset=utf-8
Expires: -1
Content-Length: 392

Expected behavior
Resource tags are successfully added.
Actual behavior
Always returns 409 Conflict error and fails to add tags.
Reproduction Steps
var options = new ArmClientOptions
{
    Diagnostics =
    {
        IsLoggingContentEnabled = true,
        IsLoggingEnabled = true
    }
};

var armClient = new ArmClient(new AzureCliCredential(), "<subscription id>", options);

var subscription = await armClient.GetDefaultSubscriptionAsync();

await foreach (var managedEnvironment in subscription.GetContainerAppManagedEnvironmentsAsync())
{
    await managedEnvironment.AddTagAsync("Sample", "Test");
}

Environment
No response

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

@fengzhou-msft  please help on this issue

I can reproduce the error. The same exception is thrown although the tag creation actually succeeded. On Portal, the creation of tags in a managed environment also throws ProviderError: Provider 'Microsoft.App' did not return a resource in the response. although the tag creation actually succeeded.  Route to service team to check their TagResource support.

This is caused by the underlying Tag APIs and should have been fixed with Azure.ResourceManager 1.4.0. Please upgrade and retry with below option which fixes the issue of api-version used by SDK not supported by service,  probably caused by service recent API update:
options.SetApiVersion(new ResourceType("Microsoft.App/locations/managedEnvironmentOperationStatuses"), "2022-10-01");

@fengzhou-msft Thanks for sharing the info. But unfortunately, I modified the code as follows and it returned the same error.
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.AppContainers;

var options = new ArmClientOptions
{
    Diagnostics =
    {
        IsLoggingContentEnabled = true,
        IsLoggingEnabled = true
    }
};

options.SetApiVersion(new ResourceType("Microsoft.App/locations/managedEnvironmentOperationStatuses"), "2022-10-01");

var armClient = new ArmClient(new AzureCliCredential(), "<subscription id>", options);

var subscription = await armClient.GetDefaultSubscriptionAsync();

await foreach (var managedEnvironment in subscription.GetContainerAppManagedEnvironmentsAsync())
{
    await managedEnvironment.AddTagAsync("Sample", "Test");
}

Hi @shibayan ,Thank you for using Azure SDK for .NET.
This issue has been fixe in the latest version of ResourceManager. Please have a try on that.


Error saving watcher - Index/Input naming

Hi.
I'm trying to create a watcher, but I have an issue saving the watcher.
We use a index naming convention like below:
company_product-2017.11
The default when creating a new watcher is below
"index": [
            "<company_product-{now/d}>",
            "<company_product-{now/d-1d}>"
          ]

The above doesn't work as it reference the day in the index, we use month indexes.
I'm following the guide on elastic to reference the index the "correct" way, but it still doesn't save.
https://www.elastic.co/guide/en/elasticsearch/reference/current/date-math-index-names.html
"index": [
            "<company_product-{now/M{YYYY.MM}}>"
...

The only way the watcher save if I reference the whole index name like: company_product-2017.11

@markusza what version of ES and Kibana are you using?

@lmangani Apologies, forgot to mention.
ES - 2.4.3
Kibana - 4.5.4


Support relative base path on dev server

Description
Make
 const config = {
  base: './'
}

supported in the dev server.
Use  case:
Our app always runs inside iframes, even during development.
This relates to:
https://github.com/vitejs/vite/issues/14105
but in my case the uri is not known before hand.
Also relates to:
https://github.com/vitejs/vite/issues/11142
Suggested solution
Allow relative base path in dev mode.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you create a minimal reproduction of what your use case so we better understand it. Maybe it would be easier to discuss with a PR to show how the implementation looks. But as we stated in the other open issues, the complexity of supporting a relative base during development was too much to justify the feature.

https://github.com/module-federation/vite/issues/52
This problem also occurs in the module-federation scenario. The host port is 5175, the remote port is 5176, but the remote resource uses /

@patak-dev @yyx990803 FYI, there has been a very good progress with Module Federation support for Vite over last month here (check the right new-config branch). Here @zhangHongEn and @gioboa have used new Module Federation 2 which is bundler agnostic. So this hopefully will significantly help efforts to get Vite Module Federation support in place. This approach saves us from implementing MF from scratch and offers consistent behaviour across bundlers, which is especially important in case of MF as modules are often build with different bundlers and it is important to have compatible implementation across. Also, RsPack and NextJs using this approach to get there MF implemented.
Since it has been one of the few areas where Vite was not up to speed it will be great to work with them in order to get first class Module federation support in Vite

@zhangHongEn In your case, won't server.origin: 'https://localhost:5176' work?

@zhangHongEn In your case, won't server.origin: 'https://localhost:5176' work?

server.origin solved my problem

I'm closing this issue as the author has not provided any additional details for a while and the module federation one is covered by server.origin. Feel free to create a new issue with more details if it's still something that is good to have.


ConfusionMatrix: Stochastic bug with batchAdd

I'm running into a bug that appears and disappears for no apparent reason in the use of  ConfustionMatrix.batchAdd. See these two consecutive runs:
     COMMND  asb  ~  git  mnist  src  th train.lua --printstep 20 --skiplog --cuda                       [284/403825]
    72 of 45000 training records will be unused per epoch.
    24 of 15000 validation records will be unused per epoch.
    [2016-10-14 18:40:09] Finished epoch = 1, batch = 20, with loss = 1.1431102752686.
    [2016-10-14 18:40:10] Finished epoch = 1, batch = 40, with loss = 0.98379397392273.
    [2016-10-14 18:40:10] Finished epoch = 1, batch = 60, with loss = 0.69640064239502.
    [2016-10-14 18:40:11] Finished epoch = 1, batch = 80, with loss = 0.53388464450836.
    [2016-10-14 18:40:11] Finished epoch = 1, batch = 100, with loss = 0.42102938890457.
    [2016-10-14 18:40:12] Finished epoch = 1, batch = 120, with loss = 0.69019424915314.
    [2016-10-14 18:40:13] Finished epoch = 1, batch = 140, with loss = 0.28126338124275.
    [2016-10-14 18:40:13] Finished epoch = 1, batch = 160, with loss = 0.31771036982536.
    [2016-10-14 18:40:14] Finished epoch = 1, batch = 180, with loss = 0.36902123689651.
    [2016-10-14 18:40:15] Finished epoch = 1, batch = 200, with loss = 0.15535597503185.
    [2016-10-14 18:40:15] Finished epoch = 1, batch = 220, with loss = 0.26898837089539.
    [2016-10-14 18:40:16] Finished epoch = 1, batch = 240, with loss = 0.2337928712368.
    [2016-10-14 18:40:16] Finished epoch = 1, batch = 260, with loss = 0.19574552774429.
    [2016-10-14 18:40:17] Finished epoch = 1, batch = 280, with loss = 0.37691986560822.
    [2016-10-14 18:40:18] Finished epoch = 1, batch = 300, with loss = 0.27491936087608.
    [2016-10-14 18:40:18] Finished epoch = 1, batch = 320, with loss = 0.36371386051178.
    [2016-10-14 18:40:19] Finished epoch = 1, batch = 340, with loss = 0.15922805666924.
    /home/asb/torch/install/bin/luajit: ...sb/torch/install/share/lua/5.1/optim/ConfusionMatrix.lua:117: bad argument #1 to
    'indexAdd' (out of range at /home/asb/torch/pkg/torch/lib/TH/generic/THTensor.c:729)
    stack traceback:
            [C]: in function 'indexAdd'
            ...sb/torch/install/share/lua/5.1/optim/ConfusionMatrix.lua:117: in function 'batchAdd'
            train.lua:153: in main chunk
            [C]: in function 'dofile'
            .../asb/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
            [C]: at 0x00405b80

     COMMND  asb  ~  git  mnist  src  th train.lua --printstep 20 --skiplog --cuda                         master
    72 of 45000 training records will be unused per epoch.
    24 of 15000 validation records will be unused per epoch.
    [2016-10-14 18:43:17] Finished epoch = 1, batch = 20, with loss = 2.0140626430511.
    [2016-10-14 18:43:18] Finished epoch = 1, batch = 40, with loss = 0.97827231884003.
    [2016-10-14 18:43:18] Finished epoch = 1, batch = 60, with loss = 0.62330090999603.
    [2016-10-14 18:43:19] Finished epoch = 1, batch = 80, with loss = 0.73870342969894.
    [2016-10-14 18:43:19] Finished epoch = 1, batch = 100, with loss = 0.61164426803589.
    [2016-10-14 18:43:20] Finished epoch = 1, batch = 120, with loss = 0.40717771649361.
    [2016-10-14 18:43:21] Finished epoch = 1, batch = 140, with loss = 0.46196541190147.
    [2016-10-14 18:43:21] Finished epoch = 1, batch = 160, with loss = 0.7626816034317.
    [2016-10-14 18:43:22] Finished epoch = 1, batch = 180, with loss = 0.42969378829002.
    [2016-10-14 18:43:23] Finished epoch = 1, batch = 200, with loss = 0.42102152109146.
    [2016-10-14 18:43:23] Finished epoch = 1, batch = 220, with loss = 0.34528177976608.
    [2016-10-14 18:43:24] Finished epoch = 1, batch = 240, with loss = 0.32393988966942.
    [2016-10-14 18:43:24] Finished epoch = 1, batch = 260, with loss = 0.25361078977585.
    [2016-10-14 18:43:25] Finished epoch = 1, batch = 280, with loss = 0.35111820697784.
    [2016-10-14 18:43:26] Finished epoch = 1, batch = 300, with loss = 0.35840207338333.
    [2016-10-14 18:43:26] Finished epoch = 1, batch = 320, with loss = 0.19336950778961.
    [2016-10-14 18:43:27] Finished epoch = 1, batch = 340, with loss = 0.23242954909801.
    Total accuracy of classifier at completion of epoch 1 = 92.062784433365.
    Mean accuracy across classes at completion of epoch 1 = 92.140758547009.
    [2016-10-14 18:43:29] Finished epoch = 2, batch = 20, with loss = 0.45858466625214.
    [2016-10-14 18:43:29] Finished epoch = 2, batch = 40, with loss = 0.22427660226822.
    [2016-10-14 18:43:30] Finished epoch = 2, batch = 60, with loss = 0.2953850030899.
    [2016-10-14 18:43:31] Finished epoch = 2, batch = 80, with loss = 0.2055009752512.

The first run fails while the other succeeds with no changes whatsoever.
Moreover, arg 1 for indexAdd that is being reported in the stack trace is hard-coded to the value 1. So not sure how user code should even affect it.
My code is available here for reference.
Any ideas to debug this?
Thanks.

Sorry, this was a false positive.

Hey, not a false positive. I thought this was due a mistake in my code but I don't think so. So, reopening this.


Escape HTML entities in doc comments

The intention is to show their original form, but they get interpreted as HTML and the docs look weird/wrong:
https://crystal-lang.org/api/0.35.1/HTML.html

Shouldn't they be escaped by the doc generator instead?

Shouldn't they be escaped by the doc generator instead?

Markdown natively has a fallback to HTML.
HTML entities are part of Markdown, you can use that on GitHub too.
© ©
Inside code tags, though, that is not the case, that is indeed a bug.
>>> import markdown
>>> m = markdown.Markdown()
>>> m.convert('''&''')
'
&
'
>>> m.convert('''`&`''')
'
&amp;
'
>>> m.convert('''    &''')
'
&amp;\n
'

Markdown natively has a fallback to HTML.
HTML entities are part of Markdown, you can use that on GitHub too.
© ©
Inside code tags, though, that is not the case, that is indeed a bug.
>>> import markdown
>>> m = markdown.Markdown()
>>> m.convert('''&''')
'
&
'
>>> m.convert('''`&`''')
'
&amp;
'
>>> m.convert('''    &''')
'
&amp;\n
'


Maybe empty input should be ignored in interactive mode

Currently, empty input, e.g., a single ENTER from "user" can also trigger answer from gpt. Maybe it's more properly to ignore empty inputs.

fixed


Send custom color profiles/templates

In the mobile app there is a way to send custom color profiles/templates. Is there any way to do this via this plugin?

Hey @JeffHerb,
This integration only supports setting custom effects.
Given the limited functionality, I haven't found a way to integrate templates from the Offical Lab or My Library.

Closing due to inactivity on issue


Rewards

Dear Authors,
I was wondering if the codebase has python implementation of the reward function, reward schedules, and compositions listed in the paper. If yes, can you please point it to me? I wanted to use those in my own experiments with the openai-gym interface.
Thanks!

Ah we haven't yet implemented those in the Python API. They are only implemented in Swift currently. But hopefully the description of the reward functions and reward schedules are sufficient to be able to reimplement them? If anything is unclear or ambiguous, please let us know and we'll be happy to clarify.

Thanks!
Can you please clarify how the reward rate is computed by providing the formula to calculate it? Also, can you briefly tell me why it is a good measure to the plot? It wasn't too clear from the paper.

Sure, let's say r(t) is the reward obtained at time step t. The reward rate at time t, with respect to a time window T, is defined as \sum_{s=t-T}^t r(t) / T, assuming t >= T. (note that if t < T, then the reward rate is just \sum_0^t r(t) / t)
Note that the reward rate for non-time-varying agents, such as the greedy agents, is constant over time. To compute those, we just ran the agent for a very long time and divided the total reward by the total time.
We chose this metric because simply measuring total reward would not capture how the agent's ability to find reward is changing over time. We chose to use a sliding window since the agent's ability to find reward can change even after a lot of time has passed, for example, if the agent collects all the jellybeans in a large region and "exhausts" the available reward, this metric would show a decline after a period of time. In addition, it's easy to see with this metric if the agent becomes "stuck" and unable to collect any additional reward. Also, the spatial density of jellybeans in a region provides a simple (but possibly crude) upper bound on the reward rate.

Perhaps as a formula?

If an object is present at the (x,y) location, then it will have an exponentially decaying influence in the entire grid. Perhaps, a low value of influence, say < 0.05 can be ignored (threshold). The (R, G, B) values of any cell (pixel) is the sum of the influences of all the items in the grid in that cell.
Visual occlusion, viewing angles remain valid, but the agent can't "see" the exact location of the object, rather it sees a mixed up and diffused version, like a heat map.

does the visual field of the agent at time t depend only on the positions and types of the items at time t, or does it also depend on the visual field at time t - 1?

In the most general case it could be dependent on the previous time steps. But I'm interested in a case where the dependence is on the current time step only. That is, the visual diffusion only depends on the objects in the map at the current time step.
Let me know if you need more clarification on anything.

I think I see what you mean. So would that mean that an item that is normally outside the visual field of the agent would be slightly visible? (since its color could diffuse into the agent's visual field if it's close enough) Also, would the occusion/FOV be computed before or after this diffusion/blurring step? Or are you disabling occusion/FOV for now? I'm assuming you want to use the same diffusion model as scent, except with different constants for decay/diffusion?
You could implement this using either approach I mentioned above (in Python or C++). The C++ code has a class called diffusion which would help here. You can see how this class is used in the update_state function I mentioned earlier (it's passed as an argument called scent_model). This function only computes the scent for one pixel (the agent's position), but in your case, you need to compute it for every pixel in the agent's visual field, and so you need a loop over pixels and a nested loop over nearby items.

So would that mean that an item that is normally outside the visual field of the agent would be slightly visible?

Yes, you are right.

are you disabling occusion/FOV for now?

Yeah, I'm not using them for now.

I'm assuming you want to use the same diffusion model as scent, except with different constants for decay/diffusion?

In a way, you are right. Vision part is similar to scent except it has information of "nXn" grid rather than just a single cell.
Thanks for pointing at the specific part of the code. Do you think if it will be useful to have this feature in the original code (your repo)? I suspect a lot of other researchers will be interested in that setting.

Hmm good question, I haven't been asked about this kind of functionality by other users.

That's fair. One good paper is all it takes to popularize a particular experimental setting. Maybe there's a good one in making :P

Also, how did you generate Figure 9? Simply passing larger arguments to the map function doesn't seem to do the trick. It always returns 16 patches only.

Oh that's odd, map should definitely return more patches if you provide the correct inputs. What are the arguments you're providing to the function? Figure 9 was generated by just taking screenshots of the Vulkan visualizer. You need Vulkan and GLFW installed to use it, but it should fairly simple to build.
I think the best way to think about the RadialHash function is to start from a function like cos(sqrt(x^2 + y^2)). The cos causes the width of each "wave" to be constant. You can add a parameter s to control the width of the wave: cos(sqrt(x^2 + y^2) / s). For larger s, the concentric circles become thicker, and for smaller s, they become thinner. The RadialHash function is essentially identical to this function except the cos is replaced with a pseudorandom function. This pseudorandomness makes it more difficult for the agent to predict the distribution of items. The other parameters (c, k, \Delta) only translate the function in the x or y direction, or linearly scale it in the z direction (you can try messing with the example in WolframAlpha to gain further intuition).

What are the arguments you're providing to the function?

bottom_left=(-500, -500), top_right=(500, 500) I am passing these arguments here.
Your explanations are very helpful. Thanks @asaparov

You're welcome! Hmm, did you remember to reinstall jbw with python setup.py install after making those changes to environment.py?

Actually, no. Do I have to reinstall every time I make some changes? Excuse me for a lack of good coding knowledge.

Also, are you on Twitter? I'd like to add you there and keep in touch with you.

Yes, if you're following the instructions in the README, you will need to reinstall jbw whenever you make changes to the library code. I'm pretty sure there are ways to import the library locally (without setup.py install), but I haven't tried those (I always just reinstall it after each change).
I think I technically have a Twitter account that I made many years ago but I haven't actually used it. 😅

Figure 9 was generated by just taking screenshots of the Vulkan visualizer. You need Vulkan and GLFW installed, but it should be fairly simple to build.

Running cd bin and then ./jbw_visualizer simulates the world as the agent explores it. Is there a way to visualize the environment without tracking the agent? I want to visualize how the env looks for various parameter settings. What's the best way to do that?

 You can stop tracking any agent if you just move the environment, for example by just dragging with a mouse. The visualizer tracks the first agent by default, but you can change this with the option --track=0. You can set the default zoom level using the option --pixels-per-cell. You may want to disable drawing the scent map if you're very zoomed out, since it could be quite expensive.
But the world is initially empty (we only generate the patches around the agents). So one way to generate more of the world initially is to use this function. This function makes sure that all patches that intersect with the given bounding box are generated. So for example, if you're visualizing a local simulation (with the --local flag) you could add the line generate_map(sim.get_world(), position(-500, -500), position(500, 500)); after constructing the simulator here.


:bug: defaultData - simpleObject

Coverage increased (+0.007%) to 99.156% when pulling a3c5a11a2a7bd8ed49d196ad7381cc9ce21a0500 on fix/defaultData into b2408c14543e417e3da5420806a9923b6bf0b5b0 on master.


remove NodeJsFunction constructs from library

If we ever want to move this library into aws-cdk-lib, we cannot depend on experimental constructs. We will have to figure out a different way to bundle assets and refactor the two custom resource lambdas that currently utilize NodeJsFunction.

Unless I'm missing something, NodeJsFunction is no longer experimental; it carries the Stable banner now.
https://github.com/aws/aws-cdk/tree/e9b07a7b32f4b6798f07a4e8012bfc5b435c4f49/packages/%40aws-cdk/aws-lambda-nodejs


Create basic functioning SocketClient capable of PATCH requests

17/09/2023 - Converted from Draft to Issue


feat: add luxon for diff

Use luxon to calulate the duration between now and the end date.

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


use of /mnt

It seems to me that /mnt shouldn't be used as the mount point, e.g. in bootstrap.  It's quite likely to have something manually mounted on it, or possibly be in use by another singularity instance.
Could a temporary directory be used instead (mktemp -d)?

I don't want to use a tmpdir, but we can use the localstatedir/singularity/mnt directory that I'm using for container mounts. I'll fix that up.
Good catch!

Committed in [master 759c7d5]. Thanks for the idea!

You wrote:

I don't want to use a tmpdir,

For information, as it might be relevant to hacking, what's the problem
with it?

but we can use the
localstatedir/singularity/mnt directory that I'm using for container
mounts. I'll fix that up.

I have a weird feeling about mounting other directories and files within everybody writable directories (even with stickybit set).. I don't know if there is any tangible risk, but since other options exist I'd prefer just to use those other options.
Because of namespaces, we won't have any mount space clashes in a common directories that are root owned like /mnt or even /var/singularity/mnt so that seems to make the most sense to me.


Type or namespace 'DatabaseDependencies' could not be found.

var dependencies = (DatabaseDependencies)ReflectionCommon.DependenciesOfDatabase.GetValue(database);
What should I do?
Thanks!

Please ensure your ef core version is 2.0.0-preview2-final

This lib does not support lower version ef core

FYI, If you want to support older versions, you can refer to https://github.com/PomeloFoundation/Lolita/blob/master/src/Pomelo.EntityFrameworkCore.Lolita/Extensions/IQueryableExtensions.cs#L25-L32

Ok,I got it.tks.


Cmake unit.item 66.1

Coverage increased (+12.71%) to 84.68% when pulling 699ea0d87563f2116901c85273c77c32ab369596 on smspillaz:cmake-unit.item_66.1 into 6765e6786238572a6617e4c75d907d3d76ab99f4 on polysquare:master.


Synology Drive debug messages and fails to load on startup

Describe the bug
Running NixOS 24.05 with Hyprland, and I have a bash startup script to load any programs that I want to start in the background. Synology Drive is the only program that fails to start.
When I launch the synology-drive-client in terminal with either synology-drive or synology-drive start, I get the following messages:
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
QApplication: invalid style override passed, ignoring it.
    Available styles: Windows, Fusion
debug.message: Cannot find path by key "user_cloud_station_app_path"
debug.message: Cannot find path by key "user_cloud_station_data_path"
debug.message: Cannot find path by key "user_cloud_station_working_dir_path"
debug.message: Cannot find path by key "user_cloud_station_drive_ui_path"
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
QApplication: invalid style override passed, ignoring it.
    Available styles: Windows, Fusion

The app should load when opened from terminal, but the system tray applet will be missing.
Steps To Reproduce
Steps to reproduce the behavior:

Install the synology-drive-client
Add the program to a bash startup script that hyprland can run at startup.
If that fails, try running synology-drive from terminal.
The app should load from terminal but with a missing system tray applet.

Expected behavior
I expect the program to launch without the debug messages listed above, and it should also start with the system tray applet.
Additional context
Similar behavior is documented by the same user in both of these links. Unfortunately, the solution posted was to mount the home partition without the "noexec" flag, but I don't think that applies on NixOS.
https://community.synology.com/enu/forum/1/post/160966
https://aur.archlinux.org/packages/synology-drive
Notify maintainers
Maintainers @jcouyang and @MoritzBoehme FYI
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.05 (Uakari), 24.05.20240601.b3b2b28`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/store/f3rv70nrmkfya581f1j2z9a6yx0b83np-source````

---

Add a :+1: [reaction] to [issues you find important].

[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

For my fellow Synologists, try ‘QT_STYLE_OVERRIDE=Fusion QT_QPA_PLATFORM=xcb synology-drive autostart’ for your startup command. That worked for me.


cmd/go: building Go distribution from source fails with "missing $GOPATH"

On an amd64 GNU/Linux system with no GOPATH set in the environment, and with the Go source code at $HOME/go so that the default GOPATH setting does not work, running make.bash fails with
Building Go cmd/dist using /usr/local/google/home/iant/go1.4.
Building Go toolchain1 using /usr/local/google/home/iant/go1.4.

Building Go toolchain2 using go_bootstrap and Go toolchain1.
missing $GOPATH
go tool dist: FAILED: /usr/local/google/home/iant/go/pkg/tool/linux_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1

@ianlancetaylor This happens because modules are on by default in go_bootstrap. We need GOPATH very early to initialize the module cache. The behavior of GOPATH defaulting to $HOME/go comes from go/build.defaultGOPATH: it specifically avoids using GOROOT.
@andybons mentioned a similar error yesterday building the internal toolchain. I'm not sure what the target was, but is it possible to check out the source code somewhere other than $HOME/go? Even if we work around this by creating a temporary GOPATH in make.bash, the toolchain won't work at all until GOPATH is set explicitly.

So you are saying that we now require a valid GOPATH in order to do any Go builds at all?  Seems slightly ironic since one of the goals of the module system is to get away from GOPATH.  But OK.  I guess we just need to document this.

Yep, we still need a place to put $GOPATH/bin and $GOPATH/pkg/mod. The former can be set explicitly with GOBIN, but there's no other way to set the latter.
I'll update documentation in make.bash and emit the error earlier in dist.

I take it back. It looks like dist is already setting GOCACHE to an temporary directory within GOROOT in order to avoid depending on anything existing outside GOROOT. We can do the same with GOPATH.
GOPATH may still need to be set to something different than GOROOT after the toolchain is built, but at least building the toolchain won't be any more complicated.


CPATH alternative on Arch or non-debian Linux

This is more or less a continuation of #1375.
I used export CPATH=="$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d' ' -f1 | rev)/include" from https://cjycode.com/flutter_rust_bridge/integrate/deps.html .
However, to build to Android one has to use an include dir from the Android NDK.
Further, I think a more elegant solution, especially when using build.rs, is to pass the include directory to frb_codegen directly via Opts.
fn llvm_config() -> PathBuf {
    let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
    if target_os == "android" {
        let mut ndk: PathBuf = env::var("ANDROID_NDK_HOME").unwrap().into();
        ndk.push("toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-config");
        ndk
    } else {
        "llvm-config".into()
    }
}

// Add clang lib include path to llvm_compiler_opts.
// libs/clang/$LLVM_VERSION/include
// Newer versions of clang only use the major version for LLVM_VERSION.
fn llvm_compiler_opts() -> Option<String> {
    let llvm_version = Command::new(llvm_config())
        .arg("--version")
        .output()
        .unwrap();
    let llvm_version = llvm_version.stdout;
    let llvm_version = std::str::from_utf8(&llvm_version[..llvm_version.len() - 1]).unwrap();
    let llvm_main_version = llvm_version.split(".").next().unwrap();

    let llvm_libdir = Command::new(llvm_config())
        .arg("--libdir")
        .output()
        .unwrap();
    let llvm_libdir = llvm_libdir.stdout;
    let llvm_libdir = std::str::from_utf8(&llvm_libdir[..llvm_libdir.len() - 1]).unwrap();
    Some(format!("-I{llvm_libdir}/clang/{llvm_version}/include -I{llvm_libdir}/clang/{llvm_main_version}/include"))
}

// Then something like this

    // Options for frb_codegen
    let raw_opts = RawOpts {
        llvm_compiler_opts: llvm_compiler_opts(),
        ..Default::default()
    };

    // Generate Rust & Dart ffi bridges
    let configs = config_parse(raw_opts);
    let all_symbols = get_symbols_if_no_duplicates(&configs).unwrap();
    for config in configs.iter() {
        frb_codegen(config, &all_symbols).unwrap();
    }

If you agree I would add a section to the documentation.

Thank you for the information! I am working on flutter_rust_bridge 2.0, and will refactor the whole thing. Therefore, I personally suggest that you wait a little bit of time (hopefully no longer than a few weeks when 2.0 is published), and see whether the new system still have the thing you want to add. However, if you PR now, I can also review and merge it to master (while manually move the doc to 2.0 later).

In that case I will wait. Since you are refactoring...I was thinking that the selection and checking of llvm related paths could be done inside frb. I also found some code that goes into that direction but I did not follow it further.

That sounds reasonable!

I also found some code that goes into that direction but I did not follow it further.

Just curious, what is that code

It's get_llvm_paths() in opts_parser.rs, but it just sets/guesses the llvm path.

(Since I mentioned the v2 thing before, v2 has released now :) )

Oh, somehow misssed your last comment.
I thought about this a little but I'm not sure what's the best approach.
I am pretty sure that this line adds the clang header files from the system installation:
export CPATH=="$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d' ' -f1 | rev)/include" ,
which can lead to problems when building for Android, if the system clang is a different version than the one from the Android toolchain. Or to be more precise if their header files are incompatible.
That's why I'm using the above functions to get the correct compiler_opts using llvm_config.
So maybe it's enough to add it to the documentation or codegen could add the include path automatically.

which can lead to problems when building for Android, if the system clang is a different version than the one from the Android toolchain. Or to be more precise if their header files are incompatible.
That's why I'm using the above functions to get the correct compiler_opts using llvm_config.

Hmm I am not very sure. If I understand correctly, we are executing frb_codegen here. It is a precompiled binary (thus no changeable CARGO_CFG_TARGET_OS), and generates static code. So I guess it is not a problem to worry about platform differences.

Well, what can I say...I tried to reproduce the error (#1375) but it disappeared, even for frb 1.
So, I guess we can close this issue for now and come back if it comes back.


TS exception

node_modules/amazon-sp-api/lib/typings/index.d.ts:6:3 - error TS2724: '"./operations/orders"' has no exported member named 'GetOrderItemResponse'. Did you mean 'GetOrderItemsResponse'?

@amz-tools , same issue for me.
As I check the sp-api document, there is no type definition for GetOrderItemResponse.


Restore expected absolute windows paths

Output of restic version
restic 0.9.6 compiled with go1.13.4 on windows/amd64
What should restic do differently? Which functionality do you think we should add?
restic's usage should be easy, but windows handling seems to be more complicated than it needs to be:
backup: restic -r X:\repo backup C:\dev\projects
restore: restic -r X:\repo restore latest -t C:\
expected path restored: C:\dev\projects
actual path restored: C:\C\dev\projects
Changing it to -t D:\ should restore it to D:\dev\projects.
(I know there is a workaround for this, but it complicates my backup script a lot and I would be glad to see restic's vision of simple handling implemented for windows, too)
What are you trying to do?
cover a simple backup/restore scenario
Did restic help you today? Did it make you happy in any way?
I think restic is great! The deduplication mechanic is super neat and the speed is top notch. I was in the same boat as the restic author: trying different backup solutions, but none really fit, but restic does it - and all with one portable binary. Also, thank you for releasing windows binaries!

Hello. What is the workaround?
On Linux I could just cd into the parent directory and use a relative path, but this is not working on Windows.

Hi, the workaround:

change working dir to drive's root dir, e.g. "C:"
bkup with relative dirs, e.g. ".\data"
restore to "C:" to re-create the data in the original path: "C:\data"

Sidenote: restic snapshots still shows "C:\data", but the real path is shown via restic ls <snap> with path "/data"

The snapshotID:subfolder allows removing unneceessary path prefixes. As backups can contains files from multiple drives, it's not possible to generalize this. Closing in favor of https://github.com/restic/restic/issues/4575 .


Give AppBar a Scaffold dependency

Giving AppBar a const constructor might be a nice performance boost, especially in those spots where suddenly the entire Scaffold and its body can be const!
The current setup is sort of wonky—rather than directly having a dependency on the parent Scaffold, both didChangeDependencies and build use Scaffold.maybeOf(context), which calls findAncestorStateOfType() to obtain the ScaffoldState.
We already have an inherited widget for Scaffold data (it's a private _ScaffoldScope class).
A straightforward non-breaking change could be to store the ScaffoldState in the inherited widget, similar to what _ParentInkResponseProvider does, and then Scaffold.maybeOf could be tweaked to optionally create a dependency, similar to Focus.maybeOf:
class Scaffold {
  static ScaffoldState? maybeOf(BuildContext context, {bool createDependency = false}) {
    if (createDependency) {
      return context.dependOnInheritedWidgetOfExactType<_ScaffoldScope>()?.state;
    }
    return context.findAncestorStateOfType<ScaffoldState>();
  }
}

Going to assign myself, though I'm not 100% sure about if/when I'll get around to doing it 🙂

To verify if this will have a worthwhile performance improvement, we could add a benchmark first. That way we can see if the change would actually make a difference. :)

All right, just ran a benchmark!
Source code: DartPad
Results & calculation: Google Sheets
In this (extremely contrived) example, I saw that giving AppBar a const constructor improved performance by either a factor of 66 or 720, depending on how you choose to measure it.

On the one hand, I'll reiterate that this example was extremely contrived.
On the other hand, a 6,600% performance boost is pretty remarkable.

Perhaps these changes could influence the benchmarks mentioned in issue #149932

@maRci002 perhaps so!
Overall, I'm a bit hesitant to spread the word about this benchmark, since a const AppBar() is just one out of a dozen different ways to refactor the above app so it achieves that performance improvement. I agree that it'd be interesting to re-run the benchmarks in #149932 if/when const AppBar() is implemented, to see if it makes an impact.


"Allow in Incognito" doesn't work well

To run ublock in Incognito tab, it need to re-enable "Allow-" every time you start Incognito mode.
and only works network filter, element filter doesn't work.
Other extensions work well in Incognito mode.
kiwi version:77.0.3865.92
ublock:1.24.4

With new Kiwi the "Allow in Incognito" works for most extensions .
If there is any extension that doesn't work , open a specific issue about it


Have a JSON Endpoint for polling of metrics (Home Assistant)

Hi!
I really love Uptime-Kuma, I just deployed this on my home and office servers!
I wanted to get metrics like the Prometheus endpoint as a JSON endpoint so I can port info direct to home assistant :)
Thank you!

Duplicate of #118

I came a long with an other solution to this topic since there are only Notifications available when there is some service down but not for monitoring the status:
sensor:
  - platform: command_line
    name: Uptime Kuma Test
    command: curl -s -u <YOUR_USER>:<YOUR_PASSWORD> http://<YOUR_IP>:3001/metrics | grep -Poi '^monitor_response_time{.*?} \d+$'
    unit_of_measurement: "ms"
    value_template: >-
      {{ value | regex_findall_index(find="monitor_hostname=\"<ESCAPED_HOSTNAME>\".*} (\d*)", index=0, ignorecase=False) }}

Thats for getting the Response-Time for a Hostname. You have to escape the hostname correctly like so
my.hostname.to.monitor > my.hostname.to.monitor
Have fun with it ;)


Speed up unit tests

User Story
Most of the time of the unit test jobs is spent on installing the tools and generating the code that is automatically generated. We should bake in all tools and not regenerate the code as it should be included in the repository.
/kind feature

/assign @digambar15

@digambar15 will try to tackle this one, as discussed offline


Update amazon-kinesis-client to 2.2.10

Updates software.amazon.kinesis:amazon-kinesis-client from 2.2.9 to 2.2.10.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.kinesis", artifactId = "amazon-kinesis-client" } ]

labels: library-update, semver-patch

Codecov Report

Merging #244 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #244   +/-   ##
=======================================
  Coverage   47.68%   47.68%
=======================================
  Files          24       24
  Lines         281      281
  Branches        1        1
=======================================
  Hits          134      134
  Misses        147      147

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 2d3c97e...6869b58. Read the comment docs.


Fix CHANGELOG-gui.md

Fixed some typos in CHANGELOG-gui.md.

"localisation" is not wrong in Britain, but you've used American spelling in every context, so I fixed it.

Thank you


[Suggestion] rename ftl.Map

[!NOTE]
Feel free to close this issue if y'all think otherwise! no hard feelings whatsoever. Just something that crossed my mind when i initially came across the function when looking for ftl.Singleton:

ftl.Map feels a wee bit ambiguous. i think folks would instinctively think of a map[string]any sort of map prior to thinking: "Map this resource to this function".
If someone did go as far as hovering over Map to read the godoc, it sort of makes it sound like you're using Map to create a binding between a resource and a function so that anywhere the resource is fetched, that function would execute instead. Maybe ftl.Use or ftl.UseResource would be more clear.

I think most programmers today are familiar with the concept of "map" as a higher order function, so I think the name is fine. Also the signature makes it very clear it's not related to a map data structure. If anything I think like Use is more confusing, to me personally at least?
Maybe the docs could change to reflect its purpose better though? But another option might be making it a method on the Handle interface, though that means that every resource type would have to implement that method, which would be annoying.


Suggestion: Make 20% quantity as a maximum value for left(minimum) search field

According to issue #136, It hasn't been resolved at all.
What does commit that resolves #136? It only places the attribute value for the item, like it has 20%Q as a maximum value for the search. And what? How this should help? The main issue - I can't scroll the left(minimum) value higher than it has initially.
So the issue can be resolved in 2 ways:

Enable scrolling left(minimum) value higher than initial item has(to calculated 20%Q)
Initially show left value(for Min-max range 0~#%) as an item with 20q%. (sure you should track if it has >20%q then use the value from item)

I definitely prefer second option. And remove the previous fix, it does nothing and really funny.

Link #594

ATM 20%Q not work at all :(

First of all, the previous fix(which places 20q value to the max value of the search) should be removed. Because it does nothing at all.

First of all, the previous fix(which places 20q value to the max value of the search) should be removed. Because it does nothing at all.

It already removed

So the next step is my suggestion.

0.6.26 (2020-04-29)

add normalize quality for attack and defense properties (#624)


server.post() req.body undefined

a question is
post jason
{"name":"kuku"}
server.post('/post', function (req, res, next) {
console.log(req.body.name)   //undefined
})

A quick fix for that would be to install https://github.com/expressjs/body-parser
server.use(bodyParser)
server.post('/post', function (req, res, next) {
  console.log(req.body.name)
})

thx.

does koa-body-parser not support JSON body as post?


Max background jobs

What have you changed? (mandatory)
raftdb support modify max_background_jobs
What are the type of the changes? (mandatory)
Improvement
How has this PR been tested? (mandatory)
test case
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
No
Does this PR affect tidb-ansible update? (mandatory)
No

Also remember to modify tidb-ansible :P

Please add it to config-template.toml.
config-template.toml already has this option

LGTM.


Incorrect masks used in mi_bitmap_is_claimedx_across

In mi_bitmap_is_claimedx_across, the middle fields and the post field all compare the field contents against pre_mask. Compared to the preceding functions, it looks like these should be using mid_mask and post_mask, respectively.
I can’t say if this has caused any issues; I've just been reading the code to understand how the atomic operations work.

OMG! That is a terrible bug :(  -- I pushed a fix and will push out a new mimalloc release this week.
It turns out to be relatively benign as one would only observe it when (manually) reserving a huge arena (over 2GiB) and allocating a large allocations across the block boundaries. However,  for the last few weeks I have been looking into a service that mysteriously leaks very slowly memory over weeks and I now think this bug may be the culprit. fingers crossed.
Thanks so much for spotting this! -- embarrassing error; I am now going over the code in detail again and see if there are other problems as well.


Add support for creating cluster with a load balancer / fixed registration address

As described in RKE2 Docs
https://docs.rke2.io/install/ha
Add capability to create cluster with a fixed address

@Eric-Domeier - That functionality already exists:
https://github.com/rancherfederal/rke2-ansible/blob/main/roles/rke2_server/tasks/other_servers.yml#L27
https://github.com/rancherfederal/rke2-ansible/blob/main/roles/rke2_agent/tasks/main.yml#L34
Will that accomplish what you are looking for?

@Eric-Domeier - That functionality already exists:
https://github.com/rancherfederal/rke2-ansible/blob/main/roles/rke2_server/tasks/other_servers.yml#L27 https://github.com/rancherfederal/rke2-ansible/blob/main/roles/rke2_agent/tasks/main.yml#L34
Will that accomplish what you are looking for?

@aleiner Thanks for your reply.
The kubernetes_api_server_host var appears to be set to the first server in the hosts file in server group
https://github.com/rancherfederal/rke2-ansible/blob/95605817d28dcbbcd6419e3fdc1abc60cfee7a55/roles/rke2_agent/defaults/main.yml#L2
This does not achieve the HA setup described here: https://docs.rke2.io/install/ha
my changes implement the ability to specify fixed_registration_address variable which should be a valid DNS/IP to a configured load balancer described in the above docs. When defined it will use the fixed_registration_address variable on all servers after the first server, and then change the first server to point to the load balancer once the additional control plane nodes are up and running.
If the fixed_registration_address is not defined, it will continue to use the first server.

kubernetes_api_server_host is a variable that can be passed in as a variable (all.yaml). If left unset, it defaults to the first server.
I use this to setup KubeVIP as a loadbalancer for the control plane.

@aleiner
Ahhh - that is a good point I did not think about.
I will remove those changes

Please test it to make sure it works for your use case. You might be doing something we haven't covered yet.

@aleiner Sorry for the late reply.
I tested with your suggestion of using the kubernetes_api_server_host var in group vars and it was successful, Will push an updated PR and will close this issue


remove pyjq requirement and make pip installable

@0xdabbad00
resolves: #31, #32
Reason for change(s)
Being dependent on the pyjq library makes the setup/usage of cloudtracker a bit clunky and not platform-independent. This is because pyjq itself has core dependencies that must compiled on the target platform, which requires extra tooling such as autoconf, automake, libtool, etc. (See issue #31)
The main reason for this change is to enable #32 - making cloudtracker installable via pip.
Changes
Given that pyjq is only used a handful of times, and in a fairly simplistic fashion, I have migrated cloudtracker to use jmespath, which allows for similar functionality.
Adding setup.py and setup.cfg to enable installing via setuptools/pip.

Updating README.md to include information on new installation flow.
Adding ability to run unit tests with nose via python setup.py test
Removing now unnecessary unit test shell script
Removing needs for Makefile for supporting elasticsearch

The default install will not include elasticsearch support
Support for elasticsearch will be included (on merge) by installing via:

pip install git+https://github.com/duo-labs/cloudtracker.git#egg=cloudtracker[es6] (or [es1])

Updating elasticsearch docs to include note on this.

Moving cli code to within package to enable proper packaging

Adding entry point for console script that will expose a cloudtracker executable to be used instead of using python cloudtracker.py
Updating README.md to reflect changes and to note new executable.
Updating some argparse logic to improve UX and reduce extra user-defined logic for validation/file reading.

Using the setuptools feature of package_data to include aws_api_list.txt and cloudtrail_supported_actions.txt files

As a best practice, dependent data should be packaged with the installed package.
The text data files needed now live in cloudtracker/data and can be accessed using the pkg_resources package.

Testing
Updating some invalid unit tests.
Installed locally via pip install git+file:///path/to/repos/cloudtracker@ryandeivert-make-pip-installable
and with elasticsearch support via:
pip install -e git+file:///Users/ryandeivert/repos/cloudtracker@ryandeivert-make-pip-installable[es1]
Tested commands with account data with success.

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

@0xdabbad00 just pushed a commit to fix the typo

thanks scott! I tagged this issue wrong but this should also resolve #32 :)

I'm leaving that issue open until I actually make this pip installable (ie. pip install cloudtracker without needing a URL).  I'm digging into that more now.


README wrong guide

it seems that the command "go get github.com/revel/samples/..." should be used instead of  command "go get github.com/revel/samples" to get all the samples.

"go get github.com/revel/samples/..." that command gives errors

"git clone https://github.com/revel/samples.git $GOPATH/src/github.com/revel/samples" this works

$ go get github.com/revel/samples
package github.com/revel/samples
	imports github.com/revel/samples
	imports github.com/revel/samples: no buildable Go source files in /Users/brenden/.gvm/pkgsets/go1.4/global/src/github.com/revel/samples

We could add a main.go to fix this issue or you can do as @DavidHunter mentions OR you could go get each sample on its own.
If you have more questions that don't involve bugs in Revel's source code, try our mailing list of StackOverflow.com.
Thanks!

@DavidHunter explained in IRC that we should probably change the readme in this repo to avoid that error, but go get still checks out the entire samples repo even though it shows that code.

Fixed :)

^_^


[bug]: v3 ESRGAN models not detected during install and model scan from third party directory.

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Windows
GPU
cuda
VRAM
8GB
What version did you experience this issue on?
3.0.0
What happened?
When performing a model scan from the CLI or running the reinitialize i notice that when it scans my a1111 model folder, it seems to detect the standard models fine, and even my loras... however when it hits the ESRGAN models it appears the system doesn't support them and ignores them...
Screenshots
[2023-07-21 19:04:32,709]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\body_pose_model.pth
[2023-07-21 19:04:36,772]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\BLIP\model_base_caption_capfilt_large.pth
[2023-07-21 19:04:39,029]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\Codeformer\codeformer-v0.1.0.pth
[2023-07-21 19:04:39,218]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\1x-ITF-SkinDiffDetail-Lite-v1.pth
[2023-07-21 19:04:39,944]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\4x-UltraSharp.pth
[2023-07-21 19:04:41,090]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\4x_foolhardy_Remacri.pth
[2023-07-21 19:04:41,530]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\4x_NMKD-Superscale-SP_178000_G.pth
[2023-07-21 19:04:42,773]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\4x_RealisticRescaler_100000_G.pth
[2023-07-21 19:04:42,835]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\realesr-general-wdn-x4v3.pth
[2023-07-21 19:04:42,882]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\realesr-general-x4v3.pth
[2023-07-21 19:04:43,496]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\RealESRGAN_x4plus.pth
[2023-07-21 19:04:43,921]::[InvokeAI]::WARNING --> Unable to determine model type for d:\stable-diffusion-webui\models\ESRGAN\TGHQFace8x_500k.pth
Additional context
No response
Contact Details
No response

This is not a bug, the functionality is not yet implemented. We opted to get the base upscaling feature working ASAP, and add custom model support in the future. See #3743 for the enhancement. I'm closing this as duplicate.


Fix build for m1

openssl is installed in different location for macbook with m1, I added build constraints to fix this

sorry, I clicked the wrong button and approved it, it's not my repo.


add functions related to survival analysis

PR Checklist

[ ] This comment contains a description of changes (with reason)
[ ] Referenced issue is linked
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] Documentation in docs is updated

Description of changes

Added ols.py in ehrapy.tools, including ep.tl.ols and ep.tl.glm, and these two functions internally use statsmodels to create OLS/GLM model from a formula and AnnData.
Added sa_plot.py in ehrapy.plot, including ep.pl.ols_plot and  ep.pl.kmf_plot.
Added relevant documentation including code examples.
Added functions into docs/usage/usage.md.

Technical details

Added lifelines package to perform survival analysis
Add In-line Ignoring Errors to flake8.
In ehrapy/tools/sa/ols.py, Numpy is implicitly used. So line 'import numpy as np' has been ignored.

Additional context

General comment first. This is really good work and you've learned quickly. Well done!

We are currently from lifelines import KaplanMeierFitter -> would it make sense to offer ep.tl.kmf? You've already implemented a ep.pl.kmf and it would fit the design philosophy that we are after very well.
See my figsize comment. I would try to handle it as I suggested in one of the comments for all the plots.
Should the plots maybe also return the axes etc? Maybe look at how scanpy does it. Would be nice to stay consistent

👍

Good suggestion!
As for 1:
I also think about it. I already added ep.pl.kmf in to ehrapy but in the notebook it still needs to setup a KaplanMeierFitter object from lifelines and fit it first and then pass into ep.pl.kmf. Adding ep.tl.kmf would be much more convenient for users.
As for 2:
Already changed.
As for 3:
I will change accordingly.

Ahhhhhoohhh I haven't pushed my latest changes to this branch yet

Ahhhhhoohhh I haven't pushed my latest changes to this branch yet

Ah whops haha. Just open a new PR :))
Sorry

Ahhhhhoohhh I haven't pushed my latest changes to this branch yet

Ah whops haha. Just open a new PR :)) Sorry

No worries, the nox is still running. hahhah


TS compilation since Async feature

Hello @pshihn, thank you for this great contribution 👯 👏
Since version 2.2.0, which introduce async methods, I'm not being able to build the library inside angular 6 app.
I do not provide OS and versions information because the issue reside on types of RoughCanvasAsync (promise of...) not matching the implemented class RoughCanvas.
Here you could see an evidence

I have issues with the typing too. I wanted to test the library in a react + typescript environment and got this behavior:

@Ricard  I have cleaned up the interfaces: https://github.com/pshihn/rough/pull/84 should fix this

Available in v2.2.5

@pshihn you can see the configuration in the sandbox, there's nothing special there and it works for other libraries so I have no idea where it comes from. I thought this was related to this issue but if you want I can create a new one.

@dispix  When I go to your url https://xoz411z0mq.codesandbox.io/ it loads fine and draws a box
Also, the error you're getting is that canvas is not defined in rough, where as type types clearly has the definition: https://github.com/pshihn/rough/blob/master/bin/rough.d.ts
My theory is that in the sandbox environment, either typings file is not being picked up, or when you import, it is importing the wrong type of module. There's a UMD version in the dist folder and there's the es6 module in the bin folder.

It seems like codesandbox.io is not paying attention to the types property in package.json.

Alright.. A couple of things:
Since module being loading typescript is not the commonjs module,  https://www.typescriptlang.org/docs/handbook/modules.html says that import should be like this:
import rough from 'roughjs';

But it doesn't work properly on codesandbox.
Here's the working example based on your code that works on stackblitz:
https://stackblitz.com/edit/react-ts-mofibf
Hope this helps, @dispix


Implement LaVIN/BLIP2

Feature request
We would like to implement https://github.com/luogen1996/LaVIN#demo and/or https://huggingface.co/docs/transformers/main/model_doc/blip-2as a ReplayStrategyMixin.
In particular we would like to understand how this compares to huggingface transformers.agent : https://github.com/OpenAdaptAI/OpenAdapt/pull/192
Motivation
Answering questions about screenshots

@abrichr is this still up for grab or already taken ?

@LaPetiteSouris I'm currently working on this (PR #412) but if you want to collaborate I would be down!

@LaPetiteSouris I'm currently working on this (PR #412) but if you want to collaborate I would be down!

Thanks @angelala3252 No I'm good on other topic. Just snicking around to see available topics. Please go ahead and thanks for the tips.

hi @angelala3252 I'll collab on this, seems interesting


Fix "ImportError: No module named weakref" in Python 2.7

close #2961

I think it's reasonable to squash the commits.

Could you please also add backports.shutil_get_terminal_size in the same manner to also fix #2950 ?

@Jamim Thanks for the notice, but I think I did something wrong with Git.

Close in favor of #2967.

@greyli I believe this article might be helpful:
Git Tools - Rewriting History

Git captures all activity in the reflog by default so it should be recoverable just by the original hash. Ping me on slack if you have trouble

@Jamim @immerrr @techalchemy Thanks for the tips!


If filenames are too long, sha1 them and hope for no collisions

Should address #50

MD5 is generally a faster hash algorithm than SHA1. That speed difference probably isn't relevant here given such short input strings. Is there a specific reason you chose SHA1 though?

The intention was that SHA1 is much less likely to have a collision. Specifically because I'm not handling collisions in any way and having one would result in very bad behavior. That's the thought anyhow, I'd love it if there was a better solution.

Back to the drawing board on this one, the filenames need to be able to be transformed back into keys :(


Consider loosening your Poison requirements

Proposal
Currently, in mix.exs, you have:
{:poison, "~> 2.1"}

Consider loosening the requirement to also allow version 1.5.x series
{:poison, "~> 1.5 or ~> 2.0"}

Why?
After a casual search for Poison in the swoosh codebase:
https://github.com/swoosh/swoosh/search?utf8=✓&q=Poison
I noticed that swoosh uses neither the defimpl feature of the 1.5.x poison nor the @derive Poison.Encoder of the 2.x series to define it's encoding rules, preferring instead to leave the dirty work to Poison itself.
This means swoosh can probably support both versions of poison, which means, for us pleb end-users, if you could loosen your poison requirement, it would make things a lot easier as a lot of our older libraries depend on the 1.x series of poison.

Hey @foxnewsnetwork thank you ever so much for such a detailed piece of feedback, it is greatly appreciated.  Something I have been wondering about was whether we should actually have Poison as a dependancy at all, or instead allow users to specify the JSON library they would prefer to use.
One way or another we'll definitely loosen the requirement, I'll leave this open until @stevedomin drops some input on the thread!

Thanks for the report @foxnewsnetwork, we can definitely lower the requirement

Fixed in master (https://github.com/swoosh/swoosh/commit/76283910d85714866bd0c776e432284cc1ec5e36)
Thanks again for reporting this issue, I think a lot of people will probably run into it!

No specific forts on dropping the dep altogether?

My feeling is that since the result of encoding/decoding isn't exposed in any way to the end user of the library it doesn't really matter which one we use for now.


Optional Pod Labels in Helm Chart

The Helm Chart Presently as the option to add additional pod annotations, however additional pod labels would be useful to enable workload id to access other Azure Resources.
Also the ability to add extra sidecar containers could be useful

Hello @muyisbox,

The Helm Chart Presently as the option to add additional pod annotations, however additional pod labels would be useful to enable workload id to access other Azure Resources

The Helm chart has the annotations configuration, allowing to configure the Pod Annotations (in spec.template.metadata.annotations).
Is it solving your need?

Also the ability to add extra sidecar containers could be useful

Version 6.6.0 is out with this feature (commit b439cd8ff3f96b225dd0deb8defefeef6747b1d1)! A field sidecarContainers is now available in Helm. Can you test? :)

I'm clothing this issue as there is no update. Don't hesitate to reopen and comment.


Turbo crashes when running with tui as ui on Windows

Verify canary release

[X] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue
https://github.com/espenja/turbo-watch-tui-failure
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Windows
Which canary version will you have in your reproduction?
turbo 2.0.10-canary.2
Describe the Bug
When changing "ui" to "tui" in turbo.json, turbo/pnpm crashes with an error code (-1073741510) when running turbo lint or turbo watch lint.
Output after running command:
~\source\github\espenja\turbo-watch-tui-failure on  main [+] via  v20.11.0
λ turbo lint
turbo 2.0.10-canary.2

• Packages in scope: app-a, app-b, pkg-a, pkg-b, tooling-config
• Running lint in 5 packages
• Remote caching disabled
┌ app-b#lint > cache miss, executing 4e15d3950b9d96be
│
└────>
┌ pkg-a#lint > cache miss, executing 53c24e105a1c2c93
│
│ command finished with error: command (C:\Users\username\source\github\espenja\turbo-watch-tui-failure\packages\pkg-a) C:\Users\username\App
│ Data\Local\pnpm\pnpm.exe run lint exited (-1073741510)
└────>
┌ app-a#lint > cache miss, executing 9806529b9f24373b
│
│ command finished with error: command (C:\Users\username\source\github\espenja\turbo-watch-tui-failure\apps\apps-a) C:\Users\username\AppDat
│ a\Local\pnpm\pnpm.exe run lint exited (-1073741510)
└────>
  × internal errors encountered: unable to determine why task exited

~\source\github\espenja\turbo-watch-tui-failure on  main via  v20.11.0 took 2s

The only change necessary to reproduce this error after running npx create-turbo@canary -e with-shell-command is to change "ui" to "tui" in turbo.json
Expected Behavior
Turbo runs the task without error
To Reproduce

Run npx create-turbo@canary -e with-shell-command
Add "ui": "tui" in turbo.json
Run turbo lint task with turbo lint

Additional context
I tested my reproduction against different canary releases, and the first one that introduced the bug was<EMAIL_ADDRESS>since reverting to<EMAIL_ADDRESS>works.

Could you test with 2.0.10-canary.4 and see if the issue is resolved?

2.0.10-canary.4 no longer crashes the run, and seems to be working :)

Closing as fixed in 2.0.10


Move the PoolThreadCache finalizer to a separate object

Motivation:
PoolThreadCache objects are created even when they are not meant to pool anything.
In such a case, there is no point in giving them a finalizer() method.
Modification:
The finalizer method is moved to a separate object, which is conditionally referenced from the PoolThreadCache.
Non-pooling PoolThreadCache objects will not create their FreeOnFinalize objects.
This is an alternative implementation to #13408, which is also reverted by this PR.
Additionally, #13408 added a condition to create non-caching PoolThreadCache when the size of the small and normal caches were zero.
However, it turned out that even when these were requested to be zero, a single-element cache would be created for them.
This PR also reverts the logic to the old behaviour with the single-element cache for small and normal sizes.
Result:
We avoid creating finalizable objects when we don't pool.

@franz1981 @ejona86 I think this should give us the new behavior with the old performance.

FYI @ejona86

Oh, you noticed and moved fast. Excellent! I was going to dig a bit more to figure out how it caused the regression before I filed an issue, because it looked pretty 1:1 with the old behavior to me.
I'll re-run the benchmarks with this and see how things fair.

I've confirmed this fixes the performance regression. From grpc's local benchmark (see also https://github.com/grpc/grpc-java/issues/10401):
Benchmark                                           (direct)  (transport)   Mode  Cnt       Score      Error  Units
4.1.94+425aa8a+23da118:
TransportBenchmark.streamingCallsMessageThroughput     false        NETTY  thrpt   10  589712.277 ± 27543.170  ops/s
4.1.94+425aa8a+23da118+dc16c581:
TransportBenchmark.streamingCallsMessageThroughput     false        NETTY  thrpt   10  655486.821 ± 6173.681  ops/s


Fix webservice tests

Please wait with merge until BES_MASTER_WS_TEST job will be green.

Both Jenkins and Travis are green, it is ready for a review.


Error on inferencing KeyError: 'proposals'

Checklist

I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
When I invoke command inference_detector i got error KeyError: 'proposals'
Reproduction
from mmdet.apis import init_detector, inference_detector, show_result_pyplot
import mmcv

config_file = 'configs/fast_mask_rcnn_r50_fpn_1x.py'
checkpoint_file = 'checkpoints/fast_mask_rcnn_r50_fpn_1x_20181010-e030a38f.pth'

# build the model from a config file and a checkpoint file
model = init_detector(config_file, checkpoint_file, device='cuda:0')

img = mmcv.imread("examples/guys.jpg")

result = inference_detector(model, img)

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment infomation and paste it here.

sys.platform: linux
Python: 3.7.7 (default, Mar 26 2020, 15:48:22) [GCC 7.3.0]
CUDA available: True
CUDA_HOME: /usr/local/cuda-10.2
NVCC: Cuda compilation tools, release 10.2, V10.2.89
GPU 0: GeForce RTX 2060 SUPER
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.4.0
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CUDA Runtime 10.1
  - NVCC architecture flags: -gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_50,code=compute_50
  - CuDNN 7.6.5
  - Magma 2.5.0
  - Build settings: BLAS=MKL, BUILD_NAMEDTENSOR=OFF, BUILD_TYPE=Release, CXX_FLAGS=-fvisibility-inlines-hidden -std=c++11 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /opt/conda/conda-bld/pytorch_1584542718079/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -fdebug-prefix-map=/opt/conda/conda-bld/pytorch_1584542718079/work=/usr/local/src/conda/pytorch-1.4.0 -fdebug-prefix-map=/opt/conda/conda-bld/pytorch_1584542718079/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place=/usr/local/src/conda-prefix -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow, DISABLE_NUMA=1, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=1, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.5.0
OpenCV: 4.2.0
MMCV: 0.4.4
MMDetection: 1.1.0+7dbee18
MMDetection Compiler: GCC 7.5
MMDetection CUDA Compiler: 10.2

Error traceback
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-11-5bd3b85714dc> in <module>
----> 1 result = inference_detector(model, img)

~/mmdetection/mmdet/apis/inference.py in inference_detector(model, img)
     80     # prepare data
     81     data = dict(img=img)
---> 82     data = test_pipeline(data)
     83     data = scatter(collate([data], samples_per_gpu=1), [device])[0]
     84     # forward the model

~/mmdetection/mmdet/datasets/pipelines/compose.py in __call__(self, data)
     22     def __call__(self, data):
     23         for t in self.transforms:
---> 24             data = t(data)
     25             if data is None:
     26                 return None

~/mmdetection/mmdet/datasets/pipelines/loading.py in __call__(self, results)
    165
    166     def __call__(self, results):
--> 167         proposals = results['proposals']
    168         if proposals.shape[1] not in (4, 5):
    169             raise AssertionError(

KeyError: 'proposals'

For Fast R-CNN, you need proposals as inputs.

For Fast R-CNN, you need proposals as inputs.

I get the same error when I run the sample code at https://github.com/open-mmlab/mmdetection/blob/master/docs/GETTING_STARTED.md#high-level-apis-for-testing-images

@sxwxs Were you running exactly the same code snippet provided in the documentation?

I'm sorry. I realized that I used the wrong config file.

For Fast R-CNN, you need proposals as inputs.

How can I get the proposals? I found that the data config is dict(type='Collect', keys=['img', 'proposals', 'gt_bboxes', 'gt_labels']), instead of dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels']), used in  FasterRCNN


Make api_url config parameter overridable

Something like npm config set railway-stations-frontend:apiurl http://<IP_ADDRESS>:8080/ doesn't work anymore.

Implemented


feat: Exposed channels in NetworkedTransform

The channel to be used to send data for NetworkedTransforms can now be
specified. If left unspecified, the default channel is used.

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


Build from source python 3.12 fails

Expected behaviour
I tried to build the tag 80 in python 3.12, but build fails
Write here how did you expect the library to function.
correct build from source
Actual behaviour
Write here what went wrong.
install of some dependencies (i.e. numpy) fail with this error:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
the dependencies versions of numpy and setuptools are outdated and broken in python 3.12. Is it possible to use latest versions of those packages?
Steps to reproduce

example code: build from source as  tutorial in main page
operating system: Ubuntu 22.04
architecture (e.g. x86): x86
opencv-python version: 80

Issue submission checklist

[x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

[x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

[x] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

[x] I'm using the latest version of opencv-python

https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean

I already tried that and it didn't work.

https://github.com/opencv/opencv-python/pull/992/

I'm also getting the same error with the latest merged updates:
Processing /home/aurelien/Projects/GitHub/opencv-python
  Running command pip subprocess to install build dependencies
  Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.10" and platform_system != "Darwin"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Darwin"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.11"' don't match your environment
  Collecting cmake>=3.1
    Using cached cmake-3.29.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.1 kB)
  Collecting numpy>=1.26.4
    Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
  Collecting pip
    Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB)
  Collecting scikit-build>=0.14.0
    Using cached scikit_build-0.17.6-py3-none-any.whl.metadata (14 kB)
  Collecting setuptools==59.2.0
    Using cached setuptools-59.2.0-py3-none-any.whl.metadata (5.0 kB)
  Collecting distro (from scikit-build>=0.14.0)
    Using cached distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
  Collecting packaging (from scikit-build>=0.14.0)
    Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
  Collecting wheel>=0.32.0 (from scikit-build>=0.14.0)
    Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
  Using cached setuptools-59.2.0-py3-none-any.whl (952 kB)
  Using cached cmake-3.29.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB)
  Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.0 MB)
  Using cached pip-24.0-py3-none-any.whl (2.1 MB)
  Using cached scikit_build-0.17.6-py3-none-any.whl (84 kB)
  Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
  Using cached distro-1.9.0-py3-none-any.whl (20 kB)
  Using cached packaging-24.1-py3-none-any.whl (53 kB)
  Installing collected packages: wheel, setuptools, pip, packaging, numpy, distro, cmake, scikit-build
  Successfully installed cmake-3.29.5 distro-1.9.0 numpy-1.26.4 packaging-24.1 pip-24.0 scikit-build-0.17.6 setuptools-59.2.0 wheel-0.43.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Traceback (most recent call last):
    File "/home/aurelien/Projects/GitHub/opencv-python/.venv/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/aurelien/Projects/GitHub/opencv-python/.venv/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/aurelien/Projects/GitHub/opencv-python/.venv/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 112, in get_requires_for_build_wheel
      backend = _build_backend()
                ^^^^^^^^^^^^^^^^
    File "/home/aurelien/Projects/GitHub/opencv-python/.venv/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
      obj = import_module(mod_path)
            ^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 995, in exec_module
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "/tmp/pip-build-env-who73wyv/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
      import setuptools.version
    File "/tmp/pip-build-env-who73wyv/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
      import pkg_resources
    File "/tmp/pip-build-env-who73wyv/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2172, in <module>
      register_finder(pkgutil.ImpImporter, find_on_path)
                      ^^^^^^^^^^^^^^^^^^^
  AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
  error: subprocess-exited-with-error

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

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/aurelien/Projects/GitHub/opencv-python/.venv/bin/python /home/aurelien/Projects/GitHub/opencv-python/.venv/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp35dh4ua_
  cwd: /home/aurelien/Projects/GitHub/opencv-python
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

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

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

Need to remove the ==59.2.0" from the "setuptools==59.2.0" https://github.com/opencv/opencv-python/blob/4.x/pyproject.toml#L16.

Thank you @zhanwenchen, I also encountered the same issue (even after following the StackOverflow answer above), and solved it the same way. I think the ==59.2.0 prevents pip from using the most up-to-date setuptools that has this API change addressed.
Is there a particular reason why there's such a strict requirement for setuptools? Can I make a PR to remove it (or change it to >=59.2.0)?


Thread safety

https://github.com/kokke/tiny-regex-c/blob/d3058f271f7a06ff298dff0a6a9a1e0753a5fa17/re.c#L111
Looks like its non thread safe (non-reentrant)

Hi @ogamespec and thanks for your comment :)
Your observation is totally correct: this code is not reentrant.
The code is targeted towards embedded and resource-constrained targets, where dynamic allocation is verboten and binary size matters.
Some of the forks of this project vastly expands functionality and I also believes thread-safety is implemented in some of them. If this is a requirement for your use case, I would advise you to check out some of the forks, in particular the one by @monolifed :)
An easy fix/hack would be to either 1) pass the memory from the caller, or 2) place a lock/mutex inside the compile function.

Resolved)


invoke only one  browser instance

By navigating within a single instance, performance is heavily increased

Thanks for adding this! I think this is a great improvement. I just tested it now and it's much, much faster!


rkt,stage0: validate OS/arch during run (take 2)

We also check during fetchSingleImage so we don't start downloading an image
we know is not supported.
Fixes #271
Take two. First take was #1472

lgtm

Thanks!


Add decodeOpenTypes test to test_rfc2986.py

Add a test with decodeOpenTypes=True to test_rfc2986.py

Thank you!


Same named icons are wrongly added

if you search for edit in "all symbol set" and try to add the pencil symbols, the ones that have the same name are wrongly added.

This will require prefix that is also relevant (and implemented) for the different styles of material design icons.

This is an Inkscape bug, not an open-symbols bug.
I've just reported it now, here:  https://gitlab.com/inkscape/inbox/-/issues/9887 (after having experienced it with my own sets). I'd suggest not fixing this here, but pushing for a fix in Inkscape.
It is to be expected that multiple symbol sets contain objects with the id 'heart' or whatever. And it's not on the symbol set makers to ensure that that does not occur in other symbol sets available somewhere on the internet.

Thanks. Others, like @bkyf please give that issue also a 👍


Demo broken

Mixed Content: The page at 'https://nashio.github.io/star-rating-svg/demo/' was loaded over HTTPS, but requested an insecure script 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'. This request has been blocked; the content must be served over HTTPS. nashio.github.io/:184 Uncaught ReferenceError: $ is not defined

Thanks!


[WIP] Merge erlangpl-ui into erlangpl

I've merged erlangpl-ui into ui folder within erlangpl repo. I don't know if subdirectory is good solution. I would rather merge it into root directory because we don't have any naming conflicts and it would simplify building, developing and probably other things. What do you think?
What should we do with old repo? Delete or keep it with deprecation note?

I've moved package.json to root directory to allow yarn command without switching directories. It also simplify make command. What do you think?

I think that's fine. I'd also keep ui in subdirectory, it'll make things a little bit cleaner. Thanks for taking care of that!

@arkgil @michalslaski what should we do with old UI repo?

We can make it private or delete it. We may also deprecate it for a little while, and delete it later.

Waiting for @michalslaski's review, and after that I think we can merge! 🎉

@Baransu I can review early next week,  but don't wait for it. Feel free to merge now, so that you can progress with new developments.

Awesome, going to merge later today 🎉🎊


Add the OIDC Authenticator endpoint to the spec file

Documentation
AC:

[ ] Clients can be authenticated with OIDC
[ ] There are integration tests for this endpoint

This issue has been partially resolved with this PR. However it has a special authenticate endpoint which still needs to be added.

This issue has been partially resolved with this PR. However it has a special authenticate endpoint which still needs to be added.


Add a zoom feature if possible on map view

Currently the map view does not have a zoom feature (+ and -). It is an important functionality since it is not very clear for the users that they can zoom into the map.

Fixed!


bug: scalar coercing exceptions don't use typed graphql error

Expected behavior
TypedGraphQLError is used consistently across all error surfaces.
Actual behavior
When using custom scalar, coercing exceptions (e.g CoercingParseLiteralException) don't use the TypedGraphQLError and provide very bare-bones errors.
This was improved in 8.6.0 for some validation errors, but custom scalar coercing was missed.
Steps to reproduce
Note: A test case would be highly appreciated, but we understand that's not always possible

Thanks for flagging this. We'll fix this behavior in the next release or two .

@srinivasankavitha is this issue open for contribution?

Yes, this has not been addressed yet.

Hello @srinivasankavitha,
I tried to create a project to understand this issue.
I created a query returning a custom scaler. While returning a value for the query, the serialize() method of Coercing interface from my custom implementation was invoked. When I passed a value that would throw CoercingSerializeException.  The response for such a query was:
{
  "errors": [
    {
      "message": "Can't serialize value (/ip) : Invalid IPv4 address",
      "path": [
        "ip"
      ],
      "extensions": {
        "errorType": "UNAVAILABLE",
        "errorDetail": "SERVICE_ERROR"
      }
    }
  ],
  "data": {
    "ip": null
  }
}

I did not see any logs in my console telling me that CoercingSerializeException has happened.
Could you tell me if the above description successfully reproduces this issue?
Also, could share what should be the expected response here and how is it related to TypedGraphQLError class?

@Meemaw, could you please the steps to reproduce this issue?

@Meemaw could you please check the way I have tried to reproduce this issue? Also, could you tell me what would be the expected behaviour here?

@mrvaruntandon - I believe you have the correct repro of the issue. The ask is to fill out the errorType/errorDetail to reflect something closer to the exception rather than our generic UNAVAILABLE error. The logic to handle translating graphql-java error to a TypedGraphQlError is here: https://github.com/Netflix/dgs-framework/blob/master/graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/GraphQLJavaErrorInstrumentation.kt#L29, so we just need to handle the CoercingSerializeException here.

Hey @srinivasankavitha,
Thank you for your guidance! I have tried to resolve this issue via https://github.com/Netflix/dgs-framework/pull/1970. Could you please take a look and provide your comments.
Thanks in advance!


WV-480 [TEAM REVIEW] Add a “Statistics” checkbox on the Office Contests

In the templates/office_list.html create a checkbox name="show_statistics", in the office/views_admin.py add template value and conditional, if checkbox is true show # of candidates and public positions.

Great pull request @ilonagog! 👍


Mapping display names

Hi :)
So far this library has worked amazing btw. My current question is how do i get a display name for the buttons per controller. For example, on PS4 the A button is really the X button, and the Y button is actually the Triangle button.
I'm wanting to display these names so user's can see what keys map to what in the pause screen. Currently I'm about to write my own mini library of a few key mapping display names.

There's no more information available than the internal button name, so if you connected a PS4 controller you should be aware that games will ask you to press Y and not the triangle button.
There are also some Nintendo-like controllers where A and B and X and Y are swapped.
But of course I am interested in your solution you already come up with.

For sure, I imagine for your implementation it would involve expanding the controller database to have a map from button to display name for each controller entry. That may be a JamePad issue though, so forgive me if i'm posting in the wrong place. :)
Since my game has a controller class that wraps your implementation and decorates it with other useful functions to my game, I added a getDisplayName(control: GameControl) function so that I could show what the keys are in places like pause menus and dialogues. (Obviously telling a user to pressY if they are using a PlayStation controller would not be a good experience).
My down and dirty solution which is FAR from complete was to just satisfy a few controllers and call it a day, but I recognized that an update to the controller database with this meta information would probably be best.
My dirty solution was to just do something like this:
    private fun buildDisplayNames(controller: AdvancedController): MutableMap<Int, String> {
        val displayNames: MutableMap<Int, String> = HashMap()

        val name = if (controller.name != null) {
            controller.name.trim().toLowerCase()
        } else {
            ""
        }

        if (name.contains("xbox") || name.contains("x-box")) {
            displayNames[controller.mapping.buttonX] = "Square"
            displayNames[controller.mapping.buttonY] = "Triangle"
            displayNames[controller.mapping.buttonA] = "X"
            displayNames[controller.mapping.buttonB] = "O"
            displayNames[controller.mapping.buttonL1] = "L BUMPER"
            displayNames[controller.mapping.buttonR1] = "R BUMPER"
            displayNames[controller.mapping.buttonL2] = "L TRIGGER"
            displayNames[controller.mapping.buttonR2] = "R TRIGGER"
            displayNames[controller.mapping.buttonBack] = "BACK"
            displayNames[controller.mapping.buttonStart] = "START"
        }
        else if (name.contains("playstation") || name.contains("ps4") || name.contains("ps3")) {
            displayNames[controller.mapping.buttonX] = "Square"
            displayNames[controller.mapping.buttonY] = "Triangle"
            displayNames[controller.mapping.buttonA] = "X"
            displayNames[controller.mapping.buttonB] = "O"
            displayNames[controller.mapping.buttonL1] = "L BUMPER"
            displayNames[controller.mapping.buttonR1] = "R BUMPER"
            displayNames[controller.mapping.buttonL2] = "L TRIGGER"
            displayNames[controller.mapping.buttonR2] = "R TRIGGER"
            displayNames[controller.mapping.buttonBack] = "SHARE"
            displayNames[controller.mapping.buttonStart] = "OPTIONS"
        }
        else if (name.contains("nintendo") || name == "pro controller") {
            displayNames[controller.mapping.buttonX] = "Y"
            displayNames[controller.mapping.buttonY] = "X"
            displayNames[controller.mapping.buttonA] = "B"
            displayNames[controller.mapping.buttonB] = "A"
            displayNames[controller.mapping.buttonL1] = "L BUMPER"
            displayNames[controller.mapping.buttonR1] = "R BUMPER"
            displayNames[controller.mapping.buttonL2] = "L TRIGGER"
            displayNames[controller.mapping.buttonR2] = "R TRIGGER"
            displayNames[controller.mapping.buttonBack] = "MINUS"
            displayNames[controller.mapping.buttonStart] = "PLUS"
        }
        else if (name.contains("logitech")) {
            displayNames[controller.mapping.buttonX] = "X"
            displayNames[controller.mapping.buttonY] = "Y"
            displayNames[controller.mapping.buttonA] = "A"
            displayNames[controller.mapping.buttonB] = "B"
            displayNames[controller.mapping.buttonL1] = "L BUMPER"
            displayNames[controller.mapping.buttonR1] = "R BUMPER"
            displayNames[controller.mapping.buttonL2] = "L TRIGGER"
            displayNames[controller.mapping.buttonR2] = "R TRIGGER"
            displayNames[controller.mapping.buttonBack] = "BACK"
            displayNames[controller.mapping.buttonStart] = "START"
        }
        else { // tuck head and pray these work :)
            displayNames[controller.mapping.buttonX] = "X"
            displayNames[controller.mapping.buttonY] = "Y"
            displayNames[controller.mapping.buttonA] = "A"
            displayNames[controller.mapping.buttonB] = "B"
            displayNames[controller.mapping.buttonL1] = "L BUMPER"
            displayNames[controller.mapping.buttonR1] = "R BUMPER"
            displayNames[controller.mapping.buttonL2] = "L TRIGGER"
            displayNames[controller.mapping.buttonR2] = "R TRIGGER"
            displayNames[controller.mapping.buttonBack] = "SELECT"
            displayNames[controller.mapping.buttonStart] = "START"
        }

        return displayNames
    }

It's not even Jamepad territory, the controller db is SDL's territory (where the Jamepad's native implementation is based on). So best approach is to suggest the change to the SDL framework's maintainers, then Jamepad could adopt that and we could use it. But we are talking about years here. :)

@MrStahlfelge got it, thanks! Upon posting this I realized it's going to likely fall to a lower level library. Was not aware it went all the way back to SDL's territory. I'll explore creating an issue for it. :)


about move command

please tell me
before player.teleport(X,Y,Z) or player.printPosition() what is it now thk.

I'd like to know this as well. I'd like a full documentation of all commands that are currently enterable with this new lua console.

I'd like to know this as well. I'd like a full documentation of all commands that are currently enterable with this new lua console.

i never used the console, but the pc gamer made an article with some of the game commands.... how a said, i had never used it, so, not sure if it works, fell free to check it out.
https://www.pcgamer.com/cyberpunk-2077-cheats-pc/

Those worked for the old CyberConsole mod but don't work here


Email list contributors about facility claims

Overview

email list contributors when a facility claim is approved
email list contributors when an approved facility claim's profile
details have been updated
update tests to check for facility claim emails to contributors

Connects #578
Connects #577
Testing Instructions

serve this branch with the default set of fixtures
sign in as<EMAIL_ADDRESS>and claim a facility
sign in as a superuser and approve the facility claim
verify that you see email/s to the facility list contributors for a facility that has been claimed
sign back in as<EMAIL_ADDRESS>update the claimed facility profile and save, then verify that you see email/s to the facility list contributors for the facility that has had its claim updated

Checklist

[x] fixup! commits have been squashed
[x] CI passes after rebase
[x] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

Looking at this now.

Looking at this now.

There is a typo in the Rollbar exception reporting

Oops, thanks for catching that! I fixed this in af700d945b6925e826d843cc55e09951562496a4

Thanks for all your help with this! I'm going to squash and then merge.