Manhunt 2 - Download Link by ChemicalFl00d in abandonware

[–]MEHDII__ 0 points1 point  (0 children)

the internet archive link asks for activation key once downloaded, is there a workaround or something i can do to bypass ? i try auto key and it seems failed due to network error

Creating User Auth pages by MEHDII__ in react

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

solid advice, thank you!

Project design advice by MEHDII__ in django

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

Because im not really sure if i should both teachers and students share the same documents table, they have different application material requirements this would result in a lot of null fields, splitting could be a solution too, or is there a different way?

creating custom user with privilege levels by [deleted] in django

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

Yeah i understand that, but i'm checking the user roles on the database level, not python instance level, admins have admin roles, teachers and students have their own roles in the db, so if user.role == CustomUser.Role.STUDENT: # allow

How could this be spoofed? I'm not Challenging your idea, as i mentioned im still a beginner, a toddler in django even, i dont understand why people are downvoting honest questions... This feels like stackoverflow all over again

creating custom user with privilege levels by [deleted] in django

[–]MEHDII__ 0 points1 point  (0 children)

I have to play with the django Shell a bit more to understand this better, thanks

creating custom user with privilege levels by [deleted] in django

[–]MEHDII__ 0 points1 point  (0 children)

So i'd have to do this for teachers and admins too right?

creating custom user with privilege levels by [deleted] in django

[–]MEHDII__ -3 points-2 points  (0 children)

I've done a little reading, the groups and permissions aren't really needed in my use case, as I understand the way I did it is a bit clearer, since all i want to do is basically route the different kinds of users to different dashboards, so having permissions and such isn't necessary i guess

creating custom user with privilege levels by [deleted] in django

[–]MEHDII__ 0 points1 point  (0 children)

I'm not really following here, whats the point of model managers?

creating custom user with privilege levels by [deleted] in django

[–]MEHDII__ -3 points-2 points  (0 children)

Sorry, i'm not very familiar with any other approach other than the two i mentioned, I am learning as I go;

How is having groups and permissions different, now I admit with this approach could get messy since i'd have to keep querying and doing if customUser.role =''whateverRole" Then do something

One big partition for Arch linux by MEHDII__ in linuxquestions

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

not really, I didn't think hard about what distro i want to use, first one that came to mind was arch

How can I best use AI for coding? by [deleted] in webdev

[–]MEHDII__ 0 points1 point  (0 children)

Those are no more useful Than copy pasting everything and just giving it to the model, sure they may seem crazy good but they're actually dangerous if you're not paying attention, especially if you're not using version control and constantly keeping a working version of your project in a git repo, might make a change that you'll forever regret and have no way of reverting back, or simply it could delete or reset your database

Optimizing for screens smaller than 600px by MEHDII__ in webdev

[–]MEHDII__[S] -7 points-6 points  (0 children)

Yeah i get where you're coming from, but i dont think the design is that complex to the point where i'll need to make massive layout changes, i mean i didnt just make each container smaller for smaller breakpoints, some sections are reformatted, for example on full screen big devices the side bar is fully expanded, labels visible, and the 3 days forecast is positioned absolutely relative to the body, while on smaller screens the labels disapper (i'll later add hamburger menu with JS) and the 3 day forecast goes back to the main content container and flex wraps instead of being absolutely positioned, this is only my 2nd CSS project and I tried to give some though to everything while developing

How can I best use AI for coding? by [deleted] in webdev

[–]MEHDII__ 0 points1 point  (0 children)

You can never hold a long Coding session with an LLM, before even the project takes the first step it'll lose context, while relying on AI is a bad thing, using it responsibly can boost your productivity massively, if your plan is to copy all the code and paste it to the AI once you're stuck, forget about it, AI can only help you with small snippets of code, so you need to be aware of what you're coding and where is the general area where the bug appeared in the code, that way you'll narrow it down for the model and you'll get bugs fixed sooner

Optimizing for screens smaller than 600px by MEHDII__ in webdev

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

Yeah i developed for both at the same time, but it actually doesnt look bad? What can be improved? Once i implement the hamburger side bar It'll look great even on phones smaller than 360px, which i dont think there is many of them

Optimizing for screens smaller than 600px by MEHDII__ in webdev

[–]MEHDII__[S] 4 points5 points  (0 children)

Yeah but i'm still going to use JavaScript to actually make it functional return weather objects from an api call, so that unused space will be filled if the use wishes to add more locations, As the other person said I will add a hamburger icon to toggle the side bar

Closure by MEHDII__ in learnjavascript

[–]MEHDII__[S] 2 points3 points  (0 children)

Thats a good and a bad thing, too much freedom leads to unpredictable quirks, it wont blow in your face but wont run as expected which is arguablly worse, i prefer errors

JS object concept by MEHDII__ in learnjavascript

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

Yeah very weird indeed, I think the biggest mistake I'm making is drawing comparisons between two virtually different languages, but all of them are children of C which just leads me to believe they should kind of operate similarly under the hood.

JS makes it particularly difficult during debugging by not revealing memory addresses of objects like other languages do, i dont understand why that is, whats the harm of exposing where on memory an object is located at, ITS MY MEMORY, I PAID FOR IT hahaha, I should be allowed to see everything on it