ManagedIdentityCredential does not fail fast which results in user experience of the DAC to be degraded since it is not at the end

Since ManagedIdentityCredential is no longer at the end of the chain of credentials, if it is not setup correctly and is guaranteed to fail due to a setup issue, it takes a long time before the DefaultAzureCredential moves to the next credential to try, which might have a better chance succeeding (i.e. AzureCliCredential).
This applies to the imds credential, within the set of ManagedIdentityCredential.
cc @antkmsft, @scottaddie

Just listing potentional options, other than removing retries, reducing HTTP request timeout, adding support to ping an IP address, could be to drop IMDS when it is a part of a chained credential.

2 optimizations are missing from the current C++ implementation.

On subsequent instantiations of DAC, we go directly to the known successful credential
1-second timeout on IMDS

Current timings - it still may take up to 90 seconds to get the token from AzureCliCredential via DefaultAzureCredential - and while this is the case, I would not use it in our samples (#5133).
I took this program:
#include <azure/core/diagnostics/logger.hpp>
#include <azure/core/internal/environment.hpp>
#include <azure/identity/default_azure_credential.hpp>

#include <chrono>
#include <iostream>
#include <memory>

int main()
{
  // Uncomment the code line below if you want no logging.
  // Otherwise, make sure that you have AZURE_LOG_LEVEL=verbose set in the environment.
  //Azure::Core::Diagnostics::Logger::SetListener(nullptr);

  // Unset all the variables that other credentials read from, to make sure DefaultAzureCredential
  // falls into AzureCliCredential.
  Azure::Core::_internal::Environment::SetVariable("AZURE_AUTHORITY_HOST", "");
  Azure::Core::_internal::Environment::SetVariable("AZURE_CLIENT_CERTIFICATE_PATH", "");
  Azure::Core::_internal::Environment::SetVariable("AZURE_CLIENT_ID", "");
  Azure::Core::_internal::Environment::SetVariable("AZURE_CLIENT_SECRET", "");
  Azure::Core::_internal::Environment::SetVariable("AZURE_FEDERATED_TOKEN_FILE", "");
  Azure::Core::_internal::Environment::SetVariable("AZURE_TENANT_ID", "");
  Azure::Core::_internal::Environment::SetVariable("IDENTITY_ENDPOINT", "");
  Azure::Core::_internal::Environment::SetVariable("IDENTITY_HEADER", "");
  Azure::Core::_internal::Environment::SetVariable("IDENTITY_SERVER_THUMBPRINT", "");
  Azure::Core::_internal::Environment::SetVariable("IMDS_ENDPOINT", "");
  Azure::Core::_internal::Environment::SetVariable("MSI_ENDPOINT", "");
  Azure::Core::_internal::Environment::SetVariable("MSI_SECRET", "");

  const auto cred = std::make_shared<Azure::Identity::DefaultAzureCredential>();
  try
  {
    Azure::Core::Credentials::TokenRequestContext trc;
    trc.Scopes.push_back("https://vault.azure.net/.default");
    auto const before = std::chrono::steady_clock::now();
    static_cast<void>(cred->GetToken(trc, Azure::Core::Context::ApplicationContext));
    auto const after = std::chrono::steady_clock::now();
    std::cout << "\n\n-=-=-= Time: "
              << std::chrono::duration_cast<std::chrono::seconds>(after - before).count()
              << " seconds. =-=-=-\n";
  }
  catch (std::exception const& ex)
  {
    std::cout << "\n\n-=-=-= Exception thrown: =-=-=-\n"
              << ex.what() << "\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n";
  }
}

Before the change to put AzureCliCredential past the ManagedIdentityCredential (the latest released GA version as of today, 1.5.1 from July 6th):
[2023-11-10T05:46:16.4215790Z] DEBUG : Identity: Creating DefaultAzureCredential which combines mutiple parameterless credentials into a single one.
DefaultAzureCredential is only recommended for the early stages of development, and not for usage in production environment.
Once the developer focuses on the Credentials and Authentication aspects of their application, DefaultAzureCredential needs to be replaced with the credential that is the better fit for the application.
[2023-11-10T05:46:16.4223744Z] WARN  : Identity: EnvironmentCredential was not initialized with underlying credential.
[2023-11-10T05:46:16.4229198Z] DEBUG : Identity: EnvironmentCredential: Both 'AZURE_TENANT_ID' and 'AZURE_CLIENT_ID', and at least one of 'AZURE_CLIENT_SECRET', 'AZURE_CLIENT_CERTIFICATE_PATH' needs to be set. Additionally, 'AZURE_AUTHORITY_HOST' could be set to override the default authority host. Currently:
 * 'AZURE_TENANT_ID' is NOT set
 * 'AZURE_CLIENT_ID' is NOT set
 * 'AZURE_CLIENT_SECRET' is NOT set
 * 'AZURE_CLIENT_CERTIFICATE_PATH' is NOT set
 * 'AZURE_AUTHORITY_HOST' is NOT set
[2023-11-10T05:46:16.4236145Z] INFO  : Identity: AzureCliCredential created.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T05:46:16.4243273Z] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2019 source.
[2023-11-10T05:46:16.4246355Z] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2017 source.
[2023-11-10T05:46:16.4249175Z] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Cloud Shell source.
[2023-11-10T05:46:16.4251736Z] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Azure Arc source.
[2023-11-10T05:46:16.4254313Z] INFO  : Identity: ManagedIdentityCredential will be created with Azure Instance Metadata Service source.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T05:46:16.4415215Z] INFO  : Identity: DefaultAzureCredential: Created with the following credentials: EnvironmentCredential, AzureCliCredential, ManagedIdentityCredential.
[2023-11-10T05:46:16.4421505Z] WARN  : Identity: EnvironmentCredential authentication unavailable. See earlier EnvironmentCredential log messages for details.
[2023-11-10T05:46:16.4455210Z] DEBUG : Identity: DefaultAzureCredential: Failed to get token from EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
[2023-11-10T05:46:19.7327602Z] INFO  : Identity: DefaultAzureCredential: Successfully got token from AzureCliCredential.

-=-=-= Time: 3 seconds. =-=-=-

C:\src\azure-sdk-for-cpp\out\build\x64-static-debug-perftests\sdk\identity\azure-identity\samples\default_azure_credential_sample.exe (process 44832) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

After the change to put AzureCliCredential after the ManagedIdentityCredential (starting 1.6.0-beta.2)  - 92 seconds:
[2023-11-10T04:57:15.7754302Z T: de8] DEBUG : Identity: Creating DefaultAzureCredential which combines mutiple parameterless credentials into a single one.
DefaultAzureCredential is only recommended for the early stages of development, and not for usage in production environment.
Once the developer focuses on the Credentials and Authentication aspects of their application, DefaultAzureCredential needs to be replaced with the credential that is the better fit for the application.
[2023-11-10T04:57:15.7760960Z T: de8] WARN  : Identity: EnvironmentCredential was not initialized with underlying credential.
[2023-11-10T04:57:15.7765478Z T: de8] DEBUG : Identity: EnvironmentCredential: Both 'AZURE_TENANT_ID' and 'AZURE_CLIENT_ID', and at least one of 'AZURE_CLIENT_SECRET', 'AZURE_CLIENT_CERTIFICATE_PATH' needs to be set. Additionally, 'AZURE_AUTHORITY_HOST' could be set to override the default authority host. Currently:
 * 'AZURE_TENANT_ID' is NOT set
 * 'AZURE_CLIENT_ID' is NOT set
 * 'AZURE_CLIENT_SECRET' is NOT set
 * 'AZURE_CLIENT_CERTIFICATE_PATH' is NOT set
 * 'AZURE_AUTHORITY_HOST' is NOT set
[2023-11-10T04:57:15.7769913Z T: de8] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2019 source.
[2023-11-10T04:57:15.7772761Z T: de8] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2017 source.
[2023-11-10T04:57:15.7775543Z T: de8] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Cloud Shell source.
[2023-11-10T04:57:15.7779169Z T: de8] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Azure Arc source.
[2023-11-10T04:57:15.7782323Z T: de8] INFO  : Identity: ManagedIdentityCredential will be created with Azure Instance Metadata Service source.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T04:57:15.7915235Z T: de8] INFO  : Identity: AzureCliCredential created.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T04:57:15.7920916Z T: de8] INFO  : Identity: DefaultAzureCredential: Created with the following credentials: EnvironmentCredential, WorkloadIdentityCredential, ManagedIdentityCredential, AzureCliCredential.
[2023-11-10T04:57:15.7923573Z T: de8] WARN  : Identity: EnvironmentCredential authentication unavailable. See earlier EnvironmentCredential log messages for details.
[2023-11-10T04:57:15.8137259Z T: de8] DEBUG : Identity: DefaultAzureCredential: Failed to get token from EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
[2023-11-10T04:57:15.8149043Z T: de8] DEBUG : Identity: DefaultAzureCredential: Failed to get token from WorkloadIdentityCredential: WorkloadIdentityCredential authentication unavailable. Environment variables are not fully configured.
[2023-11-10T04:57:15.8180667Z T: de8] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : 4f38a4d4-5885-4e61-8785-a079164e9ca9
[2023-11-10T04:57:15.8320146Z T: 80fc] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T04:57:15.8323510Z T: 80fc] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T04:57:15.8337171Z T: 80fc] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T04:57:36.8682879Z T: 80fc] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T04:57:36.8718612Z T: 80fc] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T04:57:36.8825017Z T: de8] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T04:57:36.8847740Z T: de8] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T04:57:36.8870280Z T: de8] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T04:57:36.8892456Z T: de8] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T04:57:36.8917948Z T: de8] INFO  : HTTP Retry attempt #1 will be made in 640ms.
[2023-11-10T04:57:37.5468817Z T: de8] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : 4f38a4d4-5885-4e61-8785-a079164e9ca9
[2023-11-10T04:57:37.5497010Z T: 82c8] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T04:57:37.5515521Z T: 82c8] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T04:57:37.5527899Z T: 82c8] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T04:57:58.6030933Z T: 82c8] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T04:57:58.6061336Z T: 82c8] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T04:57:58.6164952Z T: de8] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T04:57:58.6188388Z T: de8] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T04:57:58.6212438Z T: de8] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T04:57:58.6236175Z T: de8] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T04:57:58.6254962Z T: de8] INFO  : HTTP Retry attempt #2 will be made in 1730ms.
[2023-11-10T04:58:00.3586562Z T: de8] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : 4f38a4d4-5885-4e61-8785-a079164e9ca9
[2023-11-10T04:58:00.3627486Z T: 80fc] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T04:58:00.3655254Z T: 80fc] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T04:58:00.3682715Z T: 80fc] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T04:58:21.3981242Z T: 3cfc] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T04:58:21.4012302Z T: 3cfc] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T04:58:21.4073332Z T: de8] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T04:58:21.4086229Z T: de8] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T04:58:21.4093600Z T: de8] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T04:58:21.4096299Z T: de8] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T04:58:21.4098915Z T: de8] INFO  : HTTP Retry attempt #3 will be made in 2869ms.
[2023-11-10T04:58:24.2856145Z T: de8] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : 4f38a4d4-5885-4e61-8785-a079164e9ca9
[2023-11-10T04:58:24.2894257Z T: 80fc] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T04:58:24.2916038Z T: 80fc] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T04:58:24.2938460Z T: 80fc] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T04:58:45.3502888Z T: 80fc] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T04:58:45.3532694Z T: 80fc] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T04:58:45.3640447Z T: de8] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T04:58:45.3660890Z T: de8] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T04:58:45.3666612Z T: de8] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T04:58:45.3672036Z T: de8] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T04:58:45.3711584Z T: de8] DEBUG : Identity: DefaultAzureCredential: Failed to get token from ManagedIdentityCredential: GetToken(): Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T04:58:48.1096027Z T: de8] INFO  : Identity: DefaultAzureCredential: Successfully got token from AzureCliCredential.

