Displaying 20 results from an estimated 1000 matches similar to: "Basic Q: Please help with iterating through an AR.find result"
2006 Nov 04
0
Need help with iterating through a ''find'' result
I am working on a site that has Forums. There are two tables that track the
users on this site. One table ''Users'' is basically the table for the
salted_authentication generator. The next table, ''ForumMember'' tracks each
user''s status in each forum. ForumMember contains a foreign key to Forum,
and to User.
I have a main page in which I list all the
2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on
netfirms.com. I was perusing their knowledge base and I came upon a
quick-start for something called Ruby on Rails. Since then I have immersed
myself in RoR. I''ve done the tutorials, I''ve purchased the books.
But, I could never get even a sample RoR app to work on netfirms. 500
server errors.
2006 Aug 16
5
Rails theory question, where to put a join query
The is something I wrestle with a bit when I construct joined queries..
Perhaps some experienced insight will straighten this out for me.
Say you have two tables with two models, ''authors'' and ''posts''.
an author has_many posts, a post has_one author.
You need methods to do the following queries:
find_author(postid)
find_posts(authorid)
And you are doing a
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] ==
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
2006 Jul 29
1
zfs discussion forum bug
I started three new threads recently,
"Feature proposal: differential pools"
"Feature proposal: trashcan via auto-snapshot with every txg commit"
"Flushing synchronous writes to mirrors"
Matthew Ahrens and Henk Langeveld both replied to my first thread by sending their messages to both me and to zfs-discuss at opensolaris.org, and Matt did likewise for my second
2009 Nov 10
1
compiling R-2.10.0 on solaris - lib_I_dbg_gen.so.1: version `DBG_GEN_5.1' not found
Hi,
I'm having trouble compiling R-2.10.0 (R-patched_2009-11-02.tar.gz) on
solaris 10 and am hoping for some advice. I'm getting errors about
having the wrong version of lib_I_dbg_gen.so.1 ("version `DBG_GEN_5.1'
not found"), when it gets to the step of compiling recommended
packages (cluster).
I think we do have the right version of lib_I_dbg_gen.so.1 on the
2006 Mar 01
0
Spicy stuff on web development
Hi all,
The link contains a stingy article on AJAX and other somewhat browser
dependant stuff.
http://techrepublic.com.com/5254-6257-0.html?forumID=99&threadID=184332&messageID=1963135&id=2926438
Being a webdev myself and also a diehard perfectionist, I could relate to some
of it.
Let me state that the article does NOT represent my opinion, nor is it to fire
up a discussion!! It
2007 Jan 10
0
[Fwd: zfs discussion forum bug]
I believe concerns like this should go to you?
Bev.
-------- Original Message --------
Subject: [zfs-discuss] zfs discussion forum bug
Date: Sat, 29 Jul 2006 00:03:13 -0700 (PDT)
From: Andrew <andrewee2@yahoo.com>
To: zfs-discuss@opensolaris.org
I started three new threads recently,
"Feature proposal: differential pools"
"Feature proposal: trashcan via auto-snapshot with
2014 Jan 20
0
Grupo de estudio MOOC StatLearning: Statistical Learning
Hola a todos
Siguiendo la iniciativa propuesta por Carlos Gil en la lista de correo
estamos creando/organizando un grupo de estudio en Madrid para seguir el
MOOC StatLearning: Statistical Learning. Para aquellos interesados en
participar en dicho grupo hago saber lo siguiente:
1. En la próxima reunión
<http://r-es.org/tiki-index.php?page=Grupo%20de%20Inter%C3%A9s%20Local%20de%
2008 May 14
0
R and F9
Hi all,
Being the glutton for self-inflicted punishment that I am, I did a clean
install of F9 yesterday. :-)
As it relates to R:
1. Building R from SVN:
R version 2.7.0 Patched (2008-05-12 r45683)
It builds and passes make check all without issue. F9 is using:
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
2. As was noted with F8, the lack of the Java-JavaScript bridge in the
default
2008 Jul 23
1
Q re iterating a process and appending results to output file
Greetings. This is very basic but we can't figure it out. The following
simple code counts how many values land in the "tail" (below a quantile) of
a standardized normal distribution of random numbers. First two commands
are inputs:
> c <-0.05
> i <-2500
Second two commands are formulas I want to repeat many times (sort of like
an Excel/VBA macro) using those same
2004 Feb 03
2
How to build a AR(q)-GARCH(q) process ?
Hello all,
I would like how to modelized a time serie with AR-ARCH process.
It can be used arma and garch functions in tseries package for build
ar process or a garch process, but how can it be modelized a ar-garch
model ?
Thanks
[[alternative HTML version deleted]]
2009 Jun 02
0
Correlation structure in AR(2) and ARMA(p,q)
Hi,
Let theta be the coefficient in AR(1) model, the components of the correlation structure is equal to 1 for times s = t, and theta^|t-s| for t > s.
Could someone do me a favour to give some ideas on the correlation structure in AR(2) model and correlation structure of ARMA(p,q), as well?
Thank you
Fir
[[alternative HTML version deleted]]
2006 Aug 16
5
Dreamhost FastCGI: incomplete headers (0 bytes) errors
Sorry to trouble the list with another Dreamhost problem, but looking
through the archives I see nothing that can solve my problem.
I have installed my app as per
http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Quick_Start_Guide_August_2006
with a symbolic link from my_domain.tld in ~/ to
~/apps/residence/public/
I get the Rails welcome screen. I have uploaded my app directory etc,
and
2008 Mar 15
2
How to use the functions provided by xen?
Hello~~~
I need to use some functions provided by xen, such as xc_vcpu_getcontext(), xc_map_foreign_ranger() and so on. I have find them in the /libxc/xc_domain.c~~~
But I don't know how to use them in my program.
For example, if I need to use the function named printf(), I have to include the header file <stdio.h>~~~
Now, I want to use these functions provided by xen, which header
2007 May 24
9
Mocking, changing method interfaces and integration tests
Suppose we have a method ''foo'' which internally uses another method
''bar''.
Being good BDDers we mock out the ''bar'' method. After all, we only
want to spec the ''foo'' method - actually running the ''bar'' method
means slower, less maintainable and brittler specs. That''s why we <3
mocking,
2006 Aug 18
2
Please help with subclipse in radrails
I''ve been wrestling with this all night, I''m hoping someone can help. I
followed the exact steps in:
http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion
..but when I open a new ''Checkout project from SVN'' in RadRails, it opens up
the second level dirs as the project dirs (ie. app, log, script, etc),
leaving me with a mess of projects.
I redid
2006 Feb 03
1
Only iterating over the middle content_columns?
Standard behavior for the list action is to use content_columns to get
all the fields of a model and then do something with them. I''d like to
ignore some of them and iteratre over the rest. For instance I may have
A B C D ... X Y Z and I''d like to do something special with A and B and
then Y and Z, but in the middle I''d definitely like a loop to say
2006 Feb 15
0
Need help setting up and iterating thru a tree
Guys,
Newbie here. Given the following table named Employee_Links:
ID Emp_ID Parent_ID
-- ------ ---------
1 200 100
2 300 100
3 300 200
4 400 100
5 500 400
6 500 300
I''d like to be able to generate a tree that looks like this:
100
|-200
|-300
|-500
|-300
|-400
|-500
Note that where 500''s Parent_ID = 300