Home
2012
Election Results
Election Info
Weblog
Wiki
Search
Email
Site Info
Store
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 20, 2013, 09:25:55 am
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
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
Re: RBH's Maps
«
Reply #50 on:
January 03, 2007, 01:00:55 am »
Tried it again and it still didn't work. Oh well.
Logged
bgwah
YaBB God
Posts: 13395
Political Matrix
E: -4.52, S: -8.17
Re: RBH's Maps
«
Reply #51 on:
January 03, 2007, 01:31:12 am »
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
Re: RBH's Maps
«
Reply #52 on:
January 03, 2007, 04:46:30 am »
Dave, if you can, would you mind changing
this
to 197
6
? 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
Re: RBH's Maps
«
Reply #53 on:
January 03, 2007, 05:45:11 am »
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
Political Matrix
E: -6.32, S: -9.39
Re: RBH's Maps
«
Reply #54 on:
January 03, 2007, 07:49:18 am »
Quote from: Alcon on January 03, 2007, 04:46:30 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?
Logged
Here’s what Sarah Palin represents: being a fat
fu
cking 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
Re: RBH's Maps
«
Reply #55 on:
January 03, 2007, 08:43:03 am »
Quote from: Alcon on January 03, 2007, 05:45:11 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
Re: RBH's Maps
«
Reply #56 on:
January 03, 2007, 08:54:40 am »
Quote from: Alcon on January 03, 2007, 05:45:11 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
Re: RBH's Maps
«
Reply #57 on:
January 03, 2007, 08:58:29 am »
Quote from: Dave Leip on January 02, 2007, 08:48:17 pm
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.
Logged
Quote from: True Federalist on April 28, 2013, 01:25:07 am
Liberate yourself from Free Will
Kitty's beardgrowing advice to Mitty.
Dave Leip
leip
Administrator
YaBB God
Posts: 2093
Re: RBH's Maps
«
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
Re: RBH's Maps
«
Reply #59 on:
January 03, 2007, 09:43:12 am »
Quote from: Alcon on January 03, 2007, 04:46:30 am
Dave, if you can, would you mind changing
this
to 197
6
? 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
Re: RBH's Maps
«
Reply #60 on:
January 03, 2007, 09:46:25 am »
Quote from: Rob on January 03, 2007, 07:49:18 am
Quote from: Alcon on January 03, 2007, 04:46:30 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?
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
Political Matrix
E: -6.32, S: -9.39
Re: RBH's Maps
«
Reply #61 on:
January 03, 2007, 10:33:06 am »
Quote from: Dave Leip on January 03, 2007, 09:46:25 am
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
fu
cking 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
Re: RBH's Maps
«
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
Re: RBH's Maps
«
Reply #63 on:
January 03, 2007, 10:51:24 am »
Quote from: Rob on January 03, 2007, 10:33:06 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
http://www.sos.state.oh.us:80/SOS/ElectionsVoter/results2006.aspx?Section=1844
Logged
Dave Leip
leip
Administrator
YaBB God
Posts: 2093
Re: RBH's Maps
«
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
Political Matrix
E: -6.32, S: -9.39
Re: RBH's Maps
«
Reply #65 on:
January 03, 2007, 12:07:28 pm »
Quote from: Dave Leip on January 03, 2007, 10:51:24 am
Upload the correct data
Done.
Logged
Here’s what Sarah Palin represents: being a fat
fu
cking 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
Re: RBH's Maps
«
Reply #66 on:
January 03, 2007, 12:24:25 pm »
Great stuff
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
Re: RBH's Maps
«
Reply #67 on:
January 03, 2007, 01:24:41 pm »
Quote from: Dave Leip 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.
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
Re: RBH's Maps
«
Reply #68 on:
January 03, 2007, 01:29:26 pm »
Quote from: Dave Leip 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.
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
Re: RBH's Maps
«
Reply #69 on:
January 03, 2007, 03:56:54 pm »
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
Re: RBH's Maps
«
Reply #70 on:
January 03, 2007, 06:13:38 pm »
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
Re: RBH's Maps
«
Reply #71 on:
January 04, 2007, 02:34:41 am »
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
Re: RBH's Maps
«
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
Re: RBH's Maps
«
Reply #73 on:
January 04, 2007, 09:36:36 am »
Quote from: nclib on January 03, 2007, 06:13:38 pm
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
Re: RBH's Maps
«
Reply #74 on:
January 04, 2007, 02:28:51 pm »
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Presidential Elections - Analysis and Discussion
-----------------------------
=> 2016 U.S. Presidential Election
===> 2016 U.S. Presidential General Election Polls
===> 2016 U.S. Presidential Primary Election Polls
=> U.S. Presidential Election Results
===> 2012 U.S. Presidential Election Results
===> 2008 U.S. Presidential Election Results
===> 2004 U.S. Presidential Election Results
===> 2000 U.S. Presidential Election Results
=> Presidential Election Trends
=> Election What-ifs?
===> Past Election What-ifs (US)
===> Alternative Elections
===> International What-ifs
-----------------------------
Other Elections - Analysis and Discussion
-----------------------------
=> Gubernatorial/Statewide Elections
===> 2013 & Odd Year Gubernatorial Election Polls
===> 2014 Gubernatorial Election Polls
=> Congressional Elections
===> 2014 Senatorial Election Polls
=> International Elections
=> Election Predictions
-----------------------------
Questions and Answers
-----------------------------
=> Presidential Election Process
===> Electoral Reform
===> Polling
=> The Atlas
===> How To
-----------------------------
General Discussion
-----------------------------
=> Constitution and Law
=> Religion & Philosophy
=> History
===> Alternative History
-----------------------------
General Politics
-----------------------------
=> U.S. General Discussion
=> Political Geography & Demographics
=> International General Discussion
=> Economics
=> Individual Politics
=> Political Debate
===> Political Essays & Deliberation
===> Book Reviews and Discussion
-----------------------------
Election Archive
-----------------------------
=> 2012 Elections
===> 2012 Senatorial Election Polls
===> 2012 House Election Polls
===> 2012 U.S. Presidential Primary Election Polls
===> 2012 U.S. Presidential General Election Polls
===> 2012 Gubernatorial Election Polls
=> 2010 Elections
===> 2010 House Election Polls
===> 2010 Senatorial Election Polls
===> 2010 Gubernatorial Election Polls
=> 2008 Elections
===> 2008 Senatorial Election Polls
===> 2008 Gubernatorial Election Polls
===> 2008 U.S. Presidential Election Campaign
===> 2008 U.S. Presidential General Election Polls
===> 2008 U.S. Presidential Primary Election Polls
=> 2004 U.S. Presidential Election
===> 2004 U.S. Presidential Election Campaign
===> 2004 U.S. Presidential Election Polls
=> 2006 Elections
===> 2006 Senatorial Election Polls
===> 2006 Gubernatorial Election Polls
-----------------------------
Forum Community
-----------------------------
=> Forum Community
===> Forum Community Election Match-ups
=> Election and History Games
===> Mock Parliment
===> Town Hall
===> Survivor
===> Interactive Timelines
=> Off-topic Board
-----------------------------
Atlas Fantasy Elections
-----------------------------
=> Atlas Fantasy Elections
===> Voting Booth
=> Atlas Fantasy Government
===> Constitutional Convention
===> Regional Governments
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.18
|
SMF © 2013, Simple Machines
Loading...