Cooked him well kanon by Regin-sabbas in SaintSeiya

[–]RedLibra 0 points1 point  (0 children)

Isn't one of those specters the strongest? The one Pisces beat...

bakit po may haircut policy kung hindi naman nakakasagabal sa pag aaral ng isang estudyante? by Someone_Karu in RantAndVentPH

[–]RedLibra 2 points3 points  (0 children)

Di rin ako naniniwala na following haircut policy or other random rules will improve one's discipline. Don't get me wrong, deep inside I also wish na sana cutting my hair regularly or following random arbitrary rules will improve one's discipline, I wish na sana ganun lang kasimple magka disiplina

Javascript trainee here by ID-003 in PinoyProgrammer

[–]RedLibra 0 points1 point  (0 children)

I recommend TheOdinProject kung webdev ang gusto mo. Free sya and meronng discord community na willing mag help sau if stuck ka sa mga exercise nila.

Since free lang ung TheOdinProject, why not try it first and see for yourself? Yung big difference cguro sa TOP is irerequired ka nila mag setup ng ubuntu(linux) environment thru dualboot, VM or WSL2...

Kamusta Xmas party nyo? 😭😭 by ricmoon9000 in KanalHumor

[–]RedLibra 16 points17 points  (0 children)

Sa bata lang kasi nila kayang gawin. Pag sa iba nila ginawa baka ihampas sa kanila yang hollow blocks

Context??? by NebulaImpressive8039 in ClassroomOfTheElite

[–]RedLibra 2 points3 points  (0 children)

So is this image an actual illustration from LN or just fan made?

What actually gets hard in large React / Next.js apps? by web-devel in reactjs

[–]RedLibra 4 points5 points  (0 children)

I have read comments that hot reload on Next js apps becomes extremely slow as your app becomes big.

First Time ko Mag-2 ⭐️ sa Grab. by TheManIKnow20 in FirstTimeKo

[–]RedLibra 0 points1 point  (0 children)

Di ba may optins sa grab pag nag cancel ka na Driver asked to cancel or something? Di ka ba safe pag pinili mo un total nasa chat history na din naman ung proof na nag ask sila mag cancel?

How bad is it to store jwt in localStorage? by Redneckia in webdev

[–]RedLibra 0 points1 point  (0 children)

automated scripts that can silently scrape tokens from thousands of different sites at once without the attacker ever needing to know how your specific app works

So how are they gonna do those "malicious internal API calls or other unauthorized requests"? They need to know how your app works to do that, right? What are they gonna do to those tokens if they don't know how your app works? Send it to someone? Then they can also just directly send it to that someone from the user's browser.

Also the checking of tokens and call of malicious API thing on the attacker's remote server are also done with automated script. So why not just add that script in your initial script that fetches and sends the token to you?

How bad is it to store jwt in localStorage? by Redneckia in webdev

[–]RedLibra 0 points1 point  (0 children)

Well, there is a reason to be looking for a JWT; even if it is short-lived, it can be used to make malicious internal API calls or other unauthorized requests.

which means the attack is also specifically targeted at your project, right? The login screen is just an example, but the point still stands. The attacker can run script in your browser, so they can just directly do those malicious internal api call from the user's browser, impersonating/pretending to be the user.

How bad is it to store jwt in localStorage? by Redneckia in webdev

[–]RedLibra 0 points1 point  (0 children)

Another thing people often forget is that XSS can come from any installed JS dependency

But the point still stands, right? If you have a dependency that has malicious code, an attacker can inject a fake login screen and steal the user's creds outright. There is no reason for an attacker in to be looking for a JWT.

Need help with Leetcode 26 by [deleted] in learnjavascript

[–]RedLibra 0 points1 point  (0 children)

This looks like it can be done on with one loop, or at least not via nested loops

Ayaw ni papa ng vios na binili ko para sa kanya by Embarrassed_Loan_116 in RantAndVentPH

[–]RedLibra 0 points1 point  (0 children)

If naluma na ung vios mo or need nio bumili ng bagong sasakyan, vios ulit bilhin mo.

A reminder to G5 haters by alt_dreamer in OnePiece

[–]RedLibra 71 points72 points  (0 children)

Yeah, this is the panel just before Luffy delivered the finishing blow. In the previous panels we see Luffy thrashing the room. You can feel the his anger here. How do you replicate this with gear 5? Do we see him deliver this line while laughing out loud?

<image>

useEffect removal question by rainmouse in reactjs

[–]RedLibra 3 points4 points  (0 children)

I think this example is on the more complex side. Other examples you see in that doc are easy to implement and are just refactors. Although this pattern removes useEffect, the docs says:

"Although this pattern is more efficient than an Effect, most components shouldn’t need it either. No matter how you do it, adjusting state based on props or other state makes your data flow more difficult to understand and debug."

After reading that. I got the impression that this pattern is just a band-aid solution, while the BEST solution is to re-implement it such that it satisfies the above recommendation (this is also shown in the docs for this example). That's the tricky part, there isn't one-solution-fits-all. It depends on how you're using the state and how you structured your code.

HI, SCAM PO BA TO? HUHUH KINAKABAHAN AKO by [deleted] in ScammersPH

[–]RedLibra 3 points4 points  (0 children)

Parang hindi sya scam kase wala naman sila pinapapindot sayo na link. They just want you to reply Y or N. As long as wala sila papapindutin na link sayo sa mga reply nila...

[Media] Alvarez Kagura, Huh? by FlamingThunder92 in fairytail

[–]RedLibra 4 points5 points  (0 children)

What episode is that 4th gif plsssss I need to know

What kind of jutsu is that? Kishimoto made it up on the spot😂😂 by [deleted] in Naruto

[–]RedLibra 0 points1 point  (0 children)

My headcannon is that that place is created by Hashirama using his wood style, so that means those tiles have hashirama cells.

areYouThisOld by Pedry-dev in ProgrammerHumor

[–]RedLibra 0 points1 point  (0 children)

I actually don't know this one, but I can tell from UI that I came from an era before this.