-=-=-= Time: 92 seconds. =-=-=-

C:\src\azure-sdk-for-cpp\out\build\x64-static-debug-perftests\sdk\identity\azure-identity\samples\default_azure_credential_sample.exe (process 29300) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

After the change to reuse the last successful credential (#5142) - 90 seconds:
[2023-11-10T05:12:21.4043040Z T: 9f04] DEBUG : Identity: Creating DefaultAzureCredential which combines mutiple parameterless credentials into a single one.
DefaultAzureCredential is only recommended for the early stages of development, and not for usage in production environment.
Once the developer focuses on the Credentials and Authentication aspects of their application, DefaultAzureCredential needs to be replaced with the credential that is the better fit for the application.
[2023-11-10T05:12:21.4051425Z T: 9f04] WARN  : Identity: EnvironmentCredential was not initialized with underlying credential.
[2023-11-10T05:12:21.4057464Z T: 9f04] DEBUG : Identity: EnvironmentCredential: Both 'AZURE_TENANT_ID' and 'AZURE_CLIENT_ID', and at least one of 'AZURE_CLIENT_SECRET', 'AZURE_CLIENT_CERTIFICATE_PATH' needs to be set. Additionally, 'AZURE_AUTHORITY_HOST' could be set to override the default authority host. Currently:
 * 'AZURE_TENANT_ID' is NOT set
 * 'AZURE_CLIENT_ID' is NOT set
 * 'AZURE_CLIENT_SECRET' is NOT set
 * 'AZURE_CLIENT_CERTIFICATE_PATH' is NOT set
 * 'AZURE_AUTHORITY_HOST' is NOT set
[2023-11-10T05:12:21.4063027Z T: 9f04] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2019 source.
[2023-11-10T05:12:21.4069125Z T: 9f04] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with App Service 2017 source.
[2023-11-10T05:12:21.4073693Z T: 9f04] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Cloud Shell source.
[2023-11-10T05:12:21.4077606Z T: 9f04] DEBUG : Identity: ManagedIdentityCredential: Environment is not set up for the credential to be created with Azure Arc source.
[2023-11-10T05:12:21.4081397Z T: 9f04] INFO  : Identity: ManagedIdentityCredential will be created with Azure Instance Metadata Service source.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T05:12:21.4265854Z T: 9f04] INFO  : Identity: AzureCliCredential created.
Successful creation does not guarantee further successful token retrieval.
[2023-11-10T05:12:21.4274437Z T: 9f04] INFO  : Identity: DefaultAzureCredential: Created with the following credentials: EnvironmentCredential, WorkloadIdentityCredential, ManagedIdentityCredential, AzureCliCredential.
[2023-11-10T05:12:21.4279926Z T: 9f04] WARN  : Identity: EnvironmentCredential authentication unavailable. See earlier EnvironmentCredential log messages for details.
[2023-11-10T05:12:21.4316415Z T: 9f04] DEBUG : Identity: DefaultAzureCredential: Failed to get token from EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
[2023-11-10T05:12:21.4377565Z T: 9f04] DEBUG : Identity: DefaultAzureCredential: Failed to get token from WorkloadIdentityCredential: WorkloadIdentityCredential authentication unavailable. Environment variables are not fully configured.
[2023-11-10T05:12:21.4429807Z T: 9f04] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : d5e9ed54-836e-4d0b-ab31-8041439cf8fe
[2023-11-10T05:12:21.4596865Z T: 3648] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T05:12:21.4602192Z T: 3648] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T05:12:21.4618759Z T: 3648] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T05:12:42.4912392Z T: 3648] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T05:12:42.4929832Z T: 3648] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T05:12:42.4975298Z T: 9f04] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T05:12:42.4979382Z T: 9f04] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T05:12:42.4982656Z T: 9f04] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T05:12:42.4986086Z T: 9f04] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T05:12:42.4989428Z T: 9f04] INFO  : HTTP Retry attempt #1 will be made in 640ms.
[2023-11-10T05:12:43.1549760Z T: 9f04] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : d5e9ed54-836e-4d0b-ab31-8041439cf8fe
[2023-11-10T05:12:43.1593723Z T: 8c60] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T05:12:43.1620699Z T: 8c60] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T05:12:43.1652143Z T: 8c60] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T05:13:04.2233818Z T: 8c60] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T05:13:04.2264475Z T: 8c60] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T05:13:04.2321716Z T: 9f04] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T05:13:04.2334869Z T: 9f04] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T05:13:04.2339598Z T: 9f04] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T05:13:04.2342121Z T: 9f04] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T05:13:04.2344872Z T: 9f04] INFO  : HTTP Retry attempt #2 will be made in 1730ms.
[2023-11-10T05:13:05.9724339Z T: 9f04] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : d5e9ed54-836e-4d0b-ab31-8041439cf8fe
[2023-11-10T05:13:05.9767305Z T: 8c60] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T05:13:05.9796144Z T: 8c60] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T05:13:05.9816879Z T: 8c60] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T05:13:27.0147391Z T: 8c60] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T05:13:27.0166462Z T: 8c60] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T05:13:27.0251821Z T: 9f04] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T05:13:27.0272649Z T: 9f04] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T05:13:27.0282993Z T: 9f04] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T05:13:27.0293529Z T: 9f04] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T05:13:27.0311807Z T: 9f04] INFO  : HTTP Retry attempt #3 will be made in 2869ms.
[2023-11-10T05:13:29.9085654Z T: 9f04] INFO  : HTTP Request : GET http://<IP_ADDRESS>/metadata/identity/oauth2/token?api-version=2018-02-01&resource=REDACTED
metadata : REDACTED
user-agent : azsdk-cpp-identity/1.6.0-beta.4 (Windows 10 Enterprise 6.3 22621 22621.1.amd64fre.ni_release.220506-1250)
x-ms-client-request-id : d5e9ed54-836e-4d0b-ab31-8041439cf8fe
[2023-11-10T05:13:29.9121618Z T: 3648] INFO  : Status operation: 1(WINHTTP_CALLBACK_STATUS_RESOLVING_NAME )
[2023-11-10T05:13:29.9145972Z T: 3648] INFO  : Status operation: 2(WINHTTP_CALLBACK_STATUS_NAME_RESOLVED )
[2023-11-10T05:13:29.9177282Z T: 3648] INFO  : Status operation: 4(WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER )
[2023-11-10T05:13:50.9498287Z T: 3648] INFO  : Status operation: 2097152(WINHTTP_CALLBACK_STATUS_REQUEST_ERROR )
[2023-11-10T05:13:50.9514760Z T: 3648] ERROR : Request error.  Error Code: 12002: The operation timed out
. 5
[2023-11-10T05:13:50.9596442Z T: 9f04] DEBUG : WinHttpRequest::~WinHttpRequest. Closing handle synchronously.
[2023-11-10T05:13:50.9607230Z T: 9f04] INFO  : Status operation: 2048(WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING )
[2023-11-10T05:13:50.9618058Z T: 9f04] DEBUG : Closing handle; completing outstanding Close request
[2023-11-10T05:13:50.9629644Z T: 9f04] WARN  : HTTP Transport error: Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T05:13:50.9746582Z T: 9f04] DEBUG : Identity: DefaultAzureCredential: Failed to get token from ManagedIdentityCredential: GetToken(): Error while waiting for a send to complete. Error Code: 12002: The operation timed out
.
[2023-11-10T05:13:52.2606045Z T: 9f04] INFO  : Identity: DefaultAzureCredential: Successfully got token from AzureCliCredential. Reuse this credential for subsequent calls.
[2023-11-10T05:13:52.2654339Z T: 9f04] DEBUG : Identity: DefaultAzureCredential: Save this credential at index 3 for subsequent calls.

-=-=-= Time: 90 seconds. =-=-=-

C:\src\azure-sdk-for-cpp\out\build\x64-static-debug-perftests\sdk\identity\azure-identity\samples\default_azure_credential_sample.exe (process 32588) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

After the change to reuse the last successful credential, logging disabled - the same ~90 seconds (92 actually), but for these 92 seconds, you stare into the darkness:
-=-=-= Time: 92 seconds. =-=-=-

C:\src\azure-sdk-for-cpp\out\build\x64-static-debug-perftests\sdk\identity\azure-identity\samples\default_azure_credential_sample.exe (process 16988) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

