Jump to content

manicottimuffin

Member
  • Posts

    46
  • Joined

  • Last visited

Everything posted by manicottimuffin

  1. I'll just look for a board that's not "mighty cheap"
  2. both of the boards I linked have front panel USB 3.1 type A. Neither have front panel USB-C. The case, as initial post says, has front panel USB-C port.
  3. 1. Switch PSU off 2. Unplug PSU 3. Press power button to make sure all power is out of the PSU 4. Remove GPU and memory 5. Insert one dimm of your memory into the board 6. Plug your display into the board 7. Boot it up and see if you can post with this minimal hardware. If that doesn’t work, also try resetting the CMOS while unplugged then boot again. Let us know if you get lights, fan spin, etc.
  4. It does have front panel usb 3.1, but It has the 20-pin type A header, not the 3.1 type C header.
  5. not quite "extremely cheap" but here are the two boards I'm considering (unless someone has a better suggestion) This ASUS board and this ASRock board... I don't think either are bad, but they are definitely more budget friendly. And I don't see any other PCI-E slots on there but if I'm missing something please let me know. As far as I can tell, the only other PCI-E slots any mini itx boards have are m.2 form factor...
  6. I gotcha... I was considering this, but honestly I would rather just have an adapter that works on its own. Was hoping I could find a card for my m.2 slot or maybe a cable that adapted on its own and I could run it behind the motherboard tray with the CPU power... Do you know of any mini itx board with USB-C headers that are under $220? Cheapest I can find are x570 boards and I definitely don't need anything like that
  7. I only have one PCI-E slot and I'll have a dedicated GPU, so that wouldn't work
  8. I'm rebuilding my system and am planning on moving to the H210 from NZXT. This case has a front panel USB-C port, but none of the mini ITX boards I can afford have a header for front panel USB-C. Is there a way to adapt either my extra m.2 slot or a USB 3.1 port on the back of my mobo into the front panel header? I've been looking around and can't find anything. Thanks
  9. Hey everyone, I am copying a file using Go and must make sure that the buffer size of my last block matches the source file exactly, not extending the new file any longer. The files must be identical. I have a working program, I only need help with changing the buffer size for the last block. "One common mistake made by students is that they forget to consider the last block situation. Because a file can be of any size, the last block MIGHT NOT be filled to the very end. As a result, you need to write ONLY the number of bytes that are available in the last block." I have the code working, but I can't figure out how to change the buffer size. package main import ( "fmt" "io" "log" "os" "path/filepath" ) //BSIZE is the size of the buffer var BSIZE int64 = 4096 var err error = nil func main() { if len(os.Args) != 3 { fmt.Printf("usage: %s source destination \n", filepath.Base(os.Args[0])) os.Exit(3) } //open the source file source, err := os.Open(os.Args[1]) if err != nil { fmt.Println("Error opening file...") log.Fatal(err) } //check to make sure the destination file does not already exist _, err = os.Stat(os.Args[2]) if err == nil { fmt.Println("Destination file already exists.") log.Fatal(err) } //create destination file destination, err := os.Create(os.Args[2]) if err != nil { log.Fatal(err) } //actual copying of the file buf := make([]byte, BSIZE) for { n, err := source.Read(buf) if err != nil && err != io.EOF { log.Fatal(err) } if n == 0 { break } if _, err := destination.Write(buf[:n]); err != nil { log.Fatal(err) } } //close the files defer source.Close() defer destination.Close() }
  10. Hello, I am trying to get an assignment wrapped up for school and can't figure out how to make this command line calculator work. I am trying to have it accept input from the user to determine whether or not it should repeat or end, and it completely stalls and I have to ^C to get it to stop. Any ideas? package main import ( "fmt" _ "fmt" "os" //"sort" ) func main() { fmt.Println("\n*****************************************************") fmt.Println("**** Welcome to the world's best CLI calculator! ****") fmt.Println("*****************************************************") fmt.Println("\n\nLet's get started!") var a, b, c int = 1, 1, 3 var operator, resume, valid string = "", "y", "n" for c == 3 { fmt.Println("Please enter your first int: ") _, err := fmt.Scan(&a) if err != nil { fmt.Println("Invalid;", err) os.Exit(0) } fmt.Println("Please enter your second int: ") _, err2 := fmt.Scan(&b) if err2 != nil { fmt.Println("Invalid;", err2) os.Exit(0) } fmt.Println("Please choose your operator (+ - * /): ") _, err3 := fmt.Scan(&operator) if err3 != nil { fmt.Println("Invalid;", err3) os.Exit(0) } //Choose an operator. switch operator { case "/": fmt.Println("Your equation is ", a, operator, b, "=", a/b, ". \nWould you like to go again? (y/n): ") case "*": fmt.Println("Your equation is ", a, operator, b, "=", a*b, ". \nWould you like to go again? (y/n): ") case "-": fmt.Println("Your equation is ", a, operator, b, "=", a-b, ". \nWould you like to go again? (y/n): ") case "+": fmt.Println("Your equation is ", a, operator, b, "=", a+b, ". \nWould you like to go again? (y/n): ") default: fmt.Println("Invalid input.") } _, err4 := fmt.Scan(&resume) if err4 != nil { fmt.Println("Invalid;", err4) os.Exit(0) } //Do we repeat the process? for valid == "n" { switch resume { case "y": valid := "y" _ = valid case "yes": valid := "y" _ = valid case "yeS": valid := "y" _ = valid case "yES": valid := "y" _ = valid case "yEs": valid := "y" _ = valid case "Y": valid := "y" _ = valid case "Yes": valid := "y" _ = valid case "YeS": valid := "y" _ = valid case "YEs": valid := "y" _ = valid case "YES": valid := "y" _ = valid case "n": valid := "y" _ = valid case "N": valid := "y" _ = valid case "no": valid := "y" _ = valid case "No": valid := "y" _ = valid case "nO": valid := "y" _ = valid case "NO": valid := "y" _ = valid default: fmt.Println("Invalid input. Calculate again? (y/n): ") _, err5 := fmt.Scan(&resume) if err5 != nil { fmt.Println("Invalid;", err5) } } } } }
  11. Hey guys, I just built a home server and threw it into a mid tower desktop case I had lying around. I’m wanting to rack mount it, though, along with a network switch and potentially add up to two or three more over the next couple years. I’ll live in an apartment with my wife, so I’ll want it to be relatively mobile (aka not bolted to the floor or wall mounted and possibly wheels) and I’ll want it to be as cheap as possible. Would I be better off building myself something out of some wood/steel/aluminum or buying a real server rack? I also am wanting to use my current ATX power supply, so potentially use a 4U case for this current build, but I’m not opposed to using smaller form factors in the future. What kind of trade-offs would I be making if I build my own rack instead of buying? And is there any noise/performance benefit to using a different size case? Thanks!!
  12. For sure. I’m interested to know how it turns out! Let me know
  13. Yeah, I mean Corsair is pretty reputable but it could just be a crazy coincidence. If the new sticks don’t work I’d say mobo next
  14. Can you take it to a local pc shop? Or maybe go to an electronics store and buy ram/cpu to test and then return them to the store?
  15. Yeah, that’s pretty crazy. That’s the X factor when building your own, stuff like this happens from time to time. Did reseating the cpu work?
  16. Yeah, it might. Since the drive ha does data by accessing it electrically, it could corrupt more data at one time than a mechanical drive, which would likely only corrupt the sector it is writing at the time. Check out this forum post, it’s probably more helpful than I am, ha. https://www.superuser.com/questions/1348647/how-vulnerable-are-ssds-to-power-failures-compared-to-hdds
  17. It’s not likely at all that they’d both me bad... have you tried different RAM slots? And different ram in each slot? I’d also try reseating the CPU. If neither of those work, it could be your board.
  18. if nothing is coming up on the monitor, then no. There's a small chance it could be your GPU that is the problem, and the PC actually is posting, you just can't see it. If your monitor isn't being woken up by your PC, try different ports/cables for your display and see if that helps. Other than that, you'd probably be best off swapping hardware and using process of elimination.
  19. Yeah, sounds like it. If you can get your hands on some known good RAM to test, you could see if it is your mobo or RAM. But if you just got it, you'll probably be able to RMA whatever it is instead of paying for a new one.
  20. I guess that'd be an important setting, hah! Glad you got it going
  21. Looks like you're not the only one with this issue when switching to 3rd gen. Have you tried putting your old CPU back in to see if it is just a compatibility issue with the new CPU?
×