Confusion with Definition of Wasserstein

In the codes, a loss objective named with Wasserstein is defined as follows.
    return K.mean(y_true * y_pred)

After reading the original paper, we know WGAN wants to minimize the Wasserstein Distance:
the difference of expectation of generated samples and expectation of real samples. And why K.mean(y_true * y_pred) could implement such distance?

Have a look at the detailed implementation:
there are two passes to update D, one which maximises the score of real samples and then one which minimizes the score of negative samples.
For real samples y_true = -1, hence we minimize -mean(y_pred) or in other word maximize mean(y_pred). Conversely for fake samples.
All in all, this allows us to maximize (true_score - fake_score).
You could do that in a single pass, concatenating real and fake samples but I have found that this converges less well.

@tdeboissiere Thank you for your quick feedback! Let me summarize your comments and please correct if I am wrong. Our (from the point view of Discriminator) object is to maximize the distance between true_score - fake_score. Let's define y = -1 for those real samples and y = +1 for the fake/generated samples. For the real ones, we have to max y_hat in order to maximize true_score - fake_score, i.e. min -y_hat. Similarly, for those fake samples, we want to min y_hat. We could re-write in a single equation: min y*y_hat.
And one question is: why do you define y_true=-1 for real samples?

y_true does not have any "target" meaning.
Recall that all loss function for keras are minimized. For real samples, we want to maximize K.mean(y_pred). This is equivalent to minimizing K.mean(y_true * y_pred) if y_true = -1. This is why y_true =-1 for real samples

@tdeboissiere Thank you for you explanation! That is really really helpful!


Remove generate data script

What was wrong?
Fixes #366
How was it fixed?

Removes no longer needed generate-data.rs script
Adds quickcheck to fuzz storing data in PortalStorage

To-Do

[x] Add entry to the release notes (may forgo for trivial changes)
[x] Clean up commit history

I think that something inspired by it could make a useful test in trin-core/tests, though.

@mrferris What kind of a useful test were you thinking of? afaict, all the script does is config a PortalStorage and then shove random data into there. I added quickcheck to the PortalStorage::store() test - which I think covers what you're talking about? But lmk if I'm missing your point.


Is meta data set's fo proto maml available?

Is meta data set's fo proto maml available?

perhaps we could do normal proto typical nets and then put highers MAML on top?


wip

May fix https://github.com/flutter/flutter/issues/137184

Closing as succeeded by https://github.com/flutter/flutter/pull/142356


[Enhancement] Remove the partition size display in the explain iceberg scan node

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Currently, to show the partition size when explain iceberg table, we parse the partition values by calling TableScan.planFiles in iceberg jar. this will scan and access all iceberg partitions remote metadata file. This could take a lot of time if the metadata is large.  In iceberg structure, partition is hidden. it will be parsed and transformed according to the partition column data value. Unless planFiles, it's not possible to get it from iceberg metadata file. The hive metastore also doesn't record the partition info.
So we remove the partition size info from the iceberg scan node.
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_admit_test

run starrocks_admit_test

@stephen-shelby I think you'd better cherry-pick this PR to 2.5 and 3.0.

@Mergifyio backport branch-2.5

@Mergifyio backport branch-3.0

run starrocks_fe_unittest

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_admit_test

run starrocks_admit_test


Need  help on my android mobile app project

Hello everyone,
I'm looking for someone's help to look what is wrong with my android project. Basically, i am developing              a incident reporting system. So, on the app, there is a form that needs to be filled by public to report incident if there is a problem with IT security. if the user filled in the form, obviously,my database will automatically update. but when i try to fill in the form, it does not save to the my database. Is anyone willing to check on my app?
im using android studio to develop the app, database MySQL (Openshift). Let me know if there's any inquiries.
I thank you in advance.

why someone is closed my issue??


Sending MediatR INotifications to the client over SignalR

For every INotification you want to send to the client over SignalR, you have to create an INotificationHandler for that specific notification, which then calls the hubcontext to send a specific INotificationMessage (another object alltogether) to the connected clients.
In my app I'm building, I have already quite some notifications like that, and was thinking we could make this probably generic in a way you don't have to create separate INotificationHandlers and INotificationMessages for all the INotifications you want to be sent to the client as well.
In my research around this, I found this article which is looking very close to what we need:
https://remibou.github.io/Realtime-update-with-Blazor-WASM-SignalR-and-MediatR/
There's an issue there though pointed out in the comments... and another pointer to an interesting library in this regard:
https://github.com/KuraiAndras/MediatR.Courier
I think combining those 2 should be able to give a a nice implementation of something like this...

In my app, I have already implemented a "quick and dirty" solution by combining a "catch all" notificationhandler, which checks if the INotification is has a specific interface (IClientNotification) and then uses Mapster to map the INotification to the INotificationMessage. This way I don't have to implement an INotificationHandler anymore for every INotification... but I do still need to create another INotificationMessage object for every INotifcation with exactly the same properties:
public interface IClientNotification<TNotificationMessage> : INotification
    where TNotificationMessage : INotificationMessage
{
}

public class ClientNotificationHandler<TClientNotification> : INotificationHandler<TClientNotification>
    where TClientNotification : INotification
{
    private readonly INotificationService _notificationServuce;

    public AdminEventHandler(INotificationService notificationService) =>
        _notificationService = notificationService;

    public Task Handle(TClientNotification clientNotification, CancellationToken cancellationToken)
    {
        if (clientNotification.GetType().GetInterfaces().FirstOrDefault(i =>
                i.IsGenericType &&
                i.GetGenericTypeDefinition() == typeof(IClientNotification<>)) is { } clientNotificationInterface &&
            clientNotificationInterface.GetGenericArguments()[0] is { } notificationMessageType &&
            notificationMessageType.IsAssignableTo(typeof(INotificationMessage)) &&
            clientNotification.Adapt(typeof(TClientNotification), notificationMessageType) is INotificationMessage notificationMessage)
        {
            return _notificationService.SendMessageAsync(notificationMessage, cancellationToken);
        }

        return Task.CompletedTask;
    }
}

It works well... but I think a solution like explained here is what we really need.
That way we can also abstract away the signalr connection much more nicely on the client side, so we don't have to deal with the HubConnection anymore in the application code. Only handling of events using mediatr, or probably even better using Courier on top...

