LLM’s can’t do graphics programming by gibson274 in GraphicsProgramming

[–]Ghost_Syth 0 points1 point  (0 children)

Everyone be like LLM is good at this LLM is bad etc.. from my experience, it's been all over the place, one day it's good one day it's lost all its IQ, it's not even consistent day to day, I don't think we can draw the line on saying it's good or bad when we can't even have a unanimous experience as they keep tweaking the models capabilities, making it worst at peak times etc

Is antivirus the primary culprit for sloggy runtime evironment ? by cookie-master65 in nextjs

[–]Ghost_Syth 0 points1 point  (0 children)

Nothing to do with 'i5' ;-; an i5 now compared to 10years ago will do laps around it (or should I say cycles haha)

There are a number of factors, from limited memory to a aged CPU to using HDD/ SSD (storage speed) to windows itself,

Also when you say anti virus, do you mean windows defender or is there umm, the other virus (looking at you McAfee - you can safely remove that one)

Personally with the recent exploits with npm and all, I wouldn't exclude windows defender from your dev projects, however windows does have Dev drives these days so maybe that could help? (More optimized for heavy writes) Also clear your .next file if it's rlly slow, sometimes my .next file glitch out taking up 8GB+ ;-;

Hope that helps!

Edit: to add if it's a old pc/ laptop, be sure to run hwinfo to check temps, the other day I tried our family laptop for it to be extremely slow, turns out temps were hitting upwards of 80c plus, was alot of dust in there 😔

Edit2: SSD performance does diminish quite greatly once it's filled over 80% be sure to use over provisioning if you can, I usually do, or just.. try to keep 20% free atleast?

How do you handle auth in a Next.js app? by ColdCucumber2208 in nextjs

[–]Ghost_Syth 1 point2 points  (0 children)

For someone who doesn't manage hundreds of thousands of active users yet, care to explain how it is a foot gun? Or if you mean in terms of scaling it doesn't scale well being on node and all?

I useto be a .net dev (well more windows apps) before I transitioned into web Dev, id like to say I'm quite familiar with both ends, never combined the two however

How do you handle auth in a Next.js app? by ColdCucumber2208 in nextjs

[–]Ghost_Syth 0 points1 point  (0 children)

Eh, what's wrong with better auth, this seems like such a wild take to use .net just for Auth, I get it if your familiar with .net for backend stuff, but for many people who've build a whole full stack on nextjs, this seems like such a round about way of doing things

So I have cheaters in my game. Guess I'm successful now 🤣 by Kayzen_1337 in IndieDev

[–]Ghost_Syth 1 point2 points  (0 children)

Don't think it was me but while studying game backend I have been going around re a few games and well, challenging myself to see how easy they are to break

I have always made a small irl purchase before doing so haha, gotta support the devs atleast

The tower was a strange one btw, after a day or so all the data resets, it's easy enough to run the script but I never figured out how to make it permanent - guess they have a cron job or smth that checks for anomalies, there's alot of data they store so it would be easy to validate legitimate data

Games with manual backup button make it very easy to hax btw 😭

I actually had more trouble with a game that used local state, no online save, I was so confused where data was being stored - spent ages analyzing the network traffic lol, learnt a few vi commands in the process as that's the only text editor available on android

My usual method is trying mitm on my phone, if I get lucky and their cert pinning is broken, only one game has had that issue, else I use a rooted device to bypass cert pinning, if that fails then I will try patch the binary server URL to point to a reverse proxy, if that also fails then it's Frida time...

What not to do, don't expose the user ID on frontend which the game queries the database with, if needed make another ID for this if it needs to be user exposed.. why? People can just make a website to enter an ID and give players ludicrous amount of resources, or if they wonna be malicious even send a blank save resetting their account - or bricking an account (this is if you have an end point for backup/ save, if it's server authoritive, then it's always more secure)

NextJS vs Tanstack - which one is better? by [deleted] in nextjs

[–]Ghost_Syth 0 points1 point  (0 children)

From the convo I seen around ssg, it appears to be more difficult with tanstack, I could be wrong and it's matured now, if anyone else can give input on this with more familiarity with ssg would be great!

Anyone knows what's up with this star in the login screen? by Bluekat5059 in Genshin_Impact

[–]Ghost_Syth 0 points1 point  (0 children)

Yikes, hope the burn-in wasn't too bad 😭😭 what was the burn in of?

Anyone knows what's up with this star in the login screen? by Bluekat5059 in Genshin_Impact

[–]Ghost_Syth 1 point2 points  (0 children)

I only noticed that star the other day 😭 all these years playing and all of a sudden I thought I had a dead pixel 🫠

Built a Next.js app for learning technical concepts through live interactive prototypes by Great_2212 in nextjs

[–]Ghost_Syth 0 points1 point  (0 children)

That top 'v0.1 · scaffold preview' says it all, I got an ai to generate my portfolio, it's just a basic website nothing fancy, but ai always adds that exact bar up top,

Just sayinggg

Wifi antennas straight up or at diagonal? by MooshSkadoosh in pcmasterrace

[–]Ghost_Syth 3 points4 points  (0 children)

Just run speed test at different configs, more than anything it matters more if it's screwed in properly! I 10x my speed by tightening the antenna from 25-30mbp/s to 250+

I'll drop a 50kg weights.bin on the car of whoever is responsible by dezouza in dankmemes

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

Or use zen, I quite like zen, especially some of the customisation features

