Flutter page opened from InAppWebView not working (Android)

[x] I have read the README
[x] I have already searched for the same problem
[x] I have read and done the setup for Android: IMPORTANT Note for Android and iOS and IMPORTANT Note for Android
[x] I have read and done the setup for iOS: IMPORTANT Note for Android and iOS and IMPORTANT Note for iOS
[x] I have ran the sample app and it does not work there

Environment

Technology
Version

Flutter version
1.27.0-8.0.pre

Plugin version
5.1.0

Android version
API 30

iOS version
14.3

Xcode version
12.3

Device information: Emulator (Android + iOS) + OnePlus 6T
Description
Note: it works in iOS as expected, but does not work in Android.
Expected behavior: when navigating to a second Flutter page from an InAppWebView (e.g. after pressing an "options" button  placed in the appBar), this second page was working as expected before version 5.0.0
Current behavior: second page gets stuck (does not scroll and/or widgets cannot be interacted with)
Steps to reproduce

Use current version 5.1.0 example
Add IconButton in appBar, that navigates to a second page as per this example
In the second page, add a Scaffold with a single ListView with 300 items
Run the app, press the button, navigate to the second page -> second page gets stuck when scrolling

Not sure if related, the emulator also complaints about "W/ImageReader_JNI(27506): Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers"
** Note: edited after testing in iOS (works fine)

I tested it and it seems it happens when Android Hybrid Composition is enabled. If I set useHybridComposition: false, it works correctly

I confirm it works for me as well by setting usedHybridComposition: false.
I had this running for a long time with v4.0.0+4 and Hybrid Composition (after is was added to the master branch a few months ago) with no issues at all, though.

Tested also with Official webview flutter plugin, and it happens there for the same reason, hybrid composition

I think there is something going on with flutter itself!
I tested one of my App, that is Flutter Browser, and it happens also there.
I didn't even touch the code from the last update.
I have just updated my flutter version: Flutter 2.1.0-10.0.pre • channel dev, and when I build it, I have the same problem in one of my app routes

I think we should open an issue to the Flutter repository itself

Yep, I tested the same, same results. I will open an issue, thanks a lot!

This is my test code:
import 'dart:async';
import 'dart:io';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
// import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:webview_flutter/webview_flutter.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();

  if (Platform.isAndroid) {
    // await AndroidInAppWebViewController.setWebContentsDebuggingEnabled(true);
  }
  debugPrintGestureArenaDiagnostics = true;
  WebView.platform = SurfaceAndroidWebView();

  runApp(new MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      routes: {
        '/': (context) => FirstRoute(),
        '/second': (context) => SecondRoute()
      },
    );
  }
}

class FirstRoute extends StatelessWidget {

  // final InAppWebViewGroupOptions options = InAppWebViewGroupOptions(
  //     android: AndroidInAppWebViewOptions(
  //       useHybridComposition: true,
  //     ),);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('First Route'),
        actions: [
          ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (context) => SecondRoute()),
              );
            },
            child: Text('Open route!'),
          ),
        ],
      ),
      // body: InAppWebView(
      //   initialUrlRequest: URLRequest(url: Uri.parse("https://github.com/flutter")),
      //   initialOptions: options,
      // ),
      body: WebView(
        initialUrl: "https://github.com/flutter",
      ),
    );
  }
}

class SecondRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Second Route"),
        actions: [
          ElevatedButton(
            onPressed: () {
              Navigator.pop(context);
            },
            child: Text('Go back!'),
          ),
        ]
      ),
      body: ListView.builder(
        itemCount: 100,
        itemBuilder: (context, index) {
          return ListTile(
            title: Text("Item " + index.toString()),
          );
        },
      )
    );
  }
}

Just comment/uncomment the 2 webview plugins to test each other

Thanks, submitted https://github.com/flutter/flutter/issues/77488#issue-823746209

I can confirm that this problem happens from Flutter version 1.27.0-8.0.pre and higher (also 2.1.0-10.0.pre).
If you install Flutter version 1.27.0-4.0.pre or lower, it works as expected.
I tested using fvm in order to be able to install multiple versions of Flutter on my computer.

@Manuito83 so, the current workaround is to use Flutter version 1.27.0-4.0.pre or lower, unfortunately.

@pichillilorenzo this seems now to be working with 2.3.0-0.1.pre (dev channel). Haven't tested with the example or with Flutter Browser.

I also have this issue with version 2.5.0-5.0.pre, any news about it?

This is fixed already in the current Stable channel.


Xcode 11 beta 4 compiler error

Steps to reproduce

Using Xcode 10.2.1, create brand-new project (single view app, I named mine Test01).
Configure Test01 to target iOS 11.
Quit Xcode 10.2.1
Using latest Cocoapods tool (1.7.2), enable pods with Reusable 4.1.0 as the sole dependency (see Podfile.txt).
Open Xcode 10.2.1, and verify compiling the project workspace (Test01.workspace).
Quit Xcode 10.2.1
Start Xcode 11.0 beta 3, and verify compiling the project workspace.
Quit Xcode 11.0 beta 3
Start Xcode 11.0 beta 4, and verify compiling the project workspace

Expected behavior

Compile with no error

Actual behavior

The project won't compile (see xcode.error.txt).

Notes

I discovered this issue when testing Beta 4 (released July 17th) on my current project, and validated that this compiler error happens with a brand-new project as well.
I manually clear my DerivedData folder (delete it via bash script) every time before I startup a different version of Xcode.

This isn't a Reusable issue... it's a Cocoapods issue. I'm closing this.
https://stackoverflow.com/a/57085675


Enhance kpt set-namespace to support multiple namespaces

The set-namespace function will set the same namespace to all supported resources in the package.
However, there can definitely be packages that are intended to be deployed across multiple namespaces.
I can think of two ways of how this can work:
The first idea is that the function can work by renaming rather than assigning. E.g. rename all "namespace-a" occurrences to "project1" and all "namespace-b" occurrences to "project2". We can also provide a default namespace for namespaced resources that have not been assigned a namespace. Example inputs:
rename:
  namespace-a: project1
  namespace-b: project2
default: project3

