text:
Document how to work with a local ASP.NET Core backend during development

Port the following Xamarin docs on consuming backend APIs from a native client app during development:

https://docs.microsoft.com/xamarin/xamarin-forms/data-cloud/web-services/rest
https://docs.microsoft.com/xamarin/cross-platform/deploy-test/connect-to-local-web-services

We'll also need to migrate the Todo sample app to .NET MAUI as well.
This is needed so that we can update the ASP.NET Core tutorial on building an ASP.NET Core backend for a native client: https://github.com/dotnet/AspNetCore.Docs/issues/26109.

[ ] Sample
[ ] Consume REST services doc
[ ] Connect to local web services doc

In typical fashion this won't be a straight port. The old way of connecting to localhost from Android doesn't work in MAUI - see https://github.com/xamarin/xamarin-android/pull/6665

@davidbritch https://github.com/xamarin/xamarin-android/pull/6665 is a merged PR. Is there an active issue tracking the problem you are seeing?

@danroth27 It's more a question of what modifications are required to the Android config in the MAUI app to make it connect to both HTTP and HTTPS localhost without errors. I'm working on it.

Looks like iOS also has issues connecting to localhost HTTP + HTTPS. Investigating.

iOS error:
2022-06-17 17:20:16.223226+0100 TodoREST[7940:247005] Task <47ECE583-C4B0-4C8F-9085-FF0F0B34B261>.<1> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9813])
  2022-06-17 17:20:16.256810+0100 TodoREST[7940:247008] Task <47ECE583-C4B0-4C8F-9085-FF0F0B34B261>.<1> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “localhost” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
      "<cert(0x7f7df1388400) s: localhost i: localhost>"
  ), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://localhost:7298/api/todoitems/, NSErrorFailingURLStringKey=https://localhost:7298/api/todoitems/, NSUnderlyingError=0x6000005c4d80 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x600003b68a00>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=(
      "<cert(0x7f7df1388400) s: localhost i: localhost>"
  )}}, _NSURLErrorRelatedURLSessionTaskErrorKey=(
      "LocalDataTask <47ECE583-C4B0-4C8F-9085-FF0F0B34B261>.<1>"
  ), _kCFStreamErrorCodeKey=-9813, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <47ECE583-C4B0-4C8F-9085-FF0F0B34B261>.<1>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x600003b68a00>, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “localhost” which could put your confidential information at risk.}

Hi @AndreduToit
There'll be docs on doing this by the end of the week. In the meantime, let's see if I can help you. Are you trying to connecting to HTTP localhost or HTTPS? The solution is different for each scheme.

Hello @davidbritch
Thank you so much for your response.
I let you know that I have also engaged with @Eagle3386 on this issue see: https://github.com/dotnet/maui/discussions/8131.
I am trying to connect to HTTPS with my .NET Maui App.
The App works as expected on Windows platform but on Android platform the server responds with 'Hostname 10.0.2.2 not verified'
I have added the following to my Maui App:

Platforms\Android\Resources\raw\kestrel.cer
Platforms\Android\Resources\xml\network_security_config.xm - as per the suggestion by  @Eagle3386.
line - android:networkSecurityConfig ="@xml/network_security_config" - under tags 'manifest/application' in AndroidManifest.xml

I re-produced kestrel.cer in dotnet with command line 'dotnet dev-certs https --clean' and 'dotnet dev-certs https --trust' and exported the certificates with certmgr.exe to the folder Android\Resources\raw in my Maui App (tried  both DER encoded and Base-64 encoded formats in 'Personal' and 'Trusted Root Certificate Authorities' folders).
I would very much appreciate any tips or guidance that you can  give me.

Hi @AndreduToit
The network_security_config.xml approach is for HTTP. The issue on HTTPS is that Android doesn't trust self-signed certificates, and so you have to add code to ignore SSL errors for localhost. Add the following class to your project:
    public class HttpsClientHandlerService : IHttpsClientHandlerService
    {
        public HttpMessageHandler GetPlatformMessageHandler()
        {
#if ANDROID
            var handler = new CustomAndroidMessageHandler();
            handler.ServerCertificateCustomValidationCallback = (message, cert, chain, errors) =>
            {
                if (cert != null && cert.Issuer.Equals("CN=localhost"))
                    return true;
                return errors == System.Net.Security.SslPolicyErrors.None;
            };
            return handler;
#elif IOS
            var handler = new NSUrlSessionHandler
            {
                TrustOverrideForUrl = IsHttpsLocalhost
            };
            return handler;
#elif WINDOWS || MACCATALYST
            return null;
#else
         throw new PlatformNotSupportedException("Only Android, iOS, MacCatalyst, and Windows supported.");
#endif
        }

#if ANDROID
        internal sealed class CustomAndroidMessageHandler : Xamarin.Android.Net.AndroidMessageHandler
        {
            protected override Javax.Net.Ssl.IHostnameVerifier GetSSLHostnameVerifier(Javax.Net.Ssl.HttpsURLConnection connection)
                => new CustomHostnameVerifier();

            private sealed class CustomHostnameVerifier : Java.Lang.Object, Javax.Net.Ssl.IHostnameVerifier
            {
                public bool Verify(string hostname, Javax.Net.Ssl.ISSLSession session)
                {
                    return Javax.Net.Ssl.HttpsURLConnection.DefaultHostnameVerifier.Verify(hostname, session) ||
                        hostname == "10.0.2.2" && session.PeerPrincipal?.Name == "CN=localhost";
                }
            }
        }
#elif IOS
        public bool IsHttpsLocalhost(NSUrlSessionHandler sender, string url, Security.SecTrust trust)
        {
            if (url.StartsWith("https://localhost"))
                return true;
            return false;
        }
#endif
    }

Then invoke it when you create your HttpClient object:
#if DEBUG
            clientHandlerService = new HttpsClientHandlerService();
            client = new HttpClient(clientHandlerService.GetPlatformMessageHandler());
#else
            client = new HttpClient();
#endif

Hopefully this will unblock you.

Hello @davidbritch - I am unable to locate IHttpsClientHandlerService - assmebly/namespace - nuget.

You could delete that reference (if you want). It's just:
	public interface IHttpsClientHandlerService
	{
        HttpMessageHandler GetPlatformMessageHandler();
    }

@davidbritch
OK, got it thanks.
Can you advise - for HTTPS, do I remove the following:

Platforms\Android\Resources\raw\kestrel.cer
Platforms\Android\Resources\xml\network_security_config.xm - as per the suggestion by @Eagle3386.
line - android:networkSecurityConfig ="@xml/network_security_config" - under tags 'manifest/application' in AndroidManifest.xml

Also, let you know - I tried the same code previously as suggested by @Eilon  here https://github.com/dotnet/maui/discussions/8131 and provided here: https://gist.github.com/Eilon/49e3c5216abfa3eba81e453d45cba2d4
Did not work before, but I try again. Will let you know.

Yes, you can remove the following if your localhost service is running over HTTPS:

Platforms\Android\Resources\raw\kestrel.cer
Platforms\Android\Resources\xml\network_security_config.xm - as per the suggestion by @Eagle3386.
line - android:networkSecurityConfig ="@xml/network_security_config" - under tags 'manifest/application' in AndroidManifest.xml

Similarly, you don't need the code-based approach from above if your localhost service is running over HTTP.

@davidbritch I'd like to thank you, too, for the clarification about the network_security_config.xml approach as I was once taught it's required for both, HTTP and HTTPS. 😅

@Eagle3386
' why null instead of new() is return for Windows & Mac Catalyst?'

my guess is that this is because HttpMessageHandler is an abstract class - cannot be instantiated - a subclass is required.

I also found that calling instantiating as follows new HttpClient(null) throws and exception.
For this reason (and because I always enable nullable in my code), I added a property for HttpClient in my helper class - which builds a HttpMessageHandler (GetPlatformMessageHandler) and then on a null test returns either  new HttpClient() or new HttpClient(handler)

@Eagle3386

Addendum: can you please explain why null instead of new() is return for Windows & Mac Catalyst? Because that always gives me a NRE upon launching a Windows debug session while everything runs smoothly with the latter.

Two things here:

I pasted code from my Mac. The version on my Windows machine is the more up to date and has a null check before creating the HttpClient object. But on both machines the HttpsClientHandlerService code is identical.
The default HttpClient constructor creates a new HttpClientHandler object which in turns creates the correct underlying platform implementation. So for Windows & MacCatalyst you could return a new HttpClientHandler and pass it to the HttpClient constructor, but that's no different to just doing new HttpClient(). So really it's just a personal choice to return null or a new HttpClientHandler.

Additionally, from what I read over at xamarin/xamarin-macios, the NSUrlSessionHandler class is supposed to work on iOS and Mac Catalyst. Why not return the same like for iOS then

HTTP + HTTPS localhost works out of the box on MacCatalyst, without having to modify NSUrlSessionHandler.

@AndreduToit

For this reason (and because I always enable nullable in my code), I added a property for HttpClient in my helper class - which builds a HttpMessageHandler (GetPlatformMessageHandler) and then on a null test returns either new HttpClient() or new HttpClient(handler)

Exactly what I do in the code on my Windows machine (and is the code that will make it into the docs).

@davidbritch

Two things here:

I pasted code from my Mac. The version on my Windows machine is the more up to date and has a null check before creating the HttpClient object. But on both machines the HttpsClientHandlerService code is identical.

Understood. Then my approach is just different: I'll return a (new) handler instead of a prepared HttpClient due to my MAUI Blazor app doing normal HTTP requests as HTTP/2 & the SignalR-based stuff as HTTP/1.1 (until SignalR either supports HTTP/2 or even HTTP/3 - which is currently in development, IIRC).

(...) So for Windows & MacCatalyst you could return a new HttpClientHandler and pass it to the HttpClient constructor, but that's no different to just doing new HttpClient() (...)

But I've been talking about the "force-pass localhost certs" workaround here & as I said, looking at the aforementioned Xamarin repo's code, iOS & MacCatalyst seem to use the same class, hence overriding TrustOverrideForUrl is required for MacCatalyst (just as is for iOS), isn't it? Because you also say:

HTTP + HTTPS localhost works out of the box on MacCatalyst, without having to modify NSUrlSessionHandler.

And that totally confuses me now.. 😅

@davidbritch
I share the following for your information and in case someone else can benefit from it.
The code for Verify method of the CustomHostnameVerifier  calls suggested by yourself is as follows:
              public bool Verify(string hostname, Javax.Net.Ssl.ISSLSession session)
             {
                    return Javax.Net.Ssl.HttpsURLConnection.DefaultHostnameVerifier.Verify(hostname, session) ||
                        hostname == "10.0.2.2" && session.PeerPrincipal.Name == "CN=localhost";
             }

