5,331 Posted Topics

Member Avatar for handsomelaw

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.

Member Avatar for rubberman
0
114
Member Avatar for aksemt

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.

Member Avatar for thrillride01
0
165
Member Avatar for singularity~

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.

Member Avatar for deniscass
0
557
Member Avatar for A Haunted Army

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.

Member Avatar for A Haunted Army
0
300
Member Avatar for xNeverLetGo

> 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.

Member Avatar for xNeverLetGo
0
1K
Member Avatar for Violet_82

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).

Member Avatar for Violet_82
0
482
Member Avatar for rotten69

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 …

Member Avatar for Nutster
0
358
Member Avatar for powersstuff

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 …

Member Avatar for powersstuff
0
221
Member Avatar for pars99

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!

Member Avatar for Tumlee
0
839
Member Avatar for nah094020

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 …

Member Avatar for nah094020
0
670
Member Avatar for manfred_1

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 …

Member Avatar for rubberman
0
232
Member Avatar for anumash

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?

Member Avatar for deceptikon
0
214
Member Avatar for ram619

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 …

Member Avatar for Adak
0
205
Member Avatar for Amy Rami

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 …

Member Avatar for Amy Rami
0
166
Member Avatar for thakursandeep
Member Avatar for Diogo Martinho

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? :-)

Member Avatar for TrustyTony
0
273
Member Avatar for Start4me

So, code it and then post it here if it doesn't work as defined - we don't do your homework for you...

Member Avatar for andreas.bjorn
0
329
Member Avatar for javanoob101

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?

Member Avatar for javanoob101
0
491
Member Avatar for Violet_82

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 …

Member Avatar for gerbil
0
219
Member Avatar for realrdp

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 …

Member Avatar for realrdp
0
174
Member Avatar for anestistsoukalis

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 …

Member Avatar for rubberman
0
184
Member Avatar for i3-540

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 …

Member Avatar for np complete
0
191
Member Avatar for Fredszky

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 …

Member Avatar for Fredszky
0
6K
Member Avatar for <M/>

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)`.

Member Avatar for <M/>
0
122
Member Avatar for Landoro
Member Avatar for christinocasio

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.

Member Avatar for christinocasio
0
4K
Member Avatar for cdsr
Member Avatar for Vish0203

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, …

Member Avatar for rubberman
0
122
Member Avatar for BARI DANIYAL

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.

Member Avatar for rubberman
0
143
Member Avatar for on93

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 …

Member Avatar for rubberman
0
175
Member Avatar for newbie14

What version of PF_RING are you trying to build? Where did you download it from (ntop)?

Member Avatar for newbie14
0
2K
Member Avatar for slasham

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 …

Member Avatar for rubberman
1
2K
Member Avatar for safiulm

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 …

Member Avatar for rubberman
0
92
Member Avatar for nabeelkhanjadoon10

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 …

Member Avatar for DoRight
0
7K
Member Avatar for Envycx

Huh? I'm clueless here as to what you are getting at. Please be more specific and provide code example.

Member Avatar for stultuske
-3
77
Member Avatar for erms

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 …

Member Avatar for erms
0
605
Member Avatar for alanso

The algorithm won't change - only the language. Consider Banfa's post as pseudo-code and convert that to assembler... :-)

Member Avatar for Banfa
0
421
Member Avatar for breakpause

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 …

Member Avatar for Andy456
0
249
Member Avatar for spawn2004
Member Avatar for king03
Member Avatar for Tonyi1

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.

Member Avatar for Tonyi1
0
354
Member Avatar for tony75

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... :-)

Member Avatar for tony75
0
231
Member Avatar for onix

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 …

Member Avatar for JorgeM
0
158
Member Avatar for totalwar235

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 …

Member Avatar for deceptikon
0
179
Member Avatar for nitin1

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 …

Member Avatar for Moschops
0
163
Member Avatar for dewdropz

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 …

Member Avatar for deceptikon
0
242
Member Avatar for Fiorentino01^

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, …

Member Avatar for Fiorentino01^
0
288
Member Avatar for thetechguy

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 …

Member Avatar for aawebdev
0
369
Member Avatar for sukhanya

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 …

Member Avatar for sukhanya
0
151
Member Avatar for vikarna

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 …

Member Avatar for rubberman
0
97

The End.