To summarize:
Before reordering, a customer could start a sample, and it would take 3 seconds to authenticate.
Currently, it is 90+ seconds. Logging or having the debugger attached has no impact.
If we intend to GA the new credential order in the chain (when AzureCliCredential comes after ManagedIdentityCredential), we need another fix to be made, when the ManagedIdentityCredential fails fast for the first time we attempt to get token from IMDS source - either by having less retries, or having shorter intervals, or probing the IP address. Subsequent calls could take longer and have the full retry logic, in my opinion. I don't mind if ManagedIdentityCredential/IMDS fails fast only when it is being instantiated from the DefaultAzureCredential.
More thoughts:
Unlike the other Azure SDKs, our intention when we introduced DefaultAzureCredential was to have a credential that we mainly use in samples, that has the highest chances of authenticating, so a user can start a client library sample without having to figure out the Identity as the first thing. We discourage people from using it in prod. Unlike other SDKs, from the get-go, we advertised it as the beginners dev-time credential, and never as a prod credential.
Given all that, I think it is not that important for the user that the credential order aligns with the other SDK. It would be good, but it does not have to be.
If anything, given that DefaultAzureCredential in C++ SDK is "the beginner's dev-time credential", I actually can find more sense for the dev-time credentials to be the first in the chain, not the last ones - everything is fast when you develop, and when you deploy, things may get slower, but hey, maybe it is time to pick the prod-grade credential, it will be faster.

Why don't we move to 1s on the IMDS request.  In most cases that will result in us getting a token.  And in the off chances that it doesn't then we move on quickly to the next credential.  If the goal is to be aggressive in resolving a token, then customers also need to accept that we won't wait around for credentials that might come back but not for an extended period of time

Here's the gist with the design of a solution for this, with the added effort to bring cross-language consistency on the behavior:
https://gist.github.com/ahsonkhan/d6c4d3a9780bb058a729b76844923ef1


Add Thai Person provider and update formatter for Thai credit cards

Closing this PR since it got stale. Please feel free to reopen if needed


⚠ Bofrost.fr has degraded performance

In 542d93b, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 958 ms

Resolved: Bofrost.fr performance has improved in 27971f3 after 6 minutes.


How can I run the program to produce a OD1NF1ST Interactive Web Display? Thank you!

Thank you for your code sharing about OD1NF1ST in URL https://github.com/MichaelWrana/OD1NF1ST. I have some questions about how to run the program and produce a OD1NF1ST Interactive Web Display.

I have read the paper OD1NF1ST: True Skip Intrusion Detection and Avionics Network Cyber-Atack Simulation. When I run the command “python -m odf.web”and type http://<IP_ADDRESS>:8572/ in the browser, Fig.3 can be shown after I click the “START” button. However, Fig.3 is different from Fig.4(Interactive Web Display). So how can I get the Interactive Web Display like Fig.4?  Below are the screenshots of what I do according to your instructions.

Fig.1 python -m odf.web

Fig.2 type http://<IP_ADDRESS>:8572/ in the browser

Fig.3 after clicking the “START” button

Fig.4 Interactive Web Display
2)	I can succeed to run the subsystem “odf/ids”.

Fig.5 IDS subsystem

The web display requires MSFS data.  This is not included in the repository due to file size limitations.  If you want to set up the full webpage you can 1) open MSFS and select an aircraft and flight plan 2) run export SYS_LOG_EVENT=False && python -m odf.mfs.  This will generate data used by the web display. 3) re-run python -m odf.web and your flight should appear in a list in figure 3.

Thank you for your help!
---Original---
From: "M @.>
Date: Tue, Dec 6, 2022 21:17 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [MichaelWrana/OD1NF1ST] How can I run the program to produce aOD1NF1ST Interactive Web Display? Thank you! (Issue #2)
The web display requires MSFS data.  This is not included in the repository due to file size limitations.  If you want to set up the full webpage you can 1) open MSFS and select an aircraft and flight plan 2) run export SYS_LOG_EVENT=False && python -m odf.mfs.  This will generate data used by the web display. 3) re-run python -m odf.web and your flight should appear in a list in figure 3.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Related source with relation_name throws undefined method error on create / update actions

I have this resource
class PostResource < JSONAPI::Resource
  has_many  :categories,   relation_name: 'internal_categories'
end

and I get this error on POST create and PUT update calls
Internal Server Error: undefined method `category_ids=' for class `Post' /usr/local/opt/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.5.7/lib/jsonapi/resource.rb:705:in `method'

Shouldn't it run based on relation_name options? Probably similar to #378 (in a way). Thanks

Yeah I just noticed this too and left a comment in a commit somewhere: https://github.com/cerebris/jsonapi-resources/commit/494e869ab3739ddb149b3dd6ed897e280a0ee960#commitcomment-13165776
This may be related to #378 but is definitely a different issue.

I'll see if I can get a fix for this soon.

#447 fixes _remove_to_many_link to use the relation_name. This won't fix the error on the POST and PUT calls. For that I think setting the foreign_key option on the relationship is going to be required. Can you check if this solves the problem?


How can I edit the wiki?

You have to be a collaborator on this repository, so contact me to request an invitation to collaborate.


Build CI image too

Docker hub needs to be configured to build the datakit:ci image. Don't think I have permission to set that up.

Done.


custom_math includes " that prevents proper MathJax rendering

It seems that there is an error in softcover.io website in handling custom LaTeX commands for MathJax rendering.
From my book published in softcover.io:
            <script>
            // setup book nav
            $(function() {
                Book.init({
                    title: "Julia Programming for Operations Research 2/e",
                    path: "/read/7b8eb7d0/juliabook2",
                    slug: "juliabook2",
                    isArticle: false,
                    s3_path_prefix: "13172/juliabook2",
                    chapters: [{
                        "title": "Frontmatter",
                        "number": 0,
                        "slug": "frontmatter",
                        "s3_url": "https://softcover.s3-us-west-2.amazonaws.com/13172/juliabook2/html/frontmatter_fragment.html?X-Amz-Expires=432000\u0026X-Amz-Date=20201112T161640Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAJMNNDDBSYVXVHGAA%2F20201112%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=016e4cebcbb5a51d335520b5dcbfa2ac1032239ec45d2ac69666634f84e5ef6b"
                    }, {
                        "title": "Chapter 1: Introduction and Installation",
                        "number": 1,
                        "slug": "introduction",
                        "s3_url": "https://softcover.s3-us-west-2.amazonaws.com/13172/juliabook2/html/introduction_fragment.html?X-Amz-Expires=432000\u0026X-Amz-Date=20201112T161641Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAJMNNDDBSYVXVHGAA%2F20201112%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d9cf18f7b75fb63cc8ca109e86df3614330a6e46d6878a9ff601ae7f75b6597b"
                    }, {

...

                        "title": "Chapter 12: Parameters in Optimization Solvers",
                        "number": 12,
                        "slug": "solvers",
                        "s3_url": "https://softcover.s3-us-west-2.amazonaws.com/13172/juliabook2/html/solvers_fragment.html?X-Amz-Expires=432000\u0026X-Amz-Date=20201112T161641Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAJMNNDDBSYVXVHGAA%2F20201112%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=144e4a4effd8289588c19459379152e13e7328adf2eead38962219d1730aa8f4"
                    }],
                    full_page: false,
                    custom_math: "\"myprintindex\": \"\",\n\"Ac\": \"\\\\mathcal{A}\",\n\"Bc\": \"\\\\mathcal{B}\",\n\"Cc\": \"\\\\mathcal{C}\",\n\"Dc\": \"\\\\mathcal{D}\",\n\"Ec\": \"\\\\mathcal{E}\",\n\"Fc\": \"\\\\mathcal{F}\",\n\"Gc\": \"\\\\mathcal{G}\",\n\"Hc\": \"\\\\mathcal{H}\",\n\"Ic\": \"\\\\mathcal{I}\",\n\"Jc\": \"\\\\mathcal{J}\",\n\"Kc\": \"\\\\mathcal{K}\",\n\"Lc\": \"\\\\mathcal{L}\",\n\"Mc\": \"\\\\mathcal{M}\",\n\"Nc\": \"\\\\mathcal{N}\",\n\"Oc\": \"\\\\mathcal{O}\",\n\"Pc\": \"\\\\mathcal{P}\",\n\"Qc\": \"\\\\mathcal{Q}\",\n\"Rc\": \"\\\\mathcal{R}\",\n\"Sc\": \"\\\\mathcal{S}\",\n\"Tc\": \"\\\\mathcal{T}\",\n\"Uc\": \"\\\\mathcal{U}\",\n\"Vc\": \"\\\\mathcal{V}\",\n\"Wc\": \"\\\\mathcal{W}\",\n\"Xc\": \"\\\\mathcal{X}\",\n\"Yc\": \"\\\\mathcal{Y}\",\n\"Zc\": \"\\\\mathcal{Z}\",\n\"Eb\": \"\\\\mathbb{E}\",\n\"Ib\": \"\\\\mathbb{I}\",\n\"Rb\": \"\\\\mathbb{R}\",\n\"dx\": \"\\\\mathop{}\\\\!\\\\mathrm{d}x\",\n\"dy\": \"\\\\mathop{}\\\\!\\\\mathrm{d}y\",\n\"dz\": \"\\\\mathop{}\\\\!\\\\mathrm{d}z\",\n\"dt\": \"\\\\mathop{}\\\\!\\\\mathrm{d}t\",\n\"myimage\": [\"\\\\begin{center}\\\\includegraphics[width=#2]{#1}\\\\end{center}\", 2],\n\"myimagebox\": [\"\\\\begin{center}\\\\fbox{\\\\includegraphics[width=#2]{#1}}\\\\end{center}\", 2],\n\"myindex\": [\"\", 1],\n\"unitvec\": [\"{\\\\hat #1}\", 1],\n\"vect\": [\"\\\\mathbf{#1}\", 1],\n\"mat\": [\"\\\\mathbf{#1}\", 1]"
                });
                Book.scrolling();
            });
            </script>

                if (MathJax.Hub.Config({
                    "HTML-CSS": {
                        availableFonts: ["TeX"]
                    },
                    TeX: {
                        extensions: ["AMSmath.js", "AMSsymbols.js"],
                        equationNumbers: {
                            autoNumber: "AMS",
                            formatNumber: function(c) {
                                return a + "." + c
                            }
                        },
                        Macros: _.extend({
                            PolyTeX: "Poly{\\\\TeX}",
                            PolyTeXnic: "Poly{\\\\TeX}nic"
                        }, h.custom_math)
                    },
                    showProcessingMessages: !1,
                    messageStyle: "none",
                    imageFont: null
                }), c)

