Kivy Won't Install Properly macOS

I'm having difficulty installing Kivy. I'm using Python 3.8.2 and macOS 10.15.4.
I've been looking at the installation guide, but none of the methods listed seem to work. I've already tried a few different things, which may affect logs and such.
I tried 'python -m pip install kivy' in the terminal, which produces this (I've already tried this command before):
Requirement already satisfied: kivy in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (2.0.0rc1)
Requirement already satisfied: pygments in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from kivy) (2.6.1)
Requirement already satisfied: docutils in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from kivy) (0.16)
Requirement already satisfied: Kivy-Garden>=0.1.4 in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from kivy) (0.1.4)
Requirement already satisfied: requests in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from Kivy-Garden>=0.1.4->kivy) (2.23.0)
Requirement already satisfied: idna<3,>=2.5 in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (2.9)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (1.25.9)
Requirement already satisfied: certifi>=2017.4.17 in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (2<IP_ADDRESS>)
Requirement already satisfied: chardet<4,>=3.0.2 in ./.pyenv/versions/3.8.2/lib/python3.8/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (3.0.4)

However, Kivy doesn't show up in Applications, I don't notice anything different, and I'm not sure what to look for.
If I try to download it from the downloads page, I don't see any dmg files, only .whl. If I download one of the whl files and try to install it from the terminal using 'pip install Kivy-1.11.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl' I get the error that it's "not a supported wheel on this platform."
I'm not sure where to go from here, any help would be greatly appreciated.

It's not gonna show in application. You have terminal to use it but you dont execute it directly.

Create buildozer init file
Create main.py example app
Run
python main.py

App should fireup


why texture opacity changed, when body setStatic true

i want setStatic(bodyA, true) after the body collisionEnd, but the body opacity been changed, what should i do to keep the body opacity and style after setStatic, thank you!
like this

The bodies will still sleep as before so it won't change that, that option is only to disable the rendering opacity effect (which is just a debug tool). So should be exactly what you need here.


Create and share unique scopes for beforeEach, afterEach, and tests

Feature request inspired by this post: https://gist.github.com/traviskaufman/11131303.
It seems that in jasmine, a new scope is created for each test, and it's shared between beforeEach, afterEach, and the test (e.g. it).
Would it be feasible to implement something along those lines in jest? To illustrate the main use-case, I've added some code examples below.
BEFORE
describe('something', function() {
  let page;

  beforeEach(function() {
    page = /* create page */
  })

  afterEach(function() {
    /* teardown or reset page */
    page.destroy()
  })

  it('should do something', function() {
    page.doSomething() // use page instance
  })
})

AFTER (SUGGESTION)
describe('something', function() {
  beforeEach(function() {
    this.page = /* create page */
  })

  afterEach(function() {
    /* teardown or reset page */
    this.page.destroy()
  })

  it('should do something', function() {
    this.page.doSomething() // use page instance
  })
})

This way we can easily have unique instances for each test, while still be able to leverage the power of the beforeEach and afterEach methods.

We used to have this, but intentionally broke support for it because we don't want to encourage this API. We may reserve this for other use cases. Also, many people use arrow functions to define tests nowadays, where there is no access to this.

Thank you for the answer. That's too valid points and given that there's workarounds to achieve the desired outcome, I think that's totally fair :-)


liburing: bump version and fix cross compilation

@thoughtpolice, I didn't know what to do with the number following pre
so I just incremented it to scale with the version number
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[s] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

The version bump also fixes native compilation on armv7l

@ofborg build pkgsCross.aarch64-multiplatform.liburing pkgsCross.armv7l-hf-multiplatform.liburing

liburing 0.7 will be coming out pretty soon, and I wanted some of the bugfixes/improvements from the Git version in the mean time. Should we just wait for that, I suppose?

Yeah, it would certainly be easier to wait for that version that fiddle with extracting patches for nixpkgs. Will close.
Hope everything's well with you @thoughtpolice.

Hope everything's well with you @thoughtpolice.

And to you, too!

Ah, we should at least get the cross compilation fix in though, have pushed to this branch.
It still doesn't build for armv7 (but should do when bumped to 0.7).
Tested building for aarch64 though.

ah, seems I don't have permissions to reopen perhaps

The joe-uring branch was force-pushed or recreated.

I don't think anyone can save it now.  Best create a new PR a post a link here.

done, https://github.com/NixOS/nixpkgs/pull/92887

0.7 already appeared in master, closed the obsolete PR #92887.


Rehandle and events

Not clear how to do something with the emitted events while also re-handling errors.
If this is not a desired flow, it should not be possible to write the code.
The following code, although correct, produces an error at runtime if the transaction failed.
  const ratifyCall = multisig
    .ratify(user, call)
    .signed(signature({ sender }))
    .sent()
    .dbgStatus("Ratify")
    .finalizedEvents()
    .unhandleFailed()
    .rehandle(is(ExtrinsicError))
    .pipe(filterPureCreatedEvents)

  await ratifyCall.run()

The following code appears to run successfully although there was an error
  const ratifyCall = multisig
    .ratify(user, call)
    .signed(signature({ sender }))
    .sent()
    .dbgStatus("Ratify")
    .finalizedEvents()
    .unhandleFailed()
    .pipe(filterPureCreatedEvents)
    .rehandle(is(ExtrinsicError))

  await ratifyCall.run()

https://westend.subscan.io/block/0x6d71bb09f5c597518bd856ede5abc9fff28b753bc264f8e479bced248ef134ab

likely missing the callback in rehandle as mentioned in https://github.com/paritytech/capi/issues/1133

please make sure the examples are up to date

It's supposed to work without a callback (@ryanleecode).


@storybook/preview-web stops exporting WebProjectAnnotations at 6.5.0

Describe the bug
../../node_modules/@storybook/testing-react/dist/types.d.ts:2:15 - error TS2305: Module '"@storybook/preview-web"' has no exported member 'WebProjectAnnotations'.

2 import type { WebProjectAnnotations } from '@storybook/preview-web';

To Reproduce
Use any @storybook version above v6.5.0
Should be ~6.4.0
https://github.com/storybookjs/testing-react/blob/16f7182de1dfa9b186ac5a8957760974577008f6/package.json#L79
Looks like they remove WebProjectAnnotations export at v6.5.0-alpha.53. Seems like a breaking change to me. 🤷🏽♂
https://github.com/storybookjs/storybook/commit/bcf7e4d03a1e58a1862379adbfd98d1be67194e4#diff-a10f71fb35c8a250ffdfe123e528271e550f05469a3e09e1ae746555707972a5

https://github.com/storybookjs/storybook/issues/16797

@yannbf
I cannot use Storybook 6.5 because of this problem.
Can this problem be resolved?

I'm also struggling to upgrade to 6.5 because of this.

Same here, 6.5.10.
https://github.com/elastic/kibana/pull/139334

