Jump to content

RileyTheFox

Member
  • Posts

    1,192
  • Joined

  • Last visited

Everything posted by RileyTheFox

  1. Hi. I have installed MinGW on my machine and added it to my PATH, and the commands work in command prompt but in VS Code they are not recognised: VS Code: Command Prompt: My environment variables: How come this doesn't work?
  2. Hi. I recently went on vacation and just came back and to my surprise, my AOC 24G2U monitor no longer powers on. It was working completely fine before I left. The monitor is plugged in correctly, but when I press the power button nothing happens (No power LED or anything). I tried a different cable and also tried swapping it from being connected to a socket extension bar to the wall directly. But still nothing. There were some thunderstorms while I was away, but no power cuts or lightning hitting us. My socket extension bar also has surge protection so that would surely deal with any issues. What's weird is if there was a surge that caused it to die, my other monitor (Asus VC239H) would have also died too I'm pretty sure. But that is working just fine. Is there anything I can do myself to try and fix it? Or is this a case of warranty replacement (it should still be in warranty). Thanks.
  3. Hi. I'm writing a Class Library in C# and it depends on some external DLL files, is there any way I can include those dependencies into the DLL so I don't need to distribute loads of other dependencies (and their dependencies, then their dependencies etc). Is there any way to do this in the visual studio build process? Thanks.
  4. Well this has only started happening today, how can I stop this?
  5. Hey. An issue with photoshop popped up just today and it's extremely frustrating. I have a canvas that is 636x690 pixels and an image that is 636x690 pixels. If I drag the image onto the canvas from explorer for example, this happens: However, if I copy the image to my clipboard in windows photo viewer and then paste it into photoshop, the image appears fine. This has only started happening today and is extremely annoying. How can I fix this?
  6. Hey. Over the past few days my VPS has been pinned to 100% CPU usage by the process 'kswapd0'. Using the top command, this is the information I get: The user sidney is just a friend's user account, and the kswapd0 issue only occurs from there. I tried deleting the user account and remaking it (in case there was anything that got corrupted) and after deletion, the problem was solved. But soon after recreation the problem arose again. Multiple sources online tell me to run "echo 1 > /proc/sys/vm/drop_caches" but this also achieves nothing. The system is consistently pinned to 100%. I dabbled in killing the kswapd0 process, and that solved the problem, however that means swap is no longer running (and it could be unstable too?) This has only started happening since around a week ago. I've tried a kernel upgrade to see if that would solve anything but nothing worked. Even the VPS company's support couldn't help me after so long. Does anyone have any solution to this? Thanks.
  7. A friend provided a solution that worked perfectly. Here's the code: for (int i = 0; i <= v1.Length - v2.Length; i++) { bool match = true; for (int j = 0; j < v2.Length; j++) { if (v1[i + j] != v2[j]) { match = false; break; } } if (match) { return true; } } return false;
  8. It can find the individual numbers but it fails to find the sequence as a whole thing.
  9. Hey. So I have 2 vectors of different sizes, and in the bigger one I need to be able to find a sequence of elements that matches the smaller one. Here's an example of the vectors: std::vector<int> bigVec{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; std::vector<int> smallVec{4, 5, 6}; How would I find smallVec within bigVec? bigVec contains the sequence 4, 5, 6. smallVec also has that sequence. So how would I find that sequence in bigVec? Help is appreciated, thanks!
  10. Hi. I just got an AOC 24G2U and I'm using it through DisplayPort. This is the first time I'm using DisplayPort and I've noticed that Windows disconnects the monitor when I turn it off. This causes all my windows to move about and is pretty frustrating. Is there any way to stop this? I tried looking up a solution and was told to disable DDC in the monitor settings. I tried that and it didn't work, unless I just didn't do something right. Can anyone help? Thanks.
  11. Hello. This just started happening about 2 minutes ago. I have 2 monitors. My main one is connected via the dGPU and the second one is connected via the iGPU. Just now while playing a game that doesn't require a lot of GPU power, my second monitor went black (but still powered) twice, and a purple line flashed across my first monitor just below the center. I'd like to note that my GPU drivers are slightly out of date as I have just fresh installed Windows a couple of days ago. I also want to note that the other day, both my monitors completely froze and then went black for about 5 seconds, then my computer returned to a normal state. It has not happened while writing this post, and this has taken around 5 ish minutes. It only happened those 2 times. Is this a driver issue? Or am I facing faulty hardware? I will try to update my GPU drivers through GeForce Experience to see if that helps. My PC specs are listed in my signature if you would like to know them, Thanks.
  12. I'm forgetting about Ubuntu now. I need to fix my Windows install. I've removed all the partitions relating to Ubuntu and I've just tried to fix the Windows boot files using repair my computer through the windows setup USB. I tried bootrec /fixmbr and bootrec /fixboot but these didnt work. Am I completely fucked here? Do I need to format my SSD and start again? Thanks.
  13. Where do I install grub? On the fat32 partition that I created in the ubuntu installer?
  14. Would it be possible to just delete everything related to ubuntu and still boot to Windows because all the files are still there.
  15. I never changed the boot order. I just override the boot to the USB stick in the BIOS for that one time. If it boots to my NVMe drive, it doesnt find anything.
  16. The ubuntu install had a location of where to install the GRUB boot loader and my NVME ssd (where windows is also installed) was selected
  17. Hello. I just tried to dual boot Ubuntu alongside Windows 10. I created the partitions for Ubuntu correctly, including swap and EFI partition and the install went through successfully. Upon reboot, I expected to be put into the GRUB menu but instead I was put into the BIOS which means it cant find the bootloader. I cant access Ubuntu or Windows now. I only have an Ubuntu live usb. What do I do??
  18. How would I wipe the disk if there are programs on it? Wouldn't Windows prevent it if there are files opened in background processes?
  19. While sorting out the partitions on some secondary drives, Windows though it would be funny to convert a drive with data on to a dynamic disk. This wouldn't inherently be a problem but I plan on dual booting Windows and Ubuntu very soon on my NVME SSD. And Linux cannot read Windows dynamic disks. So I need to get it back to a basic disk. My first option is to just surrender and lose all my data to convert it back to basic. However, there are 3rd party tools to do this without losing your data, but the catch is I need to pay anywhere from £50 - £100 for their 'professional' editions to complete this task. Not very ideal. Another alternative is to backup this drive to another drive (it can fit), then wipe it and convert it to basic, then put all the files back on. But I have a problem. I have programs installed on this drive that Windows knows about (i.e they are in start menu, add/remove programs etc) so will Windows a) refuse to let me format this drive because there are active programs on it b) corrupt itself or other shit in the process. I have no idea why Windows decided to do this, but it has and I'm fucking pissed about it. What are my options and what is the best one (obviously one that doesn't involve losing everything)
  20. Thank you. This helped and I also changed the partition table to GPT as a different cloning software I used had put it back to MBR, so that might have been another reason for it to not work. Thank you for your help.
  21. Hey. I got a 970 EVO 500GB for Christmas and I have installed it correctly and it is being recognised by the BIOS and Windows. I have even made some partitions and cloned my existing SATA SSD to one of the partitions on the NVME drive. So if I have cloned it, that means I should be able to boot right to it... but no. I have a Z370-F motherboard and I am on BIOS revision 2001 (24/04/2019) I don't know what I need to do in order to boot to the drive. I can sometimes get it to appear in the boot order, but my BIOS just defaults to my 850 EVO (SATA SSD) even though I didn't put that in the boot order. What BIOS settings do I need to change in order to fix this? I doubt that it is failing to find an operating system on the new ssd, considering it is an exact clone of the SATA one. Please help, thanks.
×