Oh, an about the INotificationMessage: I've updated that interface to just be a marker interface. There were 2 properties in there:
One was string MessageType, which in every implementation returned the value nameof(SpecificNotificationMessage). Which was then only used in INotificationService, to us as methodName parameter in the HubContext.SendAsync calls.
There, I simply replaced notification.MessageType with notification.GetType().Name in every call to hubContext.SendAsync, which does exactly the same thing (without having to implement a MessageType string on every INotificationMessage...
The other one was just string Message which wasn't actually needed in every INotificationMessage so no need to be on the Interface. One can easily implement it if it's actually needed for a specific INotificationMessage.
Maybe this should be in another issue... but I can create a separate PR for this if you want... just let me know!

Hi @fretje this is very nice...
Just staying away from SignalR becouse of performance issues...
In docs using a seperate SignalR server they suggested..
In my senario many tenant and their branches regularly will use app
and their screens always will  be open.
what you think about network cost?

I think this would be a nice addition

See https://github.com/fullstackhero/dotnet-webapi-boilerplate/pull/472

Hi,
I Am stuck on getting signal r working.
Since the documentation is not ready, any basic steps i can follow ?
Is this the url for signalr ? https://localhost:5501/api/v1/notifications

SignalR should be working out of the box... the url is https://localhost:5001/notifications (not under api/v1). This is configured here: https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Infrastructure/Notifications/Startup.cs

Hi,
Yes. That I got that working.
The main issue is how to publish messages I.e send to all clients from a
controller in the host project. Any sample code ?
I don’t to be able to initialize a notification message .
On Mon, 26 Sept 2022, 20:03 fretje, @.***> wrote:

SignalR should be working out of the box... the url is
https://localhost:5001/notifications (not under api/v1). This is
configured here:
https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Infrastructure/Notifications/Startup.cs
—
Reply to this email directly, view it on GitHub
https://github.com/fullstackhero/dotnet-webapi-boilerplate/issues/440#issuecomment-1258350813,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCE7FQ37J2RJOFGS7QP3E3WAHJPBANCNFSM5NTZH7BQ
.
You are receiving this because you commented.Message ID:
@.***>

NotificationSender notificationSender = new NotificationSender(_hubContext, _currentTenant);
_notificationMessage.Equals(salesOrder);
await notificationSender.SendToAllAsync(_notificationMessage, new CancellationToken());

how can i add a INotificationMessage ?

You create a class that implements INotificationMessage, and then you can send a new instance of that class with the INotificationSender.
You can find an example here:
https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/8d05f1537aefed2ac5c80d51a10e0c8dfb73a802/src/Infrastructure/Catalog/BrandGeneratorJob.cs#L49-L57
and here:
https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/8d05f1537aefed2ac5c80d51a10e0c8dfb73a802/src/Core/Application/Dashboard/SendStatsChangedNotificationHandler.cs#L41

There's also the option to implement both IEvent (as in a domain event) and INotificationMessage, and when you then publish that domain event using the IEventPublisher, it will automatically get sent to all clients via the  SendEventNotificationToClientsHandler (https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Infrastructure/Notifications/SendEventNotificationToClientsHandler.cs)

Hi @fretje
Thank you soo much, it has worked.
The only issue i have now is saving changed to local DB. After sending notifications, i open a queue to save the data to local DB, see below

I get below error

The Mediator.Send method is async, so you have to "await" it...

@fretje still same error

You can't do backgroundwork like that in a controller... a controller object is only created for the duration of a request. So by the time your backgroundthread does its work, the request is finished, and so the controller is disposed, hence the object disposed exception.
You have hangfire to do backgroundwork.

Any code sample to use hangfire in this sample ?
On Wed, 28 Sept 2022, 22:17 fretje, @.***> wrote:

You can't do backgroundwork like that in a controller... a controller
object is only created for the duration of a request. So by the time your
backgroundthread does its work, the request is finished, and so the
controller is disposed, hence the object disposed exception.
You have hangfire to do backgroundwork.
—
Reply to this email directly, view it on GitHub
https://github.com/fullstackhero/dotnet-webapi-boilerplate/issues/440#issuecomment-1261360650,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCE7FXGXYKN3FRNVY77ZD3WASKTVANCNFSM5NTZH7BQ
.
You are receiving this because you commented.Message ID:
@.***>

Any code sample to use hangfire in this sample ?
On Wed, 28 Sept 2022, 22:17 fretje, @.***> wrote:

You can't do backgroundwork like that in a controller... a controller
object is only created for the duration of a request. So by the time your
backgroundthread does its work, the request is finished, and so the
controller is disposed, hence the object disposed exception.
You have hangfire to do backgroundwork.
—
Reply to this email directly, view it on GitHub
https://github.com/fullstackhero/dotnet-webapi-boilerplate/issues/440#issuecomment-1261360650,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCE7FXGXYKN3FRNVY77ZD3WASKTVANCNFSM5NTZH7BQ
.
You are receiving this because you commented.Message ID:
@.***>

Take a look at the generate brand job in the Application project. And look at the Brands controller and the request/handler used to start the job.
There's also some Job services/etc. in the Infrastructure project.
One thing to note with Hangfire is that it's not quite asynchronous, if you find that's an issue, maybe look at Coravel, but I wouldn't worry about it until you need to.

@pyt0xic I checked. I didn't see a hangfire background queue being initiated from any controller

@pyt0xic I checked. I didn't see a hangfire background queue being initiated from any controller

Alright so starting from the Brands Controller the GenerateRandomBrandRequestHandler schedules the Job, which is implemented here, using the Hangfire job service

@pyt0xic this worked perfectly. thank you.
@fretje thank you too for your insights.

You create a class that implements INotificationMessage, and then you can send a new instance of that class with the INotificationSender. You can find an example here:
https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/8d05f1537aefed2ac5c80d51a10e0c8dfb73a802/src/Infrastructure/Catalog/BrandGeneratorJob.cs#L49-L57
and here:
https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/8d05f1537aefed2ac5c80d51a10e0c8dfb73a802/src/Core/Application/Dashboard/SendStatsChangedNotificationHandler.cs#L41
There's also the option to implement both IEvent (as in a domain event) and INotificationMessage, and when you then publish that domain event using the IEventPublisher, it will automatically get sent to all clients via the SendEventNotificationToClientsHandler (https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Infrastructure/Notifications/SendEventNotificationToClientsHandler.cs)

Thanks for the info, but I am really interested in implementing both IEvent and INotificationMessage through SendEventNotificationToClientsHandler, how do I implement both?

Like this:
public class MyEventNotification : IEvent, INotificationMessage
{
}

Like this:
public class MyEventNotification : IEvent, INotificationMessage
{
}

So something like this should work?
public class HomeCreateNotificationEvent : IEvent, INotificationMessage {
  public string Name { get; set; } = default!;
  public string? Description { get; set; }
  public string Phone { get; set; } = default!;
  public string Colour { get; set; } = default!;
  public string Adr1 { get; set; } = default!;
  public string? Adr2 { get; set; }
  public string? Adr3 { get; set; } = default!;
  public string Town { get; set; } = default!;
  public string? County { get; set; }
  public string PostCode { get; set; } = default!;
}

public class CreateHouseRequestHandler : IRequestHandler<CreateHomeRequest, Guid>
{
    // Add Domain Events automatically by using IRepositoryWithEvents
    private readonly IRepositoryWithEvents<Home> _repository;
    private readonly IEventPublisher _publisher;
    public CreateHouseRequestHandler(
      IRepositoryWithEvents<Home> repository,
      IEventPublisher publisher
    ) => (_repository, _publisher) = (repository, publisher);

    public async Task<Guid> Handle(CreateHomeRequest request, CancellationToken cancellationToken)
    {
        var home = new Home(
          request.Name,
          request.Description,
          request.Phone,
          request.Colour,
          request.Adr1,
          request.Adr2,
          request.Adr3,
          request.Town,
          request.County,
          request.PostCode);

        await _repository.AddAsync(home, cancellationToken);

        await _publisher.PublishAsync(
          new HomeCreateNotificationEvent {
          Name = home.Name,
          Description = home.Description,
          Phone = home.Phone,
          Colour = home.Colour,
          Adr1 = home.Adr1,
          Adr2 = home.Adr2,
          Adr3 = home.Adr3,
          Town = home.Town,
          County = home.County,
          PostCode = home.PostCode
        });

        return home.Id;

    }

@fretje Thanks for your help, I have something working... I am so pleased!

Hi there,
I successfully implemented Entity Event handling, but I'm encountering difficulties in sending a text message to all clients using Notifications.INotificationMessage. Could you please provide guidance or share a code sample demonstrating how to send a text message from the controller? Thank you

@tvprasad see a previous comment above: https://github.com/fullstackhero/dotnet-webapi-boilerplate/issues/440#issuecomment-1259314218

@fretje Your prompt response is much appreciated. I had already encountered the suggested solution and had put it into action even before seeking assistance here. Interestingly, the same code appears to be functioning correctly today. It seems that a simple reboot may have resolved the issue. Again, thanks the quick reply.


Update peer dependencies

Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes: #184
Summary:
Please summarize the scope of the changes you have submitted, what the intent of the work is and anything that describes the before/after state of the project.
Update dependencies to the correct version.
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

:tada: This PR is included in version 2.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Preparation of the guide for the meeting (issue #178 related)

The goal is to prepare a guide that covers basics of pandas DataFrame class.

Link to the guide both jupiter&pdf moved to Source, but still the descriptions have to be expanded.
https://cocalc.com/projects/cdcf3856-3e8b-4d1c-bcb2-5c42ba749d83/files/UCZESTNICY/Guide_Source/Source/[PL][Guide]Podstawy używania biblioteki Pandas oraz DataFrame.ipynb
https://cocalc.com/projects/cdcf3856-3e8b-4d1c-bcb2-5c42ba749d83/files/UCZESTNICY/Guide_Source/Source/Output/[PL][Guide]Podstawy używania biblioteki Pandas oraz DataFrame.pdf


In System Tray, cannot open Network, Sound and Power flyout.

The icon responsible for showing the status of each entity does not respond to any click.

I'm exploring a few different possibilities here:

Find a way to make these work
Hide them, and instead rely on a button to open Action Center
Implementing these directly into Cairo.

The problem is they are owned by explorer.exe, which we are trying to replace 😄 I'll keep this issue updated, but in the meantime I highly recommend Volume2 for volume control; it's incredibly flexible and is what I have been using.

Actually, I have an idea and here's my proposal:
Since I've been doing a custom implementation of macOS shells too, I would suggest adding custom execution code for these special entity of Windows 10 tray icon by custom linking them into their corresponding shell commands, such as 'ms-availablenetworks:' for Networks flyout, using system key combinations for Action Center, etc.

Whoops, accidentally closed the issue!

Thanks for reminding me of the available networks URI! For Action Center, I have implemented the ms-actioncenter: URI. It looks like I could use sndvol -f to display a volume slider, albeit the old one. Unfortunately, I haven't found a way to activate the modern Volume or Power flyouts yet.

I think I got a better idea: https://github.com/cairoshell/cairoshell/issues/54

I have started this by adding Action Center support in the latest Milestone 3 release. Please check for updates.

Thanks! Just the flyout issues left then.

You might of already discovered this, but in Windows 10 (and 8 I assume) the explorer shell is built like a UWP app. The flyouts and Action Center and all that are using Xaml rather than GDI+ - so it can't be manipulated easily.
The explorer shell used to be an app appearing in the WindowsApps folder in earlier builds, but it's since been moved somewhere secret. In my research, I think the only way to truly figure out how to hook/simulate this behavior is by finding where the explorer shell UI stuff is and reverse engineering it.

@cosmicdan correct. However in previous builds Windows create an entry point (usually a shell command or keyboard shortcut) that triggers them, and while it isn't a perfect implementation, it serves the purpose. It seems that Microsoft 'forgot' to reimplement them at the moment.

Indeed, Microsoft "forgot" to implement a lot of things in Windows 10's explorer :)
I'll keep an eye on this thread in case somebody finds a solution. I too am working on a shell replacement augmentation (not something that completely replaces the environment like Cairo does but just adds a Gnome-like toolbar to the top Window) so I would be interested in any discovery anybody might make in this area.
Good to see how far Cairo shell has come, though - glad it's still in active development!

I'm not sure the problem is that the flyouts are XAML per se-- here's the issue as I see it (based on my time on the issue, but who knows, maybe I'm way far off):
Explorer's taskbar window (Shell_TrayWnd) is still present when Cairo is open due to all of the features Explorer provides. Cairo gets notification area icons by creating its own Shell_TrayWnd and advertising that a new taskbar was created. Some icons do some positioning and other logic based on the location of Shell_TrayWnd. Unfortunately sometimes Cairo's window is found first, sometimes Explorer's is found first. If Explorer's window is found first, the XAML flyout for Network works just fine even when invoked from Cairo. However, if Cairo's window is found first, for some reason the flyout doesn't open.
This is why the Network flyout works if the "periodically re-establish notification area hook" option is disabled in Cairo settings. All this option does when enabled is re-create and re-advertise a new Shell_TrayWnd every 10 seconds or so (yes, it's nasty), which causes Cairo's Shell_TrayWnd to be found before Explorer's usually. So, disabling this option means that Explorer's Shell_TrayWnd is found first.
To solve this we need to figure out what the flyouts are looking for that Cairo isn't providing an expected result to.

The Network flyout in Windows 10 should be fully functional now in this test build without needing to disable the "periodically re-establish notification area hook" option. Could someone please double-check on their system as well? Thanks!

Network fly out is working but shows up in the same position it would if the windows taskbar is visible.
Sent from my iPhone
On Mar 27, 2018, at 7:31 PM, Sam Johnson <notifications<EMAIL_ADDRESS>wrote:
The Network flyout in Windows 10 should be fully functional now in this test buildhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fci.appveyor.com%2Fapi%2Fbuildjobs%2Fco9l8knpxu1iggp1%2Fartifacts%2FInstaller%252FCairoSetup_64bit.exe&data=02|01||c6f21b7ba16d49045fbc08d5943ae26b|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636577902990007341&sdata=FzXeLXYkMPPMXzGr9j9%2FYtTOOVzz84bkpEEX8CgiSCk%3D&reserved=0 without needing to disable the "periodically re-establish notification area hook" option. Could someone please double-check on their system as well? Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcairoshell%2Fcairoshell%2Fissues%2F50%23issuecomment-376709156&data=02|01||c6f21b7ba16d49045fbc08d5943ae26b|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636577902990007341&sdata=LjtvZyqawngb78swfQmCLvIfsoK4UtAUUKwNFBr2Bsw%3D&reserved=0, or mute the threadhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGxXARL4Ix9LJCuftuNFZn_M9FuK0ZIUks5tisvWgaJpZM4QCTTz&data=02|01||c6f21b7ba16d49045fbc08d5943ae26b|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636577902990007341&sdata=UKRjaQOIjidaaPYix%2BG%2F9SRP3twEiGb5AlIj2pFOoSM%3D&reserved=0.

The working network flyout is in the latest release! Is anyone able to try the Power flyout?

Network flyout working, but icon closes and opens panel.
On first click it opens, if you click further it will close quickly and open.
Didn't try behavior on escape and click outside.
Power flyout not working but right click does (it is a "old" contextual menu, not a black modern one like Network flyout)
Sound flyout not working as before.

Sound is available in the latest build.

A trick to allow the Network and other Explorer notify apps (WiFi) to display in the upper right quadrant.
Quit Cairo, unlock windows taskbar if needed, dock it to the top edge, restart cario. I am investigating a way to do this in code. It seems windows 10 broke moving the taskbar via API

By chance have recent improvements enabled the Power icon to work?

Worked for me. I have also gotten in the habit of moving my windows taskbar to the top of the screen prior to running Cairo to ensure that the shell hosted tray apps appear in the correct location
Sent from my iPhone
On Apr 27, 2018, at 8:17 PM, Sam Johnson <notifications<EMAIL_ADDRESS>wrote:
By chance have recent improvements enabled the Power icon to work?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcairoshell%2Fcairoshell%2Fissues%2F50%23issuecomment-385123907&data=02|01||6eac2647ddb040654af108d5ac9d6b84|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636604714463077160&sdata=odo2iGL9DwJQ6KA%2FWCv9ijHtDuyZQ5rBXhmjySyGIWg%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGxXAbp-9Ao-uIcH7Gqhg_1bKZeIZDYRks5ts7UVgaJpZM4QCTTz&data=02|01||6eac2647ddb040654af108d5ac9d6b84|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636604714463077160&sdata=CmGAP1IRGStUs3d8mRoP7dUGEEjmS6LhAv6WHOOImsI%3D&reserved=0.

@dremin Did you end up finding the ms-actioncenter: URI But for the modern Sound and Power?

@skyborgff I ended up implementing sound another way, and heard that power is working correctly in the latest builds. Are these working for you?

@dremin I'm not using this project, i wanted to know for a project of my own (a rainmeter skin). could you provide me the power URI (if it exists) please?

@skyborgff Unfortunately I did not find a URI for power.


Add xamarin to the client type pattern within the mobile crd definition

Description
xamarin needs to be added to the client type pattern within the mobile client crd definition in order to allow for xamarin support.
Fixes issue:
Error: failed to create mobile client: MobileClient.mobile.k8s.io "test-xamarin" is invalid: []: Invalid value: map[string]interface {}{"kind":"MobileClient", "apiVersion":"mobile.k8s.io/v1alpha1", "metadata":map[string]interface {}{"name":"test-xamarin", "creationTimestamp":"2018-04-23T14:28:19Z", "annotations":map[string]interface {}{"icon":"font-icon icon-xamarin"}, "namespace":"test5", "uid":"91bae668-4702-11e8-b28b-72846aeed9ee", "selfLink":"", "clusterName":""}, "spec":map[string]interface {}{"name":"test", "apiKey":"6a5ff4d6-34de-4df5-b14b-9b533fd8b95f", "clientType":"xamarin", "appIdentifier":"test-package-name"}}: validation failure list:
spec.clientType in body should match 'cordova|iOS|android'

@maleck13 no, the problem turned out to be the minishift addon using the out of date CRD yaml in mobile-cli repo.


[TextField] multiLine TextField loses cursor position on height change

A multiLine textfield (EnhancedTextarea) moves the cursor to the end of the field when a setState is called.  Specifically, if you're working in the middle of a large block of text and you make a change which results in the height of the textarea changing, the cursor will move to the end of the field.
If I comment out the setState call in syncHeightWithShadow the problem disappears.  I'm sure this function is needed...not sure why it's losing cursor position.
    key: 'syncHeightWithShadow',
    value: function syncHeightWithShadow(newValue, event) {
      var shadow = this.refs.shadow;

      if (newValue !== undefined) {
        shadow.value = newValue;
      }

      var newHeight = shadow.scrollHeight;

      if (this.props.rowsMax >= this.props.rows) {
        newHeight = Math.min(this.props.rowsMax * rowsHeight, newHeight);
      }

      newHeight = Math.max(newHeight, rowsHeight);

      if (this.state.height !== newHeight) {
        /*this.setState({
          height: newHeight
        });*/

        if (this.props.onHeightChange) {
          this.props.onHeightChange(event, newHeight);
        }
      }
    }

I'm using version 0.15.0-beta.2.  I did not test on 0.15.0, but I looked through the changes to this file and I didn't see anything related.
Tested in Chrome and Firefox

Fixed by #7006.


Remove an expensive call to flatten in ndarray.init*

I hope this will mitigate https://github.com/owlbarn/owl/issues/453 (@pveber would you mind checking, I cannot run the benchmark at the moment).
Please be careful when reviewing. What was the reason of going through flatten in the first instance?

I have found a moment to run the benchmarks.
With this patch:
❯ dune exec ./owl_perfs.exe mat-mat-mul-small
Estimated testing time 20s (2 benchmarks x 10s). Change using '-quota'.
┌──────────────────────┬──────────┬─────────┬────────────┐
│ Name                 │ Time/Run │ mWd/Run │ Percentage │
├──────────────────────┼──────────┼─────────┼────────────┤
│ lacaml-mat-mat-mul-4 │ 352.58ns │  18.00w │     51.70% │
│ owl-mat-mat-mul-4    │ 681.94ns │ 148.00w │    100.00% │
└──────────────────────┴──────────┴─────────┴────────────┘

❯ dune exec ./owl_perfs.exe vec-init-small
Estimated testing time 20s (2 benchmarks x 10s). Change using '-quota'.
┌───────────────────┬──────────┬─────────┬────────────┐
│ Name              │ Time/Run │ mWd/Run │ Percentage │
├───────────────────┼──────────┼─────────┼────────────┤
│ lacaml-vec-init-4 │ 133.54ns │   9.00w │     43.99% │
│ owl-vec-init-4    │ 303.57ns │  28.00w │    100.00% │
└───────────────────┴──────────┴─────────┴────────────┘

Without this patch:
❯ dune exec ./owl_perfs.exe vec-init-small
Estimated testing time 20s (2 benchmarks x 10s). Change using '-quota'.
┌───────────────────┬──────────┬─────────┬────────────┐
│ Name              │ Time/Run │ mWd/Run │ Percentage │
├───────────────────┼──────────┼─────────┼────────────┤
│ lacaml-vec-init-4 │ 133.63ns │   9.00w │     38.13% │
│ owl-vec-init-4    │ 350.44ns │  32.00w │    100.00% │
└───────────────────┴──────────┴─────────┴────────────┘

~/code/tests/owl-perfs master 22s
❯ dune exec ./owl_perfs.exe vec-init-large
Estimated testing time 20s (2 benchmarks x 10s). Change using '-quota'.
┌─────────────────────┬────────────┬─────────┬────────────┐
│ Name                │   Time/Run │ mWd/Run │ Percentage │
├─────────────────────┼────────────┼─────────┼────────────┤
│ lacaml-vec-init-100 │   399.91ns │   9.00w │     31.22% │
│ owl-vec-init-100    │ 1_280.81ns │  32.00w │    100.00% │
└─────────────────────┴────────────┴─────────┴────────────┘

On https://discuss.ocaml.org/t/working-with-a-huge-data-chunks/3955/10 I have read
Creating a view, e.g., via reshape or sub is usually slow, because it is a custom value and has to be created in the major heap, thus every creating of a bigarray triggers the minor collection. We were addressing those issues by preparing all the views that we need in advance (or having a pool of views). [...]

Maybe this is really the culprit and we need to find an alternative mechanism.

Thanks for this attempt @mseri! I was wondering: the underlying type for matrices could be a sum type, that is a Mat.t could be:
type t =
  | Gen of (...) Genarray.t
  | Mat2 of (...) Array2.t
  | ...

When using only lapack operations, we could then avoid all overhead while keeping the API unchanged (and simple).
On a completely orthogonal note, I have found extremely useful to type vectors and matrices operations in a rather strict way, it showed me lots of bugs compared to using owl API directly.

On a completely orthogonal note, I have found extremely useful to type vectors and matrices operations in a rather strict way, it showed me lots of bugs compared to using owl API directly.

I think it is worth opening an issue about this (See now https://github.com/owlbarn/owl/issues/480). I have also been coming back and forth to this issueFrom time to time.

the underlying type for matrices could be a sum type, that is a Mat.t could be:
type t =
  | Gen of (...) Genarray.t
  | Mat2 of (...) Array2.t
  | ...

When using only lapack operations, we could then avoid all overhead while keeping the API unchanged (and simple).

This is an interesting idea. It may be worth to try and give it a go at a certain stage. We are in principle free to rebind operations in the modules with more efficient ones. Lots of this code could actually be auto-generated with a suitable ppx

An orthogonal dimension where typing could in principle help improve numerical efficiency is to include matrix structure in the types. LAPACK/BLAS have specialized routines for diagonalizing/decomposing e.g. symmetric or hermitian matrices. some matrix functions are known to preserve these properties, which could also be propagated in their (GAD)type in principle. e.g. eigenvalues of hermitian matrices are real. i think there is/was a ruby numerical library that did something like this, but could not confirm this now when googling Numo.
of course, a somewhat overlapping issue is that matrices with a certain structure can also be stored in various optimal ways (e.g. bands, only one half of symmetric matrices, etc). afaik it's an open question whether a system that tries to automatically dispatch matrices to/from different sparse storage formats according to their structure, can be useful. it might be doing more harm than good by making memory usage unpredictable.


How Do We Submit Policy Exemption Creation

Hi,
The document defines the json structure for exemption object, but how do we submit the creation? from portal there is no plus sign for creation

az cli does not sub command for exemption either.
az policy --help
Group
az policy : Manage resource policies.
Subgroups:
assignment     : Manage resource policy assignments.
definition     : Manage resource policy definitions.
event          : Manage policy events.
metadata       : Get policy metadata resources.
remediation    : Manage resource policy remediations.
set-definition : Manage resource policy set definitions.
state          : Manage policy compliance states.
[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e9a6e587-b217-21c8-a0b5-b76c81e23736
Version Independent ID: bab4cdb2-0933-c2c1-fe2b-559dbc4353d4
Content: Details of the policy exemption structure - Azure Policy
Content Source: articles/governance/policy/concepts/exemption-structure.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@RonnieQuan Thanks for your comment. We will review the issue and get back to you shortly.

@RonnieQuan In order to create an exemption , you can do it by traversing to Compliance Section or Assignment Section.
Snapshot of selecting Policy Initiative from Compliance Section for creating exemption:

Snapshot of selecting Assignment from Assignments Section for creating exemption:

To create exemption ,click on "Create exemption" . Upon click, you will be asked to select Exemption Scope which can be management group, subscription, resource group or resource and Exemption Category which can be Waiver or Mitigated as per your requirement.

Upon clicking "Review + Create" the Exemption is created which can be viewed from Exemption Tab as shown in below snapshot.

@DCtheGeek Can you please update the document on how to submit policy exemption from portal?

@RonnieQuan Did you get chance to view my previous comment ? Let me know if you have further questions.

@SwathiDhanwada-MSFT Yup! I've got a Task to add those details.  It can also be done through Azure Policy REST API. As this is a suggestion for new content for which I already have a Task, and not an issue with existing content, I'm going to close this issue.  Thanks!
@MicrosoftDocs/azure-cxp-triage #please-close


With iOS 14 Beta 2 only black screen at startup

No further info as I am not a dev, but it seems that there has something being changed in iOS14 which causes this app to black screen on startup.
No Error message is thrown, it just stays in the black screen.

Please see our FAQ: https://www.coronawarn.app/en/faq/#ios_14_beta
Mit freundlichen Grüßen/Best regards,
SW
Corona Warn-App Open Source Team


[stable/prometheus-operator] Failed to upgrade to 8.10.0 due to immutable field changed

Describe the bug
Failed to upgrade to 8.10.0 due to immutable field changed
Version of Helm and Kubernetes:
helm v3.1.1
k8s: 1.14
What happened:
When upgrade release from 8.7.0 to 8.10.0, got below error due to selector field changed
# helm upgrade --installl prometheus-operator .
Error: UPGRADE FAILED: cannot patch "prometheus-operator-grafana" with kind Deployment: Deployment.apps "prometheus-operator-grafana" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"prometheus-operator", "app.kubernetes.io/name":"grafana"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

I am also getting this error. I had to rollback
[helm-operator-77cb687cc7-nn4pz] ts=2020-03-10T21:40:21.248468381Z caller=helm.go:69 component=helm version=v3 info="error updating the resource \"prometheus-operator-grafana\":\n\t cannot patch \"prometheus-operator-grafana\" with kind Deployment: Deployment.apps \"prometheus-operator-grafana\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app.kubernetes.io/instance\":\"prometheus-operator\", \"app.kubernetes.io/name\":\"grafana\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable" targetNamespace=monitoring release=prometheus-operator
[helm-operator-77cb687cc7-nn4pz] ts=2020-03-10T21:40:21.32830952Z caller=helm.go:69 component=helm version=v3 info="Created a new Ingress called \"prometheus-operator-grafana\" in monitoring\n" targetNamespace=monitoring release=prometheus-operator
[helm-operator-77cb687cc7-nn4pz] ts=2020-03-10T21:40:23.968396896Z caller=helm.go:69 component=helm version=v3 info="warning: Upgrade \"prometheus-operator\" failed: cannot patch \"prometheus-operator-grafana\" with kind Deployment: Deployment.apps \"prometheus-operator-grafana\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app.kubernetes.io/instance\":\"prometheus-operator\", \"app.kubernetes.io/name\":\"grafana\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable" targetNamespace=monitoring release=prometheus-operator
[helm-operator-77cb687cc7-nn4pz] ts=2020-03-10T21:40:24.572927983Z caller=release.go:216 component=release release=prometheus-operator targetNamespace=monitoring resource=monitoring:helmrelease/prometheus-operator helmVersion=v3 error="Helm release failed" revision=8.12.1 err="failed to upgrade chart for release [prometheus-operator]: cannot patch \"prometheus-operator-grafana\" with kind Deployment: Deployment.apps \"prometheus-operator-grafana\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app.kubernetes.io/instance\":\"prometheus-operator\", \"app.kubernetes.io/name\":\"grafana\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable"

I was able to upgrade after doing the following:
# get latest successful deployed revision number
helm history prometheus-operator -n monitoring
# rollback to that revision number
helm rollback prometheus-operator <revision number> -n monitoring

# delete grafana deployment and ingress
kubectl delete deployment.apps/prometheus-operator-grafana -n monitoring
kubectl delete ingress/prometheus-operator-grafana -n monitoring

This also affects the grafana pvc
$  helm upgrade --install prom --namespace monitoring -f values.yaml stable/prometheus-operator --version 8.12.1
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
Error: UPGRADE FAILED: failed to replace object: PersistentVolumeClaim "prom-grafana" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims && failed to replace object: Service "prom-grafana" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Deployment.apps "prom-grafana" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"prom", "app.kubernetes.io/name":"grafana"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

This I would not want to delete and recreate.

@stefanandres it's due to #17806 PR. You can just set persistence.storageClassName with default value in HELM values to bypass the error.

@kam1kaze I already have grafana.persitence.storegeClassName set to workaround the #17806 issue. This here seems to be another issue.

I've now used a hacky workaround for this issue to upgrade:

# Backup old pvc data to local
# Change pod name
kubectl cp -c grafana prom-grafana-65977b8676-hxc74:/var/lib/grafana/ grafana

# Delete immutable parent objects
$ kubectl delete deployments.apps  prom-grafana
kudeployment.apps "prom-grafana" deleted
$ kubectl delete ingress prom-grafana
kubeingress.extensions "prom-grafana" deleted
$ kubectl delete pvc prom-grafana
persistentvolumeclaim "prom-grafana" deleted

$ helm upgrade --install prom --namespace monitoring -f values.yaml stable/prometheus-operator --version 8.12.2

# Restore grafana pvc
# Change pod name
kubectl cp grafana/ -c grafana prom-grafana-588f59668b-p9rrq:/var/lib/

# Restart grafana to read in restored data
kubectl rollout  restart prom-grafana

Just ran into the same issue.
I would very much like this to be resolved in a proper manner since this is a breaking change. Forcing user to delete/restore their stateful data for an upgrade is not something I'd like my users to encounter in a minor release.

Same error here, trying to update from 8.9.2 to 8.10.0.
I don't want to play with those hacky workaround, official fix is more than welcome. Thank you

In the Grafana chart, the workaround is using the --force flag when doing the helm upgrade to force the label change https://github.com/helm/charts/tree/master/stable/grafana#to-500
I haven't tried the workaround yet though

Unfortunately --force appears to be just a wrapper for kubectl replace --force i.e., delete and recreate. Which is the same as the workaround above does.

@Arabus I just tried the --force flag and the pvc was not deleted and recreated. If it were, wouldn't I see the Age reset?

The labels were updated as well

Hello!
I have the prometheus-operator in my helmfile.yaml and tried to upgrade from 8.9.3 -> 8.10.0
For the prometheus-operator release i set the option force: true, but i still have problems with the PersistentVolumeClaim:
in k8s/helmfile.yaml: failed processing release prometheus: helm exited with status 1:
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
  Error: UPGRADE FAILED: failed to replace object: PersistentVolumeClaim "prometheus-grafana" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims && failed to replace object: Service "prometheus-grafana" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "prometheus-kube-state-metrics" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "prometheus-prometheus-node-exporter" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "prometheus-prometheus-oper-alertmanager" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "prometheus-prometheus-oper-operator" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "prometheus-prometheus-oper-prometheus" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Deployment.apps "prometheus-grafana" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"prometheus", "app.kubernetes.io/name":"grafana"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

--force does not seem to do the trick with helm-3. The only workaround I found is: https://github.com/helm/charts/issues/21200#issuecomment-600023504

Any work around ? or The hack  is the only way out ?

This is still an issue.

Just hit this as well.

Just hit this as well.

@saixiaohui This won’t be fixed in this chart as helm/stable is not being maintained any more.
You can use the hack by @stefanandres to update to a newer version, but you should also switch to kube-prometheus-stack if you can.


return cost_dual in the solution

Thank you for the project. It is both fast and stable for our usage.
Could we add the cost_dual in the solution? (and the Python API )
https://github.com/oxfordcontrol/Clarabel.rs/blob/b6f7bf9be089ee479191570f7acdc01bff9dcdda/src/solver/implementations/default/solution.rs#L61
https://github.com/oxfordcontrol/Clarabel.rs/blob/b6f7bf9be089ee479191570f7acdc01bff9dcdda/src/python/impl_default_py.rs#L68
Use case:
Sometimes, we got AlmostSolved. Currently, we print a warning message for ourselves and recheck manually later.
However, from the the value returned in solution, we don't know the tol_gap, so we would need to regenerate the whole data and re-run the solver with verbose=True to get the that information.
Ideally, we would like to investigate cases that has wider gap, e.g. we would like to check cases with 5e-5 gap instead of 1.1e-8 case. But currently, we would have to run the solver again first to know that.
Another benefit is that, we probably can downgrade the 1e-7 case from warning to info. (We still want to keep the 1e-8 for tol_gap so the solver tries harder instead of declare optimal at 1e-7)

Thank you for fixing this so quickly.


Fixed streaming server connection error not getting propagated.

[FIX #22] Added error checking on stan connection.
[CHANGED] Bumped version

Coverage decreased (-2.1%) to 93.575% when pulling 5f9f81fe50f7fe73446f99ef6afe0334468de84f on duplicate-clientid-must-fail into 9d5a6ac90a462181e0c9565e753cbaf37c501bd1 on master.

Coverage increased (+0.4%) to 96.089% when pulling 9d36921eb844ddc3305309fe2490cf46d5ccdbb0 on duplicate-clientid-must-fail into 9d5a6ac90a462181e0c9565e753cbaf37c501bd1 on master.

LGTM.

LGTM


Can't compile project which includes uWS

I started writing a game server built with uWS. I can't compile it, I'm using CLion IDE (on Ubuntu) and the compiler gives me this:
error while loading shared libraries: libuWS.so: cannot open shared object file: No such file or directory

Here's my CMakeLists.txt:
cmake_minimum_required(VERSION 3.6)
project(GameServer)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp)
add_executable(GameServer ${SOURCE_FILES})

target_link_libraries(GameServer uWS)
target_link_libraries(GameServer z)

I had to add libz to my CMakeLists because the compiler said it's missing.

These issues are not caused by uws and should not be posted here. You have general programming issues to solve yourself.

@alexhultman I think you should add libuWS.so to /usr/lib (not lib64) because gcc doesn't check lib64 for default as far as I know.


fixed breadcrumb styling on screens w/o listnavs

Issue: #8021
Old:

New:

@miq-bot add_label ui, bug, topology

cc @abonas

@epwinchell great :)
how the topology looks like? I see above only dashboard samples.
cc @zeari

@abonas screenshot added

@epwinchell fantastic!


Set defaults recursively

Without the patch, when you set defaults like this:
$.fn.select2.defaults.set("ajax--delay", 250)
$.fn.select2.defaults.set("ajax--minimumResultsForSearch", 2)

you get defaults == ajax: { minimumResultsForSearch: 2 } (delay is dismissed).
This pull request includes a

[x] Bug fix
[ ] New feature
[ ] Translation

The following changes were made

Set default options recursively (so that you can set ajax defaults)

I'm not quite convinced that this is a bug.  Isn't set supposed to override, rather than extend?

Actually, this is a duplicate of #4364, except that #4364 also includes some additional tests.


Is it useful IMemoryAllocater.CopyTo(out Span) ?

I think returning Span is not good because it looks like reallocating the memory.
Returning byte[] is good solution and better than doing Span.

I will change the API in Memory Lock 2.

Close this because it was merged #19 .


Possible To Span Multiple Files?

Hi,
Wondering if it's possible for code to span multiple groovy files, or is each file evaluated in isolation?
I'm thinking it would be good to offload some repetitive functions into a single file and be able to reference those functions from other files.

See #63. Until that is fixed, I don't think it's currently possible to "share code". I can possibly add a feature that disables the sandbox (which you can do with repos where you trust what goes in).

Ah so this is also related to my other issue then? I did see that the sandbox code runs each file independently so I assumed this was the case for sharing code amongst files. Wasn't sure it was related to the sandboxed methods though.

As of the 2.x release, there is no more sandbox. Theoretically, you should be able to load trusted files.

As of the 2.x release, there is no more sandbox. Theoretically, you should be able to load trusted files.

Closing this for now, but if you aren't able to get this working now that the sandbox is gone you can reopen this and report what happened.

Closing this for now, but if you aren't able to get this working now that the sandbox is gone you can reopen this and report what happened.


LLVM ERROR: Symbol not found: __svml_cosf8_ha

I'm getting the same error. I had previously gone through a ton of other problems trying to get this to work and I finally thought it had a chance, as the custom nodes were all installed. But now it runs into this error.
ComfyUI in a virtual environment
Python 3.10.11
Torch 2.1.0
Torchvision 0.16.0
Torchaudio 2.1.0
Xformers 0..0.22.post7
Cuda12.1
RTX 4090
Windows 11


Render app inside custom html element

Have not found anything like that (yet).
Is it possible to render an app inside a custom html element, not on the body ?
Something similar to react

runApp(App(), root: '#root");

It could help integrating flutter widget into existing Angular Dart app

This should also enable developers publishing apps as web components.

If this is easier to do, than #32326 I would go for it
Like, you can have half of screen covered with  tag and another one with flutter
Or put  as background, and make flutter view transparent

This would be really nice, for example if you use bootstrap for your website and want to add a flutter app under the boostrap navbar, so it will fit seamlessly inside your page. In this case the flutter app has to be rendered under the ....

Is there some news about this feature?? How can I set root html element of app?

No progress yet. The only workaround we're aware of is to put the Flutter app in an iframe and communicate with the hosting page via Window.postMessage.

@yjbanov Is anyone working on right now? A few weeks ago I implemented this for integration with Angular components and it worked quite well.
As this would be breaking change (I guess we can't use body anymore) - all examples would need to apply the change

@maszhin Nobody on the team is actively working on this.

@yjbanov Thanks. I will send PR next week

@maszhin any news in regards to the PR ?  😄

While we welcome pull requests, I'd like to give a heads-up that this may not be a small project. To implement this correctly we need to make sure all of the following work correctly between the non-Flutter host content and the hosted Flutter app:

Gesture detection
Accessibility
Layout: we will likely have to measure the host page before rendering a Flutter frame because Flutter uses an open layout system. This needs to be done carefully to avoid performance issues.
App lifecycle: how to properly control the launch and shut-down of a Flutter app.
CSS encapsulation
<meta name="viewport"> configuration that works across Flutter and non-Flutter content.

These are just first things that came to my mind.

Any update on this feature ? This will enable flutter web to integrate with other product effectively.

Any update on this feature ?

As for today is there any documented workaround for using an iframe inside a js framework (Vuejs for example) ?
It's kind of hard to make the iframe work just by putting it inside some html template or component. Mainly because it seems the framework do some internal operations with other local js file (like the main.dart.js provided with the Flutter web build that cannot be loaded it seems).
Having an example of how to integrate this iframe with theses framework would greatly help.

I tried with iframe but while you build the flutter web it creates a web socket so you which makes you build the project and use the web in some web server like express.. from there only I was able to access the iframe.
Now can anyone suggest the flutter equivalent for receiving data in iframe

I'd like to note that this scenario is one of the three noted on https://flutter.dev/web.

In this early stage of development, we envision the web version of Flutter being valuable in many scenarios. For example:

[...]
Embedded interactive content - Flutter provides a powerful environment for creating rich, data-centric components that can be easily hosted within an existing web page. Whether for data visualization, an online tool like a car configurator, or an embedded chart, Flutter can provide a productive development approach for embedded web content.
[...]

I know the site says "envision", but still -- we might be setting expectations too high over there. Should we update it? cc @sfshaza2

For anyone that is curious here is how you can render a flutter app inside of a webpage.
https://github.com/rodydavis/flutter_web_component

Hey @rodydavis, could you please explain in more detail how this is supposed to work? I don't really get it. 😄

For anyone that is curious here is how you can render a flutter app inside of a webpage.
https://github.com/rodydavis/flutter_web_component

Is it possible to communicate between the two applications? Like passing in data to the Flutter App?

@rodydavis' example is also using an iFrame to embed the Flutter app (see https://github.com/rodydavis/flutter_web_component/blob/master/web/flutter-app.js#L16). It's actually using a custom HTML element, but it does not mount the Flutter app into the existing DOM.
@yjbanov For existing applications it might be interesting to embed Flutter apps natively. E.g. speaking of React application where parts of the application are meant to be replaced by Flutter in the future. If the communication between Flutter Web and the (legacy) React application would be seamless, you could trigger Toast notifications or similar UI behavior. This could simplify the gradual switch to Flutter Web 😉
Is there a good resource about the Flutter Web internals and how it currently "mounts itself into the DOM"?

Are there any updates on this topic?

any news? I want this for some of my projects...

any news? I want this for some of my projects...

No progress has been made yet, unfortunately. However, as an initial step, we do plan to try wrapping the Flutter app into a web-component soon. Our immediate motivation is to switch to <slot> for embedding platform views. It should (:crossed_fingers:) fix a lot of platform view issues (arbitrarily reloading iframes, blinking video tags, lost DOM state), but it's also a more idiomatic approach on the web these days. Even though by itself it does not provide support for custom host element, it will get us closer architecturally. The next step after that would be to remove our dependency on the  tag.

No progress has been made yet, unfortunately. However, as an initial step, we do plan to try wrapping the Flutter app into a web-component soon. Our immediate motivation is to switch to <slot> for embedding platform views. It should (:crossed_fingers:) fix a lot of platform view issues (arbitrarily reloading iframes, blinking video tags, lost DOM state), but it's also a more idiomatic approach on the web these days. Even though by itself it does not provide support for custom host element, it will get us closer architecturally. The next step after that would be to remove our dependency on the  tag.

hi any updates? flutter 2.0 has released for weeks and web is stable now!

hi , can someone expand how to add 2 widget in 1 html ?

Hi there, we are also interested in this topic. Any plans to support this in the nearest months?

Maybe a flutter app can be packaged into an npm package? Anyone tried that? Would love example code.

Hi there everyone !
Before Vue became very popular, I remember that this capability of injecting Vue into any webpage really convinced me to invest the time and energy to learn and understand Vue.
With it's popularity now, it seems like I was not the only one !
Anything I can do to help, please let me know. I would love to extend our value proposition of flexibility into this domain !

Hi everyone! I'm new to Flutter. I'm looking for a good alternative to StencilJS which I primarily use to build web components. It would be awesome if I could create web components using Flutter instead.

Hey @sfmskywalker Flutter does not use or create web components. So you'll need to look elsewhere for this feature. I would not consider Flutter an alternative to StencilJS.
Also please be aware that this issue page is not the place to ask questions like this. People who are subscribed to updates on the status of this issue get emails for every comment posted here. There are dedicated community forums where you can ask questions about Flutter vs X framework and things of that nature. I'll link them below. Cheers!

Flutter Discord Server
FlutterDev Subreddit
Flutter Gitter Community
Flutter Google Group

I've managed to specify where Flutter needs to attach itself onto.

dartMainRunner(main, args):
if this function is defined, the Dart [main] method will not be invoked
directly. Instead, a closure that will invoke [main], and its arguments
[args] is passed to [dartMainRunner].

This lets us hijack the execution, and by monkey patching the appendChild function, we can specify the output instead of the default html body.
script on index.html or somewhere global.
      let mainDartRunner;

      function makeApp(el) {
        const originalAppendChild = document.body.appendChild;
        let shadow = el.attachShadow({mode: 'open'});

        document.body.appendChild = function appendChild(...args) {
          el.appendChild.apply(shadow, args);
        };

        mainDartRunner();

        document.body.appendChild = originalAppendChild;
      }

      function dartMainRunner(main) {
        mainDartRunner = main;
      }

Then in React (or JS) we can do:
function App() {
const ref = useCallback(node => {
 if (node !== null) {
   const editor = window.makeEditor(node);
 }
}, []);

return
}

The flutter element is positioned absolute, so we do need to specify our parent div to be position: relative.
Haven't tested it fully, but seems to work.

Hi, @laurensdewaele. Do you have some code example (repo) somewhere?

hi any updates?  we have the same problem~

@laurensdewaele 's solution is perfect!

I have built a working website using solutions by @yjbanov & @rodydavis. It uses the following:

Jekyll: to generate the static pages
Web component: to render Flutter app inside a custom element
window.postMessage: to communicate between Flutter and JS.

See the source code for more info.

I had a little success with the method described by @laurensdewaele.
Run flutter build web then add the following below the opening body tag of index.html:

Html content

However, it throws the cursor position out on the Flutter app.

Has there been any progress on this issue or suggested workarounds?
It would be a huge help in using Flutter in more places. We have the issue of being forced to use iFrames and this is fair from ideal as the iFrame then consumes all scroll events blocking the parent page scroll if the cursor is over the iFrame. See this issue here:
https://github.com/flutter/flutter/issues/78216
The combination of this issue and the iFrame issue make embedding Flutter in web pages unnatural.

Is there any update? Our business has also encountered this problem, we hope it can be supported by flutter team as soon as possible.

I'm working on this feature. It is not trivial because we need to undo the assumption that flutter can take over the whole page to going to just a single element. This has implications for:

What can flutter/can't flutter do in the containing DOM. We go from having full control of the body tag to "don't touch anything outside of your container"
Event handling. Right now we subscribe to any events we want anywhere we need on the document. We won't be able to do that anymore. Events like window "resize" will need to be synthesized using MutationObservers in the container, and there's probably many many many edge cases that I haven't thought of.
Routing. How can we "change pages" in the embedded flutter app, if it can't take control of the URL. Do we need a new programmatic Router app that injects navigation events into Flutter from JS? (unknown!)
Others?

I wrote a "design" document about this a while back, but it probably still contains more questions than actual answers at this point:

Astral Projections for Flutter Web: Enabling "out-of-body" experiences for Flutter Web apps

The first step for this (embedding flutter through a JS API) is already release and somewhat stable. It is the default code when doing flutter create a Flutter Web app.
The next step of the work to isolate the code that decides where to modify the DOM, and where to attach events and make it configurable (we need to fall-back to the old behavior, unless users want to opt-in to the new target). Currently it's scattered anywhere it was needed on the engine. For a more or less comprehensive (albeit probably outdated) list of the places where we subscribe to HTML events, check the appendix of the above doc :)
As usual, suggestions are welcome!

@ditman Thanks for sharing the info.
One thing I don't see mentioned in the doc is the dynamic height of the element. I want to have a webpage with html header, flutter app with SingleChildScrollView with a column and html footer. I'm hoping the height of the flutter element could be adjusted dynamically so the page looks cohesive to the user.
Is that something in scope?

@ditman Thanks for the update.. great to hear work is progressing on this.
As this still sounds a way off from being implemented is there a parallel project that we can help with to improve the experience of using Flutter in an iFrame? This issue makes iFrames far from ideal with Flutter:
https://github.com/flutter/flutter/issues/78216
Thanks

I'm hoping the height of the flutter element could be adjusted dynamically so the page looks cohesive to the user.
Is that something in scope?

@terryl1900 yes, the flutter app will completely fill whatever container it is rendered in (even when said container resizes, because it is resizing with the window or something).
It is unclear if we'll be able to do the opposite: resizing an element to fit a flutter app that is wider/taller than the allocated space from the webapp (like an image expanding a DIV, for example). That needs more investigation!

I would love to know a solution to do this.

@ditman Any updates? :-)

I'll get on a first prototype of this right after I get a first version of this out:
https://github.com/flutter/flutter/issues/88084
(The Google Identity Services has a hard deprecation deadline, and people will need time to migrate)

I've written a quick draft design doc, check it out here:

HTMLElement Add-to-App, still WIP, at some point will be integrated with the flutter.dev design docs page.

The 🦅 has landed. Soon in a Flutter master channel near you! (Please, do report issues!)

@ditman This seems to fail when a plugin uses the engine in its itializer
 Error: LateInitializationError: Field '_dimensionsProvider' has not been initialized.

For example, https://github.com/fluttercommunity/flutter_sms/blob/fb17e22c47e3538ffd0ace48bac81a6c78cf31d6/lib/flutter_sms_web.dart#L10

also, is there a way to render to multiple elements? or just one

@statop why does the plugin need to do that? The bindings will be initialized by the engine at the right time. I've only seen that explicitly called in tests.
For now, only one element. Multiple elements is next in the roadmap.

I agree, it's not ideal, it seems that plugin commented it out and never released a version with that change.
Thanks for the update on the roadmap.

@statop thanks for giving this a shot! Indeed it's for now only in the master channel, but it'll eventually roll to the new stages.

We maintain a very (very) large Angular application with 1400+ libraries of components.
We would like to make the migration to Flutter.
If Flutter could work natively with web-components, where individual widgets (not entire apps) could be exported as different Web Components, the migration to flutter would be seamless.
We'd need:

Loading the flutter engine as an ES Module
Ability to lazy-load the web-components exported by Flutter one at a time (as single ES Modules ideally)

If this was possible, we'd probably eventually migrating our entire application to Flutter.

@bryanrideshark might not want to use flutter if web components is your goal. Or if a web app is your goal in general. I'd check out https://lit.dev instead.

Does anyone have a working example of this as a Flutter web project, please? I am trying to deploy but am slightly confused by the design doc. I'd just love to see what a finished index.html looks like following this change and would love to understand how it can be deployed without utilising an iframe. Many thanks

@louisifn here's the source code of the Demo that was shown on stage in Flutter Forward:
https://github.com/flutter/samples/tree/main/experimental/element_embedding_demo

@ditman please do you know when this feature will be stable?

@louisifn check out these !
Flutter Web Example Landing Page
https://flutter-web-example.netlify.app/#/
https://github.com/Team-Crushing-It/seamless
Custom-Embedded Flutter Rive Animation
https://continualcare.org/
https://github.com/Team-Crushing-It/animated_logo_continual_care
Web Admin Page for Hello Wine
https://hello-wine-admin.netlify.app/#/
https://github.com/Hello-Wine-Games/hello_wine_admin

@sammy4gh the feature as is now will show up in the next stable release. Stable releases happen once a quarter more or less.

Hey Gene,
I notice it still steals all scroll events, just like when in an iFrame.
Is that fixable now? The stealing of scroll is probably the biggest issue
we have with Flutter in iFrames.
Thanks,
On Wed, 22 Feb 2023 at 18:56, Gene @.***> wrote:

@louisifn https://github.com/louisifn check out these !
Flutter Web Example Landing Page
https://flutter-web-example.netlify.app/#/
https://github.com/Team-Crushing-It/seamless
Custom-Embedded Flutter Rive Animation
https://continualcare.org/
https://github.com/Team-Crushing-It/animated_logo_continual_care
Web Admin Page for Hello Wine
https://hello-wine-admin.netlify.app/#/
https://github.com/Hello-Wine-Games/hello_wine_admin
—
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/32329#issuecomment-1440625421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGTXCVJO7TOE4VXJCJ7STDWYZONPANCNFSM4HLTRQYQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@louisifn here's the source code of the Demo that was shown on stage in Flutter Forward:
https://github.com/flutter/samples/tree/main/experimental/element_embedding_demo

@rpk98c check out this !

Does anyone have a working example of this as a Flutter web project, please? I am trying to deploy but am slightly confused by the design doc. I'd just love to see what a finished index.html looks like following this change and would love to understand how it can be deployed without utilising an iframe. Many thanks

Check out this: https://geneyllanes.super.site/tutorials/hosting-flutter-web-on-netlify-correctly

@louisifn here's the source code of the Demo that was shown on stage in Flutter Forward:
https://github.com/flutter/samples/tree/main/experimental/element_embedding_demo

@ditman @Gene-Dana   These are brilliant, thank you both for all your input. Fully brought my understanding into operation.
I did also attempt to stop Flutter from absorbing scroll events mentioned by @rpk98c and noticed how the element_embedding_demo does still absorb all scroll events. The only way I have been able to negate this problem so far is by catching all scroll events within the flutter embed and passing them back up to the parent. This works fine for mouse scroll events with a Listener listening to onPointerSignal. I was unable however to do this with mobile scroll events as onVerticalDragUpdates operates on all devices and interrupts other touch events - even with delta strength restrictions.
My other question is, have any of you been able to disable scroll events from an embedded flutter component or do you have any better workaround to this, as this particular solution is pretty hacky?
Many thanks.

@Gene-Dana yes, the way that you embed flutter doesn't change how it handles mouse events (other than attaching the listeners to slightly different parts of the DOM).
For now, we aren't handling well the case where flutter needs to scroll internally AND the external page needs to scroll.
It's a very similar problem to what an IFrameElement would have (except the browser can know when an iframe element has stopped scrolling, and can continue scrolling outside of it).

@ditman Without fixing the scroll issues what are the benefits of this over an iframe? I appreciate it's a little nicer but I was of the belief this would be addressing the long running complaints for Flutter absorbing scroll events when in an iFrame
https://github.com/flutter/flutter/issues/78216

For now, we aren't handling well the case where flutter needs to scroll internally AND the external page needs to scroll.

I would argue it's a bug even if the Flutter app doesn't need to scroll and only the web page needs to scroll. As soon as the mouse goes over the Flutter element you can no longer scroll the web page, making the whole site feel broken. For example, hover your mouse over a Flutter element (which needs on scrolling) and then use your scroll wheel to scroll the web page. The page doesn't scroll making the whole site feel broken as soon as a Flutter element exists on the page.

I would argue it's a bug even if the Flutter app doesn't need to scroll and only the web page needs to scroll.

@rpk98c No need to argue, it's a bug. It's also not trivial to fix.
My hunch is that we'll need the framework to tell the engine that the user is hovering over something that may/may not be scrollable of an app, and then use that on the engine to turn on/off the scroll event handler, but I don't even know how feasible my solution is (or how performant).
While I was experimenting with the new embedding, I tried letting 30% of the scroll events unhandled around here, I think, and scroll would "work" (only at 30% of the normal rate, of course), so I guess that's a clue.

The whole point of using web components in flutter, is to allow the strangler vine refactoring pattern to be used.
You can't shift a project with 1000 components to Flutter all at once. But if you could convert a single web component at a time, then you could do it.
We'd love to adopt flutter - but we're not going to take our product offline for two years to do a complete rewrite. Nor is any other sensible SAAS platform.

but we're not going to take our product offline for two years to do a complete rewrite.

I'm not sure I understand your problem right now. How are embeddable widgets not a valid solution?

Without fixing the scroll issues what are the benefits of this over an iframe? I appreciate it's a little nicer but I was of the belief this would be addressing the long running complaints for Flutter absorbing scroll events when in an iFrame

Check out this !
https://github.com/flutter/packages/tree/main/packages/pointer_interceptor
From this comment
https://github.com/flutter/flutter/issues/72273#issuecomment-747728199

(Replying to this comment)

@bryanrideshark you're not the first person to ask for those features, (at least another person asked for the same in our Discord.)
I have written a small doc on how I see Flutter realistically inter-operating with ES Modules:

https://flutter.dev/go/web-declarative-bootstrap

I think that where our communication breaks down is on the definition of "Widget" or component.
If you're suggesting that all Flutter widgets are exposed as individual ES Modules; for example, the: Scaffold widget in a way that you can mix-and-match with your app (for example: make a Flutter Scaffold that has a body made of Angular stuff: I don't think this is doable! Flutter widgets do not map to HTML elements/Web components in the same way other html-based frameworks do.
If you want to replace some part of your app by a Flutter re-implementation of a widget that you have running in mobile (and you want to look and feel the same in the web), you should be able to. In this case I'm imagining a web component that has some complex behavior within it.
Anyway, let me /cc @kevmoo so he's aware of your use case, as I said, you're not the one to request this!

@Gene-Dana I don't think the pointer interceptor is going to be enough (I'm assuming that @rpk98c wants their Flutter app to be somewhat interactive :))
My current thinking is that the framework needs to tell the engine "the user is hovering over something: scrollable to top/scrollable to bottom/scrollable to both/not scrollable", and then the engine use that information to handle/ignore scroll events coming from the browser.
It's not going to feel 100% native but at least, we wouldn't be trapping people attempting to scroll OUT of a Flutter app in a tall page :)

@ditman You're spot on. Something so we can interact with the Flutter app but inside flutter decide when we're handing vertical scroll events and if we're not let the page handle them. It would be amazing to just have Flutter apps where we said no to vertical scrolling and allowed all other interaction, that would be a big win. At least then we could use Flutter to embed say a calculator widget and not block all page scrolling if hovered over it.
@Gene-Dana Thanks - we do use the pointer-interceptor extensively. It's very useful when embedding an iFrame in a native app and you want to have Flutter widgets over the top. E.g. a FAB. Great package.

Making a Dart function callable from JavaScript
I'm new to the web platform. I'm trying to integrate a flutter module into a PWA application. I would like to access one Dart function from PWA using JS. Used the following official package to call JavaScript APIs from Dart code, or vice versa.
flutter package
following is the sample JS used for accessing a sample dart function

but getting the following errors with window and without window object
window.functionName is not a function
functionName is not defined
Any idea what’s wrong here? or any other alternative way for communication between a flutter module and PWA just like platform channels used for android/iOS.
@ditman @Gene-Dana


Instances in sync.Pool may not be released

Instances in sync.Pool may always live due to the new victim queue introduced in Go 1.13, while the captured buffer in Iterator will live alongside with the Iterator. Once the Iterator is used for a large JSON,  the captured will keep the size all the time, thus there would be 'memory leak'.

Could you provide some tests/demo to produce the problem? Or is there any discussion link about this sync.Pool issue on any community we can refer?

I have verified by the following code but found the captured is actually explicitly set to nil, thus I think there should be no issue.
But I also edited this library, add statements to print the pointer address of the iterator borrowed from the pool in pool.go.
On my local (), the iterator is always the same. I'm wondering maybe this would lead the issue #435.
FYI. the Pool collect strategy change.
package main

import (
	"fmt"
	"net/http"
	_ "net/http/pprof"
	"runtime"
	"strings"
	"time"

	jsoniter "github.com/json-iterator/go"
)

var json = jsoniter.ConfigCompatibleWithStandardLibrary

type Item struct {
	A, B, C int
	D, E    float64
	Name    string `json:"name"`
}

type ResourceList struct {
	ID    int    `json:"id"`
	Label string `json:"label"`
	Items []Item `json:"items"`
}

func parse(data []byte) *ResourceList {
	var l ResourceList
	if err := json.Unmarshal(data, &l); err != nil {
		panic(err)
	}
	return &l
}

func createJSONText(id int, label string, amount int) []byte {
	text := fmt.Sprintf(`{"id":%d, "label":"%s", "items":`, id, label)
	var items []string
	for i := 0; i < amount; i++ {
		items = append(items, fmt.Sprintf(`{"name":"%d"}`, i))
	}
	return []byte(text + "[" + strings.Join(items, ",") + "]}")
}

var dataLarge = createJSONText(1, "large", 10_000_000)
var dataSmall = createJSONText(2, "small", 1_00)
var ballast1 = make([]byte, 700_000_000)
var items []Item

func init() {
	runtime.GOMAXPROCS(1)
}

func main() {
	go http.ListenAndServe("<IP_ADDRESS>:8899", nil)

	fmt.Println()
	runtime.GC()
	time.Sleep(time.Second)
	printMemStats(fmt.Sprintf("Start test, size large %d small %d", len(dataLarge), len(dataSmall)))

	f := func(i int) {
		if i < 2 {
			items = append(items, parse(dataLarge).Items...)
		} else {
			items = append(items, parse(dataSmall).Items...)
		}
		_ = len(items)
	}

	go func() {
		i := 0
		for {
			select {
			case <-time.After(10 * time.Second):
				f(i)
				i += 1
			}
		}
	}()

	for {
		select {
		case <-time.After(time.Second):
			runtime.KeepAlive(ballast1)
			runtime.KeepAlive(dataLarge)
			runtime.KeepAlive(dataSmall)
			printMemStats("Memory tracking per second")
		}
	}
}

func printMemStats(mag string) {
	var m runtime.MemStats
	runtime.ReadMemStats(&m)
	fmt.Printf("%v：inuse=%vKB, idle=%vKB, alloc=%vKB, sys=%vKB, stack=%vKB, GC Times = %v\n", mag, m.HeapInuse/1024, m.HeapIdle/1024, m.Alloc/1024, m.HeapSys/1024, m.StackInuse/1024, m.NumGC)
}

Closing it since it is a false alarm.


Added UDP multicast (with caveats: no ipv6, getInterface, getNetworkI…

…nterface, block or loopback-mode-disabled operations).
Motivation:
Provide epoll/native multicast to support high load multicast users (we are using it for a high load telecomm app at my day job).
Modification:
Added support for (ipv4 only) source specific and any source multicast for epoll transport. Some caveats (beyond no ipv6 support initially - there’s a bit of work to add in join and leave group specifically around SSM, as ipv6 uses different data structures for this): no support for disabling loop back mode, retrieval of interface and block operation, all of which tend to be less frequently used.
Result:
Provides epoll transport multicast for IPv4 for common use cases. Understand if you’d prefer to hold off until ipv6 is included but not sure when I’ll be able to get to that.

@sbuzzard can you please sign our ICLA:
https://netty.io/s/icla

Will address these later today or tonight.  I did sign the agreement yesterday but maybe it didn’t take.

@sbuzzard thanks a lot!

@netty-bot test this please

@netty-bot test this please

@sbuzzard this is amazing! Thanks a lot :)

Sorry I need to revert this one as there a few more issues that I need to fix first.

Done in 86dd3886374323ac1ac8011b4a4716706bb7c47b

@sbuzzard I will open a new pr with your change + some fixes


[SR-13803] Can’t archive App that uses a swift package with an xcframework

Previous ID
SR-13803

Radar
rdar://problem/70967526

Original Reporter
canius (JIRA User)

Type
Bug

Environment
Xcode Version 12.3 (12C33)

Additional Detail from JIRA

Votes
12

Component/s
Package Manager

Labels
Bug

Assignee
@neonichu

Priority
Medium

md5: c6a1645c0dfce3d2940b09dc2a5c8d57

Issue Description:
thread:
https://developer.apple.com/forums/thread/662247
reproduce project:
https://github.com/canius/ArchiveErrorDemo
feedback:
https://feedbackassistant.apple.com/feedback/8932696

This has been fixed in Xcode 12.5.


Bug 1820255: Fix race for localhost-recovery-client-token snapshotting

When localhost-recovery-client-token secret got created there is a race between kube-controller-manager to inject a token into it and revision controller that snapshots it. If it snapshots it before the token is injected we deploy without a token.
/cc @deads2k @soltysh @sttts

/retest


question about normalization that can be used with this tool

Hi!  I have more of a question than an issue but I am wondering if I could use the the scaled data calculated by seurat for this analysis instead of the TPM data.   I am using 10x data.
Thanks for any help you can provide!
Leanne

I have the same concern.

I have the same concern.

HI ! I tried to use scaled data but failed ,But when I input an expression matrix changing  one TPM to a negative numeric ,it works ,so I think the reason why scales matrix did not work is not the negitive value ,look forward to your guide! thanks

Hi,
When using Seurat, Compass expects the input generated by the NormalizeData (which scales for library size), and not ScaleData (which z-scales the data).
Please also note that Compass also expects linear-scale input, whereas  and not log-transformed which is currently the default of Seurat's NormalizeData, so this argument needs to be set. For example, in Seurat's PBMC tutorial, change the NormalizeData command to:
pbmc <- NormalizeData(pbmc, normalization.method = "RC", scale.factor = 10000)
and then export pbmc@assays$RNA@data to be Compass's output.
And yes, for 10x data the input should linear-scale CPM and not linear-scale TPM as in full-transcript sequencing protocols.

Marking as resolved.


search using page find works well.

am using this to do indexing and search.
code: https://github.com/CloudCannon/pagefind
the indexing runs on the server.
The search is 100% client side and supports facet based search. It’s actually wasm running in the browser that calls out to the server for the index.
For the image  meta data is uses the html produced from Hugo , so there is nothing for us to change.
Dame for tags I think , but have not got to that yet.
I got it working with eternity, but need to do a little more integration before making a PR.
demo from dev:
https://www.youtube.com/watch?v=74lsEXqRQys
To index just this on public:
npx pagefind --source $(EX_FSPATH)/public

[!WARNING]
This project is currently not being actively maintained.
Please do not create new issues on GitHub.


ImportError: No module named storage.blob

I am getting the same error as in Issue #262:
ImportError: No module named storage.blob #262
#262
I am in fact trying to run the same code:
from azure.storage.blob import BlockBlobService
block_blob_service = BlockBlobService(account_name='myaccount', account_key='mykey')
block_blob_service.create_container('backups')
Error:
$ python azure_github.py
Traceback (most recent call last):
File "azure_github.py", line 1, in
from azure.storage.blob import BlockBlobService
File "/xxx/yyyyy/azure.py", line 1, in
from azure.storage.blob import PageBlobService
ImportError: No module named storage.blob

I am working on a 64 bit RHEL server:
$ python -c 'import sys,platform; print platform.architecture()[0], sys.maxsize > 2**32'
64bit True
$ python -c 'import struct;print( 8 * struct.calcsize("P"))'
64

I have installed python 2.7 (64bits)
python -v
$ python -v | grep site-packages
installing zipimport hook

import zipimport # builtin
installed zipimport hook
/usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py
import site # precompiled from /usr/lib64/python2.7/site.pyc
/usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py
import os # precompiled from /usr/lib64/python2.7/os.pyc
...
..

I have 2 site-packages directories:

./usr/lib/python2.7/site-packages
./usr/lib64/python2.7/site-packages
and when I install the azure-storage package, it gets installed in the
/usr/lib/python2.7/site-packages directory.
$ sudo pip install azure-storage
Collecting azure-storage
Downloading azure_storage-0.34.2-py2.py3-none-any.whl (187kB)
100% |████████████████████████████████| 194kB 1.6MB/s
Requirement already satisfied: cryptography in /usr/lib64/python2.7/site-packages (from azure-storage)
Collecting azure-nspkg>=2.0.0 (from azure-storage)
Using cached azure_nspkg-2.0.0-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil in /usr/lib/python2.7/site-packages (from azure-storage)
Collecting azure-common>=1.1.5 (from azure-storage)
Using cached azure_common-1.1.5-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from azure-storage)
Requirement already satisfied: idna>=2.1 in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: setuptools>=11.3 in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: ipaddress in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: packaging in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: enum34 in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python2.7/site-packages (from cryptography->azure-storage)
Requirement already satisfied: appdirs>=1.4.0 in /usr/lib/python2.7/site-packages (from setuptools>=11.3->cryptography->azure-storage)
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography->azure-storage)
Requirement already satisfied: pyparsing in /usr/lib/python2.7/site-packages (from packaging->cryptography->azure-storage)
Installing collected packages: azure-nspkg, azure-common, azure-storage
Successfully installed azure-common-1.1.5 azure-nspkg-2.0.0 azure-storage-0.34.2

In directoy, /usr/lib/python2.7/site-packages
azure
azure_common-1.1.5.dist-info
azurelinuxagent
azure_nspkg-2.0.0.dist-info
azure_storage-0.34.2.dist-info

In directoy, /usr/lib64/python2.7/site-packages there are no azure packages.
Shouldn't the azure packages install in lib64 ? Is this causing the ImportError ?

I will close this issue as I now think the problem was that i had a file named azure.py in the same directory.
It did not like the azure filename!


print cros allfields can no longer be parsed by powershell convertfrom-csv

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.
Please confirm the following:

I have upgraded to the latest GAM release from https://git.io/gamreleases and I still have this issue.
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki

Full steps to reproduce the issue:

(In Powershell) $result = gam print cros allfields | convertfrom-csv

Expected outcome (what are you trying to do?):
I had a scheduled PowerShell script that would do this every hour and would filter it down to the serialNumber, macAddress, and 'recentUsers.0.email' fields.  I want to be able to get the MAC address given a specified serial number, and the most recently logged on user given a specified serialNumber.  This was working but no longer works right.  Normally it produces an array of objects, $result, and I can loop through it or do things like ($results | where -property serialNumber -eq "abcd1234").macAddress.
The gam command seems to complete, but there is something about the data it is kicking out that can no longer be parsed correctly by Powershell's native convertfrom-csv cmdlet.  I'm guessing Google added some things.
Actual outcome (what errors or bad behavior do you see instead?):

Google made a change, they are outputting what I consider to be
mis-formatted field labels.
Try this: gam print cros fields serialnumber,macaddress recentusers
listlimit 1
This will download considerably less data and avoid the problem.
Ross
On Thu, Oct 18, 2018 at 9:55 AM gammastorm<EMAIL_ADDRESS>wrote:

The issue tracker is for reporting product deficiencies. "How do I?"
questions should be posted to the discussion forum at
https://groups.google.com/group/google-apps-manager. When in doubt, start
at the discussion forum and return here only when instructed to do so.
Please confirm the following:

I have upgraded to the latest GAM release from
https://git.io/gamreleases and I still have this issue.
I am typing the command as described in the GAM Wiki at
https://github.com/jay0lee/gam/wiki

Full steps to reproduce the issue:

(In Powershell) $result = gam print cros allfields | convertfrom-csv

Expected outcome (what are you trying to do?):
I had a scheduled PowerShell script that would do this every hour and
would filter it down to the serialNumber, macAddress, and
'recentUsers.0.email' fields. I want to be able to get the MAC address
given a specified serial number, and the most recently logged on user given
a specified serialNumber. This was working but no longer works right.
Normally it produces an array of objects, $result, and I can loop through
it or do things like ($results | where -property serialNumber -eq
"abcd1234").macAddress.
The gam command seems to complete, but there is something about the data
it is kicking out that can no longer be parsed correctly by Powershell's
native convertfrom-csv cmdlet. I'm guessing Google added some things.
Actual outcome (what errors or bad behavior do you see instead?):
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jay0lee/GAM/issues/810, or mute the thread
https://github.com/notifications/unsubscribe-auth/AIU8Lws2jZmTW3CuUAQRhaDC1Fmpd-PEks5umLKLgaJpZM4Xt3jx
.

--
Ross Scroggs
<EMAIL_ADDRESS>


Added definition file for Prometheus Redis

Relevant information
I have customer using Prometheus heavily for Redis instances in their Kubernetes cluster. As far as I see we don't have entity synthesis for this yet.
Checklist

[x] I've read the guidelines and understand the acceptance criteria.
[x] The value of the attribute marked as identifier will be unique and valid.
[x] This is not my first contribution, or I've reached out to the team by opening an issue before
opening this PR.
[x] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

Thanks @kidk ! I think this one is ready to merge (I'll wait for a bit in case @cianBuckley or @jfjoly have objections)


Fix building usercontext from memories

Pull Request Checklist
Before submitting, make sure you've checked the following:

[x] Target branch: Please verify that the pull request targets the dev branch.
[x] Description: Provide a concise description of the changes made in this pull request.
[x] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
[ ] Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
[ ] Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
[ ] Testing: Have you written and run sufficient tests for validating the changes?
[x] Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
[x] Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:

fix: Bug fix or error correction

Changelog Entry
Description

Fixed an issue only one memory was being used for building the user context, even if multiple were retrieved.

Fixed

Only one memory could be used for building the user context, even if multiple were retrieved

Additional Information
After @shadowdoggie found out how to change the number of queried memories from Chroma here, he noticed that models were still only ever referring to a single memory.
I was able to track it down to this part of the code in the frontend that would do a reduce on an array that seems to always have only one element. The data structure of the return type queryMemory in this case is for example
{
    "ids": [
        [
            "024afdfb-4964-427a-aaab-3a2e006cdb7f",
            "77a7e0c4-dc32-4e69-98df-fa1230b49b6e"
        ]
    ],
    "distances": [
        [
            0.9557429871345975,
            1.2739408007827933
        ]
    ],
    "metadatas": [
        [
            {
                "created_at":<PHONE_NUMBER>
            },
            {
                "created_at":<PHONE_NUMBER>
            }
        ]
    ],
    "embeddings": null,
    "documents": [
        [
            "The second word is \"grape\"",
            "The first word is \"automotive\""
        ]
    ],
    "uris": null,
    "data": null
}

I should note that this PR by itself does not allow the use of more than one memory, as the value for the number of memories queried remains hard coded to 1. Perhaps something for a future PR.

fixed by 68b3cce0fdc7226a0bcf785181740440eade1196 0f4f01cee9551ba995bcdf6019f0d45b0e836138


feat(es/minfiier): Compute more with sequential inliner

Description:
Related issue:

@jridgewell I'm sorry, but can you review again when you have time?