similar to: Unzipping a file

Displaying 20 results from an estimated 900 matches similar to: "Unzipping a file"

2012 May 09
12
out of memory (java heap space) on zip creation (jruby)
I am using rubyzip and am trying to put a huge csv file with 1.4 million rows into the zip file. Using jruby I get a out of heap error. I believe the error happens in the block below: Zip::ZipOutputStream.open(zip_path) do |zos| zos.put_next_entry(File.basename(csv_path)) zos.print IO.read(csv_path) end -- You received this message because you are subscribed to the Google
2006 May 02
4
Bug in rails ?
Hi ! I just have a simple question. I am writing an app using rails to familiarize myself with the framework (which is pretty cool, by the way). I just wanted to know why these two work differently (since "find" should be a synonym for "detect" according to the Pick Axe) : current_item = @invoice.line_items.detect {|i| i.product.id == key} current_item =
2012 Aug 17
8
Get the filename from the given path
Hi, Here i have a file path, for eg : - FPath <- "D:\\MyFolder\\MyFile.txt" HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ? - thanks in advance Antony. -- View this message in context: http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp4640578.html Sent from the R help mailing list archive at Nabble.com.
2009 Mar 10
2
problem with concatinating string while taking as a path of a file
Hi all, I have a problem with concatinating strings while taking as a path here the problem is i have to take path as FPATH<-"D:\\Kiran" and file name as Fname<-"FINDINGS.CSV" and while I am reading this table I have to take path with using these two strings because in "FPATH" there is many files like findings.csv, and path will be
2010 Jan 19
5
Rubyzip gem installed but not recognised
Hi, I have installed rubyzip successfully(see output below) Successfully installed rubyzip-0.9.1 1 gem installed Installing ri documentation for rubyzip-0.9.1... Installing RDoc documentation for rubyzip-0.9.1... if I put config.gem ''rubyzip'' in environment.rb and then run rails it fails to load rubyzip .. see below george@geolaptop:~/Dropbox/git/paua$ ruby script/server =>
2006 Aug 09
10
Is there QA on Rails gem releases?
The ActionMailer/ActionPack gem release is still screwed up. Does someone test the gem releases to ensure that they work? Just an idea. Wes -- Posted via http://www.ruby-forum.com/.
2011 Sep 21
4
rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails
I''m trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require ''zip/zip'' fails with ''no such file to load -- zip/zip gem list --local shows rubyzip (0.9.4) I see zip.rb in d:\ruby192\lib\ruby\gems\1.9.1\gems\rubyzip-0.9.4\lib\zip\ -- Posted via http://www.ruby-forum.com/. -- You received this message
2009 Mar 12
3
batch process file in R
Dear R experts, I have a folder names "200209" and in this folder there are many data files, such as: "BA020902.txt","BA020903.txt","BA020904.txt", "BA020905.txt","BA020906.txt","BA020909.txt", "BA020910.txt","BA020911.txt","BA020912.txt",
2007 Jan 25
8
Mongrel with mephisto on a Virtual Private Server
Hello everyone, I am trying to setup Mongrel to work with Apache on a VPS as part of a mephisto installation. Has anyone done this, and if so how did you edit your conf file to make it work? I used the info found on the mongrel site at: http://mongrel.rubyforge.org/docs/apache.html<http://mongrel.rubyforge.org/docs/apache.html> and one time I did get a mephisto splash screen, but it was
2010 May 20
1
use object within rda file in for loop
Dear users, I would like to process all the lists from all *.rda files that I have in one folder. Up to now, I can load all the *.rda files without any problem. The problem is when I want to access the list saved within each *.rda file (only one list per rda file). Here is my code: fpath <- "D:/R" listnames <- list.files(path=fpath, pattern=glob2rx("*.rda"),
2006 Apr 01
5
Upload a zip using a form and extract if afterwards on srv?
Hi all It like my visitors to be able to upload a zip file (or any other possible compressed file archive) to my server. After upload, my web app should extract the content to the server and delete the zip file. Is this possible somehow? I''m very thankful for help. Have a nice weekend, Joshua -- Posted via http://www.ruby-forum.com/.
2006 Feb 08
8
Liquid with database?
Hello, Just wondering if someone here as successfully ported Liquid to use with a database. I would like to try it out but not sure how Liquid integrates with current templates. Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Feb 28
7
XCP - migration from xend
Hello there, I have some issues regarding xend domU migration to XCP VM. I try to migrate my old xend domU''s to my xen Could using the xva.py script. All seems to work quite ok, the migration process doesn''t throw any errors, i get a .xva file with a proper Size. When importing that file, immidiately the VG and LV is created, and VM properties are assigned correctly. But when
2006 Nov 17
5
[Tweaking-Typo-4.0.3] acts_as_ferret `method_missing''
Hey Folks, after following the instructions for tweaking Typo to use rather ferret than DB queries to search article I got a strange NoMethod error when starting the console or the server scripts. /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'':NoMethodError: undefined method `acts_as_ferret'' for Content:Class As you can
2006 Feb 08
3
print formula on plot
I estimate some parameters and I want to print them (pretty) on my plot: # somehow estimated parameters z<-c(1.543523e+00, 1.23453e+00, 3.454000e+00) x<-seq(-1,1,length=100) plot(x,z[3]*x^2+z[2]*x+z[3],type="l", main="My nice plot of the estimated function") zs<-format(z,digits=4,scientific=FALSE,trim=TRUE) text(-0.9,7,expression(1.54*x^2)) # is
2007 Feb 26
2
Apache+mod_proxy_balancer+Mongrel+Mephisto, Apache kills CPU
Our Mephisto install kills Mongrels and causes Apache to pound the CPU. This started when we moved to Apache+mod_proxy_balancer+Mongrel. Here''s what we know: The following things are working OK, except when used in the combination listed above: mongrel, mongrel_rails, MySQL, Apache, mod_proxy_balancer. We believe these are all OK because we moved five other Rails apps to this
2005 Dec 07
1
summary[["r.squared"]] gives strange results
I am simulating an ANOVA model and get a strange behavior from the summary function. To be more specific: please run the following code and see for yourself: the summary()[["r.squared"]] values of two identical models are quite different!! ## 3 x 3 ANOVA of two factors x and z on outcome y s.size <- 300 # the sample size p.z <- c(0.25, 0.5, 0.25) # the probabilities of factor z ##
2010 Jan 07
3
tar exclude command
Hi I have problem in tar command Can you help? tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named /var/named/chroot/proc/net/route /var/named/chroot/proc/net/udp /var/named/chroot/proc/net/tcp tar: Error exit delayed from previous errors Thank you Send instant messages to your online friends http://uk.messenger.yahoo.com
2006 Feb 03
3
rubystandard library question
I have a problem getting find.rb and fileutils.rb to coexist in the same script. When I require both I get the following: /usr/lib/ruby/1.8/find.rb:36:in `dup'': can''t dup NilClass (TypeError) from /usr/lib/ruby/1.8/find.rb:36:in `find'' from /usr/lib/ruby/1.8/find.rb:36:in `find'' I googled for this problem and did not come across any place
2004 Oct 06
1
plotOHLC unequally spaced time.
Hi I have som financial tick data that i have converted in to 45 min bars. These are unequally spaced in time. I wonder if it is possible to plot these like bars as the plotOHLC does. As I have understood plotOHLC uses class(mts) that must be equally spaced? Regards Paer [[alternative HTML version deleted]]