[in_app_purchase] Restore Purchase Feature

we need to add restore purchase feature to this plugin.

Isn't it already available?
I believe its a matter of how you introduce it in your app.
You can call queryPastPurchases on-demand or once your app is initialized and update accordingly the content of your app.

If you are running on IOS, just call SKPaymentQueueWrapper().restoreTransactions() from store_kit_wrappers.
With Android, it seems like doesn't support it. Can get past purchases and check if hasn't => trigger update subscription for customers

Any news on this feature?

If you are running on IOS, just call SKPaymentQueueWrapper().restoreTransactions() from store_kit_wrappers.

@minhvuongrbs Did you manage to make it work? I call SKPaymentQueueWrapper().restoreTransactions() but the SKTransactionObserverWrapper.paymentQueueRestoreCompletedTransactionsFinished is called but shouldAddStorePayment is not called.
How can this be tested with Sandbox purchases? Is there any implementation sample?

New features to acquire and retain subscribers.
On November 1, 2020, account hold and subscription restore will become mandatory. Subscription pause and resubscribe will also be enabled for all apps.
image
For more detail please check it:
https://android-developers.googleblog.com/2020/06/new-features-to-acquire-and-retain-subscribers.html
Can we have this Feature with Flutter?

Any update?

7 days left. I hope Google will give more time for app using Flutter.

So what happened? are people's apps just getting rejected now?

I think we have to use server-side verify to do this.

I think we have to use server-side verify to do this.

I use Firebase for my app

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

Make sure you have to background service to query subscription have been renewed recently.

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

Thanks but I think that having Flutter, Firebase, Google Play in-app purchases... with Google, they should provide a specific tutorial for this if having the server-side verification is the way to go. They can't leave us without documentation here

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

Thanks but I think that having Flutter, Firebase, Google Play in-app purchases... with Google, they should provide a specific tutorial for this if having the server-side verification is the way to go. They can't leave us without documentation here

There's docs but it isn't in tutorial format, you need to combine some stuff. I can write up a blog post going through the steps, will get back to you

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

Thanks but I think that having Flutter, Firebase, Google Play in-app purchases... with Google, they should provide a specific tutorial for this if having the server-side verification is the way to go. They can't leave us without documentation here

There's docs but it isn't in tutorial format, you need to combine some stuff. I can write up a blog post going through the steps, will get back to you

Oh, please. That will help a lot of flutter developers.

I think we have to use server-side verify to do this.

I use Firebase for my app

Right, but we have to use cloud functions to handle it. I worked on it today and used a pub/sub function to read subscription publish events and write those to cloud firestore as needed. Happy to discuss more if interested.

Thanks but I think that having Flutter, Firebase, Google Play in-app purchases... with Google, they should provide a specific tutorial for this if having the server-side verification is the way to go. They can't leave us without documentation here

There's docs but it isn't in tutorial format, you need to combine some stuff. I can write up a blog post going through the steps, will get back to you

I am waiting for that. Thank for your help

Ok

Hey all, been busy lately so didn't get to writing anything up until today. Here's a quick, it defers to the docs on some things so let me know if you need more details on anything in particular. I can elaborate further in the future when I get more time. Hope this helps out somewhat at least!


Folder name:"ltp-models" should update to "model" to match the code.

As title I suggested.

Thanks, you are right, the file READ.md has been modified correctly.


JPEG images are rotated (by -90 degrees) when using image_analysis.load_images

My image set includes both JPEG (taken from iPhone camera) and PNG (screenshots from iPhone) extensions.
By running this command:
images = turicreate.image_analysis.load_images(url='/myImages',with_path=True, format='auto')
I noticed that JPEG images are rotated 90 degrees to the left, but PNG images are all fine.
This is a major issue since annotations associated with JPEG images become irrelevant.

I can not reproduce this issue. I ran the following code:
x = tc.image_analysis.load_images(url='/tmp/dog.JPEG',with_path=True, format='auto')
x[0]['image'].show()

The image gets displayed in the correctly.
Any additional steps to reproduce the problem? Can you share an image file where this problem is happening?

@TobyRoseman - given your response, I thought my images were impacted by some scripts that I've run! But that's not the case. The same issue occurs with any images taken from an iPhone.

I just took this photo, from my iPhone, uploaded it to my desktop, then used image_analysis.load_images, resulted as described before!

RectLabel is an offline image annotation tool for object detection and segmentation.
Although this is not an open source program, with RectLabel you can remove the EXIF orientation flags from images and convert images to the front orientation. If necessary, you can rotate the image right/left by 90 degrees.
You can export/import the Turi Create CSV format.
https://rectlabel.com/help#remove_exif_orientation_flags

Thanks for the prompt response.
On Wed, Jan 25, 2023 at 6:21 AM Ryo Kawamura @.***>
wrote:

RectLabel is an offline image annotation tool for object detection and
segmentation.
Although this is not an open source program, with RectLabel you can remove
the EXIF orientation flags from images and convert images to the front
orientation. If necessary, you can rotate the image right/left by 90
degrees.
You can export/import the Turi Create CSV format.
https://rectlabel.com/help#remove_exif_orientation_flags
—
Reply to this email directly, view it on GitHub
https://github.com/apple/turicreate/issues/1147#issuecomment-1403524717,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHD644OUYB7T6WS7KAWIW6DWUELD3ANCNFSM4F52MYUQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Dear ,
Thank you for reaching out to me. I am available weekdays 8 to 9:15 am and
3 to 4:30 pm CT.
Sincerely,
Soroush Kadineh


Version 2.4.3 still has 2.4.1 mentioned in source

Version 2.4.3 still has 2.4.1 mentioned in source, see at
https://github.com/php-coveralls/php-coveralls/blob/909381bd40a17ae6e9076051f0d73293c1c091af/src/Bundle/CoverallsBundle/Version.php#L17

would you mind to raise a PR, @DannyvdSluijs ?

would you mind to raise a PR, @DannyvdSluijs ?

Will do just drafted the issue when discovered. Somewhere this or next week I should be able to draft a PR.
Sent from my iPhone

On 24 Jan 2021, at 23:39, Dariusz Rumiński<EMAIL_ADDRESS>wrote:

would you mind to raise a PR, @DannyvdSluijs ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Will do just drafted the issue when discovered. Somewhere this or next week I should be able to draft a PR.
Sent from my iPhone

On 24 Jan 2021, at 23:39, Dariusz Rumiński<EMAIL_ADDRESS>wrote:

would you mind to raise a PR, @DannyvdSluijs ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Datapoints for days 4 (index 3) and onwards not created equally

The datapoints for day four (index 3) and onwards are not created as channels which results in them not properly inherit enums to the subsidiary datapoints. This leeds to the datapoints not being found by the $() function in js scripts even if no enum is used to filter.
This filter $(channel[state.id=ical.0.events.*.*]) only outputs the ids for the datapoints of the first three days but I need to do some checks for more than a week worth of datapoints.

Also not after reloading

Yes reloading and rebooting doesn't change anything.

The issue is still present


UpdatingCustomTablesforDataConnectorsKQLValidations

Required items, please complete.
Change(s):

Adding new custom tables and updating existing ones.

Reason for Change(s):

We have some data connectors' KQL queries failing validation tests due to missing custom tables which is being referred in
these queries or some column missing in any of the existing custom tables, so we referred to the sample data added by
authors for these tables and made updates in tables accordingly.

Version Updated:

Required only for Detections/Analytic Rule templates
See guidance below

Testing Completed:

See guidance below

Checked that the validations are passing and have addressed any issues that are present:

See guidance below

@v-sudkharat why so many files being added? can you please update more details in the description for this PR?

@v-sudkharat why so many files being added? can you please update more details in the description for this PR?

We have updated the details in description please check.

We have some data connectors' KQL queries failing validation tests due to missing custom tables which is being referred in
these queries or some column missing in any of the existing custom tables, so we referred to the sample data added by
authors for these tables and made updates in tables accordingly.

thanks. changes looking good.


CASSANDRA-19604 Add support for BETWEEN operator

https://issues.apache.org/jira/browse/CASSANDRA-19604

This is merged, can it be closed?


Switch to using ppa for ffmpeg

Compiling ffmpeg and it's dependencies from source takes a lot of time and there's no good reason to do it right now. We should switch to using https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media for installing it.

Done in https://github.com/evercam/evercam-devops/commit/7778f612ae1343607b2c59f56b12df53a8ffe184.


Instead of configuring a landing_page, could the authservice send the user back to the original request path that initiated the oauth authorize flow?

If I visit example.com/some_path and the authservice decides that it needs to redirect me to an IDP to login and get tokens, could the authservice send me back to example.com/some_path after it obtains the tokens?
At first glance it would appear that this would require some kind of state to be stored in the authservice. But is there another way?  For example, could this state be put into another browser cookie to avoid storing the state server-side?

One of the issues with redirecting the user back to their original destination is leaking information about the content the user is browsing to the IdP. If we can discount this as a potential security threat we can probably just encode the original destination in the state cookie.


Add definitions for maildev, node-schedule and update definition express.

express/express.d.ts
to author(@borisyankov). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

maildev/maildev.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/maildev
http://bower.io/search/?q=maildev
others?

[X] has a test file? (maildev/maildev-tests.ts or others)
[ ] pass the Travic-CI test?

node-schedule/node-schedule.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/node-schedule
http://bower.io/search/?q=node-schedule
others?

[X] has a test file? (node-schedule/node-schedule-tests.ts or others)
[ ] pass the Travic-CI test?

@cyrilschumacher thanks mate!


Typo in the "OMERO.web installation on Ubuntu 18.04"

Hej,
I found a small typo in the OMERO.web installation on Ubuntu 18.04. In the section "Upgrade pip and install OMERO.web:" I believe the correct line would be:
"/opt/omero/web/venv3/bin/pip install --upgrade"... currently it says "–upgrade" which creates errors down the line.
Best,
Rafa

Thanks
It looks like the formatting of the code snippet did not happen during the automatic page generation from https://github.com/ome/omeroweb-install/blob/master/ansible/templates/common/install.sh.j2

No worries, happy to help.


Calling switch.turn_off on switch.openevse_sleep_mode toggles sleep mode

I was trying to run this down with the latest beta when I hit #97 but I can definitely reproduce this with 2.1.6.
If the sleep mode switch is off (and the car is disconnected) calling the switch turn off service on the switch again should do nothing, but it appears to put the charger into sleep mode (i.e. it toggles rather than turns off).

