weird insert error/query

When trying to save a new Entity i get the Error:
Unable to execute INSERT statement [INSERT INTO invoice (receiver_id, created_at, updated_at, id) VALUES (:p0, :p1, :p2, :p3)]
When running ->toArray() on my Entity i get the following values for the query placeholders:
reciever_id: 21
created_at: null
updated_at: null,
id: null
when trying to execute this manually using phpmyadmin i get the following error:
#1364 - Feld 'number' hat keinen Vorgabewert
the fields created_at and updated_at are auto-generated via the "timestampable" behaviour.
the id field is auto-generated via the "auto_add_pk" behaviour.
why do i receive this error?
its only for 2 entities, all other work fine, even though they use the same behaviours...

Probably "Invoice" table has field "number" which is "not null" and is missing in the insertion code

rebuild the models. now it worked...


[FEEDBACK] Who uses SpotifyAPI-NET? Do you want something changed?

Hey 👋
I would like to know who maintains an application/project/library, which utilizes this library somehow. If you agree, I would also like to add this project to the Projects page. This helps newcomers to see some real-world examples and maybe a better start :)
Also, if you have some time left for the following questions:

Are you generally happy with the library? Or is there sth which can be improved?
What features would you like to see, if any?

Thanks for your time!

I use it. My app basically replaces the spotify client, adds a rating system and automatically plays songs based on those ratings. Screenshot
Unfortunately I don't have a public repo because I use AuthorizationCodeAuth and don't know how I would protect my clientSecret, and also my code is quite a mess given I started it 4 or 5 years ago as my first project.
To your other questions:

No complains.
There are many features I would like to see but they need to be added by Spotify first, like events for track ended, player paused (things we already had before they killed the localAPI), the total times a track has been played globally, information from the "about" page. I doubt they will add new features any time soon though.

Hi JohnnyCrazy,
thanks a lot for your efforts on SpotifyAPI.
I have just now started using it and ran into issue that given limit of 50 for GetArtistsAlbums does not fit for me.
Can this be extended?
Best regards
Tobias

I'm just looking into using it. It would be great if SpotifyWebAPI implemented a complete interface e.g. ISpotifyWebAPI so that responses could be easily mocked up for testing.

Hi, is it posible to use multiple scopes while getting auth?

Did you have a look at the example @cfernandezGAD ?
https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web.Example/Program.cs#L31
@ta264 will have a look at possible solutions, thanks!

Great! @JohnnyCrazy  thank you very much. Sorry for the obvious question, i just couldn't find it in the documentation.

