5,331 Posted Topics
Re: Isn't that why you are taking the class? We don't do your homework for you, but we will help you solve problems once you have made an effort to do it yourself. | |
Re: For a small or medium size business, a VPN (Virtual Private Network) is a reasonable solution. If that is not feasible, then a dedicated network link, with all systems inside the corporate firewall, is possible - which is the solution most larger enterprises utilize. | |
Re: You need to create this file: /home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/lib The configuration and make tools should have created it, but see what happens when you create it yourself, then try make again. | |
Re: More information as to what specifically your use-case is would be helpful. I use vectors and lists for this all the time, but what pattern I utilized depends a lot upon what I am trying to accomplish. | |
Re: > Is this for homework? I would suspect so. At least they are making a reasonable effort to solve the problem, so helping them (at least as far as pointing out their errors) is not unreasonable, IMHO. | |
Re: The colon and following space are just text which will be ouput along with the variable data which will be inserted in the string where the format specifiers are found (%2d and %3d). | |
Re: Usually, the x.04 (April) versions are LTS (Long Term Support) systems. If you want to have available updates then you need to install either the latest (and not necessarily greatest) version, or one of the LTS ones. Personally, I have not found an Ubuntu distribution that I can accept since … | |
Re: Have you tried removing the new RAM to see if that may be the cause of this problem? Intermittent RAM problems can cause this sort of behavior, especially since laptops don't have ECC (error-correction) memory. If it has an occasional glitch, then this sort of behavior is not unreasonable to … | |
Re: One word - Steam. Physics engines are very difficult. If you want to do your own, you will need to work on your maths (calculus) skills. Anyway, remember that Google (search) is your friend! :-) And do have fun! | |
Re: RTFM. Use fork()/exec() functions to create a child process, which will then communicate with the parent process via pipes or TCP/IP connections. In any case, start by modeling how the processor and memory will work/interact. Until you determine that behavior, anything else is a waste of time. FWIW, I taught … | |
Re: You can get a new drive to replace the old one (internally) and install Linux on it, probably without much issue. Your wireless (WiFi) hardware may be a bit of a problem to get working - sometimes proprietary drivers and firmare is required to make it work, but generally that … | |
Re: From your question, I assume you are using a Windows system? Do you know if the files are in MS, or in Unix/Linux format? | |
Re: A crore == 10M, right? lahk == 10K as I recall... :-) An array of 200M elements (assuming array of pointers pointers) on a 64-bit machine will take 200Mx8 bytes (minimum) of memory, which is 1.6GB. Most systems won't allow you to allocate such sizes on the stack, so you … | |
Re: This is an excellent excercize! You will learn how to code C structures, and generate XML data. Start by describing the solution to the problem in text/pseudo-code. Think about the structures you need to reflect the data (classes in C++), and what XML contructs will reflect that data to write … | |
Re: Argh! I haven't written any prolog in probably 25 years. I'll have to do some review of my copy of Clocksin and Mellish (the bible of prolog) and get back to you on this. Are you in a hurry? :-) | |
Re: So, code it and then post it here if it doesn't work as defined - we don't do your homework for you... | |
Re: Have you just tried to plug in mouse when system is powered down, and then booting it? It ***should*** recognize it and install the appropriate drivers; however, since just about no current mice use serial rs-232 interfaces, this may not work... :-( Time to get a USB mouse perhaps? | |
Re: My guess is that you didn't quite put it back together correctly. That said, if it works... :-) Anyway, dis-assembling laptops is not always a job for amateurs. I'm a professional, and sometimes they don't like to get back together like they should. :-) Then there is my grandson, who … | |
Re: Well, I was going to suggest that you try to boot into Windows safe mode, but you say you tried that already. Have you tried to boot from an installation/recovery CD/DVD/USB drive? If you don't have one, try an Linux Live CD/DVD/USB drive (you will have to create one on … | |
Re: First, you declare Push() with this signature: `void Push(StackType *Stack, StackElementType Item,int *k);` yet you call it like this: `Push(&Stack,&Item,&k);` Do you see the problem? It would work if you called it like this: `Push(&Stack,Item,&k);` As for the rest, read the error/warning messages - they pretty much tell you what … | |
Re: You are trying to be too clever with line #8. Also, DO NOT use "goto" statements - bad form! I'd give you a serious downgrade for that alone if I was teaching your class! So, what I am trying to tell you, is to write your code in a logical … | |
Re: Very wrong here! First, work out the steps your server needs to take for handling client connections. IE, 1. Accept connection, getting a socket to communicate with client. 2. Fork, and let child process handle that socket. 3. Go back to accepting connection requests in parent process. 4. When child … | |
Re: Well, your while condition is incorrect if you want to continue if xyz is even. The expression `xyz%2` will return a non-zero value if it is odd, not even. So, try changing the `while(xyz%2)` condition to `while ((xyz%2) == 0)`. | |
Re: As deceptikon said. Also, make sure that you scope your expressions properly. IE, instead of `Set F = 9 * C/ 5 + 32`, use `Set F = 9 * (C/5) + 32` - that will make sure that your mathematical expressions are properly evaluated. | |
Re: You are trying to delete the iterator, and NOT the object it is pointing to. | |
Re: Your code is totally wrong! The strcmp() function returns 0 if the elements are equal, < 0 if the left-side is alphabetically < than the right, and > 0, if otherwise. IE, if(strcmp(clr,"green") == 0) printf("green"); etc. From the Linux strcmp man page: STRCMP(3) Linux Programmer’s Manual STRCMP(3) NAME strcmp, … | |
Re: What deceptikon said... :-) Although, creating your own datatypes is the essence of C++ and object-oriented programming in general - define your data types and the behavior they will expose to the world. | |
Re: Yes, to both questions. When inserting a new element into a sorted list (vector/array), don't just add it to bottom and try to re-sort the array. It is MUCH more efficient to find the position that it should be inserted in, move all the rest down one element (possibly requiring … | |
Re: What version of PF_RING are you trying to build? Where did you download it from (ntop)? | |
Re: Sigh. I have built, and helped build a large number of PC's without problem (I am a certified computer hardware tech, and professional software engineer). That said, whenever I need to build a custom bit of gear for myself, I usually let my local white-box builder do it, because I … | |
Re: RTFM? By UART, I presume you mean an RS-232 device, to an external bluetooth wireless controller? How is the bluetooth transceiver connected to the pic24 - via USB, or otherwise? In any case, you don't provide enough information to help. Code can only work with specific interfaces, and you are … | |
Re: I recently wrote a C++ program to take sar data from a linux system (system activity reports) and convert it into time-series metrics. The code is about 1500 lines. The original code took a few days to write. Getting it into production in a major corporate environment to monitor all … | |
Re: Huh? I'm clueless here as to what you are getting at. Please be more specific and provide code example. | |
Re: The easiest way is to convert each character to a hexadecimal representation of the original text, and write that to disc. The only downside to this is that the size doubles. IE, 10 characters of input data will result in 20 characters of output data. To read it back, you … | |
Re: The algorithm won't change - only the language. Consider Banfa's post as pseudo-code and convert that to assembler... :-) | |
Re: You say it only happens when you are playing games? Is it always the same game? If different games, are they from the same manufacturer? Games stress a system's I/O bus, CPU, RAM, and video. If one of these are defective, they may encounter a situation where they generate what … | |
Re: You need another `break;` statment at the end of each outer switch block, before the next case statement, as in (from lines 46-48): } break; case 2://Not Enough Heat cout<<"What type of Heating system do you have?\n"<<endl; plus breaks for the others. | |
Re: As Adak said - without the code, there isn't much we can tell you. Usually these sort of problems are of the Homer Simpson variety - Doh! Head Slap! Once you see what is the issue... :-) | |
Re: Can you boot into safe mode? What about by-passing the boot process and go into recovery mode? My guess is that you may have system damage other than just the disc. Often power failures are also accompanied with a power surge, damaging other components unless you have a newish, good … | |
Re: Your problem is here: `long int fib[user];` on line 8. You have sized the array at 1 (the value of the 'user' variable). The fact that it doesn't segfault on you more quickly is probably accidental. In any case, you are munging the stack. Instead, you should make the variable … | |
Re: string types keep track of the length of the data internally - adding the NUL byte is not required, and is actually appended to the internal buffer, incrementing the length. Don't worry about it, and don't try to do the string class' work for it... :-) As mentioned, if you … | |
Re: Whereas printf will sometimes handle upgrading variables to the appropriate type, scanf is not so nice. y is a 16bit value, but you are scanning for a 32bit value - it doesn't fit so you will lose bits. In printf, the 16bit variable can be promoted to a 32bit value … | |
Re: If you have two microphones (built-in and external such as bluetooth, usb headset, or physical mic plugged into headphone/mic port), then the built-in may not be enabled. As suggested by AHarrisGsy, go to the device manager, right click on the microphone icon, and see if it is enabled. If not, … | |
Re: You may need to edit your BIOS/UEFI settings to disable the onboard chip and enable the external adapter, or to tell it to use both. My guess is that it is set to only use the onboard chip so it is objecting to the "unknown" hardware. Since it won't boot … | |
Re: An n-tier architecture is sometimes called a peer-to-peer architecture, where clients can be servers and vice-versa. A 2-tier architecture is a pure client-server situation. The client asks, and the server delivers. So, please tell us what you are trying to work out, other than the abstraction you mention. N-tier has … | |
Re: What kind of system are you talking to, and what terminal type are you using? If you are connected to a Unix/Linux system, then you can use the stty command to change the apparent terminal size so output will be wrapped to fit the screen. There are also telnet commands … |
The End.