Maybe a solution is to re-export WebProjectAnnotations from @storybook/store (where it moved to) from @storybook/preview-web (where it moved from, and where testing-react is looking for it.

I created a pr.
https://github.com/storybookjs/testing-react/pull/115

Fix released in https://github.com/storybookjs/storybook/releases/tag/v6.5.11

It doesn't work until v6.5.10, but specify to use v6.5.11 or later?


HDFS remote data source refers to deprecated API

Documentation regarding the HDFS integration appears to be using a now deprecated version of the HDFS API for authentication: note the new API does not provide a user argument so I guess the auth functionality may be different/more restrictive (possibly Kerberos only?)
The documentation is obviously requiring reworking to depict this (I've fixed the link to point at the deprecated interface) but thought it might need review depending on how this component is implemented within dask itself, to remove support for the old API or allow usage of both depending on the integration requirements.
Happy to look into it after I've finished my documentation review :-)

Hmmm, interesting. Usually the username is inferred from the environment (either a kerberos ticket/delegation token, or the $USER environment variable). We'll have to dig into how they're wrapping libhdfs to see what needs to be changed. Thanks for raising this!


Reduce number of island files to be sent to the browser

By making Fresh aware of the module Graph and which route imports which island, we can reduce the number of files needing to be sent to the browser. This would be a win for performance. Currently, each island is treated as a separate entry point during the bundling process.
Context: https://discord.com/channels/684898665143206084/991511118524715139/1141991434715680788

Resolved by https://github.com/denoland/fresh/pull/2082


onMouseDown is not working

import Spline from '@splinetool/react-spline';
import { useRef } from 'react';
export default function App() {

  function onLoad(spline) {
    const obj = spline.findObjectByName('Clink');
    // console.log(spline.style)
    spline.style = {width:"100vw"}

    // spline.camera.position.z = 0
    // spline.canvas.width = "1920px"
    // let can = Object.keys(spline.canvas)
    // console.log(Object.keys(spline.canvas[can[0]]),can)
    // console.log(obj)
    console.log(Object.keys(spline),spline._camera)
  }

  function onMouseDown(e) {
    console.log("clicked",e.target)

    if (e.target.name === 'Clink') {
      console.log('I have been clicked!');
    }
  }

  return (
    <div >
    <Spline onLoad={onLoad} onMouseDown={()=>{console.log("hello there")}} onMouseHover={onMouseDown}   scene="https://prod.spline.design/sO9tS9c4paV1HRId/scene.splinecode" />

    </div>
  );
}

I'm trying to run the above code and both onMouseDown and onMouseHover seem unresponsive
Please look into this issue

The issue was happening because of a mistake while exporting in spline editor mouseEvents settings

The issue was happening because of a mistake while exporting in spline editor mouseEvents settings


Java Key/trust Store support

We have the following use case:
Service A needs to talk to another service B within the same cluster, both are Java applications.
We are attempting to terminate SSL traffic at the pod level, which means loading the cryptomaterial at the Java runtime level.
We have used cert-manager to issue to server certificate and it has been loaded through the newly released Java Key Store secret output format in cert-manager 1.8+.
In order to establish trust across the services, we are making use of the trust project to use an already created Bundle object that contains the internal CA used for ingress.
However it turns out the trust bundle needs to also be loaded as a Java Keystore file, this is an assumption relayed from the customer and should be 100% confirmed first.
This is what this issue is trying to have trust Bundle have different output formats matching the cert-manager project with specifically the Java trust bundle store format as a priority.
It would be also nice if there was a way to get roots automatically into Bundle objects tracking a certain issuer, but this is a separate issue and not essential to this problem.

Duplicate of #17, I think.

yes absolutely it is, closing.
good eye, thanks @erikgb !


Flip the switch to turn on the transform dialect by default.

This PR demonstrates how to turn on transform-dialect based reductions on by default as well as the tests that change.
Note that IREE only tests nice divisible cases but the transform dialect tests are significantly more fleshed out than these 2 few cases.
Manual micro-benchmarking show unambiguous perf improvement and cliff reductions in the vast majority of cases, still there are some small regressions and corner cases that still need addressing (#11735 and #11736).
It is unlikely that the current benchmarking setup sheds a light on the performance improvements this PR brings and better micro-benchmarking is generally needed.

Ftr - treating this as draft and will consider after a more formal review of the work in total takes place.

Not sure how to trigger the cuda benchmarks so I rebased, turned the PR into a "Ready for review" and removed/readded the label. If it still doesn't trigger, I'd love some help from someone who knows how to make this work.

Not sure how to trigger the cuda benchmarks so I rebased, turned the PR into a "Ready for review" and removed/readded the label. If it still doesn't trigger, I'd love some help from someone who knows how to make this work.

Sounds like you are missing some rights. I triggered it for now.

Ftr - treating this as draft and will consider after a more formal review of the work in total takes place.

@stellaraccident we are planning to enable this by default. Do you want to do more in depth review? I think this is a good time to start enabling some cases by default.

I've been reviewing silently in the background. Sounds like there is consensus of those doing the work, so i don't have more to add.


Settings Error

Selecting "Settings" from right click yields window with message "Failed to create the WebView control".

Issue #254 :(

Not sure why this was just closed?  I get this error with the latest version (0.16), also got it with 0.15

Correct link https://github.com/microsoft/PowerToys/issues/243

@byron1c, i fat fingered, sorry.  @enricogior updated the correct link

lol, nps, thanks for the update


base_update and no_updates test cases

This GCB check is not expected to pass in this PR. It's expected to pass in PRs sent by DUS.


istioctl x metrice support custom duration

Please provide a description of this PR:
istioctl x metrice support custom duration

@zirain: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
a5d8308116536fa781ff041656d9be880038ab58
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zirain: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
a5d8308116536fa781ff041656d9be880038ab58
link
true
/test unit-tests_istio

lint_istio
a5d8308116536fa781ff041656d9be880038ab58
link
true
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zirain: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-distroless-k8s-tests_istio
e193f4d1232dc2fb173e9260aa845e7de4034446
link
true
/test integ-distroless-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zirain: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-distroless-k8s-tests_istio
e193f4d1232dc2fb173e9260aa845e7de4034446
link
true
/test integ-distroless-k8s-tests_istio

integ-security-multicluster-tests_istio
e193f4d1232dc2fb173e9260aa845e7de4034446
link
true
/test integ-security-multicluster-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest-required

ping @istio/wg-user-experience-maintainers

@irisdingbj can you take a look, need a approve from UX part.

@zirain: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
e193f4d1232dc2fb173e9260aa845e7de4034446
link
true
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster_istio

/cherry-pick release-1.13

In response to a cherrypick label: new pull request created: #37195

@zirain: new pull request could not be created: failed to create pull request against istio/istio#release-1.13 from head istio-testing:cherry-pick-36726-to-release-1.13: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for istio-testing:cherry-pick-36726-to-release-1.13."}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

In response to this:

/cherry-pick release-1.13

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


[$250] IOS - Sign In - Page size is changing after use wrong 2FA and clicking on Save button

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Precondition: need to use 2FA account

Launch the app
On Sign in user your username
Type your password
Type wrong 2FA
Tap on Sign in

Expected Result:
Page size is not changing after use wrong 2FA and clicking on Save button
Actual Result:
Page size is changing after use wrong 2FA and clicking on Save button
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any 2FA accounts
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/178118382-13089550-7051-41f3-9950-7b689930da91.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Issue not reproducible during KI retests. (First week)

Doublechecking if I need to add this to Upwork before it's reproducible

Holding on this to be reproduced in next week's KI testing

Holding on this to be reproduced in this week's KI testing

Looks like it was reproducible this week so moving forward

https://www.upwork.com/jobs/~014f53fc107128911d

Proposal
https://github.com/Expensify/App/blob/151ec1ad3355cfa162ad490030f19a7134bbc076/src/pages/signin/SignInPageLayout/SignInPageContent.js#L51
This happens on devices with small screen width (isSmallScreenWidth = true) because SignInPageForm width is changing dynamically based on width sizes of child views.
Solution:
set SignInPageForm width statically when isSmallScreenWidth = true
Code Implementation:
https://github.com/Expensify/App/blob/151ec1ad3355cfa162ad490030f19a7134bbc076/src/styles/styles.js#L935
After this line, add this:
        width: 335,

Before fix:

After fix:

@errahsoufiane hmm, will all small devices use a width of 335?

@errahsoufiane hmm, will all small devices use a width of 335?

yes, I think it's no problem since that value is bigger than the smallest mobile device (android: 360, iPhone: 375)

@errahsoufiane hmm, will all small devices use a width of 335?

yes I think it's no problem since it's even bigger than smallest device width (android: 360, iphone: 375)

@errahsoufiane cool.
In your video, I noticed that the width of the page content is still changing.

@errahsoufiane cool.
In your video, I noticed that the width of the page content is still changing.

Oh, that video is not real app play but combination of 4 screenshots:

before fix 1.png (not showing error before fix)
before fix 2.png (showing error before fix)
fix 1.png (not showing error after fix)
fix 2.png (showing error after fix)

Oh haha, didn't notice that all.

yes I think it's no problem since it's even bigger than smallest device width (android: 360, iphone: 375

@errahsoufiane galaxy fold has a width of 280px, so the login page would break.

@rushatgabhane you're right. As far as I am testing, this happens only on iOS. Android works fine. tested on multiple devices.
so my updated proposal is:
https://github.com/Expensify/App/blob/151ec1ad3355cfa162ad490030f19a7134bbc076/src/pages/signin/SignInPageLayout/SignInPageContent.js#L51
            props.isSmallScreenWidth && (Platform.OS === 'ios' ? styles.signInPageContentContainer : styles.signInPageNarrowContentContainer),

https://github.com/Expensify/App/blob/151ec1ad3355cfa162ad490030f19a7134bbc076/src/styles/styles.js#L935

@errahsoufiane i still think that setting a fixed width of 335 isn't the best idea.
iPhone 5 has a width of 320px (source)

@rushatgabhane
This happens on devices with small screen width (isSmallScreenWidth = true) because SignInPageForm width is changing dynamically based on width sizes of child views.

this was what I had said and this is actually true
There's no defined width of this parent view and it is set as width of a child view which has the longest width among child views.
You can see clearly what I mean from this video:
https://drive.google.com/file/d/1vVr4nv6-wdiIusbR2TboQGchQf8uCZpB/view?usp=sharing
so updated proposal is: similar to my first proposal - set fixed width to 335 but only when window width is bigger than this value so that it could be responsive to very small devices like iphone 5, galaxy fold.
If width is smaller than 335, no need to set either width or maxWidth.
https://github.com/Expensify/App/blob/main/src/styles/styles.js#L935

https://github.com/Expensify/App/blob/main/src/pages/signin/SignInPageLayout/SignInPageContent.js#L51

Proposal
This happens when try to set maxWidth on alignSelf centered view without specifying width.
Here is the fix: https://stackoverflow.com/questions/39536665/react-native-alignself-center-and-stretch-to-maxwidth, this means setting flex: 1 fixes the issue. But this can't be applied to ScrollView content directly since its direction is vertical.
So the solution is to wrap this content with horizontal view (flexDirection: 'row') so that flex: 1 can be applied inside that view.
Full code implementation in SignInPageContent.js:
const SignInPageContent = props => (
    <ScrollView
        keyboardShouldPersistTaps="handled"
        showsVerticalScrollIndicator={false}
        style={[
            styles.h100,
            !props.isSmallScreenWidth && styles.alignSelfCenter,
            !props.isSmallScreenWidth && styles.signInPageWideLeftContainer,
        ]}
        contentContainerStyle={[
            scrollViewContentContainerStyles,
            styles.alignItemsCenter,
            !props.isSmallScreenWidth && styles.ph6,
        ]}
    >
        <View style={[styles.flex1, styles.flexRow]}>
            <View style={[
                styles.flex1,
                props.isSmallScreenWidth && styles.signInPageNarrowContentContainer,
            ]}
            >
                <SignInPageForm style={[
                    styles.flex1,
                    styles.alignSelfStretch,
                    props.isSmallScreenWidth ? styles.ph5 : styles.ph4,
                ]}
                >
                    <LoginKeyboardAvoidingView
                        behavior="position"
                        contentContainerStyle={[
                            props.isSmallScreenWidth ? styles.signInPageNarrowContentMargin : {},
                            !props.isMediumScreenWidth ? styles.signInPageWideLeftContentMargin : {},
                            styles.mb3,
                            StyleUtils.getModalPaddingStyles({
                                shouldAddBottomSafeAreaPadding: true,
                                modalContainerStylePaddingBottom: 20,
                                safeAreaPaddingBottom: props.insets.bottom,
                            }),
                        ]}
                    >
                        <View style={[
                            styles.componentHeightLarge,
                            ...(props.isSmallScreenWidth ? [styles.mb2] : [styles.mt6, styles.mb5]),
                        ]}
                        >
                            <ExpensifyCashLogo
                                width={variables.componentSizeLarge}
                                height={variables.componentSizeLarge}
                            />
                        </View>
                        {props.shouldShowWelcomeText && (
                            <Text style={[styles.mv5, styles.textLabel, styles.h3]}>
                                {props.welcomeText}
                            </Text>
                        )}
                        {props.children}
                    </LoginKeyboardAvoidingView>
                </SignInPageForm>
                <View style={[styles.mb5, styles.alignSelfCenter, styles.ph5]}>
                    <TermsAndLicenses />
                </View>
            </View>
        </View>
    </ScrollView>
);

Here, this is the key to fix the main problem of this GH issue:

@aimane-chnaif awesome! You're right about the root cause and I like your proposal.
@marcochavezf C+ reviewed 🎀 👀 🎀

@aimane-chnaif Thanks for the screenshot for 280px
@marcochavezf I like @aimane-chnaif's proposal!
🎀 👀 🎀 C+ reviewed

Cool, thanks guys! Assigning @aimane-chnaif!

@jliexpensify 👋 am OOO til 12 August so reassigning. Thanks!

Listing: https://www.upwork.com/ab/applicants/1551917570399793152/job-details
Invited @rushatgabhane and @aimane-chnaif - cheers!

I've had to take some unexpected time off, so assigning to Kadie (my leave buddy) to manage!

Hi @kadiealexander, how's it going? What's the next step for me?

G'day @aimane-chnaif! Next steps will be to:

Accept the Upwork contract I just sent across
Get started on submitting a PR based on your proposal

You can check out our Contributing.MD page for more detailed instructions on working on Expensify jobs. Let me know if you have any questions!

Not overdue.

Everyone is paid! Thanks team :)


AssertionError when compiling dcuhre

Trying to wrap this integration module: https://jblevins.org/mirror/amiller/dcuhre.f90,
I get the following error, I have no idea, where I need to start debugging. Any help will be appreciated.
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "dcuhre" sources
f2py options: []
f2py:> /tmp/tmpvlbnqe4n/src.linux-x86_64-3.6/dcuhremodule.c
creating /tmp/tmpvlbnqe4n/src.linux-x86_64-3.6
Reading fortran codes...
	Reading file 'dcuhre.f90' (format:free)
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
rmbadname1: Replacing "index" with "index_bn".
Traceback (most recent call last):
  File "/home/maxnoe/.local/anaconda3/bin/f2py", line 28, in <module>
    main()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/f2py2e.py", line 648, in main
    run_compile()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/f2py2e.py", line 633, in run_compile
    setup(ext_modules=[ext])
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/command/build.py", line 47, in run
    old_build.run(self)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 148, in run
    self.build_sources()
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 165, in build_sources
    self.build_extension_sources(ext)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 327, in build_extension_sources
    sources = self.f2py_sources(sources, ext)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 564, in f2py_sources
    ['-m', ext_name]+f_sources)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/f2py2e.py", line 408, in run_main
    postlist = callcrackfortran(files, options)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/f2py2e.py", line 329, in callcrackfortran
    postlist = crackfortran.crackfortran(files)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 3246, in crackfortran
    readfortrancode(files, crackline)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 510, in readfortrancode
    dowithline(finalline)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 781, in crackline
    analyzeline(m, pat[1], line)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 1087, in analyzeline
    last_name = updatevars(typespec, selector, attr, edecl)
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 1543, in updatevars
    el = [x.strip() for x in markoutercomma(entitydecl).split('@,@')]
  File "/home/maxnoe/.local/anaconda3/lib/python3.6/site-packages/numpy/f2py/crackfortran.py", line 821, in markoutercomma
    assert not f, repr((f, line, l, cc))
AssertionError: (2, ' dim2w(14,5) = reshape( (/   0.3379692360134460d-01,  0.9508589607597761d-01, 0.1176006468056962d+00,  0.2657774586326950d-01, 0.1701441770200640d-01,  0.0000000000000000d+00, 0.1626593098637410d-01,  0.1344892658526199d+00, 0.1328032165460149d+00,  0.5637474769991870d-01, 0.3908279081310500d-02,  0.3012798777432150d-01, 0.1030873234689166d+00, 0.6250000000000000d-01, ', ' dim2w(14,5) = reshape( (/   0.3379692360134460d-01,  0.9508589607597761d-01, 0.1176006468056962d+00,  0.2657774586326950d-01, 0.1701441770200640d-01,  0.0000000000000000d+00, 0.1626593098637410d-01,  0.1344892658526199d+00, 0.1328032165460149d+00,  0.5637474769991870d-01, 0.3908279081310500d-02,  0.3012798777432150d-01, 0.1030873234689166d+00, 0.6250000000000000d-01, ', ')')

This is f2py bug in "parsing" the fortran code and the place to start fixing it would be to check why the assert statement fails and work out a fix.
You can use the following workaround to continue with your project:

Make a copy of dcuhre.f90, say dcuhre-mine.f90
Remove the problematic declaration REAL (dp), PARAMETER :: dim2w(14,5) = RESHAPE ...  from dcuhre-mine.f90 (it is local to function and f2py does not use it).
Generate a signature file: f2py -h mymod.pyf -m mymod dcuhre-mine.f90
Build extension module: f2py -c mymod.pyf dcuhre.f90

I found out that it was the empty lines in the array declaration


Added link to elasticlunr-search-widget

I have added a README paragraph pointing to a Search Widget which is implemented to work with the ElasticLunr index.

@weixsong Please have a look when you have some time, let me know what you think!


make map interaction handlers like doubleClickZoom toggle-able through props

It's useful to be able to disable things like doubleClickZoom when switching to a drawing tool.

Good job but it would be nice to move the logic to a function in map-events.tsx, move handlerNames outside of the function and use that function in componentWillReceiveProps of the map? Same as what have been done for updateEvents

Actually could you explain why you need to do that? is it not what updateEvents already do? if you don't provide the event handler then updateEvents function will listen off the event and won't attach any new handler, maybe I am missing something

dragPan and related handlers are the ones built into mapbox not user provided event handlers. updateEvents appears to be for passing in your on onDrag event handler function vs dragPan which is you just need to tell mapbox to turn it off or on?
You could implement your own dragPan and pass it in with the current user event handler props to gain the ability to toggle it on and off but that's additional work someone using this lib shouldn't have to do.

Closing this for inactivity, feel free to reopen if needed


Rename service name in running command

This PR add an alternative para in running command to rename service class's name.
why it may be needed: I am working with others on same micro service and sharing same amqp, oftenly we will run service locally in which case service name must be changed to different name before running. And change back before push to svn. It maybe bring some convenience.

i would be hesitant to add api for this; it seems like a pretty rare use-case
i would recommend running your own rabbitmq instance for local dev. if that's not possible, a workaround might be to have a local-only custom module/subclass with a new name
e.g.
cat renamed_service.py

from .real_service import Service as RealService

class Service(RealService):
    name = "renamed_service"

Wouldn't it be a lot simpler to just use different vhosts/users on the single RabbitMQ?  Assign each developer their own username and vhost in the RabbitMQ instance and override the AMQP_URI while in the dev environment.

Thank you for your contribution @lypro09539, but I'm going to close this. I agree with @davidszotten that this is a very specific use-case.


Use DataFusion unparser instead of sql_provider_datafusion/expr.rs

There is basic support for converting DataFusion expr to SQL as part of https://github.com/datafusion-contrib/datafusion-table-providers/blob/main/src/sql/sql_provider_datafusion/expr.rs
We should just be using the DataFusion unparser directly and remove this crate's version.

@phillipleblanc I think we can close this issue ref: #99, #102


Create expression_tree.hpp

Good night. I am gonna sleep now!

Good night!  You are calling a 14 years old teen a man. That offends. Just kidding ;-)


added the NLegLadder lattice coupling N chains

I generalized the ladder class to couple N chains.
As next-Nearest-Neighbors I put the sites in the neighboring unit cell that carry the same sublattice index. If the unit cell has length a=1 in both x- and y-direction, obviously the sites in the same unit cell are closer (or equally close for N=2) than hopping to the next unit cell. However, I found this to be the most intuitive labeling. Same for the next-next-Nearest-Neighbors that I set to be the sites from the next unit cell with the sublattice index changed by one.
If you think these labels lead to confusion, I will just remove the nNN and nnNN (and maybe also NN) attributes from the new class.
ToDO:
Implement the 'folded' ordering type. (I will do this soon, when I have the time.)

Cool, that looks awesome, thanks for the pull request!!!
It's always great to see someone actually contributing, without asking for it :)
As you can see, I've already merged the pull request.
Yes, I think the labeling of pairs as (next...) nearest neighbors is confusing. The pairs can actually have arbitrary names.
I renamed them to rung_NN, leg_NN, and diagonal, does that sound reasonable to you?
For consistency, I added the same names to the (two-leg) Ladder as well.
I kept nearest_neighbors as the union of rung_NN and leg_NN.
Also, I've implemented the folded order.


Visual Studio Code Powershell New-PSSession Command Access Denied

VSCode Version: x64 1.18.0
OS Version: Windows 2012 R2

Steps to Reproduce:
1.$cred = Get-Credential
$O365_Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
2.Error message: "Connecting to remote server ps.protection.outlook.com failed with the following error message: Access is denied."

Reproduces without extensions: Yes/No

Your repro steps has only code and the error message.
It doesn't contain actual steps as to what we are to do with the given code to get the given error.
Please provide as much details as possible
Hint: Assume that we know nothing of Powershell

Please file this issue against the PowerShell extension.


341 support otp23

Description
Updated dependencies to support OTP 23. I've also replaced the versions file with .tool-versions, which makes it easier for those using the asdf package manager - just run asdf install to obtain the correct versions of Erlang and Elixir.
Closes #341
What to look out for
Dear reviewer, I want you to

check that the code works on your machine.

Process
The goal is to improve not only the code in this PR but also our skills! The "rules":

The review is considered "done" as soon as all reviewers have added their review, and all their comments have been addressed.
For knowledge-sharing reviews, each reviewer should "approve" the PR after studying its content.
After the approval, the merge is concluded by the developer.

Have fun!

warning: redefining @doc attribute previously set at line 19.

I didn't want to remove those lines so I turned them from docstrings into comments.

Also some fishy logs in mix test (even though no failed test):

It seems like a Cowboy issue... but I'm not sure. Do you have an idea?

See there also bunch of other warnings when running mix test:
warning: incompatible types:

    :bug__query_params_unfetched !~ :ok

in expression:

    # lib/rig/authorization_check/request.ex:35
    :ok = :bug__query_params_unfetched

Conflict found at
  lib/rig/authorization_check/request.ex:35: RIG.AuthorizationCheck.Request.from_plug_conn/1

warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
  lib/rig/application.ex:29: Rig.Application.start/2

warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
  lib/rig/event_stream/nats_to_filter.ex:63: Rig.EventStream.NatsToFilter.supervise_nats_connection/0

warning: Supervisor.Spec.worker/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
  lib/rig/event_stream/nats_to_filter.ex:64: Rig.EventStream.NatsToFilter.supervise_nats_connection/0

Generated rig app
Excluding tags: [smoke: true, kafka: true, kinesis: true, avro: true, skip: true]

.....................................warning: variable "other_sse" is unused (if the variable is not meant to be used, prefix it with an underscore)
  test/blacklist_test.exs:64: BlacklistTest."test After blacklisting a session, active connections related to that session are terminated."/1

warning: variable "sse" is unused (if the variable is not meant to be used, prefix it with an underscore)
  test/blacklist_test.exs:59: BlacklistTest."test After blacklisting a session, active connections related to that session are terminated."/1

warning: variable "ws" is unused (if the variable is not meant to be used, prefix it with an underscore)
  test/blacklist_test.exs:61: BlacklistTest."test After blacklisting a session, active connections related to that session are terminated."/1

......warning: variable "ref" is unused (if the variable is not meant to be used, prefix it with an underscore)
  test/event_subscription_test.exs:386: RigInboundGateway.EventSubscriptionTest."test Receiving events: Adding and removing subscriptions is in effect immediately."/1

..........warning: variable "proxy" is unused (if the variable is not meant to be used, prefix it with an underscore)
  test/rig_inbound_gateway/rig/proxy_test.exs:39: RigInboundGateway.ProxyTest.test_proxy_exit/2

warning: redefining @doc attribute previously set at line 19.

I didn't want to remove those lines so I turned them from docstrings into comments.

Also some fishy logs in mix test (even though no failed test):

It seems like a Cowboy issue... but I'm not sure. Do you have an idea?

It's caused by this lib/rig_inbound_gateway_web/v1/sse.ex:87, when changed to {:ok, req, :no_state} error is gone, but probably not a solution.

Please also update changelog.


Make a note about using providers for log in

Notify the users that if they are registering for the first time with google, they should redirect themselves to the login page and just login with google which will prompt them to connect their gmail to the website

We should just remove the Google button on the register page and put it only on the login page.

Okay sounds good i'll close the issue

Hours: 1


Random Crash

not sure is related to alexander or not
My game might crash due to fatal DirectX error randomly
and half of my screen will become black until I reboot
XivAlexander_20220522_015256_607.log

mine is crashing as well ):