Another idea is to introduce an annotation to resources with a symbolic name that the function would then use to map to the real name of namespace, which is provided as input.
I like the rename approach because 1) it is simpler, and 2) it actually ensures that the resources are valid, because they do have a namespace (it's just not the final one to be used for deployment).
Perhaps this necessitates the creation of a new kpt function, "set-namespaces", instead of enhancing the current one. But I think all functionality can be included in one.

set-namespace:v0.3.4 supports only updating the matching namespace. Here's the document. https://catalog.kpt.dev/set-namespace/v0.3/
I think you can combine several set-namespace functions to achieve the goal here (not as simple syntax as your proposal, but it is at least have something working).


[Documentation] Deploy guide for langflow on AWS

Hello all,
Thanks for this awesome work.
I'd like to use this on AWS. I think it would be good option for scalability & operation to use AWS Amplify + AWS Lambda + Amazon RDS.
Are there anyone working on this?
Happy to help or contribute regarding this if not.
Thanks

Since I learned about Langflow, I have researched it and actually deployed it to EC2, but since Langflow is frequently updated and there are frequent conflicts between components, I think it is worth trying if the project is at least up to version 1.x. Currently, distribution through Chainlit or Langflow embedd seems to be effective.

Hey
We have a Docker swarm setup on the works with terraform to deploy on AWS. Maybe we could use your help.
You can checkout the Docker compose in the deploy folder.
There's a branch called terraform that has the terraform setup we are building.
Would Amplify work better for this? With Redis caching setup using lambda could be useful too.

any update on this @ysekiy were you able to create langflow in AWS + Lamda + amplify? , i am looking for a similar one it would be very helpful

I'm working on it with my colleague. We may be able to post any updates this month.

Hello.
We have created a procedure for deploying langflow on AWS.
It will be built using Fargate and Aurora MySQL. All resources will be deployed by AWS CDK.
We initially thought of using Lambda and Amplify, but in consideration of future program revisions, we implemented ECS on Fargate by launching it from a Dockerfile using the AWS CDK.
Also, since we select Aurora MySQL as the database, we modified some code associated with DATABASE_URL specification.
The source of the program is here and the deployment procedure is in /langflow/scripts/aws/README.md.
Is it possible to create a branch like aws-cdk for this procedure?

Hi @kazuki306
Thank you for creating the deployment guide! The steps are nicely simple. I have a couple of requests.
I would like an architecture diagram in the section of "Langflow on AWS" that shows what kind of architecture makes up the configuration.
Also, in the bottom of "How to set up your environment and deploy langflow", I would like a screenshot of the Web UI that is displayed when accessing the URL.
https://github.com/kazuki306/langflow/blob/aws-cdk-dev2/scripts/aws/README.md

Hey, @kazuki306 !
This is looking great!
Would you be willing to make a PR with this?
Have you checked out the setup inside the langflow/deploy folder?

Hi!
I've created the branch for you.
The scripts folder is good for this.
Thanks for the help!

hi @kazuki306 thanks for sharing the deployment
i tried to deploy the same using the tutorial, however i was not successful
once i tried cdk deploy command
cdk deploy

✨ Synthesis time: 17.93s

current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-deploy-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-deploy-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-deploy-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-deploy-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-deploy-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
LangflowAppStack: start: Building e77031893275c08bcaa0a774aa8b611727afd045b3b5d8e1e6f0f04063d9d386:current_account-current_region
LangflowAppStack: success: Built e77031893275c08bcaa0a774aa8b611727afd045b3b5d8e1e6f0f04063d9d386:current_account-current_region
LangflowAppStack: start: Building 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region
LangflowAppStack: success: Built 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region
LangflowAppStack: start: Publishing e77031893275c08bcaa0a774aa8b611727afd045b3b5d8e1e6f0f04063d9d386:current_account-current_region
LangflowAppStack: start: Building 94b83655403dac8fe335f8604b61c01d32209e0547652d8a1026bc2049365427:current_account-current_region
LangflowAppStack: success: Built 94b83655403dac8fe335f8604b61c01d32209e0547652d8a1026bc2049365427:current_account-current_region
LangflowAppStack: start: Publishing 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region
LangflowAppStack: start: Building 91dded8d95bb1c65225d536db769102658af3236db20060f8104ba7fff8957c0:current_account-current_region
LangflowAppStack: start: Publishing 94b83655403dac8fe335f8604b61c01d32209e0547652d8a1026bc2049365427:current_account-current_region
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-file-publishing-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-file-publishing-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
current credentials could not be used to assume 'arn:aws:iam::692536198005:role/cdk-hnb659fds-file-publishing-role-692536198005-us-west-2', but are for the right account. Proceeding anyway.
LangflowAppStack: success: Published e77031893275c08bcaa0a774aa8b611727afd045b3b5d8e1e6f0f04063d9d386:current_account-current_region
LangflowAppStack: success: Published 94b83655403dac8fe335f8604b61c01d32209e0547652d8a1026bc2049365427:current_account-current_region
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
LangflowAppStack: fail: docker build --build-arg BACKEND_URL=http://backend.ecs-deploy.com:7860/ --tag cdkasset-91dded8d95bb1c65225d536db769102658af3236db20060f8104ba7fff8957c0 --file cdk.Dockerfile --platform linux/amd64 . exited with error code 1: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
LangflowAppStack: success: Published 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region

❌ Deployment failed: Error: Failed to publish asset 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region
at Deployments.publishSingleAsset (/usr/local/lib/node_modules/aws-cdk/lib/index.js:470:11458)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.publishAsset (/usr/local/lib/node_modules/aws-cdk/lib/index.js:470:177912)
at async /usr/local/lib/node_modules/aws-cdk/lib/index.js:470:163339

Failed to publish asset 2787cf9e14cb283f5bd620e092b3693febd0ead397441b7fe0deffdf2b93ddd0:current_account-current_region`

also when i tried to reuse the command again i got no disk space limit error
Can you please guide me and tell if i am doing any thing wrong in the process

I've encountered an issue with the web application after deploying it on AWS using the dev branch (which I believe is the default one). The deployment process seemed fine, and the tasks and ECS services are showing normal operation in CloudWatch, including CPU usage.
However, I'm experiencing a persistent problem where the web page continuously reloads and loses all session data. This issue persists despite attempting to scale the tasks up or down. Notably, this behavior was not observed during a deployment on Railway, where the application functioned as expected without any such reloading issues.
I am available for providing any additional data or assistance needed for further clarification and contribution to resolving this issue.

I think I got it, its the aws-cdk branch the one for aws usage.
My bad.

hi @aspirina765
I followed all the steps mentioned in the scripts/aws read me branch and i tried to deploy aws-cdk branch how ever while creating the resource i saw the following error am i doing anything wrong here ?
cc @ogabrielluiz @kazuki306

Hi all.
I am sorry for the delay in getting back to you.
We have reviewed our architecture to fix some issues.
We have changed to deploy the built frontend to S3 and the backend to a container (ECS) to be distributed via CloudFront. It allows access to applications using HTTPS.
The related PR is here(#1491). See /langflow/scripts/aws/README.md for detailed architecture and deployment instructions.

Hi @ogabrielluiz
By the way, regarding the Amazon Bedrock and Amazon Kendra Retriever components not showing up (#1483), is it possible to use this as a Default to show these components instead of CustomComponent?

Hello,
Any update on this? I am planning to showcase this to some customers. Is the CDK process stable to try now?

@ysekiy did an awesome work on it but I haven't caught up to it yet.
I think it requires some testing. Could you help us out on that?

@ogabrielluiz Sure, I'd be happy to assist with testing. Could you please provide more details?

The dev branch is a bit different than the main now and we need to make sure the 1.0 alpha still works in the AWS CDK setup.

got it. I'm working on it.

deploy check
summary

Deployment of v1.0.0a23 failed
[blocker 1] I assume cdk-ecr-deployment should be ^3.0.1.

https://github.com/langflow-ai/langflow/blob/374508cf185480a1619724cd820dd35d047a5ec6/scripts/aws/package.json#L25

[blocker 2] cdk deploy cannot be completed because the /health endpoint becomes unreachable.

environment

I follow this guide: https://github.com/langflow-ai/langflow/blob/v1.0.0a23/scripts/aws/README.ja.md
AWS ap-northeast-1(tokyo) region

step3: it works. ok.
git clone https://github.com/aws-samples/cloud9-setup-for-prototyping
cd cloud9-setup-for-prototyping
./bin/bootstrap

step4-1: failed (modified to checkout v1.0.0a23)
# ↓modified ver.
git clone https://github.com/langflow-ai/langflow.git -b v1.0.0a23
# original↓
# git clone https://github.com/langflow-ai/langflow.git
cd langflow/scripts/aws
cp .env.example .env
npm ci
cdk bootstrap
cdk deploy

error
Admin:~/environment/langflow/scripts/aws ((v1.0.0a23)) $ cdk deploy

✨  Synthesis time: 7.8s

LangflowAppStack: deploying... [1/1]
LangflowAppStack: creating CloudFormation changeset...
11:33:12 PM | CREATE_FAILED        | AWS::Lambda::Function                           | CustomCDKECRDeploy...3666512MiB2
8EAD8E4
Resource handler returned message: "The runtime parameter of go1.x is no longer supported for creating or updating AWS
Lambda functions. We recommend you use the new runtime (provided.al2023) while creating or updating functions. (Service
: Lambda, Status Code: 400, Request ID: 6fed4837-7bc6-45d6-9ec4-6a1a406aa1fd)" (RequestToken: 43563eec-6c13-7e67-ccc4-9
5a562c9ba76, HandlerErrorCode: InvalidRequest)

 ❌  LangflowAppStack failed: Error: The stack named LangflowAppStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "The runtime parameter of go1.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (provided.al2023) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 6fed4837-7bc6-45d6-9ec4-6a1a406aa1fd)" (RequestToken: 43563eec-6c13-7e67-ccc4-95a562c9ba76, HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:433:10615)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack2 [as deployStack] (/home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:436:200503)
    at async /home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:436:181341

 ❌ Deployment failed: Error: The stack named LangflowAppStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "The runtime parameter of go1.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (provided.al2023) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 6fed4837-7bc6-45d6-9ec4-6a1a406aa1fd)" (RequestToken: 43563eec-6c13-7e67-ccc4-95a562c9ba76, HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:433:10615)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack2 [as deployStack] (/home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:436:200503)
    at async /home/ec2-user/.nvm/versions/node/v20.12.2/lib/node_modules/cdk/node_modules/aws-cdk/lib/index.js:436:181341

The stack named LangflowAppStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "The runtime parameter of go1.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (provided.al2023) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 6fed4837-7bc6-45d6-9ec4-6a1a406aa1fd)" (RequestToken: 43563eec-6c13-7e67-ccc4-95a562c9ba76, HandlerErrorCode: InvalidRequest)

After modifying the cdk-ecr-deployment version, I couldn't complete cdk deploy. CDK doesn't show an error, but it never ends.

I'm trying to run version 1.0.0a23 locally.

Hi @ysekiy!
Are you still working on that case? How things are going?

sorry, due to handling other matters, I haven't been able to devote sufficient time to this activity.

Hi!
I'd be happy to assist with this issue if needed. I've already started working on the deployment for Azure using Terraform and optionally incorporating Azure DevOps for deployment automation. I can also handle deployments for AWS using Terraform. Let me know!

Hey @danielgines!
Thanks a ton for offering to help out! It’s awesome to hear you’ve already started working on the Azure deployment with Terraform and Azure DevOps. And handling AWS deployments too? That’s fantastic!
We’d love to see what you’ve got so far. Could you open a pull request with your work? That way, we can check it out and work together on it.
Also, if you could add some notes or documentation on the deployment process, that’d be super helpful for everyone else.
Thanks again for jumping in and helping out!


Make sure to copy the latest builds over to new releases

Even if the commit is the same, the latest build might have been triggered manually to update vendors.

will be fixed by #8.


Let deployer emit list of clusters for use with xargs

#3329 is about documenting how xargs can be used to do something once for each cluster. Currently though the strategy is to do ls config/clusters | xargs ... which makes a command be run "once per folder".
It would be nice to have a deployer command to replace the ls command, allowing us to also for example only get gke clusters or aks clusters etc.
I for example wanted to run a command once for each GKE cluster, but didn't want to be bugged by the EKS/AKS clusters that would return an error on the command i wanted to run for each cluster.

Something like this exists now I believe.


raftstore: gc abnormal snapshots and destroy peer if failed to apply snapshots.

What is changed and how it works?

Issue Number: Close #15292

What's Changed:
Previously, there were pending tasks to address the scenario where TiKV would panic if applying snapshots failed due to abnormal conditions such as IO errors or unexpected issues.
This pull request resolves the issue by introducing additional traits tombstone: bool to SnapshotApplied, indicating whether the failure occurred due to abnormal snapshots. Additionally, the associated peer will be destroyed later to ensure the cluster will add one new peer by sending a fresh snapshot to the affected node.
Replace `SnapshotApplied` with `SnapshotApplied { peer_id: u64, tombstone: bool}`.

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[x] Unit test
[x] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None.

I have 2 questions about this PR:

Is it possible to directly retry applying the snapshot if the failure is caused by unexpected(maybe some IO layer) error?
Why need to tombstone the peer after applying snapshot failed? Why not just switch the peer status to normal and so the leader should start a new snapshot automatically.

I have 2 questions about this PR:

Is it possible to directly retry applying the snapshot if the failure is caused by unexpected(maybe some IO layer) error?
Why need to tombstone the peer after applying snapshot failed? Why not just switch the peer status to normal and so the leader should start a new snapshot automatically.

Nope, it's caused by loading abnormal blocks. According to the logs in the issue https://github.com/tikv/tikv/issues/15292 and https://github.com/tikv/tikv/issues/16958, it shows that the given snapshot has abnormal file blocks, causing the failure of the applying.
For safety. Tombstone the peer and destroy it will assure that this TiKV node do not have any other remains data / meta data about this peer.

By the way, as for the point 2, I agree what u mentioned before. But for safety, this pr takes current implementation.

Why not just switch the peer status to normal and so the leader should start a new snapshot automatically.

I'll have a try for the point 2 u mentioned and do some extra tests on it to make comparisons.

I don't think we can directly mark it as Tombstone or Normal, because both options violate the current raft state machine protocol.

Tombstone indicates that the peer has been fully removed, including its Raft membership and data. However, in this case, the peer remains a valid member.
Normal means that the peer has all data up to its last commit index. But, in this case, it does not, as its last commit index has been updated to the snapshot index.

There are two ways to fix the panic:

Have PD remove this peer via a confchange, which I believe is the simplest solution.
Introduce a new RPC to instruct the leader to resend the snapshot, which may change lots of code.

Introduce a new RPC to instruct the leader to resend the snapshot, which may change lots of code.

Why need this extra RPC? At the leader side, it will switch the peer's state to normal after finishing send the snapshot. At the follower side, when apply snapshot failed, it is also doable to restore the raft state to its previous state before this snapshot. Thus, If I understand correctly, the leader should start another snapshot without any extra operation?

At the follower side, when apply snapshot failed, it is also doable to restore the raft state to its previous state before this snapshot.

Do you mean persist the previous state? So it can be restored even after restart TiKV?
That's doable (without a new RPC), but still it adds extra logical to raftstore.

Do you mean persisting the previous state so it can be restored even after restarting TiKV?

Yes. But I think just update the peer's state to its previous status should be simpler that tombstone or let pd remove this peer and later add it back.

Do you mean persisting the previous state so it can be restored even after restarting TiKV?

Yes. But I think just update the peer's state to its previous status should be simpler than tombstone or let pd remove this peer and later add it back.

Correct me if I'm wrong, but I think that removing the peer and making PD add one fresh peer sounds valid ? As the peer, which panics due to loading the abnormal snapshot, has already advanced its persisted_index and committed_index, rolling back the persisted state of this peer will violate rules of raft protocol. Right ?

Correct me if I'm wrong, but I think that removing the peer and making PD add one fresh peer sounds valid ? As the peer, which panics due to loading the abnormal snapshot, has already advanced its persisted_index and committed_index, rolling back the persisted state of this peer to a previous one will violate rules of raft protocol. Right ?

You are right, the raft state is reset to the snapshot's state when receives the snapshot msg, so it not easy to revert to the previous state. And makes the raft state revert may cause other side-effects.
Thus, if it's doable, I prefer the current idea to just destroy the current peer and let newer raft message to trigger create it automatically.

@LykxSassinator  from https://github.com/tikv/tikv/blob/06eed732641ad47aec44dd58aa3d64e18c1c5ee8/components/raftstore/src/store/fsm/store.rs#L2114-L2130
It seems after tombstoning the peer, the region will drop all following raft messages, thus the peer won't be recovered automatically.

@LykxSassinator from
https://github.com/tikv/tikv/blob/06eed732641ad47aec44dd58aa3d64e18c1c5ee8/components/raftstore/src/store/fsm/store.rs#L2114-L2130
It seems after tombstoning the peer, the region will drop all following raft messages, thus the peer won't be recovered automatically.

Yes, thank you for the reminder. It seems that we may need to utilize ConfChange for this task.
Anyway, I will investigate further, and this pull request will be put on hold until the necessary changes are implemented and ready for review.

Out of curiosity and just trying to learn, what are the typical scenarios where applying snapshots may fail? In those cases, would it help if we retry a few times? If we destroy the peer and add a new one, it's possible that the new peer may hit the same issue again, right?

Out of curiosity and just trying to learn, what are the typical scenarios where applying snapshots may fail? In those cases, would it help if we retry a few times? If we destroy the peer and add a new one, it's possible that the new peer may hit the same issue again, right?

Yep. One typical case is that loading snapshots encounters IO errors. In this case, the issue can be attributed to physical errors on the disk or system errors.
And as for whether the retrying is success or not, it depends on the root cause of the IO error. If it's due to physical errors on the disk, retries may not always be successful. But if it's a system error, retries may have a higher chance of success.

This pr needs extra support from PD side to make the implementation more valid.
Hold until  https://github.com/tikv/pd/pull/8266 is merged.


Feat: Making Blog's Page Responsive

Describe the feature
The Blog Page isn't currently responsive on small screens, which affects the user experience. I plan to make the page fully responsive, ensuring it adjusts seamlessly to fit all screen widths. This will improve readability and navigation on mobile devices and smaller screens, providing a better overall user experience. I'll also optimize the layout and design elements to maintain aesthetic appeal and functionality across different devices.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I'm a VSoC'24 contributor
[X] I want to work on this issue

Hey @shreyash3087 , if you and @mdazfar2 permit, can I work on this as I have already raised an issue #942 for it

@Asymtode712 Sure Sure,Since I changed the Whole UI for the Blog's Page,so i raised the issue,I hope you didn't start working on it already,since now you have to make this new UI responsive instead of the old one,if you have started any work on the old UI's Responsiveness,that might go in drain.

@Asymtode712 Sure Sure,Since I changed the Whole UI for the Blog's Page,so i raised the issue,I hope you didn't start working on it already,since now you have to make this new UI responsive instead of the old one,if you have started any work on the old UI's Responsiveness,that might go in drain.

No I haven't started yet, as you were working on it I waited till you complete your work, I will start making it responsive now


Fix linter errors in tests

A lot of files were modified, but the changes are mostly changing var declarations to let or const.

Cool, thanks @henryjw! One question, is eslint-plugin-react needed for anything or can that be removed?

No problem.
For the packages, I had to install them because otherwise eslint errors out. Does liniting work fine for you without them?

@henryjw Why would you need react eslint for backend node.js library without any traces of React, though?..

@henryjw Linting used to work fine for me in the past, so I assume it is something on your local configuration end.

@kibertoad you were right. It was something in my local setup. I've removed the additional dependencies.

@tgriesser @elhigu Do we want to merge this before https://github.com/tgriesser/knex/pull/2857 has landed? I assume that we really, really want that one to be completed and merged, and rebasing it against these changes is going to take some effort. Probably it's going to be easier to rebase this PR later on instead.

I assume that we really, really want that one to be completed and merged, and rebasing it against these changes is going to take some effort.

Yeah we definitely do want it to be merged, though that might take awhile and the lint errors in the tests always bug the hell out of me, I don't mind taking the time to merge this against those changes.
Looking through the files changed in #2857 PR I actually don't think it'll be too hard, there's not too many test files changed and those that do don't really overlap too much with the lines changed by this PR.
@henryjw if you fix the line I mentioned above with the lint (remove lint-test), I'm good to merge this.

@tgriesser I made the change but it looks like it broke the build. Does the build also take into account warnings? If so, then I'll have to resolve those as well.

@henryjw https://travis-ci.org/tgriesser/knex/jobs/441730589 -> judging by logs, those are pretty much errors.

@kibertoad Yea that's strange. On my local they're warnings. Could it be that Travis treats warnings as errors?

@tgriesser @kibertoad Pushed the fixes.

Great, thanks @henryjw!


array ctor javadoc

The initializer_list constructor for array is listed under move constructors.

This looks like a docca problem because the brief says "Constructor." But it is listed under "Move constructors."

This should be fixed now as a result of merging boostorg/docca#42.

This should be fixed once we close https://github.com/boostorg/docca/pull/46

Yep, fixed


app.bundle.js Disappeard automatically

I am working on ionic2 on c9.io ide .
ionic - 2.0.0
cordova - 6.3.1
It was working properly before yesterday , today again i tried ionic serve , the compilation log shows
`
ionic serve --port 8082 --nolivereload
Running 'serve:before' gulp task before serve
[08:32:54] Starting 'clean'...
[08:32:54] Finished 'clean' after 67 ms
[08:32:54] Starting 'watch'...
[08:32:54] Starting 'sass'...
[08:32:54] Starting 'html'...
[08:32:54] Starting 'fonts'...
[08:32:54] Starting 'scripts'...
[08:32:54] Finished 'html' after 78 ms
[08:32:54] Finished 'scripts' after 81 ms
[08:32:54] Finished 'fonts' after 98 ms
[08:32:56] Finished 'sass' after 1.6 s
TypeScript error: /home/ubuntu/workspace/99/app/providers/news-service/news-service.ts(16,10): Error TS2339: Property 'data' does not exist on type 'NewsService'.
TypeScript error: /home/ubuntu/workspace/99/app/providers/news-service/news-service.ts(22,12): Error TS2339: Property 'data' does not exist on type 'NewsService'.
TypeScript error: /home/ubuntu/workspace/99/app/providers/news-service/news-service.ts(27,17): Error TS2339: Property 'data' does not exist on type 'NewsService'.
[08:33:01] Finished 'watch' after 6.23 s
[08:33:01] Starting 'serve:before'...
[08:33:01] Finished 'serve:before' after 11 μs
`
But the browser shows empty page
The Console error thrown on a browser
https://:8082/build/js/app.bundle.js 404 (Not Found)

It appears that you have issues within your typescript file.  This is why the project is not appearing in the browser.
Error TS2339: Property 'data' does not exist on type 'NewsService'.


Dataset s2 is no longer available

Downloading dataset s2 returns 403 Client Error for each pdf.
Is it possible, that this base URL has changed?

The issue seems to persist or is there an alternative URL?


How to add elements in map html and css?

help i need to create a buttons, but where is files?

heres is site if you need

If you are referring to the logo in the top corner of the example map, those can be added by using dynmap's logo components in configuration.txt.
The example map uses the following configuration:
# Note: more than one logo component can be defined
- class: org.dynmap.ClientComponent
  type: logo
  text: ""
  logourl: "https://minecraft.rtgame.co.uk/assets/favicons/favicon-32x32.png"
  linkurl: "https://minecraft.rtgame.co.uk/"
  # Valid positions: top-left, top-right, bottom-left, bottom-right
  position: top-left


NumberField value is reset when re-rendered

Provide a general summary of the issue here
When filling a NumberField with a non-empty formatOptions property, a re-render will erase the current value.
Everything work correctly if I omit the formatOptions property.
🖥 Steps to Reproduce
To reproduce, try to fill the following input : Code Sandbox
Version

react-aria-components 1.1.1

What browsers are you seeing the problem on?
Firefox, Chrome
What operating system are you using?
Arch Linux
🕷 Tracking Issue
No response

It seems that if you remove the following code, the input is retained even if re-rendered.
https://github.com/adobe/react-spectrum/blob/8b7fb3e2b3d557bf7932dd541c5702d218354ad9/packages/%40react-stately/numberfield/src/useNumberFieldState.ts#L139
However, it leads to an increased number of clicks required for spinbutton's increment and decrement actions, more investigation needed!

To piggyback on @ryo-manba's comment, it looks like the following if-statement runs whenever formatOptions !== prevFormatOptions (which only checks the referential equality since formatOptions is an object):
https://github.com/adobe/react-spectrum/blob/8b7fb3e2b3d557bf7932dd541c5702d218354ad9/packages/%40react-stately/numberfield/src/useNumberFieldState.ts#L138-L143
And since the following code in the example passes a new formatOptions object to <NumberField /> on every render:
<NumberField
  formatOptions={{
    style: "percent",
    maximumFractionDigits: 0,
  }}
>
  <Input />
</NumberField>

The following block of code (from the if-statement above) always executes on every re-render:
{
   setInputValue(format(numberValue));
   setPrevValue(numberValue);
   setPrevLocale(locale);
   setPrevFormatOptions(formatOptions);
 }

I'm not sure why executing the above block would lead to resetting the input value without further digging though.
But one way to workaround this is to declare formatOptions outside the component as constant so that the referential inequality check formatOptions !== prevFormatOptions is always false(of course, do this only when your formatting doesn't change over time).
Here is a codesandbox that demonstrates this: sandbox

Thanks for the in-depth dive @sookmax !
Linking to a related issue https://github.com/adobe/react-spectrum/issues/1893


BREAKING CHANGE(web,web-twig): Remove modal body padding feature class #DS-863

Description
Removed feature class .spirit-v1-modal-body-padding and demos with this class from code.
Style was moved to .ModalBody class.
Issue reference
#DS-863

Before submitting the PR, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Follow the PR Title/Commit Message Convention.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

coverage: 96.46%. remained the same when pulling c58ebd7c933470a64e91fe5b8068d52213a3502d on bc/DS-863-remove-depracated-class into 0b39a74bd9065f8e0c9db5d21d018826a000262f on integration/bc-version-1.


Manager Spark-Block-Cleaner log

1. Describe the feature
Use Spark Block Cleaner to clean shuffle file, but itself will remain logs.
In my opinion, there are two way to help clean block cleaner log:

add a feature to spark block cleaner to help clean log
make log file store in dirs which start with spark-(use cleaner self will clean spark- to help cleaning)

2. Motivation
Clean up spark block cleaner log
3. Describe the solution
Above
4. Additional context

WIP @yaooqinn  @ulysses-you

RollingFileAppender

RollingFileAppender

Do you mean using rollingFileAppenderto split into files, and then clean up those files regularly?


check_middleware does not work with function in MIDDLEWARE

With Django 1.10 MIDDLEWARE can contain functions (first example in https://docs.djangoproject.com/en/1.10/topics/http/middleware/#writing-your-own-middleware). But function is_middleware_class called by check_middleware (https://github.com/jazzband/django-debug-toolbar/blob/master/debug_toolbar/apps.py#L66) expects that middleware is class.
Possible change - current code:
return issubclass(middleware_cls, middleware_class)
working code:
return isinstance(middleware_cls, type) and issubclass(middleware_cls, middleware_class)

Have to see this problem with that ever i put debug_tooblar middleware i have this error:
Traceback (most recent call last):
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 142, in inner_run
    handler = self.get_handler(*args, **options)
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler
    handler = super(Command, self).get_handler(*args, **options)
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 64, in get_handler
    return get_internal_wsgi_application()
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/servers/basehttp.py", line 49, in get_internal_wsgi_application
    return import_string(app_path)
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/utils/module_loading.py", line 20, in import_string
    module = import_module(module_path)
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/salahaddin/Proyectos/uzman/uzman/uzman/wsgi.py", line 18, in <module>
    application = get_wsgi_application()
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
    return WSGIHandler()
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 153, in __init__
    self.load_middleware()
  File "/home/salahaddin/Proyectos/uzman/lib/python3.5/site-packages/django/core/handlers/base.py", line 82, in load_middleware
    mw_instance = middleware(handler)
TypeError: __init__() takes 1 positional argument but 2 were given

No, i'm sorry, the problem is with current version, it is solved with the current master version, which isn't release yet!

@SalahAdDin any date for 1.6 release?

which 1.6? Wagtail? I have these error in wagtail.
Debub toolbar haven't any new release.

The PR #879 hopefully fixes this.


uname: change trim_left() to trim()

Otherwise all options have a space at the end, causing a warning in grml zsh config, and who knows what else.

Thanks!


Generate certificates to be FIPS compliant for the tests

Integration tests (ws-security-server, ws-security-policy and ws-trust) generate certificates and keystores using keytool-maven-plugin. Such certificates and keystores can not be used on FIPS compliant machine. Approach with openssl should be used.

@ppalaga Please, assign this issue to me.


Added README.md

Added introduction , download links and build guide

Thanks for the commit!

Finally got around to style the readme, now let's see if that bot works 🙃
@all-contributors add @skinatro for doc


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1795 ms

Resolved: Bofrost.at performance has improved in 89cf441 after 8 minutes.


rc: salamander

[x] #1496
[x] #1403
[x] #1374
[x] #1445
[x] #1497
[ ] #1474
[x] #1583
[x] #1310
[x] #1575

It seems we have a flaky test on Salamander RC: https://github.com/FuelLabs/fuels-ts/actions/runs/7301835259/job/19899474795#step:9:329

It seems we have a flaky test on Salamander RC: https://github.com/FuelLabs/fuels-ts/actions/runs/7301835259/job/19899474795#step:9:329
UPDATE: It is also happening locally, but not always.

Are we running tests concurrently? A possible case for this one to be flaky is that some additional(s) block(s) may be produced or not during this test.

Yes, the Vitest migration in #1310 means a lot of tests run concurrently, and differently to how they were with jest, hence the performance improvements. I'll look into isolating this test.


[Event Request] CU 990000774 - OnBeforeInsertProdOrderCapNeed

Can you add event OnBeforeInsertProdOrderCapNeed to function CreateCapNeed in CU 990000774?

LOCAL [IntegrationEvent] OnBeforeInsertProdOrderCapNeed(VAR ProdOrderCapNeed : Record "Prod. Order Capacity Need";VAR ProdOrderRoutingLine : Record "Prod. Order Routing Line";ProdOrder : Record "Production Order")

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


(fleet) fix race in BootstrapURL during releases

This PR fixes a race in BootstrapURL:

We were first grabbing the package name and version from a first query
to the registry
And then downloading from that registry

During a release the tag could be changed between the two, potentially
leading to issues.

Stack:

#24543 ⬅
#24541

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

/merge


Fix community dropdown server view

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes merged PR #12344, kind of

Description
In the PR mentioned, the JSON file was updated, but not the server view for the pages that haven't been reactified.
This PR fixes the links in the navigation on those pages. You do still have to click to toggle the display of the dropdown, instead of hover.
Edit: raisedadead
Closes #12651

I had opened a issue for this https://github.com/freeCodeCamp/freeCodeCamp/issues/12651 😉 !
Have added the closes tag.

Ah, thanks @raisedadead! I missed that issue, sorry.

:sparkles: :sparkles: LGTM. :sparkles: :sparkles:
Thanks @systimotic !


Add testing language

Adds a simple testing language and refactors some tests to use the language.
Also adds integration tests and ensures that the child chain works with the root chain.

Going to wait for some other PRs to be merged/rejected before finalizing this one.

Closes #84


Python: properly handle types while building the schema

Motivation and Context
While parsing the kernel function's arguments, we recurse to the type's base origin and then set that as the type_object. For a type like list[MyCustomClass] only setting the type_object as list has us lose out on the other valuable information of the list's type, which is MyCustomClass and what attributes it contains within. This then leads us to build an incomplete schema when creating the kernel function parameters and ultimately when we send the JSON schema to the model during tool calls.

Description
This PR:

Closes #6466
Refactors the kernel function decorator code to parse arguments/parameters. We now grab the type_object of the parameter/argument in question, which is used to build the JSON schema.
Fixes the schema building for the types we build. We were missing required parameters as well.
Attempts to handle as many edge cases as possible, although there are probably more that we aren't handling right now -- for example properly handling all schemas for Unions is tricky.
Adds unit tests to make sure we are building the JSON schema as expected. All unit, integration and sample tests are passing.
Handles a TypeError exception during auto function calling where the model sends back an argument like 2, which doesn't cause JSON parsing to fail, but will fail when trying to update the argument dictionary.

Contribution Checklist

[X] The code builds clean without any errors or warnings
[X] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[X] All unit tests pass, and I have added new tests where possible
[X] I didn't break anyone :smile:

closes https://github.com/microsoft/semantic-kernel/issues/6451


On the one hand

On the one hand … this is great, quite literally.
But after searching Github, I’ve been unable to find the rest of the set.  For example, what about three()?  and what about constants, like pi()?
I understand that making all numbers overly complicated could take time, so what’s the ETA?

@shackpank I have tears in my eyes and my belly hurts from laughing. Far and away the best response ever made to any question ever asked in the history of GitHub.
May five() live forever :rocket:

Most numbers already have their own NPM packages!
This is just a few (not all of them have github repos)
Number packages

For zero, use the integer-value-positive-zero package like this and then require it and do zero()
For one, use the-number-one. It's not a function so you just do one
For two, use the two package and do two()
For three, use the numeric-constant-three package and do three()
For four, use the always-four package and do four()
This package is for five.
For six, use the number-six package and do six()
For seven, use the se7en package and do seven()
For eight, it's a bit different. You have to use the eight-toolkit package and to get eight you do eightToolkit.constants.EIGHT or you can do const eight = require('eight-toolkit').constants.EIGHT and then just write eight
For nine, use the value-nine package and do nine()
For ten, it's not a function, use the the-number-ten package and do ten
For eleven, use the eleven package and do eleven()
For twelve, use the tw12ve package and do twelve()
For thirteen, use the always-thirteen package and do thirteen()
For 14, use the fourteen package and do fourteen (it's not a function)
For 15, use the number-fifteen package and do fifteen (also not a function)
For 16, use the sixteen-constant package and do sixteen (not a function)
For 17, use the seventeen-integer package and do seventeen() (a function)
For 18, use the eighteen-positive-number-interactions package and do eighteen() (a function)
For 19, use the nineteenify package and do nineteenify()
For 20, use the numbertwenty package and do twenty()
For 21, use the always-21 package and do twentyone()
For 22, use the twentytwo package and do twentytwo()
For 23, use the twenty-three-tools package and do twentyThreeTools.TWENTY_THREE (not a function)
For pi, require the get-intrinsic package and do const pi = GetIntrinsic("%Math.PI") and then to use pi do pi

Bonus: Other value packages

For false use the (FalseJS)[https://github.com/tj-commits/falsejs) package made by me, or, if you prefer a simpler method, use the false package by MDE and import it and call it f and use it like this: f()
For true use the (true)[https://github.com/mde/true) package by MDE, and import it as t and use it like this: t()
For null use the qc-core package and do qcCore.nullFn() for null.
For undefined use any noop function or use the undefined-is-a-function package and then run undefined() (for some reason you can name variables undefined in js)
For NaN use the nan-is-a-function package and then call it like this: _NaN()

If you want me to recommend any more packages, just ask!

Also you can use the solution by @Joezo but with jQuery like this:
require('vanilla-javascript')
require('vapor-js-npm')
require('none')()

global.jQuery = require('jquery')
require('jquery-basic-arithmetic-plugin')
const five = require('five')

// then to get three do:
const THREE = jQuery.divide(jQuery.subtract(jQuery.multiply(five(), five()), five() , five()), five())

@shackpank I got an error when trying to get pi.
const pi = Math[Buffer(((five() * five()) - (five() / five()) + ((five() * ((five() / five()) + (five() / five()))) * five() * five() * five()) * (five() - (five() / five())) + (five() * five())).toString(), 'hex').toString('utf8')]
Uncaught TypeError: Cannot read properties of null (reading '0')
at isInsideNodeModules (node:internal/util:508:17)
at showFlaggedDeprecation (node:buffer:178:8)
at Buffer (node:buffer:266:3)


Multiple mimetype how use

Please explain hows we can use multiple files like pdf , image etc

hi ~ the mimetyp is check by regex.
so you can write like
//alow all image type and pdf file
<lf-ng-md-file-input lf-files="files" accept="image/* | application/pdf"></lf-ng-md-file-input>

//alow jpg and png
<lf-ng-md-file-input lf-files="files" accept="image/png | image/jpge"></lf-ng-md-file-input>

hope this help!!

i want this for validation purpose so please explain with ng-messages hows we can show validations ..

Hi ~ Do you mean this ?
<lf-ng-md-file-input name="files" lf-files="files" lf-mimetype="image/*|application/pdf" multiple>

Mimetype error.

</lf-ng-md-file-input>

For other formats like doc , xls  , sql ...

hi ~
you can try to look for in this websit
http://www.sitepoint.com/web-foundations/mime-types-complete-list/

hi
i am trying to allow ms word file using "application/msword" according to link but its not working any suggestion .....

Hi
Maybe you can check from this web
As i test the .docx file's mimetype is "application/vnd.openxmlformats-officedocument.wordprocessingml.document"

Thanks its working fine .


standardize tinyMCE editors - some lose formatting lists/tables

testing on dmptool stage revealed persistent issues with losing some formatting functionality (lists/tables) on tinyMCE editors. in this case the Comments area on the write plan page (screenshot).
@briri noted: this is related to DMPRoadmap/roadmap#1594.
We weren't happy with the resolution for that one. My suggestion is to update the notifications page so that its Tinymce editor allows tables and lists. We can just rely on Super Admins not to use that functionality since it will not display properly. That should become evident pretty quickly if they do use it.

all editors appear to be the same now. closing issue.

Reopening for verification after git cherry-pick

comments box has same functions now


keyboard partially not working

I'm on n5 with cataclysm lollipop rom, elementalx kernel and touchpal keyboard
the mouse works fine but the keyboard is not fully working, for example enter and space works but the letters and numbers don't, also if I switch to the google keyboard my touches goes through it and I can see the touchpad area flashing like there was no keyboard at all

It should work with Hacker's Keyboard:
https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
I'll test with Google keyboard.
On Jan 23, 2015 8:53 PM, "Brandhor"<EMAIL_ADDRESS>wrote:

I'm on n5 with cataclysm lollipop rom, elementalx kernel and touchpal
keyboard
the mouse works fine but the keyboard is not fully working, for example
enter and space works but the letters and numbers don't, also if I switch
to the google keyboard my touches goes through it and I can see the
touchpad area flashing like there was no keyboard at all
—
Reply to this email directly or view it on GitHub
https://github.com/pelya/android-keyboard-gadget/issues/21.

It works okay with Google keyboard on Nexus 7 2012 with AOSP. I don't know
how to reproduce that bug.
On Fri, Jan 23, 2015 at 9:15 PM, Sergii Pylypenko<EMAIL_ADDRESS>wrote:

It should work with Hacker's Keyboard:
https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
I'll test with Google keyboard.
On Jan 23, 2015 8:53 PM, "Brandhor"<EMAIL_ADDRESS>wrote:

I'm on n5 with cataclysm lollipop rom, elementalx kernel and touchpal
keyboard
the mouse works fine but the keyboard is not fully working, for example
enter and space works but the letters and numbers don't, also if I switch
to the google keyboard my touches goes through it and I can see the
touchpad area flashing like there was no keyboard at all
—
Reply to this email directly or view it on GitHub
https://github.com/pelya/android-keyboard-gadget/issues/21.

hacker keyboard works perfectly thanks

the keyboard is not working again, I'm using a nexus5 with android 5.1 and elementalx 4, I've compiled the kernel myself with the hid patch and while the mouse works the keyboard doesn't, even with hacker keyboard, I've also tried another nexus5 with android 5.0 and elementalx 2 which has the patch builtin and the keyboard is not working either so maybe it's an app issue
I've also tried hid-gadget-test but neither the mouse nor the keyboard work with it, is there anything I can do to debug it?

my bad it was actually a driver issue with my windows installation


What you need to know about terminating an employee's email session

The contents of Step 7: "What you need to know about terminating an employee's email session" that are linked from this article, need to be merged into it instead. It makes no sense to put the information needed most urgently down in Step 7 when it belongs in Step 1.

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

ID: 4ecd4f58-0a50-05f2-426d-6bc8ca8f5940
Version Independent ID: b3344450-204e-3bb4-54ad-5fa4f85a2695
Content: Step 1 - Prevent a former employee from logging in and block access to Microsoft 365 services - Microsoft 365 admin
Content Source: microsoft-365/admin/add-users/remove-former-employee-step-1.md
Service: microsoft-365-business
GitHub Login: @kwekuako
Microsoft Alias: kwekua

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Fedora 38 issue

Hi seem's like there has been some issues with the latest build.
Not exactly sure what happen but because of that there is no currently available build for fedora 38
Just wanted to let you know, and thanks for your work for making emacs pgtk easily available on fedora :+1:

For those like me who are looking for alternative, I recommend the bleeding-emacs copr  which is a fork with tree-sitter support.


Sleep can't handle infinite durations

Right now, running IO.sleep(Duration.Inf) blows up with java.lang.IllegalArgumentException: toNanos not allowed on infinite Durations.
This method can either be changed to only accept FiniteDurations or such that IO.sleep(Duration.Inf) behaves like IO.never.

@JD557
Let's make infinite durations behave like IO.never.

Did some quick digging. There are three values of sealed abstract class Infinite: Duration.Inf, 'Duration.MinusInfandDuration.Undefined- all of which will result injava.lang.IllegalArgumentException: toNanos not allowed on infinite Durations`.
I guess a simple match for Duration.Infinite should do the trick. I'd be happy to take it as my good first issue.

In this case I think the safest option is to match on FiniteDuration to get the nanos, and make everything else behave like IO.never

Also there's a similar problem with def repeatFixed - it calls toNanos on any Duration passed. Only this one is on IO.scala level while the IO.sleep is in RTS.scala.

@jczuchnowski We should look for and eliminate all of these. In fact, maybe we should just wrap Long and TimeUnit in our own Duration which does not provide any unsafe functions? Otherwise I feel like the toNanos problem will be repeated, maybe again in ZIO, and definitely in user-land code.

But FiniteDuration is safe, right? If so, shouldn't we just change every method to accept FiniteDuration instead of Duration?

@jdegoes wouldn't that be the same as if we used FiniteDuration instead of Duration? FiniteDuration is final so it would be safe to use in our context.
Unless our own Duration would include also infinite values, but that again forces us to handle these cases internally.

I would consider something like
Finite (and that of course includes 0) => business as usual
+Inf => like IO.never
Anything else, like -Inf, Undefined or whatever else => just blatantly throw exception

or rolling our own fancy Duration as @jdegoes suggested
object zio {

  sealed trait Duration {
    def toDuration: scala.concurrent.duration.Duration
  }

  object Duration {

    case class Finite(duration: FiniteDuration) extends Duration {
      final def toDuration = duration
    }

    case class Infinite() extends Duration {
      final def toDuration = scala.concurrent.duration.Duration.Inf
    }

    def fromDuration(duration: scala.concurrent.duration.Duration): Either[IllegalArgumentException, Duration] = duration match {
      case finiteDuration: FiniteDuration => Right(Finite(finiteDuration))
      case inf if inf == scala.concurrent.duration.Duration.Inf => Right(Infinite())
      case x => Left(new IllegalArgumentException(s"Woah dude, $x is not a meaningful zio.Duration!"))
    }
  }
}

Having infinite duration seems like a legitimate use case. That is why I didn't add any + or * (etc) methods on zio.Duration, because adding or multiplying values where some may be infinite just doesn't make sense to me -- more like space for bugs to hide.
what would you guys prefer?

I prefer rolling our own Duration with Finite and Infinite, and forcing code to handle both possibilities, i.e. you cannot call toNanos until you know you have a FiniteDuration.

So I took the implementation @sideeffffect proposed and tried to apply it as is. There are couple of problems there, but the PR #152 highlights the patterns of current usage of Duration. I suggest we move the discussion there?

I haven't tested #152, but I guess this issue can be closed now.


Current producer/consumer implementation is limited

The current producer/consumer model is based on the assumption that messages are published with a specified envelope name that contributes to how they are routed; more specifically, that they are routed to a queue based on that envelope name and that a separate consumer process is maintained per queue.
This is very limiting architecture in infrastructures like Heroku, where I may only want to operate a single worker process across all queues because limited traffic doesn't warrant a separate process per queue.
It is possible to work around this limitation by sending messages to a single queue, extending the router, and having it resolve the receiver differently based on some attribute other than the envelope name, such as a message argument.
However, this solution is just that: a work-around. It would be nice if this was something the Bernard architecture supported natively through a more interface-driven design with consumers.

Hey @elazar
Do you have a specific change in mind? Currently the only way is to make sure you use the second argument to the produce method, and specify a specific queue, or use an event listener to change the Envelope before they are persisted to the backend.

If terms of a non-BC-breaking change, possibly modify Consumer->consume() to be like so:
    public function consume($queues, array $options = [])
    {
        $this->bind();
        if ($queues instanceof Queue) {
            $queues = [$queues];
        }
        foreach ($queues as $queue) {
            while ($this->tick($queue, $options)) {
                // NO op
            }
        }
    }

This would allow multiple queues to be checked in a single process without compromising the existing ability to have a single queue checked per process. I'm not sure if that would be sufficient to cover most use cases, but it would cover more than the current implementation.

That could be done, but that raises some questions:

Should the first queue be drained before checking the next?
Is it okay to increase latency based on the number of queues in your list?

I don't think so because I believe that could lead to queue starvation given a queue with sufficient traffic.
I think it is just because it leaves it up to the user as to which and how many queues to use per process. If I have few queues that receive few messages, it makes more sense to use a single process. By contrast, if I have a queue that receives a lot of traffic, I still have the option of moving it to its dedicated own process and leaving the other queues with less traffic in a shared process.

The change I'm suggesting merely makes it possible to have multiple queues share a process. As I said, this is merely the least invasive change to accomplish that objective.
Long-term, it may make more sense to establish a minimal common interface for consumers, implement multiple core consumers for the more common use cases we've discussed here, and allow third-party consumers to be developed for other use cases.

I would gladly accpet at PR against master, assuming it does round robin each of the queues

Cool. So far as I can tell from the existing source code, the implementation I've suggested above should do round robin. Just starting my work day here, but I'll try to work on a PR this evening.

@henrikbjorn #182 is the PR you requested if you'd like to give it a look.

Was thinking about this, would it be possible to create a ChainQueue or RoundRobinQueue, this could be created by the Command instead of the consumer, then we dont have to update the api for the Consumer?
Sorry for the long answers :/

@henrikbjorn I've created #183 to add a potential RoundRobinQueue implementation. Assuming it meets with your approval, how do you see use of this being implemented in ConsumeCommand? Adding support for specifying multiple queues (e.g. as a comma-delimited string) in the existing --queue parameter? Here's an example of how that could work:
public function execute(InputInterface $input, OutputInterface $output)
{
    $queues = explode(',', $input->getArgument('queue'));
    if (count($queues) > 1) {
        $subqueues = array_map([$this->queues, 'create'], $queues);
        $queue = new RoundRobinQueue($subqueues);
    } else {
        $queue = $this->queues->create(array_shift($queues));
    }
    $this->consumer->consume($queue, $input->getOptions());
}

@henrikbjorn My last comment contained a question about if / how this should be implemented in ConsumeCommand. It's good that #188 has been merged, but there's no way to access the functionality it added from command line. Should I file a separate issue / PR for this?

@elazar yeah it should be wrapped in the Consume command. a PR would be great :+1:


Question about examples.

I have a question about examples.
example file is basically made up of dictionary and there is a key 'en_id'. I thought the 'en_id' corresponds with 'en'. The relation id and entities  are matched, on the other hand the head or tail entities and their id are not matched in example file. Also i don't understand that the length of the fb15k-237 based on the entity2id file is 14541. But i added a line "print(num_entities)" on the processor.py file to check the length of the fb15k-237 is 14951. Could you explain?

Hi~ There are a total of 14,541 entity types in dataset FB15K-237. However, the number 14,951 comes from the FB15K dataset, which is larger than the FB15K-237 dataset.


Scan JS npm -  NodeAuditAnalyzer failed

Version - 5.3.2
When I try to scan JS dependencies iv'e got this errors+warn:
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)

