rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since resetting the RAM sticks solved the problem for awhile, I would suspect that your system RAM is overheating. I had a similar problem on my system last year. Fortunately, I only had 1/2 of the available sockets populated, and changing the simms to use every other slot (leaving a slot between each) allowed the heat to dissipate better, solving the overheating problem without replacing the simms.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My guess is that the Test->checkHotspot(1) argument to mousewithin() is returning a null pointer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As per caperjack, blow (or preferably vacuum) the dust out of the system, let it cool down, and try again. If you still get the "no signal" message, then your video card may be fubar.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This your school exercise. Make an effort - describe the processes needed, write some pseudo-code (or real code if you prefer), and we will be happy to comment on it. However, YOU need to make a good faith first effort at solving the problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, you CAN create NTFS or FAT file systems on discs with Linux, which ARE directly accessible by Windows, including for write access.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ubuntu probably formatted it in an ext2 format (or ext3/ext4 which are based on ext2), which is not handled directly by Windows. There are free drivers for windows that will let you read, but not write, to an ext2-based file system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a variety of loop constructs. Which to use depends upon a number of factors. In your case, a do {...} while (condition) block would be a reasonable approach. Unfortunately, your control condition statement at the end is bogus. The variable n has not been set, it is a different type than the Answer variable, and you are using an assignment operator instead of a comparison. So change the line

} while ( Answer = n );

to

} while ( Answer == 'n' || Answer == 'N' );

One last issue, is that after you ask the question "Do you want to do it again? (y/n)" you don't take input from the user, so the conditional clause at the end of the loop will not be properly set, at least as per your apparent intent... :-)

skiboy209 commented: Very helpful and not critical +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming your account is configured to use bash as the shell, then you need to edit ~/.bash_logout

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

New motherboards generally support sata drives. Some also have ide ports, but it would not be recommended to use an old/slow ide drive with a new system, given a 2TB 7200 rpm drive is under $100 USD these days.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I personally think that Ubuntu peaked at 9.04 and has gone downhill since... :-) Right now I am using Scientific Linux 6 (a clone of RHEL 6 supported by Fermi National Laboratory and CERN) and will be testing 6.1 soon. I have a few (very few) quibbles with it, but for the most part I have been happy using it, and it supports a lot of hardware that older versions of RHEL/CentOS/SL did not. Bear in mind that over the past number of years I have used (actively) Gentoo, Ubuntu, Fedora, RHEL (SL, CentOS), Suse, Debian, Mepis, and other distributions of Linux. None are perfect, but they all share one characteristic - you can tailor/tune all of them to behave as you want. That is not to say it doesn't take some time/work/effort to accomplish that, but it is certainly possible to do so.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. Posting your questions in a clearer manner would be helpful...

1. Demonstrate multi-programming
2. Idle loop

Going in reverse. The idle loop is a no-op process that keeps the CPUs running when they have nothing else to do. It is basically an infinite loop, as in

while (1)
   relinquish_to_whatever_other_process_needs_the_cpu();

As for multiprogramming, there are a number of definitions of this. One is that of multi-tasking - the CPU can handle more than one process at a time, by using time-slicing (allocating some segment of time to each process) to provide even access to the processor resources. Here is a wikipedia article on the subject: http://en.wikipedia.org/wiki/Multiprogramming

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Class exercise? At least make a stab at it! In any case, your description of the problem is not complete... What was the purpose of the assignment? Is this a two-part question, or do you need to show each principal in a combined manner?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It really doesn't matter. You can run one desktop, and still run applications built for others, such as KDE apps on Gnome, Gnome apps of XFCE, etc. You can try most of the with live CD/DVD distributions without installing them, to find one that you are most comfortable with. I have used Motif, KDE, Gnome, TWM, XFCE, and others though currently I am running Gnome (with a bunch of KDE applications as well) on Scientific Linux 6 (a clone of Red Hat Enterprise Linux 6) that I am pretty happy with. You will always have issues - nothing is perfect. That's why I suggest you try a bunch of live DVD's to see what you like best. Burn the appropriate ISO images to a DVD-RW so you can reuse it with different distributions as you go.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The file system is corrupted. You need to run chkdsk (Windows) or fsck (Linux) to fix the file system. You also should scan for back blocks since the drive may be starting to fail.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Nobody uses the Windows burner if they don't have to. There are a lot of much better programs to do that, such as Nero, Alcohol 120%, and some open source tools.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like you need to do some serious reading. Answering these questions are not simple and I don't have the time to hold your hand - that's what I do for a living...

1. Go to the Microsoft web site and look up documentation for .net and odbc in that environment.