ENH: Add FastBilateral remote module

PR Checklist

[x] No API changes were made (or the changes have been approved)
[x] No major design changes were made (or the changes have been approved)
[x] Added test (or behavior not changed)
[x] Updated API documentation (or API not changed)
[x] Added license to new files (if any)
[x] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5

:tada:


Add cloudProvider to example cluster configs

/sig multicluster

/lgtm

/lgtm cancel

/ok-to-test
my bad, i keep forgetting that i need to do this on your PRs, @font

/lgtm

One point of interest: it might be worthwhile to write a test that this YAML file can be added to a cluster registry without errors. This could perhaps be added to the integration test.


UserActions: Fix wrong endpoint for drafts + UI improvements

Closes https://github.com/zenodo/rdm-project/issues/500

UI improvements (default input in GB, toggle to use bytes), more info displayed in modals.
Updating apiUrl for record drafts.

Closes #1526


[8.x] Avoid Passing null to parameter exception on PHP 8.1

This PR makes sure that the parameter is a string, same as 9.x for 8.x, please, really a small not breaking change
https://github.com/laravel/framework/blob/e07e00507e67c710798eb98cdb09845f65026429/src/Illuminate/Database/Query/Builder.php#L851-L855

The test is something about microtime
There was 1 failure:

1) Illuminate\Tests\Support\SupportHelpersTest::testRetryWithPassingSleepCallback
Failed asserting that 0.3241841793060303 matches expected 0.3.

