5,331 Posted Topics
Re: Yech! I used to have an AT&T 2Wire as well, and it is an absolute piece of junk. I had them replace it with a Motorola Netopia device - been working for over 4 years now without a hiccup! Anyway, if you go into the configuration web pages for the … | |
Re: Your `printArray()` functions don't return anything, so there will be no `operator <<` associated with them. Remove the `outfile <<` in `main()` from lines 32 and 33. | |
Re: You really didn't do anything wrong, except that you need to reverse the numbers. So, place the extracted digits in an array or vector, and reverse the order on output. | |
Re: A number of systems will default to the onboard NIC unless you disable it in the BIOS, otherwise your add-in card may not work. Plug the display into the on-board port and boot into the BIOS to see if that is the case. | |
Re: The cdata construct in xml is to encode non-printable text into hexadecimal ascii numbers. IE, the letter 'A' would be encoded as 41. So, the string 946890... would be a double-right quotation mark + h + 0x90 (hex 90 - no printable representation)... So, the answer for cdata is that … | |
Re: Try running it in a debugger so you can get a stack trace when it crashes. Then, you can look at where it crashed, and what your variables were set to. This sort of problem is often due to improperly initialized variables, or buffer overruns. | |
Re: For Ubuntu, you want to download packages in .deb format, not in tar.gz or similar formats. You can use apt-get/aptitude to install packages in .deb format that you have on your computer without it being connected to the internet, unless there are missing dependencies, in which case you will need … | |
Re: Like the Universe, this subject is infinite... Do a project/presentation on stuff you are personally interested in. | |
Re: It is saying that it can't find the class `org.apache.derby.jdbc.EmbeddedDriver`. I think you need to add the appropriate directory to your CLASSPATH variable. I see that you set DERBY_HOME to CLASSPATH, but I think that you are not going far enough. | |
Re: I strongly suspect you have fried your controller, or the drives. Have you tried another drive to see if it is recognized? | |
Re: What TnTinMN said. The VT102 terminal is the foundation of the ANSI terminal type that is what you get in a standard Linux console or the xterm terminal type you get with an X-Windows command-line window. To see what your terminal type is, try the command: echo $TERM As for … | |
Re: What Moschops said. This is why we do exception handling (try/catch/throw) in C++. That will allow you to detect this sort of error and terminate after output of a meaningful error message that will help you fix the problem. | |
Re: As AHarrisGsy said - use your knowledge and tools to build something of interest to you. Another approach would be to go to the web site of any number of open source projects and try to solve some of the currently unresolved issues posted on the site. www.apache.org is a … | |
Re: How do you think it should be done? This is a C programming question (class exercise I presume), no? Show us how you think it could be solved, and then we will try to help. Just don't ask us to do your work (school or otherwise) for you. Hint: try … | |
Re: Please, if this is a class assignment/project, make an effort to solve the problem yourself. We will be happy to critique and help correct your work, but we aren't here to help you cheat, which is what you are asking in effect... :-( | |
Re: I think basically got it correct, with Momerath's comments applied. Actually, it may not error on line 12 if -1 is not a valid index, though it should; however, -1 IS a valid array index in theory. If this code was provided as part of the test, you might get … | |
Re: Deceptikon is correct. One method to do this is to have a correlary to the in-memory tree for the on-disc version. For your case, it might look like this: struct disc_bst { size_t offsetofleft; size_t offsetofright; size_t sizeofvalue; unsigned char[] valuedata; /* Some compilers will require the above array to … | |
Re: Decepticon is mostly correct in that pointers are almost always the same size. Actually, I don't know of any modern systems where they aren't, otherwise virtual memory would be very difficult to deal with; however, the size of the data they point to can vary quite a bit, such as … | |
Re: Another useful man option is -k which will return all the matching pages, along with their sections. Example: `man -k open` | |
Re: AFAIK, FAT file systems are all encoded in the format used by Intel x86 processors - LittleEndian. Use this to test: #include <endian.h> #if __BYTE_ORDER == __LITTLE_ENDIAN /* We have a LittleEndian machine - Intel most likely, but possibly an ARM or MIPS in LE configuration. */ #elif __BYTE_ORDER == … | |
Re: The TCP/IP protocol suite was formulated by the US Department of Defense's Defense Communications Agency and originally implemented by DARPA (Defense Advanced Research Projects Agency) in conjunction with the company Bolt Beranek Newman, Inc. in Cambridge Massachusetts. The specs are in the form of RFCs (Requests for Comments) in a … | |
Re: JorgeM is correct, except that normally it would be 253 IP's since the router gateway address will take at least one (usually 1 or 254) as 0 and 255 are special cases and aren't used for node id's. Here is a good Wikipedia article on the subject: http://en.wikipedia.org/wiki/IPv4 | |
Re: Please provide the full C code, but to start. 1. Line 1 - push x and y onto stack 2. Line 3 - move x into the esi register 3. Line 4 - move y into the ebx register 4. Lines 5 and 6 are the initialization of the result … | |
Re: A GUI has little to do with an operating system. There are currently about two core operating system types: * Monolithic kernel * Micro kernel as well as * Determinist real time * Non-deterministic not real time * Non-deterministic soft real time There may be some that are, at least … | |
Re: I'll send you a list of tools tomorrow that can be used to build/run nokia phone apps. What models do you want to program for? If for their Windows phones, you will need to go to the MS Phone developers site, sign up, and get the tools you need. For … | |
Re: You can just specify the file name on the apt-get command line, as in: `sudo apt-get install filename.deb` As for switching to root, do this: `sudo su -` | |
Re: There is also 7zip which will generate standard zip-compatible archives. Win7 can also handle gziped files - at least it works for me. :-) So, what did you use to compress folder and contents? | |
Re: Your problem is that your first argument should be then entire command path, and the second an array of argument to pass to the command. IE, const char* arglist[5] = {"arg1", "arg2", "arg3", "arg4", 0}; if ((err = execv("/usr/bin/cmd", arglist)) == -1) . . . | |
Re: From the Wikipedia quicksort article: Quicksort, or partition-exchange sort, is a sorting algorithm that, on average, makes O(n log n) comparisons to sort n items. In the worst case, it makes O(n2) comparisons, though this behavior is rare. Quicksort is often faster in practice than other O(n log n) algorithms.[1] … | |
Re: Here is a link to a video on the subject of installing NS2 on Linux: http://www.youtube.com/watch?v=F72OFQVcO00 | |
Re: `Any*` is an array of items of type Any (and use const char* in your examples, otherwise most compilers will complain). In effect, it is a pointer to the first element of the array, so that `Any++` will point you to the next element in the array. An array of … | |
Re: What deceptikon said, run FC in a virtual machine. You can download and install VirtualBox (www.virtualbox.org) free on any supported host (WinXP, Win7, Linux, et al) and run just about any x86-based system on it. Some new systems, especially those running Windows 8, are using the secure boot feature of … | |
Re: Show what you are doing in pseudo-code, as well as tell us what algorithm you are trying to implement (bubble-sort, qsort, etc). | |
Re: There is a "convert" program that should do that for you. This link may help: http://www.partition-tool.com/resource/convert-fat32-in-windows-xp-and-vista.htm | |
Re: Also, if you are inserting a lot of data into a list like this, and need it to be sorted after every insertion, then calling qsort after each iteration is HORRIBLY inefficient! I use a head/tail optimizes insertion sort for that. It is a derivative of qsort, but the insert … | |
Re: In your implementation here template<typename T> Vector<T>::Vector(int num, const T& val = T()) { } You are trying to state it as a declaration, as would be in the header file. You need to do this: template<typename T> Vector<T>::Vector(int num, const T& val) { } Leaving the default value out … | |
Re: Getting the ideas, and then implementing them, is part of your studies. Don't ask us to do your work for you! Just think about what YOU are interested in, and take it from there... | |
Re: This is entirely specific to this device. Please refer to the manufacturer's web site for such support. | |
Re: FM (Farking Magic). :-) On Red Hat (RHEL and Fedora) systems, 32-bit libraries are installed into /usr/lib, and 64-bit ones in /usr/lib64. The system knows when an application is 32-bit or 64-bit and will load the appropriate shared libraries. If your colleague provides an RPM file for installation, then the … | |
Re: VMware or VirtualBox - they are basically the same in that they allow you to run other operating systems in virtual machines on a single host. Myself, I like VirtualBox (open source and free) and use it on both Linux and Windows hosts. For my personal work, I run VBox … | |
Re: Use virtual machines to install/test new kernels first? I don't think that a 2.6.21 kernel will work with FC14 as there are SERIOUS deltas between the 2.6.2x and 2.6.3x kernels which require different user-side application versions to run. IE, won't work unless you also downgrade just about everything else on … | |
Re: You can easily embed the output from a shell command into the argument list of another command using backquotes. Example, if you want 'y' to be passed as the option "--accept=", try this: command --accept=`yes | head -1` To get that into the standard input stream you can do this … | |
Re: First, the first half of a palindrom is not the same as the second half. A palidrom is a word that reads the same forward or backward. This is something quite different! Here is a helpful Wikipedia article about them: http://en.wikipedia.org/wiki/Palindrome I don't have time to review your code right … | |
Re: First, try cleaning the drive - get a CD/DVD cleaning disc - and see if that helps. If not, replace the drive. It is either a dirty lense / laser emitter, or it the lense / emitter is out of alignment. If the latter, there is nothing you can do … | |
Re: This is why you should wait before submitting your data to "the cloud". It isn't ready for prime-time as yet! I hope you kept backup copies of your data... :-( | |
Re: So, you post some code. You don't indicate what your problem is (although there are a number of problems with your code)... On writing to cout, terminate your lines with `<< endl;`, otherwise you won't get your output displayed on the screen before you are asking for the input. | |
Re: From the Linux fprintf() man page: The flag characters The character % is followed by zero or more of the following flags: # The value should be converted to an "alternate form". For o conversions, the first character of the output string is made zero (by prefixing a 0 if … | |
Re: > 1) Install mono on your Linux system > 2) copy you program .exe (for instance myProgram.exe) and associated dll from Visual udio onto the Linux. > 3) In Linux type the command : > mono myProgram.exe > 4) See ... what happens. And good luck! Yes, mono provides a … | |
Re: The IP address of your system cannot be changed by a C/C++ program in most cases. I have to ask, what exactly are you trying to accomplish? | |
Re: Assembly language is TOTALLY platform dependent. IE, x86 code is very different from ARM code, from MIPS code, from Itanium code, PowerPC code, etc. Obviously, x86 is the currently most common denominator, so I would suggest that you purchase (or download) from the Intel web site the current x86 assembler … |
The End.