Welcome, Guest. Please login or register.
Did you miss your activation email?
May 20, 2013, 09:25:55 am
HomePredMockPollEVCalcAFEWIKIHelpLogin Register
News: Cast your ballot in the 2012 Mock Election!

+  Atlas Forum
|-+  Questions and Answers
| |-+  The Atlas
| | |-+  RBH's Maps (Now, Atlas Election Entry Script & County Map Generation)
« previous next »
Pages: 1 2 [3] 4 5 6 7 8 Print
Author Topic: RBH's Maps (Now, Atlas Election Entry Script & County Map Generation)  (Read 35791 times)
So the Heroes Fall
BRTD
YaBB God
*****
Posts: 68117
Sweden


View Profile
« Reply #50 on: January 03, 2007, 01:00:55 am »
Ignore

Tried it again and it still didn't work. Oh well.
Logged

bgwah
YaBB God
*****
Posts: 13395
United States


Political Matrix
E: -4.52, S: -8.17

View Profile
« Reply #51 on: January 03, 2007, 01:31:12 am »
Ignore

Dave,
It seems that the tables for everyone else's submissions do indeed work, but mine do not! I've compared my files with Alcon's and neither of us can figure out what is wrong.

When I click the tables for my pages, it gives me this message:

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/www/users/leip/RESULTS/data.php on line 803

Do you know what could be wrong?
Logged

Grad Students are the Worst
Alcon
Moderators
YaBB God
*****
Posts: 31289
United States


View Profile
« Reply #52 on: January 03, 2007, 04:46:30 am »
Ignore

Dave, if you can, would you mind changing this to 1976?  I'm not sure there is an easy way of doing it.

And this to 2002, if it isn't too much trouble.
« Last Edit: January 03, 2007, 06:24:25 am by Alcon »Logged

n/c
Grad Students are the Worst
Alcon
Moderators
YaBB God
*****
Posts: 31289
United States


View Profile
« Reply #53 on: January 03, 2007, 05:45:11 am »
Ignore

I've finished all of the do-able Washington election offices back to 1972 (click here).

Other elected offices in Washington:  Commissioner of Public Lands, Insurance Commissioner and Superintendent of Public Instruction (the last of which is non-partisan).

Also, I notice that as it stands, red is being used for "yes" and green for "no" on initiative maps.  Isn't it generally the other way around, with "green" signifying success/go, etc.?

It would also be nice to have a way of adding more than five initiatives, since we always have a half-dozen or so (often more) initiatives and almost never anything else.  We also have "House Joint Resolutions" and "Senate Joint Resolutions" that are voted on.  The way the initiatives are added - with each getting its own identical "Initiative" header with the year below - is going to be changed, I assume, so I'll go on the working assumption that the initiative function is not finished.

EDIT:

It also appears to error out when there's only one candidate receiving a vote.

(Also added more to the initiative part above.)
« Last Edit: January 03, 2007, 08:02:43 am by Alcon »Logged

n/c
Rob
Bob
YaBB God
*****
Posts: 6343
United States
Political Matrix
E: -6.32, S: -9.39

View Profile
« Reply #54 on: January 03, 2007, 07:49:18 am »
Ignore

And this to 2002, if it isn't too much trouble.

This map should also be changed to 2002- for some reason, I entered it in the wrong year. I also slightly misspelled the Democrat's first name as "Byran" instead of Bryan. 

Also note that this map was an attempt to correct the original map, which has the correct year and candidate spellings... but also reversed numbers in Athens County.

One of these maps should be deleted; the other should be fixed. My attempts to override the existing data have only resulted in error messages, so... can you help? Wink
Logged

Here’s what Sarah Palin represents: being a fat fucking pig who pins “Country First” buttons on his man titties and chants “U-S-A! U-S-A!” at the top of his lungs while his kids live off credit cards and Saudis buy up all the mortgages in Kansas.
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #55 on: January 03, 2007, 08:43:03 am »

I've finished all of the do-able Washington election offices back to 1972 (click here).

Also, I notice that as it stands, red is being used for "yes" and green for "no" on initiative maps.  Isn't it generally the other way around, with "green" signifying success/go, etc.?

(Also added more to the initiative part above.)

This was an error on my part that I made late last night.  Thanks.  Yes is green and No is red.
Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #56 on: January 03, 2007, 08:54:40 am »

I've finished all of the do-able Washington election offices back to 1972 (click here).

(Also added more to the initiative part above.)

Way to go Alcon!  Great enthusiasm!  Keep it up!
Logged
Vasall des Midas
Lewis Trondheim
YaBB God
*****
Posts: 56586
Vatican City State


View Profile
« Reply #57 on: January 03, 2007, 08:58:29 am »
Ignore

These contests will also show up in the state election page, such as: here
Thanks,
Dave  
What links to this page? ie, how to access it without either going to this thread on the forum first or bookmarking the address? ie, how would I find it if I didn't know it existed?

EDIT: I love all of you. Just needed to get that off my chest. Smiley
Logged

Liberate yourself from Free Will


Kitty's beardgrowing advice to Mitty.
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #58 on: January 03, 2007, 09:31:22 am »

The state election page is linked at the bottom of each election page, such as South Carolina Governor 2002.  Its called "<state name> Election Results Home".  You also can select them from the pull-down menu at the bottom: Choose another Office.

They link doesn't exist in the frame version at the moment - I'll add that to the list of things to do.
Dave
Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #59 on: January 03, 2007, 09:43:12 am »

Dave, if you can, would you mind changing this to 1976?  I'm not sure there is an easy way of doing it.

And this to 2002, if it isn't too much trouble.

Corrections completed.
Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #60 on: January 03, 2007, 09:46:25 am »

And this to 2002, if it isn't too much trouble.

This map should also be changed to 2002- for some reason, I entered it in the wrong year. I also slightly misspelled the Democrat's first name as "Byran" instead of Bryan. 

Also note that this map was an attempt to correct the original map, which has the correct year and candidate spellings... but also reversed numbers in Athens County.

One of these maps should be deleted; the other should be fixed. My attempts to override the existing data have only resulted in error messages, so... can you help? Wink

The best way to correct for these is to over-write the data with the correct data.  Can you describe for me the errors?  You should only need to check the two boxes on the bottom of the entry form to over-write file and over-write data.

Thanks,
Dave
Logged
Rob
Bob
YaBB God
*****
Posts: 6343
United States
Political Matrix
E: -6.32, S: -9.39

View Profile
« Reply #61 on: January 03, 2007, 10:33:06 am »
Ignore

The best way to correct for these is to over-write the data with the correct data.  Can you describe for me the errors?  You should only need to check the two boxes on the bottom of the entry form to over-write file and over-write data.

I was receiving this message:

Quote
Error: Candidate 1 name entered in the form, but has 0 total vote. Check that data file columns match candidate numbers.

Error: Candidate 2 name entered in the form, but has 0 total vote. Check that data file columns match candidate numbers.

Apparently there was a tiny error in the data, but I removed it: final corrected map

Now that's fixed, is there any way to remove this map completely? It was a dumb mistake on my part to put in the wrong year, and there's no reason for this to stay on the Atlas.
Logged

Here’s what Sarah Palin represents: being a fat fucking pig who pins “Country First” buttons on his man titties and chants “U-S-A! U-S-A!” at the top of his lungs while his kids live off credit cards and Saudis buy up all the mortgages in Kansas.
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #62 on: January 03, 2007, 10:49:20 am »

Jesus - there was a very obscure bug in the script that was causing the data not to be loaded if there was no Democratic candidate.  This caused your Idaho election submissions to fail.  They should now work.  As for the data.php errors, this looks to be on my end (related to the office).  I'll work on the script to show this correctly.
Thanks!!
Dave
« Last Edit: January 03, 2007, 10:53:55 am by Dave Leip »Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #63 on: January 03, 2007, 10:51:24 am »

Now that's fixed, is there any way to remove this map completely? It was a dumb mistake on my part to put in the wrong year, and there's no reason for this to stay on the Atlas.

Upload the correct data Smiley
http://www.sos.state.oh.us:80/SOS/ElectionsVoter/results2006.aspx?Section=1844
Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #64 on: January 03, 2007, 11:03:17 am »

Another Thought - hold off for a short time on Initiative/state-wide questions.  I have some additional thoughts on how to present/store this info.
Logged
Rob
Bob
YaBB God
*****
Posts: 6343
United States
Political Matrix
E: -6.32, S: -9.39

View Profile
« Reply #65 on: January 03, 2007, 12:07:28 pm »
Ignore

Upload the correct data Smiley

Done.
Logged

Here’s what Sarah Palin represents: being a fat fucking pig who pins “Country First” buttons on his man titties and chants “U-S-A! U-S-A!” at the top of his lungs while his kids live off credit cards and Saudis buy up all the mortgages in Kansas.
Sibboleth
Realpolitik
Moderators
YaBB God
*****
Posts: 53007
Norway


View Profile WWW
« Reply #66 on: January 03, 2007, 12:24:25 pm »
Ignore

Great stuff Smiley
Logged

