rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Xyzyxx makes a good point. Some systems do require SIMMs in pairs, but many don't. Again, read the manufacturer's specs. In any case assuming the board supports 8GB sticks, then 2x8GB should work nicely. My board supports 8 sticks, but limits them to 4GB each, with a maximum capacity of 32GB.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You will if you set the explorer file options appropriately. I have mine set to run each open explorer window in a separate process. That is not the default - it is as you say. However, that can be overridden easily enough, and trust me when I say that I can have a number of explorer.exe processes running - 1 for each open explorer window.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have had this problem with Win7 when accessing large (bigger than 2GB) drives that are perfectly accessible from Windows XP and Linux (FAT-32 drives). I don't know why this is an issue with Win7, but it is a PITA!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can also configure your system so that each open explorer window is a separate process (I do that, for security and performance needs). It requires more memory, but is more stable, in my opinion. At least if something causes one instance to crash, all of the others are unaffected. This can keep the system running in unusual circumstances.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends upon how many threads are allowed to access a resource at a time. A binary semaphore allows only one, whereas a counting semaphore may only allow N accesses at a time. The counting version is not frequently used, but it may be useful for some situations.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What operating system are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you reported this behavior to Formspring directly?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, the error is happening in the User.send(Message) where it calls myNetwork.sendPendingEmailFrom(this). Since the myNetwork member of User u1 is still null, boom! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just telling us you have errors is not particularly informative. List your code that is causing the errors, and post the output emitted by the JVM when you try to run your program.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Send us the diagnostics that are emitted when the program is run on a command line.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In this code

        for(int j = 0; j <= st.countTokens(); j++)
        {
            basics[j] = st.nextToken();
        }

try this instead

        for(int i = 0, j = st.countTokens(); i < j; i++)
        {
            basics[i] = st.nextToken();
        }

also as James said, check if basics[i] is null when you are accessing it later on in your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You don't explain what you mean by "runtime failure #2". Are you running this as a managed c++ application in C#? How did you compile it? What operating system is it running on? What compiler did you use?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Low price and good performance - AMD
Higher price and better/best performance - Intel

Xyzyxx commented: Sums it up perfectly :) +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Matlab, Wolfram, and other math packages will be suitable for this. There are also such things as SAS and SPSS (now owned by IBM I think). These are all very expensive, but what you are asking for is not simple stuff. I deal with real-time data analytics using many engineering techniques including things like Kalman filters, statistical sampling, monte carlo methods etc. in order to extract meaningful data from masses of data (millions of data points per day). We are in the process of working up machine learning techniques (I'm starting to learn the R language for that), including neural networks, fuzzy logic, and simulated anealing methods in order to better understand how our systems behave (supporting millions of concurrent users world-wide). So, what I am saying is that there is no quick path to this. Complexity != simple, or easy! Also, if you don't understand the underlying math, you will never be able to know if you are getting valid information out of your data sets.

FWIW, I spent a few years writing real-time risk analysis software for the options trading industry in Chicago, and that (lots of 3rd order differential equations applied to massive data flows) was simple compared to what I am doing now!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This may help: http://www.kernel.org/doc/man-pages/online/pages/man7/utf8.7.html

FWIW, to handle unicode characters, you will need to use the wide character versions of various functions, such ase wprintf() vs. printf(), etc. In any case, this is a pretty deep subject - I once spent the better part of a year implementing internationalization support for a major software suite, back when unicode was just a draft / proposed standard. Google has links to a lot of resources about this, and I suspect that the Wikipedia does also.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Using increment/decrement operators in function arguments is a common beginner mistake. According to the C and C++ standards, the order of evaluation of the arguments passed to a function is completely up to the compiler writers. So, in the function void func(a++, b--) you don't know if a++ will be executed before b--, though they will both be complete before the function is entered. An example of this sort of problem caused serious issues with the manufacturing execution system my previous company wrote/sold (it runs most of the 300mm semiconductor fabs in the world), and finding the root cause took me several days of intense work in a debugger. I only got called in to deal with this stuff after the responsible engineers for that module had spent the better part of a month trying to diagnose the problem...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You don't indicate where in your code you are calling into tidtable.c, so we really can't help you much. A couple of observations however. 1. Make sure that all pointer variables are initialized (at least to null) when you declare them. 2. You don't validate the pointers that are passed into your function. If they are null or invalid because they weren't properly initialized, then you are toast.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

One way is by value, as in

void function( int array[SIZE1][SIZE2] )
{
    // We were passed a 2-dim array of ints.
    for (int i = 0; i < SIZE1; i++)
    {
        for (int j = 0; j < SIZE2; j++)
        {
            cout << "array[" << dec << i << "][" << dec << j << "] == "
                 << dec << array[i][j] << endl;
        }
    }
}

This is the easiest way. However, with C++ you can also use vectors of vectors.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Some assemblers allow you to do that by terminating a line with a backslash, as in:

Symbls db 0,0,0,0,0,0,0,0, 0,2,2,0,0,2,2,0, 0,0,2,2,2,2,0,0, 2,2,2,2,2,2,2,2, \
0,0,2,2,2,2,0,0, 0,2,2,0,0,2,2,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, \
0,0Fh,0Fh,0,0Fh,0Fh,0,0, 0,0Fh,0Fh,0,0Fh,0Fh,0,0, 0Fh,0Fh,0Fh,0Fh,0Fh,0Fh,0Fh,0, \
0,0Fh,0Fh,0,0Fh,0Fh,0,0,
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

resize2fs is useful if you expand the partition a file system resides upon, or of you bit-copy it to a new drive. Although it can be used to either expand or shrink an ext2-based file system (including ext3/ext4 ones), shrinking one is not recommended as you may well lose data. It is always recommended to backup your data before you use this sort of tool.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since this is a member of the class (not a static method), you can leave off the first argument and in the body of the method do this:

void instream::operator<<(char[] data)
{
    this->someOutputFunction(data);
}

Just an aside, if this is an input stream, why are you writing an output operator?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most motherboards these days are dual channel boards, often requiring that you install RAM in sets of 2. My advice is to visit the vendor/manufacturer's web site and see what the specs are for this board. Anything else is a SWAG and will probably leave you with either a non-functional system, or toasty ram. Bear in mind that RAM that has been installed in a system usually cannot be returned for exchange or refund...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Output through the jack should be analog, otherwise it won't work with standard speakers, headphones, etc. Digital output should require something like s/pdif via coax or optical connectors.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what's your question?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The top line of "last reboot" will show the last time you rebooted. The bottom line "wtmp" is not the last reboot time. Also, the "uptime" command will show how many dates+hours+minutes the system has been up since last reboot. If you add that to the top line of "last reboot", you should come up with the current date+time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try reading the man page for grep/egrep: man grep

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are freely available tools like wikis to do this. There are versions you can host yourself, or ones that are available on the net, such as www.wikispaces.com. Try a Google search for wiki software. One link is this one, comparing a number of wiki software packages on wikipedia: http://en.wikipedia.org/wiki/Comparison_of_wiki_software

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You'll note that in Mike's example, the code was delete[] *oldArr not delete[] oldArr.
Oh, never mind. I see now that you tried his suggestion using a pointer reference. Personally, these sort of things often bring out compiler bugs. Since you don't say what compiler you are using, I can't say if this may be the issue here. In any case, try his suggestion of passing a pointer to the pointer. In the calling function, this may be what you would do:

int* array = new int[arraySize];
enlargeArray(&array, arraySize);
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have seen situations like this where I had to either tweak the configuration (options to the configure script) so it knew where the headers and related libraries were, and in rare cases I've had to modify the generated Makefile. In your case, this is a bit weird since the errors are for missing vtables, and those are generated by the compiler for classes with virtual methods. IE, mostly they are linker errors - not compiler errors. My suggestion is to post those errors to the user/bug reporting forum for this project on SourceForge.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In this case, you already know the number of elements (min(100,sno1)) and size of each element (20). Use those values instead of the computed values, besides the fact that the size argument is not the size of a char*, but is 20. So, your qsort call should be this:

qsort(&list[0][0], sno1, 20, compare);

Also, your while function should read like this - skipping the copy part:

while((fscanf(data,"%s",&list[sno1][0]))==1)
{
    ++sno1;
}
el33t commented: Thanks! This solved my problem! +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at this function:

void addtobegining(int i)
{
     struct node*p;
     p = malloc(sizeof(struct node));
     p ->next = i;
     head = p;
}

Note that you are setting p->next to i. Try this instead:

void addtobegining(int i)
{
     struct node*p;
     p = malloc(sizeof(struct node));
     p->data = i;
     p->next = head;
     head = p;
}
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The answer is ... it depends. It depends upon what operating system you run, what type of software you want to use with it, etc. Myself, I like nVidia, but principally that's because I mostly use Linux and there are better drivers for nVidia on Linux than for AMD cards. If you are just a "normal" user, then either will serve you well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, there are a number of good online dictionaries on the internet. Here are several for English:

  1. http://dictionary.reference.com/
  2. http://www.merriam-webster.com/
  3. http://oxforddictionaries.com/
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

On a mobile phone, the GPS won't use the data plan. However, the location functions on most mobile phones will use cell tower triangulation, or WiFi, to locate the device if it can't find enough GPS satellites to get a fix, or if the GPS is turned off. The WiFi won't add to the data plan, but the cell tower methods may - I'm not 100% sure of that however, and then I work for Nokia... :-) I'll have to ask some of our L&C (locations & commerce) experts to be sure...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I assume this is a compiler warning. Post the rest of your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Who gives a fig if it is Anonymous, or anyone else. Blocking TPB is an exercise in futility. In the days just after the blockage began, TPB experienced an increase of about 12M users / day in use... There are myriad ways to route around these sort of blocks. All SOCA did was piss people off!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Remove the 1TB disc, and install Windows on the 320GB disc.
  2. Re-install the 1TB disc.

At this point, the correct disc should be booted by Windows.

These sort of problems are usually due to what disc responds first to the OS scanning of the hardware. On Linux, you can fix that by partioning the drives giving them labels, and then telling the OS to use the labelled partions as you wish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Did you say this is a LG (Lucky Goldstar) monitor? If so, they are generally of good quality. Many monitors (vs TVs) don't have HDMI interfaces, but do have DVI. As for hotkeys, what do you mean by that. I have dual DELL displays on my system, and they do have buttons for some functions like brightness, contrast, alignment (not needed for DVI, but needed for VGA), etc. In any case, there should be some sort of button to bring up a display configuration menu in order to set default color balance, brightness, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That's about what I would say... Once you have to clear the flash memory, boot back into the BIOS and make sure it is properly configured before you continue to boot the system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Where did you purchase the battery from? From your description, I think that the battery is non-functional. Don't purchase cut-rate brand-x batteries from sources you aren't sure of. Personally, I do purchase brand-x batteries for my laptop, phones, etc; however, I DO purchase them from sources I know will stand behind (and not too far behind) what they sell, with liberal return policies.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't see how this could be possible unless you install some bit of software that registers every USB device connected. AFAIK, Windows does not do this by default. IE, if you installed such software, it could tell you about any USB device attached since it was installed, but it could not tell you about anything connected before that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try booting into the recovery partition, and restore missing/broken components.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The best resource I know of for Linux wireless issues (links to drivers, installation instructions, etc) is www.linuxwireless.org

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't suppose you have tried building this debuggable, and they tried running it in a debugger?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What about an analog clock? That will help you get familiar with a lot of Java constructs, including timers and timer tasks, threading, graphical display, window management, and a lot of other cruft that you need to know when writing Java code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What are you using for your UML modeling tool? In any case, most such tools with which I am familiar (most of them) will let you make multiple connections between two classes. After all, that is not a totally unknown requirement, such as modeling a binary tree, where you have a node, and connections to a left and a right node of the same class. So, in that case you have multiple connections from one class to itself. That is another, more extreme, form of this problem. So, if your modelling tool does not allow such, ditch it for one that does!

I just tested this out using my modeling tool - Sparx Systems' Enterprise Architect - which I have been using for major systems development for 6 years now, and it handles it without problems.

So, even if you are manually drawing such models using some sort of drawing tool, you can do this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is where you start to learn how to write functions, use standard functions, and build related ones into libraries. Example, using your code to build on. Note that the function str2int(const char* numString) can be built into a library that you can link to any program you write, and then call from any related code.

#include <conio.h>
#include <stdio.h>
#include <ctype.h>

int str2int( const char* numString )
{
    int results = -1; // Default means not a number.
    if ((numString != NULL) || isdigit(*numString))
    {
        results = atoi(numString);
    }
    return results;
}

int main()
{
     char *buffer = 0;
     size_t numRead = 0;
     printf("Enter a number: ");
     fflush(stdout);
     buffer = getline(0, &numRead, stdin);
     if (buffer != 0)
     {
         printf("%d\n", str2int(buffer));
         free(buffer);
     }
     return 0;
}
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you are using a directional antenna to connect your local router/access-point to another A/P across the campus? Check out the cable run. It may have been damaged (kinked, cut into, nibbled on by rodents), which can cause a serious degradation in the signal getting to/from the antenna and transceiver. I would check that before assuming that the transceiver (the bulletM2 I presume) is bad, though that may be; however, don't replace that before you have traced the entire 40m cable run, and checked out the connections at both ends, as well as any splices that may exist in the run.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What precisely are you looking for? What do you mean by "windows structure", etc?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Internet address numbers and top-level domains are managed by the IANA (Internet Assigned Numbers Authority). These domain controllers share their data with each other, and as a new name/number comes on line, that information (routing information, etc) is passed around the internet so that eventually everyone can find it. Your country may have a TLD controller, but not necessarily. You might learn more her: http://www.iana.org/ or here: http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains