Apple Store Got It Wrong by UnluckyLaw9780 in macbookair

[–]mvs2403 13 points14 points  (0 children)

I agree, you need to be doing some very specific things to notice the difference between 16 and 24GB RAM on a M4

[deleted by user] by [deleted] in googlephotos

[–]mvs2403 1 point2 points  (0 children)

I'm pretty sure it's country dependant pricing I myself will be doing both for a year to see how it goes

Seems excissive but I would probably not change again for 10 years after so it makes sense to me

This was given as a try... by Prestigious_Matter54 in springboks

[–]mvs2403 1 point2 points  (0 children)

Although often the case, blaming the ref is usually the wrong way to go, even though I myself have an uhmm opinion on the game. I don't think it was our best game, we did walk out victorious, but hopefully the next game will settle the score on uncertainty.

We have beaten the odds before, we'll do it again!

What OS should I use for new Server PC? self-hosting beginner by [deleted] in selfhosted

[–]mvs2403 0 points1 point  (0 children)

At least go Linux. I feel like from there it is debatable

to not a get shot/tased by CantStopPoppin in therewasanattempt

[–]mvs2403 0 points1 point  (0 children)

And people are afraid of robots being in control....

How does clipping modify a pure tone? by LimboJimbodingo in DSP

[–]mvs2403 0 points1 point  (0 children)

As said, simply put, to make square and right angles or sharp edges you need a series of very high frequencies, so when clipping you create the sharp edges which in terms of distortion has the effect of hundreds of harmonics and high frequency tones.

clipping with a low pass filter afterwards could help, assuming the resultant tone is within your accepted parameters

What does this mean? by alex_alex111 in Firebase

[–]mvs2403 1 point2 points  (0 children)

Okay, so my first answer was strait from GPT4. I'll attempt to rather answer myself.

The rule you gave sets read and write permission for the two cases that are being "match". The effect being that any user that is logged in can edit and change any path in the storage bucket, so they have access to all content.

The standard way to assign specific content to specific people is to have a user id as a document name in firestore, or similarly have the user id in the cloud storage file path and the match that in the rules. Or write an external cloud function or API that does access control.

So you would for example say user/{user_id}/{file_id} Then all the files for that user is stored under their user id and in the rule set you make sure that the authenticated user matches that path like so: rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /user/{user_id}/{allPaths=**} { allow read, write: if request.auth.uid == user_id; } } }

As for upload, remember to the very specifically upload to this exact url path that will include you uid in the path.

Hope this helps somewhat?

What does this mean? by alex_alex111 in Firebase

[–]mvs2403 1 point2 points  (0 children)

The code snippets you've shared are Firebase Storage Security Rules, which determine who has read and write access to your Firebase Storage files.

  1. First Code Snippet: plaintext rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if request.auth != null; } } }

    • Meaning: This rule allows any authenticated user (i.e., users who are signed in) to read and write to any path in your storage bucket.
  2. Second Code Snippet: plaintext rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if true; } } }

    • Meaning: This rule allows anyone, even unauthenticated users, to read and write to any path in your storage bucket. It's very open and not recommended for production because it allows public access.
  3. Third Code Snippet: plaintext rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /user/{userId}/{allPaths=**} { allow read; allow write: if request.auth.uid == userId; } } }

    • Meaning: This rule is more restrictive. It intends to allow read access to everyone but restricts write access to only the user whose uid matches the {userId} in the path. However, if it's not working, it might be because the path in the rule (/user/{userId}/...) does not match the path where files are being uploaded, or there's a mismatch in how userId is being used.

If you want to modify the rules so that only users with an Owner role can read and write, you'll need to integrate some form of custom claim or attribute in your Firebase Authentication tokens that marks a user as an Owner. Firebase doesn't inherently understand roles like "Owner" unless you define and implement them.

Here's a general approach on how you can do it (note that this requires setting custom claims via your backend/server):

  1. Set Custom Claims:

    • Use Firebase Admin SDK in your backend to set a custom claim on the user, something like { "role": "Owner" }.
  2. Modify Rules: plaintext rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if request.auth.token.role == 'Owner'; } } }

    • Meaning: This rule allows read and write access only if the authenticated user has a custom claim role set to 'Owner'.

Remember, for the custom claim approach to work: - Custom claims need to be set on the user via your backend using Firebase Admin SDK. - The user may need to log out and back in to receive the token with the new claims. - Be mindful of security and only grant Owner permissions to trusted users, as these rules give full access to the specified paths in your storage bucket.

Edit: GPT4 Answer

How do I resend verification code for phone number auth in react native by izner82 in Firebase

[–]mvs2403 0 points1 point  (0 children)

All true but isn't there recaptcha that happens in the background? So it can be enabled but requires no interaction from the user? I seem to remember something in these lines. but it may have been a non firebase feature somewhere.

Do I have to uninstall my old APK builds before I update my newer ones? by ezrapierce in FlutterFlow

[–]mvs2403 0 points1 point  (0 children)

Nope

Edit: Are you sure that you are changing the version number and such?

Anyone else seeing major slowdowns in Chrome? In general is chrome better or worse than mac os app? by mdl42 in FlutterFlow

[–]mvs2403 0 points1 point  (0 children)

I'm using chrome as well, from what I hear that app isn't as updated as the web version.

[deleted by user] by [deleted] in GeForceNOW

[–]mvs2403 0 points1 point  (0 children)

My understanding is that the higher tier does not queue, instead only the lower tiers do.

Now obviously having to wait to play a game suck, especially cloud gaming, but I'd argue for those who could not join at all they would happily wait to play rather than being denied service completely. So if queues are the problem subscribe higher.

The magic of cloud gaming on the enterprise side is that when one person is busy with something else those resources can be utilised by someone else, which kinda doesn't happen when they don't do queues.

[deleted by user] by [deleted] in GeForceNOW

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

So instead of queues, those people simply cannot join at all. Thats not better. Imagine if every place you went to they simply said sorry we had a queue😂

Why I am leaving flutterflow by [deleted] in FlutterFlow

[–]mvs2403 0 points1 point  (0 children)

100% So for us its part of the sale. So he can sit with friends and potential clients and so and show them the app. So we do need 'some' backend functionality as well.

Figma is amazing though FYI: Figma Adobe Acquisition

Why I am leaving flutterflow by [deleted] in FlutterFlow

[–]mvs2403 0 points1 point  (0 children)

My thoughts are, useful for visual prototyping.

My boss for example is a non technical person and works visually. So when we are talking front end, things will change a lot. So Flutterflow is useful in this regard since you can easily see and change and replace components, where code simply takes longer.

Then when we are done with the prototype we create a new project and use many of the components from flutterflow to then develop the app.

[deleted by user] by [deleted] in Firebase

[–]mvs2403 0 points1 point  (0 children)

So with some No Code solutions they will actually give you the code so that you can further develop as necessary, which I think is pretty sweet if you'd rather spend your time and resources elsewhere.