search for: perrett

Displaying 20 results from an estimated 28 matches for "perrett".

2005 Dec 21
8
text_area
Hi I''d like to know how to add default text text area using the function text_area. I ''ve tried using value = "....." to do this but with no luck. Could some one please answer my simple question? Thanks. Dan. -- Posted via http://www.ruby-forum.com/.
2006 Sep 07
5
Mongrel Ultimate Deployment Certified Rails Aptitude Program
I''m proud to announce the official Mongrel certification program: http://mongrel.rubyforge.org/certified.html Move quick, seats are filling fast for the RubyConf courses. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
2008 Mar 13
4
Merb in production with God/Monit
Hey All, I just wanted to get other peoples take on problems when running merb in production? Just as Rails used to do, the mongrels tend to get heavy/unresponsive over time so need a good kicking by a watcher daemon like god or monit. However, I have had serious problems getting God to restart the process, as the "merb -k <port>" command doesnt appear to work reliably
2005 Dec 11
9
LIKE SQL queries in rails
I''m trying to do something like: SELECT * FROM attachment WHERE filename LIKE ''%whatever%''; so my code is: @search = params[:search] @attachments = Attachment.find(:all, :conditions => ["filename LIKE ''%?%''", @search.to_s]) but that''s converting to: SELECT * FROM attachments WHERE (filename LIKE
2006 Jan 30
2
fastcgi on solaris 10
Hi I''m trying to install fastcgi and I''ve downloaded the developers kit fromfastcgi.com I go through the instructions $ wget <a href="http://fastcgi.com/dist/fcgi-2.4.0.tar.gz">http://fastcgi.com/dist/fcgi-2.4.0.tar.gz</a> $ tar zxvf fcgi-2.4.0.tar.gz $ cd fcgi-2.4.0 $ ./configure $ makeMaking all in libfcgi but when it comes to making it it allways
2006 Sep 01
8
Application performance
Hey all Im working on improving the speed of my application. Ive taken on board everything that has been said on this forum so far, im using httperf to benchmark and try to improve performance. However, I have some question marks over how best to go about improving performance in certain areas.... With no caching or such like deployed the application runs at an rather slow 35 - 38 req/s. A
2007 Jul 24
4
GemPlugin or Mongrel::HttpHandler subclass
Hey all I am working with a technology standard (specific to the commercial print industry) by which each element within the workflow has bi- directional HTTP messaging. As each side needs a http server, I thought I could either: a) use a gem plugin to modify the behavior of mongrel b) subclass Mongrel::HttpHandler In short, its xml messaging between two points; each with a HTTP client
2006 Aug 23
2
Optimal Configuration
...proxying through pound but my rails apps are now on mongrel, but how many instances would deliver the best performance on what im running? I wasn''t sure if mongrel got busy would it hog a lot of ram or something like that. What would people suggest from there own experiences? Cheers Tim Perrett ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk _...
2006 Aug 28
6
Why the render speed is still so slow under apache?
<% for demand in @demands %> <% cache(:action => ''list'',:part => article.id) do -%> <%= render :partial => ''article''} %> <% end %> <% end %> Under webrick,the time that list rendering costs will be very soon,but under apache2.2+mongrel_cluster, the rendering still takes a long time- which occupies about 95% of the
2006 Jul 15
1
Relationship problem, newbie problem, need help!!
...n the following query in mysql, i get the data i want. How do i do this in rails relationships and models? select * from shop_addresses left join shops on shops.id = shop_addresses.shop_id left join styles on styles.id = shops.style_id where shop_uri = ''127.0.0.1'' Cheers!! Tim Perrett PS: The tables are the following... #---------------------------- # Table structure for styles #---------------------------- CREATE TABLE `styles` ( `id` int(11) NOT NULL auto_increment, `css_file` text, `asset_path` text, PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHA...
2006 May 25
0
Connection refused
...;bin-environment" => ( "RAILS_ENV" => "production" ) ) ) ) the var server names are held in the main conf file and set like... var.basedir = "/var/www/sites/" var.servername = "stage.butlerandtanner.com" Can anyone help? Thanks Tim Perrett -- Posted via http://www.ruby-forum.com/.
2006 Feb 05
2
SCGI
Hi please help, Id like to get SCGI working with rails. having gone through the instruction its seems straight forward enough, but for one slight snag. mod_scgi.so the one I downloaded seems to be for DOS. no problem, I just download the source and comile it for Solaris, oh oh for some reason it doesn''t compile. So I decided to search the web for a binarie version for Solaris 10
2008 Jan 02
1
Deploying merb as a windows service
Hey All I was just wondering if anyone had tried deploying merb as a windows service? I am familiar with the sc.exe tool ( http://support.microsoft.com/kb/251192 ) - do you think adding the correct paths and such to the merb bin will work? I am going to try this tomorrow but wondered what peoples thoughts were? Many thanks Tim
2008 Jan 03
3
Whats the merb equivilant of this?
Hey All Quick question, what''s the merb equivalent of this: ActionView::Base.new([template_root], assigns, self) in merb? Ive found Merb::Template::Erubis.transform(:file => ''/path/to/file'') But I''ve no idea if thats the correct thing to be calling? It doesn''t ''feel'' right, so im not sure it is? Thanks Tim
2006 May 25
4
downloads dispatch.fcgi for every request!!
Hi All, has anyone ever seen it when they vist the URL in the applicaion that it just tries to download the FCGI dispatch file? Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI. i run IRB and get... irb(main):001:0> require ''fcgi.so'' => true irb(main):001:0> require ''fcgi'' => true On the default rails install page ''riding on
2006 Jul 15
13
Active Record: Can it auto-create database tables for you?
Hi, Just get started with Rails and I''m trying to read ahead and find out whether Active Record supports auto-creation of database tables for you? Is this supported, or is the concept that you write your own database DDL to do this? Thanks -- Posted via http://www.ruby-forum.com/.
2006 May 14
1
Dragable element
...;/shop/image/<%=params[:id]%>.jpg''); setProductTab(''specs'');">Large</a></div> </div> </div> If anyone has any ideas at all that would be great... im sure its a math related problem but i just cant see it!! Many thanks Tim Perrett -- Posted via http://www.ruby-forum.com/.
2006 Sep 09
2
Server-side session management for short session expirations?
I need to effectively log a user out if their session is inactive for more than a short period of time, like 5 minutes. I need some help understanding how to approach session expiration and cleanup in Rails. When the user explicitly logs out of my app, I delete all the data they''ve entered/that''s been created during their session. The data includes files, database records, and
2007 Aug 14
2
bizare soap4r problem
Hey chaps I am using classes I generated from wsdl2ruby, and they work like a charm when running somthing like: ruby -d path/to/file.rb and i get the result I expect. However, when I use them within rails, the actual xml it puts together is different. Using wire dump i see that (and this is a key part of the web service) looks like: <n1:inRecipientIDs
2007 Dec 30
2
Loading config YAML into merb process for the life of the process
Hey Chaps, Forgive me for not fully understanding the inner workings of merb, but I would like to read in a YAML configuration file once when the application is booted rather than reading it every time it is used (as presumably the overhead in doing that is significant?) - I had presumed this is how both Merb and rails do it for there database.yml config files (hence its a requirement