rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How old is the battery? Lithium Ion batteries that are used in laptops, phones, etc. have a limited life span. They will hold less and less of a charge as they age, to the point where it will show full, but have basically zero capacity. If yours is over a couple of years old, this is likely the problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What operating system are you running on both systems, and how is the broadband device connected to the computers (usb, or something else)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As AD said... :-(

The recovery partition for Dell systems will restore the system to the state it came from the factory, whether you got it with Windows, or Linux. No backups? I hope you have hard copy...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

?? Are you saying you need a secure network? A local network (LAN)? A corporate network (IntraNet)? Please be specific as to what you want to accomplish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not a "simple" question. Do you want to use a GUI interface? What about animation? Is this a puzzle game, or an interactive roll-playing (such as 3rd person shooter) game? IE, please be more specific as to what you want to accomplish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try what? Linux? Unix? You can download and install Linux from many sites, and for Unix there is BSD and Solaris that are freely available to install and try. What do you want to do?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is likely a hardware problem - most likely it has some overheating component (CPU, RAM, etc). You need to send it into the repair depot for warranty service.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is not a C code problem. It is most likely a misconfigured cronjob problem. Show the crontab please, as well as user ID for interactive use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Penguins...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What does it show when you click on the last item "Universal Serial Bus controllers"?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Download, burn, and boot a Linux live CD/DVD/USB drive.
  2. Start the command line / console tool.
  3. Use the dd command to wipe the drive: dd if=/dev/zero of=/dev/sdx bs=1M
    /dev/sdx is the device ID of the HDD you need to reuse. /dev/sda is usually the system disc - which will contain your Windows 7 environment. /dev/sdb might be a second drive if you have one (your D: drive), or it may be the drive you are trying to recover.
  4. Use the fdisk command to create a new DOS partition table: fdisk /dev/sdx (or whatever)
    The command to write a new DOS partition table is 'o' (just the letter o), and then 'w' (just the letter w) to write the partition table to the disc and exit fdisk.

When done, reboot into Win7 and you should be able to partition, reformat, and use the drive.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to remove all the associated files installed with Java that still reside on your system, and then remove ALL of the entries the installation made in the registry. Not fun, but necessary to fix this. There are free tools on the internet that will try to fix your registry for you, but personally, I prefer to deal with that myself.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. What processor, audio controller / chip set, operating system, etc. do you have? Just saying you need a sound driver is not too useful for helping you... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I run a number of Windows applications with Wine on my Linux machines, and if they are cleanly written they work just fine. Many are not and won't run well in Wine. In that case, either you find a Linux equivalent, or run a real Windows OS in a virtual machine, which I also do. For example, my main software engineering tool, Sparx Enterprise Architect, runs perfectly with Wine, but my Fidelity stock/options trading software will only run in a real Windows environment. Fortunately, it still runs on XP, so I haven't had to pay for the XP->Win7 upgrade! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What mike_2k said. With VirtualBox, you can install most any Linux distribution. On my Win7 work system, I run both Red Hat Enterprise Linux (RHEL) 6 and CentOS 5 without problems. The RHEL 6 vm is my main software development environment for work. The CentOS image is for porting software between RHEL 5 and RHEL 6 systems, both of which we use in our data centers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If your mobo supports ECC ram, here is a link for 2x2gb sets from buy.com: http://www.buy.com/prod/4gb-kit-2-x-2gb-memory-for-dell-precision-workstation-670-pc2-3200r/234073551.html

Also, your operating system needs to be able to handle more than 4GB of ram. It will either need to be a full 64-bit OS, or supports the extended memory model to handle more than 4GB (applications will still only get 4GB or less each).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As caperjack said. Linux is FOSS (Free and Open Source Software). All source code as well as binary code for most any hardware is available on line free for you to download, install, modify, and use to your heart's content. If you cannot download it, some providers will send you CD's or DVD's with all that you need for free, or for a little $$ to pay for production and mailing.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Hardware problems like this require a visit to the repair shop, or sending it into the HP repair depot.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Michael suggests is one approach. Another is to install the android phone/tablet simulator (available from the google/android developer site), which will let you run android applications in a simulated natural environment. The main issue is that most android applications use Dalvik - a virtual machine that takes byte-code and iterprets it, just like the JVM for java. In fact, the source code IS java, but the Dalvik compiler generates different object code than a java compiler will, so java jar files will not run on android. If you can get a Dalvik byte-code interpretor to run on your system, then you should, in theory, be able to run any android application.

That last statement, and $5, will get you a nice latte at Starbucks... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Go to www.linuxwireless.org for help/information about this chip set. You can get that information with the lspci or lsusb commands. See the manpage for details.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is likely a network configuration issue that has zip to do with your system. Post a help-desk request to your network support team.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The 9 cell battery will run about 150% or more longer than the 6 cell one, and if you were to get a 9 cell for a new one, it would probably be about $99 extra, not $70 - a decent price in my opinion. $10 for the wireless is worth the price. Note that 9-cell batteries usually will extend from the back (or front - depending upon model) of the computer about an inch in order to accomodate the larger battery. My Dell D630 extends to the front. My Lenovo does it to the back. Both extend the system size by about 1 inch.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Consider void as meaning "nothing", so a function that returns void is returning "nothing". IE, there is no there there... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Thanks NP! FWIW, I once wrote a Fibonacci program using exceptions, in order to test early standard C++ compiler exception handling. It was interesting how many failed the test! :-) I wish I could dig up the code (it sits on a floppy somewhere in my home office - written in the mid-1990's) as it really was quite neat. All my systems that still have floppy drives have been mothballed - I'm not sure they will even boot up! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Asking people to analyze 1100+ lines of code is not reasonable! As teo236 said, break it up into functions, and then identify those you are having problems with.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Learn about C's bit-wise (boolean) logic. Example, for Xor, in C this can be expressed as:

int Xor(int a,int b)
{
    return a^b;
}

And Not(int a) like this:

int Not(int a)
{
    return !a;
}

I leave the rest to you for exercise... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are posting this in the Windows forum. Are you trying to install Windows on your macbook pro?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. First a disclaimer: I am a senior systems engineer at Nokia.

My wife has an iPhone (recently got the latest iPhone 5 to upgrade from her previous 3g). I have an Android (actually 2 - Google Nexus Ones - personal phones), a Nokia Lumia 900 (work phone), and a Nokia C3-00 Series 40 phone (work phone for testing purposes). All of these are great phones, and using the Nokia Lumia daily has been generally a pleasure. It is reliable, responsive, and has some really good applications. As good as Google maps may be, they are still getting caught up with Nokia's technology (purchased when they bought Navteq a couple of years ago). Both Google Maps and Nokia Maps (with turn-by-turn driving/gps capability) are available on the iPhone.

The Lumia 920 is a major step up from the 900 I have. Nokia has the best cameras on any phones, and the 920 is no exception.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your chances of recovering any data is slim to none. Linux will reformat the partitions when installed. Since normally Linux (ubuntu et al) will only use unallocated space unless you allow them otherwise, I have to assume to selected the wrong options when installing Ubuntu. :-)

That said, professional data recovery services may be able to extract some data from the drive, but it will cost you (possibly thousands of $$) and it is a crap shoot as to whether or not you will get anything useful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't do your school work for you. Make an effort and post your code here, and then we may take the time to help you... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Given how fast Fibonacci numbers hit system limits, don't bother using an iterative approach. Use a recursive one instead. You will never overrun your stack, and it is a LOT easier to code correctly! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What compiler are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I only see one problem. That is where you print the random number. IE, you do this:

    i = random.randint(1,10)
    print random.randint(1,10)

but you need to do this, because the second line with the print statement will get a new random number:

    i = random.randint(1,10)
    print i

So in your case, the print statement will not reflect the actual number assigned to i. :-)

efwon commented: Thanks that makes sense. I know I wouldn't have caught that. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. Yes, I misunderstood that... :-) Unless the file was mangled for some reason (DOS CR/LF line terminators vs. Unix/Linux LF terminators, for example), then I don't know why Fedora won't work. Anyway, verify that the file is a Linux text file (LF line separators) and not in DOS/Windows format.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Switch to Linux? :-) Not the answer you would like, I'm sure! In any case, Office 2003 is a bit dated (9 years old), so it may not be well-supported on Win7. I have a Win7 laptop for work, but we are running Office 2010. Any chance you can update to a newer version of Office? What about OpenOffice/LibreOffice?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I assume you are running some version of Windows? If so, then you probably do have a virus or a trojan of some sort that is trying to steal your secrets (passwords, bank account ids, etc). What anti-virus are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you mean it won't boot from the CD/DVD/USB drive? Or does it try, but fail? If it tries, but fails, then you may have a bad image. If it won't try to boot from the device at all, then you probably need to go into the BIOS and tell it to boot from CD or USB. I have to do this with my work Lenovo laptop, as well as my Dell D630 personal laptop.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What about building this in Cygwin? Or do you have to run it natively, without Cygwin dlls? Cygwin is much better for porting Linux code to Windows than MingW, in my experience at least. I usually get too frustrated with MingW and go back to Cygwin and a real GCC/G++ compiler set... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And as an aside, I have done research into random number generators, and find that I personally like the lagged fibonnaci generators. I used such techniques in the 1980s when developing index fund balancing algorithms for the Mellon Bank / Mellon Capital Management. They worked very well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, there is no such thing in reality as a "perfect" random number generator. There are good ones, and there are ok ones. See this tutorial for more information: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html

I like this from the extended summary (the posting is from one of the foremost research labs in the US, Oak Ridge National Laboratory):

Finally, we wax philosophical. We urge the supercomputist to approach the generation of random numbers with circumspection, particularly when solving very large-scale problems. All random number generators should be tested thoroughly for their quality before being used upon other than academic problems. Further, at least two levels of quality in random number generators should be implemented to assess whether the answers are independent of the random numbers. This is a matter requiring judgment and is aided by experience.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Instead of atoi, use strtol() (string to long) or strtoll() (string to long long). They let you provide a pointer that will be set to the first unconvertable character. It will deal with +- leaders, and all the rest of that cruft. Perfectly fine in C++. If you are reading from a stream in C++, then you are probably better off using the syntax strm >> intvar such as cin >> anInt.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I was going to suggest the same thing that mike_2000_17 did - build the system so it doesn't require the dll to get into main, and then dynamically load (link) it. This approach has worked well for me in the past, plus you can add functionality that way without rewriting/compiling/linking your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think it may depend upon the boot options and what options you selected when installed. I know that Ubuntu and RHEL both let me control the brightness on my Dell Laptop.
.
.
.
Yep. Just tested. I'm running Scientific Linux 6 on it now (an RHEL 6 clone), and the Fn-up/dn keys (what my system uses for brightness) works just fine.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a number of tools, some of which are open source, others shareware, and others commercial which will do this. I do this on Linux, and usually use tools like ffmpeg to do this. I haven't done this in Windows for over 6 years so this is what I found for you: http://www.xilisoft.com/dvd-audio-ripper/how-to-extract-audio-from-dvd.html

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to add the public key part to authorized_keys. The .pem file has the private key. When you ran the program ssh-keygen, it created the .pem file, but it also generated a .pub file. It is the .pub file that you need to append to .ssh/authorized_keys. The following is from the ssh-keygen man page:

 Normally this program generates the key and asks for a file in which to store the private key.  The public key is
 stored in a file with the same name but “.pub” appended.  The program also asks for a passphrase.  The passphrase
 may be empty to indicate no passphrase (host keys must have an empty passphrase), or it may be a string of arbi-
 trary length.  A passphrase is similar to a password, except it can be a phrase with a series of words, punctua-
 tion, numbers, whitespace, or any string of characters you want.  Good passphrases are 10-30 characters long, are
 not simple sentences or otherwise easily guessable (English prose has only 1-2 bits of entropy per character, and
 provides very bad passphrases), and contain a mix of upper and lowercase letters, numbers, and non-alphanumeric
 characters.  The passphrase can be changed later by using the -p option.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A lot of ISP's will throttle your speed depending upon either the type of traffic, or if they have a data cap that you have exceeded. They will usually detect when you are running speedtest and not throttle then, so you may not know without other testing. I don't know what Charter does, but I know that Comcast and AT&T will do so in both cases for consumer accounts.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No mystery here. When it sees that a == 1, it returns immediately with a value of 1. It won't get to the list.append code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It should not be a problem. There are no static variables being accessed/changed inside the function that you may need to lock access to. Normally, function calls are executed on the stack, so each thread (worker) that has its own stack should not interfer with another. If the function accesses global memory, or local static memory, then a mutex lock or similar access gate would be required. In your example, this is not the case, so go wild! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I will send your question to one of our engineers that works in that area and can answer your question for you. I'll post the answer back here. I work in the Nokia Mobile Phone browser development organization, but I do systems/performance engineering so I am not sure myself of the exact answer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When you boot, what does the mount command (no arguments) show? Does the boot partition show up? If not, then the boot loader was able to find it and boot, but the OS didn't mount it in the /boot mount point. Show us the contencts of your system file /etc/fstab please.