5,331 Posted Topics
Re: New to C programming are we? You need to learn how C program files use headers to describe/define structures and interfaces. This is basic computer science and programming 101. For example, if I have a C source file that implements some API (functions) that other programs may use, I will … | |
Re: So, you are saying that your notebook display only works for a second or two on boot, but if you have an external display (tv, etc) then that will continue to work? If so, then I believe the LCD driver hardware is faulty. Send it in to the Asus repair … | |
Re: ??? What EXACTLY are you trying to accomplish? SEO can mean many thing to different people. | |
Re: BTW, please stop SHOUTING! Bad netiquete. Usually, this sort of situation is done via firewall rules. You don't mention what you are using for a firewall - hardware (make/model), server software (what program/service), what? Without more information, there isn't much we can tell you that may work in your environment. | |
Re: I won't go beyond the struct declaration. You are using the same name for the constructor argument as you are using for the member variable. DON'T DO THAT! As a good practice, use m_ as a prefix for member variables, so instead of value, the member variable name is m_value, … | |
![]() | Re: There are books that go into this in detail. As a software engineer, I just use the appropriate macro functions that convert network-to-os order and vice-versa. I don't bother with the rest. That said, I used to teach basic internetworking to AT&T techs so I had to lecture on all … ![]() |
Re: If there are no user-accessible accounts with administrator privileges, then you will have to reinstall the system. I don't know of any way to change the administrator account password without logging in as the administrator directly. However, if a user-accessible account has administrator privileges, then they can do anything needed … | |
Re: A lot of systems advertize dual core cpus with hyperthreading as quad-core, which is deceptive in my opinion. My work laptop is an i7 cpu, which should be quad-core for real, but a lot of them are only dual-core + hyperthreading, and such is my system. That means I can't … | |
Re: Boot with a live cd/dvd/usb drive, mount the root file system on the hard drive to some local mount point such as /mnt/sysroot (you will have to create the directory first), then you can, as root in the live system, edit the /etc/shadow file to remove the password for the … | |
Re: I assume this is a USB dongle. Try the "lsusb -v" command. | |
Re: Well, upgrading your Symbian phone from Anna to Belle had zip to do with your computer problem - a red herring if you will. I am a senior systems engineer at Nokia Mobile Phones so I have some understanding of that - one of my phones is an N8 Symbian … | |
Re: First, find wall, place head against wall, pull head away from wall, accelerate head to impact on wall sharply, repeat instructions... Second (and less painfully), install a virtual machine manager such as VirtualBox on your system, then install Ubuntu Server 12.04 there and go back to "First" above until you … | |
Re: You aren't providing enough information. For whatever it's worth, building kernel drivers is not for the newbie. All I can reasonably suggest is that you look at the Makefile associated with other, similar, drivers to see how they do it. Also, go to the gnu.org web site and read the … | |
Re: My advice? Forget it! Licensing software (or using DRM) only keeps the honest honest, but irritated (when the software fails because the license or DRM software is fubar, that is a quick way to lose customers). Most customers of commercial software are perfectly happy to pay, and are more than … | |
Re: I did this as a self-teaching exercise about 27 years ago. 1. Create a static array of primes up to 10,000 using the Sieve of Aristhostenes. 2. Utilize a RECURSIVE, binary partitioning algorithm to determin if a number is prime. First, find the largest prime number <= 1/2 of the … | |
Re: So, how long ago did you get this assignment? Here it is, less than 2 days until it is due, and it doesn't appear to be a trivial problem. Sorry, but we don't help you cheat. You have to do this on your own. We'll help once you have made … | |
Re: 1. Use `<< endl` output manipulators after each output line so that the output is flushed to the display, and it appears on its own line. 2. The loop is simple: while (soda != 6) { // 1. display menu // 2. decode input to decide what to do. // … | |
Re: Go from back to front, and use a temporary buffer to hold the data until done. IE, for (int i = strlen(input) - 1, j = 0; i <= 0; i--, j++) { temp[j] = input[i]; } temp[j] = 0; output = temp; Just FYI, this won't work, but it … | |
Re: It seems you can only maximize the height, but the width you have to go to preferences and set the windows width manually. I was able to set mine to 256 chars, or more. | |
Re: Not a good idea. The better option would be to increase the priority of your program so it will pre-empt other processes that are running at a lower priority. From your question, I assume you are running Windows. With Linux this is trivial, by decreasing the 'nice' factor of your … | |
Re: 1000! == 4.023872601e+2567 - a value that will overflow ANY normal computer numeric variable. My guess is that 2000, 3000, etc worked because of numeric overflow on the integers resulted in a valid (NOT correct) value. To work with such large numbers, you need specialized math software libraries, such as … | |
Re: Also, please put your code in code blocks so it is properly indented. It is very hard to read as-is. | |
Re: If you can't connect the monitor to another computer or video card to test if it is the culprit, see if you can see the problem when you run the monitor's built-in diagnostics. If it persists, it is the monitor. If it doesn't, then it is the video card - … | |
Re: So, this doesn't happen with Firefox? I assume you are using Norton in on-access-scan mode? This may interfer with IE if IE thinks it is taking too long to access some web content or load necessary ActiveX controls, dll's, etc. Try disabling that feature temporarily to see if that makes … | |
Re: Just do one wait() in the parent process in a loop - not one for each child pid - until it receives the SIGCHLD signal for each forked child process. Waiting 3 times in the same while() loop is counter-productive. Alternatively, you can use waitpid() instead, to wait for a … | |
Re: So, what is this header file for? If available for Ubuntu, but not for Windows, then you may have to port the library it supports to Windows yourself. What does winscard do? Why are you using it? | |
Re: Walk through your logic, identifying each component step critical to the final calculation. Make sure each step completes correctly. As you do this exercise, you will find where your problems are. | |
Re: Isn't this kind of where we are going with quantum computing, where a bit can encode more than 2 (0 or 1) values? Anyway, most of the cost would be involved with providing compatibility. Yes a 3-state computer could interpret (if instructed to do so) dual-state data, but it wouldn't … | |
Re: All the documentation you need should be on your system (see the man and info commands), and you can find a lot more either online, or from the supporting web sites (Google is your friend). For FTP you need to know about xinetd and also whether or not you want … | |
Re: The purpose of these class exercises in algorithm development is to get you thinking about problems and how to analyze and approach and then solve them. Don't ask us to help you cheat! And that is what you are doing! Make an honest effort, and we may decide to critique … | |
Re: There are a lot of factors. The data (videos) are stored across many computers. How fast some (or parts) are accessed depends upon the load (cpu, network, i/o) on specific components. You need to understand how big-data (Hadoop and Google's mass storage) read-mostly systems work. If you did, you would … | |
Re: Some C header files are not C++ safe. If you get compiler and/or linker errors when you try to do so, then "guard" the `#include <someCheader.h>` directives with `extern "C" {...}`. Example: #ifndef MYCPPHEADER_H #define MYCPPHEADER_H // My C++ header file extern "C" { #include <someCheader.h> } . . . … | |
Re: Bad repair? | |
Re: It looks like you are using JNI for low level interfacing, correct? | |
Re: Speed, speed, speed. That is the question. Can you find another ISP and/or device that can give you better throughput? Since you are using Virgin, I assume you are in the UK? I am in the US, so I don't know what will work best over the pond. | |
Re: Go to the device manager, and remove the entries for your wireless, if they appear. Then reboot. The system should reinstall the drivers and this will often fix the problem. | |
Re: Whatever burnt out your motherboard probably toasted your video and audio cards as well. Time to get some new gear! | |
Re: Please provide your definition of the dlist structure. I can infer it from the code, that that is not really reliable... | |
Re: Not enough info, but since this is a school project, I have to ask, what do you know about database management and file sharing? IE, the subject is to broad to approach in any meaningful manner until you start to restrict it to some reasonable parameters. | |
Re: You can extract the specific file from the compressed .bz2 tarball with this command: tar -jxvf filename.tar.bz2 targetfilename | |
Re: What waltp said: string getName() { cout << "What is your name? "; getline(cin, name); return name; } | |
Re: MySQL is a good choice for a low maintenance database that is widely supported, and free. | |
Re: Good employers don't place too much emphasis on "certifications", but on what you know and what you have done. If you are going to take a year to refine your skills, then sign up and start contributing to a serious open source project. In our organization, that would count for … | |
Re: I have found that sometimes when this happens you can fix it by going to the device manager and removing all the USB hubs and devices, then rebooting. That will reinstall all of the drivers. I had a similar problem with Win7 not being able to recognize my USB thumb … | |
Re: Assuming you are running Windows, then boot into safe mode, login, reset the resolution if necessary, and then reboot. This usually works for me, though your mileage may vary... :-) | |
Re: Don't ask us to do that with a long "stack" of code without providing the compiler output with syntax errors and warnings. | |
Re: We don't solve your school problems here - that is blatant cheating. You first have to make an effort to solve them, then if you have made a sincere effort, we will happily help you to figure out what went wrong... :-( | |
Re: Qt works well in most environments, and is almost 100% cross-system compatible. I have used it for Windows, Linux, and QNX development work, each of which has a totally different windowing system. | |
Re: Are you sure the "new" CPU is rated for the speed the old mobo is driving it at? It sounds like it is incorrectly overclocked to me. In your specs you don't mention what the CPU speed of the old vs the new CPU is. You do mention the DDR … | |
Re: So you are saying that the display works, but the backlight doesn't? On most systems, these are florescent lamps, and others LEDs. If yours is the florescent type, then the balast may be bad, or as you say, it could be the controller on the motherboard. In any case, you … |
The End.