Displaying 20 results from an estimated 10000 matches similar to: "updating the db 6000 times will take few minutes ?"
2009 May 09
7
does somebody use XCode on Mac for RoR instead of TextMate?
does somebody use XCode on Mac for RoR instead of TextMate? I wonder
how is it compared to TextMate... TextMate uses the default font of
Monaco... the Xcode screenshot on Wikipedia uses Courier... I wonder if
Xcode looks as good as TextMate when the font is changed to Monaco as
well? Thank you.
--
Posted via http://www.ruby-forum.com/.
2010 May 24
2
Two RJS visual effects will happen at the same time?
I was going to change the background of a div from white to red and then
from red back to white, so this is used in an RJS file:
page[:vote_score].visual_effect :highlight, :startcolor => ''#ffffff'',
:endcolor => ''#ffcccc''
page[:vote_score].visual_effect :highlight, :startcolor => ''#ffcccc'',
:endcolor =>
2010 May 13
6
to "loop through" the instance variables of ActiveRecord?
to wrap each instance variable of an ActiveRecord object between "<td>"
and "</td>", is there a way to "loop through" them, at least in the
debug mode, no matter there is getter methods to get them or not, or at
least the ones with the getter methods?
Such as
<% @stories.each do |s| %>
<%= "<tr>" %>
<% s.each_property
2007 Jun 05
7
Chinese, Japanese, Korean Tokenizer.
Hi,
I am looking for Chinese Japanese and Korean tokenizer that could can
be use to tokenize terms for CJK languages. I am not very familiar
with these languages however I think that these languages contains one
or more words in one symbol which it make more difficult to tokenize
into searchable terms.
Lucene has CJK Tokenizer ... and I am looking around if there is some
open source that we
2011 Jul 11
36
has_many and belongs_to association
Hi ,
I want to test the one below but I got the problem
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
in my test
context "test"do
should have_many :phrases
end
in language.rb
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
error is
1) Failure:
test: check has_many and belongs_to
2006 Apr 29
2
Seeing performance problems with has_many :through relation
Greetings all, I am looking for some insight from some of the more
experienced with has_many :through relationships as I am having a hard
time reconciling the performance I am seeing.
I have 2 tables that are linked together via has_many :through
Table 1: urls ( there are about 7,000 records )
2 fields, id and url
Table 2: phrases ( there are about 87,000 records )
2 fields, id and phrase (w/
2006 Apr 24
9
Confusion with expressing many to many relationship
Hi folks, I am in the process of converting an existing non-rails
application to rails, and am not sure what the best approach would be
for specifying the relationship between the two sets of data.
I''ll describe the existing table structures first.
Table 1: Urls
Each url has a unique id and two lists of Phrases, these are currently
setup as varchars with "," delimitation -
2006 Apr 28
9
Q: Timing of render :update in an action ?
Hey folks, am hoping someone can set me straight with a solution to an
issue that has come up involving the timing of rendered page elements in
relation to the completion of an action''s execution.
I have an ror search app which searches through two tables consisting of
7,000 page urls and a table w/ 87,000 related keyphrases within those
pages. Search results can take anywhere from 2
2008 Oct 28
3
Backwards N+1 problem
Hey, i’m running into an N+1 problem, but i don''t exactly know how to
:include in this situation. (controller code is at the bottom).
I''m trying to find all of the highest ranked definitions, and then
render their associated phrases.
A Phrase has many definitions. A Definition has many children
I already have all the info i need stored in @definitions, so this
should only
2005 Feb 28
1
the winbind problem, 'wbinfo -u' have the user but 'getent passwd' haven't the user
I use the winbind to map the w2k PDC users and groups to the redhat9.0,
but a few problem appears,when I run "wbinfo -u"
can list the user but "getent passwd" can't list the user,new created users
in the w2k PDC also appear this problem.why?
example:
[root@honet5 lib]# wbinfo -u | more
GZ+xiangmao
GZ+xiaobinl
GZ+XiaoHongChen
GZ+xiaoliangc
2006 Dec 07
8
crash on repeated search
I have found another crash in ferret; this one just uses a regular
search. It''s similar to an issue reported by Matt Schnitz a while ago,
but unlike his, mine does not go away if I turn off omit_norms. It does
go away if I turn on the garbage collector more often, but I''m not sure
that''s a stable workaround under the circumstances.
This one isn''t a
2006 Mar 29
2
AAH lost my IVR phrases
Hello-
I have a low traffic AAH setup, a few hardphones, a few softphones, 50 calls per day max. I used the AMP Digital Receptionist to
make a simple voice menu: "Thank you for calling xxxx". I did this for both Normal times and After Hours times. It worked fine.
I then went to the AMP Maintenance window, Config Edit, got the "phpconfig for Asterisk PBX" page, and selected
2006 Dec 27
3
Problem with HTTPS ON CENTOS 4.4
Hi all ,
I set up https on CentOS 4.4.
I did the below sets of commands,
first removed existing files
rm /etc/httpd/conf/ssl.key /server.key
rm /etc/httpd/conf/ssl.crt/server.crt
Next, I created key. Change to the /usr/share/ssl/certs/ directory and type
in the following command:
make genkey
then issued below command,
make testcert
finaly
/sbin/service httpd restart
Then I got the
2009 May 26
1
library for URL parameters adding, removing, or replacing?
i think PHP doesn''t have such simple functions yet... does Ruby have
it?
if in PHP, when we add a param to the URL
$redirectURL = $printPageURL . "?mode=1";
it works if $printPageURL is "http://www.somesite.com/print.php", but if
$printPageURL is changed in the global file to
"http://www.somesite.com/print.php?newUser=1", then the URL becomes
badly
2024 Apr 22
2
How to use Xapian Omega directly (i.e., without using `recoll` and `xapiandb`) ... Full Set Of Questions Below:
Dear senior ML members and developers of Xapian Omega,
Mr. Olly has helped me cross the bump of the initial learning curve.
(ref: https://lists.xapian.org/pipermail/xapian-discuss/2024-April/010034.html)
How can I use Xapian Omega directly (i.e., without using `recoll` and
`xapiandb`) to index a directory of text files with all strings
greater than 3 characters, to create an index text file
2008 Mar 27
2
Proper noun stemming
Hi All
I was wondering if anyone had a solution for the following problem.
I user QueryParser to stem my documents before adding them to a
database. During the stemming process I would like to find a way of
keeping proper nouns that span two or more words together as a phrase.
For example "New York" or "Gordon Brown" or "Prime Minister" get spilt
up. I see
2011 Mar 10
1
phrase search highlighting
Hi
Some of my users are very "conservative" as it seems :)
The complained about "not finding anything useful", because the
highlighted sample
was wrongly colored when doing phrase search, e.g. "some word".
So they refused to use web search at all and keep telephoning around.
Not the found phrase was highlighted in one color, but all locations
of these words within
2009 Nov 17
4
fts squat non-english search for 2 words
Hello,
It looks I encoutered a bug or misconfiguration. fts_squat search for subject and body works excellent for English mails. For non-English (in particular, Russian) it works only when query consists of 1 word. Phrases - 2 and more words - always returns nothing. Example: search for "planet" ("???????") returns results, search for "Earth" ("?????") also
2005 Jul 12
11
how to cancel/stop a script.aculo.us effect
I apologise for what is probably a totally noob question here, but I''m at a
loss after pouring over the docs and the source code for prototype and
scriptaculous...
After you''ve started an effect, how do you access it to cancel or change it?
I had assumed it was something like this:
myEffect = new Effect.Appear(element, {duration:1.5});
myEffect.cancel();
... but that
2008 Nov 30
11
rake aborted! undefined method `each' for #<Mysql:
I''m struggling with several problems getting my first time ruby on rails
environment running. I''m now stuck on this problem too.
rake db:migrate generates the following error. This one is on a vista
machine. Anyone seen this before. Any thoughts or advice?
Reading about Ruby on Rails has really got me excited to give it a try.
But in practice getting to the point that I can