Displaying 20 results from an estimated 900 matches similar to: "Wilcard search"
2013 Mar 05
4
searching model and has_one association
Howdy.
I have these models:
User, field "mundane_name"
user has_one :instructor_profile (may or may not exist)
instructor_profile, field "sca_name"
belongs_to :user
I would like to craft a search on these fields, which is effectively this,
but in one go:
matching_users = User.where("mundane_name ILIKE ?", "%#{target}%")
matching_profiles =
2005 Mar 23
1
Wilcard X100P doesn't hang up when in Voicemail() and calling party hangs up.
Asterisk 1.0.6-BRIstuffed-0.2.0-RC7k is installed
I have a x100p card and it doesn't detect a hangup from the calling
party when going in voicemail(). My PSTN provider is sending open loop
disconnect (voltage decrease for a given moment of time). Actually
Progress Detection is HIGHLY EXPERIMENTAL so it should not be required
to fix this problem. I wonder if disconnect supervision is the
2005 Mar 23
0
Re: [0] Wilcard X100P doesn't hang up when in Voicemail() and calling party hangs up.
Rich Adamson <radamson@routers.com> wrote on 2005-03-23 09:08:
>>
>> I have a x100p card and it doesn't detect a hangup from the calling
>> party when going in voicemail(). My PSTN provider is sending open
>> loop disconnect (voltage decrease for a given moment of time).
>> Actually Progress Detection is HIGHLY EXPERIMENTAL so it should not
>>
2006 Jul 10
3
how to access a model from application.rb
Hi All
How do I access a model from within the application.rb?
What im tying to do is pull some data from a model (news in this case)
that must be displayed on each page within the entire application. I
know I could drop this into each controller, have each view pull it from
the controller, but thats repeating myself...
So whats the best way to do this (as I dont think models are visible
2005 Nov 18
2
help with User.find() and rendering text
Hi all,
I''m trying to do something for a project. Herez what im trying to do.
The user name gets passes from the view to the controller.
On line2: The user name gets displayed.
On line 3: (If this command works the way I think it works, the sad part
is I always get it wrong) anyways, The entry in the data base with the
given user name gets searched and the user info gets stored in
2019 Apr 21
3
FTS delays
On 3 Apr 2019, at 20.30, Joan Moreau via dovecot <dovecot at dovecot.org> wrote:
> doveadm search -u jom at grosjo.net mailbox inbox text milan
> output
>
> doveadm(jom at grosjo.net): Info: Query : ( bcc:inbox OR body:inbox OR cc:inbox OR from:inbox OR message-id:inbox OR subject:inbox OR to:inbox OR uid:inbox ) AND ( bcc:milan OR body:milan OR cc:milan OR from:milan OR
2005 Dec 19
6
custom find methods and pagination
i''ve got several methods in my models i use to find based on certain
criteria...i''ve done this so the controller code is less cluttered, plus the
DRY factor.
example:
class Foo < ActiveRecord::Base
def find_by_something(something)
find :all, :joins => ..., :conditions => ...
end
def find_by_something_else(something_else)
find :all, :joins => ...,
2017 Jun 06
0
integrating 2 lists and a data frame in R
Reproducible example, please. -- In particular, what exactly does C look ilike?
(You should know this by now).
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Jun 5, 2017 at 6:45 PM, Bogdan Tanasa <tanasa at gmail.com>
2006 Mar 10
5
case insensitive search
I am having trouble with a simple gallery search.
I type in a segment of the address and i only
seem to be getting results if I use the correct case.
This is in my Gallery controller:
def search
@gallery = Gallery.find(:all, :include => :property,
:conditions => "address LIKE ''%#{@params[:keywords]}%''")
end
On a different note:
I am having
2019 Apr 21
2
FTS delays
It's because you're misunderstanding how the lookup() function works. It gets ALL the search parameters, including the "mailbox inbox". This is intentional, and not a bug. Two reasons being:
1) The FTS plugin in theory could support indexing/searching any kinds of searches, not just regular word searches. So I didn't want to limit it unnecessarily.
2) Especially with
2006 Jun 19
2
fuzzy search
This may be offtopic to Rails, but what are people doing to find records
based on fuzzy string matches? For example, if you wanted to find a
Person with name "David Heinemeier Hansson" but searched using the
string "Dave Hansson".
Currently I am find_by_sql that calls the PostgreSQL function
"levenshtein(string1, string2)" which returns results with a score
2007 Feb 15
1
mongrel process stopped listening but "phantom thread" still going
Hi,
I run a medium-sized website that uses mongrel/rails in the following
configuration:
-frontend reverse proxy to a cluster of 7 app servers
-each app server runs apache 2.2 with mod_proxy_balancer that balancers
the requests out into a mongrel cluster of 35 servers.
-each mongrel is version 1.0.1
the mongrel cluster config looks like:
port: "1620"
environment: production
address:
2006 Apr 20
7
Rails + postgres case insensitive searches.
Hello all
I am wondering how rails handles case sensitivity in databases. If I
do a Person.find_all_by_name("tim") in mysql I would expect to get
tim, TIm, and Tim. Do I only get tim in postgres?
How do other people deal with this? Do you resort to find_by_sql for
all your postgres queries to get case insensitive results?
2017 Jun 06
4
integrating 2 lists and a data frame in R
Dear Bert,
thank you for your response. here it is the piece of R code : given 3 data
frames below ---
N <- data.frame(N=c("n1","n2","n3","n4"))
M <- data.frame(M=c("m1","m2","m3","m4","m5"))
C <- data.frame(n=c("n1","n2","n3"),
2019 Apr 21
2
FTS delays
Inbox appears in the list of arguments, because fts_backend_xapian_lookup() is parsing the search args wrong. Not sure about the other issue.
> On 21 Apr 2019, at 19.31, Joan Moreau <jom at grosjo.net> wrote:
>
> For this first point, the problem is that dovecot core sends TWICE the request and "Inbox" appears in the list of arguments ! (inbox shall serve to select teh
2006 Mar 21
2
Validation to make sure associations don''t change?
I have a main form representing the model, let''s call that ''Order'', and a
partial displaying its'' OrderLines.
I use the bulk update methods to initialize model objects directly from form
data, leaving validation of business logic to the model. As AR likes to
write stuff before i do an explicit save, I wrap the whole update in a
manual transaction.
This works
2007 Sep 13
3
Templates and undefined variables
Using puppet 0.23.2, I have a template where I wish to do something
like this:
<% if defined? some_variable %>
....
<% end %>
Ideally I''d like to tell these three cases apart:
a) defined to a non-empty value
b) defined to an empty value
c) undefined
However case c) causes problems - in
templatewrapper.rb::method_missing it causes an error to be thrown.
I''ve changed
2017 Jun 06
0
integrating 2 lists and a data frame in R
Hi Bogdan,
Kinda messy, but:
N <- data.frame(N=c("n1","n2","n3","n4"))
M <- data.frame(M=c("m1","m2","m3","m4","m5"))
C <- data.frame(n=c("n1","n2","n3"), m=c("m1","m1","m3"), I=c(100,300,400))
2006 Mar 14
5
Best way to use partial rendering in global layout
I have a global layout in application.rhtml and I''d like to render a
partial template within it.
Currently, I have this:
<%= render (:partial => ''side_nav'') %>
but it seems to be looking in the controller specific view directory.
What is the best way to do handle controller - global partial rendering?
Wes
--
Posted via http://www.ruby-forum.com/.
2013 Jan 04
3
help "reshaping" dataframe
List,
I want to reshape my data, but I'm not sure how to do it... it might be a
simple task, but don't know which package does this.
"occ.data" (see below) is how my original data are arranged, and I know
that with melt() I can reshape it like "y" (see below). However, I just
want to build a matrix like the "y" matrix, but with only 2 dimensions.
Something