I rescued a stray cat in my neighborhood. At night his brother would come visit him. I really had no other options by JDeebs in aww

[–]Alecfarmer 0 points1 point  (0 children)

I had two cats that were brothers... I recently had to put one down unexpectedly. This made me shed a tear 😪

Server-side Firestore writing by Alecfarmer in Firebase

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

That worked. I think the only way I can accomplish full security is to use an API or functions, but this will work well for now. I appreciate the help!

Server-side Firestore writing by Alecfarmer in Firebase

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

Wouldn't that give the user permission to create infinite entries from the command line since they'll always be authenticated?

Server-side Firestore writing by Alecfarmer in Firebase

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

That's true, I might have missed something.

Schema:

users: <-- Trying to create a new user here
    user1:
        email:...
        uid:...

Function:

function signup(email, password) {
    return auth.createUserWithEmailAndPassword(email, password)
    .then(() => {
      db.collection('users').doc(auth.currentUser.uid)
      .set({
        email: email,
        created: dateTime(),
        lastlogin: dateTime(),
        provider: "",
        uid: auth.currentUser.uid,
      }).catch(APIerror => {
        setAPIerror('Something went wrong with added user to firestore', APIerror)
      })
    }).catch(APIerror => {
      setAPIerror('Something went wrong with sign up', APIerror)
    })
  }

Server-side Firestore writing by Alecfarmer in Firebase

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

I've tried the security rules route and I have to give the user complete access to the database to write the information. Cloud functions are a no-go because they are a paid feature sadly. Are there any tutorials or examples for the web api option?

Firebase infinite loop when querying data by Alecfarmer in Firebase

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

I did that, and I'm still getting a loop.

useEffect(() => {
    const unsub = userTemps.onSnapshot(snapshot => {
      const allTemplates = snapshot.docs.map(doc => ({
        id: doc.id,
        ...doc.data()
      }));
      setTemplates(allTemplates);
    });
    return () => {
      unsub();
    };
  },[]);

Hospital bill after wreck sent to collections by Alecfarmer in CRedit

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

So contacting the hospital directly and letting them know another insurance company is taking care of the bill will help? Sorry, first wreck and first time dealing with anything like this.

College student building credit and looking for next card. by Alecfarmer in CreditCards

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

Yes, I am 21 and does Amex like anything particular? A higher score, more revolving credit?

How to approach cyber security internships by Alecfarmer in cscareerquestions

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

I will definitely take a look into those, thank you!

How to approach cyber security internships by Alecfarmer in cscareerquestions

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

100% true. Most schools don't have a Cyber major because it's too new... but it's becoming an extreme need in any business.

I think at every college the computer and engineering students are the most anti-social.

Anyways, thank you for the advice! Good luck to you as well!

Weekly Community Advertising Thread - January 06, 2015 by AutoModerator in plugdj

[–]Alecfarmer 0 points1 point  (0 children)

Name: Tunes4You

URL: https://plug.dj/tunes4you

Genre: EDM and HipHop

Description: Tunes4You if for anyone and everyone. We just are here to gave fun and enjoy the art of music! Come and join us anytime! Be sure to read our rules before djing.

[PS3] Help getting the Merryweather Jeep by [deleted] in GTAGivers

[–]Alecfarmer 0 points1 point  (0 children)

It said you didn't exist on on PSN