using it to maintain a library of songs(7'000+ out of 50'000 available at http://customsforge.com) to practice guitar on PS3/Mac/PC in Rocksmith 2014
(Track no, Covers and year retrieval to make more consistent/accurate when loading "Custom" DLCs in the game)
https://github.com/catara/rocksmith-custom-song-toolkit

Here to say great work! Been using it since the start of my project.

No complaints from me.
Realtime player updates would be nice but it seems Spotify still doesn't want to expose any api 😅

Thanks @catara and @dsafa (Also have  installed audio-band, nice job 👍 )
Do you mind if I add your projects to the list at https://johnnycrazy.github.io/SpotifyAPI-NET/#projects ?

@JohnnyCrazy Feel free

Nice job!
The API is used to maintain playlists and is used in an automation on a daily basis.
The need arose when libspotify changed a few years ago and destroyed playlist updates in my Nuvo MPS4. I have mended it in a HomeSeer automation environment with your API.
No complaints after passing the (unnecessary) hurdles regarding authentication in VB.NET.

Can't believe it's been an entire year since I first started using SpotifyAPI-NET. Just a great library in general, and you had a great response to the tragedy caused by Spotify shutting off the local API in like August of last year.
There really aren't any serious complaints from me, this has been a reliable library for a long time. I would say areas where I've had to fill in for a lot of work for the library are in these areas:

Detecting when auth has been lost if a user's computer had been asleep for a while.

It's not easy for us to detect and deal with failed authorization on requests. If the life cycle could be streamlined so that it virtually appears as never having been lost in almost any state, that could be a really cool addition, probably the most valuable on this list.

Detecting when a song has changed on Spotify, and wasn't done through my music player.

The workaround being a polling-based solution. Checking every 500ms for instance, and predicting when a song is going to change based on time deltas. When I detect the song change through my polling solution, I emit an event across my application. Ideally it would be sick if that was 'out of the box'.

Retrieving the album art as an Image type.

There is probably good reasons why you haven't done this here, as System.Drawing is not on NET Standard 2.0, but there is a library that brings Image to NET Standard 2.0 called System.Drawing.Common that you might want to look into.
But even in spite of that, Xamarin Forms cannot use that Image type and has to use an ImageSource class to which you can pass in a MemoryStream of the byte[] of the Image.
So you could just make a way to retrieve album art in byte[] form. But it's not hard for a user to make, it's just that then the user needs to consider failure states and how to deal with them.

Users have to do "manual" pagination.

Changing Paging<T> to automate that process and abstract it behind maybe an IEnumerable, for things such as SearchItems() and GetUserPlaylists() would be cool. There's a dual reward here because sometimes it's unclear in parts of the API where pagination is actually required (unless I'm just being dumb sometimes). But again, it's just making the code cleaner on the user's end which is apparently a recurring theme in these suggestions lol

So yeah as you can tell, really nothing major at all.
The project I used this on is my app Emotion https://www.r-saam.co.uk/emotion/ Unfortunately I'm planning on trying to go commercial with this, so there is no open source repo. I've had success with this library on both Windows Forms and Xamarin Forms, which shows just how good it is.

Thanks for your input and feedback @rollersteaam !
Regarding your points:

I agree that authentication is a tricky problem to keep in sync. I will think about a possible solution. Maybe an event callback when authentication has been expired while a call was made.

Yup, sadly not in my hands to decide. If you need a way to get live updates for a single user (it's not possible for multiple users), I found an inofficial way. You can shoot me a mail if you want to know more.

URL seems enough for the usecase of this wrapper, people can implement libs for converting it.

I'm acutally testing this, maybe we can get something like this working:

foreach(var track in _spotify.GetPlaylistTracks(...).AsEnumerable()) {
  Console.WriteLine(track.Name)
}

I've been using your library even before the local api was shut down, and now I finally managed to get to using the webapi. My app, Songify Slim , is aimed for live streamers to show the current song in text files and also uploads the song information for use with common chat bots. The webAPI stuff is not yet in the release version but in the code.
Right now I just dipped into the webapi stuff. So far no complaints!

I too am a very happy user of this library for my EliteG19s app, a companion app for the game Elite Dangerous.
I'll look into getting the Spotify specific code in a Github repo as it took me a little while to get the authorization flow working in a Windows Forms app and my trial and error might be useful for others.
But thanks a lot for your hard work! I had almost given up hope when libspotify didn't work for me anymore.

thanks for this awesome library! very useful for my project
how should i credit you?

Used it on my arduino project, awesome api mate. Keep it up !
https://github.com/NADER11NDEU/ARDUINO-Spotify-Remote-Control

@Inzaniity @MagicMau @NADER11NDEU  Thanks guys, added it to the project list
@orestescm76 In the end, https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE is a good entry point. A link to this repo and its license itself should be sufficient.

@JohnnyCrazy in my README.md?
when i have it implemented i'll do it
also inside the program i'll write your name and my personal thank you when i have this implemented

Your wrapper basically carried my application: https://github.com/novatorem/Melodify
Thanks for taking the time to create and maintain it!

Are you generally happy with the library? Or is there something which can be improved?

Honestly, yeah, it's a nice library to have used. Improvement would just be more examples in the docs to get an faster jump start. Although, when I started using this it didn't have the projects page it does now. If I saw how other people did it, it'd have been easier implementing certain API calls.

Just an awesome library!
Can you check why it isn't possible to update a playlist and set an empty description?

Could be a bug @Afonsof91, will check tomorrow and open an issue if thats the case. Thanks for the feedback

@Afonsof91 It's a known issue upstream at spotify: https://github.com/spotify/web-api/issues/1011
Since it has been unresolved since Sep 2018, you could try bumping it, but nothing I can do here :/

Thanks so much.
I'll follow the issue too.
Atentamente,
Fernando Afonso
On Fri, Mar 27, 2020 at 10:36 AM Jonas Dellinger<EMAIL_ADDRESS>wrote:

@Afonsof91 https://github.com/Afonsof91 It's a known issue upstream at
spotify: spotify/web-api#1011
https://github.com/spotify/web-api/issues/1011
Since it has been unresolved since Sep 2018, you could try bumping it, but
nothing I can do here :/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JohnnyCrazy/SpotifyAPI-NET/issues/362#issuecomment-604929485,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJUJXK74I4OQYXNRQPY7NRLRJR6SNANCNFSM4IESBMRQ
.

Amazing library ! Do you think you could support Android and iOS with Xamarin?

@DaniLecx I'm currently working on V6, will have a look at Xamarin 👍

Thanks for all the feedback guys!
Just a heads up, V6 has been released and tackles a lot of issues which have been discussed in the past, like automatic token retrival, automated pagination and better testability. Also, support for all major platforms, including Xamarin @DaniLecx ! If you would give it a try and provide further feedback in #451 , that would be amazing! 🙏
I will close this issue for now. Still, if you have a cool project you want to see in our showcase, feel free to send a PR.
Also, ff you have more general feedback/problems/suggestions, feel free to open another issue.


Split the error reporting string in case javac prints no count

Looks like this is fixed in java 12.


feat: Add links to ratemyopenapi

I've added a link to ratemyopenapi on the top right of the main and bin pages.
I also tried to add it underneath the main box, I'm not sure if it makes sense twice, but I wanted to put the phrase somewhere else than in the link title. Happy to hear any suggestions or to remove it.

I would hide this link on Mobile. Crowds out everything else

The UI actually seems totally broken on mobile - not sure if its from this PR or another one

@AdrianMachado good point to hide on mobile!
Regarding breaking on mobile: Huh, yeah for me it only works up to about 450px screen width and then it breaks. Need to take a look


On Click notification in status bar app does not open

Hi, i am using this plugin and receiving notification successfully but on click notification in status bar app does not open.
plz, let me know if more information is required.

Hi @amyogiji, which platform do you have problem? In my case I have problem with iOS platform. When I tap notification on iOS, application starts but no callback to onNotificationOpen method. On android everythings works fine, as expected.

Hi i have this issue in Android , when the app is closed I can receive the notification but when i click the push notification it doesn't open the app

I still do have this issue. Is there any solution?

I am having the same issue. +1

Hi, anyone founded some solution?, thanks


allow reply_to for mails

that's it?

yeah the django email class accepts reply_to as kwarg in the init method

coverage: 85.219%. remained the same
when pulling 1bfbb96255c9439633a73fa38f9f8c605a2fcea6 on reply-to
into 9fb0cae380b7cddf733233426837bf02a9a0639c on main.


New version: AnyDeskSoftwareGmbH.AnyDesk version 8.0.14

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Close with reason: Duplicate of #170161;

@stephengillie can you please approve this one instead?

@ItzLevvie are you able to approve this?


Request Body Of A POST With Charset Not Proxied

POST request with content-type containing charset ( "application/x-www-form-urlencoded; charset=UTF-8" ) are not proxied by ZuulProxy.
This PR https://github.com/spring-cloud/spring-cloud-netflix/pull/113 fix this issue.
Julien.

Fixed via #113


client_channel should cancel all calls when channel is shut down

As discussed in #14220 (see this comment), if a subchannel is in use by two different channels and one of those channels shuts down, the subchannel should not actually be shut down.  However, in this case, even though we don't want to cancel all of the calls on the subchannel, we do want to cancel the calls that are from the channel that is being shut down, and I don't think we have a mechanism to do that today.
One possible way to fix this is to have the client_channel filter track the set of active calls, so that it can cancel them when it gets a disconnect_with_error transport op.  It would be fairly easy to add each call to a list of active calls from within the client_channel combiner at the same time as we do the LB pick.  However, we would also have to remove each call from the list of active calls as it completes, which would require intercepting the recv_trailing_metadata op (not terrible) and taking another trip into the client_channel combiner to remove the call from the list (which would likely have performance impact).
We should probably spend some time thinking about whether there's a better way to fix this that would not impact performance.

Another approach would be to stick with the two-level ref scheme for subchannels (which we had been planning to eliminate), where each call on the subchannel will hold a weak ref to the subchannel instead of a strong ref.  That would avoid the performance issue of trying to keep a list of calls on the channel.
The down-side of this approach is that it would break the case where a call is pending on an address that has been removed by the resolver.  The behavior we have today in that case is for the subchannel to stay alive until the call is complete.  But if the call is only holding a weak ref, that would not work, so we'd need to find some other way to do this.
I'm not sure whether or not this is feasible.  This needs more discussion.

Note that we currently have a bit of a mismatch in the C-core API: we offer a function called grpc_channel_destroy(), but the behavior is actually more like grpc_channel_unref().
Ideally, we would like to fix the semantics to be destroy, not unref.  But if we ever close this and decide not to fix it, we should rename the function to reflect its current behavior.


OracleDialect - override Driver Type Conversion for Dates - Fixes #754

Hi
This PR is meant to fix issue #754 since it seams that Oracle's DATE is actually a java.sql.Timestamp.
Source: https://stackoverflow.com/a/47713203
As always, if you have any question, feedback or suggestion, please do not hesitate to say so :)
Cheers

@jfcabral great, lets see if this works


Can implement JNI dynamic registration?

Can implement JNI dynamic registration?

What kind, for bridge?
Yes you have to make some changes

Closed as no further info provided, feel free to re-open it with details when you have one.


Use IIIF v3 for audio

Part of #7596

Moves us towards using IIIF v3
Allows for the display of a transcript where there are multiple audio parts
Adds possibility to display thumbnail associated with audio (although this is commented out for now as most audio has placeholder thumbnails which we can't readily filter out, so best to wait till these have been removed from manifests altogether)

@gestchild pointed out that IIIF v3 has its own types. We should definitely use these instead of the ones that I've surmised from looking at various manifests.

we should write some tests for the IIIF-traversal methods

Sounds good. Could you expand on it a bit?

In particular I think some tests for this function would be useful - https://github.com/wellcomecollection/wellcomecollection.org/pull/7637/files#diff-6559a207e9b81dcbbab10f3f803622375b6d473b4280cbd5ba47ec23e15bcebbR334-R368
We almost always seem to run into unexpected combinations of things in the IIIF, and while tests won't necessarily catch those cases now I think they'll be useful documentation

I never got round to writing the tests you suggested and it hasn't been planned in as a priority. Would be nice to make time to get it merged though


Update release script

Had an issue where I don't git pull / merge with master after the PR has
been merged.
This adds an option to sync with master before continuing.

@kadel Updated :)


#BUG: Not able to  Create the sku: Standard Tier Container registry.

SUMMARY
While Creating the SKU with Standard the validation is falling and not able to create the Standard acr_registry
issue_at
    condition     = contains(["Basic", "Standard ", "Premium"], var.sku)

in the above condition,  Standard got a space before the double quotes ended that resulting in this issue and not able to create the Standard Tier container-registry.
ISSUE TYPE

Bug Report
Issue Report

COMPONENT NAME
Error: Invalid value for variable
on main.tf line 6, in module "acr_cognyx":
6:   sku                           = var.sku
├────────────────
│ var.sku is "Standard"
ERROR: Invalid SKU Tier must be one of Basic, Standard or Premium.
This was checked by the validation rule at .terraform/modules/acr_cognyx/variables.tf:24,3-13.
VERSION
  source  = "imjoseangel/acr/azurerm"
  version = "22.2.6"
  terraform version = 1.7.5

CONFIGURATION

module "acr_registry" {
  source  = "imjoseangel/acr/azurerm"
  version = "22.2.6"
  name                          = var.acr_name
  resource_group_name           = var.rg_name
  sku                           = "Standard"
  location                      = var.location
  admin_enabled                 = true
  retention_policy = {
    days    = 5
    enabled = true
  }

}

OS / ENVIRONMENT

STEPS TO REPRODUCE
create the Standard tier using the above module.

Fixed #131


vscode-tslint errors but isnt installed

VSCode Version 1.30.0-insider (1.30.0-insider)
OS Version: mac 10.13.6

Steps to Reproduce:

use typescript project
us new tslint typescript plugin
Have previously installed and uninstalled vscode-tslint
work for weeks
suddently stops working and vscode-tslint starts erroring even though not installed

Does this issue occur when all extensions are disabled?: No it is an extension problem

Is the tslint extension listed in the extensions view? Search @installed to see all installed extensions

vscode-tslint is not installed

These error are coming from the TSLint Plugin.
I'll update the error string to remove vscode-tslint


App intermittently passing undefined as a monitor ID to GET /api/v1/monitors/{monitor_id}

Managed to reproduce this by simply navigating to a monitor and then navigating to the home page and waiting. When we navigate to the monitor page we start resyncing the monitor once every minute, using the monitor ID in the URL via vue-router's route.params.id. There's actually more than one problem here. The one described by this issue stems from the fact that when we navigate away from the monitor, route.params.id is undefined (unless we navigate to another page with an id param, of course). The other, is that once we've visited a monitor page, there's nothing to stop us from resyncing the monitor once a minute other than a refresh (or anything else which kills the JavaScript dealing with the timeouts and AJAX requests.


Add Feedback Buttons/Pages

Add Feedback Buttons/Pages
Add buttons/pages for reporting issues or providing suggestions regarding the CSXL..
Why?
This will provide users with the opportunity to interact with the CSXL and help us improve the space and site.
Acceptance Criteria

[ ] Confirm with Kris how he would like to handle reporting issues/giving feedback - do we want feedback to be internally available, or should we just link to an outside form?

[ ] Let @jadekeegan know what Kris decides if not already aware so acceptance criteria can be updated.

[ ] Create a button to navigate to a suggestions form.
[ ] ... further acceptance criteria TBA

@KrisJordan, are we still keeping this ticket open, or have we decided to let feedback remain in GitHub and in Slack?

@tmattvu closing this PR until we get #15 working.


Implement peer-to-peer support for the patching service.

Allow game files to be shared between peers, reduce server load when transferring large patch files.
Long term goal.
Optional feature.

What should be done

[ ] Generate torrent files for each patch version, with hot reload support.
[ ] Allow clients to fetch the generated torrent files.

Avoid

Use existing bittorrent clients for peers to avoid reimplenting.
Use a public tracker to avoid having to run a tracker in the network.

Initial seeding could be done by setting up a client with auto import of torrent files, should be available.

It must be possible to download the generated torrent in a get request.

[ ] add support for routing http-get to services.

Investigate time required to support magnet links.

Investigate any side effects of allowing direct access to the patching node if it deploys a tracker.

The patching service does not have to announce on any trackers and always seed. Using web seeding the swarm falls back to the web service when required. Does not break clustering when deploying multiple nodes, instead scalability increases.

[ ] Implement support for web seeding on patching node.

Needs solid documentation; direct download, p2p download and tracker mode, p2p downloads and webseed mode. Setup for auto importing and seeding on clients and server. How to implement support on clients; library support etc

[ ] Add configuration; piece size, trackers, webseeds
[ ] Document this feature as soon as it is done.

While we're at it,

[ ] Generate magnet links.

Revisit this later, need to optimize time to market.


Refactor outgoing bot requests to use a session object, set common headers.

Testing plan: Existing and modified tests.

Looks good to me!  This refactoring also makes it easy to easily add a timeout once we are ready to do that.

Looks like some minor CI issues.

Looks good to me! This refactoring also makes it easy to easily add a timeout once we are ready to do that.

That was indeed my goal. :)

Merged, thanks @alexmv!


[WIP] migrate for dotnet preview2 to preview3

This is work-in-progress. Following up with #561, I thought I'd see what it takes to migrate from dotnet  preview2 to preview3. The dotnet migrate tool gets you most of the way there. I then added <RuntimeIdentifier>win7-x86</RuntimeIdentifier> to the exe projects and replaced xproj with csproj in the sln file.
https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tools/dotnet-migrate
dotnet migrate .\google-cloud-dotnet\apis\global.json --skip-backup
dotnet migrate .\google-cloud-dotnet\tools\global.json --skip-backup

Let me know if this could be used or if I should abandon a pull request like this.

I signed it!

Hi Cameron,
We're probably not quite ready to move to preview3 yet - we have some other big changes we'd like to get done first. I also need to check which versions of VS preview3 is supported on, and check with the rest of the team. However, the pull request itself is certainly useful to keep around anyway, as we'll certainly be moving at some point, and hopefully within the next month...

The 2016-11-16 Announcing .NET Core Tools MSBuild “alpha” is accurately labeled "alpha". I spent several hour yesterday and today trying to migrate everything there. It is not trivial.
After I got past the duplicate xproj files #581, this appeared to get me started:
git clean -xfd
bash -c "find . -type f -name 'global.json' -print0 | xargs -0 sed -i 's/1.0.0-preview2-003131/1.0.0-preview3-004056/g'"
dotnet migrate . --skip-backup
git rm **/*.xproj **/project.json
bash -c "find . -type f -name '*.sln' -print0 | xargs -0 sed -i 's/.xproj/.csproj/g'"

But then I figured out that I need to

update testhost to latest for net45 support to avoid errors
updated xunit libraries to avoid errors

But I wasn't able to solve

TargetFrameworkAttribute causing 'System' could not be found in the global namespace
Unable to load projects after dotnet migrate

According to the comments MSBuild "alpha" announcement, .NET Core tooling support will be in Visual Studio 2017, not 2015. That makes sense to me, based on the scope of change. It looks like really great direction, but things are indeed pretty unstable right now.


Error indicator

Here is what I did for #49
I tried to keep the behaviour of error as close a possible from the current print behaviour.
There is a few things I'm not 100% satisfied with :

There is huge logic duplication between ErrorCross and TailSpin (and their tests) : we may want to factorize some code
The isInState function in core.jsx is not super clear

Any suggestion / improvement / fix appreciated :)

Great work, once again ;)
My first comment, I read it fast :

