LGF Polls Making a Comeback

Charles Johnsonfollow me on twitter
Mon Apr 30, 2007 at 11:18 am PDT • Views: 253

Another piece of the LGF Blog Engine’s MySQL makeover was completed over the weekend—our polling application. This was kind of a tough one to convert from flat files; had to rethink the entire data model in SQL terms, and ended up with a complex but very flexible multi-table design that has all the features of the old version and more. Relational databases are a beautiful thing.

Everything’s now tested and fully functional. I haven’t imported the data for all of the existing polls, but I did convert the last two polls we ran for Idiotarian and Anti-Idiotarian of the Year 2006.

Here’s a new one created on the spur of the moment, to test the regex method that embeds polls in LGF entries, asking a simple question:

LGF Poll

Is Western civilization winning the battle against Islamic supremacism?

Votes allowed: 1
Expires: never
 

UPDATE at 4/30/07 12:09:44 pm:

If you’re seeing the message that says “You have already voted,” and you haven’t, here’s why: to prevent multiple voting, the polling application saves your IP address when you vote. If your IP is already in the list, you’ll see the message.

The problem with this approach is that some ISPs (for example, AOL) share IP addresses among their customers. So if you’re using one of those proxy-based networks, and someone else on the same network beats you to the vote … well, you’re outta luck.

Another way to prevent multiple votes is to set a cookie, but this is ridiculously easy to get around; all you have to do is delete the cookie. The IP method has the advantage of working pretty reliably, although it unfortunately means that proxy users may be denied.

Don’t sweat it; it’s only an internet poll…

Advertisement

303 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

I don't want to use Wade's hairbrush!

TwitterFacebook
LGF Pages
Recent Pages

Daniel Ballard
Late Afternoon Light-Kalanchoe
59 minutes ago
Views: 33 • Comments: 0
Tweets: 0 • Rating: 2

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
1 hour, 3 minutes ago
Views: 27 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Attachment Birthers
1 hour, 12 minutes ago
Views: 37 • Comments: 0
Tweets: 0 • Rating: 0

Eclectic Infidel
City College of San Francisco Budget Update
1 hour, 52 minutes ago
Views: 54 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
6 hours, 22 minutes ago
Views: 147 • Comments: 5
Tweets: 0 • Rating: 4

Aigle
National Geographic Traveler Veers Off Track
1 day, 6 hours ago
Views: 385 • Comments: 5
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 7 hours ago
Views: 195 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 8 hours ago
Views: 260 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 8 hours ago
Views: 471 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 11 hours ago
Views: 236 • Comments: 1
Tweets: 0 • Rating: 3

 Frank says:

Yes, Ladies and gentleman, even in this agricultural enviroment, We're gonna' play a love song -- This was about 1974 in Harrisburg Pa. at the Farm Show Arena, a week after the Farm show had left town... Frank never admitted to playing there, and I can't say as I blame him. But, I will never forget what a magical night that was.