This code results in some null reference warnings.
I tried the following code, but it does not work - results in 'Hostname 10.0.2.2 not verified' - why? I have no idea :
                public bool Verify(string? hostname, Javax.Net.Ssl.ISSLSession? session)
                {
                    return Javax.Net.Ssl.HttpsURLConnection.DefaultHostnameVerifier?.Verify(hostname, session) ?? false ||
                        hostname == "10.0.2.2" && session?.PeerPrincipal?.Name == "CN=localhost";
                }

The following code seems top be working - without any null reference warnings:
                public bool Verify(string? hostname, Javax.Net.Ssl.ISSLSession? session)
                {
                    if (string.IsNullOrEmpty(hostname) || session == null) return false;
                    var httpsDefaultVerified = Javax.Net.Ssl.HttpsURLConnection.DefaultHostnameVerifier?.Verify(hostname, session) ?? false;
                    var httpsCustomVerified = hostname == "10.0.2.2" && session.PeerPrincipal?.Name == "CN=localhost";
                    return httpsDefaultVerified || httpsCustomVerified;
                }

Just FYI since https://github.com/xamarin/xamarin-android/pull/7246 was merged, the CustomHostnameVerifier hack won't be necessary in .NET 7 on Android.

repo: dotnet/docs-maui


text:
Japanese calendar eras: Document relaxed era range checking

Japanese calendar eras: Document relaxed era range checking
Ordinarily, supplying a date for a specific calendar era that is out of range of that era throws an exception. Because in the Japanese calendars the end date of an era may not be known in advance, this restriction is relaxed. This needs to be documented.

This was documented in the section on range checks for calendar eras in Working with calendars.

source: gharchive/issue

repo: dotnet/docs

license_type: permissive

license_source: github-api


text:
[New Topic] Documenting System.Data and System.Data.SqlClient

This idea came about when a developer asked me if .NET Core "supported ADO.NET".  I reviewed the code and saw System.Data.SqlClient.  I even tried it out.  Then I went looking for documentation similar to ADO.NET Oveview.
I recognize that there is a reference to the APIs, perhaps autogenerated, such as System.Data and System.Data.SqlClient Namespace
I thought we could start talking about what a Working with Data section looks like in the dotnet docs.  There are links out to ASP.NET MVC docs (for Entity Framework) and the EF docs themselves, but samples and guidance for the System.Data portion of the framework is not there yet.
One thing that would be nice to address is exactly what to expect to be in .NET Core (System.Data.SqlClient for example) and what has been implemented by third parties or what will not be in the dotnet/corefx repo.
This is a big topic, and while I thought there was a wealth of documentation on MSDN that is ripe to use as inspiration and copy, there would undoubtedly be changes.  I felt it was better to start a discussion and see what the guidance is today rather than suggest I am capable of providing a starting template.
For example:
Is the intent to no longer refer to direct System.Data usage as ADO.NET?
In what ways is System.Data (and what many people are looking for in System.Data.SqlClient) different from the .NET Framework?

@mairaw is the ADO.NET overview part of the .NET Framework migration?

yes @cartermp

Awesome.  Closing this for now, @SpaceShot, since we are migrating over the ADO.NET documentation.

authors: SpaceShot cartermp mairaw


text:
Code syntax error

I try to edit but I cannot see the C# code.
using FileStream myStream = new FileStream("TestData.txt", FileMode.OpenOrCreate);
The using will create the syntax error I believe.

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

ID: ee15f916-5406-85fa-b7fb-a9e69fcd3efb
Version Independent ID: b6aae569-8a56-0a44-7b8e-e54491418baf
Content: Encrypting Data
Content Source: docs/standard/security/encrypting-data.md
Product: dotnet
Technology: dotnet-security
GitHub Login: @IEvangelist
Microsoft Alias: dapine

If you're talking about the using statement syntax, this was a new feature in C# 8.0. See using statement docs

Are you saying .NET Framework 4.8 is not supporting C# 8.0? Can you confirm that? Can someone also helps to put this information on the page itself?

@chanmmm The default language version for .NET Framework is C# 7.3, you can override that in your csproj file.

Yes, it can build after I added

8.0

in csproj file.
Thanks


text:
F# code formatting guidelines: Space before DU constructor arguments?

In the F# code formatting guidelines, I can find no descriptions of whether DU cases should have a space before a parenthesized argument:
let opt1 = Some ()
let opt2 = Some (1, 2)

or:
let opt1 = Some()
let opt2 = Some(1, 2)

Could this be clarified and added? I can add a PR, but let's find out what it should be first.

/cc @cartermp

I think it's somewhat finnicky, since it's not a function application nor is it a method call.
Let's have it be a space:
let opt1 = Some ()
let opt2 = Some (1, 2)

This is the most common style used in the F# compiler source code and several codebases I've interacted with, so that's as canonical as it gets, I suppose.
Will happily accept a PR that adds this.

authors: cartermp cmeeren


text:
Update how-to-implement-binding-validation.md

Supported by https://github.com/dotnet/samples/pull/1449

Added reference to equivalent vb samples.
Removed extra whitespaces (Hide whitespace changes for easier diff)
Replaced fwlink link.

Close/reopen to get preview.

@Youssef1313 Thanks for making the changes. I verified the language picker is working. I'll merge now.

@Youssef1313 Don't forget that for the CLR types you can easily use a link instead: [Int32.Parse](xref:System.Int32.Parse)

source: gharchive/pull-request

authors: Thraka Youssef1313 gewarren


text:
Changed the meaning

Made more clear that you are not able to pass an array as since it is a reference type and a value one.
Summary
Describe your changes here.
Fixes #Issue_Number (if available)

@Vasilisdm I'm going to close this PR, as the original text was more instructive: The point is that passing a reference type (a class) by value means the called code can't reassign the reference. However, it can modify the state of the object referred to.

Let's agree to disagree then. I am just saying that it might be confusing for a newcomer, but its your call.

authors: BillWagner Vasilisdm


text:
Note lack of support for polymorphic deserialization

Fixes #23297

Thanks for quick review @gewarren !


text:
Turn off selected recommendations

Turn of "recommended content" generation in two cases:

When the article is part of a series. These are identified by finding the "step-by-step" div  for previous and next actions.
When the article has a clear "Next actions" at the close. We're directing the reader to a single next step, so why distract them?

Where a single folder was affected, the folder was configured in docfx.json. For most of the tutorials, these were mixed in folders with other content, so the change is in the file itself.
I tagged several people for review. You only need to check the content you're responsible for, not the entire PR.

/cc @diberry This modifies some of the .NET azure content you wrote. Do you agree with those changes?

/cc @luisquintanilla @cjgronlund
I didn't make these same changes in the ML.NET and .NET for Apache Spark folders. Let me know if I should add them to this PR.


text:
[Freshness] US-1953530: Refresh top articles by PV - .NET and Languages Content (2)

Created this PR for user story-1953530's next 10 articles. Validated the content for freshness and accuracy.
User story link: https://dev.azure.com/mseng/TechnicalContent/_workitems/edit/1953530/

Please note: This PR is still a work in progress. It's not ready for review. I'll mark it as "Ready for review" once all the updates are done.
Thank you!

Hello @mcleblanc,
I've completed my work on the next 10 articles and created this pull request for your final review/approval. If you have questions or feedback, please add it as a comment in the PR. The standard review period is 10 business days. :)
User story link: https://dev.azure.com/mseng/TechnicalContent/_workitems/edit/1953530
Thank you,
Pooja

Hello @tdykstra,
Thank you for you feedback. I have implemented them. Could you please have a look at the changes and provide your final approval/feedback for sign-off?
Best regards,
Pooja

Hello @tdykstra,
Thank you for the approval. Could you please have a look at the latest changes and provide your approval for sign-off?
Best regards,
Pooja

Hello @mcleblanc @adegeo @gewarren @IEvangelist,
Could you please have a look at the changes and provide your final approval/feedback for sign-off?
Best regards,
Pooja

Could you please have a look at the latest changes and provide your approval for sign-off?

The latest changes look good. But all of the conversations need to be resolved before we can merge the PR. You can just go through and click the Resolve Conversation button for each one if there's nothing more to be done.  We should also address the comments from @adegeo before merging.

Hello @mcleblanc @adegeo @gewarren @IEvangelist,
Could you please have a look at the changes and provide your final approval/feedback for sign-off?
Best regards,
Pooja

authors: poojapoojari tdykstra


text:
Revised computation expression translation table for consistency & clarity

Changed the syntax to consistently make use of {{ and }} instead of mixed {| |} and { }
Refer to the process of changing computation expressions to their builder calls only as 'translation'
Modified for...in and for...to translations so that terms appear the same in both the initial and translated forms
Removed erroneously unbalanced parenthesis for try...with translation

