similar to: capturing stdout

Displaying 20 results from an estimated 130 matches similar to: "capturing stdout"

2009 Dec 30
1
seg-fault... but on what
I got the following after running succesfully through this loop 28 million times... the loop opens text files in a directory and inserts line by line into a database... *** caught segfault *** address 0xc0000010, cause 'memory not mapped' Traceback: 1: .getGeneric(f, where, package) 2: getGeneric("coerce", where = where) 3: as(obj, "integer") 4:
2009 Dec 21
2
Closing files after using write
When I run the following code in a loop I get an error after about 125 times saying too many open files... if(inherits(atmpt, "try-error")){ output <- paste(yahooSymbol,"\n",sep="") write(output, file = "data", append = TRUE, sep = "") } else { I've tried various things to close the file after write opens it, and
2009 Dec 28
4
Accessing members
Consider the following.... > fileLines V1 V2 V3 V4 V5 V6 V7 V8 1 AB 20091224 156.0 156.0 154.00 154.00 55 1198 2 AB.C 20091224 156.0 156.0 156.00 156.00 0 0 3 ABF10 20091224 156.0 156.0 156.00 156.00 55 444 4 ABH10 20091224 156.0 156.0 156.00 156.00 0 749 5 ABH11 20091224 157.2 157.2 157.20 157.20 0 0 6 ABH12
2011 Jan 23
1
Plotting multiple xts/zoo time series on a single plot.
So I've got a 154 column wide xts time series object and I want to plot the 154 series on a single plot and have the added benefit of the time series dates on the x axis. Any suggestions for plotting functions, maplot works but does not give dates on the axis and I can't seem to get plot to give me more than one series. Nick [[alternative HTML version deleted]]
2009 Dec 28
1
accessing members of a data.frame
I have the following code fileList <-list.files(path = ".", pattern = "[^a-z].txt$", all.files = FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE) for (x in 1:length(fileList)){ fileLines <- data.frame(read.table(fileList[x])) print(string) } the lines of the file all have the following format... AB,20091224,156,156,154,154,55,1198 Can I access
2011 Jan 22
1
Plotting by factor with xts
Hi all, I've got an xts time series of stock symbols and closing prices. > head(x) symbol close 2010-01-04 "AFB" "13.46" 2010-01-04 "AKP" "12.80" 2010-01-04 "APX" " 8.78" 2010-01-04 "AYN" "13.15" 2010-01-04 "BAF" "13.50" 2010-01-04 "BBF" "12.86" >
2010 Aug 14
1
Simple problem with lm/predict
Hi all, I've got an xts time series with monthly OHLC Dow Jones industrial index data from 1980 to present, the data is in stored in x. I've done an OLS fit on the data in 1982::1994 and stored it in extrapolate1 (x[,4] contains the closing value for the index). > t3 <- seq(1980,1994,length = length(x["1980::1994",4])) > t4<-t3^2 > extrapolate1 <-
2009 Dec 29
3
error logging
Yet another question... I'm wondering if there is a built in facility to log errors. I've got this statement that gives me verbose DBI errors as they come up (to standard output), but I'd like to trap and log them to a file as I running about 3000000 sql statements through this particular piece of code and I'd like to keep the loop going and deal with all the errors once the
2010 Feb 02
1
Subtracting time series
Hi all, I've got a time series object (xts) called table. Table contains closing price and volume for each market day of 2009 on a given equity. I'd like to get another xts object, say table2, that contains for each market day holds the close of that day minus the close of the day before and the volume of that day minus the volume of the day before. So table2 <- table[x,] -
2011 Feb 13
1
xyplot text sizing
Hi all, I'm using xyplot(closingDataXTS) To get a page with any number of seperate plots on it (as many plots as columns in closingDataXTS). Each plot is named according to colnames(closingDataXTS). I would like to control the size of the text each plot name appears in. I've seen a number of solutions for similar problems that point me in the direction of trellis.par.get and
2010 Jun 22
1
Labels for matplot x axis
Hi all, I've been messing with this for a while now.. myStudy is a matrix of word frequency to date of document/document. As you can see I'm trying to plot the series in the matrix. I'd like three things -- 1- In the plot that gets created the first series is a solid line, the rest are dashed... how do I make them either one or the other. 2- The legend that comes up has filled boxes
2004 Apr 01
5
DNAT PPTP questions
I have two/three PPTP servers on my network and each one of them are on their own subnet and I want to be able to send traffic to each and everyone. My rules file entry is as follows DNAT net loc:1.1.1.1 tcp 1723 DNAT net loc:1.1.1.1 47 and DNAT net loc:2.2.2.2 tcp 1723 DNAT net loc:2.2.2.2 47 however all the traffic only goes to 1.1.1.1 because its the first DNAT entry. I tried the
2010 Aug 21
1
Help Choosing Start Values for nls
Hi all, I'm trying to do a simple curve fit and coming up with some interesting results I would like to get comment on. So as shown below, tsR is my explanatory and response is... well... my response. This same data in gnumeric gets fitted with the curve "response=10078.4 + 1358.67 * ln (explanatory - 2009.07) So I'm using nls with the start values supplied by gnumeric. in
2009 Sep 11
4
question on wget
Hello, I've got an ftp site, not mine, that has content on it that i want to download. It's not anonymous so it requires a log in. The problem is either the ISP has a bandwidth throttle or the admin does, in either case inconsistently as to the point in the file, but i rarely get a complete download. I'm using ncftp. I was wondering if either ncftpget or wget could do like an auto get
2014 May 01
1
Terminal settings
So this has been bugging me for a few years now and I can always "fix" the problem, but I don't know if that's actually the correct way. So the issue is terminal emulation. I use Secure CRT (vandyke.com) to connect to any and all of my servers through SSH. Whether the terminal is set to 'linux' or 'xterm' makes no difference, I always get this output when I run a
2004 Feb 25
1
authenticating from another samba server
Hi, I have a server, snap1 10.8.5.10, that runs samba, and have users created by using useradd (but not added them to snap1's smbpasswd). I'd like for users on our primary samba server, archives1 10.8.5.2, to be able to type in \\snap1\username in windows and have the snap1 server take them to their home directory on the snap1 server, but athenticate the users against
2003 Jan 23
3
Error message
Hello when i get this message what is wrong: /PTS.0.db2inst1.NODE0000.CATN0000.20030123062324.001: Value too large to be stored in data type Regards Boris -------------- next part -------------- HTML attachment scrubbed and removed
2003 Mar 28
3
make check still fails with 1.7.0beta (3/27/2003)
Dear R-devel, I grabbed 1.7.0 beta from today. "make check" still fails at base-Ex.R. The last few lines of the output are: > lsf.str()#- how do the functions look like which I am using? Error in exists(nam <- nms[i], envir = envir, mode = mode) : F used instead of FALSE Execution halted Looks like the same problem as before, but at a different place. Mandrake Linux
2010 Apr 02
3
copy source of ftp
how could i copy all content of a ftp directory from ftp via console to cent os 5.4 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100402/b2ba369a/attachment-0003.html>
2004 May 13
3
recommend a Linux based TFTP server
Hi, can anyone recommend a Linux based TFTP server to go on an asterisk box? Thanks in advance Robb