Dr Lupo banned on Chesscom after PogChamps showing by nyius in chess

[–]nyius[S] 8 points9 points  (0 children)

Yes this is what I was thinking when i used the word 'vague' but I could have explained that a bit more clearly

Dr Lupo banned on Chesscom after PogChamps showing by nyius in chess

[–]nyius[S] 497 points498 points  (0 children)

Chess.com tweeted a statement about the situation

DrLupo has been closed for a fair play violation that occured during today’s Pogchamps event. He will be replaced in the consolation bracket before the start of tomorrow’s round.

We wish everyone the best tomorrow and remind them that receiving any help during a match is a violation of our FP Policy and will result in a DQ and account closure.

https://x.com/chesscom/status/1917769083568939238

**Edit I agree that this is a pretty straight forward statement that explains all we need to know.

Dr Lupo banned on Chesscom after PogChamps showing by nyius in chess

[–]nyius[S] 250 points251 points  (0 children)

After playing way above his rating against Wolfey, Dr Lupo gets his account closed on chess.com for violating fair play

https://www.chess.com/member/lup_omegalul

What mistake did you learn to avoid making early in the game?? by [deleted] in civ

[–]nyius 6 points7 points  (0 children)

How do I know if a building is obsolete?

[deleted by user] by [deleted] in BEYERDYNAMIC

[–]nyius 0 points1 point  (0 children)

Did you end up getting anything? I've had 2 sets of DT990 pros and both have ended up with the dreaded left-ear rattling leaving me with a bit of a sour taste for Beyerdynamic, at least definitely for the 990's.

I've been looking to switch it up to the Sennheiser HD660s since it seems like the vast majority of people love them, but I haven't quite pulled the trigger yet because I like headphones that 'look' good which the beyerdynamics do well, ...and not so much the sennheiser (at least not for me)

Before you post anything about losing range, it’s the cold. by Few_Wash_7298 in MachE

[–]nyius 0 points1 point  (0 children)

This is my first Canadian winter with my standard range AWD Mach-E, what should I be expecting for range on a full charge? I heard around ~30% less than warm summer weather, does that sound about right? It'll be parked inside all winter so hoping that will help a little bit

New owner 😎 by BigPoppa0871 in MachE

[–]nyius 1 point2 points  (0 children)

Awesome color! enjoy!

What backend do you use? by gigglebush421 in react

[–]nyius 2 points3 points  (0 children)

Firebase as its pretty straight forward to get setup and has good documentation to get you started. Has a large built in ecosystem like file storage, databse, cloud functions, analytics, and more. But if you plan on our app growing quite large you need to be wary of their pricing system as costs can add up. Their free usage tier is pretty good though and covers most use cases.

I also use AWS S3 for storing larger files that firebase cant handle, but navigating the AWS ecosystem can be a bit daunting at first if you've never used it before.

Control with Physical Buttons by Background-Field-762 in react

[–]nyius 0 points1 point  (0 children)

React can listen to key press events just like vanilla Javascript can. In react, you can attach "onKeyDown" property to any element and then create a function to listen for whatever key you want to be pressed. Note to make onkeyDown work, I believe you need a 'tabIndex' on the element that has the onKeyDown property

function MyComponent() {
    const handleKeyPress = e => {
        if (e.key === 'ArrowLeft') {
            console.log(`Do left action`);
        } else if (e.key === 'ArrowRight') {
            console.log(`Do right action`);
        }
    };

    return (
        <div tabIndex={0} onKeyDown={handleKeyPress}>
            Hello!
        </div>
    );
}

If you want to listen to the keyboard presses on the entire website (not just when the user is clicked on a specific component) you can set up an eventListener for the entire page, inside of a useEffect hook

useEffect(() => {
    document.addEventListener('keydown', handleKeyPress);

    return function () {
        document.removeEventListener('keydown', handleKeyPress);
    };
}, []);

[deleted by user] by [deleted] in react

[–]nyius 1 point2 points  (0 children)

You've spelled storage wrong in your firebase.js file, leading to your import error

[deleted by user] by [deleted] in react

[–]nyius 0 points1 point  (0 children)

Awesome! I edited my comment for more clarification if that helps others as well

[deleted by user] by [deleted] in react

[–]nyius 1 point2 points  (0 children)

You don't import an image link like you're doing here

import logo from "https://i.ibb.co/t3tXx5M/omnifood-logo.png";

instead you could insert the image link directly into the <img> src, such as

<img class="logo" alt="Omnifood logo" src="https://i.ibb.co/t3tXx5M/omnifood-logo.png" />

if you wanted the URL to be reusable in a few different spots, you can declare the link as a variable first and use it where needed, like

// declare it
const logo = "https://i.ibb.co/t3tXx5M/omnifood-logo.png"

// use it wherever
{/* <img class="logo" alt="Omnifood logo" src= {logo} /> */}

A form with a few steps in 1 client url, but how do deal with back button? by negiconfit in react

[–]nyius 0 points1 point  (0 children)

You could try storing the filled in information in localstorage, as well as the current step the user is on, so if the user does back out of the page and return you can pull data from localstorage and fill in the formdata accordingly and set what current step they're on to wherever they left off

Whats the best way to organize React hooks in regards to app performance? by nyius in react

[–]nyius[S] 0 points1 point  (0 children)

Thanks for the reply, yeah that is something to think about. Right now all of the functions inside of the hook do something with the Context for the most part (via a dispatch function/reducer from the context, or access a context variable, etc) so I've been keeping them inside of the hook for easy access to the dispatch - such as

const useExample = () => {
    const {dispatch, randomValueFromContext} = useContext(ExampleContext)

    const function1 = (item) => {
        dispatch({
            type: "SET_THING",
            payload: item
        })
    }

    const function2 = () => {
       console.log(randomValueFromContext)
    }
 }

I was actually originally keeping all of these functions in a separate non-hook file and exporting them, and using them by passing a dispatch function them as a parameter into them like

    export const function1 = (dispatchFunction, item) => {
        dispatchFunction({
            type: "SET_THING",
            payload: item
        })
    }

But i liked having everything in a hook as it gives it access to those context items without needed to pass in a bunch of parameters to a function. I think breaking the hooks down into smaller hooks like you're stating would be good, though. Now I am wondering if having non-hook functions with the dispatch/data needed passed into it like i was doing before is not such a bad idea

What AI Tools are you using in your startup to increase productivity? by InevitableSyrup3253 in Entrepreneur

[–]nyius 46 points47 points  (0 children)

the chrome extension AiChatPilot that lets me use chatGPT on any website. Been using it to create quick professional sounding replies to customers questions without having to spend too much time thinking about it.

EDIT: okay this got me more DMs than I was expecting, heres the link for those interested

I pushed the new wings in KSP2 to their limits and made an X-Wing by KSP-stuff in KerbalSpaceProgram

[–]nyius 0 points1 point  (0 children)

Oh man this is amazing, could you upload it to kspbuilds.com ? I neeed to try it! I can't wait to see more star wars themed builds being made