I think the isInState name is not great indeed, at first I was expecting that you will use react state
I agree with you about TailSpin + ErrorCross code factoring
I think a test is missing : there is error prop test ?

The component is printed with default loader parameters
The error prop is set to true
The Cross should be printed

@ptitFicus I close the PR since:

It is old now
There is a lot of conflicts

Feel free to reopen, and sorry about that :(


Fixing issues and updating to 4.0.0.Beta2

Changeset:

Fixed sbauthz-realm-config.json because it failing to import.
Removed sbauthz-authorization-config.json and moved configuration to sbauthz-realm-config.json.
Bump Keycloak version to 4.0.0.Beta2 and changed code to comply with this version
Fixed client configuration regarding CORS/Web Origin definitions

You should be able to access Check Identity, Create Resource and Clean Resource endpoints.

Thanks for the fixes ! I must have change settings that I did not report within configuration files. Sorry for that.

Hi @pedroigor,
I get an error here when evaluating rejection on client side. It seems that wwwAuthenticateHeader is not seen as a simple string by the browser (chrome v66):
angular.js:12477 TypeError: wwwAuthenticateHeader.indexOf is not a function
    at KeycloakAuthorization.then (keycloak-authz.js:52)
    at responseError (keycloak-init.js:115)
    at processQueue (angular.js:14745)
    at angular.js:14761
    at Scope.$eval (angular.js:15989)
    at Scope.$digest (angular.js:15800)
    at Scope.$apply (angular.js:16097)
    at done (angular.js:10546)
    at completeRequest (angular.js:10744)
    at XMLHttpRequest.requestLoaded (angular.js:10685)

Also, when stepping into keycloak-authz.js, it seems to expect the UMA full string in request. So I change the authorization request preparation to:
// prepare a authorization request with the permission ticket
var authorizationRequest = {};
//authorizationRequest.ticket = ticket;
authorizationRequest = wwwAuthenticateHeader;

Things go further then but keycloak-authz complains about missing rpt_endpoint:
TypeError: Cannot read property 'rpt_endpoint' of undefined
    at KeycloakAuthorization.then (keycloak-authz.js:61)
    at responseError (keycloak-init.js:115)
    at processQueue (angular.js:14745)
    at angular.js:14761
    at Scope.$eval (angular.js:15989)
    at Scope.$digest (angular.js:15800)
    at Scope.$apply (angular.js:16097)
    at done (angular.js:10546)
    at completeRequest (angular.js:10744)
    at XMLHttpRequest.requestLoaded (angular.js:10685)

I also noted that uma-configuration endpoint is not more reachable. http://localhost:8180/auth/realms/sbauthz/.well-known/uma-configuration sends 404 error. Can this be related ?

Forget about everything above, sorry. This was script cache that plays a mix of Keycloak 3.4 and 4.0 libraries. The correct endpoint for UMA is now http://localhost:8180/auth/realms/sbauthz/.well-known/uma2-configuration and is reachable.
However, I still have issues completing the UMA challenge authroization part. Chrome is complaining with Failed to load http://localhost:8180/auth/realms/sbauthz/protocol/openid-connect/token: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access..
Checking CORS / Web-Origins stuffs...


oneMKL migration: Fix for DLL loading issue on Windows

__init__.py file in daal4py module was modified to add paths to TBB DLLs into the process environment in case TBBROOT environment variable is available.
This work is related to oneDAL PR #2756.

Checklist to comply with before moving PR from draft:
PR completeness and readability

[x] I have reviewed my changes thoroughly before submitting this pull request.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation to reflect the changes or created a separate PR with update and provided its number in the description, if necessary.
[x] Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details).
[x] I have added a respective label(s) to PR if I have a permission for that.
[x] I have resolved any merge conflicts that might occur with the base branch.

Testing

[x] The unit tests pass successfully.
[ ] I have run it locally and tested the changes extensively.

Performance

[ ] I have measured performance for affected algorithms using scikit-learn_bench and provided at least summary table with measured data, if performance change is expected.
[ ] I have provided justification why performance has changed or why changes are not expected.

@samir-nasibli CI job: http://intel-ci.intel.com/ef7749d8-99a3-f16f-a475-a4bf010d0e2d

@samir-nasibli CI job: http://intel-ci.intel.com/ef7749d8-99a3-f16f-a475-a4bf010d0e2d

Expect that test fails covered by https://github.com/intel/scikit-learn-intelex/pull/2066 deselections

@samir-nasibli yes, those changes were agreed with @napetrov and @syakov-intel .


[REFACTOR] move tooltip (series label) from properties to draw method

As discussed in https://github.com/dmccloskey/imgui/pull/2#discussion_r202460336

Is this review up to date so that I can merge it?

This is ready to be merged, unless you found something off in the code @dmccloskey


jest.setTestTimeout

i'm cleaning up Jasmine references form our codebase so it's easier to switch to another framework in the future.

Can we call it jest.setTimeout?

Actually, I'd be ok with setTestTimeout.

Codecov Report

Merging #3684 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #3684      +/-   ##
==========================================
- Coverage   62.65%   62.64%   -0.01%
==========================================
  Files         183      183
  Lines        6707     6709       +2
  Branches        6        6
==========================================
+ Hits         4202     4203       +1
- Misses       2502     2503       +1
  Partials        3        3

Impacted Files
Coverage Δ

packages/jest-runtime/src/index.js
76.37% <0%> (-0.21%)
:arrow_down:

Continue to review full report at Codecov.

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

I believe jasmine allows you to pass the timeout in ms as the third argument to it. Might be a nice pattern to keep.

@probablyup good catch! i almost forgot about it

You need to write documentation for this :P Can you send a follow-up PR?

@cpojer oh.. yea, i should probably add it to the jest object doc too :)


Unspecified inner range

When comparison to the inner range power curve is not desired as an output, it is still possible that the calculation of initialZeroTurbulencePowerCurve can result in the analysis failing (due to non-convergence of the numerical method).
When comparison to the inner range is not desired this should not result in an exception being thrown. Furthermore, definition of inner range turbulence in the analysis xml need not be required.

@lcameron05 can we think of a way of doing it other than in: #49 ?
if not then feel free to merge pull request.

I think this is something that can cause a few snags when running analyses. Let's make and include the decision before releasing next week.


Publish update with AGS token-enabled security

Version 4.1.0 went out with the previous version of AppGeo.Clients.dll that does not support AGS token authentication (required for AGS 10.1 and higher).

Version 4.2.0 was published with the version of AppGeo.Clients.dll that supports AGS token authentication.


Failed to import - @swc/core

Failing module

GitHub: https://github.com/swc-project/swc
npm: https://www.npmjs.com/package/@swc/core

import { transform } from 'https://esm.sh/<EMAIL_ADDRESS>
Error message
After running deno run I got this:
Uncaught TypeError: Import 'https://esm.sh/<EMAIL_ADDRESS>failed: 500 Internal Server Error
    at async <anonymous>:2:24

Go directly to this URL and I got this:
/* esm.sh - error */
throw new Error("[esm.sh] " + "npm: package '@swc/core-darwin-universal' not found");
export default null;

Additional info

esm.sh version: v106
Deno version: 1.30.2 (Windows)

note
I found this problem while trying to import @remotion/cli which depends on @swc/core. But I reported like this because it is reproduced with @swc/core alone.

Error was changed by above update:
Uncaught TypeError: Import 'https://esm.sh/v106/<EMAIL_ADDRESS>failed: 500 Internal Server Error

Go https://esm.sh/v106/<EMAIL_ADDRESS>and I get:
/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: No loader is configured for \".node\" files: esm-build-8fabc018d416145e9caa9ba7ef60fea162ab40b7-ac73ed70/node_modules/@swc/core-android-arm-eabi/swc.android-arm-eabi.node");
export default null;

You should probably use the wasm version since the server can handle the .node dependency fo now


Update scala-logging to 3.9.2

Updates com.typesafe.scala-logging:scala-logging from 3.9.0 to 3.9.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a nice day!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "com.typesafe.scala-logging", artifactId = "scala-logging" }]

labels: semver-patch

No releases found for this version on https://github.com/lightbend/scala-logging/releases

https://github.com/lightbend/scala-logging/issues/143

https://github.com/lightbend/scala-logging/compare/v3.9.0...e5436ee8d6db2a5288ce6b6dedb46fc7346cddca


feat: add sigserver status

example
$ http http://<IP_ADDRESS>:8000/force-bridge/sign-server/api/v1 <<< '{ "id": 0, "jsonrpc": "2.0", "method": "status" }'

{
    "id": 0,
    "jsonrpc": "2.0",
    "result": {
        "addressConfig": {
            "ckbAddress": "ckt1qyqx9424gr3p237a36lt8veh50gaavc27jpqmhrdum",
            "ckbPubkeyHash": "0x62d55540e21547dd8ebeb3b337a3d1deb30af482",
            "ethAddress": "0x994B430359BEDCfeb73EB90Fb39416A7dE1F1640"
        },
        "latestChainStatus": {
            "ckb": {
                "latestCkbBlockHash": "0x95e1f7331c7a5a41ef24a8fbecc2ff10d2319fa678479d2345c8b8ebc04f9868",
                "latestCkbHeight": "1417"
            },
            "eth": {
                "latestEthBlockHash": "0xea3470c3ba5f26c4d049e9796940bb973258992d149e0f708774bac1b3182b7b",
                "latestEthHeight": "1180"
            }
        }
    }
}

Codecov Report

