Update admin ui screenshots/language

in data replication demo
in fault tolerance demo
in scalability demo
in start a local cluster tutorial
in start a local cluster in docker tutorial

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/136ed2baf4f404fc6b26f27805af04e394739ea4/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/5fbcea783f6f253fe7c59e5540086efece566d0a/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/efab26486ef53fb8237d233bfb21c229725c2c4d/

@sploiselle, merging this ahead of website update, since the "Learn how it works" button links to a tutorial with an out-dated admin ui screenshot. But post here if you see issues and I'll address them in a follow-up PR.


BadSignatureError: Bad signature.

Hi,
I nearly tried 1000 different ways of generating the signature. Search nearly half a day to figure out, what the heck is going on. I used the Host URL as host, the receiver URL as host. Without host, with and without "(request-target)". Tried date header only. without any headers. Always the same result: BadSignatureError: Bad signature.
Can u please help out? What am I doing wrong?
await axios
                .post(`http://localhost:xxxx/what/is/going/on`, postData, {
                    headers: {
                        'Date': signingDate,
                        'Authorization': getApiKeyAuthHeader(
                            {
                                url: '/what/is/going/on',
                                method: 'post',
                            },
                            'XXX',
                            'XXX-secret'
                        )
                    }
                })

// [...]

import CryptoJS = require('crypto-js');

export function getApiKeyAuthHeader(data: {
                                        method: 'post' | 'get' | 'put' | 'patch' | 'delete',
                                        url: string
                                    },
                                    apiKey,
                                    apiSecretKey) {

    const signatureRawData = `(request-target): ${data.method} ${data.url}`
    const signature = CryptoJS.enc.Utf8.parse(signatureRawData);

    const signatureBytes = CryptoJS.HmacSHA256(signature, apiSecretKey);
    const requestSignatureBase64String = CryptoJS.enc.Base64.stringify(signatureBytes);

    return `Signature keyId="${apiKey}",algorithm="hmac-sha256",headers="(request-target)",signature="${requestSignatureBase64String}"`;
}

Console output on receiver side:
::ffff:<IP_ADDRESS> - - [09/Sep/2021:20:48:02 +0000] "POST /what/is/going/on HTTP/1.1" 500 60 "-" "axios/0.21.4"
{
  accept: 'application/json, text/plain, */*',
  'content-type': 'application/json',
  date: 'Thu, 09 Sep 2021 20:57:25 GMT',
  authorization: 'Signature keyId="XXX",algorithm="hmac-sha256",headers="(request-target)",signature="0YaPbz9lAJ3trsJvWSRwCxTAf7h7/1NGSdK/5jY20Fw="',
  'user-agent': 'axios/0.21.4',
  'content-length': '2',
  host: 'localhost:xxxx',
  connection: 'close'
}
  BadSignatureError: Bad signature.

  - index.js?:57 eval
    [.]/[api-key-auth]/lib/index.js?:57:21

  - app.ts?:158 getSecret
    webpack://express/./app/app.ts?:158:16

  - index.js?:49 middleware
    [.]/[api-key-auth]/lib/index.js?:49:5

  - app.ts?:170 authCheck
    webpack://express/./app/app.ts?:170:41

  - app.ts?:147 eval
    webpack://express/./app/app.ts?:147:5

  - urlencoded.js:82 urlencodedParser
    [api]/[body-parser]/lib/types/urlencoded.js:82:7

Update:
I used an own implemention now since this package seems dead.


Pools fail to render the first/last - start/end IP addresses in the kubernetes cli

Pools fail to show the first/last or start/end values of pools.
There is also some mixing of first/last and start/end. Perhaps one set should be eliminated.
$ cat pool.yaml
---
apiVersion: ipam.cluster.x-k8s.io/v1alpha1
kind: InClusterIPPool
metadata:
  name: inclusterippool-sample
  namespace: default
spec:
  subnet: <IP_ADDRESS>/24
  gateway: <IP_ADDRESS>
  start: <IP_ADDRESS>
  end: <IP_ADDRESS>
$ kubectl apply -f pool.yaml
inclusterippool.ipam.cluster.x-k8s.io/inclusterippool-sample created
$ kubectl get inclusterippool
NAME                     SUBNET        FIRST   LAST
inclusterippool-sample   <IP_ADDRESS>/24

No. I actually forgot to update the json tag in the struct. So on the API it's now called start/end, and in code it's first/last. We should choose one variant.
Any preference? I'd go for first/last.
I think we can justify breaking api changes since there is no proper release yet. Any objections?

We'd prefer to avoid breaking changes, if possible. We like first/last too.
OK, can o worms time: What if we expanded the Addresses fields so that they could accept ranges, something like this:
---
apiVersion: ipam.cluster.x-k8s.io/v1alpha1
kind: InClusterIPPool
metadata:
  name: pool-name
  namespace: pool-ns
spec:
  subnet: <IP_ADDRESS>/16
  gateway: <IP_ADDRESS>
  addresses:
  - "<IP_ADDRESS>-<IP_ADDRESS>"
  - <IP_ADDRESS>

This allows users to carve up their subnets in more complex ways, and we could also deprecate/remove first/last start/end.  We can also open another issue to discuss that proposal separately if you'd prefer.

Good idea. Let's do it like that then.
Is kubectl able to properly display lists as printcolumns?

Ah, good point, I'm not sure. We'll see what we can come up with.

EndpointSlices print addresses in a comma separated list. It looks like by default, kubectl will bracketize a list, space separated.


Ideas for release 2.0

Ideas for release 2.0

💡 Ideas ⚙🛠👩💻🚀

💡 Add Avatar or choose from local system.

In the add profile section button insert a block of customizable avater option like below

💡  Add new feature like OCR

Add this feature like extract the texts from another resume (pdf, Jpg, jpeg format) using OCR (Optical character recognition)


Issue with GTAO (MS Store version)

First of, i want to clarify this is an issue i had in the MS Store/Xbox app edition, so i don't know if it happens in the Steam version as well.
I enabled GTAO and has some baked AO that moves the wrong way through my screen as you can see in the video
At first i thought it was an issue related to the screen percentage being at 125, but disabling the option doesn't affect the issue when GTAO is on.
This is my Log file: SMTVFix.log
This is the link to the video so you can see what im talking about.
PS: If you want i can move the Issue to the Xbox version thread if you consider that it is more appropriate to be there.
PS2: sorry for the bad english.

In theory the behavior should be the same as in the Steam version, since GTAO can also be enabled modifying the Engine.ini file which is present in any version of an Unreal Engine game.
I haven't been able to replicate this issue on my end, everything looks as it should. Running the latest NVIDIA drivers on Windows 11, with the latest version of the fix (with some flags disabled for compatibility reasons with the MS Store build).

I have the same issue on the steam version. r.ambientocclusionlevels doesn't seem to do anything either.

I also have no issue with GTAO, however Ghost of Tsushima had similar visual artifacts intermittently with GTAO enabled, so this might be an intrinsic issue with the Intel library. Unfortunately, the development of GTAO implementation from Intel has ceased, so  there's a very slim chance of fixing it.


Expand/Collapse TableRow component in Materail UI

Steps to reproduce
Link to live example: (required)
[
Steps:

Hi all I have a problera with the childRow I would like it to align to the header like the parent row, Can anyone help me? thanks
2.https://codesandbox.io/p/sandbox/create-edit-record-wkdp6c?file=%2Fsrc%2FApp.tsx

]
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Expand/Collapse

i share with you the code codesandbox or github https://github.com/fatnaelbassraoui/mui/issues/1

Hey @fatnaelbassraoui, thanks for the report!
I've investigated a bit, and this is not possible at the moment. This is because we rely on the tr and td elements to align the table, but when adding the collapse animation, multiple divs are inserted in between, breaking the table structure.
There's room for enhancement, maybe on the Table or the Collapse animation, to support this. I'm adding the waiting for upvotes label so people can request this enhancement.
In the meantime, I would suggest not using the Collapse component for this use case but implementing/finding another solution for the animation that doesn't require inserting elements inside the table.


Post comment to Bitbucket Cloud only if there is any content

This feature has already been implemented on Bitbucket Server, but it's missing on Bitbucket Cloud.
Bitbucket Server PR: https://github.com/danger/danger/pull/1331
Original issue: https://github.com/danger/danger/issues/1299

