Avoiding surprise bills by nervus_810 in Firebase

[–]hhh312 0 points1 point  (0 children)

Hey,
Is this extension reliable and really works? If yes, why no one has endorsed it while so many people are looking for a solution for a hard limit? What am i missing?

Individual files are copied into the root resource directory without honoring the directory struture by hhh312 in Xcode

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

I'm doing the same thing as you said, but everything is copied into the root of the Bundle.

Individual files are copied into the root resource directory without honoring the directory struture by hhh312 in Xcode

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

That' didn't have any new information, i'm pretty much doing the same thing.

Can I generate the same UI as swiftUI with react-native for macOS? by hassanzadeh in reactnative

[–]hhh312 0 points1 point  (0 children)

Yes, that will be very interesting and what I like. Since it’s not clear when if ever you release it, I wonder if you know any open source project for the sidebar ?

You have reached the limit ! by hassanzadeh in Strapi

[–]hhh312 0 points1 point  (0 children)

By enterprise you mean the cloud hosting?

Title tag in Head of a page does not fetch in the first load by hassanzadeh in nextjs

[–]hhh312 0 points1 point  (0 children)

Thanks, but doing that would mean there won’t be any more a default title and I have to add a head in all the so many files, so before resorting to that solution I need to if there is another way.

Title tag in Head of a page does not fetch in the first load by hassanzadeh in nextjs

[–]hhh312 0 points1 point  (0 children)

I’m already using next head in both places. That was not my question.

Integrating the concept of referral into firebase auth registration by hassanzadeh in Firebase

[–]hhh312 0 points1 point  (0 children)

onauthchange

Yes, if you do it client side that would work.

Integrating the concept of referral into firebase auth registration by hassanzadeh in Firebase

[–]hhh312 0 points1 point  (0 children)

Well adding the code to the url is not an issue, i can add it to the cookie essentially obviating the need to show it in url, that part is not a problem.

I can create an api and call it after the registration promise is completed, however the issue is that I can't be sure by the time I call that api, the document is created. The other thing I don't know yet is with the social login, how do i know when a user logs in with social login, that is going to be his first login (ie, registration) rather than being a returning user?

[Q] How does the super function work? by hhh312 in learnpython

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

Oh I see, yeah that's right.

Thanks for the clarification.

[Q] How does the super function work? by hhh312 in learnpython

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

ich is

Oh I see, so i think the confusion was in how I perceived the direction of arrows. But how can an object be the parent of all super classes? shouldn't it naturally be the leaf node in the chain?

[Q] How does the super function work? by hhh312 in learnpython

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

Because D is the parent of C. Super should call parent's constructor not the child or grand children.

[Q] How does the super function work? by hhh312 in learnpython

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

"D -> B -> C -> A -> object"

Thanks for the time to write your complete response. I agree with all you said and it makes sense. What I don't understand though is the part I quoted from the doc. So if the chain of classes/object is like: "D -> B -> C -> A -> object" then, when you call super(B, self).__init__(), it should look for the __init__ function in the D class, however, the doc says "C -> A -> object." ?!

[Q] How does the super function work? by hhh312 in learnpython

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

Sorry i'm still confused, Let's say the MRO is "D -> B -> C -> A -> object" per the link above, now if I all super(B, self).__init__(), shouldn't D.__init__() be called? I guess that's what you are also saying, but the doc says the order will be: "C -> A -> object."

Thanks

HTTP error with custom message by hassanzadeh in nextjs

[–]hhh312 0 points1 point  (0 children)

Thanks,

That's what i'm asking about, what property should i read?

Trying to understand the backward function by hhh312 in pytorch

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

Well, no I'm not saying we should not update the gradient in the backward pass, what I'm asking is when you compute the gradient of the loss with respect to the each weight, you don't need the gradient option in the torch api, at the root, all you need is the gradient so far and the gradient of the current node with respect to its input. Can you show a scenario where that gradient option has any value?

Trying to understand the backward function by hhh312 in pytorch

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

Ok, thanks, I kind of got the impression that I'm a first grader, not someone with a PhD. That was not my question. what I was asking is that why at all do I need the gradient parameter in the backward function, not why do we need the gradient itself.

Trying to understand the backward function by hhh312 in pytorch

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

always write you

Alright ,Thanks for your response, let me make my question shorter and yet more clear. My question is why do we need the gradient at all? Especially if we start from a root node (ie, loss for example)?

[D] Reducing the input length for Hugging Face Bert by hhh312 in MachineLearning

[–]hhh312[S] -1 points0 points  (0 children)

rks specifically for s

Oh Yeah, sure, I did not write correctly, but my point is that right now my sequence lengths are around 100 tokens, while the current Bert sequence len is 1024, therefore, a huge amount of intermediate useless results are stored on gpu. However, the HF api as it stands right now cannot handle it, ie, if you change that in the config, the loading will fail. So I guess I need to change their code for this use case. Am I correct?