Questions tagged [voting]

329 questions
3
votes
4 answers

Shuffle JS array with probability

Say I have an array like so: const alphabet = ['a', 'b', 'c', 'd']; This represents 4 political candidates and a rank choice vote, where candidate a is first choice, b is second choice, etc. I want to shuffle this into a bunch of random orders, but…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
3
votes
2 answers

Drupal Creating Votes in Voting API Through Code

I have a custom module I'm writing, part of what I want it to do is create a vote associated with a node, I'm trying to figure out how to call the voting API from my module. I loookd in the documentation but it's a little sparse.
user379468
  • 3,989
  • 10
  • 50
  • 68
3
votes
1 answer

"Voting" mechanism for XMPP protocol

I need to extend functionality of standard XMPP protocol, to be able perform voting sessions (in multi user chat). Please direct me - can I use some existing XEP(like Data Forms) or I need to implement some custom XEP ? Or better use some…
3
votes
2 answers

Symfony framework voting system

Can someone give me some links to a maybe guide or to a symfony plugin, for voting system. Thanks.
Marat_Galiev
  • 1,251
  • 5
  • 21
  • 31
3
votes
0 answers

voting with average of probabilities in weka

Output attribute is risky patient. Values are yes and no. If yes then patient is risky, and if no then patient is not risky. If I am combining 3 classifier for classification model in weka, and if final result will be calculated by average…
3
votes
1 answer

Using kappa coefficient to evaluate results of crowd sourcing

I have 4 sets of manually tagged data for 0 and 1, by 4 different people. I have to get the final labelled data in terms of 0 and 1 using the 4 sets of manually tagged data. I have calculated the degree of agreement between the users as A-B :…
bronn
  • 31
  • 6
3
votes
1 answer

Database design for voting

I am implementing a voting feature to allow users to vote for their favourite images. They are able to vote for only 3 images. Nothing more or less. Therefore, I am using checkboxes to do validation for it. I need to store these votes in my…
Enovyne
  • 195
  • 1
  • 7
  • 20
3
votes
2 answers

Daily voting system with IP

Hello everyone! I know using IP addresses isn't the best way to go for a voting system but in my case it's fine! What I want to achieve: An admin can set a question for the poll. Users answer to the question and can vote for each answer daily using…
ShadowMan
  • 167
  • 1
  • 5
  • 17
3
votes
2 answers

How to make bootstrap Voting snippet functional, change value in MySQL

I am trying to add a voting/poll panel in sidebar of my HTML/PHP/MySQL website. Scenario I have list of plans for separate places in MySQL Database Table, when some one search for the place they will also see list of plans decided for that place.…
Luzan Baral
  • 3,678
  • 5
  • 37
  • 68
3
votes
2 answers

how to make jquery remove() on just one item

this is the first time i use jquery and im trying to figure out to to make jquery remove(), remove just one item with a specific class, not every item with the same class. my code is like this jquery: $(function() { $(".vote").click(function()…
3
votes
1 answer

Upload images with Uservoice

I think I'm going to go with UserVoice for a free user voting service, because they are the only one I've found that offer an API (which is a requirement for me, because I need to be able to create a custom UI). But it looks like the user can't…
Dingredient
  • 2,191
  • 22
  • 47
3
votes
2 answers

Implementing vote_fu in rails app (or alternatives)

I've been trying to implement a robust voting system in Rails for some time but have been struggling. Initially I built my own voting system, but it was simplistic. In a nutshell it just incremented a votes_count column in the Answer model using…
goddamnyouryan
  • 6,854
  • 15
  • 56
  • 105
3
votes
1 answer

Programmatically using Outlook "voting" functionality

Is there a way to programmatically access the "voting" feature of Outlook email? I'd like to be able to send emails with voting enabled, and also get the replies (preferably without polling). Thanks!
Chris
  • 3,664
  • 6
  • 34
  • 44
3
votes
1 answer

Algorithm to find Voting Blocs

(Warning to music lovers: This question deals with the Eurovision Song Contest) The Eurovision Song Contest is a popular event in Europe. For those not familiar with the concept, it's basically a contest where each participating country performs a…
Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73
2
votes
1 answer

Framework or library for creating user based rating systems such as in Digg, Reddit etc?

Looking for a good client side library using which I can create a reddit vote up / down, commenting, etc system? The more mature the framework the better as this will go on a production site immediately.
MathOldTimer
  • 1,311
  • 3
  • 13
  • 22