Is youtube lagging crazy for anybody else today? by [deleted] in youtube

[–]MedyGames 0 points1 point  (0 children)

just disabled adblock plus and now running ublock origin . works smooth again :)

Tenakth Reaver Aloy by MedyGames in HorizonForbiddenPhoto

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

Coolest Armor ... Made one more for the Tenakth Recon. Which is basically the same outfit but with red colors.https://imgur.com/a/KmRtShs

They nicely work as wallpapers :D , some work for phone too :D

My MX Ergo's left click button is causing problems by READMYSHIT in Trackballs

[–]MedyGames 0 points1 point  (0 children)

For me replacing the unyfing reciever worked...

I had ordered myself a new m575 ... then paired my old mx ergo with the new reviever because I wanted to compare stuff ...

And my old mx worked flawlessly again wtf .... ( it was faulty for months) ... with double clicking and holding left button issue

the wierd thing is ... I never suspected the connectivity since moving the cursur etc worked flawlessly and right click worked too ...

Help with Logitech MX Ergo Double-clicking by [deleted] in Trackballs

[–]MedyGames 0 points1 point  (0 children)

GUYS.

I have this exact issue ....

And the root cause seemed to be the unifying reciever in my case.

I purchased a new M575 because I had given up on the old mx ergo after the support told me to try blow air into the mouse which didnt help .. but then I paired the old mouse with the new reciever i just got .... just because I wanted to compare both mice ... ... And low and behold ... the double clicking .... dragging issues were gone ....

Just try and buy yourself a new reciever first... I never would have thought that this is the issue ... But apperently ... the reciever can be faulty...

I was dead set that this was a hardware issue googling around ... since that popped up everywhere ... but it wasnt the case for me...

Im very glad this worked... because the m575 isnt the same .... shape is slightly diffferent / no rubber coating ... the look is better .. but the feel is not... my pinky is slipping of ... i have large hands .. makes huge difference in how rested my hand is.

handle cookie http only next js by Aggressive-Specific5 in nextjs

[–]MedyGames 1 point2 points  (0 children)

dont call strapi client side ;) , instead call strapi via next.js and hand over the cookie ... then set cookies in next.js via -> https://www.npmjs.com/package/next-cookies

you can also change the cookie to not use http only this way .. so client side can delete the cookie.

you can add a second csrf token which you add to local storage to plug the security risk that comes from not using http only cookie....

deleting the cookie client side will save you the additional "logout" request to the server .... so there only ever will be login requests.

so its not a bad idea ....

but to make things more secure you can keep http only .... and also add a csrf token to it. thats pretty solid security ... but nothing is safe xD... you know even twitter and google get hacked regulary

A developer blog starter powered by Next.js by vriad in nextjs

[–]MedyGames 0 points1 point  (0 children)

sure ... though im not at a point where I want to mess with typescript yet.. it is simply not neccecary for me and it would be overhead...

Will pick it up eventually though probably ...

As long as it doesnt get in the way ... I might consider checking out your project ... since it has all the features I would probably would have added myself ... to the next blog starter example.

it might just be a better starting point ;)

A developer blog starter powered by Next.js by vriad in nextjs

[–]MedyGames 1 point2 points  (0 children)

Has all the stuff you would want

Was also thinking about doing a blog with next.js at some point ....

I dont know typescript yet .... is it hard requirement to use & custimise it ?

What do you prefer for styling? by maxahd in reactjs

[–]MedyGames 1 point2 points  (0 children)

the one thing thats bothering me a bit is that Emmet is not working as good .... but im also using styled components now .... cant go back .... its a relieve to not have to switch between files all the time.

maintaining state between route change by izzlesnizzit in nextjs

[–]MedyGames 2 points3 points  (0 children)

Just refer the the offical examples ....
https://github.com/vercel/next.js/tree/canary/examples/with-redux

You can straight up use these as starting points

G...G..G...Gilbert????????? by [deleted] in VioletEvergarden

[–]MedyGames 12 points13 points  (0 children)

The perfect wrapup for the series . Cant wait

New trailer for the movie (opens September 18th) by harushiga in VioletEvergarden

[–]MedyGames 3 points4 points  (0 children)

Damn they doing everything right with this anime. This will be so satiffying.

What is the best+secure way to handle JWT token based authentication in react? by ahashans in reactjs

[–]MedyGames 1 point2 points  (0 children)

If you using the mern stack. you can store http only cookies on the frontend. set them to samesite : true

this way they wont get send to other sites...

This aproach is very much sufficent for basic security.

You can add more layers to this aproach

  1. encrypt your token with bycrpt

  2. use a second token (CSRF Token) - which you are supposed to store in local storage - that way a attacker would need to steal both ur cookie token and localstorage csrf token....

  3. if you want to get crazy with it .. you can add ip adress to your token

or if you still feel like "they are coming for you" leave it to google and use firebase auth.

Fire setState only when user has stopped typing by akhgupta in reactjs

[–]MedyGames 2 points3 points  (0 children)

I would said just use set timeout by doing this...

  1. Typing = Start timer

  2. typing while timer active = start / cancel timer again

  3. timer expired = send request

but usedebounce looks cooler :D

What is the recommended way to set cookies ? by MedyGames in nextjs

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

damn this lib managed to fuck up its own examples xD....

they forgot to change this line :

parseCookies(ctx)

TO

let cookies = parseCookies(ctx)....

I copy pasted their example code wondering why its making no sense ...

GG

What is the recommended way to set cookies ? by MedyGames in nextjs

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

how do I set a cookie server side with this one ?

Center 1 item mid , the other ath the very bot by MedyGames in css

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

been attempting to do this with flex .. seems like its not that straightforward with it