search for: input_fil

Displaying 20 results from an estimated 59 matches for "input_fil".

Did you mean: input_file
2008 Oct 27
1
replace a few strings in a text file
.... ") cat(paste(headerString), file = output, sep = "\n") close(output) } writeHeader(out=myFile) system(paste("cat", myFile)) system.time(sapply(1:200, writeHeader) -> b.quiet) Now for the ruby replacement solution: #!/usr/bin/ruby -w lambda = 0.1 N = 5 input_file=IO.readlines('test.txt') # replace wavelength input_file[6]= lambda.to_f input_file[7]= N.to_f f=File.new("test2.txt","w") f.puts input_file f.close I think (unverified) that this approach is more efficient than calling the writeHeader() each time. Please do let me k...
2009 Dec 10
1
incorrect multiple outputs
HI, I'm having trouble with a piece of Rscript which keeps outputting incorrectly. it's something like this: the code reads in from a file which contains (reformated) input >file<-read.table(file="input_file.txt",sep="\t")[,c(1,3:5)] > >file.rows<- c(nrow(file)/288) # "input_file.txt" contains 288 reformatted lines for each original data file ... >for (k in 1:file.rows){ # iterates code for each 288 line block of "input_file.txt" ... >cv[k] <- 100...
2007 Jan 14
0
file_splice Hack
...# Replace a section marked by # comment_char {BEGIN,END} pattern # with the given content # if checksum is set to "none", no resource is defined for the edited file define file_splice ($file, $pattern = "PUPPET SECTION", $comment_char = "#", $content = "", $input_file = "", $checksum = md5) { case $checksum { "none": {} default: { file { $file: checksum => $checksum } } } # the splice command needs at least the BEGIN line in the file append_if_no_such_line { "seed-$file-$pattern": file => $file,...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
..."%s%s%s%ssyntax error at line %d: %s\n", + fprintf (stderr, "%s%s%s%ssyntax error at line %d: %s%s%s\n", context->program_name ? context->program_name : "", context->program_name ? ": " : "", context->input_file ? context->input_file : "", context->input_file ? ": " : "", - yylloc->first_line, msg); + yylloc->first_line, msg, + context->error_suffix ? " " : "", + context->error_suffix ?...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
Switch the lex/yacc parser into reentrant mode, to ease the handling of parsing-specific data; introduce a new parser_context struct for that, which is added as extra data to the parser. This should cause no behaviour changes in the parsing, just no more global variables used for getting data in/out the parser. --- builder/index-parse.y | 44 ++++++++++++++++++++++++++++++++++++------
2009 Aug 20
3
[PATCH ovirt-node-image] fixes for edit-livecd
Patch set fixes issues with image size increase when using edit-livecd Also address issue with ext4 root fs
2004 Sep 07
1
C function name garbled
...<-10 > breaks<-c(548, 735, 832) First call to phylpro succeeds: > b<-phylpro("simulinfile", breaks, WinHalfWidth, permReps) > Second call to phylpro fails: > b<-phylpro("simulinfile", breaks, WinHalfWidth, permReps) Error in .Call("PSg\bBh\b", input_file = as.character(input_file), breaks = as.integer(breaks), : .Call function name not in load table Check if my C function name is in load table: > is.loaded("Rphylpro") [1] TRUE Any ideas? Thanks for your help, S. Blay Department of Statistics and Actuarial Science Simon...
2006 Apr 15
1
[PATCH] klibc: fix gen_initramfs_init.sh when using -d
...dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n" 2>/dev/null) @@ -187,9 +184,9 @@ # if only one file is specified and it i # if a directory is specified then add all files in given direcotry to fs # if a regular file is specified assume it is in gen_initramfs format input_file() { - source="$1" - if [ -f "$1" ]; then - ${dep_list}header "$1" + if [ "$1" == "-d" ]; then + ${dep_list}default_initramfs + elif [ -f "$1" ]; then is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')" if...
2006 Jun 26
0
[klibc 08/43] klibc: default initramfs content stored in usr/initramfs.default
...dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n" 2>/dev/null) @@ -187,9 +167,7 @@ # if only one file is specified and it i # if a directory is specified then add all files in given direcotry to fs # if a regular file is specified assume it is in gen_initramfs format input_file() { - source="$1" if [ -f "$1" ]; then - ${dep_list}header "$1" is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')" if [ $2 -eq 0 -a ${is_cpio} == "cpio" ]; then cpio_file=$1 @@ -214,6 +192,15 @@ input_file() { fi }...
2012 Dec 10
1
[LLVMdev] issue writing llvm metadata
...snippet. > Value *CI = ConstantInt::get(getGlobalContext(), APInt(8,2)); > ArrayRef<Value*> temp = ArrayRef<Value*>( CI); > MDNode *Node = MDNode::get(load->getContext(), temp); > load->setMetadata("mydata",Node); On running the pass with my input_file, I could not find the new metadata node in the .o file when i run llvm-dis with it . What am I missing ? Please help me out! I run the pass as opt -load path_to_my_library.so -pass_name < input_file.o > /dev/null Should I do something different for a transform pass to work? Thank you!...
2012 Jul 31
3
[LLVMdev] Compressing with llvm-ar
...e compressed flag gets passed to several calls and eventually makes it to Archive::writeMember() but this function doesn't do anything with it. Is compression working with llvm-ar? Can someone provide an example of how to use it? My command line looks something like llvm-ar rcz [archive_name] [input_file] Thanks, Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120731/24fb009d/attachment.html>
2009 Apr 02
2
FLAG DAY: vdiskadm translate
.... This allows the user to use a vmdk file and directly translate the data into a zvol without having to import it first to a vdisk and then export it to the zvol. # vdiskadm help translate translate - translate virtual disk data to a different type USAGE: vdiskadm translate [-i type[:opt]] -I input_file -x type[:opt] -d output_file TYPES AND OPTIONS SUPPORTED vmdk:sparse vmdk:fixed vdi:sparse vdi:fixed vhd:sparse vhd:fixed raw EXAMPLE: vdiskadm translate -I app.vmdk -x raw -d /dev/zvol/dsk/pool1/t1 ------------ The -i option is only needed if vdiskadm ca...
2009 Jun 11
2
Issues getting R to write image files
...otting jobs. I have had success getting R to complete a filled contour plot and output to a file (.jpg or .tiff etc). However, when I try to do the same thing with the simple plot command the script seems to execute correctly yet there is no output. Below is my R code: file <- Sys.getenv("input_file") tiff(paste( file, "tiff", sep=".")) z <- read.table(file) plot(z, type="l", xlim=range(0.6,2), col = "red", plot.title = title(main = file, xlab = "Wavelength (um)", ylab = "Intensity (arb.)) q() The data file is simply 2 colum...
2012 Sep 06
1
[LLVMdev] Cross-compiling llvm/clang osx -> win32
...birth/ThirdParty/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf FINAL-ARCHIVE: clang_darwin/eprintf: /Users/makira/Desktop/git_repository/sonicbirth/ThirdParty/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a lipo: no input files specified lipo: Usage: lipo [input_file] ... [-arch <arch_type> input_file] ... [-info] [-detailed_info] [-output output_file] [-create] [-arch_blank <arch_type>] [-thin <arch_type>] [-remove <arch_type>] ... [-extract <arch_type>] ... [-extract_family <arch_type>] ... [-verify_arch <arch_type>...
2019 May 24
2
Prevent ninja from rerunning cmake in a new build directory
...file isn't older. The following patch fixes the problem, i.e., there's no need to add build.ninja to the ninja_log: diff --git a/src/ninja.cc b/src/ninja.cc index a093cd1..810b22d 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -249,8 +249,6 @@ bool NinjaMain::RebuildManifest(const char* input_file, string* err) { return false; Builder builder(&state_, config_, &build_log_, &deps_log_, &disk_interface_); - if (!builder.AddTarget(node, err)) - return false; if (builder.AlreadyUpToDate()) return false; // Not an error, but we didn't rebuild. hth......
2015 Sep 29
2
OpenCL toolset (for AMD GPU)
...include OpenCL library headers from libclc > (http://libclc.llvm.org/) to compile most OpenCL code. > > Here is an example command: > > clang -include /path/to/libclc/headers/clc.h -I /path/to/libclc/headers -Dcl_clang_storage_class_specifiers -target amdgcn--amdhsa -mcpu=carrizo $INPUT_FILE -o $OUTPUT_FILE Hi Tom, to piggy-pack on this question. To load this kernel in OpenCL, is it sufficient to just pass $OUTPUT_FILE to clCreateProgramWithBinary? Also, assuming this is enough. Is the code quality for recent AMD GPUs quality-wise on the level of what AMD's closed-source driver...
2009 Aug 21
1
Help with building sieve
...othg/dovecot-1.2-sievepsu/src/plugins/lda-si eve/../../../src/lib-sieve/.libs/libsieve.a)^M libtool: link: warning: object name conflicts; renaming object files^M libtool: link: warning: to ensure that they will not overwrite^M Usage: uniq [-c | -d | -u] [-f Fields] [-s Chars] [-Fields] [+Chars] [Input_file [Output_file]]^M I think this is the crux of my missing notify_operation token I reported the other day. I can solve the uniq -cd problem. I don't know what libtool is trying to do there. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type...
2009 Jul 07
1
Formatting print with awk and ORS
I have a command I execute: awk 'BEGIN { ORS=" " } { print "\"" $1 "\"" }' input_file which gives me exactly what I need, all field one's in quotes on one line each separated by one space. I now need to print a single quote around all of this, but the ORS flag is screwing me up, it's causing every attempt I try to repeat for every record. Anyone got a pointer how to do th...
2000 Jun 20
3
WinAmp Plugin
Hi, I downloaded afew off files from the site (www.vorbis.com) and also downloaded the winamp plugin (dll file), but I am unable to play the off files. -- Ramakrishnan.M | Phone : (+91-80)-5099132 DSP Applications Group, Texas Instruments | email : rkrishnan@ti.com Bangalore, India | rkrishnan_m@yahoo.com ---
2015 Sep 29
2
OpenCL toolset (for AMD GPU)
Hi LLVM, I would like to compile OpenCL kernel for a specific AMD GPU target. Is it possible with the current clang/LLVM? I started by using `clang -x cl` but it looks like at least some OpenCL specific headers are missing (e.g. uint2 is not recognized as a type). Any links to documentation / tutorials very welcome. Thanks. - Paweł -------------- next part -------------- An HTML attachment was