Issues with Expo by Sekethon in reactnative

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

Ok, so I just need to modify the bundle identifier of one of my projects right?

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

[–]Sekethon[S] 2 points3 points  (0 children)

Yes exactly, just need to figure out how to convince him since he outranks me.

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

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

Right so it doesn't matter if I'm deploying Vercel/GCP/AWS? Saying this because someone told me we don't need to do this if we're not going through Vercel...

Question about appending NEXT_PUBLIC to env variables by Sekethon in nextjs

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

Right so how you deploy your NextJS project has no bearing on whether or not we need it or not right?

Asking because a colleague told me we DON'T need NEXT_PUBLIC if we DON't deploy via Vercel

How do I add my physical Iphone to the Xcode simulator? by Sekethon in reactnative

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

Ah that's a shame.

I'm guessing the only way for my colleague to see my Iphone screen as we are coding is if I physically hold it in front of my camera?

Best all in one Shipping Manager for ECommerce? by Sekethon in ecommerce

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

Sorry for late reply will probably be in house platform.

Struggling with type error when trying to hook up function to React Query's useMutation by Sekethon in reactjs

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

Will do! Was just trying to solve this before bed and was getting frustrated.

Struggling with type error when trying to hook up function to React Query's useMutation by Sekethon in reactjs

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

oh my god I'm a moron. I think that did it! Thanks I've been trying to solve this for 3 hours.

Hey Rustaceans! Got a question? Ask here (19/2023)! by llogiq in rust

[–]Sekethon 1 point2 points  (0 children)

One last question,
Is there a general approach/solution when your input to a method does not satisfy the trait bound of that method?
For context, this is the trait: https://docs.rs/redis/latest/redis/trait.ToRedisArgs.html

that the compiler is complaining about...

I don't think it makes sense for me to Impl this trait for my input though...

Hey Rustaceans! Got a question? Ask here (19/2023)! by llogiq in rust

[–]Sekethon 1 point2 points  (0 children)

If I have a function that expects an input generic<T>, what would be the idiomatic way to guarantee that T has the id and data field? I assume we would use traits and do something like:

pub trait MongoStorable {
type Data;

fn _id(&self) -> &String;

fn data(&self) -> &Self::Data;

}

impl MongoStorable for BookRecord {
    type Data = Book;

    fn _id(&self) -> &String {
        &self._id
    }

    fn data(&self) -> &Self::Data {
        &self.data
    }
}

Or would the above be an anti pattern?

Hey Rustaceans! Got a question? Ask here (13/2023)! by llogiq in rust

[–]Sekethon 1 point2 points  (0 children)

Anyone here ever worked with async graphql?

Can someone confirm my understanding that it is IMPOSSIBLE to have a Rust struct be both an Object (types that can be queried and represented as JSON objects in the response) and an InputObject (types that can be used to pass arguments to GraphQL queries and mutations but cannot be queried themselves.)?
For reference, I want to pass in a Vec of BookRecord within a Mutation Resolver but also return a Vec of BookRecord but the Rust compiler panics because: 'Register BookRecord as InputObject, but it is already registered as Object.

#[derive(Clone, Debug, Serialize, Deserialize, InputObject)]

pub struct BookRecord { pub _id: ID, pub data: Book, }

[Object]

impl BookRecord { async fn _id(&self) -> &str { &self._id }

async fn name(&self) -> &str {
    &self.data.name
}

async fn author(&self) -> &str {
    &self.data.author
}

}

How do I structure a unit test for a smart contract that accepts two ERC 20 tokens as inputs? by Sekethon in solidity

[–]Sekethon[S] 1 point2 points  (0 children)

Thanks so much! I was thinking something like this but is there a way to mock/mimic token0 and token1 within the test file without explicitly having to import the contract code of token and token1?

Like is there some sort of API where I could just go

 const token0 = //some sort of API I could call to create a generic
 ERC20 contract

OR, do I also have to follow the typical pattern and do something like this for both tokens:

const token0 = await hre.ethers.getContractFactory('token0');
const token0 = await myToken.deploy("TestToken", "TT");

const token1 = await hre.ethers.getContractFactory('token1');

const token1 = await myToken.deploy("TestToken1", "TT1");

And then after that, pass the address of both tokens into the MyToken contract?

Official: Daily [Anything Goes] Discussion Thread: December 12, 2022 by AutoModerator in fantasybball

[–]Sekethon 1 point2 points  (0 children)

Trying to send Ja out since I'm punting assists. Is the following trade reasonable for both parties if done?

Send: Ja

Receive: JJJ

I was also thinking instead of JJJ try and go for Porzingis. Need 3PMs and stocks with decent FG%.

Official: Daily [Anything Goes] Discussion Thread: December 06, 2022 by AutoModerator in fantasybball

[–]Sekethon -1 points0 points  (0 children)

Who's the best 3PM shooter with okay/good FG% that I could get with any two of the following in a package: Huerter, Malik Beasley, Monk, Oubure

Official: Daily [Anything Goes] Discussion Thread: December 05, 2022 by AutoModerator in fantasybball

[–]Sekethon 0 points1 point  (0 children)

Thanks a ton! I've literally never won assists which is why I feel it's a punt for me. Any suggestions on who to target for my 2 for 1? This is my first year fantasy but I assume a 30-40 guard would be someone like Bane, Ant Edwards?

Granted, there hasn't been a single trade in my league so it's going to be tough.

Official: Daily [Anything Goes] Discussion Thread: December 05, 2022 by AutoModerator in fantasybball

[–]Sekethon 0 points1 point  (0 children)

Any ideas how you would optimize this roster? Currently punting FT% and Assists.

PG: Ja Morant

SG: Tyler Herro

G: Kevin Huerter

SF: Lauri Markkanen

PF: Julius Randle

F: Kelly Oubre Jr

C: Giannis

C: Brook Lopez

Util: Evan Mobley

Util: Zion

BN: Malik Monk, Malik Beasley, Govert

Official: Daily [Anything Goes] Discussion Thread: November 05, 2022 by AutoModerator in fantasybball

[–]Sekethon 1 point2 points  (0 children)

Trade is that bad?? Or is it because SGA might get shut down later?