2. Creating DB2 stored procedures is not something I have a lot of experience with (Oracle and Sybase/SQL-Server I do). Go to IBM's DB2 web site for documentation on that. The short answer to your question is: yes, you probably can create a table and then insert data into it in one stored procedure.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The easiest thing to do is to use the .net ODBC libraries.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, fstream on linux (32-bit or 64-bit) should not have a problem with a 4GB+ file. I process them all the time on a 32-bit Ubuntu 9.04 system on my laptop. In any case, seeing the source code for the write+read operations would be helpful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I usually put the OS on one drive, and user data on the other. That gives you the best split of performance, and reliability. IE, you can replace the system drive if it fails without losing your data. I do the same on Linux as well, so I can boot other operating systems, and still have access to all my user data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Run the disc check utility with the "scan for bad blocks" option enabled. You will probably need to reboot the system so it can do that. It will map the bad block out of use. If some service that is running under normal mode is either located on that block, or accesses data on that block, this should fix it. Newer discs have SMART controllers that monitor the health of the drive. I don't know about Windows 7, but current Linux distributions have the ability to monitor that. If you can view the SMART data, it may indicate whether or not your drive is starting to fail. Since SMART will automatically map bad sectors up to some limited number, normally the OS won't see bad sectors until that number is exceeded and the drive controller can no longer remove them from use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you using DB2? Or some other dbms?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can connect to the internet while in safe mode? If so, then it doesn't experience a slow-down? If that is the case, it kind of shoots down my thinking about interrupt storms. What about A/V and firewalls? If you disable them, does that change behavior?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is the performance still slow while networking in safe mode? If it worked in normal mode (albeit slow), then it should work in safe mode as well. If it is a hardware problem, it is more one of system stability vs. non-functioning altogether.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This sounds suspiciously like a hardware interrupt problem, given this happens with USB, wireless card, and wired ethernet. My guess is that there is a fault in the motherboard and/or interrupt controller for the board.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, if performance is not impacted, then probably this is not an issue. As they say, if it ain't broke, don't try to fix it! :-) Honestly, scheduling interrupts are largely dependent upon the schedulers you are using, and load factors that I cannot know about.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What is the actual output for RES? Rescheduling interrupts occur frequently due to scheduling priority issues. Example: my Scientific Linux 6 (RHEL 6 clone) after 11 days uptime has 400-500K RES events for each of 8 cores - about 4M in total. There are about 3x as many function call interrupts (CAL), and a fair number more TLB shootdowns (TLB). So, without some real numbers, there isn't much we can say about whether or not your system is performing abnormally. In sum, please post the following information:

1. uptime
2. full output of the "cat /proc/interrupts" command

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ask them about tethering. That's where you connect the phone via usb cable to the computer, and it turns into a wireless modem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Different plans, different prices. Go visit your local mobile phone store (Sprint, AT&T, T-Mobile, Verizon, et al), or their online web pages, to get more information about plans and prices.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, some 3g phones can be tethered - to act as a broadband modem. Alternatively, you can get a data account and 3g USB modem from your cell phone provider. I used to have a Sprint data account with a wireless cell modem just for traveling, but it could be used at home as well as a backup internet connection.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What about wireless broadband? Can you get 3G/4G cell phone coverage in your area?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Click on the Properties tab next to the disc selection box. That brings up the properties page. Change the speed from "Max speed" to something a couple of entries slower. Burning at the maximum speed the drive or disc can handle is usually a good way to make a coffee coaster. On my 16x drive I usually burn at 8x or 12x.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What burner software is your system running? Brasero? Have you tried changing the burning options in the tool, such as buffer size, etc? Also, when burning, you want to be sure that you aren't running much else that takes CPU or I/O (disc) cycles or you will experience the problems you have seen. I have been burning discs on Linux (Ubuntu and Red Hat) for years without problems, but I have had a few "coasters" when I forget and start running software that does disc I/O or too much CPU.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try indenting your code between braces. It will be a lot easier to read.

Comments:

1. Use loops with control values, not goto statements. I'd fail you for that alone if I were teaching the class.

2. This is a C++ class. You are writing C code. Structure your application with classes - one for the ClassesOffered, and one for Student. The Student class will contain a vector of classes that are taken by each student. Create the appropriate methods for each class, such as name, creditHours, and cost for the ClassesOffered class, and name, classesTaken for Student. One of the methods for the Student class would logically be to compute the total cost for that student. Constant values such as Miscellaneous and Mailing fees should be assigned to constant variables which you would use in computing costs in the Student class.

3. Don't use the gotoxy(x,y) function to position the data on the screen. That is not a standard C++ construct and will only work on a few systems/compilers. Just use output to cout and let the screen scroll.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try the Windows version of the open source AV program ClamAV, called ClamWin. ClamAV is used as the core for a number of commercial business-use AV appliances. You can get clamwin here: http://www.clamwin.com

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Windows does support the POSIX interfaces, but writing code that works equally on Windows as on Unix is not simple, especially if you want to write GUI applications. In such a case, you would be best served by using a platform neutral SDK such as Qt. That provides a means to write C++ code that will run on any number of different operating systems without recoding - just recompilation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Stop running MS operating systems, and install Linux. Your chance of getting viruses and/or other malware will drop about 99.995%...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The device is from Interepoch, and is from about 8 years ago, now "phased out". I doubt you will get Win7 support for it. Here is their web page for it: http://www.interepoch.com.tw/support/iwe100_u.asp

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes, well I asked for the output (rather than a synopsis) in order to get some better idea of what is going on. Please post. Thanks.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have 3 eSata arrays with good cooling and a dual drive docking station where you plug the drive into a slot in a vertical orientation. The dock uses ambient air flow to cool the drives, and it seems to work just fine for extended periods of time. The one I use is from StarTech.com. It has both dual eSata connections as well as a single USB 2.0 connection, so you can use either, though the eSata throughput is much better than USB 2.0.

As for using the drive for running/testing Linux, I would recommend that initially you format the drive with NTFS and use it to store virtual machine images and test out your Linux/BSD systems in a virtual machine such as VirtualBox or VMware, rather than trying to use the drive for bare metal multi-boot capabilities - fewer problems until you are experienced enough to go that route, and even then you might not want to.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What is the output of the command "sudo ifconfig"?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, it doesn't run "over the electricity". It just uses your house wiring as a carrier, just like any network cable, but it shares the cable with the electric power. So, just consider your house wiring as a "built in" ethernet cable that goes everywhere in the house. Just a thing to consider, is that neighbors will also have access to the signal, so when you set up the plugs, change the encryption key and the IP address(es) of the plugs (if that capability is available). You do that by connecting the plug to your network and communicating with it via your web browser. Instructions on how to do all of that should be in the documentation that comes with the plugs.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, it is a 750W PSU. Here is a link to it: http://www.newegg.com/Product/Product.aspx?Item=N82E16817153036

The main thing are the power ratings: +3.3@30A,+5V@28A,+12V1@18A,+12V2@18A,+12V3@18A,+12V4@18A,-12V@0.8A,+5VSB@3A

Note that the -12V is rated 0.8A, and the +5VSB is rated 3A. It may be that 0.8A is as good as you will find for -12V. In any case, always get a bigger supply than you will probably need. This is definitely a case where more is really better.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Let me look at what I have in my workstation. The form factor you can use depends upon the enclosure you have. My workstation is a large, under-desk model that uses a full-sized motherboard (Intel S5000XVN) and 1000VA power supply.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Stuff that requires the negative voltage levels usually is pretty low power, so 1.5 to 2 Amps should be fine. I'm trying to remember what that stuff is, but I haven't run into the problem for quite awhile. However, I have seen it occur, and it either results in fried components or PSU failure due to voltage drop and associated current increase (v x A == power) when the PSU tries to supply the power drawn. I had to replace the PSU on one of my systems some years ago with a better -5/-12V spec for this very reason.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try one with better specs for the -5 and -12 V feeds. Yours are -5V@0.8A, -12V@0.8A, which isn't much.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can set up the second AP as either a separate AP, but as a bridge, not a router, that way. That would be a separate SSID, though you can use the same passphrases. Alternatively, you can set it up as a wireless bridge that uses the same SSID. Myself, I use the first method. We can connect to either device if we are in range of them both, or one or the other if not. My router and AP is in the basement office near the front of the house, and the bridged AP is upstairs in my wife's office near the back of the house. So, if we are in the front part of the house, we use the AP in the basement, and if in the back (where the bedroom is) we use the bridge AP in her office. We use the power plug ethernet devices, similar to your "HomePlug" device to connect the bridge and router together. Works a treat.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, understand how recursive-descent parsers work. That is the fundamental method to build a calculator or numerical/mathematical expression evaluator.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please! You should have access to the information you need in your class materials to fulfill this assignment. At least make an effort to solve the problem before you ask us to do your work for you... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, if you can't run it in the debugger, then add some print statements to the code to help isolate where your are crashing. BTW, where are the variables MyTextField and MyEventTrigger declared and instantiated? Please show. Also, do indent your code so it is easier to read.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, in thread_routine(), you have declared it to return a void*, but it returns nothing. However, since that is not the error you are getting, it problem is likely, as Ancient Dragon noted, that there is an issue with the include files. However, you state that your error is a runtime one, but that is inconsistent with the information provided. The errors shown are compile-time errors, not run-time errors.