D:\a\framework\framework\tests\Support\SupportHelpersTest.php:576
phpvfscomposer://D:\a\framework\framework\vendor\phpunit\phpunit\phpunit:91

FAILURES!
Tests: 6795, Assertions: 16631, Failures: 1, Skipped: 186.
Error: Process completed with exit code 1.

This won't be released as 8.x isn't maintained anymore.


is there any way to use it with the go router?

I am using go router in my project and would like to treat this modal as a route, but it returns a non-widget type, and go router only accepts Material Page like widgets, is there any way to make this happen?

Hi, I would recommend you to go through the readme once. This modal is route enabled. It can be stateful or stateless. So, I do think you can use it with go router.

If you use this with "GoRouter" feel free to add your sample here for anyone else. I have personally not used "GoRouter", so I can't help much.
I am closing this issue, if something is missing in the library then a detailed description would be helpful. Feel free to re-open if needed, thank you.


I need to listen to the next and previous button click in stepper form, how can I do that with current example available on ngx-formly site?

I am implementing steeper form, I need to listen to onclick eevent of next and previous button how can I achive that?

duplicate of #2698

Thanks for solution, I will try and get it work.


Knative Installation Wipes Namespace Labels (Should Merge)

Describe the bug
When installing Knative (serving) into a fresh namespace with labels defined, they are wiped out with the Knative release version number when the labels should be merged.
apiVersion: v1
kind: Namespace
metadata:
 name: knative-serving
 labels:
  istio-injection: enabled

becomes
apiVersion: v1
kind: Namespace
metadata:
 name: knative-serving
 labels:
  serving.knative.dev/release=v0.18.0

Expected behavior
The labels of the namespace should be merged.
apiVersion: v1
kind: Namespace
metadata:
 name: knative-serving
 labels:
  istio-injection: enabled
  serving.knative.dev/release=v0.18.0

To Reproduce
Create a namespace with labels and install a Knative operator instance.
Knative release version
v0.18.0 - v0.19.1
Additional context
None

@jcrossley3 Could you take a look?

@awgneo how was the original Namespace created? In particular, did it have a last-applied-configuration annotation?

The namespace was created with kubectl apply. Is using kubectl create a safe workaround for this problem?
I also wonder if the Operator could add its label in a less destructive way, even if kubectl apply was used.

Knative operator supports customized manifests, which means you can configure your knative yamls into ANYTHING, fitting your platform.
In the 0.18 and 0.19, we only support a complete replacement of all yamls with the field spec.manifests, but in the coming new release, we are able to support customized yamls appending to the existing manifests by the field spec.additionalManifests.
You can leverage this coming feature for your need to customize your resource.

I used the manifestival lib to try creating the namespace knative-serving first with the label istio-injection":"enabled and the annotation knative.dev/example-checksum:1d830d9e. Then updating the namespace without the label istio-injection: enabled.
Here is the output when merging:
The unstructured.Unstructured to be applied is
&{map[apiVersion:v1 kind:Namespace metadata:map[labels:map[serving.knative.dev/release:v0.19.0] name:knative-serving]]}