Please confirm this is working as expected now, I tested it on my dev instance of HA and it worked correctly.
If it's fixed feel free to close the issue. Thanks!

Yes it works great now, thanks!


KARGA has been compiled by a more recent version of the Java Runtime

Hi,
I wanted to try out your tool, but I ran into the following issue after typing the command java KARGA example.fastq:
Error: LinkageError occurred while loading main class KARGA 	java.lang.UnsupportedClassVersionError: KARGA has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Indeed, I am unable to update Java to a more recent version than 11.0.1 on our server as I do not have sudo rights.
I am not so experienced with Java, but I wonder if this issue might be solved if you could, by any possibility, provide class files that are compiled with an older version of Java?
Thank you very much in advance.

Hi,
I’ll see if we can compile the source on Java version <=11 and get back to you.
Sent from my iPhone
On Nov 16, 2021, at 10:48 AM, christophevandijck @.***> wrote:

[External Email]
Hi,
I wanted to try out your tool, but I ran into the following issue after typing the command java KARGA example.fastq:
Error: LinkageError occurred while loading main class KARGA java.lang.UnsupportedClassVersionError: KARGA has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Indeed, I am unable to update Java to a more recent version than 11.0.1 on our server as I do not have sudo rights.
I am not so experienced with Java, but I wonder if this issue might be solved if you could, by any possibility, provide class files that are compiled with an older version of Java?
Thank you very much in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DataIntellSystLab_KARGA_issues_1&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=JotPB9f5gbgYc63FelEj730N9_hHvLN8d8d1n9I6SVk&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOFR5ODBF4FYASABDCIWYSDUMJ4H5ANCNFSM5IETGHZQ&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=EeKbJ_3WEspfeLEWl5cc55DB1zWGMYNRuhiUko6f-cY&e=.
Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=2j3QEZN1-m3UtP5LiaS7868XuRq-V6WZoYTsKqSnAnI&e= or Androidhttps://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=-4to_C-HCZdB1wWHqr-Xx4vFH09gSv61sQNRCxCc--4&e=.

Hello everyone,
I re-compiled KARGA under openjdk 8. I attach here the github files. Let me know if this works.
Best regards,
Simone

Simone Marini, PhD
University of Florida
Department of Epidemiology
2004 Mowry Rd,
Gainesville, FL 32603

From: Prosperi,Mattia @.>
Sent: Wednesday, November 17, 2021 11:18 AM
To: DataIntellSystLab/KARGA @.>
Cc: DataIntellSystLab/KARGA @.>; Subscribed @.>; Marini,Simone @.***>
Subject: Re: [DataIntellSystLab/KARGA] Error: LinkageError occurred while loading main class KARGA java.lang.UnsupportedClassVersionError: KARGA has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java ...
Hi,
I’ll see if we can compile the source on Java version <=11 and get back to you.
Sent from my iPhone
On Nov 16, 2021, at 10:48 AM, christophevandijck @.***> wrote:

[External Email]
Hi,
I wanted to try out your tool, but I ran into the following issue after typing the command java KARGA example.fastq:
Error: LinkageError occurred while loading main class KARGA java.lang.UnsupportedClassVersionError: KARGA has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Indeed, I am unable to update Java to a more recent version than 11.0.1 on our server as I do not have sudo rights.
I am not so experienced with Java, but I wonder if this issue might be solved if you could, by any possibility, provide class files that are compiled with an older version of Java?
Thank you very much in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DataIntellSystLab_KARGA_issues_1&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=JotPB9f5gbgYc63FelEj730N9_hHvLN8d8d1n9I6SVk&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOFR5ODBF4FYASABDCIWYSDUMJ4H5ANCNFSM5IETGHZQ&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=EeKbJ_3WEspfeLEWl5cc55DB1zWGMYNRuhiUko6f-cY&e=.
Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=2j3QEZN1-m3UtP5LiaS7868XuRq-V6WZoYTsKqSnAnI&e= or Androidhttps://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=JwuJ1w2SX8Eq7z2G1vWDTt3xQ39YeafDqhIF06JiDng&m=Pbwy-wH-T_c2Tc6fechV-n_WjtG5BCQS6AMW6yBOmY1xL2j2hUsGPFFF5agA84Q5&s=-4to_C-HCZdB1wWHqr-Xx4vFH09gSv61sQNRCxCc--4&e=.

Waw, that's wonderful! Thank you so much for your kind help.


[test] IRGen/opaque_result_alwaysInlineIntoClient: disable on non-local test configs

This silences a CI blocker issue.
rdar://97995151

@swift-ci smoke test and merge

Hm, a better fix for this class of problems would probably be to disable the swift_interpreter feature when remote_run or device_run is configured in lit.cfg.

@swift-ci smoke test

Interesting! Thank you, @lorentey!


why not use https://github.com/ctrlpvim/ctrlp.vim

the ctrlp in source_non_forked from https://github.com/kien/ctrlp.vim is not maintain

The plugins get updated regularly


TypeError: Cannot read property 'reverse' of null

Thank you very much for this library! ❤
I'm trying to test a library which provides some Higher-order Component, but I get a weird bug.
Example:
Enhancer:
function enhance(ComposedComponent) {
    class Enhancer extends Component {
        render() {
            const newProps = Object.assign({}, this.props, {
                someAdditionalProp: true
            });
            return createElement(WrappedComponent, newProps);
        }
    }

    return Enhancer;
}

Component to enchace:
class Foo extends Component {
    render() {
        return (
Bla bla
);
    }
}
const FooEnhanced = enhance(Foo);

Main component:
class App extends React.Component {
    render() {
        return (

                <FooEnhanced />

        );
    }
}

I want to ensure that the Enhancer adds additional prop 'someAdditionalProp' to composed components, so I'm doing the following:
const wrapper = mount(<App />);
const enhancedComponents = wrapper
    .find(App)
    .children()
    .findWhere(n => typeof n.type() !== 'string')
    .findWhere(n => n.parent().is(FooEnhanced));

enhancedComponents.forEach(node => {
    expect(node.prop('someAdditionalProp')).to.be.a('boolean');
});

And get error message:
/Users/vladkosinov/projects/test/node_modules/enzyme/build/MountedTraversal.js:199
  return pathToNode(inst, root).reverse();
                               ^

TypeError: Cannot read property 'reverse' of null
    at parentsOfInst (/Users/vladkosinov/projects/test/node_modules/enzyme/build/MountedTraversal.js:199:32)
    at ReactWrapper.<anonymous> (/Users/vladkosinov/projects/test/node_modules/enzyme/build/ReactWrapper.js:841:54)
    at ReactWrapper.single (/Users/vladkosinov/projects/test/node_modules/enzyme/build/ReactWrapper.js:1297:19)
    at ReactWrapper.parents (/Users/vladkosinov/projects/test/node_modules/enzyme/build/ReactWrapper.js:840:41)
    at ReactWrapper.<anonymous> (/Users/vladkosinov/projects/test/node_modules/enzyme/build/ReactWrapper.js:860:21)
    at /Users/vladkosinov/projects/test/node_modules/enzyme/build/ReactWrapper.js:1166:21
    at Array.map (native)
    at ReactWrap%

Essentially, the error occurs when we attempt to call the parent method on ReactWrapper around Foo:
const wrapper = mount(<App />);
const foo = wrapper.find(Foo).parent()

Any ideas on how to solve this problem? 😊

Hey @vlkosinov thanks so much for the issue report. This does indeed seem to be a bug in enzyme. I was able to create a simple repro case you can see here:
https://github.com/Aweary/enzyme-test-repo/blob/issue-410/test.js

class App extends React.Component {
  render() {
    return (

Hello, world

    );
  }
}

/**
 * Change the `describe` and `it` block so it acurately describes
 * the test that you are trying to reproduce.
 */

