similar to: habtm recusive

Displaying 20 results from an estimated 400 matches similar to: "habtm recusive"

2005 Dec 30
5
HABTM with finder_sql problem (Rails bug?)
I''m building an app that needs i18n support across the entire database (i.e. localized attributes). In order to do this I''ve created a special HABTM join table that can be associated with _any_ other table: create table language_strings ( for_table varchar(255) not null, foreign_id int not null, language_id varchar(5) not null, attr_name varchar(255) not null, value text
2002 Oct 29
1
BUG: 2.2.6 and dos recusive filecopy
Hi! I've been using samba for some time now with about 20 users and with remote installation of Windows XP from dos (TFTPboot image with dos network drivers - ms client 1.6c). On all releases (up to, and including 2.2.5) a recursive xcopy (from dos) copied all files normally. When I upgraded to samba 2.2.6, the recursive xcopy (win98 version of xcopy.exe, copying from a mapped drive)
2005 Dec 29
9
Single Table Inheritance
Hi all, Quick question for STI. With the following setup: class Company < AR::Base; end class Firm < Company; end Why does Firm.find(:all) return all Companies, not just those that have type==''Firm''? -- Alex
2005 Dec 27
3
Trouble combining :has_many, :finder_sql and :conditions to create a sub-search
I''m sure there''s something right under my nose that I''m missing. I have two tables with two parallel one-to-many relationships. I wish to use the :finder_sql parameter to essentially ''or'' the two foreign keys. What isn''t working for me is performing a ''sub-search''. Let''s say the tables are "stores" and
2005 Dec 28
9
Idiom question - assertions which aren''t in tests
All, Although I''ve been keeping an eye on Ruby for several years now, I don''t have a huge amount of experience with it. So please forgive me if I''m missing something obvious. I''m in the process of writing my first really "serious" Rails app and would appreciate your advice. I am wondering if there is a standard idiom for including assertions in
2006 Jan 03
1
Another Rails blog entry out of Apress
A short entry, but good words about Rails. http://ablog.apress.com/?p=842 -- thanks, -pate -------------------------
2005 Oct 15
6
FW: Some queueing disciplines that I wrote.
Dear LATRC and devotees, I have developed some Linux queueing disciplines. I developed them for my masters project. You are free to use or distribute my work. Here is the abstract from my dissertation:- This is a project to implement a Mice and Elephants queuing discipline on Linux. My project has three aims. The first aim was to produce a prototype Mice and Elephants router
2006 Aug 18
4
DateBocks v2.0.0 Released
Excert from http://www.nshb.net/datebocks-2-0-0-released Woohoo!! Finally released the next generation of DateBocks (aka DateBox) v2.0.0. This was a long time coming, after its initial version release allll the way back in January, this is a nice edition to the popular tool I released before. This version is chalked full of features. Here is the cut out from the CHANGELOG == 2.0.0 - AUGUST 16,
2003 May 15
2
FW: iHEADS UP: ipsec packet filtering change
> -----Original Message----- > From: Greg Panula [mailto:greg.panula@dolaninformation.com] > Sent: 12 May 2003 11:10 > To: Matthew Braithwaite > Cc: stable@freebsd.org > Subject: Re: iHEADS UP: ipsec packet filtering change > > You don't really need the gif tunnels for ipsec. Gif is more geared > towards ipv4 <=> ipv6 type tunnels. A few of ipsec
2008 Feb 12
1
Random Effects
Hi All: I have a panel data set with i individuals and t time periods for which i am required to estimate the model parameters allowing for Random Effects. How can i go about this in R? Thanks Sam "There would be no heroes if there were no battles or no arduous tasks, and there are no real scholars but those who have fought with circumstances while they studied books." -
2003 May 11
1
iHEADS UP: ipsec packet filtering change
On Sun, 23 Feb 2003 09:47:05 -0800, "Sam Leffler" <sam@errno.com> said: > >> Add a new config option IPSEC_FILTERGIF to control whether or not >> packets coming out of a GIF tunnel are re-processed by ipfw, >> et. al. By default they are not reprocessed. With the option they >> are. > > This may affect your ipfw/ipf rules. If you are happy with
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2010 Jun 23
3
Wilcoxon signed rank test and its requirements
Hi all, I have a distribution, and take a sample of it. Then I compare that sample with the mean of the population like here in "Wilcoxon signed rank test with continuity correction": > wilcox.test(Sample,mu=mean(All), alt="two.sided") Wilcoxon signed rank test with continuity correction data: AlphaNoteOnsetDists V = 63855, p-value = 0.0002093 alternative hypothesis:
2005 Jun 23
1
heatmap not symmetric ?
Dear list, I hope it is not a FAQ, but I searched the archives and Google, and found nothing. The question is simple : I do not understand why, starting from a symmetrical correlation matrix, heatmap produces an asymmetrical image. Best, Charles -- Charles Plessy, Ph.D. - Genome Science Laboratory The Institute for Physical and Chemical Research (RIKEN) 2-1 Hirosawa, Wako, Saitama 351-0198,
2006 Jan 30
4
Logistic regression model selection with overdispersed/autocorrelated data
I am creating habitat selection models for caribou and other species with data collected from GPS collars. In my current situation the radio-collars recorded the locations of 30 caribou every 6 hours. I am then comparing resources used at caribou locations to random locations using logistic regression (standard habitat analysis). The data is therefore highly autocorrelated and this causes Type
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
I am looking at adding the Sentry plugin to one of the applications that we are working on. I have a need to store some info that will have to be encrypted and decrypted. I have been going through the docs for the plugin and the AsymetricSentry class looks like the best for what we need to do but I am not sure how to generate the key. The docs say: This is a shortcut for using an
2009 Jan 13
1
ROR - Excel Export Example
If you are running on Windows you can use create and read speadsheets using the ''win32ole'' require This sample should give you the basic idea ------ def export require ''win32ole'' @sort_by = ''last_name'' current_user = ''steve'' @records = Contact.find( :all, :conditions =>
2006 Nov 12
2
IAX2 one way audio
Experiencing one way audio using IAX2. I did see some other posts on this, and see there may be some internal issues with asterisk and one way audio. Can this be a widespread problem? So many seem to be using IAX, I find it puzzling. Some information points to this being a problem on asymmetrical connections. This is a decidedly asymmetrical connection, with 1.5 Mbs download and 256 kbs,
2006 Dec 14
2
Asymmetrical ANOVA / contrasts
Dear all, I have problems to code contrasts for performing an asymmetrical anova with aov(). I am using aov() because I want to get the Mean Squares for further analyses. I didn't find any solution to my problem in the help files of functions aov(), contrasts(), C(), etc. Let's say I have three locations, one with treatment P, and two with treatment C: >
2005 Dec 27
0
How do I combine :finder_sql and :conditions to perform a sub-search on a custom has_many relationship?
I''m sure there''s something right under my nose that I''m missing. I have two tables with two parallel one-to-many relationships. I wish to use the :finder_sql parameter to essentially ''or'' the two foreign keys. What isn''t working for me is performing a ''sub-search''. Let''s say the tables are "stores" and