Merging #150 (e089320) into main (2d7a517) will decrease coverage by 3.16%.
The diff coverage is n/a.

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

@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
- Coverage   41.08%   37.92%   -3.17%
==========================================
  Files          23       17       -6
  Lines        1969     1743     -226
  Branches       48        0      -48
==========================================
- Hits          809      661     -148
+ Misses       1160     1082      -78

Impacted Files
Coverage Δ

...ules/eth-contracts/contracts/libraries/Address.sol

...les/eth-contracts/contracts/libraries/SafeMath.sol

...in-modules/eth-contracts/contracts/ForceBridge.sol

...ain-modules/eth-contracts/contracts/test/ERC20.sol

...es/eth-contracts/contracts/libraries/SafeERC20.sol

...th-contracts/contracts/libraries/MultisigUtils.sol

Continue to review full report at Codecov.

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


FEATURE REQUEST - IndependentComponentsDistribution

Hi, long-time user of pomegranate here. Thanks for the great work over the years!
My question: Is there any plan to bring the IndependentComponentsDistribution from pomegranate into torchegranate? I really liked the option of modeling each dimension of the emission with a specific distribution/mixture model.
Of course if there's another way to do this in torchegranate that I'm just too dumb to realize, I'd also appreciate that info. :)

Added! https://github.com/jmschrei/torchegranate/blob/main/torchegranate/distributions/independent_components.py
This will be included in the next release, which should by the end of next week. You can pull the code and build it yourself by cloning the package and then using python setup.py install if you'd like it earlier than that.


matrix-synapse-plugins.matrix-synapse-mjolnir-antispam: 1.6.1 -> 1.6.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for matrix-synapse-plugins.matrix-synapse-mjolnir-antispam is: AntiSpam / Banlist plugin to be used with mjolnir
meta.homepage for matrix-synapse-plugins.matrix-synapse-mjolnir-antispam is: https://github.com/matrix-org/mjolnir#synapse-module
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.6.2 with grep in /nix/store/mayxyspn3d1wig9yh8k2nacw0j7h3cq8-python3.10-matrix-synapse-mjolnir-antispam-1.6.2
found 1.6.2 in filename of file in /nix/store/mayxyspn3d1wig9yh8k2nacw0j7h3cq8-python3.10-matrix-synapse-mjolnir-antispam-1.6.2

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
matrix-synapse-plugins.matrix-synapse-mjolnir-antispam

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/mayxyspn3d1wig9yh8k2nacw0j7h3cq8-python3.10-matrix-synapse-mjolnir-antispam-1.6.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/mayxyspn3d1wig9yh8k2nacw0j7h3cq8-python3.10-matrix-synapse-mjolnir-antispam-1.6.2
ls -la /nix/store/mayxyspn3d1wig9yh8k2nacw0j7h3cq8-python3.10-matrix-synapse-mjolnir-antispam-1.6.2/bin

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

1 package built:

matrix-synapse-plugins.matrix-synapse-mjolnir-antispam

Maintainer pings
cc @jojosch for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for matrix-synapse-plugins.matrix-synapse-mjolnir-antispam is: AntiSpam / Banlist plugin to be used with mjolnir
meta.homepage for matrix-synapse-plugins.matrix-synapse-mjolnir-antispam is: https://github.com/matrix-org/mjolnir#synapse-module
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.6.4 with grep in /nix/store/lcih7nwli98xsqm8rnnz7mi4hmqrhs1l-python3.10-matrix-synapse-mjolnir-antispam-1.6.4
found 1.6.4 in filename of file in /nix/store/lcih7nwli98xsqm8rnnz7mi4hmqrhs1l-python3.10-matrix-synapse-mjolnir-antispam-1.6.4

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
matrix-synapse-plugins.matrix-synapse-mjolnir-antispam

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/lcih7nwli98xsqm8rnnz7mi4hmqrhs1l-python3.10-matrix-synapse-mjolnir-antispam-1.6.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/lcih7nwli98xsqm8rnnz7mi4hmqrhs1l-python3.10-matrix-synapse-mjolnir-antispam-1.6.4
ls -la /nix/store/lcih7nwli98xsqm8rnnz7mi4hmqrhs1l-python3.10-matrix-synapse-mjolnir-antispam-1.6.4/bin

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

1 package built:

matrix-synapse-plugins.matrix-synapse-mjolnir-antispam

Maintainer pings
cc @jojosch for testing.


Add patch 2.7.5

As a side note, audit seems to be broken.  Regarding this new formula, it keeps saying that gnu urls should be "ftpmirror.gnu.org".  So I changed it so that both the url and mirror fields were ftpmirror.gnu.org, and audit just kept saying that same thing.  I even tried leaving the mirror field blank and just using the url field with "ftpmirror.gnu.org", and still audit complained.
I finally gave up and made it as you see here.

I think audit is forgetting that even a "ftpmirror.gnu.org" url should start with "https".  When I deleted the protocol prefix, audit passed.

I see now that the bots are choking on (what I think is) the audit error I mentioned above.

This already exists as "gpatch" (previously a limitation of the implementation made it impossible for us to name a class "Patch"): https://github.com/Homebrew/homebrew-dupes/blob/master/gpatch.rb

For future reference, the URLs for GNU stuff should be
url "http://ftpmirror.gnu.org/..." # no https, it does not work
mirror "https://ftp.gnu.org/gnu/..." # https

this will pass audit.

For future reference, the URLs for GNU stuff should be

Ah, I didn't know that https://ftpmirror... wouldn't work.  Perhaps audit should have a clearer warning message, one that includes the http protocol.  Otherwise, schlubs like me who have been watching the httpsification of URLs in BrewLand will assume https is the right thing.


reproducible output: ufo2ft needs to handle timezone

Per report by Chris Lamb on Debian bug tracker:

https://bugs.debian.org/890280 ("ufo2ft: please make the output reproducible")

ufo2ft does not currently take account of the timezone when trying to use the externally provided timestamp.  Reporter has provided a short patch here to correct the handling:

https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=890280;filename=ufo2ft.diff.txt;msg=5

@lamby has sent a pull request at:

googlei18n/ufo2ft/pull/219

Thanks @sladen. I think we can close this in favour of the PR, mind you?


Add additional data in Air Quality Sensor PM 2.5 / PM 10 decoder

Currently only PM 2.5 / PM 10 mass concentration values are provided, but the message payload seems to contain more, currently unknown data.
The integrated sensor is a Sensirion SPS30.
Potential candidates

Battery status
Presence of external power supply connection
Update rate
PM 0.5 / PM 4 mass concentration values
PM number concentration values

Hi Matthias,
I have just received a Bresser PM2.5/PM10 + dedicated Display!
Bresser part 7110300 £59.84 via Amazon dispatches Bresser-UK sold by Bresser-UK!
Bresser-UK online price £130 + delivery!!!
Bresser 7009970 PM2.5/PM10 NO display - Amazon £40.85 ... Bresser-UK £109!!!
Anyway... Initial testing... CRC 2bytes, ID (I suspect still 4bytes) changes on reset? aaaagh.
Also changed after ~ 12~24 Hrs (000000xx).
further tests to do ... any thoughts?
MacH

Hi MacH,
The ID is two bytes! I hope I didn't make any mistakes when I back-ported it from WeatherSensor.cpp... You might want to cross check it. I couldn't test the rtl_433 version.
Matthias

Hi Matthias,
Did you ever monitor the Comms bus on the PM10/SPS30.
I have connected with a logic analyser and found some weird results,
some of which makes sense but does not follow the datasheet!
My PM10 does not have SEL connected to GND therfore Communication is via uart.
I have include my Capture (it is saleae)in zipfile.
I Reset the PM10 and wait for trigger then capture for 10 minutes.
IC communicates with sensor via TX and RX data, sort of makes sense as per datasheet.
IC to RF chip (Transmits 10 times)??? (No request for info no comms bus)?? ... then again
IC communicates with sensor via TX and RX data sort of makes sense as per datasheet.
I also receive RF via SI4461 and monitor Clk/RxData.
What do you think.
MaCH
PM10.zip

Hi @MacH-21,
Yes, the SEL is floating, i.e. communication is done via uart. I also checked that data is encoded as floating point by checking the specific configuration command/response.
Here is an example generated with the Python script mentoned above:
* * * *

2024/2/13
Experiment ID

* * * *

Date,Time,Mass,,,,Number
yyyy/m/d,h:m:s,PM1,PM2.5,PM4,PM10,0.3÷0.5,0.3÷1,0.3÷2.5,0.3÷4,0.3÷10,typical size
,,ug/m^3,ug/m^3,ug/m^3,ug/m^3,#/cm^3,#/cm^3,#/cm^3,#/cm^3,#/cm^3,um

CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
2024/2/13,17:54:59 - 1.59,1.94,2.15,2.26,10.31,12.38,12.68,12.73,12.74,0.52
CMD: 3, STATE: 0
2024/2/13,17:55:0 - 1.63,1.99,2.20,2.31,10.55,12.68,12.97,13.03,13.04,0.52
CMD: 3, STATE: 0
2024/2/13,17:55:2 - 1.77,1.87,1.87,1.87,12.20,14.10,14.13,14.14,14.14,0.49
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 2,2,2,2,11.31,13.31,13.48,13.51,13.52,0.50
2024/2/13,17:58:49 - 7.87,8.32,8.32,8.32,54.21,62.64,62.80,62.81,62.82,0.49
CMD: 3, STATE: 0
2024/2/13,17:58:51 - 7.74,9.11,9.87,10.25,50.96,60.58,61.67,61.87,61.92,0.50
CMD: 3, STATE: 0
2024/2/13,17:58:52 - 7.53,7.97,7.97,7.97,51.91,59.98,60.13,60.15,60.16,0.47
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 8,8,9,9,52.24,60.79,61.18,61.24,61.26,0.48
2024/2/13,17:59:46 - 3.20,4.20,4.87,5.20,19.97,24.58,25.46,25.63,25.67,0.67
CMD: 3, STATE: 0
2024/2/13,17:59:47 - 3.19,4.04,4.59,4.86,20.22,24.60,25.33,25.47,25.51,0.67
CMD: 3, STATE: 0
2024/2/13,17:59:49 - 3.16,3.99,4.52,4.78,20.13,24.44,25.16,25.29,25.32,0.67

"STATE: 67" -> Command not allowed in current state (same as you observed)
Regards,
Matthias

Some data for racking your brains.
SPS30 output (UART)
* * * *

2024/2/13
Experiment ID

* * * *