See how custom_math looks like. It includes bunch of \".    As a result, it show like this in the website:

In my local rendering it looks like:
            Macros: {
                PolyTeX: "Poly{\\TeX}",
                PolyTeXnic: "Poly{\\TeX}nic",
                "myprintindex": "",
                "Ac": "\\mathcal{A}",
                "Bc": "\\mathcal{B}",
                "Cc": "\\mathcal{C}",
                "Dc": "\\mathcal{D}",
                "Ec": "\\mathcal{E}",
                "Fc": "\\mathcal{F}",
                "Gc": "\\mathcal{G}",
                "Hc": "\\mathcal{H}",
                "Ic": "\\mathcal{I}",
                "Jc": "\\mathcal{J}",
                "Kc": "\\mathcal{K}",
                "Lc": "\\mathcal{L}",
                "Mc": "\\mathcal{M}",
                "Nc": "\\mathcal{N}",
                "Oc": "\\mathcal{O}",
                "Pc": "\\mathcal{P}",
                "Qc": "\\mathcal{Q}",
                "Rc": "\\mathcal{R}",
                "Sc": "\\mathcal{S}",
                "Tc": "\\mathcal{T}",
                "Uc": "\\mathcal{U}",
                "Vc": "\\mathcal{V}",
                "Wc": "\\mathcal{W}",
                "Xc": "\\mathcal{X}",
                "Yc": "\\mathcal{Y}",
                "Zc": "\\mathcal{Z}",
                "Eb": "\\mathbb{E}",
                "Ib": "\\mathbb{I}",
                "Rb": "\\mathbb{R}",
                "dx": "\\mathop{}\\!\\mathrm{d}x",
                "dy": "\\mathop{}\\!\\mathrm{d}y",
                "dz": "\\mathop{}\\!\\mathrm{d}z",
                "dt": "\\mathop{}\\!\\mathrm{d}t",
                "myimage": ["\\begin{center}\\includegraphics[width=#2]{#1}\\end{center}", 2],
                "myimagebox": ["\\begin{center}\\fbox{\\includegraphics[width=#2]{#1}}\\end{center}", 2],
                "myindex": ["", 1],
                "unitvec": ["{\\hat #1}", 1],
                "vect": ["\\mathbf{#1}", 1],
                "mat": ["\\mathbf{#1}", 1]
            }

As I have not updated my book recently, I guess there must be something changed from softcover.io.

Thanks for the report. I think this is the result of a recent major upgrade of our site to use Rails 6 that we just pushed out yesterday. @nickmerwin and I will take a look at fixing it ASAP.

Hi @chkwon thank you for the heads up. That's fixed now:


Improve the links on club info pages

This PR addresses issue #35 by overhauling the appearance of links as buttons with the url and an icon, and by making them interactive as hyperlinks.
Here are some examples:
Facebook link

Instagram link

Discord link

Miscellaneous link

The button is from the Chakra UI React library, and the icons are from Font Awesome throught the React Icons library, both which were in the project already.

@malcolmseyd Looks good!
For QA maybe we add the VikeLabs socials to test those cases. Once those are verified LGTM.
https://www.instagram.com/vikelabs/
https://www.facebook.com/VikeLabs
https://discord.gg/AWcEfYKjff

looks good for me


[8.x] Aliasing on with() for eager loading

What?
This PR introduces the ability to alias eager loaded relations, as withCount method does.
Why?
This alias allows to eager load the same relationship multiple times in different context. This is particularly useful in cases where you have to load model relationships filtering based on different constraints, avoiding N+1 queries without defining aditional constrained relationships in the Model.

It's debatable whether this solves the N+1 issue, since you are now executing 5 queries for the leads instead of 1. It's likely that the collection filtering method is faster.

@bert-w Using laravel debug bar, it takes around 50ms to sent the response. Using collection filtering and relation alias executes the same amount of 5 queries, but relation alias oflload the logic to the controller. Defining all relations with constraints executes 6 queries, and takes around 80ms to sent the response.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

@taylorotwell i think this nice feature, please consider adding it in the future

I don't see any downsides in supporting relationships aliasing as withCount does. I believe it's a straighforward and simple addition.
@taylorotwell Any chance to give it another chance?


feat(ja): improve Japanese translations

This is a WIP PR that I plan to work on for awhile which aims to translate more of Prism Launcher's Japanese translations. I've opted for using Katakana for words like "Microsoft" and "Minecraft".

https://hosted.weblate.org/projects/prismlauncher/launcher/
You need to use weblate


docs: added Package manager tabs

Overview

What is it?

[ ] Feature / enhancement
[ ] Bug
[ ] Docs / tests / types / typos

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

This is so cool. Thanks 🚀

Qwik UI has tabs component, I think we can use that instead of a completely fresh implementation. What do you think @shairez ?

great work @the-r3aper7 !
Yeah I agree @gioboa
We already fixed a lot of bugs in Qwik UI tabs (SSR, index management, etc)
You can use the headless component and just match to the styles you've written
There's even a shorthand syntax version to write a simple tabs component -
<Tabs>
      <TabPanel title="Tab 1">Content 1</TabPanel>
      <TabPanel title="Tab 2">Content 2</TabPanel>
      <TabPanel title="Tab 3">Content 3</TabPanel>
</Tabs>

how can i resolve this conflicts?

Qwik UI has tabs component, I think we can use that instead of a completely fresh implementation. What do you think @shairez ?

But that means that https://github.com/BuilderIO/qwik/issues/5097 will block the merging.... 🤔

Yep, if it was a specific problem of Qwik UI I would have suggested to merge something simpler, but we need to fix this in Qwik anyway, so I think it's better wait a bit and use Qwik UI for an accessible tabs component.

@the-r3aper7 the issue with Qwik UI  is solved.
We can finalise the PR with the latest version of the library.
Would you like to complete it or do you need an help?

i will complete the remaining work and make a PR by tomorrow currently i am traveling.

@the-r3aper7 the issue with Qwik UI  is solved.
We can finalise the PR with the latest version of the library.
Would you like to complete it or do you need an help?

i will complete the remaining work and make a PR by tomorrow currently i am traveling.

i have created a new PR regarding this to avoid any conflicts. I am closing this now


Can't run example app on ios

Describe the Bug
When I try to run the example app on ios using the instructions at https://github.com/doublesymmetry/react-native-track-player/blob/main/example/README.md I get the error new NativeEventEmitter() requires a non-null argument
Happens on real device & simulator. I made sure to clone the repo from scratch to be sure I am not running into caching issues.
Steps To Reproduce
git clone git@github.com:DoubleSymmetry/react-native-track-player.git
cd react-native-track-player
yarn
yarn build
cd example
yarn
cd ios && pod install && cd ..

then open the workspace file in ios/RNTPExample.xcworkspace and change the sign team if necessary and run it
Note that I have not yet tried running it on Android.

So it seems this error started happening with the following commit: 864417f27c8dd8bfbcc77ee037756b5971a8478b
The only way I was able to get things working again was to remove Yarn 3 and move back to Yarn 1.
@dcvz I see a reference to Yarn 1 in this commit: https://github.com/doublesymmetry/react-native-track-player/commit/b52c5c25e69baec96b995f65571b3ac4ac49af39
@dcvz do you happen to know if Yarn 1 is now a must?


Import gml to 4.1.0 from 4.0.1 gml export

I am trying to import a gml file to a fresh installation of 3DCityDB v4.1.0 where the gml file is exported from a 3DCityDB v4.0.1.
Environment follows:
postgresql-13.4-1-windows-x64
postgis_3_1_pg13
importer/exporter v 4.3.0
In the latest docs this way of migration should work, I think..
In this case to migrate the 3DCityDB v4.0.1 with proper script is not a option Im afraid.
Logg in comment below, thank you

Yes, that is correct translated, good job :) sorry about that.
Searchpath contains citydb, citydb_pkg, "$user", public
Sending you the dataset by email.


Adding alternative method for OTS install to README

This pull request addresses the problems described at issue #1934

I signed it.


Visual Fox Pro

Visual FoxPro
Visual FoxPro is a procedural and object oriented programming language and database management system.
Launched:
FoxPro Before Microsoft Started in 1984 as FoxBASE.
FoxPro supports MS-DOS in 1986.
Microsoft acquired Fox in 1992 and it becomes a Microsoft product.
Visual FoxPro with Windows controls launched: June 1995
Killed:
Last Update: 10/16/2007
Mainstream End of Support: 01/12/2010
Detailed Timeline: http://www.foxprohistory.org/foxprotimeline.htm

Duplicate


add new Contributor + new Post

Description of changes:

Add Horacio Herrera as new contributor
add a new blogpost on how to create a Post activity log using AWS Amplify & React.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

thanks for the review @swaminator!

Thanks for the submission and welcome to the Amplify community!


Add Dask support for properties and methods not explicitly defined in woodwork.

We can use this extend functionality to allow methods and properties not explicitly written for our Woodwork DataTables to be used for DataTables with Dask dataframes as the underlying data type.
https://docs.dask.org/en/latest/dataframe-extend.html

Closing. Duplicate of #493


initial value of TX should be nil

Current coverage is 11.25% (diff: 100%)

Merging #256 into master will decrease coverage by 10.82%

@@             master       #256   diff @@
==========================================
  Files            32         32
  Lines          1173       1173
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits            259        132   -127
- Misses          863       1021   +158
+ Partials         51         20    -31

Powered by Codecov. Last update 845254f...b6401a3

@aslakknutsen please review and accept this PR!

This is being deprecated by https://github.com/almighty/almighty-core/pull/393


Allow stream to be None

