Displaying 20 results from an estimated 110 matches similar to: "subtract a list of vectors from a list of data.frames in an elegant way"
2006 Feb 23
9
Balancing multiple connections and NAT
Hi,
I have a client connected to the ''net through 3 ISP''s. Have set up a
Linux box to do routing and load sharing for the 3 connections. A
fourth interface is connected to the LAN with private IP addresses.
Am using iptables to SNAT traffic to the appropriate IP depending on
the interface the packet gets routed onto. The setup looks something
like this:
Interface IP
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all,
I have two comboboxen, comboA is popultaed when :controller/list is
retrieved first time.
When comboA is selected, I want to auto-populate comboB (modelB belongs_to
modelA).
The population of tableC (modelC belongs_to modelB and belongs_to modelA)
should not populate until a "GO" button is clicked (link_to with submit).
Help? I need an example of how to filter the post
2007 Dec 18
4
Using MysqlPool Application 1.4
Hi,
Since I've upgraded to Asterisk 1.4 I can't use a MySQL database anymore
for select queries :-(
I'm using dbquery from MysqlPool Application 1.4 and selecting something
from a table returns nothing even if I try to do a query like
"SELECT 1;"
Is anyone in the same troubles ? Do you advice me another solution to
connect to my database ?
For information, I'm using
2008 Nov 13
5
database queries from extensions.conf
Hi!
What is the preferred way to make database lookups from within the dialplan?
I only know the MYSQL function from asterisk-addons. Are the other
methods too? (e.g. for postgresql, unixodbc)
thanks
klaus
2010 Aug 19
1
Composite primary keys and :joins=>
I have a legacy db with the following simplified structure:
Table-A:
type_key, code_key, name, ... # PKs are type_key and code_key,
there is no id col and I cannot alter this db
Table-B: # each row has only the code as a foreign_key, the type_key
is hard-coded to "FOOKEY"
an_id, code, ...
Models:
class TableB < AR::Base
set_table_name ''table_b''
2006 Jul 14
3
compare two tables and find the difference?
I need to compare a column in TableA to a column in TableB and then
select 3 columns from TableA for all the records in TableA that don''t
exist in TableB.
TableA and TableB are different but do have one field in common that i
am comparing. The tables are not related in anyway.
right now I have a find_by_sql query located in a model that looks like
this:
def self.absent_charges
2007 Jul 30
3
SortHelper problem
I have TableA with name, description, start time displayed on one page.
TableB has name, comment, file path and is displayed on another page.
I''m using the SortHelper2 helper to help me sort the columns of these
tables, however I''m experiencing a problem whereby if I sort TableA by
description and then go ahead and view TableB I get an error message
saying SQL Command Failed,
2006 May 15
0
Insert database into two tables.
Hi All,
I have problem with inserting new record into the database.
I have a form has 4 fields, and two fields will be inserted into tableA,
and other fields will be inserts into tableB.
These two tables has relationship tableA(One) and tableB (Many) ...so
how could I do that?
Socheat Yi
Web Programmer/Software Developer
Screened Images Multimedia (SIM)
*If You Can Imagine It...We Can
2005 Dec 02
1
Bug with Postgres and/or HABTM?
Hello list,
I think I''ve found a bug in the way Rails is talking to my Postgres DB
when recording HABTM data.
My join_table looks like this:
id serial primary key,
tablea_id integer references tablea(id),
tableb_id integer references tableb(id),
other_attributes...
When Rails writes to join_table, I''d expect it to do something like:
INSERT INTO join_table (tablea_id,
2002 Nov 14
0
WIN 3.1 App crashes.. Unhandled Exception
The program is Atwin.exe (Accuterm) and going back to the 3.1 version as it's
reliance on Windows specific .dll's is better than recent versions...
However, I get as far as the initial splash screen and nothing.. If I hit the
enter key twice it continues running for a bit, and then hangs..
When I run a trace, I get the following:
Can anyone see at a glance if this is a bug, or just a
2007 May 17
0
Compiling DBQuery
Has anyone tried to compile the current version of MySQLPool from http://www.yosd.at <http://www.yosd.at/> against Asterisk 1.4.4?
It seems to not compile...
[root@itsentinel res_mysqlpool]# make
gcc -pipe -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -I/usr/local/mysql/include/mysql -D_REENTRANT -D_GNU_SOURCE -O6
2010 Sep 22
1
agregar valores a una tablea de SQL
Hola a todos
Estoy aprendiendo a trabajar con el paquete de RMySQL, y a la vez con bases SQL,
así que a lo mejor no es tan complicado.
Quiero agregar valores, que genero en R, a una tabla de SQL más o menos la idea
es:
> ssql<-"INSERT INTO tabla1 (variableA, variableB) VALUES
(''valor1'',''valor2'')"
> dbSendQuery(conec, ssql)
pero
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find
them. However, i''m trying to fix this one, i cant seem to get it to work.
I have two tables A and B that have a one-to-one relationship. Table B
belongs_to Table A. Table A has_one Table B. I''m creating instances of
Table A in different places, depending on the controller. However, for each
2011 Dec 26
1
regarding QRb() function
Error in `[.data.frame`(x, order(x, na.last = na.last, decreasing =
decreasing)) : undefined columns selected during the execution of
following r sequence of commands
X<-subset(data,select=c(V1,V2,V3,V4,V5,V6,V7,V8,V9))
y<-subset(data,selcet=10)
Data = list(y=y, X=X, p=.75)
Prior = list(betabar=c(rep(0,ncol(X))),A=.01*diag(ncol(X)))
Mcmc = list(R=100000, keep=10, step=.2)
out <-
2007 Aug 30
0
Help with acts as paranoid
Hello,
I am using acts as paranoid which works great. But I have the following
problem. I have table a which has a has_many :tableb, :dependent =>
false relationship with table b. If I delete something in a and then try
to edit a field in table b I get an error because it says the data does
not exist so it doesn''t allow the update. I understand of course why
this happens but I
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2004 May 24
1
RMySQL problem
Hi,
I'm using R 1.9.0 with RMySQL 0.5-4 and MySQL 3.23.55 on a suse 8.2 box.
I have a simulation study and (as usual for newbies in simulation, I
guess) I have a lot of data that I want to store in MySQL. I want to
write an R script that reads data from RData files and writes it to a
MySQL database.
I read some R documents (R Data Import/Export and DSC papers) but I'm
finding
2001 Nov 26
0
Computer Based Training programs
Hi,
I was wondering if anyone has gotten a CBT type program working under
wine? I have tried it with wine (recent version from CVS -- downloaded
in rpm format), however the best I get is the inital window coming up
listing the differnt lesson - but when I selcet one the window goes blank
and the program doesn't do anything else. I dont' get any error messages
from wine (aside from the
2003 Feb 27
1
Routing for multiple uplinks/providers
Hi, I read the howto of iproute, I have the same case with HOWTO, the
difference is that the whole incoming traffic goes through interface 0, the
other difference is that I do not want to balance the out going traffic,
because I have specific networks to take it throughout another interface.
Mi Case
IF1 --> Input and Output
IF2 --> Only aoutput for three Network
I need Help, How can I
2012 Mar 28
1
Is it possible to de-select with sqlQuery from the RODBC library?
Dear R-list,
I'm queering a M$ Access database with the sqlQuery function from the RODBC library. As I cannot make a working example with a database here is an illustrative example,
library(RODBC)
mdbConnect<-odbcConnectAccess("S:/data/ ... /databse.mdb")
data <- sqlQuery(mdbConnect, "select id, DOB, V1, V2, ..., V1009, V1011, V1013 from someTable")
I want