Displaying 20 results from an estimated 6000 matches similar to: "tempfile problem"
2011 Mar 18
1
[Patch suggestion] Adding 3rd arg to tempfile() to set extension
The other day I was working on an example which used tempfile() to create
file for use by the graphics device. And while I love tempfile()---as it is
portable and clever and the files get cleaned by R and all that---I noticed
one missing feature I would like to see: beside a starting name pattern, and
an optional directory, an 'file extension' argument would be nice to have.
As e.g. in
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all,
Yesterday, I had some problems reading JPG files in my tests. Turns
out the problem was that Windows Ruby doesn't set it's Tempfile to
work in binary mode. Since I deploy on Linux, that has never been a
big problem, but now I'm working on some software that works with
binary files exclusively.
Anyway, I am making this fix available as a Rails plugin.
The details can be
2006 Dec 08
2
Windows Tempfile Fix Plugin
Hi all,
Yesterday, I had some problems reading JPG files in my tests. Turns
out the problem was that Windows Ruby doesn't set it's Tempfile to
work in binary mode. Since I deploy on Linux, that has never been a
big problem, but now I'm working on some software that works with
binary files exclusively.
Anyway, I am making this fix available as a Rails plugin.
The details can be
2010 Sep 23
3
superclass mismatch for class Tempfile
I''ve been facing a problem when generating a model (or controller, ...). I''m
using rails 2.3.8 and ruby 1.8.7.
Has anybody been facing anything like this?
script/generate controller test
/usr/lib/ruby/1.8/tempfile.rb:12: superclass mismatch for class Tempfile
(TypeError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
2011 Mar 19
1
Safe/sane tempfile creation?
I'm used to Debian-based distros which have a tempfile(1) utility for
safely and sanely creating temporary files.
There isn't a comperable utility for RHEL/CentOS systems.
I've been exercising Google-fu looking for a good robust tempfile
generation idiom, but haven't turned one up yet.
Hence this appeal to the lazyweb.
--
Dr. Ed Morbius, Chief Scientist / |
Robot
2005 Jul 08
1
Possible Solution to Tempfile error (for documentation)
Dear List:
I'm posting this to provide a possible solution and to document to what
appears to be an R limitation. The solution is more of a cheap hack that
works for now. To provide a little background, I am looping through a
dataframe and creating Sweave documents using data from each row in the
dataframe. It appears that this technique is not scalable to large
dataframes without making some
2007 Jan 25
2
serialize() takes too long when serializing to a raw vector
Hello,
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
Calling serialize() with a NULL connection serializes it to a raw vector. However, when the object to be serialized is large, it takes a very long time:
> system.time( serialize(matrix(0, 1000, 1000), NULL) )
[1] 38.25 40.73 81.54 NA NA
> system.time( serialize(matrix(0, 2000, 2000), NULL) )
[1] 609.72 664.75 1318.57 NA
2005 Jul 06
4
Tempfile error
Dear List:
I am encountering an error that I can't resolve. I'm looping through
rows of a dataframe to generate individual tex files using Sweave. At
random points along the way, I encounter the following error
Error in file() : cannot find unused tempfile name
At which point Sweave halts. There isn't a logical pattern that I can
identify in terms of why the program stops at
2012 May 25
2
cannot generate tempfile `/tmp/puppet.30616.9'
I have three (out of 90) machines with the error: cannot generate
tempfile `/tmp/puppet.30616.9''
I have plenty of disk and plenty of inodes.
My temp directory is permissioned: drwxrwxrwt 4 root root 20480
2012-05-24 01:33 /tmp
I get these for two puppet items on each row.
The daemon is not running. I run it manually using /usr/sbin/puppetd
--verbose --no-daemonize --onetime
2002 Dec 05
1
Patch to ignore exluded files.
I came up with a patch to fix the problem of IO Errors caused by
excluded files as did Eugene V. Chupriyanov below.
Is there a chance that this change will show up in a future version of
rsync?
Is there a reason that we should not ignore IO errors when copy_links is
off? Just want to make sure that I'm not missing something here that
may corrupt my syncs....
Here's the version that
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below
this is ma controlller method to upload
def save_imports
Contactslist.save(params[:list])
render :text => "File uploaded successfully"
this is ma view file
.remote
- form_for(@list, :url=> save_imports_list_path(@list, :format =>
"js"), :html => { :multipart => true,
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Default to mktemp, not tempfile
Commit-ID: b0626ba1febdb535a674743070dfc3f3c5735b29
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b0626ba1febdb535a674743070dfc3f3c5735b29
Author: Andrej Shadura <andrew.shadura at collabora.co.uk>
AuthorDate: Fri, 7 Sep 2018 10:34:11 +0200
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: builtin:
2009 May 27
0
request.raw_post into Tempfile
i have flash application ,which will give a jpg file as raw_post
from that raw_post i am trying to store into a tempfile
tempfile=Tempfile.new("myfile.jpg")
tempfile.write(request.raw_post)
but always "tempfile.read" giving ""(not storing the data) as output
i don''t why ?
any help ?
--
Posted via http://www.ruby-forum.com/.
2010 Dec 05
0
Rails - Using Tempfile to write on Heroku?
Hello, I need to be able to write a temporary file for use during the
request only.
Locally I can use the following successfully:
tempfile = File.open(a.original_filename,''w'')
tempfile.write_nonblock(a.body)
paperclip stuff........
tempfile.close
That works great, but not on Heroku... How can I do the above with
Heroku''s restrictions:
2011 Apr 08
7
FileUpload without Tempfile
I am looking for a way to upload a file to Rails 3 app, but without
generating a temp file. Googling the issue gave me some insight in how
the file upload works. As I understand Rails creates a temp file when
the file size is larger than 20kb. Is there a way to change this limit
and avoid the temp file generation?
Another solution I was looking in was creating a Rack App and so avoid
the file
2007 Jul 25
6
Using R_MakeExternalPtr
Hi all,
I've been writing a package and I've run into a problem that I'm unsure how
to solve. I am looking to pass a C++ class object to R so that it may be
passed back to another C++ function later on to be used. I'm quite new to R
and this is my first time writing a package, so I hope you can bear with me.
The following is how I create the class and use
2006 Apr 06
1
Rmagick file conversion
I am using rmagick to convert files stored as a tiff to either pdf or
jpg for display to the user. A snippet of test code from the controller
follows. It works OK. ( it does need a sanitizer )
require RMagick
def pdf
@sdoc = Sdoc.find(params[:id])
@fname = ''/var/www/images/'' + @sdoc.fname
@nf = Magick::ImageList.new(@fname)
2000 Dec 20
1
unlink() is not synchronized with existing connections (PR#783)
> # creating a file
> cat("sddfasdf", file="tempfile")
> showConnections()
class description mode text isopen can read can write
> con <- file("tempfile", "r")
> readLines(con)
[1] "sddfasdf"
Warning message:
incomplete final line in: readLines(con, n, ok)
> showConnections()
class description mode text isopen
2013 Oct 09
6
Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'
Hi,
i''m a newbie about Puppet( 1 month ~)
i got error on generate temp file, i''ll explain my situation:
-i have a puppetmaster(version: 3.3.0),executed on root
and a puppet agent(version 2.7) provisioning by vagrant,executed on root
-my site.pp, where webserv is a parametrized class, and typews is a
parameter to choice nginx or lamp module,
-i have my Enc node with path
2017 Sep 08
3
file.copy(from=Directory, to=File) oddity
When I mistakenly use file.copy() with a directory for the 'from' argument
and a non-directory for the 'to' and overwrite=TRUE, file.copy returns
FALSE, meaning it could not do the copying. However, it also replaces the
'to' file with a zero-length file.
dir.create( fromDir <- tempfile() )
cat(file = toFile <- tempfile(), "existing file\n")