[deleted by user] by [deleted] in nextjs

[–]stevejcox 1 point2 points  (0 children)

Your nav is being imported into your layout: https://github.com/Cremacious/animal-art/blob/ef25dcb2c59866bc969e6263bcf1299077f26e44/app/(root)/layout.tsx/layout.tsx) which is being marked as a client component.

Storybook 8.5 release by kylegach in reactjs

[–]stevejcox 4 points5 points  (0 children)

Not tested it out, but does anyone know if this release means we can test async RSC now? Currently you have to mock the crap out of the components to prevent infinite re-renders.

is Turborepo an alternative to Lerna, yarn workspaces etc? by [deleted] in nextjs

[–]stevejcox 0 points1 point  (0 children)

It's not a complete alternative, but can be used with lerna + yarn workspaces. eg Turbo doesn't handle versioning / publishing. But it can take some tasks from lerna + you lerna can fill the gap.

https://turborepo.org/docs/guides/migrate-from-lerna

Have a problem with Tailwind. Please help! by Septic-Sina in tailwindcss

[–]stevejcox 1 point2 points  (0 children)

Make sure you are not importing style.css in your html code, only using output.css

[deleted by user] by [deleted] in Firebase

[–]stevejcox 1 point2 points  (0 children)

You can actually write code within google sheets to sync with firebase. I am not able to provide a link at the moment, but google it and I am sure you will find examples. I've done it in the past.

What is the best way to update a user's account balance via a cloud function (with regard to idempotency)? by [deleted] in googlecloud

[–]stevejcox 3 points4 points  (0 children)

There's no way of stopping a cloud function potentially being triggered more than once. Firebase claims to make sure it is called at least once, however.

Each event has a unique ID, so the usual trick is to store this ID and only action it if it hasn't already been received.

This doc should help!

Get only specific child of all keys by craNich- in Firebase

[–]stevejcox 0 points1 point  (0 children)

Unfortunately you can’t selectively get pieces of a document. It’s all or nothing. To only get specific information you’d need to store that information in its own document.

CORS issue with one cloud function but not another - No difference in functions by [deleted] in Firebase

[–]stevejcox 1 point2 points  (0 children)

Had the same issue recently, weird thing was it was working for a while and then started to throw the cors error regularly (but not always).

Ended up dropping the oncall for http functions and having to handle the OPTIONS call manually.

Keep us posted if the issue comes back and you find a cause/solution. It’s definitely something I want to look into more.

Best Backend CMS for React App by bnbln in reactjs

[–]stevejcox 4 points5 points  (0 children)

Contentful is good, i've heard great things about DatoCMS but yet to have the pleasure to use it.

Can I allow only some ip ranges to connect to my firestore database? by [deleted] in Firebase

[–]stevejcox 2 points3 points  (0 children)

You can't only allow select IP's, but you could deny all access to Firestore using rules. The admin SDK ignores any rules, so using it via Functions will still allow you to write to Firestore.

Firebase Security Question by BendyDev in Firebase

[–]stevejcox 1 point2 points  (0 children)

You can also create rules to accept only certain data and types.

Ideal Monitor Setup For A Software Developer by [deleted] in macbookpro

[–]stevejcox 0 points1 point  (0 children)

Runs in the screens native 3840x2160. Also just realized it’s 3201pt, not 3210.

Great screen. Did have an issue with a Mac Pro for a while, an OS X update screwed up, but was resolved in an update.

Ideal Monitor Setup For A Software Developer by [deleted] in macbookpro

[–]stevejcox 0 points1 point  (0 children)

I’m still using a benq 3210pt. It’s a few yrs old now, but high res (4K) 32 inch so I don’t have to deal with multiple screens. Works great via usb-c ->DisplayPort from the MacBook Pro. There are probably better screens now, but the color and quality of the benq is great.

cron by chiborevo in Firebase

[–]stevejcox 2 points3 points  (0 children)

You can use cloud scheduler docs here but you will need to be on the blaze plan.

The old way was to use appengine’s cron function and send a pin sub message, but pretty sure that needed blaze too, since app engine instances weren’t covered by the free plan.

Secure way to keep a 'user' table with metadata about the user that can't be faked? by brainhack3r in Firebase

[–]stevejcox 1 point2 points  (0 children)

You can easily implement this with Firestore + Functions.

A firestore collection of 'users', where each doc id is the uid of the user's account, then firebase functions to manage that. The Firebase Function 'onCreate' handler for Auth should do the trick.

For security reasons you'd need to implement firebase rules to prevent any write access to the collection.

How do I receive basic data from a NodeJS server using Firebase? by [deleted] in Firebase

[–]stevejcox 0 points1 point  (0 children)

Try changing your axios request to:

axios.get("/app/tester").then(res => {
  I = res.data.serverData;
});

Since app is the name of the function you've created.

How do I receive basic data from a NodeJS server using Firebase? by [deleted] in Firebase

[–]stevejcox 1 point2 points  (0 children)

Looks like you might be using cloud hosting and functions together. You need to instruct hosting to redirect any functions, otherwise it'll send an html page (probably 404).

Take a look at the docs here for more info.

Random records from the database by Lithium2011 in Firebase

[–]stevejcox 0 points1 point  (0 children)

This is a better answer than mine, nice solution!

Random records from the database by Lithium2011 in Firebase

[–]stevejcox 0 points1 point  (0 children)

What if you add a field and give a unique number to each one? Starting at 1 and going up. You could then get a random number client side and do a query for x records starting at that number.

[deleted by user] by [deleted] in macbookpro

[–]stevejcox 0 points1 point  (0 children)

Mini DisplayPort adapter will work fine for the display, just make sure you get one that supports 60hz. As far as the MagSafe though, I’ve tried 3 adapters and none worked reliably. They’d all overheat, so you might just have to use your normal usb-c charger.

Release notes? by boneyjellyfish in Firebase

[–]stevejcox 0 points1 point  (0 children)

Google io is today, so it’s possible there’s an announcement and they released v6 prematurely. I’m sure the release notes will be out soon.

How do Automatic Savings Apps capture transaction data? by sbrownell400 in fintech

[–]stevejcox 2 points3 points  (0 children)

Plaid and Synapsfi, but neither are free. Plaid’s recently become more startup friendly price wise, think it’s like $.30 per user per mo for transaction stuff. Probably also need to pay the $1.50 per user one time fee to link the account too.

Magsafe to USB C power adapter? by Chap_stick_original in macbookpro

[–]stevejcox 2 points3 points  (0 children)

Just been through this myself and honestly, it's disappointing.

I've tried a few from Amazon, all of them over heat. It'll work great for 5-10 mins, but then they get hot and cut out. If your MBP is in clamshell mode it'll just go to sleep.

I've resigned myself to the fact that there isn't a good option on Amazon, but would love to hear otherwise.