search for: voting

Displaying 20 results from an estimated 2161 matches for "voting".

Did you mean: noting
2012 Oct 11
2
survey package question
...a county-specific election. I am trying to figure out what would be the best sampling design for my data. The structure of the dataset is: 1) polling station (in general schools where people vote, for a county, for example, there are 15 polling stations) 2) inside each polling station, there are voting units, where people actually vote (on average there are about 40 voting units for polling station) 3) for each voting unit I have the total votes by candidate (e.g., candidate 1 =322, candidate 2=122, candidate 3= 89) The initial sampling design is: 1) selection of 5 polling stations PPS (based on...
2008 Feb 05
1
Functional Test has error when testing controller updates_attribute of its parrent.
I am working in Rails 2.0 and I have the following functional test. class VotesControllerTest < ActionController::TestCase def test_should_create_vote assert_difference(''Vote.count'') do post :create, {:vote => {:vote_value => 5, :user_id => users(:nick).id, :entry_id =>
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my Votes, I have the create action and the corresponding create.js.erb, and respond_to :html, :js, :xml in the controller. Heres the log when I try and create a vote: Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan 14 20:46:36 -0800 2011 Processing by VotesController#create as */* Parameters:
2009 Nov 09
3
How can I improve a Ruby on Rails code that hast a lot of SQL as strings?
Hello Railists, I have a piece of Ruby on Rails code that has a complex SQL query (well, not that complex, but as far as I know beyond the ORM capabilities) and for my taste it has too many strings and harcoded values. I''d like to improve it as much as possible, so my question is open ended, what else can I do to improve it? Some particular issues I have - Is there a way to get a table
2006 Aug 30
4
Users voting
I''m trying to work out the most reasonable way to keep track of users "voting" for or against a particular bit of data. Obviously, I don''t want them to be able to just bang on the link -- I''d prefer to limit it to one vote per day, for example. I could record the fact that they''ve voted in the session, but I''d really rather not ha...
2005 Jun 02
1
Re: Vote For CentOS :) -- yes, vote CentOS if it's what you like
From: Christopher Snow <cs at m0n0.co.uk> > If that's the case, shouldn't the credit vote go to Fedora? Disclaimer: This is 100% my _opinion_ (don't take it otherwise) 1. Credit At some point a lot of credit can go to a lot of projects. Yes, many are thanx to Red Hat -- by far the largest of any commercial entity. But then many are thanx to many maintainers in general.
2013 Feb 08
0
[Vote] Formal vote for Mirage to be accepted as Xen.org Incubation Project (deadliner Feb 15th)
...en.org/wiki/Mirage_Incubation_Project_Proposal, it is time to have a formal vote. Who can vote? - Project leads of Mature Xen.org projects - Committers of Mature Xen.org projects - Others can register their vote in support of the project, but the vote is not binding. How to vote? - Vote via the voting form at http://xen.org/polls/mirage_incubation_proposal.html Deadline? - Friday Feb 15th, 23:55 GMT - Or before Feb 15th (i.e. when all eligible community members have cast their vote) What happens next? If accepted, I will work with the Mirage project lead on a detailed plan for the Incubatio...
2006 Apr 10
4
Best way to propogate model rules to controller?
...oth the model and controller. def allow_vote? Date.today.wday == 2 end def add_vote raise ''You cannot vote today'' unless Date.today.wday == 2 ... end Then in my view I can just do <% unless game.allow_vote? %> to hide the link. In the controller actions that handle voting, I just rescue the exception and display an error if necessary. Does that seem like a good approach, or is there something better? I need this as some rules vary from game to game, and are stored in the db for each game. Pat
2007 Dec 20
3
ActiveRecords Eager Loading
Hi, I am doing an eager loading in ruby on rails using below statement ------------------------ Article.find(:all, :include => [:asset, :vote], :conditions=>"assets.parent_id is null", :order=>"stat_final_ranking desc", :limit=>20) --------------------------------------- the above statement resulted in this expensive query.
2005 Jun 30
3
Vote for CentOS - AGAIN :)
The preliminary round voting is completed in the "2005 Readers' Choice Awards" at Linux Journal. CentOS was nominated in the "distribution:" category along with 18 other Linux distros ... and we finished in the top 3 (along with Ubuntu and FedoraCore). Thanks to every one who voted for CentOS. I real...
2005 Sep 12
1
One day left to vote for CentOS
CentOS has been nominated for an award in the Linux User awards. Please vote for CentOS !! Voting finishes tomorrow - 13th September. Please vote at :- http://www.linuxawards.co.uk/index.php You will need to vote for all categories otherwise the vote wont count. Thanks Lance -- uklinux.net - The ISP of choice for the discerning Linux user.
2006 May 13
4
undesireable lazy loading
Hi, My work with Rails has been fairly straightforward, until yesterday... I''ve encountered rather a peculiar problem that I''m not able to solve myself as a rails-newbie. The model code looks like this: class Link < ActiveRecord::Base has_one :user_vote end class UserVote < ActiveRecord::Base belongs_to :user belongs_to :link end I have a SQL query that is
2006 Feb 17
2
validate uniqueness of two fields
I have Proposals and Members and Members can vote for a proposal only once. So, I have "Vote belongs_to :member, :proposal", but to make sure a member only votes once, I want to make sure that there isn''t a vote in the db with that member_id and proposal_id. I can just put the appropriate find in a vote.valid? but I wanted to make sure I wasn''t missing a nice rails
2008 Nov 20
1
binomial glm???
Hi everyone, newbee query! I've installed R 2.8.0 and tried to run this simple glm - x is no of cars in a given year, y is the number voted in an election that year while n is the population 18+: votes <- data.frame(x = c(0.62,0.77,0.71,0.74,0.77,0.86,1.13,1.44), + y=c(502,542,711,653,771,806,934,1123), n=
2009 Jan 03
1
AppDB Voting System Wierdness
Hi, I'm a newbie. I was looking at the AppDB and I think the voting is a great idea to prioritise what people want and will use. However, I was looking at my favorite game that I want to get fully working on wine - "Company of Heroes (http://appdb.winehq.org/objectManager.php?sClass=application&iId=4506)". I can't understand why there isn't a...
2007 Aug 23
0
How to get callee extension in applicationmap(features.conf)
...ransfer disconnect => ** ; Disconnect Call automon => *1 ; One Touch Record atxfer => *2 ; Attended Xfer testfeature => *3 here is my macro-vote: [macro-vote] exten => s,1,Noop('Macro-vote') exten => s,2,BackGround(custom/0703) ;exten => s,3, exten => s,3,goto(voting,s,1) [voting] ;exten => s,1,Background(custom/0703) exten => s,1,Noop('Now Let's voting!') exten => 1,1,Set(Rate=100) exten => 1,2,SayDigits(${Rate}) exten => 2,1,Set(Rate=80) exten => 2,2,SayDigits(${Rate}) exten => 3,1,Set(Rate=60) exten => 3,2,SayDigits(${Rate...
2002 Jul 16
1
Vote Vorbis!
The Linux Journal's 2002 Readers' Choice poll is open. Vorbis is featured in the Favorite Audio Tool category, so go vote for your favorite codec! Actually, you even have the choice of voting for "ogg123" or for "Vorbis Tools", since it seems someone at Linux Journal is not quite aware of what Vorbis Tools contain. I suggest voting for "Vorbis Tools", so that the votes are concentrated into one entry. The poll will close on August 12, 2002, and the results...
2005 Feb 19
2
I have a odd question...
Hi all. I am going to do a simple "voting application" for a radiostation. The idea is to have listeners call in to vote on songs. What I want to do is to take a phonenumer for each song and present the result on a simple webpage. Eg. To vote on song number one, call 555-1111 To vote on song number two, call 555-2222 etc etc. W...
2006 Feb 27
2
heckit with a probit
Hi I have data for voting behaviour on two (related) binary votes. I want to examine the second vote, running separate regressions for groups who voted different ways on the first vote. As the votes are not independent, I guess that there is an issue with selection bias. So, I think I would like to fit a heckit style model...
2007 Jun 01
2
Ferret FileNotFound error after adding counter_cache to mode
I have a model that I''ve been indexing and searching with ferret with no problems. I just added a counter_cache for some voting functionality to the same model and now when I perform the voting fxn on an object from that model, I get the FileNotFound error as it looks for a file named "_1c_1.del" ...which breaks my voting function. I tried killing the server and my index directory as suggested for FnF errs elsewh...