5,331 Posted Topics
Re: A pipe is a pipe - consider it a FIFO (First In, First Out) queue. There are other IPC mechanisms for Linux/Unix such as Posix queues, etc. Is there something you need to accomplish in particular? | |
Re: So, is D: a hard drive, a partition of the system drive, a removable drive (CD/DVD), a usb drive? What? How is it attached to the system? As you might be able to tell from my questions, you aren't providing enough information... :-) | |
Re: Write it out first in pseudo-code - 300 (almost) lines of code is too much to analyze quickly. That will help you determine if you are doing what you think. Then write the code to implement the algorithm/pseudo-code. | |
![]() | Re: Any particular reason why you want Ubuntu? For a 512mb system you will want a lighter weight distribution I think, although xubuntu might suffice, running the XFCE window manager, which is less resource instensive than kde or gnome. In any case, 9.04 was the last (in my opinion) decent Ubuntu … |
Re: See the man page for libsox (assuming it is installed on your system). It provides low-level api's to play sound files. Not simple, but not too difficult. You will need to install the developer package in order to get the header files that you need. From the libsox man page: … | |
Re: Another approach would be to see if stdin is attached to a real terminal. A process that is spawned by a daemon would have no stdin device, or it would be /dev/null. | |
Re: Like what Mike2K said. That said (sic), the nice thing about standards... is that there are so many! :-) And FWIW, Microsoft's compilers are usually quite far behind the current set of standards... :-( | |
Re: Try using new, as in `totalPoints3=new String(top5)` | |
Re: What do YOU think they are? Sorry, but we don't do your homework for you, nor do we like to help you cheat... Make an effort, and show your work. We can critique and make suggestions then. | |
Re: Show all of your code, including variable definitions. This is not sufficient to tell you why your grades are not in the proper order. However, you have only one exam[] array, and you need one for each student, which is why each student has the same grades... Create a Student … | |
Re: What version of Kerberos are you using, and are you running vanilla RHEL 6, or some clone such as CentOS, Scientific Linux (SL), etc? There are a number of FAQ's on those sites (especially SL) that deal with setting up a kerberos server. | |
Re: Sorry. We don't do your homework for you... Show your work, and if appropriate then we will help you. | |
Re: Do this instead: using namespace std; string somestuff; cin >> somestuff; cout << somestuff << endl; As Tumlee said, what you did was not only unsafe, but guaranteed to segfault! A pointer has to point to valid memory. You had two major problems: 1. The pointer was not initialized. 2. … | |
Re: Like C/C++, Java uses 0-based indexes. Not interested in reading through your 200 lines of code. If you set a member to index 1, it is actually the second member of the array, NOT the first. | |
Re: You are running out of stack space most likely. Are you running this on Windows, or on Linux? | |
Re: The purpose of homework is to help you think about the problem domain that the class is trying to cover. Asking us to do your homework for you is cheating... :-( Try to solve the problems yourself first, and then we will try to help you understand and fix your … | |
Re: You aren't providing enough information to really help you. That said, put the data set structures (you are using structures aren't you?) or strings, or whatever, into an array. They use a random number generator to randomly select items for the test set, and put the rest into the training … | |
Re: This is a common problem in multi-threaded applications. You will need to use a mutex to syncronize the producer/consumer threads. Using condition variables is not safe enough, especially in high throughput applications. I write a lot of this sort of code in my job. We have to deal with it … | |
Re: LastMitch's ending comment is correct, but normally, even with Acrobat Pro, you will need the password to change the security settings on the document. ![]() | |
Re: What speedtaxi12 suggests is not for most people to try. My advice is to contact the PC manufacturer and if advised to do so, send it in for repair. | |
Re: We don't do your homework for you - don't ask us to help you cheat! Make an effort and we will help you correct coding problems. You might start by reading your linear algebra text book... | |
Re: If I have a choice, I would go with the nVidia gear. IMO, the Intel gear is still a generation behind nVidia for performance and capability. If you are running a gaming system, get nVidia. If you are doing video production, get nVidia. If you are doing simple business graphics … | |
Re: I presume you want to reconfigure your kernel, perhaps to remove unneeded drivers, and such? You need to visit www.tldp.org and your Linux distribution's web site for "building a kernel" FAQ. In any case, you need to do the following at a minimum: 1. Download and install the kernel sources. … | |
Re: Sometimes ancillary hardware gets into "wierd" states, and a soft reboot will not necessary reset them, resulting in a malfunctioning system on reboot. When you do a complete power-down, wait for 30-60 seconds, and then start the system up again, these devices will properly power down (discharging onboard capacitors, etc) … | |
Re: How many angels can stand on the head of a pin? :-) QDOS (Seattle Computer Products - source of MS-DOS) PC-DOS (IBM from Microsoft) MS-DOS (derived from QDOS) CP/M (Digital Research) TrsDOS (Tandy OS for Trs80 computers) Multics (predicessor to Unix) Unix (AT&T - Bell Labs) Ultrix (first DEC Unix) … | |
Re: Interesting situation - a new one on me! :-) Some computers need some time to find the SSIDs broadcasting in the region. You might want to check the router/AP's configuration to make sure it is broadcasting the SSID. Also, it may not broadcast the SSID on a continuous basis, so … | |
Re: You need to run yum as root, or with sudo (assuming you have sudo privileges). Since you are using yum, I assume you are either running a Red Hat or SuSe distribution? The openssl package is a standard module in the "security" distribution. FWIW, WHY do you want to remove … | |
Re: Less than a day? :-) Ok. I've been doing serious software engineering for 30+ years and am still learning about this subject (and others). Let's start with what you DO know, and then move to what you NEED to know! | |
Re: 2 things: - power failures - power surges These things are totally unforseeable. The only way to deal with power failures is with a good UPS. They are often accompanied with power surges. Only a good surge suppressor can deal with those. Also, when there are power surges due to … | |
Re: What caperjack said - cpuz will tell you all about your system hardware. Also, you can boot into the BIOS and see what it says. In any case, you do have a dual core CPU from what you posted. | |
Re: What bguild said. Also, we don't do your homework for you! Consider that to be cheating, and I'm SURE you don't want to do that, do you? :-) | |
Re: These graphics cards are very power hungry. Assuming your system still works when you remove the card, you need to verify that your power supply is adequate for the system + video card. If not, then you will experience the symptoms you are getting. | |
![]() | Re: Wales - the location of the filming and production of the new Doctor Who, Merlin, and a bunch of other great TV shows! Hope to get there some day... :-) P.S. My housemaster at Dulwich College in London where I spent a year (4th form) was from Wales, Mr. B.M.Jones! … |
Re: Having programs on your system won't slow it down unless they are part of some autostarted services. Look at the services running on the system, and either disable, or specify manual startup, for the ones you don't need. I find that this has the best impact on overall system performance. … | |
Re: Try the command "uname -r" - if you have a 64bit system, there should be an x86_64 in the kernel name string that will print. Ditto, look at the files in /boot. There are a number of other methods as well, but this will work. This will tell you if … | |
| |
Re: Often, the fibonacci sequence is computed using a recursive function as shown in your comments (except for 0 and 1), and fib(6) == 8, not 5. I think the teacher wants you to learn how to write a recursive function instead of plugging in a formula that you looked up … | |
Re: Power it down and let it cool. What thrillride01 asked is relevant here. Does the CPU have a cooling fan or heatsink attached? Let me just say, that I have built a lot of systems myself in the past, but even as a professional in this field, when I need … | |
Re: Brevity? A default constructor, copy constructor, and assignment operator are created by the compiler by default, even if not specified by the developer of the class. However, the member variables and such are not necessarily constructed as you may want (caveate programmer). As for the constructor with arguments, consider this: … | |
Re: And, what do YOU mean by the term "convert"? Do you mean to print it out as binary 0's and 1's? Or, something else? | |
Re: First of all, this is VERY old K&R style code. Most modern compilers will emit a lot of warnings and possibly errors unless your compiler has a flag that will tell it that this is old code. Second, deceptikon is correct. Asking people to comment an 800+ line source file … | |
Re: Have you contacted Nokia support? Does your data plan support tethering? Is the phone configured for tethering? FWIW, I am a senior systems engineer at Nokia - I have to ask these questions! :-) | |
Re: What happens when you use the battery, but not the external power supply? Does it do the same thing? Your post wasn't explicit about that. If it does, then there is some material problem with the system. I presume from your post that it is out of warranty. If so, … | |
Re: This is not an upgrade. This is a clean installation. You don't upgrade Linux to Windows. If you have enough disc space, you can perform a dual-boot installation (install Windows first, and then Linux). Windows usually doesn't like to co-exist with Linux unless to tell it specifically to NOT use … | |
Re: You posted this in the C language forum, yet you are using C++ constructs. Is this supposed to be in C, or in C++? Or does it not matter? | |
Re: Typically, postfix is implemented as you did, with a stack-based approach. There are alternatives. It sounds like your professor is trying you to implement this in a recursive algorithm. | |
Re: You can do what JorgeM suggests, or you can separate the clients from the router, physically, and turn your server into a router. That way, they can ONLY get their IP addresses from the server. It will require more work on your part, and all the client traffic will get … | |
Re: How many pixels per row and column in the total image are there? Also, how many pixels per cm are there? Your problem is how to locate the offsets in the buffer where the images exist, and then look at the pixels in those ranges. There are a number of … | |
Re: You have a couple of problems. Mostly the variables that you pass to the cpu() and memory functions are being used as though they are being updated inside the functions, yet you don't update them there. Also, if that was your intention, then you need to alter the signature of … |
The End.