Questions about Theta

Hello, thank you for sharing. What does Theta stand for in training? When I was doing my experiments, Theta was always high, up to 0.9, and I didn't change the Theta part of the code. How do you keep Theta stable during training? Thank you.

We automaticly select the best theta for highest F1 in development set. And apply it to the test set. It didn't need to be stable.

Thank you very much for your answer, but I can't find out what Theta stands for?

if the predict probability < theta, we regard the prediction "non-relation"


Access to Meteor.users.emails

Is there a way to provide access to Meteor.users.emails. I would like to be able to search through that to provide a back end for admins on my website.
Template.adminUsers.settings = function() {
  return {
   position: "bottom",
   limit: 5,
   rules: [
   {
    token: '!',
     collection: Meteor.users.emails,
     field: "address",
     template: Template.userPill
   }
   ]
 }
};

This returns:
Exception from Deps recompute function: TypeError: Cannot call method 'find' of undefined
    at AutoComplete.AutoComplete.filteredList (http://localhost:3000/packages/autocomplete.js?b7fb758e752aef571db59bd9f847c70b041aaaae:582:28)
    at AutoComplete.Template._autocompleteContainer.empty (http://localhost:3000/packages/autocomplete.js?b7fb758e752aef571db59bd9f847c70b041aaaae:819:15)
    at http://localhost:3000/packages/ui.js?b523ef986d3d39671bcb40319d0df8982acacfe8:2838:23
    at Object.Spacebars.call (http://localhost:3000/packages/spacebars.js?5d478ab1c940b6f5a88f78b8adc81a47f022da77:173:18)
    at UI.Unless.UI.block.self (http://localhost:3000/packages/autocomplete.js?b7fb758e752aef571db59bd9f847c70b041aaaae:89:26)
    at http://localhost:3000/packages/ui.js?b523ef986d3d39671bcb40319d0df8982acacfe8:2564:16
    at http://localhost:3000/packages/ui.js?b523ef986d3d39671bcb40319d0df8982acacfe8:2013:23
    at callWithNoYieldsAllowed (http://localhost:3000/packages/deps.js?7afb832ce6e6c89421fa70dc066201f16f9b9105:74:5)
    at _.extend._compute (http://localhost:3000/packages/deps.js?7afb832ce6e6c89421fa70dc066201f16f9b9105:212:7)
    at new Deps.Computation (http://localhost:3000/packages/deps.js?7afb832ce6e6c89421fa70dc066201f16f9b9105:144:10)

Hello, is there a way to get a collection field array?
My Meteor.users emails is contained in an array structure.
{
    "_id" : "wfLnAQuKj7rFqH6ee",
    "createdAt" : ISODate("2015-05-14T22:46:16.823Z"),
    "emails" : [
        {
            "address"<EMAIL_ADDRESS>            "verified" : false
        }
    ]
}

Writing a rule like this doesn't seem to work.
rules: [
   {
    token: '!',
     collection: Meteor.users,
     field: "email[0].address",
     template: Template.userPill
   }

It should just work if you use email.address as the field, per the normal Mongo field specifiers.

Worked for me to show the options but I'm having problems displaying the email after autocompletion in the input. After autocompletion the input remains empty.

@mizzao this is working with Meteor >= 1.4
{
token: '@',
collection: Meteor.users,
field: "address",
template: Template.userEmail
}


Question: Can stunner be used as a pure relay server

Description:
I am deploying stunner in k8s as a pure turn server(with gateway operator), which all clients are out of the cluster. And clients has created data channel successfully, but for video stream, for the peer ip does not in the endpoint list(which is stunner's clusterip and pod ip), the permission was denied.  Is it possible to set the endpoint to <IP_ADDRESS>/0?
here is the code where the IP was compared:
https://github.com/l7mp/stunner/blob/v0.14.0/internal/object/cluster.go#L197
because I am not familiar with turn, is there something wrong I have misunderstood？any info will be helpful, thanks.
some stunner daemon logs:
06:21:08.720580 cluster.go:189: stunner-cluster-sweeper/stunner-headless TRACE: Route: cluster "sweeper/stunner-headless" of type STATIC, peer IP: <IP_ADDRESS> 06:21:08.720588 cluster.go:196: stunner-cluster-sweeper/stunner-headless TRACE: considering endpoint {"<IP_ADDRESS>" "ffffffff"} 06:21:08.720593 cluster.go:196: stunner-cluster-sweeper/stunner-headless TRACE: considering endpoint {"<IP_ADDRESS>" "ffffffff"} 06:21:08.720597 handlers.go:118: stunner-auth DEBUG: permission denied on listener "sweeper/udp-gateway/udp-listener" for client "<IP_ADDRESS>:10709" to peer <IP_ADDRESS>: no route to endpoint 06:21:08.720601 turn.go:235: turn INFO: permission denied for client <IP_ADDRESS>:10709 to peer <IP_ADDRESS> 06:21:08.727499 handlers.go:37: stunner-auth INFO: plaintext auth request: username="admin" realm="stunner.l7mp.io" srcAddr=<IP_ADDRESS>:10709 06:21:08.727512 handlers.go:101: stunner-auth DEBUG: permission handler for listener "sweeper/udp-gateway/udp-listener": client "<IP_ADDRESS>:10709", peer "<IP_ADDRESS>" 06:21:08.727516 handlers.go:106: stunner-auth TRACE: considering route to cluster "sweeper/stunner-headless" 06:21:08.727520 handlers.go:108: stunner-auth TRACE: considering cluster "sweeper/stunner-headless" 06:21:08.727523 cluster.go:189: stunner-cluster-sweeper/stunner-headless TRACE: Route: cluster "sweeper/stunner-headless" of type STATIC, peer IP: <IP_ADDRESS> 06:21:08.727528 cluster.go:196: stunner-cluster-sweeper/stunner-headless TRACE: considering endpoint {"<IP_ADDRESS>" "ffffffff"} 06:21:08.727532 cluster.go:196: stunner-cluster-sweeper/stunner-headless TRACE: considering endpoint {"<IP_ADDRESS>" "ffffffff"} 06:21:08.727536 handlers.go:118: stunner-auth DEBUG: permission denied on listener "sweeper/udp-gateway/udp-listener" for client "<IP_ADDRESS>:10709" to peer <IP_ADDRESS>: no route to endpoint 06:21:08.727543 turn.go:235: turn INFO: permission denied for client <IP_ADDRESS>:10709 to peer <IP_ADDRESS> 06:21:37.009777 handlers.go:37: stunner-auth INFO: plaintext auth request: username="admin" realm="stunner.l7mp.io" srcAddr=<IP_ADDRESS>:10709

Unfortunately this is currently blocking on this issue. No takers yet, but we will definitely get to implement this sooner than later. We are concentrating on eBPF acceleration right now, please bear with us for a couple of weeks yet, it will be really cool!...:-)
The easy workaround is to use STUNner in the headless deployment model and specifying it as the TURN server for all clients and servers: in this case everyone will create a TURN allocation on STUNner and STUNner will connect clients to servers (note that in this case the UDPRoute backend must be STUNner itself). If you really want to use STUNner with the asymmetric ICE mode as a public TURN server then you can fall back to the standalone mode, but this is not really recommended as of now.

Thanks for you reply, I will try the standalone mode and turn back to operator when this feature implemented.

This feature is now available in the latest dev release, see  https://github.com/l7mp/stunner-gateway-operator/commit/5aed1633bbc71a32a7a38c33bfabffa45824ceb9.


Support sync streams in requests

Right now we generate Flux<ByteBuffer> for file uploads in sync methods: https://github.com/Azure/autorest.java/blob/v4/vanilla-tests/src/main/java/fixtures/mediatypes/MediaTypesClient.java#L203
May need stream support in azure-core too.
May be done as part of form data support.

InputStream could get some implication with the retry policy ()/

InputStream could get some implication with the retry policy ()/


Update AUTHORIZED_CONTRIBUTORS.md

Add Jan Vennemann to authorized committers.

We've got a CLA on file for @janvennemann on Docusign now. Good to merge? @cb1kenobi


Script not working any more.

The script is not wokring I get this error:
ERROR:root:Timeout raised
And then it install an old version...
root@vmi1582561:/volume1/Minecraft-Bedrock-Server-Updater/updater# python3 mcser                                                                                ver_autoupdater_debug.py
ERROR:root:Timeout raised, recovering
Using backup link: https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20                                                                                .51.01.zip
Download link: https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.51.                                                                                01.zip
--2024-04-22 09:02:26--  https://minecraft.azureedge.net/bin-linux/bedrock-serve                                                                                r-<IP_ADDRESS>.zip
Resolving minecraft.azureedge.net (minecraft.azureedge.net)... <IP_ADDRESS>, 2                                                                                606:2800:133:206e:1315:22a5:2006:24fd
Connecting to minecraft.azureedge.net (minecraft.azureedge.net)|<IP_ADDRESS>|:                                                                                443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 121562366 (116M) [application/octet-stream]
Saving to: ‘/volume1/Minecraft-Bedrock-Server-Updater/updater/bedrock-server-1.2                                                                                0.51.01.zip’
bedrock-server-1.20 100%[===================>] 115.93M  45.0MB/s    in 2.6s
2024-04-22 09:02:28 (45.0 MB/s) - ‘/volume1/Minecraft-Bedrock-Server-Updater/upd                                                                                ater/bedrock-server-<IP_ADDRESS>.zip’ saved [121562366/121562366]
ERROR:root:Timeout raised, recoveringserver successfully turned off
backup erased
created new backup
new server unzipped
world migrated
server setting migrated
server turned on
[2024-04-22 09:03:40] minecraft server is updated (v<IP_ADDRESS> -> v<IP_ADDRESS>)

I got it working modifying the two wget lines in updater/mcserver_autoupdater.py. Seems to be missing the headers.
subprocess.run(['wget', '--user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"', '-P', minecraft_directory+'/updater', '-c', download_link])

That's right, the user agent needs to be set to something real or else the server will reset the connection.  Maybe I'll make a pull request for this fix.


Make the PulseEffects version available for non-pipewire users

So after PulseEffects changed to PipeWire it changed to Easyeffects, myself I don't like Pipewire and find it to behave really badly at times, would it be possible to perhaps add a note in the readme with a script that allows you to download the old pulseeffects compatible versions?

Yeah I think that would be useful


Compiles in Unity but does not compile in MonoDevelop

Tried current version of Zenject from the Asset Store (2.4 (Apr 21, 2015)). It compiles fine in Unity itself, but fails to compile in MonoDevelop.
CS0241 - Default parameter specifiers are not permitted... etc. This error is obvious: MonoDevelop is defaulted to Mono/.Net 3.5, where they are just not implemented.
There are two possibilities to overcome the error:

change methods with default params to overloaded methods,
or just increase the target framework version (as far as I understand, this automatically increases the language version, which otherwise is not possible manually).

The first one works like a charm, of course. And, in my opinion, it is currently necessary not to use default parameters in the assets at all, as long as MonoDevelop is defaulted to 3.5. So, you probably need to fix this...
But there's more: when I try the second workaround the CS0241 error is gone, but I get a bunch of CS0104 ambiguous references between System and ModestTree Func and Tuple. Here I'm not really sure how to deal with this, since C# and Mono/.NET don't provide version defines, which are desired for such situation. Possibly a good idea is to create a custom define, so we could switch between ModestTree to System versions manually, when necessary.

Thanks for reporting this - I'm going to try changing to use overloads instead

Ok I updated the git repo to play nicely with monodevelop (using overloads).  I'm not seeing your other error though about ambiguous reference.  It might be fixed with the newer version of zenject (2.5)?

The github version now compiles in MonoDevelop just fine.
But, the other error doesn't appear by default, you need to go to Project->Assembly-CSharp Options in MonoDevelop, choose Build->General and change Target Framework to Mono/.Net 4.0 or above. I tried and it's still there. I couldn't be sure if this is really important, though. Probably not. But some people increase the framework version for different reasons (methods with default parameters is one of such reasons).
Also found another minor issue, with cursor visibiliy in GameController of sample game. You now probably need to check for UNITY_5 (or for both  UNITY_5_0 and  UNITY_5_1). Otherwise, Unity automatically converts the code to:
#if UNITY_5_0
            Cursor.visible = false;
#else
            Cursor.visible = false;
#endif

Which is even already in the repo.

Ah yes I see what you mean with the ambiguous errors now.  I'm not sure if there's a way to fully address that since as far as I know there isn't defines you can #ifdef with for the .NET framework version.  The reason that I defined those custom versions of Func<> is because .NET 3.5 or less only defines Func<> up to four parameters, which is quite limiting.  But if you are using a more recent version of .NET then you can just comment those out (I added a comment in Func.cs explaining this).  I had to make a few other minor adjustments but after you do that it seems to compile fine with 4.0
As for the cursor visibility, I'm not sure what problem you are referring to.  I noticed that the cursor is still visible in unity but when run as a standalone build it is correctly invisible.  I did remove the #ifdef though since it was pointless the way it was.
Let me know if you notice any other issues

Maybe I'm a bit of unclear, since I'm not a native English speaker. The "cursor problem" was with the import in 5.1. The original code (as in the asset store version) is
#if UNITY_5_0
        Cursor.visible = false;
#else
        Screen.showCursor = false;
#endif`

The first one is for Unity 5, the second should be for Unity 4 or earlier. But Unity 5.1 has different define UNITY_5_1 and thus chooses the version for Unity 4. And then it converts it to the same Cursor.visible = false;. So it is necessary to use UNITY_5 define or both UNITY_5_0 and UNITY_5_1. Or,  as you did,  just throw defines away and only leave Cursor.visible = false;, if Unity 4 support is no more necessary.
I don't see any other bugs so far. Probably could give you some criticism about the code, if you are open to it. But since my opinion could be a bit of subjective and personal, I'll better write you an email.
Nevertheless, I tried six IoC solutions for Unity (Zenject, StrangeIoC, MinIoC, Adic, uInject, Svelto) and Zenject seems to be best. StrangeIoC is too overcomplicated, Svelto is too simplified, MinIoC does strange things even in its description and examples (e.g. injection into serialized fields of MonoBehaviour), uInject propagates the use of DIMono abstract class instead of MonoBehaviour, Adic requires Inject to be called from MonoBehaviour etc. Only Zenject does what I expect from an IoC/DI framework. So keep up te good work.

Thanks :)  I'm glad you're enjoying it
I see what you mean now.  I'm not sure how many people are still using Unity 4 but I might as well remain compatible with it, since that's the only change required.  So I've made the change you recommended.
Sure, if you have thoughts on the code I'm happy to hear them.  My email is<EMAIL_ADDRESS> I've played with a few of the other frameworks you've mentioned but not very much, so if you have observed anything useful in those I'd be happy to hear those too.
Personally, my biggest gripe with Zenject is that it doesn't have very good support for nested containers.  This is something I plan to address with the next release.  Then after that, probably convention based binding.


bug: request property is undefined in the return value of usePrepareContractWrite()

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
1.2.1
Current Behavior
const { config } = usePrepareContractWrite({
address: USDT_CONTRACT_ADDRESS,
abi: USDT_CONTRACT_ABI,
functionName: 'transfer',
args: [CONTRACT_ADDRESS, Number(parseUnits(${Number(debouncedSellAmount)}, 6))],
chainId: CHAIN_ID,
});
This is my code.
config has request property as you know.
The problem is that the value of the request property is undefined when I built the code, but not in dev mode.
The framework I'm using is React v18.2.0, and Node.js environment is Node v18.16.0.
Expected Behavior
The value of the request property should be an object, not undefined.
Steps To Reproduce
No response
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
No response

request is undefined when the Prepare step is idle or has errored. It can be idle when: your wallet is not connected, or one of the Hook parameters (address, abi, or functionName) is undefined. Looks like the former doesn't apply to you, so is your wallet connected, or did an error occur (you can check with the returned error value)?
Closing for now. If it's still an issue, please open a new issue and provide a minimal reproducible example via https://new.wagmi.sh.


Automatic Alternate command detection | override system command

Sometimes people name programs the same.  A good example of this is packer, which is a popular image building tool from Hashicorp, but also exists in RHEL as a core binary that manages parts of the keyring.
whalebrew already supports custom command name configuration via the io.whalebrew.name label, however it would be great if whalebrew checked for the existence of that command during the install, and had some sort of option to automatically switch to an alternate command name, or an option to override the system command on the user path.
Example Use Cases
Ruby
Ruby is installed on every mac, but you should basically never use it when doing any project that utilizes Ruby, gems, rails, etc...

There could be a io.whalebrew.options.override_system_binary label, or flag during install

packer
As described above, there is a conflict with packer, in that they're two totally different tools. Unlike the system conflict example for ruby, we can use any name for the packer command if the system already has packer on the system path.

There could be a io.whalebrew.alternate_name that I could set to something like packerd

This isn't the highest priority feature, but it would be a definite "nice to have". It would probably rely or is related to #17.


removing the sourceDirectory property which should default to ""

When I manually trigger the SDK generation for C# from the speakeasy dashboard. The pipeline fails, see: https://github.com/LukeHagar/plexcsharp/actions/runs/10970974198/job/30465496056 but it trips over the sourceDirectory property which should be allowed to be empty:
See: https://www.speakeasy.com/docs/gen-reference#sourcedirectory => C# =>  sourceDirectory
So it's a bug in the validating process which incorrectly marks an empty sourceDirectory as  invalid
A workaround seems to be removing the property entirely and that will resolve to "" as well

Ping @LukeHagar since I can't add you as the reviewer


Fix  response object map to be used as invocation response in async operation

Fix  response object map to be used as invocation response in async operation

It seems that "result" was used instead of "responseObj", but makes no sense here in my opinion.
"result" map cannot be converted to invocation response.
Instead changed to "responseObj" which can be a map if requested via rest call from remote submodel api.

Signed-off-by: Matthias Stöhr<EMAIL_ADDRESS>

Many thanks for pointing out this oversight


Style updates

Form page title  font size increase to 48px
Form section font size increase to 36px
Question title font size increase to 24px
Reduce radio and checkboxes from 30px to 24px

 [QAE17IMP] As an Applicant I want the UI styles to be updated in line with the latest GDS designs, so I know that the QAE is an official Government Digital Service


I feex

Heya chap, I think you may have meant to PR this to https://github.com/david-sabata/web-scrobbler !


Resumable upload returns @content.downloadUrl instead of @microsoft.graph.downloadUrl

When doing a Resumable Upload to the Graph API, we get back the old @content.downloadUrl that was replaced back in 2016/2017 by @microsoft.graph.downloadUrl. The docs on this page indicate  that a DriveItem is returned, but a DriveItem should have a @microsoft.graph.downloadUrl. This is quite confusing, so would be great if you can either pass this on to backend teams and/or to update the docs on this point. Thanks in advance!
Regular upload:
PUT v1.0/groups/GROUP_ID/drive/items/ITEM_ID:/FILENAME.pdf:/content
{
<EMAIL_ADDRESS>"https://graph.microsoft.com/v1.0/$metadata#groups('GROUP_ID')/drive/items/$entity",
<EMAIL_ADDRESS>"https://MYORG.sharepoint.com/sites/MYSITE/_layouts/15/download.aspx?UniqueId=ID_HERE&Translate=false&tempauth=ey..."
}

Resumable upload:
POST /v1.0/groups/GROUP_ID/drive/items/FOLDER_ID:/FILENAME.pdf:/createUploadSession
then
PUT https://MYORG.sharepoint.com/sites/MYSITE/_api/v2.0/drive/items/ITEM_ID/uploadSession?guid='GUID'&path='~tmpF2_FILENAME.pdf'&overwrite=False&rename=True&dc=0&tempauth=eyJ...
{
<EMAIL_ADDRESS>"https://MYORG.sharepoint.com/sites/MYSITE/_api/v2.0/$metadata#items/$entity",
<EMAIL_ADDRESS>"https://MYORG.sharepoint.com/sites/MYSITE/_layouts/15/download.aspx?UniqueId=ID_HERE&Translate=false&tempauth=ey..."
}

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

ID: c42d74d1-8c6f-5282-9fba-30fdd6449362
Version Independent ID: 88bd8f18-730d-6970-8a02-641346661404
Content: Resumable file upload - Microsoft Graph v1.0
Content Source: api-reference/v1.0/api/driveitem-createuploadsession.md
Product: sharepoint
Technology: microsoft-graph
GitHub Login: @JeremyKelley
Microsoft Alias: JeremyKelley

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


cmd/go: hangs in "found a crash, minimizing..."

What version of Go are you using (go version)?

λ gotip version
go version devel go1.17-5542c10fbf Fri Jun 4 03:07:33 2021 +0000 windows/amd64

What operating system and processor architecture are you using (go env)?
go env Output
λ gotip env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=d:\temp\gocache
set GOENV=C:\Users\klaus\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=e:\gopath\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=e:\gopath
set GOPRIVATE=
set GOPROXY=https://goproxy.io
set GOROOT=C:\Users\klaus\sdk\gotip
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Users\klaus\sdk\gotip\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=devel go1.17-5542c10fbf Fri Jun 4 03:07:33 2021 +0000
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=d:\temp\wintemp\go-build1674875180=/tmp/go-build -gno-record-gcc-switches

What did you do?
Ran a fuzz test, that ended up eating up all memory, causing OOMs to happen. This is Windows, so applications just crash and aren't killed by the OS.
Likely one or more of the workers crashed.
What did you expect to see?
The controller printed found a crash, minimizing..., but never progressed from there.
Left it for about 15 minutes before I killed it.
What did you see instead?
Fuzzer not getting stuck.

This is a complicated problem, since Go doesn't provide any real way to deal with GC backpressure (see #29696 and the associated issues for background). Unless the worker process actually dies, killing the pipe used for RPC communication, the worker/coordinator has no way of knowing that there is a memory problem.
A simple-ish solution would be to just add a timeout to some/all of the RPC calls, so we can just bail out if the worker is taking longer than expected (and we assume it is dead). One question is, if the RPC times out, do we consider that a crash? (i.e. if a fuzz call times out, we copy the input and consider that a crasher).
Once we allow for continuous fuzzing (continuing when a crasher is find, rather than immediately exiting), we would need a way of marking a worker process dead, and ideally restarting it so we don't slowly run out of workers.

This is likely going to be a release blocker for Go 1.18.

I'm going to go ahead and close this. Please file a new issue if you experience this issue again.


Revamp the UI of the top bar

I have revamped the UI of the top bar to make it more visually appealing as can be seen in the screenshots below.
I made the following changes:

Put the logo into centre and removed "Wave in a box" text.
Put "Online" and "Saved" status indicators underneath the address of the user.
Put the Language option and the Sign-in button into a jquery UI Settings dialog.
Removed the border on the top bar.
Changed the background colour of the main app.

I like the goal of improving the top bar, but I feel like the gear icon should open a menu in the corner, just below the icon.  It would better visually connect the dialog to the action the user just took, and it would be more consistent with well-known apps/sites like Google, Microsoft, Facebook, etc.
Also, does this version still allow for a server title?

Great changes in general, however:
We need to try and maximize the vertical screen space to allow more space for the UI.
I would like to retain the red/green color on the status, as the user should be aware when he is working offline. All offline changes will be lost if the wave is closed before saved.

@ZMYaro I have updated the Settings dialog so it appears underneath the settings cog but without the title bar (See picture below). What do you mean by a server title?
@vega113 I changed it so that the colour for the 'Online' indicator is grey as this is the normal status but when it is Offline it still appears Red and Bold (See picture below)

I have noticed an issue when you first press the cog. The issue is that the dialog displays over the cog, stopping the ability to close it (See screenshot). I will try and solve the issue.

Now I think that it's an issue with $( "#dialog *" ).css("display","unset"); and that calling it before the creation of the dialog will fix it.

Doesn't seem to work with IE11.

Problem with Firefox. Overflow bars shown and Language box too wide.

Do you think it is ready to be merged?

I just realized this PR adds jQuery, which was not present before.  Can you not use the dialog framework already present in WIAB?

@ZMYaro Sorry for the delay, I aggree and I will now try to remove JQuery and JQueryUI.

@ZMYaro I have now made the changes.

Do you think it is ready to be merged?

Sorry for the delay, I will check the changes and merge.

LGTM
Thanks


Add ScryfallCard.Unknown via range of partials

Like #4, this adds a ScryfallCard.Unknown field.
It does so by guaranteeing some specific gameplay fields, and then having everything else be a possible partial in addition to that.
This will grow more effectively than the Overlap method used in #4.

Closing this pending overhaul of the card type system per issue #20.


#1021 - Dropdowns

PR for https://github.com/Esri/calcite-web/issues/1021.
This builds on Julio's work to update the style of dropdown menus - there are no structural changes. Tested in Chrome, FF, Safari, Edge. Waiting for https://github.com/Esri/calcite-web/pull/1070 to test in IE 11.
Changes:

These should now match Online / discussed updates
Hit areas for dropdown links are now full width, and have distinct hover / focus states
Introduces an active-link-dot mixin to use in future designs
Uses shadow level / strength from Alerts (https://github.com/Esri/calcite-web/pull/1068)
Uses invocation animation from Online

Questions / Need feedback on:

Is using content: "\2022" for the pseudo-element active dot sustainable? It makes aligning the active dot with the line-height easy but unsure if there are consequences with translation of the character. Alternatively we can use a bg-color in the pseudo-element.
I think the current 600 weight items (header, active item) are good candidates for 500 weight treatment.

Updates based on last week's feedback...

Indent link items, align "active dot" flush left with heading
remove font-weight adjustment for active state
small color and padding adjustments

We can use this as the base for filters, side navs, etc


checkpoint gone

hi , the weight link of 00000189-checkpoint.pth.tar in the facevid2vid paper is gone,can you send me a copy one？ thank you very much! my email is<EMAIL_ADDRESS>

@vijeshkpaei  thank you very much~


Add Ballerina to the homepage of prometheus

Ballerina is a programming language for integration. Ballerina services are by default observable and it supports Prometheus. Ballerina run-time will start an HTTP endpoint for Prometheus to scrape metrics when observability is enabled.
We would like to be featured in Prometheus homepage as a Prometheus user.

This is a list of companies using Prometheus, so I think you want to add WSO2 here.

While WSO2 is one of the biggest contributors of Ballerina, Ballerina remains an open source project with non-WSO2 contributors as well, so imho it makes more sense to list Ballerina and not WSO2 there.

Integrations go elsewhere on the website if you want to add it there, this is a list of companies using Prometheus.

Got it. @chrishantha simply submitted the change to the wrong place.
I guess https://prometheus.io/docs/instrumenting/clientlibs/ and https://prometheus.io/docs/instrumenting/exporters/ would be better places.

@DSotnikov Yes, I have put Ballerina in the wrong place. I first assumed that all logos are Prometheus users (not just companies using Prometheus). I think the correct place for Ballerina is to be in https://prometheus.io/docs/instrumenting/exporters/ under "Software exposing Prometheus metrics"
@brian-brazil I will send new changes.

Hi @brian-brazil,
I sent a new PR  #1061. Please review. I tested the website by following the instructions in README.


Fix for issue#65 JsonReaderException raised from InfrastructureClient

Adding a new method to ServiceFabricHttpClient to return raw json to handle strings returned by InfrastructureClient APIs.

For issue #65


Doc: Adds guide to use -f flag to modify default config.

What do these changes do?
It is a guide with an example to override default config by using -f flag in documentation.
Related issue number

Fixes #454

We've seen your pull request, and will review recently, don't close pull request and open another one.

Really sorry for the inconvenience. I was facing an issue with git, all of my previous commits in xorbits were getting included in this pr. So I had to close previous 2 prs and sort that issue. I sorted it out yesterday. Thanks and again sorry for the inconvenience.

Really sorry for the inconvenience. I was facing an issue with git, all of my previous commits in xorbits were getting included in this pr. So I had to close previous 2 prs and sort that issue. I sorted it out yesterday. Thanks and again sorry for the inconvenience.

It's okay, still very much appreciate your contribution.


fix(EMS-2543-2571-2607-2608): No PDF - copy fixes, country pre-population issue

Introduction :pencil2:
This PR fixes some issues where:

"About goods or services" had some copy that did not match the No PDF design.
Some error messages did not match the No PDF design.
In the "About goods or services" form, if the "description" field is submitted with a value over the maximum amount and a "final destination" country is provided, the submitted country would not be pre-populated with the submitted country.a

Resolution :heavy_check_mark:

Update various content strings.
Update completeAndSubmitAboutGoodsOrServicesForm cypress command to accept a custom "description" value.
Update "about goods or services" validation E2E test to include:

A test for maximum "description" characters.
A test that all fields have pre-populated values when the "description" field is submitted with a value over the maximum amount.

Update the "About goods or services" POST controller to correctly map a submitted country.

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

:exclamation: No coverage uploaded for pull request base (main-application-no-pdf@d97eab0). Click here to learn what that means.

Additional details and impacted files
@@                    Coverage Diff                     @@
##             main-application-no-pdf    #1694   +/-   ##
==========================================================
  Coverage                           ?   98.35%
==========================================================
  Files                              ?      465
  Lines                              ?     7784
  Branches                           ?      842
==========================================================
  Hits                               ?     7656
  Misses                             ?      126
  Partials                           ?        2

Flag
Coverage Δ

unit-test
98.35% <0.00%> (?)

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

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


An async version of GetInitialState()?

Is there a way to do the following:
protected override async Task<State> GetInitialStateAsync()
{
    return new State
    {
        Data = await Server.DataAsync()
    };
}

I don't think so - and I don't think that it would make sense.. the "initial state" determines how to draw the component immediately, which is information that won't be available if there is an async operation that needs to be processed.
For cases like this, I tend to have a "no-data-yet" state - you might leave the Data property as null and display a "Loading.." symbol in that case. When the data becomes available, then you would call SetState and set a new value for Data, at which point you can render the component properly - with a "no results" message if there is no Data* or with the information that the Data reference contains.

(If Data is a list of results then null would mean "no data available yet" while an empty set would mean "we have the data, but there were no results matching your query")


LayerNormalization

https://github.com/llvm/torch-mlir/pull/2716

Hmm I thought I did that ... maybe at the wrong place. Anyway thanks for the reminder

Can you assign it to me ? I think I still can not edit #215 ; oh by the way I did some updates including your feedback.

Can you assign it to me ? I think I still can not edit #215 ; oh by the way I did some updates including your feedback.

Just assign to you.

This issue is closed now ; Layernorm is merged.


文档描述设计篇疑问

ConsumeQueue索引存储的就是commitLog的offset，应该是一级索引才对

Uniquely determine a message through Topic, queueID, and offset. Topic and queueID are determined in the form of filePath, so maybe filePath is the first level index?

Thank you for your reply!
Can i understand that we get the ConsumerQueue filePath by the topic ,queueID,this is the first level index,
then we use offset to find  the disk location of  commitlog,this is the second level index.
so The meaning of the secondary index here is different from that of the database?

This is just my understanding, but I think it is very reasonable. After all, it lacks topic and queue information.


Bug: /temp command does not support greater than "1"

Given that BMO supports 0-2  for temp in the config, the / command should be updated

v1.8.8


Grants: 23-H2 :: ACTUS Foundation

Further support for ACTUS Foundation activities.

Links

Foundation Website

Towards 2.0
Current version of specification, i.e. v1.1, is sub-optimal in several respects.  Discrepancies exist and formal notation needs to be improved.  Grant money could be spent on ensuring better coordination in taking steps towards v2.0.

Educational Materials
Grant money could be spent on extending the range of available multimedia pedagogic materials.  Such materials should be packaged in such a way so as to be easily transmissible over social media channels such as TikTok.

Email has been sent to Allan Mendelowitz requesting an invoice.

Invoice for payment

Invoice has been settled


Suppress "PID ..." log lines?

Expectation / Proposal
We're using the ShellOperation class from this library for all of our Prefect tasks. It works great. However, some of our team would like to suppress the log lines like PID <some pid> stream output:. Is there any way to suppress those lines in prefect logs? See screenshot below.
Perhaps there’s an env var that can be set? Perhaps it can be achieved via logging config?
If this is the wrong place for this ticket let me know!
Traceback / Example

[ ] I would like to help contribute a pull request to resolve this!

@sckott do you just mean toggling stream_output to False? https://github.com/PrefectHQ/prefect-shell/blob/main/prefect_shell/commands.py#L234

I see so you're just interested in dropping the "PID ... stream output:" prefix from the logs?

It's hard-coded at https://github.com/PrefectHQ/prefect-shell/blob/main/prefect_shell/commands.py#L160
I'd review a pull request making that prefix optional. Perhaps stream_output_include_pid: bool = True. Another option is to get a child logger for each stream output operation that includes the PID e.g.
from logging import getLogger

logger = getLogger("test")
pid = 123
child = logger.getChild(str(pid))
print(child.name)

I think that would be a cleaner solution; this kind of information probably doesn't belong in the message itself?

I don't follow what you mean by the child logger. Is the idea there to make a custom logger which then we can strip the pid line from?

@sckott if we use a child logger with the PID in the name (in the code) we can drop the prefix entirely as the information would be encoded in the logger name.

Are you proposing this as something a user like me can do in my own code, or a change one could make to prefect-shell?
So whatever change you are suggesting, what would some example logs look like after the change?

So then the PID would not appear in the logs, but would be available via getLogger?
Perhaps this should be toggleable, though I realize that's more complexity to maintain. I think it's likely to be useful to have the PID in the logs for debugging, though I haven't used it that way yet. My worklow thus far has been finding the docker container or process by the name of the scripts that we call via ShellOperation, but it would be faster to know the exact PID

The PID would appear in local logs, but the logger name is not exposed in the UI at this time.

Should go out in the next release @madkinsz @sckott (sooner for Cloud folks)

Hey @sckott! I've implemented using a child logger to track PIDs per @madkinsz's suggestion in #77. Can you install that branch and run some flows to see if it resolves your issue?

Thanks @desertaxle !

Can you install that branch and run some flows to see if it resolves your issue?

I assume I'll only be able to control what I see in local logs, yes? Just checking.

Using the example task/flow file above https://github.com/PrefectHQ/prefect-shell/issues/74#issuecomment-1452211010
pip install git+https://github.com/PrefectHQ/prefect-shell.git@pid-child-logger

python3.11 -m test2

File "/opt/homebrew/lib/python3.11/site-packages/prefect_shell/commands.py", line 402, in run
   pid_logger = self.logger.getChild(str(process.pid))

AttributeError: 'PrefectLogAdapter' object has no attribute 'getChild'

Go back to the version of prefect-shell on pypi
pip uninstall prefect-shell
pip install prefect-shell

python3.11 -m test2

10:25:56.785 | INFO    | prefect.engine - Created flow run 'diamond-asp' for flow 'Test'
10:25:56.907 | INFO    | Flow run 'diamond-asp' - Created task run 'my_task-0' for task 'my_task'
10:25:56.908 | INFO    | Flow run 'diamond-asp' - Executing 'my_task-0' immediately...
10:25:56.928 | INFO    | Task run 'my_task-0' - PID 27982 triggered with 2 commands running inside the '.' directory.
10:25:56.932 | INFO    | Task run 'my_task-0' - PID 27982 stream output:
the number is 5
I have 5 apples
10:25:56.933 | INFO    | Task run 'my_task-0' - PID 27982 completed with return code 0.
10:25:56.947 | INFO    | Task run 'my_task-0' - Finished in state Completed()
10:25:56.959 | INFO    | Flow run 'diamond-asp' - Created task run 'my_task-1' for task 'my_task'
10:25:56.959 | INFO    | Flow run 'diamond-asp' - Executing 'my_task-1' immediately...
10:25:56.980 | INFO    | Task run 'my_task-1' - PID 27983 triggered with 2 commands running inside the '.' directory.
10:25:56.981 | INFO    | Task run 'my_task-1' - PID 27983 completed with return code 0.
10:25:56.992 | INFO    | Task run 'my_task-1' - Finished in state Completed()
10:25:57.002 | INFO    | Flow run 'diamond-asp' - Finished in state Completed()


MongoDB.Driver.Core  - Myabe update instriuctions to use this nuget package now?

[Enter feedback here]

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

ID: 5240866d-d0a1-f0dd-7b2c-203e1d69bc4b
Version Independent ID: 83a5cb3b-23bc-4f0c-cd1c-1d1ffeb1131a
Content: Create a web API with ASP.NET Core and MongoDB
Content Source: aspnetcore/tutorials/first-mongo-app.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @wadepickett
Microsoft Alias: wpickett

Associated WorkItem - 63808

Thanks for the heads up @plppp2001.  Very appreciated.  Added to list to update.

Hey,
Actually I needed both Nuget packages. Never mind…..
PaulAstramowicz.com
From: Wade @.>
Sent: Monday, February 13, 2023 9:59 PM
To: @.>
Cc: Paul @.>; @.>
Subject: Re: [dotnet/AspNetCore.Docs] MongoDB.Driver.Core - Myabe update instriuctions to use this nuget package now? (Issue #28372)
Thanks for the heads up @plppp2001https://github.com/plppp2001. Very appreciated. Added to list to update.
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/28372#issuecomment-1428673894, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK2EVSS6RJBOZTAHKW2PKT3WXKOEXANCNFSM6AAAAAAU2WOL4I.
You are receiving this because you were mentioned.Message ID: @.***>

OK, I will verify and review the topic for any needed updates.

The MongoDB .NET Driver is built on MongoDB.Driver.Core.   MondgoDB .NET Driver provides a high-level API for the low-level and verbose MongoDB.Driver.Core.   That said, MongoDB and its shell mongosh are different enough now since this tutorial was last updated, that the tutorial instructions do not actually work entirely.  So I am making some corrections so that the .NET 6.0 version works for this tutorial, and in a separate issue I will update the tutorial to .NET 7 and 8.


Hidden/silent effects of MAX_RETRY_SECONDS

hey there,
Correct me if I’m wrong, but within aoairequester.py, MAX_RETRY_SECONDS looks like it would have a big impact on the latency metrics once you reach a point where requests are being throttled and receiving 429s. If a request is 429ed after 5 seconds or more, it may be recorded as failed/throttled, and a new request will take its place with an even newer start time. In the real-world, if a user is throttled in an application, it would make sense that their request would be resent until a response is received, so from a user experience perspective, we are probably more interesting in when the first response is actually received.
While some sort of default for MAX_RETRY_SECONDS is logical, wouldn’t having this set to only 5 seconds mean that any results from the tool are only valid when the server load is low enough that most requests that receive a 429 once would still receive their first token by the new response? It seems like once the load is sufficient that 429s are being sent, the wait time of some of the theottled requests won’t be counted in the latency stats I since they never finished (only in the throttled count).
A few questions from me:

Is the logic above sound? Is it a realistic issue?
Would increasing MAX_RETRY_SECONDS to a more longer default, or making it configurable make sense? I see there is an unused timeout variable in the OAIRequester - was this an idea that existed already?
Should the README be updated to make it clear how the throttled stat works, and what it may mean for the other metrics?

Edit: Updated with a rewording. After looking more closely at the code and 429 responses from the OAI endpoints, I am not so sure now if the above is correct. Please let me know your thoughts!

The latency incurred due to retrying after a 429 should be part of the ttft and total request duration stats. If today it isn't then it is a bug and we should track it in a separate issue.
I agree that 5 seconds is too short. It makes sense to make it at least 60s and configurable by user.
Yes the README should explain this.

Let's continue discussion on the PR


[Metrics Advisor] Regenerate with latest autorest

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


Add trailing slash to Origin header

This is to avoid an "origin not allowed" response, fixing #3.

Coverage remained the same at 77.482% when pulling c441357101058abecf3abba4d217111237615ff8 on amelchio:origin-slash into 8592c92aa6e67d56b9cba77feac3853a15f47ad2 on MisterWil:master.


Windows / linux version of your game is possible without code changes...

Hey,
for my own games, i've been making an implementation of the playdate api in sdl2 (https://github.com/joyrider3774/Playdate_Api_SDL2) and your game works with it in the current version. You do not need to change any source code for your game in order to make the windows binaries. All you need is the code in my repo, placing your code from the src directory in this repo in the src/srcgame directory of my repo, the assets in Source directory (but you already have that) and  mingw64 or mingw32 for example using msys2 and installing all the SDL2 related libraries like SDL2, SDL2_GFX, SDL2_Mixer, SDL2_TTF, SDL2_Image. and use the accompanied make file in my repo to build it (you may need to add src/scenes/board etc directories to the make file though as it does not search for c files inside subdirs.
The most difficult thing to get working is getting TTF compatible fonts from the playdate fnt files in same size as on the playdate, but i found a way todo this and already created these for your game, i've included them as an attachment here PublicPixel.zip
I'm not sure what the best way is to structure the repo or even my repo so that they could be easily added as a module or so, i might have to restructure my repo to allow for that somehow.
My implementation of the API is probably bad though but it does work for my games and your game, it will not work however if you used Sprites (but your current version does not do that).
here's a small video showing it in action:
https://user-images.githubusercontent.com/10714776/228983428-6fb48f61-e483-44d4-8257-d455f8677bbc.mp4
Anyway i thought you might like this and perhaps wanted to include windows binaries of your game as well (if you include the SDL dll libs along the windows binaries) or at least know that is possible.

i created a github action for building the windows versions (and playdate) you can check them out here https://github.com/joyrider3774/formula1_playdate/tree/main/.github/workflows so it's easily possible to add for your own repo if you like


Non-responsive Notification Box 🐞 Bug

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Upon clicking the bell icon in the website's navigation bar, the expected behavior is for a notification box to appear. While the notification box does appear as intended, it is observed that the box is not responsive in nature. This lack of responsiveness could potentially impact user experience, especially on devices with smaller screens or when viewed on various resolutions.
Steps To Reproduce

Navigate to the CircuitVerse website.
Click on the bell icon in the navigation bar.
Observe the behavior of the notification box in terms of responsiveness.

Expected Behavior
The notification box should adapt to different screen sizes and resolutions, ensuring a seamless and user-friendly experience.
Screenshots

Expected behavior

Device Information [optional]
- OS: Windows
- Browser: Google Chrome
- version: 120.0.6099.62

Additional context
No response
Are you working on this issue?
Yes

Hi @deepak05kr18 , This issue is being addressed in #4260


Replit

Can i run this on replit?

you could but its a bad idea because projects on replit are public which means people can see your roblosecurity cookie

How can you do it on repl?

How to bypass ip lock it replit?

Aws you can


Fix deserialization of check-cfg in config.toml

When improving the check-cfg implementation in https://github.com/rust-lang/cargo/pull/10566 I changed the internal representation of check_cfg from multiple bool to Option<(bool, bool, bool, bool)> but I didn't realize until https://github.com/rust-lang/rust/issues/82450#issuecomment-1169836928 that the internal representation is actually somewhat public as it's used in the [unstable] in .cargo/config.toml.
And because TOML cannot represent tuples there is no way to set it from the [unstable] section. This PR fix this oversight by using a custom deserializer method similar to what was already done for build-std.

Thanks!

And because TOML cannot represent tuples there is no way to set it from the [unstable] section.

TOML can support tuples. I think the underlying issue is that the Config deserializer doesn't support tuples with anything except strings (particularly to handle environment variables), and we just have never encountered a situation where anything else was needed.
This looks good, though. Setting it with booleans would be kinda strange.
@bors r+

@bors ping

:sleepy: I'm awake I'm awake

@bors r+

:hourglass: Testing commit 23f59d4eeb85de6766b3dd7b3d0ee4d19a448c13 with merge 42311063f0c5541e41489a5b10361d2534bcdd87...

:sunny: Test successful - checks-actions
Approved by: ehuss
Pushing 42311063f0c5541e41489a5b10361d2534bcdd87 to master...


[typescript-resolvers] Add resolversNonOptionalTypename config

Description
This is based on ResolversUnionTypes implemented in https://github.com/dotansimha/graphql-code-generator/pull/9069
In this PR, we add resolversNonOptionalTypename to add non-optional __typename to union members of ResolversUnionTypes, without affecting the union members' base intefaces.
Use case
A common use case for non-optional __typename of union members is using it as the common field to work out the final schema type. This makes implementing the union's __resolveType very simple as we can use __typename to decide which union member the resolved object is. Without this, we have to check the existence of certain field on the object
Consider this schema:
type Query {
  book(id: ID!): BookPayload!
}

type Book {
  id: ID!
  isbn: String!
}

type BookResult {
  node: Book
}

type PayloadError {
  message: String!
}

union BookPayload = BookResult | PayloadError

With optional __typename
We need to check existence of certain fields to resolve type in the union resolver:
// Query/book.ts
export const book = async () => {
  try {
    const book = await fetchBook();
    return {
      node: book
    }
  } catch(e) {
     return {
       message: "Failed to fetch book"
     }
  }
}

// BookPayload.ts
export const BookPayload = {
  __resolveType: (parent) => {
    if('message' in parent) {
      return 'PayloadError';
    }
    return 'BookResult'
  }
}

With non-optional __typename
Resolvers declare the type. This which gives us better TypeScript support in resolvers and simplify __resolveType implementation:
// Query/book.ts
export const book = async () => {
  try {
    const book = await fetchBook();
    return {
      __typename: 'BookResult', // this types `node` for us.
      node: book
    }
  } catch(e) {
     return {
       __typename: 'PayloadError',
       message: "Failed to fetch book"
     }
  }
}

// BookPayload.ts
export const BookPayload = {
  __resolveType: (parent) => parent.__typename,
}

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Added unit test in ts-resolvers.ts
[x] Test in a repo with union setup with released alpha version: https://github.com/eddeee888/poc-union-interface-typename/pull/1

Test Environment:

OS: MacOS
@graphql-codegen/cli: 3.2.2
NodeJS: 18

Checklist:

[x] I have followed the CONTRIBUTING doc and the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@n1ru4l @saihaj can you please review this one?


After upgrading to 0.81.4 getting lots of SSL errors

Home Assistant release with the issue: 0.81.6

Last working Home Assistant release (if known): 0.81.3
Operating environment (Hass.io/Docker/Windows/etc.): Hassio

Component/platform: I think its core

Description of problem:
Since upgrading I'm getting these two logs constantly;
Error doing job: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)

and
Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): No idea where its coming from

Traceback (if applicable):

Additional information:
I have bought my own certs for my HASS and have been running SSL for about 2 years.
HASS itself is operating normally without an issue I've detected; I'm just trying to clear up my logs...

Duplicate of #17639


Retain FactoryMethod metadata link in generated BeanDefinition

With AOT, all bean definitions are using an instanceSupplier that is pre-computed based on the state of the BeanFactory as parsed at build time. This leads to problems down the road if certain components require extra metadata.
Consider the following example:
@Bean
@ConfigurationProperties("test")
public SomeBean someBean() {
  return new SomeBean();
}

The generated code uses an instance supplier that roughly translates to SomeBean::new. However, this code does not contain any reference to someBean(). So the @ConfigurationProperties annotation can't be found and that stereotype is lost at runtime.
Down the road, we should detect such stereotype at build time and change the instance supplier so that binding happens right away. I am wondering if keeping the factoryMethod metadata while using an instanceSupplier is a supported use case @jhoeller.

So calling setResolvedFactoryMethod should do the trick.

Closed by https://github.com/spring-projects-experimental/spring-native/commit/97612d44f140eb579bab9e7783d67d8d7e29d791


TypeScript Support

Hello, the plugin is the best in vim javascript syntaxes. It would be nice to have a syntax plugin for TypeScript too. What do you think about this?

Which plugin are you using for highlighting TypeScript now?

Plug 'leafgarland/typescript-vim'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'peitalin/vim-jsx-typescript'

These are. But so bad. Almost like syntax off.

@K-NRS Maybe you have something else in your config that disturbs language highlight for typescript. Check, if you have this command set regexpengine = 1,  and better delete it for good, because that broke my ts highlight with any plugin.
Currently I'm using this trio,
Plug 'yuezk/vim-js'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'maxmellon/vim-jsx-pretty'

and it covers all my needs in webdev, even in complex files, like in the picture

@zorgick I dont think the problem is about regexpengine and i couldn't see anything related to typescript in your picture. I have no problem with js files. I just wanted to ask, "will this plugin have TypeScript support?"
My vim shows .ts and .tsx files like this:

It doesn't even look like javascript files colorized by yuezk/vim-js and happens "'redrawtime' exceeded, syntax highlighting disabled" in some .ts and .tsx files. Not comfortable at all.

@K-NRS How about replace Plug 'peitalin/vim-jsx-typescript' with Plug 'maxmellon/vim-jsx-pretty' and try again?

@K-NRS the point is in the separation of concerns. Vim-js is a wonderful plugin that can't treat your js file any better. Yats is a reliable plugin that will do the same for your ts files. Thus, it is a redundancy to repeat the funtionality of yats in vimjs plugin.
Please reconsider your config, and try to make it as minimalistic as possible. You'd rather leave these 3 plugins, that I use, and check if your highlighting works.
Refer to this problem about regexengine click.
The picture I provided is a tsx file of 1200 lines. Without yats vim would highlight only exports, this and const/let, leaving jsx as simple text.

@yuezk still it's almost the same.

When i look at scriptnames, i only see yats and vim-jsx-pretty as typescript plugin. And does not colorize function names, dots and operators (?. , || , &&) etc...
My vimrc file is already pretty minimal. But I will try with a much simpler vimrc in a container. I saw /usr/share/nvim/runtime/syntax/typescript.vim at the end of the scriptnames.

@K-NRS Just curious, which plugin do you use to add this?

@zorgick I also want to know which plugin are you using for adding the lint message here?

I was looking for this feature for a long time.

@yuezk Neovim with coc.nvim. Enable its codeLens or make diagnostic.virtualText: true

@yuezk it's vim-lsp. I switched to it after coc, and it's really fast and easy to set up

@K-NRS  I also use them, these is behavior on my vim
HerringtonDarkholme/yats.vim,
MaxMEllon/vim-jsx-pretty,on_ft

Notice that the vim and neovim had add the typescript syntax based on HerringtonDarkholme/yats.vim,  https://github.com/neovim/neovim/commit/bd23fefb391816648ebd701096bf9973f6256750
https://github.com/vim/vim/commit/12ee7ff00b91d852e060bb24951d1c94239863eb
,

@K-NRS I also use them, these is behavior on my vim
HerringtonDarkholme/yats.vim,
MaxMEllon/vim-jsx-pretty,on_ft

My current configuration too is like that now. The syntax could not be colored like VSCode in Vim. I accepted this until there is a new change.

@K-NRS  you can get the current cursor word syntaxt group  then check what color set and config it.

@zorgick Unrelated but what colorscheme is this?

@pkradiator onehalf light https://github.com/sonph/onehalf


add DNS resolver

We need to add a DNS resolver when VPN gateway is deployed. Without the DNS resolver, using P2S VPN connection is not really useful to access batch and other services that are exposed via private endpoints alone.
ref: https://www.mytechramblings.com/posts/testing-private-dns-resolution-over-a-p2s-vpn-using-azure-dns-private-resolver/

added a dns resolver, when VPN gateway is created. Subnet delegation etc. implemented. To be verified, if a NSG rule etc. is required on this subnet. Was not able to test the automated deployment. Replicated the steps manually in another region but failed to see the  private ip resolution working. Will have to check the vpn client / setup on my local dev box.

tested the dns resolver approach successfully - on client side (in my case Mac OS) the DNS server (either a conditional forwarder for the domains in question, or for all requests) needed to point towards the private IP address of the inbound endpoint of the private dns resolver. Just changing the built-in DNS server from Azure provided to a Custom DNS server did not fix the issue on client side


feature: Use IValidationState Instead of ValidationState

What kind of change does this PR introduce?

This PR implements the API specification eloquently argued and formulated by @thargy in https://github.com/reactiveui/ReactiveUI.Validation/issues/123#issue-721810174
What is the current behavior?

Currently, there is no way to customize a ValidationState.
Also, there is no ValidationRule overload accepting a ValidationState.
See https://github.com/reactiveui/ReactiveUI.Validation/issues/123 for more information regarding this topic.
What is the new behavior?

Now, we are using IValidationState where possible, and this simplifies the use of complex and extended validation rules. Now we have two more overloads for the ValidationRule extension method, one of the rules accepts a view model and IObservable<IValidationState>, and another one accepts a view model, a property, and an IObservable<IValidationState>. This allows ReactiveUI.Validation users to fully control how an object implementing IValidtionState is created.
What might this PR break?
One potential breaking change is described in https://github.com/reactiveui/ReactiveUI.Validation/issues/123#issuecomment-708721343 e.g. there is no .Component property on the new IValidationState interface, so the code relying on that property might break. Hopefully, there aren't many people who are relying on that .Component property. And if they do, a potential workaround would be to just cast IObservable<IValidationState> to IObservable<ValidationState> by adding a call to .OfType<ValidationState>(), e.g:
IValidationComponent validation = new ValidationContext();
validation.ValidationStatusChange.OfType<ValidationState>() // IValidationState -> ValidationState

However, we discourage the use of ValidationState.Component obsolete property as we are going to remove it in the future.
Please check if the PR fulfills these requirements

[x] Tests for the changes have been added (the work is in progress)
[x] Docs have been added / updated

Other information:
We need to carefully review the API changes to avoid introducing additional breaking changes.

It's hard to keep up with you @worldbeater!  I've had my head down on some other code today, so I only just noticed you'd pushed this.  I've gone through and reviewed the code changes and I think you've struck the right balance between backwards compatibility and making, what I feel, is a fundamentally significant improvement.  Not only will this positively impact extensibility it should impact performance.  I look forward to the NuGet release so I can rip out a bunch of existing workaround code.  I'll definitely use the IValidationState to efficiently drive async validation directly.

Btw @thargy, how do you think, should we remove the generic version of IPropertyValidationComponent<TViewModel> completely? Having the generic version of this interface could help in compile-time generic type resolution https://github.com/reactiveui/ReactiveUI.Validation/blob/main/src/ReactiveUI.Validation/Components/Abstractions/IPropertyValidationComponent.cs#L18 in extension methods like .ContainsProperty<TViewModel, TProp> https://github.com/reactiveui/ReactiveUI.Validation/blob/4e0f2eb0ef8791f8433c6d0b7dd41b8ac3129894/src/ReactiveUI.Validation/Extensions/ValidatesPropertiesExtensions.cs#L27 Also probably this could encourage people to follow the pattern "one validation component can only contain validations for one and only one view model".

@worldbeater we're overlapping a bit.  Just created a PR for Readme update, but whilst doing it, I noticed that, now that ValidationState.Component is redundant (and can be null).  There's a strong case for adding:
public static readonly ValidationState Valid = new ValidationState(true, string.Empty);

To ValidationState to allow for quickly, and efficiently, returning ValidationState.Valid.

Btw @thargy, how do you think, should we remove the generic version of IPropertyValidationComponent completely? Having the generic version of this interface could help in compile-time generic type resolution https://github.com/reactiveui/ReactiveUI.Validation/blob/main/src/ReactiveUI.Validation/Components/Abstractions/IPropertyValidationComponent.cs#L18 in extension methods like .ContainsProperty<TViewModel, TProp>

Actually, having the interface would mean that the extension method will only work with IPropertyValidationComponents that have implemented the generic interface, when, in reality, any component that implements that non-generic interface is capable of being consumed by the extension method.
As the extension method is largely only used internally, you get the problem where it might not be obvious to those implementing components why their component isn't working (i.e. they didn't explicitly implement the empty generic interface.  Also, the generic type parameter would be unused in their component code.  As such it isn't a promising idea IMHO, and I'd be in favour of dropping the generic interface entirely, as it is redundant.

Also probably this could encourage people to follow the pattern "one validation component can only contain validations for one and only one view model".

This is the strongest argument, but I don't personally feel it justifies the potential confusion.  Again, the extension method is largely used by the library, not consumers or implementors.  If you wish to force a component to be bound to a view model type that should be part of the component design and logically it would require the generic interface to have a TViewModel ViewModel { get; } property, forcing implementors to provide it.  Fundamentally, that property isn't a required, or used, at the moment, so adding it would require more memory, for no use.  This is a strong indicator that the interface is not necessary.
Although there are scenarios where having an empty interface is of use, in general, it is a strong indicator that a careful review is required to see if the interface actually provides value.  Interfaces (and particularly generic ones) are not free to use.  In this case, my view is that it is redundant and should be obsolesced.

Going to spend some time on improving the public API of ObservableValidation before merging this.


Add metadata queries to triggers, accounts, domains and transactions by hash

Metadata is currently being stored, but is not retrievable. We should add queries to find metadata in all objects that support them.

We have

FindAccountKeyValueByIdAndKey
FindAssetKeyValueByIdAndKey
FindAssetDefinitionKeyValueByIdAndKey
FindDomainKeyValueByIdAndKey

We're only missing

FindTransactionKeyValueByHash,
but we can retrieve the entire transaction.


Make sure to test on the latest Ruby 3.0.0 is also available

Ruby 3.0.0 was releases on 25 December 2020.
Ensure to test the gem is available for Ruby versions in "normal" and/or "security" maintenance states, including the latest version of it.
Refs.

https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/

thaks!

Thank you for your review and merge. 👍


Bump schemathesis to 3.38.6 and silence its warning

Fixes

Fixes several warnings that appear when running tests.
../.venv/lib/python3.12/site-packages/schemathesis/generation/coverage.py:279
  /.venv/lib/python3.12/site-packages/schemathesis/generation/coverage.py:279: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
    ref_error: type[Exception] = jsonschema.RefResolutionError,

test/integration/test_auth.py:38
  /api/test/integration/test_auth.py:38: PytestRemovedIn9Warning: Marks applied to fixtures have no effect
  See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
    @pytest.mark.django_db

...

../.venv/lib/python3.12/site-packages/schemathesis/specs/openapi/references.py:11
  /.venv/lib/python3.12/site-packages/schemathesis/specs/openapi/references.py:11: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
    from jsonschema.exceptions import RefResolutionError

Description

Updating schemathesis didn't resolve the warnings, so I marked to ignore them, with the removal of one entry that is resolved with the Django upgrade to v5.
Testing Instructions

In main, run the tests and observe the warnings.

just api/test

In this branch, recreate the stack, run the tests again, and observe that the previous warnings are gone.

just recreate && just api/test

Checklist

[x] My pull request has a descriptive title (not a vague title likeUpdate index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[x] I added or updated tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.
[x] I ran the DAG documentation generator (ov just catalog/generate-docs for catalog PRs) or the media properties generator (ov just catalog/generate-docs media-props for the catalog or ov just api/generate-docs for the API) where applicable.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@dhruvkb Oddly enough, the file already had that spacing difference. It would be better to homogenize it with the rest of the project. Thanks for mentioning it and the quick review!


Delegated JsonRpcClient creation to command handlers

Closes #2302
Introduced changes

JsonRpcClient is no longer created in sncast's main function
Instead, commands that require RPC instantiate their provider

Checklist

[x] Linked relevant issue
[x] Updated relevant documentation
[x] Added relevant tests
[x] Performed self-review of the code
[ ] Added changes to CHANGELOG.md

Agree with @ksew1 here - the purpose is to make using the RPC urls non-compulsory for the users
I realize that it's a breaking change, but it's necessary for the command interface to make sense

url argument in snfoundry.toml
Do we still want to read the url argument from the config file since it becomes command-specific?


Approach to alloc

I'd love to have an alloc method in this package, but I'm not aware of any consensus on how this should be approached in Julia (besides Libc.malloc). Packages with related functionality include Blob.jl, StructIO.jl, and an unregistered ManualMemory.jl package. I'm sure there are others, along with plenty of relevant discussions on Zulip and in other issues.
I'm hoping we can converge on some well-defined goals here for functionality and possibly a path to implementation. So here are some goals I was thinking of:

Better performance than Libc.malloc. https://github.com/JuliaLang/julia/issues/24909#issuecomment-349795863
Some form of GC
Ability to map allocated memory to immutable types.

I'm not entirely sure what this will require. Other packages have plenty of code on how to map memory to julia types that could be built on top of, but I think the only way to allocate memory that the GC is aware of is to use alloca from LLVM, but I never was able to get that to return unique pointers.
Edit: Looks like there's an LLVM based implementation here.

I think GCs would have to be implemented at the compiler level.
Julia's GC isn't aware of/doesn't handle alloca, but IIRC Julia's compiler is what handles converting memory allocations into allocas when the memory doesn't escape.
I think "better performance than Libc.malloc for manually managing memory is reasonable, particular when we can adapt the allocator to specific problems / types of memory allocations.
E.g., it'd be easy to make one faster by only allowing allocating a certain size.
One fairly easy option I'd like is letting it allocate "stacks" we can use manually with a bump allocator.
This would be great whenever you have a function that wants to use a lot of temporaries; it could request such an allocator, and then allocate all the temporaries on that.
One possible version is to allow a maximum of up to 128 be used at a time, with something like:
struct BumpAlloc
    memory::Vector{Vector{UInt8}}
    mask::Base.Threads.Atomic{UInt128}
    BumpAlloc() = new([UInt8[] for _ in 1:128],  Threads.Atomic{UInt128}(typemax(UInt128)))
end

The mask indicates whether each vector is used. leading_zeros gives the zero-based index of the first open slot. We can use atomics to allocate/free the vectors in memory to make sure parallel programs don't accidentally take the same one.
This should be relatively fast, and ideally each vector returned will be used for a large number of "bump allocations" within the program, i.e. each function call should try and use the same one for each data structure it is allocating.
They'd have to have a way to estimate how much memory they'll actually need, so that they can resize! the vector they receive if it is too small.
Alternatively, we could pick an upper size limit.
We could use Mmap to mmap a huge chunk of virtual memory. Only memory we actually tough gets mapped to actual hardware.

I'm all in favor of having more unique ways of allocating memory and BumpAlloc would be useful. I was also looking through some internals and thought jl_gc_alloc might be worth mentioning in case anyone is willing to get their hands dirty down the road.
Also we might have ImmutableArrays in base soonish: https://github.com/JuliaLang/julia/pull/41777.


[FEA] Implement GPU kernel for SubstringIndex

Is your feature request related to a problem? Please describe.
Our current implementation of SubstringIndex uses complex regular expressions, and we have seen that performance is not always good relative to CPU.
Describe the solution you'd like
We should evaluate whether a custom GPU kernel would perform better.
Describe alternatives you've considered
Additional context

closed by https://github.com/NVIDIA/spark-rapids/pull/11149


Switch from setuptools-rust to maturin?

If you build with https://github.com/PyO3/maturin rather than setuptools-rust I hear it's less picky about which python version the result binds to. Might help simplify your build a bit maybe?

Our CI stuff is all set up now at this point and it seems to be working so we're not too too pressed to change things up and/or clean up. This looks like it's something good to look into if we ever refactor though! Additionally PRs are of course always welcome to update this :)

I think this should be moved to https://github.com/bytecodealliance/wasmtime-py.

Indeed. @gilescope if you're still interested in pursuing this and if it's still applicable to wasmtime-py, feel free to reopen!


Fix #679 - Train sizemodel on dataset with partially empty masks

I encountered #679 while trying to train a SizeModel on my own dataset.
Please allow me to propose a fix via this PR. A testcase is included in test_train.py.
From what I see, there are two small issues

del train_data[i] while iterating over the list can cause the index to go out of bounds.
del feat is run outside the for-loop of iterating over batches. Arguably, this should not be a problem for real world datasets. The sample testcase just happened to catch that as well.

Thanks for maintaining this repository!

thanks @jraufeisen , we are not testing this code so we are not accepting any modifications at this time, we recommend users train the size model with non-empty images


ExplorerBrowserTestForm throws AccessViolationException

https://github.com/dahall/Vanara/blob/7a46a780110e5a3c4fe6ce66285ca55dd816499d/UnitTests/ExplorerBrowser/ExplorerBrowserTestForm.cs#L39
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory
This form is commented out, perhaps it should not be used ?
https://github.com/dahall/Vanara/blob/7a46a780110e5a3c4fe6ce66285ca55dd816499d/UnitTests/ExplorerBrowser/Program.cs#L19

Yes. I reused the framework to test both and just comment out one or the other to test.

Do you get the exception with the ExplorerBrowserTestForm ?

Yes. I broke something here while trying fix something else. I found root cause and should release a fix soon.

I still have Issues running the demo. The App crashes hard, and just closes.
Running a build using the following version of Vanara:
Revision: 4fea35cd9e04e96479f5770ff49cb0b830c3ff64
Author: dahall<EMAIL_ADDRESS>Date: 12/09/2020 20:10:44
Message:
Added SIZEOF_SOCKET_ADDRESS_LIST macro.
Added conversions from SOCKADDR_IN to SOCKADDR_IN6.
Added SOCKET_ADDRESS_LIST.Pack to convert structure to a packad memory

I just wanted to let you know I've been looking into the root cause for that last couple of days and am stumped. I'll keep working on this, but it is going to take more time.

Okay, David, as soon as I am able to find a hint where this comes from, I'll let you know.
However, thanks for your support, keep up the great work, a stay healthy.

After working on ShellBrowser I came to a very similar problem, and I think it has to do with the lifetime of COM-Object-Instances.
In my case, I created an IShellFolder, passed it to a method as an argument, and voilà, the same problem. Can't tell more at the moment, I'm still investigating further.
But I think, let's assume you have the following scenario (and excuse my rugged English language, it's not my mother language):

Caller A
Component B which implements an COM-Interface

Caller A creates an argument of type ShellFolder which gets passed as argument to COM-Component B. For example, let's say you have:
CallerA.SomeMethod() => return ComponentB.Navigate(new ShellFolder(@"C:\"));
ComponentB stores a reference to ShellFolder(@"C:\") for later processing. It stores the reference to the object itself, and does not make a copy of it.
In my case, which was in fact as simple as that, the argument for Method ComponentB.Navigate() was already invalidated a few moments later although ComponentB still had a valid reference to it. In my understanding, as long as anyone has a reference to an object on the heap, the Garbage Collector is not allowed to Dispose() it - cause that would make no sense, that's how garbage collection has to work.
However, I think in that particular case the object may get collected as soon as CallerA.SomeMethod() finished. So it is valid to use that object in ComponentB.Navigate(), but it is not valid to store a reference to it for further processing.
Instead

the value has be passed as reference (maybe and if possible?), or
ComponentB has to increase it's reference count (if there's one), or
ComponentB has to make a clean copy for further processing

@dahall: I hope I was able to point out what I think the problem could be.
Regards, tajbender

After working on ShellBrowser I came to a very similar problem, and I think it has to do with the lifetime of COM-Object-Instances.
In my case, I created an IShellFolder, passed it to a method as an argument, and voilà, the same problem. Can't tell more at the moment, I'm still investigating further.
But I think, let's assume you have the following scenario (and excuse my rugged English language, it's not my mother language):

Caller A
Component B which implements an COM-Interface

Caller A creates an argument of type ShellFolder which gets passed as argument to COM-Component B. For example, let's say you have:
CallerA.SomeMethod() => return ComponentB.Navigate(new ShellFolder(@"C:\"));
ComponentB stores a reference to ShellFolder(@"C:\") for later processing. It stores the reference to the object itself, and does not make a copy of it.
In my case, which was in fact as simple as that, the argument for Method ComponentB.Navigate() was already invalidated a few moments later although ComponentB still had a valid reference to it. In my understanding, as long as anyone has a reference to an object on the heap, the Garbage Collector is not allowed to Dispose() it - cause that would make no sense, that's how garbage collection has to work.
However, I think in that particular case the object may get collected as soon as CallerA.SomeMethod() finished. So it is valid to use that object in ComponentB.Navigate(), but it is not valid to store a reference to it for further processing.
Instead

the value has be passed as reference (maybe and if possible?), or
ComponentB has to increase it's reference count (if there's one), or
ComponentB has to make a clean copy for further processing

@dahall: I hope I was able to point out what I think the problem could be.
Regards, tajbender

I found some time to play around with Explorer Browser Demo.  Albeit being currently rather slow cause all that debug-stuff it seems to work again. The following patch-file is based on commit dbec5d0507c9847c1c635798939740ed923b9b2e , I hope you can reproduce the working state I'm currently testing on.
Vanara.ExplorerBrowser - WorkingAgainPatch 21.04.21.diff.zip
The question is, where is the hard worker that will isolate the root cause for the Exceptions? 😁 I have to admit that some days ago I changed some debug-settings, so I hope someone can confirm that it works at least better now?

@dahall : Okay, further testing showed that these comments seems to fix the issue so far:
`
		/// <summary>
		/// Internal method that actually releases the handle. This is called by <see cref="M:Vanara.PInvoke.SafeHANDLE.ReleaseHandle"/>
		/// for valid handles and afterwards zeros the handle.
		/// </summary>
		/// <returns><c>true</c> to indicate successful release of the handle; <c>false</c> otherwise.</returns>
		protected override bool InternalReleaseHandle()
		{
			//ILFree(handle);  <-- commented out for testing by tajbender
			return true;
		}

		/// <summary>Updates the handle after freeing the existing handle.</summary>
		/// <param name="newHandle">The new handle.</param>
		protected virtual void UpdateHandle(IntPtr newHandle)
		{
			//ILFree(handle);   <-- commented out for testing by tajbender
			SetHandle(newHandle);
		}

`
I'll dig further into it...
Regards,
tajbender

Heureka, I've got it. Thanks for reading.
I'll prepare a pull request the next days! Small issue, great impact, as always with really nasty bugs.

See Pull Request https://github.com/dahall/Vanara/pull/224

Heureka, I've got it. Thanks for reading.
I'll prepare a pull request the next days! Small issue, great impact, as always with really nasty bugs.

THANK YOU!! This one had evaded me for months.

Thank you for all the great work. That was a nasty one... Without having a very similar issue in ShellBrowser a few weeks ago I wouldn't have found it...
Those bugs could really drive you crazy, cause you have no chance finding the root cause by debugging, it just depends on luck 🍀


Sparse Matrix

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes
Motivation
(Please outline the motivation for the proposal.)
program to efficiently represent a sparse matrix
Pitch
(Please explain why this feature should be implemented and how it would be used.)
Being a part of the GSSOC'21, I would like to implement this in java and in C  .Please do assign this to me

@HarshCasper have made the required changes

@HarshCasper I have opened a new pull request
https://github.com/TesseractCoding/NeoAlgo/pull/2857
But its shows DeepSource: Java (beta) Failing after 8s — Analysis Failed: Issues detected that need attention. this error
Everyone is facing this issue
PLEASE TRY TO RESOLVE THIS ISSUE .ITS A BUG I GUESS


Reading an invalid object should not throw any exceptions

This currently prevents us from easily defining our own composite
readers, which is often necessary; see #31 and #68. Without the
exceptions, implicitly[Reader[_]].read calls can be chained using
orElse(), as done internally in uPickle.
sealed trait Base
case class Child1() extends Base
case class Child2() extends Base

import upickle._
implicit val BaseR: Reader[Base] = Reader[Base](
  implicitly[Reader[Child1]].read
    .orElse(implicitly[Reader[Child2]].read)
)

The exceptions are only useful for debugging purposes.

Looks reasonable. In future it may be worth converting the PartialFunction[T, R] reads into a T => Either[Error, R] so we can preserve both the rich-error-data as well as the chainability


[SMALLFIX]improve javadoc and change the code of "#replaceHostName(URI)"

the method "#replaceHostName()"  checks the condition "path.getPort() != -1" repeatedly, I think we can remove the outer one.(this is because an AlluxioURI doesn't ensure an authority has a port)
Or remove the inner one?

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9919/
Test PASSed.

+1 LGTM


add event in codeunit 1605 "PEPPOL Management" OnAfterFindNextInvoiceLineRec

Describe the request
In codeunit 1605 "PEPPOL Management" in FindNextInvoiceLineRec procedure add OnBeforeFindNextInvoiceLineRec event
[IntegrationEvent(false, false)] local procedure OnBeforeFindNextInvoiceLineRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var ServiceInvoiceLine: Record "Service Invoice Line"; var SalesLine: Record "Sales Line"; ProcessedDocType: Option Sale,Service; ProcessedDocType: Option Sale,Service; Position: Integer) ;
Additional context
procedure FindNextInvoiceLineRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var ServiceInvoiceLine: Record "Service Invoice Line"; var SalesLine: Record "Sales Line"; ProcessedDocType: Option Sale,Service; Position: Integer): Boolean
var
Found: Boolean;
begin
//add the below event at the end of GetAccountingSupplierPartyLegalEntityByFormat
OnBeforeFindNextInvoiceLineRec(SalesInvoiceLine, ServiceInvoiceLine, SalesLine, ProcessedDocType, Position);
    case ProcessedDocType of
        ProcessedDocType::Sale:
            begin
                if Position = 1 then
                    Found := SalesInvoiceLine.Find('-')
                else
                    Found := SalesInvoiceLine.Next() <> 0;
                if Found then
                    SalesLine.TransferFields(SalesInvoiceLine);
            end;
      .....

    OnAfterFindNextInvoiceLineRec(SalesInvoiceLine, ServiceInvoiceLine, SalesLine, ProcessedDocType, Found);
    exit(Found);
end;

[IntegrationEvent(false, false)] local procedure OnBeforeFindNextInvoiceLineRec(var SalesInvoiceLine: Record "Sales Invoice Line"; var ServiceInvoiceLine: Record "Service Invoice Line"; var SalesLine: Record "Sales Line"; ProcessedDocType: Option Sale,Service; ProcessedDocType: Option Sale,Service; Position: Integer) ;
Internal work item: AB#545281

I will need some information about why and what scenario you are doing.

the scenario is when we have lines with 0 quantities , we dont want the Peppol file to include lines with 0 quantities.

Why cant you set found = false, on the on after event?

Why cant you set found = false, on the on after event?

because all remaning lines wont be included.
example:
if we have a invoice with 5 lines and the second line has quantity 0,
when setting found = false, then all remaining lines(3,4,5) will be excluded

Is there really not any way to set filters on the SalesInvoiceLine in the XML ports that use this code.
Problem with adding your event is that we have to accomodate this for sales and service, and i would rather have some other approach to setting specific filters on the SalesInvoiceLine variable

if thats the case then you can explore if you can add a new function in Peppol management that contains a new IntegrationEvent, and this function is then called from within the Initialize of the xmlport, below more details:
in xmlport 1610 "Sales Invoice - PEPPOL BIS 3.0"
 procedure Initialize(DocVariant: Variant)
    var
        RecRef: RecordRef;
    begin
        RecRef.GetTable(DocVariant);
        case RecRef.Number of
            DATABASE::"Sales Invoice Header":
                begin
                    RecRef.SetTable(SalesInvoiceHeader);
                    if SalesInvoiceHeader."No." = '' then
                        Error(SpecifyASalesInvoiceNoErr);
                    SalesInvoiceHeader.SetRecFilter();
                    SalesInvoiceLine.SetRange("Document No.", SalesInvoiceHeader."No.");
                    SalesInvoiceLine.SetFilter(Type, '<>%1', SalesInvoiceLine.Type::" ");

                    // ** Call new function below in codeunit 1605 "PEPPOL Management"**
                    PEPPOLMgt.AddSalesInvoiceLineFilter(SalesInvoiceLine);

                    if SalesInvoiceLine.FindSet() then
                        repeat
                            SalesLine.TransferFields(SalesInvoiceLine);
                            PEPPOLMgt.GetInvoiceRoundingLine(TempSalesLineRounding, SalesLine);
                        until SalesInvoiceLine.Next() = 0;
                    if TempSalesLineRounding."Line No." <> 0 then
                        SalesInvoiceLine.SetFilter("Line No.", '<>%1', TempSalesLineRounding."Line No.");

                    ProcessedDocType := ProcessedDocType::Sale;
                end;

and in codeunit 1605 "PEPPOL Management"
 procedure AddSalesInvoiceLineFilter(var SalesInvoiceLine: Record "Sales Invoice Line")
    begin
      OnAddSalesInvoiceLineFilter(SalesInvoiceLine)
    end;

 [IntegrationEvent(false, false)]
    local procedure OnAddSalesInvoiceLineFilter(var SalesInvoiceLine: Record "Sales Invoice Line")
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 27448.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1965 ms

Resolved: Bofrost.at performance has improved in 32736b6 after 6 minutes.


Kepler helm chart on k3d on mac intel

Since I was not able to run kepler on minikube I tried out k3d on a mac like this:
k3d cluster create kepler-cluster
This is the output of k get nodes
NAME                          STATUS   ROLES                  AGE   VERSION
k3d-kepler-cluster-server-0   Ready    control-plane,master   22s   v1.25.7+k3s1

After I tried to deploy kepler with the helm chart with the following command:
helm install kepler . --values values.yaml  --create-namespace  --namespace kepler
But the pod does not get created and it is stuck in the ContainerCreating state due to a Failed Mount:
Unable to attach or mount volumes: unmounted volumes=[usr-src],
unattached volumes=[lib-modules tracing proc usr-src kube-api-access-2bh9r]: timed out waiting for the condition
MountVolume.SetUp failed for volume "usr-src" : hostPath type check failed: /usr/src is not a directory

/usr/src is not a directory in Mac.
I was taking a look at this stack overflow question: https://stackoverflow.com/questions/34141228/does-usr-local-src-on-mac-not-exist. Shall I force the creation of the directory in the file system?
Any idea on how to solve it?
I am still stuck and could not deploy Kepler locally for testing purposes

Hello @AntonioDiTuri  If you are wanting to try for testing purposes have you seen the makefile in the kepler repo. It has a entry for cluster-up this might be an easier way for testing instead of the helm chart on the mac??
You can find it at the bottom of the makefile
https://github.com/sustainable-computing-io/kepler/blob/main/Makefile

as there no Cgroup or ebpf on MacOS, as those things are linux specific. if you run kepler ... on mac. well, there will be lots of limitation.  in other words, do we support macOS for now? @rootfs

refer to this https://github.com/sustainable-computing-io/kepler-helm-chart/issues/12#issuecomment-1538383346


Star Wars API - Console Challenge

taken from #35
rendered: https://github.com/neuefische/web-exercises/tree/feat/js-fetch/star-wars-console/sessions/js-fetch/star-wars-console

CSB

refers to neuefische/web-curriculum-new-format#146

Very nice! Easy to understand and satisfying to complete. :) Here's my solution.


[BUG] dropdown is not shown above other content

Description
When I view the select within a form,
I expect the dropdown to be above all components and be fully visible,
But currently the dropdown is not above all other content
chakra-react-select Version
4.1.0
Link to Reproduction
No response
TypeScript?

[X] Yes I use TypeScript

Steps to reproduce

Open Select configured as follow

        <FormControl isRequired>
          <motion.div
            initial={{ opacity: 0, y: -50 }}
            animate={{ opacity: 1, y: 0 }}
            transition={{ delay: 0.5, duration: 0.5 }}
          >
            <FormLabel>Grund der Kontaktaufnahme</FormLabel>
            <Select
              placeholder="Wähle eine Option"
              options={reasonForContactOptions}
              onChange={handleReasonForContactChange}
              value={reasonForContactOptions.find((contactReason) => contactReason.value === reasonForContact)}
            />
          </motion.div>
        </FormControl>

Operating System

[ ] macOS
[X] Windows
[ ] Linux
[ ] iOS/iPadOS
[ ] Android

Package Manager
NPM
Additional Information
No response

Can you provide me with a minimal reproduction? You can use this template for it: https://stackblitz.com/edit/vitejs-vite-fatlrb?file=src%2Fapp.jsx
This seems like it might be an issue with the motion.div tbh. Those might mess with the z-index of their children, which would make these overlap weirdly. If you look at the main example, you can see that this doesn't generally happen: https://stackblitz.com/edit/vitejs-vite-lzaqwr?file=src%2Fapp.tsx
If it is a z-index issue, you could potentially fix it by using the approach from this issue: https://github.com/csandman/chakra-react-select/issues/55

Actually, I gave it a shot on the exact version you're on, using the setup you provided and I'm not seeing the issue. I can't help otherwise without a reproduction, but this doesn't appear to be a bug. https://stackblitz.com/edit/vitejs-vite-674tkm?file=src%2Fapp.tsx

Hey @csandman,
using the menuPortalTarget={document.body} property fixed my problem.
Thanks for your fast help.
I will close this ticket.