This lets clients decide whether to default to streaming or not, e.g. the filesystem client shouldn't stream by default.

Closes #222

Codecov Report
Attention: Patch coverage is 50.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 84.15%. Comparing base (6bbc73f) to head (4f6aaa3).

Files with missing lines
Patch %
Lines

src/stac_asset/_cli.py
62.50%
3 Missing :warning:

src/stac_asset/http_client.py
0.00%
2 Missing :warning:

src/stac_asset/s3_client.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
- Coverage   84.41%   84.15%   -0.27%
==========================================
  Files          16       16
  Lines        1059     1073      +14
==========================================
+ Hits          894      903       +9
- Misses        165      170       +5

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


Examples don't work

I tried every example and always get the following error:
Traceback (most recent call last):
  File "toga.py", line 58, in <module>
    app = toga.App('Temperature Converter', 'org.pybee.f_to_c', startup=build)
AttributeError: 'module' object has no attribute 'App'

I'm running Python 3.4.1 on Mac OSX Yosemite and the toga-demo works fine

Sorry to hear you've had problems. I can't say I've seen that error before; but it suggests that there's something wrong with your Toga install; can you confirm what attribute are available in to toga module (i.e., dir(toga) from a Python shell)?

App seems to be there ... very confusing :(
In [1]: import toga
In [2]: dir(toga)
Out[2]:
['App',
 'Button',
 'CENTER_ALIGNED',
 'Command',
 'Container',
 'Dialog',
 'EXPANDING_SPACER',
 'Icon',
 'JUSTIFIED_ALIGNED',
 'LEFT_ALIGNED',
 'Label',
 'MultilineTextInput',
 'NATURAL_ALIGNED',
 'OptionContainer',
 'PasswordInput',
 'ProgressBar',
 'RIGHT_ALIGNED',
 'SEPARATOR',
 'SPACER',
 'ScrollContainer',
 'SplitContainer',
 'TIBERIUS_ICON',
 'Table',
 'TextInput',
 'Tree',
 'WebView',
 'Window',
 '__all__',
 '__builtins__',
 '__cached__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '__version__',
 'absolute_import',
 'alignment',
 'constants',
 'constraint',
 'division',
 'importlib',
 'os',
 'platform',
 'print_function',
 'set_platform',
 'sys',
 'unicode_literals',
 'widget']

Do you get the same errors if you drop a print dir(toga) in your example script itself? If you're getting this on every example - can you provide the full source for tutorial 0?

now I feel stupid ... the file was named toga.py -> renamed it to toga_test.py and now it works
thank you for your help though
toga still looks like something I want to work with :+1:


fix(xml): requirement descriptions should be unbounded

fixes #528
where occurrences of definitions.standards.requirements.descriptions should be unbounded

@jkowalleck This one is ready for a review including the tests mentioned before.

This one Java test is failing because it's referring to the prepacked schema file from within the released (v9.0.5) jar file: jar:file:{user.home}/.m2/repository/org/cyclonedx/cyclonedx-core-java/9.0.5/cyclonedx-core-java-9.0.5.jar!/bom-1.6.xsd

This one Java test is failing because it's referring to the prepacked schema file from within the released (v9.0.5) jar file: jar:file:{user.home}/.m2/repository/org/cyclonedx/cyclonedx-core-java/9.0.5/cyclonedx-core-java-9.0.5.jar!/bom-1.6.xsd

exactly.
It is on my radar for a long while, to rework these java tests in a way they use the schema files in this repo, instead of some shipped ones in a library...
see https://github.com/CycloneDX/specification/issues/256


Bug - Endpoint to query a credential is not configured correctly

To query the credential the list endpoint is used with a passed query like /api/wallet/credentials/list?id=urn:uuid:152e6f4d-134f-4f86-8eb4-28a9b70646b5
But this query is not documented so swagger so it's not possible to generate SDKs out of the definition:

Suggestion:

add the missing annotation
make a new route like api/wallet/credentials/list/{id} to fetch it

fixed by https://github.com/walt-id/waltid-walletkit/pull/174


ServiceFilterAttribute UnhandledException

Is this a Bug or Feature request?:
Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
public void ConfigureServices(IServiceCollection services)
{
  // ...
  services.AddScoped<TestServiceFilter>();
}

    public class TestServiceFilter
    {
        private readonly RequestDelegate _next;

        public TestServiceFilter(RequestDelegate next)
        {
            _next = next;
        }

        public Task Invoke(HttpContext httpContext)
        {

            return _next(httpContext);
        }
    }

   [ServiceFilter(typeof(TestServiceFilter))]
    public class TestController : Controller
    {
        [HttpGet]
         public IActionResult Index() {
             return Json("ok");
     	 }
     }

Description of the problem:
Adding a middleware filter using the ServiceFilterAttribute throws
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.RequestDelegate' while attempting to activate 'Middleware.TestServiceFilter'.

Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:
.App = 2.1.0
this may belong in DI but I'm not sure?

Did you mean to write a middleware?

@pranavkm, I wrote a middleware and then "used" it. That applied it globally, but I only wanted it applied to a specific controller or routes. I thought the MiddlewareFilter or ServiceFilter this was the way to accomplish that but I must be confused.

You have to let Mvc know of the middleware pipeline to use it. See the docs here - https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters?view=aspnetcore-2.1#using-middleware-in-the-filter-pipeline. Something along the lines of:
public class TestServicePipeline
{
    public void Configure(IApplicationBuilder applicationBuilder)
    {
        applicationBuilder.UseMiddleware<TestServiceMiddleware>();
    }
}

[MiddlewareFilter(typeof(TestServicePipeline))]
public IActionResult Index() { }

@pranavkm I updated my last comment. See the DI requirement.

Ok, I switched this to an IAsyncResourceFilter as I believe that is the more corrector option.


Stub out mixpanel if it didn't load

Certain adblockers will  make mixpanel not load. In https://github.com/skritter/skritter-html5/blob/14234c1708f9fe32d55b5690212fc306d9086a28/app/application.js we need to turn mixpanel into a stub with {track: function() {}} and not register it. Then it won't error out and cause the site to not load.

Now it says Unable to init mixpanel correctly as a warning, cool, then errors immediately: ScreenLoader is not defined. Works if I disable this (common) adblocker. Same bug incompletely fixed, or a different bug?

I think Michael fixed this here (https://github.com/skritter/skritter-html5/commit/24437b0fe07807c6b1ee9a237f2c874fb006ec2a) but it hasn't been pushed live yet. I should probably do that soon!


Does esp-idf have tools to create project scaffolding? It allows me to quickly start a new project. (IDFGH-4084)

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Please give as many details as you can. Include suggestions for useful APIs or interfaces if relevant.
Additional context
Add any other context or screenshots about the feature request here.

Hi @ICLXL, idf.py create-project command has been recently implemented and will be available on Github soon. We'll update this issue when the feature is released.

Added in https://github.com/espressif/esp-idf/commit/b599f127b5e6ee9af12f4de20ac41e66fdf60e1c.


[integration_test] Recommend tests to be in integration_test/, fix example

Description
In this way, there is a clear distinction between integration tests that run on a device (in integration_test/, and widget tests that run with the flutter tester in test/.
Related Issues
flutter/flutter#64690

I think this approach blocks the possibilities that can be tested with e2e tests. Let me explain more in details:
For example in the extended test example we are creating a driver and give it to the integrationDriver method. We also give a handler for handling the screenshots.
This way, depending on the repository, developers can handle the screenshots differently. Even better, FlutterDriver can be created differently, for example a WebDriver can enable accessibility in advance. Or FlutterDriver can be provided with different options for the driver.
Also, the same application, can use different driver files since they can provide different functionalities.
Due to this reasons, we will probably won't switch to this usage in web integration tests on the engine side. I also recommend keeping the other option in the documentation for power users who wants to provide a wider set of tests.

@nturgut Sorry, I might have missed something. Can you elaborate more about how this approach blocks certain testing use cases? Customizing the driver is still possible with a custom driver file – in this PR, I have moved the extended test example to follow this proposed structure. There is a change to the command used to kick off the tests, but there is no change in functionality.

@nturgut Sorry, I might have missed something. Can you elaborate more about how this approach blocks certain testing use cases? Customizing the driver is still possible with a custom driver file – in this PR, I have moved the extended test example to follow this proposed structure. There is a change to the command used to kick off the tests, but there is no change in functionality.

Sorry, I might be missing something, the README suggestion is:
An accompanying driver script will be needed that can be shared across all
integration tests. Create a `integration_test_driver.dart` in the `test_driver/`
directory with the following contents:

This suggestion seems very limiting to me. For example we can add:

a note saying multiple driver files can be used
we can also add an example of how we can pass a FlutterDriver

In my opinion, if developer adds multiple driver files, then the advantage of the new structure is not very clear:
lib/
  ...
integration_test/
  foo_test.dart
  bar_test.dart
test/
  # Other unit tests go here.
test_driver/
  integration_test_driver.dart
  integration_test_driver_with_screenshot.dart
  integration_test_driver_with_cstm_setup.dart

Thanks for clarifying – you're right that I wasn't clear enough in how we can use multiple driver files, I have updated the PR and linked it to the extended driver script.
My understanding is that one of the goals for package:integration_test is to push as much logic as possible into the test script, so that the test will be compatible with tools that do not provide access to the host, like Firebase Test Lab. I have not been exposed too much to web use cases, so let me know if I'm wrong, but I was going with the assumption that customizing the driver script should be only done rarely (such as to pull artifacts from the device), and there should be a significantly larger number of test scripts that run on the device to driver scripts which this recommendation will benefit. Taking a brief look at the e2etests/ directory of the engine, I see that most of the driver scripts are delegating to integrationDriver, so sharing the same driver script might be helpful there.

Thanks!


username variable in vscode extension api

cant able to print USERNAME like CURRENT_YEAR need support for that in vscode extension api as predefined variable

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Please manage your code submission and don't make changes without testing

When we use nuttx code in our projects, i found many problems.

No compatibility(When we worked with old version, but  failed with too many asserts or trap or strange apperance)
No codereview and no owners for some modules like net, usb and so on, anyone can push code and merged in, no speciality. We got much trouble and we need to fix by ourselves and update nuttx stream, it wastes our time.
Low performance compilation, you should know, many of us work in company and may have a low-performance computer, when we build nuttx, it costs our much time.
The most important is that please push code before you have tested and make sure the performance is fine.
Last, do not push too many commits in a mini release version, this gives the impression that the code is very unstable
These if you cannot do better, it can only be an opensource code but without commercial value.

All of these are my suggestions, a little rude but useful, thank you, guys.

@sakumisu although some points your raised need to be improved (i.e. we don't have functional test integrated with our CI), the root causes you defined are not true or correct.
Please enlightenment me: which mainline are you submitting those patches, because I failed to find them here in this mainline: https://github.com/apache/nuttx/commits?author=sakumisu
So, before pointing fingers and blame existent contributors, please do your part and have a positive mind and action.

no compatibility? Run ostest, LTS and other tools to confirm everything still compatible
no code reviews? Please start reviewing the code at github
low performance compilation? True, it cannot compile in IBM AT, AFAIK
don't push code before testing: this is the only valid argument you told and this is why we have the Testing request for each PR, so if you see someone not filling this field, just ask he/she to do so
don't push too many commits: it is better to have many logically separated commits than a single commit
no commercial value? there are many companies using it, so it should have commercial value. NuttX kernel is not different from Linux kernel, it is a moving target. All companies are welcome to join and help to improve it.

@sakumisu although some points your raised need to be improved (i.e. we don't have functional test integrated with our CI), the root causes you defined are not true or correct.
Please enlighten me: which mainline are you submitting those patches, because I failed to find them here in this mainline: https://github.com/apache/nuttx/commits?author=sakumisu
So, before pointing fingers and blame existent contributors, please do your part and have a positive mind and action.

no compatibility? Run ostest, LTS and other tools to confirm everything still compatible
no code reviews? Please start reviewing the code at github
low performance compilation? True, it cannot compile in IBM AT, AFAIK
don't push code before testing: this is the only valid argument you told and this is why we have the Testing request for each PR, so if you see someone not filling this field, just ask he/she to do so
don't push too many commits: it is better to have many logically separated commits than a single commit
no commercial value? there are many companies using it, so it should have commercial value. NuttX kernel is not different from Linux kernel, it is a moving target. All companies are welcome to join and help to improve it.

Thank you for your quickly answer.
I  was commissioned to do performance optimization in nuttx, so i do not push code for nuttx. The most question is about net and usb, others i do not care. I used old nuttx verion but does not support some features like tcp out of order, if we update code, it will work but some others do not work or  performance is lower than before.But all these if i use lwip, nothing problem.

And when i search some codes, something is found, like this IOB_SECTION macro, did you think it should be CONFIG_IOB_SECTION?

@sakumisu many people (Samsung inclusive) decide to use lwIP because they think the NuttX NET stack is slow, actually it is not. By default the performance is not so good because all default parameters are focused on board with low amount of memory. You need to modify the network parameters to get better performance.

Yes, I think you found a BUG:
@xiaoxiang781216 please take a look:
mm/iob/iob_initialize.c:#ifdef IOB_SECTION
It should be CONFIG_IOB_SECTION
Thank you very much @sakumisu !!!

@sakumisu many people (Samsung inclusive) decide to use lwIP because they think the NuttX NET stack is slow, actually it is not. By default the performance is not so good because all default parameters are focused on board with low amount of memory. You need to modify the network parameters to get better performance.

Yes, i did. Newer version can do better than before.Feel sorry that i study a little about nuttx net, i will continue to do.

Many commits in a mini version can make others feel worried and confused about whether it i s stable, many people do not want too many changes.They will use old version but newer can do better, we should cost time to convince them.

That's all, thank you sir for your answer again.

And when i search some codes, something is found, like this IOB_SECTION macro, did you think it should be CONFIG_IOB_SECTION? This is why i said no code review, you know, i care little about nuttx low level code, this is just a coincidence.

Have you been reading the code seriously? The definition of IOB_SECTION in the makefile file, https://github.com/apache/nuttx/blob/master/mm/iob/Make.defs#L43 You should send targeted issues to the community instead of using empty and slightly ignorant viewpoints, This is a friendly community, please correct your attitude.

So you think this codestyle that you like and are proud of is excellent? You think that's what everyone's going to be paying attention to? Why can't it be simple?

So you think this codestyle that you like and are proud of is excellent? You think that's what everyone's going to be paying attention to? Why can't it be simple?

You can do it now, immediately, PLEASE! There is unnecessary to discuss further if you just complain!


Confusing naming and upgrade path for ember-deploy

Guys, great job merging all deploy projects and releasing 0.4! Just want to some give feedback on the release:

Naming is still confusing especially the adapters still have ember-deploy- prefix not ember-cli-deploy. I hope that this can be added as a requirement for 0.5.0 adapters? Thanks!

I don't check this page nor npmjs.org for updates but I run npm outdated ---depth=0. Being currently on ember-deploy I'd not be able to discover ember-cli-deploy 0.4.x. I wonder if whoever has ember-deploy access could push a 0.3.2 with a deprecation message on start? That'd be wonderful for those who're on ember-deploy.

Thanks for the awesome work again!

Point number 1 is indeed a requirement for 0.5.0 plugins, and an ember-cli-deploy-plugin keyword is required as well.
@LevelbossMike is feedback point 2 above done? can we close out this issue?

I'll try to push a new version of ember-deploy tomorrow @lukemelia

npm will now print out a deprecation message when installing ember-deploy


Nothing compiled?

Hey everyone,
I was trying to partially import Bootstrap for compiling but nothing happened. It does successfully compile when using the full import.  Did I miss something? Thank you!

Well, you have left all optional parts away. The 3 required parts only provide sass functions etc, which do not actually generate any css output.

oh I get it, thank you @bodograumann


Close file handle correctly.

We have found bugs using PVS-Studio tool. It is a static code analyzer for C, C++, C#, and Java.
You can find other FreeRDP bugs in this article: Checking FreeRDP with PVS-Studio.

@freerdp-bot would you test that please ?


[FLINK-22946][runtime] Recycle floating buffer outside the lock to avoid deadlock

What is the purpose of the change
Recycle floating buffer outside the lock to avoid deadlock
Brief change log

The floting buffer is not recycle in AvailableBufferQueue::addExclusiveBuffer(), the released floting buffer is returned, and the caller will reclaim it outside the lock
In BufferManager::recycle(), if the return value of AvailableBufferQueue::addExclusiveBuffer() is not null, the floating buffer(return value) is recycled
In addition to BufferManager::recycle(), another place to call AvailableBufferQueue::addExclusiveBuffer() is BufferManager::requestExclusiveBuffers(). There should be no floating buffer released, so simply add an assertion
Modify comments and add additional comments

Verifying this change
This change is a trivial rework without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented?

@flinkbot run azure

@flinkbot run azure

@pnowojski Thank you for your careful review, I have added a commit to resovle the points you mentioned, please take a look again

Thanks for the quick response. I just left one more question.

@flinkbot run azure

@pnowojski Thanks for your guidance, I have squash all the commits together.


try pcmsolver

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

For orientation, this is a tryout of the upcoming v1.8.1 psi4 release that adds in the ddx correction and pcmsolver. By no means use this as-is because (1) it's got the wrong version number, (2) building from a branch, (3) restricted python, and (4) osx_arm64 not ready for pcmsolver yet.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


⚠ Bofrost.com has degraded performance

In 7a3acb8, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 717 ms

Resolved: Bofrost.com performance has improved in ad36f93.


Update documentation for recent fixes in 21.12 [skip ci]

This updates the main branch with recent documentation changes on branch-21.12.
NOTE: This should be committed as a merge commit, not squashed!

build


setDefaultNamespace Sub directories

I'm not sure if I'm understanding this correctly or not but I merged two sites together. A external site and a dashboard and am splitting them up as so
application/Controllers/External
application/Controllers/Internal
My VHosts are setup as:
<VirtualHost *:80>
	ServerName www.external.com
	DocumentRoot "${INSTALL_DIR}/www/ci_app/public"

  SetEnv CI_APP "external"
  SetEnv CI_ENVIRONMENT "development"
  SetEnv app.baseURL "https://www.external.com/"

	<Directory "${INSTALL_DIR}/ci_app/public">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		#Require local
		Require all granted
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName www.internal.com
	DocumentRoot "${INSTALL_DIR}/www/ci_app/public"

  SetEnv CI_APP "internal"
  SetEnv CI_ENVIRONMENT "development"
  SetEnv app.baseURL "https://www.internal.com/"

	<Directory "${INSTALL_DIR}/ci_app/public">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		#Require local
		Require all granted
	</Directory>
</VirtualHost>

My routes are setup as

$routes->setAutoRoute( true );

switch ($_SERVER['CI_APP']) {
	case 'external':
		$routes->setDefaultNamespace( 'App\Controllers\External' );
		break;
	case 'internal':
		$routes->setDefaultNamespace( 'App\Controllers\Internal' );
		break;
	default:
		die();
		break;
}

So in the File application/Controllers/External/About.php I have
<?php namespace App\Controllers\External;

class About extends Buffer {
	public function index() {
		echo 'works';
		die();
}
	//--------------------------------------------------------------------

}

This file gets routed fine. The problem is when I navigate to www.external.com/Shop/Products/Search. Products.php is inside a sub folder called "Shop". It triggers a 404 which doesn't make sense since the other one gets routed fine. The following file does not since it is in a sub directory. No controller gets loaded if it's in a sub folder. Is this correct behavior?
<?php namespace App\Controllers\External\Shop;

class Products extends Secure {
	public function __construct(RequestInterface $request, ResponseInterface $response) {
		parent::__construct( $request, $response );
	}

	public function index() {
		404
	}
}

What you didn't show, is what the route you setup for shop/products is. That is where the error is, likely.
However, this isn't a bug from what I can tell, so please continue this discussion on the forums as we reserve the Issues tracking for actual bugs and feature planning.


Win-Key+ opens start menu when released in wrong order

Microsoft PowerToys version
0.80.1
Installation method
WinGet
Running as admin
No
Area(s) with issue?
Keyboard Manager
Steps to reproduce

Add a shortcut via "Remap Shortcuts" that uses the win-key as modifier (eg. win+c)

✔ Expected Behavior
The Win-Key not sending the start-menu action on release, whenever the press-action was part of a Remapping.
❌ Actual Behavior

When releasing the win-key first after pressing the shortcut, the start menu pops up.

Other Software
/

To be specific, the remapping-action (eg. in my case running a ps1-script) works just fine, it's just that on release there shouldn't be anything happening at all

I tried my best but could not reproduce the issue. Can you give more info?

Ok, the issue seems only when action is "Run Program", and not otherwise.

Ok, the issue seems only when action is "Run Program", and not otherwise.

In my case, it's definitely also present when using "Open URI". And to my knowledge these are the only ways to run a script.


read me

Hello Is there anyway you can add an sell system to this if i need to i can pay for it if you do the sell part private
i work with paypal if you need to know
please give me a shout on discord at IcyEndymion004#3547

I'll get back to you on discord.


http status: 500 Internal Server Error

Hi,
I tried the ncbiblast.pl script with the following command on Centos6 :
/cmm/shared/apps/webservice-clients/perl/ncbiblast.pl sample_prot.fasta --program blastp --database uniprotkb_swissprot --alignments 20 --scores 20 --maxJobs 30 --stype protein --email<EMAIL_ADDRESS>--multifasta --useSeqId
And I got following error :
Submitting job for: 000000F_003g0281251_1
JobId: ncbiblast-R20190701-140920-0894-43925861-p1m
FINISHED
Creating result file: 000000F_003g0281251_1.out.txt
Creating result file: 000000F_003g0281251_1.sequence.txt
Creating result file: 000000F_003g0281251_1.ids.txt
Creating result file: 000000F_003g0281251_1.accs.txt
Creating result file: 000000F_003g0281251_1.xml.xml
Creating result file: 000000F_003g0281251_1.visual-svg.svg
Creating result file: 000000F_003g0281251_1.complete-visual-svg.svg
Creating result file: 000000F_003g0281251_1.visual-png.png
Creating result file: 000000F_003g0281251_1.complete-visual-png.png
http status: 500 Internal Server Error   at /cmm/shared/apps/webservice-clients/perl/ncbiblast.pl line 293.
This is a problem of NCBI certificate ? How can I create a certificate for NCBI ?
Thank you for your help.
Best,
Amandine

Dear @a-velt,
Thanks for reporting. https://github.com/ebi-wp/webservice-clients/commit/c65f1683ba7dca490ff5bb5358c55b34365dc719 should fix this issue.
Fábio

Thank you for your response, but it doesn't work for me.
I took your modifications :
commit c65f1683ba7dca490ff5bb5358c55b34365dc719
Author: Fábio Madeira<EMAIL_ADDRESS>Date:   Wed Jul 3 12:55:59 2019 +0100

    JD-328 Fixed problem with some urlopen calls with requests (new dependency)

Launched my command :
/shared/apps/webservice-clients/perl/ncbiblast.pl sample_prot.fasta --program blastp --database uniprotkb_swissprot --alignments 20 --scores 20 --maxJobs 30 --stype protein --email<EMAIL_ADDRESS>--multifasta --useSeqId
And have the same error :

Submitting job for: A
JobId: ncbiblast-R20190703-153400-0087-10286944-p1m
FINISHED
Creating result file: A.out.txt
Creating result file: A.sequence.txt
Creating result file: A.ids.txt
Creating result file: A.accs.txt
Creating result file: A.xml.xml
Creating result file: A.visual-svg.svg
Creating result file: A.complete-visual-svg.svg
Creating result file: A.visual-png.png
Creating result file: A.complete-visual-png.png
http status: 500 Internal Server Error   at /cm/shared/apps/webservice-clients/perl/ncbiblast.pl line 293.

Best,
Amandine

Ups, sorry! I didn't realize you were using the Perl client. I have fixed the Python ones but will do the same for the Perl ones. Let me give it a go.

@a-velt this one https://github.com/ebi-wp/webservice-clients/commit/cc19d0ac5682f763ad1c6d530fe9a5a523a82a2b should do it :)

BTW, in case you only need some particular type of output you could add the param --outformat with one or more output types (e.g. --outformat out,ids)


Encountering DLL Error when booting up game

"Signature with search_start=558fc0 not found!
Module that caused this error: ImprovedCameraSE.dll
Please remove the mod with that DLL and report a capture of this error to the author"
Immersive Camera PR 4 is loaded last in MO2 modlist
Skyrim: 1.5.97
SKSE: 2.0.20
Modwatch: https://modwat.ch/u/AlexanderClan

Just faced the same issue. IDK why

I have the same issue. It popped up when I installed the newly released Skyrim Upscaler mod by PureDark. The error pops up when one of the dependencies for that mod are installed, located here: https://www.nexusmods.com/site/mods/491.

Same here, how strange

HDT-SMP Force Fields issue which is resolved in upcoming release.
Temp workaround rename:
HDT-SMP Force Fields.dll
To:
zHDT-SMP Force Fields.dll


Add RunningTasks container insights metric alarm

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce to <repo_name>?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING.md doc.
[x] I have added necessary documentation (if appropriate).
[x] Any dependent changes have been merged and published in downstream modules.

@Renatovnctavares following your previous comments I've replaced the alarm condition and updated the threshold description. Please approve 👍


specify swift_version in podspec

see http://blog.cocoapods.org/CocoaPods-1.7.0-beta/

see https://guides.cocoapods.org/syntax/podspec.html#swift_versions

using .swift-version file is deprecated


BUGs in WAMR

Hello~
GS register shouldn't be modified in linux-sgx platform hardware mode (64 bit)
In linux-sgx
get_thread_data use READ_TD_DATA assembly macro here, for Enclave Thread Data/Thread Local Storage usage.

And in SGX hardware mode, READ_TD_DATA use GS register in 64bit mode as base address of thread data. here
(Note in hardware mode SE_SIM is undefined)

In wamr
Thus it shouldn't modify GS register in Enclave.here for example

os_writegsbase macro is at here

@LeoneChen Thanks for pointing out this! I only tested in simulator mode and thought that GS register is available. It is a pity that we cannot use the register to enable the segue optimization for linux-sgx platform, I submitted PR #2255 to fix the issue.

My pleasure~

Hello~ We find another bug
Heap OOB
It's about WAMR run in Enclave
In EDL, size of cmd_buf is specified by cmd_buf_size, but cmd_buf_size is set by untrusted host.

When specify [size=cmd_buf_size] attribute, TBridge(*_t.c from *.edl) like below will malloc only cmd_buf_size for cmd.
static sgx_status_t SGX_CDECL sgx_ecall_handle_command(void* pms)
{
	...
	uint8_t* _tmp_cmd_buf = ms->ms_cmd_buf;
	unsigned int _tmp_cmd_buf_size = ms->ms_cmd_buf_size;
	size_t _len_cmd_buf = _tmp_cmd_buf_size;
	...

	if (_tmp_cmd_buf != NULL && _len_cmd_buf != 0) {
		if ( _len_cmd_buf % sizeof(*_tmp_cmd_buf) != 0)
		{
			status = SGX_ERROR_INVALID_PARAMETER;
			goto err;
		}
		_in_cmd_buf = (uint8_t*)malloc(_len_cmd_buf);
		if (_in_cmd_buf == NULL) {
			status = SGX_ERROR_OUT_OF_MEMORY;
			goto err;
		}

		if (memcpy_s(_in_cmd_buf, _len_cmd_buf, _tmp_cmd_buf, _len_cmd_buf)) {
			status = SGX_ERROR_UNEXPECTED;
			goto err;
		}
	}

	ecall_handle_command(ms->ms_cmd, _in_cmd_buf, _tmp_cmd_buf_size);
	...
}

Thus, in ecall_handle_command, argc can be any number (e.g. 0), and cmd_buf may only have insufficient heap memory space

However, e.g. in handle_cmd_init_runtime, this assert is only enabled in DEBUG mode, but this assert (or if-check) is necessary in RELEASE mode too.

When assert disabled in RELEASE mode, args[0] will cause HEAP OOB, which overflow heap memory prepared by SGXSDK.

Hi, the cmd_buf_size of ecall_handle_command is specified when calling it from host for each command, like:
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/product-mini/platforms/linux-sgx/enclave-sample/App/App.cpp#LL380C55-L380C55
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/product-mini/platforms/linux-sgx/enclave-sample/App/App.cpp#L412
Not sure why "argc can be any number (e.g. 0), and cmd_buf may only have insufficient heap memory space", is there any case to reproduce the issue? Or do you mean that cmd_buf_size may be modified illegally in the host side?

Yes, I mean "cmd_buf_size may be modified illegally in the host side", since host may an attacker

I'm happy to help you fix SGX specific BUGs like this, if you need.

Lack of check of Null-Pointer
enclave_module is passed by untrusted host, and can be NULL pointer, better to check enclave_module before use (e.g. enclave_module->module) (here)

Yes, appreciate!
And note that these commands (init_runtime/load_module/instantiate_module, etc) which invoke ecall_handle_cmd are also called by wamr_pal_create_process. wamr_pal_create_process is called by the inclavare container project, we should ensure that the modification works for the project.
https://github.com/bytecodealliance/wasm-micro-runtime/tree/main/product-mini/platforms/linux-sgx/enclave-sample/App
https://github.com/inclavare-containers/inclavare-containers

OK, I'll try to fix it

Hi~ I'll list all bugs found in this issue, and help to try to fix them~
Time of Check to Time of Use/Double Fetch
In wasm_runtime_load (e.g. called by ecall_iwasm_main ), buf is in host (non Enclave) memory, thus can be controlled by attacker.

get_package_type will check first four bytes in buf, then wasm_load or aot_load_from_aot_file will try to load this buf.
But there is a situation that, attack at OS level can replace content of buf (reside in untrusted memory) just after the check of get_package_type but before loading of wasm_load or aot_load_from_aot_file. Thus when loading buf, the first four bytes can already be changed to anything.
Thus it's better to copy whole buffer into Enclave, and then check and use.
This problem is very similar to TOCTOU in linux kernel or other situations which involve security boundary. And is firstly pointed out by CCS'19 paper A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes. Or refer to my Notes in Chinese language => Double Fetch if you want

Hi~ I'll list all bugs found in this issue, and help to try to fix them~

Yes, many thanks!

Null Pointer Dereference
Need to check func_name not Null before strlen(func_name)
https://github.com/bytecodealliance/wasm-micro-runtime/blob/5fb5119239220b0803e7045ca49b0a29fe65e70e/product-mini/platforms/linux-sgx/enclave-sample/Enclave/Enclave.cpp#L434

@wenyongh  Hello, the current interface designed for SGX is too open, but it's due to the requirement of fully supported web assembly runtime, and it seems too hard to fix. How about trying Gramine from Intel or Occlum from Ant Group to seamlessly support non-SGX version WAMR, they are LibOS solutions run in Enclave to support legacy applications and have well-designed Enclave interfaces

@LeoneChen Yes, it may be very hard to fix, could you fix some simple cases? For Gramine and LibOS, maybe we can try running WAMR based on the platform linux (product-mini/platforms/linux), it should be OK if they supports the libc APIs that platform linux requires.

Hello!
My simple idea is change each handle in switch-case to ecalls, in order to leverage auto generated Tbridge code to memory clone for one-level pointer, but for nested pointer, we may need extra work.
This will change interface of Enclave, then host need change code to call these interface.
If you think it's ok, I will submit a PR for every to review

It is good to me, but not sure whether it is OK for other developers, they might be using the current mode in their products. How about adding a macro to control it? By default the new interface is used, and developer can use make WAMR_BUILD_XXX=1 (or 0) to use the old interfaces, and in the App code, we can use macro WASM_ENABLE_XXX=1/0 to control the code.

Ok

UAF
Malloc
ecall_iwasm_main->wasm_runtime_full_init->wasm_runtime_env_init->wasm_shared_memory_init->bh_hash_map_create->wasm_runtime_malloc
which set global wait_map
https://github.com/bytecodealliance/wasm-micro-runtime/blob/81f0371f63ecfd1c3a91e13b086c546f5c67ebd2/core/iwasm/common/wasm_shared_memory.c#L49-L55
Free
ecall_iwasm_main->wasm_runtime_destroy->wasm_shared_memory_destroy->bh_hash_map_destroy->wasm_runtime_free
which not set wait_map to NULL after free
https://github.com/bytecodealliance/wasm-micro-runtime/blob/81f0371f63ecfd1c3a91e13b086c546f5c67ebd2/core/iwasm/common/wasm_shared_memory.c#L66-L70
Use
ecall_handle_command->handle_cmd_destroy_runtime->wasm_runtime_destroy->wasm_shared_memory_destroy->bh_hash_map_destroy
map is the wait_map passed from parameter and map->lock cause UAF
https://github.com/bytecodealliance/wasm-micro-runtime/blob/81f0371f63ecfd1c3a91e13b086c546f5c67ebd2/core/shared/utils/bh_hashmap.c#L249-L259
Conclusion
WAMR forget to set wait_map to NULL after free, and ecall can be called arbitrarily by untrusted host.

Patch to fix Enclave interfaces is done, and I use fuzz to find potential bugs, after fuzz, I will pull request.
I'm a little busy recently, so I'm slow to fix above problem

PR #2357
I'm a little busy recently, so late to fix the above problems
One detail is that I use indexes to replace the raw pointers when passing enclave_module and wasm_module_inst across the SGX boundary. This method is decribed in TeeRex, and at the end of section 5.3

The developers of the Rust SGX SDK acknowledged the problem and promptly updated their code. Akin to our suggestions to the developers, the enclave code now utilizes session identifiers instead of pointers to identify TLS sessions; similar to using file descriptors on Unix-like systems. Upon session creation in tls_client_new, the pointer to the TLS session object is now inserted into a hashmap, which is then used to map the identifier in subsequent ECALLs. Hence, no pointers are passed on the host-to-enclave boundary. This drastically reduces the attack surface of the enclave and eradicates both the vulnerability pattern Returning pointers to enclave memory (P2) and Pointers to Overlapping Memory (P3).

Since I'm not so familiar with WAMR, you may need further check. The Action on this PR failed on SPEC, but I have no idea about this.
I've fuzzed with this Enclave with the new interface, and no above bugs are reported anymore.

Thanks @LeoneChen! We will check the PR and try to fix the issues reported by GitHub CIs.


[Feature, Tests] Add missing string validation options

Takeover from #153
added are:

uppercase
lowercase
trim
enum

to the tests added are:

all from added
minlength
maxlength

match should be added as an test too

PS: the current error in travis is as far as i know not made by this patch, because "titleInUppercase"(instanceMethod) is not defined

rebased to master & made all commits to one

Coverage increased (+0.8%) to 84.185% when pulling aefa2e73a19022ee9e31d692c6f291b6bc6c1437 on hasezoey:takeover153 into 664b3e0346e14dd26aa27b0a7c72dffeaba14027 on szokodiakos:master.


tls: add certificate expiry stats for each TlsContext

Commit Message: tls: add certificate expiry stats for each TlsContext
Additional Description: This PR adds new stat (listener.<envoy_listener_address>.tls_context.<stat_prefix>.days_until_cert_expiring) to show certificate expiration days for each TLS context.
In Envoy, days_until_first_cert_expiring works fine to identify whether there are any certificate to notice expiration. But it is not enough if there are many certificates bound for the single Envoy instance. Therefore, we need to have another one to identify the certificate which expires soon.
Risk Level: Low
Testing: Integration
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Friendly ping @adisuissa on API review.  Also assign @ggreenway as code/domain owner
@Shikugawa please also merge main to resolve the conflict

/wait

Thanks for adding this! A high-level comment: In most of the places I'm aware of stat_prefix only adds a prefix to some stats that are omitted (i.e., the optionality here is not whether stats are omitted or not, but what will be the stat-prefix, if any). Consider changing this to behave the same to:

make it more consistent across the board
decouple emitting a stat from its name (prefix)

@adisuissa I also wondered how to identify the stat for each TLS context. I agree with the idea that this name is not consistent with other stat-prefix usage. I think name could be better (But I think that name is too generic)

This has been worked on before in https://github.com/envoyproxy/envoy/pull/27687. Please read conversation/comments in that PR for direction on how this should look.
/wait

@ggreenway Oh. I couldn't find the previous work related with this. And I roughly caught the discussion. I think we should fix the following points in this PR, right?

Show the expiration date since unix epoch start instead of expiration duration

@ggreenway Oh. I couldn't find the previous work related with this. And I roughly caught the discussion. I think we should fix the following points in this PR, right?

Show the expiration date since unix epoch start instead of expiration duration

Yes, that's the biggest difference. Do you think that's workable?

@ggreenway Yes. It sounds reasonable and easy. Let me work on it.


test: add tests and comments

Codecov Report

Merging #9 into master will increase coverage by 9.62%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
+ Coverage   62.34%   71.96%   +9.62%
==========================================
  Files           5        5
  Lines         239      239
==========================================
+ Hits          149      172      +23
+ Misses         65       49      -16
+ Partials       25       18       -7

Impacted Files
Coverage Δ

examples/create_user.go
61.9% <ø> (ø)
:arrow_up:

fagott/transport.go
100% <ø> (+66.66%)
:arrow_up:

fagott/response.go
100% <0%> (+45%)
:arrow_up:

Continue to review full report at Codecov.

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


add timezone option unix epoch

What
Added a unix epoch timestamp display option, as mentioned in issue 4866

Not quite sure how compact time display should be handled:
    /// Useful when showing dates/times on a timeline
    /// and you want it compact.
    ///
    /// Shows dates when zoomed out, shows times when zoomed in,
    /// shows relative millisecond when really zoomed in.
    pub fn format_time_compact(&self, time_zone_for_timestamps: TimeZone) -> String {
...
            if let Some(datetime) = self.to_datetime() {
                let is_whole_minute = ns % 60_000_000_000 == 0;
                let time_format = if self.is_exactly_midnight() {
                    "[year]-[month]-[day]"
                } else if is_whole_minute {
                    "[hour]:[minute]"
                } else {
-                    "[hour]:[minute]:[second]"
+                    Self::get_time_prefix(&time_zone_for_timestamps)
                };
                let parsed_format = time::format_description::parse(time_format).unwrap();

                return Self::time_string(datetime, &parsed_format, time_zone_for_timestamps);
            }
...
}

Should the [hour]:[minute] be changed as well when unix timestamp is chosen?
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using newly built examples: app.rerun.io
Using examples from latest main build: app.rerun.io
Using full set of examples from nightly build: app.rerun.io

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

format_time_compact could, for instance, show the number of seconds since epoch if we're on a whole second, else show the offset since the last second.

format_time_compact could, for instance, show the number of seconds since epoch if we're on a whole second, else show the offset since the last second.

yup, that is already implemented, basically for unix epoch display everywhere there was a whole second in the format i show unix epoch instead - but if there is a time display with no seconds shown (on a whole minute) I don't know which would be better:
[ ] show unix epoch instead of hours:minute (could look busy for a compact display?)
[ ] show hours:minute regardless of the unix epoch setting (disregarding user preference)
Also another question, should I label pull request myself with include/exclude in changelog? Or is that something maintainers do?

I think that if the user has selected the option for "seconds since unix epoch", we should always use seconds, everywhere - no minutes or hours.
As for labels: only maintainers can add labels. I haven't found any GitHub option to allow contributors to add labels.


db migration and ef core tool reference

added the db connection string
added redis cache connection string
added ef referencing

@arundhati-moray please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

merged


checkMaxAvaialableTokens fails when on other network

We need to fetch this from the subgraph, not from ocean. When on another network you get the following error. :

yes, encountered this over on token approval and fix is quite simple: https://github.com/oceanprotocol/market/pull/640/files#diff-9fb8c5a7542a8d3c882809335fc24d421a8ba66fe7c200bed9d55511be875d51R74-R76

hmm, i guess it's good enough.