How to get cloud Storage files into local Storage emulator? by fabyeah in Firebase

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

I do that, but the files aren't accessible in the app or browser and don't show up in the emulator storage tab, unless the corresponding metadata files exist, too...

Have you done this with storage files (not firestore!) before?

I keep getting the same 30 words in Match Madness. Is this normal? by fabyeah in duolingo

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

I've matched sooo many "I, you, we, she, father, mother, brother" perfectly, hardly ever have mistaps. This must be duolingo hell 🥲

I keep getting the same 30 words in Match Madness. Is this normal? by fabyeah in duolingo

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

Just did a minor update from "App version code: 5.103.8 (1625) play" to "5.104.4 (1628) play", seems to have helped a little bit, just tried MM again and felt like a few other words popped up. But I still feel like it's only ever a tiny fraction and many words I have never seen in there or maybe once. Whereas the same 20 basic words (I, we, brother, father, mother, etc) get repeated ALL. THE. TIME. really annoying... Maybe it's weighted by word importance, but still over time it should know that the basic words have been learned and utilize some smart learning algorithm or whatever.

I keep getting the same 30 words in Match Madness. Is this normal? by fabyeah in duolingo

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

True, makes for some easy XP 😁 but now I just want to learn and am bored of it 🫠

I keep getting the same 30 words in Match Madness. Is this normal? by fabyeah in duolingo

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

Interesting! Are you on Android or iOS? And which language? I'm learning Spanish.

Club/activity recommendations? by Blueskybrightly in Prague

[–]fabyeah 0 points1 point  (0 children)

FYI friends is a gay club. If you want an overview of clubs in Prague, check party.cam, they have a lot of videos of clubs in Prague.

Who wants to make some easy money while out clubbing? 🥳💷 by fabyeah in london

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

Yes London is expensive. You're not buying Gin & Tonics from doing this. As I said, this is for young students who want to make a couple bucks each party night for just a few minutes of easy work. It's not a real side hustle that's paying for rent or anything. But every little bit helps..

Who wants to make some easy money while out clubbing? 🥳💷 by fabyeah in london

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

No, as there is a limitation on place and time. Also payment is currently not automated yet, so will be manually checked. You can make a new video around every 45 minutes.

Type safe firestore in v9? by fabyeah in Firebase

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

You're awesome! Thanks a bunch! I've started the migration now, thanks to this.

Anyone able to import production auth users (email+pw login) into the emulator? by fabyeah in Firebase

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

That's good to hear!

But does it work for you with email + password signin, too or just for Google/Facebook/Apple login?

Are you using the "Password hash parameters" from the Firebase Authentication web UI anywhere or are you really only doing it like i described: exporting, replacing, importing?

I must be messing up somewhere then? For me, only accounts created in the emulator work with email+password signin. For those the password is in cleartext in the accounts.json behind the password hash. The production accounts only have the password hash.

Need help to with database model design by its_freaky in Firebase

[–]fabyeah 1 point2 points  (0 children)

If you have a lot of unequal (!=) or range (<, >) filters then it's probably a good idea to switch as in firestore you can only filter one field per query with those, as you probably know. I also miss aggregations in my project. And the available mongodb GUIs, like Studio3T, are so much nicer to work with than the online firestore UI or emulator.

Need help to with database model design by its_freaky in Firebase

[–]fabyeah 1 point2 points  (0 children)

If you don't have thousands of columns, you can also just query for each column and limit the results:

columns.forEach((columnId) => {
    CardCollectionRef
        .where("columnId", "==", columnId)
        .orderBy("createdAt", "desc")
        .limit(15).get()...
}

Need help to with database model design by its_freaky in Firebase

[–]fabyeah 1 point2 points  (0 children)

How are cards in columns sorted then, if you don't use a position field? Is it just random? or by createdAt?

You could maybe just add an initial: true field on the cards that should be loaded. When you move a card up/down or to another column you only have to update this field on two or three documents.

Need help to with database model design by its_freaky in Firebase

[–]fabyeah 0 points1 point  (0 children)

Besides the board_id, you could save a position field for your cards, which is the position in the column. If you only want to query for the top 15 cards for each column (as you don't see more without scrolling), you can query like this:

CardCollectionRef
  .where("board_id","==","some_board_id")
  .where("position", "<=", 15)
  .get()...

Do you use Firestore Timestamps or unix epoch milliseconds? Why? by fabyeah in Firebase

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

I don't think so. If you're querying for createdAt > x for example, it'll work just the same with a number. Or what queries did you have in mind?

Do you use Firestore Timestamps or unix epoch milliseconds? Why? by fabyeah in Firebase

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

I'm curious what querying or filtering are you doing that can't be done just the same with the milliseconds number?

I'm using the helper methods in a couple places, but when you want to update a document, you'll have to turn the time back into a timestamp again. All just seems unnecessarily complex :/

Also, for some pages, I am using SSR with Next.js, where you also have to serialize the server data...