similar to: create table from within rails?

Displaying 20 results from an estimated 50000 matches similar to: "create table from within rails?"

2005 Dec 14
2
new server: NT_STATUS_LOGON_FAILURE
I've googled, RTFMed, and I still can't fix this. Hoping someone here can offer a suggestion. I'm learning, so please explain a little if you can. I installed samba on a Ubuntu 5.10 machine (named mog). My XP machine "sees" it, but the username/password dialog fails. I've traced it down to what I think is an authentication problem: mat@mog:/etc/samba$ smbclient -L
2006 Feb 19
2
instance variables in components not read by component view?
Hi, I''m trying to write a sidebar menu with dynamic menus, and to do so I would like to define a list of menus to display within my sidebar component controller code and pass that list to the component display view, like so: # menu_controller.rb class Sidebar::MenuController < ActionController::Base uses_component_template_root @menus = %w{admin user help} def display
2011 May 24
2
plotting single variables common to multiple data frames
Hello all, I have files (see attached) which are created daily. I want to load about a weeks worth of them (7 daily files) and plot a weeks worth of one variable together. So one variable name is delta_D_H. I would like to plot this variable from all 7 days on one plot. I'm having trouble figure out how to do this. I've loaded them all up using this time=Sys.time() t1<-
2007 Apr 10
9
Xen and ACPI Sleep
Hi, I am currently testing Xen on my laptop and was wondering if there was any way to enable ACPI sleep so that I can resume sessions when I''m on the go. Is this possible? If so, could you please highlight how to achieve this? Thank you. -- Mathew Brown mathewbrown@fastmail.fm -- http://www.fastmail.fm - Access all of your messages and folders
2012 Jul 13
1
R combining many vectors of predictable name into one date frame
G'day R (power) users, I have a many vectors, called: ib1 ib2 ib3 ... ib100 and I would like them in one data frame (df) such that: > df ib1 ib2 ib3 ib4 ..... ib100 x x x x x x x x x x x x x x x I have attempted: hold.list <- list(objects(pattern="ib")) df <- data.frame(hold.list) but that
2005 Dec 17
1
Using smbmount in a script - no return value
I'm trying to periodically mount an XP share on my linux box, and I've noticed that smbmount doesn't return a value so I can't test for success in my shell script: #!/bin/bash smbmount //NonsenseShare /bad/mnt/point || echo "error with smbmount" In this case smbmount silently fails. I searched the archives and found a couple of messages about smbmount demonizing
2005 Mar 01
2
Problem with 3.0.10 and 3.0.11 with 1 smbd process using 99% cpu
I've been having problems since updating to samba 3.0.10 on Debian 3.1 Below is the output of ltrace and gdb on the offending smbd process. I tried upgrading to 3.0.11 and the problem still exists. Anyone have any suggestions? [ltrace output] After about 20 seconds on the processes ltrace loops this iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 __errno_location()
2011 Mar 08
1
repeat matrix column within each array third dimension
Hello all, I'm working with a matrix that will have varying dimensions. It will populate an array such that the number of matrix columns will determine the number of 3rd dimension levels of the array. Rows will be the same for both. For this example lets say the array will have 2 columns, but that's not fixed. dim(arr)<-c(dim(mat)[1],2,dim(mat)[2]) I wish to repeat each matrix
2007 Apr 01
2
Weird extension behavior
Hi, I'm using Asterisk with two Cisco 7960 phones using SIP. I'm seeing the following weird behavior: SIP Phome 1 is extension 4002 SIP Phone 2 is extension 4003 I call 4002 from 4003 and that works fine. I call 4003 from 4002, and it rings locally to 4002, never gets to 4003. I'm able to send a config query packet to 4003 from the asterisk console and get a response, when I send
2013 Feb 08
2
write.table and append
Hi, I am trying to append tables on file with this sample code: for(i in 1:2){ mat <- data.frame(sample(1:30,9),3,3) colnames(mat) <- letters[1:3] ifelse(i == 1,write.table(mat,paste('test.txt',sep=''),row.names=F), write.table(mat,paste('test.txt',sep=''),row.names=F,col.names=F,append=TRUE)) } However,
2005 Sep 23
1
Play sound on connect
Hello A calls B, on connect I want B's greeting to be played to caller A. I can see it is possible to play a sound to B on connect (DIAL(SIP/123 ,A(hello)), but I cant se how to play a sound to A, is this possible? Thank you Michael
2007 Apr 14
1
"HTTP Connection Timeout" Trouble with Cisco 7960 Phone
Hello, I'm using two Cisco 7960 phones currently loaded and showing Firmware POS3-07-4-0 (Version 7.4?) and I'm having a strange problem. Whenever the phone is supposed to try to load anything over HTTP from my Apache 2.2.x web server, the connection just sits and times out. Nothing shows up in the Apache logs unless I hit cancel. What could the trouble be? -- Mark P. Hennessy
2011 Aug 21
1
Multiple R linear models into one Latex table
Dear community, I had been looking for an easy way to produce latex tables from R output. xtable() and the package apsrtable produce good outputs but they are not exactly what I was looking for. I wrote this code that generates regression tables from multiple R linear models. I want to share it because it might be useful for someone else, and because I would appreciate comments on how to
2006 Jun 15
4
help with table partition
Hi, I have a test_table where the dim is 62220 by 73 (row by col) I would like to partition the rows into 170 equal parts (170 tables where each is of dim 366 by 73), and rearrange them horizontally. The source codes I have: for (i in 1:170) { c = cbind(c,test_table[(367*i+1):(367*(i+1)),2:73]); } Unfortunately, using for loop and cbind for a table of this size
2005 Mar 31
1
Contingency table: logistic regression
Hi, I am analyzing a data set with greater than 1000 independent cases (collected in an unrestricted manner), where each case has 3 variables associated with it: one, a factor variable with 0/1 levels (called XX), another factor variable with 8 levels (X) and a third response variable with two levels (Y: 0/1). I am trying to see if X1 has an effect on the relationship between X2 and the
2011 Jul 21
2
Latex Table Help on R
Hello everyone, Peter (see my earlier post) recommended the following script for finding the means and standard deviations and putting them in table form. However, I would like the standard deviations under the means in brackets. Can anyone check this code to see how this can be adjusted? library(xtable) dataset1 = matrix( c(1,2,3,4, 5, 6 ), 2 , 3) dataset2 = matrix( c(4,3,5,10, 1, 0), 2, 3)
2010 Apr 05
2
find the "next non-NA" value within each row of a data-frame
#I wish to find the "next non-NA" value within each row of a data-frame. #e.g. I have a data frame mydata. Rows 1, 2 & 3 have soem NA values. mydata <- data.frame(matrix(seq(20*6), 20, 6)) mydata[1,3:5] <-  NA mydata[2,2:3] <-  NA mydata[2,5] <-  NA mydata[3,6] <-  NA mydata[1:3,] #this loop accomplishes the task; I am tryign toi learn a "better" way for(i
2003 Jun 20
2
Compiling Linuxthreads
I'm trying to compile Linuxthreads from ports on my FreeBSD 4.8 system here, and for some reason I keep getting this: You can use an experimental patch to reduce the number of condition variable triggered context switches by defining WITH_CONDWAIT_PATCH Some unsafe calls to exit() can be detected by defining LINUXTHREADS_DETECT_UNSAFE_EXIT, see files/README.FreeBSD for more info. ===>
2017 Jan 19
2
Error en loop anidado con data.table
Hola tengo una tabla de tipo data.frame "datos" con la siguiente estructura, simplificada en número de niveles por variable, para crear un ejemplo más sencillo: id anio t_8a t_10a t_12a rankf8 rankf10 rankf12 1 1 100 220 220 NA NA NA 2 1 140 350 350 NA NA NA 3 2 55 165 165 NA NA NA 4 2 60 200 200 NA NA NA 5 2 100 NA NA NA NA NA 6 3 NA 350 350 NA NA NA También tengo una matriz,
2011 Oct 27
2
Trying to create a function to extract values from a matrix
My issue seems simple but I can't find any method to work... I've got a matrix with 4 columns and I want to extract the values from each row to make a new 2x2 matrix for each row. From these resultant matrices, I want to get the Eigen Values and output them from the function as usable numbers (not a text string). Here's the function... ### Ef = function(MAT) {for(i in