Questions tagged [voting]
329 questions
2
votes
1 answer
How to check if an user voted but to be impossible to see for whom?
Blockchain Voting System
How current system works
Users are allowed to vote after their identity is confirmed by an authority.
Votes are collected and counted by an authority.
The person who has the most votes, have the power for ~4 years, then we…

moldcraft
- 438
- 7
- 21
2
votes
1 answer
Rails survey style application - Show all answers on option
I'm a new guy to ruby on rails and working on my first in-depth application. It has four tables: Questions, Options, Answers and Users. There's a list of questions and a user can vote for a unique option (stored in the Answers join table), I'm…

classequalsarthur
- 74
- 8
2
votes
2 answers
How to update table row +1 when element is clicked?
I am building a voting system for questions. Visitors of the site can vote, once a day or some such, on a question they like the most. How can I +1 to the QuestionVotes row when the button for the specific question is clicked?
My code:

Nenn
- 477
- 1
- 4
- 21
2
votes
1 answer
How can I build a voting system to support multiple types of objects to vote on?
I'm really looking for something very similar to the way SO is setup where a few different kinds of things can be voted on (questions AND answers). What kind of DB schema, generally, could I use to support voting on many different kinds of…

Kyle Hayes
- 5,225
- 8
- 38
- 53
2
votes
1 answer
Rails vote per IP address per limit 1 per day
I have a Ruby on Rails 3.2 application where users are able to upload videos directly to youtube with the Youtube_it Rails gem. After the video is uploaded, the people are able to vote on the videos. I have it setup now where anyone can vote on…

stiweb2003
- 73
- 3
- 6
2
votes
3 answers
Drupal voting module with an image per option
I've searched for a while and can't find this option.
In Drupal 6.15 I'm trying to setup a Poll that will allow me to upload an image for each option to vote on, and have the image inline with the radio button.
Also I'd like to have a text field…

EricP
- 1,459
- 6
- 33
- 55
2
votes
2 answers
Vote counting script is not adding up correctly
I'm trying to count the number of first, second, and third choice votes for each candidate of an election (specifically the Stack Overflow 2014 Moderator Election). I downloaded the data file and opened it up. Based on my rudimentary interpretation…

Boann
- 48,794
- 16
- 117
- 146
2
votes
1 answer
How to create voting to a multiple choice application using ruby on rails
I am working on a multiple choice question and answer application using Ruby on Rails and I have the following model.
class User < ActiveRecord::Base
has_many :questions
end
class Question < ActiveRecord::Base
belongs_to :user
has_many…

Francis Chibaye
- 125
- 1
- 1
- 10
2
votes
1 answer
Voting protocol in distributed system
I'm learning Distributed Operating System,and I have a question about Voting protocol: "When should I use static voting protocol instead dynamic voting protocol?" (that mean, in any case static voting protocol is better than dynamic voting…

CauBeRong
- 49
- 1
- 6
2
votes
3 answers
Strategy for unique user-voting such as Stackoverflow's?
I noticed that for voting SO implements an XHR method which POSTs to a posts controller and sends the post ID and vote type through the URL, in addition a fkey parameter is sent, eg:
http://stackoverflow.com/posts/1/vote/2
I'm going to be…

meder omuraliev
- 183,342
- 71
- 393
- 434
2
votes
3 answers
can't get jquery upvote to work (jquery plugin)
I've followed instructions from here and I've done the following:
I've uploaded jquery.upvote.js, jquery.upvote.css, and images folder to wordpress theme folder, and registered these files as usual.
I've set the jquery version to 2.0.2
Put in html…

weaponx
- 135
- 5
- 18
2
votes
1 answer
How to implement voting in Rails without voting gem
I have created a hacker news clone and I am trying to implement a voting system that ranks from most voted to least voted, based on the past 7 days. I know there are several gems to do this but I would like to do it once manually before using a…

Jason Rodriguez
- 183
- 1
- 1
- 13
2
votes
1 answer
How concisely can I represent a permutation of 1024 from 1024?
I want to give my users a concise, base-64 alphanumeric code, to represent the choice they make when choosing 1024 candidates in order from a ballot of 1024 candidates. (This is a worst-case ... I can probably live with < 256).
What are my…

David Bullock
- 6,112
- 3
- 33
- 43
2
votes
1 answer
PHP voting, one vote per IP per day: code help needed
I am working on a very basic site which will allow people to vote once per 24 hours on an item (game) per IP address. Votes are stored in a table named votes, with columns containing vote ID, game ID, votedate, and IP address.
Users go to the vote…

oddmango
- 21
- 2
2
votes
2 answers
Implementing a "one vote per day" system in pyramid based on cookies
Background:
I have the core functionality of a very simple vote-based site setup and working well in pyramid utilizing a sqlite database. The last requirement for this application is to allow only one vote per day, per user. It has been specified…

dannyincolor
- 73
- 1
- 6