The current unstructured.Unstructured in the cluster is
&{map[apiVersion:v1 kind:Namespace metadata:map[annotations:map[knative.dev/example-checksum:1d830d9e kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"v1","kind":"Namespace","metadata":{"annotations":{"knative.dev/example-checksum":"1d830d9e"},"labels":{"istio-injection":"enabled","serving.knative.dev/release":"v0.19.0"},"name":"knative-serving"}}

The original unstructured.Unstructured in last-applied-configuration is:
{"apiVersion":"v1","kind":"Namespace","metadata":{"annotations":{"knative.dev/example-checksum":"1d830d9e"},"labels":{"istio-injection":"enabled","serving.knative.dev/release":"v0.19.0"},"name":"knative-serving"}

After the update, the namespace is
apiVersion: v1
kind: Namespace
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Namespace","metadata":{"labels":{"serving.knative.dev/release":"v0.19.0"},"name":"knative-serving"}}
  creationTimestamp: "2020-12-16T21:16:13Z"
  labels:
    serving.knative.dev/release: v0.19.0

The existing labels and annotations are gone.

We're using Knative Operator 0.18, so I tested creating the namespace with kubectl create and the istio-injection label, then installing Knative Serving. This did not cause the istio-injection label to disappear, so it seems like a viable workaround.
(I also took a quick look at spec.manifests, but it doesn't seem to support file: URLs (unsupported protocol scheme \"file\"), which would be convenient. Unless I'm misunderstanding what this attribute does.)

/reopen
I'm having trouble understanding how this is the intended behavior.
This is the basic scenario when installing knative using kubectl apply.
IMO, the workaround with kubectl create is not a viable one, because it changes the approach of defining namspace from declarative to imperative.
Given the scenario from the bug - namespace definition with a label: how do I make sure that the operator does not remove the label set by kubectl apply?

/reopen This issue is still not resolved.

/reopen
This issue is still not resolved.

/reopen

/remove-lifecycle stale

The issue is still there, it would be nice to include some annotation which we can add to the namespace and in result the operator-webhook won't touch the existing labels on the namespace.

/reopen
/remove-lifecycle stale
/triage accepted

@houshengbo if the operator is installing stuff into a namespace should it remove that namespace from the manifests? Thus not overwritting it?

knative-operator 1.14.0 still have this issue
how to reproduce:

install knative-operator
apply namespace-ke.yaml with the following content

apiVersion: v1
kind: Namespace
metadata:
  labels:
    istio-injection: enabled
  name: knative-eventing

then apply knative-eventing resource

apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
  name: knative-eventing

and as a result
$ kubectl get ns knative-eventing -o yaml  | grep -i istio  | wc -l
0

Knative Operator bundles the manifests of knative serving for each official release.
The knative-serving namespace is included in the knative serving release, so operator will apply the yamls, containing the namespace knative-serving.
It will work to use kubectl create ns ... to create the namespace, before installing the the knativeserving CR, but we cannot guarantee that no occurence of kubectl apply ... happens after the namespace was created at the beginning.
I can give an option to configure both labels and annotations for the namespace with the KnativeServing and KnativeEventing CRs. For example:
apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
  name: knative-eventing
  namespace: knative-eventing
spec:
  version: "1.15"
  namespaces:
    - name: <name-of-namespace>
      labels:
        key1: values1
        key2: value2
      annotations:
        key1: values1
        key2: value2

to add or configure the key-value pairs. How does it sound?


Update Storybook addon metadata

Hey storybookjs! We've created a catalog of Storybook addons and yours is included: https://storybook.js.org/addons/@storybook/addon-bench
To make your addon more discoverable in the catalog, we've curated some of its metadata, and I've included those edits in this PR.
To learn more about the catalog metadata, check out our documentation: https://storybook.js.org/docs/react/addons/addon-catalog

:rocket: PR was released in v0.0.3-next.0 :rocket:


Fix search users by group set

Fix #5427
I had to add a way to look for users that belong to at least one of the groups in the set (calling the existing filterByGroup method would have required that users must belong to all the groups in the set).
For that reason, I added the new filterByInAnyGroup method.

Wonderful, thank you! I'm not sure if this is a problem but it crashed when calling random_bytes(10) because the server was on PHP 5.6. It worked when I flipped it to PHP7.
Now if we could only get back the ability to assign/reassign this filtered list of members to/from other groups then I'd be ecstatic. The "Items selected" drop-down used to have this feature that was soooo useful

.

I was pretty sure there was a polyfill for random_bytes in one of the composer dependencies...

@mhawke I checked it and random_bytes should be there for php 5.5 too thanks to this dependency. I don't understand why you don't have it...

BTW I switched to mt_rand...

Now if we could only get back the ability to assign/reassign this filtered list of members to/from other groups then I'd be ecstatic.

That's for another issue IMHO...

Please ignore my ignorance. I just slipped your code changes into a working copy of version 8. I did not build it properly.

Maybe uniqid is an even better approach


Adding endpoints to a project without a launch profile results in errors in orchestrator

var builder = DistributedApplication.CreateBuilder(args);

builder.AddProject<Projects.Stress_ApiService>("stress-apiservice", launchProfileName: null)
       .WithHttpEndpoint(port: 10005, name: "http");

builder.Build().Run();

The output
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not create Endpoint object  {"Executable": {"name":"stress-apiservice-4slf0l8"}, "Reconciliation": 11, "ServiceName": "stress-apiservice", "Workload": "/stress-apiservice-4slf0l8", "error": "service-producer annotation is invalid: missing information about the port to expose the service"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not create Endpoint object  {"Executable": {"name":"stress-apiservice-4slf0l8"}, "Reconciliation": 12, "ServiceName": "stress-apiservice", "Workload": "/stress-apiservice-4slf0l8", "error": "service-producer annotation is invalid: missing information about the port to expose the service"}

Seems like there's some strange interaction between DCP when there's no launch profile and adding endpoints.

The rule for projects (or generally, replicated Executables) in DCP is that you need to have means of injecting the (autogenerated) endpoint port into each replica, by using portForServing template function in the context of either an environment variable, or the startup parameter. Otherwise DCP does not know how to proxy traffic into the replica.
I suspect the absence of data from the launch profile is causing the app model to fail to inject the port for serving into the replica(s).

That's right. I see the problem.


Upgrade package longitude-one/wkt-parser

Hi @Alexandre-T,
I see you released a new version (v2) of longitude-one/wkt-parser. Is it planned to upgrade it on this package (longitude-one/doctrine-spatial)?
Thanks,
Mickaël

Step by step!
There are 3 new releases:

v2.0.0 (minor upgrades)

v2.1.0 (introduces deprecations)

v3.0.0.RC (this release candidate is for the next development branch of doctrine-spatial)

All steps are described in issue #43.
I'm currently working on the wkb-parser. (There's a lot of work to be done on it!)
PHPUnit results indicate a significant amount of work due to changes between PHP 4 and 8.

$ docker exec wkb-parser vendor/bin/phpunit
ERRORS!
Tests: 1184, Assertions: 1902, Errors: 169, Failures: 7, Warnings: 2.


convert to freemium

https://stackoverflow.com/questions/3735635/convert-existing-ios-paid-app-to-freemium-model-with-in-app-purchase

Hi, for those who are not on ios 15 and have been using clendar on ios 14, what will happen when they upgrade their device to ios 15 later on. Will they have the full version or will they have to repurchase the full version.

Hi @Shadowspear123 , firstly, the app had been converted to iOS 15 for a while in order to use latest SwiftUI, so I encourage you to upgrade if possible. Secondly, if you purchased the app before version 3.0.0 (released this January), you could send me an email to clendar.app [dot] outlook.com, with a screenshot of your purchase from App Store app -> Purchase -> search for Clendar.


Job (dba) Collect-DiskSpace failing

Describe the bug
Job (dba) Collect-DiskSpace failing with below error message after upgrade of dbatools to latest release.
2023Nov22_1832 INFO:      Fetch disk space on $HostName = [21L-LTPABL-1187]..
2023Nov22_1832 INFO:      Push disk info to SqlServer [21L-LTPABL-1187].[DBA].[dbo].[disk_space]..
The certificate chain was issued by an authority that is not trusted
At line:97904 char:9
+         throw $records[0]
+         ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ConnectionError: (21L-LTPABL-1187:String) [], Exception
    + FullyQualifiedErrorId : dbatools_Write-DbaDbTableData

Now, all the SQLMonitor job name will reflect either in Client App Name or Client Host Name within XEvent Metrics.
Below query can be used to determine performance metrics of SQLMonitor jobs -
select	xm.start_time, xm.event_time,
		[job_name] = case when client_app_name like '(dba) %' then client_app_name else xm.client_hostname end,
		xm.database_name, xm.sql_text,
		xm.duration_seconds, xm.cpu_time_ms, xm.logical_reads,
		xm.client_app_name, xm.username, xm.client_hostname
from dbo.vw_xevent_metrics xm
where xm.event_time >= dateadd(HOUR,-2,getdate())
and (	xm.client_hostname like '(dba) %'
	or	xm.client_app_name like '(dba) %'
	)
order by event_time desc


Non-English align

  Options:

    -h, --help          - Show this help.
    -n, --name  <名字>    - 搜索名字
    -a, --abcd  <name>  - search name

.option("-n, --name <名字>", "搜索名字")
.option("-a, --abcd <name>", "search name")

@tch1121 sry for late reply. i have added a fix to add better support for chinese characters. It is already available in the main branch. Does this solve you issue?

thanks, it worked fine


Add tests for provider model

Closes #949.
Added tests to confirm model is storing data and assigning providers a type.

These tests refer to ids that have been set elsewhere in the system. If and when other tests are added these ids will no longer point to the data you expect.
Use FactoryGirl to create data to test with. Every test should be able to run on it's own.

:+1:


Silence the Logger upon repeated messages

I believe this is a feature that exists for instance in Mathematica:
Whenever a message repeats itself several times, just write in the console that other occurences of the message will be removed.
Maybe there is even support for that in the logging module ?
For instance when acquiring with a too small number of avg with the network analyzer, you get a new Info message after each trace, which is very annoying...

https://stackoverflow.com/questions/44691558/suppress-multiple-messages-with-same-content-in-python-logging-module-aka-log-co

Done


Update revoke-transact-sql.md

Simple typos on column names

#sign-off

@MightyPen: I'm sorry - only the author of this article, @VanMSFT, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Merging now.


Difficulty in building understanding

The Cloud adoption plan > Prerequisites > Tactical inputs section references having the Skill readiness completed. All elements of strategic and tactical inputs appear higher in the navigation hierarchy except the Skills readiness plan (which appears below the Cloud adoption plan). This can cause confusion when trying to understand a sequential set of steps to realize path to success. Please consider revising the navigation (or the language in the Tactical inputs section).

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

ID: ef8598a1-1be6-8707-4175-3f98449dae3a
Version Independent ID: 35d33d80-2533-3b02-ad69-21e8de761941
Content: Prerequisites for a cloud adoption plan - Cloud Adoption Framework
Content Source: docs/plan/prerequisites.md
Service: cloud-adoption-framework
Sub-service: plan
GitHub Login: @BrianBlanchard
Microsoft Alias: brblanch

Thanks for reporting - this issue is under review.  This is a Microsoft Internal DevOps Bug ID AB#301542

This issue has been resolved.


Some ESRI:MapServers are not correctly harvested

Let's check them off from the list as we make them work:

[ ] https://services.arcgisonline.com/arcgis/rest/services/NGS_Topo_US_2D/MapServer

From Erick at Boundless:
There's 2 parts to this issue.
Issue #1.
When adding https://services.arcgisonline.com/arcgis/rest/services/NGS_Topo_US_2D/MapServer as an Endpoint, I see the following error in the Celery logs:
[2016-08-31 10:49:05,606: ERROR/Worker-4] local variable 'service_to_process' referenced before assignment
Traceback (most recent call last):
File "/opt/boundless/exchange/.venv/lib/python2.7/site-packages/hypermap/aggregator/utils.py", line 308, in create_services_from_endpoint
service_to_process = get_single_service(esri, url, endpoint)
File "/opt/boundless/exchange/.venv/lib/python2.7/site-packages/hypermap/aggregator/utils.py", line 344, in get_single_service
return service_to_process
UnboundLocalError: local variable 'service_to_process' referenced before assignment
[2016-08-31 10:49:05,628: INFO/MainProcess] Task hypermap.aggregator.tasks.update_endpoint[00027c4a-aa00-4787-911b-2d050f7b4907] succeeded in 1.523003477s: None
Issue #2
After modifying utils.py above to initialize service_to_process, Registry is still unable to discover layers/servcies from:
https://services.arcgisonline.com/arcgis/rest/services/NGS_Topo_US_2D/MapServer
[2016-08-31 11:11:51,782: INFO/MainProcess] Received task: hypermap.aggregator.tasks.update_endpoint[1da46561-2ea3-467b-bb7d-9ad344f19458]
[2016-08-31 11:11:52,063: INFO/Worker-3] Starting new HTTPS connection (1): services.arcgisonline.com
[2016-08-31 11:11:52,373: INFO/Worker-3] Starting new HTTPS connection (1): services.arcgisonline.com
[2016-08-31 11:11:52,642: INFO/Worker-3] Starting new HTTPS connection (1): services.arcgisonline.com
[2016-08-31 11:11:52,927: INFO/Worker-3] Starting new HTTPS connection (1): services.arcgisonline.com
[2016-08-31 11:11:53,695: INFO/MainProcess] Task hypermap.aggregator.tasks.update_endpoint[1da46561-2ea3-467b-bb7d-9ad344f19458] succeeded in 1.910557994s: None

Fixed. Thanks @JorgeMartinezG


Could not connect to ComicVine for Search and API test

I am using the ComicTagger v1.1.15-beta GUI for Windows (8.1 Pro).
Today was the first day I tried this fantastic application and it was working flawlessly until it stopped.
First I noticed when attempting to Search Online or Auto-Identify I would receive "Could not connect to ComicVine to search for series!"
In the command prompt there is an entry "HTTP Error 403: Forbidden"
Assuming I may have exceeded my calls to ComicVine for the day (i checked on their website and I am ok) I attempted to test the API Key. Nothing seems to happen and the following entry is displayed in the command  prompt:
Traceback (most recent call last):
File "\Users\tony/Dropbox/tagger/comictagger\comictaggerlib\settingswindow.py", line 223, in testAPIKey
File "\Users\tony/Dropbox/tagger/comictagger\comictaggerlib\comicvinetalker.py", line 132, in testKey
File "C:\Python27\lib\urllib2.py", line 126, in urlopen
File "C:\Python27\lib\urllib2.py", line 406, in open
File "C:\Python27\lib\urllib2.py", line 519, in http_response
File "C:\Python27\lib\urllib2.py", line 444, in error
File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
File "C:\Python27\lib\urllib2.py", line 527, in http_error_default
urllib2.HTTPError: HTTP Error 403: Forbidden
Thank You for your assistance!

This appears to have resolved its self approximately 24 hours after it stopped. Even though I have my own API key, is there something else built in to throttle requests or provide a 24 hour block on requests?

It could be related to this?
http://comicvine.gamespot.com/forums/api-developers-2334/am-i-blocked-1714639/
I admit I really don't know enough the comicvine part of comictagger. I will look better in the future.


Application Customizer extension not visible for some users.

Category

[x] Question
[x] Bug
[ ] Enhancement

Expected or Desired Behavior
We created an Application Customizer extension to display some information as the header of the site. The extension is installed, but not globally we using a script to provisioning the site and install the extensions on the site collection. Unfortunately, some user not see the extension in their browser. No errors in the console tool of Chrome and I cannot find any differences between the users pc and mine. Has anyone suggestions or a solution for this?
Observed Behavior
See the extension on all users desktop and PC's but that's not the case.
We have this when we open the site and CTRL + F5 and CTRL + R not resolving this. The site loads the Javascript file from the extension but nothing is visible on the site.
Steps to Reproduce

Deploy an Application customizer extension to the tenant app catalog
Install the extension as an APP on a newly created site collection
By some user the extension doesn't appear.

Thanks for your contribution! Sharing is caring.

Related to custom scripts are disabled on the site.
I ran following commands and everything works perfectly.

Execute the command
Connect-SPOService -Url https://tenant-admin.sharepoint.com

Execute the command below with the URL for the modern site collection
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/contoso -DenyAddAndCustomizePages 0


Use specific ngrok version for el capitan

Success! using the ngrok from v2.3.38 from the source above has worked for my 10.11 (El Capitan) machine.
tar.gz: https://bin.equinox.io/a/cRNJMcSHdc9/ngrok-2.3.38-darwin-amd64.tar.gz
zip: https://bin.equinox.io/a/2UsPJaYn4om/ngrok-2.3.38-darwin-amd64.zip

El Capitan is no longer supported


Add Missing Integration Tests for Find- cmdlets

Type of Change

[X] Bug fix (non-breaking change, fixes #4982 )
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[X] Adding code coverage to existing functionality
[X] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Include Tests for Find- cmdlets that previously had 0 code coverage.
Approach
Either creating objects that need to be retrieved by a cmdlet, or executing the cmdlet with existing information
Commands to test
Invoke-Pester .\Find-DbaAgentJob.Tests.ps1
Invoke-Pester .\Find-DbaCommand.Tests.ps1
Invoke-Pester .\Find-DbaTrigger.Tests.ps1
Invoke-Pester .\Find-DbaUserObject.Tests.ps1
Invoke-Pester .\Find-DbaStoredProcedure.Tests.ps1
Invoke-Pester .\Find-DbaView.Tests.ps1

ohhhh heyyy! thank you 💯 💯 💯

Believe the last error was a AppVeyor issue. I did most of the cmdlets on the Issue. The ones I didn't complete seem to be doing some very specific Tsql or AD related tasks. Considered reaching out to the Authors of those cmdlets to build tests for these ones since they are more familiar with the code.

Thanks so very much, Josh 💯 🙇


404 Not Found - Azure AD documentation

Hello, I would like to read the document on how to setup KBVault for Azure AD in the Wiki.  The link to download the PDF is not working and get a 404.  Can someone help me find that docu so we can configure it properly?  Thanks!

Cancel that, I found it in the docs folder.  Looks like it got moved around a little and the Wiki just needs to be updated.
kbvault/docs/files/KBVault-AzureAD-Rev1_3.pdf

Cancel that, I found it in the docs folder.  Looks like it got moved around a little and the Wiki just needs to be updated.
kbvault/docs/files/KBVault-AzureAD-Rev1_3.pdf


Support project type GUID added when the .NET CLI manipulates an SLN file

The .NET CLI offers commands to add and remove projects from an SLN file (e.g. dotnet sln Solution1 add Project1.csproj). When it does this, it uses a different project type GUID which we need to support in OmniSharp.
cc @blackdwarf

@DustinCampbell nice, I wanted to do this tonight. :)

I have harder deadlines than that. :smile:

Got it. That is the GUID we use, so looks fine to me. Can't wait for the VSIX to try it out. 😄


DatePicker: remove hard coded date formats and replaced to dynamically feed from date-fns

Summary
What changed?
DatePicker: remove hard coded date formats and replaced to dynamically feed from date-fns
Why?
Manually hard coded formats was a bad idea. We added new locales and missed adding the formats. They are provided by date-fns , we should leverage that
https://deploy-preview-2798--gestalt.netlify.app/web/datepicker#localeData

Wait, how would we know the implications of this? Like do we know if all datepickers are providing a placeholder, and just using our default

Wait, how would we know the implications of this? Like do we know if all datepickers are providing a placeholder, and just using our default

We inform our library works with

But I'm happy to make it a breaking change, as potentially could break the internals if someone is not using it.


Allow AUTH ability

I was trying to get resque-clojure to work with RedisToGo.com and realized I needed the ability to AUTH.  I made a few small changes in init-pool to allow timeout and password configuration to the JedisPool.  Seems to get the job done.  Probably not the cleanest patch -- but I was just trying to hack the functionality.

Sorry -- forgot to take out some code for committing to my private repos on Amazon.


How do I change the colors for the powermenu (shutdown, restart, sleep) etc menu? What file do I edit? There is no option in the theming settings for it.

Theming > Dashboard Menu > Power Menu


"Pip subprocess error " in Step 7 during Installation

Platform: Ubuntu 20.04
I followed the steps until I was stuck in step 7.
When I comment out tensorflow-gpu ==1.15.0 for GeoCNNv2. yml
The attachment is the stdout and stderr dumped during the installation.
stdout.txt
stderror.txt

nbformat 5.1.2 is yanked, updated with 5.1.3.
fd45acb fixed.


404 when website is hard refreshed, but internal route works as expected

When I open my website it gives me 404, after hard refresh also it gives 404, but the moment I click on any of the navbar items then it works. I am not able to reproduce it on local, this is happening only when I host it using vercel. In my website any of the links have the same issue
https://www.arghyasaha.com/

package.json
{
  "name": "@tinacms/starter",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "yarn tinacms server:start -c \"next dev\"",
    "build": "yarn tinacms server:start -c \"next build\"",
    "start": "yarn tinacms server:start -c \"next start\"",
    "export": "yarn build && next export"
  },
  "devDependencies": {
    "@tinacms/cli": "^0.56.4",
    "@types/js-cookie": "^3.0.0",
    "@types/node": "^16.11.6",
    "@types/react": "^17.0.33",
    "@types/styled-components": "^5.1.3",
    "autoprefixer": "^10.4.0",
    "postcss": "^8.3.11",
    "postcss-import": "^14.0.2",
    "postcss-nesting": "^9.0.0",
    "tailwindcss": "^2.2.19"
  },
  "dependencies": {
    "@headlessui/react": "^1.3.0",
    "@tailwindcss/typography": "^0.4.1",
    "@tinacms/auth": "^0.50.1",
    "date-fns": "^2.23.0",
    "final-form": "4.20.4",
    "next": "12.0.1",
    "next-svgr": "^0.0.2",
    "next-tinacms-cloudinary": "^3.3.4",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-icons": "^4.2.0",
    "react-is": "^17.0.2",
    "react-markdown": "^7.1.0",
    "react-tinacms-editor": "^0.52.4",
    "styled-components": "^5.3.3",
    "styled-jsx": "^4.0.1",
    "tinacms": "^0.57.3",
    "typescript": "^4.4.4"
  },
  "resolutions": {
    "final-form": "4.20.1"
  }
}

posts/[filename].tsx
import { Post } from "../../components/post";
import { getStaticPropsForTina, staticRequest } from "tinacms";
import { layoutQueryFragment } from "../../components/layout";
import type { PostsDocument } from "../../.tina/__generated__/types";
import FourOhFour from "../404";

// Use the props returned by get static props
export default function BlogPostPage(
  props: AsyncReturnType<typeof getStaticProps>["props"]
) {
  if (props.data && props.data.getPostsDocument) {
    return <Post {...props.data.getPostsDocument} />;
  }
  // We're likely loading a new document that doesn't yet have data
  // show the 404 which will quickly be replace by client side content
  // from Tina
  return <FourOhFour />;
}

export const getStaticProps = async ({ params }) => {
  const tinaProps = (await getStaticPropsForTina({
    query: `#graphql
      query BlogPostQuery($relativePath: String!) {
        ${layoutQueryFragment}
        getPostsDocument(relativePath: $relativePath) {
          data {
            title
            author {
              ... on AuthorsDocument {
                data {
                  name
                  avatar
                }
              }
            }
            date
            heroImg
            body
          }
        }
      }
    `,
    variables: { relativePath: `${params.filename}.md` },
  })) as { data: { getPostsDocument: PostsDocument } };
  return {
    props: {
      ...tinaProps,
    },
  };
};

/**
 * To build the blog post pages we just iterate through the list of
 * posts and provide their "filename" as part of the URL path
 *
 * So a blog post at "content/posts/hello.md" would
 * be viewable at http://localhost:3000/posts/hello
 */
export const getStaticPaths = async () => {
  const postsListData = (await staticRequest({
    query: `#graphql
      {
        getPostsList {
          edges {
            node {
              sys {
                filename
              }
            }
          }
        }
      }
    `,
  })) as any;
  return {
    paths: postsListData.getPostsList.edges.map((post) => ({
      params: { filename: post.node.sys.filename },
    })),
    fallback: false,
  };
};

export type AsyncReturnType<T extends (...args: any) => Promise<any>> =
  T extends (...args: any) => Promise<infer R> ? R : any;

What does your _app file looks like?Wondering if props aren't being properly passed through to each page.
Also, if your repo is public, would you mind sharing the link? It will be easier for us to help debug.

Hello James,
I made the repository public for the time being. Please check and let me know
https://github.com/arghyaiitb/arghyasaha

Hey @arghyaiitb, I forked your repo and deployed to Vercel. It seems to be working correctly on my deployment (https://arghyasaha-seven.vercel.app/).
It looks here like your Vercel deployment failed on your recent commits: https://github.com/arghyaiitb/arghyasaha/commits/main (I can't don't have access to the Vercel error logs to see why).
The other thing to check is that your Vercel configuration is set correctly (it should use the NextJS preset, and have the default output directory/build command).
I hope this gets you sorted!

@jamespohalloran can share the vercel configuration you used, the commands and build folder?

Just the NextJS defaults

Thanks a lot @jamespohalloran I was actually overriding the commands to what is mentioned in the package.json of tinacms. Now the site is working as expected.

Awesome! Happy to help!


Memory Pool for Renter Uploader and Downloader

We need to add a memory pool for the uploader and downloader. When you upload and download files, you need to store all of the data in memory at once. There are ways to improve upon this, but the fact remains that upload and download jobs both require a bunch of memory, and we want a global manager that will prevent each of them from allocating too much.
The memory pool should have some configurable amount of memory, and then a function for requesting memory, and a function for returning memory. You should be able to request memory with a priority. The request will block until there is enough memory in the pool to provide all of the memory at once. An error should be returned if too much memory is requested. If multiple requests for memory are active, they should be fed memory in order of priority.
The uploader and downloader should be able to release partial amounts of data at a time. This is most relevant to uploading, where data can be released as soon as the sector upload finishes.
To prevent deadlocks, we need to be certain that no process will ever request memory twice in a row. Once memory has been requested, that needs to be enough memory to complete the full operation.
There is one major complication, which is online file repair, where the uploader uses the downloader before beginning a repair operation. The uploader will need to specify to the downloader the amount of memory that it needs, and then the downloader should make the memory request based on max(downloader needs, uploader needs). When it returns memory, it should return enough memory so that only uploader needs memory remains, and then expect that the uploader will return the rest.
We will configure the uploader and downloader to request memory from the pool once this piece of code exists. We should make sure to cleanly segment this code from the other code, and perhaps it should even be a subpackage.

Would probably simplify the code a lot if all requests/returns were 1 sector. If the requests are arbitrary, I worry that you'd need to do a lot of bookkeeping + defragging.

Dynamic growth might be good, including releasing memory if it's not used for a while. Also good would be to allow the user to adjust this memory volume on-the-fly in the API (later of course, not in the first pass).
We probably don't want to limit this library to feeding memory in the size of one sector. One thing we can do to really help memory usage is to only erasure code things like 4kb at a time, instead of 4mb at a time. During repair, we end up throwing away most of the memory when we are done. So instead of taking a full 50 sectors (for 20-of-50), we take the 10 we plan on uploading, plus some 200kb scratch space so we can encode 4kb fragments at a time.
When I made this issue, I wasn't planning on re-using the memory, just on allocating new memory each time memory was requested and making sure only a limited amount was allocated at any given time. Re-using memory is certainly an extra step of complexity, though it may be worthwhile.

hmm, so more like a rate limiter than a sync.Pool. That'd probably be even easier to implement. Would this work?
type memLimiter struct {
	inuse int64
	limit int64
	cond  *sync.Cond
}

func (m *memLimiter) Get(n int) []byte {
	m.cond.L.Lock()
	for m.inuse+int64(n) > m.limit {
		m.cond.Wait()
	}
	m.inuse += int64(n)
	m.cond.L.Unlock()
	return make([]byte, n)
}

func (m *memLimiter) Put(n int) {
	m.cond.L.Lock()
	m.inuse -= int64(n)
	if m.inuse < 0 {
		panic("memory in use cannot be < 0")
	}
	m.cond.L.Unlock()
	m.cond.Broadcast()
}

func newMemLimiter(limit int64) *memLimiter {
	return &memLimiter{
		limit: limit,
		cond:  sync.NewCond(new(sync.Mutex)),
	}
}


[Event Request] Codeunit  6620 "Copy Document Mgt." - Procedure: CopySalesShptLinesToDoc - Event: OnAfterCopySalesShptLinesToDoc

Hi Development Team,
We would like to see the following event added to the Codeunit  6620 "Copy Document Mgt.":
Similar to my other requests:

OnAfterCopySalesInvLinesToDoc
OnAfterCopySalesCrMemoLinesToDoc
OnAfterCopySalesReturnRcptLinesToDoc
OnAfterCopyPurchRcptLinesToDoc
OnAfterCopyPurchInvLinesToDoc
OnAfterCopyPurchCrMemoLinesToDoc
OnAfterCopyPurchReturnShptLinesToDoc

The CopySalesShptLinesToDoc procedure is public and also used in automated testing when copying lines from different documents.
We are missing and 'end of lines loop'/ 'before end of procedure' event to process information which was gathered during the procedure.
The automated tests are also using these procedures to test a copy line from multiple documents, so for our feature, we are unable to write successful tests.
The code with the requested added event:
procedure CopySalesShptLinesToDoc(ToSalesHeader: Record "Sales Header"; var FromSalesShptLine: Record "Sales Shipment Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    var
        // vars
    begin
        MissingExCostRevLink := false;
        InitCurrency(ToSalesHeader."Currency Code");
        OpenWindow();

        OnBeforeCopySalesShptLinesToDoc(TempDocSalesLine, ToSalesHeader, FromSalesShptLine);

        with FromSalesShptLine do
            if FindSet() then
                repeat

                // --- Code to handle the lines ---

                    OnCopySalesShptLinesToDocOnAfterCopySalesShptLineToSalesLine(FromSalesShptLine, ToSalesLine);
                until Next() = 0;
        >>>>>>> New Event <<<<<<<<
        OnAfterCopySalesShptLinesToDoc(ToSalesHeader, FromSalesShptLine, LinesNotCopied, MissingExCostRevLink);
        >>>>>>> New Event <<<<<<<<
        CloseWindow();
    end;

The new event:
  [IntegrationEvent(false, false)]
    local procedure OnAfterCopySalesShptLinesToDoc(ToSalesHeader: Record "Sales Header"; var FromSalesShptLine: Record "Sales Shipment Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 53388.


Update doc homepage

What does this PR do?

Following the discussion in https://github.com/huggingface-internal/moon-landing/pull/10992. This PR modifies the doc homepage to better reflect our strategic partnerships (cloud, hardware and on-prem) as it is now the page where huggingface.co/hardware redirects to.
In particular, it follows @jeffboudier's idea:

Such a partners page in my mind would have a broader scope, e.g.

cloud partners: amazon google azure cloudflare
hardware partners: nvidia amd intel aws tpu furiosa
on prem partners: dell

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

Who can review?

neat!

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@jeffboudier @julien-c @philschmid @mfuntowicz @VioletteLepercq @pagezyhf @echarlaix Here is a first draft for revamping the homepage of the Optimum doc: https://moon-ci-docs.huggingface.co/docs/optimum/pr_2029/en/index
The goal is to make it the landing page for hardware and cloud partnerships. It's a first quick iteration so it's far from being perfect, let me know what you think and where it can be improved!
In particular, check the links each tile leads to. I didn't find a good HF-hosted resource for Azure, and for Dell it's a link to their entreprise hub.

@jeffboudier Not sure if<EMAIL_ADDRESS>is still active or if there is a better email address to give

Also, I deliberately chose to not add anything to the sidebar as it's already dense but happy to reconsider it if you think it makes sense

nice!!

Nice! Super cool to have a central place for partnerships.
I looked at the hyperlink of the Cloud partnerships and here's my suggestion:

Azure: https://huggingface.co/blog/hugging-face-endpoints-on-azure
GCP: LGTM
Cloudflare: LGTM
AWS: LGTM
We could add a section for NVIDIA once they update their organization page (Autotrain on DGXCloud + NIM API (serverless)) ?

Optimum is certainly the best candidate as of now to host this central repository of partnerships. However, some cloud partnership don't relate to optimum so I would move the section down:

Hardware partners
Cloud partners
On-prem partners
Open Source integrations
Also, I would switch hardware and cloud partnership order.

Thanks @regisss !
To clarify my previous comments in https://github.com/huggingface-internal/moon-landing/pull/10992 :

today, we can replace the destination of the Solutions > Hardware header menu, from current /hardware marketing page, to https://huggingface.co/docs/optimum/index, as the current /hardware marketing page is outdated and unmaintained
tomorrow, instead of updating the Hardware marketing page, it would make sense to create a new "Partners" marketing page, with a broader scope, and have that as a new Solutions > Partners site header navigation.

Today, Optimum packages focus on our hardware collaborations, so I'm not sure it makes sense for the home of its documentation to present our broader partnerships, some of which do not require Optimum for usage. If we wanted to use documentation in order to present all our broader partnerships, then the Hub docs may be a better fit - and even then I still think a simple marketing page for newcomers would help newcomers.

If we wanted to use documentation in order to present all our broader partnerships

The advantage i see is that doc pages are simpler to keep in sync / maintain over time. But both options (doc page or marketing page) work

I agree with Julien that a doc page is easier to maintain but on the other hand I agree that some partnerships are a bit out of place in the homepage of the Optimum doc.
A single marketing page seems to be a better solution. I can start working on it next week, that way I'll know how to update it in the future to ensure we can maintain it pretty easily. Closing this one.


Reference library

the pipeline repo has an autocuration script that produces a FASTA ref library
the resulting FASTA file is posted on zenodo
the file is also a public data set on Naturalis's Galaxy
it is formatted such that it can be used in taxonomy-aware BLAST
example workflow using ref library that matches observed and expected lineages

Outstanding questions:

use galaxy or use snakemake?
if galaxy, how to make permanent library?
how to include output in report?

https://github.com/naturalis/barcode-validator


coroot mainpage have error "An error has been occurred while querying Prometheus" and no data

coroot log have E0618 06:11:15.426168       1 logs.go:193] handle packet: UNKNOWN (407): DB::Exception: Convert overflow: while executing 'FUNCTION toUnixTimestamp(Timestamp : 0) -> toUnixTimestamp(Timestamp) UInt32 : 7'
and page no data

It might be due to the fact that my Prometheus is using the NFS file system.

I changed the storage method to a local disk, but Coroot still reports a 422 error when detecting Prometheus, indicating that there is still an issue.

prometheus with this error
2024/06/20 08:32:00 Unsolicited response received on idle HTTP channel starting with "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"; err=
2024/06/20 08:35:55 Unsolicited response received on idle HTTP channel starting with "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"; err=
2024/06/20 08:50:18 Unsolicited response received on idle HTTP channel starting with "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"; err=
2024/06/20 09:04:55 Unsolicited response received on idle HTTP channel starting with "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"; err=
2024/06/20 09:11:18 Unsolicited response received on idle HTTP channel starting with "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"; err=

The issue might be in the getstatus function in db.go. The logic here should retrieve the last check status, but after adding "last_error != ''", it retrieves the last error status instead. This leads to a situation where, once an error occurs, it always returns an error status.

Perhaps changing it to the following statement might fix the issue.

Could someone provide the data from the prometheus_query_state table in SQLite? HTTP 422 errors from Prometheus are typically related to incorrect query timestamps.

4o6ygm14|rate(container_dns_requests_total[$RANGE])|1719558780|422 Unprocessable Entity

I suspect the issue might still be related to the large amount of data in Prometheus. I added some logging in the code and didn't find any errors with the timestamps. However, I noticed that my Prometheus data has an issue: all entries have the same machine-id. This is likely because my nodes are KVM instances. I suspect this might be related. I'm currently testing this hypothesis. If you have a similar issue, you might want to check if there's a particular field in your Prometheus data with an unusually large amount of entries.
4fh3ftjo|rate(container_kafka_requests_duration_seconds_total_bucket[$RANGE])|1719478950|422 Unprocessable Entity
The field causing this error is the one with the largest amount of data in my Prometheus.

@kr521, which version of coroot-node-agent and coroot are you using?

For me it happens on
coroot-node-agent - 1.20.2
coroot - 1.2.0 and 1.2.1

coroot-node-agent:1.20.2
coroot:1.2.1

@kr521, which version of coroot-node-agent and coroot are you using?

I thought it was due to the large amount of data from a certain Prometheus metric. I disabled some metrics, but the problem persists.

I thought the issue was caused by all the machine-IDs generated by KVM being the same, so I regenerated the machine-IDs for all machines, but the problem still exists.

I deleted all the data and rebuilt the machine-IDs for all node nodes, then restarted all services. It takes about 1 hour from startup for the service to encounter a 422 error. The error message is as follows.
1bl5lkk5|rate(container_http_requests_duration_seconds_total_bucket[$RANGE])|1719807480|422 Unprocessable Entity 1bl5lkk5|rate(container_kafka_requests_duration_seconds_total_bucket[$RANGE])|1719807390|422 Unprocessable Entity 1bl5lkk5|rate(container_kafka_requests_duration_seconds_total_sum [$RANGE]) / rate(container_kafka_requests_duration_seconds_total_count [$RANGE])|1719810450|422 Unprocessable Entity 1bl5lkk5|rate(container_dns_requests_total[$RANGE])|1719811635|422 Unprocessable Entity

I guess the error is related to the query.max-samples limit in Prometheus. Could you please try to increase it?
      --query.max-samples=50000000
                                 Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples
                                 a query can return. Use with server mode only.

I cleared Prometheus' data and modified the startup parameters to add --query.max-samples=50000000. After running for about 40 minutes, a 422 error started to appear.
1bl5lkk5|rate(container_kafka_requests_duration_seconds_total_bucket[$RANGE])|1719885105|422 Unprocessable Entity

The error was likely due to the short data retention period in Prometheus. I increased the --storage.tsdb.retention.time=1d parameter, and the error disappeared. I will monitor it for a while.

I guess the error is related to the query.max-samples limit in Prometheus. Could you please try to increase it?
      --query.max-samples=50000000
                                 Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples
                                 a query can return. Use with server mode only.

I have monitored for more than 4 hours and there are no more errors. Thank you for your support.

@kr521,  --query.max-samples=50000000 is the default value, so you changed nothing.

it happened for me several times, every time to fix it I need to delete coroot/prometheus PVC (not sure if the latter is needed), I have retention period set to 7d (to match coroot default). Yesterday upgraded to 1.3.0, will see if this helps

it happened for me several times, every time to fix it I need to delete coroot/prometheus PVC (not sure if the latter is needed), I have retention period set to 7d (to match coroot default). Yesterday upgraded to 1.3.0, will see if this helps

changed to --query.max-samples=5000000000

new issue

@kr521, --query.max-samples=50000000 is the default value, so you changed nothing.

changed to --query.max-samples=5000000000

I encountered this issue again today after i.e. 2 days for working, my usual fix it to delete PVC for coroot and prometheus it uses.

Could someone provide the data from the prometheus_query_state table in SQLite? HTTP 422 errors from Prometheus are typically related to incorrect query timestamps.

I will try to capture this next time

@grzesuav have you tried to increase query.max-samples?

@def keep increasing it, however it is dependent on the size of the cluster , woulb be better if coroot could handle error in prom queries and at least show some data as currently when it encounter an issue we cannot use it.
Second question, what would be the easest way to access SQLite @kr521 ?

@def keep increasing it, however it is dependent on the size of the cluster , woulb be better if coroot could handle error in prom queries and at least show some data as currently when it encounter an issue we cannot use it.
Second question, what would be the easest way to access SQLite @kr521 ?

kubectl exec in coroot pod with /bin/bash , and apt-get install sqlite. The db file in the  /data/coroot/cache/db.sqlite of the pod .

https://github.com/coroot/coroot/issues/304   might be related , and thus this might be fixed in 1.5


fix Fix some bugs

Proposed changes

fix bind ambiguous slots exception because select same slots
fix bind SetOperation multiple times because CTE
fix case when clause not corecion to same type

Checklist(Required)

[ ] Does it affect the original behavior
[x] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[x] Is this PR support rollback (If NO, please explain WHY)

run buildall

run buildall

run buildall


Investigate 401 response on delivery reports

Description
After July 9th we have only responses 401 on attempts to send delivery reports. Corresponds with prod deploy. Should be investigated.
Additional Information

Cannot see this same error in TT02.

Tasks
No response
Acceptance Criterias
No response

https://github.com/microsoft/azure-pipelines-agent/issues/4337

Platform is following up in https://github.com/Altinn/altinn-platform/issues/875

Password updated in production closing issue. Future followup should be through the platform issue