search for: dorian

Displaying 20 results from an estimated 84 matches for "dorian".

Did you mean: doran
2006 Apr 25
3
limiting options in file_upload
...one know if it''s possible to set constraints to the size & type of file that file_column will accept? I''d like to limit to image files of less than 2MB. If this isn''t possible with file_column, is there a graceful way of getting the controller to handle it? thanks dorian -- -- I do things for love or money
2006 Jun 15
5
Cannot invoke ActiveRecord subclass accessors in DRb worker
...an ActiveRecord subclass causes the whole thing to block. At least I think it''s blocked. Right now I''m just using debug log output. Is there a decent way to debug/test workers I can try? Is there any insight as to why this might be happening (thread safety issues, etc)? Cheers Dorian
2008 Oct 22
2
smbd high cpu load
We have a Linux file server for a set of computer science and engineering labs where each lab contains machines running Mac OS X, Ubuntu Linux, or some incarnation of Windows. At times the these machines become almost unusable and I think I have narrowed the problem to smbd processes soaking up all the CPU on the server. Running 'top' on the server reveals a dozen or so entries like
2006 Apr 28
2
tests and login_engine
...be getting the hang of things, but I''m hitting a wall when it comes to functional_testing pages protected by login_engine/user_engine. all my assertions come back with: Expected response to be a <:success>, but was <302> Is there a way I can login from within a test? thanks dorian -- I do things for love or money
2006 Jan 23
11
mysql dates
...'m in a bit of a bind because whenever I use '':include_blank => true'' in a date_select form, the result is always applied to the date field in the db as eg. Jan 01, which means that as far as I can see blank values aren''t possible. Am I missing something? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Mar 15
1
file_column imagemagick strangeness
...n reveals that the file is in fact invalid because something somewhere is truncating the file path: Magick::ImageMagickError in Images#create unable to open image `rian/www/dev.domain.dom/public/images/example.jpg'': No such file or directory: (''image'' should be `/home/dorian/www/dev.domain.dom/public/images/example.jpg'') This all happens in the file magick_file_column.rb in the method transform_with_magick. The line raising the error is: img = ::Magick::Image::read(absolute_path).first and if I replace absolute_path with a string I get the same truncation...
2006 Mar 20
3
login_engine
...register I get: NoMethodError in User#signup undefined method `password_confirmation='' for #<User:0x408b2f9c> I have login_engine, and engines installed from cvs: http://opensvn.csie.org/rails_engines/plugins/ anyone else had anything similar or know what I might be doing wrong? dorian -- I do things for love or money
2006 May 11
4
/public content security
Hello all, I have a question regarding the security of my new web zine. The idea is that I have editors that can log into the site, and then upload comics in the form of a jpg. The way that I have this set up right now is that the jpg is submitted through a form and then placed into the authors sub directory in public/comics/. The record of the jpg is stored in a pendingcomics table
2008 Oct 23
3
high cpu load
...offending smbd process: Culprit #1 I took three sample snapshots, each lasted for several seconds, and I took them minutes apart from each other. I noticed many lines involved stat'ing the a single file in the 'My Documents' subdirectory: stat64("My Documents/The Picture of Dorian Grey.rtf", {st_mode=S_IFREG| 0744, st_size=0, ...}) = 0 utimes("My Documents/The Picture of Dorian Grey.rtf", {1224548572, 0}) = 0 To see the frequency of these I grep'ed and use wc -l to get a line count: # grep 'stat64("My Documents/The Picture of Dorian Grey.rt...
2006 May 18
1
ActiveRecord problems from within template
...but if I debug(@film.live_action_personnel) earlier within the same template, all is well! It seems that ActiveRecord isn''t generating the right query when I only need to count the number of records. Anyone know a way round this that doesn''t involve writing my own sql? thanks dorian -- -- I do things for love or money
2006 May 24
2
named routes confusion
Hi, I''m trying generate a URL from a named route like: namedroute_url(params...) but the generated route is always coming out as the first match from the routes table. The named route is defined inside a map.with_options block, but that shouldn''t matter should it? dorian -- -- I do things for love or money
2006 Jun 02
6
overriding constants
...0, "class" => "input" } do I need to wrap them in a module? I figured not, as they are constants, and should be globally scoped, but I might be very wrong about that... This seems like it should be fairly straightforward, so I must be doing something the wrong way. thanks dorian -- -- I do things for love or money
2006 May 09
1
name_url in tests
...h any other tests and I keep getting an error when I try and use it in assert_recognizes (see below). Is there anything in particular I have to do to get the _url functionality imported into my tests? I''m using rails 1.1.2 thanks for any pointers in the dark-arts of URL rewriting tests. dorian Test: # named routes opts = { :action => "dotest", :test => "test1" } assert_recognizes opts, taste_url(:action => "dotest", :test => "test1") Error ( I have a route named ''taste''): test_routes(FilmsControllerTe...
2006 Jan 23
2
require rmagick
...thing. From what I''ve read it seems that this probably a failure to require. Looking for RMagick in my system I find: /usr/lib/ruby/gems/1.8/gems/rmagick-1.9.3/lib/RMagick.rb /usr/local/lib/site_ruby/1.8/RMagick.rb but do I need to specify where rails should be looking for these files? dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 May 18
2
How to add hint to link_to_remote?
To add a hint to normal link is very easy: link_to ''design'', {:action => ''design'', :id => survey}, :title => ''Design the survey'' but, after trying several times, I still can''t figure out how to do the same to link_to_remote. I''ve tried put :html => {:title => ''blah''}. It doesn''t
2006 Mar 23
1
mod_fcgid
...ve dev & production vhosts and would like to set the environment from within apache rather than globally via fcgid.conf, and I thought this might work from within the relevant vhost: DefaultInitEnv RAILS_ENV production but it seems to do nothing... Does anyone know the right way to do it? dorian -- -- I do things for love or money
2006 Mar 29
1
load testing
...-idle-timeout 120 -processes 1 but curiously this seems to spawn 2 processes, only one of which ever seems to be used. I suppose I just want to know what will happen on the days we spike, and I''m not sure how fastcgi deals with that sort of thing. Any pointers gratefully recieved. thanks dorian -- I do things for love or money
2006 Jan 25
1
deep inspecting attributes
...ilm'', :animate_title => film.animate_title, :page => ''synopsis'' %></p> <% end %> however if I do: <%= debug(@artist) %> from the same template, then my array of films never appears. Why is that, and is there a way I can make it appear? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Mar 24
10
innodb vs myisam
...at I can override this, but also like the transactions and foreign keys of innodb. So 2 questions really: 1. are transactions in activerecord dependent on innodb or do they recreate that functionality? 2. if I did stick with innodb would there be a workaround for effective text searching? thanks dorian -- I do things for love or money
2006 Jan 19
3
template/variable confusion
...ithing the method I get a stack overload. What would be the best way to do what I initially though should be done like this: self.running_time.strftime("%M:%S") ? It''s taking me a while to get the idioms and the heuristics for RoR... Thanks in advance for any help available! dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent