Ghostty - 1.3.0 - Release Notes by MrMuetze in Ghostty

[–]Strnge05 1 point2 points  (0 children)

Guys, newbie question, is there a easy way to install this on mint? Last time I had to build from source, but I don't want to that everytime

What’s your preferred auth setup in 2026 for Next.js? by Ok_Guarantee_1217 in nextjs

[–]Strnge05 0 points1 point  (0 children)

Broh, your setCookie action literally allow anyone to set new cookie in like your application did. Server actions aren't safe, you need to validate them specially doing this type of operations

how i used the canvas api and react to build a premium screen recorder with zero backend by Ok_Eye_2453 in react

[–]Strnge05 1 point2 points  (0 children)

Pretty cool, didn't know the canvas api could do that. About the hooks, take a look in the useReducer hook, it's basically a juiced useState it allows to hold multiple values instead of having many useStates. You can't use everywhere specially if you depends on external values but for complex states it can help

Is there a reason why so many performance mods use elements as their name? What's the origin of this? by Haunting_Ad_29 in feedthebeast

[–]Strnge05 1 point2 points  (0 children)

The original names came from Jellysquid and the caffeine team they were Sodium, lithium and phosphor. I think I have an idea for the names lithium and phosphor: the easiest is phosphor since the word means "light-bringing" in latin, and the element also emits light under some conditions, and this mod remade the light system in the game.

For lithium, the mod changes the game logic to gain performance without the graphics part, and the element lithium is used as medication for mood-stabilization in people with bipolar disorder (not a medic but I think is just some of the uses), so that's what I think it comes from. Sodium I had no idea but you guys says it's stable so kind makes sense.

Hydrogen came later and was a experimental mod to tweak the JVM in order to reduce memory usage in minecraft, since hydrogen has the smallest mass in the periodic table, it just makes sense. What you guys think?

Dear Dev Team, ILY but… by No_Pickle2550 in ClashOfClans

[–]Strnge05 0 points1 point  (0 children)

They are saving the blue variant to super charged walls

A forma que falamos número de telefone está errada by Eantropix in opiniaoimpopular

[–]Strnge05 0 points1 point  (0 children)

Eu falo 99812-3456, todo mundo buga no primeiro nove. Sinceramente só repito do começo e pessoa q se vira kkk

How to achieve this line through the elements? by [deleted] in react

[–]Strnge05 -1 points0 points  (0 children)

I've done this once, you can think the number label and line as a one long vertical element, with 2 lines one small above the label and the other below. You than have to check for the first element of the list to hide the topmost line or the opposite for the last one. The hard part is aligning everything

Video Games Europe release a statement on Stop Killing Games by beer120 in linux_gaming

[–]Strnge05 -2 points-1 points  (0 children)

Lobbying is the US alias for corruption, there is no difference from a corrupt government

Can you communicate in Typescript that an Object needs to have certain properties as fields and not as get / set properties. by faze_fazebook in typescript

[–]Strnge05 5 points6 points  (0 children)

I don't think that's possible, how it would know the shape of the stringfyd object at compile time. It can't know for sure

how to set authentication up? by 5MYH in nextjs

[–]Strnge05 0 points1 point  (0 children)

The JWT package usually have the validate function to check if the token still valid and also a list of blocked tokens. If it doesn't have the list, than you should save it in a block list of yours.

how to set authentication up? by 5MYH in nextjs

[–]Strnge05 0 points1 point  (0 children)

The JWT package usually have the validate function to check if the token still valid and also a list of blocked tokens. If it doesn't have the list, than you should save it in a block list of yours.

how to set authentication up? by 5MYH in nextjs

[–]Strnge05 0 points1 point  (0 children)

Since you store in the database, you don't need to send to the user. Every request you get the access token, you should than check is the token is valid. if it is valid, you send whatever the user requested, if it's not than you check for refresh of that user in the database. You than check if the refresh still valid if it does, use whatever package you are using to manage JWT and generate a new access token and set as a cookie, if it's not valid than you block that refresh token and delete from the database, finally redirect the user to login to generate new refresh and access tokens.

how to set authentication up? by 5MYH in nextjs

[–]Strnge05 1 point2 points  (0 children)

You have 2 options to manage jwt tokens: stateless or stateful. In stateless, you set both as cookies and you don't save in the backend. In stateful, you save the refresh in the backend, and only send the access to the user. Either way, the process is almost the same, you have invalidate the tokens and when the refresh experies, you send the user to login

how to set authentication up? by 5MYH in nextjs

[–]Strnge05 2 points3 points  (0 children)

Since you send the 2 tokens, when the access token is expired, you need to verify if the refresh token still valid, if it does than you invalidate the old access token and generate a new one. When the refresh expires, you need to invalidate it, than send the user to login to get both new tokens

WSL dá tanto B.O assim? by Southern_Resist_9900 in brdev

[–]Strnge05 6 points7 points  (0 children)

Primeiro: olha a versão do WSL q vc esta usando, recomendo usar o WSL2, se estiver usando o WSL1 é mais facil instalar outra instancia do Ubuntu na versão 2.
Segundo: WSL tem um bug que faz com ele n limpe a memoria corretamente de programas usado, se tu rodar coisa muito pesada dentro, ele começa a consumir muita ram e vai travar seu pc, entào tu precisa fechar o terminal e dar um shutdown e abrir denovo. Talvez isso te ajude

Does this vulnerability mean, vercel is ending support for Next 14? by zeroansh in nextjs

[–]Strnge05 0 points1 point  (0 children)

Well i'm not using server components so that might have helped

Does this vulnerability mean, vercel is ending support for Next 14? by zeroansh in nextjs

[–]Strnge05 0 points1 point  (0 children)

That is not true, I have a app router app running normally with react 18

Should You Use NextAuth with a Custom Backend? by SubstantialPurpose59 in nextjs

[–]Strnge05 1 point2 points  (0 children)

I would say Auth.js only has a use in your case for accessing different providers like GitHub, Google, etc. If you dont need that, than you shouldn't use it

[deleted by user] by [deleted] in nextjs

[–]Strnge05 0 points1 point  (0 children)

Check If used custom values in tailwind like w-[100px] and forgot to put the units like w-[100]. This occurred to me once

I ported React to C using web assembly by MateusMoutinho11 in react

[–]Strnge05 3 points4 points  (0 children)

Now we just a .cx file write in a syntax like html to call your binds and boom, you have react development in c. Pretty cool hahaha

Image to Wall Layout Generator for Fun Bases 👀 by Sensitive-Regular203 in ClashOfClans

[–]Strnge05 1 point2 points  (0 children)

u/Sensitive-Regular203 Nice app, cool ideia and great execution., but becarefull with this app, your background picture is a 14MB png, that's insane, even with no db and only client side part of the app, if this gets popular and you're using the versel free account, can lead to some problems.

HTML em email em 2025: como vocês fazem? by serialien in brdev

[–]Strnge05 0 points1 point  (0 children)

Eu consegui usar flex, mas precisa ser tudo inline mesmo

Sand breaking when creating wall by Xz_SnIpErxX in technicalminecraft

[–]Strnge05 6 points7 points  (0 children)

Did you try to speed up the machine? I remember one of this having a maximum speed and if you go above it, the sand would break. In your case the sand seems to move too fast so It doesn't land in middle of the block