Date,Time,Mass,,,,Number
yyyy/m/d,h:m:s,PM1,PM2.5,PM4,PM10,0.3÷0.5,0.3÷1,0.3÷2.5,0.3÷4,0.3÷10,typical size
,,ug/m^3,ug/m^3,ug/m^3,ug/m^3,#/cm^3,#/cm^3,#/cm^3,#/cm^3,#/cm^3,um

CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
2024/2/13,19:53:46 - 8.01,8.47,8.47,8.47,55.19,63.77,63.94,63.95,63.96,0.43
CMD: 3, STATE: 0
2024/2/13,19:53:47 - 8.05,8.51,8.51,8.51,55.44,64.06,64.23,64.24,64.26,0.42
CMD: 3, STATE: 0
2024/2/13,19:53:48 - 8.10,8.57,8.57,8.57,55.81,64.49,64.66,64.67,64.68,0.43
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 8,9,9,9,55.57,64.20,64.37,64.39,64.40,0.42
2024/2/13,19:54:43 - 7.29,7.71,7.71,7.71,50.25,58.06,58.21,58.22,58.23,0.36
CMD: 3, STATE: 0
2024/2/13,19:54:44 - 7.33,7.76,7.76,7.76,50.52,58.38,58.53,58.54,58.55,0.37
CMD: 3, STATE: 0
2024/2/13,19:54:45 - 7.38,7.81,7.81,7.81,50.87,58.78,58.94,58.95,58.96,0.38
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 7,8,8,8,50.63,58.50,58.65,58.67,58.68,0.37
2024/2/13,19:55:40 - 5.70,6.03,6.03,6.03,39.28,45.39,45.51,45.52,45.53,0.43
CMD: 3, STATE: 0
2024/2/13,19:55:41 - 6.04,6.38,6.38,6.38,41.59,48.05,48.18,48.19,48.20,0.42
CMD: 3, STATE: 0
2024/2/13,19:55:42 - 6.34,6.70,6.70,6.70,43.66,50.45,50.58,50.59,50.60,0.43
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 6,6,6,6,42.05,48.58,48.71,48.72,48.73,0.43
2024/2/13,19:56:37 - 9.66,10.21,10.21,10.21,66.53,76.87,77.08,77.09,77.10,0.35
CMD: 3, STATE: 0
2024/2/13,19:56:38 - 9.55,10.10,10.10,10.10,65.81,76.05,76.25,76.26,76.27,0.35
CMD: 3, STATE: 0
2024/2/13,19:56:39 - 9.43,9.97,9.97,9.97,64.98,75.08,75.28,75.29,75.31,0.35
CMD: 1, STATE: 67
CMD: 0, STATE: 0
CMD: 128, STATE: 0
CMD: 3, STATE: 0
               AVG - 10,10,10,10,65.58,75.77,75.97,75.98,76.00,0.35
2024/2/13,19:57:34 - 10.79,11.41,11.41,11.41,74.35,85.91,86.14,86.15,86.17,0.45
CMD: 3, STATE: 0
2024/2/13,19:57:35 - 10.68,11.30,11.30,11.30,73.59,85.03,85.25,85.27,85.28,0.46
CMD: 3, STATE: 0
2024/2/13,19:57:36 - 10.58,11.18,11.18,11.18,72.86,84.19,84.41,84.43,84.44,0.47

Air Quality Sensor Radio Message Decoding
[479745][I][WeatherSensor.cpp:1180] decodeBresser7In1Payload(): PM1.0: 0010 PM2.5: 0011 PM10: 0011 PN1: 0067 PN2: 0078 PN3: 0078
[536691][I][WeatherSensor.cpp:1180] decodeBresser7In1Payload(): PM1.0: 0008 PM2.5: 0009 PM10: 0009 PN1: 0059 PN2: 0068 PN3: 0068
[593739][I][WeatherSensor.cpp:1180] decodeBresser7In1Payload(): PM1.0: 0007 PM2.5: 0008 PM10: 0008 PN1: 0049 PN2: 0057 PN3: 0057
[650687][I][WeatherSensor.cpp:1180] decodeBresser7In1Payload(): PM1.0: 0008 PM2.5: 0008 PM10: 0008 PN1: 0053 PN2: 0061 PN3: 0061
[707729][I][WeatherSensor.cpp:1180] decodeBresser7In1Payload(): PM1.0: 0009 PM2.5: 0009 PM10: 0009 PN1: 0061 PN2: 0070 PN3: 0070

Observations

In the UART output, PM4 and PM10 are always very close
Decoding of PM1.0, PM2.5 and PM10 seems to be correct
Assumed particle number concentration values are slightly off w.r.t. UART output


Vendor rpc library and update imports

Also vendor client and unvendor gregor
(since it's unused).

Unvendored gregor (since it's unused). Will merge when CI passes.


Build fail with vs 2019

According to README, On Windows, VS 2017 Build Tools or later should be sufficient., users should be able to build oeedger-cpp with vs2019. However, based on my test, the build succeeded with vs2017 but failed with vs2019 on the same machine.
The log is as follows.
[10/244] Performing build step for 'oeedger8r-cpp'
FAILED: tools/oeedger8r-cpp-prefix/src/oeedger8r-cpp-stamp/oeedger8r-cpp-build tools/oeedger8r-cpp/oeedger8r.exe
cmd.exe /C "cd /D C:\Users\mingwei\oe-ms\build\x64-2019\tools\oeedger8r-cpp && "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --build ."
[1/70] Building CXX object CMakeFiles\oeedger8r.dir\lexer.cpp.obj
[2/70] Building CXX object CMakeFiles\oeedger8r.dir\parser.cpp.obj
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\parser.cpp(21): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[3/70] Building CXX object test\virtual\CMakeFiles\oeedger8r_test_enclave.dir\enclave.cpp.obj
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\enclave.cpp(46): warning C4273: 'wcslen': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_wstring.h(137): note: see previous definition of 'wcslen'
[4/70] Linking CXX static library test\virtual\oeedger8r_test_enclave.lib
[5/70] Building CXX object test\virtual\CMakeFiles\oeedger8r_test_host.dir\host.cpp.obj
FAILED: test/virtual/CMakeFiles/oeedger8r_test_host.dir/host.cpp.obj
"C:\PROGRA~2\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx64\x64\cl.exe"  /nologo /TP  -IC:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /Fotest\virtual\CMakeFiles\oeedger8r_test_host.dir\host.cpp.obj /Fdtest\virtual\CMakeFiles\oeedger8r_test_host.dir\oeedger8r_test_host.pdb /FS -c C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C2039: 'string': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include\map(25): note: see declaration of 'std'
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C2065: 'string': undeclared identifier
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C2146: syntax error: missing ';' before identifier 'path_with_ext'
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C2065: 'path_with_ext': undeclared identifier
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C2039: 'string': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include\map(25): note: see declaration of 'std'
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(91): error C3861: 'string': identifier not found
C:\Users\mingwei\oe-ms\tools\oeedger8r-cpp\test\virtual\host.cpp(94): error C2065: 'path_with_ext': undeclared identifier
[6/70] Building CXX object CMakeFiles\oeedger8r.dir\main.cpp.obj
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.

@mingweishih
I figured out what was going on.
In the version of oeedger8r-cpp used in openenclave repository oeedger8r-cpp\test\virtual\host.cpp does not #include <string> or #include <mutex>. vs2019 results in a compile error whereas other compilers somehow manage to make std::string visible.
In any case, the fix #40 is the right one since it explicitly includes string.

@mingweishih
I figured out what was going on.
In the version of oeedger8r-cpp used in openenclave repository oeedger8r-cpp\test\virtual\host.cpp does not #include <string> or #include <mutex>. vs2019 results in a compile error whereas other compilers somehow manage to make std::string visible.
In any case, the fix #40 is the right one since it explicitly includes string.

I just confirmed the fix in the same environment that I used to reproduce the failure. Now it works with vs2019 prompt :)


Endpoint to remove external IDs

Right now it's not possible to remove external IDs. @vidya-ram mentioned it's needed now.

Resolved in #233.


Bump runc dependency to version v1.1.12

What this PR does / why we need it:
A high vulnerability[1] has been found in runc versions < v1.1.12.
Update to version v1.1.12
[1] https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
/cc @xpivarc @dhiller
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[x] Design: A design document was considered and is present (link) or not required
[x] PR: The PR description is expressive enough and will help future contributors
[x] Code: Write code that humans can understand and Keep it simple
[x] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[x] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[x] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[x] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[x] Community: Announcement to kubevirt-dev was considered

Release note:
Update runc dependency to v1.1.12

Do we have dependabot for kubevirt ? if not why not ?

Do we have dependabot for kubevirt ? if not why not ? it could maybe do it itself

We do have one - currently it is just running against project-infra to test it out. We should look at enabling it for here too.
https://github.com/kubevirt/project-infra/blob/c025cb0c8736774b845d78cd06ea0123aa0c4ab5/robots/cmd/dependabot/main.go


[Snyk] Security upgrade python from 3.7.2-slim to 3.12.0rc1-slim

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

mlflow/Dockerfile

We recommend upgrading to python:3.12.0rc1-slim, as this image has only 41 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

329
XML External Entity (XXE) Injection SNYK-DEBIAN9-EXPAT-450910
No Known Exploit

384
OS Command Injection SNYK-DEBIAN9-OPENSSL-2807589
No Known Exploit

384
OS Command Injection SNYK-DEBIAN9-OPENSSL-2807589
No Known Exploit

321
OS Command Injection SNYK-DEBIAN9-OPENSSL-2933517
No Known Exploit

513
Integer Overflow or Wraparound SNYK-DEBIAN9-SQLITE3-307593
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 XML External Entity (XXE) Injection

snyk rebase


Blog: Current State of 2019 Third Party Kubernetes Audit

Fixes https://github.com/kubernetes/sig-security/issues/56
Preview: https://deploy-preview-36971--kubernetes-io-main-staging.netlify.app/blog/2022/10/05/current-state-2019-third-party-audit/
/cc @raesene @cailynse @reylejano @cji
/sig security docs
/committee security-response

praise: This looks really good to me! I like how concise it is, and how it makes it easy to identify places for contributing.
idea: There is a small summary in the findings - is it worth including it?

Overall, Kubernetes is a large system with significant operational complexity. The
assessment team found configuration and deployment of Kubernetes to be non-trivial, with
certain components having confusing default settings, missing operational controls, and
implicitly defined security controls. Also, the state of the Kubernetes codebase has
significant room for improvement. The codebase is large and complex, with large sections
of code containing minimal documentation and numerous dependencies, including
systems external to Kubernetes. There are many cases of logic re-implementation within
the codebase which could be centralized into supporting libraries to reduce complexity,
facilitate easier patching, and reduce the burden of documentation across disparate areas
of the codebase.
Despite the results of the assessment and the operational complexity of the underlying
cluster components, Kubernetes streamlines difficult tasks related to maintaining and
operating cluster workloads such as deployments, replication, and storage management.
Additionally, Kubernetes takes steps to help cluster administrators harden and secure their
clusters through features such as Role Based Access Controls (RBAC) and various policies
which extend the RBAC controls. Continued development of these security features, and
further refinement of best practices and sane defaults will lead the Kubernetes project
towards a secure-by-default configuration.

@cailynse Thanks for the praise. I worry that reiterating the summary from the report, would make people implicitly believe that the summary has not changed over the years and may cause confusion.

@cji thanks for the feedback! I think adding a blog post link at the top of the original issue description, would be good enough, imo :)