Summary
These changes pertain to issue #12832 and the associated pull request #12835. The original complaint with the pseudosyntax was that it could be confused with {| and |} when used for anonymous records. The pull request "addressed" this issue by removing some occurrences of this syntax but it left the documentation in a state that was not consistent with itself.
I would instead propose to use {{ and }} exclusively to represent code yet to be translated. This is a sensible choice due to its frequent use for string interpolation. There were also a couple of minor bugs with the translations previously used (unbalanced parentheses and the interchangeable use of "expr" and "enumeration". This PR addresses the ones I have spotted.

Internal previews

📄 File
🔗 Preview link

docs/fsharp/language-reference/computation-expressions.md
Computation Expressions

@dotnet-policy-service agree

ping @vzarytovskii for review


text:
Fix sample ranges for F# tour

They were off, as #6562 pointed out

Thanks for commenting back. I've approved this, and you can :shipit: when ready.

Thanks!

authors: BillWagner cartermp


text:
Add branch perf-improvements for vstest

Add perf-improvements branch for Microsoft/vstest

/cc @mmitche @tannergooding

repo: dotnet/dotnet-ci

license: mit

license_source: bigquery


text:
try dependabot

I'm still getting errors running it in my fork, but it's also creating at least some PR's. So let's try it in the main repo and see how useful it is.

@joperezr

@adityamandaleeka can I merge

repo: dotnet/eShop

license: MIT


text:
Target framework for the generated sample project is .NET Core 3.1.

System Information (please complete the following information):

ML.Net Model Builder (Preview): 16.5.0.2115505
Microsoft Visual Studio Enterprise 2019: 16.9.3
.Net: 5.0.201

Describe the bug
Target framework for the generated sample project is .NET Core 3.1.
To Reproduce
Steps to reproduce the behavior:

Create new console app with .Net 5.0;
Add Model builder by right click on the project;
Go to Consume page after Scenario>Environment>Data>Train>Evaluate steps;
Click "Add a solution" of console app;
Right click the sample project and click "Properties";
See Target Framework is .NET Core 3.1.

Expected behavior
Target framework for the generated sample project is .NET 5.0.
Screenshots

Additional context
NA

@LittleLittleCloud @zewditu and @briacht What is the expected behavior here?

The target framework for the console sample project is hardcoded to .net core 3.1.
@briacht  do we want it to match with the user project targetframe work?

Yes it makes sense to match the project's target fx

I don't think it's worthwhile to match generated fx with the selected project. When generating a library or an app, the target with minimum requirement (or largest compatibility) should be selected. For library, the target framework should be .netstandard2.0 (which is targeted by ML.Net). And for console app, it should be .netcoreapp2.1 (the minimum version that supports .netstandard 2.0).

And using selected framework target can causes massive amount of bugs. As the selected project can be either .net library or app. It can support or not support .net standard 2.0. And it can have multiple selected framework targets in .csproj as well. There's no guarantee that the target of selected framework can also be used by generated projects unless it's been thoroughly verified. But it's not worthwhile to do as the corner cases are endless and benefits are too small.

From a customer's perspective, wouldn't it make sense to generate a project with a target framework that matches their current project?

So what will be the definition of "match" their current project? If the target of selected project is netstandard2.1, which target will match, .net5.0, .netcoreapp 3.1, or net472? They are both correct answers because they all implements netstandard2.1. But which one will be preferred is a personal taste.

@LittleLittleCloud not sure I follow your example. When you say "selected project" are you referring to the base project in the customer's solution tree (that they right-clicked on to create the ML model)?
But generally speaking, I think I get your point that it is difficult to define "match" because there could be a one-to-many mapping, and selecting one of those "many" framework options might vary from customer to customer.
If that's the case, we could have the behavior as you suggested in your previous posts and see if we get feedback from customers on target-framework differences. Could also somehow track telemetry?
If a customer does want to update the target framework for a sample project they added, would they have to go to right-click-project > properties window?

@romalpani  if they want to update yes , they can do manually,

.netcoreapp2.1 isn't going to be supported soon.
I'd go with 3.1 or 5

2 options:
Option 1: If the project is an app targeting .NET 3.1 or 5, then generated projects match this version. If app targets .NET Standard, then app will target 3.1
Option 2: When user is choosing name of generated projects in that same dialog they can choose which version to target @romalpani

Those sound good to me!

@briacht
I like the two options too. Depending on dev-effort, I'd suggest Option 2.

We decided on Option 1.
We will consider Option 2 again as we get customer feedback.

Verify this issue on main branch:

Windows 10 Enterprise, Version 20H2
ML.Net Model Builder (Preview): 16.5.24.2125801
Microsoft Visual Studio Enterprise 2019: 16.9.5
.Net: 5.0.202
find the Console app project is still .NET Core 3.1, could you help to take a look?

The Web API project has become .NET 5.0.

Steps：

Select Create a new project from the Visual Studio 2019 start window.
Choose the C# Console App (.NET Core) project template with .Net 5.0;
Add model builder by right click on the project;
After trained;
Added Console App and Web API projects.
Open the projects' properties to check the Target framework.

The Target framework for the two projects have been .Net 5.0 on main branch: 16.5.25.2126902

authors: JakeRadMSFT LittleLittleCloud beccamc briacht romalpani vzhuqin zewditu

repo: dotnet/machinelearning-modelbuilder


text:
Data classification: VS would be crash when selecting the column to predict after switching from file to SQL Server Database File data source and vice versa.

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 17.16.0.2326203 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.5.5)
.Net: 6.0, 7.0
Describe the bug

On which step of the process did you run into an issue:
VS would be crash when selecting the column to predict after switching from file to SQL Server Database File data source and vice versa.

TestMatrix
File1: https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv
File2: https://github.com/dotnet/machinelearning-samples/raw/main/samples/modelbuilder/MulticlassClassification_RestaurantViolations/RestaurantScores.zip
To Reproduce
Steps to reproduce the behavior:

Select Create a new project from the Visual Studio start window.
Choose the C# Console App (.NET Core) project template.
Add model builder by right click on the project.
Select "Data classification" scenario.
On the Data page, choose attached "File1" data source and "Sentiment" column to predict.
Choose attached "File2" SQL Server Database File data source.
VS would be crash when selecting any column to predict.

Expected behavior
Select any column to predict successfully after switching from file to SQL Server Database File data source and vice versa.
Gif

Additional context

The bug is still repro on the latest main build 17.16.0.2326803. And now even more serious, once you switch to another file, the bug would be repro.

The bug has been fixed on the latest main build 17.16.0.2327401.


text:
Update VS Code insertion instructions to include DevKit telemetry

Updates VS Code insertion docs to include instructions on how to update VS Code telemetry bits.

For future purposes, is there a reason we don't just have one package that includes rzls and the telemetry DLL? Seems they could just be published together

We only want to download the telemetry dll if DevKit is installed. If we publish both together as a singular item on the CDN, then I believe it would be more difficult to limit which dlls are downloaded in various scenarios

Oh yeah, forgot it was a runtime download

authors: allisonchou davidwengier

repo: dotnet/razor


text:
Are the Third Party Notices in source-build-reference-packages actually correct?

source-build-reference-packages have a bunch of THIRD-PARTY-NOTICES.TXT files. For example:

https://github.com/dotnet/source-build-reference-packages/blob/main/src/targetPacks/ILsrc/microsoft.netcore.app/2.1.0/THIRD-PARTY-NOTICES.TXT
https://github.com/dotnet/source-build-reference-packages/blob/main/src/textOnlyPackages/src/microsoft.netcore.platforms/2.1.0/THIRD-PARTY-NOTICES.TXT

Are these licenses applicable to the "code" in source-build-reference-packages? The reference packages contain only API references for .NET libraries, not implementations. The licenses are mostly for the underlying implementations that the .NET API uses (eg, libunwind, zlib, unicode data, brotli, ...). Those implementations aren't present in source-build-reference-packages, probably the license doesn't apply to this code?
Should we remove the third party notices files to make it clearer that the code in this repo is not licensed under those third party licenses?

[Triage] @leecow, can you look into this?

Hi,
I'm facing the same...  I noticed that some THIRD-PARTY-NOTICES.TXT files contain references to non-existent source/usage code for the announced third party, which makes the files invalid to be shipped/used ... I think a good example is the references to Lucene inside nuget-client folder.
In this case, I have found that the text in /src/nuget-client./THIRD-PARTY-NOTICES.txt is imported from
https://github.com/NuGet/NuGet.Client/blob/0471d9e44848c4d00e37f2f7d4e9a1b69eb0b213/src/NuGet.Clients/NuGet.VisualStudio.Client/NOTICES.txt , but in the NuGet/NuGet.Client the paths expressed in the NOTICES.txt file also do not exist in the repo (src/Lucene.Net/), so maybe the content is not up-to-date.
I thought "ok, but the DLL file could be downloaded and the text for Lucene.net.dll would make sense", and although I see it referenced in some restore/assembly or csproj files in that repo, in the build log I don't see its use:
❯ grep -i Lucene dotnet6_6.0.104-0ubuntu1_amd64.build | wc -l
0

How we can improve these files? Opening issues in the correspondent parent repo (in this case, e.g., NuGet/NuGet.client)? Is there anything more automated that can check for matches?