[WARN] Analyzing C:\xxxxxxx\package-lock.json - however, the node_modules directory does not exist. Please run npm install prior to running dependency-check
[WARN] Analyzing C:\xxxxxxx\npm-shrinkwrap.json - however, the node_modules directory does not exist. Please run npm install prior to running dependency-check
[INFO] Finished Node.js Package Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[INFO] Finished CPE Analyzer (1 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)

[ERROR] NodeAuditAnalyzer failed on C:\xxxxxxxx\package-lock.json
[WARN] An error occurred while analyzing 'C:\xxxxxxxx\package-lock.json' (Node Audit Analyzer).
[INFO] Finished Node Audit Analyzer (2 seconds)
[INFO] Finished RetireJS Analyzer (0 seconds)
[INFO] Finished Sonatype OSS Index Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (4 seconds)

[ERROR] Could not perform Node Audit analysis. Invalid payload submitted to Node Audit API.`
Anyway, despite those errors, the scan is finished and I've got my report but i'm afraid the report are not completed because of those errors and maybe i missed some vulnerabilities.
Any ideas?
Thank you!

@jeremylong any help will be appreciated.
Thank you!

I'm not sure how much more help I could be.  Did you read the error message and do what it stated?  I.e. run npm install on your node application?


CPU feature

In this feature the jarvis will able to tell the your CPU usage and Battery level of your system.

Good work!


Chore: selection tests and subsequent fixes

Problem:
Selection was utterly buggy for the Alpine Climb project.
Fix:
I made new test cases and integrated Alpine Climb. I fixed the bugs that I found with these new test cases.
Commit Details:

Added emotion/styled to the built-in-dependencies
Added AlpineClimb test project (modified version with human-readable UIDs)
Added 3 new selection test cases (probably i should make even more)
Fixed issue with selection that affected focused elements on dynamic paths

modified version with human-readable UIDs

Please tell me we now have divs called parsimonious-absinthe or slimy-brick, at that point we could maybe even sell it as a feature 😁

I made a link to test the fixed selection on a real project: https://utopia.pizza/project/a645be4c?branch_name=chore/selection-tests


Alternative API using compare?

I think that some parts of the code could be simplified by passing a compare function with @spec compare(data, data) :: :lt | :eq | :gt when data: var instead of order and eq.

Would you suggest to drop :order and :eq then?

Yes. If order and eq are both lawful, then the information contained in compare is the same.
The only case for keeping order and eq around I can think of is non-lawful ones, e.g. when eq(x,y) does not imply order(x, y) && order(y, x). But I'd argue that such situations are confusing anyways and should be worked around in a different way (e.g. using #10 or #8).


Should add AppInstaller

AppInstaller should be added since it's an app that will likely need to be blocked in some deployments  Microsoft.DesktopAppInstaller_8wekyb3d8bbwe

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

ID: 5eb32b97-9c82-352d-deaf-5278a48c05a1
Version Independent ID: 2e3b5eb7-be36-8b5b-bf97-67b82337cd24
Content: Windows Defender Application Control - WDAC
Content Source: hololens/windows-defender-application-control-wdac.md
Product: hololens
Technology: windows
GitHub Login: @evmill
Microsoft Alias: v-evmill

Closing this Issue due to live documentation.
https://docs.microsoft.com/en-us/hololens/windows-defender-application-control-wdac#package-family-names-for-apps-on-hololens


UnboundLocalError: local variable 'target' referenced before assignment

Hi,
I installed boltz using
pip install boltz
All goes well, no errors.
.local/bin/boltz --help
Usage: boltz [OPTIONS] COMMAND [ARGS]...

  Boltz1.

Options:
  --help  Show this message and exit.

Commands:
  predict  Run predictions with Boltz-1.

So far so good. Then:
.local/bin/boltz predict mthfd1l.fas
Downloading data and model to /home/evehom/.boltz. You may change this by setting the --cache flag.
Checking input data.
Processing input data.
  0%|                                                     | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/evehom/.local/bin/boltz", line 8, in <module>
    sys.exit(cli())
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/evehom/.local/lib/python3.10/site-packages/boltz/main.py", line 346, in predict
    processed = process_inputs(data, out_dir, ccd)
  File "/home/evehom/.local/lib/python3.10/site-packages/boltz/main.py", line 182, in process_inputs
    records.append(target.record)
UnboundLocalError: local variable 'target' referenced before assignment

Please advise. Thanks/Evert

Renaming fas to fasta gives me a different error (with only 1 fasta file in this folder):
.local/bin/boltz predict P00374.fasta
Downloading data and model to /home/evehom/.boltz. You may change this by setting the --cache flag.
Checking input data.
Processing input data.
  0%|                                                     | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/evehom/.local/bin/boltz", line 8, in <module>
    sys.exit(cli())
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/evehom/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/evehom/.local/lib/python3.10/site-packages/boltz/main.py", line 346, in predict
    processed = process_inputs(data, out_dir, ccd)
  File "/home/evehom/.local/lib/python3.10/site-packages/boltz/main.py", line 177, in process_inputs
    target = parse_fasta(path, ccd)
  File "/home/evehom/.local/lib/python3.10/site-packages/boltz/data/parse/fasta.py", line 55, in parse_fasta
    raise ValueError(msg)
ValueError: Invalid entity type: P00374

The fasta file comes directly from UniProt, I copy it from there and paste it into a local file using nano

@Evert-Homan our fasta format requires a few things to be specified in the fasta headers. See the instructions here
Let me know if you run into other issues. I’ll also add some logic so we don’t fail on .fas extensions!

@Evert-Homan Let me know if you were able to get things going!

Closing this for now!

Hi, just to let you know that the latest version works fine with a fasta file and using the --use_msa_server option. Very straightforward to use in this way and fast too, just about 2 minutes to generate a model on an RTX3060 GPU.
Thanks for making this tool available/Evert


Working Compositors?

Are there any known compositors that work with Paperview? I'm working on a rice that utilizes this, and I want to use a compositor to really emphasize this program, because it's stinkin' awesome!
I've tried Picom and Compton, and as I expected, both failed.
Thanks in advance!

Xcompmgr doesn't work either. :(

Even just flags that work would be cool. Thx
I really love the whole thing

I haven't found a solution for this, but a slightly more resource-intensive method of achieving this is this:
while true; do for i in {0..x}; do xwallpaper --output eDP1 --zoom ./out-$i.jpg; sleep 0.05; done; done
replace the x in "0..x" with however many frames your scene has, minus one. Change the "eDP1" to whatever your monitor is called (you can find this out using xrand). Change the sleep timing to change how long each frame is.
Hope this helps for the time being :]


how HdrEnvDome used?

Hello!
In source code of https://github.com/nvpro-samples/vk_shaded_gltfscene I see is HdrEnvDome used.
I have 2 questions.

Please explain how it works and used for vk_shaded_gltfscene.
Is I understand well it is used in raster renderer - baked GGX info. Can this info can be used in raytrace renderer?
Thank you

Hi, the HdrDomeEnv is used by the raster renderer.
It has two main purposes:

Draw the HDR in the background. The scene is draw on top of it.
Provide the diffuse and specular contribution used by the lighting equation in the fragment shader, which simulates the light contribution from the HDR and the reflection.


Support class modules and Import(Type, string Factory)

It would be great if a module could be defined as a class so that it can have a constructor which is useful when passing in Func factory methods to the module. In the provider itself, the module would then be declared as [Import(typeof(X), Factory="ModuleFactory")].
Just in theory, is that possible? What was the reason for choosing an interface over a class for modules?

What was the reason for choosing an interface over a class for modules?

It avoids many hard questions that I'm not sure are worth solving :)
Imagine all factories were classes, now all of them need to be instantiated. When does that happen and what do we do with their ctor parameters? What if some services from modules are unused (because they are overridden by other modules)? What if someone wants to resolve another service from a module service factory implementation?

An example from my tooling in which I use a module and two factories.
Current code
namespace Microsoft.DotNet.PackageValidation
{
    [ServiceProvider]
    [Import(typeof(IServiceLocatorModule))]
    [Singleton(typeof(CompatibleFrameworkInPackageValidator))]
    [Singleton(typeof(CompatibleTfmValidator))]
    [Singleton(typeof(BaselinePackageValidator))]
    internal partial class ServiceProvider : IServiceLocatorModule
    {
        private readonly Func<ISuppressionEngine, ICompatibilityLogger> _logFactory;
        private readonly Func<ISuppressionEngine> _suppressionEngineFactory;

        // It's important to use GetService<T> here instead of directly invoking the factory
        // to avoid two suppression engine being created.
        public ICompatibilityLogger LogFactory() => _logFactory(GetService<ISuppressionEngine>());

        public ISuppressionEngine SuppressionEngineFactory() => _suppressionEngineFactory();

        public ServiceProvider(Func<ISuppressionEngine, ICompatibilityLogger> logFactory,
            Func<ISuppressionEngine> suppressionEngineFactory)
        {
            _logFactory = logFactory;
            _suppressionEngineFactory = suppressionEngineFactory;
        }
    }

    [ServiceProviderModule]
    [Singleton(typeof(ISuppressionEngine), Factory = nameof(SuppressionEngineFactory))]
    [Singleton(typeof(ICompatibilityLogger), Factory = nameof(LogFactory))]
    [Singleton(typeof(IApiComparerFactory), typeof(ApiComparerFactory))]
    [Singleton(typeof(IAssemblySymbolLoaderFactory), typeof(AssemblySymbolLoaderFactory))]
    [Singleton(typeof(IMetadataStreamProvider), typeof(MetadataStreamProvider))]
    [Singleton(typeof(IApiCompatRunner), typeof(ApiCompatRunner))]
    internal interface IServiceLocatorModule
    {
        ICompatibilityLogger LogFactory();

        ISuppressionEngine SuppressionEngineFactory();
    }
}

Potential implementation with class module
namespace Microsoft.DotNet.PackageValidation
{
    [ServiceProvider]
    [Import(typeof(CommonServiceLocatorModule), Factory = nameof(CreateCommonServiceLocatorModule))]
    [Singleton(typeof(CompatibleFrameworkInPackageValidator))]
    [Singleton(typeof(CompatibleTfmValidator))]
    [Singleton(typeof(BaselinePackageValidator))]
    internal partial class ServiceProvider
    {
        public readonly Func<CompatibilityServiceProviderModule> CreateCommonServiceLocatorModule;

        public ServiceProvider(Func<ISuppressionEngine, ICompatibilityLogger> logFactory,
            Func<ISuppressionEngine> suppressionEngineFactory)
        {
            CreateCommonServiceLocatorModule = () => new CommonServiceLocatorModule(logFactory, suppressionEngineFactory);
        }
    }

    [ServiceProviderModule]
    [Singleton(typeof(ISuppressionEngine), Factory = nameof(SuppressionEngineFactory))]
    [Singleton(typeof(ICompatibilityLogger), Factory = nameof(LogFactory))]
    [Singleton(typeof(IApiComparerFactory), typeof(ApiComparerFactory))]
    [Singleton(typeof(IAssemblySymbolLoaderFactory), typeof(AssemblySymbolLoaderFactory))]
    [Singleton(typeof(IMetadataStreamProvider), typeof(MetadataStreamProvider))]
    [Singleton(typeof(IApiCompatRunner), typeof(ApiCompatRunner))]
    internal class CommonServiceLocatorModule
    {
        public readonly Func<ICompatibilityLogger> LogFactory;
        public readonly Func<ISuppressionEngine> SuppressionEngineFactory;

        public CommonServiceLocatorModule(Func<ISuppressionEngine, ICompatibilityLogger> logFactory,
            Func<ISuppressionEngine> suppressionEngineFactory)
        {
            // It's important to use GetService<T> here instead of directly invoking the factory
            // to avoid two suppression engine being created.
            LogFactory= () => logFactory(GetService<ISuppressionEngine>());
            SuppressionEngineFactory = suppressionEngineFactory;
        }
    }
}

This is just an example with two factories (as I don't use more yet) and with your recent contribution the code become less verbose when using them. I don't know if it's worth introducing the extra complexity but I hope the above example better demonstrates what I was imagining from an API consumption standpoint.

The following code works:
[ServiceProviderModule]
[Import(typeof(IOptionsModule))]
[Singleton(typeof(ILoggerFactory), typeof(LoggerFactory))]
[Singleton(typeof(ILogger<>), typeof(Logger<>))]
[Singleton(typeof(IConfigureOptions<LoggerFilterOptions>), Factory = nameof(CreateFilterOptions))]
public interface ILoggingModule
{
    public static IConfigureOptions<LoggerFilterOptions> CreateFilterOptions(LogLevel logLevel) =>
        new ConfigureOptions<LoggerFilterOptions>(options => options.MinLevel = logLevel);
}


daylight saving time

There is a problem while rendering the dates when daylight saving time starts and ends. For example, here in Brazil, daylight saving time started in Octuber 19, 2014 and in this day we were unable to select  the date we wanted. If we try to do a console log in Chrome with "new Date('Octuber 19, 2014 00:00:00')", this give us Octuber 19, 2014 01:00:00. It adds 1 hour to hour date because, theoretically, this hour doesn't exist. Can you help me?

there is a related issue about this problem (or something like this) here #844. But can you provide a jsfiddle example showing the bug (you can use this base jsfiddle to start with)? That way we can get as much info as possible to solve this issue

I had exactly the same error. I´m also from Brazil, and Saturday is the last day of our daylight time(02/21/2016), so in this case i´m on GMT -03:00 and because of the daylight time our timezone is currently GMT -02:00. I did as you asked and i created a fiddle that shows exactly the code i have. Of course in order for this example to work you need to change your timezone. Thanks!
http://jsfiddle.net/tzgfbobs/

Looks like the exact same issue as here
https://github.com/dalelotts/angular-bootstrap-datetimepicker/issues/219


feature: add password protection and encryption to records

Experimental branch enabling full encryption-at-rest. Uses a custom LokiJS storage adapter I wrote to transparently encrypt and decrypt data to indexeddb using the browsers subtle crypto api.

MAR-7 Add password protection and encryption to records

Update from issue tracker that isn't shown here on Github so I've copied and pasted:

Decided we want full encryption at rest. This is hard to do with RxDB on its own, but we can take advantage of the adapter architecture of RxDB and swap to LokiJS with a custom encryption storage adapter that I will write using web crypto. That way, encryption can happen 100% transparently to RxDB and encryption won't be limited to specific fields and wont break indexing, as encryption is the responsibility of the underlying store (LokiJS and web crypto). A prototype so far looks promising. I'm debating writing the custom LokiJS adapter to use indexeddb vs opfs


Fix failing Travis CI: use compatible versions of git and musl-dev with alpine3.8

This PR should hopefully fix Travis CI failures

What do we use musl-dev for?
Apart from that, ty for taking the time to look at this, looks great! I've had a pretty busy term, hoping to be able to contribute some more after finals. Very excited that it's caught somebody else's interest though!

@ian-fox Great project! Looks like we need musl-dev for the C++ compilation (the CGO build I assume?) to work.

Makes sense!


feat(overlay): export CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY

Feature Description
InjectionToken of scroll strategy like MAT_MENU_SCROLL_STRATEGY and MAT_SELECT_SCROLL_STRATEGY, can be imported and overwrited.
please export CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY also, thanks
Use Case
No response

One use case is when a third-party lib is using the cdkConnectedOverlay and you (as a consumer) want to provide your own cdkConnectedOverlayScrollStrategy.


What's the difference between normalize_Y=True and  exact_feval=False?

Hi,
I don't know the difference between normalize_Y and exact_feval in GpyOpt.
I see the documention like:

Is it means that we only have to set one of the parameters? (for example, if we choose normalize_Y=True, we don't have to set  exact_feval=False) Could you help me explain it?
Thank you!

Base on my understanding, they are two different things:
normalize_Y means it will normalize the Y data before doing optimization. But user will always get dimensional output Y. Unless you debug into the detailed optimization processes, you will not interactive with the normalized Y.
Exact_feval means if your evaluation of the objective function f is exact. For example,

if f_math has a know mathematical formula, usually extact_feval=True unless you contaminate the evaluation of f.
if f_measure is some a measurement of some physical quantify like temperature, you should gain inexact f_measure and thus extact_feval=False, unless you want to treat the measurement as truth and assume no noise in it.

Base on my understanding, they are two different things:
normalize_Y means it will normalize the Y data before doing optimization. But user will always get dimensional output Y. Unless you debug into the detailed optimization processes, you will not interactive with the normalized Y.
Exact_feval means if your evaluation of the objective function f is exact. For example,

if f_math has a know mathematical formula, usually extact_feval=True unless you contaminate the evaluation of f.
if f_measure is some a measurement of some physical quantify like temperature, you should gain inexact f_measure and thus extact_feval=False, unless you want to treat the measurement as truth and assume no noise in it.


[Q] How can i change the logging folder for sweeps?

I am using WandB sweeps. For each run, I call the wandb.init() function with the argument dir=<log_path>. This works, the runs get saved in the desired path. However, wandb still creates a folder ./wandb in the local directory of my script. Inside the folder, there is a subfolder called sweep-<sweep_id> with a config file per trial showing the hyperparemeter configuration.
Why is this directory created and how can i move it to the other logging path given in the init() function?
I don't want to clutter my code.
I tried setting the environment variable
os.environ["WANDB_DIR"] = os.path.abspath(<log_path>)

at the beginning of the script, but this had no effect. I also investigated the log files. Here, I see one interesting line:
Loading settings from environment variables: [...] 'sweep_param_path': '<path_to_script>/wandb/sweep-ngvh9uvu/config-o04eplou.yaml'

So, it loads something from this undesired folder. I tried changing this env variable by calling
os.environ["SWEEP_PARAM_PATH"] = os.path.abspath(<log_path>)

without any effect. Now, I don't know what to do.
Thanks in advance!

Thanks for your answer. I got it working on a minimal example. With a simple script I get the same behavior as you. However, since my complete pipeline is a little more complicated, I assume that the error is somewhere there. Maybe due to some multiprocessing threads, the environment variable is not set correctly. I'll check it out, and see if I find the issue.

Ok, I found the issue, the environment variable was indeed not set when wandb.agent() was called. This was caused due to a thread change. I fixed it now. Thanks!


Ssl

#
Description
Brief explanation of the feature.
Basic example
If the proposal involves something new or a change, include a basic example. How would you use the feature? In which context?
Other
Any other things you want to add.

Hello @RafiRahmanRAIF,
Could you detail your issue? Is this a bug? A feature request?
Without a definition or description, I will have to delete this issue if it remains empty
Thank you


Fix typo

Docs Build status updates of commit a3736fd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/procfeatures.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit ecd9000:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/procfeatures.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit f993164:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/procfeatures.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Compatability with ubuntu 18. 04

Hi, may I know if I can use this package in ubuntu 18.04? I have melodic installed but I am really new at ros2. Thanks!

you can melodic version of this stack with lbr_fri_ros_stack.
You can select melodic branch from all the branches provided.

@anubhav-dogra Thanks for your reply!  Sorry!

@anubhav-dogra Hi, when we are using this package to run Med 7, the robot would have some 'beep' noise. Have you encountered this problem before? Everything looks good except this issue.

You might need to check errors or warnings on the KUKA SmartPad.

@mhubii Typically I use 5 ms, I also tried 10 ms, and I do not think communication rates is an issue. I found this case always happens if I make the robot move fast. For example, after the robot moves, when I command it to return its original pose, I only give a desired position without controlling its velocity. Then the robot would make some noise. After I give a small velocity, this case rarely happens. Hope this can help!

Thanks for the hints @Yitian-Xian, then let's keep this issue open for visibility. Maybe someone can solve it. I currently don't have access to a robot so can't verify

We have now double checked this matter.
It appears that a beeping noise occurs when noisy commands are sent to the motors. Make sure smooth controls are sent when using the system.


Encountered two children with the same key, undefined-undefined.

hi guys, I found this issue when it was installed in next js,
next-dev.js?3515:32 Warning: Encountered two children with the same key, undefined-undefined. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
cause it cannot filter any values,

Can you share a demo link ( codesandbox or something )?


Building on OS X 10.12 uses deprecated calls (sqlite3-bindings.c)

On line 20515 success = OSAtomicCompareAndSwapPtrBarrier(NULL, newzone, (void * volatile *)&_sqliteZone_); function OSAtomicCompareAndSwapPtrBarrier is deprecated. Compiler suggests to use atomic_compare_exchange_strong() from C11 (in stdatomic.)

Maybe you don't use latest? https://github.com/mattn/go-sqlite3/commit/61c9552d18d1b0c026cb3a55ad3cbb3b36e76c61