describe('Repro case for issue #401', () => {
  it('shouldnt throw when calling parent() in findWhere()', () => {
    const wrapper = mount(<App/>);
    wrapper.findWhere(n => n.parent())
  });

The issue appears to be calling parent on a node returned from findWhere. I'll take a look at this today.

I think either pathToNode is returning null when it shouldn't or parent should have a null check. @lelandrichardson what do you think?

Just a heads up this issue still persists, I just ran into this issue myself on "enzyme": "2.4.1"

Currently, I could reproduce the problem with simplest code example: see #769.
Also, I tried to fix it but didn't succeed, because there is something wrong with MountedTraversal.childrenOfInst function, but is seemed to me very hard to fix it, without breaking a lot of user calls for this function.

I just ran into this problem. Does anybody know a good solution?

So I figured it out. The issue was that I used mount to render the component and it had a nested component whose props were required but I did not provide them. So in the end, that component was never properly set up there. So make sure all nested components are passed the right props in order to be properly rendered.

Did anyone get a solution for this? Is there a temporary workaround for this?

The tests are in #769; I'm not aware of a fix yet.

okay, I will check it out

Is this related to #534?  (Not sure, but even if it's clearly not, it may be worth pointing that out.)

👍

@vlkosinov is this still an issue in enzyme 3?

It appears to be. I'm seeing it in 3.2.0

Is this somehow related to gettting the parent() of a parent()?
Previously my enzyme v2 tests succeeded, but now doing:
wrapper.find('SomeComponent').parent().parent()

gives out the error:
TypeError: Cannot read property 'reverse' of null

      at parentsOfNode (node_modules/enzyme/build/RSTTraversal.js:134:32)
      at ShallowWrapper.<anonymous> (node_modules/enzyme/build/ShallowWrapper.js:1087:50)
      at ShallowWrapper.single (node_modules/enzyme/build/ShallowWrapper.js:1620:25)
      at ShallowWrapper.parents (node_modules/enzyme/build/ShallowWrapper.js:1086:41)
      at ShallowWrapper.<anonymous> (node_modules/enzyme/build/ShallowWrapper.js:1106:21)
      at node_modules/enzyme/build/ShallowWrapper.js:1468:21
      at Array.map (native)
      at ShallowWrapper.flatMap (node_modules/enzyme/build/ShallowWrapper.js:1467:45)
      at ShallowWrapper.parent (node_modules/enzyme/build/ShallowWrapper.js:1105:21)
      at Object.<anonymous> (someTestFile.test.js:462:60)
      at process._tickCallback (internal/process/next_tick.js:109:7)

For me the easiest work around is to select the parent, and find() within that, rather than going to the node and looking for the parent.


[T5A2][W13-B2] Albert Yeoh Ji Bin

@bertojo
Some comments added. Please ack & close the PR after reading comments.
(you need to throw the exception in the child class to see what happens to the parent class, this part you missed in LSP)


Twitter integration

Hey guys,
we  (a friend of mine and me) would like to integrate the possibility to ask Jarvis for recent tweets on Twitter, using the Twitter API. Simply ask Jarvis something like: "What's up on twitter?" and get some popular tweets back.
What do you guys think about this idea? Is there anything against for us to do this?
Best regards!

I think its a good idea. But I think some different variant of the question: "What's up on twitter?", should also trigger Twitter API. Like "What's trending today?" etc.

Sure. The question was just an example. So we will start working on this. Thanks for your reply.

@H3ADLESS If you need any help, I'll be available.


Spring Cloud Function Netty Dependency Issue

15:47:05 [ERROR]     'dependencies.dependency.version' for io.projectreactor.netty:reactor-netty:jar is missing. @ org.springframework.cloud:spring-cloud-function-web:[unknown-version], /tmp/releaser584888333542577946/spring-cloud-function/spring-cloud-function-web/pom.xml, line 28, column 15

Was an issue with the branch name, so it was choosing master instead of 1.0.x


Documentation missing on wikipage "Migrating to NPM from bower"

Short description of the problem:
I get this message from the cli after running ionic lib update:
"All resources are currently available in NPM and we recommend that you use NPM to manage these. More information is available here: https://github.com/driftyco/ionic-cli/wiki/Migrating-to-NPM-from-bower."
However the only info on the page referred to is "TODO".
What behavior are you expecting?
I was expecting an explanation on how to migrate my old project away from bower.

Duplication of #1380 with misleading title "What to Replace "ionic lib update?" as it also asks for the missing documentation.


Disabled autocomplete for date fields

Disabled autocomplete for DateFields with datepicker class as the autocomplete dialog overlaps with the calendar if its large enough:

Also fixed the logs for update_issue_task, which was logging "add issue task" instead of "update issue task".

Hi @benghaun thank you for your PR! Would you mind fixing the two issues with flake8? It's possible that the issues were already present before you edited the file, but we're trying to make the code base more consistent: https://travis-ci.org/DefectDojo/django-DefectDojo/jobs/416754334

Hey there, sure thing, I've fixed them


Add link to the gallery

@ChakriCherukuri Please tell me what you think

@martinRenou  superb idea!
Instead of just a link can we add all the gallery images using the grid layout of mkdocs?

👍🏽 on making it more integrated to the docs using a grid.
I'm not quite sure though we could keep the same logic for spawning the binder.


Update ouroboros-network

This brings in https://github.com/input-output-hk/ouroboros-network/pull/2546,
which fixes 3 (!) bugs related to Shelley's ledger view history.

bors merge


Any plan to implement the Real-NVP?

Very interested in your project!

Hi @zzangupenn, this should be pretty straightforward to do by adapting code from autoregressive.py and maf.py.
In particular, you'll want to have scale and shift parameters which are derived from a subset of input parameter dimensions (which are permuted in a certain way) and the conditioning variables. Would you like to give this a shot and send a PR? Happy to expand further if it would be helpful.


Add French translation

Add French translation by Arnaud at Transifex. The translation must be adapted for the Pro version as well.
https://www.transifex.com/lgallard/dashboard/all_resources/fr/?project=qbittorrent-client#1/?o=perc&d=desc

Done!


Dead link not updating on website.

See the last link in the section on the term "found here". https://coreos.com/products/coreupdate/docs/latest/getting-started.html#further-reading
This repo has the correct value in the md file, but it hasn't been synced/deployed to the website.
/cc @robszumski

Oh yeah, these are done manually because we don't really do releases


new VD v3 geo (backgrounds from anode)

Since the old PR was merged before review and Thiago had some issues in getting the background working, here comes a new PR with a new solution. This time, nothing inside the TPC was changed, so all TPC positions and dimensions are the same as v2. Also, no change in the detector enclosure size was made. The only change was the inclusion of a plate right on top of the TPC and the decrease of 0.02 cm of the gaseous argon gas. Thiago, will this solution satisfy the needs of the bkg TF? Slavic, does it look reasonable to you? Haiwang and Dom, would this also be ok from the tpc group point of view?

Looks ok to me. I was just curious why you have decided to have node plate which is 0.01 cm thick, i.e.,
$padWidth/2.
as you subtract $padWidth from $HeightGaseousAr. The remaining 0.01 is not assigned to any volume then?
The positioning is ok
$posAnodePlate = 0.5*($driftTPCActive + $nViews*$padWidth) + $padWidth/4;#right above TPC vol

Hello again.
I think I have created a new branch:
https://github.com/absolution1/dunecore/tree/dbrailsf_lp_vdriftgeobkg
The branch is based on the branch used in dunecore PR: https://github.com/DUNE/dunecore/pull/8, and it copies all of @lpaulucc v3 files over and renames them as V4.  I've also attempted to update the log kept in the two pl files to explain that the versions are now v4.
@lpaulucc, when you're back from your holiday, it would be good to check that the files are indeed as expected and then we could force push this branch over yours.  Force pushing over your branch would keep this PR + @vgalymov 's comments intact.

I've merged dunecore PR https://github.com/DUNE/dunecore/pull/8, which is why there are now conflicts in this PR.
Those conflicts should disappear once the new branch I mentioned above is force push'd over feature/lp_vdriftgeobkg

@vgalymov I didn't want to change the gaseous argon placement but I realize it is better to keep this volume filling all the remaining space between the anode plate and the enclosure. So I have updated the generator. I created another variable so that if no plate is needed, the gaseous argon size and position is naturally back to the original values. Now the gaseous argon is smaller by the same amount as the anode plate, so it was displaced upwards by 0.05 cm. No overlaps. I will update this PR as soon as I execute the force push suggested by Dom.

I have also checked with @thiagojcb and the anode plate introduced in this way is working for the background generation the TF requested.

I am closing this PR and opening a new one because of issues with other PRs. Link to the new one: https://github.com/DUNE/dunecore/pull/12


Moved .eslintrc to .eslintrc.js and cleaned up rules

This PR addresses a couple items around ESLint configurations:

According to http://eslint.org/docs/user-guide/configuring#configuration-file-formats, the .eslintrc file is deprecated. There are several file types that can replace .eslintrc, with .eslintrc.js being the top priority.
To reduce some of the clutter in this file, I extended from eslint:recommended, which enables a subset of core rules that report common problems. A list of these rules can be found on the eslint rules page, http://eslint.org/docs/rules/.
For better readability with the eslint config file, I renamed the rules settings per http://eslint.org/docs/user-guide/configuring#configuring-rules:
0 -> off
1 -> warn
2 -> error

Before creating a pull-request, please check https://github.com/wycats/handlebars.js/blob/master/CONTRIBUTING.md first.
Generally we like to see pull requests that

[x] Maintain the existing code style
Only a change to the eslint configuration
[x] Are focused on a single change (i.e. avoid large refactoring or style adjustments in untouched code if not the primary goal of the pull request)
Focused on getting a eslint configuration that is identical to the current rules, but will keep up to date by extending the eslint:recommended
[x] Have good commit messages
[x] Have tests
Verified the grunt eslint ran clean after all the changes were made to the eslint config file.
[x] Don't significantly decrease the current code coverage (see coverage/lcov-report/index.html)

This must have been some tidious work. Those rules you omitted are all part of the "recommended" ruleset? I just want to be sure that no rules are turned off now, that where previously turned on.
Replacing "2" with "error" adds a lot of clarity.

Yes, the omitted rules are part of "extends": "eslint:recommended" and can be found on http://eslint.org/docs/rules/ (the rules with a check mark). I reviewed each rule one by one to make sure it could be removed. In doing so, it identified a list of rules that are overrides from the "recommended" set (indicated as // overrides eslint:recommended defaults in the file). These rules might want to be addressed at a later time, but I didn't want to include those as part of this PR, since that deviates from the focused on a single change you like to see.


Fix #175 support RHEL 9 family installation including Rocky Linux 9

This PR adds support for RHEL 9 family operating systems
What type of PR is this?

[ ] bug
[ ] cleanup
[ ] documentation
[ X] feature

Which issue(s) this PR fixes:
(REQUIRED)
Fixes #175
Release Notes

I did some testing and everything seems to look good. We have some users who would benefit from this.

Approved per @Daemonslayer2048 's testing


remove lock and io launcher

Queue lock with master stability that i predicted in 2016 https://github.com/jenkinsci/durable-task-plugin/commit/0bf67ad1c37cf390e62049c8229bf0d536f6221a#commitcomment-24160469
According to my research it not need here at all. So let's try just remove it. In case of side effects plugin version could be downgraded and reported.
IOLuancher doesn't work with obvious error

This change is

@samrocketman JFYI this should improve master performance. I remember that you have a lot of clouds, feel free to try.

Codecov Report

Merging #201 into master will decrease coverage by 0.59%.
The diff coverage is 3.87%.

@@             Coverage Diff             @@
##             master     #201     +/-   ##
===========================================
- Coverage     20.27%   19.68%   -0.6%
- Complexity      232      233      +1
===========================================
  Files            64       66      +2
  Lines          2668     2774    +106
  Branches        243      254     +11
===========================================
+ Hits            541      546      +5
- Misses         2064     2165    +101
  Partials         63       63

Impacted Files
Coverage Δ
Complexity Δ

...tyasha/yad/launcher/DockerComputerSSHLauncher.java
4.61% <ø> (ø)
1 <0> (ø)
:arrow_down:

...kostyasha/yad/launcher/DockerComputerLauncher.java
25% <0%> (-3.58%)
1 <0> (ø)

...yasha/yad/launcher/DockerComputerJNLPLauncher.java
17.51% <0%> (-0.41%)
15 <0> (ø)

...ain/java/com/github/kostyasha/yad/DockerCloud.java
11.82% <0%> (-0.07%)
9 <0> (ø)

...asha/yad/strategy/DockerOnceRetentionStrategy.java
13.11% <0%> (+0.21%)
3 <0> (ø)
:arrow_down:

...sha/yad/commons/DockerPullImageListenerLogger.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...om/github/kostyasha/yad/utils/DockerFunctions.java
56.66% <100%> (+3.09%)
5 <0> (ø)
:arrow_down:

...m/github/kostyasha/yad/DockerComputerListener.java
16.66% <16.66%> (ø)
1 <1> (?)

...styasha/yad/launcher/DockerComputerIOLauncher.java
2.24% <2.24%> (ø)
0 <0> (?)

... and 1 more

Continue to review full report at Codecov.

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

Thanks I will try it out.


[FEATURE] Generate multiple clients based on path segments

Hi, I'm fun of nswag and I use it lot of the time when I write in c#!
When I encountered flutter, the first thing that I've been searched for was a tool like nswag ... and I did fall in love with this fantastic project!
For this reason I would say thank you for your time spent in this work... it saved my time!
But ... whenever we encounter a beautiful stuff ... we always want more and more ...
As I wrote at the beginning, nswag is a fantastic tool ... and it has a nice feature that could be a must-have for this side!
Please take a look at the following piece of code:
https://github.com/RicoSuter/NSwag/blob/fca7e8126d634a7971f10c36d274b4e397577ab3/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs#L17-L18
As it displays ... nswag allow different types of client generation modes.
Most useful of them, is MultipleClientsFromPathSegments that "simply" generates multiple clients with different operations searching them in path's segments.
Could you refer to that mode and implements it also?
It will very appreciate!
Thanks!

Hi @fncap , why just not to create new chopper client each time when make a call? I think this feature will be used only by you

Hi @Vovanella95, thanks for your reply!
Looking to generated code, I found a single Client implementation, with many functions that are bounded to webapi endpoints.
In my daily work, I produce webapi endpoints that organised with namespaces.
For example, I could have something like /host/api/services/app/module-name/feature-name/operation-name that results in a generated method like apiServicesAppModuleNameFeatureNameOperationNameGet (ends with Get if HttpGet or else if endpoint is served with different Http method) inside a unique Client class.
nswag simplify this scenario, assuming last two segments of url respectively for Client name and Operation name.
(most significant terms at the right)
So with the example above we could have a generated client named FeatureName with a function named OperationName, omitting the suffix Get if there is only one Http method inside swagger.
In this way you could have your code organised efficiently, IMHO.

Hi @fncap , I understand your idea, but I will not implement it. You can create repository and create client each time manually.
class ApiRepository {
Future<UserModel> getUser ({required int id}) {
    return ApiService(client: _createClient).getUser(id: id);
  }
}


C# support?

So when I saw this plugin as a person coming from Unity and enjoying working with C# is there any opportunity to have XR tools be also developed for C# to be able to make interaction using it?

you can use c# together with gdscript
however there is no xr tools for c# and right now the only thing that comes close to the xr tools is
the NXR Toolkit that is being developed by nub
https://github.com/stumpynub/NXR
am sure noone has issues if i link this here so, he above is a work in progress,
it contains movement/interactables/weapons/twohanded/reloading/shooting....
since am doing contributions to both projects i can easily explain what u get in both
right now when using xr tools together with the xr template, you get a solid, community tested toolkit, with it
u can create mobile/pc vr games with save/load and a lot more.
the latest pr by @Malcolmnixon adds for example Jog in Place...
there is so much in the xr tools that it is better one discovers its possibilities by playtesting the demo scenes!
Now to the NXR Toolkit,
it comes with stuff that currently is not done or supported in the xr tools, such as twohanded, switching while holding interactables. Snapzones that are similar to "Ghosts of Tabor"... so yeah quiet a lot is in the making but it is the beginning and it is not really field tested and might just not work out for one as there is 0 Documentation and there are 0  Tutorials and if any of these will ever be available, well who knows.
Noone who works on it is getting paid, it is a free voluntery work to support our own projects and possibly others.
After all it is Licensed under MIT like the XR Tools.

Adding support for different languages has been a hot topic recently. The problem with Godot-XR-Tools is that it uses a little too much inheritance/extending when implementing features; and Godot currently doesn't allow inheritance/extending across languages (including GDExtension).
Given this we're looking at moving more of Godot-XR-Tools to a "modifier" approach where you can add modifier nodes to an existing object rather than having to extend your own script from a Godot-XR-Tools script. This would work better because nodes can still communicate when implemented in different languages.


Terraform 0.12 breaks parser

Hi @chrislewisdev ,
Seems that Terraform 0.12 plan breaks your app.
Is there any scheduled update for latest Terraform version?

Hi @puzzloholic!
I don't have any plans to update this for 0.12 I'm afraid, partially due to time constraints but also because the plan output in 0.12 has been significantly improved to address most of the pain points that prettyplan addresses.
Of course, if people still want support for 0.12 in prettyplan, I would gladly accept pull requests to introduce it :)
In the meantime I'll try to make some updates to the repo to more clearly document the fact that only 0.11 or earlier is supported.

I think it still would be better to read the plan in some UI. Unfortunately, Terraform doesn't provide that

Would love to have security diff feature for any version of terraform, that is still the same, it's a lot of pain to verify those long security diffs
@chrislewisdev


MMBENCH: Script to evaluate dev-split locally

Describe the feature
Thanks for the awesome repo. I am just wondering whether there is any script [with CircularEval strategy + choice extraction using ChatGPT] to evaluate our method locally (without submitting to the leaderboard) on the dev split (I see that the file mmbench_dev_20230712.tsv contains answers). Thanks in Advance.
Will you implement it?

[ ] I would like to implement this feature and create a PR!

Hi, @dmlpt , the script is available at https://github.com/open-compass/opencompass/blob/main/tools/eval_mmbench.py

Hi @kennymckormick , Thanks for the response! I will try that command.

Feel free to re-open if needed.

Hi, @dmlpt , the script is available at https://github.com/open-compass/opencompass/blob/main/tools/eval_mmbench.py

may I use this script to make evaluation on test-split locally?


typing.io.IO not supported

Using
       stream (IO[bytes]): The stream (i.e. file-like object) that will
           be uploaded.

does not produce a link to the IO type. It's likely due to the layout of the typing doc.

Yeah, we probably just need to hoist those into https://github.com/jonparrott/sphinx-docstring-typing/blob/master/sphinx_docstring_typing/init.py#L19


Added #701 InsertIntoABinarySearchTree

Pull Request Template
What have you Changed(must)
Added a solution to a new problem
Issue no.(must) - #45
Pr will be close and marked as spam. If issue number not found or issue was assigned to someone else.
Marking as spam can block your account from HacktoberFest.
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me if not it will marked as spam.
[x] My file is in proper folder
[x] I am following clean code and Documentation.
[x] I have added title and what program will do first in the file
[x] I have named the file as (Problem #). (Problem Title(in Camel Case)).(extension)
ex. 2. AddToNumbers.py

README - How to Contribute

Please review it now.
Also, I have raised an issue for the First Positive Integer question. Please assign that to me as well.
Thanks!


Deploying to unverified domain results in unhelpful error

Add domain to your account but do not verify it (meaning, you'll have to add a domain currently registered to someone else). example.com is a perfect test case.

now domains add example.com

Create a v2 project with the alias of the domain you added above.

{
  "version": 2,
  "name": "example.com",
  "alias": "example.com",
}

Run now --prod. If it is the first time you are deploying, simply running now will also cause this behavior.
Eventually you'll receive the error:

> Error! Cannot read property 'indexOf' of undefined

now --prod --debug reveals the following (truncating to last few seemingly relevant lines):
[now-client-debug] 2019-10-10T16:35:07.480Z Creating the deployment and starting upload...
[now-client-debug] 2019-10-10T16:35:07.480Z Determining necessary files for upload...
[now-client-debug] 2019-10-10T16:35:07.481Z Creating deployment
[now-client-debug] 2019-10-10T16:35:07.481Z Sending deployment creation API request
[now-client-debug] 2019-10-10T16:35:08.010Z Deployment response: {"error":{"code":"domain_not_verified","message":"The domain example.com is not verfied and cannot be used as an alias"}}
[now-client-debug] 2019-10-10T16:35:08.010Z Error: Deployment request status is 400
[now-client-debug] 2019-10-10T16:35:08.010Z Yielding a 'error' event
> [debug] [2019-10-10T16:35:08.306Z] Error: TypeError: Cannot read property 'indexOf' of undefined
TypeError: Cannot read property 'indexOf' of undefined
    at /usr/local/lib/node_modules/now/dist/index.js:2:1125385
    at Generator.next (<anonymous>)
    at /usr/local/lib/node_modules/now/dist/index.js:2:1125072
    at new Promise (<anonymous>)
    at r (/usr/local/lib/node_modules/now/dist/index.js:2:1124804)
    at getDeploymentByIdOrHost (/usr/local/lib/node_modules/now/dist/index.js:2:1125326)
    at Module.main (/usr/local/lib/node_modules/now/dist/index.js:2:2580834)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at xe (/usr/local/lib/node_modules/now/dist/index.js:2:1518400)
> Error! Cannot read property 'indexOf' of undefined

I'm not gonna be fast to work on this and will probably need plenty of code review but unless anybody else objects I'd love to take it on as part of my Hacktoberfest challenge.

Clearly it's aware of the relevant error in this case, ([now-client-debug] 2019-10-10T16:35:08.010Z Deployment response: {"error":{"code":"domain_not_verified","message":"The domain example.com is not verfied and cannot be used as an alias"}} ) but somewhere along the line of passing that to the user it hits and presents this indexOf error instead.

Hi @unitof
Thanks for reporting this bug!
If you would like to submit a PR to fix this for Hacktoberfest, that would be wonderful!


chore: switch from eslint/prettier to biome

https://biomejs.dev/

fix linting errors
ignore some for now

There are some merge conflicts here bc of my changes Sorry :(

Thank you very much 👍🙏
And happy holidays! 🎄


RenderItem doesn't refresh when state change

Is this a bug report, a feature request, or a question?
A bug report
Have you followed the required steps before opening a bug report?

[X] I have read the guidelines regarding bug report.
[X] I have reviewed the documentation in its entirety, including the dedicated documentations :books:.
[X] I have searched for existing issues and made sure that the problem hasn't already been reported.
[X] I am using the latest plugin version.
[X] I am following the issue template closely in order to produce a useful bug report.

Have you made sure that it wasn't a React Native bug?
it's not a react native bug.
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I just test to Android.
Is the bug reproductible in a production environment (not a debug one)?
I don't use it to prod. I check in my phone with react-native run-android.
Environment
Environment:
React: 16.8.6
React native: 0.60.5
react-native-snap-carousel: 3.8.2
Target Platform:
Android (6.0)
Expected Behavior
I have 3 items. Each item is a button that opens the camera. Once we take the picture, it should show the picture instead of the button for each item.
Actual Behavior
When I take the photo, it updates the state but it does not display the photo.
Reproducible Demo
<Carousel
                        ref={(c) => { this._carousel = c; }}
                        data={[
                            {key: 0, urlImage: this.state.urlImage1,},
                            {key: 1, urlImage: this.state.urlImage2,},
                            {key: 2, urlImage: this.state.urlImage3,},
                        ]}
                        extraData={this.state}
                        renderItem={this._renderItem}
                        sliderWidth={screen.width}
                        sliderHeight={300}
                        itemWidth={300}
                        itemHeight={300}
                        containerCustomStyle={{
                            flexGrow: 0,
                        }}
                    />

_renderItem ({item, index}) {
       return (
           <View style={{ width: 300, height: 300, position: "relative", marginTop: 20 }}>
               { item.urlImage == "data:image/jpeg;base64" ?
                   <TouchableOpacity
                       onPress={(e) => this.takePhoto(e, item.urlImage)}
                       style={{ backgroundColor: 'transparent', borderColor: 'white', borderWidth: 1 ,width: 300, height: 300,  zIndex: 9999, elevation: 9999, position: "absolute", top: 0, left: 0, right: 0, bottom: 0, justifyContent: 'center', alignItems: 'center' }}
                   >
                       <View>
                           <Icon
                               type="MaterialIcons"
                               name="add-a-photo"
                               size={95}
                               color={"white"}
                           />
                       </View>
                   </TouchableOpacity>
                   : <View></View>
               }
               <Image
                   source={{ uri : item.urlImage }}
                   style={{ width: 300, height: 300, backgroundColor: "#046381" }}
               />
           </View>
       );
   }

takePhoto(e, item) {
        ImagePicker.launchCamera(options, (response) => {
            if (response.error) {
                console.log('ImagePicker Error: ', response.error);
            }
            else {
                const source = { uri: 'data:image/jpeg;base64,' + response.data };
                this.setState({
                    [item]: source.uri,
                    refresh: !this.state.refresh
                }, () => { console.log(this.state.refresh) });
            }
        })
    }

I have an issue with updating the state in component.
In my case, I am changing the width of the sliderWidth and itemWidth when the layout of the container view changes.
In a first moment the carousel re-render it self, but it doesn´t always apply.

Hi. I don't know if you've solved the problem, but I had the same problem today. If you do as in the example below, the high probability of the problem will be solved. I hope it helps.
state = {
refresh: false,
};
<Carousel
ref={(c) => { this._carousel = c; }}
data={[
{key: 0, urlImage: this.state.urlImage1,},
{key: 1, urlImage: this.state.urlImage2,},
{key: 2, urlImage: this.state.urlImage3,},
]}
extraData={this.state.refresh}
renderItem={this._renderItem}
sliderWidth={screen.width}
sliderHeight={300}
itemWidth={300}
itemHeight={300}
containerCustomStyle={{
flexGrow: 0,
}}
/>
takePhoto(e, item) {
ImagePicker.launchCamera(options, (response) => {
if (response.error) {
console.log('ImagePicker Error: ', response.error);
}
else {
const source = { uri: 'data:image/jpeg;base64,' + response.data };
this.setState({
[item]: source.uri,
refresh: !this.state.refresh
}, () => { console.log(this.state.refresh) });
this.setState({ refresh: !refresh});
}
})
}

@kasim444  extraData props is available?

up!
currently having problems refreshing the component as well!
Any clue on how to force refresh?

Any news about this?

Also having this issue. I have the carousel sitting over a map screen and when users zoom out or change the map view, the data set is then altered. This causes an issue with the scroll behavior of the carousel and prevents it from scrolling.

Still not working ...

I solved this by doing a setTimeOut and forcing a re-render of the whole page by toggling my isLoading state element. It's not the best solution, but it works:
` componentDidUpdate = () => {
if (
  JSON.stringify(this.props.unsavedItem.images) !==
    JSON.stringify(this.state.carouselData)
) {

  this.setState({
    carouselData: this.props.unsavedItem.images,
    isLoading: true,
  });

  // Weird hack to fix the missing image because
  // Carousel doesn't refresh when changing images
  setTimeout(() => {
    this.setState({ isLoading: false });
  }, 150);
}

};`
Of course you need to have your main content toggled by your isLoading.

You can try use triggerRenderingHack().
useEffect( () => {
	carouselRef.current.triggerRenderingHack();
}, [ items ] );

...

<Carousel
	ref={carouselRef}
	data={items}
	renderItem={renderItem}
	onSnapToItem={_setCarouselIndex}
	sliderWidth={screenWidth}
	itemWidth={screenWidth}
/>


This does not seem to work when using the ESP32

First off, thanks for sharing this! I'm having a few issues:
When reading from channel 0, the results are exactly 1/2 of what I'm measuring on my scope. This does not change if I alter the SPI frequency
When reading from channel 1, it always returns zero.
Using other libs for this chip, I always get skewed values, this has been most consistent despite still not providing the expected values. Any help is greatly appreciated.

Will check tomorrow, too busy today.
Which mcp do you use?
Possibly i can recreate your setup.

I'm using the MCP3002

There is any reason to force to use the default SPI port? Some boards like Arduino Mega or the ESP32 have more than one SPI port.
I found this file and can be changed easy to work with the VSPI:
https://github.com/MIDI-CHIP/MCP3008/blob/master/src/mcp3008.cpp
But I think that can be better to use the SPI as an object, for example on this topic they talk about it:
https://forum.arduino.cc/index.php?topic=688279.0
Maybe a easy way to implement is using something like this example and a single preprocessor define (by default uses the SPI like now and when we define something will use the vspi/hspi alternative):
https://github.com/espressif/arduino-esp32/blob/master/libraries/SPI/examples/SPI_Multiple_Buses/SPI_Multiple_Buses.ino
If you like the idea I can help to debug with a ESP32 and the MCP3008.

The reason for the default SPI port? It is a starting point. First get something working and add functionality in small steps.
I need to build up more ESP experience so your links and your offer for help are definitely appreciated.

(my agenda filled up with priority things so expect delay's)
Problem 1: measurement too low
You state you get only half the value expected with channel 0.
Can you tell more about your measurement setup?

ESP32 + MCP3002
voltage of the MCP3002 =  3V3  or 5V ?
voltage to be measured?
Are the grounds all connected for same reference?

Can you make 3 measurements with channel 0 ?

print the HEX values of the bytes received in readADC( )   (around line 95- 100 in MCP_ADC.cpp)
when applying  0V, 3V3, something in between.

The MCP3002 is a 10 bit so some of the expected values are  -  there might be noise

voltage
hibyte
lobyte

0V
0x00
0x00

1V
0x01
0x36

2V
0x02
0x6C

3V3
0x03
0xFF

When using 5V to power the MCP3002 (= reference voltage) these numbers will be different.

(found some time)
Did a test with an MCP3008 and an UNO (no ESP32 nearby) and connected it to 5V - both VDD and Vref
This mimics the MCP3002 which does not have separate VDD/Vref
5V ==> 1021-1023 as expected  => note more noise than expected.
GND ==>  0 as expected
3V3 ==> 666-667 as expected
Powering the MCP3008 with 3V3 gave the following results:
GND ==> 0 - expected
3V3  ==> 1021 - very stable but expected 1023
5V  ==>  1023 - very stable (don't know if this is seen as an over voltage but at least the value is as expected.
So although not tested with ESP32, the library acts like it should.
Please note that the actual reading is affected (~33%) by the value of the (VDD/) Vref pin.

@intakenick any luck getting good readings from this?  I have an MCP3208 connected to an ESP32 and my values are low as well.  I have a simple photoresistor hooked up to channel 0 and I see a range from 255-1250 on the MCP3208 with this lib and 850-4096 on the ESP32 ADC.  I haven't had any luck with any other libraries working at all.

I had some luck using the MCP3XXX library by Chris Baker. I had to lower
the SPI frequency within the h file to get more accurate results.
Line 278: typedef MCP3XXX_<10, 2, 1200000, 2> MCP3002;
I changed 1200000 (1.2MHz) to 100000 (100kHz) which is plenty fast enough
for my application. Results get more accurate with longer sampling time,
I've gone down as low as 10000.
Hope this helps.
-N
--
Nick Johnson
Intake
(914) 906-3527 [mobile]
@.***
Automating preventive care. (myintakepro.com)
NOTICE OF TRANSMISSION: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or entity to
whom they are addressed. If you are not the named addressee please notify
the sender immediately and delete this e-mail from your system. If you are
not the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
On Wed, Mar 10, 2021, 4:09 PM Boots @.***> wrote:

@intakenick https://github.com/intakenick any luck getting good
readings from this? I have an MCP3208 connected to an ESP32 and my values
are low as well. I have a simple photoresistor hooked up to channel 0 and I
see a range from 255-1250 on the MCP3208 with this lib and 850-4096 on the
ESP32 ADC. I haven't had any luck with any other libraries working at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobTillaart/MCP_ADC/issues/3#issuecomment-796111570,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARBUKBBSCZ3H4YYQCZ5OHCLTC7GWDANCNFSM4X4YMHTQ
.

@intakenick
interesting find, it would mean that software SPI, which is slower, should result in more accurate measurements.
I definitely need find some time to verify / test.

I ended up using a different library to prototype with but I'm going to revisit this one when my final boards are complete as it seems to be the most actively maintained  👍

Do not have a working setup yet, but found a probable cause for the MCP3002
The buildRequest is not correct (line 132 in .cpp file)
Code below fixes OR when single
can you please check if this improves the measurement?
uint8_t MCP3002::buildRequest(uint8_t channel, bool single, uint8_t * data)
{
    // P17  fig 6.1   MCP3002
  data[0] = 0x44;                          // start bit + MSB first bit
  if (single) data[0] |= 0x20;             // single read | differential
  if (channel) data[0] |= (channel << 4);  // channel = 0 or 1;
  return 2;
}

Got my MCP3008 working with software SPI

DOIT ESP32 DEVKIT V1
MPC3008
software SPI

MCP3008 mcp1(23, 19, 21);  // dataIn, datOut, Clock

Read takes < 15ms
All 8 channels OK (tested with a potmeter)
What I noticed on the scope was that if the last bit is 1 it is not pulled to GND by the MCP3008.
It follows a nice "unloading" RC curve

@RobTillaart I have the MCP3208 (12 bit version) .. will your changes affect that?

Screenshot signal software SPI

Very visible is the floating line at the end.

I will try to lower the speed of the HW SPI to see if that helps

@RobTillaart I have the MCP3208 (12 bit version) .. will your changes affect that?

The changes posted above with the OR fix is only for the MCP3002.
I need to review the buildRequest() function of the MCP3208 and check the datasheet.
I'll be back

@RobTillaart Appreciate the work!  I'll test the 3208 when ready.

@BootsSiR
@intakenick
A review showed that the bit pattern created in the  buildRequest() for the MCP3208 is good.
Problem could be the signal deformation of the HW SPI (which might be a breadboard issue but still)
Can you verify that the software SPI modus is working correctly?

Created a branch named: ESP32demo  with the fix for the mcp3002 and 2 demo sketches specific for the ESP32.
The ESP32 software SPI is working correctly with the MPC3008 ,
The ESP32 hardware SPI is under investigation.

@RobTillaart
For reference, I seem to get good values using hardware SPI and this library:
https://github.com/labfruits/mcp320x

Thanks, I'll have a look if they reduce the speed somehow (which is my assumption)

Yep, labfruits use 1.6 MHz, I use 16MHz,

8 MHz fails, and it misses bits resulting in lower values.
6MHz seems to work,
4MHz is safe, ==> will make that the default value in the library
I will update my ESP32 hardware SPI example with a extra line to setSPISpeed()

The datasheet MCP3208 page 3  states for 2.7V (~~ESP32) a max speed of 1 MHz,
so even the software SPI on ESP32 might be too fast...
The 4 MHz is about the 250 ns mentioned.
So after 6 hours of analysis it all makes sense :)
Now fix the library and the readme.

Good find 👍

Thanks
Signal at 4 MHz looks quite good.

Updated ESP32demo branch with working HW SPI @ 4 MHz

Just merged it?  Branch disappeared before I could pull it.  Going to test now :)

ESP32demo branch is merged and version 0.1.2 is released.

@RobTillaart the values I'm reading now line up with the values I was getting using the labfruits library.  Thanks for the fixes!

Good to hear!
The read performance will be a lower, but quality is more important than speed 😀

If you are missing things in this or one of my other libraries (or missing a library at all) just let me know

@intakenick
Can you confirm it works now for you too?

If problem reappears please reopen issue.


Update best-practices.md

Replaced procesimientos with procesos, I'm pretty sure procesimientos is not a word in spanish :D
Also, I added a í that was missing 👍

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Gracias. 😄


#345 - Refactor:  Clean folder structure

Description

Example projects have been moved to the examples folder.
The used packages have been moved to the packages folder.

See

Before
After

Note
This change only includes packages and examples. In a new PR, we should also move the wolt_modal_sheet package into the packages folder.
Related Issues
https://github.com/woltapp/wolt_modal_sheet/issues/345
Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes tests for all changed/updated/fixed behaviors.
[x] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] The analyzer (melos run analyze) does not report any problems on my PR.
[x] The package compiles with the minimum Flutter version stated in the pubspec.yaml

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

@TahaTesser Thank you for your review. I have updated the README file.

@ulusoyca Thank you for your review. 💙


DMN Editor: Re-enable the new Boxed Expression Editor in Standalone Editor (and Chrome Extension)

https://issues.redhat.com/browse/KOGITO-7830
In this PR: https://github.com/kiegroup/kie-tools/pull/973, we removed the new Boxed Expression shift because:

Chrome Extension: Because the new editor doesn't support read-only mode

Standalone (or Embedded) Editor: Here, the new BEE doesn't work at all

The new editor still doesn't support read-only mode (so far), we can discuss if it makes sense to enable it in the Chrome Extension or not.
Thus, the minimal requirement of this ticket is to re-enable it in the standalone editor.
To do it, modifying this line is required but not enough. As far I remember, the switch doesn't work in Standalone Editor because the required JS files are missing (most likely the dmn-loader)

Analysis
To correctly enable the GWT-React BEE module, is required that dmn-loader.js is loaded as script and registered with __KIE__DMN_LOADER__ namespace (see DMNLoader.java)
IIUC, in the standalone app the required dmn-loader.js is imported and integrated inside a unique js file (index.js). The bridge's link between the namespace and the js file is not managed. As a result, when the editor tries to render the new boxed expression, an NPE is thrown

Thus, we need to find a strategy to manage this missing link.

In GWT code, you can modify ExpressionEditor.java:113 to enable them.

@tiagobento I'm very glad to see that that issue doesn't occur in the bee refactoring branch .
In that branch, it works nicely with no change required.

Despite I'm very glad that, I don't understand the root cause of the issue we currently have in main, and why it doesn't occur in the refactoring branch.
I think we can close this and double-check again the standalone editor after the merge of the above branch, let me know what you think.

@yesamer There are so many wrong things with the BEE that's in main that I don't really think it's relevant for us to find the root cause of this. Let's blindly celebrate that it's working now! :D


How to set a local image as the background?

I deploy this container on unraid docker. And create a path /images links to /mnt/user/support/theme in the container setting. Then I put the image into the theme folder and set it in the css as follows.
body {
background:
linear-gradient( rgba(0,0,0,0.3), rgba(0, 0, 0, 0.3) ),
url('/images/1.jpg') no-repeat center fixed;
background-size: cover;
}
But the picture has not been loaded, and the background is still gray. I don't know much about the relevant css settings, so I asked my friends to help me fix it but didn't work. So can someone help me?

Here's what I ended up doing:
I made a directory on my host to store all the backgrounds called backgrounds. This was mounted to /app/public/backgrounds/ and then I simply referenced the image in the custom CSS as backgrounds/<wallpaper>.png. Hope this helps!

Here's what I ended up doing:
I made a directory on my host to store all the backgrounds called backgrounds. This was mounted to /app/public/backgrounds/ and then I simply referenced the image in the custom CSS as backgrounds/<wallpaper>.png. Hope this helps!

I tried this way, but it didn't work for me. So I direct store my background photos in /appdata/flame/uploads. Then in the CSS use the follow path ./uploads/images/wallhaven-eo19ro.png. And it works.


handle versionning for embeds_many and embeds_one relation

Coverage decreased (-5.0%) to 94.76% when pulling a176b51739504f4b109cd409426fbcea82fcf7e3 on GCIDIR:master into 439c0e107a00dd8ba32c38448ff2e6593566bc39 on mongoid:master.

Coverage decreased (-5.0%) to 94.76% when pulling a176b51739504f4b109cd409426fbcea82fcf7e3 on GCIDIR:master into 439c0e107a00dd8ba32c38448ff2e6593566bc39 on mongoid:master.

Coverage decreased (-5.0%) to 94.76% when pulling a176b51739504f4b109cd409426fbcea82fcf7e3 on GCIDIR:master into 439c0e107a00dd8ba32c38448ff2e6593566bc39 on mongoid:master.

Coverage decreased (-5.0%) to 94.76% when pulling a176b51739504f4b109cd409426fbcea82fcf7e3 on GCIDIR:master into 439c0e107a00dd8ba32c38448ff2e6593566bc39 on mongoid:master.

Coverage decreased (-5.0%) to 94.76% when pulling a176b51739504f4b109cd409426fbcea82fcf7e3 on GCIDIR:master into 439c0e107a00dd8ba32c38448ff2e6593566bc39 on mongoid:master.


Add Elasticsearch publisher

The Elasticsearch publisher automatically uploads test result to
the specified Elasticsearch server at the end of test.

Hello,
I noticed that you stated on line 557 of publisher.py that the default es_uri parameter is set to "http://localhost:9200". However, on line 93 of the same file you do not do this, and es_uri is whatever it has been set to seeing as it is required to be set up in order to use the publisher (line 696 of publisher.py)

Thanks! I fixed it.

Looks good to me. I will defer to @tedsta on merging.


Set ssh key algorithm for Git Provider Config

Issue #, if available:
Description of changes:
These code changes let the users set the ssh key algorithm field in the cluster spec.
The new cluster spec would look like:
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: FluxConfig
metadata:
  name: fc-byog
spec:
  git:
    repositoryUrl<EMAIL_ADDRESS>    sshKeyAlgorithm: ed25519

Testing (if applicable):

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

/approve

/lgtm

/hold


admin: Account for duplicate emails in the .mailmap

Please look this over. If you are one of the duplicated names and I
haven't chosen your preferred canonical email (I made my best guess),
please comment here with corrections.

Harmless, no objections -> merge


Deploy MQTT broker

A core component of the Mykilio stack is an MQTT broker. The emqx MQTT broker seems to be a good option.

This depends on #17.


Don't process cluster deployment until installed is set to true.

Only process a cluster deployment resource after OpenShift v4 cluster has been succesfully installed and "Installed" is set to true.
Resolves JIRA SREP-1263
Signed-off-by: Tejas Parikh<EMAIL_ADDRESS>

/retest


cater for mapview marker reposition for GridLayout/BoxLayout

When mapView is used in GridLayout/BoxLayout or other types of layout which does not occupy the entire window or when not located at the bottom left, the mapMarker will get clipped by the bbox calculated assuming mapView starts at position 0,0.

not fully fixed,


⚠ HDBits has degraded performance

In 0ceab73, HDBits ($HDB) experienced degraded performance:

HTTP code: 200
Response time: 8629 ms

Resolved: HDBits performance has improved in 268ad35 after 5 minutes.


Write a GO program to find sum of squares of numbers by recursion

Description
Write a GO program to find sum of squares of numbers by recursion
Input  : 1 2 3 4 5
Output : 55

How to contribute

Save the solution in find_sum_of_squares_of_numbers_by_recursion.go file
Add find_sum_of_squares_of_numbers_by_recursion.go file in find-sum-of-squares-of-numbers-by-recursion folder

!assign

!assign


Respond to RESET

Ill trying to use you library to emulate DS18B20.
To start communication with One Wire master I need to respond to Reset.
I see Reset in console, then I see Error. But data from master I don't see.
How to respond to RESET?
void owReceive(OneWireSlave::ReceiveEvent evt, byte data) {
	switch (evt) {
    Serial.println(data, HEX);
    // Detect Reset on bus
    case OneWireSlave::RE_Reset:
        Serial.println("Reset");
    case OneWireSlave::RE_Byte:
      // Read Scratchpad [BEh] command
      if (data == 0xBE) {
      	 Serial.println("Scratchpad command");
      }
    case OneWireSlave::RE_Error:
         Serial.println("Error");
		OneWire.write(&acknowledge, 1, NULL);
		break;
	default:
		;
	}
}

Hi,
Have you tried without writing "Reset" and data to the serial port? Writing to the serial port is really slow compared to some 1-wire events that occur within a few micro-seconds. More precisely, it should be fine to write to the serial port from your main loop, but don't do it from the owReceive handler (or any function called from it).
In case that doesn't solve your issue, can you tell me what arduino board and 1-wire master are you using? So far I've only tested with an Arduino Uno and a DS9490R.

For test I use another Arduino with OneWire library - http://www.pjrc.com/teensy/td_libs_OneWire.html
and example to read DS18B20 http://cxem.net/arduino/arduino17.php.
Without example it's very difficult to understand this is my problem or library problem.
Now in RE_Byte I only assign data to a command variable, and then in loop I'm bringing data to Serial, it always 0
    case OneWireSlave::RE_Byte:
      // Read Scratchpad [BEh] command
      command = data;

OK, maybe the library is not compatible with the other arduino library (things can be sensitive to different timings). Just in case, are you sure the electronic part is correct ? (I think you need a resistor between the bus and 5V that will keep the bus at 5V unless either the master or the slave pulls it low)
I'll try to make a DS18B20 implementation, that would surely be a good example to help understand how to use the library, and also allow easier testing in other configurations (different arduino board, or different master). But I can't say when that'll be, so it will probably not solve your issue on short term.

I use resistor 4.7kohm between data and +5V. And when I use real DS18B20 with this schematics all works fine.
I will try to use oscilloscope.
About volatile variable its a good tip, my var was not volatile.
Thanks for quick answers!
I'm making the emulator ds18b20 just for fun, so
If this works, capabilities of my z-wave sensor will be expanded and it cool!

Now I have good communication between 2 arduino.
Ready sketch I will post later.
Library works fine!

Great, that's reassuring me for compatibility with other masters :-)


Applied as_field_group on admin login page.

@sarahboyce Do you have time to keep working on this?

I'll close for now, I forgot why I put it as draft


JavaScript: Remove deprecated queries.

These queries have all been deprecated since 1.17 (released in July 2018). I think it's time to say goodbye.

:tada:
Should we include the file names and query ids in the commit message to improve searchability a bit, in case we need to backtrack later? Or will we let our git-fu handle that?

I'd say let Git handle that.


Support for HF Accelerate on Gaudi /AMD cards

We chose to use Hugging Face Accelerate to implement support for both DeepSpeed and FSDP. On Nvidia cards, this was a drop-in replacement for a fully custom training loop. However, minor training loop changes may be needed to run on Intel Gaudi and AMD Instinct cards.
One example of this difference is that on Gaudi cards, one switches:
- model.to(device_id)
+ model.to(device_hpu)

And the Intel Gaudi Pytorch bridge handles moving the model to the correct GPU according to the assigned process rank.
This is different enough from the vanilla Nvidia + torch training loop that Accelerate might not support it directly.
We need to scope:

What is the current state of potential support for running distributed training on AMD / Intel
Is it possible to non-invasively patch Accelerate to make it work on Intel / AMD
How can we propagate those changes to the upstream

Contributing tasks:

[ ] #240

HF Accelerate works just fine on AMD cards because no code path changes are required.
On Intel there's evidence to suggest that Gaudi cards need deep changes to Accelerate in order to work correctly. For example, in optimum-habana there's an Accelerator implementation that uses the HPU APIs directly: here
Pursuing Accelerate on Gaudi- i.e. specifically GaudiAccelerator- is a waste of our time right now because we only intend to use FSDP on Gaudi cards. If we intended to support DeepSpeed for Accelerate we could choose to use GaudiAccelerator as a replacement for the default Accelerator that we're currently using.

Synced with @JamesKunstle - this is something we can't pursue ATM for Gaudi. For AMD, we're already using this codepath - CUDA compatible


Dscs 2516

This request provides the fix for bigSuspendEdges and bigSuspendVertices in a large session.  The problem in the current implementation is that the suspend of the final batch of DEL, NEW, MOD edges and vertices are called at the end of the corresponding methods, but the final batch of DEL edges and vertices are cleared upon the suspend of the first batch of NEW and MOD edges and vertices, causing DEL edges and/or vertices in the final batch missed being suspended on ocassions.

good find!

@scoen thanks Shaun.  @jrixon @sjacob @m-r-c could you please have a look at this also, happy to amend the code on good suggestions, thanks.

SonarQube analysis reported 5 issues

 AmberGraph.java#L523: The Cyclomatic Complexity of this method "getEdge" is 11 which is greater than 10 authorized.
 AmberGraph.java#L812: The Cyclomatic Complexity of this method "bigSuspendEdges" is 11 which is greater than 10 authorized.
 AmberGraph.java#L865: Remove this useless assignment to local variable "batchLimit".
 AmberGraph.java#L805: Introduce a new variable instead of reusing the parameter "batchLimit".
 AmberGraph.java#L875: Introduce a new variable instead of reusing the parameter "batchLimit".

Build finished.

Looks good!


fix key map update

this.updateMap is not called when handlers are changed due to
short-circuiting

Thanks!


attributeerror: module object has no attribute NS_LIST

Hi
I have installed stix from  pip. And there is no mistake in the process of installing. But when I test the installing result and typed the command "import stix", The shell window reminded me that "attributeerror: module object has no attribute NS_LIST"
My installing environment is win7.
Is there someone can help me ? I have been confused for a week!!!
Uploading

Hi @kiko441500. Are you installing from PyPI or from the GitHub repository? The GitHub repository is probably not in a great state to be installing from (but hopefully will be in the coming weeks).  I can't tell entirely from the screenshot you posted, but it looks like you're using the development version of CybOX (<IP_ADDRESS>.dev0).

Hi- I'm getting the same error, though i'm using python setup.py install.  The installation process itself seemed to have no errors, but when i try the test, >>>import stix,  I'm getting:  "AttributeError: 'module' object has no attribute 'NS_LIST'.  Below is the screenshot of the error, i also have saved the output of the install
Here is a screenshot of the error:

Hi @JennyQQQ ! If you can, try uninstalling cybox (pip uninstall cybox) and then install the latest stable version (pip install "cybox==<IP_ADDRESS>"). If that doesn't fix it, also try uninstalling then re-installing stix as well.
I think this is caused because older versions of pip don't see the latest "development" release of cybox (<IP_ADDRESS>.dev1) as a "pre-release", and so install it when stix requires cybox < <IP_ADDRESS>
Just to confirm my expectation, can you paste the output of pip list (especially any lines that include cybox, stix, mixbox, maec, or lxml)?

I have solve the problem. It is the problem of the version of Python. You could find the Intel python.
发自我的 iPhone

在 2016年7月30日，02:33，JennyQQQ<EMAIL_ADDRESS>写道：
Hi- I'm getting the same error, though i'm using python setup.py install. The installation process itself seemed to have no errors, but when i try the test, >>>import stix, I'm getting: "AttributeError: 'module' object has no attribute 'NS_LIST'. Below is the screenshot of the error, i also have saved the output of the install
Here is a screenshot of the error:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Greg, you're the man!  Thanks so much.  all it took was uninstalling cybox and reinstalling a newer version of cybox.  What is mysterious to me is that i used the exact same downloads as i did last time (the time that did work) - why it didnt work this time i'm not sure.  But your solution did.
Thanks again!!! :)
Jenny
here's the result of pip list:
cybox(<IP_ADDRESS>)
lxml (3.4.0)
maec (<IP_ADDRESS>)
mixbox (0.0.13)
ordered-set (2.0.1)
pip (8.1.2)
python-dateutil (2.5.3)
setuptools (16.0)six (1.10.0)
stix (<IP_ADDRESS>)
weakrefmethod (1.0.3)
xlrd (0.9.3)
xlrd (0.9.3)

Glad this is fixed, @kiko441500 and @JennyQQQ !
The reason this might have worked before, but failed recently, is that we have pushed new "pre-release" versions of CybOX (such as <IP_ADDRESS>.dev1) . Newer versions of pip will (correctly) ignore these versions, but some older versions of pip will install them instead of the latest stable version (<IP_ADDRESS>).


Focus not set after filtering

Hi ,
For focusing the tree for key navigation you can call treeModel.setFocus(value)
For focusing on the first node you can call treeModel.getVisibleRoots()[0].focus()
the above solution works fine if the tree is not hidden . I have tried this in Ngafterviewinit for a componenet where tree is not hidden.. and it works fine with key navigation .
I my scenario the tree is not shown to the user (but he has option to click and view the tree). The tree will open up after the filtering.
Filtering works fine.. the node also gets focused. But the key navigation fails .
Is there something that you can guide me , so that I will be able to perform the key navigation as well.

Hi,
Are you focused inside the input? I think key navigation cannot work in that case unless you explicitly blur out of the input.

Thanks @adamkleingit, that worked!


E2E test for basic angular app on travis

We need an example / e2e test for angular that uses the default transformer, compiles to js (both dart2js and ddc) and verifies that the app loads without error.
We've had too many breakages that are only detected we we attempt to publish a release and test with some example apps. We need to detect these failures on travis instead.

FYI, as part of the Angular docs site we have about 30 example apps that we run both component test and E2E tests for after each commit to https://github.com/dart-lang/site-webdev. We currently run these tests over Dart stable and dev streams as well as using dart2js and the ddc. See this Travis log as an example.
I had recently considered adding another Travis job (or two) to run tests over angular@HEAD. Would that help?
cc @kwalrath @kevmoo

Following through with the previous comment: of course, having an extra Travis job will only work if there are no breaking changes in angular@HEAD. When there are breaking changes that require updates to test code, I'd suggest we have a dedicated site-webdev branch name, say, dev. In fact, that is that I have now (although it is currently named 4-dev). We could make the dev branch a permanent part of the angular/site-webdev build process. Thoughts?

A bit of help/ideas here: https://github.com/dart-lang/test/issues/765

Another update (FYI): I've been keeping the site-webdev 5-dev branch up-to-date w.r.t. Angular releases (so we're at 5-alpha+5 atm). Here is an updated Travis log. E2E are written using protractor, are currently running over all ng example apps as built from the ddc and dart2js. Of course it'll be nice to have a Dart equivalent of protractor (one was in the works at some point, but I believe that development has been dropped).


Add Optimism Göerli at chainId.ts

https://status.optimism.io/ as you can see here Goerli testnet is up already.
And from this dev post they will stop supporting the rinkeby testnet
https://dev.optimism.io/kovan-to-goerli/

:/


fix: make dream2nix evaluation work with --read-only flag

See https://github.com/NixOS/nixos-search/pull/502#issuecomment-1193305553 and the discussion there.

I checked if in particular the removal of using builtins.path for files when creating a source tree would cause problems in derivations; for Rust crane builder it doesn't seem to change anything, the derivations still seem to be same, no dependencies to the whole source tree is added. Not sure about other subsystems, but it seems to be fine.

Could you add a test that ensures that whatever this fixed will not be broken by a future change?

OK, I added tests. I had to make it so that the read-only check isn't ran on the haskell subsystem examples because those use IFD so they won't work with --read-only anyways.


merge package from arlac77/npm-package-template

package.json

chore(package): add<EMAIL_ADDRESS>
rollup.config.js

chore(rollup): import json

:tada: This PR is included in version 2.0.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update Google from official list

Source: https://www.gstatic.com/ipranges/goog.json
See also https://support.google.com/a/answer/10026322?hl=zh-Hans

These IP ranges are not all marked as anycast though. This project is only collecting anycast ranges to help IP geolocation.


Feat relative rendering of content for version

fixes #1010
fixes https://github.com/maidsafe/safe_browser/issues/1017

Want :grin:


CoreData+MagicalRecord.h  file not found

I have run the Example target in from INSElectronicProgramGuideLayout.xcworkspace, but can't find CoreData+MagicalRecord.h file

You must install pods

…… I had installed pods。
change  #import <CoreData+MagicalRecord.h>  to  #import <MagicalRecord/MagicalRecord.h>.

Example can be quite old, will you make PR for this ?


How to handle global type definition clashes

TypeScript Version:  2.4.2
Let's say I'm using some unit/e2e libraries which are exposing same global functions, for instance test / describe but they have:

1st use case -> structurally similar types for both functions
2nd use case ( contrived one ) -> they have not structurally compatible definitions

-> I wanna got tsc run without errors for whole project ( source / unit tests / e2e  files )
use case 1
let's say the test function has signature like this
libraryA:
type Test =  (name: string, fn?: ProvidesCallback, timeout?: number) => void;
libraryB:
type Test = (name: string, fn: (t: TestController) => Promise<any>): this;
they have some discrepancies in other defintions but "skipLibCheck": true, comes here to save the day, which is not entirely ok. Why? well now, when I write test(...) I get test definition from libraryA instead of libraryB, which may break when one of those libs changes API, so it's a temporary OKish hack
use case 2
let's say they have different type defs for tests
libraryA:
type Test =  (count: number, fn?: ProvidesCallback, timeout: number) => void;
libraryB:
type Test = (name: string, fn: (t: TestController) => Promise<any>): this;
now I'm screwed, because those 2 types are not structurally matching so I won't get tsc running without errors.
only solution for this use case, that comes on my mind, is to create base tsconfig.json, with only global types, that are not clashing and then creating extended tsconfig, which will override types appropriately and run them via -p configOne.json or just via CLI --types
This is currently a issue here:
https://github.com/AlexanderMoskovkin/testcafe-mocha-example/pull/1
https://github.com/DevExpress/testcafe/issues/1537#issuecomment-320274019
I think either way this should be documented in Typescript docs if there are just solutions that I mentioned.
Thanks for any help !

Well I generally come down pretty hard in favor of anything that would reduce declaration collisions and improve multi version scenarios, I think TypeScripts behavior is correct here.
Globals are bad design have nothing about testing frameworks makes them special or exempt from good practice.
I recommend substack/tape (and spion/blue-tape for asynchronous tests). Simple, concise, and good for the environment.

only solution for this use case, that comes on my mind, is to create base tsconfig.json, with only global types, that are not clashing and then creating extended tsconfig, which will override types appropriately and run them via -p configOne.json or just via CLI --types

that would be my recommendation here as well.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


Styles customization update for: Radio Button Group, Radio Button, Enchanced Switch Label, Text Field, Toogle, Checkbox.

This update targeted on customization with styles various material components. In some cases I couldn't change any of the elements, in some cases I could change only some part of the component. It leads to fail in customization at all. The fixes below are targeted on updating components to handle incoming portions of styles.

Thanks @misha-panyushkin !

Thank you man for that repo!


RangeError with XPath evaluation

Description
When attempting an XML Path evaluation on a 15mb XML file, I receive an error message of "Something went wrong while evaluating the XPath: RangeError: Maximum call stack size exceeded".
Screenshots
If applicable, add screenshots to help explain your problem.
Extension Version
v2.5.1
VS Code Version
v1.88.1
Operating System
OSX

Same here. Any news?


Remove duplicate code from zookeeper.cpp

Hello,
While working to change ReplicatedMergeTree to use a pool of threads instead creating 6 threads for each table I found the following:

ZooKeeper::exists can use ZooKeeper::existsWatch
ZooKeeper::tryGet can use ZooKeeper::tryGetWatch

Code is the same so it's not point to ducplicate it. Btw not sure why Stat * stat_ has _ at the end .. ? it's a copy paste issue or any naming rule ?
Silviu

Code is the same so it's not point to ducplicate it.

Great, thanks!

Btw not sure why Stat * stat_ has _ at the end .. ?

I think it is copy paste from functions, that have another stat variable inside.
For more clarity, you can rename stat_ to out_stat and all other out-parameters in the same way.

use a pool of threads instead creating 6 threads for each table

That will be great. But caution should be taken, so one table will not block other tables.
On the other hand, many sleeping threads is no problem (at least in Linux). Sometimes it hits ulimit, but ulimit can be easily increased.

@alexey-milovidov from what I see this threads wake up time to time at regular intervals even if there is no activity in that tables. Most of them are using tryWait(duration); which means that the threads is in idle until an event comes or the time expired. When you have such a lot of threads I think the context switching affects performances.
And from what I see in most of this threads zookeeper and disk io is used intensively. If my assumption is ok if zookeper or disk io it's exhausted  dedicated threads per table wont help.
I'm I missing something ?

If my assumption is ok if zookeper or disk io it's exhausted dedicated threads per table wont help.

That's correct. What I'm afraid is if all threads in threadpool will lock or wait, but not yield to another tasks. The refactoring should be implemented very carefully.
Also I'm afraid of long waiting due to ZooKeeper sync operations. In some network circumstances (like Jepsen tests) we saw infinite locking in ZooKeeper C library (that looks like bug, because it should unlock after session timeout).

@alexey-milovidov I'll first move the ReplicatedMergeTreeAlterThread and ReplicatedMergeTreeCleanupThread which are the simplest tasks. I'll test and if all is ok I'll push on a separate branch and we can discuss on this.
Only place where a task can spend unpredictable time from what I see is zookeeper. Is the bug you are talking about something we can replicate?


Please add LICENSE

The program is very nice and the used technology is quite interesting.
I would recommend to place a LICENSE file to make it clear under which license the software can be reused.
If there are no preferences, I would suggest MIT

Thanks a lot for the reminder!🙏 We forgot to add it during the competition, but the MIT License is now in place. 👍

Great! Then now I feel obliged to submit a PR rather than another Issue :wink:
https://github.com/Three-Buddy-Problem/exoplanet-quest-web/pull/3


Node issue with node sample

Running the node sample i get:
node: bad option: --import
I'm on node v18.13 - is that maybe too low?

I just saw this pr


for final: which jdk can we access?

Hi! Does anyone have the link to the jdk doc we use for PA?

You can access it here: https://docs.oracle.com/en/java/javase/17/docs/api/ or under Module Details > Weblinks in Luminus!

yup jdk 17 is the one we used for PA

thank you everyone!


Navigation looks ugly when more links than width

The Navigation components looks quite terrible when the number of NavigationLink children are more than the screen can handle. This can be seen by increasing the number of links in the navigation to a large number and is particularly easy to spot on tablets in portrait orientation.
Designing a better navigation bar is a pressing concern, in light of #16.

I'd like to work on that issue

Sure go ahead!

@mouracamila Since this is a discussion: rfc issue, it would be preferable that you present your idea about a potential fix first and get it ratified before coding right away.

@dhruvkb, I suggest, could are created the "menu hamburguer":

When there are more than 2 items in navigationLink
When the resolution is less than 700px (approximate resolution with iPad).
What do you think?

@dhruvkb I think it would be interesting to create another header model. It could have the "menu collapse", for more "NavigationLink". In which would be a user choice which heading would best suit their needs. What do you think?

@mouracamila the Header component is not related to this issue. The component Header contains a slot that can be populated by any component or DOM, which is generally the Navigation component. The styling for the Navigation component needs to be updated to accommodate a large number of NavigationLink components.

@dhruvkb, I suggest, could are created the "menu hamburger":
* When the resolution is less than 700px (approximate resolution with iPad).
  What do you think?

Most popularly the hamburger menu is a staple of mobile screens. I haven't come across many sites that use the hamburger on tablet-sized resolutions. Are there any references that I could see for hamburger-menus on tablets?

@dhruvkb One solution that I found interesting was deleted the icons and the border-right.

About the menu hamburger, Bootstrap4 has the navbar-collapse that creates the collapse menu with a default resolution of less than 991px. Websites have this feature https://angular.io/docs and https://vuejs.org/.

Okay @mouracamila let's use the hamburger menu on tablets (portrait orientation) and mobile. I think horizontal scrolling would be acceptable in the navigation if the width exceeds the container size.

@mouracamila any updates on this?

Hello @dhruvkb, can I get started on this issue and I wanted to ask if there is an already existing hamburger icon?

@SomtochiAma please go ahead. We use Font Awesome in our projects so you can use their hamburger icon.

For clarification, am I also going to remove the icon and left-border plus the hamburder for the tablet and mobile

@panchovm, please weigh in on this with the new header designs.

@dhruvkb are you asking for new designs or for comments on an existing design?

I'm asking him to send a picture of the new header designs (on various screens) so that we can get it implemented along with this change. It is a pretty drastic change as it is so if we had the new designs, we could potentially avoid another huge change a few weeks down the line.

@dhruvkb As far as I know, a future project will redesign the header to be implemented across all the CC's websites. Therefore, it might change depending on that final definition. I will share with you the Zeplin project, where you will see the header on different pages.