Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So, you would give more weight to sparsly populated areas then to densly populated areas?? That doesn't make much sense. IMO the EC should just be abolished and get rid of that headache.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Who said he wanted to share it over the internet? My suggestion was for a LAN. AFAIK MS Access can't be shared otherwise.

People share databases over the internet all the time. How do you think forums work?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

eliminating the electoral college of only particular states

That can' happen, it would require a constitutional amendment to eliminate the electorial college system, and that requires a vote of 3/4 of the states (3/4 * 50 = 38 states). Just getting such a bill passed by congress is next to impossible, they can't even get a budget on time let alone pass a bill to amend the constitution.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So my point was that the next logical step is to "reform" the electoral college under the guise of making it more democratic.

How would that solve the problem of voter fraud? Eleminating the electorial college and elect President by direct popular vote will do nothing to solve that problem.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

How are you displaying the information? Are you using a control of some kind or writing directly onto the form?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I have vb.net 2012, don't know if it's the same as vb 2005 or not. Can you connect using local access? If yes, map a drive from your computer to the computer hosting the database then in vb set up the database just like you did for the local computer. Since MS Access doesn't run as a service you can't just tell vb the ip address and port number like you could with MySQL or MS SQL Server. MS Access is a poor substitute for a real database server.

Begginnerdev commented: Yes...Yes it is.. +8
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

As it turns out the Raspberry Pi doesn't have enough umph to power my keyboard that has illuminated keys. I went to WalMart and bought a cheap keyboard ($13) and it works ok with the Pi.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

That doesn't look like compilable code to me. What if statement does the else belong to? Can't be line 7 because that's not a multi-line statement that needs { and }. Lines 14 and 15 are just junk.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Fire the developer you hired and hire someone more competent.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The Democratic party does not have the funds/infrastructure to keep track of who is dead or not. And I don't think either political party is privy to the voter lists prior to the election so I don't see how they could cross reference them to figure out who is duplicated.

Don't need access to voter lists, just visit any cemetary an clip obituaries from the newspaper.

The only way would be duplicate voting may organizing/encouraging their voters to register and vote at multiple poll stations.

Exactly.

I have yet to see any communique which would suggest the Democratic party has done this.

I don't mean to suggest viter fraud is encouraged by the Democratic party, the fraud that happens is most likely done at local level or just by individual initiative rather than by some santioned political party policy.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You might be able to get source code from one of these open source programs.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It's a shame that televise those games so late at night. On second thought, maybe they are shown live (6 hour difference between CST (where I live) and GMT).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It's called "BBC America", I watch it frequently, especially like Dr Who, Merlin and Top Gear.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm not saying voter fraud is rampant, just happens on occasion. There aren't enough zombies voting to make a difference in the outcome of any election.

Maybe Republicans had a good reason to attempt to suppress the black vote -- the Republicans just had a rotton candidate. Maybe the Republicans should have also tried to suppress the white vote because Obama got a lot of those too. :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

First of all, voting for dead people is highly innefective because dead people can't be sworn in. I'll assume you meant voting by dead people. I'd love to see any actual proof of that

Just one link

I was trying to use a generic term even though the term "congressional districts" is used by American media.

We do have those too, but those are political boundries for the purpose of determing how to select members of the House of Representatives. They have no political clout other than that.

But Obama winning back-to-back victories, and with majorities? That's obvious "proof" the the system has broken down.

Not true at all. There have been lots of presidents from both parties who have won two back-to-back election. Only one president in US history has had two terms that were not back-to-back. One president - FDR - had more than 2 terms.

A democratic state has two options, either make sure your people are not too poor to prevent them from having a valid ID

That's not a valid argument. ID's are almost free (link here by state)

I think someones been watching too much of Fox News. Voter fraud, in that sense, is "virtually non-existent".

I made no mention of photo ID. But voter fraud does indeed exist, although I didn't hear about any in my area during 2012 elections.

It seems that some people hold on to …

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I thought it's 300 years not 200 years.

Since when is 2013 - 1776 = 300 years?

<M/> commented: it is now lol.... +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you will most likely have to download the source code and compile it yourself.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

They tried to steal the 2012 election through suppression of minority votes.

What ever gave you that impression? Democrats (most minorities are democrats) are often known for duplicate voting, and voting for dead people.

The current system mandates that for each state, the candidate who gets the majority of the votes in that state gets all of the electoral college votes.

That's not necessarily true. Maine and Nebraska are the exceptions (link)

What I expect to see happen is for the states with Republican governments to change the system for those states so that the electoral college votes are allocated by district. That would give enough electoral college votes to the Republican candidate to guarantee a victory.

USA does not have "districts". We have "counties". And your suggestion will never happen, at least not in our lifetime. It is unlikely we will get rid of the electorial college system, it has been tried several times in the past with no results.

Look at the map at the link I posted, Obama won every state in both costs, which is where most of the USA population live. Yes there are maps available that show election results by county and show most of the country voted Republican, but those area are vastly under or unpopulated. It's like voting in Canadan places where almost no one lives.

"we can't change a system that's worked for over 200 years".

Change the word "can't" for …

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I personally like this tutorial

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You are not going to figure it all out in 5 minutes :) Nor are you going to get a complete answer here, it's too complicated. Take a couple hours to read the tutorials instead of wasting time looking for instant help in online forums. You could have had your answer by now had you just taken the time to use google.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Did you ask devcomponent?

nilesh7136 commented: not mean that, but i have solved this dude, there is a problem with windows theme, i have select windows basic theme from windows aero, and its work properly, thanks for reply, +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

did you think to google for "vb.net database tutorials"???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

American Football is like "Let's play a rough game, but we don't want to get hurt"... pansies.

I'd say American men want to be able to produce babies after a football game :)

cereal commented: lol +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You don't need winsock for vb.net -- that is for c++ and c. Here is a great tuorial for beginners, I read through it myself and learned a great deal about vb.net. One of the chaptes covers databases, doesn't matter where the database is located. If it is not on your local computer just substitute the computer's ip address that is hosting the database for "localhost" in the tutorial. Nothing more to it than that as far as the program is concerned. Others have mentioned firewall which you will have to set up correctly so that client computers can access the database.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So far what I've heard is that Quebec basically wants to be friends with benefits.

Similar situation raises it's head here too. A couple states threaten to withdraw from the union but still want all the benefits they have now. It's all talk, nothing more, a little like me threatening a divorce just to blow off steam. I can't imagine Quebec not being part of Canida, does Quebec have enough resources to be a separate country? I doubt it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It might be easier if you don't use that fixed-length buffer at all. Just put the characters into temp, when temp gets filled up call realloc() to make it bigger. You need two int variables, one to keep track of the current position to add a new character and the other to keep track of the current size of temp. You don't want to realloc temp for each byte, but expand it for BUFF_LENGTH bytes. Like this

char* temp = NULL;
int curSize = 0; // current size of temp
int curPos = 0; // next character read goes here
int c;

while( (c = getchar()) != '\n') && (c != EOF))
{
    if( curPos == curSize) // time to realloc
    {
        curSize += BUFF_LENGTH;
        temp = realloc(temp,curSize);
    }
    temp[curPos++] = c;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The east coast always gets lots of snow, it't not at all unusual. I recall the day John Kennedy was inaugurated (Jan 20, 1961). Big blizzard, but he did it outside anyway.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Because the second halv of that statement is the assignment operator = instead of boolean operator ==.

MRehanQadri commented: Thanks a lot, I was almost gone mad for my mistake. +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The two tabs are completely separate sessions. Logging out of one tab does not log you out of the other. I would expect that same behavior to occur on any web site. I know it works like that on an online backing site I frequent.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'll bet your programs did not do it siently without user knowledge.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

the vector is not populated with anything.

#include <vector>
#include <string>
#include <iostream>

using namespace std;

class B;

class A
{
public:
    friend B;
    A(string n) {username = n;}
    A() {}
    static vector<A*> data; //store info in vector
    string getUserName() {return username;}
protected:
    string username;

};

class B
{
public:
    B() {}
    void showDataInClassA();
    A a;
};

void B::showDataInClassA()
{
    vector<A*>::iterator p= a.data.begin();
    while(p != a.data.end())
    {
        cout<< (*p)->getUserName();
        ++p;
      }
}
vector<A*> A::data; //store info in vector

int main()
{
    A::data.push_back(new A("One"));
    A::data.push_back(new A("Two"));
    A::data.push_back(new A("Three"));
    B b;
    b.showDataInClassA();
    return 0;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

We very seldom get the "shut down the city" snowstorms that we see hammering other regions.

Have you ever been to St Louis in the winter? 1/8th inch snow will shut down the city! We close all schools and businesses at the first sight of a snowflake. I've seen them close all schools when the weatherman predicted snow, then we got no snow. All the kids got a snow day with no snow :)

BTW: it's just raining here today. Not cold enought for snow.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You can't download silently because that would violate computer security although there are probably ways to get around that. The only reason I can think of why you would even want to do that is if you are writing a virus or something like that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I didn't read your whole program, but all the scanf() starting on line 33 are wrong
scanf("%s",&fname[100]);

That is passing a pointer to the last element of the fname array. It should be passing a pointer to the first element, like this:
scanf("%s",fname);

Notice it is not necessary to use the & pointer operator because arrays are always passed as pointers. For an array of any type just use the name of the array and it will get passed as a pointer to the first element of the array. Only for non-arrays such as an int do you use the & pointer operator.

You need to make similar corrections throughout the program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't repost from Facebook here, but I can't resist reposting this one

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Everything that you see in XP is also in Windows 8, they are just probably in different places. Once you figure out where everything is at Windows 8 isn't too bad, not too good either. Although I have a touch-screen PC (all in one pc) I still use it like a non-touch screen. One thing I don't like about Windows 8 is how to shut down a running program. Windows 7 and earlier there is an X button in the upper-right corner, that doesn't exist in Windows 8. You have to drag it from the top of the monitor to off the bottom. Very inconvenient.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 45: used boolean == operator, not the = assignment operator.

lines 139 and 164: remove the semicolon at the end of the line

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Denzel Washington, by my opinion, sucks...

You have not been watching the right movies then. He has made quite a few very good movies.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Just finished watching Flight with Denzel Washington. My advise, don't wast your money on it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Canida and Mexico are also part of America. And that's only North America. "I am American" is similar to saying "I am European"

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If it's just like Earth they why move?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Gallifrey -- that's where time lords are from.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Tables don't get modified by accident, you have to intentially do it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

But that won't prevent other programs from updating the data. The database server locks tables when doing updates, there is nothing you need to put in your code to do that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

To Americans Yankees is a baseball team.

You are right, the NY Yankees have won more Baseball World Series (we like to call it that anyway) than any other team. I believe the St. Louis Cardnels is in next place.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 3 int addition(int x, int y, int z);
should be changed like this addition(int, int, int);

No, either way is correct. Function prototypes can have either named or unnamed argument list.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

delete line 4. It is not necessary to prototype main() as it is a special function. And there is no semicolon at the end of that line.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Q: How can you be Brittish and not English? Aren't they one in the same?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I want to make sure that nothing can be accidentally altered.

How do you "accidentally" alter something in a program? If your program alters the data it's on purpose, not by accident. Want read-only? Just make sure your program doesn't attempt to alter the data.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So you're replacing one subtle problem with another subtle problem. ;)

That's why I said there is no standard way to clear the keyboard buffer. Nonstandard way is to use _kbhit() from conio.h

while( _kbhit())
   getch();

Or on *nix look into termcap library.