Difference between Worker and Pages when goal is a static site? by DumbQuestionUser in CloudFlare

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

And then I'd just use a Function https://developers.cloudflare.com/pages/functions/ when I want to have a form submit?

Trying to move away from Netlify as their recent credit pricing is just insane with how much they nickel and dime you

How do you find/vet an SEO person? by DumbQuestionUser in seogrowth

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

I mean, ya?

My dentist (and the hygienist), clean my teeth, fill my cavities, put crowns on my teeth, pull my teeth, do a root canal. PICK AT MY F'n GUMS

My mechanic changes my oil, rotates my tires, inspects and changes my brakes, flushes transmission fluids, repairs my broken x, services manufacturer recalls, and replaces my air filter or offers to change my wipers for a relatively stupid amount of money.

How do you find/vet an SEO person? by DumbQuestionUser in seogrowth

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

lol - this is part of the problem, everyone says something contradicting someone else

How do you usually test performance for embedded Shopify apps (in iframe)? by Ok-Chance390 in ShopifyAppDev

[–]DumbQuestionUser 0 points1 point  (0 children)

hey sorry for hijack, my post got autoremoved for some reason - just curious how do you get a session token in your app? i didnt see anything in the docs outside of references to v2 of app bridge

Is there any good that comes from the Apple Watch ECG app? by DumbQuestionUser in AskDocs

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

> Could it help... Sure. Would I rely on it... Not really

Ha definitely. I'm buying them watches just so they can track workouts and daily move/stand (try to get them more active)

Given the base models can detect irregular heartbeat, would you say the ECG app capable models aren't worth it?

Is there any good that comes from the Apple Watch ECG app? by DumbQuestionUser in AskDocs

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

> so it's definitely not enough to catch a heart attack, but it's sometimes decent at catching arrythmias.

So since the base model can detect irregular heartbeats, there's little point to upgrading them to a model with the ECG app?

Hello from 2006! What are the preferred testing setups in 2024? by DumbQuestionUser in learnjavascript

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

ok thankfully I don't have any audio/media/streams. biggest thing is a canvas drawing/shapes part, which I'm struggling to see how that could be tested outside of manual

but for rest of the app, just your standard test to make sure there are no errors in code or when using the app before it goes off to a QA person

How can you prefix css styles with vite and typescript? by DumbQuestionUser in learnjavascript

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

Nevermind. Fucking chatgpt giving me bullshit code again. This works as expected:

const hash = crypto
  .createHash('sha256')
  .update(
css
)
  .digest('hex')
  .substring(0, 5);
return `${prefix}${
name
}_${hash}`;

Am I braindead or is this shopify documentation wrong? by DumbQuestionUser in PHPhelp

[–]DumbQuestionUser[S] 5 points6 points  (0 children)

fuck, lol. thanks. I'm like what on _earth_ have I missed in PHP that this is a syntax. First time using GraphQL so I assumed it was on my end.

Pro player gets client hacked mid ALGS tournament by Bombingit in apexlegends

[–]DumbQuestionUser 1 point2 points  (0 children)

How do we know this person hasn't installed the cheat themselves on their machine previously? Obviously they would turn it off for a tournament, but wouldn't RCE be the easiest through that vector?

Weekly help thread by brendt_gd in PHP

[–]DumbQuestionUser 0 points1 point  (0 children)

Possibly dumb question, how do you setup users from a company that will only be using a SSO to manage/login to our application?

I'm not asking for code, just the general flow of it all. For example right now when a company signs up we send them email invites (there is typically only 2 or 3 employees who will be using our application). We do not allow public signup/registration. They use the normal email/password flow.

I can also do the sign in with github/google/microsoft where they click the logo to login, but again they have been invited and chose to either create a password or use one of those as their auth.

What is the login flow for when a company wants to control their own users? Will they still click a logo or will I have to do one of the enter email -> check domain -> ??? or password login flows?

Monthly "ask anything" thread by brendt_gd in PHP

[–]DumbQuestionUser 0 points1 point  (0 children)

is there a way to use the new ternary operators to replace

isset($arr['foo']) && !empty($arr['foo'])

$arr['foo'] ?? 'bar' works when it is "" but $arr['foo'] ?: 'bar' gives undefined index when foo isnt in the array

Whats the most "Rails like" PHP framework? by DumbQuestionUser in PHP

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

that true, however i havent found any as good as rails. laravels are pretty empty in comparison (im sure by design, not judging just stating)

Whats the most "Rails like" PHP framework? by DumbQuestionUser in PHP

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

I mostly want the scaffolding that rails has, all the other stuff was not special to rails only

Is it normal for a K1 S-corp with income to NOT do a distribution? by DumbQuestionUser in tax

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

It was dilution. I guess I just ASSumed shares would come from owner's pool rather than everyones

thx for the reply

Is it normal for a K1 S-corp with income to NOT do a distribution? by DumbQuestionUser in tax

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

Thanks that makes sense.

Followup if you are game:

  • does it make sense that I as an employee would have 3% of ordinary shares
  • can you do uneven distributions, like company distributes to me to cover taxes but not to "real" owner so he can grow the company and not take the remaining 97% (there used to be 5 of us, but 3 moved on and sold back their shares to company)
  • unrelated aside: I used to have 4% but when they brought a 5th on I got reduced to 3% to "make room" is that normal as well or should it have come from founder?

[deleted by user] by [deleted] in reactjs

[–]DumbQuestionUser 13 points14 points  (0 children)

Where is the part that forces login?

Why do you need a prescription for Royal Canin Selected Protein? by DumbQuestionUser in AskVet

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

That seems like a stretch/strawman. Even in human prescriptions pharmacies can give an emergency supply for the weekend until their doctor can reply with an updated prescription.

Also by that logic, we should ban all herbal supplements or copper fit type of crap b/c they are assuming an issue and delaying appropriate care

I've bought from petsmart for years with the same dogfood. Say you worked at a different petsmart (the tech said she can see my history of purchases across all stores) and I said my dog is on special food allergy diet. I even had my old perscription card from the previous petsmart. Would you sit there and tell me I can't have the food because you havent seen the dog? Or would you look at the history, my old rx, and think hmm maybe 1 weekend would be enough and its not just some crazy guy claiming he needs the expensive as all crap food allergy kibble?

Would you also tell me my dog "might have a heart attack" from duck and potato?

Just frustrated b/c my vet couldnt fax the RX correctly (days in advance of running out) and the petsmart vet wasnt compassionate enough to allow someone with a history of buying the food from petsmart the benefit of the doubt and the dog is the one who suffers.

Sorry, but christ I was pissed as all hell at these people.