AnimateKeyframes does not fit within 50px X 50px

Hello Bill.
I would like to use the <AnimateKeyFrames   ...> component with a svg image. However, the maximum size is 50px X 50px and it seems to be impossible to compress AnimateKeyFrame to fit inside that size.
Thanks in advance, Gunnar Siréus

hey Gunnar,
can you share your code? looks like it's probably an svg view port issue?
cheers
bill

Hello.
Here is mu component ReactSvgIcon.jsx importing ReactLogo.svg. However, I want to rewrite ReactSvgIcon.jsx and use . But that’s not possible, I cannot make <AnimateKeyFrames…> to fit inside 50px X 50px.
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS>Skickat: den 29 mars 2019 07:00
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
hey Gunnar,
can you share your code? looks like it's probably an svg view port issue?
cheers
bill
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-477878707 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaPvdwgWL2dJz-VxaxOz4Hvsb6Awyks5vbavXgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaA3yXo2pCFD9wXk1L-zF7LeNQEHYks5vbavXgaJpZM4cRqg7.gif
import React from 'react';
import reactLogo from "../../wwwroot/ReactLogo.svg";
export default class ReactIcon extends React.Component {
constructor(props) {
super(props);
}
render() {
    let elementSpin = '@-webkit-keyframes elementSpin {0% {-webkit-transform: rotate(0)} 100% {-webkit-transform: rotate(360deg)}}';
    if (!this.props.serverSideRendering) {
        const isIE = /*@cc_on!@*/false || !!document.documentMode;
        if (isIE) return;
        let styleSheet = document.styleSheets[0];
        styleSheet.insertRule(elementSpin, styleSheet.cssRules.length);
    }

    const appHeader = {
        backgroundColor: '#222',
        height: '50px',
        width: 'auto',
        color: 'red'
    };

    const appLogo = {
        WebkitAnimationName: 'elementSpin',
        WebkitAnimationTimingFunction: 'linear',
        WebkitAnimationIterationCount: 'infinite',
        WebkitAnimationDuration: '20s',
        WebkitAnimationDelay: '0.01s',
        WebkitAnimationPlayState: 'running',
        WebkitAnimationFillMode: 'both',
        height: '50px',
        width: '50px',
        align: 'left'
    };

    const left = { display: 'inline', textAlign: 'left' };
    const middle = { display: 'inline', textAlign: 'center'};
    const right = { display: 'inline', textAlign: 'right' };

    return (

{this.props.text}

);
}

}

Please read the documentation https://react-simple-animate.now.sh/animate-keyframes
You can do code like below
<AnimateKeyframes
play
iterationCount="infinite"
direction="alternate"
durationSeconds={10}
playState="running"
keyframes={[
'transform: rotateX(0) rotateY(0) rotateZ(0)',
'transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg)',
]}

Hello.
I did exactly that. With my code it looks like this:
Using <AnimateKeyframes it becomes:
The updated component is attached.
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS>Skickat: den 29 mars 2019 07:58
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
Please read the documentation https://react-simple-animate.now.sh/animate-keyframes
You can do code like below
<AnimateKeyframes
play
iterationCount="infinite"
direction="alternate"
durationSeconds={10}
playState="running"
keyframes={[
'transform: rotateX(0) rotateY(0) rotateZ(0)',
'transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg)',
]}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-477890605 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaNnXM2A4EGUgo2fA57TcaAk1uMDcks5vbbmCgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaGMB0JjkQ92nALsgSnPFW7lL3xppks5vbbmCgaJpZM4cRqg7.gif
import React from 'react';
import reactLogo from "../../wwwroot/ReactLogo.svg";
import { AnimateKeyframes } from "react-simple-animate";
export default class ReactIcon extends React.Component {
constructor(props) {
super(props);
}
render() {
    const appHeader = {
        backgroundColor: '#222',
        height: '50px',
        width: 'auto',
        color: 'red'
    };

    const imageStyle = {
        height: '50px',
        width: '50px',
        align: 'left'
    };

    const left = { display: 'inline', textAlign: 'left' };
    const middle = { display: 'inline', textAlign: 'center'};
    const right = { display: 'inline', textAlign: 'right' };

    return (

                <AnimateKeyframes
                    play
                    iterationCount="infinite"
                    direction="alternate"
                    durationSeconds={10}
                    playState="running"
                    keyframes={[
                        'transform: rotateX(0) rotateY(0) rotateZ(0)',
                        'transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg)'
                    ]}
                >

                </AnimateKeyframes>

{this.props.text}

);
}

}

any chance you can supply me with your svg?

https://codesandbox.io/s/6wyp4knkj3

Thanks.
Looks nice. However, When I run it in my code I get “unexpected token”:
         Asset     Size       Chunks             Chunk Names

main-server.js  218 KiB  main-server  [emitted]  main-server

ERROR in ./ClientApp/common/ReactSvgIcon.jsx

Module build failed (from ./node_modules/babel-loader/lib/index.js):

SyntaxError: C:/Users/gunna/Documents/GitHub/SireusCore/SireusCore/ClientApp/common/ReactSvgIcon.jsx: Unexpected token (43:36)

  41 |                              43 |                                     ...style,

     |                                     ^

  44 |                                     width: 50

  45 |                                 }}

  46 |                                 src="https://facebook.github.io/create-react-app/img/logo.svg"

Från: Bill<EMAIL_ADDRESS>Skickat: den 29 mars 2019 23:11
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
https://codesandbox.io/s/6wyp4knkj3
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-478165006 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaObKpWekRacxQYFK6mPokL7nuTMcks5vbo-JgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaKcAz_u5UXFxwSyYtGg8NC_IXFMrks5vbo-JgaJpZM4cRqg7.gif

Hello again.
Now it works brilliantly. I had to update Babel to 7… .
Thanks a lot,
Gunnar
Från: Bill<EMAIL_ADDRESS>Skickat: den 29 mars 2019 23:11
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
https://codesandbox.io/s/6wyp4knkj3
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-478165006 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaObKpWekRacxQYFK6mPokL7nuTMcks5vbo-JgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaKcAz_u5UXFxwSyYtGg8NC_IXFMrks5vbo-JgaJpZM4cRqg7.gif

you happy to close this issue?

Hello Bill.
Yes please close the issue. I must say that react-simple-animate is really impressing. I have read some of your other posts and I will continue to read your posts. They are amazingly good.
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS>Skickat: den 1 april 2019 03:07
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
you happy to close this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly,  https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-478403969 view it on GitHub, or  https://github.com/notifications/unsubscribe-auth/ADvzaJvclRX1icHId2HHfZxsrbzq0gbkks5vcVvRgaJpZM4cRqg7 mute the thread.  https://github.com/notifications/beacon/ADvzaFCDbZF2lVMiZZXM_xvUirg6v3zzks5vcVvRgaJpZM4cRqg7.gif

thank you very much Gunnar, leave a star if you find it useful 🙏

Hello Bill.
I have three ReatcJS questions I hope you could help me with.

I would like to use  for rotating an object. Today I’m using this code I found somewhere on internet:

export default class Rotate extends React.Component {
constructor(props) {

    super(props);

    this.state = {

        play: this.props.play

    };

}

componentWillMount() {

    const elementRotate = '@-webkit-keyframes elementRotate {0% {-webkit-transform: rotate(0)} 100% {-webkit-transform: rotate(360deg)}}';

    if (this.props.serverSideRendering) return;

    const isIE = /*@cc_on!@*/false || !!document.documentMode;

    if (isIE) return;

    let styleSheet = document.styleSheets[0];

    styleSheet.insertRule(elementRotate, styleSheet.cssRules.length);

}

componentWillReceiveProps(newProps) {

    this.setState({ play: newProps.play });

}

render() {

    const appLogo = {

        WebkitAnimationName: 'elementRotate',

        WebkitAnimationTimingFunction: 'linear',

        WebkitAnimationFillMode: 'both',

        WebkitAnimationIterationCount: this.props.count,

        WebkitAnimationDuration: this.props.duration,

        WebkitAnimationDelay: '0.01s',

        WebkitAnimationPlayState: `${this.state.play ? 'running' : 'paused'}`,

        visibility: `${this.state.play ? 'visible' : 'hidden'}`

    };

    return
{this.props.children}
;

This works fine but I want to use  instead.
I tried to do:
    return (<div style={{ visibility: `${this.state.play ? 'visible': 'visible'}` }} >

        <AnimateKeyframes

            play={this.state.play}

            playState={'running'}

            easeType={'linear'}

            iterationCount={this.props.count}

            durationSeconds={this.props.duration}

            keyframes={[

                'transform: rotate(0)',

                'transform: rotate(360deg)']}

        >

            {this.props.children}

        </AnimateKeyframes>

);

However, it’s not working. Can you help me?

Drag and Drop

Do you know any good library for Drag and Drop in React? I have read about Dan Abramow and his react-dnd library. I downloaded it and spent several hours trying to build it without succeeding. I has 11 branches and 114 contributors, and it seems quit messy I think.
There must be something better out there. Something that works.

Redux.

I have been using Redux in some applications and I have noticed that there is a lot of discussions on internet about Redux. When I code, I try to do everything as simple as possible and I try to eliminate all unnecessary code. Redux is used because of the “one way data transfer in React”. In Redux, the store is used as “single source of truth”.
I have some objections to this logic.
Single Source of truth. Most web applications have a database where data is stored. The db is updated with CRUD operations and the UI shows more or less the content of the db. In this case the db is the single source of truth. When using Redux, the store contains more or less a copy of the db. When updating the db, the store has also to be updated. This means we must do 2 updates.
In most professional web applications Redux is used. I feel that Redux is used just because it’s expected by a professional programmer to use Redux. No professional programmer will take the risk of being accused of developing unprofessional software. Another fact is that programmers like intellectual challenges, and Redux is a kind of intellectual challenge. There is a huge eco system with Redux code, for example Redux Forms, that can be used in a Redux application, which is good. However, I think that Redux is a kind of “necessary evil”. My objection is that I don’t think Redux is necessary. Do you have any example of any React application where it’s really necessary to use Redux?
Thanks in advance,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS>Skickat: den 1 april 2019 13:02
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
thank you very much Gunnar, leave a star if you find it useful 🙏
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-478534300 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaDyL37abBuG0Cjxj0Us2WAjhxFRUks5vcecugaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaAxqFV4V5-_EnouCFcSxAHNzJWOPks5vcecugaJpZM4cRqg7.gif

Hello again Bill.
It seems it is not possible to nest <AnimateKeyframes . Or?
Maybe each <AnimateKeyframes should have a name so in case of nesting they don’t get mixed up.
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från<EMAIL_ADDRESS><EMAIL_ADDRESS>Skickat: den 1 april 2019 11:30
Till: 'bluebill1049/react-simple-animate'<EMAIL_ADDRESS>'bluebill1049/react-simple-animate'<EMAIL_ADDRESS>Kopia: 'Gunnar Sireus'<EMAIL_ADDRESS>'Author'<EMAIL_ADDRESS>Ämne: SV: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
Hello Bill.
Yes please close the issue. I must say that react-simple-animate is really impressing. I have read some of your other posts and I will continue to read your posts. They are amazingly good.
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Skickat: den 1 april 2019 03:07
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Kopia: Gunnar Sireus<EMAIL_ADDRESS><EMAIL_ADDRESS>>; Author<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
you happy to close this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly,  https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-478403969 view it on GitHub, or  https://github.com/notifications/unsubscribe-auth/ADvzaJvclRX1icHId2HHfZxsrbzq0gbkks5vcVvRgaJpZM4cRqg7 mute the thread.  https://github.com/notifications/beacon/ADvzaFCDbZF2lVMiZZXM_xvUirg6v3zzks5vcVvRgaJpZM4cRqg7.gif

Why u couldn’t nest? Can u share the code?

Hello.
Here’s my Rotate component:
import React from 'react';
import { AnimateKeyframes } from "react-simple-animate";
export default class Rotate extends React.Component {
constructor(props) {

    super(props);

    this.state = {

        play: this.props.play

    };

}

componentWillReceiveProps(newProps) {

    this.setState({

        play: newProps.play

    });

}

render() {

    return (<div style={{ visibility: `${this.state.play ? 'visible' : 'visible'}` }} >

        <AnimateKeyframes

            name={'xxx'}

            play={this.state.play}

            playState={'running'}

            easeType={'linear'}

            iterationCount={this.props.count}

            durationSeconds={this.props.duration}

            keyframes={[

                'transform: rotate(0)',

                'transform: rotate(360deg)']}

        >

            {this.props.children}

        </AnimateKeyframes>

);

}

}
And it’s just like this:

                                            <Rotate count={10} duration={"0.2s"} play={this.state.play}>

                                                <AnimateKeyframes

                                                    name={'yyy'}

                                                    play={this.state.play}

                                                    iterationCount="1"

                                                    direction="alternate"

                                                    durationSeconds={2}

                                                    playState="running"

                                                    keyframes={[

                                                        'transform: scaleX(0.05) scaleY(0.05) scaleZ(0.05)',

                                                        'transform: scaleX(0.1) scaleY(0.1) scaleZ(0.1)',

                                                        'transform: scaleX(0.15) scaleY(0.15) scaleZ(0.15)',

                                                        'transform: scaleX(0.2) scaleY(0.2) scaleZ(0.2)',

                                                        'transform: scaleX(0.25) scaleY(0.25) scaleZ(0.25)',

                                                        'transform: scaleX(0.3) scaleY(0.3) scaleZ(0.3)',

                                                        'transform: scaleX(0.35) scaleY(0.35) scaleZ(0.35)',

                                                        'transform: scaleX(0.4) scaleY(0.4) scaleZ(0.4)',

                                                        'transform: scaleX(0.45) scaleY(0.45) scaleZ(0.45)',

                                                        'transform: scaleX(0.5) scaleY(0.5) scaleZ(0.5)',

                                                        'transform: scaleX(0.55) scaleY(0.55) scaleZ(0.55)',

                                                        'transform: scaleX(0.6) scaleY(0.6) scaleZ(0.7)',

                                                        'transform: scaleX(0.65) scaleY(0.65) scaleZ(1)',

                                                        'transform: scaleX(0.7) scaleY(0.7) scaleZ(0.7)',

                                                        'transform: scaleX(0.75) scaleY(0.75) scaleZ(0.65)',

                                                        'transform: scaleX(0.8) scaleY(0.8) scaleZ(0.7)',

                                                        'transform: scaleX(0.85) scaleY(0.85) scaleZ(0.8)',

                                                        'transform: scaleX(0.9) scaleY(0.9) scaleZ(0.9)',

                                                        'transform: scaleX(1) scaleY(1) scaleZ(1)'

                                                    ]}

                                                >

                                                    <PhotoFrame>

                                                             { this.setState({ play: true }); }} src={'/Handler/Index/PhotoID=0/Size=M?' + this.state.rand} alt="" style={{ border: "4px solid white", maxHeight: "100%", maxWidth: "100%", verticalAlign: "middle" }} />

                                                    </PhotoFrame>

                                                </AnimateKeyframes>

