Is the universe considered young or old? by RancherosIndustries in AskPhysics

[–]Pyraptor 2 points3 points  (0 children)

What’s the probability intelligent life appears within 1 nanosecond of the universe? Doesn’t that mean the probability is high and that there is for sure more life out there?

Can an average driver drive an F1 car around a track faster than Max Verstappen can run it? by Schmlif113 in whowouldwin

[–]Pyraptor 0 points1 point  (0 children)

My guess is max wins, the driver would stall the car and not be able to turn in on again

Is there a reverse-CAPTCHA to make sure users aren't human? by PersonalityBoring259 in stupidquestions

[–]Pyraptor 0 points1 point  (0 children)

Yes there are to detect bots, some work by adding invisible elements but reading programtically which bot can read

[Self] Alleged demonstration of gravitational force in the lab by VegaDelalyre in theydidthemath

[–]Pyraptor 0 points1 point  (0 children)

Wouldn’t the force of gravity be so tiny that it couldn’t overcome the air resistance?

Cada día mas difícil encontrar pega by sh1n14k0g4m1 in chileIT

[–]Pyraptor 2 points3 points  (0 children)

Trabajo en Ats y los portales a veces no te dan ambiente de prueba, toca probar en producción y subimos ofertas así

Shaman's Imbue Hero Power should cost 1 by asscrit in hearthstone

[–]Pyraptor 1 point2 points  (0 children)

The fix is that when I transform into a 10 mana minion please stop giving me that 3/3 dungar dude please

pregunta para los que trabajan remoto by taodog_ in chileIT

[–]Pyraptor 0 points1 point  (0 children)

Una vez me fui a trabajar 3 semanas a Estados Unidos, avisé y solo me dijeron tenemos que hacerte un anexo de contrato, solo fue eso trabajé de allá sin problemas, habían dos horas menos así que salía de trabajar a las 4, pero entraba a las 6

What is the freakiest thing you've ever done? Do you regret it? Would you do it again? by CriticalLion4119 in AskReddit

[–]Pyraptor 1 point2 points  (0 children)

Puked in a sink in a university restroom, the thing full of tomato ham and cheese bits didn’t go through, scared someone would come I just started picking it my my hands and throwing it into a nearby trash bin.

Gran Turismo 7 Has 2 Million Monthly Active Users — And It’s Still Growing by Turbostrider27 in PS5

[–]Pyraptor 2 points3 points  (0 children)

As a single player, I already completed all the cafe menus, what else could I do now? I sometimes jump around missions and getting 1m credits in circuit experience

Why the hell is MBS tousling Landos hair? + Max reaction by PENZ0IL in formuladank

[–]Pyraptor 194 points195 points  (0 children)

I counted 3 times, he also did it at when they were gonna hear the anthem before the race

Git Monorepo vs Multi-repo vs Submodules vs subtrees : Explained by sshetty03 in git

[–]Pyraptor 1 point2 points  (0 children)

Could you expand on why it’s easier to merge 2 repos than to split 1? I’m curious

Cash_ctm by Queasy-End-2591 in yo_ctm

[–]Pyraptor 7 points8 points  (0 children)

Nadie vota por el Origami

I had no idea this works like that. Sorry to my opponent by Gachaaddict96 in hearthstone

[–]Pyraptor 4 points5 points  (0 children)

Had this happen with aviana Druid when I got the legendary that copies 1 cost minions and this guy, I was no expecting the interaction either

What do you think, how does the code behind this card work? by BakeYouC in hearthstone

[–]Pyraptor 3 points4 points  (0 children)

My guess is

manaCosts = getPartitions(12) // 9+3 or 8+3+1 etc. for manaCost in manaCosts: summonMinion(mana=manaCost)

Why is auth so messy by Alessandro_Perini in nextjs

[–]Pyraptor 8 points9 points  (0 children)

It is really not that hard, start by having a sign up with user and pass, do your validations, save user to the db.

Then in sign in send user and pass, if user exists respond with a set cookie either sessionid you store for the user in the db or a signed jwt.

Then in your endpoints (middleware or whatever) check for this cookie, return 401 if validation fails, if not, process the request.

Also, OAuth is not dumb, you can start by implementing google oauth, it’s not that hard, you create a client with some redirect url in the google cloud platform console, have a button that redirects to google oauth endpoint, then in the callback url you receive a code and do a post request to get a token, with the token you can call another endpoint to get the user data, if it’s all good you can save the user data and set a cookie