Jump to content

MSVSora

Member
  • Posts

    57
  • Joined

  • Last visited

Everything posted by MSVSora

  1. I'm just doing it for fun really, I know I could build something far better, for far cheaper and a lot more dense, but its just for fun and completely theoretical. Also using it as a bit of a learning experience when it comes to server hardware as obviously there are some significant differences. So as it is propitiatory, there would still be the option of measuring out and making my own standoffs, in this case what other case manufacturers would be good to look at?
  2. So I am currently playing about with a theoretical build using the lga 1567 socket, gathering a list of the parts and all that, but so far when it comes to the case I am struggling a bit as I have never worked with server cases before. So the motherboard that needs to fit in this case is the Supermicro X8QB6-F (http://www.supermicro.com/products/motherboard/Xeon7000/7500/X8QB6.cfm). Which according to the spec sheet has a propietary form factor, so the main thing I am thinking of here is that the standoffs might not fit just because the board itself fits inside a case. While supermicro have their own cases that would fir this board, I am curious to see what other options would be available but could use some advice. Thanks in advance
  3. Could you please give a bit more detail on what you mean? Dont really understand what you mean
  4. So I have recently set up my new PC and everything seemed to be working fine, until suddenly it wasn't. It started with the keyboard dropping for a second then connecting again but not sending any input (LEDs flashed off and on again like a refresh), then after a bios update and some driver updates it started happening with the mouse. After that I restarted again and now the keyboard is doing it again. If I unplug the device and plug it back in again it works for a short period of time before stopping again. I have tried googling a bit and it seems to possibly be an issue with the Usb3.1 driver but I cant seem to find any installers for the driver to go back to an older version.I am unsure of what to do and could really use some advice. Thanks in advance
  5. It checks to see if you have any guesses left, if you do then it prints the text, if not then it doesnt
  6. Try setting it to the teamspeak server's queryport instead, default is 10011
  7. This is probably due to you calling to the wrong host/port
  8. In your else statement add "if(i != 0){ your string thingy; }" <- this way only if you have tries remaining will it output the message
  9. $botModeSelect = $("<select id='botModeSelect'><option value='red' class='btn-danger'>Bot color: Red </option><option value='black' class='btn-black'>Bot color: Black </option><option value='random' class='btn-random'>Bot color: Random </option><option value='trainMode' class='btn-train'>Bot mode: Train </option><option value='rainbow' class='btn-rainbow'>Bot mode: Rainbow </option></select>");$botModeSelect.addClass("btn-danger"); All this is on one line, all I can say is, bad
  10. This shouldn't really compile as far as I can tell, you have 1 too many brackets, though this may just be the way you have done your indentation. Anyway I would recommend you define a bool above the while something like "bool usedCorrectPassword = false;" and then in your if after you output the in years ect but before the break you add "userCorrectPassword = true;" and then on the cout for "Have exceeded the limit... try later." you surround it with "if(!usedCorrectPassword)". That way you will check so if they use the correct password, and if they did you wont output the text
  11. A switch case is written by doing the following //enums also work here switch(integer variable) { case integer value: //code here break; case integer value2: //code here break; default: //code here break; } Though this wouldn't help you much, personally I would write the code something like this const int maxNrOfTrys = 5; for (int i = 0; i > 0; i = maxNrOfTrys; --i) { cout << "Enter your password "; getline(cin, input); if ( input == "P@ssw0rd") { cout << "In " << years << " years, $" << D << " deposited per month will grow to $" << S ; break; } else { cout << "incorrect, password! " << i <<" more try limit\n"; } }
  12. The problem you are seeing here is because of your scope. In C++ a scope is defined by the '{' and '}' brackets. When you use "if(bool) statement;" it basically just creates the scope for the single line, so when you are trying to use break, it creates it after that scope, so your code actually looks something like this while(true) { if (i == 0) { break; } i = i - 1; cout << "Enter your password " ; getline(cin, input); if ( input == "P@ssw0rd") { cout << "In " << years << " years, $" << D << " deposited per month will grow to $" << S ; } break; else { cout << "incorrect, password! " << i <<" more try limit\n"; } } while what you probably want is something more like this while(true) { if (i == 0) { break; } i = i - 1; cout << "Enter your password " ; getline(cin, input); if ( input == "P@ssw0rd") { cout << "In " << years << " years, $" << D << " deposited per month will grow to $" << S ; break; } else { cout << "incorrect, password! " << i <<" more try limit\n"; } } also rather than and a while you probably want to use a for loop
  13. Learning from a structured course isn't always a bad thing, can be good for getting the basics without getting a bunch of gaps in your knowledge. The docs only really help once you have a basic understanding of the language, or know a few others beforehand
  14. window.location.href = "http://www.google.com"; while (document.readyState !== "complete"); document.getElementById("username").value = "user"; document.getElementById("password").value = "pass"; document.getElementByID("Submit1").Click(); LinkHref = "http://www.google.com"; while (document.readyState !== "complete"); var elements = document.getElementsByTagName("a"); for(var i = 0; i < elements.length; i++) { if(elements[i].getAttribute("href").toLowerCase() == LinkHref.toLowerCase()) { elements[i].click() break; } } So basically @xQubeZx add this as a bookmark (just replace the LinkHref, username and password, window.location.href values) javascript:window.location.href = "http://www.google.com"; while (document.readyState !== "complete"); document.getElementById("username").value = "user"; document.getElementById("password").value = "pass"; document.getElementByID("Submit1").Click(); LinkHref = "http://www.google.com"; while (document.readyState !== "complete"); var elements = document.getElementsByTagName("a"); for(var i = 0; i < elements.length; i++){ if(elements.getAttribute("href").toLowerCase() == LinkHref.toLowerCase()){elements.click()}} Edit: fixed a couple of bugs
  15. Not sure about VBScript but you could create a bookmark with javascript that did what you wanted, unsure of what your foreach loop is supposed to do at the bottom but the first part of the code is super easy window.location.href = "http://www.google.com"; while (document.readyState !== "complete"); document.getElementById("username").value = "user"; document.getElementById("password").value = "pass"; document.getElementByID("Submit1").Click();
  16. No problem you can find it listed in the community standards here -
  17. I believe sentinel will do what you need, may be a bit overkill for your project but something to look at https://cartalyst.com/manual/sentinel/2.0
  18. What kind of backend you running? Nodejs, LAMP/WAMP/MAMP, Wordpress? A bit more information on your web server is needed
  19. Indie games aside, there are a lot of programming jobs involving the games as well, gameplay, AI, Audio, Animation(though that is usually more on the engine side of things), Physics (again towards the engine side), Network, UI, Online, Mobile the list goes on. The larger the game the more you will find programmers working directly with the game rather than just the engine. It is a huge industry and a lot of companies have a lot of different workflows so I don't see why it would be any issue for him to want to focus on just the programming of games
  20. No problem, glad you got it worked out
  21. Not an SQL expert but something like this? SELECT SUBQUERY.Title, SUBQUERY.Composer FROM ( SELECT shows.Title as Title, shows.Composer_Name as Composer, casting.Dancer_ID as Dancer_ID FROM shows INNER JOIN casting ON shows.Show_ID=casting.Show_ID ) AS SUBQUERY INNER JOIN dancers on SUBQUERY.Dancer_ID=dancers.Dancer_ID WHERE dancers.Country='England' Edit: To setup the database in my mysql setup had to change a bit of your initial SQL code to drop table if exists casting; drop table if exists shows; drop table if exists dancers; create table Shows( Show_ID INTEGER NOT NULL, Title VARCHAR(30), Composer_Name VARCHAR(30), Genre VARCHAR(10), Primary Key (Show_ID) ); create table Dancers( Dancer_ID INTEGER NOT NULL, Dancer_Name VARCHAR(30), Country VARCHAR(20), Primary Key (Dancer_ID) ); create table Casting( Show_ID INTEGER NOT NULL, Dancer_ID INTEGER NOT NULL, Character_Name VARCHAR(30), Primary Key (Show_ID, Dancer_ID), Foreign Key (Show_ID) references Shows(Show_ID), Foreign Key (Dancer_ID) references Dancers(Dancer_ID) ); INSERT INTO Shows Values(100, 'Cats', 'Andrew Lloyd Webber', 'Fantasy'); INSERT INTO Shows Values(200, 'Les Miserables', 'Alain Boublil', 'Historical'); INSERT INTO Shows Values(300, 'Wicked', 'Stephen Schwartz', 'Fantasy'); INSERT INTO Shows VALUES(400, 'Phantom of the Opera', 'Andrew Lloyd Webber', 'Romance'); INSERT INTO Dancers Values(10, 'Sherlock Holmes', 'England'); INSERT INTO Dancers Values(15, 'Jane Austen', 'England'); INSERT INTO Dancers Values(20, 'John Knightly', 'USA'); INSERT INTO Casting VALUES (100, 10, 'Gus'); INSERT INTO Casting Values (200, 15, 'Fantine'); INSERT INTO Casting Values (300, 20, 'Wizard'); INSERT INTO Casting Values (400, 15, 'Christine');
  22. lmgtfy links are not permitted on the forums just for future reference
  23. This may possible solve your problem? http://www.granite.ab.ca/access/corruption/toomanyindexes.htm
  24. What is the problem with prompter software?
×