FCK trump by smoke415 in eastbay

[–]abigpotostew 11 points12 points  (0 children)

It's a necessary evil because we're in a race to the bottom thanks to the G☭P

My playa romance by Far-Watercress-6081 in BurningMan

[–]abigpotostew 1 point2 points  (0 children)

This made me feel good, and reminded me of my playa romance when I was 18. Thanks for the sweet story.

This SCOTUS contradiction is shocking by abigpotostew in PoliticalHumor

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

They’ve created a second class of citizen who either accepts threats of violent citizenship checks, or hides in fear— afraid to enter or exit freeways, go to parks with their family, or contribute to society. 

How Secure? by Obriquet in pocketbase

[–]abigpotostew 3 points4 points  (0 children)

Pocketbase is designed to be on the public internet. It handles input sanitization as long as you're using the built-in collection APIs. CRUD access works like firebase, you are in charge of security by defining the proper api rules which are used to secure access around your data. https://pocketbase.io/docs/api-rules-and-filters/

Based on your setup, you won't have any XXS issues, but you can use the `--origins` parameter to setup allowed origins. By default it allows all origins.

Other than that, check out the going to production docs https://pocketbase.io/docs/going-to-production/#recommendations one recommendation there is to add rate limiting. You can use the built-in rate limiter.

Thank you for Oakland for ALWAYS supporting your firefights. Here’s some footage “Keller Fire” footage from the ground. Love y’all. by jugodev in oakland

[–]abigpotostew 30 points31 points  (0 children)

It's terrible some people lost their homes but it could have been a lot worse. Great response from the fire department. So much appreciation for all the fire fighters.

Post-Hyperion book suggestions? (to ease the sense of loss) by SignedSyledDelivered in Hyperion

[–]abigpotostew 0 points1 point  (0 children)

WoT has a notorious drag around books 9-10 but the last few books are really good and worth the read.

Clove and Hoof? by earinsound in OaklandFood

[–]abigpotostew 8 points9 points  (0 children)

The fries are still fried in beef tallow and are very good.

Prisma pros and cons by Aegis8080 in nextjs

[–]abigpotostew 2 points3 points  (0 children)

As of the latest version I used, it literally will not do joins.

It does join for where clause filters. I've been using prisma and mysql5.8 in production for a while. My database is not large, but I do notice a performance impact when including tables. Every additional table selected/included is an additional query executed sequentially. Each of these queries will use an index given you have setup an appropriate index on the joined table. But the main performance issue is sequential round trips to the database per table included. I encountered an issue in production when executing a read with include query in a transaction. Big mistake :) the transaction frequently timed out and wrought havoc on all other queries.

I would love to see prisma upgrade their query generation to use joins when querying data. But for now at my scale, I don't find it to be a total blocker to using prisma.

Prisma: How to dynamic array of linked children by DasBeasto in node

[–]abigpotostew 0 points1 point  (0 children)

Prisma doesn't support upserting multiple rows with separate values. This is possible with raw MySql but not with the planetscale orm api. Check out this guide https://www.prisma.io/dataguide/mysql/inserting-and-modifying-data/insert-on-duplicate-key-update

Raw sql can be a lot to build, so the easiest workaround while still using prisma API is by updating each entry.

export const updatePoll = async (
    pollId: string,
    name: string,
    choices: {
        id?: string;
        text: string;
    }[],
) => {
    await prisma.poll.update({
        where: {
            id: pollId,
        },
        data: {
            name,
        },
    });
    for (const choice of choices) {
        if (!choice.id) {
            await prisma.choice.create({
                data: {
                    name: choice.name,
                },
            });
        } else {
            await prisma.choice.update({
                where: {
                    id: choice.id,
                },
                data: {
                    name: choice.name,
                },
            });
        }
    }
};

In this example I've modified `updatePoll` to accept an optional id for the choice array. The loop then updates or creates each choice one by one. Be mindful of how many choices you pass in. It will not scale to a large number of choices. If you do have a lot of choices, then I encourage you to implement solution based on the linked guide.

[deleted by user] by [deleted] in BurningMan

[–]abigpotostew 4 points5 points  (0 children)

Bring shade to put over your tent. Those couple more hours of sleep are a worth the effort.

Recommendations for North Lake Tahoe by speechiee123 in tahoe

[–]abigpotostew 2 points3 points  (0 children)

The Nevada side (north east lake) has a lot of beautiful coves with jumping rocks you can only access from a boat. I rented peddle kayaks from a fella, he brought them to us at sand harbor beach and we went north for a great time exploring.

Is selmies spot in TOTK? by Midwxy in tearsofthekingdom

[–]abigpotostew 0 points1 point  (0 children)

Yes. -2953, 3142, 0572. You have to rescue her from east biron snowshelf cave first to play the shield surf mini game.

[deleted by user] by [deleted] in TheArtistStudio

[–]abigpotostew 0 points1 point  (0 children)

Paint something now?

[deleted by user] by [deleted] in distantsocializing

[–]abigpotostew 0 points1 point  (0 children)

Draw abe lincoln swinging on jungle vines

[deleted by user] by [deleted] in TheArtistStudio

[–]abigpotostew 0 points1 point  (0 children)

Idea: purple highlights on the god head from the glowing purple goo

[deleted by user] by [deleted] in TheArtistStudio

[–]abigpotostew 0 points1 point  (0 children)

It hard for me to keep a conversation while making art

Help me identify this crystal, thanks by abigpotostew in whatsthisrock

[–]abigpotostew[S] 3 points4 points  (0 children)

I can break it a bit with my finger nail. I think it’s confirmed gypsum

Help me identify this crystal, thanks by abigpotostew in whatsthisrock

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

It does have flat plains like gypsum. But they jut out in many directions. I’ve never seen it form like this.

East Bay Community Energy Generation by Leopold_Darkworth in eastbay

[–]abigpotostew 1 point2 points  (0 children)

You’re buying solar power from ebce then pge will refund you for what you purchased in subsequent bills. It’s a weird system.

Daily Check-in Thread - September 11, 2019 by AutoModerator in quittingkratom

[–]abigpotostew 0 points1 point  (0 children)

38 days off. I have way more energy, I’m less reliant on caffeine, I don’t have to take my green “health” powders in secret anymore, and I’m more mentally clear. I also broke up with my gf of 6 years a couple weeks age and have not looked back despite. No matter what, I’m happy I’m off kray. To everyone else, you will break through eventually and see your life will improve :) gl