search for: othertable

Displaying 6 results from an estimated 6 matches for "othertable".

2006 Jan 24
2
NULL id''s / invalid references
Hi, could you suggest me how to handle this in a proper way? I have a table which has othertable_id column (relationship is belongs_to) Problem is, that sometimes there is a NULL value and table.othertable.foo returns an error... what should I do about it? change something in model? in view? or just add "unknown" row to othertable and update table.othertable_id with id of this r...
2007 Aug 30
1
belongs_to with foreign keys that reference non primary key columns
...ello, I have a situation where the foreign key into a table doesn''t correspond to that table''s primary key: my_table ------------- id (pk) name ... other_table -------------- id (pk) my_table_name (fk references my_table(name)) ... I want to be able to say something like: class OtherTable < ActiveRecord::Base belongs_to :my_table, :foreign_key => { :my_table_name => :name } end OtherTable.find(:first).my_table Is this possible? If not, what is the reasoning behind the decision? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message b...
2003 Jun 09
21
shorewall + tos + netbios
Hi Tom, How are u? hehehe I have a question. I have 2 pc with redhat 9.0 configured with ipsec freeswan 1.99 (vpn) and i have to tranfer file from one to the othert one. I see that ftp tranfer have a throughtput is the double than a netbios tranfer... why??? I supposed the problem is the TOS.(/etc/shorewall/tos) and i modified the file like ftp... in this method. #SOURCE DEST
2003 Feb 17
1
R environment advice?
...nect to a database, load several database tables into matrices in R, strip the columns out of those matrices and do some minor tabluation...for instance: channel <- odbcConnect(yada, yada, yada) surveyresults <- (channel, select * from sometable) multiresults <- (channel, select * from othertable) multiresults.columnname <- multiresults[,1] # or column 2 or 3 or 4 or so on... multiresults.columname.table <- table(multiresults.columnname) etcetera, etcetera. I would like to create a single file that I could share that would load this environment up for a new R user for this datas...
2011 Sep 17
0
joining and array with a table in ActiveRecord
...a table like this: def mytags Taggable.joins("JOIN taggables as filter ON taggables.tag_id = filter.tag_id WHERE filter.taggable_type = ''User'' AND filter.taggable_id = 1").all end this works perfectly fine. then I want to join the result on another table, where OtherTable.joins(@mytags) works also fine BUT I want to join on two other colums and NOT on the ids.... Can anyone tell me how to do this? thx -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To p...
1998 May 26
0
Re: Beware of dangerous enviroment (Re: Overflows in minicom)
On Sat, 23 May 1998, Torkil Zachariassen wrote: > >I have browsed various versions of libc and found a handful of weak points > >where the value of an enviroment variable is trusted more than necessary. > [1] > Could you explain to programming novices on linux-security - people like > myself 8) - hwo this could affect security on a firewall (proxy and/or > IP-router,