Displaying 20 results from an estimated 6000 matches similar to: "Rails byte-range request support"
2007 Nov 08
5
byte-range requests
I''m trying to sent a file to the iphone (which requires byte-range
request support) using the rails send_file method. However, this
fails, I think because of mongrel. I think so because if I send the
iphone a file handled by nginx, it plays it fine. But then when I
serve the file with rails the iphone can''t play it.
Any ideas?
Alex
2007 Nov 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using
send_file. It seems that I''m missing the Accept-Ranges header in my
response. How can I set the Accept-Ranges header in my send_file
response?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2007 Apr 23
4
send_file pdf problem
Hi,
I am using send_file to allow users to download files from my website,
please see code beloe:
def download_document
send_file("#{RAILS_ROOT}/public/test_form.pdf",
:filename => "test.pdf",
:type => ''application/pdf'',
:disposition => ''attachment'',
:streaming
2007 Aug 27
2
send_file : downloaded file cannot be open after upload OK
I easily implemented the upload , using the ''attachment_fu'' plugin...
I can see and open the uploaded files (a pdf file 60k and a jpeg images
28k)
now I try to implement the download action in my document_controller, I
wrote :
def download
@document = Document.find(params[:id])
send_file(@document.full_filename,
:filename =>
2017 May 15
0
kickstart: dracut-initqueue fails due to unresolvable hostname even though network config looks perfectly ok
This problem still bites us. I've tried to play around with DHCP
settings (rd.net.timeout.dhcp, rd.net.dhcp.retry) to no avail.
I'm happy about /any/ hint.
Cheers
frank
On 04/24/2017 11:57 PM, Frank Thommen wrote:
> Hi,
>
> kickstarting fails due to problems with host resolution, even though the
> network seems to be properly configured through DHCP. eno1 and eno2 are
2011 Feb 01
4
Delay Loading Rails Views
Hi All,
I''m having trouble with a Rails app and I can''t figure out what /
where the problem is.
From the logging and testing I''ve done, it looks like there is a
consistent 3 second delay between the time that Rails finishes
rendering the view and the time that the browser actually receives the
data. That delay doesn''t show up on my laptop, running in
2017 Apr 24
2
kickstart: dracut-initqueue fails due to unresolvable hostname even though network config looks perfectly ok
Hi,
kickstarting fails due to problems with host resolution, even though the
network seems to be properly configured through DHCP. eno1 and eno2 are
both attached to the network, but only eno1 gets an IP via DHCP. Still
`curl` cannot resolve the mirror host and the kickstart host during
dracut-initqueue:
rdsosreport.txt
------------------------------------------------
[...]
[ 14.780428]
2007 Aug 27
1
Send_file() method for downloading any file
HI,
I need to know how to download any file using send_file() method.The
code I have shown below is for a specific file........how ever I need it
for any file.
THE CODE
........
def download_files
send_file(''D:/hr/Handbook.doc'',
:filename => params[:filename] ,
:type => ''application/octet-stream'',
2007 Dec 18
3
Mongrel + Lighttpd
Hi guys,
I''ve been chasing a problem in my web-stack: Lighttpd -> Mongrel ->
Rails, and found a problem with the interaction of Lighttpd and Mongrel.
If a request takes more than 5 seconds, Lighty will retry it - and
then the requests / responses get mixed up in Lighty and it returns a
bad response to the client. Not good.
I''m convinced that the problem is
2008 Jun 19
2
Strange performance issue
I have a strange performance issue and have no idea how to find the
bottle neck. A page on my site (http://www.neco.com/events/2783239) is
taking way too long to load. So I decided to test it out via curl to see
how fast it was downloading the page and this is what I got:
ben-johnsons-macbook-pro-17:neco-website benjohnson$ time curl -o
output.txt http://www.neco.com/events/2783239
% Total %
2007 Aug 24
1
How to download any file using send_file() method
HI,
I am directory listing and in that listing I have certain files and sub
directories, now when I click on the files it should download that
particular file but I am not able to accomplish it, and I have got to
use send_file() method.
In the send file Code shown below I have made use of the address of one
of the files directly so when I click the link of any file it downloads
it.
THE CODE
2007 Mar 07
3
Is there a thread safe ActiveRecord replacement?
I''m using merb as an application server backend for a client application, the goal is to be able to handle thousands of parallell sessions (not parallell requests). It will use sendfile to send files.
The controller uses an singleton that saves sessions in a hash that is memory resident cross requests, but isn''t persistent otherwise.
I''m using ActiveRecord since there
2008 May 10
1
OT: YUM, RPM and PGP keys
A short time ago a message on this list referred to an OSS project called
ledgersmb. I am having a deal of difficulty getting this installed and as the
web page at www.ledgersmb.org yields a "page not found" error and the
ledger-smb-users mailing list seems very lightly used I wonder if someone here
could help me out?
I have ploughed through all of the perl dependencies for ledgersmb
2016 Apr 22
2
Problem installing/loading packages from Africa
I'm very new to R and I live in Mali, west Africa. I'm on *OS X 10.7.5*. I
downloaded and installed *R 3.2.1*. I downloaded and installed *RStudio
00.99.893*.
I ran through the free Microsoft data camp intro to R course, then started
another free course through 'edX', for Data and Statistics for Life
Sciences, using R. The first prompt in the course is to
2008 May 06
3
expires header for .css
I''m using mongrel as my http server.
I was using yslow to evaluate the performance of my web site and noticed
I was downloading the .css file on every request??? I use one .css file
for the whole site and I though I would be cached?
Yslow indicates that there is no expires date/time set for the css file.
How can I tell mongrel to send an expires header with my static content?
thanks,
2011 Oct 09
1
error installing MT4
Hi, I recently learned of the Wine solution, which would mean that I don't need my dual boot version of W7 to run Metatrader. But, as I tried to install MT4 on my mac (Snow Leopard), I encountered an error. Here's the install log:
###BOTTLING### default.sh
###BOTTLING### Gathering debug Info...
Versions
OS...........................: darwin10.0
Wine.........................: 1.1.44
2009 Apr 07
5
strategies for securing attachment files from unwanted access
Hi,
we are developing an app for a company and their data has to be
private. There will be different stakeholders with different roles
accesing the application and there will be lots of attachments.
We are using paperclip to upload attachments, which are stored in the
filesystem within the public directory.
Right now, the image_tags are only rendered if you are logged in and
your role allows
2012 Jan 20
3
Istalling Ruby 1.9.2
I just installed 1.9.2 on my 2nd machine, but after I installed I checked
the version with ruby -v and it sent me 1.8.7
Here''s the terminal output...anyone know what''s wrong (I have RVM
installed):
Francescas-MacBook-Air:~ fkrihely$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/src
Configuring
2007 Feb 28
8
Export/save csv-file to desktop of user?
Hi,
looking for something that simple, but can''t find it. I got:
outfile = File.open(''teams.txt'', ''wb'')
CSV::Writer.generate(outfile) do |csv|
for team in @teams
csv << [team.id, team.name]
end
end
outfile.close
send_file "teams.txt", :filename => "teams.txt",:disposition =>
2007 Oct 27
7
load balancers and mongrel
We have a load balancer sending requests to one of X boxes and one of
N mongrel processes on that box.
Since each mongrel processes is multi-threaded but it has a mutex
around the section that calls rails, we end up with several requests
queued up waiting when they could have gone to another box with a
free process.
For example, boxA, and boxB.
boxA has mongrels 1 through 10
boxB has