KILL CONNECTION doesn't work

Gitbase:
MySQL [(none)]> select version();
+--------------------+
| VERSION()          |
+--------------------+
| 8.0.11-v0.20.0-rc1 |
+--------------------+
1 row in set (0.01 sec)

MySQL [(none)]> select connection_id();
+-----------------+
| connection_id() |
+-----------------+
|               1 |
+-----------------+
1 row in set (0.00 sec)

MySQL [(none)]> show processlist;
+------+------+-----------------+---------+---------+------+---------+------------------+
| Id   | User | Host            | db      | Command | Time | State   | Info             |
+------+------+-----------------+---------+---------+------+---------+------------------+
|    8 | root | <IP_ADDRESS>:52482 | gitbase | query   |    0 | running | show processlist |
+------+------+-----------------+---------+---------+------+---------+------------------+
1 row in set (0.01 sec)

MySQL [(none)]> kill connection 1;
ERROR 1105 (HY000): unknown error: Connection not found:
MySQL [(none)]> select 1;
+------+
| 1    |
+------+
|    1 |
+------+
1 row in set (0.01 sec)

MySQL [(none)]>

MySQL:
mysql> select version();
+-----------+
| version() |
+-----------+
| 8.0.15    |
+-----------+
1 row in set (0.00 sec)

mysql> select connection_id();
+-----------------+
| connection_id() |
+-----------------+
|               8 |
+-----------------+
1 row in set (0.00 sec)

mysql> show processlist;
+----+-----------------+-----------+------+---------+------+------------------------+------------------+
| Id | User            | Host      | db   | Command | Time | State                  | Info             |
+----+-----------------+-----------+------+---------+------+------------------------+------------------+
|  4 | event_scheduler | localhost | NULL | Daemon  |  256 | Waiting on empty queue | NULL             |
|  8 | root            | localhost | NULL | Query   |    0 | starting               | show processlist |
+----+-----------------+-----------+------+---------+------+------------------------+------------------+
2 rows in set (0.00 sec)

mysql> kill connection 8;
ERROR 1317 (70100): Query execution was interrupted
mysql> select 1;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    9
Current database: *** NONE ***

+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)

mysql>

Also in gitbase ids in show processlist are increasing with each query instead of using current connection_id.

According to changelog this issue was actually fixed in v0.20.0-rc1. But as you can see above -> not really.

@smacker - we have some incompatibilities with MySQL implementation - see: https://github.com/src-d/go-mysql-server/pull/719

How to implement query cancelation then?
Current approach:

select connection_id(); -> store somewhere
run the query
in case of user canceled query -> kill connection from stored value in another connection.

With current incompatible implementation, I don't see how to implement cancelation at all.
We can't grep show processlist(), it can have 2 identical queries but only one should be canceled.

With MySQL you can only kill the latest query (based on connection_id).
With our implementation run query, show processlist (it's sorted by ID) and find a query to kill (the query with the greatest ID is the latest)

With MySQL you can only kill the latest query (based on connection_id)

not sure what you mean. As far as I know you can run only 1 query in 1 connection at the same time.
If you want to run 2 queries you need 2 connections.

With our implementation run query, show processlist (it's sorted by ID) and find a query to kill (the query with the greatest ID is the latest)

this discussion move to slack. Just for the record: we don't cancel the latest query but arbitrary one.

Confirmed that it is fixed on 0.20.0-rc4


Two more implications from equation 5

Two more simple implications from equation 5 that became obvious to me after reading #33

I suspect this is covered by #23, but will leave this open anyway :)


BHV-11870: Support moon.Item Icon Overlay

Adding moon.ItemOverlay kind to support common item pattern.
Item is composed of label and icons
Label should have marquee
Icons can be on the left/right side of label
Icons can be shown on focus and auto hide
We can avoid use of fittable inside of item by using this new kind.
DCO-1.1-Signed-Off-By: Kunmyon Choi<EMAIL_ADDRESS>

@KunmyonChoi  - this Jira has been closed. Should this PR be closed out also? Thanks.

Hi @lishammel , I don't think we need merge this in upkeep. Thanks for pointing this out. :)


Update CustomerImporter.php

the value for company was imported twice, also in the field department

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/PT-12009
Please use this issue to track the state of your pull request.

Thank you for you contribution.


Application can use  application as host

Resolves: #
HQ:
See:
Depends-on:
Change-type: major|minor|patch

Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

@balena-ci I self-certify!


To contribute to Re-brand OLS name and materials

Hello,
I would love to contribute to this project.

Hi@yo I would love to contribute to this project. Kindly approve

Hi is there anyone working on this issue?

Just linking to issue #19, which might have some useful thoughts on this topic.

Hello @Muyheeza-design ,an issue #19 is open already for OLS name rebranding.
@yochannah mentioned that everyone is welcome to contribute on the issue.

@latifatakin very true this issue has been opened for contributions before

Hi, I would love to contribute to this issue

Just closing this issue as you are all welcome to contribute to #19 😊


feat: closes #35; correct typos and add badge img

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.


Links to GitHub repo

Relative links from a readme to the GitHub repo (i.e. linking to ../../README.md#something) are not resolved correctly.
The may need to be rewritten through a postpack script or something.

Fixed in 2c701ac7a68b88ae5d75caf1f46ba894841ad32d


problems with shipping and payment

I need to migrate data from a two-store-magento 1.9 and it seems like the migration...

cant handle if one store is set to "free shipping" in magento
the payment methods are not all listed in the pre-mapping: I get the warning "Cannot find payment_method" in the migration-log. Than I cant open the orders in shopware. Console error: "transaction is null".

Is this known to you?

I created an issue for this topic as we will close the issues section under this project. https://issues.shopware.com/issues/MIG-208. We´ll have a look at it.


mure issues sub-command shows coverage

https://github.com/kitsuyui/mure/issues/96

Codecov Report
Base: 82.09% // Head: 80.04% // Decreases project coverage by -2.05% :warning:

Coverage data is based on head (b0afed2) compared to base (b907abc).
Patch coverage: 55.15% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   82.09%   80.04%   -2.05%
==========================================
  Files          16       17       +1
  Lines        1575     1749     +174
==========================================
+ Hits         1293     1400     +107
- Misses        282      349      +67

Flag
Coverage Δ

unittests
80.04% <55.15%> (-2.05%)
:arrow_down:

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

Impacted Files
Coverage Δ

src/app/issues.rs
0.00% <0.00%> (ø)

src/main.rs
85.38% <ø> (ø)

src/codecov.rs
81.67% <81.67%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


comfyui won't work inside swarmUI

Your question
CmfyUI is loading fine but when I try to use it inside SwarmUI from the tab Comfy Workflow it just doesn't load.
it's show some part of Comfy but I can't load a workflow or do anything.
It worked just fine yesterday.

ComfyUI log :

ComfyUI :

Logs
https://paste.denizenscript.com/View/126703
Other
No response

Current git commit marked as date 2024-08-17 02:41:29
Your swarm hasn't been updated in over a month, just go to Server->Update&Restart and it will likely resolve the issue


⚠ Bofrost.at has degraded performance

In b162c2f, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2273 ms

Resolved: Bofrost.at performance has improved in 9424eb3 after 6 minutes.


Fix: Background image quoted URLs converted to HTML entities during email export

Problem:

Background image quoted URLs are converted to HTML entities during email export, breaking functionality in older email clients.

closes: #442
Issue ticket number and link:

Ticket Number: [ 442 ]
Link: [ https://github.com/resend/react-email/issues/442 ]

Acceptance Criteria

[x]  Update the Font component to properly escape quotes in URLs and font names
[x] Add a new test case to verify the correct handling of quoted URLs and font names
[x] Ensure all existing tests pass

Hey, thanks for contributing.

breaking functionality in older email clients.

In what email clients does this break exactly? No one mentioned something specifically breaking in the original issue, they only mentioned that, at most, it seemed wrong to them. That being said, I do think this isn't an actual issue, just mostly a matter of taste, and something we cannot change optimally without swapping out react-dom for something else, (though I'm not 100% sure this would fix it either).

This doesn't even fix the original issue with background-image, it just changes something about Font and quotes?

Closing this as stale since it doesn't seem to be finished, nor does it seem to fix the original issue as it only copies over from #701


Bug - Latest OpenUPM version is 1.0.2

The package manager shows me that there's an update even though the "1.0.2" version was released a heck while ago

The problem is with the published versions, somehow 1.0.2 was published at some point
https://openupm.com/packages/com.wooshii.hierarchydecorator/?subPage=versions
You should probably contact the openupm maintainer to take down this version

I guess the 1.0.2 has been published at a very early point. Then you removed that Git tag, and reset the version from 0.x.x. As a result, the 1.0.2 stays as the "latest", and all other "previous" versions have been tagged as "patch".
Anyway, version 1.0.2 has been unpublished. The latest tag is pointed to 0.8.4.
<EMAIL_ADDRESS>| proprietary or unlicensed | versions: 6

HierarchyDecorator
HierarchyDecorator is an extension for the Unity Hierarchy enhancing it's utility.
keywords: hierarchy, editor

dist
.tarball: https://package.openupm.com/com.wooshii.hierarchydecorator/-/com.wooshii.hierarchydecorator-0.8.4.tgz
.shasum: c340c39106b886cccf6541eeeedb60d0befda793
.integrity: sha512-vmUeYX8j9w46CXqOkdNJapo0aM7fC5CaZ/OJZjnjQ9MtmvGwNbqHBLzGB4Xr96eLgFcodQpGTivO34cHD4vtgQ==

latest: 0.8.4

published at 2022-01-17T07:07:04.881Z

versions:
  0.7.1
  0.8.0
  0.8.1
  0.8.2
  0.8.3
  0.8.4

Thanks for bringing this to my attention Razen, I always appreciate your issue posts 👏
Thank you so much favoyang, and thank you for the quick response to this, my fault for being negligent in the past. Will make sure to keep on top in the future.


How is the SSD framework connected to the Mamba 2 architecture?

I didn't quite understand the connection between the SSD framework and the Mamba 2 architecture. Reading the article, I got the impression that the SSM block in Mamba 2, differently from Mamba 1, is a SSD, which is a kind of SSM analogous to structured masked attention. Is that really the case? If not, what is the connection between the SSD framework and Mamba 2? Is the SSM block in Mamba 1 also a SSD and you only wanted to show the connection to attention in the "Transformers are SSMs" article? Or is SSD a separate layer from the SSM and, in this case, how are they connected in Mamba 2? Summing it up, it would really help if you could clarify how exactly the SSD framework is connected to Mamba 2. Thanks in advance :)

Me too wandering that. It's seems that Mamba-2 is using a very structured A matrix in which there is only one constant to each head. Is that correct?


feat: Add --no-open-browser cli option

This option allows to inhibit creating new browser tab/window.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Can you please describe your use case for this? Is it just a matter of personal taste, or is opening a new tab not working in some way for you?

It's a mix of both.
It falls back to xdg-open at my local machine, so it opens new tab in default browser, which I use for personal stuff. However, I keep development stuff in another browsers. So when I start dev server, it's a nuisance to have another tab pop out. Sometimes I want to keep distractions out, so I close my default browser. Nonetheless, react-scripts open them back when I do npm start, which is kind of slow.
Another case is that sometimes I develop on remote virtual machine via. That machine doesn't have X installed at all. So, yes, opening a new tab doesn't work in some way for me.

Another case is that sometimes I develop on remote virtual machine via ssh. That machine doesn't have X installed at all.

What happens? Does opn fail? Hang?

Just noticed something strange: running react-scripts start created a bunch of
[some_hash].json.gzip in my project directory, but I don't think it's related to this issue.
Sometimes react-scripts process dies without any explanation/error. This is
happening in remote dev scenario. I'll investigate if this is related to opn.

json.gzip issue has been dealt with already, as far as I can see.
If you think that this PR introduced flag doesn't worth it (CONTRIBUTING.md says about minimizing flags), feel free to close the PR.

I think we may revisit this at some point, but not at this point. Rather than add ad-hoc flags, I would like to wait for more feature requests, and then perhaps consolidate them into some sort of preferences. Thanks for your time!


feature request: support for reading compressed / gzipped verilog files

It would be nice if Surelog was able to uncompress and read verilog files that had been gzipped.
If anything is needed from me to support this, please let me know.

Please submit a PR with the feature implemented.

@alaindargelas I'm not sure if I'm the right person for this, but I'd be happy to try, could you point me to where in the code this would need to be added? ie. where the files are opened and processed?


feat(Geometry/Manifold): state generalized Poincaré conjecture

What do you think about something like this:
def TopologicalPoincareConjecture (n : ℕ) : Prop :=
    ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [ChartedSpace ℝⁿ M],
    M ≃ₕ 𝕊ⁿ → Nonempty (M ≃ₜ 𝕊ⁿ)

def SmoothPoincareConjecture (n : ℕ) : Prop :=
    ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [ChartedSpace ℝⁿ M]
    [SmoothManifoldWithCorners (𝓡 n) M],
    M ≃ₕ 𝕊ⁿ → Nonempty (M ≃ₘ⟮𝓡 n, 𝓡 n⟯ 𝕊ⁿ)

proof_wanted TopologicalPoincareConjecture.proof : ∀ n, TopologicalPoincareConjecture n

proof_wanted SmoothPoincareConjecture.not_seven : ¬ SmoothPoincareConjecture 7

etc

bors merge


Problem with creating lessons without solution files

Describe the bug
When there is a lesson without a solution folder & files the "Solve" button still appears and will set the file content to be empty.
Link to a StackBlitz project which shows the error
No response
Steps to reproduce

Go to https://demo.tutorialkit.dev/forms-tutorial/introduction/welcome/
Click on the Solve button

Expected behavior
There shouldn't be a solve button if the lesson does not have solution files. You should allow lessons that are exploratory without a specific solution.
Screenshots

^This lesson doesn't have a solution folder

^Solve button is still shows and clears the file content.
Platform

TutorialKit version: [e.g. 1.0.1]
OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
No response

Hey @leonyoung1! Thanks for the report!
Looks like a a bug! We should be setting the helpAction to reset in WorkspacePanel.tsx.
https://github.com/stackblitz/tutorialkit/blob/9805996a4211a1c8a3e1bfbbd958a27f1957d4d7/packages/components/react/src/Panels/WorkspacePanel.tsx#L89-L93
Would you be interested in contributing a fix?

Hi @Nemikolh, I have never contributed before but would love to.

@leonyoung1, amazing! :tada:
Yes, create a pull request against this repo!

Closed by #108


Add RBD storage type support for ceph

I've notice the script did not handle ceph storage (RBD type).

Looks great - thank you for the contribution!! This has been merged.


mbox_store.rb:62:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)

gist of session output: https://goo.gl/X7iHCy
Also, I could probably wrangle with gem to fix the --version error, but I don't have the time resources right now.  --version was working just a couple mins ago, before it started failing (per the above gist):
   $ imap-backup --version
   2.0.0.rc1
   $

If you're still getting this issue, please run with debugging enabled PM me an anonymized private Gist of the output.


Add ruletype for Renovate GitHub Action

What do you think about making this more generic?
Instead of having several ruletypes for each action we want to check against, I'd propose to have a generic one extended by a parameter through which you can specify the action.
Perhaps we can even repurpose the license ruletype into this new ruletype. Currently it allows you to specify a file path and check if a given content is there. Extending it to support a directory of files should be enough to cover the above use case and much more.

wow! I had no idea that Renovate had a github action. Normally, folks install the Renovate App, and then install a configuration file in the repo: https://docs.renovatebot.com/config-overview/ https://docs.renovatebot.com/configuration-options/
Perhaps we can have yet another rule for this :smile:

What do you think about making this more generic?
Instead of having several ruletypes for each action we want to check against, I'd propose to have a generic one extended by a parameter through which you can specify the action.
Perhaps we can even repurpose the license ruletype into this new ruletype. Currently it allows you to specify a file path and check if a given content is there. Extending it to support a directory of files should be enough to cover the above use case and much more.

I think that's a good idea for a quick, first pass of a rule to check for GitHub actions. But if you wanted to enhance the rule, or make it more specific, the generic approach might have limitations. For example, with this Renovate rule we also discussed checking for the required config file and checking the schedule as a next step.

My concern for raising this is this may lead us to the same situation we are with the existing Dependabot ruletype. At the same time I see that having more examples of rules like that could help us to understand how a generic one might look like and would it be useful.


fix broken link

current link leads to 404 page. this is the correct link
https://docs.microsoft.com/en-us/windows-insider/at-work-pro/wip-4-biz-manage

@cdmm12 - can you please assist to check, approve and merge the content for this PR?
Thank you.

@cdmm12  - I would like to follow up on this. Can you please assist to check, approve and merge the content for this PR?
Thank you.

@kenwith - would you be able to merge the content of this PR? This is for a broken link. Thank you,

Quick update that the error was on the Eval Center side and has been fixed.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Joyce Y<EMAIL_ADDRESS>Sent: Monday, March 25, 2019 5:43:58 PM
To: MicrosoftDocs/windows-insider
Cc: cdmm12; Mention
Subject: Re: [MicrosoftDocs/windows-insider] fix broken link (#118)
@kenwithhttps://github.com/kenwith - would you be able to merge the content of this PR? This is for a broken link. Thank you,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-insider/pull/118#issuecomment-476430470, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWCQ7vFlGssFqLjF_flMrm5oGBx7vhmIks5vaW1OgaJpZM4cCZYL.


lots of boilerplate for servant-reflex client

From what I understand, this project uses servant-reflex for a type-safe client, which is great. The price for this seems to be quite a bit of boilerplate for every single api request. Is this some irreducible complexity there?

I am still testing but
prerender (pure never) $ someAutoGeneratedRequest -- ...
typechecks at least.


WIP Fixing: Maui Samples Build (Specify SkiaSharp PackageReferences)

Things done:
1.) Added SkiaSharp references to Mapsui.Samples.Maui so that it compiles (Rasterizer has SkiaSharp Dependencies and therefere I have to specifiy it explicitly so that it takes the 2.89 preview versions).

If going back to Uno 5.3 fixes the build this means Uno 5.4 has some Side effects in other targets which means I only should set Uno.sdk global json settings in Uno projects avoiding these side effects.

Uno.Sdk needs to be set in the Solution Folder Level


Problem with ElectronSystemBrowserTestApp deep linking with acquireTokenInteractive()

Core Library
MSAL Node (@azure/msal-node)
Core Library Version
1.14.2
Wrapper Library
Not Applicable
Wrapper Library Version
none
Public or Confidential Client?
Public
Description
I have the ElectronSystemBrowserTestApp  sample app setup and running, and can sign and the deeplink calls back to the app. The problem is how to improve the experience with the browser popup to allow the redirect. Since acquireTokenInteractive chooses a random port on localhost each time, the user will always have the browser popup, even if they check the box to allow to open link, because the next time it will be a different port on localhost.

Error Message
No response
Msal Logs
No response
MSAL Configuration
{
    "authOptions":
        {
            "clientId": "Enter_the_Application_Id_Here",
            "authority": "https://login.microsoftonline.com/organizations"
        },
    "resourceApi":
    {
        "endpoint": "Enter_the_Graph_Endpoint_Here",
        "scopes": ["User.Read", "Mail.Read"]
    },
    "customProtocol":
    {
        "name": "msal{Enter_the_Application_Id_Here}"
    },
    "cache": {
        "cacheLocation": "./data/cache.json"
    }
}

Relevant Code Snippets
ElectronSystemBrowserTestApp: https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronSystemBrowserTestApp

Reproduction Steps

Download the ElectronSystemBrowserTestApp  and configure the application in customConfig.js and enable deeplinking
Run the app and sign in > browser will open and after sign in is complete will try to deeplink back to the app, but browser will popup to allow to open this applicaiton.
The problem is the browser will popup every time, even if the users checks always allow, because acquireTokenInteractive uses a different port every time.

Expected Behavior
Expected behavior would be some way to specify a port number or a way to have acquireTokenInteractive use a consistent URL so that the user would not always get the popup consent in browser for the deep link back to the electron app****
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari, Internet Explorer
Regression
No response
Source
External (Customer)

Expected behavior would be some way to specify a port number or a way to have acquireTokenInteractive use a consistent URL so that the user would not always get the popup consent in browser for the deep link back to the electron app****

@MrCodeWeaver that (specifying a port number) seems like a reasonable request to me -@tnorling what do you think?

We intentionally did not use a static port because you can't guarantee that the port is available on a given user's system. I supposed we could provide a "preferred port" mechanism by which we use a statically defined port if it's available, otherwise fallback to the existing "random" behavior. Would that be an acceptable solution @MrCodeWeaver ?

Yes, I think using a 'preferred port' if its available would be a workable solution

@MrCodeWeaver a loopback client interface for acquireTokenInteractive API has been added to msal-node, which will be available in the next release (see). This should mitigate the issue you are having. Please have a look at the ElectronSystemBrowserTestApp sample for a usage example. Let us know if you have more issues!


Kraken web hook message

Hi,
I am doing order on kraken spot.
{ "stub": "kraken", "direction": "long", "symbol": "ADA/USD", "size": "100" }
Getting error message:
- Failed to open position on ADA/USD. -> {"name":"InvalidOrder"}
"direction": "buy" also error.
Doing ADAUSD
- Failed to open position on ADAUSD.
What I am doing wrong?

Same with Binance.

Same with Binance.

Binance is working fine.
Use this formate for Binance future.
{ "stub": "stub", "direction": "long", "symbol": "ETH/USDT", "size": "100" }

Sorry my fault, yes its working. I used:
 "symbol": "ETHUSDT"

Sorry my fault, yes its working. I used:
 "symbol": "ETHUSDT"

Formatting need to be as per exchange. Not your fault documentation is the thing here.

Hello there, yeah I'm sorry I need to update the documentation to be more explicit, you need to use per exchange format for symbols. As this tool has initially been written for FTX the documentation is using FTX symbols for now.
You can check exchange symbols with the /markets route.

If anyone in future looking for this issue just use
{ "stub": "kraken", "direction": "long", "symbol": "ADA/USD", "size": "20" } and make sure you are using size more than minimum for the exchange for that coin.


Failed to determine Java version for profile checkstyle-tests

Seeing this in libraries-bom:
Failed to determine Java version for profile checkstyle-tests @ com.google.cloud:google-cloud-shared-config:0.2.1, /home/elharo/.m2/repository/com/google/cloud/google-cloud-shared-config/0.2.1/google-cloud-shared-config-0.2.1.pom, line 406, column 14

Perhaps relevant: http://maven.40175.n5.nabble.com/Failed-to-determine-Java-version-for-profile-jdk-td5073097.html

Problem might be that the profiles add dependencies on different versions of autovalue depending on JDK version.
Autovalue should not be a dependency. Instead it should be on the annottionprocessorpath.

also similar: https://github.com/nebula-plugins/nebula-dependency-recommender-plugin/issues/45

This seems to have started with the first release to use the shared config, 0.117.0

I was able to reproduce the error. Checking further.
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ integration-tests ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.google.cloud.MaximumLinkageErrorsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.673 s <<< FAILURE! - in com.google.cloud.MaximumLinkageErrorsTest
[ERROR] testMaximumLinkageErrors(com.google.cloud.MaximumLinkageErrorsTest)  Time elapsed: 0.645 s  <<< ERROR!
com.google.cloud.tools.opensource.dependencies.MavenRepositoryException:
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Failed to determine Java version for profile checkstyle-tests @ com.google.cloud:google-cloud-shared-config:0.2.1, /usr/local/google/home/suztomo/.m2/repository/com/google/cloud/google-cloud-shared-config/0.2.1/google-cloud-shared-config-0.2.1.pom, line 406, column 14


Support .collate for DynamicMaps?

The example on the holoviews.org home page shows how to use .collate() to turn the illegal "HoloMap of Layouts" construction into the displayable "Layout of HoloMaps", which is very convenient in practice.  However, .collate() does not seem to be supported for DynamicMaps.
Here's an example of what I'd want to use that for:
import numpy as np
import holoviews as hv
import imagen as ig
import imagen.transferfn as tf

from imagen.image import FileImage
from imagen.transferfn.sheet_tf import Convolve

hv.notebook_extension()

%opts Image (cmap="gray") {+axiswise}

FileImage.filename = "/Users/jbednar/imagen/doc/images/ellen_arthur.pgm"

kdims = [hv.Dimension('size',                   range=(0.1, 2)),
         hv.Dimension('positive_size',          range=(0.1, 2)),
         hv.Dimension('negative_size',          range=(0.3, 4)),
         hv.Dimension('positive_aspect_ratio',  range=(1.0,10)),
         hv.Dimension('negative_aspect_ratio',  range=(1.0,10))]

Right now, I can easily view one static image along with a slider-controlled dynamic map, but I have to pick a single HoloViews object to return from the callback:
def filtered_images(size,positive_size,negative_size,positive_aspect_ratio,negative_aspect_ratio):
    convolver = Convolve(kernel_pattern=ig.DifferenceOfGaussians(**locals()))
    return FileImage(output_fns=[convolver])[:]

FileImage()[:] + hv.DynamicMap(filtered_images, kdims=kdims)

def filtered_images(size,positive_size,negative_size,positive_aspect_ratio,negative_aspect_ratio):
    convolver = Convolve(kernel_pattern=ig.DifferenceOfGaussians(**locals()))
    return convolver.kernel_pattern[:]

FileImage()[:] + hv.DynamicMap(filtered_images, kdims=kdims)

But what I want is to make one single callback that returns a Layout of both the two dynamic plots above:
def filtered_images(size,positive_size,negative_size,positive_aspect_ratio,negative_aspect_ratio):
    convolver = Convolve(kernel_pattern=ig.DifferenceOfGaussians(**locals()))
    return convolver.kernel_pattern[:] + FileImage(output_fns=[convolver])[:]

FileImage()[:] + hv.DynamicMap(filtered_images, kdims=kdims).collate()

Unfortunately, that doesn't work, whether I call .collate() (see output below) or not.  Of course, I can construct multiple DynamicMaps, using multiple callbacks, but they both need to share the same kernel_pattern state, so I'd also need to make a class to hold that state and change the callbacks to be methods on the object with the shared state.  That's ugly, a lot of code, and a pain to set up.  Can we just make .collate() work on DynamicMaps, and then people can write one callback to handle all the dynamic stuff in a given final Layout?
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-3c23b390e441> in <module>()
      3     return convolver.kernel_pattern[:] + FileImage(output_fns=[convolver])[:]
      4
----> 5 FileImage()[:] + hv.DynamicMap(filtered_images, kdims=kdims).collate()

/Users/jbednar/holoviews_git/holoviews/core/spaces.pyc in collate(self, merge_type, drop, drop_constant)
    255         merge_type=merge_type if merge_type else self.__class__
    256         return Collator(self, merge_type=merge_type, drop=drop,
--> 257                         drop_constant=drop_constant)()
    258
    259

/Users/jbednar/holoviews_git/holoviews/core/element.pyc in __call__(self)
    592
    593         components = ndmapping.values()
--> 594         accumulator = ndmapping.last.clone(components[0].data)
    595         for component in components:
    596             accumulator.update(component)

AttributeError: 'NoneType' object has no attribute 'clone'

A dynamic collate should be something we try to get ready for 1.7. I agree it is important and we can shift the assigned milestone if it turns out to be too tricky.

Now implemented, assigning to @jlstevens to document.

Now implemented, assigning to @jlstevens to document.

Will do!

I'll try to come up with an example.

As a start, can you show how to make the above code work?  I just tried with the latest master and the same code that didn't work above with or without .collate() still doesn't work with or without .collate(), and it still doesn't give a very useful error message.   Are there now arguments that I need to pass to determine how the streams line up, and are there ways the error messages could guide me towards adding those?

This has now been implemented and I fixed a bug related to adding more plots to a collated Layout. Going to close this and will be adding some examples to our list of stream examples.


Complete Toolbar to mirror menu structure.

Is your feature request related to a problem? Please describe.
Compliments on the new icons, but while we are working in this area, let me add this frustration:
Open network and save network are accessible from the toolbar, but new network and save as are not...
Describe the solution you'd like
Most programs in GUI land either have the toolbar mirror the menu structure, or better yet, make it configurable.
I don't think this is an urgent request, but one to keep in mind for the upcoming GUI redesign....
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

The most important have been added.


fixed a missing import and probably more stuff, until travis is happy again

Hmm 0.3 s faster ninja build when shake is compiled with ghc 7.4.2, don't know how to fix that.

Occasionally the Ninja build is faster because the VM is somewhat unpredictable. In those cases I tend to just rerun it - it isn't anything fundamental - just that performance testing is hard to do.
Thanks for the fix!


Washer/Dryer - Switch instead of vave

For a washer/dryer, it would be amazing if these were displayed as switches, not valves.
At least with my homekti implementation, I can not start automation based on a valve.   I would like to be able to turn on/off or control a device when the load/cycle starts and/or stops.

washer/dryer on thinq 2 cannot turn on/off remotely
if we change to Switch instead of Valve, remaining time will not show up, a lot of ppl want to know this
we have program finished event as occupancy sensor, you can setup automation on it

Sorry, we cannot serve your request
tell me if you have anymore question

I think my request was mis-stated.    I want to control other devices based on the running/stopped (closed/open) state.
I do not wish to control the dryer, I wish to control a device based on the dryer's status....

@schlundg if your washer/dryer running on thinq 2, you can turn on door lock feature and create automation based on that, when load/cycle started, door will be locked


Try to fix hashie always getting updated to a later version

Issue is at https://github.com/homeflow/ctesius/issues/9017


clean up old files

like run.sh

do we need to keep something from run.sh for the time being?

We discussed that and decided to remove run.sh.

Merged


Stop wrapping pull messages

The length and size of our error messages on failure to pull
is huge.  This patch at least eliminates some of the wrapping.
But I think eventually we need to look at containers/image
and see if we can modify the error messages to something a little
more human friendly.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

First pass at addressing
https://bugzilla.redhat.com/show_bug.cgi?id=1757017

Sure but do we need to return all of the HTML Information.
podman pull quay.io/buildah1
Error: error pulling image "quay.io/buildah1": unable to pull quay.io/buildah1: unable to pull image: Error initializing source docker://quay.io/buildah1:latest: Error reading manifest latest in quay.io/buildah1: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n
Not Found
\n
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
\n"

/lgtm


pre-calculate annual derived variables

@okanji we agreed that we should precalculate the derived variables. We need to do this at the grid cell level, then calculate the mean of the derived variables across BC and the ecoprovinces. also, we will only store and display annual values for the derived variables (e.g., NFFD will be NFFD01 + NFFD02 + ... + NFFD12); that will save space and is sufficient for the app. the input files for these calculations are in this dropbox folder. I have added a script  to the repo that calculates the app input files from the gridded time series files. the calculation of derived variables can go right into this script.

The script has been refactored in this pr #15 such that it is easy to add new derived variables:

Simply define a function that accepts one or some of the base variables: Tmin, Tmax, PPT, Tave (which are matrices with a row for each month of the year and columns for each year) and return a matrix in the same format for the derived variable. For example:

# pas: precipitation as snow
# tm: min temperature for that month
pas <- function(t_min_monthly, ppt_monthly) {

  pas_param <- read.csv(file = "./optimizedParameterTables/param_PAS.csv", sep=',', header = TRUE)

  b <- pas_param$b
  t0 <- pas_param$T0

  pas_monthly <- (1/(1 + exp(-(t_min_monthly - t0)/b))) * ppt_monthly
  rownames(pas_monthly) <- paste("PAS", monthcodes, sep="")

  return(pas_monthly)

}

pas_monthly <- pas(t_min_monthly, ppt_monthly)

Then transform the returned matrix and convert to a data frame and pass it to the compute_seasonal function that will return a data frame of the derived variable with columns for each season and a year total:

pas_df <- data.frame(t(pas_monthly))
pas_seasonal_df <- compute_seasonal("PAS", pas_df, sum)

Finally, combine this data frame with the data frame containing all the derived variables:

gridded_data <- cbind(gridded_data, pas_seasonal_df)
The following derived variables have been added: "NFFD", "FFP", "PAS", "EMT", "EXT", "RH", "DD_0", "DD5", "DD_18", "DD18", "TD"

The comment above could be used as documentation for adding derived variables to the precompute script.


restrict-plus-operands doesn't recognize property as string type

Bug Report

TSLint version: 5.5.0
TypeScript version: 2.4.1
Running TSLint via: gulp

TypeScript code being linted
var obj = { ... };
for (var p in obj) {  // p is typed as string in TypeScript
  var str: string = p + "Anything";
}

with tslint.json configuration:
restrict-plus-operands: true

Actual behavior
error restrictPlusOperands: Operands of '+' operation must either be both strings or both numbers
Expected behavior
No error

It also doesn't ignore the TS parseInt operator
let numStr = '32';
let numStrWithPlus = +numStr; // <== Error: restrict-plus-operands

@NN--- I'm not able to reproduce this with TSLint 5.11.0 and the code you posted. Perhaps the bad behavior you were seeing was from a version mismatch? Resolving as aged away, but please do post if you're able to demonstrate the bug still happening!


Firefox Specific - Text highlight not working as expected

Attach (recommend or Link to PDF file here):
samplepptx.pdf
Configuration:

Web browser and its version: Firefox, v104.0.2
Operating system and its version: mac OS Monterey v12.5
PDF.js version: v2.14.305

Steps to reproduce the problem:
Unable to provide steps to reproduce here because it's in a development environment, however below is a detailed explanation of what the problem is:

When highlighting text and getting the selection via window.getSelection().toString(), new line spacing or indentations are missing
Highlighting the below text results in this incorrect selection (where all the lines are combined into one massive line of text):
You can print out PPT files as handoutsusing thePRINT >PRINT WHAT > HANDOUTS option

You can see that the above selection is missing spacing or indentations for where the new line begins. This is causing incorrect outcomes after highlighting text.
What is the expected behavior?
The expected behavior is that the selection of text has some kind of indicator of when a new line starts, similar to the spacing that existed in v2.2.228 of PDFjs (i.e. You can print out PPT files as handouts using the PRINT > PRINT WHAT > HANDOUTS option)
What went wrong?
In v2.14.305, spacing or indentations for new lines during text selection is missing:

v2.2.228:

You can print out PPT files as handouts using the PRINT > PRINT WHAT > HANDOUTS option

v2.14.305:

You can print out PPT files as handoutsusing thePRINT >PRINT WHAT > HANDOUTS option
Notes
This is a newer version of issue https://github.com/mozilla/pdf.js/issues/15331, I added more detail about the problem, included a file, and pinpointed the exact bug that I was seeing. Unfortunately the newest version of PDFjs does not work with our compiler, so I have to use this specific version of PDFjs!
Is there an alternative to window.getSelection() that I need to use? Or is there some other workaround for this issue?
Help is appreciated.

PDF.js version: v2.14.305

That version is no longer supported, please find the latest releases at https://mozilla.github.io/pdf.js/getting_started/#download

Unable to provide steps to reproduce here because it's in a development environment,

Without a runnable example, this isn't really actionable unfortunately.

When highlighting text and getting the selection via window.getSelection().toString(), new line spacing or indentations are missing

WFM, with new-line characters being included in the output, when opening your document with https://mozilla.github.io/pdf.js/web/viewer.html in both Firefox Nightly 106 and Chrome Beta 106.

Unfortunately the newest version of PDFjs does not work with our compiler, so I have to use this specific version of PDFjs!

Please note that only the very latest release is supported, hence you'll have to update to receive help/support.


perf(PG CDC): investigate the CDC backfill performance

When investigating an issue with a user, we found RW might need more than 10s to scan a chunk from the Upstream PG. It could be because of many potential reasons such as:

the table is too large with 180 million rows
their upstream PG is an AWS Aurora with different isolation implementation
It is also related to the workload on the upstream PG.

We need to investigate this case and set some benchmarks for CDC backfill in different situations.
Maybe also we need to doc what our CDC backfill does:

what SQL is
which isolation level those SQL in
in which upstream DB's workload, the backfill could be in bad performance

So that users can know more clearly about its performance.

In current stage, I would not attribute the performance degradation to specific vendor, e.g AWS. The scenario is a new case we didn't cover in self-test and the automation pipeline: during the progress of backfilling historical data, upstream DB also has continuous insertion/update workload. I think we should also consider adding this case as a performance scenario. cc @cyliu0 @lmatz


Fix a typo in the recurrent network tutorial

The word_data is not defined and the cur_word is never used, so is it a typo?

Whoops, yes it's a typo. Thank you for finding it!


Corrected existing AKS integration

It only works for existing ACR, not new ACR and s/ACR/AKS/. Also the ACR name OR the ID needs to be provided, not both.

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


[Windows] MouseRegion cursor in Draggable feedback does not work properly.

The MouseRegion cursor in the Draggable feedback does not change properly while dragging on the Windows platform. It works properly on the Web platform.
Steps to Reproduce

Execute flutter run on the code sample.
Drag the container.

Expected results: The mouse cursor should change properly while dragging.
Actual results: The mouse cursor was not changed properly while dragging.

Windows platform:

https://user-images.githubusercontent.com/93904422/231093342-c719bb18-6697-4534-a9ae-97e7c7b9be2d.mp4

Web platform:

https://user-images.githubusercontent.com/93904422/231093324-4d710014-1afe-4b4e-b2f3-cf16b9133635.mp4

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: Draggable(
            ignoringFeedbackPointer: false,
            feedback: MouseRegion(
              cursor: SystemMouseCursors.noDrop,
              child: Container(
                  color: Colors.grey,
                  height: 100,
                  width: 200,
                  child: const Center(child: Text('Drop'))),
            ),
            child: MouseRegion(
              cursor: SystemMouseCursors.move,
              child: Container(
                  color: Colors.cyan,
                  height: 100,
                  width: 200,
                  child: const Center(child: Text('Drag'))),
            ),
          ),
        ),
      ),
    );
  }
}

Logs
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.19044.2728], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.4.3)
[√] Android Studio (version 2021.3)
[√] Connected device (4 available)
[√] HTTP Host Availability

• No issues found!

Thanks for the report @Tamilarasan-Paranthaman. I also see this issue on the latest master channel whilst it works as expected on Chrome and MacOS apps.

flutter doctor -v (stable & master)
[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.19045.2728], locale en-US)
    • Flutter version 3.7.10 on channel stable at C:\WIP\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4b12645012 (3 days ago), 2023-04-03 17:46:48 -0700
    • Engine revision ec975089ac
    • Dart version 2.19.6
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\AndroidSDK
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = C:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio Electric Eel 2022.1.1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
    • Visual Studio at D:\DOWNLOADWORK\VS2022
    • Visual Studio Community 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio Electric Eel 2022.1.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.77.0)
    • VS Code at C:\Users\ADMIN\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.62.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2728]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 112.0.5615.49
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 111.0.1661.54

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[!] Flutter (Channel master, 3.10.0-3.0.pre.32, on Microsoft Windows [Version 10.0.19045.2728], locale en-US)
    • Flutter version 3.10.0-3.0.pre.32 on channel master at C:\WIP\flutter_master
    ! Warning: `flutter` on your path resolves to C:\WIP\flutter\bin\flutter, which is not inside your current
      Flutter SDK checkout at C:\WIP\flutter_master. Consider adding C:\WIP\flutter_master\bin to the front of your
      path.
    ! Warning: `dart` on your path resolves to C:\WIP\flutter\bin\dart, which is not inside your current Flutter SDK
      checkout at C:\WIP\flutter_master. Consider adding C:\WIP\flutter_master\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cee78811f (7 minutes ago), 2023-04-11 06:29:24 -0400
    • Engine revision 4bd42060e7
    • Dart version 3.0.0 (build 3.0.0-428.0.dev)
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git"
      directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\AndroidSDK
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = C:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio Electric Eel 2022.1.1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
    • Visual Studio at D:\DOWNLOADWORK\VS2022
    • Visual Studio Community 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio Electric Eel 2022.1.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.77.1)
    • VS Code at C:\Users\ADMIN\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.62.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2728]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 112.0.5615.49
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 111.0.1661.54

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Looks like the cursor change is occuring, but it's just not being shown early enough.

Same problem here but without Draggable. Just GestureDetector and
MouseRegion. Issue occurs on Windows desktop only. Works well on WEB and Linux desktop.

https://github.com/flutter/flutter/assets/54043940/2776c342-e8aa-43e0-8eba-1660678b646d
https://github.com/flutter/flutter/assets/54043940/28b48d9c-c681-41f9-a977-aeb263a311de
Full source here:
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

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

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

class _MyHomePageState extends State<MyHomePage> {
  MouseCursor currentCursor = SystemMouseCursors.basic;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            GestureDetector(
              onLongPress: () {
                setState(() {
                  currentCursor = SystemMouseCursors.move;
                });
              },
              onLongPressUp: () {
                setState(() {
                  currentCursor = SystemMouseCursors.basic;
                });
              },
              child: Column(
                children: [
                  MouseRegion(
                    cursor: currentCursor,
                    child: Container(
                      color: Colors.blue,
                      height: 200,
                      width: 200,
                      child: Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          const Text("onLongPress() must change cursor"),
                          if (currentCursor == SystemMouseCursors.move)
                            const Text(
                              "Long press",
                              style: TextStyle(
                                  color: Colors.white,
                                  fontWeight: FontWeight.bold),
                            )
                        ],
                      ),
                    ),
                  ),
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}

It looks like #145241 is being merged into this issue, so I'll repost the important parts here.
Quick summary
On YouTube, you can move your mouse over a video that's playing, and after not moving the mouse for a few seconds, the cursor disappears.
Currently, this isn't possible to achieve in a Windows Flutter app.
Code Sample + Demo

Works on web, doesn't work on Windows
import 'dart:async';

import 'package:flutter/material.dart';

void main() => runApp(const App());

class App extends StatefulWidget {
  const App({super.key});

  @override
  State<App> createState() => _AppState();
}

class _AppState extends State<App> {
  @override
  void initState() {
    super.initState();
    Timer.periodic(
      const Duration(seconds: 1),
      (_) => setState(() {
        showCursor = !showCursor;
      }),
    );
  }

  bool showCursor = true;

  @override
  Widget build(BuildContext context) {
    final cursor = showCursor ? MouseCursor.defer : SystemMouseCursors.none;

    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: MouseRegion(
          cursor: cursor,
          child: Container(color: Colors.blueGrey),
        ),
      ),
    );
  }
}

Demo

This blinking does not happen when running a native Windows application, unless you continuously move the mouse.

Solving this issue would be a huge help to the project that my team & I are working on.
(hopefully the FYI tag isn't super annoying—or at least not any more annoying than a cursor that won't go away)


Build Instructions

What you are doing here is great. I would really like to turn my C++ code using OpenCV directly into Javascript without having to write my code in Javascript using OpenCVjs.
Can you please provide build instructions?
Your blog mentions how to build OpenCV with emscripten with Ninja. However, you only mention that there is a cmake file for Party Parrot. There is not instructions on how to ensure building it correctly.

"For the impatient:
On Windows 10: I built OpenCV static libs with CMake, the ninja generator and the Emscripten toolchain.
I created a new C++ OpenCV project with desktop and Emscripten targets.
For the web target, created C wrapper functions to handle RGBA image buffers
On the JS glue side:
get frames from HTML5 video element;
copy them to the Emscripten heap memory and pass to asm code;
convert result frames to TypedArrays;
display on HTML canvas"

How do you compile colour_cycle_js.cpp?
How is the OpenCV package that is built, cross-compiled with emscripten, linked to your final OpenCV project?
I have tried cmake, then make using the provided cmake file.
Regards,
Daniel

I don't understand the problem.
The CMakeLists.txt file is in this repo.
The blog post painstakingly explains how to build.
CMake generates the build script - ninja then creates the .js files that the HTML loads.
What are the problems you are having?


CronJob - separate instance Embargo runs out + automatically publish proposal under one DOI

Issue Name
Summary
Steps to Reproduce
Current Behaviour
Expected Behaviour
Extra Details
Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here.

Closed due to inactivity. Could be implemented on client side.


Lack of data folder after building.

If we download repository and try to run it as it is we will be faced with this error:
Exception:
System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\code\DidacticalEnigma\DidacticalEnigma\bin\Debug\Data\mecab\ipadic\char.bin'.'
Image:

Proposed solution:
The data folder should be copied after project build.

I will try to do this with simple .bat scripts to copy whole data folder after successfull build.

Ah, yes. The build system used to copy the files before - but that was due to NMeCab's implementation of how it copied stuff. This has been replaced.
It should be rather easy to make it work by including the submodule directory as part of the project and marking the files as "Copy if newer". I'll look into it later.

Merged PR.


Same event name in different contexts

Hi,
let's say I have two different contexts: Books and Services. Both contexts contains Order aggregate.
Is it a common practice that same event name exists in different contexts i.e. OrderAccepted? Or the event name should be unique i.e. BookOrderAccepted and ServiceOrderAccepted
Thanks
Pavel

I don’t know if it is common, but yes. It’s totally ok.

@adrai Thanks


Enable MutableJsonDocument to use DynamicData serializer options for changes

Prior to this PR, MutableJsonDocument was unable to take serializer options to serialize and deserialize changes.
This PR leaves MutableJsonDocument using JsonSerializer defaults unless options are passed, but enables it to take options.  It then passes DynamicData default serializer options when created from the ToDynamicFromJson(), where a DynamicData instance is constructed.
Addresses https://github.com/Azure/azure-sdk-for-net/issues/35944

[ ] Add test coverage for nested POCO serialization

API change check
API changes are not detected in this pull request.


"Copyright (c) 2013-2018 GitHub Inc." of the downloaded releases

I have downloaded coinstac-linux-x64 for a release or linux from https://github.com/trendscenter/coinstac/releases . LICENSE shipped within it states
Copyright (c) 2013-2018 GitHub Inc.
which is likely to be incorrect

This is the license file for Electron which our build tool is placing automatically, I was under the impression that it was using the license in the build root but that does not appear to be the case. It seems like the best solution is place our license and include but rename the Electron license as required by their license


Custom draw operations, exposed SkCanvas and reduced Skia api visibility

Added a way to consume SkCanvas directly

#2364
@MarchingCube

Just an idea to avoid implementing a custom operation every time I want to have direct access to the context.
Render is called two times when the context is a DeferredDrawingContext. The first call add a special node to the scene graph that makes sure Render of the Control is called a second time when the actual drawing context is used. For ImmediateRenderer this is only called once.
public override void Render(DrawingContext context)
{
    if(context.IsDeferred)
	{
		context.RegisterDirect(this);
		return;
	}

	var skiaContext = context as ISkiaDrawingContext;

	var canvas = skiaContext.Canvas;
}

How exactly would bounds checking and hit testing work with that API?

Where in the code base does a render call change bounds or the hit testing?

Draw operations are responsible of visual hit testing.  Please, read DeferredRenderer's code base.

So ImmediateRenderer is currently not able to hit test because it doesn't use draw operations? Why isn't a visual responsible for hit testing against its own visual representation? Maybe that's why ICustomHitTest was introduced. I will not bother you more on that topic. Custom visuals with arbitrary shapes that need proper hit testing will need to implement a drawing operation. In my opinion a visual should know its visual representation and how to hit test against that and not some external wrapper.

Yes, immediate renderer has issues with hit testing. Due to the lack of the scene graph its hit testing is inaccurate.
Also visual's visual representation doesn't have to occupy the entire bounds of the visual, so for proper invalidation and dirty rect tracking we need the bounds of individual drawing operations.

Is this an alternative to #2364 or are they to be reviewed together?

Assuming this is an alternative to #2364, I think I actually prefer #2364: this adds core APIs that will need to be maintained ~= forever for very a niche functionality. #2364 on the other hand just modifies Avalonia.Skia which, being a platform implementation we can say that the API isn't guaranteed to be stable.

@grokys Actually https://github.com/AvaloniaUI/Avalonia/pull/2364 tackles different problem - being able to provide custom Skia GrContext to the Avalonia Skia platform.
This PR addresses the issue that user can't access raw Skia Canvas to implement platform specific drawing from the visual. With this we can utilise full Skia api, and render completely custom elements.

Ok, thanks for the background @MarchingCube. I have a few reservations about the API here: adding a core API which then requires casting to a platform-specific API to do the drawing seems a little clunky.

I think we should do the same that WPF does and have a special Bitmap implementation that supports this. This has some overhead but is a lot cleaner.

@grokys
It's meant for extending the rendering context. With a custom drawing operation people can write extension methods for our DrawingContext. I think we should expose Direct2D render target in the same way.
@Gillibald
Let's say I have 1000 semi-transparent controls which render a custom line overlayed on top of each other on a full screen window. Your suggesion with a custom bitmap per control would consume 192010804*1000=8294400000 (8GB) of RAM. A custom drawing operation would consume almost no RAM

@grokys You can also think about custom drawing operations as a means to explicitly access the immediate drawing context even when using a deferred renderer. This can be really useful if application has tons of stuff on the screen and doesn't care about the hit testing (i. e. a filled rectangle with thousands of lines). The scene graph for these non-hit-testable elements would just consume resources.

I understand the benefits of this approach I just don't like the DrawOperation itself. Can't we just introduce a "RenderDirect" method that is always called with the actual drawing context?

Not every drawing operation that is used by visual needs direct access to the immediate context. Some operations could be our built-in ones, some could be custom ones. With custom drawing operations one can mix and match those, with extending Visual's API one can't. I think you are viewing the API from a way too visual-centric point of view. DrawingContext could be potentially used even without the visual tree.

I agree that DrawingContext is Visual independent but hit testing is not. And this approach was used to support custom hit testing. I just think we should fix hit testing for all renderers and also make this kind of customization possible. This is just my opinion.

After thinking about this a little more, I think this is pretty much needed at a low level for the deferred renderer. It should probably be wrapped in something a bit more high-level that deals with the immediate renderer etc though moving forward.
Only thing I'm not sure about is DrawingContent.DrawCustom: longer term I think we should allow tapping straight into the scene graph using in a manner similar to UWP's composition API which would allow us to handle invalidation properly too.

For WPF they store the content(IDrawingContent) within the UIElement(Visual) after measure and arrange.
That content can be anything that can be processed by the renderer.
For Avalonia IDrawingContent could be a graph of DrawingOperartions. Each Visual is responsible for hit test bounds etc.
The renderer requests the drawing content of a Visual when it's time to render something.
Each UIElement creates its own DrawingContext and produces IDrawingContent when the DrawingContext has finished.

@Gillibald I don't think that's true, or at least that's not the lowest level. From https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-architecture:

WPF displays data by traversing the unmanaged data structures managed by the milcore. These structures, called composition nodes, represent a hierarchical display tree with rendering instructions at each node. This tree, illustrated on the right hand side of the figure below, is only accessible through a messaging protocol.

When programming WPF, you create Visual elements, and derived types, which internally communicate to the composition tree through this messaging protocol. Each Visual in WPF may create one, none, or several composition nodes.

This composition tree is what we call the scene graph, and the equivalent in UWP is the composition API I mentioned above.

I came to this by reading the source code. The only part that is not available is the native part of the rendering stack.


Update

removed lottieplayer workaround code
disabled skottie/lottie-web perf test

@hermet May I ask what purpose for disabled lottie-web, skottie?

@tinyjin tey are outside of thorvg domain,  let's put them internal test only.


Fix issue with removing languages from admin panel

Problem
Not possible to remove any language installed by the language pack.
Steps to reproduce

Install SwagLanguagePack plugin. Version 3.1.0 or 4.0.0
Go to Shopware Settings -> Shop -> Languages
Try to remove any language

Expected result
Language successfully removed
Actual Result
Language is not removed and PHP exception occurs.
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`sw6582`.`swag_language_pack_language`, CONSTRAINT `fk.swag_language_pack_language_language` FOREIGN KEY (`language_id`) REFERENCES `language` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE)

Reason
table swag_language_pack_language uses action ON DELETE RESTRICT for the language foreign key. This prevents the system from deleting related records in swag_language_pack_language when removing languages.

Would be great if you add an entry in both changelog files. If you're not good with German, I'm happy to help

@marcelbrode I guess changelog files were removed with the previous PR https://github.com/shopware/SwagLanguagePack/pull/1

@nikolaev-fb Ah, just learned about it. Then I have no issues here :smile:


[BUG]: Unity XT: Volume Mount Hangs

Bug Description
We have configured Minio (S3 compatible object store) application in our K8S cluster with unity-iscsi storage class.
Minio runs with 4 replicas, each replica's lun holds 1TB of data.
Upon restarting/deleting Minio pods - the pods hangs in 'Container Creating' state for 3 - 4 hours with the error:
"kubelet: Unable to attach or mount volumes: unmounted volumes=[data], unattached ││  volumes=[kube-api-access-99ld5 data]: timed out waiting for the condition"
After 3 - 4 hours the pod finally enters 'Running' state.
Important note - working with 'local-path' storage class worked perfectly (no hangs after restarting/deleting Minio pods).
Logs
kubelet                  Unable to attach or mount volumes: unmounted volumes=[data], unattached ││  volumes=[kube-api-access-99ld5 data]: timed out waiting for the condition                                                                               │
kubelet                  Unable to attach or mount volumes: unmounted volumes=[data], unattached ││  volumes=[data kube-api-access-99ld5]: timed out waiting for the condition                                                                               ││
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
Kubernetes v1.24.7 running cluster with unity-iscsi storage class.
Application with 1TB lun size.
Restarting the application casing the pod to hang in Container Creating state for a few hours until become ready (Running state).
Expected Behavior
After rollout restart to the StatefulSet or deleting Minio pods we are expecting the application (the pods) to become ready (Running state) instantly.
CSM Driver(s)
CSI Driver for Unity XT v2.1
Installation Type
Helm - v3.0
Container Storage Modules Enabled
No response
Container Orchestrator
Kubernetes v1.24.7
Operating System
Debian 10.9

@oribenzvi5 Please Update the driver logs, i.e "kubectl logs nodepod/controller pod -c driver -n unity" for all the pods and values.yaml and other possible details(like Minio pod yamls etc) which will help us  further debugging.
Thanks in advance.

@karthikk92 Thanks for the quick response, adding logs for:
Unity Controller Deployment containers:

attacher
csi-external-health-monitor-controller
driver
provisioner
resizer
snapshotter

Unity Node DaemonSet containers:

driver
registrar

Also adding Minio statefulSet manifest, Unity CSI manifest and Unity iSCSI StorageClass manifest.
deploy-unity-controller-attacher-container.log
deploy-unity-controller-csi-external-health-monitor-controller-container.log
deploy-unity-controller-driver-container.log
deploy-unity-controller-provisioner-container.log
deploy-unity-controller-resizer-container.log
deploy-unity-controller-snapshotter-container.log
ds-unity-node-driver-container.log
ds-unity-node-registrar-container.log
minio-sts.yaml.txt
unity-csi-manifest.yaml.txt
unity-sc.yaml.txt

/sync

@oribenzvi5
I have opened an internal ticket for this issue and emailed you.
We can continue the investigation there.
Notified @karthikk92 of same..

The default option for the csi driver fsGroupPolicy parameter already is ReadWriteOnceWithFSType so no change required, issue is resolved. Issue is resolved. Customer reinstalled driver with default fsgrouppolicy setting.


IE 8,9 /login/reset redirects back to home

User visits /login/forget and puts in their email.
User receives the tokened email and navigates to the reset page /login/reset
Reset page renders, but within moments user redirected to /

I saw this behavior on drywall.herokuapp.com and also on a fork we have have Drywall.  It was on Internet Explorer 11 emulating 8 or 9 in Developer Tools which itself might not be the best scenario.  I will try to test later directly on one of those Internet Explorer.

The redirect m may  have something to do with Backbone.Router and pushState not working on IE <=9  In our case, this patch stops the redirect to /

Backbone.history.start({ pushState: true });

var enablePushState = true;
var pushStateEnabled = !!(enablePushState && window.history && window.history.pushState);
Backbone.history.start({ pushState: pushStateEnabled });

I'm not sure about how long support for IE8 will last. For example, in Bootstrap 4 they're dropping support for IE8.
Also this may be relevant: https://github.com/jashkenas/backbone/issues/173

As it turned out, we dropped support for IE <=10 so this became a non-issue for us.

Ok. Closing for now.


fixing missing item error in gear picker on initial load

Applying fix suggested by Lucenia

Closing since @NerdEgghead applied the same change in https://github.com/wowsims/wotlk/commit/fdfff45716c2106a8b941411a2df0d20330aa2bc


Cannot connect to GitLab API through Proxy

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
We have a Portainer setup in a private network that requires an HTTP Proxy when connecting to online resources.
Usually, Portainer respects the proxy setting in all cases. These include pulling stacks from git, or pulling docker images.
However, it seems like Portainer does not respect the proxy settings while adding a GitLab registry. It fails to connect to the GitLab API.
Expected Behavior
Portainer uses the same proxy settings when connecting to GitLab while adding registries, and successfully displays a list of projects.
Actual Behavior
Portainer does not use the proxy setting and fails to connect to GitLab.

We don't see any connection attempt in our proxy server
The Portainer log shown below indicates it's not using a proxy server (internal DNS does not resolve external hosts; this is not a problem when using the proxy for any other program or even Portainer itself)
https://[portainer]/api/registries/proxies/gitlab/api/v4/projects?membership=true&page=1 returns a 502 Bad Gateway error

Steps to Reproduce

Operate Portainer in a setting that does can access the Internet only via proxy
Open the Add Registry -> GitLab form
fill it with valid or invalid credentials – does not matter
change the GitLab domain or not – does not matter
click "Retrieve projects"

Portainer logs or screenshots
2024/05/24 04:31PM http: proxy error: dial tcp: lookup gitlab.com on <IP_ADDRESS>:53: no such host

Portainer version
2.20.1
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Standalone 26.1.2
OS and Architecture
Ubuntu 20.04, AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response

Same problem for me. I'm trying to access to a private Gitlab through a proxy and it doesn't work. For others features in Portainer (Helm for exemple), it access through the proxy declared as environment variable.
I try with the Alpine image to have a shell and the curl works to my Gitalb API while through the Web Interface, i have a timeout.
Portainer version : 2.20.2
Portainer Edition : Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version : Kubernetes 1.28 Deployed through official helm chart.


Add Kured

What this PR does / why we need it:
Which issue this PR fixes:
fixes #694
Public facing documentation PR (if applicable)
Special notes for reviewer:
Add a screenshot or an example to illustrate the proposed solution:
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[ ] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[x] is completely transparent, will not impact the workload in any way.
[ ] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

Chart checklist (pick exactly one):

[x] I upgraded no Chart.
[ ] I upgraded a Chart and determined that no migration steps are needed.
[ ] I upgraded a Chart and added migration steps.

Pipeline config (if applicable)
If you change some config options (e.g. add/rename variable or change the default value) you may need to update the config used by the pipeline in pipeline/config.

did you search for some useful alerts or a grafana dashboard? I know people requested some visibility into if kured triggered a reboot or not.

No dashboard.
Kured exposes a single prometheus metric kured_reboot_required{node=".."}.
This can use to create an alert if we want to.
It's a bit akward if we just allow reboots weekly but it's probably still doable.


Use ES6 imports and TypeScript

Let's add TypeScript to our project and use import/export instead of require/module.exports.
I don't insist that you should transform all your JS files to TS files right now. Just try setting allowJS: true & checkJs: false and compile your JS files without type checking.
Some other hints about the initial configuration:
esModuleInterop: true
target: es2018
Note: we can use TypeScript for client scripts too, and enable the built-in SystemJS bundling.

Hint: to tell ESlint that we use ES6 modules, merge the following options to your .eslintrc:
{
    "parserOptions": {
        "sourceType": "module"
}


Generic registry support

The following pull request covers the initial steps for supporting communication between the existing actors (issue #158 ) and hot-reload features (issue #103).
I have plans to add tests and a documentation for this PR. However I would like to request a small review for this code first, because perhaps some changes will be needed. And after it keep going with other aspects of implementation.
Checklist

[ ] tests are passing with cargo test.
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added
[x] commit message is clear
[ ] the example of the registry usage

I also thinking about the key/value, that stored in dashmap: is it has a sense to replace it on something else (e.g. ChildRef for key)?

Hey there !
It looks great ! I'll try to have a look at it tonight or tomorrow :)

I added the broadcast_message method for the RegistryDispatcher trait so that it will be possible to pass desired messages to registered actors as a developer would like. Also appended the docs strings for the structs and enums there.
The main idea for this public API is to expose a couple of method for the global place with registries so it could pass messages, register and remove actors to the desired registry as is.
Basically it means that each actor which wants to broadcast a message, will use the "global call" with passing a registry name / type and a message for building a desired pipeline for communication globally or with the desired group of actors.

Hey there,
I'm having a bit of a hard time to reason with the naming and how the Registry / Dispatcher behaves.
The main thing I'm trying to make sure is that we scope it well (like we dont expose to much internals).
I'll have a much more thorough look at it tonight, starting with the comments :)

I'm having a bit of a hard time to reason with the naming and how the Registry / Dispatcher behaves.
The main thing I'm trying to make sure is that we scope it well (like we dont expose to much internals).

Okay, let me share some ideas how I see these changes. Let's start from handling registries in general (on the system level):

The GlobalSystem struct will have an additional field that will store all used registries. To make it fast, it could be declared as the additional hashmap, for example as the DHashMap<RegistryType, Registry> type. The key is the name of registry and the values in this pair is the real DHashMap (perhaps as the reference?) that represents actors which are organized in the certain group with any desired dispatcher implementation.
The registry must be declared as the part of a child definition with the help of the special .with_registry method. For example:fn actors_with_registry(children: Children) -> Children {
    // ...

    children
        .with_registry(
            &Registry::default()
                .with_registry_type(RegistryType::Named("my_group"))
                .with_dispatcher(Box::new(SelectRandomlyDispatcher::new()))
        )
        // Declare the second registry that you want to use here
        .with_registry(
            // ...
        )
        .with_exec(move |_ctx: BastionContext| async move {
            // do something...
        })
}

This behaviour gives two main opportunities:

Declare the used registry just in place with the used actors
Will add the new registry to the GlobalSystem internally (via the private API) if it hasn't added yet. If registries in separate actor declarations have the same the same name, basically it means that they should be organized under the same registry.

P.S. Passing registries by a reference gives an opportunity to organize different children in the same registry and do notification as you would like.
The next part is what available for the actors itself:

They can declare on which registries they want to join (as was mentioned before, use the .with_registry method).
Before starting the actor we will call private API for adding the actor to the declared registries just via the simple for loop. It will be implemented something like this (as the part of the actor's codebase):

pub(crate) fn register_actor {
   for registry in self.registries {
       SYSTEM.register_node(registry.registry_type, ctx.current(), module_path!())
   }
}

The similar stuff applies for the case when we need to unregister the failed/stopped/killed actor: just pass through the given registries an remove the entries from the declared registries.
Any actor will have a new method for communication via Registries. Let's say it will be named as the registry_broadcast, and will require specifying the RegistryType value with the message of the SignedMessage type that you want to pass to dispatcher that will handle the rest of staff. Internally, this registry_broadcast method will pass the message to the GlobalSystem instance so that it could deliver the message to the certain group in registry (or just drop the message if it can't be delivered due unavailability).

Any ideas to make it better are welcome :)

Thanks for such a thorough explanation.
Let’s make sure I got the intention right:
Put a registry index in the GlobalSystem so we can keep the names and handles to each available registry. The registries will be indexed by name.
Allow an actor to be « bound » to a given registry. (So they can listen to registry broadcasts)
Provide a broadcast method to each actor.
Provide a dispatch method to a registry to define the way a registry routes messages to actors.
^ This is the part I’m not really sure I understood correctly. What is dispatch supposed to do ?
Thank’s for your time :)

Put a registry index in the GlobalSystem so we can keep the names and handles to each available registry. The registries will be indexed by name.

Yep, that's correct.

Allow an actor to be « bound » to a given registry. (So they can listen to registry broadcasts)

Correct. And more over, they could react somehow on the "event" when someone added to registry. But perhaps then it make a sense to add another method but for removing an actor from registry. 🤔

Provide a broadcast method to each actor.

Basically it means the legal / public way to communicate with the whole group of actors that were registered in the certain registry. It super useful thing, for example for the cases when the actor who doesn't belong to the certain group could send a message to the desired group with the useful information or want to pass the extracted piece of data to the next stage in your processing pipeline.
However, the logic of how and to whom to send a passed message must be defined in implementation with the help of RegistryDispatcher trait.

^ This is the part I’m not really sure I understood correctly. What is dispatch supposed to do ?

Maybe event better to rename it to the notify instead of dispatch to clarify the purpose of this method. This method is the part of the RegistryDispatcher trait that invokes right after adding the actor to group in the certain registry.
This logic can be used for the cases when you want to do specific logic right after getting knowledge about that someone else was added to the group.

Basically it means the legal / public way to communicate with the whole group of actors that were registered in the certain registry.

Oh that's great indeed. Are there conventions that make it behave so? I don't have a lot of domain knowledge, but I would have maybe considered an enum like (pseudocode):
child.notify(Recipient::Actor("an_other_actor"), message);
child.notify(Recipient::Registry("a_registry_i_dont_belong_to"), message);

This method is the part of the RegistryDispatcher trait that invokes right after adding the actor to group in the certain registry.

So the "javascript" way to name dispatch it would be onNewActor() ?
I never know how to name these correctly, sometimes i go with new_actor_handler or handle_new_actor, or on_new_actor... I m not really sure ^^' but the (really great!) explanation you gave makes me think we wanna convey the meaning in the method name.
If that's the case that would probably allow us to clear the following concern:

they could react somehow on the "event" when someone added to registry.

In pseudo code that could look like:
/// Method that handles logic with registering a new actor.
fn my_super_dispatch(&self, entries: &BastionRegistryMap) {
	for (id, name) in entries.iter() {
		self.notify(Recipient::Actor(name), "new player!");
	}
}

I'm still not sure I understood everything correctly, please let me know if not || if it doesn't make sense ^^

Ok, so after a rough look at the comment and the registry implementation. Registry as a name shouldn't be seen to the user. That is making life quite a bit complicated. So that said:

I would like to keep the registry as an internal name, which is holding the dispatching routes.
I would prefer to have Dispatcher configured with the public API like how you pointed out.

If that's not configured, use the DefaultDispatcher that is using the Default registry.

The ideas above are coming from how Akka works with their Dispatchers. To understand more please head to:
https://doc.akka.io/docs/akka/current/typed/dispatchers.html

Oh that's great indeed. Are there conventions that make it behave so? I don't have a lot of domain knowledge, but I would have maybe considered an enum like (pseudocode):
self.notify(Recipient::Actor("an_other_actor"), message);
self.notify(Recipient::Registry("a_registry_i_dont_belong_to"), message);

There's no a universal way to do it, so I'm just trying to implement a new functionality based on the existing codebase without breaking anything. :)
The main idea for the notify call is somehow to say other actors in the certain registry that someone joined to or removed from the registry. How to react on this type of events, for example send some piece of data for each other actor in the same registry or another one, relies completely on developers implementation.
In the same time the purpose of the broadcast_message method is to pass the message to the given registry with an appropriate message (which is must be of the SignedMessage type that let us to understand from whom the message).

So the "javascript" way to name dispatch would be onNewActor() ?
I never know how to name these correctly, sometimes i go with new_actor_handler or handle_new_actor, or on_new_actor... I m not really sure ^^' but the (really great!) explanation you gave makes me think we wanna convey the meaning in the method name.

How to name handlers for each particular type of events defined by the conventions in your own project. But in the most projects that I was working or faced in the past, quite often started with On* in names for events to keep the codebase clean and readable for others.
I'm not sure that we need the similar convention, because bastion has the handle method, which is used for handling those cases (or similar to) :)
Regarding the last piece of code:
/// Method that lets everyone know there's a new wolf in the pack!
fn dispatch_new_player(&self, entries: &BastionRegistryMap) {
	for (id, name) in entries.iter() {
		self.notify(Recipient::Actor(name), "new player!");
	}
}

At the moment there's no assigned names for actors / supervisors / registries. But it probably has a sense to add a field for this case. The single corner case about I'm thinking about is to how to sent directly a message to an actor (or anything else) by the name without the usage of registry (like how it's done in Elixir / Erlang)

Ok, so after a rough look at the comment and the registry implementation. Registry as a name shouldn't be seen to the user. That is making life quite a bit complicated. So that said:

I would like to keep the registry as an internal name, which is holding the dispatching routes.

I would prefer to have Dispatcher configured with the public API like how you pointed out.

If that's not configured, use the DefaultDispatcher that is using the Default registry.

The ideas above are coming from how Akka works with their Dispatchers. To understand more please head to:
https://doc.akka.io/docs/akka/current/typed/dispatchers.html

It could be renamed to the Dispatcher instead of  the Registry usage in the project. As a developer I only want to configure the dispatcher, and attach to the cluster as is. In the same time, I don't want to impact on this dispatcher directly, but want to provide minimalistic API for the later usage (like the notify someone from the group in registry, and react on join/remove)

It could be renamed to the Dispatcher instead of the Registry usage in the project.
Yes and thank you.

As a developer I only want to configure the dispatcher, and attach to the cluster as is. In the same time, I don't want to impact on this dispatcher directly, but want to provide minimalistic API for the later usage (like the send the message to someone from the group in registry, and react on join/remove)

Let me give one of my use cases also: I want a pool of actors that will have a different kind of dispatching mechanism to their mailboxes. That said I want to implement:

Send incoming message to the actor in the pool which has a smaller mailbox size. OR
Work steal from one of the other actors.

Moreover, I am responding to the high workload and want to increase the throughput by autoscale the actors. Then I want a dynamically resizing pool backed by an actor spawning dispatcher on hog.

Let me give one of my use cases also: I want a pool of actors that will have a different kind of dispatching mechanism to their mailboxes. That said I want to implement:

Send incoming message to the actor in the pool which has a smaller mailbox size. OR
Work steal from one of the other actors.

Moreover, I am responding to the high workload and want to increase the throughput by autoscale the actors. Then I want a dynamically resizing pool backed by an actor spawning dispatcher on hog.

It's a quite interesting idea. However, it means that the dispatcher must be attached to / must be a part of the ChildrenRef struct (that holds the all entire group of the actors), so it could distribute tasks/message based on some strategy, isn't it?
This case can be described with the following example:

We have actors A and B which are belong different groups (or in the same, it doesn't matter for this example).
Actor A sends the message to global registry with the signature something like:

self.broadcast_message(RegistryType::Named("Group X"), message);

Global registry retrieving passing the message to the certain registry with a given name.
Registry with the Group X name passed the message to the supervisor with a Dispatcher.
Dispatcher based on the certain logic passed the message to the Actor B

In graph it will look like:
Actor A  -> Global Registry -> Registry with the Group X name  -> ChildrenRef -> Dispatcher  -> Actor B
However, what ever the case we have, the entry point for dispatching require to have a global registry that holds references of all available actors.
Correct me, please, if I made a mistake or misunderstood.

It's a quite interesting idea. However, it means that the dispatcher must be attached to / must be a part of the ChildrenRef struct (that holds the all entire group of the actors), so it could distribute tasks/message based on some strategy, isn't it?

Either that or Dispatcher encapsulates all *Ref's and wraps their API.

Actor A sends the message to global registry with the signature something like:

self.broadcast_message(RegistryType::Named("Group X"), message);

Forget about showing RegistryType to users call it dispatchers. The method probably be like:
self.broadcast_message(Dispatcher::Name("Group X"), message);

Then this will happen:
Actor A -> Global Dispatcher -> Global Registry -> Registry with the name Group X -> Get the Group X Dispatcher -> ChildrenRef -> Actor B
At least this is what I have in my mind. We can refactor this if there are pitfalls.


[Feature Request]: Redesigning the UI for Prediction Model, What users say and FAQ in Home page with elegant look and better UI Experience

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
The redesign of the Prediction Model, What Users Say, and FAQ sections on the home page focuses on enhancing the visual appeal and user experience. By implementing modern design principles, the sections will be more visually engaging, intuitive, and responsive, allowing users to easily access critical information about the prediction model, customer feedback, and frequently asked questions.
Use Case
Prediction Model Access: Users can quickly understand the capabilities of the prediction model through an engaging layout, helping farmers make informed decisions about crop management.
User Testimonials: Potential customers can easily view organized testimonials from existing users, fostering trust and encouraging new users to explore the platform.
FAQ Navigation: Users can swiftly find answers to common queries in a well-structured FAQ section, enhancing user satisfaction and reducing support inquiries.
Benefits
Enhanced User Engagement: A visually attractive and well-organized design captures users' attention, encouraging them to explore the site further and increasing their time on the platform.
Improved Clarity and Understanding: Clear, concise, and aesthetically pleasing presentations of the prediction model and user testimonials help users grasp key information quickly, leading to informed decision-making.
Add ScreenShots
No response
Priority
Medium
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

you can go ahead.. @rebornstar1