'Gentlemen, a desert. A place of savage reference for the good people of Ohio. A place to fear and love. A blasted region. Something to remind us what we hewed out of. A place without malls. An Other for Ohio's Self. Cacti and scorpions and the sun bearing down. Desolation. A place for people to wander alone. To reflect. Away from everything. Gentlemen, a desert.'
So the Heroes Fall
BRTD
YaBB God
*****
Posts: 68117
Sweden


View Profile
« Reply #67 on: January 03, 2007, 01:24:41 pm »
Ignore

Another Thought - hold off for a short time on Initiative/state-wide questions.  I have some additional thoughts on how to present/store this info.

Ha, I only read this after doing the North Dakota Referendum on a Lottery. Oh well.
Logged

Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #68 on: January 03, 2007, 01:29:26 pm »

Another Thought - hold off for a short time on Initiative/state-wide questions.  I have some additional thoughts on how to present/store this info.

I've updated the script to modify how we handle initiatives, etc.  I've added a text field to place the name of the initiative (e.g. Amendment #1, Proposition 41, etc.)  I've changed the script to automatically place "Yes" and "No" in the right "Candidate" fields when an initiative or referendum is selected.  I've added a new table to keep track of the initiative names.  Here are two examples that I uploaded:

SC 2004 Amendment #2
SC 2004 Amendment #1

Note that the changes remove the name of the initiative from the "candidate" field.  I included the text of the initiative in the "Note 1" field and the explanation of the initiative in the "Note 2" field.

Let me know what you think.
Dave
« Last Edit: January 03, 2007, 04:23:52 pm by Dave Leip »Logged
Grad Students are the Worst
Alcon
Moderators
YaBB God
*****
Posts: 31289
United States


View Profile
« Reply #69 on: January 03, 2007, 03:56:54 pm »
Ignore

Very nice, Dave.

Jesus is going to do the initiatives now.  He is.  This is an affirmative statement, because he will do them.

While I collapse asleep.
Logged

n/c
nclib
YaBB God
*****
Posts: 8493


View Profile
« Reply #70 on: January 03, 2007, 06:13:38 pm »
Ignore

Dave, good work!

Is there a page of composite maps contributions? If so, can it be linked from the forum?

I was thinking of making some maps comparing Presidential/Senatorial/Gubernatorial results by county. The source, of course, would be the Atlas. How would I tackle this?
Logged



[George W. Bush] has shattered the myth of white supremacy once and for all. -- Congressman Charles Rangel (D-NY)

"George Bush supports abstinence. Lucky Laura."
- sign seen at the March for Women's Lives, 4/25/04

Grad Students are the Worst
Alcon
Moderators
YaBB God
*****
Posts: 31289
United States


View Profile
« Reply #71 on: January 04, 2007, 02:34:41 am »
Ignore

Quick additional bug report: graphs of initiatives don't work out so well.

Also, a very odd sort order here.  That also has happened on a good number of the other ones...the counties are in a weird semi-alphabetical order.
« Last Edit: January 04, 2007, 04:45:16 am by Alcon »Logged

n/c
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #72 on: January 04, 2007, 09:24:21 am »

Thanks Alcon.  I've removed the blue bars from the initiative data graph pages and resorted the county data in the data pages according to fips (this is an interesting problem: fips codes are not entirely in alphabetical order, so I don't sort the data in the tables I have created.  When the php grabs the mysql data without sort, they do so in order they appear in the table.  In our new table, what happens is when rows are deleted, new data is entered in an irregular fashion - I don't know any details as to why or what the algorithm looks like - but it causes the odd ordering when the php grabs the data).
Logged
Dave Leip
leip
Administrator
YaBB God
*****
Posts: 2093
United States


View Profile WWW
« Reply #73 on: January 04, 2007, 09:36:36 am »

Dave, good work!

Is there a page of composite maps contributions? If so, can it be linked from the forum?

I was thinking of making some maps comparing Presidential/Senatorial/Gubernatorial results by county. The source, of course, would be the Atlas. How would I tackle this?

Thanks!  Its a great team effort!  Already 111 new contests with county maps on the site! in only three days!

The list of contributions is located here.  I'll be adding this link from other parts of the site as it matures.

You can see a great composite of maps for contests by state - for example: Washington 1980

Enjoy,
Dave
Logged
So the Heroes Fall
BRTD
YaBB God
*****
Posts: 68117
Sweden


View Profile
« Reply #74 on: January 04, 2007, 02:28:51 pm »
Ignore

For my MN Secretary of State 2002 table, I can't sort it in any order other than the default. I get this:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/www/users/leip/RESULTS/data.php on line 1014

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/www/users/leip/RESULTS/data.php on line 1371
Logged

Pages: 1 2 [3] 4 5 6 7 8 Print 
« previous next »
Jump to:  


Login with username, password and session length

Logout

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Forums Directory