Jump to content

FaiL___

Member
  • Posts

    164
  • Joined

  • Last visited

Everything posted by FaiL___

  1. Hi, my Dad's got a big poster printer as he is starting a new business. He only has a Mac Mini and a MacBook, and the printer's drivers were only supported on the past release of MacOS, so he cannot use the printer with it, the drivers are available on Windows 10 however, so I've installed a virtual machine on the mac and loaded it with windows 10. My question is, the printer's only port is ethernet, so will the virtual machine recognise it as a printer, even if the host machine (the mac) doesn't? Cheers in advance.
  2. Yeah, sorry, in some of our modules we use c, others we use c++ so we just use scanf for both as it's just less confusing, it's basically like writing the same language, but we have different uses for them
  3. As I said, we have to upload the .sln files which VS Code doesn't create, the actual code we're writing could be run on Linux, but the file we have to upload has to be that .sln.
  4. I'm not necessarily developing for windows, some of our code we have to make sure runs on Linux as we sometimes have automatic marking servers which run linux, so we are taught to use the less secure versions of functions (such as scanf as opposed to the windows-only sscanf).
  5. I did try it a while ago, but it was on a small, poorly supported distro, and was running on my very tired laptop which didn't have the best specs. Was wondering if that might have been the problem, but it does make sense that the compiler would be what goes wrong.
  6. Just some preface before I get comments about VS Code etc, I do know about VS Code and do in fact have both VS and VS Code installed on my WinPC (I use standard VS for C++ and the majority of my uni work (CompSci) as we have to submit the solution files (.sln) and use VS Code for more of my recreational projects such as just playing around with Python/Java/Web Design). I also know that there is no official support for VS on Linux, I've spent the summer with Linux on my laptop as I haven't been at uni, but have just re-installed windows as the term start is approaching next week. Basically, is there any 3rd party way of getting VS to run smoothly on Linux, not talking about virtual machines, for example using programs like Wine (which I have researched and apparently doesn't work). I know that with the release of Steam Proton, that removes one of the barriers I have in order to switch over to a Linux-only life. I can now run all my steam games in my 230+ library on Linux, all I need is to be able to code for my degree, and I'm outta windows. That was a long read, but thanks if you did. If I reply to a comment, I'll quote, please do the same. Cheers in advance.
  7. Yeah, pretty sure it's 200-240V
  8. Hi, sorry if wrong group, didn't really know where to put this one. I'm headed to America soon (live in the UK) and would like to know what kind of adapters to get. I know that the US has a lower voltage than UK, and all my chargers etc have a variable voltage so they will be fine. The only thing is that my laptop charger does not have this, so would I need a step up adapter? If so, can I get some recommendations? Cheers guys <3
  9. Hi, my parents just bought a shop and there was already a CCTV system in place (sorta). They had 3 cameras in the store and were all plugged in, with 1 as a spare, they did not know how to view them or record them though. There is a USB DVR wireless adapter for them, but I cannot figure out how to use it. I have tried downloading drivers to something that looked like the cameras in question, but that software tells me that I need Windows Media Player 9 or higher, I have checked and I am running version 12, so should be no problems, but alas, still an error message. Both the camera and USB DVR adapter have blue LEDs indicating that they are powered on. In "Bluetooth and other devices" in the Windows 10 setting (and also in device manager), I can see a device called digital wireless camera, but the only option I have with it, is to remove it. Pls help.
  10. Fair enough, gonna try formatting with Rufus, but if that doesn't work, out it goes
  11. Hi all, I was just going through some boxes and found an old microSD card from about a year or two ago. I was going to see if I could format it and use it again, since my drone's 4GB microSD fills up very fast, but when I plugged it into my laptop, it is registering it is there, but I cannot do anything about it, not even format it. Please have a look at the image to help. The terminal is just blocking the serial number. Cheers in advance.
  12. That's perfect thanks man, I have a OnePlus 5T (USB-C) and a single USB 3 on my PC, so should be good.
  13. Not an old one, I have one that I am using at the minute, will that work? Or will using it mess it up?
  14. Hi, I am trying to set up a temporary solution to get internet on my desktop (no wireless card, and the ethernet cable won't reach until I get a longer cable tomorrow). I have my laptop (which is connected to the WiFi) and I have my desktop (which I can wire into my laptop). I do know this is possible on Windows (I did it on this laptop a few months ago, but have since then switched over to Linux, and am a bit of a amateur). Thanks in advance.
  15. This is what it is saying in the IDE (I just removed the \n). It's not the running of that code that is the issue, it's just the actual syntax by the sounds of it. PS I also changed the hi text to a variable to see if that would help. It didn't.
  16. It's not in the running of the code, it won't even let me run the code because of the error (well, I assume because of the error, it actually says "Launch failed: Binary not found", but this error is just being detected by the IDE itself.
  17. unfortunately that did not work, for a little while, it said that "hi" was not spelled right, and it was showing the correct details for printf when I hovered over it, but I changed the " to ' on hi and it fixed that problem, but went back to saying function could not be resolved
  18. Hi, I am planning on moving from Windows to Linux so have just decided to try eclipse as a visual studio alternative, but I just have a simple program at the minute, and printf isn't working (code below). I have seen posts online but not found a definite fix. Thanks in advance. #include <stdio.h> int main() { printf("hi"); return 0; }
  19. I am getting an access violation writing location error when trying to run this line of code: directions[keyCount] = direction; This is where I am declaring the array: int directions[1600] = { 0 }; And this is the rest of the portion of code I am trying to run: for (int count = 0; count < 4; count++) { if (room.direction[count] == DIRECTION_LOCKED) { key = findKey(count); if (key == 0) { unlocked_direction = count; correctKey = bruteForce(count); keys[keyCount] = correctKey; floorNum = room.name[0]; floorNumInt = floorNum - '0'; floors[keyCount] = floorNumInt; roomNum[0] = room.name[2]; roomNum[1] = room.name[3]; roomNumInt = atoi(roomNum); rooms[keyCount] = roomNumInt; directions[keyCount] = direction; } else { sentOption(count + 6, key); } } if (room.direction[count - 1] == DIRECTION_OPEN) { if (count == unlocked_direction) { keyCount++; } } } Thanks in advance, quote me if you have any questions.
  20. When I call the function, nothing get's printed. Sorry, I thought i said that, was pretty tired writing this post!
  21. So, I've been trying to (just at the minute) print out a text file line by line. I will eventually need to get it reading into an array, but I'll be able to do that once I get the printout to work. I haven't even attempted writing to it yet, but here's what I have so far... void ReadToArrayFromTextFile() { FILE *fptr; fptr = fopen("keys.txt", "r"); char line[256]; while (fgets(line, sizeof(line), fptr)) { printf("%s", line); } fclose(fptr); }
  22. Hi, I have a question, I know with Windows 10 you can create WiFi Hotspots (on my laptop), but I was wondering if this could be done through USB. Basically, I'm at my Dad's for a week, and brought my desktop. I forgot I wouldn't be near the hub, so ethernet would've been an issue, and I would've brought my powerline adapters (which I didn't). But when I create a hotspot on my laptop, it uses the WiFi signal from my Dad's, so I thought I could just use that same signal but tethered through USB (or ethernet). Thanks in advance, might be completely wrong, and if so, just simply say "No dude, you're an idiot". Cheers.
  23. The plug will be controlling my desk lamp, not that worried about people accessing it xD.
  24. Hi, I just received my smart plug from amazon (it was in the black friday deals for £10 with an echo dot), but when setting it up, the app tells me that it needs a secure wi-fi network, but I am a uni student in uni accommodation and my wifi is unsecured. Is there any way I can get around this? maybe tricking my phone into thinking there is a password? (The setup is within the app). Thanks in advance.
  25. My case is fine, I just panicked that the PCI-E slot wouldn't fit it thanks
×