5,331 Posted Topics
Re: 1. Boot to a live cd/dvd/usb drive. 2. Do a bit copy backup of the data in /dev/sda and a separate bit copy of /dev/sda2 to another drive (an external drive would be appropriate). You use dd to copy /dev/sda, and then /dev/sda2. The bit copy of the entire drive … | |
Re: Sorry, but we don't do your homework for you. Give it your best shot and post the code here with questions about problems you are still having. FWIW, I do this stuff for a living. Why should I help you cheat on your homework when I have had to learn … | |
Re: How old? What CPU does it have? Yes, you can run stuff like VirtualBox on older systems without the CPU virtualization support newer CPUs offer, but the VMs will run slow and somewhat less reliably. The main thing is the number of cores the CPU has and even more importantly, … | |
Re: @ddanbe They probably still use ADA for system-crital cruft, but also C/C++/Java. However, since I haven't done any programming for the USN since about 1992, I can't say for sure! As a side-bar, the Oracle PL/SQL language was derived from ADA. From the Department of Obscure Tech-Geek Knowledge Department... :-) … | |
Re: No matter the OS (Windows or Linux), download and user the VLC media player. It will handle just about anything, which the normal media players on either Windows or Linux will not without installing a number of obscure codes (if available). You can get VLC at www.videolan.org. | |
Re: This is wrong: void largest::enter(int a,int b,int c) { cout<<"Enter numbers n"; a=num1; b=num2; c=num3; cin>>a>>b>>c; } Try this: void largest::enter(int a,int b,int c) { cout<<"Enter numbers a,b,c"; cin>>a>>b>>c; num1 = a; num2 = b; num3 = c; } Assigning a,b,c from the member variables isn't the problem. Not storing … | |
Re: Or, #include <stdio.h> int main() { char c; ::scanf("%c", &c); ::printf("You typed %c", c); } | |
Re: You need a space between the variables here: `scanf("%d%d",&m,&n);` should be this: `scanf("%d %d",&m,&n);` otherwise it is not clear that the user needs to put a white space between the two values. You can mitigate that by specifying that in the instructions. IE, "Enter order of matrix, as in 'x … | |
Re: Also, if any of the intermediate directories don't exist, you can add the -p option to mkdir. IE, `mkdir -p /red5/webapps/openmeetings/upload/files` | |
Re: It almost sounds like the WiFi and USB port are using the same interrupt. I suspect that the WiFi is a USB device, and the other USB cruft he is using is connecting to the same internal hub. Have him contact Asus about this. | |
Re: Have you looked at the bookmarks themselves to see if they have been altered from what you thought you were saving? If so, then you should be able to correct that, but check if you save a new bookmark whether or not it was also altered. If so, then you … | |
Re: Try using our friend Google... Or go to Wikipedia - they have good articles on these subjects. | |
Re: Characters are 8 bit integers. Use the appropriate printf format strings. To output the hex value of a character you would use %.02x | |
Re: Both AD & Mike2k's answers are good. I just have a small nit to pick with AD regarding proper use of member initializers in a constructor, rather than inside the body of the constructor. IE, instead of his example, I would do this: class Foo { public: Foo() : _x(0) … | |
| |
Re: Are you getting an error? Have you properly unmounted the device (safely remove device on Windows) before removing it? Have you run chkdsk (Windows) or fsck (Linux) on the file system contained by the device? Have you formatted it? As you can see, there are a lot of possibilities. Your … | |
Re: Also, the toupper() function won't affect non-alpha characters, such as numbers. So, to be succinct: /* This is pseudo-code. */ posn = 0; while (!end-of-string) { string[posn] = toupper(string[posn]); ++posn; } There are number of means to code the loop including `for (int i = 0, j = strlen(string); i … | |
Re: :-) Good point! This would be more appropriate: size_t sz = 10 * sizeof(int); int *array = (int*)malloc(sz); memset((void*)array, 0, sz); /* This does the same thing. */ int *array = (int*)calloc(10, sizeof(int)); Modern compilers will at least flag the lack of a cast with a warning. Better safe than … | |
Re: If you remove an SD card (or USB thumb drive, or other device) from your computer without doing the "safely remove" thing, you are likely to lose EVERYTHING on the device. The OS caches device writes, so until you select "safely remove", or on Linux "unmount/eject", the device will be … | |
Re: @mehak70 Trying to hack WiFi routers? Sorry, not allowed to help you with that here... :-( If you are just looking for anonymous browsing, try Tor or other VPN services. | |
Re: To my mind, the main reason to use class static variables and methods is to control the namespace, and keep what are effectively global variables from polluting the system root namespace. Decepticon was spon on with his examples, I think. IMO, class statics are more flexible than using specific name-spaces, … | |
Re: Momerath gave you a great hint. Remember, we DO NOT do your homework for you! FWIW, it is also a variant of the "Traveling Salesman" problem. I think you have some research to do before attacking this problem. :-) | |
Re: Assuming you want a free tool, then I would suggest that you check out [Blender](http://www.blender.org). Not sure about #3, but #2 (multi-track audio) it handles. It is a professional quality tool - mostly used on Linux or OSX (Apple) systems, but it has a Windows version as well. Other Linux … | |
Re: Standard libraries are stuff that all C compilers have to support in order to considered "standards compliant". The functions you need are things like `FILE* fopen("COM:", "rw");` (for Windows), or `FILE* fopen("/dev/tty", "rw");` (for Linux/Unix), and this function is declared in the header file stdio.h. That will open the device … | |
Re: If you go to the command line window (terminal), you should be able to find the hidden files/directories with the command "ls -a". To search recursively, add the "R" (recursive) option, as in "ls -aR". That one will generate a LOT of output if done from the root directory (/), … | |
Re: Structures are like classes, but where all of the member variables (salesid, customer_name, etc) are public. As Sky said, post your answer here - we don't do your homework for you. | |
Re: I am running the most recent versions of Chrome and Windows 7 Ultimate (corporate system - IT keeps them patched almost daily). No problems here, though if it has changed since Friday last (2 days ago) I wouldn't know. I'll be updating tomorrow, so if it has broken, I'll report … | |
Re: YouTube basically (mostly) uses Adobe Flash media. It has been improved over the years (but is still, IMO, a piece of crud). Yes, can skip to wherever you want in the stream. I do that all the time. | |
Re: Show your data file please. Also, you are reading the data, but never outputting it. | |
Re: We don't do your homework for you... :-( Create the diagram and write the note. Then, post them here and we may help you. | |
Re: What Rik said - HP's are notorious for overheating. Some of my colleagues at work have ones that keep shutting down unexpectedly. We changed the performance settings from "Performance" to "Balanced" and that made them much more stable. IE, they would only ramp the CPU up to full speed when … | |
Re: Please show an example of the input, and the output. | |
Re: The 'ld' command is the linker for GCC compilers, such as MingW. If you installed Ming in a normal manner, it should be on your system as well. Possibly you deleted it? Or installed MingW in a non-standard manner? | |
![]() | Re: I use VirtualBox happily to run Linux systems under Windows, and Windows systems under Linux. That said, there are ways to create bootable USB drives with storage capacity that you can use to boot without getting either into Wubi, or dual-booting the system. You can also create a live USB … ![]() |
Re: This is not particularly helpful. How many of the steps in the "how-to" list in http://neanderslob.com/2013/09/27/how-to-install-open-meetings-on-ubuntu-12-04/ did you successfully get through? | |
![]() | Re: The command-line (CLI) package installation tools for Debian-based distributions (which Ubuntu is one of) are the aptitude tools, such as apt-get. Read the Ubuntu documentation on their site. They go into this stuff in great detail. |
![]() | Re: Since the file system is read-only, you cannot. You need to remount the file system in read-write mode, and you need to be root or sudo to do that. |
Re: How long do you think this will take? FWIW, there are functions that will let you inject characters into the keyboard buffer so that they can be read by a program just like you had typed them in yourself. I haven't done this in a monkey's age (about 20 years … | |
Re: As AD said, Turbo-C++ is antiquated and not likely suitable for this. You CAN use Mingw's gnu c++ compiler for this, though you will need to install the MySQL shared or static libraries and header files. You might be able to use a recent Visual Studio C++ compiler (you can … | |
Re: If they are .docx files, then they are in a pseudo xml format, with parts that are MS proprietary data (binary blobs). You would be able to read simple text and formatting data I think, but linked data, such as images and such are another matter entirely. | |
Re: We don't do your homework for you. Make an effort and post the code here along with the errors you are experiencing. If it seems to us that you are making an honest effort to do the work, we will help you. If not, then you are on your own... … | |
Re: Time to get back to basic calculus I think... Gah! I have forgotten so much! :-) | |
Re: Did you just disconnect it, or did you go to the "remove device" icon in your Windows (I assume you are running Windows) menu bar docking bay and ask it to safely remove the device from the os (same as unmounting it in Linux)? | |
Re: Line breaks in Windows files are a cr+lf (carriage-return + line-feed) pair of bytes. For Linux/Unix systems, it is a simple line-feed character. So, scan for a line-feed, and then inspect the immediately previous character to see if it is a carriage-return. If it is, then break there and throw … | |
Re: Interesting that a poster with the handle which is the name of one of the inventors of the C programming language does not know the basics of the language. Talk about hubris! @dennis.ritchie - please change your handle. I find it offensive! I knew Dennis back in the 1980's. You … | |
Re: The sarcasm of my colleagues notwithstanding, my magic wand stopped working this morning. :-) Learn by doing, reading, and studying the works of others who are known to be competent in the field. Best single C++ reference work? The ARM (Annotated Reference Manual) by Ellis and Stroustrup. Stroustrup invented the … | |
Re: The question is whether the images themselves have been compromised, or if some malware on the system is blocking access to them. I would suggest that you boot a live linux cd/dvd/usb drive, mount the windows partition, and then see if Linux can access the photos. If so, then it … | |
Re: Is your VM connected to your local network? What are the contents of its /etc/resolv.conf file (post the contents here)? What is the address of your LAN's router? Who is your ISP? Do you know what their DNS server addresses are? If not, go to the admin web page of … | |
Re: What JasonHippy said. To elaborate: Segfaults are caused by accessing invalid memory. The most common causes are: 1. Trying to read/write to a null pointer. 2. Over-writing the memory allocated to a variable. 3. Trying to access the member of an array beyond the end of the array, or (less … | |
Re: What David_W said. This is not a beginner problem. First, you need to understand something of file system structures. Next, you need to understand how to relate that to program code. Other than re-iterating your class assignment, you haven't done anything that lets us think you understand the scope of … |
The End.