For publication date, could I suggest 2022-10-05 (or, if it looks like it won't be ready on time: later)

For publication date, could I suggest 2022-10-05 (or, if it looks like it won't be ready on time: later)

@reylejano would that be okay with timelines for 2021-22 audit publication?
(Want to publish this atleast a week before publication of the new audit)

For publication date, could I suggest 2022-10-05 (or, if it looks like it won't be ready on time: later)

@reylejano would that be okay with timelines for 2021-22 audit publication?
(Want to publish this atleast a week before publication of the new audit)

2022-10-05 is good

@reylejano @sftim changed it to 2022-10-05

Thanks you all for the feedback while I was away. Incoming - a bunch of changes based on feedback so far!

Update: I have no wifi unfortunately on my plane. So gonna have to push changes later in the afternoon today. I think we should still be on track for Oct 5 publication

/hold
@PushkarJ once you feel this has had the right level of scrutiny, including by the blog team, please unhold
It's OK to merge this even if some nit-level feedback is outstanding (in that case, please consider opening a follow-up PR).
Would be good to get a formal comment from a reviewer representing SIG Security.

All comments should be addressed and resolved now.
Would appreciate lgtm from reviewers who already gave such valuable feedback!

Thank you @PushkerJ for addressing comments
With my SIG Security third-party audit subproject owner hat on, this looks good to me
/lgtm

/lgtm


The meta component event does not work.

Hello.
I ran into a problem, I have a meta component in which I store the state of the current match - points, currency.
I need to display this data on ui.
I tried Any event. But why they do not work at all. I followed the recommendations from here, did not help.
I tried the Self event, just without result, the event does not work.
Here is an example of a listener:
public class PhaseScoreBar : MonoBehaviour, IEventListener, IMatchDataListener
{
    public void RegisterEventListeners(IEntity entity)
    {
        Contexts.sharedInstance.meta.matchDataEntity.AddMatchDataListener(this);
      ...
    }

    public void OnMatchData(MetaEntity entity, uint numberPhase, uint currentPhaseScore, uint totalScore,
        uint matchGold)
    {
      ...
    }
}

and here is an example of changing data in the companente:
class DeadListener : MonoBehaviour, IEventListener, IDeadListener
{
    private MetaContext meta;

    public void RegisterEventListeners(IEntity entity)
    {
        meta = Contexts.sharedInstance.meta;
        var gameEntity = entity as GameEntity;
        gameEntity?.AddDeadListener(this);
    }

    public void OnDead(GameEntity entity)
    {
        if (entity.isDead)
        {
            if (entity.hasBasicEnemy && meta.isPlayMatch)
            {
                meta.matchDataEntity.ReplaceMatchData(meta.matchData.NumberPhase,
                    meta.matchData.CurrentPhaseScore += entity.basicEnemy.RewardExp,
                    meta.matchData.TotalScore += entity.basicEnemy.RewardExp,
                    meta.matchData.MatchGold += entity.basicEnemy.RewardGold);
            }

            gameObject.Unlink();
            entity.Destroy();
            gameObject.DestroyGameObject();
        }
    }
}

OnDead is called, the matchData update code is also, but OnMatchData is not called.
Cheers

Hello, triggering event during eventhandling phase, may not work due to eventSystem ordering. You may adjust [Event] priority or better - create additional entity and handle it in some system at the next frame.

I transferred the update of the meta-component to the same system in which the update of the OnDead component.
Did not help.
After that, I moved it to a completely separate IExecuteSystem system and experimented with the order of the call.
Did not help.
New system:
using Entitas;

class TestSystem : IExecuteSystem
{
   private readonly MetaContext meta;
   public TestSystem(Contexts contexts)
   {
      meta = contexts.meta;
   }

   public void Execute()
   {
      meta.matchDataEntity.ReplaceMatchData(meta.matchData.NumberPhase,
                            meta.matchData.CurrentPhaseScore,
                            meta.matchData.TotalScore,
                            meta.matchData.MatchGold);
   }
}

Did you add MetaEventSystems to systems in gameController?

@c0ffeeartc Thank! It worked. I was not very attentive. Thank you very much for your time)


Player search sidebar in transfers page

          TO DO: On the transfers page, the next few fixtures need to also be added to the players shown at the right side

Originally posted by @paudsu01 in https://github.com/paudsu01/FPL-360/issues/6#issuecomment-1930956761

The code will need to show additional info(next few fixtures and also away jersey if an away game for now) for players that appear in the player search sidebar of the transfers page


Fix restore error message typo

Test name
Status

big-data
passed

scaling
passed

upgrade-haproxy
passed

recreate
passed

storage
passed

haproxy
passed

init-deploy
passed

self-healing
passed

scaling-proxysql
passed

restore-to-encrypted-cluster
passed

security-context
passed

limits
passed

upgrade-proxysql
passed

monitoring-2-0
failed

self-healing-advanced
passed

demand-backup
passed

smart-update
passed

operator-self-healing
passed

affinity
passed

one-pod
passed

auto-tuning
passed

scheduled-backup
failed

proxysql-sidecar-res-limits
failed

upgrade-consistency
passed

users
passed

tls-issue-self
passed

tls-issue-cert-manager
passed

tls-issue-cert-manager-ref
passed

validation-hook
passed

demand-backup-encrypted-with-tls
failed

Test name
Status

big-data
passed

scaling
passed

upgrade-haproxy
passed

recreate
passed

storage
passed

haproxy
passed

init-deploy
passed

self-healing
passed

scaling-proxysql
passed

restore-to-encrypted-cluster
passed

security-context
passed

limits
passed

upgrade-proxysql
passed

monitoring-2-0
failed

self-healing-advanced
passed

demand-backup
passed

smart-update
passed

operator-self-healing
passed

affinity
passed

one-pod
passed

auto-tuning
passed

scheduled-backup
failed

proxysql-sidecar-res-limits
failed

upgrade-consistency
passed

users
passed

tls-issue-self
passed

tls-issue-cert-manager
passed

tls-issue-cert-manager-ref
passed

validation-hook
passed

demand-backup-encrypted-with-tls
failed


Updated service client with TR api changes

Support for TR api changes for summary view and asynchronous submission, to improve performance.

@jugu

minor rewording to trigger rebuild post travis changes

that works, or rebase and force push…


Add Codecs for Doubles and Floats by default

Coverage decreased (-0.4%) to 83.297% when pulling 78480cd809a0ada6c3a74872c6d0ad3c1c7c6044 on lloydmeta:feature/float-double-codecs into 1fb1a09eff4ed1575c1b8828f2d04c30d10473cc on alexandru:master.

Coverage decrease is unrelated to this change set; there's something non-deterministic about coverage measurements...


Question about 'existing platforms and tools for Open Source Software' section

Existing platforms and tools for Open Source Software
Virtual environments and machines are becoming increasingly popular as high-powered research workflow enablers. Popular services include Google Cloud and Amazon Web Services, which also assist with database storage and content delivery, as well as computational power. InsideDNA is a computing platform for reproducible research in bioinformatics, genomics and the life sciences.

This first paragraph reads a little strangely to me and it's not clear how it's connected to the Open Source topic area. A couple of things you could be trying to say here:

Virtual environments and machines are becoming increasingly popular as high-powered research workflow enablers and many of these are built upon open source software (operating systems, programming languages, data processing frameworks etc.)
Popular services include Google Cloud and Amazon Web Services, which also assist with database storage and content delivery, as well as computational power provide a great venue for running your open source software.
Something else?

Hey Arfon, thanks for this comment. Yes, you're right, that is a bit messy. Number 1 nailed it - have edited that in now, thank you. Shockingly, we don't get taught much about OSS in Palaeontology, so writing all of this has been a huge learning curve for me too! :)


ISSUE: Unusual expiration reminder date for pod when changing pod early

Hi, I just changed a pod early, after about 2 days and some hours.
After priming, in the screen with the expiration reminder, the pre-filled Expiration Reminder looks to have carried over the value from the previous pod ("tomorrow at 10:16"). That should probably update to a time closer to 3 days, probably in line with what's shown on the selector below.
See photo.

The selector shows a expiration reminder 48 hours from pod activation (June 10, 16:42).

This is a riley_ios problem that happened with a recent UI change that wasn't tested well enough (with Loop v2.2.4).  Not anything Ivan should be dealing with. Here's the work around.
https://loopkit.github.io/loopdocs/operation/loop-settings/pump-commands/#expiration-reminder

Ah, cool, Thank you, Marion. I'll close the issue.


Feature request: Sample weights

In this work (preprint), we had to resample the dataset so that the target variable had a flat distribution to prevent pyoperon from only learning about the most common values. A better alternative, that pyoperon does not currently support, is to use sample_weights when computing the loss function.
For example, we would have X, y, w (sample weights), then the loss function is computed as the weighted average of the losses of each data instance
$$loss_{total} = \frac{1}{\sum_i w_i} \sum_i w_i \times loss(X_i, y_i)$$
this is already supported by many scikit-learn estimators.
The use case would be varied: from specifying the focus of a regression task, to use datasets that have been sampled in a way that the data come with sampling weights (this is common practice in social sciences and in simulation-based inference in STEM).

Yes, this feature is useful in many applications.
However, I would recommend not to handle this via sample weights for a loss function but via likelihood functions, which are anyway prepared to be integrated into Operon.
For squared-error loss, your case is equivalent to a Gaussian likelihood with sample-specific error variance.  The negative log likelihood is:
$$ nll = 1/2 \sum_i^n \log (2 \pi \sigma_i^2) + 1/2 \sum_i^n \sigma_i^{-2}(y_i - f(x_i, \theta))^2$$
The $\sigma_i$ would be proportional to your weights. If they are constant the first term in the nll can be ignored.

Hmmm I think these are different things.
The likelihood method that you are mentioning is with respect to data that have uncertainty associateds to the target values, in this case the $\sigma_i$ corresponde to the uncertainty (e.g. experimental error) associated with the measured $y_i$. This is what is used to fit a (explicit and domain knowledge-driven) model with the so-called $\chi^2$ (chi-squared) minimisation.
What I suggest is to apply these weights at a sample statistical level. It is common to have data sampled which needs to be statistically re-weighted, a good example is social data where sampling is difficult and from a random sampling of data one then needs to re-weight the sample to better approximate known global statistics (apparently this is called post-stratification). Another example happens in Physics a lot when sampling data using an MCMC with a bias towards tails of the distribution, the end sample is then re-weighted back to the "true" distribution. In both cases, one uses weights to derive the statistics of the dataset through weighted averages, standard deviations, etc.
As such, I believe that the first case (your suggestion) is a different type of loss function, say "chi-squarted MSE" (or non-constant std MSE), whereas the second case (my suggestion) is a statistical re-weighting of virtually any loss function.

I was refering to maximum likelihood estimation of parameters.
I see your point that sometimes we would not call the objective function a likelihood even when the mathematical structure matches exactly a well-known likelihood.

Oh, completely. There are many loss functions in the ML literature that do not have a likelihood interpretation.
My request, however, is at the level of how the loss is computed to train the ML model over data sample, i.e. at the distributional level of the data points. For example, when pyoperon computes the MSE over the dataset, it performs
$$MSE = \frac{1}{N}\sum_i^N MSE(X_i, y_i) = \frac{1}{N}\sum_i^N (\hat y(X_i) - y_i)^2$$
which implies that all data points, $(X_i, y_i)$, are equally likely with probability $p_i=1/N$, i.e. the MSE is the expected value of the MSE over the distribution of the data, $(X_i, y_i) \sim \mathcal{D}$,
$$MSE = \frac{1}{N}\sum_i^N (\hat y(X_i) - y_i)^2 = \sum_i^N p_i (\hat y(X_i) - y_i)^2 = \mathbb{E}_{\mathcal{D}}[[MSE(X_i,y_i)]]$$
Now, I might have a data generating process, i.e. a sampling procedure, that does not produce data points with the same probability, but instead $p_i = w_i/\sum_i w_i$, such that
$$MSE = \mathbb{E}_{\mathcal{D}}[[MSE(X_i,y_i)]]= \frac{1}{w_i} \sum_i^N w_i MSE(X_i, y_i)$$
where $w_i$ are (non-negative) weights.
This functionality exists out-of-the-box for scikit-learn estimators, from which SymbolicRegressor inherits, (see here,here and here), as well as in other common packages such as Keras, XGBoost, Lightgbm, etc
If pyoperon was purely python I'd propose a MR, but since it's a wrapper to operon and my C++ is rusty I don't have the time to delve on this at the moment... this was the main shortcoming of pyoperon in our paper, sample-weights would have made our study a lot easier.

There's already a plan in place to factor out the metrics int a different library:
https://heal-research.heuristiclab.com/vstat/group__Metrics.html
Do the metrics in there satisfy your use case?

Yes! This is exactly the requested functionality!


support multiple identical args in SCYLLA_EXT_OPTS

since we have cases multiple --experimental-features needs to be passed via SCYLLA_EXT_OPTS, adding support for key with multiple values in process_opts()
fixes: #540
closes: #541
Testing - to be on the safe side:

[ ] https://jenkins.scylladb.com/job/scylla-staging/job/dtest-pytest-gating/338/ (OSS)
[ ] https://jenkins.scylladb.com/job/scylla-staging/job/dtest-pytest-gating/339/ (Enterprise)

might want to reference #541.
copy @eliransin , hi Eliran, in case you are still interested in this issue.

Looks good to me. I assumed you tested it actually works? :-)

it works for the cases reported, i.e. multiple --experimental-features

tests showed, that a few places were needed to change and expect a list, not assume an int.
fixed those and re-running gating

Code is failing in gating
Need to check why it's still breaking Scylla boot

@nyh by the way, why don't we support comma-separated list arg in scylla --experimental-features?

I don't know (I don't think I wrote that code?), we definitely could. But we need to also keep supporting the current approach (multiple instances of the option), because it's convenient in scripts.

Code is failing in gating
Need to check why it's still breaking Scylla boot

found the issue, the args without value, was passing empty space as value (it wasn't clear from logs)
now fixe, and giving one more go in gating


installation issue.

Can you please move your topic into description and add short topic name.

please ans me..

please ans me..

please ans me..

Hi.
traccar-windows-32-2.11 has an exe.file, is the latest version.

You should install latest version from here:
https://www.traccar.org/download.jsp
On the device list page version 2.0 means that all Traccar version starting from 2.0 support your device. It doesn't mean that you need to get that specific version.

ok,, thank you..


Created WSL2 install doc page

Added the first steps to have a WSL2 environment ready for Meshery.
The step 4 will be "forked" with other K8s clusters, so the information is not limited to K3d
Signed-off-by: Nuno do Carmo<EMAIL_ADDRESS>

@firstladymb good question. There's much room for improvement in terms of what the "rest of the steps" are. Currently, those are essentially executing the three lines of commands under the Quick Start section. We should revisit this area.

Thank you for this @nunix! 👍


Cross‐Compilation Overrides

This adds command line options to override individual aspects of the destination.
It enables cross‐compilation to be done without the need to write out a separate JSON file, and it simplifies one‐off experiments during testing. It also paves the way for SwiftPM to start looking for things in standard locations based on the supplied triple (but that is not implemented here).
The new options are just as hidden as the original --destination option that served as their inspiration.
The aspects of the JSON file not touched on here were already available through other means anyway. (e.g.-Xswiftc, -Xcc)
Here is a diff that also shows the simplification it allows to an external integration test, which passes before and after.

Thanks! This looks good, just one minor comment.

I made the requested change. I’m rerunning the external CI to make sure I didn’t typo anything. The log is here. I’ll ping again when I notice it has finished.

Oops. I forgot to update the tests’s flags to match. The new run is here.

It succeeded.

@swift-ci smoke test

@swift-ci smoke test linux


basic operators added as well as some basic functions

Hello, I have done some updates on your code.
Added some basic mathematical operators (normal and in place) for:

summation
subtraction
division/ truedivision/ floor
mod
power

Added two basic functions to ndarray:

tolist():
to convert the ndarray into a comprehensive list
argwhere()
to return a list of keys, where the value of the ndarray match an other given value

Modified the init() method so it accepts also lists as a shape.
Added the nan object (to be able to use np.nan).
Added the reshape function (not only as an method of the ndarray class)
The code is not entirely tested but should work.
I needed these functions in my project and had to work only with a basic python install using the standard library.
Thanks for the having made this project!

Thanks for these changes, glad to hear the project was helpful.

Can you restore the docs directory that was deleted, and also run pytest (may have to install it via pip) and ensure it succeeds?

The docs are restored and the tinyndarray tests passed. The tests for the tinynumpy script also pass, but only when numpy is not installed, but I suppose this is expected behavior.

Excellent, thank you!


feat: spanner emulator support

Allows users to set EmulatorDetection through SpannerConnectionStringBuilder.
Configures integration tests with EmulatorDetection.EmulatorOrProduction.

Currently this only addresses the second dot point of the comment. I am still figuring out how to address the third point.
@jskeet I just wanted some quick feedback from you on whether I'm on the right track :) No need to do a detailed review for now.

This is ready for review (I do need to fix the unit tests which I'll do now). I ran the ITs and they ran for the most part:
Total tests: 167
Passed: 92
Failed: 74
Skipped: 1
I will go through the failed tests to figure out which ones need to be skipped (due to the emulator not supporting all features that the production backend supports). This will need to be done in a separate PR. If there's anything that can be fixed in terms of the setup, I will do so in this PR.

Thanks @jskeet. I agree about doing this as two separate PRs. To preserve the discussion, I may leave this PR as is to continue the work on setting the connection properties. I'll cherry-pick the builders into a separate PR.

I've merged #4928 now, so it's probably worth rebasing this PR, unless you'd prefer to start a new one.

I'll get to this when I can, but it may go into next week I'm afraid.

No worries @jskeet. I'm also sporadically working on it when I find bits of time here and there.

This is what I came up with for now https://github.com/googleapis/google-cloud-dotnet/pull/4915/commits/e98b470ec20d5318fc13040a82c6a104e737711a. I don't think you need to move the CallInvoker to SpannerClientCreationOptions, as long as the endpoint and credentials can be correctly extracted from that class.
My proposed change to SpannerClientBuilder is a bit of a mess since there's no nice way to extract the endpoint and credentials without attempting to build an instance of the class. For now I'm reading the env var manually. But if there was a static version of GetEmulatorEnvironment that also accepts an EmulatorDetection argument, then it might be cleaner.
Sorry, I know the back-and-forth is taking a bit of time. I'm more than happy for you to take a crack at this but I know you have a lot more stuff going on so I want to help as much as possible.

Building an instance of SpannerClientBuilder is the way to go - we want to get the same exact behaviour as if we were specifying the emulator detection in the builder.
I would suggest just making MaybeCreateEmulatorClientBuilder public - then you can use that in SessionPoolManager. If it returns a non-null value, use the endpoint and credentials from that.

PTAL @jskeet. I made all the discussed changes.

Will have a look when I get a chance, but it may well be quite late in the week.

I addressed most of the changes except for the ones in https://github.com/googleapis/google-cloud-dotnet/pull/4915/files#diff-450b4cc43d8fb620f621d63b7de37a31 relating to the session pool.
For context, the changes to that file came out of #4970 when I was trying to run the existing ITs against the emulator. To be honest, I haven't quite gotten the whole thing to work yet even with that change.
My preference would be to revert the changes to that file and work on it separately. The highest priority is to add the emulator support to the client since there is a customer that's keen to try this out in C#.
Getting the ITs to work is a bonus so that we can report emulator issues to the dev team and perhaps have a presubmit that runs the ITs against the emulator. But this will require a bunch of work from my side and from the emulator team to fix some of the failing tests.
@jskeet I would be happy for you to try out a fix for the session pool issue. I'm not familiar with it enough to know what to change. But only if you have time. Otherwise, I'll work on it until I figure it out.
I don't know if the emulator team is planning to fix the concurrent transaction issue before GA. I will check with them and get back to you.

All done, thanks for the review feedback @jskeet.


Fix mobile Safari ignoring last non-alphabet after composition end

This fixed the buggy "input" event in iOS safari, which ignore the last non-alphabet (e.g. Chinese) character after composition end.
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.
Always follow the contribution guidelines when submitting a pull request.

rather than change the event listener, add a timeout 0 for the "input" event also work and this should be better

How should I fix below travis error:
Unexpected function expression  prefer-arrow-callback

Don't really like an idea of using setTimeout, also such dynamic event listener function with setTimeout can't be removed. Can you give me some steps on how to replicate the issue? I will try to look for a better fix

Please tried the following in mobile Safari or cordova in iOS:

create an  field.
Bind the "input" event of that input field to log the field value in console or write on screen.
When you use IME input method (e.g. Chinese) to composite a Chinese character, you can see your original composited Chinese character is logged and immediately follow by a value logged with the last Chinese character missing.

The above cause the autocomplete dropdown ignoring the last Chinese character. It can be either fixed by not using the "input" event as following:
ac.$inputEl.on('change keyup compositionend', onInputChange);
Hope the above explained clearly, let me know if anything is unclear, thanks.

I see now. Maybe we can just make inputEvent as a parameter which is by default is “input” and can be changed for such cases to “change keyup compositionend”? I’m afraid we can break some edge cases if we change it to this in core

Agree with you, it can be an option if anyone facing the same problem


ImageArray Initialization

ImageArray is designed to be initialized with a zarr array. This causes problems when using ImageArrays in parallel compute using dask, where arrays are initialized using key-value arguments, as in https://zarr.readthedocs.io/en/stable/_modules/zarr/core.html#Array. Here is a minimal example
import dask.array as da
from iohub import open_ome_zarr
from multiprocessing import Pool

data_path = path_to_data  # path to any zarr store

with open_ome_zarr(data_path) as ds:
    data = da.from_zarr(ds.data)

func = sum  # you favorite funciton

with Pool(2) as p:
    output = p.map(func, data)

This example will fail, likely because of the way dask initializes the zarr arrays in the workers. In this PR, I make the zarray argument optional and allow for additional keyword arguments.
Fixed #226

Another thought on API design: if the goal is to get a convenient handle of a dask array out of an OME-Zarr array, would it be better to instead add an explicit constructor such like we did for ImageArray.numpy() and #242?


Getting ND2 series images in the order they were captured

nd2 version: 0.5.3
Python version: 3.114
Operating System: Windows 10

Description
Using a multipoint image file and the metadata on the stage position for each field of view in the series, I am trying to stitch the field of view together into a single image. The problem I have encountered is the series is loaded into a third dimension of an array in what seems to be an incorrect order. Is there something I am missing or a workaround to this problem?
Thank you!
What I Did
# Get all image data
f = nd2.ND2File(image_path)
raw_image_array = img_as_float(f)

# Get metadata on the x,y, and z positions

# Populate the dictionary with integers as keys from 0 to 36, image_array and positional data as values

# Create an empty dictionary
xy_positions_dict = {}

# Populate the dictionary with integers as keys from 0 to 36, image_array and positional data as values
for i in range(fov_count):

    # Correct for abnormal layering of FOV series
    k = 1%6 + int(i/6)

    # Get tile array
    tile_array = raw_image_array[k,:,:]

    # Get full FOV string
    main_pattern = r'Position\([^)]+\)'
    full_string = re.findall(main_pattern, xy_positions_str)[i]

    # Get stage position
    stage_position = full_string[full_string.find("[")+len("["):full_string.find("]")]
    stage_position = [float(x) for x in stage_position.split(",")]

    # Get PFS offset
    pfs_off = full_string[full_string.find("pfsOffset=")+len("pfsOffset="):full_string.find(", name")]

    xy_positions_dict[i] = {'Image array': tile_array, 'x': stage_position[0], 'y': stage_position[1], 'z': stage_position[2], 'PFS offset': pfs_off}

# Define stitching function
def stitch_image(dict):

    # Create an empty array
    x_values_min = min([xy_positions_dict[i]['x'] for i in range(fov_count)])
    x_values_max = max([xy_positions_dict[i]['x'] for i in range(fov_count)])
    y_values_min = min([xy_positions_dict[i]['y'] for i in range(fov_count)])
    y_values_max = max([xy_positions_dict[i]['y'] for i in range(fov_count)])

    # Create a new array
    array_x_size = int((x_values_max - x_values_min) * vx_per_um[0]) + fov_x_length
    array_y_size = int((y_values_max - y_values_min) * vx_per_um[1]) + fov_y_length
    output_array = np.zeros((array_x_size, array_y_size), dtype=np.float64)
    output_array = output_array + 0

     for key in dict:

        # Get the image x and y values
        x = dict[key]['x']
        y = dict[key]['y']

        # Calculate the boundaries of the array
        x_l = int(vx_per_um[0] * (x - x_values_min))
        x_r = x_l + fov_x_length
        y_t = int(vx_per_um[1] * (y - y_values_min))
        y_b = y_t + fov_y_length
        # print(x_l, x_r, y_t, y_b)
        output_array[x_l:x_r, y_t:y_b] = dict[key]['Image array']

    return output_array

# Excecute image stitching function
unprocessed_output_array = stitch_image(xy_positions_dict)

hey @mendelfishman, thanks for opening an issue.
I need a bit more information on what img_as_float is doing and where you're getting fov_count, and what xy_positions_str is...
is the image too large to share?  I can definitely try to help you achieve whatever it is you want to do, but I need a runnable example, or a bit more explicit information on where you're accessing the the metadata from the nd2 API, what you're expecting to see, and what you're actually seeing

Hi @tlambert03
I did some more digging and realized that the issue was specific to this .nd2 file, which NIS viewer also displays in the incorrect issue. Using other images, ND2 opens 4-dimensional images (multipoint z-stacks) properly.
Thank you.

Thanks for the update!


Implemented Merge Sort Algorithm

Change Desciption:
This pull request introduces an implementation of the Merge Sort algorithm in Fortran. Merge Sort is a classic divide-and-conquer algorithm used for efficiently sorting arrays.
Definition:
Merge Sort is a sorting algorithm that recursively divides the input array into two halves, sorts each half, and then merges the two sorted halves into a single sorted array. This algorithm is known for its stable sort and predictable O(n log n) time complexity.
Implementation Details:
merge_sort.f90: Contains the merge_sort_module with:

merge_sort: A recursive subroutine that sorts the input array.
merge: A subroutine that merges two sorted arrays into a single sorted array.

The implementation follows the module structure as outlined in the contribution guidelines.
Example Usage:
example_usage_merge_sort.f90: A test program that demonstrates the merge_sort subroutine from the merge_sort_module. It sorts a sample array and prints the results.

Hi @SatinWukerORIG,
Looking forward to your review 🙂

Thanks, @SatinWukerORIG
Looking forward as well to your review for:
#9 , #10 , #11


Add performance test related x64 docker file and images

Signed-off-by: Peter Zhu<EMAIL_ADDRESS>Description
Add performance test related x64 docker file and images
Issues Resolved
https://github.com/opensearch-project/opensearch-build/issues/2211
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@kotwanikunal Let me know if any package is missing.
Thanks.

Codecov Report

Merging #2212 (7502bbd) into main (47a98c3) will increase coverage by 5.43%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #2212      +/-   ##
=============================================
+ Coverage     94.56%   100.00%   +5.43%
=============================================
  Files           205         6     -199
  Lines          4254       105    -4149
  Branches         29        19      -10
=============================================
- Hits           4023       105    -3918
+ Misses          225         0     -225
+ Partials          6         0       -6

Impacted Files
Coverage Δ

src/run_assemble.py

...rkflow/integ_test/service_opensearch_dashboards.py

src/ci_workflow/ci_input_manifest.py

...ts/jenkins/jobs/BuildUploadManifestSHA_Jenkinsfile

src/ci_workflow/ci_check_npm_package_version.py

src/build_workflow/builder.py

...c/manifests_workflow/input_manifests_opensearch.py

src/assemble_workflow/bundle_url_location.py

src/assemble_workflow/dist.py

tests/jenkins/jobs/InputManifest_Jenkinsfile

... and 189 more

Continue to review full report at Codecov.

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

@kotwanikunal Let me know if any package is missing. Thanks.

The node/nvm/npm instructions are missing.

Thanks for fixing this quickly!

Images: https://hub.docker.com/r/opensearchstaging/ci-runner/tags?page=1&name=ci-runner-centos7-performance-test-v1


cmd/go: No recursive directory copy in Go standard libraries

It would be great to have an analog of "cp -r" for the Go standard libraries. I needed this function today for storing an archive containing a couple of nested directories, and couldn't find a ready-to-go solution that is correct wrt linux file ownership and permissions. It seems to be a common enough use case (and difficult enough to implement correctly) that it should be in the standard libraries. As it is, I ended up shelling out using os/exec - which is fine for my purposes, but not cross-platform and requires creation of another process, so it's kind of heavy-weight.

This is a fine function to put into an external package, but I don't see a need for it in the standard library.  There are too many different options to make it appropriate for the standard library--see the GNU/Linux cp --preserve option, for example.

I disagree. We needed this functionality today several times. This is a common pattern needed when working with file systems and especially for cross platform use.
I come from a long Ruby background, there is a great FileUtils class, which implements common use cases for file/dir manipulation.
The issue above, even with --preserve option is implemented in pure Ruby and cross platform compatible.
If one was to provide a PR for this functionality for go, would it be accepted?

@jtarchie It's unfortunately generally not useful to hold discussions on closed issues.  Very few people see them.  The place to discuss things like this is the golang-dev mailing list.
I think the first step would be to write a go-gettable external package.  If that is solid and clean, then we can discuss whether it should come into the standard library, or into golang.org/x.


Multi-node kubernetes clusters

Description
Currently the lima clusters, in k3s.yaml and k8s.yaml, set up a single-node cluster.
The control plane node is "tainted", to allow running user application pods on it:
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
If networking between two instances is set up, it is possible to add additional nodes.
This would implicitly require deploying a multi-host CNI, e.g. flannel - not bridge
Discussion:

#1181

Initial PR:

#1183

The template will have a "boolean", if it is a control plane node or a worker node.
(In order to add worker nodes, you will first need to have set up a control plane)
In k3s these are called "server" and "agent", since they run more than just kubernetes.
But the same concept applies. In k8s, they were previously called "master" and "minion".

The "k8s.sh" script will follow the same pattern as the "k3s.sh" script is doing...
If there is a K8S_TOKEN, it is a worker node. Otherwise, it is a control plane node.

I updated the k3d and kind examples, as an alternative to running multiple virtual machines.

The main issue with the virtual machines is the networking and setting the node IP for each.
It also requires more resources, compared with overprovisioning containers on the same host...