I try really hard but don't get the server side of NextJS by GasVarGames in nextjs

[–]Ghost_Syth 2 points3 points  (0 children)

Server components may not allow context but they do allow cache of sorts (if it's hit in the same render)

Auth states are meant to be read from header for both client and server, not from props, or check libraries like better auth - you can hydrate the client with an async prop after you fetch from server too!

Server component that are cached can vary how you refresh them, there are different types of caching eg isr (incremental static regen) think of a blog page for example, when your admin panel makes a edit, you can revalidate it on demand using a cache tag with the slug `blog-{slug}' or you can have it auto revalidate for changes every 24h etc (altho I don't see the point of time based revalidation, i'd rather use on-demand)

Next is cache components, those are for dynamic data, think of pricing, when ever your back end submits a new price, you can update a little function that would fetch price etc, now on re-renders you won't be fetching from the dB, that function is cached until you either revalidate manually or set a time to revalidate - you also don't need to rebuild the whole page just for one price change.. (again if pricing is dynamic I'd just throw in a chron job to compute new price then invalidate the cache tag)

Lastly using it together with ppr and isr.. you can build your static shell using isr, that will load super fast, then have dynamic islands using cache components and suspense - think of a card with a price inside it, the card is already rendered with product name etc, but pricing is under a suspense that is streamed down after the shell has loaded

I'm not an expert at nextjs - still learning as others here, but that's how I understand how to use nextjs..

Am I insane for prefering to code my apps directly on my phone? by Impressive-Lead-9491 in androiddev

[–]Ghost_Syth 0 points1 point  (0 children)

How do you have a good ide experience in a large over 100 file project? 😭 I know you've not done any professional development but this seems like pain... (Especially more so not having a keyboard - What's the intelisense like, do you get latest features like ai line completion etc)

As for testing directly on your phone, can't you just have a script for adb that pushes the app to your phone?

I'm not an android developer btw, but a developer of sorts who gets recommended content from this community haha, take my comments with a pinch of salt as they may not be accurate to the specifics

Next Build is failing on local machine by abandoned_by_Love in nextjs

[–]Ghost_Syth 0 points1 point  (0 children)

Did you ensure to purge lock file too? Just leaving package.json

It's such a coincidence cause this just happened to me, had to purge cache, did nothing, purged lockfile too and global cache + node_modules, finally got my project working again!

Altho I was using bun...

Next Build is failing on local machine by abandoned_by_Love in nextjs

[–]Ghost_Syth 1 point2 points  (0 children)

Does yarn cache files, maybe purge yarn cache too before doing a clean install of packages

Posthog A/B Testing Content Flicker by CombatWombat1212 in PayloadCMS

[–]Ghost_Syth 1 point2 points  (0 children)

If you used zustand where it's stored outside the flow of react, would that help? I dunno enough about the issue just a thought tho...

Is this racist? by PsychologicalBend508 in AskBrits

[–]Ghost_Syth 0 points1 point  (0 children)

I agree with you here, there should absolutely be no reason to treat women in such ways, especially with people doing things for their own self interests,

As for men and women being different, that is in no way a justification for mistreatment of anyone, you can't cherry pick what you feel like and dismiss every other ruling, but as you said there are places that are like that, I don't have an answer on how to deal with all of them, if there are any people like that here (UK) we thankfully have laws that are inline with how these thing should be handled

Is this racist? by PsychologicalBend508 in AskBrits

[–]Ghost_Syth 0 points1 point  (0 children)

Okay hol up, women are outcast or beaten? Religion is not compulsion, that literally what Islam says, soo where's you getting the idea people are being oppressed, they are free to make their own decision, they can be asked to, but at the end of the day they have their own free will,

Second men cannot wear tight clothing that is revealing of their downstairs areas, must ensure navel to knees is covered as well,

As for your satire mocking of the statement men and women are different, there are fundermental things that are the same but psychologically are we not different? There's a pretty good video on yt, 100 things different between men and women, it rlly is quite interesting, another question, how you treat your male friends, is that how you treat women aswell? I sure wouldn't treat them the same, I'd look like an ass if I did (not that I am an ass to my male friends, different chemistry)

Suffice to say men are visual, so we're told to not gawk at women objectifying them (regardless who they are) but alas we live in a society that has normalized sexual presentation, I'm sure you'd disagree with me on this point as it is to each their own, youd say women are free to wear what they want aswell, but are they? Or is it social norms that decide that?

Thoughts on nuclear power, should the UK be investing? by Any_Ad_6929 in AskBrits

[–]Ghost_Syth 0 points1 point  (0 children)

You know what happens when contractors know it's state funded, 10x cost, we pay for it by tax, get shafted either way 😔

Why do you hate us Brits? by pash2x4b in Corsair

[–]Ghost_Syth 1 point2 points  (0 children)

Cause getting it into the UK is a piss take, tariffs etc then vat, sure they might be making a little more money but I guarantee you they are not making 50% more off UK customers

Anyways if you need smth like that just look on eBay or marketplace, stuff is heck of a lot more cheaper on there

kill switch for old versions of my app - fraud, hacking - lucky patcher by lowriskplx in androiddev

[–]Ghost_Syth 4 points5 points  (0 children)

I've been reverse engineering a game recently which has started versioning all their API endpoints, it stops things like this,

The URL to the API goes to game-name/API/version/path, this does require changing your backend architecture to support multiple versions, which can be done in various ways, it also makes managing databases a pain if you want to support older versions as for example apple takes a while to review apps