voting

Why aren't voting machines open source? [closed]

北城以北 提交于 2019-12-03 04:50:19
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Sooo...it's only sort of programming related, but I figure it's election day, right? Is there a single good reason why they aren't, not necessarily open source in that anyone can contribute, but open source in that anyone could inspect the source? 回答1: Voting machines aren't

Best way to implement voting in a Rails application?

对着背影说爱祢 提交于 2019-12-03 00:35:53
What's the best plugin these days for implementing voting on a Rails site? Two I'm aware of are: vote_fu acts_as_voteable There's no general 'best' solution. Check out how both work and see what best fits what you want and what fits your application's needs. In this case, acts_as_votable allows voting on models. vote_fu contains more as it ads the concept of 'acts_as_voter' to limit the models that may vote. It also adds 'has_karma' to give karma based on user voting. As you see, both are different options and only you know what best fits your needs. Coming in a bit late here, but from what I

Online Voting Application. How to avoid repeated voting from same user [duplicate]

前提是你 提交于 2019-12-02 23:29:55
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Unique IPs in a voting system I am developing a small web app where it needs an online voting system using php for my college event. I was obtaining IP Address and storing it in database to prevent repeated voting from same user. But then I remembered that my college uses a proxy server so obtaining IP address is useless. I tried accessing and storing Mac Address of the client using javascript.. I tried out a

Why aren't voting machines open source? [closed]

穿精又带淫゛_ 提交于 2019-12-02 18:05:22
Sooo...it's only sort of programming related, but I figure it's election day, right? Is there a single good reason why they aren't, not necessarily open source in that anyone can contribute, but open source in that anyone could inspect the source? erickson Voting machines aren't open-source because lobbyists for the "electrical till" industry successfully hoodwinked politicians not qualified to make technology choices into buying their snake-oil. This was accomplished with a mix of anti-FOSS FUD and good ol' fashioned bribery campaign contributions. Update: I will try to post links here from

PHP voting, one vote per IP per day: code help needed

风流意气都作罢 提交于 2019-12-01 13:00:13
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 page for that game via ...vote.php?id=# (where # is the gid). Here is a simplified version of my current vote.php, which is not working: <?php $gid = $_GET["id"]; $ip = $_SERVER['REMOTE_ADDR']; require_once ('config.php'); $q = "SELECT * FROM votes WHERE (gid=$gid)"; $r = @mysqli_query($dbc, $q); if ($r) { while ($row = mysqli_fetch_array($r)) { if (

PHP voting, one vote per IP per day: code help needed

旧城冷巷雨未停 提交于 2019-12-01 11:10:47
问题 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 page for that game via ...vote.php?id=# (where # is the gid). Here is a simplified version of my current vote.php, which is not working: <?php $gid = $_GET["id"]; $ip = $_SERVER['REMOTE_ADDR']; require_once ('config.php'); $q = "SELECT * FROM votes

Efficient multiclass weighted majority voting implementation in MATLAB

落花浮王杯 提交于 2019-11-30 07:36:09
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 options A/B/C/D, so we for example get the following n x m voting matrix, where the columns are votes of each expert. A B B C A A D B A A A C Now I'd like to find weighted majority vote for each row. We calculate it by adding the weights of experts which voted for each option, and selecting the maximal weight. For example, in the first row, the option A

Efficient multiclass weighted majority voting implementation in MATLAB

家住魔仙堡 提交于 2019-11-29 10:21:25
问题 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 options A/B/C/D, so we for example get the following n x m voting matrix, where the columns are votes of each expert. A B B C A A D B A A A C Now I'd like to find weighted majority vote for each row. We calculate it by adding the weights of experts which

Django Vote Up/Down method [closed]

烈酒焚心 提交于 2019-11-28 15:26:00
I am making a small app that lets users vote items either up or down. I'm using Django (and new to it!). I am just wondering, what is the best way to present the upvote link to the user. As a link, button or something else? I have already done something like this in php with a different framework but I'm not sure if I can do it the same way. Should I have a method for up/down vote and then display a link to the user to click. When they click it, it performs the method and refreshes the page? panchicore Just plug and play: RedditStyleVoting Implementing reddit style voting for any Model with

acts_as_votable thumbs up/down buttons

亡梦爱人 提交于 2019-11-28 06:07:27
I installed the acts_as_votable gem, it works in the console like it should (like it says in the documentation). So my question is how to set up a form for upvote and downvote buttons? or can they simply be links? here is the documentation: github.com/ryanto/acts_as_votable/blob/master/README.markdown I have a user and a picture model; the user is supposed to be able to like the picture. code from the picture view, where the buttons should be: <% for picture in @pictures %> <p> <%= image_tag picture.image_url(:thumb).to_s %> </p> <%= picture.created_at.strftime("%a, %d %b. %Y") %>, by <%= link