search for: in_front

Displaying 19 results from an estimated 19 matches for "in_front".

2007 Mar 08
6
Transfer-encoding: gzip
Hello! What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip? Just checking if it exists, otherwise I''ll implement it myself. Regards, Magnus
2006 Oct 19
8
Mongrel::HttpHandlerPlugin
Hi, I''m trying to write a file upload monitor for mongrel that uses juggernaut to alert the browser of a change. I''m writing a plugin that uses Mongrel::HttpHandlerPlugin but it looks like the only method that gets called is process and that is only when the upload has finished. I''m setting the following: @request_notify = true But I am still only getting process to
2007 Feb 23
0
Mongrel::Uploads.check() not returning status
...:controller => "file", :action => "upload" And here''s my config/mongrel_upload_progress.conf file: uri "/", :handler => plugin("/handlers/upload", :path_info => ''/file/upload''), :in_front => true My form was sending to :controller => file, :action => upload. Well, the route turned this into "/upload/xxxxxxx", and this didn''t match the path_info "/file/upload". Once I removed the route, the problem was fixed and progress started coming t...
2006 Jul 02
4
how to use upload progress?
I''m a bit confused about how to get upload progress to work with mongrel.. I''ve installed the mongrel_upload_progress (0.1) gem, but have no idea what to do with it. According to the following page: http://technoweenie.backpackit.com/pub/602283 there''s a patch (mup.diff) which seems like it patches the mongrel_upload_progress plugin The following blog entry makes it
2006 Nov 13
6
mongrel_upload_progress question/possible suggestion
...amp; upload_id = Mongrel::HttpRequest.query_parse (params[''QUERY_STRING''])[''upload_id''] Then I just update my handler like so: uri "/", :handler => plugin("/handlers/upload", :path_info => %r{/account/\d/\d/media/upload}), :in_front => true And everything works fine... It''s a super-small tweak, obviously, but I found that it made it a lot easier for me to use the plugin. Thoughts? Is there a better way to do this? Matt -- Thermal Creative http://blog.thermalcreative.com -------------- next part --------------...
2006 Oct 31
12
Moving page_cache_directory
Howdy. I''m working on a RoR CMS and need cached pages to all be in public/cache rather than public [in order to set svn:ignore on all the files properly]. I can get page_cache_directory set correctly and the pages are cached in the right place but Mongrel isn''t serving them because it''s only looking for them in public. During development I know I can set -r public/cache
2006 Dec 25
4
Definitive guide for upload progress
...progress plugin 0.2.1 - a 6 mongrels cluster - config/mongrel_upload_progress.conf: uri "/", :handler => plugin("/handlers/upload", :path_info => ''/upload/index'', :frequency => 1, :drb => ''druby://0.0.0.0:2999''), :in_front => true - After each cap deployment I manually launch ruby www/current/lib/upload.rb (yes that sucks) require ''rubygems'' require ''fastthread'' require ''drb'' require ''gem_plugin'' GemPlugin::Manager.instance.load ''m...
2007 Mar 12
17
need help writing a plugin
Hi, I''m halfway developing a tiny plugin that allows people to scrub flash video files. I''ve got my plugin setup to monitor a directory /movies. Whenever a .flv file is requested within that directory, some stuff should happen, if not, the request should be processed as usual. I don''t know how to do the latter.. require ''mongrel'' require
2007 Mar 23
1
upload progress bar don''t work...please help
..._progress.conf : ########## uri "/", :handler => plugin("/handlers/upload", :path_info => ''/files/upload'', :frequency => 1, :drb => ''druby://0.0.0.0:2999''), :in_front => true routes.rb : map.connect ''/files/'',:controller=>"files" files_controller : ##################### class FilesController < ApplicationController session :off, :only => :progress def index end def progress render :update do |page|...
2008 May 05
0
mongrel_upload_progress_bar - where are my files?
...mongrel_upload_progress.conf" looks like: > > uri "/", > :handler => plugin("/handlers/upload", > :path_info => ''/Users/railer/Documents/RAILS/dummy/files/upload'', > :drb => ''druby://127.0.0.1:2999''), > :in_front => true > > > Everything seems to work fine, progress bar, form, logfile ... > > But I could not find my uploaded files in the path...I only recognize > some files in /var/folders/...bla ... bla ... > > development.log: > > Processing FilesController#upload (for 127...
2008 May 05
0
mongrel_upload_progess_bar - where are my files?
...mongrel_upload_progress.conf" looks like: > > uri "/", > :handler => plugin("/handlers/upload", > :path_info => ''/Users/railer/Documents/RAILS/dummy/files/upload'', > :drb => ''druby://127.0.0.1:2999''), > :in_front => true > > > Everything seems to work fine, progress bar, form, logfile ... > > But I could not find my uploaded files in the path...I only recognize > some files in /var/folders/...bla ... bla ... > > development.log: > > Processing FilesController#upload (for 127...
2007 Dec 07
0
Handling multiple requests at once
...response) response.start(200) do |head, out| head["Content-Type"] = "text/html" (1..50).each do |i| puts "Loop #{i}" sleep 3 end out.write("FINISHED") end end end uri "/hello", :handler => HelloHandler.new, :in_front => true Which just sleeps for a while outputting a counter to the command prompt before finishing. If I request this file multiple times the requests are run synchronously, not in parallel? Is there anything I can do to make mongrel process the requests in parallel? Thanks jebw
2007 Jan 19
0
Mongrel::Uploads.check() not returning status
...and the latest install of mongrel. I created the config/mongrel_upload_progress.conf per the instructions ... it looks like this ... uri "/", :handler => plugin("/handlers/upload", :path_info => ''/listings/ add_photo''), :frequency => 1, :in_front => true Then I start mongrel like this ... mongrel_rails start -d -p 3000 -S config/mongrel_upload_progress.conf In my controller''s progress method I call ... @status = Mongrel::Uploads.check(params[:upload_id]) However, @status is always nil. Any ideas? The upload_id is pr...
2006 Oct 15
1
mongrel_send_file gem plugin
...== Usage After installing the gem, you''ll need to setup the handler for your Rails app: # config/mongrel_send_file.conf uri "/file/", :handler => plugin("/handlers/sendfile", :session_key => ''_my_session_id'', :session_files_key => :files), :in_front => true # rails action that sends the file def download # do whatever it is you do to find get the filename/content type @attachment = Attachment.find(params[:id]) # this doesn''t matter as long as it''s unique filehash = Digest::SHA1.hexdigest( Time.now.to_s....
2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
...arams) if @body.nil? && dispatcher end alias_method :initialize_without_abort, :initialize alias_method :initialize, :initialize_with_abort end Set up the handler uri "/", :handler => plugin("/handlers/upload", :path_info => ''/upload''), :in_front => true # add the callback to the actual handler. ::Upload.class_eval do def request_aborted(params) return unless params[''PATH_INFO''] == @path_info && params[Mongrel::Const::REQUEST_METHOD] == ''POST'' && upload_id = Mongrel::...
2006 Aug 29
0
mongrel_upload_progress problems
...) with mongrel_upload_progress 0.1. My upload URI is /agronomics/sample_cycle/upload, and my progress URI is /agronomics/sample_cycle/progress. I have the following in mongrel.conf: uri "/", :handler => Upload.new(:path_info => "/agronomics/ sample_cycle/upload"), :in_front => true It appears that the uploads are not properly being tracked. The Mongrel::Uploads singleton looks like this on each call to progress: #<Mongrel::Uploads:0xb79921b8 @counters={}, @guard=#<Mutex:0xb799217c @locked=false, @waiting=[]>> The lack of @counters seems to indica...
2006 Sep 07
2
Upload progress and limiting file sizes
Thanks to all concerned with the implementation of the Upload Progress plugin, it works really well. I want to limit the size of files to be uploaded to say 10Mb. Is there any way for Mongrel to ''refuse'' to upload files over a certain size and then pass an error onto Rails in order to display feedback to the user? I don''t really want to have to upload the whole
2006 Oct 15
14
Mongrel can''t handle some URLs that IE6 sends
IE6 happily sends unsafe* characters unencoded if you''ve typed them into the URL bar of your IE6 window. This could happen if you copy & paste a URL from an email or web page. Mongrel doesn''t seem to handle these properly. In 0.3.13.3 it would print out something like: Sun Oct 15 23:05:38 CST 2006: BAD CLIENT (192.168.1.2): Invalid HTTP format, parsing fails. 0.3.13.5
2006 Dec 27
6
file upload
I ma trying to get this upload working, http://mongrel.rubyforge.org/docs/upload_progress.html, ....after starting from the command line, mongrel_rails start -d -p 3001 -S config/mongrel_upload_progress.conf I get this eror in the browser, NameError uninitialized constant UploadProgressRailsController RAILS_ROOT: /usr/opt/tomcat/workspace/upload/config/.. Application Trace | Framework Trace