                                            </Rotate>

Thanks for your help, Gunnar
Från: Bill<EMAIL_ADDRESS>Skickat: den 3 april 2019 08:43
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
Why u couldn’t nest? Can u share the code?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-479360820 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaJFa4XRoiCbFwJtOd-DOKMhqaI12ks5vdE14gaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaPjFoNccvBhdU60Tw-IOyl2JWtttks5vdE14gaJpZM4cRqg7.gif

do you have an error by nest them?

No error simply no rotation
Från: Bill<EMAIL_ADDRESS>Skickat: den 3 april 2019 11:46
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
do you have an error by nest them?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-479418579 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaDWt-PghYuAGB79mazpCac7nfzMyks5vdHhfgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaCQ9RWYd0WihKLj34OgaUPDVLuE-ks5vdHhfgaJpZM4cRqg7.gif

I see the problem please refer to my code below
https://codesandbox.io/s/6wyp4knkj3
you can only have one animation attribute on one element, this is standard css animation.
img {
  animation: "2s linear 0s infinite alternate none running RSI-m25o8kbye";
  animation: "2s linear 0s infinite alternate none running RSI-m25o8kby2";
}

see above if you have two the second one will overwrite. so solution is in my code example as well, take a look and play around with it.
thanks
bill

Thanks.
That works well.
Can you recommend any good ReactJS Drag & Drop library?
And what do you think about Redux?
Best regards,
Gunnar Siréus
Tel: +46 708 940 567
Från: Bill<EMAIL_ADDRESS>Skickat: den 3 april 2019 12:24
Till: bluebill1049/react-simple-animate<EMAIL_ADDRESS>Kopia: Gunnar Sireus<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Ämne: Re: [bluebill1049/react-simple-animate] AnimateKeyframes does not fit within 50px X 50px (#40)
I see the problem please refer to my code below
https://codesandbox.io/s/6wyp4knkj3
you can only have one animation attribute on one element, this is standard css animation.
img {
animation: "2s linear 0s infinite alternate none running RSI-m25o8kbye";
animation: "2s linear 0s infinite alternate none running RSI-m25o8kby2";
}
see above if you have two the second one will overwrite. so solution is in my code example as well, take a look and play around with it.
thanks
bill
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bluebill1049/react-simple-animate/issues/40#issuecomment-479430716 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADvzaP_3MGUu1SGaWr3m_cIi86UVNGjuks5vdIEjgaJpZM4cRqg7 .  https://github.com/notifications/beacon/ADvzaBA4vq1ZTXP2CJxNgdExwLxyOs5Rks5vdIEjgaJpZM4cRqg7.gif

not sure about drag and drop, but yea redux is good


Renaming IoPathFileLoader to IoPathFileOpener

Stack from ghstack:

-> #151
#148

Previously, this was one PR, but now we are breaking it into two parts.
Renaming IoPathFileLoader to IoPathFileOpener (the functional name changes as well). Downstream users of those DataPipes please be aware of that.
Part of #103
cc: @ejguan @VitalyFedyunin @pmeier @Nayef211
Differential Revision: D33368186

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.


02-load-data-with-power-query-in-power-bi-desktop.md

English:
Model Data in Power BI Desktop
Current Translation:
Power BI Desktop 中的模型数据
Suggested Translation:
在 Power BI Desktop 中对数据建模

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

Run the bugfix tool and waiting for result. ICMS QUERY

Fixed.


[BEAM-13772][Playground][Bugfix] Change executable name for go tests

[BEAM-13772][Playground][Bugfix] Fix bug with wrong name for go test command
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

LGTM thanks all!


fix: padding home page cards on mobile layout

The mobile layout for the cards looked a little off and left overflow. I added some padding to contain them in the grid.

I can't see any overflow or padding issues on the current site

I meant I think it needs some padding as it looks better with it contained so I added it.

The reason it doesn't have padding is to make it as wide as possible, especially for 320px wide screens. I think instead the border-radius should become 0 once it takes up 100% width

alright let me do that...

Looks good, ty


Mismatch Error When Reloading Pre-trained Weights for Inference Testing

Hi,
I am encountering a mismatch error while attempting to reload the pre-trained weights (SNIP-10dmax) for inference testing on the model. Despite following the installation instructions meticulously to set up the environment and packages, the error arises when executing the command:
!python /content/drive/MyDrive/LLM/Multimodal-Math-Pretraining-main/train.py --reload_model /content/drive/MyDrive/LLM/Multimodal-Math-Pretraining-main/weights/snip-10dmax.pth
to load the weights. The specific error message indicates a size mismatch in several layers:
RuntimeError: Error(s) in loading state_dict for LinearPointEmbedder:
size mismatch for hidden_layers.0.weight: copying a param with shape torch.Size([2112, 2112]) from checkpoint, the shape in current model is torch.Size([384, 384]).
size mismatch for hidden_layers.0.bias: copying a param with shape torch.Size([2112]) from checkpoint, the shape in current model is torch.Size([384]).
size mismatch for fc.weight: copying a param with shape torch.Size([512, 2112]) from checkpoint, the shape in current model is torch.Size([512, 384]).
This issue leads me to question whether there might be a discrepancy between the pre-trained model weights provided and the current model architecture in the repository, or if there were any steps I may have overlooked during the setup process.
I would greatly appreciate any guidance or suggestions you could offer to resolve this mismatch issue. Thank you for your time and assistance.

Hi @whoisfrankyang
Thank you for reaching out and for your interest in the SNIP project!
After replicating the steps from the repository, I didn't encounter this error.
Noticed that you're probably running the wrong command of 1d for loading 10d model. The parameters like max_nput_dimension affects data generation, vocabulary size and thus, input embedding layers in the model architecture. To load snip-10dmax.pth model,  set max_input_dimension 10 as suggested in the last line of run_pretrain.sh. Can you run this command and let me know if you still encounter the mismatch error?
python train.py --reload_model ./weights/snip-10dmax.pth --loss_type CLIP --dump_path ./dump --max_input_dimension 10 --latent_dim 512

This command worked!
After running this command, I noticed that it is still doing pre-training work based on the given checkpoint. In the paper, it says the model runs for about 220 epochs with 1000 iterations/epoch and batch size 256. Is the checkpoint snip-10dmax.pth the result of the model for running about 220 epochs? Since the training it still going on after I reload the checkpoint, would the training ever converge? And if so, do you have an estimation on how many epochs that will take. These information can give me a rough estimate on the training time. Thanks!

@whoisfrankyang Happy to hear that!
Yes, the released checkpoint is after about 220 epochs. If you continue training from there, you'll likely see minimal loss reduction, indicating near convergence.
Training time varies with your setup and task specifics. For reference on training times per epoch with our setup, you can check App B.

@parshinsh  So from my understanding, there is not really a "convergence point" in this model where the training will just stop after that. The model can technically run to the max_epoch if we let it run.


Cannot request renewal: "Check logs" - Where?

I have 3 sites using Let's Encrypt certs.  Only one of them cannot be renewed. When a new cert is requested I immediately get: "Could not begin authorization. Check Logs. Ensure the domain being authorized is whitelisted with LetsEncrypt service."
I understand there is not whitelist requirement anymore but where is the log I should be checking?
...if I attempt more times, I also get "an existing challenge was already in progress, status will now be updated." Any idea what that is telling me?
Windows Server 2012 R2
v 0.9.85

...ok. I've gotta go to bed.  I see the log tab now...


i18n(fr): Update guides/customization.mdx with

Description
i18n(fr): Update guides/customization.mdx with  from https://github.com/withastro/starlight/commit/554c670c402c5cd87fe376d506292a8f0b017ed2

Thanks @HiDeoo and @dreyfus92 💜🙌


Fix compilation warnings coming from the library

📒 Description
Fix most of the warnings coming from the library when building in gcc and clang.
🕶 Types of changes

Slight enhancement

👫 Relationships
Closes #2701
🔎 Review hints
Since the tests are very limited, maybe postpone reviewing this PR for when there is more of them.
There should be no to very little issues but considering the signed/unsigned integer change, we should think of testing stuff thoroughly.
I'm going for a vacation next week, so expect movement in the test department from my side when I return.

Just to summarize the changes of this PR:

using nullptr instead of (0) and NULL
Remove argument names from method declarations
remove return noError as it is not needed and removing it is the same as returning empty string that the noError represents
changing int values to or from uint to avoid conversions and castings in code

Just wondering that whether this PR is ready for reviewing 🤔 since I would like to take down 1 Linux PR today 🌮

Yes, both this and #2861 are ready for review


cholesky value differing from other frameworks

Description
The example uses (4, 4) matrix which perhaps could be reduced but I am unable atm.
For the following code:
import numpy as  np
import jax.numpy as jnp
x = np.array([[ 1.0019766,  2.       ,  0.25     ,  0.       ],
       [ 2.       , 85.001    ,  9.5      ,  9.       ],
       [ 0.25     ,  9.5      ,  1.0635   ,  1.       ],
       [ 0.       ,  9.       ,  1.       ,  2.001    ]])
print(jnp.linalg.cholesky(x))

jax produces 4x4 matrix with following value at index [3,2]
[[--------------------  -------------------  -----------------------  ----------------------]
 [-------------------   ------------------   -------------------------  --------------------]
 [------------------  --------------------     -----------------------  ---------------------]
 [-----------------   ---------------------    9.4526440e-06    ---------------------]]

But numpy(1.24.2) and other fws torch (1.12.1), tf (2.11.0) (adding on the code below) give an exact value of 5.2917e-06 at index [3,2].
This is quite a big difference. There are two other minor diffs which can be seen using jnp.equal.
following code was added after the snippet above.
# numpy
ret_np = np.linalg.cholesky(x)
print(ret_np)

# torch
import torch
x = torch.from_numpy(x)
ret_torch = torch.linalg.cholesky(x)
print(ret_torch)

import tensorflow as tf
x = tf.convert_to_tensor(x)
ret_tf = tf.linalg.cholesky(x)
print(ret_tf)

What jax/jaxlib version are you using?
jax v0.4.5, jaxlib v0.4.4
Which accelerator(s) are you using?
CPU
Additional system info
Python 3.8.10, Ubuntu 22
NVIDIA GPU info
No response

This looks like a floating point precision issue. NumPy uses float64 by default, while JAX uses float32. If you enable 64-bit precision, you'll see that the output matches NumPy:
import numpy as  np
import jax.numpy as jnp
import jax
jax.config.update('jax_enable_x64', True)

x = np.array([[ 1.0019766,  2.       ,  0.25     ,  0.       ],
       [ 2.       , 85.001    ,  9.5      ,  9.       ],
       [ 0.25     ,  9.5      ,  1.0635   ,  1.       ],
       [ 0.       ,  9.       ,  1.       ,  2.001    ]])
print(jnp.linalg.cholesky(x))

Thanks @jakevdp. Sure. But even when x64 is enabled, if x has dtype specifed as float32, the rounding error remains in jax. But not in numpy. I am not sure why is numpy able to calculate this correctly while jax has this rounding error in that case.
To be honest, mostly this could hv been ignored but the difference here is quite significant. What are your thoughts?

I see – I believe the difference is that in numpy, regardless of the input dtype, the computations are performed in 64-bit precision, and the results are then cast to match the input dtype. In JAX, with 32-bit inputs the computations are actually performed at 32-bit precision. The reason JAX behaves this way is because 64-bit computations can be quite slow on accelerators, so for performance it maintains the dtype of the input throughout the computation. NumPy is build only for CPUs, so there's generally no downside to performing computations at full 64-bit precision, regardless of the input and output type. Does that make sense?

Thats makes perfect sense. Thanks for the clarification @jakevdp. Feel free to close 🙂

Great, thanks!

@jakevdp
Just a follow up. Is there is way to force jax to use 64 bit for calculating internally like numpy ragardless of the input so there outputs always match? at least for CPUs. Ive seen this in pinv in addition to cholesky and perhaps more. Thanks


Has any ability in android to export CUSTOMENV from .env to node without call it in commandline every time?

Hi. Thank you very much for greate library.
In my app i need to specify env like below.
CUSTOMENV=ENV1 node scripts/start.js.
How i should do this with react-native-config? Has any ability in android to export CUSTOMENV from .env to node without call it in commandline every time?
It would be greate to spicify only ENVFILE and then android put other var to node from it. I tryed to set it in android/app/build.gradle like
def envName = project.env.get("CUSTOMENV")
project.ext.react = [
    nodeExecutableAndArgs : ["CUSTOMENV=$envName node"],
]

but unsuccessfully it has caused crash

First of all, please change the title to reflect the issue
There is PR that hopefully resolve your issue but I am not sure if this library is being maintained anymore.
https://github.com/luggit/react-native-config/pull/284

Also, see #271 for the relevant issue, this is a duplicate.

👌 Closing in favor of #271, will follow up there.


[NDTensors] [BUG] setindex!(::DiagBlockSparseTensor, val, ::Block) fails

Hey there,
I am trying to use the block-sparse containers from NDTensors and it looks like an assignment to a single non-zero block of a DiagBlockSparseTensor container fails. A similar assignment statement on a BlockSparseTensor works as expected.
The corresponding method of getindex() does not seem to be affected.
Minimal runnable code
using ITensors: BlockSparseTensor, DiagBlockSparseTensor, Block

# BlockSparseTensor
bst = BlockSparseTensor(Float64, [Block(1, 1), Block(2, 2)], ([2, 3], [2, 3]))
@show bst[Block(1, 1)]
bst[Block(1, 1)] = ones(2, 2)
@show bst[Block(1, 1)]

# DiagBlockSparseTensor
dbst = DiagBlockSparseTensor(Float64, [Block(1, 1), Block(2, 2)], ([2, 3], [2, 3]))
@show dbst[Block(1, 1)]
dbst[Block(1, 1)] = ones(2, 2)
@show dbst[Block(1, 1)]

Output of minimal runnable code
bst[Block(1, 1)] = [0.0 0.0; 0.0 0.0]
bst[Block(1, 1)] = [1.0 1.0; 1.0 1.0]
dbst[Block(1, 1)] = [0.0 0.0; 0.0 0.0]
ERROR: LoadError: MethodError: no method matching blockindices(::DiagBlockSparseTensor{Float64, 2, Tuple{Vector{Int64}, Vector{Int64}}, NDTensors.DiagBlockSparse{Float64, Vector{Float64}, 2}}, ::Block{2})

Closest candidates are:
  blockindices(::BlockSparseTensor{ElT, N}, ::Any) where {ElT, N}
   @ NDTensors ~/.julia/packages/NDTensors/gdQSG/src/blocksparse/blocksparsetensor.jl:208

Stacktrace:
 [1] to_indices(T::DiagBlockSparseTensor{Float64, 2, Tuple{Vector{Int64}, Vector{Int64}}, NDTensors.DiagBlockSparse{Float64, Vector{Float64}, 2}}, b::Tuple{Block{2}})
   @ NDTensors ~/.julia/packages/NDTensors/gdQSG/src/blocksparse/blocksparsetensor.jl:318
 [2] setindex!(A::DiagBlockSparseTensor{Float64, 2, Tuple{Vector{Int64}, Vector{Int64}}, NDTensors.DiagBlockSparse{Float64, Vector{Float64}, 2}}, v::Matrix{Float64}, I::Block{2})
   @ Base ./abstractarray.jl:1399
 [3] top-level scope
   @ ~/Unsorted/dbst.jl:12
in expression starting at /home/igor/Unsorted/dbst.jl:12

Version information

Output from versioninfo():

julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa29* (2023-11-14 08:46 UTC)
Build Info:

    Note: This is an unofficial build, please report bugs to the project
    responsible for this build and not to the Julia project unless you can
    reproduce the issue using official builds available at https://julialang.org/downloads

Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 12 virtual cores

Output from using Pkg; Pkg.status("ITensors"):

julia> using Pkg; Pkg.status("ITensors")
⌅ [9136182c] ITensors v0.4.1

Hello @krivenko, I think there is some confusion with the name of this object. DiagBlockSparseTensor is not a Blocksparse tensor with only diagonal blocks. It actually refers to a BlockSparse tensor with only the diagonal elements stored.
Therefore, I do not believe that this is a bug.
I hope this clears up the confusion, it should still be optimal to simply use the BlockSparseTensor design for storing tensors that have only on-diagonal (fully stored) blocks and no off-diagonal blocks stored (i.e. off-diagonal blocks are zero)
We are in the midst of a redesign of this portion of the tensor system and the new system will allow users to more dynamically use different storage styles for different blocks of a blocked tensor. (for example a system where on diagonal blocks are treated as diagonal and off diagonal blocks are dense or not stored)
I am closing this issue but please let me know if you have other questions!


Execute custom Command on Carp Failover

I'd like to execute some custom Commands on a Carp Failover Event because our Cloud Provider needs us to call an API to Switch a VIP from one VM to an other.
So in the Firewall: Virtual IPs: Settings Dialog a I need a way to add some Code or similar with access to some Variables e.g. Current State (Master/Backup) and the VIP Address
Then I cloud call the API, whenever a VM (= Router) becomes Master and Switch the VIP to this VM.

Documented here https://docs.opnsense.org/development/backend/autorun.html


The max-width not works after install the lib

I'm using tailwind in my project and I decided to use the lib, but after I installed the lib and made the wrapper with the withMT function, the classes for max-width, (for example: max-md:hidden) stopped working. if i remove the wrapper and it works again.
stack used: NextJs13.4.8
lib version : @material-tailwind/react "^2.0.5"

I'm facing the same problem. Did you manage to solve, @damiaofranca?

@timcreative, hey guys! Can you check this issue, please?

@timcreative, hey guys! Can you check this issue, please?

Unfortunately not, as I was out of time to solve it I removed the lib and I'm using vanilla tailwind with flowbite lib.

I'm facing the same problem. Did you manage to solve, @damiaofranca?

Unfortunately not, as I was out of time to solve it I removed the lib and I'm using vanilla tailwind with flowbite lib.

@sajadevo any chance of you looking this, please?

Any update on this

Can confirm this is an issue, have the same with the wrapper

Hey!
I verify in many forums and documentation usind the MaterialTailwind and didn't find anything can help me.
But, I notice in a specific component to show when the window be in md, lg, xs...
You can use like that:
<p className="hidden lg:flex">
      Hello World! This is a long text that should be hidden on small.
</p>

So, the component will be  hidden when the window is smaller lg, and will be shown bigger.
I hope to helped you 😊🙌

In your tailwind.config file you can edit like this and add custom max:[] for brakepoint.
theme: {
   extend: {
     screens : {
       maxsm : {max : '640px'},
       maxmd : {max : '768px'},
       maxlg : {max : '1024px'},
       maxxl : {max : '1280px'},
       max2xl : {max : '1536px'},

     }
   },
 },


Can't use sample_weights both for fit or evaluate model

If I try to use a list of weights it gives a error:
AttributeError: 'list' object has no attribute 'shape'
If I try to use a 1D array, it gives the error:
ValueError: Found a sample_weight array with shape (17,) for an input with shape (180, 17). sample_weight cannot be broadcast.
model.evaluate(X, Y, batch_size=50, sample_weight=weights)
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!

[X] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[X] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

The errors are pretty obvious. In the first case you don't deliver a numpy array. In the last case, the shapes don't fit.
This is not a bug. Please ask a question on Stackoverflow or on the Keras Slack channel and close this issue.

This is a bug indeed, because the document says that a 2D array is for temporal weights, what not is my case, and I've already tried to broadcast the array in 2D and ir gives me another error.

Would you please, send me a invitation for Keras Slack channel ?
Thank you!

The correct parameter is class_weight, that accepts a dictionary of weights.
weights = dict({0:1, 1:2, 2:1, 3:5})
model.evaluate(X, Y, batch_size=50, class_weight=weights)


[Feature]  Refactor TextAnalyticsAsyncClient and SyncClient.

"There are almost twenty methods in this class that are used only once (these convert methods or map). It adds additional complexity to this class and makes it hard to maintain.
Functions should be pieces of code that are reused throughout the class."

Closed in #7050


Management of interests of different groups involved in rust-ipfs

So I feel there is a problem of differing interests that need to be accomodated. I'm not really sure what the best way to do this is. For the time being I demoted all owners to members until this is figured out, as I believe that open source is about collaboration, which is only possible if all interests are adequately represented.
I also added @4meta5 to the organization as a member, he'll be approving my pr's, as currently there are only two active contributors that are both working for the same company. It's ok for you to continue approving each others PR's.
Best,
David Craven

Welcome @4meta5, it's good to have you in the org. Personally speaking I want to work through these issues and I believe we are making progress towards that end. I agree that open source should be about collaboration and that this is possible here.

Closing this issue for now, immediate challanges have been or are being resolved


Would it be good to merge checkRunnerPodCompleted & checkRunnerPodForCompletion

Would it be good to merge checkRunnerPodCompleted & checkRunnerPodForCompletion
Originally posted by @ksatchit in https://github.com/litmuschaos/chaos-operator/pull/156/files

Is this open for grabs? @ksatchit @rahulchheda

It no longer exists. Resolved as part of refactoring


Simple idea for dealing with focus problem

Really cool project!
Simple idea with issue of losing focus -- we could check for an active element that has an id before each render and try to refocus after, basically giving people the option of adding unique ids to elements they want to keep focused between renders:
https://github.com/bsouthga/innerself/blob/maintain-focus/index.js#L22
Thoughts?

document.querySelector(':focus')  also returns the element that is currently "in focus" so it can be captured when calculating state instead of being actively tracked. Keeping track of previously focused elements requires a lot of work but I wouldn't think checking an element CSS state is required as far as DOM diffs are concerned.

Could be my lack of understanding, but I'm not sure totally I follow your point. My thinking was that each render() is going to blow away any elements within root, so to maintain focus after rendering, we will need to re-focus the last focused element.
As far as I can see, the only consistent way to uniquely identify an element between renders would be via a unique id. We could use querySelector(':focus') but my assumption was that that would be much worse performance wise.

While capturing the focused element is certainly possible within the reducer, there's currently no way to hook into the inner workings of the store's render function, after which we'd need to re-focus.
#13 looks like a simple work-around. Thanks for submitting it. Let me think about it for a bit and I'll get back to it tomorrow.

I submitted #15 as an alternative solution. In a way it's a more generalized #13. Rather than re-focusing inside of the render function, the store dispatches an event now. This moves the responsibility of re-focusing to the developer. While it's a bit more work for developers, it's also more low-level and powerful. It allows to properly restore selection and caret positions after render, too, with selectionStart and selectionEnd.
@bsouthga I'm curious to hear your thoughts on this approach!

Nice! I like the use of CustomElement -- this seems much more future proof.

This fix will solve the focus problem in text inputs. However if we put an audio or video tag in our app that would stop playing with any interaction that causes a re-render. It's not really a problem, but something that would be a scenario for which we can't really use this lib.

In that case, might be a better idea to have those elements outside of the innerself render area.
Additionally, assuming you are using this to make an app, it should be possible to create multiple roots as independent renders.
That being said, I'm not sure the current state implementation allows for multiple roots.

It does! But I think the trouble is that as soon as you use innerself for some kind of routing (e.g. a tabbed interface), you can't really attach multiple roots independently because you need to control when they show up.

Right. What I felt is for making something like a video player or audio player, innerself wouldn't be the ideal choice. There'll be a lot more hacking and workarounds than required. Simple text based applications should be the ideal candidates for this.

@wrick17 Absolutely. I wrote it with a specific use-case in mind and I'm first to admit that it's not a versatile multitool, like React :)

And that's what I like about this library. It does one thing, and does that amazingly. Appreciate it!!


Added How to install CMake for command line use in 06-cmake.md

As discussed in the lesson, I dared to do a pull request on how to configure CMake to run it from the command line in Mac.

Fantastic. Thank you so much!


Add multi-lingual support

Depending on interest, I would like to add multi-lingual support.

Complete messaging can now be defined in the configuration file as of v1.1, however dynamically detecting and implementing language is still possible should this issue gain interest. Closing for now.


directional margin and padding

We have the following directional css classes for corner rounding of elements:

.left-round
.right-round
.top-round
.bottom-round

Would it make sense to add similar helper classes for margins:

.left-margin
.right-margin
.top-margin
.bottom-margin

and for padding:

.left-padding
.right-padding
.top-padding
.bottom-padding

@leonardorafael I would be happy to implement if this makes sense for the project. Please let me know your thoughts.

Hi, I guess it's already exists here.
https://github.com/beercss/beercss/blob/main/docs/HELPERS.md#margins
https://github.com/beercss/beercss/blob/main/docs/HELPERS.md#paddings
I'm using these helpers like this:


Fix add chat button behaviour

Currently redirects to a page instead of click event

Was due to unspotted router.load()


CI: Fix warnings & deprecation messages in GitHub actions

What type of PR is this?
CI: Resolve deprecation & warning messages in workflows
What this PR does / why we need it:
Node16 has been out of support since September 2023. - more info in the post

Add GitHub actions for DependaBot - commit
Bump the steps where deprecation/warnings are shown in the job - commit

Which issue(s) this PR fixes:
Fixes: https://github.com/G-Research/gr-oss/issues/608

Testing results
Per the latest run of the workflow reported deprecation warnings are

actions/checkout@v3
actions/setup-node@v3

PASSED 🟢
Deploy the lambda using AWS SAM

In workflow below, mentioned steps are not shown as warnings/deprecations: https://github.com/gr-oss-devops/ghrunner-app/actions/runs/8267899074/job/22619490173

Thanks @ljubon! 🚀


pynYNAB isn't returning all subcategories??

I'm trying to use the ynab-email script (https://github.com/jtsmith2/ynab-email) that is written on top of pynYNAB to send an email of category balances each day, but the script keeps sending out 0's for all the current balances.   I've openned an issue with them, and they responding "It looks like for some reason pynYNAB isn't returning all of your subcategories."
Can you please review the issue over there (https://github.com/jtsmith2/ynab-email/issues/2) and see if you feel this is an issue with pynYNAB, or their script?
I've attempted adding in some debug lines, and it seems like pynYNAB isn't returning the current month's subcategories, but I haven't spent much time understanding the options of pynYNAB to confirm.

OK, cannot reproduce, we have to see what happens for your situation:
Next step would be digging in the JSON data that is received by pynYNAB before it's treated and incorporated in the collection client.budget.be_monthly_subcategory_budget_calculations and other collections.
checkout out latest 24c230b commit
Run this script adapted from the one in the ynab-email issue :
import logging
from pynYNAB.Client import nYnabClient
from pynYNAB.connection import nYnabConnection

ynabUser = #TYPE YOUR USERNAME HERE
ynabPassword = #TYPE YOUR PASSWORD HERE
ynabBudgetName = #TYPE YOUR BUDGET NAME HERE, MIGHT NOT BE 'My Budget'

print('Getting YNAB info')

LOG = logging.getLogger('pynYNAB.connection')
LOG.setLevel(logging.DEBUG)

connection = nYnabConnection(ynabUser, ynabPassword)
connection.init_session()
client = nYnabClient(nynabconnection=connection, budgetname=ynabBudgetName)

The script should spit out massive amount of data, some of it is sensitive, don't post it. I just need lines containing the string mcb/, to see if they contain the recent months

Struggling with getting the new commit.  Tried pip and setup.py and both are giving this error:

Conversion of long_description from markdown to reStructuredText failed, skipping.

Also, with the setup.py, I also get this error at the end:

Running ruamel.yaml-0.15.32/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0ZHj74/ruamel.yaml-0.15.32/egg-dist-tmp-ptErjF
sys.argv ['/tmp/easy_install-0ZHj74/ruamel.yaml-0.15.32/setup.py', '-q', 'bdist_egg', '--dist-dir', '/tmp/easy_install-0ZHj74/ruamel.yaml-0.15.32/egg-dist-tmp-ptErjF']
error: Setup script exited with error in ruamel.yaml setup command: Invalid environment marker: platform_python_implementation=="CPython" and python_version<="2.7"

Got installed by removing what I had and using multiple pip commands for dependencies and the setup.py.  But I'm getting 0 useful output:

scott@raspberrypi-pihole:~/ynab-email $ python debug.py
Getting YNAB info
No handlers could be found for logger "pynYNAB.connection"

scott@raspberrypi-pihole:~/ynab-email $ cat debug.py
import logging
from pynYNAB.Client import nYnabClient
from pynYNAB.connection import nYnabConnection

ynabUser = '##################'
ynabPassword = '#####################'
ynabBudgetName = '##############'

print('Getting YNAB info')

LOG = logging.getLogger('pynYNAB.connection')
LOG.setLevel(logging.DEBUG)

connection = nYnabConnection(ynabUser, ynabPassword)
connection.init_session()
client = nYnabClient(nynabconnection=connection, budgetname=ynabBudgetName)

Sorry, you need to add a logging.basicConfig() (dochere) line to add basic streamhandler to the logging facility before the logging works. Add it anywhere in the script, before the client = ... line

Please find the attached file for all lines matching "mcb/"
mcb.txt

OK I see only data for 2017-02 to 2017-04, it's really weird.
On Aug 27, 2017 05:37, "smseidl"<EMAIL_ADDRESS>wrote:

Please find the attached file for all lines matching "mcb/"
mcb.txt https://github.com/rienafairefr/pynYNAB/files/1254124/mcb.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rienafairefr/pynYNAB/issues/53#issuecomment-325175113,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuS9Wsy52pz5BNY2Sgm85ziunarZzOaks5scOSGgaJpZM4O16Ci
.


Ensure device fallback to lightning.qubit successfully carries through for 0 devices

Before submitting
Please complete the following checklist when submitting a PR:

[ ] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests directory!

[x] All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running make docs.

[x] Ensure that the test suite passes, by running make test.

[ ] Add a new entry to the .github/CHANGELOG.md file, summarizing the
change, and including a link back to the PR.

[x] Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

Context: To ensure lightning.gpu and lightning.qubit remain in lock-step for fallback functionality, we must provide better structure around the device validation checks. This PR updates the check and fallback support to always be within a try-except block.
Description of the Change: As above.
Benefits: Ensures fallback is always caught when required for 0 devices.
Possible Drawbacks:
Related GitHub Issues:

Hi @mlxd , nice work!

@mlxd, don't forget to fill in the changelog.


Accents

Adds dog, cat, and a terribly implemented monkey accents.
:cl: Pancake

add: Added accents for overly talkative animals.

oh yeah forgot to merge this oops


What does torchbear actually do?

So after reading all of the README I understand what it is (it's a fancy Lua shell, right?) and what component it uses but what does it actually do? Are there examples besides (also not sure what speakeasy is supposed to be):
#!/usr/bin/env speakeasy

print("hello from Torchbear")

?
Is there a getting started tutorial somewhere? How do I use all those fancy included libraries?
The README seems to contains a lot of answers but very little actually related to this project which is a shame.

I guess no explaination also counts as explanation. Thanks for taking care of this.


Rules: Port rules text to markdown

I think @Jezzamonn is taking care of this, but for reference here's the original text of the request.

So if somebody has some time, I have a small task that needs to be done.
I would like the rules page text converted to Markdown syntax.
You'll want to do it in a local document, but you can use the Edit/Preview on your User Page to test how the formatting will work.
You'll also need to download the images. If you have the VM setup, you can place them /www/public-static/other/rules/, and embed them as long as you use ///other/rules/blah.png as the URL.
There's a chance that the max-post-size might be too small, so if you're trying to do your editing entirely locally (without keeping a copy) it, that it might end up cropped. Not sure though.
...
Feel free to make any corrections. I may have gone a bit overboard with my bolding use on the original page.
Also embeds currently fill the full width, so you wont be able to do the right-align thing I did with the video.
As for the soundcloud embeds, figure out the URL to them (the playlist and the track), and paste them on a standalone line.
The site needs to be smart, and figure out embed code automagically.
Soundcloud is currently unsupported, but hey.

Yep, feel free to add me as an assignee. Shouldn't be too hard, there are some decent html-to-markdown converters so it's really just converting the embeds and such.

Current progress: https://gist.github.com/Jezzamonn/4be04550318eefaed85e5e97c3ac126b
I just need to add in the youtube and soundcloud links. I also removed the coloured asterisks. If we want a similar feature maybe we can use different symbols for that? e.g. *, †, ‡, §, ‖, ¶. I also like the idea of just linking to those sections. Maybe both.

Nice. The YouTube video link can be removed, as can the two ---'s right after it.
The only embeds that are actually important are the soundcloud ones. The playlist of samples, and the sample song.

Hm. I'm having trouble linking to a section because it seems all links are being eaten by the javascript engine. Each section has an id, but I can't link to it with the regular #id notation

Punctuation is removed, its all lowercase and spaces are replaced with -'s.
E.g. links to a section like # What is this, and that? get an id of #what-is-this-and-that.

Ah yes, sorry! #'s in links aren't going to work, and it's my fault. I'm use the # urls for something else (dialogs). It didn't cross my mind that we'd actually need them. Oops.

I've pasted the current version of this here:
https://ldjam.com/events/ludum-dare/rules

Awesome. I think it still reads pretty well without those links.
I was going to submit a PR with the images last night but my laptop is at a friend's place. But if you create a folder other/rules and download all the images from the old page there with the same names then they should all work

Groovy. I can do that quickly.

Okay, I'm actually going to call this issue done. I've since opened a new issue for updates and changes to the rules #609.


Possible to drag only along single axis and remove elasticity?

I've been using the package for a long time and I find it very useful. I was trying to implement a drag only feature which but I wanted to be able to drag only along a single axis ( ie either x or y ).
Is there a way to drag this only along a single axis and also turn off the elastic animation?

Hi, there is my PR to define resize in one direction only: https://github.com/STRML/react-grid-layout/pull/1102


add Charity Majors @mipsytipsy twitter

Thanks for the contribution!

No problem! I've been following Charity and she's a wealth of sre/observability/systems knowledge. Thanks for maintaining this list!


Point Nightscout Status users to Gluco Check

Gluco Check v1.0 is now generally available 🥳
How are we going to notify people currently using Nightscout Status (NS) to switch? Couple ideas:

[ ] When someone invokes NS, they receive an email informing them of Gluco Check.

That email should only be sent once, and when someone actively uses NS.
The email should only be sent if NS was invoked with a language that's already generally available (so just English for now)
Tracking this task here: https://github.com/nielsmaerten/nightscout-assistant/pull/116

[x] Add a message on the NS website (English users only)

Hi @ddamico , when you get the chance, can you try invoking "Nightscout Status" again? Shortly after the invocation, you should receive an email like the one below.
My plan is to automatically send this message to anyone invoking Nightscout Status (in English). You'll only receive the message once, and only after actually using Nightscout Status. So no unsolicited email. Do you agree with this approach?
PS: The copy of the email is just a quick-and-dirty placeholder. Can you give me a few suggestions on proper wording?


IDE is not working.

Hello,
Unable to upload the [contract.json] files, it doesn't interact with any of these (execute, query, migrate), wondering how to get contract address without storing and instantiating the .wasm file as we do in local node setup.

please retry, this might be an UI issue that has been fixed so far


fixed Tasks client library link

Oh also in the About Google Cloud Cloud Tasks section, there is one more place for the client library docs link.


restart does not work

I tried to click on restart, and the following HTTP request was done (I removed the content of the molly_csrf):
POST https://mollymawk.robur.coop/api/unikernel/restart/opam-mirror
{"name":"opam-mirror","molly_csrf":"DATA"}

The response:
404 Not Found
Content-type: text/html

And a red box came with "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data".

this is mollymawk at commit f16ceb894c7a149d681dbbc6710e279fd497c4d4 that is running.


East Asian support

The readme says, "Currently released model supports most of the languages except East Asian (Chinese Simplified, Traditional, Japanese, Korean, Thai)."
Is East Asian support on the roadmap?
This could be useful for ML.NET, where only a whitespace tokenizer has been open sourced. One potential issue is ML.NET has a preference for pure C# code.
The whitespace tokenization (or breaking on any specific character) is not suitable for East Asian languages: https://github.com/dotnet/machinelearning/issues/325

Yes, this is on our list. We don't have a concrete ETA yet.


[WIP] Refactoring of the makefile

I have refactored the makefile like I'm already using for other projects. It's prepared for cross-compiling Gitea for various platforms, you can see a list of the resulting binaries below. So what's next? Next steps will be the integration of public and templates into the binary and enabling Drone CI instead of Travis to directly provide publishing functionalities.
I have alredy opened this pull request to gather early feedback on my proposed changes.

gitea-master-darwin-10.6-386
gitea-master-darwin-10.6-amd64
gitea-master-linux-386
gitea-master-linux-amd64
gitea-master-linux-arm-5
gitea-master-linux-arm-6
gitea-master-linux-arm-7
gitea-master-linux-arm64
gitea-master-linux-mips64
gitea-master-linux-mips64le
gitea-master-windows-4.0-386.exe
gitea-master-windows-4.0-amd64.exe

Really solid Makefile. Just like all your Makefiles. 🎈

LGTM

Current coverage is 2.18% (diff: 0.00%)

Merging #69 into master will not change coverage

@@            master       #69   diff @@
========================================
  Files           31        31
  Lines         7508      7508
  Methods          0         0
  Messages         0         0
  Branches         0         0
========================================
  Hits           164       164
  Misses        7327      7327
  Partials        17        17

Powered by Codecov. Last update 4fdca02...845aa70

Wow !!!!!!! simply awesome @tboerger

LGTM

Rebased on latest master

LGTM

I will create a followup PR for templates and public bindata and than also for Drone.


Feature: Allow user to manage multiple address book

@W10-B3/developers Ready for review. Now, you can press open on the menu to view another addressbook.
Todo:

Good catch of exceptions
Add tests

I think we can merge this part in first.

@CS2103AUG2017-W10-B3/developers Ready to merge!


Error getting authToken

I've following this example but when I change the serverUrl the request fail

app.post('*', (req, res) => {
  let urlObj = url.parse(req.url, true).query;
  sdk.getAuthToken(urlObj.code).then(response => {
    console.log(response)
    const accessToken = response.access_token;
    // const refresh_token = response.refresh_token;
    res.send(JSON.stringify({ token: accessToken }));
  });
});

https://github.com/casdoor/casdoor-nodejs-react-example/blob/b2293f0895a0e2817601faeafd593543d1c59314/backend/server.js#L88-L96

With the default application it is working fine (https://door.casdoor.com), however when I configure my server configuration, it still gives me the same error.

I think that behind the configuration, it never makes the request to the server, and it is always doing it to the casdoor url, as I put in the image
This is my server.js configuration
const authCfg = {
  endpoint: 'https://cas-door-api-g5262uil2a-uc.a.run.app',
  clientId: '7f527a08271d88e3aa80',
  clientSecret: 'ac042d287d923799441ab820327e30510c194be7',
  certificate: cert,
  orgName: 'acium-team',
  appName: 'application_5tusgq',

} and this is the settings.js configuration
  //serverUrl: "https://door.casdoor.com",
  serverUrl: 'https://cas-door-api-g5262uil2a-uc.a.run.app',
  clientId: "7f527a08271d88e3aa80",
  organizationName: "acium-team",
  appName: "application_5tusgq",
  /*clientId: "014ae4bd048734ca2dea",
  organizationName: "casbin",
  appName: "app-casnode",*/
  redirectPath: "/callback", // in accordance with casdoor configuration
};

_Originally posted by @ErnestoCamilo in https://github.com/casdoor/casdoor-nodejs-sdk/issues/40#issuecomment-1805775934_

@ErnestoCamilo

The demo site: https://door.casdoor.com/ is just the open-source code in deployment mode
Look at the data in https://door.casdoor.com/

@ErnestoCamilo this issue has been fixed, use latest Casdoor: https://github.com/casbin/casdoor/commit/d3ed6c348bd69ad6649ef9c8c818aa13a386cb7a


Lodash modularized libs cause false positive for import/extensions

Config
'import/extensions': [2, 'never'],

Code
import template from 'lodash.template';

Result
✖   14:22  Unexpected use of file extension "template" for "lodash.template"  import/extensions

Not sure how this should be handled, but I definitely don't want to specify all the Lodash modules as extensions. Ideally, Lodash would have used proper slugged names like lodash-template...

// @jdalton

If you have a rule against extensions you could have a list of what those extensions are (deny list).

I think ideally we should resolve the imported file and ensure that its extension is not being used. Directories with dots should be fine.
It won't help in cases where the import can't be resolved, obviously. I think that's a substantial improvement.

@benmosher 👍

@jdalton The problem is that my rule is to deny all extensions, so listing them wouldn't work, but @benmosher's proposal sounds like a good solution.

Fun fact: the rule already does what I suggested, probably as of 1.8.0. Looks like this PR is pinned to 1.7.0.
Upgrading your import plugin version should fix it?

@benmosher I used 1.9.0.

Weird. Are you using a custom resolver? There was a critical issue with custom resolver loading in 1.9.0, just published the fix via 1.9.1 this morning.
I suspect you aren't, though. Will look deeper into this, there must be a bug with the resolution.

No custom resolver, but turns out I didn't have the dependency in node_modules...

🤘


Chatto Keyboard didn't display correctly

I have used the Chatto Messenger with IQKeyboardManager , but unfortunately the keyboard did open when i was try to send a message .
Is there any conflict with this library

@ahmadabudawod Tha's what I found on https://github.com/hackiftekhar/IQKeyboardManager#warning

If IQKeybaordManager conflicts with other third-party library, then it's developer responsibility to enable/disable IQKeyboardManager when presenting/dismissing third-party library UI. Third-party libraries are not responsible to handle IQKeyboardManager.

So, I can only suggest you to disable IQKeyboardManager for view controller that displays chat

I was remove IQKeybaordManager , but still the same problem . May the problem not from IQKeybaordManager. Still the same problem

After i made investigation about my code ,  i was discovered that i was comment the loadView from this class BaseChatViewController , to load view from storyboard .
Please how i can load my view from storyboard not from code like the example in Chatto?

@ahmadabudawod Can you point Chatto to latest commit in master branch instead of specific version in Podfile? Feature, that you're looking for was added in this PR: https://github.com/badoo/Chatto/pull/323

Thanks Anton , but unfortunately still the same error

@ahmadabudawod Any progress with this error?

Not sure if the same case for you but for me it was because I was not calling the super function in my override of viewWillAppear


[Tiered Caching] Bug fix for IndicesRequestCache StaleKey management

Description
This PR addresses 2 bugs
Bug 1
Indices Request Cache Stale Key Management introduced in https://github.com/opensearch-project/OpenSearch/pull/12625 had a bug that would have resulted in inaccurate staleKeysCount.
The solution I have come up with is to decrement the staleKeysCount if the readerCacheKeyId has entries in the map, if the map does not have an entry, that means it has been accounted for.
I have modified the logic to skip a notification with Removal Reason of REPLACED, since REPLACED is used when a value of cache is updated but not the key.
All other removal reasons are when a cache entry is deleted and hence is relevant to the staleness calculation.
What was the bug ?
The incrementStaleKeysCount method would remove the entries from the cleanupKeyToCountMap if the count of a readerCacheKeyId would be 0 and/or if the shardId had no entry. This way we would avoid the problem of double counting. This method would also increment the staleKeysCount accordingly.
But on receiving an onRemoval notification on a cache entry being deleted, we would look for the same entry (previously deleted) in the map and deduct the staleKeysCount and hence end up never deducting the staleKeysCount.
Why was this not caught in tests ?
There was a bug in this UT. We closed the reader to create stale keys, but the removal notification we sent was of the secondReader and hence we were able to look up the key for in the cleanupKeyToCountMap and hence deduct the staleKeysCount from 1 to 0.
Bug 2
This is related to race condition that could cause a reader to go stale/invalid AFTER caching an entry. The reader going stale would fail the accounting of this entry as stale and could live in the cache forever until evicted due to capacity.
The reader will go stale/invalid when its is closed, and it could be closed due to shard closing or refreshes closing the readers.
To address this, we catch the exception raised by any step after caching an entry and perform the steps to account for this entry to be stale.
Related Issues
Resolves https://github.com/opensearch-project/OpenSearch/issues/12540
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)
[ ] Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

❌ Gradle check result for 917df93: FAILURE
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Breaking due to https://github.com/opensearch-project/OpenSearch/issues/7396

@sgup432 ^^

❌ Gradle check result for 3a2e852: FAILURE
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Failed due to a known issue - https://github.com/opensearch-project/OpenSearch/issues/12408

❌ Gradle check result for 4c69187: FAILURE
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Failed due to -
testAsyncTranslogTrimTaskOnClosedIndex - Known Flaky - https://github.com/opensearch-project/OpenSearch/issues/11547
TermsAggregatorTests.testSimpleAggregation - Reopened Issue - https://github.com/opensearch-project/OpenSearch/issues/12685

Still see just references to eviction in javadoc instead it should be when any removal of the key happens except Replaced. You will need to merge your paragraphs.

Thanks for catching this, I have updated this

@kiranprakash154 backport failed. can you do a manual backport


Doesn't react to command or Alt + d when using WSL

The plugin works in non-WSL environment, but simply doesn't show any life-signs when using WSL.

Are you sure it still not working? Could you please show any step by step example?
How your dev environment looks like?
I tested it now and it seems to work fine.
My tests were done with WSL2 Ubuntu 20.04
And with VsCode Version: 1.52.1 (system setup)

It's been a while since i've created this issue. I don't have a setup currently to test it, but i can imagine it works now due to VSCode updates. I'll close this issue and when i bump into it again, i'll open it again or something =)
Thanks for getting back to it.


sound_play_node is died

[soundplay_node-5] process has died [pid 125213, exit code 1, cmd /opt/ros/noetic/lib/sound_play/soundplay_node.py
__name:=soundplay_node __log:=/home/wang/.ros/log/524c6e1e-2718-11ee-8ff8-b51692687720/soundplay_node-5.log].
log file: /home/wang/.ros/log/524c6e1e-2718-11ee-8ff8-b51692687720/soundplay_node-5*.log

When I start the marimbabot_audio, it said the sound_play_node is dead.

When I start the marimbabot_audio, it said the sound_play_node is dead.

@yunlong-wang-cn  What is the branch? Is starting the marimbabot.launch of marimbabot_audio enough to reproduce the issue?

Is there any previous output?

@Flova  It said some wrong with gstreamer.

When I start the marimbabot_audio, it said the sound_play_node is dead.

@yunlong-wang-cn Which branch? Is starting the marimbabot.launch of marimbabot_audio enough to reproduce the issue?

main branch. Actually, I thinks just launch the marimbabot_audio/marimbabot.launch is enough to reproduce the problem.

I think this is the problem with the sound_play node, this is the full message:
started roslaunch server http://wang-Y7000P:34601/
SUMMARY
PARAMETERS

/rosdistro: noetic
/rosversion: 1.16.0

NODES
/
soundplay_node (sound_play/soundplay_node.py)
auto-starting new master
process[master]: started with pid [37764]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to a20c060c-31ff-11ee-9c0a-dfdc9ded8337
process[rosout-1]: started with pid [37785]
started core service [/rosout]
process[soundplay_node-2]: started with pid [37788]

Error opening pygst. Is gstreamer installed?

[soundplay_node-2] process has died [pid 37788, exit code 1, cmd /opt/ros/noetic/lib/sound_play/soundplay_node.py __name:=soundplay_node __log:=/home/wang/.ros/log/a20c060c-31ff-11ee-9c0a-dfdc9ded8337/soundplay_node-2.log].
log file: /home/wang/.ros/log/a20c060c-31ff-11ee-9c0a-dfdc9ded8337/soundplay_node-2*.log

@scaredycode  I think you working on the sound_play node, right? please take a look.

@scaredycode  I think you working on the sound_play node, right? please take a look.

I have worked with it successfully some weeks prior but not recently. I will look into it and see if I can reproduce the error 👍

when I launch: roslaunch sound_play soundplay_node.py, the same error occurs. Perhaps I have something to install or some configuration of the environment.

roslaunch sound_play soundplay_node.py

That is the wrong command.
The right (and working ) one would be roslaunch sound_play soundplay_node.launch

When I start the marimbabot_audio, it said the sound_play_node is dead.

@yunlong-wang-cn Which branch? Is starting the marimbabot.launch of marimbabot_audio enough to reproduce the issue?

@Juphex main branch. Actually, I thinks just launch the marimbabot_audio/marimbabot.launch is enough to reproduce the problem.

I cannot reproduce this. When I run roslaunch marimbabot_audio marimbabot.launch I get :
[ERROR] [1692261519.384082798]: gstreamer: Could not open audio device for recording.
but this is probably because I have not recording device (set up).
rosnode list also shows that the sound_play node runs.
Furthermore when I run rostopic pub /robotsound sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'Hello its me', arg2: ''}"  everything is fine. Sound is output as expected.
Maybe you check the rosdeps. @yunlong-wang-cn


update description of translation in readme.md

(Thanks for sending a pull request! Please fill in the following content to let us know better about this change.)
Types of changes
Please put an x in the box that applies

[ ] Bugfix
[ ] New feature
[ ] Refactoring
[ ] Breaking change (any change that would cause existing functionality to not work as expected)
[x] Documentation Update
[ ] Other (please describe)

Description
移除readme.md對於tx的描述(該套件已棄用)，將主要的翻譯方式改為輸入python manage.py compilemessages指令
Steps to Test This Pull Request
python manage.py compilemessages

Expected behavior
將/src/locale/{各國語系}/LC_MESSAGES/django.po編譯成同路徑的django.mo(django i18n執行會讀的檔案)
Related Issue
https://github.com/pycontw/pycon.tw/issues/761

Codecov Report

Merging #808 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #808   +/-   ##
=======================================
  Coverage   76.13%   76.13%
=======================================
  Files          70       70
  Lines        2686     2686
=======================================
  Hits         2045     2045
  Misses        641      641

Continue to review full report at Codecov.

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


REF: Use head_object for .info

This should be more efficient for .info calls.
The response dict is almost the same. They use ContentLength instead
of Size and don't include the key in the response.
One question I had was on exception handling. To get the test suite to
pass, I had to catch botocore's ParamvalidationError. Otherwise things
like s3.open('x', 'rb') failed with a ParamvalidationError, since 'x'
isn't a valid bucket name, while the tests were expecting an IOError or
OSError. Would be curious to hear what you think on this.
This change was necessary to make the pandas test-suite pass. We had issues in the
past where a users's bucket allowed them to list some, but not all the items in a bucket.
The old implementation for .info did an ls on the bucket, and then filtered down to
the single file matching the key.
With this the pandas test-suite pretty much passes.
My changes are
here
Just a couple tests to fix up that were expecting different error
messages.
http://boto3.readthedocs.org/en/latest/reference/services/s3.html#S3.Client.head_object

Does head_object return other info like access times?

Just last modified
In [5]: fs.s3.head_object(Bucket='pandas-test', Key='tips.csv')
Out[5]:
{'AcceptRanges': 'bytes',
 'ContentLength': 7943,
 'ContentType': 'application/octet-stream',
 'ETag': '"b8e189917e1e12e5e34247f90db7834f"',
 'LastModified': datetime.datetime(2015, 9, 12, 20, 19, 12, tzinfo=tzutc()),
 'Metadata': {},
 'ResponseMetadata': {'HTTPStatusCode': 200,
  'HostId': 'tR9J0P0Si+OHpRAFrENSDBA5Cos8pFC+bjJFQHkz4ESKqEc2x0chU7zNw93Rvo62cWBAfCYtLUs=',
  'RequestId': 'B12B2C8015E611AC'}}

On the ParamValidationError, actually we should have caught that before passing to boto3, because the path you give in that open() doesn't include both bucket and key.

On head_object, you are probably right that it is faster when fetching details for a single key (i.e., info), but at the moment we get the info for many keys at once with _ls and cache, and info picks from the cache.
Your suggestion is connected with not listing all entries when there are over 1000?
One issue I have yet to check, is what happens in buckets where there is a mixture of accessible and inaccessible keys.

One issue I have yet to check, is what happens in buckets where there is a mixture of accessible and inaccessible keys

This is the issue I was working around for pandas, this test specifically. It failed before when .info() on that file triggered an _ls, so boto raised a permissions error.
I see your concern about performance. Does adding a parameter to .info controlling whether it should do a full ls and cache make sense? I'm not sure of a way to make list_objects not raise when it encounters a Key the current user doesn't have access to, so I think pandas does need a way to selectively get info on an object.
For the param validation error, are you saying that
fs = S3FileSystem()
fs.info('foo')

should raise an IOError('File not found'), or something like a ValueError('Unable to parse bucket')?

Yes, I suppose info() should give FileNotFound when the key isn't given or the bucket doesn't exist or the bucket name is invalid.
How did you set up s3://cant_get_it/tips.csv to cause the permissions error?
I agree that we can cause info() to first look in the file cache, and then do head_object() if not found; but I'm still looking for a listing that would return all accessible keys.

@martindurant not sure who owns that bucket. I don't seem to have access :<

I'll look tonight or this weekend on if there's a better way around this.
FWIW here's the original issue in pandas: https://github.com/pydata/pandas/pull/10604

I haven't found anything in boto3 to control the exception handling in s3.list_objects. It seems like as soon as you hit a key you don't have permission on, it'll raise an error.
Could we break these two use-cases into two methods?

S3FileSystem.info: the current method that lists and caches everything.
S3File.?: the method in this PR that calls head_object on a single key?

Yes, OK, that sounds totally reasonable.

Would this do?
https://github.com/dask/s3fs/commit/48bbc19c6cfd665e8bbef53192b332257ebeb31b

Would this do?  48bbc19

That's what I was going to suggest. To be honest, I thought I was working on S3File.info, and not S3FileSystem.info so I my first few messages may not make any sense :smile:.
I can repurpose this PR to use it, or you can. Whatever you think is easier (sorry I've been slow to respond this week).
There's just a couple test failures with that patch,
    def test_bad_open(s3):
        with pytest.raises(IOError):
>           s3.open('')

    def test_errors(s3):
        with pytest.raises((IOError, OSError)):
            s3.open(test_bucket_name+'/tmp/test/shfoshf', 'rb')

        ## This is fine, no need for interleving directories on S3
        #with pytest.raises((IOError, OSError)):
        #    s3.touch('tmp/test/shfoshf/x')

        with pytest.raises((IOError, OSError)):
            s3.rm(test_bucket_name+'/tmp/test/shfoshf/x')

        with pytest.raises((IOError, OSError)):
            s3.mv(test_bucket_name+'/tmp/test/shfoshf/x', 'tmp/test/shfoshf/y')

        #with pytest.raises((IOError, OSError)):
        #    s3.open('x', 'wb')

        with pytest.raises((IOError, OSError)):
>           s3.open('x', 'rb')

Those raise ParamValidationError instead. I think you said we should be catching that earlier?

I appreciate any and all time you can spend on this!
I have reformed this into PR #27 - OK?


Wallpaper switcher

The next logical step would be to implement an automatic wallpaper switcher for intervals set by the user, and separate controls for the lock screen and home screen (different folders and control options).
Thanks.

It's added now in v1.29_beta, it's still in alpha, so open any new issue for bug reports.


Check type of axis in initializer of concat function

I fixed concat function to check its argument.

LGTM!


Removed H1 title in the plugin file

Change Description
Removed H1 title in the markdown file as front matter metadata already exists.

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

Documentation Formatting and Syntax

[x] Syntax Deletion

The frontmatter should probably be manually defined because the name_of_plugin as a signature would likely be better than an auto-formatted variant such as Name Of Plugin. Additionally, it would need to be applied to all plugins, not just this one.

The frontmatter should probably be manually defined because the name_of_plugin as a signature would likely be better than an auto-formatted variant such as Name Of Plugin. Additionally, this fix would probably need to be applied to all plugins, not just this one.

Thanks. Yes, we have to do it for all the plugin files.

Closing this PR as it the changes here are addressed in PR# 8842.


Elixir SDK

A Sequin library for Elixir developers

Elixir SDK 0.1.0 → https://github.com/sequinstream/sequin-elixir


Document all the sniffs

Is your feature request related to a problem?
There is no documentation for the sniffs. We can only reason about a sniff from a class name. Neither Wiki pages represents the destiny of the sniffs nor Sniff interface has a method like getDescription() or getDefinition() with code samples before/after.
Describe the solution you'd like
Add new method to the interface or maintain the Wiki.
Additional context (optional)

[ ] I intend to create a pull request to implement this feature.

@javaDeveloperKid No clue what you are trying to suggest here, but your basic premise seems ill-informed.
The vast majority of PHPCS native sniffs have documentation and you can access the docs applicable to any standard via phpcs --generator=Text --standard=....
There's a discussion going in #317 to see about also making this information accessible via a web interface or via the wiki.

FYI: While it doesn't directly address this issue, PR #447 is a proposal to improve the help screens, including improved information on the help screen about finding documentation/rules for your ruleset.
Reviews and testing of that PR would be appreciated.


Fix issue on iteration of actions during the raise of events in GameEventBase

Seems like a pretty straightforward bug fix!

Whoops, that's a rather embarrassing but on my end ^^ Thanks for fixing it! :)


Slate feature is buried in Examples package.

Describe the problem
Slate feature is cool, but the documentation doesn't lead you to any prefab to use. After some investigation it turns out that the prefab exists inside the Examples. Core features that are surfaced in the README should not be inside the Examples package.
Describe the solution you'd like
Move the Slate out of examples and into the core package. Update the Slate docs to link to the prefab in the source to get started with.

@cre8ivepark @julenka do you have any background here on why certain types of prefabs were put directly into the examples folder, instead of outside of the examples folder?

No, I do not know. Yoon would be the right person to answer this.

Merged

Yay! Thanks for surfacing this super useful feature!


Fix: Incorrect function name in bundleMDX's options

Previously, the function name in bundleMDX was incorrectly labeled as 'xdmOptions' instead of 'mdxOptions'.
This PR addresses the issue by modifying the function name to 'mdxOptions', ensuring accurate naming and improving code clarity.

xdm was the previous mdx 2 staging release name so it was correct. I have no plans on updating it as the v2 release will supersede it. Check it out - https://github.com/timlrx/tailwind-nextjs-starter-blog/pull/658


Help Needed from an Oracle DBA

We need assistance from an Oracle DBA.  After the initial update some of the vendor/product pairs may have an ecosystem set and some of the same pairs may have an ecosystem of null:

product
vendor
version
ecosystem

log4j
log4j
1.0
java

log4j
log4j
1.1
java

log4j
log4j
1.2
[null]

The above update should copy the java ecosystem from the log4j entry that has an ecosystem and update the null entry for log4j.

Hi Jeremy,
can you please give the exact Oracle DB version and the exact error message that is given back?
Especially the ORA-????? error number is very important to help you.

So that would be part of the problem - I don't actually have an oracle database setup myself - all of the Oracle PL/SQL was contributed by others. But the error was reported privately.
What you can try is to use aliases for the tables, especially cpeentry. Oracle is sometimes picky with the table names.

@uweplonus You're right... I just found online in Oracle's documentation that

The scope of expressions in the ON clause includes the current tables and any tables in outer query blocks to the current SELECT

So using the ON clause for the additional constraint is indeed supported.

@jeremylong: Just tested your statement on an Oracle 18.x and the statement is executing without any issues. Not sure what your exact problem might be here.

@GFriedrich thank you for validating.


Cannot build Cake locally in VS2017 without first running Cake build script

What You Are Seeing?
 (See Gist, linked below, for full output.)

Restoring NuGet packages...
Unable to resolve 'Microsoft.TargetingPack.NETFramework.v4.5 (>= 1.0.1)' for '.NETFramework,Version=v4.5'.
Unable to resolve 'Microsoft.TargetingPack.NETFramework.v4.5 (>= 1.0.1)' for '.NETFramework,Version=v4.5 (centos.7-x64)'.
Unable to resolve 'Microsoft.TargetingPack.NETFramework.v4.5 (>= 1.0.1)' for '.NETFramework,Version=v4.5 (debian.8-x64)'.
…

What is Expected?
Any necessary prerequisite steps should be handled when building the project in VS2017.
A simpler approach might be to have some docs on building/testing things locally that mention the build script requirement in the README docs.
What version of Cake are you using?
As of commit #c9561feb
Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on?  Windows? Linux? Mac?
Windows
Are you running on a CI Server?  If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)

Clone Cake Git repo to computer
Load Solution in VS2017
Build > Build Solution (default shortcut: Ctrl+Shift+B)

Or, if you have built the repo via Cake already, run git clean -d --force to nuke untracked files first.
Output Log
https://gist.github.com/patridge/1ed25be0869a7acde8cdba82f4dc9cec

Think we could probably sort this by adding a nuget.config to repo. It's likely because it doesn't find the MyGet feeds.

Hmm, the targeting packs should only be required when building on Mono (imported in Shared.msbuild). We're using the .NET4.6.2 targeting packs as well. Really strange.

@patriksvensson but if .NET 4.6.2 Targeting pack isn't ticked in VS 2017 installer. It would exlplain behaviour.

Targeting pack is removed in PR #1725

@patridge is this still an issue?

@devlead I grabbed the latest from develop, and it built just fine from a clean clone. I'll close accordingly.


Processing IMDB Data Error

Is there already an issue for your problem?

[X] I have checked older issues, open and closed

Bug Description
Successfully signed in to IMDB
Processing Trakt Data
Processing Trakt Data Complete
Processing IMDB Data
--- ERROR ---
An error occurred while running the script.
Please submit the error to GitHub with the following information:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/IMDBTraktSyncer/IMDBTraktSyncer.py", line 128, in main
imdb_watchlist, imdb_ratings, imdb_reviews, errors_found_getting_imdb_reviews = imdbData.getImdbData(imdb_username, imdb_password, driver, directory, wait)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/IMDBTraktSyncer/imdbData.py", line 135, in getImdbData
raise ValueError(f"Required columns missing from CSV file: {', '.join(missing_columns)}")
ValueError: Required columns missing from CSV file: Created
Environment
OS: Mac
Pip method
Screenshots
No response

File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/IMDBTraktSyncer/imdbData.py", line 135, in getImdbData
raise ValueError(f"Required columns missing from CSV file: {', '.join(missing_columns)}")
ValueError: Required columns missing from CSV file: Created

Looks like the CSV watchlist file the script is trying to read is not in the correct format.
When you run the script copy the path to the folder where IMDBTraktSyncer is installed. Go to that folder in file explorer and see if there are any existing .csv files there and delete them. Then try running the script again. This might be causing by running the script multiple times in parallel or the script terminating prematurely during CSV cleanup. The script might be trying to load the ratings csv file instead of the watchlist csv file for example. It's important to only have the script running as one instance. If this was the issue in your case, I can look into adding a check before running to cleanup any old CSV files if they exist to prevent issues like this.
If there are no CSV files in the folder let me know and I can look into this further. You can help troubleshoot by going to your IMDB exports page here https://www.imdb.com/exports/ and downloading your most recent watchlist and ratings files and attach them here.


feat(progressbar): respond to changes in max dynamically

We have a use case where the max of the progress bar should change dynamically so this pull request enables that behaviour.

Looks good! :+1:
Only thing I'd say is that the docs could use an eye symbol next to max to indicate it is watched.

This looks good - just make sure it is up to date with master.

@coojam can you please rebase with master?

OK - I believe I have rebased with master.

Whoops - wrong button.

We currently support optional watching of max, so this PR is now unnecessary.


Hub calls handlers subscribed to a base class when an instance from derived class is published

Not sure if it's an issue. Suppose I have 2 classes which I use to communicate: base and derived. Listener that is subscribed to the base class with a handler method gets called when an instance of the derived class is published.

Been a while, so I didn't remember all the details, but a contributor added this specifically in https://github.com/upta/pubsub/pull/2
This was so you could have more generic, catch-all event handlers

Sorry. Didn't notice that. Thanks for a great library!


infer column nullability on joins

Which issue does this PR close?

Closes https://github.com/apache/arrow-datafusion/issues/5994 .
Fixes partially https://github.com/apache/arrow-datafusion/issues/5747
Rationale for this change
Fix bugs reported in https://github.com/apache/arrow-datafusion/issues/5994

What changes are included in this PR?

Are these changes tested?
Yes

Are there any user-facing changes?
No

@alamb this is PR instead accidentally rebased https://github.com/apache/arrow-datafusion/pull/6015

@alamb would you mind to reapprove the PR, the previous one already approved has been rebased accidentally


Fix network_plugin always undefined

When setting cloud_provider to azure, the network_plugin value is always undefined. it appears that this should be the kube_network_plugin name instead.
This breaks  a check to ensure it is not 'calico'. Also, this removes a when clause because the kube_network_plugin should be defined.
There are other issues with the Azure deployment, but this felt important to address separately.

cla signed

Please rebase and resolve conflicts then i will approve this

Fixed by #2801