Hey @orta, this change for Bitbucket Cloud is identical to the one for Bitbucket Server (https://github.com/danger/danger/pull/1331). Do you mind giving it a look when you get the chance?

Hi, sorry I missed this - makes sense to me!

Shipped in 9.3.0, thanks!


Support watching a namespace

It would be nice if we could use kubefwd to watch a namespace and update as the services in a namespace change. It might be a reasonable default behavior as well.
 Ideally the port forwarding is cancellable without killing the whole process.

This is a useful feature and I will try to add this feature.
Not only about change pods in the service, but also change services in the namespace.
I will assess the relevant workload and difficulty and work for it.
probably done in few days.

@calmkart I know a lot of people including myself that would love this. however, this may require a fairly significant change to the architecture. It's probably a good time to include at least a basic set of tests for any big change to the code base. thanks!!

@cjimti
I will try my best to finish it in my spare time. But I am not quite sure if I can do it because I am not a professional. But I'll try to do it.

@calmkart only do what you can/want to. Your contributions have been great for kubefwd. My personal and work schedule gives me very little free myself. No pressure to work on this at all. I will leave it assigned to you for a few weeks and if you don't have time or other priorities it's ok!

Release 1.11.0 watches the provided namespaces thanks to @calmkart #95


⚠ SolarOscp has degraded performance

In 2e35ba6, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 419 ms

Resolved: SolarOscp performance has improved in bd56cdd after 9 minutes.


Create size_check.py

Python Code to check size of a file

PR accepted @AdityaJain2162
Successfully merged to HacktoberFest_22 repo.
Need to Star this repo incase not done.
🚀🚀👍


Setting color66 not color16

Fresh install of pywall, and generated a colorscheme from an image. When inspecting the generated scheme, I noticed that colors.css generates:
:root {
	--color0: #010408;
	--color1: #233238;
	--color2: #083647;
	--color3: #145362;
	--color4: #466A76;
	--color5: #41A4B5;
	--color6: #50ACBA;
	--color7: #65DAE8;
	--color8: #666666;
	--color9: #233238;
	--color10: #083647;
	--color11: #145362;
	--color12: #466A76;
	--color13: #41A4B5;
	--color14: #50ACBA;
	--color15: #65DAE8;
	--color66: #010408;
}

I haven't dug into the internals of pywall extensively, but that color66 should almost certainly be a color16, and pywall doesn't set color16 properly in my terminal which supports that hypothesis.

color66 isn't a typo for color16.
color66 is an additional color that is set to the value of color0. When you try to use color0 and bold text is enabled in your terminal color8 is used instead. This means that instead of getting a black background or text, you're left with a light grey color instead.
The bug here is that color66 shouldn't end up in the export files.


capture is not stopping on the port with PortCaptureState state='stop'

capture is not stopping on the port with PortCaptureState state='stop'
api.set_state(     State(PortCaptureState(port_names=[rx_port.name], state='stop')))
Capture stops only when get_capture_results is used
api.get_capture_results(     CaptureRequest(port_name=rx_port.name))

verified


edge-service vs. specs vs. others

There are differences between all four actors (specs vs transmute vs digital bazaar vs edge-service).
There will be incoming PRs to the spec repo. PR submitted for the issuer API.

Aligning edge-service with vc-issuer-http-api
Spec version: 5ccd7d96e9f3e52777e7c63c9253a4d8e47a4fe4
Spec note: there is consensus only on endpoint /credentials/issueCredential
Summary
The 'shape' of the vc-issuer-http-api is now that of a 'signing API': the caller provides a fully-formed JSON-LD VC (minus proof) and optionally the URI of the signing key. The API lints the input VC, attaches the proof, and returns the VC-with-proof in the output. This differs from the edge-service API which has more of a "construct-and-sign" shape: it constructs the VC from disparate bits of input and attaches a proof section.
Endpoints

vc-issuer-http-api: /credentials/issueCredential
edge-service: /credential

Inputs

vc-issuer-http-api:

credential object:

a fully formed JSON-LD VC (minus proof)

options object

assertionMethod: (optional) URI of the signing key. Eg. "did:web:example.com#z6MksHh7qHWvybLg5QTPPdG2DgEjjduBDArV9EF9mRiRzMBN"

edge-service:

@context: array of contexts
credentialSubject: used as the VC credentialSubject
issuer: unused
type: used as the VC type
profile: used in a manner similar to the assertionMethod of the vc-issuer-http-api (see above)

Outputs

vc-issuer-http-api:

unclear: an object that contains the "issued credential" and that "SHOULD include a reference or ID that can be used later for other parts of the API"

edge-service:

A JSON-LD VC with proof

Aligning edge-service with vc-verifier-http-api

TODO: will add once basic agreement has been reached

@rolsonquadras @llorllale
I think this task is now documenting what we are doing... spec endpoints + our additional endpoints.

The APIs documentation is available at https://github.com/trustbloc/edge-service/blob/master/docs/vc-rest/README.md#rest-api-endpoints.


Add a new subclass of MaterialPageRoute that uses a slide-from-right …

…transition on ios.
We also use the slide-from-right transition whenever doing the back
gesture, even on pages that don't use that style transition normally.
BUG=https://github.com/flutter/flutter/issues/5678

Here's one way we can allow different transition types for different pages. One drawback is that this is not dynamic at all - the transition type can't adjust if the page varies. E.g. the Pesto demo uses the slide-from-right transition because it's added by the framework in MaterialApp, even though it has a drawer. (It's still unclear what we want to happen in that case, though.)

This is a bit bikesheddy, but I think we need a better name than MaterialMainPageRoute. I couldn't tell from the name before looking at the code if a main page was one that did the iOS thing or not.
I think the routes that have this animation are subsidiary pages. Pages that are subpages of other pages, as opposed to pages that are top-level, like full-screen dialogs or the app's main page.

Consider a case where you have three pages, A, B, and C, and the B->C transition is iOSy, and the A->B transition is not, and the user goes back twice in quick succession. If I'm interpreting the code correctly, it'll transition incorrectly because B is going to attempt to apply an iOS-like transition to the A->B path. Is that right? I'm not sure.

I just tested out your A->B->C example after enabling escape transitions, and this whole approach breaks down - even transitioning one at a time. The problem is that the animation should be a property of the transition, while separating these classes makes it a property of the route.
For example, say you have:

A is an IOS route.
B is a non-IOS route.

The transition from A->B should use a non-IOS transition. But since the animation is part of the route, A uses an iOS escape transition (sliding off to the left), and B uses the non-iOS entrance transition (sliding up from the bottom).
I didn't notice it before because I had disabled the escape transition.

I found a way to fix the problem I described regarding the escape transitions. I'm now ignoring the forwardAnimation whenever the nextRoute is not using an ios-style transition.
I've tried a bunch of combinations of quick A->B->C transitions (pushing and popping), and everything looks correct to me.

Isn't that what the canTransitionFrom/canTransitionTo stuff is about?

Ah, so it is! I removed my hacky thing and overrode canTransitionTo instead. It works the same.

Probably needs a test that we don't do this transition if we're not going subpage-to-subpage.
With the logic moved into the sub page route so that the gesture only works for the cases where we do the animation, LGTM.

@sethladd, @HansMuller, and I just examined a bunch of iOS apps from Apple and Google and have the following proposal:

