search for: voted

Displaying 20 results from an estimated 2155 matches for "voted".

Did you mean: noted
2012 Oct 11
2
survey package question
Hello, I have got a cluster sample using an election dataset where I already had the final results of 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
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
...e.erb within rescues/layout (1.0ms) The votes controller only has the create option: def create @story = Story.find(params[:story_id]) @vote = @story.votes.create(:user => current_user) if @vote.errors.empty? && @vote.valid? flash[:notice] = ''Successfully voted!'' else flash[:error] = ''You already voted for that story!'' end respond_with @vote end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrail...
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
...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 have sessions for the portions of the site where voting is relevant. This idea also seems fairly fragile. So far, the best plan I have is to add a "votes" table that records an ip address and a time stamp. Whenever a "vote"...
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)
Hi everybody, after the initial positive community review of the http://wiki.xen.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
2006 Apr 10
4
Best way to propogate model rules to controller?
Hey everybody, I''ve got a model that represents kind of a turn-based games. Certain actions can only be made unders certain conditions. For simplicity, we''ll say that the only condition for a particular action is that the weekday be Tuesday. def add_vote raise ''You cannot vote today'' unless Date.today.wday == 2 ... end In my controller I want to show a
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 :)
...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 really did not expect that we would be on the final ballot, though I am honored that we are. Now, lets do it again, and shock the world :) Please go to Linux Journal and vote for CentOS !!! http://www.linuxjournal.com/article/8272 -------------- next part -------------- A non-te...
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
...L query that is responsible for pulling out all links along with votes from a database: links = Link.find_by_sql( ["SELECT * FROM links LEFT JOIN user_votes ON links.id = user_votes.link_id" + " AND user_votes.user_id = ?", session[:user_id]] ) If a user hadn''t voted for a given link yet, an empty record is returned (NULL). The problem is that when trying to call that unexisting associated object (link.user_vote) Rails attempts to retrieve it from the database. This can result in getting a vote that belongs to another user. Is it possible to disable the l...
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= c(1617,1734,1680,1793,1678,1751,1807,1879)) > votes$YM <- cbind(votes...
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 global voting for this like
2007 Aug 23
0
How to get callee extension in applicationmap(features.conf)
hello, I use trixbox.I had define a feature code testfeature: [applicationmap] #include features_applicationmap_additional.conf testfeature => *3,callee,Macro,vote [featuremap] blindxfer => ## ; Blind Transfer disconnect => ** ; Disconnect Call automon => *1 ; One Touch Record atxfer => *2 ; Attended Xfer testfeature => *3 here is my macro-vote: [macro-vote] exten
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
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. When the listener calls in, a playback tells him:
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 but with a binary dependent variable - so, in effect, two successive probits. Is there a way to do it in R? (Alternatively: a...
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