Questions tagged [voting]

329 questions
4
votes
1 answer

How do I execute a vote using the Rails 3 gem 'thumbs_up'?

So I want votes to be triggered using jQuery/AJAX and an image. i.e. I have a thumbs up icon and thumbs down. I have setup the gem, and ran the rake db:migrate and have everything sorted out. But I am not sure how to execute a vote in my app. In my…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
4
votes
2 answers

Weighted voting system with karma

This question is more logic than programming at the moment.. once I understand what algorithm(s) I need to use I'll be looking into how to implement it. I've got a list of items in a database that need to be voted up or down by users to determine if…
RichW
  • 10,692
  • 6
  • 26
  • 33
4
votes
3 answers

How to prevent guest users from voting twice for a post?

I have a site where users can post and vote for posts. It is very critical to allow guest users to vote for a post, it also very important to avoid multiple votes from the same guest. Cookies, can be easily deleted, so this can't be the…
ggat
  • 460
  • 5
  • 15
4
votes
1 answer

Looking for super simple but effective BUG/Feature list that users can vote

I am looking for some javascript or php code where it allows anyone to enter something in a list, and allows people to vote (1 vote per IP or cookie) or rate (not important, OK, important). There would be two lists, one for people suggest features…
ParoX
  • 5,685
  • 23
  • 81
  • 152
4
votes
1 answer

Does anyone know of any good open source voting software?

I'm looking for a voting system that we can implement at work amongst our developers. We need something that allows developers to submit ideas about what we can do to improve our development practices (amongst other things) and then have all the…
mezoid
  • 28,090
  • 37
  • 107
  • 148
4
votes
2 answers

Voting System Like SO - C#, Asp.net, Webforms

There are a lot of questions similar to this but none dealing with webforms and c# that I have found. I have Linq-to-SQL, a Vote table where I want to record the vote records(Voteup/down/time/ipaddress/user etc) Is this the way to do it or is there…
Jason
  • 11,435
  • 24
  • 77
  • 131
4
votes
1 answer

Efficient multiclass weighted majority voting implementation in MATLAB

For a few days I was wondering on how to efficiently implement weighted majority voting of m experts in matlab. Here is an example of what I want. Suppose we have 3 experts with weights vector w=[7 2 6] Suppose they are voting n times on the…
shiftyscales
  • 441
  • 4
  • 20
4
votes
1 answer

Create dynamic input text of group and options and transfer it to php

I'm writing simple remote voting system in PHP and I have problem with control of dynamic options and groups in php form. I would like to have something like this, but.... (asks are at the bottom of my…
atrzcinski
  • 43
  • 5
3
votes
10 answers

When creating a social voting system, should you keep track of downvotes and upvotes separately in the DB?

With things like SO, Digg, Reddit, etc... Should one keep track of downvotes in the database independent of upvotes? Or should they simply have a "votes" field that is decremented/incremented based off what the user does with no persisting of…
Mithrax
  • 7,603
  • 18
  • 55
  • 60
3
votes
3 answers

SQL: Counting unique votes with a rolling votes-per-hour limit

Given a table of votes (users vote for a choice, and must supply an email address): votes -- id: int choice: int timestamp: timestamp ip: varchar email: varchar What's the best way to count "unique" votes (a user being a unique combination of email…
Karen T
3
votes
6 answers

Best way of storing incremental numbers?

I'm implementing a voting system for a relatively large website and I'm wondering where should I store the vote count. The main problem is that storing them in the main database would put a lot of strain on it, as MySQL isn't very good at handing…
Kristina
  • 15,859
  • 29
  • 111
  • 181
3
votes
2 answers

Having logic problems with a voting system

i am looking for help on an up down voting system. at the moment i have a voting table that references the user that voted , the user who was voted for and the piece of information(a parking spot) that was voted for CREATE TABLE…
molleman
  • 2,934
  • 16
  • 61
  • 92
3
votes
1 answer

How to add a neural network model with ML models in VotingRegressor?

Background of the Problem I was trying to use a KerasRegressor model with the ML models (e.g. Lasso, Gradient Boost Regressor) for the purpose of building an ensemble method. I used the VotingRegressor() function of sklearn to group the models.…
3
votes
3 answers

Which one is better for a voting function

Which system would be the best to go ahead with for voting function and why? ; Putting the votes separately inside a database table and calculating the average when it is needed Having only one row for one product. When a new vote comes, getting…
tugberk
  • 57,477
  • 67
  • 243
  • 335
3
votes
1 answer

Seeking Pseudo-code for Calculating the Smith and Schwartz Set

I've read Wikipedia on the Smith Set, Schwartz Set, Kosaraju's Algorithm, Tarjan's Algorithm, and the path-based strongly component algorithms; however, my experience with such algorithms is…lacking. Wikipedia also says you can use a version of…
John Moser
  • 465
  • 5
  • 11