I think opening repos in the right repo (eg, NuGet.Client for https://github.com/NuGet/NuGet.Client/blob/0471d9e44848c4d00e37f2f7d4e9a1b69eb0b213/src/NuGet.Clients/NuGet.VisualStudio.Client/NOTICES.txt) is probably the right next step. It also helps to CC the right folks (if you know any) to get the appropriate amount of attention.

authors: MichaelSimons mirespace omajid

repo: dotnet/source-build


text:
--source-only switch: doc and default behavior

https://github.com/dotnet/installer/pull/18358 is introducing a --source-only switch which:

Make the default non source build and add the "--source-only" switch.

From that description, it seems distro maintainers should be using this new switch when building the vmr.
If this is needed, can we give it some more visibility (like by using it in the vmr README)?
Also, open question: could the default be source build for convenience of the distro maintainers?
cc @mmitche @ViktorHofer @omajid

[Triage] This was resolved in https://github.com/dotnet/installer/pull/18492.

@MichaelSimons we should also update the vmr README so it is clear what commands and flags a distro maintainer must use.

@MichaelSimons we should also update the vmr README so it is clear what commands and flags a distro maintainer must use.

Yes, thanks - I re-opened until the readme is updated.

This should also update the corresponding command for the codespace: https://github.com/dotnet/installer/blob/530bfbd9d4b1d2232df9c1c6e45031256602f613/.devcontainer/vmr-source-build/README.md?plain=1#L23

This got fixed via https://github.com/dotnet/installer/commit/5003feccb9f5906d04feba63625c47f6b08121ea & https://github.com/dotnet/installer/commit/f7e396bfa783872871819a24589356c88a58373e

Thanks!

authors: MichaelSimons ViktorHofer mthalman tmds


text:
Add more binlogging

In trying to troubleshoot a couple build issues I realized that MSBuild binlogs were nice to have.  This change adds binlogging everywhere we can without changing the submodules' build scripts.  It also fixes up submodules' RepoBuilds so that they execute with the project directory as their current directory - this was the cause of getting random log files in the repos directory.

Instead of editing BuildCommand in individual repo files, would changing repos/dir.targets directly work? It contains lines like
<Exec Command="$(BuildCommand) $(RepoApiArgs) $(RedirectRepoOutputToLog)" WorkingDirectory="$(ProjectDirectory)" EnvironmentVariables="@(EnvironmentVariables)" />

authors: crummel omajid


text:
Add support for migrating using Blazor

Cocoon Offers support for migrating ASP.NET projects using Blazor. This is appealing for ASP.NET Web Form developers that are used to a component-based event-driven programming model.
Cocoon does some clever things to enable migration with Blazor using the strangler-fig pattern, like collecting the routable components in the app so that the fallback to the ASP.NET app happens correctly.

I'd like to see Blazor added as well.

Yeah would be amazing if support to Blazor is added, fallback to page components not working now

Would be keen to see this!. Looking to migrate a .NET MVC/WebApi/Angular/AspNet Identity app hosted in Azure app Service, to blazor web assembly running in AKS

Anyone successfully setup systemweb-adapters w/ Blazor? I know Cocoon has a sample using their tooling (as mentioned by @danroth27), however would be nice for the officially supported migration tooling to at least document a route for this, even if manual. Blazor is 100% our future and the only compelling reason for us migrate from web froms/framework to core.

As part of this, we will want to also add a doc into the migration documentation here

related: https://github.com/dotnet/aspnetcore/issues/42003

This will be a part of ASP.NET Core 8, so for now we've added documentation here to enable support in ASP.NET Core 6 & 7: https://github.com/dotnet/AspNetCore.Docs/pull/28535

Very nice, thanks for getting this doc put together @twsouthwick!
Live link for others: Enabling Blazor support with Yarp

authors: Michelh91 danroth27 gerneio joperezr slipgateio tbertenshaw twsouthwick

repo: dotnet/systemweb-adapters


text:
Feature request: Pre-load the REPL window with the output from running the code

Users would like to see the output window preloaded with the output of running the sample, especially for those pages that are reference or How-To.  See dotnet/docs#4571 for discussion

@BillWagner  thanks for putting this together.  @jonsequitur @colombod thoughts? Would this mean that we would need to consider adding monaco support to the output window?

This is a feature we've been considering and, since we do cache code execution results, I think it should be fairly inexpensive.
Also, we can preload the output window without making it a Monaco editor. (We are looking at richer display options as well, but I don't think this feature request requires it.)

authors: BillWagner LadyNaggaga jonsequitur

repo: dotnet/try


text:
Extend WCF scenario detection

Summary
#617 adds the ability to detect WCF server components so that we can be more proactive about the upgrade journey. Some customers will choose CoreWCF and some customers will choose gRPC.
Motivation and goals

We want to detect more WCF server scenarios e.g. (look for ServiceHost or other key types).

In scope

Detect ServiceHost

Out of scope

Making the recommended changes. This is an advisory only.

Risks / unknowns

This ReadyCheck does not make a technology decision. It should only provide guidance so that customers can choose the right technology when this scenario is detected.

We should consider doing Roslyn analysis of the code rather than string detection.

cc @SimonaLiao - I think your PR will go toward this user story.

authors: KSchlobohm brandonh-msft

repo: dotnet/upgrade-assistant


text:
🛑 Be-terna is down

In e6ef0b5, Be-terna (https://www.be-terna.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Be-terna is back up in bfe5d03.

repo: dotsi/bitamiuptime


text:
codecov: Failed to upload report from CI

Hi, and thanks for the effort in making a chart for codecov.
I'm currently facing this error when running the codecov-action@v3:
Error: getaddrinfo EAI_AGAIN codecov-minio - name: Upload coverage to Codecov
My ci config looks like:
        uses: codecov/codecov-action@v3
        with:
          url: codecov.mycompany.com
          token: ${{ secrets.CODECOV_TOKEN }}
          slug: org/repo
          verbose: true
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

I'm running minio: embedded: false and define minio connection in codecov_config under
setup:
services:
minio:
host: storage.googleapis.com

You’ll need an object storage that accessible across the internet, rather than a internal-only minio, try to use Amazon S3 or other public object storage and try again.

authors: LeoQuote naesheim

repo: douban/charts


text:
Add RetrieveTheHolderOfSpecificNonFungible

Implemented: Retrieve the holder of a specific non-fungible
https://docs-blockchain.line.biz/api-guide/category-item-tokens?id=v1-item-tokens-contractid-non-fungibles-tokentype-tokenindex-holder-get

Thank you for your contribution

thanks ✨

authors: mitaku rmanzoku

repo: doublejumptokyo/go-lbd


text:
🛑 VNUX.dev is down

In f5e1454, VNUX.dev (https://vnux.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VNUX.dev is back up in 79acf14.

repo: dougdragon/uptime


text:
Upgrade from deprecated CDK components

I'm getting a lot of warning in the webapp deployment phase of my builds about deprecated CDK components.
...
Warning:  aws-cdk-lib.aws_cognito.UserPoolIdentityProviderGoogleProps#clientSecret is deprecated.
  use clientSecretValue instead
  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-integrations-alpha.WebSocketLambdaIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-integrations-alpha.WebSocketLambdaIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-integrations-alpha.WebSocketLambdaIntegration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketApi is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketApiProps#connectRouteOptions is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteOptions#integration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketApiProps#defaultRouteOptions is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteOptions#integration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketApiProps#disconnectRouteOptions is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteOptions#integration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketApi#addRoute is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteOptions#integration is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRoute is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteProps#routeKey is deprecated.

  This API will be removed in the next major release.
Warning:  @aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteProps#webSocketApi is deprecated.
...

Redirect URI mismatch when logging in via Google from mad-liberation-test.com.

Google login works OK in prod.

I think it's because I have that one step in the process where I generate a subdomain of amazoncognito.com, and the end of the subdomain name is the account number. I haven't yet registered that subdomain for the test account. This might not be so bad.

Google login works in the test env now.

Done except for dynamic refs, which is blocked due to https://github.com/aws/aws-cdk/issues/6819 (Cloud Formation doesn't support dynamic refs where I need them).

repo: douglasnaphas/madliberation


text:
Replace placeholder URLs

Motivation and Context

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-
Changed

Screenshots

How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist

[ ] I've added relevant changes to the documentation.
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] My change requires a template update for create-ripple-app.
[ ] I have added template update script for next release.

I went back and forth a bit about where to put the code - it works well in ripple-global, but I don't think we should be publishing an inline image placeholder with ripple 😅
I ended up locating it in storybook itself since that's where we need it, and added it to window for easier (lazier) DX in the story files. Global context seems bad, but I don't know if it's a risk.

@dylankelly I missed the search example 😕 Chromatic wins again

repo: dpc-sdp/ripple


text:
added iobes encoded atis dataset

This adds an IOBES version of the atis dataset.

I have one of these in a custom dataset index and local system (and a driver configuration). Would like to validate that the uploaded one produces same results

repo: dpressel/baseline


text:
Can't formatting over 4 files with .sh script

OS
Windows 11 Pro. WSL 2.
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz   2.80 GHz
RAM 16gb
Dprint version
0.41.0
JSON plugin
https://plugins.dprint.dev/json-0.17.4.wasm
dprint.json
{
  "plugins": [
    "https://plugins.dprint.dev/json-0.17.4.wasm"
  ]
}

My script
# /bin/sh

echo "dprint:"

START=$(date +%s%N)

npx dprint fmt --incremental=false

END=$(date +%s%N)

milliseconds=$((($END - $START)/1000000))

seconds=$(($milliseconds/1000))

minutes=$(($seconds/60))

echo "$milliseconds"
echo "$seconds"
echo "$minutes"

Log
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_1.json
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_2.json
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_3.json
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_4.json
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_5.json
WARNING: Formatting is slow for [my_path]/jsonformat/benches/large-file_6.json
....

I created 100 identical files from https://github.com/Nilstrieb/jsonformat/blob/master/benches/large-file.json.
When I format 4 files everything is fine! But when I try to format more, then I see a WARNING and not one file is formatted.

Can you run with dprint fmt --verbose? For me it formats, but it is very slow for such a large file.

Can you run with dprint fmt --verbose? For me it formats, but it is very slow for such a large file.

dprint:
[VERBOSE] Reading file: /home/doox911/.cache/dprint/cache/plugin-cache-manifest.json
[VERBOSE] Creating directory: /home/doox911/.cache/dprint/cache/locks
[VERBOSE] Checking path exists: [my_private_path]/jsonformat/benches/dprint.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/dprint.json
[VERBOSE] Reading file: /home/doox911/.cache/dprint/cache/plugins/dprint-plugin-json/0.17.4-4.0.0-x86_64-3707102107370057232
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Created instance of dprint-plugin-json in 1ms
[VERBOSE] Globbing: GlobPatterns { includes: Some([GlobPattern { relative_pattern: "**/*.{json,jsonc}", base_dir: CanonicalizedPathBuf { path: "[my_private_path]/jsonformat/benches" } }]), excludes: [GlobPattern { relative_pattern: "!**/node_modules", base_dir: CanonicalizedPathBuf { path: "[my_private_path]/jsonformat/benches" } }] }
[VERBOSE] File(s) matched: GlobOutput { file_paths: ["[my_private_path]/jsonformat/benches/dprint.json", "[my_private_path]/jsonformat/benches/large-file_1.json", "[my_private_path]/jsonformat/benches/large-file_10.json", "[my_private_path]/jsonformat/benches/large-file_100.json", "[my_private_path]/jsonformat/benches/large-file_11.json", "[my_private_path]/jsonformat/benches/large-file_12.json", "[my_private_path]/jsonformat/benches/large-file_13.json", "[my_private_path]/jsonformat/benches/large-file_14.json", "[my_private_path]/jsonformat/benches/large-file_15.json", "[my_private_path]/jsonformat/benches/large-file_16.json", "[my_private_path]/jsonformat/benches/large-file_17.json", "[my_private_path]/jsonformat/benches/large-file_18.json", "[my_private_path]/jsonformat/benches/large-file_19.json", "[my_private_path]/jsonformat/benches/large-file_2.json", "[my_private_path]/jsonformat/benches/large-file_20.json", "[my_private_path]/jsonformat/benches/large-file_21.json", "[my_private_path]/jsonformat/benches/large-file_22.json", "[my_private_path]/jsonformat/benches/large-file_23.json", "[my_private_path]/jsonformat/benches/large-file_24.json", "[my_private_path]/jsonformat/benches/large-file_25.json", "[my_private_path]/jsonformat/benches/large-file_26.json", "[my_private_path]/jsonformat/benches/large-file_27.json", "[my_private_path]/jsonformat/benches/large-file_28.json", "[my_private_path]/jsonformat/benches/large-file_29.json", "[my_private_path]/jsonformat/benches/large-file_3.json", "[my_private_path]/jsonformat/benches/large-file_30.json", "[my_private_path]/jsonformat/benches/large-file_31.json", "[my_private_path]/jsonformat/benches/large-file_32.json", "[my_private_path]/jsonformat/benches/large-file_33.json", "[my_private_path]/jsonformat/benches/large-file_34.json", "[my_private_path]/jsonformat/benches/large-file_35.json", "[my_private_path]/jsonformat/benches/large-file_36.json", "[my_private_path]/jsonformat/benches/large-file_37.json", "[my_private_path]/jsonformat/benches/large-file_38.json", "[my_private_path]/jsonformat/benches/large-file_39.json", "[my_private_path]/jsonformat/benches/large-file_4.json", "[my_private_path]/jsonformat/benches/large-file_40.json", "[my_private_path]/jsonformat/benches/large-file_41.json", "[my_private_path]/jsonformat/benches/large-file_42.json", "[my_private_path]/jsonformat/benches/large-file_43.json", "[my_private_path]/jsonformat/benches/large-file_44.json", "[my_private_path]/jsonformat/benches/large-file_45.json", "[my_private_path]/jsonformat/benches/large-file_46.json", "[my_private_path]/jsonformat/benches/large-file_47.json", "[my_private_path]/jsonformat/benches/large-file_48.json", "[my_private_path]/jsonformat/benches/large-file_49.json", "[my_private_path]/jsonformat/benches/large-file_5.json", "[my_private_path]/jsonformat/benches/large-file_50.json", "[my_private_path]/jsonformat/benches/large-file_51.json", "[my_private_path]/jsonformat/benches/large-file_52.json", "[my_private_path]/jsonformat/benches/large-file_53.json", "[my_private_path]/jsonformat/benches/large-file_54.json", "[my_private_path]/jsonformat/benches/large-file_55.json", "[my_private_path]/jsonformat/benches/large-file_56.json", "[my_private_path]/jsonformat/benches/large-file_57.json", "[my_private_path]/jsonformat/benches/large-file_58.json", "[my_private_path]/jsonformat/benches/large-file_59.json", "[my_private_path]/jsonformat/benches/large-file_6.json", "[my_private_path]/jsonformat/benches/large-file_60.json", "[my_private_path]/jsonformat/benches/large-file_61.json", "[my_private_path]/jsonformat/benches/large-file_62.json", "[my_private_path]/jsonformat/benches/large-file_63.json", "[my_private_path]/jsonformat/benches/large-file_64.json", "[my_private_path]/jsonformat/benches/large-file_65.json", "[my_private_path]/jsonformat/benches/large-file_66.json", "[my_private_path]/jsonformat/benches/large-file_67.json", "[my_private_path]/jsonformat/benches/large-file_68.json", "[my_private_path]/jsonformat/benches/large-file_69.json", "[my_private_path]/jsonformat/benches/large-file_7.json", "[my_private_path]/jsonformat/benches/large-file_70.json", "[my_private_path]/jsonformat/benches/large-file_71.json", "[my_private_path]/jsonformat/benches/large-file_72.json", "[my_private_path]/jsonformat/benches/large-file_73.json", "[my_private_path]/jsonformat/benches/large-file_74.json", "[my_private_path]/jsonformat/benches/large-file_75.json", "[my_private_path]/jsonformat/benches/large-file_76.json", "[my_private_path]/jsonformat/benches/large-file_77.json", "[my_private_path]/jsonformat/benches/large-file_78.json", "[my_private_path]/jsonformat/benches/large-file_79.json", "[my_private_path]/jsonformat/benches/large-file_8.json", "[my_private_path]/jsonformat/benches/large-file_80.json", "[my_private_path]/jsonformat/benches/large-file_81.json", "[my_private_path]/jsonformat/benches/large-file_82.json", "[my_private_path]/jsonformat/benches/large-file_83.json", "[my_private_path]/jsonformat/benches/large-file_84.json", "[my_private_path]/jsonformat/benches/large-file_85.json", "[my_private_path]/jsonformat/benches/large-file_86.json", "[my_private_path]/jsonformat/benches/large-file_87.json", "[my_private_path]/jsonformat/benches/large-file_88.json", "[my_private_path]/jsonformat/benches/large-file_89.json", "[my_private_path]/jsonformat/benches/large-file_9.json", "[my_private_path]/jsonformat/benches/large-file_90.json", "[my_private_path]/jsonformat/benches/large-file_91.json", "[my_private_path]/jsonformat/benches/large-file_92.json", "[my_private_path]/jsonformat/benches/large-file_93.json", "[my_private_path]/jsonformat/benches/large-file_94.json", "[my_private_path]/jsonformat/benches/large-file_95.json", "[my_private_path]/jsonformat/benches/large-file_96.json", "[my_private_path]/jsonformat/benches/large-file_97.json", "[my_private_path]/jsonformat/benches/large-file_98.json", "[my_private_path]/jsonformat/benches/large-file_99.json"], config_files: [] }
[VERBOSE] Finished globbing in 11ms
[VERBOSE] Running for config: [my_private_path]/jsonformat/benches/dprint.json
[VERBOSE] Max threads: 8
Thread count: 7
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/dprint.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_1.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_10.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_100.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_11.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_12.json
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_13.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/dprint.json in 0ms
[VERBOSE] Reading file: [my_private_path]/jsonformat/benches/large-file_14.json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Created instance of dprint-plugin-json in 35ms
[VERBOSE] Created instance of dprint-plugin-json in 28ms
[VERBOSE] Created instance of dprint-plugin-json in 21ms
[VERBOSE] Created instance of dprint-plugin-json in 15ms
[VERBOSE] Created instance of dprint-plugin-json in 8ms
[VERBOSE] Created instance of dprint-plugin-json in 0ms
[VERBOSE] CPU usage: 88%
[VERBOSE] High CPU. Reducing parallelism.
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_12.json in 5386ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_12.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_14.json in 5414ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_14.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_100.json in 5491ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_100.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_13.json in 5542ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_13.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_10.json in 5580ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_10.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_1.json in 5627ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_1.json
[VERBOSE] Formatted file: [my_private_path]/jsonformat/benches/large-file_11.json in 5669ms
[VERBOSE] Ensuring stable format: [my_private_path]/jsonformat/benches/large-file_11.json
[VERBOSE] CPU usage: 88%
[VERBOSE] CPU usage: 16%
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_1.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_10.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_100.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_11.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_12.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_13.json
WARNING: Formatting is slow for [my_private_path]/jsonformat/benches/large-file_14.json
[VERBOSE] CPU usage: 1%
[VERBOSE] Low CPU. Increasing parallelism.
[VERBOSE] CPU usage: 1%
[VERBOSE] CPU usage: 0%

Then the script script freezes and it is clear about the CPU load that there is no work.

Ok, that looks like a dprint bug. Thanks for the output. I'll look into it.

@doox911-opensource I haven't been able to reproduce it yet on multiple machines. When you get a chance, would you be able to try setting the CI env var to 1 (ex. CI=1 npx dprint fmt --verbose --incremental=false)? That will disable CPU throttling. I'm curious if it's caused by that.
If it's too much of an ask, I also wonder if this occurs in dprint 0.39.1 and starts occurring in 0.40.0.

@doox911-opensource I haven't been able to reproduce it yet on multiple machines. When you get a chance, would you be able to try setting the CI env var to 1 (ex. CI=1 npx dprint fmt --verbose --incremental=false)? That will disable CPU throttling. I'm curious if it's caused by that.
If it's too much of an ask, I also wonder if this occurs in dprint 0.39.1 and starts occurring in 0.40.0.

# /bin/sh

echo "dprint:"

START=$(date +%s%N)

CI=1 npx dprint fmt --incremental=false --verbose

END=$(date +%s%N)

milliseconds=$((($END - $START)/1000000))

seconds=$(($milliseconds/1000))

minutes=$(($seconds/60))

echo "$milliseconds"
echo "$seconds"
echo "$minutes"

Result:
doox911@doox911:/mnt/c/Users/[my_private_path]$ ./dprint.sh
dprint:
[VERBOSE] Reading file: /home/doox911/.cache/dprint/cache/plugin-cache-manifest.json
[VERBOSE] Creating directory: /home/doox911/.cache/dprint/cache/locks
[VERBOSE] Checking path exists: /mnt/c/Users/[my_private_path]/dprint.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/dprint.json
[VERBOSE] Reading file: /home/doox911/.cache/dprint/cache/plugins/dprint-plugin-json/0.17.4-4.0.0-x86_64-3707102107370057232
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Created instance of dprint-plugin-json in 1ms
[VERBOSE] Globbing: GlobPatterns { includes: Some([GlobPattern { relative_pattern: "**/*.{json,jsonc}", base_dir: CanonicalizedPathBuf { path: "/mnt/c/Users/[my_private_path]" } }]), excludes: [GlobPattern { relative_pattern: "!**/node_modules", base_dir: CanonicalizedPathBuf { path: "/mnt/c/Users/[my_private_path]" } }] }
[VERBOSE] File(s) matched: GlobOutput { file_paths: ["/mnt/c/Users/[my_private_path]/.prettierrc.json", "/mnt/c/Users/[my_private_path]/dprint.json", "/mnt/c/Users/[my_private_path]/large-file_1.json", "/mnt/c/Users/[my_private_path]/large-file_10.json", "/mnt/c/Users/[my_private_path]/large-file_100.json", "/mnt/c/Users/[my_private_path]/large-file_11.json", "/mnt/c/Users/[my_private_path]/large-file_12.json", "/mnt/c/Users/[my_private_path]/large-file_13.json", "/mnt/c/Users/[my_private_path]/large-file_14.json", "/mnt/c/Users/[my_private_path]/large-file_15.json", "/mnt/c/Users/[my_private_path]/large-file_16.json", "/mnt/c/Users/[my_private_path]/large-file_17.json", "/mnt/c/Users/[my_private_path]/large-file_18.json", "/mnt/c/Users/[my_private_path]/large-file_19.json", "/mnt/c/Users/[my_private_path]/large-file_2.json", "/mnt/c/Users/[my_private_path]/large-file_20.json", "/mnt/c/Users/[my_private_path]/large-file_21.json", "/mnt/c/Users/[my_private_path]/large-file_22.json", "/mnt/c/Users/[my_private_path]/large-file_23.json", "/mnt/c/Users/[my_private_path]/large-file_24.json", "/mnt/c/Users/[my_private_path]/large-file_25.json", "/mnt/c/Users/[my_private_path]/large-file_26.json", "/mnt/c/Users/[my_private_path]/large-file_27.json", "/mnt/c/Users/[my_private_path]/large-file_28.json", "/mnt/c/Users/[my_private_path]/large-file_29.json", "/mnt/c/Users/[my_private_path]/large-file_3.json", "/mnt/c/Users/[my_private_path]/large-file_30.json", "/mnt/c/Users/[my_private_path]/large-file_31.json", "/mnt/c/Users/[my_private_path]/large-file_32.json", "/mnt/c/Users/[my_private_path]/large-file_33.json", "/mnt/c/Users/[my_private_path]/large-file_34.json", "/mnt/c/Users/[my_private_path]/large-file_35.json", "/mnt/c/Users/[my_private_path]/large-file_36.json", "/mnt/c/Users/[my_private_path]/large-file_37.json", "/mnt/c/Users/[my_private_path]/large-file_38.json", "/mnt/c/Users/[my_private_path]/large-file_39.json", "/mnt/c/Users/[my_private_path]/large-file_4.json", "/mnt/c/Users/[my_private_path]/large-file_40.json", "/mnt/c/Users/[my_private_path]/large-file_41.json", "/mnt/c/Users/[my_private_path]/large-file_42.json", "/mnt/c/Users/[my_private_path]/large-file_43.json", "/mnt/c/Users/[my_private_path]/large-file_44.json", "/mnt/c/Users/[my_private_path]/large-file_45.json", "/mnt/c/Users/[my_private_path]/large-file_46.json", "/mnt/c/Users/[my_private_path]/large-file_47.json", "/mnt/c/Users/[my_private_path]/large-file_48.json", "/mnt/c/Users/[my_private_path]/large-file_49.json", "/mnt/c/Users/[my_private_path]/large-file_5.json", "/mnt/c/Users/[my_private_path]/large-file_50.json", "/mnt/c/Users/[my_private_path]/large-file_51.json", "/mnt/c/Users/[my_private_path]/large-file_52.json", "/mnt/c/Users/[my_private_path]/large-file_53.json", "/mnt/c/Users/[my_private_path]/large-file_54.json", "/mnt/c/Users/[my_private_path]/large-file_55.json", "/mnt/c/Users/[my_private_path]/large-file_56.json", "/mnt/c/Users/[my_private_path]/large-file_57.json", "/mnt/c/Users/[my_private_path]/large-file_58.json", "/mnt/c/Users/[my_private_path]/large-file_59.json", "/mnt/c/Users/[my_private_path]/large-file_6.json", "/mnt/c/Users/[my_private_path]/large-file_60.json", "/mnt/c/Users/[my_private_path]/large-file_61.json", "/mnt/c/Users/[my_private_path]/large-file_62.json", "/mnt/c/Users/[my_private_path]/large-file_63.json", "/mnt/c/Users/[my_private_path]/large-file_64.json", "/mnt/c/Users/[my_private_path]/large-file_65.json", "/mnt/c/Users/[my_private_path]/large-file_66.json", "/mnt/c/Users/[my_private_path]/large-file_67.json", "/mnt/c/Users/[my_private_path]/large-file_68.json", "/mnt/c/Users/[my_private_path]/large-file_69.json", "/mnt/c/Users/[my_private_path]/large-file_7.json", "/mnt/c/Users/[my_private_path]/large-file_70.json", "/mnt/c/Users/[my_private_path]/large-file_71.json", "/mnt/c/Users/[my_private_path]/large-file_72.json", "/mnt/c/Users/[my_private_path]/large-file_73.json", "/mnt/c/Users/[my_private_path]/large-file_74.json", "/mnt/c/Users/[my_private_path]/large-file_75.json", "/mnt/c/Users/[my_private_path]/large-file_76.json", "/mnt/c/Users/[my_private_path]/large-file_77.json", "/mnt/c/Users/[my_private_path]/large-file_78.json", "/mnt/c/Users/[my_private_path]/large-file_79.json", "/mnt/c/Users/[my_private_path]/large-file_8.json", "/mnt/c/Users/[my_private_path]/large-file_80.json", "/mnt/c/Users/[my_private_path]/large-file_81.json", "/mnt/c/Users/[my_private_path]/large-file_82.json", "/mnt/c/Users/[my_private_path]/large-file_83.json", "/mnt/c/Users/[my_private_path]/large-file_84.json", "/mnt/c/Users/[my_private_path]/large-file_85.json", "/mnt/c/Users/[my_private_path]/large-file_86.json", "/mnt/c/Users/[my_private_path]/large-file_87.json", "/mnt/c/Users/[my_private_path]/large-file_88.json", "/mnt/c/Users/[my_private_path]/large-file_89.json", "/mnt/c/Users/[my_private_path]/large-file_9.json", "/mnt/c/Users/[my_private_path]/large-file_90.json", "/mnt/c/Users/[my_private_path]/large-file_91.json", "/mnt/c/Users/[my_private_path]/large-file_92.json", "/mnt/c/Users/[my_private_path]/large-file_93.json", "/mnt/c/Users/[my_private_path]/large-file_94.json", "/mnt/c/Users/[my_private_path]/large-file_95.json", "/mnt/c/Users/[my_private_path]/large-file_96.json", "/mnt/c/Users/[my_private_path]/large-file_97.json", "/mnt/c/Users/[my_private_path]/large-file_98.json", "/mnt/c/Users/[my_private_path]/large-file_99.json", "/mnt/c/Users/[my_private_path]/package.json"], config_files: [] }
[VERBOSE] Finished globbing in 13ms
[VERBOSE] Running for config: /mnt/c/Users/[my_private_path]/dprint.json
[VERBOSE] Max threads: 8
Thread count: 7
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/.prettierrc.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/dprint.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_10.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_1.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_100.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_11.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_12.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/dprint.json in 0ms
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/.prettierrc.json in 0ms
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_13.json
[VERBOSE] Reading file: /mnt/c/Users/[my_private_path]/large-file_14.json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Creating instance of dprint-plugin-json
[VERBOSE] Created instance of dprint-plugin-json in 37ms
[VERBOSE] Created instance of dprint-plugin-json in 29ms
[VERBOSE] Created instance of dprint-plugin-json in 23ms
[VERBOSE] Created instance of dprint-plugin-json in 14ms
[VERBOSE] Created instance of dprint-plugin-json in 8ms
[VERBOSE] Created instance of dprint-plugin-json in 1ms
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_10.json in 6465ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_10.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_12.json in 6471ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_12.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_100.json in 6546ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_100.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_14.json in 6578ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_14.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_11.json in 6729ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_11.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_1.json in 6841ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_1.json
[VERBOSE] Formatted file: /mnt/c/Users/[my_private_path]/large-file_13.json in 6958ms
[VERBOSE] Ensuring stable format: /mnt/c/Users/[my_private_path]/large-file_13.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_1.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_10.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_100.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_11.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_12.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_13.json
WARNING: Formatting is slow for /mnt/c/Users/[my_private_path]/large-file_14.json
23096
23
0

There were some memory improvements made in 0.19.2. Not sure if that fixes it, but maybe.
I still haven't been able to reproduce this one. Going to dump the test script I've been using that sets this up so I don't lose it again:
import $ from "jsr:@david/dax@0.39";

const data = await $.request("https://raw.githubusercontent.com/Nilstrieb/jsonformat/master/benches/large-file.json")
  .text();
const tempDir = $.path("tempDir");
tempDir.ensureDirSync();

for (let i = 0; i < 100; i++) {
  tempDir.join("file" + i + ".json").writeTextSync(data);
}

await $`dprint fmt --incremental=false`;

repo: dprint/dprint-plugin-json


text:
fix: ensure large files get formatted

This was just a silly bug I did where I used a method without realizing it was intended to return a buffer that was not the exact size provided, but instead the max size. This didn't previously surface because the editor service used to work in such a way that the buffer sizes would always be small, but now communication is much better which surfaced this issue in the plugin.
Closes #40

Tested on Windows and Mac. I'm able to format large files on Mac now. Windows seems like it could previous format very large files anyway.

repo: dprint/dprint-vscode


text:
Refactor imports

Reconfigure holidays imports:

Unify top level imports style
Limit imports for holiday_base and utils
Reorder country imports
Add Moldova alpha-3 code
Add tests

Coverage: 100.0%. Remained the same when pulling 7d684efbf082adcd299bf0f028f170714b2a1f49 on arkid15r:fix-holidays-imports into 958b51744794eb4dd802a93b74a26335b84b0e99 on dr-prodigy:beta.

repo: dr-prodigy/python-holidays


text:
⚠ gorzdrav.org has degraded performance

In 8507a1d, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 502
Response time: 16496 ms

Resolved: gorzdrav.org performance has improved in fe3b3a5.


text:
Weird Looking Top Right Corner

My Windows version:

My Chrome version:

Example:

As it can clearly be seen on the screenshots, the 3 buttons on the top right corner look out of place.
I literally only installed the theme, nothing else. I've tried to reinstall the theme and the problem remains.
I can give any information desired / needed to get this fixed, I just hope it isn't me being stupid.
Best regards.

Hi
Thanks for the report.
I'll investigate as soon as I can but I'm pretty busy lately, so I can't really say when

Hi
I apologize for the late release but I'm a bit busy with different side projects.
Anyway, I've just released a new version (2.2) which should solve the issue (thanks to sarunasdjacenko merge request).
It should be available once google reviews it

authors: TheForgottened nickimola

repo: dracula/google-chrome


text:
希望改进一下

希望改进一下在classLink回调时不满足bean判断条件的，或retuen null时不显示布局，在设置item count，不是返回mList.size(),而是去除不能满足条件的数据后的count。

感谢建议，但这么做的话，实现起来将特别困难。不显示布局意味着 RecyclerView.Adapter.getItemCount() 方法等都要实时去除无 link item，这很难做到而且也不合理，因此该建议目前看来无法接受，您可以尝试实现并发起 PR，此 issue 暂时关闭。

一旦设置 linker，就必须有 links，如果一个 item 没有 link，那么作为程序库来说，不应该将这个错误湮灭掉不显示 UI，要做也是抛出异常，所以目前 MultiType 那么做并无不妥，而且用户完全可以在找不到 link 时自行抛出异常。或提供默认万能 binder.

最后，在 get item count 方法的实现上也不可能每次去遍历所有 item 是否有 link 然后过滤掉，这么做性能会差很多，而且作为默认行为也是不合理的，外界用户根本不会意料到程序内部有这样的机制，那么当用户传入一个找不到 binder 的 item 时，他会很困惑获得的结果。因此你的这个诉求和建议并不太合理。

感谢大佬 答疑解惑

authors: Antine drakeet

repo: drakeet/MultiType


text:
Fix Rake warning in CI

The rake executable in the rake gem is being loaded, but it's also present in other gems (draper).
Draoer doesn't provide any executable, and if it did, it should go in 'exe' dir.
Fix this warning in CI :
The `rake` executable in the `rake` gem is being loaded, but it's also present in other gems (draper).
If you meant to run the executable for another gem, make sure you use a project specific binstub (`bundle binstub <gem_name>`).
If you plan to use multiple conflicting executables, generate binstubs for them and disambiguate their names.

ping @codebycliff

ping @codebycliff

Ping @codebycliff

Ping @codebycliff

Hi there! Any news? @codebycliff

Hi there! Any news? @codebycliff

ping @codebycliff I'd like to see this merged before working on Ruby 3 compat.

ping @codebycliff I'd like to see this merged before working on Ruby 3 compat.

@codebycliff thank you! 👍

@codebycliff thank you! 👍

repo: drapergem/draper


text:
🛑 api.drawbeat.com is down

In 5fa21f1, api.drawbeat.com (https://api.drawbeat.com/v1/auth/me) was down:

HTTP code: 0
Response time: 0 ms

Resolved: api.drawbeat.com is back up in fb316c1.

repo: drawbeat/upptime


text:
Horizontal flip on COCO

The pre-trained model COCO2014_CLIP_ViT32_all_text_FID.pkl has the 'xflip': True. So, could I assume that to achieve the score in the paper we use horizontal flip but no other augmentation?
Then, --mirror should be added in the command line, I assumed.

However, I found that, when we use preprocessed clip features, it overrides not to use xflip as in :
https://github.com/drboog/Lafite/blob/main/training/dataset.py#L131

Yes, the pre-trained model we uploaded used "--mirror=1", and no other data augmentation;
I think whether horizontal flip improves the result is dataset-dependent. But to achieve the results in the paper, this is not necessary. We found that we can achieve better results than what we reported in the paper by tuning "--itc" and "--itd", and double training iterations (we haven't update results in the paper).
When you pre-process the dataset, you can also use augmentation before extracting features. I didn't do that because I think horizontal flip will not influence the semantic meaning too much. More importantly,  we will heavily noise the image features to generate fake text features, the impact of augmentation before extracting image feature will be cancelled I think.

@drboog What am I asking is the standard setting, which uses text features, not pseudos. Actually, I reimplemented the Lafite myself, and I stuck around FID=15 under the setting of no aug, from-scratch for COCO. Although they are minor differences, I believe the others are minor. In this setting, a horizontal flip might help.

Image feature is not used in the standard setting loss, are you using it? Also, may I ask how many kimg have you trained?

Also, how many GPUs are you using. According to my experience, itc, itd and gamma matters much more.

I am training with the same hyperparams using your code, for COCO, ~17 FID at 3000 kimg. I believe it's okay.
The problem is my own, for my own implementation to reproduce.
I am reading images from the filesystem which is roughly ~10-15% slow for my environment. 4 GPUs, each has a batch size of 16. I believe it's the same setting. The different things are:

In your code, for contrastive loss, after gathering, don't backpropagate errors into different ranks (Ref), but I revised it. I believe this will impact the hyperparameters, since the gradients are 4x (the world size) bigger now in the fixed version, but I'm not sure to use 2.5 instead of 10 for itc and itd.
Using the exponential moving average of the generator G_ema is critical to achieving the FID?

Actually, I tried different ways to implement the contrastive loss, including whether to compute the contrastive loss across different GPUs, and whether to use a randomly sampled subset of 64 (4*16) to compute the denominator.
I quickly tuned the hyper-parameters on a smaller model size, and found that current implementation obtains best results.
I think other implementations may be able to obtain comparable results, but we have to carefully re-tune the hyper-parameters like temperature (temp), itd, itc, etc.
I think moving average is important.

Yeah, the contrastive loss with all_gather is tricky, especially for variable-GPU consistency. I should try G_ema.

authors: drboog jnhwkim

repo: drboog/Lafite


text:
fix(presenter): design fixes

🍰 Pullrequest

Fixes design and layout bugs.
Issues

fixes #129
fixes #152

Todo

[x] check safari issues and make sure they are fixed
[x] fix href scroll offset
[x] get rid of small line, below video slider
[x] focus inputs after href click #184

Singular Plural

There is a hydration error regarding z-index, which might be fixable:

Server: z-index:1006;
Client: z-index:1004;

There is a hydration error regarding z-index, which might be fixable:
Server: z-index:1006; Client: z-index:1004;

i'll have a closer look again tomorrow. but could be a possible vuetify bug?
see: https://github.com/vuetifyjs/vuetify/issues/19002

authors: maeckes-infinitylabs ulfgebhardt


text:
BotoServerError: 400 Bad Request

When using the code in your docs to register a device, I have no problem registering a new device. However, I'm running into a problem where if I log out and log back in as a different user, I get the following error.
{"Error":{"Code":"InvalidParameter","Message":"Invalid parameter: Token Reason: Endpoint arn:aws:sns:us-east-1:339077083280:endpoint/XXXXXXXX already exists with the same Token, but different attributes.","Type":"Sender"},"RequestId":"XXXXXXXX"}

I got rid of the custom user attributes and I'm just passing along the token to sns_device.register_or_update like so:
sns_device.register_or_update(new_token=token)

but I'm still getting the same error. Thanks for the help!

Did you delete the device from SNS? Otherwise it still exists with the custom attributes. This is a really nasty behaviour of SNS.
What you could do is:
SNSDevice(platform,token,arn).delete()

And the recreate it.
Please let me know if it solved your problem or if you have anymore questions .

Closing the ticket cause of no reaction

authors: choiway melbic

repo: dreipol/django-scarface


text:
Use th-abstraction

I've switched over a bunch of Template Haskell-heavy libraries recently to depend on th-abstraction, which takes care of the fiddly details of reifying datatypes across multiple versions of GHCs. generic-deriving would also benefit from this, so let's do so.

Fun fact: while in the process of working on this, I discovered a th-abstraction bug: https://github.com/glguy/th-abstraction/issues/46

repo: dreixel/generic-deriving


text:
Redirect on permission denied

When a call is made that returns an authentication error, the frontend should redirect to the login page.

Also check whether the global error handler receives a 404 redirect to login.

Newly introduced functionality will redirect to the login page in case a call to our backend fails with a 401
The redirct includes the URL to the previously visited page if and only if it was not already the login page. Hopefully this fits your needs

Apparently, the current mechanism in place is not as reliable as originally expected.

authors: lucaro sauterl

repo: dres-dev/DRES


text:
use oauth access token.

How can i use the oauth access token as api key? I keep getting that its an invalid key.

Is this the same issue as #214 ?

Closing for now. Feel free to reopen if it becomes relevant again.

authors: drewm sweebee

repo: drewm/mailchimp-api


text:
Prepare support for specifying “last” as page number

Add support for specifying the special page number “last”.
These changes only allow specifying this special page number without it being converted to an integer. The actual handling of loading the last page will be implemented in Scrivener.Ecto

Thanks for the pull request. I need to mull this over a bit and decide if it is something I want to include. Give me a few days.

@drewolson did you have time to consider this?
I really need an option to link to the last page of a list of entries in one of the apps where I'm using scrivener

I'm still not sure. I can understand the desire but I'm also weighing the complexity of special-casing a value.

After thinking about this, I feel like we should just use the already-exposed value total_pages. If you'd like to jump to the last page, simply set the page number for the value in total_pages.

The problem with that approach is that you basically have to build your query twice.
Once to be able to get the total pages, then again to get the actual query with the page you're interested in:
base_query =
  Comment
  |> Comment.newest
total_pages_query =
  base_query
  |> Repo.paginate(page: 1)
comments =
  base_query
  |> Repo.paginate(page: total_pages_query.total_pages)

This approach quickly becomes messy and it is not very optimal since it results in extra queries to the db, since you have to resolve the number of pages both for the first query and the second.
Scrivener already knows everything it needs to know for getting the last page of the result set after resolving the total number of pages the first time and would be able to much more cleanly and optimally do this.

authors: dipth drewolson

repo: drewolson/scrivener


text:
srcDir config option not working

Steps to reproduce:
ionic start temp --v2
cd ionic temp
ionic serve

// All is good.  Now cancel the serve process and rename the src dir
mv src src1

// Serve again with the srcDir flag
ionic serve --srcDir src1

// It's picking up on the new source location, but failing to locate the main.js entry point

@ionic/app-scripts version: 1.1.0
ionic cli version: 2.2.1

Problem solved.  The issue is not with app-scripts.  The issue is the tsconfig.json file generated by the cli.  An include property is set up there and the default glob value is src/**/*.ts.  It's working for me when I either change this glob or completely remove the property.  Perhaps the cli should completely remove this property.

repo: driftyco/ionic-app-scripts


text:
How to add parameters in tab

From @zengchuan on December 20, 2015 11:23
I want to use params in tab. How to do?
<ion-tab tab-title="Angular2"  [root]="RootComp" [params]="{}">
Copied from original issue: driftyco/ionic2#782

From @ivanbtrujillo on December 21, 2015 10:10
hi @zengchuan, i think here is not the right place for doubts. If you have a question, you can ask on the ionic-worldwide slack group. The ionic developers answers really fast and you can talk with other developers that are making the same things like you. Also, you have the ionic2 section on the Ionic Forum.

@zengchuan Closing, this issue is there to add this feature: https://github.com/driftyco/ionic/issues/5172

authors: brandyscarney mhartington

repo: driftyco/ionic


text:
v2 inset list - documentation

On http://ionicframework.com/docs/v2/components/#inset-list it says
"By default, lists have an outside margin, to remove that add the inset property to make the list flush with the parent container."
I may be reading the documentation wrong, but pretty sure that currently by default there is NO margin, and if you add the inset property, a margin is added
i.e. functionality is good, but documentation is back to front.

Updated via https://github.com/driftyco/ionic-site/commit/8f0f0198a85b7efa0ead98e8f792e1e8a18afcb2

authors: alexbainbridge mhartington


text:
Loading component is not working inside Modal Page.

In my page, I've a search button. If i click that search button, I'm showing up one modal (Modal Component) page and displaying data which are retrieved from an  API. But it took some time to display data from an API. So I tried to use Loading component in Modal page. But it is not working as I expected.
I've already used one loading component in my root page. It is working.
The issue is loading component is not working in Modal page..

Hello! Would you mind sharing a repo or code snippet i can use to reproduce this issue? Thanks for using Ionic!

Code snippet:
I have used ModalPage in same MyPage.ts file. I mean I didn't create new ts file for Modal Page.
MyPage.ts
export class MyPage implements OnInit{

   public openModal(): any{
        let modal Modal = this,modalCtrl.create(ModalPage, this.myParam);
    }
}
export class ModalPage implements OnInit{

 let loading: Loading = this.loadingController.create({
      content: 'Loading..',
    });

 setTimeout(
      () => {
        loading.dismiss();
      },
      4000
    );
}

MyPage.html:
<ion-buttons end>
      <button (click)="openModal()">
        <ion-icon name="search"></ion-icon>
      </button>
    </ion-buttons>

Hmm, from looking at your code sample above it does not look like you are presenting the modal. Would you try this please?
 let loading = this.loadingCtrl.create({
     content: 'Loading...'
 });
 loading.present()

Thanks for using Ionic!

I already added loading.present() in my code. I forget to add in above code snippet.

Are you presenting the loading component in an ionic lifecycle event or in OnInit?

I used it in ngOnInit method.

Ahh that is the issue. The ngOnInit angular lifecycle event actually fires way before the ui of the component is loaded and ready to go. Because of this you cannot do ui related things such as opening a loading component in ngOnInit. We recommend using our lifecycle events in Ionic 2 apps. Specifically, for anything ui related you would want to put the logic in the ionViewDidEnter event. Thanks for using Ionic!

Great thanks to you.. It is working perfectly.....


text:
unique constraint create error

a table can have a unique constraint with more than 1 column . but it will output unique constraint for each column. it should output one constraint with all column which have same constraint name.  and a column can be used by 2 unique constraint too.

Oh, I did not notice of this, will fix as below:
tb.column("xxx").unique()  ---> use automatic generated unique constraint name for this column
tb.column("xxx").unique("somename")  ---> use "somename" as the unique constraint name if database supports, if "somename" used by many columns in same table, will create only 1 compound unique constraint with name "somename" includes these columns.  very similar like index.

OK，good news。
would you update the artifact in maven repository after fix it？

Will update maven repository but will take some days because I'm kind of busy now

Updated and released.

ok unique index fixed. but a column can only have one unique constraint？I have checked，a column can have more than one unique constraint。would you like to check it ？

Hi Hero-Rambo,
The update allow one column have many unique constraint, see below code:
Table t2 = new Table("orders");
t2.column("name2").STRING(20).unique("A");
t2.column("email2").STRING(20).unique("A", "B", "C");
String[] dropAndCreateDDL = Dialect.H2Dialect.toDropAndCreateDDL( t2);
result:
...
alter table orders add constraint A unique (name2,email2)
alter table orders add constraint B unique (email2)
alter table orders add constraint C unique (email2)

OK
thanks for your job.
I will  check it next week.

Forgot to close this issue.


text:
Why are all events null ??

The offending code:
listeners[event][i].call(self)

does not send any event. The result is, any code like
				var request = new XMLHttpRequest();
				request.open( 'GET', url, true );

				request.addEventListener( 'load', function ( event ) {

					var response = event.target.response;

throws up.

so far had to use patched copy with
listeners[event][i].call(self, { target: { response: self.responseText } });

but please make the proper fix 😭

repo: driverdan/node-XMLHttpRequest


text:
[BUG]: New Primary key function (ORM: 0.29.0 / Kit: 0.20.2) / "name" proprety not working

Drizzle ORM: 0.29.0
Drizzle Kit: 0.20.2
I reproduced the example on the doc with Composite Primary Key and the "name" parameter doesn't seem to work:
import { serial, text, integer, primaryKey, pgTable } from "drizzle-orm/pg-core";

export const user = pgTable("user", {
	id: serial("id").primaryKey(),
	name: text("name"),
});

export const book = pgTable("book", {
	id: serial("id").primaryKey(),
	name: text("name"),
});

export const booksToAuthors = pgTable("books_to_authors", {
	authorId: integer("author_id"),
	bookId: integer("book_id"),
}, (table) => {
	return {
		pkWithCustomName: primaryKey({ name: 'custom_name', columns: [table.bookId, table.authorId] }),
	};
});

Produced the following migration:
CREATE TABLE IF NOT EXISTS "book" (
	"id" serial PRIMARY KEY NOT NULL,
	"name" text
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "books_to_authors" (
	"author_id" integer,
	"book_id" integer,
	CONSTRAINT books_to_authors_book_id_author_id PRIMARY KEY("book_id","author_id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "user" (
	"id" serial PRIMARY KEY NOT NULL,
	"name" text
);

I expect the constraint name to be "custom_name" instead of "books_to_authors_book_id_author_id"

should not be an issue on latest(0.30.0+), if it's still an issue - please reopen

authors: AndriiSherman antoinerochat

repo: drizzle-team/drizzle-orm


text:
package com.github.droibit.android.reactnative.customtabs does not exist

Please add to documentation:
dependencies {
...
    compile project(':react-native-custom-tabs')
...
}

I have the same problem, any idea?

Hello,
Also in settings.gradle:

Hello,
Please also add:
in settings.gradle
include ':react-native-custom-tabs'
project(':react-native-custom-tabs').projectDir = file('../node_modules/react-native-custom-tabs/android')

when using in react-native code:
import { CustomTabs } from 'react-native-custom-tabs';

authors: MelanieJourne krisidmisso mossiiiiiii

repo: droibit/react-native-custom-tabs


text:
非SpringBoot环境使用报错

com.yomahub:liteflow-core:2.6.7 版本。
非Spring环境使用。
[INFO]2022-01-04 15:47:23.735 [main] com.yomahub.liteflow.core.FlowExecutor - flow info loaded from local file,path=config/flow.xml,format type=xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/util/Assert
at com.yomahub.liteflow.parser.FlowParser.matchRuleResources(FlowParser.java:71)
at com.yomahub.liteflow.parser.LocalXmlFlowParser.parseMain(LocalXmlFlowParser.java:25)
at com.yomahub.liteflow.core.FlowExecutor.init(FlowExecutor.java:102)
at cn.text.shop.jwest.TestFlowLite.main(TestFlowLite.java:17)
Caused by: java.lang.ClassNotFoundException: org.springframework.util.Assert
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
虽然引入org.springframework:spring-context:5.3.14 可以解决以上问题，但非Spring环境应能不依赖Spring framework相关组件。

此问题在v2.6.11之后的版本已经支持

repo: dromara/liteflow


text:
Fix RCC_PLLCFGR register fixup for F4s

Call rcc::fix_2 on those F4 processors which have the RCC PLLCFGR field splitout by bit for the PLLM, PLLN, PLLP, and PLLQ fields.

Thanks for your contribution!

authors: dhylands valff


text:
Debug output, tests and mixlib/shellout

So this started as me trying to cleanup logging and turned into a little more.
I also decided to replace backticks for executing shell commands with mixlib/shellout because that made testing of logging easier as well as doing the following for me which I was previously "doing by hand":

Capture stdout
Capture stderr
Access return code from command

I added some additional unit tests, mainly around the logging.
Finally I added some super basic integration testing.  I created a Rakefile that will attempt to upload a simple cookbook to a supermarket.  It'll read values from ENV to know what server, user and key to use.

LGTM

LGTM

authors: jackspirou jmccann tboerger

repo: drone-plugins/drone-chef


text:
Feature Request -  Implement Catlight.io protocol

Heya,  I recently discovered a CI monitor called Catlight that is really cool and allows communication amongst the team.  It implements a new protocol that aims to replace the cc.xml from cruise control.  It would be quite nice if this protocol would be implemented in Drone.  More information is https://blog.catlight.io/post/158337666873/open-protocol-for-integration-with-continuous

hey there, this came up previously. It must have been discussed in our chatroom because I cannot find an existing issue. The tldr is that the protocol may be open, but the client is proprietary and there are no open source reference implementations available. For this reason, it is not something we plan to implement in Drone. Sorry to disappoint !!!

authors: bradrydzewski dijitalmunky

repo: drone/drone


text:
Excessive Delay when polling vehicle.attitude, etc.

I am working on a multi-agent fixed wing UAV formation project. The agents share information over UDP broadcast via a raspberry pi v3B. In the main control thread, I poll various attributes (attitude, position, channels, etc) and am using roll angle as a test case for debugging.
I have found (by profiling) that  the program spends the overwhelming majority of time waiting (to have a reasonable sampling time). This is expected.  I have found that as the other threads consume resources (not many resources,  but some), the reads, to, say, vehicle.attitude.roll produce values that are delayed by up to about 1.5 seconds. The resulting values are generally unique, but lag behind real-time by  that amount.
I dug into the code, and it looks like a queue is being used in mavlink.py to get messages from pymavlink to dronekit. I suspect this queue is not being emptied fast enough. If this is, in fact, a likely cause, what is the cleanest way manually process all messages in this queue to get real-time data into the vehicle object?

Please delete; wrong account.

repo: dronekit/dronekit-python


text:
Add all changes needed to support windows dk installer.

See #268.
Rebases onto master. Re-runs tests.

@tcr3dr So this is in master - when will it go live?

@hamishwillee Needs another publish. I can make that happen tomorrow.

@tcr3dr Thanks. I hope to update the docs a little more in line with addition of #271.


text:
Upgraded to .NET Core 5.0

Description

Upgraded the project to .NET 5.0
Added option to prompt the user for API Key (rather than having to edit the code)
Deleted test files/folder after uploading.
Delete test files/folder during startup in case they were not deleted during a previous run.
Added method PathExists to determine whether a path in Dropbox exists.

Checklist

General Contributing

[x] Have you read the Code of Conduct and signed the CLA?

Is This a Code Change?

[ ] Non-code related change (markdown/git settings etc)
[ ] SDK Code Change
[x] Example/Test Code Change

Validation

[x] Does this code build successfully?
[x] Do all tests pass?
[x] Does Stylecop pass?

Thanks for putting this together! I'll ask the team to review this.

I am updating the PR to include the OAuthPKCE project and then modify the respective Program.cs files to match as closely as possible, except for the relevant differences in approaches.

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

authors: CLAassistant MarkMichaelis greg-db

repo: dropbox/dropbox-sdk-dotnet


text:
#1289: Enabling configuration option for caching of Mustache Views

Solves 1289.

Coverage decreased (-0.02%) to 81.966% when pulling 39303e4f50d50c35525c51532c3dcc9a55e900e4 on lefloh:1289 into 668b356ce3ea88e6892fcbdcf0bf25830f76e9a2 on dropwizard:master.

Thanks for your contribution!

authors: arteam coveralls lefloh

repo: dropwizard/dropwizard


text:
Wrong Label in CsvReporter

The labels in CsvReporter.Java at lines 175 and 214 are mistaken.
At 175 is says:
"count,max,mean,min,stddev,p50,p75,p95,p98,p99,p999,mean_rate,m1_rate,m5_rate,m15_rate,rate_unit,duration_unit"
There the header p50 does not actually exists. The values used for it is median snapshot.getMedian(). Finally the heder should be:
"count,max,mean,min,stddev,median,p75,p95,p98,p99,p999,mean_rate,m1_rate,m5_rate,m15_rate,rate_unit,duration_unit"
The same at line 214 with the header p50.

I think that's intended to use P50 instead of median to have it as a sequence P50, P75, ....

Right. Anyway, this change would be incompatible, so let's keep it as it is, unless there a big amount of requests to change it for the 4.0 version.

authors: arteam husseincoder joebrassi

repo: dropwizard/metrics


text:
Error in processing raw pdb data into associated pair files

After download raw pdb file, I get protein sturcutre data like this
raw/pdb/00/pdb100d.ent.gz
raw/pdb/00/pdb200d.ent.gz
...
raw/pdb/01/pdb101d.ent.gz
...
But after run python src/make_dataset.py ./data/DIPS/raw/pdb ./data/DIPS/interim
I got follow information
2020-06-11 16:06:43,235 INFO 5846: making final data set from interim data
2020-06-11 16:06:43,513 INFO 5846: 0 requested keys, 0 produced keys, 0 work keys
2020-06-11 16:06:43,513 INFO 5846: Getting filenames...
2020-06-11 16:06:43,513 INFO 5846: Getting complexes...
2020-06-11 16:06:43,514 INFO 5846: 0 requested keys, 0 produced keys, 0 work
I wonder if I miss something to do. I can reprocessing DB5 dataset successfully, and I find the file format of DB5 is .pdb and .ent for DIPS.

Looks like I gave the wrong link for the rsync, sorry about that!
The following should get you the files in .pdb.gz format, which should work.
rsync -rlpt -v -z --delete --port=33444 \
rsync.rcsb.org::ftp_data/biounit/coordinates/divided/ ./data/DIPS/raw/pdb

Thank you for your
reply

authors: HantaoShu raphtown

repo: drorlab/DIPS


text:
Add drupal9 project type, fixes #2119, fixes #2029

The Problem/Issue/Bug:
Drupal 9 beta 1 is out, it's time for explicit support of D9
How this PR Solves The Problem:
Add drupal9 support and tests
Manual Testing Instructions:
Create a drupal9 site and test its behavior
Automated Testing Overview:
Added a full stanza for d9 testing
Improved TestAppTypeDetection
Related Issue Link(s):
See linked issues.
Release/Deployment notes:

Great, @rfay
I've seen the changes in the commit https://github.com/drud/ddev/commit/1c1a287d8d391bd91189266dcda4c8db59459762
No need to add all the requirements for specific MariaDB version, etc.
Thanks!

I guess I don't understand your comment @alesrebec - Drupal 9 requires MariaDB 10.3, as you know, and the ddev default is 10.2. That's why if you use project type drupal9 it sets the default mariadb version to 10.3

Sorry for the ambiguity.
My point was exactly that. No need to specify mariadb version with this included in the commit. ;)

authors: alesrebec rfay

repo: drud/ddev


text:
manage overshadowing efficiently at coordinator

follow up on...
https://github.com/druid-io/druid/pull/3499 and
https://github.com/druid-io/druid/pull/3048
this patch enables to discover overshadowed segments as early as possible and never assign them to historical node leading to unnecessary loading and dropping.
Also, coordinator exposes another "enable" endpoint which enables all non-overshadowed segments for a given dataSource, doc for same is updated.

@nishantmonu51 yes that test case is covered in DruidCoordinatorCleanupOvershadowedTest .

👍

authors: cheddar himanshug

repo: druid-io/druid