When you do a regular push/pop (not one driven from a user gesture), we always do things the regular material way, sliding in from the bottom as it fades in.
When you do a back gesture on iOS, we do the iOS transition. When you let go, we fling (based on whether you're <0.5 or >0.5 when you let go).
When you do the back gesture thing, we disable all heroes (including the toolbar) for that transition.

(This most closely matches Google Play Music on iOS.)

OK, the PR now implements your proposal.

Thanks! Can't wait to try it :)

Please add a test that verifies that the back gesture is the only way to get things to appear to move horizontally.
Please add a test that verifies that heroes don't do anything when a gesture is triggered.


Add support for component tika

There is a fix in my i1850 branch https://github.com/ppalaga/wildfly-camel/commits/i1850
but it needs to wait for Camel 2.21.0 because it requires the patch for https://issues.apache.org/jira/browse/CAMEL-11976

Blocked by camel-2.21.0

This should be unblocked now

@tdiesler I do not see CAMEL-11976 in Camel 2.20.1. We indeed need to wait for  Camel 2.21.0.

Is it intentional that there is no PR for the camel-2.20.x branch and no Fix Version for 2.20.1/2?

Since it is a dependency update that implies refactoring, it was merged only on master


Test run fails with :"Failed: Timed out waiting for asynchronous Angular tasks to finish after..."

Bug report

Node Version: v8.9.1
Protractor Version: 5.2.0
Angular Version: 5.0.1
Browser(s): Chrome 62.0.3202.89
Operating System and Version Mac OS High Sierra 10.13.1, Windows 10
Your protractor configuration file

require('ts-node/register');
exports.config = {
  suites: {
    login: [
      'test/e2e/prime.e2e.ts'
    ]
  },
  framework: 'jasmine2',
  allScriptsTimeout: 110000,
  getPageTimeout: 110000,
  jasmineNodeOpts: {
    showTiming: true,
    showColors: true,
    isVerbose: false,
    includeStackTrace: false,
    defaultTimeoutInterval: 600000
  },
  directConnect: true,
  multiCapabilities: [
    {
      'browserName': 'chrome',
      shardTestFiles: false,
      maxInstances: 1
    }
  ]
};

A relevant example test

import { browser, by, element, ExpectedConditions as EC } from 'protractor';
describe('Test to show Protractor vs Angular sync issue', () => {
    it('Prime NG growl', () => {
        browser.get('https://www.primefaces.org/primeng/#/growl');
        expect(element(by.css('.ui-button[label="Warn"]')).isPresent()).toBe(true);
        element(by.css('.ui-button[label="Warn"]')).click();
        element(by.css('.ui-button[label="Success"]')).click();
    });
});

Output from running the test
Failed: Timed out waiting for asynchronous Angular tasks to finish after 110 seconds. This may be because the current page is not an Angular application. Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular   While waiting for element with locator - Locator: By(css selector, .ui-button[label="Success"])

Steps to reproduce the bug
Just run above test case.

The URL you are running your tests against (if relevant)
https://www.primefaces.org/primeng/#/growl

Hi protractor team,
Recently we have faced with blocking issue, synchronisation between Protractor and Angular fails. Please use above test example to reproduce the issue.
If modify the test case and put browser.waitForAngularEnabled(false); after the first click - test passed success. So it looks like Protractor becomes waiting for Angular to complete its tasks infinitely.
Please investigate the issue and help to fix it as it's a really blocker for our team now.

I have the same issue. The problem is not protractor, it's the growl component from primeng. It uses timeout() so the protractor thinks that the angular is busy and waits until timeout. That's why when you use waitForAngular(false) it works. I didn't find a solution yet too.

Thanks jotapsi.
In this case I see 2 probable issues:

It's Primeng issue, and they have to fix the issue.
Primeng uses timeouts as it's allowed by Angular. So in this case Protractor should handle such cases somehow.

Yeah, you can see here, on the initTimeout() method, there is a setTimeout function. You know this is the problem because when you set the "sticky" input to true, the protractor problem goes away, at least in my case.
My workaround for now is set waitForAngular to false and finish my test case this way, then I set it back to true and do a page refresh, resetting the timeout and then we can do the other tests normally.
PrimeNG could add an input to the Growl Component so we could run the timeout outside angular zone, thus resolving the issue, but I don't really know if they are willing to do that.
I really do not believe it's Protractor's fault, technically it's working as intended.

I see this too. I have the following versions installed :
Node Version: v8.9.1
Protractor Version: 5.2.0
Browser(s): Chrome 62.0.3202.89
Operating System and Version Mac OS High Sierra 10.13.1
I observed this since last two days when my tests which were passing earlier suddenly started to fail.
My bad , setting browser.waitForAngularEnabled(false) isn't really solving the problem as it is inconsistent and not working every time.
Please suggest a work around till the issue is solved completely.

update : My dev team made changes to the application code which made the timeout to run outside angular zone. This made my tests green. But , i strongly believe this needs to be considered by protractor , perhaps.

Yes, I believe, there are some other components expect PrimeNG growl one. That might use timeouts as well. So we have to deal with such cases.
It's better to get some thought about the issue from Protractor's team. As they might be aware of the issue and have some generic approach how to workaround it.

For now, if you have a "Repeated" setTimeout / setInterval in your app, Angular will always waits for your "setTimeout / setInterval " and therefore never stable and Protractor will wait for it forever.
The regular solution is let that kind of  "Repeated" setTimeout / setInterval run outside the Angular so that Angular zone won't be aware of that kind of async tasks.
But that solution is not ideal, some third party library has that kind of async call and we cannot change third party library.
Our current plan is to introduce a new mechanism to let Protractor ignore some asynchronous tasks based on some Rules.
@heathkit is working on it, but it is involved with lots of changes in Angular and Zone. There's no ETA for that right now.

I am also facing the same issue in my project.

Same issue

Same issue.

Same issue.

Same issue....

As mentioned above, this was caused by repeated settimeout/setInterval in the test app.
Just sync with @heathkit His change probably can be checked in at the end of this month, which should be able to let Protractor conditionally ignore some asynchronous tasks.
For now, the recommend way is to let the repeated settimeout/setInterval run outside angular, so that it won't affect the stability of angular.
If you cannot do so, e.g. the repeated settimeout/setInterval  comes from a third party library, you have to
disable sync with angular in your test:
browser.waitForAngularEnabled(false)

Thanks, the browser.waitForAngularEnabled(false) worked for me!

I have the same issue. I have a bit of code running on a Rxjs interval and get this error. If I comment out the interval, all is well.

You need to use browser.waitForAngularEnabled(true) before the timeout. this code(browser.waitForAngularEnabled(true)) will wait for pending http requests and timeouts to finish. This worked fine for me, Hope this will work for you guys also.

Faced this issue today ✋
In my case, I believe that it is caused by pending http request to angularfire2.
I solved it by adding
    browser.waitForAngularEnabled(false);

Fixed by PrimeNG team.
The issue is being closed.

@aozolin can you confirm in which git commit/issue/release version this is fixed? Perhaps by referencing the fix PR to this issue?

For anyone else wondering, incase they don't reply, I'm assuming they meant either #4681 or #4681

Hello.
I have the same problem with timeouts on Angular application, which uses primeng = 5.2.5.
Could you please specify in what version of primeng this problem was fixed?
Thank you.

@qiyigg Do you know if the change you mentioned (to let Protractor conditionally ignore some asynchronous tasks) was ever merged in? And if so, is there any documentation or examples for how we might use this feature? We're running into this same problem with libraries besides primeng.

@aschlei Sorry, It hasn't been checked in yet.
For now, you can disable sync with angular in your test:
browser.waitForAngularEnabled(false);

Same problem but this solution worked OK.
browser.waitForAngularEnabled(false);

@qiyigg Do you know if the change you mentioned (to let Protractor conditionally ignore some asynchronous tasks) was ever merged in? This is now a problem for everyone using Firebase with Angular & can imagine this will be an issue that will keep coming up.

@JamboBuenna As far as I know, @heathkit  task was paused, and mainly because the original implementation relies on some Angular API that we might deprecate soon.
add @vikerman, who will take over the Protractor stuff.

We do have a design for this, but I'm no longer working on Protractor and haven't had time to put it together.
Anyone who wants to could make a Protractor plugin using the new Testability API that could selectively ignore tasks. The rough outline would be:

Create a Protractor plugin that implements waitForPromise
In your new waitForPromise, call Testability.whenStable() and pass it an update callback (see https://github.com/angular/angular/blob/16c03c0f38491444942fb165f1e8e2c7651d1494/packages/core/src/testability/testability.ts#L191). This callback will be called every time an async task starts or finishes.
In your update callback, look at the list of tasks and filter out the ones you don't care about. If the update callback returns true, whenStable() will return.

The current implementation of Testability does depend on Zone.js. However, I think you can count on Testability.whenStable() to continue to have knowledge of async tasks, regardless of what, if anything, happens with Zone.js

@vikerman Can you help with it?

i had the same issue and started to implement a plugin for this.
https://www.npmjs.com/package/protractor-sync-options-plugin
you can already use it to ignore some special async tasks.
need community help to develop it to high quality and probably more protractor/angular versions.


query parameter usage

how to use multiple entities in the entity table? when running the generator i have this error
//////////////////////////
The parameters of the query method must be used. Use id in the query or remove it.
package: testdb / dao / nobodyDao.dart: 11:43
??
11 │ Stream <Person?> FindPersonById (int id);
^^
the is my personDao
import 'package:floor/floor.dart';
import '../entity/person.dart';
@dao
abstract class PersonDao {
@Query('SELECT * FROM Person')
Future<List> findAllPersons();
@Query('SELECT * FROM Person WHERE id = :id')
Stream<Person?> findPersonById(int id);
@insert
Future insertPerson(Person person);
}

remark:
when using just one entity, i'm able to generate the code but with multiple entities i have the parameter query error
please help me

Remark:
when i work only with one entity, and run the generator, all works well. So please how to use many entity and how to use query parameter like id?

@BROWN-PROGRAMTECH what do you mean with multiple entities?

@BROWN-PROGRAMTECH

The parameters of the query method must be used. Use id in the query or remove it.
package: testdb / dao / nobodyDao.dart: 11:43

Your error is talking about nobodyDao.dart, but the code you pasted is called PersonDao.
Are you looking at the correct file?


Removes internationalization through the app

Description of Change
Removes translations throughout the whole app and just shows one example on one page so we don't have the burden of translating everything.
I've kept the Settings page intact which can serve as a demo for the localization for now. We might want to consider moving that somewhere else to make it more clear it's a demo.
Bugs Fixed

Fixes #464

@AndreiMisiukevich please prioritize and merge if you think it's OK since this will affect a lot of files and therefore also other people/PRs

The build actually succeeded. Not sure why that's not reported here, so ignore the failing build. Although you probably won't have the ability to still merge then... Just approve, ping me and I'll push it through 😅

Too late, I'm using magic powers now :P

Too late, I'm using magic powers now :P


svg files with embedded image no preview

ℹ Computer information

PowerToys version: v0.29.3
PowerToy Utility: File Explorer Preview
Running PowerToys as Admin: no/yes
Windows build number: Version 20H2 Build 19042.746

📝 Provide detailed reproduction steps (if any)

Open Folder in Explorer; View set to Big symbols

✔ Expected result
Image preview of SVG-file as thumbnail
❌ Actual result
No image preview of SVG-file when it contains embedded image, see in screenshot
Expected output is 2. screenshot
SVG is only Curves
📷 Screenshots

Duplicated of https://github.com/microsoft/PowerToys/issues/8856
Already fixed for 0.31

Duplicated of https://github.com/microsoft/PowerToys/issues/8856
Already fixed for 0.31


Fix Seed logging test

How to categorize this PR?

/area testing logging
/kind bug
What this PR does / why we need it:
After #7568 , the name of the fluent-bit daemonset is not constant, also the clusterrole and clusterrolebinding names have changed.
This PR adapts the test to this change.
Also for cluster scoped resources, we should not specify the namespace.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/cc @vlvasilev @nickytd
Release note:

NONE

/milestone v1.71


Add dependabot.yml for dependency version updates

What
Adding base config for dependabot.yml, which enables automatic PRs for dependency version updates through Dependabot. This base config sets version updates to run on a weekly schedule, groups PRs for version updates according to major vs minor/patch updates, and sets max PRs that Dependabot can create for version updates per package-ecosystem.
But if you would like, several config options can be added to dependabot.yml as per configuration-options-for-the-dependabot.yml-file to customize version updates, such as:

Group PRs for version updates by different criteria
Set dependency-type option in allow option to all for enabling version updates for both direct and indirect dependencies (as well as prod and dev dependencies). By default, PRs for only updating direct prod+dev dependencies versions are created.
Set reviewers for Dependabot version updates PRs
Etc.

Also, automatic PRs for security updates through Dependabot are already enabled through a global setting. PRs for security updates will be grouped as much as possible across directories and per ecosystem through the global setting (grouping-dependabot-security-updates). But dependabot.yml can also be used for more granular security updates settings in addition to version updates (some of the options in dependabot.yml are shared across security and version updates), such as:

Grouping security updates according to custom criteria: overriding-the-default-behavior-with-a-configuration-file
Only allowing automatic PRs for security updates for certain dependencies by configuring allow directive to a certain value such as production, development, direct, indirect. By default, security updates are applied to all dependencies (direct, indirect, production, development).
Etc.

Why
To enable using the latest package versions, and provide a way to customize Dependabot security updates PRs.
Known limitations
N/A

Preview is available here:http://laboratory-pr918.previews.kube001.services.stellar-ops.com/

@janewang Should we add this only to v2 since v1 is going away soon?

@quietbits Yes, adding to v2 makes sense to me

@kanwalpreetd Should I open another PR request using laboratory-v2 branch as a base? Changing the base branch for this PR has conflicts, so it might be easier to open a new PR.

Preview is available here:http://laboratory-pr918.previews.kube001.services.stellar-ops.com/


initial documentation code

I am adding the inital docs folder to auto-build docs into the dev source tree.
Should not break anything as no source code changes within LMcache have been made.

Hey Siddhant, thanks for creating the PR! Will take a look soon
2 minor things:

If you want to add reviewers, please add it in reviewers section instead of assignees section (see the screenshot below)

Can you add "this PR resolves #" in the description if you think your PR addresses the issue? In this case, this PR will be linked to that issue and make it easier to track tasks. (Also, will be useful to take a look at this: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)

Hey @ApostaC
This initial PR doesn't completely close Issue #47 , as a few more iterations need to be made to have the documentation complete. So we shouldn't close the issue yet.

Got it!
So do you want to continue pushing to this PR, or merge it first and create different tickets for the remaining tasks?

Let's merge this one and I will create new, smaller tickets for specific parts of the documentation. It's too big to handle in one ticket I feel.


Pass extra argument to the script

Right now arguments to the bindgen are limited in the script. We should be able to pass the argument more flexible way.
example: ./script//generate_binding.py -k "/blah" -o "blah" [rest of arg to the bindgen directly copied]

We can most probably support this in the following format:
./scripts/generate_binding.py --kernel ../linux-stable --log-level debug --bindgen "--with-derive-eq --with-derive-ord"
DEBUG:root:Installing kernel headers at /tmp/linuxiwd2ds3d
DEBUG:root:Start generating unified header file
DEBUG:root:Done generating unified header file
DEBUG:root:Running bindgen:
    bindgen --no-doc-comments --with-derive-default --no-derive-debug --with-derive-eq --with-derive-ord --rustified-enum hv_register_name     /tmp/linuxiwd2ds3d/combined_mshv.h -- -I /tmp/linuxiwd2ds3d/include > mshv-bindings/src/bindings.rs

DEBUG:root:Cleaning up installed header files

@russell-islam What do you think? I am considering adding additional option called --bindgen to pass the bindgen args.

The proposal looks good to me. Please address my comments in the PR.


Database issues on windows

Describe the bug
When playing a track, there is an issue with it being stored in the database (it just isnt?), so as a result nothing is stored.
How to Reproduce the error
Steps to reproduce the behavior:

Open application with console
Play any track
Notice that there is a large error message upon it playing.
Notice that it doesnt store the track in the database

Expected behavior
The track to be stored in the database
Client (please complete the following information):

OS: Windows 10
Were you using the most recent version? (Y/N)
Yes

Database issue has been resolved


[web] Add onEntrypointLoaded to FlutterLoader.

The current promise-based API of flutter.js to inject the entrypoint and report back with an "engine initializer" object does not work well with Flutter web's hot-restart feature, and in fact, reverts to "auto" initialization upon hot restart as a "fix". See: https://github.com/flutter/flutter/issues/108403. This is a problem for incoming changes on flutter, where we might want to pass custom parameters to the initializeEngine/runApp JS methods.
onEntrypointLoaded event
This PR adds a new onEntrypointLoaded method to the FlutterLoader provided by flutter.js that triggers a new "flutter:entrypoint-loaded" event every time the app (hot)restarts, so the rest of the custom initialization code can run.
The new init sequence of a flutter app that survives hot-restart looks like:
<script>
  window.addEventListener('load', function(ev) {
      // Download main.dart.js
      _flutter.loader.loadEntrypoint({
        onEntrypointLoaded: onEntrypointLoaded,
        serviceWorker: {
          serviceWorkerVersion: serviceWorkerVersion,
        }
      });

      // Once the entrypoint is ready, do things!
      async function onEntrypointLoaded(engineInitializer) {
        const appRunner = await engineInitializer.initializeEngine();
        appRunner.runApp();
      }
  });
</script>

This separation also makes quite obvious what things will run once (loadEntrypoint) vs what will run every time the engine hot-restarts (onEntrypointLoaded).
Detangle flutter.js ServiceWorkerLoader from EntrypointLoader
In a first (small) step towards modularization of the library, this change detangles the old "loadWithServiceWorker" logic into: load service worker, then load the entrypoint.
The old logic basically attempted very hard to load a service worker, but if for any case it'd fail, it'd always "fall back" to the _loadEntrypoint method.
The new logic separates the Service Worker install logic from the Entrypoint loader, so it can be loaded in two steps:
loadServiceWorker --(warn of errors, but always continue)--> loadEntrypoint

The new structure makes it easier to ES-Modularize the file in the future, or inject custom behavior for any/all of the steps of the bootstrap. (Some extra modularization is still required from the FlutterLoader bits, but this looks like a nice start).
Issues

Fixes https://github.com/flutter/flutter/issues/108403

Tests

Tested manually on MacOS/Linux/iPhone, here: https://dit-bootstrap-tests.web.app
Added an integration test to CI, similar to the others used to test flutter.js

Backwards-compatibility

The code above is backwards compatible with all former initializations of flutter, as demonstrated by the different types of integration tests we have so far.

Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

PTAL @eyebrowsoffire, I think we addressed most of what we discussed. I also separated the "injecting the entrypoint" bit from the core loader, so it can also be (eventually) user overridden.

(Force-push after rebase with master)


Rows missaligned when fixed column is used with cells that contain wrapped text

I use

"handsontable-pro":"^1.15.1",
"vue-handsontable-official": "^1.1.0",
Chrome 61 on Windows

If i have wrapped text in the cells and fixed columns i get a missalignmend in the rows at the point between fixed and rest columns.
The problem is described in the following issue:
https://github.com/handsontable/handsontable/issues/3239
But the fix does not work for me with vue-handsontable-official.
It can be reproduced with the vue-handsontable-official demo.
https://github.com/handsontable/vue-handsontable-official/tree/master/demo
Change the demo in the folliwing way:
Push more content into the cells.
 row.push('[' + i + ', ' + j + ']' + 'sadadadadadadadadasdasdsd asdasd aasd asd asd sad');
Set fixed width to the columns so the text wrapps:
colWidths: [80, 100, 150, 80, 200, 200, 250, 100, 150, 250, 200, 400, 60, 130, 300, 300, 200, 300],
Fix the columns:
fixedColumnsLeft: 3,
Scroll right and down than the missallignment appear.
Add
autoRowSize: true,
to fix the problem.
But the problem still appears.

Hi @michaelkrnac
Can you record the behavior? I am not able to replicate it on my local machine. I am also trying it on Chrome (but v63) on Windows.

Hi AMBudnik,
here is the record.

And here are the hotSettings i use.
It is also reproducable with Firefox 58.0.1 on Windows.
   hotSettings: {
          data: function(rows, columns) {
            const result = [];
            for (let i = 0; i < rows; i++) {
              let row = [];
              for (let j = 0; j < columns; j++) {
                row.push('[' + i + ', ' + j + ']' + 'sadadadadadadadadasdasdsd asdasd aasd asd asd sad');
              }
              result.push(row);
            }
            return result;
          }(40, 40),
          colHeaders: true,
		  colWidths: [80, 100, 150, 80, 200, 200, 250, 100, 150, 250, 200, 400, 60, 130, 300, 300, 200, 300],
   		autoRowSize: true,
      		fixedColumnsLeft: 3,
        }

Thank you for sharing.
I have replicated the issue on Firefox 58. However, I have Chrome 63 that does not reflect the same issue.

I have the problem also with Chrome 64.

Hi guys. I have tested the following code http://jsfiddle.net/handsoncode/uftbx0oy/ with Handsontable v 0.38.1 and it seems to work on all browsers on OSX and WIndows. Can you check it?

Hi @michaelkrnac.
This bug occurs in main library handsontable/handsontable#3618. There you can track work progress.

Please track progress to https://github.com/handsontable/handsontable/issues/3618
We close tickets that are duplicates.


[TODO] Add multiple databases and schemas to the test environment

To help test PRs like https://github.com/apache/superset/pull/16393
We should create multiple databases & schemas for the ephemeral test environment.

@ktmud I don't fully understand. Can you give an example? 🙏

So that this dropdown can have multiple values.

i think we have max 3 schemas in our current internal testing db

so these changes are only on the UI and passing the option to the DBMS  or do we need to do more?

In an effort to trim up the Issues backlog, I'm wondering if we want to:
a) close this as stale (since it hasn't been touched in over a year)
b) move it to an Ideas thread, and see if we can drum up any support/discussion there.
Thoughts @ktmud ?

I have added 5 databases on my test environment and i think this issue dosen't exist any more. please cross check it in the latest version and close the issue if already resolved.

Thank you @Shazad-khan! Closing for now, but happy to revisit if needed!


Allow the user to override the commands for git, ssh-agent, and ssh-add

On my self-hosted Windows runners, the git, ssh-agent, and ssh-add commands are not located in the locations that are currently hard-coded in paths.js.
With this PR, I am able to get this action to work on my runners as follows:
- uses<EMAIL_ADDRESS>  with:
    ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
    git-cmd: git
    ssh-agent-cmd: ssh-agent
    ssh-add-cmd: ssh-add

@mpdude Could you review this?

Bump @mpdude

Bump @mpdude

LGTM, thanks for the contribution!
For completeness, could you also please document the new inputs at https://github.com/webfactory/ssh-agent#action-inputs?
thanks

For completeness, could you also please document the new inputs at https://github.com/webfactory/ssh-agent#action-inputs?

Done!

Bump @mpdude

@mpdude can we merge this? Looks good to me.

Thanks for your contribution, and sorry for the delay.

No worries, thanks for merging!
And thank you @mpdude and @sebastiankugler for the reviews!


Colspan behavior in stack mode

In Stack mode, a column with a colspan gets a label consisting of all the th columns that apply to it. Sometimes that's good, but many times the desired behavior would be to just hide the label entirely. Is there a way to do that? I tried using data-tablesaw-ignorerow but it doesn't seem to do anythng in Stack mode.

Never mind, i found it. Adding data-tablesaw-no-labels to a row will avoid having it get labels in stack mode.


Generation of sdk documentation from rendered templates

Enables generation of documentation for the sdk.
The documentation will be hosted by github pages. Github pages requires the documents to live on the master branch under /docs
As a part of reworking this repo, there will be some changes required to document generation, these changes will be captured as a part of @bredmond-sf 's spike doc.
Work remaining outside of this PR to complete the story includes:

[ ] 1. Setting up and configuring github pages.
[ ] 2. Updating @bredmond-sf 's doc.
[ ] 3. Creating a quick start guide for generating doc on other projects.
[ ] 4. Update release docs.

What is your vision for a process to updating this?

What is your vision for the process of updating the docs?
@monkey-jeff for now, In the release notes I'm going to add a line to update and commit the docs the designated release engineer runs the build.


Add "Maintaining consistency in codebases with Go Vet" blog post

@agnivade I wanted to keep it simple and only a shallow explanation, I can go a bit more in to the woods there.
I'm investigating about Facts to improve the flag.Parse checker, but I think that is out of the scope of the post.

I think a mention about inspect.Preorder will be good as it will help newcomers writing vet passes. No need to go any deeper than that. But it was just a suggestion. Totally your decision.


Implement RPL Rank logic

Should be merged after #773 .
This implements the RPL Rank logic, which is defined here:
https://datatracker.ietf.org/doc/html/rfc6550#section-3.5
https://datatracker.ietf.org/doc/html/rfc6550#section-3.6
https://datatracker.ietf.org/doc/html/rfc6550#section-3.7

bors r+


June 21 - 25 - Create dynamic pages in Vue.js

Event Information

Category
Details

Reactor Topic
Coding, Languages, and Frameworks

Title
Create dynamic pages in Vue.js

Description
One of the goals of any web framework is to dynamically update the dynamically based on data values. In this workshop, explore how to make your page dynamic based on those values and how to display lists of information and render content conditionally. You'll see how to add forms to a Vue.js page and respond to user events. You'll also see how to add computed values that can be calculated based on updates to the data. It is recommended that you have familiarity with HTML, CSS, Git, npm and JavaSctipt.

Level
Beginner

Content
https://aka.ms/VueDynamicRendering  and https://aka.ms/VueDataEvents

Workshop(s) details

Date
Local Start Time
Location
Speaker
SharePoint ID
Platform

June 22, 2021
6:30 PM
Bangalore

13100
----------

June 22, 2021
4:00 PM
US/CA/AU

13101
----------

June 23, 2021
7:00 PM
Sao Paulo

13102
----------

June 23, 2021
7:30 PM
Shanghai

13103
----------

June 23, 2021
12:00 PM
EMEA

13104
----------

Event Checklist
10 Weeks Prior

[ ] Reactor Content Team (RCT) opens a new issue for an upcoming local workshop filling in the Event Information and Workshop details tables. RCT member who owns content (content owner) this week will be the assignee.
[ ] RCT and content owner discuss details of the event in the comments of this issue. RCT adds a confirmed-event label and local-digital-event tag to the issue and adds event to the Local Digital Events project. Issue will appear in the Upcoming Streams column
[ ] RCT adds a ready-for-marketing-edit label so the RCT can review title and description

8 Weeks Prior

[ ] RCT does a review of title and description and removes the ready-for-marketing-edit label
[ ] RCT moves the issue to the Ready for SharePoint column
[ ] RCT informs the Reactor Marketing Team of the new event information
[ ] RCT confirms the speaker
[ ] RCT provides speaker with assets (e.g. slides, overlays) and the survey data for the event
[ ] RCT moves the issue to the Content Preparation In Progress column

5 weeks Prior

[ ] Content owner opens a PR with the new content for the workshop on the customer-facing Reactor repository and adds the content-development and local-digital-event tag to the PR.
[ ] RCT reviews, approves, and merges the changes
[ ] RCT shares content with the vendor/instructor
[ ] RCT provides vendor/instructor with assets (e.g. slides, overlays) and the survey data for the event
[ ] RCT ensures that instructors have received an invite to the workshops and that PM team works with instructors to get setup in the platform (e.g. Teams, Teams Live Event)

1 Week Prior

[ ] Connect vendor/instructor with the PM(s) for the locations where this event has been marketed
[ ] Check-in with vendor/instructor that they are prepared for the workshop
[ ] RCT moves the issue to the Ready to Stream column

During and After Stream

[ ] Instructor (and optional moderator) run the stream
[ ] _(Optional)_RCT submits recording to be uploaded to the Reactor YouTube and to be made available on LearnTV
[ ] RCT moves issue to the Stream Complete column

@mebaumb this is ready for your review!

Instructor notes
Share these link with attendees at the beginning of the workshop:

https://aka.ms/VueCliComponents
https://aka.ms/VueDataEvents

This workshop covers two short modules on dynamic displays and data events.
Workshop steps:

Start with an introduction to dynamic displays. Explain the learning objectives for this module.
Learn how to render lists.
Learn how to use conditional rendering.
Walk through knowledge check and summary
Move on to the data and events module. Start with an overview of dynamic data and events.
Explore how to work with forms.
Add event handlers
Add computed properties
Walk through knowledge check and summary

Wrapping up:

Please encourage attendees to rate the module 😄
Share out the survey link: https://aka.ms/Reactor/Survey with the event code (the Reactor contact on the call can give you this)

@meaghanlewis I think the first sentence has a typo, I updated the first sentence below:
One of the goals of any web framework is to dynamically update the page based on data values. In this workshop, explore how to make your page dynamic based on those values and how to display lists of information and render content conditionally. You'll see how to add forms to a Vue.js page and respond to user events. You'll also see how to add computed values that can be calculated based on updates to the data. It is recommended that you have familiarity with HTML, CSS, Git, npm and JavaSctipt.

@meaghanlewis Based on the description of the workshop steps 1-4, I think the link to be shared with the attendees should be
https://docs.microsoft.com/pt-br/learn/modules/vue-dynamic-rendering/ instead of https://aka.ms/VueCliComponents.
CLI components are covered in another workshop.

@fabriciomurai - You're absolutely correct, I have edited the instructor notes to reflect the change.


[Bug] Doris MATCH_ANY not works fine while with chinese words

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
2.1.0
What's Wrong?
match_any is works bad with chinese words.
such as:
select * from a;
id     keyword
1      你好中国
2      你好世界
3      好事情
select * from a where keyword match_any '你好 中国'
id     keyword
1      你好中国
2      你好世界
3      好事情

What You Expected?
select * from a where keyword match_any '你好 中国'
id     keyword
1      你好中国
2      你好世界

How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Any progress?


EMA Calculation incorrect using Warm-up data

Note: for support questions, please join our Discord server

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Action taken (what you did)
I run gekko using command line so that it can stitch together historical data so that I can use EMA's for my strategy

Expected result (what you hoped would happen)
I log the EMA value to the console so that I can track the result of the EMA on each candle.
I currently export the SQLITE database into a CSV and run the same strategy on the Tradestation platform as a quality control check. I check to see that the console value matches the one in Tradestation.

Actual result (unexpected outcome)
The value of the EMA's when gekko starts are incorrect.  I am not sure why, but they do not match with what Tradestation shows (the database is the same and the EMA calcs are the same).  I currently run 2 EMA's (a short and a long).

Both the long and the short EMA eventually become correct and in sync with what they should be, but this is dependent on getting data while in live mode.  For example, a 10 candle EMA will be accurate once gekko has been running live for 10 candles..... but it should be correct from the moment gekko starts using the command line, no?  It should be able to pull historical data and give an accurate value.
Given that the values do eventually become accurate, I believe the bug has to do with calculating values with data that is both historical (in the database) and new data that comes in while gekko is running live.

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

I realize there is another bug report similar to this issue that I am having.  I think the bug report is different, but possibly the root underlying cause is the same?  I am not sure.  I didn't quite understand the issue that was submitted, so I posted my own.  This might be a duplicate issue.

What do you mean with inaccurate? Could you provide logs or numbers (including the dataset & EMA parameters to reproduce)?

Let me go through the issue in chronological order to show the issue.  Please let me know if there is any confusion.
Setup:
Exchange: GDAX
Product: BTC
Candle Size : 5 Min
EMA 1 Length: 13
EMA 2 Length: 125
Scenerio:
I have been running my strategy for at least 12 hours so far (it was on overnight).
Picture #1:  This is a screenshot of my console of the data that is printed on each new candle.  Please notice a couple things.  First, the time stamp is 11:10:19.  Second, 'myEMA' is the 125 candle EMA and 'tradeEMA' is the 13 candle EMA
Picture #2:  This is a picture of the data that was exported from SQLITE and into Tradestation (3rd party software).  Please note the time stamp of 11:10.  There are TWO EMA outputs on the screen for 11:10 which are 5327.62 and 5207.99.  These values are calculated in Tradestation (not Gekko).  The only thing I pulled from Gekko was the data.
Observation.  If you compare Picture #1 and Picture #2 you will see that the 11:10 time stamp show identical values (there is a small rounding error for the 125 min candle, but that is not a big deal).  At this point, everything looks good and the quality control check shows that the data calculations are accurate.
Picture #3:
I stopped Gekko and restarted it.
Picture #4:
Once Gekko was initialized and the update function in the strategy fired, I was able to get a console print of the new values at 11:25:08.  Please note the values of 'myEMA' (5320.06) and 'tradeEMA' (5209.07).
Picture #5:
I pulled the data from the gekko database again and imported it into Tradestation, please look at the 11:25 time stamp for the 2 EMA's.  You will see 5322.14 and 5209.07.  The data is the same (you can look at the 11:10 time stamp and it is the previous values from picture 2).
In this real time example, the error in calculation of the 125 candle EMA  is 5322.14 vs 5320.06.  This is actually smaller then I have seen before and I believe it has to do with the fact that I stopped gekko and started it within a few seconds (see picture #3).  This is not the case in real life when I may stop it for 5 or 10 minutes while I make updates.....the difference in the EMA value can be 10-20 points sometimes.
Hopefully this helps in some way.  Let me know if you need me to test anything or provide extra info.  Thanks again for all the hard work with this.  It's a great program.

Anyone have any thoughts on why this may be happening?  I think the issue could potential be effecting the true values of all the TA indicators that are being used.


Fix graph annotation DateValue data values.

Previously the annotations would not accept DateTime values for a coordinate.  This is fixed and needs to be noted in the documentation.

I updated the documentation.  Close this issue.


Rework TLSPortPolicy()

          This change makes no sense to me? It hard-codes port to 25 for non-TLS connections, it seems to me? There is no way to set `fallbackPort`?

Previous behavior made more sense to me. With TLSOpportunistic, I want to connect to port X, if it supports STARTTLS, use TLS, otherwise, use the same port, but just do not use TLS. Currently, if I use SetTLSPortPolicy(TLSOpportunistic), if the server does not support STARTTLS on port X, it tries to connect to port 25 on that server - which might not even be available (or accessible - firewalls and stuff).
I do not get issue #105 either. Is this about behavior if one does not call WithPort? I think if WithPort is not made, then default should be to connect to port 25 (or 587?) and try STARTTLS on it, if it fails and TLSOpportunistic is set, use no TLS on same port. The behavior to try different ports makes no sense to me. You use one port, but potentially negotiate different configuration of how you use it. And WithPort is then used to configure which port is the one the client uses.
Luckily, WithTLSPolicy still works and if I use WithTLSPolicy it is exactly how I would want. Maybe just remove deprecation on it?
But I do think that connecting to multiple ports is a strange approach. That might be done by some higher-level library to auto-detect configuration of an unknown SMTP server. But not by a low-level library like this one where you generally know the server you are connecting to.
Originally posted by @mitar in https://github.com/wneessen/go-mail/issues/170#issuecomment-1965595454

That's good information to take into consideration. Thanks @9214


This IDE is insane!!!

The number of features you implemented in the IDE is simply mind boggling! I am truly blown away. Great job and thank you very much for investing your time to create something this incredible and releasing it to the open source community!!!

awww. Thanks :rose: :heart:


Step for the hourly forecast

Firstly thanks for the amazing module!
Is there a way to set a step to display for example every second hour in the hourly forecast?
I have a small screen and can't show every hour, but would like to get the whole day on there.
Thanks!

Hello @dennisklad
Unfortunately, there are no way to set a step.
The hour label in x-axis is automatically omitted if you set width as a small value for your small screen as the folowing screenshot.

I may be able to suggest a better configuration if you can share your config and screenshot.

Thanks for the reply.
This is my config:
{
      module: "MMM-WeatherChart",
      position: "top_right",
      config: {
              apiKey: "9b4e847341164e5f9917ce01ee453203",
              apiVersion: "3.0",
              apiEndpoint: "onecall",
              updateInterval: 10 * 60 * 1000,
              dataNum: 12,
              dataType: "hourly",
              height: "230px",
              width: "430px",
              lat: 52.490205844251676,
              lon: 13.324980946263821,
              units: "metric",
              showRain: true,
              showZeroRain: false,
              //includeSnow: true,
              showSnow: true,
              showZeroSnow: false,
              showIcon: true,
              datalabelsRoundDecimalPlace: 0,
      }
},

I have tried the width and height in your config.

The figure on x-axis looks good. But the weater icons are overwrapped each other.
Your comment

I have a small screen and can't show every hour

means that the weather icons are not shown well?

Okay, that's fine. I though maybe there is a better way to do this :)
Thanks!


ILuaTypeInfer does only call first found extension instead of all

Environment

Name
Version

IDEA version
IU2021.2.3

Luanalysis version
1.3.0

OS
Ubuntu 18.04

What happens?
I want to add additional type guessing for the Factorio LUA API plugin i write, while moving it from EmmLUA to Luanalysis.
I run into the problem, that i can only override all type guessing, which causes some sideeffects like wrongly guessed/created classes.
It would be great to have the possibility to add typeGuesser without overriding the default one (like in EmmyLua itself).
Current code you use to guess a type:
fun infer(target: LuaTypeGuessable, context: SearchContext): ITy? {
    for (typeInfer in EP_NAME.extensionList) {
        ProgressManager.checkCanceled()
        return typeInfer.inferType(target, context)
    }
    return null
}

I would suggest to call all added extensions. (I would use type any to  determine if nothing useful was found.
Like this:
fun infer(target: LuaTypeGuessable, context: SearchContext): ITy? {
    for (typeInfer in EP_NAME.extensionList) {
        ProgressManager.checkCanceled()
        val type = typeInfer.inferType(target, context)
        if (type != null) {
            if (type != Ty.getBuiltin(Constants.WORD_ANY)) {
                return type
            }
        }
    }
    return null
}

really rough code, since i am not used to kotlin or Luanalysis internals.

Since that is blocking me: Which way do you want it to be implemented?
I will try to add that feature back in myself, so i can get that problem out of my mind :)

If you submit a PR along the lines of your original idea, that'd be preferable for now. However, stick to null comparisons rather than using any to signify the lack of inference[1].
I'm not entirely adverse to changing the external API, however I'll have to think about the semantics some more. It may, for example, be important to know which extension inferred the "current" type.
[1] EmmyLua used any to signify the lack of a type internally and I've made a conscious effort to move away from this, although the effort is incomplete. The reasoning is that I want the lack of type inference to bubble as some of the more advanced type checking logic needs to be able to discern the lack of inference from explicitly typed any.
Also, at some point in the future I'd like to make the "lack of inference" behaviour user configurable. Specifically, I'd like to introduce a unknown type similar to that found in TypeScript; a type that exhibits safer variance semantics.


.deb packages not available anymore

Hi, i see that job artifacts are expired so it's not possible anymore to download .deb packages.
Would it be possible to rebuild one of 3.4.0 version?
Thank you
Luca

yes plz rebuild it!
the link on master and develop branches if broken!

Action script repaired, and edumeet.deb artifact is created again. Is should be considered to add .deb file as release asset.


Replace dask.dataframe

At some point import dask.dataframe should point here.  When should that happen?
Broadly
One answer to this question is "once dask-expr fully supports the existing dask.dataframe API".  I think that I reject that answer (not that anyone is giving it).
Another answer is "once we'd recommend a new user use dask-expr over using dask.dataframe, being aware of the limitations of each".  This is also probably something to reject because it discounts the surprise of existing users.
Probably the answer is some blend, when dask-expr is "better enough" that it makes sense to surprise people a little.
Specifically
What are the major API points that we should address before moving?
What are explicit non-goals?
Is there anything we should be doing now to smooth the way?

Probably the answer is some blend, when dask-expr is "better enough" that it makes sense to surprise people a little.

Building on this, I think that the blend depends on how much we care about current users (avoiding churn) vs how much we care about new users (growth).  I'm inclined to be pretty growth-oriented, which would encourage us to make the move pretty early.

Is there anything we should be doing now to smooth the way?

Having an off-by-default config option in dask/dask that swaps out dask.dataframe for dask-expr seems like a good initial step with low (no?) risk

dask-expr is the default in dask/dask, so closing


extraneous cors http_filter in cors example

Title: extraneous cors filter in cors example
Description:

In github.com/envoyproxy/envoy/examples/cors/frontend/front-envoy.yaml there is a http_filter for envoy.filters.http.cors.  I could be confused but I don't think that is necessary.  The cors setup is on the backend front-envoy (backend/front-envoy.yaml). I removed it and everything worked the same - as expected.  If I am wrong can someone point me in the right direction?

cc @dschaller @phlax


Plugins don't seem to work

Since the OPTIONS pragma isn't supported, the only alternative seems to be to do:
:set -fplugin Plugin.DefaultType

This produces no output, even when the module doesn't exist. It doesn't seem to be doing anything and definitely doesn't enable the plugin.
Is there any other mechanism for enabling plugins?

Looks like plugins are working after all with :set
In case anyone else finds this, plugin errors don't appear immediately like they do in GHCi.

Sadly, plugins don't work. But in a confusing way!
Start with a notebook that has the ghc-typelits-knownnat package available.
:set -XFlexibleContexts -XFlexibleInstances
:set -XPolyKinds -XRankNTypes -XScopedTypeVariables -XTypeApplications -XTypeFamilies
:set -XTypeFamilyDependencies -XTypeInType -XTypeOperators -XUndecidableInstances
import Data.Proxy
import GHC.TypeLits
let f :: forall n . (KnownNat n, KnownNat (n+2)) => Proxy n -> Integer; f _ = natVal (Proxy :: Proxy n) + natVal (Proxy :: Proxy (n+2))

Will work. Then add:
let f :: forall n . KnownNat n => Proxy n -> Integer; f _ = natVal (Proxy :: Proxy n) + natVal (Proxy :: Proxy (n+2))

This will fail with
Could not deduce (KnownNat (n + 2)) arising from a use of ‘natVal’

Now enable the plugin with
:set -fplugin GHC.TypeLits.KnownNat.Solver

And again run
let f :: forall n . KnownNat n => Proxy n -> Integer; f _ = natVal (Proxy :: Proxy n) + natVal (Proxy :: Proxy (n+2))

In GHCi this works because of the plugin. But in iHaskell it doesn't and errors the same way as before the plugin.
The confusing part is that adding a plugin that doesn't exist with
:set -fplugin GHC.TypeLits.KnownNat.SolverX

produces errors about plugins that don't exist. So at some level plugins are being loaded. But they aren't being used.

There's this work-in-progress commit that I think was intended to fix https://github.com/gibiansky/IHaskell/issues/443, but otherwise I don't believe this is currently supported.

That makes sense for OPTIONS_GHC, but I wonder what's up with :set?
https://github.com/gibiansky/IHaskell/blob/master/src/IHaskell/Eval/Util.hs#L247 calls setInteractiveDynFlags which calls initializePlugins
It looks like this should work?

I think support needs to be implemented like it is in ghci for it to work.

It looks correct as is as far as I can tell. Do you have an idea about what is missing?
Both call setInteractiveDynFlags. Then the plugins will end up in DynFlags at which point execStmt should do the right thing.

The ghci implementation of newDynFlags that :set uses seems a lot more involved than what we do in IHaskell, I suspect that there is some subtlety there that we are missing.

I was looking at newDynFlags, but I was blind. I submitted a PR. Thanks!


feat: Add a complex example using multiple localizations and configuration with nested componets

What would you like to be added:
Components like this one:
apiVersion: delivery.ocm.software/v1alpha1
kind: ComponentVersion
metadata:
  name: podinfo
  namespace: ocm-system
spec:
  interval: 10m0s
  component: github.com/open-component-model/podify
  version:
    semver: v1.0.3-dev
  repository:
    url: ghcr.io/skarlso/ocm-podify
    secretRef:
      name: oci-creds
  verify: []
  references:
    expand: true

with a component ref like this:
components:
# -- product component
- name: github.com/open-component-model/podinfo
  version: 1.0.0
  provider:
    name: open-component-model
  componentReferences:
  - name: backend
    componentName: github.com/open-component-model/podinfo/backend
    version: 1.0.0
  - name: frontend
    componentName: github.com/open-component-model/podinfo/frontend
    version: 1.0.8
  - name: redis
    componentName: github.com/open-component-model/redis
    version: 1.0.0
# -- backend component
- name: github.com/open-component-model/podinfo/backend
  version: 1.0.0
  provider:
    name: open-component-model
  resources:
  - name: config
    type: configdata.ocm.software
    input:
      type: file
      mediaType: application/yaml
      path: ./app/backend/config.yaml
      compress: true
  - name: instructions
    type: PlainText
    input:
      type: file
      mediaType: text/markdown
      path: ./app/backend/README.md
      compress: true
  - name: image
    relation: external
    type: ociImage
    version: 6.2.0
    access:
      type: ociArtifact
      imageReference: ghcr.io/stefanprodan/podinfo:6.2.0
  - name: manifests
    type: kustomize.ocm.fluxcd.io
    input:
      type: dir
      path: ./app/backend/manifests
      compress: true
# -- frontend component
- name: github.com/open-component-model/podinfo/frontend
  version: 1.0.8
  provider:
    name: open-component-model
  resources:
  - name: config
    type: configdata.ocm.software
    input:
      type: file
      mediaType: application/yaml
      path: ./app/frontend/config.yaml
      compress: true
  - name: instructions
    type: PlainText
    version: 1.0.7
    input:
      type: file
      mediaType: text/markdown
      path: ./app/frontend/README.md
      compress: true
  - name: image
    relation: external
    type: ociImage
    version: 6.2.0
    access:
      type: ociArtifact
      imageReference: ghcr.io/stefanprodan/podinfo:6.2.0
  - name: manifests
    type: kustomize.ocm.fluxcd.io
    input:
      type: dir
      path: ./app/frontend/manifests
      compress: true
# -- redis component
- name: github.com/open-component-model/redis
  version: 1.0.0
  provider:
    name: open-component-model
  resources:
  - name: config
    type: configdata.ocm.software
    input:
      type: file
      mediaType: application/yaml
      path: ./redis/config.yaml
      compress: true
  - name: instructions
    type: PlainText
    input:
      type: file
      mediaType: text/markdown
      path: ./redis/README.md
      compress: true
  - name: image
    relation: external
    type: ociImage
    version: 6.0.1
    access:
      type: ociArtifact
      imageReference: redis:6.0.1
  - name: manifests
    type: kustomize.ocm.fluxcd.io
    input:
      type: dir
      path: ./redis/manifests
      compress: true

Why is this needed:
These complex component versions aren't really explained and how the pieces fit together and why. Especially not if doing these things by hand. We use product controller or unpacker to deal with these, but there aren't any explanations on the moving parts that would detail how things fit together.

Hi @Skarlso , can you please explain this in more detail? Looking at the example it looks like an example of a component with multiple references is asked, but in what context? The header also contains localization. I'm a bit confused :-)

@morri-son Now I'm confused. :D
So what I'm saying is that we need an example which details all the pieces working together without Unpacker or MPAS which deals with the magic behind the scene. That's why I'm writing https://github.com/open-component-model/ocm-website/pull/109 this guide which will be visible on the ocm website.

@Skarlso Uaaahhh. Too late and too many threads and issues worked on yesterday. I didn't even see the linked PR #109. So, just forget the comment 😂

@Skarlso could you review this issue and PR open-component-model/ocm-website#109 for completeness and close if needed, please.

@robertwol needs reviews and approvals, then it can be merged.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:68: missing_description: The recipe is missing a description
ERROR: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:68: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:68: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_44mpyy32fl/clone/recipe/meta.yaml:68: missing_license_family: The recipe is missing the about/license_family key.
Errors were found


What to do with package bins?

A package has dependencies, some of this dependencies has another ones, and this third-ones has bins. Should they be exposed to the top installer so they are available in command line? NPM says no, but should npkg/NodeOS do it?

We are not using npkg anymore and npm itself seems to be far more than enough to manage this situation, clossing.


Ask for ApiGatewayRestApi directly

The function (getApiId) assumes that there exists some Output in every Stack with an OutputKey that matches 'ServiceEndpoint', but this is not always the case. (See #49, #50, #51.)
This PR modifies getApiId to request the ApiGatewayRestApi directly, rather than searching for and parsing the ServiceEndpoint. In the case where no ApiGatewayRestApi exists the plugin will have no effect, as expected.

@labichn Can you confirm this works with shared API Gateways too, when this plugin is used in an service which is using
provider:
  apiGateway:
    restApiId: xxxxx
    restApiRootResourceId: xxxx

@EmiiKhaos I'm not familiar with that feature, but at a glance it seems to share a single ApiGatewayRestApi value among multiple stacks. If each stack has a resource named ApiGatewayRestApi this change will work.
You can confirm this yourself by looking at the stack resources on CloudFormation--if there is a resource with the key ApiGatewayRestApi, then shared gateways are also supported by this PR.

@labichn No, services using shared ApiGateway do not have ApiGatewayRestApi resource. They are just referencing an id exported by another cloud formation stack. So, no, this won't work with shared ApiGateway.

I am having this problem too.
aws cloudformation describe-stacks reports both ServiceEndpoint and ServiceEndpointWebsocket and getApiId chokes on the latter's OutputValue of 'wss://...' I believe this fix from @labichn solves the problem.
[
{
OutputKey: 'ServiceEndpoint',
OutputValue: 'https://ayo7ickqe8.execute-api.us-east-2.amazonaws.com/dev',
Description: 'URL of the service endpoint'
},
{
OutputKey: 'ServiceEndpointWebsocket',
OutputValue: 'wss://2nraf1ssae.execute-api.us-east-2.amazonaws.com/dev',
Description: 'URL of the service endpoint'
}
]


Throws when starting

System
macOS 10.14.6 (18G84)
Node.js v10.16.0
yarn 1.17.3

Steps

yarn global add jay-repl
jay

Expected
REPL starts.
Actual
Error: ENOENT: no such file or directory, open '/Users/moeriki/Library/Caches/jay-repl-nodejs/history'
    at Object.openSync (fs.js:443:3)
    at Object.createHistorian (/Users/moeriki/.config/yarn/global/node_modules/jay-repl/dist/history.js:12:41)
    at main (/Users/moeriki/.config/yarn/global/node_modules/jay-repl/dist/cli.js:94:33)
    at Object.<anonymous> (/Users/moeriki/.config/yarn/global/node_modules/jay-repl/dist/cli.js:170:1)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)

I was just coming to report the same issue on latest macOS for both Node 10 and 12.

same on windows 10 with node v12.7.0

This seems to be the offending code.
// ...
fs.closeSync(fs.openSync(filePath, 'a')) // Touch the history file
// ...

Intention was obviously to "touch" the file but I personally never seen this pattern before. Maybe we could do it differently?

Same on Windows 10 using Ubuntu WSL1
Error: ENOENT: no such file or directory, open '/home/jcquintas/.cache/jay-repl-nodejs/history'            at Object.openSync (fs.js:448:3)     at Object.createHistorian (/home/jcquintas/.nvm/versions/node/v11.13.0/lib/node_modules/jay-repl/dist/history.js:12:41)

After some digging, I believe the problem is that openSync fails to create a file due to a missing parent folder. The folder /Users/XXX/Library/Caches/jay-repl-nodejs doesn't exists by default.

mkdir ~/Library/Caches/jay-repl-nodejs
touch ~/Library/Caches/jay-repl-nodejs/history

allows the repl to start for me

duplicate of #7

fixed in 0.2.1, thanks for the report!

This still doesn't work on Windows with node v12.7.0

@mikeptweet try removing C:\Users\Mike\AppData\Local\jay-repl-nodejs\Cache maybe?

That works ... thanks


Conditional execution of systems using Resources

On the subject of:
https://github.com/bevyengine/bevy/issues/128
This enables the user to define systems that will only be called on certain conditions, stored in Resources. This is implemented with the same logic as the ChangedRes resource query defined in https://github.com/bevyengine/bevy/pull/388.
I added an example of what can be done with FlagRes and ChangedRes by modifying the "greet" example from the Bevy book. The greet_people system can be rewritten as a for_each system, run on a change of the Frame resource and its call can be blocked by the Paused Resource:
use bevy::prelude::*;

struct Person;
struct Name(String);
struct GreetTimer(Timer);
struct Frame(u32);
struct Paused(bool);

impl FlagResource for Paused {
    fn flag(&self) -> bool {
        self.0
    }
}

fn fixed_timestep(time: Res<Time>, mut timer: ResMut<GreetTimer>, mut frame: ResMut<Frame>) {
    timer.0.tick(time.delta_seconds);
    if timer.0.finished {
        frame.0 += 1;
    }
}

fn greet_people(_paused: FlagRes<Paused>, frame: ChangedRes<Frame>, _person: &Person, name: &Name) {
    println!("hello {} on frame {}!", name.0, frame.0);
}

fn pause(
    mut paused: ResMut<Paused>,
    _frame: ChangedRes<Frame>,
    keyboard_input: Res<Input<KeyCode>>,
) {
    if keyboard_input.pressed(KeyCode::Left) {
        paused.0 = !paused.0;
        println!("Pause: {}", paused.0)
    }
}

fn add_people(mut commands: Commands) {
    commands
        .spawn((Person, Name("Elaina Proctor".to_string())))
        .spawn((Person, Name("Renzo Hume".to_string())))
        .spawn((Person, Name("Zayna Nieves".to_string())));
}

fn main() {
    App::build()
        .add_resource(GreetTimer(Timer::from_seconds(2.0, true)))
        .add_resource(Frame(0))
        .add_resource(Paused(false))
        .add_startup_system(add_people.system())
        .add_system(fixed_timestep.system())
        .add_system(pause.system())
        .add_system(greet_people.system())
        .add_default_plugins()
        .run();
}

No problem, I learned a lot implementing this. Nonetheless, I think that this is not so unnatural once we are used to using systems with Changed and ChangedRes. The name may be poorly chosen, "OnlyIfRes" or "IfRes" may be better.
The comparison that you make with if paused.0 { return } is not really fair in my opinion because you may be borrowing archetypes and iterating on a lot of entities just to return?


How to get core.remote stdout in a mistral workflow?

I have a mistral workflow and one task called “cleanup”:
Task definition:
  action: core.remote
  input:
    hosts: example.org
    cmd: 'date'
  publish:
    job_stdout: "{{ task(cleanup).values()[0]['stdout'] }}"
    job_stderr: "{{ task(cleanup).values()[0]['stderr'] }}"

The execution history:
  "tasks": [
    {
      "state_info": null,
      "name": "cleanup",
      "created_at": "2017-03-02 13:59:01.672551",
      "updated_at": "2017-03-02 13:59:04.350903",
      "id": "4fc10792-d6a5-4874-bc4d-7000795d7b66",
      "workflow_execution_id": "8793b1bb-2681-47dd-a634-4b39f8f1f030",
      "state": "SUCCESS",
      "result": {
        "example.org": {
          "failed": false,
          "stderr": "",
          "return_code": 0,
          "succeeded": true,
          "stdout": ""
        }
      }
    }
  ]
}

Because the core.remote action can execute a command on several hosts, there is no result.stdout like core.local, but a stdout per host.
This  {{ task(cleanup).values()[0]['stdout'] }} works in an action chain to get the stdout of the first host, but I can’t figure out what the correct syntax is for a mistral worflow. Can anybody help me?

I think the syntax is something like this https://github.com/StackStorm/st2cd/blob/master/actions/workflows/st2_get_installed_version.yaml#L24

This syntax works.. :+1:  I just verified it with one of my mistral workflows where I was trying to do that same.

https://stackstorm.slack.com/archives/community/p1501771621123095


TypeError: (0 , _react.use) is not a function

Describe the bug
i have my host in Next.js 13.5.6 and my remote mf in react 18.2.0 but i got this error : TypeError: (0 , _react.use) is not a function
host in Next.js 13.5.6
next.config
    if (!options.isServer) {
      config.plugins.push(
        new NextFederationPlugin({
          name: 'host2',
          filename: 'static/chunks/remoteEntry.js',
          remotes: {
            mf_app_process<EMAIL_ADDRESS>          },
          shared: {
            ...deps,
            react: {
              singleton: true,
              requiredVersion: deps.react,
            },
            "react-dom": {
              singleton: true,
              requiredVersion: deps["react-dom"],
            },
          },
        }),
      );
    }

package.json
  "dependencies": {
    "@hookform/resolvers": "^3.3.0",
    "@module-federation/nextjs-mf": "^8.0.5",
    "@react-pdf/renderer": "^3.1.14",
    "@smastrom/react-email-autocomplete": "^0.9.4",
    "@types/node": "20.5.0",
    "@types/react": "18.2.20",
    "@types/react-dom": "18.2.7",
    "@types/react-slick": "^0.23.13",
    "ahooks": "^3.7.8",
    "autoprefixer": "10.4.15",
    "aws-cdk": "^2.92.0",
    "cookies-next": "^4.0.0",
    "debounce": "^1.2.1",
    "eslint": "8.47.0",
    "eslint-config-next": "13.4.15",
    "next": "^13.3.4",
    "nookies": "^2.5.2",
    "pdfjs-dist": "^3.11.174",
    "postcss": "8.4.27",
    "query-string": "^8.1.0",
    "rc-collapse": "^3.7.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-hook-form": "^7.45.4",
    "react-input-mask": "^2.0.4",
    "react-modern-drawer": "^1.2.2",
    "react-pdf": "^7.5.0",
    "react-phone-input-2": "^2.15.1",
    "react-qr-code": "^2.0.12",
    "react-slick": "^0.29.0",
    "react-slider": "^2.0.5",
    "react-spring": "^9.7.3",
    "sass": "^1.65.1",
    "slick-carousel": "^1.8.1",
    "source-map-support": "^0.5.21",
    "tailwind-scrollbar-hide": "^1.1.7",
    "tailwindcss": "^3.0.24",
    "typescript": "^4.7.2",
    "umi-request": "^1.2.3",
    "use-debounce": "^9.0.4",
    "uuid": "^9.0.0",
    "webpack": "^5.89.0",
    "yup": "^1.2.0",
    "yup-es": "^1.1.0"
  },

mf in react 18.2.0
webpack.config
    plugins: [
      new ModuleFederationPlugin({
        name: "mf_app_process",
        library: { type: "var", name: "mf_app_process" },
        filename: "remoteEntry.js",
        remotes: {
          mf_app_process<EMAIL_ADDRESS>        },
        exposes: {
          "./SignupForm": "./src/components/signup/SignupForm",
          "./SignupDrawer": "./src/components/signup/SignupDrawer",
          "./SignupButton": "./src/components/signup/SignupButton",
        },
        shared: {
          ...deps,
          react: {
            singleton: true,
            requiredVersion: deps.react,
          },
          "react-dom": {
            singleton: true,
            requiredVersion: deps["react-dom"],
          },
        },
      }),

package.json
  "dependencies": {
    "@amplitude/analytics-browser": "^1.10.3",
    "@heights/react-use-google-optimize": "^0.1.4",
    "@hookform/resolvers": "^3.1.0",
    "@react-hook/google-optimize": "^1.2.1",
    "@smastrom/react-email-autocomplete": "^0.9.4",
    "@tailwindcss/line-clamp": "^0.4.4",
    "ahooks": "^3.7.7",
    "aws-cdk-lib": "^2.77.0",
    "axios": "^0.26.0",
    "clsx": "^1.2.1",
    "constructs": "^10.0.0",
    "env-cmd": "^10.1.0",
    "headless-stepper": "^1.8.0",
    "history": "^5.3.0",
    "inputmask": "^5.0.8",
    "lottie-react": "^2.4.0",
    "prop-types": "^15.8.1",
    "qr-code-styling": "^1.6.0-rc.1",
    "query-string": "^8.1.0",
    "rc-drawer": "^6.1.5",
    "react": "^18.2.0",
    "react-device-detect": "^2.2.3",
    "react-dom": "^18.2.0",
    "react-hook-form": "^7.43.9",
    "react-input-mask": "^3.0.0-alpha.2",
    "react-modern-drawer": "^1.2.0",
    "react-phone-input-2": "^2.15.1",
    "react-redux": "^7.2.6",
    "react-router": "^6.2.2",
    "react-router-dom": "^6.2.2",
    "react-slider": "^2.0.5",
    "source-map-support": "^0.5.21",
    "umi-request": "^1.2.3",
    "use-mask-input": "^3.1.0",
    "uuid": "^9.0.0",
    "yup": "^1.1.1"
  }

Reproduction
no repo
Used Package Manager
npm
System Info
System:
    OS: macOS 13.0
    CPU: (12) arm64 Apple M2 Pro
    Memory: 177.45 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 21.5.0 - ~/.nvm/versions/node/v21.5.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v21.5.0/bin/yarn
    npm: 10.3.0 - ~/Documents/stori/sites/stori/credit-web-app-process-mx/node_modules/.bin/npm
  Browsers:
    Chrome: 120.0.6099.234
    Firefox: 120.0.1
    Safari: 16.1

Validations

[X] Read the docs.
[X] Read the common issues list.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Module federation issue and not a framework-specific issue.
[ ] The provided reproduction is a minimal reproducible example of the bug.

I need a repo.


a problem with using torchTT.interpolate.dmrg_cross()

I tried to use interpolate.dmrg_cross() from a numpy array.
Generate a random array:
import numpy as np
import torch as tn
import torchtt as tntt
test = np.random.rand(10, 10, 10)
Define the function in this way:
def func(args):
    return tn.tensor([tn.from_numpy(test)[*args[0]]], dtype=tn.complex128)

When I tried to use dmg_cross to interpolate this exemplary random tensor,
N = list(test.shape)
x = tntt.interpolate.dmrg_cross(func, N, eps=10**(-8))

I got the error message:
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
           ^^^^^^
  File "<input>", line 1, in <module>
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/Users/boyuanshi/Desktop/second_project/equilibrium_v2/Screened_Interactions_Plot.py", line 61, in <module>
    x = tntt.interpolate.dmrg_cross(func, N, eps=10**(-8))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/boyuanshi/.conda/envs/Desktop/lib/python3.11/site-packages/torchTT-2.0-py3.11-macosx-10.9-x86_64.egg/torchtt/interpolate.py", line 514, in dmrg_cross
    supercore = tn.reshape(function(eval_index),[rank[k],N[k],N[k+1],rank[k+2]])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: shape '[1, 10, 10, 2]' is invalid for input of size 1

I am quite confused why it is the case?

It seems that I magically solve the issue by adding 0./(2+tn.exp(tn.sum(I, 1))) to the function and also change the data type to tn.float64. Not known why.

Hi,
The output  of the function handle should be float and of shape (m,) for an input of shape (m,d).
The provided hanndle returns a (1,) torch tensor. It can be modified as
def func(args):                                             return tn.tensor([tn.from_numpy(test)[*a] for a in args], dtype=tn.float64)
Regarding the complex numbers, right now  only the real p is approximated. One  alternative is to cross approximate real and imaginary separately. I would need to do some work to support complex numbers in all operations.


[C API] cond op

System information

TensorFlow version (you are using): master
Are you willing to contribute it (Yes/No): yes

Describe the feature and the current behavior/state.
Feature: a cond operator for the C API, similar to tf.cond.
Current state: The C API currently includes the control flow primitives needed to implement cond, but it does not include the cond op itself.
Will this change the current api? How?
The C API would include the cond op
Who will benefit with this feature?
All language bindings built on top of the C API could use its cond op, rather than having to individually implement their own from control flow primitives.

Two questions:

I'd eventually like to use the cond op through the Java bindings. Since while loops are implemented at the C API level (rather than in the higher level language bindings using primitives), I assume we'd want to implement cond at the C API level too. Is this accurate?

given that control flow in TF is moving towards a functional representation, is it valuable to contribute the non-functional cond op to the C API? To me, it seems simplest to start by implementing the non-functional cond, and later move towards functional cond. Do you agree?

For reference, C API support for functional cond is discussed as future work in the cond_v2 design doc here: "C API support. Ideally other language bindings support conditional execution as well. The C API already includes the primitives for other bindings to implement something similar to tf.cond that produces an If op, but the C API TF_AddGradients method would need to support If ops in order for other bindings to (easily) allow autodiff of conditionals."

cc: @saxenasaurabh

Thanks melissagrueter@, comments inlined.

I'd eventually like to use the cond op through the Java bindings. Since while loops are implemented at the C API level (rather than in the higher level language bindings using primitives), I assume we'd want to implement cond at the C API level too. Is this accurate?

Yes, implementing cond in the C API would make sense.

given that control flow in TF is moving towards a functional representation, is it valuable to contribute the non-functional cond op to the C API? To me, it seems simplest to start by implementing the non-functional cond, and later move towards functional cond. Do you agree?

If TF_AddGradients supports taking gradients of low level control flow ops Switch, Merge etc. (I will need to look into this but maybe @skye already knows), then yeah we could go this route just to avoid dealing with functional op gradients for now. If not, we can look into the functional cond. I think the forward pass for functional cond would be much easier to implement than the non-functional one, and less prone to bugs, which tempts to try this in the first place but I am fine with either since it will still be strictly better than having no cond in the C API :)

I'm pretty sure TF_AddGradients does not handle Switch and Merge. It's not as bad as while_loop, but the legacy cond gradient implementation is pretty complicated (e.g. see CondContext). It would be much better long-term to implement functional cond instead, although might take some short-term extra work because the C API only has very low-level support for functions. But I think it shouldn't be too crazy to do something similar to the TF_NewWhile API, and turn the branch TF_Graphs into functions instead of adding switch/merge nodes.

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


Error in entrustu:migration

Hi, I'm trying to install entrust in Laravel Framework 5.5-dev.
I follow the instructions but when I arrive to
php artisan entrust:migration
an error appears
[ReflectionException]
  Method Zizaco\Entrust\MigrationCommand::handle() does not exist

I copy/paste the providers and aliases so I'm sure that's correct.
I copy paste the migration and follow the installation so all the rest it's correct.
Anyone has this error?
Thanks and best regards

looks like composer wasn't actually installed the entrust package. Try to reinstall it, and run composer dump-autoload

I have the same problem. Is there any solution?

@drjoju @githubwyllie  As per laravel5.5 upgrade release, "Any fire methods present on your Artisan commands should be renamed to handle."
Go to MigrationCommand and rename "fire" method to "handle". You should get it working.

Go to the file (vendor-> zizaco-> entrust-> src-> commands-> MigrationCommand.php and change the "fire" method to "handle" and after the command "php artisan entrust: migration" will be generated Migration and just run the "php artisan migrate" command that the tables will be generated in your database.

@justem007 @wmlab03 Thanks!

Closed since #840 was merged

@justem007 its works thanks

but not instead。


[safety-rules] Improve safety-rules debuggability

Lots of commits that make it easier to identify what is going on in safety rules

add error logging locally -- before it was only on the libra-node side
test storage availability at startup -- so we don't let the process run if it can't at least check storage state
eliminate the use of networking config in safety rules -- now just rely on OPERATOR_ACCOUNT (OWNER_ACCOUNT once @JoshLind catches up)
Fix an issue in configs where we accidentally left out the deny unknown fields for serde
Also fixed the vault safety rules test... really need to get vault into ci/cd

@mgorven this should help out a little bit in the future...

:umbrella: The latest upstream changes (presumably d4d0ee92dab8174065a84c64837ddbc5388b6b3a) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-libra r=mgorven

:pushpin: Commit 2677fea has been approved by mgorven

:hourglass: Testing commit 2677feaa19e35662070d22c3d43b67f06479891c with merge 13fff803fd97cb9efab95c1b6954f7e709739f4e...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: mgorven
Pushing 13fff803fd97cb9efab95c1b6954f7e709739f4e to master...


Update Ruby patch versions for CI

Hi,
This PR makes CI run against latest Ruby patch versions.
It will reduce the CI latency.

The CI passed ✅


10-Remove-old-logic-for-available-filter.

Removed old logic for available filter. Read data from json files instead

Close task #10


applying projectors to CTF data (BUG?)

I'm seeing strange behavior applying EOG and ECG projectors to CTF datasets.
with epochs created with `proj='delayed' I'm looking at the effect of the projection operators using the following code.
times = 1e-3 * np.array([86, 148, 94, 160])
epochs.average().plot_topomap(times, title='No Proj', proj=False,
                              vmin=-100, vmax=100, show=False)
epochs.average().plot_topomap(times, title='Proj', proj=True,
                              vmin=-100, vmax=100, show=False)
epochs.average().plot_topomap(times, title='Delayed Proj',
                              proj='interactive',
                              vmin=-100, vmax=100, show=True)

I have 2 issues.

with all the checkboxes checked the topoplots don't match the maps from proj=True, I like the interactive plots better.
the check boxes aren't reversible. if I click all of them and then unclick them all I don't end up where I started.

you can find screen shots here the show this
https://www.dropbox.com/sh/dqdirsnre6hqma8/AAByY4MuxUbBozcKsvFAJ4Qya?dl=0
apply_proj_nothingChecked.png : the delayed plot matched the No Proj plot
apply_proj_allChecked.png: the delayed plot does not match the Proj plot.
apply_proj_nothingChecked2.png: this is the delayed plot with nothing checked after selecting everything. it does not match the No Proj plot.
Am I just doing something wrong? The code for applying the projs interactively (https://github.com/mne-tools/mne-python/blob/master/mne/viz/topomap.py#L100-L104) seems like it should match proj=True case and be fully reversible.  So i'm abit baffled. Does any one have any ideas?

Am I just doing something wrong? The code for applying the projs interactively (https://github.com/mne-tools/mne-python/blob/master/mne/viz/topomap.py#L100-L104) seems like it should match proj=True case and be fully reversible.

Yes this is supposed to be the behavior. We must have introduced a regression somewhere that is causing this. I could try to address this in:
https://github.com/mne-tools/mne-python/pull/4972
As it aims to unify raw and epochs plotting, which is two places where this can happen. But there are probably more. It's probably worth doing a separate, more manageable PR to fix only the bug(s) reported here.