Displaying 20 results from an estimated 80000 matches similar to: "Newbie Question: How do I zip stuff"
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/.
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
2006 Aug 03
1
Unzipping a file
Hi !
I''m attempting to write a simple gallery in Rails. The thing is I''d like to
be able to upload a lot of pictures at once with a zip file.
I''ve so far managed to upload the zip file (containing pictures) to the
server. But how do I unzip the file to have access to the pictures ? I
haven''t been able to understand how to use Zlib to do this.
Any tips or
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 Mar 24
4
Newbie Question: How can I access the referer
Just wondering if and how I can access the referer from the controller.
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
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/.
2006 Apr 22
7
Instance variables versus local variables
This novice coder roughly understands the difference between instance
and local variables thanks to David Black''s excellent book, but I''m
still unclear as to when and why a either is more desirable to use.
In general, I use instance variables in my controller and local in my
views, but I''m not sure as to why or if this is correct.
Thanks
Joe Kowalski
2013 Jun 13
4
Rails 3 application capable of generating an offline version of itself for download as zip archive
I''m kinda newbie in RoR yet and I''m having a hard time trying to figure
out how should I implement this. I''m writing an application to store and
display information about insects and their distribution. Currently I
have almost all functionality implemented, except for a **very**
important one: The application must be capable of "crawling" itself and
generate a
2006 Mar 16
2
Bulk upload of pictures
Hi everyone,
I am working on a Rails application with photo upload
capablility and I need to add some bulk ulpoad tool.
I decided for using a zip file with JPEG pictures inside.
The zip would be uploaded, then extracted into some temp
directory with the help of rubyzip extension. Then all the
photo files should be copied into their final places in the
file system.
I am interested in your
2006 Apr 01
15
Ruby on Rails CMS released. Web 2.0, Ajax, etc
Eribium, a content managing system built with rails has been released
completely free under the MIT License.
http://www.eribium.org/eribium/?p=21
You can find a demo here: http://alexmaccaw.no-ip.info:3000/admin
(user and pass are ''demo'').
Some of the features include:
* Completely Unobtrusive Javascript.
* Liquid View, works with pretty much any screen resolution.
2006 Apr 22
1
Newbie question about using helpers in controllers
I''m trying to display a list of pages in xml. I want to change
page.update_at to distance_of_time_in_words_to_now. However whenever I
run it I get an error saying:
undefined method `distance_of_time_in_words_to_now''
I know I can just go the rails api and copy the source, but there must
be another way.
def list
@page = Page.find(:all, :order => "updated_at desc")
2012 Nov 07
1
Newbie question : selecting subset of a Matrix
I have a matrix, I would like to use it like I use where query on an SQL table
Let's say my matrix is
> wok
who task
1 joe task1
2 joe task2
3 joe task3
4 jack task1
5 jack task2
I want to extract a matrix that contains only rows where
who = "joe" and task != "task2"
The result would be the following matrix
1 joe task1
2 joe task3
How can I do
2005 Mar 22
1
NEWBIE: MWI on 7960
Situation:
* New Install of Asterisk
* 7960 w/ SIP 7.4 Image
* 7912 w/ SIP040406A
* 3 Lines Defined on the 7960 (5104,3100,2100)
Questions (configs are below):
* Why won't the MWI light on the Cisco? I've tried:
* mailbox=2100
* mailbox=2100@default
* mailbox=2100@wvlandsales-voicemail
* Does anything look goofy overall? :-)
Thanks,
George
Sip.conf
[2100]
2006 Jul 05
2
How do I access the session in a rails plugin?
I''m trying to access the session in a rails plugin, so as to set it as
below.
1. module Juggernaut
2.
3. def self.set_channels(chan)
4. session[:juggernaut_channels] = chan
5. end
6. end
7.
8. module ActionController
9. class Base
10. include Juggernaut
11. end
12. end
At the moment I get: undefined local variable or method `session'' for
2007 May 29
2
Stream rubyzip
I have a Rails app that needs to create a Zip archive of a folder and
send it to the client''s browser for download. I have no need for the Zip
file on disk, so ideally, the Zip is created and streamed "on the fly".
Is this possible?
If not, I''ll create a temp file and send that via xsendfile, but I''d
rather avoid the extra (unnecessary) step if I could.
--
2006 Jun 05
4
Newbie question on url friendliness
If I wanted to use a friendly url, say, http://www.something.com/my-url,
how would I go about doing that? I can''t define an action my-url, and I
don''t want to clutter my routes up...
Is there a way to do this?
--
Posted via http://www.ruby-forum.com/.
2010 Oct 25
2
Fail to load spec/rake/spectask
Hi!
I''m a newbie at Ruby. I''m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.
It fails to load giving me the following message:
rake aborted!
no such file to load -- spec/rake/spectask
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile''
I''m using version 1.8.7 of Ruby.
I have installed rake
2006 Jul 12
5
railsapp/db/migrate Newbie question
I made a mistake when making my first app. I did not use the:
ruby script/generate model <modelname>
method for creating my models. I more or less hand crafted each og
them. Is there a way to go back so I get my db migration scripts to
populate?
--
Posted via http://www.ruby-forum.com/.
2008 Jan 20
2
Newbie question on subsets
Hi...
I'm working through the book, A Handbook of Statistical Analyses
using R by Everitt, and I'm trying to do the following (p. 19 of his
book):
boxplot(log(marketvalue)~country,
data = subset(Forbes2000,
country %in% c("United
Kingdom","Germany","India","Turkey")),
ylab="log(marketvalue",