Jump to content

shadowss

Member
  • Posts

    144
  • Joined

  • Last visited

Everything posted by shadowss

  1. thats very fair i know how the cloud 2 sound cause i bought a pair for a friend as a gift some years back guessing the wireless ones does not sound different or much different than the wired and they would def be a lot worse than the ones i currently have but ill give it that hyperx usually are quite sturdy i know a friend of mine have had steelseries headset for years but going off one person when it comes to choosing does not make me happy thats why i ask around what other people would recommend
  2. can see that i could get a SteelSeries Arctis Nova 7 wireless for 129 us dollars where cheapest i could find of the hyperx cloud wireless would be hyperx cloud 2 and 3 wireless for 187 do you have any experience on the steelseries and would it be worth buying that instead maybe ?
  3. again have tried detachable cables and headset with non detachable cables before many times and no matter what the cable always end up breaking even the charging cable on this headset is partially broken to the point where the metal is exposed so for me wireless is better and i also found it less annoying to not have a cable that goes infront of me or goes in the way constantly so again im very sure i would want a wireless headset again for the simple reason for my usecase its just better and easier for me to take care of after all the amount of time i had this equal to the amount of time i usually had around 3 different other headsets a thing there would also happen with headsets would be i would forget there was a cable or that i had a headset on and sometimes just yank out the cord or pull the cord tightly this has happen many times with other headsets never really happen with this cause well its wireless
  4. i know wired are far cheaper but at the same time i have gotten so used to wireless and find it much better for my usecase since usually when i buy wired i have to change it out every like 1-1 and a half years cause wire is broken
  5. Hello im on the lookout for a new wireless headset since my logitech g pro x just broke after think 3-4 years (had them for a long time so cant remember how old they are)of use the little plastic thing holding it came open and cant close again could fix it with some tape but not sure how well that would be would like to hear some recommendations since well as you can hear i have not shopped for wireless headset for a while and when i look at them seem like most people are recommending headset that are way more expensive than these was these were around 100 us dollars expecting to use a max of 150 us dollars
  6. nope was not confusing it with storage its just the memory that constantly increase does not decrease its become better now we found out that its how the server provider has made it where we use a plugin or mod cant remember which it is called spark that show that it actually increase and decress did ask the server provider and their excuse is that ram just never unloads and only stores more and more on the cache so it would only increase in ram usage which in my head dont make any sense and im pretty sure thats not how ram works but thats how they run their stuff
  7. ok i have a question which you all might be able to answer should the memory of a minecraft server never decrease like fluctuate like the cpu usage or should it always increase aslong as the minecraft server is open ? simply wanna know if i misunderstood how memory usage work on a server
  8. thank you this helped me a lot think i have looked at code for too long been about 8-9 hours by now with only 1 break
  9. hello im a student and are trying to get my program to make it so only the person that has written the post is able to edit it but honestly not sure how to we have done so everyone can edit it and so you can only edit it when a person is logged in(doesen't have to be the user) but thats about the limit so im now asking if any of you have an idea as what to do i would be expecting it to be something to do with sessions but honestly not sure ill send the code for editing post here thanks in advance for help im also only allowed to use php, html and javascript <?php // lavet af ida, troels og jonas require_once '/var/www/wits.ruc.dk/db.php'; session_start(); // her starter vi en session if (isset($_SESSION['brugernavn'])) { $pid = $_GET["pid"]; // definere pid fra post $uid = $_GET["uid"]; // definere uid fra post $post = get_post($pid); // vores get_post så vi har adgang til hvad der er i vores post if (empty($pid)) { // if statement til at sige hvis du ikke har pid så vis echo echo "Udfyld venligst et pid i URL'en"; } else { // hvis vi har pid så skal den bare give os det nedenstående $title = $post["title"]; // definere yderligere title fra post $content = $post["content"]; // definere yderligere content fra post $postuid = $post["uid"]; // definere yderligere uid fra post if (!empty($pid)) { // if statement til at sige hvis du har pid så vis de 2 echo i if statement echo $post["title"]; echo $post["content"]; } if ($uid === $postuid) { // if statement til at sige hvis uid er lig med uid i post så udskriv det nedenfor ?> <!DOCTYPE html> <html> <head> <title>Opret Indlæg</title> </head> <body> <h1>Opret Indlæg</h1> <main> <form action="rediger.php" method="GET"> <!-- form for at link til vores php document--> <label for="uid">Uid:</label> <!-- vores uid label --> <input type="hidden" name="uid" id="uid" value="<?php echo $postuid; ?>" required> <!-- input som uid label tager er gemt fra bruger--> <br> <input type="hidden" name="pid" id="pid" value="<?php echo $pid; ?>" required> <!-- input som pid label tager er gemt fra bruger--> <br> <label for="title">Titel:</label> <input type="text" name="title" id="title" value="<?php echo $title; ?>" required> <!-- input som title label tager --> <br> <label for="content">Indhold:</label> <textarea name="content" id="content" rows="4" cols="50" required> <?php echo $content; ?> </textarea> <!-- input som content label tager --> <br> <button type="submit" name="modifybutton" >Submit</button> <!-- vores button som vi bruger php til at ændre opslag på serveren--> </form> </main> </body> </html> <?php } } } ?> this is the first document now the second document that works together with this one <?php // lavet af ida, troels og jonas require_once '/var/www/wits.ruc.dk/db.php'; session_start(); // her starter vi en session $addbutton = $_GET["addbutton"]; // definere addbutton fra post $modifybutton = $_GET["modifybutton"]; // definere modifybutton fra post $pid = $_GET["pid"]; // definere pid fra post $uid = $_GET["uid"]; // definere uid fra post $title = $_GET["title"]; // definere title fra post $content = $_GET["content"]; // definere content fra post if (isset($modifybutton)) { // if statement så vi kan ændre i post hvis vi har modifybutton tilgængelig modify_post($pid,$title,$content); // for at modify vores post } if (isset($addbutton)) { add_post($uid,$title,$content); } ?>
  10. thats the function to be able to login we found out how to do it we just added this $logget_ind = login($_POST['uid'], $_POST['password']); } else { $logget_ind = false; // Indstil logget_ind til false, hvis kravet ikke er opfyldt and changed the submit button to this <input type="submit" id="submitButton" value="Log ind" style="display: none;">
  11. Hello im a student which is trying to make a program which checks if my password is 8 chars long otherwise people should not be allowed to login but cant really get it to work im only allowed to use javascript, php and HTML could any of you look at my code and maybe point me toward something or say what im missing here to be able to check if the password is 8 chars long and only login if it is? <?php // lavet af ida, jonas og troels session_start(); // her starter vi en session ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> </head> <body> <?php require_once '/var/www/wits.ruc.dk/db.php'; if(isset($_POST['uid'])){ // vi siger hvis $_post['uid'] er tilgængeligt så kør koden under add_user($_POST['uid'],$_POST["uid"],"tea","12345678"); // her tilføjer vi bruger til at gøre så vi kan logge ind med den $bruger = $_POST['uid']; // her definere vi vores bruger $logget_ind = login($_POST['uid'], $_POST['password']); // her logger vi ind ved hjælp af uid og password some vi skriver i form if (strlen($_POST['password']) >= 8) { $logget_ind = login($_POST['uid'], $_POST['password']); // Forsøger at logge ind med angivet brugernavn og adgangskode. } if ($logget_ind === true){ // her siger vi hvis logget_ind er true så skal den kører kode eller så skal den sende os tilbage til login $_SESSION['brugernavn'] = $bruger; header("Location: opret_opslag.php"); // her sender den os til vores andet sted på hjemmeside setcookie("brugernavn", 8, time() + (2*60000)); // dette er vores cookie som siger navn for den er brugernavn, value er 8, og tid er time + 2*60000 som er tiden før den løber ud exit; } else { header("Location: login-side.php"); exit; } } else { // her er vores form echo <<<END <form method="POST"> <label>Navn</label> <input type="text" name="uid"> <br> <label>Password</label> <input type="password" name="password"> <button onclick="checkPasswordLength()">Tjek kodeord</button> <input type="submit" value="Log ind"> </form> <script> function checkPasswordLength() { var password = document.querySelector('input[name="password"]').value; // Henter kodeordet, som brugeren har indtastet. if (password.length >= 8) { // Tjekker om kodeordet er mindst 8 karakterer langt. document.getElementById("submitButton").style.display = "block"; // Viser submit-knappen, hvis kravet er opfyldt. } else { alert("Kodeordet skal være mindst 8 karakterer langt."); // Viser en fejlmeddelelse, hvis kravet ikke er opfyldt. } } </script> END; } ?> </body> </html>
  12. yea didn't see it was send to login page cause been looking at code for too long thats my bad
  13. its not send to login_page it was send to opret_opslag sorry send the wrong thing inbetween have been coding all day today and yesterday
  14. nope cant access with either code without being logged in and your code i cant access it in general with the code i send you i changed it to which is if (isset($_SESSION['brugernavn'])) { // Redirect to login page } then i can access opret_opslag.php when im logged in which is the desired behaviour and not when im not logged in
  15. no in your code i cant access it whether i am logged in or not with the thing i changed then i can access the webpage if im logged in so if there is a saved session and if there is not a saved session/ im not logged in then it does not show the page and header("Location: login-side.php"); exit(); this piece of code is just throwing me back to the login page if i change the isset from !isset to isset which is what i would exspect it to do
  16. yea i need to see if the user is logged in then they can see the page otherwise they cant
  17. found out i should have the if statement like this if (isset($_SESSION['brugernavn'])) { // Redirect to login page } instead of like this if (!isset($_SESSION['brugernavn'])) { // Redirect to login page header("Location: login-side.php"); exit(); } but you helped a lot for me to figure it out so thx for the help
  18. yea thats right thanks ill try that
  19. hello i am a student that doing an assignment where im trying to make a login system only using php and html im able to login and get back to the loginside with a logout button but i need to not be able to access the side unless i login but not sure how to not sure if it is cause its not destroying the session or not at all starting the session or something but for some reason its not working hope you all can help me here is the code i have so far
  20. ok ill take a look at those thx a lot for the recommendations
  21. Hello i would like to ask i need to find a good new case for some specific parts the parts in question is Asrock X570 Phantom GAMING 4 (90-MXBAU0-A0UAYZ) motherboard 4070 graphic card ryzen 7 5800X3D which need to be able to fit in it also need to be able to maybe fit a cooler for the cpu there is not gonna be water cooling in the case only air cooling would like to ask what recommendations any of you could give for a case with good airflow for these parts
  22. yea i fully agree it would be better to wait till black friday not sure if he can though and we are from denmark but think for him something like the crucial p5 plus 2tb which is 151 dollars here the Western Digital SN850X is about 187 dollars here for a 2 tb so either of them i think would probally be fine for him he has 1500 dollars a month to upgrade but rn he just need a new hard drive cause hes 2 just died like 2 days ago 1 still turn on but he cant really download anything took him like a whole day for 20% of a single windows update yesterday so might aswell say thats dead
  23. yea but thx for the advice and suggestion always nice to also hear what other people would choose
×