search for: filedata

Displaying 20 results from an estimated 27 matches for "filedata".

2011 Jul 12
0
[PATCH] pxelinux: open_file() returns a non-negative handle
...ux.intel.com> --- core/fs/pxe/pxe.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index f0f8b61..d689e61 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -1065,7 +1065,7 @@ static int pxe_open_config(struct com32_filedata *filedata) get_prefix(); if (DHCPMagic & 0x02) { /* We got a DHCP option, try it first */ - if (!open_file(ConfigName, filedata)) + if (open_file(ConfigName, filedata) >= 0) return 0; } @@ -1077,13 +1077,13 @@ static int pxe_open_config(struct com32_filedata *...
2006 May 22
5
download manager?? anyone?
Hello all, i have been searching for some time now on how to upload files and then display them to be downloaded, haven''t had any luck. it seems all the documentation is for uploading and displaying pictures. is this the same thing? i''m lost... any help would be greatly appreciated. Jon -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
2
Dealing with missing values in HeatMap generation
...generate a heatmap for my data (in a matrix). However, the data has some missing values (represented as blank). I get the following errors (with the blanks and with blanks replaced by NA and including the option rm.na = TURE): > filename = "input_heatmap.txt" > g <- as.matrix(filedata) > fg <- rainbow(nrow(g), start=0, end=.3) > gg <- rainbow(ncol(g), start=0, end=.3) > hg <- heatmap(g, col = cm.colors(256), scale="column",na.rm = TRUE, + RowSideColors = fg, ColSideColors = gg, margin=c(5,10), + xlab = "Average per Species", ylab= "...
2013 Nov 04
1
A warning message generated from 'read.csv'
Hi, I'm using R version 3.0.2. While I executed the following command filedata <- read.csv(file, header=TRUE, colClasses="character") I got the warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines,  ... : EOF within quoted string I'd like to know what this means? And how shall I fix the problem? Thank you for your help. Best, Chia-Ch...
2014 Oct 15
1
syslinux efi configuration file name proposal
...-Klaus A simpler patch for just the config filenames (whitespace changed for email): diff --git a/core/fs/lib/loadconfig.c b/core/fs/lib/loadconfig.c index 95e6f3f..47101f9 100644 --- a/core/fs/lib/loadconfig.c +++ b/core/fs/lib/loadconfig.c @@ -22,6 +22,11 @@ int generic_open_config(struct com32_filedata *filedata) }; static const char *filenames[] = { "extlinux.conf", +#if defined(__FIRMWARE_EFI64__) + "syslnx64.cfg", +#elif defined(__FIRMWARE_EFI32__) + "syslnx32.cfg", +#endif "syslinux.cfg", NULL }; --...
2010 Dec 06
1
help getting data in correct format
>> Dear All, >> >> I am having trouble getting my data into R as i need it! I am used to using read.delim("") to open .txt files to do work on. The function i am using requires a matrix like the one below. >> >> My data is from excel and then saved as a txt file. I have tried the usual read.delim("") approach but the function doesn't like it, i
2011 Jan 21
3
File Column open tmp file
Does anyone know how to open a file like the below? "Filedata"=>#<File:/var/folders/9D/9D8PtWGBFgmSvF-Ue+uD9++++TI/-Tmp-/RackMultipart20110121-7108-6aqdij-0>} file_column is used to upload a document and i need to open it just with the information above, Any ideas? JB -- Posted via http://www.ruby-forum.com/. -- You received this message...
2014 Feb 24
3
[RFC, PATCH] core/pxe: Add architecture-specific discovery request for PXE config file
...$(wildcard $(SRC)/thread/*.S))) +CFLAGS += -D__EFI__ endif COBJS = $(filter-out $(FILTER_OBJS),$(COBJ)) diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 4de4dbf..5cc9082 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -471,6 +471,11 @@ static int pxe_open_config(struct com32_filedata *filedata) tries--; }; + /* Try by client architecture */ + sprintf(config_file, "arch-%04x", ntohs(DHCP_CLIENT_ARCH)); + if (open_file(ConfigName, O_RDONLY, filedata) >= 0) + return 0; + /* Final attempt: "default" string */ strcpy(c...
2011 Jun 02
1
Problem to execute a function loading by my package that I created
...e of my package is SGeMS. In my package, I have a big program writed in C++. This program compiles in C++. I put this program in SGeMS/src. In my program, I added a header file and a source file named respectively CreateFile.h and CreateFile.cpp. CreateFile contains 5 functions : File, FileGeneral, FileData, FileVariogram and FileDistribution. I use the package Rcpp to compile this. So in CreateFile.h, I added 'RcppExport' in front of all the functions. I compiled my package with R CMD INSTALL SGeMS. The compilation works. In R, I put : > library("SGeMS") Loading required packag...
2002 Jun 13
1
problem with read.fwf
Here is an example of the data I'm reading in using read.fwf: 5342.0 5450.4 0.9200 0.4506 34.7030 27.8411 37.1306 46.0034 0.0000 5438.0 5549.6 0.9300 0.4477-34.7280 27.8616 37.1506 46.0234 0.0000 And the commands I'm using to read it in: widths <- c(7,7,8,8,8,8,8,8,8) filedata <- read.fwf(fileopen, widths,sep="",dec=".") The problem is with reading the second line above. R gives an error telling me that there are not 9 data points in that line. I tried adding fill=TRUE to the read statement but then when I check the data.frame I'm reading th...
2010 Sep 09
1
406 Not Acceptable with swfupload
...env[''HTTP_COOKIE''] = [ @session_key, params[@session_key] ].join(''='').freeze unless params[@session_key].nil? end @app.call(env) end end ------ controller def create @asset = Asset.new(params[:asset]) respond_to do |format| if params[:Filedata] @asset = Asset.new :swf_uploaded_data => params[:Filedata] @asset.user = current_user @asset.save! format.html { render :text => @asset.image.url(:thumb) } format.xml { render :nothing => true } else if @asset.save flash[:...
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
..."skip_before_filter :verify_authenticity_token" at the top, the file upload doesn''t work. I have pasted the upload action below: def upload_image directory = "public" + params[ :temp_Image_Location ].to_s pRandomFileName = params[ :random_File_Name ].to_s pFileData = params[ :Filedata ] vFilePath = File.join( directory, pRandomFileName ) succeeded = File.open( vFilePath, "wb" ) { |vBuffer| vBuffer.write( pFileData.read ) } render(:xml => "<response>Finished!</response>") if succeeded end Why is it that the...
2015 Sep 20
1
[syslinux:master] core/fs/lib/loadconfig.c: Add architecture-specific config name to search
...config.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/core/fs/lib/loadconfig.c b/core/fs/lib/loadconfig.c > index 95e6f3f..d164ae1 100644 > --- a/core/fs/lib/loadconfig.c > +++ b/core/fs/lib/loadconfig.c > @@ -22,6 +22,11 @@ int generic_open_config(struct com32_filedata *filedata) > }; > static const char *filenames[] = { > "extlinux.conf", > +#if defined(__FIRMWARE_EFI64__) > + "syslx64.cfg", > +#elif defined(__FIRMWARE_EFI32__) > + "syslia32.cfg", > +#endif > "sys...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
2008 Sep 25
1
ocfs2 filesystem seems out of sync
Hi there I recently installed an OCFS2 filesystem on our FC-SAN. Everything seemed to work fine and I could read & write the filesystem from both servers that are mounting it. After a while though, writes coming from one node do not appear on the other node and vice versa. I am not sure what's causing this, and not very experienced at debugging filesystems. If anybody has any
2013 Oct 18
1
[RFC/PATCH 2/3] core: MultiFS infrastructure added.
...*this_fs = NULL; +/* export p_ops to be used outside the core */ +__export const struct fs_ops **p_ops = NULL; /* Actual file structures (we don't have malloc yet...) */ __export struct file files[MAX_OPEN]; @@ -344,6 +349,9 @@ __export int open_file(const char *name, int flags, struct com32_filedata *filed dprintf("open_file %s\n", name); + if (switch_fs(&name)) + return -1; + mangle_name(mangled_name, name); rv = searchdir(mangled_name, flags); @@ -361,6 +369,9 @@ __export int open_file(const char *name, int flags, struct com32_filedata *filed filedata-...
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a
2012 Jan 03
0
[newbie] pager for large matrix?
...of question, please lemme know.) I'm new to R, though not to computing. I've been using linux for many years (and before that cygwin) and am very fond of `less` for paging output. I'm using R package=ncdf to load parts of a large netCDF file, e.g., > > var_01 <- get.var.ncdf(filedata, var, start=c(1,1,1,1), count=c(459,299,1,1)) > > class(var_01) > [1] "matrix" > > dim(var_01) > [1] 459 299 I'd like to be able to view values directly (more on why and how follows), but when I do > > print(var_01) I get output like > [,1] [,2] [...
2006 Jul 28
1
multipart/form-data support for Camping Apache/FastCGI
...ache/CGI is different and still will not work. I fuck around for a full day at the end of the day, I found Iowa another web framework and I try using their code but using Iowa::Request.new.read_multipart was more confusing than anything, although it helped me figuring it all out. I still use Iowa::FileData.new(nil, fh[:type], rx[((rx =~ /\r\n\r\n/) + 4)..-1]).store but a simple Tempfile could be used instead. I found another bug.... camping does not let me save more than 423 caracters in a sqlite text field. I have not look into the problem yet. but right from sqlite3 shell, I can store way much mor...
2015 May 28
4
upsmon and Chloride UPS
Hi, We have 2 UPS Chloride 80 NET 120 ( a black and white one ) in our datacenter. Could you please tell me if it is possible to use upsmon or other free solution with these two UPS for shuting down servers during electrical lost power before battery crash . Beet regards, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: