5,331 Posted Topics

Member Avatar for umesh314

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?

Member Avatar for rubberman
0
98
Member Avatar for zahere xamar

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

Member Avatar for rubberman
0
19
Member Avatar for rfrapp

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.

Member Avatar for rfrapp
0
540
Member Avatar for Boondockers

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 …

Member Avatar for naphets
0
143
Member Avatar for roshu10

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

Member Avatar for Moschops
0
374
Member Avatar for boomerang2711

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.

Member Avatar for boomerang2711
0
217
Member Avatar for AmrMohammed

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

Member Avatar for mike_2000_17
0
901
Member Avatar for lse123
Member Avatar for justin.guedes.3

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.

Member Avatar for justin.guedes.3
0
147
Member Avatar for mc3330418

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 …

Member Avatar for rubberman
0
1K
Member Avatar for rahul pareek

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.

Member Avatar for rubberman
0
77
Member Avatar for Wnt2bsleepin

Sorry. We don't do your homework for you... Show your work, and if appropriate then we will help you.

Member Avatar for rubberman
0
342
Member Avatar for billionair

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

Member Avatar for rubberman
0
404
Member Avatar for Shania_01

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.

Member Avatar for rubberman
0
143
Member Avatar for waqas.zafar.125
Member Avatar for rubberman
0
163
Member Avatar for e.patricioparga

You are running out of stack space most likely. Are you running this on Windows, or on Linux?

Member Avatar for Adak
0
182
Member Avatar for Akshay nand

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 …

Member Avatar for bumsfeld
0
211
Member Avatar for yaswanth.akula

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 …

Member Avatar for yaswanth.akula
0
158
Member Avatar for karandeepmalik

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 …

Member Avatar for rubberman
0
224
Member Avatar for VickyMilza

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.

Member Avatar for LastMitch
1
239
Member Avatar for phobos666

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.

Member Avatar for rubberman
0
191
Member Avatar for krissmwa05

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

Member Avatar for krissmwa05
-2
243
Member Avatar for aj.jaswanth

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 …

Member Avatar for rubberman
0
178
Member Avatar for touchbun.hun

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

Member Avatar for rubberman
0
205
Member Avatar for ybean4

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

Member Avatar for rubberman
0
235
Member Avatar for cynusalisa

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

Member Avatar for ankur.pandey.52687
-1
178
Member Avatar for Leo G

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 …

Member Avatar for gigamonsef
0
267
Member Avatar for MasterHacker110

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 …

Member Avatar for DoRight
0
2K
Member Avatar for uknown2

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!

Member Avatar for JamesCherrill
0
176
Member Avatar for thrillride01

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 …

Member Avatar for thrillride01
0
555
Member Avatar for osamabin.idrees

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.

Member Avatar for rubberman
0
181
Member Avatar for abzksm

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

Member Avatar for rubberman
-1
131
Member Avatar for slasham

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.

Member Avatar for thrillride01
0
264
Member Avatar for diafol

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

Member Avatar for ChrisHunter
0
265
Member Avatar for Joe2

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

Member Avatar for Akbar ali it
0
212
Member Avatar for NMADW

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 …

Member Avatar for rubberman
0
207
Member Avatar for Readyset123
Member Avatar for Readyset123
0
187
Member Avatar for craig.durnin.1

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 …

Member Avatar for craig.durnin.1
0
7K
Member Avatar for jomulkey

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 …

Member Avatar for thrillride01
0
215
Member Avatar for mc3330418

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

Member Avatar for mc3330418
0
146
Member Avatar for sami youssef

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?

Member Avatar for rubberman
0
152
Member Avatar for ellenski

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 …

Member Avatar for deceptikon
0
309
Member Avatar for tqmd1

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

Member Avatar for tqmd1
0
216
Member Avatar for kevin.relph

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

Member Avatar for rubberman
0
360
Member Avatar for slasham

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 …

Member Avatar for Ancient Dragon
0
190
Member Avatar for herious89

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?

Member Avatar for rubberman
0
928
Member Avatar for connor.wells.7946

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.

Member Avatar for rubberman
0
386
Member Avatar for hazzag1995

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 …

Member Avatar for thrillride01
0
550
Member Avatar for desciomaryann

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 …

Member Avatar for rubberman
0
101
Member Avatar for nah094020

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 …

Member Avatar for rubberman
0
262

The End.