similar to: Limit + Conditions = Confusion

Displaying 20 results from an estimated 3000 matches similar to: "Limit + Conditions = Confusion"

2001 Mar 06
8
OpenSSH/scp ->> F-Secure SSH server Problems
Hi, Is there some know problem between the 'scp' client in OpenSSH 2.5.1p1 and F-Secure's SSH 2.4.0 server? The client is running on a Linux (2.2.17) box and server is running on Win2K. When I try to transfer files it asks me for the password (which I provide) then it hangs. Using 'scp -v' didn't provide any helpful info; it's as though the problem happened before
2007 May 02
2
Index update - problems
Hi, Rails 1.2.2 Ruby 1.8.5 Ferret 0.11.4 I have pretty big forum that has 2 columns that are indexed, in addition to this couple more tables with far less data are indexed. It seems that first index update works. Mysqld process takes the idle CPU time, but behaves nicely.. until at some point it takes 99% and doesn''t let other processes use it :) I''m forced to restart mysqld.
2012 Sep 18
2
Formula in a data-frame
Hello all, I'm new in R, and I have a data-frame like this (dput information below): Specie Fooditem Occurrence Volume 1 Schizodon vegetal 1 0.05 2 Schizodon sediment 1 0.60 3 Schizodon vegetal 1 0.15 4 Schizodon alga 1 0.05 5 Schizodon sediment 1 0.90 6 Schizodon
2004 Jul 09
7
IRC channel #asterisk on irc.freenode.net
Hi all! It's great to start with "for dummies" question, but hey, we all have been human infants also =) Problem is, that I can not log on to this channel and I haven't found anything helpful during the past few days either. 1. The irc.freenode.net server gives me "Couldn't look up your hostname" and "No identd (auth) response" followed with
2007 May 18
1
find_by_contents + ''conditions'' returning incorrect results
I''ve read the other threads like this one (http://www.ruby-forum.com/topic/78841) but I''m not sure what I''m doing wrong. Scenario: I need a full text search on financial institutions and to constrain that list by state (=) or states (IN). My lenders model includes a name and a state, among other fields. In my lenders model: acts_as_ferret :fields => [:name] Running
2006 Apr 18
6
lambda, uncertainty coefficient (& Somers D)
Dear colleagues in R, Has anybody implemented the 1) (Goodman & Kruskal) lambda or the 2) (Thiel's) uncertainty coefficient statistics (in the asymmetric and symmetric forms), or is anyone aware that they might reside in some package? A search in the R archives does indicate that they are (somehow) part of the CoCo package, but I would rather not start learning how to transform my
2006 Aug 25
4
using conditions
Hello guys, I''m pretty new to using AAF and am having a slight problem with using a condition. I have the following code @results = SupplierProduct.find_by_contents(params[:search], :conditions => [''area_id = ?'', @area]) and it seems the condition isn''t being applied. Does anyone have any pointers? Cheers, Alastair -- Posted via
2007 May 30
4
aaf and dynamic attrs: a bug?
Hi! I faced some issue while using it for dynamic attrs indexing/search. Maybe I made something wrong. Here is test method. Everything works just fine until last line http://pastie.caboo.se/66274 . Tested on both stable and trunk of aaf and ferret 0.11.4. the short version of code below: Contact.acts_as_ferret :fields => [ :first_name ] assert
2007 Apr 30
1
Can''t search fields with space
Hi, I have a user model that has a city field which is searchable using acts_as_ferret. But I can''t get it to return any result whether I use :city => {:store => :no, :index => :untokenized}, or :city => {:store => :no} in my User model''s acts_as_ferret option >>> User.find_by_contents("city:(cal poly)") =>
2007 Jul 18
5
Strange search result with conditions in find_by_contents
Hi, guys: Strange search result with conditions in find_by_contents! first of all, i''ve installed the acts_as_ferret to my project vender folder by ''ruby script/plugin install svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret'' in my SearchController def searchforum if !params[:doSearch].nil? if params[:searchTerms].nil? || params[:searchTerms] ==
2006 Sep 19
2
acts_as_ferret and Fuzzy Searching
Hi there, I''d like to be able to tune the results of a Fuzzy search in a rails application. I''ve tried setting the following in my environment.rb file. Ferret::Search::FuzzyQuery.default_min_similarity = 0.75 Ferret::Search::FuzzyQuery.default_prefix_length = 2 When I go into the console, I can see those values as the default but when I run a search like
2009 Oct 26
2
find_with_ferret issue
Hi All, I''m implementing the ferret search engine on my railspace project. In my User and Info model, I have line that reads: acts_as_ferret :fields => [''username'', ''email''] This initially generates a find_by_contents which is added to the community contoller: @users = User. find_by_contents(query, :limit => :all) THis returned a method
2006 Aug 25
7
acts_as_ferret with conditions
Hello guys, Having a slight problem with acts_as_ferret, specifically using a condition. I have the following code @results = SupplierProduct.find_by_contents(params [:search], :conditions => [''area_id = ?'', @area]) and it seems the condition isn''t being applied. Does anyone have any pointers? Cheers, Alastair ------ Alastair Moore Standards compliant web
2006 Jun 08
3
Reading in a table with ISO-latin1 encoding in MacOS-X (Intel)
Dear colleages in R, I have earlier been working with R in Linux, where reading in a table containing Scandinavian letters ("?", "?", and "?") in the header as part of variable names has not caused any problem whatsoever. However, when trying to do the same in R running on new MacOS-X (with an Intel processor) with the same original text table does not seem to
2006 Nov 27
2
find_conditions in acts_as_ferret find_by_contents
Hi all, Every time I try to add options for the find_conditions argument of find_by_contents I get the following: a = AnnotatedLink.find_by_contents(''test'', {}, {:conditions => ''category_id IS NOT NULL''}) >> NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while
2007 Jun 15
2
indexed ''text'' (not string) column not used when searching, unless explicitely specified!!
Hi all, I''ve included a mysql ''text'' column in my index, and aaf/Ferret doesn''t use it when I search, UNLESS I specify it as a restrictor, and then it only searches in that field! For example: => 0 results are returned by a standard (__all__ fields ?) search >> Entity.find_by_contents "zixi" Query: zixi total hits: 0, results
2007 May 02
4
Wrong total_hits when using conditions in find_by_contents
In my model Topic: acts_as_ferret({ :fields => {:username => {:store => :yes, :boost => 30}, :subject => {:store => :yes, :boost => 20}, :body => {:store => :yes, :boost => 10}}, :remote => true }, { :analyzer => Ferret::Analysis::RegExpAnalyzer.new(/./, false) }) def self.full_text_search(q, options = {}, find_options = {}) return nil if q.nil? or
2008 Jul 17
2
Replacing custom kernel with another - with same identifier
Hi list, I just finished building a custom kernel from 2.6.18-53.1.21 source rpm - this time with ISA bus and ISAPNP support which I accidentally left out of my previous attempt. Unfortunately, this time I forgot to change my identifier in kernel-2.6.spec file. Thus I now have one *installed* kernel version *without* ISA support, and another one *with* ISA support but as rpm, not yet installed.
2007 May 25
1
how to update index with acts_as_ferret?
Hey all, I have movie has_many :medias and media belongs_to :media this is how my movie class looks like: class Movie < ActiveRecord::Base has_many :medias acts_as_ferret :fields => [:title,:medias_name] def medias_name return self.medias.inject("") {|name,m| name + " " + m.name} end end when I do Movie.find_by_contents("title:bob") it does return a movie
2013 Dec 18
1
Fwd: Bad \usage lines question
Dear colleagues, In checking a function I am adding to an R package, I get the following warning pair: ... Bad \usage lines found in documentation object 'nominal': "\\method{print}{nominal}"(x, max.print = 10, posthoc = "std.pearson.residuals.sign", assoc = ifelse("univariate" list(c("N", "alpha.X2",