Displaying 20 results from an estimated 2161 matches for "vote".
Did you mean:
note
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 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, candida...
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 => en...
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#cre...
2009 Nov 09
3
How can I improve a Ruby on Rails code that hast a lot of SQL as strings?
...items` for MySQL but not for other databases.
- In the same vein, is there a way to get a field name the same way Rail''s
ORM would put it in a SQL query?
- Maybe there''s a way to get both, the table name and the field name in one
operation. I''m imaging something like Item.voteable_id.for_query
=> "`items`.`voteable`".
- How do I escape code to avoid SQL injection when not in conditions? I''m
using the user_id variable directly in a query and although it''s impossible
for a user to put anything in it, I''d rather escape it properly. In...
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 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...
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.
It's...
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
http://xen.org/polls/mirage_incubation_proposal.html
Deadline?
-...
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 link, but only if the user is
allowed to vote. I''m wondering the best way to do this. I think the
best way is to make another method, which I can call from within bo...
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. After indexing, it
take about 3 seconds to execute...
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-t...
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 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&q...
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...
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(vote...
2009 Jan 03
1
AppDB Voting System Wierdness
...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 all the other games. As it is, you can only vote on different versions of it. The combined votes of all the "versions" would be 41, which I think serves to highlight how much a game like this would be nice to get working proberly on wine. Instead its only sitting at a low 17.
Doesn't this seem a bit wrong?
P.S This could be me jus...
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 => s,1,Noop('Macro-vote')
exten => s,2,BackGround(custom/0...
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 i...
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: "Thank you for voting
on song n...
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 -...
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